Spaces:
Running
Running
import{P as hl,s as be,r as se,i as v,g as _,T as ye,v as Me,R as ie,U as Ve,N as Ke,e as z,b as R,d as Q,a9 as Ae,aa as je,z as ce,c as Ce,u as ve,m as Se,n as we,a8 as $t,Q as el,q as ot,l as Fe,X as qt,h as L,t as dt,M as U,j as Y,ap as Kr,L as ht,a as J,f as Z,w as me,x as he,aq as Pt,ar as pr,o as Ml,ab as Xl,ae as pl,y as De,ah as Yi,al as Il,ag as Ql,p as st,ac as xt,ak as gl,af as Jr,Y as Bt,a7 as Zr,G as Fl,H as Nl,F as xr,as as $r,at as es,aj as ts}from"../chunks/scheduler.C39PMv9a.js";import{S as ke,i as pe,g as _e,a as C,c as ge,t as k,h as Cr,j as Cl,f as ft,k as vl,b as $,d as ee,m as te,e as le}from"../chunks/index.Te5Nl1-a.js";import{c as ls,w as is,a3 as ns,m as ul,Z as Ki,l as vi,_ as rs,$ as Si,j as Ji,k as Pl,H as ss,d as os,G as fs,r as Bl,E as ql,q as as,g as Ne,e as Ye,u as vr,o as Sr,aW as us,aX as Sl,aY as cs,aZ as Jl,a_ as wr,a$ as Yl,b0 as ds,b1 as ms,b2 as hs,b3 as _s,b4 as gs,b5 as bs,v as Ct,I as Zl,b6 as Zi,b7 as cl,b8 as ys,b9 as ks,a4 as ps,ba as xi,bb as Ii,bc as Fi,bd as Cs,be as vs,bf as Ss,bg as Ai,Q as mt,bh as ws,bi as Ts,bj as $i,z as en}from"../chunks/VennDiagram.svelte_svelte_type_style_lang.CsZ_419R.js";import{w as bl,d as Tt,r as Es}from"../chunks/entry.DVM04UoV.js";import{d as Os,u as As,g as tn,b as Ls,r as Ds,h as ln,c as Ms,e as Is,B as Fs,f as Vl,p as Ns}from"../chunks/button.D433Vp8d.js";import{I as Tr,f as et,t as It,m as wi,s as Ps,g as kt,e as zl,h as Bs}from"../chunks/CopyIcon.CEhmzIEn.js";import{p as Ni}from"../chunks/stores.BB-YxxR_.js";import{t as nn,o as qs,g as Vs,c as Er,r as Or,b as Ar,d as zs,e as Pe,h as Rs}from"../chunks/utils.BDQpoGd-.js";import{M as js,a as Lr,b as Hs}from"../chunks/index.BUqOVkrY.js";import{d as Li,Q as Dr,f as pt,D as Pi,g as Ul,b as ml,u as at,C as Gs,e as Ws,n as Us,h as Di,c as rn,s as Xs,p as Mr,i as Ir,a as Fr,E as Nr,j as Qs}from"../chunks/colours.B0YzTcYf.js";import{s as _t,d as Pr,f as Ys}from"../chunks/index.Cx6KSiTC.js";import{C as Br,P as qr}from"../chunks/Prismjs.9fzz7lN3.js";const Ks=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global,Mi=(n,e={serializeStrings:!0})=>n==null?"null":typeof n=="string"?e.serializeStrings!==!1?`'${n.replaceAll("'","''")}'`:n:typeof n=="number"||typeof n=="bigint"||typeof n=="boolean"?String(n):n instanceof Date?`'${n.toISOString()}'::TIMESTAMP_MS`:Array.isArray(n)?`[${n.map(t=>Mi(t,e)).join(", ")}]`:JSON.stringify(n),Js={positioning:{placement:"bottom"},arrowSize:8,defaultOpen:!1,disableFocusTrap:!1,closeOnEscape:!0,preventScroll:!1,onOpenChange:void 0,closeOnOutsideClick:!0,portal:void 0,forceVisible:!1,openFocus:void 0,closeFocus:void 0,onOutsideClick:void 0},{name:dl}=os("popover"),Zs=["trigger","content"];function xs(n){const e={...Js,...n},t=nn(ls(e,"open","ids")),{positioning:l,arrowSize:i,disableFocusTrap:r,preventScroll:s,closeOnEscape:f,closeOnOutsideClick:o,portal:a,forceVisible:u,openFocus:c,closeFocus:d,onOutsideClick:g}=t,m=e.open??bl(e.defaultOpen),h=qs(m,e==null?void 0:e.onOpenChange),b=is.writable(null),p=nn({...Vs(Zs),...e.ids});ns(()=>{b.set(document.getElementById(p.trigger.get()))});function y(){h.set(!1);const q=document.getElementById(p.trigger.get());ln({prop:d.get(),defaultEl:q})}const S=Os({open:h,activeTrigger:b,forceVisible:u}),E=ul(dl("content"),{stores:[S,a,p.content],returned:([q,A,M])=>({hidden:q&&Ki?void 0:!0,tabindex:-1,style:vi({display:q?void 0:"none"}),id:M,"data-state":q?"open":"closed","data-portal":rs(A)}),action:q=>{let A=ql;const M=Si([S,b,l,r,f,o,a],([B,re,ne,ae,W,oe,x])=>{A(),!(!B||!re)&&hl().then(()=>{A(),A=As(q,{anchorElement:re,open:h,options:{floating:ne,focusTrap:ae?null:{returnFocusOnDeactivate:!1,clickOutsideDeactivates:oe,allowOutsideClick:!0,escapeDeactivates:W},modal:{shouldCloseOnInteractOutside:G,onClose:y,open:B,closeOnInteractOutside:oe},escapeKeydown:W?{handler:()=>{y()}}:null,portal:tn(q,x)}}).destroy})});return{destroy(){M(),A()}}}});function D(q){h.update(A=>!A),q&&q!==b.get()&&b.set(q)}function G(q){var B;if((B=g.get())==null||B(q),q.defaultPrevented)return!1;const A=q.target,M=document.getElementById(p.trigger.get());return!(M&&fs(A)&&(A===M||M.contains(A)))}const P=ul(dl("trigger"),{stores:[S,p.content,p.trigger],returned:([q,A,M])=>({role:"button","aria-haspopup":"dialog","aria-expanded":q?"true":"false","data-state":sn(q),"aria-controls":A,id:M}),action:q=>({destroy:Ji(Pl(q,"click",()=>{D(q)}),Pl(q,"keydown",M=>{M.key!==Bl.ENTER&&M.key!==Bl.SPACE||(M.preventDefault(),D(q))}))})}),w=ul(dl("overlay"),{stores:[S],returned:([q])=>({hidden:q?void 0:!0,tabindex:-1,style:vi({display:q?void 0:"none"}),"aria-hidden":"true","data-state":sn(q)}),action:q=>{let A=ql,M=ql,B=ql;if(f.get()){const re=ss(q,{handler:()=>{y()}});re&&re.destroy&&(A=re.destroy)}return M=Si([a],([re])=>{if(B(),re===null)return;const ne=tn(q,re);ne!==null&&(B=Ls(q,ne).destroy)}),{destroy(){A(),M(),B()}}}}),T=ul(dl("arrow"),{stores:i,returned:q=>({"data-arrow":!0,style:vi({position:"absolute",width:`var(--arrow-size, ${q}px)`,height:`var(--arrow-size, ${q}px)`})})}),N=ul(dl("close"),{returned:()=>({type:"button"}),action:q=>({destroy:Ji(Pl(q,"click",M=>{M.defaultPrevented||y()}),Pl(q,"keydown",M=>{M.defaultPrevented||M.key!==Bl.ENTER&&M.key!==Bl.SPACE||(M.preventDefault(),D())}))})});return Si([h,b,s],([q,A,M])=>{if(!Ki)return;const B=[];if(q){A||hl().then(()=>{const ne=document.getElementById(p.trigger.get());as(ne)&&b.set(ne)}),M&&B.push(Ds());const re=A??document.getElementById(p.trigger.get());ln({prop:c.get(),defaultEl:re})}return()=>{B.forEach(re=>re())}}),{ids:p,elements:{trigger:P,content:E,arrow:T,close:N,overlay:w},states:{open:h},options:t}}function sn(n){return n?"open":"closed"}function $s(){return{NAME:"separator",PARTS:["root"]}}function eo(n){const{NAME:e,PARTS:t}=$s(),l=Er(e,t),i={...Ms(Or(n)),getAttrs:l};return{...i,updateOption:Ar(i.options)}}const to=n=>({builder:n&4}),on=n=>({builder:n[2]});function lo(n){let e,t,l,i=[n[2],n[4]],r={};for(let s=0;s<i.length;s+=1)r=ie(r,i[s]);return{c(){e=z("div"),this.h()},l(s){e=R(s,"DIV",{}),Q(e).forEach(_),this.h()},h(){Ae(e,r)},m(s,f){v(s,e,f),n[10](e),t||(l=je(n[2].action(e)),t=!0)},p(s,f){Ae(e,r=Ne(i,[f&4&&s[2],f&16&&s[4]]))},i:ce,o:ce,d(s){s&&_(e),n[10](null),t=!1,l()}}}function io(n){let e;const t=n[9].default,l=Ce(t,n,n[8],on);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&260)&&ve(l,t,i,i[8],e?we(t,i[8],r,to):Se(i[8]),on)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function no(n){let e,t,l,i;const r=[io,lo],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function ro(n,e,t){let l;const i=["orientation","decorative","asChild","el"];let r=ye(e,i),s,{$$slots:f={},$$scope:o}=e,{orientation:a="horizontal"}=e,{decorative:u=!0}=e,{asChild:c=!1}=e,{el:d=void 0}=e;const{elements:{root:g},updateOption:m,getAttrs:h}=eo({orientation:a,decorative:u});Me(n,g,y=>t(7,s=y));const b=h("root");function p(y){Ke[y?"unshift":"push"](()=>{d=y,t(0,d)})}return n.$$set=y=>{e=ie(ie({},e),Ve(y)),t(4,r=ye(e,i)),"orientation"in y&&t(5,a=y.orientation),"decorative"in y&&t(6,u=y.decorative),"asChild"in y&&t(1,c=y.asChild),"el"in y&&t(0,d=y.el),"$$scope"in y&&t(8,o=y.$$scope)},n.$$.update=()=>{n.$$.dirty&32&&m("orientation",a),n.$$.dirty&64&&m("decorative",u),n.$$.dirty&128&&t(2,l=s),n.$$.dirty&4&&Object.assign(l,b)},[d,c,l,g,r,a,u,s,o,f,p]}let so=class extends ke{constructor(e){super(),pe(this,e,ro,no,be,{orientation:5,decorative:6,asChild:1,el:0})}};function Vr(){return{NAME:"popover",PARTS:["arrow","close","content","trigger"]}}function oo(n){const{NAME:e,PARTS:t}=Vr(),l=Er(e,t),i={...xs({positioning:{placement:"bottom",gutter:0},...Or(n),forceVisible:!0}),getAttrs:l};return $t(e,i),{...i,updateOption:Ar(i.options)}}function Bi(){const{NAME:n}=Vr();return el(n)}function fo(n){const t={...{side:"bottom",align:"center"},...n},{options:{positioning:l}}=Bi();Is(l)(t)}const ao=n=>({ids:n&1}),fn=n=>({ids:n[0]});function uo(n){let e;const t=n[13].default,l=Ce(t,n,n[12],fn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,[r]){l&&l.p&&(!e||r&4097)&&ve(l,t,i,i[12],e?we(t,i[12],r,ao):Se(i[12]),fn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function co(n,e,t){let l,{$$slots:i={},$$scope:r}=e,{disableFocusTrap:s=void 0}=e,{closeOnEscape:f=void 0}=e,{closeOnOutsideClick:o=void 0}=e,{preventScroll:a=void 0}=e,{portal:u=void 0}=e,{open:c=void 0}=e,{onOpenChange:d=void 0}=e,{openFocus:g=void 0}=e,{closeFocus:m=void 0}=e,{onOutsideClick:h=void 0}=e;const{updateOption:b,states:{open:p},ids:y}=oo({disableFocusTrap:s,closeOnEscape:f,closeOnOutsideClick:o,preventScroll:a,portal:u,defaultOpen:c,openFocus:g,closeFocus:m,onOutsideClick:h,onOpenChange:({next:E})=>(c!==E&&(d==null||d(E),t(2,c=E)),E),positioning:{gutter:0,offset:{mainAxis:1}}}),S=Tt([y.content,y.trigger],([E,D])=>({content:E,trigger:D}));return Me(n,S,E=>t(0,l=E)),n.$$set=E=>{"disableFocusTrap"in E&&t(3,s=E.disableFocusTrap),"closeOnEscape"in E&&t(4,f=E.closeOnEscape),"closeOnOutsideClick"in E&&t(5,o=E.closeOnOutsideClick),"preventScroll"in E&&t(6,a=E.preventScroll),"portal"in E&&t(7,u=E.portal),"open"in E&&t(2,c=E.open),"onOpenChange"in E&&t(8,d=E.onOpenChange),"openFocus"in E&&t(9,g=E.openFocus),"closeFocus"in E&&t(10,m=E.closeFocus),"onOutsideClick"in E&&t(11,h=E.onOutsideClick),"$$scope"in E&&t(12,r=E.$$scope)},n.$$.update=()=>{n.$$.dirty&4&&c!==void 0&&p.set(c),n.$$.dirty&8&&b("disableFocusTrap",s),n.$$.dirty&16&&b("closeOnEscape",f),n.$$.dirty&32&&b("closeOnOutsideClick",o),n.$$.dirty&64&&b("preventScroll",a),n.$$.dirty&128&&b("portal",u),n.$$.dirty&512&&b("openFocus",g),n.$$.dirty&1024&&b("closeFocus",m),n.$$.dirty&2048&&b("onOutsideClick",h)},[l,S,c,s,f,o,a,u,d,g,m,h,r,i]}class mo extends ke{constructor(e){super(),pe(this,e,co,uo,be,{disableFocusTrap:3,closeOnEscape:4,closeOnOutsideClick:5,preventScroll:6,portal:7,open:2,onOpenChange:8,openFocus:9,closeFocus:10,onOutsideClick:11})}}const ho=n=>({builder:n[0]&256}),an=n=>({builder:n[8]}),_o=n=>({builder:n[0]&256}),un=n=>({builder:n[8]}),go=n=>({builder:n[0]&256}),cn=n=>({builder:n[8]}),bo=n=>({builder:n[0]&256}),dn=n=>({builder:n[8]}),yo=n=>({builder:n[0]&256}),mn=n=>({builder:n[8]}),ko=n=>({builder:n[0]&256}),hn=n=>({builder:n[8]});function po(n){let e,t,l,i;const r=n[27].default,s=Ce(r,n,n[26],an);let f=[n[8],n[12]],o={};for(let a=0;a<f.length;a+=1)o=ie(o,f[a]);return{c(){e=z("div"),s&&s.c(),this.h()},l(a){e=R(a,"DIV",{});var u=Q(e);s&&s.l(u),u.forEach(_),this.h()},h(){Ae(e,o)},m(a,u){v(a,e,u),s&&s.m(e,null),n[32](e),t=!0,l||(i=je(n[8].action(e)),l=!0)},p(a,u){s&&s.p&&(!t||u[0]&67109120)&&ve(s,r,a,a[26],t?we(r,a[26],u,ho):Se(a[26]),an),Ae(e,o=Ne(f,[u[0]&256&&a[8],u[0]&4096&&a[12]]))},i(a){t||(k(s,a),t=!0)},o(a){C(s,a),t=!1},d(a){a&&_(e),s&&s.d(a),n[32](null),l=!1,i()}}}function Co(n){let e,t,l,i,r;const s=n[27].default,f=Ce(s,n,n[26],un);let o=[n[8],n[12]],a={};for(let u=0;u<o.length;u+=1)a=ie(a,o[u]);return{c(){e=z("div"),f&&f.c(),this.h()},l(u){e=R(u,"DIV",{});var c=Q(e);f&&f.l(c),c.forEach(_),this.h()},h(){Ae(e,a)},m(u,c){v(u,e,c),f&&f.m(e,null),n[31](e),l=!0,i||(r=je(n[8].action(e)),i=!0)},p(u,c){n=u,f&&f.p&&(!l||c[0]&67109120)&&ve(f,s,n,n[26],l?we(s,n[26],c,_o):Se(n[26]),un),Ae(e,a=Ne(o,[c[0]&256&&n[8],c[0]&4096&&n[12]]))},i(u){l||(k(f,u),t&&t.end(1),l=!0)},o(u){C(f,u),u&&(t=Cr(e,n[5],n[6])),l=!1},d(u){u&&_(e),f&&f.d(u),n[31](null),u&&t&&t.end(),i=!1,r()}}}function vo(n){let e,t,l,i,r;const s=n[27].default,f=Ce(s,n,n[26],cn);let o=[n[8],n[12]],a={};for(let u=0;u<o.length;u+=1)a=ie(a,o[u]);return{c(){e=z("div"),f&&f.c(),this.h()},l(u){e=R(u,"DIV",{});var c=Q(e);f&&f.l(c),c.forEach(_),this.h()},h(){Ae(e,a)},m(u,c){v(u,e,c),f&&f.m(e,null),n[30](e),l=!0,i||(r=je(n[8].action(e)),i=!0)},p(u,c){n=u,f&&f.p&&(!l||c[0]&67109120)&&ve(f,s,n,n[26],l?we(s,n[26],c,go):Se(n[26]),cn),Ae(e,a=Ne(o,[c[0]&256&&n[8],c[0]&4096&&n[12]]))},i(u){l||(k(f,u),u&&(t||ot(()=>{t=Cl(e,n[3],n[4]),t.start()})),l=!0)},o(u){C(f,u),l=!1},d(u){u&&_(e),f&&f.d(u),n[30](null),i=!1,r()}}}function So(n){let e,t,l,i,r,s;const f=n[27].default,o=Ce(f,n,n[26],dn);let a=[n[8],n[12]],u={};for(let c=0;c<a.length;c+=1)u=ie(u,a[c]);return{c(){e=z("div"),o&&o.c(),this.h()},l(c){e=R(c,"DIV",{});var d=Q(e);o&&o.l(d),d.forEach(_),this.h()},h(){Ae(e,u)},m(c,d){v(c,e,d),o&&o.m(e,null),n[29](e),i=!0,r||(s=je(n[8].action(e)),r=!0)},p(c,d){n=c,o&&o.p&&(!i||d[0]&67109120)&&ve(o,f,n,n[26],i?we(f,n[26],d,bo):Se(n[26]),dn),Ae(e,u=Ne(a,[d[0]&256&&n[8],d[0]&4096&&n[12]]))},i(c){i||(k(o,c),c&&ot(()=>{i&&(l&&l.end(1),t=Cl(e,n[3],n[4]),t.start())}),i=!0)},o(c){C(o,c),t&&t.invalidate(),c&&(l=Cr(e,n[5],n[6])),i=!1},d(c){c&&_(e),o&&o.d(c),n[29](null),c&&l&&l.end(),r=!1,s()}}}function wo(n){let e,t,l,i,r;const s=n[27].default,f=Ce(s,n,n[26],mn);let o=[n[8],n[12]],a={};for(let u=0;u<o.length;u+=1)a=ie(a,o[u]);return{c(){e=z("div"),f&&f.c(),this.h()},l(u){e=R(u,"DIV",{});var c=Q(e);f&&f.l(c),c.forEach(_),this.h()},h(){Ae(e,a)},m(u,c){v(u,e,c),f&&f.m(e,null),n[28](e),l=!0,i||(r=je(n[8].action(e)),i=!0)},p(u,c){n=u,f&&f.p&&(!l||c[0]&67109120)&&ve(f,s,n,n[26],l?we(s,n[26],c,yo):Se(n[26]),mn),Ae(e,a=Ne(o,[c[0]&256&&n[8],c[0]&4096&&n[12]]))},i(u){l||(k(f,u),u&&ot(()=>{l&&(t||(t=ft(e,n[1],n[2],!0)),t.run(1))}),l=!0)},o(u){C(f,u),u&&(t||(t=ft(e,n[1],n[2],!1)),t.run(0)),l=!1},d(u){u&&_(e),f&&f.d(u),n[28](null),u&&t&&t.end(),i=!1,r()}}}function To(n){let e;const t=n[27].default,l=Ce(t,n,n[26],hn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r[0]&67109120)&&ve(l,t,i,i[26],e?we(t,i[26],r,ko):Se(i[26]),hn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Eo(n){let e,t,l,i;const r=[To,wo,So,vo,Co,po],s=[];function f(o,a){return o[7]&&o[9]?0:o[1]&&o[9]?1:o[3]&&o[5]&&o[9]?2:o[3]&&o[9]?3:o[5]&&o[9]?4:o[9]?5:-1}return~(e=f(n))&&(t=s[e]=r[e](n)),{c(){t&&t.c(),l=se()},l(o){t&&t.l(o),l=se()},m(o,a){~e&&s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?~e&&s[e].p(o,a):(t&&(_e(),C(s[u],1,1,()=>{s[u]=null}),ge()),~e?(t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l)):t=null)},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),~e&&s[e].d(o)}}}function Oo(n,e,t){let l;const i=["transition","transitionConfig","inTransition","inTransitionConfig","outTransition","outTransitionConfig","asChild","id","side","align","sideOffset","alignOffset","collisionPadding","avoidCollisions","collisionBoundary","sameWidth","fitViewport","strategy","overlap","el"];let r=ye(e,i),s,f,{$$slots:o={},$$scope:a}=e,{transition:u=void 0}=e,{transitionConfig:c=void 0}=e,{inTransition:d=void 0}=e,{inTransitionConfig:g=void 0}=e,{outTransition:m=void 0}=e,{outTransitionConfig:h=void 0}=e,{asChild:b=!1}=e,{id:p=void 0}=e,{side:y="bottom"}=e,{align:S="center"}=e,{sideOffset:E=0}=e,{alignOffset:D=0}=e,{collisionPadding:G=8}=e,{avoidCollisions:P=!0}=e,{collisionBoundary:w=void 0}=e,{sameWidth:T=!1}=e,{fitViewport:N=!1}=e,{strategy:q="absolute"}=e,{overlap:A=!1}=e,{el:M=void 0}=e;const{elements:{content:B},states:{open:re},ids:ne,getAttrs:ae}=Bi();Me(n,B,H=>t(25,f=H)),Me(n,re,H=>t(9,s=H));const W=ae("content");function oe(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}function x(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}function X(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}function I(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}function K(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}return n.$$set=H=>{e=ie(ie({},e),Ve(H)),t(12,r=ye(e,i)),"transition"in H&&t(1,u=H.transition),"transitionConfig"in H&&t(2,c=H.transitionConfig),"inTransition"in H&&t(3,d=H.inTransition),"inTransitionConfig"in H&&t(4,g=H.inTransitionConfig),"outTransition"in H&&t(5,m=H.outTransition),"outTransitionConfig"in H&&t(6,h=H.outTransitionConfig),"asChild"in H&&t(7,b=H.asChild),"id"in H&&t(13,p=H.id),"side"in H&&t(14,y=H.side),"align"in H&&t(15,S=H.align),"sideOffset"in H&&t(16,E=H.sideOffset),"alignOffset"in H&&t(17,D=H.alignOffset),"collisionPadding"in H&&t(18,G=H.collisionPadding),"avoidCollisions"in H&&t(19,P=H.avoidCollisions),"collisionBoundary"in H&&t(20,w=H.collisionBoundary),"sameWidth"in H&&t(21,T=H.sameWidth),"fitViewport"in H&&t(22,N=H.fitViewport),"strategy"in H&&t(23,q=H.strategy),"overlap"in H&&t(24,A=H.overlap),"el"in H&&t(0,M=H.el),"$$scope"in H&&t(26,a=H.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&8192&&p&&ne.content.set(p),n.$$.dirty[0]&33554432&&t(8,l=f),n.$$.dirty[0]&256&&Object.assign(l,W),n.$$.dirty[0]&33538560&&s&&fo({side:y,align:S,sideOffset:E,alignOffset:D,collisionPadding:G,avoidCollisions:P,collisionBoundary:w,sameWidth:T,fitViewport:N,strategy:q,overlap:A})},[M,u,c,d,g,m,h,b,l,s,B,re,r,p,y,S,E,D,G,P,w,T,N,q,A,f,a,o,oe,x,X,I,K]}let Ao=class extends ke{constructor(e){super(),pe(this,e,Oo,Eo,be,{transition:1,transitionConfig:2,inTransition:3,inTransitionConfig:4,outTransition:5,outTransitionConfig:6,asChild:7,id:13,side:14,align:15,sideOffset:16,alignOffset:17,collisionPadding:18,avoidCollisions:19,collisionBoundary:20,sameWidth:21,fitViewport:22,strategy:23,overlap:24,el:0},null,[-1,-1])}};const Lo=n=>({builder:n&4}),_n=n=>({builder:n[2]}),Do=n=>({builder:n&4}),gn=n=>({builder:n[2]});function Mo(n){let e,t,l,i;const r=n[12].default,s=Ce(r,n,n[11],_n);let f=[n[2],{type:"button"},n[6]],o={};for(let a=0;a<f.length;a+=1)o=ie(o,f[a]);return{c(){e=z("button"),s&&s.c(),this.h()},l(a){e=R(a,"BUTTON",{type:!0});var u=Q(e);s&&s.l(u),u.forEach(_),this.h()},h(){Ae(e,o)},m(a,u){v(a,e,u),s&&s.m(e,null),e.autofocus&&e.focus(),n[13](e),t=!0,l||(i=[je(n[2].action(e)),Fe(e,"m-click",n[5]),Fe(e,"m-keydown",n[5])],l=!0)},p(a,u){s&&s.p&&(!t||u&2052)&&ve(s,r,a,a[11],t?we(r,a[11],u,Lo):Se(a[11]),_n),Ae(e,o=Ne(f,[u&4&&a[2],{type:"button"},u&64&&a[6]]))},i(a){t||(k(s,a),t=!0)},o(a){C(s,a),t=!1},d(a){a&&_(e),s&&s.d(a),n[13](null),l=!1,qt(i)}}}function Io(n){let e;const t=n[12].default,l=Ce(t,n,n[11],gn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&2052)&&ve(l,t,i,i[11],e?we(t,i[11],r,Do):Se(i[11]),gn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Fo(n){let e,t,l,i;const r=[Io,Mo],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function No(n,e,t){let l,i;const r=["asChild","id","el"];let s=ye(e,r),f,o,{$$slots:a={},$$scope:u}=e,{asChild:c=!1}=e,{id:d=void 0}=e,{el:g=void 0}=e;const{elements:{trigger:m},states:{open:h},ids:b,getAttrs:p}=Bi();Me(n,m,D=>t(9,f=D)),Me(n,h,D=>t(10,o=D));const y=zs(),S=p("trigger");function E(D){Ke[D?"unshift":"push"](()=>{g=D,t(0,g)})}return n.$$set=D=>{e=ie(ie({},e),Ve(D)),t(6,s=ye(e,r)),"asChild"in D&&t(1,c=D.asChild),"id"in D&&t(7,d=D.id),"el"in D&&t(0,g=D.el),"$$scope"in D&&t(11,u=D.$$scope)},n.$$.update=()=>{n.$$.dirty&128&&d&&b.trigger.set(d),n.$$.dirty&1024&&t(8,l={...S,"aria-controls":o?b.content:void 0}),n.$$.dirty&512&&t(2,i=f),n.$$.dirty&260&&Object.assign(i,l)},[g,c,i,m,h,y,s,d,l,f,o,u,a,E]}class Po extends ke{constructor(e){super(),pe(this,e,No,Fo,be,{asChild:1,id:7,el:0})}}function Bo(n){let e,t;const l=n[2].default,i=Ce(l,n,n[1],null);return{c(){e=z("div"),i&&i.c(),this.h()},l(r){e=R(r,"DIV",{class:!0});var s=Q(e);i&&i.l(s),s.forEach(_),this.h()},h(){L(e,"class","contents"),dt(e,"print:hidden",n[0])},m(r,s){v(r,e,s),i&&i.m(e,null),t=!0},p(r,[s]){i&&i.p&&(!t||s&2)&&ve(i,l,r,r[1],t?we(l,r[1],s,null):Se(r[1]),null),(!t||s&1)&&dt(e,"print:hidden",r[0])},i(r){t||(k(i,r),t=!0)},o(r){C(i,r),t=!1},d(r){r&&_(e),i&&i.d(r)}}}function qo(n,e,t){let{$$slots:l={},$$scope:i}=e,{enabled:r=!0}=e;return n.$$set=s=>{"enabled"in s&&t(0,r=s.enabled),"$$scope"in s&&t(1,i=s.$$scope)},[r,i,l]}class Vo extends ke{constructor(e){super(),pe(this,e,qo,Bo,be,{enabled:0})}}function bn(n,e,t){const l=n.slice();return l[22]=e[t],l}const zo=n=>({item:n&16}),yn=n=>({item:n[22].data});function Ro(n){let e;return{c(){e=me("Missing template")},l(t){e=he(t,"Missing template")},m(t,l){v(t,e,l)},d(t){t&&_(e)}}}function kn(n,e){let t,l,i;const r=e[14].default,s=Ce(r,e,e[13],yn),f=s||Ro();return{key:n,first:null,c(){t=z("div"),f&&f.c(),l=J(),this.h()},l(o){t=R(o,"DIV",{class:!0});var a=Q(t);f&&f.l(a),l=Z(a),a.forEach(_),this.h()},h(){L(t,"class","row svelte-851usv"),this.first=t},m(o,a){v(o,t,a),f&&f.m(t,null),Y(t,l),i=!0},p(o,a){e=o,s&&s.p&&(!i||a&8208)&&ve(s,r,e,e[13],i?we(r,e[13],a,zo):Se(e[13]),yn)},i(o){i||(k(f,o),i=!0)},o(o){C(f,o),i=!1},d(o){o&&_(t),f&&f.d(o)}}}function jo(n){let e,t,l=[],i=new Map,r,s,f,o,a=Ye(n[4]);const u=c=>c[22].index;for(let c=0;c<a.length;c+=1){let d=bn(n,a,c),g=u(d);i.set(g,l[c]=kn(g,d))}return{c(){e=z("div"),t=z("div");for(let c=0;c<l.length;c+=1)l[c].c();this.h()},l(c){e=R(c,"DIV",{style:!0,class:!0});var d=Q(e);t=R(d,"DIV",{class:!0,style:!0});var g=Q(t);for(let m=0;m<l.length;m+=1)l[m].l(g);g.forEach(_),d.forEach(_),this.h()},h(){L(t,"class","contents svelte-851usv"),U(t,"padding-top",n[5]+"px"),U(t,"padding-bottom",n[6]+"px"),U(e,"height",n[0]),L(e,"class","viewport svelte-851usv"),ot(()=>n[17].call(e))},m(c,d){v(c,e,d),Y(e,t);for(let g=0;g<l.length;g+=1)l[g]&&l[g].m(t,null);n[15](t),n[16](e),r=Kr(e,n[17].bind(e)),s=!0,f||(o=Fe(e,"scroll",n[7]),f=!0)},p(c,[d]){d&8208&&(a=Ye(c[4]),_e(),l=vr(l,d,u,1,c,a,i,t,Sr,kn,null,bn),ge()),(!s||d&32)&&U(t,"padding-top",c[5]+"px"),(!s||d&64)&&U(t,"padding-bottom",c[6]+"px"),(!s||d&1)&&U(e,"height",c[0])},i(c){if(!s){for(let d=0;d<a.length;d+=1)k(l[d]);s=!0}},o(c){for(let d=0;d<l.length;d+=1)C(l[d]);s=!1},d(c){c&&_(e);for(let d=0;d<l.length;d+=1)l[d].d();n[15](null),n[16](null),r(),f=!1,o()}}}function Ho(n,e,t){let{$$slots:l={},$$scope:i}=e,{items:r}=e,{height:s="100%"}=e,{itemHeight:f=void 0}=e,{start:o=0}=e,{end:a=0}=e,u=[],c,d,g,m=0,h,b,p=0,y=0,S;async function E(T,N,q){const{scrollTop:A}=d;if(await hl(),!b)return;let M=p-A,B=o;for(;M<N&&B<T.length;){let ne=c[B-o];if(!ne){if(t(9,a=B+1),await hl(),!b)return;ne=c[B-o]}const ae=u[B]=q||(ne==null?void 0:ne.offsetHeight)||Number.MAX_SAFE_INTEGER;M+=ae,B+=1}t(9,a=B);const re=T.length-a;S=(p+M)/a,t(6,y=re*S),u.length=T.length}async function D(){var B,re;const{scrollTop:T}=d,N=o;for(let ne=0;ne<c.length;ne+=1)u[o+ne]=f||((B=c[ne])==null?void 0:B.offsetHeight)||Number.MAX_SAFE_INTEGER;let q=0,A=0;for(;q<r.length;){const ne=u[q]||S;if(A+ne>T){t(8,o=q),t(5,p=A);break}A+=ne,q+=1}for(;q<r.length&&(A+=u[q]||S,q+=1,!(A>T+m)););t(9,a=q);const M=r.length-a;for(S=A/a;q<r.length;)u[q++]=S;if(t(6,y=M*S),o<N){await hl();let ne=0,ae=0;for(let oe=o;oe<N;oe+=1)c[oe-o]&&(ne+=u[oe],ae+=f||((re=c[oe-o])==null?void 0:re.offsetHeight)||Number.MAX_SAFE_INTEGER);const W=ae-ne;d.scrollTo(0,T+W)}}ht(()=>(c=g.getElementsByClassName("row"),t(12,b=!0),()=>t(12,b=!1)));function G(T){Ke[T?"unshift":"push"](()=>{g=T,t(3,g)})}function P(T){Ke[T?"unshift":"push"](()=>{d=T,t(2,d)})}function w(){m=this.offsetHeight,t(1,m)}return n.$$set=T=>{"items"in T&&t(10,r=T.items),"height"in T&&t(0,s=T.height),"itemHeight"in T&&t(11,f=T.itemHeight),"start"in T&&t(8,o=T.start),"end"in T&&t(9,a=T.end),"$$scope"in T&&t(13,i=T.$$scope)},n.$$.update=()=>{n.$$.dirty&1792&&t(4,h=r.slice(o,a).map((T,N)=>({index:N+o,data:T}))),n.$$.dirty&7170&&b&&E(r,m,f)},[s,m,d,g,h,p,y,D,o,a,r,f,b,i,l,G,P,w]}class Go extends ke{constructor(e){super(),pe(this,e,Ho,jo,be,{items:10,height:0,itemHeight:11,start:8,end:9})}}const zr=Symbol("EVIDENCE_DROPDOWN_CTX");function Wo(n,e,t){let{value:l}=e,{valueLabel:i=l}=e,{idx:r=-1}=e,{__auto:s=!1}=e;const f=el(zr);return ht(()=>f.registerOption({value:l,label:i,idx:r,__auto:s})),n.$$set=o=>{"value"in o&&t(0,l=o.value),"valueLabel"in o&&t(1,i=o.valueLabel),"idx"in o&&t(2,r=o.idx),"__auto"in o&&t(3,s=o.__auto)},[l,i,r,s]}class Zt extends ke{constructor(e){super(),pe(this,e,Wo,null,be,{value:0,valueLabel:1,idx:2,__auto:3})}}function Uo(n){return Object.keys(n).reduce((e,t)=>n[t]===void 0?e:e+`${t}:${n[t]};`,"")}const Xo={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Kl(n,e,t,l){const i=Array.isArray(e)?e:[e];return i.forEach(r=>n.addEventListener(r,t,l)),()=>{i.forEach(r=>n.removeEventListener(r,t,l))}}function Rr(...n){return(...e)=>{for(const t of n)typeof t=="function"&&t(...e)}}const Qo=n=>n&4,Yo=n=>({}),pn=n=>({...n[2]}),Ko=n=>n&4,Jo=n=>({}),Cn=n=>({...n[2]});function Zo(n){let e,t,l=(n[0]??"")+"",i,r,s,f,o,a=[n[6]],u={};for(let h=0;h<a.length;h+=1)u=ie(u,a[h]);const c=n[18].default,d=Ce(c,n,n[17],pn);let g=[n[5],n[7]],m={};for(let h=0;h<g.length;h+=1)m=ie(m,g[h]);return{c(){e=z("div"),t=z("label"),i=me(l),r=J(),d&&d.c(),this.h()},l(h){e=R(h,"DIV",{});var b=Q(e);t=R(b,"LABEL",{});var p=Q(t);i=he(p,l),p.forEach(_),r=Z(b),d&&d.l(b),b.forEach(_),this.h()},h(){Ae(t,u),Ae(e,m)},m(h,b){v(h,e,b),Y(e,t),Y(t,i),Y(e,r),d&&d.m(e,null),s=!0,f||(o=je(n[4].call(null,e)),f=!0)},p(h,b){(!s||b&1)&&l!==(l=(h[0]??"")+"")&&pr(i,l,u.contenteditable),d&&d.p&&(!s||b&131076)&&ve(d,c,h,h[17],Qo(b)||!s?Se(h[17]):we(c,h[17],b,Yo),pn),Ae(e,m=Ne(g,[h[5],b&128&&h[7]]))},i(h){s||(k(d,h),s=!0)},o(h){C(d,h),s=!1},d(h){h&&_(e),d&&d.d(h),f=!1,o()}}}function xo(n){let e;const t=n[18].default,l=Ce(t,n,n[17],Cn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&131076)&&ve(l,t,i,i[17],Ko(r)||!e?Se(i[17]):we(t,i[17],r,Jo),Cn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function $o(n){let e,t,l,i;const r=[xo,Zo],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function ef(n,e,t){let l;const i=["label","shouldFilter","filter","value","onValueChange","loop","onKeydown","state","ids","asChild"];let r=ye(e,i),s,{$$slots:f={},$$scope:o}=e,{label:a=void 0}=e,{shouldFilter:u=!0}=e,{filter:c=void 0}=e,{value:d=void 0}=e,{onValueChange:g=void 0}=e,{loop:m=void 0}=e,{onKeydown:h=void 0}=e,{state:b=void 0}=e,{ids:p=void 0}=e,{asChild:y=!1}=e;const{commandEl:S,handleRootKeydown:E,ids:D,state:G}=us({label:a,shouldFilter:u,filter:c,value:d,onValueChange:M=>{M!==d&&(t(8,d=M),g==null||g(M))},loop:m,state:b,ids:p});Me(n,G,M=>t(16,s=M));function P(M){M&&M!==s.value&&Pt(G,s.value=M,s)}function w(M){return S.set(M),{destroy:Rr(Kl(M,"keydown",q))}}const T={role:"application",id:D.root,"data-cmdk-root":""},N={"data-cmdk-label":"",for:D.input,id:D.label,style:Uo(Xo)};function q(M){h==null||h(M),!M.defaultPrevented&&E(M)}const A={action:w,attrs:T};return n.$$set=M=>{e=ie(ie({},e),Ve(M)),t(7,r=ye(e,i)),"label"in M&&t(0,a=M.label),"shouldFilter"in M&&t(9,u=M.shouldFilter),"filter"in M&&t(10,c=M.filter),"value"in M&&t(8,d=M.value),"onValueChange"in M&&t(11,g=M.onValueChange),"loop"in M&&t(12,m=M.loop),"onKeydown"in M&&t(13,h=M.onKeydown),"state"in M&&t(14,b=M.state),"ids"in M&&t(15,p=M.ids),"asChild"in M&&t(1,y=M.asChild),"$$scope"in M&&t(17,o=M.$$scope)},n.$$.update=()=>{n.$$.dirty&256&&P(d),n.$$.dirty&65536&&t(2,l={root:A,label:{attrs:N},stateStore:G,state:s})},[a,y,l,G,w,T,N,r,d,u,c,g,m,h,b,p,s,o,f]}let tf=class extends ke{constructor(e){super(),pe(this,e,ef,$o,be,{label:0,shouldFilter:9,filter:10,value:8,onValueChange:11,loop:12,onKeydown:13,state:14,ids:15,asChild:1})}};const lf=n=>({}),vn=n=>({attrs:n[4]});function Sn(n){let e,t,l,i;const r=[rf,nf],s=[];function f(o,a){return o[0]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function nf(n){let e,t;const l=n[8].default,i=Ce(l,n,n[7],null);let r=[n[4],n[5]],s={};for(let f=0;f<r.length;f+=1)s=ie(s,r[f]);return{c(){e=z("div"),i&&i.c(),this.h()},l(f){e=R(f,"DIV",{});var o=Q(e);i&&i.l(o),o.forEach(_),this.h()},h(){Ae(e,s)},m(f,o){v(f,e,o),i&&i.m(e,null),t=!0},p(f,o){i&&i.p&&(!t||o&128)&&ve(i,l,f,f[7],t?we(l,f[7],o,null):Se(f[7]),null),Ae(e,s=Ne(r,[f[4],o&32&&f[5]]))},i(f){t||(k(i,f),t=!0)},o(f){C(i,f),t=!1},d(f){f&&_(e),i&&i.d(f)}}}function rf(n){let e;const t=n[8].default,l=Ce(t,n,n[7],vn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&128)&&ve(l,t,i,i[7],e?we(t,i[7],r,lf):Se(i[7]),vn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function sf(n){let e,t,l=!n[1]&&n[2]&&Sn(n);return{c(){l&&l.c(),e=se()},l(i){l&&l.l(i),e=se()},m(i,r){l&&l.m(i,r),v(i,e,r),t=!0},p(i,[r]){!i[1]&&i[2]?l?(l.p(i,r),r&6&&k(l,1)):(l=Sn(i),l.c(),k(l,1),l.m(e.parentNode,e)):l&&(_e(),C(l,1,1,()=>{l=null}),ge())},i(i){t||(k(l),t=!0)},o(i){C(l),t=!1},d(i){i&&_(e),l&&l.d(i)}}}function of(n,e,t){let l;const i=["asChild"];let r=ye(e,i),s,{$$slots:f={},$$scope:o}=e,{asChild:a=!1}=e,u=!0;ht(()=>{t(1,u=!1)});const c=Sl();Me(n,c,g=>t(6,s=g));const d={"data-cmdk-empty":"",role:"presentation"};return n.$$set=g=>{e=ie(ie({},e),Ve(g)),t(5,r=ye(e,i)),"asChild"in g&&t(0,a=g.asChild),"$$scope"in g&&t(7,o=g.$$scope)},n.$$.update=()=>{n.$$.dirty&64&&t(2,l=s.filtered.count===0)},[a,u,l,c,d,r,s,o,f]}class ff extends ke{constructor(e){super(),pe(this,e,of,sf,be,{asChild:0})}}const af=n=>({container:n&32,group:n&16}),wn=n=>({container:n[5],group:n[4],heading:{attrs:n[8]}}),uf=n=>({container:n&32,group:n&16}),Tn=n=>({container:n[5],group:n[4],heading:{attrs:n[8]}});function cf(n){let e,t,l,i,r,s,f=n[0]&&En(n);const o=n[14].default,a=Ce(o,n,n[13],wn);let u=[n[2]],c={};for(let m=0;m<u.length;m+=1)c=ie(c,u[m]);let d=[n[3],n[9]],g={};for(let m=0;m<d.length;m+=1)g=ie(g,d[m]);return{c(){e=z("div"),f&&f.c(),t=J(),l=z("div"),a&&a.c(),this.h()},l(m){e=R(m,"DIV",{});var h=Q(e);f&&f.l(h),t=Z(h),l=R(h,"DIV",{});var b=Q(l);a&&a.l(b),b.forEach(_),h.forEach(_),this.h()},h(){Ae(l,c),Ae(e,g)},m(m,h){v(m,e,h),f&&f.m(e,null),Y(e,t),Y(e,l),a&&a.m(l,null),i=!0,r||(s=je(n[7].call(null,e)),r=!0)},p(m,h){m[0]?f?f.p(m,h):(f=En(m),f.c(),f.m(e,t)):f&&(f.d(1),f=null),a&&a.p&&(!i||h&8240)&&ve(a,o,m,m[13],i?we(o,m[13],h,af):Se(m[13]),wn),Ae(l,c=Ne(u,[h&4&&m[2]])),Ae(e,g=Ne(d,[h&8&&m[3],h&512&&m[9]]))},i(m){i||(k(a,m),i=!0)},o(m){C(a,m),i=!1},d(m){m&&_(e),f&&f.d(),a&&a.d(m),r=!1,s()}}}function df(n){let e;const t=n[14].default,l=Ce(t,n,n[13],Tn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8240)&&ve(l,t,i,i[13],e?we(t,i[13],r,uf):Se(i[13]),Tn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function En(n){let e,t,l=[n[8]],i={};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return{c(){e=z("div"),t=me(n[0]),this.h()},l(r){e=R(r,"DIV",{});var s=Q(e);t=he(s,n[0]),s.forEach(_),this.h()},h(){Ae(e,i)},m(r,s){v(r,e,s),Y(e,t)},p(r,s){s&1&&pr(t,r[0],i.contenteditable)},d(r){r&&_(e)}}}function mf(n){let e,t,l,i;const r=[df,cf],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function hf(n,e,t){let l,i,r,s;const f=["heading","value","alwaysRender","asChild"];let o=ye(e,f),a,{$$slots:u={},$$scope:c}=e,{heading:d=void 0}=e,{value:g=""}=e,{alwaysRender:m=!1}=e,{asChild:h=!1}=e;const{id:b}=cs(m),p=Jl(),y=Sl(),S=wr(),E=Tt(y,P=>m||p.filter()===!1||!P.search?!0:P.filtered.groups.has(b));Me(n,E,P=>t(12,a=P)),ht(()=>p.group(b));function D(P){if(g){p.value(b,g),P.setAttribute(Yl,g);return}d?t(10,g=d.trim().toLowerCase()):P.textContent&&t(10,g=P.textContent.trim().toLowerCase()),p.value(b,g),P.setAttribute(Yl,g)}const G={"data-cmdk-group-heading":"","aria-hidden":!0,id:S};return n.$$set=P=>{e=ie(ie({},e),Ve(P)),t(9,o=ye(e,f)),"heading"in P&&t(0,d=P.heading),"value"in P&&t(10,g=P.value),"alwaysRender"in P&&t(11,m=P.alwaysRender),"asChild"in P&&t(1,h=P.asChild),"$$scope"in P&&t(13,c=P.$$scope)},n.$$.update=()=>{n.$$.dirty&5120&&t(3,l={"data-cmdk-group":"",role:"presentation",hidden:a?void 0:!0,"data-value":g}),n.$$.dirty&1&&t(2,i={"data-cmdk-group-items":"",role:"group","aria-labelledby":d?S:void 0}),n.$$.dirty&8&&t(5,r={action:D,attrs:l}),n.$$.dirty&4&&t(4,s={attrs:i})},[d,h,i,l,s,r,E,D,G,o,g,m,a,c,u]}class _f extends ke{constructor(e){super(),pe(this,e,hf,mf,be,{heading:0,value:10,alwaysRender:11,asChild:1})}}function gf(n){return new Promise(e=>setTimeout(e,n))}const bf=n=>({attrs:n&8}),On=n=>({action:n[6],attrs:n[3]});function yf(n){let e,t,l,i=[n[3],n[7]],r={};for(let s=0;s<i.length;s+=1)r=ie(r,i[s]);return{c(){e=z("input"),this.h()},l(s){e=R(s,"INPUT",{}),this.h()},h(){Ae(e,r)},m(s,f){v(s,e,f),e.autofocus&&e.focus(),n[16](e),Xl(e,n[0]),t||(l=[Fe(e,"input",n[17]),je(n[6].call(null,e)),Fe(e,"input",n[12]),Fe(e,"focus",n[13]),Fe(e,"blur",n[14]),Fe(e,"change",n[15])],t=!0)},p(s,f){Ae(e,r=Ne(i,[f&8&&s[3],f&128&&s[7]])),f&1&&e.value!==s[0]&&Xl(e,s[0])},i:ce,o:ce,d(s){s&&_(e),n[16](null),t=!1,qt(l)}}}function kf(n){let e;const t=n[11].default,l=Ce(t,n,n[10],On);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&1032)&&ve(l,t,i,i[10],e?we(t,i[10],r,bf):Se(i[10]),On)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function pf(n){let e,t,l,i;const r=[kf,yf],s=[];function f(o,a){return o[2]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Cf(n,e,t){const l=["autofocus","value","asChild","el"];let i=ye(e,l),r,s,{$$slots:f={},$$scope:o}=e;const{ids:a,commandEl:u}=Jl(),c=Sl(),d=Tt(c,A=>A.search);Me(n,d,A=>t(18,s=A));const g=Tt(c,A=>A.value);let{autofocus:m=void 0}=e,{value:h=s}=e,{asChild:b=!1}=e,{el:p=void 0}=e;const y=Tt([g,u],([A,M])=>{if(!ds)return;const B=M==null?void 0:M.querySelector(`${ms}[${Yl}="${A}"]`);return B==null?void 0:B.getAttribute("id")});Me(n,y,A=>t(9,r=A));function S(A){c.updateState("search",A)}function E(A){return m&&gf(10).then(()=>A.focus()),{destroy:Kl(A,"change",B=>{hs(B.target)&&c.updateState("search",B.target.value)})}}let D;function G(A){Ml.call(this,n,A)}function P(A){Ml.call(this,n,A)}function w(A){Ml.call(this,n,A)}function T(A){Ml.call(this,n,A)}function N(A){Ke[A?"unshift":"push"](()=>{p=A,t(1,p)})}function q(){h=this.value,t(0,h)}return n.$$set=A=>{e=ie(ie({},e),Ve(A)),t(7,i=ye(e,l)),"autofocus"in A&&t(8,m=A.autofocus),"value"in A&&t(0,h=A.value),"asChild"in A&&t(2,b=A.asChild),"el"in A&&t(1,p=A.el),"$$scope"in A&&t(10,o=A.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&S(h),n.$$.dirty&512&&t(3,D={type:"text","data-cmdk-input":"",autocomplete:"off",autocorrect:"off",spellcheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":a.list,"aria-labelledby":a.label,"aria-activedescendant":r??void 0,id:a.input})},[h,p,b,D,d,y,E,i,m,r,o,f,G,P,w,T,N,q]}class vf extends ke{constructor(e){super(),pe(this,e,Cf,pf,be,{autofocus:8,value:0,asChild:2,el:1})}}const Sf=n=>({attrs:n&4}),An=n=>({action:n[6],attrs:n[2]}),wf=n=>({attrs:n&4}),Ln=n=>({action:n[6],attrs:n[2]});function Dn(n){let e,t,l,i;const r=[Ef,Tf],s=[];function f(o,a){return o[0]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Tf(n){let e,t,l,i;const r=n[15].default,s=Ce(r,n,n[14],An);let f=[n[2],n[7]],o={};for(let a=0;a<f.length;a+=1)o=ie(o,f[a]);return{c(){e=z("div"),s&&s.c(),this.h()},l(a){e=R(a,"DIV",{});var u=Q(e);s&&s.l(u),u.forEach(_),this.h()},h(){Ae(e,o)},m(a,u){v(a,e,u),s&&s.m(e,null),t=!0,l||(i=je(n[6].call(null,e)),l=!0)},p(a,u){s&&s.p&&(!t||u&16388)&&ve(s,r,a,a[14],t?we(r,a[14],u,Sf):Se(a[14]),An),Ae(e,o=Ne(f,[u&4&&a[2],u&128&&a[7]]))},i(a){t||(k(s,a),t=!0)},o(a){C(s,a),t=!1},d(a){a&&_(e),s&&s.d(a),l=!1,i()}}}function Ef(n){let e;const t=n[15].default,l=Ce(t,n,n[14],Ln);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&16388)&&ve(l,t,i,i[14],e?we(t,i[14],r,wf):Se(i[14]),Ln)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Of(n){let e,t,l=(n[3]||n[1])&&Dn(n);return{c(){l&&l.c(),e=se()},l(i){l&&l.l(i),e=se()},m(i,r){l&&l.m(i,r),v(i,e,r),t=!0},p(i,[r]){i[3]||i[1]?l?(l.p(i,r),r&10&&k(l,1)):(l=Dn(i),l.c(),k(l,1),l.m(e.parentNode,e)):l&&(_e(),C(l,1,1,()=>{l=null}),ge())},i(i){t||(k(l),t=!0)},o(i){C(l),t=!1},d(i){i&&_(e),l&&l.d(i)}}}function Af(n,e,t){let l;const i=["disabled","value","onSelect","alwaysRender","asChild","id"];let r=ye(e,i),s,f,{$$slots:o={},$$scope:a}=e,{disabled:u=!1}=e,{value:c=""}=e,{onSelect:d=void 0}=e,{alwaysRender:g=!1}=e,{asChild:m=!1}=e,{id:h=wr()}=e;const b=_s(),p=Jl(),y=Sl(),S=g??(b==null?void 0:b.alwaysRender),E=Tt(y,N=>{if(S||p.filter()===!1||!N.search)return!0;const q=N.filtered.items.get(h);return gs(q)?!1:q>0});Me(n,E,N=>t(3,f=N));let D=!0;ht(()=>(t(1,D=!1),p.item(h,b==null?void 0:b.id)));const G=Tt(y,N=>N.value===c);Me(n,G,N=>t(13,s=N));function P(N){!c&&N.textContent&&t(8,c=N.textContent.trim().toLowerCase()),p.value(h,c),N.setAttribute(Yl,c);const q=Rr(Kl(N,"pointermove",()=>{u||T()}),Kl(N,"click",()=>{u||w()}));return{destroy(){q()}}}function w(){T(),d==null||d(c)}function T(){y.updateState("value",c,!0)}return n.$$set=N=>{e=ie(ie({},e),Ve(N)),t(7,r=ye(e,i)),"disabled"in N&&t(9,u=N.disabled),"value"in N&&t(8,c=N.value),"onSelect"in N&&t(10,d=N.onSelect),"alwaysRender"in N&&t(11,g=N.alwaysRender),"asChild"in N&&t(0,m=N.asChild),"id"in N&&t(12,h=N.id),"$$scope"in N&&t(14,a=N.$$scope)},n.$$.update=()=>{n.$$.dirty&13056&&t(2,l={"aria-disabled":u?!0:void 0,"aria-selected":s?!0:void 0,"data-disabled":u?!0:void 0,"data-selected":s?!0:void 0,"data-cmdk-item":"","data-value":c,role:"option",id:h})},[m,D,l,f,E,G,P,r,c,u,d,g,h,s,a,o]}class Lf extends ke{constructor(e){super(),pe(this,e,Af,Of,be,{disabled:9,value:8,onSelect:10,alwaysRender:11,asChild:0,id:12})}}const Df=n=>({}),Mn=n=>({list:n[7],sizer:n[8]});function Mf(n){let e,t,l=n[2].search==="",i,r,s,f=In(n),o=[n[6]],a={};for(let d=0;d<o.length;d+=1)a=ie(a,o[d]);let u=[n[5],n[9]],c={};for(let d=0;d<u.length;d+=1)c=ie(c,u[d]);return{c(){e=z("div"),t=z("div"),f.c(),this.h()},l(d){e=R(d,"DIV",{});var g=Q(e);t=R(g,"DIV",{});var m=Q(t);f.l(m),m.forEach(_),g.forEach(_),this.h()},h(){Ae(t,a),Ae(e,c)},m(d,g){v(d,e,g),Y(e,t),f.m(t,null),n[12](e),i=!0,r||(s=je(n[4].call(null,t)),r=!0)},p(d,g){g&4&&be(l,l=d[2].search==="")?(_e(),C(f,1,1,ce),ge(),f=In(d),f.c(),k(f,1),f.m(t,null)):f.p(d,g),Ae(e,c=Ne(u,[d[5],g&512&&d[9]]))},i(d){i||(k(f),i=!0)},o(d){C(f),i=!1},d(d){d&&_(e),f.d(d),n[12](null),r=!1,s()}}}function If(n){let e=n[2].search==="",t,l,i=Fn(n);return{c(){i.c(),t=se()},l(r){i.l(r),t=se()},m(r,s){i.m(r,s),v(r,t,s),l=!0},p(r,s){s&4&&be(e,e=r[2].search==="")?(_e(),C(i,1,1,ce),ge(),i=Fn(r),i.c(),k(i,1),i.m(t.parentNode,t)):i.p(r,s)},i(r){l||(k(i),l=!0)},o(r){C(i),l=!1},d(r){r&&_(t),i.d(r)}}}function In(n){let e;const t=n[11].default,l=Ce(t,n,n[10],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&1024)&&ve(l,t,i,i[10],e?we(t,i[10],r,null):Se(i[10]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Fn(n){let e;const t=n[11].default,l=Ce(t,n,n[10],Mn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&1024)&&ve(l,t,i,i[10],e?we(t,i[10],r,Df):Se(i[10]),Mn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Ff(n){let e,t,l,i;const r=[If,Mf],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Nf(n,e,t){const l=["el","asChild"];let i=ye(e,l),r,{$$slots:s={},$$scope:f}=e;const{ids:o}=Jl(),a=Sl();Me(n,a,y=>t(2,r=y));let{el:u=void 0}=e,{asChild:c=!1}=e;function d(y){let S;const E=y.closest("[data-cmdk-list]");if(!bs(E))return;const D=new ResizeObserver(()=>{S=requestAnimationFrame(()=>{const G=y.offsetHeight;E.style.setProperty("--cmdk-list-height",G.toFixed(1)+"px")})});return D.observe(y),{destroy(){cancelAnimationFrame(S),D.unobserve(y)}}}const g={"data-cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:o.list,"aria-labelledby":o.input},m={"data-cmdk-list-sizer":""},h={attrs:g},b={attrs:m,action:d};function p(y){Ke[y?"unshift":"push"](()=>{u=y,t(0,u)})}return n.$$set=y=>{e=ie(ie({},e),Ve(y)),t(9,i=ye(e,l)),"el"in y&&t(0,u=y.el),"asChild"in y&&t(1,c=y.asChild),"$$scope"in y&&t(10,f=y.$$scope)},[u,c,r,a,d,g,m,h,b,i,f,s,p]}class Pf extends ke{constructor(e){super(),pe(this,e,Nf,Ff,be,{el:0,asChild:1})}}function Bf(n){let e;const t=n[3].default,l=Ce(t,n,n[5],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&32)&&ve(l,t,i,i[5],e?we(t,i[5],r,null):Se(i[5]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function qf(n){let e,t,l;const i=[{class:Pe("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-gray-900",n[1])},n[2]];function r(f){n[4](f)}let s={$$slots:{default:[Bf]},$$scope:{ctx:n}};for(let f=0;f<i.length;f+=1)s=ie(s,i[f]);return n[0]!==void 0&&(s.value=n[0]),e=new tf({props:s}),Ke.push(()=>vl(e,"value",r)),{c(){$(e.$$.fragment)},l(f){ee(e.$$.fragment,f)},m(f,o){te(e,f,o),l=!0},p(f,[o]){const a=o&6?Ne(i,[o&2&&{class:Pe("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-gray-900",f[1])},o&4&&Ct(f[2])]):{};o&32&&(a.$$scope={dirty:o,ctx:f}),!t&&o&1&&(t=!0,a.value=f[0],pl(()=>t=!1)),e.$set(a)},i(f){l||(k(e.$$.fragment,f),l=!0)},o(f){C(e.$$.fragment,f),l=!1},d(f){le(e,f)}}}function Vf(n,e,t){const l=["value","class"];let i=ye(e,l),{$$slots:r={},$$scope:s}=e,{value:f=void 0}=e,{class:o=void 0}=e;function a(u){f=u,t(0,f)}return n.$$set=u=>{e=ie(ie({},e),Ve(u)),t(2,i=ye(e,l)),"value"in u&&t(0,f=u.value),"class"in u&&t(1,o=u.class),"$$scope"in u&&t(5,s=u.$$scope)},[f,o,i,r,a,s]}class zf extends ke{constructor(e){super(),pe(this,e,Vf,qf,be,{value:0,class:1})}}function Rf(n){let e;const t=n[2].default,l=Ce(t,n,n[3],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&ve(l,t,i,i[3],e?we(t,i[3],r,null):Se(i[3]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function jf(n){let e,t;const l=[{class:Pe("py-6 text-center text-sm",n[0])},n[1]];let i={$$slots:{default:[Rf]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new ff({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&3?Ne(l,[s&1&&{class:Pe("py-6 text-center text-sm",r[0])},s&2&&Ct(r[1])]):{};s&8&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function Hf(n,e,t){const l=["class"];let i=ye(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(1,i=ye(e,l)),"class"in o&&t(0,f=o.class),"$$scope"in o&&t(3,s=o.$$scope)},[f,i,r,s]}class Gf extends ke{constructor(e){super(),pe(this,e,Hf,jf,be,{class:0})}}function Wf(n){let e;const t=n[2].default,l=Ce(t,n,n[3],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&ve(l,t,i,i[3],e?we(t,i[3],r,null):Se(i[3]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Uf(n){let e,t;const l=[{class:Pe("text-foreground overflow-hidden p-1 [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:py-1.5 [&_[data-cmdk-group-heading]]:text-xs [&_[data-cmdk-group-heading]]:font-medium [&_[data-cmdk-group-heading]]:text-gray-500",n[0])},n[1]];let i={$$slots:{default:[Wf]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new _f({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&3?Ne(l,[s&1&&{class:Pe("text-foreground overflow-hidden p-1 [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:py-1.5 [&_[data-cmdk-group-heading]]:text-xs [&_[data-cmdk-group-heading]]:font-medium [&_[data-cmdk-group-heading]]:text-gray-500",r[0])},s&2&&Ct(r[1])]):{};s&8&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function Xf(n,e,t){const l=["class"];let i=ye(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(1,i=ye(e,l)),"class"in o&&t(0,f=o.class),"$$scope"in o&&t(3,s=o.$$scope)},[f,i,r,s]}class Qf extends ke{constructor(e){super(),pe(this,e,Xf,Uf,be,{class:0})}}function Yf(n){let e;const t=n[2].default,l=Ce(t,n,n[3],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&ve(l,t,i,i[3],e?we(t,i[3],r,null):Se(i[3]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Kf(n){let e,t;const l=[{class:Pe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-gray-100 aria-selected:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n[0])},n[1]];let i={$$slots:{default:[Yf]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new Lf({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&3?Ne(l,[s&1&&{class:Pe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-gray-100 aria-selected:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r[0])},s&2&&Ct(r[1])]):{};s&8&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function Jf(n,e,t){const l=["class"];let i=ye(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(1,i=ye(e,l)),"class"in o&&t(0,f=o.class),"$$scope"in o&&t(3,s=o.$$scope)},[f,i,r,s]}class qi extends ke{constructor(e){super(),pe(this,e,Jf,Kf,be,{class:0})}}function Zf(n){let e,t,l,i,r,s;t=new Zl({props:{src:js,class:"mr-2 h-4 w-4 shrink-0 opacity-50"}});const f=[{class:Pe("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-gray-500 disabled:cursor-not-allowed disabled:opacity-50",n[1])},n[2]];function o(u){n[3](u)}let a={};for(let u=0;u<f.length;u+=1)a=ie(a,f[u]);return n[0]!==void 0&&(a.value=n[0]),i=new vf({props:a}),Ke.push(()=>vl(i,"value",o)),{c(){e=z("div"),$(t.$$.fragment),l=J(),$(i.$$.fragment),this.h()},l(u){e=R(u,"DIV",{class:!0,"data-cmdk-input-wrapper":!0});var c=Q(e);ee(t.$$.fragment,c),l=Z(c),ee(i.$$.fragment,c),c.forEach(_),this.h()},h(){L(e,"class","flex items-center border-b px-3"),L(e,"data-cmdk-input-wrapper","")},m(u,c){v(u,e,c),te(t,e,null),Y(e,l),te(i,e,null),s=!0},p(u,[c]){const d=c&6?Ne(f,[c&2&&{class:Pe("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-gray-500 disabled:cursor-not-allowed disabled:opacity-50",u[1])},c&4&&Ct(u[2])]):{};!r&&c&1&&(r=!0,d.value=u[0],pl(()=>r=!1)),i.$set(d)},i(u){s||(k(t.$$.fragment,u),k(i.$$.fragment,u),s=!0)},o(u){C(t.$$.fragment,u),C(i.$$.fragment,u),s=!1},d(u){u&&_(e),le(t),le(i)}}}function xf(n,e,t){const l=["class","value"];let i=ye(e,l),{class:r=void 0}=e,{value:s=""}=e;function f(o){s=o,t(0,s)}return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(2,i=ye(e,l)),"class"in o&&t(1,r=o.class),"value"in o&&t(0,s=o.value)},[s,r,i,f]}class $f extends ke{constructor(e){super(),pe(this,e,xf,Zf,be,{class:1,value:0})}}function ea(n){let e;const t=n[2].default,l=Ce(t,n,n[3],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&ve(l,t,i,i[3],e?we(t,i[3],r,null):Se(i[3]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function ta(n){let e,t;const l=[{class:Pe("max-h-[300px] overflow-y-auto overflow-x-hidden",n[0])},n[1]];let i={$$slots:{default:[ea]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new Pf({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&3?Ne(l,[s&1&&{class:Pe("max-h-[300px] overflow-y-auto overflow-x-hidden",r[0])},s&2&&Ct(r[1])]):{};s&8&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function la(n,e,t){const l=["class"];let i=ye(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(1,i=ye(e,l)),"class"in o&&t(0,f=o.class),"$$scope"in o&&t(3,s=o.$$scope)},[f,i,r,s]}class ia extends ke{constructor(e){super(),pe(this,e,la,ta,be,{class:0})}}function na(n){let e,t,l;return t=new Zl({props:{src:Lr,class:Pe("h-4 w-4",n[2]?"":"text-transparent")}}),{c(){e=z("div"),$(t.$$.fragment),this.h()},l(i){e=R(i,"DIV",{class:!0});var r=Q(e);ee(t.$$.fragment,r),r.forEach(_),this.h()},h(){L(e,"class","mr-2 flex h-4 w-4 items-center justify-center")},m(i,r){v(i,e,r),te(t,e,null),l=!0},p(i,r){const s={};r&4&&(s.class=Pe("h-4 w-4",i[2]?"":"text-transparent")),t.$set(s)},i(i){l||(k(t.$$.fragment,i),l=!0)},o(i){C(t.$$.fragment,i),l=!1},d(i){i&&_(e),le(t)}}}function ra(n){let e,t,l,i;return t=new Zl({props:{src:Lr,class:Pe("h-4 w-4")}}),{c(){e=z("div"),$(t.$$.fragment),this.h()},l(r){e=R(r,"DIV",{class:!0});var s=Q(e);ee(t.$$.fragment,s),s.forEach(_),this.h()},h(){L(e,"class",l=Pe("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-gray-900",n[2]?"bg-gray-900 text-gray-50":"opacity-50 [&_svg]:invisible"))},m(r,s){v(r,e,s),te(t,e,null),i=!0},p(r,s){(!i||s&4&&l!==(l=Pe("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-gray-900",r[2]?"bg-gray-900 text-gray-50":"opacity-50 [&_svg]:invisible")))&&L(e,"class",l)},i(r){i||(k(t.$$.fragment,r),i=!0)},o(r){C(t.$$.fragment,r),i=!1},d(r){r&&_(e),le(t)}}}function sa(n){let e,t,l,i,r,s;const f=[ra,na],o=[];function a(u,c){return u[4]?0:1}return e=a(n),t=o[e]=f[e](n),{c(){t.c(),l=J(),i=z("span"),r=me(n[1]),this.h()},l(u){t.l(u),l=Z(u),i=R(u,"SPAN",{class:!0});var c=Q(i);r=he(c,n[1]),c.forEach(_),this.h()},h(){L(i,"class","line-clamp-4")},m(u,c){o[e].m(u,c),v(u,l,c),v(u,i,c),Y(i,r),s=!0},p(u,c){let d=e;e=a(u),e===d?o[e].p(u,c):(_e(),C(o[d],1,1,()=>{o[d]=null}),ge(),t=o[e],t?t.p(u,c):(t=o[e]=f[e](u),t.c()),k(t,1),t.m(l.parentNode,l)),(!s||c&2)&&De(r,u[1])},i(u){s||(k(t),s=!0)},o(u){C(t),s=!1},d(u){u&&(_(l),_(i)),o[e].d(u)}}}function oa(n){let e,t;return e=new qi({props:{value:String(n[1]),onSelect:n[5],$$slots:{default:[sa]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,[i]){const r={};i&2&&(r.value=String(l[1])),i&11&&(r.onSelect=l[5]),i&86&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function fa(n,e,t){let{value:l}=e,{valueLabel:i=l}=e,{active:r=!1}=e,{handleSelect:s}=e,{multiple:f}=e;const o=()=>s({value:l,label:i});return n.$$set=a=>{"value"in a&&t(0,l=a.value),"valueLabel"in a&&t(1,i=a.valueLabel),"active"in a&&t(2,r=a.active),"handleSelect"in a&&t(3,s=a.handleSelect),"multiple"in a&&t(4,f=a.multiple)},[l,i,r,s,f,o]}class jr extends ke{constructor(e){super(),pe(this,e,fa,oa,be,{value:0,valueLabel:1,active:2,handleSelect:3,multiple:4})}}function aa(n){let e;const t=n[6].default,l=Ce(t,n,n[7],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&128)&&ve(l,t,i,i[7],e?we(t,i[7],r,null):Se(i[7]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function ua(n){let e,t;const l=[{transition:n[1]},{transitionConfig:n[2]},{align:n[3]},{sideOffset:n[4]},n[5],{class:Pe("z-50 w-72 rounded-md border bg-white p-4 text-gray-900 shadow-md outline-none",n[0])}];let i={$$slots:{default:[aa]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new Ao({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&63?Ne(l,[s&2&&{transition:r[1]},s&4&&{transitionConfig:r[2]},s&8&&{align:r[3]},s&16&&{sideOffset:r[4]},s&32&&Ct(r[5]),s&1&&{class:Pe("z-50 w-72 rounded-md border bg-white p-4 text-gray-900 shadow-md outline-none",r[0])}]):{};s&128&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function ca(n,e,t){const l=["class","transition","transitionConfig","align","sideOffset"];let i=ye(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e,{transition:o=Rs}=e,{transitionConfig:a=void 0}=e,{align:u="center"}=e,{sideOffset:c=4}=e;return n.$$set=d=>{e=ie(ie({},e),Ve(d)),t(5,i=ye(e,l)),"class"in d&&t(0,f=d.class),"transition"in d&&t(1,o=d.transition),"transitionConfig"in d&&t(2,a=d.transitionConfig),"align"in d&&t(3,u=d.align),"sideOffset"in d&&t(4,c=d.sideOffset),"$$scope"in d&&t(7,s=d.$$scope)},[f,o,a,u,c,i,r,s]}class da extends ke{constructor(e){super(),pe(this,e,ca,ua,be,{class:0,transition:1,transitionConfig:2,align:3,sideOffset:4})}}const ma=mo,ha=Po;function _a(n){let e,t;const l=[{class:Pe("shrink-0 bg-gray-200",n[1]==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n[0])},{orientation:n[1]},{decorative:n[2]},n[3]];let i={};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new so({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&15?Ne(l,[s&3&&{class:Pe("shrink-0 bg-gray-200",r[1]==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",r[0])},s&2&&{orientation:r[1]},s&4&&{decorative:r[2]},s&8&&Ct(r[3])]):{};e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function ga(n,e,t){const l=["class","orientation","decorative"];let i=ye(e,l),{class:r=void 0}=e,{orientation:s="horizontal"}=e,{decorative:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(3,i=ye(e,l)),"class"in o&&t(0,r=o.class),"orientation"in o&&t(1,s=o.orientation),"decorative"in o&&t(2,f=o.decorative)},[r,s,f,i]}class Hr extends ke{constructor(e){super(),pe(this,e,ga,_a,be,{class:0,orientation:1,decorative:2})}}function Ti(n){let e,t,l;const i=n[5].default,r=Ce(i,n,n[4],null);let s=[{href:n[1]},{class:t=Pe(Zi({variant:n[2],className:n[0]}))},n[3]],f={};for(let o=0;o<s.length;o+=1)f=ie(f,s[o]);return{c(){e=z(n[1]?"a":"span"),r&&r.c(),this.h()},l(o){e=R(o,((n[1]?"a":"span")||"null").toUpperCase(),{href:!0,class:!0});var a=Q(e);r&&r.l(a),a.forEach(_),this.h()},h(){Yi(n[1]?"a":"span")(e,f)},m(o,a){v(o,e,a),r&&r.m(e,null),l=!0},p(o,a){r&&r.p&&(!l||a&16)&&ve(r,i,o,o[4],l?we(i,o[4],a,null):Se(o[4]),null),Yi(o[1]?"a":"span")(e,f=Ne(s,[(!l||a&2)&&{href:o[1]},(!l||a&5&&t!==(t=Pe(Zi({variant:o[2],className:o[0]}))))&&{class:t},a&8&&o[3]]))},i(o){l||(k(r,o),l=!0)},o(o){C(r,o),l=!1},d(o){o&&_(e),r&&r.d(o)}}}function ba(n){let e=n[1]?"a":"span",t,l,i=(n[1]?"a":"span")&&Ti(n);return{c(){i&&i.c(),t=se()},l(r){i&&i.l(r),t=se()},m(r,s){i&&i.m(r,s),v(r,t,s),l=!0},p(r,[s]){r[1],e?be(e,r[1]?"a":"span")?(i.d(1),i=Ti(r),e=r[1]?"a":"span",i.c(),i.m(t.parentNode,t)):i.p(r,s):(i=Ti(r),e=r[1]?"a":"span",i.c(),i.m(t.parentNode,t))},i(r){l||(k(i,r),l=!0)},o(r){C(i,r),l=!1},d(r){r&&_(t),i&&i.d(r)}}}function ya(n,e,t){const l=["class","href","variant"];let i=ye(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e,{href:o=void 0}=e,{variant:a="default"}=e;return n.$$set=u=>{e=ie(ie({},e),Ve(u)),t(3,i=ye(e,l)),"class"in u&&t(0,f=u.class),"href"in u&&t(1,o=u.href),"variant"in u&&t(2,a=u.variant),"$$scope"in u&&t(4,s=u.$$scope)},[f,o,a,i,s,r]}class Vi extends ke{constructor(e){super(),pe(this,e,ya,ba,be,{class:0,href:1,variant:2})}}function Nn(n){return t=>t.map(l=>{var i;const r={},s=Object.keys(l);for(const f of s){const o=(i=n[f])!=null?i:f;r[o]=l[f]}return r})}function ka(n,e){if(n.length===0||e.length===0)return{};const t=Object.keys(n[0]),l=Object.keys(e[0]),i={};for(const r of t)l.includes(r)&&(i[r]=r);return i}function pa(n,e,t){for(const l in t){const i=t[l];if(n[i]!==e[l])return!1}return!0}function Ca(n,e){return l=>{if(!n.length)return l;const i=ka(l,n),r=Object.keys(n[0]);return l.flatMap(f=>{const o=n.filter(u=>pa(f,u,i));if(o.length)return o.map(u=>({...f,...u}));const a=Object.fromEntries(r.filter(u=>f[u]==null).map(u=>[u,void 0]));return{...f,...a}})}}function Pn(n){return t=>{const l=t.map(i=>({...i}));for(const i in n){const r=n[i],s=typeof r=="function"?r(l):r,f=s!=null&&s[Symbol.iterator]&&typeof s!="string"?s:t.map(()=>s);let o=-1;for(const a of l)a[i]=f[++o]}return l}}function va(n){return t=>{const l=wa(n),i=[];for(const r in l){const s=l[r];let f;typeof s=="function"?f=s(t):Array.isArray(s)?f=s:f=Array.from(new Set(t.map(o=>o[r]))),i.push(f.map(o=>({[r]:o})))}return Sa(i)}}function Sa(n){function e(l,i,r){if(!r.length&&i!=null){l.push(i);return}const s=r[0],f=r.slice(1);for(const o of s)e(l,{...i,...o},f)}const t=[];return e(t,null,n),t}function wa(n){if(Array.isArray(n)){const e={};for(const t of n)e[t]=t;return e}else if(typeof n=="object")return n;return{[n]:n}}function Ta(n){return t=>{const l=[];for(const i of t){const r={...i};for(const s in n)r[s]==null&&(r[s]=n[s]);l.push(r)}return l}}function Bn(n,e){return l=>{const i=va(n)(l),r=Ca(l)(i);return e?Ta(e)(r):r}}function qn(n,e,t){return n==null||e==null?void 0:e===0&&n===0?0:!t&&e===0?void 0:n/e}function Vn(n,e,t){const l=typeof n=="function"?n:f=>f[n],i=f=>f[e],{predicate:r,allowDivideByZero:s}={};return r==null?(f,o,a)=>{const u=i(f),c=l(f,o,a);return qn(c,u,s)}:(f,o,a)=>{if(!r(f,o,a))return;const u=i(f),c=l(f,o,a);return qn(c,u,s)}}const Gr=(n,e=200)=>{const t=[],l=Li(()=>{n([...t]),t.length=0},e);return(...i)=>(t.push(...i),l())},Ft=Object.freeze({REMOVE_ON_DESELECT:Symbol("removeOnDeselect"),IGNORE_SELECTED:Symbol("ignoreSelected"),FORCE_SELECT:Symbol("forceSelect"),FORCE_DESELECT:Symbol("forceDeselect")}),Ei=Gr,Ea=Gr,Rl=(n,e)=>n.value===e.value&&n.label===e.label,zn=n=>String(n.value)+String(n.label),Oa=(n=!1,e=100)=>{const t=bl([]),l=m=>{const h=new Set;return m=m.reduce((b,p)=>(h.has(zn(p))||(h.add(zn(p)),b.push(p)),b),[]),m=m.sort((b,p)=>b.__auto&&!p.__auto?1:p.__auto&&!b.__auto||b.removeOnDeselect&&b.selected?-1:p.removeOnDeselect&&p.selected?1:b.idx!==p.idx?b.idx-p.idx:typeof b.label<"u"&&b.label!==null&&typeof p.label<"u"&&p.label!==null&&b.label!==p.label?b.label.toString().localeCompare(p.label.toString()):typeof b.value=="number"&&typeof p.value=="number"?b.value-p.value:b.value!==null&&typeof b.value<"u"&&p.value!==null&&typeof p.value<"u"?b.value.toString().localeCompare(p.value.toString()):0),m},i=Tt(t,m=>m.filter(h=>h.selected)),r=[];let s=cl();s.resolve();let f=cl();f.resolve();let o=cl();o.resolve();const a=Ei(async m=>{await o.promise;try{if(m=m.map(h=>({...h,idx:h.idx??-1,removeOnDeselect:h.removeOnDeselect??!1})),!m.length)return;t.update(h=>(h.push(...m),l(h)))}finally{s.resolve()}},e),u=Ei(async m=>{await o.promise;try{if(!m.length)return;t.update(h=>(h=h.filter(b=>!!(!m.some(y=>Rl(b,y))||b.selected&&!b.ignoreSelected)),l(h)))}finally{f.resolve()}},e),c=Ea(m=>{try{if(!m.length)return;t.update(h=>(h=h.map(b=>{const p=m.filter(([y])=>Rl(b,y));for(const y of p)switch(y[1]){case Ft.REMOVE_ON_DESELECT:b.removeOnDeselect=!b.removeOnDeselect;break;case Ft.IGNORE_SELECTED:b.ignoreSelected=!b.ignoreSelected;break;case Ft.FORCE_SELECT:b.selected=!0;break;case Ft.FORCE_DESELECT:b.selected=!0;break}return b}),l(h)))}finally{o.resolve()}},e),d=m=>{m&&t.update(h=>{const b=h.find(p=>p.value===m.value&&p.label===m.label);return n?b&&(b.selected=!b.selected):h=h.map(p=>(Rl(p,m)?p.selected=!0:p.selected=!1,p)),l(h)})},g=(m,h)=>{for(const b of h)b.selected&&b.removeOnDeselect&&m.filter(y=>Rl(y,b)).length%2===1&&u(b)};return{options:Es(t),destroy(){r.forEach(m=>m())},selectedOptions:i,addOption:m=>{s.state!=="loading"&&(s=cl(),s.start()),a(m)},removeOption:m=>{f.state!=="loading"&&(f=cl(),f.start()),u(m)},flagOption:m=>{o.state!=="loading"&&o.start(),c(m)},select:Ei(async m=>{await Promise.all([s.promise,f.promise,o.promise]),g(m,Il(t)),m.map(h=>d(h))},e),deselectAll:(m=!1)=>{g(Il(i),Il(t));for(const h of Il(i))m&&!h.__auto||d(h)},get flushed(){return Promise.all([s.promise,f.promise,o.promise])}}},{Boolean:Wr}=Ks;function Rn(n,e,t){const l=n.slice();return l[52]=e[t],l[54]=t,l}function jn(n,e,t){const l=n.slice();return l[52]=e[t],l}function Hn(n,e,t){const l=n.slice();return l[59]=e[t],l}function Gn(n,e){let t,l,i;return l=new Zt({props:{value:e[59].value,valueLabel:e[59].label,idx:Jn(e[59]),__auto:!0}}),{key:n,first:null,c(){t=se(),$(l.$$.fragment),this.h()},l(r){t=se(),ee(l.$$.fragment,r),this.h()},h(){this.first=t},m(r,s){v(r,t,s),te(l,r,s),i=!0},p(r,s){e=r;const f={};s[1]&134217728&&(f.value=e[59].value),s[1]&134217728&&(f.valueLabel=e[59].label),s[1]&134217728&&(f.idx=Jn(e[59])),l.$set(f)},i(r){i||(k(l.$$.fragment,r),i=!0)},o(r){C(l.$$.fragment,r),i=!1},d(r){r&&_(t),le(l,r)}}}function Aa(n){let e=[],t=new Map,l,i,r=Ye(n[58]??[]);const s=f=>{var o,a,u;return((o=f[59].value)==null?void 0:o.toString())+((a=f[59].label)==null?void 0:a.toString())+((u=f[59].similarity)==null?void 0:u.toString())};for(let f=0;f<r.length;f+=1){let o=Hn(n,r,f),a=s(o);t.set(a,e[f]=Gn(a,o))}return{c(){for(let f=0;f<e.length;f+=1)e[f].c();l=se()},l(f){for(let o=0;o<e.length;o+=1)e[o].l(f);l=se()},m(f,o){for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(f,o);v(f,l,o),i=!0},p(f,o){o[1]&134217728&&(r=Ye(f[58]??[]),_e(),e=vr(e,o,s,1,f,r,t,l.parentNode,Sr,Gn,l,Hn),ge())},i(f){if(!i){for(let o=0;o<r.length;o+=1)k(e[o]);i=!0}},o(f){for(let o=0;o<e.length;o+=1)C(e[o]);i=!1},d(f){f&&_(l);for(let o=0;o<e.length;o+=1)e[o].d(f)}}}function La(n){let e;return{c(){e=z("div"),this.h()},l(t){e=R(t,"DIV",{slot:!0}),Q(e).forEach(_),this.h()},h(){L(e,"slot","skeleton")},m(t,l){v(t,e,l)},p:ce,d(t){t&&_(e)}}}function Da(n){let e,t,l;function i(s){n[41](s)}let r={$$slots:{default:[xa]},$$scope:{ctx:n}};return n[9]!==void 0&&(r.open=n[9]),e=new ma({props:r}),Ke.push(()=>vl(e,"open",i)),{c(){$(e.$$.fragment)},l(s){ee(e.$$.fragment,s)},m(s,f){te(e,s,f),l=!0},p(s,f){const o={};f[0]&6711|f[1]&2048&&(o.$$scope={dirty:f,ctx:s}),!t&&f[0]&512&&(t=!0,o.open=s[9],pl(()=>t=!1)),e.$set(o)},i(s){l||(k(e.$$.fragment,s),l=!0)},o(s){C(e.$$.fragment,s),l=!1},d(s){le(e,s)}}}function Ma(n){let e,t,l="error",i,r,s=n[8].error+"",f;return{c(){e=z("span"),t=z("span"),t.textContent=l,i=J(),r=z("span"),f=me(s),this.h()},l(o){e=R(o,"SPAN",{class:!0});var a=Q(e);t=R(a,"SPAN",{class:!0,"data-svelte-h":!0}),st(t)!=="svelte-1927df"&&(t.textContent=l),i=Z(a),r=R(a,"SPAN",{class:!0});var u=Q(r);f=he(u,s),u.forEach(_),a.forEach(_),this.h()},h(){L(t,"class","inline font-sans font-medium text-xs text-red-600"),L(r,"class","hidden text-white font-sans group-hover:inline absolute -top-1 left-[105%] text-sm z-10 px-2 py-1 bg-gray-800/80 leading-relaxed min-w-[150px] w-max max-w-[400px] rounded-md"),L(e,"class","group inline-flex items-center relative cursor-help cursor-helpfont-sans px-1 border border-red-200 py-[1px] bg-red-50 rounded")},m(o,a){v(o,e,a),Y(e,t),Y(e,i),Y(e,r),Y(r,f)},p(o,a){a[0]&256&&s!==(s=o[8].error+"")&&De(f,s)},i:ce,o:ce,d(o){o&&_(e)}}}function Ia(n){let e=(n[0]??pt(n[1]))+"",t;return{c(){t=me(e)},l(l){t=he(l,e)},m(l,i){v(l,t,i)},p(l,i){i[0]&3&&e!==(e=(l[0]??pt(l[1]))+"")&&De(t,e)},i:ce,o:ce,d(l){l&&_(t)}}}function Fa(n){let e=n[12][0].label+"",t;return{c(){t=me(e)},l(l){t=he(l,e)},m(l,i){v(l,t,i)},p(l,i){i[0]&4096&&e!==(e=l[12][0].label+"")&&De(t,e)},i:ce,o:ce,d(l){l&&_(t)}}}function Na(n){let e,t,l,i,r=n[12].length>0&&Wn(n);return{c(){e=me(n[0]),t=J(),r&&r.c(),l=se()},l(s){e=he(s,n[0]),t=Z(s),r&&r.l(s),l=se()},m(s,f){v(s,e,f),v(s,t,f),r&&r.m(s,f),v(s,l,f),i=!0},p(s,f){(!i||f[0]&1)&&De(e,s[0]),s[12].length>0?r?(r.p(s,f),f[0]&4096&&k(r,1)):(r=Wn(s),r.c(),k(r,1),r.m(l.parentNode,l)):r&&(_e(),C(r,1,1,()=>{r=null}),ge())},i(s){i||(k(r),i=!0)},o(s){C(r),i=!1},d(s){s&&(_(e),_(t),_(l)),r&&r.d(s)}}}function Wn(n){let e,t,l=n[12][0].label+"",i,r;return e=new Hr({props:{orientation:"vertical",class:"mx-2 h-4"}}),{c(){$(e.$$.fragment),t=J(),i=me(l)},l(s){ee(e.$$.fragment,s),t=Z(s),i=he(s,l)},m(s,f){te(e,s,f),v(s,t,f),v(s,i,f),r=!0},p(s,f){(!r||f[0]&4096)&&l!==(l=s[12][0].label+"")&&De(i,l)},i(s){r||(k(e.$$.fragment,s),r=!0)},o(s){C(e.$$.fragment,s),r=!1},d(s){s&&(_(t),_(i)),le(e,s)}}}function Un(n){let e,t,l,i,r,s,f,o;e=new Hr({props:{orientation:"vertical",class:"mx-2 h-4"}}),l=new Vi({props:{variant:"secondary",class:"rounded-sm px-1 font-normal sm:hidden",$$slots:{default:[Pa]},$$scope:{ctx:n}}});const a=[qa,Ba],u=[];function c(d,g){return d[12].length>3?0:1}return s=c(n),f=u[s]=a[s](n),{c(){$(e.$$.fragment),t=J(),$(l.$$.fragment),i=J(),r=z("div"),f.c(),this.h()},l(d){ee(e.$$.fragment,d),t=Z(d),ee(l.$$.fragment,d),i=Z(d),r=R(d,"DIV",{class:!0});var g=Q(r);f.l(g),g.forEach(_),this.h()},h(){L(r,"class","hidden space-x-1 sm:flex")},m(d,g){te(e,d,g),v(d,t,g),te(l,d,g),v(d,i,g),v(d,r,g),u[s].m(r,null),o=!0},p(d,g){const m={};g[0]&4096|g[1]&2048&&(m.$$scope={dirty:g,ctx:d}),l.$set(m);let h=s;s=c(d),s===h?u[s].p(d,g):(_e(),C(u[h],1,1,()=>{u[h]=null}),ge(),f=u[s],f?f.p(d,g):(f=u[s]=a[s](d),f.c()),k(f,1),f.m(r,null))},i(d){o||(k(e.$$.fragment,d),k(l.$$.fragment,d),k(f),o=!0)},o(d){C(e.$$.fragment,d),C(l.$$.fragment,d),C(f),o=!1},d(d){d&&(_(t),_(i),_(r)),le(e,d),le(l,d),u[s].d()}}}function Pa(n){let e=n[12].length+"",t;return{c(){t=me(e)},l(l){t=he(l,e)},m(l,i){v(l,t,i)},p(l,i){i[0]&4096&&e!==(e=l[12].length+"")&&De(t,e)},d(l){l&&_(t)}}}function Ba(n){let e,t,l=Ye(n[12]),i=[];for(let s=0;s<l.length;s+=1)i[s]=Xn(jn(n,l,s));const r=s=>C(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=se()},l(s){for(let f=0;f<i.length;f+=1)i[f].l(s);e=se()},m(s,f){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(s,f);v(s,e,f),t=!0},p(s,f){if(f[0]&4096){l=Ye(s[12]);let o;for(o=0;o<l.length;o+=1){const a=jn(s,l,o);i[o]?(i[o].p(a,f),k(i[o],1)):(i[o]=Xn(a),i[o].c(),k(i[o],1),i[o].m(e.parentNode,e))}for(_e(),o=l.length;o<i.length;o+=1)r(o);ge()}},i(s){if(!t){for(let f=0;f<l.length;f+=1)k(i[f]);t=!0}},o(s){i=i.filter(Wr);for(let f=0;f<i.length;f+=1)C(i[f]);t=!1},d(s){s&&_(e),xt(i,s)}}}function qa(n){let e,t;return e=new Vi({props:{variant:"secondary",class:"rounded-sm px-1 font-normal",$$slots:{default:[za]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&4096|i[1]&2048&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Va(n){let e=n[52].label+"",t,l;return{c(){t=me(e),l=J()},l(i){t=he(i,e),l=Z(i)},m(i,r){v(i,t,r),v(i,l,r)},p(i,r){r[0]&4096&&e!==(e=i[52].label+"")&&De(t,e)},d(i){i&&(_(t),_(l))}}}function Xn(n){let e,t;return e=new Vi({props:{variant:"secondary",class:"rounded-sm px-1 font-normal",$$slots:{default:[Va]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&4096|i[1]&2048&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function za(n){let e=n[12].length+"",t,l;return{c(){t=me(e),l=me(" Selected")},l(i){t=he(i,e),l=he(i," Selected")},m(i,r){v(i,t,r),v(i,l,r)},p(i,r){r[0]&4096&&e!==(e=i[12].length+"")&&De(t,e)},d(i){i&&(_(t),_(l))}}}function Ra(n){let e,t,l,i,r,s,f;const o=[Na,Fa,Ia],a=[];function u(d,g){return d[0]&&!d[2]?0:d[12].length>0&&!d[2]?1:2}e=u(n),t=a[e]=o[e](n),i=new Zl({props:{src:Hs,class:"ml-2 h-4 w-4"}});let c=n[12].length>0&&n[2]&&Un(n);return{c(){t.c(),l=J(),$(i.$$.fragment),r=J(),c&&c.c(),s=se()},l(d){t.l(d),l=Z(d),ee(i.$$.fragment,d),r=Z(d),c&&c.l(d),s=se()},m(d,g){a[e].m(d,g),v(d,l,g),te(i,d,g),v(d,r,g),c&&c.m(d,g),v(d,s,g),f=!0},p(d,g){let m=e;e=u(d),e===m?a[e].p(d,g):(_e(),C(a[m],1,1,()=>{a[m]=null}),ge(),t=a[e],t?t.p(d,g):(t=a[e]=o[e](d),t.c()),k(t,1),t.m(l.parentNode,l)),d[12].length>0&&d[2]?c?(c.p(d,g),g[0]&4100&&k(c,1)):(c=Un(d),c.c(),k(c,1),c.m(s.parentNode,s)):c&&(_e(),C(c,1,1,()=>{c=null}),ge())},i(d){f||(k(t),k(i.$$.fragment,d),k(c),f=!0)},o(d){C(t),C(i.$$.fragment,d),C(c),f=!1},d(d){d&&(_(l),_(r),_(s)),a[e].d(d),le(i,d),c&&c.d(d)}}}function ja(n){let e,t;return e=new Fs({props:{builders:[n[55]],variant:"outline",role:"combo-box",size:"sm",class:"min-w-5 h-8 border",$$slots:{default:[Ra]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[1]&16777216&&(r.builders=[l[55]]),i[0]&4103|i[1]&2048&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Ha(n){let e;return{c(){e=me("No results found.")},l(t){e=he(t,"No results found.")},m(t,l){v(t,e,l)},d(t){t&&_(e)}}}function Ga(n){let e,t;return e=new Go({props:{height:`${Ur*32}px`,items:n[11],$$slots:{default:[Ua,({item:l})=>({52:l}),({item:l})=>[0,l?2097152:0]]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&2048&&(r.items=l[11]),i[0]&4612|i[1]&2099200&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Wa(n){let e,t,l=Ye(n[11]),i=[];for(let s=0;s<l.length;s+=1)i[s]=Qn(Rn(n,l,s));const r=s=>C(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=se()},l(s){for(let f=0;f<i.length;f+=1)i[f].l(s);e=se()},m(s,f){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(s,f);v(s,e,f),t=!0},p(s,f){if(f[0]&137732){l=Ye(s[11]);let o;for(o=0;o<l.length;o+=1){const a=Rn(s,l,o);i[o]?(i[o].p(a,f),k(i[o],1)):(i[o]=Qn(a),i[o].c(),k(i[o],1),i[o].m(e.parentNode,e))}for(_e(),o=l.length;o<i.length;o+=1)r(o);ge()}},i(s){if(!t){for(let f=0;f<l.length;f+=1)k(i[f]);t=!0}},o(s){i=i.filter(Wr);for(let f=0;f<i.length;f+=1)C(i[f]);t=!1},d(s){s&&_(e),xt(i,s)}}}function Ua(n){var i,r;let e,t;function l(...s){return n[39](n[52],...s)}return e=new jr({props:{value:(i=n[52])==null?void 0:i.value,valueLabel:(r=n[52])==null?void 0:r.label,handleSelect:n[38],multiple:n[2],active:n[12].some(l)}}),{c(){$(e.$$.fragment)},l(s){ee(e.$$.fragment,s)},m(s,f){te(e,s,f),t=!0},p(s,f){var a,u;n=s;const o={};f[1]&2097152&&(o.value=(a=n[52])==null?void 0:a.value),f[1]&2097152&&(o.valueLabel=(u=n[52])==null?void 0:u.label),f[0]&516&&(o.handleSelect=n[38]),f[0]&4&&(o.multiple=n[2]),f[0]&4096|f[1]&2097152&&(o.active=n[12].some(l)),e.$set(o)},i(s){t||(k(e.$$.fragment,s),t=!0)},o(s){C(e.$$.fragment,s),t=!1},d(s){le(e,s)}}}function Qn(n){let e,t;function l(...i){return n[37](n[52],...i)}return e=new jr({props:{id:n[54],value:n[52].value,valueLabel:n[52].label,handleSelect:n[36],multiple:n[2],active:n[12].some(l)}}),{c(){$(e.$$.fragment)},l(i){ee(e.$$.fragment,i)},m(i,r){te(e,i,r),t=!0},p(i,r){n=i;const s={};r[0]&2048&&(s.value=n[52].value),r[0]&2048&&(s.valueLabel=n[52].label),r[0]&516&&(s.handleSelect=n[36]),r[0]&4&&(s.multiple=n[2]),r[0]&6144&&(s.active=n[12].some(l)),e.$set(s)},i(i){t||(k(e.$$.fragment,i),t=!0)},o(i){C(e.$$.fragment,i),t=!1},d(i){le(e,i)}}}function Xa(n){let e,t,l,i;const r=[Wa,Ga],s=[];function f(o,a){return o[11].length<=Ur?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Yn(n){let e,t,l,i,r,s=!n[4]&&Kn(n);return i=new qi({props:{disabled:n[12].length===0,class:"justify-center text-center",onSelect:n[40],$$slots:{default:[Ya]},$$scope:{ctx:n}}}),{c(){s&&s.c(),e=J(),t=z("div"),l=J(),$(i.$$.fragment),this.h()},l(f){s&&s.l(f),e=Z(f),t=R(f,"DIV",{class:!0}),Q(t).forEach(_),l=Z(f),ee(i.$$.fragment,f),this.h()},h(){L(t,"class","-mx-1 h-px bg-gray-200")},m(f,o){s&&s.m(f,o),v(f,e,o),v(f,t,o),v(f,l,o),te(i,f,o),r=!0},p(f,o){f[4]?s&&(_e(),C(s,1,1,()=>{s=null}),ge()):s?(s.p(f,o),o[0]&16&&k(s,1)):(s=Kn(f),s.c(),k(s,1),s.m(e.parentNode,e));const a={};o[0]&4096&&(a.disabled=f[12].length===0),o[1]&2048&&(a.$$scope={dirty:o,ctx:f}),i.$set(a)},i(f){r||(k(s),k(i.$$.fragment,f),r=!0)},o(f){C(s),C(i.$$.fragment,f),r=!1},d(f){f&&(_(e),_(t),_(l)),s&&s.d(f),le(i,f)}}}function Kn(n){let e,t,l,i;return l=new qi({props:{class:"justify-center text-center",onSelect:n[20],$$slots:{default:[Qa]},$$scope:{ctx:n}}}),{c(){e=z("div"),t=J(),$(l.$$.fragment),this.h()},l(r){e=R(r,"DIV",{class:!0}),Q(e).forEach(_),t=Z(r),ee(l.$$.fragment,r),this.h()},h(){L(e,"class","-mx-1 h-px bg-gray-200")},m(r,s){v(r,e,s),v(r,t,s),te(l,r,s),i=!0},p(r,s){const f={};s[1]&2048&&(f.$$scope={dirty:s,ctx:r}),l.$set(f)},i(r){i||(k(l.$$.fragment,r),i=!0)},o(r){C(l.$$.fragment,r),i=!1},d(r){r&&(_(e),_(t)),le(l,r)}}}function Qa(n){let e;return{c(){e=me("Select all")},l(t){e=he(t,"Select all")},m(t,l){v(t,e,l)},d(t){t&&_(e)}}}function Ya(n){let e;return{c(){e=me("Clear selection")},l(t){e=he(t,"Clear selection")},m(t,l){v(t,e,l)},d(t){t&&_(e)}}}function Ka(n){let e,t,l,i,r,s;e=new Gf({props:{$$slots:{default:[Ha]},$$scope:{ctx:n}}}),l=new Qf({props:{$$slots:{default:[Xa]},$$scope:{ctx:n}}});let f=n[2]&&Yn(n);return{c(){$(e.$$.fragment),t=J(),$(l.$$.fragment),i=J(),f&&f.c(),r=se()},l(o){ee(e.$$.fragment,o),t=Z(o),ee(l.$$.fragment,o),i=Z(o),f&&f.l(o),r=se()},m(o,a){te(e,o,a),v(o,t,a),te(l,o,a),v(o,i,a),f&&f.m(o,a),v(o,r,a),s=!0},p(o,a){const u={};a[1]&2048&&(u.$$scope={dirty:a,ctx:o}),e.$set(u);const c={};a[0]&6660|a[1]&2048&&(c.$$scope={dirty:a,ctx:o}),l.$set(c),o[2]?f?(f.p(o,a),a[0]&4&&k(f,1)):(f=Yn(o),f.c(),k(f,1),f.m(r.parentNode,r)):f&&(_e(),C(f,1,1,()=>{f=null}),ge())},i(o){s||(k(e.$$.fragment,o),k(l.$$.fragment,o),k(f),s=!0)},o(o){C(e.$$.fragment,o),C(l.$$.fragment,o),C(f),s=!1},d(o){o&&(_(t),_(i),_(r)),le(e,o),le(l,o),f&&f.d(o)}}}function Ja(n){let e,t,l,i,r;function s(o){n[35](o)}let f={placeholder:n[0]};return n[5]!==void 0&&(f.value=n[5]),e=new $f({props:f}),Ke.push(()=>vl(e,"value",s)),i=new ia({props:{$$slots:{default:[Ka]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment),l=J(),$(i.$$.fragment)},l(o){ee(e.$$.fragment,o),l=Z(o),ee(i.$$.fragment,o)},m(o,a){te(e,o,a),v(o,l,a),te(i,o,a),r=!0},p(o,a){const u={};a[0]&1&&(u.placeholder=o[0]),!t&&a[0]&32&&(t=!0,u.value=o[5],pl(()=>t=!1)),e.$set(u);const c={};a[0]&6676|a[1]&2048&&(c.$$scope={dirty:a,ctx:o}),i.$set(c)},i(o){r||(k(e.$$.fragment,o),k(i.$$.fragment,o),r=!0)},o(o){C(e.$$.fragment,o),C(i.$$.fragment,o),r=!1},d(o){o&&_(l),le(e,o),le(i,o)}}}function Za(n){let e,t;return e=new zf({props:{shouldFilter:!1,$$slots:{default:[Ja]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&6709|i[1]&2048&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function xa(n){let e,t,l,i;return e=new ha({props:{asChild:!0,$$slots:{default:[ja,({builder:r})=>({55:r}),({builder:r})=>[0,r?16777216:0]]},$$scope:{ctx:n}}}),l=new da({props:{class:"w-[200px] p-0",align:"start",side:"bottom",$$slots:{default:[Za]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment),t=J(),$(l.$$.fragment)},l(r){ee(e.$$.fragment,r),t=Z(r),ee(l.$$.fragment,r)},m(r,s){te(e,r,s),v(r,t,s),te(l,r,s),i=!0},p(r,s){const f={};s[0]&4103|s[1]&16779264&&(f.$$scope={dirty:s,ctx:r}),e.$set(f);const o={};s[0]&6709|s[1]&2048&&(o.$$scope={dirty:s,ctx:r}),l.$set(o)},i(r){i||(k(e.$$.fragment,r),k(l.$$.fragment,r),i=!0)},o(r){C(e.$$.fragment,r),C(l.$$.fragment,r),i=!1},d(r){r&&_(t),le(e,r),le(l,r)}}}function $a(n){let e,t,l,i;const r=[Ma,Da],s=[];function f(o,a){return o[7]&&o[8].error?0:1}return t=f(n),l=s[t]=r[t](n),{c(){e=z("div"),l.c(),this.h()},l(o){e=R(o,"DIV",{class:!0});var a=Q(e);l.l(a),a.forEach(_),this.h()},h(){L(e,"class","mt-2 mb-4 ml-0 mr-2 inline-block")},m(o,a){v(o,e,a),s[t].m(e,null),i=!0},p(o,a){let u=t;t=f(o),t===u?s[t].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),l=s[t],l?l.p(o,a):(l=s[t]=r[t](o),l.c()),k(l,1),l.m(e,null))},i(o){i||(k(l),i=!0)},o(o){C(l),i=!1},d(o){o&&_(e),s[t].d()}}}function eu(n){let e,t,l,i,r;const s=n[34].default,f=Ce(s,n,n[42],null);return t=new Dr({props:{data:n[13],$$slots:{skeleton:[La],default:[Aa,({loaded:o})=>({58:o}),({loaded:o})=>[0,o?134217728:0]]},$$scope:{ctx:n}}}),i=new Vo({props:{enabled:n[3],$$slots:{default:[$a]},$$scope:{ctx:n}}}),{c(){f&&f.c(),e=J(),$(t.$$.fragment),l=J(),$(i.$$.fragment)},l(o){f&&f.l(o),e=Z(o),ee(t.$$.fragment,o),l=Z(o),ee(i.$$.fragment,o)},m(o,a){f&&f.m(o,a),v(o,e,a),te(t,o,a),v(o,l,a),te(i,o,a),r=!0},p(o,a){f&&f.p&&(!r||a[1]&2048)&&ve(f,s,o,o[42],r?we(s,o[42],a,null):Se(o[42]),null);const u={};a[0]&8192&&(u.data=o[13]),a[1]&134219776&&(u.$$scope={dirty:a,ctx:o}),t.$set(u);const c={};a[0]&8&&(c.enabled=o[3]),a[0]&7095|a[1]&2048&&(c.$$scope={dirty:a,ctx:o}),i.$set(c)},i(o){r||(k(f,o),k(t.$$.fragment,o),k(i.$$.fragment,o),r=!0)},o(o){C(f,o),C(t.$$.fragment,o),C(i.$$.fragment,o),r=!1},d(o){o&&(_(e),_(l)),f&&f.d(o),le(t,o),le(i,o)}}}const Ur=5;function Jn(n){return"similarity"in n?n.similarity*-1:n.ordinal??0}function tu(n,e,t){var it;let l,i,r,s,f,o,a=ce,u=()=>(a(),a=Ql(r,V=>t(8,o=V)),r),c,d,g,m,h=ce,b=()=>(h(),h=Ql(Ge,V=>t(13,m=V)),Ge);Me(n,Ni,V=>t(43,d=V)),n.$$.on_destroy.push(()=>a()),n.$$.on_destroy.push(()=>h());let{$$slots:p={},$$scope:y}=e;const S=el(Tr);Me(n,S,V=>t(44,g=V));let{title:E=void 0}=e,{name:D}=e,{multiple:G=!1}=e,{hideDuringPrint:P=!0}=e,{disableSelectAll:w=!1}=e,{defaultValue:T=[]}=e,{noDefault:N=!1}=e,{selectAllByDefault:q=!1}=e;const A=Oa(G),{selectedOptions:M,options:B,addOption:re,removeOption:ne,flagOption:ae,select:W,deselectAll:oe}=A;Me(n,M,V=>t(12,f=V)),Me(n,B,V=>t(11,s=V)),$t(zr,{registerOption:V=>(re(V),()=>{ne(V)})});let x=!1;ht(()=>M.subscribe(V=>{V.length&&t(29,x=!0),x&&(G?Pt(S,g[D]={label:V.map(de=>de.label).join(", "),value:V.length?`(${V.map(de=>Mi(de.value))})`:"(select null where 0)",rawValues:V},g):V.length?V.length&&Pt(S,g[D]={label:V[0].label,value:Mi(V[0].value,{serializeStrings:!1}),rawValues:V},g):Pt(S,g[D]={label:"",value:null,rawValues:[]},g))})),ht(()=>S.subscribe(Li(V=>{var Qe,vt,St;const de=Array.isArray((Qe=V[D])==null?void 0:Qe.rawValues)?(vt=V[D])==null?void 0:vt.rawValues:[(St=V[D])==null?void 0:St.rawValues],Be=f;de.every(Boolean)&&de.length!==Be.length&&JSON.stringify(de)!==JSON.stringify(Be)&&de.forEach(W)},10)));let X=!1,I="",{value:K,data:H,label:Te,order:Le=void 0,where:ue=void 0}=e;const{results:Xe,update:He}=ys({value:K,data:H,label:Te,order:Le,where:ue},`Dropdown-${D}`,(it=d==null?void 0:d.data)==null?void 0:it.data[`Dropdown-${D}`]);Me(n,Xe,V=>t(33,c=V));let Je,Ge;const ze=Li(async()=>{if(I&&i){const V=r.search(I,"label");await V.fetch(),b(t(10,Ge=V)),f.length&&f.forEach(de=>{!de.removeOnDeselect&&de.__auto&&ae([de,Ft.REMOVE_ON_DESELECT])})}else s.forEach(V=>{V.removeOnDeselect&&ae([V,Ft.REMOVE_ON_DESELECT])}),b(t(10,Ge=r)),t(29,x=!1),t(31,We=void 0)},250);let We;const qe=async()=>{try{if(r&&await r.fetch(),await A.flushed,f.length){const V=f.filter(de=>s.some(Be=>Be.value===de.value&&Be.label===de.label));if(V.length!==f.length&&JSON.stringify(V)!==JSON.stringify(f)){oe(),V.forEach(de=>W(de));return}if(V.length)return}if(q&&G){Re();return}if(N){oe();return}else if(typeof T<"u"&&T!==null&&T.length){const V=Array.isArray(T)?T:[T];if(V.length){s.filter(de=>V.some(Be=>de.value===Be)).forEach(de=>W(de));return}}else!G&&s.length&&W(s[0]);return}catch(V){console.error(`Error while updating Dropdown Query: ${V.message}`)}};function Re(){s.forEach(V=>{ae([V,Ft.FORCE_SELECT])})}function Ue(V){I=V,t(5,I)}const Ze=({value:V,label:de})=>{W({value:V,label:de}),G||t(9,X=!1)},tt=(V,de)=>de.value===V.value&&de.label===V.label,lt=({value:V,label:de})=>{W({value:V,label:de}),G||t(9,X=!1)},j=(V,de)=>de.value===V.value&&de.label===V.label,Ie=()=>{oe()};function xe(V){X=V,t(9,X)}return n.$$set=V=>{"title"in V&&t(0,E=V.title),"name"in V&&t(1,D=V.name),"multiple"in V&&t(2,G=V.multiple),"hideDuringPrint"in V&&t(3,P=V.hideDuringPrint),"disableSelectAll"in V&&t(4,w=V.disableSelectAll),"defaultValue"in V&&t(21,T=V.defaultValue),"noDefault"in V&&t(22,N=V.noDefault),"selectAllByDefault"in V&&t(23,q=V.selectAllByDefault),"value"in V&&t(24,K=V.value),"data"in V&&t(25,H=V.data),"label"in V&&t(26,Te=V.label),"order"in V&&t(27,Le=V.order),"where"in V&&t(28,ue=V.where),"$$scope"in V&&t(42,y=V.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&520093696&&He({value:K,data:H,label:Te,order:Le,where:ue}),n.$$.dirty[0]&33554432&&t(32,l=typeof H=="string"?H:H==null?void 0:H.hash),n.$$.dirty[0]&1107296256|n.$$.dirty[1]&2&&l!==Je&&(oe(!0),t(30,Je=l)),n.$$.dirty[1]&4&&t(7,{hasQuery:i,query:r}=c,i,u(t(6,r))),n.$$.dirty[0]&96&&ze(),n.$$.dirty[0]&536871296|n.$$.dirty[1]&1&&!We&&(i&&o||!i)){let V=!0;t(31,We=B.subscribe(de=>{if(V){V=!1;return}!x&&de.length&&(setTimeout(qe,0),We())}))}},[E,D,G,P,w,I,r,i,o,X,Ge,s,f,m,S,M,B,W,oe,Xe,Re,T,N,q,K,H,Te,Le,ue,x,Je,We,l,c,p,Ue,Ze,tt,lt,j,Ie,xe,y]}class Zn extends ke{constructor(e){super(),pe(this,e,tu,eu,be,{title:0,name:1,multiple:2,hideDuringPrint:3,disableSelectAll:4,defaultValue:21,noDefault:22,selectAllByDefault:23,value:24,data:25,label:26,order:27,where:28},null,[-1,-1])}}function xn(n){let e,t,l;const i=n[3].default,r=Ce(i,n,n[2],null);return{c(){e=z("div"),r&&r.c(),this.h()},l(s){e=R(s,"DIV",{class:!0});var f=Q(e);r&&r.l(f),f.forEach(_),this.h()},h(){L(e,"class","pl-[calc(0.5rem+10px)] pt-3 mb-6")},m(s,f){v(s,e,f),r&&r.m(e,null),l=!0},p(s,f){r&&r.p&&(!l||f&4)&&ve(r,i,s,s[2],l?we(i,s[2],f,null):Se(s[2]),null)},i(s){l||(k(r,s),s&&ot(()=>{l&&(t||(t=ft(e,_t,{},!0)),t.run(1))}),l=!0)},o(s){C(r,s),s&&(t||(t=ft(e,_t,{},!1)),t.run(0)),l=!1},d(s){s&&_(e),r&&r.d(s),s&&t&&t.end()}}}function lu(n){let e,t,l,i,r,s,f,o,a,u,c,d=n[0]&&xn(n);return{c(){e=z("div"),t=z("button"),l=z("span"),r=J(),s=z("span"),f=me(n[1]),o=J(),d&&d.c(),this.h()},l(g){e=R(g,"DIV",{class:!0});var m=Q(e);t=R(m,"BUTTON",{class:!0});var h=Q(t);l=R(h,"SPAN",{class:!0}),Q(l).forEach(_),r=Z(h),s=R(h,"SPAN",{});var b=Q(s);f=he(b,n[1]),b.forEach(_),h.forEach(_),o=Z(m),d&&d.l(m),m.forEach(_),this.h()},h(){L(l,"class",i=gl(n[0]?"marker rotate-marker":"marker")+" svelte-98nx5w"),L(t,"class","text-sm cursor-pointer inline-flex gap-2 svelte-98nx5w"),L(e,"class","mb-4 mt-3")},m(g,m){v(g,e,m),Y(e,t),Y(t,l),Y(t,r),Y(t,s),Y(s,f),Y(e,o),d&&d.m(e,null),a=!0,u||(c=Fe(t,"click",n[4]),u=!0)},p(g,[m]){(!a||m&1&&i!==(i=gl(g[0]?"marker rotate-marker":"marker")+" svelte-98nx5w"))&&L(l,"class",i),(!a||m&2)&&De(f,g[1]),g[0]?d?(d.p(g,m),m&1&&k(d,1)):(d=xn(g),d.c(),k(d,1),d.m(e,null)):d&&(_e(),C(d,1,1,()=>{d=null}),ge())},i(g){a||(k(d),a=!0)},o(g){C(d),a=!1},d(g){g&&_(e),d&&d.d(),u=!1,c()}}}function iu(n,e,t){let{$$slots:l={},$$scope:i}=e,{title:r="Details"}=e,{open:s=!1}=e;const f=()=>t(0,s=!s);return n.$$set=o=>{"title"in o&&t(1,r=o.title),"open"in o&&t(0,s=o.open),"$$scope"in o&&t(2,i=o.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(0,s=s==="true"||s===!0)},[s,r,i,l,f]}class nu extends ke{constructor(e){super(),pe(this,e,iu,lu,be,{title:1,open:0})}}function $n(n,e,t){const l=n.slice();return l[12]=e[t],l[14]=t,l}function er(n,e,t){const l=n.slice();return l[15]=e[t],l[17]=t,l}function tr(n,e,t){const l=n.slice();return l[15]=e[t],l}function lr(n,e,t){const l=n.slice();return l[15]=e[t],l}function ir(n){let e,t=n[15].id+"",l,i,r,s;return{c(){e=z("th"),l=me(t),this.h()},l(f){e=R(f,"TH",{class:!0,style:!0,evidencetype:!0,evidencetypefidelity:!0});var o=Q(e);l=he(o,t),o.forEach(_),this.h()},h(){var f,o;L(e,"class",i=gl(n[15].type)+" svelte-iw7vqx"),U(e,"width",n[6]+"%"),L(e,"evidencetype",r=((f=n[15].evidenceColumnType)==null?void 0:f.evidenceType)||"unavailable"),L(e,"evidencetypefidelity",s=((o=n[15].evidenceColumnType)==null?void 0:o.typeFidelity)||"unavailable")},m(f,o){v(f,e,o),Y(e,l)},p(f,o){var a,u;o&8&&t!==(t=f[15].id+"")&&De(l,t),o&8&&i!==(i=gl(f[15].type)+" svelte-iw7vqx")&&L(e,"class",i),o&64&&U(e,"width",f[6]+"%"),o&8&&r!==(r=((a=f[15].evidenceColumnType)==null?void 0:a.evidenceType)||"unavailable")&&L(e,"evidencetype",r),o&8&&s!==(s=((u=f[15].evidenceColumnType)==null?void 0:u.typeFidelity)||"unavailable")&&L(e,"evidencetypefidelity",s)},d(f){f&&_(e)}}}function nr(n){let e,t=n[15].type+"",l,i,r,s;return{c(){e=z("th"),l=me(t),this.h()},l(f){e=R(f,"TH",{class:!0,style:!0,evidencetype:!0,evidencetypefidelity:!0});var o=Q(e);l=he(o,t),o.forEach(_),this.h()},h(){var f,o;L(e,"class",i=n[15].type+" type-indicator svelte-iw7vqx"),U(e,"width",n[6]+"%"),L(e,"evidencetype",r=((f=n[15].evidenceColumnType)==null?void 0:f.evidenceType)||"unavailable"),L(e,"evidencetypefidelity",s=((o=n[15].evidenceColumnType)==null?void 0:o.typeFidelity)||"unavailable")},m(f,o){v(f,e,o),Y(e,l)},p(f,o){var a,u;o&8&&t!==(t=f[15].type+"")&&De(l,t),o&8&&i!==(i=f[15].type+" type-indicator svelte-iw7vqx")&&L(e,"class",i),o&64&&U(e,"width",f[6]+"%"),o&8&&r!==(r=((a=f[15].evidenceColumnType)==null?void 0:a.evidenceType)||"unavailable")&&L(e,"evidencetype",r),o&8&&s!==(s=((u=f[15].evidenceColumnType)==null?void 0:u.typeFidelity)||"unavailable")&&L(e,"evidencetypefidelity",s)},d(f){f&&_(e)}}}function ru(n){let e=(n[2]+n[14]+1).toLocaleString()+"",t;return{c(){t=me(e)},l(l){t=he(l,e)},m(l,i){v(l,t,i)},p(l,i){i&4&&e!==(e=(l[2]+l[14]+1).toLocaleString()+"")&&De(t,e)},d(l){l&&_(t)}}}function su(n){let e=(n[2]+n[14]+1).toLocaleString()+"",t;return{c(){t=me(e)},l(l){t=he(l,e)},m(l,i){v(l,t,i)},p(l,i){i&4&&e!==(e=(l[2]+l[14]+1).toLocaleString()+"")&&De(t,e)},d(l){l&&_(t)}}}function ou(n){let e,t=(n[12][n[15].id]||"Ø")+"",l;return{c(){e=z("td"),l=me(t),this.h()},l(i){e=R(i,"TD",{class:!0,style:!0});var r=Q(e);l=he(r,t),r.forEach(_),this.h()},h(){L(e,"class","other svelte-iw7vqx"),U(e,"width",n[6]+"%")},m(i,r){v(i,e,r),Y(e,l)},p(i,r){r&40&&t!==(t=(i[12][i[15].id]||"Ø")+"")&&De(l,t),r&64&&U(e,"width",i[6]+"%")},d(i){i&&_(e)}}}function fu(n){let e,t,l=(n[12][n[15].id]??"Ø")+"",i,r;return{c(){e=z("td"),t=z("div"),i=me(l),this.h()},l(s){e=R(s,"TD",{class:!0,style:!0,title:!0});var f=Q(e);t=R(f,"DIV",{class:!0});var o=Q(t);i=he(o,l),o.forEach(_),f.forEach(_),this.h()},h(){L(t,"class","svelte-iw7vqx"),L(e,"class","boolean svelte-iw7vqx"),U(e,"width",n[6]+"%"),L(e,"title",r=n[12][n[15].id])},m(s,f){v(s,e,f),Y(e,t),Y(t,i)},p(s,f){f&40&&l!==(l=(s[12][s[15].id]??"Ø")+"")&&De(i,l),f&64&&U(e,"width",s[6]+"%"),f&40&&r!==(r=s[12][s[15].id])&&L(e,"title",r)},d(s){s&&_(e)}}}function au(n){let e,t,l=(n[12][n[15].id]||"Ø")+"",i,r;return{c(){e=z("td"),t=z("div"),i=me(l),this.h()},l(s){e=R(s,"TD",{class:!0,style:!0,title:!0});var f=Q(e);t=R(f,"DIV",{class:!0});var o=Q(t);i=he(o,l),o.forEach(_),f.forEach(_),this.h()},h(){L(t,"class","svelte-iw7vqx"),L(e,"class","string svelte-iw7vqx"),U(e,"width",n[6]+"%"),L(e,"title",r=n[12][n[15].id])},m(s,f){v(s,e,f),Y(e,t),Y(t,i)},p(s,f){f&40&&l!==(l=(s[12][s[15].id]||"Ø")+"")&&De(i,l),f&64&&U(e,"width",s[6]+"%"),f&40&&r!==(r=s[12][s[15].id])&&L(e,"title",r)},d(s){s&&_(e)}}}function uu(n){let e,t,l=et(n[12][n[15].id],n[3][n[17]].format,n[3][n[17]].columnUnitSummary)+"",i,r;return{c(){e=z("td"),t=z("div"),i=me(l),this.h()},l(s){e=R(s,"TD",{class:!0,style:!0,title:!0});var f=Q(e);t=R(f,"DIV",{class:!0});var o=Q(t);i=he(o,l),o.forEach(_),f.forEach(_),this.h()},h(){L(t,"class","svelte-iw7vqx"),L(e,"class","string svelte-iw7vqx"),U(e,"width",n[6]+"%"),L(e,"title",r=et(n[12][n[15].id],n[3][n[17]].format,n[3][n[17]].columnUnitSummary))},m(s,f){v(s,e,f),Y(e,t),Y(t,i)},p(s,f){f&40&&l!==(l=et(s[12][s[15].id],s[3][s[17]].format,s[3][s[17]].columnUnitSummary)+"")&&De(i,l),f&64&&U(e,"width",s[6]+"%"),f&40&&r!==(r=et(s[12][s[15].id],s[3][s[17]].format,s[3][s[17]].columnUnitSummary))&&L(e,"title",r)},d(s){s&&_(e)}}}function cu(n){let e,t=et(n[12][n[15].id],n[3][n[17]].format,n[3][n[17]].columnUnitSummary)+"",l;return{c(){e=z("td"),l=me(t),this.h()},l(i){e=R(i,"TD",{class:!0,style:!0});var r=Q(e);l=he(r,t),r.forEach(_),this.h()},h(){L(e,"class","number svelte-iw7vqx"),U(e,"width",n[6]+"%")},m(i,r){v(i,e,r),Y(e,l)},p(i,r){r&40&&t!==(t=et(i[12][i[15].id],i[3][i[17]].format,i[3][i[17]].columnUnitSummary)+"")&&De(l,t),r&64&&U(e,"width",i[6]+"%")},d(i){i&&_(e)}}}function du(n){let e,t="Ø",l,i;return{c(){e=z("td"),l=me(t),this.h()},l(r){e=R(r,"TD",{class:!0,style:!0});var s=Q(e);l=he(s,t),s.forEach(_),this.h()},h(){L(e,"class",i="null "+n[3][n[17]].type+" svelte-iw7vqx"),U(e,"width",n[6]+"%")},m(r,s){v(r,e,s),Y(e,l)},p(r,s){s&8&&i!==(i="null "+r[3][r[17]].type+" svelte-iw7vqx")&&L(e,"class",i),s&64&&U(e,"width",r[6]+"%")},d(r){r&&_(e)}}}function rr(n){let e;function t(r,s){return r[12][r[15].id]==null?du:r[3][r[17]].type==="number"?cu:r[3][r[17]].type==="date"?uu:r[3][r[17]].type==="string"?au:r[3][r[17]].type==="boolean"?fu:ou}let l=t(n),i=l(n);return{c(){i.c(),e=se()},l(r){i.l(r),e=se()},m(r,s){i.m(r,s),v(r,e,s)},p(r,s){l===(l=t(r))&&i?i.p(r,s):(i.d(1),i=l(r),i&&(i.c(),i.m(e.parentNode,e)))},d(r){r&&_(e),i.d(r)}}}function sr(n){let e,t,l,i;function r(u,c){return u[14]===0?su:ru}let f=r(n)(n),o=Ye(n[3]),a=[];for(let u=0;u<o.length;u+=1)a[u]=rr(er(n,o,u));return{c(){e=z("tr"),t=z("td"),f.c(),l=J();for(let u=0;u<a.length;u+=1)a[u].c();i=J(),this.h()},l(u){e=R(u,"TR",{});var c=Q(e);t=R(c,"TD",{class:!0,style:!0});var d=Q(t);f.l(d),d.forEach(_),l=Z(c);for(let g=0;g<a.length;g+=1)a[g].l(c);i=Z(c),c.forEach(_),this.h()},h(){L(t,"class","index svelte-iw7vqx"),U(t,"width","10%")},m(u,c){v(u,e,c),Y(e,t),f.m(t,null),Y(e,l);for(let d=0;d<a.length;d+=1)a[d]&&a[d].m(e,null);Y(e,i)},p(u,c){if(f.p(u,c),c&104){o=Ye(u[3]);let d;for(d=0;d<o.length;d+=1){const g=er(u,o,d);a[d]?a[d].p(g,c):(a[d]=rr(g),a[d].c(),a[d].m(e,i))}for(;d<a.length;d+=1)a[d].d(1);a.length=o.length}},d(u){u&&_(e),f.d(),xt(a,u)}}}function or(n){let e,t,l,i,r=(n[2]+Nt).toLocaleString()+"",s,f,o=(n[4]+Nt).toLocaleString()+"",a,u,c;return{c(){e=z("div"),t=z("input"),l=J(),i=z("span"),s=me(r),f=me(" of "),a=me(o),this.h()},l(d){e=R(d,"DIV",{class:!0});var g=Q(e);t=R(g,"INPUT",{type:!0,max:!0,step:!0,class:!0}),l=Z(g),i=R(g,"SPAN",{class:!0});var m=Q(i);s=he(m,r),f=he(m," of "),a=he(m,o),m.forEach(_),g.forEach(_),this.h()},h(){L(t,"type","range"),L(t,"max",n[4]),L(t,"step","1"),L(t,"class","slider svelte-iw7vqx"),L(i,"class","svelte-iw7vqx"),L(e,"class","pagination svelte-iw7vqx")},m(d,g){v(d,e,g),Y(e,t),Xl(t,n[2]),Y(e,l),Y(e,i),Y(i,s),Y(i,f),Y(i,a),u||(c=[Fe(t,"change",n[9]),Fe(t,"input",n[9]),Fe(t,"input",n[7])],u=!0)},p(d,g){g&16&&L(t,"max",d[4]),g&4&&Xl(t,d[2]),g&4&&r!==(r=(d[2]+Nt).toLocaleString()+"")&&De(s,r),g&16&&o!==(o=(d[4]+Nt).toLocaleString()+"")&&De(a,o)},d(d){d&&_(e),u=!1,qt(c)}}}function mu(n){let e,t,l,i,r,s,f,o,a,u,c,d,g,m,h,b,p,y,S,E,D,G,P,w,T,N,q=Ye(n[3]),A=[];for(let W=0;W<q.length;W+=1)A[W]=ir(lr(n,q,W));let M=Ye(n[3]),B=[];for(let W=0;W<M.length;W+=1)B[W]=nr(tr(n,M,W));let re=Ye(n[5]),ne=[];for(let W=0;W<re.length;W+=1)ne[W]=sr($n(n,re,W));let ae=n[4]>0&&or(n);return G=new Pi({props:{class:"download-button",data:n[1],queryID:n[0],display:!0}}),{c(){e=z("div"),t=z("div"),l=z("table"),i=z("thead"),r=z("tr"),s=z("th"),f=J();for(let W=0;W<A.length;W+=1)A[W].c();o=J(),a=z("tr"),u=J(),c=z("tr"),d=z("th"),g=J();for(let W=0;W<B.length;W+=1)B[W].c();m=J(),h=z("tr"),b=J(),p=z("tbody");for(let W=0;W<ne.length;W+=1)ne[W].c();S=J(),ae&&ae.c(),E=J(),D=z("div"),$(G.$$.fragment),this.h()},l(W){e=R(W,"DIV",{class:!0});var oe=Q(e);t=R(oe,"DIV",{class:!0});var x=Q(t);l=R(x,"TABLE",{class:!0});var X=Q(l);i=R(X,"THEAD",{});var I=Q(i);r=R(I,"TR",{});var K=Q(r);s=R(K,"TH",{class:!0,style:!0}),Q(s).forEach(_),f=Z(K);for(let ue=0;ue<A.length;ue+=1)A[ue].l(K);o=Z(K),K.forEach(_),a=R(I,"TR",{}),Q(a).forEach(_),u=Z(I),c=R(I,"TR",{class:!0});var H=Q(c);d=R(H,"TH",{class:!0,style:!0}),Q(d).forEach(_),g=Z(H);for(let ue=0;ue<B.length;ue+=1)B[ue].l(H);m=Z(H),H.forEach(_),h=R(I,"TR",{}),Q(h).forEach(_),I.forEach(_),b=Z(X),p=R(X,"TBODY",{});var Te=Q(p);for(let ue=0;ue<ne.length;ue+=1)ne[ue].l(Te);Te.forEach(_),X.forEach(_),x.forEach(_),S=Z(oe),ae&&ae.l(oe),E=Z(oe),D=R(oe,"DIV",{class:!0});var Le=Q(D);ee(G.$$.fragment,Le),Le.forEach(_),oe.forEach(_),this.h()},h(){L(s,"class","index svelte-iw7vqx"),U(s,"width","10%"),L(d,"class","index type-indicator svelte-iw7vqx"),U(d,"width","10%"),L(c,"class","type-indicator svelte-iw7vqx"),L(l,"class","svelte-iw7vqx"),L(t,"class","scrollbox svelte-iw7vqx"),L(D,"class","footer svelte-iw7vqx"),L(e,"class","results-pane py-1 svelte-iw7vqx")},m(W,oe){v(W,e,oe),Y(e,t),Y(t,l),Y(l,i),Y(i,r),Y(r,s),Y(r,f);for(let x=0;x<A.length;x+=1)A[x]&&A[x].m(r,null);Y(r,o),Y(i,a),Y(i,u),Y(i,c),Y(c,d),Y(c,g);for(let x=0;x<B.length;x+=1)B[x]&&B[x].m(c,null);Y(c,m),Y(i,h),Y(l,b),Y(l,p);for(let x=0;x<ne.length;x+=1)ne[x]&&ne[x].m(p,null);Y(e,S),ae&&ae.m(e,null),Y(e,E),Y(e,D),te(G,D,null),w=!0,T||(N=Fe(p,"wheel",n[8]),T=!0)},p(W,[oe]){if(oe&72){q=Ye(W[3]);let X;for(X=0;X<q.length;X+=1){const I=lr(W,q,X);A[X]?A[X].p(I,oe):(A[X]=ir(I),A[X].c(),A[X].m(r,o))}for(;X<A.length;X+=1)A[X].d(1);A.length=q.length}if(oe&72){M=Ye(W[3]);let X;for(X=0;X<M.length;X+=1){const I=tr(W,M,X);B[X]?B[X].p(I,oe):(B[X]=nr(I),B[X].c(),B[X].m(c,m))}for(;X<B.length;X+=1)B[X].d(1);B.length=M.length}if(oe&108){re=Ye(W[5]);let X;for(X=0;X<re.length;X+=1){const I=$n(W,re,X);ne[X]?ne[X].p(I,oe):(ne[X]=sr(I),ne[X].c(),ne[X].m(p,null))}for(;X<ne.length;X+=1)ne[X].d(1);ne.length=re.length}W[4]>0?ae?ae.p(W,oe):(ae=or(W),ae.c(),ae.m(e,E)):ae&&(ae.d(1),ae=null);const x={};oe&2&&(x.data=W[1]),oe&1&&(x.queryID=W[0]),G.$set(x)},i(W){w||(W&&(y||ot(()=>{y=Cl(l,Pr,{}),y.start()})),k(G.$$.fragment,W),W&&ot(()=>{w&&(P||(P=ft(e,_t,{},!0)),P.run(1))}),w=!0)},o(W){C(G.$$.fragment,W),W&&(P||(P=ft(e,_t,{},!1)),P.run(0)),w=!1},d(W){W&&_(e),xt(A,W),xt(B,W),xt(ne,W),ae&&ae.d(),le(G),W&&P&&P.end(),T=!1,N()}}}let Nt=5;function hu(n,e,t){let l,i,r,s,{queryID:f}=e,{data:o}=e,a=0,u;function c(){u=o.slice(a,a+Nt),t(5,s=u)}const d=ks(h=>{t(2,a=Math.min(Math.max(0,a+Math.floor(h.deltaY/Math.abs(h.deltaY))),r)),c()},60);function g(h){if(Math.abs(h.deltaX)>=Math.abs(h.deltaY))return;const b=h.deltaY<0&&a===0,p=h.deltaY>0&&a===r;b||p||(h.preventDefault(),d(h))}function m(){a=Jr(this.value),t(2,a)}return n.$$set=h=>{"queryID"in h&&t(0,f=h.queryID),"data"in h&&t(1,o=h.data)},n.$$.update=()=>{n.$$.dirty&2&&t(3,l=Ul(o,"array")),n.$$.dirty&8&&t(6,i=90/(l.length+1)),n.$$.dirty&2&&t(4,r=Math.max(o.length-Nt,0)),n.$$.dirty&6&&t(5,s=o.slice(a,a+Nt))},[f,o,a,l,r,s,i,c,g,m]}class _u extends ke{constructor(e){super(),pe(this,e,hu,mu,be,{queryID:0,data:1})}}function gu(n){let e,t="Compiled",l,i,r="Written",s,f;return{c(){e=z("button"),e.textContent=t,l=J(),i=z("button"),i.textContent=r,this.h()},l(o){e=R(o,"BUTTON",{class:!0,"data-svelte-h":!0}),st(e)!=="svelte-1vzm9jy"&&(e.textContent=t),l=Z(o),i=R(o,"BUTTON",{class:!0,"data-svelte-h":!0}),st(i)!=="svelte-5roa31"&&(i.textContent=r),this.h()},h(){L(e,"class","off svelte-1b8idd8"),L(i,"class","on svelte-1b8idd8")},m(o,a){v(o,e,a),v(o,l,a),v(o,i,a),s||(f=Fe(e,"click",n[1]),s=!0)},p:ce,d(o){o&&(_(e),_(l),_(i)),s=!1,f()}}}function bu(n){let e,t="Compiled",l,i,r="Written",s,f;return{c(){e=z("button"),e.textContent=t,l=J(),i=z("button"),i.textContent=r,this.h()},l(o){e=R(o,"BUTTON",{class:!0,"data-svelte-h":!0}),st(e)!=="svelte-1ofx42v"&&(e.textContent=t),l=Z(o),i=R(o,"BUTTON",{class:!0,"data-svelte-h":!0}),st(i)!=="svelte-v36xno"&&(i.textContent=r),this.h()},h(){L(e,"class","on svelte-1b8idd8"),L(i,"class","off svelte-1b8idd8")},m(o,a){v(o,e,a),v(o,l,a),v(o,i,a),s||(f=Fe(i,"click",n[1]),s=!0)},p:ce,d(o){o&&(_(e),_(l),_(i)),s=!1,f()}}}function yu(n){let e,t,l;function i(f,o){return f[0]?bu:gu}let r=i(n),s=r(n);return{c(){e=z("div"),s.c(),this.h()},l(f){e=R(f,"DIV",{class:!0});var o=Q(e);s.l(o),o.forEach(_),this.h()},h(){L(e,"class","toggle svelte-1b8idd8")},m(f,o){v(f,e,o),s.m(e,null),l=!0},p(f,[o]){r===(r=i(f))&&s?s.p(f,o):(s.d(1),s=r(f),s&&(s.c(),s.m(e,null)))},i(f){l||(f&&ot(()=>{l&&(t||(t=ft(e,_t,{},!0)),t.run(1))}),l=!0)},o(f){f&&(t||(t=ft(e,_t,{},!1)),t.run(0)),l=!1},d(f){f&&_(e),s.d(),f&&t&&t.end()}}}function ku(n,e,t){let{showCompiled:l}=e;const i=function(){t(0,l=!l)};return n.$$set=r=>{"showCompiled"in r&&t(0,l=r.showCompiled)},[l,i]}class pu extends ke{constructor(e){super(),pe(this,e,ku,yu,be,{showCompiled:0})}}function fr(n){let e,t,l,i,r,s,f,o,a,u,c,d,g,m,h,b,p;i=new Br({props:{toggled:n[10]}});let y=n[10]&&n[4]&&ar(n),S=n[10]&&ur(n);const E=[Eu,Tu,wu,Su],D=[];function G(w,T){return w[6]?0:w[8]?1:w[2].loading?2:3}c=G(n),d=D[c]=E[c](n);let P=n[8]>0&&!n[6]&&n[9]&&cr(n);return{c(){e=z("div"),t=z("div"),l=z("button"),$(i.$$.fragment),r=J(),s=me(n[0]),f=J(),y&&y.c(),o=J(),S&&S.c(),a=J(),u=z("button"),d.c(),g=J(),P&&P.c(),this.h()},l(w){e=R(w,"DIV",{class:!0});var T=Q(e);t=R(T,"DIV",{class:!0});var N=Q(t);l=R(N,"BUTTON",{type:!0,"aria-label":!0,class:!0});var q=Q(l);ee(i.$$.fragment,q),r=Z(q),s=he(q,n[0]),q.forEach(_),f=Z(N),y&&y.l(N),o=Z(N),S&&S.l(N),N.forEach(_),a=Z(T),u=R(T,"BUTTON",{type:!0,"aria-label":!0,class:!0});var A=Q(u);d.l(A),A.forEach(_),g=Z(T),P&&P.l(T),T.forEach(_),this.h()},h(){L(l,"type","button"),L(l,"aria-label","show-sql"),L(l,"class","title svelte-1plm20d"),L(t,"class","container-a svelte-1plm20d"),L(u,"type","button"),L(u,"aria-label","view-query"),L(u,"class",gl("status-bar")+" svelte-1plm20d"),dt(u,"error",n[6]),dt(u,"success",!n[6]),dt(u,"open",n[9]),dt(u,"closed",!n[9]),L(e,"class","scrollbox svelte-1plm20d")},m(w,T){v(w,e,T),Y(e,t),Y(t,l),te(i,l,null),Y(l,r),Y(l,s),Y(t,f),y&&y.m(t,null),Y(t,o),S&&S.m(t,null),Y(e,a),Y(e,u),D[c].m(u,null),Y(e,g),P&&P.m(e,null),h=!0,b||(p=[Fe(l,"click",n[14]),Fe(u,"click",n[15])],b=!0)},p(w,T){const N={};T&1024&&(N.toggled=w[10]),i.$set(N),(!h||T&1)&&De(s,w[0]),w[10]&&w[4]?y?(y.p(w,T),T&1040&&k(y,1)):(y=ar(w),y.c(),k(y,1),y.m(t,o)):y&&(_e(),C(y,1,1,()=>{y=null}),ge()),w[10]?S?(S.p(w,T),T&1024&&k(S,1)):(S=ur(w),S.c(),k(S,1),S.m(t,null)):S&&(_e(),C(S,1,1,()=>{S=null}),ge());let q=c;c=G(w),c===q?D[c].p(w,T):(_e(),C(D[q],1,1,()=>{D[q]=null}),ge(),d=D[c],d?d.p(w,T):(d=D[c]=E[c](w),d.c()),k(d,1),d.m(u,null)),(!h||T&64)&&dt(u,"error",w[6]),(!h||T&64)&&dt(u,"success",!w[6]),(!h||T&512)&&dt(u,"open",w[9]),(!h||T&512)&&dt(u,"closed",!w[9]),w[8]>0&&!w[6]&&w[9]?P?(P.p(w,T),T&832&&k(P,1)):(P=cr(w),P.c(),k(P,1),P.m(e,null)):P&&(_e(),C(P,1,1,()=>{P=null}),ge())},i(w){h||(k(i.$$.fragment,w),k(y),k(S),k(d),k(P),w&&ot(()=>{h&&(m||(m=ft(e,_t,{},!0)),m.run(1))}),h=!0)},o(w){C(i.$$.fragment,w),C(y),C(S),C(d),C(P),w&&(m||(m=ft(e,_t,{},!1)),m.run(0)),h=!1},d(w){w&&_(e),le(i),y&&y.d(),S&&S.d(),D[c].d(),P&&P.d(),w&&m&&m.end(),b=!1,qt(p)}}}function ar(n){let e,t,l;function i(s){n[18](s)}let r={};return n[5]!==void 0&&(r.showCompiled=n[5]),e=new pu({props:r}),Ke.push(()=>vl(e,"showCompiled",i)),{c(){$(e.$$.fragment)},l(s){ee(e.$$.fragment,s)},m(s,f){te(e,s,f),l=!0},p(s,f){const o={};!t&&f&32&&(t=!0,o.showCompiled=s[5],pl(()=>t=!1)),e.$set(o)},i(s){l||(k(e.$$.fragment,s),l=!0)},o(s){C(e.$$.fragment,s),l=!1},d(s){le(e,s)}}}function ur(n){let e,t,l,i,r;const s=[vu,Cu],f=[];function o(a,u){return a[5]?0:1}return t=o(n),l=f[t]=s[t](n),{c(){e=z("div"),l.c(),this.h()},l(a){e=R(a,"DIV",{class:!0});var u=Q(e);l.l(u),u.forEach(_),this.h()},h(){L(e,"class","code-container svelte-1plm20d")},m(a,u){v(a,e,u),f[t].m(e,null),r=!0},p(a,u){let c=t;t=o(a),t===c?f[t].p(a,u):(_e(),C(f[c],1,1,()=>{f[c]=null}),ge(),l=f[t],l?l.p(a,u):(l=f[t]=s[t](a),l.c()),k(l,1),l.m(e,null))},i(a){r||(k(l),a&&ot(()=>{r&&(i||(i=ft(e,_t,{},!0)),i.run(1))}),r=!0)},o(a){C(l),a&&(i||(i=ft(e,_t,{},!1)),i.run(0)),r=!1},d(a){a&&_(e),f[t].d(),a&&i&&i.end()}}}function Cu(n){let e,t;return e=new qr({props:{code:n[3]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&8&&(r.code=l[3]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function vu(n){let e,t;return e=new qr({props:{code:n[1].originalText}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&2&&(r.code=l[1].originalText),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Su(n){let e;return{c(){e=me("ran successfully but no data was returned")},l(t){e=he(t,"ran successfully but no data was returned")},m(t,l){v(t,e,l)},p:ce,i:ce,o:ce,d(t){t&&_(e)}}}function wu(n){let e;return{c(){e=me("loading...")},l(t){e=he(t,"loading...")},m(t,l){v(t,e,l)},p:ce,i:ce,o:ce,d(t){t&&_(e)}}}function Tu(n){let e,t,l=n[8].toLocaleString()+"",i,r,s=n[8]>1?"records":"record",f,o,a=n[7].toLocaleString()+"",u,c,d=n[7]>1?"properties":"property",g,m;return e=new Br({props:{toggled:n[9],color:"#3488e9"}}),{c(){$(e.$$.fragment),t=J(),i=me(l),r=J(),f=me(s),o=me(" with "),u=me(a),c=J(),g=me(d)},l(h){ee(e.$$.fragment,h),t=Z(h),i=he(h,l),r=Z(h),f=he(h,s),o=he(h," with "),u=he(h,a),c=Z(h),g=he(h,d)},m(h,b){te(e,h,b),v(h,t,b),v(h,i,b),v(h,r,b),v(h,f,b),v(h,o,b),v(h,u,b),v(h,c,b),v(h,g,b),m=!0},p(h,b){const p={};b&512&&(p.toggled=h[9]),e.$set(p),(!m||b&256)&&l!==(l=h[8].toLocaleString()+"")&&De(i,l),(!m||b&256)&&s!==(s=h[8]>1?"records":"record")&&De(f,s),(!m||b&128)&&a!==(a=h[7].toLocaleString()+"")&&De(u,a),(!m||b&128)&&d!==(d=h[7]>1?"properties":"property")&&De(g,d)},i(h){m||(k(e.$$.fragment,h),m=!0)},o(h){C(e.$$.fragment,h),m=!1},d(h){h&&(_(t),_(i),_(r),_(f),_(o),_(u),_(c),_(g)),le(e,h)}}}function Eu(n){let e=n[6].message+"",t;return{c(){t=me(e)},l(l){t=he(l,e)},m(l,i){v(l,t,i)},p(l,i){i&64&&e!==(e=l[6].message+"")&&De(t,e)},i:ce,o:ce,d(l){l&&_(t)}}}function cr(n){let e,t;return e=new _u({props:{data:n[1],queryID:n[0]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&2&&(r.data=l[1]),i&1&&(r.queryID=l[0]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Ou(n){let e,t,l,i=n[11]&&fr(n);return{c(){e=z("div"),i&&i.c(),this.h()},l(r){e=R(r,"DIV",{class:!0});var s=Q(e);i&&i.l(s),s.forEach(_),this.h()},h(){L(e,"class","over-container svelte-1plm20d")},m(r,s){v(r,e,s),i&&i.m(e,null),l=!0},p(r,[s]){r[11]?i?(i.p(r,s),s&2048&&k(i,1)):(i=fr(r),i.c(),k(i,1),i.m(e,null)):i&&(_e(),C(i,1,1,()=>{i=null}),ge())},i(r){l||(k(i),r&&(t||ot(()=>{t=Cl(e,Pr,{}),t.start()})),l=!0)},o(r){C(i),l=!1},d(r){r&&_(e),i&&i.d()}}}function Au(n,e,t){let l,i,r,s,f=ce,o=()=>(f(),f=Ql(m,w=>t(2,s=w)),m),a,u,c,d;Me(n,Ni,w=>t(17,c=w)),Me(n,ps,w=>t(11,d=w)),n.$$.on_destroy.push(()=>f());let{queryID:g}=e,{queryResult:m}=e;o();let h=xi("showSQL_".concat(g),!1);Me(n,h,w=>t(10,u=w));let b=xi(`showResults_${g}`);Me(n,b,w=>t(9,a=w));const p=function(){Pt(h,u=!u,u)},y=function(){!G&&s.length>0&&Pt(b,a=!a,a)};let S,E,D=!0,G;function P(w){D=w,t(5,D)}return n.$$set=w=>{"queryID"in w&&t(0,g=w.queryID),"queryResult"in w&&o(t(1,m=w.queryResult))},n.$$.update=()=>{if(n.$$.dirty&131072&&t(16,l=c.data.evidencemeta.queries),n.$$.dirty&4&&(s?t(6,G=s.error):t(6,G=new Error("queryResult is undefined"))),n.$$.dirty&4&&t(8,i=(s==null?void 0:s.length)??0),n.$$.dirty&4&&t(7,r=s.columns.length??(s==null?void 0:s._evidenceColumnTypes.length)??0),n.$$.dirty&65537){let w=l==null?void 0:l.find(T=>T.id===g);w&&(t(3,S=w.inputQueryString),t(4,E=w.compiled&&w.compileError===void 0))}},[g,m,s,S,E,D,G,r,i,a,u,d,h,b,p,y,l,c,P]}class Xr extends ke{constructor(e){super(),pe(this,e,Au,Ou,be,{queryID:0,queryResult:1})}}const jl=at.grey500,Hl=at.grey500,Gl=at.grey500,Wl=at.grey200,dr="white",Lu=at.grey500,Du=at.grey600,Mu=at.grey500,Iu=at.grey400,Fu="white",Nu=at.grey900,Pu=at.grey800,Bu=at.grey700,zi={darkMode:!1,textStyle:{fontFamily:"sans-serif"},grid:{left:"0%",right:"4%",bottom:"0%",top:"15%",containLabel:!0},color:ml,backgroundColor:"rgba(255, 255, 255, 0)",title:{padding:0,itemGap:7,textStyle:{fontSize:14,color:Pu},subtextStyle:{fontSize:13,color:Bu,overflow:"break"},top:"0%"},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,join:"round"},symbolSize:0,symbol:"circle",smooth:!1},radar:{itemStyle:{borderWidth:0},lineStyle:{width:2},symbolSize:0,symbol:"circle",smooth:!1},pie:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},scatter:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},boxplot:{itemStyle:{borderWidth:1.5}},parallel:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},sankey:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},funnel:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},gauge:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},candlestick:{itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1}},graph:{itemStyle:{borderWidth:0,borderColor:"#cccccc"},lineStyle:{width:1,color:"#aaaaaa"},symbolSize:0,symbol:"circle",smooth:!1,color:["#923d59","#488f96","#518eca","#b3a9a0","#ffc857","#495867","#bfdbf7","#bc4749","#eeebd0"],label:{color:"#f2f2f2"}},map:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},geo:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:jl}},axisTick:{show:!1,lineStyle:{color:Hl},length:3,alignWithLabel:!0},axisLabel:{show:!0,color:Gl},splitLine:{show:!1,lineStyle:{color:[Wl]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:jl}},axisTick:{show:!1,lineStyle:{color:Hl},length:2},axisLabel:{show:!0,color:Gl},splitLine:{show:!0,lineStyle:{color:[Wl],width:1}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}},nameTextStyle:{backgroundColor:dr}},logAxis:{axisLine:{show:!1,lineStyle:{color:jl}},axisTick:{show:!1,lineStyle:{color:Hl},length:2},axisLabel:{show:!0,color:Gl},splitLine:{show:!0,lineStyle:{color:[Wl]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}},nameTextStyle:{backgroundColor:dr}},timeAxis:{axisLine:{show:!0,lineStyle:{color:jl}},axisTick:{show:!0,lineStyle:{color:Hl},length:3},axisLabel:{show:!0,color:Gl},splitLine:{show:!1,lineStyle:{color:[Wl]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},toolbox:{iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#459cde"}}},legend:{textStyle:{padding:[0,0,0,-7],color:Lu},icon:"circle",pageIcons:{horizontal:["M 17 3 h 2 c 0.386 0 0.738 0.223 0.904 0.572 s 0.115 0.762 -0.13 1.062 L 11.292 15 l 8.482 10.367 c 0.245 0.299 0.295 0.712 0.13 1.062 S 19.386 27 19 27 h -2 c -0.3 0 -0.584 -0.135 -0.774 -0.367 l -9 -11 c -0.301 -0.369 -0.301 -0.898 0 -1.267 l 9 -11 C 16.416 3.135 16.7 3 17 3 Z","M 12 27 h -2 c -0.386 0 -0.738 -0.223 -0.904 -0.572 s -0.115 -0.762 0.13 -1.062 L 17.708 15 L 9.226 4.633 c -0.245 -0.299 -0.295 -0.712 -0.13 -1.062 S 9.614 3 10 3 h 2 c 0.3 0 0.584 0.135 0.774 0.367 l 9 11 c 0.301 0.369 0.301 0.898 0 1.267 l -9 11 C 12.584 26.865 12.3 27 12 27 Z"]},pageIconColor:Du,pageIconSize:12,pageTextStyle:{color:Mu},pageButtonItemGap:-2,animationDurationUpdate:300},tooltip:{axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}},borderRadius:4,borderWidth:1,borderColor:Iu,backgroundColor:Fu,textStyle:{color:Nu,fontSize:12,fontWeight:400},padding:6},timeline:{lineStyle:{color:"#e3e3e3",width:2},itemStyle:{color:"#d6d6d6",borderWidth:1},controlStyle:{color:"#bfbfbf",borderColor:"#bfbfbf",borderWidth:1},checkpointStyle:{color:"#8f8f8f",borderColor:"#ffffff"},label:{color:"#c9c9c9"},emphasis:{itemStyle:{color:"#9c9c9c"},controlStyle:{color:"#bfbfbf",borderColor:"#bfbfbf",borderWidth:1},label:{color:"#c9c9c9"}}},visualMap:{color:["#c41621","#e39588","#f5ed98"]},dataZoom:{handleSize:"undefined%",textStyle:{}},markPoint:{label:{color:"#f2f2f2"},emphasis:{label:{color:"#f2f2f2"}}}},Jt=500,qu=(n,e)=>{const t=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)&&n.clientWidth*3*n.clientHeight*3>16777215;Ii("evidence-light",zi);const l=Fi(n,"evidence-light",{renderer:t?"svg":e.renderer??"canvas"});e.connectGroup&&(l.group=e.connectGroup,Cs(e.connectGroup));const i=()=>{if(e.seriesColors){const m=l.getOption();if(!m)return;const h={...m};for(const b of Object.keys(e.seriesColors)){const p=m.series.findIndex(y=>y.name===b);p!==-1&&(h.series[p]={...h.series[p],itemStyle:{...h.series[p].itemStyle,color:e.seriesColors[b]}})}l.setOption(h)}},r=()=>{e.echartsOptions&&l.setOption({...e.echartsOptions})},s=()=>{let m=[];if(e.seriesOptions){const h=e.config.series.reduce((b,{evidenceSeriesType:p},y)=>((p==="reference_line"||p==="reference_area"||p==="reference_point")&&b.push(y),b),[]);for(let b=0;b<e.config.series.length;b++)h.includes(b)?m.push({}):m.push({...e.seriesOptions});l.setOption({series:m})}};l.setOption({...e.config,animationDuration:Jt,animationDurationUpdate:Jt}),i(),r(),s();const f=e.dispatch;l.on("click",function(m){f("click",m)});const o=document.getElementById("evidence-main-article"),a=n.parentElement,u=vs(()=>{l.resize({animation:{duration:Jt}}),d()},100);let c;window.ResizeObserver&&o?(c=new ResizeObserver(u),c.observe(o),c.observe(a)):window.addEventListener("resize",u);const d=()=>{if(e.showAllXAxisLabels){const m=l.getOption();if(!m)return;const h=new Set(m.series.flatMap(y=>{var S;return(S=y.data)==null?void 0:S.map(E=>E[0])})),b=4/5,p=(n==null?void 0:n.clientWidth)??0;if(!e.swapXY){const y={xAxis:{axisLabel:{interval:0,overflow:"truncate",width:p*b/h.size}}};l.setOption(y)}}},g=m=>{e=m,l.setOption({...e.config,animationDuration:Jt,animationDurationUpdate:Jt},!0),i(),r(),s(),l.resize({animation:{duration:Jt}}),d()};return u(),{update(m){g(m)},destroy(){c?(c.unobserve(o),c.unobserve(a)):window.removeEventListener("resize",u),l.dispose()}}},Vu=(n,e)=>{Ii("evidence-light",zi);const t=Fi(n,"evidence-light",{renderer:"canvas"});e.config.animation=!1,t.setOption(e.config);const l=()=>{if(e.seriesColors){const a=t.getOption();if(!a)return;const u={...a};for(const c of Object.keys(e.seriesColors)){const d=a.series.findIndex(g=>g.name===c);d!==-1&&(u.series[d]={...u.series[d],itemStyle:{...u.series[d].itemStyle,color:e.seriesColors[c]}})}t.setOption(u)}},i=()=>{e.echartsOptions&&t.setOption({...e.echartsOptions})},r=()=>{let a=[];if(e.seriesOptions){const u=e.config.series.reduce((c,{evidenceSeriesType:d},g)=>((d==="reference_line"||d==="reference_area"||d==="reference_point")&&c.push(g),c),[]);for(let c=0;c<e.config.series.length;c++)u.includes(c)?a.push({}):a.push({...e.seriesOptions});t.setOption({series:a})}};i(),l(),r();let s=t.getConnectedDataURL({type:"png",pixelRatio:3,backgroundColor:"white",excludeComponents:["toolbox"]});const f=new Date,o=new Date(f.getTime()-f.getTimezoneOffset()*6e4).toISOString().slice(0,19).replaceAll(":","-");return Ss(s,(e.evidenceChartTitle??e.queryID??"evidence-chart")+`_${o}.png`),t.dispose(),{destroy(){t.dispose()}}},yl=(n,e)=>{Ii("evidence-light",zi);const{config:t,ratio:l,echartsOptions:i,seriesOptions:r,seriesColors:s,isMap:f,extraHeight:o,width:a}=e;let u={renderer:"canvas"};f&&(u.height=a*.5+o,n&&n.parentNode&&(n.style.height=u.height+"px",n.parentNode.style.height=u.height+"px"));const c=Fi(n,"evidence-light",u);t.animation=!1,c.setOption(t),i&&c.setOption(i);const d=()=>{if(s){const b=c.getOption();if(!b)return;const p={...b};for(const y of Object.keys(s)){const S=b.series.findIndex(E=>E.name===y);S!==-1&&(p.series[S]={...p.series[S],itemStyle:{...p.series[S].itemStyle,color:s[y]}})}c.setOption(p)}},g=()=>{i&&c.setOption({...i})},m=()=>{let b=[];if(r){const p=t.series.reduce((y,{evidenceSeriesType:S},E)=>((S==="reference_line"||S==="reference_area"||S==="reference_point")&&y.push(E),y),[]);for(let y=0;y<t.series.length;y++)p.includes(y)?b.push({}):b.push({...r});c.setOption({series:b})}};g(),d(),m();let h=c.getConnectedDataURL({type:"jpeg",pixelRatio:l,backgroundColor:"#fff",excludeComponents:["toolbox"]});n.innerHTML=`<img src=${h} width="100%" style=" | |
position: absolute; | |
top: 0; | |
user-select: all; | |
-webkit-user-select: all; | |
-moz-user-select: all; | |
-ms-user-select: all; | |
" />`,e.config.animation=!0};function zu(n){let e;function t(r,s){return r[10]?Hu:ju}let l=t(n),i=l(n);return{c(){i.c(),e=se()},l(r){i.l(r),e=se()},m(r,s){i.m(r,s),v(r,e,s)},p(r,s){l===(l=t(r))&&i?i.p(r,s):(i.d(1),i=l(r),i&&(i.c(),i.m(e.parentNode,e)))},d(r){r&&_(e),i.d(r)}}}function Ru(n){let e,t,l,i;return{c(){e=z("div"),this.h()},l(r){e=R(r,"DIV",{class:!0,style:!0}),Q(e).forEach(_),this.h()},h(){L(e,"class","chart"),U(e,"height",n[1]),U(e,"width",n[2]),U(e,"margin-left","0"),U(e,"margin-top","15px"),U(e,"margin-bottom","10px"),U(e,"overflow","visible"),U(e,"break-inside","avoid")},m(r,s){v(r,e,s),l||(i=je(t=yl.call(null,e,{config:n[0],ratio:2,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7]})),l=!0)},p(r,s){s&2&&U(e,"height",r[1]),s&4&&U(e,"width",r[2]),t&&Bt(t.update)&&s&225&&t.update.call(null,{config:r[0],ratio:2,echartsOptions:r[5],seriesOptions:r[6],seriesColors:r[7]})},d(r){r&&_(e),l=!1,i()}}}function ju(n){let e,t,l,i,r,s,f;return{c(){e=z("div"),l=J(),i=z("div"),this.h()},l(o){e=R(o,"DIV",{class:!0,style:!0}),Q(e).forEach(_),l=Z(o),i=R(o,"DIV",{class:!0,style:!0}),Q(i).forEach(_),this.h()},h(){L(e,"class","chart md:hidden"),U(e,"height",n[1]),U(e,"width","650px"),U(e,"margin-left","0"),U(e,"margin-top","15px"),U(e,"margin-bottom","10px"),U(e,"overflow","visible"),U(e,"break-inside","avoid"),L(i,"class","chart hidden md:block"),U(i,"height",n[1]),U(i,"width","841px"),U(i,"margin-left","0"),U(i,"margin-top","15px"),U(i,"margin-bottom","10px"),U(i,"overflow","visible"),U(i,"break-inside","avoid")},m(o,a){v(o,e,a),v(o,l,a),v(o,i,a),s||(f=[je(t=yl.call(null,e,{config:n[0],ratio:4,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7],isMap:n[8],extraHeight:n[9],width:650})),je(r=yl.call(null,i,{config:n[0],ratio:4,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7],isMap:n[8],extraHeight:n[9],width:841}))],s=!0)},p(o,a){a&2&&U(e,"height",o[1]),t&&Bt(t.update)&&a&993&&t.update.call(null,{config:o[0],ratio:4,echartsOptions:o[5],seriesOptions:o[6],seriesColors:o[7],isMap:o[8],extraHeight:o[9],width:650}),a&2&&U(i,"height",o[1]),r&&Bt(r.update)&&a&993&&r.update.call(null,{config:o[0],ratio:4,echartsOptions:o[5],seriesOptions:o[6],seriesColors:o[7],isMap:o[8],extraHeight:o[9],width:841})},d(o){o&&(_(e),_(l),_(i)),s=!1,qt(f)}}}function Hu(n){let e,t,l,i,r,s,f;return{c(){e=z("div"),l=J(),i=z("div"),this.h()},l(o){e=R(o,"DIV",{class:!0,style:!0}),Q(e).forEach(_),l=Z(o),i=R(o,"DIV",{class:!0,style:!0}),Q(i).forEach(_),this.h()},h(){L(e,"class","chart md:hidden"),U(e,"height",n[1]),U(e,"width",n[12]+"px"),U(e,"margin-left","0"),U(e,"margin-top","15px"),U(e,"margin-bottom","10px"),U(e,"overflow","visible"),U(e,"break-inside","avoid"),L(i,"class","chart hidden md:block"),U(i,"height",n[1]),U(i,"width",n[11]+"px"),U(i,"margin-left","0"),U(i,"margin-top","15px"),U(i,"margin-bottom","10px"),U(i,"overflow","visible"),U(i,"break-inside","avoid")},m(o,a){v(o,e,a),v(o,l,a),v(o,i,a),s||(f=[je(t=yl.call(null,e,{config:n[0],ratio:4,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7],isMap:n[8],extraHeight:n[9],width:n[12]})),je(r=yl.call(null,i,{config:n[0],ratio:4,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7],isMap:n[8],extraHeight:n[9],width:n[11]}))],s=!0)},p(o,a){a&2&&U(e,"height",o[1]),a&4096&&U(e,"width",o[12]+"px"),t&&Bt(t.update)&&a&5089&&t.update.call(null,{config:o[0],ratio:4,echartsOptions:o[5],seriesOptions:o[6],seriesColors:o[7],isMap:o[8],extraHeight:o[9],width:o[12]}),a&2&&U(i,"height",o[1]),a&2048&&U(i,"width",o[11]+"px"),r&&Bt(r.update)&&a&3041&&r.update.call(null,{config:o[0],ratio:4,echartsOptions:o[5],seriesOptions:o[6],seriesColors:o[7],isMap:o[8],extraHeight:o[9],width:o[11]})},d(o){o&&(_(e),_(l),_(i)),s=!1,qt(f)}}}function Gu(n){let e;function t(r,s){if(r[3])return Ru;if(r[4])return zu}let l=t(n),i=l&&l(n);return{c(){i&&i.c(),e=se()},l(r){i&&i.l(r),e=se()},m(r,s){i&&i.m(r,s),v(r,e,s)},p(r,[s]){l===(l=t(r))&&i?i.p(r,s):(i&&i.d(1),i=l&&l(r),i&&(i.c(),i.m(e.parentNode,e)))},i:ce,o:ce,d(r){r&&_(e),i&&i.d(r)}}}function Wu(n,e,t){let l,i,r,s,{config:f=void 0}=e,{height:o="291px"}=e,{width:a="100%"}=e,{copying:u=!1}=e,{printing:c=!1}=e,{echartsOptions:d=void 0}=e,{seriesOptions:g=void 0}=e,{seriesColors:m=void 0}=e,{isMap:h=!1}=e,{extraHeight:b=void 0}=e,p=!1,y,S;const E=el("gridConfig");return E&&(p=!0,{cols:y,gapWidth:S}=E),n.$$set=D=>{"config"in D&&t(0,f=D.config),"height"in D&&t(1,o=D.height),"width"in D&&t(2,a=D.width),"copying"in D&&t(3,u=D.copying),"printing"in D&&t(4,c=D.printing),"echartsOptions"in D&&t(5,d=D.echartsOptions),"seriesOptions"in D&&t(6,g=D.seriesOptions),"seriesColors"in D&&t(7,m=D.seriesColors),"isMap"in D&&t(8,h=D.isMap),"extraHeight"in D&&t(9,b=D.extraHeight)},n.$$.update=()=>{n.$$.dirty&8192&&t(16,l=Math.min(Number(y),2)),n.$$.dirty&81920&&t(12,i=(650-Number(S)*(l-1))/l),n.$$.dirty&8192&&t(15,r=Math.min(Number(y),3)),n.$$.dirty&49152&&t(11,s=(841-Number(S)*(r-1))/r)},[f,o,a,u,c,d,g,m,h,b,p,s,i,y,S,r,l]}class Uu extends ke{constructor(e){super(),pe(this,e,Wu,Gu,be,{config:0,height:1,width:2,copying:3,printing:4,echartsOptions:5,seriesOptions:6,seriesColors:7,isMap:8,extraHeight:9})}}function Xu(n){let e,t,l="Loading...",i,r,s;return{c(){e=z("div"),t=z("span"),t.textContent=l,i=J(),r=z("div"),this.h()},l(f){e=R(f,"DIV",{role:!0,class:!0});var o=Q(e);t=R(o,"SPAN",{class:!0,"data-svelte-h":!0}),st(t)!=="svelte-1wtojot"&&(t.textContent=l),i=Z(o),r=R(o,"DIV",{class:!0,style:!0}),Q(r).forEach(_),o.forEach(_),this.h()},h(){L(t,"class","sr-only"),L(r,"class","bg-gray-200 rounded-md dark:bg-gray-400 max-w-[100%]"),U(r,"height",n[0]),U(r,"margin-top","15px"),U(r,"margin-bottom","31px"),L(e,"role","status"),L(e,"class","animate-pulse")},m(f,o){v(f,e,o),Y(e,t),Y(e,i),Y(e,r)},p(f,[o]){o&1&&U(r,"height",f[0])},i(f){f&&(s||ot(()=>{s=Cl(e,Ys,{}),s.start()}))},o:ce,d(f){f&&_(e)}}}function Qu(n,e,t){let{height:l="231px"}=e;return n.$$set=i=>{"height"in i&&t(0,l=i.height)},[l]}class Yu extends ke{constructor(e){super(),pe(this,e,Qu,Xu,be,{height:0})}}function mr(n){let e,t,l,i;const r=[Ju,Ku],s=[];function f(o,a){return 1}return e=f(),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){t.p(o,a)},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Ku(n){let e,t,l,i;return{c(){e=z("div"),this.h()},l(r){e=R(r,"DIV",{class:!0,style:!0}),Q(e).forEach(_),this.h()},h(){L(e,"class","chart svelte-19r8f8"),U(e,"height",n[3]),U(e,"width",n[4]),U(e,"margin-left","0"),U(e,"margin-top","15px"),U(e,"margin-bottom","10px"),U(e,"overflow","visible"),U(e,"display",n[13]?"none":"inherit")},m(r,s){v(r,e,s),l||(i=je(t=qu.call(null,e,{config:n[0],...n[17],echartsOptions:n[7],seriesOptions:n[8],dispatch:n[16],renderer:n[6],connectGroup:n[11],seriesColors:n[10]})),l=!0)},p(r,s){s&8&&U(e,"height",r[3]),s&16&&U(e,"width",r[4]),s&8192&&U(e,"display",r[13]?"none":"inherit"),t&&Bt(t.update)&&s&134593&&t.update.call(null,{config:r[0],...r[17],echartsOptions:r[7],seriesOptions:r[8],dispatch:r[16],renderer:r[6],connectGroup:r[11],seriesColors:r[10]})},i:ce,o:ce,d(r){r&&_(e),l=!1,i()}}}function Ju(n){let e,t;return e=new Yu({props:{height:n[3]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&8&&(r.height=l[3]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Zu(n){let e,t,l,i;return{c(){e=Fl("svg"),t=Fl("rect"),l=Fl("circle"),i=Fl("path"),this.h()},l(r){e=Nl(r,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var s=Q(e);t=Nl(s,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0}),Q(t).forEach(_),l=Nl(s,"circle",{cx:!0,cy:!0,r:!0}),Q(l).forEach(_),i=Nl(s,"path",{d:!0}),Q(i).forEach(_),s.forEach(_),this.h()},h(){L(t,"x","3"),L(t,"y","3"),L(t,"width","18"),L(t,"height","18"),L(t,"rx","2"),L(l,"cx","8.5"),L(l,"cy","8.5"),L(l,"r","1.5"),L(i,"d","M20.4 14.5L16 10 4 20"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width","12"),L(e,"height","12"),L(e,"viewBox","0 0 24 24"),L(e,"fill","none"),L(e,"stroke","#000"),L(e,"stroke-width","2"),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round")},m(r,s){v(r,e,s),Y(e,t),Y(e,l),Y(e,i)},p:ce,d(r){r&&_(e)}}}function hr(n){let e,t;return e=new Pi({props:{text:"Download data",data:n[5],queryID:n[1],class:"download-button",display:n[15]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&32&&(r.data=l[5]),i&2&&(r.queryID=l[1]),i&32768&&(r.display=l[15]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function _r(n){let e,t;return e=new Gs({props:{source:JSON.stringify(n[0],void 0,3),copyToClipboard:!0,$$slots:{default:[xu]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.source=JSON.stringify(l[0],void 0,3)),i&67108865&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function xu(n){let e=JSON.stringify(n[0],void 0,3)+"",t;return{c(){t=me(e)},l(l){t=he(l,e)},m(l,i){v(l,t,i)},p(l,i){i&1&&e!==(e=JSON.stringify(l[0],void 0,3)+"")&&De(t,e)},d(l){l&&_(t)}}}function gr(n){let e,t,l,i;return{c(){e=z("div"),this.h()},l(r){e=R(r,"DIV",{class:!0,style:!0}),Q(e).forEach(_),this.h()},h(){L(e,"class","chart svelte-19r8f8"),U(e,"display","none"),U(e,"visibility","visible"),U(e,"height",n[3]),U(e,"width","666px"),U(e,"margin-left","0"),U(e,"margin-top","15px"),U(e,"margin-bottom","15px"),U(e,"overflow","visible")},m(r,s){v(r,e,s),l||(i=je(t=Vu.call(null,e,{config:n[0],...n[17],echartsOptions:n[7],seriesOptions:n[8],seriesColors:n[10],queryID:n[1],evidenceChartTitle:n[2]})),l=!0)},p(r,s){s&8&&U(e,"height",r[3]),t&&Bt(t.update)&&s&132487&&t.update.call(null,{config:r[0],...r[17],echartsOptions:r[7],seriesOptions:r[8],seriesColors:r[10],queryID:r[1],evidenceChartTitle:r[2]})},d(r){r&&_(e),l=!1,i()}}}function $u(n){let e,t,l,i,r,s,f,o,a,u,c,d,g,m=!n[14]&&mr(n);l=new Uu({props:{config:n[0],height:n[3],width:n[4],copying:n[13],printing:n[14],echartsOptions:n[7],seriesOptions:n[8],seriesColors:n[10]}}),s=new Pi({props:{text:"Save image",class:"download-button",downloadData:n[23],display:n[15],queryID:n[1],$$slots:{default:[Zu]},$$scope:{ctx:n}}});let h=n[5]&&hr(n),b=n[9]&&!n[14]&&_r(n),p=n[12]&&gr(n);return{c(){e=z("div"),m&&m.c(),t=J(),$(l.$$.fragment),i=J(),r=z("div"),$(s.$$.fragment),f=J(),h&&h.c(),o=J(),b&&b.c(),a=J(),p&&p.c(),u=se(),this.h()},l(y){e=R(y,"DIV",{role:!0,class:!0});var S=Q(e);m&&m.l(S),t=Z(S),ee(l.$$.fragment,S),i=Z(S),r=R(S,"DIV",{class:!0});var E=Q(r);ee(s.$$.fragment,E),f=Z(E),h&&h.l(E),E.forEach(_),o=Z(S),b&&b.l(S),S.forEach(_),a=Z(y),p&&p.l(y),u=se(),this.h()},h(){L(r,"class","chart-footer svelte-19r8f8"),L(e,"role","none"),L(e,"class","chart-container svelte-19r8f8")},m(y,S){v(y,e,S),m&&m.m(e,null),Y(e,t),te(l,e,null),Y(e,i),Y(e,r),te(s,r,null),Y(r,f),h&&h.m(r,null),Y(e,o),b&&b.m(e,null),v(y,a,S),p&&p.m(y,S),v(y,u,S),c=!0,d||(g=[Fe(window,"copy",n[18]),Fe(window,"beforeprint",n[19]),Fe(window,"afterprint",n[20]),Fe(window,"export-beforeprint",n[21]),Fe(window,"export-afterprint",n[22]),Fe(e,"mouseenter",n[24]),Fe(e,"mouseleave",n[25])],d=!0)},p(y,[S]){y[14]?m&&(_e(),C(m,1,1,()=>{m=null}),ge()):m?(m.p(y,S),S&16384&&k(m,1)):(m=mr(y),m.c(),k(m,1),m.m(e,t));const E={};S&1&&(E.config=y[0]),S&8&&(E.height=y[3]),S&16&&(E.width=y[4]),S&8192&&(E.copying=y[13]),S&16384&&(E.printing=y[14]),S&128&&(E.echartsOptions=y[7]),S&256&&(E.seriesOptions=y[8]),S&1024&&(E.seriesColors=y[10]),l.$set(E);const D={};S&4096&&(D.downloadData=y[23]),S&32768&&(D.display=y[15]),S&2&&(D.queryID=y[1]),S&67108864&&(D.$$scope={dirty:S,ctx:y}),s.$set(D),y[5]?h?(h.p(y,S),S&32&&k(h,1)):(h=hr(y),h.c(),k(h,1),h.m(r,null)):h&&(_e(),C(h,1,1,()=>{h=null}),ge()),y[9]&&!y[14]?b?(b.p(y,S),S&16896&&k(b,1)):(b=_r(y),b.c(),k(b,1),b.m(e,null)):b&&(_e(),C(b,1,1,()=>{b=null}),ge()),y[12]?p?p.p(y,S):(p=gr(y),p.c(),p.m(u.parentNode,u)):p&&(p.d(1),p=null)},i(y){c||(k(m),k(l.$$.fragment,y),k(s.$$.fragment,y),k(h),k(b),c=!0)},o(y){C(m),C(l.$$.fragment,y),C(s.$$.fragment,y),C(h),C(b),c=!1},d(y){y&&(_(e),_(a),_(u)),m&&m.d(),le(l),le(s),h&&h.d(),b&&b.d(),p&&p.d(y),d=!1,qt(g)}}}function ec(n,e,t){const l=["config","queryID","evidenceChartTitle","height","width","data","renderer","echartsOptions","seriesOptions","printEchartsConfig","seriesColors","connectGroup"];let i=ye(e,l),{config:r=void 0}=e,{queryID:s=void 0}=e,{evidenceChartTitle:f=void 0}=e,{height:o="291px"}=e,{width:a="100%"}=e,{data:u}=e,{renderer:c=void 0}=e,{echartsOptions:d=void 0}=e,{seriesOptions:g=void 0}=e,{printEchartsConfig:m}=e,{seriesColors:h=void 0}=e,{connectGroup:b=void 0}=e;const p=Zr();let y=!1,S=!1,E=!1,D=!1;const G=()=>{t(13,S=!0),xr(),setTimeout(()=>{t(13,S=!1)},0)},P=()=>t(14,E=!0),w=()=>t(14,E=!1),T=()=>t(14,E=!0),N=()=>t(14,E=!1),q=()=>{t(12,y=!0),setTimeout(()=>{t(12,y=!1)},0)},A=()=>t(15,D=!0),M=()=>t(15,D=!1);return n.$$set=B=>{e=ie(ie({},e),Ve(B)),t(17,i=ye(e,l)),"config"in B&&t(0,r=B.config),"queryID"in B&&t(1,s=B.queryID),"evidenceChartTitle"in B&&t(2,f=B.evidenceChartTitle),"height"in B&&t(3,o=B.height),"width"in B&&t(4,a=B.width),"data"in B&&t(5,u=B.data),"renderer"in B&&t(6,c=B.renderer),"echartsOptions"in B&&t(7,d=B.echartsOptions),"seriesOptions"in B&&t(8,g=B.seriesOptions),"printEchartsConfig"in B&&t(9,m=B.printEchartsConfig),"seriesColors"in B&&t(10,h=B.seriesColors),"connectGroup"in B&&t(11,b=B.connectGroup)},[r,s,f,o,a,u,c,d,g,m,h,b,y,S,E,D,p,i,G,P,w,T,N,q,A,M]}class tc extends ke{constructor(e){super(),pe(this,e,ec,$u,be,{config:0,queryID:1,evidenceChartTitle:2,height:3,width:4,data:5,renderer:6,echartsOptions:7,seriesOptions:8,printEchartsConfig:9,seriesColors:10,connectGroup:11})}}function kl(n,e){const t=new Set(n.map(l=>l[e]));return Array.from(t)}function lc(n,e){return It(n,Ws({count:Us(e)}))[0].count}function ic(n,e,t){let l;if(typeof t!="object")l=It(n,Ai(e,Pn({xTotal:Di(t)})),wi({percentOfX:Vn(t,"xTotal")}),Nn({[t]:t+"_raw",percentOfX:t+"_pct"}));else{l=It(n,wi({valueSum:0}));for(let i=0;i<l.length;i++){l[i].valueSum=0;for(let r=0;r<t.length;r++)l[i].valueSum=l[i].valueSum+l[i][t[r]]}l=It(l,Ai(e,Pn({xTotal:Di("valueSum")})));for(let i=0;i<t.length;i++)l=It(l,wi({percentOfX:Vn(t[i],"xTotal")}),Nn({[t[i]]:t[i]+"_raw",percentOfX:t[i]+"_pct"}))}return l}function _l(n,e,t){return[...n].sort((l,i)=>(l[e]<i[e]?-1:1)*(t?1:-1))}function Qr(n,e,t){const l=e+t;return n%l<e?0:1}function nc(n){let e,t;return e=new Fr({props:{error:n[13],chartType:n[6]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&8192&&(r.error=l[13]),i[0]&64&&(r.chartType=l[6]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function rc(n){let e,t,l,i,r;const s=n[119].default,f=Ce(s,n,n[118],null),o=[oc,sc],a=[];function u(c,d){return c[15].series.length?1:0}return t=u(n),l=a[t]=o[t](n),{c(){f&&f.c(),e=J(),l.c(),i=se()},l(c){f&&f.l(c),e=Z(c),l.l(c),i=se()},m(c,d){f&&f.m(c,d),v(c,e,d),a[t].m(c,d),v(c,i,d),r=!0},p(c,d){f&&f.p&&(!r||d[3]&33554432)&&ve(f,s,c,c[118],r?we(s,c[118],d,null):Se(c[118]),null);let g=t;t=u(c),t===g?a[t].p(c,d):(_e(),C(a[g],1,1,()=>{a[g]=null}),ge(),l=a[t],l?l.p(c,d):(l=a[t]=o[t](c),l.c()),k(l,1),l.m(i.parentNode,i))},i(c){r||(k(f,c),k(l),r=!0)},o(c){C(f,c),C(l),r=!1},d(c){c&&(_(e),_(i)),f&&f.d(c),a[t].d(c)}}}function sc(n){let e,t;return e=new tc({props:{config:n[15],height:n[14],width:n[12],data:n[0],queryID:n[3],evidenceChartTitle:n[5],showAllXAxisLabels:n[4],swapXY:n[2],echartsOptions:n[7],seriesOptions:n[8],printEchartsConfig:n[1],renderer:n[10],connectGroup:n[11],seriesColors:n[9]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&32768&&(r.config=l[15]),i[0]&16384&&(r.height=l[14]),i[0]&4096&&(r.width=l[12]),i[0]&1&&(r.data=l[0]),i[0]&8&&(r.queryID=l[3]),i[0]&32&&(r.evidenceChartTitle=l[5]),i[0]&16&&(r.showAllXAxisLabels=l[4]),i[0]&4&&(r.swapXY=l[2]),i[0]&128&&(r.echartsOptions=l[7]),i[0]&256&&(r.seriesOptions=l[8]),i[0]&2&&(r.printEchartsConfig=l[1]),i[0]&1024&&(r.renderer=l[10]),i[0]&2048&&(r.connectGroup=l[11]),i[0]&512&&(r.seriesColors=l[9]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function oc(n){let e,t;return e=new Nr({props:{emptySet:"pass"}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p:ce,i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function fc(n){let e,t,l,i;const r=[rc,nc],s=[];function f(o,a){return o[13]?1:0}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=se()},l(o){t.l(o),l=se()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?s[e].p(o,a):(_e(),C(s[u],1,1,()=>{s[u]=null}),ge(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function ac(n,e,t){let l,{$$slots:i={},$$scope:r}=e,s=bl({}),f=bl({});Me(n,f,F=>t(15,l=F));let{data:o=void 0}=e,{queryID:a=void 0}=e,{x:u=void 0}=e,{y:c=void 0}=e,{y2:d=void 0}=e,{series:g=void 0}=e,{size:m=void 0}=e,{tooltipTitle:h=void 0}=e,{showAllXAxisLabels:b=!1}=e,{printEchartsConfig:p=!1}=e;const y=!!c,S=!!u;let{swapXY:E=!1}=e,{title:D=void 0}=e,{subtitle:G=void 0}=e,{chartType:P="Chart"}=e,{bubble:w=!1}=e,{hist:T=!1}=e,{boxplot:N=!1}=e,q,{xType:A=void 0}=e,{xAxisTitle:M="false"}=e,{xBaseline:B=!0}=e,{xTickMarks:re=!1}=e,{xGridlines:ne=!1}=e,{xAxisLabels:ae=!0}=e,{sort:W=!0}=e,{xFmt:oe=void 0}=e,{xMin:x=void 0}=e,{xMax:X=void 0}=e,{yLog:I=!1}=e,{yType:K=I===!0?"log":"value"}=e,{yLogBase:H=10}=e,{yAxisTitle:Te="false"}=e,{yBaseline:Le=!1}=e,{yTickMarks:ue=!1}=e,{yGridlines:Xe=!0}=e,{yAxisLabels:He=!0}=e,{yMin:Je=void 0}=e,{yMax:Ge=void 0}=e,{yScale:ze=!1}=e,{yFmt:We=void 0}=e,{yAxisColor:qe="true"}=e,{y2AxisTitle:Re="false"}=e,{y2Baseline:Ue=!1}=e,{y2TickMarks:Ze=!1}=e,{y2Gridlines:tt=!0}=e,{y2AxisLabels:lt=!0}=e,{y2Min:j=void 0}=e,{y2Max:Ie=void 0}=e,{y2Scale:xe=!1}=e,{y2Fmt:it=void 0}=e,{y2AxisColor:V="true"}=e,{sizeFmt:de=void 0}=e,{colorPalette:Be=void 0}=e,{legend:Qe=void 0}=e,{echartsOptions:vt=void 0}=e,{seriesOptions:St=void 0}=e,{seriesColors:tl=void 0}=e,{stackType:Vt=void 0}=e,{stacked100:wt=!1}=e,{chartAreaHeight:nt}=e,{renderer:ll=void 0}=e,{connectGroup:il=void 0}=e,Ee,Et,O=[],gt=[],zt,Ot,rt,xl,ct,$e,bt,wl,$l,nl,Tl,ei,El,Rt,ti,li,rl,jt,ii,ni,ri,si,oi,fi,ai,ui,ci,di,mi,Ht,sl,ol,Ol,Al,hi,_i,Gt,gi,bi,Ll,Ri,yi,At=[],Wt=!0,yt=[],fl=[],ut,al,ki,Lt;return n.$$set=F=>{"data"in F&&t(0,o=F.data),"queryID"in F&&t(3,a=F.queryID),"x"in F&&t(17,u=F.x),"y"in F&&t(18,c=F.y),"y2"in F&&t(41,d=F.y2),"series"in F&&t(42,g=F.series),"size"in F&&t(43,m=F.size),"tooltipTitle"in F&&t(44,h=F.tooltipTitle),"showAllXAxisLabels"in F&&t(4,b=F.showAllXAxisLabels),"printEchartsConfig"in F&&t(1,p=F.printEchartsConfig),"swapXY"in F&&t(2,E=F.swapXY),"title"in F&&t(5,D=F.title),"subtitle"in F&&t(45,G=F.subtitle),"chartType"in F&&t(6,P=F.chartType),"bubble"in F&&t(46,w=F.bubble),"hist"in F&&t(47,T=F.hist),"boxplot"in F&&t(48,N=F.boxplot),"xType"in F&&t(19,A=F.xType),"xAxisTitle"in F&&t(20,M=F.xAxisTitle),"xBaseline"in F&&t(21,B=F.xBaseline),"xTickMarks"in F&&t(22,re=F.xTickMarks),"xGridlines"in F&&t(23,ne=F.xGridlines),"xAxisLabels"in F&&t(24,ae=F.xAxisLabels),"sort"in F&&t(25,W=F.sort),"xFmt"in F&&t(49,oe=F.xFmt),"xMin"in F&&t(50,x=F.xMin),"xMax"in F&&t(51,X=F.xMax),"yLog"in F&&t(26,I=F.yLog),"yType"in F&&t(52,K=F.yType),"yLogBase"in F&&t(53,H=F.yLogBase),"yAxisTitle"in F&&t(27,Te=F.yAxisTitle),"yBaseline"in F&&t(28,Le=F.yBaseline),"yTickMarks"in F&&t(29,ue=F.yTickMarks),"yGridlines"in F&&t(30,Xe=F.yGridlines),"yAxisLabels"in F&&t(31,He=F.yAxisLabels),"yMin"in F&&t(54,Je=F.yMin),"yMax"in F&&t(55,Ge=F.yMax),"yScale"in F&&t(32,ze=F.yScale),"yFmt"in F&&t(56,We=F.yFmt),"yAxisColor"in F&&t(57,qe=F.yAxisColor),"y2AxisTitle"in F&&t(33,Re=F.y2AxisTitle),"y2Baseline"in F&&t(34,Ue=F.y2Baseline),"y2TickMarks"in F&&t(35,Ze=F.y2TickMarks),"y2Gridlines"in F&&t(36,tt=F.y2Gridlines),"y2AxisLabels"in F&&t(37,lt=F.y2AxisLabels),"y2Min"in F&&t(58,j=F.y2Min),"y2Max"in F&&t(59,Ie=F.y2Max),"y2Scale"in F&&t(38,xe=F.y2Scale),"y2Fmt"in F&&t(60,it=F.y2Fmt),"y2AxisColor"in F&&t(61,V=F.y2AxisColor),"sizeFmt"in F&&t(62,de=F.sizeFmt),"colorPalette"in F&&t(63,Be=F.colorPalette),"legend"in F&&t(39,Qe=F.legend),"echartsOptions"in F&&t(7,vt=F.echartsOptions),"seriesOptions"in F&&t(8,St=F.seriesOptions),"seriesColors"in F&&t(9,tl=F.seriesColors),"stackType"in F&&t(64,Vt=F.stackType),"stacked100"in F&&t(65,wt=F.stacked100),"chartAreaHeight"in F&&t(40,nt=F.chartAreaHeight),"renderer"in F&&t(10,ll=F.renderer),"connectGroup"in F&&t(11,il=F.connectGroup),"$$scope"in F&&t(118,r=F.$$scope)},n.$$.update=()=>{var F,ji,Hi,Gi,Wi,Ui;if(n.$$.dirty[0]&2&&t(1,p=p==="true"||p===!0),n.$$.dirty[0]&4&&(E==="true"||E===!0?t(2,E=!0):t(2,E=!1)),n.$$.dirty[0]&2097152&&t(21,B=B==="true"||B===!0),n.$$.dirty[0]&4194304&&t(22,re=re==="true"||re===!0),n.$$.dirty[0]&8388608&&t(23,ne=ne==="true"||ne===!0),n.$$.dirty[0]&16777216&&t(24,ae=ae==="true"||ae===!0),n.$$.dirty[0]&33554432&&t(25,W=W==="true"||W===!0),n.$$.dirty[0]&67108864&&t(26,I=I==="true"||I===!0),n.$$.dirty[0]&268435456&&t(28,Le=Le==="true"||Le===!0),n.$$.dirty[0]&536870912&&t(29,ue=ue==="true"||ue===!0),n.$$.dirty[0]&1073741824&&t(30,Xe=Xe==="true"||Xe===!0),n.$$.dirty[1]&1&&t(31,He=He==="true"||He===!0),n.$$.dirty[1]&2&&t(32,ze=ze==="true"||ze===!0),n.$$.dirty[1]&8&&t(34,Ue=Ue==="true"||Ue===!0),n.$$.dirty[1]&16&&t(35,Ze=Ze==="true"||Ze===!0),n.$$.dirty[1]&32&&t(36,tt=tt==="true"||tt===!0),n.$$.dirty[1]&64&&t(37,lt=lt==="true"||lt===!0),n.$$.dirty[1]&128&&t(38,xe=xe==="true"||xe===!0),n.$$.dirty[0]&2147364965|n.$$.dirty[1]&2147483647|n.$$.dirty[2]&2147483647|n.$$.dirty[3]&33554431)try{if(t(13,al=void 0),t(111,At=[]),t(70,gt=[]),t(113,yt=[]),t(114,fl=[]),t(72,Ot=[]),rn(o),t(67,Ee=Ul(o)),t(68,Et=Object.keys(Ee)),S||t(17,u=Et[0]),!y){t(69,O=Et.filter(function(fe){return![u,g,m].includes(fe)}));for(let fe=0;fe<O.length;fe++)t(72,Ot=O[fe]),t(71,zt=Ee[Ot].type),zt==="number"&>.push(Ot);t(18,c=gt.length>1?gt:gt[0])}w?t(66,q={x:u,y:c,size:m}):T?t(66,q={x:u}):N?t(66,q={}):t(66,q={x:u,y:c});for(let fe in q)q[fe]==null&&At.push(fe);if(At.length===1)throw Error(new Intl.ListFormat().format(At)+" is required");if(At.length>1)throw Error(new Intl.ListFormat().format(At)+" are required");if(wt===!0&&c.includes("_pct")&&Wt===!1)if(typeof c=="object"){for(let fe=0;fe<c.length;fe++)t(18,c[fe]=c[fe].replace("_pct",""),c);t(112,Wt=!1)}else t(18,c=c.replace("_pct","")),t(112,Wt=!1);if(u&&yt.push(u),c)if(typeof c=="object")for(t(115,ut=0);ut<c.length;t(115,ut++,ut))yt.push(c[ut]);else yt.push(c);if(d)if(typeof d=="object")for(t(115,ut=0);ut<d.length;t(115,ut++,ut))yt.push(d[ut]);else yt.push(d);if(m&&yt.push(m),g&&fl.push(g),h&&fl.push(h),rn(o,yt,fl),wt===!0){if(t(0,o=ic(o,u,c)),typeof c=="object"){for(let fe=0;fe<c.length;fe++)t(18,c[fe]=c[fe]+"_pct",c);t(112,Wt=!1)}else t(18,c=c+"_pct"),t(112,Wt=!1);t(67,Ee=Ul(o))}switch(t(73,rt=Ee[u].type),rt){case"number":t(73,rt="value");break;case"string":t(73,rt="category");break;case"date":t(73,rt="time");break;default:break}if(t(19,A=A==="category"?"category":rt),E&&A!=="category")throw Error("Horizontal charts do not support a value or time-based x-axis. You can either change your SQL query to output string values or set swapXY=false.");if(E&&d)throw Error("Horizontal charts do not support a secondary y-axis. You can either set swapXY=false or remove the y2 prop from your chart.");if(E&&t(19,A="category"),t(74,xl=rt==="value"&&A==="category"),t(0,o=W?rt==="category"?_l(o,c,!1):_l(o,u,!0):o),rt==="time"&&t(0,o=_l(o,u,!0)),t(116,ki=Ul(o,"array")),t(117,Lt=ki.filter(fe=>fe.type==="date")),t(117,Lt=Lt.map(fe=>fe.id)),Lt.length>0)for(let fe=0;fe<Lt.length;fe++)t(0,o=Ps(o,Lt[fe]));oe?t(75,ct=kt(oe,(F=Ee[u].format)==null?void 0:F.valueType)):t(75,ct=Ee[u].format),c?We?typeof c=="object"?t(76,$e=kt(We,(ji=Ee[c[0]].format)==null?void 0:ji.valueType)):t(76,$e=kt(We,(Hi=Ee[c].format)==null?void 0:Hi.valueType)):typeof c=="object"?t(76,$e=Ee[c[0]].format):t(76,$e=Ee[c].format):t(76,$e="str"),d&&(it?typeof d=="object"?t(77,bt=kt(it,(Gi=Ee[d[0]].format)==null?void 0:Gi.valueType)):t(77,bt=kt(it,(Wi=Ee[d].format)==null?void 0:Wi.valueType)):typeof d=="object"?t(77,bt=Ee[d[0]].format):t(77,bt=Ee[d].format)),m&&(de?t(78,wl=kt(de,(Ui=Ee[m].format)==null?void 0:Ui.valueType)):t(78,wl=Ee[m].format)),t(79,$l=Ee[u].columnUnitSummary),c&&(typeof c=="object"?t(80,nl=Ee[c[0]].columnUnitSummary):t(80,nl=Ee[c].columnUnitSummary)),d&&(typeof d=="object"?t(81,Tl=Ee[d[0]].columnUnitSummary):t(81,Tl=Ee[d].columnUnitSummary)),t(20,M=M==="true"?pt(u,ct):M==="false"?"":M),t(27,Te=Te==="true"?typeof c=="object"?"":pt(c,$e):Te==="false"?"":Te),t(33,Re=Re==="true"?typeof d=="object"?"":pt(d,bt):Re==="false"?"":Re);let Ut=typeof c=="object"?c.length:1,Xi=g?lc(o,g):1,Dt=Ut*Xi,pi=typeof d=="object"?d.length:d?1:0,Ci=Dt+pi;if(Qe!==void 0&&t(39,Qe=Qe==="true"||Qe===!0),t(39,Qe=Qe??Ci>1),wt===!0&&I===!0)throw Error("Log axis cannot be used in a 100% stacked chart");if(Vt==="stacked"&&Ci>1&&I===!0)throw Error("Log axis cannot be used in a stacked chart");let Xt;if(typeof c=="object"){Xt=Ee[c[0]].columnUnitSummary.min;for(let fe=0;fe<c.length;fe++)Ee[c[fe]].columnUnitSummary.min<Xt&&(Xt=Ee[c[fe]].columnUnitSummary.min)}else c&&(Xt=Ee[c].columnUnitSummary.min);if(I===!0&&Xt<=0&&Xt!==null)throw Error("Log axis cannot display values less than or equal to zero");s.update(fe=>({...fe,data:o,x:u,y:c,y2:d,series:g,swapXY:E,sort:W,xType:A,xFormat:ct,yFormat:$e,y2Format:bt,sizeFormat:wl,xMismatch:xl,size:m,yMin:Je,y2Min:j,columnSummary:Ee,xAxisTitle:M,yAxisTitle:Te,y2AxisTitle:Re,tooltipTitle:h,chartAreaHeight:nt,chartType:P,yCount:Ut,y2Count:pi})),t(82,ei=kl(o,u));let Qi;if(E?t(83,El={type:K,logBase:H,position:"top",axisLabel:{show:He,hideOverlap:!0,showMaxLabel:!0,formatter(fe){return zl(fe,$e,nl)},margin:4},min:Je,max:Ge,scale:ze,splitLine:{show:Xe},axisLine:{show:Le,onZero:!1},axisTick:{show:ue},boundaryGap:!1,z:2}):t(83,El={type:A,min:x,max:X,splitLine:{show:ne},axisLine:{show:B},axisTick:{show:re},axisLabel:{show:ae,hideOverlap:!0,showMaxLabel:A==="category"||A==="value",formatter:A==="time"||A==="category"?!1:function(fe){return zl(fe,ct,$l)},margin:6},scale:!0,z:2}),E?t(84,Rt={type:A,inverse:"true",splitLine:{show:ne},axisLine:{show:B},axisTick:{show:re},axisLabel:{show:ae,hideOverlap:!0},scale:!0,min:x,max:X,z:2}):(t(84,Rt={type:K,logBase:H,splitLine:{show:Xe},axisLine:{show:Le,onZero:!1},axisTick:{show:ue},axisLabel:{show:He,hideOverlap:!0,margin:4,formatter(fe){return zl(fe,$e,nl)},color:d?qe==="true"?Be?Be[0]:ml[0]:qe!=="false"?qe:void 0:void 0},name:Te,nameLocation:"end",nameTextStyle:{align:"left",verticalAlign:"top",padding:[0,5,0,0],color:d?qe==="true"?Be?Be[0]:ml[0]:qe!=="false"?qe:void 0:void 0},nameGap:6,min:Je,max:Ge,scale:ze,boundaryGap:["0%","1%"],z:2}),Qi={type:"value",show:!1,alignTicks:!0,splitLine:{show:tt},axisLine:{show:Ue,onZero:!1},axisTick:{show:Ze},axisLabel:{show:lt,hideOverlap:!0,margin:4,formatter(fe){return zl(fe,bt,Tl)},color:V==="true"?Be?Be[Dt]:ml[Dt]:V!=="false"?V:void 0},name:Re,nameLocation:"end",nameTextStyle:{align:"right",verticalAlign:"top",padding:[0,0,0,5],color:V==="true"?Be?Be[Dt]:ml[Dt]:V!=="false"?V:void 0},nameGap:6,min:j,max:Ie,scale:xe,boundaryGap:["0%","1%"],z:2},t(84,Rt=[Rt,Qi])),nt){if(t(40,nt=Number(nt)),isNaN(nt))throw Error("chartAreaHeight must be a number");if(nt<=0)throw Error("chartAreaHeight must be a positive number")}else t(40,nt=180);t(87,rl=!!D),t(88,jt=!!G),t(89,ii=Qe*(g!==null||typeof c=="object"&&c.length>1)),t(90,ni=Te!==""&&E),t(91,ri=M!==""&&!E),t(92,si=15),t(93,oi=13),t(94,fi=6*jt),t(95,ai=rl*si+jt*oi+fi*Math.max(rl,jt)),t(96,ui=10),t(97,ci=8),t(98,di=14),t(99,mi=14),t(100,Ht=15),t(100,Ht=Ht*ii),t(101,sl=7),t(101,sl=sl*Math.max(rl,jt)),t(102,ol=ai+sl),t(103,Ol=ol+Ht+mi*ni+ui),t(104,Al=ri*di+ci),t(108,gi=8),t(110,Ll=1),E&&(t(109,bi=ei.length),t(110,Ll=Math.max(1,bi/gi))),t(105,hi=nt*Ll+Ol+Al),t(106,_i=ol+Ht+7),t(14,Ri=hi+"px"),t(12,yi="100%"),t(107,Gt=E?Te:M),Gt!==""&&t(107,Gt=Gt+" →"),t(85,ti={id:"horiz-axis-title",type:"text",style:{text:Gt,textAlign:"right",fill:at.grey500},cursor:"auto",right:E?"2%":"3%",top:E?_i:null,bottom:E?null:"2%"}),t(86,li={title:{text:D,subtext:G,subtextStyle:{width:yi}},tooltip:{trigger:"axis",formatter(fe){let Qt,Yt,Kt,Dl;if(Ci>1){Yt=fe[0].value[E?1:0],Qt=`<span id="tooltip" style='font-weight: 600;'>${et(Yt,ct)}</span>`;for(let Mt=fe.length-1;Mt>=0;Mt--)fe[Mt].seriesName!=="stackTotal"&&(Kt=fe[Mt].value[E?0:1],Qt=Qt+`<br> ${fe[Mt].marker} ${fe[Mt].seriesName} <span style='float:right; margin-left: 10px;'>${et(Kt,Qr(fe[Mt].componentIndex,Ut,pi)===0?$e:bt)}</span>`)}else A==="value"?(Yt=fe[0].value[E?1:0],Kt=fe[0].value[E?0:1],Dl=fe[0].seriesName,Qt=`<span id="tooltip" style='font-weight: 600;'>${pt(u,ct)}: </span><span style='float:right; margin-left: 10px;'>${et(Yt,ct)}</span><br/><span style='font-weight: 600;'>${pt(Dl,$e)}: </span><span style='float:right; margin-left: 10px;'>${et(Kt,$e)}</span>`):(Yt=fe[0].value[E?1:0],Kt=fe[0].value[E?0:1],Dl=fe[0].seriesName,Qt=`<span id="tooltip" style='font-weight: 600;'>${et(Yt,ct)}</span><br/><span>${pt(Dl,$e)}: </span><span style='float:right; margin-left: 10px;'>${et(Kt,$e)}</span>`);return Qt},confine:!0,axisPointer:{type:"shadow"},extraCssText:"box-shadow: 0 3px 6px rgba(0,0,0,.15); box-shadow: 0 2px 4px rgba(0,0,0,.12); z-index: 1;",order:"valueDesc"},legend:{show:Qe,type:"scroll",top:ol,padding:[0,0,0,0],data:[]},grid:{left:"0.5%",right:E?"4%":"3%",bottom:Al,top:Ol,containLabel:!0},xAxis:El,yAxis:Rt,series:[],animation:!0,graphic:ti,color:Be}),f.update(()=>li)}catch(Ut){if(t(13,al=Ut.message),console.error("\x1B[31m%s\x1B[0m",`Error in ${P}: ${Ut.message}`),Xs)throw al;s.update(Dt=>({...Dt,error:al}))}n.$$.dirty[0]&1},$t(Mr,s),$t(Ir,f),[o,p,E,a,b,D,P,vt,St,tl,ll,il,yi,al,Ri,l,f,u,c,A,M,B,re,ne,ae,W,I,Te,Le,ue,Xe,He,ze,Re,Ue,Ze,tt,lt,xe,Qe,nt,d,g,m,h,G,w,T,N,oe,x,X,K,H,Je,Ge,We,qe,j,Ie,it,V,de,Be,Vt,wt,q,Ee,Et,O,gt,zt,Ot,rt,xl,ct,$e,bt,wl,$l,nl,Tl,ei,El,Rt,ti,li,rl,jt,ii,ni,ri,si,oi,fi,ai,ui,ci,di,mi,Ht,sl,ol,Ol,Al,hi,_i,Gt,gi,bi,Ll,At,Wt,yt,fl,ut,ki,Lt,r,i]}class uc extends ke{constructor(e){super(),pe(this,e,ac,fc,be,{data:0,queryID:3,x:17,y:18,y2:41,series:42,size:43,tooltipTitle:44,showAllXAxisLabels:4,printEchartsConfig:1,swapXY:2,title:5,subtitle:45,chartType:6,bubble:46,hist:47,boxplot:48,xType:19,xAxisTitle:20,xBaseline:21,xTickMarks:22,xGridlines:23,xAxisLabels:24,sort:25,xFmt:49,xMin:50,xMax:51,yLog:26,yType:52,yLogBase:53,yAxisTitle:27,yBaseline:28,yTickMarks:29,yGridlines:30,yAxisLabels:31,yMin:54,yMax:55,yScale:32,yFmt:56,yAxisColor:57,y2AxisTitle:33,y2Baseline:34,y2TickMarks:35,y2Gridlines:36,y2AxisLabels:37,y2Min:58,y2Max:59,y2Scale:38,y2Fmt:60,y2AxisColor:61,sizeFmt:62,colorPalette:63,legend:39,echartsOptions:7,seriesOptions:8,seriesColors:9,stackType:64,stacked100:65,chartAreaHeight:40,renderer:10,connectGroup:11},null,[-1,-1,-1,-1])}}function cc(n){let e;const t=n[6].default,l=Ce(t,n,n[7],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&128)&&ve(l,t,i,i[7],e?we(t,i[7],r,null):Se(i[7]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function dc(n){let e,t;const l=[n[4],{data:mt.isQuery(n[10])?Array.from(n[10]):n[10]},{queryID:n[5]}];let i={$$slots:{default:[cc]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new uc({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,s){const f=s&1072?Ne(l,[s&16&&Ct(r[4]),s&1024&&{data:mt.isQuery(r[10])?Array.from(r[10]):r[10]},s&32&&{queryID:r[5]}]):{};s&128&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function mc(n){let e,t;return e=new Nr({props:{slot:"empty",emptyMessage:n[2],emptySet:n[1],chartType:n[4].chartType,isInitial:n[3]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.emptyMessage=l[2]),i&2&&(r.emptySet=l[1]),i&16&&(r.chartType=l[4].chartType),i&8&&(r.isInitial=l[3]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function hc(n){let e,t;return e=new Fr({props:{slot:"error",chartType:n[4].chartType,error:n[10].error.message}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&16&&(r.chartType=l[4].chartType),i&1024&&(r.error=l[10].error.message),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function _c(n){let e,t;return e=new Dr({props:{data:n[0],$$slots:{error:[hc,({loaded:l})=>({10:l}),({loaded:l})=>l?1024:0],empty:[mc],default:[dc,({loaded:l})=>({10:l}),({loaded:l})=>l?1024:0]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,[i]){const r={};i&1&&(r.data=l[0]),i&1182&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function gc(n,e,t){let l,{$$slots:i={},$$scope:r}=e,{data:s}=e;const f=mt.isQuery(s)?s.hash:void 0;let o=(s==null?void 0:s.hash)===f,{emptySet:a=void 0}=e,{emptyMessage:u=void 0}=e,c=s==null?void 0:s.id;return n.$$set=d=>{t(9,e=ie(ie({},e),Ve(d))),"data"in d&&t(0,s=d.data),"emptySet"in d&&t(1,a=d.emptySet),"emptyMessage"in d&&t(2,u=d.emptyMessage),"$$scope"in d&&t(7,r=d.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(3,o=(s==null?void 0:s.hash)===f),t(4,l={...Object.fromEntries(Object.entries(e).filter(([,d])=>d!==void 0))})},e=Ve(e),[s,a,u,o,l,c,i,r]}class bc extends ke{constructor(e){super(),pe(this,e,gc,_c,be,{data:0,emptySet:1,emptyMessage:2})}}function yc(n,e,t,l,i,r,s,f,o,a=void 0,u=void 0,c=void 0){function d(w,T,N,q){let A={name:T,data:w,yAxisIndex:N};return A={...q,...A},A}let g,m,h,b=[],p,y,S,E,D;function G(w,T){const N=[];function q(M){return typeof M>"u"}function A(M,B){q(M)||(Array.isArray(M)?M.forEach(re=>N.push([re,B])):N.push([M,B]))}return A(w,0),A(T,1),N}let P=G(t,c);if(l!=null&&P.length===1)for(E=kl(n,l),g=0;g<E.length;g++){if(y=n.filter(w=>w[l]===E[g]),i?p=y.map(w=>[w[P[0][0]],f?w[e].toString():w[e]]):p=y.map(w=>[f?w[e].toString():w[e],w[P[0][0]]]),a){let w=y.map(T=>T[a]);p.forEach((T,N)=>T.push(w[N]))}if(u){let w=y.map(T=>T[u]);p.forEach((T,N)=>T.push(w[N]))}S=E[g]??"null",D=P[0][1],h=d(p,S,D,r),b.push(h)}if(l!=null&&P.length>1)for(E=kl(n,l),g=0;g<E.length;g++)for(y=n.filter(w=>w[l]===E[g]),m=0;m<P.length;m++){if(i?p=y.map(w=>[w[P[m][0]],f?w[e].toString():w[e]]):p=y.map(w=>[f?w[e].toString():w[e],w[P[m][0]]]),a){let w=y.map(T=>T[a]);p.forEach((T,N)=>T.push(w[N]))}if(u){let w=y.map(T=>T[u]);p.forEach((T,N)=>T.push(w[N]))}S=(E[g]??"null")+" - "+o[P[m][0]].title,D=P[m][1],h=d(p,S,D,r),b.push(h)}if(l==null&&P.length>1)for(g=0;g<P.length;g++){if(i?p=n.map(w=>[w[P[g][0]],f?w[e].toString():w[e]]):p=n.map(w=>[f?w[e].toString():w[e],w[P[g][0]]]),a){let w=n.map(T=>T[a]);p.forEach((T,N)=>T.push(w[N]))}if(u){let w=n.map(T=>T[u]);p.forEach((T,N)=>T.push(w[N]))}S=o[P[g][0]].title,D=P[g][1],h=d(p,S,D,r),b.push(h)}if(l==null&&P.length===1){if(i?p=n.map(w=>[w[P[0][0]],f?w[e].toString():w[e]]):p=n.map(w=>[f?w[e].toString():w[e],w[P[0][0]]]),a){let w=n.map(T=>T[a]);p.forEach((T,N)=>T.push(w[N]))}if(u){let w=n.map(T=>T[u]);p.forEach((T,N)=>T.push(w[N]))}S=o[P[0][0]].title,D=P[0][1],h=d(p,S,D,r),b.push(h)}return b}function kc(n){let e=[];for(let t=1;t<n.length;t++)e.push(n[t]-n[t-1]);return e}function Yr(n,e){return(typeof n!="number"||isNaN(n))&&(n=0),(typeof e!="number"||isNaN(e))&&(e=0),n=Math.abs(n),e=Math.abs(e),e<=.01?n:Yr(e,n%e)}function pc(n,e){if(!Array.isArray(n))throw new TypeError("Cannot calculate extent of non-array value.");let t,l;for(const i of n)typeof i=="number"&&(t===void 0?i>=i&&(t=l=i):(t>i&&(t=i),l<i&&(l=i)));return[t,l]}function Cc(n,e){let[t,l]=pc(n);const i=[];let r=t;for(;r<=l;)i.push(Math.round((r+Number.EPSILON)*1e8)/1e8),r+=e;return i}function vc(n){if(n.length<=1)return;n.sort(function(t,l){return t-l}),n=n.map(function(t){return t*1e8}),n=kc(n);let e=n.reduce((t,l)=>Yr(t,l))/1e8;return e=Math.round((e+Number.EPSILON)*1e8)/1e8,e}function Oi(n,e,t,l,i=!1,r=!1){var g;let s=!1;const f=n.map(m=>Object.assign({},m,{[e]:m[e]instanceof Date?(s=!0,m[e].toISOString()):m[e]})).filter(m=>m[e]!==void 0&&m[e]!==null),o=Array.from(f).reduce((m,h)=>(h[e]instanceof Date&&(h[e]=h[e].toISOString(),s=!0),l?(m[h[l]??"null"]||(m[h[l]??"null"]=[]),m[h[l]??"null"].push(h)):(m.default||(m.default=[]),m.default.push(h)),m),{}),a={};let u;const c=((g=f.find(m=>m&&m[e]!==null&&m[e]!==void 0))==null?void 0:g[e])??null;switch(typeof c){case"object":throw c===null?new Error(`Column '${e}' is entirely null. Column must contain at least one non-null value.`):new Error("Unexpected object property, expected string, date, or number");case"number":if(u=kl(f,e),r){const m=vc(u);a[e]=Cc(u,m)}break;case"string":u=kl(f,e),a[e]=u;break}const d=[];for(const m of Object.values(o)){const h=l?{[l]:null}:{};if(i)if(t instanceof Array)for(let p=0;p<t.length;p++)h[t[p]]=0;else h[t]=0;else if(t instanceof Array)for(let p=0;p<t.length;p++)h[t[p]]=null;else h[t]=null;l&&(a[l]=l);const b=[];Object.keys(a).length===0?b.push(Bn([e],h)):b.push(Bn(a,h)),d.push(It(m,...b))}return s?d.flat().map(m=>({...m,[e]:new Date(m[e])})):d.flat()}function br(n,e,t){let l=It(n,Ai(e,[Qs(t,Di)]));if(typeof t=="object")for(let i=0;i<l.length;i++){l[i].stackTotal=0;for(let r=0;r<t.length;r++)l[i].stackTotal=l[i].stackTotal+l[i][t[r]]}return l}let Sc=60;function wc(n,e,t){let l,i,r,s,f,o,a,u,c,d,g,m,h,b,p,y,S,E=ce,D=()=>(E(),E=Ql(l,j=>t(44,S=j)),l);n.$$.on_destroy.push(()=>E());let{y:G=void 0}=e;const P=!!G;let{y2:w=void 0}=e;const T=!!w;let{series:N=void 0}=e;const q=!!N;let{options:A=void 0}=e,{name:M=void 0}=e,{type:B="stacked"}=e,{stackName:re=void 0}=e,{fillColor:ne=void 0}=e,{fillOpacity:ae=void 0}=e,{outlineColor:W=void 0}=e,{outlineWidth:oe=void 0}=e,{labels:x=!1}=e,{seriesLabels:X=!0}=e,{labelSize:I=11}=e,{labelPosition:K=void 0}=e,{labelColor:H=void 0}=e,{labelFmt:Te=void 0}=e,Le;Te&&(Le=kt(Te));let{yLabelFmt:ue=void 0}=e,Xe;ue&&(Xe=kt(ue));let{y2LabelFmt:He=void 0}=e,Je;He&&(Je=kt(He));let{y2SeriesType:Ge="bar"}=e,{stackTotalLabel:ze=!0}=e,{showAllLabels:We=!1}=e,qe,Re,Ue,Ze;const tt={outside:"top",inside:"inside"},lt={outside:"right",inside:"inside"};return $r(()=>{A&&i.update(j=>({...j,...A})),y&&i.update(j=>{if(B.includes("stacked")?j.tooltip={...j.tooltip,order:"seriesDesc"}:j.tooltip={...j.tooltip,order:"seriesAsc"},B==="stacked100"&&(c?j.xAxis={...j.xAxis,max:1}:j.yAxis[0]={...j.yAxis[0],max:1}),c)j.yAxis={...j.yAxis,...y.xAxis},j.xAxis={...j.xAxis,...y.yAxis};else if(j.yAxis[0]={...j.yAxis[0],...y.yAxis},j.xAxis={...j.xAxis,...y.xAxis},w&&(j.yAxis[1]={...j.yAxis[1],show:!0},["line","bar","scatter"].includes(Ge)))for(let Ie=0;Ie<u;Ie++)j.series[a+Ie].type=Ge,j.series[a+Ie].stack=void 0;return j})}),n.$$set=j=>{"y"in j&&t(1,G=j.y),"y2"in j&&t(2,w=j.y2),"series"in j&&t(3,N=j.series),"options"in j&&t(10,A=j.options),"name"in j&&t(4,M=j.name),"type"in j&&t(11,B=j.type),"stackName"in j&&t(5,re=j.stackName),"fillColor"in j&&t(12,ne=j.fillColor),"fillOpacity"in j&&t(13,ae=j.fillOpacity),"outlineColor"in j&&t(14,W=j.outlineColor),"outlineWidth"in j&&t(15,oe=j.outlineWidth),"labels"in j&&t(6,x=j.labels),"seriesLabels"in j&&t(7,X=j.seriesLabels),"labelSize"in j&&t(16,I=j.labelSize),"labelPosition"in j&&t(8,K=j.labelPosition),"labelColor"in j&&t(17,H=j.labelColor),"labelFmt"in j&&t(18,Te=j.labelFmt),"yLabelFmt"in j&&t(19,ue=j.yLabelFmt),"y2LabelFmt"in j&&t(20,He=j.y2LabelFmt),"y2SeriesType"in j&&t(21,Ge=j.y2SeriesType),"stackTotalLabel"in j&&t(9,ze=j.stackTotalLabel),"showAllLabels"in j&&t(22,We=j.showAllLabels)},n.$$.update=()=>{n.$$.dirty[0]&64&&t(6,x=x==="true"||x===!0),n.$$.dirty[0]&128&&t(7,X=X==="true"||X===!0),n.$$.dirty[0]&512&&t(9,ze=ze==="true"||ze===!0),n.$$.dirty[1]&8192&&t(41,r=S.data),n.$$.dirty[1]&8192&&t(37,s=S.x),n.$$.dirty[0]&2|n.$$.dirty[1]&8192&&t(1,G=P?G:S.y),n.$$.dirty[0]&4|n.$$.dirty[1]&8192&&t(2,w=T?w:S.y2),n.$$.dirty[1]&8192&&t(35,f=S.yFormat),n.$$.dirty[1]&8192&&t(42,o=S.y2Format),n.$$.dirty[1]&8192&&t(30,a=S.yCount),n.$$.dirty[1]&8192&&t(31,u=S.y2Count),n.$$.dirty[1]&8192&&t(32,c=S.swapXY),n.$$.dirty[1]&8192&&t(34,d=S.xType),n.$$.dirty[1]&8192&&t(38,g=S.xMismatch),n.$$.dirty[1]&8192&&t(39,m=S.columnSummary),n.$$.dirty[1]&8192&&t(43,h=S.sort),n.$$.dirty[0]&8|n.$$.dirty[1]&8192&&t(3,N=q?N:S.series),n.$$.dirty[0]&201328698|n.$$.dirty[1]&5450&&(!N&&typeof G!="object"?(t(4,M=M??pt(G,m[G].title)),c&&d!=="category"&&(t(41,r=Oi(r,s,G,N,!0,d!=="time")),t(34,d="category")),t(5,re="stack1"),t(28,Ue=c?"right":"top")):(h===!0&&d==="category"&&(t(26,qe=br(r,s,G)),typeof G=="object"?t(26,qe=_l(qe,"stackTotal",!1)):t(26,qe=_l(qe,G,!1)),t(27,Re=qe.map(j=>j[s])),t(41,r=[...r].sort(function(j,Ie){return Re.indexOf(j[s])-Re.indexOf(Ie[s])}))),c||(d==="value"||d==="category")&&B.includes("stacked")?(t(41,r=Oi(r,s,G,N,!0,d==="value")),t(34,d="category")):d==="time"&&B.includes("stacked")&&t(41,r=Oi(r,s,G,N,!0,!0)),B.includes("stacked")?(t(5,re=re??"stack1"),t(28,Ue="inside")):(t(5,re=void 0),t(28,Ue=c?"right":"top")))),n.$$.dirty[0]&2050|n.$$.dirty[1]&1088&&B==="stacked"&&t(29,Ze=br(r,s,G)),n.$$.dirty[0]&268435712|n.$$.dirty[1]&2&&t(8,K=(c?lt[K]:tt[K])??Ue),n.$$.dirty[0]&1136914912|n.$$.dirty[1]&2067&&t(40,b={type:"bar",stack:re,label:{show:x&&X,formatter(j){return j.value[c?0:1]===0?"":et(j.value[c?0:1],[Xe??Le??f,Je??Le??o][Qr(j.componentIndex,a,u)])},position:K,fontSize:I,color:H},labelLayout:{hideOverlap:!We},emphasis:{focus:"series"},barMaxWidth:Sc,itemStyle:{color:ne,opacity:ae,borderColor:W,borderWidth:oe}}),n.$$.dirty[0]&30|n.$$.dirty[1]&1986&&t(36,p=yc(r,s,G,N,c,b,M,g,m,void 0,void 0,w)),n.$$.dirty[0]&545327722|n.$$.dirty[1]&246&&i.update(j=>(j.series.push(...p),j.legend.data.push(...p.map(Ie=>Ie.name.toString())),x===!0&&B==="stacked"&&typeof G=="object"|N!==void 0&&ze===!0&&N!==s&&(j.series.push({type:"bar",stack:re,name:"stackTotal",color:"none",data:Ze.map(Ie=>[c?0:g?Ie[s].toString():Ie[s],c?g?Ie[s].toString():Ie[s]:0]),label:{show:!0,position:c?"right":"top",formatter(Ie){let xe=0;return p.forEach(it=>{xe+=it.data[Ie.dataIndex][c?0:1]}),xe===0?"":et(xe,Le??f)},fontWeight:"bold",fontSize:I,padding:c?[0,0,0,5]:void 0}}),j.legend.selectedMode=!1),j)),n.$$.dirty[1]&8&&(y={xAxis:{boundaryGap:["1%","2%"],type:d}})},D(t(0,l=el(Mr))),t(33,i=el(Ir)),[l,G,w,N,M,re,x,X,K,ze,A,B,ne,ae,W,oe,I,H,Te,ue,He,Ge,We,Le,Xe,Je,qe,Re,Ue,Ze,a,u,c,i,d,f,p,s,g,m,b,r,o,h,S]}class Tc extends ke{constructor(e){super(),pe(this,e,wc,null,be,{y:1,y2:2,series:3,options:10,name:4,type:11,stackName:5,fillColor:12,fillOpacity:13,outlineColor:14,outlineWidth:15,labels:6,seriesLabels:7,labelSize:16,labelPosition:8,labelColor:17,labelFmt:18,yLabelFmt:19,y2LabelFmt:20,y2SeriesType:21,stackTotalLabel:9,showAllLabels:22},null,[-1,-1])}}function Ec(n){let e,t,l;e=new Tc({props:{type:n[38],fillColor:n[39],fillOpacity:n[40],outlineColor:n[41],outlineWidth:n[42],labels:n[46],labelSize:n[47],labelPosition:n[48],labelColor:n[49],labelFmt:n[50],yLabelFmt:n[51],y2LabelFmt:n[52],stackTotalLabel:n[53],seriesLabels:n[54],showAllLabels:n[55],y2SeriesType:n[10]}});const i=n[68].default,r=Ce(i,n,n[69],null);return{c(){$(e.$$.fragment),t=J(),r&&r.c()},l(s){ee(e.$$.fragment,s),t=Z(s),r&&r.l(s)},m(s,f){te(e,s,f),v(s,t,f),r&&r.m(s,f),l=!0},p(s,f){const o={};f[1]&128&&(o.type=s[38]),f[1]&256&&(o.fillColor=s[39]),f[1]&512&&(o.fillOpacity=s[40]),f[1]&1024&&(o.outlineColor=s[41]),f[1]&2048&&(o.outlineWidth=s[42]),f[1]&32768&&(o.labels=s[46]),f[1]&65536&&(o.labelSize=s[47]),f[1]&131072&&(o.labelPosition=s[48]),f[1]&262144&&(o.labelColor=s[49]),f[1]&524288&&(o.labelFmt=s[50]),f[1]&1048576&&(o.yLabelFmt=s[51]),f[1]&2097152&&(o.y2LabelFmt=s[52]),f[1]&4194304&&(o.stackTotalLabel=s[53]),f[1]&8388608&&(o.seriesLabels=s[54]),f[1]&16777216&&(o.showAllLabels=s[55]),f[0]&1024&&(o.y2SeriesType=s[10]),e.$set(o),r&&r.p&&(!l||f[2]&128)&&ve(r,i,s,s[69],l?we(i,s[69],f,null):Se(s[69]),null)},i(s){l||(k(e.$$.fragment,s),k(r,s),l=!0)},o(s){C(e.$$.fragment,s),C(r,s),l=!1},d(s){s&&_(t),le(e,s),r&&r.d(s)}}}function Oc(n){let e,t;return e=new bc({props:{data:n[2],x:n[3],y:n[4],y2:n[5],xFmt:n[13],yFmt:n[11],y2Fmt:n[12],series:n[6],xType:n[7],yLog:n[8],yLogBase:n[9],legend:n[16],xAxisTitle:n[17],yAxisTitle:n[18],y2AxisTitle:n[19],xGridlines:n[20],yGridlines:n[21],y2Gridlines:n[22],xAxisLabels:n[23],yAxisLabels:n[24],y2AxisLabels:n[25],xBaseline:n[26],yBaseline:n[27],y2Baseline:n[28],xTickMarks:n[29],yTickMarks:n[30],y2TickMarks:n[31],yAxisColor:n[56],y2AxisColor:n[57],yMin:n[32],yMax:n[33],yScale:n[34],y2Min:n[35],y2Max:n[36],y2Scale:n[37],swapXY:n[0],title:n[14],subtitle:n[15],chartType:"Bar Chart",stackType:n[38],sort:n[44],stacked100:n[66],chartAreaHeight:n[43],showAllXAxisLabels:n[1],colorPalette:n[45],echartsOptions:n[58],seriesOptions:n[59],printEchartsConfig:n[60],emptySet:n[61],emptyMessage:n[62],renderer:n[63],connectGroup:n[65],seriesColors:n[64],$$slots:{default:[Ec]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&4&&(r.data=l[2]),i[0]&8&&(r.x=l[3]),i[0]&16&&(r.y=l[4]),i[0]&32&&(r.y2=l[5]),i[0]&8192&&(r.xFmt=l[13]),i[0]&2048&&(r.yFmt=l[11]),i[0]&4096&&(r.y2Fmt=l[12]),i[0]&64&&(r.series=l[6]),i[0]&128&&(r.xType=l[7]),i[0]&256&&(r.yLog=l[8]),i[0]&512&&(r.yLogBase=l[9]),i[0]&65536&&(r.legend=l[16]),i[0]&131072&&(r.xAxisTitle=l[17]),i[0]&262144&&(r.yAxisTitle=l[18]),i[0]&524288&&(r.y2AxisTitle=l[19]),i[0]&1048576&&(r.xGridlines=l[20]),i[0]&2097152&&(r.yGridlines=l[21]),i[0]&4194304&&(r.y2Gridlines=l[22]),i[0]&8388608&&(r.xAxisLabels=l[23]),i[0]&16777216&&(r.yAxisLabels=l[24]),i[0]&33554432&&(r.y2AxisLabels=l[25]),i[0]&67108864&&(r.xBaseline=l[26]),i[0]&134217728&&(r.yBaseline=l[27]),i[0]&268435456&&(r.y2Baseline=l[28]),i[0]&536870912&&(r.xTickMarks=l[29]),i[0]&1073741824&&(r.yTickMarks=l[30]),i[1]&1&&(r.y2TickMarks=l[31]),i[1]&33554432&&(r.yAxisColor=l[56]),i[1]&67108864&&(r.y2AxisColor=l[57]),i[1]&2&&(r.yMin=l[32]),i[1]&4&&(r.yMax=l[33]),i[1]&8&&(r.yScale=l[34]),i[1]&16&&(r.y2Min=l[35]),i[1]&32&&(r.y2Max=l[36]),i[1]&64&&(r.y2Scale=l[37]),i[0]&1&&(r.swapXY=l[0]),i[0]&16384&&(r.title=l[14]),i[0]&32768&&(r.subtitle=l[15]),i[1]&128&&(r.stackType=l[38]),i[1]&8192&&(r.sort=l[44]),i[1]&4096&&(r.chartAreaHeight=l[43]),i[0]&2&&(r.showAllXAxisLabels=l[1]),i[1]&16384&&(r.colorPalette=l[45]),i[1]&134217728&&(r.echartsOptions=l[58]),i[1]&268435456&&(r.seriesOptions=l[59]),i[1]&536870912&&(r.printEchartsConfig=l[60]),i[1]&1073741824&&(r.emptySet=l[61]),i[2]&1&&(r.emptyMessage=l[62]),i[2]&2&&(r.renderer=l[63]),i[2]&8&&(r.connectGroup=l[65]),i[2]&4&&(r.seriesColors=l[64]),i[0]&1024|i[1]&33525632|i[2]&128&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Ac(n,e,t){let{$$slots:l={},$$scope:i}=e,{data:r=void 0}=e,{x:s=void 0}=e,{y:f=void 0}=e,{y2:o=void 0}=e,{series:a=void 0}=e,{xType:u=void 0}=e,{yLog:c=void 0}=e,{yLogBase:d=void 0}=e,{y2SeriesType:g=void 0}=e,{yFmt:m=void 0}=e,{y2Fmt:h=void 0}=e,{xFmt:b=void 0}=e,{title:p=void 0}=e,{subtitle:y=void 0}=e,{legend:S=void 0}=e,{xAxisTitle:E=void 0}=e,{yAxisTitle:D=o?"true":void 0}=e,{y2AxisTitle:G=o?"true":void 0}=e,{xGridlines:P=void 0}=e,{yGridlines:w=void 0}=e,{y2Gridlines:T=void 0}=e,{xAxisLabels:N=void 0}=e,{yAxisLabels:q=void 0}=e,{y2AxisLabels:A=void 0}=e,{xBaseline:M=void 0}=e,{yBaseline:B=void 0}=e,{y2Baseline:re=void 0}=e,{xTickMarks:ne=void 0}=e,{yTickMarks:ae=void 0}=e,{y2TickMarks:W=void 0}=e,{yMin:oe=void 0}=e,{yMax:x=void 0}=e,{yScale:X=void 0}=e,{y2Min:I=void 0}=e,{y2Max:K=void 0}=e,{y2Scale:H=void 0}=e,{swapXY:Te=!1}=e,Le;ht(()=>{var O,gt,zt;t(67,Le=(zt=(gt=(O=r==null?void 0:r[0])==null?void 0:O._evidenceColumnTypes)==null?void 0:gt.find(Ot=>{var rt;return((rt=Ot.name)==null?void 0:rt.toLowerCase())===(s==null?void 0:s.toLowerCase())}))==null?void 0:zt.evidenceType)});let{showAllXAxisLabels:ue}=e;const Xe=typeof ue<"u";let{type:He="stacked"}=e,Je=He==="stacked100",{fillColor:Ge=void 0}=e,{fillOpacity:ze=void 0}=e,{outlineColor:We=void 0}=e,{outlineWidth:qe=void 0}=e,{chartAreaHeight:Re=void 0}=e,{sort:Ue=void 0}=e,{colorPalette:Ze=void 0}=e,{labels:tt=void 0}=e,{labelSize:lt=void 0}=e,{labelPosition:j=void 0}=e,{labelColor:Ie=void 0}=e,{labelFmt:xe=void 0}=e,{yLabelFmt:it=void 0}=e,{y2LabelFmt:V=void 0}=e,{stackTotalLabel:de=void 0}=e,{seriesLabels:Be=void 0}=e,{showAllLabels:Qe=void 0}=e,{yAxisColor:vt=void 0}=e,{y2AxisColor:St=void 0}=e,{echartsOptions:tl=void 0}=e,{seriesOptions:Vt=void 0}=e,{printEchartsConfig:wt=!1}=e,{emptySet:nt=void 0}=e,{emptyMessage:ll=void 0}=e,{renderer:il=void 0}=e,{seriesColors:Ee=void 0}=e,{connectGroup:Et=void 0}=e;return n.$$set=O=>{"data"in O&&t(2,r=O.data),"x"in O&&t(3,s=O.x),"y"in O&&t(4,f=O.y),"y2"in O&&t(5,o=O.y2),"series"in O&&t(6,a=O.series),"xType"in O&&t(7,u=O.xType),"yLog"in O&&t(8,c=O.yLog),"yLogBase"in O&&t(9,d=O.yLogBase),"y2SeriesType"in O&&t(10,g=O.y2SeriesType),"yFmt"in O&&t(11,m=O.yFmt),"y2Fmt"in O&&t(12,h=O.y2Fmt),"xFmt"in O&&t(13,b=O.xFmt),"title"in O&&t(14,p=O.title),"subtitle"in O&&t(15,y=O.subtitle),"legend"in O&&t(16,S=O.legend),"xAxisTitle"in O&&t(17,E=O.xAxisTitle),"yAxisTitle"in O&&t(18,D=O.yAxisTitle),"y2AxisTitle"in O&&t(19,G=O.y2AxisTitle),"xGridlines"in O&&t(20,P=O.xGridlines),"yGridlines"in O&&t(21,w=O.yGridlines),"y2Gridlines"in O&&t(22,T=O.y2Gridlines),"xAxisLabels"in O&&t(23,N=O.xAxisLabels),"yAxisLabels"in O&&t(24,q=O.yAxisLabels),"y2AxisLabels"in O&&t(25,A=O.y2AxisLabels),"xBaseline"in O&&t(26,M=O.xBaseline),"yBaseline"in O&&t(27,B=O.yBaseline),"y2Baseline"in O&&t(28,re=O.y2Baseline),"xTickMarks"in O&&t(29,ne=O.xTickMarks),"yTickMarks"in O&&t(30,ae=O.yTickMarks),"y2TickMarks"in O&&t(31,W=O.y2TickMarks),"yMin"in O&&t(32,oe=O.yMin),"yMax"in O&&t(33,x=O.yMax),"yScale"in O&&t(34,X=O.yScale),"y2Min"in O&&t(35,I=O.y2Min),"y2Max"in O&&t(36,K=O.y2Max),"y2Scale"in O&&t(37,H=O.y2Scale),"swapXY"in O&&t(0,Te=O.swapXY),"showAllXAxisLabels"in O&&t(1,ue=O.showAllXAxisLabels),"type"in O&&t(38,He=O.type),"fillColor"in O&&t(39,Ge=O.fillColor),"fillOpacity"in O&&t(40,ze=O.fillOpacity),"outlineColor"in O&&t(41,We=O.outlineColor),"outlineWidth"in O&&t(42,qe=O.outlineWidth),"chartAreaHeight"in O&&t(43,Re=O.chartAreaHeight),"sort"in O&&t(44,Ue=O.sort),"colorPalette"in O&&t(45,Ze=O.colorPalette),"labels"in O&&t(46,tt=O.labels),"labelSize"in O&&t(47,lt=O.labelSize),"labelPosition"in O&&t(48,j=O.labelPosition),"labelColor"in O&&t(49,Ie=O.labelColor),"labelFmt"in O&&t(50,xe=O.labelFmt),"yLabelFmt"in O&&t(51,it=O.yLabelFmt),"y2LabelFmt"in O&&t(52,V=O.y2LabelFmt),"stackTotalLabel"in O&&t(53,de=O.stackTotalLabel),"seriesLabels"in O&&t(54,Be=O.seriesLabels),"showAllLabels"in O&&t(55,Qe=O.showAllLabels),"yAxisColor"in O&&t(56,vt=O.yAxisColor),"y2AxisColor"in O&&t(57,St=O.y2AxisColor),"echartsOptions"in O&&t(58,tl=O.echartsOptions),"seriesOptions"in O&&t(59,Vt=O.seriesOptions),"printEchartsConfig"in O&&t(60,wt=O.printEchartsConfig),"emptySet"in O&&t(61,nt=O.emptySet),"emptyMessage"in O&&t(62,ll=O.emptyMessage),"renderer"in O&&t(63,il=O.renderer),"seriesColors"in O&&t(64,Ee=O.seriesColors),"connectGroup"in O&&t(65,Et=O.connectGroup),"$$scope"in O&&t(69,i=O.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&128|n.$$.dirty[2]&32&&(Xe||t(1,ue=u==="category"||Le==="string")),n.$$.dirty[0]&2&&typeof ue=="string"&&t(1,ue=(ue==null?void 0:ue.toLowerCase())==="true"),n.$$.dirty[0]&1&&(Te==="true"||Te===!0?t(0,Te=!0):t(0,Te=!1))},[Te,ue,r,s,f,o,a,u,c,d,g,m,h,b,p,y,S,E,D,G,P,w,T,N,q,A,M,B,re,ne,ae,W,oe,x,X,I,K,H,He,Ge,ze,We,qe,Re,Ue,Ze,tt,lt,j,Ie,xe,it,V,de,Be,Qe,vt,St,tl,Vt,wt,nt,ll,il,Ee,Et,Je,Le,l,i]}class Lc extends ke{constructor(e){super(),pe(this,e,Ac,Oc,be,{data:2,x:3,y:4,y2:5,series:6,xType:7,yLog:8,yLogBase:9,y2SeriesType:10,yFmt:11,y2Fmt:12,xFmt:13,title:14,subtitle:15,legend:16,xAxisTitle:17,yAxisTitle:18,y2AxisTitle:19,xGridlines:20,yGridlines:21,y2Gridlines:22,xAxisLabels:23,yAxisLabels:24,y2AxisLabels:25,xBaseline:26,yBaseline:27,y2Baseline:28,xTickMarks:29,yTickMarks:30,y2TickMarks:31,yMin:32,yMax:33,yScale:34,y2Min:35,y2Max:36,y2Scale:37,swapXY:0,showAllXAxisLabels:1,type:38,fillColor:39,fillOpacity:40,outlineColor:41,outlineWidth:42,chartAreaHeight:43,sort:44,colorPalette:45,labels:46,labelSize:47,labelPosition:48,labelColor:49,labelFmt:50,yLabelFmt:51,y2LabelFmt:52,stackTotalLabel:53,seriesLabels:54,showAllLabels:55,yAxisColor:56,y2AxisColor:57,echartsOptions:58,seriesOptions:59,printEchartsConfig:60,emptySet:61,emptyMessage:62,renderer:63,seriesColors:64,connectGroup:65},null,[-1,-1,-1])}}function Dc(n){let e,t=Oe.title+"",l;return{c(){e=z("h1"),l=me(t),this.h()},l(i){e=R(i,"H1",{class:!0});var r=Q(e);l=he(r,t),r.forEach(_),this.h()},h(){L(e,"class","title")},m(i,r){v(i,e,r),Y(e,l)},p:ce,d(i){i&&_(e)}}}function Mc(n){return{c(){this.h()},l(e){this.h()},h(){document.title="Evidence"},m:ce,p:ce,d:ce}}function Ic(n){let e,t,l,i,r;return document.title=e=Oe.title,{c(){t=J(),l=z("meta"),i=J(),r=z("meta"),this.h()},l(s){t=Z(s),l=R(s,"META",{property:!0,content:!0}),i=Z(s),r=R(s,"META",{name:!0,content:!0}),this.h()},h(){var s,f;L(l,"property","og:title"),L(l,"content",((s=Oe.og)==null?void 0:s.title)??Oe.title),L(r,"name","twitter:title"),L(r,"content",((f=Oe.og)==null?void 0:f.title)??Oe.title)},m(s,f){v(s,t,f),v(s,l,f),v(s,i,f),v(s,r,f)},p(s,f){f&0&&e!==(e=Oe.title)&&(document.title=e)},d(s){s&&(_(t),_(l),_(i),_(r))}}}function Fc(n){var r,s;let e,t,l=(Oe.description||((r=Oe.og)==null?void 0:r.description))&&Nc(),i=((s=Oe.og)==null?void 0:s.image)&&Pc();return{c(){l&&l.c(),e=J(),i&&i.c(),t=se()},l(f){l&&l.l(f),e=Z(f),i&&i.l(f),t=se()},m(f,o){l&&l.m(f,o),v(f,e,o),i&&i.m(f,o),v(f,t,o)},p(f,o){var a,u;(Oe.description||(a=Oe.og)!=null&&a.description)&&l.p(f,o),(u=Oe.og)!=null&&u.image&&i.p(f,o)},d(f){f&&(_(e),_(t)),l&&l.d(f),i&&i.d(f)}}}function Nc(n){let e,t,l,i,r;return{c(){e=z("meta"),t=J(),l=z("meta"),i=J(),r=z("meta"),this.h()},l(s){e=R(s,"META",{name:!0,content:!0}),t=Z(s),l=R(s,"META",{property:!0,content:!0}),i=Z(s),r=R(s,"META",{name:!0,content:!0}),this.h()},h(){var s,f,o;L(e,"name","description"),L(e,"content",Oe.description??((s=Oe.og)==null?void 0:s.description)),L(l,"property","og:description"),L(l,"content",((f=Oe.og)==null?void 0:f.description)??Oe.description),L(r,"name","twitter:description"),L(r,"content",((o=Oe.og)==null?void 0:o.description)??Oe.description)},m(s,f){v(s,e,f),v(s,t,f),v(s,l,f),v(s,i,f),v(s,r,f)},p:ce,d(s){s&&(_(e),_(t),_(l),_(i),_(r))}}}function Pc(n){let e,t,l;return{c(){e=z("meta"),t=J(),l=z("meta"),this.h()},l(i){e=R(i,"META",{property:!0,content:!0}),t=Z(i),l=R(i,"META",{name:!0,content:!0}),this.h()},h(){var i,r;L(e,"property","og:image"),L(e,"content",(i=Oe.og)==null?void 0:i.image),L(l,"name","twitter:image"),L(l,"content",(r=Oe.og)==null?void 0:r.image)},m(i,r){v(i,e,r),v(i,t,r),v(i,l,r)},p:ce,d(i){i&&(_(e),_(t),_(l))}}}function Bc(n){let e,t='This page can be found in your project at <code class="markdown">/pages/index.md</code>. Make a change to the markdown file and save it to see the change take effect in your browser.';return{c(){e=z("p"),e.innerHTML=t,this.h()},l(l){e=R(l,"P",{class:!0,"data-svelte-h":!0}),st(e)!=="svelte-pu0hug"&&(e.innerHTML=t),this.h()},h(){L(e,"class","markdown")},m(l,i){v(l,e,i)},p:ce,d(l){l&&_(e)}}}function yr(n){let e,t;return e=new Xr({props:{queryID:"categories",queryResult:n[1]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&2&&(r.queryResult=l[1]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function qc(n){let e,t;return e=new Zt({props:{value:"%",valueLabel:"All Categories"}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p:ce,i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Vc(n){let e,t,l,i,r,s,f,o;return e=new Zt({props:{value:"%",valueLabel:"All Years"}}),l=new Zt({props:{value:"2019"}}),r=new Zt({props:{value:"2020"}}),f=new Zt({props:{value:"2021"}}),{c(){$(e.$$.fragment),t=J(),$(l.$$.fragment),i=J(),$(r.$$.fragment),s=J(),$(f.$$.fragment)},l(a){ee(e.$$.fragment,a),t=Z(a),ee(l.$$.fragment,a),i=Z(a),ee(r.$$.fragment,a),s=Z(a),ee(f.$$.fragment,a)},m(a,u){te(e,a,u),v(a,t,u),te(l,a,u),v(a,i,u),te(r,a,u),v(a,s,u),te(f,a,u),o=!0},p:ce,i(a){o||(k(e.$$.fragment,a),k(l.$$.fragment,a),k(r.$$.fragment,a),k(f.$$.fragment,a),o=!0)},o(a){C(e.$$.fragment,a),C(l.$$.fragment,a),C(r.$$.fragment,a),C(f.$$.fragment,a),o=!1},d(a){a&&(_(t),_(i),_(s)),le(e,a),le(l,a),le(r,a),le(f,a)}}}function kr(n){let e,t;return e=new Xr({props:{queryID:"orders_by_category",queryResult:n[2]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.queryResult=l[2]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function zc(n){let e,t,l,i,r,s,f='The source code for this project can be found in this <a href="https://huggingface.co/spaces/evidence-dev/template/tree/main" rel="nofollow" class="markdown">Hugging Face Space</a>.',o,a,u,c,d,g,m,h,b,p,y,S,E='<a href="#whats-next">What's Next?</a>',D,G,P='<li class="markdown"><a href="settings" class="markdown">Connect your data sources</a></li> <li class="markdown">Edit/add markdown files in the <code class="markdown">pages</code> folder</li> <li class="markdown">Deploy your project with <a href="https://evidence.dev/cloud" rel="nofollow" class="markdown">Evidence Cloud</a></li>',w,T,N='<a href="#get-support">Get Support</a>',q,A,M='<li class="markdown">Message us on <a href="https://slack.evidence.dev/" rel="nofollow" class="markdown">Slack</a></li> <li class="markdown">Read the <a href="https://docs.evidence.dev/" rel="nofollow" class="markdown">Docs</a></li> <li class="markdown">Open an issue on <a href="https://github.com/evidence-dev/evidence" rel="nofollow" class="markdown">Github</a></li>',B,re=typeof Oe<"u"&&Oe.title&&Oe.hide_title!==!0&&Dc();function ne(I,K){return typeof Oe<"u"&&Oe.title?Ic:Mc}let W=ne()(n),oe=typeof Oe=="object"&&Fc();a=new nu({props:{title:"How to edit this page",$$slots:{default:[Bc]},$$scope:{ctx:n}}});let x=n[1]&&yr(n);d=new Zn({props:{data:n[1],name:"category",value:"category",$$slots:{default:[qc]},$$scope:{ctx:n}}}),m=new Zn({props:{name:"year",$$slots:{default:[Vc]},$$scope:{ctx:n}}});let X=n[2]&&kr(n);return p=new Lc({props:{data:n[2],title:"Sales by Month, "+n[0].category.label,x:"month",y:"sales_usd",series:"category"}}),{c(){re&&re.c(),e=J(),W.c(),t=z("meta"),l=z("meta"),oe&&oe.c(),i=se(),r=J(),s=z("p"),s.innerHTML=f,o=J(),$(a.$$.fragment),u=J(),x&&x.c(),c=J(),$(d.$$.fragment),g=J(),$(m.$$.fragment),h=J(),X&&X.c(),b=J(),$(p.$$.fragment),y=J(),S=z("h2"),S.innerHTML=E,D=J(),G=z("ul"),G.innerHTML=P,w=J(),T=z("h2"),T.innerHTML=N,q=J(),A=z("ul"),A.innerHTML=M,this.h()},l(I){re&&re.l(I),e=Z(I);const K=es("svelte-1j2izld",document.head);W.l(K),t=R(K,"META",{name:!0,content:!0}),l=R(K,"META",{name:!0,content:!0}),oe&&oe.l(K),i=se(),K.forEach(_),r=Z(I),s=R(I,"P",{class:!0,"data-svelte-h":!0}),st(s)!=="svelte-1fzwphh"&&(s.innerHTML=f),o=Z(I),ee(a.$$.fragment,I),u=Z(I),x&&x.l(I),c=Z(I),ee(d.$$.fragment,I),g=Z(I),ee(m.$$.fragment,I),h=Z(I),X&&X.l(I),b=Z(I),ee(p.$$.fragment,I),y=Z(I),S=R(I,"H2",{class:!0,id:!0,"data-svelte-h":!0}),st(S)!=="svelte-fy128a"&&(S.innerHTML=E),D=Z(I),G=R(I,"UL",{class:!0,"data-svelte-h":!0}),st(G)!=="svelte-14v8ajg"&&(G.innerHTML=P),w=Z(I),T=R(I,"H2",{class:!0,id:!0,"data-svelte-h":!0}),st(T)!=="svelte-1o2veuf"&&(T.innerHTML=N),q=Z(I),A=R(I,"UL",{class:!0,"data-svelte-h":!0}),st(A)!=="svelte-1xbsjxs"&&(A.innerHTML=M),this.h()},h(){L(t,"name","twitter:card"),L(t,"content","summary"),L(l,"name","twitter:site"),L(l,"content","@evidence_dev"),L(s,"class","markdown"),L(S,"class","markdown"),L(S,"id","whats-next"),L(G,"class","markdown"),L(T,"class","markdown"),L(T,"id","get-support"),L(A,"class","markdown")},m(I,K){re&&re.m(I,K),v(I,e,K),W.m(document.head,null),Y(document.head,t),Y(document.head,l),oe&&oe.m(document.head,null),Y(document.head,i),v(I,r,K),v(I,s,K),v(I,o,K),te(a,I,K),v(I,u,K),x&&x.m(I,K),v(I,c,K),te(d,I,K),v(I,g,K),te(m,I,K),v(I,h,K),X&&X.m(I,K),v(I,b,K),te(p,I,K),v(I,y,K),v(I,S,K),v(I,D,K),v(I,G,K),v(I,w,K),v(I,T,K),v(I,q,K),v(I,A,K),B=!0},p(I,[K]){typeof Oe<"u"&&Oe.title&&Oe.hide_title!==!0&&re.p(I,K),W.p(I,K),typeof Oe=="object"&&oe.p(I,K);const H={};K&33554432&&(H.$$scope={dirty:K,ctx:I}),a.$set(H),I[1]?x?(x.p(I,K),K&2&&k(x,1)):(x=yr(I),x.c(),k(x,1),x.m(c.parentNode,c)):x&&(_e(),C(x,1,1,()=>{x=null}),ge());const Te={};K&2&&(Te.data=I[1]),K&33554432&&(Te.$$scope={dirty:K,ctx:I}),d.$set(Te);const Le={};K&33554432&&(Le.$$scope={dirty:K,ctx:I}),m.$set(Le),I[2]?X?(X.p(I,K),K&4&&k(X,1)):(X=kr(I),X.c(),k(X,1),X.m(b.parentNode,b)):X&&(_e(),C(X,1,1,()=>{X=null}),ge());const ue={};K&4&&(ue.data=I[2]),K&1&&(ue.title="Sales by Month, "+I[0].category.label),p.$set(ue)},i(I){B||(k(a.$$.fragment,I),k(x),k(d.$$.fragment,I),k(m.$$.fragment,I),k(X),k(p.$$.fragment,I),B=!0)},o(I){C(a.$$.fragment,I),C(x),C(d.$$.fragment,I),C(m.$$.fragment,I),C(X),C(p.$$.fragment,I),B=!1},d(I){I&&(_(e),_(r),_(s),_(o),_(u),_(c),_(g),_(h),_(b),_(y),_(S),_(D),_(G),_(w),_(T),_(q),_(A)),re&&re.d(I),W.d(I),_(t),_(l),oe&&oe.d(I),_(i),le(a,I),x&&x.d(I),le(d,I),le(m,I),X&&X.d(I),le(p,I)}}}const Oe={title:"Welcome to Evidence's Hugging Face Demo"};function Rc(n,e,t){let l,i;Me(n,Ni,T=>t(9,l=T)),Me(n,$i,T=>t(17,i=T));let{data:r}=e,{data:s={},customFormattingSettings:f,__db:o,inputs:a}=r;Pt($i,i="6666cd76f96956469e7be39d750cc7d9",i);let u=bl(a);$t(Tr,u),ts(u.subscribe(T=>t(0,a=T))),$t(Bs,{getCustomFormats:()=>f.customFormats||[]});const c=(T,N)=>Ns(o.query,T,{query_name:N});ws(c);let d;const g=()=>{d||(d=setTimeout(()=>{en.add({id:"LoadingToast",title:"",message:"Loading...",status:"info"},0)},3e3))},m=()=>{d?(clearTimeout(d),d=null):en.dismiss("LoadingToast")};ht(()=>(mt.addEventListener("inFlightQueryStart",g),mt.addEventListener("inFlightQueryEnd",m),mt.QueriesLoading&&g(),()=>{mt.removeEventListener("inFlightQueryStart",g),mt.removeEventListener("inFlightQueryEnd",m)})),l.params,ht(()=>!0);let h={initialData:void 0,initialError:void 0},b=Vl`select | |
category | |
from needful_things.orders | |
group by category`,p=`select | |
category | |
from needful_things.orders | |
group by category`;s.categories&&(s.categories instanceof Error?h.initialError=s.categories:h.initialData=s.categories,s.categories__DESCRIBE&&(h.knownColumns=s.categories__DESCRIBE));let y;const S=mt.createReactive({callback:T=>{t(1,y=T)},execFn:c},{id:"categories",...h});S(p,{noResolve:b}),globalThis[Symbol.for("categories")]={get value(){return y}};let E={initialData:void 0,initialError:void 0},D=Vl`select | |
date_trunc('month', order_datetime) as month, | |
sum(sales) as sales_usd, | |
category | |
from needful_things.orders | |
where category like '${a.category.value}' | |
and date_part('year', order_datetime) like '${a.year.value}' | |
group by all | |
order by sales_usd desc`,G=`select | |
date_trunc('month', order_datetime) as month, | |
sum(sales) as sales_usd, | |
category | |
from needful_things.orders | |
where category like '${a.category.value}' | |
and date_part('year', order_datetime) like '${a.year.value}' | |
group by all | |
order by sales_usd desc`;s.orders_by_category&&(s.orders_by_category instanceof Error?E.initialError=s.orders_by_category:E.initialData=s.orders_by_category,s.orders_by_category__DESCRIBE&&(E.knownColumns=s.orders_by_category__DESCRIBE));let P;const w=mt.createReactive({callback:T=>{t(2,P=T)},execFn:c},{id:"orders_by_category",...E});return w(G,{noResolve:D}),globalThis[Symbol.for("orders_by_category")]={get value(){return P}},n.$$set=T=>{"data"in T&&t(3,r=T.data)},n.$$.update=()=>{n.$$.dirty&8&&t(4,{data:s={},customFormattingSettings:f,__db:o}=r,s),n.$$.dirty&16&&Ts.set(Object.keys(s).length>0),n.$$.dirty&512&&l.params,n.$$.dirty&96&&S(p,{noResolve:b}),n.$$.dirty&1&&t(7,D=Vl`select | |
date_trunc('month', order_datetime) as month, | |
sum(sales) as sales_usd, | |
category | |
from needful_things.orders | |
where category like '${a.category.value}' | |
and date_part('year', order_datetime) like '${a.year.value}' | |
group by all | |
order by sales_usd desc`),n.$$.dirty&1&&t(8,G=`select | |
date_trunc('month', order_datetime) as month, | |
sum(sales) as sales_usd, | |
category | |
from needful_things.orders | |
where category like '${a.category.value}' | |
and date_part('year', order_datetime) like '${a.year.value}' | |
group by all | |
order by sales_usd desc`),n.$$.dirty&384&&w(G,{noResolve:D})},t(5,b=Vl`select | |
category | |
from needful_things.orders | |
group by category`),t(6,p=`select | |
category | |
from needful_things.orders | |
group by category`),[a,y,P,r,s,b,p,D,G,l]}class ld extends ke{constructor(e){super(),pe(this,e,Rc,zc,be,{data:3})}}export{ld as component}; | |