@kky42/pievo-server 2.4.2 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/MachinesModal-Ci18Bitd.js +1 -0
- package/.output/public/assets/{SignIn-0Tjqs-Ma.js → SignIn-Czy-XJou.js} +1 -1
- package/.output/public/assets/{actionUi-DpwGIGpw.js → actionUi-DGJmNwsD.js} +1 -1
- package/.output/public/assets/app-CuZ0I3Mb.css +2 -0
- package/.output/public/assets/index-gJavUZIA.js +10 -0
- package/.output/public/assets/{invite._token-KMD2JAgE.js → invite._token-BQUbjPMM.js} +1 -1
- package/.output/public/assets/{invite._token-Btg_0aLp.js → invite._token-BUYUsIBj.js} +1 -1
- package/.output/public/assets/lifecycleUi-C0DaC6NM.js +1 -0
- package/.output/public/assets/loops._loopId-BkEPvT1q.js +67 -0
- package/.output/public/assets/{loops._loopId_.runs._runId-DRCgXaCq.js → loops._loopId_.runs._runId-SM4sD1xB.js} +2 -2
- package/.output/public/assets/{preload-helper-DsxECZIS.js → preload-helper-D1jXs0sN.js} +1 -1
- package/.output/public/assets/routes-4mIvs8LG.js +1 -0
- package/.output/public/assets/{routes-LDbnnQ3f.js → routes-B0svLfFq.js} +1 -1
- package/.output/public/assets/{t._teamId-DUena1pV.js → t._teamId-BLO_bz6b.js} +1 -1
- package/.output/public/assets/t._teamId-D-wGh4mo.js +1 -0
- package/.output/public/assets/{ui-Do4gqMyP.js → ui-DGHTxOhC.js} +1 -1
- package/.output/server/_ssr/{DashboardView-C2LdV6J0.mjs → DashboardView-DqZLADCp.mjs} +14 -93
- package/.output/server/_ssr/{MachinesModal-BjkcVjjx.mjs → MachinesModal-BsCfGuwp.mjs} +140 -5
- package/.output/server/_ssr/{SignIn-DEGrvJvb.mjs → SignIn-ffgDY0yf.mjs} +3 -3
- package/.output/server/_ssr/{SocialLinks-Cm4H8pUJ.mjs → SocialLinks-Bt7huqfS.mjs} +3 -2
- package/.output/server/_ssr/{actionUi-DJBWuNwr.mjs → actionUi-DD7Cd7Le.mjs} +2 -2
- package/.output/server/_ssr/{artifactFiles-DtpRidFZ.mjs → artifactFiles-DHBXTtZn.mjs} +2 -2
- package/.output/server/_ssr/{artifactKind-FBYbgSuf.mjs → artifactKind-CwQ_Ddj6.mjs} +3 -3
- package/.output/server/_ssr/{invite._token-CJ6-H-s3.mjs → invite._token-AvtAuDKv.mjs} +2 -2
- package/.output/server/_ssr/{invite._token-l1SjouDz.mjs → invite._token-CHR5K84a.mjs} +4 -4
- package/.output/server/_ssr/{invite._token-dLKDJKVs.mjs → invite._token-tw3mgvEo.mjs} +6 -6
- package/.output/server/_ssr/lifecycleUi-DOr6Af13.mjs +51 -0
- package/.output/server/_ssr/{loopApi-BKyFB4KM.mjs → loopApi-7YHXDl5g.mjs} +7 -7
- package/.output/server/_ssr/{loopProjection-B8a829ij.mjs → loopProjection-eZvVobW7.mjs} +29 -4
- package/.output/server/_ssr/{loops._loopId-DS16Phmq.mjs → loops._loopId-TEIcuqZU.mjs} +60 -104
- package/.output/server/_ssr/{loops._loopId_.runs._runId-CduETLqH.mjs → loops._loopId_.runs._runId-B4jXeonc.mjs} +3 -3
- package/.output/server/_ssr/{loops._loopId_.runs._runId-BEJI6iK5.mjs → loops._loopId_.runs._runId-BVQKe8xT.mjs} +6 -6
- package/.output/server/_ssr/{router-CXyrnvx-.mjs → router-DyhWcIzt.mjs} +8 -8
- package/.output/server/_ssr/{routes-DD94baie.mjs → routes-BWLQNDn5.mjs} +2 -2
- package/.output/server/_ssr/{routes-Wjexi35W.mjs → routes-Cz49hLy6.mjs} +5 -5
- package/.output/server/_ssr/{routes-BulNEUEE.mjs → routes-DqIGr7p0.mjs} +5 -5
- package/.output/server/_ssr/ssr.mjs +21 -21
- package/.output/server/_ssr/{t._teamId-COuMKQ4r.mjs → t._teamId-COoQSQtH.mjs} +5 -5
- package/.output/server/_ssr/{t._teamId-Bd6-zZsy.mjs → t._teamId-Dms0PTMu.mjs} +2 -2
- package/.output/server/_ssr/{t._teamId-1CreIlPV.mjs → t._teamId-xFPYdSPu.mjs} +5 -5
- package/.output/server/_ssr/{teamFns-j2JKjorZ.mjs → teamFns-gilVwh7z.mjs} +2 -2
- package/.output/server/_ssr/{ui-D5KWstlb.mjs → ui-dMEI4sHj.mjs} +12 -7
- package/.output/server/_tanstack-start-manifest_v-UkU-Jq6w.mjs +86 -0
- package/.output/server/index.mjs +86 -86
- package/package.json +1 -1
- package/.output/public/assets/MachinesModal-CSbnrUER.js +0 -1
- package/.output/public/assets/app-CaZpuwOS.css +0 -2
- package/.output/public/assets/index-CaS_SmDq.js +0 -10
- package/.output/public/assets/lifecycleUi-C7dwHtbw.js +0 -1
- package/.output/public/assets/loops._loopId-D5usF3DO.js +0 -67
- package/.output/public/assets/routes-CtFgwdgW.js +0 -1
- package/.output/public/assets/t._teamId-D41xcbsF.js +0 -1
- package/.output/server/_ssr/lifecycleUi-Dad3hvhm.mjs +0 -37
- package/.output/server/_tanstack-start-manifest_v-3H7yBKLz.mjs +0 -85
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as e,N as t,P as n,j as r,k as i}from"./ui-Do4gqMyP.js";var a=t((t=>{var n=e();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},t.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},t.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},t.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},t.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},t.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},t.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version=`19.2.7`})),o=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=`__TSS_CONTEXT`,c=Symbol.for(`TSS_SERVER_FUNCTION`),l=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),u=`application/x-tss-framed`,d={JSON:0,CHUNK:1,END:2,ERROR:3};`${u}`;var f=/;\s*v=(\d+)/;function p(e){let t=e.match(f);return t?parseInt(t[1],10):void 0}function m(e){let t=p(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var h=()=>window.__TSS_START_OPTIONS__;function g(e){return e[e.length-1]}function _(e){return typeof e==`function`}function v(e,t){return _(e)?e(t):e}var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;function ee(e){for(let t in e)if(y.call(e,t))return!0;return!1}var te=()=>Object.create(null),ne=(e,t)=>re(e,t,te);function re(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=se(e)&&se(i);if(!a&&!(ae(e)&&ae(i)))return i;let o=a?e:ie(e);if(!o)return i;let s=a?i:ie(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:y.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=re(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function ie(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!b.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!b.call(e,t))return!1;r.push(t)}return r}function ae(e){if(!oe(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!oe(n)||!n.hasOwnProperty(`isPrototypeOf`))}function oe(e){return Object.prototype.toString.call(e)===`[object Object]`}function se(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ce(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!ce(e[r],t[r],n))return!1;return!0}if(ae(e)&&ae(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!ce(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!ce(e[o],t[o],n)))return!1;return i===a}return!1}function le(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function ue(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function de(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function fe(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function pe(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return fe(t)}var me=[`http:`,`https:`,`mailto:`,`tel:`];function he(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var ge={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},_e=/[&><\u2028\u2029]/g;function ve(e){return e.replace(_e,e=>ge[e])}function ye(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=pe(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=pe(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function be(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function xe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function x(){throw Error(`Invariant failed`)}function S(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var C=4,Se=5;function Ce(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function we(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=Ce(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function w(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=we(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=D(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=D(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ee(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ee(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=Ee(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=D(n.fullPath??n.from);e.kind=Se,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=D(n.fullPath??n.from);e.kind=C,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)w(e,t,r,s,i,a,o)}function Te(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function E(e){if(e.pathless)for(let t of e.pathless)E(t);if(e.static)for(let t of e.static.values())E(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())E(t);if(e.dynamic?.length){e.dynamic.sort(Te);for(let t of e.dynamic)E(t)}if(e.optional?.length){e.optional.sort(Te);for(let t of e.optional)E(t)}if(e.wildcard?.length){e.wildcard.sort(Te);for(let t of e.wildcard)E(t)}}function D(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Ee(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function De(e,t){let n=D(`/`),r=new Uint16Array(6);for(let t of e)w(!1,r,t,1,n,0);E(n),t.masksTree=n,t.flatCache=S(1e3)}function Oe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=k(e,t.masksTree);return t.flatCache.set(e,r),r}function ke(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=D(`/`),w(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),k(r,o,n)}function Ae(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=k(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ne(a.route)),t.matchCache.set(r,a),a}function O(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function je(e,t=!1,n){let r=D(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return w(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&x(),a[e.id]=e,s!==0&&e.path){let t=O(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),E(r),{processedTree:{segmentTree:r,singleCache:S(1e3),matchCache:S(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function k(e,t,n=!1){let r=e.split(`/`),i=Fe(e,r,t,n);if(!i)return null;let[a]=Me(e,r,i);return{route:i.node.route,rawParams:a}}function Me(e,t,n){let r=Pe(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===C)break;if(u.kind===Se){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Ne(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Pe(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Fe(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!g(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!ze(l,n))continue;if(i.parse){if(!Re(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==C&&ze(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===C||i.kind===2)&&ze(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(Re(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Le(p,o))return n;ze(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Ie(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Ie(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ie(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ie(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Ie(e,t){return 2**(e-t-1)}function Le(e,t){return e===2**(t-1)-1}function Re(e,t,n){let r,i;try{[r,i]=Me(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function ze(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===C)>(e.node.kind===C)||t.node.kind===C==(e.node.kind===C)&&t.depth>e.depth))):!0}function Be(e){return Ve(e.filter(e=>e!==void 0).join(`/`))}function Ve(e){return e.replace(/\/{2,}/g,`/`)}function He(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Ue(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function We(e){return Ue(He(e))}function Ge(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Ke(e,t,n){return Ge(e,n)===Ge(t,n)}function qe({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&g(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(g(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Ve(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Je(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function Ye(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Ze(e,n)).join(`/`):Ze(r,n):r}function Xe({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=we(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=Ye(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Ye(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Ye(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function Ze(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function Qe(e){return e?.isNotFound===!0}function $e(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function et(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function tt(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=et(r):Array.isArray(t)?t.push(et(r)):n[e]=[t,et(r)]}return n}var nt=`__root__`;function rt(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function it(e){return e instanceof Response&&!!e.options}function at(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return rt(e)}var ot=`Error preloading route! ☝️`,st=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=nt:this.parentRoute||x();let r=n?nt:t?.path;r&&r!==`/`&&(r=He(r));let i=t?.id||r,a=n?nt:Be([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Be([`/`,a]));let o=a===`__root__`?`/`:Be([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Ue(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>rt({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ct=class extends st{constructor(e){super(e)}},lt=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(lt||{}),A=Symbol.asyncIterator,ut=Symbol.hasInstance,dt=Symbol.isConcatSpreadable,j=Symbol.iterator,ft=Symbol.match,pt=Symbol.matchAll,mt=Symbol.replace,ht=Symbol.search,gt=Symbol.species,_t=Symbol.split,vt=Symbol.toPrimitive,yt=Symbol.toStringTag,bt=Symbol.unscopables,xt={[A]:0,[ut]:1,[dt]:2,[j]:3,[ft]:4,[pt]:5,[mt]:6,[ht]:7,[gt]:8,[_t]:9,[vt]:10,[yt]:11,[bt]:12},St={0:A,1:ut,2:dt,3:j,4:ft,5:pt,6:mt,7:ht,8:gt,9:_t,10:vt,11:yt,12:bt},M=void 0,Ct={2:!0,3:!1,1:M,0:null,4:-0,5:1/0,6:-1/0,7:NaN},wt={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},Tt={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function N(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function P(e){return N(2,M,e,M,M,M,M,M,M,M,M,M)}var Et=P(2),Dt=P(3),Ot=P(1),kt=P(0),At=P(4),jt=P(5),Mt=P(6),Nt=P(7);function Pt(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
|
|
1
|
+
import{M as e,N as t,P as n,j as r,k as i}from"./ui-DGHTxOhC.js";var a=t((t=>{var n=e();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},t.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},t.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},t.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},t.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},t.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},t.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version=`19.2.7`})),o=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=`__TSS_CONTEXT`,c=Symbol.for(`TSS_SERVER_FUNCTION`),l=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),u=`application/x-tss-framed`,d={JSON:0,CHUNK:1,END:2,ERROR:3};`${u}`;var f=/;\s*v=(\d+)/;function p(e){let t=e.match(f);return t?parseInt(t[1],10):void 0}function m(e){let t=p(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var h=()=>window.__TSS_START_OPTIONS__;function g(e){return e[e.length-1]}function _(e){return typeof e==`function`}function v(e,t){return _(e)?e(t):e}var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;function ee(e){for(let t in e)if(y.call(e,t))return!0;return!1}var te=()=>Object.create(null),ne=(e,t)=>re(e,t,te);function re(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=se(e)&&se(i);if(!a&&!(ae(e)&&ae(i)))return i;let o=a?e:ie(e);if(!o)return i;let s=a?i:ie(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:y.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=re(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function ie(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!b.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!b.call(e,t))return!1;r.push(t)}return r}function ae(e){if(!oe(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!oe(n)||!n.hasOwnProperty(`isPrototypeOf`))}function oe(e){return Object.prototype.toString.call(e)===`[object Object]`}function se(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ce(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!ce(e[r],t[r],n))return!1;return!0}if(ae(e)&&ae(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!ce(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!ce(e[o],t[o],n)))return!1;return i===a}return!1}function le(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function ue(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function de(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function fe(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function pe(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return fe(t)}var me=[`http:`,`https:`,`mailto:`,`tel:`];function he(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var ge={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},_e=/[&><\u2028\u2029]/g;function ve(e){return e.replace(_e,e=>ge[e])}function ye(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=pe(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=pe(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function be(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function xe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function x(){throw Error(`Invariant failed`)}function S(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var C=4,Se=5;function Ce(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function we(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=Ce(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function w(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=we(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=D(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=D(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ee(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ee(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=Ee(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=D(n.fullPath??n.from);e.kind=Se,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=D(n.fullPath??n.from);e.kind=C,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)w(e,t,r,s,i,a,o)}function Te(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function E(e){if(e.pathless)for(let t of e.pathless)E(t);if(e.static)for(let t of e.static.values())E(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())E(t);if(e.dynamic?.length){e.dynamic.sort(Te);for(let t of e.dynamic)E(t)}if(e.optional?.length){e.optional.sort(Te);for(let t of e.optional)E(t)}if(e.wildcard?.length){e.wildcard.sort(Te);for(let t of e.wildcard)E(t)}}function D(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Ee(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function De(e,t){let n=D(`/`),r=new Uint16Array(6);for(let t of e)w(!1,r,t,1,n,0);E(n),t.masksTree=n,t.flatCache=S(1e3)}function Oe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=k(e,t.masksTree);return t.flatCache.set(e,r),r}function ke(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=D(`/`),w(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),k(r,o,n)}function Ae(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=k(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ne(a.route)),t.matchCache.set(r,a),a}function O(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function je(e,t=!1,n){let r=D(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return w(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&x(),a[e.id]=e,s!==0&&e.path){let t=O(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),E(r),{processedTree:{segmentTree:r,singleCache:S(1e3),matchCache:S(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function k(e,t,n=!1){let r=e.split(`/`),i=Fe(e,r,t,n);if(!i)return null;let[a]=Me(e,r,i);return{route:i.node.route,rawParams:a}}function Me(e,t,n){let r=Pe(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===C)break;if(u.kind===Se){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Ne(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Pe(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Fe(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!g(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!ze(l,n))continue;if(i.parse){if(!Re(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==C&&ze(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===C||i.kind===2)&&ze(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(Re(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Le(p,o))return n;ze(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Ie(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Ie(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ie(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ie(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Ie(e,t){return 2**(e-t-1)}function Le(e,t){return e===2**(t-1)-1}function Re(e,t,n){let r,i;try{[r,i]=Me(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function ze(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===C)>(e.node.kind===C)||t.node.kind===C==(e.node.kind===C)&&t.depth>e.depth))):!0}function Be(e){return Ve(e.filter(e=>e!==void 0).join(`/`))}function Ve(e){return e.replace(/\/{2,}/g,`/`)}function He(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Ue(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function We(e){return Ue(He(e))}function Ge(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Ke(e,t,n){return Ge(e,n)===Ge(t,n)}function qe({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&g(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(g(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Ve(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Je(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function Ye(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Ze(e,n)).join(`/`):Ze(r,n):r}function Xe({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=we(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=Ye(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Ye(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Ye(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function Ze(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function Qe(e){return e?.isNotFound===!0}function $e(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function et(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function tt(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=et(r):Array.isArray(t)?t.push(et(r)):n[e]=[t,et(r)]}return n}var nt=`__root__`;function rt(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function it(e){return e instanceof Response&&!!e.options}function at(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return rt(e)}var ot=`Error preloading route! ☝️`,st=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=nt:this.parentRoute||x();let r=n?nt:t?.path;r&&r!==`/`&&(r=He(r));let i=t?.id||r,a=n?nt:Be([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Be([`/`,a]));let o=a===`__root__`?`/`:Be([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Ue(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>rt({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ct=class extends st{constructor(e){super(e)}},lt=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(lt||{}),A=Symbol.asyncIterator,ut=Symbol.hasInstance,dt=Symbol.isConcatSpreadable,j=Symbol.iterator,ft=Symbol.match,pt=Symbol.matchAll,mt=Symbol.replace,ht=Symbol.search,gt=Symbol.species,_t=Symbol.split,vt=Symbol.toPrimitive,yt=Symbol.toStringTag,bt=Symbol.unscopables,xt={[A]:0,[ut]:1,[dt]:2,[j]:3,[ft]:4,[pt]:5,[mt]:6,[ht]:7,[gt]:8,[_t]:9,[vt]:10,[yt]:11,[bt]:12},St={0:A,1:ut,2:dt,3:j,4:ft,5:pt,6:mt,7:ht,8:gt,9:_t,10:vt,11:yt,12:bt},M=void 0,Ct={2:!0,3:!1,1:M,0:null,4:-0,5:1/0,6:-1/0,7:NaN},wt={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},Tt={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function N(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function P(e){return N(2,M,e,M,M,M,M,M,M,M,M,M)}var Et=P(2),Dt=P(3),Ot=P(1),kt=P(0),At=P(4),jt=P(5),Mt=P(6),Nt=P(7);function Pt(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
|
|
2
2
|
`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case` `:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return M}}function F(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Pt(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function Ft(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
|
|
3
3
|
`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function I(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Ft)}var It=`__SEROVAL_REFS__`,Lt=new Map,Rt=new Map;function zt(e){return Lt.has(e)}function Bt(e){return Rt.has(e)}function Vt(e){if(zt(e))return Lt.get(e);throw new kn(e)}function Ht(e){if(Bt(e))return Rt.get(e);throw new An(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,It,{value:Rt,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,It,{value:Rt,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,It,{value:Rt,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,It,{value:Rt,configurable:!0,writable:!1,enumerable:!1});function Ut(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Wt(e){let t=wt[Ut(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function Gt(e,t){let n=Wt(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function Kt(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function qt(e){switch(e){case 1/0:return jt;case-1/0:return Mt}return e===e?Object.is(e,-0)?At:N(0,M,e,M,M,M,M,M,M,M,M,M):Nt}function Jt(e){return N(1,M,F(e),M,M,M,M,M,M,M,M,M)}function Yt(e){return N(3,M,``+e,M,M,M,M,M,M,M,M,M)}function Xt(e){return N(4,e,M,M,M,M,M,M,M,M,M,M)}function Zt(e,t){let n=t.valueOf();return N(5,e,n===n?t.toISOString():``,M,M,M,M,M,M,M,M,M)}function Qt(e,t){return N(6,e,M,F(t.source),t.flags,M,M,M,M,M,M,M)}function $t(e,t){return N(17,e,xt[t],M,M,M,M,M,M,M,M,M)}function en(e,t){return N(18,e,F(Vt(t)),M,M,M,M,M,M,M,M,M)}function tn(e,t,n){return N(25,e,n,F(t),M,M,M,M,M,M,M,M)}function nn(e,t,n){return N(9,e,M,M,M,M,M,n,M,M,Kt(t),M)}function rn(e,t){return N(21,e,M,M,M,M,M,M,t,M,M,M)}function an(e,t,n){return N(15,e,M,t.constructor.name,M,M,M,M,n,t.byteOffset,M,t.length)}function on(e,t,n){return N(16,e,M,t.constructor.name,M,M,M,M,n,t.byteOffset,M,t.byteLength)}function sn(e,t,n){return N(20,e,M,M,M,M,M,M,n,t.byteOffset,M,t.byteLength)}function cn(e,t,n){return N(13,e,Ut(t),M,F(t.message),n,M,M,M,M,M,M)}function ln(e,t,n){return N(14,e,Ut(t),M,F(t.message),n,M,M,M,M,M,M)}function un(e,t){return N(7,e,M,M,M,M,M,t,M,M,M,M)}function dn(e,t){return N(28,M,M,M,M,M,M,[e,t],M,M,M,M)}function fn(e,t){return N(30,M,M,M,M,M,M,[e,t],M,M,M,M)}function pn(e,t,n){return N(31,e,M,M,M,M,M,n,t,M,M,M)}function mn(e,t){return N(32,e,M,M,M,M,M,M,t,M,M,M)}function hn(e,t){return N(33,e,M,M,M,M,M,M,t,M,M,M)}function gn(e,t){return N(34,e,M,M,M,M,M,M,t,M,M,M)}function _n(e,t,n,r){return N(35,e,n,M,M,M,M,t,M,M,M,r)}var{toString:vn}=Object.prototype,yn={parsing:1,serialization:2,deserialization:3};function bn(e){return`Seroval Error (step: ${yn[e]})`}var xn=(e,t)=>bn(e),Sn=class extends Error{constructor(e,t){super(xn(e,t)),this.cause=t}},Cn=class extends Sn{constructor(e){super(`parsing`,e)}},wn=class extends Sn{constructor(e){super(`deserialization`,e)}};function L(e){return`Seroval Error (specific: ${e})`}var Tn=class extends Error{constructor(e){super(L(1)),this.value=e}},En=class extends Error{constructor(e){super(L(2))}},Dn=class extends Error{constructor(e){super(L(3))}},On=class extends Error{constructor(e){super(L(4))}},kn=class extends Error{constructor(e){super(L(5)),this.value=e}},An=class extends Error{constructor(e){super(L(6))}},jn=class extends Error{constructor(e){super(L(7))}},R=class extends Error{constructor(e){super(L(8))}},Mn=class extends Error{constructor(e){super(L(9))}},Nn=class{constructor(e,t){this.value=e,this.replacement=t}},Pn=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};Pn.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var Fn=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};Fn.toString();var In=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};In.toString();var Ln=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};Ln.toString();var Rn=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};Rn.toString();function zn(e){return`__SEROVAL_SEQUENCE__`in e}function Bn(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Vn(e){let t=[],n=-1,r=-1,i=e[j]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Bn(t,n,r)}var Hn=In(j);function Un(e){return Hn(e)}var Wn={},Gn={},Kn={0:{},1:{},2:{},3:{},4:{},5:{}};function qn(e){return`__SEROVAL_STREAM__`in e}function z(){return Fn()}function Jn(e){let t=z(),n=e[A]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var Yn=Ln(A,Pn);function Xn(e){return Yn(e)}async function Zn(e){try{return[1,await e]}catch(e){return[0,e]}}function Qn(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function $n(e,t){e.marked.add(t)}function er(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function tr(e,t){let n=e.refs.get(t);return n==null?{type:0,value:er(e,t)}:($n(e,n),{type:1,value:Xt(n)})}function nr(e,t){let n=tr(e,t);return n.type===1?n:zt(t)?{type:2,value:en(n.value,t)}:n}function rr(e,t){let n=nr(e,t);if(n.type!==0)return n.value;if(t in xt)return $t(n.value,t);throw new Tn(t)}function ir(e,t){let n=tr(e,Kn[t]);return n.type===1?n.value:N(26,n.value,t,M,M,M,M,M,M,M,M,M)}function ar(e){let t=tr(e,Wn);return t.type===1?t.value:N(27,t.value,M,M,M,M,M,M,rr(e,j),M,M,M)}function or(e){let t=tr(e,Gn);return t.type===1?t.value:N(29,t.value,M,M,M,M,M,[ir(e,1),rr(e,A)],M,M,M,M)}function sr(e,t,n,r){return N(n?11:10,e,M,M,M,r,M,M,M,M,Kt(t),M)}function cr(e,t,n,r){return N(8,t,M,M,M,M,{k:n,v:r},M,ir(e,0),M,M,M)}function lr(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return N(19,t,F(btoa(i)),M,M,M,M,M,ir(e,5),M,M,M)}function ur(e,t){return{base:Qn(e,t),child:void 0}}var dr=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return B(this._p,this.depth,e)}};async function fr(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await B(e,t,n[i]):r[i]=0;return r}async function pr(e,t,n,r){return nn(n,r,await fr(e,t,r))}async function mr(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(F(r[n][0])),a.push(await B(e,t,r[n][1]));return j in n&&(i.push(rr(e.base,j)),a.push(dn(ar(e.base),await B(e,t,Vn(n))))),A in n&&(i.push(rr(e.base,A)),a.push(fn(or(e.base),await B(e,t,Jn(n))))),yt in n&&(i.push(rr(e.base,yt)),a.push(Jt(n[yt]))),dt in n&&(i.push(rr(e.base,dt)),a.push(n[dt]?Et:Dt)),{k:i,v:a}}async function hr(e,t,n,r,i){return sr(n,r,i,await mr(e,t,r))}async function gr(e,t,n,r){return rn(n,await B(e,t,r.valueOf()))}async function _r(e,t,n,r){return an(n,r,await B(e,t,r.buffer))}async function vr(e,t,n,r){return on(n,r,await B(e,t,r.buffer))}async function yr(e,t,n,r){return sn(n,r,await B(e,t,r.buffer))}async function br(e,t,n,r){let i=Gt(r,e.base.features);return cn(n,r,i?await mr(e,t,i):M)}async function xr(e,t,n,r){let i=Gt(r,e.base.features);return ln(n,r,i?await mr(e,t,i):M)}async function Sr(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await B(e,t,n)),a.push(await B(e,t,o));return cr(e.base,n,i,a)}async function Cr(e,t,n,r){let i=[];for(let n of r.keys())i.push(await B(e,t,n));return un(n,i)}async function wr(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return tn(n,o.tag,await o.parse.async(r,new dr(e,t),{id:n}))}return M}async function Tr(e,t,n,r){let[i,a]=await Zn(r);return N(12,n,i,M,M,M,M,M,await B(e,t,a),M,M,M)}function Er(e,t,n,r,i){let a=[],o=n.on({next:n=>{$n(this.base,t),B(this,e,n).then(e=>{a.push(mn(t,e))},e=>{i(e),o()})},throw:n=>{$n(this.base,t),B(this,e,n).then(e=>{a.push(hn(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{$n(this.base,t),B(this,e,n).then(e=>{a.push(gn(t,e)),r(a),o()},e=>{i(e),o()})}})}async function Dr(e,t,n,r){return pn(n,ir(e.base,4),await new Promise(Er.bind(e,t,n,r)))}async function Or(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await B(e,t,r.v[n]);return _n(n,i,r.t,r.d)}async function kr(e,t,n,r){if(Array.isArray(r))return pr(e,t,n,r);if(qn(r))return Dr(e,t,n,r);if(zn(r))return Or(e,t,n,r);let i=r.constructor;if(i===Nn)return B(e,t,r.replacement);let a=await wr(e,t,n,r);if(a)return a;switch(i){case Object:return hr(e,t,n,r,!1);case M:return hr(e,t,n,r,!0);case Date:return Zt(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return br(e,t,n,r);case Number:case Boolean:case String:case BigInt:return gr(e,t,n,r);case ArrayBuffer:return lr(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return _r(e,t,n,r);case DataView:return yr(e,t,n,r);case Map:return Sr(e,t,n,r);case Set:return Cr(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return Tr(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return Qt(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return vr(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return xr(e,t,n,r);if(r instanceof Error)return br(e,t,n,r);if(j in r||A in r)return hr(e,t,n,r,!!i);throw new Tn(r)}async function Ar(e,t,n){let r=nr(e.base,n);if(r.type!==0)return r.value;let i=await wr(e,t,r.value,n);if(i)return i;throw new Tn(n)}async function B(e,t,n){switch(typeof n){case`boolean`:return n?Et:Dt;case`undefined`:return Ot;case`string`:return Jt(n);case`number`:return qt(n);case`bigint`:return Yt(n);case`object`:if(n){let r=nr(e.base,n);return r.type===0?await kr(e,t+1,r.value,n):r.value}return kt;case`symbol`:return rr(e.base,n);case`function`:return Ar(e,t,n);default:throw new Tn(n)}}async function jr(e,t){try{return await B(e,0,t)}catch(e){throw e instanceof Cn?e:new Cn(e)}}var Mr=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Mr||{});function V(e){return e}function Nr(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Nr(e,r.extends))}}function Pr(e){if(e){let t=new Set;return Nr(t,e),[...t]}}function Fr(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new jn(e)}}var Ir=1e6,Lr=1e4,Rr=2e4;function zr(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Br=1e3;function Vr(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||Br}}function Hr(e){return{mode:2,base:Vr(2,e),child:M}}var Ur=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return U(this._p,this.depth,e)}};function Wr(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new R({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Gr(e,t,n){return Wr(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function Kr(e,t,n){return Wr(e.base,t),e.base.refs.set(t,n),n}function H(e,t,n){return e.mode===1?Gr(e,t,n):Kr(e,t,n)}function qr(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new R(e)}function Jr(e,t){return H(e,t.i,Ht(I(t.s)))}function Yr(e,t,n){let r=n.a,i=r.length,a=H(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=U(e,t,o));return zr(a,n.o),a}function Xr(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function Zr(e){switch(e){case A:case dt:case yt:case j:return!0;default:return!1}}function Qr(e,t,n){Xr(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function $r(e,t,n,r,i){if(typeof r==`string`)Qr(n,I(r),U(e,t,i));else{let a=U(e,t,r);switch(typeof a){case`string`:Qr(n,a,U(e,t,i));break;case`symbol`:Zr(a)&&(n[a]=U(e,t,i));break;default:throw new R(r)}}}function ei(e,t,n){e.base.refs.types.set(t,n)}function ti(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new R(t)}function ni(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)$r(e,t,r,i[a],o[a]);return r}function ri(e,t,n){let r=H(e,n.i,n.t===10?{}:Object.create(null));return ni(e,t,n.p,r),zr(r,n.o),r}function ii(e,t){return H(e,t.i,new Date(t.s))}function ai(e,t){if(e.base.features&32){let n=I(t.c);if(n.length>Rr)throw new R(t);return H(e,t.i,new RegExp(n,t.m))}throw new En(t)}function oi(e,t,n){let r=H(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(U(e,t,a[i]));return r}function si(e,t,n){let r=H(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(U(e,t,a[i]),U(e,t,o[i]));return r}function ci(e,t){if(t.s.length>Ir)throw new R(t);return H(e,t.i,Rn(I(t.s)))}function li(e,t,n){let r=Fr(n.c),i=U(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new R(n);return H(e,n.i,new r(i,a,n.l))}function ui(e,t,n){let r=U(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new R(n);return H(e,n.i,new DataView(r,i,n.l))}function di(e,t,n,r){if(n.p){let i=ni(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function fi(e,t,n){return di(e,t,n,H(e,n.i,AggregateError([],I(n.m))))}function pi(e,t,n){let r=qr(n,Tt,n.s);return di(e,t,n,H(e,n.i,new r(I(n.m))))}function mi(e,t,n){let r=Pn(),i=H(e,n.i,r.p),a=U(e,t,n.f);return n.s?r.s(a):r.f(a),i}function hi(e,t,n){return H(e,n.i,Object(U(e,t,n.f)))}function gi(e,t,n){let r=e.base.plugins;if(r){let i=I(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return H(e,n.i,o.deserialize(n.s,new Ur(e,t),{id:n.i}))}}throw new Dn(n.c)}function _i(e,t){let n=H(e,t.i,H(e,t.s,Pn()).p);return ei(e,t.s,22),n}function vi(e,t,n){let r=e.base.refs.get(n.i);if(r)return ti(e,n,n.i,22),r.s(U(e,t,n.a[1])),M;throw new On(`Promise`)}function yi(e,t,n){let r=e.base.refs.get(n.i);if(r)return ti(e,n,n.i,22),r.f(U(e,t,n.a[1])),M;throw new On(`Promise`)}function bi(e,t,n){return U(e,t,n.a[0]),Un(U(e,t,n.a[1]))}function xi(e,t,n){return U(e,t,n.a[0]),Xn(U(e,t,n.a[1]))}function Si(e,t,n){let r=H(e,n.i,z());ei(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)U(e,t,i[n]);return r}function Ci(e,t,n){let r=e.base.refs.get(n.i);if(r)return ti(e,n,n.i,31),r.next(U(e,t,n.f)),M;throw new On(`Stream`)}function wi(e,t,n){let r=e.base.refs.get(n.i);if(r)return ti(e,n,n.i,31),r.throw(U(e,t,n.f)),M;throw new On(`Stream`)}function Ti(e,t,n){let r=e.base.refs.get(n.i);if(r)return ti(e,n,n.i,31),r.return(U(e,t,n.f)),M;throw new On(`Stream`)}function Ei(e,t,n){return U(e,t,n.f),M}function Di(e,t,n){return U(e,t,n.a[1]),M}function Oi(e,t,n){let r=H(e,n.i,Bn([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=U(e,t,n.a[i]);return r}function U(e,t,n){if(t>e.base.depthLimit)throw new Mn(e.base.depthLimit);switch(t+=1,n.t){case 2:return qr(n,Ct,n.s);case 0:return Number(n.s);case 1:return I(String(n.s));case 3:if(String(n.s).length>Lr)throw new R(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return Jr(e,n);case 9:return Yr(e,t,n);case 10:case 11:return ri(e,t,n);case 5:return ii(e,n);case 6:return ai(e,n);case 7:return oi(e,t,n);case 8:return si(e,t,n);case 19:return ci(e,n);case 16:case 15:return li(e,t,n);case 20:return ui(e,t,n);case 14:return fi(e,t,n);case 13:return pi(e,t,n);case 12:return mi(e,t,n);case 17:return qr(n,St,n.s);case 21:return hi(e,t,n);case 25:return gi(e,t,n);case 22:return _i(e,n);case 23:return vi(e,t,n);case 24:return yi(e,t,n);case 28:return bi(e,t,n);case 30:return xi(e,t,n);case 31:return Si(e,t,n);case 32:return Ci(e,t,n);case 33:return wi(e,t,n);case 34:return Ti(e,t,n);case 27:return Ei(e,t,n);case 29:return Di(e,t,n);case 35:return Oi(e,t,n);default:throw new En(n)}}function ki(e,t){try{return U(e,0,t)}catch(e){throw new wn(e)}}var Ai=(()=>T).toString();/=>/.test(Ai);function ji(e,t){return ki(Hr({plugins:Pr(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Mi(e,t={}){let n=ur(1,{plugins:Pr(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await jr(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function Ni(e){return e}function Pi(e){return V({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var Fi=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},Ii=globalThis.Buffer,Li=!!Ii&&typeof Ii.from==`function`;function Ri(e){if(e.length===0)return``;if(Li)return Ii.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function zi(e){if(e.length===0)return new Uint8Array;if(Li){let t=Ii.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var Bi=Object.create(null),Vi=Object.create(null),Hi=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(zi(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Ui=new TextEncoder,Wi=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(Ui.encode(e)):t.enqueue(zi(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Gi=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,Ki=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function qi(e){let t=z(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(Ri(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function Ji(e){let t=z(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:Ri(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var Yi=V({tag:`tss/RawStream`,extends:[V({tag:`tss/RawStreamFactory`,test(e){return e===Bi},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Gi},deserialize(e,t,n){return Bi}}),V({tag:`tss/RawStreamFactoryText`,test(e){return e===Vi},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Ki},deserialize(e,t,n){return Vi}})],test(e){return e instanceof Fi},parse:{sync(e,t,n){let r=e.hint===`text`?Vi:Bi;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(z())}},async async(e,t,n){let r=e.hint===`text`?Vi:Bi,i=e.hint===`text`?Ji(e.stream):qi(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?Vi:Bi,i=e.hint===`text`?Ji(e.stream):qi(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?Wi(r):Hi(r)}});function Xi(e){return V({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var Zi=V({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),W={},Qi=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),$i=V({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===W},parse:{sync(){return W},async async(){return await Promise.resolve(W)},stream(){return W}},serialize(){return Qi.toString()},deserialize(){return W}});function ea(e){let t=z(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var ta=[Zi,Yi,V({tag:`seroval/plugins/web/ReadableStream`,extends:[$i],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(W),stream:t.parse(z())}},async async(e,t){return{factory:await t.parse(W),stream:await t.parse(ea(e))}},stream(e,t){return{factory:t.parse(W),stream:t.parse(ea(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return Qi(t.deserialize(e.stream))}})];function na(){return[...(h()?.serializationAdapters)?.map(Pi)??[],...ta]}var ra=new TextDecoder,ia=new Uint8Array,aa=16*1024*1024,oa=32*1024*1024,sa=1024,ca=1e5;function la(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=sa)throw Error(`Too many raw streams in framed response (max ${sa})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function f(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function p(e){if(e===0)return ia;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>oa)throw Error(`Framed response buffer exceeded ${oa} bytes`);for(c.push(a),l+=a.length;;){let e=f();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==d.JSON&&n!==d.CHUNK&&n!==d.END&&n!==d.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===d.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>aa)throw Error(`Frame payload too large: ${a} bytes (max ${aa})`);let c=9+a;if(l<c)break;if(++o>ca)throw Error(`Too many frames in framed response (max ${ca})`);p(9);let m=p(a);switch(n){case d.JSON:try{s.enqueue(ra.decode(m))}catch{}break;case d.CHUNK:{let e=u(i);e&&e.enqueue(m);break}case d.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case d.ERROR:{let e=u(i);if(r.add(i),e){let n=ra.decode(m);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var ua=null;async function da(e){e.length>0&&await Promise.allSettled(e)}var fa=Object.prototype.hasOwnProperty;function pa(e){for(let t in e)if(fa.call(e,t))return!0;return!1}async function ma(e,t,n){ua||=na();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${u}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await ha(r);if(t!==void 0){let n=$e({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await _a(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await va(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function ha(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&pa(e.context)&&(t=!0,n.context=e.context),t)return ga(n)}async function ga(e){return JSON.stringify(await Promise.resolve(Mi(e,{plugins:ua})))}async function _a(e){if(e.data instanceof FormData){let t;return e.context&&pa(e.context)&&(t=await ga(e.context)),t!==void 0&&e.data.set(s,t),{body:e.data}}let t=await ha(e);if(t)return{body:t,contentType:`application/json`}}async function va(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||x(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(m(n),!t.body)throw Error(`No response body for framed response`);let{getOrCreateStream:r,jsonChunks:i}=la(t.body),a=[Xi(r),...ua||[]],o=new Map;e=await ya({jsonStream:i,onMessage:e=>ji(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=ji(n,{plugins:ua})}finally{}await da(r)}if(e||x(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=at(e);if(n)throw n;if(Qe(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function ya({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await da(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await da(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function G(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=h()?.serverFns?.fetch;return ma(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[c]:!0})}function ba(e){if(Array.isArray(e))return e.flatMap(e=>ba(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},l=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function xa(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function Sa(...e){return e.reduce((e,t)=>{let n=xa(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?ba(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}var K=n(e(),1),Ca=K.use,wa=typeof window<`u`?K.useLayoutEffect:K.useEffect;function Ta(e){let t=K.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Ea(e,t,n={},r={}){K.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function Da(e){let t=K.useRef(null);return K.useImperativeHandle(e,()=>t.current,[]),t}var q=r();function Oa({children:e,fallback:t=null}){return ka()?(0,q.jsx)(K.Fragment,{children:e}):(0,q.jsx)(K.Fragment,{children:t})}function ka(){return K.useSyncExternalStore(Aa,()=>!0,()=>!1)}function Aa(){return()=>{}}var ja=K.createContext(void 0),Ma=K.createContext(void 0),Na=t((t=>{var n=e();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;t.useSyncExternalStore=n.useSyncExternalStore===void 0?f:n.useSyncExternalStore})),Pa=t(((e,t)=>{t.exports=Na()})),Fa=t((t=>{var n=e(),r=Pa();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=n.useRef,c=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Ia=t(((e,t)=>{t.exports=Fa()})),La=Ia();function Ra(e,t){return e===t}function za(e,t,n=Ra){let r=(0,K.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,K.useCallback)(()=>e?.get(),[e]);return(0,La.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var Ba={get(){},subscribe(){return{unsubscribe(){}}}};function Va(e,t){let n=K.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=re(n.current,i):i}}function Ha(e){let t=i(),n=K.useContext(e.from?Ma:ja),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),a=Va(e,t),o=za(r??Ba,e=>e?a(e):Ba);if(o!==Ba)return o;(e.shouldThrow??!0)&&x()}function Ua(e){return Ha({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Wa(e){let{select:t,...n}=e;return Ha({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Ga(e){return Ha({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Ka(e){return Ha({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function qa(e){let t=i();return K.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Ja(e){return Ha({...e,select:t=>e.select?e.select(t.context):t.context})}var Ya=n(o(),1);function Xa(e,t){let n=i(),r=Da(t),{activeProps:a,inactiveProps:o,activeOptions:s,to:c,preload:l,preloadDelay:u,preloadIntentProximity:d,hashScrollIntoView:f,replace:p,startTransition:m,resetScroll:h,viewTransition:g,children:_,target:y,disabled:b,style:ee,className:te,onClick:ne,onBlur:re,onFocus:ie,onMouseEnter:ae,onMouseLeave:oe,onTouchStart:se,ignoreBlocker:le,params:ue,search:de,hash:fe,state:pe,mask:me,reloadDocument:ge,unsafeRelative:_e,from:ve,_fromLocation:ye,...be}=e,xe=ka(),x=K.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),S=za(n.stores.location,e=>e,(e,t)=>e.href===t.href),C=K.useMemo(()=>{let e={_fromLocation:S,...x};return n.buildLocation(e)},[n,S,x]),Se=C.maskedLocation?C.maskedLocation.publicHref:C.publicHref,Ce=C.maskedLocation?C.maskedLocation.external:C.external,we=K.useMemo(()=>ao(Se,Ce,n.history,b),[b,Ce,Se,n.history]),w=K.useMemo(()=>{if(we?.external)return he(we.href,n.protocolAllowlist)?void 0:we.href;if(!oo(c)&&!(typeof c!=`string`||c.indexOf(`:`)===-1))try{return new URL(c),he(c,n.protocolAllowlist)?void 0:c}catch{}},[c,we,n.protocolAllowlist]),Te=K.useMemo(()=>{if(w)return!1;if(s?.exact){if(!Ke(S.pathname,C.pathname,n.basepath))return!1}else{let e=Ge(S.pathname,n.basepath),t=Ge(C.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(s?.includeSearch??!0)&&!ce(S.search,C.search,{partial:!s?.exact,ignoreUndefined:!s?.explicitUndefined})?!1:s?.includeHash?xe&&S.hash===C.hash:!0},[s?.exact,s?.explicitUndefined,s?.includeHash,s?.includeSearch,S,w,xe,C.hash,C.pathname,C.search,n.basepath]),E=Te?v(a,{})??Qa:Za,D=Te?Za:v(o,{})??Za,Ee=[te,E.className,D.className].filter(Boolean).join(` `),De=(ee||E.style||D.style)&&{...ee,...E.style,...D.style},[Oe,ke]=K.useState(!1),Ae=K.useRef(!1),O=e.reloadDocument||w?!1:l??n.options.defaultPreload,je=u??n.options.defaultPreloadDelay??0,k=K.useCallback(()=>{n.preloadRoute({...x,_builtLocation:C}).catch(e=>{console.warn(e),console.warn(ot)})},[n,x,C]);Ea(r,K.useCallback(e=>{e?.isIntersecting&&k()},[k]),ro,{disabled:!!b||O!==`viewport`}),K.useEffect(()=>{Ae.current||!b&&O===`render`&&(k(),Ae.current=!0)},[b,k,O]);let Me=e=>{let t=e.currentTarget.getAttribute(`target`),r=y===void 0?t:y;if(!b&&!co(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Ya.flushSync)(()=>{ke(!0)});let t=n.subscribe(`onResolved`,()=>{t(),ke(!1)});n.navigate({...x,replace:p,resetScroll:h,hashScrollIntoView:f,startTransition:m,viewTransition:g,ignoreBlocker:le})}};if(w)return{...be,ref:r,href:w,..._&&{children:_},...y&&{target:y},...b&&{disabled:b},...ee&&{style:ee},...te&&{className:te},...ne&&{onClick:ne},...re&&{onBlur:re},...ie&&{onFocus:ie},...ae&&{onMouseEnter:ae},...oe&&{onMouseLeave:oe},...se&&{onTouchStart:se}};let Ne=e=>{if(b||O!==`intent`)return;if(!je){k();return}let t=e.currentTarget;if(no.has(t))return;let n=setTimeout(()=>{no.delete(t),k()},je);no.set(t,n)},Pe=e=>{b||O!==`intent`||k()},Fe=e=>{if(b||!O||!je)return;let t=e.currentTarget,n=no.get(t);n&&(clearTimeout(n),no.delete(t))};return{...be,...E,...D,href:we?.href,ref:r,onClick:io([ne,Me]),onBlur:io([re,Fe]),onFocus:io([ie,Ne]),onMouseEnter:io([ae,Ne]),onMouseLeave:io([oe,Fe]),onTouchStart:io([se,Pe]),disabled:!!b,target:y,...De&&{style:De},...Ee&&{className:Ee},...b&&$a,...Te&&eo,...xe&&Oe&&to}}var Za={},Qa={className:`active`},$a={role:`link`,"aria-disabled":!0},eo={"data-status":`active`,"aria-current":`page`},to={"data-transitioning":`transitioning`},no=new WeakMap,ro={rootMargin:`100px`},io=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function ao(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function oo(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var so=K.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Xa(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return K.createElement(`a`,t,o)}return K.createElement(n,a,o)});function co(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var lo=class extends st{constructor(e){super(e),this.useMatch=e=>Ha({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Ja({...e,from:this.id}),this.useSearch=e=>Ka({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ga({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Wa({...e,from:this.id}),this.useLoaderData=e=>Ua({...e,from:this.id}),this.useNavigate=()=>qa({from:this.fullPath}),this.Link=K.forwardRef((e,t)=>(0,q.jsx)(so,{ref:t,from:this.fullPath,...e}))}};function uo(e){return new lo(e)}var fo=class extends ct{constructor(e){super(e),this.useMatch=e=>Ha({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Ja({...e,from:this.id}),this.useSearch=e=>Ka({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ga({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Wa({...e,from:this.id}),this.useLoaderData=e=>Ua({...e,from:this.id}),this.useNavigate=()=>qa({from:this.fullPath}),this.Link=K.forwardRef((e,t)=>(0,q.jsx)(so,{ref:t,from:this.fullPath,...e}))}};function po(e){return new fo(e)}function mo(e){return new ho(e,{silent:!0}).createRoute}var ho=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=uo(e);return t.isRoot=!1,t},this.silent=t?.silent}};function go(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,ue(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(Ca)Ca(o());else throw o();return K.createElement(r,e)};return s.preload=o,s}function _o(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function vo(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))_o(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))_o(e)&&(n[e]=t[e]);return n}function yo(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))_o(n)&&(t[n]=e[n]);return t}var bo=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},J=(e,t)=>{let n=t||e||{};n.method===void 0&&(n.method=`GET`);let r=e=>J(void 0,{...n,validator:e,inputValidator:e});return Object.assign(e=>J(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{l in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=J(void 0,{...n,middleware:t});return r[l]=!0,r},validator:r,inputValidator:r,handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],wo(i)];return t.method=n.method,Object.assign(async e=>{let n=await xo(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:yo()}),r=at(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=bo(),r=n.contextAfterGlobalMiddlewares;return await xo(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:vo(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function xo(e,t,n){let r=So([...h()?.functionMiddleware||[],...e]);if(t===`server`){let e=bo({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{let r=`validator`in n.options?n.options.validator:void 0;!r&&`inputValidator`in n.options&&(r=n.options.inputValidator),r&&t===`server`&&(e.data=await Co(r,e.data));let a;if(t===`client`?`client`in n.options&&(a=n.options.client):`server`in n.options&&(a=n.options.server),a){let t=async(t={})=>{let n=await i({...e,...t,context:vo(e.context,t.context),sendContext:vo(e.sendContext,t.sendContext),headers:Sa(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await a({...e,next:t});if(it(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||yo(),_callSiteFetch:n.fetch})}function So(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function Co(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function wo(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}var To=J({method:`GET`}).handler(G(`b8119d5fe6ca1ed9f609702aa2133b5ac5337030c0bdcf92dc7eba889d6bd2e6`)),Eo=J({method:`GET`}).handler(G(`cbb6a1b09b309459bbba3dc3851ae85fc468658b3cda77e22b6c6f3e28b65af4`)),Do=J({method:`GET`}).handler(G(`0fe12e769203c42f432a927b9cbf13a967a0f9db567b61843598f734afb4f5c6`)),Oo=J({method:`GET`}).handler(G(`7cc22b3a0f6b1c4c73463c3401e981ad42caf6487b479b738ee5aeacb11710da`)),ko=J({method:`GET`}).handler(G(`dc0ec955d0d53a150a3e9a4673f98f3509cfb4bd411c512079ae4e94c561b70c`)),Ao=J({method:`GET`}).handler(G(`23e290b2b7483ceea6fe669024c35b12c2c4ddd76649f6fab21c958ceda02940`)),jo=J({method:`GET`}).handler(G(`b050455aacc84dd2a2c9a45517826ad10f91d8f1545e87cc7015784cc7116a97`)),Mo=J({method:`GET`}).handler(G(`85fdf73d4fee43aed762f93c5d47d33200fbff39e2d082647dc921f610d32698`)),No=J({method:`GET`}).handler(G(`b18bbec3d06dfc77714e1e527dfb9172fd7575a64a6c0d6e73ba6dc658dccf0d`)),Po=J({method:`GET`}).handler(G(`ed10d5fe79208e5e0e4e18e4a17b18d7f7db4dd16204c00c3ac90c4644668841`)),Fo=J({method:`GET`}).handler(G(`08c28b892712a1b491b120b74c7dcb81761988d31ccea60216d1807b73c1182c`)),Io=J({method:`POST`}).handler(G(`9befe6b8d67ccbbd7aa9b538bde2a161a9894761c8936761a9503fda1a88c0fc`)),Lo=J({method:`POST`}).handler(G(`95b7483b333d7649e70c848319417e83c2af6a0327bbcda2d0e331f626dffe05`)),Ro=J({method:`POST`}).handler(G(`5660ea82ea5ff2549e0ce2f8f070c54f3e9e24fee84d547601ef5d6ef49a4016`)),zo=J({method:`POST`}).handler(G(`e233a461e4526dec3cc4cbaa891a7c3621d5967ce7f32b4fb17e9fb645857b9a`)),Bo=J({method:`POST`}).handler(G(`5e0d6b55f5629faac2f55a68661eeb82668b2be752192b16264ffb5cd1e6fabe`)),Vo=J({method:`POST`}).handler(G(`08565e35f6a3dd06ef25401de0343976c47f7ae319d3baed6320b56dd3718311`)),Ho=J({method:`POST`}).handler(G(`6850ba403da9dec5aff45794eb52636ca540ddec2d9e59f5c75ccbb852bfeacb`)),Uo=J({method:`POST`}).handler(G(`4646f52fb09b83c9c9cef34836f3c9d03416423c879d9e5ceffcafd9a71ecba6`)),Wo=Object.create(null),Go=e=>({}),Y=new Proxy(Wo,{get(e,t){return Go()[t]??Wo[t]},has(e,t){return t in Go()||t in Wo},set(e,t,n){let r=Go(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=Go(!0);return delete n[t],!0},ownKeys(){let e=Go(!0);return Object.keys(e)}});Y.NODE_ENV;function Ko(e,t){return typeof process<`u`?{}[e]??t:typeof Deno<`u`?Deno.env.get(e)??t:typeof Bun<`u`?Bun.env[e]??t:t}Object.freeze({get BETTER_AUTH_SECRET(){return Ko(`BETTER_AUTH_SECRET`)},get AUTH_SECRET(){return Ko(`AUTH_SECRET`)},get BETTER_AUTH_TELEMETRY(){return Ko(`BETTER_AUTH_TELEMETRY`)},get BETTER_AUTH_TELEMETRY_ID(){return Ko(`BETTER_AUTH_TELEMETRY_ID`)},get NODE_ENV(){return Ko(`NODE_ENV`,`development`)},get PACKAGE_VERSION(){return Ko(`PACKAGE_VERSION`,`0.0.0`)},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return Ko(`BETTER_AUTH_TELEMETRY_ENDPOINT`,``)}});function qo(){let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):Object.prototype.hasOwnProperty.call(e,`writable`)?e.writable:e.set!==void 0}function Jo(e){let t=e.split(`
|
|
4
4
|
at `);return t.length<=1?e:(t.splice(1,1),t.join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./ui-DGHTxOhC.js";import{s as t}from"./preload-helper-D1jXs0sN.js";import{a as n,o as r}from"./index-gJavUZIA.js";import{t as i}from"./SignIn-Czy-XJou.js";var a=e();function o(){let e=n.useLoaderData(),{data:o,isPending:s}=t();return e?.auth?.enabled&&!s&&!o||e?.mode===`signin`?(0,a.jsx)(i,{}):(0,a.jsx)(r,{initial:e.initial})}export{o as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,k as t}from"./ui-
|
|
1
|
+
import{j as e,k as t}from"./ui-DGHTxOhC.js";import{r as n}from"./actionUi-DGJmNwsD.js";var r=e();function i({error:e}){let i=t();return(0,r.jsx)(`main`,{className:`mx-auto max-w-[1180px] px-8 pt-12`,children:(0,r.jsx)(n,{title:`Couldn't load the dashboard.`,detail:String(e),onRetry:()=>void i.invalidate()})})}export{i as errorComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,k as t}from"./ui-
|
|
1
|
+
import{j as e,k as t}from"./ui-DGHTxOhC.js";import{r as n}from"./actionUi-DGJmNwsD.js";var r=e();function i({error:e}){let i=t();return(0,r.jsx)(`main`,{className:`mx-auto max-w-[1180px] px-8 pt-12`,children:(0,r.jsx)(n,{title:`Couldn't open this team.`,detail:String(e),onRetry:()=>void i.invalidate()})})}export{i as errorComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./ui-DGHTxOhC.js";import{s as t}from"./preload-helper-D1jXs0sN.js";import{i as n,o as r}from"./index-gJavUZIA.js";import{t as i}from"./SignIn-Czy-XJou.js";var a=e();function o(){let e=n.useLoaderData(),{data:o,isPending:s}=t();return e?.auth?.enabled&&!s&&!o||e?.mode===`signin`?(0,a.jsx)(i,{}):(0,a.jsx)(r,{teamId:e.teamId,initial:e.initial},e.teamId)}export{o as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),f=o(((e,t)=>{t.exports=d()})),p=c(u(),1),m=p.createContext(null);function h(e){return p.useContext(m)}var g=e=>e?new Date(e).toLocaleString():`—`,_=e=>{if(!e)return``;let t=Math.round((Date.now()-Date.parse(e))/1e3);if(t<60)return`${t}s ago`;let n=Math.round(t/60);if(n<60)return`${n}m ago`;let r=Math.round(n/60);return r<24?`${r}h ago`:`${Math.round(r/24)}d ago`},v=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`];function y(e){let t=(e||``).trim().split(/\s+/);if(t.length!==5)return e;let[n,r,i,a,o]=t,s=i===`*`&&a===`*`,c=r.match(/^\*\/(\d+)$/);if(c&&s&&o===`*`)return`every ${c[1]}h`;let l=n.match(/^\*\/(\d+)$/);if(l&&r===`*`&&s&&o===`*`)return`every ${l[1]}m`;if(r===`*`&&/^\d+$/.test(n)&&s&&o===`*`)return`hourly :${n.padStart(2,`0`)}`;if(/^\d+$/.test(n)&&/^\d+$/.test(r)&&s){let e=`${r.padStart(2,`0`)}:${n.padStart(2,`0`)}`;if(o===`*`)return`daily ${e}`;if(/^[0-6]$/.test(o))return`${v[Number(o)]} ${e}`}return e}var b=e=>{if(!e)return``;let t=Math.round((Date.parse(e)-Date.now())/1e3);if(t<=0)return`due`;let n=Math.round(t/60);if(n<60)return`in ${n}m`;let r=Math.round(n/60);return r<24?`in ${r}h`:`in ${Math.round(r/24)}d`},x=e=>{if(!e)return`—`;let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${n(t.getMonth()+1)}/${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`},S=e=>Math.abs(e)>=1e3?`${Math.round(e/100)/10}k`:`${Math.round(e*100)/100}`,C=e=>e?`${Math.round(e/1e3)}s`:``;function w(e){let t=Math.abs(e);return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}var T={keep:{c:`var(--color-run-keep)`,label:`Keep`},"no-change":{c:`var(--color-run-no-change)`,label:`No change`},block:{c:`var(--color-run-block)`,label:`Block`},error:{c:`var(--color-run-error)`,label:`Error`},warning:{c:`var(--color-run-warning)`,label:`Missing status`},canceled:{c:`var(--color-run-canceled)`,label:`Canceled`},queued:{c:`var(--color-run-queued)`,label:`Queued`},reconciling:{c:`var(--color-run-warning)`,label:`Reconciling…`},active:{c:`var(--color-run-active)`,label:`Running…`}},E=e=>e===`keep`||e===`no-change`||e===`block`?T[e]:void 0;function D(e){return e.reconciliation?T.reconciling.c:e.phase===`running`?T.active.c:e.phase===`error`?T.error.c:e.status===`block`?T.block.c:e.phase===`pending`?T.queued.c:e.phase===`canceled`?T.canceled.c:e.phase===`done`&&!E(e.status)?T.warning.c:(E(e.status)??T[`no-change`]).c}function O(e){return e.reconciliation||e.phase===`running`||e.status===`block`||e.phase===`error`?1:e.phase===`pending`?.7:e.phase===`canceled`?.5:e.phase===`done`&&!E(e.status)?.9:e.status===`no-change`?.55:1}function k(e){return e.reconciliation===`blocking`?`Waiting for machine recovery`:e.reconciliation===`report-only`?`Awaiting late report`:e.phase===`pending`?T.queued.label:e.phase===`running`?e.cancelRequested?`Stopping…`:T.active.label:e.phase===`error`?e.cancelRequested?`Failed while stopping`:T.error.label:e.status===`block`?T.block.label:e.phase===`canceled`?(e.error,`Canceled`):e.cancelRequested&&e.phase===`done`?`Succeeded while stopping`:e.status===`keep`?T.keep.label:e.status===`no-change`?T[`no-change`].label:e.phase===`done`?T.warning.label:T[`no-change`].label}var A=e=>{let t=e.runs??[];return t.length?t[t.length-1]:null},j=f(),M=()=>()=>{},N=()=>(0,p.useSyncExternalStore)(M,()=>!0,()=>!1),P=`focus-visible:outline-none focus-visible:shadow-focus`,F=`inline-flex cursor-pointer items-center gap-1.5 rounded-control px-4 py-2 text-body font-medium transition-colors duration-150 disabled:cursor-default disabled:opacity-40 ${P}`,I=`${F} border border-wire bg-surface text-primary hover:bg-raised`,L=`${F} border border-display bg-display text-paper hover:opacity-85`,R=`${F} border border-transparent bg-rubik-red text-white hover:opacity-85`,z=`inline-flex shrink-0 cursor-pointer items-center gap-1 rounded-full border border-wire bg-surface px-3 py-1 text-label font-medium text-primary transition-colors duration-150 hover:bg-raised disabled:cursor-default disabled:opacity-40 ${P}`;`${P}`;var B=`inline-flex cursor-pointer items-center gap-1.5 border-none bg-transparent p-0 text-meta font-medium text-secondary transition-colors hover:text-display`,V=`text-label font-semibold text-secondary`,H=`mb-1.5 mt-3 block text-label font-medium text-secondary`,U=`w-full rounded-control border border-wire bg-surface px-3 py-2.5 text-sm text-primary outline-none transition-shadow focus:border-transparent focus:shadow-focus`,W=`${U} lp-select cursor-pointer`,G={animation:`runPulse 1.1s ease-in-out infinite`},K={background:`var(--color-rubik-yellow)`,...G};function q({message:e,onDismiss:t,className:n=`mb-2`}){return(0,j.jsxs)(`div`,{className:`flex items-start gap-2 text-body text-accent ${n}`,children:[(0,j.jsx)(`span`,{className:`mt-[5px] size-2 shrink-0 rounded-full bg-rubik-red`,"aria-hidden":!0}),(0,j.jsx)(`span`,{children:e}),t&&(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`ml-auto shrink-0 cursor-pointer border-none bg-transparent p-0 text-label text-secondary transition-colors hover:text-display`,children:`Dismiss`})]})}var J={neutral:`bg-raised text-secondary`,ink:`bg-raised text-primary`,outline:`border border-hairline text-secondary`,running:`bg-running-soft text-running`,success:`bg-success-soft text-success`,accent:`bg-accent-soft text-accent`,warn:`bg-warn-soft text-warn`};function Y({tone:e=`neutral`,dot:t,title:n,children:r}){return(0,j.jsxs)(`span`,{title:n,className:`inline-flex h-[22px] items-center gap-1.5 rounded-full px-2.5 text-caption font-medium ${J[e]}`,children:[t&&(0,j.jsx)(`span`,{className:`size-1.5 rounded-full`,style:t===`pulse`?K:{background:`var(--color-rubik-green)`}}),r]})}function X({className:e=``}){return(0,j.jsx)(`div`,{className:`text-body text-disabled ${e}`,children:`Loading…`})}function Z({run:e,colorText:t}){return(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 font-medium`,style:t?{color:D(e)}:void 0,children:[(0,j.jsx)(`span`,{className:`size-2 rounded-full`,style:{background:D(e),opacity:O(e)}}),k(e)]})}export{m as A,S as C,x as D,_ as E,u as M,o as N,b as O,c as P,g as S,A as T,y as _,I as a,O as b,B as c,H as d,G as f,N as g,W as h,Z as i,f as j,h as k,z as l,V as m,X as n,R as o,K as p,Y as r,L as s,q as t,U as u,D as v,w,C as x,k as y};
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),f=o(((e,t)=>{t.exports=d()})),p=c(u(),1),m=p.createContext(null);function h(e){return p.useContext(m)}var g=e=>e?new Date(e).toLocaleString():`—`,_=e=>{if(!e)return``;let t=Math.round((Date.now()-Date.parse(e))/1e3);if(t<60)return`${t}s ago`;let n=Math.round(t/60);if(n<60)return`${n}m ago`;let r=Math.round(n/60);return r<24?`${r}h ago`:`${Math.round(r/24)}d ago`},v=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`];function y(e){let t=(e||``).trim().split(/\s+/);if(t.length!==5)return`custom schedule`;let[n,r,i,a,o]=t,s=i===`*`&&a===`*`,c=r.match(/^\*\/(\d+)$/);if(c&&n===`0`&&s&&o===`*`)return`every ${c[1]}h`;let l=n.match(/^\*\/(\d+)$/);if(l&&r===`*`&&s&&o===`*`)return`every ${l[1]}m`;if(r===`*`&&/^\d+$/.test(n)&&s&&o===`*`)return`hourly :${n.padStart(2,`0`)}`;if(/^\d+$/.test(n)&&/^\d+$/.test(r)&&s){let e=`${r.padStart(2,`0`)}:${n.padStart(2,`0`)}`;if(o===`*`)return`daily ${e}`;if(/^[0-6]$/.test(o))return`${v[Number(o)]} ${e}`}return`custom schedule`}function b(e){return e.mode===`cron`?`${y(e.cron)} · ${e.timezone} · overlap ${e.overlap}`:`continuous · ${e.delayMinutes}m after completion`}var x=e=>{if(!e)return``;let t=Math.round((Date.parse(e)-Date.now())/1e3);if(t<=0)return`due`;let n=Math.round(t/60);if(n<60)return`in ${n}m`;let r=Math.round(n/60);return r<24?`in ${r}h`:`in ${Math.round(r/24)}d`},S=e=>{if(!e)return`—`;let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${n(t.getMonth()+1)}/${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`},C=e=>Math.abs(e)>=1e3?`${Math.round(e/100)/10}k`:`${Math.round(e*100)/100}`,w=e=>e?`${Math.round(e/1e3)}s`:``;function T(e){let t=Math.abs(e);return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}var E={keep:{c:`var(--color-run-keep)`,label:`Keep`},"no-change":{c:`var(--color-run-no-change)`,label:`No change`},block:{c:`var(--color-run-block)`,label:`Block`},error:{c:`var(--color-run-error)`,label:`Error`},warning:{c:`var(--color-run-warning)`,label:`Missing status`},canceled:{c:`var(--color-run-canceled)`,label:`Canceled`},queued:{c:`var(--color-run-queued)`,label:`Queued`},reconciling:{c:`var(--color-run-warning)`,label:`Reconciling…`},active:{c:`var(--color-run-active)`,label:`Running…`}},D=e=>e===`keep`||e===`no-change`||e===`block`?E[e]:void 0;function O(e){return e.reconciliation?E.reconciling.c:e.phase===`running`?E.active.c:e.phase===`error`?E.error.c:e.status===`block`?E.block.c:e.phase===`pending`?E.queued.c:e.phase===`canceled`?E.canceled.c:e.phase===`done`&&!D(e.status)?E.warning.c:(D(e.status)??E[`no-change`]).c}function k(e){return e.reconciliation||e.phase===`running`||e.status===`block`||e.phase===`error`?1:e.phase===`pending`?.7:e.phase===`canceled`?.5:e.phase===`done`&&!D(e.status)?.9:e.status===`no-change`?.55:1}function A(e){return e.reconciliation===`blocking`?`Waiting for machine recovery`:e.reconciliation===`report-only`?`Awaiting late report`:e.phase===`pending`?E.queued.label:e.phase===`running`?e.cancelRequested?`Stopping…`:E.active.label:e.phase===`error`?e.cancelRequested?`Failed while stopping`:E.error.label:e.status===`block`?E.block.label:e.phase===`canceled`?(e.error,`Canceled`):e.cancelRequested&&e.phase===`done`?`Succeeded while stopping`:e.status===`keep`?E.keep.label:e.status===`no-change`?E[`no-change`].label:e.phase===`done`?E.warning.label:E[`no-change`].label}var j=e=>{let t=e.runs??[];return t.length?t[t.length-1]:null},M=f(),N=()=>()=>{},P=()=>(0,p.useSyncExternalStore)(N,()=>!0,()=>!1),F=`focus-visible:outline-none focus-visible:shadow-focus`,I=`inline-flex cursor-pointer items-center gap-1.5 rounded-control px-4 py-2 text-body font-medium transition-colors duration-150 disabled:cursor-default disabled:opacity-40 ${F}`,L=`${I} border border-wire bg-surface text-primary hover:bg-raised`,R=`${I} border border-display bg-display text-paper hover:opacity-85`,z=`${I} border border-transparent bg-rubik-red text-white hover:opacity-85`,B=`inline-flex shrink-0 cursor-pointer items-center gap-1 rounded-full border border-wire bg-surface px-3 py-1 text-label font-medium text-primary transition-colors duration-150 hover:bg-raised disabled:cursor-default disabled:opacity-40 ${F}`;`${F}`;var V=`inline-flex cursor-pointer items-center gap-1.5 border-none bg-transparent p-0 text-meta font-medium text-secondary transition-colors hover:text-display`,H=`text-label font-semibold text-secondary`,U=`mb-1.5 mt-3 block text-label font-medium text-secondary`,W=`w-full rounded-control border border-wire bg-surface px-3 py-2.5 text-sm text-primary outline-none transition-shadow focus:border-transparent focus:shadow-focus`,G=`${W} lp-select cursor-pointer`,K={animation:`runPulse 1.1s ease-in-out infinite`},q={background:`var(--color-rubik-yellow)`,...K};function J({message:e,onDismiss:t,className:n=`mb-2`}){return(0,M.jsxs)(`div`,{className:`flex items-start gap-2 text-body text-accent ${n}`,children:[(0,M.jsx)(`span`,{className:`mt-[5px] size-2 shrink-0 rounded-full bg-rubik-red`,"aria-hidden":!0}),(0,M.jsx)(`span`,{children:e}),t&&(0,M.jsx)(`button`,{type:`button`,onClick:t,className:`ml-auto shrink-0 cursor-pointer border-none bg-transparent p-0 text-label text-secondary transition-colors hover:text-display`,children:`Dismiss`})]})}var Y={neutral:`bg-raised text-secondary`,ink:`bg-raised text-primary`,outline:`border border-hairline text-secondary`,running:`bg-running-soft text-running`,attention:`bg-running-soft text-running`,success:`bg-success-soft text-success`,accent:`bg-accent-soft text-accent`,warn:`bg-warn-soft text-warn`};function X({tone:e=`neutral`,dot:t,title:n,children:r}){return(0,M.jsxs)(`span`,{title:n,className:`inline-flex h-[22px] items-center gap-1.5 rounded-full px-2.5 text-caption font-medium ${Y[e]}`,children:[t&&(0,M.jsx)(`span`,{className:`size-1.5 rounded-full`,style:t===`pulse`?q:{background:`var(--color-rubik-green)`}}),r]})}function Z({className:e=``}){return(0,M.jsx)(`div`,{className:`text-body text-disabled ${e}`,children:`Loading…`})}function Q({run:e,colorText:t}){return(0,M.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 font-medium`,style:t?{color:O(e)}:void 0,children:[(0,M.jsx)(`span`,{className:`size-2 rounded-full`,style:{background:O(e),opacity:k(e)}}),A(e)]})}export{m as A,T as C,S as D,b as E,u as M,o as N,x as O,c as P,C as S,_ as T,O as _,L as a,w as b,V as c,U as d,K as f,P as g,G as h,Q as i,f as j,h as k,B as l,H as m,Z as n,z as o,q as p,X as r,R as s,J as t,W as u,A as v,j as w,g as x,k as y};
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { o as __toESM } from "../_runtime.mjs";
|
|
2
2
|
import { g as require_react, h as require_jsx_runtime, s as TooltipProvider } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { T as selectCls, _ as inputCls, a as btn, l as btnSm, o as btnDanger, r as Pill, s as btnPrimary, t as ErrorBanner, v as labelCls } from "./ui-dMEI4sHj.mjs";
|
|
4
4
|
import { d as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
5
|
-
import { _ as loadOlderRuns, d as getConfig, g as listMyTeams, h as listLoops, n as GitHubIcon, r as PievoLogo, t as GITHUB_URL, v as mintClaim } from "./SocialLinks-
|
|
5
|
+
import { _ as loadOlderRuns, d as getConfig, g as listMyTeams, h as listLoops, n as GitHubIcon, r as PievoLogo, t as GITHUB_URL, v as mintClaim } from "./SocialLinks-Bt7huqfS.mjs";
|
|
6
6
|
import { t as setActiveTeamCookie } from "./teamCookie-B7hLOIie.mjs";
|
|
7
|
-
import { a as getTeamDetail, d as revokeTeamInvite, f as setTeamMemberRole, i as deleteTeam, l as removeTeamMember, n as createTeam, o as leaveTeam, r as createTeamInvite, s as listManagedTeams, t as addTeamMember, u as renameTeam } from "./teamFns-
|
|
8
|
-
import { r as
|
|
9
|
-
|
|
10
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/DashboardView-C2LdV6J0.js
|
|
7
|
+
import { a as getTeamDetail, d as revokeTeamInvite, f as setTeamMemberRole, i as deleteTeam, l as removeTeamMember, n as createTeam, o as leaveTeam, r as createTeamInvite, s as listManagedTeams, t as addTeamMember, u as renameTeam } from "./teamFns-gilVwh7z.mjs";
|
|
8
|
+
import { a as ModalSection, c as listMachines, i as ModalHead, l as mergeRuns, n as MachinesModal, r as Modal, s as daemonConnectCommand, t as LoopOverview } from "./MachinesModal-BsCfGuwp.mjs";
|
|
9
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/DashboardView-DqZLADCp.js
|
|
11
10
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
12
11
|
var import_jsx_runtime = require_jsx_runtime();
|
|
13
12
|
function LoopCard({ loop, onOpen, onPickRun }) {
|
|
14
13
|
const en = loop.enabled;
|
|
15
|
-
const last = lastRunOf(loop);
|
|
16
|
-
const lifecycle = deriveLoopLifecycle(loop);
|
|
17
|
-
const hydrated = useHydrated();
|
|
18
14
|
const [older, setOlder] = (0, import_react.useState)([]);
|
|
19
15
|
const runs = (0, import_react.useMemo)(() => older.length ? mergeRuns(loop.runs ?? [], older) : loop.runs ?? [], [loop.runs, older]);
|
|
20
16
|
const newestRun = runs.at(-1);
|
|
@@ -30,92 +26,17 @@ function LoopCard({ loop, onOpen, onPickRun }) {
|
|
|
30
26
|
if (more.length) setOlder((prev) => mergeRuns(prev, more));
|
|
31
27
|
return more.length;
|
|
32
28
|
};
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
34
30
|
onClick: () => onOpen(loop.id),
|
|
35
31
|
className: `mb-[18px] cursor-pointer rounded-card border border-hairline bg-surface px-[26px] pb-5 pt-[22px] shadow-card transition-colors hover:border-wire ${en || latestIncidentRun?.reportIncident || loop.pauseCause?.kind === "failure-streak" || loop.pauseCause?.kind === "blocked" ? "" : "opacity-60"}`,
|
|
36
32
|
style: { animation: "fadeIn .25s cubic-bezier(0.25,0.1,0.25,1) both" },
|
|
37
|
-
children:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
e.stopPropagation();
|
|
45
|
-
onOpen(loop.id);
|
|
46
|
-
},
|
|
47
|
-
className: "cursor-pointer rounded-sm text-left text-[17px] font-semibold tracking-[-0.01em] text-display outline-none focus-visible:ring-2 focus-visible:ring-interactive focus-visible:ring-offset-4 focus-visible:ring-offset-surface",
|
|
48
|
-
children: loop.name
|
|
49
|
-
}),
|
|
50
|
-
lifecycle === "stopping" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, {
|
|
51
|
-
tone: "running",
|
|
52
|
-
dot: "pulse",
|
|
53
|
-
children: "Stopping"
|
|
54
|
-
}) : lifecycle === "paused-finishing" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, { children: loop.pauseCause?.kind === "blocked" ? "Paused — blocked · current run finishing" : loop.pauseCause?.kind === "owner" ? "Paused by owner · current run finishing" : "Paused · current run finishing" }) : lifecycle === "deleting" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, { children: "Deleting" }) : loop.running ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, {
|
|
55
|
-
tone: "running",
|
|
56
|
-
dot: "pulse",
|
|
57
|
-
children: "Running"
|
|
58
|
-
}) : loop.queued && loop.reconciliationBlocking ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, {
|
|
59
|
-
tone: "outline",
|
|
60
|
-
children: "Queued · waiting for machine recovery"
|
|
61
|
-
}) : loop.queued ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, {
|
|
62
|
-
tone: "outline",
|
|
63
|
-
children: "Queued"
|
|
64
|
-
}) : null,
|
|
65
|
-
lifecycle === "paused" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, {
|
|
66
|
-
tone: loop.pauseCause?.kind === "blocked" ? "accent" : void 0,
|
|
67
|
-
children: loop.pauseCause?.kind === "blocked" ? "Paused — blocked" : loop.pauseCause?.kind === "failure-streak" ? "Paused automatically" : loop.pauseCause?.kind === "owner" ? "Paused by owner" : "Paused"
|
|
68
|
-
}),
|
|
69
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
70
|
-
className: "ml-auto min-w-0 text-right text-meta text-secondary",
|
|
71
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
72
|
-
className: "whitespace-nowrap",
|
|
73
|
-
children: [
|
|
74
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
75
|
-
className: "text-primary",
|
|
76
|
-
title: loop.schedule.mode === "cron" ? loop.schedule.cron : void 0,
|
|
77
|
-
children: loop.schedule.mode === "continuous" ? `continuous · ${loop.schedule.delayMinutes}m` : `${cronText(loop.schedule.cron)} · ${loop.schedule.timezone} · ${loop.schedule.overlap}`
|
|
78
|
-
}),
|
|
79
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
80
|
-
className: "mx-2.5 text-wire",
|
|
81
|
-
children: "·"
|
|
82
|
-
}),
|
|
83
|
-
loop.agent
|
|
84
|
-
]
|
|
85
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
86
|
-
className: "mt-1 truncate text-caption text-disabled",
|
|
87
|
-
title: loop.workdir,
|
|
88
|
-
children: [
|
|
89
|
-
loop.workdir,
|
|
90
|
-
" · Model: ",
|
|
91
|
-
loop.model || "default",
|
|
92
|
-
" · Reasoning: ",
|
|
93
|
-
loop.reasoningEffort || "default"
|
|
94
|
-
]
|
|
95
|
-
})]
|
|
96
|
-
})
|
|
97
|
-
]
|
|
98
|
-
}),
|
|
99
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timeline, {
|
|
100
|
-
loop,
|
|
101
|
-
runs,
|
|
102
|
-
total: loop.runCount,
|
|
103
|
-
onLoadMore: loadMore,
|
|
104
|
-
onPickRun: (run) => onPickRun(loop.id, run)
|
|
105
|
-
}),
|
|
106
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
107
|
-
className: "mt-[18px] flex items-center gap-2 text-label text-secondary",
|
|
108
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [loop.runCount, " runs"] }), last && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
109
|
-
"· last ",
|
|
110
|
-
dotLabel(last),
|
|
111
|
-
hydrated && ` · ${rel(last.ts)}`
|
|
112
|
-
] })]
|
|
113
|
-
}),
|
|
114
|
-
latestIncidentRun?.reportIncident && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
115
|
-
className: "mt-1.5 text-label text-secondary",
|
|
116
|
-
children: latestIncidentRun.phase === "error" ? "Last run failed · Terminal report rejected" : "Last run telemetry warning · Terminal report rejected"
|
|
117
|
-
})
|
|
118
|
-
]
|
|
33
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoopOverview, {
|
|
34
|
+
loop,
|
|
35
|
+
runs,
|
|
36
|
+
onLoadMore: loadMore,
|
|
37
|
+
onPickRun: (run) => onPickRun(loop.id, run),
|
|
38
|
+
onOpen: () => onOpen(loop.id)
|
|
39
|
+
})
|
|
119
40
|
});
|
|
120
41
|
}
|
|
121
42
|
/**
|
|
@@ -868,7 +789,7 @@ function DashboardView({ teamId, initial }) {
|
|
|
868
789
|
className: "mb-5 mt-12 flex items-baseline gap-2.5",
|
|
869
790
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", {
|
|
870
791
|
className: "text-body font-semibold text-display",
|
|
871
|
-
children: "
|
|
792
|
+
children: "Loops"
|
|
872
793
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
873
794
|
className: "text-label text-secondary",
|
|
874
795
|
children: loops.length ? `${activeOn} scheduled · ${loops.length} total` : ""
|