@uniweb/runtime 0.9.7 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1 @@
1
1
  import{B as s,D as t,b as l,e as r,E as i,F as o,O as c,P as h,T as m,U as n,W as u,f as D,j as b,c as g,d as U,k as v,l as S,h as d,o as L,a as R,p as y,q as P,m as W,t as f,u as w,v as A,w as F,x as T,r as k,s as p,y as q}from"../assets/core-BI26Dvfl.js";export{s as Block,t as DATA_DIR,l as DATA_URL_PREFIX,r as DataStore,i as EntityStore,o as FetcherDispatcher,c as ObservableState,h as Page,m as Theme,n as Uniweb,u as Website,D as collectionDataUrl,b as collectionNameFromUrl,g as createUniweb,U as deriveCacheKey,v as evaluateWhere,S as getUniweb,d as hasDarkScheme,L as isDataUrl,R as isRichSchema,y as isWildcardLanguages,P as listRequestStyleNames,W as matchWhere,f as normalizeLanguageList,w as normalizeSchema,A as recordDataUrl,F as resolveDefaultLocale,T as resolvePublishableLocales,k as resolveRequestStyle,p as substitutePlaceholders,q as validateLanguageConfig};
2
- //# sourceMappingURL=@uniweb-core.js.map
@@ -51,4 +51,3 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
51
51
  `+n;break n}t=ye(t+(e?" ["+e+"]":""))}return t}}switch(n){case $e:return ye("SuspenseList");case $l:return ye("Suspense")}return""}function rl(n,e){return(500<e.byteSize||Tr(e.contentState))&&e.contentPreamble===null}function wr(n){if(typeof n=="object"&&n!==null&&typeof n.environmentName=="string"){var e=n.environmentName;n=[n].slice(0),typeof n[0]=="string"?n.splice(0,1,"%c%s%c "+n[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+e+" ",""):n.splice(0,0,"%c%s%c","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+e+" ",""),n.unshift(console),e=Et.apply(console.error,n),e()}else console.error(n);return null}function ze(n,e,t,a,f,h,d,b,g,y,T){var R=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=n,this.renderState=e,this.rootFormatContext=t,this.progressiveChunkSize=a===void 0?12800:a,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=R,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=f===void 0?wr:f,this.onPostpone=y===void 0?F:y,this.onAllReady=h===void 0?F:h,this.onShellReady=d===void 0?F:d,this.onShellError=b===void 0?F:b,this.onFatalError=g===void 0?F:g,this.formState=T===void 0?null:T}function He(n,e,t,a,f,h,d,b,g,y,T,R){return e=new ze(e,t,a,f,h,d,b,g,y,T,R),t=tl(e,0,null,a,!1,!1),t.parentFlushed=!0,n=Jl(e,null,n,-1,null,t,null,null,e.abortableTasks,null,a,null,o,null,null),Ql(n),e.pingedTasks.push(n),e}function Cr(n,e,t,a,f,h,d,b,g,y,T){return n=He(n,e,t,a,f,h,d,b,g,y,T,void 0),n.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},n}function Rl(n,e,t,a,f,h,d,b,g){return t=new ze(e.resumableState,t,e.rootFormatContext,e.progressiveChunkSize,a,f,h,d,b,g,null),t.nextSegmentId=e.nextSegmentId,typeof e.replaySlots=="number"?(a=tl(t,0,null,e.rootFormatContext,!1,!1),a.parentFlushed=!0,n=Jl(t,null,n,-1,null,a,null,null,t.abortableTasks,null,e.rootFormatContext,null,o,null,null),Ql(n),t.pingedTasks.push(n),t):(n=Ct(t,null,{nodes:e.replayNodes,slots:e.replaySlots,pendingTasks:0},n,-1,null,null,t.abortableTasks,null,e.rootFormatContext,null,o,null,null),Ql(n),t.pingedTasks.push(n),t)}function _i(n,e,t,a,f,h,d,b,g){return n=Rl(n,e,t,a,f,h,d,b,g),n.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},n}var yn=null;function Zl(n,e){n.pingedTasks.push(e),n.pingedTasks.length===1&&(n.flushScheduled=n.destination!==null,n.trackedPostpones!==null||n.status===10?Yr(function(){return Ni(n)}):Qt(function(){return Ni(n)}))}function We(n,e,t,a,f){return t={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:e,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:ue(),fallbackState:ue(),contentPreamble:a,fallbackPreamble:f,trackedContentKeyPath:null,trackedFallbackNode:null},e!==null&&(e.pendingTasks++,a=e.boundaries,a!==null&&(n.allPendingTasks++,t.pendingTasks++,a.push(t)),n=e.inheritedHoistables,n!==null&&de(t.contentState,n)),t}function Jl(n,e,t,a,f,h,d,b,g,y,T,R,A,_,X){n.allPendingTasks++,f===null?n.pendingRootTasks++:f.pendingTasks++,_!==null&&_.pendingTasks++;var W={replay:null,node:t,childIndex:a,ping:function(){return Zl(n,W)},blockedBoundary:f,blockedSegment:h,blockedPreamble:d,hoistableState:b,abortSet:g,keyPath:y,formatContext:T,context:R,treeContext:A,row:_,componentStack:X,thenableState:e};return g.add(W),W}function Ct(n,e,t,a,f,h,d,b,g,y,T,R,A,_){n.allPendingTasks++,h===null?n.pendingRootTasks++:h.pendingTasks++,A!==null&&A.pendingTasks++,t.pendingTasks++;var X={replay:t,node:a,childIndex:f,ping:function(){return Zl(n,X)},blockedBoundary:h,blockedSegment:null,blockedPreamble:null,hoistableState:d,abortSet:b,keyPath:g,formatContext:y,context:T,treeContext:R,row:A,componentStack:_,thenableState:e};return b.add(X),X}function tl(n,e,t,a,f,h){return{status:0,parentFlushed:!1,id:-1,index:e,chunks:[],children:[],preambleChildren:[],parentFormatContext:a,boundary:t,lastPushedText:f,textEmbedded:h}}function Ql(n){var e=n.node;typeof e=="object"&&e!==null&&e.$$typeof===Dt&&(n.componentStack={parent:n.componentStack,type:e.type})}function Te(n){return n===null?null:{parent:n.parent,type:"Suspense Fallback"}}function il(n){var e={};return n&&Object.defineProperty(e,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var t="",a=n;do t+=Ii(a.type),a=a.parent;while(a);var f=t}catch(h){f=`
52
52
  Error generating stack: `+h.message+`
53
53
  `+h.stack}return Object.defineProperty(e,"componentStack",{value:f}),f}}),e}function Pn(n,e,t){if(n=n.onError,e=n(e,t),e==null||typeof e=="string")return e}function Ue(n,e){var t=n.onShellError,a=n.onFatalError;t(e),a(e),n.destination!==null?(n.status=14,Kt(n.destination,e)):(n.status=13,n.fatalError=e)}function On(n,e){ki(n,e.next,e.hoistables)}function ki(n,e,t){for(;e!==null;){t!==null&&(de(e.hoistables,t),e.inheritedHoistables=t);var a=e.boundaries;if(a!==null){e.boundaries=null;for(var f=0;f<a.length;f++){var h=a[f];t!==null&&de(h.contentState,t),jn(n,h,null,null)}}if(e.pendingTasks--,0<e.pendingTasks)break;t=e.hoistables,e=e.next}}function Fr(n,e){var t=e.boundaries;if(t!==null&&e.pendingTasks===t.length){for(var a=!0,f=0;f<t.length;f++){var h=t[f];if(h.pendingTasks!==1||h.parentFlushed||rl(n,h)){a=!1;break}}a&&ki(n,e,e.hoistables)}}function Sr(n){var e={pendingTasks:1,boundaries:null,hoistables:ue(),inheritedHoistables:null,together:!1,next:null};return n!==null&&0<n.pendingTasks&&(e.pendingTasks++,e.boundaries=[],n.next=e),e}function Wa(n,e,t,a,f){var h=e.keyPath,d=e.treeContext,b=e.row;e.keyPath=t,t=a.length;var g=null;if(e.replay!==null){var y=e.replay.slots;if(y!==null&&typeof y=="object")for(var T=0;T<t;T++){var R=f!=="backwards"&&f!=="unstable_legacy-backwards"?T:t-1-T,A=a[R];e.row=g=Sr(g),e.treeContext=s(d,t,R);var _=y[R];typeof _=="number"?(Vl(n,e,_,A,R),delete y[R]):dn(n,e,A,R),--g.pendingTasks===0&&On(n,g)}else for(y=0;y<t;y++)T=f!=="backwards"&&f!=="unstable_legacy-backwards"?y:t-1-y,R=a[T],e.row=g=Sr(g),e.treeContext=s(d,t,T),dn(n,e,R,T),--g.pendingTasks===0&&On(n,g)}else if(f!=="backwards"&&f!=="unstable_legacy-backwards")for(f=0;f<t;f++)y=a[f],e.row=g=Sr(g),e.treeContext=s(d,t,f),dn(n,e,y,f),--g.pendingTasks===0&&On(n,g);else{for(f=e.blockedSegment,y=f.children.length,T=f.chunks.length,R=t-1;0<=R;R--){A=a[R],e.row=g=Sr(g),e.treeContext=s(d,t,R),_=tl(n,T,null,e.formatContext,R===0?f.lastPushedText:!0,!0),f.children.splice(y,0,_),e.blockedSegment=_;try{dn(n,e,A,R),_.lastPushedText&&_.textEmbedded&&_.chunks.push(hl),_.status=1,Cl(n,e.blockedBoundary,_),--g.pendingTasks===0&&On(n,g)}catch(X){throw _.status=n.status===12?3:4,X}}e.blockedSegment=f,f.lastPushedText=!1}b!==null&&g!==null&&0<g.pendingTasks&&(b.pendingTasks++,g.next=b),e.treeContext=d,e.row=b,e.keyPath=h}function Ua(n,e,t,a,f,h){var d=e.thenableState;for(e.thenableState=null,H={},rn=e,cn=n,Z=t,q=qn=0,gn=-1,bn=0,tn=d,n=a(f,h);J;)J=!1,q=qn=0,gn=-1,bn=0,ge+=1,G=null,n=a(f,h);return el(),n}function wl(n,e,t,a,f,h,d){var b=!1;if(h!==0&&n.formState!==null){var g=e.blockedSegment;if(g!==null){b=!0,g=g.chunks;for(var y=0;y<h;y++)y===d?g.push(au):g.push(ar)}}h=e.keyPath,e.keyPath=t,f?(t=e.treeContext,e.treeContext=s(t,1,0),dn(n,e,a,-1),e.treeContext=t):b?dn(n,e,a,-1):An(n,e,a,-1),e.keyPath=h}function Ee(n,e,t,a,f,h){if(typeof a=="function")if(a.prototype&&a.prototype.isReactComponent){var d=f;if("ref"in f){d={};for(var b in f)b!=="ref"&&(d[b]=f[b])}var g=a.defaultProps;if(g){d===f&&(d=Wn({},d,f));for(var y in g)d[y]===void 0&&(d[y]=g[y])}f=d,d=Da,g=a.contextType,typeof g=="object"&&g!==null&&(d=g._currentValue),d=new a(f,d);var T=d.state!==void 0?d.state:null;if(d.updater=c,d.props=f,d.state=T,g={queue:[],replace:!1},d._reactInternals=g,h=a.contextType,d.context=typeof h=="object"&&h!==null?h._currentValue:Da,h=a.getDerivedStateFromProps,typeof h=="function"&&(h=h(f,T),T=h==null?T:Wn({},T,h),d.state=T),typeof a.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function"))if(a=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),a!==d.state&&c.enqueueReplaceState(d,d.state,null),g.queue!==null&&0<g.queue.length)if(a=g.queue,h=g.replace,g.queue=null,g.replace=!1,h&&a.length===1)d.state=a[0];else{for(g=h?a[0]:d.state,T=!0,h=h?1:0;h<a.length;h++)y=a[h],y=typeof y=="function"?y.call(d,g,f,void 0):y,y!=null&&(T?(T=!1,g=Wn({},g,y)):Wn(g,y));d.state=g}else g.queue=null;if(a=d.render(),n.status===12)throw null;f=e.keyPath,e.keyPath=t,An(n,e,a,-1),e.keyPath=f}else{if(a=Ua(n,e,t,a,f,void 0),n.status===12)throw null;wl(n,e,t,a,qn!==0,q,gn)}else if(typeof a=="string")if(d=e.blockedSegment,d===null)d=f.children,g=e.formatContext,T=e.keyPath,e.formatContext=Ll(g,a,f),e.keyPath=t,dn(n,e,d,-1),e.formatContext=g,e.keyPath=T;else{if(T=nt(d.chunks,a,f,n.resumableState,n.renderState,e.blockedPreamble,e.hoistableState,e.formatContext,d.lastPushedText),d.lastPushedText=!1,g=e.formatContext,h=e.keyPath,e.keyPath=t,(e.formatContext=Ll(g,a,f)).insertionMode===3){t=tl(n,0,null,e.formatContext,!1,!1),d.preambleChildren.push(t),e.blockedSegment=t;try{t.status=6,dn(n,e,T,-1),t.lastPushedText&&t.textEmbedded&&t.chunks.push(hl),t.status=1,Cl(n,e.blockedBoundary,t)}finally{e.blockedSegment=d}}else dn(n,e,T,-1);e.formatContext=g,e.keyPath=h;n:{switch(e=d.chunks,n=n.resumableState,a){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break n;case"body":if(1>=g.insertionMode){n.hasBody=!0;break n}break;case"html":if(g.insertionMode===0){n.hasHtml=!0;break n}break;case"head":if(1>=g.insertionMode)break n}e.push(Dl(a))}d.lastPushedText=!1}else{switch(a){case $a:case Wt:case Ut:case Ht:a=e.keyPath,e.keyPath=t,An(n,e,f.children,-1),e.keyPath=a;return;case Gt:a=e.blockedSegment,a===null?f.mode!=="hidden"&&(a=e.keyPath,e.keyPath=t,dn(n,e,f.children,-1),e.keyPath=a):f.mode!=="hidden"&&(a.chunks.push(ie),a.lastPushedText=!1,d=e.keyPath,e.keyPath=t,dn(n,e,f.children,-1),e.keyPath=d,a.chunks.push(lt),a.lastPushedText=!1);return;case $e:n:{if(a=f.children,f=f.revealOrder,f==="forwards"||f==="backwards"||f==="unstable_legacy-backwards"){if(le(a)){Wa(n,e,t,a,f);break n}if((d=Zt(a))&&(d=d.call(a))){if(g=d.next(),!g.done){do g=d.next();while(!g.done);Wa(n,e,t,a,f)}break n}}f==="together"?(f=e.keyPath,d=e.row,g=e.row=Sr(null),g.boundaries=[],g.together=!0,e.keyPath=t,An(n,e,a,-1),--g.pendingTasks===0&&On(n,g),e.keyPath=f,e.row=d,d!==null&&0<g.pendingTasks&&(d.pendingTasks++,g.next=d)):(f=e.keyPath,e.keyPath=t,An(n,e,a,-1),e.keyPath=f)}return;case lu:case ja:throw Error(S(343));case $l:n:if(e.replay!==null){a=e.keyPath,d=e.formatContext,g=e.row,e.keyPath=t,e.formatContext=lr(n.resumableState,d),e.row=null,t=f.children;try{dn(n,e,t,-1)}finally{e.keyPath=a,e.formatContext=d,e.row=g}}else{a=e.keyPath,h=e.formatContext;var R=e.row;y=e.blockedBoundary,b=e.blockedPreamble;var A=e.hoistableState,_=e.blockedSegment,X=f.fallback;f=f.children;var W=new Set,U=2>e.formatContext.insertionMode?We(n,e.row,W,an(),an()):We(n,e.row,W,null,null);n.trackedPostpones!==null&&(U.trackedContentKeyPath=t);var en=tl(n,_.chunks.length,U,e.formatContext,!1,!1);_.children.push(en),_.lastPushedText=!1;var p=tl(n,0,null,e.formatContext,!1,!1);if(p.parentFlushed=!0,n.trackedPostpones!==null){d=e.componentStack,g=[t[0],"Suspense Fallback",t[2]],T=[g[1],g[2],[],null],n.trackedPostpones.workingMap.set(g,T),U.trackedFallbackNode=T,e.blockedSegment=en,e.blockedPreamble=U.fallbackPreamble,e.keyPath=g,e.formatContext=Vr(n.resumableState,h),e.componentStack=Te(d),en.status=6;try{dn(n,e,X,-1),en.lastPushedText&&en.textEmbedded&&en.chunks.push(hl),en.status=1,Cl(n,y,en)}catch(Mn){throw en.status=n.status===12?3:4,Mn}finally{e.blockedSegment=_,e.blockedPreamble=b,e.keyPath=a,e.formatContext=h}e=Jl(n,null,f,-1,U,p,U.contentPreamble,U.contentState,e.abortSet,t,lr(n.resumableState,e.formatContext),e.context,e.treeContext,null,d),Ql(e),n.pingedTasks.push(e)}else{e.blockedBoundary=U,e.blockedPreamble=U.contentPreamble,e.hoistableState=U.contentState,e.blockedSegment=p,e.keyPath=t,e.formatContext=lr(n.resumableState,h),e.row=null,p.status=6;try{if(dn(n,e,f,-1),p.lastPushedText&&p.textEmbedded&&p.chunks.push(hl),p.status=1,Cl(n,U,p),Mr(U,p),U.pendingTasks===0&&U.status===0){if(U.status=1,!rl(n,U)){R!==null&&--R.pendingTasks===0&&On(n,R),n.pendingRootTasks===0&&e.blockedPreamble&&Fl(n);break n}}else R!==null&&R.together&&Fr(n,R)}catch(Mn){U.status=4,n.status===12?(p.status=3,d=n.fatalError):(p.status=4,d=Mn),g=il(e.componentStack),T=Pn(n,d,g),U.errorDigest=T,Oi(n,U)}finally{e.blockedBoundary=y,e.blockedPreamble=b,e.hoistableState=A,e.blockedSegment=_,e.keyPath=a,e.formatContext=h,e.row=R}e=Jl(n,null,X,-1,y,en,U.fallbackPreamble,U.fallbackState,W,[t[0],"Suspense Fallback",t[2]],Vr(n.resumableState,e.formatContext),e.context,e.treeContext,e.row,Te(e.componentStack)),Ql(e),n.pingedTasks.push(e)}}return}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case je:if("ref"in f)for(_ in d={},f)_!=="ref"&&(d[_]=f[_]);else d=f;a=Ua(n,e,t,a.render,d,h),wl(n,e,t,a,qn!==0,q,gn);return;case nr:Ee(n,e,t,a.type,f,h);return;case jl:if(g=f.children,d=e.keyPath,f=f.value,T=a._currentValue,a._currentValue=f,h=gl,gl=a={parent:h,depth:h===null?0:h.depth+1,context:a,parentValue:T,value:f},e.context=a,e.keyPath=t,An(n,e,g,-1),n=gl,n===null)throw Error(S(403));n.context._currentValue=n.parentValue,n=gl=n.parent,e.context=n,e.keyPath=d;return;case Yt:f=f.children,a=f(a._context._currentValue),f=e.keyPath,e.keyPath=t,An(n,e,a,-1),e.keyPath=f;return;case ne:if(d=a._init,a=d(a._payload),n.status===12)throw null;Ee(n,e,t,a,f,h);return}throw Error(S(130,a==null?a:typeof a,""))}}function Vl(n,e,t,a,f){var h=e.replay,d=e.blockedBoundary,b=tl(n,0,null,e.formatContext,!1,!1);b.id=t,b.parentFlushed=!0;try{e.replay=null,e.blockedSegment=b,dn(n,e,a,f),b.status=1,Cl(n,d,b),d===null?n.completedRootSegment=b:(Mr(d,b),d.parentFlushed&&n.partialBoundaries.push(d))}finally{e.replay=h,e.blockedSegment=null}}function An(n,e,t,a){e.replay!==null&&typeof e.replay.slots=="number"?Vl(n,e,e.replay.slots,t,a):(e.node=t,e.childIndex=a,t=e.componentStack,Ql(e),Ye(n,e),e.componentStack=t)}function Ye(n,e){var t=e.node,a=e.childIndex;if(t!==null){if(typeof t=="object"){switch(t.$$typeof){case Dt:var f=t.type,h=t.key,d=t.props;t=d.ref;var b=t!==void 0?t:null,g=xt(f),y=h??(a===-1?0:a);if(h=[e.keyPath,g,y],e.replay!==null)n:{var T=e.replay;for(a=T.nodes,t=0;t<a.length;t++){var R=a[t];if(y===R[1]){if(R.length===4){if(g!==null&&g!==R[0])throw Error(S(490,R[0],g));var A=R[2];g=R[3],y=e.node,e.replay={nodes:A,slots:g,pendingTasks:1};try{if(Ee(n,e,h,f,d,b),e.replay.pendingTasks===1&&0<e.replay.nodes.length)throw Error(S(488));e.replay.pendingTasks--}catch(L){if(typeof L=="object"&&L!==null&&(L===M||typeof L.then=="function"))throw e.node===y?e.replay=T:a.splice(t,1),L;e.replay.pendingTasks--,d=il(e.componentStack),h=n,n=e.blockedBoundary,f=L,d=Pn(h,f,d),Xe(h,n,A,g,f,d)}e.replay=T}else{if(f!==$l)throw Error(S(490,"Suspense",xt(f)||"Unknown"));l:{T=void 0,f=R[5],b=R[2],g=R[3],y=R[4]===null?[]:R[4][2],R=R[4]===null?null:R[4][3];var _=e.keyPath,X=e.formatContext,W=e.row,U=e.replay,en=e.blockedBoundary,p=e.hoistableState,Mn=d.children,Yn=d.fallback,ul=new Set;d=2>e.formatContext.insertionMode?We(n,e.row,ul,an(),an()):We(n,e.row,ul,null,null),d.parentFlushed=!0,d.rootSegmentID=f,e.blockedBoundary=d,e.hoistableState=d.contentState,e.keyPath=h,e.formatContext=lr(n.resumableState,X),e.row=null,e.replay={nodes:b,slots:g,pendingTasks:1};try{if(dn(n,e,Mn,-1),e.replay.pendingTasks===1&&0<e.replay.nodes.length)throw Error(S(488));if(e.replay.pendingTasks--,d.pendingTasks===0&&d.status===0){d.status=1,n.completedBoundaries.push(d);break l}}catch(L){d.status=4,A=il(e.componentStack),T=Pn(n,L,A),d.errorDigest=T,e.replay.pendingTasks--,n.clientRenderedBoundaries.push(d)}finally{e.blockedBoundary=en,e.hoistableState=p,e.replay=U,e.keyPath=_,e.formatContext=X,e.row=W}A=Ct(n,null,{nodes:y,slots:R,pendingTasks:0},Yn,-1,en,d.fallbackState,ul,[h[0],"Suspense Fallback",h[2]],Vr(n.resumableState,e.formatContext),e.context,e.treeContext,e.row,Te(e.componentStack)),Ql(A),n.pingedTasks.push(A)}}a.splice(t,1);break n}}}else Ee(n,e,h,f,d,b);return;case zt:throw Error(S(257));case ne:if(A=t._init,t=A(t._payload),n.status===12)throw null;An(n,e,t,a);return}if(le(t)){Ge(n,e,t,a);return}if((A=Zt(t))&&(A=A.call(t))){if(t=A.next(),!t.done){d=[];do d.push(t.value),t=A.next();while(!t.done);Ge(n,e,d,a)}return}if(typeof t.then=="function")return e.thenableState=null,An(n,e,Ai(t),a);if(t.$$typeof===jl)return An(n,e,t._currentValue,a);throw a=Object.prototype.toString.call(t),Error(S(31,a==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":a))}typeof t=="string"?(a=e.blockedSegment,a!==null&&(a.lastPushedText=da(a.chunks,t,n.renderState,a.lastPushedText))):(typeof t=="number"||typeof t=="bigint")&&(a=e.blockedSegment,a!==null&&(a.lastPushedText=da(a.chunks,""+t,n.renderState,a.lastPushedText)))}}function Ge(n,e,t,a){var f=e.keyPath;if(a!==-1&&(e.keyPath=[e.keyPath,"Fragment",a],e.replay!==null)){for(var h=e.replay,d=h.nodes,b=0;b<d.length;b++){var g=d[b];if(g[1]===a){a=g[2],g=g[3],e.replay={nodes:a,slots:g,pendingTasks:1};try{if(Ge(n,e,t,-1),e.replay.pendingTasks===1&&0<e.replay.nodes.length)throw Error(S(488));e.replay.pendingTasks--}catch(R){if(typeof R=="object"&&R!==null&&(R===M||typeof R.then=="function"))throw R;e.replay.pendingTasks--,t=il(e.componentStack);var y=e.blockedBoundary,T=R;t=Pn(n,T,t),Xe(n,y,a,g,T,t)}e.replay=h,d.splice(b,1);break}}e.keyPath=f;return}if(h=e.treeContext,d=t.length,e.replay!==null&&(b=e.replay.slots,b!==null&&typeof b=="object")){for(a=0;a<d;a++)g=t[a],e.treeContext=s(h,d,a),y=b[a],typeof y=="number"?(Vl(n,e,y,g,a),delete b[a]):dn(n,e,g,a);e.treeContext=h,e.keyPath=f;return}for(b=0;b<d;b++)a=t[b],e.treeContext=s(h,d,b),dn(n,e,a,b);e.treeContext=h,e.keyPath=f}function Ft(n,e,t){if(t.status=5,t.rootSegmentID=n.nextSegmentId++,n=t.trackedContentKeyPath,n===null)throw Error(S(486));var a=t.trackedFallbackNode,f=[],h=e.workingMap.get(n);return h===void 0?(t=[n[1],n[2],f,null,a,t.rootSegmentID],e.workingMap.set(n,t),It(t,n[0],e),t):(h[4]=a,h[5]=t.rootSegmentID,h)}function St(n,e,t,a){a.status=5;var f=t.keyPath,h=t.blockedBoundary;if(h===null)a.id=n.nextSegmentId++,e.rootSlots=a.id,n.completedRootSegment!==null&&(n.completedRootSegment.status=5);else{if(h!==null&&h.status===0){var d=Ft(n,e,h);if(h.trackedContentKeyPath===f&&t.childIndex===-1){a.id===-1&&(a.id=a.parentFlushed?h.rootSegmentID:n.nextSegmentId++),d[3]=a.id;return}}if(a.id===-1&&(a.id=a.parentFlushed&&h!==null?h.rootSegmentID:n.nextSegmentId++),t.childIndex===-1)f===null?e.rootSlots=a.id:(t=e.workingMap.get(f),t===void 0?(t=[f[1],f[2],[],a.id],It(t,f[0],e)):t[3]=a.id);else{if(f===null){if(n=e.rootSlots,n===null)n=e.rootSlots={};else if(typeof n=="number")throw Error(S(491))}else if(h=e.workingMap,d=h.get(f),d===void 0)n={},d=[f[1],f[2],[],n],h.set(f,d),It(d,f[0],e);else if(n=d[3],n===null)n=d[3]={};else if(typeof n=="number")throw Error(S(491));n[t.childIndex]=a.id}}}function Oi(n,e){n=n.trackedPostpones,n!==null&&(e=e.trackedContentKeyPath,e!==null&&(e=n.workingMap.get(e),e!==void 0&&(e.length=4,e[2]=[],e[3]=null)))}function Pt(n,e,t){return Ct(n,t,e.replay,e.node,e.childIndex,e.blockedBoundary,e.hoistableState,e.abortSet,e.keyPath,e.formatContext,e.context,e.treeContext,e.row,e.componentStack)}function Li(n,e,t){var a=e.blockedSegment,f=tl(n,a.chunks.length,null,e.formatContext,a.lastPushedText,!0);return a.children.push(f),a.lastPushedText=!1,Jl(n,t,e.node,e.childIndex,e.blockedBoundary,f,e.blockedPreamble,e.hoistableState,e.abortSet,e.keyPath,e.formatContext,e.context,e.treeContext,e.row,e.componentStack)}function dn(n,e,t,a){var f=e.formatContext,h=e.context,d=e.keyPath,b=e.treeContext,g=e.componentStack,y=e.blockedSegment;if(y===null){y=e.replay;try{return An(n,e,t,a)}catch(A){if(el(),t=A===M?D():A,n.status!==12&&typeof t=="object"&&t!==null){if(typeof t.then=="function"){a=A===M?kn():null,n=Pt(n,e,a).ping,t.then(n,n),e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,e.componentStack=g,e.replay=y,u(h);return}if(t.message==="Maximum call stack size exceeded"){t=A===M?kn():null,t=Pt(n,e,t),n.pingedTasks.push(t),e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,e.componentStack=g,e.replay=y,u(h);return}}}}else{var T=y.children.length,R=y.chunks.length;try{return An(n,e,t,a)}catch(A){if(el(),y.children.length=T,y.chunks.length=R,t=A===M?D():A,n.status!==12&&typeof t=="object"&&t!==null){if(typeof t.then=="function"){y=t,t=A===M?kn():null,n=Li(n,e,t).ping,y.then(n,n),e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,e.componentStack=g,u(h);return}if(t.message==="Maximum call stack size exceeded"){y=A===M?kn():null,y=Li(n,e,y),n.pingedTasks.push(y),e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,e.componentStack=g,u(h);return}}}}throw e.formatContext=f,e.context=h,e.keyPath=d,e.treeContext=b,u(h),t}function At(n){var e=n.blockedBoundary,t=n.blockedSegment;t!==null&&(t.status=3,jn(this,e,n.row,t))}function Xe(n,e,t,a,f,h){for(var d=0;d<t.length;d++){var b=t[d];if(b.length===4)Xe(n,e,b[2],b[3],f,h);else{b=b[5];var g=n,y=h,T=We(g,null,new Set,null,null);T.parentFlushed=!0,T.rootSegmentID=b,T.status=4,T.errorDigest=y,T.parentFlushed&&g.clientRenderedBoundaries.push(T)}}if(t.length=0,a!==null){if(e===null)throw Error(S(487));if(e.status!==4&&(e.status=4,e.errorDigest=h,e.parentFlushed&&n.clientRenderedBoundaries.push(e)),typeof a=="object")for(var R in a)delete a[R]}}function Ze(n,e,t){var a=n.blockedBoundary,f=n.blockedSegment;if(f!==null){if(f.status===6)return;f.status=3}var h=il(n.componentStack);if(a===null){if(e.status!==13&&e.status!==14){if(a=n.replay,a===null){e.trackedPostpones!==null&&f!==null?(a=e.trackedPostpones,Pn(e,t,h),St(e,a,n,f),jn(e,null,n.row,f)):(Pn(e,t,h),Ue(e,t));return}a.pendingTasks--,a.pendingTasks===0&&0<a.nodes.length&&(f=Pn(e,t,h),Xe(e,null,a.nodes,a.slots,t,f)),e.pendingRootTasks--,e.pendingRootTasks===0&&Mt(e)}}else{var d=e.trackedPostpones;if(a.status!==4){if(d!==null&&f!==null)return Pn(e,t,h),St(e,d,n,f),a.fallbackAbortableTasks.forEach(function(b){return Ze(b,e,t)}),a.fallbackAbortableTasks.clear(),jn(e,a,n.row,f);a.status=4,f=Pn(e,t,h),a.status=4,a.errorDigest=f,Oi(e,a),a.parentFlushed&&e.clientRenderedBoundaries.push(a)}a.pendingTasks--,f=a.row,f!==null&&--f.pendingTasks===0&&On(e,f),a.fallbackAbortableTasks.forEach(function(b){return Ze(b,e,t)}),a.fallbackAbortableTasks.clear()}n=n.row,n!==null&&--n.pendingTasks===0&&On(e,n),e.allPendingTasks--,e.allPendingTasks===0&&Ar(e)}function Pr(n,e){try{var t=n.renderState,a=t.onHeaders;if(a){var f=t.headers;if(f){t.headers=null;var h=f.preconnects;if(f.fontPreloads&&(h&&(h+=", "),h+=f.fontPreloads),f.highImagePreloads&&(h&&(h+=", "),h+=f.highImagePreloads),!e){var d=t.styles.values(),b=d.next();n:for(;0<f.remainingCapacity&&!b.done;b=d.next())for(var g=b.value.sheets.values(),y=g.next();0<f.remainingCapacity&&!y.done;y=g.next()){var T=y.value,R=T.props,A=R.href,_=T.props,X=yr(_.href,"style",{crossOrigin:_.crossOrigin,integrity:_.integrity,nonce:_.nonce,type:_.type,fetchPriority:_.fetchPriority,referrerPolicy:_.referrerPolicy,media:_.media});if(0<=(f.remainingCapacity-=X.length+2))t.resets.style[A]=Jn,h&&(h+=", "),h+=X,t.resets.style[A]=typeof R.crossOrigin=="string"||typeof R.integrity=="string"?[R.crossOrigin,R.integrity]:Jn;else break n}}a(h?{Link:h}:{})}}}catch(W){Pn(n,W,{})}}function Mt(n){n.trackedPostpones===null&&Pr(n,!0),n.trackedPostpones===null&&Fl(n),n.onShellError=F,n=n.onShellReady,n()}function Ar(n){Pr(n,n.trackedPostpones===null?!0:n.completedRootSegment===null||n.completedRootSegment.status!==5),Fl(n),n=n.onAllReady,n()}function Mr(n,e){if(e.chunks.length===0&&e.children.length===1&&e.children[0].boundary===null&&e.children[0].id===-1){var t=e.children[0];t.id=e.id,t.parentFlushed=!0,t.status!==1&&t.status!==3&&t.status!==4||Mr(n,t)}else n.completedSegments.push(e)}function Cl(n,e,t){if(Fe!==null){t=t.chunks;for(var a=0,f=0;f<t.length;f++)a+=t[f].byteLength;e===null?n.byteSize+=a:e.byteSize+=a}}function jn(n,e,t,a){if(t!==null&&(--t.pendingTasks===0?On(n,t):t.together&&Fr(n,t)),n.allPendingTasks--,e===null){if(a!==null&&a.parentFlushed){if(n.completedRootSegment!==null)throw Error(S(389));n.completedRootSegment=a}n.pendingRootTasks--,n.pendingRootTasks===0&&Mt(n)}else if(e.pendingTasks--,e.status!==4)if(e.pendingTasks===0){if(e.status===0&&(e.status=1),a!==null&&a.parentFlushed&&(a.status===1||a.status===3)&&Mr(e,a),e.parentFlushed&&n.completedBoundaries.push(e),e.status===1)t=e.row,t!==null&&de(t.hoistables,e.contentState),rl(n,e)||(e.fallbackAbortableTasks.forEach(At,n),e.fallbackAbortableTasks.clear(),t!==null&&--t.pendingTasks===0&&On(n,t)),n.pendingRootTasks===0&&n.trackedPostpones===null&&e.contentPreamble!==null&&Fl(n);else if(e.status===5&&(e=e.row,e!==null)){if(n.trackedPostpones!==null){t=n.trackedPostpones;var f=e.next;if(f!==null&&(a=f.boundaries,a!==null))for(f.boundaries=null,f=0;f<a.length;f++){var h=a[f];Ft(n,t,h),jn(n,h,null,null)}}--e.pendingTasks===0&&On(n,e)}}else a===null||!a.parentFlushed||a.status!==1&&a.status!==3||(Mr(e,a),e.completedSegments.length===1&&e.parentFlushed&&n.partialBoundaries.push(e)),e=e.row,e!==null&&e.together&&Fr(n,e);n.allPendingTasks===0&&Ar(n)}function Ni(n){if(n.status!==14&&n.status!==13){var e=gl,t=Ol.H;Ol.H=Mi;var a=Ol.A;Ol.A=Ha;var f=yn;yn=n;var h=Rr;Rr=n.resumableState;try{var d=n.pingedTasks,b;for(b=0;b<d.length;b++){var g=d[b],y=n,T=g.blockedSegment;if(T===null){var R=y;if(g.replay.pendingTasks!==0){u(g.context);try{if(typeof g.replay.slots=="number"?Vl(R,g,g.replay.slots,g.node,g.childIndex):Ye(R,g),g.replay.pendingTasks===1&&0<g.replay.nodes.length)throw Error(S(488));g.replay.pendingTasks--,g.abortSet.delete(g),jn(R,g.blockedBoundary,g.row,null)}catch(In){el();var A=In===M?D():In;if(typeof A=="object"&&A!==null&&typeof A.then=="function"){var _=g.ping;A.then(_,_),g.thenableState=In===M?kn():null}else{g.replay.pendingTasks--,g.abortSet.delete(g);var X=il(g.componentStack);y=void 0;var W=R,U=g.blockedBoundary,en=R.status===12?R.fatalError:A,p=g.replay.nodes,Mn=g.replay.slots;y=Pn(W,en,X),Xe(W,U,p,Mn,en,y),R.pendingRootTasks--,R.pendingRootTasks===0&&Mt(R),R.allPendingTasks--,R.allPendingTasks===0&&Ar(R)}}}}else if(R=void 0,W=T,W.status===0){W.status=6,u(g.context);var Yn=W.children.length,ul=W.chunks.length;try{Ye(y,g),W.lastPushedText&&W.textEmbedded&&W.chunks.push(hl),g.abortSet.delete(g),W.status=1,Cl(y,g.blockedBoundary,W),jn(y,g.blockedBoundary,g.row,W)}catch(In){el(),W.children.length=Yn,W.chunks.length=ul;var L=In===M?D():y.status===12?y.fatalError:In;if(y.status===12&&y.trackedPostpones!==null){var Ln=y.trackedPostpones,hn=il(g.componentStack);g.abortSet.delete(g),Pn(y,L,hn),St(y,Ln,g,W),jn(y,g.blockedBoundary,g.row,W)}else if(typeof L=="object"&&L!==null&&typeof L.then=="function"){W.status=0,g.thenableState=In===M?kn():null;var zn=g.ping;L.then(zn,zn)}else{var Il=il(g.componentStack);g.abortSet.delete(g),W.status=4;var on=g.blockedBoundary,ql=g.row;if(ql!==null&&--ql.pendingTasks===0&&On(y,ql),y.allPendingTasks--,R=Pn(y,L,Il),on===null)Ue(y,L);else if(on.pendingTasks--,on.status!==4){on.status=4,on.errorDigest=R,Oi(y,on);var bl=on.row;bl!==null&&--bl.pendingTasks===0&&On(y,bl),on.parentFlushed&&y.clientRenderedBoundaries.push(on),y.pendingRootTasks===0&&y.trackedPostpones===null&&on.contentPreamble!==null&&Fl(y)}y.allPendingTasks===0&&Ar(y)}}}}d.splice(0,b),n.destination!==null&&Ir(n,n.destination)}catch(In){Pn(n,In,{}),Ue(n,In)}finally{Rr=h,Ol.H=t,Ol.A=a,t===Mi&&u(e),yn=f}}}function Kl(n,e,t){e.preambleChildren.length&&t.push(e.preambleChildren);for(var a=!1,f=0;f<e.children.length;f++)a=Bi(n,e.children[f],t)||a;return a}function Bi(n,e,t){var a=e.boundary;if(a===null)return Kl(n,e,t);var f=a.contentPreamble,h=a.fallbackPreamble;if(f===null||h===null)return!1;switch(a.status){case 1:if(fi(n.renderState,f),n.byteSize+=a.byteSize,e=a.completedSegments[0],!e)throw Error(S(391));return Kl(n,e,t);case 5:if(n.trackedPostpones!==null)return!0;case 4:if(e.status===1)return fi(n.renderState,h),Kl(n,e,t);default:return!0}}function Fl(n){if(n.completedRootSegment&&n.completedPreambleSegments===null){var e=[],t=n.byteSize,a=Bi(n,n.completedRootSegment,e),f=n.renderState.preamble;a===!1||f.headChunks&&f.bodyChunks?n.completedPreambleSegments=e:n.byteSize=t}}function xe(n,e,t,a){switch(t.parentFlushed=!0,t.status){case 0:t.id=n.nextSegmentId++;case 5:return a=t.id,t.lastPushedText=!1,t.textEmbedded=!1,n=n.renderState,C(e,Ra),C(e,n.placeholderPrefix),n=I(a.toString(16)),C(e,n),k(e,hu);case 1:t.status=2;var f=!0,h=t.chunks,d=0;t=t.children;for(var b=0;b<t.length;b++){for(f=t[b];d<f.index;d++)C(e,h[d]);f=Je(n,e,f,a)}for(;d<h.length-1;d++)C(e,h[d]);return d<h.length&&(f=k(e,h[d])),f;case 3:return!0;default:throw Error(S(390))}}var Sl=0;function Je(n,e,t,a){var f=t.boundary;if(f===null)return xe(n,e,t,a);if(f.parentFlushed=!0,f.status===4){var h=f.row;h!==null&&--h.pendingTasks===0&&On(n,h),f=f.errorDigest,k(e,Bn),C(e,gu),f&&(C(e,rt),C(e,I(B(f))),C(e,et)),k(e,vu),xe(n,e,t,a)}else if(f.status!==1)f.status===0&&(f.rootSegmentID=n.nextSegmentId++),0<f.completedSegments.length&&n.partialBoundaries.push(f),wa(e,n.renderState,f.rootSegmentID),a&&de(a,f.fallbackState),xe(n,e,t,a);else if(!Al&&rl(n,f)&&(Sl+f.byteSize>n.progressiveChunkSize||Tr(f.contentState)))f.rootSegmentID=n.nextSegmentId++,n.completedBoundaries.push(f),wa(e,n.renderState,f.rootSegmentID),xe(n,e,t,a);else{if(Sl+=f.byteSize,a&&de(a,f.contentState),t=f.row,t!==null&&rl(n,f)&&--t.pendingTasks===0&&On(n,t),k(e,ou),t=f.completedSegments,t.length!==1)throw Error(S(391));Je(n,e,t[0],a)}return k(e,mn)}function Pl(n,e,t,a){return Sa(e,n.renderState,t.parentFormatContext,t.id),Je(n,e,t,a),Pa(e,t.parentFormatContext)}function Di(n,e,t){Sl=t.byteSize;for(var a=t.completedSegments,f=0;f<a.length;f++)zi(n,e,t,a[f]);a.length=0,a=t.row,a!==null&&rl(n,t)&&--a.pendingTasks===0&&On(n,a),Ne(e,t.contentState,n.renderState),a=n.resumableState,n=n.renderState,f=t.rootSegmentID,t=t.contentState;var h=n.stylesToHoist;return n.stylesToHoist=!1,C(e,n.startInlineScript),C(e,ln),h?((a.instructions&4)===0&&(a.instructions|=4,C(e,ke)),(a.instructions&2)===0&&(a.instructions|=2,C(e,gi)),(a.instructions&8)===0?(a.instructions|=8,C(e,xu)):C(e,Ma)):((a.instructions&2)===0&&(a.instructions|=2,C(e,gi)),C(e,Aa)),a=I(f.toString(16)),C(e,n.boundaryPrefix),C(e,a),C(e,ft),C(e,n.segmentPrefix),C(e,a),h?(C(e,Ru),Tn(e,t)):C(e,vi),t=k(e,Ia),ci(e,n)&&t}function zi(n,e,t,a){if(a.status===2)return!0;var f=t.contentState,h=a.id;if(h===-1){if((a.id=t.rootSegmentID)===-1)throw Error(S(392));return Pl(n,e,a,f)}return h===t.rootSegmentID?Pl(n,e,a,f):(Pl(n,e,a,f),t=n.resumableState,n=n.renderState,C(e,n.startInlineScript),C(e,ln),(t.instructions&1)===0?(t.instructions|=1,C(e,bu)):C(e,yu),C(e,n.segmentPrefix),h=I(h.toString(16)),C(e,h),C(e,Tu),C(e,n.placeholderPrefix),C(e,h),e=k(e,Eu),e)}var Al=!1;function Ir(n,e){Xn=new Uint8Array(2048),Zn=0;try{if(!(0<n.pendingRootTasks)){var t,a=n.completedRootSegment;if(a!==null){if(a.status===5)return;var f=n.completedPreambleSegments;if(f===null)return;Sl=n.byteSize;var h=n.resumableState,d=n.renderState,b=d.preamble,g=b.htmlChunks,y=b.headChunks,T;if(g){for(T=0;T<g.length;T++)C(e,g[T]);if(y)for(T=0;T<y.length;T++)C(e,y[T]);else C(e,sn("head")),C(e,ln)}else if(y)for(T=0;T<y.length;T++)C(e,y[T]);var R=d.charsetChunks;for(T=0;T<R.length;T++)C(e,R[T]);R.length=0,d.preconnects.forEach($,e),d.preconnects.clear();var A=d.viewportChunks;for(T=0;T<A.length;T++)C(e,A[T]);A.length=0,d.fontPreloads.forEach($,e),d.fontPreloads.clear(),d.highImagePreloads.forEach($,e),d.highImagePreloads.clear(),re=d,d.styles.forEach(dt,e),re=null;var _=d.importMapChunks;for(T=0;T<_.length;T++)C(e,_[T]);_.length=0,d.bootstrapScripts.forEach($,e),d.scripts.forEach($,e),d.scripts.clear(),d.bulkPreloads.forEach($,e),d.bulkPreloads.clear(),g||y||(h.instructions|=32);var X=d.hoistableChunks;for(T=0;T<X.length;T++)C(e,X[T]);for(h=X.length=0;h<f.length;h++){var W=f[h];for(d=0;d<W.length;d++)Je(n,e,W[d],null)}var U=n.renderState.preamble,en=U.headChunks;(U.htmlChunks||en)&&C(e,Dl("head"));var p=U.bodyChunks;if(p)for(f=0;f<p.length;f++)C(e,p[f]);Je(n,e,a,null),n.completedRootSegment=null;var Mn=n.renderState;if(n.allPendingTasks!==0||n.clientRenderedBoundaries.length!==0||n.completedBoundaries.length!==0||n.trackedPostpones!==null&&(n.trackedPostpones.rootNodes.length!==0||n.trackedPostpones.rootSlots!==null)){var Yn=n.resumableState;if((Yn.instructions&64)===0){if(Yn.instructions|=64,C(e,Mn.startInlineScript),(Yn.instructions&32)===0){Yn.instructions|=32;var ul="_"+Yn.idPrefix+"R_";C(e,st),C(e,I(B(ul))),C(e,un)}C(e,ln),C(e,zl),k(e,V)}}ci(e,Mn)}var L=n.renderState;a=0;var Ln=L.viewportChunks;for(a=0;a<Ln.length;a++)C(e,Ln[a]);Ln.length=0,L.preconnects.forEach($,e),L.preconnects.clear(),L.fontPreloads.forEach($,e),L.fontPreloads.clear(),L.highImagePreloads.forEach($,e),L.highImagePreloads.clear(),L.styles.forEach(xi,e),L.scripts.forEach($,e),L.scripts.clear(),L.bulkPreloads.forEach($,e),L.bulkPreloads.clear();var hn=L.hoistableChunks;for(a=0;a<hn.length;a++)C(e,hn[a]);hn.length=0;var zn=n.clientRenderedBoundaries;for(t=0;t<zn.length;t++){var Il=zn[t];L=e;var on=n.resumableState,ql=n.renderState,bl=Il.rootSegmentID,In=Il.errorDigest;C(L,ql.startInlineScript),C(L,ln),(on.instructions&4)===0?(on.instructions|=4,C(L,bi)):C(L,ct),C(L,ql.boundaryPrefix),C(L,I(bl.toString(16))),C(L,_a),In&&(C(L,Oe),C(L,I(Fu(In||""))));var fl=k(L,wu);if(!fl){n.destination=null,t++,zn.splice(0,t);return}}zn.splice(0,t);var _r=n.completedBoundaries;for(t=0;t<_r.length;t++)if(!Di(n,e,_r[t])){n.destination=null,t++,_r.splice(0,t);return}_r.splice(0,t),Vt(e),Xn=new Uint8Array(2048),Zn=0,Al=!0;var kr=n.partialBoundaries;for(t=0;t<kr.length;t++){var we=kr[t];n:{zn=n,Il=e,Sl=we.byteSize;var Or=we.completedSegments;for(fl=0;fl<Or.length;fl++)if(!zi(zn,Il,we,Or[fl])){fl++,Or.splice(0,fl);var Wi=!1;break n}Or.splice(0,fl);var pl=we.row;pl!==null&&pl.together&&we.pendingTasks===1&&(pl.pendingTasks===1?ki(zn,pl,pl.hoistables):pl.pendingTasks--),Wi=Ne(Il,we.contentState,zn.renderState)}if(!Wi){n.destination=null,t++,kr.splice(0,t);return}}kr.splice(0,t),Al=!1;var Ve=n.completedBoundaries;for(t=0;t<Ve.length;t++)if(!Di(n,e,Ve[t])){n.destination=null,t++,Ve.splice(0,t);return}Ve.splice(0,t)}}finally{Al=!1,n.allPendingTasks===0&&n.clientRenderedBoundaries.length===0&&n.completedBoundaries.length===0?(n.flushScheduled=!1,t=n.resumableState,t.hasBody&&C(e,Dl("body")),t.hasHtml&&C(e,Dl("html")),Vt(e),n.status=14,e.close(),n.destination=null):Vt(e)}}function Re(n){n.flushScheduled=n.destination!==null,Yr(function(){return Ni(n)}),Qt(function(){n.status===10&&(n.status=11),n.trackedPostpones===null&&Pr(n,n.pendingRootTasks===0)})}function Ml(n){n.flushScheduled===!1&&n.pingedTasks.length===0&&n.destination!==null&&(n.flushScheduled=!0,Qt(function(){var e=n.destination;e?Ir(n,e):n.flushScheduled=!1}))}function ml(n,e){if(n.status===13)n.status=14,Kt(e,n.fatalError);else if(n.status!==14&&n.destination===null){n.destination=e;try{Ir(n,e)}catch(t){Pn(n,t,{}),Ue(n,t)}}}function al(n,e){(n.status===11||n.status===10)&&(n.status=12);try{var t=n.abortableTasks;if(0<t.size){var a=e===void 0?Error(S(432)):typeof e=="object"&&e!==null&&typeof e.then=="function"?Error(S(530)):e;n.fatalError=a,t.forEach(function(f){return Ze(f,n,a)}),t.clear()}n.destination!==null&&Ir(n,n.destination)}catch(f){Pn(n,f,{}),Ue(n,f)}}function It(n,e,t){if(e===null)t.rootNodes.push(n);else{var a=t.workingMap,f=a.get(e);f===void 0&&(f=[e[1],e[2],[],null],a.set(e,f),It(f,e[0],t)),f[2].push(n)}}function Hi(n){var e=n.trackedPostpones;if(e===null||e.rootNodes.length===0&&e.rootSlots===null)return n.trackedPostpones=null;if(n.completedRootSegment===null||n.completedRootSegment.status!==5&&n.completedPreambleSegments!==null){var t=n.nextSegmentId,a=e.rootSlots,f=n.resumableState;f.bootstrapScriptContent=void 0,f.bootstrapScripts=void 0,f.bootstrapModules=void 0}else{t=0,a=-1,f=n.resumableState;var h=n.renderState;f.nextFormID=0,f.hasBody=!1,f.hasHtml=!1,f.unknownResources={font:h.resets.font},f.dnsResources=h.resets.dns,f.connectResources=h.resets.connect,f.imageResources=h.resets.image,f.styleResources=h.resets.style,f.scriptResources={},f.moduleUnknownResources={},f.moduleScriptResources={},f.instructions=0}return{nextSegmentId:t,rootFormatContext:n.rootFormatContext,progressiveChunkSize:n.progressiveChunkSize,resumableState:n.resumableState,replayNodes:e.rootNodes,replaySlots:a}}function Qe(){var n=yl.version;if(n!=="19.2.5")throw Error(S(527,n,"19.2.5"))}return Qe(),Qe(),Ur.prerender=function(n,e){return new Promise(function(t,a){var f=e?e.onHeaders:void 0,h;f&&(h=function(T){f(new Headers(T))});var d=li(e?e.identifierPrefix:void 0,e?e.unstable_externalRuntimeSrc:void 0,e?e.bootstrapScriptContent:void 0,e?e.bootstrapScripts:void 0,e?e.bootstrapModules:void 0),b=Cr(n,d,Qr(d,void 0,e?e.unstable_externalRuntimeSrc:void 0,e?e.importMap:void 0,h,e?e.maxHeadersLength:void 0),ei(e?e.namespaceURI:void 0),e?e.progressiveChunkSize:void 0,e?e.onError:void 0,function(){var T=new ReadableStream({type:"bytes",pull:function(R){ml(b,R)},cancel:function(R){b.destination=null,al(b,R)}},{highWaterMark:0});T={postponed:Hi(b),prelude:T},t(T)},void 0,void 0,a,e?e.onPostpone:void 0);if(e&&e.signal){var g=e.signal;if(g.aborted)al(b,g.reason);else{var y=function(){al(b,g.reason),g.removeEventListener("abort",y)};g.addEventListener("abort",y)}}Re(b)})},Ur.renderToReadableStream=function(n,e){return new Promise(function(t,a){var f,h,d=new Promise(function(_,X){h=_,f=X}),b=e?e.onHeaders:void 0,g;b&&(g=function(_){b(new Headers(_))});var y=li(e?e.identifierPrefix:void 0,e?e.unstable_externalRuntimeSrc:void 0,e?e.bootstrapScriptContent:void 0,e?e.bootstrapScripts:void 0,e?e.bootstrapModules:void 0),T=He(n,y,Qr(y,e?e.nonce:void 0,e?e.unstable_externalRuntimeSrc:void 0,e?e.importMap:void 0,g,e?e.maxHeadersLength:void 0),ei(e?e.namespaceURI:void 0),e?e.progressiveChunkSize:void 0,e?e.onError:void 0,h,function(){var _=new ReadableStream({type:"bytes",pull:function(X){ml(T,X)},cancel:function(X){T.destination=null,al(T,X)}},{highWaterMark:0});_.allReady=d,t(_)},function(_){d.catch(function(){}),a(_)},f,e?e.onPostpone:void 0,e?e.formState:void 0);if(e&&e.signal){var R=e.signal;if(R.aborted)al(T,R.reason);else{var A=function(){al(T,R.reason),R.removeEventListener("abort",A)};R.addEventListener("abort",A)}}Re(T)})},Ur.resume=function(n,e,t){return new Promise(function(a,f){var h,d,b=new Promise(function(R,A){d=R,h=A}),g=Rl(n,e,Qr(e.resumableState,t?t.nonce:void 0,void 0,void 0,void 0,void 0),t?t.onError:void 0,d,function(){var R=new ReadableStream({type:"bytes",pull:function(A){ml(g,A)},cancel:function(A){g.destination=null,al(g,A)}},{highWaterMark:0});R.allReady=b,a(R)},function(R){b.catch(function(){}),f(R)},h,t?t.onPostpone:void 0);if(t&&t.signal){var y=t.signal;if(y.aborted)al(g,y.reason);else{var T=function(){al(g,y.reason),y.removeEventListener("abort",T)};y.addEventListener("abort",T)}}Re(g)})},Ur.resumeAndPrerender=function(n,e,t){return new Promise(function(a,f){var h=_i(n,e,Qr(e.resumableState,void 0,void 0,void 0,void 0,void 0),t?t.onError:void 0,function(){var g=new ReadableStream({type:"bytes",pull:function(y){ml(h,y)},cancel:function(y){h.destination=null,al(h,y)}},{highWaterMark:0});g={postponed:Hi(h),prelude:g},a(g)},void 0,void 0,f,t?t.onPostpone:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)al(h,d.reason);else{var b=function(){al(h,d.reason),d.removeEventListener("abort",b)};d.addEventListener("abort",b)}}Re(h)})},Ur.version="19.2.5",Ur}var Ff;function Yf(){if(Ff)return Wr;Ff=1;var yl,pe;return yl=Wf(),pe=Uf(),Wr.version=yl.version,Wr.renderToString=yl.renderToString,Wr.renderToStaticMarkup=yl.renderToStaticMarkup,Wr.renderToReadableStream=pe.renderToReadableStream,Wr.resume=pe.resume,Wr}var qe=Yf();const Jf=Hf(qe),Qf=qe.renderToPipeableStream,Vf=qe.renderToReadableStream,Kf=qe.renderToStaticMarkup,mf=qe.renderToString,qf=qe.resume,pf=qe.resumeToPipeableStream,jf=qe.version;export{Jf as default,Qf as renderToPipeableStream,Vf as renderToReadableStream,Kf as renderToStaticMarkup,mf as renderToString,qf as resume,pf as resumeToPipeableStream,jf as version};
54
- //# sourceMappingURL=react-dom-server.js.map
@@ -1,2 +1 @@
1
1
  import{g as e}from"../assets/_commonjsHelpers-CqkleIqs.js";import{r as o}from"../assets/index-VvOM7xKK.js";import"../assets/index-CxUeIbEw.js";var t=o();const c=e(t),a=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=t.createPortal,p=t.flushSync,u=t.preconnect,l=t.prefetchDNS,S=t.preinit,i=t.preinitModule,d=t.preload,m=t.preloadModule,N=t.requestFormReset,R=t.unstable_batchedUpdates,E=t.useFormState,D=t.useFormStatus,O=t.version;export{a as __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_ as createPortal,c as default,p as flushSync,u as preconnect,l as prefetchDNS,S as preinit,i as preinitModule,d as preload,m as preloadModule,N as requestFormReset,R as unstable_batchedUpdates,E as useFormState,D as useFormStatus,O as version};
2
- //# sourceMappingURL=react-dom.js.map
@@ -1,2 +1 @@
1
1
  import{g as u}from"../assets/_commonjsHelpers-CqkleIqs.js";var r={exports:{}},e={};var n;function i(){if(n)return e;n=1;var s=Symbol.for("react.fragment");return e.Fragment=s,e.jsxDEV=void 0,e}var o;function a(){return o||(o=1,r.exports=i()),r.exports}var t=a();const m=u(t),v=t.Fragment,R=t.jsxDEV;export{v as Fragment,m as default,R as jsxDEV};
2
- //# sourceMappingURL=react-jsx-dev-runtime.js.map
@@ -1,2 +1 @@
1
1
  import{j as s}from"../assets/jsx-runtime-0PlsXv6K.js";import{a as j}from"../assets/jsx-runtime-0PlsXv6K.js";import"../assets/_commonjsHelpers-CqkleIqs.js";const r=s.Fragment,x=s.jsx,m=s.jsxs;export{r as Fragment,j as default,x as jsx,m as jsxs};
2
- //# sourceMappingURL=react-jsx-runtime.js.map
@@ -1,2 +1 @@
1
1
  import{r as e}from"../assets/_importmap_react-CrAkajDz.js";import{R as Q}from"../assets/_importmap_react-CrAkajDz.js";import"../assets/_commonjsHelpers-CqkleIqs.js";import"../assets/index-CxUeIbEw.js";const c=e.Activity,o=e.Children,a=e.Component,r=e.Fragment,u=e.Profiler,i=e.PureComponent,E=e.StrictMode,f=e.Suspense,l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=e.__COMPILER_RUNTIME,m=e.act,R=e.cache,S=e.cacheSignal,C=e.captureOwnerStack,p=e.cloneElement,d=e.createContext,N=e.createElement,T=e.createRef,I=e.forwardRef,O=e.isValidElement,A=e.lazy,h=e.memo,x=e.startTransition,v=e.unstable_useCacheRefresh,y=e.use,D=e.useActionState,L=e.useCallback,M=e.useContext,P=e.useDebugValue,U=e.useDeferredValue,b=e.useEffect,g=e.useEffectEvent,V=e.useId,k=e.useImperativeHandle,w=e.useInsertionEffect,H=e.useLayoutEffect,z=e.useMemo,F=e.useOptimistic,G=e.useReducer,W=e.useRef,Y=e.useState,j=e.useSyncExternalStore,q=e.useTransition,B=e.version;export{c as Activity,o as Children,a as Component,r as Fragment,u as Profiler,i as PureComponent,E as StrictMode,f as Suspense,l as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_ as __COMPILER_RUNTIME,m as act,R as cache,S as cacheSignal,C as captureOwnerStack,p as cloneElement,d as createContext,N as createElement,T as createRef,Q as default,I as forwardRef,O as isValidElement,A as lazy,h as memo,x as startTransition,v as unstable_useCacheRefresh,y as use,D as useActionState,L as useCallback,M as useContext,P as useDebugValue,U as useDeferredValue,b as useEffect,g as useEffectEvent,V as useId,k as useImperativeHandle,w as useInsertionEffect,H as useLayoutEffect,z as useMemo,F as useOptimistic,G as useReducer,W as useRef,Y as useState,j as useSyncExternalStore,q as useTransition,B as version};
2
- //# sourceMappingURL=react.js.map
@@ -1,2 +1 @@
1
1
  function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}export{e as g};
2
- //# sourceMappingURL=_commonjsHelpers-CqkleIqs.js.map
@@ -1,2 +1 @@
1
1
  import{g as r}from"./_commonjsHelpers-CqkleIqs.js";import{r as t}from"./index-CxUeIbEw.js";var a=t();const s=r(a);export{s as R,a as r};
2
- //# sourceMappingURL=_importmap_react-CrAkajDz.js.map
@@ -130,4 +130,3 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
130
130
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
131
131
  `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=je(e),n=te(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=je(e),n=te(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function xi(s){const e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new Bi||null,prettyErrors:e}}function Ri(s,e={}){const{lineCounter:t,prettyErrors:n}=xi(e),i=new ji(t?.addNewLine),r=new Ci(e);let o=null;for(const a of r.compose(i.parse(s),!0,s.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new we(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(ls(s,t)),o.warnings.forEach(ls(s,t))),o}function Di(s,e,t){let n;const i=Ri(s,t);if(!i)return null;if(i.warnings.forEach(r=>Us(i.options.logLevel,r)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},t))}function Fi(s){return String(s).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ki(s,e){const{language:t,tag:n,data:i}=e||{};if(!n)return s;if(i!==void 0)return i;const r=(t||"").toLowerCase();if(r==="json")try{return JSON.parse(s)}catch{return s}if(r==="yaml"||r==="yml")try{return Di(s)}catch{return s}return s}function $e(s){return s.type==="UniwebIcon"||s.type==="image"&&s.attrs?.role==="icon"}function ne(s,e={}){const t=[];return Ui(s,t,e),t}function Ui(s,e,t){s.content&&Array.isArray(s.content)&&s.content?.forEach(n=>{const i=qi(n,t);i&&(Array.isArray(i)?e.push(...i):e.push(i))})}function qi(s,e={}){const t=s.attrs,n=s.content,i=er(s);if(i)return{type:"link",attrs:i};const r=tr(s);if(r)return r;const o=sr(s);if(o)return o;switch(s.type){case"heading":return{type:"heading",level:s.attrs.level,text:ie(n,e),children:ve(n),attrs:t};case"paragraph":return{type:"paragraph",text:ie(n,e),children:ve(n),attrs:t};case"blockquote":return{type:"blockquote",children:ne({content:n}),attrs:t};case"inset_block":{const{component:l,...c}=t||{};return{type:"inset_block",component:l,params:c,children:ne({content:n})}}case"concept_block":return{type:"concept_block",tag:t?.tag,children:ne({content:n},e)};case"dataBlock":return{type:"dataBlock",data:t.data,tag:t.tag};case"codeBlock":{const l=ie(n,e);return t?.tag?{type:"dataBlock",tag:t.tag,data:Ki(l,t)}:{type:"codeBlock",text:l,attrs:t}}case"inset_placeholder":return{type:"inset",refId:t.refId};case"math_display":return{type:"math",display:!0,id:s.attrs?.id||null,latex:s.attrs?.latex||"",mathml:s.attrs?.mathml||"",attrs:t};case"ImageBlock":return{type:"image",attrs:Et(t)};case"image":return t?.role==="video"?{type:"video",attrs:bn(t)}:{type:"image",attrs:Et(t||{})};case"Video":return{type:"video",attrs:Zi(t)};case"bulletList":case"orderedList":{const l=n.map(c=>c.type==="listItem"&&c.content?c.content:null).filter(Boolean);return{type:"list",style:s.type==="bulletList"?"bullet":"ordered",children:l.map(c=>ne({content:c})),attrs:t}}case"table":return{type:"table",rows:(n||[]).filter(c=>c.type==="tableRow").map(c=>({cells:(c.content||[]).filter(f=>f.type==="tableCell").map(f=>({children:ne({content:f.content},e),header:f.attrs?.header===!0,align:f.attrs?.align||null,colspan:f.attrs?.colspan||1,rowspan:f.attrs?.rowspan||1}))})),attrs:t};case"divider":case"DividerBlock":case"horizontalRule":return{type:"divider",attrs:t};case"card-group":return{type:"card-group",cards:s.content?.filter(l=>l.type==="card"&&!l.attrs?.hidden).map(l=>Yi(l.attrs))||[]};case"document-group":return{type:"document-group",documents:s.content?.filter(l=>l.type==="document").map(l=>Qi(l.attrs))||[]};case"StructuredContent":case"FormBlock":let a=t?.data;if(typeof a=="string")try{a=JSON.parse(a)}catch{}return{type:"form",schemaId:t?.activeSchemaId||null,data:a,attrs:t};case"button":{let l=ie(n,e);return l?{type:"button",text:l,children:ve(n),attrs:t}:null}case"UniwebIcon":return{type:"icon",attrs:lt(t)};case"Icon":return{type:"icon",attrs:Xi(t)};default:return{type:s.type,content:ie(n,e)}}}const Vi=["pdf","doc","docx","xls","xlsx","ppt","pptx","jpg","jpeg","png","webp","gif","svg","mp4","mp3","wav","mov","zip"];function Hi(s){return(s?.marks||[]).find(e=>e.type==="link")||null}function Wi(s,e){return!s||!e?!1:JSON.stringify(s.attrs||{})===JSON.stringify(e.attrs||{})}function zi(s,e){const t=e.attrs.href,n=e.attrs.target||"_self",i=t.split(".").pop()?.toLowerCase(),r=Vi.includes(i);return`<a href="${t}" target="${n}"${r?" download":""}>${s}</a>`}function ie(s,e={}){if(!s)return"";const t=[];for(const n of s){const i=n?.type==="text"?Hi(n):null,r=t[t.length-1];i&&r?.link&&Wi(r.link,i)?r.nodes.push(n):t.push({link:i,nodes:[n]})}return t.reduce((n,i)=>{const r=i.nodes.reduce((o,a)=>o+Ji(a),"");return!r&&!i.link?n:n+(i.link?zi(r,i.link):r)},"").trim()}function Ji(s){return[s].reduce((e,t)=>{const{type:n,marks:i=[],text:r}=t;if(n==="text"){let o=r||"";if(i.some(a=>a.type==="textStyle")){const a=i.find(l=>l.type==="textStyle")?.attrs?.color;a&&(o=`<span style="color: var(--${a})">${o}</span>`)}if(i.some(a=>a.type==="highlight")&&(o=`<span style="background-color: var(--highlight)">${o}</span>`),i.some(a=>a.type==="span")){const l=i.find(h=>h.type==="span")?.attrs||{},c=[],f=[];l.class&&c.push(`class="${l.class}"`),l.id&&c.push(`id="${l.id}"`);for(const[h,p]of Object.entries(l))h==="class"||h==="id"||(h==="color"?f.push(`color: ${p}`):h==="bg"?f.push(`background: ${p}`):c.push(`${h}="${p}"`));f.length>0&&c.push(`style="${f.join("; ")}"`),o=`<span${c.length>0?` ${c.join(" ")}`:""}>${o}</span>`}return i.some(a=>a.type==="code")&&(o=`<code>${o}</code>`),i.some(a=>a.type==="bold")&&(o=`<strong>${o}</strong>`),i.some(a=>a.type==="italic")&&(o=`<em>${o}</em>`),e+o}else if(n==="math_inline"){const o=Fi(t.attrs?.latex||""),a=t.attrs?.mathml||"";return e+`<span data-type="math" data-latex="${o}" data-display="false">${a}</span>`}else if(n==="inset_placeholder"){const o=t.attrs?.refId;return o?e+`<uniweb-inset data-ref-id="${o}"></uniweb-inset>`:e}else return n==="hardBreak"?e+"<br>":e},"")}function ve(s){if(!s)return[];const e=[];for(const t of s)if($e(t))e.push({type:"icon",attrs:lt(t.attrs)});else if(t.type==="image"||t.type==="ImageBlock"){const n=t.attrs?.role==="video";e.push({type:n?"video":"image",attrs:n?bn(t.attrs):Et(t.attrs||{})})}else if(t.type==="math-inline"||t.type==="math_inline")e.push(t);else if(t.type==="inset_placeholder")e.push({type:"inset",refId:t.attrs?.refId,embedKind:t.attrs?.embedKind||"visual"});else if(t.type==="text"&&t.marks){const n=t.marks.find(i=>i.type==="link");n&&e.push({type:"link",attrs:{...n.attrs,label:t.text||""}})}return e}const Gi="https://assets.uniweb.app/";function yn(s){if(!s||typeof s!="string")return"";const[e,t]=s.split("/");if(!t)return"";const n=t.substring(t.lastIndexOf(".")+1);return`${Gi}dist/${e}/base.${n}`}function he(s){const e=s?.src||s?.url||"";return e||(s?.identifier?yn(s.identifier):"")}function Yi(s){const{address:e,...t}=s;let n=null;try{e&&(n=JSON.parse(e))}catch{}const{coverImg:i=null,icon:r}=t;return r&&(t.icon=lt(r)),{...t,address:n,coverImg:he(i)}}function Qi(s){const{src:e,info:t={},coverImg:n=null,...i}=s;let r={...i,coverImg:he(n)};if(e)r.href=e;else{const{identifier:o=""}=t;o&&(r.downloadUrl=yn(o))}return r}function lt(s){const{svg:e,url:t,src:n,size:i,color:r,preserveColors:o,href:a,target:l,library:c,name:f}=s||{},u={};e&&(u.svg=e),(t||n)&&(u.url=t||n),i&&(u.size=i),r&&(u.color=r),o&&(u.preserveColors=o),a&&(u.href=a),l&&(u.target=l);let h=c,p=f;if(!h&&typeof f=="string"&&f.includes(":")){const[m,...d]=f.split(":");h=m,p=d.join(":")}return h&&(u.library=h),p&&(u.name=p),u}function Xi(s){const{svg:e,theme:t}=s||{},n={};return e&&(n.svg=e),t&&(n.theme=t),n}function Et(s){let{info:e,targetId:t,caption:n="",direction:i,filter:r,alt:o="",src:a,url:l,href:c="",target:f="",theme:u,role:h,credit:p="",id:m,width:d,height:g,loading:b,fit:y,position:S,preview:v,author:w,description:k}=s,{contentType:A,viewType:_,contentId:$,identifier:R}=e||{};const H={center:"basic",wide:"lg",fill:"full"};return n=wn(n),R?l=he(e):!l&&a&&(l=a),{contentType:A,viewType:_,contentId:t||$,url:l,value:R||"",alt:o||n,caption:n,direction:i,filter:r,imgPos:i==="left"||i==="right"?i:"",size:H[i]||"basic",href:c,target:f,theme:u,role:h,credit:p,id:m||void 0,...d!=null&&{width:d},...g!=null&&{height:g},...b&&{loading:b},...y&&{fit:y},...S&&{position:S},...v&&{preview:v},...w&&{author:w},...k&&{description:k}}}function bn(s){const{src:e,url:t,info:n,poster:i,alt:r="",caption:o="",autoplay:a,muted:l,loop:c,controls:f,href:u="",target:h="",role:p,id:m}=s||{},d={src:he({src:t||e,...n}),alt:r,caption:wn(o),role:p,href:u,target:h};return i&&(d.poster=i),a!==void 0&&(d.autoplay=a),l!==void 0&&(d.muted=l),c!==void 0&&(d.loop=c),f!==void 0&&(d.controls=f),m&&(d.id=m),d}function Zi(s){let{src:e,caption:t="",direction:n,info:i={},coverImg:r={},alt:o,href:a="",target:l=""}=s;return{src:he({src:e,...i}),caption:t,direction:n,coverImg:he(r),alt:o,href:a,target:l}}function wn(s){return!s||typeof s!="string"?"":s.replace(/<[^>]*>/g,"").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&apos;/g,"'").replace(/&nbsp;/g," ").replace(/&#(\d+);/g,(t,n)=>String.fromCharCode(Number(n))).replace(/&#x([0-9a-fA-F]+);/g,(t,n)=>String.fromCharCode(parseInt(n,16)))}function er(s){if(["paragraph","heading"].includes(s.type)){const e=s?.content||[],t=e.filter(n=>$e(n)?!1:n.type==="text"?(n.text||"").trim()!=="":!0);if(t.length===1){let n=t[0],i=n?.marks||[];for(let r=0;r<i.length;r++){let o=i[r];if(o?.type==="link"){const a=e.findIndex(f=>f.type==="text"&&f.text===n.text);let l=null,c=null;for(let f=0;f<e.length;f++)if($e(e[f])){const u=lt(e[f].attrs);f<a?l=u:f>a&&(c||(c=u))}return{...o?.attrs,label:n?.text||"",iconBefore:l,iconAfter:c,children:ve(e)}}}}}return!1}function tr(s){if(s.type!=="paragraph")return!1;const e=s?.content||[];if(!e.length)return!1;const t=e.filter(i=>!($e(i)||i.type==="text"&&!(i.text||"").trim()));return t.length<2||!t.every(i=>i.type!=="text"?!1:i.marks?.some(o=>o.type==="link"))?!1:t.map(i=>({type:"link",attrs:{...i.marks.find(o=>o.type==="link")?.attrs,label:i.text||""}}))}function sr(s){if(!["paragraph","heading"].includes(s.type))return!1;let e=s?.content||[];if(!e.length)return!1;e=e.filter(a=>!$e(a));let t=e[0]?.marks?.find(a=>a.type==="link"&&a.attrs);if(!t||!e.every(a=>a?.marks?.some(l=>l.type==="link"&&l.attrs?.href===t.attrs?.href)||!1))return!1;const{href:n,target:i}=t.attrs,r=e.map(a=>{const l=a.marks?.filter(c=>c.type!=="link")||[];return{...a,marks:l}});let o=ie(r);return o?{type:"paragraph",children:ve(s.content),text:`<a target="${i}" href="${n}">${o}</a>`,attrs:s.attrs}:!1}function ps(s){if(!s)return null;const e={title:s.header.title||"",pretitle:s.header.pretitle||"",subtitle:s.header.subtitle||"",paragraphs:s.body.paragraphs||[],links:s.body.links||[],images:s.body.images||[],icons:s.body.icons||[],lists:s.body.lists||[],videos:s.body.videos||[],insets:s.body.insets||[],snippets:s.body.snippets||[],data:s.body.data||{},quotes:s.body.quotes||[],headings:s.body.headings||[]};return s.body.math&&s.body.math.length&&(e.math=s.body.math),s.body.tables&&s.body.tables.length&&(e.tables=s.body.tables),e}function kn(s,e={}){if(!s.length)return{title:"",pretitle:"",subtitle:"",paragraphs:[],links:[],images:[],icons:[],lists:[],videos:[],insets:[],snippets:[],data:{},quotes:[],headings:[],items:[]};const n=nr(s,e).map(c=>Pt(c));let i=null,r=[];(e.alwaysItems?!1:ar(n))?(i=n[0],r=n.slice(1)):r=n;const a=ps(i)||{title:"",pretitle:"",subtitle:"",paragraphs:[],links:[],images:[],icons:[],lists:[],videos:[],insets:[],data:{},quotes:[],headings:[]},l=r.map(ps);return{...a,items:l}}function nr(s,e={}){const t=[];let n=[];for(let i=0;i<s.length;i++){const r=s[i];if(r.type==="divider"){n.length>0&&(t.push(n),n=[]);continue}if(r.type==="heading"){const o=i===1&&rr(s,0);n.length>0&&!o&&(t.push(n),n=[]);const a=or(s,i,e);n.push(...a),i+=a.length-1}else n.push(r)}return n.length>0&&t.push(n),t}function ir(s,e){return e+1<s.length&&s[e].type==="heading"&&s[e+1].type==="heading"&&s[e].level>s[e+1].level}function rr(s,e){return e+1<s.length&&s[e].type==="image"&&(s[e].role==="banner"||s[e+1].type==="heading")}function or(s,e,t={}){const n=[s[e]];let i=!1;for(let r=e+1;r<s.length;r++){const o=s[r],a=n[n.length-1];if(o.type!=="heading")break;if(o.level-a.level===1){i=!0,n.push(o);continue}if(n.length===1&&o.level<a.level){n.push(o);continue}if(o.level===a.level&&!i&&!t.alwaysItems){n.push(o);continue}break}return n}function Pt(s){const e={pretitle:"",title:"",subtitle:""},t={images:[],icons:[],videos:[],insets:[],snippets:[],paragraphs:[],links:[],lists:[],data:{},quotes:[],headings:[]},n={level:null,contentTypes:new Set};if(!s)return{header:e,body:t,metadata:n};let i=null,r=null;for(let o=0;o<s.length;o++){ir(s,o)&&!e.pretitle&&(e.pretitle=s[o].text,o++);const a=s[o];if(a.type==="heading"){if(a.children&&Array.isArray(a.children)&&mt(a.children,t),n.level??=a.level,r!==null&&a.level===r&&i){const l=e[i];Array.isArray(l)?l.push(a.text):e[i]=[l,a.text]}else e.title?e.subtitle?(t.headings.push(a.text),i=null):(e.subtitle=a.text,i="subtitle"):(e.title=a.text,i="title");r=a.level}else if(a.type==="list"){const l=a.children;t.lists.push(l.map(c=>Pt(c).body))}else{let l={...a.attrs};switch(a.type){case"paragraph":a.children&&Array.isArray(a.children)&&mt(a.children,t),a.text&&t.paragraphs.push(a.text);break;case"image":a.attrs?.role==="icon"?t.icons.push(a.attrs):t.images.push(l);break;case"video":t.videos.push(l);break;case"link":a.children&&Array.isArray(a.children)&&mt(a.children,t),t.links.push(l);break;case"icon":t.icons.push(a.attrs);break;case"button":t.links.push({href:a.attrs?.href||"",label:a.text||"",role:a.attrs?.variant?`button-${a.attrs.variant}`:"button",variant:a.attrs?.variant||"primary",size:a.attrs?.size,icon:a.attrs?.icon,target:a.attrs?.target,class:a.attrs?.class});break;case"blockquote":const c=Pt(a.children);t.quotes.push(c.body);break;case"concept_block":{const f=a.children||[];t.data[a.tag]={items:kn(f,{alwaysItems:!0}).items,sequence:f};break}case"dataBlock":t.data[a.tag]=a.data;break;case"codeBlock":t.snippets.push({language:a.attrs?.language||"",code:typeof a.text=="string"?a.text:""});break;case"math":(t.math||=[]).push({id:a.id||null,latex:a.latex||"",mathml:a.mathml||""});break;case"table":(t.tables||=[]).push({rows:a.rows||[],attrs:a.attrs||{}});break;case"inset":t.insets.push({refId:a.refId});break;case"form":{const f=a.data||a.attrs,u=a.schemaId||"form";t.data[u]=f}break;case"card-group":(a.cards||[]).forEach(f=>{const u=f.cardType||"card";t.data[u]||(t.data[u]=[]);const{cardType:h,...p}=f;t.data[u].push(p)});break;case"document-group":a.documents.forEach(f=>{t.links.push({href:f.href||f.downloadUrl||"",label:f.title||"",role:"document",download:!0,preview:f.coverImg,fileType:f.fileType})});break}}}return{header:e,body:t,metadata:n}}function ar(s){if(s.length===0)return!1;if(s.length===1)return!0;const e=s[0].metadata.level,t=s[1].metadata.level;return!!(e&&(!t||e<t)||!e&&t)}function mt(s,e){s.forEach(t=>{t.type==="icon"?e.icons.push(t.attrs):t.type==="image"?t.attrs?.role==="icon"?e.icons.push(t.attrs):e.images.push(t.attrs):t.type==="video"?e.videos.push(t.attrs):t.type==="link"&&e.links.push(t.attrs)})}function lr(s,e={}){const t={...e},n=ne(s,t),i=kn(n,t);return{raw:s,sequence:n,...i}}const Je=[50,100,200,300,400,500,600,700,800,900,950],M={50:.97,100:.93,200:.87,300:.78,400:.68,500:.55,600:.48,700:.4,800:.32,900:.24,950:.14},cr={50:.15,100:.25,200:.4,300:.65,400:.85,500:1,600:.95,700:.85,800:.75,900:.6,950:.45},fr=M[50]-M[500],ur=M[500]-M[950],Ge={};for(const s of Je)s<500?Ge[s]=(M[s]-M[500])/fr:s>500&&(Ge[s]=(M[500]-M[s])/ur);const gs={fixed:{hueShift:{light:0,dark:0},chromaBoost:1,lightEndChroma:.15,darkEndChroma:.45},natural:{hueShift:{light:5,dark:-15},chromaBoost:1.1,lightEndChroma:.2,darkEndChroma:.4},vivid:{hueShift:{light:3,dark:-10},chromaBoost:1.4,lightEndChroma:.35,darkEndChroma:.55}};function Sn(s){if(!s||typeof s!="string")throw new Error(`Invalid color: ${s}`);const e=s.trim().toLowerCase();if(e.startsWith("oklch("))return hr(e);if(e.startsWith("#"))return ms(e);if(e.startsWith("rgb"))return pr(e);if(e.startsWith("hsl"))return gr(e);if(/^[0-9a-f]{3,8}$/i.test(e))return ms("#"+e);throw new Error(`Unsupported color format: ${s}`)}function hr(s){const e=s.match(/oklch\(\s*([0-9.]+)(%?)\s+([0-9.]+)\s+([0-9.]+)(deg)?\s*\)/);if(!e)throw new Error(`Invalid oklch format: ${s}`);let t=parseFloat(e[1]);e[2]==="%"&&(t/=100);const n=parseFloat(e[3]),i=parseFloat(e[4]);return{l:t,c:n,h:i}}function ms(s){const e=dr(s);return Zt(e.r,e.g,e.b)}function dr(s){let e=s.replace("#","");e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===4&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e.slice(0,6),16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function pr(s){const e=s.match(/rgba?\(\s*([0-9.]+)[\s,]+([0-9.]+)[\s,]+([0-9.]+)/);if(!e)throw new Error(`Invalid rgb format: ${s}`);const t=parseFloat(e[1]),n=parseFloat(e[2]),i=parseFloat(e[3]);return Zt(t,n,i)}function gr(s){const e=s.match(/hsla?\(\s*([0-9.]+)(deg)?[\s,]+([0-9.]+)%[\s,]+([0-9.]+)%/);if(!e)throw new Error(`Invalid hsl format: ${s}`);const t=parseFloat(e[1]),n=parseFloat(e[3])/100,i=parseFloat(e[4])/100,r=mr(t,n,i);return Zt(r.r*255,r.g*255,r.b*255)}function mr(s,e,t){const n=s/360;let i,r,o;if(e===0)i=r=o=t;else{const a=t<.5?t*(1+e):t+e-t*e,l=2*t-a;i=yt(l,a,n+1/3),r=yt(l,a,n),o=yt(l,a,n-1/3)}return{r:i,g:r,b:o}}function yt(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*(2/3-t)*6:s}function Zt(s,e,t){s/=255,e/=255,t/=255,s=bt(s),e=bt(e),t=bt(t);const n=.4122214708*s+.5363325363*e+.0514459929*t,i=.2119034982*s+.6806995451*e+.1073969566*t,r=.0883024619*s+.2817188376*e+.6299787005*t,o=Math.cbrt(n),a=Math.cbrt(i),l=Math.cbrt(r),c=.2104542553*o+.793617785*a-.0040720468*l,f=1.9779984951*o-2.428592205*a+.4505937099*l,u=.0259040371*o+.7827717662*a-.808675766*l,h=Math.sqrt(f*f+u*u);let p=Math.atan2(u,f)*(180/Math.PI);return p<0&&(p+=360),{l:c,c:h,h:p}}function bt(s){return s<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)}function wt(s){return s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055}function ct(s,e,t){const n=t*(Math.PI/180),i=e*Math.cos(n),r=e*Math.sin(n),o=s+.3963377774*i+.2158037573*r,a=s-.1055613458*i-.0638541728*r,l=s-.0894841775*i-1.291485548*r,c=o*o*o,f=a*a*a,u=l*l*l;let h=4.0767416621*c-3.3077115913*f+.2309699292*u,p=-1.2684380046*c+2.6097574011*f-.3413193965*u,m=-.0041960863*c-.7034186147*f+1.707614701*u;return h=Math.round(Math.max(0,Math.min(1,wt(h)))*255),p=Math.round(Math.max(0,Math.min(1,wt(p)))*255),m=Math.round(Math.max(0,Math.min(1,wt(m)))*255),{r:h,g:p,b:m}}function yr(s,e,t){return s>=-.5&&s<=255.5&&e>=-.5&&e<=255.5&&t>=-.5&&t<=255.5}function _n(s,e,t){let n=0,i=t,r=0;for(let o=0;o<8;o++){const a=(n+i)/2,l=ct(s,a,e);yr(l.r,l.g,l.b)?(r=a,n=a):i=a}return r}function ys(s,e,t,n){const i=1-n;return i*i*s+2*i*n*e+n*n*t}function xe(s,e,t){return s+(e-s)*t}function kt(s){return s=s%360,s<0?s+360:s}function br(s){return s>=0&&s<120||s>300}function Ye(s,e,t){const n=(s*100).toFixed(1),i=e.toFixed(4),r=t.toFixed(1);return`oklch(${n}% ${i} ${r})`}function es(s,e,t){const n=i=>i.toString(16).padStart(2,"0");return`#${n(s)}${n(e)}${n(t)}`}function bs(s,e={}){const{format:t="oklch",mode:n="fixed",exactMatch:i}=e,r=Sn(s),o=gs[n]||gs.fixed;return n==="fixed"?wr(r,s,t,i):kr(r,s,t,o,i)}function wr(s,e,t,n){const i={},r=n!==!1;for(const o of Je){if(r&&o===500){t==="hex"?i[o]=e.startsWith("#")?e:vn(s):i[o]=Ye(s.l,s.c,s.h);continue}let a;r?o<500?a=s.l+Ge[o]*(M[50]-s.l):a=s.l-Ge[o]*(s.l-M[950]):a=M[o];const l=cr[o],c=s.c*l,f=_n(a,s.h,c);if(t==="hex"){const u=ct(a,f,s.h);i[o]=es(u.r,u.g,u.b)}else i[o]=Ye(a,f,s.h)}return i}function kr(s,e,t,n,i){const r={},o=br(s.h),a=o?n.hueShift.light:-n.hueShift.light,l=o?n.hueShift.dark:-n.hueShift.dark,c={l:M[50],c:s.c*n.lightEndChroma,h:kt(s.h+a)},f={l:M[950],c:s.c*n.darkEndChroma,h:kt(s.h+l)},u=s.c*n.chromaBoost;for(let h=0;h<Je.length;h++){const p=Je[h];if(i!==!1&&p===500){t==="hex"?r[p]=e.startsWith("#")?e:vn(s):r[p]=Ye(s.l,s.c,s.h);continue}let m,d,g;if(h<=5){const y=h/5;m=xe(c.l,s.l,y),g=xe(c.h,s.h,y);const S=(c.c+u)/2;d=ys(c.c,S,u,y)}else{const y=(h-5)/5;m=xe(s.l,f.l,y),g=xe(s.h,f.h,y);const S=(u+f.c)/2;d=ys(u,S,f.c,y)}g=kt(g);const b=_n(m,g,d);if(t==="hex"){const y=ct(m,b,g);r[p]=es(y.r,y.g,y.b)}else r[p]=Ye(m,b,g)}return r}function vn(s){const e=ct(s.l,s.c,s.h);return es(e.r,e.g,e.b)}function lo(s,e={}){const t={};for(const[n,i]of Object.entries(s)){if(typeof i=="object"&&i!==null&&!i.base&&Object.keys(i).some(o=>!isNaN(parseInt(o)))){t[n]=i;continue}if(typeof i=="object"&&i!==null&&i.base){const{base:r,...o}=i;t[n]=bs(r,{...e,...o})}else typeof i=="string"&&(t[n]=bs(i,e))}return t}function co(s){try{return Sn(s),!0}catch{return!1}}const ws=new Set([50,100,200,300,400,500,600,700,800,900,950]),ks=/^([a-z][a-z0-9]*)-(\d+)$/,Sr=/^([a-z][a-z0-9]*-\d+)\/(\d+)$/,_r=/^rgba\(\s*(var\(--[^)]+\))\s*\/\s*([\d.]+)\s*\)$/;function Ss(s){if(typeof s!="string")return s;const e=s.match(_r);if(e){const r=e[1],o=parseFloat(e[2]);return o>=.999?r:`color-mix(in srgb, ${r} ${Math.round(o*100)}%, transparent)`}if(s.includes("(")||s.startsWith("#"))return s;const t=s.replace(/^-{0,2}/,""),n=t.match(Sr);if(n){const r=n[1],o=parseInt(n[2],10),a=r.match(ks);if(a&&ws.has(parseInt(a[2],10)))return o>=100?`var(--${r})`:`color-mix(in srgb, var(--${r}) ${o}%, transparent)`}const i=t.match(ks);if(i){const r=parseInt(i[2],10);if(ws.has(r))return`var(--${t})`}return s}function vr(s){if(!s||!Array.isArray(s.content))return{content:s,refs:[]};const e=[],t=i=>{let r=!1;const o=i.map(a=>{if(!a)return a;if(a.type==="inset_block"){const{component:l,...c}=a.attrs||{},f=`container_${e.length}`;return e.push({refId:f,type:l,params:c,content:{type:"doc",content:a.content||[]}}),r=!0,{type:"inset_placeholder",attrs:{refId:f,embedKind:"block"}}}if(Array.isArray(a.content)){const l=t(a.content);if(l!==a.content)return r=!0,{...a,content:l}}return a});return r?o:i},n=t(s.content);return n===s.content?{content:s,refs:e}:{content:{...s,content:n},refs:e}}class K{constructor(e,t,n){this.id=t,this.stableId=e.stableId||null,this.page=n,this.website=n.website,this.type=e.type||this.website.getDefaultBlockType(),this.Component=null;const i=vr(e.content);this.rawContent=i.content||{},this.parsedContent=this.parseContent(i.content),e.parsedContent?.data&&(this.parsedContent.data={...this.parsedContent.data||{},...e.parsedContent.data}),this.items=this.parsedContent.items||[];const r=e.params||e.config||{};this.preset=e.preset;const o=r.theme;if(o&&typeof o=="object"){const{mode:c,...f}=o;if(this.themeName=c||"",Object.keys(f).length>0){for(const u of Object.keys(f))f[u]=Ss(f[u]);this.contextOverrides=f}else this.contextOverrides=null}else this.themeName=o??"",this.contextOverrides=null;this.standardOptions=r.standardOptions||{},this.properties=r.properties||r,this.properties.theme&&typeof this.properties.theme=="object"&&(this.properties={...this.properties,theme:this.themeName});const a=r.background;a&&!this.standardOptions.background&&(this.standardOptions={...this.standardOptions,background:K.normalizeBackground(a)}),this.childBlocks=e.subsections?e.subsections.map((c,f)=>new K(c,`${t}_${f}`,this.page)):[],this.insets=[];const l=e.insets;if(l?.length>0)for(let c=0;c<l.length;c++){const f=l[c],u=f.title||"",h=new K({type:f.type,params:f.params||{},content:{title:u},stableId:f.refId,refId:f.refId},`${t}_inset_${c}`,this.page);this.insets.push(h)}for(let c=0;c<i.refs.length;c++){const f=i.refs[c];this.insets.push(new K({type:f.type,params:f.params||{},content:f.content,stableId:f.refId,refId:f.refId},`${t}_container_${c}`,this.page))}this.fetch=e.fetch||null,this.dataLoading=!1,this.hasBackground=!1,this.refId=e.refId||null,this.dynamicContext=e.dynamicContext||null,this.startState=null,this.state=null,this.resetStateHook=null,this.context=null,this.componentVars=null,Object.seal(this)}get path(){return this.page.getNavRoute()}get key(){return`${this.path}-${this.id}`}get parentPath(){return this.dynamicContext?.templateRoute?this.dynamicContext.templateRoute.split("/").slice(0,-1).join("/")||"/":this.path.split("/").slice(0,-1).join("/")||"/"}parseContent(e){return e?.groups?e.groups:e?.type==="doc"?this.extractFromProseMirror(e):e?.doc?.type==="doc"?this.extractFromProseMirror(e.doc):e&&typeof e=="object"&&!Array.isArray(e)?e:{title:"",paragraphs:[],items:[],sequence:[]}}extractFromProseMirror(e){try{return lr(e)}catch(t){return console.warn("[Block] Semantic parser error, using fallback:",t.message),this.extractFromProseMirrorFallback(e)}}extractFromProseMirrorFallback(e){const t={title:"",pretitle:"",subtitle:"",paragraphs:[],links:[],images:[],lists:[],icons:[],items:[],sequence:[]};if(!e.content)return t;for(const n of e.content)if(n.type==="heading"){const i=this.extractText(n);n.attrs?.level===1?t.title=i:n.attrs?.level===2&&(t.subtitle=i)}else if(n.type==="paragraph"){const i=this.extractText(n);t.paragraphs.push(i)}return t}extractText(e){return e.content?e.content.filter(t=>t.type==="text").map(t=>t.text).join(""):""}initComponent(){if(this.Component)return this.Component;if(this.Component=globalThis.uniweb?.getComponent(this.type),!this.Component)return console.warn(`[Block] Component not found: ${this.type}`),null;const e=globalThis.uniweb?.getComponentMeta(this.type)||{},t=e.initialState;return this.startState=t?{...t}:null,this.initState(),this.context=e.context?{...e.context}:null,e.vars&&(this.componentVars=K.mergeComponentVars(e.vars,this.properties.vars)),this.Component}getBlockProperties(){return this.properties}getInset(e){return this.insets.find(t=>t.refId===e)||null}getChildBlockRenderer(){return globalThis.uniweb.childBlockRenderer}getBlockLinks(e={}){const t=globalThis.uniweb?.activeWebsite,n=this.parsedContent||{};if(e.nested){const o=(n.lists||[])[0];return K.parseNestedLinks(o,t)}return(n.links||[]).map(r=>({route:t?.makeHref(r.href)||r.href,label:r.label}))}initState(){this.state=this.startState,this.resetStateHook&&this.resetStateHook()}getIndex(){return this.page?this.page.getBlockIndex(this):-1}getBlockInfo(){return{type:this.type,theme:this.themeName,contextOverrides:this.contextOverrides,state:this.state,context:this.context}}getNextBlockInfo(){const e=this.website?.activePage;if(e&&e!==this.page)return e.getFirstBodyBlockInfo();const t=this.getIndex();return t<0||!this.page?null:this.page.getBlockInfo(t+1)}getPrevBlockInfo(){const e=this.website?.activePage;if(e&&e!==this.page)return e.getLastBodyBlockInfo();const t=this.getIndex();return t<=0||!this.page?null:this.page.getBlockInfo(t-1)}useBlockState(e,t){t!==void 0&&this.startState===null?(this.startState=t,this.state=t):t=this.startState;const[n,i]=e(t);return this.resetStateHook=()=>i(t),[n,r=>i(this.state=r)]}getDynamicContext(){return this.dynamicContext}static mergeComponentVars(e,t={}){const n={};for(const[i,r]of Object.entries(e)){const o=typeof r=="string"?r:r?.default;o!=null&&(n[i]=o)}if(t&&typeof t=="object")for(const[i,r]of Object.entries(t))r!=null&&i in e&&(n[i]=String(r));return Object.keys(n).length>0?n:null}static normalizeBackground(e){if(typeof e=="string"){if(/^(\/|\.\/|\.\.\/|https?:\/\/)/.test(e)||/\.(jpe?g|png|webp|gif|svg|avif|mp4|webm|ogv|ogg)$/i.test(e)){const t=e.split(".").pop()?.toLowerCase();return["mp4","webm","ogv","ogg"].includes(t)?{mode:"video",video:{src:e}}:{mode:"image",image:{src:e}}}return/^(linear|radial|conic)-gradient\(/.test(e)?{mode:"gradient",gradient:e}:{mode:"color",color:Ss(e)}}if(e.mode)return e;if(typeof e.overlay=="number"&&(e={...e,overlay:{enabled:!0,type:"dark",opacity:e.overlay}}),e.video||e.sources)return{mode:"video",...e};if(e.image||e.src){if(e.src){const{src:t,position:n,size:i,lazy:r,...o}=e;return{mode:"image",image:{src:t,position:n,size:i,lazy:r},...o}}if(typeof e.image=="string"){const{image:t,...n}=e;return{mode:"image",image:{src:t},...n}}return{mode:"image",...e}}return e.gradient?{mode:"gradient",...e}:e.color?{mode:"color",...e}:e}static parseNestedLinks(e,t){const n=[];if(!e?.length)return n;for(const i of e){const{links:r=[],lists:o=[],paragraphs:a=[]}=i,l=r[0],c=o[0],f=a[0];let u="",h="",p=[],m=!0;l?(u=l.label,h=l.href,c&&(p=K.parseNestedLinks(c,t))):(u=f,m=!1,c&&(p=K.parseNestedLinks(c,t))),n.push({label:u,route:t?.makeHref(h)||h,child_items:p,hasData:m})}return n}}class In{constructor(){this._values=new Map,this._keyListeners=new Map,Object.seal(this)}get(e){return this._values.get(e)}has(e){return this._values.has(e)}set(e,t){this._values.has(e)&&this._values.get(e)===t||(this._values.set(e,t),this._notify(e))}delete(e){return this._values.has(e)?(this._values.delete(e),this._notify(e),!0):!1}subscribe(e,t){let n=this._keyListeners.get(e);return n||(n=new Set,this._keyListeners.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this._keyListeners.delete(e)}}_notify(e){const t=this._keyListeners.get(e);if(t)for(const n of t)n()}}function An(s){const e=s||{};return{noindex:e.noindex||!1,image:e.image||null,ogTitle:e.ogTitle||null,ogDescription:e.ogDescription||null,canonical:e.canonical||null,changefreq:e.changefreq||null,priority:e.priority||null}}function Ir(s){const e=[],t=new Set,n=r=>{typeof r=="string"&&r&&!t.has(r)&&(t.add(r),e.push(r))},i=s.hideIn;return Array.isArray(i)?i.forEach(n):n(i),s.hideInHeader&&n("header"),s.hideInFooter&&n("footer"),e}class Re{constructor(e,t,n){this.id=t,this.stableId=e.id||null,this.route=e.route,this.sourcePath=e.sourcePath||null,this.isIndex=e.isIndex||!1,this.parentRoute=e.parent||null,this.title=e.title||"",this.description=e.description||"",this.label=e.label||null,this.keywords=e.keywords||null,this.lastModified=e.lastModified||null,this.redirect=e.redirect||null,this.rewrite=e.rewrite||null,this.hidden=e.hidden||!1,this.hideIn=Ir(e),this.hideInHeader=this.hideIn.includes("header"),this.hideInFooter=this.hideIn.includes("footer"),this.layout={name:e.layout?.name||null,hide:e.layout?.hide||[],params:e.layout?.params||{}},this.seo=An(e.seo),this.parent=null,this.children=[],this.website=n,this.scrollY=0,this.fetch=e.fetch||null,this.dynamicContext=e.dynamicContext||null,this.version=e.version||null,this.versionMeta=e.versionMeta||null,this.versionScope=e.versionScope||null,this._hasContent=e.hasContent??e.sections?.length>0,this._bodySections=e.sections,this._bodyBlocks=null,this._loadingContent=null,this._state=null,Object.seal(this)}get state(){return this._state||(this._state=new In),this._state}get bodyBlocks(){if(!this._bodyBlocks){if(this._bodySections===void 0)return[];this._bodyBlocks=(this._bodySections||[]).map((e,t)=>new K(e,t,this))}return this._bodyBlocks}getHeadMeta(){const e=this.getTitle(),t=this.website?.seo||{},n=this.website?.keywords||null;return{title:e,description:this.description,keywords:this.keywords||n,canonical:this.seo.canonical,robots:this.seo.noindex||t.noindex?"noindex, nofollow":null,og:{title:this.seo.ogTitle||e||t.ogTitle,description:this.seo.ogDescription||this.description||t.ogDescription,image:this.seo.image||t.image,url:this.route}}}isDynamicPage(){return this.dynamicContext!==null}getDynamicContext(){return this.dynamicContext}getDynamicParam(){return this.dynamicContext?.paramValue||null}getLayoutName(){return this.layout.name||this.website?.getDefaultLayoutName()||null}getBlockGroups(){return{body:this.bodyBlocks,...this.getLayoutAreas()}}getBlockIndex(e){return this.getPageBlocks().indexOf(e)}getBlockInfo(e){return this.getPageBlocks()[e]?.getBlockInfo()||null}getFirstBodyBlockInfo(){return this.bodyBlocks?.[0]?.getBlockInfo()||null}getLastBodyBlockInfo(){const e=this.bodyBlocks;return e?.[e.length-1]?.getBlockInfo()||null}getPageBlocks(){const e=[],t=this.getLayoutAreas(),n=t.header,i=t.footer;return n&&e.push(...n),e.push(...this.bodyBlocks),i&&e.push(...i),e}getBodyBlocks(){return this.bodyBlocks}getAreaBlocks(e){return this.layout.hide.includes(e)?null:this.website.getAreaBlocks(e,this.getLayoutName())}getLayoutAreas(){const e=this.website.getLayoutAreas(this.getLayoutName()),t={};for(const[n,i]of Object.entries(e))this.layout.hide.includes(n)||(t[n]=i);return t}getLayoutParams(){return this.layout.params}resetBlockStates(){const e=this.getLayoutAreas(),t=[...this.bodyBlocks,...Object.values(e).flat()];for(const n of t)typeof n.initState=="function"&&n.initState()}getNavRoute(){return this.isIndex&&this.route.endsWith("/index")?this.route.slice(0,-6)||"/":this.route}getTitle(){if(this.isIndex&&this.route.endsWith("/index")){const e=this.title?.trim();if(!e||e.toLowerCase()==="index")return this.parent?.title||e||""}return this.title}getLabel(){return this.label||this.getTitle()}isHidden(){return this.hidden}showInNav(e){return!this.hidden&&!this.hideIn.includes("*")&&!this.hideIn.includes(e)}showInHeader(){return this.showInNav("header")}showInFooter(){return this.showInNav("footer")}hasChildren(){return this.children.length>0}hasContent(){return this._hasContent}isContentLoaded(){return this._bodySections!==void 0}async loadContent(){if(this._bodySections===void 0)return this._loadingContent?this._loadingContent:(this._loadingContent=(async()=>{try{const e=this.website.basePath||"",t=this.website.activeLocale,n=this.website.defaultLocale,r=this.website.config?.pageHashes?.[t]?.[this.route];let o;if(r)o=`${e}${r}`;else{const c=t!==n?`/${t}`:"",f=this.route==="/"?"/index":this.route;o=`${e}${c}/_pages${f}.json`}const a=await fetch(o);if(a.status===404&&Ar(r)){window.location.reload();return}if(!a.ok){console.warn(`[Page] Failed to load content for ${this.route}: ${a.status}`),this._bodySections=[];return}const l=await a.json();this._bodySections=l.sections||[],this._bodyBlocks=null,typeof sessionStorage<"u"&&sessionStorage.removeItem("uniwebReloadCount")}finally{this._loadingContent=null}})(),this._loadingContent)}getNavigableRoute(){if(this.hasContent())return this.route;const e=this.children||[];if(e.find(n=>n.isIndex))return this.route;for(const n of e){const i=n.getNavigableRoute();if(i)return i}return this.route}getRenderableSelf(){return this.hasContent()?this:this.children?.find(t=>t.isIndex)||this}getNormalizedRoute(){return this.website.normalizeRoute(this.route)}isActiveFor(e){return this.website.isRouteActive(this.route,e)}isActiveOrAncestor(e){if(this.website.isRouteActive(this.route,e))return!0;const t=this.sourcePath||this.route;return this.website.isRouteActiveOrAncestor(t,e)}isVersioned(){return this.version!==null}getVersion(){return this.version}getVersions(){return this.versionMeta?.versions||[]}isLatestVersion(){return this.version?.latest===!0}isDeprecatedVersion(){return this.version?.deprecated===!0}getVersionUrl(e){return this.isVersioned()?this.website.getVersionUrl(e,this.route):null}}function Ar(s){if(!s||typeof sessionStorage>"u"||typeof window>"u"||!window.location)return!1;try{const e=parseInt(sessionStorage.getItem("uniwebReloadCount")||"0",10)||0;return e>=2?!1:(sessionStorage.setItem("uniwebReloadCount",String(e+1)),!0)}catch{return!1}}function Lr(s){const{path:e,url:t,schema:n,transform:i}=s||{},r=s?.method&&s.method.toUpperCase()!=="GET"?s.method.toUpperCase():void 0,o=r==="POST"?s?.body:void 0;return JSON.stringify({path:e,url:t,schema:n,transform:i,method:r,body:o})}class $r{constructor(){this._cache=new Map,this._inflight=new Map,this._listeners=new Set,this._keyedListeners=new Map,Object.seal(this)}subscribe(e,t){if(typeof e=="string"&&typeof t=="function"){const n=e;let i=this._keyedListeners.get(n);return i||(i=new Set,this._keyedListeners.set(n,i)),i.add(t),()=>{const r=this._keyedListeners.get(n);r&&(r.delete(t),r.size===0&&this._keyedListeners.delete(n))}}if(typeof e=="function")return this._listeners.add(e),()=>this._listeners.delete(e);throw new TypeError("DataStore.subscribe: expected (fn) or (key, fn)")}has(e){return this._cache.has(e)}get(e){return this._cache.has(e)?this._cache.get(e):null}set(e,t){this._cache.set(e,t);for(const i of this._listeners)i();const n=this._keyedListeners.get(e);if(n)for(const i of n)i()}get inflight(){return this._inflight}clear(){this._cache.clear(),this._inflight.clear()}}const Nr=/\{([A-Za-z_][A-Za-z0-9_]*)\}/g;function Ie(s,e,t={}){const{encode:n=!0}=t;if(typeof s=="string")return s.replace(Nr,(i,r)=>{if(!(r in(e||{})))return i;const o=e[r];return o==null?i:n?encodeURIComponent(String(o)):String(o)});if(Array.isArray(s))return s.map(i=>Ie(i,e,t));if(s&&typeof s=="object"){const i={};for(const r of Object.keys(s))i[r]=Ie(s[r],e,t);return i}return s}const Ln="data",ts=`/${Ln}/`;function fo(s){return`${ts}${s}.json`}function Or(s,e){return`${ts}${s}/${e}.json`}function uo(s){return typeof s!="string"?"":s.replace(new RegExp(`^/?${Ln}/`),"").replace(/\.json$/i,"")}function Cr(s){return typeof s=="string"&&s.startsWith(ts)}function Tr(s){return s?.refine===!0||s?.inherit===!0}function Er(s,e,t){return!s.path||!e||e===t||!Cr(s.path)?s:{...s,path:`/${e}${s.path}`}}function Pr(s,e){if(s.detail!==void 0)return s;const t=s.schema;if(!t||!e)return s;const n=e[t];if(!n||typeof n!="object")return s;const i=Array.isArray(n.deferred)?n.deferred:null;if(!i||i.length===0)return s;const r=typeof n.detailUrl=="string"?n.detailUrl:Or(t,"{slug}");return{...s,detail:r}}function Mr(s,e={}){const{schemas:t=[],locale:n=null,defaultLocale:i=null,collections:r=null}=e,o=new Map,a=t.length===0;for(const l of s){if(!l)continue;const c=Array.isArray(l)?l:[l];for(const f of c){if(!f?.schema||o.has(f.schema)||!a&&!t.includes(f.schema))continue;const u=Er(f,n,i);o.set(f.schema,Pr(u,r))}}return o}const De=Tr;let _s=!1;function Br(s){_s||(_s=!0,console.warn(`[uniweb] 'fetch: { inherit: true }' is deprecated; rename to 'fetch: { refine: true }'. Accepted for one release; will be removed in the next minor. First seen on block ${s?.id??"(unknown)"} of page ${s?.page?.route??"(unknown)"}.`))}class jr{constructor({website:e}){this.website=e,Object.seal(this)}_shouldInheritDetail(e,t){const n=t?.fetch;return De(n)&&n?.detail!==void 0?n.detail!==!1:e?e.inheritDetail!==!1:!0}_inheritLimit(e,t){const n=t?.fetch;return De(n)&&n?.limit>0?n.limit:e?.inheritLimit>0?e.inheritLimit:null}_inheritOrder(e){const t=e?.fetch;return De(t)&&t?.order?.orderBy?t.order:null}_sortItems(e,t){if(!t?.orderBy||!Array.isArray(e)||e.length===0)return e;const{orderBy:n,sortOrder:i="ASC"}=t,r=i==="DESC";return[...e].sort((o,a)=>{const l=o[n]??"",c=a[n]??"",f=typeof l=="string"&&typeof c=="string"?l.localeCompare(c):l>c?1:l<c?-1:0;return r?-f:f})}_getRequestedSchemas(e){return e?e.inheritData===!1?null:[]:[]}_findFetchConfigs(e,t){e.fetch?.inherit===!0&&e.fetch?.refine!==!0&&Br(e);const n=e.page,i=e.website;return Mr([e.fetch&&!De(e.fetch)?e.fetch:null,n?.fetch,n?.parent?.fetch,i?.config?.fetch],{schemas:t,locale:i?.getActiveLocale?.()??null,defaultLocale:i?.getDefaultLocale?.()??null,collections:i?.config?.collections??null})}_applyDetailRoutes(e,t,n){if(!(!e||!n?.resolveDetailPageTemplate))for(const[i,r]of t){if(!r.detailPage)continue;const o=e[i];if(!Array.isArray(o)||o.length===0)continue;const a=n.resolveDetailPageTemplate(r.detailPage);a&&(e[i]=o.map(l=>xr(l,a)))}}_buildDetailConfig(e,t){const{detail:n}=e;if(!n)return null;const{paramName:i,paramValue:r}=t;if(!i||r===void 0)return null;const o=e.url||e.path;if(!o)return null;const a=!!e.path&&!e.url;if(n&&typeof n=="object"){const c={...a?{path:o}:{url:o},schema:e.schema,transform:e.transform};return e.method&&(c.method=e.method),n.body!==void 0?c.body=Ie(n.body,{[i]:r},{encode:!1}):e.body!==void 0&&(c.body=Ie(e.body,{[i]:r},{encode:!1})),n.envelope&&(c.envelope=n.envelope),c}let l;if(n==="rest"){const[c,f]=o.split("?"),u=c.replace(/\/$/,"");l=f?`${u}/${encodeURIComponent(r)}?${f}`:`${u}/${encodeURIComponent(r)}`}else if(n==="query"){const c=o.includes("?")?"&":"?";l=`${o}${c}${i}=${encodeURIComponent(r)}`}else l=Ie(n,{[i]:r});return{...a?{path:l}:{url:l},schema:e.schema,transform:e.transform}}_ctx(e,t={}){return{website:this.website,page:e?.page||null,block:e||null,signal:t.signal}}resolve(e,t){const n=this.website?.fetcher;let i=this._getRequestedSchemas(t);if(i===null&&e.fetch){const d=(Array.isArray(e.fetch)?e.fetch:[e.fetch]).filter(g=>g.schema).map(g=>g.schema);d.length>0&&(i=d)}if(i===null)return{status:"none",data:null};const r=this._findFetchConfigs(e,i);if(r.size===0)return{status:"none",data:null};const o=e.dynamicContext||e.page?.dynamicContext,a=this._shouldInheritDetail(t,e),l=this._inheritLimit(t,e),c=this._inheritOrder(e),f=this._ctx(e),u={};let h=!0;const p=o?.schema;for(const[m,d]of r){const g=o&&m===p;if(g&&!a){const b=n?.peek(d,f);if(b){const{paramName:y,paramValue:S}=o,v=b.data;let w=Array.isArray(v)?v.filter(k=>String(k[y])!==String(S)):v;c&&(w=this._sortItems(w,c)),u[m]=l&&Array.isArray(w)?w.slice(0,l):w}else h=!1}else if(g){const b=n?.peek(d,f);if(b){const{paramName:y,paramValue:S}=o,v=b.data,w=Array.isArray(v)?v.find(k=>String(k[y])===String(S)):null;if(!w)u[m]=[];else if(d.detail){const k=this._buildDetailConfig(d,o),A=k?n?.peek(k,f):null;k&&A?u[m]=[A.data]:k?h=!1:u[m]=[w]}else u[m]=[w]}else h=!1}else{const b=n?.peek(d,f);if(b){const y=b.data;u[m]=c?this._sortItems(y,c):y}else h=!1}}return h?(this._applyDetailRoutes(u,r,e.website),{status:"ready",data:u}):{status:"pending",data:null}}async fetch(e,t,{signal:n}={}){const i=this.website?.fetcher;if(!i)return{data:null};let r=this._getRequestedSchemas(t);if(r===null&&e.fetch){const g=(Array.isArray(e.fetch)?e.fetch:[e.fetch]).filter(b=>b.schema).map(b=>b.schema);g.length>0&&(r=g)}if(r===null)return{data:null};const o=this._findFetchConfigs(e,r);if(o.size===0)return{data:null};const a=e.dynamicContext||e.page?.dynamicContext,l=this._shouldInheritDetail(t,e),c=this._inheritLimit(t,e),f=this._inheritOrder(e),u=this._ctx(e,{signal:n}),h={},p=[],m=a?.schema;for(const[d,g]of o){const b=a&&d===m;if(b&&!l){let y=vs(i,g,u);if(y===null){const k=await i.dispatch(g,u);y=Array.isArray(k?.data)?k.data:null}const{paramName:S,paramValue:v}=a;let w=Array.isArray(y)?y.filter(k=>String(k[S])!==String(v)):y??[];f&&(w=this._sortItems(w,f)),h[d]=c&&Array.isArray(w)?w.slice(0,c):w}else if(b){const{paramName:y,paramValue:S}=a;let v=vs(i,g,u);if(v===null){const k=await i.dispatch(g,u);v=Array.isArray(k?.data)?k.data:null}const w=v?.find(k=>String(k[y])===String(S))??null;if(!w){h[d]=[];continue}if(g.detail){const k=this._buildDetailConfig(g,a);k?p.push(i.dispatch(k,u).then(A=>{const _=A?.data!==void 0&&A?.data!==null?A.data:w;h[d]=[_]})):h[d]=[w]}else h[d]=[w]}else p.push(i.dispatch(g,u).then(y=>{y?.data!==void 0&&y?.data!==null&&(h[d]=y.data)}))}return p.length>0&&await Promise.all(p),this._applyDetailRoutes(h,o,e.website),{data:h}}}function vs(s,e,t){const n=s.peek(e,t);return n&&Array.isArray(n.data)?n.data:null}function xr(s,e){if(!s||typeof s!="object"||s.route!==void 0)return s;let t=!1;const n=e.replace(/:(\w+)/g,(i,r)=>{const o=s[r];return o==null?(t=!0,""):encodeURIComponent(String(o))});return t?s:{...s,route:n}}function Is(s){return s?s.default&&typeof s.default=="object"?s.default:typeof s=="object"?s:null:null}function $n(s){return!!s&&typeof s.resolve=="function"}function As(s,{source:e,dev:t}){const n=new Map;if(!s)return n;let i;try{i=s.capabilities?.transports}catch(r){return t&&console.warn(`[FetcherDispatcher] ${e} transports getter threw:`,r),n}if(!i||typeof i!="object"||Array.isArray(i))return n;for(const r of Object.keys(i)){let o;try{o=i[r]}catch(a){t&&console.warn(`[FetcherDispatcher] ${e} transport "${r}" getter threw:`,a);continue}if(!$n(o)){t&&console.warn(`[FetcherDispatcher] ${e} transport "${r}" missing resolve(); skipped.`);continue}n.set(r,o)}return n}class Ls{constructor({foundation:e,extensions:t=[],dataStore:n,defaultFetcher:i=null,transport:r=null,dev:o=!1}){if(!n)throw new Error("FetcherDispatcher: dataStore is required");this._dataStore=n,this._defaultFetcher=i,this._transportOverride=$n(r)?r:null,this._dev=!!o;const a=new Map,l=As(Is(e),{source:"primary foundation",dev:this._dev});for(const[c,f]of l)a.set(c,f);for(const c of t){let f;try{f=As(Is(c),{source:"extension",dev:this._dev})}catch(u){this._dev&&console.warn("[FetcherDispatcher] extension transports collection threw:",u);continue}for(const[u,h]of f){if(a.has(u)){this._dev&&console.warn(`[FetcherDispatcher] extension transport "${u}" ignored — primary foundation already provides it.`);continue}a.set(u,h)}}this._namedTransports=a,Object.freeze(this)}_selectFetcher(e,t){if(this._transportOverride)return this._transportOverride;const n=t?.website?.config?.fetcher?.transports;if(n&&typeof n=="object"){const i=e?.schema,r=i&&n[i]||n.default;if(r){const o=this._namedTransports.get(r);if(o)return o;this._dev&&console.warn(`[FetcherDispatcher] site selected transport "${r}" for schema "${i??"(none)"}" but no foundation or extension registered it; falling back to the framework default.`)}}return this._defaultFetcher}_cacheKey(e,t){if(e&&typeof e.cacheKey=="function")try{return String(e.cacheKey(t))}catch(n){console.warn("[FetcherDispatcher] fetcher.cacheKey threw:",n)}return Lr(t)}peek(e,t={}){const n=this._selectFetcher(e,t),i=this._cacheKey(n,e);return this._dataStore.get(i)}async dispatch(e,t={}){const n=this._selectFetcher(e,t);if(!n)return{data:[],error:"FetcherDispatcher: no fetcher selected and no default configured"};const i=this._cacheKey(n,e),r=this._dataStore.get(i);if(r)return{data:r.data,meta:r.meta};const o=this._dataStore.inflight.get(i);if(o)return this._attachSignal(o,t.signal),o.promise;const a=typeof AbortController<"u"?new AbortController:null,l={promise:null,master:a,signals:new Set,everAttached:!1};this._attachSignal(l,t.signal),this._dataStore.inflight.set(i,l);const c=a?{...t,signal:a.signal}:t;return l.promise=this._runFetcher(n,e,c,i,l),l.promise}_attachSignal(e,t){if(!t||!e.master)return;if(e.everAttached=!0,t.aborted){this._maybeAbortMaster(e);return}e.signals.add(t);const n=()=>{e.signals.delete(t),this._maybeAbortMaster(e)};t.addEventListener("abort",n,{once:!0})}_maybeAbortMaster(e){e.master&&(e.master.signal.aborted||e.everAttached&&(e.signals.size>0||e.master.abort()))}async _runFetcher(e,t,n,i,r){try{const o=await e.resolve(t,n);if(this._dataStore.inflight.get(i)===r&&this._dataStore.inflight.delete(i),!o||typeof o!="object")return this._dev&&console.warn("[FetcherDispatcher] Fetcher returned a non-object; expected { data, error?, meta? }.",{request:t,result:o}),{data:[],error:"Fetcher returned a non-object"};const{data:a,error:l,meta:c}=o;if(this._dev&&this._validateReturnShape(o,t),l)return{data:a??[],error:l,meta:c};if(a==null)return{data:a??[],meta:c};const f=c!==void 0?{data:a,meta:c}:{data:a};return this._dataStore.set(i,f),{data:a,meta:c}}catch(o){return this._dataStore.inflight.get(i)===r&&this._dataStore.inflight.delete(i),{data:[],error:String(o?.message||o)}}}_validateReturnShape(e,t){const n=new Set(["data","error","meta"]),i=Object.keys(e).filter(r=>!n.has(r));i.length>0&&console.warn(`[FetcherDispatcher] Fetcher return has unexpected keys: ${i.join(", ")}. Expected { data, error?, meta? }.`,{request:t,result:e})}}function Nn(s){return typeof s=="string"&&s.trim()&&s.trim()!=="*"?s.trim():s&&typeof s=="object"&&typeof s.code=="string"&&s.code.trim()?s.code.trim():null}function Rr(s){return s==="*"||Array.isArray(s)&&s.includes("*")}function Mt(s){if(!Array.isArray(s))return[];const e=new Set,t=[];for(const n of s){const i=Nn(n);!i||e.has(i)||(e.add(i),t.push(i))}return t}function Bt(s={}){return typeof s?.defaultLanguage=="string"&&s.defaultLanguage.trim()?s.defaultLanguage.trim():Mt(s?.languages)[0]||"en"}function Dr(s={}){const e=Mt(s?.languages),t=s?.publishLanguages;if(t==null)return{publishable:e,dangling:[],explicit:!1};const n=Mt(t);if(Rr(s?.languages))return{publishable:n,dangling:[],explicit:!0};const i=new Set(e),r=new Set(n);return{publishable:e.filter(o=>r.has(o)),dangling:n.filter(o=>!i.has(o)),explicit:!0}}function ho(s={}){const e=[],t=[],n=(a,l,c)=>{if(a==null||a==="*")return;if(!Array.isArray(a)){t.push({code:c,message:`${l} must be a list of locale codes (got ${typeof a}) — ignored`});return}const f=new Set;for(const u of a){if(u==="*")continue;const h=Nn(u);if(!h){t.push({code:c,message:`${l} entry ${JSON.stringify(u)} is not a locale code string — dropped`});continue}typeof u!="string"&&t.push({code:c,message:`${l} entry for '${h}' uses the legacy object form — use the plain string '${h}'`}),f.has(h)&&t.push({code:"duplicate-language",message:`${l} lists '${h}' more than once — deduped`}),f.add(h)}};n(s?.languages,"languages","invalid-language-entry"),n(s?.publishLanguages,"publishLanguages","invalid-publish-language-entry");const{publishable:i,dangling:r,explicit:o}=Dr(s);for(const a of r)t.push({code:"dangling-publish-language",message:`publishLanguages lists '${a}' but languages does not declare it — ignored at publish (kept in the file so a re-declared language keeps its publish intent)`});if(o&&i.length===0)e.push({code:"nothing-publishable",message:"publishLanguages leaves no publishable language (empty list, or nothing it lists is declared) — a publishable default language is required"});else if(o){const a=Bt(s);i.includes(a)||e.push({code:"default-not-publishable",message:`the default language '${a}' is not in publishLanguages — the effective default must be publishable`})}return{errors:e,warnings:t}}const Fr="[A-Za-z0-9_-]+",Kr=/[.*+?^${}()|[\]\\]/g;function On(s){return typeof s!="string"||s===""||s==="/"?"/":s.replace(/\/+$/,"")||"/"}function Ur(s){const e=[],t=On(s).replace(Kr,"\\$&").replace(new RegExp(`:(${Fr})`,"g"),(n,i)=>(e.push(i),"([^/]+)"));return{regex:new RegExp(`^${t}$`),paramNames:e}}function qr(s,e){const{regex:t,paramNames:n}=Ur(s),i=On(e).match(t);if(!i)return null;const r={};return n.forEach((o,a)=>{r[o]=decodeURIComponent(i[a+1])}),{params:r}}class Vr{constructor({content:e={},foundation:t=null,extensions:n=[],defaultFetcher:i=null,transport:r=null,dev:o=!1}={}){this._foundation=t,this._extensions=n,this._defaultFetcher=i,this._transport=r,this._dev=o,this.dataStore=new $r,this.fetcher=new Ls({foundation:t,extensions:n,dataStore:this.dataStore,defaultFetcher:i,transport:r,dev:o}),this.entityStore=new jr({website:this}),this._state=null,this.name="",this.description="",this.url="",this._layoutSets={},this.notFoundPage=null,this._dynamicPageData=new Map,this._dynamicPageCache=new Map,this.pages=[],this.activePage=null,this.pageRoutes=[],this.themeData={},this.config={},this.seo={},this.keywords=null,this.siteDefaultLocale="en",this.defaultLocale="en",this.activeLocale="en",this.locales=[],this.activeLang="en",this.langs=[],this._routeTranslations={},this.basePath="",this.versionedScopes={},this.assets={},this._pageIdMap=new Map,this._applyContent(e),Object.seal(this)}_applyContent(e){const{pages:t=[],theme:n={},config:i={},layouts:r,notFound:o,versionedScopes:a={},assets:l={}}=e||{};if(this.name=i.name||"",this.description=i.description||"",this.url=i.url||"",this._layoutSets={},r&&typeof r=="object")for(const[u,h]of Object.entries(r)){this._layoutSets[u]={};for(const[p,m]of Object.entries(h))m&&(this._layoutSets[u][p]=new Re(m,`layout-${u}-${p}`,this))}const c=o||t.find(u=>u.route==="/404")||null;this.notFoundPage=c?new Re(c,"notFound",this):null;const f=t.filter(u=>u.route!=="/404");this._dynamicPageData=new Map;for(const u of f)(u.isDynamic||u.route?.includes(":"))&&this._dynamicPageData.set(u.route,u);this._dynamicPageCache=new Map,this.pages=f.map((u,h)=>new Re(u,h,this)),this.buildPageHierarchy(),this.activePage=this.pages.find(u=>u.isIndex&&u.getNavRoute()==="/")||this.pages[0]||null,this.pageRoutes=this.pages.map(u=>u.route),this.themeData=n,this.config=i,this.seo=An(i.seo),this.keywords=i.keywords||null,this.siteDefaultLocale=Bt(i),this.defaultLocale=i.domainLocale||this.siteDefaultLocale,this.activeLocale=i.activeLocale||this.defaultLocale,this.locales=this.buildLocalesList(i),this.activeLang=this.activeLocale,this.langs=this.locales.map(u=>({label:u.label||u.code,value:u.code})),this._routeTranslations=this._buildRouteTranslations(i),this.versionedScopes=a,this.assets=l}rebuild({content:e,foundation:t,extensions:n}={}){const i=t!==void 0,r=n!==void 0;return i&&(this._foundation=t),r&&(this._extensions=n),(i||r)&&(this.fetcher=new Ls({foundation:this._foundation,extensions:this._extensions,dataStore:this.dataStore,defaultFetcher:this._defaultFetcher,transport:this._transport,dev:this._dev})),e!==void 0&&this._applyContent(e),this}get state(){return this._state||(this._state=new In),this._state}buildLocalesList(e){const t=Bt(e),n=e.languages||[],i=o=>typeof o=="string"?{code:o}:{code:o.code,...o.label&&{label:o.label}},r=new Map;r.set(t,{code:t});for(const o of n){const a=i(o);if(r.has(a.code)){const l=r.get(a.code);r.set(a.code,{...l,...a})}else r.set(a.code,a)}return Array.from(r.values()).map(o=>({...o,isDefault:o.code===t}))}_buildRouteTranslations(e){const t=e.i18n?.routeTranslations||{},n={};for(const[i,r]of Object.entries(t)){const o=new Map,a=new Map;for(const[l,c]of Object.entries(r))o.set(l,c),a.set(c,l);n[i]={forward:o,reverse:a}}return n}translateRoute(e,t=this.activeLocale){if(!t||t===this.siteDefaultLocale)return e;const n=this._routeTranslations[t];if(!n)return e;const i=n.forward.get(e);if(i)return i;for(const[r,o]of n.forward)if(e.startsWith(r+"/"))return o+e.slice(r.length);return e}reverseTranslateRoute(e,t=this.activeLocale){if(!t||t===this.siteDefaultLocale)return e;const n=this._routeTranslations[t];if(!n)return e;const i=n.reverse.get(e);if(i)return i;for(const[r,o]of n.reverse)if(e.startsWith(r+"/"))return o+e.slice(r.length);return e}buildPageHierarchy(){const e=new Map;for(const t of this.pages)e.set(t.route,t);for(const t of this.pages)if(t.parentRoute){const n=e.get(t.parentRoute);n&&(n.children.push(t),t.parent=n)}for(const t of this.pages){if(t.parent||t.route==="/")continue;const n=t.route.replace(/\/[^/]+$/,"");if(!n||n==="/"||n===t.route)continue;const i=e.get(n);i&&(i.children.push(t),t.parent=i)}this._pageIdMap=new Map;for(const t of this.pages){t.stableId&&this._pageIdMap.set(t.stableId,t);const n=this.normalizeRoute(t.route);if(n&&!this._pageIdMap.has(n)&&this._pageIdMap.set(n,t),t.sourcePath){const i=t.sourcePath.replace(/^\//,"").replace(/\/$/,"");i&&!this._pageIdMap.has(i)&&this._pageIdMap.set(i,t)}}}getPage(e){let t=e;if(this.activeLocale&&this.activeLocale!==this.defaultLocale){const l=`/${this.activeLocale}`;t===l||t===`${l}/`?t="/":t.startsWith(`${l}/`)&&(t=t.slice(l.length))}const n=t==="/"?"/":t.replace(/\/$/,""),i=this.pages.find(l=>l.route===n);if(i){const l=i.children.find(c=>c.isIndex);return l||i}t=this.reverseTranslateRoute(t);const r=t==="/"?"/":t.replace(/\/$/,""),o=this.pages.find(l=>l.route===r);if(o){const l=o.children.find(c=>c.isIndex);return l||o}const a=this.pages.find(l=>l.isIndex&&l.getNavRoute()===r);if(a)return a;if(this._dynamicPageCache.has(r))return this._dynamicPageCache.get(r);for(const l of this.pages){if(!l.route.includes(":"))continue;const c=this._matchDynamicRoute(l.route,r);if(c){const f=this._createDynamicPage(l,r,c.params);if(f){const{page:u,collectionLoaded:h}=f;return h&&this._dynamicPageCache.set(r,u),u}}}}_matchDynamicRoute(e,t){return qr(e,t)}_createDynamicPage(e,t,n){const i=this._dynamicPageData.get(e.route);if(!i)return null;const r=JSON.parse(JSON.stringify(i));r.route=t,r.isDynamic=!1;const o=Object.keys(n)[0],a=Object.values(n)[0],l=i.parentSchema;if(r.dynamicContext={templateRoute:e.route,params:n,paramName:o,paramValue:a,schema:l},r.sections&&Array.isArray(r.sections))for(const h of r.sections)h.dynamicContext=r.dynamicContext;const c=e.route.replace(/\/:[\w]+$/,"")||"/",f=this.pages.find(h=>h.route===c||h.getNavRoute()===c);if(f&&l){const h=f.fetch;let p=[];if(h&&this.fetcher){const d=Array.isArray(h)?h.find(g=>g.schema===l):h.schema===l?h:null;if(d){const g=this.fetcher.peek(d,{website:this});p=Array.isArray(g?.data)?g.data:[]}}const m=p.find(d=>String(d[o])===String(a));m?(m.title&&(r.title=m.title),(m.description||m.excerpt)&&(r.description=m.description||m.excerpt)):p.length>0&&(r.title="Not found",r.notFound=!0),r._collectionLoaded=p.length>0}const u=new Re(r,`dynamic-${t}`,this);return u.parent=e.parent,{page:u,collectionLoaded:r._collectionLoaded??!0}}setActivePage(e){const t=this.getPage(e);t&&(this.activePage=t)}setBasePath(e){!e||e==="/"?this.basePath="":this.basePath=e.endsWith("/")?e.slice(0,-1):e}getRemoteLayout(e){const t=globalThis.uniweb?.foundationConfig;return t?.layouts&&e&&t.layouts[e]?t.layouts[e]:null}getDefaultLayoutName(){return globalThis.uniweb?.foundationConfig?.defaultLayout||null}getDefaultBlockType(){return globalThis.uniweb?.foundationConfig?.defaultSection||"Section"}getAreaBlocks(e,t){return t&&this._layoutSets[t]?this._layoutSets[t][e]?.bodyBlocks||null:this._layoutSets.default&&this._layoutSets.default[e]?.bodyBlocks||null}getLayoutAreas(e){const t=e||"default",n=this._layoutSets[t]||this._layoutSets.default;if(!n)return{};const i={};for(const[r,o]of Object.entries(n))o?.bodyBlocks&&(i[r]=o.bodyBlocks);return i}getLayoutMeta(e){return globalThis.uniweb?.foundationConfig?.layoutMeta?.[e]||null}get viewTransitions(){return globalThis.uniweb.foundationConfig?.viewTransitions!==!1}getRemoteProps(){return globalThis.uniweb?.foundationConfig?.props||null}getRoutingComponents(){return globalThis.uniweb?.routingComponents||{}}makeHref(e){if(!e)return e;let t;if(e.startsWith("page:"))t=e.slice(5);else if(e.startsWith("topic:"))t=e.slice(6);else return e;const[n,i]=t.split("#"),r=this._pageIdMap?.get(n);if(!r)return e;let o=r.route;return i&&(o+=`#section-${i}`),o}resolveDetailPageTemplate(e){if(!e||typeof e!="string")return null;const t=e.startsWith("page:")?e.slice(5):e,n=this._pageIdMap?.get(t);return!n||!n.route?null:this.translateRoute(n.route)}getLanguages(){return this.langs}getLanguage(){return this.activeLang}getLocales(){return this.locales}getActiveLocale(){return this.activeLocale}getDefaultLocale(){return this.defaultLocale}hasMultipleLocales(){return this.locales.length>1}setActiveLocale(e){this.locales.find(n=>n.code===e)&&(this.activeLocale=e,this.activeLang=e)}getLocaleUrl(e,t=null){let n=t||this.activePage.getNavRoute();if(this.activeLocale&&this.activeLocale!==this.defaultLocale){const o=`/${this.activeLocale}`;n===o||n===`${o}/`?n="/":n.startsWith(`${o}/`)&&(n=n.slice(o.length))}n=this.reverseTranslateRoute(n);const i=this.config?.domainLocales;if(i){const o=Object.entries(i).find(([,a])=>a===e);if(o){const a=o[0],l=this.translateRoute(n,e);return`https://${a}${l==="/"?"/":l}`}}if(e===this.defaultLocale)return n;const r=this.translateRoute(n,e);return r==="/"?`/${e}/`:`/${e}${r}`}getLocale(e){return this.locales.find(t=>t.code===e)}localize(e,t="",n="",i=!1){const r=n||this.activeLang,o=this.langs[0]?.value||"en";if(typeof e=="object"&&!Array.isArray(e))return i?e?.[r]||e?.[o]||t:e?.[r]||t;if(typeof e=="string"){if(!e.startsWith("{")&&!e.startsWith('"'))return e;try{const a=JSON.parse(e);return typeof a=="object"?i?a?.[r]||a?.[o]||t:a?.[r]||t:a}catch{return e}}return t}isSearchEnabled(){return this.config?.search?.enabled!==!1}getSearchConfig(){const e=this.config?.search||{};return{enabled:this.isSearchEnabled(),provider:e.provider||"index",endpoint:e.endpoint,indexUrl:this.getSearchIndexUrl(),locale:this.getActiveLocale(),include:{pages:e.include?.pages!==!1,sections:e.include?.sections!==!1,headings:e.include?.headings!==!1,paragraphs:e.include?.paragraphs!==!1,links:e.include?.links!==!1,lists:e.include?.lists!==!1},exclude:{routes:e.exclude?.routes||[],components:e.exclude?.components||[]}}}getSearchIndexUrl(){const e=this.getActiveLocale(),n=e===this.getDefaultLocale()?"/search-index.json":`/${e}/search-index.json`;return`${this.basePath||""}${n}`}getSearchData(){return this.pages.map(e=>({id:e.id,title:e.title,href:e.route,route:e.route,description:e.description,content:e.getPageBlocks().map(t=>t.title).filter(Boolean).join(`
132
132
  `)}))}getPageHierarchy(e={}){const{nested:t=!0,for:n,includeHidden:i=!1,filter:r,sort:o}=e,a=f=>!(f.route.includes(":")||f.isIndex&&f.route.endsWith("/index")||!i&&(f.hidden||f.hideIn?.includes("*")||n&&f.hideIn?.includes(n))||!f.hasContent()&&!f.children?.some(h=>h.isIndex)&&!f.children?.some(a)||r&&!r(f));let l=this.pages.filter(a);t&&(l=l.filter(f=>!f.parent&&!f.parentRoute)),o&&l.sort(o);const c=f=>{const u=f.getNavRoute();return{id:f.id,route:u,navigableRoute:f.getNavigableRoute(),translatedRoute:this.translateRoute(u),title:f.getTitle(),label:f.getLabel(),description:f.description,hasContent:f.hasContent(),version:f.version||null,children:t&&f.hasChildren()?f.children.filter(a).map(c):[]}};return l.map(c)}getBranchHierarchy({route:e="",for:t,includeHidden:n=!1}={}){const i=l=>(l||"").replace(/^\/+/,"").replace(/\/+$/,""),r=this.getPageHierarchy({for:t,includeHidden:n}),o=i(e).split("/")[0];if(!o)return r;const a=r.find(l=>i(l.route)===o);return a?a.children?.length?a.children:[a]:r}getHeaderPages(){return this.getPageHierarchy({for:"header"})}getFooterPages(){return this.getPageHierarchy({for:"footer"})}getAllPages(e=!1){return this.getPageHierarchy({nested:!1,includeHidden:e})}getNotFoundPage(){return this.notFoundPage}getActiveRoute(){return this.activePage.getNormalizedRoute()}getActiveRootSegment(){return this.getActiveRoute().split("/")[0]}normalizeRoute(e){let t=(e||"").replace(/^\/+/,"").replace(/\/+$/,"");if(this.activeLocale&&this.activeLocale!==this.defaultLocale){const r=this.activeLocale;t===r?t="":t.startsWith(`${r}/`)&&(t=t.slice(r.length+1))}const n="/"+t;return t=this.reverseTranslateRoute(n).replace(/^\//,""),t}isRouteActive(e,t){return this.normalizeRoute(e)===this.normalizeRoute(t)}isRouteActiveOrAncestor(e,t){const n=this.normalizeRoute(e),i=this.normalizeRoute(t);return n===i?!0:n===""?!1:i.startsWith(n+"/")}getVersionedScopes(){return this.versionedScopes}hasVersionedContent(){return Object.keys(this.versionedScopes).length>0}getVersionScope(e){const t=e||"";for(const n of Object.keys(this.versionedScopes)){if(t===n)return n;if(n==="/"){if(t.startsWith("/")||t==="")return n}else if(t.startsWith(n+"/"))return n}return null}isVersionedRoute(e){return this.getVersionScope(e)!==null}getVersionMeta(e){return this.versionedScopes[e]||null}getPageVersion(e){return e?.version||null}getVersionsForRoute(e){const t=this.getVersionScope(e);return t?this.versionedScopes[t]?.versions||[]:[]}getVersionUrl(e,t){const n=this.getVersionScope(t);if(!n)return null;const i=this.versionedScopes[n];if(!i)return null;const r=i.versions.find(l=>l.id===e);if(!r)return null;const o=n==="/"?t:t.slice(n.length);let a=o;for(const l of i.versions){const c=`/${l.id}`;if(o.startsWith(c+"/")||o===c){a=o.slice(c.length);break}}return r.latest?n==="/"?a:n+a:n==="/"?"/"+e+a:n+"/"+e+a}getLatestVersion(e){return this.versionedScopes[e]?.latestId||null}}const St=typeof window<"u"&&typeof document<"u";class Hr{constructor(e={}){this.endpoint=e.endpoint||null,this.flushInterval=e.flushInterval||5e3,this.maxQueueSize=e.maxQueueSize||10,this.debug=e.debug||!1,this.queue=[],this.scrollMilestones=new Set,this.sessionId=this.generateSessionId(),this.sessionStart=Date.now(),this.flushIntervalId=null,St&&this.isEnabled()&&(this.setupFlushInterval(),this.setupUnloadHandler()),Object.seal(this)}isEnabled(){return!!this.endpoint}generateSessionId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}setupFlushInterval(){this.flushIntervalId=setInterval(()=>{this.flush()},this.flushInterval)}setupUnloadHandler(){const e=()=>{this.flush(!0)};window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e()}),window.addEventListener("pagehide",e)}addToQueue(e,t){if(!this.isEnabled()||!St)return;const n={type:e,data:t,timestamp:Date.now(),sessionId:this.sessionId,url:window.location.href,referrer:document.referrer||null};this.queue.push(n),this.debug&&console.log("[Analytics] Event queued:",n),this.queue.length>=this.maxQueueSize&&this.flush()}trackPageView(e,t,n={}){this.scrollMilestones.clear(),this.addToQueue("pageview",{path:e,title:t,...n})}trackEvent(e,t={}){this.addToQueue("event",{name:e,...t})}trackScrollDepth(e){[25,50,75,100].includes(e)&&(this.scrollMilestones.has(e)||(this.scrollMilestones.add(e),this.addToQueue("scroll_depth",{depth:e})))}flush(e=!1){if(!this.isEnabled()||!St||this.queue.length===0)return;const t=[...this.queue];this.queue=[];const n=JSON.stringify({events:t,sessionId:this.sessionId,sessionDuration:Date.now()-this.sessionStart});if(this.debug&&console.log("[Analytics] Flushing",t.length,"events"),e&&navigator.sendBeacon){const i=new Blob([n],{type:"application/json"});!navigator.sendBeacon(this.endpoint,i)&&this.debug&&console.warn("[Analytics] sendBeacon failed, events may be lost");return}fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:n,keepalive:!0}).catch(i=>{this.debug&&console.warn("[Analytics] Flush failed:",i),this.queue.unshift(...t)})}destroy(){this.flushIntervalId&&clearInterval(this.flushIntervalId),this.flush(!0)}}class Wr{constructor({content:e={},foundation:t=null,extensions:n=[],defaultFetcher:i=null,transport:r=null,dev:o=!1}={}){this.activeWebsite=new Vr({content:e,foundation:t,extensions:n,defaultFetcher:i,transport:r,dev:o}),this.foundation=t,this.foundationConfig={},this.meta=t?.default?.meta||{},this.extensions=[],t?.default?.capabilities&&(this.foundationConfig={...t.default.capabilities}),t?.default?.layoutMeta&&(this.foundationConfig.layoutMeta=t.default.layoutMeta),t?.default?.handlers&&(this.foundationConfig.handlers=t.default.handlers),t?.default?.viewTransitions!==void 0&&(this.foundationConfig.viewTransitions=t.default.viewTransitions);for(const a of n)this._wireExtension(a);this.childBlockRenderer=null,this.routingComponents={},this.language="en",this.defaultInsets=null,this.iconResolver=null,this.iconCache=new Map,this.analytics=new Hr(e?.analytics||e?.config?.analytics||{}),Object.seal(this)}_wireExtension(e){const t=e?.default?.meta||{};this.extensions.push({foundation:e,meta:t})}async resolveIcon(e,t){return this.iconResolver?this.iconResolver(e,t):(console.warn("[Uniweb] No icon resolver configured"),null)}getIconSync(e,t){return this.iconCache.get(`${e}:${t}`)||null}getComponentMeta(e){const t=this.meta[e];if(t)return t;for(const n of this.extensions){const i=n.meta[e];if(i)return i}return null}getComponentDefaults(e){return this.getComponentMeta(e)?.defaults||{}}getComponent(e){if(!this.foundation){console.warn("[Runtime] No foundation loaded");return}const t=this.foundation[e];if(t)return t;for(const n of this.extensions){const i=n.foundation[e];if(i)return i}if(this.defaultInsets&&this.defaultInsets[e])return this.defaultInsets[e]}listComponents(){const e=new Set;if(this.foundation)for(const t of Object.keys(this.foundation))t!=="default"&&e.add(t);for(const t of this.extensions)for(const n of Object.keys(t.foundation))n!=="default"&&e.add(n);return[...e]}}const zr=[50,100,200,300,400,500,600,700,800,900,950],_t=["light","medium","dark"];class po{constructor(e={}){this._data=e,this._palettes=e.palettes||e.colors||{},this._rawColors=e.colors||{},this._contexts=e.contexts||{},this._fonts=e.fonts||{},this._appearance=e.appearance||{default:"light"},this._foundationVars=e.foundationVars||{},this._css=e.css||null,Object.seal(this)}get css(){return this._css}get data(){return this._data}getColor(e,t=500){const n=this._palettes[e];return n&&n[t]||null}getPalette(e){return this._palettes[e]||null}getPaletteNames(){return Object.keys(this._palettes)}hasPalette(e){return e in this._palettes}getColorVar(e,t=500){return`var(--${e}-${t})`}getContextClass(e){return _t.includes(e)?`context-${e}`:(console.warn(`Invalid context: ${e}. Using 'light'.`),"context-light")}isValidContext(e){return _t.includes(e)}getValidContexts(){return[..._t]}getAppearance(){return{default:this._appearance.default||"light",allowToggle:this._appearance.allowToggle||!1,respectSystemPreference:this._appearance.respectSystemPreference??!0,schemes:this._appearance.schemes||["light"]}}getDefaultScheme(){return this._appearance.default||"light"}supportsScheme(e){return(this._appearance.schemes||["light"]).includes(e)}hasSchemeToggle(){return this._appearance.allowToggle===!0}getSchemeClass(e){return`scheme-${e}`}getFonts(){return{...this._fonts}}getFont(e){return this._fonts[e]||null}getFontVar(e){return`var(--font-${e})`}getFoundationVar(e){const t=this._foundationVars[e];return t?typeof t=="object"?t.default:t:null}getFoundationVars(){const e={};for(const[t,n]of Object.entries(this._foundationVars))e[t]=typeof n=="object"?n.default:n;return e}getFoundationVarRef(e){return`var(--${e})`}getShadeLevels(){return[...zr]}hasCustomization(){return Object.keys(this._palettes).length>0||Object.keys(this._contexts).length>0||Object.keys(this._fonts).length>0}toJSON(){return{palettes:this._palettes,colors:this._rawColors,contexts:this._contexts,fonts:this._fonts,appearance:this._appearance,foundationVars:this._foundationVars}}}function go(s={}){return!!(s.allowToggle||s.default==="dark"||s.default==="system"||s.schemes?.includes("dark"))}const Jr=new Set(["eq","ne","gt","gte","lt","lte","in","nin","like","exists"]);function He(s,e){if(s==null)return!0;if(typeof s!="object"||Array.isArray(s)||e==null||typeof e!="object")return!1;for(const t of Object.keys(s))if(!Gr(t,s[t],e))return!1;return!0}function mo(s,e){return Array.isArray(e)?s==null?e.slice():e.filter(t=>He(s,t)):[]}function Gr(s,e,t){if(s==="and")return Array.isArray(e)?e.every(i=>He(i,t)):!1;if(s==="or")return Array.isArray(e)?e.some(i=>He(i,t)):!1;if(s==="not")return!He(e,t);const n=Zr(t,s);return e===null?n==null:typeof e=="object"&&!Array.isArray(e)&&Yr(e)?Qr(e,n):ke(n,e)}function Yr(s){if(s==null||typeof s!="object"||Array.isArray(s))return!1;const e=Object.keys(s);return e.length===0?!1:e.every(t=>Jr.has(t))}function Qr(s,e){for(const t of Object.keys(s))if(!Xr(t,s[t],e))return!1;return!0}function Xr(s,e,t){switch(s){case"eq":return ke(t,e);case"ne":return!ke(t,e);case"gt":return Fe(t,e)&&t>e;case"gte":return Fe(t,e)&&t>=e;case"lt":return Fe(t,e)&&t<e;case"lte":return Fe(t,e)&&t<=e;case"in":return Array.isArray(e)?e.some(n=>ke(t,n)):!1;case"nin":return Array.isArray(e)?!e.some(n=>ke(t,n)):!1;case"like":return typeof t!="string"||typeof e!="string"?!1:eo(e,t);case"exists":return!!t==!!e;default:return!1}}function ke(s,e){return s===e?!0:s==null||e==null?!1:Array.isArray(s)&&!Array.isArray(e)?s.some(t=>t===e):!1}function Fe(s,e){return s==null||e==null?!1:typeof s==typeof e}function Zr(s,e){if(typeof e!="string")return;if(e.indexOf(".")===-1)return s[e];let t=s;for(const n of e.split(".")){if(t==null||typeof t!="object")return;t=t[n]}return t}function eo(s,e){const t="^"+s.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".")+"$";return new RegExp(t).test(e)}function yo(s){return!s||typeof s!="object"?!1:!!(Array.isArray(s.fields)||s.isComposite===!0||s.childSchema&&typeof s.childSchema=="object")}function bo(s){if(!s||typeof s!="object"||Array.isArray(s))return null;if(Array.isArray(s.fields)||s.isComposite===!0||s.childSchema)return s;if(s.sections!==void 0)return null;const e=i=>Object.entries(i).map(([r,o])=>typeof o=="string"?{id:r,type:o}:{id:r,...o});if(s.fields&&typeof s.fields=="object"){const{fields:i,...r}=s;return{...r,fields:e(i)}}const t=Object.entries(s);if(!t.length)return null;const n=([,i])=>i&&typeof i=="object"&&!Array.isArray(i)&&i.type!==void 0;return t.every(n)?{fields:e(s)}:null}const Qe={name:"json-body",canPush:new Set(["where","limit","sort"]),defaultEnvelope:null,encode(s,{method:e,pushCandidates:t,rename:n}){const i=new Set,r=[];let o=null;if(e==="GET")t.has("where")&&s.where!==void 0&&(r.push([se("where","_where",n),JSON.stringify(s.where)]),i.add("where")),t.has("limit")&&s.limit!==void 0&&(r.push([se("limit","_limit",n),String(s.limit)]),i.add("limit")),t.has("sort")&&s.sort!==void 0&&(r.push([se("sort","_sort",n),String(s.sort)]),i.add("sort"));else if(e==="POST"){const a={};t.has("where")&&s.where!==void 0&&(a[se("where","where",n)]=s.where,i.add("where")),t.has("limit")&&s.limit!==void 0&&(a[se("limit","limit",n)]=s.limit,i.add("limit")),t.has("sort")&&s.sort!==void 0&&(a[se("sort","sort",n)]=s.sort,i.add("sort")),Object.keys(a).length>0&&(o=a)}return{queryParams:r,bodyMerge:o,pushed:i}}};function se(s,e,t){return t&&typeof t[s]=="string"&&t[s].length>0?t[s]:e}const $s={name:"flat-query",canPush:new Set(["where","limit","sort"]),defaultEnvelope:null,encode(s,{method:e,pushCandidates:t,rename:n}){const i=new Set,r=[];if(e!=="GET")return{queryParams:r,bodyMerge:null,pushed:i};if(t.has("where")&&s.where!==void 0){const o=to(s.where);if(o!==null){for(const[a,l]of o)r.push([no(a),l]);i.add("where")}}if(t.has("limit")&&s.limit!==void 0&&(r.push([Cs("limit","limit",n),String(s.limit)]),i.add("limit")),t.has("sort")&&s.sort!==void 0){const o=so(s.sort);o!==null&&(r.push([Cs("sort","sort",n),o]),i.add("sort"))}return{queryParams:r,bodyMerge:null,pushed:i}}};function to(s){if(!s||typeof s!="object"||Array.isArray(s))return null;const e=[];for(const[t,n]of Object.entries(s)){if(t==="and"||t==="or"||t==="not"||t.includes("."))return null;if(Ns(n)){e.push([t,Os(n)]);continue}if(n&&typeof n=="object"&&!Array.isArray(n)){const i=Object.keys(n);if(i.length===1&&i[0]==="eq"&&Ns(n.eq)){e.push([t,Os(n.eq)]);continue}}return null}return e}function so(s){if(typeof s!="string"||s.length===0)return null;const e=s.split(",").map(n=>n.trim()).filter(Boolean);if(e.length===0)return null;const t=[];for(const n of e){const[i,r]=n.split(/\s+/);if(!i)return null;const o=(r||"asc").toLowerCase()==="desc";t.push(o?`-${i}`:i)}return t.join(",")}function Ns(s){if(s===null)return!0;const e=typeof s;return e==="string"||e==="number"||e==="boolean"}function Os(s){return s===null?"":String(s)}function Cs(s,e,t){return t&&typeof t[s]=="string"&&t[s].length>0?t[s]:e}function no(s,e){return s}const Ts={name:"strapi",canPush:new Set(["where","limit","sort"]),defaultEnvelope:{collection:"data",item:"data"},encode(s,{method:e,pushCandidates:t,rename:n}){const i=new Set,r=[];if(e!=="GET")return{queryParams:r,bodyMerge:null,pushed:i};if(t.has("where")&&s.where!==void 0){const o=At("where","filters",n),a=ro(s.where,o);if(a!==null){for(const l of a)r.push(l);i.add("where")}}if(t.has("limit")&&s.limit!==void 0){const o=At("limit","pagination[limit]",n);r.push([o,String(s.limit)]),i.add("limit")}if(t.has("sort")&&s.sort!==void 0){const o=ao(s.sort,At("sort","sort",n));if(o!==null){for(const a of o)r.push(a);i.add("sort")}}return{queryParams:r,bodyMerge:null,pushed:i}}},io={eq:"[$eq]",ne:"[$ne]",gt:"[$gt]",gte:"[$gte]",lt:"[$lt]",lte:"[$lte]",in:"[$in]",nin:"[$notIn]",like:"[$containsi]",exists:"[$notNull]"};function ro(s,e){const t=[];try{jt(s,[e],t)}catch(n){if(n&&n.unencodable)return null;throw n}return t.length>0?t:null}function jt(s,e,t){(!s||typeof s!="object"||Array.isArray(s))&&G();for(const[n,i]of Object.entries(s))n==="and"||n==="or"?(Array.isArray(i)||G(),i.forEach((r,o)=>{jt(r,[...e,`[$${n}]`,`[${o}]`],t)})):n==="not"?jt(i,[...e,"[$not]"],t):oo(n,i,e,t)}function oo(s,e,t,n){const i=s.split(".").map(o=>`[${o}]`),r=[...t,...i];if(vt(e)){n.push([Ke(r)+"[$eq]",It(e)]);return}if(e&&typeof e=="object"&&!Array.isArray(e)){for(const[o,a]of Object.entries(e)){const l=io[o];if(l||G(),o==="in"||o==="nin"){Array.isArray(a)||G(),a.forEach((c,f)=>{vt(c)||G(),n.push([Ke(r)+l+`[${f}]`,It(c)])});continue}if(o==="exists"){const c=!!a;n.push([Ke(r)+(c?"[$notNull]":"[$null]"),"true"]);continue}vt(a)||G(),n.push([Ke(r)+l,It(a)])}return}G()}function Ke(s){return s.join("")}function G(){const s=new Error("unencodable predicate");throw s.unencodable=!0,s}function ao(s,e){if(typeof s!="string"||s.length===0)return null;const t=s.split(",").map(i=>i.trim()).filter(Boolean);if(t.length===0)return null;const n=[];for(const i of t){const[r,o]=i.split(/\s+/);if(!r)return null;const a=(o||"asc").toLowerCase()==="desc"?"desc":"asc";n.push(`${r}:${a}`)}return n.length===1?[[e,n[0]]]:n.map((i,r)=>[`${e}[${r}]`,i])}function vt(s){if(s===null)return!0;const e=typeof s;return e==="string"||e==="number"||e==="boolean"}function It(s){return s===null?"":String(s)}function At(s,e,t){return t&&typeof t[s]=="string"&&t[s].length>0?t[s]:e}const xt=new Map([[Qe.name,Qe],[$s.name,$s],[Ts.name,Ts]]);function wo(s,{dev:e=!1}={}){if(!s)return Qe;const t=xt.get(s);return t||(e&&!Es.has(s)&&(Es.add(s),console.warn(`[default-fetcher] unknown request style "${s}"; falling back to "json-body". Known styles: ${[...xt.keys()].join(", ")}.`)),Qe)}const Es=new Set;function ko(){return[...xt.keys()]}function So(){return globalThis.uniweb}function _o(s,e=null,t=[],{defaultFetcher:n=null,transport:i=null,dev:r=!1}={}){const o=new Wr({content:s,foundation:e,extensions:t,defaultFetcher:n,transport:i,dev:r});return globalThis.uniweb=o,o}export{K as B,Ln as D,jr as E,Ls as F,In as O,Re as P,po as T,Wr as U,Vr as W,yo as a,ts as b,_o as c,Lr as d,$r as e,fo as f,lo as g,go as h,co as i,uo as j,He as k,So as l,mo as m,Ss as n,Cr as o,Rr as p,ko as q,wo as r,Ie as s,Mt as t,bo as u,Or as v,Bt as w,Dr as x,ho as y};
133
- //# sourceMappingURL=core-BI26Dvfl.js.map
@@ -1,2 +1 @@
1
1
  var A={exports:{}},n={};var N;function J(){if(N)return n;N=1;var E=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),U=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),D=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),S=Symbol.iterator;function G(t){return t===null||typeof t!="object"?null:(t=S&&t[S]||t["@@iterator"],typeof t=="function"?t:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,g={};function a(t,e,u){this.props=t,this.context=e,this.refs=g,this.updater=u||h}a.prototype.isReactComponent={},a.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},a.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function H(){}H.prototype=a.prototype;function y(t,e,u){this.props=t,this.context=e,this.refs=g,this.updater=u||h}var v=y.prototype=new H;v.constructor=y,w(v,a.prototype),v.isPureReactComponent=!0;var O=Array.isArray;function R(){}var f={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function T(t,e,u){var r=u.ref;return{$$typeof:E,type:t,key:e,ref:r!==void 0?r:null,props:u}}function K(t,e){return T(t.type,e,t.props)}function m(t){return typeof t=="object"&&t!==null&&t.$$typeof===E}function B(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(u){return e[u]})}var j=/\/+/g;function C(t,e){return typeof t=="object"&&t!==null&&t.key!=null?B(""+t.key):e.toString(36)}function W(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(R,R):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function _(t,e,u,r,o){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(s){case"bigint":case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case E:case I:i=!0;break;case d:return i=t._init,_(i(t._payload),e,u,r,o)}}if(i)return o=o(t),i=r===""?"."+C(t,0):r,O(o)?(u="",i!=null&&(u=i.replace(j,"$&/")+"/"),_(o,e,u,"",function(Z){return Z})):o!=null&&(m(o)&&(o=K(o,u+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(j,"$&/")+"/")+i)),e.push(o)),1;i=0;var p=r===""?".":r+":";if(O(t))for(var c=0;c<t.length;c++)r=t[c],s=p+C(r,c),i+=_(r,e,u,s,o);else if(c=G(t),typeof c=="function")for(t=c.call(t),c=0;!(r=t.next()).done;)r=r.value,s=p+C(r,c++),i+=_(r,e,u,s,o);else if(s==="object"){if(typeof t.then=="function")return _(W(t),e,u,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return i}function l(t,e,u){if(t==null)return t;var r=[],o=0;return _(t,r,"","",function(s){return e.call(u,s,o++)}),r}function Q(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(u){(t._status===0||t._status===-1)&&(t._status=1,t._result=u)},function(u){(t._status===0||t._status===-1)&&(t._status=2,t._result=u)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var $=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},X={map:l,forEach:function(t,e,u){l(t,function(){e.apply(this,arguments)},u)},count:function(t){var e=0;return l(t,function(){e++}),e},toArray:function(t){return l(t,function(e){return e})||[]},only:function(t){if(!m(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};return n.Activity=z,n.Children=X,n.Component=a,n.Fragment=M,n.Profiler=L,n.PureComponent=y,n.StrictMode=x,n.Suspense=b,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,n.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}},n.cache=function(t){return function(){return t.apply(null,arguments)}},n.cacheSignal=function(){return null},n.cloneElement=function(t,e,u){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var r=w({},t.props),o=t.key;if(e!=null)for(s in e.key!==void 0&&(o=""+e.key),e)!P.call(e,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&e.ref===void 0||(r[s]=e[s]);var s=arguments.length-2;if(s===1)r.children=u;else if(1<s){for(var i=Array(s),p=0;p<s;p++)i[p]=arguments[p+2];r.children=i}return T(t.type,o,r)},n.createContext=function(t){return t={$$typeof:U,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:k,_context:t},t},n.createElement=function(t,e,u){var r,o={},s=null;if(e!=null)for(r in e.key!==void 0&&(s=""+e.key),e)P.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var i=arguments.length-2;if(i===1)o.children=u;else if(1<i){for(var p=Array(i),c=0;c<i;c++)p[c]=arguments[c+2];o.children=p}if(t&&t.defaultProps)for(r in i=t.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return T(t,s,o)},n.createRef=function(){return{current:null}},n.forwardRef=function(t){return{$$typeof:q,render:t}},n.isValidElement=m,n.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:Q}},n.memo=function(t,e){return{$$typeof:D,type:t,compare:e===void 0?null:e}},n.startTransition=function(t){var e=f.T,u={};f.T=u;try{var r=t(),o=f.S;o!==null&&o(u,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(R,$)}catch(s){$(s)}finally{e!==null&&u.types!==null&&(e.types=u.types),f.T=e}},n.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()},n.use=function(t){return f.H.use(t)},n.useActionState=function(t,e,u){return f.H.useActionState(t,e,u)},n.useCallback=function(t,e){return f.H.useCallback(t,e)},n.useContext=function(t){return f.H.useContext(t)},n.useDebugValue=function(){},n.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)},n.useEffect=function(t,e){return f.H.useEffect(t,e)},n.useEffectEvent=function(t){return f.H.useEffectEvent(t)},n.useId=function(){return f.H.useId()},n.useImperativeHandle=function(t,e,u){return f.H.useImperativeHandle(t,e,u)},n.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)},n.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)},n.useMemo=function(t,e){return f.H.useMemo(t,e)},n.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)},n.useReducer=function(t,e,u){return f.H.useReducer(t,e,u)},n.useRef=function(t){return f.H.useRef(t)},n.useState=function(t){return f.H.useState(t)},n.useSyncExternalStore=function(t,e,u){return f.H.useSyncExternalStore(t,e,u)},n.useTransition=function(){return f.H.useTransition()},n.version="19.2.5",n}var Y;function V(){return Y||(Y=1,A.exports=J()),A.exports}export{V as r};
2
- //# sourceMappingURL=index-CxUeIbEw.js.map
@@ -61,4 +61,3 @@ Error generating stack: `+n.message+`
61
61
  `).replace(Fy,"")}function Rd(t,e){return e=Cd(e),Cd(t)===e}function yt(t,e,l,n,u,i){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Pl(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Pl(t,""+n);break;case"className":Za(t,"class",n);break;case"tabIndex":Za(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Za(t,l,n);break;case"style":Ro(t,n,i);break;case"data":if(e!=="object"){Za(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Ja(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(e!=="input"&&yt(t,e,"name",u.name,u,null),yt(t,e,"formEncType",u.formEncType,u,null),yt(t,e,"formMethod",u.formMethod,u,null),yt(t,e,"formTarget",u.formTarget,u,null)):(yt(t,e,"encType",u.encType,u,null),yt(t,e,"method",u.method,u,null),yt(t,e,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Ja(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=we);break;case"onScroll":n!=null&&P("scroll",t);break;case"onScrollEnd":n!=null&&P("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(f(61));if(l=n.__html,l!=null){if(u.children!=null)throw Error(f(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=Ja(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":P("beforetoggle",t),P("toggle",t),Qa(t,"popover",n);break;case"xlinkActuate":Be(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Be(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Be(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Be(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Be(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Be(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Be(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Be(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Be(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Qa(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Om.get(l)||l,Qa(t,l,n))}}function vf(t,e,l,n,u,i){switch(l){case"style":Ro(t,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(f(61));if(l=n.__html,l!=null){if(u.children!=null)throw Error(f(60));t.innerHTML=l}}break;case"children":typeof n=="string"?Pl(t,n):(typeof n=="number"||typeof n=="bigint")&&Pl(t,""+n);break;case"onScroll":n!=null&&P("scroll",t);break;case"onScrollEnd":n!=null&&P("scrollend",t);break;case"onClick":n!=null&&(t.onclick=we);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!po.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),e=l.slice(2,u?l.length-7:void 0),i=t[$t]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,u),typeof n=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,u);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):Qa(t,l,n)}}}function Qt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":P("error",t),P("load",t);var n=!1,u=!1,i;for(i in l)if(l.hasOwnProperty(i)){var r=l[i];if(r!=null)switch(i){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,e));default:yt(t,e,i,r,l,null)}}u&&yt(t,e,"srcSet",l.srcSet,l,null),n&&yt(t,e,"src",l.src,l,null);return;case"input":P("invalid",t);var h=i=r=u=null,y=null,A=null;for(n in l)if(l.hasOwnProperty(n)){var M=l[n];if(M!=null)switch(n){case"name":u=M;break;case"type":r=M;break;case"checked":y=M;break;case"defaultChecked":A=M;break;case"value":i=M;break;case"defaultValue":h=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(f(137,e));break;default:yt(t,e,n,M,l,null)}}Ao(t,i,h,y,A,r,u,!1);return;case"select":P("invalid",t),n=r=i=null;for(u in l)if(l.hasOwnProperty(u)&&(h=l[u],h!=null))switch(u){case"value":i=h;break;case"defaultValue":r=h;break;case"multiple":n=h;default:yt(t,e,u,h,l,null)}e=i,l=r,t.multiple=!!n,e!=null?Il(t,!!n,e,!1):l!=null&&Il(t,!!n,l,!0);return;case"textarea":P("invalid",t),i=u=n=null;for(r in l)if(l.hasOwnProperty(r)&&(h=l[r],h!=null))switch(r){case"value":n=h;break;case"defaultValue":u=h;break;case"children":i=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(f(91));break;default:yt(t,e,r,h,l,null)}Oo(t,n,u,i);return;case"option":for(y in l)l.hasOwnProperty(y)&&(n=l[y],n!=null)&&(y==="selected"?t.selected=n&&typeof n!="function"&&typeof n!="symbol":yt(t,e,y,n,l,null));return;case"dialog":P("beforetoggle",t),P("toggle",t),P("cancel",t),P("close",t);break;case"iframe":case"object":P("load",t);break;case"video":case"audio":for(n=0;n<pa.length;n++)P(pa[n],t);break;case"image":P("error",t),P("load",t);break;case"details":P("toggle",t);break;case"embed":case"source":case"link":P("error",t),P("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(n=l[A],n!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,e));default:yt(t,e,A,n,l,null)}return;default:if(Mi(e)){for(M in l)l.hasOwnProperty(M)&&(n=l[M],n!==void 0&&vf(t,e,M,n,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(n=l[h],n!=null&&yt(t,e,h,n,l,null))}function Iy(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,i=null,r=null,h=null,y=null,A=null,M=null;for(C in l){var x=l[C];if(l.hasOwnProperty(C)&&x!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":y=x;default:n.hasOwnProperty(C)||yt(t,e,C,null,n,x)}}for(var z in n){var C=n[z];if(x=l[z],n.hasOwnProperty(z)&&(C!=null||x!=null))switch(z){case"type":i=C;break;case"name":u=C;break;case"checked":A=C;break;case"defaultChecked":M=C;break;case"value":r=C;break;case"defaultValue":h=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(f(137,e));break;default:C!==x&&yt(t,e,z,C,n,x)}}Ri(t,r,h,y,A,M,i,u);return;case"select":C=r=h=z=null;for(i in l)if(y=l[i],l.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":C=y;default:n.hasOwnProperty(i)||yt(t,e,i,null,n,y)}for(u in n)if(i=n[u],y=l[u],n.hasOwnProperty(u)&&(i!=null||y!=null))switch(u){case"value":z=i;break;case"defaultValue":h=i;break;case"multiple":r=i;default:i!==y&&yt(t,e,u,i,n,y)}e=h,l=r,n=C,z!=null?Il(t,!!l,z,!1):!!n!=!!l&&(e!=null?Il(t,!!l,e,!0):Il(t,!!l,l?[]:"",!1));return;case"textarea":C=z=null;for(h in l)if(u=l[h],l.hasOwnProperty(h)&&u!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:yt(t,e,h,null,n,u)}for(r in n)if(u=n[r],i=l[r],n.hasOwnProperty(r)&&(u!=null||i!=null))switch(r){case"value":z=u;break;case"defaultValue":C=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(f(91));break;default:u!==i&&yt(t,e,r,u,n,i)}zo(t,z,C);return;case"option":for(var V in l)z=l[V],l.hasOwnProperty(V)&&z!=null&&!n.hasOwnProperty(V)&&(V==="selected"?t.selected=!1:yt(t,e,V,null,n,z));for(y in n)z=n[y],C=l[y],n.hasOwnProperty(y)&&z!==C&&(z!=null||C!=null)&&(y==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":yt(t,e,y,z,n,C));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var K in l)z=l[K],l.hasOwnProperty(K)&&z!=null&&!n.hasOwnProperty(K)&&yt(t,e,K,null,n,z);for(A in n)if(z=n[A],C=l[A],n.hasOwnProperty(A)&&z!==C&&(z!=null||C!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(137,e));break;default:yt(t,e,A,z,n,C)}return;default:if(Mi(e)){for(var vt in l)z=l[vt],l.hasOwnProperty(vt)&&z!==void 0&&!n.hasOwnProperty(vt)&&vf(t,e,vt,void 0,n,z);for(M in n)z=n[M],C=l[M],!n.hasOwnProperty(M)||z===C||z===void 0&&C===void 0||vf(t,e,M,z,n,C);return}}for(var E in l)z=l[E],l.hasOwnProperty(E)&&z!=null&&!n.hasOwnProperty(E)&&yt(t,e,E,null,n,z);for(x in n)z=n[x],C=l[x],!n.hasOwnProperty(x)||z===C||z==null&&C==null||yt(t,e,x,z,n,C)}function Dd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Py(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var u=l[n],i=u.transferSize,r=u.initiatorType,h=u.duration;if(i&&h&&Dd(r)){for(r=0,h=u.responseEnd,n+=1;n<l.length;n++){var y=l[n],A=y.startTime;if(A>h)break;var M=y.transferSize,x=y.initiatorType;M&&Dd(x)&&(y=y.responseEnd,r+=M*(y<h?1:(h-A)/(y-A)))}if(--n,e+=8*(i+r)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var gf=null,pf=null;function Gu(t){return t.nodeType===9?t:t.ownerDocument}function Md(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ud(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function bf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Sf=null;function tv(){var t=window.event;return t&&t.type==="popstate"?t===Sf?!1:(Sf=t,!0):(Sf=null,!1)}var xd=typeof setTimeout=="function"?setTimeout:void 0,ev=typeof clearTimeout=="function"?clearTimeout:void 0,Nd=typeof Promise=="function"?Promise:void 0,lv=typeof queueMicrotask=="function"?queueMicrotask:typeof Nd<"u"?function(t){return Nd.resolve(null).then(t).catch(nv)}:xd;function nv(t){setTimeout(function(){throw t})}function El(t){return t==="head"}function jd(t,e){var l=e,n=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(u),xn(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Sa(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Sa(l);for(var i=l.firstChild;i;){var r=i.nextSibling,h=i.nodeName;i[Ln]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=r}}else l==="body"&&Sa(t.ownerDocument.body);l=u}while(l);xn(e)}function _d(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Ef(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ef(l),Oi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function av(t,e,l,n){for(;t.nodeType===1;){var u=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Ln])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=be(t.nextSibling),t===null)break}return null}function uv(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=be(t.nextSibling),t===null))return null;return t}function Bd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=be(t.nextSibling),t===null))return null;return t}function Tf(t){return t.data==="$?"||t.data==="$~"}function Af(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function iv(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function be(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var zf=null;function wd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return be(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Hd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Ld(t,e,l){switch(e=Gu(l),t){case"html":if(t=e.documentElement,!t)throw Error(f(452));return t;case"head":if(t=e.head,!t)throw Error(f(453));return t;case"body":if(t=e.body,!t)throw Error(f(454));return t;default:throw Error(f(451))}}function Sa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Oi(t)}var Se=new Map,qd=new Set;function Xu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ie=L.d;L.d={f:cv,r:fv,D:ov,C:rv,L:sv,m:dv,X:mv,S:hv,M:yv};function cv(){var t=Ie.f(),e=_u();return t||e}function fv(t){var e=kl(t);e!==null&&e.tag===5&&e.type==="form"?ls(e):Ie.r(t)}var Dn=typeof document>"u"?null:document;function Yd(t,e,l){var n=Dn;if(n&&typeof e=="string"&&e){var u=de(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),qd.has(u)||(qd.add(u),t={rel:t,crossOrigin:l,href:e},n.querySelector(u)===null&&(e=n.createElement("link"),Qt(e,"link",t),Ht(e),n.head.appendChild(e)))}}function ov(t){Ie.D(t),Yd("dns-prefetch",t,null)}function rv(t,e){Ie.C(t,e),Yd("preconnect",t,e)}function sv(t,e,l){Ie.L(t,e,l);var n=Dn;if(n&&t&&e){var u='link[rel="preload"][as="'+de(e)+'"]';e==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+de(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+de(l.imageSizes)+'"]')):u+='[href="'+de(t)+'"]';var i=u;switch(e){case"style":i=Mn(t);break;case"script":i=Un(t)}Se.has(i)||(t=p({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Se.set(i,t),n.querySelector(u)!==null||e==="style"&&n.querySelector(Ea(i))||e==="script"&&n.querySelector(Ta(i))||(e=n.createElement("link"),Qt(e,"link",t),Ht(e),n.head.appendChild(e)))}}function dv(t,e){Ie.m(t,e);var l=Dn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+de(n)+'"][href="'+de(t)+'"]',i=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Un(t)}if(!Se.has(i)&&(t=p({rel:"modulepreload",href:t},e),Se.set(i,t),l.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ta(i)))return}n=l.createElement("link"),Qt(n,"link",t),Ht(n),l.head.appendChild(n)}}}function hv(t,e,l){Ie.S(t,e,l);var n=Dn;if(n&&t){var u=Wl(n).hoistableStyles,i=Mn(t);e=e||"default";var r=u.get(i);if(!r){var h={loading:0,preload:null};if(r=n.querySelector(Ea(i)))h.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Se.get(i))&&Of(t,l);var y=r=n.createElement("link");Ht(y),Qt(y,"link",t),y._p=new Promise(function(A,M){y.onload=A,y.onerror=M}),y.addEventListener("load",function(){h.loading|=1}),y.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Qu(r,e,n)}r={type:"stylesheet",instance:r,count:1,state:h},u.set(i,r)}}}function mv(t,e){Ie.X(t,e);var l=Dn;if(l&&t){var n=Wl(l).hoistableScripts,u=Un(t),i=n.get(u);i||(i=l.querySelector(Ta(u)),i||(t=p({src:t,async:!0},e),(e=Se.get(u))&&Cf(t,e),i=l.createElement("script"),Ht(i),Qt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(u,i))}}function yv(t,e){Ie.M(t,e);var l=Dn;if(l&&t){var n=Wl(l).hoistableScripts,u=Un(t),i=n.get(u);i||(i=l.querySelector(Ta(u)),i||(t=p({src:t,async:!0,type:"module"},e),(e=Se.get(u))&&Cf(t,e),i=l.createElement("script"),Ht(i),Qt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(u,i))}}function Vd(t,e,l,n){var u=(u=el.current)?Xu(u):null;if(!u)throw Error(f(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Mn(l.href),l=Wl(u).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Mn(l.href);var i=Wl(u).hoistableStyles,r=i.get(t);if(r||(u=u.ownerDocument||u,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,r),(i=u.querySelector(Ea(t)))&&!i._p&&(r.instance=i,r.state.loading=5),Se.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Se.set(t,l),i||vv(u,t,l,r.state))),e&&n===null)throw Error(f(528,""));return r}if(e&&n!==null)throw Error(f(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Un(l),l=Wl(u).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,t))}}function Mn(t){return'href="'+de(t)+'"'}function Ea(t){return'link[rel="stylesheet"]['+t+"]"}function Gd(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function vv(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),Qt(e,"link",l),Ht(e),t.head.appendChild(e))}function Un(t){return'[src="'+de(t)+'"]'}function Ta(t){return"script[async]"+t}function Xd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+de(l.href)+'"]');if(n)return e.instance=n,Ht(n),n;var u=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Ht(n),Qt(n,"style",u),Qu(n,l.precedence,t),e.instance=n;case"stylesheet":u=Mn(l.href);var i=t.querySelector(Ea(u));if(i)return e.state.loading|=4,e.instance=i,Ht(i),i;n=Gd(l),(u=Se.get(u))&&Of(n,u),i=(t.ownerDocument||t).createElement("link"),Ht(i);var r=i;return r._p=new Promise(function(h,y){r.onload=h,r.onerror=y}),Qt(i,"link",n),e.state.loading|=4,Qu(i,l.precedence,t),e.instance=i;case"script":return i=Un(l.src),(u=t.querySelector(Ta(i)))?(e.instance=u,Ht(u),u):(n=l,(u=Se.get(i))&&(n=p({},l),Cf(n,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ht(u),Qt(u,"link",n),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(f(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Qu(n,l.precedence,t));return e.instance}function Qu(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,i=u,r=0;r<n.length;r++){var h=n[r];if(h.dataset.precedence===e)i=h;else if(i!==u)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Of(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Cf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Zu=null;function Qd(t,e,l){if(Zu===null){var n=new Map,u=Zu=new Map;u.set(l,n)}else u=Zu,n=u.get(l),n||(n=new Map,u.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),u=0;u<l.length;u++){var i=l[u];if(!(i[Ln]||i[Yt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(e)||"";r=t+r;var h=n.get(r);h?h.push(i):n.set(r,[i])}}return n}function Zd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function gv(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Kd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function pv(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=Mn(n.href),i=e.querySelector(Ea(u));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ku.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Ht(i);return}i=e.ownerDocument||e,n=Gd(n),(u=Se.get(u))&&Of(n,u),i=i.createElement("link"),Ht(i);var r=i;r._p=new Promise(function(h,y){r.onload=h,r.onerror=y}),Qt(i,"link",n),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Ku.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Rf=0;function bv(t,e){return t.stylesheets&&t.count===0&&$u(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&$u(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&Rf===0&&(Rf=62500*Py());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&$u(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>Rf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function Ku(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$u(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ju=null;function $u(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ju=new Map,e.forEach(Sv,t),Ju=null,Ku.call(t))}function Sv(t,e){if(!(e.state.loading&4)){var l=Ju.get(t);if(l)var n=l.get(null);else{l=new Map,Ju.set(t,l);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<u.length;i++){var r=u[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),n=r)}n&&l.set(null,n)}u=e.instance,r=u.getAttribute("data-precedence"),i=l.get(r)||n,i===n&&l.set(null,u),l.set(r,u),this.count++,n=Ku.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),i?i.parentNode.insertBefore(u,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Aa={$$typeof:Y,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Ev(t,e,l,n,u,i,r,h,y){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.hiddenUpdates=Ei(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function Jd(t,e,l,n,u,i,r,h,y,A,M,x){return t=new Ev(t,e,l,r,y,A,M,x,h),e=1,i===!0&&(e|=24),i=ue(3,null,null,e),t.current=i,i.stateNode=t,e=uc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:e},oc(i),t}function $d(t){return t?(t=cn,t):cn}function kd(t,e,l,n,u,i){u=$d(u),n.context===null?n.context=u:n.pendingContext=u,n=rl(e),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=sl(t,n,e),l!==null&&(te(l,t,e),ea(l,t,e))}function Wd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Df(t,e){Wd(t,e),(t=t.alternate)&&Wd(t,e)}function Fd(t){if(t.tag===13||t.tag===31){var e=jl(t,67108864);e!==null&&te(e,t,67108864),Df(t,67108864)}}function Id(t){if(t.tag===13||t.tag===31){var e=re();e=Ti(e);var l=jl(t,e);l!==null&&te(l,t,e),Df(t,e)}}var ku=!0;function Tv(t,e,l,n){var u=D.T;D.T=null;var i=L.p;try{L.p=2,Mf(t,e,l,n)}finally{L.p=i,D.T=u}}function Av(t,e,l,n){var u=D.T;D.T=null;var i=L.p;try{L.p=8,Mf(t,e,l,n)}finally{L.p=i,D.T=u}}function Mf(t,e,l,n){if(ku){var u=Uf(n);if(u===null)yf(t,e,n,Wu,l),th(t,n);else if(Ov(u,t,e,l,n))n.stopPropagation();else if(th(t,n),e&4&&-1<zv.indexOf(t)){for(;u!==null;){var i=kl(u);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=Dl(i.pendingLanes);if(r!==0){var h=i;for(h.pendingLanes|=2,h.entangledLanes|=2;r;){var y=1<<31-ne(r);h.entanglements[1]|=y,r&=~y}je(i),(ft&6)===0&&(Nu=ee()+500,ga(0))}}break;case 31:case 13:h=jl(i,2),h!==null&&te(h,i,2),_u(),Df(i,2)}if(i=Uf(n),i===null&&yf(t,e,n,Wu,l),i===u)break;u=i}u!==null&&n.stopPropagation()}else yf(t,e,n,null,l)}}function Uf(t){return t=xi(t),xf(t)}var Wu=null;function xf(t){if(Wu=null,t=$l(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=m(e),t!==null)return t;t=null}else if(l===31){if(t=v(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Wu=t,null}function Pd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(om()){case io:return 2;case co:return 8;case qa:case rm:return 32;case fo:return 268435456;default:return 32}default:return 32}}var Nf=!1,Tl=null,Al=null,zl=null,za=new Map,Oa=new Map,Ol=[],zv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function th(t,e){switch(t){case"focusin":case"focusout":Tl=null;break;case"dragenter":case"dragleave":Al=null;break;case"mouseover":case"mouseout":zl=null;break;case"pointerover":case"pointerout":za.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oa.delete(e.pointerId)}}function Ca(t,e,l,n,u,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[u]},e!==null&&(e=kl(e),e!==null&&Fd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Ov(t,e,l,n,u){switch(e){case"focusin":return Tl=Ca(Tl,t,e,l,n,u),!0;case"dragenter":return Al=Ca(Al,t,e,l,n,u),!0;case"mouseover":return zl=Ca(zl,t,e,l,n,u),!0;case"pointerover":var i=u.pointerId;return za.set(i,Ca(za.get(i)||null,t,e,l,n,u)),!0;case"gotpointercapture":return i=u.pointerId,Oa.set(i,Ca(Oa.get(i)||null,t,e,l,n,u)),!0}return!1}function eh(t){var e=$l(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=m(l),e!==null){t.blockedOn=e,yo(t.priority,function(){Id(l)});return}}else if(e===31){if(e=v(l),e!==null){t.blockedOn=e,yo(t.priority,function(){Id(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Fu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Uf(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);Ui=n,l.target.dispatchEvent(n),Ui=null}else return e=kl(l),e!==null&&Fd(e),t.blockedOn=l,!1;e.shift()}return!0}function lh(t,e,l){Fu(t)&&l.delete(e)}function Cv(){Nf=!1,Tl!==null&&Fu(Tl)&&(Tl=null),Al!==null&&Fu(Al)&&(Al=null),zl!==null&&Fu(zl)&&(zl=null),za.forEach(lh),Oa.forEach(lh)}function Iu(t,e){t.blockedOn===e&&(t.blockedOn=null,Nf||(Nf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Cv)))}var Pu=null;function nh(t){Pu!==t&&(Pu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Pu===t&&(Pu=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],u=t[e+2];if(typeof n!="function"){if(xf(n||l)===null)continue;break}var i=kl(l);i!==null&&(t.splice(e,3),e-=3,Mc(i,{pending:!0,data:u,method:l.method,action:n},n,u))}}))}function xn(t){function e(y){return Iu(y,t)}Tl!==null&&Iu(Tl,t),Al!==null&&Iu(Al,t),zl!==null&&Iu(zl,t),za.forEach(e),Oa.forEach(e);for(var l=0;l<Ol.length;l++){var n=Ol[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)eh(l),l.blockedOn===null&&Ol.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var u=l[n],i=l[n+1],r=u[$t]||null;if(typeof i=="function")r||nh(l);else if(r){var h=null;if(i&&i.hasAttribute("formAction")){if(u=i,r=i[$t]||null)h=r.formAction;else if(xf(u)!==null)continue}else h=r.action;typeof h=="function"?l[n+1]=h:(l.splice(n,3),n-=3),nh(l)}}}function ah(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return u=r})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function jf(t){this._internalRoot=t}ti.prototype.render=jf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(f(409));var l=e.current,n=re();kd(l,n,t,e,null,null)},ti.prototype.unmount=jf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;kd(t.current,2,null,t,null,null),_u(),e[Jl]=null}};function ti(t){this._internalRoot=t}ti.prototype.unstable_scheduleHydration=function(t){if(t){var e=mo();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Ol.length&&e!==0&&e<Ol[l].priority;l++);Ol.splice(l,0,t),l===0&&eh(t)}};var uh=c.version;if(uh!=="19.2.5")throw Error(f(527,uh,"19.2.5"));L.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(f(188)):(t=Object.keys(t).join(","),Error(f(268,t)));return t=S(e),t=t!==null?R(t):null,t=t===null?null:t.stateNode,t};var Rv={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{Bn=ei.inject(Rv),le=ei}catch{}}return Da.createRoot=function(t,e){if(!s(t))throw Error(f(299));var l=!1,n="",u=ds,i=hs,r=ms;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=Jd(t,1,!1,null,null,l,n,null,u,i,r,ah),t[Jl]=e.current,mf(t),new jf(e)},Da.hydrateRoot=function(t,e,l){if(!s(t))throw Error(f(299));var n=!1,u="",i=ds,r=hs,h=ms,y=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),e=Jd(t,1,!0,e,l??null,n,u,y,i,r,h,ah),e.context=$d(null),l=e.current,n=re(),n=Ti(n),u=rl(n),u.callback=null,sl(l,u,n),l=n,e.current.lanes=l,Hn(e,l),je(e),t[Jl]=e.current,mf(t),new ti(e)},Da.version="19.2.5",Da}var dh;function A0(){if(dh)return wf.exports;dh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(c){console.error(c)}}return a(),wf.exports=T0(),wf.exports}var hh=A0();const jh=new Set(["where","limit","sort"]);function z0({basePath:a="",config:c={},dev:o=!1}={}){const f=a&&a!=="/"?a.replace(/\/$/,""):"",s=typeof c?.baseUrl=="string"?c.baseUrl.replace(/\/$/,""):"",d=x0(c?.headers),m=C0(c?.supports),v=c?.request&&typeof c.request=="object"?c.request:{},b=typeof v.style=="string"?v.style:null,S=xv(b,{dev:o}),R=O0(v.rename,S,{dev:o}),p=c?.envelope&&typeof c.envelope=="object"?c.envelope:null,N={...S.defaultEnvelope||{},...p||{}};return{cacheKey(j){const B=xh(j),_={};for(const w of m)S.canPush.has(w)&&j[w]!==void 0&&(_[w]=j[w]);return Object.keys(_).length===0&&S.name==="json-body"?B:B+"::style="+S.name+"::"+JSON.stringify(_)},async resolve(j,B={}){if(!j)return{data:null};const{path:_,url:w,transform:q,body:H}=j;let Y=(j.method||"GET").toUpperCase();Y!=="GET"&&Y!=="POST"&&(console.warn(`[default-fetcher] method "${j.method}" is not supported — falling back to GET.`),Y="GET");let W,lt;if(_)W=f&&_.startsWith("/")&&!_.startsWith("//")?f+_:_,lt=!1;else if(w)W=j0(w)?w:_0(s,w),lt=!0;else return{data:[],error:"No path or url specified"};const at={signal:B.signal,method:Y},dt={};lt&&d&&Object.assign(dt,d);const bt=new Set;if(lt)for(const ct of jh)m.has(ct)&&S.canPush.has(ct)&&j[ct]!==void 0&&j[ct]!==null&&bt.add(ct);const At=bt.size>0?S.encode(j,{method:Y,pushCandidates:bt,rename:R}):{queryParams:[],bodyMerge:null,pushed:new Set},Jt=At.pushed;if(At.queryParams.length>0&&Y==="GET"&&(W=R0(W,At.queryParams)),Y==="POST"){const ct=j.dynamicContext,qt=H!=null&&ct&&ct.paramName?Nv(H,{[ct.paramName]:ct.paramValue},{encode:!1}):H,Zt=D0(qt,At.bodyMerge);Zt!==null&&(N0(dt,"Content-Type")||(dt["Content-Type"]="application/json"),at.body=typeof Zt=="string"?Zt:JSON.stringify(Zt))}Object.keys(dt).length&&(at.headers=dt);try{const ct=await fetch(W,at),Zt=(j.envelope&&typeof j.envelope=="object"?j.envelope:null)??N;if(!ct.ok){let Q;if(Zt.error)try{const gt=await ct.text(),ht=B0(gt);if(ht!==void 0){const _t=oi(ht,Zt.error);typeof _t=="string"&&_t.length&&(Q=_t)}}catch{}return{data:[],error:Q??`HTTP ${ct.status}: ${ct.statusText}`}}const F=ct.headers.get("content-type")||"";let J;if(F.includes("application/json"))J=await ct.json();else{const Q=await ct.text();try{J=JSON.parse(Q)}catch{J=Q}}const D=!!j.dynamicContext,L=q||(D?Zt.item:Zt.collection);return L&&J!==null&&J!==void 0&&(J=oi(J,L)),J=M0(J,j,Jt),{data:J??[]}}catch(ct){return ct?.name==="AbortError"?{data:[],error:"aborted"}:{data:[],error:ct?.message||String(ct)}}}}}function O0(a,c,{dev:o}){if(!a||typeof a!="object"||Array.isArray(a))return null;const f={};for(const[s,d]of Object.entries(a))typeof d!="string"||d.length===0||(o&&!c.canPush.has(s)&&!mh.has(s)&&(mh.add(s),console.warn(`[default-fetcher] request.rename: operator "${s}" is not pushed by style "${c.name}" — rename has no effect. Known operators for this style: ${[...c.canPush].join(", ")||"(none)"}.`)),f[s]=d);return Object.keys(f).length?f:null}const mh=new Set;function C0(a){const c=new Set;if(!Array.isArray(a))return c;for(const o of a)typeof o=="string"&&(jh.has(o)?c.add(o):yh.has(o)||(yh.add(o),console.warn(`[default-fetcher] supports: unknown operator "${o}" — ignored.`)));return c}const yh=new Set;function R0(a,c){if(!c||c.length===0)return a;const o=c.map(([s,d])=>encodeURIComponent(s)+"="+encodeURIComponent(d)),f=a.includes("?")?"&":"?";return a+f+o.join("&")}function D0(a,c){return c?typeof a=="string"?a:{...a&&typeof a=="object"?a:{},...c}:a===void 0?null:a}function M0(a,c,o){if(!Array.isArray(a))return a;let f=a;return c.where&&!o.has("where")&&(f=jv(c.where,f)),c.sort&&!o.has("sort")&&(f=U0(f,c.sort)),typeof c.limit=="number"&&c.limit>0&&!o.has("limit")&&(f=f.slice(0,c.limit)),f}function U0(a,c){const o=String(c).split(",").map(f=>{const[s,d="asc"]=f.trim().split(/\s+/);return{field:s,desc:d.toLowerCase()==="desc"}});return[...a].sort((f,s)=>{for(const{field:d,desc:m}of o){const v=oi(f,d)??"",b=oi(s,d)??"";if(v<b)return m?1:-1;if(v>b)return m?-1:1}return 0})}function x0(a){if(!a||typeof a!="object"||Array.isArray(a))return null;const c={};for(const[o,f]of Object.entries(a))f!=null&&(c[o]=String(f));return Object.keys(c).length?c:null}function N0(a,c){const o=c.toLowerCase();return Object.keys(a).some(f=>f.toLowerCase()===o)}function j0(a){return typeof a!="string"?!1:a.startsWith("//")?!0:/^[a-z][a-z0-9+.-]*:\/\//i.test(a)}function _0(a,c){return a?c.startsWith("/")?a+c:a+"/"+c:c}function oi(a,c){if(!a||!c)return a;let o=a;for(const f of c.split(".")){if(o==null)return;o=o[f]}return o}function B0(a){try{return JSON.parse(a)}catch{return}}var vh="popstate";function w0(a={}){function c(f,s){let{pathname:d,search:m,hash:v}=f.location;return Qf("",{pathname:d,search:m,hash:v},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function o(f,s){return typeof s=="string"?s:Na(s)}return L0(c,o,null,a)}function Ot(a,c){if(a===!1||a===null||typeof a>"u")throw new Error(c)}function Re(a,c){if(!a){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function H0(){return Math.random().toString(36).substring(2,10)}function gh(a,c){return{usr:a.state,key:a.key,idx:c}}function Qf(a,c,o=null,f){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof c=="string"?Nn(c):c,state:o,key:c&&c.key||f||H0()}}function Na({pathname:a="/",search:c="",hash:o=""}){return c&&c!=="?"&&(a+=c.charAt(0)==="?"?c:"?"+c),o&&o!=="#"&&(a+=o.charAt(0)==="#"?o:"#"+o),a}function Nn(a){let c={};if(a){let o=a.indexOf("#");o>=0&&(c.hash=a.substring(o),a=a.substring(0,o));let f=a.indexOf("?");f>=0&&(c.search=a.substring(f),a=a.substring(0,f)),a&&(c.pathname=a)}return c}function L0(a,c,o,f={}){let{window:s=document.defaultView,v5Compat:d=!1}=f,m=s.history,v="POP",b=null,S=R();S==null&&(S=0,m.replaceState({...m.state,idx:S},""));function R(){return(m.state||{idx:null}).idx}function p(){v="POP";let w=R(),q=w==null?null:w-S;S=w,b&&b({action:v,location:_.location,delta:q})}function N(w,q){v="PUSH";let H=Qf(_.location,w,q);S=R()+1;let Y=gh(H,S),W=_.createHref(H);try{m.pushState(Y,"",W)}catch(lt){if(lt instanceof DOMException&&lt.name==="DataCloneError")throw lt;s.location.assign(W)}d&&b&&b({action:v,location:_.location,delta:1})}function j(w,q){v="REPLACE";let H=Qf(_.location,w,q);S=R();let Y=gh(H,S),W=_.createHref(H);m.replaceState(Y,"",W),d&&b&&b({action:v,location:_.location,delta:0})}function B(w){return q0(w)}let _={get action(){return v},get location(){return a(s,m)},listen(w){if(b)throw new Error("A history only accepts one active listener");return s.addEventListener(vh,p),b=w,()=>{s.removeEventListener(vh,p),b=null}},createHref(w){return c(s,w)},createURL:B,encodeLocation(w){let q=B(w);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:N,replace:j,go(w){return m.go(w)}};return _}function q0(a,c=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ot(o,"No window.location.(origin|href) available to create URL");let f=typeof a=="string"?a:Na(a);return f=f.replace(/ $/,"%20"),!c&&f.startsWith("//")&&(f=o+f),new URL(f,o)}function _h(a,c,o="/"){return Y0(a,c,o,!1)}function Y0(a,c,o,f){let s=typeof c=="string"?Nn(c):c,d=tl(s.pathname||"/",o);if(d==null)return null;let m=Bh(a);V0(m);let v=null;for(let b=0;v==null&&b<m.length;++b){let S=I0(d);v=W0(m[b],S,f)}return v}function Bh(a,c=[],o=[],f="",s=!1){let d=(m,v,b=s,S)=>{let R={relativePath:S===void 0?m.path||"":S,caseSensitive:m.caseSensitive===!0,childrenIndex:v,route:m};if(R.relativePath.startsWith("/")){if(!R.relativePath.startsWith(f)&&b)return;Ot(R.relativePath.startsWith(f),`Absolute route path "${R.relativePath}" nested under path "${f}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),R.relativePath=R.relativePath.slice(f.length)}let p=Pe([f,R.relativePath]),N=o.concat(R);m.children&&m.children.length>0&&(Ot(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Bh(m.children,c,N,p,b)),!(m.path==null&&!m.index)&&c.push({path:p,score:$0(p,m.index),routesMeta:N})};return a.forEach((m,v)=>{if(m.path===""||!m.path?.includes("?"))d(m,v);else for(let b of wh(m.path))d(m,v,!0,b)}),c}function wh(a){let c=a.split("/");if(c.length===0)return[];let[o,...f]=c,s=o.endsWith("?"),d=o.replace(/\?$/,"");if(f.length===0)return s?[d,""]:[d];let m=wh(f.join("/")),v=[];return v.push(...m.map(b=>b===""?d:[d,b].join("/"))),s&&v.push(...m),v.map(b=>a.startsWith("/")&&b===""?"/":b)}function V0(a){a.sort((c,o)=>c.score!==o.score?o.score-c.score:k0(c.routesMeta.map(f=>f.childrenIndex),o.routesMeta.map(f=>f.childrenIndex)))}var G0=/^:[\w-]+$/,X0=3,Q0=2,Z0=1,K0=10,J0=-2,ph=a=>a==="*";function $0(a,c){let o=a.split("/"),f=o.length;return o.some(ph)&&(f+=J0),c&&(f+=Q0),o.filter(s=>!ph(s)).reduce((s,d)=>s+(G0.test(d)?X0:d===""?Z0:K0),f)}function k0(a,c){return a.length===c.length&&a.slice(0,-1).every((f,s)=>f===c[s])?a[a.length-1]-c[c.length-1]:0}function W0(a,c,o=!1){let{routesMeta:f}=a,s={},d="/",m=[];for(let v=0;v<f.length;++v){let b=f[v],S=v===f.length-1,R=d==="/"?c:c.slice(d.length)||"/",p=ri({path:b.relativePath,caseSensitive:b.caseSensitive,end:S},R),N=b.route;if(!p&&S&&o&&!f[f.length-1].route.index&&(p=ri({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},R)),!p)return null;Object.assign(s,p.params),m.push({params:s,pathname:Pe([d,p.pathname]),pathnameBase:lg(Pe([d,p.pathnameBase])),route:N}),p.pathnameBase!=="/"&&(d=Pe([d,p.pathnameBase]))}return m}function ri(a,c){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[o,f]=F0(a.path,a.caseSensitive,a.end),s=c.match(o);if(!s)return null;let d=s[0],m=d.replace(/(.)\/+$/,"$1"),v=s.slice(1);return{params:f.reduce((S,{paramName:R,isOptional:p},N)=>{if(R==="*"){let B=v[N]||"";m=d.slice(0,d.length-B.length).replace(/(.)\/+$/,"$1")}const j=v[N];return p&&!j?S[R]=void 0:S[R]=(j||"").replace(/%2F/g,"/"),S},{}),pathname:d,pathnameBase:m,pattern:a}}function F0(a,c=!1,o=!0){Re(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let f=[],s="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,v,b)=>(f.push({paramName:v,isOptional:b!=null}),b?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(f.push({paramName:"*"}),s+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?s+="\\/*$":a!==""&&a!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,c?void 0:"i"),f]}function I0(a){try{return a.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return Re(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),a}}function tl(a,c){if(c==="/")return a;if(!a.toLowerCase().startsWith(c.toLowerCase()))return null;let o=c.endsWith("/")?c.length-1:c.length,f=a.charAt(o);return f&&f!=="/"?null:a.slice(o)||"/"}var Hh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P0=a=>Hh.test(a);function tg(a,c="/"){let{pathname:o,search:f="",hash:s=""}=typeof a=="string"?Nn(a):a,d;if(o)if(P0(o))d=o;else{if(o.includes("//")){let m=o;o=o.replace(/\/\/+/g,"/"),Re(!1,`Pathnames cannot have embedded double slashes - normalizing ${m} -> ${o}`)}o.startsWith("/")?d=bh(o.substring(1),"/"):d=bh(o,c)}else d=c;return{pathname:d,search:ng(f),hash:ag(s)}}function bh(a,c){let o=c.replace(/\/+$/,"").split("/");return a.split("/").forEach(s=>{s===".."?o.length>1&&o.pop():s!=="."&&o.push(s)}),o.length>1?o.join("/"):"/"}function qf(a,c,o,f){return`Cannot include a '${a}' character in a manually specified \`to.${c}\` field [${JSON.stringify(f)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function eg(a){return a.filter((c,o)=>o===0||c.route.path&&c.route.path.length>0)}function Lh(a){let c=eg(a);return c.map((o,f)=>f===c.length-1?o.pathname:o.pathnameBase)}function qh(a,c,o,f=!1){let s;typeof a=="string"?s=Nn(a):(s={...a},Ot(!s.pathname||!s.pathname.includes("?"),qf("?","pathname","search",s)),Ot(!s.pathname||!s.pathname.includes("#"),qf("#","pathname","hash",s)),Ot(!s.search||!s.search.includes("#"),qf("#","search","hash",s)));let d=a===""||s.pathname==="",m=d?"/":s.pathname,v;if(m==null)v=o;else{let p=c.length-1;if(!f&&m.startsWith("..")){let N=m.split("/");for(;N[0]==="..";)N.shift(),p-=1;s.pathname=N.join("/")}v=p>=0?c[p]:"/"}let b=tg(s,v),S=m&&m!=="/"&&m.endsWith("/"),R=(d||m===".")&&o.endsWith("/");return!b.pathname.endsWith("/")&&(S||R)&&(b.pathname+="/"),b}var Pe=a=>a.join("/").replace(/\/\/+/g,"/"),lg=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),ng=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,ag=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,ug=class{constructor(a,c,o,f=!1){this.status=a,this.statusText=c||"",this.internal=f,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function ig(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function cg(a){return a.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Yh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vh(a,c){let o=a;if(typeof o!="string"||!Hh.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let f=o,s=!1;if(Yh)try{let d=new URL(window.location.href),m=o.startsWith("//")?new URL(d.protocol+o):new URL(o),v=tl(m.pathname,c);m.origin===d.origin&&v!=null?o=v+m.search+m.hash:s=!0}catch{Re(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:f,isExternal:s,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Gh=["POST","PUT","PATCH","DELETE"];new Set(Gh);var fg=["GET",...Gh];new Set(fg);var jn=O.createContext(null);jn.displayName="DataRouter";var di=O.createContext(null);di.displayName="DataRouterState";var og=O.createContext(!1),Xh=O.createContext({isTransitioning:!1});Xh.displayName="ViewTransition";var rg=O.createContext(new Map);rg.displayName="Fetchers";var sg=O.createContext(null);sg.displayName="Await";var Te=O.createContext(null);Te.displayName="Navigation";var _n=O.createContext(null);_n.displayName="Location";var _e=O.createContext({outlet:null,matches:[],isDataRoute:!1});_e.displayName="Route";var Ff=O.createContext(null);Ff.displayName="RouteError";var Qh="REACT_ROUTER_ERROR",dg="REDIRECT",hg="ROUTE_ERROR_RESPONSE";function mg(a){if(a.startsWith(`${Qh}:${dg}:{`))try{let c=JSON.parse(a.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function yg(a){if(a.startsWith(`${Qh}:${hg}:{`))try{let c=JSON.parse(a.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new ug(c.status,c.statusText,c.data)}catch{}}function vg(a,{relative:c}={}){Ot(ja(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:f}=O.useContext(Te),{hash:s,pathname:d,search:m}=Ba(a,{relative:c}),v=d;return o!=="/"&&(v=d==="/"?o:Pe([o,d])),f.createHref({pathname:v,search:m,hash:s})}function ja(){return O.useContext(_n)!=null}function De(){return Ot(ja(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(_n).location}function gg(){return O.useContext(_n).navigationType}var Zh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kh(a){O.useContext(Te).static||O.useLayoutEffect(a)}function _a(){let{isDataRoute:a}=O.useContext(_e);return a?xg():pg()}function pg(){Ot(ja(),"useNavigate() may be used only in the context of a <Router> component.");let a=O.useContext(jn),{basename:c,navigator:o}=O.useContext(Te),{matches:f}=O.useContext(_e),{pathname:s}=De(),d=JSON.stringify(Lh(f)),m=O.useRef(!1);return Kh(()=>{m.current=!0}),O.useCallback((b,S={})=>{if(Re(m.current,Zh),!m.current)return;if(typeof b=="number"){o.go(b);return}let R=qh(b,JSON.parse(d),s,S.relative==="path");a==null&&c!=="/"&&(R.pathname=R.pathname==="/"?c:Pe([c,R.pathname])),(S.replace?o.replace:o.push)(R,S.state,S)},[c,o,d,s,a])}O.createContext(null);function bg(){let{matches:a}=O.useContext(_e),c=a[a.length-1];return c?c.params:{}}function Ba(a,{relative:c}={}){let{matches:o}=O.useContext(_e),{pathname:f}=De(),s=JSON.stringify(Lh(o));return O.useMemo(()=>qh(a,JSON.parse(s),f,c==="path"),[a,s,f,c])}function Sg(a,c){return Jh(a,c)}function Jh(a,c,o,f,s){Ot(ja(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=O.useContext(Te),{matches:m}=O.useContext(_e),v=m[m.length-1],b=v?v.params:{},S=v?v.pathname:"/",R=v?v.pathnameBase:"/",p=v&&v.route;{let H=p&&p.path||"";kh(S,!p||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${S}" (under <Route path="${H}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
62
62
 
63
63
  Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let N=De(),j;if(c){let H=typeof c=="string"?Nn(c):c;Ot(R==="/"||H.pathname?.startsWith(R),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${R}" but pathname "${H.pathname}" was given in the \`location\` prop.`),j=H}else j=N;let B=j.pathname||"/",_=B;if(R!=="/"){let H=R.replace(/^\//,"").split("/");_="/"+B.replace(/^\//,"").split("/").slice(H.length).join("/")}let w=_h(a,{pathname:_});Re(p||w!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),Re(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let q=Og(w&&w.map(H=>Object.assign({},H,{params:Object.assign({},b,H.params),pathname:Pe([R,d.encodeLocation?d.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?R:Pe([R,d.encodeLocation?d.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),m,o,f,s);return c&&q?O.createElement(_n.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...j},navigationType:"POP"}},q):q}function Eg(){let a=Ug(),c=ig(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,f="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:f},d={padding:"2px 4px",backgroundColor:f},m=null;return console.error("Error handled by React Router default ErrorBoundary:",a),m=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:d},"ErrorBoundary")," or"," ",O.createElement("code",{style:d},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},c),o?O.createElement("pre",{style:s},o):null,m)}var Tg=O.createElement(Eg,null),$h=class extends O.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,c){return c.location!==a.location||c.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:c.error,location:c.location,revalidation:a.revalidation||c.revalidation}}componentDidCatch(a,c){this.props.onError?this.props.onError(a,c):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const o=yg(a.digest);o&&(a=o)}let c=a!==void 0?O.createElement(_e.Provider,{value:this.props.routeContext},O.createElement(Ff.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?O.createElement(Ag,{error:a},c):c}};$h.contextType=og;var Yf=new WeakMap;function Ag({children:a,error:c}){let{basename:o}=O.useContext(Te);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let f=mg(c.digest);if(f){let s=Yf.get(c);if(s)throw s;let d=Vh(f.location,o);if(Yh&&!Yf.get(c))if(d.isExternal||f.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:f.replace}));throw Yf.set(c,m),m}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function zg({routeContext:a,match:c,children:o}){let f=O.useContext(jn);return f&&f.static&&f.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=c.route.id),O.createElement(_e.Provider,{value:a},o)}function Og(a,c=[],o=null,f=null,s=null){if(a==null){if(!o)return null;if(o.errors)a=o.matches;else if(c.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let d=a,m=o?.errors;if(m!=null){let R=d.findIndex(p=>p.route.id&&m?.[p.route.id]!==void 0);Ot(R>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,R+1))}let v=!1,b=-1;if(o)for(let R=0;R<d.length;R++){let p=d[R];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(b=R),p.route.id){let{loaderData:N,errors:j}=o,B=p.route.loader&&!N.hasOwnProperty(p.route.id)&&(!j||j[p.route.id]===void 0);if(p.route.lazy||B){v=!0,b>=0?d=d.slice(0,b+1):d=[d[0]];break}}}let S=o&&f?(R,p)=>{f(R,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:cg(o.matches),errorInfo:p})}:void 0;return d.reduceRight((R,p,N)=>{let j,B=!1,_=null,w=null;o&&(j=m&&p.route.id?m[p.route.id]:void 0,_=p.route.errorElement||Tg,v&&(b<0&&N===0?(kh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,w=null):b===N&&(B=!0,w=p.route.hydrateFallbackElement||null)));let q=c.concat(d.slice(0,N+1)),H=()=>{let Y;return j?Y=_:B?Y=w:p.route.Component?Y=O.createElement(p.route.Component,null):p.route.element?Y=p.route.element:Y=R,O.createElement(zg,{match:p,routeContext:{outlet:R,matches:q,isDataRoute:o!=null},children:Y})};return o&&(p.route.ErrorBoundary||p.route.errorElement||N===0)?O.createElement($h,{location:o.location,revalidation:o.revalidation,component:_,error:j,children:H(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:S}):H()},null)}function If(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cg(a){let c=O.useContext(jn);return Ot(c,If(a)),c}function Rg(a){let c=O.useContext(di);return Ot(c,If(a)),c}function Dg(a){let c=O.useContext(_e);return Ot(c,If(a)),c}function Pf(a){let c=Dg(a),o=c.matches[c.matches.length-1];return Ot(o.route.id,`${a} can only be used on routes that contain a unique "id"`),o.route.id}function Mg(){return Pf("useRouteId")}function Ug(){let a=O.useContext(Ff),c=Rg("useRouteError"),o=Pf("useRouteError");return a!==void 0?a:c.errors?.[o]}function xg(){let{router:a}=Cg("useNavigate"),c=Pf("useNavigate"),o=O.useRef(!1);return Kh(()=>{o.current=!0}),O.useCallback(async(s,d={})=>{Re(o.current,Zh),o.current&&(typeof s=="number"?await a.navigate(s):await a.navigate(s,{fromRouteId:c,...d}))},[a,c])}var Sh={};function kh(a,c,o){!c&&!Sh[a]&&(Sh[a]=!0,Re(!1,o))}O.memo(Ng);function Ng({routes:a,future:c,state:o,onError:f}){return Jh(a,void 0,o,f,c)}function Wh(a){Ot(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function jg({basename:a="/",children:c=null,location:o,navigationType:f="POP",navigator:s,static:d=!1,unstable_useTransitions:m}){Ot(!ja(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=a.replace(/^\/*/,"/"),b=O.useMemo(()=>({basename:v,navigator:s,static:d,unstable_useTransitions:m,future:{}}),[v,s,d,m]);typeof o=="string"&&(o=Nn(o));let{pathname:S="/",search:R="",hash:p="",state:N=null,key:j="default"}=o,B=O.useMemo(()=>{let _=tl(S,v);return _==null?null:{location:{pathname:_,search:R,hash:p,state:N,key:j},navigationType:f}},[v,S,R,p,N,j,f]);return Re(B!=null,`<Router basename="${v}"> is not able to match the URL "${S}${R}${p}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:O.createElement(Te.Provider,{value:b},O.createElement(_n.Provider,{children:c,value:B}))}function _g({children:a,location:c}){return Sg(Zf(a),c)}function Zf(a,c=[]){let o=[];return O.Children.forEach(a,(f,s)=>{if(!O.isValidElement(f))return;let d=[...c,s];if(f.type===O.Fragment){o.push.apply(o,Zf(f.props.children,d));return}Ot(f.type===Wh,`[${typeof f.type=="string"?f.type:f.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ot(!f.props.index||!f.props.children,"An index route cannot have child routes.");let m={id:f.props.id||d.join("-"),caseSensitive:f.props.caseSensitive,element:f.props.element,Component:f.props.Component,index:f.props.index,path:f.props.path,middleware:f.props.middleware,loader:f.props.loader,action:f.props.action,hydrateFallbackElement:f.props.hydrateFallbackElement,HydrateFallback:f.props.HydrateFallback,errorElement:f.props.errorElement,ErrorBoundary:f.props.ErrorBoundary,hasErrorBoundary:f.props.hasErrorBoundary===!0||f.props.ErrorBoundary!=null||f.props.errorElement!=null,shouldRevalidate:f.props.shouldRevalidate,handle:f.props.handle,lazy:f.props.lazy};f.props.children&&(m.children=Zf(f.props.children,d)),o.push(m)}),o}var ii="get",ci="application/x-www-form-urlencoded";function hi(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Bg(a){return hi(a)&&a.tagName.toLowerCase()==="button"}function wg(a){return hi(a)&&a.tagName.toLowerCase()==="form"}function Hg(a){return hi(a)&&a.tagName.toLowerCase()==="input"}function Lg(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function qg(a,c){return a.button===0&&(!c||c==="_self")&&!Lg(a)}var ni=null;function Yg(){if(ni===null)try{new FormData(document.createElement("form"),0),ni=!1}catch{ni=!0}return ni}var Vg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vf(a){return a!=null&&!Vg.has(a)?(Re(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ci}"`),null):a}function Gg(a,c){let o,f,s,d,m;if(wg(a)){let v=a.getAttribute("action");f=v?tl(v,c):null,o=a.getAttribute("method")||ii,s=Vf(a.getAttribute("enctype"))||ci,d=new FormData(a)}else if(Bg(a)||Hg(a)&&(a.type==="submit"||a.type==="image")){let v=a.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=a.getAttribute("formaction")||v.getAttribute("action");if(f=b?tl(b,c):null,o=a.getAttribute("formmethod")||v.getAttribute("method")||ii,s=Vf(a.getAttribute("formenctype"))||Vf(v.getAttribute("enctype"))||ci,d=new FormData(v,a),!Yg()){let{name:S,type:R,value:p}=a;if(R==="image"){let N=S?`${S}.`:"";d.append(`${N}x`,"0"),d.append(`${N}y`,"0")}else S&&d.append(S,p)}}else{if(hi(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ii,f=null,s=ci,m=a}return d&&s==="text/plain"&&(m=d,d=void 0),{action:f,method:o.toLowerCase(),encType:s,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function to(a,c){if(a===!1||a===null||typeof a>"u")throw new Error(c)}function Xg(a,c,o,f){let s=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return o?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${f}`:s.pathname=`${s.pathname}.${f}`:s.pathname==="/"?s.pathname=`_root.${f}`:c&&tl(s.pathname,c)==="/"?s.pathname=`${c.replace(/\/$/,"")}/_root.${f}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${f}`,s}async function Qg(a,c){if(a.id in c)return c[a.id];try{let o=await import(a.module);return c[a.id]=o,o}catch(o){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zg(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function Kg(a,c,o){let f=await Promise.all(a.map(async s=>{let d=c.routes[s.route.id];if(d){let m=await Qg(d,o);return m.links?m.links():[]}return[]}));return Wg(f.flat(1).filter(Zg).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Eh(a,c,o,f,s,d){let m=(b,S)=>o[S]?b.route.id!==o[S].route.id:!0,v=(b,S)=>o[S].pathname!==b.pathname||o[S].route.path?.endsWith("*")&&o[S].params["*"]!==b.params["*"];return d==="assets"?c.filter((b,S)=>m(b,S)||v(b,S)):d==="data"?c.filter((b,S)=>{let R=f.routes[b.route.id];if(!R||!R.hasLoader)return!1;if(m(b,S)||v(b,S))return!0;if(b.route.shouldRevalidate){let p=b.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Jg(a,c,{includeHydrateFallback:o}={}){return $g(a.map(f=>{let s=c.routes[f.route.id];if(!s)return[];let d=[s.module];return s.clientActionModule&&(d=d.concat(s.clientActionModule)),s.clientLoaderModule&&(d=d.concat(s.clientLoaderModule)),o&&s.hydrateFallbackModule&&(d=d.concat(s.hydrateFallbackModule)),s.imports&&(d=d.concat(s.imports)),d}).flat(1))}function $g(a){return[...new Set(a)]}function kg(a){let c={},o=Object.keys(a).sort();for(let f of o)c[f]=a[f];return c}function Wg(a,c){let o=new Set;return new Set(c),a.reduce((f,s)=>{let d=JSON.stringify(kg(s));return o.has(d)||(o.add(d),f.push({key:d,link:s})),f},[])}function Fh(){let a=O.useContext(jn);return to(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function Fg(){let a=O.useContext(di);return to(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var eo=O.createContext(void 0);eo.displayName="FrameworkContext";function Ih(){let a=O.useContext(eo);return to(a,"You must render this element inside a <HydratedRouter> element"),a}function Ig(a,c){let o=O.useContext(eo),[f,s]=O.useState(!1),[d,m]=O.useState(!1),{onFocus:v,onBlur:b,onMouseEnter:S,onMouseLeave:R,onTouchStart:p}=c,N=O.useRef(null);O.useEffect(()=>{if(a==="render"&&m(!0),a==="viewport"){let _=q=>{q.forEach(H=>{m(H.isIntersecting)})},w=new IntersectionObserver(_,{threshold:.5});return N.current&&w.observe(N.current),()=>{w.disconnect()}}},[a]),O.useEffect(()=>{if(f){let _=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(_)}}},[f]);let j=()=>{s(!0)},B=()=>{s(!1),m(!1)};return o?a!=="intent"?[d,N,{}]:[d,N,{onFocus:Ma(v,j),onBlur:Ma(b,B),onMouseEnter:Ma(S,j),onMouseLeave:Ma(R,B),onTouchStart:Ma(p,j)}]:[!1,N,{}]}function Ma(a,c){return o=>{a&&a(o),o.defaultPrevented||c(o)}}function Pg({page:a,...c}){let{router:o}=Fh(),f=O.useMemo(()=>_h(o.routes,a,o.basename),[o.routes,a,o.basename]);return f?O.createElement(ep,{page:a,matches:f,...c}):null}function tp(a){let{manifest:c,routeModules:o}=Ih(),[f,s]=O.useState([]);return O.useEffect(()=>{let d=!1;return Kg(a,c,o).then(m=>{d||s(m)}),()=>{d=!0}},[a,c,o]),f}function ep({page:a,matches:c,...o}){let f=De(),{future:s,manifest:d,routeModules:m}=Ih(),{basename:v}=Fh(),{loaderData:b,matches:S}=Fg(),R=O.useMemo(()=>Eh(a,c,S,d,f,"data"),[a,c,S,d,f]),p=O.useMemo(()=>Eh(a,c,S,d,f,"assets"),[a,c,S,d,f]),N=O.useMemo(()=>{if(a===f.pathname+f.search+f.hash)return[];let _=new Set,w=!1;if(c.forEach(H=>{let Y=d.routes[H.route.id];!Y||!Y.hasLoader||(!R.some(W=>W.route.id===H.route.id)&&H.route.id in b&&m[H.route.id]?.shouldRevalidate||Y.hasClientLoader?w=!0:_.add(H.route.id))}),_.size===0)return[];let q=Xg(a,v,s.unstable_trailingSlashAwareDataRequests,"data");return w&&_.size>0&&q.searchParams.set("_routes",c.filter(H=>_.has(H.route.id)).map(H=>H.route.id).join(",")),[q.pathname+q.search]},[v,s.unstable_trailingSlashAwareDataRequests,b,f,d,R,c,a,m]),j=O.useMemo(()=>Jg(p,d),[p,d]),B=tp(p);return O.createElement(O.Fragment,null,N.map(_=>O.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...o})),j.map(_=>O.createElement("link",{key:_,rel:"modulepreload",href:_,...o})),B.map(({key:_,link:w})=>O.createElement("link",{key:_,nonce:o.nonce,...w})))}function lp(...a){return c=>{a.forEach(o=>{typeof o=="function"?o(c):o!=null&&(o.current=c)})}}var np=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{np&&(window.__reactRouterVersion="7.12.0")}catch{}function ap({basename:a,children:c,unstable_useTransitions:o,window:f}){let s=O.useRef();s.current==null&&(s.current=w0({window:f,v5Compat:!0}));let d=s.current,[m,v]=O.useState({action:d.action,location:d.location}),b=O.useCallback(S=>{o===!1?v(S):O.startTransition(()=>v(S))},[o]);return O.useLayoutEffect(()=>d.listen(b),[d,b]),O.createElement(jg,{basename:a,children:c,location:m.location,navigationType:m.action,navigator:d,unstable_useTransitions:o})}var Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lo=O.forwardRef(function({onClick:c,discover:o="render",prefetch:f="none",relative:s,reloadDocument:d,replace:m,state:v,target:b,to:S,preventScrollReset:R,viewTransition:p,unstable_defaultShouldRevalidate:N,...j},B){let{basename:_,unstable_useTransitions:w}=O.useContext(Te),q=typeof S=="string"&&Ph.test(S),H=Vh(S,_);S=H.to;let Y=vg(S,{relative:s}),[W,lt,at]=Ig(f,j),dt=fp(S,{replace:m,state:v,target:b,preventScrollReset:R,relative:s,viewTransition:p,unstable_defaultShouldRevalidate:N,unstable_useTransitions:w});function bt(Jt){c&&c(Jt),Jt.defaultPrevented||dt(Jt)}let At=O.createElement("a",{...j,...at,href:H.absoluteURL||Y,onClick:H.isExternal||d?c:bt,ref:lp(B,lt),target:b,"data-discover":!q&&o==="render"?"true":void 0});return W&&!q?O.createElement(O.Fragment,null,At,O.createElement(Pg,{page:Y})):At});lo.displayName="Link";var up=O.forwardRef(function({"aria-current":c="page",caseSensitive:o=!1,className:f="",end:s=!1,style:d,to:m,viewTransition:v,children:b,...S},R){let p=Ba(m,{relative:S.relative}),N=De(),j=O.useContext(di),{navigator:B,basename:_}=O.useContext(Te),w=j!=null&&hp(p)&&v===!0,q=B.encodeLocation?B.encodeLocation(p).pathname:p.pathname,H=N.pathname,Y=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;o||(H=H.toLowerCase(),Y=Y?Y.toLowerCase():null,q=q.toLowerCase()),Y&&_&&(Y=tl(Y,_)||Y);const W=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let lt=H===q||!s&&H.startsWith(q)&&H.charAt(W)==="/",at=Y!=null&&(Y===q||!s&&Y.startsWith(q)&&Y.charAt(q.length)==="/"),dt={isActive:lt,isPending:at,isTransitioning:w},bt=lt?c:void 0,At;typeof f=="function"?At=f(dt):At=[f,lt?"active":null,at?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Jt=typeof d=="function"?d(dt):d;return O.createElement(lo,{...S,"aria-current":bt,className:At,ref:R,style:Jt,to:m,viewTransition:v},typeof b=="function"?b(dt):b)});up.displayName="NavLink";var ip=O.forwardRef(({discover:a="render",fetcherKey:c,navigate:o,reloadDocument:f,replace:s,state:d,method:m=ii,action:v,onSubmit:b,relative:S,preventScrollReset:R,viewTransition:p,unstable_defaultShouldRevalidate:N,...j},B)=>{let{unstable_useTransitions:_}=O.useContext(Te),w=sp(),q=dp(v,{relative:S}),H=m.toLowerCase()==="get"?"get":"post",Y=typeof v=="string"&&Ph.test(v),W=lt=>{if(b&&b(lt),lt.defaultPrevented)return;lt.preventDefault();let at=lt.nativeEvent.submitter,dt=at?.getAttribute("formmethod")||m,bt=()=>w(at||lt.currentTarget,{fetcherKey:c,method:dt,navigate:o,replace:s,state:d,relative:S,preventScrollReset:R,viewTransition:p,unstable_defaultShouldRevalidate:N});_&&o!==!1?O.startTransition(()=>bt()):bt()};return O.createElement("form",{ref:B,method:H,action:q,onSubmit:f?b:W,...j,"data-discover":!Y&&a==="render"?"true":void 0})});ip.displayName="Form";function cp(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tm(a){let c=O.useContext(jn);return Ot(c,cp(a)),c}function fp(a,{target:c,replace:o,state:f,preventScrollReset:s,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:v,unstable_useTransitions:b}={}){let S=_a(),R=De(),p=Ba(a,{relative:d});return O.useCallback(N=>{if(qg(N,c)){N.preventDefault();let j=o!==void 0?o:Na(R)===Na(p),B=()=>S(a,{replace:j,state:f,preventScrollReset:s,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:v});b?O.startTransition(()=>B()):B()}},[R,S,p,o,f,c,a,s,d,m,v,b])}var op=0,rp=()=>`__${String(++op)}__`;function sp(){let{router:a}=tm("useSubmit"),{basename:c}=O.useContext(Te),o=Mg(),f=a.fetch,s=a.navigate;return O.useCallback(async(d,m={})=>{let{action:v,method:b,encType:S,formData:R,body:p}=Gg(d,c);if(m.navigate===!1){let N=m.fetcherKey||rp();await f(N,o,m.action||v,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:R,body:p,formMethod:m.method||b,formEncType:m.encType||S,flushSync:m.flushSync})}else await s(m.action||v,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:R,body:p,formMethod:m.method||b,formEncType:m.encType||S,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[f,s,c,o])}function dp(a,{relative:c}={}){let{basename:o}=O.useContext(Te),f=O.useContext(_e);Ot(f,"useFormAction must be used inside a RouteContext");let[s]=f.matches.slice(-1),d={...Ba(a||".",{relative:c})},m=De();if(a==null){d.search=m.search;let v=new URLSearchParams(d.search),b=v.getAll("index");if(b.some(R=>R==="")){v.delete("index"),b.filter(p=>p).forEach(p=>v.append("index",p));let R=v.toString();d.search=R?`?${R}`:""}}return(!a||a===".")&&s.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Pe([o,d.pathname])),Na(d)}function hp(a,{relative:c}={}){let o=O.useContext(Xh);Ot(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:f}=tm("useViewTransitionState"),s=Ba(a,{relative:c});if(!o.isTransitioning)return!1;let d=tl(o.currentLocation.pathname,f)||o.currentLocation.pathname,m=tl(o.nextLocation.pathname,f)||o.nextLocation.pathname;return ri(s.pathname,m)!=null||ri(s.pathname,d)!=null}const Th="section-";function mp(a){if(!a)return`${Th}unknown`;const c=a.stableId||a.id;return`${Th}${c==null||c===""?"unknown":c}`}function yp(a){return{title:a.title||"",pretitle:a.pretitle||"",subtitle:a.subtitle||"",paragraphs:a.paragraphs||[],links:a.links||[],images:a.images||[],lists:a.lists||[],icons:a.icons||[],videos:a.videos||[],snippets:a.snippets||[],buttons:a.buttons||[],data:a.data||{},cards:a.cards||[],documents:a.documents||[],forms:a.forms||[],quotes:a.quotes||[],headings:a.headings||[],...a.math&&a.math.length?{math:a.math}:{}}}function vp(a){const c=a||{};return{title:c.title||"",pretitle:c.pretitle||"",subtitle:c.subtitle||"",alignment:c.alignment||null,paragraphs:c.paragraphs||[],links:c.links||[],images:c.images||[],lists:c.lists||[],icons:c.icons||[],videos:c.videos||[],insets:c.insets||[],snippets:c.snippets||[],buttons:c.buttons||[],data:c.data||{},cards:c.cards||[],documents:c.documents||[],forms:c.forms||[],quotes:c.quotes||[],headings:c.headings||[],...c.math&&c.math.length?{math:c.math}:{},items:(c.items||[]).map(yp),sequence:c.sequence||[],raw:c.raw}}function si(a,c){if(!a||typeof a!="object"||Array.isArray(a))return a;const o={...a};for(const[f,s]of Object.entries(c)){const d=typeof s=="object"?s.default:void 0;if(o[f]===void 0&&d!==void 0&&(o[f]=d),typeof s=="object"&&(Array.isArray(s.enum)&&o[f]!==void 0&&!s.enum.includes(o[f])&&d!==void 0&&(o[f]=d),s.type==="object"&&s.fields&&o[f]&&(o[f]=si(o[f],s.fields)),s.type==="array"&&s.items&&Array.isArray(o[f]))){const m=s.items;m&&typeof m=="object"&&m.type==="object"&&m.fields&&(o[f]=o[f].map(v=>si(v,m.fields)))}}return o}function gp(a,c){return Array.isArray(a)?a.map(o=>si(o,c)):si(a,c)}function Ua(a,c){if(!a||typeof a!="object"||Array.isArray(a)||!Array.isArray(c))return a;const o={...a};for(const f of c){if(!f||typeof f!="object"||!f.id)continue;const s=f.id;o[s]===void 0&&f.default!==void 0&&(o[s]=f.default),f.type==="form"&&f.childSchema&&Array.isArray(o[s])?o[s]=o[s].map(d=>Ua(d,f.childSchema.fields)):(f.type==="nestedObject"||f.type==="object")&&Array.isArray(f.fields)&&o[s]&&typeof o[s]=="object"&&(o[s]=Ua(o[s],f.fields))}return o}function pp(a,c){if(a==null)return a;if(c.isComposite&&c.childSchema){const o=c.childSchema.fields,f=c.childCollection;if(f&&a&&typeof a=="object"&&!Array.isArray(a)){const s=Array.isArray(a[f])?a[f]:[];return{...a,[f]:s.map(d=>Ua(d,o))}}return Array.isArray(a)?a.map(s=>Ua(s,o)):a}return Array.isArray(c.fields)?Ua(a,c.fields):a}function bp(a,c){if(!c||!a||typeof a!="object")return a||{};const o={...a};for(const[f,s]of Object.entries(a)){const d=c[f];d&&(o[f]=_v(d)?pp(s,d):gp(s,d))}return o}function Sp(a,c){return!c||Object.keys(c).length===0?a||{}:{...c,...a||{}}}function Ep(a,c){if(!c)return;const o=a.parsedContent.data||{};let f=!1;const s={...o};for(const d of Object.keys(c))s[d]===void 0&&(s[d]=c[d],f=!0);f&&(a.parsedContent.data=s)}function Tp(a){if(a.dataLoading)return;const c=globalThis.uniweb?.foundationConfig?.handlers?.data;if(typeof c=="function")try{const o=c(a.parsedContent.data,a);o!=null&&o!==a.parsedContent.data&&(a.parsedContent.data=o)}catch(o){console.error("Foundation data handler failed:",o)}}function Ap(a){if(a.dataLoading)return;const c=globalThis.uniweb?.foundationConfig?.handlers?.content;if(typeof c=="function"&&!(!a.rawContent||Object.keys(a.rawContent).length===0))try{const o=c(a.parsedContent.data,a);if(!o||o===a.rawContent)return;const f=a.parseContent(o);f.data=a.parsedContent.data,a.parsedContent=f,a.items=f.items||[]}catch(o){console.error("Foundation content handler failed:",o)}}function zp(a,c,o){const f=globalThis.uniweb?.foundationConfig?.handlers?.props;if(typeof f!="function")return null;try{const s=f(a,c,o);if(s&&typeof s=="object")return s}catch(s){console.error("Foundation props handler failed:",s)}return null}function Op(a,c,o=null){Ep(a,o),Tp(a),Ap(a);const f=c?.defaults||{},s=Sp(a.properties,f);let d=vp(a.parsedContent);const m=c?.schemas||null;m&&d.data&&(d.data=bp(d.data,m));const v=zp(d,s,a);return v?{content:v.content||d,params:v.params||s}:{content:d,params:s}}function Cp(a){return globalThis.uniweb?.getComponentMeta?.(a)||null}const ai={COLOR:"color",GRADIENT:"gradient",IMAGE:"image",VIDEO:"video"};function Kf(a){if(!a||!a.startsWith("/"))return a;const c=globalThis.uniweb?.activeWebsite?.basePath||"";return!c||a.startsWith(c+"/")||a===c?a:c+a}function Rp({gradient:a,opacity:c=.5}){const{start:o="rgba(0,0,0,0.7)",end:f="rgba(0,0,0,0)",angle:s=180,startPosition:d=0,endPosition:m=100}=a,v={position:"absolute",inset:0,background:`linear-gradient(${s}deg, ${o} ${d}%, ${f} ${m}%)`,opacity:c,pointerEvents:"none"};return G.jsx("div",{className:"background-overlay background-overlay--gradient",style:v,"aria-hidden":"true"})}function Dp({type:a="dark",opacity:c=.5}){const f={position:"absolute",inset:0,backgroundColor:`rgba(${a==="light"?"255, 255, 255":"0, 0, 0"}, ${c})`,pointerEvents:"none"};return G.jsx("div",{className:"background-overlay background-overlay--solid",style:f,"aria-hidden":"true"})}function Mp({overlay:a}){return a?.enabled?a.gradient?G.jsx(Rp,{gradient:a.gradient,opacity:a.opacity}):G.jsx(Dp,{type:a.type,opacity:a.opacity}):null}function Up({color:a}){if(!a)return null;const c={position:"absolute",inset:0,backgroundColor:a};return G.jsx("div",{className:"background-color",style:c,"aria-hidden":"true"})}function xp({gradient:a}){if(!a)return null;if(typeof a=="string"){const p={position:"absolute",inset:0,background:a};return G.jsx("div",{className:"background-gradient",style:p,"aria-hidden":"true"})}const{start:c="transparent",end:o="transparent",angle:f=0,startPosition:s=0,endPosition:d=100,startOpacity:m=1,endOpacity:v=1}=a,b=m<1?Ah(c,m):c,S=v<1?Ah(o,v):o,R={position:"absolute",inset:0,background:`linear-gradient(${f}deg, ${b} ${s}%, ${S} ${d}%)`};return G.jsx("div",{className:"background-gradient",style:R,"aria-hidden":"true"})}function Ah(a,c){if(a.startsWith("#")){const o=parseInt(a.slice(1,3),16),f=parseInt(a.slice(3,5),16),s=parseInt(a.slice(5,7),16);return`rgba(${o}, ${f}, ${s}, ${c})`}if(a.startsWith("rgb")){const o=a.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return`rgba(${o[1]}, ${o[2]}, ${o[3]}, ${c})`}return a}function em({image:a}){if(!a?.src)return null;const{src:c,position:o="center",size:f="cover",lazy:s=!0}=a,d={position:"absolute",inset:0,backgroundImage:`url(${Kf(c)})`,backgroundPosition:o,backgroundSize:f,backgroundRepeat:"no-repeat"};return G.jsx("div",{className:"background-image",style:d,"aria-hidden":"true"})}function Np(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function jp({video:a}){if(!a?.src)return null;const{src:c,sources:o,poster:f,loop:s=!0,muted:d=!0}=a;if(Np()&&f)return G.jsx(em,{image:{src:f,size:"cover",position:"center"}});const m={position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},v=(o||_p(c)).map(b=>({...b,src:Kf(b.src)}));return G.jsx("video",{className:"background-video",style:m,autoPlay:!0,loop:s,muted:d,playsInline:!0,poster:Kf(f),"aria-hidden":"true",children:v.map(({src:b,type:S},R)=>G.jsx("source",{src:b,type:S},R))})}function _p(a){const c=[],o=a.split(".").pop()?.toLowerCase(),f=a.slice(0,a.lastIndexOf("."));return o==="mp4"?(c.push({src:`${f}.webm`,type:"video/webm"}),c.push({src:a,type:"video/mp4"})):o==="webm"?(c.push({src:a,type:"video/webm"}),c.push({src:`${f}.mp4`,type:"video/mp4"})):c.push({src:a,type:Bp(a)}),c}function Bp(a){return a.endsWith(".webm")?"video/webm":a.endsWith(".ogg")||a.endsWith(".ogv")?"video/ogg":"video/mp4"}function wp({mode:a,color:c,gradient:o,image:f,video:s,overlay:d,className:m=""}){if(!a)return null;const v={position:"absolute",inset:0,overflow:"hidden",zIndex:0};return G.jsxs("div",{className:`background background--${a} ${m}`.trim(),style:v,"aria-hidden":"true",children:[a===ai.COLOR&&G.jsx(Up,{color:c}),a===ai.GRADIENT&&G.jsx(xp,{gradient:o}),a===ai.IMAGE&&G.jsx(em,{image:f}),a===ai.VIDEO&&G.jsx(jp,{video:s}),G.jsx(Mp,{overlay:d})]})}const Hp=["light","medium","dark"],Lp=a=>{const c=a.themeName,o=a.state?.className||"";let f="";c&&Hp.includes(c)&&(f=`context-${c}`);let s=f;o&&(s=s?`${s} ${o}`:o);const{background:d={}}=a.standardOptions,m={};if(d.mode&&(m.position="relative",m.isolation="isolate"),a.contextOverrides)for(const[v,b]of Object.entries(a.contextOverrides))m[`--${v}`]=b;return{id:mp(a),style:m,className:s,background:d}};function lm({block:a,as:c="section"}){const o=a.initComponent(),f=a.website.entityStore,s=Cp(a.type),d=f.resolve(a,s),[m,v]=O.useState(null);O.useEffect(()=>{v(null)},[a]),O.useEffect(()=>{if(d.status!=="pending")return;const H=new AbortController;return f.fetch(a,s,{signal:H.signal}).then(Y=>{H.signal.aborted||Y.data&&v(Y.data)}),()=>H.abort()},[a]);const b=d.status==="ready"?d.data:m;if(a.dataLoading=d.status==="pending"&&!b,!o)return G.jsxs("div",{className:"block-error",style:{padding:"1rem",background:"#fef2f2",color:"#dc2626"},children:["Component not found: ",a.type]});const S=Op(a,s,b),R=S.params,N={content:{...S.content,...a.properties},params:R,block:a};if(!c)return G.jsx(o,{...N});const{background:j,...B}=Lp(a),_=o.className;_&&(B.className=B.className?`${B.className} ${_}`:_);const w=j?.mode&&s?.background!=="self";a.hasBackground=w;const q=c!=="section"?c:o.as||"section";return w?G.jsxs(q,{...B,children:[G.jsx(wp,{mode:j.mode,color:j.color,gradient:j.gradient,image:j.image,video:j.video,overlay:j.overlay}),G.jsx("div",{style:{position:"relative",zIndex:10},children:G.jsx(o,{...N})})]}):G.jsx(q,{...B,children:G.jsx(o,{...N})})}function zh({blocks:a}){return!a||a.length===0?null:a.map((c,o)=>G.jsx(Ce.Fragment,{children:G.jsx(lm,{block:c})},c.id||o))}const qp="uw-",Oh=a=>qp+String(a).replace(/[^a-zA-Z0-9_-]/g,"-");function Yp(a,c){if(c===!1)return null;const o={body:Oh("body")};for(const f of a)o[f]=Oh(f);return c?{...o,...c}:o}function Vp(a,c){if(c===!1)return{};const o={};for(const f of a)o[f]=1;return c?{...o,...c}:o}function Gp(a,c,o){const f={},s=c?.[a];s&&(f.viewTransitionName=s);const d=o?.[a];return d!=null&&(f.position="relative",f.zIndex=d),Object.keys(f).length>0?f:null}function Xp({header:a,body:c,footer:o}){return G.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[a&&G.jsx("header",{children:a}),c&&G.jsx("main",{style:{flex:1},children:c}),o&&G.jsx("footer",{children:o})]})}function Qp(...a){for(const c of a)if(c)for(const o of c)o.initComponent()}function Zp(a={},c={}){return{...c,...a}}function Kp({page:a,website:c}){const o=a.getLayoutName(),f=c.getRemoteLayout(o),s=c.getLayoutMeta(o),d=a.getBodyBlocks(),m=a.getLayoutAreas(),v=[d,...Object.values(m)];Qp(...v);const b=Object.keys(m),S=c.viewTransitions?Yp(b,s?.transitions):null,R=Vp(b,s?.layers),p=(B,_)=>{const w=Gp(B,S,R);return w?G.jsx("div",{style:w,children:_}):_},N=d?p("body",G.jsx(zh,{blocks:d})):null,j={};for(const[B,_]of Object.entries(m))j[B]=p(B,G.jsx(zh,{blocks:_}));if(f){const B=Zp(a.getLayoutParams(),s?.defaults);return G.jsx(f,{page:a,website:c,params:B,body:N,...j},o)}return G.jsx(Xp,{body:N,...j})}const Jp={description:{name:"description"},keywords:{name:"keywords"},robots:{name:"robots"},"og:title":{property:"og:title"},"og:description":{property:"og:description"},"og:image":{property:"og:image"},"og:url":{property:"og:url"},"og:type":{property:"og:type"},"twitter:card":{name:"twitter:card"},"twitter:title":{name:"twitter:title"},"twitter:description":{name:"twitter:description"},"twitter:image":{name:"twitter:image"}};function $p(a){const c=Jp[a];if(!c)return null;const o=c.property?`meta[property="${c.property}"]`:`meta[name="${c.name}"]`;let f=document.querySelector(o);return f||(f=document.createElement("meta"),c.property?f.setAttribute("property",c.property):f.setAttribute("name",c.name),document.head.appendChild(f)),f}function kp(a){let c=document.querySelector(`link[rel="${a}"]`);return c||(c=document.createElement("link"),c.setAttribute("rel",a),document.head.appendChild(c)),c}function Ee(a,c){const o=$p(a);o&&(c?o.setAttribute("content",c):o.remove())}function Wp(a,c={}){const{siteName:o="",titleSeparator:f=" | "}=c;O.useRef([]),O.useEffect(()=>{if(!a)return;if(a.title){const d=o?`${a.title}${f}${o}`:a.title;document.title=d}Ee("description",a.description||null);const s=Array.isArray(a.keywords)?a.keywords.join(", "):a.keywords;if(Ee("keywords",s||null),Ee("robots",a.robots||null),a.og&&(Ee("og:title",a.og.title||a.title||null),Ee("og:description",a.og.description||a.description||null),Ee("og:image",a.og.image||null),Ee("og:url",a.og.url||null),Ee("og:type","website"),Ee("twitter:card",a.og.image?"summary_large_image":"summary"),Ee("twitter:title",a.og.title||a.title||null),Ee("twitter:description",a.og.description||a.description||null),Ee("twitter:image",a.og.image||null)),a.canonical)kp("canonical").setAttribute("href",a.canonical);else{const d=document.querySelector('link[rel="canonical"]');d&&d.remove()}return()=>{document.title=o||"Website"}},[a?.title,a?.description,a?.keywords,a?.canonical,a?.robots,a?.og?.title,a?.og?.description,a?.og?.image,a?.og?.url,o,f])}const ui={wrapper:{minHeight:"80vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"2rem",textAlign:"center"},heading:{fontSize:"3rem",fontWeight:"bold",color:"#1f2937",marginBottom:"1rem"},message:{color:"#64748b",marginBottom:"2rem"},link:{color:"#3b82f6",textDecoration:"underline"}};function Fp(){const a=globalThis.uniweb?.activeWebsite?.basePath||"",c=a?`${a}/`:"/";return Ce.createElement("div",{className:"page-not-found",style:ui.wrapper},Ce.createElement("h1",{style:ui.heading},"404"),Ce.createElement("p",{style:ui.message},"Page not found"),Ce.createElement("a",{href:c,style:ui.link},"Go to homepage"))}function Ip({blocks:a,from:c,wrapAs:o}){return(a||c?.childBlocks||[]).map((s,d)=>G.jsx(Ce.Fragment,{children:G.jsx(lm,{block:s,as:o||null})},s.id||d))}function Pp({page:a,appearance:c}){const o=O.useRef(null),f=O.useMemo(()=>{if(!a)return"";const s=a.getPageBlocks();return p0(s,c)},[a,c]);return O.useEffect(()=>{if(!f){o.current&&(o.current.remove(),o.current=null);return}if(!o.current&&(o.current=document.getElementById("uniweb-page-overrides")||document.createElement("style"),o.current.id="uniweb-page-overrides",!o.current.parentNode)){const s=document.getElementById("uniweb-theme");s&&s.nextSibling?s.parentNode.insertBefore(o.current,s.nextSibling):s?s.parentNode.appendChild(o.current):document.head.appendChild(o.current)}return o.current.textContent=f,()=>{o.current&&(o.current.remove(),o.current=null)}},[f]),null}function tb(){const a=De(),o=globalThis.uniweb?.activeWebsite,f=o?.name||"",[,s]=O.useReducer(_=>_+1,0),d=_a();let m=o?.getPage(a.pathname);m&&o&&o.setActivePage(a.pathname);const v=!m||!m.hasContent()||m.isContentLoaded();O.useEffect(()=>{v||m.loadContent().then(()=>s())},[m,v]);const b=m?.redirect||null,S=m&&!m.redirect&&!m.hasContent()?m.getNavigableRoute():null,R=!!(S&&S!==m?.route),p=!m&&!b;p&&(m=o?.getNotFoundPage?.()||null);const N=m?.getHeadMeta?.()||{title:p?"Page Not Found":m?.title||"Website",description:m?.description||""};O.useEffect(()=>{b&&(b.startsWith("http")?window.location.replace(b):d(b,{replace:!0}))},[b,d]),O.useEffect(()=>{R&&d(S,{replace:!0})},[R,S,d]),Wp(N,{siteName:f});const j=!!(m?.dynamicContext&&!o?._dynamicPageCache?.has(a.pathname));if(O.useEffect(()=>{if(!(!j||!o?.dataStore))return o.dataStore.subscribe(s)},[j,o]),b||R)return null;if(m?.rewrite)return window.location.reload(),null;if(!m)return a.pathname,G.jsxs(G.Fragment,{children:[G.jsx(Fp,{}),!1]});if(!v)return null;const B=o?.themeData?.appearance;return G.jsxs(G.Fragment,{children:[G.jsx(Pp,{page:m,appearance:B}),G.jsx(Kp,{page:m,website:o})]})}function eb({params:a}){return Ce.createElement("span",{className:"xref xref--unhandled"},`[${a?.key||"?"}]`)}function lb(a,c){const o=c?.default?.capabilities||{};a.defaultInsets={Ref:eb,...o.defaultInsets||{}},o.xref?.build&&a.activeWebsite&&o.xref.build(a.activeWebsite,{foundationKinds:o.xref.kinds||{}})}function nb(a,c){if(!(!a?.dataStore||!c?.length))for(const o of c)a.dataStore.set(xh(o.config),{data:o.data})}function ab(a,c){const o=a?.activeWebsite,f=o?.themeData;if(!f||f.css)return;const s=c?.default?.capabilities||{};try{const{config:d,css:m,links:v}=b0(f,{foundationVars:s.vars||{},base:o.basePath||"/"});Object.assign(f,d,{css:m,links:v})}catch(d){console.warn("[uniweb] theme CSS generation failed:",d?.message||d)}}const ub=1e3,no=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function nm(a){const c=globalThis.uniweb?.activeWebsite;if(!a||!c)return;const o=c.getPage(a);if(!(!o?.hasContent?.()||o.isContentLoaded?.()))return Promise.race([o.loadContent(),new Promise(f=>setTimeout(f,ub))])}function am(a,c,o){globalThis.uniweb?.foundationConfig?.viewTransitions&&document.startViewTransition&&!no?document.startViewTransition(async()=>{const s=typeof c=="string"?c:c?.pathname;await nm(s),a(c,o)}):a(c,o)}const ib=Ce.forwardRef(function({onClick:c,replace:o,state:f,preventScrollReset:s,...d},m){const v=_a(),b=S=>{c&&c(S),!(S.defaultPrevented||S.metaKey||S.altKey||S.ctrlKey||S.shiftKey||S.button!==0||!globalThis.uniweb?.foundationConfig?.viewTransitions||!document.startViewTransition||no)&&(S.preventDefault(),am(v,d.to,{replace:o,state:f,preventScrollReset:s}))};return Ce.createElement(lo,{ref:m,...d,onClick:b,replace:o,state:f,preventScrollReset:s})});function cb(){const a=_a();return(c,o)=>am(a,c,o)}const fb={Link:ib,useNavigate:cb,useParams:bg,useLocation:De},ob={lucide:"lu",heroicons:"hi",heroicons2:"hi2",phosphor:"pi",tabler:"tb",feather:"fi",fa:"fa",fa6:"fa6",bootstrap:"bs","material-design":"md","ant-design":"ai",remix:"ri","simple-icons":"si",ionicons:"io5",boxicons:"bi",vscode:"vsc",weather:"wi",game:"gi",lu:"lu",hi:"hi",hi2:"hi2",pi:"pi",tb:"tb",fi:"fi",bs:"bs",md:"md",ai:"ai",ri:"ri",io5:"io5",bi:"bi",si:"si",vsc:"vsc",wi:"wi",gi:"gi"};function rb(a={}){const c=a.cdnUrl||"https://uniweb.github.io/icons",o=a.cdn!==!1,f=new Map;return async function(d,m){const v=ob[d.toLowerCase()];if(!v)return console.warn(`[icons] Unknown family "${d}"`),null;const b=`${v}:${m}`;if(f.has(b))return f.get(b);if(!o)return f.set(b,null),null;try{const S=`${v}-${m}`,R=`${c}/${v}/${S}.svg`,p=await fetch(R);if(!p.ok)throw new Error(`HTTP ${p.status}`);const N=await p.text();return f.set(b,N),N}catch(S){return console.warn(`[icons] Failed to load ${d}:${m}`,S.message),f.set(b,null),null}}}function sb(a){const c=a?.config?.base||"/",o=a?.config?.fetcher??{};return z0({basePath:c,config:o,dev:!1})}function db({content:a,foundation:c,extensions:o=[],routingComponents:f=fb,transport:s=null}){const d=sb(a),v=Bv(a,c,o,{defaultFetcher:d,transport:s,dev:!1});if(a?.fetchedData?.length&&v.activeWebsite?.dataStore&&nb(v.activeWebsite,a.fetchedData),v.childBlockRenderer=Ip,lb(v,c),(typeof document>"u"||!document.getElementById("uniweb-theme"))&&ab(v,c),v.routingComponents=f,v.iconResolver=rb(a?.icons),typeof document<"u")try{const b=document.getElementById("__ICON_CACHE__");if(b){const S=JSON.parse(b.textContent);for(const[R,p]of Object.entries(S))v.iconCache.set(R,p)}}catch{}return v}async function hb(){const a=document.getElementById("__DATA__");if(!a?.textContent)return null;const c=a.textContent;if(a.type==="application/json")try{return JSON.parse(c)}catch{return null}if(typeof DecompressionStream<"u")try{const o=Uint8Array.from(atob(c),m=>m.charCodeAt(0)),f=new DecompressionStream("gzip"),s=f.writable.getWriter();s.write(o),s.close();const d=await new Response(f.readable).text();return JSON.parse(d)}catch{return null}try{return JSON.parse(c)}catch{return null}}function Ch(a){return typeof a!="string"||!a||typeof window>"u"||!window.location||/^([a-z][a-z0-9+.-]*:)?\/\//i.test(a)?a:a.startsWith("/")?window.location.origin+a:a}async function mb(a){if(a&&!document.querySelector(`link[rel="stylesheet"][href="${a}"]`))return new Promise(c=>{const o=document.createElement("link");o.rel="stylesheet",o.href=a,o.onload=()=>{console.log("[Runtime] Foundation CSS loaded"),c()},o.onerror=()=>{console.warn("[Runtime] Could not load foundation CSS from:",a),c()},document.head.appendChild(o)})}async function um(a){const c=typeof a=="string"?a:a.url,o=typeof a=="object"?a.cssUrl:c.replace(/[^/]+\.js$/,"assets/style.css"),f=Ch(c),s=o&&Ch(o);console.log(`[Runtime] Loading foundation from: ${f}`);try{const[,d]=await Promise.all([s?mb(s):Promise.resolve(),import(f)]),m=Object.keys(d).filter(v=>v!=="default");return console.log("[Runtime] Foundation loaded. Available components:",m),d}catch(d){throw console.error("[Runtime] Failed to load foundation:",d),d}}async function yb(a){if(!a?.length)return[];const c=await Promise.allSettled(a.map(f=>um(f))),o=[];for(let f=0;f<c.length;f++)c[f].status==="fulfilled"?(o.push(c[f].value),console.log(`[Runtime] Extension loaded: ${a[f]}`)):console.warn(`[Runtime] Extension failed to load: ${a[f]}`,c[f].reason);return o}function vb(a,c){var o=null;try{o=localStorage.getItem("uniweb-appearance")}catch{}var f=o==="light"||o==="dark",s=f?o:c;if(!f&&a)try{window.matchMedia("(prefers-color-scheme: dark)").matches&&(s="dark")}catch{}try{var d=document.documentElement;s==="dark"?(d.classList.add("scheme-dark"),d.classList.remove("scheme-light")):(d.classList.add("scheme-light"),d.classList.remove("scheme-dark"))}catch{}return s}function gb(a){return!a||!wv(a)?null:{respectSystem:a.respectSystemPreference!==!1,fallback:a.default==="dark"?"dark":"light"}}function pb(a){const c=gb(a);return c?vb(c.respectSystem,c.fallback):null}const Jf="uniweb-theme";function bb(){return typeof document>"u"?!1:document.getElementById(Jf)!==null}function Sb({css:a,children:c}){const o=O.useRef(null);return O.useEffect(()=>{if(!a||bb())return;const f=document.createElement("style");return f.id=Jf,f.textContent=a,document.head.appendChild(f),o.current=f,()=>{o.current&&o.current.parentNode&&(o.current.parentNode.removeChild(o.current),o.current=null)}},[a]),O.useEffect(()=>{if(!a)return;const f=document.getElementById(Jf);f&&f.textContent!==a&&(f.textContent=a)},[a]),G.jsx(G.Fragment,{children:c})}const Rh=new Map;function Dh(a){return a===window?window.scrollY:a.scrollTop}function Eb(){const a=globalThis.uniweb.activeWebsite,c=a.activePage?.getLayoutName(),f=(c?a.getLayoutMeta(c):null)?.scroll??globalThis.uniweb.foundationConfig?.scroll??null;return f==="self"?null:f&&document.querySelector(f)||window}function Tb(a={}){const{enabled:c=!0,resetBlockStates:o=!0}=a,f=De(),s=gg(),d=O.useRef(f.key),m=O.useRef(null),v=O.useRef(window),b=O.useCallback(()=>{const S=v.current;S&&Rh.set(d.current,Dh(S))},[]);O.useEffect(()=>{if(!c)return;const S=v.current;if(S)return S.addEventListener("scroll",b,{passive:!0}),()=>S.removeEventListener("scroll",b)},[f.key,c,b]),O.useLayoutEffect(()=>{s==="POP"?m.current=Rh.get(f.key)??null:m.current=null,d.current=f.key,v.current=c?Eb():null},[f.key,s,c]),O.useEffect(()=>{if(!c)return;const S=v.current;if(S){if(o){const R=globalThis.uniweb.activeWebsite.activePage;R&&typeof R.resetBlockStates=="function"&&R.resetBlockStates()}if(!f.hash)if(s==="POP"){const R=m.current;if(R==null)return;let p,N=0;const j=()=>{S.scrollTo(0,R),Math.abs(Dh(S)-R)>5&&N<30&&(N++,p=requestAnimationFrame(j))};return p=requestAnimationFrame(j),()=>cancelAnimationFrame(p)}else S.scrollTo(0,0)}},[f.key,s,c,o,f.hash])}function Ab(a){if(!a)return!1;if(a.startsWith("#")||a.startsWith("/")&&!a.startsWith("//"))return!0;try{return new URL(a,window.location.origin).origin===window.location.origin}catch{return!0}}function zb(a){return!(a.defaultPrevented||a.metaKey||a.altKey||a.ctrlKey||a.shiftKey||a.button!==0)}function Ob(a){let c=a;for(;c&&c!==document.body;){if(c.tagName==="A")return c;c=c.parentElement}return null}function $f(a,c=5){const o=document.getElementById(a);if(o){o.scrollIntoView({behavior:"smooth"});return}c>0&&requestAnimationFrame(()=>{setTimeout(()=>$f(a,c-1),50)})}function Cb(a={}){const{enabled:c=!0}=a,o=_a(),f=De();O.useEffect(()=>{if(!c||!f.hash)return;const s=f.hash.slice(1);s&&requestAnimationFrame(()=>{$f(s)})},[c,f.pathname,f.hash]),O.useEffect(()=>{if(!c)return;function s(d){if(!zb(d))return;const m=Ob(d.target);if(!m)return;const v=m.getAttribute("href");if(!v||!Ab(v)||m.hasAttribute("download")||m.hasAttribute("data-reload"))return;const b=m.getAttribute("target");if(b&&b!=="_self")return;const S=globalThis.uniweb?.activeWebsite,R=S?.basePath||"";let p=v;if(R&&v.startsWith(R)&&(p=v.slice(R.length)||"/"),S?.hasMultipleLocales()){const j=S.getActiveLocale(),B=S.getDefaultLocale(),_=S.getLocales().map(Y=>Y.code),q=p.match(/^\/([a-z]{2,3}(?:-[A-Za-z]{2,4})?)(?:\/|$)/)?.[1];let H=!1;if(q&&_.includes(q)?H=q!==j:H=j!==B,H)return}if(d.preventDefault(),p.startsWith("#")){const j=p.slice(1);j&&($f(j),window.history.pushState(null,"",v));return}S?.viewTransitions&&document.startViewTransition&&!no?document.startViewTransition(async()=>{await nm(p),o(p)}):o(p)}return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[c,o])}function Rb(){const a=globalThis.uniweb.activeWebsite;if(Cb({enabled:!0}),Tb({enabled:!0}),!a)return G.jsx("div",{className:"website-loading",style:{padding:"2rem",textAlign:"center",color:"#64748b"},children:"Loading website..."});const c=a.themeData?.css;return G.jsx(Sb,{css:c,children:G.jsx(tb,{})})}class Mh extends Ce.Component{constructor(c){super(c),this.state={hasError:!1,error:null}}static getDerivedStateFromError(c){return{hasError:!0,error:c}}componentDidCatch(c,o){console.error("[Runtime] Error caught by boundary:",c,o)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:G.jsxs("div",{style:{padding:"2rem",margin:"1rem",background:"#fef2f2",border:"1px solid #fecaca",borderRadius:"0.5rem",color:"#dc2626"},children:[G.jsx("h2",{style:{margin:"0 0 1rem"},children:"Something went wrong"}),G.jsx("p",{children:this.state.error?.message||"An unexpected error occurred"}),!1]}):this.props.children}}function Db({basename:a,development:c=!1,externalRouter:o=!1}){const f=globalThis.uniweb?.activeWebsite;if(!f)return null;f.setBasePath&&f.setBasePath(a||"");const s=G.jsx(_g,{children:G.jsx(Wh,{path:"/*",element:G.jsx(Rb,{})})}),d=o?G.jsx(Mh,{children:s}):G.jsx(Mh,{children:G.jsx(ap,{basename:a,children:s})});return c?G.jsx(Ce.StrictMode,{children:d}):d}async function Gf(a,c={}){const{development:o=!1,configData:f=null,basename:s}=c,d=f??JSON.parse(document.getElementById("__SITE_CONTENT__")?.textContent||"null")??globalThis.__SITE_CONTENT__;if(!d){console.error("[Runtime] No site configuration found");return}try{let m;if(typeof a=="string"||a&&typeof a.url=="string")m=await um(a);else if(a&&typeof a.then=="function"){const B=await a;m=B?.default?.default?B.default:B}else a&&typeof a=="object"&&(m=a);if(!m)throw new Error("Failed to load foundation");const v=d?.config?.extensions||[],b=v.length>0?await yb(v):[],S=db({content:d,foundation:m,extensions:b}),R=s??void 0;pb(S.activeWebsite?.themeData?.appearance);const p=S.activeWebsite;if(p&&typeof window<"u"){const B=window.location.pathname,_=R||"",w=_&&B.startsWith(_)?B.slice(_.length)||"/":B;p.setActivePage(w)}const N=document.getElementById("root");if(!N){console.error("[Runtime] Root element not found");return}const j=G.jsx(Db,{basename:R,development:o});hh.createRoot(N).render(j),o||console.log("%c<%c>%c Uniweb Runtime","color: #FA8400; font-weight: bold; font-size: 18px;","color: #00ADFE; font-weight: bold; font-size: 18px;","color: #333; font-size: 18px; font-family: system-ui, sans-serif;")}catch(m){console.error("[Runtime] Initialization failed:",m);const v=document.getElementById("root");v&&hh.createRoot(v).render(G.jsxs("div",{style:{padding:"2rem",margin:"1rem",background:"#fef2f2",borderRadius:"0.5rem",color:"#dc2626"},children:[G.jsx("h2",{children:"Runtime Error"}),G.jsx("p",{children:m.message}),o&&G.jsx("pre",{style:{fontSize:"0.75rem",overflow:"auto"},children:m.stack})]}))}}async function Mb({config:a,foundation:c,styles:o}={}){const f=await hb();if(f){const d=f.content?.config?.base,m=d?d.endsWith("/")?d.slice(0,-1):d:void 0;return Gf({url:f.foundation.url,cssUrl:f.foundation.cssUrl},{configData:f.content,basename:m})}if((a?.mode??"bundled")==="runtime")return Gf({url:a.url,cssUrl:a.cssUrl});{const[d]=await Promise.all([c,o]);return Gf(d)}}Mb({config:null});
64
- //# sourceMappingURL=index-Dfiy0YWz.js.map
@@ -1,2 +1 @@
1
1
  import{r as O}from"./index-CxUeIbEw.js";var y={exports:{}},n={};var o;function S(){if(o)return n;o=1;var u=O();function g(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var i={d:{f:c,r:function(){throw Error(g(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(r,e,t){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:a==null?null:""+a,children:r,containerInfo:e,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(g(299));return v(r,e,null,t)},n.flushSync=function(r){var e=f.T,t=i.p;try{if(f.T=null,i.p=2,r)return r()}finally{f.T=e,i.p=t,i.d.f()}},n.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,i.d.C(r,e))},n.prefetchDNS=function(r){typeof r=="string"&&i.d.D(r)},n.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin),s=typeof e.integrity=="string"?e.integrity:void 0,l=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?i.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:l}):t==="script"&&i.d.X(r,{crossOrigin:a,integrity:s,fetchPriority:l,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},n.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=d(e.as,e.crossOrigin);i.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&i.d.M(r)},n.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin);i.d.L(r,t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},n.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=d(e.as,e.crossOrigin);i.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else i.d.m(r)},n.requestFormReset=function(r){i.d.r(r)},n.unstable_batchedUpdates=function(r,e){return r(e)},n.useFormState=function(r,e,t){return f.H.useFormState(r,e,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.2.5",n}var _;function T(){if(_)return y.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),y.exports=S(),y.exports}export{T as r};
2
- //# sourceMappingURL=index-VvOM7xKK.js.map
@@ -1,2 +1 @@
1
1
  import{g as v}from"./_commonjsHelpers-CqkleIqs.js";var n={exports:{}},e={};var i;function l(){if(i)return e;i=1;var a=Symbol.for("react.transitional.element"),R=Symbol.for("react.fragment");function o(p,r,t){var s=null;if(t!==void 0&&(s=""+t),r.key!==void 0&&(s=""+r.key),"key"in r){t={};for(var u in r)u!=="key"&&(t[u]=r[u])}else t=r;return r=t.ref,{$$typeof:a,type:p,key:s,ref:r!==void 0?r:null,props:t}}return e.Fragment=R,e.jsx=o,e.jsxs=o,e}var x;function E(){return x||(x=1,n.exports=l()),n.exports}var d=E();const m=v(d);export{m as a,d as j};
2
- //# sourceMappingURL=jsx-runtime-0PlsXv6K.js.map
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.9.7",
2
+ "version": "0.9.9",
3
3
  "entry": "assets/index-Dfiy0YWz.js",
4
4
  "preloads": [
5
5
  "assets/_commonjsHelpers-CqkleIqs.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/runtime",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "description": "Minimal runtime for loading Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -44,7 +44,7 @@
44
44
  "esbuild": "^0.21.0 || ^0.23.0 || ^0.24.0 || ^0.25.0 || ^0.27.0",
45
45
  "vite": "^7.3.1",
46
46
  "vitest": "^4.1.7",
47
- "@uniweb/build": "0.16.14"
47
+ "@uniweb/build": "0.16.19"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^19.0.0",