@noya-app/noya-resolve-files 0.1.18 → 0.1.20

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.
@@ -1,29 +1,28 @@
1
-
2
- $ bun run build:bundle && bun run build:main
3
- $ tsup --config bundle.config.ts
4
- CLI Building entry: src/index.ts
5
- CLI Using tsconfig: tsconfig.json
6
- CLI tsup v8.3.5
7
- CLI Using tsup config: /Users/devinabbott/Projects/noya-core/packages/noya-resolve-files/bundle.config.ts
8
- CLI Target: es2022
9
- CJS Build start
10
- CJS dist/bundle/index.js 63.35 KB
11
- CJS ⚡️ Build success in 393ms
12
- $ tsup
13
- CLI Building entry: src/index.ts
14
- CLI Using tsconfig: tsconfig.json
15
- CLI tsup v8.3.5
16
- CLI Using tsup config: /Users/devinabbott/Projects/noya-core/packages/noya-resolve-files/tsup.config.ts
17
- CLI Target: esnext
18
- CJS Build start
19
- ESM Build start
20
- ESM dist/index.mjs 1.50 KB
21
- ESM dist/index.mjs.map 3.00 KB
22
- ESM ⚡️ Build success in 42ms
23
- CJS dist/index.js 2.53 KB
24
- CJS dist/index.js.map 3.03 KB
25
- CJS ⚡️ Build success in 43ms
26
- DTS Build start
27
- DTS ⚡️ Build success in 2516ms
28
- DTS dist/index.d.ts 1.00 KB
29
- DTS dist/index.d.mts 1.00 KB
1
+ $ bun run build:bundle && bun run build:main
2
+ $ tsup --config bundle.config.ts
3
+ CLI Building entry: src/index.ts
4
+ CLI Using tsconfig: tsconfig.json
5
+ CLI tsup v8.3.5
6
+ CLI Using tsup config: /home/runner/work/noya-core/noya-core/packages/noya-resolve-files/bundle.config.ts
7
+ CLI Target: es2022
8
+ CJS Build start
9
+ CJS dist/bundle/index.js 117.08 KB
10
+ CJS ⚡️ Build success in 1175ms
11
+ $ tsup
12
+ CLI Building entry: src/index.ts
13
+ CLI Using tsconfig: tsconfig.json
14
+ CLI tsup v8.3.5
15
+ CLI Using tsup config: /home/runner/work/noya-core/noya-core/packages/noya-resolve-files/tsup.config.ts
16
+ CLI Target: esnext
17
+ CJS Build start
18
+ ESM Build start
19
+ CJS dist/index.js 2.53 KB
20
+ CJS dist/index.js.map 3.03 KB
21
+ CJS ⚡️ Build success in 130ms
22
+ ESM dist/index.mjs 1.50 KB
23
+ ESM dist/index.mjs.map 3.00 KB
24
+ ESM ⚡️ Build success in 130ms
25
+ DTS Build start
26
+ DTS ⚡️ Build success in 27106ms
27
+ DTS dist/index.d.ts 1.00 KB
28
+ DTS dist/index.d.mts 1.00 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @noya-app/noya-resolve-files
2
2
 
3
+ ## 0.1.20
4
+
5
+ ### Patch Changes
6
+
7
+ - @noya-app/noya-github-utils@0.1.27
8
+
9
+ ## 0.1.19
10
+
11
+ ### Patch Changes
12
+
13
+ - @noya-app/noya-github-utils@0.1.26
14
+
3
15
  ## 0.1.18
4
16
 
5
17
  ### Patch Changes
@@ -1,22 +1,23 @@
1
- "use strict";var Po=Object.create;var et=Object.defineProperty;var Ro=Object.getOwnPropertyDescriptor;var No=Object.getOwnPropertyNames;var Mo=Object.getPrototypeOf,Co=Object.prototype.hasOwnProperty;var Xr=(e,t)=>()=>(e&&(t=e(e=0)),t);var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Do=(e,t)=>{for(var r in t)et(e,r,{get:t[r],enumerable:!0})},Zr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of No(t))!Co.call(e,i)&&i!==r&&et(e,i,{get:()=>t[i],enumerable:!(n=Ro(t,i))||n.enumerable});return e};var Le=(e,t,r)=>(r=e!=null?Po(Mo(e)):{},Zr(t||!e||!e.__esModule?et(r,"default",{value:e,enumerable:!0}):r,e)),Fo=e=>Zr(et({},"__esModule",{value:!0}),e);var a=Xr(()=>{});var s=Xr(()=>{"use strict"});var gn=A(vn=>{"use strict";a();s();Object.defineProperty(vn,"__esModule",{value:!0})});var qe=A(ut=>{"use strict";a();s();Object.defineProperty(ut,"__esModule",{value:!0});ut.Nodes=void 0;function ei(e,t){return{type:"file",data:e,metadata:t}}function ti(e={},t){return{type:"directory",children:e,metadata:t}}function ri(e){return e.type==="file"}function ni(e){return e.type==="directory"}function oi(e){return e.metadata}function ii(e){return Object.keys(e.children)}function ai(e,t){return e.children[t]}function si(e,t){return t in e.children}ut.Nodes={createDirectory:ti,createFile:ei,getChild:ai,getMetadata:oi,hasChild:si,isDirectory:ni,isFile:ri,readDirectory:ii}});var We=A(U=>{"use strict";a();s();Object.defineProperty(U,"__esModule",{value:!0});U.dirname=U.basename=U.extname=U.join=U.normalize=U.sep=void 0;U.sep="/";function ui(e,t){return e.startsWith("/")&&(t="/"+t),t[t.length-1]!=="/"&&e.endsWith("/")&&(t=t+"/"),t}function yn(e){let t=e.split(U.sep).filter(i=>!!i),r=0,n=t.length-1;for(;r<n;)t[r]==="."?(t.splice(r,1),n--):t[r]===".."&&r!==0?(t.splice(r-1,2),n-=2,r-=1):t[r]===""&&t[r+1]===""?(t.splice(r,1),n--):r++;return ui(e,t.join(U.sep))}U.normalize=yn;function ci(...e){let t=yn(e.join(U.sep));return t===""&&(t="."),t}U.join=ci;function fi(e){let t=e.lastIndexOf(".");return t!==-1?e.slice(t):e}U.extname=fi;function Ht(e,t){t&&e.endsWith(t)&&(e=e.slice(0,-t.length));let r=e.lastIndexOf(U.sep);return r===e.length-1?(e=e.slice(0,-1),e.length>1?Ht(e):e):e.slice(r+1)}U.basename=Ht;function li(e){let t=Ht(e),r=e.slice(0,-(t.length+1));return r===""&&(e.startsWith(U.sep)?r=U.sep:r="."),r}U.dirname=li});var wn=A(ct=>{"use strict";a();s();Object.defineProperty(ct,"__esModule",{value:!0});ct.Entries=void 0;var di=qe(),pi=We();function hi(e){let[t,r]=e;return di.Nodes.isDirectory(r)?Object.entries(r.children).map(([n,i])=>[(0,pi.join)(t,n),i]):[]}function mi(e,t){return[e,t]}ct.Entries={createEntry:mi,getEntries:hi}});var lt=A(ve=>{"use strict";a();s();Object.defineProperty(ve,"__esModule",{value:!0});ve.getNewAndParentName=ve.normalizePathLikeInternal=ve.getPathComponents=void 0;var ft=We();function En(e){return t((0,ft.normalize)(e));function t(r){if(r.startsWith(".."))throw new Error(`Invalid path ${r}, can't go up past root.`);return r.startsWith(".")||r.startsWith("/")?t(r.slice(1)):r===""?[]:r.split(ft.sep).filter(n=>!!n)}}ve.getPathComponents=En;function vi(e){return typeof e=="string"?En(e):e}ve.normalizePathLikeInternal=vi;function gi(e){let t=typeof e=="string"?(0,ft.dirname)(e):e.slice(0,-1),r=typeof e=="string"?(0,ft.basename)(e):e[e.length-1];return{parentName:t,newName:r}}ve.getNewAndParentName=gi});var $t=A(Q=>{"use strict";a();s();Object.defineProperty(Q,"__esModule",{value:!0});Q.getMetadata=Q.readDirectory=Q.readFile=Q.getNode=Q.getNodeInternal=void 0;var Ne=qe(),He=We(),dt=lt();function _n(e,t,r){let n=(0,dt.normalizePathLikeInternal)(t),i=0,u=e;for(;i<n.length;){let c=n[i];if(u.type!=="directory")throw new Error(`File ${(0,He.join)(...n.slice(0,i))} is not a directory`);let l=Ne.Nodes.getChild(u,c);if(!l)if(r.makeIntermediateDirectoryMetadata){let d=Ne.Nodes.createDirectory({},r.makeIntermediateDirectoryMetadata((0,He.join)(...n.slice(0,i+1))));u.children[c]=d,l=d}else if(r.makeIntermediateDirectories){let d=Ne.Nodes.createDirectory();u.children[c]=d,l=d}else throw new Error(`File ${(0,He.join)(...n.slice(0,i+1))} not found`);u=l,i++}return u}Q.getNodeInternal=_n;function pt(e,t){return _n(e,t,{})}Q.getNode=pt;function yi(e,t){let r=(0,dt.normalizePathLikeInternal)(t),n=pt(e,r);if(!Ne.Nodes.isFile(n))throw new Error(`Can't read, ${(0,He.join)(...r)} not a file`);return n.data}Q.readFile=yi;function wi(e,t){let r=(0,dt.normalizePathLikeInternal)(t),n=pt(e,r);if(!Ne.Nodes.isDirectory(n))throw new Error(`Can't read, ${(0,He.join)(...r)} not a directory`);return Ne.Nodes.readDirectory(n)}Q.readDirectory=wi;function Ei(e,t){let r=(0,dt.normalizePathLikeInternal)(t);return pt(e,r).metadata}Q.getMetadata=Ei});var On=A(Y=>{"use strict";a();s();Object.defineProperty(Y,"__esModule",{value:!0});Y.create=Y.setMetadata=Y.removeFile=Y.makeDirectory=Y.writeFile=Y.setNode=void 0;var ge=qe(),Kt=lt(),ht=$t();function Tn(e,t,r,n){let{parentName:i,newName:u}=(0,Kt.getNewAndParentName)(t),c=(0,ht.getNodeInternal)(e,i,n??{});if(!ge.Nodes.isDirectory(c))throw new Error(`Can't create ${u}, ${i} not a directory`);c.children[u]=r}Y.setNode=Tn;function _i(e,t,r,n){var i;Tn(e,t,ge.Nodes.createFile(r,(i=n)===null||i===void 0?void 0:i.metadata),n)}Y.writeFile=_i;function Ti(e,t,r){var n;let{parentName:i,newName:u}=(0,Kt.getNewAndParentName)(t),c=(0,ht.getNodeInternal)(e,i,r??{});if(!ge.Nodes.isDirectory(c))throw new Error(`Can't create ${u}, ${i} not a directory`);ge.Nodes.getChild(c,u)&&ge.Nodes.isDirectory(c.children[u])||(c.children[u]=ge.Nodes.createDirectory({},(n=r)===null||n===void 0?void 0:n.metadata))}Y.makeDirectory=Ti;function Oi(e,t){let{parentName:r,newName:n}=(0,Kt.getNewAndParentName)(t),i=(0,ht.getNode)(e,r);if(!ge.Nodes.isDirectory(i))throw new Error(`Can't remove file ${n}, ${r} not a directory`);delete i.children[n]}Y.removeFile=Oi;function ki(e,t,r){let n=(0,ht.getNode)(e,t);n.metadata=r}Y.setMetadata=ki;function bi(e){return ge.Nodes.createDirectory({},e&&"metadata"in e?e.metadata:void 0)}Y.create=bi});var kn=A(vt=>{"use strict";a();s();Object.defineProperty(vt,"__esModule",{value:!0});vt.Volume=void 0;var xi=lt(),mt=$t(),Me=On();vt.Volume={getPathComponents:xi.getPathComponents,getMetadata:mt.getMetadata,getNode:mt.getNode,readDirectory:mt.readDirectory,readFile:mt.readFile,create:Me.create,makeDirectory:Me.makeDirectory,removeFile:Me.removeFile,setMetadata:Me.setMetadata,setNode:Me.setNode,writeFile:Me.writeFile}});var Yt=A(W=>{"use strict";a();s();var bn=W&&W.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Si=W&&W.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),gt=W&&W.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&bn(t,e,r)},Ai=W&&W.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&bn(t,e,r);return Si(t,e),t};Object.defineProperty(W,"__esModule",{value:!0});W.path=void 0;gt(gn(),W);gt(qe(),W);gt(wn(),W);gt(kn(),W);W.path=Ai(We())});var yt=A(Ce=>{"use strict";a();s();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.get=Pi;Ce.ancestors=Ri;Ce.access=Ni;Ce.accessPath=Sn;function Pi(e,t,r){if(r.includeTraversalContext){let i=xn(e,t,r);return i[i.length-1]}let n=t.slice();for(;n.length>0;){let i=n.shift(),c=r.getChildren(e,n)[i];if(!c)return;e=c}return e}function Ri(e,t,r){return xn(e,t,r).slice(0,-1)}function xn(e,t,r){let n=t.slice(),i=[e];for(;n.length>0;){let u=n.shift(),c=r.includeTraversalContext?An(i):void 0,d=r.getChildren(e,n,c)[u];if(!d)return i;e=d,i.push(e)}return i}function Ni(e,t,r){if(r.includeTraversalContext){let i=Sn(e,t,r);return i[i.length-1]}let n=t.slice();for(;n.length>0;){let i=n.shift();e=r.getChildren(e,n)[i]}return e}function Sn(e,t,r){let n=t.slice(),i=[e];for(;n.length>0;){let u=n.shift(),c=r.includeTraversalContext?An(i):void 0;e=r.getChildren(e,n,c)[u],i.push(e)}return i}function An(e){return{getRoot:()=>e[0],getParent:()=>e[e.length-2],getAncestors:()=>e.slice(0,-1)}}});var Et=A(wt=>{"use strict";a();s();Object.defineProperty(wt,"__esModule",{value:!0});wt.comparePathsByComponent=Pn;wt.sortPaths=Mi;function Pn(e,t){for(let r=0;r<Math.min(e.length,t.length);r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return e.length-t.length}function Mi(e){return[...e].sort(Pn)}});var _t=A(Gt=>{"use strict";a();s();Object.defineProperty(Gt,"__esModule",{value:!0});Gt.ancestorPaths=Di;var Ci=Et();function Di(e,t){var r;let n=new Map,i=(r=t?.compare)!==null&&r!==void 0?r:Ci.comparePathsByComponent,u=e.sort(i);for(let c of u)c.some((d,g)=>{let w=c.slice(0,g).join();return n.has(w)})||n.set(c.join(),c);return Array.from(n.values())}});var Mn=A(Xt=>{"use strict";a();s();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.boxDiagram=zi;var q;(function(e){e.TopLeft="\u250C",e.TopRight="\u2510",e.BottomLeft="\u2514",e.BottomRight="\u2518",e.Horizontal="\u2500",e.Vertical="\u2502",e.BottomConnectorDown="\u252C",e.BottomConnectorUp="\u2534",e.TopConnectorUp="\u2534"})(q||(q={}));function Fi(e){let t=e.split(`
2
- `),r=Math.max(...t.map(l=>l.length)),n=1,i=r+n*2+2,u=2+t.length,c=[[q.TopLeft,q.Horizontal.repeat(r+n*2),q.TopRight],...t.map(l=>[q.Vertical," ".repeat(n),l+(l.length<r?" ".repeat(r-l.length):"")," ".repeat(n),q.Vertical]),[q.BottomLeft,q.Horizontal.repeat(r+n*2),q.BottomRight]];return{width:i,height:u,contents:c.map(l=>l.join(""))}}function Ii(e){if(e.length===0)throw new Error("Can't merge empty array of boxes");return e.slice(1).reduce((r,n)=>{let i=Math.max(r.height,n.height),u=r.width+1+n.width,c=[];for(let l=0;l<i;l++)c.push((r.contents[l]||" ".repeat(r.width))+" ".repeat(1)+(n.contents[l]||" ".repeat(n.width)));return{height:i,width:u,contents:Nn(c,u)}},e[0])}function ji(e){if(e.length===0)throw new Error("Can't merge empty array of boxes");let r=Math.max(...e.map(n=>n.width));return e.slice(1).reduce((n,i)=>{let u=n.height+1+i.height,c=[];for(let l=0;l<u;l++)l<n.height?c.push(n.contents[l]):l===n.height?c.push(" ".repeat(r)):c.push(i.contents[l-n.height-1]);return{height:u,width:r,contents:Nn(c,r)}},e[0])}function Rn(e,t,r){let n=r.getLabel(e,t),i=Fi(n),u=r.getChildren(e,t);if(u.length===0)return i;let c=u.map((C,j)=>{let T=Rn(C,[...t,j],r);return T.contents[0]=Vt(T.contents[0],Tt(T.contents[0].length),q.TopConnectorUp),T}),l=ji([i,Ii(c)]),d=l.contents,g=Tt(l.width);d[i.height-1]=Vt(d[i.height-1],g,q.BottomConnectorDown);let w=d[i.height+1].indexOf(q.TopConnectorUp),E=d[i.height+1].lastIndexOf(q.TopConnectorUp);for(let C=w;C<=E;C++){let j;C===g?j=c.length>1?q.BottomConnectorUp:q.Vertical:C===w?j=q.TopLeft:C===E?j=q.TopRight:j=q.Horizontal,l.contents[i.height]=Vt(l.contents[i.height],C,j)}return l}function zi(e,t){return Rn(e,[],t).contents.join(`
3
- `)}function Tt(e){return Math.floor(e/2)}function Ui(e,t){let r=t-e.length;if(r<=0)return e;let n=Tt(r),i=Tt(r),u=" ".repeat(n)+e+" ".repeat(i);return n+i+u.length<t?u+" ":u}function Nn(e,t){return e.map(r=>Ui(r,t))}function Vt(e,t,r){return t>e.length-1?e:e.substring(0,t)+r+e.substring(t+1)}});var Dn=A($e=>{"use strict";a();s();Object.defineProperty($e,"__esModule",{value:!0});$e.directoryDiagram=Li;$e.isMultiline=Qt;$e.prefixBlock=Cn;var se;(function(e){e.Child="\u251C\u2500\u2500 ",e.LastChild="\u2514\u2500\u2500 ",e.NestedChild="\u2502 ",e.LastNestedChild=" "})(se||(se={}));function Zt(e,t,r){let n=r.getLabel(e,t),i=t.length,u={label:n,depth:i,prefix:"",multilinePrefix:""},c=r.getChildren(e,t);if(c.length===0)return[u];if(r.flattenSingleChildNodes&&c.length===1&&!Qt(n)){let[d]=Zt(c[0],[...t,0],r),g=t.length===0&&n==="";return u.label=g?`/ ${d.label}`:`${u.label} / ${d.label}`,[u]}let l=c.flatMap((d,g,w)=>{let E=g===w.length-1,C=Zt(d,[...t,g],r),j=E?se.LastChild:se.Child,T=E?se.LastNestedChild:se.NestedChild;return C.forEach(P=>{P.depth===i+1?(P.prefix=j+P.prefix,P.multilinePrefix=T+P.multilinePrefix):E?(P.prefix=se.LastNestedChild+P.prefix,P.multilinePrefix=se.LastNestedChild+P.multilinePrefix):(P.prefix=se.NestedChild+P.prefix,P.multilinePrefix=se.NestedChild+P.multilinePrefix)}),C});return[u,...l]}function Li(e,t){return Zt(e,[],t).map(i=>Cn(i.label,i.prefix,i.multilinePrefix)).join(`
4
- `)}function Qt(e){return e.includes(`
5
- `)}function Cn(e,t,r){return Qt(e)?e.split(`
6
- `).map((n,i)=>(i===0?t:r)+n).join(`
7
- `):t+e}});var er=A(Jt=>{"use strict";a();s();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.diagram=Wi;var Bi=Mn(),qi=Dn();function Wi(e,t){return t.type==="box"?(0,Bi.boxDiagram)(e,t):(0,qi.directoryDiagram)(e,t)}});var _e=A(ue=>{"use strict";a();s();Object.defineProperty(ue,"__esModule",{value:!0});ue.STOP=ue.SKIP=void 0;ue.visit=Hi;ue.SKIP="skip";ue.STOP="stop";function Hi(e,t){let{onEnter:r,onLeave:n,getChildren:i,onDetectCycle:u,getIdentifier:c,direction:l="forward"}=t,d=(T,P,F)=>{let N=i(T,P,F);return l==="forward"?N:N.slice().reverse()},g=[],w=[{node:e}],E=u?new Set:void 0,C=t.includeTraversalContext?{getRoot(){return e},getParent(){var T;return(T=w[w.length-2])===null||T===void 0?void 0:T.node},getAncestors(){return w.slice(0,-1).map(T=>T.node)}}:void 0,j=t.reuseIndexPath?()=>g:()=>g.slice();for(;w.length>0;){let T=w[w.length-1];if(T.state===void 0){if(E){let N=c?c(T.node):T.node;if(E.has(N)){if((typeof u=="function"?u(T.node,j(),C):u)==="error")throw new Error("Cycle detected in tree");T.state=-1;continue}E.add(N)}let F=r?.(T.node,j());if(F===ue.STOP)return;T.state=F===ue.SKIP?-1:0}let P=T.children||d(T.node,j(),C);if(T.children||(T.children=P),T.state!==-1){if(T.state<P.length){let N=T.state;g.push(l==="forward"?N:P.length-N-1),w.push({node:P[N]}),T.state=N+1;continue}if(n?.(T.node,j())===ue.STOP)return}if(E){let F=c?c(T.node):T.node;E.delete(F)}g.pop(),w.pop()}}});var rr=A(tr=>{"use strict";a();s();Object.defineProperty(tr,"__esModule",{value:!0});tr.entries=Ki;var $i=_e();function Ki(e,t){let r=[];return(0,$i.visit)(e,Object.assign(Object.assign({},t),{onEnter:(n,i)=>{r.push([i,n])}})),r}});var nr=A(Fe=>{"use strict";a();s();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.find=Yi;Fe.findAll=Gi;Fe.findPath=Vi;Fe.findAllPaths=Xi;var De=_e();function Yi(e,t){let r;return(0,De.visit)(e,Object.assign(Object.assign({},t),{onEnter:(n,i)=>{if(t.predicate(n,i))return r=n,De.STOP}})),r}function Gi(e,t){let r=[];return(0,De.visit)(e,{onEnter:(n,i)=>{t.predicate(n,i)&&r.push(n)},getChildren:t.getChildren}),r}function Vi(e,t){let r;return(0,De.visit)(e,{onEnter:(n,i)=>{if(t.predicate(n,i))return r=[...i],De.STOP},getChildren:t.getChildren}),r}function Xi(e,t){let r=[];return(0,De.visit)(e,{onEnter:(n,i)=>{t.predicate(n,i)&&r.push([...i])},getChildren:t.getChildren}),r}});var Ot=A(or=>{"use strict";a();s();Object.defineProperty(or,"__esModule",{value:!0});or.reduce=Qi;var Zi=_e();function Qi(e,t){let r=t.initialResult;return(0,Zi.visit)(e,Object.assign(Object.assign({},t),{onEnter:(n,i)=>{r=t.nextResult(r,n,i)}})),r}});var ar=A(ir=>{"use strict";a();s();Object.defineProperty(ir,"__esModule",{value:!0});ir.flat=ea;var Ji=Ot();function ea(e,t){return(0,Ji.reduce)(e,Object.assign(Object.assign({},t),{initialResult:[],nextResult:(r,n)=>(r.push(n),r)}))}});var bt=A(kt=>{"use strict";a();s();Object.defineProperty(kt,"__esModule",{value:!0});kt.map=ra;kt.flatMap=Fn;var ta=_e();function ra(e,t){return Fn(e,Object.assign(Object.assign({},t),{transform:(r,n,i)=>[t.transform(r,n,i)]}))}function Fn(e,t){let r={};return(0,ta.visit)(e,Object.assign(Object.assign({},t),{onLeave:(n,i)=>{var u,c;let l=[0,...i],d=l.join(),g=t.transform(n,(u=r[d])!==null&&u!==void 0?u:[],i),w=l.slice(0,-1).join(),E=(c=r[w])!==null&&c!==void 0?c:[];E.push(...g),r[w]=E}})),r[""][0]}});var ur=A(sr=>{"use strict";a();s();Object.defineProperty(sr,"__esModule",{value:!0});sr.transformPath=ia;var na=Et();function oa(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)if(e[n]!==t[n])return e.slice(0,n);return e.slice(0,r)}function ia(e,t,r,n=1){if(r.length>e.length||(0,na.comparePathsByComponent)(r,e)>0)return e;if(r.length===0&&t==="remove")return;let i=oa(e,r),u=i.length===e.length||i.length===r.length?i.length-1:i.length,c=e[u],l=r[u];if(t==="insert"&&l<=c){let d=[...e];return d[u]+=n,d}else if(t==="remove"){if(l===c)return;if(l<c){let d=[...e];return d[u]-=n,d}}return e}});var Ie=A(oe=>{"use strict";a();s();Object.defineProperty(oe,"__esModule",{value:!0});oe.insertOperation=jn;oe.removeOperation=zn;oe.replaceOperation=xt;oe.getInsertionOperations=ua;oe.getRemovalOperations=ca;oe.getReplaceOperations=fa;oe.applyOperations=la;oe.arraySplice=cr;oe.transformPathsByOperations=da;var aa=_t(),sa=bt(),In=ur();function jn(e,t){return{type:"insert",index:e,nodes:t}}function zn(e){return{type:"remove",indexes:e}}function xt(){return{type:"replace"}}function Un(e){return[e.slice(0,-1),e[e.length-1]]}function ua(e,t,r=new Map){var n;let[i,u]=Un(e);for(let l=i.length-1;l>=0;l--){let d=i.slice(0,l).join();switch((n=r.get(d))===null||n===void 0?void 0:n.type){case"remove":continue}r.set(d,xt())}let c=r.get(i.join());switch(c?.type){case"remove":r.set(i.join(),{type:"removeThenInsert",removeIndexes:c.indexes,insertIndex:u,insertNodes:t});break;default:r.set(i.join(),jn(u,t))}return r}function ca(e){var t,r;let n=(0,aa.ancestorPaths)(e),i=new Map;for(let c of n){let l=c.slice(0,-1).join(),d=(t=i.get(l))!==null&&t!==void 0?t:[];d.push(c[c.length-1]),i.set(l,d)}let u=new Map;for(let c of n)for(let l=c.length-1;l>=0;l--){let d=c.slice(0,l).join();u.set(d,xt())}for(let c of n){let l=c.slice(0,-1).join();u.set(l,zn((r=i.get(l))!==null&&r!==void 0?r:[]))}return u}function fa(e,t){let r=new Map,[n,i]=Un(e);for(let u=n.length-1;u>=0;u--){let c=n.slice(0,u).join();r.set(c,xt())}return r.set(n.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),r}function Ln(e,t){return t.reduce((r,n)=>n<r?r-1:r,e)}function la(e,t,r){return(0,sa.map)(e,Object.assign(Object.assign({},r),{getChildren:(n,i)=>{let u=i.join(),c=t.get(u);switch(c?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(n,i);default:return[]}},transform:(n,i,u)=>{let c=u.join(),l=t.get(c);switch(l?.type){case"remove":return r.create(n,i.filter((w,E)=>!l.indexes.includes(E)),u);case"removeThenInsert":let d=i.filter((w,E)=>!l.removeIndexes.includes(E)),g=Ln(l.insertIndex,l.removeIndexes);return r.create(n,cr(d,g,0,...l.insertNodes),u);case"insert":return r.create(n,cr(i,l.index,0,...l.nodes),u);case"replace":return r.create(n,i,u);default:return n}}}))}function cr(e,t,r,...n){return[...e.slice(0,t),...n,...e.slice(t+r)]}function da(e,t){let r=e;for(let[n,i]of t.entries()){let u=n?n.split(",").map(Number):[];r=fr(r,u,i)}return r}function fr(e,t,r){switch(r.type){case"insert":{let n=t.concat(r.index);return e.map(i=>i?(0,In.transformPath)(i,"insert",n,r.nodes.length):void 0)}case"remove":{let n=[...r.indexes].reverse().map(i=>t.concat(i));return e.map(i=>{for(let u of n)i=i?(0,In.transformPath)(i,"remove",u):void 0;return i})}case"removeThenInsert":{let n=fr(e,t,{type:"remove",indexes:r.removeIndexes}),i=Ln(r.insertIndex,r.removeIndexes);return fr(n,t,{type:"insert",index:i,nodes:r.insertNodes})}case"replace":return e}}});var dr=A(St=>{"use strict";a();s();Object.defineProperty(St,"__esModule",{value:!0});St.insert=pa;St.insertWithPathTracking=ha;var lr=Ie();function pa(e,t){return Bn(e,t).node}function ha(e,t){return Bn(e,t)}function Bn(e,t){let{nodes:r,path:n,track:i}=t;if(n.length===0)throw new Error("Can't insert nodes at the root");let u=(0,lr.getInsertionOperations)(n,r),c=i?(0,lr.transformPathsByOperations)(i,u):[];return{node:(0,lr.applyOperations)(e,u,t),paths:c}}});var mr=A(hr=>{"use strict";a();s();Object.defineProperty(hr,"__esModule",{value:!0});hr.move=ga;var ma=yt(),va=_t(),pr=Ie();function ga(e,t){if(t.paths.length===0)return e;for(let u of t.paths)if(u.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");let r=(0,va.ancestorPaths)(t.paths),n=r.map(u=>(0,ma.access)(e,u,t)),i=(0,pr.getInsertionOperations)(t.to,n,(0,pr.getRemovalOperations)(r));return(0,pr.applyOperations)(e,i,t)}});var gr=A(At=>{"use strict";a();s();Object.defineProperty(At,"__esModule",{value:!0});At.remove=ya;At.removeWithPathTracking=wa;var vr=Ie();function ya(e,t){return qn(e,t).node}function wa(e,t){return qn(e,t)}function qn(e,t){let{paths:r,track:n}=t,i=(0,vr.getRemovalOperations)(r),u=n?(0,vr.transformPathsByOperations)(n,i):[];return{node:(0,vr.applyOperations)(e,i,t),paths:u}}});var wr=A(yr=>{"use strict";a();s();Object.defineProperty(yr,"__esModule",{value:!0});yr.replace=Ea;var Wn=Ie();function Ea(e,t){if(t.path.length===0)return t.node;let r=(0,Wn.getReplaceOperations)(t.path,t.node);return(0,Wn.applyOperations)(e,r,t)}});var Er=A(Rt=>{"use strict";a();s();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.splice=_a;Rt.spliceWithPathTracking=Ta;var Pt=Ie();function _a(e,t){return Hn(e,t).node}function Ta(e,t){return Hn(e,t)}function Hn(e,t){let{path:r,deleteCount:n=0,nodes:i,track:u}=t;if(r.length===0)throw new Error("Can't splice at the root");let c=Oa(r,n),l=(0,Pt.getInsertionOperations)(r,i,(0,Pt.getRemovalOperations)(c)),d=u?(0,Pt.transformPathsByOperations)(u,l):[];return{node:(0,Pt.applyOperations)(e,l,t),paths:d}}function Oa(e,t){let r=[],n=e.slice(0,-1),i=e[e.length-1];for(let u=0;u<t;u++)r.push(n.concat(i+u));return r}});var Or=A(Tr=>{"use strict";a();s();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.defineTree=Pa;var Nt=yt(),$n=er(),ka=rr(),ye=nr(),ba=ar(),Kn=dr(),Yn=bt(),xa=mr(),Sa=Ot(),Gn=gr(),Aa=wr(),Vn=Er(),Xn=_e(),_r=class e{constructor(t,r){this.appliedOptions=r,this.getChildren=(n,i,u)=>this._getChildren(n,i,u),this.mergeOptions=n=>Object.assign(Object.assign(Object.assign({},this.baseOptions),this.appliedOptions),n),this.withOptions=n=>new e(this.baseOptions,Object.assign(Object.assign({},this.appliedOptions),n)),this.access=(n,i)=>(0,Nt.access)(n,i,this.mergeOptions({})),this.accessPath=(n,i)=>(0,Nt.accessPath)(n,i,this.mergeOptions({})),this.get=(n,i)=>(0,Nt.get)(n,i,this.mergeOptions({})),this.ancestors=(n,i)=>(0,Nt.ancestors)(n,i,this.mergeOptions({})),this.diagram=(n,i)=>typeof i=="function"?(0,$n.diagram)(n,this.mergeOptions({getLabel:i})):(0,$n.diagram)(n,this.mergeOptions(i)),this.find=(n,i)=>typeof i=="function"?(0,ye.find)(n,this.mergeOptions({predicate:i})):(0,ye.find)(n,this.mergeOptions(Object.assign({},i))),this.findAll=(n,i)=>typeof i=="function"?(0,ye.findAll)(n,this.mergeOptions({predicate:i})):(0,ye.findAll)(n,this.mergeOptions(Object.assign({},i))),this.findPath=(n,i)=>typeof i=="function"?(0,ye.findPath)(n,this.mergeOptions({predicate:i})):(0,ye.findPath)(n,this.mergeOptions(Object.assign({},i))),this.findAllPaths=(n,i)=>typeof i=="function"?(0,ye.findAllPaths)(n,this.mergeOptions({predicate:i})):(0,ye.findAllPaths)(n,this.mergeOptions(Object.assign({},i))),this.entries=n=>(0,ka.entries)(n,this.mergeOptions({})),this.flat=n=>(0,ba.flat)(n,this.mergeOptions({})),this.reduce=(n,i,u)=>(0,Sa.reduce)(n,this.mergeOptions({nextResult:i,initialResult:u})),this.map=(n,i)=>(0,Yn.map)(n,this.mergeOptions({transform:i})),this.flatMap=(n,i)=>(0,Yn.flatMap)(n,this.mergeOptions({transform:i})),this.visit=(n,i)=>typeof i=="function"?(0,Xn.visit)(n,this.mergeOptions({onEnter:i})):(0,Xn.visit)(n,this.mergeOptions(Object.assign({},i))),this.insert=(n,i)=>(0,Kn.insert)(n,this.mergeOptions(i)),this.insertWithPathTracking=(n,i)=>(0,Kn.insertWithPathTracking)(n,this.mergeOptions(i)),this.remove=(n,i)=>(0,Gn.remove)(n,this.mergeOptions(i)),this.removeWithPathTracking=(n,i)=>(0,Gn.removeWithPathTracking)(n,this.mergeOptions(i)),this.move=(n,i)=>(0,xa.move)(n,this.mergeOptions(i)),this.splice=(n,i)=>(0,Vn.splice)(n,this.mergeOptions(i)),this.spliceWithPathTracking=(n,i)=>(0,Vn.spliceWithPathTracking)(n,this.mergeOptions(i)),this.replace=(n,i)=>(0,Aa.replace)(n,this.mergeOptions(i)),this.baseOptions=typeof t=="function"?{getChildren:t}:t,this._getChildren=this.baseOptions.getChildren}};function Pa(e){return new _r(e,{})}});var Qn=A(Zn=>{"use strict";a();s();Object.defineProperty(Zn,"__esModule",{value:!0})});var eo=A(Jn=>{"use strict";a();s();Object.defineProperty(Jn,"__esModule",{value:!0})});var to=A(Mt=>{"use strict";a();s();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.withOptions=void 0;var Ra=Or();Mt.withOptions=Ra.defineTree});var ro=A(I=>{"use strict";a();s();var Na=I&&I.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),L=I&&I.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Na(t,e,r)};Object.defineProperty(I,"__esModule",{value:!0});L(yt(),I);L(_t(),I);L(Or(),I);L(er(),I);L(rr(),I);L(nr(),I);L(ar(),I);L(Qn(),I);L(dr(),I);L(bt(),I);L(mr(),I);L(eo(),I);L(Ot(),I);L(gr(),I);L(wr(),I);L(Et(),I);L(Er(),I);L(ur(),I);L(_e(),I);L(to(),I)});var Eo=A(O=>{"use strict";a();s();var Sr=Symbol.for("react.transitional.element"),Ia=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Ua=Symbol.for("react.profiler"),La=Symbol.for("react.consumer"),Ba=Symbol.for("react.context"),qa=Symbol.for("react.forward_ref"),Wa=Symbol.for("react.suspense"),Ha=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),uo=Symbol.iterator;function $a(e){return e===null||typeof e!="object"?null:(e=uo&&e[uo]||e["@@iterator"],typeof e=="function"?e:null)}var mo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vo=Object.assign,go={};function ze(e,t,r){this.props=e,this.context=t,this.refs=go,this.updater=r||mo}ze.prototype.isReactComponent={};ze.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ze.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yo(){}yo.prototype=ze.prototype;function Ar(e,t,r){this.props=e,this.context=t,this.refs=go,this.updater=r||mo}var Pr=Ar.prototype=new yo;Pr.constructor=Ar;vo(Pr,ze.prototype);Pr.isPureReactComponent=!0;var co=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},wo=Object.prototype.hasOwnProperty;function Rr(e,t,r,n,i,u){return r=u.ref,{$$typeof:Sr,type:e,key:t,ref:r!==void 0?r:null,props:u}}function Ka(e,t){return Rr(e.type,t,void 0,void 0,void 0,e.props)}function Nr(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sr}function Ya(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var fo=/\/+/g;function xr(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ya(""+e.key):t.toString(36)}function lo(){}function Ga(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(lo,lo):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function je(e,t,r,n,i){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(u){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Sr:case Ia:c=!0;break;case ho:return c=e._init,je(c(e._payload),t,r,n,i)}}if(c)return i=i(e),c=n===""?"."+xr(e,0):n,co(i)?(r="",c!=null&&(r=c.replace(fo,"$&/")+"/"),je(i,t,r,"",function(g){return g})):i!=null&&(Nr(i)&&(i=Ka(i,r+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(fo,"$&/")+"/")+c)),t.push(i)),1;c=0;var l=n===""?".":n+":";if(co(e))for(var d=0;d<e.length;d++)n=e[d],u=l+xr(n,d),c+=je(n,t,r,u,i);else if(d=$a(e),typeof d=="function")for(e=d.call(e),d=0;!(n=e.next()).done;)n=n.value,u=l+xr(n,d++),c+=je(n,t,r,u,i);else if(u==="object"){if(typeof e.then=="function")return je(Ga(e),t,r,n,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function Ct(e,t,r){if(e==null)return e;var n=[],i=0;return je(e,n,"","",function(u){return t.call(r,u,i++)}),n}function Va(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var po=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Xa(){}O.Children={map:Ct,forEach:function(e,t,r){Ct(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ct(e,function(){t++}),t},toArray:function(e){return Ct(e,function(t){return t})||[]},only:function(e){if(!Nr(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=ze;O.Fragment=ja;O.Profiler=Ua;O.PureComponent=Ar;O.StrictMode=za;O.Suspense=Wa;O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z;O.__COMPILER_RUNTIME={__proto__:null,c:function(e){return z.H.useMemoCache(e)}};O.cache=function(e){return function(){return e.apply(null,arguments)}};O.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=vo({},e.props),i=e.key,u=void 0;if(t!=null)for(c in t.ref!==void 0&&(u=void 0),t.key!==void 0&&(i=""+t.key),t)!wo.call(t,c)||c==="key"||c==="__self"||c==="__source"||c==="ref"&&t.ref===void 0||(n[c]=t[c]);var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];n.children=l}return Rr(e.type,i,void 0,void 0,u,n)};O.createContext=function(e){return e={$$typeof:Ba,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:La,_context:e},e};O.createElement=function(e,t,r){var n,i={},u=null;if(t!=null)for(n in t.key!==void 0&&(u=""+t.key),t)wo.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(i[n]=t[n]);var c=arguments.length-2;if(c===1)i.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(n in c=e.defaultProps,c)i[n]===void 0&&(i[n]=c[n]);return Rr(e,u,void 0,void 0,null,i)};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:qa,render:e}};O.isValidElement=Nr;O.lazy=function(e){return{$$typeof:ho,_payload:{_status:-1,_result:e},_init:Va}};O.memo=function(e,t){return{$$typeof:Ha,type:e,compare:t===void 0?null:t}};O.startTransition=function(e){var t=z.T,r={};z.T=r;try{var n=e(),i=z.S;i!==null&&i(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(Xa,po)}catch(u){po(u)}finally{z.T=t}};O.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()};O.use=function(e){return z.H.use(e)};O.useActionState=function(e,t,r){return z.H.useActionState(e,t,r)};O.useCallback=function(e,t){return z.H.useCallback(e,t)};O.useContext=function(e){return z.H.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e,t){return z.H.useDeferredValue(e,t)};O.useEffect=function(e,t,r){var n=z.H;if(typeof r=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)};O.useId=function(){return z.H.useId()};O.useImperativeHandle=function(e,t,r){return z.H.useImperativeHandle(e,t,r)};O.useInsertionEffect=function(e,t){return z.H.useInsertionEffect(e,t)};O.useLayoutEffect=function(e,t){return z.H.useLayoutEffect(e,t)};O.useMemo=function(e,t){return z.H.useMemo(e,t)};O.useOptimistic=function(e,t){return z.H.useOptimistic(e,t)};O.useReducer=function(e,t,r){return z.H.useReducer(e,t,r)};O.useRef=function(e){return z.H.useRef(e)};O.useState=function(e){return z.H.useState(e)};O.useSyncExternalStore=function(e,t,r){return z.H.useSyncExternalStore(e,t,r)};O.useTransition=function(){return z.H.useTransition()};O.version="19.1.0"});var _o=A((_,Dt)=>{"use strict";a();s();process.env.NODE_ENV!=="production"&&function(){function e(o,f){Object.defineProperty(n.prototype,o,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})}function t(o){return o===null||typeof o!="object"?null:(o=Ir&&o[Ir]||o["@@iterator"],typeof o=="function"?o:null)}function r(o,f){o=(o=o.constructor)&&(o.displayName||o.name)||"ReactClass";var m=o+"."+f;jr[m]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,o),jr[m]=!0)}function n(o,f,m){this.props=o,this.context=f,this.refs=Ft,this.updater=m||zr}function i(){}function u(o,f,m){this.props=o,this.context=f,this.refs=Ft,this.updater=m||zr}function c(o){return""+o}function l(o){try{c(o);var f=!1}catch{f=!0}if(f){f=console;var m=f.error,v=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return m.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),c(o)}}function d(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===ko?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case Ue:return"Fragment";case fe:return"Profiler";case ke:return"StrictMode";case Se:return"Suspense";case Ye:return"SuspenseList";case Ge:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case Ke:return"Portal";case pe:return(o.displayName||"Context")+".Provider";case be:return(o._context.displayName||"Context")+".Consumer";case xe:var f=o.render;return o=o.displayName,o||(o=f.displayName||f.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Ae:return f=o.displayName||null,f!==null?f:d(o.type)||"Memo";case Ee:f=o._payload,o=o._init;try{return d(o(f))}catch{}}return null}function g(o){if(o===Ue)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===Ee)return"<...>";try{var f=d(o);return f?"<"+f+">":"<...>"}catch{return"<...>"}}function w(){var o=x.A;return o===null?null:o.getOwner()}function E(){return Error("react-stack-top-frame")}function C(o){if(Xe.call(o,"key")){var f=Object.getOwnPropertyDescriptor(o,"key").get;if(f&&f.isReactWarning)return!1}return o.key!==void 0}function j(o,f){function m(){qr||(qr=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",f))}m.isReactWarning=!0,Object.defineProperty(o,"key",{get:m,configurable:!0})}function T(){var o=d(this.type);return Hr[o]||(Hr[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function P(o,f,m,v,y,S,k,D){return m=S.ref,o={$$typeof:V,type:o,key:f,props:S,_owner:y},(m!==void 0?m:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:T}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function F(o,f){return f=P(o.type,f,void 0,void 0,o._owner,o.props,o._debugStack,o._debugTask),o._store&&(f._store.validated=o._store.validated),f}function N(o){return typeof o=="object"&&o!==null&&o.$$typeof===V}function J(o){var f={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(m){return f[m]})}function G(o,f){return typeof o=="object"&&o!==null&&o.key!=null?(l(o.key),J(""+o.key)):f.toString(36)}function ce(){}function we(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(ce,ce):(o.status="pending",o.then(function(f){o.status==="pending"&&(o.status="fulfilled",o.value=f)},function(f){o.status==="pending"&&(o.status="rejected",o.reason=f)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function $(o,f,m,v,y){var S=typeof o;(S==="undefined"||S==="boolean")&&(o=null);var k=!1;if(o===null)k=!0;else switch(S){case"bigint":case"string":case"number":k=!0;break;case"object":switch(o.$$typeof){case V:case Ke:k=!0;break;case Ee:return k=o._init,$(k(o._payload),f,m,v,y)}}if(k){k=o,y=y(k);var D=v===""?"."+G(k,0):v;return Lr(y)?(m="",D!=null&&(m=D.replace(Kr,"$&/")+"/"),$(y,f,m,"",function(he){return he})):y!=null&&(N(y)&&(y.key!=null&&(k&&k.key===y.key||l(y.key)),m=F(y,m+(y.key==null||k&&k.key===y.key?"":(""+y.key).replace(Kr,"$&/")+"/")+D),v!==""&&k!=null&&N(k)&&k.key==null&&k._store&&!k._store.validated&&(m._store.validated=2),y=m),f.push(y)),1}if(k=0,D=v===""?".":v+":",Lr(o))for(var b=0;b<o.length;b++)v=o[b],S=D+G(v,b),k+=$(v,f,m,S,y);else if(b=t(o),typeof b=="function")for(b===o.entries&&($r||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$r=!0),o=b.call(o),b=0;!(v=o.next()).done;)v=v.value,S=D+G(v,b++),k+=$(v,f,m,S,y);else if(S==="object"){if(typeof o.then=="function")return $(we(o),f,m,v,y);throw f=String(o),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return k}function ie(o,f,m){if(o==null)return o;var v=[],y=0;return $(o,v,"","",function(S){return f.call(m,S,y++)}),v}function B(o){if(o._status===-1){var f=o._result;f=f(),f.then(function(m){(o._status===0||o._status===-1)&&(o._status=1,o._result=m)},function(m){(o._status===0||o._status===-1)&&(o._status=2,o._result=m)}),o._status===-1&&(o._status=0,o._result=f)}if(o._status===1)return f=o._result,f===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ "use strict";var Fs=Object.create;var Xr=Object.defineProperty;var Ms=Object.getOwnPropertyDescriptor;var Cs=Object.getOwnPropertyNames;var Ds=Object.getPrototypeOf,Is=Object.prototype.hasOwnProperty;var Xn=(t,o)=>()=>(t&&(o=t(t=0)),o);var Z=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),js=(t,o)=>{for(var a in o)Xr(t,a,{get:o[a],enumerable:!0})},Qn=(t,o,a,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let f of Cs(o))!Is.call(t,f)&&f!==a&&Xr(t,f,{get:()=>o[f],enumerable:!(s=Ms(o,f))||s.enumerable});return t};var yr=(t,o,a)=>(a=t!=null?Fs(Ds(t)):{},Qn(o||!t||!t.__esModule?Xr(a,"default",{value:t,enumerable:!0}):a,t)),zs=t=>Qn(Xr({},"__esModule",{value:!0}),t);var h=Xn(()=>{});var v=Xn(()=>{"use strict"});var eo=Z((Jn,Qr)=>{"use strict";h();v();var Lt=(()=>{var t=typeof document<"u"?document.currentScript?.src:void 0;return async function(o={}){var a,s=o,f=typeof window=="object",m=typeof WorkerGlobalScope<"u",g=typeof process=="object"&&process.versions?.node&&process.type!="renderer";s.noInitialRun=!0;var E=[],_="./this.program",N=(e,r)=>{throw r};typeof __filename<"u"?t=__filename:m&&(t=self.location.href);var M="";function j(e){return s.locateFile?s.locateFile(e,M):M+e}var ee,te;if(g){var P=require("fs");M=__dirname+"/",te=e=>{e=Ne(e)?new URL(e):e;var r=P.readFileSync(e);return r},ee=async(e,r=!0)=>{e=Ne(e)?new URL(e):e;var n=P.readFileSync(e,r?void 0:"utf8");return n},process.argv.length>1&&(_=process.argv[1].replace(/\\/g,"/")),E=process.argv.slice(2),N=(e,r)=>{throw process.exitCode=e,r}}else if(f||m){try{M=new URL(".",t).href}catch{}m&&(te=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ee=async e=>{if(Ne(e))return new Promise((n,u)=>{var l=new XMLHttpRequest;l.open("GET",e,!0),l.responseType="arraybuffer",l.onload=()=>{if(l.status==200||l.status==0&&l.response){n(l.response);return}u(l.status)},l.onerror=u,l.send(null)});var r=await fetch(e,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw new Error(r.status+" : "+r.url)}}var Y=console.log.bind(console),X=console.error.bind(console),Q,ye=!1,me;function xe(e,r){e||cr(r)}var Ne=e=>e.startsWith("file://"),de,ke,ie,I,Ae,pe,be,S,re,Qe,Ee,he,ar,Ge=!1;function Pe(){var e=ie.buffer;I=new Int8Array(e),pe=new Int16Array(e),Ae=new Uint8Array(e),be=new Uint16Array(e),S=new Int32Array(e),re=new Uint32Array(e),Qe=new Float32Array(e),Ee=new Float64Array(e),he=new BigInt64Array(e),ar=new BigUint64Array(e)}function Je(){if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)Kr(s.preRun.shift());fr(Pr)}function Be(){Ge=!0,!s.noFSInit&&!i.initialized&&i.init(),z.init(),Dr.__wasm_call_ctors(),i.ignorePermissions=!1}function ur(){}function er(){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;)Wr(s.postRun.shift());fr(Ar)}var Re=0,Fe=null;function qe(e){Re++,s.monitorRunDependencies?.(Re)}function rr(e){if(Re--,s.monitorRunDependencies?.(Re),Re==0&&Fe){var r=Fe;Fe=null,r()}}function cr(e){s.onAbort?.(e),e="Aborted("+e+")",X(e),ye=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw ke?.(r),r}var pr;function qr(){return j("7zz.wasm")}function $r(e){if(e==pr&&Q)return new Uint8Array(Q);if(te)return te(e);throw"both async and sync fetching of the wasm failed"}async function Nr(e){if(!Q)try{var r=await ee(e);return new Uint8Array(r)}catch{}return $r(e)}async function _e(e,r){try{var n=await Nr(e),u=await WebAssembly.instantiate(n,r);return u}catch(l){X(`failed to asynchronously prepare wasm: ${l}`),cr(l)}}async function hr(e,r,n){if(!e&&typeof WebAssembly.instantiateStreaming=="function"&&!Ne(r)&&!g)try{var u=fetch(r,{credentials:"same-origin"}),l=await WebAssembly.instantiateStreaming(u,n);return l}catch(d){X(`wasm streaming compile failed: ${d}`),X("falling back to ArrayBuffer instantiation")}return _e(r,n)}function Hr(){return{env:Zn,wasi_snapshot_preview1:Zn}}async function Mt(){function e(d,p){return Dr=d.exports,ie=Dr.memory,Pe(),Ps(Dr),rr("wasm-instantiate"),Dr}qe("wasm-instantiate");function r(d){return e(d.instance)}var n=Hr();if(s.instantiateWasm)return new Promise((d,p)=>{s.instantiateWasm(n,(w,T)=>{d(e(w,T))})});pr??=qr();var u=await hr(Q,pr,n),l=r(u);return l}class W{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var fr=e=>{for(;e.length>0;)e.shift()(s)},Ar=[],Wr=e=>Ar.push(e),Pr=[],Kr=e=>Pr.push(e),Yr=!0;class Ct{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){re[this.ptr+4>>2]=r}get_type(){return re[this.ptr+4>>2]}set_destructor(r){re[this.ptr+8>>2]=r}get_destructor(){return re[this.ptr+8>>2]}set_caught(r){r=r?1:0,I[this.ptr+12]=r}get_caught(){return I[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,I[this.ptr+13]=r}get_rethrown(){return I[this.ptr+13]!=0}init(r,n){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(n)}set_adjusted_ptr(r){re[this.ptr+16>>2]=r}get_adjusted_ptr(){return re[this.ptr+16>>2]}}var Rr=0,Gr=0,Vr=(e,r,n)=>{var u=new Ct(e);throw u.init(r,n),Rr=e,Gr++,Rr},G={isAbs:e=>e.charAt(0)==="/",splitPath:e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return r.exec(e).slice(1)},normalizeArray:(e,r)=>{for(var n=0,u=e.length-1;u>=0;u--){var l=e[u];l==="."?e.splice(u,1):l===".."?(e.splice(u,1),n++):n&&(e.splice(u,1),n--)}if(r)for(;n;n--)e.unshift("..");return e},normalize:e=>{var r=G.isAbs(e),n=e.slice(-1)==="/";return e=G.normalizeArray(e.split("/").filter(u=>!!u),!r).join("/"),!e&&!r&&(e="."),e&&n&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=G.splitPath(e),n=r[0],u=r[1];return!n&&!u?".":(u&&(u=u.slice(0,-1)),n+u)},basename:e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],join:(...e)=>G.normalize(e.join("/")),join2:(e,r)=>G.normalize(e+"/"+r)},vr=()=>{if(g){var e=require("crypto");return r=>e.randomFillSync(r)}return r=>crypto.getRandomValues(r)},lr=e=>{(lr=vr())(e)},De={resolve:(...e)=>{for(var r="",n=!1,u=e.length-1;u>=-1&&!n;u--){var l=u>=0?e[u]:i.cwd();if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!l)return"";r=l+"/"+r,n=G.isAbs(l)}return r=G.normalizeArray(r.split("/").filter(d=>!!d),!n).join("/"),(n?"/":"")+r||"."},relative:(e,r)=>{e=De.resolve(e).slice(1),r=De.resolve(r).slice(1);function n(F){for(var V=0;V<F.length&&F[V]==="";V++);for(var J=F.length-1;J>=0&&F[J]==="";J--);return V>J?[]:F.slice(V,J-V+1)}for(var u=n(e.split("/")),l=n(r.split("/")),d=Math.min(u.length,l.length),p=d,w=0;w<d;w++)if(u[w]!==l[w]){p=w;break}for(var T=[],w=p;w<u.length;w++)T.push("..");return T=T.concat(l.slice(p)),T.join("/")}},mr=typeof TextDecoder<"u"?new TextDecoder:void 0,Ve=(e,r=0,n=NaN)=>{for(var u=r+n,l=r;e[l]&&!(l>=u);)++l;if(l-r>16&&e.buffer&&mr)return mr.decode(e.subarray(r,l));for(var d="";r<l;){var p=e[r++];if(!(p&128)){d+=String.fromCharCode(p);continue}var w=e[r++]&63;if((p&224)==192){d+=String.fromCharCode((p&31)<<6|w);continue}var T=e[r++]&63;if((p&240)==224?p=(p&15)<<12|w<<6|T:p=(p&7)<<18|w<<12|T<<6|e[r++]&63,p<65536)d+=String.fromCharCode(p);else{var F=p-65536;d+=String.fromCharCode(55296|F>>10,56320|F&1023)}}return d},c=[],y=e=>{for(var r=0,n=0;n<e.length;++n){var u=e.charCodeAt(n);u<=127?r++:u<=2047?r+=2:u>=55296&&u<=57343?(r+=4,++n):r+=3}return r},b=(e,r,n,u)=>{if(!(u>0))return 0;for(var l=n,d=n+u-1,p=0;p<e.length;++p){var w=e.codePointAt(p);if(w<=127){if(n>=d)break;r[n++]=w}else if(w<=2047){if(n+1>=d)break;r[n++]=192|w>>6,r[n++]=128|w&63}else if(w<=65535){if(n+2>=d)break;r[n++]=224|w>>12,r[n++]=128|w>>6&63,r[n++]=128|w&63}else{if(n+3>=d)break;r[n++]=240|w>>18,r[n++]=128|w>>12&63,r[n++]=128|w>>6&63,r[n++]=128|w&63,p++}}return r[n]=0,n-l},x=(e,r,n)=>{var u=n>0?n:y(e)+1,l=new Array(u),d=b(e,l,0,l.length);return r&&(l.length=d),l},R=()=>{if(!c.length){var e=null;if(g){var r=256,n=Buffer.alloc(r),u=0,l=process.stdin.fd;try{u=P.readSync(l,n,0,r)}catch(d){if(d.toString().includes("EOF"))u=0;else throw d}u>0&&(e=n.slice(0,u).toString("utf-8"))}else typeof window<"u"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
2
+ `));if(!e)return null;c=x(e,!0)}return c.shift()},z={ttys:[],init(){},shutdown(){},register(e,r){z.ttys[e]={input:[],output:[],ops:r},i.registerDevice(e,z.stream_ops)},stream_ops:{open(e){var r=z.ttys[e.node.rdev];if(!r)throw new i.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,n,u,l){if(!e.tty||!e.tty.ops.get_char)throw new i.ErrnoError(60);for(var d=0,p=0;p<u;p++){var w;try{w=e.tty.ops.get_char(e.tty)}catch{throw new i.ErrnoError(29)}if(w===void 0&&d===0)throw new i.ErrnoError(6);if(w==null)break;d++,r[n+p]=w}return d&&(e.node.atime=Date.now()),d},write(e,r,n,u,l){if(!e.tty||!e.tty.ops.put_char)throw new i.ErrnoError(60);try{for(var d=0;d<u;d++)e.tty.ops.put_char(e.tty,r[n+d])}catch{throw new i.ErrnoError(29)}return u&&(e.node.mtime=e.node.ctime=Date.now()),d}},default_tty_ops:{get_char(e){return R()},put_char(e,r){r===null||r===10?(Y(Ve(e.output)),e.output=[]):r!=0&&e.output.push(r)},fsync(e){e.output?.length>0&&(Y(Ve(e.output)),e.output=[])},ioctl_tcgets(e){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets(e,r,n){return 0},ioctl_tiocgwinsz(e){return[24,80]}},default_tty1_ops:{put_char(e,r){r===null||r===10?(X(Ve(e.output)),e.output=[]):r!=0&&e.output.push(r)},fsync(e){e.output?.length>0&&(X(Ve(e.output)),e.output=[])}}},U=e=>{cr()},A={ops_table:null,mount(e){return A.createNode(null,"/",16895,0)},createNode(e,r,n,u){if(i.isBlkdev(n)||i.isFIFO(n))throw new i.ErrnoError(63);A.ops_table||={dir:{node:{getattr:A.node_ops.getattr,setattr:A.node_ops.setattr,lookup:A.node_ops.lookup,mknod:A.node_ops.mknod,rename:A.node_ops.rename,unlink:A.node_ops.unlink,rmdir:A.node_ops.rmdir,readdir:A.node_ops.readdir,symlink:A.node_ops.symlink},stream:{llseek:A.stream_ops.llseek}},file:{node:{getattr:A.node_ops.getattr,setattr:A.node_ops.setattr},stream:{llseek:A.stream_ops.llseek,read:A.stream_ops.read,write:A.stream_ops.write,mmap:A.stream_ops.mmap,msync:A.stream_ops.msync}},link:{node:{getattr:A.node_ops.getattr,setattr:A.node_ops.setattr,readlink:A.node_ops.readlink},stream:{}},chrdev:{node:{getattr:A.node_ops.getattr,setattr:A.node_ops.setattr},stream:i.chrdev_stream_ops}};var l=i.createNode(e,r,n,u);return i.isDir(l.mode)?(l.node_ops=A.ops_table.dir.node,l.stream_ops=A.ops_table.dir.stream,l.contents={}):i.isFile(l.mode)?(l.node_ops=A.ops_table.file.node,l.stream_ops=A.ops_table.file.stream,l.usedBytes=0,l.contents=null):i.isLink(l.mode)?(l.node_ops=A.ops_table.link.node,l.stream_ops=A.ops_table.link.stream):i.isChrdev(l.mode)&&(l.node_ops=A.ops_table.chrdev.node,l.stream_ops=A.ops_table.chrdev.stream),l.atime=l.mtime=l.ctime=Date.now(),e&&(e.contents[r]=l,e.atime=e.mtime=e.ctime=l.atime),l},getFileDataAsTypedArray(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage(e,r){var n=e.contents?e.contents.length:0;if(!(n>=r)){var u=1024*1024;r=Math.max(r,n*(n<u?2:1.125)>>>0),n!=0&&(r=Math.max(r,256));var l=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(l.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(r==0)e.contents=null,e.usedBytes=0;else{var n=e.contents;e.contents=new Uint8Array(r),n&&e.contents.set(n.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=i.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,i.isDir(e.mode)?r.size=4096:i.isFile(e.mode)?r.size=e.usedBytes:i.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.atime),r.mtime=new Date(e.mtime),r.ctime=new Date(e.ctime),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){for(let n of["mode","atime","mtime","ctime"])r[n]!=null&&(e[n]=r[n]);r.size!==void 0&&A.resizeFileStorage(e,r.size)},lookup(e,r){throw A.doesNotExistError},mknod(e,r,n,u){return A.createNode(e,r,n,u)},rename(e,r,n){var u;try{u=i.lookupNode(r,n)}catch{}if(u){if(i.isDir(e.mode))for(var l in u.contents)throw new i.ErrnoError(55);i.hashRemoveNode(u)}delete e.parent.contents[e.name],r.contents[n]=e,e.name=n,r.ctime=r.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,r){delete e.contents[r],e.ctime=e.mtime=Date.now()},rmdir(e,r){var n=i.lookupNode(e,r);for(var u in n.contents)throw new i.ErrnoError(55);delete e.contents[r],e.ctime=e.mtime=Date.now()},readdir(e){return[".","..",...Object.keys(e.contents)]},symlink(e,r,n){var u=A.createNode(e,r,41471,0);return u.link=n,u},readlink(e){if(!i.isLink(e.mode))throw new i.ErrnoError(28);return e.link}},stream_ops:{read(e,r,n,u,l){var d=e.node.contents;if(l>=e.node.usedBytes)return 0;var p=Math.min(e.node.usedBytes-l,u);if(p>8&&d.subarray)r.set(d.subarray(l,l+p),n);else for(var w=0;w<p;w++)r[n+w]=d[l+w];return p},write(e,r,n,u,l,d){if(r.buffer===I.buffer&&(d=!1),!u)return 0;var p=e.node;if(p.mtime=p.ctime=Date.now(),r.subarray&&(!p.contents||p.contents.subarray)){if(d)return p.contents=r.subarray(n,n+u),p.usedBytes=u,u;if(p.usedBytes===0&&l===0)return p.contents=r.slice(n,n+u),p.usedBytes=u,u;if(l+u<=p.usedBytes)return p.contents.set(r.subarray(n,n+u),l),u}if(A.expandFileStorage(p,l+u),p.contents.subarray&&r.subarray)p.contents.set(r.subarray(n,n+u),l);else for(var w=0;w<u;w++)p.contents[l+w]=r[n+w];return p.usedBytes=Math.max(p.usedBytes,l+u),u},llseek(e,r,n){var u=r;if(n===1?u+=e.position:n===2&&i.isFile(e.node.mode)&&(u+=e.node.usedBytes),u<0)throw new i.ErrnoError(28);return u},mmap(e,r,n,u,l){if(!i.isFile(e.node.mode))throw new i.ErrnoError(43);var d,p,w=e.node.contents;if(!(l&2)&&w&&w.buffer===I.buffer)p=!1,d=w.byteOffset;else{if(p=!0,d=U(r),!d)throw new i.ErrnoError(48);w&&((n>0||n+r<w.length)&&(w.subarray?w=w.subarray(n,n+r):w=Array.prototype.slice.call(w,n,n+r)),I.set(w,d))}return{ptr:d,allocated:p}},msync(e,r,n,u,l){return A.stream_ops.write(e,r,0,u,n,!1),0}}},K=async e=>{var r=await ee(e);return new Uint8Array(r)},$e=(...e)=>i.createDataFile(...e),tr=e=>e,Zr=[],Dt=(e,r,n,u)=>{typeof Browser<"u"&&Browser.init();var l=!1;return Zr.forEach(d=>{l||d.canHandle(r)&&(d.handle(e,r,n,u),l=!0)}),l},Si=(e,r,n,u,l,d,p,w,T,F)=>{var V=r?De.resolve(G.join2(e,r)):e,J=tr(`cp ${V}`);function L(D){function $(se){F?.(),w||$e(e,r,se,u,l,T),d?.(),rr(J)}Dt(D,V,$,()=>{p?.(),rr(J)})||$(D)}qe(J),typeof n=="string"?K(n).then(L,p):L(n)},xi=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},n=r[e];if(typeof n>"u")throw new Error(`Unknown file open mode: ${e}`);return n},It=(e,r)=>{var n=0;return e&&(n|=365),r&&(n|=146),n},Ni={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},C={isWindows:!1,staticInit(){C.isWindows=!!process.platform.match(/^win/);var e=process.binding("constants").fs;C.flagsForNodeMap={1024:e.O_APPEND,64:e.O_CREAT,128:e.O_EXCL,256:e.O_NOCTTY,0:e.O_RDONLY,2:e.O_RDWR,4096:e.O_SYNC,512:e.O_TRUNC,1:e.O_WRONLY,131072:e.O_NOFOLLOW}},convertNodeCode(e){var r=e.code;return Ni[r]},tryFSOperation(e){try{return e()}catch(r){throw r.code?r.code==="UNKNOWN"?new i.ErrnoError(28):new i.ErrnoError(C.convertNodeCode(r)):r}},mount(e){return C.createNode(null,"/",C.getMode(e.opts.root),0)},createNode(e,r,n,u){if(!i.isDir(n)&&!i.isFile(n)&&!i.isLink(n))throw new i.ErrnoError(28);var l=i.createNode(e,r,n);return l.node_ops=C.node_ops,l.stream_ops=C.stream_ops,l},getMode(e){return C.tryFSOperation(()=>{var r=P.lstatSync(e).mode;return C.isWindows&&(r|=(r&292)>>2),r})},realPath(e){for(var r=[];e.parent!==e;)r.push(e.name),e=e.parent;return r.push(e.mount.opts.root),r.reverse(),G.join(...r)},flagsForNode(e){e&=-2097153,e&=-2049,e&=-32769,e&=-524289,e&=-65537;var r=0;for(var n in C.flagsForNodeMap)e&n&&(r|=C.flagsForNodeMap[n],e^=n);if(e)throw new i.ErrnoError(28);return r},getattr(e,r){var n=C.tryFSOperation(e);return C.isWindows&&(n.blksize||(n.blksize=4096),n.blocks||(n.blocks=(n.size+n.blksize-1)/n.blksize|0),n.mode|=(n.mode&292)>>2),{dev:n.dev,ino:r.id,mode:n.mode,nlink:n.nlink,uid:n.uid,gid:n.gid,rdev:n.rdev,size:n.size,atime:n.atime,mtime:n.mtime,ctime:n.ctime,blksize:n.blksize,blocks:n.blocks}},setattr(e,r,n,u,l,d,p){C.tryFSOperation(()=>{if(n.mode!==void 0){var w=n.mode;C.isWindows&&(w&=384),u(e,w),r.mode=n.mode}if(typeof(n.atime??n.mtime)=="number"){var T=new Date(n.atime??p(e).atime),F=new Date(n.mtime??p(e).mtime);l(e,T,F)}n.size!==void 0&&d(e,n.size)})},node_ops:{getattr(e){var r=C.realPath(e);return C.getattr(()=>P.lstatSync(r),e)},setattr(e,r){var n=C.realPath(e);if(r.mode!=null&&r.dontFollow)throw new i.ErrnoError(52);C.setattr(n,e,r,P.chmodSync,P.utimesSync,P.truncateSync,P.lstatSync)},lookup(e,r){var n=G.join2(C.realPath(e),r),u=C.getMode(n);return C.createNode(e,r,u)},mknod(e,r,n,u){var l=C.createNode(e,r,n,u),d=C.realPath(l);return C.tryFSOperation(()=>{i.isDir(l.mode)?P.mkdirSync(d,l.mode):P.writeFileSync(d,"",{mode:l.mode})}),l},rename(e,r,n){var u=C.realPath(e),l=G.join2(C.realPath(r),n);try{i.unlink(l)}catch{}C.tryFSOperation(()=>P.renameSync(u,l)),e.name=n},unlink(e,r){var n=G.join2(C.realPath(e),r);C.tryFSOperation(()=>P.unlinkSync(n))},rmdir(e,r){var n=G.join2(C.realPath(e),r);C.tryFSOperation(()=>P.rmdirSync(n))},readdir(e){var r=C.realPath(e);return C.tryFSOperation(()=>P.readdirSync(r))},symlink(e,r,n){var u=G.join2(C.realPath(e),r);C.tryFSOperation(()=>P.symlinkSync(n,u))},readlink(e){var r=C.realPath(e);return C.tryFSOperation(()=>P.readlinkSync(r))},statfs(e){var r=C.tryFSOperation(()=>P.statfsSync(e));return r.frsize=r.bsize,r}},stream_ops:{getattr(e){return C.getattr(()=>P.fstatSync(e.nfd),e.node)},setattr(e,r){C.setattr(e.nfd,e.node,r,P.fchmodSync,P.futimesSync,P.ftruncateSync,P.fstatSync)},open(e){var r=C.realPath(e.node);C.tryFSOperation(()=>{e.shared.refcount=1,e.nfd=P.openSync(r,C.flagsForNode(e.flags))})},close(e){C.tryFSOperation(()=>{e.nfd&&--e.shared.refcount===0&&P.closeSync(e.nfd)})},dup(e){e.shared.refcount++},read(e,r,n,u,l){return C.tryFSOperation(()=>P.readSync(e.nfd,new Int8Array(r.buffer,n,u),0,u,l))},write(e,r,n,u,l){return C.tryFSOperation(()=>P.writeSync(e.nfd,new Int8Array(r.buffer,n,u),0,u,l))},llseek(e,r,n){var u=r;if(n===1?u+=e.position:n===2&&i.isFile(e.node.mode)&&C.tryFSOperation(()=>{var l=P.fstatSync(e.nfd);u+=l.size}),u<0)throw new i.ErrnoError(28);return u},mmap(e,r,n,u,l){if(!i.isFile(e.node.mode))throw new i.ErrnoError(43);var d=U(r);return C.stream_ops.read(e,I,d,r,n),{ptr:d,allocated:!0}},msync(e,r,n,u,l){return C.stream_ops.write(e,r,0,u,n,!1),0}}},ue={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount(e){xe(m),ue.reader??=new FileReaderSync;var r=ue.createNode(null,"/",ue.DIR_MODE,0),n={};function u(d){for(var p=d.split("/"),w=r,T=0;T<p.length-1;T++){var F=p.slice(0,T+1).join("/");n[F]||=ue.createNode(w,p[T],ue.DIR_MODE,0),w=n[F]}return w}function l(d){var p=d.split("/");return p[p.length-1]}return Array.prototype.forEach.call(e.opts.files||[],function(d){ue.createNode(u(d.name),l(d.name),ue.FILE_MODE,0,d,d.lastModifiedDate)}),(e.opts.blobs||[]).forEach(d=>{ue.createNode(u(d.name),l(d.name),ue.FILE_MODE,0,d.data)}),(e.opts.packages||[]).forEach(d=>{d.metadata.files.forEach(p=>{var w=p.filename.slice(1);ue.createNode(u(w),l(w),ue.FILE_MODE,0,d.blob.slice(p.start,p.end))})}),r},createNode(e,r,n,u,l,d){var p=i.createNode(e,r,n);return p.mode=n,p.node_ops=ue.node_ops,p.stream_ops=ue.stream_ops,p.atime=p.mtime=p.ctime=(d||new Date).getTime(),xe(ue.FILE_MODE!==ue.DIR_MODE),n===ue.FILE_MODE?(p.size=l.size,p.contents=l):(p.size=4096,p.contents={}),e&&(e.contents[r]=p),p},node_ops:{getattr(e){return{dev:1,ino:e.id,mode:e.mode,nlink:1,uid:0,gid:0,rdev:0,size:e.size,atime:new Date(e.atime),mtime:new Date(e.mtime),ctime:new Date(e.ctime),blksize:4096,blocks:Math.ceil(e.size/4096)}},setattr(e,r){for(let n of["mode","atime","mtime","ctime"])r[n]!=null&&(e[n]=r[n])},lookup(e,r){throw new i.ErrnoError(44)},mknod(e,r,n,u){throw new i.ErrnoError(63)},rename(e,r,n){throw new i.ErrnoError(63)},unlink(e,r){throw new i.ErrnoError(63)},rmdir(e,r){throw new i.ErrnoError(63)},readdir(e){var r=[".",".."];for(var n of Object.keys(e.contents))r.push(n);return r},symlink(e,r,n){throw new i.ErrnoError(63)}},stream_ops:{read(e,r,n,u,l){if(l>=e.node.size)return 0;var d=e.node.contents.slice(l,l+u),p=ue.reader.readAsArrayBuffer(d);return r.set(new Uint8Array(p),n),d.size},write(e,r,n,u,l){throw new i.ErrnoError(29)},llseek(e,r,n){var u=r;if(n===1?u+=e.position:n===2&&i.isFile(e.node.mode)&&(u+=e.node.size),u<0)throw new i.ErrnoError(28);return u}}},i={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{},ErrnoError:class{name="ErrnoError";constructor(e){this.errno=e}},FSStream:class{shared={};get object(){return this.node}set object(e){this.node=e}get isRead(){return(this.flags&2097155)!==1}get isWrite(){return(this.flags&2097155)!==0}get isAppend(){return this.flags&1024}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(e,r,n,u){e||(e=this),this.parent=e,this.mount=e.mount,this.id=i.nextInode++,this.name=r,this.mode=n,this.rdev=u,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return i.isDir(this.mode)}get isDevice(){return i.isChrdev(this.mode)}},lookupPath(e,r={}){if(!e)throw new i.ErrnoError(44);r.follow_mount??=!0,G.isAbs(e)||(e=i.cwd()+"/"+e);e:for(var n=0;n<40;n++){for(var u=e.split("/").filter(F=>!!F),l=i.root,d="/",p=0;p<u.length;p++){var w=p===u.length-1;if(w&&r.parent)break;if(u[p]!=="."){if(u[p]===".."){if(d=G.dirname(d),i.isRoot(l)){e=d+"/"+u.slice(p+1).join("/");continue e}else l=l.parent;continue}d=G.join2(d,u[p]);try{l=i.lookupNode(l,u[p])}catch(F){if(F?.errno===44&&w&&r.noent_okay)return{path:d};throw F}if(i.isMountpoint(l)&&(!w||r.follow_mount)&&(l=l.mounted.root),i.isLink(l.mode)&&(!w||r.follow)){if(!l.node_ops.readlink)throw new i.ErrnoError(52);var T=l.node_ops.readlink(l);G.isAbs(T)||(T=G.dirname(d)+"/"+T),e=T+"/"+u.slice(p+1).join("/");continue e}}}return{path:d,node:l}}throw new i.ErrnoError(32)},getPath(e){for(var r;;){if(i.isRoot(e)){var n=e.mount.mountpoint;return r?n[n.length-1]!=="/"?`${n}/${r}`:n+r:n}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var n=0,u=0;u<r.length;u++)n=(n<<5)-n+r.charCodeAt(u)|0;return(e+n>>>0)%i.nameTable.length},hashAddNode(e){var r=i.hashName(e.parent.id,e.name);e.name_next=i.nameTable[r],i.nameTable[r]=e},hashRemoveNode(e){var r=i.hashName(e.parent.id,e.name);if(i.nameTable[r]===e)i.nameTable[r]=e.name_next;else for(var n=i.nameTable[r];n;){if(n.name_next===e){n.name_next=e.name_next;break}n=n.name_next}},lookupNode(e,r){var n=i.mayLookup(e);if(n)throw new i.ErrnoError(n);for(var u=i.hashName(e.id,r),l=i.nameTable[u];l;l=l.name_next){var d=l.name;if(l.parent.id===e.id&&d===r)return l}return i.lookup(e,r)},createNode(e,r,n,u){var l=new i.FSNode(e,r,n,u);return i.hashAddNode(l),l},destroyNode(e){i.hashRemoveNode(e)},isRoot(e){return e===e.parent},isMountpoint(e){return!!e.mounted},isFile(e){return(e&61440)===32768},isDir(e){return(e&61440)===16384},isLink(e){return(e&61440)===40960},isChrdev(e){return(e&61440)===8192},isBlkdev(e){return(e&61440)===24576},isFIFO(e){return(e&61440)===4096},isSocket(e){return(e&49152)===49152},flagsToPermissionString(e){var r=["r","w","rw"][e&3];return e&512&&(r+="w"),r},nodePermissions(e,r){return i.ignorePermissions?0:r.includes("r")&&!(e.mode&292)||r.includes("w")&&!(e.mode&146)||r.includes("x")&&!(e.mode&73)?2:0},mayLookup(e){if(!i.isDir(e.mode))return 54;var r=i.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){if(!i.isDir(e.mode))return 54;try{var n=i.lookupNode(e,r);return 20}catch{}return i.nodePermissions(e,"wx")},mayDelete(e,r,n){var u;try{u=i.lookupNode(e,r)}catch(d){return d.errno}var l=i.nodePermissions(e,"wx");if(l)return l;if(n){if(!i.isDir(u.mode))return 54;if(i.isRoot(u)||i.getPath(u)===i.cwd())return 10}else if(i.isDir(u.mode))return 31;return 0},mayOpen(e,r){return e?i.isLink(e.mode)?32:i.isDir(e.mode)&&(i.flagsToPermissionString(r)!=="r"||r&576)?31:i.nodePermissions(e,i.flagsToPermissionString(r)):44},checkOpExists(e,r){if(!e)throw new i.ErrnoError(r);return e},MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=i.MAX_OPEN_FDS;e++)if(!i.streams[e])return e;throw new i.ErrnoError(33)},getStreamChecked(e){var r=i.getStream(e);if(!r)throw new i.ErrnoError(8);return r},getStream:e=>i.streams[e],createStream(e,r=-1){return e=Object.assign(new i.FSStream,e),r==-1&&(r=i.nextfd()),e.fd=r,i.streams[r]=e,e},closeStream(e){i.streams[e]=null},dupStream(e,r=-1){var n=i.createStream(e,r);return n.stream_ops?.dup?.(n),n},doSetAttr(e,r,n){var u=e?.stream_ops.setattr,l=u?e:r;u??=r.node_ops.setattr,i.checkOpExists(u,63),u(l,n)},chrdev_stream_ops:{open(e){var r=i.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open?.(e)},llseek(){throw new i.ErrnoError(70)}},major:e=>e>>8,minor:e=>e&255,makedev:(e,r)=>e<<8|r,registerDevice(e,r){i.devices[e]={stream_ops:r}},getDevice:e=>i.devices[e],getMounts(e){for(var r=[],n=[e];n.length;){var u=n.pop();r.push(u),n.push(...u.mounts)}return r},syncfs(e,r){typeof e=="function"&&(r=e,e=!1),i.syncFSRequests++,i.syncFSRequests>1&&X(`warning: ${i.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var n=i.getMounts(i.root.mount),u=0;function l(p){return i.syncFSRequests--,r(p)}function d(p){if(p)return d.errored?void 0:(d.errored=!0,l(p));++u>=n.length&&l(null)}n.forEach(p=>{if(!p.type.syncfs)return d(null);p.type.syncfs(p,e,d)})},mount(e,r,n){var u=n==="/",l=!n,d;if(u&&i.root)throw new i.ErrnoError(10);if(!u&&!l){var p=i.lookupPath(n,{follow_mount:!1});if(n=p.path,d=p.node,i.isMountpoint(d))throw new i.ErrnoError(10);if(!i.isDir(d.mode))throw new i.ErrnoError(54)}var w={type:e,opts:r,mountpoint:n,mounts:[]},T=e.mount(w);return T.mount=w,w.root=T,u?i.root=T:d&&(d.mounted=w,d.mount&&d.mount.mounts.push(w)),T},unmount(e){var r=i.lookupPath(e,{follow_mount:!1});if(!i.isMountpoint(r.node))throw new i.ErrnoError(28);var n=r.node,u=n.mounted,l=i.getMounts(u);Object.keys(i.nameTable).forEach(p=>{for(var w=i.nameTable[p];w;){var T=w.name_next;l.includes(w.mount)&&i.destroyNode(w),w=T}}),n.mounted=null;var d=n.mount.mounts.indexOf(u);n.mount.mounts.splice(d,1)},lookup(e,r){return e.node_ops.lookup(e,r)},mknod(e,r,n){var u=i.lookupPath(e,{parent:!0}),l=u.node,d=G.basename(e);if(!d)throw new i.ErrnoError(28);if(d==="."||d==="..")throw new i.ErrnoError(20);var p=i.mayCreate(l,d);if(p)throw new i.ErrnoError(p);if(!l.node_ops.mknod)throw new i.ErrnoError(63);return l.node_ops.mknod(l,d,r,n)},statfs(e){return i.statfsNode(i.lookupPath(e,{follow:!0}).node)},statfsStream(e){return i.statfsNode(e.node)},statfsNode(e){var r={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:i.nextInode,ffree:i.nextInode-1,fsid:42,flags:2,namelen:255};return e.node_ops.statfs&&Object.assign(r,e.node_ops.statfs(e.mount.opts.root)),r},create(e,r=438){return r&=4095,r|=32768,i.mknod(e,r,0)},mkdir(e,r=511){return r&=1023,r|=16384,i.mknod(e,r,0)},mkdirTree(e,r){var n=e.split("/"),u="";for(var l of n)if(l){(u||G.isAbs(e))&&(u+="/"),u+=l;try{i.mkdir(u,r)}catch(d){if(d.errno!=20)throw d}}},mkdev(e,r,n){return typeof n>"u"&&(n=r,r=438),r|=8192,i.mknod(e,r,n)},symlink(e,r){if(!De.resolve(e))throw new i.ErrnoError(44);var n=i.lookupPath(r,{parent:!0}),u=n.node;if(!u)throw new i.ErrnoError(44);var l=G.basename(r),d=i.mayCreate(u,l);if(d)throw new i.ErrnoError(d);if(!u.node_ops.symlink)throw new i.ErrnoError(63);return u.node_ops.symlink(u,l,e)},rename(e,r){var n=G.dirname(e),u=G.dirname(r),l=G.basename(e),d=G.basename(r),p,w,T;if(p=i.lookupPath(e,{parent:!0}),w=p.node,p=i.lookupPath(r,{parent:!0}),T=p.node,!w||!T)throw new i.ErrnoError(44);if(w.mount!==T.mount)throw new i.ErrnoError(75);var F=i.lookupNode(w,l),V=De.relative(e,u);if(V.charAt(0)!==".")throw new i.ErrnoError(28);if(V=De.relative(r,n),V.charAt(0)!==".")throw new i.ErrnoError(55);var J;try{J=i.lookupNode(T,d)}catch{}if(F!==J){var L=i.isDir(F.mode),D=i.mayDelete(w,l,L);if(D)throw new i.ErrnoError(D);if(D=J?i.mayDelete(T,d,L):i.mayCreate(T,d),D)throw new i.ErrnoError(D);if(!w.node_ops.rename)throw new i.ErrnoError(63);if(i.isMountpoint(F)||J&&i.isMountpoint(J))throw new i.ErrnoError(10);if(T!==w&&(D=i.nodePermissions(w,"w"),D))throw new i.ErrnoError(D);i.hashRemoveNode(F);try{w.node_ops.rename(F,T,d),F.parent=T}catch($){throw $}finally{i.hashAddNode(F)}}},rmdir(e){var r=i.lookupPath(e,{parent:!0}),n=r.node,u=G.basename(e),l=i.lookupNode(n,u),d=i.mayDelete(n,u,!0);if(d)throw new i.ErrnoError(d);if(!n.node_ops.rmdir)throw new i.ErrnoError(63);if(i.isMountpoint(l))throw new i.ErrnoError(10);n.node_ops.rmdir(n,u),i.destroyNode(l)},readdir(e){var r=i.lookupPath(e,{follow:!0}),n=r.node,u=i.checkOpExists(n.node_ops.readdir,54);return u(n)},unlink(e){var r=i.lookupPath(e,{parent:!0}),n=r.node;if(!n)throw new i.ErrnoError(44);var u=G.basename(e),l=i.lookupNode(n,u),d=i.mayDelete(n,u,!1);if(d)throw new i.ErrnoError(d);if(!n.node_ops.unlink)throw new i.ErrnoError(63);if(i.isMountpoint(l))throw new i.ErrnoError(10);n.node_ops.unlink(n,u),i.destroyNode(l)},readlink(e){var r=i.lookupPath(e),n=r.node;if(!n)throw new i.ErrnoError(44);if(!n.node_ops.readlink)throw new i.ErrnoError(28);return n.node_ops.readlink(n)},stat(e,r){var n=i.lookupPath(e,{follow:!r}),u=n.node,l=i.checkOpExists(u.node_ops.getattr,63);return l(u)},fstat(e){var r=i.getStreamChecked(e),n=r.node,u=r.stream_ops.getattr,l=u?r:n;return u??=n.node_ops.getattr,i.checkOpExists(u,63),u(l)},lstat(e){return i.stat(e,!0)},doChmod(e,r,n,u){i.doSetAttr(e,r,{mode:n&4095|r.mode&-4096,ctime:Date.now(),dontFollow:u})},chmod(e,r,n){var u;if(typeof e=="string"){var l=i.lookupPath(e,{follow:!n});u=l.node}else u=e;i.doChmod(null,u,r,n)},lchmod(e,r){i.chmod(e,r,!0)},fchmod(e,r){var n=i.getStreamChecked(e);i.doChmod(n,n.node,r,!1)},doChown(e,r,n){i.doSetAttr(e,r,{timestamp:Date.now(),dontFollow:n})},chown(e,r,n,u){var l;if(typeof e=="string"){var d=i.lookupPath(e,{follow:!u});l=d.node}else l=e;i.doChown(null,l,u)},lchown(e,r,n){i.chown(e,r,n,!0)},fchown(e,r,n){var u=i.getStreamChecked(e);i.doChown(u,u.node,!1)},doTruncate(e,r,n){if(i.isDir(r.mode))throw new i.ErrnoError(31);if(!i.isFile(r.mode))throw new i.ErrnoError(28);var u=i.nodePermissions(r,"w");if(u)throw new i.ErrnoError(u);i.doSetAttr(e,r,{size:n,timestamp:Date.now()})},truncate(e,r){if(r<0)throw new i.ErrnoError(28);var n;if(typeof e=="string"){var u=i.lookupPath(e,{follow:!0});n=u.node}else n=e;i.doTruncate(null,n,r)},ftruncate(e,r){var n=i.getStreamChecked(e);if(r<0||!(n.flags&2097155))throw new i.ErrnoError(28);i.doTruncate(n,n.node,r)},utime(e,r,n){var u=i.lookupPath(e,{follow:!0}),l=u.node,d=i.checkOpExists(l.node_ops.setattr,63);d(l,{atime:r,mtime:n})},open(e,r,n=438){if(e==="")throw new i.ErrnoError(44);r=typeof r=="string"?xi(r):r,r&64?n=n&4095|32768:n=0;var u,l;if(typeof e=="object")u=e;else{l=e.endsWith("/");var d=i.lookupPath(e,{follow:!(r&131072),noent_okay:!0});u=d.node,e=d.path}var p=!1;if(r&64)if(u){if(r&128)throw new i.ErrnoError(20)}else{if(l)throw new i.ErrnoError(31);u=i.mknod(e,n|511,0),p=!0}if(!u)throw new i.ErrnoError(44);if(i.isChrdev(u.mode)&&(r&=-513),r&65536&&!i.isDir(u.mode))throw new i.ErrnoError(54);if(!p){var w=i.mayOpen(u,r);if(w)throw new i.ErrnoError(w)}r&512&&!p&&i.truncate(u,0),r&=-131713;var T=i.createStream({node:u,path:i.getPath(u),flags:r,seekable:!0,position:0,stream_ops:u.stream_ops,ungotten:[],error:!1});return T.stream_ops.open&&T.stream_ops.open(T),p&&i.chmod(u,n&511),s.logReadFiles&&!(r&1)&&(e in i.readFiles||(i.readFiles[e]=1)),T},close(e){if(i.isClosed(e))throw new i.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(r){throw r}finally{i.closeStream(e.fd)}e.fd=null},isClosed(e){return e.fd===null},llseek(e,r,n){if(i.isClosed(e))throw new i.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new i.ErrnoError(70);if(n!=0&&n!=1&&n!=2)throw new i.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,n),e.ungotten=[],e.position},read(e,r,n,u,l){if(u<0||l<0)throw new i.ErrnoError(28);if(i.isClosed(e))throw new i.ErrnoError(8);if((e.flags&2097155)===1)throw new i.ErrnoError(8);if(i.isDir(e.node.mode))throw new i.ErrnoError(31);if(!e.stream_ops.read)throw new i.ErrnoError(28);var d=typeof l<"u";if(!d)l=e.position;else if(!e.seekable)throw new i.ErrnoError(70);var p=e.stream_ops.read(e,r,n,u,l);return d||(e.position+=p),p},write(e,r,n,u,l,d){if(u<0||l<0)throw new i.ErrnoError(28);if(i.isClosed(e))throw new i.ErrnoError(8);if(!(e.flags&2097155))throw new i.ErrnoError(8);if(i.isDir(e.node.mode))throw new i.ErrnoError(31);if(!e.stream_ops.write)throw new i.ErrnoError(28);e.seekable&&e.flags&1024&&i.llseek(e,0,2);var p=typeof l<"u";if(!p)l=e.position;else if(!e.seekable)throw new i.ErrnoError(70);var w=e.stream_ops.write(e,r,n,u,l,d);return p||(e.position+=w),w},mmap(e,r,n,u,l){if(u&2&&!(l&2)&&(e.flags&2097155)!==2)throw new i.ErrnoError(2);if((e.flags&2097155)===1)throw new i.ErrnoError(2);if(!e.stream_ops.mmap)throw new i.ErrnoError(43);if(!r)throw new i.ErrnoError(28);return e.stream_ops.mmap(e,r,n,u,l)},msync(e,r,n,u,l){return e.stream_ops.msync?e.stream_ops.msync(e,r,n,u,l):0},ioctl(e,r,n){if(!e.stream_ops.ioctl)throw new i.ErrnoError(59);return e.stream_ops.ioctl(e,r,n)},readFile(e,r={}){if(r.flags=r.flags||0,r.encoding=r.encoding||"binary",r.encoding!=="utf8"&&r.encoding!=="binary")throw new Error(`Invalid encoding type "${r.encoding}"`);var n=i.open(e,r.flags),u=i.stat(e),l=u.size,d=new Uint8Array(l);return i.read(n,d,0,l,0),r.encoding==="utf8"&&(d=Ve(d)),i.close(n),d},writeFile(e,r,n={}){n.flags=n.flags||577;var u=i.open(e,n.flags,n.mode);if(typeof r=="string"&&(r=new Uint8Array(x(r,!0))),ArrayBuffer.isView(r))i.write(u,r,0,r.byteLength,void 0,n.canOwn);else throw new Error("Unsupported data type");i.close(u)},cwd:()=>i.currentPath,chdir(e){var r=i.lookupPath(e,{follow:!0});if(r.node===null)throw new i.ErrnoError(44);if(!i.isDir(r.node.mode))throw new i.ErrnoError(54);var n=i.nodePermissions(r.node,"x");if(n)throw new i.ErrnoError(n);i.currentPath=r.path},createDefaultDirectories(){i.mkdir("/tmp"),i.mkdir("/home"),i.mkdir("/home/web_user")},createDefaultDevices(){i.mkdir("/dev"),i.registerDevice(i.makedev(1,3),{read:()=>0,write:(u,l,d,p,w)=>p,llseek:()=>0}),i.mkdev("/dev/null",i.makedev(1,3)),z.register(i.makedev(5,0),z.default_tty_ops),z.register(i.makedev(6,0),z.default_tty1_ops),i.mkdev("/dev/tty",i.makedev(5,0)),i.mkdev("/dev/tty1",i.makedev(6,0));var e=new Uint8Array(1024),r=0,n=()=>(r===0&&(lr(e),r=e.byteLength),e[--r]);i.createDevice("/dev","random",n),i.createDevice("/dev","urandom",n),i.mkdir("/dev/shm"),i.mkdir("/dev/shm/tmp")},createSpecialDirectories(){i.mkdir("/proc");var e=i.mkdir("/proc/self");i.mkdir("/proc/self/fd"),i.mount({mount(){var r=i.createNode(e,"fd",16895,73);return r.stream_ops={llseek:A.stream_ops.llseek},r.node_ops={lookup(n,u){var l=+u,d=i.getStreamChecked(l),p={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>d.path},id:l+1};return p.parent=p,p},readdir(){return Array.from(i.streams.entries()).filter(([n,u])=>u).map(([n,u])=>n.toString())}},r}},{},"/proc/self/fd")},createStandardStreams(e,r,n){e?i.createDevice("/dev","stdin",e):i.symlink("/dev/tty","/dev/stdin"),r?i.createDevice("/dev","stdout",null,r):i.symlink("/dev/tty","/dev/stdout"),n?i.createDevice("/dev","stderr",null,n):i.symlink("/dev/tty1","/dev/stderr");var u=i.open("/dev/stdin",0),l=i.open("/dev/stdout",1),d=i.open("/dev/stderr",1)},staticInit(){i.nameTable=new Array(4096),i.mount(A,{},"/"),i.createDefaultDirectories(),i.createDefaultDevices(),i.createSpecialDirectories(),i.filesystems={MEMFS:A,NODEFS:C,WORKERFS:ue}},init(e,r,n){i.initialized=!0,e??=s.stdin,r??=s.stdout,n??=s.stderr,i.createStandardStreams(e,r,n)},quit(){i.initialized=!1;for(var e of i.streams)e&&i.close(e)},findObject(e,r){var n=i.analyzePath(e,r);return n.exists?n.object:null},analyzePath(e,r){try{var n=i.lookupPath(e,{follow:!r});e=n.path}catch{}var u={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=i.lookupPath(e,{parent:!0});u.parentExists=!0,u.parentPath=n.path,u.parentObject=n.node,u.name=G.basename(e),n=i.lookupPath(e,{follow:!r}),u.exists=!0,u.path=n.path,u.object=n.node,u.name=n.node.name,u.isRoot=n.path==="/"}catch(l){u.error=l.errno}return u},createPath(e,r,n,u){e=typeof e=="string"?e:i.getPath(e);for(var l=r.split("/").reverse();l.length;){var d=l.pop();if(d){var p=G.join2(e,d);try{i.mkdir(p)}catch(w){if(w.errno!=20)throw w}e=p}}return p},createFile(e,r,n,u,l){var d=G.join2(typeof e=="string"?e:i.getPath(e),r),p=It(u,l);return i.create(d,p)},createDataFile(e,r,n,u,l,d){var p=r;e&&(e=typeof e=="string"?e:i.getPath(e),p=r?G.join2(e,r):e);var w=It(u,l),T=i.create(p,w);if(n){if(typeof n=="string"){for(var F=new Array(n.length),V=0,J=n.length;V<J;++V)F[V]=n.charCodeAt(V);n=F}i.chmod(T,w|146);var L=i.open(T,577);i.write(L,n,0,n.length,0,d),i.close(L),i.chmod(T,w)}},createDevice(e,r,n,u){var l=G.join2(typeof e=="string"?e:i.getPath(e),r),d=It(!!n,!!u);i.createDevice.major??=64;var p=i.makedev(i.createDevice.major++,0);return i.registerDevice(p,{open(w){w.seekable=!1},close(w){u?.buffer?.length&&u(10)},read(w,T,F,V,J){for(var L=0,D=0;D<V;D++){var $;try{$=n()}catch{throw new i.ErrnoError(29)}if($===void 0&&L===0)throw new i.ErrnoError(6);if($==null)break;L++,T[F+D]=$}return L&&(w.node.atime=Date.now()),L},write(w,T,F,V,J){for(var L=0;L<V;L++)try{u(T[F+L])}catch{throw new i.ErrnoError(29)}return V&&(w.node.mtime=w.node.ctime=Date.now()),L}}),i.mkdev(l,d,p)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if(typeof XMLHttpRequest<"u")throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{e.contents=te(e.url),e.usedBytes=e.contents.length}catch{throw new i.ErrnoError(29)}},createLazyFile(e,r,n,u,l){class d{lengthKnown=!1;chunks=[];get(D){if(!(D>this.length-1||D<0)){var $=D%this.chunkSize,se=D/this.chunkSize|0;return this.getter(se)[$]}}setDataGetter(D){this.getter=D}cacheLength(){var D=new XMLHttpRequest;if(D.open("HEAD",n,!1),D.send(null),!(D.status>=200&&D.status<300||D.status===304))throw new Error("Couldn't load "+n+". Status: "+D.status);var $=Number(D.getResponseHeader("Content-length")),se,Ie=(se=D.getResponseHeader("Accept-Ranges"))&&se==="bytes",Se=(se=D.getResponseHeader("Content-Encoding"))&&se==="gzip",je=1024*1024;Ie||(je=$);var ze=(He,gr)=>{if(He>gr)throw new Error("invalid range ("+He+", "+gr+") or no bytes requested!");if(gr>$-1)throw new Error("only "+$+" bytes available! programmer error!");var ve=new XMLHttpRequest;if(ve.open("GET",n,!1),$!==je&&ve.setRequestHeader("Range","bytes="+He+"-"+gr),ve.responseType="arraybuffer",ve.overrideMimeType&&ve.overrideMimeType("text/plain; charset=x-user-defined"),ve.send(null),!(ve.status>=200&&ve.status<300||ve.status===304))throw new Error("Couldn't load "+n+". Status: "+ve.status);return ve.response!==void 0?new Uint8Array(ve.response||[]):x(ve.responseText||"",!0)},Ir=this;Ir.setDataGetter(He=>{var gr=He*je,ve=(He+1)*je-1;if(ve=Math.min(ve,$-1),typeof Ir.chunks[He]>"u"&&(Ir.chunks[He]=ze(gr,ve)),typeof Ir.chunks[He]>"u")throw new Error("doXHR failed!");return Ir.chunks[He]}),(Se||!$)&&(je=$=1,$=this.getter(0).length,je=$,Y("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=$,this._chunkSize=je,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!m)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var p=new d,w={isDevice:!1,contents:p}}else var w={isDevice:!1,url:n};var T=i.createFile(e,r,w,u,l);w.contents?T.contents=w.contents:w.url&&(T.contents=null,T.url=w.url),Object.defineProperties(T,{usedBytes:{get:function(){return this.contents.length}}});var F={},V=Object.keys(T.stream_ops);V.forEach(L=>{var D=T.stream_ops[L];F[L]=(...$)=>(i.forceLoadFile(T),D(...$))});function J(L,D,$,se,Ie){var Se=L.node.contents;if(Ie>=Se.length)return 0;var je=Math.min(Se.length-Ie,se);if(Se.slice)for(var ze=0;ze<je;ze++)D[$+ze]=Se[Ie+ze];else for(var ze=0;ze<je;ze++)D[$+ze]=Se.get(Ie+ze);return je}return F.read=(L,D,$,se,Ie)=>(i.forceLoadFile(T),J(L,D,$,se,Ie)),F.mmap=(L,D,$,se,Ie)=>{i.forceLoadFile(T);var Se=U(D);if(!Se)throw new i.ErrnoError(48);return J(L,I,Se,D,$),{ptr:Se,allocated:!0}},T.stream_ops=F,T}},Ai=(e,r)=>e?Ve(Ae,e,r):"",q={DEFAULT_POLLMASK:5,calculateAt(e,r,n){if(G.isAbs(r))return r;var u;if(e===-100)u=i.cwd();else{var l=q.getStreamFromFD(e);u=l.path}if(r.length==0){if(!n)throw new i.ErrnoError(44);return u}return u+"/"+r},writeStat(e,r){S[e>>2]=r.dev,S[e+4>>2]=r.mode,re[e+8>>2]=r.nlink,S[e+12>>2]=r.uid,S[e+16>>2]=r.gid,S[e+20>>2]=r.rdev,he[e+24>>3]=BigInt(r.size),S[e+32>>2]=4096,S[e+36>>2]=r.blocks;var n=r.atime.getTime(),u=r.mtime.getTime(),l=r.ctime.getTime();return he[e+40>>3]=BigInt(Math.floor(n/1e3)),re[e+48>>2]=n%1e3*1e3*1e3,he[e+56>>3]=BigInt(Math.floor(u/1e3)),re[e+64>>2]=u%1e3*1e3*1e3,he[e+72>>3]=BigInt(Math.floor(l/1e3)),re[e+80>>2]=l%1e3*1e3*1e3,he[e+88>>3]=BigInt(r.ino),0},writeStatFs(e,r){S[e+4>>2]=r.bsize,S[e+40>>2]=r.bsize,S[e+8>>2]=r.blocks,S[e+12>>2]=r.bfree,S[e+16>>2]=r.bavail,S[e+20>>2]=r.files,S[e+24>>2]=r.ffree,S[e+28>>2]=r.fsid,S[e+44>>2]=r.flags,S[e+36>>2]=r.namelen},doMsync(e,r,n,u,l){if(!i.isFile(r.node.mode))throw new i.ErrnoError(43);if(u&2)return 0;var d=Ae.slice(e,e+n);i.msync(r,d,l,n,u)},getStreamFromFD(e){var r=i.getStreamChecked(e);return r},varargs:void 0,getStr(e){var r=Ai(e);return r}};function Pi(e,r){try{return e=q.getStr(e),i.chmod(e,r),0}catch(n){if(typeof i>"u"||n.name!=="ErrnoError")throw n;return-n.errno}}function Ri(e,r,n,u,l){try{r=q.getStr(r);var d=l&256;return l=l&-257,r=q.calculateAt(e,r),(d?i.lchown:i.chown)(r,n,u),0}catch(p){if(typeof i>"u"||p.name!=="ErrnoError")throw p;return-p.errno}}function Fi(e,r){try{return q.writeStat(r,i.fstat(e))}catch(n){if(typeof i>"u"||n.name!=="ErrnoError")throw n;return-n.errno}}var Mi=9007199254740992,Ci=-9007199254740992,Fr=e=>e<Ci||e>Mi?NaN:Number(e);function Di(e,r){r=Fr(r);try{return isNaN(r)?-61:(i.ftruncate(e,r),0)}catch(n){if(typeof i>"u"||n.name!=="ErrnoError")throw n;return-n.errno}}var Ze=(e,r,n)=>b(e,Ae,r,n);function Ii(e,r){try{if(r===0)return-28;var n=i.cwd(),u=y(n)+1;return r<u?-68:(Ze(n,e,r),u)}catch(l){if(typeof i>"u"||l.name!=="ErrnoError")throw l;return-l.errno}}function ji(e,r,n){try{var u=q.getStreamFromFD(e);u.getdents||=i.readdir(u.path);for(var l=280,d=0,p=i.llseek(u,0,1),w=Math.floor(p/l),T=Math.min(u.getdents.length,w+Math.floor(n/l)),F=w;F<T;F++){var V,J,L=u.getdents[F];if(L===".")V=u.node.id,J=4;else if(L===".."){var D=i.lookupPath(u.path,{parent:!0});V=D.node.id,J=4}else{var $;try{$=i.lookupNode(u.node,L)}catch(se){if(se?.errno===28)continue;throw se}V=$.id,J=i.isChrdev($.mode)?2:i.isDir($.mode)?4:i.isLink($.mode)?10:8}he[r+d>>3]=BigInt(V),he[r+d+8>>3]=BigInt((F+1)*l),pe[r+d+16>>1]=280,I[r+d+18]=J,Ze(L,r+d+19,256),d+=l}return i.llseek(u,F*l,0),d}catch(se){if(typeof i>"u"||se.name!=="ErrnoError")throw se;return-se.errno}}var Bn=()=>{var e=S[+q.varargs>>2];return q.varargs+=4,e},Mr=Bn;function zi(e,r,n){q.varargs=n;try{var u=q.getStreamFromFD(e);switch(r){case 21509:return u.tty?0:-59;case 21505:{if(!u.tty)return-59;if(u.tty.ops.ioctl_tcgets){var l=u.tty.ops.ioctl_tcgets(u),d=Mr();S[d>>2]=l.c_iflag||0,S[d+4>>2]=l.c_oflag||0,S[d+8>>2]=l.c_cflag||0,S[d+12>>2]=l.c_lflag||0;for(var p=0;p<32;p++)I[d+p+17]=l.c_cc[p]||0;return 0}return 0}case 21510:case 21511:case 21512:return u.tty?0:-59;case 21506:case 21507:case 21508:{if(!u.tty)return-59;if(u.tty.ops.ioctl_tcsets){for(var d=Mr(),w=S[d>>2],T=S[d+4>>2],F=S[d+8>>2],V=S[d+12>>2],J=[],p=0;p<32;p++)J.push(I[d+p+17]);return u.tty.ops.ioctl_tcsets(u.tty,r,{c_iflag:w,c_oflag:T,c_cflag:F,c_lflag:V,c_cc:J})}return 0}case 21519:{if(!u.tty)return-59;var d=Mr();return S[d>>2]=0,0}case 21520:return u.tty?-28:-59;case 21531:{var d=Mr();return i.ioctl(u,r,d)}case 21523:{if(!u.tty)return-59;if(u.tty.ops.ioctl_tiocgwinsz){var L=u.tty.ops.ioctl_tiocgwinsz(u.tty),d=Mr();pe[d>>1]=L[0],pe[d+2>>1]=L[1]}return 0}case 21524:return u.tty?0:-59;case 21515:return u.tty?0:-59;default:return-28}}catch(D){if(typeof i>"u"||D.name!=="ErrnoError")throw D;return-D.errno}}function Ui(e,r){try{return e=q.getStr(e),q.writeStat(r,i.lstat(e))}catch(n){if(typeof i>"u"||n.name!=="ErrnoError")throw n;return-n.errno}}function Li(e,r,n){try{return r=q.getStr(r),r=q.calculateAt(e,r),i.mkdir(r,n,0),0}catch(u){if(typeof i>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function Bi(e,r,n,u){try{r=q.getStr(r);var l=u&256,d=u&4096;return u=u&-6401,r=q.calculateAt(e,r,d),q.writeStat(n,l?i.lstat(r):i.stat(r))}catch(p){if(typeof i>"u"||p.name!=="ErrnoError")throw p;return-p.errno}}function qi(e,r,n,u){q.varargs=u;try{r=q.getStr(r),r=q.calculateAt(e,r);var l=u?Bn():0;return i.open(r,n,l).fd}catch(d){if(typeof i>"u"||d.name!=="ErrnoError")throw d;return-d.errno}}function $i(e,r,n,u){try{if(r=q.getStr(r),r=q.calculateAt(e,r),u<=0)return-28;var l=i.readlink(r),d=Math.min(u,y(l)),p=I[n+d];return Ze(l,n,u+1),I[n+d]=p,d}catch(w){if(typeof i>"u"||w.name!=="ErrnoError")throw w;return-w.errno}}function Hi(e,r,n,u){try{return r=q.getStr(r),u=q.getStr(u),r=q.calculateAt(e,r),u=q.calculateAt(n,u),i.rename(r,u),0}catch(l){if(typeof i>"u"||l.name!=="ErrnoError")throw l;return-l.errno}}function Wi(e){try{return e=q.getStr(e),i.rmdir(e),0}catch(r){if(typeof i>"u"||r.name!=="ErrnoError")throw r;return-r.errno}}function Ki(e,r){try{return e=q.getStr(e),q.writeStat(r,i.stat(e))}catch(n){if(typeof i>"u"||n.name!=="ErrnoError")throw n;return-n.errno}}function Yi(e,r,n){try{return e=q.getStr(e),n=q.getStr(n),n=q.calculateAt(r,n),i.symlink(e,n),0}catch(u){if(typeof i>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function Gi(e,r,n){try{if(r=q.getStr(r),r=q.calculateAt(e,r),!n)i.unlink(r);else if(n===512)i.rmdir(r);else return-28;return 0}catch(u){if(typeof i>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}var qn=e=>re[e>>2]+S[e+4>>2]*4294967296;function Vi(e,r,n,u){try{r=q.getStr(r),r=q.calculateAt(e,r,!0);var l=Date.now(),d,p;if(!n)d=l,p=l;else{var w=qn(n),T=S[n+8>>2];T==1073741823?d=l:T==1073741822?d=null:d=w*1e3+T/1e6,n+=16,w=qn(n),T=S[n+8>>2],T==1073741823?p=l:T==1073741822?p=null:p=w*1e3+T/1e6}return(p??d)!==null&&i.utime(r,d,p),0}catch(F){if(typeof i>"u"||F.name!=="ErrnoError")throw F;return-F.errno}}var Zi=()=>cr("");function Xi(e,r){e=Fr(e);var n=new Date(e*1e3);S[r>>2]=n.getUTCSeconds(),S[r+4>>2]=n.getUTCMinutes(),S[r+8>>2]=n.getUTCHours(),S[r+12>>2]=n.getUTCDate(),S[r+16>>2]=n.getUTCMonth(),S[r+20>>2]=n.getUTCFullYear()-1900,S[r+24>>2]=n.getUTCDay();var u=Date.UTC(n.getUTCFullYear(),0,1,0,0,0,0),l=(n.getTime()-u)/(1e3*60*60*24)|0;S[r+28>>2]=l}var Qi=e=>e%4===0&&(e%100!==0||e%400===0),Ji=[0,31,60,91,121,152,182,213,244,274,305,335],es=[0,31,59,90,120,151,181,212,243,273,304,334],$n=e=>{var r=Qi(e.getFullYear()),n=r?Ji:es,u=n[e.getMonth()]+e.getDate()-1;return u};function rs(e,r){e=Fr(e);var n=new Date(e*1e3);S[r>>2]=n.getSeconds(),S[r+4>>2]=n.getMinutes(),S[r+8>>2]=n.getHours(),S[r+12>>2]=n.getDate(),S[r+16>>2]=n.getMonth(),S[r+20>>2]=n.getFullYear()-1900,S[r+24>>2]=n.getDay();var u=$n(n)|0;S[r+28>>2]=u,S[r+36>>2]=-(n.getTimezoneOffset()*60);var l=new Date(n.getFullYear(),0,1),d=new Date(n.getFullYear(),6,1).getTimezoneOffset(),p=l.getTimezoneOffset(),w=(d!=p&&n.getTimezoneOffset()==Math.min(p,d))|0;S[r+32>>2]=w}var ts=function(e){var r=(()=>{var n=new Date(S[e+20>>2]+1900,S[e+16>>2],S[e+12>>2],S[e+8>>2],S[e+4>>2],S[e>>2],0),u=S[e+32>>2],l=n.getTimezoneOffset(),d=new Date(n.getFullYear(),0,1),p=new Date(n.getFullYear(),6,1).getTimezoneOffset(),w=d.getTimezoneOffset(),T=Math.min(w,p);if(u<0)S[e+32>>2]=+(p!=w&&T==l);else if(u>0!=(T==l)){var F=Math.max(w,p),V=u>0?T:F;n.setTime(n.getTime()+(V-l)*6e4)}S[e+24>>2]=n.getDay();var J=$n(n)|0;S[e+28>>2]=J,S[e>>2]=n.getSeconds(),S[e+4>>2]=n.getMinutes(),S[e+8>>2]=n.getHours(),S[e+12>>2]=n.getDate(),S[e+16>>2]=n.getMonth(),S[e+20>>2]=n.getYear();var L=n.getTime();return isNaN(L)?-1:L/1e3})();return BigInt(r)},ns=(e,r,n,u)=>{var l=new Date().getFullYear(),d=new Date(l,0,1),p=new Date(l,6,1),w=d.getTimezoneOffset(),T=p.getTimezoneOffset(),F=Math.max(w,T);re[e>>2]=F*60,S[r>>2]=+(w!=T);var V=D=>{var $=D>=0?"-":"+",se=Math.abs(D),Ie=String(Math.floor(se/60)).padStart(2,"0"),Se=String(se%60).padStart(2,"0");return`UTC${$}${Ie}${Se}`},J=V(w),L=V(T);T<w?(Ze(J,n,17),Ze(L,u,17)):(Ze(J,u,17),Ze(L,n,17))},os=()=>performance.now(),Hn=()=>Date.now(),is=1,ss=e=>e>=0&&e<=3;function as(e,r,n){if(r=Fr(r),!ss(e))return 28;var u;if(e===0)u=Hn();else if(is)u=os();else return 52;var l=Math.round(u*1e3*1e3);return he[n>>3]=BigInt(l),0}var Wn=()=>2147483648,us=()=>Wn(),cs=(e,r)=>Math.ceil(e/r)*r,fs=e=>{var r=ie.buffer,n=(e-r.byteLength+65535)/65536|0;try{return ie.grow(n),Pe(),1}catch{}},ls=e=>{var r=Ae.length;e>>>=0;var n=Wn();if(e>n)return!1;for(var u=1;u<=4;u*=2){var l=r*(1+.2/u);l=Math.min(l,e+100663296);var d=Math.min(n,cs(Math.max(e,l),65536)),p=fs(d);if(p)return!0}return!1},jt={},ds=()=>_||"./this.program",Cr=()=>{if(!Cr.strings){var e=(typeof navigator=="object"&&navigator.language||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:ds()};for(var n in jt)jt[n]===void 0?delete r[n]:r[n]=jt[n];var u=[];for(var n in r)u.push(`${n}=${r[n]}`);Cr.strings=u}return Cr.strings},ps=(e,r)=>{var n=0,u=0;for(var l of Cr()){var d=r+n;re[e+u>>2]=d,n+=Ze(l,d,1/0)+1,u+=4}return 0},hs=(e,r)=>{var n=Cr();re[e>>2]=n.length;var u=0;for(var l of n)u+=y(l)+1;return re[r>>2]=u,0},vs=0,ms=()=>Yr||vs>0,gs=e=>{me=e,ms()||(s.onExit?.(e),ye=!0),N(e,new W(e))},Kn=(e,r)=>{me=e,gs(e)},ys=Kn;function ws(e){try{var r=q.getStreamFromFD(e);return i.close(r),0}catch(n){if(typeof i>"u"||n.name!=="ErrnoError")throw n;return n.errno}}function Es(e,r){try{var n=0,u=0,l=0,d=q.getStreamFromFD(e),p=d.tty?2:i.isDir(d.mode)?3:i.isLink(d.mode)?7:4;return I[r]=p,pe[r+2>>1]=l,he[r+8>>3]=BigInt(n),he[r+16>>3]=BigInt(u),0}catch(w){if(typeof i>"u"||w.name!=="ErrnoError")throw w;return w.errno}}var _s=(e,r,n,u)=>{for(var l=0,d=0;d<n;d++){var p=re[r>>2],w=re[r+4>>2];r+=8;var T=i.read(e,I,p,w,u);if(T<0)return-1;if(l+=T,T<w)break;typeof u<"u"&&(u+=T)}return l};function Ts(e,r,n,u){try{var l=q.getStreamFromFD(e),d=_s(l,r,n);return re[u>>2]=d,0}catch(p){if(typeof i>"u"||p.name!=="ErrnoError")throw p;return p.errno}}function Os(e,r,n,u){r=Fr(r);try{if(isNaN(r))return 61;var l=q.getStreamFromFD(e);return i.llseek(l,r,n),he[u>>3]=BigInt(l.position),l.getdents&&r===0&&n===0&&(l.getdents=null),0}catch(d){if(typeof i>"u"||d.name!=="ErrnoError")throw d;return d.errno}}var ks=(e,r,n,u)=>{for(var l=0,d=0;d<n;d++){var p=re[r>>2],w=re[r+4>>2];r+=8;var T=i.write(e,I,p,w,u);if(T<0)return-1;if(l+=T,T<w)break;typeof u<"u"&&(u+=T)}return l};function bs(e,r,n,u){try{var l=q.getStreamFromFD(e),d=ks(l,r,n);return re[u>>2]=d,0}catch(p){if(typeof i>"u"||p.name!=="ErrnoError")throw p;return p.errno}}var Ss=e=>{if(e instanceof W||e=="unwind")return me;N(1,e)},Yn=e=>Vn(e),xs=e=>{var r=y(e)+1,n=Yn(r);return Ze(e,n,r),n};i.createPreloadedFile=Si,i.staticInit(),A.doesNotExistError=new i.ErrnoError(44),A.doesNotExistError.stack="<generic error, no stack>",g&&C.staticInit(),s.noExitRuntime&&(Yr=s.noExitRuntime),s.preloadPlugins&&(Zr=s.preloadPlugins),s.print&&(Y=s.print),s.printErr&&(X=s.printErr),s.wasmBinary&&(Q=s.wasmBinary),s.arguments&&(E=s.arguments),s.thisProgram&&(_=s.thisProgram),s.callMain=zt,s.FS=i,s.NODEFS=C,s.WORKERFS=ue;var Gn,Ns,Vn,As;function Ps(e){s._main=Gn=e.__main_argc_argv,Ns=e._emscripten_stack_restore,Vn=e._emscripten_stack_alloc,As=e.emscripten_stack_get_current}var Zn={__cxa_throw:Vr,__syscall_chmod:Pi,__syscall_fchownat:Ri,__syscall_fstat64:Fi,__syscall_ftruncate64:Di,__syscall_getcwd:Ii,__syscall_getdents64:ji,__syscall_ioctl:zi,__syscall_lstat64:Ui,__syscall_mkdirat:Li,__syscall_newfstatat:Bi,__syscall_openat:qi,__syscall_readlinkat:$i,__syscall_renameat:Hi,__syscall_rmdir:Wi,__syscall_stat64:Ki,__syscall_symlinkat:Yi,__syscall_unlinkat:Gi,__syscall_utimensat:Vi,_abort_js:Zi,_gmtime_js:Xi,_localtime_js:rs,_mktime_js:ts,_tzset_js:ns,clock_time_get:as,emscripten_date_now:Hn,emscripten_get_heap_max:us,emscripten_resize_heap:ls,environ_get:ps,environ_sizes_get:hs,exit:ys,fd_close:ws,fd_fdstat_get:Es,fd_read:Ts,fd_seek:Os,fd_write:bs},Dr=await Mt();function zt(e=[]){var r=Gn;e.unshift(_);var n=e.length,u=Yn((n+1)*4),l=u;e.forEach(p=>{re[l>>2]=xs(p),l+=4}),re[l>>2]=0;try{var d=r(n,u);return Kn(d,!0),d}catch(p){return Ss(p)}}function Ut(e=E){if(Re>0){Fe=Ut;return}if(Je(),Re>0){Fe=Ut;return}function r(){if(s.calledRun=!0,!ye){Be(),de?.(s),s.onRuntimeInitialized?.();var n=s.noInitialRun||!1;n||zt(e),er()}}s.setStatus?(s.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>s.setStatus(""),1),r()},1)):r()}function Rs(){if(s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.shift()()}return Rs(),Ut(),s.FS=i,s.NODEFS=C,s.WORKERFS=ue,s.callMain=zt,Ge?a=s:a=new Promise((e,r)=>{de=e,ke=r}),a}})();typeof Jn=="object"&&typeof Qr=="object"?(Qr.exports=Lt,Qr.exports.default=Lt):typeof define=="function"&&define.amd&&define([],()=>Lt)});var Eo=Z(wo=>{"use strict";h();v();Object.defineProperty(wo,"__esModule",{value:!0})});var zr=Z(st=>{"use strict";h();v();Object.defineProperty(st,"__esModule",{value:!0});st.Nodes=void 0;function oa(t,o){return{type:"file",data:t,metadata:o}}function ia(t={},o){return{type:"directory",children:t,metadata:o}}function sa(t){return t.type==="file"}function aa(t){return t.type==="directory"}function ua(t){return t.metadata}function ca(t){return Object.keys(t.children)}function fa(t,o){return t.children[o]}function la(t,o){return o in t.children}st.Nodes={createDirectory:ia,createFile:oa,getChild:fa,getMetadata:ua,hasChild:la,isDirectory:aa,isFile:sa,readDirectory:ca}});var Ur=Z(ce=>{"use strict";h();v();Object.defineProperty(ce,"__esModule",{value:!0});ce.dirname=ce.basename=ce.extname=ce.join=ce.normalize=ce.sep=void 0;ce.sep="/";function da(t,o){return t.startsWith("/")&&(o="/"+o),o[o.length-1]!=="/"&&t.endsWith("/")&&(o=o+"/"),o}function _o(t){let o=t.split(ce.sep).filter(f=>!!f),a=0,s=o.length-1;for(;a<s;)o[a]==="."?(o.splice(a,1),s--):o[a]===".."&&a!==0?(o.splice(a-1,2),s-=2,a-=1):o[a]===""&&o[a+1]===""?(o.splice(a,1),s--):a++;return da(t,o.join(ce.sep))}ce.normalize=_o;function pa(...t){let o=_o(t.join(ce.sep));return o===""&&(o="."),o}ce.join=pa;function ha(t){let o=t.lastIndexOf(".");return o!==-1?t.slice(o):t}ce.extname=ha;function Gt(t,o){o&&t.endsWith(o)&&(t=t.slice(0,-o.length));let a=t.lastIndexOf(ce.sep);return a===t.length-1?(t=t.slice(0,-1),t.length>1?Gt(t):t):t.slice(a+1)}ce.basename=Gt;function va(t){let o=Gt(t),a=t.slice(0,-(o.length+1));return a===""&&(t.startsWith(ce.sep)?a=ce.sep:a="."),a}ce.dirname=va});var To=Z(at=>{"use strict";h();v();Object.defineProperty(at,"__esModule",{value:!0});at.Entries=void 0;var ma=zr(),ga=Ur();function ya(t){let[o,a]=t;return ma.Nodes.isDirectory(a)?Object.entries(a.children).map(([s,f])=>[(0,ga.join)(o,s),f]):[]}function wa(t,o){return[t,o]}at.Entries={createEntry:wa,getEntries:ya}});var ct=Z(or=>{"use strict";h();v();Object.defineProperty(or,"__esModule",{value:!0});or.getNewAndParentName=or.normalizePathLikeInternal=or.getPathComponents=void 0;var ut=Ur();function Oo(t){return o((0,ut.normalize)(t));function o(a){if(a.startsWith(".."))throw new Error(`Invalid path ${a}, can't go up past root.`);return a.startsWith(".")||a.startsWith("/")?o(a.slice(1)):a===""?[]:a.split(ut.sep).filter(s=>!!s)}}or.getPathComponents=Oo;function Ea(t){return typeof t=="string"?Oo(t):t}or.normalizePathLikeInternal=Ea;function _a(t){let o=typeof t=="string"?(0,ut.dirname)(t):t.slice(0,-1),a=typeof t=="string"?(0,ut.basename)(t):t[t.length-1];return{parentName:o,newName:a}}or.getNewAndParentName=_a});var Vt=Z(Ce=>{"use strict";h();v();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.getMetadata=Ce.readDirectory=Ce.readFile=Ce.getNode=Ce.getNodeInternal=void 0;var Er=zr(),Lr=Ur(),ft=ct();function ko(t,o,a){let s=(0,ft.normalizePathLikeInternal)(o),f=0,m=t;for(;f<s.length;){let g=s[f];if(m.type!=="directory")throw new Error(`File ${(0,Lr.join)(...s.slice(0,f))} is not a directory`);let E=Er.Nodes.getChild(m,g);if(!E)if(a.makeIntermediateDirectoryMetadata){let _=Er.Nodes.createDirectory({},a.makeIntermediateDirectoryMetadata((0,Lr.join)(...s.slice(0,f+1))));m.children[g]=_,E=_}else if(a.makeIntermediateDirectories){let _=Er.Nodes.createDirectory();m.children[g]=_,E=_}else throw new Error(`File ${(0,Lr.join)(...s.slice(0,f+1))} not found`);m=E,f++}return m}Ce.getNodeInternal=ko;function lt(t,o){return ko(t,o,{})}Ce.getNode=lt;function Ta(t,o){let a=(0,ft.normalizePathLikeInternal)(o),s=lt(t,a);if(!Er.Nodes.isFile(s))throw new Error(`Can't read, ${(0,Lr.join)(...a)} not a file`);return s.data}Ce.readFile=Ta;function Oa(t,o){let a=(0,ft.normalizePathLikeInternal)(o),s=lt(t,a);if(!Er.Nodes.isDirectory(s))throw new Error(`Can't read, ${(0,Lr.join)(...a)} not a directory`);return Er.Nodes.readDirectory(s)}Ce.readDirectory=Oa;function ka(t,o){let a=(0,ft.normalizePathLikeInternal)(o);return lt(t,a).metadata}Ce.getMetadata=ka});var So=Z(Oe=>{"use strict";h();v();Object.defineProperty(Oe,"__esModule",{value:!0});Oe.create=Oe.setMetadata=Oe.removeFile=Oe.makeDirectory=Oe.writeFile=Oe.setNode=void 0;var ir=zr(),Zt=ct(),dt=Vt();function bo(t,o,a,s){let{parentName:f,newName:m}=(0,Zt.getNewAndParentName)(o),g=(0,dt.getNodeInternal)(t,f,s??{});if(!ir.Nodes.isDirectory(g))throw new Error(`Can't create ${m}, ${f} not a directory`);g.children[m]=a}Oe.setNode=bo;function ba(t,o,a,s){var f;bo(t,o,ir.Nodes.createFile(a,(f=s)===null||f===void 0?void 0:f.metadata),s)}Oe.writeFile=ba;function Sa(t,o,a){var s;let{parentName:f,newName:m}=(0,Zt.getNewAndParentName)(o),g=(0,dt.getNodeInternal)(t,f,a??{});if(!ir.Nodes.isDirectory(g))throw new Error(`Can't create ${m}, ${f} not a directory`);ir.Nodes.getChild(g,m)&&ir.Nodes.isDirectory(g.children[m])||(g.children[m]=ir.Nodes.createDirectory({},(s=a)===null||s===void 0?void 0:s.metadata))}Oe.makeDirectory=Sa;function xa(t,o){let{parentName:a,newName:s}=(0,Zt.getNewAndParentName)(o),f=(0,dt.getNode)(t,a);if(!ir.Nodes.isDirectory(f))throw new Error(`Can't remove file ${s}, ${a} not a directory`);delete f.children[s]}Oe.removeFile=xa;function Na(t,o,a){let s=(0,dt.getNode)(t,o);s.metadata=a}Oe.setMetadata=Na;function Aa(t){return ir.Nodes.createDirectory({},t&&"metadata"in t?t.metadata:void 0)}Oe.create=Aa});var xo=Z(ht=>{"use strict";h();v();Object.defineProperty(ht,"__esModule",{value:!0});ht.Volume=void 0;var Pa=ct(),pt=Vt(),_r=So();ht.Volume={getPathComponents:Pa.getPathComponents,getMetadata:pt.getMetadata,getNode:pt.getNode,readDirectory:pt.readDirectory,readFile:pt.readFile,create:_r.create,makeDirectory:_r.makeDirectory,removeFile:_r.removeFile,setMetadata:_r.setMetadata,setNode:_r.setNode,writeFile:_r.writeFile}});var Xt=Z(ge=>{"use strict";h();v();var No=ge&&ge.__createBinding||(Object.create?function(t,o,a,s){s===void 0&&(s=a),Object.defineProperty(t,s,{enumerable:!0,get:function(){return o[a]}})}:function(t,o,a,s){s===void 0&&(s=a),t[s]=o[a]}),Ra=ge&&ge.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),vt=ge&&ge.__exportStar||function(t,o){for(var a in t)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&No(o,t,a)},Fa=ge&&ge.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&No(o,t,a);return Ra(o,t),o};Object.defineProperty(ge,"__esModule",{value:!0});ge.path=void 0;vt(Eo(),ge);vt(zr(),ge);vt(To(),ge);vt(xo(),ge);ge.path=Fa(Ur())});var mt=Z(Tr=>{"use strict";h();v();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.get=Ma;Tr.ancestors=Ca;Tr.access=Da;Tr.accessPath=Po;function Ma(t,o,a){if(a.includeTraversalContext){let f=Ao(t,o,a);return f[f.length-1]}let s=o.slice();for(;s.length>0;){let f=s.shift(),g=a.getChildren(t,s)[f];if(!g)return;t=g}return t}function Ca(t,o,a){return Ao(t,o,a).slice(0,-1)}function Ao(t,o,a){let s=o.slice(),f=[t];for(;s.length>0;){let m=s.shift(),g=a.includeTraversalContext?Ro(f):void 0,_=a.getChildren(t,s,g)[m];if(!_)return f;t=_,f.push(t)}return f}function Da(t,o,a){if(a.includeTraversalContext){let f=Po(t,o,a);return f[f.length-1]}let s=o.slice();for(;s.length>0;){let f=s.shift();t=a.getChildren(t,s)[f]}return t}function Po(t,o,a){let s=o.slice(),f=[t];for(;s.length>0;){let m=s.shift(),g=a.includeTraversalContext?Ro(f):void 0;t=a.getChildren(t,s,g)[m],f.push(t)}return f}function Ro(t){return{getRoot:()=>t[0],getParent:()=>t[t.length-2],getAncestors:()=>t.slice(0,-1)}}});var yt=Z(gt=>{"use strict";h();v();Object.defineProperty(gt,"__esModule",{value:!0});gt.comparePathsByComponent=Fo;gt.sortPaths=Ia;function Fo(t,o){for(let a=0;a<Math.min(t.length,o.length);a++){if(t[a]<o[a])return-1;if(t[a]>o[a])return 1}return t.length-o.length}function Ia(t){return[...t].sort(Fo)}});var wt=Z(Qt=>{"use strict";h();v();Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ancestorPaths=za;var ja=yt();function za(t,o){var a;let s=new Map,f=(a=o?.compare)!==null&&a!==void 0?a:ja.comparePathsByComponent,m=t.sort(f);for(let g of m)g.some((_,N)=>{let M=g.slice(0,N).join();return s.has(M)})||s.set(g.join(),g);return Array.from(s.values())}});var Do=Z(en=>{"use strict";h();v();Object.defineProperty(en,"__esModule",{value:!0});en.boxDiagram=qa;var le;(function(t){t.TopLeft="\u250C",t.TopRight="\u2510",t.BottomLeft="\u2514",t.BottomRight="\u2518",t.Horizontal="\u2500",t.Vertical="\u2502",t.BottomConnectorDown="\u252C",t.BottomConnectorUp="\u2534",t.TopConnectorUp="\u2534"})(le||(le={}));function Ua(t){let o=t.split(`
3
+ `),a=Math.max(...o.map(E=>E.length)),s=1,f=a+s*2+2,m=2+o.length,g=[[le.TopLeft,le.Horizontal.repeat(a+s*2),le.TopRight],...o.map(E=>[le.Vertical," ".repeat(s),E+(E.length<a?" ".repeat(a-E.length):"")," ".repeat(s),le.Vertical]),[le.BottomLeft,le.Horizontal.repeat(a+s*2),le.BottomRight]];return{width:f,height:m,contents:g.map(E=>E.join(""))}}function La(t){if(t.length===0)throw new Error("Can't merge empty array of boxes");return t.slice(1).reduce((a,s)=>{let f=Math.max(a.height,s.height),m=a.width+1+s.width,g=[];for(let E=0;E<f;E++)g.push((a.contents[E]||" ".repeat(a.width))+" ".repeat(1)+(s.contents[E]||" ".repeat(s.width)));return{height:f,width:m,contents:Co(g,m)}},t[0])}function Ba(t){if(t.length===0)throw new Error("Can't merge empty array of boxes");let a=Math.max(...t.map(s=>s.width));return t.slice(1).reduce((s,f)=>{let m=s.height+1+f.height,g=[];for(let E=0;E<m;E++)E<s.height?g.push(s.contents[E]):E===s.height?g.push(" ".repeat(a)):g.push(f.contents[E-s.height-1]);return{height:m,width:a,contents:Co(g,a)}},t[0])}function Mo(t,o,a){let s=a.getLabel(t,o),f=Ua(s),m=a.getChildren(t,o);if(m.length===0)return f;let g=m.map((ee,te)=>{let P=Mo(ee,[...o,te],a);return P.contents[0]=Jt(P.contents[0],Et(P.contents[0].length),le.TopConnectorUp),P}),E=Ba([f,La(g)]),_=E.contents,N=Et(E.width);_[f.height-1]=Jt(_[f.height-1],N,le.BottomConnectorDown);let M=_[f.height+1].indexOf(le.TopConnectorUp),j=_[f.height+1].lastIndexOf(le.TopConnectorUp);for(let ee=M;ee<=j;ee++){let te;ee===N?te=g.length>1?le.BottomConnectorUp:le.Vertical:ee===M?te=le.TopLeft:ee===j?te=le.TopRight:te=le.Horizontal,E.contents[f.height]=Jt(E.contents[f.height],ee,te)}return E}function qa(t,o){return Mo(t,[],o).contents.join(`
4
+ `)}function Et(t){return Math.floor(t/2)}function $a(t,o){let a=o-t.length;if(a<=0)return t;let s=Et(a),f=Et(a),m=" ".repeat(s)+t+" ".repeat(f);return s+f+m.length<o?m+" ":m}function Co(t,o){return t.map(a=>$a(a,o))}function Jt(t,o,a){return o>t.length-1?t:t.substring(0,o)+a+t.substring(o+1)}});var jo=Z(Br=>{"use strict";h();v();Object.defineProperty(Br,"__esModule",{value:!0});Br.directoryDiagram=Ha;Br.isMultiline=tn;Br.prefixBlock=Io;var Ke;(function(t){t.Child="\u251C\u2500\u2500 ",t.LastChild="\u2514\u2500\u2500 ",t.NestedChild="\u2502 ",t.LastNestedChild=" "})(Ke||(Ke={}));function rn(t,o,a){let s=a.getLabel(t,o),f=o.length,m={label:s,depth:f,prefix:"",multilinePrefix:""},g=a.getChildren(t,o);if(g.length===0)return[m];if(a.flattenSingleChildNodes&&g.length===1&&!tn(s)){let[_]=rn(g[0],[...o,0],a),N=o.length===0&&s==="";return m.label=N?`/ ${_.label}`:`${m.label} / ${_.label}`,[m]}let E=g.flatMap((_,N,M)=>{let j=N===M.length-1,ee=rn(_,[...o,N],a),te=j?Ke.LastChild:Ke.Child,P=j?Ke.LastNestedChild:Ke.NestedChild;return ee.forEach(Y=>{Y.depth===f+1?(Y.prefix=te+Y.prefix,Y.multilinePrefix=P+Y.multilinePrefix):j?(Y.prefix=Ke.LastNestedChild+Y.prefix,Y.multilinePrefix=Ke.LastNestedChild+Y.multilinePrefix):(Y.prefix=Ke.NestedChild+Y.prefix,Y.multilinePrefix=Ke.NestedChild+Y.multilinePrefix)}),ee});return[m,...E]}function Ha(t,o){return rn(t,[],o).map(f=>Io(f.label,f.prefix,f.multilinePrefix)).join(`
5
+ `)}function tn(t){return t.includes(`
6
+ `)}function Io(t,o,a){return tn(t)?t.split(`
7
+ `).map((s,f)=>(f===0?o:a)+s).join(`
8
+ `):o+t}});var on=Z(nn=>{"use strict";h();v();Object.defineProperty(nn,"__esModule",{value:!0});nn.diagram=Ya;var Wa=Do(),Ka=jo();function Ya(t,o){return o.type==="box"?(0,Wa.boxDiagram)(t,o):(0,Ka.directoryDiagram)(t,o)}});var dr=Z(Ye=>{"use strict";h();v();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.STOP=Ye.SKIP=void 0;Ye.visit=Ga;Ye.SKIP="skip";Ye.STOP="stop";function Ga(t,o){let{onEnter:a,onLeave:s,getChildren:f,onDetectCycle:m,getIdentifier:g,direction:E="forward"}=o,_=(P,Y,X)=>{let Q=f(P,Y,X);return E==="forward"?Q:Q.slice().reverse()},N=[],M=[{node:t}],j=m?new Set:void 0,ee=o.includeTraversalContext?{getRoot(){return t},getParent(){var P;return(P=M[M.length-2])===null||P===void 0?void 0:P.node},getAncestors(){return M.slice(0,-1).map(P=>P.node)}}:void 0,te=o.reuseIndexPath?()=>N:()=>N.slice();for(;M.length>0;){let P=M[M.length-1];if(P.state===void 0){if(j){let Q=g?g(P.node):P.node;if(j.has(Q)){if((typeof m=="function"?m(P.node,te(),ee):m)==="error")throw new Error("Cycle detected in tree");P.state=-1;continue}j.add(Q)}let X=a?.(P.node,te());if(X===Ye.STOP)return;P.state=X===Ye.SKIP?-1:0}let Y=P.children||_(P.node,te(),ee);if(P.children||(P.children=Y),P.state!==-1){if(P.state<Y.length){let Q=P.state;N.push(E==="forward"?Q:Y.length-Q-1),M.push({node:Y[Q]}),P.state=Q+1;continue}if(s?.(P.node,te())===Ye.STOP)return}if(j){let X=g?g(P.node):P.node;j.delete(X)}N.pop(),M.pop()}}});var an=Z(sn=>{"use strict";h();v();Object.defineProperty(sn,"__esModule",{value:!0});sn.entries=Za;var Va=dr();function Za(t,o){let a=[];return(0,Va.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{a.push([f,s])}})),a}});var un=Z(kr=>{"use strict";h();v();Object.defineProperty(kr,"__esModule",{value:!0});kr.find=Xa;kr.findAll=Qa;kr.findPath=Ja;kr.findAllPaths=eu;var Or=dr();function Xa(t,o){let a;return(0,Or.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{if(o.predicate(s,f))return a=s,Or.STOP}})),a}function Qa(t,o){let a=[];return(0,Or.visit)(t,{onEnter:(s,f)=>{o.predicate(s,f)&&a.push(s)},getChildren:o.getChildren}),a}function Ja(t,o){let a;return(0,Or.visit)(t,{onEnter:(s,f)=>{if(o.predicate(s,f))return a=[...f],Or.STOP},getChildren:o.getChildren}),a}function eu(t,o){let a=[];return(0,Or.visit)(t,{onEnter:(s,f)=>{o.predicate(s,f)&&a.push([...f])},getChildren:o.getChildren}),a}});var _t=Z(cn=>{"use strict";h();v();Object.defineProperty(cn,"__esModule",{value:!0});cn.reduce=tu;var ru=dr();function tu(t,o){let a=o.initialResult;return(0,ru.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{a=o.nextResult(a,s,f)}})),a}});var ln=Z(fn=>{"use strict";h();v();Object.defineProperty(fn,"__esModule",{value:!0});fn.flat=ou;var nu=_t();function ou(t,o){return(0,nu.reduce)(t,Object.assign(Object.assign({},o),{initialResult:[],nextResult:(a,s)=>(a.push(s),a)}))}});var Ot=Z(Tt=>{"use strict";h();v();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.map=su;Tt.flatMap=zo;var iu=dr();function su(t,o){return zo(t,Object.assign(Object.assign({},o),{transform:(a,s,f)=>[o.transform(a,s,f)]}))}function zo(t,o){let a={};return(0,iu.visit)(t,Object.assign(Object.assign({},o),{onLeave:(s,f)=>{var m,g;let E=[0,...f],_=E.join(),N=o.transform(s,(m=a[_])!==null&&m!==void 0?m:[],f),M=E.slice(0,-1).join(),j=(g=a[M])!==null&&g!==void 0?g:[];j.push(...N),a[M]=j}})),a[""][0]}});var pn=Z(dn=>{"use strict";h();v();Object.defineProperty(dn,"__esModule",{value:!0});dn.transformPath=cu;var au=yt();function uu(t,o){let a=Math.min(t.length,o.length);for(let s=0;s<a;s++)if(t[s]!==o[s])return t.slice(0,s);return t.slice(0,a)}function cu(t,o,a,s=1){if(a.length>t.length||(0,au.comparePathsByComponent)(a,t)>0)return t;if(a.length===0&&o==="remove")return;let f=uu(t,a),m=f.length===t.length||f.length===a.length?f.length-1:f.length,g=t[m],E=a[m];if(o==="insert"&&E<=g){let _=[...t];return _[m]+=s,_}else if(o==="remove"){if(E===g)return;if(E<g){let _=[...t];return _[m]-=s,_}}return t}});var br=Z(Le=>{"use strict";h();v();Object.defineProperty(Le,"__esModule",{value:!0});Le.insertOperation=Lo;Le.removeOperation=Bo;Le.replaceOperation=kt;Le.getInsertionOperations=du;Le.getRemovalOperations=pu;Le.getReplaceOperations=hu;Le.applyOperations=vu;Le.arraySplice=hn;Le.transformPathsByOperations=mu;var fu=wt(),lu=Ot(),Uo=pn();function Lo(t,o){return{type:"insert",index:t,nodes:o}}function Bo(t){return{type:"remove",indexes:t}}function kt(){return{type:"replace"}}function qo(t){return[t.slice(0,-1),t[t.length-1]]}function du(t,o,a=new Map){var s;let[f,m]=qo(t);for(let E=f.length-1;E>=0;E--){let _=f.slice(0,E).join();switch((s=a.get(_))===null||s===void 0?void 0:s.type){case"remove":continue}a.set(_,kt())}let g=a.get(f.join());switch(g?.type){case"remove":a.set(f.join(),{type:"removeThenInsert",removeIndexes:g.indexes,insertIndex:m,insertNodes:o});break;default:a.set(f.join(),Lo(m,o))}return a}function pu(t){var o,a;let s=(0,fu.ancestorPaths)(t),f=new Map;for(let g of s){let E=g.slice(0,-1).join(),_=(o=f.get(E))!==null&&o!==void 0?o:[];_.push(g[g.length-1]),f.set(E,_)}let m=new Map;for(let g of s)for(let E=g.length-1;E>=0;E--){let _=g.slice(0,E).join();m.set(_,kt())}for(let g of s){let E=g.slice(0,-1).join();m.set(E,Bo((a=f.get(E))!==null&&a!==void 0?a:[]))}return m}function hu(t,o){let a=new Map,[s,f]=qo(t);for(let m=s.length-1;m>=0;m--){let g=s.slice(0,m).join();a.set(g,kt())}return a.set(s.join(),{type:"removeThenInsert",removeIndexes:[f],insertIndex:f,insertNodes:[o]}),a}function $o(t,o){return o.reduce((a,s)=>s<a?a-1:a,t)}function vu(t,o,a){return(0,lu.map)(t,Object.assign(Object.assign({},a),{getChildren:(s,f)=>{let m=f.join(),g=o.get(m);switch(g?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return a.getChildren(s,f);default:return[]}},transform:(s,f,m)=>{let g=m.join(),E=o.get(g);switch(E?.type){case"remove":return a.create(s,f.filter((M,j)=>!E.indexes.includes(j)),m);case"removeThenInsert":let _=f.filter((M,j)=>!E.removeIndexes.includes(j)),N=$o(E.insertIndex,E.removeIndexes);return a.create(s,hn(_,N,0,...E.insertNodes),m);case"insert":return a.create(s,hn(f,E.index,0,...E.nodes),m);case"replace":return a.create(s,f,m);default:return s}}}))}function hn(t,o,a,...s){return[...t.slice(0,o),...s,...t.slice(o+a)]}function mu(t,o){let a=t;for(let[s,f]of o.entries()){let m=s?s.split(",").map(Number):[];a=vn(a,m,f)}return a}function vn(t,o,a){switch(a.type){case"insert":{let s=o.concat(a.index);return t.map(f=>f?(0,Uo.transformPath)(f,"insert",s,a.nodes.length):void 0)}case"remove":{let s=[...a.indexes].reverse().map(f=>o.concat(f));return t.map(f=>{for(let m of s)f=f?(0,Uo.transformPath)(f,"remove",m):void 0;return f})}case"removeThenInsert":{let s=vn(t,o,{type:"remove",indexes:a.removeIndexes}),f=$o(a.insertIndex,a.removeIndexes);return vn(s,o,{type:"insert",index:f,nodes:a.insertNodes})}case"replace":return t}}});var gn=Z(bt=>{"use strict";h();v();Object.defineProperty(bt,"__esModule",{value:!0});bt.insert=gu;bt.insertWithPathTracking=yu;var mn=br();function gu(t,o){return Ho(t,o).node}function yu(t,o){return Ho(t,o)}function Ho(t,o){let{nodes:a,path:s,track:f}=o;if(s.length===0)throw new Error("Can't insert nodes at the root");let m=(0,mn.getInsertionOperations)(s,a),g=f?(0,mn.transformPathsByOperations)(f,m):[];return{node:(0,mn.applyOperations)(t,m,o),paths:g}}});var En=Z(wn=>{"use strict";h();v();Object.defineProperty(wn,"__esModule",{value:!0});wn.move=_u;var wu=mt(),Eu=wt(),yn=br();function _u(t,o){if(o.paths.length===0)return t;for(let m of o.paths)if(m.length===0)throw new Error("Can't move the root node");if(o.to.length===0)throw new Error("Can't move nodes to the root");let a=(0,Eu.ancestorPaths)(o.paths),s=a.map(m=>(0,wu.access)(t,m,o)),f=(0,yn.getInsertionOperations)(o.to,s,(0,yn.getRemovalOperations)(a));return(0,yn.applyOperations)(t,f,o)}});var Tn=Z(St=>{"use strict";h();v();Object.defineProperty(St,"__esModule",{value:!0});St.remove=Tu;St.removeWithPathTracking=Ou;var _n=br();function Tu(t,o){return Wo(t,o).node}function Ou(t,o){return Wo(t,o)}function Wo(t,o){let{paths:a,track:s}=o,f=(0,_n.getRemovalOperations)(a),m=s?(0,_n.transformPathsByOperations)(s,f):[];return{node:(0,_n.applyOperations)(t,f,o),paths:m}}});var kn=Z(On=>{"use strict";h();v();Object.defineProperty(On,"__esModule",{value:!0});On.replace=ku;var Ko=br();function ku(t,o){if(o.path.length===0)return o.node;let a=(0,Ko.getReplaceOperations)(o.path,o.node);return(0,Ko.applyOperations)(t,a,o)}});var bn=Z(Nt=>{"use strict";h();v();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.splice=bu;Nt.spliceWithPathTracking=Su;var xt=br();function bu(t,o){return Yo(t,o).node}function Su(t,o){return Yo(t,o)}function Yo(t,o){let{path:a,deleteCount:s=0,nodes:f,track:m}=o;if(a.length===0)throw new Error("Can't splice at the root");let g=xu(a,s),E=(0,xt.getInsertionOperations)(a,f,(0,xt.getRemovalOperations)(g)),_=m?(0,xt.transformPathsByOperations)(m,E):[];return{node:(0,xt.applyOperations)(t,E,o),paths:_}}function xu(t,o){let a=[],s=t.slice(0,-1),f=t[t.length-1];for(let m=0;m<o;m++)a.push(s.concat(f+m));return a}});var Nn=Z(xn=>{"use strict";h();v();Object.defineProperty(xn,"__esModule",{value:!0});xn.defineTree=Mu;var At=mt(),Go=on(),Nu=an(),sr=un(),Au=ln(),Vo=gn(),Zo=Ot(),Pu=En(),Ru=_t(),Xo=Tn(),Fu=kn(),Qo=bn(),Jo=dr(),Sn=class t{constructor(o,a){this.appliedOptions=a,this.getChildren=(s,f,m)=>this._getChildren(s,f,m),this.mergeOptions=s=>Object.assign(Object.assign(Object.assign({},this.baseOptions),this.appliedOptions),s),this.withOptions=s=>new t(this.baseOptions,Object.assign(Object.assign({},this.appliedOptions),s)),this.access=(s,f)=>(0,At.access)(s,f,this.mergeOptions({})),this.accessPath=(s,f)=>(0,At.accessPath)(s,f,this.mergeOptions({})),this.get=(s,f)=>(0,At.get)(s,f,this.mergeOptions({})),this.ancestors=(s,f)=>(0,At.ancestors)(s,f,this.mergeOptions({})),this.diagram=(s,f)=>typeof f=="function"?(0,Go.diagram)(s,this.mergeOptions({getLabel:f})):(0,Go.diagram)(s,this.mergeOptions(f)),this.find=(s,f)=>typeof f=="function"?(0,sr.find)(s,this.mergeOptions({predicate:f})):(0,sr.find)(s,this.mergeOptions(Object.assign({},f))),this.findAll=(s,f)=>typeof f=="function"?(0,sr.findAll)(s,this.mergeOptions({predicate:f})):(0,sr.findAll)(s,this.mergeOptions(Object.assign({},f))),this.findPath=(s,f)=>typeof f=="function"?(0,sr.findPath)(s,this.mergeOptions({predicate:f})):(0,sr.findPath)(s,this.mergeOptions(Object.assign({},f))),this.findAllPaths=(s,f)=>typeof f=="function"?(0,sr.findAllPaths)(s,this.mergeOptions({predicate:f})):(0,sr.findAllPaths)(s,this.mergeOptions(Object.assign({},f))),this.entries=s=>(0,Nu.entries)(s,this.mergeOptions({})),this.flat=s=>(0,Au.flat)(s,this.mergeOptions({})),this.reduce=(s,f,m)=>(0,Ru.reduce)(s,this.mergeOptions({nextResult:f,initialResult:m})),this.map=(s,f)=>(0,Zo.map)(s,this.mergeOptions({transform:f})),this.flatMap=(s,f)=>(0,Zo.flatMap)(s,this.mergeOptions({transform:f})),this.visit=(s,f)=>typeof f=="function"?(0,Jo.visit)(s,this.mergeOptions({onEnter:f})):(0,Jo.visit)(s,this.mergeOptions(Object.assign({},f))),this.insert=(s,f)=>(0,Vo.insert)(s,this.mergeOptions(f)),this.insertWithPathTracking=(s,f)=>(0,Vo.insertWithPathTracking)(s,this.mergeOptions(f)),this.remove=(s,f)=>(0,Xo.remove)(s,this.mergeOptions(f)),this.removeWithPathTracking=(s,f)=>(0,Xo.removeWithPathTracking)(s,this.mergeOptions(f)),this.move=(s,f)=>(0,Pu.move)(s,this.mergeOptions(f)),this.splice=(s,f)=>(0,Qo.splice)(s,this.mergeOptions(f)),this.spliceWithPathTracking=(s,f)=>(0,Qo.spliceWithPathTracking)(s,this.mergeOptions(f)),this.replace=(s,f)=>(0,Fu.replace)(s,this.mergeOptions(f)),this.baseOptions=typeof o=="function"?{getChildren:o}:o,this._getChildren=this.baseOptions.getChildren}};function Mu(t){return new Sn(t,{})}});var ri=Z(ei=>{"use strict";h();v();Object.defineProperty(ei,"__esModule",{value:!0})});var ni=Z(ti=>{"use strict";h();v();Object.defineProperty(ti,"__esModule",{value:!0})});var oi=Z(Pt=>{"use strict";h();v();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.withOptions=void 0;var Cu=Nn();Pt.withOptions=Cu.defineTree});var ii=Z(oe=>{"use strict";h();v();var Du=oe&&oe.__createBinding||(Object.create?function(t,o,a,s){s===void 0&&(s=a);var f=Object.getOwnPropertyDescriptor(o,a);(!f||("get"in f?!o.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(t,s,f)}:function(t,o,a,s){s===void 0&&(s=a),t[s]=o[a]}),fe=oe&&oe.__exportStar||function(t,o){for(var a in t)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&Du(o,t,a)};Object.defineProperty(oe,"__esModule",{value:!0});fe(mt(),oe);fe(wt(),oe);fe(Nn(),oe);fe(on(),oe);fe(an(),oe);fe(un(),oe);fe(ln(),oe);fe(ri(),oe);fe(gn(),oe);fe(Ot(),oe);fe(En(),oe);fe(ni(),oe);fe(_t(),oe);fe(Tn(),oe);fe(kn(),oe);fe(yt(),oe);fe(bn(),oe);fe(pn(),oe);fe(dr(),oe);fe(oi(),oe)});var Ti=Z(H=>{"use strict";h();v();var Fn=Symbol.for("react.transitional.element"),Lu=Symbol.for("react.portal"),Bu=Symbol.for("react.fragment"),qu=Symbol.for("react.strict_mode"),$u=Symbol.for("react.profiler"),Hu=Symbol.for("react.consumer"),Wu=Symbol.for("react.context"),Ku=Symbol.for("react.forward_ref"),Yu=Symbol.for("react.suspense"),Gu=Symbol.for("react.memo"),mi=Symbol.for("react.lazy"),li=Symbol.iterator;function Vu(t){return t===null||typeof t!="object"?null:(t=li&&t[li]||t["@@iterator"],typeof t=="function"?t:null)}var gi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yi=Object.assign,wi={};function xr(t,o,a){this.props=t,this.context=o,this.refs=wi,this.updater=a||gi}xr.prototype.isReactComponent={};xr.prototype.setState=function(t,o){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,o,"setState")};xr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ei(){}Ei.prototype=xr.prototype;function Mn(t,o,a){this.props=t,this.context=o,this.refs=wi,this.updater=a||gi}var Cn=Mn.prototype=new Ei;Cn.constructor=Mn;yi(Cn,xr.prototype);Cn.isPureReactComponent=!0;var di=Array.isArray,ae={H:null,A:null,T:null,S:null,V:null},_i=Object.prototype.hasOwnProperty;function Dn(t,o,a,s,f,m){return a=m.ref,{$$typeof:Fn,type:t,key:o,ref:a!==void 0?a:null,props:m}}function Zu(t,o){return Dn(t.type,o,void 0,void 0,void 0,t.props)}function In(t){return typeof t=="object"&&t!==null&&t.$$typeof===Fn}function Xu(t){var o={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(a){return o[a]})}var pi=/\/+/g;function Rn(t,o){return typeof t=="object"&&t!==null&&t.key!=null?Xu(""+t.key):o.toString(36)}function hi(){}function Qu(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(hi,hi):(t.status="pending",t.then(function(o){t.status==="pending"&&(t.status="fulfilled",t.value=o)},function(o){t.status==="pending"&&(t.status="rejected",t.reason=o)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Sr(t,o,a,s,f){var m=typeof t;(m==="undefined"||m==="boolean")&&(t=null);var g=!1;if(t===null)g=!0;else switch(m){case"bigint":case"string":case"number":g=!0;break;case"object":switch(t.$$typeof){case Fn:case Lu:g=!0;break;case mi:return g=t._init,Sr(g(t._payload),o,a,s,f)}}if(g)return f=f(t),g=s===""?"."+Rn(t,0):s,di(f)?(a="",g!=null&&(a=g.replace(pi,"$&/")+"/"),Sr(f,o,a,"",function(N){return N})):f!=null&&(In(f)&&(f=Zu(f,a+(f.key==null||t&&t.key===f.key?"":(""+f.key).replace(pi,"$&/")+"/")+g)),o.push(f)),1;g=0;var E=s===""?".":s+":";if(di(t))for(var _=0;_<t.length;_++)s=t[_],m=E+Rn(s,_),g+=Sr(s,o,a,m,f);else if(_=Vu(t),typeof _=="function")for(t=_.call(t),_=0;!(s=t.next()).done;)s=s.value,m=E+Rn(s,_++),g+=Sr(s,o,a,m,f);else if(m==="object"){if(typeof t.then=="function")return Sr(Qu(t),o,a,s,f);throw o=String(t),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return g}function Rt(t,o,a){if(t==null)return t;var s=[],f=0;return Sr(t,s,"","",function(m){return o.call(a,m,f++)}),s}function Ju(t){if(t._status===-1){var o=t._result;o=o(),o.then(function(a){(t._status===0||t._status===-1)&&(t._status=1,t._result=a)},function(a){(t._status===0||t._status===-1)&&(t._status=2,t._result=a)}),t._status===-1&&(t._status=0,t._result=o)}if(t._status===1)return t._result.default;throw t._result}var vi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function ec(){}H.Children={map:Rt,forEach:function(t,o,a){Rt(t,function(){o.apply(this,arguments)},a)},count:function(t){var o=0;return Rt(t,function(){o++}),o},toArray:function(t){return Rt(t,function(o){return o})||[]},only:function(t){if(!In(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};H.Component=xr;H.Fragment=Bu;H.Profiler=$u;H.PureComponent=Mn;H.StrictMode=qu;H.Suspense=Yu;H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae;H.__COMPILER_RUNTIME={__proto__:null,c:function(t){return ae.H.useMemoCache(t)}};H.cache=function(t){return function(){return t.apply(null,arguments)}};H.cloneElement=function(t,o,a){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var s=yi({},t.props),f=t.key,m=void 0;if(o!=null)for(g in o.ref!==void 0&&(m=void 0),o.key!==void 0&&(f=""+o.key),o)!_i.call(o,g)||g==="key"||g==="__self"||g==="__source"||g==="ref"&&o.ref===void 0||(s[g]=o[g]);var g=arguments.length-2;if(g===1)s.children=a;else if(1<g){for(var E=Array(g),_=0;_<g;_++)E[_]=arguments[_+2];s.children=E}return Dn(t.type,f,void 0,void 0,m,s)};H.createContext=function(t){return t={$$typeof:Wu,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Hu,_context:t},t};H.createElement=function(t,o,a){var s,f={},m=null;if(o!=null)for(s in o.key!==void 0&&(m=""+o.key),o)_i.call(o,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(f[s]=o[s]);var g=arguments.length-2;if(g===1)f.children=a;else if(1<g){for(var E=Array(g),_=0;_<g;_++)E[_]=arguments[_+2];f.children=E}if(t&&t.defaultProps)for(s in g=t.defaultProps,g)f[s]===void 0&&(f[s]=g[s]);return Dn(t,m,void 0,void 0,null,f)};H.createRef=function(){return{current:null}};H.forwardRef=function(t){return{$$typeof:Ku,render:t}};H.isValidElement=In;H.lazy=function(t){return{$$typeof:mi,_payload:{_status:-1,_result:t},_init:Ju}};H.memo=function(t,o){return{$$typeof:Gu,type:t,compare:o===void 0?null:o}};H.startTransition=function(t){var o=ae.T,a={};ae.T=a;try{var s=t(),f=ae.S;f!==null&&f(a,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(ec,vi)}catch(m){vi(m)}finally{ae.T=o}};H.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()};H.use=function(t){return ae.H.use(t)};H.useActionState=function(t,o,a){return ae.H.useActionState(t,o,a)};H.useCallback=function(t,o){return ae.H.useCallback(t,o)};H.useContext=function(t){return ae.H.useContext(t)};H.useDebugValue=function(){};H.useDeferredValue=function(t,o){return ae.H.useDeferredValue(t,o)};H.useEffect=function(t,o,a){var s=ae.H;if(typeof a=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return s.useEffect(t,o)};H.useId=function(){return ae.H.useId()};H.useImperativeHandle=function(t,o,a){return ae.H.useImperativeHandle(t,o,a)};H.useInsertionEffect=function(t,o){return ae.H.useInsertionEffect(t,o)};H.useLayoutEffect=function(t,o){return ae.H.useLayoutEffect(t,o)};H.useMemo=function(t,o){return ae.H.useMemo(t,o)};H.useOptimistic=function(t,o){return ae.H.useOptimistic(t,o)};H.useReducer=function(t,o,a){return ae.H.useReducer(t,o,a)};H.useRef=function(t){return ae.H.useRef(t)};H.useState=function(t){return ae.H.useState(t)};H.useSyncExternalStore=function(t,o,a){return ae.H.useSyncExternalStore(t,o,a)};H.useTransition=function(){return ae.H.useTransition()};H.version="19.1.2"});var Oi=Z((B,Ft)=>{"use strict";h();v();process.env.NODE_ENV!=="production"&&function(){function t(c,y){Object.defineProperty(s.prototype,c,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function o(c){return c===null||typeof c!="object"?null:(c=cr&&c[cr]||c["@@iterator"],typeof c=="function"?c:null)}function a(c,y){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var b=c+"."+y;pr[b]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",y,c),pr[b]=!0)}function s(c,y,b){this.props=c,this.context=y,this.refs=Nr,this.updater=b||qr}function f(){}function m(c,y,b){this.props=c,this.context=y,this.refs=Nr,this.updater=b||qr}function g(c){return""+c}function E(c){try{g(c);var y=!1}catch{y=!0}if(y){y=console;var b=y.error,x=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return b.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",x),g(c)}}function _(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===Mt?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case ar:return"Fragment";case Pe:return"Profiler";case Ge:return"StrictMode";case er:return"Suspense";case Re:return"SuspenseList";case rr:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case he:return"Portal";case Be:return(c.displayName||"Context")+".Provider";case Je:return(c._context.displayName||"Context")+".Consumer";case ur:var y=c.render;return c=c.displayName,c||(c=y.displayName||y.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Fe:return y=c.displayName||null,y!==null?y:_(c.type)||"Memo";case qe:y=c._payload,c=c._init;try{return _(c(y))}catch{}}return null}function N(c){if(c===ar)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===qe)return"<...>";try{var y=_(c);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function M(){var c=W.A;return c===null?null:c.getOwner()}function j(){return Error("react-stack-top-frame")}function ee(c){if(fr.call(c,"key")){var y=Object.getOwnPropertyDescriptor(c,"key").get;if(y&&y.isReactWarning)return!1}return c.key!==void 0}function te(c,y){function b(){Wr||(Wr=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}b.isReactWarning=!0,Object.defineProperty(c,"key",{get:b,configurable:!0})}function P(){var c=_(this.type);return Kr[c]||(Kr[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function Y(c,y,b,x,R,z,U,A){return b=z.ref,c={$$typeof:Ee,type:c,key:y,props:z,_owner:R},(b!==void 0?b:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:P}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function X(c,y){return y=Y(c.type,y,void 0,void 0,c._owner,c.props,c._debugStack,c._debugTask),c._store&&(y._store.validated=c._store.validated),y}function Q(c){return typeof c=="object"&&c!==null&&c.$$typeof===Ee}function ye(c){var y={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(b){return y[b]})}function me(c,y){return typeof c=="object"&&c!==null&&c.key!=null?(E(c.key),ye(""+c.key)):y.toString(36)}function xe(){}function Ne(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(xe,xe):(c.status="pending",c.then(function(y){c.status==="pending"&&(c.status="fulfilled",c.value=y)},function(y){c.status==="pending"&&(c.status="rejected",c.reason=y)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function de(c,y,b,x,R){var z=typeof c;(z==="undefined"||z==="boolean")&&(c=null);var U=!1;if(c===null)U=!0;else switch(z){case"bigint":case"string":case"number":U=!0;break;case"object":switch(c.$$typeof){case Ee:case he:U=!0;break;case qe:return U=c._init,de(U(c._payload),y,b,x,R)}}if(U){U=c,R=R(U);var A=x===""?"."+me(U,0):x;return Hr(R)?(b="",A!=null&&(b=A.replace(Gr,"$&/")+"/"),de(R,y,b,"",function($e){return $e})):R!=null&&(Q(R)&&(R.key!=null&&(U&&U.key===R.key||E(R.key)),b=X(R,b+(R.key==null||U&&U.key===R.key?"":(""+R.key).replace(Gr,"$&/")+"/")+A),x!==""&&U!=null&&Q(U)&&U.key==null&&U._store&&!U._store.validated&&(b._store.validated=2),R=b),y.push(R)),1}if(U=0,A=x===""?".":x+":",Hr(c))for(var K=0;K<c.length;K++)x=c[K],z=A+me(x,K),U+=de(x,y,b,z,R);else if(K=o(c),typeof K=="function")for(K===c.entries&&(Rr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Rr=!0),c=K.call(c),K=0;!(x=c.next()).done;)x=x.value,z=A+me(x,K++),U+=de(x,y,b,z,R);else if(z==="object"){if(typeof c.then=="function")return de(Ne(c),y,b,x,R);throw y=String(c),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return U}function ke(c,y,b){if(c==null)return c;var x=[],R=0;return de(c,x,"","",function(z){return y.call(b,z,R++)}),x}function ie(c){if(c._status===-1){var y=c._result;y=y(),y.then(function(b){(c._status===0||c._status===-1)&&(c._status=1,c._result=b)},function(b){(c._status===0||c._status===-1)&&(c._status=2,c._result=b)}),c._status===-1&&(c._status=0,c._result=y)}if(c._status===1)return y=c._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
8
9
 
9
10
  Your code should look like:
10
11
  const MyComponent = lazy(() => import('./MyComponent'))
11
12
 
12
- Did you accidentally put curly braces around the import?`,f),"default"in f||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
13
+ Did you accidentally put curly braces around the import?`,y),"default"in y||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
13
14
 
14
15
  Your code should look like:
15
- const MyComponent = lazy(() => import('./MyComponent'))`,f),f.default;throw o._result}function M(){var o=x.H;return o===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
16
+ const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default;throw c._result}function I(){var c=W.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
16
17
  1. You might have mismatching versions of React and the renderer (such as React DOM)
17
18
  2. You might be breaking the Rules of Hooks
18
19
  3. You might have more than one copy of React in the same app
19
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),o}function Te(){}function ee(o){if(Ze===null)try{var f=("require"+Math.random()).slice(0,7);Ze=(Dt&&Dt[f]).call(Dt,"timers").setImmediate}catch{Ze=function(v){Gr===!1&&(Gr=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y=new MessageChannel;y.port1.onmessage=v,y.port2.postMessage(void 0)}}return Ze(o)}function te(o){return 1<o.length&&typeof AggregateError=="function"?new AggregateError(o):o[0]}function re(o,f){f!==Qe-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Qe=f}function de(o,f,m){var v=x.actQueue;if(v!==null)if(v.length!==0)try{Oe(v),ee(function(){return de(o,f,m)});return}catch(y){x.thrownErrors.push(y)}else x.actQueue=null;0<x.thrownErrors.length?(v=te(x.thrownErrors),x.thrownErrors.length=0,m(v)):f(o)}function Oe(o){if(!It){It=!0;var f=0;try{for(;f<o.length;f++){var m=o[f];do{x.didUsePromise=!1;var v=m(!1);if(v!==null){if(x.didUsePromise){o[f]=m,o.splice(0,f);return}m=v}else break}while(!0)}o.length=0}catch(y){o.splice(0,f+1),x.thrownErrors.push(y)}finally{It=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var V=Symbol.for("react.transitional.element"),Ke=Symbol.for("react.portal"),Ue=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler");Symbol.for("react.provider");var be=Symbol.for("react.consumer"),pe=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),Ge=Symbol.for("react.activity"),Ir=Symbol.iterator,jr={},zr={isMounted:function(){return!1},enqueueForceUpdate:function(o){r(o,"forceUpdate")},enqueueReplaceState:function(o){r(o,"replaceState")},enqueueSetState:function(o){r(o,"setState")}},Ur=Object.assign,Ft={};Object.freeze(Ft),n.prototype.isReactComponent={},n.prototype.setState=function(o,f){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,f,"setState")},n.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};var X={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ve;for(Ve in X)X.hasOwnProperty(Ve)&&e(Ve,X[Ve]);i.prototype=n.prototype,X=u.prototype=new i,X.constructor=u,Ur(X,n.prototype),X.isPureReactComponent=!0;var Lr=Array.isArray,ko=Symbol.for("react.client.reference"),x={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Xe=Object.prototype.hasOwnProperty,Br=console.createTask?console.createTask:function(){return null};X={"react-stack-bottom-frame":function(o){return o()}};var qr,Wr,Hr={},bo=X["react-stack-bottom-frame"].bind(X,E)(),xo=Br(g(E)),$r=!1,Kr=/\/+/g,Yr=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Gr=!1,Ze=null,Qe=0,Je=!1,It=!1,Vr=typeof queueMicrotask=="function"?function(o){queueMicrotask(function(){return queueMicrotask(o)})}:ee;X=Object.freeze({__proto__:null,c:function(o){return M().useMemoCache(o)}}),_.Children={map:ie,forEach:function(o,f,m){ie(o,function(){f.apply(this,arguments)},m)},count:function(o){var f=0;return ie(o,function(){f++}),f},toArray:function(o){return ie(o,function(f){return f})||[]},only:function(o){if(!N(o))throw Error("React.Children.only expected to receive a single React element child.");return o}},_.Component=n,_.Fragment=Ue,_.Profiler=fe,_.PureComponent=u,_.StrictMode=ke,_.Suspense=Se,_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,_.__COMPILER_RUNTIME=X,_.act=function(o){var f=x.actQueue,m=Qe;Qe++;var v=x.actQueue=f!==null?f:[],y=!1;try{var S=o()}catch(b){x.thrownErrors.push(b)}if(0<x.thrownErrors.length)throw re(f,m),o=te(x.thrownErrors),x.thrownErrors.length=0,o;if(S!==null&&typeof S=="object"&&typeof S.then=="function"){var k=S;return Vr(function(){y||Je||(Je=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(b,he){y=!0,k.then(function(Pe){if(re(f,m),m===0){try{Oe(v),ee(function(){return de(Pe,b,he)})}catch(Ao){x.thrownErrors.push(Ao)}if(0<x.thrownErrors.length){var So=te(x.thrownErrors);x.thrownErrors.length=0,he(So)}}else b(Pe)},function(Pe){re(f,m),0<x.thrownErrors.length&&(Pe=te(x.thrownErrors),x.thrownErrors.length=0),he(Pe)})}}}var D=S;if(re(f,m),m===0&&(Oe(v),v.length!==0&&Vr(function(){y||Je||(Je=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),x.actQueue=null),0<x.thrownErrors.length)throw o=te(x.thrownErrors),x.thrownErrors.length=0,o;return{then:function(b,he){y=!0,m===0?(x.actQueue=v,ee(function(){return de(D,b,he)})):b(D)}}},_.cache=function(o){return function(){return o.apply(null,arguments)}},_.captureOwnerStack=function(){var o=x.getCurrentStack;return o===null?null:o()},_.cloneElement=function(o,f,m){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var v=Ur({},o.props),y=o.key,S=o._owner;if(f!=null){var k;e:{if(Xe.call(f,"ref")&&(k=Object.getOwnPropertyDescriptor(f,"ref").get)&&k.isReactWarning){k=!1;break e}k=f.ref!==void 0}k&&(S=w()),C(f)&&(l(f.key),y=""+f.key);for(D in f)!Xe.call(f,D)||D==="key"||D==="__self"||D==="__source"||D==="ref"&&f.ref===void 0||(v[D]=f[D])}var D=arguments.length-2;if(D===1)v.children=m;else if(1<D){k=Array(D);for(var b=0;b<D;b++)k[b]=arguments[b+2];v.children=k}for(v=P(o.type,y,void 0,void 0,S,v,o._debugStack,o._debugTask),y=2;y<arguments.length;y++)S=arguments[y],N(S)&&S._store&&(S._store.validated=1);return v},_.createContext=function(o){return o={$$typeof:pe,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:be,_context:o},o._currentRenderer=null,o._currentRenderer2=null,o},_.createElement=function(o,f,m){for(var v=2;v<arguments.length;v++){var y=arguments[v];N(y)&&y._store&&(y._store.validated=1)}if(v={},y=null,f!=null)for(b in Wr||!("__self"in f)||"key"in f||(Wr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),C(f)&&(l(f.key),y=""+f.key),f)Xe.call(f,b)&&b!=="key"&&b!=="__self"&&b!=="__source"&&(v[b]=f[b]);var S=arguments.length-2;if(S===1)v.children=m;else if(1<S){for(var k=Array(S),D=0;D<S;D++)k[D]=arguments[D+2];Object.freeze&&Object.freeze(k),v.children=k}if(o&&o.defaultProps)for(b in S=o.defaultProps,S)v[b]===void 0&&(v[b]=S[b]);y&&j(v,typeof o=="function"?o.displayName||o.name||"Unknown":o);var b=1e4>x.recentlyCreatedOwnerStacks++;return P(o,y,void 0,void 0,w(),v,b?Error("react-stack-top-frame"):bo,b?Br(g(o)):xo)},_.createRef=function(){var o={current:null};return Object.seal(o),o},_.forwardRef=function(o){o!=null&&o.$$typeof===Ae?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof o!="function"?console.error("forwardRef requires a render function but was given %s.",o===null?"null":typeof o):o.length!==0&&o.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",o.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),o!=null&&o.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var f={$$typeof:xe,render:o},m;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return m},set:function(v){m=v,o.name||o.displayName||(Object.defineProperty(o,"name",{value:v}),o.displayName=v)}}),f},_.isValidElement=N,_.lazy=function(o){return{$$typeof:Ee,_payload:{_status:-1,_result:o},_init:B}},_.memo=function(o,f){o==null&&console.error("memo: The first argument must be a component. Instead received: %s",o===null?"null":typeof o),f={$$typeof:Ae,type:o,compare:f===void 0?null:f};var m;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return m},set:function(v){m=v,o.name||o.displayName||(Object.defineProperty(o,"name",{value:v}),o.displayName=v)}}),f},_.startTransition=function(o){var f=x.T,m={};x.T=m,m._updatedFibers=new Set;try{var v=o(),y=x.S;y!==null&&y(m,v),typeof v=="object"&&v!==null&&typeof v.then=="function"&&v.then(Te,Yr)}catch(S){Yr(S)}finally{f===null&&m._updatedFibers&&(o=m._updatedFibers.size,m._updatedFibers.clear(),10<o&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),x.T=f}},_.unstable_useCacheRefresh=function(){return M().useCacheRefresh()},_.use=function(o){return M().use(o)},_.useActionState=function(o,f,m){return M().useActionState(o,f,m)},_.useCallback=function(o,f){return M().useCallback(o,f)},_.useContext=function(o){var f=M();return o.$$typeof===be&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),f.useContext(o)},_.useDebugValue=function(o,f){return M().useDebugValue(o,f)},_.useDeferredValue=function(o,f){return M().useDeferredValue(o,f)},_.useEffect=function(o,f,m){o==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var v=M();if(typeof m=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return v.useEffect(o,f)},_.useId=function(){return M().useId()},_.useImperativeHandle=function(o,f,m){return M().useImperativeHandle(o,f,m)},_.useInsertionEffect=function(o,f){return o==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useInsertionEffect(o,f)},_.useLayoutEffect=function(o,f){return o==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useLayoutEffect(o,f)},_.useMemo=function(o,f){return M().useMemo(o,f)},_.useOptimistic=function(o,f){return M().useOptimistic(o,f)},_.useReducer=function(o,f,m){return M().useReducer(o,f,m)},_.useRef=function(o){return M().useRef(o)},_.useState=function(o){return M().useState(o)},_.useSyncExternalStore=function(o,f,m){return M().useSyncExternalStore(o,f,m)},_.useTransition=function(){return M().useTransition()},_.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var Cr=A((Sp,Mr)=>{"use strict";a();s();process.env.NODE_ENV==="production"?Mr.exports=Eo():Mr.exports=_o()});var Qa={};Do(Qa,{default:()=>Oo,resolveFiles:()=>To});module.exports=Fo(Qa);a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();var en=require("module"),Io=(0,en.createRequire)("/"),rt,jo=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{rt=Io("worker_threads").Worker}catch{}var zo=rt?function(e,t,r,n,i){var u=!1,c=new rt(e+jo,{eval:!0}).on("error",function(l){return i(l,null)}).on("message",function(l){return i(null,l)}).on("exit",function(l){l&&!u&&i(new Error("exited with code "+l),null)});return c.postMessage(r,n),c.terminate=function(){return u=!0,rt.prototype.terminate.call(c)},c}:function(e,t,r,n,i){setImmediate(function(){return i(new Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var u=function(){};return{terminate:u,postMessage:u}},H=Uint8Array,me=Uint16Array,Ut=Uint32Array,Lt=new H([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Bt=new H([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),tn=new H([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),rn=function(e,t){for(var r=new me(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Ut(r[30]),n=1;n<30;++n)for(var u=r[n];u<r[n+1];++u)i[u]=u-r[n]<<5|n;return[r,i]},nn=rn(Lt,2),qt=nn[0],Uo=nn[1];qt[28]=258,Uo[258]=28;var on=rn(Bt,0),an=on[0],ds=on[1],it=new me(32768);for(R=0;R<32768;++R)le=(R&43690)>>>1|(R&21845)<<1,le=(le&52428)>>>2|(le&13107)<<2,le=(le&61680)>>>4|(le&3855)<<4,it[R]=((le&65280)>>>8|(le&255)<<8)>>>1;var le,R,Re=function(e,t,r){for(var n=e.length,i=0,u=new me(t);i<n;++i)e[i]&&++u[e[i]-1];var c=new me(t);for(i=0;i<t;++i)c[i]=c[i-1]+u[i-1]<<1;var l;if(r){l=new me(1<<t);var d=15-t;for(i=0;i<n;++i)if(e[i])for(var g=i<<4|e[i],w=t-e[i],E=c[e[i]-1]++<<w,C=E|(1<<w)-1;E<=C;++E)l[it[E]>>>d]=g}else for(l=new me(n),i=0;i<n;++i)e[i]&&(l[i]=it[c[e[i]-1]++]>>>15-e[i]);return l},Be=new H(288);for(R=0;R<144;++R)Be[R]=8;var R;for(R=144;R<256;++R)Be[R]=9;var R;for(R=256;R<280;++R)Be[R]=7;var R;for(R=280;R<288;++R)Be[R]=8;var R,sn=new H(32);for(R=0;R<32;++R)sn[R]=5;var R;var un=Re(Be,9,1);var cn=Re(sn,5,1),nt=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Z=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},ot=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},fn=function(e){return(e+7)/8|0},at=function(e,t,r){(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length);var n=new(e.BYTES_PER_ELEMENT==2?me:e.BYTES_PER_ELEMENT==4?Ut:H)(r-t);return n.set(e.subarray(t,r)),n};var ln=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],K=function(e,t,r){var n=new Error(t||ln[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,K),!r)throw n;return n},dn=function(e,t,r){var n=e.length;if(!n||r&&r.f&&!r.l)return t||new H(0);var i=!t||r,u=!r||r.i;r||(r={}),t||(t=new H(n*3));var c=function(Ae){var Ee=t.length;if(Ae>Ee){var Ge=new H(Math.max(Ee*2,Ae));Ge.set(t),t=Ge}},l=r.f||0,d=r.p||0,g=r.b||0,w=r.l,E=r.d,C=r.m,j=r.n,T=n*8;do{if(!w){l=Z(e,d,1);var P=Z(e,d+1,3);if(d+=3,P)if(P==1)w=un,E=cn,C=9,j=5;else if(P==2){var G=Z(e,d,31)+257,ce=Z(e,d+10,15)+4,we=G+Z(e,d+5,31)+1;d+=14;for(var $=new H(we),ie=new H(19),B=0;B<ce;++B)ie[tn[B]]=Z(e,d+B*3,7);d+=ce*3;for(var M=nt(ie),Te=(1<<M)-1,ee=Re(ie,M,1),B=0;B<we;){var te=ee[Z(e,d,Te)];d+=te&15;var F=te>>>4;if(F<16)$[B++]=F;else{var re=0,de=0;for(F==16?(de=3+Z(e,d,3),d+=2,re=$[B-1]):F==17?(de=3+Z(e,d,7),d+=3):F==18&&(de=11+Z(e,d,127),d+=7);de--;)$[B++]=re}}var Oe=$.subarray(0,G),V=$.subarray(G);C=nt(Oe),j=nt(V),w=Re(Oe,C,1),E=Re(V,j,1)}else K(1);else{var F=fn(d)+4,N=e[F-4]|e[F-3]<<8,J=F+N;if(J>n){u&&K(0);break}i&&c(g+N),t.set(e.subarray(F,J),g),r.b=g+=N,r.p=d=J*8,r.f=l;continue}if(d>T){u&&K(0);break}}i&&c(g+131072);for(var Ke=(1<<C)-1,Ue=(1<<j)-1,ke=d;;ke=d){var re=w[ot(e,d)&Ke],fe=re>>>4;if(d+=re&15,d>T){u&&K(0);break}if(re||K(2),fe<256)t[g++]=fe;else if(fe==256){ke=d,w=null;break}else{var be=fe-254;if(fe>264){var B=fe-257,pe=Lt[B];be=Z(e,d,(1<<pe)-1)+qt[B],d+=pe}var xe=E[ot(e,d)&Ue],Se=xe>>>4;xe||K(3),d+=xe&15;var V=an[Se];if(Se>3){var pe=Bt[Se];V+=ot(e,d)&(1<<pe)-1,d+=pe}if(d>T){u&&K(0);break}i&&c(g+131072);for(var Ye=g+be;g<Ye;g+=4)t[g]=t[g-V],t[g+1]=t[g+1-V],t[g+2]=t[g+2-V],t[g+3]=t[g+3-V];g=Ye}}r.l=w,r.p=ke,r.b=g,r.f=l,w&&(l=1,r.m=C,r.d=E,r.n=j)}while(!l);return g==t.length?t:at(t,0,g)};var Lo=new H(0);var Bo=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},Qr=function(e,t,r){for(var n=e(),i=e.toString(),u=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),c=0;c<n.length;++c){var l=n[c],d=u[c];if(typeof l=="function"){t+=";"+d+"=";var g=l.toString();if(l.prototype)if(g.indexOf("[native code]")!=-1){var w=g.indexOf(" ",8)+1;t+=g.slice(w,g.indexOf("(",w))}else{t+=g;for(var E in l.prototype)t+=";"+d+".prototype."+E+"="+l.prototype[E].toString()}else t+=g}else r[d]=l}return[t,r]},tt=[],qo=function(e){var t=[];for(var r in e)e[r].buffer&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t},Wo=function(e,t,r,n){var i;if(!tt[r]){for(var u="",c={},l=e.length-1,d=0;d<l;++d)i=Qr(e[d],u,c),u=i[0],c=i[1];tt[r]=Qr(e[l],u,c)}var g=Bo({},tt[r][1]);return zo(tt[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,g,qo(g),n)},Ho=function(){return[H,me,Ut,Lt,Bt,tn,qt,an,un,cn,it,ln,Re,nt,Z,ot,fn,at,K,dn,Wt,pn,hn]};var pn=function(e){return postMessage(e,[e.buffer])},hn=function(e){return e&&e.size&&new H(e.size)},$o=function(e,t,r,n,i,u){var c=Wo(r,n,i,function(l,d){c.terminate(),u(l,d)});return c.postMessage([e,t],t.consume?[e.buffer]:[]),function(){c.terminate()}};var ae=function(e,t){return e[t]|e[t+1]<<8},ne=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},jt=function(e,t){return ne(e,t)+ne(e,t+4)*4294967296};function Ko(e,t,r){return r||(r=t,t={}),typeof r!="function"&&K(7),$o(e,t,[Ho],function(n){return pn(Wt(n.data[0],hn(n.data[1])))},1,r)}function Wt(e,t){return dn(e,t)}var zt=typeof TextDecoder<"u"&&new TextDecoder,Yo=0;try{zt.decode(Lo,{stream:!0}),Yo=1}catch{}var Go=function(e){for(var t="",r=0;;){var n=e[r++],i=(n>127)+(n>223)+(n>239);if(r+i>e.length)return[t,at(e,r-1)];i?i==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):i&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function Vo(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(zt)return zt.decode(e);var i=Go(e),u=i[0],c=i[1];return c.length&&K(8),u}}var Xo=function(e,t){return t+30+ae(e,t+26)+ae(e,t+28)},Zo=function(e,t,r){var n=ae(e,t+28),i=Vo(e.subarray(t+46,t+46+n),!(ae(e,t+8)&2048)),u=t+46+n,c=ne(e,t+20),l=r&&c==4294967295?Qo(e,u):[c,ne(e,t+24),ne(e,t+42)],d=l[0],g=l[1],w=l[2];return[ae(e,t+10),d,g,i,u+ae(e,t+30)+ae(e,t+32),w]},Qo=function(e,t){for(;ae(e,t)!=1;t+=4+ae(e,t+2));return[jt(e,t+12),jt(e,t+4),jt(e,t+20)]};var Jr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function mn(e,t,r){r||(r=t,t={}),typeof r!="function"&&K(7);var n=[],i=function(){for(var F=0;F<n.length;++F)n[F]()},u={},c=function(F,N){Jr(function(){r(F,N)})};Jr(function(){c=r});for(var l=e.length-22;ne(e,l)!=101010256;--l)if(!l||e.length-l>65558)return c(K(13,0,1),null),i;var d=ae(e,l+8);if(d){var g=d,w=ne(e,l+16),E=w==4294967295||g==65535;if(E){var C=ne(e,l-12);E=ne(e,C)==101075792,E&&(g=d=ne(e,C+32),w=ne(e,C+48))}for(var j=t&&t.filter,T=function(F){var N=Zo(e,w,E),J=N[0],G=N[1],ce=N[2],we=N[3],$=N[4],ie=N[5],B=Xo(e,ie);w=$;var M=function(ee,te){ee?(i(),c(ee,null)):(te&&(u[we]=te),--d||c(null,u))};if(!j||j({name:we,size:G,originalSize:ce,compression:J}))if(!J)M(null,at(e,B,B+G));else if(J==8){var Te=e.subarray(B,B+G);if(G<32e4)try{M(null,Wt(Te,new H(ce)))}catch(ee){M(ee,null)}else n.push(Ko(Te,{size:ce},M))}else M(K(14,"unknown compression type "+J,1),null);else M(null,null)},P=0;P<g;++P)T(P)}else c(null,{});return i}function st(e){return new Promise((t,r)=>{mn(e,(n,i)=>{n?r(n):t(i)})})}a();s();var no=Le(Yt()),oo=Le(ro()),Ma=(0,oo.defineTree)({getChildren:no.Entries.getEntries});a();s();var kc=Uint8Array.from([80,75]),bc=Uint8Array.from([55,122,188,175,39,28]);a();s();var io=Le(Yt());async function kr(e){let{gistId:t,fetch:r=globalThis.fetch}=e,n=await r(`https://api.github.com/gists/${t}`);if(!n.ok)throw new Error(`Failed to fetch gist: ${n.statusText}`);let i=await n.json();if(!i.files)throw new Error("No files found in gist");let u={};for(let[c,l]of Object.entries(i.files))if(typeof l=="object"&&l!==null){let d="content"in l?String(l.content):"";u[c]={kind:"file",content:d,encoding:"utf-8"}}return u}async function br(e){let{owner:t,name:r,ref:n="main",path:i,fetch:u=globalThis.fetch,format:c="zip",debug:l=!1}=e,d=`https://www.noya.io/packager/github/download/${t}/${r}/${n}${c==="files"?"":`.${c}`}`,g=await u(d,{headers:{Accept:c==="files"?"application/json":c==="zip"?"application/zip":"application/tar"},mode:"cors"});if(!g.ok)throw new Error(`Failed to fetch repository: ${g.statusText}`);let w=await g.arrayBuffer(),E=new Uint8Array(w);switch(c){case"files":return JSON.parse(new TextDecoder().decode(E));case"zip":return Ca({bytes:E,path:i,debug:l});case"tar":throw new Error("Tar format not supported")}}async function Ca({bytes:e,path:t,debug:r}){let n=await st(e),i={},u=Object.entries(n);if(u.length===0)throw new Error("No files found in zip");let c=u[0][0],l=t?`${c}${t}/`:c;for(let[d,g]of u)if(d.startsWith(l)&&!d.endsWith("/")){let w=t?d.slice(l.length):d.slice(c.length);if(g instanceof Uint8Array)try{i[w]={kind:"file",content:new TextDecoder().decode(g),encoding:"utf-8"}}catch{r&&console.info(`Skipping binary file: ${w}`)}}if(Object.keys(i).length===0&&t)throw new Error(`No files found in path: ${t}`);return i}a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();function ao(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[r,t]))}var Fa={"image/png":"png","image/jpeg":"jpg","image/webp":"webp","image/svg+xml":"svg","application/pdf":"pdf","application/zip":"zip","application/x-7z-compressed":"7z"},Df=ao(Fa);a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();var jl=Symbol("object"),zl=Symbol("array"),Ul=Symbol("key"),Ll=Symbol("end"),Bl=Symbol("primitive"),ql=Symbol("argsep");a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();var Dr=Le(Cr());a();s();var Fr=Le(Cr());a();s();async function To(e){if(e.location==="repository"&&e.repository?.owner&&e.repository?.name){console.info("Loading GitHub repository files",e.repository);let t=await br({owner:e.repository.owner,name:e.repository.name,ref:e.repository.ref,path:e.repository.path,fetch:e.fetch,debug:e.debug});if(e.debug){let r=e.repository.path?` (path: ${e.repository.path})`:"";console.info(`Loaded ${Object.keys(t).length} files from repository ${e.repository.owner}/${e.repository.name}${r}`)}return t}if(e.location==="gist"&&e.gist?.id){console.info("Loading GitHub gist files",e.gist);let t=await kr({gistId:e.gist.id,fetch:e.fetch});return e.debug&&console.info(`Loaded ${Object.keys(t).length} files from gist ${e.gist.id}`),t}return e.files??{}}async function Oo(e,{state:t}){let r=await To(t);return{...t,location:"files",files:r}}0&&(module.exports={resolveFiles});
20
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function Ae(){}function pe(c){if(vr===null)try{var y=("require"+Math.random()).slice(0,7);vr=(Ft&&Ft[y]).call(Ft,"timers").setImmediate}catch{vr=function(x){G===!1&&(G=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var R=new MessageChannel;R.port1.onmessage=x,R.port2.postMessage(void 0)}}return vr(c)}function be(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function S(c,y){y!==lr-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),lr=y}function re(c,y,b){var x=W.actQueue;if(x!==null)if(x.length!==0)try{Qe(x),pe(function(){return re(c,y,b)});return}catch(R){W.thrownErrors.push(R)}else W.actQueue=null;0<W.thrownErrors.length?(x=be(W.thrownErrors),W.thrownErrors.length=0,b(x)):y(c)}function Qe(c){if(!mr){mr=!0;var y=0;try{for(;y<c.length;y++){var b=c[y];do{W.didUsePromise=!1;var x=b(!1);if(x!==null){if(W.didUsePromise){c[y]=b,c.splice(0,y);return}b=x}else break}while(!0)}c.length=0}catch(R){c.splice(0,y+1),W.thrownErrors.push(R)}finally{mr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ee=Symbol.for("react.transitional.element"),he=Symbol.for("react.portal"),ar=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler");Symbol.for("react.provider");var Je=Symbol.for("react.consumer"),Be=Symbol.for("react.context"),ur=Symbol.for("react.forward_ref"),er=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),Fe=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),rr=Symbol.for("react.activity"),cr=Symbol.iterator,pr={},qr={isMounted:function(){return!1},enqueueForceUpdate:function(c){a(c,"forceUpdate")},enqueueReplaceState:function(c){a(c,"replaceState")},enqueueSetState:function(c){a(c,"setState")}},$r=Object.assign,Nr={};Object.freeze(Nr),s.prototype.isReactComponent={},s.prototype.setState=function(c,y){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,y,"setState")},s.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var _e={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},hr;for(hr in _e)_e.hasOwnProperty(hr)&&t(hr,_e[hr]);f.prototype=s.prototype,_e=m.prototype=new f,_e.constructor=m,$r(_e,s.prototype),_e.isPureReactComponent=!0;var Hr=Array.isArray,Mt=Symbol.for("react.client.reference"),W={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},fr=Object.prototype.hasOwnProperty,Ar=console.createTask?console.createTask:function(){return null};_e={react_stack_bottom_frame:function(c){return c()}};var Wr,Pr,Kr={},Yr=_e.react_stack_bottom_frame.bind(_e,j)(),Ct=Ar(N(j)),Rr=!1,Gr=/\/+/g,Vr=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},G=!1,vr=null,lr=0,De=!1,mr=!1,Ve=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:pe;_e=Object.freeze({__proto__:null,c:function(c){return I().useMemoCache(c)}}),B.Children={map:ke,forEach:function(c,y,b){ke(c,function(){y.apply(this,arguments)},b)},count:function(c){var y=0;return ke(c,function(){y++}),y},toArray:function(c){return ke(c,function(y){return y})||[]},only:function(c){if(!Q(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},B.Component=s,B.Fragment=ar,B.Profiler=Pe,B.PureComponent=m,B.StrictMode=Ge,B.Suspense=er,B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,B.__COMPILER_RUNTIME=_e,B.act=function(c){var y=W.actQueue,b=lr;lr++;var x=W.actQueue=y!==null?y:[],R=!1;try{var z=c()}catch(K){W.thrownErrors.push(K)}if(0<W.thrownErrors.length)throw S(y,b),c=be(W.thrownErrors),W.thrownErrors.length=0,c;if(z!==null&&typeof z=="object"&&typeof z.then=="function"){var U=z;return Ve(function(){R||De||(De=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(K,$e){R=!0,U.then(function(tr){if(S(y,b),b===0){try{Qe(x),pe(function(){return re(tr,K,$e)})}catch(Dt){W.thrownErrors.push(Dt)}if(0<W.thrownErrors.length){var Zr=be(W.thrownErrors);W.thrownErrors.length=0,$e(Zr)}}else K(tr)},function(tr){S(y,b),0<W.thrownErrors.length&&(tr=be(W.thrownErrors),W.thrownErrors.length=0),$e(tr)})}}}var A=z;if(S(y,b),b===0&&(Qe(x),x.length!==0&&Ve(function(){R||De||(De=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),W.actQueue=null),0<W.thrownErrors.length)throw c=be(W.thrownErrors),W.thrownErrors.length=0,c;return{then:function(K,$e){R=!0,b===0?(W.actQueue=x,pe(function(){return re(A,K,$e)})):K(A)}}},B.cache=function(c){return function(){return c.apply(null,arguments)}},B.captureOwnerStack=function(){var c=W.getCurrentStack;return c===null?null:c()},B.cloneElement=function(c,y,b){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var x=$r({},c.props),R=c.key,z=c._owner;if(y!=null){var U;e:{if(fr.call(y,"ref")&&(U=Object.getOwnPropertyDescriptor(y,"ref").get)&&U.isReactWarning){U=!1;break e}U=y.ref!==void 0}U&&(z=M()),ee(y)&&(E(y.key),R=""+y.key);for(A in y)!fr.call(y,A)||A==="key"||A==="__self"||A==="__source"||A==="ref"&&y.ref===void 0||(x[A]=y[A])}var A=arguments.length-2;if(A===1)x.children=b;else if(1<A){U=Array(A);for(var K=0;K<A;K++)U[K]=arguments[K+2];x.children=U}for(x=Y(c.type,R,void 0,void 0,z,x,c._debugStack,c._debugTask),R=2;R<arguments.length;R++)z=arguments[R],Q(z)&&z._store&&(z._store.validated=1);return x},B.createContext=function(c){return c={$$typeof:Be,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:Je,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},B.createElement=function(c,y,b){for(var x=2;x<arguments.length;x++){var R=arguments[x];Q(R)&&R._store&&(R._store.validated=1)}if(x={},R=null,y!=null)for(K in Pr||!("__self"in y)||"key"in y||(Pr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),ee(y)&&(E(y.key),R=""+y.key),y)fr.call(y,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(x[K]=y[K]);var z=arguments.length-2;if(z===1)x.children=b;else if(1<z){for(var U=Array(z),A=0;A<z;A++)U[A]=arguments[A+2];Object.freeze&&Object.freeze(U),x.children=U}if(c&&c.defaultProps)for(K in z=c.defaultProps,z)x[K]===void 0&&(x[K]=z[K]);R&&te(x,typeof c=="function"?c.displayName||c.name||"Unknown":c);var K=1e4>W.recentlyCreatedOwnerStacks++;return Y(c,R,void 0,void 0,M(),x,K?Error("react-stack-top-frame"):Yr,K?Ar(N(c)):Ct)},B.createRef=function(){var c={current:null};return Object.seal(c),c},B.forwardRef=function(c){c!=null&&c.$$typeof===Fe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:ur,render:c},b;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return b},set:function(x){b=x,c.name||c.displayName||(Object.defineProperty(c,"name",{value:x}),c.displayName=x)}}),y},B.isValidElement=Q,B.lazy=function(c){return{$$typeof:qe,_payload:{_status:-1,_result:c},_init:ie}},B.memo=function(c,y){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),y={$$typeof:Fe,type:c,compare:y===void 0?null:y};var b;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return b},set:function(x){b=x,c.name||c.displayName||(Object.defineProperty(c,"name",{value:x}),c.displayName=x)}}),y},B.startTransition=function(c){var y=W.T,b={};W.T=b,b._updatedFibers=new Set;try{var x=c(),R=W.S;R!==null&&R(b,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(Ae,Vr)}catch(z){Vr(z)}finally{y===null&&b._updatedFibers&&(c=b._updatedFibers.size,b._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),W.T=y}},B.unstable_useCacheRefresh=function(){return I().useCacheRefresh()},B.use=function(c){return I().use(c)},B.useActionState=function(c,y,b){return I().useActionState(c,y,b)},B.useCallback=function(c,y){return I().useCallback(c,y)},B.useContext=function(c){var y=I();return c.$$typeof===Je&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(c)},B.useDebugValue=function(c,y){return I().useDebugValue(c,y)},B.useDeferredValue=function(c,y){return I().useDeferredValue(c,y)},B.useEffect=function(c,y,b){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var x=I();if(typeof b=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.useEffect(c,y)},B.useId=function(){return I().useId()},B.useImperativeHandle=function(c,y,b){return I().useImperativeHandle(c,y,b)},B.useInsertionEffect=function(c,y){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useInsertionEffect(c,y)},B.useLayoutEffect=function(c,y){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useLayoutEffect(c,y)},B.useMemo=function(c,y){return I().useMemo(c,y)},B.useOptimistic=function(c,y){return I().useOptimistic(c,y)},B.useReducer=function(c,y,b){return I().useReducer(c,y,b)},B.useRef=function(c){return I().useRef(c)},B.useState=function(c){return I().useState(c)},B.useSyncExternalStore=function(c,y,b){return I().useSyncExternalStore(c,y,b)},B.useTransition=function(){return I().useTransition()},B.version="19.1.2",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var zn=Z((Pv,jn)=>{"use strict";h();v();process.env.NODE_ENV==="production"?jn.exports=Ti():jn.exports=Oi()});var tc={};js(tc,{default:()=>bi,resolveFiles:()=>ki});module.exports=zs(tc);h();v();h();v();h();v();h();v();h();v();var Us=yr(eo());h();v();h();v();h();v();var no=require("module"),Ls=(0,no.createRequire)("/"),et,Bs=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{et=Ls("worker_threads").Worker}catch{}var qs=et?function(t,o,a,s,f){var m=!1,g=new et(t+Bs,{eval:!0}).on("error",function(E){return f(E,null)}).on("message",function(E){return f(null,E)}).on("exit",function(E){E&&!m&&f(new Error("exited with code "+E),null)});return g.postMessage(a,s),g.terminate=function(){return m=!0,et.prototype.terminate.call(g)},g}:function(t,o,a,s,f){setImmediate(function(){return f(new Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var m=function(){};return{terminate:m,postMessage:m}},we=Uint8Array,nr=Uint16Array,$t=Uint32Array,Ht=new we([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Wt=new we([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),oo=new we([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),io=function(t,o){for(var a=new nr(31),s=0;s<31;++s)a[s]=o+=1<<t[s-1];for(var f=new $t(a[30]),s=1;s<30;++s)for(var m=a[s];m<a[s+1];++m)f[m]=m-a[s]<<5|s;return[a,f]},so=io(Ht,2),Kt=so[0],$s=so[1];Kt[28]=258,$s[258]=28;var ao=io(Wt,0),uo=ao[0],vc=ao[1],nt=new nr(32768);for(ne=0;ne<32768;++ne)Xe=(ne&43690)>>>1|(ne&21845)<<1,Xe=(Xe&52428)>>>2|(Xe&13107)<<2,Xe=(Xe&61680)>>>4|(Xe&3855)<<4,nt[ne]=((Xe&65280)>>>8|(Xe&255)<<8)>>>1;var Xe,ne,wr=function(t,o,a){for(var s=t.length,f=0,m=new nr(o);f<s;++f)t[f]&&++m[t[f]-1];var g=new nr(o);for(f=0;f<o;++f)g[f]=g[f-1]+m[f-1]<<1;var E;if(a){E=new nr(1<<o);var _=15-o;for(f=0;f<s;++f)if(t[f])for(var N=f<<4|t[f],M=o-t[f],j=g[t[f]-1]++<<M,ee=j|(1<<M)-1;j<=ee;++j)E[nt[j]>>>_]=N}else for(E=new nr(s),f=0;f<s;++f)t[f]&&(E[f]=nt[g[t[f]-1]++]>>>15-t[f]);return E},jr=new we(288);for(ne=0;ne<144;++ne)jr[ne]=8;var ne;for(ne=144;ne<256;++ne)jr[ne]=9;var ne;for(ne=256;ne<280;++ne)jr[ne]=7;var ne;for(ne=280;ne<288;++ne)jr[ne]=8;var ne,co=new we(32);for(ne=0;ne<32;++ne)co[ne]=5;var ne;var fo=wr(jr,9,1);var lo=wr(co,5,1),rt=function(t){for(var o=t[0],a=1;a<t.length;++a)t[a]>o&&(o=t[a]);return o},Me=function(t,o,a){var s=o/8|0;return(t[s]|t[s+1]<<8)>>(o&7)&a},tt=function(t,o){var a=o/8|0;return(t[a]|t[a+1]<<8|t[a+2]<<16)>>(o&7)},po=function(t){return(t+7)/8|0},ot=function(t,o,a){(o==null||o<0)&&(o=0),(a==null||a>t.length)&&(a=t.length);var s=new(t.BYTES_PER_ELEMENT==2?nr:t.BYTES_PER_ELEMENT==4?$t:we)(a-o);return s.set(t.subarray(o,a)),s};var ho=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Te=function(t,o,a){var s=new Error(o||ho[t]);if(s.code=t,Error.captureStackTrace&&Error.captureStackTrace(s,Te),!a)throw s;return s},vo=function(t,o,a){var s=t.length;if(!s||a&&a.f&&!a.l)return o||new we(0);var f=!o||a,m=!a||a.i;a||(a={}),o||(o=new we(s*3));var g=function(Fe){var qe=o.length;if(Fe>qe){var rr=new we(Math.max(qe*2,Fe));rr.set(o),o=rr}},E=a.f||0,_=a.p||0,N=a.b||0,M=a.l,j=a.d,ee=a.m,te=a.n,P=s*8;do{if(!M){E=Me(t,_,1);var Y=Me(t,_+1,3);if(_+=3,Y)if(Y==1)M=fo,j=lo,ee=9,te=5;else if(Y==2){var me=Me(t,_,31)+257,xe=Me(t,_+10,15)+4,Ne=me+Me(t,_+5,31)+1;_+=14;for(var de=new we(Ne),ke=new we(19),ie=0;ie<xe;++ie)ke[oo[ie]]=Me(t,_+ie*3,7);_+=xe*3;for(var I=rt(ke),Ae=(1<<I)-1,pe=wr(ke,I,1),ie=0;ie<Ne;){var be=pe[Me(t,_,Ae)];_+=be&15;var X=be>>>4;if(X<16)de[ie++]=X;else{var S=0,re=0;for(X==16?(re=3+Me(t,_,3),_+=2,S=de[ie-1]):X==17?(re=3+Me(t,_,7),_+=3):X==18&&(re=11+Me(t,_,127),_+=7);re--;)de[ie++]=S}}var Qe=de.subarray(0,me),Ee=de.subarray(me);ee=rt(Qe),te=rt(Ee),M=wr(Qe,ee,1),j=wr(Ee,te,1)}else Te(1);else{var X=po(_)+4,Q=t[X-4]|t[X-3]<<8,ye=X+Q;if(ye>s){m&&Te(0);break}f&&g(N+Q),o.set(t.subarray(X,ye),N),a.b=N+=Q,a.p=_=ye*8,a.f=E;continue}if(_>P){m&&Te(0);break}}f&&g(N+131072);for(var he=(1<<ee)-1,ar=(1<<te)-1,Ge=_;;Ge=_){var S=M[tt(t,_)&he],Pe=S>>>4;if(_+=S&15,_>P){m&&Te(0);break}if(S||Te(2),Pe<256)o[N++]=Pe;else if(Pe==256){Ge=_,M=null;break}else{var Je=Pe-254;if(Pe>264){var ie=Pe-257,Be=Ht[ie];Je=Me(t,_,(1<<Be)-1)+Kt[ie],_+=Be}var ur=j[tt(t,_)&ar],er=ur>>>4;ur||Te(3),_+=ur&15;var Ee=uo[er];if(er>3){var Be=Wt[er];Ee+=tt(t,_)&(1<<Be)-1,_+=Be}if(_>P){m&&Te(0);break}f&&g(N+131072);for(var Re=N+Je;N<Re;N+=4)o[N]=o[N-Ee],o[N+1]=o[N+1-Ee],o[N+2]=o[N+2-Ee],o[N+3]=o[N+3-Ee];N=Re}}a.l=M,a.p=Ge,a.b=N,a.f=E,M&&(E=1,a.m=ee,a.d=j,a.n=te)}while(!E);return N==o.length?o:ot(o,0,N)};var Hs=new we(0);var Ws=function(t,o){var a={};for(var s in t)a[s]=t[s];for(var s in o)a[s]=o[s];return a},ro=function(t,o,a){for(var s=t(),f=t.toString(),m=f.slice(f.indexOf("[")+1,f.lastIndexOf("]")).replace(/\s+/g,"").split(","),g=0;g<s.length;++g){var E=s[g],_=m[g];if(typeof E=="function"){o+=";"+_+"=";var N=E.toString();if(E.prototype)if(N.indexOf("[native code]")!=-1){var M=N.indexOf(" ",8)+1;o+=N.slice(M,N.indexOf("(",M))}else{o+=N;for(var j in E.prototype)o+=";"+_+".prototype."+j+"="+E.prototype[j].toString()}else o+=N}else a[_]=E}return[o,a]},Jr=[],Ks=function(t){var o=[];for(var a in t)t[a].buffer&&o.push((t[a]=new t[a].constructor(t[a])).buffer);return o},Ys=function(t,o,a,s){var f;if(!Jr[a]){for(var m="",g={},E=t.length-1,_=0;_<E;++_)f=ro(t[_],m,g),m=f[0],g=f[1];Jr[a]=ro(t[E],m,g)}var N=Ws({},Jr[a][1]);return qs(Jr[a][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",a,N,Ks(N),s)},Gs=function(){return[we,nr,$t,Ht,Wt,oo,Kt,uo,fo,lo,nt,ho,wr,rt,Me,tt,po,ot,Te,vo,Yt,mo,go]};var mo=function(t){return postMessage(t,[t.buffer])},go=function(t){return t&&t.size&&new we(t.size)},Vs=function(t,o,a,s,f,m){var g=Ys(a,s,f,function(E,_){g.terminate(),m(E,_)});return g.postMessage([t,o],o.consume?[t.buffer]:[]),function(){g.terminate()}};var We=function(t,o){return t[o]|t[o+1]<<8},Ue=function(t,o){return(t[o]|t[o+1]<<8|t[o+2]<<16|t[o+3]<<24)>>>0},Bt=function(t,o){return Ue(t,o)+Ue(t,o+4)*4294967296};function Zs(t,o,a){return a||(a=o,o={}),typeof a!="function"&&Te(7),Vs(t,o,[Gs],function(s){return mo(Yt(s.data[0],go(s.data[1])))},1,a)}function Yt(t,o){return vo(t,o)}var qt=typeof TextDecoder<"u"&&new TextDecoder,Xs=0;try{qt.decode(Hs,{stream:!0}),Xs=1}catch{}var Qs=function(t){for(var o="",a=0;;){var s=t[a++],f=(s>127)+(s>223)+(s>239);if(a+f>t.length)return[o,ot(t,a-1)];f?f==3?(s=((s&15)<<18|(t[a++]&63)<<12|(t[a++]&63)<<6|t[a++]&63)-65536,o+=String.fromCharCode(55296|s>>10,56320|s&1023)):f&1?o+=String.fromCharCode((s&31)<<6|t[a++]&63):o+=String.fromCharCode((s&15)<<12|(t[a++]&63)<<6|t[a++]&63):o+=String.fromCharCode(s)}};function Js(t,o){if(o){for(var a="",s=0;s<t.length;s+=16384)a+=String.fromCharCode.apply(null,t.subarray(s,s+16384));return a}else{if(qt)return qt.decode(t);var f=Qs(t),m=f[0],g=f[1];return g.length&&Te(8),m}}var ea=function(t,o){return o+30+We(t,o+26)+We(t,o+28)},ra=function(t,o,a){var s=We(t,o+28),f=Js(t.subarray(o+46,o+46+s),!(We(t,o+8)&2048)),m=o+46+s,g=Ue(t,o+20),E=a&&g==4294967295?ta(t,m):[g,Ue(t,o+24),Ue(t,o+42)],_=E[0],N=E[1],M=E[2];return[We(t,o+10),_,N,f,m+We(t,o+30)+We(t,o+32),M]},ta=function(t,o){for(;We(t,o)!=1;o+=4+We(t,o+2));return[Bt(t,o+12),Bt(t,o+4),Bt(t,o+20)]};var to=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t()};function yo(t,o,a){a||(a=o,o={}),typeof a!="function"&&Te(7);var s=[],f=function(){for(var X=0;X<s.length;++X)s[X]()},m={},g=function(X,Q){to(function(){a(X,Q)})};to(function(){g=a});for(var E=t.length-22;Ue(t,E)!=101010256;--E)if(!E||t.length-E>65558)return g(Te(13,0,1),null),f;var _=We(t,E+8);if(_){var N=_,M=Ue(t,E+16),j=M==4294967295||N==65535;if(j){var ee=Ue(t,E-12);j=Ue(t,ee)==101075792,j&&(N=_=Ue(t,ee+32),M=Ue(t,ee+48))}for(var te=o&&o.filter,P=function(X){var Q=ra(t,M,j),ye=Q[0],me=Q[1],xe=Q[2],Ne=Q[3],de=Q[4],ke=Q[5],ie=ea(t,ke);M=de;var I=function(pe,be){pe?(f(),g(pe,null)):(be&&(m[Ne]=be),--_||g(null,m))};if(!te||te({name:Ne,size:me,originalSize:xe,compression:ye}))if(!ye)I(null,ot(t,ie,ie+me));else if(ye==8){var Ae=t.subarray(ie,ie+me);if(me<32e4)try{I(null,Yt(Ae,new we(xe)))}catch(pe){I(pe,null)}else s.push(Zs(Ae,{size:xe},I))}else I(Te(14,"unknown compression type "+ye,1),null);else I(null,null)},Y=0;Y<N;++Y)P(Y)}else g(null,{});return f}function it(t){return new Promise((o,a)=>{yo(t,(s,f)=>{s?a(s):o(f)})})}h();v();var si=yr(Xt()),ai=yr(ii()),Iu=(0,ai.defineTree)({getChildren:si.Entries.getEntries});h();v();var Nl=Uint8Array.from([80,75]),Al=Uint8Array.from([55,122,188,175,39,28]);h();v();var ui=yr(Xt());async function An(t){let{gistId:o,fetch:a=globalThis.fetch}=t,s=await a(`https://api.github.com/gists/${o}`);if(!s.ok)throw new Error(`Failed to fetch gist: ${s.statusText}`);let f=await s.json();if(!f.files)throw new Error("No files found in gist");let m={};for(let[g,E]of Object.entries(f.files))if(typeof E=="object"&&E!==null){let _="content"in E?String(E.content):"";m[g]={kind:"file",content:_,encoding:"utf-8"}}return m}async function Pn(t){let{owner:o,name:a,ref:s="main",path:f,fetch:m=globalThis.fetch,format:g="zip",debug:E=!1}=t,_=`https://www.noya.io/packager/github/download/${o}/${a}/${s}${g==="files"?"":`.${g}`}`,N=await m(_,{headers:{Accept:g==="files"?"application/json":g==="zip"?"application/zip":"application/tar"},mode:"cors"});if(!N.ok)throw new Error(`Failed to fetch repository: ${N.statusText}`);let M=await N.arrayBuffer(),j=new Uint8Array(M);switch(g){case"files":return JSON.parse(new TextDecoder().decode(j));case"zip":return ju({bytes:j,path:f,debug:E});case"tar":throw new Error("Tar format not supported")}}async function ju({bytes:t,path:o,debug:a}){let s=await it(t),f={},m=Object.entries(s);if(m.length===0)throw new Error("No files found in zip");let g=m[0][0],E=o?`${g}${o}/`:g;for(let[_,N]of m)if(_.startsWith(E)&&!_.endsWith("/")){let M=o?_.slice(E.length):_.slice(g.length);if(N instanceof Uint8Array)try{f[M]={kind:"file",content:new TextDecoder().decode(N),encoding:"utf-8"}}catch{a&&console.info(`Skipping binary file: ${M}`)}}if(Object.keys(f).length===0&&o)throw new Error(`No files found in path: ${o}`);return f}h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();function ci(t){return Object.fromEntries(Object.entries(t).map(([o,a])=>[a,o]))}var Uu={"image/png":"png","image/jpeg":"jpg","image/webp":"webp","image/svg+xml":"svg","application/pdf":"pdf","application/zip":"zip","application/x-7z-compressed":"7z"},jd=ci(Uu);h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();var Lp=Symbol("object"),Bp=Symbol("array"),qp=Symbol("key"),$p=Symbol("end"),Hp=Symbol("primitive"),Wp=Symbol("argsep");h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();var Un=yr(zn());h();v();var Ln=yr(zn());h();v();async function ki(t){if(t.location==="repository"&&t.repository?.owner&&t.repository?.name){console.info("Loading GitHub repository files",t.repository);let o=await Pn({owner:t.repository.owner,name:t.repository.name,ref:t.repository.ref,path:t.repository.path,fetch:t.fetch,debug:t.debug});if(t.debug){let a=t.repository.path?` (path: ${t.repository.path})`:"";console.info(`Loaded ${Object.keys(o).length} files from repository ${t.repository.owner}/${t.repository.name}${a}`)}return o}if(t.location==="gist"&&t.gist?.id){console.info("Loading GitHub gist files",t.gist);let o=await An({gistId:t.gist.id,fetch:t.fetch});return t.debug&&console.info(`Loaded ${Object.keys(o).length} files from gist ${t.gist.id}`),o}return t.files??{}}async function bi(t,{state:o}){let a=await ki(o);return{...o,location:"files",files:a}}0&&(module.exports={resolveFiles});
20
21
  /*! Bundled license information:
21
22
 
22
23
  react/cjs/react.production.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noya-app/noya-resolve-files",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -11,6 +11,6 @@
11
11
  "dev": "npm run build -- --watch"
12
12
  },
13
13
  "dependencies": {
14
- "@noya-app/noya-github-utils": "0.1.25"
14
+ "@noya-app/noya-github-utils": "0.1.27"
15
15
  }
16
16
  }