vuer 0.0.32rc5__py3-none-any.whl → 0.0.32rc7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of vuer might be problematic. Click here for more details.

@@ -0,0 +1 @@
1
+ import{_ as u}from"./chunk-cf010ec4.js";import{n as l,o as c}from"./chunk-dc0a8b73.js";import{r as a}from"./chunk-3010a972.js";import"./chunk-d9bdcef8.js";const m={all:255,foregrounds:2,backgrounds:1};let s=!1;async function p(e=t=>{s=t}){if(typeof window>"u")return;const{LumaSplatsThree:o}=await u(()=>import("./chunk-f856f090.js"),["assets/chunks/chunk-f856f090.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js"]);c({LumaSplats:o}),e(!0)}function L({src:e,semantics:t="all",...o}){const[n,i]=a.useState(s);return a.useEffect(()=>{s||(async()=>{console.log("registering LumaSplats component. This should occur only once."),await p(r=>{i(r),s=r})})()},[]),n?l.jsx("lumaSplats",{semanticsMask:m[t],source:e,...o}):null}export{L as default};
@@ -0,0 +1,2 @@
1
+ import{j as ie,k as a,p,m as gt,b as g,s as ht,n as pt,q as L,r as w,t as F,u as b,v as ke,d as v,w as M,x as A,y as Y,z as N,A as $,B as Fe,C as se,o as m,a as mt,l as G,D as Ee,E as Te,F as $e,G as yt,H as bt,I as U,J as _t,K as Pt,L as St,c as vt,M as Ie,N as Rt,O as Ae,P as wt,Q as E,R as Ct,S as Ot,T as ae,g as le,i as Q,h as xt,U as kt}from"../chunks/chunk-3d735b94.js";import{_ as x}from"../chunks/chunk-cf010ec4.js";function C(e){return typeof e!="object"||e===null?!1:Object.getPrototypeOf(e)===null?!0:e.constructor.name==="Object"}function ye(e){return"["+e.map(t=>"'"+t+"'").join(", ")+"]"}function X(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&!("value"in n)&&!!n.get}function Ft(e){return typeof e=="object"&&e!==null&&"then"in e&&ie(e.then)}function Et(e){return[null,void 0].includes(e)?String(e):["boolean","number","string"].includes(typeof e)?JSON.stringify(e):null}function Tt(e){return e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}function I(e,t,n){const r=It(e,t);if(r===null)return null;const{value:o,definedAt:i}=r;return n&&$t(o,n,t,i),r}function $t(e,t,n,r){a(e!==null);const o=typeof e;if(o===t)return;const i=Et(e),l=i!==null?`value ${p.cyan(i)}`:`type ${p.cyan(o)}`,c=`${gt("Config",n,{definedAt:r})} has an invalid ${l}: it should be a ${p.cyan(t)} instead`;g(!1,c)}function It(e,t){const n=e.configValues[t];return!n||n.value===null?null:n}const At=["default"],Nt=Object.freeze(Object.defineProperty({__proto__:null,exportNames:At},Symbol.toStringTag,{value:"Module"})),jt=["default"],Ht=Object.freeze(Object.defineProperty({__proto__:null,exportNames:jt},Symbol.toStringTag,{value:"Module"})),Lt=["default"],Bt=Object.freeze(Object.defineProperty({__proto__:null,exportNames:Lt},Symbol.toStringTag,{value:"Module"})),Dt=["default"],Wt=Object.freeze(Object.defineProperty({__proto__:null,exportNames:Dt},Symbol.toStringTag,{value:"Module"})),Vt=["Page"],Ut=Object.freeze(Object.defineProperty({__proto__:null,exportNames:Vt},Symbol.toStringTag,{value:"Module"})),Gt=["render","passToClient"],zt=Object.freeze(Object.defineProperty({__proto__:null,exportNames:Gt},Symbol.toStringTag,{value:"Module"})),Kt=["render","onHydrationEnd","onPageTransitionStart","onPageTransitionEnd","clientRouting","hydrationCanBeAborted"],Mt=Object.freeze(Object.defineProperty({__proto__:null,exportNames:Kt},Symbol.toStringTag,{value:"Module"})),ue={},Ne={},Yt={},J={},Jt=[],je={},qt=!0,Qt=[],Xt={configValuesImported:[]},Zt=Object.assign({"/pages/hands.page.tsx":()=>x(()=>import("./pages_hands.page.f0c716fa.js"),["assets/entries/pages_hands.page.f0c716fa.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js"]),"/pages/index.page.tsx":()=>x(()=>import("./pages_index.page.55624b51.js"),["assets/entries/pages_index.page.55624b51.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js","assets/chunks/chunk-98964cd2.js"]),"/pages/stereo_plane.page.tsx":()=>x(()=>import("./pages_stereo_plane.page.360c58a8.js"),["assets/entries/pages_stereo_plane.page.360c58a8.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js","assets/chunks/chunk-98964cd2.js"]),"/pages/video_plane.page.tsx":()=>x(()=>import("./pages_video_plane.page.35550a3d.js"),["assets/entries/pages_video_plane.page.35550a3d.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js"]),"/renderer/_error.page.tsx":()=>x(()=>import("./renderer_error.page.3723d86c.js"),["assets/entries/renderer_error.page.3723d86c.js","assets/chunks/chunk-3010a972.js"])}),en={...Zt};ue[".page"]=en;const tn=Object.assign({"/pages/hands.page.tsx":Nt,"/pages/index.page.tsx":Ht,"/pages/stereo_plane.page.tsx":Bt,"/pages/video_plane.page.tsx":Wt,"/renderer/_error.page.tsx":Ut}),nn={...tn};J[".page"]=nn;const rn=Object.assign({"/renderer/_default.page.server.tsx":zt}),on={...rn};J[".page.server"]=on;const sn=Object.assign({}),an={...sn};Ne[".page.route"]=an;const ln=Object.assign({"/renderer/_default.page.client.tsx":()=>x(()=>import("./renderer_default.page.client.9822d975.js"),["assets/entries/renderer_default.page.client.9822d975.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-d9bdcef8.js","assets/static/default.page.client.7be06a4d.css"])}),un={...ln};ue[".page.client"]=un;const cn=Object.assign({"/renderer/_default.page.client.tsx":Mt}),fn={...cn};J[".page.client"]=fn;const dn=Object.assign({"/renderer/_default.page.server.tsx":()=>x(()=>import("./renderer_default.page.server.extractAssets.4ed993c7.js"),[])}),gn={...dn};je[".page.server"]=gn;const hn=Object.freeze(Object.defineProperty({__proto__:null,isGeneratedFile:qt,neverLoaded:je,pageConfigGlobalSerialized:Xt,pageConfigsSerialized:Qt,pageFilesEager:Ne,pageFilesExportNamesEager:J,pageFilesExportNamesLazy:Yt,pageFilesLazy:ue,pageFilesList:Jt},Symbol.toStringTag,{value:"Module"}));ht(hn);function pn(){pt(),L()}function mn(){var r,o,i,l;const e=!!((o=(r=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)==null?void 0:r.renderers)!=null&&o.size),t=!!((l=(i=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)==null?void 0:i.rendererInterfaces)!=null&&l.size),n=!!window.__vite_plugin_react_preamble_installed__;return e||t||n}function He(e,t){const n=Object.keys,r=typeof e;return e&&t&&r==="object"&&r===typeof t?n(e).length===n(t).length&&n(e).every(i=>He(e[i],t[i])):e===t}function yn(e,t){return w(e)&&w(t)&&e.constructor===t.constructor&&He({...e,stack:null},{...t,stack:null})&&t.message===t.message}function z(e){window.location.href=e}function bn(e){return new Promise(t=>setTimeout(t,e))}function _n(e,t){let n=!1;return()=>{n||(n=!0,setTimeout(()=>{n=!1,e()},t))}}function Le(e){window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e()})}function Pn(e){window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()})}function Sn(e){return!e.startsWith("/")&&!e.startsWith(".")&&!e.startsWith("?")&&e!==""}pn();const te=F("history.ts",{});function Be(){let e=window.history.state;e||(e={});let t=!1;"timestamp"in e||(t=!0,e.timestamp=de()),"scrollPosition"in e||(t=!0,e.scrollPosition=fe()),"triggedBy"in e||(e.triggedBy="browser"),De(e),t&&ge(e)}function ce(){const e=window.history.state||{};return De(e),e}function fe(){return{x:window.scrollX,y:window.scrollY}}function de(){return new Date().getTime()}function be(){const e=fe(),t=ce();ge({...t,scrollPosition:e})}function vn(e,t){if(t)ge(ce(),e);else{const n=de();Rn({timestamp:n,scrollPosition:null,triggedBy:"vike"},e)}}function De(e){if(a(w(e)),"timestamp"in e){const{timestamp:t}=e;a(typeof t=="number")}if("scrollPosition"in e){const{scrollPosition:t}=e;t!==null&&a(b(t,"x","number")&&b(t,"y","number"))}}function ge(e,t){window.history.replaceState(e,"",t??null)}function Rn(e,t){We(e,"",t)}function wn(){te.pushStateOriginal=te.pushStateOriginal??window.history.pushState,window.history.pushState=(e={},...t)=>{g(e==null||w(e),"history.pushState(state) argument state must be an object");const n={scrollPosition:fe(),timestamp:de(),...e,triggedBy:"user"};return We(n,...t)}}function We(...e){te.pushStateOriginal.apply(history,e)}async function Cn(e,t){const r=ke(e,t).filter(i=>i.fileType===".page.server");return await Promise.all(r.map(async i=>{i.exportNames||(a(i.loadExportNames,t),await i.loadExportNames())})),{hasOnBeforeRenderServerSideOnlyHook:r.some(({exportNames:i})=>(a(i),i.includes("onBeforeRender")))}}const _e=["urlPathname","urlParsed"],On=["Page","pageExports","exports"];function Ve(e){[...On,..._e].forEach(n=>{n in e&&(_e.includes(n)?(a(n.startsWith("url")),v(!1,`pageContext.${n} is already available in the browser when using Client Routing; adding '${n}' to passToClient has no effect`,{onlyOnce:!0})):v(!1,`pageContext.${n} is a built-in that cannot be overriden; adding '${n}' to passToClient has no effect`,{onlyOnce:!0}),delete e[n])})}const xn="/";function kn(e,t,n){const{pathnameOriginal:r,searchOriginal:o,hashOriginal:i}=M(e,xn);e.startsWith("/")&&a(e===`${r}${o||""}${i||""}`,{url:e});const l=r.endsWith("/");let s;return n&&r!=="/"?(l?s=A(r,0,-1):s=r,a(!s.endsWith("/"),{url:e}),a(s!=="")):s=r+(l?"":"/")+"index",a(s),s=s+t,`${s}${o||""}${i||""}`}const Fn=".pageContext.json",En=!1;function Tn(e){return kn(e,Fn,En)}function Ue(e,{hookName:t,hookFilePath:n}){if(e==null)return;a(!t.endsWith(")"));const r=`The ${p.cyan("pageContext")} object provided by the ${t}() hook defined by ${n}`;g(w(e),`${r} should be an object (but it's ${p.cyan(`typeof pageContext === ${JSON.stringify(typeof e)}`)} instead)`),g(!("_objectCreatedByVike"in e),`${r} shouldn't be the whole ${p.cyan("pageContext")} object, see https://vike.dev/pageContext-manipulation#do-not-return-entire-pagecontext`),v(!("_pageId"in e),`${r} sets ${p.cyan("pageContext._pageId")} which means that Vike's routing is overriden. This is an experimental feature: make sure to contact a vike maintainer before using this.`,{onlyOnce:!0}),g(!("is404"in e),`${r} sets ${p.cyan("pageContext.is404")} which is forbidden, use ${p.cyan("throw render()")} instead, see https://vike.dev/render`)}function $n(e,t,n){a(!n.endsWith(" "));const r=[],o=Object.keys(e);for(const i of o)t.includes(i)||r.push(i);g(r.length===0,[n,"returned an object with following unknown keys:",ye(r)+".","Only following keys are allowed:",ye(t)+"."].join(" "))}function In(e,t){if(e==null)return;const n=`The onBeforeRender() hook defined by ${t}`;g(C(e),`${n} should return a plain JavaScript object, ${p.cyan("undefined")}, or ${p.cyan("null")}`),$n(e,["pageContext"],n),e.pageContext&&Ue(e.pageContext,{hookName:"onBeforeRender",hookFilePath:t})}function An(e,t){if(!C(e))return!1;for(const n of Object.keys(e))if(!t.includes(n))return!1;return!0}function Nn(e){return typeof e=="object"&&e!==null&&Object.values(e).every(t=>typeof t=="string")}function jn(e,t,n=r=>r){if(a(e.length>0),e.length===1)return n(e[0]);const r=e.slice(0,e.length-1),o=e[e.length-1];return r.map(n).join(", ")+` ${t} `+n(o)}Y()&&L();async function Hn(e,t){let n;if(e._pageFilesAll.length>0?(a(e._pageConfigs.length===0),n=Ln(e._pageId,e._pageFilesAll)):n=N(e,"guard"),!n)return;const r=n.hookFn;let o=e;const i=t(e);i&&(o=i);const l=await $(()=>r(o),n);g(l===void 0,`The guard() hook of ${n.hookFilePath} returns a value, but guard() doesn't accept any return value`)}function Ln(e,t){const n=t.find(c=>c.pageId===e&&c.fileType===".page.route");if(!n)return null;const{filePath:r,fileExports:o}=n;a(o);const i=o.guard;if(!i)return null;const l=r,s=Fe("guard");return g(ie(i),`guard() defined by ${l} should be a function`),{hookFn:i,hookName:"guard",hookFilePath:l,hookTimeout:s}}function Bn(e){const t=new Error("AbortRender");return m(t,{_pageContextAbort:e,[Ge]:!0}),t}const Ge="_isAbortError";function Pe(e){return typeof e=="object"&&e!==null&&Ge in e}function Dn(e){return e._urlRewrite||e._urlRedirect||e.abortStatusCode?(a(b(e,"_abortCall","string")),!0):!1}function Wn(e,t,n){if(t)return;const r=n._urlRewrite??n.urlOriginal;a(r);const o=e._pageContextAbort._abortCall;se(!1,`${p.cyan(o)} intercepted while rendering ${p.cyan(r)}`,{onlyOnce:!1})}function Vn(e){Un(e);const t={_urlRewrite:null};return e.forEach(n=>{Object.assign(t,n)}),t}function Un(e){const t=[];e.forEach(n=>{const r=n._urlRewrite;{const o=t.indexOf(r);if(o!==-1){const i=[...t.slice(o),r].map(l=>`render('${l}')`).join(" => ");g(!1,`Infinite loop of render() calls: ${i}`)}}t.push(r)})}function Gn(e,t){const n=[e>0&&p.cyan("throw render('/some-url')"),t>0&&p.cyan("throw redirect('/some-url')")].filter(Boolean).join(" and ");g(e+t<=7,`Maximum chain length of 7 ${n} exceeded. Did you define an infinite loop of ${n}?`)}const ze=F("router/getPageContext.ts",{});async function zn(e){const t=mt();Ve(t),m(t,{isHydration:!0,_hasPageContextFromClient:!1}),m(t,await G(t._pageId,e));{const n={...e,...t};if(Je(n)){const r=await Me(n);m(t,r)}}return Ye(t),t}async function Kn(e){const t=Ee(e._pageFilesAll,e._pageConfigs);if(!t)throw new Error("No error page defined.");const n={isHydration:!1,_pageId:t};return m(n,await Ke({...e,...n},!0)),n}async function Mn(e){const t={isHydration:!1,_pageId:e._pageId};return m(t,await Ke({...e,...t},!1)),Ye(t),t}async function Ke(e,t){let n={};m(n,{_hasPageContextFromClient:!1}),m(n,await G(e._pageId,e));let r=!1;if(!t&&await Yn({...e,...n})){const o=await qn(e);if(r=!0,!o._isError)m(n,o);else{const i=Ee(e._pageFilesAll,e._pageConfigs);a(i),n={},m(n,{_hasPageContextFromClient:!1,isHydration:!1,_pageId:i}),m(n,await G(n._pageId,e)),a(b(o,"is404","boolean")),a(b(o,"pageProps","object")),a(b(o.pageProps,"is404","boolean")),a(!("serverSideError"in o)),m(n,o)}}else m(n,{_hasPageContextFromServer:!1}),t||await Hn({...e,...n},o=>Te(o,!0));{const o={...e,...n};if(Je(o)||!r){const i=await Me(o);m(n,i)}else a(r)}return n}async function Me(e){const t=N(e,"onBeforeRender");if(!t)return{_hasPageContextFromClient:!1};const n=t.hookFn,r={_hasPageContextFromClient:!0},o=Te({...e,...r},!0),i=await $(()=>n(o),t);In(i,t.hookFilePath);const l=i==null?void 0:i.pageContext;return m(r,l),r}function Ye(e){e._pageContextInitHasClientData&&(ze.pageContextInitHasClientData=!0)}async function Yn(e){return!!ze.pageContextInitHasClientData||await Jn(e)}async function Jn(e){var t;if(e._pageConfigs.length>0){const n=$e(e._pageId,e._pageConfigs),r=((t=I(n,"onBeforeRenderEnv"))==null?void 0:t.value)??{};return a(w(r)),!!r.server&&!r.client}else{const{hasOnBeforeRenderServerSideOnlyHook:n}=await Cn(e._pageFilesAll,e._pageId);return n}}function Je(e){var t;if(e._pageConfigs.length>0){const n=$e(e._pageId,e._pageConfigs),r=((t=I(n,"onBeforeRenderEnv"))==null?void 0:t.value)??{};return a(w(r)),!!r.client&&!r.server}else return!1}async function qn(e){const t=Tn(e._urlRewrite??e.urlOriginal),n=await fetch(t);{const i=n.headers.get("content-type"),l="application/json",s=i&&i.includes(l);if(!s&&n.status===404)throw z(e.urlOriginal),Xn();g(s,`Wrong Content-Type for ${t}: it should be ${l} but it's ${i} instead. Make sure to properly use pageContext.httpResponse.headers, see https://vike.dev/renderPage`)}const r=await n.text(),o=yt(r);if(a(w(o)),"serverSideError"in o)throw bt("The pageContext object couldn't be fetched from the server as an error occurred on the server-side. Check your server logs.");if(Dn(o))throw Bn(o);return a(b(o,"_pageId","string")),Ve(o),m(o,{_hasPageContextFromServer:!0}),o}function Qn(e){return w(e)&&!!e._alreadyServerSideRouted}function Xn(){const e=new Error("Page doesn't exist");return Object.assign(e,{_alreadyServerSideRouted:!0}),e}function qe(e,t=!0){a(e.urlOriginal),"urlPathname"in e&&(a(typeof e.urlPathname=="string"),a(X(e,"urlPathname"))),"urlParsed"in e&&a(X(e,"urlParsed")),"url"in e&&a(X(e,"url")),Object.defineProperty(e,"urlPathname",{get:Xe,enumerable:t,configurable:!0}),Object.defineProperty(e,"url",{get:Zn,enumerable:!1,configurable:!0}),Object.defineProperty(e,"urlParsed",{get:er,enumerable:t,configurable:!0})}function Qe(e){let t=e._urlHandler;t||(t=o=>o);let n=e._urlRewrite??e.urlLogical??e.urlOriginal;n=t(n);const r=e._baseServer;return a(n&&typeof n=="string"),a(r.startsWith("/")),M(n,r)}function Xe(){const{pathname:e}=Qe(this),t=e;return a(t.startsWith("/")),t}function Zn(){return v(!1,"`pageContext.url` is outdated. Use `pageContext.urlPathname`, `pageContext.urlParsed`, or `pageContext.urlOriginal` instead. (See https://vike.dev/migration/0.4.23 for more information.)",{onlyOnce:!0,showStackTrace:!0}),Xe.call(this)}function er(){const e=Qe(this),{origin:t,pathname:n,pathnameOriginal:r,search:o,searchAll:i,searchOriginal:l,hash:s,hashOriginal:c}=e,d=Y(),_=u=>{v(d,`pageContext.urlParsed.${u} isn't available on the server-side (HTTP requests don't include the URL hash by design)`,{onlyOnce:!0,showStackTrace:!0})},f={origin:t,pathname:n,pathnameOriginal:r,search:o,searchAll:i,searchOriginal:l,get hash(){return _("hash"),s},get hashOriginal(){return _("hashOriginal"),c},get hashString(){return v(!1,"pageContext.urlParsed.hashString has been renamed to pageContext.urlParsed.hashOriginal",{onlyOnce:!0,showStackTrace:!0}),_("hashString"),c},get searchString(){return v(!1,"pageContext.urlParsed.searchString has been renamed to pageContext.urlParsed.searchOriginal",{onlyOnce:!0,showStackTrace:!0}),l}};return D(f,"hashString"),D(f,"searchString"),d||(D(f,"hash"),D(f,"hashOriginal")),f}function D(e,t){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(e,t,{...n,enumerable:!1})}function tr(e){a(typeof e.urlOriginal=="string"),a(typeof e.urlPathname=="string"),a(C(e.urlParsed)),a(e.urlPathname===e.urlParsed.pathname)}function nr(e,t){const r=t.filter(({filesystemRoot:i})=>e.startsWith(i)).sort(U(({filesystemRoot:i})=>i.length))[0];let o;if(r){const{filesystemRoot:i,urlRoot:l}=r,s={pageId:e,filesystemRoot:i,urlRoot:l};a(l.startsWith("/")&&e.startsWith("/")&&i.startsWith("/"),s),a(e.startsWith(i),s),i!=="/"?(a(!i.endsWith("/"),s),o=A(e,i.length,0)):o=e,a(o.startsWith("/"),s),o=l+(l.endsWith("/")?"":"/")+A(o,1,0)}else o=e;return a(o.startsWith("/")),o=o.split("/").filter(i=>i!=="pages"&&i!=="src"&&i!=="index").join("/"),a(!o.includes(".page.")),a(!o.endsWith(".")),o.endsWith("/index")&&(o=A(o,0,-6)),o===""&&(o="/"),a(o.startsWith("/")),a(!o.endsWith("/")||o==="/"),o}async function rr(e,t,n){tr(t);let r=e(t);if(Ze(r,`The Route Function ${n}`),r=await r,r===!1)return null;if(r===!0&&(r={}),g(C(r),`The Route Function ${n} should return a boolean or a plain JavaScript object (but it's ${p.cyan(`typeof result === ${JSON.stringify(typeof r)}`)} instead)`),"match"in r){const{match:l}=r;if(g(typeof l=="boolean",`The ${p.cyan("match")} value returned by the Route Function ${n} should be a boolean.`),!l)return null}let o=null;"precedence"in r&&(o=r.precedence,g(typeof o=="number",`The ${p.cyan("precedence")} value returned by the Route Function ${n} should be a number.`)),et(r,`The ${p.cyan("routeParams")} object returned by the Route Function ${n} should`);const i=r.routeParams||{};return g(!("pageContext"in r),`Providing ${p.cyan("pageContext")} in Route Functions is prohibited, see https://vike.dev/route-function#cannot-provide-pagecontext`),a(C(i)),Object.keys(r).forEach(l=>{g(l==="match"||l==="routeParams"||l==="precedence",`The Route Function ${n} returned an object with an unknown property ${p.cyan(l)} (the known properties are ${p.cyan("match")}, ${p.cyan("routeParams")}, and ${p.cyan("precedence")})`)}),{precedence:o,routeParams:i}}function Ze(e,t){v(!Ft(e),`${t} returned a promise, but asynchronous routing is deprecated and will be removed in the next major release, see https://vike.dev/route-function#async`,{onlyOnce:!0})}function Se(){const e=p.cyan("iKnowThePerformanceRisksOfAsyncRouteFunctions");v(!1,`${e} is deprecated and will be removed in the next major release`,{onlyOnce:!0})}function et(e,t){a(t.endsWith(" should")),b(e,"routeParams")&&(a(t.endsWith(" should")),g(C(e.routeParams),`${t} be a plain JavaScript object.`),g(Nn(e.routeParams),`${t} only hold string values.`))}async function or(e,t,n,r){await Promise.all(e.filter(s=>s.fileType===".page.route").map(s=>{var c;return(c=s.loadFile)==null?void 0:c.call(s)}));const{onBeforeRouteHook:o,filesystemRoots:i}=sr(e,t,n);return{pageRoutes:ir(i,e,t,r),onBeforeRouteHook:o}}function ir(e,t,n,r){const o=[];let i=[...r];if(n.length>0){a(e===null);const l=!0;n.filter(s=>!s.isErrorPage).forEach(s=>{const c=s.pageId;i=lr(i,c);let d=null;{const _="route",f=I(s,_);if(f){const u=f.value,y=_t(f.definedAt,_);typeof u=="string"?d={pageId:c,comesFromV1PageConfig:l,routeString:u,routeDefinedAt:y,routeType:"STRING"}:(a(ie(u)),I(s,"iKnowThePerformanceRisksOfAsyncRouteFunctions","boolean")&&Se(),d={pageId:c,comesFromV1PageConfig:l,routeFunction:u,routeDefinedAt:y,routeType:"FUNCTION"})}}if(!d){const{routeFilesystem:_}=s;a(_);const{routeString:f,definedBy:u}=_;a(_.routeString.startsWith("/")),d={pageId:c,routeFilesystemDefinedBy:u,comesFromV1PageConfig:l,routeString:f,routeDefinedAt:null,routeType:"FILESYSTEM"}}a(d),o.push(d)})}if(n.length===0){a(e);const l=!1;i.filter(s=>!Pt(s)).forEach(s=>{const c=t.find(d=>d.pageId===s&&d.fileType===".page.route");if(!c||!("default"in c.fileExports)){const d=nr(s,e);a(d.startsWith("/")),a(!d.endsWith("/")||d==="/"),o.push({pageId:s,comesFromV1PageConfig:l,routeString:d,routeDefinedAt:null,routeFilesystemDefinedBy:`${s}.page.*`,routeType:"FILESYSTEM"})}else{const{filePath:d,fileExports:_}=c;if(a(_.default),b(_,"default","string")){const f=_.default;g(f.startsWith("/"),`A Route String should start with a leading slash '/' but ${d} has \`export default '${f}'\`. Make sure to \`export default '/${f}'\` instead.`),o.push({pageId:s,comesFromV1PageConfig:l,routeString:f,routeDefinedAt:d,routeType:"STRING"});return}if(b(_,"default","function")){const f=_.default;"iKnowThePerformanceRisksOfAsyncRouteFunctions"in _&&Se(),o.push({pageId:s,comesFromV1PageConfig:l,routeFunction:f,routeDefinedAt:d,routeType:"FUNCTION"});return}g(!1,`The default export of ${d} should be a string or a function.`)}})}return o}function sr(e,t,n){if(t.length>0)return{onBeforeRouteHook:St(n,"onBeforeRoute"),filesystemRoots:null};let r=null;const o=[];return e.filter(i=>i.fileType===".page.route"&&i.isDefaultPageFile).forEach(({filePath:i,fileExports:l})=>{if(a(l),"onBeforeRoute"in l){g(b(l,"onBeforeRoute","function"),`\`export { onBeforeRoute }\` of ${i} should be a function.`);const{onBeforeRoute:s}=l,c="onBeforeRoute";r={hookFilePath:i,hookFn:s,hookName:c,hookTimeout:Fe(c)}}"filesystemRoutingRoot"in l&&(g(b(l,"filesystemRoutingRoot","string"),`\`export { filesystemRoutingRoot }\` of ${i} should be a string.`),g(b(l,"filesystemRoutingRoot","string"),`\`export { filesystemRoutingRoot }\` of ${i} is \`'${l.filesystemRoutingRoot}'\` but it should start with a leading slash \`/\`.`),o.push({filesystemRoot:ar(i),urlRoot:l.filesystemRoutingRoot}))}),{onBeforeRouteHook:r,filesystemRoots:o}}function ar(e){a(e.startsWith("/")),a(!e.endsWith("/"));const t=e.split("/"),n=A(t,0,-1).join("/")||"/";return a(n.startsWith("/")),a(!n.endsWith("/")||n==="/"),n}function lr(e,t){const{length:n}=e;return e=e.filter(r=>r!==t),a(e.length===n-1),e}function tt(){const e="/";return a(ur(e)),e}function ur(e){return e.startsWith("/")}const Z=F("createPageContext.ts",{});async function nt(e){Z.pageFilesData||(Z.pageFilesData=await vt(!0));const{pageFilesAll:t,allPageIds:n,pageConfigs:r,pageConfigGlobal:o}=Z.pageFilesData,{pageRoutes:i,onBeforeRouteHook:l}=await or(t,r,o,n),s=tt();a(Ie(s));const d={urlOriginal:e,_objectCreatedByVike:!0,_urlHandler:null,_urlRewrite:null,_baseServer:s,_isProduction:!0,_pageFilesAll:t,_pageConfigs:r,_pageConfigGlobal:o,_allPageIds:n,_pageRoutes:i,_onBeforeRouteHook:l};return qe(d),d}function rt(e){const t=e.getAttribute("href");return!!(t===null||t===""||Sn(t)||fr(e)||dr(t)||!gr(t)||!Rt(t)||!cr(e))}function cr(e){if(hr()){const n=e.getAttribute("data-vike-link");return n!==null&&n!=="false"}else return!0}function fr(e){const t=e.getAttribute("target"),n=e.getAttribute("rel");return t==="_blank"||t==="_external"||n==="external"||e.hasAttribute("download")}function dr(e){if(e.startsWith("#"))return!0;const t=n=>n.split("#")[0];return!!(e.includes("#")&&t(e)===t(window.location.href))}function gr(e){const t=tt();a(Ie(t));const{hasBaseServer:n}=M(e,t);return n}function hr(){return!!window._disableAutomaticLinkInterception}function pr(e,t){let n=mr(e,t);return n==="viewport"&&!e._isProduction&&(se(!1,"Viewport prefetching is disabled in development",{onlyOnce:!0}),n="hover"),{prefetchStaticAssets:n}}function mr(e,t){{const n=yr(t);if(n!==null)return n}if("prefetchLinks"in e.exports&&g(!1,"`export { prefetchLinks }` is deprecated, use `export { prefetchStaticAssets }` instead."),"prefetchStaticAssets"in e.exports){const{prefetchStaticAssets:n}=e.exports;if(n===!1)return!1;if(n==="hover")return"hover";if(n==="viewport")return"viewport";const r="prefetchStaticAssets value should be false, 'hover', or 'viewport'";g(C(n),r);const o=Object.keys(n);g(o.length===1&&o[0]==="when",r);const{when:i}=n;if(i==="HOVER"||i==="VIEWPORT"){const l=i.toLowerCase();return v(!1,`prefetchStaticAssets value \`{ when: '${i}' }\` is outdated: set prefetchStaticAssets to '${l}' instead`,{onlyOnce:!0}),l}g(!1,r)}return"hover"}function yr(e){const t=e.getAttribute("data-prefetch-static-assets"),n=e.getAttribute("data-prefetch");if(t===null&&n===null)return null;const r="The attribute data-prefetch is outdated, use data-prefetch-static-assets instead.";if(t){if(g(n===null,r),t==="hover"||t==="viewport")return t;if(t==="false")return!1;g(!1,`data-prefetch-static-assets has value "${t}" but it should instead be "false", "hover", or "viewport"`)}if(n){if(a(!t),v(!1,r,{onlyOnce:!0}),n==="true")return"viewport";if(n==="false")return"hover";g(!1,`data-prefetch has value "${n}" but it should instead be "true" or "false"`)}a(!1)}const ot=new Map;function br(e){const t=it(e);return ot.has(t)}function _r(e){const t=it(e);ot.set(t,!0)}function it(e){return M(e,"/").pathname}function j(e){return e.fileType===".css"?[]:e.exportNames?e.exportNames:(a(e.fileExports,e.filePath),Object.keys(e.fileExports))}function Pr({pageFilesClientSide:e,pageFilesServerSide:t,pageId:n}){return{isHtmlOnly:r(),isClientRouting:i()};function r(){return t.some(s=>s.pageId===n&&s.fileType===".page")?(o(),!1):!(!t.some(s=>s.pageId===n&&s.fileType===".page.server")||e.some(s=>s.pageId===n&&s.fileType===".page.client"&&j(s).includes("render")))}function o(){const l=e.some(s=>j(s).includes("render"));g(l,["No client-side `render()` hook found.","See https://vike.dev/render-modes for more information.",["Loaded client-side page files (none of them `export { render }`):",...e.map((s,c)=>` (${c+1}): ${s.filePath}`)].join(`
2
+ `)].join(" "))}function i(){return e.some(s=>j(s).includes("clientRouting"))}}function Sr({pageFilesClientSide:e,pageFilesServerSide:t,isHtmlOnly:n,isClientRouting:r}){let o=[];const i=t.filter(s=>!e.includes(s)),l=[];if(l.push(...e.map(s=>({id:s.filePath,onlyAssets:!1,eagerlyImported:!1}))),l.push(...i.map(s=>({id:s.filePath,onlyAssets:!0,eagerlyImported:!1}))),n)o=e.map(s=>s.filePath);else{const s=vr(r);l.push({id:s,onlyAssets:!1,eagerlyImported:!1}),o=[s]}return{clientEntries:o,clientDependencies:l}}function vr(e){return e?"@@vike/dist/esm/client/client-routing-runtime/entry.js":"@@vike/dist/esm/client/server-routing-runtime/entry.js"}function Rr(e,t){let n=Ae(e,t);const r=ke(e,t),{isHtmlOnly:o,isClientRouting:i}=Pr({pageFilesClientSide:n,pageFilesServerSide:r,pageId:t});o&&(n=n.filter(c=>c.isEnv("CLIENT_ONLY")&&!j(c).includes("render")),n=Cr(n));const{clientEntries:l,clientDependencies:s}=Sr({pageFilesClientSide:n,pageFilesServerSide:r,isHtmlOnly:o,isClientRouting:i});return{isHtmlOnly:o,isClientRouting:i,clientEntries:l,clientDependencies:s,pageFilesClientSide:n,pageFilesServerSide:r}}async function wr(e,t,{sharedPageFilesAlreadyLoaded:n}){const r=Ae(e,t);await Promise.all(r.map(async o=>{var i;a(o.isEnv("CLIENT_ONLY")||o.isEnv("CLIENT_AND_SERVER")),!(n&&o.isEnv("CLIENT_AND_SERVER"))&&await((i=o.loadExportNames)==null?void 0:i.call(o))}))}function Cr(e){const t=[];for(const n of e)if(t.push(n),j(n).includes("overrideDefaultPages"))break;return t}function Or(e,t,n){var r,o;if(e){const i=((r=I(e,"clientRouting","boolean"))==null?void 0:r.value)??!1;return{isClientSideRenderable:((o=I(e,"isClientSideRenderable","boolean"))==null?void 0:o.value)??!1,isClientRouting:i}}else{const{isHtmlOnly:i,isClientRouting:l}=Rr(t,n);return{isClientSideRenderable:!i,isClientRouting:l}}}async function st(e,t){await wr(t._pageFilesAll,e,{sharedPageFilesAlreadyLoaded:!1});const n=wt(t._pageConfigs,e),{isClientSideRenderable:r,isClientRouting:o}=Or(n,t._pageFilesAll,e);return r&&o}const at="@",ne=":";function xr(e,t="Invalid"){let n=`${t} Route String ${k(e)}`;g(e!=="",`${n} (empty string): set it to ${k("/")} instead`),g(["/","*"].includes(e[0]),`${n}: it should start with ${k("/")} or ${k("*")}`),g(!e.includes("**"),`${n}: set it to ${k(e.split("**").join("*"))} instead`)}function re(e,t){xr(e);const n=lt(e),r=n.map(f=>f.param?"[^/]+":f.glob?f.isLastDir?"|/.*":".*":Tt(f.static)).map(f=>`(${f})`).join(""),o=new RegExp(`^${r}/?$`),i=t.match(o);if(!i)return null;const l={},[s,...c]=i;let d=0;const _=n.filter(f=>f.glob).length>1;return n.forEach((f,u)=>{let y=c[u];if(f.param&&(l[f.param]=y),f.glob){const O=`*${_?++d:""}`;f.isLastDir&&(y=y.slice(1)),l[O]=y}}),{routeParams:l}}function lt(e){const t=[],n=o=>{const i=t[t.length-1];i!=null&&i.static?i.static+=o:t.push({static:o})},r=e.split("/");return r.forEach((o,i)=>{const l=i===0,s=i===r.length-1;kr(o)?(v(!o.startsWith(ne),`Outdated Route String ${k(e)}, use ${k(e.split(ne).join(at))} instead`,{onlyOnce:!0}),l||n("/"),t.push({param:o.slice(1)})):o==="*"&&s&&e!=="*"&&e!=="/*"?t.push({glob:!0,isLastDir:!0}):(l||n("/"),o.split("*").forEach((c,d)=>{d!==0&&t.push({glob:!0}),c!==""&&n(c)}))}),t}function W(e){const t=lt(e),n=s=>(s==null?void 0:s.split("/").filter(Boolean).length)||0;let r=0;for(const s of t){if(!s.static)break;r+=n(s.static)}const o=t.map(s=>n(s.static)).reduce((s,c)=>s+c,0),i=t.filter(s=>s.param).length,l=t.filter(s=>s.glob).length;return{numberOfStaticPartsBeginning:r,numberOfStaticParts:o,numberOfParams:i,numberOfGlobs:l}}function kr(e){return e.startsWith(at)||e.startsWith(ne)}function ve(e){const n=re(e,e);return a(n),Object.keys(n.routeParams).length===0}function k(e){return Y()?`'${e}'`:(e===""&&(e="''"),p.cyan(e))}function Fr(e){e.sort(Er).sort(E(t=>t.routeType==="FUNCTION"&&!!t.precedence&&t.precedence<0)).sort(E(t=>t.routeType==="STRING"&&ve(t.routeString)===!1)).sort(E(t=>t.routeType==="FUNCTION"&&!t.precedence)).sort(E(t=>t.routeType==="STRING"&&ve(t.routeString)===!0)).sort(E(t=>t.routeType==="FILESYSTEM")).sort(E(t=>t.routeType==="FUNCTION"&&!!t.precedence&&t.precedence>0))}function Er(e,t){{const n=e.precedence??0,r=t.precedence??0;if(n!==r)return n>r?-1:1}if(!t.routeString||!e.routeString)return 0;{const r=U(o=>W(o).numberOfStaticPartsBeginning)(e.routeString,t.routeString);if(r!==0)return r}{const r=U(o=>W(o).numberOfStaticParts)(e.routeString,t.routeString);if(r!==0)return r}{const r=Ct(o=>W(o).numberOfGlobs)(e.routeString,t.routeString);if(r!==0)return r}{const r=U(o=>W(o).numberOfParams)(e.routeString,t.routeString);if(r!==0)return r}return 0}async function Tr(e){const t={};if(!e._onBeforeRouteHook)return null;const n=await $r(e._onBeforeRouteHook,e);return n&&(m(t,n),b(t,"_pageId","string")||b(t,"_pageId","null"))?(b(t,"routeParams")?a(b(t,"routeParams","object")):m(t,{routeParams:{}}),m(t,{_routingProvidedByOnBeforeRouteHook:!0,_debugRouteMatches:"CUSTOM_ROUTING"}),t):(m(t,{_routingProvidedByOnBeforeRouteHook:!1}),t)}async function $r(e,t){let n=e.hookFn(t);Ze(n,`The onBeforeRoute() hook ${e.hookFilePath}`),n=await $(()=>n,e);const r=`The onBeforeRoute() hook defined by ${e.hookFilePath}`;if(g(n==null||An(n,["pageContext"])&&b(n,"pageContext"),`${r} should return ${p.cyan("null")}, ${p.cyan("undefined")}, or a plain JavaScript object ${p.cyan("{ pageContext: { /* ... */ } }")}`),n==null)return null;if(g(b(n,"pageContext","object"),`${r} returned ${p.cyan("{ pageContext }")} but pageContext should be a plain JavaScript object.`),b(n.pageContext,"_pageId")&&!b(n.pageContext,"_pageId","null")){const l=`${r} returned ${p.cyan("{ pageContext: { _pageId } }")} but ${p.cyan("_pageId")} should be`;g(b(n.pageContext,"_pageId","string"),`${l} a string or null`),g(t._allPageIds.includes(n.pageContext._pageId),`${l} ${jn(t._allPageIds.map(s=>p.cyan(s)),"or")}`)}b(n.pageContext,"routeParams")&&et(n.pageContext,`${r} returned ${p.cyan("{ pageContext: { routeParams } }")} but routeParams should`);const o=l=>`${r} returned ${p.cyan(`{ pageContext: { ${l} } }`)} which is deprecated. Return ${p.cyan("{ pageContext: { urlLogical } }")} instead.`;b(n.pageContext,"url")&&(v(!1,o("url"),{onlyOnce:!0}),n.pageContext.urlLogical=n.pageContext.url,delete n.pageContext.url),b(n.pageContext,"urlOriginal")&&(v(!1,o("urlOriginal"),{onlyOnce:!0}),n.pageContext.urlLogical=n.pageContext.urlOriginal,delete n.pageContext.urlOriginal),b(n.pageContext,"urlLogical")&&Ot(n.pageContext.urlLogical,`${r} returned ${p.cyan("{ pageContext: { urlLogical } }")} but ${p.cyan("urlLogical")}`),Ue(n.pageContext,{hookFilePath:e.hookFilePath,hookName:"onBeforeRoute"});const i={};return m(i,n.pageContext),i}var V;function Re(...e){var t;V||(V=(t=globalThis.__brillout_debug_createDebugger)==null?void 0:t.call(globalThis,"vike:routing")),V&&V(...e)}Y()&&L();async function ut(e){Re("Pages routes:",e._pageRoutes),qe(e);const t={},n=await Tr(e);if(n){if(n._routingProvidedByOnBeforeRouteHook)return a(n._pageId),n;m(t,n)}const r={};m(r,e),m(r,n);const o=r._allPageIds;a(o.length>=0),g(r._pageFilesAll.length>0||r._pageConfigs.length>0,"No *.page.js file found. You must create at least one *.page.js file."),g(o.length>0,"You must create at least one *.page.js file that isn't _default.page.*");const{urlPathname:i}=r;a(i.startsWith("/"));const l=[];await Promise.all(r._pageRoutes.map(async c=>{const{pageId:d,routeType:_}=c;if(c.routeType==="FILESYSTEM"){const{routeString:f}=c,u=re(f,i);if(u){const{routeParams:y}=u;l.push({pageId:d,routeParams:y,routeString:f,routeType:_})}return}if(c.routeType==="STRING"){const{routeString:f}=c,u=re(f,i);if(u){const{routeParams:y}=u;a(_==="STRING"),l.push({pageId:d,routeString:f,routeParams:y,routeType:_})}return}if(c.routeType==="FUNCTION"){const{routeFunction:f,routeDefinedAt:u}=c,y=await rr(f,r,u);if(y){const{routeParams:O,precedence:B}=y;l.push({pageId:d,precedence:B,routeParams:O,routeType:_})}return}a(!1)})),Fr(l);const s=l[0];if(Re(`Route matches for URL ${p.cyan(i)} (in precedence order):`,l),m(t,{_debugRouteMatches:l}),!s)return m(t,{_pageId:null,routeParams:{}}),t;{const{routeParams:c}=s;a(C(c)),m(t,{_pageId:s.pageId,routeParams:s.routeParams})}return t}L();const we=F("prefetch.ts",{linkPrefetchHandlerAdded:new Map});async function Ir(e,t){try{await G(e,t)}catch(n){if(ae(n))oe(n,!0);else throw n}}function Ar(e){_r(e.urlPathname),[...document.getElementsByTagName("A")].forEach(n=>{if(we.linkPrefetchHandlerAdded.has(n))return;we.linkPrefetchHandlerAdded.set(n,!0);const r=n.getAttribute("href");if(rt(n)||(a(r),br(r)))return;const{prefetchStaticAssets:o}=pr(e,n);if(o&&(o==="hover"&&(n.addEventListener("mouseover",()=>{ee(r)}),n.addEventListener("touchstart",()=>{ee(r)},{passive:!0})),o==="viewport")){const i=new IntersectionObserver(l=>{l.forEach(s=>{s.isIntersecting&&(ee(r),i.disconnect())})});i.observe(n)}})}async function ee(e){const t=await nt(e);let n;try{n=await ut(t)}catch{return}n!=null&&n._pageId&&await st(n._pageId,t)&&await Ir(n._pageId,t)}function ct(e){if(e==="preserve-scroll")return;let t;if(e==="scroll-to-top-or-hash"){const n=jr();if(n&&n!=="top"){const r=document.getElementById(n)||document.getElementsByName(n)[0];if(r){r.scrollIntoView();return}}t={x:0,y:0}}else a("x"in e&&"y"in e),t=e;Nr(t)}function Nr(e){const t=()=>window.scrollTo(e.x,e.y),n=()=>window.scrollX===e.x&&window.scrollY===e.y;n()||(t(),!n()&&requestAnimationFrame(()=>{t(),!n()&&setTimeout(async()=>{if(t(),n())return;const r=new Date().getTime();for(;;)if(await bn(10),t(),n()||new Date().getTime()-r>100)return},0)}))}function jr(){let{hash:e}=window.location;return e===""?null:(a(e.startsWith("#")),e=e.slice(1),e)}function Hr(){window.addEventListener("scroll",_n(be,Math.ceil(1e3/3)),{passive:!0}),Le(be)}const T=F("onBrowserHistoryNavigation.ts",{previousState:K()});function Lr(){window.addEventListener("popstate",e=>{const t=K(),n=t.historyState.scrollPosition||"scroll-to-top-or-hash",r=t.historyState.triggedBy==="user",o=t.urlWithoutHash===T.previousState.urlWithoutHash,i=!t.historyState.timestamp||!T.previousState.historyState.timestamp?null:t.historyState.timestamp<T.previousState.historyState.timestamp;T.previousState=t,o&&!r?window.history.state===null?(Be(),T.previousState=K()):ct(n):H({scrollTarget:n,isBackwardNavigation:i,isUserLandPushStateNavigation:r})})}function K(){return{urlWithoutHash:le({withoutHash:!0}),historyState:ce()}}function Br(){T.previousState=K()}const ft=F("scrollRestoration.ts",{});function Dr(){Ce(),Le(Ce),Pn(()=>ft.initialRenderIsDone&&he())}function Wr(){ft.initialRenderIsDone=!0}function he(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual")}function Ce(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto")}const P=F("renderPageClientSide.ts",{renderCounter:0});async function H(e){var me;const{scrollTarget:t,urlOriginal:n=le(),overwriteLastHistoryEntry:r=!1,isBackwardNavigation:o,pageContextsFromRewrite:i=[],redirectCount:l=0,isUserLandPushStateNavigation:s,isClientSideNavigation:c=!0}=e,{abortRender:d,setHydrationCanBeAborted:_,isFirstRender:f}=Gr();if(a(c===!f),Gn(i.length,l),P.clientRoutingIsDisabled){z(n);return}const u=await nt(n);if(d())return;m(u,{isBackwardNavigation:o,isClientSideNavigation:c});{const h=Vn(i);m(u,h)}let y={};const O=h=>{a(h),a(!("err"in y)),a(!("errorWhileRendering"in u)),y.err=h,u.errorWhileRendering=h};if(!f){try{y={pageContextFromRoute:await ut(u)}}catch(h){O(h)}if(d())return;if(y.pageContextFromRoute){const{pageContextFromRoute:h}=y;m(u,h);let S;if(!h._pageId)S=!1;else if(S=await st(h._pageId,u),d())return;if(!S){z(n);return}const R=h._pageId&&((me=P.previousPageContext)==null?void 0:me._pageId)&&h._pageId===P.previousPageContext._pageId;if(s&&R)return}}const B=!f;if(B&&!P.isTransitioning){if(P.onPageTransitionStart){const h=P.onPageTransitionStart,{hookFn:S}=h;await $(()=>S(u),h)}if(P.isTransitioning=!0,d())return}if(f){a(!y.pageContextFromRoute),a(!y.err);try{y.pageContextFromHooks=await zn(u)}catch(h){O(h)}if(d())return}else if(!y.err){const{pageContextFromRoute:h}=y;a(h),a(h._pageId),a(b(h,"_pageId","string")),m(u,h);try{y.pageContextFromHooks=await Mn(u)}catch(S){O(S)}if(d())return}if("err"in y){const{err:h}=y;if(Pe(h)||console.error(h),Oe(h,u,f))return;if(Pe(h)){const S=h;Wn(h,u._isProduction,u);const R=S._pageContextAbort;if(R._urlRewrite){await H({...e,scrollTarget:"scroll-to-top-or-hash",pageContextsFromRewrite:[...i,R]});return}if(R._urlRedirect){const q=R._urlRedirect.url;if(q.startsWith("http")){window.location.href=q;return}else await H({...e,scrollTarget:"scroll-to-top-or-hash",urlOriginal:q,overwriteLastHistoryEntry:!1,isBackwardNavigation:!1,redirectCount:l+1});return}a(R.abortStatusCode),m(u,R),R.abortStatusCode===404&&m(u,{is404:!0})}else m(u,{is404:!1});try{y.pageContextFromHooks=await Kn(u)}catch(S){if(Oe(S,u,f)||(f||setTimeout(()=>{window.location.pathname=n},0),yn(h,S)))return;throw S}if(d())return}const{pageContextFromHooks:pe}=y;a(pe),m(u,pe),Q(u,"onPageTransitionStart");const dt=N(u,"onPageTransitionStart");if(P.onPageTransitionStart=dt,u.exports.hydrationCanBeAborted?_():v(!mn(),"You seem to be using React; we recommend setting hydrationCanBeAborted to true, see https://vike.dev/hydrationCanBeAborted",{onlyOnce:!0}),!d()&&!(P.renderPromise&&(await P.renderPromise,a(P.renderPromise===void 0),d()))){if(Vr(n,r),P.previousPageContext=u,a(P.renderPromise===void 0),P.renderPromise=(async()=>{await xt(u,!0),Ar(u),P.renderPromise=void 0})(),await P.renderPromise,a(P.renderPromise===void 0),f){Q(u,"onHydrationEnd");const h=N(u,"onHydrationEnd");if(h){const{hookFn:S}=h;if(await $(()=>S(u),h),d(!0))return}}if(!d(!0)){if(B){Q(u,"onPageTransitionEnd");const h=N(u,"onPageTransitionEnd");if(h){const{hookFn:S}=h;if(await $(()=>S(u),h),d(!0))return}P.isTransitioning=void 0}ct(t),he(),Wr()}}}function Vr(e,t){le()!==e&&(he(),vn(e,t),Br())}function Oe(e,t,n){return!!(Qn(e)||Ur(e,t,n))}function Ur(e,t,n){if(!ae(e))return!1;if(n)throw oe(e,!1),e;return oe(e,!0),z(t.urlOriginal),!0}function oe(e,t){a(ae(e)),P.clientRoutingIsDisabled=!0,t&&console.log(e),se(!1,["Failed to fetch static asset.","This usually happens when a new frontend is deployed.","Falling back to Server Routing.","(The next page navigation will use Server Routing instead of Client Routing.)"].filter(Boolean).join(" "),{onlyOnce:!0})}function Gr(){const e=++P.renderCounter;a(e>=1);let t=!1;return{abortRender:o=>!o&&e===1&&!t?!1:e!==P.renderCounter,setHydrationCanBeAborted:()=>{t=!0},isFirstRender:e===1}}function xe(){return P.renderCounter}function zr(){document.addEventListener("click",Kr)}function Kr(e){if(!Mr(e))return;const t=Yr(e.target);if(!t)return;const n=t.getAttribute("href");if(rt(t))return;a(n),e.preventDefault();const o=![null,"false"].includes(t.getAttribute("keep-scroll-position"))?"preserve-scroll":"scroll-to-top-or-hash";H({scrollTarget:o,urlOriginal:n,isBackwardNavigation:!1})}function Mr(e){return e.button===0&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey}function Yr(e){for(;e.tagName!=="A";){const{parentNode:t}=e;if(!t)return null;e=t}return e}function Jr(){Dr(),Be(),Hr(),wn(),a(xe()===0),H({scrollTarget:"preserve-scroll",isBackwardNavigation:null,isClientSideNavigation:!1}),a(xe()===1),zr(),Lr()}L();const qr=!0;kt(qr);Jr();
@@ -0,0 +1 @@
1
+ import{s as _,g as d,a as u,o,b as c,c as f,l as v,d as h,e as E,f as m,h as y,i as x}from"../chunks/chunk-3d735b94.js";import{_ as a}from"../chunks/chunk-cf010ec4.js";const n={},C={},F={},L={},P=[],l={},R=!0,b=[],O={configValuesImported:[]},I=Object.assign({"/pages/hands.page.tsx":()=>a(()=>import("./pages_hands.page.f0c716fa.js"),["assets/entries/pages_hands.page.f0c716fa.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js"]),"/pages/index.page.tsx":()=>a(()=>import("./pages_index.page.55624b51.js"),["assets/entries/pages_index.page.55624b51.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js","assets/chunks/chunk-98964cd2.js"]),"/pages/stereo_plane.page.tsx":()=>a(()=>import("./pages_stereo_plane.page.360c58a8.js"),["assets/entries/pages_stereo_plane.page.360c58a8.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js","assets/chunks/chunk-98964cd2.js"]),"/pages/video_plane.page.tsx":()=>a(()=>import("./pages_video_plane.page.35550a3d.js"),["assets/entries/pages_video_plane.page.35550a3d.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-dc0a8b73.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d9bdcef8.js"]),"/renderer/_error.page.tsx":()=>a(()=>import("./renderer_error.page.3723d86c.js"),["assets/entries/renderer_error.page.3723d86c.js","assets/chunks/chunk-3010a972.js"])}),w={...I};n[".page"]=w;const A=Object.assign({"/renderer/_default.page.client.tsx":()=>a(()=>import("./renderer_default.page.client.9822d975.js"),["assets/entries/renderer_default.page.client.9822d975.js","assets/chunks/chunk-3010a972.js","assets/chunks/chunk-d9bdcef8.js","assets/static/default.page.client.7be06a4d.css"])}),S={...A};n[".page.client"]=S;const z=Object.assign({"/renderer/_default.page.server.tsx":()=>a(()=>import("./renderer_default.page.server.extractAssets.4ed993c7.js"),[])}),T={...z};l[".page.server"]=T;const H=Object.freeze(Object.defineProperty({__proto__:null,isGeneratedFile:R,neverLoaded:l,pageConfigGlobalSerialized:O,pageConfigsSerialized:b,pageFilesEager:C,pageFilesExportNamesEager:L,pageFilesExportNamesLazy:F,pageFilesLazy:n,pageFilesList:P},Symbol.toStringTag,{value:"Module"}));_(H);const g=d({withoutHash:!0});async function V(){const e=u();return o(e,{isHydration:!0,isBackwardNavigation:null,_hasPageContextFromClient:!1}),o(e,await D(e._pageId)),j(),e}function j(){const e=d({withoutHash:!0});c(g===e,`The URL was manipulated before the hydration finished ('${g}' to '${e}'). Ensure the hydration has finished before manipulating the URL. Consider using the onHydrationEnd() hook.`)}async function D(e){const t={},{pageFilesAll:r,pageConfigs:p}=await f(!0);return o(t,{_pageFilesAll:r,_pageConfigs:p}),o(t,await v(e,t)),r.filter(s=>s.fileType!==".page.server").forEach(s=>{var i;h(!((i=s.fileExports)!=null&&i.onBeforeRender),`export { onBeforeRender } of ${s.filePath} is loaded in the browser but never executed (because you are using Server-side Routing). In order to reduce the size of you browser-side JavaScript, define onBeforeRender() in a .page.server.js file instead, see https://vike.dev/onBeforeRender-isomorphic#server-routing`,{onlyOnce:!0})}),t}E();const k=!0;m(k);B();async function B(){var t,r;const e=await V();await y(e,!1),x(e,"onHydrationEnd"),await((r=(t=e.exports).onHydrationEnd)==null?void 0:r.call(t,e))}
@@ -0,0 +1 @@
1
+ import{j as e,a as n,r as t}from"../chunks/chunk-3010a972.js";import{W as r,H as s,c as o}from"../chunks/chunk-dc0a8b73.js";import"../chunks/chunk-d9bdcef8.js";import"../chunks/chunk-cf010ec4.js";const{AmbientLight:a,PointLight:d,SceneContainer:c,Grid:p,Hands:l}=o;function m(){const i=typeof window>"u";return console.log("isSSR",i),i?e("div",{children:"Loading..."}):n(r,{children:[e(s,{children:e("title",{children:"Vuer (Hand Tracking Demo)"})}),e(t.Suspense,{children:n(c,{bgChildren:e(p,{}),rawChildren:[],children:[e(a,{intensity:.25},"ambient"),e(d,{intensity:1,position:[0,1,1]},"spot"),e(l,{fps:30,eventType:["squeeze"],stream:!0})]})})]})}const S={Page:m};export{S as default};
@@ -0,0 +1,97 @@
1
+ import{r as E,j as z,$ as Je,R as Ft,a as ne,F as jt}from"../chunks/chunk-3010a972.js";import{H as Kt,a4 as zt,a5 as Nt,c as Wt}from"../chunks/chunk-dc0a8b73.js";import"../chunks/chunk-d9bdcef8.js";import{_ as L}from"../chunks/chunk-98964cd2.js";import"../chunks/chunk-cf010ec4.js";var Fe={exports:{}},R={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var Qe;function Ht(){if(Qe)return R;Qe=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,a=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,l=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(u){if(typeof u=="object"&&u!==null){var T=u.$$typeof;switch(T){case t:switch(u=u.type,u){case a:case f:case n:case i:case o:case d:return u;default:switch(u=u&&u.$$typeof,u){case c:case y:case l:case x:case s:return u;default:return T}}case r:return T}}}function P(u){return b(u)===f}return R.AsyncMode=a,R.ConcurrentMode=f,R.ContextConsumer=c,R.ContextProvider=s,R.Element=t,R.ForwardRef=y,R.Fragment=n,R.Lazy=l,R.Memo=x,R.Portal=r,R.Profiler=i,R.StrictMode=o,R.Suspense=d,R.isAsyncMode=function(u){return P(u)||b(u)===a},R.isConcurrentMode=P,R.isContextConsumer=function(u){return b(u)===c},R.isContextProvider=function(u){return b(u)===s},R.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===t},R.isForwardRef=function(u){return b(u)===y},R.isFragment=function(u){return b(u)===n},R.isLazy=function(u){return b(u)===l},R.isMemo=function(u){return b(u)===x},R.isPortal=function(u){return b(u)===r},R.isProfiler=function(u){return b(u)===i},R.isStrictMode=function(u){return b(u)===o},R.isSuspense=function(u){return b(u)===d},R.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===n||u===f||u===i||u===o||u===d||u===p||typeof u=="object"&&u!==null&&(u.$$typeof===l||u.$$typeof===x||u.$$typeof===s||u.$$typeof===c||u.$$typeof===y||u.$$typeof===v||u.$$typeof===h||u.$$typeof===g||u.$$typeof===m)},R.typeOf=b,R}var et;function Gt(){return et||(et=1,Fe.exports=Ht()),Fe.exports}function tt(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Ee(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function X(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function ht(e){if(!X(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ht(e[r])}),t}function Q(e,t,r={clone:!0}){const n=r.clone?L({},e):e;return X(e)&&X(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(X(t[o])&&o in e&&X(e[o])?n[o]=Q(e[o],t[o],r):r.clone?n[o]=X(t[o])?ht(t[o]):t[o]:n[o]=t[o])}),n}function Dt(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function ie(e){if(typeof e!="string")throw new Error(Dt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function je(e){return e&&e.ownerDocument||document}function Ut(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const qt=typeof window<"u"?E.useLayoutEffect:E.useEffect,Xt=qt;function Ne(e){const t=E.useRef(e);return Xt(()=>{t.current=e}),E.useRef((...r)=>(0,t.current)(...r)).current}function Yt(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ut(r,t)})},e)}function rt(e){return e.substring(2).toLowerCase()}function Vt(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Zt(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=E.useRef(!1),c=E.useRef(null),a=E.useRef(!1),f=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const y=Yt(t.ref,c),d=Ne(l=>{const m=f.current;f.current=!1;const v=je(c.current);if(!a.current||!c.current||"clientX"in l&&Vt(l,v))return;if(s.current){s.current=!1;return}let h;l.composedPath?h=l.composedPath().indexOf(c.current)>-1:h=!v.documentElement.contains(l.target)||c.current.contains(l.target),!h&&(r||!m)&&o(l)}),p=l=>m=>{f.current=!0;const v=t.props[l];v&&v(m)},x={ref:y};return i!==!1&&(x[i]=p(i)),E.useEffect(()=>{if(i!==!1){const l=rt(i),m=je(c.current),v=()=>{s.current=!0};return m.addEventListener(l,d),m.addEventListener("touchmove",v),()=>{m.removeEventListener(l,d),m.removeEventListener("touchmove",v)}}},[d,i]),n!==!1&&(x[n]=p(n)),E.useEffect(()=>{if(n!==!1){const l=rt(n),m=je(c.current);return m.addEventListener(l,d),()=>{m.removeEventListener(l,d)}}},[d,n]),z(E.Fragment,{children:E.cloneElement(t,x)})}function Jt(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:i}=e,s=E.useRef();E.useEffect(()=>{if(!o)return;function h(g){g.defaultPrevented||(g.key==="Escape"||g.key==="Esc")&&(n==null||n(g,"escapeKeyDown"))}return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[o,n]);const c=Ne((h,g)=>{n==null||n(h,g)}),a=Ne(h=>{!n||h==null||(clearTimeout(s.current),s.current=setTimeout(()=>{c(null,"timeout")},h))});E.useEffect(()=>(o&&a(t),()=>{clearTimeout(s.current)}),[o,t,a]);const f=h=>{n==null||n(h,"clickaway")},y=()=>{clearTimeout(s.current)},d=E.useCallback(()=>{t!=null&&a(i??t*.5)},[t,i,a]),p=h=>g=>{const b=h.onBlur;b==null||b(g),d()},x=h=>g=>{const b=h.onFocus;b==null||b(g),y()},l=h=>g=>{const b=h.onMouseEnter;b==null||b(g),y()},m=h=>g=>{const b=h.onMouseLeave;b==null||b(g),d()};return E.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",y)}},[r,d,o]),{getRootProps:(h={})=>{const g=L({},tt(e),tt(h));return L({role:"presentation"},h,g,{onBlur:p(g),onFocus:x(g),onMouseEnter:l(g),onMouseLeave:m(g)})},onClickAway:f}}function yt(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Qt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,er=yt(function(e){return Qt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function tr(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function rr(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var nr=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rr(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=tr(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),M="-ms-",we="-moz-",k="-webkit-",gt="comm",De="rule",Ue="decl",or="@import",bt="@keyframes",ir="@layer",sr=Math.abs,Re=String.fromCharCode,ar=Object.assign;function cr(e,t){return I(e,0)^45?(((t<<2^I(e,0))<<2^I(e,1))<<2^I(e,2))<<2^I(e,3):0}function xt(e){return e.trim()}function ur(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,r){return e.replace(t,r)}function We(e,t){return e.indexOf(t)}function I(e,t){return e.charCodeAt(t)|0}function ae(e,t,r){return e.slice(t,r)}function G(e){return e.length}function qe(e){return e.length}function ye(e,t){return t.push(e),e}function lr(e,t){return e.map(t).join("")}var Pe=1,ee=1,vt=0,B=0,_=0,te="";function Te(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Pe,column:ee,length:s,return:""}}function oe(e,t){return ar(Te("",null,null,"",null,null,0),e,{length:-e.length},t)}function fr(){return _}function dr(){return _=B>0?I(te,--B):0,ee--,_===10&&(ee=1,Pe--),_}function K(){return _=B<vt?I(te,B++):0,ee++,_===10&&(ee=1,Pe++),_}function U(){return I(te,B)}function ge(){return B}function le(e,t){return ae(te,e,t)}function ce(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wt(e){return Pe=ee=1,vt=G(te=e),B=0,[]}function St(e){return te="",e}function be(e){return xt(le(B-1,He(e===91?e+2:e===40?e+1:e)))}function mr(e){for(;(_=U())&&_<33;)K();return ce(e)>2||ce(_)>3?"":" "}function pr(e,t){for(;--t&&K()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return le(e,ge()+(t<6&&U()==32&&K()==32))}function He(e){for(;K();)switch(_){case e:return B;case 34:case 39:e!==34&&e!==39&&He(_);break;case 40:e===41&&He(e);break;case 92:K();break}return B}function hr(e,t){for(;K()&&e+_!==47+10;)if(e+_===42+42&&U()===47)break;return"/*"+le(t,B-1)+"*"+Re(e===47?e:K())}function yr(e){for(;!ce(U());)K();return le(e,B)}function gr(e){return St(xe("",null,null,null,[""],e=wt(e),0,[0],e))}function xe(e,t,r,n,o,i,s,c,a){for(var f=0,y=0,d=s,p=0,x=0,l=0,m=1,v=1,h=1,g=0,b="",P=o,u=i,T=n,w=b;v;)switch(l=g,g=K()){case 40:if(l!=108&&I(w,d-1)==58){We(w+=C(be(g),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:w+=be(g);break;case 9:case 10:case 13:case 32:w+=mr(l);break;case 92:w+=pr(ge()-1,7);continue;case 47:switch(U()){case 42:case 47:ye(br(hr(K(),ge()),t,r),a);break;default:w+="/"}break;case 123*m:c[f++]=G(w)*h;case 125*m:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+y:h==-1&&(w=C(w,/\f/g,"")),x>0&&G(w)-d&&ye(x>32?ot(w+";",n,r,d-1):ot(C(w," ","")+";",n,r,d-2),a);break;case 59:w+=";";default:if(ye(T=nt(w,t,r,f,y,o,c,b,P=[],u=[],d),i),g===123)if(y===0)xe(w,t,T,T,P,i,d,c,u);else switch(p===99&&I(w,3)===110?100:p){case 100:case 108:case 109:case 115:xe(e,T,T,n&&ye(nt(e,T,T,0,0,o,c,b,o,P=[],d),u),o,u,d,c,n?P:u);break;default:xe(w,T,T,T,[""],u,0,c,u)}}f=y=x=0,m=h=1,b=w="",d=s;break;case 58:d=1+G(w),x=l;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&dr()==125)continue}switch(w+=Re(g),g*m){case 38:h=y>0?1:(w+="\f",-1);break;case 44:c[f++]=(G(w)-1)*h,h=1;break;case 64:U()===45&&(w+=be(K())),p=U(),y=d=G(b=w+=yr(ge())),g++;break;case 45:l===45&&G(w)==2&&(m=0)}}return i}function nt(e,t,r,n,o,i,s,c,a,f,y){for(var d=o-1,p=o===0?i:[""],x=qe(p),l=0,m=0,v=0;l<n;++l)for(var h=0,g=ae(e,d+1,d=sr(m=s[l])),b=e;h<x;++h)(b=xt(m>0?p[h]+" "+g:C(g,/&\f/g,p[h])))&&(a[v++]=b);return Te(e,t,r,o===0?De:c,a,f,y)}function br(e,t,r){return Te(e,t,r,gt,Re(fr()),ae(e,2,-2),0)}function ot(e,t,r,n){return Te(e,t,r,Ue,ae(e,0,n),ae(e,n+1,-1),n)}function Z(e,t){for(var r="",n=qe(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function xr(e,t,r,n){switch(e.type){case ir:if(e.children.length)break;case or:case Ue:return e.return=e.return||e.value;case gt:return"";case bt:return e.return=e.value+"{"+Z(e.children,n)+"}";case De:e.value=e.props.join(",")}return G(r=Z(e.children,n))?e.return=e.value+"{"+r+"}":""}function vr(e){var t=qe(e);return function(r,n,o,i){for(var s="",c=0;c<t;c++)s+=e[c](r,n,o,i)||"";return s}}function wr(e){return function(t){t.root||(t=t.return)&&e(t)}}var Sr=function(t,r,n){for(var o=0,i=0;o=i,i=U(),o===38&&i===12&&(r[n]=1),!ce(i);)K();return le(t,B)},kr=function(t,r){var n=-1,o=44;do switch(ce(o)){case 0:o===38&&U()===12&&(r[n]=1),t[n]+=Sr(B-1,r,n);break;case 2:t[n]+=be(o);break;case 4:if(o===44){t[++n]=U()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Re(o)}while(o=K());return t},Cr=function(t,r){return St(kr(wt(t),r))},it=new WeakMap,Er=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!it.get(n))&&!o){it.set(t,!0);for(var i=[],s=Cr(r,i),c=n.props,a=0,f=0;a<s.length;a++)for(var y=0;y<c.length;y++,f++)t.props[f]=i[a]?s[a].replace(/&\f/g,c[y]):c[y]+" "+s[a]}}},Rr=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function kt(e,t){switch(cr(e,t)){case 5103:return k+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+we+e+M+e+e;case 6828:case 4268:return k+e+M+e+e;case 6165:return k+e+M+"flex-"+e+e;case 5187:return k+e+C(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+M+"flex-$1$2")+e;case 5443:return k+e+M+"flex-item-"+C(e,/flex-|-self/,"")+e;case 4675:return k+e+M+"flex-line-pack"+C(e,/align-content|flex-|-self/,"")+e;case 5548:return k+e+M+C(e,"shrink","negative")+e;case 5292:return k+e+M+C(e,"basis","preferred-size")+e;case 6060:return k+"box-"+C(e,"-grow","")+k+e+M+C(e,"grow","positive")+e;case 4554:return k+C(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+M+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,k+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(G(e)-1-t>6)switch(I(e,t+1)){case 109:if(I(e,t+4)!==45)break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+we+(I(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~We(e,"stretch")?kt(C(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(I(e,t+1)!==115)break;case 6444:switch(I(e,G(e)-3-(~We(e,"!important")&&10))){case 107:return C(e,":",":"+k)+e;case 101:return C(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+k+(I(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+M+"$2box$3")+e}break;case 5936:switch(I(e,t+11)){case 114:return k+e+M+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+M+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+M+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return k+e+M+e+e}return e}var Pr=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ue:t.return=kt(t.value,t.length);break;case bt:return Z([oe(t,{value:C(t.value,"@","@"+k)})],o);case De:if(t.length)return lr(t.props,function(i){switch(ur(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Z([oe(t,{props:[C(i,/:(read-\w+)/,":"+we+"$1")]})],o);case"::placeholder":return Z([oe(t,{props:[C(i,/:(plac\w+)/,":"+k+"input-$1")]}),oe(t,{props:[C(i,/:(plac\w+)/,":"+we+"$1")]}),oe(t,{props:[C(i,/:(plac\w+)/,M+"input-$1")]})],o)}return""})}},Tr=[Pr],$r=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Tr,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),h=1;h<v.length;h++)i[v[h]]=!0;c.push(m)});var a,f=[Er,Rr];{var y,d=[xr,wr(function(m){y.insert(m)})],p=vr(f.concat(o,d)),x=function(v){return Z(gr(v),p)};a=function(v,h,g,b){y=g,x(v?v+"{"+h.styles+"}":h.styles),b&&(l.inserted[h.name]=!0)}}var l={key:r,sheet:new nr({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:a};return l.sheet.hydrate(c),l},Ct=Gt(),Ar={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Or={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Et={};Et[Ct.ForwardRef]=Ar;Et[Ct.Memo]=Or;var _r=!0;function Ir(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var Rt=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||_r===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Lr=function(t,r,n){Rt(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Mr(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Br={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fr=/[A-Z]|^ms/g,jr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pt=function(t){return t.charCodeAt(1)===45},st=function(t){return t!=null&&typeof t!="boolean"},Ke=yt(function(e){return Pt(e)?e:e.replace(Fr,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(jr,function(n,o,i){return D={name:o,styles:i,next:D},o})}return Br[t]!==1&&!Pt(t)&&typeof r=="number"&&r!==0?r+"px":r};function ue(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return D={name:r.name,styles:r.styles,next:D},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)D={name:n.name,styles:n.styles,next:D},n=n.next;var o=r.styles+";";return o}return Kr(e,t,r)}case"function":{if(e!==void 0){var i=D,s=r(e);return D=i,ue(e,t,s)}break}}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function Kr(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ue(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":st(s)&&(n+=Ke(i)+":"+at(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)st(s[c])&&(n+=Ke(i)+":"+at(i,s[c])+";");else{var a=ue(e,t,s);switch(i){case"animation":case"animationName":{n+=Ke(i)+":"+a+";";break}default:n+=i+"{"+a+"}"}}}return n}var ct=/label:\s*([^\s;\n{]+)\s*(;|$)/g,D,Tt=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";D=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=ue(n,r,s)):i+=s[0];for(var c=1;c<t.length;c++)i+=ue(n,r,t[c]),o&&(i+=s[c]);ct.lastIndex=0;for(var a="",f;(f=ct.exec(i))!==null;)a+="-"+f[1];var y=Mr(i)+a;return{name:y,styles:i,next:D}},zr=function(t){return t()},Nr=Je["useInsertionEffect"]?Je["useInsertionEffect"]:!1,Wr=Nr||zr,$t=E.createContext(typeof HTMLElement<"u"?$r({key:"css"}):null);$t.Provider;var Hr=function(t){return E.forwardRef(function(r,n){var o=E.useContext($t);return t(r,o,n)})},Gr=E.createContext({});function fe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Tt(t)}var Dr=function(){var t=fe.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Ur=er,qr=function(t){return t!=="theme"},ut=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ur:qr},lt=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Xr=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Rt(r,n,o),Wr(function(){return Lr(r,n,o)}),null},Yr=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var c=lt(t,r,n),a=c||ut(o),f=!a("as");return function(){var y=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),y[0]==null||y[0].raw===void 0)d.push.apply(d,y);else{d.push(y[0][0]);for(var p=y.length,x=1;x<p;x++)d.push(y[x],y[0][x])}var l=Hr(function(m,v,h){var g=f&&m.as||o,b="",P=[],u=m;if(m.theme==null){u={};for(var T in m)u[T]=m[T];u.theme=E.useContext(Gr)}typeof m.className=="string"?b=Ir(v.registered,P,m.className):m.className!=null&&(b=m.className+" ");var w=Tt(d.concat(P),v.registered,u);b+=v.key+"-"+w.name,s!==void 0&&(b+=" "+s);var pe=f&&c===void 0?ut(g):a,Y={};for(var S in m)f&&S==="as"||pe(S)&&(Y[S]=m[S]);return Y.className=b,Y.ref=h,E.createElement(E.Fragment,null,E.createElement(Xr,{cache:v,serialized:w,isStringTag:typeof g=="string"}),E.createElement(g,Y))});return l.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",l.defaultProps=t.defaultProps,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_styles=d,l.__emotion_forwardProp=c,Object.defineProperty(l,"toString",{value:function(){return"."+s}}),l.withComponent=function(m,v){return e(m,L({},r,v,{shouldForwardProp:lt(l,v,!0)})).apply(void 0,d)},l}},Vr=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ge=Yr.bind();Vr.forEach(function(e){Ge[e]=Ge(e)});/**
9
+ * @mui/styled-engine v5.15.0
10
+ *
11
+ * @license MIT
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */function Zr(e,t){return Ge(e,t)}const Jr=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Qr=["values","unit","step"],en=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>L({},r,{[n.key]:n.val}),{})};function tn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ee(e,Qr),i=en(t),s=Object.keys(i);function c(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function a(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function f(p,x){const l=s.indexOf(x);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(l!==-1&&typeof t[s[l]]=="number"?t[s[l]]:x)-n/100}${r})`}function y(p){return s.indexOf(p)+1<s.length?f(p,s[s.indexOf(p)+1]):c(p)}function d(p){const x=s.indexOf(p);return x===0?c(s[1]):x===s.length-1?a(s[x]):f(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return L({keys:s,values:i,up:c,down:a,between:f,only:y,not:d,unit:r},o)}const rn={borderRadius:4},nn=rn;function se(e,t){return t?Q(e,t,{clone:!1}):e}const Xe={xs:0,sm:600,md:900,lg:1200,xl:1536},ft={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Xe[e]}px)`};function q(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||ft;return t.reduce((s,c,a)=>(s[i.up(i.keys[a])]=r(t[a]),s),{})}if(typeof t=="object"){const i=n.breakpoints||ft;return Object.keys(t).reduce((s,c)=>{if(Object.keys(i.values||Xe).indexOf(c)!==-1){const a=i.up(c);s[a]=r(t[c],c)}else{const a=c;s[a]=t[a]}return s},{})}return r(t)}function on(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function sn(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function $e(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Se(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=$e(e,r)||n,t&&(o=t(o,n,e)),o}function O(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const c=s[t],a=s.theme,f=$e(a,n)||{};return q(s,c,d=>{let p=Se(f,o,d);return d===p&&typeof d=="string"&&(p=Se(f,o,`${t}${d==="default"?"":ie(d)}`,d)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function an(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const cn={m:"margin",p:"padding"},un={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ln=an(e=>{if(e.length>2)if(dt[e])e=dt[e];else return[e];const[t,r]=e.split(""),n=cn[t],o=un[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Ye=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ve=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ye,...Ve];function de(e,t,r,n){var o;const i=(o=$e(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function At(e){return de(e,"spacing",8)}function me(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function fn(e,t){return r=>e.reduce((n,o)=>(n[o]=me(t,r),n),{})}function dn(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=ln(r),i=fn(o,n),s=e[r];return q(e,s,i)}function Ot(e,t){const r=At(e.theme);return Object.keys(e).map(n=>dn(e,t,n,r)).reduce(se,{})}function $(e){return Ot(e,Ye)}$.propTypes={};$.filterProps=Ye;function A(e){return Ot(e,Ve)}A.propTypes={};A.filterProps=Ve;function mn(e=8){if(e.mui)return e;const t=At({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Ae(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?se(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function N(e){return typeof e!="number"?e:`${e}px solid`}function W(e,t){return O({prop:e,themeKey:"borders",transform:t})}const pn=W("border",N),hn=W("borderTop",N),yn=W("borderRight",N),gn=W("borderBottom",N),bn=W("borderLeft",N),xn=W("borderColor"),vn=W("borderTopColor"),wn=W("borderRightColor"),Sn=W("borderBottomColor"),kn=W("borderLeftColor"),Cn=W("outline",N),En=W("outlineColor"),Oe=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=de(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:me(t,n)});return q(e,e.borderRadius,r)}return null};Oe.propTypes={};Oe.filterProps=["borderRadius"];Ae(pn,hn,yn,gn,bn,xn,vn,wn,Sn,kn,Oe,Cn,En);const _e=e=>{if(e.gap!==void 0&&e.gap!==null){const t=de(e.theme,"spacing",8),r=n=>({gap:me(t,n)});return q(e,e.gap,r)}return null};_e.propTypes={};_e.filterProps=["gap"];const Ie=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=de(e.theme,"spacing",8),r=n=>({columnGap:me(t,n)});return q(e,e.columnGap,r)}return null};Ie.propTypes={};Ie.filterProps=["columnGap"];const Le=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=de(e.theme,"spacing",8),r=n=>({rowGap:me(t,n)});return q(e,e.rowGap,r)}return null};Le.propTypes={};Le.filterProps=["rowGap"];const Rn=O({prop:"gridColumn"}),Pn=O({prop:"gridRow"}),Tn=O({prop:"gridAutoFlow"}),$n=O({prop:"gridAutoColumns"}),An=O({prop:"gridAutoRows"}),On=O({prop:"gridTemplateColumns"}),_n=O({prop:"gridTemplateRows"}),In=O({prop:"gridTemplateAreas"}),Ln=O({prop:"gridArea"});Ae(_e,Ie,Le,Rn,Pn,Tn,$n,An,On,_n,In,Ln);function J(e,t){return t==="grey"?t:e}const Mn=O({prop:"color",themeKey:"palette",transform:J}),Bn=O({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:J}),Fn=O({prop:"backgroundColor",themeKey:"palette",transform:J});Ae(Mn,Bn,Fn);function j(e){return e<=1&&e!==0?`${e*100}%`:e}const jn=O({prop:"width",transform:j}),Ze=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Xe[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:j(r)}};return q(e,e.maxWidth,t)}return null};Ze.filterProps=["maxWidth"];const Kn=O({prop:"minWidth",transform:j}),zn=O({prop:"height",transform:j}),Nn=O({prop:"maxHeight",transform:j}),Wn=O({prop:"minHeight",transform:j});O({prop:"size",cssProperty:"width",transform:j});O({prop:"size",cssProperty:"height",transform:j});const Hn=O({prop:"boxSizing"});Ae(jn,Ze,Kn,zn,Nn,Wn,Hn);const Gn={border:{themeKey:"borders",transform:N},borderTop:{themeKey:"borders",transform:N},borderRight:{themeKey:"borders",transform:N},borderBottom:{themeKey:"borders",transform:N},borderLeft:{themeKey:"borders",transform:N},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:N},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Oe},color:{themeKey:"palette",transform:J},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:J},backgroundColor:{themeKey:"palette",transform:J},p:{style:A},pt:{style:A},pr:{style:A},pb:{style:A},pl:{style:A},px:{style:A},py:{style:A},padding:{style:A},paddingTop:{style:A},paddingRight:{style:A},paddingBottom:{style:A},paddingLeft:{style:A},paddingX:{style:A},paddingY:{style:A},paddingInline:{style:A},paddingInlineStart:{style:A},paddingInlineEnd:{style:A},paddingBlock:{style:A},paddingBlockStart:{style:A},paddingBlockEnd:{style:A},m:{style:$},mt:{style:$},mr:{style:$},mb:{style:$},ml:{style:$},mx:{style:$},my:{style:$},margin:{style:$},marginTop:{style:$},marginRight:{style:$},marginBottom:{style:$},marginLeft:{style:$},marginX:{style:$},marginY:{style:$},marginInline:{style:$},marginInlineStart:{style:$},marginInlineEnd:{style:$},marginBlock:{style:$},marginBlockStart:{style:$},marginBlockEnd:{style:$},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_e},rowGap:{style:Le},columnGap:{style:Ie},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:j},maxWidth:{style:Ze},minWidth:{transform:j},height:{transform:j},maxHeight:{transform:j},minHeight:{transform:j},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},_t=Gn;function Dn(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Un(e,t){return typeof e=="function"?e(t):e}function qn(){function e(r,n,o,i){const s={[r]:n,theme:o},c=i[r];if(!c)return{[r]:n};const{cssProperty:a=r,themeKey:f,transform:y,style:d}=c;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const p=$e(o,f)||{};return d?d(s):q(s,n,l=>{let m=Se(p,y,l);return l===m&&typeof l=="string"&&(m=Se(p,y,`${r}${l==="default"?"":ie(l)}`,l)),a===!1?m:{[a]:m}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:_t;function c(a){let f=a;if(typeof a=="function")f=a(i);else if(typeof a!="object")return a;if(!f)return null;const y=on(i.breakpoints),d=Object.keys(y);let p=y;return Object.keys(f).forEach(x=>{const l=Un(f[x],i);if(l!=null)if(typeof l=="object")if(s[x])p=se(p,e(x,l,i,s));else{const m=q({theme:i},l,v=>({[x]:v}));Dn(m,l)?p[x]=t({sx:l,theme:i}):p=se(p,m)}else p=se(p,e(x,l,i,s))}),sn(d,p)}return Array.isArray(o)?o.map(c):c(o)}return t}const It=qn();It.filterProps=["sx"];const Lt=It,Xn=["breakpoints","palette","spacing","shape"];function Yn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=Ee(e,Xn),c=tn(r),a=mn(o);let f=Q({breakpoints:c,direction:"ltr",components:{},palette:L({mode:"light"},n),spacing:a,shape:L({},nn,i)},s);return f=t.reduce((y,d)=>Q(y,d),f),f.unstable_sxConfig=L({},_t,s==null?void 0:s.unstable_sxConfig),f.unstable_sx=function(d){return Lt({sx:d,theme:this})},f}const Vn=["variant"];function mt(e){return e.length===0}function Mt(e){const{variant:t}=e,r=Ee(e,Vn);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=mt(n)?e[o]:ie(e[o]):n+=`${mt(n)?o:ie(o)}${ie(e[o].toString())}`}),n}const Zn=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Jn(e){return Object.keys(e).length===0}function Qn(e){return typeof e=="string"&&e.charCodeAt(0)>96}const eo=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,ke=e=>{const t={};return e&&e.forEach(r=>{const n=Mt(r.props);t[n]=r.style}),t},to=(e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),ke(r)},Ce=(e,t,r)=>{const{ownerState:n={}}=e,o=[];return r&&r.forEach(i=>{let s=!0;Object.keys(i.props).forEach(c=>{n[c]!==i.props[c]&&e[c]!==i.props[c]&&(s=!1)}),s&&o.push(t[Mt(i.props)])}),o},ro=(e,t,r,n)=>{var o;const i=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return Ce(e,t,i)};function ze(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const no=Yn(),oo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ve({defaultTheme:e,theme:t,themeId:r}){return Jn(t)?e:t[r]||t}function io(e){return e?(t,r)=>r[e]:null}const pt=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(L({},t,{theme:ve(L({},t,{defaultTheme:r,themeId:n}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const s=Ce(t,ke(i),i);return[o,...s]}return o};function so(e={}){const{themeId:t,defaultTheme:r=no,rootShouldForwardProp:n=ze,slotShouldForwardProp:o=ze}=e,i=s=>Lt(L({},s,{theme:ve(L({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,c={})=>{Jr(s,P=>P.filter(u=>!(u!=null&&u.__mui_systemSx)));const{name:a,slot:f,skipVariantsResolver:y,skipSx:d,overridesResolver:p=io(oo(f))}=c,x=Ee(c,Zn),l=y!==void 0?y:f&&f!=="Root"&&f!=="root"||!1,m=d||!1;let v,h=ze;f==="Root"||f==="root"?h=n:f?h=o:Qn(s)&&(h=void 0);const g=Zr(s,L({shouldForwardProp:h,label:v},x)),b=(P,...u)=>{const T=u?u.map(S=>{if(typeof S=="function"&&S.__emotion_real!==S)return F=>pt({styledArg:S,props:F,defaultTheme:r,themeId:t});if(X(S)){let F=S,H;return S&&S.variants&&(H=S.variants,delete F.variants,F=re=>{let V=S;return Ce(re,ke(H),H).forEach(Bt=>{V=Q(V,Bt)}),V}),F}return S}):[];let w=P;if(X(P)){let S;P&&P.variants&&(S=P.variants,delete w.variants,w=F=>{let H=P;return Ce(F,ke(S),S).forEach(V=>{H=Q(H,V)}),H})}else typeof P=="function"&&P.__emotion_real!==P&&(w=S=>pt({styledArg:P,props:S,defaultTheme:r,themeId:t}));a&&p&&T.push(S=>{const F=ve(L({},S,{defaultTheme:r,themeId:t})),H=eo(a,F);if(H){const re={};return Object.entries(H).forEach(([V,he])=>{re[V]=typeof he=="function"?he(L({},S,{theme:F})):he}),p(S,re)}return null}),a&&!l&&T.push(S=>{const F=ve(L({},S,{defaultTheme:r,themeId:t}));return ro(S,to(a,F),F,a)}),m||T.push(i);const pe=T.length-u.length;if(Array.isArray(P)&&pe>0){const S=new Array(pe).fill("");w=[...P,...S],w.raw=[...P.raw,...S]}const Y=g(w,...T);return s.muiName&&(Y.muiName=s.muiName),Y};return g.withConfig&&(b.withConfig=g.withConfig),b}}const ao=so(),Me=ao,Be=Dr`
15
+ from {
16
+ transform: translateX(100%);
17
+ }
18
+ to {
19
+ transform: translateX(0);
20
+ }
21
+ `,co=Me("div")(()=>fe`
22
+ position: fixed;
23
+ z-index: 5500;
24
+ display: flex;
25
+ right: 16px;
26
+ bottom: 16px;
27
+ left: auto;
28
+ justify-content: start;
29
+ max-width: 560px;
30
+ min-width: 300px;
31
+ border-radius: 10px;
32
+ padding: 12px 14px;
33
+ box-shadow: 1px 1px 8px rgba(255, 255, 255, 0.3);
34
+ color: #fff;
35
+ background-color: #f92d68;
36
+ font-family: 'IBM Plex Sans', sans-serif;
37
+ font-weight: 500;
38
+ animation: ${Be} 200ms;
39
+ transition: transform 0.2s ease-out;
40
+ `),uo=Me("div")(()=>fe`
41
+ position: fixed;
42
+ z-index: 5500;
43
+ display: flex;
44
+ right: 16px;
45
+ bottom: 16px;
46
+ left: auto;
47
+ justify-content: start;
48
+ max-width: 560px;
49
+ min-width: 300px;
50
+ border-radius: 10px;
51
+ padding: 12px 14px;
52
+ box-shadow: 1px 1px 8px rgba(255, 255, 255, 0.3);
53
+ color: #fff;
54
+ background-color: #f9822d;
55
+ font-family: 'IBM Plex Sans', sans-serif;
56
+ font-weight: 500;
57
+ animation: ${Be} 200ms;
58
+ transition: transform 0.2s ease-out;
59
+ `),lo=Me("div")(()=>fe`
60
+ position: fixed;
61
+ z-index: 5500;
62
+ display: flex;
63
+ right: 16px;
64
+ bottom: 16px;
65
+ left: auto;
66
+ justify-content: start;
67
+ max-width: 560px;
68
+ min-width: 300px;
69
+ border-radius: 10px;
70
+ padding: 12px 14px;
71
+ box-shadow: 1px 1px 8px rgba(255, 255, 255, 0.3);
72
+ color: #fff;
73
+ background-color: #2ed24a;
74
+ font-family: 'IBM Plex Sans', sans-serif;
75
+ font-weight: 500;
76
+ animation: ${Be} 200ms;
77
+ transition: transform 0.2s ease-out;
78
+ `),fo=Me("div")(()=>fe`
79
+ position: fixed;
80
+ z-index: 5500;
81
+ display: flex;
82
+ right: 16px;
83
+ bottom: 16px;
84
+ left: auto;
85
+ justify-content: start;
86
+ max-width: 560px;
87
+ min-width: 300px;
88
+ border-radius: 10px;
89
+ padding: 12px 14px;
90
+ box-shadow: 1px 1px 8px rgba(255, 255, 255, 0.3);
91
+ color: #fff;
92
+ background-color: #3283fc;
93
+ font-family: 'IBM Plex Sans', sans-serif;
94
+ font-weight: 500;
95
+ animation: ${Be} 200ms;
96
+ transition: transform 0.2s ease-out;
97
+ `),{AmbientLight:mo,PointLight:po,Grid:ho,Hands:yo}=Wt;function go(){const e=typeof window>"u",[{message:t,mtype:r},n]=Ft.useState({message:null,mtype:null}),{getRootProps:o,onClickAway:i}=Jt({onClose:()=>{n({message:null,mtype:null})},open:!!t,autoHideDuration:5e3});E.useEffect(()=>{const a=console.error;return console.error=f=>{setTimeout(()=>{n({message:f,mtype:"error"}),console.log(f)},1)},()=>{console.error=a}},[]),E.useEffect(()=>{const a=console.warn;return console.warn=f=>{setTimeout(()=>{n({message:f,mtype:"warning"}),console.log(f)},1)},()=>{console.warn=a}},[]);const s={showError:a=>setTimeout(()=>n({message:a,mtype:"error"}),1),showSuccess:a=>setTimeout(()=>n({message:a,mtype:"success"}),1),showWarning:a=>setTimeout(()=>n({message:a,mtype:"warning"}),1),showInfo:a=>setTimeout(()=>n({message:a,mtype:"info"}),1),showModal:a=>{console.log(a)}};function c({message:a,mtype:f}){switch(f){case"error":return ne(co,{...o(),children:["ERROR: ",a]});case"warning":return ne(uo,{...o(),children:["WARNING: ",a]});case"success":return ne(lo,{...o(),children:["SUCCESS: ",a]});case"info":default:return ne(fo,{...o(),children:["INFO: ",a]})}}return ne(jt,{children:[z(Kt,{children:z("title",{children:"Vuer (Technical Preview)"})}),t?z(Zt,{onClickAway:i,children:c({message:t,mtype:r})}):null,z(zt,{value:s,children:z(E.Suspense,{fallback:z("div",{children:"Loading..."}),children:e?null:z(Nt,{bgChildren:[z(ho,{},"default-grid"),z(mo,{intensity:1},"default-ambient-light"),z(po,{intensity:1,position:[0,1,1]},"default-point-light")],children:z(yo,{},"hands")})})})]})}const ko={Page:go};export{ko as default};