nsthorat's picture
Push
7c35231
raw
history blame
No virus
57.8 kB
import{S as be,i as ge,s as pe,E as B,_ as H,$ as W,m as S,h as g,n as v,a0 as Re,b as A,J as T,O as _e,a1 as se,D as le,F as he,q as j,r as F,u as X,G as we,ao as Gt,e as ie,a as x,k as L,aq as jt,ap as Ft,c as $,l as R,I as re,H as m,K as J,L as ye,M as Te,N as Se,g as O,v as ce,d as z,f as de,P as Ze,ab as Mt,C as Dt,R as Ae,T as Qt,j as It,x as ze,y as ae,z as ve,A as oe,B as ue,Q as Ie,w as Ge,ai as Ut,p as Pe,ac as Yt,ad as Ht,W as Wt,aa as Kt,a6 as Ct,a8 as Ot,X as Jt,Y as Xt}from"./index.01827105.js";import{E as Zt,C as xt,f as $t,i as rt,h as el,g as tl,p as ll,j as il,r as N,O as q,e as te,k as Me,b as ee,T as rl,w as nl,A as sl,q as al,a as Pt,B as ol}from"./taskMonitoringStore.f29f8009.js";import{w as We}from"./index.2213faf5.js";function nt(l){let e,t;return{c(){e=H("title"),t=j(l[1])},l(i){e=W(i,"title",{});var r=S(e);t=F(r,l[1]),r.forEach(g)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&g(e)}}}function ul(l){let e,t,i,r,n=l[1]&&nt(l),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],o={};for(let a=0;a<s.length;a+=1)o=B(o,s[a]);return{c(){e=H("svg"),n&&n.c(),t=H("circle"),i=H("circle"),r=H("circle"),this.h()},l(a){e=W(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var u=S(e);n&&n.l(u),t=W(u,"circle",{cx:!0,cy:!0,r:!0}),S(t).forEach(g),i=W(u,"circle",{cx:!0,cy:!0,r:!0}),S(i).forEach(g),r=W(u,"circle",{cx:!0,cy:!0,r:!0}),S(r).forEach(g),u.forEach(g),this.h()},h(){v(t,"cx","16"),v(t,"cy","8"),v(t,"r","2"),v(i,"cx","16"),v(i,"cy","16"),v(i,"r","2"),v(r,"cx","16"),v(r,"cy","24"),v(r,"r","2"),Re(e,o)},m(a,u){A(a,e,u),n&&n.m(e,null),T(e,t),T(e,i),T(e,r)},p(a,[u]){a[1]?n?n.p(a,u):(n=nt(a),n.c(),n.m(e,t)):n&&(n.d(1),n=null),Re(e,o=_e(s,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},u&1&&{width:a[0]},u&1&&{height:a[0]},u&4&&a[2],u&8&&a[3]]))},i:se,o:se,d(a){a&&g(e),n&&n.d()}}}function fl(l,e,t){let i,r;const n=["size","title"];let s=le(e,n),{size:o=16}=e,{title:a=void 0}=e;return l.$$set=u=>{t(5,e=B(B({},e),he(u))),t(3,s=le(e,n)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||a),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=he(e),[o,a,r,s,i]}class cl extends be{constructor(e){super(),ge(this,e,fl,ul,pe,{size:0,title:1})}}const dl=cl;function st(l){let e,t;return{c(){e=H("title"),t=j(l[1])},l(i){e=W(i,"title",{});var r=S(e);t=F(r,l[1]),r.forEach(g)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&g(e)}}}function ml(l){let e,t,i,r,n=l[1]&&st(l),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],o={};for(let a=0;a<s.length;a+=1)o=B(o,s[a]);return{c(){e=H("svg"),n&&n.c(),t=H("circle"),i=H("circle"),r=H("circle"),this.h()},l(a){e=W(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var u=S(e);n&&n.l(u),t=W(u,"circle",{cx:!0,cy:!0,r:!0}),S(t).forEach(g),i=W(u,"circle",{cx:!0,cy:!0,r:!0}),S(i).forEach(g),r=W(u,"circle",{cx:!0,cy:!0,r:!0}),S(r).forEach(g),u.forEach(g),this.h()},h(){v(t,"cx","8"),v(t,"cy","16"),v(t,"r","2"),v(i,"cx","16"),v(i,"cy","16"),v(i,"r","2"),v(r,"cx","24"),v(r,"cy","16"),v(r,"r","2"),Re(e,o)},m(a,u){A(a,e,u),n&&n.m(e,null),T(e,t),T(e,i),T(e,r)},p(a,[u]){a[1]?n?n.p(a,u):(n=st(a),n.c(),n.m(e,t)):n&&(n.d(1),n=null),Re(e,o=_e(s,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},u&1&&{width:a[0]},u&1&&{height:a[0]},u&4&&a[2],u&8&&a[3]]))},i:se,o:se,d(a){a&&g(e),n&&n.d()}}}function hl(l,e,t){let i,r;const n=["size","title"];let s=le(e,n),{size:o=16}=e,{title:a=void 0}=e;return l.$$set=u=>{t(5,e=B(B({},e),he(u))),t(3,s=le(e,n)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||a),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=he(e),[o,a,r,s,i]}class _l extends be{constructor(e){super(),ge(this,e,hl,ml,pe,{size:0,title:1})}}const bl=_l,gl=l=>({}),at=l=>({});function pl(l){let e,t,i;var r=l[1];function n(s){return{props:{"aria-label":s[10],title:s[10],class:"bx--overflow-menu__icon "+s[9]}}}return r&&(e=ze(r,n(l))),{c(){e&&ae(e.$$.fragment),t=ie()},l(s){e&&ve(e.$$.fragment,s),t=ie()},m(s,o){e&&oe(e,s,o),A(s,t,o),i=!0},p(s,o){const a={};if(o[0]&1024&&(a["aria-label"]=s[10]),o[0]&1024&&(a.title=s[10]),o[0]&512&&(a.class="bx--overflow-menu__icon "+s[9]),o[0]&2&&r!==(r=s[1])){if(e){ce();const u=e;z(u.$$.fragment,1,0,()=>{ue(u,1)}),de()}r?(e=ze(r,n(s)),ae(e.$$.fragment),O(e.$$.fragment,1),oe(e,t.parentNode,t)):e=null}else r&&e.$set(a)},i(s){i||(e&&O(e.$$.fragment,s),i=!0)},o(s){e&&z(e.$$.fragment,s),i=!1},d(s){s&&g(t),e&&ue(e,s)}}}function ot(l){let e,t;const i=l[24].default,r=we(i,l,l[23],null);return{c(){e=L("ul"),r&&r.c(),this.h()},l(n){e=R(n,"UL",{role:!0,tabindex:!0,"aria-label":!0,"data-floating-menu-direction":!0,class:!0});var s=S(e);r&&r.l(s),s.forEach(g),this.h()},h(){v(e,"role","menu"),v(e,"tabindex","-1"),v(e,"aria-label",l[13]),v(e,"data-floating-menu-direction",l[5]),v(e,"class",l[8]),m(e,"bx--overflow-menu-options",!0),m(e,"bx--overflow-menu--flip",l[7]),m(e,"bx--overflow-menu-options--open",l[0]),m(e,"bx--overflow-menu-options--light",l[6]),m(e,"bx--overflow-menu-options--sm",l[4]==="sm"),m(e,"bx--overflow-menu-options--xl",l[4]==="xl"),m(e,"bx--breadcrumb-menu-options",!!l[14])},m(n,s){A(n,e,s),r&&r.m(e,null),l[31](e),t=!0},p(n,s){r&&r.p&&(!t||s[0]&8388608)&&ye(r,i,n,n[23],t?Se(i,n[23],s,null):Te(n[23]),null),(!t||s[0]&8192)&&v(e,"aria-label",n[13]),(!t||s[0]&32)&&v(e,"data-floating-menu-direction",n[5]),(!t||s[0]&256)&&v(e,"class",n[8]),(!t||s[0]&256)&&m(e,"bx--overflow-menu-options",!0),(!t||s[0]&384)&&m(e,"bx--overflow-menu--flip",n[7]),(!t||s[0]&257)&&m(e,"bx--overflow-menu-options--open",n[0]),(!t||s[0]&320)&&m(e,"bx--overflow-menu-options--light",n[6]),(!t||s[0]&272)&&m(e,"bx--overflow-menu-options--sm",n[4]==="sm"),(!t||s[0]&272)&&m(e,"bx--overflow-menu-options--xl",n[4]==="xl"),(!t||s[0]&16640)&&m(e,"bx--breadcrumb-menu-options",!!n[14])},i(n){t||(O(r,n),t=!0)},o(n){z(r,n),t=!1},d(n){n&&g(e),r&&r.d(n),l[31](null)}}}function vl(l){let e,t,i,r,n,s,o,a;const u=l[24].menu,c=we(u,l,l[23],at),f=c||pl(l);let h=l[0]&&ot(l),d=[{type:"button"},{"aria-haspopup":""},{"aria-expanded":l[0]},{"aria-label":l[13]},{id:l[11]},l[19]],b={};for(let _=0;_<d.length;_+=1)b=B(b,d[_]);return{c(){e=new Gt(!1),t=ie(),i=x(),r=L("button"),f&&f.c(),n=x(),h&&h.c(),this.h()},l(_){const k=jt("svelte-7ztmff",document.head);e=Ft(k,!1),t=ie(),k.forEach(g),i=$(_),r=R(_,"BUTTON",{type:!0,"aria-haspopup":!0,"aria-expanded":!0,"aria-label":!0,id:!0});var w=S(r);f&&f.l(w),n=$(w),h&&h.l(w),w.forEach(g),this.h()},h(){e.a=t,re(r,b),m(r,"bx--overflow-menu",!0),m(r,"bx--overflow-menu--open",l[0]),m(r,"bx--overflow-menu--light",l[6]),m(r,"bx--overflow-menu--sm",l[4]==="sm"),m(r,"bx--overflow-menu--xl",l[4]==="xl")},m(_,k){e.m(l[12],document.head),T(document.head,t),A(_,i,k),A(_,r,k),f&&f.m(r,null),T(r,n),h&&h.m(r,null),r.autofocus&&r.focus(),l[32](r),s=!0,o||(a=[J(window,"click",l[30]),J(r,"click",l[25]),J(r,"click",l[33]),J(r,"mouseover",l[26]),J(r,"mouseenter",l[27]),J(r,"mouseleave",l[28]),J(r,"keydown",l[29]),J(r,"keydown",l[34]),J(r,"focusout",l[35])],o=!0)},p(_,k){(!s||k[0]&4096)&&e.p(_[12]),c?c.p&&(!s||k[0]&8388608)&&ye(c,u,_,_[23],s?Se(u,_[23],k,gl):Te(_[23]),at):f&&f.p&&(!s||k[0]&1538)&&f.p(_,s?k:[-1,-1]),_[0]?h?(h.p(_,k),k[0]&1&&O(h,1)):(h=ot(_),h.c(),O(h,1),h.m(r,null)):h&&(ce(),z(h,1,1,()=>{h=null}),de()),re(r,b=_e(d,[{type:"button"},{"aria-haspopup":""},(!s||k[0]&1)&&{"aria-expanded":_[0]},(!s||k[0]&8192)&&{"aria-label":_[13]},(!s||k[0]&2048)&&{id:_[11]},k[0]&524288&&_[19]])),m(r,"bx--overflow-menu",!0),m(r,"bx--overflow-menu--open",_[0]),m(r,"bx--overflow-menu--light",_[6]),m(r,"bx--overflow-menu--sm",_[4]==="sm"),m(r,"bx--overflow-menu--xl",_[4]==="xl")},i(_){s||(O(f,_),O(h),s=!0)},o(_){z(f,_),z(h),s=!1},d(_){g(t),_&&e.d(),_&&g(i),_&&g(r),f&&f.d(_),h&&h.d(),l[32](null),o=!1,Ze(a)}}}function kl(l,e,t){let i,r;const n=["size","direction","open","light","flipped","menuOptionsClass","icon","iconClass","iconDescription","id","buttonRef","menuRef"];let s=le(e,n),o,a,u,{$$slots:c={},$$scope:f}=e,{size:h=void 0}=e,{direction:d="bottom"}=e,{open:b=!1}=e,{light:_=!1}=e,{flipped:k=!1}=e,{menuOptionsClass:w=void 0}=e,{icon:p=dl}=e,{iconClass:M=void 0}=e,{iconDescription:D="Open and close list of options"}=e,{id:E="ccs-"+Math.random().toString(36)}=e,{buttonRef:P=null}=e,{menuRef:V=null}=e;const me=Mt("BreadcrumbItem"),U=Dt(),G=We([]);Ae(l,G,y=>t(22,a=y));const ke=We(void 0);Ae(l,ke,y=>t(37,u=y));const Z=We(void 0),Ee=We(-1);Ae(l,Ee,y=>t(21,o=y));let C,Q=!0;Qt("OverflowMenu",{focusedId:Z,add:({id:y,text:Y,primaryFocus:Ve,disabled:Bt})=>{G.update(xe=>(Ve&&Ee.set(xe.length),[...xe,{id:y,text:Y,primaryFocus:Ve,disabled:Bt,index:xe.length}]))},update:y=>{ke.set(y)},change:y=>{let Y=o+y;Y<0?Y=a.length-1:Y>=a.length&&(Y=0);let Ve=a[Y].disabled;for(;Ve;)Y=Y+y,Y<0?Y=a.length-1:Y>=a.length&&(Y=0),Ve=a[Y].disabled;Ee.set(Y)}}),It(()=>{if(u){const{index:y,text:Y}=a.filter(Ve=>Ve.id===u)[0];U("close",{index:y,text:Y}),t(0,b=!1)}if(b){const{width:y,height:Y}=P.getBoundingClientRect();t(20,C=y),!Q&&o<0&&V.focus(),k&&(t(3,V.style.left="auto",V),t(3,V.style.right=0,V)),d==="top"?(t(3,V.style.top="auto",V),t(3,V.style.bottom=Y+"px",V)):d==="bottom"&&t(3,V.style.top=Y+"px",V),me&&(t(3,V.style.top=Y+10+"px",V),t(3,V.style.left="-11px",V))}b||(G.set([]),ke.set(void 0),Ee.set(0)),Q=!1});function fe(y){Ie.call(this,l,y)}function I(y){Ie.call(this,l,y)}function Be(y){Ie.call(this,l,y)}function Qe(y){Ie.call(this,l,y)}function Ue(y){Ie.call(this,l,y)}const Ye=({target:y})=>{P&&P.contains(y)||V&&!V.contains(y)&&t(0,b=!1)};function Oe(y){Ge[y?"unshift":"push"](()=>{V=y,t(3,V)})}function He(y){Ge[y?"unshift":"push"](()=>{P=y,t(2,P)})}const zt=({target:y})=>{V&&V.contains(y)||(t(0,b=!b),b||U("close"))},Nt=y=>{b&&(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp"].includes(y.key)?y.preventDefault():y.key==="Escape"&&(y.stopPropagation(),U("close"),t(0,b=!1),P.focus()))},qt=y=>{b&&(P.contains(y.relatedTarget)||(U("close"),t(0,b=!1)))};return l.$$set=y=>{t(39,e=B(B({},e),he(y))),t(19,s=le(e,n)),"size"in y&&t(4,h=y.size),"direction"in y&&t(5,d=y.direction),"open"in y&&t(0,b=y.open),"light"in y&&t(6,_=y.light),"flipped"in y&&t(7,k=y.flipped),"menuOptionsClass"in y&&t(8,w=y.menuOptionsClass),"icon"in y&&t(1,p=y.icon),"iconClass"in y&&t(9,M=y.iconClass),"iconDescription"in y&&t(10,D=y.iconDescription),"id"in y&&t(11,E=y.id),"buttonRef"in y&&t(2,P=y.buttonRef),"menuRef"in y&&t(3,V=y.menuRef),"$$scope"in y&&t(23,f=y.$$scope)},l.$$.update=()=>{t(13,i=e["aria-label"]||"menu"),l.$$.dirty[0]&6291456&&a[o]&&Z.set(a[o].id),l.$$.dirty[0]&1050624&&t(12,r=`<style>
#${E} .bx--overflow-menu-options.bx--overflow-menu-options:after {
width: ${C?C+"px":"2rem"};
}
</style>`)},me&&t(1,p=bl),e=he(e),[b,p,P,V,h,d,_,k,w,M,D,E,r,i,me,U,G,ke,Ee,s,C,o,a,f,c,fe,I,Be,Qe,Ue,Ye,Oe,He,zt,Nt,qt]}class El extends be{constructor(e){super(),ge(this,e,kl,vl,pe,{size:4,direction:5,open:0,light:6,flipped:7,menuOptionsClass:8,icon:1,iconClass:9,iconDescription:10,id:11,buttonRef:2,menuRef:3},null,[-1,-1])}}const wl=El;function yl(l){let e,t,i,r;const n=l[16].default,s=we(n,l,l[15],null),o=s||Sl(l);let a=[l[7]],u={};for(let c=0;c<a.length;c+=1)u=B(u,a[c]);return{c(){e=L("button"),o&&o.c(),this.h()},l(c){e=R(c,"BUTTON",{});var f=S(e);o&&o.l(f),f.forEach(g),this.h()},h(){re(e,u)},m(c,f){A(c,e,f),o&&o.m(e,null),e.autofocus&&e.focus(),l[24](e),t=!0,i||(r=[J(e,"click",l[19]),J(e,"click",l[25]),J(e,"keydown",l[20]),J(e,"keydown",l[26])],i=!0)},p(c,f){s?s.p&&(!t||f&32768)&&ye(s,n,c,c[15],t?Se(n,c[15],f,null):Te(c[15]),null):o&&o.p&&(!t||f&2)&&o.p(c,t?f:-1),re(e,u=_e(a,[f&128&&c[7]]))},i(c){t||(O(o,c),t=!0)},o(c){z(o,c),t=!1},d(c){c&&g(e),o&&o.d(c),l[24](null),i=!1,Ze(r)}}}function Tl(l){let e,t,i,r;const n=l[16].default,s=we(n,l,l[15],null),o=s||Ml(l);let a=[l[7]],u={};for(let c=0;c<a.length;c+=1)u=B(u,a[c]);return{c(){e=L("a"),o&&o.c(),this.h()},l(c){e=R(c,"A",{});var f=S(e);o&&o.l(f),f.forEach(g),this.h()},h(){re(e,u)},m(c,f){A(c,e,f),o&&o.m(e,null),l[21](e),t=!0,i||(r=[J(e,"click",l[17]),J(e,"click",l[22]),J(e,"keydown",l[18]),J(e,"keydown",l[23])],i=!0)},p(c,f){s?s.p&&(!t||f&32768)&&ye(s,n,c,c[15],t?Se(n,c[15],f,null):Te(c[15]),null):o&&o.p&&(!t||f&2)&&o.p(c,t?f:-1),re(e,u=_e(a,[f&128&&c[7]]))},i(c){t||(O(o,c),t=!0)},o(c){z(o,c),t=!1},d(c){c&&g(e),o&&o.d(c),l[21](null),i=!1,Ze(r)}}}function Sl(l){let e,t;return{c(){e=L("div"),t=j(l[1]),this.h()},l(i){e=R(i,"DIV",{});var r=S(e);t=F(r,l[1]),r.forEach(g),this.h()},h(){m(e,"bx--overflow-menu-options__option-content",!0)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&g(e)}}}function Ml(l){let e,t;return{c(){e=L("div"),t=j(l[1]),this.h()},l(i){e=R(i,"DIV",{});var r=S(e);t=F(r,l[1]),r.forEach(g),this.h()},h(){m(e,"bx--overflow-menu-options__option-content",!0)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&g(e)}}}function Dl(l){let e,t,i,r;const n=[Tl,yl],s=[];function o(c,f){return c[2]?0:1}t=o(l),i=s[t]=n[t](l);let a=[{role:"none"},{id:l[6]},l[11]],u={};for(let c=0;c<a.length;c+=1)u=B(u,a[c]);return{c(){e=L("li"),i.c(),this.h()},l(c){e=R(c,"LI",{role:!0,id:!0});var f=S(e);i.l(f),f.forEach(g),this.h()},h(){re(e,u),m(e,"bx--overflow-menu-options__option",!0),m(e,"bx--overflow-menu--divider",l[4]),m(e,"bx--overflow-menu-options__option--danger",l[5]),m(e,"bx--overflow-menu-options__option--disabled",l[3])},m(c,f){A(c,e,f),s[t].m(e,null),r=!0},p(c,[f]){let h=t;t=o(c),t===h?s[t].p(c,f):(ce(),z(s[h],1,1,()=>{s[h]=null}),de(),i=s[t],i?i.p(c,f):(i=s[t]=n[t](c),i.c()),O(i,1),i.m(e,null)),re(e,u=_e(a,[{role:"none"},(!r||f&64)&&{id:c[6]},f&2048&&c[11]])),m(e,"bx--overflow-menu-options__option",!0),m(e,"bx--overflow-menu--divider",c[4]),m(e,"bx--overflow-menu-options__option--danger",c[5]),m(e,"bx--overflow-menu-options__option--disabled",c[3])},i(c){r||(O(i),r=!0)},o(c){z(i),r=!1},d(c){c&&g(e),s[t].d()}}}function Il(l,e,t){let i;const r=["text","href","primaryFocus","disabled","hasDivider","danger","requireTitle","id","ref"];let n=le(e,r),s,{$$slots:o={},$$scope:a}=e;const u=Ut(o);let{text:c="Provide text"}=e,{href:f=""}=e,{primaryFocus:h=!1}=e,{disabled:d=!1}=e,{hasDivider:b=!1}=e,{danger:_=!1}=e,{requireTitle:k=!0}=e,{id:w="ccs-"+Math.random().toString(36)}=e,{ref:p=null}=e;const{focusedId:M,add:D,update:E,change:P}=Mt("OverflowMenu");Ae(l,M,I=>t(14,s=I)),D({id:w,text:c,primaryFocus:h,disabled:d}),It(()=>{p&&h&&p.focus()});function V(I){Ie.call(this,l,I)}function me(I){Ie.call(this,l,I)}function U(I){Ie.call(this,l,I)}function G(I){Ie.call(this,l,I)}function ke(I){Ge[I?"unshift":"push"](()=>{p=I,t(0,p)})}const Z=()=>{E(w)},Ee=({key:I})=>{I==="ArrowDown"?P(1):I==="ArrowUp"&&P(-1)};function C(I){Ge[I?"unshift":"push"](()=>{p=I,t(0,p)})}const Q=()=>{E(w)},fe=({key:I})=>{I==="ArrowDown"?P(1):I==="ArrowUp"&&P(-1)};return l.$$set=I=>{e=B(B({},e),he(I)),t(11,n=le(e,r)),"text"in I&&t(1,c=I.text),"href"in I&&t(2,f=I.href),"primaryFocus"in I&&t(12,h=I.primaryFocus),"disabled"in I&&t(3,d=I.disabled),"hasDivider"in I&&t(4,b=I.hasDivider),"danger"in I&&t(5,_=I.danger),"requireTitle"in I&&t(13,k=I.requireTitle),"id"in I&&t(6,w=I.id),"ref"in I&&t(0,p=I.ref),"$$scope"in I&&t(15,a=I.$$scope)},l.$$.update=()=>{l.$$.dirty&16448&&t(12,h=s===w),l.$$.dirty&8206&&t(7,i={role:"menuitem",tabindex:"-1",class:"bx--overflow-menu-options__btn",disabled:f?void 0:d,href:f||void 0,title:k?u.default?void 0:c:void 0})},[p,c,f,d,b,_,w,i,M,E,P,n,h,k,s,a,o,V,me,U,G,ke,Z,Ee,C,Q,fe]}class Cl extends be{constructor(e){super(),ge(this,e,Il,Dl,pe,{text:1,href:2,primaryFocus:12,disabled:3,hasDivider:4,danger:5,requireTitle:13,id:6,ref:0})}}const Ol=Cl;function Pl(l){let e,t,i,r,n,s,o,a,u,c=l[0]&&ut(l),f=[{"aria-atomic":"true"},{"aria-labelledby":l[4]},{"aria-live":u=l[1]?"assertive":"off"},l[6]],h={};for(let d=0;d<f.length;d+=1)h=B(h,f[d]);return{c(){e=L("div"),t=L("label"),i=j(l[3]),r=x(),n=H("svg"),s=H("title"),o=j(l[3]),c&&c.c(),a=H("circle"),this.h()},l(d){e=R(d,"DIV",{"aria-atomic":!0,"aria-labelledby":!0,"aria-live":!0});var b=S(e);t=R(b,"LABEL",{id:!0});var _=S(t);i=F(_,l[3]),_.forEach(g),r=$(b),n=W(b,"svg",{viewBox:!0});var k=S(n);s=W(k,"title",{});var w=S(s);o=F(w,l[3]),w.forEach(g),c&&c.l(k),a=W(k,"circle",{cx:!0,cy:!0,r:!0}),S(a).forEach(g),k.forEach(g),b.forEach(g),this.h()},h(){v(t,"id",l[4]),m(t,"bx--visually-hidden",!0),v(a,"cx","50%"),v(a,"cy","50%"),v(a,"r",l[5]),m(a,"bx--loading__stroke",!0),v(n,"viewBox","0 0 100 100"),m(n,"bx--loading__svg",!0),re(e,h),m(e,"bx--loading",!0),m(e,"bx--loading--small",l[0]),m(e,"bx--loading--stop",!l[1])},m(d,b){A(d,e,b),T(e,t),T(t,i),T(e,r),T(e,n),T(n,s),T(s,o),c&&c.m(n,null),T(n,a)},p(d,b){b&8&&X(i,d[3]),b&16&&v(t,"id",d[4]),b&8&&X(o,d[3]),d[0]?c?c.p(d,b):(c=ut(d),c.c(),c.m(n,a)):c&&(c.d(1),c=null),b&32&&v(a,"r",d[5]),re(e,h=_e(f,[{"aria-atomic":"true"},b&16&&{"aria-labelledby":d[4]},b&2&&u!==(u=d[1]?"assertive":"off")&&{"aria-live":u},b&64&&d[6]])),m(e,"bx--loading",!0),m(e,"bx--loading--small",d[0]),m(e,"bx--loading--stop",!d[1])},d(d){d&&g(e),c&&c.d()}}}function Al(l){let e,t,i,r,n,s,o,a,u,c,f=l[0]&&ft(l),h=[l[6]],d={};for(let b=0;b<h.length;b+=1)d=B(d,h[b]);return{c(){e=L("div"),t=L("div"),i=L("label"),r=j(l[3]),n=x(),s=H("svg"),o=H("title"),a=j(l[3]),f&&f.c(),u=H("circle"),this.h()},l(b){e=R(b,"DIV",{});var _=S(e);t=R(_,"DIV",{"aria-atomic":!0,"aria-labelledby":!0,"aria-live":!0});var k=S(t);i=R(k,"LABEL",{id:!0});var w=S(i);r=F(w,l[3]),w.forEach(g),n=$(k),s=W(k,"svg",{viewBox:!0});var p=S(s);o=W(p,"title",{});var M=S(o);a=F(M,l[3]),M.forEach(g),f&&f.l(p),u=W(p,"circle",{cx:!0,cy:!0,r:!0}),S(u).forEach(g),p.forEach(g),k.forEach(g),_.forEach(g),this.h()},h(){v(i,"id",l[4]),m(i,"bx--visually-hidden",!0),v(u,"cx","50%"),v(u,"cy","50%"),v(u,"r",l[5]),m(u,"bx--loading__stroke",!0),v(s,"viewBox","0 0 100 100"),m(s,"bx--loading__svg",!0),v(t,"aria-atomic","true"),v(t,"aria-labelledby",l[4]),v(t,"aria-live",c=l[1]?"assertive":"off"),m(t,"bx--loading",!0),m(t,"bx--loading--small",l[0]),m(t,"bx--loading--stop",!l[1]),re(e,d),m(e,"bx--loading-overlay",!0),m(e,"bx--loading-overlay--stop",!l[1])},m(b,_){A(b,e,_),T(e,t),T(t,i),T(i,r),T(t,n),T(t,s),T(s,o),T(o,a),f&&f.m(s,null),T(s,u)},p(b,_){_&8&&X(r,b[3]),_&16&&v(i,"id",b[4]),_&8&&X(a,b[3]),b[0]?f?f.p(b,_):(f=ft(b),f.c(),f.m(s,u)):f&&(f.d(1),f=null),_&32&&v(u,"r",b[5]),_&16&&v(t,"aria-labelledby",b[4]),_&2&&c!==(c=b[1]?"assertive":"off")&&v(t,"aria-live",c),_&1&&m(t,"bx--loading--small",b[0]),_&2&&m(t,"bx--loading--stop",!b[1]),re(e,d=_e(h,[_&64&&b[6]])),m(e,"bx--loading-overlay",!0),m(e,"bx--loading-overlay--stop",!b[1])},d(b){b&&g(e),f&&f.d()}}}function ut(l){let e;return{c(){e=H("circle"),this.h()},l(t){e=W(t,"circle",{cx:!0,cy:!0,r:!0}),S(e).forEach(g),this.h()},h(){v(e,"cx","50%"),v(e,"cy","50%"),v(e,"r",l[5]),m(e,"bx--loading__background",!0)},m(t,i){A(t,e,i)},p(t,i){i&32&&v(e,"r",t[5])},d(t){t&&g(e)}}}function ft(l){let e;return{c(){e=H("circle"),this.h()},l(t){e=W(t,"circle",{cx:!0,cy:!0,r:!0}),S(e).forEach(g),this.h()},h(){v(e,"cx","50%"),v(e,"cy","50%"),v(e,"r",l[5]),m(e,"bx--loading__background",!0)},m(t,i){A(t,e,i)},p(t,i){i&32&&v(e,"r",t[5])},d(t){t&&g(e)}}}function Vl(l){let e;function t(n,s){return n[2]?Al:Pl}let i=t(l),r=i(l);return{c(){r.c(),e=ie()},l(n){r.l(n),e=ie()},m(n,s){r.m(n,s),A(n,e,s)},p(n,[s]){i===(i=t(n))&&r?r.p(n,s):(r.d(1),r=i(n),r&&(r.c(),r.m(e.parentNode,e)))},i:se,o:se,d(n){r.d(n),n&&g(e)}}}function Ll(l,e,t){let i;const r=["small","active","withOverlay","description","id"];let n=le(e,r),{small:s=!1}=e,{active:o=!0}=e,{withOverlay:a=!0}=e,{description:u="Active loading indicator"}=e,{id:c="ccs-"+Math.random().toString(36)}=e;return l.$$set=f=>{e=B(B({},e),he(f)),t(6,n=le(e,r)),"small"in f&&t(0,s=f.small),"active"in f&&t(1,o=f.active),"withOverlay"in f&&t(2,a=f.withOverlay),"description"in f&&t(3,u=f.description),"id"in f&&t(4,c=f.id)},l.$$.update=()=>{l.$$.dirty&1&&t(5,i=s?"42":"44")},[s,o,a,u,c,i,n]}class Rl extends be{constructor(e){super(),ge(this,e,Ll,Vl,pe,{small:0,active:1,withOverlay:2,description:3,id:4})}}const zl=Rl;function Nl(l){let e,t,i,r,n,s;const o=l[11].default,a=we(o,l,l[10],null);let u=[l[9],{style:i=l[9].style+"; "+(l[6]&&"position: relative")}],c={};for(let f=0;f<u.length;f+=1)c=B(c,u[f]);return{c(){e=L("div"),t=L("div"),a&&a.c(),this.h()},l(f){e=R(f,"DIV",{style:!0});var h=S(e);t=R(h,"DIV",{});var d=S(t);a&&a.l(d),d.forEach(g),h.forEach(g),this.h()},h(){m(t,"bx--popover-contents",!0),re(e,c),m(e,"bx--popover",!0),m(e,"bx--popover--caret",l[2]),m(e,"bx--popover--light",l[4]),m(e,"bx--popover--high-contrast",l[5]),m(e,"bx--popover--top",l[3]==="top"),m(e,"bx--popover--top-left",l[3]==="top-left"),m(e,"bx--popover--top-right",l[3]==="top-right"),m(e,"bx--popover--bottom",l[3]==="bottom"),m(e,"bx--popover--bottom-left",l[3]==="bottom-left"),m(e,"bx--popover--bottom-right",l[3]==="bottom-right"),m(e,"bx--popover--left",l[3]==="left"),m(e,"bx--popover--left-bottom",l[3]==="left-bottom"),m(e,"bx--popover--left-top",l[3]==="left-top"),m(e,"bx--popover--right",l[3]==="right"),m(e,"bx--popover--right-bottom",l[3]==="right-bottom"),m(e,"bx--popover--right-top",l[3]==="right-top"),m(e,"bx--popover--open",l[0]),m(e,"bx--popover--relative",l[6])},m(f,h){A(f,e,h),T(e,t),a&&a.m(t,null),l[13](e),r=!0,n||(s=J(window,"click",l[12]),n=!0)},p(f,[h]){a&&a.p&&(!r||h&1024)&&ye(a,o,f,f[10],r?Se(o,f[10],h,null):Te(f[10]),null),re(e,c=_e(u,[h&512&&f[9],(!r||h&576&&i!==(i=f[9].style+"; "+(f[6]&&"position: relative")))&&{style:i}])),m(e,"bx--popover",!0),m(e,"bx--popover--caret",f[2]),m(e,"bx--popover--light",f[4]),m(e,"bx--popover--high-contrast",f[5]),m(e,"bx--popover--top",f[3]==="top"),m(e,"bx--popover--top-left",f[3]==="top-left"),m(e,"bx--popover--top-right",f[3]==="top-right"),m(e,"bx--popover--bottom",f[3]==="bottom"),m(e,"bx--popover--bottom-left",f[3]==="bottom-left"),m(e,"bx--popover--bottom-right",f[3]==="bottom-right"),m(e,"bx--popover--left",f[3]==="left"),m(e,"bx--popover--left-bottom",f[3]==="left-bottom"),m(e,"bx--popover--left-top",f[3]==="left-top"),m(e,"bx--popover--right",f[3]==="right"),m(e,"bx--popover--right-bottom",f[3]==="right-bottom"),m(e,"bx--popover--right-top",f[3]==="right-top"),m(e,"bx--popover--open",f[0]),m(e,"bx--popover--relative",f[6])},i(f){r||(O(a,f),r=!0)},o(f){z(a,f),r=!1},d(f){f&&g(e),a&&a.d(f),l[13](null),n=!1,s()}}}function ql(l,e,t){const i=["open","closeOnOutsideClick","caret","align","light","highContrast","relative"];let r=le(e,i),{$$slots:n={},$$scope:s}=e,{open:o=!1}=e,{closeOnOutsideClick:a=!1}=e,{caret:u=!1}=e,{align:c="top"}=e,{light:f=!1}=e,{highContrast:h=!1}=e,{relative:d=!1}=e;const b=Dt();let _=null;const k=p=>{o&&(_.contains(p.target)||(b("click:outside",{target:p.target}),a&&t(0,o=!1)))};function w(p){Ge[p?"unshift":"push"](()=>{_=p,t(7,_)})}return l.$$set=p=>{e=B(B({},e),he(p)),t(9,r=le(e,i)),"open"in p&&t(0,o=p.open),"closeOnOutsideClick"in p&&t(1,a=p.closeOnOutsideClick),"caret"in p&&t(2,u=p.caret),"align"in p&&t(3,c=p.align),"light"in p&&t(4,f=p.light),"highContrast"in p&&t(5,h=p.highContrast),"relative"in p&&t(6,d=p.relative),"$$scope"in p&&t(10,s=p.$$scope)},[o,a,u,c,f,h,d,_,b,r,s,n,k,w]}class Bl extends be{constructor(e){super(),ge(this,e,ql,Nl,pe,{open:0,closeOnOutsideClick:1,caret:2,align:3,light:4,highContrast:5,relative:6})}}const Gl=Bl,jl=l=>({}),ct=l=>({});function Fl(l){let e;return{c(){e=j(l[4])},l(t){e=F(t,l[4])},m(t,i){A(t,e,i)},p(t,i){i&16&&X(e,t[4])},d(t){t&&g(e)}}}function dt(l){let e,t,i;var r=l[10][l[2]];function n(s){return{props:{class:"bx--progress-bar__status-icon"}}}return r&&(e=ze(r,n())),{c(){e&&ae(e.$$.fragment),t=ie()},l(s){e&&ve(e.$$.fragment,s),t=ie()},m(s,o){e&&oe(e,s,o),A(s,t,o),i=!0},p(s,o){if(o&4&&r!==(r=s[10][s[2]])){if(e){ce();const a=e;z(a.$$.fragment,1,0,()=>{ue(a,1)}),de()}r?(e=ze(r,n()),ae(e.$$.fragment),O(e.$$.fragment,1),oe(e,t.parentNode,t)):e=null}},i(s){i||(e&&O(e.$$.fragment,s),i=!0)},o(s){e&&z(e.$$.fragment,s),i=!1},d(s){s&&g(t),e&&ue(e,s)}}}function mt(l){let e,t;return{c(){e=L("div"),t=j(l[6]),this.h()},l(i){e=R(i,"DIV",{id:!0});var r=S(e);t=F(r,l[6]),r.forEach(g),this.h()},h(){v(e,"id",l[11]),m(e,"bx--progress-bar__helper-text",!0)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&64&&X(t,i[6])},d(i){i&&g(e)}}}function Ql(l){let e,t,i,r,n,s,o,a,u,c,f,h,d;const b=l[15].labelText,_=we(b,l,l[14],ct),k=_||Fl(l);let w=(l[2]==="error"||l[2]==="finished")&&dt(l),p=l[6]&&mt(l),M=[l[12]],D={};for(let E=0;E<M.length;E+=1)D=B(D,M[E]);return{c(){e=L("div"),t=L("label"),k&&k.c(),i=x(),w&&w.c(),r=x(),n=L("div"),s=L("div"),h=x(),p&&p.c(),this.h()},l(E){e=R(E,"DIV",{});var P=S(e);t=R(P,"LABEL",{for:!0});var V=S(t);k&&k.l(V),i=$(V),w&&w.l(V),V.forEach(g),r=$(P),n=R(P,"DIV",{role:!0,id:!0,"aria-busy":!0,"aria-valuemin":!0,"aria-valuemax":!0,"aria-valuenow":!0,"aria-describedby":!0});var me=S(n);s=R(me,"DIV",{}),S(s).forEach(g),me.forEach(g),h=$(P),p&&p.l(P),P.forEach(g),this.h()},h(){v(t,"for",l[7]),m(t,"bx--progress-bar__label",!0),m(t,"bx--visually-hidden",l[5]),m(s,"bx--progress-bar__bar",!0),Pe(s,"transform",l[2]==="active"&&`scaleX(${l[8]/l[0]})`),v(n,"role","progressbar"),v(n,"id",l[7]),v(n,"aria-busy",o=l[2]==="active"),v(n,"aria-valuemin",a=l[9]?void 0:0),v(n,"aria-valuemax",u=l[9]?void 0:l[0]),v(n,"aria-valuenow",c=l[9]?void 0:l[8]),v(n,"aria-describedby",f=l[6]?l[11]:null),m(n,"bx--progress-bar__track",!0),re(e,D),m(e,"bx--progress-bar",!0),m(e,"bx--progress-bar--indeterminate",l[9]),m(e,"bx--progress-bar--big",l[3]==="md"),m(e,"bx--progress-bar--small",l[3]==="sm"),m(e,"bx--progress-bar--inline",l[1]==="inline"),m(e,"bx--progress-bar--indented",l[1]==="indented"),m(e,"bx--progress-bar--error",l[2]==="error"),m(e,"bx--progress-bar--finished",l[2]==="finished")},m(E,P){A(E,e,P),T(e,t),k&&k.m(t,null),T(t,i),w&&w.m(t,null),T(e,r),T(e,n),T(n,s),T(e,h),p&&p.m(e,null),d=!0},p(E,[P]){_?_.p&&(!d||P&16384)&&ye(_,b,E,E[14],d?Se(b,E[14],P,jl):Te(E[14]),ct):k&&k.p&&(!d||P&16)&&k.p(E,d?P:-1),E[2]==="error"||E[2]==="finished"?w?(w.p(E,P),P&4&&O(w,1)):(w=dt(E),w.c(),O(w,1),w.m(t,null)):w&&(ce(),z(w,1,1,()=>{w=null}),de()),(!d||P&128)&&v(t,"for",E[7]),(!d||P&32)&&m(t,"bx--visually-hidden",E[5]),P&261&&Pe(s,"transform",E[2]==="active"&&`scaleX(${E[8]/E[0]})`),(!d||P&128)&&v(n,"id",E[7]),(!d||P&4&&o!==(o=E[2]==="active"))&&v(n,"aria-busy",o),(!d||P&512&&a!==(a=E[9]?void 0:0))&&v(n,"aria-valuemin",a),(!d||P&513&&u!==(u=E[9]?void 0:E[0]))&&v(n,"aria-valuemax",u),(!d||P&768&&c!==(c=E[9]?void 0:E[8]))&&v(n,"aria-valuenow",c),(!d||P&64&&f!==(f=E[6]?E[11]:null))&&v(n,"aria-describedby",f),E[6]?p?p.p(E,P):(p=mt(E),p.c(),p.m(e,null)):p&&(p.d(1),p=null),re(e,D=_e(M,[P&4096&&E[12]])),m(e,"bx--progress-bar",!0),m(e,"bx--progress-bar--indeterminate",E[9]),m(e,"bx--progress-bar--big",E[3]==="md"),m(e,"bx--progress-bar--small",E[3]==="sm"),m(e,"bx--progress-bar--inline",E[1]==="inline"),m(e,"bx--progress-bar--indented",E[1]==="indented"),m(e,"bx--progress-bar--error",E[2]==="error"),m(e,"bx--progress-bar--finished",E[2]==="finished")},i(E){d||(O(k,E),O(w),d=!0)},o(E){z(k,E),z(w),d=!1},d(E){E&&g(e),k&&k.d(E),w&&w.d(),p&&p.d()}}}function Ul(l,e,t){let i;const r=["value","max","kind","status","size","labelText","hideLabel","helperText","id"];let n=le(e,r),{$$slots:s={},$$scope:o}=e,{value:a=void 0}=e,{max:u=100}=e,{kind:c="default"}=e,{status:f="active"}=e,{size:h="md"}=e,{labelText:d=""}=e,{hideLabel:b=!1}=e,{helperText:_=""}=e,{id:k="ccs-"+Math.random().toString(36)}=e;const w={error:Zt,finished:xt};let p="ccs-"+Math.random().toString(36),M;return l.$$set=D=>{e=B(B({},e),he(D)),t(12,n=le(e,r)),"value"in D&&t(13,a=D.value),"max"in D&&t(0,u=D.max),"kind"in D&&t(1,c=D.kind),"status"in D&&t(2,f=D.status),"size"in D&&t(3,h=D.size),"labelText"in D&&t(4,d=D.labelText),"hideLabel"in D&&t(5,b=D.hideLabel),"helperText"in D&&t(6,_=D.helperText),"id"in D&&t(7,k=D.id),"$$scope"in D&&t(14,o=D.$$scope)},l.$$.update=()=>{l.$$.dirty&8196&&t(9,i=a===void 0&&f==="active"),l.$$.dirty&8197&&(f==="error"||a<0?t(8,M=0):a>u?t(8,M=u):t(8,M=a))},[u,c,f,h,d,b,_,k,M,i,w,p,n,a,o,s]}class Yl extends be{constructor(e){super(),ge(this,e,Ul,Ql,pe,{value:13,max:0,kind:1,status:2,size:3,labelText:4,hideLabel:5,helperText:6,id:7})}}const Hl=Yl;class Wl extends $t{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:rt()},t)}getOptimisticResult(e){return e.behavior=rt(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var i,r,n,s,o,a;const{state:u}=e,c=super.createResult(e,t),{isFetching:f,isRefetching:h}=c,d=f&&((i=u.fetchMeta)==null||(r=i.fetchMore)==null?void 0:r.direction)==="forward",b=f&&((n=u.fetchMeta)==null||(s=n.fetchMore)==null?void 0:s.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:el(t,(o=u.data)==null?void 0:o.pages),hasPreviousPage:tl(t,(a=u.data)==null?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:b,isRefetching:h&&!d&&!b}}}function Kl(l,e,t){const i=ll(l,e,t);return il(i,Wl)}class Ce{static getConcepts(){return N(q,{method:"GET",url:"/api/v1/concepts/"})}static getConcept(e,t,i){return N(q,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},query:{draft:i},errors:{422:"Validation Error"}})}static editConcept(e,t,i){return N(q,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static deleteConcept(e,t){return N(q,{method:"DELETE",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},errors:{422:"Validation Error"}})}static getConceptColumnInfos(e,t){return N(q,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}/column_infos",path:{namespace:e,concept_name:t},errors:{422:"Validation Error"}})}static createConcept(e){return N(q,{method:"POST",url:"/api/v1/concepts/create",body:e,mediaType:"application/json",errors:{422:"Validation Error"}})}static mergeConceptDraft(e,t,i){return N(q,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}/merge_draft",path:{namespace:e,concept_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static getConceptModels(e,t){return N(q,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}/model",path:{namespace:e,concept_name:t},errors:{422:"Validation Error"}})}static getConceptModel(e,t,i){return N(q,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}/model/{embedding_name}",path:{namespace:e,concept_name:t,embedding_name:i},errors:{422:"Validation Error"}})}static score(e,t,i,r){return N(q,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}/model/{embedding_name}/score",path:{namespace:e,concept_name:t,embedding_name:i},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static generateExamples(e){return N(q,{method:"GET",url:"/api/v1/concepts/generate_examples",query:{description:e},errors:{422:"Validation Error"}})}}class tt{static getSources(){return N(q,{method:"GET",url:"/api/v1/data_loaders/"})}static getSourceSchema(e){return N(q,{method:"GET",url:"/api/v1/data_loaders/{source_name}",path:{source_name:e},errors:{422:"Validation Error"}})}static load(e,t){return N(q,{method:"POST",url:"/api/v1/data_loaders/{source_name}/load",path:{source_name:e},body:t,mediaType:"application/json",errors:{422:"Validation Error"}})}}class ne{static getDatasets(){return N(q,{method:"GET",url:"/api/v1/datasets/"})}static getManifest(e,t){return N(q,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static deleteDataset(e,t){return N(q,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static computeSignal(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/compute_signal",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static deleteSignal(e,t,i){return N(q,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}/delete_signal",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static getStats(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/stats",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsDownload(e,t,i){return N(q,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_download",path:{namespace:e,dataset_name:t},query:{url_safe_options:i},errors:{422:"Validation Error"}})}static selectRows(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsSchema(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_schema",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectGroups(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_groups",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static getMedia(e,t,i,r){return N(q,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/media",path:{namespace:e,dataset_name:t},query:{item_id:i,leaf_path:r},errors:{422:"Validation Error"}})}static getSettings(e,t){return N(q,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/settings",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static updateSettings(e,t,i){return N(q,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/settings",path:{namespace:e,dataset_name:t},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}}class Jl{static login(e){return N(q,{method:"GET",url:"/google/login",query:{origin_url:e},errors:{422:"Validation Error"}})}static auth(){return N(q,{method:"GET",url:"/google/auth"})}static logout(){return N(q,{method:"GET",url:"/google/logout"})}}const Xe="*",Oi="__rowid__",Le="__value__",Pi={text:["string","string_span"],text_embedding:["embedding"],image:["binary"]};function Ai(l){return Xl(l)||Zl(l)}function Xl(l){return["float16","float32","float64"].indexOf(l??"")>=0}function Zl(l){return["int8","int16","int32","int64","uint8","uint16","uint32","uint64"].indexOf(l)>=0}function Vi(l){return typeof l=="string"?l:l.map(e=>e.includes(".")?`"${e}"`:e).join(".")}function xl(l){return l.repeated_field?xl(l.repeated_field):l.dtype&&!["embedding","binary"].includes(l.dtype)}function Li(l){return l.dtype&&!["embedding","binary"].includes(l.dtype)}function Ne(l){var t;return Array.isArray(l)?l:((t=l.match(/(?:"[^"]*"|[^.])+(?:\.+$)?/g))==null?void 0:t.map(i=>i.replace(/"/g,"")))||[]}function $l(l,e){if(!l||!e||(l=Ne(l),e=Ne(e),l.length!==e.length))return!1;for(let t=0;t<l.length;t++)if(l[t]!==e[t])return!1;return!0}function Ri(l,e){return!l||!e||(l=Ne(l),e=Ne(e),l.length<e.length)?!1:$l(l.slice(0,e.length),e)}function lt(l,e){if(!l||!e||(l=Ne(l),e=Ne(e),l.length!==e.length))return!1;for(let t=0;t<l.length;t++)if(l[t]!==e[t]&&(l[t]!==e[t]&&l[t]!==Xe||l[t]===Xe&&!e[t].toString().match(/^\d+$/)))return!1;return!0}function zi(l){return(l==null?void 0:l.signal_name)==="concept_score"}function Ni(l,e=3){return l==null?"N/A":typeof l=="number"?l.toLocaleString(void 0,{maximumFractionDigits:e}):l instanceof Blob?"blob":Array.isArray(l)?l.join(", "):typeof l=="object"?Object.keys(l).length===2&&l.start!=null&&l.end!=null?`(${l.start}, ${l.end})`:JSON.stringify(l):l.toString()}function qi(l){return l.path!=null}const je="__path__",Fe="__field__";function ei(l,e){if(l==null)throw Error("Item is null.");if(e.length===0)return l;const[t,...i]=e;return l[t]==null?null:ei(l[t],i)}function it(l){const e=$e(l,[]);return e.fields?{fields:e.fields,path:[]}:{fields:{},path:[]}}function At(l,e){const t=qe(e),i=et(l,t,[]);if(Array.isArray(i))throw new Error("Expected row to have a single root node");if(!i)throw new Error("Expected row to have children");return i[Le]=null,i[je]=[],i[Fe]=e,i}function qe(l){return l==null?[]:[l,...Object.values(l.fields||{}).flatMap(qe),...l.repeated_field?qe(l.repeated_field):[]].filter(t=>t.path.length>0)}function Bi(l){return l==null?[]:qe(l).filter(e=>e.dtype!=null)}function Gi(l,e){return e==null?[]:(e?qe(e):[]).filter(i=>i.dtype==l)}function Je(l){let e;if(Array.isArray(l))e=[...l,...l.flatMap(Je)];else{const{[Le]:t,[je]:i,[Fe]:r,...n}=l,s=Object.values(n||{});e=[];for(const o of s)if(Array.isArray(o)){e=[...e,o];for(const a of o)e=[...e,a,...Je(a)]}else e=[...e,o,...Je(o)]}return e}function ji(l,e){return qe(l).find(i=>lt(i.path,e))}function Fi(l,e){return Je(l).filter(i=>lt(e,Vt.path(i)))}function ht(l,e,t=!1){return ti(e)&&(t=!0),e===l?t:e.fields!=null?Object.values(e.fields).some(i=>ht(l,i,t)):e.repeated_field!=null?ht(l,e.repeated_field,t):!1}function ti(l){return l.signal!=null}const Vt={path:l=>{if(!l)return;const e=l[je];if(e==null)throw Error(`Item does not have a path defined: ${JSON.stringify(l)}`);return e},value:(l,e)=>l?l[Le]:null,field:l=>{if(l)return l[Fe]},dtype:l=>{const e=Vt.field(l);return e==null?void 0:e.dtype}};function $e(l,e){const{fields:t,repeated_field:i,...r}=l,n={...r,path:[]};if(t!=null){n.fields={};for(const[s,o]of Object.entries(t)){const a=$e(o,[...e,s]);a.path=[...e,s],n.fields[s]=a}}if(i!=null){const s=$e(i,[...e,Xe]);s.path=[...e,Xe],n.repeated_field=s}return n}function et(l,e,t){const i=e.find(n=>lt(n.path,t));let r={};if(Array.isArray(l))return r=l.map((n,s)=>et(n,e,[...t,s.toString()])),r[Le]=null,r[je]=t,r[Fe]=i,r;if(l!=null&&typeof l=="object"){const{[Le]:n,...s}=l;r=Object.entries(s).reduce((o,[a,u])=>(o[a]=et(u,e,[...t,a]),o),{}),r[Le]=n}else r[Le]=l;return r[je]=t,r[Fe]=i,r}function _t(l){let e,t;return{c(){e=H("title"),t=j(l[1])},l(i){e=W(i,"title",{});var r=S(e);t=F(r,l[1]),r.forEach(g)},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&g(e)}}}function li(l){let e,t,i=l[1]&&_t(l),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],n={};for(let s=0;s<r.length;s+=1)n=B(n,r[s]);return{c(){e=H("svg"),i&&i.c(),t=H("path"),this.h()},l(s){e=W(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=S(e);i&&i.l(o),t=W(o,"path",{d:!0}),S(t).forEach(g),o.forEach(g),this.h()},h(){v(t,"d","M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"),Re(e,n)},m(s,o){A(s,e,o),i&&i.m(e,null),T(e,t)},p(s,[o]){s[1]?i?i.p(s,o):(i=_t(s),i.c(),i.m(e,t)):i&&(i.d(1),i=null),Re(e,n=_e(r,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:se,o:se,d(s){s&&g(e),i&&i.d()}}}function ii(l,e,t){let i,r;const n=["size","title"];let s=le(e,n),{size:o=16}=e,{title:a=void 0}=e;return l.$$set=u=>{t(5,e=B(B({},e),he(u))),t(3,s=le(e,n)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||a),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=he(e),[o,a,r,s,i]}class ri extends be{constructor(e){super(),ge(this,e,ii,li,pe,{size:0,title:1})}}const K="datasets",Lt="settings",bt=20,Qi=te(ne.getDatasets,K),Ui=te(ne.getManifest,K,{}),Yi=te(ne.getManifest,K,{select:l=>it(l.dataset_manifest.data_schema)}),Hi=te(function(e,t){return e&&t?ne.getManifest(e,t):Promise.resolve(null)},K,{select:l=>l?it(l.dataset_manifest.data_schema):null}),Wi=te(tt.getSources,K),Ki=te(tt.getSourceSchema,K,{select:l=>l}),Ji=Me(tt.load),Xi=Me(ne.computeSignal,{onSuccess:l=>{ee.invalidateQueries([rl]),nl(l.task_id,()=>{ee.invalidateQueries([K,"getManifest"]),ee.invalidateQueries([K,"selectRowsSchema"]),ee.invalidateQueries([K,"selectRows"])})}}),Zi=Me(ne.deleteDataset,{onSuccess:()=>{ee.invalidateQueries([K])}}),xi=Me(ne.deleteSignal,{onSuccess:()=>{ee.invalidateQueries([K,"getManifest"]),ee.invalidateQueries([K,"selectRowsSchema"]),ee.invalidateQueries([K,"selectRows"])}}),$i=te(ne.getStats,K),er=te(function(e,t,i){const r=i.map(n=>ne.getStats(e,t,{leaf_path:n}));return Promise.all(r)},K),tr=te(async function(e,t,i,r){const n=await ne.selectRows(e,t,i);return{rows:r==null?n.rows:n.rows.map(s=>At(s,r)),total_num_rows:n.total_num_rows}},K),lr=te(ne.selectRowsSchema,K,{select:l=>({schema:it(l.data_schema),...l})}),ir=te(ne.selectGroups,K),rr=(l,e,t,i)=>Kl({queryKey:[K,"selectRows",l,e,t],queryFn:({pageParam:r=0})=>ne.selectRows(l,e,{...t,limit:t.limit||bt,offset:r*(t.limit||bt)}),select:r=>({...r,pages:r.pages.map(n=>({rows:n.rows.map(s=>At(s,i)),total_num_rows:n.total_num_rows}))}),getNextPageParam:(r,n)=>n.length,enabled:!!i}),nr=te(ne.getSettings,Lt),sr=Me(ne.updateSettings,{onSuccess:()=>{ee.invalidateQueries([Lt])}}),De="concepts",ar=te(Ce.getConcept,De),or=te(Ce.getConcepts,De),ur=te(Ce.getConceptModels,De),fr=Me(Ce.getConceptModel,{onSuccess:()=>{ee.invalidateQueries([De])}}),cr=Me(Ce.createConcept,{onSuccess:()=>{ee.invalidateQueries([De])}}),dr=Me(Ce.editConcept,{onSuccess:()=>{ee.invalidateQueries([De]),ee.invalidateQueries([K,"selectRows"])}}),mr=Me(Ce.deleteConcept,{onSuccess:()=>ee.invalidateQueries([De])}),hr=te(Ce.score,De),_r=te(Ce.getConceptColumnInfos,De),ni=Me(Jl.logout,{onSuccess:()=>{ee.invalidateQueries([sl]),ee.invalidateQueries([De]),ee.invalidateQueries([K])}});function gt(l){let e,t,i,r,n,s=`${l[2]}px`,o=`${Math.max(l[5]/2+Ke,Math.min(l[1],l[6]-l[5]/2-Ke))}px`,a;const u=[ai,si],c=[];function f(h,d){return h[0]?0:h[3]?1:-1}return~(i=f(l))&&(r=c[i]=u[i](l)),{c(){e=L("div"),t=L("div"),r&&r.c(),this.h()},l(h){e=R(h,"DIV",{role:!0,class:!0});var d=S(e);t=R(d,"DIV",{class:!0});var b=S(t);r&&r.l(b),b.forEach(g),d.forEach(g),this.h()},h(){v(t,"class","min-w-xl text-container svelte-80e402"),v(e,"role","tooltip"),v(e,"class","hover-tooltip absolute mt-2 -translate-x-1/2 break-words border border-gray-300 bg-white p-2 shadow-md svelte-80e402"),Yt(()=>l[7].call(e)),Pe(e,"top",s),Pe(e,"left",o)},m(h,d){A(h,e,d),T(e,t),~i&&c[i].m(t,null),n=Ht(e,l[7].bind(e)),a=!0},p(h,d){let b=i;i=f(h),i===b?~i&&c[i].p(h,d):(r&&(ce(),z(c[b],1,1,()=>{c[b]=null}),de()),~i?(r=c[i],r?r.p(h,d):(r=c[i]=u[i](h),r.c()),O(r,1),r.m(t,null)):r=null),d&4&&s!==(s=`${h[2]}px`)&&Pe(e,"top",s),d&34&&o!==(o=`${Math.max(h[5]/2+Ke,Math.min(h[1],h[6]-h[5]/2-Ke))}px`)&&Pe(e,"left",o)},i(h){a||(O(r),a=!0)},o(h){z(r),a=!1},d(h){h&&g(e),~i&&c[i].d(),n()}}}function si(l){let e,t,i;const r=[l[4]];var n=l[3];function s(o){let a={};for(let u=0;u<r.length;u+=1)a=B(a,r[u]);return{props:a}}return n&&(e=ze(n,s())),{c(){e&&ae(e.$$.fragment),t=ie()},l(o){e&&ve(e.$$.fragment,o),t=ie()},m(o,a){e&&oe(e,o,a),A(o,t,a),i=!0},p(o,a){const u=a&16?_e(r,[Wt(o[4])]):{};if(a&8&&n!==(n=o[3])){if(e){ce();const c=e;z(c.$$.fragment,1,0,()=>{ue(c,1)}),de()}n?(e=ze(n,s()),ae(e.$$.fragment),O(e.$$.fragment,1),oe(e,t.parentNode,t)):e=null}else n&&e.$set(u)},i(o){i||(e&&O(e.$$.fragment,o),i=!0)},o(o){e&&z(e.$$.fragment,o),i=!1},d(o){o&&g(t),e&&ue(e,o)}}}function ai(l){let e,t;return{c(){e=L("span"),t=j(l[0]),this.h()},l(i){e=R(i,"SPAN",{class:!0});var r=S(e);t=F(r,l[0]),r.forEach(g),this.h()},h(){v(e,"class","whitespace-pre-wrap")},m(i,r){A(i,e,r),T(e,t)},p(i,r){r&1&&X(t,i[0])},i:se,o:se,d(i){i&&g(e)}}}function oi(l){let e,t,i=l[0]!=""&&gt(l);return{c(){i&&i.c(),e=ie()},l(r){i&&i.l(r),e=ie()},m(r,n){i&&i.m(r,n),A(r,e,n),t=!0},p(r,[n]){r[0]!=""?i?(i.p(r,n),n&1&&O(i,1)):(i=gt(r),i.c(),O(i,1),i.m(e.parentNode,e)):i&&(ce(),z(i,1,1,()=>{i=null}),de())},i(r){t||(O(i),t=!0)},o(r){z(i),t=!1},d(r){i&&i.d(r),r&&g(e)}}}const Ke=10;function ui(l,e,t){let{text:i}=e,{x:r}=e,{y:n}=e,{component:s}=e,{props:o}=e;const a=window.innerWidth;let u=0;function c(){u=this.clientWidth,t(5,u)}return l.$$set=f=>{"text"in f&&t(0,i=f.text),"x"in f&&t(1,r=f.x),"y"in f&&t(2,n=f.y),"component"in f&&t(3,s=f.component),"props"in f&&t(4,o=f.props)},[i,r,n,s,o,u,a,c]}class fi extends be{constructor(e){super(),ge(this,e,ui,oi,pe,{text:0,x:1,y:2,component:3,props:4})}}function Rt(l,{text:e,component:t,props:i}){if(t==null&&e==null)return;let r,n=e,s=t,o=i;function a(){if(r!=null)return;const c=l.getBoundingClientRect();r=new fi({props:{text:n,component:s,props:o,x:c.left+c.width/2,y:c.bottom},target:document.body})}function u(){r==null||r.$destroy(),r=void 0}return l.addEventListener("mouseover",a),l.addEventListener("mouseleave",u),l.addEventListener("click",u),{update({text:c,component:f,props:h}){n=c,s=f,o=h,r==null||r.$set({tooltipText:c})},destroy(){u(),l.removeEventListener("mouseover",a),l.removeEventListener("mouseleave",u),l.removeEventListener("click",u)}}}function pt(l,e,t){const i=l.slice();i[13]=e[t][0],i[14]=e[t][1];const r=i[14].step_progress==null?void 0:i[14].step_progress;return i[15]=r,i}function vt(l){let e,t,i,r,n,s,o,a,u,c,f,h,d;const b=[mi,di,ci],_=[];function k(p,M){return p[5].length?0:p[4].length?1:2}r=k(l),n=_[r]=b[r](l);let w=l[5].length===1&&kt(l);return a=new Gl({props:{align:"bottom-right",caret:!0,closeOnOutsideClick:!0,open:l[1],$$slots:{default:[hi]},$$scope:{ctx:l}}}),a.$on("click:outside",l[11]),{c(){e=L("div"),t=L("button"),i=L("div"),n.c(),s=x(),w&&w.c(),o=x(),ae(a.$$.fragment),this.h()},l(p){e=R(p,"DIV",{});var M=S(e);t=R(M,"BUTTON",{class:!0});var D=S(t);i=R(D,"DIV",{class:!0});var E=S(i);n.l(E),E.forEach(g),s=$(D),w&&w.l(D),o=$(D),ve(a.$$.fragment,D),D.forEach(g),M.forEach(g),this.h()},h(){v(i,"class","relative z-10 flex gap-x-2"),t.disabled=u=!l[2],v(t,"class","task-button relative h-8 rounded border p-2 transition"),m(t,"opacity-40",!l[2]),m(t,"bg-white",!l[5].length),m(t,"bg-blue-200",l[5].length),m(t,"border-blue-400",l[5].length)},m(p,M){A(p,e,M),T(e,t),T(t,i),_[r].m(i,null),T(t,s),w&&w.m(t,null),T(t,o),oe(a,t,null),f=!0,h||(d=[J(t,"click",Kt(l[12])),Ct(c=Rt.call(null,e,{text:l[2]?"":"User does not have access to run tasks."}))],h=!0)},p(p,M){let D=r;r=k(p),r===D?_[r].p(p,M):(ce(),z(_[D],1,1,()=>{_[D]=null}),de(),n=_[r],n?n.p(p,M):(n=_[r]=b[r](p),n.c()),O(n,1),n.m(i,null)),p[5].length===1?w?w.p(p,M):(w=kt(p),w.c(),w.m(t,o)):w&&(w.d(1),w=null);const E={};M&2&&(E.open=p[1]),M&262145&&(E.$$scope={dirty:M,ctx:p}),a.$set(E),(!f||M&4&&u!==(u=!p[2]))&&(t.disabled=u),(!f||M&4)&&m(t,"opacity-40",!p[2]),(!f||M&32)&&m(t,"bg-white",!p[5].length),(!f||M&32)&&m(t,"bg-blue-200",p[5].length),(!f||M&32)&&m(t,"border-blue-400",p[5].length),c&&Ot(c.update)&&M&4&&c.update.call(null,{text:p[2]?"":"User does not have access to run tasks."})},i(p){f||(O(n),O(a.$$.fragment,p),f=!0)},o(p){z(n),z(a.$$.fragment,p),f=!1},d(p){p&&g(e),_[r].d(),w&&w.d(),ue(a),h=!1,Ze(d)}}}function ci(l){let e,t,i;return t=new ri({}),{c(){e=j("Tasks "),ae(t.$$.fragment)},l(r){e=F(r,"Tasks "),ve(t.$$.fragment,r)},m(r,n){A(r,e,n),oe(t,r,n),i=!0},p:se,i(r){i||(O(t.$$.fragment,r),i=!0)},o(r){z(t.$$.fragment,r),i=!1},d(r){r&&g(e),ue(t,r)}}}function di(l){let e=l[4].length+"",t,i,r=l[4].length>1?"s":"",n;return{c(){t=j(e),i=j(" failed task"),n=j(r)},l(s){t=F(s,e),i=F(s," failed task"),n=F(s,r)},m(s,o){A(s,t,o),A(s,i,o),A(s,n,o)},p(s,o){o&16&&e!==(e=s[4].length+"")&&X(t,e),o&16&&r!==(r=s[4].length>1?"s":"")&&X(n,r)},i:se,o:se,d(s){s&&g(t),s&&g(i),s&&g(n)}}}function mi(l){let e=l[5].length+"",t,i,r=l[5].length>1?"s":"",n,s,o,a;return o=new zl({props:{withOverlay:!1,small:!0}}),{c(){t=j(e),i=j(" running task"),n=j(r),s=j("... "),ae(o.$$.fragment)},l(u){t=F(u,e),i=F(u," running task"),n=F(u,r),s=F(u,"... "),ve(o.$$.fragment,u)},m(u,c){A(u,t,c),A(u,i,c),A(u,n,c),A(u,s,c),oe(o,u,c),a=!0},p(u,c){(!a||c&32)&&e!==(e=u[5].length+"")&&X(t,e),(!a||c&32)&&r!==(r=u[5].length>1?"s":"")&&X(n,r)},i(u){a||(O(o.$$.fragment,u),a=!0)},o(u){z(o.$$.fragment,u),a=!1},d(u){u&&g(t),u&&g(i),u&&g(n),u&&g(s),ue(o,u)}}}function kt(l){let e,t=`${l[3]*100}%`;return{c(){e=L("div"),this.h()},l(i){e=R(i,"DIV",{class:!0}),S(e).forEach(g),this.h()},h(){v(e,"class","absolute left-0 top-0 z-0 h-full bg-blue-400 transition"),Pe(e,"width",t)},m(i,r){A(i,e,r)},p(i,r){r&8&&t!==(t=`${i[3]*100}%`)&&Pe(e,"width",t)},d(i){i&&g(e)}}}function Et(l,e){let t,i,r,n=e[14].name+"",s,o,a,u,c,f;return u=new Hl({props:{labelText:e[14].message||"",helperText:e[14].status!="completed"?e[14].details:"",value:e[14].status==="completed"?1:e[15],max:1,size:"sm",status:e[7][e[14].status]}}),{key:l,first:null,c(){t=L("div"),i=L("div"),r=L("div"),s=j(n),o=x(),a=L("div"),ae(u.$$.fragment),c=x(),this.h()},l(h){t=R(h,"DIV",{class:!0});var d=S(t);i=R(d,"DIV",{class:!0});var b=S(i);r=R(b,"DIV",{class:!0});var _=S(r);s=F(_,n),_.forEach(g),b.forEach(g),o=$(d),a=R(d,"DIV",{class:!0});var k=S(a);ve(u.$$.fragment,k),k.forEach(g),c=$(d),d.forEach(g),this.h()},h(){v(r,"class","mr-2"),v(i,"class","text-s flex flex-row"),v(a,"class","progress-container mt-3"),v(t,"class","relative border-b-2 border-slate-200 p-4 text-left last:border-b-0"),this.first=t},m(h,d){A(h,t,d),T(t,i),T(i,r),T(r,s),T(t,o),T(t,a),oe(u,a,null),T(t,c),f=!0},p(h,d){e=h,(!f||d&1)&&n!==(n=e[14].name+"")&&X(s,n);const b={};d&1&&(b.labelText=e[14].message||""),d&1&&(b.helperText=e[14].status!="completed"?e[14].details:""),d&1&&(b.value=e[14].status==="completed"?1:e[15]),d&1&&(b.status=e[7][e[14].status]),u.$set(b)},i(h){f||(O(u.$$.fragment,h),f=!0)},o(h){z(u.$$.fragment,h),f=!1},d(h){h&&g(t),ue(u)}}}function hi(l){let e,t=[],i=new Map,r,n=l[0];const s=o=>o[13];for(let o=0;o<n.length;o+=1){let a=pt(l,n,o),u=s(a);i.set(u,t[o]=Et(u,a))}return{c(){e=L("div");for(let o=0;o<t.length;o+=1)t[o].c();this.h()},l(o){e=R(o,"DIV",{class:!0});var a=S(e);for(let u=0;u<t.length;u+=1)t[u].l(a);a.forEach(g),this.h()},h(){v(e,"class","flex flex-col")},m(o,a){A(o,e,a);for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(e,null);r=!0},p(o,a){a&129&&(n=o[0],ce(),t=Jt(t,a,s,1,o,n,i,e,Xt,Et,null,pt),de())},i(o){if(!r){for(let a=0;a<n.length;a+=1)O(t[a]);r=!0}},o(o){for(let a=0;a<t.length;a+=1)z(t[a]);r=!1},d(o){o&&g(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function _i(l){let e,t,i=l[2]&&vt(l);return{c(){i&&i.c(),e=ie()},l(r){i&&i.l(r),e=ie()},m(r,n){i&&i.m(r,n),A(r,e,n),t=!0},p(r,[n]){r[2]?i?(i.p(r,n),n&4&&O(i,1)):(i=vt(r),i.c(),O(i,1),i.m(e.parentNode,e)):i&&(ce(),z(i,1,1,()=>{i=null}),de())},i(r){t||(O(i),t=!0)},o(r){z(i),t=!1},d(r){i&&i.d(r),r&&g(e)}}}function bi(l,e,t){let i,r,n,s,o,a,u;const c=al();Ae(l,c,k=>t(10,u=k));let f=!1;const h={pending:"active",completed:"finished",error:"error"},d=Pt();Ae(l,d,k=>t(9,a=k));const b=()=>{f&&t(1,f=!1)},_=()=>t(1,f=!f);return l.$$.update=()=>{var k,w,p,M;l.$$.dirty&1024&&t(0,i=Object.entries(((k=u.data)==null?void 0:k.tasks)||{}).sort(([,D],[,E])=>Date.parse(E.start_timestamp)-Date.parse(D.start_timestamp))),l.$$.dirty&1&&t(5,r=i.filter(([,D])=>D.status==="pending")),l.$$.dirty&1&&t(4,n=i.filter(([,D])=>D.status==="error")),l.$$.dirty&1024&&t(3,s=((w=u.data)==null?void 0:w.progress)||0),l.$$.dirty&512&&t(2,o=((p=a.data)==null?void 0:p.access.dataset.compute_signals)||((M=a.data)==null?void 0:M.access.create_dataset))},[i,f,o,s,n,r,c,h,d,a,u,b,_]}class gi extends be{constructor(e){super(),ge(this,e,bi,_i,pe,{})}}const pi=l=>({}),wt=l=>({}),vi=l=>({}),yt=l=>({}),ki=l=>({}),Tt=l=>({});function St(l){let e,t,i,r;const n=[wi,Ei],s=[];function o(a,u){var c;return((c=a[1].data)==null?void 0:c.user)!=null?0:1}return e=o(l),t=s[e]=n[e](l),{c(){t.c(),i=ie()},l(a){t.l(a),i=ie()},m(a,u){s[e].m(a,u),A(a,i,u),r=!0},p(a,u){let c=e;e=o(a),e===c?s[e].p(a,u):(ce(),z(s[c],1,1,()=>{s[c]=null}),de(),t=s[e],t?t.p(a,u):(t=s[e]=n[e](a),t.c()),O(t,1),t.m(i.parentNode,i))},i(a){r||(O(t),r=!0)},o(a){z(t),r=!1},d(a){s[e].d(a),a&&g(i)}}}function Ei(l){let e,t;return e=new ol({props:{size:"small",href:l[3],target:l[6],$$slots:{default:[yi]},$$scope:{ctx:l}}}),{c(){ae(e.$$.fragment)},l(i){ve(e.$$.fragment,i)},m(i,r){oe(e,i,r),t=!0},p(i,r){const n={};r&256&&(n.$$scope={dirty:r,ctx:i}),e.$set(n)},i(i){t||(O(e.$$.fragment,i),t=!0)},o(i){z(e.$$.fragment,i),t=!1},d(i){ue(e,i)}}}function wi(l){var h;let e,t,i=((h=l[1].data)==null?void 0:h.user.given_name)+"",r,n,s,o,a,u,c,f;return a=new wl({props:{flipped:!0,$$slots:{default:[Ti]},$$scope:{ctx:l}}}),{c(){e=L("div"),t=L("div"),r=j(i),s=x(),o=L("div"),ae(a.$$.fragment),this.h()},l(d){e=R(d,"DIV",{class:!0});var b=S(e);t=R(b,"DIV",{class:!0});var _=S(t);r=F(_,i),_.forEach(g),s=$(b),o=R(b,"DIV",{});var k=S(o);ve(a.$$.fragment,k),k.forEach(g),b.forEach(g),this.h()},h(){v(t,"class","ml-2 mr-1 flex"),v(e,"class","flex h-9 flex-row items-center rounded border border-neutral-200")},m(d,b){var _,k;A(d,e,b),T(e,t),T(t,r),T(e,s),T(e,o),oe(a,o,null),u=!0,c||(f=Ct(n=Rt.call(null,t,{text:`Logged into Google as ${(_=l[1].data)==null?void 0:_.user.name} with email ${(k=l[1].data)==null?void 0:k.user.email}`})),c=!0)},p(d,b){var k,w,p;(!u||b&2)&&i!==(i=((k=d[1].data)==null?void 0:k.user.given_name)+"")&&X(r,i),n&&Ot(n.update)&&b&2&&n.update.call(null,{text:`Logged into Google as ${(w=d[1].data)==null?void 0:w.user.name} with email ${(p=d[1].data)==null?void 0:p.user.email}`});const _={};b&256&&(_.$$scope={dirty:b,ctx:d}),a.$set(_)},i(d){u||(O(a.$$.fragment,d),u=!0)},o(d){z(a.$$.fragment,d),u=!1},d(d){d&&g(e),ue(a),c=!1,f()}}}function yi(l){let e;return{c(){e=j("Login")},l(t){e=F(t,"Login")},m(t,i){A(t,e,i)},d(t){t&&g(e)}}}function Ti(l){let e,t;return e=new Ol({props:{class:"optionOne",text:"Logout"}}),e.$on("click",l[5]),{c(){ae(e.$$.fragment)},l(i){ve(e.$$.fragment,i)},m(i,r){oe(e,i,r),t=!0},p:se,i(i){t||(O(e.$$.fragment,i),t=!0)},o(i){z(e.$$.fragment,i),t=!1},d(i){ue(e,i)}}}function Si(l){var Ee;let e,t,i,r,n,s,o,a,u,c,f,h,d,b,_,k,w,p,M;const D=l[7]["header-subtext"],E=we(D,l,l[8],Tt),P=l[7]["header-center"],V=we(P,l,l[8],yt),me=l[7]["header-right"],U=we(me,l,l[8],wt);_=new gi({});let G=((Ee=l[1].data)==null?void 0:Ee.auth_enabled)&&St(l);const ke=l[7].default,Z=we(ke,l,l[8],null);return{c(){e=L("div"),t=L("div"),i=L("div"),r=L("a"),n=j("Lilac "),s=L("span"),o=j(l[0]),a=x(),u=L("div"),E&&E.c(),c=x(),f=L("div"),V&&V.c(),h=x(),d=L("div"),U&&U.c(),b=x(),ae(_.$$.fragment),k=x(),G&&G.c(),w=x(),p=L("div"),Z&&Z.c(),this.h()},l(C){e=R(C,"DIV",{class:!0});var Q=S(e);t=R(Q,"DIV",{class:!0});var fe=S(t);i=R(fe,"DIV",{class:!0});var I=S(i);r=R(I,"A",{class:!0,href:!0});var Be=S(r);n=F(Be,"Lilac "),s=R(Be,"SPAN",{});var Qe=S(s);o=F(Qe,l[0]),Qe.forEach(g),Be.forEach(g),a=$(I),u=R(I,"DIV",{class:!0});var Ue=S(u);E&&E.l(Ue),Ue.forEach(g),I.forEach(g),c=$(fe),f=R(fe,"DIV",{class:!0});var Ye=S(f);V&&V.l(Ye),Ye.forEach(g),h=$(fe),d=R(fe,"DIV",{class:!0});var Oe=S(d);U&&U.l(Oe),b=$(Oe),ve(_.$$.fragment,Oe),k=$(Oe),G&&G.l(Oe),Oe.forEach(g),fe.forEach(g),w=$(Q),p=R(Q,"DIV",{class:!0});var He=S(p);Z&&Z.l(He),He.forEach(g),Q.forEach(g),this.h()},h(){v(r,"class","text-xl normal-case"),v(r,"href","/"),v(u,"class","mt-1 pl-4"),v(i,"class","mr-4 flex flex-row items-center"),v(f,"class","flex-grow flex-row items-center justify-center"),v(d,"class","flex flex-row items-center gap-x-2"),v(t,"class","flex flex-row items-center justify-between justify-items-center gap-x-12 border-b border-gray-200 px-4 py-2"),v(p,"class","flex h-full w-full overflow-hidden"),v(e,"class","flex h-full w-full flex-col")},m(C,Q){A(C,e,Q),T(e,t),T(t,i),T(i,r),T(r,n),T(r,s),T(s,o),T(i,a),T(i,u),E&&E.m(u,null),T(t,c),T(t,f),V&&V.m(f,null),T(t,h),T(t,d),U&&U.m(d,null),T(d,b),oe(_,d,null),T(d,k),G&&G.m(d,null),T(e,w),T(e,p),Z&&Z.m(p,null),M=!0},p(C,[Q]){var fe;(!M||Q&1)&&X(o,C[0]),E&&E.p&&(!M||Q&256)&&ye(E,D,C,C[8],M?Se(D,C[8],Q,ki):Te(C[8]),Tt),V&&V.p&&(!M||Q&256)&&ye(V,P,C,C[8],M?Se(P,C[8],Q,vi):Te(C[8]),yt),U&&U.p&&(!M||Q&256)&&ye(U,me,C,C[8],M?Se(me,C[8],Q,pi):Te(C[8]),wt),(fe=C[1].data)!=null&&fe.auth_enabled?G?(G.p(C,Q),Q&2&&O(G,1)):(G=St(C),G.c(),O(G,1),G.m(d,null)):G&&(ce(),z(G,1,1,()=>{G=null}),de()),Z&&Z.p&&(!M||Q&256)&&ye(Z,ke,C,C[8],M?Se(ke,C[8],Q,null):Te(C[8]),null)},i(C){M||(O(E,C),O(V,C),O(U,C),O(_.$$.fragment,C),O(G),O(Z,C),M=!0)},o(C){z(E,C),z(V,C),z(U,C),z(_.$$.fragment,C),z(G),z(Z,C),M=!1},d(C){C&&g(e),E&&E.d(C),V&&V.d(C),U&&U.d(C),ue(_),G&&G.d(),Z&&Z.d(C)}}}function Mi(l,e,t){let i,r,{$$slots:n={},$$scope:s}=e,{title:o}=e;const a=Pt();Ae(l,a,_=>t(1,r=_));const u=location.origin,c=`${u}/google/login?origin_url=${u}`,f=ni();Ae(l,f,_=>t(9,i=_));function h(){i.mutate([])}const b=window.self!==window.top?"_blank":"";return l.$$set=_=>{"title"in _&&t(0,o=_.title),"$$scope"in _&&t(8,s=_.$$scope)},[o,r,a,c,f,h,b,n,s]}class br extends be{constructor(e){super(),ge(this,e,Mi,Si,pe,{title:0})}}export{At as $,ir as A,Xe as B,ri as C,ji as D,sr as E,tr as F,Gi as G,er as H,lr as I,Qi as J,Zi as K,Vt as L,zl as M,cr as N,wl as O,br as P,dr as Q,Ce as R,qi as S,Pi as T,Oi as U,Le as V,lt as W,Ai as X,ei as Y,hr as Z,it as _,ar as a,Hi as a0,fr as a1,ur as a2,_r as a3,Wi as a4,Ji as a5,Ki as a6,Ne as b,qe as c,mr as d,$l as e,Ni as f,Ri as g,Rt as h,zi as i,Fi as j,ti as k,Je as l,Ui as m,Yi as n,rr as o,Bi as p,or as q,Xi as r,Vi as s,nr as t,xi as u,ht as v,xl as w,Li as x,Ol as y,$i as z};