lightly-studio 0.3.4__py3-none-any.whl → 0.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lightly-studio might be problematic. Click here for more details.
- lightly_studio/__init__.py +1 -2
- lightly_studio/api/db_tables.py +3 -0
- lightly_studio/api/features.py +3 -5
- lightly_studio/api/routes/api/dataset.py +5 -3
- lightly_studio/api/routes/api/dataset_tag.py +10 -0
- lightly_studio/api/routes/api/embeddings2d.py +6 -47
- lightly_studio/core/dataset.py +89 -2
- lightly_studio/core/dataset_query/__init__.py +14 -0
- lightly_studio/core/dataset_query/dataset_query.py +98 -2
- lightly_studio/core/dataset_query/sample_field.py +11 -2
- lightly_studio/core/sample.py +33 -1
- lightly_studio/db_manager.py +4 -2
- lightly_studio/dist_lightly_studio_view_app/_app/env.js +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.B-Bn8V7R.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/Samples.CTl60pQb.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.CxuTMeYy.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/transform.Bte-FZ4V.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/7XnHnNk_.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BDE1kT04.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DQ8aZ1o-.js → BHoO7UL_.js} +2 -2
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{CZGpyrcA.js → BTpMiPuk.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BbG6fgnL.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bip0vTKl.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{D_JuJOO3.js → BzYRexN9.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Frwd2CjB.js → C3xJX0nD.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C5oezL0m.js +39 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{H4l0JFh9.js → CANX9QXL.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CAPx0Bfm.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CEPpkZIV.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/ChO13USc.js +96 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DzBTnFhV.js → Cj4nZbtb.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Bqz7dyEC.js → CmNXvs5e.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CpbA3HU7.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DSxvnAMh.js → D9WxTSWa.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DELrRF6e.js +4 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{sLqs1uaK.js → DFib3GIP.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{CSCQddQS.js → DNJnBfHs.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DVxjPOJB.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DeAqvaPB.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DgCXCApo.js +438 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DmGM9V9Q.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DoEId1MK.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DqhovIS0.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/SiegjVo0.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/gBp1tBnA.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/xQhUoIl9.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.CED-eiXl.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.D6UcpqyO.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.waSqEGqm.js +4 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{1.Cdy-7S5q.js → 1.Bb_sKkYl.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.D9Uicmfq.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/11.DKnK0EcJ.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/13.D7dGgxYC.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{2.BIldfkxL.js → 2.BzK1sjoM.js} +144 -105
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{3.BC9z_TWM.js → 3.B08UPFst.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{4.D8X_Ch5n.js → 4.C19_Nx95.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.B2cR7brs.js +39 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{6.DRA5Ru_2.js → 6.C9Y2LZxG.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{7.WVBsruHQ.js → 7.CEbWmgIF.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.Con-GcPz.js +20 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.DW7FBNNH.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/version.json +1 -1
- lightly_studio/dist_lightly_studio_view_app/index.html +13 -14
- lightly_studio/models/annotation/annotation_base.py +9 -0
- lightly_studio/models/caption.py +1 -0
- lightly_studio/models/dataset.py +6 -0
- lightly_studio/models/sample.py +8 -1
- lightly_studio/models/settings.py +5 -0
- lightly_studio/models/two_dim_embedding.py +16 -0
- lightly_studio/resolvers/annotation_resolver/get_all.py +3 -1
- lightly_studio/resolvers/dataset_resolver.py +20 -5
- lightly_studio/resolvers/sample_embedding_resolver.py +44 -2
- lightly_studio/resolvers/sample_resolver.py +2 -3
- lightly_studio/resolvers/settings_resolver.py +3 -0
- lightly_studio/resolvers/twodim_embedding_resolver.py +119 -0
- lightly_studio/selection/__init__.py +1 -0
- lightly_studio/selection/mundig.py +41 -0
- lightly_studio/selection/select.py +70 -1
- lightly_studio/selection/selection_config.py +1 -1
- lightly_studio-0.4.1.dist-info/METADATA +78 -0
- {lightly_studio-0.3.4.dist-info → lightly_studio-0.4.1.dist-info}/RECORD +83 -81
- lightly_studio/dataset/loader.py +0 -581
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.B3oFNb6O.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/Samples.CIbricz7.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.7Ma7YdVg.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/transform.2jKMtOWG.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/-DXuGN29.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/B7302SU7.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BeWf8-vJ.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CfQ4mGwl.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CiaNZCBa.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cqo0Vpvt.js +0 -417
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cy4fgWTG.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D5w4xp5l.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DD63uD-T.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D_ynJAfY.js +0 -2
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dafy4oEQ.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dj4O-5se.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DmjAI-UV.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dug7Bq1S.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Dv5BSBQG.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DzX_yyqb.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/H60ATh8g.js +0 -2
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/qIv1kPyv.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/u-it74zV.js +0 -96
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.BPc0HQPq.js +0 -2
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.SNvc2nrm.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.5jT7P06o.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.C_uoESTX.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.DcO8wIAc.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.CAXhxJu6.js +0 -39
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.BuKUrCEN.js +0 -20
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.CUIn1yCR.js +0 -1
- lightly_studio/selection/README.md +0 -6
- lightly_studio-0.3.4.dist-info/METADATA +0 -879
- /lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{11.CWG1ehzT.js → 12.CWG1ehzT.js} +0 -0
- {lightly_studio-0.3.4.dist-info → lightly_studio-0.4.1.dist-info}/WHEEL +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as u,w as e,o as w,q as n}from"./Frwd2CjB.js";import{c as h}from"./DzX_yyqb.js";import{u as L}from"./qIv1kPyv.js";const o=e(new Set);function _(f){const{dataset_id:r,kind:i}=f,{tags:l}=L(),c=e(!1),d=e(null),s=e(!1),g=()=>{u(s)||(s.set(!0),h.GET("/api/datasets/{dataset_id}/tags",{params:{path:{dataset_id:r}}}).then(t=>{t.data&&l.set(t.data)}).catch(t=>{d.set(t)}).finally(()=>{s.set(!1)}))};!u(c)&&r&&(g(),c.set(!0));const m=w(l,t=>{const a=t??[];return i?a.filter(T=>i.includes(T.kind)):a}),S=t=>{o.update(a=>(a.has(t)?a.delete(t):a.add(t),new Set([...a])))},p=()=>{o.set(new Set)};return{tags:n(m),loadTags:g,tagsSelected:n(o),tagSelectionToggle:S,clearTagsSelected:p,isLoading:n(s),error:d}}export{_ as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var I=Object.defineProperty;var E=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var w=(e,t,r)=>E(e,typeof t!="symbol"?t+"":t,r);const R={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)},U=async(e,t)=>{const r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r},V=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},P=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},W=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},C=({allowReserved:e,explode:t,name:r,style:i,value:n})=>{if(!t){const s=(e?n:n.map(c=>encodeURIComponent(c))).join(P(i));switch(i){case"label":return`.${s}`;case"matrix":return`;${r}=${s}`;case"simple":return s;default:return`${r}=${s}`}}const o=V(i),a=n.map(s=>i==="label"||i==="simple"?e?s:encodeURIComponent(s):g({allowReserved:e,name:r,value:s})).join(o);return i==="label"||i==="matrix"?o+a:a},g=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},$=({allowReserved:e,explode:t,name:r,style:i,value:n,valueOnly:o})=>{if(n instanceof Date)return o?n.toISOString():`${r}=${n.toISOString()}`;if(i!=="deepObject"&&!t){let c=[];Object.entries(n).forEach(([p,y])=>{c=[...c,p,e?y:encodeURIComponent(y)]});const f=c.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}const a=W(i),s=Object.entries(n).map(([c,f])=>g({allowReserved:e,name:i==="deepObject"?`${r}[${c}]`:c,value:f})).join(a);return i==="label"||i==="matrix"?a+s:s},k=/\{[^{}]+\}/g,H=({path:e,url:t})=>{let r=t;const i=t.match(k);if(i)for(const n of i){let o=!1,a=n.substring(1,n.length-1),s="simple";a.endsWith("*")&&(o=!0,a=a.substring(0,a.length-1)),a.startsWith(".")?(a=a.substring(1),s="label"):a.startsWith(";")&&(a=a.substring(1),s="matrix");const c=e[a];if(c==null)continue;if(Array.isArray(c)){r=r.replace(n,C({explode:o,name:a,style:s,value:c}));continue}if(typeof c=="object"){r=r.replace(n,$({explode:o,name:a,style:s,value:c,valueOnly:!0}));continue}if(s==="matrix"){r=r.replace(n,`;${g({name:a,value:c})}`);continue}const f=encodeURIComponent(s==="label"?`.${c}`:c);r=r.replace(n,f)}return r},z=({allowReserved:e,array:t,object:r}={})=>n=>{const o=[];if(n&&typeof n=="object")for(const a in n){const s=n[a];if(s!=null)if(Array.isArray(s)){const c=C({allowReserved:e,explode:!0,name:a,style:"form",value:s,...t});c&&o.push(c)}else if(typeof s=="object"){const c=$({allowReserved:e,explode:!0,name:a,style:"deepObject",value:s,...r});c&&o.push(c)}else{const c=g({allowReserved:e,name:a,value:s});c&&o.push(c)}}return o.join("&")},N=e=>{var r;if(!e)return"stream";const t=(r=e.split(";")[0])==null?void 0:r.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>t.startsWith(i)))return"blob";if(t.startsWith("text/"))return"text"}},B=async({security:e,...t})=>{for(const r of e){const i=await U(r,t.auth);if(!i)continue;const n=r.name??"Authorization";switch(r.in){case"query":t.query||(t.query={}),t.query[n]=i;break;case"cookie":t.headers.append("Cookie",`${n}=${i}`);break;case"header":default:t.headers.set(n,i);break}return}},A=e=>L({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:z(e.querySerializer),url:e.url}),L=({baseUrl:e,path:t,query:r,querySerializer:i,url:n})=>{const o=n.startsWith("/")?n:`/${n}`;let a=(e??"")+o;t&&(a=H({path:t,url:a}));let s=r?i(r):"";return s.startsWith("?")&&(s=s.substring(1)),s&&(a+=`?${s}`),a},x=(e,t)=>{var i;const r={...e,...t};return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=D(e.headers,t.headers),r},D=(...e)=>{const t=new Headers;for(const r of e){if(!r||typeof r!="object")continue;const i=r instanceof Headers?r.entries():Object.entries(r);for(const[n,o]of i)if(o===null)t.delete(n);else if(Array.isArray(o))for(const a of o)t.append(n,a);else o!==void 0&&t.set(n,typeof o=="object"?JSON.stringify(o):o)}return t};class _{constructor(){w(this,"_fns");this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(t){return typeof t=="number"?this._fns[t]?t:-1:this._fns.indexOf(t)}exists(t){const r=this.getInterceptorIndex(t);return!!this._fns[r]}eject(t){const r=this.getInterceptorIndex(t);this._fns[r]&&(this._fns[r]=null)}update(t,r){const i=this.getInterceptorIndex(t);return this._fns[i]?(this._fns[i]=r,t):!1}use(t){return this._fns=[...this._fns,t],this._fns.length-1}}const J=()=>({error:new _,request:new _,response:new _}),M=z({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Q={"Content-Type":"application/json"},O=(e={})=>({...R,headers:Q,parseAs:"auto",querySerializer:M,...e}),F=(e={})=>{let t=x(O(),e);const r=()=>({...t}),i=a=>(t=x(t,a),r()),n=J(),o=async a=>{const s={...t,...a,fetch:a.fetch??t.fetch??globalThis.fetch,headers:D(t.headers,a.headers)};s.security&&await B({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body&&s.bodySerializer&&(s.body=s.bodySerializer(s.body)),(s.body===void 0||s.body==="")&&s.headers.delete("Content-Type");const c=A(s),f={redirect:"follow",...s};let p=new Request(c,f);for(const d of n.request._fns)d&&(p=await d(p,s));const y=s.fetch;let l=await y(p);for(const d of n.response._fns)d&&(l=await d(l,p,s));const b={request:p,response:l};if(l.ok){if(l.status===204||l.headers.get("Content-Length")==="0")return s.responseStyle==="data"?{}:{data:{},...b};const d=(s.parseAs==="auto"?N(l.headers.get("Content-Type")):s.parseAs)??"json";let h;switch(d){case"arrayBuffer":case"blob":case"formData":case"json":case"text":h=await l[d]();break;case"stream":return s.responseStyle==="data"?l.body:{data:l.body,...b}}return d==="json"&&(s.responseValidator&&await s.responseValidator(h),s.responseTransformer&&(h=await s.responseTransformer(h))),s.responseStyle==="data"?h:{data:h,...b}}const T=await l.text();let j;try{j=JSON.parse(T)}catch{}const S=j??T;let m=S;for(const d of n.error._fns)d&&(m=await d(S,l,p,s));if(m=m||{},s.throwOnError)throw m;return s.responseStyle==="data"?void 0:{error:m,...b}};return{buildUrl:A,connect:a=>o({...a,method:"CONNECT"}),delete:a=>o({...a,method:"DELETE"}),get:a=>o({...a,method:"GET"}),getConfig:r,head:a=>o({...a,method:"HEAD"}),interceptors:n,options:a=>o({...a,method:"OPTIONS"}),patch:a=>o({...a,method:"PATCH"}),post:a=>o({...a,method:"POST"}),put:a=>o({...a,method:"PUT"}),request:o,setConfig:i,trace:a=>o({...a,method:"TRACE"})}},G=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),v=async e=>(e=e.map(t=>G(t)),e),K=e=>(e.created_at&&(e.created_at=new Date(e.created_at)),e.updated_at&&(e.updated_at=new Date(e.updated_at)),e),X=async e=>(e=K(e),e),Y=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),q=e=>(e.tags=e.tags.map(t=>Y(t)),e),Z=e=>(e.data=e.data.map(t=>q(t)),e),ee=async e=>(e=Z(e),e),te=async e=>(e=q(e),e),re=e=>(e.created_at&&(e.created_at=new Date(e.created_at)),e),se=async e=>(e=e.map(t=>re(t)),e),ae=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),ne=async e=>(e=ae(e),e),u=F(O()),oe=e=>((e==null?void 0:e.client)??u).get({responseTransformer:v,url:"/api/datasets",...e}),ce=e=>(e.client??u).get({responseTransformer:X,url:"/api/datasets/{dataset_id}",...e}),ue=e=>(e.client??u).post({responseTransformer:ee,url:"/api/datasets/{dataset_id}/samples/list",...e,headers:{"Content-Type":"application/json",...e.headers}}),le=e=>(e.client??u).get({responseTransformer:te,url:"/api/datasets/{dataset_id}/samples/{sample_id}",...e}),de=e=>(e.client??u).delete({url:"/api/datasets/{dataset_id}/samples/{sample_id}/tag/{tag_id}",...e}),fe=e=>((e==null?void 0:e.client)??u).get({url:"/api/annotation_labels",...e}),pe=e=>(e.client??u).post({url:"/api/annotation_labels",...e,headers:{"Content-Type":"application/json",...e.headers}}),he=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/annotations",...e}),me=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??u).put({responseTransformer:se,url:"/api/datasets/{dataset_id}/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),be=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/annotations/count",...e,headers:{"Content-Type":"application/json",...e.headers}}),ge=e=>(e.client??u).delete({url:"/api/datasets/{dataset_id}/annotations/{annotation_id}",...e}),_e=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/annotations/{annotation_id}",...e}),Te=e=>((e==null?void 0:e.client)??u).get({responseTransformer:ne,url:"/api/settings",...e}),je=e=>(e.client??u).get({url:"/api/classifiers/{classifier_id}/sample_history",...e}),Se=e=>((e==null?void 0:e.client)??u).post({url:"/api/embeddings2d/tsne",...e,headers:{"Content-Type":"application/json",...e==null?void 0:e.headers}}),we=e=>(e.client??u).get({url:"/api/datasets/{dataset_id}/metadata/info",...e}),Ae=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/metadata/typicality",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??u).post({url:"/api/datasets/{dataset_id}/selection",...e,headers:{"Content-Type":"application/json",...e.headers}});export{ce as a,ue as b,u as c,ge as d,de as e,me as f,we as g,pe as h,le as i,fe as j,be as k,he as l,_e as m,Se as n,Te as o,xe as p,Ae as q,oe as r,je as s,ye as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var lt=e=>{throw TypeError(e)};var H=(e,t,s)=>t.has(e)||lt("Cannot "+s);var a=(e,t,s)=>(H(e,t,"read from private field"),s?s.call(e):t.get(e)),y=(e,t,s)=>t.has(e)?lt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),d=(e,t,s,n)=>(H(e,t,"write to private field"),n?n.call(e,s):t.set(e,s),s),f=(e,t,s)=>(H(e,t,"access private method"),s);import{c as It,d as St,g as Ct,e as Et,f as Qt,h as Ft,i as At,j as Mt,k as Tt,u as xt,l as Ut,m as Dt,n as Lt}from"./D5w4xp5l.js";import{aN as qt,o as G,m as nt,w as Kt}from"./Frwd2CjB.js";import{u as rt}from"./qIv1kPyv.js";import{S as Bt,p as ft,r as R,s as J,a as V,n as jt,i as yt,b as mt,t as kt,f as Pt,c as _t,d as bt,e as wt,g as Vt,h as zt}from"./H4l0JFh9.js";var O,r,k,p,A,L,C,w,P,q,K,M,T,E,B,i,j,X,Y,Z,$,tt,et,st,Rt,vt,Nt=(vt=class extends Bt{constructor(t,s){super();y(this,i);y(this,O);y(this,r);y(this,k);y(this,p);y(this,A);y(this,L);y(this,C);y(this,w);y(this,P);y(this,q);y(this,K);y(this,M);y(this,T);y(this,E);y(this,B,new Set);this.options=s,d(this,O,t),d(this,w,null),d(this,C,ft()),this.options.experimental_prefetchInRender||a(this,C).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(a(this,r).addObserver(this),pt(a(this,r),this.options)?f(this,i,j).call(this):this.updateResult(),f(this,i,$).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return at(a(this,r),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return at(a(this,r),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,i,tt).call(this),f(this,i,et).call(this),a(this,r).removeObserver(this)}setOptions(t,s){const n=this.options,o=a(this,r);if(this.options=a(this,O).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof R(this.options.enabled,a(this,r))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");f(this,i,st).call(this),a(this,r).setOptions(this.options),n._defaulted&&!J(this.options,n)&&a(this,O).getQueryCache().notify({type:"observerOptionsUpdated",query:a(this,r),observer:this});const h=this.hasListeners();h&&Ot(a(this,r),o,this.options,n)&&f(this,i,j).call(this),this.updateResult(s),h&&(a(this,r)!==o||R(this.options.enabled,a(this,r))!==R(n.enabled,a(this,r))||V(this.options.staleTime,a(this,r))!==V(n.staleTime,a(this,r)))&&f(this,i,X).call(this);const l=f(this,i,Y).call(this);h&&(a(this,r)!==o||R(this.options.enabled,a(this,r))!==R(n.enabled,a(this,r))||l!==a(this,E))&&f(this,i,Z).call(this,l)}getOptimisticResult(t){const s=a(this,O).getQueryCache().build(a(this,O),t),n=this.createResult(s,t);return Ht(this,n)&&(d(this,p,n),d(this,L,this.options),d(this,A,a(this,r).state)),n}getCurrentResult(){return a(this,p)}trackResult(t,s){const n={};return Object.keys(t).forEach(o=>{Object.defineProperty(n,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),s==null||s(o),t[o])})}),n}trackProp(t){a(this,B).add(t)}getCurrentQuery(){return a(this,r)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=a(this,O).defaultQueryOptions(t),n=a(this,O).getQueryCache().build(a(this,O),s);return n.fetch().then(()=>this.createResult(n,s))}fetch(t){return f(this,i,j).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),a(this,p)))}createResult(t,s){var dt;const n=a(this,r),o=this.options,h=a(this,p),l=a(this,A),m=a(this,L),I=t!==n?t.state:a(this,k),{state:u}=t;let c={...u},Q=!1,g;if(s._optimisticResults){const b=this.hasListeners(),U=!b&&pt(t,s),D=b&&Ot(t,n,s,o);(U||D)&&(c={...c,..._t(u.data,t.options)}),s._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:ot,errorUpdatedAt:ut,status:F}=c;if(s.select&&c.data!==void 0)if(h&&c.data===(l==null?void 0:l.data)&&s.select===a(this,P))g=a(this,q);else try{d(this,P,s.select),g=s.select(c.data),g=bt(h==null?void 0:h.data,g,s),d(this,q,g),d(this,w,null)}catch(b){d(this,w,b)}else g=c.data;if(s.placeholderData!==void 0&&g===void 0&&F==="pending"){let b;if(h!=null&&h.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData))b=h.data;else if(b=typeof s.placeholderData=="function"?s.placeholderData((dt=a(this,K))==null?void 0:dt.state.data,a(this,K)):s.placeholderData,s.select&&b!==void 0)try{b=s.select(b),d(this,w,null)}catch(U){d(this,w,U)}b!==void 0&&(F="success",g=bt(h==null?void 0:h.data,b,s),Q=!0)}a(this,w)&&(ot=a(this,w),g=a(this,q),ut=Date.now(),F="error");const z=c.fetchStatus==="fetching",N=F==="pending",W=F==="error",ct=N&&z,ht=g!==void 0,v={status:F,fetchStatus:c.fetchStatus,isPending:N,isSuccess:F==="success",isError:W,isInitialLoading:ct,isLoading:ct,data:g,dataUpdatedAt:c.dataUpdatedAt,error:ot,errorUpdatedAt:ut,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>I.dataUpdateCount||c.errorUpdateCount>I.errorUpdateCount,isFetching:z,isRefetching:z&&!N,isLoadingError:W&&!ht,isPaused:c.fetchStatus==="paused",isPlaceholderData:Q,isRefetchError:W&&ht,isStale:it(t,s),refetch:this.refetch,promise:a(this,C)};if(this.options.experimental_prefetchInRender){const b=_=>{v.status==="error"?_.reject(v.error):v.data!==void 0&&_.resolve(v.data)},U=()=>{const _=d(this,C,v.promise=ft());b(_)},D=a(this,C);switch(D.status){case"pending":t.queryHash===n.queryHash&&b(D);break;case"fulfilled":(v.status==="error"||v.data!==D.value)&&U();break;case"rejected":(v.status!=="error"||v.error!==D.reason)&&U();break}}return v}updateResult(t){const s=a(this,p),n=this.createResult(a(this,r),this.options);if(d(this,A,a(this,r).state),d(this,L,this.options),a(this,A).data!==void 0&&d(this,K,a(this,r)),J(n,s))return;d(this,p,n);const o={},h=()=>{if(!s)return!0;const{notifyOnChangeProps:l}=this.options,m=typeof l=="function"?l():l;if(m==="all"||!m&&!a(this,B).size)return!0;const S=new Set(m??a(this,B));return this.options.throwOnError&&S.add("error"),Object.keys(a(this,p)).some(I=>{const u=I;return a(this,p)[u]!==s[u]&&S.has(u)})};(t==null?void 0:t.listeners)!==!1&&h()&&(o.listeners=!0),f(this,i,Rt).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,i,$).call(this)}},O=new WeakMap,r=new WeakMap,k=new WeakMap,p=new WeakMap,A=new WeakMap,L=new WeakMap,C=new WeakMap,w=new WeakMap,P=new WeakMap,q=new WeakMap,K=new WeakMap,M=new WeakMap,T=new WeakMap,E=new WeakMap,B=new WeakMap,i=new WeakSet,j=function(t){f(this,i,st).call(this);let s=a(this,r).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(jt)),s},X=function(){f(this,i,tt).call(this);const t=V(this.options.staleTime,a(this,r));if(yt||a(this,p).isStale||!mt(t))return;const n=kt(a(this,p).dataUpdatedAt,t)+1;d(this,M,setTimeout(()=>{a(this,p).isStale||this.updateResult()},n))},Y=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(a(this,r)):this.options.refetchInterval)??!1},Z=function(t){f(this,i,et).call(this),d(this,E,t),!(yt||R(this.options.enabled,a(this,r))===!1||!mt(a(this,E))||a(this,E)===0)&&d(this,T,setInterval(()=>{(this.options.refetchIntervalInBackground||Pt.isFocused())&&f(this,i,j).call(this)},a(this,E)))},$=function(){f(this,i,X).call(this),f(this,i,Z).call(this,f(this,i,Y).call(this))},tt=function(){a(this,M)&&(clearTimeout(a(this,M)),d(this,M,void 0))},et=function(){a(this,T)&&(clearInterval(a(this,T)),d(this,T,void 0))},st=function(){const t=a(this,O).getQueryCache().build(a(this,O),this.options);if(t===a(this,r))return;const s=a(this,r);d(this,r,t),d(this,k,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},Rt=function(t){wt.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(a(this,p))}),a(this,O).getQueryCache().notify({query:a(this,r),type:"observerResultsUpdated"})})},vt);function Wt(e,t){return R(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function pt(e,t){return Wt(e,t)||e.state.data!==void 0&&at(e,t,t.refetchOnMount)}function at(e,t,s){if(R(t.enabled,e)!==!1){const n=typeof s=="function"?s(e):s;return n==="always"||n!==!1&&it(e,t)}return!1}function Ot(e,t,s,n){return(e!==t||R(n.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&it(e,s)}function it(e,t){return R(t.enabled,e)!==!1&&e.isStaleByTime(V(t.staleTime,e))}function Ht(e,t){return!J(e.getCurrentResult(),t)}function Gt(){return Vt()}function Jt(e){return zt()}function Xt(e){return"subscribe"in e&&typeof e.subscribe=="function"}function Yt(){}function Zt(e,t,s){const n=Jt(),o=Gt(),h=Xt(e)?e:qt(e),l=G([h,o],([u,c])=>{const Q=n.defaultQueryOptions(u);return Q._optimisticResults=c?"isRestoring":"optimistic",Q}),m=new t(n,nt(l));l.subscribe(u=>{m.setOptions(u,{listeners:!1})});const S=G(o,(u,c)=>{const Q=u?Yt:m.subscribe(wt.batchCalls(c));return m.updateResult(),Q}),{subscribe:I}=G([S,l],([u,c])=>(u=m.getOptimisticResult(c),c.notifyOnChangeProps?u:m.trackResult(u)));return{subscribe:I}}function $t(e,t){return Zt(e,Nt)}function pe(e){return e}const x=(e,t,s)=>{const n={_id:e,baseUrl:(t==null?void 0:t.baseUrl)||((t==null?void 0:t.client)??It).getConfig().baseUrl};return s&&(n._infinite=s),t!=null&&t.body&&(n.body=t.body),t!=null&&t.headers&&(n.headers=t.headers),t!=null&&t.path&&(n.path=t.path),t!=null&&t.query&&(n.query=t.query),[n]},te=(e,t)=>{const s={...e[0]};return t.body&&(s.body={...e[0].body,...t.body}),t.headers&&(s.headers={...e[0].headers,...t.headers}),t.path&&(s.path={...e[0].path,...t.path}),t.query&&(s.query={...e[0].query,...t.query}),s},ee=e=>x("readSample",e),Oe=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await At({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:ee(e)}),ge=e=>({mutationFn:async s=>{const{data:n}=await Et({...e,...s,throwOnError:!0});return n}}),se=e=>x("readAnnotationLabels",e),ve=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Mt({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:se(e)}),we=e=>({mutationFn:async s=>{const{data:n}=await Ft({...e,...s,throwOnError:!0});return n}}),ae=e=>x("readAnnotations",e,!0),Re=e=>({queryFn:async({pageParam:t,queryKey:s,signal:n})=>{const h=te(s,typeof t=="object"?t:{query:{cursor:t}}),{data:l}=await Ut({...e,...h,signal:n,throwOnError:!0});return l},queryKey:ae(e)}),Ie=e=>({mutationFn:async s=>{const{data:n}=await Qt({...e,...s,throwOnError:!0});return n}}),Se=e=>({mutationFn:async s=>{const{data:n}=await xt({...e,...s,throwOnError:!0});return n}}),ne=e=>x("countAnnotationsByDataset",e),Ce=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Tt({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:ne(e)}),Ee=e=>({mutationFn:async s=>{const{data:n}=await St({...e,...s,throwOnError:!0});return n}}),re=e=>x("getAnnotation",e),Qe=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Dt({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:re(e)}),ie=e=>x("getEmbeddings2dTsne",e),Fe=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Lt({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:ie(e)}),oe=e=>x("getMetadataInfo",e),ue=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:n}=await Ct({...e,...t[0],signal:s,throwOnError:!0});return n},queryKey:oe(e)}),gt=Kt(!1),ce=async e=>{if(nt(gt))return;const t=ue({path:{dataset_id:e}});$t(t).subscribe(n=>{if(n.data){const o=n.data,{updateMetadataBounds:h,updateMetadataValues:l,updateMetadataInfo:m}=rt(),S={},I={};o.forEach(u=>{(u.type==="integer"||u.type==="float")&&u.min!=null&&u.max!=null&&(S[u.name]={min:u.min,max:u.max},I[u.name]={min:u.min,max:u.max})}),h(S),l(I),m(o),gt.set(!0)}})},he=e=>{const t=[],{metadataBounds:s}=rt();for(const[n,o]of Object.entries(e)){const l=nt(s)[n];l&&(o.min>l.min&&t.push({key:n,value:o.min,op:">="}),o.max<l.max&&t.push({key:n,value:o.max,op:"<="}))}return t},Ae=e=>{e&&ce(e);const{metadataBounds:t,metadataValues:s,metadataInfo:n,updateMetadataValues:o,updateMetadataBounds:h,updateMetadataInfo:l}=rt();return{metadataBounds:t,metadataValues:s,metadataInfo:n,updateMetadataValues:o,updateMetadataBounds:h,updateMetadataInfo:l,createMetadataFilters:he}};export{Nt as Q,Ae as a,Ie as b,he as c,we as d,Ee as e,Oe as f,$t as g,Ce as h,pe as i,Fe as j,Zt as k,Xt as l,Se as m,Yt as n,Re as o,ve as p,Qe as q,ge as r,Jt as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var _e=Object.defineProperty;var Ct=e=>{throw TypeError(e)};var pe=(e,t,s)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var N=(e,t,s)=>pe(e,typeof t!="symbol"?t+"":t,s),ht=(e,t,s)=>t.has(e)||Ct("Cannot "+s);var S=(e,t,s)=>(ht(e,t,"read from private field"),s?s.call(e):t.get(e)),U=(e,t,s)=>t.has(e)?Ct("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Q=(e,t,s,r)=>(ht(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s),V=(e,t,s)=>(ht(e,t,"access private method"),s);import{aR as be,aS as ye,aT as me,F as ot,G as C,H as Bt,O as St,P as B,Q as xt,R as Jt,V as Y,U as Qt,T as Xt,M as gt,Z as we,g as x,ac as Se,J as Ae,K as Te,L as Ot,N as z,a3 as Pe,aJ as Ee,ap as Lt,W as Ie,an as Mt,aH as Zt,C as zt,aU as ut,S as Wt,aV as ft,aW as Ne,aX as vt,al as tt,az as Ce,aY as Oe,aG as Le,aZ as Me,E as Re,x as te,a_ as ee,a$ as ke,a4 as se,b0 as De,b1 as Fe,v as Ge,b2 as He,b3 as Ue,b4 as Ve,b5 as qe,b6 as $e,b7 as je,b8 as Ke,b9 as Ye,aP as Be,aO as xe,o as re,m as R,w as lt,ak as Rt,aa as kt,Y as Dt,h as Ft,b as Je}from"./Frwd2CjB.js";import{c as Qe,d as Xe}from"./Dug7Bq1S.js";import{i as Ze,n as ze,a as We}from"./H60ATh8g.js";import{c as ie}from"./DzX_yyqb.js";import{o as ts}from"./D5w4xp5l.js";import{R as es,j as ss,e as rs,k as is,l as as,m as ns}from"./H4l0JFh9.js";function Gs(e,t,s){C&&Bt();var r=e,i=Qt,n,a,u=null,h=be()?ye:me;function v(){n&&Xt(n),u!==null&&(u.lastChild.remove(),r.before(u),u=null),n=a}ot(()=>{if(h(i,i=t())){var p=r,y=Jt();y&&(u=document.createDocumentFragment(),u.append(p=St())),a=B(()=>s(p)),y?xt.add_callback(v):v()}}),C&&(r=Y)}function Hs(e,t){return t}function os(e,t,s){for(var r=e.items,i=[],n=t.length,a=0;a<n;a++)Oe(t[a].e,i,!0);var u=n>0&&i.length===0&&s!==null;if(u){var h=s.parentNode;Le(h),h.append(s),r.clear(),k(e,t[0].prev,t[n-1].next)}Me(i,()=>{for(var v=0;v<n;v++){var p=t[v];u||(r.delete(p.k),k(e,p.prev,p.next)),tt(p.e,!u)}})}function Us(e,t,s,r,i,n=null){var a=e,u={flags:t,items:new Map,first:null},h=(t&ee)!==0;if(h){var v=e;a=C?gt(we(v)):v.appendChild(St())}C&&Bt();var p=null,y=!1,g=new Map,A=Se(()=>{var T=s();return zt(T)?T:T==null?[]:Zt(T)}),c,_;function d(){us(_,c,u,g,a,i,t,r,s),n!==null&&(c.length===0?p?Wt(p):p=B(()=>n(a)):p!==null&&Xt(p,()=>{p=null}))}ot(()=>{_??(_=Re),c=x(A);var T=c.length;if(y&&T===0)return;y=T===0;let P=!1;if(C){var m=Ae(a)===Te;m!==(T===0)&&(a=Ot(),gt(a),z(!1),P=!0)}if(C){for(var b=null,w,o=0;o<T;o++){if(Y.nodeType===Pe&&Y.data===Ee){a=Y,P=!0,z(!1);break}var f=c[o],l=r(f,o);w=yt(Y,u,b,null,f,l,o,i,t,s),u.items.set(l,w),b=w}T>0&>(Ot())}if(C)T===0&&n&&(p=B(()=>n(a)));else if(Jt()){var E=new Set,I=xt;for(o=0;o<T;o+=1){f=c[o],l=r(f,o);var H=u.items.get(l)??g.get(l);H?t&(ft|ut)&&ae(H,f,o,t):(w=yt(null,u,null,null,f,l,o,i,t,s,!0),g.set(l,w)),E.add(l)}for(const[L,it]of u.items)E.has(L)||I.skipped_effects.add(it.e);I.add_callback(d)}else d();P&&z(!0),x(A)}),C&&(a=Y)}function us(e,t,s,r,i,n,a,u,h){var Tt,Pt,Et,It;var v=(a&ke)!==0,p=(a&(ft|ut))!==0,y=t.length,g=s.items,A=s.first,c=A,_,d=null,T,P=[],m=[],b,w,o,f;if(v)for(f=0;f<y;f+=1)b=t[f],w=u(b,f),o=g.get(w),o!==void 0&&((Tt=o.a)==null||Tt.measure(),(T??(T=new Set)).add(o));for(f=0;f<y;f+=1){if(b=t[f],w=u(b,f),o=g.get(w),o===void 0){var l=r.get(w);if(l!==void 0){r.delete(w),g.set(w,l);var E=d?d.next:c;k(s,d,l),k(s,l,E),_t(l,E,i),d=l}else{var I=c?c.e.nodes_start:i;d=yt(I,s,d,d===null?s.first:d.next,b,w,f,n,a,h)}g.set(w,d),P=[],m=[],c=d.next;continue}if(p&&ae(o,b,f,a),o.e.f&vt&&(Wt(o.e),v&&((Pt=o.a)==null||Pt.unfix(),(T??(T=new Set)).delete(o))),o!==c){if(_!==void 0&&_.has(o)){if(P.length<m.length){var H=m[0],L;d=H.prev;var it=P[0],ct=P[P.length-1];for(L=0;L<P.length;L+=1)_t(P[L],H,i);for(L=0;L<m.length;L+=1)_.delete(m[L]);k(s,it.prev,ct.next),k(s,d,it),k(s,ct,H),c=H,d=ct,f-=1,P=[],m=[]}else _.delete(o),_t(o,c,i),k(s,o.prev,o.next),k(s,o,d===null?s.first:d.next),k(s,d,o),d=o;continue}for(P=[],m=[];c!==null&&c.k!==w;)c.e.f&vt||(_??(_=new Set)).add(c),m.push(c),c=c.next;if(c===null)continue;o=c}P.push(o),d=o,c=o.next}if(c!==null||_!==void 0){for(var J=_===void 0?[]:Zt(_);c!==null;)c.e.f&vt||J.push(c),c=c.next;var dt=J.length;if(dt>0){var ge=a&ee&&y===0?i:null;if(v){for(f=0;f<dt;f+=1)(Et=J[f].a)==null||Et.measure();for(f=0;f<dt;f+=1)(It=J[f].a)==null||It.fix()}os(s,J,ge)}}v&&te(()=>{var Nt;if(T!==void 0)for(o of T)(Nt=o.a)==null||Nt.apply()}),e.first=s.first&&s.first.e,e.last=d&&d.e;for(var ve of r.values())tt(ve.e);r.clear()}function ae(e,t,s,r){r&ft&&Lt(e.v,t),r&ut?Lt(e.i,s):e.i=s}function yt(e,t,s,r,i,n,a,u,h,v,p){var y=(h&ft)!==0,g=(h&Ne)===0,A=y?g?Ie(i,!1,!1):Mt(i):i,c=h&ut?Mt(a):a,_={i:c,v:A,k:n,a:null,e:null,prev:s,next:r};try{if(e===null){var d=document.createDocumentFragment();d.append(e=St())}return _.e=B(()=>u(e,A,c,v),C),_.e.prev=s&&s.e,_.e.next=r&&r.e,s===null?p||(t.first=_):(s.next=_,s.e.next=_.e),r!==null&&(r.prev=_,r.e.prev=_.e),_}finally{}}function _t(e,t,s){for(var r=e.next?e.next.e.nodes_start:s,i=t?t.e.nodes_start:s,n=e.e.nodes_start;n!==null&&n!==r;){var a=Ce(n);i.before(n),n=a}}function k(e,t,s){t===null?e.first=s:(t.next=s,t.e.next=s&&s.e),s!==null&&(s.prev=t,s.e.prev=t&&t.e)}function fs(e,t){var s=void 0,r;ot(()=>{s!==(s=t())&&(r&&(tt(r),r=null),s&&(r=B(()=>{se(()=>s(e))})))})}function ne(e){var t,s,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=ne(e[t]))&&(r&&(r+=" "),r+=s)}else for(s in e)e[s]&&(r&&(r+=" "),r+=s);return r}function ls(){for(var e,t,s=0,r="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=ne(e))&&(r&&(r+=" "),r+=t);return r}function cs(e){return typeof e=="object"?ls(e):e??""}const Gt=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function ds(e,t,s){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),s){for(var i in s)if(s[i])r=r?r+" "+i:i;else if(r.length)for(var n=i.length,a=0;(a=r.indexOf(i,a))>=0;){var u=a+n;(a===0||Gt.includes(r[a-1]))&&(u===r.length||Gt.includes(r[u]))?r=(a===0?"":r.substring(0,a))+r.substring(u+1):a=u}}return r===""?null:r}function Ht(e,t=!1){var s=t?" !important;":";",r="";for(var i in e){var n=e[i];n!=null&&n!==""&&(r+=" "+i+": "+n+s)}return r}function pt(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function hs(e,t){if(t){var s="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,a=0,u=!1,h=[];r&&h.push(...Object.keys(r).map(pt)),i&&h.push(...Object.keys(i).map(pt));var v=0,p=-1;const _=e.length;for(var y=0;y<_;y++){var g=e[y];if(u?g==="/"&&e[y-1]==="*"&&(u=!1):n?n===g&&(n=!1):g==="/"&&e[y+1]==="*"?u=!0:g==='"'||g==="'"?n=g:g==="("?a++:g===")"&&a--,!u&&n===!1&&a===0){if(g===":"&&p===-1)p=y;else if(g===";"||y===_-1){if(p!==-1){var A=pt(e.substring(v,p).trim());if(!h.includes(A)){g!==";"&&y++;var c=e.substring(v,y).trim();s+=" "+c+";"}}v=y+1,p=-1}}}}return r&&(s+=Ht(r)),i&&(s+=Ht(i,!0)),s=s.trim(),s===""?null:s}return e==null?null:String(e)}function gs(e,t,s,r,i,n){var a=e.__className;if(C||a!==s||a===void 0){var u=ds(s,r,n);(!C||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):t?e.className=u:e.setAttribute("class",u)),e.__className=s}else if(n&&i!==n)for(var h in n){var v=!!n[h];(i==null||v!==!!i[h])&&e.classList.toggle(h,v)}return n}function bt(e,t={},s,r){for(var i in s){var n=s[i];t[i]!==n&&(s[i]==null?e.style.removeProperty(i):e.style.setProperty(i,n,r))}}function vs(e,t,s,r){var i=e.__style;if(C||i!==t){var n=hs(t,r);(!C||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}else r&&(Array.isArray(r)?(bt(e,s==null?void 0:s[0],r[0]),bt(e,s==null?void 0:s[1],r[1],"important")):bt(e,s,r));return r}function mt(e,t,s=!1){if(e.multiple){if(t==null)return;if(!zt(t))return De();for(var r of e.options)r.selected=t.includes(Ut(r));return}for(r of e.options){var i=Ut(r);if(Fe(i,t)){r.selected=!0;return}}(!s||t!==void 0)&&(e.selectedIndex=-1)}function _s(e){var t=new MutationObserver(()=>{mt(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ge(()=>{t.disconnect()})}function Ut(e){return"__value"in e?e.__value:e.value}const X=Symbol("class"),Z=Symbol("style"),oe=Symbol("is custom element"),ue=Symbol("is html");function ps(e){if(C){var t=!1,s=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;at(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;at(e,"checked",null),e.checked=i}}};e.__on_r=s,te(s),Ke()}}function Vs(e,t){var s=At(e);s.value===(s.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function bs(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function at(e,t,s,r){var i=At(e);C&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=s)&&(t==="loading"&&(e[Ye]=s),s==null?e.removeAttribute(t):typeof s!="string"&&fe(e).includes(t)?e[t]=s:e.setAttribute(t,s))}function ys(e,t,s,r,i=!1,n=!1){if(C&&i&&e.tagName==="INPUT"){var a=e,u=a.type==="checkbox"?"defaultChecked":"defaultValue";u in s||ps(a)}var h=At(e),v=h[oe],p=!h[ue];let y=C&&v;y&&z(!1);var g=t||{},A=e.tagName==="OPTION";for(var c in t)c in s||(s[c]=null);s.class?s.class=cs(s.class):(r||s[X])&&(s.class=null),s[Z]&&(s.style??(s.style=null));var _=fe(e);for(const o in s){let f=s[o];if(A&&o==="value"&&f==null){e.value=e.__value="",g[o]=f;continue}if(o==="class"){var d=e.namespaceURI==="http://www.w3.org/1999/xhtml";gs(e,d,f,r,t==null?void 0:t[X],s[X]),g[o]=f,g[X]=s[X];continue}if(o==="style"){vs(e,f,t==null?void 0:t[Z],s[Z]),g[o]=f,g[Z]=s[Z];continue}var T=g[o];if(!(f===T&&!(f===void 0&&e.hasAttribute(o)))){g[o]=f;var P=o[0]+o[1];if(P!=="$$")if(P==="on"){const l={},E="$$"+o;let I=o.slice(2);var m=We(I);if(Ze(I)&&(I=I.slice(0,-7),l.capture=!0),!m&&T){if(f!=null)continue;e.removeEventListener(I,g[E],l),g[E]=null}if(f!=null)if(m)e[`__${I}`]=f,Xe([I]);else{let H=function(L){g[o].call(this,L)};g[E]=Qe(I,e,H,l)}else m&&(e[`__${I}`]=void 0)}else if(o==="style")at(e,o,f);else if(o==="autofocus")je(e,!!f);else if(!v&&(o==="__value"||o==="value"&&f!=null))e.value=e.__value=f;else if(o==="selected"&&A)bs(e,f);else{var b=o;p||(b=ze(b));var w=b==="defaultValue"||b==="defaultChecked";if(f==null&&!v&&!w)if(h[o]=null,b==="value"||b==="checked"){let l=e;const E=t===void 0;if(b==="value"){let I=l.defaultValue;l.removeAttribute(b),l.defaultValue=I,l.value=l.__value=E?I:null}else{let I=l.defaultChecked;l.removeAttribute(b),l.defaultChecked=I,l.checked=E?I:!1}}else e.removeAttribute(o);else w||_.includes(b)&&(v||typeof f!="string")?(e[b]=f,b in h&&(h[b]=Qt)):typeof f!="function"&&at(e,b,f)}}}return y&&z(!0),g}function qs(e,t,s=[],r=[],i,n=!1,a=!1){qe(s,r,u=>{var h=void 0,v={},p=e.nodeName==="SELECT",y=!1;if(ot(()=>{var A=t(...u.map(x)),c=ys(e,h,A,i,n,a);y&&p&&"value"in A&&mt(e,A.value);for(let d of Object.getOwnPropertySymbols(v))A[d]||tt(v[d]);for(let d of Object.getOwnPropertySymbols(A)){var _=A[d];d.description===$e&&(!h||_!==h[d])&&(v[d]&&tt(v[d]),v[d]=B(()=>fs(e,()=>_))),c[d]=_}h=c}),p){var g=e;se(()=>{mt(g,h.value,!0),_s(g)})}y=!0})}function At(e){return e.__attributes??(e.__attributes={[oe]:e.nodeName.includes("-"),[ue]:e.namespaceURI===He})}var Vt=new Map;function fe(e){var t=e.getAttribute("is")||e.nodeName,s=Vt.get(t);if(s)return s;Vt.set(t,s=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Ve(i);for(var a in r)r[a].set&&s.push(a);i=Ue(i)}return s}const ms="data-no-translate",$s="paraglide:lang",js="paraglide_lang",le={},ws=()=>xe(le),Ks=e=>{Be(le,e)};function Ys(){const e=ws();function t(r,i){return typeof r!="string"||!e?r:e.translateHref(r,i)}function s(r,i){if(r[ms])return r;for(const{attribute_name:n,lang_attribute_name:a}of i)if(n in r){const u=r[n],h=a?r[a]:void 0;r[n]=t(u,typeof h=="string"?h:void 0)}return r}return[t,s]}const ce={setting_id:"00000000-0000-0000-0000-000000000000",grid_view_sample_rendering:"contain",key_hide_annotations:"v",key_go_back:"Escape",show_annotation_text_labels:!0,created_at:new Date().toISOString(),updated_at:new Date().toISOString()},G=lt(ce),$=lt(!1),K=lt(null),W=lt(!1),qt=re(G,e=>e.grid_view_sample_rendering||"contain"),$t=re(G,e=>e.show_annotation_text_labels??!0),jt=async()=>{if(G.set(ce),!(R(W)||R($))){$.set(!0),K.set(null);try{const{data:e}=await ts();e&&(G.set(e),W.set(!0))}catch(e){K.set(String(e))}finally{$.set(!1)}}},de=async e=>{$.set(!0),K.set(null);try{const t=R(G),s={setting_id:t.setting_id||"",grid_view_sample_rendering:e.grid_view_sample_rendering||t.grid_view_sample_rendering||"contain",key_hide_annotations:e.key_hide_annotations||t.key_hide_annotations||"v",key_go_back:e.key_go_back||t.key_go_back||"Escape",show_annotation_text_labels:e.show_annotation_text_labels!==void 0?e.show_annotation_text_labels:t.show_annotation_text_labels??!0,created_at:t.created_at||new Date().toISOString(),updated_at:new Date().toISOString()},r=await ie.POST("/api/settings",{body:s,headers:{"Content-Type":"application/json"}});if(r.error){const i=JSON.stringify(r.error);return console.error("Settings API error:",i),K.set(i),{success:!1,error:i}}return r.data?(G.set(r.data),{success:!0}):{success:!1,error:"No data returned from API"}}catch(t){const s=String(t);return console.error("Error saving settings:",s),K.set(s),{success:!1,error:s}}finally{$.set(!1)}},Ss=async e=>de({grid_view_sample_rendering:e}),As=async e=>{const t=!!e,r={...R(G),show_annotation_text_labels:t};try{const i=await ie.POST("/api/settings",{body:r,headers:{"Content-Type":"application/json"}});return i.error?(console.error("API error saving setting:",i.error),{success:!1,error:JSON.stringify(i.error)}):i.data?(G.set(i.data),{success:!0}):{success:!1,error:"No data returned from API"}}catch(i){return console.error("Error saving annotation text label setting:",i),{success:!1,error:String(i)}}};function Bs(){return!R(W)&&!R($)&&jt(),{settingsStore:G,isLoadingStore:$,errorStore:K,isLoadedStore:W,gridViewSampleRenderingStore:qt,showAnnotationTextLabelsStore:$t,initSettings:jt,saveSettings:de,updateGridViewSampleRendering:Ss,updateShowAnnotationTextLabels:As,get settings(){return R(G)},get isLoading(){return R($)},get error(){return R(K)},get isLoaded(){return R(W)},get getGridViewSampleRendering(){return R(qt)},get getShowAnnotationTextLabels(){return R($t)}}}var D,O,j,F,q,Yt,xs=(Yt=class extends es{constructor(t){super();U(this,F);U(this,D);U(this,O);U(this,j);this.mutationId=t.mutationId,Q(this,O,t.mutationCache),Q(this,D,[]),this.state=t.state||Ts(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,D).includes(t)||(S(this,D).push(t),this.clearGcTimeout(),S(this,O).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,D,S(this,D).filter(s=>s!==t)),this.scheduleGc(),S(this,O).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,D).length||(this.state.status==="pending"?this.scheduleGc():S(this,O).remove(this))}continue(){var t;return((t=S(this,j))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,n,a,u,h,v,p,y,g,A,c,_,d,T,P,m,b,w,o,f;Q(this,j,ss({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(l,E)=>{V(this,F,q).call(this,{type:"failed",failureCount:l,error:E})},onPause:()=>{V(this,F,q).call(this,{type:"pause"})},onContinue:()=>{V(this,F,q).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,O).canRun(this)}));const s=this.state.status==="pending",r=!S(this,j).canStart();try{if(!s){V(this,F,q).call(this,{type:"pending",variables:t,isPaused:r}),await((n=(i=S(this,O).config).onMutate)==null?void 0:n.call(i,t,this));const E=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t));E!==this.state.context&&V(this,F,q).call(this,{type:"pending",context:E,variables:t,isPaused:r})}const l=await S(this,j).start();return await((v=(h=S(this,O).config).onSuccess)==null?void 0:v.call(h,l,t,this.state.context,this)),await((y=(p=this.options).onSuccess)==null?void 0:y.call(p,l,t,this.state.context)),await((A=(g=S(this,O).config).onSettled)==null?void 0:A.call(g,l,null,this.state.variables,this.state.context,this)),await((_=(c=this.options).onSettled)==null?void 0:_.call(c,l,null,t,this.state.context)),V(this,F,q).call(this,{type:"success",data:l}),l}catch(l){try{throw await((T=(d=S(this,O).config).onError)==null?void 0:T.call(d,l,t,this.state.context,this)),await((m=(P=this.options).onError)==null?void 0:m.call(P,l,t,this.state.context)),await((w=(b=S(this,O).config).onSettled)==null?void 0:w.call(b,void 0,l,this.state.variables,this.state.context,this)),await((f=(o=this.options).onSettled)==null?void 0:f.call(o,void 0,l,t,this.state.context)),l}finally{V(this,F,q).call(this,{type:"error",error:l})}}finally{S(this,O).runNext(this)}}},D=new WeakMap,O=new WeakMap,j=new WeakMap,F=new WeakSet,q=function(t){const s=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),rs.batch(()=>{S(this,D).forEach(r=>{r.onMutationUpdate(t)}),S(this,O).notify({mutation:this,type:"updated",action:t})})},Yt);function Ts(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function Js(e){return{onFetch:(t,s)=>{var p,y,g,A,c;const r=t.options,i=(g=(y=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:y.fetchMore)==null?void 0:g.direction,n=((A=t.state.data)==null?void 0:A.pages)||[],a=((c=t.state.data)==null?void 0:c.pageParams)||[];let u={pages:[],pageParams:[]},h=0;const v=async()=>{let _=!1;const d=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?_=!0:t.signal.addEventListener("abort",()=>{_=!0}),t.signal)})},T=is(t.options,t.fetchOptions),P=async(m,b,w)=>{if(_)return Promise.reject();if(b==null&&m.pages.length)return Promise.resolve(m);const o={client:t.client,queryKey:t.queryKey,pageParam:b,direction:w?"backward":"forward",meta:t.options.meta};d(o);const f=await T(o),{maxPages:l}=t.options,E=w?as:ns;return{pages:E(m.pages,f,l),pageParams:E(m.pageParams,b,l)}};if(i&&n.length){const m=i==="backward",b=m?he:wt,w={pages:n,pageParams:a},o=b(r,w);u=await P(w,o,m)}else{const m=e??n.length;do{const b=h===0?a[0]??r.initialPageParam:wt(r,u);if(h>0&&b==null)break;u=await P(u,b),h++}while(h<m)}return u};t.options.persister?t.fetchFn=()=>{var _,d;return(d=(_=t.options).persister)==null?void 0:d.call(_,v,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s)}:t.fetchFn=v}}}function wt(e,{pages:t,pageParams:s}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function he(e,{pages:t,pageParams:s}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,s[0],s):void 0}function Qs(e,t){return t?wt(e,t)!=null:!1}function Xs(e,t){return!t||!e.getPreviousPageParam?!1:he(e,t)!=null}function Zs(...e){return e.filter(Boolean).join(" ")}const Ps=typeof document<"u";let Kt=0;var et,st,rt;class Es{constructor(){U(this,et,Rt(kt([])));U(this,st,Rt(kt([])));U(this,rt,t=>{const s=this.toasts.findIndex(r=>r.id===t);return s===-1?null:s});N(this,"addToast",t=>{Ps&&this.toasts.unshift(t)});N(this,"updateToast",({id:t,data:s,type:r,message:i})=>{const n=this.toasts.findIndex(u=>u.id===t),a=this.toasts[n];this.toasts[n]={...a,...s,id:t,title:i,type:r,updated:!0}});N(this,"create",t=>{var u;const{message:s,...r}=t,i=typeof(t==null?void 0:t.id)=="number"||t.id&&((u=t.id)==null?void 0:u.length)>0?t.id:Kt++,n=t.dismissable===void 0?!0:t.dismissable,a=t.type===void 0?"default":t.type;return Ft(()=>{this.toasts.find(v=>v.id===i)?this.updateToast({id:i,data:t,type:a,message:s,dismissable:n}):this.addToast({...r,id:i,title:s,dismissable:n,type:a})}),i});N(this,"dismiss",t=>(Ft(()=>{if(t===void 0){this.toasts=this.toasts.map(r=>({...r,dismiss:!0}));return}const s=this.toasts.findIndex(r=>r.id===t);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),t));N(this,"remove",t=>{if(t===void 0){this.toasts=[];return}const s=S(this,rt).call(this,t);if(s!==null)return this.toasts.splice(s,1),t});N(this,"message",(t,s)=>this.create({...s,type:"default",message:t}));N(this,"error",(t,s)=>this.create({...s,type:"error",message:t}));N(this,"success",(t,s)=>this.create({...s,type:"success",message:t}));N(this,"info",(t,s)=>this.create({...s,type:"info",message:t}));N(this,"warning",(t,s)=>this.create({...s,type:"warning",message:t}));N(this,"loading",(t,s)=>this.create({...s,type:"loading",message:t}));N(this,"promise",(t,s)=>{if(!s)return;let r;s.loading!==void 0&&(r=this.create({...s,promise:t,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const i=t instanceof Promise?t:t();let n=r!==void 0;return i.then(a=>{if(typeof a=="object"&&a&&"ok"in a&&typeof a.ok=="boolean"&&!a.ok){n=!1;const u=Is(a);this.create({id:r,type:"error",message:u})}else if(s.success!==void 0){n=!1;const u=typeof s.success=="function"?s.success(a):s.success;this.create({id:r,type:"success",message:u})}}).catch(a=>{if(s.error!==void 0){n=!1;const u=typeof s.error=="function"?s.error(a):s.error;this.create({id:r,type:"error",message:u})}}).finally(()=>{var a;n&&(this.dismiss(r),r=void 0),(a=s.finally)==null||a.call(s)}),r});N(this,"custom",(t,s)=>{const r=(s==null?void 0:s.id)||Kt++;return this.create({component:t,id:r,...s}),r});N(this,"removeHeight",t=>{this.heights=this.heights.filter(s=>s.toastId!==t)});N(this,"setHeight",t=>{const s=S(this,rt).call(this,t.toastId);if(s===null){this.heights.push(t);return}this.heights[s]=t});N(this,"reset",()=>{this.toasts=[],this.heights=[]})}get toasts(){return x(S(this,et))}set toasts(t){Dt(S(this,et),t,!0)}get heights(){return x(S(this,st))}set heights(t){Dt(S(this,st),t,!0)}}et=new WeakMap,st=new WeakMap,rt=new WeakMap;function Is(e){return e&&typeof e=="object"&&"status"in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}const M=new Es;function Ns(e,t){return M.create({message:e,...t})}var nt;class zs{constructor(){U(this,nt,Je(()=>M.toasts.filter(t=>!t.dismiss)))}get toasts(){return x(S(this,nt))}}nt=new WeakMap;const Cs=Ns,Ws=Object.assign(Cs,{success:M.success,info:M.info,warning:M.warning,error:M.error,custom:M.custom,message:M.message,promise:M.promise,dismiss:M.dismiss,loading:M.loading,getActiveToasts:()=>M.toasts.filter(e=>!e.dismiss)});export{js as L,xs as M,zs as S,qs as a,gs as b,cs as c,vs as d,Us as e,Ks as f,Ys as g,$s as h,Hs as i,Js as j,Gs as k,M as l,Zs as m,Z as n,ls as o,Xs as p,Qs as q,Ts as r,at as s,Ws as t,Bs as u,ps as v,Vs as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as L,G as R,H as N,I as Y,O as j,P as B,Q as m,R as F,V as C,T as K,a4 as M,a5 as U,h as I,x as q,a6 as b,a7 as S,a8 as G,a9 as $,g,aa as z,Y as H,E as Q,ab as V,l as Z,ac as J,ad as W,ae as X,af as k,ag as ee,ah as re,ai as y,aj as v}from"./Frwd2CjB.js";import{c as ne}from"./-DXuGN29.js";import{l as te}from"./DIeogL5L.js";function le(e,r,t){R&&N();var n=e,i,a,u=null,f=null;function c(){a&&(K(a),a=null),u&&(u.lastChild.remove(),n.before(u),u=null),a=f,f=null}L(()=>{if(i!==(i=r())){var d=F();if(i){var l=n;d&&(u=document.createDocumentFragment(),u.append(l=j()),a&&m.skipped_effects.add(a)),f=B(()=>t(l,i))}d?m.add_callback(c):c()}},Y),R&&(n=C)}function x(e,r){return e===r||(e==null?void 0:e[b])===r}function ce(e={},r,t,n){return M(()=>{var i,a;return U(()=>{i=a,a=[],I(()=>{e!==t(...a)&&(r(e,...a),i&&x(t(...i),e)&&r(null,...i))})}),()=>{q(()=>{a&&x(t(...a),e)&&r(null,...a)})}}),e}const ie={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function oe(e,r,t){return new Proxy({props:e,exclude:r},ie)}const ae={get(e,r){let t=e.props.length;for(;t--;){let n=e.props[t];if(v(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,t){let n=e.props.length;for(;n--;){let i=e.props[n];v(i)&&(i=i());const a=S(i,r);if(a&&a.set)return a.set(t),!0}return!1},getOwnPropertyDescriptor(e,r){let t=e.props.length;for(;t--;){let n=e.props[t];if(v(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=S(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===b||r===y)return!1;for(let t of e.props)if(v(t)&&(t=t()),t!=null&&r in t)return!0;return!1},ownKeys(e){const r=[];for(let t of e.props)if(v(t)&&(t=t()),!!t){for(const n in t)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(t))r.includes(n)||r.push(n)}return r}};function de(...e){return new Proxy({props:e},ae)}function pe(e,r,t,n){var w;var i=!te||(t&X)!==0,a=(t&W)!==0,u=(t&ee)!==0,f=n,c=!0,d=()=>(c&&(c=!1,f=u?I(n):n),f),l;if(a){var T=b in e||y in e;l=((w=S(e,r))==null?void 0:w.set)??(T&&r in e?s=>e[r]=s:void 0)}var p,O=!1;a?[p,O]=ne(()=>e[r]):p=e[r],p===void 0&&n!==void 0&&(p=d(),l&&(i&&G(),l(p)));var o;if(i?o=()=>{var s=e[r];return s===void 0?d():(c=!0,s)}:o=()=>{var s=e[r];return s!==void 0&&(f=void 0),s===void 0?f:s},i&&!(t&$))return o;if(l){var A=e.$$legacy;return function(s,h){return arguments.length>0?((!i||!h||A||O)&&l(h?o():s),s):o()}}var P=!1,_=(t&k?Z:J)(()=>(P=!1,o()));a&&g(_);var D=Q;return function(s,h){if(arguments.length>0){const E=h?g(_):i&&a?z(s):s;return H(_,E),P=!0,f!==void 0&&(f=E),s}return re&&P||D.f&V?_.v:g(_)}}export{ce as b,le as c,pe as p,oe as r,de as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import"./69_IOA4Y.js";import{b as w}from"./DQ8aZ1o-.js";import{p as X}from"./B7302SU7.js";import{m as H}from"./Frwd2CjB.js";let P;const D="en",k=["en","de"];let L=()=>D;const Q=t=>{typeof t=="function"?L=C(t):L=C(()=>t),P!==void 0&&P(L())};function C(t){return()=>{const n=t();if(!A(n))throw new Error("languageTag() didn't return a valid language tag. Check your setLanguageTag call");return n}}const Y=t=>{P=t};function A(t){return k.includes(t)}const q=Object.freeze(Object.defineProperty({__proto__:null,availableLanguageTags:k,isAvailableLanguageTag:A,get languageTag(){return L},onSetLanguageTag:Y,setLanguageTag:Q,sourceLanguageTag:D},Symbol.toStringTag,{value:"Module"}));function G(t,n){if(t==="")return"";const e=new URL(t,n).pathname;return e.endsWith("/")?e.slice(0,-1):e}function S(t,n){const e=V(t),o=J(e,n),[s,a]=Z(o);return[s,a]}const B=(t,n,e)=>[n,t,e??""].filter(o=>o!=="/").join("")||"/";function J(t,n){const e=t.replace(n,"");return e.startsWith("/")?e:`/${e}`}function Z(t){const e=["/.html__data.json","/__data.json"].find(o=>t.endsWith(o));return e?[t.slice(0,-e.length)||"/",e]:[t,void 0]}function V(t){try{return decodeURI(t)}catch{return t}}const tt=t=>({url:n})=>{try{const[e,o]=S(n.pathname,w),s=t.getLanguageFromLocalisedPath(e);if(!s)return n.pathname;const a=t.getCanonicalPath(e,s);return B(a,w,o)}catch{return n.pathname}};function et(t){return`/${t.split("/").filter(Boolean).join("/")}`}function nt(t){const n=t.map(e=>typeof e=="string"?o=>o===e:o=>e.test(o));return e=>n.some(o=>o(et(e)))}const T="rtl",R="ltr";function rt(t){try{const n=new Intl.Locale(t);return"textInfo"in n?n.textInfo.direction===T?T:R:n.getTextInfo().direction===T?T:R}catch{return R}}function ot(t){const n=t.map(e=>[e,rt(e)]);return Object.fromEntries(n)}const at=0,F=1,$=2,it=4,p=0,v=1,b=2;function st(t){const n=ct(ut);return t.sort((e,o)=>{var s,a,i,c,r,u;const f=z(e).map(n),l=z(o).map(n);for(let g=0;g<Math.max(f.length,l.length);g+=1){const m=f[g],x=l[g];if(!m)return-1;if(!x)return 1;for(let _=0;_<Math.max(m.length,x.length);_+=1){const h=m[_],d=x[_];if((h==null?void 0:h[p])||(d==null?void 0:d[p])){if(!h)return-1;if(!d)return 1;const y=((s=m[_+1])==null?void 0:s[v])||((i=(a=f[g+1])==null?void 0:a[0])==null?void 0:i[v]),I=((c=x[_+1])==null?void 0:c[v])||((u=(r=l[g+1])==null?void 0:r[0])==null?void 0:u[v]),K=y&&I,O=y&&!I,W=!y&&I;if((h[p]&&d[p])===$){if(K)continue;if(O)return-1;if(W)return 1}if(h[p]===$)return O?-1:1;if(d[p]===$)return W?1:-1;if(h[b]!==d[b])return(-1)**+h[b];if(h[p]!==d[p])return(-1)**+(h[p]>d[p])}else if((h==null?void 0:h[v])!==(d==null?void 0:d[v]))return lt(h[v],d[v])}}return e<o?1:-1})}function ct(t){const n=new Map;return e=>(n.has(e)||n.set(e,t(e)),n.get(e))}function ut(t){const n=[];let e=0;for(;e<=t.length;){const o=t.indexOf("[",e),s=o===-1;if(n.push([at,t.slice(e,s?void 0:o),!1]),s)break;const a=t[o+1]==="["?F:t[o+1]==="."?$:it,i=a===F?"]]":"]",c=t.indexOf(i,o);if(c===-1)throw new Error(`Invalid route definition ${t}`);const r=t.slice(o,e=c+i.length);n.push([a,r,r.includes("=")])}return n}const z=t=>t.replace(/\[\[[^\]]+\]\](?!$)/g,"").split("/").filter(Boolean);function lt(t,n){if(t===n)return 0;let e=0;for(;t[e]===n[e];)e++;return t[e]?n[e]?t[e]<n[e]?-1:1:-1:1}const ft=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function gt(t){const n=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${U(t).map(o=>{const s=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(s)return n.push({name:s[1],matcher:s[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(a)return n.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const i=o.split(/\[(.+?)\](?!\])/);return"/"+i.map((r,u)=>{if(u%2){if(r.startsWith("x+"))return j(String.fromCharCode(parseInt(r.slice(2),16)));if(r.startsWith("u+"))return j(String.fromCharCode(...r.slice(2).split("-").map(_=>parseInt(_,16))));const f=ft.exec(r);if(!f)throw new Error(`Invalid param: ${r}`);const[,l,g,m,x]=f;return n.push({name:m,matcher:x,optional:!!l,rest:!!g,chained:g?u===1&&i[0]==="":!1}),g?"(.*?)":l?"([^/]*)?":"([^/]+?)"}return j(r)}).join("")}).join("")}/?$`),params:n}}function ht(t,n,e){const o={},s=t.slice(1),a=s.filter(c=>c!==void 0);let i=0;for(const[c,r]of n.entries()){let u=s[c-i];if(r.chained&&r.rest&&i&&(u=s.slice(c-i,c+1).filter(l=>l).join("/"),i=0),u===void 0){r.rest&&(o[r.name]="");continue}if(r.matcher&&!e[r.matcher])return;if((e[r.matcher]??(()=>!0))(u)){o[r.name]=u;const l=n[c+1],g=s[c+1];l&&!l.rest&&l.optional&&g&&r.chained&&(i=0),!l&&!g&&Object.keys(o).length===a.length&&(i=0);continue}if(r.optional&&r.chained){i++;continue}return}if(!i)return o}function j(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const dt=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function M(t,n){return"/"+U(t).map(e=>e.replace(dt,(o,s,a,i)=>{const c=n[i];if(!c){if(s||a&&c!==void 0)return"";throw new Error(`Missing parameter '${i}' in route ${t}`)}if(c[0]=="/"||c.endsWith("/"))throw new Error(`Parameter '${i}' in route ${t} cannot start or end with a slash`);return c})).filter(Boolean).join("/")}function N(t,n,e){const o=st(n);for(const s of o){const a=gt(s),i=a.pattern.exec(pt(t));if(!i)continue;const c=ht(i,a.params,e);if(c)return{params:c,id:s}}}const pt=t=>t.endsWith("/")?t.slice(0,-1):t,U=t=>t.slice(1).split("/");function mt(t,n,e,o,s){function a(r){const f=r.split("/")[1];if(t.includes(f)&&(s==="always"||f!==n))return f;if(s==="never")return n}function i(r,u){const f=r.endsWith("/")&&r!=="/";r=f?r.slice(0,-1):r;let l=vt(r,u,e,o);return f&&(l+="/"),(s==="always"||u!==n)&&(l=`/${u}${l}`),l}function c(r,u){const f=r.endsWith("/")&&r!=="/";(s==="always"||u!==n)&&(r=r.replace(`/${u}`,"")||"/");const l=f;r=l?r.slice(0,-1):r;let g=_t(r,u,e,o);return l&&(g+="/"),g}return{getLanguageFromLocalisedPath:a,getLocalisedPath:i,getCanonicalPath:c}}function _t(t,n,e,o){for(const[s,a]of Object.entries(e)){if(!(n in a))continue;const i=a[n];if(!i)continue;const c=N(t,[i],o);if(c)return M(s,c.params)}return t}function vt(t,n,e,o){const s=N(t,Object.keys(e),o);if(!s)return t;const a=e[s.id];if(!a)return t;const i=a[n];return i?M(i,s.params):t}function xt(t,n){const e={},o=[],s=t.sourceLanguageTag,a={defaultLanguageTag:s,runtime:t,translations:e,matchers:{},exclude:nt(o),prefixDefaultLanguage:"never",textDirection:ot(t.availableLanguageTags),seo:{noAlternateLinks:!1}},i=mt(t.availableLanguageTags,s,a.translations,a.matchers,a.prefixDefaultLanguage);return Object.freeze(e),Object.freeze(a),{config:a,strategy:i,reroute:()=>tt(i),handle:()=>{throw new Error("")},getLanguageFromUrl(c){const r=E(w),[u]=S(c.pathname,r);return a.exclude(u)?a.defaultLanguageTag:i.getLanguageFromLocalisedPath(u)||a.defaultLanguageTag},resolveRoute(c,r=void 0){if(a.exclude(c))return c;const u=E(w),[f,l]=S(c,u);if(r=r??t.languageTag(),!c.startsWith(u))return c;const g=i.getLocalisedPath(f,r);return B(g,u,l)},route(c){const r=E(w),[u,f]=S(c,r),g=i.getLanguageFromLocalisedPath(u)||a.defaultLanguageTag,m=i.getCanonicalPath(u,g);return B(m,r,f)}}}function E(t){return t===""?"":t.startsWith("/")?t:G(t,new URL(H(X).url))}const It=xt(q);export{It as i,G as n,S as p,B as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{p as rt,g as e,ak as Q,u as ht,c as F,s as H,r as I,Y as X,t as G,b as R,a as nt,aM as dt,f as gt,aa as ft,aQ as mt}from"./Frwd2CjB.js";import{b as p,a as U}from"./CiaNZCBa.js";import{i as W,a as bt,s as yt}from"./-DXuGN29.js";import{s as l}from"./D_ynJAfY.js";import{p as C,b as lt}from"./Dafy4oEQ.js";import{J as it,K as xt,M as wt,o as vt,N as _t,w as $,O as Mt}from"./Cqo0Vpvt.js";import"./qIv1kPyv.js";import"./Bqz7dyEC.js";import"./D5w4xp5l.js";import"./DSxvnAMh.js";import"./69_IOA4Y.js";import{o as zt}from"./DQ8aZ1o-.js";import"./DzX_yyqb.js";import{s as J}from"./H60ATh8g.js";function tt(a,t,o=!1){const f={...a};if(o)return f.x=Math.round(Math.max(t.x,Math.min(f.x,t.x+t.width-f.width))),f.y=Math.round(Math.max(t.y,Math.min(f.y,t.y+t.height-f.height))),f;{const z=a.x,i=a.y,b=a.x+a.width,d=a.y+a.height,n=Math.max(t.x,z),u=Math.max(t.y,i),x=Math.min(t.x+t.width,b),s=Math.min(t.y+t.height,d),w={x:Math.round(n),y:Math.round(u),width:Math.round(x-n),height:Math.round(s-u)};return w.width=Math.max(1,w.width),w.height=Math.max(1,w.height),w}}function j(a){return typeof a=="string"?new it([[document.querySelector(a)]],[document.documentElement]):new it([[a]],xt)}function St(a){let t;for(;t=a.sourceEvent;)a=t;return a}function st(a,t){if(a=St(a),t===void 0&&(t=a.currentTarget),t){var o=t.ownerSVGElement||t;if(o.createSVGPoint){var c=o.createSVGPoint();return c.x=a.clientX,c.y=a.clientY,c=c.matrixTransform(t.getScreenCTM().inverse()),[c.x,c.y]}if(t.getBoundingClientRect){var f=t.getBoundingClientRect();return[a.clientX-f.left-t.clientLeft,a.clientY-f.top-t.clientTop]}}return[a.pageX,a.pageY]}const kt={passive:!1},V={capture:!0,passive:!1};function et(a){a.stopImmediatePropagation()}function Y(a){a.preventDefault(),a.stopImmediatePropagation()}function Et(a){var t=a.document.documentElement,o=j(a).on("dragstart.drag",Y,V);"onselectstart"in t?o.on("selectstart.drag",Y,V):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Dt(a,t){var o=a.document.documentElement,c=j(a).on("dragstart.drag",null);t&&(c.on("click.drag",Y,V),setTimeout(function(){c.on("click.drag",null)},0)),"onselectstart"in o?c.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}const K=a=>()=>a;function at(a,{sourceEvent:t,subject:o,target:c,identifier:f,active:z,x:i,y:b,dx:d,dy:n,dispatch:u}){Object.defineProperties(this,{type:{value:a,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:o,enumerable:!0,configurable:!0},target:{value:c,enumerable:!0,configurable:!0},identifier:{value:f,enumerable:!0,configurable:!0},active:{value:z,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:b,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:n,enumerable:!0,configurable:!0},_:{value:u}})}at.prototype.on=function(){var a=this._.on.apply(this._,arguments);return a===this._?this:a};function Rt(a){return!a.ctrlKey&&!a.button}function Nt(){return this.parentNode}function Tt(a,t){return t??{x:a.x,y:a.y}}function Ct(){return navigator.maxTouchPoints||"ontouchstart"in this}function ct(){var a=Rt,t=Nt,o=Tt,c=Ct,f={},z=wt("start","drag","end"),i=0,b,d,n,u,x=0;function s(r){r.on("mousedown.drag",w).filter(c).on("touchstart.drag",k).on("touchmove.drag",N,kt).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(r,m){if(!(u||!a.call(this,r,m))){var M=P(this,t.call(this,r,m),r,m,"mouse");M&&(j(r.view).on("mousemove.drag",_,V).on("mouseup.drag",T,V),Et(r.view),et(r),n=!1,b=r.clientX,d=r.clientY,M("start",r))}}function _(r){if(Y(r),!n){var m=r.clientX-b,M=r.clientY-d;n=m*m+M*M>x}f.mouse("drag",r)}function T(r){j(r.view).on("mousemove.drag mouseup.drag",null),Dt(r.view,n),Y(r),f.mouse("end",r)}function k(r,m){if(a.call(this,r,m)){var M=r.changedTouches,g=t.call(this,r,m),h=M.length,v,L;for(v=0;v<h;++v)(L=P(this,g,r,m,M[v].identifier,M[v]))&&(et(r),L("start",r,M[v]))}}function N(r){var m=r.changedTouches,M=m.length,g,h;for(g=0;g<M;++g)(h=f[m[g].identifier])&&(Y(r),h("drag",r,m[g]))}function D(r){var m=r.changedTouches,M=m.length,g,h;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),g=0;g<M;++g)(h=f[m[g].identifier])&&(et(r),h("end",r,m[g]))}function P(r,m,M,g,h,v){var L=z.copy(),S=st(v||M,m),E,Z,A;if((A=o.call(r,new at("beforestart",{sourceEvent:M,target:s,identifier:h,active:i,x:S[0],y:S[1],dx:0,dy:0,dispatch:L}),g))!=null)return E=A.x-S[0]||0,Z=A.y-S[1]||0,function y(O,q,ut){var ot=S,B;switch(O){case"start":f[h]=y,B=i++;break;case"end":delete f[h],--i;case"drag":S=st(ut||q,m),B=i;break}L.call(O,r,new at(O,{sourceEvent:q,subject:A,target:s,identifier:h,active:B,x:S[0]+E,y:S[1]+Z,dx:S[0]-ot[0],dy:S[1]-ot[1],dispatch:L}),g)}}return s.filter=function(r){return arguments.length?(a=typeof r=="function"?r:K(!!r),s):a},s.container=function(r){return arguments.length?(t=typeof r=="function"?r:K(r),s):t},s.subject=function(r){return arguments.length?(o=typeof r=="function"?r:K(r),s):o},s.touchable=function(r){return arguments.length?(c=typeof r=="function"?r:K(!!r),s):c},s.on=function(){var r=z.on.apply(z,arguments);return r===z?s:r},s.clickDistance=function(r){return arguments.length?(x=(r=+r)*r,s):Math.sqrt(x)},s}function Lt({handle:a,getCurrentBbox:t,onResize:o,onDragEnd:c,onInteractionStart:f,onInteractionEnd:z}){let i;return ct().on("start",()=>{i=t(),f==null||f()}).on("drag",b=>{let d=i.x,n=i.y,u=i.width,x=i.height;const s=b.x-b.subject.x,w=b.y-b.subject.y;switch(a){case"nw":d=i.x+s,n=i.y+w,u=i.width-s,x=i.height-w;break;case"ne":n=i.y+w,u=i.width+s,x=i.height-w;break;case"sw":d=i.x+s,u=i.width-s,x=i.height+w;break;case"se":u=i.width+s,x=i.height+w;break;case"n":n=i.y+w,x=i.height-w;break;case"s":x=i.height+w;break;case"w":d=i.x+s,u=i.width-s;break;case"e":u=i.width+s;break}const _=1;u<_&&(u=_,a.includes("w")&&(d=i.x+i.width-_)),x<_&&(x=_,a.includes("n")&&(n=i.y+i.height-_));const T=Math.round(d),k=Math.round(n),N=Math.round(u),D=Math.round(x);o&&o({x:T,y:k,width:N,height:D})}).on("end",()=>{const{x:b,y:d,width:n,height:u}=t();c&&c({x:b,y:d,width:n,height:u}),z==null||z()})}function Ot({getCurrentBbox:a,onMove:t,onDragEnd:o,onInteractionStart:c,onInteractionEnd:f}){let z;return ct().on("start",()=>{z=a(),c==null||c()}).on("drag",i=>{const b=i.x-i.subject.x,d=i.y-i.subject.y,n=Math.round(z.x+b),u=Math.round(z.y+d);t&&t({x:n,y:u,width:z.width,height:z.height})}).on("end",()=>{const i=a();o&&o(i),f==null||f()})}var Xt=p('<text dominant-baseline="middle" text-anchor="end"> </text><text text-anchor="middle"> </text><text dominant-baseline="middle" text-anchor="end"> </text>',1),At=p('<g><rect stroke-width="2" pointer-events="all" vector-effect="non-scaling-stroke" class="movable-rectangle" style="cursor: move;"></rect><!></g>');function Ft(a,t){rt(t,!0);const o=C(t,"bbox",15),c=C(t,"colorStroke",3,"#007bff"),f=C(t,"colorFill",3,"transparent"),z=C(t,"opacity",3,.3),i=C(t,"handleSize",3,12),b=C(t,"scale",3,1),d=R(()=>o().x),n=R(()=>o().y),u=R(()=>o().width),x=R(()=>o().height);let s=Q(void 0),w=Q(!1);function _(){if(!e(s))return;const m=i()/b(),h=Math.max(3,Math.min(m,e(u)*.1,e(x)*.1,7)),v=[{id:"nw",x:e(d)-h/2,y:e(n)-h/2,cursor:"nwse-resize",label:"Resize northwest corner"},{id:"ne",x:e(d)+e(u)-h/2,y:e(n)-h/2,cursor:"nesw-resize",label:"Resize northeast corner"},{id:"sw",x:e(d)-h/2,y:e(n)+e(x)-h/2,cursor:"nesw-resize",label:"Resize southwest corner"},{id:"se",x:e(d)+e(u)-h/2,y:e(n)+e(x)-h/2,cursor:"nwse-resize",label:"Resize southeast corner"},{id:"n",x:e(d)+e(u)/2-h/2,y:e(n)-h/2,cursor:"ns-resize",label:"Resize top edge"},{id:"s",x:e(d)+e(u)/2-h/2,y:e(n)+e(x)-h/2,cursor:"ns-resize",label:"Resize bottom edge"},{id:"w",x:e(d)-h/2,y:e(n)+e(x)/2-h/2,cursor:"ew-resize",label:"Resize left edge"},{id:"e",x:e(d)+e(u)-h/2,y:e(n)+e(x)/2-h/2,cursor:"ew-resize",label:"Resize right edge"}],S=j(e(s)).selectAll(".resize-handle").data(v,E=>E.id);S.enter().append("rect").attr("class","resize-handle").attr("width",h).attr("height",h).attr("fill",c()).attr("stroke",c()).attr("stroke-width","1").attr("vector-effect","non-scaling-stroke").attr("role","button").attr("style",E=>`cursor: ${E.cursor};`).attr("data-testid",E=>`resize-handle-${E.id}`).attr("aria-label",E=>E.label).merge(S).attr("x",E=>E.x).attr("y",E=>E.y).attr("width",h).attr("height",h).attr("fill",c()).attr("stroke",c()),S.exit().remove()}function T(){if(!e(s))return;["nw","ne","sw","se","n","s","w","e"].forEach(g=>{if(!e(s))return;const h=e(s).querySelector(`[data-testid="resize-handle-${g}"]`);h&&j(h).call(Lt({handle:g,getCurrentBbox:()=>({x:e(d),y:e(n),width:e(u),height:e(x)}),onResize:v=>{o(o().x=v.x,!0),o(o().y=v.y,!0),o(o().width=v.width,!0),o(o().height=v.height,!0),t.onResize&&t.onResize(v),_()},onDragEnd:v=>{t.onDragEnd&&t.onDragEnd(v)},onInteractionStart:()=>{X(w,!0)},onInteractionEnd:()=>{X(w,!1)}}))});const M=e(s).querySelector(".movable-rectangle");M&&j(M).call(Ot({getCurrentBbox:()=>({x:e(d),y:e(n),width:e(u),height:e(x)}),onMove:g=>{o(o().x=g.x,!0),o(o().y=g.y,!0),o(o().width=g.width,!0),o(o().height=g.height,!0),t.onMove&&t.onMove(g),_()},onDragEnd:g=>{t.onDragEnd&&t.onDragEnd(g)},onInteractionStart:()=>{X(w,!0)},onInteractionEnd:()=>{X(w,!1)}}))}zt(()=>{e(s)&&(_(),T())});const k=async()=>{e(s)&&(await dt(),_(),T())};ht(()=>{_(),k()});var N=At(),D=F(N),P=H(D);{var r=m=>{var M=Xt(),g=gt(M),h=F(g);I(g);var v=H(g),L=F(v);I(v);var S=H(v),E=F(S);I(S),G(()=>{l(g,"x",e(d)-10/b()),l(g,"y",e(n)+1/b()),l(g,"fill",c()),l(g,"font-size",14/b()),J(h,`x: ${e(d)??""}, y: ${e(n)??""}`),l(v,"x",e(d)+e(u)/2),l(v,"y",e(n)+e(x)+20/b()),l(v,"fill",c()),l(v,"font-size",14/b()),J(L,`w: ${e(u)??""}px`),l(S,"x",e(d)-10/b()),l(S,"y",e(n)+e(x)/2),l(S,"fill",c()),l(S,"font-size",14/b()),J(E,`h: ${e(x)??""}px`)}),U(m,M)};W(P,m=>{e(w)&&m(r)})}I(N),lt(N,m=>X(s,m),()=>e(s)),G(()=>{l(D,"x",e(d)),l(D,"y",e(n)),l(D,"width",e(u)),l(D,"height",e(x)),l(D,"stroke",c()),l(D,"fill",f()),l(D,"fill-opacity",z())}),U(a,N),nt()}var It=p('<g data-testid="sample-annotation"><!><!><!></g>');function re(a,t){var Z,A;rt(t,!0);const o=()=>yt(d,"$customLabelColorsStore",c),[c,f]=bt(),z=C(t,"showLabel",3,!1),i=C(t,"isResizable",3,!1),b=C(t,"scale",3,1),{customLabelColorsStore:d}=Mt(),n=R(()=>t.annotation.annotation_label.annotation_label_name),u=(A=(Z=t.annotation)==null?void 0:Z.instance_segmentation_details)==null?void 0:A.segmentation_mask,x=R(()=>t.annotation.annotation_id),s=R(()=>$(e(n),1)),w=R(()=>{var y;return((y=o()[e(n)])==null?void 0:y.color)??$(e(n),1).color}),_=R(()=>{var y;return((y=o()[e(n)])==null?void 0:y.color)??$(e(n),.4).color}),T=R(()=>{var y;return((y=o()[e(n)])==null?void 0:y.alpha)*.4});let k=Q(ft(vt(t.annotation)));const N=y=>{X(k,t.constraintBox?tt(y,t.constraintBox,!1):y,!0)},D=y=>{X(k,t.constraintBox?tt(y,t.constraintBox,!0):y,!0)},P=y=>{var q;const O=t.constraintBox?tt(y,t.constraintBox,!0):y;X(k,O,!0),(q=t.onBoundingBoxChanged)==null||q.call(t,O)},r=R(()=>[e(k).x,e(k).y,e(k).width,e(k).height]);var m=It(),M=F(m);{var g=y=>{{let O=R(()=>[e(k).x,e(k).y]);Yt(y,{get coordinates(){return e(O)},get colorText(){return e(s)},get label(){return e(n)}})}};W(M,y=>{z()&&y(g)})}var h=H(M);{var v=y=>{_t(y,{get segmentation(){return u},get width(){return t.imageWidth},get colorFill(){return e(_)},get opacity(){return e(T)}})};W(h,y=>{u&&y(v)})}var L=H(h);{var S=y=>{Ft(y,{get colorStroke(){return e(w)},get colorFill(){return e(_)},get opacity(){return e(T)},get scale(){return b()},onResize:N,onMove:D,onDragEnd:P,get bbox(){return e(k)},set bbox(O){X(k,O,!0)}})},E=y=>{Pt(y,{get bbox(){return e(r)},get annotationId(){return e(x)},get label(){return e(n)},get colorStroke(){return e(w)},get colorFill(){return e(_)},get opacity(){return e(T)}})};W(L,y=>{i()&&t.constraintBox?y(S):y(E,!1)})}I(m),G(()=>{l(m,"data-annotation-label",e(n)),l(m,"data-annotation-id",e(x))}),U(a,m),nt(),f()}var jt=p('<rect vector-effect="non-scaling-stroke" stroke-width="2" pointer-events="all" data-testid="annotation_box"></rect>');function Pt(a,t){const o=C(t,"isPrediction",3,!1),[c,f,z,i]=t.bbox,b=o()?"5,5":"none",d=o()?.8:1;var n=jt();G(()=>{l(n,"x",c),l(n,"y",f),l(n,"width",z),l(n,"height",i),l(n,"stroke",t.colorStroke),l(n,"stroke-opacity",d),l(n,"stroke-dasharray",b),l(n,"fill",t.colorFill),l(n,"fill-opacity",t.opacity),l(n,"aria-label",t.label)}),U(a,n)}var Ht=p('<g class="unscaled"><rect></rect><text class="annotation-label-text" data-testid="svg-annotation-text"> </text></g>');function Yt(a,t){rt(t,!0);const o=C(t,"fontSize",3,14),c=C(t,"isPrediction",3,!1),f=R(()=>mt(t.coordinates,2)),z=R(()=>e(f)[0]),i=R(()=>e(f)[1]);let b=Q(null);const d=R(()=>e(b)?(e(b).textContent=c()?`${t.label} (pred)`:t.label,e(b).getBBox()):{width:0,height:0}),n=5,u=c()?.8:1,x=c()?"italic":"normal";var s=Ht(),w=F(s),_=H(w);l(_,"x",n),l(_,"y",-5);var T=F(_,!0);I(_),lt(_,k=>X(b,k),()=>e(b)),I(s),G(()=>{var k,N,D;l(s,"transform",`translate(${e(z)}, ${e(i)})`),l(s,"data-label",t.label),l(w,"y",-((k=e(d))==null?void 0:k.height)),l(w,"width",((N=e(d))==null?void 0:N.width)+n*2),l(w,"height",(D=e(d))==null?void 0:D.height),l(w,"fill",t.colorText.color),l(w,"opacity",u),l(_,"fill",t.colorText.contrastColor),l(_,"font-size",o()),l(_,"font-style",x),J(T,c()?`${t.label} (pred)`:t.label)}),U(a,s),nt()}export{Ft as R,re as S,Et as a,ct as d,st as p,j as s,Dt as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{v as x,x as B,y as M,z as S,A as v,B as g,C as T,D as q,E as D}from"./Frwd2CjB.js";const O=new Set,W=new Set;function b(r,a,i,c={}){function e(t){if(c.capture||z.call(a,t),!t.cancelBubble)return M(()=>i==null?void 0:i.call(this,t))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?B(()=>{a.addEventListener(r,e,c)}):a.addEventListener(r,e,c),e}function C(r,a,i,c={}){var e=b(a,r,i,c);return()=>{r.removeEventListener(a,e,c)}}function H(r,a,i,c,e){var t={capture:c,passive:e},o=b(r,a,i,t);(a===document.body||a===window||a===document||a instanceof HTMLMediaElement)&&x(()=>{a.removeEventListener(r,o,t)})}function N(r){for(var a=0;a<r.length;a++)O.add(r[a]);for(var i of W)i(r)}let w=null;function z(r){var p;var a=this,i=a.ownerDocument,c=r.type,e=((p=r.composedPath)==null?void 0:p.call(r))||[],t=e[0]||r.target;w=r;var o=0,_=w===r&&r.__root;if(_){var l=e.indexOf(_);if(l!==-1&&(a===document||a===window)){r.__root=a;return}var d=e.indexOf(a);if(d===-1)return;l<=d&&(o=l)}if(t=e[o]||r.target,t!==a){S(r,"currentTarget",{configurable:!0,get(){return t||i}});var y=q,E=D;v(null),g(null);try{for(var n,h=[];t!==null;){var f=t.assignedSlot||t.parentNode||t.host||null;try{var s=t["__"+c];if(s!=null&&(!t.disabled||r.target===t))if(T(s)){var[L,...k]=s;L.apply(t,[r,...k])}else s.call(t,r)}catch(u){n?h.push(u):n=u}if(r.cancelBubble||f===a||f===null)break;t=f}if(n){for(let u of h)queueMicrotask(()=>{throw u});throw n}}finally{r.__root=a,delete r.currentTarget,v(y),g(E)}}}export{O as a,b as c,N as d,H as e,z as h,C as o,W as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{f as m}from"./Frwd2CjB.js";import{c as i,a as p}from"./CiaNZCBa.js";import{s as n}from"./DzX_yyqb.js";function d(o,a){var r=i(),t=m(r);n(t,()=>a.children),p(o,r)}export{d as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F,I as N,P as B,n as M,al as W,G,V as Q}from"./Frwd2CjB.js";function se(r,t,...e){var s=r,n=M,i;F(()=>{n!==(n=t())&&(i&&(W(i),i=null),i=B(()=>n(s,...e)))},N),G&&(s=Q)}const J=/\{[^{}]+\}/g,V=()=>{var r,t;return typeof process=="object"&&Number.parseInt((t=(r=process==null?void 0:process.versions)==null?void 0:r.node)==null?void 0:t.substring(0,2))>=18&&process.versions.undici};function Y(){return Math.random().toString(36).slice(2,11)}function K(r){let{baseUrl:t="",Request:e=globalThis.Request,fetch:s=globalThis.fetch,querySerializer:n,bodySerializer:i,headers:f,requestInitExt:l=void 0,..._}={...r};l=V()?l:void 0,t=P(t);const y=[];async function h(a,o){const{baseUrl:m,fetch:z=s,Request:ne=e,headers:D,params:R={},parseAs:T="json",querySerializer:j,bodySerializer:I=i??Z,body:C,...$}=o||{};m&&(t=P(m));let U=typeof n=="function"?n:O(n);j&&(U=typeof j=="function"?j:O({...typeof n=="object"?n:{},...j}));const q=C===void 0?void 0:I(C),v=q===void 0||q instanceof FormData?{}:{"Content-Type":"application/json"},k={redirect:"follow",..._,...$,body:q,headers:re(v,f,D,R.header)};let g,E,b=new e(ee(a,{baseUrl:t,params:R,querySerializer:U}),k);for(const u in $)u in b||(b[u]=$[u]);if(y.length){g=Y(),E=Object.freeze({baseUrl:t,fetch:z,parseAs:T,querySerializer:U,bodySerializer:I});for(const u of y)if(u&&typeof u=="object"&&typeof u.onRequest=="function"){const d=await u.onRequest({request:b,schemaPath:a,params:R,options:E,id:g});if(d){if(!(d instanceof e))throw new Error("onRequest: must return new Request() when modifying the request");b=d}}}let c;try{c=await z(b,l)}catch(u){let d=u;if(y.length)for(let p=y.length-1;p>=0;p--){const S=y[p];if(S&&typeof S=="object"&&typeof S.onError=="function"){const w=await S.onError({request:b,error:d,schemaPath:a,params:R,options:E,id:g});if(w){if(w instanceof Response){d=void 0,c=w;break}if(w instanceof Error){d=w;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(d)throw d}if(y.length)for(let u=y.length-1;u>=0;u--){const d=y[u];if(d&&typeof d=="object"&&typeof d.onResponse=="function"){const p=await d.onResponse({request:b,response:c,schemaPath:a,params:R,options:E,id:g});if(p){if(!(p instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");c=p}}}if(c.status===204||c.headers.get("Content-Length")==="0")return c.ok?{data:void 0,response:c}:{error:void 0,response:c};if(c.ok)return T==="stream"?{data:c.body,response:c}:{data:await c[T](),response:c};let x=await c.text();try{x=JSON.parse(x)}catch{}return{error:x,response:c}}return{request(a,o,m){return h(o,{...m,method:a.toUpperCase()})},GET(a,o){return h(a,{...o,method:"GET"})},PUT(a,o){return h(a,{...o,method:"PUT"})},POST(a,o){return h(a,{...o,method:"POST"})},DELETE(a,o){return h(a,{...o,method:"DELETE"})},OPTIONS(a,o){return h(a,{...o,method:"OPTIONS"})},HEAD(a,o){return h(a,{...o,method:"HEAD"})},PATCH(a,o){return h(a,{...o,method:"PATCH"})},TRACE(a,o){return h(a,{...o,method:"TRACE"})},use(...a){for(const o of a)if(o){if(typeof o!="object"||!("onRequest"in o||"onResponse"in o||"onError"in o))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");y.push(o)}},eject(...a){for(const o of a){const m=y.indexOf(o);m!==-1&&y.splice(m,1)}}}}function A(r,t,e){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${(e==null?void 0:e.allowReserved)===!0?t:encodeURIComponent(t)}`}function L(r,t,e){if(!t||typeof t!="object")return"";const s=[],n={simple:",",label:".",matrix:";"}[e.style]||"&";if(e.style!=="deepObject"&&e.explode===!1){for(const l in t)s.push(l,e.allowReserved===!0?t[l]:encodeURIComponent(t[l]));const f=s.join(",");switch(e.style){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}for(const f in t){const l=e.style==="deepObject"?`${r}[${f}]`:f;s.push(A(l,t[f],e))}const i=s.join(n);return e.style==="label"||e.style==="matrix"?`${n}${i}`:i}function H(r,t,e){if(!Array.isArray(t))return"";if(e.explode===!1){const i={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[e.style]||",",f=(e.allowReserved===!0?t:t.map(l=>encodeURIComponent(l))).join(i);switch(e.style){case"simple":return f;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return`${r}=${f}`}}const s={simple:",",label:".",matrix:";"}[e.style]||"&",n=[];for(const i of t)e.style==="simple"||e.style==="label"?n.push(e.allowReserved===!0?i:encodeURIComponent(i)):n.push(A(r,i,e));return e.style==="label"||e.style==="matrix"?`${s}${n.join(s)}`:n.join(s)}function O(r){return function(e){const s=[];if(e&&typeof e=="object")for(const n in e){const i=e[n];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;s.push(H(n,i,{style:"form",explode:!0,...r==null?void 0:r.array,allowReserved:(r==null?void 0:r.allowReserved)||!1}));continue}if(typeof i=="object"){s.push(L(n,i,{style:"deepObject",explode:!0,...r==null?void 0:r.object,allowReserved:(r==null?void 0:r.allowReserved)||!1}));continue}s.push(A(n,i,r))}}return s.join("&")}}function X(r,t){let e=r;for(const s of r.match(J)??[]){let n=s.substring(1,s.length-1),i=!1,f="simple";if(n.endsWith("*")&&(i=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(f="label",n=n.substring(1)):n.startsWith(";")&&(f="matrix",n=n.substring(1)),!t||t[n]===void 0||t[n]===null)continue;const l=t[n];if(Array.isArray(l)){e=e.replace(s,H(n,l,{style:f,explode:i}));continue}if(typeof l=="object"){e=e.replace(s,L(n,l,{style:f,explode:i}));continue}if(f==="matrix"){e=e.replace(s,`;${A(n,l)}`);continue}e=e.replace(s,f==="label"?`.${encodeURIComponent(l)}`:encodeURIComponent(l))}return e}function Z(r){return r instanceof FormData?r:JSON.stringify(r)}function ee(r,t){var n;let e=`${t.baseUrl}${r}`;(n=t.params)!=null&&n.path&&(e=X(e,t.params.path));let s=t.querySerializer(t.params.query??{});return s.startsWith("?")&&(s=s.substring(1)),s&&(e+=`?${s}`),e}function re(...r){const t=new Headers;for(const e of r){if(!e||typeof e!="object")continue;const s=e instanceof Headers?e.entries():Object.entries(e);for(const[n,i]of s)if(i===null)t.delete(n);else if(Array.isArray(i))for(const f of i)t.append(n,f);else i!==void 0&&t.set(n,i)}return t}function P(r){return r.endsWith("/")?r.substring(0,r.length-1):r}const oe="/images",te="/",ae=K({baseUrl:te,fetch});export{oe as P,te as a,ae as c,se as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var Re=Object.defineProperty;var ae=t=>{throw TypeError(t)};var ke=(t,e,i)=>e in t?Re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var oe=(t,e,i)=>ke(t,typeof e!="symbol"?e+"":e,i),J=(t,e,i)=>e.has(t)||ae("Cannot "+i);var s=(t,e,i)=>(J(t,e,"read from private field"),i?i.call(t):e.get(t)),o=(t,e,i)=>e.has(t)?ae("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),n=(t,e,i,r)=>(J(t,e,"write to private field"),r?r.call(t,i):e.set(t,i),i),g=(t,e,i)=>(J(t,e,"access private method"),i);import{am as Ne,g as _e,an as pe,a5 as De,h as Se,ao as le,x as Q,V as w,G as T,ap as Fe,E as W,F as ve,H as Ce,a3 as U,K as Ie,P as F,aq as H,T as X,B as ue,A as B,ar as he,as as Oe,D as de,d as ge,at as Le,al as Z,M,au as Ve,L as Me,av as fe,aw as Pe,I as xe,ax as He,ay as Be,az as G,aA as Ye,O as ye,aB as We,aC as me,N as V,Z as Ee,aD as ee,aE as te,aF as je,aG as qe,aH as Ge,aI as ze,p as Ke,aJ as Ue,aK as $e,a as Je}from"./Frwd2CjB.js";import{a as Xe,r as ce,h as Y}from"./Dug7Bq1S.js";import{d as Ze}from"./CiaNZCBa.js";function Qe(t){let e=0,i=pe(0),r;return()=>{Ne()&&(_e(i),De(()=>(e===0&&(r=Se(()=>t(()=>le(i)))),e+=1,()=>{Q(()=>{e-=1,e===0&&(r==null||r(),r=void 0,le(i))})})))}}var et=xe|He|Be;function tt(t,e,i){new st(t,e,i)}var y,f,x,m,C,E,v,h,b,A,I,R,O,k,z,K,l,be,Te,j,q,se;class st{constructor(e,i,r){o(this,l);oe(this,"parent");o(this,y,!1);o(this,f);o(this,x,T?w:null);o(this,m);o(this,C);o(this,E);o(this,v,null);o(this,h,null);o(this,b,null);o(this,A,null);o(this,I,0);o(this,R,0);o(this,O,!1);o(this,k,null);o(this,z,()=>{s(this,k)&&Fe(s(this,k),s(this,I))});o(this,K,Qe(()=>(n(this,k,pe(s(this,I))),()=>{n(this,k,null)})));n(this,f,e),n(this,m,i),n(this,C,r),this.parent=W.b,n(this,y,!!s(this,m).pending),n(this,E,ve(()=>{if(W.b=this,T){const u=s(this,x);Ce(),u.nodeType===U&&u.data===Ie?g(this,l,Te).call(this):g(this,l,be).call(this)}else{try{n(this,v,F(()=>r(s(this,f))))}catch(u){this.error(u)}s(this,R)>0?g(this,l,q).call(this):n(this,y,!1)}},et)),T&&n(this,f,w)}is_pending(){return s(this,y)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!s(this,m).pending}update_pending_count(e){g(this,l,se).call(this,e),n(this,I,s(this,I)+e),Le.add(s(this,z))}get_effect_pending(){return s(this,K).call(this),_e(s(this,k))}error(e){var i=s(this,m).onerror;let r=s(this,m).failed;if(s(this,O)||!i&&!r)throw e;s(this,v)&&(Z(s(this,v)),n(this,v,null)),s(this,h)&&(Z(s(this,h)),n(this,h,null)),s(this,b)&&(Z(s(this,b)),n(this,b,null)),T&&(M(s(this,x)),Ve(),M(Me()));var u=!1,a=!1;const c=()=>{if(u){Ye();return}u=!0,a&&Pe(),H.ensure(),n(this,I,0),s(this,b)!==null&&X(s(this,b),()=>{n(this,b,null)}),n(this,y,this.has_pending_snippet()),n(this,v,g(this,l,j).call(this,()=>(n(this,O,!1),F(()=>s(this,C).call(this,s(this,f)))))),s(this,R)>0?g(this,l,q).call(this):n(this,y,!1)};var N=de;try{B(null),a=!0,i==null||i(e,c),a=!1}catch(D){fe(D,s(this,E)&&s(this,E).parent)}finally{B(N)}r&&Q(()=>{n(this,b,g(this,l,j).call(this,()=>{n(this,O,!0);try{return F(()=>{r(s(this,f),()=>e,()=>c)})}catch(D){return fe(D,s(this,E).parent),null}finally{n(this,O,!1)}}))})}}y=new WeakMap,f=new WeakMap,x=new WeakMap,m=new WeakMap,C=new WeakMap,E=new WeakMap,v=new WeakMap,h=new WeakMap,b=new WeakMap,A=new WeakMap,I=new WeakMap,R=new WeakMap,O=new WeakMap,k=new WeakMap,z=new WeakMap,K=new WeakMap,l=new WeakSet,be=function(){try{n(this,v,F(()=>s(this,C).call(this,s(this,f))))}catch(e){this.error(e)}n(this,y,!1)},Te=function(){const e=s(this,m).pending;e&&(n(this,h,F(()=>e(s(this,f)))),H.enqueue(()=>{n(this,v,g(this,l,j).call(this,()=>(H.ensure(),F(()=>s(this,C).call(this,s(this,f)))))),s(this,R)>0?g(this,l,q).call(this):(X(s(this,h),()=>{n(this,h,null)}),n(this,y,!1))}))},j=function(e){var i=W,r=de,u=ge;ue(s(this,E)),B(s(this,E)),he(s(this,E).ctx);try{return e()}catch(a){return Oe(a),null}finally{ue(i),B(r),he(u)}},q=function(){const e=s(this,m).pending;s(this,v)!==null&&(n(this,A,document.createDocumentFragment()),it(s(this,v),s(this,A))),s(this,h)===null&&n(this,h,F(()=>e(s(this,f))))},se=function(e){var i;if(!this.has_pending_snippet()){this.parent&&g(i=this.parent,l,se).call(i,e);return}n(this,R,s(this,R)+e),s(this,R)===0&&(n(this,y,!1),s(this,h)&&X(s(this,h),()=>{n(this,h,null)}),s(this,A)&&(s(this,f).before(s(this,A)),n(this,A,null)),Q(()=>{H.ensure().flush()}))};function it(t,e){for(var i=t.nodes_start,r=t.nodes_end;i!==null;){var u=i===r?null:G(i);e.append(i),i=u}}function pt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const nt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function vt(t){return nt.includes(t)}const rt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function gt(t){return t=t.toLowerCase(),rt[t]??t}const at=["touchstart","touchmove"];function ot(t){return at.includes(t)}const lt=["textarea","script","style","title"];function yt(t){return lt.includes(t)}let p;function ut(){p=void 0}function mt(t){let e=null,i=T;var r;if(T){for(e=w,p===void 0&&(p=Ee(document.head));p!==null&&(p.nodeType!==U||p.data!==me);)p=G(p);p===null?V(!1):p=M(G(p))}T||(r=document.head.appendChild(ye()));try{ve(()=>t(r),We)}finally{i&&(V(!0),p=w,M(e))}}let ie=!0;function Et(t){ie=t}function bt(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function ht(t,e){return we(t,e)}function Tt(t,e){ee(),e.intro=e.intro??!1;const i=e.target,r=T,u=w;try{for(var a=Ee(i);a&&(a.nodeType!==U||a.data!==me);)a=G(a);if(!a)throw te;V(!0),M(a);const c=we(t,{...e,anchor:a});return V(!1),c}catch(c){if(c instanceof Error&&c.message.split(`
|
|
2
|
-
`).some(N=>N.startsWith("https://svelte.dev/e/")))throw c;return c!==te&&console.warn("Failed to hydrate: ",c),e.recover===!1&&je(),ee(),qe(i),V(!1),ht(t,e)}finally{V(r),M(u),ut()}}const L=new Map;function we(t,{target:e,anchor:i,props:r={},events:u,context:a,intro:c=!0}){ee();var N=new Set,D=S=>{for(var _=0;_<S.length;_++){var d=S[_];if(!N.has(d)){N.add(d);var P=ot(d);e.addEventListener(d,Y,{passive:P});var re=L.get(d);re===void 0?(document.addEventListener(d,Y,{passive:P}),L.set(d,1)):L.set(d,re+1)}}};D(Ge(Xe)),ce.add(D);var $=void 0,Ae=ze(()=>{var S=i??e.appendChild(ye());return tt(S,{pending:()=>{}},_=>{if(a){Ke({});var d=ge;d.c=a}if(u&&(r.$$events=u),T&&Ze(_,null),ie=c,$=t(_,r)||{},ie=!0,T&&(W.nodes_end=w,w===null||w.nodeType!==U||w.data!==Ue))throw $e(),te;a&&Je()}),()=>{var P;for(var _ of N){e.removeEventListener(_,Y);var d=L.get(_);--d===0?(document.removeEventListener(_,Y),L.delete(_)):L.set(_,d)}ce.delete(D),S!==i&&((P=S.parentNode)==null||P.removeChild(S))}});return ne.set($,Ae),$}let ne=new WeakMap;function wt(t,e){const i=ne.get(t);return i?(ne.delete(t),i(e)):Promise.resolve()}export{vt as a,mt as b,Qe as c,yt as d,Et as e,ie as f,Tt as h,pt as i,ht as m,gt as n,bt as s,wt as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as I}from"./D5w4xp5l.js";import{w as s,m as g}from"./Frwd2CjB.js";function d(n,o){const i=s((()=>{if(typeof sessionStorage>"u")return o;try{const a=sessionStorage.getItem(n);if(a)return JSON.parse(a)}catch(a){console.warn(`Failed to read ${n} from sessionStorage`,a)}return o})());return i.subscribe(a=>{if(!(typeof sessionStorage>"u"))try{sessionStorage.setItem(n,JSON.stringify(a))}catch(h){console.warn(`Failed to write ${n} to sessionStorage`,h)}}),i}const r=s([]),B=()=>({reversibleActions:r,addReversibleAction:n=>{r.update(o=>[n,...o].slice(0,50))},executeReversibleAction:async n=>{const o=g(r),l=o.find(i=>i.id===n);if(l){await l.execute();const i=o.findIndex(a=>a.id===n);r.update(a=>a.slice(i+1))}},clearReversibleActions:()=>{r.set([])},clearReversibleActionsByGroupId:n=>{r.update(o=>o.filter(l=>l.groupId!==n))},hasReversibleActions:()=>g(r).length>0}),b=s("samples"),u=s(new Set),p=s(new Set),S=s(new Set),w=s(0),v=s(0),y=s(!1),C=s(void 0),f=s(null),_=d("lightlyStudio_sampleSize",{width:200,height:200}),T=d("lightlyStudio_metadata_bounds",{}),x=d("lightlyStudio_metadata_values",{}),M=d("lightlyStudio_metadata_info",[]),G=s(void 0),V=s([]),m=s({}),z=s(!1),D=n=>{z.set(n)},R=s(!1),N=()=>{const n=B();return{tags:G,textEmbedding:C,setTextEmbedding:e=>{C.set(e)},selectedSampleIds:u,selectedSampleAnnotationCropIds:p,selectedAnnotationFilterIds:S,annotationsTotalCount:w,samplesTotalCount:v,datasetVersions:m,hideAnnotations:y,classifiers:V,classifierSamples:f,setClassifierSamples:e=>{f.set(e)},clearClassifierSamples:()=>{f.set(null)},metadataBounds:T,metadataValues:x,metadataInfo:M,updateMetadataValues:e=>{x.set(e)},updateMetadataBounds:e=>{T.set(e)},updateMetadataInfo:e=>{M.set(e)},setHideAnnotations:e=>{y.set(e)},getDatasetVersion:async e=>{const t=g(m);if(t[e])return t[e];const{data:c}=await I({path:{dataset_id:e}});if(c!=null&&c.created_at){const A=new Date(c.created_at).getTime().toString();return m.update(E=>({...E,[e]:A})),A}return""},toggleSampleSelection:e=>{u.update(t=>(t.has(e)?t.delete(e):t.add(e),t))},clearSelectedSamples:()=>{u.update(e=>(e.clear(),e))},toggleSampleAnnotationCropSelection:e=>{p.update(t=>(t.has(e)?t.delete(e):t.add(e),t))},clearSelectedSampleAnnotationCrops:()=>{p.update(e=>(e.clear(),e))},lastGridType:b,setLastGridType:e=>{b.set(e)},setSelectedAnnotationFilterIds:e=>{S.update(t=>(t.has(e)?t.delete(e):t.add(e),t))},clearSelectedAnnotationFilterIds:()=>{S.update(e=>(e.clear(),e))},setAnnotationsTotalCount:e=>{w.set(e)},setSamplesTotalCount:e=>{v.set(e)},sampleSize:_,updateSampleSize:e=>{_.set({width:e,height:e})},isEditingMode:z,setIsEditingMode:D,showPlot:R,setShowPlot:e=>{R.set(e)},...n}};export{d as a,N as u};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{p as R,f as J,n as H,a as N,c as q,r as X,g as f,b as mt,au as St,s as ut,t as Mt,u as xt,ak as it,Y as L,aa as Zt}from"./Frwd2CjB.js";import{c as $,a as B,f as nt,t as Dt}from"./CiaNZCBa.js";import{s as E,P as It}from"./DzX_yyqb.js";import{s as lt,r as K,p as tt,b as et}from"./Dafy4oEQ.js";import{I as ct,J as Et,e as ht,M as Rt,Q as bt,T as gt,R as vt,U as yt}from"./Cqo0Vpvt.js";import{a as rt,g as Nt,s as _t,d as Vt}from"./D_ynJAfY.js";import{i as kt}from"./-DXuGN29.js";import{f as At,u as Yt,g as Ct}from"./DD63uD-T.js";import{o as qt}from"./DQ8aZ1o-.js";import{s as j,p as ot,a as Xt,y as Ht}from"./DmjAI-UV.js";import{s as Kt}from"./H60ATh8g.js";function Ft(n,e){R(e,!0);/**
|
|
2
|
-
* @license @lucide/svelte v0.482.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* ISC License
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
|
7
|
-
*
|
|
8
|
-
* Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
-
* purpose with or without fee is hereby granted, provided that the above
|
|
10
|
-
* copyright notice and this permission notice appear in all copies.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
13
|
-
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
14
|
-
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
15
|
-
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
16
|
-
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
17
|
-
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
18
|
-
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
*
|
|
20
|
-
*/let a=K(e,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"m9 18 6-6-6-6"}]];ct(n,lt({name:"chevron-right"},()=>a,{get iconNode(){return c},children:(r,l)=>{var i=$(),_=J(i);E(_,()=>e.children??H),B(r,i)},$$slots:{default:!0}})),N()}function Se(n,e){R(e,!0);/**
|
|
21
|
-
* @license @lucide/svelte v0.482.0 - ISC
|
|
22
|
-
*
|
|
23
|
-
* ISC License
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
|
26
|
-
*
|
|
27
|
-
* Permission to use, copy, modify, and/or distribute this software for any
|
|
28
|
-
* purpose with or without fee is hereby granted, provided that the above
|
|
29
|
-
* copyright notice and this permission notice appear in all copies.
|
|
30
|
-
*
|
|
31
|
-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
32
|
-
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
33
|
-
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
34
|
-
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
35
|
-
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
36
|
-
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
37
|
-
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
38
|
-
*
|
|
39
|
-
*/let a=K(e,["$$slots","$$events","$$legacy"]);const c=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]];ct(n,lt({name:"database"},()=>a,{get iconNode(){return c},children:(r,l)=>{var i=$(),_=J(i);E(_,()=>e.children??H),B(r,i)},$$slots:{default:!0}})),N()}function Ze(n,e){R(e,!0);/**
|
|
40
|
-
* @license @lucide/svelte v0.482.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* ISC License
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
|
45
|
-
*
|
|
46
|
-
* Permission to use, copy, modify, and/or distribute this software for any
|
|
47
|
-
* purpose with or without fee is hereby granted, provided that the above
|
|
48
|
-
* copyright notice and this permission notice appear in all copies.
|
|
49
|
-
*
|
|
50
|
-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
51
|
-
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
52
|
-
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
53
|
-
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
54
|
-
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
55
|
-
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
56
|
-
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
57
|
-
*
|
|
58
|
-
*/let a=K(e,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]];ct(n,lt({name:"house"},()=>a,{get iconNode(){return c},children:(r,l)=>{var i=$(),_=J(i);E(_,()=>e.children??H),B(r,i)},$$slots:{default:!0}})),N()}function Gt(n,e){R(e,!0);/**
|
|
59
|
-
* @license @lucide/svelte v0.482.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* ISC License
|
|
62
|
-
*
|
|
63
|
-
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
|
64
|
-
*
|
|
65
|
-
* Permission to use, copy, modify, and/or distribute this software for any
|
|
66
|
-
* purpose with or without fee is hereby granted, provided that the above
|
|
67
|
-
* copyright notice and this permission notice appear in all copies.
|
|
68
|
-
*
|
|
69
|
-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
70
|
-
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
71
|
-
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
72
|
-
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
73
|
-
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
74
|
-
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
75
|
-
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
76
|
-
*
|
|
77
|
-
*/let a=K(e,["$$slots","$$events","$$legacy"]);const c=[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]];ct(n,lt({name:"zoom-in"},()=>a,{get iconNode(){return c},children:(r,l)=>{var i=$(),_=J(i);E(_,()=>e.children??H),B(r,i)},$$slots:{default:!0}})),N()}function Ot(n,e){R(e,!0);/**
|
|
78
|
-
* @license @lucide/svelte v0.482.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* ISC License
|
|
81
|
-
*
|
|
82
|
-
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
|
83
|
-
*
|
|
84
|
-
* Permission to use, copy, modify, and/or distribute this software for any
|
|
85
|
-
* purpose with or without fee is hereby granted, provided that the above
|
|
86
|
-
* copyright notice and this permission notice appear in all copies.
|
|
87
|
-
*
|
|
88
|
-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
89
|
-
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
90
|
-
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
91
|
-
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
92
|
-
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
93
|
-
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
94
|
-
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
95
|
-
*
|
|
96
|
-
*/let a=K(e,["$$slots","$$events","$$legacy"]);const c=[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]];ct(n,lt({name:"zoom-out"},()=>a,{get iconNode(){return c},children:(r,l)=>{var i=$(),_=J(i);E(_,()=>e.children??H),B(r,i)},$$slots:{default:!0}})),N()}function Qt(n){return new Et([document.querySelectorAll(n)],[document.documentElement])}var Ut=nt("<nav><!></nav>");function De(n,e){R(e,!0);let a=tt(e,"ref",15),c=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Ut();rt(r,()=>({class:e.class,"aria-label":"breadcrumb",...c}));var l=q(r);E(l,()=>e.children??H),X(r),et(r,i=>a(i),()=>a()),B(n,r),N()}var Wt=nt("<li><!></li>");function Ie(n,e){R(e,!0);let a=tt(e,"ref",15,null),c=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Wt();rt(r,i=>({class:i,...c}),[()=>ht("inline-flex items-center gap-1.5",e.class)]);var l=q(r);E(l,()=>e.children??H),X(r),et(r,i=>a(i),()=>a()),B(n,r),N()}var Lt=nt("<li><!></li>");function Ee(n,e){R(e,!0);let a=tt(e,"ref",15,null),c=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Lt();rt(r,d=>({role:"presentation","aria-hidden":"true",class:d,...c}),[()=>ht("[&>svg]:size-3.5",e.class)]);var l=q(r);{var i=d=>{var p=$(),M=J(p);E(M,()=>e.children??H),B(d,p)},_=d=>{Ft(d,{})};kt(l,d=>{e.children?d(i):d(_,!1)})}X(r),et(r,d=>a(d),()=>a()),B(n,r),N()}var jt=nt("<a><!></a>");function Re(n,e){R(e,!0);let a=tt(e,"ref",15,null),c=tt(e,"href",3,void 0),r=K(e,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const l=mt(()=>({class:ht("hover:text-foreground transition-colors",e.class),href:c(),...r})),i=Nt(),[_,d]=i;var p=$(),M=J(p);{var G=P=>{var w=$(),Z=J(w);E(Z,()=>e.child,()=>({props:f(l)})),B(P,w)},x=P=>{var w=jt();rt(w,S=>({...S}),[()=>d({...f(l)},[{attribute_name:"href",lang_attribute_name:"hreflang"}])]);var Z=q(w);E(Z,()=>e.children??H),X(w),et(w,S=>a(S),()=>a()),B(P,w)};kt(M,P=>{e.child?P(G):P(x,!1)})}B(n,p),N()}var Jt=nt("<ol><!></ol>");function Ne(n,e){R(e,!0);let a=tt(e,"ref",15,null),c=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Jt();rt(r,i=>({class:i,...c}),[()=>ht("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e.class)]);var l=q(r);E(l,()=>e.children??H),X(r),et(r,i=>a(i),()=>a()),B(n,r),N()}var $t=nt("<span><!></span>");function Ve(n,e){R(e,!0);let a=tt(e,"ref",15,null),c=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=$t();rt(r,i=>({role:"link","aria-disabled":"true","aria-current":"page",class:i,...c}),[()=>ht("text-foreground font-normal",e.class)]);var l=q(r);E(l,()=>e.children??H),X(r),et(r,i=>a(i),()=>a()),B(n,r),N()}const Ae=n=>`${It}/sample/${n}`,Ye=({sampleId:n,datasetId:e})=>{const a=At({path:{sample_id:n,dataset_id:e}}),c=Yt(),r=Ct(a);return{refetch:()=>{c.invalidateQueries({queryKey:a.queryKey})},sample:r}};var te=1e-12;function zt(n){return((n=Math.exp(n))+1/n)/2}function ee(n){return((n=Math.exp(n))-1/n)/2}function ne(n){return((n=Math.exp(2*n))-1)/(n+1)}const oe=function n(e,a,c){function r(l,i){var _=l[0],d=l[1],p=l[2],M=i[0],G=i[1],x=i[2],P=M-_,w=G-d,Z=P*P+w*w,S,h;if(Z<te)h=Math.log(x/p)/e,S=function(k){return[_+k*P,d+k*w,p*Math.exp(e*k*h)]};else{var D=Math.sqrt(Z),I=(x*x-p*p+c*Z)/(2*p*a*D),O=(x*x-p*p-c*Z)/(2*x*a*D),V=Math.log(Math.sqrt(I*I+1)-I),g=Math.log(Math.sqrt(O*O+1)-O);h=(g-V)/e,S=function(k){var A=k*h,W=zt(V),at=p/(a*D)*(W*ne(e*A+V)-ee(V));return[_+at*P,d+at*w,p*W/zt(e*A+V)]}}return S.duration=h*1e3*e/Math.SQRT2,S}return r.rho=function(l){var i=Math.max(.001,+l),_=i*i,d=_*_;return n(i,_,d)},r}(Math.SQRT2,2,4),ft=n=>()=>n;function ae(n,{sourceEvent:e,target:a,transform:c,dispatch:r}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},transform:{value:c,enumerable:!0,configurable:!0},_:{value:r}})}function pt(n){n.stopImmediatePropagation()}function st(n){n.preventDefault(),n.stopImmediatePropagation()}function ie(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function re(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function wt(){return this.__zoom||bt}function se(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function ue(){return navigator.maxTouchPoints||"ontouchstart"in this}function le(n,e,a){var c=n.invertX(e[0][0])-a[0][0],r=n.invertX(e[1][0])-a[1][0],l=n.invertY(e[0][1])-a[0][1],i=n.invertY(e[1][1])-a[1][1];return n.translate(r>c?(c+r)/2:Math.min(0,c)||Math.max(0,r),i>l?(l+i)/2:Math.min(0,l)||Math.max(0,i))}function ce(){var n=ie,e=re,a=le,c=se,r=ue,l=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],_=250,d=oe,p=Rt("start","zoom","end"),M,G,x,P=500,w=150,Z=0,S=10;function h(t){t.property("__zoom",wt).on("wheel.zoom",A,{passive:!1}).on("mousedown.zoom",W).on("dblclick.zoom",at).filter(r).on("touchstart.zoom",Tt).on("touchmove.zoom",Bt).on("touchend.zoom touchcancel.zoom",Pt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}h.transform=function(t,s,o,u){var m=t.selection?t.selection():t;m.property("__zoom",wt),t!==m?V(t,s,o,u):m.interrupt().each(function(){g(this,arguments).event(u).start().zoom(null,typeof s=="function"?s.apply(this,arguments):s).end()})},h.scaleBy=function(t,s,o,u){h.scaleTo(t,function(){var m=this.__zoom.k,v=typeof s=="function"?s.apply(this,arguments):s;return m*v},o,u)},h.scaleTo=function(t,s,o,u){h.transform(t,function(){var m=e.apply(this,arguments),v=this.__zoom,y=o==null?O(m):typeof o=="function"?o.apply(this,arguments):o,b=v.invert(y),z=typeof s=="function"?s.apply(this,arguments):s;return a(I(D(v,z),y,b),m,i)},o,u)},h.translateBy=function(t,s,o,u){h.transform(t,function(){return a(this.__zoom.translate(typeof s=="function"?s.apply(this,arguments):s,typeof o=="function"?o.apply(this,arguments):o),e.apply(this,arguments),i)},null,u)},h.translateTo=function(t,s,o,u,m){h.transform(t,function(){var v=e.apply(this,arguments),y=this.__zoom,b=u==null?O(v):typeof u=="function"?u.apply(this,arguments):u;return a(bt.translate(b[0],b[1]).scale(y.k).translate(typeof s=="function"?-s.apply(this,arguments):-s,typeof o=="function"?-o.apply(this,arguments):-o),v,i)},u,m)};function D(t,s){return s=Math.max(l[0],Math.min(l[1],s)),s===t.k?t:new gt(s,t.x,t.y)}function I(t,s,o){var u=s[0]-o[0]*t.k,m=s[1]-o[1]*t.k;return u===t.x&&m===t.y?t:new gt(t.k,u,m)}function O(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function V(t,s,o,u){t.on("start.zoom",function(){g(this,arguments).event(u).start()}).on("interrupt.zoom end.zoom",function(){g(this,arguments).event(u).end()}).tween("zoom",function(){var m=this,v=arguments,y=g(m,v).event(u),b=e.apply(m,v),z=o==null?O(b):typeof o=="function"?o.apply(m,v):o,F=Math.max(b[1][0]-b[0][0],b[1][1]-b[0][1]),T=m.__zoom,Y=typeof s=="function"?s.apply(m,v):s,Q=d(T.invert(z).concat(F/T.k),Y.invert(z).concat(F/Y.k));return function(C){if(C===1)C=Y;else{var U=Q(C),dt=F/U[2];C=new gt(dt,z[0]-U[0]*dt,z[1]-U[1]*dt)}y.zoom(null,C)}})}function g(t,s,o){return!o&&t.__zooming||new k(t,s)}function k(t,s){this.that=t,this.args=s,this.active=0,this.sourceEvent=null,this.extent=e.apply(t,s),this.taps=0}k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,s){return this.mouse&&t!=="mouse"&&(this.mouse[1]=s.invert(this.mouse[0])),this.touch0&&t!=="touch"&&(this.touch0[1]=s.invert(this.touch0[0])),this.touch1&&t!=="touch"&&(this.touch1[1]=s.invert(this.touch1[0])),this.that.__zoom=s,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var s=j(this.that).datum();p.call(t,this.that,new ae(t,{sourceEvent:this.sourceEvent,target:h,transform:this.that.__zoom,dispatch:p}),s)}};function A(t,...s){if(!n.apply(this,arguments))return;var o=g(this,s).event(t),u=this.__zoom,m=Math.max(l[0],Math.min(l[1],u.k*Math.pow(2,c.apply(this,arguments)))),v=ot(t);if(o.wheel)(o.mouse[0][0]!==v[0]||o.mouse[0][1]!==v[1])&&(o.mouse[1]=u.invert(o.mouse[0]=v)),clearTimeout(o.wheel);else{if(u.k===m)return;o.mouse=[v,u.invert(v)],vt(this),o.start()}st(t),o.wheel=setTimeout(y,w),o.zoom("mouse",a(I(D(u,m),o.mouse[0],o.mouse[1]),o.extent,i));function y(){o.wheel=null,o.end()}}function W(t,...s){if(x||!n.apply(this,arguments))return;var o=t.currentTarget,u=g(this,s,!0).event(t),m=j(t.view).on("mousemove.zoom",z,!0).on("mouseup.zoom",F,!0),v=ot(t,o),y=t.clientX,b=t.clientY;Xt(t.view),pt(t),u.mouse=[v,this.__zoom.invert(v)],vt(this),u.start();function z(T){if(st(T),!u.moved){var Y=T.clientX-y,Q=T.clientY-b;u.moved=Y*Y+Q*Q>Z}u.event(T).zoom("mouse",a(I(u.that.__zoom,u.mouse[0]=ot(T,o),u.mouse[1]),u.extent,i))}function F(T){m.on("mousemove.zoom mouseup.zoom",null),Ht(T.view,u.moved),st(T),u.event(T).end()}}function at(t,...s){if(n.apply(this,arguments)){var o=this.__zoom,u=ot(t.changedTouches?t.changedTouches[0]:t,this),m=o.invert(u),v=o.k*(t.shiftKey?.5:2),y=a(I(D(o,v),u,m),e.apply(this,s),i);st(t),_>0?j(this).transition().duration(_).call(V,y,u,t):j(this).call(h.transform,y,u,t)}}function Tt(t,...s){if(n.apply(this,arguments)){var o=t.touches,u=o.length,m=g(this,s,t.changedTouches.length===u).event(t),v,y,b,z;for(pt(t),y=0;y<u;++y)b=o[y],z=ot(b,this),z=[z,this.__zoom.invert(z),b.identifier],m.touch0?!m.touch1&&m.touch0[2]!==z[2]&&(m.touch1=z,m.taps=0):(m.touch0=z,v=!0,m.taps=1+!!M);M&&(M=clearTimeout(M)),v&&(m.taps<2&&(G=z[0],M=setTimeout(function(){M=null},P)),vt(this),m.start())}}function Bt(t,...s){if(this.__zooming){var o=g(this,s).event(t),u=t.changedTouches,m=u.length,v,y,b,z;for(st(t),v=0;v<m;++v)y=u[v],b=ot(y,this),o.touch0&&o.touch0[2]===y.identifier?o.touch0[0]=b:o.touch1&&o.touch1[2]===y.identifier&&(o.touch1[0]=b);if(y=o.that.__zoom,o.touch1){var F=o.touch0[0],T=o.touch0[1],Y=o.touch1[0],Q=o.touch1[1],C=(C=Y[0]-F[0])*C+(C=Y[1]-F[1])*C,U=(U=Q[0]-T[0])*U+(U=Q[1]-T[1])*U;y=D(y,Math.sqrt(C/U)),b=[(F[0]+Y[0])/2,(F[1]+Y[1])/2],z=[(T[0]+Q[0])/2,(T[1]+Q[1])/2]}else if(o.touch0)b=o.touch0[0],z=o.touch0[1];else return;o.zoom("touch",a(I(y,b,z),o.extent,i))}}function Pt(t,...s){if(this.__zooming){var o=g(this,s).event(t),u=t.changedTouches,m=u.length,v,y;for(pt(t),x&&clearTimeout(x),x=setTimeout(function(){x=null},P),v=0;v<m;++v)y=u[v],o.touch0&&o.touch0[2]===y.identifier?delete o.touch0:o.touch1&&o.touch1[2]===y.identifier&&delete o.touch1;if(o.touch1&&!o.touch0&&(o.touch0=o.touch1,delete o.touch1),o.touch0)o.touch0[1]=this.__zoom.invert(o.touch0[0]);else if(o.end(),o.taps===2&&(y=ot(y,this),Math.hypot(G[0]-y[0],G[1]-y[1])<S)){var b=j(this).on("dblclick.zoom");b&&b.apply(this,arguments)}}}return h.wheelDelta=function(t){return arguments.length?(c=typeof t=="function"?t:ft(+t),h):c},h.filter=function(t){return arguments.length?(n=typeof t=="function"?t:ft(!!t),h):n},h.touchable=function(t){return arguments.length?(r=typeof t=="function"?t:ft(!!t),h):r},h.extent=function(t){return arguments.length?(e=typeof t=="function"?t:ft([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),h):e},h.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],h):[l[0],l[1]]},h.translateExtent=function(t){return arguments.length?(i[0][0]=+t[0][0],i[1][0]=+t[1][0],i[0][1]=+t[0][1],i[1][1]=+t[1][1],h):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},h.constrain=function(t){return arguments.length?(a=t,h):a},h.duration=function(t){return arguments.length?(_=+t,h):_},h.interpolate=function(t){return arguments.length?(d=t,h):d},h.on=function(){var t=p.on.apply(p,arguments);return t===p?h:t},h.clickDistance=function(t){return arguments.length?(Z=(t=+t)*t,h):Math.sqrt(Z)},h.tapDistance=function(t){return arguments.length?(S=+t,h):S},h}function he(n,e){let a=n.scaleIndependentXForm;a||(a=n.scaleIndependentXForm=e.createSVGTransform(),n.transform.baseVal.appendItem(a));const c=n.parentNode;if(c){const r=c.getScreenCTM();if(r){const l=r.inverse().multiply(e.getScreenCTM());l.e=l.f=0,a.setMatrix(l)}}}var fe=nt('<div class="pointer-events-auto absolute bottom-0 left-1 z-20 flex select-none items-center gap-1 rounded-lg bg-muted bg-opacity-80 shadow-md backdrop-blur-sm"><!> <div class="h-6 w-px bg-white bg-opacity-20"></div> <!> <div class="w-[32px] text-center text-sm text-muted-foreground" data-testid="zoom-level"> </div> <!></div>');function me(n,e){var a=fe(),c=q(a);yt(c,{variant:"ghost","data-testid":"zoom-reset",size:"sm",get onclick(){return e.onZoomReset},get disabled(){return e.isResetDisabled},children:(d,p)=>{St();var M=Dt("Reset");B(d,M)},$$slots:{default:!0}});var r=ut(c,4);yt(r,{title:"zoom out",variant:"ghost",size:"icon","data-testid":"zoom-out",get onclick(){return e.onZoomOut},get disabled(){return e.isZoominDisabled},children:(d,p)=>{Ot(d,{class:"h-4 w-4"})},$$slots:{default:!0}});var l=ut(r,2),i=q(l);X(l);var _=ut(l,2);yt(_,{title:"zoom in",variant:"ghost",size:"icon","data-testid":"zoom-in",get onclick(){return e.onZoomIn},get disabled(){return e.isZoomoutDisabled},children:(d,p)=>{Gt(d,{class:"h-4 w-4"})},$$slots:{default:!0}}),X(a),Mt(d=>Kt(i,`${d??""}%`),[()=>Math.round(e.scale*100)]),B(n,a)}var de=nt('<div class="relative flex h-full w-full select-none items-center justify-center"><!> <svg class="z-10 h-full w-full" preserveAspectRatio="xMidYMid meet"><g><!></g></svg> <svg class="pointer-events-none absolute inset-0" preserveAspectRatio="xMidYMid meet"></svg></div>');function Ce(n,e){R(e,!0);let a=it(null),c=it(null);const r=tt(e,"cursor",3,"auto");let l=it(800),i=it(600);xt(()=>{if(!f(a))return;L(l,f(a).clientWidth,!0),L(i,f(a).clientHeight,!0);const g=new ResizeObserver(()=>{f(a)&&(L(l,f(a).clientWidth,!0),L(i,f(a).clientHeight,!0))});return g.observe(f(a)),()=>g.disconnect()});const _=10,d=mt(()=>{const g={x:0,y:0,width:e.width,height:e.height};if(e.boundingBox){Z();const{x:k,y:A,width:W,height:at}=e.boundingBox;return{x:Math.round(Math.max(0,k-_)),y:Math.round(Math.max(0,A-_)),width:Math.round(Math.min(e.width-k,W+_*2)),height:Math.round(Math.min(e.height-A,at+_*2))}}return g});let p=it(Zt({k:1,x:0,y:0}));const M=mt(()=>{if(!f(a))return 1;const g=f(l)/e.width,k=f(i)/e.height,A=Math.min(g,k);return f(p).k*A}),G=mt(()=>{if(!f(a))return 1;let g=f(M);if(e.boundingBox){const k=e.width/f(d).width,A=e.height/f(d).height,W=Math.min(k,A);g*=W}return g});let x=it(null);const P=()=>{f(a)&&(L(x,ce().on("zoom",g=>{L(p,g.transform,!0)}).filter(g=>(!g.ctrlKey||g.type==="wheel")&&!g.button&&!(g.type==="mousedown"&&g.button===2)).wheelDelta(g=>-g.deltaY*.002),!0),j(f(a)).call(f(x)).on("dblclick.zoom",null))},w=g=>{if(!f(a)||!f(x))return;const k=g?1.5:.75;j(f(a)).transition().duration(300).call(f(x).scaleBy,k)},Z=()=>{!f(a)||!f(x)||j(f(a)).transition().duration(300).call(f(x).transform,bt)};qt(()=>{P()}),xt(()=>{f(p).k,Qt(".unscaled").each(function(){he(this,f(c))})});var S=de(),h=q(S);me(h,{get scale(){return f(M)},onZoomIn:()=>w(!0),onZoomOut:()=>w(!1),onZoomReset:Z});var D=ut(h,2),I=q(D),O=q(I);E(O,()=>e.zoomableContent,()=>({scale:f(G)})),X(I),X(D),et(D,g=>L(a,g),()=>f(a));var V=ut(D,2);_t(V,"viewBox","0 0 1024 768"),et(V,g=>L(c,g),()=>f(c)),X(S),Mt(()=>{Vt(D,`cursor: ${r()};`),_t(D,"viewBox",`${f(d).x} ${f(d).y} ${f(d).width} ${f(d).height}`),_t(I,"transform",`translate(${f(p).x}, ${f(p).y}) scale(${f(p).k})`)}),B(n,S),N()}export{De as B,Se as D,Ze as H,Ce as Z,Ne as a,Ie as b,Re as c,Ee as d,Ve as e,Ae as g,Ye as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.5jT7P06o.js","../chunks/qIv1kPyv.js","../chunks/D5w4xp5l.js","../chunks/Frwd2CjB.js","../chunks/DIeogL5L.js","../chunks/CWj6FrbW.js","../chunks/DQ8aZ1o-.js","../chunks/CYgJF_JY.js","../chunks/CiaNZCBa.js","../chunks/DzX_yyqb.js","../chunks/D_ynJAfY.js","../chunks/Dug7Bq1S.js","../chunks/H60ATh8g.js","../chunks/H4l0JFh9.js","../chunks/Dj4O-5se.js","../chunks/69_IOA4Y.js","../chunks/B7302SU7.js","../chunks/-DXuGN29.js","../chunks/DzBTnFhV.js","../chunks/Dafy4oEQ.js","../assets/0.B3oFNb6O.css","../nodes/1.Cdy-7S5q.js","../chunks/DSxvnAMh.js","../nodes/2.BIldfkxL.js","../chunks/CfQ4mGwl.js","../chunks/B90CZVMX.js","../chunks/Cqo0Vpvt.js","../chunks/Bqz7dyEC.js","../chunks/DD63uD-T.js","../chunks/C1FmrZbK.js","../chunks/Cy4fgWTG.js","../assets/transform.2jKMtOWG.css","../chunks/CZGpyrcA.js","../chunks/sLqs1uaK.js","../assets/2.CkOblLn7.css","../nodes/3.BC9z_TWM.js","../chunks/Dv5BSBQG.js","../nodes/4.D8X_Ch5n.js","../nodes/5.CAXhxJu6.js","../chunks/DmjAI-UV.js","../chunks/u-it74zV.js","../nodes/6.DRA5Ru_2.js","../nodes/7.WVBsruHQ.js","../nodes/8.BuKUrCEN.js","../chunks/CSCQddQS.js","../nodes/9.CUIn1yCR.js","../chunks/BeWf8-vJ.js","../nodes/10.C_uoESTX.js","../nodes/11.CWG1ehzT.js","../nodes/12.DcO8wIAc.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var mt=r=>{throw TypeError(r)};var dt=(r,t,e)=>t.has(r)||mt("Cannot "+e);var i=(r,t,e)=>(dt(r,t,"read from private field"),e?e.call(r):t.get(r)),p=(r,t,e)=>t.has(r)?mt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),$=(r,t,e,_)=>(dt(r,t,"write to private field"),_?_.call(r,e):t.set(r,e),e);import{_ as m}from"../chunks/C1FmrZbK.js";import{i as Vt}from"../chunks/Dj4O-5se.js";import{Y as G,ai as xt,g as n,aL as kt,z as wt,W as jt,p as Ct,e as Mt,u as St,ak as tt,aM as Yt,f as d,s as zt,a as Gt,b as y,c as Wt,r as qt,t as Bt}from"../chunks/Frwd2CjB.js";import{h as Ft,m as Ht,u as Jt,s as Kt}from"../chunks/H60ATh8g.js";import"../chunks/CWj6FrbW.js";import{o as Nt}from"../chunks/DQ8aZ1o-.js";import{i as w}from"../chunks/-DXuGN29.js";import{f as ut,a as o,c,t as Qt}from"../chunks/CiaNZCBa.js";import{p as j,c as I,b as R}from"../chunks/Dafy4oEQ.js";function Ut(r){return class extends Xt{constructor(t){super({component:r,...t})}}}var O,l;class Xt{constructor(t){p(this,O);p(this,l);var D;var e=new Map,_=(a,s)=>{var E=jt(s,!1,!1);return e.set(a,E),E};const f=new Proxy({...t.props||{},$$events:{}},{get(a,s){return n(e.get(s)??_(s,Reflect.get(a,s)))},has(a,s){return s===xt?!0:(n(e.get(s)??_(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,E){return G(e.get(s)??_(s,E),E),Reflect.set(a,s,E)}});$(this,l,(t.hydrate?Ft:Ht)(t.component,{target:t.target,anchor:t.anchor,props:f,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((D=t==null?void 0:t.props)!=null&&D.$$host)||t.sync===!1)&&kt(),$(this,O,f.$$events);for(const a of Object.keys(i(this,l)))a==="$set"||a==="$destroy"||a==="$on"||wt(this,a,{get(){return i(this,l)[a]},set(s){i(this,l)[a]=s},enumerable:!0});i(this,l).$set=a=>{Object.assign(f,a)},i(this,l).$destroy=()=>{Jt(i(this,l))}}$set(t){i(this,l).$set(t)}$on(t,e){i(this,O)[t]=i(this,O)[t]||[];const _=(...f)=>e.call(this,...f);return i(this,O)[t].push(_),()=>{i(this,O)[t]=i(this,O)[t].filter(f=>f!==_)}}$destroy(){i(this,l).$destroy()}}O=new WeakMap,l=new WeakMap;const Zt=Vt.reroute(),he={};var pt=ut('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),$t=ut("<!> <!>",1);function te(r,t){Ct(t,!0);let e=j(t,"components",23,()=>[]),_=j(t,"data_0",3,null),f=j(t,"data_1",3,null),D=j(t,"data_2",3,null),a=j(t,"data_3",3,null),s=j(t,"data_4",3,null);Mt(()=>t.stores.page.set(t.page)),St(()=>{t.stores,t.page,t.constructors,e(),t.form,_(),f(),D(),a(),s(),t.stores.page.notify()});let E=tt(!1),et=tt(!1),rt=tt(null);Nt(()=>{const u=t.stores.page.subscribe(()=>{n(E)&&(G(et,!0),Yt().then(()=>{G(rt,document.title||"untitled page",!0)}))});return G(E,!0),u});const ct=y(()=>t.constructors[4]);var at=$t(),st=d(at);{var lt=u=>{const b=y(()=>t.constructors[0]);var L=c(),C=d(L);I(C,()=>n(b),(A,T)=>{R(T(A,{get data(){return _()},get form(){return t.form},children:(v,ae)=>{var ot=c(),ht=d(ot);{var Pt=V=>{const W=y(()=>t.constructors[1]);var M=c(),q=d(M);I(q,()=>n(W),(B,F)=>{R(F(B,{get data(){return f()},get form(){return t.form},children:(g,se)=>{var nt=c(),yt=d(nt);{var It=x=>{const H=y(()=>t.constructors[2]);var S=c(),J=d(S);I(J,()=>n(H),(K,N)=>{R(N(K,{get data(){return D()},get form(){return t.form},children:(h,oe)=>{var it=c(),Ot=d(it);{var bt=k=>{const Q=y(()=>t.constructors[3]);var Y=c(),U=d(Y);I(U,()=>n(Q),(X,Z)=>{R(Z(X,{get data(){return a()},get form(){return t.form},children:(P,ne)=>{var _t=c(),At=d(_t);I(At,()=>n(ct),(Dt,Tt)=>{R(Tt(Dt,{get data(){return s()},get form(){return t.form}}),z=>e()[4]=z,()=>{var z;return(z=e())==null?void 0:z[4]})}),o(P,_t)},$$slots:{default:!0}}),P=>e()[3]=P,()=>{var P;return(P=e())==null?void 0:P[3]})}),o(k,Y)},Lt=k=>{const Q=y(()=>t.constructors[3]);var Y=c(),U=d(Y);I(U,()=>n(Q),(X,Z)=>{R(Z(X,{get data(){return a()},get form(){return t.form}}),P=>e()[3]=P,()=>{var P;return(P=e())==null?void 0:P[3]})}),o(k,Y)};w(Ot,k=>{t.constructors[4]?k(bt):k(Lt,!1)})}o(h,it)},$$slots:{default:!0}}),h=>e()[2]=h,()=>{var h;return(h=e())==null?void 0:h[2]})}),o(x,S)},Rt=x=>{const H=y(()=>t.constructors[2]);var S=c(),J=d(S);I(J,()=>n(H),(K,N)=>{R(N(K,{get data(){return D()},get form(){return t.form}}),h=>e()[2]=h,()=>{var h;return(h=e())==null?void 0:h[2]})}),o(x,S)};w(yt,x=>{t.constructors[3]?x(It):x(Rt,!1)})}o(g,nt)},$$slots:{default:!0}}),g=>e()[1]=g,()=>{var g;return(g=e())==null?void 0:g[1]})}),o(V,M)},Et=V=>{const W=y(()=>t.constructors[1]);var M=c(),q=d(M);I(q,()=>n(W),(B,F)=>{R(F(B,{get data(){return f()},get form(){return t.form}}),g=>e()[1]=g,()=>{var g;return(g=e())==null?void 0:g[1]})}),o(V,M)};w(ht,V=>{t.constructors[2]?V(Pt):V(Et,!1)})}o(v,ot)},$$slots:{default:!0}}),v=>e()[0]=v,()=>{var v;return(v=e())==null?void 0:v[0]})}),o(u,L)},ft=u=>{const b=y(()=>t.constructors[0]);var L=c(),C=d(L);I(C,()=>n(b),(A,T)=>{R(T(A,{get data(){return _()},get form(){return t.form}}),v=>e()[0]=v,()=>{var v;return(v=e())==null?void 0:v[0]})}),o(u,L)};w(st,u=>{t.constructors[1]?u(lt):u(ft,!1)})}var vt=zt(st,2);{var gt=u=>{var b=pt(),L=Wt(b);{var C=A=>{var T=Qt();Bt(()=>Kt(T,n(rt))),o(A,T)};w(L,A=>{n(et)&&A(C)})}qt(b),o(u,b)};w(vt,u=>{n(E)&&u(gt)})}o(r,at),Gt()}const Pe=Ut(te),Ee=[()=>m(()=>import("../nodes/0.5jT7P06o.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),()=>m(()=>import("../nodes/1.Cdy-7S5q.js"),__vite__mapDeps([21,5,15,4,3,12,11,8,18,22,6,7]),import.meta.url),()=>m(()=>import("../nodes/2.BIldfkxL.js"),__vite__mapDeps([23,1,2,3,4,24,25,7,5,6,8,17,9,22,26,15,12,11,10,13,18,19,27,28,29,30,31,32,33,16,34]),import.meta.url),()=>m(()=>import("../nodes/3.BC9z_TWM.js"),__vite__mapDeps([35,30,3,4,9,1,2,36,5,8]),import.meta.url),()=>m(()=>import("../nodes/4.D8X_Ch5n.js"),__vite__mapDeps([37,27,9,3,4,1,2,30,36,5,8]),import.meta.url),()=>m(()=>import("../nodes/5.CAXhxJu6.js"),__vite__mapDeps([38,5,3,4,8,9,17,22,6,7,26,15,12,11,10,2,13,18,19,1,27,24,28,29,30,31,32,39,40]),import.meta.url),()=>m(()=>import("../nodes/6.DRA5Ru_2.js"),__vite__mapDeps([41,24,2,25,7]),import.meta.url),()=>m(()=>import("../nodes/7.WVBsruHQ.js"),__vite__mapDeps([42,5,3,4,17,26,15,12,11,8,10,9,2,13,18,22,6,7,19,1,27,24,28,29,30,31]),import.meta.url),()=>m(()=>import("../nodes/8.BuKUrCEN.js"),__vite__mapDeps([43,3,4,2,1,5,8,17,11,10,12,9,13,6,7,26,15,18,22,19,27,24,28,29,30,31,32,39,40,44,33]),import.meta.url),()=>m(()=>import("../nodes/9.CUIn1yCR.js"),__vite__mapDeps([45,5,17,3,4,26,15,12,11,8,10,9,2,13,18,22,6,7,19,1,27,24,28,29,30,31,46,39]),import.meta.url),()=>m(()=>import("../nodes/10.C_uoESTX.js"),__vite__mapDeps([47,5,3,4,17,26,15,12,11,8,10,9,2,13,18,22,6,7,19,1,27,24,28,29,30,31,46,39]),import.meta.url),()=>m(()=>import("../nodes/11.CWG1ehzT.js"),__vite__mapDeps([48,5,15,4]),import.meta.url),()=>m(()=>import("../nodes/12.DcO8wIAc.js"),__vite__mapDeps([49,3,4,2,28,1,13,5,15,11,8,17,22,6,7,24,44]),import.meta.url)],ye=[],Ie={"/":[6],"/datasets/[dataset_id]/annotations":[7,[2,3]],"/datasets/[dataset_id]/annotations/[sampleId]/[annotationId]/[annotationIndex]":[8,[2,3]],"/datasets/[dataset_id]/classifiers":[9,[2]],"/datasets/[dataset_id]/samples":[10,[2,4]],"/datasets/[dataset_id]/samples/[sampleId]":[11,[2,4,5]],"/datasets/[dataset_id]/samples/[sampleId]/[sampleIndex]":[12,[2,4,5]]},ee={handleError:({error:r})=>{console.error(r)},reroute:Zt||(()=>{}),transport:{}},re=Object.fromEntries(Object.entries(ee.transport).map(([r,t])=>[r,t.decode])),Re=!1,Oe=(r,t)=>re[r](t);export{Oe as decode,re as decoders,Ie as dictionary,Re as hash,ee as hooks,he as matchers,Ee as nodes,Pe as root,ye as server_loads};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,e as r}from"../chunks/DQ8aZ1o-.js";export{o as load_css,r as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var an=e=>{throw TypeError(e)};var sn=(e,t,a)=>t.has(e)||an("Cannot "+a);var r=(e,t,a)=>(sn(e,t,"read from private field"),a?a.call(e):t.get(e)),at=(e,t,a)=>t.has(e)?an("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),j=(e,t,a,s)=>(sn(e,t,"write to private field"),s?s.call(e,a):t.set(e,a),a);var Ae=(e,t,a,s)=>({set _(l){j(e,t,l,a)},get _(){return r(e,t,s)}});import{u as Un}from"../chunks/qIv1kPyv.js";import"../chunks/CWj6FrbW.js";import{b as xn,i as qn,o as Se,d as Kn}from"../chunks/DQ8aZ1o-.js";import{G as zn,H as jn,ba as Vn,p as te,bb as At,Y as h,W as oe,g as n,k as yt,bc as In,f as v,h as Qt,a as ee,t as rt,m as Gn,c as mt,r as lt,bd as Wn,aO as on,aP as Yn,ak as Y,aa as Tn,u as Vt,b as T,s as $t,n as kt}from"../chunks/Frwd2CjB.js";import{c as m,a as i,f as ct,t as rn,b as xe}from"../chunks/CiaNZCBa.js";import{s as _t}from"../chunks/DzX_yyqb.js";import{e as Ee,i as Zn,s as S,L as Xn,f as Jn,k as pn,h as ln,M as $n,j as cn,c as Ut,b as qt,l as st,g as ta,m as Nt,d as Ye,S as ea,a as na,n as aa,u as sa}from"../chunks/D_ynJAfY.js";import{n as On,p as Je,s as pe,i as ia}from"../chunks/Dj4O-5se.js";import"../chunks/69_IOA4Y.js";import{b as oa,c as ra,s as Ce}from"../chunks/H60ATh8g.js";import{s as Mn,i as A,a as An}from"../chunks/-DXuGN29.js";import{i as tn}from"../chunks/DzBTnFhV.js";import{p as k,b as Cn,c as pt,s as Ze,r as la}from"../chunks/Dafy4oEQ.js";import{p as $e}from"../chunks/B7302SU7.js";import{o as Be,e as ca,d as ua}from"../chunks/Dug7Bq1S.js";import{S as Dn,o as Pn,Q as da,e as ft,q as un,u as dn,n as Kt,f as fa,v as fn,a as hn,w as ha,x as gn,y as vn,z as ga,A as va}from"../chunks/H4l0JFh9.js";const ma=!0;function En(e,t,a,s,l){var R;zn&&jn();var o=(R=t.$$slots)==null?void 0:R[a],D=!1;o===!0&&(o=t.children,D=!0),o===void 0||o(e,D?()=>s:s)}const ya=ma,_a=Vn;function ba(e,t){return e.protocol!==t.protocol?t.href:t.password||t.username?"//"+[t.username,t.password].filter(Boolean).join(":")+"@"+t.host+t.pathname+t.search+t.hash:e.host!==t.host?"//"+t.host+t.pathname+t.search+t.hash:t.pathname+t.search+t.hash}function wa(e,t,a){const s=new URL(a,t).pathname;return e.origin!==t.origin||!e.pathname.startsWith(s)}var xa=ct('<link rel="alternate"/>');function Ia(e,t){te(t,!1);const a=()=>Mn($e,"$page",s),[s,l]=An(),o=oe(),D=oe(),R=oe(),ot=On(xn,new URL(a().url))||"/";let w=k(t,"availableLanguageTags",8),Q=k(t,"strategy",8),bt=k(t,"currentLang",8);const Dt=(F,q)=>{const K=[];for(const wt of w()){const Et=q.getLocalisedPath(F,wt),ht=pe(Et,ot,void 0),O=new URL(ht,new URL(a().url)).href;K.push(O)}return K};At(()=>a(),()=>{h(o,Je(a().url.pathname,ot)[0])}),At(()=>(yt(Q()),n(o),yt(bt())),()=>{h(D,Q().getCanonicalPath(n(o),bt()))}),At(()=>(n(D),yt(Q())),()=>{h(R,Dt(n(D),Q()))}),In(),tn();var Pt=m(),H=v(Pt);{var V=F=>{var q=m(),K=v(q);Ee(K,1,()=>n(R),Zn,(wt,Et,ht)=>{var O=xa();rt(()=>{S(O,"hreflang",(yt(w()),Qt(()=>w()[ht]))),S(O,"href",n(Et))}),i(wt,O)}),i(F,q)};A(H,F=>{yt(w()),Qt(()=>w().length>=1)&&F(V)})}i(e,Pt),ee(),l()}const Ta=(e,t)=>`${Xn}=${e};Path=${t};SameSite=lax;Max-Age=31557600`;function Oa(e,t){te(t,!1);const a=()=>Mn($e,"$page",s),[s,l]=An(),o=oe(),D=oe(),R=On(xn,new URL(a().url))||"/";let ot=k(t,"languageTag",24,()=>{}),w=k(t,"i18n",8),Q=oe(0);function bt(H,V){try{const F=new URL(Gn($e).url),[q,K]=Je(F.pathname,R),wt=w().strategy.getCanonicalPath(q,n(o)),Et=new URL(F);Et.pathname=pe(wt,R,K);const ht=new URL(H,new URL(Et));if(wa(ht,F,R)||w().config.exclude(ht.pathname))return H;const O=V??n(o),[gt,Ht]=Je(ht.pathname,R),Bt=w().strategy.getLocalisedPath(gt,O),ut=new URL(ht);return ut.pathname=pe(Bt,R,Ht),ba(F,ut)}catch{return H}}Jn({translateHref:bt}),At(()=>(yt(ot()),yt(w()),a()),()=>{h(o,ot()??w().getLanguageFromUrl(a().url))}),At(()=>(yt(w()),n(o)),()=>{w().config.runtime.setLanguageTag(n(o))}),At(()=>n(o),()=>{document.documentElement.lang=n(o)}),At(()=>(yt(w()),n(o)),()=>{document.documentElement.dir=w().config.textDirection[n(o)]??"ltr"}),At(()=>(n(o),n(Q)),()=>{n(o)&&h(Q,n(Q)+1)}),At(()=>(n(o),n(Q),ln),()=>{n(o)&&(n(Q)>1||_a)&&qn(ln)}),At(()=>n(o),()=>{h(D,n(o))}),At(()=>n(o),()=>{document.cookie=Ta(n(o),R)}),In(),tn();var Dt=m();oa(H=>{var V=m(),F=v(V);{var q=K=>{Ia(K,{get availableLanguageTags(){return yt(w()),Qt(()=>w().config.runtime.availableLanguageTags)},get strategy(){return yt(w()),Qt(()=>w().strategy)},get currentLang(){return n(o)}})};A(F,K=>{yt(w()),a(),Qt(()=>w().config.seo.noAlternateLinks!==!0&&!w().config.exclude(a().url.pathname))&&K(q)})}i(H,V)});var Pt=v(Dt);pn(Pt,()=>n(D),H=>{var V=m(),F=v(V);En(F,t,"default",{}),i(H,V)}),i(e,Dt),ee(),l()}const Ma=Un(),Aa=async()=>({globalStorage:Ma}),Us=Object.freeze(Object.defineProperty({__proto__:null,load:Aa},Symbol.toStringTag,{value:"Module"}));var St,_n,Ca=(_n=class extends Dn{constructor(t={}){super();at(this,St);this.config=t,j(this,St,new Map)}build(t,a,s){const l=a.queryKey,o=a.queryHash??Pn(l,a);let D=this.get(o);return D||(D=new da({client:t,queryKey:l,queryHash:o,options:t.defaultQueryOptions(a),state:s,defaultOptions:t.getQueryDefaults(l)}),this.add(D)),D}add(t){r(this,St).has(t.queryHash)||(r(this,St).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const a=r(this,St).get(t.queryHash);a&&(t.destroy(),a===t&&r(this,St).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ft.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return r(this,St).get(t)}getAll(){return[...r(this,St).values()]}find(t){const a={exact:!0,...t};return this.getAll().find(s=>un(a,s))}findAll(t={}){const a=this.getAll();return Object.keys(t).length>0?a.filter(s=>un(t,s)):a}notify(t){ft.batch(()=>{this.listeners.forEach(a=>{a(t)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},St=new WeakMap,_n),zt,Ct,_e,bn,Da=(bn=class extends Dn{constructor(t={}){super();at(this,zt);at(this,Ct);at(this,_e);this.config=t,j(this,zt,new Set),j(this,Ct,new Map),j(this,_e,0)}build(t,a,s){const l=new $n({mutationCache:this,mutationId:++Ae(this,_e)._,options:t.defaultMutationOptions(a),state:s});return this.add(l),l}add(t){r(this,zt).add(t);const a=De(t);if(typeof a=="string"){const s=r(this,Ct).get(a);s?s.push(t):r(this,Ct).set(a,[t])}this.notify({type:"added",mutation:t})}remove(t){if(r(this,zt).delete(t)){const a=De(t);if(typeof a=="string"){const s=r(this,Ct).get(a);if(s)if(s.length>1){const l=s.indexOf(t);l!==-1&&s.splice(l,1)}else s[0]===t&&r(this,Ct).delete(a)}}this.notify({type:"removed",mutation:t})}canRun(t){const a=De(t);if(typeof a=="string"){const s=r(this,Ct).get(a),l=s==null?void 0:s.find(o=>o.state.status==="pending");return!l||l===t}else return!0}runNext(t){var s;const a=De(t);if(typeof a=="string"){const l=(s=r(this,Ct).get(a))==null?void 0:s.find(o=>o!==t&&o.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ft.batch(()=>{r(this,zt).forEach(t=>{this.notify({type:"removed",mutation:t})}),r(this,zt).clear(),r(this,Ct).clear()})}getAll(){return Array.from(r(this,zt))}find(t){const a={exact:!0,...t};return this.getAll().find(s=>dn(a,s))}findAll(t={}){return this.getAll().filter(a=>dn(t,a))}notify(t){ft.batch(()=>{this.listeners.forEach(a=>{a(t)})})}resumePausedMutations(){const t=this.getAll().filter(a=>a.state.isPaused);return ft.batch(()=>Promise.all(t.map(a=>a.continue().catch(Kt))))}},zt=new WeakMap,Ct=new WeakMap,_e=new WeakMap,bn);function De(e){var t;return(t=e.options.scope)==null?void 0:t.id}var U,Wt,Yt,re,le,Zt,ce,ue,wn,Bn=(wn=class{constructor(e={}){at(this,U);at(this,Wt);at(this,Yt);at(this,re);at(this,le);at(this,Zt);at(this,ce);at(this,ue);j(this,U,e.queryCache||new Ca),j(this,Wt,e.mutationCache||new Da),j(this,Yt,e.defaultOptions||{}),j(this,re,new Map),j(this,le,new Map),j(this,Zt,0)}mount(){Ae(this,Zt)._++,r(this,Zt)===1&&(j(this,ce,fa.subscribe(async e=>{e&&(await this.resumePausedMutations(),r(this,U).onFocus())})),j(this,ue,fn.subscribe(async e=>{e&&(await this.resumePausedMutations(),r(this,U).onOnline())})))}unmount(){var e,t;Ae(this,Zt)._--,r(this,Zt)===0&&((e=r(this,ce))==null||e.call(this),j(this,ce,void 0),(t=r(this,ue))==null||t.call(this),j(this,ue,void 0))}isFetching(e){return r(this,U).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return r(this,Wt).findAll({...e,status:"pending"}).length}getQueryData(e){var a;const t=this.defaultQueryOptions({queryKey:e});return(a=r(this,U).get(t.queryHash))==null?void 0:a.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),a=r(this,U).build(this,t),s=a.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(hn(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return r(this,U).findAll(e).map(({queryKey:t,state:a})=>{const s=a.data;return[t,s]})}setQueryData(e,t,a){const s=this.defaultQueryOptions({queryKey:e}),l=r(this,U).get(s.queryHash),o=l==null?void 0:l.state.data,D=ha(t,o);if(D!==void 0)return r(this,U).build(this,s).setData(D,{...a,manual:!0})}setQueriesData(e,t,a){return ft.batch(()=>r(this,U).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,a)]))}getQueryState(e){var a;const t=this.defaultQueryOptions({queryKey:e});return(a=r(this,U).get(t.queryHash))==null?void 0:a.state}removeQueries(e){const t=r(this,U);ft.batch(()=>{t.findAll(e).forEach(a=>{t.remove(a)})})}resetQueries(e,t){const a=r(this,U);return ft.batch(()=>(a.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const a={revert:!0,...t},s=ft.batch(()=>r(this,U).findAll(e).map(l=>l.cancel(a)));return Promise.all(s).then(Kt).catch(Kt)}invalidateQueries(e,t={}){return ft.batch(()=>(r(this,U).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const a={...t,cancelRefetch:t.cancelRefetch??!0},s=ft.batch(()=>r(this,U).findAll(e).filter(l=>!l.isDisabled()).map(l=>{let o=l.fetch(void 0,a);return a.throwOnError||(o=o.catch(Kt)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(s).then(Kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=r(this,U).build(this,t);return a.isStaleByTime(hn(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Kt).catch(Kt)}fetchInfiniteQuery(e){return e.behavior=cn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kt).catch(Kt)}ensureInfiniteQueryData(e){return e.behavior=cn(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fn.isOnline()?r(this,Wt).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,U)}getMutationCache(){return r(this,Wt)}getDefaultOptions(){return r(this,Yt)}setDefaultOptions(e){j(this,Yt,e)}setQueryDefaults(e,t){r(this,re).set(gn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...r(this,re).values()],a={};return t.forEach(s=>{vn(e,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(e,t){r(this,le).set(gn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...r(this,le).values()],a={};return t.forEach(s=>{vn(e,s.mutationKey)&&Object.assign(a,s.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const t={...r(this,Yt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pn(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ga&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...r(this,Yt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){r(this,U).clear(),r(this,Wt).clear()}},U=new WeakMap,Wt=new WeakMap,Yt=new WeakMap,re=new WeakMap,le=new WeakMap,Zt=new WeakMap,ce=new WeakMap,ue=new WeakMap,wn);function Pa(e,t){te(t,!1);let a=k(t,"client",24,()=>new Bn);Se(()=>{a().mount()}),va(a()),Kn(()=>{a().unmount()}),tn();var s=m(),l=v(s);En(l,t,"default",{}),i(e,s),ee()}const Ea=Array(12).fill(0);var Ba=ct('<div class="sonner-loading-bar"></div>'),La=ct('<div><div class="sonner-spinner"></div></div>');function Sa(e,t){te(t,!0);var a=La(),s=mt(a);Ee(s,23,()=>Ea,(l,o)=>`spinner-bar-${o}`,(l,o)=>{var D=Ba();i(l,D)}),lt(s),lt(a),rt(l=>{qt(a,1,l),S(a,"data-visible",t.visible)},[()=>Ut(["sonner-loading-wrapper",t.class].filter(Boolean).join(" "))]),i(e,a),ee()}const ka=typeof window<"u"?window:void 0;function Qa(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const a=t.shadowRoot.activeElement;if(a===t)break;t=a}return t}var de,be;class Ha{constructor(t={}){at(this,de);at(this,be);const{window:a=ka,document:s=a==null?void 0:a.document}=t;a!==void 0&&(j(this,de,s),j(this,be,ra(l=>{const o=Be(a,"focusin",l),D=Be(a,"focusout",l);return()=>{o(),D()}})))}get current(){var t;return(t=r(this,be))==null||t.call(this),r(this,de)?Qa(r(this,de)):null}}de=new WeakMap,be=new WeakMap;new Ha;var we,jt;class Ra{constructor(t){at(this,we);at(this,jt);j(this,we,t),j(this,jt,Symbol(t))}get key(){return r(this,jt)}exists(){return Wn(r(this,jt))}get(){const t=on(r(this,jt));if(t===void 0)throw new Error(`Context "${r(this,we)}" not found`);return t}getOr(t){const a=on(r(this,jt));return a===void 0?t:a}set(t){return Yn(r(this,jt),t)}}we=new WeakMap,jt=new WeakMap;const Fa=new Ra("<Toaster/>");function Le(e){return e.label!==void 0}function Na(){let e=Y(Tn(typeof document<"u"?document.hidden:!1));return Vt(()=>Be(document,"visibilitychange",()=>{h(e,document.hidden,!0)})),{get current(){return n(e)}}}const mn=4e3,Ua=14,qa=45,Ka=200,za=.05,ja={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function Va(e){const[t,a]=e.split("-"),s=[];return t&&s.push(t),a&&s.push(a),s}function yn(e){return 1/(1.5+Math.abs(e)/20)}var Ga=ct("<div><!></div>"),Wa=(e,t,a,s,l)=>{var o,D;n(t)||!n(a)||(s(),(D=(o=l.toast).onDismiss)==null||D.call(o,l.toast))},Ya=ct('<button data-close-button=""><!></button>'),Za=ct('<div data-icon=""><!> <!></div>'),Xa=ct('<div data-description=""><!></div>'),Ja=(e,t,a,s)=>{var l,o;Le(t.toast.cancel)&&n(a)&&((o=(l=t.toast.cancel)==null?void 0:l.onClick)==null||o.call(l,e),s())},pa=ct('<button data-button="" data-cancel=""> </button>'),$a=(e,t,a)=>{var s;Le(t.toast.action)&&((s=t.toast.action)==null||s.onClick(e),!e.defaultPrevented&&a())},ts=ct('<button data-button=""> </button>'),es=ct('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),ns=ct('<li data-sonner-toast=""><!> <!></li>');function as(e,t){te(t,!0);const a=d=>{var g=m(),P=v(g);{var E=x=>{var tt=Ga(),dt=mt(tt);_t(dt,()=>t.loadingIcon),lt(tt),rt(et=>{qt(tt,1,et),S(tt,"data-visible",n(O)==="loading")},[()=>{var et,X,b;return Ut(Nt((et=n(vt))==null?void 0:et.loader,(b=(X=t.toast)==null?void 0:X.classes)==null?void 0:b.loader,"sonner-loader"))}]),i(x,tt)},B=x=>{{let tt=T(()=>{var et,X;return Nt((et=n(vt))==null?void 0:et.loader,(X=t.toast.classes)==null?void 0:X.loader)}),dt=T(()=>n(O)==="loading");Sa(x,{get class(){return n(tt)},get visible(){return n(dt)}})}};A(P,x=>{t.loadingIcon?x(E):x(B,!1)})}i(d,g)};let s=k(t,"cancelButtonStyle",3,""),l=k(t,"actionButtonStyle",3,""),o=k(t,"descriptionClass",3,""),D=k(t,"unstyled",3,!1),R=k(t,"defaultRichColors",3,!1);const ot={...ja};let w=Y(!1),Q=Y(!1),bt=Y(!1),Dt=Y(!1),Pt=Y(!1),H=Y(0),V=Y(0),F=t.toast.duration||t.duration||mn,q=Y(void 0),K=Y(null),wt=Y(null);const Et=T(()=>t.index===0),ht=T(()=>t.index+1<=t.visibleToasts),O=T(()=>t.toast.type),gt=T(()=>t.toast.dismissable!==!1),Ht=T(()=>t.toast.class||""),Bt=T(()=>t.toast.descriptionClass||""),ut=T(()=>st.heights.findIndex(d=>d.toastId===t.toast.id)||0),Xt=T(()=>t.toast.closeButton??t.closeButton),ke=T(()=>t.toast.duration??t.duration??mn);let Gt=null;const Ie=T(()=>t.position.split("-")),Qe=T(()=>st.heights.reduce((d,g,P)=>P>=n(ut)?d:d+g.height,0)),He=Na(),Re=T(()=>t.toast.invert||t.invert),fe=T(()=>n(O)==="loading"),vt=T(()=>({...ot,...t.classes})),Fe=T(()=>t.toast.title),Jt=T(()=>t.toast.description);let he=Y(0),Te=Y(0);const f=T(()=>Math.round(n(ut)*Ua+n(Qe)));Vt(()=>{n(Fe),n(Jt);let d;t.expanded||t.expandByDefault?d=1:d=1-t.index*za;const g=Qt(()=>n(q));if(g===void 0)return;g.style.setProperty("height","auto");const P=g.offsetHeight,E=g.getBoundingClientRect().height,B=Math.round(E/d+Number.EPSILON&100)/100;g.style.removeProperty("height");let x;Math.abs(B-P)<1?x=B:x=P,h(V,x,!0),Qt(()=>{st.setHeight({toastId:t.toast.id,height:x})})});function _(){h(Q,!0),h(H,n(f),!0),st.removeHeight(t.toast.id),setTimeout(()=>{st.remove(t.toast.id)},Ka)}let Z;const Rt=T(()=>t.toast.promise&&n(O)==="loading"||t.toast.duration===Number.POSITIVE_INFINITY);function xt(){h(he,new Date().getTime(),!0),Z=setTimeout(()=>{var d,g;(g=(d=t.toast).onAutoClose)==null||g.call(d,t.toast),_()},F)}function ne(){if(n(Te)<n(he)){const d=new Date().getTime()-n(he);F=F-d}h(Te,new Date().getTime(),!0)}Vt(()=>{t.toast.updated&&(clearTimeout(Z),F=n(ke),xt())}),Vt(()=>(n(Rt)||(t.expanded||t.interacting||He.current?ne():xt()),()=>clearTimeout(Z))),Se(()=>{var g;h(w,!0);const d=(g=n(q))==null?void 0:g.getBoundingClientRect().height;return h(V,d,!0),st.setHeight({toastId:t.toast.id,height:d}),()=>{st.removeHeight(t.toast.id)}}),Vt(()=>{t.toast.delete&&Qt(()=>{var d,g;_(),(g=(d=t.toast).onDismiss)==null||g.call(d,t.toast)})});const en=d=>{if(n(fe))return;h(H,n(f),!0);const g=d.target;g.setPointerCapture(d.pointerId),g.tagName!=="BUTTON"&&(h(bt,!0),Gt={x:d.clientX,y:d.clientY})},Oe=()=>{var x,tt,dt,et,X,b;if(n(Dt)||!n(gt))return;Gt=null;const d=Number(((x=n(q))==null?void 0:x.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),g=Number(((tt=n(q))==null?void 0:tt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),P=new Date().getTime()-0,E=n(K)==="x"?d:g,B=Math.abs(E)/P;if(Math.abs(E)>=qa||B>.11){h(H,n(f),!0),(et=(dt=t.toast).onDismiss)==null||et.call(dt,t.toast),n(K)==="x"?h(wt,d>0?"right":"left",!0):h(wt,g>0?"down":"up",!0),_(),h(Dt,!0);return}else(X=n(q))==null||X.style.setProperty("--swipe-amount-x","0px"),(b=n(q))==null||b.style.setProperty("--swipe-amount-y","0px");h(Pt,!1),h(bt,!1),h(K,null)},Lt=d=>{var tt,dt,et;if(!Gt||!n(gt)||(((tt=window.getSelection())==null?void 0:tt.toString().length)??-1)>0)return;const P=d.clientY-Gt.y,E=d.clientX-Gt.x,B=t.swipeDirections??Va(t.position);!n(K)&&(Math.abs(E)>1||Math.abs(P)>1)&&h(K,Math.abs(E)>Math.abs(P)?"x":"y",!0);let x={x:0,y:0};if(n(K)==="y"){if(B.includes("top")||B.includes("bottom"))if(B.includes("top")&&P<0||B.includes("bottom")&&P>0)x.y=P;else{const X=P*yn(P);x.y=Math.abs(X)<Math.abs(P)?X:P}}else if(n(K)==="x"&&(B.includes("left")||B.includes("right")))if(B.includes("left")&&E<0||B.includes("right")&&E>0)x.x=E;else{const X=E*yn(E);x.x=Math.abs(X)<Math.abs(E)?X:E}(Math.abs(x.x)>0||Math.abs(x.y)>0)&&h(Pt,!0),(dt=n(q))==null||dt.style.setProperty("--swipe-amount-x",`${x.x}px`),(et=n(q))==null||et.style.setProperty("--swipe-amount-y",`${x.y}px`)},Ft=()=>{h(bt,!1),h(K,null),Gt=null},$=T(()=>t.toast.icon?t.toast.icon:n(O)==="success"?t.successIcon:n(O)==="error"?t.errorIcon:n(O)==="warning"?t.warningIcon:n(O)==="info"?t.infoIcon:n(O)==="loading"?t.loadingIcon:null);ta();var M=ns();S(M,"tabindex",0);let Me;M.__pointermove=Lt,M.__pointerup=Oe,M.__pointerdown=en;var Ne=mt(M);{var Ue=d=>{var g=Ya();g.__click=[Wa,fe,gt,_,t];var P=mt(g);_t(P,()=>t.closeIcon??kt),lt(g),rt(E=>{S(g,"aria-label",t.closeButtonAriaLabel),S(g,"data-disabled",n(fe)),qt(g,1,E)},[()=>{var E,B,x;return Ut(Nt((E=n(vt))==null?void 0:E.closeButton,(x=(B=t.toast)==null?void 0:B.classes)==null?void 0:x.closeButton))}]),i(d,g)};A(Ne,d=>{n(Xt)&&!t.toast.component&&n(O)!=="loading"&&t.closeIcon!==null&&d(Ue)})}var qe=$t(Ne,2);{var Ke=d=>{const g=T(()=>t.toast.component);var P=m(),E=v(P);pt(E,()=>n(g),(B,x)=>{x(B,Ze(()=>t.toast.componentProps,{closeToast:_}))}),i(d,P)},ze=d=>{var g=es(),P=v(g);{var E=C=>{var c=Za(),y=mt(c);{var L=I=>{var N=m(),J=v(N);{var W=nt=>{var p=m(),Ot=v(p);pt(Ot,()=>t.toast.icon,(Mt,ge)=>{ge(Mt,{})}),i(nt,p)},z=nt=>{a(nt)};A(J,nt=>{t.toast.icon?nt(W):nt(z,!1)})}i(I,N)};A(y,I=>{(t.toast.promise||n(O)==="loading")&&I(L)})}var G=$t(y,2);{var u=I=>{var N=m(),J=v(N);{var W=nt=>{var p=m(),Ot=v(p);pt(Ot,()=>t.toast.icon,(Mt,ge)=>{ge(Mt,{})}),i(nt,p)},z=nt=>{var p=m(),Ot=v(p);{var Mt=ae=>{var ve=m(),je=v(ve);_t(je,()=>t.successIcon??kt),i(ae,ve)},ge=ae=>{var ve=m(),je=v(ve);{var kn=se=>{var me=m(),Ve=v(me);_t(Ve,()=>t.errorIcon??kt),i(se,me)},Qn=se=>{var me=m(),Ve=v(me);{var Hn=ie=>{var ye=m(),Ge=v(ye);_t(Ge,()=>t.warningIcon??kt),i(ie,ye)},Rn=ie=>{var ye=m(),Ge=v(ye);{var Fn=We=>{var nn=m(),Nn=v(nn);_t(Nn,()=>t.infoIcon??kt),i(We,nn)};A(Ge,We=>{n(O)==="info"&&We(Fn)},!0)}i(ie,ye)};A(Ve,ie=>{n(O)==="warning"?ie(Hn):ie(Rn,!1)},!0)}i(se,me)};A(je,se=>{n(O)==="error"?se(kn):se(Qn,!1)},!0)}i(ae,ve)};A(Ot,ae=>{n(O)==="success"?ae(Mt):ae(ge,!1)},!0)}i(nt,p)};A(J,nt=>{t.toast.icon?nt(W):nt(z,!1)})}i(I,N)};A(G,I=>{t.toast.type!=="loading"&&I(u)})}lt(c),rt(I=>qt(c,1,I),[()=>{var I,N,J;return Ut(Nt((I=n(vt))==null?void 0:I.icon,(J=(N=t.toast)==null?void 0:N.classes)==null?void 0:J.icon))}]),i(C,c)};A(P,C=>{(n(O)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(n($)!==null||t.toast.icon)&&C(E)})}var B=$t(P,2),x=mt(B),tt=mt(x);{var dt=C=>{var c=m(),y=v(c);{var L=u=>{const I=T(()=>t.toast.title);var N=m(),J=v(N);pt(J,()=>n(I),(W,z)=>{z(W,Ze(()=>t.toast.componentProps))}),i(u,N)},G=u=>{var I=rn();rt(()=>Ce(I,t.toast.title)),i(u,I)};A(y,u=>{typeof t.toast.title!="string"?u(L):u(G,!1)})}i(C,c)};A(tt,C=>{t.toast.title&&C(dt)})}lt(x);var et=$t(x,2);{var X=C=>{var c=Xa(),y=mt(c);{var L=u=>{const I=T(()=>t.toast.description);var N=m(),J=v(N);pt(J,()=>n(I),(W,z)=>{z(W,Ze(()=>t.toast.componentProps))}),i(u,N)},G=u=>{var I=rn();rt(()=>Ce(I,t.toast.description)),i(u,I)};A(y,u=>{typeof t.toast.description!="string"?u(L):u(G,!1)})}lt(c),rt(u=>qt(c,1,u),[()=>{var u,I;return Ut(Nt(o(),n(Bt),(u=n(vt))==null?void 0:u.description,(I=t.toast.classes)==null?void 0:I.description))}]),i(C,c)};A(et,C=>{t.toast.description&&C(X)})}lt(B);var b=$t(B,2);{var it=C=>{var c=m(),y=v(c);{var L=u=>{var I=m(),N=v(I);pt(N,()=>t.toast.cancel,(J,W)=>{W(J,{})}),i(u,I)},G=u=>{var I=m(),N=v(I);{var J=W=>{var z=pa();z.__click=[Ja,t,gt,_];var nt=mt(z,!0);lt(z),rt(p=>{Ye(z,t.toast.cancelButtonStyle??s()),qt(z,1,p),Ce(nt,t.toast.cancel.label)},[()=>{var p,Ot,Mt;return Ut(Nt((p=n(vt))==null?void 0:p.cancelButton,(Mt=(Ot=t.toast)==null?void 0:Ot.classes)==null?void 0:Mt.cancelButton))}]),i(W,z)};A(N,W=>{Le(t.toast.cancel)&&W(J)},!0)}i(u,I)};A(y,u=>{typeof t.toast.cancel=="function"?u(L):u(G,!1)})}i(C,c)};A(b,C=>{t.toast.cancel&&C(it)})}var It=$t(b,2);{var Tt=C=>{var c=m(),y=v(c);{var L=u=>{var I=m(),N=v(I);pt(N,()=>t.toast.action,(J,W)=>{W(J,{})}),i(u,I)},G=u=>{var I=m(),N=v(I);{var J=W=>{var z=ts();z.__click=[$a,t,_];var nt=mt(z,!0);lt(z),rt(p=>{Ye(z,t.toast.actionButtonStyle??l()),qt(z,1,p),Ce(nt,t.toast.action.label)},[()=>{var p,Ot,Mt;return Ut(Nt((p=n(vt))==null?void 0:p.actionButton,(Mt=(Ot=t.toast)==null?void 0:Ot.classes)==null?void 0:Mt.actionButton))}]),i(W,z)};A(N,W=>{Le(t.toast.action)&&W(J)},!0)}i(u,I)};A(y,u=>{typeof t.toast.action=="function"?u(L):u(G,!1)})}i(C,c)};A(It,C=>{t.toast.action&&C(Tt)})}rt(C=>qt(x,1,C),[()=>{var C,c,y;return Ut(Nt((C=n(vt))==null?void 0:C.title,(y=(c=t.toast)==null?void 0:c.classes)==null?void 0:y.title))}]),i(d,g)};A(qe,d=>{t.toast.component?d(Ke):d(ze,!1)})}lt(M),Cn(M,d=>h(q,d),()=>n(q)),rt((d,g,P,E)=>{qt(M,1,d),S(M,"data-rich-colors",t.toast.richColors??R()),S(M,"data-styled",!(t.toast.component||t.toast.unstyled||D())),S(M,"data-mounted",n(w)),S(M,"data-promise",g),S(M,"data-swiped",n(Pt)),S(M,"data-removed",n(Q)),S(M,"data-visible",n(ht)),S(M,"data-y-position",n(Ie)[0]),S(M,"data-x-position",n(Ie)[1]),S(M,"data-index",t.index),S(M,"data-front",n(Et)),S(M,"data-swiping",n(bt)),S(M,"data-dismissable",n(gt)),S(M,"data-type",n(O)),S(M,"data-invert",n(Re)),S(M,"data-swipe-out",n(Dt)),S(M,"data-swipe-direction",n(wt)),S(M,"data-expanded",P),Me=Ye(M,`${t.style} ${t.toast.style}`,Me,E)},[()=>{var d,g,P,E,B,x;return Ut(Nt(t.class,n(Ht),(d=n(vt))==null?void 0:d.toast,(P=(g=t.toast)==null?void 0:g.classes)==null?void 0:P.toast,(E=n(vt))==null?void 0:E[n(O)],(x=(B=t.toast)==null?void 0:B.classes)==null?void 0:x[n(O)]))},()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&n(w)),()=>({"--index":t.index,"--toasts-before":t.index,"--z-index":st.toasts.length-t.index,"--offset":`${n(Q)?n(H):n(f)}px`,"--initial-height":t.expandByDefault?"auto":`${n(V)}px`})]),ca("dragend",M,Ft),i(e,M),ee()}ua(["pointermove","pointerup","pointerdown","click"]);var ss=xe('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function is(e){var t=ss();i(e,t)}var os=xe('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function rs(e){var t=os();i(e,t)}var ls=xe('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function cs(e){var t=ls();i(e,t)}var us=xe('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function ds(e){var t=us();i(e,t)}var fs=xe('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function hs(e){var t=fs();i(e,t)}const gs=3,Ln="24px",Sn="16px",vs=4e3,ms=356,ys=14,Xe="dark",Pe="light";function _s(e,t){const a={};return[e,t].forEach((s,l)=>{const o=l===1,D=o?"--mobile-offset":"--offset",R=o?Sn:Ln;function ot(w){["top","right","bottom","left"].forEach(Q=>{a[`${D}-${Q}`]=typeof w=="number"?`${w}px`:w})}typeof s=="number"||typeof s=="string"?ot(s):typeof s=="object"?["top","right","bottom","left"].forEach(w=>{const Q=s[w];Q===void 0?a[`${D}-${w}`]=R:a[`${D}-${w}`]=typeof Q=="number"?`${Q}px`:Q}):ot(R)}),a}var bs=ct("<ol></ol>"),ws=ct('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function xs(e,t){te(t,!0);function a(f){return f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Xe:Pe}let s=k(t,"invert",3,!1),l=k(t,"position",3,"bottom-right"),o=k(t,"hotkey",19,()=>["altKey","KeyT"]),D=k(t,"expand",3,!1),R=k(t,"closeButton",3,!1),ot=k(t,"offset",3,Ln),w=k(t,"mobileOffset",3,Sn),Q=k(t,"theme",3,"light"),bt=k(t,"richColors",3,!1),Dt=k(t,"duration",3,vs),Pt=k(t,"visibleToasts",3,gs),H=k(t,"toastOptions",19,()=>({})),V=k(t,"dir",7,"auto"),F=k(t,"gap",3,ys),q=k(t,"containerAriaLabel",3,"Notifications"),K=k(t,"closeButtonAriaLabel",3,"Close toast"),wt=la(t,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function Et(){if(V()!=="auto")return V();if(typeof window>"u"||typeof document>"u")return"ltr";const f=document.documentElement.getAttribute("dir");return f==="auto"||!f?(Qt(()=>V(window.getComputedStyle(document.documentElement).direction??"ltr")),V()):(Qt(()=>V(f)),f)}const ht=T(()=>Array.from(new Set([l(),...st.toasts.filter(f=>f.position).map(f=>f.position)].filter(Boolean))));let O=Y(!1),gt=Y(!1),Ht=Y(Tn(a(Q()))),Bt=Y(void 0),ut=Y(null),Xt=Y(!1);const ke=T(()=>o().join("+").replace(/Key/g,"").replace(/Digit/g,""));Vt(()=>{st.toasts.length<=1&&h(O,!1)}),Vt(()=>{const f=st.toasts.filter(_=>_.dismiss&&!_.delete);if(f.length>0){const _=st.toasts.map(Z=>f.find(xt=>xt.id===Z.id)?{...Z,delete:!0}:Z);st.toasts=_}}),Vt(()=>()=>{n(Bt)&&n(ut)&&(n(ut).focus({preventScroll:!0}),h(ut,null),h(Xt,!1))}),Se(()=>(st.reset(),Be(document,"keydown",_=>{var Rt,xt;o().every(ne=>_[ne]||_.code===ne)&&(h(O,!0),(Rt=n(Bt))==null||Rt.focus()),_.code==="Escape"&&(document.activeElement===n(Bt)||(xt=n(Bt))!=null&&xt.contains(document.activeElement))&&h(O,!1)}))),Vt(()=>{if(Q()!=="system"&&h(Ht,Q()),typeof window<"u"){Q()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?h(Ht,Xe):h(Ht,Pe));const f=window.matchMedia("(prefers-color-scheme: dark)"),_=({matches:Z})=>{h(Ht,Z?Xe:Pe,!0)};"addEventListener"in f?f.addEventListener("change",_):f.addListener(_)}});const Gt=f=>{var _;(_=t.onblur)==null||_.call(t,f),n(Xt)&&!f.currentTarget.contains(f.relatedTarget)&&(h(Xt,!1),n(ut)&&(n(ut).focus({preventScroll:!0}),h(ut,null)))},Ie=f=>{var Z;(Z=t.onfocus)==null||Z.call(t,f),!(f.target instanceof HTMLElement&&f.target.dataset.dismissable==="false")&&(n(Xt)||(h(Xt,!0),h(ut,f.relatedTarget,!0)))},Qe=f=>{var Z;(Z=t.onpointerdown)==null||Z.call(t,f),!(f.target instanceof HTMLElement&&f.target.dataset.dismissable==="false")&&h(gt,!0)},He=f=>{var _;(_=t.onmouseenter)==null||_.call(t,f),h(O,!0)},Re=f=>{var _;(_=t.onmouseleave)==null||_.call(t,f),n(gt)||h(O,!1)},fe=f=>{var _;(_=t.onmousemove)==null||_.call(t,f),h(O,!0)},vt=f=>{var _;(_=t.ondragend)==null||_.call(t,f),h(O,!1)},Fe=f=>{var _;(_=t.onpointerup)==null||_.call(t,f),h(gt,!1)};Fa.set(new ea);var Jt=ws();S(Jt,"tabindex",-1);var he=mt(Jt);{var Te=f=>{var _=m(),Z=v(_);Ee(Z,18,()=>n(ht),Rt=>Rt,(Rt,xt,ne,en)=>{const Oe=T(()=>{const[$,M]=xt.split("-");return{y:$,x:M}}),Lt=T(()=>_s(ot(),w()));var Ft=bs();na(Ft,($,M)=>({tabindex:-1,dir:$,class:t.class,"data-sonner-toaster":!0,"data-sonner-theme":n(Ht),"data-y-position":n(Oe).y,"data-x-position":n(Oe).x,style:t.style,onblur:Gt,onfocus:Ie,onmouseenter:He,onmousemove:fe,onmouseleave:Re,ondragend:vt,onpointerdown:Qe,onpointerup:Fe,...wt,[aa]:M}),[Et,()=>{var $;return{"--front-toast-height":`${($=st.heights[0])==null?void 0:$.height}px`,"--width":`${ms}px`,"--gap":`${F()}px`,"--offset-top":n(Lt)["--offset-top"],"--offset-right":n(Lt)["--offset-right"],"--offset-bottom":n(Lt)["--offset-bottom"],"--offset-left":n(Lt)["--offset-left"],"--mobile-offset-top":n(Lt)["--mobile-offset-top"],"--mobile-offset-right":n(Lt)["--mobile-offset-right"],"--mobile-offset-bottom":n(Lt)["--mobile-offset-bottom"],"--mobile-offset-left":n(Lt)["--mobile-offset-left"]}}],void 0,"svelte-nbs0zk"),Ee(Ft,23,()=>st.toasts.filter($=>!$.position&&n(ne)===0||$.position===xt),$=>$.id,($,M,Me,Ne)=>{{const Ue=b=>{var it=m(),It=v(it);{var Tt=c=>{var y=m(),L=v(y);_t(L,()=>t.successIcon??kt),i(c,y)},C=c=>{var y=m(),L=v(y);{var G=u=>{is(u)};A(L,u=>{t.successIcon!==null&&u(G)},!0)}i(c,y)};A(It,c=>{t.successIcon?c(Tt):c(C,!1)})}i(b,it)},qe=b=>{var it=m(),It=v(it);{var Tt=c=>{var y=m(),L=v(y);_t(L,()=>t.errorIcon??kt),i(c,y)},C=c=>{var y=m(),L=v(y);{var G=u=>{rs(u)};A(L,u=>{t.errorIcon!==null&&u(G)},!0)}i(c,y)};A(It,c=>{t.errorIcon?c(Tt):c(C,!1)})}i(b,it)},Ke=b=>{var it=m(),It=v(it);{var Tt=c=>{var y=m(),L=v(y);_t(L,()=>t.warningIcon??kt),i(c,y)},C=c=>{var y=m(),L=v(y);{var G=u=>{cs(u)};A(L,u=>{t.warningIcon!==null&&u(G)},!0)}i(c,y)};A(It,c=>{t.warningIcon?c(Tt):c(C,!1)})}i(b,it)},ze=b=>{var it=m(),It=v(it);{var Tt=c=>{var y=m(),L=v(y);_t(L,()=>t.infoIcon??kt),i(c,y)},C=c=>{var y=m(),L=v(y);{var G=u=>{ds(u)};A(L,u=>{t.infoIcon!==null&&u(G)},!0)}i(c,y)};A(It,c=>{t.infoIcon?c(Tt):c(C,!1)})}i(b,it)},d=b=>{var it=m(),It=v(it);{var Tt=c=>{var y=m(),L=v(y);_t(L,()=>t.closeIcon??kt),i(c,y)},C=c=>{var y=m(),L=v(y);{var G=u=>{hs(u)};A(L,u=>{t.closeIcon!==null&&u(G)},!0)}i(c,y)};A(It,c=>{t.closeIcon?c(Tt):c(C,!1)})}i(b,it)};let g=T(()=>{var b;return((b=H())==null?void 0:b.duration)??Dt()}),P=T(()=>{var b;return((b=H())==null?void 0:b.class)??""}),E=T(()=>{var b;return((b=H())==null?void 0:b.descriptionClass)||""}),B=T(()=>{var b;return((b=H())==null?void 0:b.style)??""}),x=T(()=>H().classes||{}),tt=T(()=>H().unstyled??!1),dt=T(()=>{var b;return((b=H())==null?void 0:b.cancelButtonStyle)??""}),et=T(()=>{var b;return((b=H())==null?void 0:b.actionButtonStyle)??""}),X=T(()=>{var b;return((b=H())==null?void 0:b.closeButtonAriaLabel)??K()});as($,{get index(){return n(Me)},get toast(){return n(M)},get defaultRichColors(){return bt()},get duration(){return n(g)},get class(){return n(P)},get descriptionClass(){return n(E)},get invert(){return s()},get visibleToasts(){return Pt()},get closeButton(){return R()},get interacting(){return n(gt)},get position(){return xt},get style(){return n(B)},get classes(){return n(x)},get unstyled(){return n(tt)},get cancelButtonStyle(){return n(dt)},get actionButtonStyle(){return n(et)},get closeButtonAriaLabel(){return n(X)},get expandByDefault(){return D()},get expanded(){return n(O)},get loadingIcon(){return t.loadingIcon},successIcon:Ue,errorIcon:qe,warningIcon:Ke,infoIcon:ze,closeIcon:d,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),lt(Ft),Cn(Ft,$=>h(Bt,$),()=>n(Bt)),rt(()=>Ft.dir=Ft.dir),i(Rt,Ft)}),i(f,_)};A(he,f=>{st.toasts.length>0&&f(Te)})}lt(Jt),rt(()=>S(Jt,"aria-label",`${q()??""} ${n(ke)??""}`)),i(e,Jt),ee()}var Is=ct('<div class="flex h-full w-full flex-col"><!> <!></div>');function qs(e,t){te(t,!0);const a=new Bn({defaultOptions:{queries:{enabled:ya}}});Se(()=>{{const{initSettings:s}=sa();s()}}),Oa(e,{get i18n(){return ia},children:(s,l)=>{Pa(s,{get client(){return a},children:(o,D)=>{var R=Is(),ot=mt(R);_t(ot,()=>t.children);var w=$t(ot,2);xs(w,{richColors:!0}),lt(R),i(o,R)},$$slots:{default:!0}})},$$slots:{default:!0}}),ee()}export{qs as component,Us as universal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunks/CWj6FrbW.js";import{p as S,u as $,g as a,a as _,b as o}from"../chunks/Frwd2CjB.js";import{s as i,a as h}from"../chunks/-DXuGN29.js";import"../chunks/Cqo0Vpvt.js";import{u as T}from"../chunks/qIv1kPyv.js";import"../chunks/D_ynJAfY.js";import"../chunks/Bqz7dyEC.js";import"../chunks/D5w4xp5l.js";import"../chunks/DSxvnAMh.js";import"../chunks/69_IOA4Y.js";import"../chunks/DQ8aZ1o-.js";import{u as b}from"../chunks/Cy4fgWTG.js";import"../chunks/DzX_yyqb.js";import{S as G}from"../chunks/BeWf8-vJ.js";function B(p,t){S(t,!0);const m=()=>i(u,"$lastGridType",s),e=()=>i(n,"$sampleSize",s),[s,d]=h(),{datasetId:r,sampleSize:n,selectedAnnotationFilterIds:l,globalStorage:{textEmbedding:g}}=t.data,{lastGridType:u}=T(),c=o(()=>b({dataset_id:r})),f=o(()=>a(c).clearTagsSelected);$(()=>{m()!=="samples"&&a(f)()}),G(p,{get sampleHeight(){return e().height},get sampleWidth(){return e().width},get textEmbedding(){return g},get dataset_id(){return r},get selectedAnnotationFilterIds(){return l}}),_(),d()}export{B as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as I,m as r,p as $,f as j,a as y,$ as N,g as h,b as v}from"../chunks/Frwd2CjB.js";import{b as P}from"../chunks/D5w4xp5l.js";import{c as L}from"../chunks/DD63uD-T.js";import{u as A}from"../chunks/qIv1kPyv.js";import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{e as k}from"../chunks/Dug7Bq1S.js";import{c as E,a as T}from"../chunks/CiaNZCBa.js";import{i as D,a as O,s as F}from"../chunks/-DXuGN29.js";import{p as x}from"../chunks/DSxvnAMh.js";import{g as b}from"../chunks/DQ8aZ1o-.js";import{r as w}from"../chunks/CfQ4mGwl.js";import{S as M}from"../chunks/CSCQddQS.js";const z=({dataset_id:n,sampleIndex:s,tagIds:a,annotationLabelIds:u,min_width:f,max_width:l,min_height:o,max_height:p,textEmbedding:m,metadataValues:c})=>{const i=I({isLoading:!1});return(async()=>{i.update(e=>({...e,isLoading:!0,error:void 0}));try{const{data:e}=await P({path:{dataset_id:n},body:{pagination:{offset:s<1?0:s-1,limit:3},filters:{annotation_label_ids:u,tag_ids:a,width:{min:f,max:l},height:{min:o,max:p},metadata_filters:c?L(c):void 0},text_embedding:m},throwOnError:!0}),{setSamplesTotalCount:t}=A();t(e==null?void 0:e.total_count);let d;const g=s>0?e.data[0]:void 0;e.data.length>2&&(d=s==0?e.data[1]:e.data[2]),i.update(S=>({...S,isLoading:!1,sampleNext:d,samplePrevious:g,error:void 0}))}catch(e){i.update(t=>({...t,isLoading:!1,error:e.message||"Failed to load adjacent samples"}))}})(),i},C=async({parent:n,params:{dataset_id:s,sampleId:a,sampleIndex:u}})=>{var _,e,t,d,g;const{samplesSelectedTagsIds:f,samplesSelectedAnnotationLabelsIds:l,samplesDimensions:o,samplesTextEmbedding:p}=await n(),m=parseInt(u,10),{metadataValues:c}=A();return{sampleAdjacents:z({dataset_id:s,sampleIndex:m,tagIds:Array.from(r(f)),annotationLabelIds:Array.from(r(l)),min_width:(_=r(o))==null?void 0:_.min_width,max_width:(e=r(o))==null?void 0:e.max_width,min_height:(t=r(o))==null?void 0:t.min_height,max_height:(d=r(o))==null?void 0:d.max_height,textEmbedding:(g=r(p))==null?void 0:g.embedding,metadataValues:r(c)}),sampleIndex:m}},ee=Object.freeze(Object.defineProperty({__proto__:null,load:C},Symbol.toStringTag,{value:"Module"}));function G(n,s){$(s,!0);const a=()=>F(h(o),"$sampleAdjacents",u),[u,f]=O(),l=v(()=>x.data.sampleIndex),o=v(()=>x.data.sampleAdjacents),p=()=>{a().sampleNext&&b(w.toSample({sampleId:a().sampleNext.sample_id,datasetId:a().sampleNext.dataset_id,sampleIndex:h(l)+1}),{invalidateAll:!0})},m=()=>{a().samplePrevious&&b(w.toSample({sampleId:a().samplePrevious.sample_id,datasetId:a().samplePrevious.dataset_id,sampleIndex:h(l)-1}),{invalidateAll:!0})},c=t=>{switch(t.key){case"ArrowRight":p();break;case"ArrowLeft":m();break}};var i=E();k("keydown",N,c);var _=j(i);{var e=t=>{{let d=v(()=>!!a().samplePrevious),g=v(()=>!!a().sampleNext);M(t,{get hasPrevious(){return h(d)},get hasNext(){return h(g)},onPrevious:m,onNext:p})}};D(_,t=>{a()&&t(e)})}T(n,i),y(),f()}function ae(n){G(n,{})}export{ae as component,ee as universal};
|