Files
challenge/ex1/frontend/dist/assets/index.0f93eccd.js
2024-04-30 00:58:25 +02:00

2 lines
21 KiB
JavaScript

var Xe=Object.defineProperty;var Ye=(t,e,l)=>e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[e]=l;var j=(t,e,l)=>(Ye(t,typeof e!="symbol"?e+"":e,l),l);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function l(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=l(i);fetch(i.href,o)}})();function X(){}function Ze(t,e){for(const l in e)t[l]=e[l];return t}function $e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function Ke(t){return t()}function we(){return Object.create(null)}function D(t){t.forEach(Ke)}function Qe(t){return typeof t=="function"}function ue(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function xe(t){return Object.keys(t).length===0}function et(t,e,l,n){if(t){const i=Ve(t,e,l,n);return t[0](i)}}function Ve(t,e,l,n){return t[1]&&n?Ze(l.ctx.slice(),t[1](n(e))):l.ctx}function tt(t,e,l,n){if(t[2]&&n){const i=t[2](n(l));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],r=Math.max(e.dirty.length,i.length);for(let s=0;s<r;s+=1)o[s]=e.dirty[s]|i[s];return o}return e.dirty|i}return e.dirty}function nt(t,e,l,n,i,o){if(i){const r=Ve(e,l,n,o);t.p(r,i)}}function lt(t){if(t.ctx.length>32){const e=[],l=t.ctx.length/32;for(let n=0;n<l;n++)e[n]=-1;return e}return-1}function f(t,e){t.appendChild(e)}function E(t,e,l){t.insertBefore(e,l||null)}function C(t){t.parentNode&&t.parentNode.removeChild(t)}function W(t,e){for(let l=0;l<t.length;l+=1)t[l]&&t[l].d(e)}function v(t){return document.createElement(t)}function B(t){return document.createTextNode(t)}function L(){return B(" ")}function De(){return B("")}function J(t,e,l,n){return t.addEventListener(e,l,n),()=>t.removeEventListener(e,l,n)}function R(t,e,l){l==null?t.removeAttribute(e):t.getAttribute(e)!==l&&t.setAttribute(e,l)}function it(t){return Array.from(t.childNodes)}function T(t,e){e=""+e,t.data!==e&&(t.data=e)}function Oe(t,e){t.value=e==null?"":e}function Y(t,e,l){for(let n=0;n<t.options.length;n+=1){const i=t.options[n];if(i.__value===e){i.selected=!0;return}}(!l||e!==void 0)&&(t.selectedIndex=-1)}function ae(t){const e=t.querySelector(":checked");return e&&e.__value}let le;function Q(t){le=t}function He(){if(!le)throw new Error("Function called outside component initialization");return le}function ot(t){He().$$.on_mount.push(t)}const $=[],ne=[];let x=[];const me=[],rt=Promise.resolve();let pe=!1;function st(){pe||(pe=!0,rt.then(ke))}function ee(t){x.push(t)}function _e(t){me.push(t)}const he=new Set;let Z=0;function ke(){if(Z!==0)return;const t=le;do{try{for(;Z<$.length;){const e=$[Z];Z++,Q(e),ut(e.$$)}}catch(e){throw $.length=0,Z=0,e}for(Q(null),$.length=0,Z=0;ne.length;)ne.pop()();for(let e=0;e<x.length;e+=1){const l=x[e];he.has(l)||(he.add(l),l())}x.length=0}while($.length);for(;me.length;)me.pop()();pe=!1,he.clear(),Q(t)}function ut(t){if(t.fragment!==null){t.update(),D(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ee)}}function ct(t){const e=[],l=[];x.forEach(n=>t.indexOf(n)===-1?e.push(n):l.push(n)),l.forEach(n=>n()),x=e}const ie=new Set;let H;function ye(){H={r:0,c:[],p:H}}function je(){H.r||D(H.c),H=H.p}function U(t,e){t&&t.i&&(ie.delete(t),t.i(e))}function V(t,e,l,n){if(t&&t.o){if(ie.has(t))return;ie.add(t),H.c.push(()=>{ie.delete(t),n&&(l&&t.d(1),n())}),t.o(e)}else n&&n()}function oe(t,e){const l=e.token={};function n(i,o,r,s){if(e.token!==l)return;e.resolved=s;let h=e.ctx;r!==void 0&&(h=h.slice(),h[r]=s);const u=i&&(e.current=i)(h);let a=!1;e.block&&(e.blocks?e.blocks.forEach((p,b)=>{b!==o&&p&&(ye(),V(p,1,1,()=>{e.blocks[b]===p&&(e.blocks[b]=null)}),je())}):e.block.d(1),u.c(),U(u,1),u.m(e.mount(),e.anchor),a=!0),e.block=u,e.blocks&&(e.blocks[o]=u),a&&ke()}if($e(t)){const i=He();if(t.then(o=>{Q(i),n(e.then,1,e.value,o),Q(null)},o=>{if(Q(i),n(e.catch,2,e.error,o),Q(null),!e.hasCatch)throw o}),e.current!==e.pending)return n(e.pending,0),!0}else{if(e.current!==e.then)return n(e.then,1,e.value,t),!0;e.resolved=t}}function We(t,e,l){const n=e.slice(),{resolved:i}=t;t.current===t.then&&(n[t.value]=i),t.current===t.catch&&(n[t.error]=i),t.block.p(n,l)}function de(t,e,l){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=l,l(t.$$.ctx[n]))}function be(t){t&&t.c()}function re(t,e,l,n){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,l),n||ee(()=>{const r=t.$$.on_mount.map(Ke).filter(Qe);t.$$.on_destroy?t.$$.on_destroy.push(...r):D(r),t.$$.on_mount=[]}),o.forEach(ee)}function se(t,e){const l=t.$$;l.fragment!==null&&(ct(l.after_update),D(l.on_destroy),l.fragment&&l.fragment.d(e),l.on_destroy=l.fragment=null,l.ctx=[])}function ft(t,e){t.$$.dirty[0]===-1&&($.push(t),st(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ce(t,e,l,n,i,o,r,s=[-1]){const h=le;Q(t);const u=t.$$={fragment:null,ctx:[],props:o,update:X,not_equal:i,bound:we(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(h?h.$$.context:[])),callbacks:we(),dirty:s,skip_bound:!1,root:e.target||h.$$.root};r&&r(u.root);let a=!1;if(u.ctx=l?l(t,e.props||{},(p,b,...g)=>{const N=g.length?g[0]:b;return u.ctx&&i(u.ctx[p],u.ctx[p]=N)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](N),a&&ft(t,p)),b}):[],u.update(),a=!0,D(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const p=it(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&U(t.$$.fragment),re(t,e.target,e.anchor,e.customElement),ke()}Q(h)}class fe{$destroy(){se(this,1),this.$destroy=X}$on(e,l){if(!Qe(l))return X;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(l),()=>{const i=n.indexOf(l);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!xe(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function at(t,e,l){return window.runtime.EventsOnMultiple(t,e,l)}function ge(t,e){return at(t,e,-1)}function _t(t,e,l){return window.go.main.App.AggregateByColumn(t,e,l)}function ht(t,e,l,n,i){return window.go.main.App.GetEmployees(t,e,l,n,i)}function Ce(t,e,l){const n=t.slice();return n[13]=e[l],n}function Ee(t,e,l){const n=t.slice();return n[16]=e[l],n}function Ae(t,e,l){const n=t.slice();return n[19]=e[l],n}function Re(t,e,l){const n=t.slice();return n[19]=e[l],n}function dt(t){let e,l=t[24]+"",n;return{c(){e=v("p"),n=B(l)},m(i,o){E(i,e,o),f(e,n)},p(i,o){o&51&&l!==(l=i[24]+"")&&T(n,l)},d(i){i&&C(e)}}}function gt(t){let e,l,n,i,o,r,s,h,u,a,p,b,g,N,m=Object.keys(t[12][0]),k=[];for(let d=0;d<m.length;d+=1)k[d]=Ne(Re(t,m,d));let q=Object.keys(t[12][0]),O=[];for(let d=0;d<q.length;d+=1)O[d]=Me(Ae(t,q,d));let P=t[12],A=[];for(let d=0;d<P.length;d+=1)A[d]=Se(Ce(t,P,d));return{c(){e=v("div"),l=v("select");for(let d=0;d<k.length;d+=1)k[d].c();n=L(),i=v("input"),o=L(),r=v("button"),r.textContent="Search",s=L(),h=v("button"),h.textContent="Reset",u=L(),a=v("table"),p=v("tr");for(let d=0;d<O.length;d+=1)O[d].c();b=L();for(let d=0;d<A.length;d+=1)A[d].c();R(l,"name","query"),R(i,"placeholder","Query"),R(i,"type","text"),R(r,"type","button"),R(h,"type","button"),R(p,"class","svelte-1bs0eb4"),R(a,"class","svelte-1bs0eb4")},m(d,z){E(d,e,z),f(e,l);for(let c=0;c<k.length;c+=1)k[c]&&k[c].m(l,null);f(e,n),f(e,i),Oe(i,t[3]),f(e,o),f(e,r),f(e,s),f(e,h),E(d,u,z),E(d,a,z),f(a,p);for(let c=0;c<O.length;c+=1)O[c]&&O[c].m(p,null);f(a,b);for(let c=0;c<A.length;c+=1)A[c]&&A[c].m(a,null);g||(N=[J(l,"change",t[8]),J(i,"input",t[9]),J(r,"click",t[10]),J(h,"click",t[11])],g=!0)},p(d,z){if(z&115){m=Object.keys(d[12][0]);let c;for(c=0;c<m.length;c+=1){const F=Re(d,m,c);k[c]?k[c].p(F,z):(k[c]=Ne(F),k[c].c(),k[c].m(l,null))}for(;c<k.length;c+=1)k[c].d(1);k.length=m.length}if(z&8&&i.value!==d[3]&&Oe(i,d[3]),z&115){q=Object.keys(d[12][0]);let c;for(c=0;c<q.length;c+=1){const F=Ae(d,q,c);O[c]?O[c].p(F,z):(O[c]=Me(F),O[c].c(),O[c].m(p,null))}for(;c<O.length;c+=1)O[c].d(1);O.length=q.length}if(z&115){P=d[12];let c;for(c=0;c<P.length;c+=1){const F=Ce(d,P,c);A[c]?A[c].p(F,z):(A[c]=Se(F),A[c].c(),A[c].m(a,null))}for(;c<A.length;c+=1)A[c].d(1);A.length=P.length}},d(d){d&&C(e),W(k,d),d&&C(u),d&&C(a),W(O,d),W(A,d),g=!1,D(N)}}}function Ne(t){let e,l=t[19]+"",n,i;return{c(){e=v("option"),n=B(l),e.__value=i=t[19],e.value=e.__value},m(o,r){E(o,e,r),f(e,n)},p(o,r){r&51&&l!==(l=o[19]+"")&&T(n,l),r&51&&i!==(i=o[19])&&(e.__value=i,e.value=e.__value)},d(o){o&&C(e)}}}function Me(t){let e,l=t[19]+"",n;return{c(){e=v("th"),n=B(l),R(e,"class","svelte-1bs0eb4")},m(i,o){E(i,e,o),f(e,n)},p(i,o){o&51&&l!==(l=i[19]+"")&&T(n,l)},d(i){i&&C(e)}}}function Le(t){let e,l=t[16]+"",n;return{c(){e=v("td"),n=B(l),R(e,"class","svelte-1bs0eb4")},m(i,o){E(i,e,o),f(e,n)},p(i,o){o&51&&l!==(l=i[16]+"")&&T(n,l)},d(i){i&&C(e)}}}function Se(t){let e,l,n=Object.values(t[13]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Le(Ee(t,n,o));return{c(){e=v("tr");for(let o=0;o<i.length;o+=1)i[o].c();l=L(),R(e,"class","svelte-1bs0eb4")},m(o,r){E(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null);f(e,l)},p(o,r){if(r&115){n=Object.values(o[13]);let s;for(s=0;s<n.length;s+=1){const h=Ee(o,n,s);i[s]?i[s].p(h,r):(i[s]=Le(h),i[s].c(),i[s].m(e,l))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&C(e),W(i,o)}}}function mt(t){let e;return{c(){e=v("p"),e.textContent="Loading..."},m(l,n){E(l,e,n)},p:X,d(l){l&&C(e)}}}function pt(t){let e,l,n={ctx:t,current:null,token:null,hasCatch:!0,pending:mt,then:gt,catch:dt,value:12,error:24};return oe(l=t[6](t[1],qe,t[0],t[4],t[5]),n),{c(){e=v("section"),n.block.c()},m(i,o){E(i,e,o),n.block.m(e,n.anchor=null),n.mount=()=>e,n.anchor=null},p(i,[o]){t=i,n.ctx=t,o&51&&l!==(l=t[6](t[1],qe,t[0],t[4],t[5]))&&oe(l,n)||We(n,t,o)},i:X,o:X,d(i){i&&C(e),n.block.d(),n.token=null,n=null}}}let qe=10;function bt(t,e,l){let{path:n}=e,{page:i}=e,{limitReached:o}=e,r=null,s=null,h=null,u=null;async function a(m,k,q,O,P){try{const A=await ht(m,k,q,O,P);return l(7,o=A.length<k),A}catch(A){throw A.message}}const p=({currentTarget:m})=>l(2,r=m.value);function b(){s=this.value,l(3,s)}const g=()=>{l(0,i=0),l(4,h=r),l(5,u=s)},N=()=>{l(5,u=""),l(4,h=null),l(0,i=0)};return t.$$set=m=>{"path"in m&&l(1,n=m.path),"page"in m&&l(0,i=m.page),"limitReached"in m&&l(7,o=m.limitReached)},[i,n,r,s,h,u,a,o,p,b,g,N]}class vt extends fe{constructor(e){super(),ce(this,e,bt,pt,ue,{path:1,page:0,limitReached:7})}}var ve;(t=>{class e{constructor(n={}){j(this,"emp_id");j(this,"name_prefix");j(this,"first_name");j(this,"middle_initial");j(this,"last_name");j(this,"gender");j(this,"email");j(this,"fathers_name");j(this,"mothers_name");j(this,"mothers_maiden_name");j(this,"birthdate");j(this,"birth_time");j(this,"weight_kg");j(this,"joining_date");j(this,"joining_quarter");j(this,"joining_half");j(this,"joining_year");j(this,"joining_month");j(this,"joining_month_name");j(this,"joining_month_name_short");j(this,"joining_month_day");j(this,"joining_week_day");j(this,"joining_week_day_short");j(this,"years_of_service");j(this,"salary");j(this,"latest_hike_percentage");j(this,"ssn");j(this,"phone_number");j(this,"place_name");j(this,"county");j(this,"city");j(this,"state");j(this,"zip");j(this,"region");j(this,"username");j(this,"password");typeof n=="string"&&(n=JSON.parse(n)),this.emp_id=n.emp_id,this.name_prefix=n.name_prefix,this.first_name=n.first_name,this.middle_initial=n.middle_initial,this.last_name=n.last_name,this.gender=n.gender,this.email=n.email,this.fathers_name=n.fathers_name,this.mothers_name=n.mothers_name,this.mothers_maiden_name=n.mothers_maiden_name,this.birthdate=n.birthdate,this.birth_time=n.birth_time,this.weight_kg=n.weight_kg,this.joining_date=n.joining_date,this.joining_quarter=n.joining_quarter,this.joining_half=n.joining_half,this.joining_year=n.joining_year,this.joining_month=n.joining_month,this.joining_month_name=n.joining_month_name,this.joining_month_name_short=n.joining_month_name_short,this.joining_month_day=n.joining_month_day,this.joining_week_day=n.joining_week_day,this.joining_week_day_short=n.joining_week_day_short,this.years_of_service=n.years_of_service,this.salary=n.salary,this.latest_hike_percentage=n.latest_hike_percentage,this.ssn=n.ssn,this.phone_number=n.phone_number,this.place_name=n.place_name,this.county=n.county,this.city=n.city,this.state=n.state,this.zip=n.zip,this.region=n.region,this.username=n.username,this.password=n.password}static createFrom(n={}){return new e(n)}}t.Employee=e})(ve||(ve={}));function ze(t){let e,l,n,i,o,r,s;const h=t[3].default,u=et(h,t,t[2],null);return{c(){e=v("dialog"),l=v("div"),u&&u.c(),n=L(),i=v("button"),i.textContent="Close",R(l,"class","dialog svelte-rr3arx"),R(e,"class","backdrop svelte-rr3arx"),e.open=t[0]},m(a,p){E(a,e,p),f(e,l),u&&u.m(l,null),f(l,n),f(l,i),o=!0,r||(s=J(i,"click",t[4]),r=!0)},p(a,p){u&&u.p&&(!o||p&4)&&nt(u,h,a,a[2],o?tt(h,a[2],p,null):lt(a[2]),null),(!o||p&1)&&(e.open=a[0])},i(a){o||(U(u,a),o=!0)},o(a){V(u,a),o=!1},d(a){a&&C(e),u&&u.d(a),r=!1,s()}}}function kt(t){let e,l,n=t[0]&&ze(t);return{c(){n&&n.c(),e=De()},m(i,o){n&&n.m(i,o),E(i,e,o),l=!0},p(i,[o]){i[0]?n?(n.p(i,o),o&1&&U(n,1)):(n=ze(i),n.c(),U(n,1),n.m(e.parentNode,e)):n&&(ye(),V(n,1,1,()=>{n=null}),je())},i(i){l||(U(n),l=!0)},o(i){V(n),l=!1},d(i){n&&n.d(i),i&&C(e)}}}function yt(t,e,l){let{$$slots:n={},$$scope:i}=e,{isOpen:o}=e,{onClose:r}=e;const s=()=>r();return t.$$set=h=>{"isOpen"in h&&l(0,o=h.isOpen),"onClose"in h&&l(1,r=h.onClose),"$$scope"in h&&l(2,i=h.$$scope)},[o,r,i,n,s]}class jt extends fe{constructor(e){super(),ce(this,e,yt,kt,ue,{isOpen:0,onClose:1})}}function Be(t,e,l){const n=t.slice();return n[13]=e[l][0],n[14]=e[l][1],n}function Ge(t,e,l){const n=t.slice();return n[13]=e[l],n}function Pe(t,e,l){const n=t.slice();return n[13]=e[l],n}function Fe(t){let e,l=t[13]+"",n,i;return{c(){e=v("option"),n=B(l),e.__value=i=t[13],e.value=e.__value},m(o,r){E(o,e,r),f(e,n)},p(o,r){r&2&&l!==(l=o[13]+"")&&T(n,l),r&2&&i!==(i=o[13])&&(e.__value=i,e.value=e.__value)},d(o){o&&C(e)}}}function Ie(t){let e,l=t[13]+"",n,i;return{c(){e=v("option"),n=B(l),e.__value=i=t[13],e.value=e.__value},m(o,r){E(o,e,r),f(e,n)},p(o,r){r&2&&l!==(l=o[13]+"")&&T(n,l),r&2&&i!==(i=o[13])&&(e.__value=i,e.value=e.__value)},d(o){o&&C(e)}}}function Te(t){let e,l,n={ctx:t,current:null,token:null,hasCatch:!0,pending:Ct,then:Ot,catch:wt,value:12,error:17};return oe(l=t[5],n),{c(){e=v("section"),n.block.c()},m(i,o){E(i,e,o),n.block.m(e,n.anchor=null),n.mount=()=>e,n.anchor=null},p(i,o){t=i,n.ctx=t,o&32&&l!==(l=t[5])&&oe(l,n)||We(n,t,o)},d(i){i&&C(e),n.block.d(),n.token=null,n=null}}}function wt(t){let e,l=t[17]+"",n;return{c(){e=v("p"),n=B(l)},m(i,o){E(i,e,o),f(e,n)},p(i,o){o&32&&l!==(l=i[17]+"")&&T(n,l)},d(i){i&&C(e)}}}function Ot(t){let e,l,n,i,o,r,s,h,u,a,p=Object.entries(t[12]),b=[];for(let g=0;g<p.length;g+=1)b[g]=Ue(Be(t,p,g));return{c(){e=v("table"),l=v("tr"),n=v("th"),i=B(t[2]),o=L(),r=v("th"),s=B(t[4]),h=B(" of "),u=B(t[3]),a=L();for(let g=0;g<b.length;g+=1)b[g].c();R(n,"class","svelte-xmvjp8"),R(r,"class","svelte-xmvjp8"),R(l,"class","svelte-xmvjp8"),R(e,"class","agg-table svelte-xmvjp8")},m(g,N){E(g,e,N),f(e,l),f(l,n),f(n,i),f(l,o),f(l,r),f(r,s),f(r,h),f(r,u),f(e,a);for(let m=0;m<b.length;m+=1)b[m]&&b[m].m(e,null)},p(g,N){if(N&4&&T(i,g[2]),N&16&&T(s,g[4]),N&8&&T(u,g[3]),N&32){p=Object.entries(g[12]);let m;for(m=0;m<p.length;m+=1){const k=Be(g,p,m);b[m]?b[m].p(k,N):(b[m]=Ue(k),b[m].c(),b[m].m(e,null))}for(;m<b.length;m+=1)b[m].d(1);b.length=p.length}},d(g){g&&C(e),W(b,g)}}}function Ue(t){let e,l,n=t[13]+"",i,o,r,s=t[14]+"",h,u;return{c(){e=v("tr"),l=v("td"),i=B(n),o=L(),r=v("td"),h=B(s),u=L(),R(l,"class","svelte-xmvjp8"),R(r,"class","svelte-xmvjp8"),R(e,"class","svelte-xmvjp8")},m(a,p){E(a,e,p),f(e,l),f(l,i),f(e,o),f(e,r),f(r,h),f(e,u)},p(a,p){p&32&&n!==(n=a[13]+"")&&T(i,n),p&32&&s!==(s=a[14]+"")&&T(h,s)},d(a){a&&C(e)}}}function Ct(t){let e;return{c(){e=v("p"),e.textContent="Loading..."},m(l,n){E(l,e,n)},p:X,d(l){l&&C(e)}}}function Et(t){let e,l,n,i,o,r,s,h,u,a,p,b,g,N,m,k,q,O,P,A,d,z,c,F,K=t[1],_=[];for(let y=0;y<K.length;y+=1)_[y]=Fe(Pe(t,K,y));let M=t[1],S=[];for(let y=0;y<M.length;y+=1)S[y]=Ie(Ge(t,M,y));let G=t[5]&&Te(t);return{c(){e=v("section"),l=v("p"),l.textContent="Aggregation",n=L(),i=v("div"),o=v("label"),o.textContent="Group by:",r=L(),s=v("select");for(let y=0;y<_.length;y+=1)_[y].c();h=L(),u=v("div"),a=v("label"),a.textContent="On:",p=L(),b=v("select");for(let y=0;y<S.length;y+=1)S[y].c();g=L(),N=v("label"),N.textContent="Using:",m=L(),k=v("select"),q=v("option"),q.textContent="Average",O=v("option"),O.textContent="SUM",P=L(),A=v("button"),A.textContent="Aggregate",d=L(),G&&G.c(),z=De(),R(o,"for","group"),R(s,"name","group"),R(s,"id",""),t[2]===void 0&&ee(()=>t[7].call(s)),R(a,"for","on-column"),R(b,"name","on-column"),R(b,"id",""),t[3]===void 0&&ee(()=>t[8].call(b)),R(N,"for","function"),q.__value="AVG",q.value=q.__value,O.__value="SUM",O.value=O.__value,R(k,"name","function"),R(k,"id",""),t[4]===void 0&&ee(()=>t[9].call(k)),R(A,"type","button")},m(y,I){E(y,e,I),f(e,l),f(e,n),f(e,i),f(i,o),f(i,r),f(i,s);for(let w=0;w<_.length;w+=1)_[w]&&_[w].m(s,null);Y(s,t[2],!0),f(e,h),f(e,u),f(u,a),f(u,p),f(u,b);for(let w=0;w<S.length;w+=1)S[w]&&S[w].m(b,null);Y(b,t[3],!0),f(u,g),f(u,N),f(u,m),f(u,k),f(k,q),f(k,O),Y(k,t[4],!0),f(e,P),f(e,A),E(y,d,I),G&&G.m(y,I),E(y,z,I),c||(F=[J(s,"change",t[7]),J(b,"change",t[8]),J(k,"change",t[9]),J(A,"click",t[10])],c=!0)},p(y,I){if(I&2){K=y[1];let w;for(w=0;w<K.length;w+=1){const te=Pe(y,K,w);_[w]?_[w].p(te,I):(_[w]=Fe(te),_[w].c(),_[w].m(s,null))}for(;w<_.length;w+=1)_[w].d(1);_.length=K.length}if(I&6&&Y(s,y[2]),I&2){M=y[1];let w;for(w=0;w<M.length;w+=1){const te=Ge(y,M,w);S[w]?S[w].p(te,I):(S[w]=Ie(te),S[w].c(),S[w].m(b,null))}for(;w<S.length;w+=1)S[w].d(1);S.length=M.length}I&10&&Y(b,y[3]),I&16&&Y(k,y[4]),y[5]?G?G.p(y,I):(G=Te(y),G.c(),G.m(z.parentNode,z)):G&&(G.d(1),G=null)},d(y){y&&C(e),W(_,y),W(S,y),y&&C(d),G&&G.d(y),y&&C(z),c=!1,D(F)}}}function At(t){let e,l;return e=new jt({props:{isOpen:t[0],onClose:t[11],$$slots:{default:[Et]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(n,i){re(e,n,i),l=!0},p(n,[i]){const o={};i&1&&(o.isOpen=n[0]),i&1&&(o.onClose=n[11]),i&4194366&&(o.$$scope={dirty:i,ctx:n}),e.$set(o)},i(n){l||(U(e.$$.fragment,n),l=!0)},o(n){V(e.$$.fragment,n),l=!1},d(n){se(e,n)}}}function Rt(t,e,l){let{isOpen:n}=e,{keys:i}=e,o=null,r=null,s=null,h;async function u(){if(!(!o||!r||!s))try{return await _t(o,r,s)}catch(m){throw m.message}}function a(){o=ae(this),l(2,o),l(1,i)}function p(){r=ae(this),l(3,r),l(1,i)}function b(){s=ae(this),l(4,s)}const g=()=>l(5,h=u()),N=()=>{l(0,n=!1)};return t.$$set=m=>{"isOpen"in m&&l(0,n=m.isOpen),"keys"in m&&l(1,i=m.keys)},[n,i,o,r,s,h,u,a,p,b,g,N]}class Nt extends fe{constructor(e){super(),ce(this,e,Rt,At,ue,{isOpen:0,keys:1})}}function Je(t){let e,l,n,i,o,r,s,h,u,a=t[2]+1+"",p,b,g,N,m,k,q,O,P,A;function d(_){t[5](_)}function z(_){t[6](_)}let c={path:t[1]};t[2]!==void 0&&(c.page=t[2]),t[0]!==void 0&&(c.limitReached=t[0]),e=new vt({props:c}),ne.push(()=>de(e,"page",d)),ne.push(()=>de(e,"limitReached",z));function F(_){t[9](_)}let K={keys:t[4]};return t[3]!==void 0&&(K.isOpen=t[3]),k=new Nt({props:K}),ne.push(()=>de(k,"isOpen",F)),{c(){be(e.$$.fragment),i=L(),o=v("button"),r=B("Prev"),h=L(),u=v("span"),p=B(a),b=L(),g=v("button"),N=B("Next"),m=L(),be(k.$$.fragment),o.disabled=s=t[2]<1,g.disabled=t[0]},m(_,M){re(e,_,M),E(_,i,M),E(_,o,M),f(o,r),E(_,h,M),E(_,u,M),f(u,p),E(_,b,M),E(_,g,M),f(g,N),E(_,m,M),re(k,_,M),O=!0,P||(A=[J(o,"click",t[7]),J(g,"click",t[8])],P=!0)},p(_,M){const S={};M&2&&(S.path=_[1]),!l&&M&4&&(l=!0,S.page=_[2],_e(()=>l=!1)),!n&&M&1&&(n=!0,S.limitReached=_[0],_e(()=>n=!1)),e.$set(S),(!O||M&4&&s!==(s=_[2]<1))&&(o.disabled=s),(!O||M&4)&&a!==(a=_[2]+1+"")&&T(p,a),(!O||M&1)&&(g.disabled=_[0]);const G={};!q&&M&8&&(q=!0,G.isOpen=_[3],_e(()=>q=!1)),k.$set(G)},i(_){O||(U(e.$$.fragment,_),U(k.$$.fragment,_),O=!0)},o(_){V(e.$$.fragment,_),V(k.$$.fragment,_),O=!1},d(_){se(e,_),_&&C(i),_&&C(o),_&&C(h),_&&C(u),_&&C(b),_&&C(g),_&&C(m),se(k,_),P=!1,D(A)}}}function Mt(t){let e,l,n=t[1]&&Je(t);return{c(){e=v("main"),n&&n.c()},m(i,o){E(i,e,o),n&&n.m(e,null),l=!0},p(i,[o]){i[1]?n?(n.p(i,o),o&2&&U(n,1)):(n=Je(i),n.c(),U(n,1),n.m(e,null)):n&&(ye(),V(n,1,1,()=>{n=null}),je())},i(i){l||(U(n),l=!0)},o(i){V(n),l=!1},d(i){i&&C(e),n&&n.d()}}}function Lt(t,e,l){let n,i=0,o=!1,r;const s=Object.keys(new ve.Employee);ot(async()=>{ge("proto-opened",g=>{l(1,n=g)}),ge("csv-converted",g=>{console.log(g)}),ge("aggregation",()=>{l(3,o=!0)})});function h(g){i=g,l(2,i)}function u(g){r=g,l(0,r)}const a=()=>l(2,i--,i),p=()=>l(2,i++,i);function b(g){o=g,l(3,o)}return t.$$.update=()=>{t.$$.dirty&1&&console.log(r)},[r,n,i,o,s,h,u,a,p,b]}class St extends fe{constructor(e){super(),ce(this,e,Lt,Mt,ue,{})}}new St({target:document.getElementById("app")});