lightly-studio 0.3.1__py3-none-any.whl → 0.3.2__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 +4 -4
- lightly_studio/api/app.py +1 -1
- lightly_studio/api/routes/api/annotation.py +6 -16
- lightly_studio/api/routes/api/annotation_label.py +2 -5
- lightly_studio/api/routes/api/annotation_task.py +4 -5
- lightly_studio/api/routes/api/classifier.py +2 -5
- lightly_studio/api/routes/api/dataset.py +2 -3
- lightly_studio/api/routes/api/dataset_tag.py +2 -3
- lightly_studio/api/routes/api/metadata.py +2 -4
- lightly_studio/api/routes/api/metrics.py +2 -6
- lightly_studio/api/routes/api/sample.py +5 -13
- lightly_studio/api/routes/api/settings.py +2 -6
- lightly_studio/api/routes/images.py +6 -6
- lightly_studio/core/add_samples.py +383 -0
- lightly_studio/core/dataset.py +250 -362
- lightly_studio/core/dataset_query/__init__.py +0 -0
- lightly_studio/core/dataset_query/boolean_expression.py +67 -0
- lightly_studio/core/dataset_query/dataset_query.py +211 -0
- lightly_studio/core/dataset_query/field.py +113 -0
- lightly_studio/core/dataset_query/field_expression.py +79 -0
- lightly_studio/core/dataset_query/match_expression.py +23 -0
- lightly_studio/core/dataset_query/order_by.py +79 -0
- lightly_studio/core/dataset_query/sample_field.py +28 -0
- lightly_studio/core/dataset_query/tags_expression.py +46 -0
- lightly_studio/core/sample.py +159 -32
- lightly_studio/core/start_gui.py +35 -0
- lightly_studio/dataset/edge_embedding_generator.py +13 -8
- lightly_studio/dataset/embedding_generator.py +2 -3
- lightly_studio/dataset/embedding_manager.py +74 -6
- lightly_studio/dataset/fsspec_lister.py +275 -0
- lightly_studio/dataset/loader.py +49 -30
- lightly_studio/dataset/mobileclip_embedding_generator.py +6 -4
- lightly_studio/db_manager.py +145 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.BBm0IWdq.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.BNTuXSAe.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/2O287xak.js +3 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{O-EABkf9.js → 7YNGEs1C.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BBoGk9hq.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BRnH9v23.js +92 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bg1Y5eUZ.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DOlTMNyt.js → BqBqV92V.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C0JiMuYn.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DjfY96ND.js → C98Hk3r5.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{r64xT6ao.js → CG0dMCJi.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{C8I8rFJQ.js → Ccq4ZD0B.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cpy-nab_.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Bu7uvVrG.js → Crk-jcvV.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cs31G8Qn.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CsKrY2zA.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{x9G_hzyY.js → Cur71c3O.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CzgC3GFB.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D8GZDMNN.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DFRh-Spp.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BylOuP6i.js → DRZO-E-T.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{l7KrR96u.js → DcGCxgpH.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Bsi3UGy5.js → Df3aMO5B.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{hQVEETDE.js → DkR_EZ_B.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DqUGznj_.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/KpAtIldw.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/M1Q1F7bw.js +4 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{CDnpyLsT.js → OH7-C_mc.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{D6su9Aln.js → gLNdjSzu.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/i0ZZ4z06.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.BI-EA5gL.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.CcsRl3cZ.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.BbO4Zc3r.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{1.B4rNYwVp.js → 1._I9GR805.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.J2RBFrSr.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.Cmqj25a-.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/2.C45iKJHA.js +6 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{3.CWHpKonm.js → 3.w9g4AcAx.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{4.OUWOLQeV.js → 4.BBI8KwnD.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.huHuxdiF.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/6.CrbkRPam.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.FomEdhD6.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.Cb_ADSLk.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{9.CPu3CiBc.js → 9.CajIG5ce.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/version.json +1 -1
- lightly_studio/dist_lightly_studio_view_app/index.html +14 -14
- lightly_studio/examples/example.py +13 -12
- lightly_studio/examples/example_coco.py +13 -0
- lightly_studio/examples/example_metadata.py +83 -98
- lightly_studio/examples/example_selection.py +7 -19
- lightly_studio/examples/example_split_work.py +12 -36
- lightly_studio/examples/{example_v2.py → example_yolo.py} +3 -4
- lightly_studio/models/annotation/annotation_base.py +7 -8
- lightly_studio/models/annotation/instance_segmentation.py +8 -8
- lightly_studio/models/annotation/object_detection.py +4 -4
- lightly_studio/models/dataset.py +6 -2
- lightly_studio/models/sample.py +10 -3
- lightly_studio/resolvers/dataset_resolver.py +10 -0
- lightly_studio/resolvers/embedding_model_resolver.py +22 -0
- lightly_studio/resolvers/sample_resolver.py +53 -9
- lightly_studio/resolvers/tag_resolver.py +23 -0
- lightly_studio/selection/select.py +55 -46
- lightly_studio/selection/select_via_db.py +23 -19
- lightly_studio/selection/selection_config.py +6 -3
- lightly_studio/services/annotations_service/__init__.py +4 -0
- lightly_studio/services/annotations_service/update_annotation.py +21 -32
- lightly_studio/services/annotations_service/update_annotation_bounding_box.py +36 -0
- lightly_studio-0.3.2.dist-info/METADATA +689 -0
- {lightly_studio-0.3.1.dist-info → lightly_studio-0.3.2.dist-info}/RECORD +104 -91
- lightly_studio/api/db.py +0 -133
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.OwPEPQZu.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.b653GmVf.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/B2FVR0s0.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/B9zumHo5.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BJXwVxaE.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bx1xMsFy.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CcaPhhk3.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CvOmgdoc.js +0 -93
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CxtLVaYz.js +0 -3
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D5-A_Ffd.js +0 -4
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D6RI2Zrd.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D98V7j6A.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DIRAtgl0.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DjUWrjOv.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/XO7A28GO.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/nAHhluT7.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/vC4nQVEB.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.CjnvpsmS.js +0 -2
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.0o1H7wM9.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.XRq_TUwu.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.DfBwOEhN.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.CwF2_8mP.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/2.CS4muRY-.js +0 -6
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.Dm6t9F5W.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/6.Bw5ck4gK.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.CF0EDTR6.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.Cw30LEcV.js +0 -1
- lightly_studio-0.3.1.dist-info/METADATA +0 -520
- /lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/{OpenSans- → OpenSans-Medium.DVUZMR_6.ttf} +0 -0
- {lightly_studio-0.3.1.dist-info → lightly_studio-0.3.2.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{f as m}from"./DcGCxgpH.js";import{c as i,a as p}from"./Crk-jcvV.js";import{s as n}from"./C0JiMuYn.js";function d(o,a){var r=i(),t=m(r);n(t,()=>a.children),p(o,r)}export{d as L};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DOlTMNyt.js → BqBqV92V.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import"./69_IOA4Y.js";import{b as w}from"./
|
|
1
|
+
import"./CWj6FrbW.js";import"./69_IOA4Y.js";import{b as w}from"./2O287xak.js";import{p as X}from"./Ccq4ZD0B.js";import{l as H}from"./DcGCxgpH.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as M,E as W,C as Q,n as J,at as Y,q as K,F as V,l as D,w as A,au as X,m as O}from"./DcGCxgpH.js";import{u as Z}from"./BBoGk9hq.js";function ye(n,t,...e){var a=n,r=J,s;M(()=>{r!==(r=t())&&(s&&(Y(s),s=null),s=Q(()=>r(a,...e)))},W),K&&(a=V)}const ee=/\{[^{}]+\}/g,te=()=>{var n,t;return typeof process=="object"&&Number.parseInt((t=(n=process==null?void 0:process.versions)==null?void 0:n.node)==null?void 0:t.substring(0,2))>=18&&process.versions.undici};function re(){return Math.random().toString(36).slice(2,11)}function ne(n){let{baseUrl:t="",Request:e=globalThis.Request,fetch:a=globalThis.fetch,querySerializer:r,bodySerializer:s,headers:l,requestInitExt:f=void 0,...q}={...n};f=te()?f:void 0,t=v(t);const y=[];async function h(i,o){const{baseUrl:m,fetch:R=a,Request:ce=e,headers:N,params:g={},parseAs:U="json",querySerializer:S,bodySerializer:_=s??ie,body:P,...x}=o||{};m&&(t=v(m));let z=typeof r=="function"?r:H(r);S&&(z=typeof S=="function"?S:H({...typeof r=="object"?r:{},...S}));const C=P===void 0?void 0:_(P),B=C===void 0||C instanceof FormData?{}:{"Content-Type":"application/json"},G={redirect:"follow",...q,...x,body:C,headers:oe(B,l,N,g.header)};let j,E,b=new e(ae(i,{baseUrl:t,params:g,querySerializer:z}),G);for(const u in x)u in b||(b[u]=x[u]);if(y.length){j=re(),E=Object.freeze({baseUrl:t,fetch:R,parseAs:U,querySerializer:z,bodySerializer:_});for(const u of y)if(u&&typeof u=="object"&&typeof u.onRequest=="function"){const d=await u.onRequest({request:b,schemaPath:i,params:g,options:E,id:j});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 R(b,f)}catch(u){let d=u;if(y.length)for(let p=y.length-1;p>=0;p--){const T=y[p];if(T&&typeof T=="object"&&typeof T.onError=="function"){const w=await T.onError({request:b,error:d,schemaPath:i,params:g,options:E,id:j});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:i,params:g,options:E,id:j});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 U==="stream"?{data:c.body,response:c}:{data:await c[U](),response:c};let I=await c.text();try{I=JSON.parse(I)}catch{}return{error:I,response:c}}return{request(i,o,m){return h(o,{...m,method:i.toUpperCase()})},GET(i,o){return h(i,{...o,method:"GET"})},PUT(i,o){return h(i,{...o,method:"PUT"})},POST(i,o){return h(i,{...o,method:"POST"})},DELETE(i,o){return h(i,{...o,method:"DELETE"})},OPTIONS(i,o){return h(i,{...o,method:"OPTIONS"})},HEAD(i,o){return h(i,{...o,method:"HEAD"})},PATCH(i,o){return h(i,{...o,method:"PATCH"})},TRACE(i,o){return h(i,{...o,method:"TRACE"})},use(...i){for(const o of i)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(...i){for(const o of i){const m=y.indexOf(o);m!==-1&&y.splice(m,1)}}}}function $(n,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`${n}=${(e==null?void 0:e.allowReserved)===!0?t:encodeURIComponent(t)}`}function k(n,t,e){if(!t||typeof t!="object")return"";const a=[],r={simple:",",label:".",matrix:";"}[e.style]||"&";if(e.style!=="deepObject"&&e.explode===!1){for(const f in t)a.push(f,e.allowReserved===!0?t[f]:encodeURIComponent(t[f]));const l=a.join(",");switch(e.style){case"form":return`${n}=${l}`;case"label":return`.${l}`;case"matrix":return`;${n}=${l}`;default:return l}}for(const l in t){const f=e.style==="deepObject"?`${n}[${l}]`:l;a.push($(f,t[l],e))}const s=a.join(r);return e.style==="label"||e.style==="matrix"?`${r}${s}`:s}function F(n,t,e){if(!Array.isArray(t))return"";if(e.explode===!1){const s={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[e.style]||",",l=(e.allowReserved===!0?t:t.map(f=>encodeURIComponent(f))).join(s);switch(e.style){case"simple":return l;case"label":return`.${l}`;case"matrix":return`;${n}=${l}`;default:return`${n}=${l}`}}const a={simple:",",label:".",matrix:";"}[e.style]||"&",r=[];for(const s of t)e.style==="simple"||e.style==="label"?r.push(e.allowReserved===!0?s:encodeURIComponent(s)):r.push($(n,s,e));return e.style==="label"||e.style==="matrix"?`${a}${r.join(a)}`:r.join(a)}function H(n){return function(e){const a=[];if(e&&typeof e=="object")for(const r in e){const s=e[r];if(s!=null){if(Array.isArray(s)){if(s.length===0)continue;a.push(F(r,s,{style:"form",explode:!0,...n==null?void 0:n.array,allowReserved:(n==null?void 0:n.allowReserved)||!1}));continue}if(typeof s=="object"){a.push(k(r,s,{style:"deepObject",explode:!0,...n==null?void 0:n.object,allowReserved:(n==null?void 0:n.allowReserved)||!1}));continue}a.push($(r,s,n))}}return a.join("&")}}function se(n,t){let e=n;for(const a of n.match(ee)??[]){let r=a.substring(1,a.length-1),s=!1,l="simple";if(r.endsWith("*")&&(s=!0,r=r.substring(0,r.length-1)),r.startsWith(".")?(l="label",r=r.substring(1)):r.startsWith(";")&&(l="matrix",r=r.substring(1)),!t||t[r]===void 0||t[r]===null)continue;const f=t[r];if(Array.isArray(f)){e=e.replace(a,F(r,f,{style:l,explode:s}));continue}if(typeof f=="object"){e=e.replace(a,k(r,f,{style:l,explode:s}));continue}if(l==="matrix"){e=e.replace(a,`;${$(r,f)}`);continue}e=e.replace(a,l==="label"?`.${encodeURIComponent(f)}`:encodeURIComponent(f))}return e}function ie(n){return n instanceof FormData?n:JSON.stringify(n)}function ae(n,t){var r;let e=`${t.baseUrl}${n}`;(r=t.params)!=null&&r.path&&(e=se(e,t.params.path));let a=t.querySerializer(t.params.query??{});return a.startsWith("?")&&(a=a.substring(1)),a&&(e+=`?${a}`),e}function oe(...n){const t=new Headers;for(const e of n){if(!e||typeof e!="object")continue;const a=e instanceof Headers?e.entries():Object.entries(e);for(const[r,s]of a)if(s===null)t.delete(r);else if(Array.isArray(s))for(const l of s)t.append(r,l);else s!==void 0&&t.set(r,s)}return t}function v(n){return n.endsWith("/")?n.substring(0,n.length-1):n}const he="/images",le="/",fe=ne({baseUrl:le,fetch}),L=A(new Set);function me(n){const{dataset_id:t,kind:e}=n,{tags:a}=Z(),r=A(!1),s=A(null),l=A(!1),f=()=>{D(l)||(l.set(!0),fe.GET("/api/datasets/{dataset_id}/tags",{params:{path:{dataset_id:t}}}).then(i=>{i.data&&a.set(i.data)}).catch(i=>{s.set(i)}).finally(()=>{l.set(!1)}))};!D(r)&&t&&(f(),r.set(!0));const q=X(a,i=>{const o=i??[];return e?o.filter(R=>e.includes(R.kind)):o}),y=i=>{L.update(o=>(o.has(i)?o.delete(i):o.add(i),new Set([...o])))},h=()=>{L.set(new Set)};return{tags:O(q),loadTags:f,tagsSelected:O(L),tagSelectionToggle:y,clearTagsSelected:h,isLoading:O(l),error:s}}export{he as P,fe as c,ye as s,me as u};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DjfY96ND.js → C98Hk3r5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a2 as y,a3 as f,a4 as _,a5 as w,P as E,K as A,L as B,a6 as M,q as O}from"./DcGCxgpH.js";function N(r,t){if(t){const e=document.body;r.autofocus=!0,y(()=>{document.activeElement===e&&r.focus()})}}let b=!1;function T(){b||(b=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{var t;if(!r.defaultPrevented)for(const e of r.target.elements)(t=e.__on_r)==null||t.call(e)})},{capture:!0}))}function L(r){var t=w,e=E;f(null),_(null);try{return r()}finally{f(t),_(e)}}function j(r,t,e,i=e){r.addEventListener(t,()=>L(e));const n=r.__on_r;n?r.__on_r=()=>{n(),i(!0)}:r.__on_r=()=>i(!0),T()}const W=new Set,C=new Set;function z(r){if(!O)return;r.onload&&r.removeAttribute("onload"),r.onerror&&r.removeAttribute("onerror");const t=r.__e;t!==void 0&&(r.__e=void 0,queueMicrotask(()=>{r.isConnected&&r.dispatchEvent(t)}))}function k(r,t,e,i={}){function n(a){if(i.capture||D.call(t,a),!a.cancelBubble)return L(()=>e==null?void 0:e.call(this,a))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?y(()=>{t.addEventListener(r,n,i)}):t.addEventListener(r,n,i),n}function F(r,t,e,i={}){var n=k(t,r,e,i);return()=>{r.removeEventListener(t,n,i)}}function G(r,t,e,i,n){var a={capture:i,passive:n},o=k(r,t,e,a);(t===document.body||t===window||t===document)&&A(()=>{t.removeEventListener(r,o,a)})}function H(r){for(var t=0;t<r.length;t++)W.add(r[t]);for(var e of C)e(r)}function D(r){var g;var t=this,e=t.ownerDocument,i=r.type,n=((g=r.composedPath)==null?void 0:g.call(r))||[],a=n[0]||r.target,o=0,d=r.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(t===document||t===window)){r.__root=t;return}var p=n.indexOf(t);if(p===-1)return;l<=p&&(o=l)}if(a=n[o]||r.target,a!==t){B(r,"currentTarget",{configurable:!0,get(){return a||e}});var q=w,P=E;f(null),_(null);try{for(var u,h=[];a!==null;){var v=a.assignedSlot||a.parentNode||a.host||null;try{var s=a["__"+i];if(s!=null&&(!a.disabled||r.target===a))if(M(s)){var[S,...x]=s;S.apply(a,[r,...x])}else s.call(a,r)}catch(c){u?h.push(c):u=c}if(r.cancelBubble||v===t||v===null)break;a=v}if(u){for(let c of h)queueMicrotask(()=>{throw c});throw u}}finally{r.__root=t,delete r.currentTarget,f(q),_(P)}}}export{W as a,z as b,k as c,H as d,G as e,N as f,T as g,D as h,j as l,F as o,C as r,L as w};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{r64xT6ao.js → CG0dMCJi.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{p,f as n,n as c,a as i}from"./
|
|
1
|
+
import"./CWj6FrbW.js";import{p,f as n,n as c,a as i}from"./DcGCxgpH.js";import{c as m,a as l}from"./Crk-jcvV.js";import{s as d}from"./C0JiMuYn.js";import{s as f,r as h}from"./D8GZDMNN.js";import{I as u}from"./BRnH9v23.js";function N(r,o){p(o,!0);let s=h(o,["$$slots","$$events","$$legacy"]);u(r,f({name:"tags"},()=>s,{iconNode:[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor"}]],children:(t,g)=>{var a=m(),e=n(a);d(e,()=>o.children??c),l(t,a)},$$slots:{default:!0}})),i()}export{N as T};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{C8I8rFJQ.js → Ccq4ZD0B.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./2O287xak.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var q=Object.defineProperty;var R=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var T=(e,t,r)=>R(e,typeof t!="symbol"?t+"":t,r);const E={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:o,value:a})=>{if(!t){const s=(e?a:a.map(c=>encodeURIComponent(c))).join(P(o));switch(o){case"label":return`.${s}`;case"matrix":return`;${r}=${s}`;case"simple":return s;default:return`${r}=${s}`}}const i=V(o),n=a.map(s=>o==="label"||o==="simple"?e?s:encodeURIComponent(s):g({allowReserved:e,name:r,value:s})).join(i);return o==="label"||o==="matrix"?i+n:n},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:o,value:a,valueOnly:i})=>{if(a instanceof Date)return i?a.toISOString():`${r}=${a.toISOString()}`;if(o!=="deepObject"&&!t){let c=[];Object.entries(a).forEach(([p,y])=>{c=[...c,p,e?y:encodeURIComponent(y)]});const d=c.join(",");switch(o){case"form":return`${r}=${d}`;case"label":return`.${d}`;case"matrix":return`;${r}=${d}`;default:return d}}const n=W(o),s=Object.entries(a).map(([c,d])=>g({allowReserved:e,name:o==="deepObject"?`${r}[${c}]`:c,value:d})).join(n);return o==="label"||o==="matrix"?n+s:s},k=/\{[^{}]+\}/g,H=({path:e,url:t})=>{let r=t;const o=t.match(k);if(o)for(const a of o){let i=!1,n=a.substring(1,a.length-1),s="simple";n.endsWith("*")&&(i=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),s="label"):n.startsWith(";")&&(n=n.substring(1),s="matrix");const c=e[n];if(c==null)continue;if(Array.isArray(c)){r=r.replace(a,C({explode:i,name:n,style:s,value:c}));continue}if(typeof c=="object"){r=r.replace(a,$({explode:i,name:n,style:s,value:c,valueOnly:!0}));continue}if(s==="matrix"){r=r.replace(a,`;${g({name:n,value:c})}`);continue}const d=encodeURIComponent(s==="label"?`.${c}`:c);r=r.replace(a,d)}return r},z=({allowReserved:e,array:t,object:r}={})=>a=>{const i=[];if(a&&typeof a=="object")for(const n in a){const s=a[n];if(s!=null)if(Array.isArray(s)){const c=C({allowReserved:e,explode:!0,name:n,style:"form",value:s,...t});c&&i.push(c)}else if(typeof s=="object"){const c=$({allowReserved:e,explode:!0,name:n,style:"deepObject",value:s,...r});c&&i.push(c)}else{const c=g({allowReserved:e,name:n,value:s});c&&i.push(c)}}return i.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(o=>t.startsWith(o)))return"blob";if(t.startsWith("text/"))return"text"}},B=async({security:e,...t})=>{for(const r of e){const o=await U(r,t.auth);if(!o)continue;const a=r.name??"Authorization";switch(r.in){case"query":t.query||(t.query={}),t.query[a]=o;break;case"cookie":t.headers.append("Cookie",`${a}=${o}`);break;case"header":default:t.headers.set(a,o);break}return}},x=e=>J({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:z(e.querySerializer),url:e.url}),J=({baseUrl:e,path:t,query:r,querySerializer:o,url:a})=>{const i=a.startsWith("/")?a:`/${a}`;let n=(e??"")+i;t&&(n=H({path:t,url:n}));let s=r?o(r):"";return s.startsWith("?")&&(s=s.substring(1)),s&&(n+=`?${s}`),n},A=(e,t)=>{var o;const r={...e,...t};return(o=r.baseUrl)!=null&&o.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 o=r instanceof Headers?r.entries():Object.entries(r);for(const[a,i]of o)if(i===null)t.delete(a);else if(Array.isArray(i))for(const n of i)t.append(a,n);else i!==void 0&&t.set(a,typeof i=="object"?JSON.stringify(i):i)}return t};class _{constructor(){T(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 o=this.getInterceptorIndex(t);return this._fns[o]?(this._fns[o]=r,t):!1}use(t){return this._fns=[...this._fns,t],this._fns.length-1}}const L=()=>({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={})=>({...E,headers:Q,parseAs:"auto",querySerializer:M,...e}),G=(e={})=>{let t=A(O(),e);const r=()=>({...t}),o=n=>(t=A(t,n),r()),a=L(),i=async n=>{const s={...t,...n,fetch:n.fetch??t.fetch??globalThis.fetch,headers:D(t.headers,n.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=x(s),d={redirect:"follow",...s};let p=new Request(c,d);for(const l of a.request._fns)l&&(p=await l(p,s));const y=s.fetch;let u=await y(p);for(const l of a.response._fns)l&&(u=await l(u,p,s));const b={request:p,response:u};if(u.ok){if(u.status===204||u.headers.get("Content-Length")==="0")return s.responseStyle==="data"?{}:{data:{},...b};const l=(s.parseAs==="auto"?N(u.headers.get("Content-Type")):s.parseAs)??"json";let h;switch(l){case"arrayBuffer":case"blob":case"formData":case"json":case"text":h=await u[l]();break;case"stream":return s.responseStyle==="data"?u.body:{data:u.body,...b}}return l==="json"&&(s.responseValidator&&await s.responseValidator(h),s.responseTransformer&&(h=await s.responseTransformer(h))),s.responseStyle==="data"?h:{data:h,...b}}const S=await u.text();let j;try{j=JSON.parse(S)}catch{}const w=j??S;let m=w;for(const l of a.error._fns)l&&(m=await l(w,u,p,s));if(m=m||{},s.throwOnError)throw m;return s.responseStyle==="data"?void 0:{error:m,...b}};return{buildUrl:x,connect:n=>i({...n,method:"CONNECT"}),delete:n=>i({...n,method:"DELETE"}),get:n=>i({...n,method:"GET"}),getConfig:r,head:n=>i({...n,method:"HEAD"}),interceptors:a,options:n=>i({...n,method:"OPTIONS"}),patch:n=>i({...n,method:"PATCH"}),post:n=>i({...n,method:"POST"}),put:n=>i({...n,method:"PUT"}),request:i,setConfig:o,trace:n=>i({...n,method:"TRACE"})}},F=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),K=async e=>(e=e.map(t=>F(t)),e),X=e=>(e.created_at&&(e.created_at=new Date(e.created_at)),e.updated_at&&(e.updated_at=new Date(e.updated_at)),e),Y=async e=>(e=X(e),e),Z=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),I=e=>(e.tags&&(e.tags=e.tags.map(t=>Z(t))),e),v=e=>(e.data=e.data.map(t=>I(t)),e),ee=async e=>(e=v(e),e),te=async e=>(e=I(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),ne=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),ae=async e=>(e=ne(e),e),f=G(O()),ie=e=>((e==null?void 0:e.client)??f).get({responseTransformer:K,url:"/api/datasets",...e}),ce=e=>(e.client??f).get({responseTransformer:Y,url:"/api/datasets/{dataset_id}",...e}),ue=e=>(e.client??f).post({responseTransformer:ee,url:"/api/datasets/{dataset_id}/samples/list",...e,headers:{"Content-Type":"application/json",...e.headers}}),le=e=>(e.client??f).get({responseTransformer:te,url:"/api/datasets/{dataset_id}/samples/{sample_id}",...e}),fe=e=>((e==null?void 0:e.client)??f).get({url:"/api/annotation_labels",...e}),de=e=>(e.client??f).get({url:"/api/datasets/{dataset_id}/annotations/count",...e,headers:{"Content-Type":"application/json",...e.headers}}),pe=e=>(e.client??f).get({url:"/api/datasets/{dataset_id}/annotations",...e}),he=e=>(e.client??f).put({responseTransformer:se,url:"/api/datasets/{dataset_id}/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),me=e=>(e.client??f).get({url:"/api/datasets/{dataset_id}/annotations/{annotation_id}",...e}),ye=e=>((e==null?void 0:e.client)??f).get({responseTransformer:ae,url:"/api/settings",...e}),be=e=>(e.client??f).get({url:"/api/classifiers/{classifier_id}/sample_history",...e}),ge=e=>(e.client??f).get({url:"/api/datasets/{dataset_id}/metadata/info",...e});export{ce as a,ue as b,pe as c,f as d,fe as e,le as f,ge as g,de as h,me as i,ye as j,ie as r,be as s,he as u};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Bu7uvVrG.js → Crk-jcvV.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{M as m,N as d,O as E,P as v,T as p,Q as M,q as f,F as i,v as N,z as x}from"./DcGCxgpH.js";function h(r){var t=document.createElement("template");return t.innerHTML=r,t.content}function n(r,t){var e=v;e.nodes_start===null&&(e.nodes_start=r,e.nodes_end=t)}function C(r,t){var e=(t&p)!==0,l=(t&M)!==0,s,_=!r.startsWith("<!>");return()=>{if(f)return n(i,null),i;s===void 0&&(s=h(_?r:"<!>"+r),e||(s=d(s)));var a=l||E?document.importNode(s,!0):s.cloneNode(!0);if(e){var c=d(a),o=a.lastChild;n(c,o)}else n(a,a);return a}}function F(r,t,e="svg"){var l=!r.startsWith("<!>"),s=(t&p)!==0,_=`<${e}>${l?r:"<!>"+r}</${e}>`,a;return()=>{if(f)return n(i,null),i;if(!a){var c=h(_),o=d(c);if(s)for(a=document.createDocumentFragment();d(o);)a.appendChild(d(o));else a=d(o)}var u=a.cloneNode(!0);if(s){var g=d(u),T=u.lastChild;n(g,T)}else n(u,u);return u}}function P(r=""){if(!f){var t=m(r+"");return n(t,t),t}var e=i;return e.nodeType!==3&&(e.before(e=m()),x(e)),n(e,e),e}function b(){if(f)return n(i,null),i;var r=document.createDocumentFragment(),t=document.createComment(""),e=m();return r.append(t,e),n(t,e),r}function A(r,t){if(f){v.nodes_end=i,N();return}r!==null&&r.before(t)}export{A as a,n as b,b as c,P as d,F as n,C as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{p as ie,c as b,g as s,d as m,r as _,t as ae,a as ne,J as M,a7 as q,u as te,f as se,s as Q}from"./DcGCxgpH.js";import{n as $e,a as o,t as x,c as ve,d as ue}from"./Crk-jcvV.js";import{a as f,s as ge,i as H}from"./DqUGznj_.js";import{f as et,h as tt,i as st,j as B,k as it,e as at,s as nt,l as lt,n as ot,o as rt,p as dt,q as ct,r as mt,G as ft,L as vt,S as ut,t as gt,v as _t}from"./BRnH9v23.js";import{p as _e,r as ht,a as E,b as pt}from"./D8GZDMNN.js";import{o as he}from"./2O287xak.js";import{u as pe}from"./BBoGk9hq.js";import{r as St}from"./H7C68rOM.js";import{u as bt}from"./gLNdjSzu.js";import{c as xt,u as yt}from"./Cur71c3O.js";import"./Df3aMO5B.js";import"./69_IOA4Y.js";import{P as wt,u as Pt}from"./C0JiMuYn.js";import{S as It}from"./CzgC3GFB.js";import{b as Ft}from"./Cpy-nab_.js";import{b as jt}from"./C98Hk3r5.js";import{u as Ct,i as Ot}from"./i0ZZ4z06.js";var Ht=$e('<svg style="position: absolute; top: 0; left: 0;"><g></g></svg>');function Rt(e,t){ie(t,!0);const[i,d]=ge(),v=()=>f(y,"$isHidden",i),h=_e(t,"sampleImageObjectFit",3,"contain"),{isHidden:y}=et(),p=m(()=>t.sample.annotations.filter(w=>w.annotation_type!=="classification"));var n=Ht(),c=b(n);let u;tt(c,21,()=>s(p),st,(w,l)=>{It(w,{get annotation(){return s(l)},get showLabel(){return t.showLabel},get imageWidth(){return t.sample.width}})}),_(c),_(n),ae(w=>{B(n,"viewBox",`0 0 ${t.sample.width} ${t.sample.height}`),B(n,"preserveAspectRatio",h()==="contain"?"xMidYMid meet":"xMidYMid slice"),B(n,"width",t.containerWidth),B(n,"height",t.containerHeight),u=it(c,0,"",null,u,w)},[()=>({invisible:v()})]),o(e,n),ne(),d()}var At=x("<img>");function kt(e,t){ie(t,!0);const i=_e(t,"objectFit",3,"contain"),d=ht(t,["$$slots","$$events","$$legacy","sample","objectFit"]),{class:v,...h}=d,{getDatasetVersion:y}=pe();let p=q("");he(async()=>{var u;(u=t.sample)!=null&&u.dataset_id&&M(p,E(await y(t.sample.dataset_id)))});var n=At();let c;ae(u=>c=nt(n,c,{src:`${wt}/sample/${t.sample.sample_id}${s(p)?`?v=${s(p)}`:""}`,alt:t.sample.file_path_abs,class:u,style:`--object-fit: ${i()??""}`,loading:"lazy",...h},"svelte-1c6bz0a"),[()=>at("sample-image rounded-lg bg-black",v)]),jt(n),o(e,n),ne()}const Mt=e=>{const t=["readSamplesInfinite",e.dataset_id,e.mode,e.mode==="normal"?e.filters:e.classifierSamples,{metadata_values:e.metadata_values,text_embedding:e.text_embedding}];return Ot({queryKey:t,queryFn:async({pageParam:i=0,signal:d})=>{const v=Nt(e,i),{data:h}=await Ft({path:{dataset_id:e.dataset_id},body:v,signal:d,throwOnError:!0});return h},initialPageParam:0,getNextPageParam:i=>i.nextCursor??void 0,enabled:Vt(e)})},Nt=(e,t)=>{var d,v;const i={pagination:{offset:t,limit:100},text_embedding:e.text_embedding,filters:{metadata_filters:e.metadata_values?xt(e.metadata_values):void 0}};if(e.mode==="classifier"&&e.classifierSamples){const h=[...e.classifierSamples.positiveSampleIds,...e.classifierSamples.negativeSampleIds];return{...i,sample_ids:h}}else if(e.mode==="normal"&&e.filters)return{...i,filters:{...i.filters,annotation_label_ids:(d=e.filters.annotation_label_ids)!=null&&d.length?e.filters.annotation_label_ids:void 0,tag_ids:(v=e.filters.tag_ids)!=null&&v.length?e.filters.tag_ids:void 0,width:e.filters.dimensions?{min:e.filters.dimensions.min_width,max:e.filters.dimensions.max_width}:void 0,height:e.filters.dimensions?{min:e.filters.dimensions.min_height,max:e.filters.dimensions.max_height}:void 0}};return i},Vt=e=>e.mode==="classifier"?!!(e.classifierSamples&&(e.classifierSamples.positiveSampleIds.length>0||e.classifierSamples.negativeSampleIds.length>0)):!0,Lt=e=>{const t=Mt(e),i=lt(t),d=Ct();return{samples:i,refresh:()=>{d.invalidateQueries({queryKey:t.queryKey})}}};var zt=x('<div class="flex h-full w-full items-center justify-center"><div>Loading samples...</div></div>'),qt=x('<div class="flex h-full w-full items-center justify-center"><div class="mb-2 font-medium">Error loading samples</div></div>'),Bt=x('<div class="flex h-full w-full items-center justify-center"><div class="text-center text-muted-foreground"><div class="mb-2 text-lg font-medium">No samples found</div> <div class="text-sm"><!></div></div></div>'),Et=x('<div class="relative"><div class="absolute right-7 top-1 z-10"><!></div> <a data-testid="sample-link" class="block"><!> <!></a></div>'),Tt=x('<div class="flex justify-center p-4"><!></div>'),Wt=x("<!> <!>",1),Gt=x('<div class="viewport flex-1 svelte-gzepom"><!></div>'),Qt=x('<div class="flex h-full w-full items-center justify-center"><div>Loading...</div></div>');function fs(e,t){ie(t,!0);const[i,d]=ge(),v=()=>f(Pe,"$isCreateClassifiersPanelOpen",i),h=()=>f(Ie,"$isRefineClassifiersPanelOpen",i),y=()=>f(je,"$classifierSamples",i),p=()=>f(t.selectedAnnotationFilterIds,"$selectedAnnotationFilterIds",i),n=()=>f(xe,"$tagsSelected",i),c=()=>f(ye,"$dimensions",i),u=()=>f(we,"$metadataValues",i),w=()=>f(t.textEmbedding,"$textEmbedding",i),l=()=>f(s(ke),"$infiniteSamples",i),le=()=>f(be,"$gridViewSampleRenderingStore",i),Se=()=>f(Fe,"$selectedSampleIds",i),{gridViewSampleRenderingStore:be}=ot(),{tagsSelected:xe}=Pt({dataset_id:t.dataset_id,kind:["sample"]}),{dimensionsValues:ye}=bt(),{metadataValues:we}=yt(t.dataset_id),{isCreateClassifiersPanelOpen:Pe}=ct(),{isRefineClassifiersPanelOpen:Ie}=mt(),{selectedSampleIds:Fe,classifierSamples:je,toggleSampleSelection:Ce,getDatasetVersion:Oe,setSamplesTotalCount:He}=pe(),N=m(()=>v()||h()),Re=m(()=>{var a,r;return{dataset_id:t.dataset_id,mode:s(N)?"classifier":"normal",...s(N)?{classifierSamples:y()}:{filters:{annotation_label_ids:(a=p())!=null&&a.length?p():void 0,tag_ids:n().size>0?Array.from(n()):void 0,dimensions:c()}},metadata_values:u(),text_embedding:(r=w())==null?void 0:r.embedding}}),Ae=m(()=>Lt(s(Re))),ke=m(()=>s(Ae).samples),P=m(()=>{var a;return((a=l().data)==null?void 0:a.pages.flatMap(r=>r.data))||[]});let C=q(null),oe=q(!1),D=q(E(le())),K=q(0);const{initialize:Me,savePosition:Ne,getRestoredPosition:Ve}=rt("samples_scroll");he(async()=>{Me(),await Oe(t.dataset_id),M(oe,!0)});const re=m(()=>{var r;return[p().join(","),Array.from(n()).join(","),`${c().min_width}-${c().max_width}`,`${c().min_height}-${c().max_height}`,JSON.stringify(u()),((r=w())==null?void 0:r.queryText)||"",s(N)?"classifier":"normal",s(N)&&y()?`pos:${y().positiveSampleIds.length},neg:${y().negativeSampleIds.length}`:""].filter(Boolean).join("|")}),Le=m(()=>Ve(s(re)));function ze(a){const r=a.target.scrollTop;Ne(r,s(re))}te(()=>{M(D,E(le()))}),te(()=>{var a;l().isSuccess&&((a=l().data)==null?void 0:a.pages.length)>0&&He(l().data.pages[0].total_count)}),te(()=>{if(!s(C))return;M(K,E(s(C).clientHeight));const a=new ResizeObserver(()=>{s(C)&&M(K,E(s(C).clientHeight))});return a.observe(s(C)),()=>{a.disconnect()}});function qe(){l().hasNextPage&&!l().isFetchingNextPage&&l().fetchNextPage()}const de=16,Be=dt(),[Ee,Dt]=Be;var ce=ve(),Te=se(ce);{var We=a=>{var r=zt();o(a,r)},Ge=(a,r)=>{{var Qe=R=>{var J=qt();o(R,J)},De=(R,J)=>{{var Ke=A=>{var V=Bt(),T=b(V),W=Q(b(T),2),I=b(W);{var F=j=>{var L=ue("No samples available for this classifier.");o(j,L)},U=j=>{var L=ue("This dataset doesn't contain any samples.");o(j,L)};H(I,j=>{s(N)?j(F):j(U,!1)})}_(W),_(T),_(V),o(A,V)},Je=(A,V)=>{{var T=I=>{var F=Gt(),U=b(F);const j=m(()=>t.sampleHeight+de),L=m(()=>t.sampleWidth+de);ft(U,{get itemCount(){return s(P).length},get itemHeight(){return s(j)},get itemWidth(){return s(L)},get height(){return s(K)},get scrollPosition(){return s(Le)},onscroll:ze,class:"overflow-none overflow-y-auto dark:[color-scheme:dark]",get style(){return`--sample-width: ${t.sampleWidth??""}px; --sample-height: ${t.sampleHeight??""}px;`},overScan:100,item:(Y,S)=>{let g=()=>S==null?void 0:S().index,X=()=>S==null?void 0:S().style;var G=ve(),Z=se(G);{var z=O=>{var k=Et(),$=b(k),Ue=b($);const Ye=m(()=>Se().has(s(P)[g()].sample_id));ut(Ue,{onSelect:()=>Ce(s(P)[g()].sample_id),get isSelected(){return s(Ye)}}),_($);var ee=Q($,2),fe=b(ee);kt(fe,{get sample(){return s(P)[g()]},get objectFit(){return s(D)}});var Xe=Q(fe,2);Rt(Xe,{get sample(){return s(P)[g()]},get containerWidth(){return t.sampleWidth},get sampleImageObjectFit(){return s(D)},get containerHeight(){return t.sampleHeight}}),_(ee),_(k),ae(Ze=>{gt(k,X()),B(ee,"href",Ze)},[()=>Ee(St.toSample({sampleId:s(P)[g()].sample_id,datasetId:t.dataset_id,sampleIndex:g()}),void 0)]),o(O,k)};H(Z,O=>{s(P)[g()]&&O(z)})}o(Y,G)},footer:Y=>{var S=Wt(),g=se(S);const X=m(()=>!l().hasNextPage||l().isFetchingNextPage);vt(g,{onIntersect:qe,get disabled(){return s(X)}});var G=Q(g,2);{var Z=z=>{var O=Tt(),k=b(O);_t(k,{}),_(O),o(z,O)};H(G,z=>{l().isFetchingNextPage&&z(Z)})}o(Y,S)},$$slots:{item:!0,footer:!0}}),_(F),pt(F,me=>M(C,me),()=>s(C)),o(I,F)},W=I=>{var F=Qt();o(I,F)};H(A,I=>{s(oe)?I(T):I(W,!1)},V)}};H(R,A=>{l().isSuccess&&s(P).length===0?A(Ke):A(Je,!1)},J)}};H(a,R=>{l().isError?R(Qe):R(De,!1)},r)}};H(Te,a=>{l().isPending?a(We):a(Ge,!1)})}o(e,ce),ne(),d()}export{fs as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{p,f as n,n as i,a as m}from"./DcGCxgpH.js";import{c,a as d}from"./Crk-jcvV.js";import{s as f}from"./C0JiMuYn.js";import{s as l,r as u}from"./D8GZDMNN.js";import{I as h}from"./BRnH9v23.js";function y(r,o){p(o,!0);let t=u(o,["$$slots","$$events","$$legacy"]);h(r,l({name:"minus"},()=>t,{iconNode:[["path",{d:"M5 12h14"}]],children:(a,_)=>{var s=c(),e=n(s);f(e,()=>o.children??i),d(a,s)},$$slots:{default:!0}})),m()}export{y as default};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{x9G_hzyY.js → Cur71c3O.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as f,c as M}from"./
|
|
1
|
+
import{g as f,c as M}from"./i0ZZ4z06.js";import{l,w as b}from"./DcGCxgpH.js";import{u as m}from"./BBoGk9hq.js";const i=b(!1),x=async o=>{if(l(i))return;const s=f({path:{dataset_id:o}});M(s).subscribe(e=>{if(e.data){const t=e.data,{updateMetadataBounds:u,updateMetadataValues:n,updateMetadataInfo:p}=m(),r={},c={};t.forEach(a=>{(a.type==="integer"||a.type==="float")&&a.min!=null&&a.max!=null&&(r[a.name]={min:a.min,max:a.max},c[a.name]={min:a.min,max:a.max})}),u(r),n(c),p(t),i.set(!0)}})},I=o=>{const s=[],{metadataBounds:d}=m();for(const[e,t]of Object.entries(o)){const n=l(d)[e];n&&(t.min>n.min&&s.push({key:e,value:t.min,op:">="}),t.max<n.max&&s.push({key:e,value:t.max,op:"<="}))}return s},B=o=>{o&&x(o);const{metadataBounds:s,metadataValues:d,metadataInfo:e,updateMetadataValues:t,updateMetadataBounds:u,updateMetadataInfo:n}=m();return{metadataBounds:s,metadataValues:d,metadataInfo:e,updateMetadataValues:t,updateMetadataBounds:u,updateMetadataInfo:n,createMetadataFilters:I}};export{I as c,B as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{p as tt,g as e,a7 as et,u as ht,c as Q,r as Z,J as O,t as at,d as z,a as nt,aw as dt,f as gt,s as B}from"./DcGCxgpH.js";import{n as rt,a as U,t as ft}from"./Crk-jcvV.js";import{i as W,s as mt,a as it}from"./DqUGznj_.js";import{p as T,b as ct,a as J}from"./D8GZDMNN.js";import{R as st,T as bt,U as yt,j as m,O as xt,y as wt,V as kt,W as K,X as vt}from"./BRnH9v23.js";import"./BBoGk9hq.js";import{o as zt}from"./2O287xak.js";import"./gLNdjSzu.js";import"./Cpy-nab_.js";import"./Df3aMO5B.js";import"./69_IOA4Y.js";import"./C0JiMuYn.js";import{s as St}from"./KpAtIldw.js";function Mt(o,t){const n={...o};return n.x=Math.round(Math.max(t.x,Math.min(n.x,t.x+t.width-n.width))),n.y=Math.round(Math.max(t.y,Math.min(n.y,t.y+t.height-n.height))),n.width=Math.round(Math.min(n.width,t.x+t.width-n.x)),n.height=Math.round(Math.min(n.height,t.y+t.height-n.y)),n}function L(o){return typeof o=="string"?new st([[document.querySelector(o)]],[document.documentElement]):new st([[o]],bt)}function _t(o){let t;for(;t=o.sourceEvent;)o=t;return o}function lt(o,t){if(o=_t(o),t===void 0&&(t=o.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=o.clientX,r.y=o.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var b=t.getBoundingClientRect();return[o.clientX-b.left-t.clientLeft,o.clientY-b.top-t.clientTop]}}return[o.pageX,o.pageY]}const Rt={passive:!1},Y={capture:!0,passive:!1};function N(o){o.stopImmediatePropagation()}function A(o){o.preventDefault(),o.stopImmediatePropagation()}function Tt(o){var t=o.document.documentElement,n=L(o).on("dragstart.drag",A,Y);"onselectstart"in t?n.on("selectstart.drag",A,Y):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Ct(o,t){var n=o.document.documentElement,r=L(o).on("dragstart.drag",null);t&&(r.on("click.drag",A,Y),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const G=o=>()=>o;function $(o,{sourceEvent:t,subject:n,target:r,identifier:b,active:k,x,y:w,dx:l,dy:i,dispatch:c}){Object.defineProperties(this,{type:{value:o,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:b,enumerable:!0,configurable:!0},active:{value:k,enumerable:!0,configurable:!0},x:{value:x,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:i,enumerable:!0,configurable:!0},_:{value:c}})}$.prototype.on=function(){var o=this._.on.apply(this._,arguments);return o===this._?this:o};function pt(o){return!o.ctrlKey&&!o.button}function Et(){return this.parentNode}function Pt(o,t){return t??{x:o.x,y:o.y}}function Dt(){return navigator.maxTouchPoints||"ontouchstart"in this}function ut(){var o=pt,t=Et,n=Pt,r=Dt,b={},k=yt("start","drag","end"),x=0,w,l,i,c,d=0;function s(a){a.on("mousedown.drag",v).filter(r).on("touchstart.drag",p).on("touchmove.drag",S,Rt).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(a,y){if(!(c||!o.call(this,a,y))){var g=h(this,t.call(this,a,y),a,y,"mouse");g&&(L(a.view).on("mousemove.drag",C,Y).on("mouseup.drag",_,Y),Tt(a.view),N(a),i=!1,w=a.clientX,l=a.clientY,g("start",a))}}function C(a){if(A(a),!i){var y=a.clientX-w,g=a.clientY-l;i=y*y+g*g>d}b.mouse("drag",a)}function _(a){L(a.view).on("mousemove.drag mouseup.drag",null),Ct(a.view,i),A(a),b.mouse("end",a)}function p(a,y){if(o.call(this,a,y)){var g=a.changedTouches,u=t.call(this,a,y),M=g.length,P,D;for(P=0;P<M;++P)(D=h(this,u,a,y,g[P].identifier,g[P]))&&(N(a),D("start",a,g[P]))}}function S(a){var y=a.changedTouches,g=y.length,u,M;for(u=0;u<g;++u)(M=b[y[u].identifier])&&(A(a),M("drag",a,y[u]))}function E(a){var y=a.changedTouches,g=y.length,u,M;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),u=0;u<g;++u)(M=b[y[u].identifier])&&(N(a),M("end",a,y[u]))}function h(a,y,g,u,M,P){var D=k.copy(),R=lt(P||g,y),H,I,F;if((F=n.call(a,new $("beforestart",{sourceEvent:g,target:s,identifier:M,active:x,x:R[0],y:R[1],dx:0,dy:0,dispatch:D}),u))!=null)return H=F.x-R[0]||0,I=F.y-R[1]||0,function q(X,f,j){var ot=R,V;switch(X){case"start":b[M]=q,V=x++;break;case"end":delete b[M],--x;case"drag":R=lt(j||f,y),V=x;break}D.call(X,a,new $(X,{sourceEvent:f,subject:F,target:s,identifier:M,active:V,x:R[0]+H,y:R[1]+I,dx:R[0]-ot[0],dy:R[1]-ot[1],dispatch:D}),u)}}return s.filter=function(a){return arguments.length?(o=typeof a=="function"?a:G(!!a),s):o},s.container=function(a){return arguments.length?(t=typeof a=="function"?a:G(a),s):t},s.subject=function(a){return arguments.length?(n=typeof a=="function"?a:G(a),s):n},s.touchable=function(a){return arguments.length?(r=typeof a=="function"?a:G(!!a),s):r},s.on=function(){var a=k.on.apply(k,arguments);return a===k?s:a},s.clickDistance=function(a){return arguments.length?(d=(a=+a)*a,s):Math.sqrt(d)},s}function jt({handle:o,getCurrentBbox:t,onResize:n}){let r;return ut().on("start",()=>{r=t()}).on("drag",b=>{let k=r.x,x=r.y,w=r.width,l=r.height;const i=b.x-b.subject.x,c=b.y-b.subject.y;switch(o){case"nw":k=r.x+i,x=r.y+c,w=r.width-i,l=r.height-c;break;case"ne":x=r.y+c,w=r.width+i,l=r.height-c;break;case"sw":k=r.x+i,w=r.width-i,l=r.height+c;break;case"se":w=r.width+i,l=r.height+c;break;case"n":x=r.y+c,l=r.height-c;break;case"s":l=r.height+c;break;case"w":k=r.x+i,w=r.width-i;break;case"e":w=r.width+i;break}const d=1;w<d&&(w=d,o.includes("w")&&(k=r.x+r.width-d)),l<d&&(l=d,o.includes("n")&&(x=r.y+r.height-d));const s=Math.round(k),v=Math.round(x),C=Math.round(w),_=Math.round(l);n&&n({x:s,y:v,width:C,height:_})})}function Lt({getCurrentBbox:o,onMove:t}){let n;return ut().on("start",()=>{n=o()}).on("drag",r=>{const b=r.x-r.subject.x,k=r.y-r.subject.y,x=Math.round(n.x+b),w=Math.round(n.y+k);t&&t({x,y:w,width:n.width,height:n.height})})}var Ft=rt('<g><rect stroke-width="2" pointer-events="all" vector-effect="non-scaling-stroke" class="movable-rectangle" style="cursor: move;"></rect></g>');function Xt(o,t){tt(t,!0);const n=T(t,"bbox",15),r=T(t,"colorStroke",3,"#007bff"),b=T(t,"colorFill",3,"transparent"),k=T(t,"opacity",3,.3),x=T(t,"handleSize",3,12),w=T(t,"scale",3,1),l=z(()=>n().x),i=z(()=>n().y),c=z(()=>n().width),d=z(()=>n().height);let s=et(void 0);function v(){if(!e(s))return;const E=x()/w(),h=Math.min(E,e(c)*.1,e(d)*.1),a=[{id:"nw",x:e(l)-h/2,y:e(i)-h/2,cursor:"nwse-resize",label:"Resize northwest corner"},{id:"ne",x:e(l)+e(c)-h/2,y:e(i)-h/2,cursor:"nesw-resize",label:"Resize northeast corner"},{id:"sw",x:e(l)-h/2,y:e(i)+e(d)-h/2,cursor:"nesw-resize",label:"Resize southwest corner"},{id:"se",x:e(l)+e(c)-h/2,y:e(i)+e(d)-h/2,cursor:"nwse-resize",label:"Resize southeast corner"},{id:"n",x:e(l)+e(c)/2-h/2,y:e(i)-h/2,cursor:"ns-resize",label:"Resize top edge"},{id:"s",x:e(l)+e(c)/2-h/2,y:e(i)+e(d)-h/2,cursor:"ns-resize",label:"Resize bottom edge"},{id:"w",x:e(l)-h/2,y:e(i)+e(d)/2-h/2,cursor:"ew-resize",label:"Resize left edge"},{id:"e",x:e(l)+e(c)-h/2,y:e(i)+e(d)/2-h/2,cursor:"ew-resize",label:"Resize right edge"}],g=L(e(s)).selectAll(".resize-handle").data(a,u=>u.id);g.enter().append("rect").attr("class","resize-handle").attr("width",h).attr("height",h).attr("fill",r()).attr("stroke",r()).attr("stroke-width","1").attr("vector-effect","non-scaling-stroke").attr("role","button").attr("style",u=>`cursor: ${u.cursor};`).attr("data-testid",u=>`resize-handle-${u.id}`).attr("aria-label",u=>u.label).merge(g).attr("x",u=>u.x).attr("y",u=>u.y).attr("width",h).attr("height",h).attr("fill",r()).attr("stroke",r()),g.exit().remove()}function C(){if(!e(s))return;["nw","ne","sw","se","n","s","w","e"].forEach(a=>{if(!e(s))return;const y=e(s).querySelector(`[data-testid="resize-handle-${a}"]`);y&&L(y).call(jt({handle:a,getCurrentBbox:()=>({x:e(l),y:e(i),width:e(c),height:e(d)}),onResize:g=>{n(n().x=g.x,!0),n(n().y=g.y,!0),n(n().width=g.width,!0),n(n().height=g.height,!0),t.onResize&&t.onResize(g),v()}}))});const h=e(s).querySelector(".movable-rectangle");h&&L(h).call(Lt({getCurrentBbox:()=>({x:e(l),y:e(i),width:e(c),height:e(d)}),onMove:a=>{n(n().x=a.x,!0),n(n().y=a.y,!0),n(n().width=a.width,!0),n(n().height=a.height,!0),t.onResize&&t.onResize(a),v()}}))}zt(()=>{e(s)&&(v(),C())});const _=async()=>{e(s)&&(await dt(),v(),C())};ht(()=>{v(),_()});var p=Ft(),S=Q(p);Z(p),ct(p,E=>O(s,E),()=>e(s)),at(()=>{m(S,"x",e(l)),m(S,"y",e(i)),m(S,"width",e(c)),m(S,"height",e(d)),m(S,"stroke",r()),m(S,"fill",b()),m(S,"fill-opacity",k())}),U(o,p),nt()}var At=ft("<!> <!> <!>",1);function ae(o,t){var q,X;tt(t,!0);const[n,r]=mt(),b=()=>it(i,"$taskMap",n),k=()=>it(c,"$customLabelColorsStore",n),x=T(t,"showLabel",3,!1),w=T(t,"isResizable",3,!1),l=T(t,"scale",3,1),{taskMap:i}=xt(),{customLabelColorsStore:c}=vt(),{annotation_task_id:d}=t.annotation,s=z(()=>t.annotation.annotation_label.annotation_label_name),v=(X=(q=t.annotation)==null?void 0:q.instance_segmentation_details)==null?void 0:X.segmentation_mask,C=z(()=>d&&b().has(d)?b().get(d).is_prediction:!1),_=z(()=>t.annotation.annotation_id),p=z(()=>K(e(s),1)),S=z(()=>{var f;return((f=k()[e(s)])==null?void 0:f.color)??K(e(s),1).color}),E=z(()=>{var f;return((f=k()[e(s)])==null?void 0:f.color)??K(e(s),.4).color}),h=z(()=>{var f;return((f=k()[e(s)])==null?void 0:f.alpha)*.4});let a=et(J(wt(t.annotation)));const y=f=>{var j;O(a,J(t.constraintBox?Mt(f,t.constraintBox):f)),(j=t.onBoundingBoxChange)==null||j.call(t,e(a))},g=z(()=>[e(a).x,e(a).y,e(a).width,e(a).height]);var u=At(),M=gt(u);{var P=f=>{const j=z(()=>[e(a).x,e(a).y]);qt(f,{get coordinates(){return e(j)},get colorText(){return e(p)},get label(){return e(s)},get isPrediction(){return e(C)}})};W(M,f=>{x()&&f(P)})}var D=B(M,2);{var R=f=>{kt(f,{segmentation:v,get width(){return t.imageWidth},get colorFill(){return e(E)},get opacity(){return e(h)}})};W(D,f=>{v&&f(R)})}var H=B(D,2);{var I=f=>{Xt(f,{get colorStroke(){return e(S)},get colorFill(){return e(E)},get opacity(){return e(h)},get scale(){return l()},onResize:y,get bbox(){return e(a)},set bbox(j){O(a,J(j))}})},F=f=>{Ht(f,{get bbox(){return e(g)},get annotationId(){return e(_)},get label(){return e(s)},get colorStroke(){return e(S)},get colorFill(){return e(E)},get opacity(){return e(h)},get isPrediction(){return e(C)}})};W(H,f=>{w()&&t.constraintBox?f(I):f(F,!1)})}U(o,u),nt(),r()}var Yt=rt('<rect vector-effect="non-scaling-stroke" stroke-width="2" pointer-events="all" data-testid="annotation_box"></rect>');function Ht(o,t){const n=T(t,"isPrediction",3,!1),[r,b,k,x]=t.bbox,w=n()?"5,5":"none",l=n()?.8:1;var i=Yt();m(i,"x",r),m(i,"y",b),m(i,"width",k),m(i,"height",x),m(i,"stroke-opacity",l),m(i,"stroke-dasharray",w),at(()=>{m(i,"stroke",t.colorStroke),m(i,"fill",t.colorFill),m(i,"fill-opacity",t.opacity),m(i,"aria-label",t.label),m(i,"data-annotation-id",t.annotationId)}),U(o,i)}var It=rt('<g class="unscaled"><rect></rect><text class="annotation-label-text" data-testid="svg-annotation-text"> </text></g>');function qt(o,t){tt(t,!0);const n=T(t,"fontSize",3,14),r=T(t,"isPrediction",3,!1),b=z(()=>t.coordinates[0]),k=z(()=>t.coordinates[1]);let x=et(null);const w=z(()=>e(x)?(e(x).textContent=r()?`${t.label} (pred)`:t.label,e(x).getBBox()):{width:0,height:0}),l=5,i=r()?.8:1,c=r()?"italic":"normal";var d=It(),s=Q(d);m(s,"opacity",i);var v=B(s);m(v,"x",l),m(v,"y",-5),m(v,"font-style",c);var C=Q(v,!0);Z(v),ct(v,_=>O(x,_),()=>e(x)),Z(d),at(()=>{var _,p,S;m(d,"transform",`translate(${e(b)}, ${e(k)})`),m(s,"y",-((_=e(w))==null?void 0:_.height)),m(s,"width",((p=e(w))==null?void 0:p.width)+l*2),m(s,"height",(S=e(w))==null?void 0:S.height),m(s,"fill",t.colorText.color),m(v,"fill",t.colorText.contrastColor),m(v,"font-size",n()),St(C,r()?`${t.label} (pred)`:t.label)}),U(o,d),nt()}export{ae as S,Tt as d,lt as p,L as s,Ct as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a8 as I,a9 as F,aa as G,ab as p,ac as Z,g as b,U as g,J as w,ad as x,P as z,ae as J,af as M,a6 as V,q as B,v as W,o as k,E as H,C as Q,D as X,F as ee,ag as re,ah as te,i as T,a2 as ne,ai as ie,aj as se,d as C,ak as ae,al as fe,am as ue,an as le,ao as Y,ap as oe,aq as ce,G as de,ar as ve,as as D}from"./DcGCxgpH.js";import{c as _e}from"./DqUGznj_.js";import{l as he}from"./DIeogL5L.js";function S(e,r=null,s){if(typeof e!="object"||e===null||I in e)return e;const a=M(e);if(a!==F&&a!==G)return e;var n=new Map,l=V(e),h=p(0);l&&n.set("length",p(e.length));var d;return new Proxy(e,{defineProperty(c,t,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&J();var f=n.get(t);return f===void 0?(f=p(i.value),n.set(t,f)):w(f,S(i.value,d)),!0},deleteProperty(c,t){var i=n.get(t);if(i===void 0)t in c&&n.set(t,p(g));else{if(l&&typeof t=="string"){var f=n.get("length"),u=Number(t);Number.isInteger(u)&&u<f.v&&w(f,u)}w(i,g),U(h)}return!0},get(c,t,i){var v;if(t===I)return e;var f=n.get(t),u=t in c;if(f===void 0&&(!u||(v=x(c,t))!=null&&v.writable)&&(f=p(S(u?c[t]:g,d)),n.set(t,f)),f!==void 0){var o=b(f);return o===g?void 0:o}return Reflect.get(c,t,i)},getOwnPropertyDescriptor(c,t){var i=Reflect.getOwnPropertyDescriptor(c,t);if(i&&"value"in i){var f=n.get(t);f&&(i.value=b(f))}else if(i===void 0){var u=n.get(t),o=u==null?void 0:u.v;if(u!==void 0&&o!==g)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return i},has(c,t){var o;if(t===I)return!0;var i=n.get(t),f=i!==void 0&&i.v!==g||Reflect.has(c,t);if(i!==void 0||z!==null&&(!f||(o=x(c,t))!=null&&o.writable)){i===void 0&&(i=p(f?S(c[t],d):g),n.set(t,i));var u=b(i);if(u===g)return!1}return f},set(c,t,i,f){var E;var u=n.get(t),o=t in c;if(l&&t==="length")for(var v=i;v<u.v;v+=1){var y=n.get(v+"");y!==void 0?w(y,g):v in c&&(y=p(g),n.set(v+"",y))}u===void 0?(!o||(E=x(c,t))!=null&&E.writable)&&(u=p(void 0),w(u,S(i,d)),n.set(t,u)):(o=u.v!==g,w(u,S(i,d)));var P=Reflect.getOwnPropertyDescriptor(c,t);if(P!=null&&P.set&&P.set.call(f,i),!o){if(l&&typeof t=="string"){var O=n.get("length"),A=Number(t);Number.isInteger(A)&&A>=O.v&&w(O,A+1)}U(h)}return!0},ownKeys(c){b(h);var t=Reflect.ownKeys(c).filter(u=>{var o=n.get(u);return o===void 0||o.v!==g});for(var[i,f]of n)f.v!==g&&!(i in c)&&t.push(i);return t},setPrototypeOf(){Z()}})}function U(e,r=1){w(e,e.v+r)}function Ee(e,r,s){B&&W();var a=e,n,l;k(()=>{n!==(n=r())&&(l&&(X(l),l=null),n&&(l=Q(()=>s(a,n))))},H),B&&(a=ee)}function j(e,r){return e===r||(e==null?void 0:e[I])===r}function Re(e={},r,s,a){return re(()=>{var n,l;return te(()=>{n=l,l=[],T(()=>{e!==s(...l)&&(r(e,...l),n&&j(s(...n),e)&&r(null,...n))})}),()=>{ne(()=>{l&&j(s(...l),e)&&r(null,...l)})}}),e}const ge={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 Se(e,r,s){return new Proxy({props:e,exclude:r},ge)}const ye={get(e,r){let s=e.props.length;for(;s--;){let a=e.props[s];if(D(a)&&(a=a()),typeof a=="object"&&a!==null&&r in a)return a[r]}},set(e,r,s){let a=e.props.length;for(;a--;){let n=e.props[a];D(n)&&(n=n());const l=x(n,r);if(l&&l.set)return l.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let a=e.props[s];if(D(a)&&(a=a()),typeof a=="object"&&a!==null&&r in a){const n=x(a,r);return n&&!n.configurable&&(n.configurable=!0),n}}},has(e,r){if(r===I||r===Y)return!1;for(let s of e.props)if(D(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props){D(s)&&(s=s());for(const a in s)r.includes(a)||r.push(a)}return r}};function Ie(...e){return new Proxy({props:e},ye)}function K(e){var r;return((r=e.ctx)==null?void 0:r.d)??!1}function xe(e,r,s,a){var q;var n=(s&ce)!==0,l=!he||(s&oe)!==0,h=(s&le)!==0,d=(s&ve)!==0,c=!1,t;h?[t,c]=_e(()=>e[r]):t=e[r];var i=I in e||Y in e,f=h&&(((q=x(e,r))==null?void 0:q.set)??(i&&r in e&&(_=>e[r]=_)))||void 0,u=a,o=!0,v=!1,y=()=>(v=!0,o&&(o=!1,d?u=T(a):u=a),u);t===void 0&&a!==void 0&&(f&&l&&ie(),t=y(),f&&f(t));var P;if(l)P=()=>{var _=e[r];return _===void 0?y():(o=!0,v=!1,_)};else{var O=(n?C:ae)(()=>e[r]);O.f|=se,P=()=>{var _=b(O);return _!==void 0&&(u=void 0),_===void 0?u:_}}if(!(s&fe))return P;if(f){var A=e.$$legacy;return function(_,R){return arguments.length>0?((!l||!R||A||c)&&f(R?P():_),_):P()}}var E=!1,L=de(t),m=C(()=>{var _=P(),R=b(L);return E?(E=!1,R):L.v=_});return h&&b(m),n||(m.equals=ue),function(_,R){if(arguments.length>0){const N=R?b(m):l&&h?S(_):_;if(!m.equals(N)){if(E=!0,w(L,N),v&&u!==void 0&&(u=N),K(m))return _;T(()=>b(m))}return _}return K(m)?m.v:b(m)}}const Pe="modulepreload",be=function(e,r){return new URL(e,r).href},$={},Oe=function(r,s,a){let n=Promise.resolve();if(s&&s.length>0){const h=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),c=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));n=Promise.allSettled(s.map(t=>{if(t=be(t,a),t in $)return;$[t]=!0;const i=t.endsWith(".css"),f=i?'[rel="stylesheet"]':"";if(!!a)for(let v=h.length-1;v>=0;v--){const y=h[v];if(y.href===t&&(!i||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${f}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Pe,i||(o.as="script"),o.crossOrigin="",o.href=t,c&&o.setAttribute("nonce",c),document.head.appendChild(o),i)return new Promise((v,y)=>{o.addEventListener("load",v),o.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${t}`)))})}))}function l(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return n.then(h=>{for(const d of h||[])d.status==="rejected"&&l(d.reason);return r().catch(l)})};export{Oe as _,S as a,Re as b,Ee as c,xe as p,Se as r,Ie as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{p as H,f as G,n as W,a as X,c as C,r as D,t as K,g as h,d as dt,s as $,ax as Et,u as Tt,a7 as ht,J as nt}from"./DcGCxgpH.js";import{c as tt,a as T,t as q,d as Vt}from"./Crk-jcvV.js";import{s as F,P as At}from"./C0JiMuYn.js";import{s as gt,r as Q,p as it,b as rt,a as st}from"./D8GZDMNN.js";import{I as pt,R as Rt,s as mt,e as yt,p as Nt,B as Bt,h as Pt,j as ct,U as Yt,Z as St,$ as wt,a0 as zt,a1 as Mt}from"./BRnH9v23.js";import{i as xt}from"./DqUGznj_.js";import{r as qt,u as Ft,c as Ht}from"./i0ZZ4z06.js";import{s as ut}from"./KpAtIldw.js";import{f as Zt,a as Xt}from"./M1Q1F7bw.js";import{o as jt}from"./2O287xak.js";import{s as ot,p as lt,d as Ot,y as Gt}from"./CzgC3GFB.js";function Kt(a,e){H(e,!0);let o=Q(e,["$$slots","$$events","$$legacy"]);pt(a,gt({name:"chevron-right"},()=>o,{iconNode:[["path",{d:"m9 18 6-6-6-6"}]],children:(i,s)=>{var r=tt(),d=G(r);F(d,()=>e.children??W),T(i,r)},$$slots:{default:!0}})),X()}function Ne(a,e){H(e,!0);let o=Q(e,["$$slots","$$events","$$legacy"]);pt(a,gt({name:"database"},()=>o,{iconNode:[["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"}]],children:(i,s)=>{var r=tt(),d=G(r);F(d,()=>e.children??W),T(i,r)},$$slots:{default:!0}})),X()}function Ye(a,e){H(e,!0);let o=Q(e,["$$slots","$$events","$$legacy"]);pt(a,gt({name:"house"},()=>o,{iconNode:[["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"}]],children:(i,s)=>{var r=tt(),d=G(r);F(d,()=>e.children??W),T(i,r)},$$slots:{default:!0}})),X()}function Wt(a,e){H(e,!0);let o=Q(e,["$$slots","$$events","$$legacy"]);pt(a,gt({name:"zoom-in"},()=>o,{iconNode:[["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"}]],children:(i,s)=>{var r=tt(),d=G(r);F(d,()=>e.children??W),T(i,r)},$$slots:{default:!0}})),X()}function Qt(a,e){H(e,!0);let o=Q(e,["$$slots","$$events","$$legacy"]);pt(a,gt({name:"zoom-out"},()=>o,{iconNode:[["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"}]],children:(i,s)=>{var r=tt(),d=G(r);F(d,()=>e.children??W),T(i,r)},$$slots:{default:!0}})),X()}function Ut(a){return new Rt([document.querySelectorAll(a)],[document.documentElement])}var Lt=q("<nav><!></nav>");function qe(a,e){H(e,!0);let o=it(e,"ref",15),f=Q(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=Lt();let s;var r=C(i);F(r,()=>e.children??W),D(i),rt(i,d=>o(d),()=>o()),K(()=>s=mt(i,s,{class:e.class,"aria-label":"breadcrumb",...f})),T(a,i),X()}var Jt=q("<li><!></li>");function Fe(a,e){H(e,!0);let o=it(e,"ref",15,null),f=Q(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=Jt();let s;var r=C(i);F(r,()=>e.children??W),D(i),rt(i,d=>o(d),()=>o()),K(d=>s=mt(i,s,{class:d,...f}),[()=>yt("inline-flex items-center gap-1.5",e.class)]),T(a,i),X()}var $t=q("<li><!></li>");function He(a,e){H(e,!0);let o=it(e,"ref",15,null),f=Q(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=$t();let s;var r=C(i);{var d=m=>{var k=tt(),S=G(k);F(S,()=>e.children??W),T(m,k)},_=m=>{Kt(m,{})};xt(r,m=>{e.children?m(d):m(_,!1)})}D(i),rt(i,m=>o(m),()=>o()),K(m=>s=mt(i,s,{role:"presentation","aria-hidden":"true",class:m,...f}),[()=>yt("[&>svg]:size-3.5",e.class)]),T(a,i),X()}var te=q("<a><!></a>");function Xe(a,e){H(e,!0);let o=it(e,"ref",15,null),f=it(e,"href",3,void 0),i=Q(e,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const s=dt(()=>({class:yt("hover:text-foreground transition-colors",e.class),href:f(),...i})),r=Nt(),[d,_]=r;var m=tt(),k=G(m);{var S=w=>{var b=tt(),M=G(b);F(M,()=>e.child,()=>({props:h(s)})),T(w,b)},x=w=>{var b=te();let M;var I=C(b);F(I,()=>e.children??W),D(b),rt(b,l=>o(l),()=>o()),K(l=>M=mt(b,M,{...l}),[()=>_({...h(s)},[{attribute_name:"href",lang_attribute_name:"hreflang"}])]),T(w,b)};xt(k,w=>{e.child?w(S):w(x,!1)})}T(a,m),X()}var ee=q("<ol><!></ol>");function je(a,e){H(e,!0);let o=it(e,"ref",15,null),f=Q(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ee();let s;var r=C(i);F(r,()=>e.children??W),D(i),rt(i,d=>o(d),()=>o()),K(d=>s=mt(i,s,{class:d,...f}),[()=>yt("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e.class)]),T(a,i),X()}var ae=q("<span><!></span>");function Oe(a,e){H(e,!0);let o=it(e,"ref",15,null),f=Q(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ae();let s;var r=C(i);F(r,()=>e.children??W),D(i),rt(i,d=>o(d),()=>o()),K(d=>s=mt(i,s,{role:"link","aria-disabled":"true","aria-current":"page",class:d,...f}),[()=>yt("text-foreground font-normal",e.class)]),T(a,i),X()}const Ge=a=>`${At}/sample/${a}`,Ke=({sampleId:a,datasetId:e})=>{const o=qt({path:{sample_id:a,dataset_id:e}}),f=Ft(),i=Ht(o);return{refetch:()=>{f.invalidateQueries({queryKey:o.queryKey})},sample:i}};var ne=q('<span class="text-sm"> </span> <span class="break-all text-sm"> </span>',1),oe=q('<div class="grid grid-cols-[6rem_1fr] gap-y-3 text-diffuse-foreground"></div>'),ie=q('<div class="flex items-start gap-3"><span class="truncate text-sm font-medium"> </span> <pre class="min-w-[8rem] flex-1 overflow-x-auto whitespace-pre-wrap rounded bg-muted p-2 text-sm"> </pre></div>'),re=q('<div class="flex items-start gap-3"><span class="truncate text-sm font-medium"> </span> <span class="min-w-[8rem] flex-1 break-all text-sm"> </span></div>'),se=q('<div class="space-y-3 text-diffuse-foreground"></div>'),le=q("<!> <!>",1);function We(a,e){H(e,!0);const o=it(e,"showCustomMetadata",3,!0),f=dt(()=>[{id:"height",label:"Height:",value:Zt(e.sample.height)+"px"},{id:"width",label:"Width:",value:Zt(e.sample.width)+"px"},{id:"filename",label:"Filename:",value:e.sample.file_name},{id:"filepath",label:"Filepath:",value:e.sample.file_path_abs}]),i=dt(()=>{const m=[];if(e.sample.metadata_dict&&typeof e.sample.metadata_dict=="object"&&"data"in e.sample.metadata_dict){const k=e.sample.metadata_dict.data;k&&typeof k=="object"&&Object.entries(k).forEach(([S,x])=>{const w=Xt(x),b=typeof x=="object"&&x!==null&&!Array.isArray(x);m.push({id:`metadata_${S}`,label:`${S}:`,value:w,isComplex:b})})}return m});var s=le(),r=G(s);Bt(r,{title:"Sample details",children:(m,k)=>{var S=oe();Pt(S,21,()=>h(f),({label:x,value:w,id:b})=>x,(x,w)=>{let b=()=>h(w).label,M=()=>h(w).value,I=()=>h(w).id;var l=ne(),E=G(l),A=C(E,!0);D(E);var R=$(E,2),g=C(R,!0);D(R),K(()=>{ut(A,b()),ct(R,"data-testid",`sample-metadata-${I()}`),ut(g,M())}),T(x,l)}),D(S),T(m,S)}});var d=$(r,2);{var _=m=>{Bt(m,{title:"Metadata",children:(k,S)=>{var x=se();Pt(x,21,()=>h(i),({label:w,value:b,id:M,isComplex:I})=>w,(w,b)=>{let M=()=>h(b).label,I=()=>h(b).value,l=()=>h(b).id,E=()=>h(b).isComplex;var A=tt(),R=G(A);{var g=P=>{var N=ie(),Y=C(N),et=C(Y,!0);D(Y);var at=$(Y,2),ft=C(at,!0);D(at),D(N),K(()=>{ct(Y,"title",M()),ut(et,M()),ut(ft,I())}),T(P,N)},B=P=>{var N=re(),Y=C(N),et=C(Y,!0);D(Y);var at=$(Y,2),ft=C(at,!0);D(at),D(N),K(()=>{ct(Y,"title",M()),ut(et,M()),ct(at,"data-testid",`sample-metadata-${l()}`),ut(ft,I())}),T(P,N)};xt(R,P=>{E()?P(g):P(B,!1)})}T(w,A)}),D(x),T(k,x)}})};xt(d,m=>{o()&&h(i).length>0&&m(_)})}T(a,s),X()}var ue=1e-12;function Dt(a){return((a=Math.exp(a))+1/a)/2}function ce(a){return((a=Math.exp(a))-1/a)/2}function he(a){return((a=Math.exp(2*a))-1)/(a+1)}const de=function a(e,o,f){function i(s,r){var d=s[0],_=s[1],m=s[2],k=r[0],S=r[1],x=r[2],w=k-d,b=S-_,M=w*w+b*b,I,l;if(M<ue)l=Math.log(x/m)/e,I=function(P){return[d+P*w,_+P*b,m*Math.exp(e*P*l)]};else{var E=Math.sqrt(M),A=(x*x-m*m+f*M)/(2*m*o*E),R=(x*x-m*m-f*M)/(2*x*o*E),g=Math.log(Math.sqrt(A*A+1)-A),B=Math.log(Math.sqrt(R*R+1)-R);l=(B-g)/e,I=function(P){var N=P*l,Y=Dt(g),et=m/(o*E)*(Y*he(e*N+g)-ce(g));return[d+et*w,_+et*b,m*Y/Dt(e*N+g)]}}return I.duration=l*1e3*e/Math.SQRT2,I}return i.rho=function(s){var r=Math.max(.001,+s),d=r*r,_=d*d;return a(r,d,_)},i}(Math.SQRT2,2,4),_t=a=>()=>a;function me(a,{sourceEvent:e,target:o,transform:f,dispatch:i}){Object.defineProperties(this,{type:{value:a,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:f,enumerable:!0,configurable:!0},_:{value:i}})}function kt(a){a.stopImmediatePropagation()}function vt(a){a.preventDefault(),a.stopImmediatePropagation()}function fe(a){return(!a.ctrlKey||a.type==="wheel")&&!a.button}function ve(){var a=this;return a instanceof SVGElement?(a=a.ownerSVGElement||a,a.hasAttribute("viewBox")?(a=a.viewBox.baseVal,[[a.x,a.y],[a.x+a.width,a.y+a.height]]):[[0,0],[a.width.baseVal.value,a.height.baseVal.value]]):[[0,0],[a.clientWidth,a.clientHeight]]}function It(){return this.__zoom||St}function ge(a){return-a.deltaY*(a.deltaMode===1?.05:a.deltaMode?1:.002)*(a.ctrlKey?10:1)}function pe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ye(a,e,o){var f=a.invertX(e[0][0])-o[0][0],i=a.invertX(e[1][0])-o[1][0],s=a.invertY(e[0][1])-o[0][1],r=a.invertY(e[1][1])-o[1][1];return a.translate(i>f?(f+i)/2:Math.min(0,f)||Math.max(0,i),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function _e(){var a=fe,e=ve,o=ye,f=ge,i=pe,s=[0,1/0],r=[[-1/0,-1/0],[1/0,1/0]],d=250,_=de,m=Yt("start","zoom","end"),k,S,x,w=500,b=150,M=0,I=10;function l(t){t.property("__zoom",It).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",et).filter(i).on("touchstart.zoom",at).on("touchmove.zoom",ft).on("touchend.zoom touchcancel.zoom",Ct).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.transform=function(t,u,n,c){var v=t.selection?t.selection():t;v.property("__zoom",It),t!==v?g(t,u,n,c):v.interrupt().each(function(){B(this,arguments).event(c).start().zoom(null,typeof u=="function"?u.apply(this,arguments):u).end()})},l.scaleBy=function(t,u,n,c){l.scaleTo(t,function(){var v=this.__zoom.k,p=typeof u=="function"?u.apply(this,arguments):u;return v*p},n,c)},l.scaleTo=function(t,u,n,c){l.transform(t,function(){var v=e.apply(this,arguments),p=this.__zoom,y=n==null?R(v):typeof n=="function"?n.apply(this,arguments):n,z=p.invert(y),Z=typeof u=="function"?u.apply(this,arguments):u;return o(A(E(p,Z),y,z),v,r)},n,c)},l.translateBy=function(t,u,n,c){l.transform(t,function(){return o(this.__zoom.translate(typeof u=="function"?u.apply(this,arguments):u,typeof n=="function"?n.apply(this,arguments):n),e.apply(this,arguments),r)},null,c)},l.translateTo=function(t,u,n,c,v){l.transform(t,function(){var p=e.apply(this,arguments),y=this.__zoom,z=c==null?R(p):typeof c=="function"?c.apply(this,arguments):c;return o(St.translate(z[0],z[1]).scale(y.k).translate(typeof u=="function"?-u.apply(this,arguments):-u,typeof n=="function"?-n.apply(this,arguments):-n),p,r)},c,v)};function E(t,u){return u=Math.max(s[0],Math.min(s[1],u)),u===t.k?t:new wt(u,t.x,t.y)}function A(t,u,n){var c=u[0]-n[0]*t.k,v=u[1]-n[1]*t.k;return c===t.x&&v===t.y?t:new wt(t.k,c,v)}function R(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function g(t,u,n,c){t.on("start.zoom",function(){B(this,arguments).event(c).start()}).on("interrupt.zoom end.zoom",function(){B(this,arguments).event(c).end()}).tween("zoom",function(){var v=this,p=arguments,y=B(v,p).event(c),z=e.apply(v,p),Z=n==null?R(z):typeof n=="function"?n.apply(v,p):n,U=Math.max(z[1][0]-z[0][0],z[1][1]-z[0][1]),V=v.__zoom,j=typeof u=="function"?u.apply(v,p):u,L=_(V.invert(Z).concat(U/V.k),j.invert(Z).concat(U/j.k));return function(O){if(O===1)O=j;else{var J=L(O),bt=U/J[2];O=new wt(bt,Z[0]-J[0]*bt,Z[1]-J[1]*bt)}y.zoom(null,O)}})}function B(t,u,n){return!n&&t.__zooming||new P(t,u)}function P(t,u){this.that=t,this.args=u,this.active=0,this.sourceEvent=null,this.extent=e.apply(t,u),this.taps=0}P.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,u){return this.mouse&&t!=="mouse"&&(this.mouse[1]=u.invert(this.mouse[0])),this.touch0&&t!=="touch"&&(this.touch0[1]=u.invert(this.touch0[0])),this.touch1&&t!=="touch"&&(this.touch1[1]=u.invert(this.touch1[0])),this.that.__zoom=u,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var u=ot(this.that).datum();m.call(t,this.that,new me(t,{sourceEvent:this.sourceEvent,target:l,transform:this.that.__zoom,dispatch:m}),u)}};function N(t,...u){if(!a.apply(this,arguments))return;var n=B(this,u).event(t),c=this.__zoom,v=Math.max(s[0],Math.min(s[1],c.k*Math.pow(2,f.apply(this,arguments)))),p=lt(t);if(n.wheel)(n.mouse[0][0]!==p[0]||n.mouse[0][1]!==p[1])&&(n.mouse[1]=c.invert(n.mouse[0]=p)),clearTimeout(n.wheel);else{if(c.k===v)return;n.mouse=[p,c.invert(p)],zt(this),n.start()}vt(t),n.wheel=setTimeout(y,b),n.zoom("mouse",o(A(E(c,v),n.mouse[0],n.mouse[1]),n.extent,r));function y(){n.wheel=null,n.end()}}function Y(t,...u){if(x||!a.apply(this,arguments))return;var n=t.currentTarget,c=B(this,u,!0).event(t),v=ot(t.view).on("mousemove.zoom",Z,!0).on("mouseup.zoom",U,!0),p=lt(t,n),y=t.clientX,z=t.clientY;Ot(t.view),kt(t),c.mouse=[p,this.__zoom.invert(p)],zt(this),c.start();function Z(V){if(vt(V),!c.moved){var j=V.clientX-y,L=V.clientY-z;c.moved=j*j+L*L>M}c.event(V).zoom("mouse",o(A(c.that.__zoom,c.mouse[0]=lt(V,n),c.mouse[1]),c.extent,r))}function U(V){v.on("mousemove.zoom mouseup.zoom",null),Gt(V.view,c.moved),vt(V),c.event(V).end()}}function et(t,...u){if(a.apply(this,arguments)){var n=this.__zoom,c=lt(t.changedTouches?t.changedTouches[0]:t,this),v=n.invert(c),p=n.k*(t.shiftKey?.5:2),y=o(A(E(n,p),c,v),e.apply(this,u),r);vt(t),d>0?ot(this).transition().duration(d).call(g,y,c,t):ot(this).call(l.transform,y,c,t)}}function at(t,...u){if(a.apply(this,arguments)){var n=t.touches,c=n.length,v=B(this,u,t.changedTouches.length===c).event(t),p,y,z,Z;for(kt(t),y=0;y<c;++y)z=n[y],Z=lt(z,this),Z=[Z,this.__zoom.invert(Z),z.identifier],v.touch0?!v.touch1&&v.touch0[2]!==Z[2]&&(v.touch1=Z,v.taps=0):(v.touch0=Z,p=!0,v.taps=1+!!k);k&&(k=clearTimeout(k)),p&&(v.taps<2&&(S=Z[0],k=setTimeout(function(){k=null},w)),zt(this),v.start())}}function ft(t,...u){if(this.__zooming){var n=B(this,u).event(t),c=t.changedTouches,v=c.length,p,y,z,Z;for(vt(t),p=0;p<v;++p)y=c[p],z=lt(y,this),n.touch0&&n.touch0[2]===y.identifier?n.touch0[0]=z:n.touch1&&n.touch1[2]===y.identifier&&(n.touch1[0]=z);if(y=n.that.__zoom,n.touch1){var U=n.touch0[0],V=n.touch0[1],j=n.touch1[0],L=n.touch1[1],O=(O=j[0]-U[0])*O+(O=j[1]-U[1])*O,J=(J=L[0]-V[0])*J+(J=L[1]-V[1])*J;y=E(y,Math.sqrt(O/J)),z=[(U[0]+j[0])/2,(U[1]+j[1])/2],Z=[(V[0]+L[0])/2,(V[1]+L[1])/2]}else if(n.touch0)z=n.touch0[0],Z=n.touch0[1];else return;n.zoom("touch",o(A(y,z,Z),n.extent,r))}}function Ct(t,...u){if(this.__zooming){var n=B(this,u).event(t),c=t.changedTouches,v=c.length,p,y;for(kt(t),x&&clearTimeout(x),x=setTimeout(function(){x=null},w),p=0;p<v;++p)y=c[p],n.touch0&&n.touch0[2]===y.identifier?delete n.touch0:n.touch1&&n.touch1[2]===y.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(y=lt(y,this),Math.hypot(S[0]-y[0],S[1]-y[1])<I)){var z=ot(this).on("dblclick.zoom");z&&z.apply(this,arguments)}}}return l.wheelDelta=function(t){return arguments.length?(f=typeof t=="function"?t:_t(+t),l):f},l.filter=function(t){return arguments.length?(a=typeof t=="function"?t:_t(!!t),l):a},l.touchable=function(t){return arguments.length?(i=typeof t=="function"?t:_t(!!t),l):i},l.extent=function(t){return arguments.length?(e=typeof t=="function"?t:_t([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),l):e},l.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],l):[s[0],s[1]]},l.translateExtent=function(t){return arguments.length?(r[0][0]=+t[0][0],r[1][0]=+t[1][0],r[0][1]=+t[0][1],r[1][1]=+t[1][1],l):[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},l.constrain=function(t){return arguments.length?(o=t,l):o},l.duration=function(t){return arguments.length?(d=+t,l):d},l.interpolate=function(t){return arguments.length?(_=t,l):_},l.on=function(){var t=m.on.apply(m,arguments);return t===m?l:t},l.clickDistance=function(t){return arguments.length?(M=(t=+t)*t,l):Math.sqrt(M)},l.tapDistance=function(t){return arguments.length?(I=+t,l):I},l}function xe(a,e){let o=a.scaleIndependentXForm;o||(o=a.scaleIndependentXForm=e.createSVGTransform(),a.transform.baseVal.appendItem(o));const f=a.parentNode;if(f){const i=f.getScreenCTM();if(i){const s=i.inverse().multiply(e.getScreenCTM());s.e=s.f=0,o.setMatrix(s)}}}var be=q('<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 we(a,e){var o=be(),f=C(o);Mt(f,{variant:"ghost","data-testid":"zoom-reset",size:"sm",get onclick(){return e.onZoomReset},get disabled(){return e.isResetDisabled},children:(_,m)=>{Et();var k=Vt("Reset");T(_,k)},$$slots:{default:!0}});var i=$(f,4);Mt(i,{title:"zoom out",variant:"ghost",size:"icon","data-testid":"zoom-out",get onclick(){return e.onZoomOut},get disabled(){return e.isZoominDisabled},children:(_,m)=>{Qt(_,{class:"h-4 w-4"})},$$slots:{default:!0}});var s=$(i,2),r=C(s);D(s);var d=$(s,2);Mt(d,{title:"zoom in",variant:"ghost",size:"icon","data-testid":"zoom-in",get onclick(){return e.onZoomIn},get disabled(){return e.isZoomoutDisabled},children:(_,m)=>{Wt(_,{class:"h-4 w-4"})},$$slots:{default:!0}}),D(o),K(_=>ut(r,`${_??""}%`),[()=>Math.round(e.scale*100)]),T(a,o)}var ze=q('<div class="relative flex h-full w-full select-none items-center justify-center"><!> <svg class="z-10 h-full w-full cursor-grab" preserveAspectRatio="xMidYMid meet"><g><!></g></svg> <svg class="pointer-events-none absolute inset-0" preserveAspectRatio="xMidYMid meet"></svg></div>');function Qe(a,e){H(e,!0);let o=ht(null),f=ht(null),i=ht(800),s=ht(600);Tt(()=>{if(!h(o))return;nt(i,st(h(o).clientWidth)),nt(s,st(h(o).clientHeight));const g=new ResizeObserver(()=>{h(o)&&(nt(i,st(h(o).clientWidth)),nt(s,st(h(o).clientHeight)))});return g.observe(h(o)),()=>g.disconnect()});const r=10,d=dt(()=>{const g={x:0,y:0,width:e.width,height:e.height};if(e.boundingBox){b();const{x:B,y:P,width:N,height:Y}=e.boundingBox;return{x:Math.round(Math.max(0,B-r)),y:Math.round(Math.max(0,P-r)),width:Math.round(Math.min(e.width-B,N+r*2)),height:Math.round(Math.min(e.height-P,Y+r*2))}}return g});let _=ht(st({k:1,x:0,y:0}));const m=dt(()=>{if(!h(o))return 1;const g=h(i)/e.width,B=h(s)/e.height,P=Math.min(g,B);return h(_).k*P}),k=dt(()=>{if(!h(o))return 1;let g=h(m);if(e.boundingBox){const B=e.width/h(d).width,P=e.height/h(d).height,N=Math.min(B,P);g*=N}return g});let S=ht(null);const x=()=>{h(o)&&(nt(S,st(_e().on("zoom",g=>{nt(_,st(g.transform))}).filter(g=>(!g.ctrlKey||g.type==="wheel")&&!g.button&&!(g.type==="mousedown"&&g.button===2)).wheelDelta(g=>-g.deltaY*.002))),ot(h(o)).call(h(S)).on("dblclick.zoom",null))},w=g=>{if(!h(o)||!h(S))return;const B=g?1.5:.75;ot(h(o)).transition().duration(300).call(h(S).scaleBy,B)},b=()=>{!h(o)||!h(S)||ot(h(o)).transition().duration(300).call(h(S).transform,St)};jt(()=>{x()}),Tt(()=>{h(_).k,Ut(".unscaled").each(function(){xe(this,h(f))})});var M=ze(),I=C(M);we(I,{get scale(){return h(m)},onZoomIn:()=>w(!0),onZoomOut:()=>w(!1),onZoomReset:b});var l=$(I,2),E=C(l),A=C(E);F(A,()=>e.zoomableContent,()=>({scale:h(k)})),D(E),D(l),rt(l,g=>nt(o,g),()=>h(o));var R=$(l,2);ct(R,"viewBox","0 0 1024 768"),rt(R,g=>nt(f,g),()=>h(f)),D(M),K(()=>{ct(l,"viewBox",`${h(d).x} ${h(d).y} ${h(d).width} ${h(d).height}`),ct(E,"transform",`translate(${h(_).x}, ${h(_).y}) scale(${h(_).k})`)}),T(a,M),X()}export{qe as B,Ne as D,Ye as H,We as S,Qe as Z,je as a,Fe as b,Xe as c,He as d,Oe as e,Ge as g,Ke as u};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BylOuP6i.js → DRZO-E-T.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{p as w,$ as f,f as g,s as b,a as k}from"./
|
|
1
|
+
import"./CWj6FrbW.js";import{p as w,$ as f,f as g,s as b,a as k}from"./DcGCxgpH.js";import{d as m,e as y}from"./C98Hk3r5.js";import{t as n,a as r}from"./Crk-jcvV.js";import{i as c}from"./DqUGznj_.js";var x=n('<button class="absolute left-4 top-1/2 z-30 -translate-y-1/2 rounded-full bg-black/30 p-2 text-white opacity-50 transition-opacity hover:opacity-100" aria-label="Previous sample"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"></path></svg></button>'),_=n('<button class="absolute right-4 top-1/2 z-30 -translate-y-1/2 rounded-full bg-black/30 p-2 text-white opacity-50 transition-opacity hover:opacity-100" aria-label="Next sample"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"></path></svg></button>'),N=n("<!> <!>",1);function C(h,o){w(o,!0);const p=t=>{switch(t.key){case"ArrowRight":o.onNext();break;case"ArrowLeft":o.onPrevious();break}};var s=N();y("keydown",f,p);var l=g(s);{var u=t=>{var a=x();a.__click=function(...i){var e;(e=o.onPrevious)==null||e.apply(this,i)},r(t,a)};c(l,t=>{o.hasPrevious&&t(u)})}var v=b(l,2);{var d=t=>{var a=_();a.__click=function(...i){var e;(e=o.onNext)==null||e.apply(this,i)},r(t,a)};c(v,t=>{o.hasNext&&t(d)})}r(h,s),k()}m(["click"]);export{C as S};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{l7KrR96u.js → DcGCxgpH.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as pt,t as an}from"./DIeogL5L.js";const yt=!1;var Zn=Array.isArray,ln=Array.prototype.indexOf,Wn=Array.from,Xn=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,un=Object.getOwnPropertyDescriptors,Jn=Object.prototype,Qn=Array.prototype,on=Object.getPrototypeOf;function tr(t){return typeof t=="function"}const L=()=>{};function nr(t){return typeof(t==null?void 0:t.then)=="function"}function rr(t){return t()}function ht(t){for(var n=0;n<t.length;n++)t[n]()}const g=2,St=4,et=8,dt=16,x=32,D=64,Z=128,y=256,W=512,d=1024,S=2048,N=4096,Y=8192,st=16384,fn=32768,It=65536,er=1<<17,cn=1<<19,kt=1<<20,mt=Symbol("$state"),sr=Symbol("legacy props"),ar=Symbol("");function Rt(t){return t===this.v}function Ot(t,n){return t!=t?n==n:t!==n||t!==null&&typeof t=="object"||typeof t=="function"}function lr(t,n){return t!==n}function Ct(t){return!Ot(t,this.v)}function _n(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function vn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ur(){throw new Error("https://svelte.dev/e/hydration_failed")}function or(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ir(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function dn(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function wn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const cr=1,_r=2,vr=4,pr=8,hr=16,dr=1,wr=2,Er=4,yr=8,gr=16,mr=4,br=1,Tr=2,En="[",yn="[!",gn="]",Dt={},Ar=Symbol(),xr="http://www.w3.org/1999/xhtml",Sr="http://www.w3.org/2000/svg";function Nt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function mn(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let i=null;function bt(t){i=t}function Ir(t){return lt().get(t)}function kr(t,n){return lt().set(t,n),n}function Rr(t){return lt().has(t)}function Or(){return lt()}function Cr(t,n=!1,r){var e=i={p:i,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};pt&&!n&&(i.l={s:null,u:null,r1:[],r2:wt(!1)}),On(()=>{e.d=!0})}function Dr(t){const n=i;if(n!==null){t!==void 0&&(n.x=t);const l=n.e;if(l!==null){var r=_,e=o;n.e=null;try{for(var s=0;s<l.length;s++){var a=l[s];tt(a.effect),Q(a.reaction),jt(a.fn)}}finally{tt(r),Q(e)}}i=n.p,n.m=!0}return t||{}}function at(){return!pt||i!==null&&i.l===null}function lt(t){return i===null&&mn(),i.c??(i.c=new Map(bn(i)||void 0))}function bn(t){let n=t.p;for(;n!==null;){const r=n.c;if(r!==null)return r;n=n.p}return null}const j=new Map;function wt(t,n){var r={f:0,v:t,reactions:null,equals:Rt,rv:0,wv:0};return r}function Nr(t){return Pt(wt(t))}function Tn(t,n=!1){var e;const r=wt(t);return n||(r.equals=Ct),pt&&i!==null&&i.l!==null&&((e=i.l).s??(e.s=[])).push(r),r}function Pr(t,n=!1){return Pt(Tn(t,n))}function Pt(t){return o!==null&&!E&&o.f&g&&(T===null?Fn([t]):T.push(t)),t}function An(t,n){return o!==null&&!E&&at()&&o.f&(g|dt)&&(T===null||!T.includes(t))&&wn(),xn(t,n)}function xn(t,n){if(!t.equals(n)){var r=t.v;$?j.set(t,n):j.set(t,r),t.v=n,t.wv=Xt(),Mt(t,S),at()&&_!==null&&_.f&d&&!(_.f&(x|D))&&(A===null?qn([t]):A.push(t))}return n}function Mt(t,n){var r=t.reactions;if(r!==null)for(var e=at(),s=r.length,a=0;a<s;a++){var l=r[a],u=l.f;u&S||!e&&l===_||(b(l,n),u&(d|y)&&(u&g?Mt(l,N):ft(l)))}}let C=!1;function Mr(t){C=t}let m;function U(t){if(t===null)throw Nt(),Dt;return m=t}function Fr(){return U(P(m))}function qr(t){if(C){if(P(m)!==null)throw Nt(),Dt;m=t}}function Lr(t=1){if(C){for(var n=t,r=m;n--;)r=P(r);m=r}}function Yr(){for(var t=0,n=m;;){if(n.nodeType===8){var r=n.data;if(r===gn){if(t===0)return n;t-=1}else(r===En||r===yn)&&(t+=1)}var e=P(n);n.remove(),n=e}}var Tt,Sn,Ft,qt;function Hr(){if(Tt===void 0){Tt=window,Sn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,n=Node.prototype;Ft=gt(n,"firstChild").get,qt=gt(n,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0}}function ct(t=""){return document.createTextNode(t)}function _t(t){return Ft.call(t)}function P(t){return qt.call(t)}function Br(t,n){if(!C)return _t(t);var r=_t(m);if(r===null)r=m.appendChild(ct());else if(n&&r.nodeType!==3){var e=ct();return r==null||r.before(e),U(e),e}return U(r),r}function jr(t,n){if(!C){var r=_t(t);return r instanceof Comment&&r.data===""?P(r):r}return m}function Ur(t,n=1,r=!1){let e=C?m:t;for(var s;n--;)s=e,e=P(e);if(!C)return e;var a=e==null?void 0:e.nodeType;if(r&&a!==3){var l=ct();return e===null?s==null||s.after(l):e.before(l),U(l),l}return U(e),e}function Vr(t){t.textContent=""}function Lt(t){var n=g|S,r=o!==null&&o.f&g?o:null;return _===null||r!==null&&r.f&y?n|=y:_.f|=kt,{ctx:i,deps:null,effects:null,equals:Rt,f:n,fn:t,reactions:null,rv:0,v:null,wv:0,parent:r??_}}function Gr(t){const n=Lt(t);return n.equals=Ct,n}function Yt(t){var n=t.effects;if(n!==null){t.effects=null;for(var r=0;r<n.length;r+=1)R(n[r])}}function In(t){for(var n=t.parent;n!==null;){if(!(n.f&g))return n;n=n.parent}return null}function kn(t){var n,r=_;tt(In(t));try{Yt(t),n=Qt(t)}finally{tt(r)}return n}function Ht(t){var n=kn(t),r=(k||t.f&y)&&t.deps!==null?N:d;b(t,r),t.equals(n)||(t.v=n,t.wv=Xt())}function Bt(t){_===null&&o===null&&pn(),o!==null&&o.f&y&&_===null&&vn(),$&&_n()}function Rn(t,n){var r=n.last;r===null?n.last=n.first=t:(r.next=t,t.prev=r,n.last=t)}function M(t,n,r,e=!0){var s=_,a={ctx:i,deps:null,nodes_start:null,nodes_end:null,f:t|S,first:null,fn:n,last:null,next:null,parent:s,prev:null,teardown:null,transitions:null,wv:0};if(r)try{ot(a),a.f|=fn}catch(c){throw R(a),c}else n!==null&&ft(a);var l=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(kt|Z))===0;if(!l&&e&&(s!==null&&Rn(a,s),o!==null&&o.f&g)){var u=o;(u.effects??(u.effects=[])).push(a)}return a}function $r(){return o!==null&&!E}function On(t){const n=M(et,null,!1);return b(n,d),n.teardown=t,n}function zr(t){Bt();var n=_!==null&&(_.f&x)!==0&&i!==null&&!i.m;if(n){var r=i;(r.e??(r.e=[])).push({fn:t,effect:_,reaction:o})}else{var e=jt(t);return e}}function Kr(t){return Bt(),Et(t)}function Zr(t){const n=M(D,t,!0);return()=>{R(n)}}function Wr(t){const n=M(D,t,!0);return(r={})=>new Promise(e=>{r.outro?Nn(n,()=>{R(n),e(void 0)}):(R(n),e(void 0))})}function jt(t){return M(St,t,!1)}function Xr(t,n){var r=i,e={effect:null,ran:!1};r.l.r1.push(e),e.effect=Et(()=>{t(),!e.ran&&(e.ran=!0,An(r.l.r2,!0),rn(n))})}function Jr(){var t=i;Et(()=>{if(nn(t.l.r2)){for(var n of t.l.r1){var r=n.effect;r.f&d&&b(r,N),H(r)&&ot(r),n.ran=!1}t.l.r2.v=!1}})}function Et(t){return M(et,t,!0)}function Qr(t,n=[],r=Lt){const e=n.map(r);return Cn(()=>t(...e.map(nn)))}function Cn(t,n=0){return M(et|dt|n,t,!0)}function te(t,n=!0){return M(et|x,t,!0,n)}function Ut(t){var n=t.teardown;if(n!==null){const r=$,e=o;xt(!0),Q(null);try{n.call(null)}finally{xt(r),Q(e)}}}function Vt(t,n=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var e=r.next;r.f&D?r.parent=null:R(r,n),r=e}}function Dn(t){for(var n=t.first;n!==null;){var r=n.next;n.f&x||R(n),n=r}}function R(t,n=!0){var r=!1;if((n||t.f&cn)&&t.nodes_start!==null){for(var e=t.nodes_start,s=t.nodes_end;e!==null;){var a=e===s?null:P(e);e.remove(),e=a}r=!0}Vt(t,n&&!r),rt(t,0),b(t,st);var l=t.transitions;if(l!==null)for(const c of l)c.stop();Ut(t);var u=t.parent;u!==null&&u.first!==null&&Gt(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Gt(t){var n=t.parent,r=t.prev,e=t.next;r!==null&&(r.next=e),e!==null&&(e.prev=r),n!==null&&(n.first===t&&(n.first=e),n.last===t&&(n.last=r))}function Nn(t,n){var r=[];$t(t,r,!0),Pn(r,()=>{R(t),n&&n()})}function Pn(t,n){var r=t.length;if(r>0){var e=()=>--r||n();for(var s of t)s.out(e)}else n()}function $t(t,n,r){if(!(t.f&Y)){if(t.f^=Y,t.transitions!==null)for(const l of t.transitions)(l.is_global||r)&&n.push(l);for(var e=t.first;e!==null;){var s=e.next,a=(e.f&It)!==0||(e.f&x)!==0;$t(e,n,a?r:!1),e=s}}}function ne(t){zt(t,!0)}function zt(t,n){if(t.f&Y){t.f^=Y,t.f&d||(t.f^=d),H(t)&&(b(t,S),ft(t));for(var r=t.first;r!==null;){var e=r.next,s=(r.f&It)!==0||(r.f&x)!==0;zt(r,s?n:!1),r=e}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||n)&&a.in()}}const Mn=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let V=[],G=[];function Kt(){var t=V;V=[],ht(t)}function Zt(){var t=G;G=[],ht(t)}function re(t){V.length===0&&queueMicrotask(Kt),V.push(t)}function ee(t){G.length===0&&Mn(Zt),G.push(t)}function At(){V.length>0&&Kt(),G.length>0&&Zt()}let K=!1,X=!1,J=null,O=!1,$=!1;function xt(t){$=t}let B=[];let o=null,E=!1;function Q(t){o=t}let _=null;function tt(t){_=t}let T=null;function Fn(t){T=t}let h=null,w=0,A=null;function qn(t){A=t}let Wt=1,nt=0,k=!1;function Xt(){return++Wt}function H(t){var v;var n=t.f;if(n&S)return!0;if(n&N){var r=t.deps,e=(n&y)!==0;if(r!==null){var s,a,l=(n&W)!==0,u=e&&_!==null&&!k,c=r.length;if(l||u){var f=t,I=f.parent;for(s=0;s<c;s++)a=r[s],(l||!((v=a==null?void 0:a.reactions)!=null&&v.includes(f)))&&(a.reactions??(a.reactions=[])).push(f);l&&(f.f^=W),u&&I!==null&&!(I.f&y)&&(f.f^=y)}for(s=0;s<c;s++)if(a=r[s],H(a)&&Ht(a),a.wv>t.wv)return!0}(!e||_!==null&&!k)&&b(t,d)}return!1}function Ln(t,n){for(var r=n;r!==null;){if(r.f&Z)try{r.fn(t);return}catch{r.f^=Z}r=r.parent}throw K=!1,t}function Yn(t){return(t.f&st)===0&&(t.parent===null||(t.parent.f&Z)===0)}function ut(t,n,r,e){if(K){if(r===null&&(K=!1),Yn(n))throw t;return}r!==null&&(K=!0);{Ln(t,n);return}}function Jt(t,n,r=!0){var e=t.reactions;if(e!==null)for(var s=0;s<e.length;s++){var a=e[s];a.f&g?Jt(a,n,!1):n===a&&(r?b(a,S):a.f&d&&b(a,N),ft(a))}}function Qt(t){var z;var n=h,r=w,e=A,s=o,a=k,l=T,u=i,c=E,f=t.f;h=null,w=0,A=null,k=(f&y)!==0&&(E||!O||o===null),o=f&(x|D)?null:t,T=null,bt(t.ctx),E=!1,nt++;try{var I=(0,t.fn)(),v=t.deps;if(h!==null){var p;if(rt(t,w),v!==null&&w>0)for(v.length=w+h.length,p=0;p<h.length;p++)v[w+p]=h[p];else t.deps=v=h;if(!k)for(p=w;p<v.length;p++)((z=v[p]).reactions??(z.reactions=[])).push(t)}else v!==null&&w<v.length&&(rt(t,w),v.length=w);if(at()&&A!==null&&!E&&v!==null&&!(t.f&(g|N|S)))for(p=0;p<A.length;p++)Jt(A[p],t);return s!==null&&nt++,I}finally{h=n,w=r,A=e,o=s,k=a,T=l,bt(u),E=c}}function Hn(t,n){let r=n.reactions;if(r!==null){var e=ln.call(r,t);if(e!==-1){var s=r.length-1;s===0?r=n.reactions=null:(r[e]=r[s],r.pop())}}r===null&&n.f&g&&(h===null||!h.includes(n))&&(b(n,N),n.f&(y|W)||(n.f^=W),Yt(n),rt(n,0))}function rt(t,n){var r=t.deps;if(r!==null)for(var e=n;e<r.length;e++)Hn(t,r[e])}function ot(t){var n=t.f;if(!(n&st)){b(t,d);var r=_,e=i,s=O;_=t,O=!0;try{n&dt?Dn(t):Vt(t),Ut(t);var a=Qt(t);t.teardown=typeof a=="function"?a:null,t.wv=Wt;var l=t.deps,u;yt&&an&&t.f&S}catch(c){ut(c,t,r,e||t.ctx)}finally{O=s,_=r}}}function Bn(){try{hn()}catch(t){if(J!==null)ut(t,J,null);else throw t}}function tn(){var t=O;try{var n=0;for(O=!0;B.length>0;){n++>1e3&&Bn();var r=B,e=r.length;B=[];for(var s=0;s<e;s++){var a=Un(r[s]);jn(a)}}}finally{X=!1,O=t,J=null,j.clear()}}function jn(t){var n=t.length;if(n!==0)for(var r=0;r<n;r++){var e=t[r];if(!(e.f&(st|Y)))try{H(e)&&(ot(e),e.deps===null&&e.first===null&&e.nodes_start===null&&(e.teardown===null?Gt(e):e.fn=null))}catch(s){ut(s,e,null,e.ctx)}}}function ft(t){X||(X=!0,queueMicrotask(tn));for(var n=J=t;n.parent!==null;){n=n.parent;var r=n.f;if(r&(D|x)){if(!(r&d))return;n.f^=d}}B.push(n)}function Un(t){for(var n=[],r=t;r!==null;){var e=r.f,s=(e&(x|D))!==0,a=s&&(e&d)!==0;if(!a&&!(e&Y)){if(e&St)n.push(r);else if(s)r.f^=d;else{var l=o;try{o=r,H(r)&&ot(r)}catch(f){ut(f,r,null,r.ctx)}finally{o=l}}var u=r.first;if(u!==null){r=u;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)r=c.next,c=c.parent}return n}function Vn(t){var n;for(At();B.length>0;)X=!0,tn(),At();return n}async function se(){await Promise.resolve(),Vn()}function nn(t){var n=t.f,r=(n&g)!==0;if(o!==null&&!E){T!==null&&T.includes(t)&&dn();var e=o.deps;t.rv<nt&&(t.rv=nt,h===null&&e!==null&&e[w]===t?w++:h===null?h=[t]:(!k||!h.includes(t))&&h.push(t))}else if(r&&t.deps===null&&t.effects===null){var s=t,a=s.parent;a!==null&&!(a.f&y)&&(s.f^=y)}return r&&(s=t,H(s)&&Ht(s)),$&&j.has(t)?j.get(t):t.v}function rn(t){var n=E;try{return E=!0,t()}finally{E=n}}const Gn=-7169;function b(t,n){t.f=t.f&Gn|n}function ae(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(mt in t)vt(t);else if(!Array.isArray(t))for(let n in t){const r=t[n];typeof r=="object"&&r&&mt in r&&vt(r)}}}function vt(t,n=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!n.has(t)){n.add(t),t instanceof Date&&t.getTime();for(let e in t)try{vt(t[e],n)}catch{}const r=on(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=un(r);for(let s in e){const a=e[s].get;if(a)try{a.call(t)}catch{}}}}}function en(t,n,r){if(t==null)return n(void 0),r&&r(void 0),L;const e=rn(()=>t.subscribe(n,r));return e.unsubscribe?()=>e.unsubscribe():e}const q=[];function $n(t,n){return{subscribe:zn(t,n).subscribe}}function zn(t,n=L){let r=null;const e=new Set;function s(u){if(Ot(t,u)&&(t=u,r)){const c=!q.length;for(const f of e)f[1](),q.push(f,t);if(c){for(let f=0;f<q.length;f+=2)q[f][0](q[f+1]);q.length=0}}}function a(u){s(u(t))}function l(u,c=L){const f=[u,c];return e.add(f),e.size===1&&(r=n(s,a)||L),u(t),()=>{e.delete(f),e.size===0&&r&&(r(),r=null)}}return{set:s,update:a,subscribe:l}}function le(t,n,r){const e=!Array.isArray(t),s=e?[t]:t;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=n.length<2;return $n(r,(l,u)=>{let c=!1;const f=[];let I=0,v=L;const p=()=>{if(I)return;v();const F=n(e?f[0]:f,l,u);a?l(F):v=typeof F=="function"?F:L},z=s.map((F,it)=>en(F,sn=>{f[it]=sn,I&=~(1<<it),c&&p()},()=>{I|=1<<it}));return c=!0,p(),function(){ht(z),v(),c=!1}})}function ue(t){return{subscribe:t.subscribe.bind(t)}}function oe(t){let n;return en(t,r=>n=r)(),n}export{Tt as $,Fr as A,yn as B,Yr as C,U as D,It as E,Mr as F,ne as G,En as H,Nn as I,Tn as J,en as K,An as L,On as M,Xn as N,ct as O,_t as P,Sn as Q,_ as R,Tr as S,br as T,Ar as U,Nr as V,cn as W,P as X,Hr as Y,Dt as Z,gn as _,Dr as a,fn as a$,Nt as a0,ur as a1,Vr as a2,Wn as a3,Wr as a4,re as a5,Q as a6,tt as a7,o as a8,Zn as a9,$n as aA,kr as aB,yt as aC,Xr as aD,Jr as aE,Rr as aF,mn as aG,at as aH,nr as aI,xn as aJ,bt as aK,lr as aL,Ot as aM,Y as aN,_r as aO,$t as aP,Pn as aQ,cr as aR,hr as aS,vr as aT,pr as aU,Sr as aV,ar as aW,xr as aX,ee as aY,un as aZ,dt as a_,mt as aa,Jn as ab,Qn as ac,wt as ad,ir as ae,gt as af,fr as ag,on as ah,jt as ai,Et as aj,or as ak,er as al,Gr as am,Er as an,Ct as ao,yr as ap,sr as aq,wr as ar,dr as as,gr as at,tr as au,Vn as av,se as aw,Lr as ax,Pr as ay,Ir as az,i as b,mr as b0,$r as b1,Or as b2,Zr as b3,Br as c,Lt as d,Kr as e,jr as f,nn as g,ht as h,rn as i,rr as j,ae as k,oe as l,ue as m,L as n,Cn as o,Cr as p,te as q,qr as r,Ur as s,Qr as t,zr as u,R as v,zn as w,C as x,m as y,le as z};
|
|
1
|
+
import{l as pt,t as an}from"./DIeogL5L.js";const yt=!1;var Zn=Array.isArray,ln=Array.prototype.indexOf,Wn=Array.from,Xn=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,un=Object.getOwnPropertyDescriptors,Jn=Object.prototype,Qn=Array.prototype,on=Object.getPrototypeOf;function tr(t){return typeof t=="function"}const L=()=>{};function nr(t){return typeof(t==null?void 0:t.then)=="function"}function rr(t){return t()}function ht(t){for(var n=0;n<t.length;n++)t[n]()}const g=2,St=4,et=8,dt=16,x=32,D=64,Z=128,y=256,W=512,d=1024,S=2048,N=4096,Y=8192,st=16384,fn=32768,It=65536,er=1<<17,cn=1<<19,kt=1<<20,mt=Symbol("$state"),sr=Symbol("legacy props"),ar=Symbol("");function Rt(t){return t===this.v}function Ot(t,n){return t!=t?n==n:t!==n||t!==null&&typeof t=="object"||typeof t=="function"}function lr(t,n){return t!==n}function Ct(t){return!Ot(t,this.v)}function _n(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function vn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ur(){throw new Error("https://svelte.dev/e/hydration_failed")}function or(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ir(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function dn(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function wn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const cr=1,_r=2,vr=4,pr=8,hr=16,dr=1,wr=2,Er=4,yr=8,gr=16,mr=4,br=1,Tr=2,En="[",yn="[!",gn="]",Dt={},Ar=Symbol(),xr="http://www.w3.org/1999/xhtml",Sr="http://www.w3.org/2000/svg";function Nt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function mn(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let i=null;function bt(t){i=t}function Ir(t){return lt().get(t)}function kr(t,n){return lt().set(t,n),n}function Rr(t){return lt().has(t)}function Or(){return lt()}function Cr(t,n=!1,r){var e=i={p:i,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};pt&&!n&&(i.l={s:null,u:null,r1:[],r2:wt(!1)}),On(()=>{e.d=!0})}function Dr(t){const n=i;if(n!==null){t!==void 0&&(n.x=t);const l=n.e;if(l!==null){var r=_,e=o;n.e=null;try{for(var s=0;s<l.length;s++){var a=l[s];tt(a.effect),Q(a.reaction),jt(a.fn)}}finally{tt(r),Q(e)}}i=n.p,n.m=!0}return t||{}}function at(){return!pt||i!==null&&i.l===null}function lt(t){return i===null&&mn(),i.c??(i.c=new Map(bn(i)||void 0))}function bn(t){let n=t.p;for(;n!==null;){const r=n.c;if(r!==null)return r;n=n.p}return null}const j=new Map;function wt(t,n){var r={f:0,v:t,reactions:null,equals:Rt,rv:0,wv:0};return r}function Nr(t){return Pt(wt(t))}function Tn(t,n=!1){var e;const r=wt(t);return n||(r.equals=Ct),pt&&i!==null&&i.l!==null&&((e=i.l).s??(e.s=[])).push(r),r}function Pr(t,n=!1){return Pt(Tn(t,n))}function Pt(t){return o!==null&&!E&&o.f&g&&(T===null?Fn([t]):T.push(t)),t}function An(t,n){return o!==null&&!E&&at()&&o.f&(g|dt)&&(T===null||!T.includes(t))&&wn(),xn(t,n)}function xn(t,n){if(!t.equals(n)){var r=t.v;$?j.set(t,n):j.set(t,r),t.v=n,t.wv=Xt(),Mt(t,S),at()&&_!==null&&_.f&d&&!(_.f&(x|D))&&(A===null?qn([t]):A.push(t))}return n}function Mt(t,n){var r=t.reactions;if(r!==null)for(var e=at(),s=r.length,a=0;a<s;a++){var l=r[a],u=l.f;u&S||!e&&l===_||(b(l,n),u&(d|y)&&(u&g?Mt(l,N):ft(l)))}}let C=!1;function Mr(t){C=t}let m;function U(t){if(t===null)throw Nt(),Dt;return m=t}function Fr(){return U(P(m))}function qr(t){if(C){if(P(m)!==null)throw Nt(),Dt;m=t}}function Lr(t=1){if(C){for(var n=t,r=m;n--;)r=P(r);m=r}}function Yr(){for(var t=0,n=m;;){if(n.nodeType===8){var r=n.data;if(r===gn){if(t===0)return n;t-=1}else(r===En||r===yn)&&(t+=1)}var e=P(n);n.remove(),n=e}}var Tt,Sn,Ft,qt;function Hr(){if(Tt===void 0){Tt=window,Sn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,n=Node.prototype;Ft=gt(n,"firstChild").get,qt=gt(n,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0}}function ct(t=""){return document.createTextNode(t)}function _t(t){return Ft.call(t)}function P(t){return qt.call(t)}function Br(t,n){if(!C)return _t(t);var r=_t(m);if(r===null)r=m.appendChild(ct());else if(n&&r.nodeType!==3){var e=ct();return r==null||r.before(e),U(e),e}return U(r),r}function jr(t,n){if(!C){var r=_t(t);return r instanceof Comment&&r.data===""?P(r):r}return m}function Ur(t,n=1,r=!1){let e=C?m:t;for(var s;n--;)s=e,e=P(e);if(!C)return e;var a=e==null?void 0:e.nodeType;if(r&&a!==3){var l=ct();return e===null?s==null||s.after(l):e.before(l),U(l),l}return U(e),e}function Vr(t){t.textContent=""}function Lt(t){var n=g|S,r=o!==null&&o.f&g?o:null;return _===null||r!==null&&r.f&y?n|=y:_.f|=kt,{ctx:i,deps:null,effects:null,equals:Rt,f:n,fn:t,reactions:null,rv:0,v:null,wv:0,parent:r??_}}function Gr(t){const n=Lt(t);return n.equals=Ct,n}function Yt(t){var n=t.effects;if(n!==null){t.effects=null;for(var r=0;r<n.length;r+=1)R(n[r])}}function In(t){for(var n=t.parent;n!==null;){if(!(n.f&g))return n;n=n.parent}return null}function kn(t){var n,r=_;tt(In(t));try{Yt(t),n=Qt(t)}finally{tt(r)}return n}function Ht(t){var n=kn(t),r=(k||t.f&y)&&t.deps!==null?N:d;b(t,r),t.equals(n)||(t.v=n,t.wv=Xt())}function Bt(t){_===null&&o===null&&pn(),o!==null&&o.f&y&&_===null&&vn(),$&&_n()}function Rn(t,n){var r=n.last;r===null?n.last=n.first=t:(r.next=t,t.prev=r,n.last=t)}function M(t,n,r,e=!0){var s=_,a={ctx:i,deps:null,nodes_start:null,nodes_end:null,f:t|S,first:null,fn:n,last:null,next:null,parent:s,prev:null,teardown:null,transitions:null,wv:0};if(r)try{ot(a),a.f|=fn}catch(c){throw R(a),c}else n!==null&&ft(a);var l=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(kt|Z))===0;if(!l&&e&&(s!==null&&Rn(a,s),o!==null&&o.f&g)){var u=o;(u.effects??(u.effects=[])).push(a)}return a}function $r(){return o!==null&&!E}function On(t){const n=M(et,null,!1);return b(n,d),n.teardown=t,n}function zr(t){Bt();var n=_!==null&&(_.f&x)!==0&&i!==null&&!i.m;if(n){var r=i;(r.e??(r.e=[])).push({fn:t,effect:_,reaction:o})}else{var e=jt(t);return e}}function Kr(t){return Bt(),Et(t)}function Zr(t){const n=M(D,t,!0);return()=>{R(n)}}function Wr(t){const n=M(D,t,!0);return(r={})=>new Promise(e=>{r.outro?Nn(n,()=>{R(n),e(void 0)}):(R(n),e(void 0))})}function jt(t){return M(St,t,!1)}function Xr(t,n){var r=i,e={effect:null,ran:!1};r.l.r1.push(e),e.effect=Et(()=>{t(),!e.ran&&(e.ran=!0,An(r.l.r2,!0),rn(n))})}function Jr(){var t=i;Et(()=>{if(nn(t.l.r2)){for(var n of t.l.r1){var r=n.effect;r.f&d&&b(r,N),H(r)&&ot(r),n.ran=!1}t.l.r2.v=!1}})}function Et(t){return M(et,t,!0)}function Qr(t,n=[],r=Lt){const e=n.map(r);return Cn(()=>t(...e.map(nn)))}function Cn(t,n=0){return M(et|dt|n,t,!0)}function te(t,n=!0){return M(et|x,t,!0,n)}function Ut(t){var n=t.teardown;if(n!==null){const r=$,e=o;xt(!0),Q(null);try{n.call(null)}finally{xt(r),Q(e)}}}function Vt(t,n=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var e=r.next;r.f&D?r.parent=null:R(r,n),r=e}}function Dn(t){for(var n=t.first;n!==null;){var r=n.next;n.f&x||R(n),n=r}}function R(t,n=!0){var r=!1;if((n||t.f&cn)&&t.nodes_start!==null){for(var e=t.nodes_start,s=t.nodes_end;e!==null;){var a=e===s?null:P(e);e.remove(),e=a}r=!0}Vt(t,n&&!r),rt(t,0),b(t,st);var l=t.transitions;if(l!==null)for(const c of l)c.stop();Ut(t);var u=t.parent;u!==null&&u.first!==null&&Gt(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Gt(t){var n=t.parent,r=t.prev,e=t.next;r!==null&&(r.next=e),e!==null&&(e.prev=r),n!==null&&(n.first===t&&(n.first=e),n.last===t&&(n.last=r))}function Nn(t,n){var r=[];$t(t,r,!0),Pn(r,()=>{R(t),n&&n()})}function Pn(t,n){var r=t.length;if(r>0){var e=()=>--r||n();for(var s of t)s.out(e)}else n()}function $t(t,n,r){if(!(t.f&Y)){if(t.f^=Y,t.transitions!==null)for(const l of t.transitions)(l.is_global||r)&&n.push(l);for(var e=t.first;e!==null;){var s=e.next,a=(e.f&It)!==0||(e.f&x)!==0;$t(e,n,a?r:!1),e=s}}}function ne(t){zt(t,!0)}function zt(t,n){if(t.f&Y){t.f^=Y,t.f&d||(t.f^=d),H(t)&&(b(t,S),ft(t));for(var r=t.first;r!==null;){var e=r.next,s=(r.f&It)!==0||(r.f&x)!==0;zt(r,s?n:!1),r=e}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||n)&&a.in()}}const Mn=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let V=[],G=[];function Kt(){var t=V;V=[],ht(t)}function Zt(){var t=G;G=[],ht(t)}function re(t){V.length===0&&queueMicrotask(Kt),V.push(t)}function ee(t){G.length===0&&Mn(Zt),G.push(t)}function At(){V.length>0&&Kt(),G.length>0&&Zt()}let K=!1,X=!1,J=null,O=!1,$=!1;function xt(t){$=t}let B=[];let o=null,E=!1;function Q(t){o=t}let _=null;function tt(t){_=t}let T=null;function Fn(t){T=t}let h=null,w=0,A=null;function qn(t){A=t}let Wt=1,nt=0,k=!1;function Xt(){return++Wt}function H(t){var v;var n=t.f;if(n&S)return!0;if(n&N){var r=t.deps,e=(n&y)!==0;if(r!==null){var s,a,l=(n&W)!==0,u=e&&_!==null&&!k,c=r.length;if(l||u){var f=t,I=f.parent;for(s=0;s<c;s++)a=r[s],(l||!((v=a==null?void 0:a.reactions)!=null&&v.includes(f)))&&(a.reactions??(a.reactions=[])).push(f);l&&(f.f^=W),u&&I!==null&&!(I.f&y)&&(f.f^=y)}for(s=0;s<c;s++)if(a=r[s],H(a)&&Ht(a),a.wv>t.wv)return!0}(!e||_!==null&&!k)&&b(t,d)}return!1}function Ln(t,n){for(var r=n;r!==null;){if(r.f&Z)try{r.fn(t);return}catch{r.f^=Z}r=r.parent}throw K=!1,t}function Yn(t){return(t.f&st)===0&&(t.parent===null||(t.parent.f&Z)===0)}function ut(t,n,r,e){if(K){if(r===null&&(K=!1),Yn(n))throw t;return}r!==null&&(K=!0);{Ln(t,n);return}}function Jt(t,n,r=!0){var e=t.reactions;if(e!==null)for(var s=0;s<e.length;s++){var a=e[s];a.f&g?Jt(a,n,!1):n===a&&(r?b(a,S):a.f&d&&b(a,N),ft(a))}}function Qt(t){var z;var n=h,r=w,e=A,s=o,a=k,l=T,u=i,c=E,f=t.f;h=null,w=0,A=null,k=(f&y)!==0&&(E||!O||o===null),o=f&(x|D)?null:t,T=null,bt(t.ctx),E=!1,nt++;try{var I=(0,t.fn)(),v=t.deps;if(h!==null){var p;if(rt(t,w),v!==null&&w>0)for(v.length=w+h.length,p=0;p<h.length;p++)v[w+p]=h[p];else t.deps=v=h;if(!k)for(p=w;p<v.length;p++)((z=v[p]).reactions??(z.reactions=[])).push(t)}else v!==null&&w<v.length&&(rt(t,w),v.length=w);if(at()&&A!==null&&!E&&v!==null&&!(t.f&(g|N|S)))for(p=0;p<A.length;p++)Jt(A[p],t);return s!==null&&nt++,I}finally{h=n,w=r,A=e,o=s,k=a,T=l,bt(u),E=c}}function Hn(t,n){let r=n.reactions;if(r!==null){var e=ln.call(r,t);if(e!==-1){var s=r.length-1;s===0?r=n.reactions=null:(r[e]=r[s],r.pop())}}r===null&&n.f&g&&(h===null||!h.includes(n))&&(b(n,N),n.f&(y|W)||(n.f^=W),Yt(n),rt(n,0))}function rt(t,n){var r=t.deps;if(r!==null)for(var e=n;e<r.length;e++)Hn(t,r[e])}function ot(t){var n=t.f;if(!(n&st)){b(t,d);var r=_,e=i,s=O;_=t,O=!0;try{n&dt?Dn(t):Vt(t),Ut(t);var a=Qt(t);t.teardown=typeof a=="function"?a:null,t.wv=Wt;var l=t.deps,u;yt&&an&&t.f&S}catch(c){ut(c,t,r,e||t.ctx)}finally{O=s,_=r}}}function Bn(){try{hn()}catch(t){if(J!==null)ut(t,J,null);else throw t}}function tn(){var t=O;try{var n=0;for(O=!0;B.length>0;){n++>1e3&&Bn();var r=B,e=r.length;B=[];for(var s=0;s<e;s++){var a=Un(r[s]);jn(a)}}}finally{X=!1,O=t,J=null,j.clear()}}function jn(t){var n=t.length;if(n!==0)for(var r=0;r<n;r++){var e=t[r];if(!(e.f&(st|Y)))try{H(e)&&(ot(e),e.deps===null&&e.first===null&&e.nodes_start===null&&(e.teardown===null?Gt(e):e.fn=null))}catch(s){ut(s,e,null,e.ctx)}}}function ft(t){X||(X=!0,queueMicrotask(tn));for(var n=J=t;n.parent!==null;){n=n.parent;var r=n.f;if(r&(D|x)){if(!(r&d))return;n.f^=d}}B.push(n)}function Un(t){for(var n=[],r=t;r!==null;){var e=r.f,s=(e&(x|D))!==0,a=s&&(e&d)!==0;if(!a&&!(e&Y)){if(e&St)n.push(r);else if(s)r.f^=d;else{var l=o;try{o=r,H(r)&&ot(r)}catch(f){ut(f,r,null,r.ctx)}finally{o=l}}var u=r.first;if(u!==null){r=u;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)r=c.next,c=c.parent}return n}function Vn(t){var n;for(At();B.length>0;)X=!0,tn(),At();return n}async function se(){await Promise.resolve(),Vn()}function nn(t){var n=t.f,r=(n&g)!==0;if(o!==null&&!E){T!==null&&T.includes(t)&&dn();var e=o.deps;t.rv<nt&&(t.rv=nt,h===null&&e!==null&&e[w]===t?w++:h===null?h=[t]:(!k||!h.includes(t))&&h.push(t))}else if(r&&t.deps===null&&t.effects===null){var s=t,a=s.parent;a!==null&&!(a.f&y)&&(s.f^=y)}return r&&(s=t,H(s)&&Ht(s)),$&&j.has(t)?j.get(t):t.v}function rn(t){var n=E;try{return E=!0,t()}finally{E=n}}const Gn=-7169;function b(t,n){t.f=t.f&Gn|n}function ae(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(mt in t)vt(t);else if(!Array.isArray(t))for(let n in t){const r=t[n];typeof r=="object"&&r&&mt in r&&vt(r)}}}function vt(t,n=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!n.has(t)){n.add(t),t instanceof Date&&t.getTime();for(let e in t)try{vt(t[e],n)}catch{}const r=on(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=un(r);for(let s in e){const a=e[s].get;if(a)try{a.call(t)}catch{}}}}}function en(t,n,r){if(t==null)return n(void 0),r&&r(void 0),L;const e=rn(()=>t.subscribe(n,r));return e.unsubscribe?()=>e.unsubscribe():e}const q=[];function $n(t,n){return{subscribe:zn(t,n).subscribe}}function zn(t,n=L){let r=null;const e=new Set;function s(u){if(Ot(t,u)&&(t=u,r)){const c=!q.length;for(const f of e)f[1](),q.push(f,t);if(c){for(let f=0;f<q.length;f+=2)q[f][0](q[f+1]);q.length=0}}}function a(u){s(u(t))}function l(u,c=L){const f=[u,c];return e.add(f),e.size===1&&(r=n(s,a)||L),u(t),()=>{e.delete(f),e.size===0&&r&&(r(),r=null)}}return{set:s,update:a,subscribe:l}}function le(t,n,r){const e=!Array.isArray(t),s=e?[t]:t;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=n.length<2;return $n(r,(l,u)=>{let c=!1;const f=[];let I=0,v=L;const p=()=>{if(I)return;v();const F=n(e?f[0]:f,l,u);a?l(F):v=typeof F=="function"?F:L},z=s.map((F,it)=>en(F,sn=>{f[it]=sn,I&=~(1<<it),c&&p()},()=>{I|=1<<it}));return c=!0,p(),function(){ht(z),v(),c=!1}})}function ue(t){return{subscribe:t.subscribe.bind(t)}}function oe(t){let n;return en(t,r=>n=r)(),n}export{Tt as $,Mr as A,ne as B,te as C,Nn as D,It as E,m as F,Tn as G,En as H,en as I,An as J,On as K,Xn as L,ct as M,_t as N,Sn as O,_ as P,Tr as Q,cn as R,P as S,br as T,Ar as U,Hr as V,Dt as W,gn as X,Nt as Y,ur as Z,Vr as _,Dr as a,fn as a$,Wn as a0,Wr as a1,re as a2,Q as a3,tt as a4,o as a5,Zn as a6,Nr as a7,mt as a8,Jn as a9,kr as aA,Pr as aB,yt as aC,Xr as aD,Jr as aE,Rr as aF,mn as aG,at as aH,nr as aI,xn as aJ,bt as aK,lr as aL,Ot as aM,Y as aN,_r as aO,$t as aP,Pn as aQ,cr as aR,hr as aS,vr as aT,pr as aU,Sr as aV,ar as aW,xr as aX,ee as aY,un as aZ,dt as a_,Qn as aa,wt as ab,ir as ac,gt as ad,fr as ae,on as af,jt as ag,Et as ah,or as ai,er as aj,Gr as ak,Er as al,Ct as am,yr as an,sr as ao,wr as ap,dr as aq,gr as ar,tr as as,R as at,le as au,Vn as av,se as aw,Lr as ax,Ir as ay,$n as az,i as b,mr as b0,$r as b1,Or as b2,Zr as b3,Br as c,Lt as d,Kr as e,jr as f,nn as g,ht as h,rn as i,rr as j,ae as k,oe as l,ue as m,L as n,Cn as o,Cr as p,C as q,qr as r,Ur as s,Qr as t,zr as u,Fr as v,zn as w,yn as x,Yr as y,U as z};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Bsi3UGy5.js → Df3aMO5B.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t,p as r}from"./
|
|
1
|
+
import{s as t,p as r}from"./2O287xak.js";const e={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}};t.updated.check;const s=e;export{s as p};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{hQVEETDE.js → DkR_EZ_B.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as s,m as l}from"./
|
|
1
|
+
import{w as s,m as l}from"./DcGCxgpH.js";import{c as n}from"./C0JiMuYn.js";const a=s(!1),i=()=>({isMetricsPanelOpen:a,openMetricsPanel:()=>a.set(!0),closeMetricsPanel:()=>a.set(!1),toggleMetricsPanel:()=>a.update(e=>!e)}),u=()=>{const e=s([]),r=s(null);return n.GET("/api/features").then(t=>{t.data&&e.set(t.data)}).catch(t=>{r.set(t)}),{error:r,featureFlags:l(e)}};export{u as a,i as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as D,q as _,v as U,E as y,H as F,x as H,y as L,z as O,A as I,B as T,C as A,D as E,U as h,F as k,n as N,G as q,I as C,J as Y,l as w,g as z,K as B,L as G}from"./DcGCxgpH.js";function K(e,a,[n,s]=[0,0]){_&&n===0&&U();var u=e,t=null,f=null,r=h,m=n>0?y:0,c=!1;const R=(o,i=!0)=>{c=!0,g(i,o)},g=(o,i)=>{if(r===(r=o))return;let p=!1;if(_&&s!==-1){if(n===0){const b=u.data;b===F?s=0:b===H?s=1/0:(s=parseInt(b.substring(1)),s!==s&&(s=r?1/0:-1))}const S=s>n;!!r===S&&(u=L(),O(u),I(!1),p=!0,s=-1)}r?(t?T(t):i&&(t=A(()=>i(u))),f&&E(f,()=>{f=null})):(f?T(f):i&&(f=A(()=>i(u,[n+1,s]))),t&&E(t,()=>{t=null})),p&&I(!0)};D(()=>{c=!1,a(R),c||g(null,null)},m),_&&(u=k)}let l=!1,v=Symbol();function M(e,a,n){const s=n[a]??(n[a]={store:null,source:q(void 0),unsubscribe:N});if(s.store!==e&&!(v in n))if(s.unsubscribe(),s.store=e??null,e==null)s.source.v=void 0,s.unsubscribe=N;else{var u=!0;s.unsubscribe=C(e,t=>{u?s.source.v=t:Y(s.source,t)}),u=!1}return e&&v in n?w(e):z(s.source)}function P(e,a){return e.set(a),a}function Z(){const e={};function a(){B(()=>{for(var n in e)e[n].unsubscribe();G(e,v,{enumerable:!1,value:!0})})}return[e,a]}function $(){l=!0}function d(e){var a=l;try{return l=!1,[e(),l]}finally{l=a}}export{M as a,P as b,d as c,K as i,$ as m,Z as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{M as S,o as D,R as M,q as _,H as V,S as T,A as f,z as v,F as u,N as I,V as w,W as g,v as O,X as P,Y as H,Z as F,_ as W,a0 as Y,a1 as j,C as z,p as X,b as $,P as q,a as x}from"./DcGCxgpH.js";import{a as B,r as N,h as y}from"./C98Hk3r5.js";import{b as G}from"./Crk-jcvV.js";function oe(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const U=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function se(e){return U.includes(e)}const Z={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 ie(e){return e=e.toLowerCase(),Z[e]??e}const J=["touchstart","touchmove"];function K(e){return J.includes(e)}const Q=["textarea","script","style","title"];function de(e){return Q.includes(e)}let r;function ee(){r=void 0}function ue(e){let t=null,a=_;var d;if(_){for(t=u,r===void 0&&(r=I(document.head));r!==null&&(r.nodeType!==8||r.data!==V);)r=T(r);r===null?f(!1):r=v(T(r))}_||(d=document.head.appendChild(S()));try{D(()=>e(d),M)}finally{a&&(f(!0),r=u,v(t))}}let A=!0;function le(e){A=e}function ce(e,t){var a=t==null?"":typeof t=="object"?t+"":t;a!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=a,e.nodeValue=a+"")}function te(e,t){return L(e,t)}function fe(e,t){w(),t.intro=t.intro??!1;const a=t.target,d=_,p=u;try{for(var n=I(a);n&&(n.nodeType!==8||n.data!==V);)n=T(n);if(!n)throw g;f(!0),v(n),O();const l=L(e,{...t,anchor:n});if(u===null||u.nodeType!==8||u.data!==P)throw H(),g;return f(!1),l}catch(l){if(l===g)return t.recover===!1&&F(),w(),W(a),f(!1),te(e,t);throw l}finally{f(d),v(p),ee()}}const c=new Map;function L(e,{target:t,anchor:a,props:d={},events:p,context:n,intro:l=!0}){w();var m=new Set,E=i=>{for(var o=0;o<i.length;o++){var s=i[o];if(!m.has(s)){m.add(s);var h=K(s);t.addEventListener(s,y,{passive:h});var k=c.get(s);k===void 0?(document.addEventListener(s,y,{passive:h}),c.set(s,1)):c.set(s,k+1)}}};E(Y(B)),N.add(E);var b=void 0,C=j(()=>{var i=a??t.appendChild(S());return z(()=>{if(n){X({});var o=$;o.c=n}p&&(d.$$events=p),_&&G(i,null),A=l,b=e(i,d)||{},A=!0,_&&(q.nodes_end=u),n&&x()}),()=>{var h;for(var o of m){t.removeEventListener(o,y);var s=c.get(o);--s===0?(document.removeEventListener(o,y),c.delete(o)):c.set(o,s)}N.delete(E),i!==a&&((h=i.parentNode)==null||h.removeChild(i))}});return R.set(b,C),b}let R=new WeakMap;function _e(e,t){const a=R.get(e);return a?(R.delete(e),a(t)):Promise.resolve()}export{ue as a,le as b,oe as c,se as d,A as e,fe as h,de as i,te as m,ie as n,ce as s,_e as u};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var k=Object.defineProperty;var w=t=>{throw TypeError(t)};var V=(t,r,e)=>r in t?k(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var v=(t,r,e)=>V(t,typeof r!="symbol"?r+"":r,e),B=(t,r,e)=>r.has(t)||w("Cannot "+e);var R=(t,r,e)=>(B(t,r,"read from private field"),e?e.call(t):r.get(t)),x=(t,r,e)=>r.has(t)?w("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e);import"./CWj6FrbW.js";import{d as j,g,p as O,f as _,a as F,c as E,n as H,r as M,t as U}from"./DcGCxgpH.js";import{c as A,a as u,t as q}from"./Crk-jcvV.js";import{p as c,r as P,c as C,s as G}from"./D8GZDMNN.js";import{u as J,g as K,a as L,b as Q,c as W,d,s as X,m as Y,e as Z}from"./BRnH9v23.js";import{i as $}from"./DqUGznj_.js";import{s as I}from"./C0JiMuYn.js";const tt="data-separator-root";var h;class rt{constructor(r){v(this,"opts");x(this,h,j(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":Q(this.opts.orientation.current),"aria-hidden":L(this.opts.decorative.current),"data-orientation":K(this.opts.orientation.current),[tt]:""})));this.opts=r,J(r)}get props(){return g(R(this,h))}}h=new WeakMap;function et(t){return new rt(t)}var ot=q("<div><!></div>");function nt(t,r){O(r,!0);let e=c(r,"id",19,W),s=c(r,"ref",15,null),n=c(r,"decorative",3,!1),o=c(r,"orientation",3,"horizontal"),b=P(r,["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]);const y=et({ref:d.with(()=>s(),i=>s(i)),id:d.with(()=>e()),decorative:d.with(()=>n()),orientation:d.with(()=>o())}),f=j(()=>Y(b,y.props));var m=A(),S=_(m);{var z=i=>{var a=A(),p=_(a);I(p,()=>r.child,()=>({props:g(f)})),u(i,a)},D=i=>{var a=ot();let p;var N=E(a);I(N,()=>r.children??H),M(a),U(()=>p=X(a,p,{...g(f)})),u(i,a)};$(S,i=>{r.child?i(z):i(D,!1)})}u(t,m),F()}const T="en-US",it=t=>new Intl.NumberFormat(T,{}).format(t).toString(),at=(t,r=3,e=0)=>new Intl.NumberFormat(T,{maximumFractionDigits:r,minimumFractionDigits:e}).format(t).toString(),l=t=>{if(t==null)return"null";if(typeof t=="string")return t;if(typeof t=="number")return Number.isInteger(t)?it(t):at(t);if(typeof t=="boolean")return t?"true":"false";if(Array.isArray(t))return t.length===0?"[]":t.length<=3&&t.every(r=>typeof r!="object"||r===null)?`[${t.map(r=>l(r)).join(", ")}]`:`[${t.map(e=>l(e)).join(", ")}]`;if(typeof t=="object"&&t!==null&&!Array.isArray(t)){const r=t,e=Object.keys(r);return e.length===0?"{}":e.length<=3&&e.every(n=>{const o=r[n];return typeof o!="object"||o===null||Array.isArray(o)})?`{${e.map(o=>`${o}: ${l(r[o])}`).join(", ")}}`:`{
|
|
2
|
+
${e.map(n=>{const o=l(r[n]);return`${n}: ${o}`}).join(`
|
|
3
|
+
`)}
|
|
4
|
+
}`}return String(t)};function gt(t,r){O(r,!0);let e=c(r,"ref",15,null),s=c(r,"orientation",3,"horizontal"),n=P(r,["$$slots","$$events","$$legacy","ref","class","orientation"]);var o=A(),b=_(o);const y=j(()=>Z("bg-border shrink-0",s()==="horizontal"?"h-[1px] w-full":"min-h-full w-[1px]",r.class));C(b,()=>nt,(f,m)=>{m(f,G({get class(){return g(y)},get orientation(){return s()}},()=>n,{get ref(){return e()},set ref(S){e(S)}}))}),u(t,o),F()}export{gt as S,l as a,at as b,it as f};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{CDnpyLsT.js → OH7-C_mc.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{p as e,f as n,n as l,a as m}from"./
|
|
1
|
+
import"./CWj6FrbW.js";import{p as e,f as n,n as l,a as m}from"./DcGCxgpH.js";import{c as i,a as d}from"./Crk-jcvV.js";import{s as c}from"./C0JiMuYn.js";import{s as f,r as h}from"./D8GZDMNN.js";import{I as $}from"./BRnH9v23.js";function N(t,a){e(a,!0);let s=h(a,["$$slots","$$events","$$legacy"]);$(t,f({name:"component"},()=>s,{iconNode:[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}]],children:(p,z)=>{var o=i(),r=n(o);c(r,()=>a.children??l),d(p,o)},$$slots:{default:!0}})),m()}export{N as C};
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{D6su9Aln.js → gLNdjSzu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d}from"./
|
|
1
|
+
import{c as d}from"./C0JiMuYn.js";import{a as r}from"./BBoGk9hq.js";import{l as m,w as u}from"./DcGCxgpH.js";const l=async({dataset_id:s,annotation_label_ids:n})=>{const t={data:void 0,error:void 0};try{const i=await d.GET("/api/datasets/{dataset_id}/samples/dimensions",{params:{path:{dataset_id:s},query:{annotation_label_ids:n}}});if(i.error)throw new Error(JSON.stringify(i.error,null,2));if(!i.data)throw new Error("No dimension bounds data");t.data=i.data}catch(i){t.error="Error loading dimension bounds: "+String(i)}return t},o=r("lightlyStudio_dimensions_bounds",{min_width:0,max_width:0,min_height:0,max_height:0}),e=r("lightlyStudio_dimensions_values",{min_width:0,max_width:0,min_height:0,max_height:0}),h=s=>{e.set(s)},c=s=>{o.set(s)},a=u(!1),w=async s=>{if(m(a))return;const{data:n}=await l({dataset_id:s});n&&(o.set(n),e.set(n)),a.set(!0)},f=s=>(s&&w(s),{dimensionsBounds:o,dimensionsValues:e,updateDimensionsValues:h,updateDimensionsBounds:c});export{f as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var xt=e=>{throw TypeError(e)};var pt=(e,t,s)=>t.has(e)||xt("Cannot "+s);var i=(e,t,s)=>(pt(e,t,"read from private field"),s?s.call(e):t.get(e)),f=(e,t,s)=>t.has(e)?xt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),u=(e,t,s,r)=>(pt(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s),p=(e,t,s)=>(pt(e,t,"access private method"),s);import{ay as Vt,az as mt,aA as ae,au as bt,l as oe}from"./DcGCxgpH.js";import{d as ue,g as he,e as ce,u as le,f as de,h as fe,c as ye,i as pe}from"./Cpy-nab_.js";var jt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},it=typeof window>"u"||"Deno"in globalThis;function St(){}function We(e,t){return typeof e=="function"?e(t):e}function wt(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ft(e,t){return typeof e=="function"?e(t):e}function D(e,t){return typeof e=="function"?e(t):e}function $e(e,t){const{type:s="all",exact:r,fetchStatus:n,predicate:h,queryKey:c,stale:o}=e;if(c){if(r){if(t.queryHash!==be(c,t.options))return!1}else if(!Mt(t.queryKey,c))return!1}if(s!=="all"){const m=t.isActive();if(s==="active"&&!m||s==="inactive"&&m)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||n&&n!==t.state.fetchStatus||h&&!h(t))}function Ve(e,t){const{exact:s,status:r,predicate:n,mutationKey:h}=e;if(h){if(!t.options.mutationKey)return!1;if(s){if(Ct(t.options.mutationKey)!==Ct(h))return!1}else if(!Mt(t.options.mutationKey,h))return!1}return!(r&&t.state.status!==r||n&&!n(t))}function be(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ct)(e)}function Ct(e){return JSON.stringify(e,(t,s)=>gt(s)?Object.keys(s).sort().reduce((r,n)=>(r[n]=s[n],r),{}):s)}function Mt(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(s=>!Mt(e[s],t[s])):!1}function Xt(e,t){if(e===t)return e;const s=kt(e)&&kt(t);if(s||gt(e)&>(t)){const r=s?e:Object.keys(e),n=r.length,h=s?t:Object.keys(t),c=h.length,o=s?[]:{};let m=0;for(let C=0;C<c;C++){const d=s?C:h[C];(!s&&r.includes(d)||s)&&e[d]===void 0&&t[d]===void 0?(o[d]=void 0,m++):(o[d]=Xt(e[d],t[d]),o[d]===e[d]&&e[d]!==void 0&&m++)}return n===c&&m===n?e:o}return t}function Ot(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function kt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gt(e){if(!_t(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!_t(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _t(e){return Object.prototype.toString.call(e)==="[object Object]"}function ve(e){return new Promise(t=>{setTimeout(t,e)})}function Rt(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?Xt(e,t):t}function Je(e,t,s=0){const r=[...e,t];return s&&r.length>s?r.slice(1):r}function Xe(e,t,s=0){const r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var Yt=Symbol();function me(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Yt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var k,M,V,zt,Se=(zt=class extends jt{constructor(){super();f(this,k);f(this,M);f(this,V);u(this,V,t=>{if(!it&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){i(this,M)||this.setEventListener(i(this,V))}onUnsubscribe(){var t;this.hasListeners()||((t=i(this,M))==null||t.call(this),u(this,M,void 0))}setEventListener(t){var s;u(this,V,t),(s=i(this,M))==null||s.call(this),u(this,M,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){i(this,k)!==t&&(u(this,k,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof i(this,k)=="boolean"?i(this,k):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},k=new WeakMap,M=new WeakMap,V=new WeakMap,zt),Zt=new Se,J,P,X,Ht,we=(Ht=class extends jt{constructor(){super();f(this,J,!0);f(this,P);f(this,X);u(this,X,t=>{if(!it&&window.addEventListener){const s=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){i(this,P)||this.setEventListener(i(this,X))}onUnsubscribe(){var t;this.hasListeners()||((t=i(this,P))==null||t.call(this),u(this,P,void 0))}setEventListener(t){var s;u(this,X,t),(s=i(this,P))==null||s.call(this),u(this,P,t(this.setOnline.bind(this)))}setOnline(t){i(this,J)!==t&&(u(this,J,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return i(this,J)}},J=new WeakMap,P=new WeakMap,X=new WeakMap,Ht),te=new we;function Ft(){let e,t;const s=new Promise((n,h)=>{e=n,t=h});s.status="pending",s.catch(()=>{});function r(n){Object.assign(s,n),delete s.resolve,delete s.reject}return s.resolve=n=>{r({status:"fulfilled",value:n}),e(n)},s.reject=n=>{r({status:"rejected",reason:n}),t(n)},s}function Ce(e){return Math.min(1e3*2**e,3e4)}function ee(e){return(e??"online")==="online"?te.isOnline():!0}var se=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vt(e){return e instanceof se}function Oe(e){let t=!1,s=0,r=!1,n;const h=Ft(),c=v=>{var S;r||(b(new se(v)),(S=e.abort)==null||S.call(e))},o=()=>{t=!0},m=()=>{t=!1},C=()=>Zt.isFocused()&&(e.networkMode==="always"||te.isOnline())&&e.canRun(),d=()=>ee(e.networkMode)&&e.canRun(),a=v=>{var S;r||(r=!0,(S=e.onSuccess)==null||S.call(e,v),n==null||n(),h.resolve(v))},b=v=>{var S;r||(r=!0,(S=e.onError)==null||S.call(e,v),n==null||n(),h.reject(v))},w=()=>new Promise(v=>{var S;n=E=>{(r||C())&&v(E)},(S=e.onPause)==null||S.call(e)}).then(()=>{var v;n=void 0,r||(v=e.onContinue)==null||v.call(e)}),A=()=>{if(r)return;let v;const S=s===0?e.initialPromise:void 0;try{v=S??e.fn()}catch(E){v=Promise.reject(E)}Promise.resolve(v).then(a).catch(E=>{var yt;if(r)return;const T=e.retry??(it?0:3),x=e.retryDelay??Ce,ct=typeof x=="function"?x(s,E):x,lt=T===!0||typeof T=="number"&&s<T||typeof T=="function"&&T(s,E);if(t||!lt){b(E);return}s++,(yt=e.onFail)==null||yt.call(e,s,E),ve(ct).then(()=>C()?void 0:w()).then(()=>{t?b(E):A()})})};return{promise:h,cancel:c,continue:()=>(n==null||n(),h),cancelRetry:o,continueRetry:m,canStart:d,start:()=>(d()?A():w().then(A),h)}}function ge(){let e=[],t=0,s=o=>{o()},r=o=>{o()},n=o=>setTimeout(o,0);const h=o=>{t?e.push(o):n(()=>{s(o)})},c=()=>{const o=e;e=[],o.length&&n(()=>{r(()=>{o.forEach(m=>{s(m)})})})};return{batch:o=>{let m;t++;try{m=o()}finally{t--,t||c()}return m},batchCalls:o=>(...m)=>{h(()=>{o(...m)})},schedule:h,setNotifyFunction:o=>{s=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{n=o}}}var Pt=ge(),_,Nt,Re=(Nt=class{constructor(){f(this,_)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wt(this.gcTime)&&u(this,_,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(it?1/0:5*60*1e3))}clearGcTimeout(){i(this,_)&&(clearTimeout(i(this,_)),u(this,_,void 0))}},_=new WeakMap,Nt),Y,Z,U,B,O,ot,G,I,j,Wt,Ye=(Wt=class extends Re{constructor(t){super();f(this,I);f(this,Y);f(this,Z);f(this,U);f(this,B);f(this,O);f(this,ot);f(this,G);u(this,G,!1),u(this,ot,t.defaultOptions),this.setOptions(t.options),this.observers=[],u(this,B,t.client),u(this,U,i(this,B).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,u(this,Y,Fe(this.options)),this.state=t.state??i(this,Y),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=i(this,O))==null?void 0:t.promise}setOptions(t){this.options={...i(this,ot),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&i(this,U).remove(this)}setData(t,s){const r=Rt(this.state.data,t,this.options);return p(this,I,j).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(t,s){p(this,I,j).call(this,{type:"setState",state:t,setStateOptions:s})}cancel(t){var r,n;const s=(r=i(this,O))==null?void 0:r.promise;return(n=i(this,O))==null||n.cancel(t),s?s.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(i(this,Y))}isActive(){return this.observers.some(t=>D(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Jt(this.state.dataUpdatedAt,t)}onFocus(){var s;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(s=i(this,O))==null||s.continue()}onOnline(){var s;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(s=i(this,O))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),i(this,U).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(s=>s!==t),this.observers.length||(i(this,O)&&(i(this,G)?i(this,O).cancel({revert:!0}):i(this,O).cancelRetry()),this.scheduleGc()),i(this,U).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,I,j).call(this,{type:"invalidate"})}fetch(t,s){var m,C,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(i(this,O))return i(this,O).continueRetry(),i(this,O).promise}if(t&&this.setOptions(t),!this.options.queryFn){const a=this.observers.find(b=>b.options.queryFn);a&&this.setOptions(a.options)}const r=new AbortController,n=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(u(this,G,!0),r.signal)})},h=()=>{const a=me(this.options,s),b={client:i(this,B),queryKey:this.queryKey,meta:this.meta};return n(b),u(this,G,!1),this.options.persister?this.options.persister(a,b,this):a(b)},c={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:i(this,B),state:this.state,fetchFn:h};n(c),(m=this.options.behavior)==null||m.onFetch(c,this),u(this,Z,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=c.fetchOptions)==null?void 0:C.meta))&&p(this,I,j).call(this,{type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta});const o=a=>{var b,w,A,v;vt(a)&&a.silent||p(this,I,j).call(this,{type:"error",error:a}),vt(a)||((w=(b=i(this,U).config).onError)==null||w.call(b,a,this),(v=(A=i(this,U).config).onSettled)==null||v.call(A,this.state.data,a,this)),this.scheduleGc()};return u(this,O,Oe({initialPromise:s==null?void 0:s.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onSuccess:a=>{var b,w,A,v;if(a===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(a)}catch(S){o(S);return}(w=(b=i(this,U).config).onSuccess)==null||w.call(b,a,this),(v=(A=i(this,U).config).onSettled)==null||v.call(A,a,this.state.error,this),this.scheduleGc()},onError:o,onFail:(a,b)=>{p(this,I,j).call(this,{type:"failed",failureCount:a,error:b})},onPause:()=>{p(this,I,j).call(this,{type:"pause"})},onContinue:()=>{p(this,I,j).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),i(this,O).start()}},Y=new WeakMap,Z=new WeakMap,U=new WeakMap,B=new WeakMap,O=new WeakMap,ot=new WeakMap,G=new WeakMap,I=new WeakSet,j=function(t){const s=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...re(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return vt(n)&&n.revert&&i(this,Z)?{...i(this,Z),fetchStatus:"idle"}:{...r,error:n,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=s(this.state),Pt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),i(this,U).notify({query:this,type:"updated",action:t})})},Wt);function re(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ee(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,r=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var F,l,ut,R,z,tt,L,Q,ht,et,st,H,N,K,rt,y,at,Et,At,Ut,It,Dt,qt,Qt,ie,$t,Ee=($t=class extends jt{constructor(t,s){super();f(this,y);f(this,F);f(this,l);f(this,ut);f(this,R);f(this,z);f(this,tt);f(this,L);f(this,Q);f(this,ht);f(this,et);f(this,st);f(this,H);f(this,N);f(this,K);f(this,rt,new Set);this.options=s,u(this,F,t),u(this,Q,null),u(this,L,Ft()),this.options.experimental_prefetchInRender||i(this,L).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&&(i(this,l).addObserver(this),Bt(i(this,l),this.options)?p(this,y,at).call(this):this.updateResult(),p(this,y,It).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tt(i(this,l),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tt(i(this,l),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,y,Dt).call(this),p(this,y,qt).call(this),i(this,l).removeObserver(this)}setOptions(t,s){const r=this.options,n=i(this,l);if(this.options=i(this,F).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof D(this.options.enabled,i(this,l))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,y,Qt).call(this),i(this,l).setOptions(this.options),r._defaulted&&!Ot(this.options,r)&&i(this,F).getQueryCache().notify({type:"observerOptionsUpdated",query:i(this,l),observer:this});const h=this.hasListeners();h&&Gt(i(this,l),n,this.options,r)&&p(this,y,at).call(this),this.updateResult(s),h&&(i(this,l)!==n||D(this.options.enabled,i(this,l))!==D(r.enabled,i(this,l))||ft(this.options.staleTime,i(this,l))!==ft(r.staleTime,i(this,l)))&&p(this,y,Et).call(this);const c=p(this,y,At).call(this);h&&(i(this,l)!==n||D(this.options.enabled,i(this,l))!==D(r.enabled,i(this,l))||c!==i(this,K))&&p(this,y,Ut).call(this,c)}getOptimisticResult(t){const s=i(this,F).getQueryCache().build(i(this,F),t),r=this.createResult(s,t);return Ue(this,r)&&(u(this,R,r),u(this,tt,this.options),u(this,z,i(this,l).state)),r}getCurrentResult(){return i(this,R)}trackResult(t,s){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),s==null||s(n),t[n])})}),r}trackProp(t){i(this,rt).add(t)}getCurrentQuery(){return i(this,l)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=i(this,F).defaultQueryOptions(t),r=i(this,F).getQueryCache().build(i(this,F),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(t){return p(this,y,at).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),i(this,R)))}createResult(t,s){var Kt;const r=i(this,l),n=this.options,h=i(this,R),c=i(this,z),o=i(this,tt),C=t!==r?t.state:i(this,ut),{state:d}=t;let a={...d},b=!1,w;if(s._optimisticResults){const g=this.hasListeners(),W=!g&&Bt(t,s),$=g&&Gt(t,r,s,n);(W||$)&&(a={...a,...re(d.data,t.options)}),s._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:A,errorUpdatedAt:v,status:S}=a;if(s.select&&a.data!==void 0)if(h&&a.data===(c==null?void 0:c.data)&&s.select===i(this,ht))w=i(this,et);else try{u(this,ht,s.select),w=s.select(a.data),w=Rt(h==null?void 0:h.data,w,s),u(this,et,w),u(this,Q,null)}catch(g){u(this,Q,g)}else w=a.data;if(s.placeholderData!==void 0&&w===void 0&&S==="pending"){let g;if(h!=null&&h.isPlaceholderData&&s.placeholderData===(o==null?void 0:o.placeholderData))g=h.data;else if(g=typeof s.placeholderData=="function"?s.placeholderData((Kt=i(this,st))==null?void 0:Kt.state.data,i(this,st)):s.placeholderData,s.select&&g!==void 0)try{g=s.select(g),u(this,Q,null)}catch(W){u(this,Q,W)}g!==void 0&&(S="success",w=Rt(h==null?void 0:h.data,g,s),b=!0)}i(this,Q)&&(A=i(this,Q),w=i(this,et),v=Date.now(),S="error");const E=a.fetchStatus==="fetching",T=S==="pending",x=S==="error",ct=T&&E,lt=w!==void 0,q={status:S,fetchStatus:a.fetchStatus,isPending:T,isSuccess:S==="success",isError:x,isInitialLoading:ct,isLoading:ct,data:w,dataUpdatedAt:a.dataUpdatedAt,error:A,errorUpdatedAt:v,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>C.dataUpdateCount||a.errorUpdateCount>C.errorUpdateCount,isFetching:E,isRefetching:E&&!T,isLoadingError:x&&!lt,isPaused:a.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:x&<,isStale:Lt(t,s),refetch:this.refetch,promise:i(this,L)};if(this.options.experimental_prefetchInRender){const g=dt=>{q.status==="error"?dt.reject(q.error):q.data!==void 0&&dt.resolve(q.data)},W=()=>{const dt=u(this,L,q.promise=Ft());g(dt)},$=i(this,L);switch($.status){case"pending":t.queryHash===r.queryHash&&g($);break;case"fulfilled":(q.status==="error"||q.data!==$.value)&&W();break;case"rejected":(q.status!=="error"||q.error!==$.reason)&&W();break}}return q}updateResult(t){const s=i(this,R),r=this.createResult(i(this,l),this.options);if(u(this,z,i(this,l).state),u(this,tt,this.options),i(this,z).data!==void 0&&u(this,st,i(this,l)),Ot(r,s))return;u(this,R,r);const n={},h=()=>{if(!s)return!0;const{notifyOnChangeProps:c}=this.options,o=typeof c=="function"?c():c;if(o==="all"||!o&&!i(this,rt).size)return!0;const m=new Set(o??i(this,rt));return this.options.throwOnError&&m.add("error"),Object.keys(i(this,R)).some(C=>{const d=C;return i(this,R)[d]!==s[d]&&m.has(d)})};(t==null?void 0:t.listeners)!==!1&&h()&&(n.listeners=!0),p(this,y,ie).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,y,It).call(this)}},F=new WeakMap,l=new WeakMap,ut=new WeakMap,R=new WeakMap,z=new WeakMap,tt=new WeakMap,L=new WeakMap,Q=new WeakMap,ht=new WeakMap,et=new WeakMap,st=new WeakMap,H=new WeakMap,N=new WeakMap,K=new WeakMap,rt=new WeakMap,y=new WeakSet,at=function(t){p(this,y,Qt).call(this);let s=i(this,l).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(St)),s},Et=function(){p(this,y,Dt).call(this);const t=ft(this.options.staleTime,i(this,l));if(it||i(this,R).isStale||!wt(t))return;const r=Jt(i(this,R).dataUpdatedAt,t)+1;u(this,H,setTimeout(()=>{i(this,R).isStale||this.updateResult()},r))},At=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(i(this,l)):this.options.refetchInterval)??!1},Ut=function(t){p(this,y,qt).call(this),u(this,K,t),!(it||D(this.options.enabled,i(this,l))===!1||!wt(i(this,K))||i(this,K)===0)&&u(this,N,setInterval(()=>{(this.options.refetchIntervalInBackground||Zt.isFocused())&&p(this,y,at).call(this)},i(this,K)))},It=function(){p(this,y,Et).call(this),p(this,y,Ut).call(this,p(this,y,At).call(this))},Dt=function(){i(this,H)&&(clearTimeout(i(this,H)),u(this,H,void 0))},qt=function(){i(this,N)&&(clearInterval(i(this,N)),u(this,N,void 0))},Qt=function(){const t=i(this,F).getQueryCache().build(i(this,F),this.options);if(t===i(this,l))return;const s=i(this,l);u(this,l,t),u(this,ut,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},ie=function(t){Pt.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(i(this,R))}),i(this,F).getQueryCache().notify({query:i(this,l),type:"observerResultsUpdated"})})},$t);function Ae(e,t){return D(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Bt(e,t){return Ae(e,t)||e.state.data!==void 0&&Tt(e,t,t.refetchOnMount)}function Tt(e,t,s){if(D(t.enabled,e)!==!1){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&Lt(e,t)}return!1}function Gt(e,t,s,r){return(e!==t||D(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&Lt(e,s)}function Lt(e,t){return D(t.enabled,e)!==!1&&e.isStaleByTime(ft(t.staleTime,e))}function Ue(e,t){return!Ot(e.getCurrentResult(),t)}const ne="$$_queryClient",Ie=()=>{const e=Vt(ne);if(!e)throw new Error("No QueryClient was found in Svelte context. Did you forget to wrap your component with QueryClientProvider?");return e},Ze=e=>{ae(ne,e)},De="$$_isRestoring",qe=()=>{try{const e=Vt(De);return e||mt(!1)}catch{return mt(!1)}};function Qe(){return qe()}function Te(e){return Ie()}function je(e){return"subscribe"in e&&typeof e.subscribe=="function"}function Me(){}function Pe(e,t,s){const r=Te(),n=Qe(),h=je(e)?e:mt(e),c=bt([h,n],([d,a])=>{const b=r.defaultQueryOptions(d);return b._optimisticResults=a?"isRestoring":"optimistic",b}),o=new t(r,oe(c));c.subscribe(d=>{o.setOptions(d,{listeners:!1})});const m=bt(n,(d,a)=>{const b=d?Me:o.subscribe(Pt.batchCalls(a));return o.updateResult(),b}),{subscribe:C}=bt([m,c],([d,a])=>(d=o.getOptimisticResult(a),a.notifyOnChangeProps?d:o.trackResult(d)));return{subscribe:C}}function ts(e,t){return Pe(e,Ee)}function es(e){return e}const nt=(e,t,s)=>{const r={_id:e,baseUrl:(t==null?void 0:t.baseUrl)||((t==null?void 0:t.client)??ue).getConfig().baseUrl};return s&&(r._infinite=s),t!=null&&t.body&&(r.body=t.body),t!=null&&t.headers&&(r.headers=t.headers),t!=null&&t.path&&(r.path=t.path),t!=null&&t.query&&(r.query=t.query),[r]},Le=(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},Ke=e=>nt("readSample",e),ss=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await de({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:Ke(e)}),xe=e=>nt("readAnnotationLabels",e),rs=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await ce({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:xe(e)}),ke=e=>nt("countAnnotationsByDataset",e),is=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await fe({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:ke(e)}),_e=e=>nt("readAnnotations",e,!0),ns=e=>({queryFn:async({pageParam:t,queryKey:s,signal:r})=>{const h=Le(s,typeof t=="object"?t:{query:{cursor:t}}),{data:c}=await ye({...e,...h,signal:r,throwOnError:!0});return c},queryKey:_e(e)}),as=e=>({mutationFn:async s=>{const{data:r}=await le({...e,...s,throwOnError:!0});return r}}),Be=e=>nt("getAnnotation",e),os=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await pe({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:Be(e)}),Ge=e=>nt("getMetadataInfo",e),us=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await he({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:Ge(e)});export{je as A,Me as B,as as C,ns as D,rs as E,os as F,Ye as Q,Re as R,jt as S,is as a,Ve as b,ts as c,St as d,ft as e,Zt as f,us as g,be as h,es as i,We as j,Ct as k,Ze as l,$e as m,Pt as n,te as o,Mt as p,Oe as q,ss as r,Yt as s,me as t,Te as u,Xe as v,Je as w,Ee as x,Ot as y,Pe as z};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BbO4Zc3r.js","../chunks/BBoGk9hq.js","../chunks/Cpy-nab_.js","../chunks/DcGCxgpH.js","../chunks/DIeogL5L.js","../chunks/CWj6FrbW.js","../chunks/Crk-jcvV.js","../chunks/C0JiMuYn.js","../chunks/2O287xak.js","../chunks/CYgJF_JY.js","../chunks/BRnH9v23.js","../chunks/69_IOA4Y.js","../chunks/KpAtIldw.js","../chunks/C98Hk3r5.js","../chunks/DqUGznj_.js","../chunks/7YNGEs1C.js","../chunks/Df3aMO5B.js","../chunks/D8GZDMNN.js","../chunks/gLNdjSzu.js","../chunks/H7C68rOM.js","../chunks/i0ZZ4z06.js","../assets/SelectableSvgGroup.BBm0IWdq.css","../chunks/DkR_EZ_B.js","../chunks/BqBqV92V.js","../chunks/Ccq4ZD0B.js","../assets/0.DenzbfeK.css","../nodes/1._I9GR805.js","../nodes/2.C45iKJHA.js","../chunks/B90CZVMX.js","../chunks/M1Q1F7bw.js","../chunks/OH7-C_mc.js","../chunks/Cur71c3O.js","../chunks/CG0dMCJi.js","../nodes/3.w9g4AcAx.js","../chunks/Bg1Y5eUZ.js","../nodes/4.BBI8KwnD.js","../nodes/5.huHuxdiF.js","../chunks/CzgC3GFB.js","../chunks/DFRh-Spp.js","../nodes/6.CrbkRPam.js","../nodes/7.FomEdhD6.js","../nodes/8.Cb_ADSLk.js","../chunks/DRZO-E-T.js","../nodes/9.CajIG5ce.js","../chunks/Cs31G8Qn.js","../nodes/10.J2RBFrSr.js","../nodes/11.CWG1ehzT.js","../nodes/12.Cmqj25a-.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var dt=r=>{throw TypeError(r)};var mt=(r,t,e)=>t.has(r)||dt("Cannot "+e);var i=(r,t,e)=>(mt(r,t,"read from private field"),e?e.call(r):t.get(r)),p=(r,t,e)=>t.has(r)?dt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),$=(r,t,e,_)=>(mt(r,t,"write to private field"),_?_.call(r,e):t.set(r,e),e);import{p as w,a as Tt,c as I,b as R,_ as d}from"../chunks/D8GZDMNN.js";import{i as Vt}from"../chunks/BqBqV92V.js";import{J as Y,ao as wt,g as n,av as kt,L as jt,G as Ct,p as St,e as Gt,u as Mt,a7 as tt,aw as Jt,f as m,s as Yt,a as qt,c as zt,r as Bt,d as O,t as Ft}from"../chunks/DcGCxgpH.js";import{h as Ht,m as Kt,u as Nt,s as Qt}from"../chunks/KpAtIldw.js";import"../chunks/CWj6FrbW.js";import{i as k}from"../chunks/DqUGznj_.js";import{t as ut,a as o,c,d as Ut}from"../chunks/Crk-jcvV.js";import{o as Wt}from"../chunks/2O287xak.js";function Xt(r){return class extends Zt{constructor(t){super({component:r,...t})}}}var b,l;class Zt{constructor(t){p(this,b);p(this,l);var A;var e=new Map,_=(a,s)=>{var E=Ct(s);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===wt?!0:(n(e.get(s)??_(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,E){return Y(e.get(s)??_(s,E),E),Reflect.set(a,s,E)}});$(this,l,(t.hydrate?Ht:Kt)(t.component,{target:t.target,anchor:t.anchor,props:f,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((A=t==null?void 0:t.props)!=null&&A.$$host)||t.sync===!1)&&kt(),$(this,b,f.$$events);for(const a of Object.keys(i(this,l)))a==="$set"||a==="$destroy"||a==="$on"||jt(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=()=>{Nt(i(this,l))}}$set(t){i(this,l).$set(t)}$on(t,e){i(this,b)[t]=i(this,b)[t]||[];const _=(...f)=>e.call(this,...f);return i(this,b)[t].push(_),()=>{i(this,b)[t]=i(this,b)[t].filter(f=>f!==_)}}$destroy(){i(this,l).$destroy()}}b=new WeakMap,l=new WeakMap;const pt=Vt.reroute(),he={};var $t=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>'),te=ut("<!> <!>",1);function ee(r,t){St(t,!0);let e=w(t,"components",23,()=>[]),_=w(t,"data_0",3,null),f=w(t,"data_1",3,null),A=w(t,"data_2",3,null),a=w(t,"data_3",3,null),s=w(t,"data_4",3,null);Gt(()=>t.stores.page.set(t.page)),Mt(()=>{t.stores,t.page,t.constructors,e(),t.form,_(),f(),A(),a(),s(),t.stores.page.notify()});let E=tt(!1),et=tt(!1),rt=tt(null);Wt(()=>{const u=t.stores.page.subscribe(()=>{n(E)&&(Y(et,!0),Jt().then(()=>{Y(rt,Tt(document.title||"untitled page"))}))});return Y(E,!0),u});const ct=O(()=>t.constructors[4]);var at=te(),st=m(at);{var lt=u=>{var y=c();const j=O(()=>t.constructors[0]);var C=m(y);I(C,()=>n(j),(L,x)=>{R(x(L,{get data(){return _()},get form(){return t.form},children:(v,se)=>{var ot=c(),ht=m(ot);{var Pt=D=>{var S=c();const q=O(()=>t.constructors[1]);var z=m(S);I(z,()=>n(q),(B,F)=>{R(F(B,{get data(){return f()},get form(){return t.form},children:(g,oe)=>{var nt=c(),yt=m(nt);{var It=T=>{var G=c();const H=O(()=>t.constructors[2]);var K=m(G);I(K,()=>n(H),(N,Q)=>{R(Q(N,{get data(){return A()},get form(){return t.form},children:(h,ne)=>{var it=c(),Ot=m(it);{var bt=V=>{var M=c();const U=O(()=>t.constructors[3]);var W=m(M);I(W,()=>n(U),(X,Z)=>{R(Z(X,{get data(){return a()},get form(){return t.form},children:(P,ie)=>{var _t=c(),At=m(_t);I(At,()=>n(ct),(xt,Dt)=>{R(Dt(xt,{get data(){return s()},get form(){return t.form}}),J=>e()[4]=J,()=>{var J;return(J=e())==null?void 0:J[4]})}),o(P,_t)},$$slots:{default:!0}}),P=>e()[3]=P,()=>{var P;return(P=e())==null?void 0:P[3]})}),o(V,M)},Lt=V=>{var M=c();const U=O(()=>t.constructors[3]);var W=m(M);I(W,()=>n(U),(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(V,M)};k(Ot,V=>{t.constructors[4]?V(bt):V(Lt,!1)})}o(h,it)},$$slots:{default:!0}}),h=>e()[2]=h,()=>{var h;return(h=e())==null?void 0:h[2]})}),o(T,G)},Rt=T=>{var G=c();const H=O(()=>t.constructors[2]);var K=m(G);I(K,()=>n(H),(N,Q)=>{R(Q(N,{get data(){return A()},get form(){return t.form}}),h=>e()[2]=h,()=>{var h;return(h=e())==null?void 0:h[2]})}),o(T,G)};k(yt,T=>{t.constructors[3]?T(It):T(Rt,!1)})}o(g,nt)},$$slots:{default:!0}}),g=>e()[1]=g,()=>{var g;return(g=e())==null?void 0:g[1]})}),o(D,S)},Et=D=>{var S=c();const q=O(()=>t.constructors[1]);var z=m(S);I(z,()=>n(q),(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(D,S)};k(ht,D=>{t.constructors[2]?D(Pt):D(Et,!1)})}o(v,ot)},$$slots:{default:!0}}),v=>e()[0]=v,()=>{var v;return(v=e())==null?void 0:v[0]})}),o(u,y)},ft=u=>{var y=c();const j=O(()=>t.constructors[0]);var C=m(y);I(C,()=>n(j),(L,x)=>{R(x(L,{get data(){return _()},get form(){return t.form}}),v=>e()[0]=v,()=>{var v;return(v=e())==null?void 0:v[0]})}),o(u,y)};k(st,u=>{t.constructors[1]?u(lt):u(ft,!1)})}var vt=Yt(st,2);{var gt=u=>{var y=$t(),j=zt(y);{var C=L=>{var x=Ut();Ft(()=>Qt(x,n(rt))),o(L,x)};k(j,L=>{n(et)&&L(C)})}Bt(y),o(u,y)};k(vt,u=>{n(E)&&u(gt)})}o(r,at),qt()}const Pe=Xt(ee),Ee=[()=>d(()=>import("../nodes/0.BbO4Zc3r.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),()=>d(()=>import("../nodes/1._I9GR805.js"),__vite__mapDeps([26,5,11,4,3,12,13,6,15,16,8,9]),import.meta.url),()=>d(()=>import("../nodes/2.C45iKJHA.js"),__vite__mapDeps([27,1,2,3,4,19,28,9,5,6,14,7,17,16,8,10,11,12,13,15,18,20,21,29,30,31,22,32,24]),import.meta.url),()=>d(()=>import("../nodes/3.w9g4AcAx.js"),__vite__mapDeps([33,7,3,4,1,2,34,5,6]),import.meta.url),()=>d(()=>import("../nodes/4.BBI8KwnD.js"),__vite__mapDeps([35,18,7,3,4,1,2,34,5,6]),import.meta.url),()=>d(()=>import("../nodes/5.huHuxdiF.js"),__vite__mapDeps([36,5,3,4,6,14,7,1,2,16,8,9,10,11,12,13,15,17,18,19,20,21,29,37,38,32]),import.meta.url),()=>d(()=>import("../nodes/6.CrbkRPam.js"),__vite__mapDeps([39,19,2,28,9]),import.meta.url),()=>d(()=>import("../nodes/7.FomEdhD6.js"),__vite__mapDeps([40,5,3,4,14,10,11,12,13,6,15,16,8,9,7,1,2,17,18,19,20,21]),import.meta.url),()=>d(()=>import("../nodes/8.Cb_ADSLk.js"),__vite__mapDeps([41,3,4,2,1,5,6,14,13,10,11,12,15,16,8,9,7,17,18,19,20,21,29,37,38,42,30]),import.meta.url),()=>d(()=>import("../nodes/9.CajIG5ce.js"),__vite__mapDeps([43,5,14,3,4,10,11,12,13,6,15,16,8,9,7,1,2,17,18,19,20,21,44,31,37]),import.meta.url),()=>d(()=>import("../nodes/10.J2RBFrSr.js"),__vite__mapDeps([45,5,3,4,14,10,11,12,13,6,15,16,8,9,7,1,2,17,18,19,20,21,44,31,37]),import.meta.url),()=>d(()=>import("../nodes/11.CWG1ehzT.js"),__vite__mapDeps([46,5,11,4]),import.meta.url),()=>d(()=>import("../nodes/12.Cmqj25a-.js"),__vite__mapDeps([47,3,4,2,31,20,1,5,11,13,6,14,16,8,9,19,42]),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]]},re={handleError:({error:r})=>{console.error(r)},reroute:pt||(()=>{}),transport:{}},ae=Object.fromEntries(Object.entries(re.transport).map(([r,t])=>[r,t.decode])),Re=!1,Oe=(r,t)=>ae[r](t);export{Oe as decode,ae as decoders,Ie as dictionary,Re as hash,re as hooks,he as matchers,Ee as nodes,Pe as root,ye as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,e as r}from"../chunks/2O287xak.js";export{o as load_css,r as start};
|