tocco-legacy-bundle 3.15.97 → 3.15.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +3 -0
- package/dist/{chunk-55341.eeba4dbbcd336e04c2f7.js → chunk-55341.7a810adb91536a12cc41.js} +1 -1
- package/dist/{chunk-86275.e563e431eab25a3a1807.js → chunk-86275.4b45d7bdb3b492813560.js} +1 -1
- package/dist/docs-browser.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/package.json +1 -1
package/dist/docs-browser.js
CHANGED
|
@@ -59,4 +59,4 @@ const{entries:r,setPrototypeOf:o,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescr
|
|
|
59
59
|
* LICENSE.md file in the root directory of this source tree.
|
|
60
60
|
*
|
|
61
61
|
* @license MIT
|
|
62
|
-
*/function l(e={}){return g((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=h(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),f("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:m(t))}),(function(e,t){d("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function u(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function m({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,c="POP",l=null,u=d();function d(){return(a.state||{idx:null}).idx}function m(){c="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:c,location:g.location,delta:t})}function h(e){return v(e)}null==u&&(u=0,a.replaceState({...a.state,idx:u},""));let g={get action(){return c},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(s,m),l=e,()=>{o.removeEventListener(s,m),l=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=f(g.location,e,t);n&&n(r,e),u=d()+1;let s=p(r,u),m=g.createHref(r);try{a.pushState(s,"",m)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(m)}i&&l&&l({action:c,location:g.location,delta:1})},replace:function(e,t){c="REPLACE";let r=f(g.location,e,t);n&&n(r,e),u=d();let o=p(r,u),s=g.createHref(r);a.replaceState(o,"",s),i&&l&&l({action:c,location:g.location,delta:0})},go:e=>a.go(e)};return g}function v(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),u(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:m(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function y(e){return{defaultValue:e}}var b=class{constructor(e){var t,n,r;if(t=this,n=o,r=new Map,n.has(t)?a("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),e)for(let[t,n]of e)this.set(t,n)}get(e){if(c(this,o).has(e))return c(this,o).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){c(this,o).set(e,t)}};o=new WeakMap;var x=new Set(["lazy","caseSensitive","path","id","index","children"]);var w=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function O(e,t,n=[],r={},o=!1){return e.map(((e,i)=>{let a=[...n,String(i)],c="string"==typeof e.id?e.id:a.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,id:c};return r[c]=k(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=k(n,t(n)),e.children&&(n.children=O(e.children,t,a,r,o)),n}}))}function k(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function S(e,t,n="/"){return A(e,t,n,!1)}function A(e,t,n,r){let o=M(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let i=E(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=I(o);a=_(i[e],t,r)}return a}function j(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function E(e,t=[],n=[],r="",o=!1){let i=(e,i,a=o,c)=>{let s={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&a)return;u(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let l=V([r,s.relativePath]),d=n.concat(s);e.children&&e.children.length>0&&(u(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),E(e.children,t,d,l,a)),(null!=e.path||e.index)&&t.push({path:l,score:D(l,e.index),routesMeta:d})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of P(e.path))i(e,t,!0,n);else i(e,t)})),t}function P(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=P(r.join("/")),c=[];return c.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&c.push(...a),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var T=/^:[\w-]+$/,C=e=>"*"===e;function D(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=-2),t&&(r+=2),n.filter((e=>!C(e))).reduce(((e,t)=>e+(T.test(t)?3:""===t?1:10)),r)}function _(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===i?t:t.slice(i.length)||"/",u=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:V([i,u.pathname]),pathnameBase:q(V([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=V([i,u.pathnameBase]))}return a}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=R(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function R(e,t=!1,n=!0){d("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var L=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,F=e=>L.test(e);function z(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function B(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=B(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function U(e,t,n,r=!1){let o;"string"==typeof e?o=h(e):(o={...e},u(!o.pathname||!o.pathname.includes("?"),H("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),H("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),H("#","search","hash",o)));let i,a=""===e||""===o.pathname,c=a?"/":o.pathname;if(null==c)i=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?h(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?z(r.substring(1),"/"):z(r,t)):n=t,{pathname:n,search:Y(o),hash:$(i)}}(o,i),l=c&&"/"!==c&&c.endsWith("/"),d=(a||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!d||(s.pathname+="/"),s}var V=e=>e.join("/").replace(/\/\/+/g,"/"),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var G=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function K(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function X(e,t){let n=e;if("string"!=typeof n||!L.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Q)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=M(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){d(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var Z=Symbol("Uninstrumented");function ee(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach((e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}})));let r={};if("function"==typeof t.lazy&&n.lazy.length>0){let e=te(n.lazy,t.lazy,(()=>{}));e&&(r.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach((t=>{let o=e[t],i=n[`lazy.${t}`];if("function"==typeof o&&i.length>0){let e=te(i,o,(()=>{}));e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}}))}return["loader","action"].forEach((e=>{let o=t[e];if("function"==typeof o&&n[e].length>0){let t=o[Z]??o,i=te(n[e],t,((...e)=>re(e[0])));i&&("loader"===e&&!0===t.hydrate&&(i.hydrate=!0),i[Z]=t,r[e]=i)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[Z]??e,r=te(n.middleware,t,((...e)=>re(e[0])));return r?(r[Z]=t,r):e}))),r}function te(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ne(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ne(e,t,n,r){let o,i=e[r];if(i){let a,c=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=ne(e,t,n,r-1),o=await a,u(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await i(c,t)}catch(e){console.error("An instrumentation function threw an error:",e)}a||await c(),await a}else try{let e=await n();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function re(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:ie(t),params:{...r},unstable_pattern:o,context:ae(n)}}function oe(e,t){return{currentUrl:m(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ae(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===ce}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var ce=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var se=["POST","PUT","PATCH","DELETE"],le=new Set(se),ue=["GET",...se],de=new Set(ue),pe=new Set([301,302,303,307,308]),fe=new Set([307,308]),me={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},he={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ge={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ve=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ye="remix-router-transitions",be=Symbol("ResetLoaderData");function xe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;u(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||ve,i=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;i=e=>({...o(e),...ee(t.map((e=>e.route)).filter(Boolean),e)})}let a,c={},s=O(e.routes,i,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let p,h,g=e.dataStrategy||Ne,y={...e.future},x=null,w=new Set,k=null,E=null,P=null,T=null!=e.hydrationData,C=S(s,e.history.location,l),D=!1,_=null;if(null!=C||e.patchRoutesOnNavigation){if(C&&!e.hydrationData){nt(C,s,e.history.location.pathname).active&&(C=null)}if(C)if(C.some((e=>e.route.lazy)))p=!1;else if(C.some((e=>Se(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=C.findIndex((e=>void 0!==n[e.route.id]));p=C.slice(0,e+1).every((e=>!Ae(e.route,t,n)))}else p=C.every((e=>!Ae(e.route,t,n)))}else p=!0;else{p=!1,C=[];let t=nt(null,s,e.history.location.pathname);t.active&&t.matches&&(D=!0,C=t.matches)}}else{let t=et(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ze(s);p=!0,C=n,_={[r.id]:t}}let N,R,I={historyAction:e.history.action,location:e.history.location,matches:C,initialized:p,navigation:me,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},L="POP",z=null,H=!1,B=!1,W=new Map,U=null,V=!1,q=!1,Y=new Set,$=new Map,G=0,K=-1,Q=new Map,X=new Set,ne=new Map,re=new Map,ie=new Set,ae=new Map,ce=null;function se(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=c[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),I={...I,...e};let n=[],r=[];I.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ie.has(t)?n.push(t):r.push(t))})),ie.forEach((e=>{I.fetchers.has(e)||$.has(e)||n.push(e)})),[...w].forEach((r=>r(I,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>De(e))),r.forEach((e=>I.fetchers.delete(e)))}function le(t,n,{flushSync:r}={}){let o,i=null!=I.actionData&&null!=I.navigation.formMethod&&ft(I.navigation.formMethod)&&"loading"===I.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?I.actionData:null;let c=n.loaderData?Ke(I.loaderData,n.loaderData,n.matches||[],n.errors):I.loaderData,l=I.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,ge))));let u,d=!V&&Ge(t,n.matches||I.matches),p=!0===H||null!=I.navigation.formMethod&&ft(I.navigation.formMethod)&&!0!==t.state?._isRedirect;if(a&&(s=a,a=void 0),V||"POP"===L||("PUSH"===L?e.history.push(t,t.state):"REPLACE"===L&&e.history.replace(t,t.state)),"POP"===L){let e=W.get(I.location.pathname);e&&e.has(t.pathname)?u={currentLocation:I.location,nextLocation:t}:W.has(t.pathname)&&(u={currentLocation:t,nextLocation:I.location})}else if(B){let e=W.get(I.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),W.set(I.location.pathname,e)),u={currentLocation:I.location,nextLocation:t}}se({...n,actionData:o,loaderData:c,historyAction:L,location:t,initialized:!0,navigation:me,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),L="POP",H=!1,B=!1,V=!1,q=!1,z?.resolve(),z=null,ce?.resolve(),ce=null}async function ue(t,n,o){N&&N.abort(),N=null,L=t,V=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(k&&P){let n=$e(e,t);k[n]=P()}}(I.location,I.matches),H=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let u=a||s,d=o&&o.overrideNavigation,p=o?.initialHydration&&I.matches&&I.matches.length>0&&!D?I.matches:S(u,n,l),f=!0===(o&&o.flushSync);if(p&&I.initialized&&!q&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(I.location,n)&&!(o&&o.submission&&ft(o.submission.formMethod)))return void le(n,{matches:p},{flushSync:f});let m=nt(p,u,n.pathname);if(m.active&&m.matches&&(p=m.matches),!p){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return void le(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}N=new AbortController;let h,g=qe(e.history,n,N.signal,o&&o.submission),v=e.getContext?await e.getContext():new b;if(o&&o.pendingError)h=[Xe(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&ft(o.submission.formMethod)){let t=await async function(t,n,o,a,u,d,p,f={}){je();let m,h=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,o);if(se({navigation:h},{flushSync:!0===f.flushSync}),d){let e=await rt(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=Ze(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=Xe(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=Ye(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}a=e.matches}let g=ht(a,n);if(g.route.action||g.route.lazy){let e=ze(i,c,t,a,g,p?[]:r,u),n=await be(t,e,u,null);if(m=n[g.route.id],!m)for(let e of a)if(n[e.route.id]){m=n[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:et(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};if(st(m)){let n;if(f&&null!=f.replace)n=f.replace;else{n=Ve(m.response.headers.get("Location"),new URL(t.url),l,e.history)===I.location.pathname+I.location.search}return await pe(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(ct(m)){let e=Xe(a,g.route.id);return!0!==(f&&f.replace)&&(L="PUSH"),{matches:a,pendingActionResult:[e.route.id,m,g.route.id]}}return{matches:a,pendingActionResult:[g.route.id,m]}}(g,n,o.submission,p,v,m.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:f});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ct(r)&&J(r.error)&&404===r.error.status)return N=null,void le(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}p=t.matches||p,h=t.pendingActionResult,d=vt(n,o.submission),f=!1,m.active=!1,g=qe(e.history,g.url,g.signal)}let{shortCircuited:y,matches:x,loaderData:w,errors:O}=await async function(t,n,o,u,d,p,f,m,h,g,v,y,b){let x=p||vt(n,f),w=f||m||gt(x),O=!V&&!g;if(d){if(O){let e=de(y);se({navigation:x,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await rt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=Ze(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Xe(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let k=a||s,{dsMatches:S,revalidatingFetchers:A}=ke(t,u,i,c,e.history,I,o,w,n,g?[]:r,!0===g,q,Y,ie,ne,X,k,l,null!=e.patchRoutesOnNavigation,y,b);if(K=++G,!e.dataStrategy&&!S.some((e=>e.shouldLoad))&&!S.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===A.length){let e=Ie();return le(n,{matches:o,loaderData:{},errors:y&&ct(y[1])?{[y[0]]:y[1].error}:null,...Qe(y),...e?{fetchers:new Map(I.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(O){let e={};if(!d){e.navigation=x;let t=de(y);void 0!==t&&(e.actionData=t)}A.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=I.fetchers.get(e.key),n=yt(void 0,t?t.data:void 0);I.fetchers.set(e.key,n)})),new Map(I.fetchers)}(A)),se(e,{flushSync:v})}A.forEach((e=>{_e(e.key),e.controller&&$.set(e.key,e.controller)}));let j=()=>A.forEach((e=>_e(e.key)));N&&N.signal.addEventListener("abort",j);let{loaderResults:E,fetcherResults:P}=await xe(S,A,t,u);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",j);A.forEach((e=>$.delete(e.key)));let T=tt(E);if(T)return await pe(t,T.result,!0,{replace:h}),{shortCircuited:!0};if(T=tt(P),T)return X.add(T.key),await pe(t,T.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:C,errors:D}=Je(I,o,E,y,A,P);g&&I.errors&&(D={...I.errors,...D});let _=Ie(),R=Me(K),M=_||R||A.length>0;return{matches:o,loaderData:C,errors:D,...M?{fetchers:new Map(I.fetchers)}:{}}}(g,n,p,v,m.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,f,h,o&&o.callSiteDefaultShouldRevalidate);y||(N=null,le(n,{matches:x||p,...Qe(h),loaderData:w,errors:O}))}function de(e){return e&&!ct(e[1])?{[e[0]]:e[1].data}:I.actionData?0===Object.keys(I.actionData).length?null:I.actionData:void 0}async function pe(r,o,i,{submission:a,fetcherSubmission:c,preventScrollReset:s,replace:d}={}){i||(z?.resolve(),z=null),o.response.headers.has("X-Remix-Revalidate")&&(q=!0);let p=o.response.headers.get("Location");u(p,"Expected a Location header on the redirect Response"),p=Ve(p,new URL(r.url),l,e.history);let m=f(I.location,p,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(F(p)){const n=v(p,!0);e=n.origin!==t.location.origin||null==M(n.pathname,l)}if(e)return void(d?t.location.replace(p):t.location.assign(p))}N=null;let h=!0===d||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:y,formEncType:b}=I.navigation;!a&&!c&&g&&y&&b&&(a=gt(I.navigation));let x=a||c;if(fe.has(o.response.status)&&x&&ft(x.formMethod))await ue(h,m,{submission:{...x,formAction:p},preventScrollReset:s||H,enableViewTransition:i?B:void 0});else{let e=vt(m,a);await ue(h,m,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||H,enableViewTransition:i?B:void 0})}}async function be(e,t,n,r){let o,i={};try{o=await He(g,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{i[t.route.id]={type:"error",error:e}})),i}if(e.signal.aborted)return i;if(!ft(e.method))for(let e of t){if("error"===o[e.route.id]?.type)break;o.hasOwnProperty(e.route.id)||I.loaderData.hasOwnProperty(e.route.id)||I.errors&&I.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(o[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[n,r]of Object.entries(o))if(at(r)){let o=r.result;i[n]={type:"redirect",response:Ue(o,e,n,t,l)}}else i[n]=await We(r);return i}async function xe(e,t,n,r){let o=be(n,e,r,null),i=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await be(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:et(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await i).reduce(((e,t)=>Object.assign(e,t)),{})}}function je(){q=!0,ne.forEach(((e,t)=>{$.has(t)&&Y.add(t),_e(t)}))}function Pe(e,t,n={}){I.fetchers.set(e,t),se({fetchers:new Map(I.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Te(e,t,n,r={}){let o=Xe(I.matches,t);De(e),se({errors:{[o.route.id]:n},fetchers:new Map(I.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ce(e){return re.set(e,(re.get(e)||0)+1),ie.has(e)&&ie.delete(e),I.fetchers.get(e)||he}function De(e){let t=I.fetchers.get(e);!$.has(e)||t&&"loading"===t.state&&Q.has(e)||_e(e),ne.delete(e),Q.delete(e),X.delete(e),ie.delete(e),Y.delete(e),I.fetchers.delete(e)}function _e(e,t){let n=$.get(e);n&&(n.abort(t),$.delete(e))}function Re(e){for(let t of e){let e=bt(Ce(t).data);I.fetchers.set(t,e)}}function Ie(){let e=[],t=!1;for(let n of X){let r=I.fetchers.get(n);u(r,`Expected fetcher: ${n}`),"loading"===r.state&&(X.delete(n),e.push(n),t=!0)}return Re(e),t}function Me(e){let t=[];for(let[n,r]of Q)if(r<e){let e=I.fetchers.get(n);u(e,`Expected fetcher: ${n}`),"loading"===e.state&&(_e(n),Q.delete(n),t.push(n))}return Re(t),t.length>0}function Le(e){I.blockers.delete(e),ae.delete(e)}function Fe(e,t){let n=I.blockers.get(e)||ge;u("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(I.blockers);r.set(e,t),se({blockers:r})}function Be({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ae.size)return;ae.size>1&&d(!1,"A router only supports one blocker at a time");let r=Array.from(ae.entries()),[o,i]=r[r.length-1],a=I.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ye(e){let t=et(404,{pathname:e}),n=a||s,{matches:r,route:o}=Ze(n);return{notFoundMatches:r,route:o,error:t}}function $e(e,t){if(E){return E(e,t.map((e=>j(e,I.loaderData))))||e.key}return e.key}function Ge(e,t){if(k){let n=$e(e,t),r=k[n];if("number"==typeof r)return r}return null}function nt(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:A(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:A(n,r,l,!0)}}}return{active:!1,matches:null}}async function rt(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==a,d=a||s,p=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||Ee(e,t,d,p,i,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let f=S(d,n,l),m=null;if(f){if(0===Object.keys(f[0].params).length)return{type:"success",matches:f};if(m=A(d,n,l,!0),!(m&&u.length<m.length&&ot(u,m.slice(0,u.length))))return{type:"success",matches:f}}if(m||(m=A(d,n,l,!0)),!m||ot(u,m))return{type:"success",matches:null};u=m}}function ot(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return h={get basename(){return l},get future(){return y},get state(){return I},get routes(){return s},get window(){return t},initialize:function(){if(x=e.history.listen((({action:t,location:n,delta:r})=>{if(R)return R(),void(R=void 0);d(0===ae.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=Be({currentLocation:I.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{R=e}));return e.history.go(-1*r),Fe(o,{state:"blocked",location:n,proceed(){Fe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(I.blockers);e.set(o,ge),se({blockers:e})}}),z?.resolve(),void(z=null)}return ue(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ye);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,W);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ye,JSON.stringify(n))}catch(e){d(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,W);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return I.initialized||ue("POP",I.location,{initialHydration:!0}),h},subscribe:function(e){return w.add(e),()=>w.delete(e)},enableScrollRestoration:function(e,t,n){if(k=e,P=t,E=n||null,!T&&I.navigation===me){T=!0;let e=Ge(I.location,I.matches);null!=e&&se({restoreScrollPosition:e})}return()=>{k=null,P=null,E=null}},navigate:async function t(n,r){if(z?.resolve(),z=null,"number"==typeof n){z||(z=xt());let t=z.promise;return e.history.go(n),t}let o=we(I.location,I.matches,l,n,r?.fromRouteId,r?.relative),{path:i,submission:a,error:c}=Oe(!1,o,r),s=I.location,u=f(I.location,i,r&&r.state);u={...u,...e.history.encodeLocation(u)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=a&&ft(a.formMethod)&&a.formAction===I.location.pathname+I.location.search&&(p="REPLACE");let m=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),g=Be({currentLocation:s,nextLocation:u,historyAction:p});g?Fe(g,{state:"blocked",location:u,proceed(){Fe(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(I.blockers);e.set(g,ge),se({blockers:e})}}):await ue(p,u,{submission:a,pendingError:c,preventScrollReset:m,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,d){_e(t);let p=!0===(d&&d.flushSync),f=a||s,m=we(I.location,I.matches,l,o,n,d?.relative),h=S(f,m,l),g=nt(h,f,m);if(g.active&&g.matches&&(h=g.matches),!h)return void Te(t,n,et(404,{pathname:m}),{flushSync:p});let{path:v,submission:y,error:x}=Oe(!0,m,d);if(x)return void Te(t,n,x,{flushSync:p});let w=e.getContext?await e.getContext():new b,O=!0===(d&&d.preventScrollReset);y&&ft(y.formMethod)?await async function(t,n,o,d,p,f,m,h,g,v){je(),ne.delete(t);let y=I.fetchers.get(t);Pe(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(g,y),{flushSync:m});let b=new AbortController,x=qe(e.history,o,b.signal,g);if(f){let e=await rt(d,new URL(x.url).pathname,x.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:m});if(!e.matches)return void Te(t,n,et(404,{pathname:o}),{flushSync:m});d=e.matches}let w=ht(d,o);if(!w.route.action&&!w.route.lazy){let e=et(405,{method:g.formMethod,pathname:o,routeId:n});return void Te(t,n,e,{flushSync:m})}$.set(t,b);let O=G,k=ze(i,c,x,d,w,r,p),A=await be(x,k,p,t),j=A[w.route.id];if(!j)for(let e of k)if(A[e.route.id]){j=A[e.route.id];break}if(x.signal.aborted)return void($.get(t)===b&&$.delete(t));if(ie.has(t)){if(st(j)||ct(j))return void Pe(t,bt(void 0))}else{if(st(j))return $.delete(t),K>O?void Pe(t,bt(void 0)):(X.add(t),Pe(t,yt(g)),pe(x,j,!1,{fetcherSubmission:g,preventScrollReset:h}));if(ct(j))return void Te(t,n,j.error)}let E=I.navigation.location||I.location,P=qe(e.history,E,b.signal),T=a||s,C="idle"!==I.navigation.state?S(T,I.navigation.location,l):I.matches;u(C,"Didn't find any matches after fetcher action");let D=++G;Q.set(t,D);let _=yt(g,j.data);I.fetchers.set(t,_);let{dsMatches:R,revalidatingFetchers:M}=ke(P,p,i,c,e.history,I,C,g,E,r,!1,q,Y,ie,ne,X,T,l,null!=e.patchRoutesOnNavigation,[w.route.id,j],v);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=I.fetchers.get(t),r=yt(void 0,n?n.data:void 0);I.fetchers.set(t,r),_e(t),e.controller&&$.set(t,e.controller)})),se({fetchers:new Map(I.fetchers)});let F=()=>M.forEach((e=>_e(e.key)));b.signal.addEventListener("abort",F);let{loaderResults:z,fetcherResults:H}=await xe(R,M,P,p);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",F),Q.delete(t),$.delete(t),M.forEach((e=>$.delete(e.key))),I.fetchers.has(t)){let e=bt(j.data);I.fetchers.set(t,e)}let B=tt(z);if(B)return pe(P,B.result,!1,{preventScrollReset:h});if(B=tt(H),B)return X.add(B.key),pe(P,B.result,!1,{preventScrollReset:h});let{loaderData:W,errors:U}=Je(I,C,z,void 0,M,H);Me(D),"loading"===I.navigation.state&&D>K?(u(L,"Expected pending action"),N&&N.abort(),le(I.navigation.location,{matches:C,loaderData:W,errors:U,fetchers:new Map(I.fetchers)})):(se({errors:U,loaderData:Ke(I.loaderData,W,C,U),fetchers:new Map(I.fetchers)}),q=!1)}(t,n,v,h,w,g.active,p,O,y,d&&d.unstable_defaultShouldRevalidate):(ne.set(t,{routeId:n,path:v}),await async function(t,n,o,a,s,l,u,d,p){let f=I.fetchers.get(t);Pe(t,yt(p,f?f.data:void 0),{flushSync:u});let m=new AbortController,h=qe(e.history,o,m.signal);if(l){let e=await rt(a,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:u});if(!e.matches)return void Te(t,n,et(404,{pathname:o}),{flushSync:u});a=e.matches}let g=ht(a,o);$.set(t,m);let v=G,y=ze(i,c,h,a,g,r,s),b=await be(h,y,s,t),x=b[g.route.id];$.get(t)===m&&$.delete(t);if(h.signal.aborted)return;if(ie.has(t))return void Pe(t,bt(void 0));if(st(x))return K>v?void Pe(t,bt(void 0)):(X.add(t),void await pe(h,x,!1,{preventScrollReset:d}));if(ct(x))return void Te(t,n,x.error);Pe(t,bt(x.data))}(t,n,v,h,w,g.active,p,O,y))},revalidate:function(){ce||(ce=xt()),je(),se({revalidation:"loading"});let e=ce.promise;return"submitting"===I.navigation.state?e:"idle"===I.navigation.state?(ue(I.historyAction,I.location,{startUninterruptedRevalidation:!0}),e):(ue(L||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:!0===B}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ce,resetFetcher:function(e,t){_e(e,t?.reason),Pe(e,bt(null))},deleteFetcher:function(e){let t=(re.get(e)||0)-1;t<=0?(re.delete(e),ie.add(e)):re.set(e,t),se({fetchers:new Map(I.fetchers)})},dispose:function(){x&&x(),U&&U(),w.clear(),N&&N.abort(),I.fetchers.forEach(((e,t)=>De(t))),I.blockers.forEach(((e,t)=>Le(t)))},getBlocker:function(e,t){let n=I.blockers.get(e)||ge;return ae.get(e)!==t&&ae.set(e,t),n},deleteBlocker:Le,patchRoutes:function(e,t,n=!1){let r=null==a;Ee(e,t,a||s,c,i,n),r&&(s=[...s],se({}))},_internalFetchControllers:$,_internalSetRoutes:function(e){c={},a=O(e,i,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){se(e)}},e.unstable_instrumentations&&(h=function(e,t){let n={navigate:[],fetch:[]};if(t.forEach((e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}))),n.navigate.length>0){let t=e.navigate[Z]??e.navigate,r=te(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?m(n):".",...oe(e,r??{})}}));r&&(r[Z]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Z]??e.fetch,r=te(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...oe(e,o??{})}}));r&&(r[Z]=t,e.fetch=r)}return e}(h,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),h}function we(e,t,n,r,o,i){let a,c;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){c=e;break}}else a=t,c=t[t.length-1];let s=U(r||".",W(a),M(e.pathname,n)||e.pathname,"path"===i);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=mt(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:V([e,t])}({basename:n,pathname:s.pathname})),m(s)}function Oe(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!pt(n.formMethod))return{path:t,error:et(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:et(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),c=nt(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ft(a))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ft(a))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ye(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ye(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=$e(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=$e(r)}catch(e){return i()}let s={formMethod:a,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ft(s.formMethod))return{path:t,submission:s};let l=h(t);return e&&l.search&&mt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:m(l),submission:s}}function ke(e,t,n,r,o,i,a,c,s,l,u,d,p,f,m,h,g,v,y,b,x){let w,O=b?ct(b[1])?b[1].error:b[1].data:void 0,k=o.createURL(i.location),A=o.createURL(s);if(u&&i.errors){let e=Object.keys(i.errors)[0];w=a.findIndex((t=>t.route.id===e))}else if(b&&ct(b[1])){let e=b[0];w=a.findIndex((t=>t.route.id===e))-1}let j=b?b[1].statusCode:void 0,E=j&&j>=400,P={currentUrl:k,currentParams:i.matches[0]?.params||{},nextUrl:A,nextParams:a[0].params,...c,actionResult:O,actionStatus:j},T=K(a),C=a.map(((o,a)=>{let{route:c}=o,s=null;if(null!=w&&a>w?s=!1:c.lazy?s=!0:Se(c)?u?s=Ae(c,i.loaderData,i.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(i.loaderData,i.matches[a],o)&&(s=!0):s=!1,null!==s)return Fe(n,r,e,T,o,l,t,s);let p=!1;"boolean"==typeof x?p=x:E?p=!1:(d||k.pathname+k.search===A.pathname+A.search||k.search!==A.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(i.matches[a],o))&&(p=!0);let f={...P,defaultShouldRevalidate:p},m=je(o,f);return Fe(n,r,e,T,o,l,t,m,f,x)})),D=[];return m.forEach(((e,c)=>{if(u||!a.some((t=>t.route.id===e.routeId))||f.has(c))return;let s=i.fetchers.get(c),m=s&&"idle"!==s.state&&void 0===s.data,b=S(g,e.path,v);if(!b){if(y&&m)return;return void D.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(h.has(c))return;let w=ht(b,e.path),O=new AbortController,k=qe(o,e.path,O.signal),A=null;if(p.has(c))p.delete(c),A=ze(n,r,k,b,w,l,t);else if(m)d&&(A=ze(n,r,k,b,w,l,t));else{let e;e="boolean"==typeof x?x:!E&&d;let o={...P,defaultShouldRevalidate:e};je(w,o)&&(A=ze(n,r,k,b,w,l,t,o))}A&&D.push({key:c,routeId:e.routeId,path:e.path,matches:A,match:w,request:k,controller:O})})),{dsMatches:C,revalidatingFetchers:D}}function Se(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Ae(e,t,n){if(e.lazy)return!0;if(!Se(e))return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function je(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Ee(e,t,n,r,o,i){let a;if(e){let t=r[e];u(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=n;let c=[],s=[];if(t.forEach((e=>{let t=a.find((t=>Pe(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=O(c,o,[e||"_","patch",String(a?.length||"0")],r);a.push(...t)}if(i&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[i]=O([n],o,[],{},!0);Object.assign(r,{element:i.element?i.element:r.element,errorElement:i.errorElement?i.errorElement:r.errorElement,hydrateFallbackElement:i.hydrateFallbackElement?i.hydrateFallbackElement:r.hydrateFallbackElement})}}function Pe(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>Pe(e,t))))))}var Te=new WeakMap,Ce=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(u(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=Te.get(o);a||(a={},Te.set(o,a));let c=a[e];if(c)return c;let s=(async()=>{let t=function(e){return x.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)d(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(n)d(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await i();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return a[e]=s,s},De=new WeakMap;async function _e(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function Ne(e){return e.matches.some((e=>e.route.middleware))?Re(e,(()=>_e(e))):_e(e)}function Re(e,t){return Ie(e,t,(e=>{if(dt(e))throw e;return e}),ot,(function(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:"error",result:t}}));{let{matches:r}=e,o=Math.min(Math.max(r.findIndex((e=>e.route.id===n)),0),Math.max(r.findIndex((e=>e.shouldCallHandler())),0)),i=Xe(r,r[o].route.id).route.id;return Promise.resolve({[i]:{type:"error",result:t}})}}))}async function Ie(e,t,n,r,o){let{matches:i,request:a,params:c,context:s,unstable_pattern:l}=e,u=i.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await Me({request:a,params:c,context:s,unstable_pattern:l},u,t,n,r,o)}async function Me(e,t,n,r,o,i,a=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let s=t[a];if(!s){return await n()}let l,[u,d]=s,p=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await Me(e,t,n,r,o,i,a+1);return l={value:c},l.value}catch(e){return l={value:await i(e,u,l)},l.value}};try{let t=await d(e,p),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await p()},l.value)}catch(e){return await i(e,u,l)}}function Le(e,t,n,r,o){let i=Ce({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),a=function(e,t,n,r,o){let i=n[e.id];if(u(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=De.get(i);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{u("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let a=(o=e,w.has(o)),c=void 0!==i[e]&&"hasErrorBoundary"!==e;a?d(!a,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?d(!c,`Route "${i.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}var o;Object.assign(i,n),Object.assign(i,{...r(i),lazy:void 0})})();return De.set(i,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let a,c=Object.keys(e.lazy),s=[];for(let i of c){if(o&&o.includes(i))continue;let c=Ce({key:i,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),i===t&&(a=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),a?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:a}}(r.route,ft(n.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function Fe(e,t,n,r,o,i,a,c,s=null,l){let u=!1,d=Le(e,t,n,o,i);return{...o,_lazyPromises:d,shouldLoad:c,shouldRevalidateArgs:s,shouldCallHandler:e=>(u=!0,s?je(o,"boolean"==typeof l?{...s,defaultShouldRevalidate:l}:"boolean"==typeof e?{...s,defaultShouldRevalidate:e}:s):c),resolve(e){let{lazy:t,loader:i,middleware:s}=o.route,l=u||c||e&&!ft(n.method)&&(t||i),p=s&&s.length>0&&!i&&!t;return!l||!ft(n.method)&&p?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:i,scopedContext:a}){let c,s,l=ft(e.method),u=l?"action":"loader",d=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),e.signal.addEventListener("abort",s);let l=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)):r({request:e,unstable_pattern:t,params:n.params,context:a},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(i?i((e=>l(e))):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,c])};try{let t=l?n.route.action:n.route.loader;if(r||o)if(t){let e,[n]=await Promise.all([d(t).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=n}else{await r;let t=l?n.route.action:n.route.loader;if(!t){if("action"===u){let t=new URL(e.url),r=t.pathname+t.search;throw et(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw et(404,{pathname:t.pathname+t.search})}c=await d(t)}}catch(e){return{type:"error",result:e}}finally{s&&e.signal.removeEventListener("abort",s)}return c}({request:n,unstable_pattern:r,match:o,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:a})}}}function ze(e,t,n,r,o,i,a,c=null){return r.map((s=>s.route.id!==o.route.id?{...s,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Le(e,t,n,s,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Fe(e,t,n,K(r),s,i,a,!0,c)))}async function He(e,t,n,r,o,i){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let a={request:t,unstable_pattern:K(n),params:n[0].params,context:o,matches:n},c=i?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=a;return Re(t,(()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},s=await e({...a,fetcherKey:r,runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function Be(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function We(e){let{result:t,type:n}=e;if(ut(t)){let e;try{e=await Be(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new G(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?lt(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:rt(t),statusCode:J(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:J(t)?t.status:void 0}:lt(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ue(e,t,n,r,o){let i=e.headers.get("Location");if(u(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!F(i)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=we(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function Ve(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(F(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(o.includes(i.protocol))throw new Error("Invalid redirect location");let a=null!=M(i.pathname,n);if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}try{let t=r.createURL(e);if(o.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function qe(e,t,n,r){let o=e.createURL(nt(t)).toString(),i={signal:n};if(r&&ft(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Ye(r.formData):i.body=r.formData}return new Request(o,i)}function Ye(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function $e(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ge(e,t,n,r=!1,o=!1){let i,a={},c=null,s=!1,l={},d=n&&ct(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(u(!st(f),"Cannot handle redirect results in processLoaderData"),ct(f)){let t=f.error;if(void 0!==d&&(t=d,d=void 0),c=c||{},o)c[p]=t;else{let n=Xe(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(a[p]=be),s||(s=!0,i=J(f.error)?f.error.status:500),f.headers&&(l[p]=f.headers)}else a[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(i=f.statusCode),f.headers&&(l[p]=f.headers)})),void 0!==d&&n&&(c={[n[0]]:d},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:c,statusCode:i||200,loaderHeaders:l}}function Je(e,t,n,r,o,i){let{loaderData:a,errors:c}=Ge(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let a=i[n];if(u(a,"Did not find corresponding fetcher result"),ct(a)){let t=Xe(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(st(a))u(!1,"Unhandled fetcher revalidation redirect");else{let t=bt(a.data);e.fetchers.set(n,t)}})),{loaderData:a,errors:c}}function Ke(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==be)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let i of n){let n=i.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Qe(e){return e?ct(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Xe(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Ze(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function et(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(a="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(a="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(a="Not Found",c=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new G(e||500,a,new Error(c),!0)}function tt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(st(r))return{key:n,result:r}}}function nt(e){return m({..."string"==typeof e?h(e):e,hash:""})}function rt(e){return new G(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ot(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&it(t)))}function it(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function at(e){return ut(e.result)&&pe.has(e.result.status)}function ct(e){return"error"===e.type}function st(e){return"redirect"===(e&&e.type)}function lt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function ut(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function dt(e){return ut(e)&&(t=e.status,pe.has(t))&&e.headers.has("Location");var t}function pt(e){return de.has(e.toUpperCase())}function ft(e){return le.has(e.toUpperCase())}function mt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function ht(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&mt(n||""))return e[e.length-1];let r=B(e);return r[r.length-1]}function gt(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function vt(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function yt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function bt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function xt(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var wt=i.createContext(null);wt.displayName="DataRouter";var Ot=i.createContext(null);Ot.displayName="DataRouterState";var kt=i.createContext(!1);function St(){return i.useContext(kt)}var At=i.createContext({isTransitioning:!1});At.displayName="ViewTransition";var jt=i.createContext(new Map);jt.displayName="Fetchers";var Et=i.createContext(null);Et.displayName="Await";var Pt=i.createContext(null);Pt.displayName="Navigation";var Tt=i.createContext(null);Tt.displayName="Location";var Ct=i.createContext({outlet:null,matches:[],isDataRoute:!1});Ct.displayName="Route";var Dt=i.createContext(null);Dt.displayName="RouteError";var _t="REACT_ROUTER_ERROR";function Nt(){return null!=i.useContext(Tt)}function Rt(){return u(Nt(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(Tt).location}var It="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mt(e){i.useContext(Pt).static||i.useLayoutEffect(e)}function Lt(){let{isDataRoute:e}=i.useContext(Ct);return e?function(){let{router:e}=Jt("useNavigate"),t=Qt("useNavigate"),n=i.useRef(!1);return Mt((()=>{n.current=!0})),i.useCallback((async(r,o={})=>{d(n.current,It),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){u(Nt(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(wt),{basename:t,navigator:n}=i.useContext(Pt),{matches:r}=i.useContext(Ct),{pathname:o}=Rt(),a=JSON.stringify(W(r)),c=i.useRef(!1);return Mt((()=>{c.current=!0})),i.useCallback(((r,i={})=>{if(d(c.current,It),!c.current)return;if("number"==typeof r)return void n.go(r);let s=U(r,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:V([t,s.pathname])),(i.replace?n.replace:n.push)(s,i.state,i)}),[t,n,a,o,e])}()}i.createContext(null);function Ft(){let{matches:e}=i.useContext(Ct),t=e[e.length-1];return t?t.params:{}}function zt(e,{relative:t}={}){let{matches:n}=i.useContext(Ct),{pathname:r}=Rt(),o=JSON.stringify(W(n));return i.useMemo((()=>U(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function Ht(e,t,n,r,o){u(Nt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(Pt),{matches:c}=i.useContext(Ct),s=c[c.length-1],l=s?s.params:{},p=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;{let e=m&&m.path||"";nn(p,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let g,v=Rt();if(t){let e="string"==typeof t?h(t):t;u("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=v;let y=g.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=S(e,{pathname:b});d(m||null!=x,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),d(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=$t(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:V([f,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:V([f,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),c,n,r,o);return t&&w?i.createElement(Tt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},w):w}function Bt(){let e=Xt(),t=J(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,c)}var Wt=i.createElement(Bt,null),Ut=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${_t}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new G(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?i.createElement(Ct.Provider,{value:this.props.routeContext},i.createElement(Dt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(qt,{error:e},t):t}};Ut.contextType=kt;var Vt=new WeakMap;function qt({children:e,error:t}){let{basename:n}=i.useContext(Pt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${_t}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Vt.get(t);if(r)throw r;let o=X(e.location,n);if(Q&&!Vt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Vt.set(t,n),n}window.location.href=o.absoluteURL||o.to}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Yt({routeContext:e,match:t,children:n}){let r=i.useContext(wt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(Ct.Provider,{value:e},n)}function $t(e,t=[],n=null,r=null,o=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,c=n?.errors;if(null!=c){let e=a.findIndex((e=>e.route.id&&void 0!==c?.[e.route.id]));u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,l=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){s=!0,a=l>=0?a.slice(0,l+1):[a[0]];break}}}let d=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:K(n.matches),errorInfo:t})}:void 0;return a.reduceRight(((e,r,o)=>{let u,p=!1,f=null,m=null;n&&(u=c&&r.route.id?c[r.route.id]:void 0,f=r.route.errorElement||Wt,s&&(l<0&&0===o?(nn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):l===o&&(p=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,o+1)),g=()=>{let t;return t=u?f:p?m:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(Yt,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(Ut,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:d}):g()}),null)}function Gt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jt(e){let t=i.useContext(wt);return u(t,Gt(e)),t}function Kt(e){let t=i.useContext(Ot);return u(t,Gt(e)),t}function Qt(e){let t=function(e){let t=i.useContext(Ct);return u(t,Gt(e)),t}(e),n=t.matches[t.matches.length-1];return u(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Xt(){let e=i.useContext(Dt),t=Kt("useRouteError"),n=Qt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Zt=0;function en(e){let{router:t,basename:n}=Jt("useBlocker"),r=Kt("useBlocker"),[o,a]=i.useState(""),c=i.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:i}=t;return e({currentLocation:{...r,pathname:M(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:M(o.pathname,n)||o.pathname},historyAction:i})}),[n,e]);return i.useEffect((()=>{let e=String(++Zt);return a(e),()=>t.deleteBlocker(e)}),[t]),i.useEffect((()=>{""!==o&&t.getBlocker(o,c)}),[t,o,c]),o&&r.blockers.has(o)?r.blockers.get(o):ge}var tn={};function nn(e,t,n){t||tn[e]||(tn[e]=!0,d(!1,n))}var rn={};function on(e,t){e||rn[t]||(rn[t]=!0,console.warn(t))}var an=(r||(r=n.t(i,2))).useOptimistic,cn=()=>{};function sn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&d(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:i.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&d(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&d(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var ln=["HydrateFallback","hydrateFallbackElement"];var un=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function dn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=St();r=o||r;let[a,c]=i.useState(e.state),[s,l]=(u=a,an?an(u):[u,cn]);var u;let[d,p]=i.useState(),[f,m]=i.useState({isTransitioning:!1}),[h,g]=i.useState(),[v,y]=i.useState(),[b,x]=i.useState(),w=i.useRef(new Map),O=i.useCallback(((o,{deletedFetchers:a,newErrors:s,flushSync:u,viewTransitionOpts:d})=>{s&&n&&Object.values(s).forEach((e=>n(e,{location:o.location,params:o.matches[0]?.params??{},unstable_pattern:K(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&w.current.set(t,e.data)})),a.forEach((e=>w.current.delete(e))),on(!1===u||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let f=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(on(null==d||f,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),d&&f){if(t&&u){t((()=>{v&&(h?.resolve(),v.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})}))})),void t((()=>y(n)))}v?(h?.resolve(),v.skipTransition(),x({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(p(o),m({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t((()=>c(o))):!1===r?c(o):i.startTransition((()=>{!0===r&&l((e=>pn(e,o))),c(o)}))}),[e.window,t,v,h,r,l,n]);i.useLayoutEffect((()=>e.subscribe(O)),[e,O]),i.useEffect((()=>{f.isTransitioning&&!f.flushSync&&g(new un)}),[f]),i.useEffect((()=>{if(h&&d&&e.window){let t=d,n=h.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):i.startTransition((()=>{!0===r&&l((e=>pn(e,t))),c(t)})),await n}));o.finished.finally((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})})),y(o)}}),[d,h,e.window,r,l]),i.useEffect((()=>{h&&d&&s.location.key===d.location.key&&h.resolve()}),[h,v,s.location,d]),i.useEffect((()=>{!f.isTransitioning&&b&&(p(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),x(void 0))}),[f.isTransitioning,b]);let k=i.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),S=e.basename||"/",A=i.useMemo((()=>({router:e,navigator:k,static:!1,basename:S,onError:n})),[e,k,S,n]);return i.createElement(i.Fragment,null,i.createElement(wt.Provider,{value:A},i.createElement(Ot.Provider,{value:s},i.createElement(jt.Provider,{value:w.current},i.createElement(At.Provider,{value:f},i.createElement(gn,{basename:S,location:s.location,navigationType:s.historyAction,navigator:k,unstable_useTransitions:r},i.createElement(fn,{routes:e.routes,future:e.future,state:s,onError:n})))))),null)}function pn(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var fn=i.memo((function({routes:e,future:t,state:n,onError:r}){return Ht(e,void 0,n,r,t)}));function mn({to:e,replace:t,state:n,relative:r}){u(Nt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(Pt);d(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(Ct),{pathname:c}=Rt(),s=Lt(),l=U(e,W(a),c,"path"===r),p=JSON.stringify(l);return i.useEffect((()=>{s(JSON.parse(p),{replace:t,state:n,relative:r})}),[s,p,r,t,n]),null}function hn(e){u(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1,unstable_useTransitions:c}){u(!Nt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=i.useMemo((()=>({basename:s,navigator:o,static:a,unstable_useTransitions:c,future:{}})),[s,o,a,c]);"string"==typeof n&&(n=h(n));let{pathname:p="/",search:f="",hash:m="",state:g=null,key:v="default"}=n,y=i.useMemo((()=>{let e=M(p,s);return null==e?null:{location:{pathname:e,search:f,hash:m,state:g,key:v},navigationType:r}}),[s,p,f,m,g,v,r]);return d(null!=y,`<Router basename="${s}"> is not able to match the URL "${p}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:i.createElement(Pt.Provider,{value:l},i.createElement(Tt.Provider,{children:t,value:y}))}function vn({children:e,location:t}){return Ht(yn(e),t)}i.Component;function yn(e,t=[]){let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let o=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,yn(e.props.children,o));u(e.type===hn,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),u(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=yn(e.props.children,o)),n.push(a)})),n}var bn="get",xn="application/x-www-form-urlencoded";function wn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var On=null;var kn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sn(e){return null==e||kn.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xn}"`),null)}function An(e,t){let n,r,o,i,a;if(wn(c=e)&&"form"===c.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?M(a,t):null,n=e.getAttribute("method")||bn,o=Sn(e.getAttribute("enctype"))||xn,i=new FormData(e)}else if(function(e){return wn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return wn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||a.getAttribute("action");if(r=c?M(c,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||bn,o=Sn(e.getAttribute("formenctype"))||Sn(a.getAttribute("enctype"))||xn,i=new FormData(a,e),!function(){if(null===On)try{new FormData(document.createElement("form"),0),On=!1}catch(e){On=!0}return On}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(wn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=bn,r=null,o=xn,a=e}var c;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function jn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function En(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===M(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Pn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Tn(e){return null!=e&&"string"==typeof e.page}function Cn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Dn(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter(((e,t)=>a(e,t)||c(e,t))):"data"===i?t.filter(((t,i)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(a(t,i)||c(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function _n(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function Nn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Tn(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function Rn(e,t){return"lazy"===e.mode&&!0===t}function In(){let e=i.useContext(wt);return jn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Mn(){let e=i.useContext(Ot);return jn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ln=i.createContext(void 0);function Fn(){let e=i.useContext(Ln);return jn(e,"You must render this element inside a <HydratedRouter> element"),e}function zn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Hn(e,t,n){if(n&&!Vn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Ln.displayName="FrameworkContext";function Bn({page:e,...t}){let{router:n}=In(),r=i.useMemo((()=>S(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?i.createElement(Un,{page:e,matches:r,...t}):null}function Wn(e){let{manifest:t,routeModules:n}=Fn(),[r,o]=i.useState([]);return i.useEffect((()=>{let r=!1;return async function(e,t,n){return Nn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Pn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Cn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||o(e)})),()=>{r=!0}}),[e,t,n]),r}function Un({page:e,matches:t,...n}){let r=Rt(),{future:o,manifest:a,routeModules:c}=Fn(),{basename:s}=In(),{loaderData:l,matches:u}=Mn(),d=i.useMemo((()=>Dn(e,t,u,a,r,"data")),[e,t,u,a,r]),p=i.useMemo((()=>Dn(e,t,u,a,r,"assets")),[e,t,u,a,r]),f=i.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,i=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some((t=>t.route.id===e.route.id))&&e.route.id in l&&c[e.route.id]?.shouldRevalidate||t.hasClientLoader?i=!0:n.add(e.route.id))})),0===n.size)return[];let u=En(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return i&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[s,o.unstable_trailingSlashAwareDataRequests,l,r,a,d,t,e,c]),m=i.useMemo((()=>_n(p,a)),[p,a]),h=Wn(p);return i.createElement(i.Fragment,null,f.map((e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>i.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>i.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var Vn=!1;function qn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:a,ssr:c}=Fn(),{router:s,static:l,staticContext:u}=In(),{matches:d}=Mn(),p=St(),f=Rn(a,c);o&&(o.didRenderScripts=!0);let m=Hn(d,null,r);i.useEffect((()=>{0}),[]);let h=i.useMemo((()=>{if(p)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${m.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];jn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${f?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach((e=>{let t=S(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let a=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:a,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${m.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return i.createElement(i.Fragment,null,i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))}),[]),g=Vn||p?[]:(t.entry.imports.concat(_n(m,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let y="object"==typeof t.sri?t.sri:{};return on(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Vn||p?null:i.createElement(i.Fragment,null,"object"==typeof t.sri?i.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,f?null:i.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),i.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),g.map((t=>i.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),h)}function Yn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}i.Component;function $n({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=i.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(J(e))return i.createElement(Gn,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return i.createElement(Gn,{title:"Application Error!",isOutsideRemixApp:t},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function Gn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Fn();return o.root?.Layout&&!n?r:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,e)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?i.createElement(qn,null):null)))}var Jn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Jn&&(window.__reactRouterVersion="7.13.0")}catch(e){}function Kn(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:l({window:t?.window}),hydrationData:t?.hydrationData||Qn(),routes:e,mapRouteProperties:sn,hydrationRouteProperties:ln,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function Qn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Xn(e.errors)}),e}function Xn(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new G(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var Zn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,er=i.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:a,state:c,target:s,to:l,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:f,...h},g){let{basename:v,unstable_useTransitions:y}=i.useContext(Pt),b="string"==typeof l&&Zn.test(l),x=X(l,v),w=function(e,{relative:t}={}){u(Nt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=i.useContext(Pt),{hash:o,pathname:a,search:c}=zt(e,{relative:t}),s=a;return"/"!==n&&(s="/"===a?n:V([n,a])),r.createHref({pathname:s,search:c,hash:o})}(l=x.to,{relative:r}),[O,k,S]=function(e,t){let n=i.useContext(Ln),[r,o]=i.useState(!1),[a,c]=i.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=i.useRef(null);i.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),i.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{o(!0)},h=()=>{o(!1),c(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:zn(s,m),onBlur:zn(l,h),onMouseEnter:zn(u,m),onMouseLeave:zn(d,h),onTouchStart:zn(p,m)}]:[!1,f,{}]}(n,h),A=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:c,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=Lt(),d=Rt(),p=zt(e,{relative:a});return i.useCallback((f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==n?n:m(d)===m(p),h=()=>u(e,{replace:t,state:r,preventScrollReset:o,relative:a,viewTransition:c,unstable_defaultShouldRevalidate:s});l?i.startTransition((()=>h())):h()}}),[d,u,p,n,r,t,e,o,a,c,s,l])}(l,{replace:a,state:c,target:s,preventScrollReset:d,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:f,unstable_useTransitions:y});let j=i.createElement("a",{...h,...S,href:x.absoluteURL||w,onClick:x.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||A(t)},ref:Yn(g,k),target:s,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?i.createElement(i.Fragment,null,j,i.createElement(Bn,{page:w})):j}));er.displayName="Link",i.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:a,viewTransition:c,children:s,...l},d){let p=zt(a,{relative:l.relative}),f=Rt(),m=i.useContext(Ot),{navigator:h,basename:g}=i.useContext(Pt),v=null!=m&&function(e,{relative:t}={}){let n=i.useContext(At);u(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rr("useViewTransitionState"),o=zt(e,{relative:t});if(!n.isTransitioning)return!1;let a=M(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=M(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=N(o.pathname,c)||null!=N(o.pathname,a)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&g&&(x=M(x,g)||x);const w="/"!==y&&y.endsWith("/")?y.length-1:y.length;let O,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(w),S=null!=x&&(x===y||!r&&x.startsWith(y)&&"/"===x.charAt(y.length)),A={isActive:k,isPending:S,isTransitioning:v},j=k?e:void 0;O="function"==typeof n?n(A):[n,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof o?o(A):o;return i.createElement(er,{...l,"aria-current":j,className:O,ref:d,style:E,to:a,viewTransition:c},"function"==typeof s?s(A):s)})).displayName="NavLink";var tr=i.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:c=bn,action:s,onSubmit:l,relative:d,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:h,...g},v)=>{let{unstable_useTransitions:y}=i.useContext(Pt),b=ir(),x=function(e,{relative:t}={}){let{basename:n}=i.useContext(Pt),r=i.useContext(Ct);u(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...zt(e||".",{relative:t})},c=Rt();if(null==e){a.search=c.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();a.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:V([n,a.pathname]));return m(a)}(s,{relative:d}),w="get"===c.toLowerCase()?"get":"post",O="string"==typeof s&&Zn.test(s);return i.createElement("form",{ref:v,method:w,action:x,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||c,u=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:a,relative:d,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:h});y&&!1!==n?i.startTransition((()=>u())):u()},...g,"data-discover":O||"render"!==e?void 0:"true"})}));function nr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rr(e){let t=i.useContext(wt);return u(t,nr(e)),t}tr.displayName="Form";var or=0;function ir(){let{router:e}=rr("useSubmit"),{basename:t}=i.useContext(Pt),n=Qt("useRouteId"),r=e.fetch,o=e.navigate;return i.useCallback((async(e,i={})=>{let{action:a,method:c,encType:s,formData:l,body:u}=An(e,t);if(!1===i.navigate){let e=i.fetcherKey||`__${String(++or)}__`;await r(e,n,i.action||a,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||c,formEncType:i.encType||s,flushSync:i.flushSync})}else await o(i.action||a,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||c,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})}),[r,o,t,n])}},52600(e,t,n){"use strict";n.d(t,{pg:()=>a});var r=n(35570),o=n(4883),i=n(81845);function a(e){return o.createElement(r.pg,{flushSync:i.flushSync,...e})}(0,r.q6)()},77987(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},95065(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},97991(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},24747(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},27887(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>o})},6624(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(37444),o=n(89954),i=n(1560);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},88097(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},37444(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},49523(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(15216);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},89954(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{A:()=>r})},62439(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},21648(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}n.d(t,{A:()=>r})},37820(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77969(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(88097);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8609(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},1560(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(65710),o=n(97991);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},15216(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},52167(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(6695),o=n(21648),i=n(25134),a=n(37820);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},47978(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},78840(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(95065),o=n(62439),i=n(25134),a=n(77969);function c(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},65710(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},72367(e,t,n){"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725(e,t,n){"use strict";n.d(t,{ll:()=>x});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return o(e).getComputedStyle(e)}function a(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function s(e){return e instanceof o(e).HTMLElement}function l(e){return e instanceof o(e).Element}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=i(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(){return!/^((?!chrome|android).)*safari/i.test(c())}function f(e){return["html","body","#document"].includes(a(e))}Math.min,Math.max;const m=Math.round;function h(e,t,n){var r,i,a,c;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let d=1,f=1;t&&s(e)&&(d=e.offsetWidth>0&&m(u.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(u.height)/e.offsetHeight||1);const h=l(e)?o(e):window,g=!p()&&n,v=(u.left+(g&&null!=(r=null==(i=h.visualViewport)?void 0:i.offsetLeft)?r:0))/d,y=(u.top+(g&&null!=(a=null==(c=h.visualViewport)?void 0:c.offsetTop)?a:0))/f,b=u.width/d,x=u.height/f;return{width:b,height:x,top:y,right:v+b,bottom:y+x,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||g(e);return u(t)?t.host:t}function y(e){const t=v(e);return f(t)?e.ownerDocument.body:s(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),c=i?[a].concat(a.visualViewport||[],d(r)?r:[]):r,s=t.concat(c);return i?s:s.concat(b(c))}function x(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||i?[...l(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let d,p=null;if(a){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&p.observe(e),l(e)||!e.contextElement||c||p.observe(e.contextElement),p.observe(t)}let f=c?h(e):null;return c&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(d)}}},92149(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4883),o=n(81845),i=n(2418);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const c=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class s extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new i(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,c),i=a({target:this._targetNode.current,element:this._elementParentNode},o),s=n||"";if(this._elementParentNode&&this._elementParentNode.id!==s&&(this._elementParentNode.id=s),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346(e,t,n){"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>i});var o=r(),i=r},14644(e,t,n){"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>l,Qd:()=>c,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let i=e,l=t,u=new Map,d=u,p=0,f=!1;function m(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return l}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),u=null}}}function v(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,l=i(l,e)}finally{f=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const c={};for(let i=0;i<o.length;i++){const s=o[i],l=n[s],u=e[s],d=l(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}c[s]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?c:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const c={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map((e=>e(c)));return a=p(...s)(i.dispatch),{...i,dispatch:a}}}function m(e){return c(e)&&"type"in e&&"string"==typeof e.type}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;("object"==typeof a||"function"==typeof a)&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({4672:"phone-formatter",36916:"vendor-icons",49222:"vendor-libphonenumber-js",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"f1ff00e7bfaad1a49c65",662:"0fd8dd114dcedfce0ac3",850:"5a0b34898be4a47275f8",996:"03d99484a35667202f67",1207:"d6cab810b5b1c919d11e",1216:"8b60ba3abbdfd2a04675",1221:"365e6d24944b8561b9a6",1234:"54aba771fea48cdbfabb",1325:"0a69d3d2550e56661765",1361:"3116313639cc2851a240",1496:"31150c4ec412c96f10db",1655:"a2d4d00d2748b62a530b",1702:"f8ee12b1425f246688ab",1766:"487a4222c2bd9a7765e1",2045:"53812894176a307be82b",2070:"f1e875d45db8ca27a2b8",2451:"16692c02fbc71ceeeb10",2540:"ade73fc6a29bd33ece17",2586:"f2f9ddf0d4c5e7be5501",2682:"3bab05cdefd872ae7d0a",3082:"912fab302a17ae886a32",3459:"e8035e39b8f11b69e6c8",4139:"b72c53fd483c606f5a7a",4490:"405ae36cb7ced10489b3",4672:"6f70d1fd93552b68c3d2",5243:"6253b8cb6f2232dab63c",5318:"b77c3b5c01253f170e62",5438:"1153f6ba6ef546c43a1a",5575:"e0bae7a13317fd59fab5",5817:"2fb77ae1e345be0b685f",6041:"858ce845b21abe4bbc9e",6147:"aa51d6e0759b2bbd6209",6396:"19bcb006d361f1f22cc8",6644:"8bbdd84f028d0b4982df",6893:"3c120b054a316402b3fb",7313:"817d45d3d9f39a5ea7d1",7625:"f9093eaf54489c272f57",7668:"d02be86a1a9cca34c427",7743:"05de1f99606a13e8615c",7802:"fc472a85e98bd017e6a4",7989:"602633b4d34b69fba837",8171:"1141cb0a5322799fa16b",8504:"ef379e4b610bc84ac1b0",8676:"5ea8651b854b320b83f0",8818:"5986339482f675290a09",8992:"6ce9edcefbb86fac28e9",9017:"deba7b73eb7d17988081",9561:"03db1abc6ede43ef2726",9603:"033929f84840257b1ee3",9753:"0f46643b0b65e92260f0",10012:"62c238eb1f819c760dbe",10472:"e6718efaee148cf04bee",10499:"4241948a5afa28c63c8f",10655:"63e1888a3d37bd228c57",10910:"2d7c2cea382ac6d47877",11211:"c3a826deb36ca3084430",11239:"664b58de88949602eab7",11281:"6839e1785eea6fa62fd4",11788:"3c8d4fb49b0605e4a42e",11842:"a30cf0685f7c94646052",12987:"43bfcd11dbd7d00ecd34",13081:"2f9bd09e8f3e877c25e1",13093:"706961a8ccd307c7119b",13124:"f0f4ecc745e36fe165c4",13452:"131cf324a1608bfffffd",13622:"5499073d732a5df7e1c9",14291:"f070cad82b91a078e4f8",14527:"6ab89e61467ee174c29f",14663:"a055d8d182a01b394b76",14879:"d5f44ee5b01e01ae829a",14973:"1d42cdeebeef41e175b3",15028:"ed6df70ca3df686324df",15197:"a6f529ee3b5e4bc94c50",15692:"b75f8acf7f44c4a43492",15802:"5364a404bc039ccf87b2",15898:"ed6251b5ce151fb12cba",16334:"bbd89defd17054298673",17e3:"971df60cee99815fcd3b",17076:"cc7717f3af4d9ba576aa",17247:"66fdff46131777948ec2",17380:"d64993620041e5af310c",18334:"08f51601d896f1d70765",18410:"5daa0091b7681d5a7a33",18849:"4b3e5bf7068223b9dd4a",19217:"d2125366eadeb8f56f9a",19249:"bc50e6920720dc8db10a",19557:"1385150b3a640532f6c6",19588:"8e0d6c0cc512f596cb09",19786:"a728b76d5f49cb618c75",19956:"95833e32301759233465",20009:"8e731060a6f81aba7a42",20047:"63cb5a28e454dbb33400",20132:"1e21a33006aa737bafea",20360:"0b51940342e156419601",20454:"2d85b5e1208d6ca257ee",20592:"2e32806bf86d32a90dd2",20659:"2c8e8b028645664a5f42",21137:"032ec676fdc7f7ed726d",21323:"e4be5a93303084f1608c",21843:"c610b016bdb60e9e3122",21901:"bc72c861ee2328f62b2b",22030:"dea7d8775bbb562f3ff1",22584:"9edd4e1cdaa1cb9c09c6",22981:"832147f4f0c38b3f51a6",23097:"2d6bcdc6cb3258e6b4e1",23257:"12003e00122e84ea6fa6",23407:"8dc00a45bce7426e0c5c",24364:"9ce68c8a50afc9ad7063",24499:"f807ec171cc38889cdaf",24522:"0cbac0e30e9fc76d3522",24854:"02777d8426ce93d81277",25181:"35698e587f85f63109e1",25395:"deb984b34f01a3ac44a5",25637:"3b60eed5552b6fd82328",26051:"80f10f79a334b538e144",26332:"b1f2aa02ee4f32437bc1",26528:"e24755ac009d44ec9740",26605:"712f2bb25f8098cac660",26820:"4c1ad1b72ada62ccdaa0",27211:"39ff4815053d7cb22c5e",28507:"16c9e822de13c5cee774",28586:"68555d47331490522c79",28734:"262af79b3dd1c445862a",28797:"8edbad9e771de8794647",29067:"cb760ec1040727d60f8f",29072:"3089b1882e952d4c3762",29369:"43ebd7ec09605ebfb360",29435:"deeb9288b0beff42b691",29694:"3a664c8f23e4e24ee365",29755:"ec53b13b701958299571",29861:"e5069aacfdfbcfc558f0",29954:"fa24abb9845651988597",30470:"5df04b1abafd45ced616",30486:"df4f9374cbd741cd8baa",30766:"245c939a0ccd490411cd",30897:"dc06397d9d1960ba6bf7",31001:"9f098e5720d408dc5221",31131:"91021a14d3a3b96fda2a",31255:"aa4bef83eb09b82d7d80",31570:"6d418fc856e72aa44e13",31600:"2c03481063505e1a3e2b",31723:"159041b90d32102b642c",31835:"3c3d0ecb2aac9fc6c92e",32499:"3f76351d12b853244935",32521:"30334f92d04f0e1a0814",32725:"aab5d462dfb8e7eb58db",33204:"e021a2ec3fcf6c720a1d",33227:"ef722e6c3dba390fe4f7",33366:"88a14c7265556f5aa05e",33537:"a70e0f38a19368f40152",33688:"6bcdb120347fe16e0254",34048:"55c77fdcb703c7e81c42",34163:"2e074ea2e1e6cce6840b",34675:"fb958c953f8f921ae102",34678:"8b17e86547cfa06be239",34817:"ec3b2ecf2fd49a61c669",34869:"d386c5cede98e7988bed",34916:"dc38aa940097ec7b98d2",35173:"2a43c1e9746948404c44",36032:"909047690aa976537c69",36086:"ce897c22c4d6398a1777",36627:"51119a75549200862a5f",36763:"6430f4b8100205702387",36788:"7a26d567ff9538a844ce",36916:"06146b04d52672170c14",37210:"caf6d1e7fb26d8c0549b",37551:"631fe1dc336e6ab1e01b",37633:"c14eef0c0095b0693c17",37856:"0e09e8d7589df7082d0d",37887:"a248311dd47c9dc91b2b",38223:"67a6c34902585ced7c92",38297:"dfb26eddb9623dcd9b27",38470:"b84849417088c060f383",38506:"e772f3e68de0d78f1280",38749:"90627bc654014fb9955a",38848:"00b62907ed1bc648c424",38909:"e2b7d86759a51c7a43d5",38918:"ffea056ae5c1198084fc",39417:"a4a415f80d55e3cbcba6",39669:"d60eba8c328b22378dcc",39797:"2898cd6210bcb1d0d71a",40426:"3f99e95594d333dfa828",40975:"a7fb4213b4e652dab9c4",41056:"5ff904bdc5dd5e481a7c",41170:"f1d966f842b9518f0bcd",41293:"f9d316cd43337b80e5f8",42049:"a51190f536d3a6db959b",42206:"8dcf0910546c350f305e",42482:"94f8e6ee5f26dec7fbbd",43158:"21f806b61c5a729c5fce",43317:"fd86ece88f7ca84f81e3",43425:"9fd6e1c5e1e7739c08a4",43500:"1cfc037c8af7e3e82603",43636:"f3ff27d3c55cce8872b1",44286:"e0fd517ec5cfcb00457a",44330:"7bba3b8e5a0a64f3f555",44417:"c0d5d1ac8c4d7fa56221",44586:"1e266c7874c3462589b1",44753:"1c7ae8b75a3453740dfa",44788:"1b6144417b3712185201",45010:"d89ae80cb6626f104fb7",45011:"6349e01beba38d46ac5e",45029:"f9207909e2ccaf0ccfc3",45202:"f353b7ce60431cc2c063",45209:"c9cdd3b786021baa22f9",45587:"b78d89d23bf874b0fd3b",45631:"ea2c31894731dca3a188",45734:"79f3e00a4298ca1bbc8a",45814:"53162b38adb82aa7ce22",46116:"b97f0e4185ac5cfe879a",46167:"fb63c0e785e7e24b4fa1",46503:"8cb5699507933134b5e9",46623:"a1555742262b13f7bf34",46811:"29cbd6f56eb77e3dcdef",47026:"e4eb439978fd6b102387",47075:"56bc9ede14d41557e62c",47145:"f4d17cf1fc67102eb7f3",47173:"54a2b950c9e00d82f765",47281:"58a9294792f78e2e3b73",47387:"a22fc6dde03253960742",47507:"e68e7cccf09d4c68f0a9",47694:"fe30f528f9640ceb4d2f",47968:"da3e556b5ee7fc241f1e",48077:"91283c1a3a49de507a95",48320:"f8e0820c0249e78e9632",48331:"c1f0e26ab6535046aff6",48575:"1f092615ed9121778114",48640:"70fecbcbb09592e64f51",49159:"889b871e16f4b6d03546",49222:"ae0a7b49ccc555512156",49343:"d8b97c8f8bcda41e14fd",49372:"42c302cee9fbe3b96737",49392:"b030af6092daca5c9fc8",49808:"ead9769a1db68a145256",50117:"c703e5a4e4c3d42fccda",50152:"428501a0fcad58476342",51004:"a0935d1257b9e43c6f55",51057:"7a61603ea4dad8776e53",51150:"af2a541c6096cd721164",51183:"8727629e6259a8afed78",51199:"b26d078fd35c1cafae15",51287:"70e300cadad937762605",51289:"d6576bdb6e3c4e35d3c8",51678:"d83d2d45031e38806a85",51958:"8165fe4316f737d38274",52602:"177c4522e5e733460c1b",53103:"b842c00cdda87f0b5dbe",53610:"694b27f438a6557077b7",53611:"3d29abba3d80ead14772",53840:"71e8ed3072df96aa6378",54176:"099c207b8e3bd155898d",54310:"9e1e4c39035e150e6c03",54958:"1253f530a0eaa47e9da3",55009:"db934840511673dcdba7",55113:"0948ae85aba584593e90",55208:"1cbc7dff6d05bdf73786",55263:"b88491fcf7bd48fbc475",55677:"900196998b1b97798c9d",55980:"da5af597fc0703630212",56470:"48507db1f0618c1927a7",56742:"217b7235b110982d8c91",56746:"5f0dcfeffb265c848bcf",57e3:"cd035a26f063f79444d3",57031:"6203d9fbbf43e47198ce",57108:"add72d336351ed746864",57186:"d748afb9d9b2781211c0",57217:"89a81ee82ebca463e6a8",57546:"d7d6e44a62a053f2a0fe",57592:"403879f918bbb96a678e",57936:"33d29a550b7c54a4a1c4",58045:"1c4acf76a2f70927993f",58082:"dcba82a678313005b24e",58135:"dfeb90f04cdbf37e7bec",58292:"d75ec8063f7f70462d6f",58382:"73a6233dc9e0d6cee21a",58444:"34306636d81edec5be4e",58457:"eff86ec3d94bb1395501",58485:"8e083c30f6c3447935a7",58972:"2989c054a92ab28fca15",59287:"98254962329fa8b308f3",59364:"02f15fe0af5de81c7e19",59479:"ef469352eb50abb06811",59517:"e001e5dfa0b298939c5b",59544:"435e354885c0acd0e5dd",60240:"8f9c0be88e80b0cef4a4",60395:"6ea36c7d028a1ff9aba9",60526:"39a244c003e5a04bce17",60824:"a10be22777825d45e725",60871:"0ef13ce3fca3609b4a50",61060:"43a274e31380ef253d43",61079:"109e87e4e83b013ad5c2",61305:"f690a2c9e435e0392486",61507:"8355a91f1455dc0839a6",61532:"5cf260c05c64a00765c9",61556:"a037d8cdcbf42015852d",61594:"58798f1247c007f8b2f7",61742:"a2664dabf66bee3056a6",61777:"79f5fb8f1cfd4e43cfcb",62115:"c447a9fbb21e3f63de31",62308:"424985cfbaf25a529c0e",62429:"d90f1c9e59c196fd1f4f",62459:"2b85e9db788a241c8c66",62575:"d771d75fc6d1f57c1b59",62632:"fa01c8eee28874cfef89",62797:"97d93a456c4f22e8b3ab",63112:"4669495fe22340436372",63135:"c47990b1af76f1d6d0d6",63419:"887ef144b64bb9ec38f6",63471:"047b00b9b552b9de25fe",63489:"0036aa76a7f68ae76961",63767:"b9ff3a66add026d555c4",63780:"594eb318e123762919ef",64025:"9dc47ca24fdebb413244",64108:"d98ec14f18a3d46efc2e",64190:"32e5c03b1f05e57ecc92",64309:"c65942565f10d1aa6f05",64420:"bb43dc1baca3603b7667",64442:"bf0ef87a3743a0bbda47",64570:"19e5d7f5a99faeacb226",64660:"f9d6e723cc2e83f0ab7f",65111:"333e3fec31ee078210da",65408:"63cf521fda87b6ff61fa",65559:"6f08aa474ffdeaf9a66e",65896:"96317009996691b4bb0a",66181:"120facb6c1ce74415659",66448:"a94fb10fbb0f015b0457",66565:"cc2e2b30004423f13b47",66656:"ffd702decd3abd853846",66796:"93b36c8cf3aea604f94b",66885:"509e0d337128746d1bc9",67015:"8f1d1a6da042b4c2d5bc",67278:"b6451cbfcbe0b77a8745",67705:"d8aebb978ea4fd7e76b9",67744:"1e05236b4aed7caabc56",67772:"8eb3a5fedd81960e7ad9",68389:"2edd35a70e9e45b9b524",68648:"9928942479c735a080f5",69073:"cad94e088932ae696d9a",69170:"92e777e50a94b344e550",69502:"a6305d5f753da67ec4c5",69687:"f5929e8a009844dc7427",69776:"f32c96c0f456663f57a3",69884:"86d39c8cf2b5d0409ba4",69975:"97cbe3d07c962414969a",70174:"e3599341a87360d58424",70316:"e1fe8b42f8cb8f8589ce",70471:"905dc4ea491a24c62f11",70997:"929ca6ed73b4866a3c11",71075:"017bcf7a04253cbb2d07",71262:"a43f9065c4fe69935481",71496:"0ae5a9f9d3631024323d",71657:"0dd8cdb91628eeb6024f",72246:"70e526c1393da5f87daa",72283:"3cea797f38ce5d1b52ab",72376:"96dce911c3388994b8dd",72456:"8c0bcd6874db2417e173",72496:"9ae179b5e7264e7b40e7",72823:"0698ec372c10b97b0ccc",72887:"b4a4f8449613decb11e3",72969:"45be7d9b4adcc1048332",73031:"c5eabad8c03f4c0321fd",73120:"144e74dd90e1744bf9b2",73226:"9d4a9ddd2dc879cc5895",73330:"efdad79202783170b0b7",73477:"08b4a5f95ae9da2b51c1",73781:"f305cae29d14b8fdaa78",74142:"bbfedadf8b9de4fb7d97",74413:"75c2a149453e6808579c",75042:"a6472344ba14b0cdc0bf",75263:"62bb9800b98afd2bf7f6",76235:"5587b398895808cc37b6",76254:"1dc9faf82a45d5b8fe4d",76283:"b6f9aa790d8efe00236a",76397:"bbc8682dce5d3ab8e4fe",76667:"4759e78395330e4dea7f",77385:"b3463bb708545b2d6563",77406:"a646ee7d5bdf207610c4",77623:"adc52c3632ef5f7e16ed",77968:"113b168255156c48b3de",78056:"ace8b5dd88b3cdac2e2e",78155:"e518ba6c164eb91aa451",78720:"0b500943cb5e8c73a31f",79258:"c21b0f6e3f24007ccb36",79289:"9a7f0ffe94de304b5355",79340:"dbccee1841c34be0f2c1",79625:"a3c85ca20806f0c1c198",79685:"36e29daecb7c92a6f45d",79699:"493db31747b31d59b72f",79869:"6d326072ef091011d06d",80008:"ff7202c959461e2b4a8d",80262:"d134f1be1f2332fd3bd1",80270:"50cb21cb916192e70478",80335:"105a3bb367c6547d21fe",80566:"156ebe85e9d7502b65b7",80569:"1e46aaf3e41ab209715b",80638:"337548cbf749c38937bd",80902:"4351b672cb800a1a0cbb",81328:"7ed1dd5bab55c3db8d86",81450:"58b35d77e78c43aa2448",81534:"655a8318b3d1c2d0b4cc",81852:"1becf80579abc145ff8c",82067:"8a4f960ad0e3dd0b8584",82327:"d2383f5ecc6b1c701ca9",82422:"32ae898ef01c7540d88d",82544:"1f6f09daa898d15d16ce",82555:"5d06a4773b45a9957d8b",82628:"9abc565e063faf07ab82",82954:"d771320cc749df1d3cb8",83136:"f3de005d8c473fbcfd4d",83282:"11057bd4688cd9afd1cf",83369:"cbefe42f0956b40efcc8",83722:"78e4c90148a5764649f8",84506:"ede88c0a261e89471a5b",84556:"588b491efef6d6127114",84567:"a01e2975130cbf96047b",84625:"ecaf98bf9b41a3ff9dcf",85085:"9e1a0c0ca176b1d94b5b",85477:"5f62658929abfabe6b45",85481:"8d48215f13377e1f4d60",85749:"76359fa109906f552d50",86006:"2d3afc8146a0e2e17612",86187:"05fd1ef8578aa03aa44e",86275:"e563e431eab25a3a1807",86902:"52b44b41455c5ab9d88f",86952:"d454e5005fab94877160",87268:"3d7c741812d75fa61161",87406:"fb7f33d64a30d38cd617",87624:"d32ef61696a8a34412d4",87632:"83f69f420c98f30030e1",87772:"7f91e1e6249e8027295a",87826:"3772ef2615549d7e1bd1",87842:"0dfd64dee10134def7ea",87874:"307551ab3c84e46436e1",88408:"70d9081118792e8f5ee6",88533:"dcf1ccbddd8a39b6255d",88628:"6123edc152da7a4c7ace",89179:"baa00b7d9465c1be2164",89426:"89b47635af3395809e5e",89476:"857cff55359ba9cfa51b",89609:"a7129f04e8f480111691",89673:"a5e4f0defc714dabb568",89695:"d9fd4a417811421081f3",90008:"d2caa0f58f057ba6bde2",90316:"d7e09a049115575f5256",90616:"1e35dc3e7b0198f2dd1a",90667:"20b3100ec1a4f8b36a69",90721:"8746546abb05e2f5d604",90724:"7c4354d1f80623f3239d",90731:"2a50e4cb0a03cb3315f2",90830:"52544826a6cc5c6af902",90846:"b47696df86637a5cc872",91201:"57b65a01f00c6fea6dbd",91316:"cb9e084dd8f565a6bb9f",91344:"98fed9b1d8e82780c95f",91841:"57ffee9d48fe273db8b3",91858:"2e96df0a421a401c7c58",91951:"b0493992ea3e927b4eee",92012:"25613eab4bc73b991159",92174:"562a277f6bfb0c097a8b",92361:"8c670b0b87333850ccae",92657:"acb072ff9183485096d5",93102:"c20491fcec796ff357a4",93171:"f973c14d631aef744084",93236:"d681676546d83a082b3e",93534:"9cc1da51d79778d90cd0",93537:"4dfae0a125de0bae2308",93985:"e223588cc228f7e6c55f",94194:"96b57fbced4d014ab14e",94224:"83680b04b3114811a730",94443:"61205777303137578f52",94565:"1288c60c62f446ccd0ea",95399:"ba0d34bfd9c8b5ebfa7c",95814:"1ecdb16b228a9d930b5d",95883:"b5707f1e8401cffea0db",96145:"0d3a378f174c8d9b76e9",96193:"da45cddf7d534efb5097",96199:"85da2462ad7d946a1b70",96332:"5dfb40df47af637cbc32",96679:"b43e60e7dd0ff5e84736",96809:"60cc39cd27a38039df8e",96934:"6ea4548c58babff8b3d1",97230:"d91f20a73cd15a98f743",97359:"21a7f7a7dde63d83051e",97665:"0a53c5d766af0e14e93e",97940:"55a4371718f6972befb6",98153:"e7d2214694ca0bf8ca53",98423:"a7d52daab104db1e39ea",98769:"1042fe2fb4a0b089680b",98996:"a3d5ce92e869c8c092e8",99010:"dc2d7930485596e94acb",99148:"2c06c434dd07953fba19",99623:"b4db27f63baacefbc35d",99651:"395b81b3538224505eea"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-legacy-bundle:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=75205,s.p="/",(()=>{var e={75205:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,c]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)c(s)}for(t&&t(n);l<i.length;l++)o=i[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_legacy_bundle=this.webpackChunktocco_legacy_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l={};return(()=>{"use strict";s.r(l),s.d(l,{app:()=>t.yA});var e=s(61402),t=s(82787);e.A.registerAppInRegistry(t.yA.name,t.yA.init)})(),l})()));
|
|
62
|
+
*/function l(e={}){return g((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=h(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),f("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:m(t))}),(function(e,t){d("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function u(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function m({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,c="POP",l=null,u=d();function d(){return(a.state||{idx:null}).idx}function m(){c="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:c,location:g.location,delta:t})}function h(e){return v(e)}null==u&&(u=0,a.replaceState({...a.state,idx:u},""));let g={get action(){return c},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(s,m),l=e,()=>{o.removeEventListener(s,m),l=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=f(g.location,e,t);n&&n(r,e),u=d()+1;let s=p(r,u),m=g.createHref(r);try{a.pushState(s,"",m)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(m)}i&&l&&l({action:c,location:g.location,delta:1})},replace:function(e,t){c="REPLACE";let r=f(g.location,e,t);n&&n(r,e),u=d();let o=p(r,u),s=g.createHref(r);a.replaceState(o,"",s),i&&l&&l({action:c,location:g.location,delta:0})},go:e=>a.go(e)};return g}function v(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),u(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:m(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function y(e){return{defaultValue:e}}var b=class{constructor(e){var t,n,r;if(t=this,n=o,r=new Map,n.has(t)?a("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),e)for(let[t,n]of e)this.set(t,n)}get(e){if(c(this,o).has(e))return c(this,o).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){c(this,o).set(e,t)}};o=new WeakMap;var x=new Set(["lazy","caseSensitive","path","id","index","children"]);var w=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function O(e,t,n=[],r={},o=!1){return e.map(((e,i)=>{let a=[...n,String(i)],c="string"==typeof e.id?e.id:a.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,id:c};return r[c]=k(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=k(n,t(n)),e.children&&(n.children=O(e.children,t,a,r,o)),n}}))}function k(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function S(e,t,n="/"){return A(e,t,n,!1)}function A(e,t,n,r){let o=M(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let i=E(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=I(o);a=_(i[e],t,r)}return a}function j(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function E(e,t=[],n=[],r="",o=!1){let i=(e,i,a=o,c)=>{let s={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&a)return;u(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let l=V([r,s.relativePath]),d=n.concat(s);e.children&&e.children.length>0&&(u(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),E(e.children,t,d,l,a)),(null!=e.path||e.index)&&t.push({path:l,score:D(l,e.index),routesMeta:d})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of P(e.path))i(e,t,!0,n);else i(e,t)})),t}function P(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=P(r.join("/")),c=[];return c.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&c.push(...a),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var T=/^:[\w-]+$/,C=e=>"*"===e;function D(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=-2),t&&(r+=2),n.filter((e=>!C(e))).reduce(((e,t)=>e+(T.test(t)?3:""===t?1:10)),r)}function _(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===i?t:t.slice(i.length)||"/",u=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:V([i,u.pathname]),pathnameBase:q(V([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=V([i,u.pathnameBase]))}return a}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=R(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function R(e,t=!1,n=!0){d("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var L=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,F=e=>L.test(e);function z(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function B(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=B(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function U(e,t,n,r=!1){let o;"string"==typeof e?o=h(e):(o={...e},u(!o.pathname||!o.pathname.includes("?"),H("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),H("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),H("#","search","hash",o)));let i,a=""===e||""===o.pathname,c=a?"/":o.pathname;if(null==c)i=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?h(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?z(r.substring(1),"/"):z(r,t)):n=t,{pathname:n,search:Y(o),hash:$(i)}}(o,i),l=c&&"/"!==c&&c.endsWith("/"),d=(a||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!d||(s.pathname+="/"),s}var V=e=>e.join("/").replace(/\/\/+/g,"/"),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var G=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function K(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function X(e,t){let n=e;if("string"!=typeof n||!L.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Q)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=M(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){d(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var Z=Symbol("Uninstrumented");function ee(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach((e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}})));let r={};if("function"==typeof t.lazy&&n.lazy.length>0){let e=te(n.lazy,t.lazy,(()=>{}));e&&(r.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach((t=>{let o=e[t],i=n[`lazy.${t}`];if("function"==typeof o&&i.length>0){let e=te(i,o,(()=>{}));e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}}))}return["loader","action"].forEach((e=>{let o=t[e];if("function"==typeof o&&n[e].length>0){let t=o[Z]??o,i=te(n[e],t,((...e)=>re(e[0])));i&&("loader"===e&&!0===t.hydrate&&(i.hydrate=!0),i[Z]=t,r[e]=i)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[Z]??e,r=te(n.middleware,t,((...e)=>re(e[0])));return r?(r[Z]=t,r):e}))),r}function te(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ne(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ne(e,t,n,r){let o,i=e[r];if(i){let a,c=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=ne(e,t,n,r-1),o=await a,u(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await i(c,t)}catch(e){console.error("An instrumentation function threw an error:",e)}a||await c(),await a}else try{let e=await n();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function re(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:ie(t),params:{...r},unstable_pattern:o,context:ae(n)}}function oe(e,t){return{currentUrl:m(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ae(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===ce}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var ce=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var se=["POST","PUT","PATCH","DELETE"],le=new Set(se),ue=["GET",...se],de=new Set(ue),pe=new Set([301,302,303,307,308]),fe=new Set([307,308]),me={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},he={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ge={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ve=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ye="remix-router-transitions",be=Symbol("ResetLoaderData");function xe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;u(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||ve,i=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;i=e=>({...o(e),...ee(t.map((e=>e.route)).filter(Boolean),e)})}let a,c={},s=O(e.routes,i,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let p,h,g=e.dataStrategy||Ne,y={...e.future},x=null,w=new Set,k=null,E=null,P=null,T=null!=e.hydrationData,C=S(s,e.history.location,l),D=!1,_=null;if(null!=C||e.patchRoutesOnNavigation){if(C&&!e.hydrationData){nt(C,s,e.history.location.pathname).active&&(C=null)}if(C)if(C.some((e=>e.route.lazy)))p=!1;else if(C.some((e=>Se(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=C.findIndex((e=>void 0!==n[e.route.id]));p=C.slice(0,e+1).every((e=>!Ae(e.route,t,n)))}else p=C.every((e=>!Ae(e.route,t,n)))}else p=!0;else{p=!1,C=[];let t=nt(null,s,e.history.location.pathname);t.active&&t.matches&&(D=!0,C=t.matches)}}else{let t=et(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ze(s);p=!0,C=n,_={[r.id]:t}}let N,R,I={historyAction:e.history.action,location:e.history.location,matches:C,initialized:p,navigation:me,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},L="POP",z=null,H=!1,B=!1,W=new Map,U=null,V=!1,q=!1,Y=new Set,$=new Map,G=0,K=-1,Q=new Map,X=new Set,ne=new Map,re=new Map,ie=new Set,ae=new Map,ce=null;function se(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=c[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),I={...I,...e};let n=[],r=[];I.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ie.has(t)?n.push(t):r.push(t))})),ie.forEach((e=>{I.fetchers.has(e)||$.has(e)||n.push(e)})),[...w].forEach((r=>r(I,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>De(e))),r.forEach((e=>I.fetchers.delete(e)))}function le(t,n,{flushSync:r}={}){let o,i=null!=I.actionData&&null!=I.navigation.formMethod&&ft(I.navigation.formMethod)&&"loading"===I.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?I.actionData:null;let c=n.loaderData?Ke(I.loaderData,n.loaderData,n.matches||[],n.errors):I.loaderData,l=I.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,ge))));let u,d=!V&&Ge(t,n.matches||I.matches),p=!0===H||null!=I.navigation.formMethod&&ft(I.navigation.formMethod)&&!0!==t.state?._isRedirect;if(a&&(s=a,a=void 0),V||"POP"===L||("PUSH"===L?e.history.push(t,t.state):"REPLACE"===L&&e.history.replace(t,t.state)),"POP"===L){let e=W.get(I.location.pathname);e&&e.has(t.pathname)?u={currentLocation:I.location,nextLocation:t}:W.has(t.pathname)&&(u={currentLocation:t,nextLocation:I.location})}else if(B){let e=W.get(I.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),W.set(I.location.pathname,e)),u={currentLocation:I.location,nextLocation:t}}se({...n,actionData:o,loaderData:c,historyAction:L,location:t,initialized:!0,navigation:me,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),L="POP",H=!1,B=!1,V=!1,q=!1,z?.resolve(),z=null,ce?.resolve(),ce=null}async function ue(t,n,o){N&&N.abort(),N=null,L=t,V=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(k&&P){let n=$e(e,t);k[n]=P()}}(I.location,I.matches),H=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let u=a||s,d=o&&o.overrideNavigation,p=o?.initialHydration&&I.matches&&I.matches.length>0&&!D?I.matches:S(u,n,l),f=!0===(o&&o.flushSync);if(p&&I.initialized&&!q&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(I.location,n)&&!(o&&o.submission&&ft(o.submission.formMethod)))return void le(n,{matches:p},{flushSync:f});let m=nt(p,u,n.pathname);if(m.active&&m.matches&&(p=m.matches),!p){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return void le(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}N=new AbortController;let h,g=qe(e.history,n,N.signal,o&&o.submission),v=e.getContext?await e.getContext():new b;if(o&&o.pendingError)h=[Xe(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&ft(o.submission.formMethod)){let t=await async function(t,n,o,a,u,d,p,f={}){je();let m,h=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,o);if(se({navigation:h},{flushSync:!0===f.flushSync}),d){let e=await rt(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=Ze(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=Xe(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=Ye(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}a=e.matches}let g=ht(a,n);if(g.route.action||g.route.lazy){let e=ze(i,c,t,a,g,p?[]:r,u),n=await be(t,e,u,null);if(m=n[g.route.id],!m)for(let e of a)if(n[e.route.id]){m=n[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:et(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};if(st(m)){let n;if(f&&null!=f.replace)n=f.replace;else{n=Ve(m.response.headers.get("Location"),new URL(t.url),l,e.history)===I.location.pathname+I.location.search}return await pe(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(ct(m)){let e=Xe(a,g.route.id);return!0!==(f&&f.replace)&&(L="PUSH"),{matches:a,pendingActionResult:[e.route.id,m,g.route.id]}}return{matches:a,pendingActionResult:[g.route.id,m]}}(g,n,o.submission,p,v,m.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:f});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ct(r)&&J(r.error)&&404===r.error.status)return N=null,void le(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}p=t.matches||p,h=t.pendingActionResult,d=vt(n,o.submission),f=!1,m.active=!1,g=qe(e.history,g.url,g.signal)}let{shortCircuited:y,matches:x,loaderData:w,errors:O}=await async function(t,n,o,u,d,p,f,m,h,g,v,y,b){let x=p||vt(n,f),w=f||m||gt(x),O=!V&&!g;if(d){if(O){let e=de(y);se({navigation:x,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await rt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=Ze(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Xe(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let k=a||s,{dsMatches:S,revalidatingFetchers:A}=ke(t,u,i,c,e.history,I,o,w,n,g?[]:r,!0===g,q,Y,ie,ne,X,k,l,null!=e.patchRoutesOnNavigation,y,b);if(K=++G,!e.dataStrategy&&!S.some((e=>e.shouldLoad))&&!S.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===A.length){let e=Ie();return le(n,{matches:o,loaderData:{},errors:y&&ct(y[1])?{[y[0]]:y[1].error}:null,...Qe(y),...e?{fetchers:new Map(I.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(O){let e={};if(!d){e.navigation=x;let t=de(y);void 0!==t&&(e.actionData=t)}A.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=I.fetchers.get(e.key),n=yt(void 0,t?t.data:void 0);I.fetchers.set(e.key,n)})),new Map(I.fetchers)}(A)),se(e,{flushSync:v})}A.forEach((e=>{_e(e.key),e.controller&&$.set(e.key,e.controller)}));let j=()=>A.forEach((e=>_e(e.key)));N&&N.signal.addEventListener("abort",j);let{loaderResults:E,fetcherResults:P}=await xe(S,A,t,u);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",j);A.forEach((e=>$.delete(e.key)));let T=tt(E);if(T)return await pe(t,T.result,!0,{replace:h}),{shortCircuited:!0};if(T=tt(P),T)return X.add(T.key),await pe(t,T.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:C,errors:D}=Je(I,o,E,y,A,P);g&&I.errors&&(D={...I.errors,...D});let _=Ie(),R=Me(K),M=_||R||A.length>0;return{matches:o,loaderData:C,errors:D,...M?{fetchers:new Map(I.fetchers)}:{}}}(g,n,p,v,m.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,f,h,o&&o.callSiteDefaultShouldRevalidate);y||(N=null,le(n,{matches:x||p,...Qe(h),loaderData:w,errors:O}))}function de(e){return e&&!ct(e[1])?{[e[0]]:e[1].data}:I.actionData?0===Object.keys(I.actionData).length?null:I.actionData:void 0}async function pe(r,o,i,{submission:a,fetcherSubmission:c,preventScrollReset:s,replace:d}={}){i||(z?.resolve(),z=null),o.response.headers.has("X-Remix-Revalidate")&&(q=!0);let p=o.response.headers.get("Location");u(p,"Expected a Location header on the redirect Response"),p=Ve(p,new URL(r.url),l,e.history);let m=f(I.location,p,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(F(p)){const n=v(p,!0);e=n.origin!==t.location.origin||null==M(n.pathname,l)}if(e)return void(d?t.location.replace(p):t.location.assign(p))}N=null;let h=!0===d||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:y,formEncType:b}=I.navigation;!a&&!c&&g&&y&&b&&(a=gt(I.navigation));let x=a||c;if(fe.has(o.response.status)&&x&&ft(x.formMethod))await ue(h,m,{submission:{...x,formAction:p},preventScrollReset:s||H,enableViewTransition:i?B:void 0});else{let e=vt(m,a);await ue(h,m,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||H,enableViewTransition:i?B:void 0})}}async function be(e,t,n,r){let o,i={};try{o=await He(g,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{i[t.route.id]={type:"error",error:e}})),i}if(e.signal.aborted)return i;if(!ft(e.method))for(let e of t){if("error"===o[e.route.id]?.type)break;o.hasOwnProperty(e.route.id)||I.loaderData.hasOwnProperty(e.route.id)||I.errors&&I.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(o[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[n,r]of Object.entries(o))if(at(r)){let o=r.result;i[n]={type:"redirect",response:Ue(o,e,n,t,l)}}else i[n]=await We(r);return i}async function xe(e,t,n,r){let o=be(n,e,r,null),i=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await be(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:et(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await i).reduce(((e,t)=>Object.assign(e,t)),{})}}function je(){q=!0,ne.forEach(((e,t)=>{$.has(t)&&Y.add(t),_e(t)}))}function Pe(e,t,n={}){I.fetchers.set(e,t),se({fetchers:new Map(I.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Te(e,t,n,r={}){let o=Xe(I.matches,t);De(e),se({errors:{[o.route.id]:n},fetchers:new Map(I.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ce(e){return re.set(e,(re.get(e)||0)+1),ie.has(e)&&ie.delete(e),I.fetchers.get(e)||he}function De(e){let t=I.fetchers.get(e);!$.has(e)||t&&"loading"===t.state&&Q.has(e)||_e(e),ne.delete(e),Q.delete(e),X.delete(e),ie.delete(e),Y.delete(e),I.fetchers.delete(e)}function _e(e,t){let n=$.get(e);n&&(n.abort(t),$.delete(e))}function Re(e){for(let t of e){let e=bt(Ce(t).data);I.fetchers.set(t,e)}}function Ie(){let e=[],t=!1;for(let n of X){let r=I.fetchers.get(n);u(r,`Expected fetcher: ${n}`),"loading"===r.state&&(X.delete(n),e.push(n),t=!0)}return Re(e),t}function Me(e){let t=[];for(let[n,r]of Q)if(r<e){let e=I.fetchers.get(n);u(e,`Expected fetcher: ${n}`),"loading"===e.state&&(_e(n),Q.delete(n),t.push(n))}return Re(t),t.length>0}function Le(e){I.blockers.delete(e),ae.delete(e)}function Fe(e,t){let n=I.blockers.get(e)||ge;u("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(I.blockers);r.set(e,t),se({blockers:r})}function Be({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ae.size)return;ae.size>1&&d(!1,"A router only supports one blocker at a time");let r=Array.from(ae.entries()),[o,i]=r[r.length-1],a=I.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ye(e){let t=et(404,{pathname:e}),n=a||s,{matches:r,route:o}=Ze(n);return{notFoundMatches:r,route:o,error:t}}function $e(e,t){if(E){return E(e,t.map((e=>j(e,I.loaderData))))||e.key}return e.key}function Ge(e,t){if(k){let n=$e(e,t),r=k[n];if("number"==typeof r)return r}return null}function nt(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:A(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:A(n,r,l,!0)}}}return{active:!1,matches:null}}async function rt(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==a,d=a||s,p=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||Ee(e,t,d,p,i,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let f=S(d,n,l),m=null;if(f){if(0===Object.keys(f[0].params).length)return{type:"success",matches:f};if(m=A(d,n,l,!0),!(m&&u.length<m.length&&ot(u,m.slice(0,u.length))))return{type:"success",matches:f}}if(m||(m=A(d,n,l,!0)),!m||ot(u,m))return{type:"success",matches:null};u=m}}function ot(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return h={get basename(){return l},get future(){return y},get state(){return I},get routes(){return s},get window(){return t},initialize:function(){if(x=e.history.listen((({action:t,location:n,delta:r})=>{if(R)return R(),void(R=void 0);d(0===ae.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=Be({currentLocation:I.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{R=e}));return e.history.go(-1*r),Fe(o,{state:"blocked",location:n,proceed(){Fe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(I.blockers);e.set(o,ge),se({blockers:e})}}),z?.resolve(),void(z=null)}return ue(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ye);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,W);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ye,JSON.stringify(n))}catch(e){d(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,W);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return I.initialized||ue("POP",I.location,{initialHydration:!0}),h},subscribe:function(e){return w.add(e),()=>w.delete(e)},enableScrollRestoration:function(e,t,n){if(k=e,P=t,E=n||null,!T&&I.navigation===me){T=!0;let e=Ge(I.location,I.matches);null!=e&&se({restoreScrollPosition:e})}return()=>{k=null,P=null,E=null}},navigate:async function t(n,r){if(z?.resolve(),z=null,"number"==typeof n){z||(z=xt());let t=z.promise;return e.history.go(n),t}let o=we(I.location,I.matches,l,n,r?.fromRouteId,r?.relative),{path:i,submission:a,error:c}=Oe(!1,o,r),s=I.location,u=f(I.location,i,r&&r.state);u={...u,...e.history.encodeLocation(u)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=a&&ft(a.formMethod)&&a.formAction===I.location.pathname+I.location.search&&(p="REPLACE");let m=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),g=Be({currentLocation:s,nextLocation:u,historyAction:p});g?Fe(g,{state:"blocked",location:u,proceed(){Fe(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(I.blockers);e.set(g,ge),se({blockers:e})}}):await ue(p,u,{submission:a,pendingError:c,preventScrollReset:m,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,d){_e(t);let p=!0===(d&&d.flushSync),f=a||s,m=we(I.location,I.matches,l,o,n,d?.relative),h=S(f,m,l),g=nt(h,f,m);if(g.active&&g.matches&&(h=g.matches),!h)return void Te(t,n,et(404,{pathname:m}),{flushSync:p});let{path:v,submission:y,error:x}=Oe(!0,m,d);if(x)return void Te(t,n,x,{flushSync:p});let w=e.getContext?await e.getContext():new b,O=!0===(d&&d.preventScrollReset);y&&ft(y.formMethod)?await async function(t,n,o,d,p,f,m,h,g,v){je(),ne.delete(t);let y=I.fetchers.get(t);Pe(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(g,y),{flushSync:m});let b=new AbortController,x=qe(e.history,o,b.signal,g);if(f){let e=await rt(d,new URL(x.url).pathname,x.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:m});if(!e.matches)return void Te(t,n,et(404,{pathname:o}),{flushSync:m});d=e.matches}let w=ht(d,o);if(!w.route.action&&!w.route.lazy){let e=et(405,{method:g.formMethod,pathname:o,routeId:n});return void Te(t,n,e,{flushSync:m})}$.set(t,b);let O=G,k=ze(i,c,x,d,w,r,p),A=await be(x,k,p,t),j=A[w.route.id];if(!j)for(let e of k)if(A[e.route.id]){j=A[e.route.id];break}if(x.signal.aborted)return void($.get(t)===b&&$.delete(t));if(ie.has(t)){if(st(j)||ct(j))return void Pe(t,bt(void 0))}else{if(st(j))return $.delete(t),K>O?void Pe(t,bt(void 0)):(X.add(t),Pe(t,yt(g)),pe(x,j,!1,{fetcherSubmission:g,preventScrollReset:h}));if(ct(j))return void Te(t,n,j.error)}let E=I.navigation.location||I.location,P=qe(e.history,E,b.signal),T=a||s,C="idle"!==I.navigation.state?S(T,I.navigation.location,l):I.matches;u(C,"Didn't find any matches after fetcher action");let D=++G;Q.set(t,D);let _=yt(g,j.data);I.fetchers.set(t,_);let{dsMatches:R,revalidatingFetchers:M}=ke(P,p,i,c,e.history,I,C,g,E,r,!1,q,Y,ie,ne,X,T,l,null!=e.patchRoutesOnNavigation,[w.route.id,j],v);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=I.fetchers.get(t),r=yt(void 0,n?n.data:void 0);I.fetchers.set(t,r),_e(t),e.controller&&$.set(t,e.controller)})),se({fetchers:new Map(I.fetchers)});let F=()=>M.forEach((e=>_e(e.key)));b.signal.addEventListener("abort",F);let{loaderResults:z,fetcherResults:H}=await xe(R,M,P,p);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",F),Q.delete(t),$.delete(t),M.forEach((e=>$.delete(e.key))),I.fetchers.has(t)){let e=bt(j.data);I.fetchers.set(t,e)}let B=tt(z);if(B)return pe(P,B.result,!1,{preventScrollReset:h});if(B=tt(H),B)return X.add(B.key),pe(P,B.result,!1,{preventScrollReset:h});let{loaderData:W,errors:U}=Je(I,C,z,void 0,M,H);Me(D),"loading"===I.navigation.state&&D>K?(u(L,"Expected pending action"),N&&N.abort(),le(I.navigation.location,{matches:C,loaderData:W,errors:U,fetchers:new Map(I.fetchers)})):(se({errors:U,loaderData:Ke(I.loaderData,W,C,U),fetchers:new Map(I.fetchers)}),q=!1)}(t,n,v,h,w,g.active,p,O,y,d&&d.unstable_defaultShouldRevalidate):(ne.set(t,{routeId:n,path:v}),await async function(t,n,o,a,s,l,u,d,p){let f=I.fetchers.get(t);Pe(t,yt(p,f?f.data:void 0),{flushSync:u});let m=new AbortController,h=qe(e.history,o,m.signal);if(l){let e=await rt(a,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:u});if(!e.matches)return void Te(t,n,et(404,{pathname:o}),{flushSync:u});a=e.matches}let g=ht(a,o);$.set(t,m);let v=G,y=ze(i,c,h,a,g,r,s),b=await be(h,y,s,t),x=b[g.route.id];$.get(t)===m&&$.delete(t);if(h.signal.aborted)return;if(ie.has(t))return void Pe(t,bt(void 0));if(st(x))return K>v?void Pe(t,bt(void 0)):(X.add(t),void await pe(h,x,!1,{preventScrollReset:d}));if(ct(x))return void Te(t,n,x.error);Pe(t,bt(x.data))}(t,n,v,h,w,g.active,p,O,y))},revalidate:function(){ce||(ce=xt()),je(),se({revalidation:"loading"});let e=ce.promise;return"submitting"===I.navigation.state?e:"idle"===I.navigation.state?(ue(I.historyAction,I.location,{startUninterruptedRevalidation:!0}),e):(ue(L||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:!0===B}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ce,resetFetcher:function(e,t){_e(e,t?.reason),Pe(e,bt(null))},deleteFetcher:function(e){let t=(re.get(e)||0)-1;t<=0?(re.delete(e),ie.add(e)):re.set(e,t),se({fetchers:new Map(I.fetchers)})},dispose:function(){x&&x(),U&&U(),w.clear(),N&&N.abort(),I.fetchers.forEach(((e,t)=>De(t))),I.blockers.forEach(((e,t)=>Le(t)))},getBlocker:function(e,t){let n=I.blockers.get(e)||ge;return ae.get(e)!==t&&ae.set(e,t),n},deleteBlocker:Le,patchRoutes:function(e,t,n=!1){let r=null==a;Ee(e,t,a||s,c,i,n),r&&(s=[...s],se({}))},_internalFetchControllers:$,_internalSetRoutes:function(e){c={},a=O(e,i,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){se(e)}},e.unstable_instrumentations&&(h=function(e,t){let n={navigate:[],fetch:[]};if(t.forEach((e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}))),n.navigate.length>0){let t=e.navigate[Z]??e.navigate,r=te(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?m(n):".",...oe(e,r??{})}}));r&&(r[Z]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Z]??e.fetch,r=te(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...oe(e,o??{})}}));r&&(r[Z]=t,e.fetch=r)}return e}(h,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),h}function we(e,t,n,r,o,i){let a,c;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){c=e;break}}else a=t,c=t[t.length-1];let s=U(r||".",W(a),M(e.pathname,n)||e.pathname,"path"===i);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=mt(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:V([e,t])}({basename:n,pathname:s.pathname})),m(s)}function Oe(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!pt(n.formMethod))return{path:t,error:et(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:et(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),c=nt(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ft(a))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ft(a))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ye(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ye(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=$e(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=$e(r)}catch(e){return i()}let s={formMethod:a,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ft(s.formMethod))return{path:t,submission:s};let l=h(t);return e&&l.search&&mt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:m(l),submission:s}}function ke(e,t,n,r,o,i,a,c,s,l,u,d,p,f,m,h,g,v,y,b,x){let w,O=b?ct(b[1])?b[1].error:b[1].data:void 0,k=o.createURL(i.location),A=o.createURL(s);if(u&&i.errors){let e=Object.keys(i.errors)[0];w=a.findIndex((t=>t.route.id===e))}else if(b&&ct(b[1])){let e=b[0];w=a.findIndex((t=>t.route.id===e))-1}let j=b?b[1].statusCode:void 0,E=j&&j>=400,P={currentUrl:k,currentParams:i.matches[0]?.params||{},nextUrl:A,nextParams:a[0].params,...c,actionResult:O,actionStatus:j},T=K(a),C=a.map(((o,a)=>{let{route:c}=o,s=null;if(null!=w&&a>w?s=!1:c.lazy?s=!0:Se(c)?u?s=Ae(c,i.loaderData,i.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(i.loaderData,i.matches[a],o)&&(s=!0):s=!1,null!==s)return Fe(n,r,e,T,o,l,t,s);let p=!1;"boolean"==typeof x?p=x:E?p=!1:(d||k.pathname+k.search===A.pathname+A.search||k.search!==A.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(i.matches[a],o))&&(p=!0);let f={...P,defaultShouldRevalidate:p},m=je(o,f);return Fe(n,r,e,T,o,l,t,m,f,x)})),D=[];return m.forEach(((e,c)=>{if(u||!a.some((t=>t.route.id===e.routeId))||f.has(c))return;let s=i.fetchers.get(c),m=s&&"idle"!==s.state&&void 0===s.data,b=S(g,e.path,v);if(!b){if(y&&m)return;return void D.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(h.has(c))return;let w=ht(b,e.path),O=new AbortController,k=qe(o,e.path,O.signal),A=null;if(p.has(c))p.delete(c),A=ze(n,r,k,b,w,l,t);else if(m)d&&(A=ze(n,r,k,b,w,l,t));else{let e;e="boolean"==typeof x?x:!E&&d;let o={...P,defaultShouldRevalidate:e};je(w,o)&&(A=ze(n,r,k,b,w,l,t,o))}A&&D.push({key:c,routeId:e.routeId,path:e.path,matches:A,match:w,request:k,controller:O})})),{dsMatches:C,revalidatingFetchers:D}}function Se(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Ae(e,t,n){if(e.lazy)return!0;if(!Se(e))return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function je(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Ee(e,t,n,r,o,i){let a;if(e){let t=r[e];u(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=n;let c=[],s=[];if(t.forEach((e=>{let t=a.find((t=>Pe(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=O(c,o,[e||"_","patch",String(a?.length||"0")],r);a.push(...t)}if(i&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[i]=O([n],o,[],{},!0);Object.assign(r,{element:i.element?i.element:r.element,errorElement:i.errorElement?i.errorElement:r.errorElement,hydrateFallbackElement:i.hydrateFallbackElement?i.hydrateFallbackElement:r.hydrateFallbackElement})}}function Pe(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>Pe(e,t))))))}var Te=new WeakMap,Ce=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(u(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=Te.get(o);a||(a={},Te.set(o,a));let c=a[e];if(c)return c;let s=(async()=>{let t=function(e){return x.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)d(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(n)d(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await i();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return a[e]=s,s},De=new WeakMap;async function _e(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function Ne(e){return e.matches.some((e=>e.route.middleware))?Re(e,(()=>_e(e))):_e(e)}function Re(e,t){return Ie(e,t,(e=>{if(dt(e))throw e;return e}),ot,(function(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:"error",result:t}}));{let{matches:r}=e,o=Math.min(Math.max(r.findIndex((e=>e.route.id===n)),0),Math.max(r.findIndex((e=>e.shouldCallHandler())),0)),i=Xe(r,r[o].route.id).route.id;return Promise.resolve({[i]:{type:"error",result:t}})}}))}async function Ie(e,t,n,r,o){let{matches:i,request:a,params:c,context:s,unstable_pattern:l}=e,u=i.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await Me({request:a,params:c,context:s,unstable_pattern:l},u,t,n,r,o)}async function Me(e,t,n,r,o,i,a=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let s=t[a];if(!s){return await n()}let l,[u,d]=s,p=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await Me(e,t,n,r,o,i,a+1);return l={value:c},l.value}catch(e){return l={value:await i(e,u,l)},l.value}};try{let t=await d(e,p),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await p()},l.value)}catch(e){return await i(e,u,l)}}function Le(e,t,n,r,o){let i=Ce({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),a=function(e,t,n,r,o){let i=n[e.id];if(u(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=De.get(i);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{u("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let a=(o=e,w.has(o)),c=void 0!==i[e]&&"hasErrorBoundary"!==e;a?d(!a,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?d(!c,`Route "${i.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}var o;Object.assign(i,n),Object.assign(i,{...r(i),lazy:void 0})})();return De.set(i,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let a,c=Object.keys(e.lazy),s=[];for(let i of c){if(o&&o.includes(i))continue;let c=Ce({key:i,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),i===t&&(a=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),a?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:a}}(r.route,ft(n.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function Fe(e,t,n,r,o,i,a,c,s=null,l){let u=!1,d=Le(e,t,n,o,i);return{...o,_lazyPromises:d,shouldLoad:c,shouldRevalidateArgs:s,shouldCallHandler:e=>(u=!0,s?je(o,"boolean"==typeof l?{...s,defaultShouldRevalidate:l}:"boolean"==typeof e?{...s,defaultShouldRevalidate:e}:s):c),resolve(e){let{lazy:t,loader:i,middleware:s}=o.route,l=u||c||e&&!ft(n.method)&&(t||i),p=s&&s.length>0&&!i&&!t;return!l||!ft(n.method)&&p?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:i,scopedContext:a}){let c,s,l=ft(e.method),u=l?"action":"loader",d=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),e.signal.addEventListener("abort",s);let l=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)):r({request:e,unstable_pattern:t,params:n.params,context:a},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(i?i((e=>l(e))):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,c])};try{let t=l?n.route.action:n.route.loader;if(r||o)if(t){let e,[n]=await Promise.all([d(t).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=n}else{await r;let t=l?n.route.action:n.route.loader;if(!t){if("action"===u){let t=new URL(e.url),r=t.pathname+t.search;throw et(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw et(404,{pathname:t.pathname+t.search})}c=await d(t)}}catch(e){return{type:"error",result:e}}finally{s&&e.signal.removeEventListener("abort",s)}return c}({request:n,unstable_pattern:r,match:o,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:a})}}}function ze(e,t,n,r,o,i,a,c=null){return r.map((s=>s.route.id!==o.route.id?{...s,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Le(e,t,n,s,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Fe(e,t,n,K(r),s,i,a,!0,c)))}async function He(e,t,n,r,o,i){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let a={request:t,unstable_pattern:K(n),params:n[0].params,context:o,matches:n},c=i?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=a;return Re(t,(()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},s=await e({...a,fetcherKey:r,runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function Be(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function We(e){let{result:t,type:n}=e;if(ut(t)){let e;try{e=await Be(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new G(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?lt(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:rt(t),statusCode:J(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:J(t)?t.status:void 0}:lt(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ue(e,t,n,r,o){let i=e.headers.get("Location");if(u(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!F(i)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=we(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function Ve(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(F(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(o.includes(i.protocol))throw new Error("Invalid redirect location");let a=null!=M(i.pathname,n);if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}try{let t=r.createURL(e);if(o.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function qe(e,t,n,r){let o=e.createURL(nt(t)).toString(),i={signal:n};if(r&&ft(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Ye(r.formData):i.body=r.formData}return new Request(o,i)}function Ye(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function $e(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ge(e,t,n,r=!1,o=!1){let i,a={},c=null,s=!1,l={},d=n&&ct(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(u(!st(f),"Cannot handle redirect results in processLoaderData"),ct(f)){let t=f.error;if(void 0!==d&&(t=d,d=void 0),c=c||{},o)c[p]=t;else{let n=Xe(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(a[p]=be),s||(s=!0,i=J(f.error)?f.error.status:500),f.headers&&(l[p]=f.headers)}else a[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(i=f.statusCode),f.headers&&(l[p]=f.headers)})),void 0!==d&&n&&(c={[n[0]]:d},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:c,statusCode:i||200,loaderHeaders:l}}function Je(e,t,n,r,o,i){let{loaderData:a,errors:c}=Ge(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let a=i[n];if(u(a,"Did not find corresponding fetcher result"),ct(a)){let t=Xe(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(st(a))u(!1,"Unhandled fetcher revalidation redirect");else{let t=bt(a.data);e.fetchers.set(n,t)}})),{loaderData:a,errors:c}}function Ke(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==be)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let i of n){let n=i.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Qe(e){return e?ct(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Xe(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Ze(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function et(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(a="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(a="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(a="Not Found",c=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new G(e||500,a,new Error(c),!0)}function tt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(st(r))return{key:n,result:r}}}function nt(e){return m({..."string"==typeof e?h(e):e,hash:""})}function rt(e){return new G(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ot(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&it(t)))}function it(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function at(e){return ut(e.result)&&pe.has(e.result.status)}function ct(e){return"error"===e.type}function st(e){return"redirect"===(e&&e.type)}function lt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function ut(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function dt(e){return ut(e)&&(t=e.status,pe.has(t))&&e.headers.has("Location");var t}function pt(e){return de.has(e.toUpperCase())}function ft(e){return le.has(e.toUpperCase())}function mt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function ht(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&mt(n||""))return e[e.length-1];let r=B(e);return r[r.length-1]}function gt(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function vt(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function yt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function bt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function xt(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var wt=i.createContext(null);wt.displayName="DataRouter";var Ot=i.createContext(null);Ot.displayName="DataRouterState";var kt=i.createContext(!1);function St(){return i.useContext(kt)}var At=i.createContext({isTransitioning:!1});At.displayName="ViewTransition";var jt=i.createContext(new Map);jt.displayName="Fetchers";var Et=i.createContext(null);Et.displayName="Await";var Pt=i.createContext(null);Pt.displayName="Navigation";var Tt=i.createContext(null);Tt.displayName="Location";var Ct=i.createContext({outlet:null,matches:[],isDataRoute:!1});Ct.displayName="Route";var Dt=i.createContext(null);Dt.displayName="RouteError";var _t="REACT_ROUTER_ERROR";function Nt(){return null!=i.useContext(Tt)}function Rt(){return u(Nt(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(Tt).location}var It="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mt(e){i.useContext(Pt).static||i.useLayoutEffect(e)}function Lt(){let{isDataRoute:e}=i.useContext(Ct);return e?function(){let{router:e}=Jt("useNavigate"),t=Qt("useNavigate"),n=i.useRef(!1);return Mt((()=>{n.current=!0})),i.useCallback((async(r,o={})=>{d(n.current,It),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){u(Nt(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(wt),{basename:t,navigator:n}=i.useContext(Pt),{matches:r}=i.useContext(Ct),{pathname:o}=Rt(),a=JSON.stringify(W(r)),c=i.useRef(!1);return Mt((()=>{c.current=!0})),i.useCallback(((r,i={})=>{if(d(c.current,It),!c.current)return;if("number"==typeof r)return void n.go(r);let s=U(r,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:V([t,s.pathname])),(i.replace?n.replace:n.push)(s,i.state,i)}),[t,n,a,o,e])}()}i.createContext(null);function Ft(){let{matches:e}=i.useContext(Ct),t=e[e.length-1];return t?t.params:{}}function zt(e,{relative:t}={}){let{matches:n}=i.useContext(Ct),{pathname:r}=Rt(),o=JSON.stringify(W(n));return i.useMemo((()=>U(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function Ht(e,t,n,r,o){u(Nt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(Pt),{matches:c}=i.useContext(Ct),s=c[c.length-1],l=s?s.params:{},p=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;{let e=m&&m.path||"";nn(p,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let g,v=Rt();if(t){let e="string"==typeof t?h(t):t;u("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=v;let y=g.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=S(e,{pathname:b});d(m||null!=x,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),d(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=$t(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:V([f,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:V([f,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),c,n,r,o);return t&&w?i.createElement(Tt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},w):w}function Bt(){let e=Xt(),t=J(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,c)}var Wt=i.createElement(Bt,null),Ut=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${_t}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new G(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?i.createElement(Ct.Provider,{value:this.props.routeContext},i.createElement(Dt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(qt,{error:e},t):t}};Ut.contextType=kt;var Vt=new WeakMap;function qt({children:e,error:t}){let{basename:n}=i.useContext(Pt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${_t}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Vt.get(t);if(r)throw r;let o=X(e.location,n);if(Q&&!Vt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Vt.set(t,n),n}window.location.href=o.absoluteURL||o.to}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Yt({routeContext:e,match:t,children:n}){let r=i.useContext(wt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(Ct.Provider,{value:e},n)}function $t(e,t=[],n=null,r=null,o=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,c=n?.errors;if(null!=c){let e=a.findIndex((e=>e.route.id&&void 0!==c?.[e.route.id]));u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,l=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){s=!0,a=l>=0?a.slice(0,l+1):[a[0]];break}}}let d=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:K(n.matches),errorInfo:t})}:void 0;return a.reduceRight(((e,r,o)=>{let u,p=!1,f=null,m=null;n&&(u=c&&r.route.id?c[r.route.id]:void 0,f=r.route.errorElement||Wt,s&&(l<0&&0===o?(nn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):l===o&&(p=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,o+1)),g=()=>{let t;return t=u?f:p?m:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(Yt,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(Ut,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:d}):g()}),null)}function Gt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jt(e){let t=i.useContext(wt);return u(t,Gt(e)),t}function Kt(e){let t=i.useContext(Ot);return u(t,Gt(e)),t}function Qt(e){let t=function(e){let t=i.useContext(Ct);return u(t,Gt(e)),t}(e),n=t.matches[t.matches.length-1];return u(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Xt(){let e=i.useContext(Dt),t=Kt("useRouteError"),n=Qt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Zt=0;function en(e){let{router:t,basename:n}=Jt("useBlocker"),r=Kt("useBlocker"),[o,a]=i.useState(""),c=i.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:i}=t;return e({currentLocation:{...r,pathname:M(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:M(o.pathname,n)||o.pathname},historyAction:i})}),[n,e]);return i.useEffect((()=>{let e=String(++Zt);return a(e),()=>t.deleteBlocker(e)}),[t]),i.useEffect((()=>{""!==o&&t.getBlocker(o,c)}),[t,o,c]),o&&r.blockers.has(o)?r.blockers.get(o):ge}var tn={};function nn(e,t,n){t||tn[e]||(tn[e]=!0,d(!1,n))}var rn={};function on(e,t){e||rn[t]||(rn[t]=!0,console.warn(t))}var an=(r||(r=n.t(i,2))).useOptimistic,cn=()=>{};function sn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&d(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:i.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&d(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&d(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var ln=["HydrateFallback","hydrateFallbackElement"];var un=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function dn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=St();r=o||r;let[a,c]=i.useState(e.state),[s,l]=(u=a,an?an(u):[u,cn]);var u;let[d,p]=i.useState(),[f,m]=i.useState({isTransitioning:!1}),[h,g]=i.useState(),[v,y]=i.useState(),[b,x]=i.useState(),w=i.useRef(new Map),O=i.useCallback(((o,{deletedFetchers:a,newErrors:s,flushSync:u,viewTransitionOpts:d})=>{s&&n&&Object.values(s).forEach((e=>n(e,{location:o.location,params:o.matches[0]?.params??{},unstable_pattern:K(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&w.current.set(t,e.data)})),a.forEach((e=>w.current.delete(e))),on(!1===u||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let f=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(on(null==d||f,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),d&&f){if(t&&u){t((()=>{v&&(h?.resolve(),v.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})}))})),void t((()=>y(n)))}v?(h?.resolve(),v.skipTransition(),x({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(p(o),m({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t((()=>c(o))):!1===r?c(o):i.startTransition((()=>{!0===r&&l((e=>pn(e,o))),c(o)}))}),[e.window,t,v,h,r,l,n]);i.useLayoutEffect((()=>e.subscribe(O)),[e,O]),i.useEffect((()=>{f.isTransitioning&&!f.flushSync&&g(new un)}),[f]),i.useEffect((()=>{if(h&&d&&e.window){let t=d,n=h.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):i.startTransition((()=>{!0===r&&l((e=>pn(e,t))),c(t)})),await n}));o.finished.finally((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})})),y(o)}}),[d,h,e.window,r,l]),i.useEffect((()=>{h&&d&&s.location.key===d.location.key&&h.resolve()}),[h,v,s.location,d]),i.useEffect((()=>{!f.isTransitioning&&b&&(p(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),x(void 0))}),[f.isTransitioning,b]);let k=i.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),S=e.basename||"/",A=i.useMemo((()=>({router:e,navigator:k,static:!1,basename:S,onError:n})),[e,k,S,n]);return i.createElement(i.Fragment,null,i.createElement(wt.Provider,{value:A},i.createElement(Ot.Provider,{value:s},i.createElement(jt.Provider,{value:w.current},i.createElement(At.Provider,{value:f},i.createElement(gn,{basename:S,location:s.location,navigationType:s.historyAction,navigator:k,unstable_useTransitions:r},i.createElement(fn,{routes:e.routes,future:e.future,state:s,onError:n})))))),null)}function pn(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var fn=i.memo((function({routes:e,future:t,state:n,onError:r}){return Ht(e,void 0,n,r,t)}));function mn({to:e,replace:t,state:n,relative:r}){u(Nt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(Pt);d(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(Ct),{pathname:c}=Rt(),s=Lt(),l=U(e,W(a),c,"path"===r),p=JSON.stringify(l);return i.useEffect((()=>{s(JSON.parse(p),{replace:t,state:n,relative:r})}),[s,p,r,t,n]),null}function hn(e){u(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1,unstable_useTransitions:c}){u(!Nt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=i.useMemo((()=>({basename:s,navigator:o,static:a,unstable_useTransitions:c,future:{}})),[s,o,a,c]);"string"==typeof n&&(n=h(n));let{pathname:p="/",search:f="",hash:m="",state:g=null,key:v="default"}=n,y=i.useMemo((()=>{let e=M(p,s);return null==e?null:{location:{pathname:e,search:f,hash:m,state:g,key:v},navigationType:r}}),[s,p,f,m,g,v,r]);return d(null!=y,`<Router basename="${s}"> is not able to match the URL "${p}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:i.createElement(Pt.Provider,{value:l},i.createElement(Tt.Provider,{children:t,value:y}))}function vn({children:e,location:t}){return Ht(yn(e),t)}i.Component;function yn(e,t=[]){let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let o=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,yn(e.props.children,o));u(e.type===hn,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),u(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=yn(e.props.children,o)),n.push(a)})),n}var bn="get",xn="application/x-www-form-urlencoded";function wn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var On=null;var kn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sn(e){return null==e||kn.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xn}"`),null)}function An(e,t){let n,r,o,i,a;if(wn(c=e)&&"form"===c.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?M(a,t):null,n=e.getAttribute("method")||bn,o=Sn(e.getAttribute("enctype"))||xn,i=new FormData(e)}else if(function(e){return wn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return wn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||a.getAttribute("action");if(r=c?M(c,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||bn,o=Sn(e.getAttribute("formenctype"))||Sn(a.getAttribute("enctype"))||xn,i=new FormData(a,e),!function(){if(null===On)try{new FormData(document.createElement("form"),0),On=!1}catch(e){On=!0}return On}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(wn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=bn,r=null,o=xn,a=e}var c;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function jn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function En(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===M(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Pn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Tn(e){return null!=e&&"string"==typeof e.page}function Cn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Dn(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter(((e,t)=>a(e,t)||c(e,t))):"data"===i?t.filter(((t,i)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(a(t,i)||c(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function _n(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function Nn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Tn(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function Rn(e,t){return"lazy"===e.mode&&!0===t}function In(){let e=i.useContext(wt);return jn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Mn(){let e=i.useContext(Ot);return jn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ln=i.createContext(void 0);function Fn(){let e=i.useContext(Ln);return jn(e,"You must render this element inside a <HydratedRouter> element"),e}function zn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Hn(e,t,n){if(n&&!Vn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Ln.displayName="FrameworkContext";function Bn({page:e,...t}){let{router:n}=In(),r=i.useMemo((()=>S(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?i.createElement(Un,{page:e,matches:r,...t}):null}function Wn(e){let{manifest:t,routeModules:n}=Fn(),[r,o]=i.useState([]);return i.useEffect((()=>{let r=!1;return async function(e,t,n){return Nn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Pn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Cn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||o(e)})),()=>{r=!0}}),[e,t,n]),r}function Un({page:e,matches:t,...n}){let r=Rt(),{future:o,manifest:a,routeModules:c}=Fn(),{basename:s}=In(),{loaderData:l,matches:u}=Mn(),d=i.useMemo((()=>Dn(e,t,u,a,r,"data")),[e,t,u,a,r]),p=i.useMemo((()=>Dn(e,t,u,a,r,"assets")),[e,t,u,a,r]),f=i.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,i=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some((t=>t.route.id===e.route.id))&&e.route.id in l&&c[e.route.id]?.shouldRevalidate||t.hasClientLoader?i=!0:n.add(e.route.id))})),0===n.size)return[];let u=En(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return i&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[s,o.unstable_trailingSlashAwareDataRequests,l,r,a,d,t,e,c]),m=i.useMemo((()=>_n(p,a)),[p,a]),h=Wn(p);return i.createElement(i.Fragment,null,f.map((e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>i.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>i.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var Vn=!1;function qn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:a,ssr:c}=Fn(),{router:s,static:l,staticContext:u}=In(),{matches:d}=Mn(),p=St(),f=Rn(a,c);o&&(o.didRenderScripts=!0);let m=Hn(d,null,r);i.useEffect((()=>{0}),[]);let h=i.useMemo((()=>{if(p)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${m.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];jn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${f?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach((e=>{let t=S(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let a=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:a,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${m.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return i.createElement(i.Fragment,null,i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))}),[]),g=Vn||p?[]:(t.entry.imports.concat(_n(m,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let y="object"==typeof t.sri?t.sri:{};return on(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Vn||p?null:i.createElement(i.Fragment,null,"object"==typeof t.sri?i.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,f?null:i.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),i.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),g.map((t=>i.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),h)}function Yn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}i.Component;function $n({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=i.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(J(e))return i.createElement(Gn,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return i.createElement(Gn,{title:"Application Error!",isOutsideRemixApp:t},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function Gn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Fn();return o.root?.Layout&&!n?r:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,e)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?i.createElement(qn,null):null)))}var Jn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Jn&&(window.__reactRouterVersion="7.13.0")}catch(e){}function Kn(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:l({window:t?.window}),hydrationData:t?.hydrationData||Qn(),routes:e,mapRouteProperties:sn,hydrationRouteProperties:ln,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function Qn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Xn(e.errors)}),e}function Xn(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new G(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var Zn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,er=i.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:a,state:c,target:s,to:l,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:f,...h},g){let{basename:v,unstable_useTransitions:y}=i.useContext(Pt),b="string"==typeof l&&Zn.test(l),x=X(l,v),w=function(e,{relative:t}={}){u(Nt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=i.useContext(Pt),{hash:o,pathname:a,search:c}=zt(e,{relative:t}),s=a;return"/"!==n&&(s="/"===a?n:V([n,a])),r.createHref({pathname:s,search:c,hash:o})}(l=x.to,{relative:r}),[O,k,S]=function(e,t){let n=i.useContext(Ln),[r,o]=i.useState(!1),[a,c]=i.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=i.useRef(null);i.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),i.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{o(!0)},h=()=>{o(!1),c(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:zn(s,m),onBlur:zn(l,h),onMouseEnter:zn(u,m),onMouseLeave:zn(d,h),onTouchStart:zn(p,m)}]:[!1,f,{}]}(n,h),A=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:c,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=Lt(),d=Rt(),p=zt(e,{relative:a});return i.useCallback((f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==n?n:m(d)===m(p),h=()=>u(e,{replace:t,state:r,preventScrollReset:o,relative:a,viewTransition:c,unstable_defaultShouldRevalidate:s});l?i.startTransition((()=>h())):h()}}),[d,u,p,n,r,t,e,o,a,c,s,l])}(l,{replace:a,state:c,target:s,preventScrollReset:d,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:f,unstable_useTransitions:y});let j=i.createElement("a",{...h,...S,href:x.absoluteURL||w,onClick:x.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||A(t)},ref:Yn(g,k),target:s,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?i.createElement(i.Fragment,null,j,i.createElement(Bn,{page:w})):j}));er.displayName="Link",i.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:a,viewTransition:c,children:s,...l},d){let p=zt(a,{relative:l.relative}),f=Rt(),m=i.useContext(Ot),{navigator:h,basename:g}=i.useContext(Pt),v=null!=m&&function(e,{relative:t}={}){let n=i.useContext(At);u(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rr("useViewTransitionState"),o=zt(e,{relative:t});if(!n.isTransitioning)return!1;let a=M(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=M(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=N(o.pathname,c)||null!=N(o.pathname,a)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&g&&(x=M(x,g)||x);const w="/"!==y&&y.endsWith("/")?y.length-1:y.length;let O,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(w),S=null!=x&&(x===y||!r&&x.startsWith(y)&&"/"===x.charAt(y.length)),A={isActive:k,isPending:S,isTransitioning:v},j=k?e:void 0;O="function"==typeof n?n(A):[n,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof o?o(A):o;return i.createElement(er,{...l,"aria-current":j,className:O,ref:d,style:E,to:a,viewTransition:c},"function"==typeof s?s(A):s)})).displayName="NavLink";var tr=i.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:c=bn,action:s,onSubmit:l,relative:d,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:h,...g},v)=>{let{unstable_useTransitions:y}=i.useContext(Pt),b=ir(),x=function(e,{relative:t}={}){let{basename:n}=i.useContext(Pt),r=i.useContext(Ct);u(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...zt(e||".",{relative:t})},c=Rt();if(null==e){a.search=c.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();a.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:V([n,a.pathname]));return m(a)}(s,{relative:d}),w="get"===c.toLowerCase()?"get":"post",O="string"==typeof s&&Zn.test(s);return i.createElement("form",{ref:v,method:w,action:x,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||c,u=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:a,relative:d,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:h});y&&!1!==n?i.startTransition((()=>u())):u()},...g,"data-discover":O||"render"!==e?void 0:"true"})}));function nr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rr(e){let t=i.useContext(wt);return u(t,nr(e)),t}tr.displayName="Form";var or=0;function ir(){let{router:e}=rr("useSubmit"),{basename:t}=i.useContext(Pt),n=Qt("useRouteId"),r=e.fetch,o=e.navigate;return i.useCallback((async(e,i={})=>{let{action:a,method:c,encType:s,formData:l,body:u}=An(e,t);if(!1===i.navigate){let e=i.fetcherKey||`__${String(++or)}__`;await r(e,n,i.action||a,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||c,formEncType:i.encType||s,flushSync:i.flushSync})}else await o(i.action||a,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||c,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})}),[r,o,t,n])}},52600(e,t,n){"use strict";n.d(t,{pg:()=>a});var r=n(35570),o=n(4883),i=n(81845);function a(e){return o.createElement(r.pg,{flushSync:i.flushSync,...e})}(0,r.q6)()},77987(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},95065(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},97991(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},24747(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},27887(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>o})},6624(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(37444),o=n(89954),i=n(1560);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},88097(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},37444(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},49523(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(15216);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},89954(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{A:()=>r})},62439(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},21648(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}n.d(t,{A:()=>r})},37820(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77969(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(88097);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8609(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},1560(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(65710),o=n(97991);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},15216(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},52167(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(6695),o=n(21648),i=n(25134),a=n(37820);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},47978(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},78840(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(95065),o=n(62439),i=n(25134),a=n(77969);function c(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},65710(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},72367(e,t,n){"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725(e,t,n){"use strict";n.d(t,{ll:()=>x});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return o(e).getComputedStyle(e)}function a(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function s(e){return e instanceof o(e).HTMLElement}function l(e){return e instanceof o(e).Element}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=i(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(){return!/^((?!chrome|android).)*safari/i.test(c())}function f(e){return["html","body","#document"].includes(a(e))}Math.min,Math.max;const m=Math.round;function h(e,t,n){var r,i,a,c;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let d=1,f=1;t&&s(e)&&(d=e.offsetWidth>0&&m(u.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(u.height)/e.offsetHeight||1);const h=l(e)?o(e):window,g=!p()&&n,v=(u.left+(g&&null!=(r=null==(i=h.visualViewport)?void 0:i.offsetLeft)?r:0))/d,y=(u.top+(g&&null!=(a=null==(c=h.visualViewport)?void 0:c.offsetTop)?a:0))/f,b=u.width/d,x=u.height/f;return{width:b,height:x,top:y,right:v+b,bottom:y+x,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||g(e);return u(t)?t.host:t}function y(e){const t=v(e);return f(t)?e.ownerDocument.body:s(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),c=i?[a].concat(a.visualViewport||[],d(r)?r:[]):r,s=t.concat(c);return i?s:s.concat(b(c))}function x(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||i?[...l(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let d,p=null;if(a){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&p.observe(e),l(e)||!e.contextElement||c||p.observe(e.contextElement),p.observe(t)}let f=c?h(e):null;return c&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(d)}}},92149(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4883),o=n(81845),i=n(2418);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const c=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class s extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new i(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,c),i=a({target:this._targetNode.current,element:this._elementParentNode},o),s=n||"";if(this._elementParentNode&&this._elementParentNode.id!==s&&(this._elementParentNode.id=s),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346(e,t,n){"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>i});var o=r(),i=r},14644(e,t,n){"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>l,Qd:()=>c,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let i=e,l=t,u=new Map,d=u,p=0,f=!1;function m(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return l}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),u=null}}}function v(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,l=i(l,e)}finally{f=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const c={};for(let i=0;i<o.length;i++){const s=o[i],l=n[s],u=e[s],d=l(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}c[s]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?c:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const c={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map((e=>e(c)));return a=p(...s)(i.dispatch),{...i,dispatch:a}}}function m(e){return c(e)&&"type"in e&&"string"==typeof e.type}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;("object"==typeof a||"function"==typeof a)&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({4672:"phone-formatter",36916:"vendor-icons",49222:"vendor-libphonenumber-js",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"f1ff00e7bfaad1a49c65",662:"0fd8dd114dcedfce0ac3",850:"5a0b34898be4a47275f8",996:"03d99484a35667202f67",1207:"d6cab810b5b1c919d11e",1216:"8b60ba3abbdfd2a04675",1221:"365e6d24944b8561b9a6",1234:"54aba771fea48cdbfabb",1325:"0a69d3d2550e56661765",1361:"3116313639cc2851a240",1496:"31150c4ec412c96f10db",1655:"a2d4d00d2748b62a530b",1702:"f8ee12b1425f246688ab",1766:"487a4222c2bd9a7765e1",2045:"53812894176a307be82b",2070:"f1e875d45db8ca27a2b8",2451:"16692c02fbc71ceeeb10",2540:"ade73fc6a29bd33ece17",2586:"f2f9ddf0d4c5e7be5501",2682:"3bab05cdefd872ae7d0a",3082:"912fab302a17ae886a32",3459:"e8035e39b8f11b69e6c8",4139:"b72c53fd483c606f5a7a",4490:"405ae36cb7ced10489b3",4672:"6f70d1fd93552b68c3d2",5243:"6253b8cb6f2232dab63c",5318:"b77c3b5c01253f170e62",5438:"1153f6ba6ef546c43a1a",5575:"e0bae7a13317fd59fab5",5817:"2fb77ae1e345be0b685f",6041:"858ce845b21abe4bbc9e",6147:"aa51d6e0759b2bbd6209",6396:"19bcb006d361f1f22cc8",6644:"8bbdd84f028d0b4982df",6893:"3c120b054a316402b3fb",7313:"817d45d3d9f39a5ea7d1",7625:"f9093eaf54489c272f57",7668:"d02be86a1a9cca34c427",7743:"05de1f99606a13e8615c",7802:"fc472a85e98bd017e6a4",7989:"602633b4d34b69fba837",8171:"1141cb0a5322799fa16b",8504:"ef379e4b610bc84ac1b0",8676:"5ea8651b854b320b83f0",8818:"5986339482f675290a09",8992:"6ce9edcefbb86fac28e9",9017:"deba7b73eb7d17988081",9561:"03db1abc6ede43ef2726",9603:"033929f84840257b1ee3",9753:"0f46643b0b65e92260f0",10012:"62c238eb1f819c760dbe",10472:"e6718efaee148cf04bee",10499:"4241948a5afa28c63c8f",10655:"63e1888a3d37bd228c57",10910:"2d7c2cea382ac6d47877",11211:"c3a826deb36ca3084430",11239:"664b58de88949602eab7",11281:"6839e1785eea6fa62fd4",11788:"3c8d4fb49b0605e4a42e",11842:"a30cf0685f7c94646052",12987:"43bfcd11dbd7d00ecd34",13081:"2f9bd09e8f3e877c25e1",13093:"706961a8ccd307c7119b",13124:"f0f4ecc745e36fe165c4",13452:"131cf324a1608bfffffd",13622:"5499073d732a5df7e1c9",14291:"f070cad82b91a078e4f8",14527:"6ab89e61467ee174c29f",14663:"a055d8d182a01b394b76",14879:"d5f44ee5b01e01ae829a",14973:"1d42cdeebeef41e175b3",15028:"ed6df70ca3df686324df",15197:"a6f529ee3b5e4bc94c50",15692:"b75f8acf7f44c4a43492",15802:"5364a404bc039ccf87b2",15898:"ed6251b5ce151fb12cba",16334:"bbd89defd17054298673",17e3:"971df60cee99815fcd3b",17076:"cc7717f3af4d9ba576aa",17247:"66fdff46131777948ec2",17380:"d64993620041e5af310c",18334:"08f51601d896f1d70765",18410:"5daa0091b7681d5a7a33",18849:"4b3e5bf7068223b9dd4a",19217:"d2125366eadeb8f56f9a",19249:"bc50e6920720dc8db10a",19557:"1385150b3a640532f6c6",19588:"8e0d6c0cc512f596cb09",19786:"a728b76d5f49cb618c75",19956:"95833e32301759233465",20009:"8e731060a6f81aba7a42",20047:"63cb5a28e454dbb33400",20132:"1e21a33006aa737bafea",20360:"0b51940342e156419601",20454:"2d85b5e1208d6ca257ee",20592:"2e32806bf86d32a90dd2",20659:"2c8e8b028645664a5f42",21137:"032ec676fdc7f7ed726d",21323:"e4be5a93303084f1608c",21843:"c610b016bdb60e9e3122",21901:"bc72c861ee2328f62b2b",22030:"dea7d8775bbb562f3ff1",22584:"9edd4e1cdaa1cb9c09c6",22981:"832147f4f0c38b3f51a6",23097:"2d6bcdc6cb3258e6b4e1",23257:"12003e00122e84ea6fa6",23407:"8dc00a45bce7426e0c5c",24364:"9ce68c8a50afc9ad7063",24499:"f807ec171cc38889cdaf",24522:"0cbac0e30e9fc76d3522",24854:"02777d8426ce93d81277",25181:"35698e587f85f63109e1",25395:"deb984b34f01a3ac44a5",25637:"3b60eed5552b6fd82328",26051:"80f10f79a334b538e144",26332:"b1f2aa02ee4f32437bc1",26528:"e24755ac009d44ec9740",26605:"712f2bb25f8098cac660",26820:"4c1ad1b72ada62ccdaa0",27211:"39ff4815053d7cb22c5e",28507:"16c9e822de13c5cee774",28586:"68555d47331490522c79",28734:"262af79b3dd1c445862a",28797:"8edbad9e771de8794647",29067:"cb760ec1040727d60f8f",29072:"3089b1882e952d4c3762",29369:"43ebd7ec09605ebfb360",29435:"deeb9288b0beff42b691",29694:"3a664c8f23e4e24ee365",29755:"ec53b13b701958299571",29861:"e5069aacfdfbcfc558f0",29954:"fa24abb9845651988597",30470:"5df04b1abafd45ced616",30486:"df4f9374cbd741cd8baa",30766:"245c939a0ccd490411cd",30897:"dc06397d9d1960ba6bf7",31001:"9f098e5720d408dc5221",31131:"91021a14d3a3b96fda2a",31255:"aa4bef83eb09b82d7d80",31570:"6d418fc856e72aa44e13",31600:"2c03481063505e1a3e2b",31723:"159041b90d32102b642c",31835:"3c3d0ecb2aac9fc6c92e",32499:"3f76351d12b853244935",32521:"30334f92d04f0e1a0814",32725:"aab5d462dfb8e7eb58db",33204:"e021a2ec3fcf6c720a1d",33227:"ef722e6c3dba390fe4f7",33366:"88a14c7265556f5aa05e",33537:"a70e0f38a19368f40152",33688:"6bcdb120347fe16e0254",34048:"55c77fdcb703c7e81c42",34163:"2e074ea2e1e6cce6840b",34675:"fb958c953f8f921ae102",34678:"8b17e86547cfa06be239",34817:"ec3b2ecf2fd49a61c669",34869:"d386c5cede98e7988bed",34916:"dc38aa940097ec7b98d2",35173:"2a43c1e9746948404c44",36032:"909047690aa976537c69",36086:"ce897c22c4d6398a1777",36627:"51119a75549200862a5f",36763:"6430f4b8100205702387",36788:"7a26d567ff9538a844ce",36916:"06146b04d52672170c14",37210:"caf6d1e7fb26d8c0549b",37551:"631fe1dc336e6ab1e01b",37633:"c14eef0c0095b0693c17",37856:"0e09e8d7589df7082d0d",37887:"a248311dd47c9dc91b2b",38223:"67a6c34902585ced7c92",38297:"dfb26eddb9623dcd9b27",38470:"b84849417088c060f383",38506:"e772f3e68de0d78f1280",38749:"90627bc654014fb9955a",38848:"00b62907ed1bc648c424",38909:"e2b7d86759a51c7a43d5",38918:"ffea056ae5c1198084fc",39417:"a4a415f80d55e3cbcba6",39669:"d60eba8c328b22378dcc",39797:"2898cd6210bcb1d0d71a",40426:"3f99e95594d333dfa828",40975:"a7fb4213b4e652dab9c4",41056:"5ff904bdc5dd5e481a7c",41170:"f1d966f842b9518f0bcd",41293:"f9d316cd43337b80e5f8",42049:"a51190f536d3a6db959b",42206:"8dcf0910546c350f305e",42482:"94f8e6ee5f26dec7fbbd",43158:"21f806b61c5a729c5fce",43317:"fd86ece88f7ca84f81e3",43425:"9fd6e1c5e1e7739c08a4",43500:"1cfc037c8af7e3e82603",43636:"f3ff27d3c55cce8872b1",44286:"e0fd517ec5cfcb00457a",44330:"7bba3b8e5a0a64f3f555",44417:"c0d5d1ac8c4d7fa56221",44586:"1e266c7874c3462589b1",44753:"1c7ae8b75a3453740dfa",44788:"1b6144417b3712185201",45010:"d89ae80cb6626f104fb7",45011:"6349e01beba38d46ac5e",45029:"f9207909e2ccaf0ccfc3",45202:"f353b7ce60431cc2c063",45209:"c9cdd3b786021baa22f9",45587:"b78d89d23bf874b0fd3b",45631:"ea2c31894731dca3a188",45734:"79f3e00a4298ca1bbc8a",45814:"53162b38adb82aa7ce22",46116:"b97f0e4185ac5cfe879a",46167:"fb63c0e785e7e24b4fa1",46503:"8cb5699507933134b5e9",46623:"a1555742262b13f7bf34",46811:"29cbd6f56eb77e3dcdef",47026:"e4eb439978fd6b102387",47075:"56bc9ede14d41557e62c",47145:"f4d17cf1fc67102eb7f3",47173:"54a2b950c9e00d82f765",47281:"58a9294792f78e2e3b73",47387:"a22fc6dde03253960742",47507:"e68e7cccf09d4c68f0a9",47694:"fe30f528f9640ceb4d2f",47968:"da3e556b5ee7fc241f1e",48077:"91283c1a3a49de507a95",48320:"f8e0820c0249e78e9632",48331:"c1f0e26ab6535046aff6",48575:"1f092615ed9121778114",48640:"70fecbcbb09592e64f51",49159:"889b871e16f4b6d03546",49222:"ae0a7b49ccc555512156",49343:"d8b97c8f8bcda41e14fd",49372:"42c302cee9fbe3b96737",49392:"b030af6092daca5c9fc8",49808:"ead9769a1db68a145256",50117:"c703e5a4e4c3d42fccda",50152:"428501a0fcad58476342",51004:"a0935d1257b9e43c6f55",51057:"7a61603ea4dad8776e53",51150:"af2a541c6096cd721164",51183:"8727629e6259a8afed78",51199:"b26d078fd35c1cafae15",51287:"70e300cadad937762605",51289:"d6576bdb6e3c4e35d3c8",51678:"d83d2d45031e38806a85",51958:"8165fe4316f737d38274",52602:"177c4522e5e733460c1b",53103:"b842c00cdda87f0b5dbe",53610:"694b27f438a6557077b7",53611:"3d29abba3d80ead14772",53840:"71e8ed3072df96aa6378",54176:"099c207b8e3bd155898d",54310:"9e1e4c39035e150e6c03",54958:"1253f530a0eaa47e9da3",55009:"db934840511673dcdba7",55113:"0948ae85aba584593e90",55208:"1cbc7dff6d05bdf73786",55263:"b88491fcf7bd48fbc475",55677:"900196998b1b97798c9d",55980:"da5af597fc0703630212",56470:"48507db1f0618c1927a7",56742:"217b7235b110982d8c91",56746:"5f0dcfeffb265c848bcf",57e3:"cd035a26f063f79444d3",57031:"6203d9fbbf43e47198ce",57108:"add72d336351ed746864",57186:"d748afb9d9b2781211c0",57217:"89a81ee82ebca463e6a8",57546:"d7d6e44a62a053f2a0fe",57592:"403879f918bbb96a678e",57936:"33d29a550b7c54a4a1c4",58045:"1c4acf76a2f70927993f",58082:"dcba82a678313005b24e",58135:"dfeb90f04cdbf37e7bec",58292:"d75ec8063f7f70462d6f",58382:"73a6233dc9e0d6cee21a",58444:"34306636d81edec5be4e",58457:"eff86ec3d94bb1395501",58485:"8e083c30f6c3447935a7",58972:"2989c054a92ab28fca15",59287:"98254962329fa8b308f3",59364:"02f15fe0af5de81c7e19",59479:"ef469352eb50abb06811",59517:"e001e5dfa0b298939c5b",59544:"435e354885c0acd0e5dd",60240:"8f9c0be88e80b0cef4a4",60395:"6ea36c7d028a1ff9aba9",60526:"39a244c003e5a04bce17",60824:"a10be22777825d45e725",60871:"0ef13ce3fca3609b4a50",61060:"43a274e31380ef253d43",61079:"109e87e4e83b013ad5c2",61305:"f690a2c9e435e0392486",61507:"8355a91f1455dc0839a6",61532:"5cf260c05c64a00765c9",61556:"a037d8cdcbf42015852d",61594:"58798f1247c007f8b2f7",61742:"a2664dabf66bee3056a6",61777:"79f5fb8f1cfd4e43cfcb",62115:"c447a9fbb21e3f63de31",62308:"424985cfbaf25a529c0e",62429:"d90f1c9e59c196fd1f4f",62459:"2b85e9db788a241c8c66",62575:"d771d75fc6d1f57c1b59",62632:"fa01c8eee28874cfef89",62797:"97d93a456c4f22e8b3ab",63112:"4669495fe22340436372",63135:"c47990b1af76f1d6d0d6",63419:"887ef144b64bb9ec38f6",63471:"047b00b9b552b9de25fe",63489:"0036aa76a7f68ae76961",63767:"b9ff3a66add026d555c4",63780:"594eb318e123762919ef",64025:"9dc47ca24fdebb413244",64108:"d98ec14f18a3d46efc2e",64190:"32e5c03b1f05e57ecc92",64309:"c65942565f10d1aa6f05",64420:"bb43dc1baca3603b7667",64442:"bf0ef87a3743a0bbda47",64570:"19e5d7f5a99faeacb226",64660:"f9d6e723cc2e83f0ab7f",65111:"333e3fec31ee078210da",65408:"63cf521fda87b6ff61fa",65559:"6f08aa474ffdeaf9a66e",65896:"96317009996691b4bb0a",66181:"120facb6c1ce74415659",66448:"a94fb10fbb0f015b0457",66565:"cc2e2b30004423f13b47",66656:"ffd702decd3abd853846",66796:"93b36c8cf3aea604f94b",66885:"509e0d337128746d1bc9",67015:"8f1d1a6da042b4c2d5bc",67278:"b6451cbfcbe0b77a8745",67705:"d8aebb978ea4fd7e76b9",67744:"1e05236b4aed7caabc56",67772:"8eb3a5fedd81960e7ad9",68389:"2edd35a70e9e45b9b524",68648:"9928942479c735a080f5",69073:"cad94e088932ae696d9a",69170:"92e777e50a94b344e550",69502:"a6305d5f753da67ec4c5",69687:"f5929e8a009844dc7427",69776:"f32c96c0f456663f57a3",69884:"86d39c8cf2b5d0409ba4",69975:"97cbe3d07c962414969a",70174:"e3599341a87360d58424",70316:"e1fe8b42f8cb8f8589ce",70471:"905dc4ea491a24c62f11",70997:"929ca6ed73b4866a3c11",71075:"017bcf7a04253cbb2d07",71262:"a43f9065c4fe69935481",71496:"0ae5a9f9d3631024323d",71657:"0dd8cdb91628eeb6024f",72246:"70e526c1393da5f87daa",72283:"3cea797f38ce5d1b52ab",72376:"96dce911c3388994b8dd",72456:"8c0bcd6874db2417e173",72496:"9ae179b5e7264e7b40e7",72823:"0698ec372c10b97b0ccc",72887:"b4a4f8449613decb11e3",72969:"45be7d9b4adcc1048332",73031:"c5eabad8c03f4c0321fd",73120:"144e74dd90e1744bf9b2",73226:"9d4a9ddd2dc879cc5895",73330:"efdad79202783170b0b7",73477:"08b4a5f95ae9da2b51c1",73781:"f305cae29d14b8fdaa78",74142:"bbfedadf8b9de4fb7d97",74413:"75c2a149453e6808579c",75042:"a6472344ba14b0cdc0bf",75263:"62bb9800b98afd2bf7f6",76235:"5587b398895808cc37b6",76254:"1dc9faf82a45d5b8fe4d",76283:"b6f9aa790d8efe00236a",76397:"bbc8682dce5d3ab8e4fe",76667:"4759e78395330e4dea7f",77385:"b3463bb708545b2d6563",77406:"a646ee7d5bdf207610c4",77623:"adc52c3632ef5f7e16ed",77968:"113b168255156c48b3de",78056:"ace8b5dd88b3cdac2e2e",78155:"e518ba6c164eb91aa451",78720:"0b500943cb5e8c73a31f",79258:"c21b0f6e3f24007ccb36",79289:"9a7f0ffe94de304b5355",79340:"dbccee1841c34be0f2c1",79625:"a3c85ca20806f0c1c198",79685:"36e29daecb7c92a6f45d",79699:"493db31747b31d59b72f",79869:"6d326072ef091011d06d",80008:"ff7202c959461e2b4a8d",80262:"d134f1be1f2332fd3bd1",80270:"50cb21cb916192e70478",80335:"105a3bb367c6547d21fe",80566:"156ebe85e9d7502b65b7",80569:"1e46aaf3e41ab209715b",80638:"337548cbf749c38937bd",80902:"4351b672cb800a1a0cbb",81328:"7ed1dd5bab55c3db8d86",81450:"58b35d77e78c43aa2448",81534:"655a8318b3d1c2d0b4cc",81852:"1becf80579abc145ff8c",82067:"8a4f960ad0e3dd0b8584",82327:"d2383f5ecc6b1c701ca9",82422:"32ae898ef01c7540d88d",82544:"1f6f09daa898d15d16ce",82555:"5d06a4773b45a9957d8b",82628:"9abc565e063faf07ab82",82954:"d771320cc749df1d3cb8",83136:"f3de005d8c473fbcfd4d",83282:"11057bd4688cd9afd1cf",83369:"cbefe42f0956b40efcc8",83722:"78e4c90148a5764649f8",84506:"ede88c0a261e89471a5b",84556:"588b491efef6d6127114",84567:"a01e2975130cbf96047b",84625:"ecaf98bf9b41a3ff9dcf",85085:"9e1a0c0ca176b1d94b5b",85477:"5f62658929abfabe6b45",85481:"8d48215f13377e1f4d60",85749:"76359fa109906f552d50",86006:"2d3afc8146a0e2e17612",86187:"05fd1ef8578aa03aa44e",86275:"4b45d7bdb3b492813560",86902:"52b44b41455c5ab9d88f",86952:"d454e5005fab94877160",87268:"3d7c741812d75fa61161",87406:"fb7f33d64a30d38cd617",87624:"d32ef61696a8a34412d4",87632:"83f69f420c98f30030e1",87772:"7f91e1e6249e8027295a",87826:"3772ef2615549d7e1bd1",87842:"0dfd64dee10134def7ea",87874:"307551ab3c84e46436e1",88408:"70d9081118792e8f5ee6",88533:"dcf1ccbddd8a39b6255d",88628:"6123edc152da7a4c7ace",89179:"baa00b7d9465c1be2164",89426:"89b47635af3395809e5e",89476:"857cff55359ba9cfa51b",89609:"a7129f04e8f480111691",89673:"a5e4f0defc714dabb568",89695:"d9fd4a417811421081f3",90008:"d2caa0f58f057ba6bde2",90316:"d7e09a049115575f5256",90616:"1e35dc3e7b0198f2dd1a",90667:"20b3100ec1a4f8b36a69",90721:"8746546abb05e2f5d604",90724:"7c4354d1f80623f3239d",90731:"2a50e4cb0a03cb3315f2",90830:"52544826a6cc5c6af902",90846:"b47696df86637a5cc872",91201:"57b65a01f00c6fea6dbd",91316:"cb9e084dd8f565a6bb9f",91344:"98fed9b1d8e82780c95f",91841:"57ffee9d48fe273db8b3",91858:"2e96df0a421a401c7c58",91951:"b0493992ea3e927b4eee",92012:"25613eab4bc73b991159",92174:"562a277f6bfb0c097a8b",92361:"8c670b0b87333850ccae",92657:"acb072ff9183485096d5",93102:"c20491fcec796ff357a4",93171:"f973c14d631aef744084",93236:"d681676546d83a082b3e",93534:"9cc1da51d79778d90cd0",93537:"4dfae0a125de0bae2308",93985:"e223588cc228f7e6c55f",94194:"96b57fbced4d014ab14e",94224:"83680b04b3114811a730",94443:"61205777303137578f52",94565:"1288c60c62f446ccd0ea",95399:"ba0d34bfd9c8b5ebfa7c",95814:"1ecdb16b228a9d930b5d",95883:"b5707f1e8401cffea0db",96145:"0d3a378f174c8d9b76e9",96193:"da45cddf7d534efb5097",96199:"85da2462ad7d946a1b70",96332:"5dfb40df47af637cbc32",96679:"b43e60e7dd0ff5e84736",96809:"60cc39cd27a38039df8e",96934:"6ea4548c58babff8b3d1",97230:"d91f20a73cd15a98f743",97359:"21a7f7a7dde63d83051e",97665:"0a53c5d766af0e14e93e",97940:"55a4371718f6972befb6",98153:"e7d2214694ca0bf8ca53",98423:"a7d52daab104db1e39ea",98769:"1042fe2fb4a0b089680b",98996:"a3d5ce92e869c8c092e8",99010:"dc2d7930485596e94acb",99148:"2c06c434dd07953fba19",99623:"b4db27f63baacefbc35d",99651:"395b81b3538224505eea"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-legacy-bundle:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=75205,s.p="/",(()=>{var e={75205:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,c]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)c(s)}for(t&&t(n);l<i.length;l++)o=i[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_legacy_bundle=this.webpackChunktocco_legacy_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l={};return(()=>{"use strict";s.r(l),s.d(l,{app:()=>t.yA});var e=s(61402),t=s(82787);e.A.registerAppInRegistry(t.yA.name,t.yA.init)})(),l})()));
|