@noya-app/noya-resolve-files 0.1.15 → 0.1.16
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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +6 -0
- package/dist/bundle/index.js +4 -4
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[32mCJS[39m [1mdist/bundle/index.js [22m[32m63.35 KB[39m
|
|
11
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 79ms
|
|
12
12
|
[0m[2m[35m$[0m [2m[1mtsup[0m
|
|
13
13
|
[34mCLI[39m Building entry: src/index.ts
|
|
14
14
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
[34mESM[39m Build start
|
|
20
20
|
[32mESM[39m [1mdist/index.mjs [22m[32m1.50 KB[39m
|
|
21
21
|
[32mESM[39m [1mdist/index.mjs.map [22m[32m3.00 KB[39m
|
|
22
|
-
[32mESM[39m ⚡️ Build success in
|
|
22
|
+
[32mESM[39m ⚡️ Build success in 30ms
|
|
23
23
|
[32mCJS[39m [1mdist/index.js [22m[32m2.53 KB[39m
|
|
24
24
|
[32mCJS[39m [1mdist/index.js.map [22m[32m3.03 KB[39m
|
|
25
|
-
[32mCJS[39m ⚡️ Build success in
|
|
25
|
+
[32mCJS[39m ⚡️ Build success in 30ms
|
|
26
26
|
DTS Build start
|
|
27
|
-
DTS ⚡️ Build success in
|
|
27
|
+
DTS ⚡️ Build success in 1318ms
|
|
28
28
|
DTS dist/index.d.ts 1.00 KB
|
|
29
29
|
DTS dist/index.d.mts 1.00 KB
|
package/CHANGELOG.md
CHANGED
package/dist/bundle/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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
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
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
4
|
`)}function Qt(e){return e.includes(`
|
|
5
5
|
`)}function Cn(e,t,r){return Qt(e)?e.split(`
|
|
6
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=Hi;var Bi=Mn(),qi=Dn();function Hi(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=Wi;ue.SKIP="skip";ue.STOP="stop";function Wi(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(xt=>{"use strict";a();s();Object.defineProperty(xt,"__esModule",{value:!0});xt.map=ra;xt.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=kt;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 kt(){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,kt())}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,kt())}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,kt())}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 Hn=Ie();function Ea(e,t){if(t.path.length===0)return t.node;let r=(0,Hn.getReplaceOperations)(t.path,t.node);return(0,Hn.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 Wn(e,t).node}function Ta(e,t){return Wn(e,t)}function Wn(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(),xa=rr(),ye=nr(),ba=ar(),Kn=dr(),Yn=bt(),ka=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,xa.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,ka.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"),Ha=Symbol.for("react.suspense"),Wa=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 kr(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===""?"."+kr(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+kr(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+kr(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=Ha;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:Wa,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===xo?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case Ue:return"Fragment";case fe:return"Profiler";case xe: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 ke: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=k.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 Wr[o]||(Wr[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,x,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:x}),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 x=!1;if(o===null)x=!0;else switch(S){case"bigint":case"string":case"number":x=!0;break;case"object":switch(o.$$typeof){case V:case Ke:x=!0;break;case Ee:return x=o._init,$(x(o._payload),f,m,v,y)}}if(x){x=o,y=y(x);var D=v===""?"."+G(x,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&&(x&&x.key===y.key||l(y.key)),m=F(y,m+(y.key==null||x&&x.key===y.key?"":(""+y.key).replace(Kr,"$&/")+"/")+D),v!==""&&x!=null&&N(x)&&x.key==null&&x._store&&!x._store.validated&&(m._store.validated=2),y=m),f.push(y)),1}if(x=0,D=v===""?".":v+":",Lr(o))for(var b=0;b<o.length;b++)v=o[b],S=D+G(v,b),x+=$(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++),x+=$(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 x}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
|
|
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
|
|
8
8
|
|
|
9
9
|
Your code should look like:
|
|
10
10
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -12,11 +12,11 @@ Your code should look like:
|
|
|
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
13
|
|
|
14
14
|
Your code should look like:
|
|
15
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,f),f.default;throw o._result}function M(){var o=
|
|
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
16
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
17
17
|
2. You might be breaking the Rules of Hooks
|
|
18
18
|
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=k.actQueue;if(v!==null)if(v.length!==0)try{Oe(v),ee(function(){return de(o,f,m)});return}catch(y){k.thrownErrors.push(y)}else k.actQueue=null;0<k.thrownErrors.length?(v=te(k.thrownErrors),k.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{k.didUsePromise=!1;var v=m(!1);if(v!==null){if(k.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),k.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"),xe=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"),ke=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,xo=Symbol.for("react.client.reference"),k={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,Hr,Wr={},bo=X["react-stack-bottom-frame"].bind(X,E)(),ko=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=xe,_.Suspense=Se,_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,_.__COMPILER_RUNTIME=X,_.act=function(o){var f=k.actQueue,m=Qe;Qe++;var v=k.actQueue=f!==null?f:[],y=!1;try{var S=o()}catch(b){k.thrownErrors.push(b)}if(0<k.thrownErrors.length)throw re(f,m),o=te(k.thrownErrors),k.thrownErrors.length=0,o;if(S!==null&&typeof S=="object"&&typeof S.then=="function"){var x=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,x.then(function(Pe){if(re(f,m),m===0){try{Oe(v),ee(function(){return de(Pe,b,he)})}catch(Ao){k.thrownErrors.push(Ao)}if(0<k.thrownErrors.length){var So=te(k.thrownErrors);k.thrownErrors.length=0,he(So)}}else b(Pe)},function(Pe){re(f,m),0<k.thrownErrors.length&&(Pe=te(k.thrownErrors),k.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(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw o=te(k.thrownErrors),k.thrownErrors.length=0,o;return{then:function(b,he){y=!0,m===0?(k.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=k.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 x;e:{if(Xe.call(f,"ref")&&(x=Object.getOwnPropertyDescriptor(f,"ref").get)&&x.isReactWarning){x=!1;break e}x=f.ref!==void 0}x&&(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){x=Array(D);for(var b=0;b<D;b++)x[b]=arguments[b+2];v.children=x}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 Hr||!("__self"in f)||"key"in f||(Hr=!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 x=Array(S),D=0;D<S;D++)x[D]=arguments[D+2];Object.freeze&&Object.freeze(x),v.children=x}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>k.recentlyCreatedOwnerStacks++;return P(o,y,void 0,void 0,w(),v,b?Error("react-stack-top-frame"):bo,b?Br(g(o)):ko)},_.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:ke,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=k.T,m={};k.T=m,m._updatedFibers=new Set;try{var v=o(),y=k.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.")),k.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}},W=Uint8Array,me=Uint16Array,Ut=Uint32Array,Lt=new W([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 W([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 W([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 W(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 W(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:W)(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 W(0);var i=!t||r,u=!r||r.i;r||(r={}),t||(t=new W(n*3));var c=function(Ae){var Ee=t.length;if(Ae>Ee){var Ge=new W(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 W(we),ie=new W(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,xe=d;;xe=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){xe=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 ke=E[ot(e,d)&Ue],Se=ke>>>4;ke||K(3),d+=ke&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=xe,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 W(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},Ho=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)},Wo=function(){return[W,me,Ut,Lt,Bt,tn,qt,an,un,cn,it,ln,Re,nt,Z,ot,fn,at,K,dn,Ht,pn,hn]};var pn=function(e){return postMessage(e,[e.buffer])},hn=function(e){return e&&e.size&&new W(e.size)},$o=function(e,t,r,n,i,u){var c=Ho(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,[Wo],function(n){return pn(Ht(n.data[0],hn(n.data[1])))},1,r)}function Ht(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,Ht(Te,new W(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 xc=Uint8Array.from([80,75]),bc=Uint8Array.from([55,122,188,175,39,28]);a();s();var io=Le(Yt());async function xr(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 xr({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});
|
|
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
20
|
/*! Bundled license information:
|
|
21
21
|
|
|
22
22
|
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.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
"dev": "npm run build -- --watch"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@noya-app/noya-github-utils": "0.1.
|
|
15
|
+
"@noya-app/noya-github-utils": "0.1.23"
|
|
16
16
|
}
|
|
17
17
|
}
|