tocco-legacy-bundle 3.16.27 → 3.16.28
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-72969.f105693c2d9c70646602.js +19 -0
- package/dist/chunk-vendor-icons.c3fdfb2e54bd44c3c099.js +1 -0
- package/dist/docs-browser.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/dist/login.js +1 -1
- package/dist/password-update.js +1 -1
- package/dist/sso-login.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-72969.ad3a7c734d0a6a2ff181.js +0 -19
- package/dist/chunk-vendor-icons.cfe039b5f5734c8e12c4.js +0 -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"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){return v((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{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:h(t))}),(function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function h({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 g(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 v(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,c="POP",u=null,d=p();function p(){return(a.state||{idx:null}).idx}function h(){c="POP";let e=p(),t=null==e?null:e-d;d=e,u&&u({action:c,location:v.location,delta:t})}function g(e){return y(e)}null==d&&(d=0,a.replaceState({...a.state,idx:d},""));let v={get action(){return c},get location(){return e(o,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(s,h),u=e,()=>{o.removeEventListener(s,h),u=null}},createHref:e=>t(o,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=l(e)?e:m(v.location,e,t);n&&n(r,e),d=p()+1;let s=f(r,d),h=v.createHref(r.unstable_mask||r);try{a.pushState(s,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}i&&u&&u({action:c,location:v.location,delta:1})},replace:function(e,t){c="REPLACE";let r=l(e)?e:m(v.location,e,t);n&&n(r,e),d=p();let o=f(r,d),s=v.createHref(r.unstable_mask||r);a.replaceState(o,"",s),i&&u&&u({action:c,location:v.location,delta:0})},go:e=>a.go(e)};return v}function y(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),d(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function b(e){return{defaultValue:e}}var w=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 A=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(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(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 j(e,t,n,!1)}function j(e,t,n,r){let o=L(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let i=P(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=M(o);a=N(i[e],t,r)}return a}function E(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 P(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;d(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=Y([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),P(e.children,t,u,l,a)),(null!=e.path||e.index)&&t.push({path:l,score:_(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of T(e.path))i(e,t,!0,n);else i(e,t)})),t}function T(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=T(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 C=/^:[\w-]+$/,D=e=>"*"===e;function _(e,t){let n=e.split("/"),r=n.length;return n.some(D)&&(r+=-2),t&&(r+=2),n.filter((e=>!D(e))).reduce(((e,t)=>e+(C.test(t)?3:""===t?1:10)),r)}function N(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=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:Y([i,u.pathname]),pathnameBase:G(Y([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=Y([i,u.pathnameBase]))}return a}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I(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 I(e,t=!1,n=!0){p("*"===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,o,i)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=i.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"})).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 M(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!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 L(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 F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H=e=>F.test(e);function z(e,t){let n=$(t).split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function B(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 W(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function U(e){let t=W(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function V(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),B("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),B("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),B("#","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?g(e):e;return r?(r=q(r),n=r.startsWith("/")?z(r.substring(1),"/"):z(r,t)):n=t,{pathname:n,search:J(o),hash:K(i)}}(o,i),l=c&&"/"!==c&&c.endsWith("/"),u=(a||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var q=e=>e.replace(/\/\/+/g,"/"),Y=e=>q(e.join("/")),$=e=>e.replace(/\/+$/,""),G=e=>$(e).replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Q=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 X(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Z(e){let t=e.map((e=>e.route.path)).filter(Boolean);return Y(t)||"/"}var ee="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function te(e,t){let n=e;if("string"!=typeof n||!F.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(ee)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=L(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){p(!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 ne=Symbol("Uninstrumented");function re(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=oe(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=oe(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[ne]??o,i=oe(n[e],t,((...e)=>ae(e[0])));i&&("loader"===e&&!0===t.hydrate&&(i.hydrate=!0),i[ne]=t,r[e]=i)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[ne]??e,r=oe(n.middleware,t,((...e)=>ae(e[0])));return r?(r[ne]=t,r):e}))),r}function oe(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ie(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ie(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=ie(e,t,n,r-1),o=await a,d(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 ae(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:se(t),params:{...r},unstable_pattern:o,context:le(n)}}function ce(e,t){return{currentUrl:h(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 se(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function le(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")===ue}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var ue=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var de=["POST","PUT","PATCH","DELETE"],pe=new Set(de),fe=["GET",...de],me=new Set(fe),he=new Set([301,302,303,307,308]),ge=new Set([307,308]),ve={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ye={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},be={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},we=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),xe="remix-router-transitions",Ae=Symbol("ResetLoaderData");function Oe(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;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||we,i=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;i=e=>({...o(e),...re(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 u,f,v,b=e.dataStrategy||Me,x={unstable_passThroughRequests:!1,...e.future},A=null,k=new Set,P=null,T=null,C=null,D=null!=e.hydrationData,_=S(s,e.history.location,l),N=!1,R=null;if(null!=_||e.patchRoutesOnNavigation){if(_&&!e.hydrationData){Qe(_,s,e.history.location.pathname).active&&(_=null)}if(_)if(_.some((e=>e.route.lazy)))u=!1,f=!u;else if(_.some((e=>Ee(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=_;if(n){let e=_.findIndex((e=>void 0!==n[e.route.id]));r=r.slice(0,e+1)}f=!1,u=!0,r.forEach((e=>{let r=Pe(e.route,t,n);f=f||r.renderFallback,u=u&&!r.shouldLoad}))}else u=!0,f=!u;else{u=!1,f=!u,_=[];let t=Qe(null,s,e.history.location.pathname);t.active&&t.matches&&(N=!0,_=t.matches)}}else{let t=it(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ot(s);u=!0,f=!u,_=n,R={[r.id]:t}}let I,M,F={historyAction:e.history.action,location:e.history.location,matches:_,initialized:u,renderFallback:f,navigation:ve,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||R,fetchers:new Map,blockers:new Map},z="POP",B=null,W=!1,U=!1,V=new Map,q=null,Y=!1,$=!1,G=new Set,J=new Map,K=0,Q=-1,Z=new Map,ee=new Set,te=new Map,ie=new Map,ae=new Set,se=new Map,le=null;function ue(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}))),F={...F,...e};let n=[],r=[];F.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ae.has(t)?n.push(t):r.push(t))})),ae.forEach((e=>{F.fetchers.has(e)||J.has(e)||n.push(e)})),[...k].forEach((r=>r(F,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Ne(e))),r.forEach((e=>F.fetchers.delete(e)))}function de(t,n,{flushSync:r}={}){let o,i=null!=F.actionData&&null!=F.navigation.formMethod&&yt(F.navigation.formMethod)&&"loading"===F.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?F.actionData:null;let c=n.loaderData?tt(F.loaderData,n.loaderData,n.matches||[],n.errors):F.loaderData,l=F.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,be))));let u,d=!Y&&Ke(t,n.matches||F.matches),p=!0===W||null!=F.navigation.formMethod&&yt(F.navigation.formMethod)&&!0!==t.state?._isRedirect;if(a&&(s=a,a=void 0),Y||"POP"===z||("PUSH"===z?e.history.push(t,t.state):"REPLACE"===z&&e.history.replace(t,t.state)),"POP"===z){let e=V.get(F.location.pathname);e&&e.has(t.pathname)?u={currentLocation:F.location,nextLocation:t}:V.has(t.pathname)&&(u={currentLocation:t,nextLocation:F.location})}else if(U){let e=V.get(F.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),V.set(F.location.pathname,e)),u={currentLocation:F.location,nextLocation:t}}ue({...n,actionData:o,loaderData:c,historyAction:z,location:t,initialized:!0,renderFallback:!1,navigation:ve,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),z="POP",W=!1,U=!1,Y=!1,$=!1,B?.resolve(),B=null,le?.resolve(),le=null}async function pe(t,n,o){I&&I.abort(),I=null,z=t,Y=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(P&&C){let n=$e(e,t);P[n]=C()}}(F.location,F.matches),W=!0===(o&&o.preventScrollReset),U=!0===(o&&o.enableViewTransition);let u=a||s,d=o&&o.overrideNavigation,p=o?.initialHydration&&F.matches&&F.matches.length>0&&!N?F.matches:S(u,n,l),f=!0===(o&&o.flushSync);if(p&&F.initialized&&!$&&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}(F.location,n)&&!(o&&o.submission&&yt(o.submission.formMethod)))return void de(n,{matches:p},{flushSync:f});let m=Qe(p,u,n.pathname);if(m.active&&m.matches&&(p=m.matches),!p){let{error:e,notFoundMatches:t,route:r}=Ve(n.pathname);return void de(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}I=new AbortController;let h,g=Je(e.history,n,I.signal,o&&o.submission),v=e.getContext?await e.getContext():new w;if(o&&o.pendingError)h=[rt(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&yt(o.submission.formMethod)){let t=await async function(t,n,o,a,u,d,p,f={}){Oe();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(ue({navigation:h},{flushSync:!0===f.flushSync}),d){let e=await Xe(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}=ot(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=rt(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}=Ve(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}a=e.matches}let g=wt(a,n);if(g.route.action||g.route.lazy){let e=We(i,c,t,n,a,g,p?[]:r,u),o=await he(t,n,e,u,null);if(m=o[g.route.id],!m)for(let e of a)if(o[e.route.id]){m=o[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:it(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};if(ft(m)){let n;if(f&&null!=f.replace)n=f.replace;else{n=Ge(m.response.headers.get("Location"),new URL(t.url),l,e.history)===F.location.pathname+F.location.search}return await me(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(pt(m)){let e=rt(a,g.route.id);return!0!==(f&&f.replace)&&(z="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(pt(r)&&X(r.error)&&404===r.error.status)return I=null,void de(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}p=t.matches||p,h=t.pendingActionResult,d=At(n,o.submission),f=!1,m.active=!1,g=Je(e.history,g.url,g.signal)}let{shortCircuited:y,matches:b,loaderData:x,errors:A}=await async function(t,n,o,u,d,p,f,m,h,g,v,y,b){let w=p||At(n,f),x=f||m||xt(w),A=!Y&&!g;if(d){if(A){let e=fe(y);ue({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await Xe(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}=ot(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=rt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ve(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let O=a||s,{dsMatches:k,revalidatingFetchers:S}=je(t,u,i,c,e.history,F,o,x,n,g?[]:r,!0===g,$,G,ae,te,ee,O,l,null!=e.patchRoutesOnNavigation,y,b);if(Q=++K,!e.dataStrategy&&!k.some((e=>e.shouldLoad))&&!k.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Le();return de(n,{matches:o,loaderData:{},errors:y&&pt(y[1])?{[y[0]]:y[1].error}:null,...nt(y),...e?{fetchers:new Map(F.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(A){let e={};if(!d){e.navigation=w;let t=fe(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=F.fetchers.get(e.key),n=Ot(void 0,t?t.data:void 0);F.fetchers.set(e.key,n)})),new Map(F.fetchers)}(S)),ue(e,{flushSync:v})}S.forEach((e=>{Re(e.key),e.controller&&J.set(e.key,e.controller)}));let j=()=>S.forEach((e=>Re(e.key)));I&&I.signal.addEventListener("abort",j);let{loaderResults:E,fetcherResults:P}=await Ae(k,S,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",j);S.forEach((e=>J.delete(e.key)));let T=at(E);if(T)return await me(t,T.result,!0,{replace:h}),{shortCircuited:!0};if(T=at(P),T)return ee.add(T.key),await me(t,T.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:C,errors:D}=et(F,o,E,y,S,P);g&&F.errors&&(D={...F.errors,...D});let _=Le(),N=Fe(Q),R=_||N||S.length>0;return{matches:o,loaderData:C,errors:D,...R?{fetchers:new Map(F.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||(I=null,de(n,{matches:b||p,...nt(h),loaderData:x,errors:A}))}function fe(e){return e&&!pt(e[1])?{[e[0]]:e[1].data}:F.actionData?0===Object.keys(F.actionData).length?null:F.actionData:void 0}async function me(r,o,i,{submission:a,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){i||(B?.resolve(),B=null),o.response.headers.has("X-Remix-Revalidate")&&($=!0);let p=o.response.headers.get("Location");d(p,"Expected a Location header on the redirect Response"),p=Ge(p,new URL(r.url),l,e.history);let f=m(F.location,p,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(H(p)){const n=y(p,!0);e=n.origin!==t.location.origin||null==L(n.pathname,l)}if(e)return void(u?t.location.replace(p):t.location.assign(p))}I=null;let h=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:b}=F.navigation;!a&&!c&&g&&v&&b&&(a=xt(F.navigation));let w=a||c;if(ge.has(o.response.status)&&w&&yt(w.formMethod))await pe(h,f,{submission:{...w,formAction:p},preventScrollReset:s||W,enableViewTransition:i?U:void 0});else{let e=At(f,a);await pe(h,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||W,enableViewTransition:i?U:void 0})}}async function he(e,t,n,r,o){let i,a={};try{i=await Ue(b,e,t,n,o,r,!1)}catch(e){return n.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;if(!yt(e.method))for(let e of n){if("error"===i[e.route.id]?.type)break;i.hasOwnProperty(e.route.id)||F.loaderData.hasOwnProperty(e.route.id)||F.errors&&F.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(i[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(i))if(dt(r)){let o=r.result;a[t]={type:"redirect",response:Ye(o,e,t,n,l)}}else a[t]=await qe(r);return a}async function Ae(e,t,n,r,o){let i=he(n,r,e,o,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await he(e.request,e.path,e.matches,o,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:it(404,{pathname:e.path})}})})));return{loaderResults:await i,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function Oe(){$=!0,te.forEach(((e,t)=>{J.has(t)&&G.add(t),Re(t)}))}function Te(e,t,n={}){F.fetchers.set(e,t),ue({fetchers:new Map(F.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function De(e,t,n,r={}){let o=rt(F.matches,t);Ne(e),ue({errors:{[o.route.id]:n},fetchers:new Map(F.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function _e(e){return ie.set(e,(ie.get(e)||0)+1),ae.has(e)&&ae.delete(e),F.fetchers.get(e)||ye}function Ne(e){let t=F.fetchers.get(e);!J.has(e)||t&&"loading"===t.state&&Z.has(e)||Re(e),te.delete(e),Z.delete(e),ee.delete(e),ae.delete(e),G.delete(e),F.fetchers.delete(e)}function Re(e,t){let n=J.get(e);n&&(n.abort(t),J.delete(e))}function Ie(e){for(let t of e){let e=kt(_e(t).data);F.fetchers.set(t,e)}}function Le(){let e=[],t=!1;for(let n of ee){let r=F.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(ee.delete(n),e.push(n),t=!0)}return Ie(e),t}function Fe(e){let t=[];for(let[n,r]of Z)if(r<e){let e=F.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Re(n),Z.delete(n),t.push(n))}return Ie(t),t.length>0}function He(e){F.blockers.delete(e),se.delete(e)}function ze(e,t){let n=F.blockers.get(e)||be;d("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(F.blockers);r.set(e,t),ue({blockers:r})}function Be({currentLocation:e,nextLocation:t,historyAction:n}){if(0===se.size)return;se.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(se.entries()),[o,i]=r[r.length-1],a=F.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ve(e){let t=it(404,{pathname:e}),n=a||s,{matches:r,route:o}=ot(n);return{notFoundMatches:r,route:o,error:t}}function $e(e,t){if(T){return T(e,t.map((e=>E(e,F.loaderData))))||e.key}return e.key}function Ke(e,t){if(P){let n=$e(e,t),r=P[n];if("number"==typeof r)return r}return null}function Qe(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:j(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:j(n,r,l,!0)}}}return{active:!1,matches:null}}async function Xe(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||Ce(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=j(d,n,l,!0),!(m&&u.length<m.length&&Ze(u,m.slice(0,u.length))))return{type:"success",matches:f}}if(m||(m=j(d,n,l,!0)),!m||Ze(u,m))return{type:"success",matches:null};u=m}}function Ze(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return v={get basename(){return l},get future(){return x},get state(){return F},get routes(){return s},get window(){return t},initialize:function(){if(A=e.history.listen((({action:t,location:n,delta:r})=>{if(M)return M(),void(M=void 0);p(0===se.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:F.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{M=e}));return e.history.go(-1*r),ze(o,{state:"blocked",location:n,proceed(){ze(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(F.blockers);e.set(o,be),ue({blockers:e})}}),B?.resolve(),void(B=null)}return pe(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(xe);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,V);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(xe,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,V);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return F.initialized||pe("POP",F.location,{initialHydration:!0}),v},subscribe:function(e){return k.add(e),()=>k.delete(e)},enableScrollRestoration:function(e,t,n){if(P=e,C=t,T=n||null,!D&&F.navigation===ve){D=!0;let e=Ke(F.location,F.matches);null!=e&&ue({restoreScrollPosition:e})}return()=>{P=null,C=null,T=null}},navigate:async function t(n,r){if(B?.resolve(),B=null,"number"==typeof n){B||(B=St());let t=B.promise;return e.history.go(n),t}let o,i=ke(F.location,F.matches,l,n,r?.fromRouteId,r?.relative),{path:a,submission:c,error:s}=Se(!1,i,r);if(r?.unstable_mask){o={pathname:"",search:"",hash:"",..."string"==typeof r.unstable_mask?g(r.unstable_mask):{...F.location.unstable_mask,...r.unstable_mask}}}let u=F.location,d=m(u,a,r&&r.state,void 0,o);d={...d,...e.history.encodeLocation(d)};let p=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===p?f="REPLACE":!1===p||null!=c&&yt(c.formMethod)&&c.formAction===F.location.pathname+F.location.search&&(f="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=!0===(r&&r.flushSync),y=Be({currentLocation:u,nextLocation:d,historyAction:f});y?ze(y,{state:"blocked",location:d,proceed(){ze(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,r)},reset(){let e=new Map(F.blockers);e.set(y,be),ue({blockers:e})}}):await pe(f,d,{submission:c,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:v,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){Re(t);let p=!0===(u&&u.flushSync),f=a||s,m=ke(F.location,F.matches,l,o,n,u?.relative),h=S(f,m,l),g=Qe(h,f,m);if(g.active&&g.matches&&(h=g.matches),!h)return void De(t,n,it(404,{pathname:m}),{flushSync:p});let{path:v,submission:y,error:b}=Se(!0,m,u);if(b)return void De(t,n,b,{flushSync:p});let x=e.getContext?await e.getContext():new w,A=!0===(u&&u.preventScrollReset);y&&yt(y.formMethod)?await async function(t,n,o,u,p,f,m,h,g,v){Oe(),te.delete(t);let y=F.fetchers.get(t);Te(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,w=Je(e.history,o,b.signal,g);if(f){let e=await Xe(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void De(t,n,e.error,{flushSync:m});if(!e.matches)return void De(t,n,it(404,{pathname:o}),{flushSync:m});u=e.matches}let x=wt(u,o);if(!x.route.action&&!x.route.lazy){let e=it(405,{method:g.formMethod,pathname:o,routeId:n});return void De(t,n,e,{flushSync:m})}J.set(t,b);let A=K,O=We(i,c,w,o,u,x,r,p),k=await he(w,o,O,p,t),j=k[x.route.id];if(!j)for(let e of O)if(k[e.route.id]){j=k[e.route.id];break}if(w.signal.aborted)return void(J.get(t)===b&&J.delete(t));if(ae.has(t)){if(ft(j)||pt(j))return void Te(t,kt(void 0))}else{if(ft(j))return J.delete(t),Q>A?void Te(t,kt(void 0)):(ee.add(t),Te(t,Ot(g)),me(w,j,!1,{fetcherSubmission:g,preventScrollReset:h}));if(pt(j))return void De(t,n,j.error)}let E=F.navigation.location||F.location,P=Je(e.history,E,b.signal),T=a||s,C="idle"!==F.navigation.state?S(T,F.navigation.location,l):F.matches;d(C,"Didn't find any matches after fetcher action");let D=++K;Z.set(t,D);let _=Ot(g,j.data);F.fetchers.set(t,_);let{dsMatches:N,revalidatingFetchers:R}=je(P,p,i,c,e.history,F,C,g,E,r,!1,$,G,ae,te,ee,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,j],v);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=F.fetchers.get(t),r=Ot(void 0,n?n.data:void 0);F.fetchers.set(t,r),Re(t),e.controller&&J.set(t,e.controller)})),ue({fetchers:new Map(F.fetchers)});let M=()=>R.forEach((e=>Re(e.key)));b.signal.addEventListener("abort",M);let{loaderResults:L,fetcherResults:H}=await Ae(N,R,P,E,p);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",M),Z.delete(t),J.delete(t),R.forEach((e=>J.delete(e.key))),F.fetchers.has(t)){let e=kt(j.data);F.fetchers.set(t,e)}let B=at(L);if(B)return me(P,B.result,!1,{preventScrollReset:h});if(B=at(H),B)return ee.add(B.key),me(P,B.result,!1,{preventScrollReset:h});let{loaderData:W,errors:U}=et(F,C,L,void 0,R,H);Fe(D),"loading"===F.navigation.state&&D>Q?(d(z,"Expected pending action"),I&&I.abort(),de(F.navigation.location,{matches:C,loaderData:W,errors:U,fetchers:new Map(F.fetchers)})):(ue({errors:U,loaderData:tt(F.loaderData,W,C,U),fetchers:new Map(F.fetchers)}),$=!1)}(t,n,v,h,x,g.active,p,A,y,u&&u.unstable_defaultShouldRevalidate):(te.set(t,{routeId:n,path:v}),await async function(t,n,o,a,s,l,u,d,p){let f=F.fetchers.get(t);Te(t,Ot(p,f?f.data:void 0),{flushSync:u});let m=new AbortController,h=Je(e.history,o,m.signal);if(l){let e=await Xe(a,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void De(t,n,e.error,{flushSync:u});if(!e.matches)return void De(t,n,it(404,{pathname:o}),{flushSync:u});a=e.matches}let g=wt(a,o);J.set(t,m);let v=K,y=We(i,c,h,o,a,g,r,s),b=await he(h,o,y,s,t),w=b[g.route.id];J.get(t)===m&&J.delete(t);if(h.signal.aborted)return;if(ae.has(t))return void Te(t,kt(void 0));if(ft(w))return Q>v?void Te(t,kt(void 0)):(ee.add(t),void await me(h,w,!1,{preventScrollReset:d}));if(pt(w))return void De(t,n,w.error);Te(t,kt(w.data))}(t,n,v,h,x,g.active,p,A,y))},revalidate:function(){le||(le=St()),Oe(),ue({revalidation:"loading"});let e=le.promise;return"submitting"===F.navigation.state?e:"idle"===F.navigation.state?(pe(F.historyAction,F.location,{startUninterruptedRevalidation:!0}),e):(pe(z||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation,enableViewTransition:!0===U}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:_e,resetFetcher:function(e,t){Re(e,t?.reason),Te(e,kt(null))},deleteFetcher:function(e){let t=(ie.get(e)||0)-1;t<=0?(ie.delete(e),ae.add(e)):ie.set(e,t),ue({fetchers:new Map(F.fetchers)})},dispose:function(){A&&A(),q&&q(),k.clear(),I&&I.abort(),F.fetchers.forEach(((e,t)=>Ne(t))),F.blockers.forEach(((e,t)=>He(t)))},getBlocker:function(e,t){let n=F.blockers.get(e)||be;return se.get(e)!==t&&se.set(e,t),n},deleteBlocker:He,patchRoutes:function(e,t,n=!1){let r=null==a;Ce(e,t,a||s,c,i,n),r&&(s=[...s],ue({}))},_internalFetchControllers:J,_internalSetRoutes:function(e){c={},a=O(e,i,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ue(e)}},e.unstable_instrumentations&&(v=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[ne]??e.navigate,r=oe(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?h(n):".",...ce(e,r??{})}}));r&&(r[ne]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[ne]??e.fetch,r=oe(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...ce(e,o??{})}}));r&&(r[ne]=t,e.fetch=r)}return e}(v,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),v}function ke(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=V(r||".",U(a),L(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=bt(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:Y([e,t])}({basename:n,pathname:s.pathname})),h(s)}function Se(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&&!vt(n.formMethod))return{path:t,error:it(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:it(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),c=ct(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!yt(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(!yt(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(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Qe(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Qe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Xe(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Xe(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(yt(s.formMethod))return{path:t,submission:s};let l=g(t);return e&&l.search&&bt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:h(l),submission:s}}function je(e,t,n,r,o,i,a,c,s,l,u,d,p,f,m,h,g,v,y,b,w){let x,A=b?pt(b[1])?b[1].error:b[1].data:void 0,O=o.createURL(i.location),k=o.createURL(s);if(u&&i.errors){let e=Object.keys(i.errors)[0];x=a.findIndex((t=>t.route.id===e))}else if(b&&pt(b[1])){let e=b[0];x=a.findIndex((t=>t.route.id===e))-1}let j=b?b[1].statusCode:void 0,E=j&&j>=400,P={currentUrl:O,currentParams:i.matches[0]?.params||{},nextUrl:k,nextParams:a[0].params,...c,actionResult:A,actionStatus:j},T=Z(a),C=a.map(((o,a)=>{let{route:c}=o,p=null;if(null!=x&&a>x)p=!1;else if(c.lazy)p=!0;else if(Ee(c))if(u){let{shouldLoad:e}=Pe(c,i.loaderData,i.errors);p=e}else(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)&&(p=!0);else p=!1;if(null!==p)return Be(n,r,e,s,T,o,l,t,p);let f=!1;"boolean"==typeof w?f=w:E?f=!1:(d||O.pathname+O.search===k.pathname+k.search||O.search!==k.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))&&(f=!0);let m={...P,defaultShouldRevalidate:f},h=Te(o,m);return Be(n,r,e,s,T,o,l,t,h,m,w)})),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 x=wt(b,e.path),A=new AbortController,O=Je(o,e.path,A.signal),k=null;if(p.has(c))p.delete(c),k=We(n,r,O,e.path,b,x,l,t);else if(m)d&&(k=We(n,r,O,e.path,b,x,l,t));else{let o;o="boolean"==typeof w?w:!E&&d;let i={...P,defaultShouldRevalidate:o};Te(x,i)&&(k=We(n,r,O,e.path,b,x,l,t,i))}k&&D.push({key:c,routeId:e.routeId,path:e.path,matches:k,match:x,request:O,controller:A})})),{dsMatches:C,revalidatingFetchers:D}}function Ee(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Pe(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Ee(e))return{shouldLoad:!1,renderFallback:!1};let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!r};let i=!r&&!o;return{shouldLoad:i,renderFallback:i}}function Te(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Ce(e,t,n,r,o,i){let a;if(e){let t=r[e];d(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=>De(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 De(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=>De(e,t)))))??!1))}var _e=new WeakMap,Ne=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(d(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=_e.get(o);a||(a={},_e.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)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(n)p(!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},Re=new WeakMap;async function Ie(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 Me(e){return e.matches.some((e=>e.route.middleware))?Le(e,(()=>Ie(e))):Ie(e)}function Le(e,t){return Fe(e,t,(e=>{if(gt(e))throw e;return e}),lt,(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=rt(r,r[o].route.id).route.id;return Promise.resolve({[i]:{type:"error",result:t}})}}))}async function Fe(e,t,n,r,o){let{matches:i,...a}=e,c=i.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await He(a,c,t,n,r,o)}async function He(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 He(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 ze(e,t,n,r,o){let i=Ne({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),a=function(e,t,n,r,o){let i=n[e.id];if(d(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Re.get(i);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{d("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,A.has(o)),c=void 0!==i[e]&&"hasErrorBoundary"!==e;a?p(!a,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?p(!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 Re.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=Ne({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,yt(n.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function Be(e,t,n,r,o,i,a,c,s,l=null,u){let d=!1,p=ze(e,t,n,i,a);return{...i,_lazyPromises:p,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(d=!0,l?Te(i,"boolean"==typeof u?{...l,defaultShouldRevalidate:u}:"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:a,middleware:l}=i.route,u=d||s||e&&!yt(n.method)&&(t||a),f=l&&l.length>0&&!a&&!t;return!u||!yt(n.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,unstable_pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:i,handlerOverride:a,scopedContext:c}){let s,l,u=yt(e.method),d=u?"action":"loader",p=o=>{let i,s=new Promise(((e,t)=>i=t));l=()=>i(),e.signal.addEventListener("abort",l);let u=i=>"function"!=typeof o?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)):o({request:e,unstable_url:Ke(e,t),unstable_pattern:n,params:r.params,context:c},...void 0!==i?[i]:[]),p=(async()=>{try{return{type:"data",result:await(a?a((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([p,s])};try{let t=u?r.route.action:r.route.loader;if(o||i)if(t){let e,[n]=await Promise.all([p(t).catch((t=>{e=t})),o,i]);if(void 0!==e)throw e;s=n}else{await o;let t=u?r.route.action:r.route.loader;if(!t){if("action"===d){let t=new URL(e.url),n=t.pathname+t.search;throw it(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([p(t),i])}else{if(!t){let t=new URL(e.url);throw it(404,{pathname:t.pathname+t.search})}s=await p(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:n,path:r,unstable_pattern:o,match:i,lazyHandlerPromise:p?.handler,lazyRoutePromise:p?.route,handlerOverride:e,scopedContext:c})}}}function We(e,t,n,r,o,i,a,c,s=null){return o.map((l=>l.route.id!==i.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:ze(e,t,n,l,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Be(e,t,n,r,Z(o),l,a,c,!0,s)))}async function Ue(e,t,n,r,o,i,a){r.some((e=>e._lazyPromises?.middleware))&&await Promise.all(r.map((e=>e._lazyPromises?.middleware)));let c={request:t,unstable_url:Ke(t,n),unstable_pattern:Z(r),params:r[0].params,context:i,matches:r},s=a?()=>{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=c;return Le(t,(()=>e({...t,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},l=await e({...c,fetcherKey:o,runClientMiddleware:s});try{await Promise.all(r.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return l}async function Ve(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 qe(e){let{result:t,type:n}=e;if(ht(t)){let e;try{e=await Ve(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new Q(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?mt(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:st(t),statusCode:X(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:X(t)?t.status:void 0}:mt(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 Ye(e,t,n,r,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!H(i)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=ke(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}var $e=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Ge(e,t,n,r){if(H(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if($e.includes(o.protocol))throw new Error("Invalid redirect location");let i=null!=L(o.pathname,n);if(o.origin===t.origin&&i)return q(o.pathname)+o.search+o.hash}try{let t=r.createURL(e);if($e.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Je(e,t,n,r){let o=e.createURL(ct(t)).toString(),i={signal:n};if(r&&yt(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=Qe(r.formData):i.body=r.formData}return new Request(o,i)}function Ke(e,t){let n=new URL(e.url),r="string"==typeof t?g(t):t;if(n.pathname=r.pathname||"/",r.search){let e=new URLSearchParams(r.search),t=e.getAll("index");e.delete("index");for(let n of t.filter(Boolean))e.append("index",n);n.search=e.size?`?${e.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function Qe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Xe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ze(e,t,n,r=!1,o=!1){let i,a={},c=null,s=!1,l={},u=n&&pt(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(d(!ft(f),"Cannot handle redirect results in processLoaderData"),pt(f)){let t=f.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[p]=t;else{let n=rt(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(a[p]=Ae),s||(s=!0,i=X(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!==u&&n&&(c={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:c,statusCode:i||200,loaderHeaders:l}}function et(e,t,n,r,o,i){let{loaderData:a,errors:c}=Ze(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(d(a,"Did not find corresponding fetcher result"),pt(a)){let t=rt(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(ft(a))d(!1,"Unhandled fetcher revalidation redirect");else{let t=kt(a.data);e.fetchers.set(n,t)}})),{loaderData:a,errors:c}}function tt(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==Ae)).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 nt(e){return e?pt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function rt(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 ot(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 it(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 Q(e||500,a,new Error(c),!0)}function at(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(ft(r))return{key:n,result:r}}}function ct(e){return h({..."string"==typeof e?g(e):e,hash:""})}function st(e){return new Q(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function lt(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&ut(t)))}function ut(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function dt(e){return ht(e.result)&&he.has(e.result.status)}function pt(e){return"error"===e.type}function ft(e){return"redirect"===(e&&e.type)}function mt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function ht(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function gt(e){return ht(e)&&(t=e.status,he.has(t))&&e.headers.has("Location");var t}function vt(e){return me.has(e.toUpperCase())}function yt(e){return pe.has(e.toUpperCase())}function bt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function wt(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&bt(n||""))return e[e.length-1];let r=W(e);return r[r.length-1]}function xt(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 At(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 Ot(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 kt(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 St(){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 jt=i.createContext(null);jt.displayName="DataRouter";var Et=i.createContext(null);Et.displayName="DataRouterState";var Pt=i.createContext(!1);function Tt(){return i.useContext(Pt)}var Ct=i.createContext({isTransitioning:!1});Ct.displayName="ViewTransition";var Dt=i.createContext(new Map);Dt.displayName="Fetchers";var _t=i.createContext(null);_t.displayName="Await";var Nt=i.createContext(null);Nt.displayName="Navigation";var Rt=i.createContext(null);Rt.displayName="Location";var It=i.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var Mt=i.createContext(null);Mt.displayName="RouteError";var Lt="REACT_ROUTER_ERROR";function Ft(){return null!=i.useContext(Rt)}function Ht(){return d(Ft(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(Rt).location}var zt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Bt(e){i.useContext(Nt).static||i.useLayoutEffect(e)}function Wt(){let{isDataRoute:e}=i.useContext(It);return e?function(){let{router:e}=en("useNavigate"),t=nn("useNavigate"),n=i.useRef(!1);return Bt((()=>{n.current=!0})),i.useCallback((async(r,o={})=>{p(n.current,zt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(Ft(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(jt),{basename:t,navigator:n}=i.useContext(Nt),{matches:r}=i.useContext(It),{pathname:o}=Ht(),a=JSON.stringify(U(r)),c=i.useRef(!1);return Bt((()=>{c.current=!0})),i.useCallback(((r,i={})=>{if(p(c.current,zt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:Y([t,s.pathname])),(i.replace?n.replace:n.push)(s,i.state,i)}),[t,n,a,o,e])}()}i.createContext(null);function Ut(){let{matches:e}=i.useContext(It),t=e[e.length-1];return t?t.params:{}}function Vt(e,{relative:t}={}){let{matches:n}=i.useContext(It),{pathname:r}=Ht(),o=JSON.stringify(U(n));return i.useMemo((()=>V(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function qt(e,t,n){d(Ft(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=i.useContext(Nt),{matches:o}=i.useContext(It),a=o[o.length-1],c=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;{let e=u&&u.path||"";sn(s,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (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 f,m=Ht();if(t){let e="string"==typeof t?g(t):t;d("/"===l||e.pathname?.startsWith(l),`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 "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=m;let h=f.pathname||"/",v=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=S(e,{pathname:v});p(u||null!=y,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),p(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.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 b=Xt(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:Y([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Y([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),o,n);return t&&b?i.createElement(Rt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...f},navigationType:"POP"}},b):b}function Yt(){let e=rn(),t=X(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 $t=i.createElement(Yt,null),Gt=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(`${Lt}: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 Q(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?i.createElement(It.Provider,{value:this.props.routeContext},i.createElement(Mt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(Kt,{error:e},t):t}};Gt.contextType=Pt;var Jt=new WeakMap;function Kt({children:e,error:t}){let{basename:n}=i.useContext(Nt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Lt}: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=Jt.get(t);if(r)throw r;let o=te(e.location,n);if(ee&&!Jt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Jt.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 Qt({routeContext:e,match:t,children:n}){let r=i.useContext(jt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(It.Provider,{value:e},n)}function Xt(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,a=r?.errors;if(null!=a){let e=o.findIndex((e=>e.route.id&&void 0!==a?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,s=-1;if(n&&r){c=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:i}=r,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!i||void 0===i[t.route.id]);if(t.route.lazy||a){n.isStatic&&(c=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Z(r.matches),errorInfo:t})}:void 0;return o.reduceRight(((e,n,l)=>{let d,p=!1,f=null,m=null;r&&(d=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||$t,c&&(s<0&&0===l?(sn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===l&&(p=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,l+1)),g=()=>{let t;return t=d?f:p?m:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(Qt,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?i.createElement(Gt,{location:r.location,revalidation:r.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()}),null)}function Zt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function en(e){let t=i.useContext(jt);return d(t,Zt(e)),t}function tn(e){let t=i.useContext(Et);return d(t,Zt(e)),t}function nn(e){let t=function(e){let t=i.useContext(It);return d(t,Zt(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rn(){let e=i.useContext(Mt),t=tn("useRouteError"),n=nn("useRouteError");return void 0!==e?e:t.errors?.[n]}var on=0;function an(e){let{router:t,basename:n}=en("useBlocker"),r=tn("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:L(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:L(o.pathname,n)||o.pathname},historyAction:i})}),[n,e]);return i.useEffect((()=>{let e=String(++on);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):be}var cn={};function sn(e,t,n){t||cn[e]||(cn[e]=!0,p(!1,n))}var ln={};function un(e,t){e||ln[t]||(ln[t]=!0,console.warn(t))}var dn=(r||(r=n.t(i,2))).useOptimistic,pn=()=>{};function fn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&p(!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&&p(!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&&p(!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 mn=["HydrateFallback","hydrateFallbackElement"];var hn=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 gn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=Tt();r=o||r;let[a,c]=i.useState(e.state),[s,l]=(u=a,dn?dn(u):[u,pn]);var u;let[d,p]=i.useState(),[f,m]=i.useState({isTransitioning:!1}),[h,g]=i.useState(),[v,y]=i.useState(),[b,w]=i.useState(),x=i.useRef(new Map),A=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:Z(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),a.forEach((e=>x.current.delete(e))),un(!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(un(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(),w({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=>vn(e,o))),c(o)}))}),[e.window,t,v,h,r,l,n]);i.useLayoutEffect((()=>e.subscribe(A)),[e,A]);let O=s.initialized;i.useLayoutEffect((()=>{!O&&e.state.initialized&&A(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})}),[O,A,e.state]),i.useEffect((()=>{f.isTransitioning&&!f.flushSync&&g(new hn)}),[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=>vn(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}),w(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||"/",j=i.useMemo((()=>({router:e,navigator:k,static:!1,basename:S,onError:n})),[e,k,S,n]);return i.createElement(i.Fragment,null,i.createElement(jt.Provider,{value:j},i.createElement(Et.Provider,{value:s},i.createElement(Dt.Provider,{value:x.current},i.createElement(Ct.Provider,{value:f},i.createElement(An,{basename:S,location:s.location,navigationType:s.historyAction,navigator:k,unstable_useTransitions:r},i.createElement(yn,{routes:e.routes,future:e.future,state:s,isStatic:!1,onError:n})))))),null)}function vn(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 yn=i.memo(bn);function bn({routes:e,future:t,state:n,isStatic:r,onError:o}){return qt(e,void 0,{state:n,isStatic:r,onError:o,future:t})}function wn({to:e,replace:t,state:n,relative:r}){d(Ft(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(Nt);p(!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(It),{pathname:c}=Ht(),s=Wt(),l=V(e,U(a),c,"path"===r),u=JSON.stringify(l);return i.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function xn(e){d(!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 An({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1,unstable_useTransitions:c}){d(!Ft(),"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=g(n));let{pathname:u="/",search:f="",hash:m="",state:h=null,key:v="default",unstable_mask:y}=n,b=i.useMemo((()=>{let e=L(u,s);return null==e?null:{location:{pathname:e,search:f,hash:m,state:h,key:v,unstable_mask:y},navigationType:r}}),[s,u,f,m,h,v,r,y]);return p(null!=b,`<Router basename="${s}"> is not able to match the URL "${u}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:i.createElement(Nt.Provider,{value:l},i.createElement(Rt.Provider,{children:t,value:b}))}function On({children:e,location:t}){return qt(kn(e),t)}i.Component;function kn(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,kn(e.props.children,o));d(e.type===xn,`[${"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>`),d(!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=kn(e.props.children,o)),n.push(a)})),n}var Sn="get",jn="application/x-www-form-urlencoded";function En(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Pn=null;var Tn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Cn(e){return null==e||Tn.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jn}"`),null)}function Dn(e,t){let n,r,o,i,a;if(En(c=e)&&"form"===c.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?L(a,t):null,n=e.getAttribute("method")||Sn,o=Cn(e.getAttribute("enctype"))||jn,i=new FormData(e)}else if(function(e){return En(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return En(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?L(c,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Sn,o=Cn(e.getAttribute("formenctype"))||Cn(a.getAttribute("enctype"))||jn,i=new FormData(a,e),!function(){if(null===Pn)try{new FormData(document.createElement("form"),0),Pn=!1}catch(e){Pn=!0}return Pn}()){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(En(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Sn,r=null,o=jn,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 _n(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Nn(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&&"/"===L(o.pathname,t)?o.pathname=`${$(t)}/_root.${r}`:o.pathname=`${$(o.pathname)}.${r}`,o}async function Rn(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 In(e){return null!=e&&"string"==typeof e.page}function Mn(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 Ln(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 Fn(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 Hn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!In(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 zn(e,t){return"lazy"===e.mode&&!0===t}function Bn(){let e=i.useContext(jt);return _n(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Wn(){let e=i.useContext(Et);return _n(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Un=i.createContext(void 0);function Vn(){let e=i.useContext(Un);return _n(e,"You must render this element inside a <HydratedRouter> element"),e}function qn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Yn(e,t,n){if(n&&!Qn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Un.displayName="FrameworkContext";function $n({page:e,...t}){let n=Tt(),{router:r}=Bn(),o=i.useMemo((()=>S(r.routes,e,r.basename)),[r.routes,e,r.basename]);return o?n?i.createElement(Jn,{page:e,matches:o,...t}):i.createElement(Kn,{page:e,matches:o,...t}):null}function Gn(e){let{manifest:t,routeModules:n}=Vn(),[r,o]=i.useState([]);return i.useEffect((()=>{let r=!1;return async function(e,t,n){return Hn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Rn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Mn).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 Jn({page:e,matches:t,...n}){let r=Ht(),{future:o}=Vn(),{basename:a}=Bn(),c=i.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Nn(e,a,o.unstable_trailingSlashAwareDataRequests,"rsc"),i=!1,c=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?i=!0:c.push(e.route.id);return i&&c.length>0&&n.searchParams.set("_routes",c.join(",")),[n.pathname+n.search]}),[a,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return i.createElement(i.Fragment,null,c.map((e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))))}function Kn({page:e,matches:t,...n}){let r=Ht(),{future:o,manifest:a,routeModules:c}=Vn(),{basename:s}=Bn(),{loaderData:l,matches:u}=Wn(),d=i.useMemo((()=>Ln(e,t,u,a,r,"data")),[e,t,u,a,r]),p=i.useMemo((()=>Ln(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=Nn(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((()=>Fn(p,a)),[p,a]),h=Gn(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 Qn=!1;function Xn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:a,ssr:c}=Vn(),{router:s,static:l,staticContext:u}=Bn(),{matches:d}=Wn(),p=Tt(),f=zn(a,c);o&&(o.didRenderScripts=!0);let m=Yn(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];_n(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=Qn||p?[]:(t.entry.imports.concat(Fn(m,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let y="object"==typeof t.sri?t.sri:{};return un(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Qn||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 Zn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}i.Component;function er({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(X(e))return i.createElement(tr,{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(tr,{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 tr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Vn();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(Xn,null):null)))}var nr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{nr&&(window.__reactRouterVersion="7.14.1")}catch(e){}function rr(e,t){return Oe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||or(),routes:e,mapRouteProperties:fn,hydrationRouteProperties:mn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function or(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ir(e.errors)}),e}function ir(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 Q(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 ar=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=i.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:a,unstable_mask:c,state:s,target:l,to:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m,...g},v){let{basename:y,navigator:b,unstable_useTransitions:w}=i.useContext(Nt),x="string"==typeof u&&ar.test(u),A=te(u,y),O=function(e,{relative:t}={}){d(Ft(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=i.useContext(Nt),{hash:o,pathname:a,search:c}=Vt(e,{relative:t}),s=a;return"/"!==n&&(s="/"===a?n:Y([n,a])),r.createHref({pathname:s,search:c,hash:o})}(u=A.to,{relative:r}),k=Ht(),S=null;if(c){let e=V(c,[],k.unstable_mask?k.unstable_mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:Y([y,e.pathname])),S=b.createHref(e)}let[j,E,P]=function(e,t){let n=i.useContext(Un),[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:qn(s,m),onBlur:qn(l,h),onMouseEnter:qn(u,m),onMouseLeave:qn(d,h),onTouchStart:qn(p,m)}]:[!1,f,{}]}(n,g),T=function(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:a,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let d=Wt(),p=Ht(),f=Vt(e,{relative:c});return i.useCallback((m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:h(p)===h(f),g=()=>d(e,{replace:t,unstable_mask:r,state:o,preventScrollReset:a,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l});u?i.startTransition((()=>g())):g()}}),[p,d,f,n,r,o,t,e,a,c,s,l,u])}(u,{replace:a,unstable_mask:c,state:s,target:l,preventScrollReset:p,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:w});let C=!(A.isExternal||o),D=i.createElement("a",{...g,...P,href:(C?S:void 0)||A.absoluteURL||O,onClick:C?function(t){e&&e(t),t.defaultPrevented||T(t)}:e,ref:Zn(v,E),target:l,"data-discover":x||"render"!==t?void 0:"true"});return j&&!x?i.createElement(i.Fragment,null,D,i.createElement($n,{page:O})):D}));cr.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},u){let p=Vt(a,{relative:l.relative}),f=Ht(),m=i.useContext(Et),{navigator:h,basename:g}=i.useContext(Nt),v=null!=m&&function(e,{relative:t}={}){let n=i.useContext(Ct);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ur("useViewTransitionState"),o=Vt(e,{relative:t});if(!n.isTransitioning)return!1;let a=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=R(o.pathname,c)||null!=R(o.pathname,a)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=L(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let A,O=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),k=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:O,isPending:k,isTransitioning:v},j=O?e:void 0;A="function"==typeof n?n(S):[n,O?"active":null,k?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof o?o(S):o;return i.createElement(cr,{...l,"aria-current":j,className:A,ref:u,style:E,to:a,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var sr=i.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:c=Sn,action:s,onSubmit:l,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m,...g},v)=>{let{unstable_useTransitions:y}=i.useContext(Nt),b=pr(),w=function(e,{relative:t}={}){let{basename:n}=i.useContext(Nt),r=i.useContext(It);d(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...Vt(e||".",{relative:t})},c=Ht();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:Y([n,a.pathname]));return h(a)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",A="string"==typeof s&&ar.test(s);return i.createElement("form",{ref:v,method:x,action:w,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||c,d=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:a,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m});y&&!1!==n?i.startTransition((()=>d())):d()},...g,"data-discover":A||"render"!==e?void 0:"true"})}));function lr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ur(e){let t=i.useContext(jt);return d(t,lr(e)),t}sr.displayName="Form";var dr=0;function pr(){let{router:e}=ur("useSubmit"),{basename:t}=i.useContext(Nt),n=nn("useRouteId"),r=e.fetch,o=e.navigate;return i.useCallback((async(e,i={})=>{let{action:a,method:c,encType:s,formData:l,body:u}=Dn(e,t);if(!1===i.navigate){let e=i.fetcherKey||`__${String(++dr)}__`;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(50766),o=n(4883),i=n(81845);function a(e){return o.createElement(r.pg,{flushSync:i.flushSync,...e})}(0,r.q6)()},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:()=>w});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,w=u.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,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 w(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)}}},21396(e,t,n){"use strict";n.d(t,{LU:()=>s,MS:()=>r,Sv:()=>u,XZ:()=>c,YK:()=>a,j:()=>i,vd:()=>o,yE:()=>l});var r="-ms-",o="-moz-",i="-webkit-",a="comm",c="rule",s="decl",l="@import",u="@keyframes"},53473(e,t,n){"use strict";n.d(t,{MY:()=>i,r1:()=>o});var r=n(18061);function o(e){var t=(0,r.FK)(e);return function(n,r,o,i){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,i)||"";return a}}function i(e){return function(t){t.root||(t=t.return)&&e(t)}}},71458(e,t,n){"use strict";n.d(t,{wE:()=>a});var r=n(21396),o=n(18061),i=n(19552);function a(e){return(0,i.VF)(c("",null,null,null,[""],e=(0,i.c4)(e),0,[0],e))}function c(e,t,n,r,a,d,p,f,m){for(var h=0,g=0,v=p,y=0,b=0,w=0,x=1,A=1,O=1,k=0,S="",j=a,E=d,P=r,T=S;A;)switch(w=k,k=(0,i.K2)()){case 40:if(108!=w&&58==(0,o.wN)(T,v-1)){-1!=(0,o.K5)(T+=(0,o.HC)((0,i.Tb)(k),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:T+=(0,i.Tb)(k);break;case 9:case 10:case 13:case 32:T+=(0,i.mw)(w);break;case 92:T+=(0,i.Nc)((0,i.OW)()-1,7);continue;case 47:switch((0,i.se)()){case 42:case 47:(0,o.BC)(l((0,i.nf)((0,i.K2)(),(0,i.OW)()),t,n),m);break;default:T+="/"}break;case 123*x:f[h++]=(0,o.b2)(T)*O;case 125*x:case 59:case 0:switch(k){case 0:case 125:A=0;case 59+g:b>0&&(0,o.b2)(T)-v&&(0,o.BC)(b>32?u(T+";",r,n,v-1):u((0,o.HC)(T," ","")+";",r,n,v-2),m);break;case 59:T+=";";default:if((0,o.BC)(P=s(T,t,n,h,g,a,f,S,j=[],E=[],v),d),123===k)if(0===g)c(T,t,P,P,j,d,v,f,E);else switch(99===y&&110===(0,o.wN)(T,3)?100:y){case 100:case 109:case 115:c(e,P,P,r&&(0,o.BC)(s(e,P,P,0,0,a,f,S,a,j=[],v),E),a,E,v,f,r?j:E);break;default:c(T,P,P,P,[""],E,0,f,E)}}h=g=b=0,x=O=1,S=T="",v=p;break;case 58:v=1+(0,o.b2)(T),b=w;default:if(x<1)if(123==k)--x;else if(125==k&&0==x++&&125==(0,i.YL)())continue;switch(T+=(0,o.HT)(k),k*x){case 38:O=g>0?1:(T+="\f",-1);break;case 44:f[h++]=((0,o.b2)(T)-1)*O,O=1;break;case 64:45===(0,i.se)()&&(T+=(0,i.Tb)((0,i.K2)())),y=(0,i.se)(),g=v=(0,o.b2)(S=T+=(0,i.Cv)((0,i.OW)())),k++;break;case 45:45===w&&2==(0,o.b2)(T)&&(x=0)}}return d}function s(e,t,n,a,c,s,l,u,d,p,f){for(var m=c-1,h=0===c?s:[""],g=(0,o.FK)(h),v=0,y=0,b=0;v<a;++v)for(var w=0,x=(0,o.c1)(e,m+1,m=(0,o.tn)(y=l[v])),A=e;w<g;++w)(A=(0,o.Bq)(y>0?h[w]+" "+x:(0,o.HC)(x,/&\f/g,h[w])))&&(d[b++]=A);return(0,i.rH)(e,t,n,0===c?r.XZ:u,d,p,f)}function l(e,t,n){return(0,i.rH)(e,t,n,r.YK,(0,o.HT)((0,i.Tp)()),(0,o.c1)(e,2,-2),0)}function u(e,t,n,a){return(0,i.rH)(e,t,n,r.LU,(0,o.c1)(e,0,a),(0,o.c1)(e,a+1,-1),a)}},3485(e,t,n){"use strict";n.d(t,{A:()=>a,l:()=>i});var r=n(21396),o=n(18061);function i(e,t){for(var n="",r=(0,o.FK)(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function a(e,t,n,a){switch(e.type){case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+i(e.children,a)+"}";case r.XZ:e.value=e.props.join(",")}return(0,o.b2)(n=i(e.children,a))?e.return=e.value+"{"+n+"}":""}},19552(e,t,n){"use strict";n.d(t,{C:()=>d,Cv:()=>j,G1:()=>c,K2:()=>m,Nc:()=>O,OW:()=>g,Sh:()=>y,Tb:()=>x,Tp:()=>p,VF:()=>w,YL:()=>f,c4:()=>b,di:()=>v,mw:()=>A,nf:()=>S,rH:()=>u,se:()=>h});var r=n(18061),o=1,i=1,a=0,c=0,s=0,l="";function u(e,t,n,r,a,c,s){return{value:e,root:t,parent:n,type:r,props:a,children:c,line:o,column:i,length:s,return:""}}function d(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return s}function f(){return s=c>0?(0,r.wN)(l,--c):0,i--,10===s&&(i=1,o--),s}function m(){return s=c<a?(0,r.wN)(l,c++):0,i++,10===s&&(i=1,o++),s}function h(){return(0,r.wN)(l,c)}function g(){return c}function v(e,t){return(0,r.c1)(l,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return o=i=1,a=(0,r.b2)(l=e),c=0,[]}function w(e){return l="",e}function x(e){return(0,r.Bq)(v(c-1,k(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(s=h())&&s<33;)m();return y(e)>2||y(s)>3?"":" "}function O(e,t){for(;--t&&m()&&!(s<48||s>102||s>57&&s<65||s>70&&s<97););return v(e,g()+(t<6&&32==h()&&32==m()))}function k(e){for(;m();)switch(s){case e:return c;case 34:case 39:34!==e&&39!==e&&k(s);break;case 40:41===e&&k(e);break;case 92:m()}return c}function S(e,t){for(;m()&&e+s!==57&&(e+s!==84||47!==h()););return"/*"+v(t,c-1)+"*"+(0,r.HT)(47===e?e:m())}function j(e){for(;!y(h());)m();return v(e,c)}},18061(e,t,n){"use strict";n.d(t,{BC:()=>h,Bq:()=>c,FK:()=>m,HC:()=>l,HT:()=>o,K5:()=>u,YW:()=>s,b2:()=>f,c1:()=>p,kg:()=>g,kp:()=>i,tW:()=>a,tn:()=>r,wN:()=>d});var r=Math.abs,o=String.fromCharCode,i=Object.assign;function a(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function c(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function f(e){return e.length}function m(e){return e.length}function h(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},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:"89f46bddce41b20b6a7f",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:"11b87af83e97e66991f3",11239:"664b58de88949602eab7",11281:"6839e1785eea6fa62fd4",11788:"3c8d4fb49b0605e4a42e",11842:"a30cf0685f7c94646052",12987:"b8d330440b27bf34bba0",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:"e3054ead996d5efdc489",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",26335:"5a923ec8cde07c75f4ec",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:"cfe039b5f5734c8e12c4",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:"deac8ba759d513bbd789",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:"0f896ccae0b4dec508fc",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:"369d118c3e04dd1b098e",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:"92ea465ba5ea32fa7c62",71496:"0ae5a9f9d3631024323d",71657:"0dd8cdb91628eeb6024f",72246:"70e526c1393da5f87daa",72283:"3cea797f38ce5d1b52ab",72376:"96dce911c3388994b8dd",72456:"8c0bcd6874db2417e173",72496:"9ae179b5e7264e7b40e7",72823:"0698ec372c10b97b0ccc",72887:"b4a4f8449613decb11e3",72969:"ad3a7c734d0a6a2ff181",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:"8defc43dff411be0246d",84506:"ede88c0a261e89471a5b",84556:"588b491efef6d6127114",84567:"a01e2975130cbf96047b",84625:"ecaf98bf9b41a3ff9dcf",85085:"9e1a0c0ca176b1d94b5b",85477:"5f62658929abfabe6b45",85481:"8d48215f13377e1f4d60",85749:"76359fa109906f552d50",86006:"2d3afc8146a0e2e17612",86187:"05fd1ef8578aa03aa44e",86275:"74cd8c9d25d9c0a3be4d",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(73896);e.A.registerAppInRegistry(t.yA.name,t.yA.init)})(),l})()));
|
|
62
|
+
*/function l(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){return v((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{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:h(t))}),(function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function h({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 g(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 v(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,c="POP",u=null,d=p();function p(){return(a.state||{idx:null}).idx}function h(){c="POP";let e=p(),t=null==e?null:e-d;d=e,u&&u({action:c,location:v.location,delta:t})}function g(e){return y(e)}null==d&&(d=0,a.replaceState({...a.state,idx:d},""));let v={get action(){return c},get location(){return e(o,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(s,h),u=e,()=>{o.removeEventListener(s,h),u=null}},createHref:e=>t(o,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=l(e)?e:m(v.location,e,t);n&&n(r,e),d=p()+1;let s=f(r,d),h=v.createHref(r.unstable_mask||r);try{a.pushState(s,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}i&&u&&u({action:c,location:v.location,delta:1})},replace:function(e,t){c="REPLACE";let r=l(e)?e:m(v.location,e,t);n&&n(r,e),d=p();let o=f(r,d),s=v.createHref(r.unstable_mask||r);a.replaceState(o,"",s),i&&u&&u({action:c,location:v.location,delta:0})},go:e=>a.go(e)};return v}function y(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),d(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function b(e){return{defaultValue:e}}var w=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 A=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(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(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 j(e,t,n,!1)}function j(e,t,n,r){let o=L(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let i=P(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=M(o);a=N(i[e],t,r)}return a}function E(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 P(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;d(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=Y([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),P(e.children,t,u,l,a)),(null!=e.path||e.index)&&t.push({path:l,score:_(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of T(e.path))i(e,t,!0,n);else i(e,t)})),t}function T(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=T(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 C=/^:[\w-]+$/,D=e=>"*"===e;function _(e,t){let n=e.split("/"),r=n.length;return n.some(D)&&(r+=-2),t&&(r+=2),n.filter((e=>!D(e))).reduce(((e,t)=>e+(C.test(t)?3:""===t?1:10)),r)}function N(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=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:Y([i,u.pathname]),pathnameBase:G(Y([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=Y([i,u.pathnameBase]))}return a}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I(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 I(e,t=!1,n=!0){p("*"===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,o,i)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=i.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"})).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 M(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!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 L(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 F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H=e=>F.test(e);function z(e,t){let n=$(t).split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function B(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 W(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function U(e){let t=W(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function V(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),B("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),B("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),B("#","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?g(e):e;return r?(r=q(r),n=r.startsWith("/")?z(r.substring(1),"/"):z(r,t)):n=t,{pathname:n,search:J(o),hash:K(i)}}(o,i),l=c&&"/"!==c&&c.endsWith("/"),u=(a||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var q=e=>e.replace(/\/\/+/g,"/"),Y=e=>q(e.join("/")),$=e=>e.replace(/\/+$/,""),G=e=>$(e).replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Q=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 X(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Z(e){let t=e.map((e=>e.route.path)).filter(Boolean);return Y(t)||"/"}var ee="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function te(e,t){let n=e;if("string"!=typeof n||!F.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(ee)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=L(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){p(!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 ne=Symbol("Uninstrumented");function re(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=oe(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=oe(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[ne]??o,i=oe(n[e],t,((...e)=>ae(e[0])));i&&("loader"===e&&!0===t.hydrate&&(i.hydrate=!0),i[ne]=t,r[e]=i)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[ne]??e,r=oe(n.middleware,t,((...e)=>ae(e[0])));return r?(r[ne]=t,r):e}))),r}function oe(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ie(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ie(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=ie(e,t,n,r-1),o=await a,d(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 ae(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:se(t),params:{...r},unstable_pattern:o,context:le(n)}}function ce(e,t){return{currentUrl:h(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 se(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function le(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")===ue}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var ue=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var de=["POST","PUT","PATCH","DELETE"],pe=new Set(de),fe=["GET",...de],me=new Set(fe),he=new Set([301,302,303,307,308]),ge=new Set([307,308]),ve={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ye={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},be={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},we=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),xe="remix-router-transitions",Ae=Symbol("ResetLoaderData");function Oe(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;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||we,i=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;i=e=>({...o(e),...re(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 u,f,v,b=e.dataStrategy||Me,x={unstable_passThroughRequests:!1,...e.future},A=null,k=new Set,P=null,T=null,C=null,D=null!=e.hydrationData,_=S(s,e.history.location,l),N=!1,R=null;if(null!=_||e.patchRoutesOnNavigation){if(_&&!e.hydrationData){Qe(_,s,e.history.location.pathname).active&&(_=null)}if(_)if(_.some((e=>e.route.lazy)))u=!1,f=!u;else if(_.some((e=>Ee(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=_;if(n){let e=_.findIndex((e=>void 0!==n[e.route.id]));r=r.slice(0,e+1)}f=!1,u=!0,r.forEach((e=>{let r=Pe(e.route,t,n);f=f||r.renderFallback,u=u&&!r.shouldLoad}))}else u=!0,f=!u;else{u=!1,f=!u,_=[];let t=Qe(null,s,e.history.location.pathname);t.active&&t.matches&&(N=!0,_=t.matches)}}else{let t=it(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ot(s);u=!0,f=!u,_=n,R={[r.id]:t}}let I,M,F={historyAction:e.history.action,location:e.history.location,matches:_,initialized:u,renderFallback:f,navigation:ve,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||R,fetchers:new Map,blockers:new Map},z="POP",B=null,W=!1,U=!1,V=new Map,q=null,Y=!1,$=!1,G=new Set,J=new Map,K=0,Q=-1,Z=new Map,ee=new Set,te=new Map,ie=new Map,ae=new Set,se=new Map,le=null;function ue(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}))),F={...F,...e};let n=[],r=[];F.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ae.has(t)?n.push(t):r.push(t))})),ae.forEach((e=>{F.fetchers.has(e)||J.has(e)||n.push(e)})),[...k].forEach((r=>r(F,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Ne(e))),r.forEach((e=>F.fetchers.delete(e)))}function de(t,n,{flushSync:r}={}){let o,i=null!=F.actionData&&null!=F.navigation.formMethod&&yt(F.navigation.formMethod)&&"loading"===F.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?F.actionData:null;let c=n.loaderData?tt(F.loaderData,n.loaderData,n.matches||[],n.errors):F.loaderData,l=F.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,be))));let u,d=!Y&&Ke(t,n.matches||F.matches),p=!0===W||null!=F.navigation.formMethod&&yt(F.navigation.formMethod)&&!0!==t.state?._isRedirect;if(a&&(s=a,a=void 0),Y||"POP"===z||("PUSH"===z?e.history.push(t,t.state):"REPLACE"===z&&e.history.replace(t,t.state)),"POP"===z){let e=V.get(F.location.pathname);e&&e.has(t.pathname)?u={currentLocation:F.location,nextLocation:t}:V.has(t.pathname)&&(u={currentLocation:t,nextLocation:F.location})}else if(U){let e=V.get(F.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),V.set(F.location.pathname,e)),u={currentLocation:F.location,nextLocation:t}}ue({...n,actionData:o,loaderData:c,historyAction:z,location:t,initialized:!0,renderFallback:!1,navigation:ve,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),z="POP",W=!1,U=!1,Y=!1,$=!1,B?.resolve(),B=null,le?.resolve(),le=null}async function pe(t,n,o){I&&I.abort(),I=null,z=t,Y=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(P&&C){let n=$e(e,t);P[n]=C()}}(F.location,F.matches),W=!0===(o&&o.preventScrollReset),U=!0===(o&&o.enableViewTransition);let u=a||s,d=o&&o.overrideNavigation,p=o?.initialHydration&&F.matches&&F.matches.length>0&&!N?F.matches:S(u,n,l),f=!0===(o&&o.flushSync);if(p&&F.initialized&&!$&&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}(F.location,n)&&!(o&&o.submission&&yt(o.submission.formMethod)))return void de(n,{matches:p},{flushSync:f});let m=Qe(p,u,n.pathname);if(m.active&&m.matches&&(p=m.matches),!p){let{error:e,notFoundMatches:t,route:r}=Ve(n.pathname);return void de(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}I=new AbortController;let h,g=Je(e.history,n,I.signal,o&&o.submission),v=e.getContext?await e.getContext():new w;if(o&&o.pendingError)h=[rt(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&yt(o.submission.formMethod)){let t=await async function(t,n,o,a,u,d,p,f={}){Oe();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(ue({navigation:h},{flushSync:!0===f.flushSync}),d){let e=await Xe(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}=ot(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=rt(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}=Ve(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}a=e.matches}let g=wt(a,n);if(g.route.action||g.route.lazy){let e=We(i,c,t,n,a,g,p?[]:r,u),o=await he(t,n,e,u,null);if(m=o[g.route.id],!m)for(let e of a)if(o[e.route.id]){m=o[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:it(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};if(ft(m)){let n;if(f&&null!=f.replace)n=f.replace;else{n=Ge(m.response.headers.get("Location"),new URL(t.url),l,e.history)===F.location.pathname+F.location.search}return await me(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(pt(m)){let e=rt(a,g.route.id);return!0!==(f&&f.replace)&&(z="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(pt(r)&&X(r.error)&&404===r.error.status)return I=null,void de(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}p=t.matches||p,h=t.pendingActionResult,d=At(n,o.submission),f=!1,m.active=!1,g=Je(e.history,g.url,g.signal)}let{shortCircuited:y,matches:b,loaderData:x,errors:A}=await async function(t,n,o,u,d,p,f,m,h,g,v,y,b){let w=p||At(n,f),x=f||m||xt(w),A=!Y&&!g;if(d){if(A){let e=fe(y);ue({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await Xe(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}=ot(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=rt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ve(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let O=a||s,{dsMatches:k,revalidatingFetchers:S}=je(t,u,i,c,e.history,F,o,x,n,g?[]:r,!0===g,$,G,ae,te,ee,O,l,null!=e.patchRoutesOnNavigation,y,b);if(Q=++K,!e.dataStrategy&&!k.some((e=>e.shouldLoad))&&!k.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Le();return de(n,{matches:o,loaderData:{},errors:y&&pt(y[1])?{[y[0]]:y[1].error}:null,...nt(y),...e?{fetchers:new Map(F.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(A){let e={};if(!d){e.navigation=w;let t=fe(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=F.fetchers.get(e.key),n=Ot(void 0,t?t.data:void 0);F.fetchers.set(e.key,n)})),new Map(F.fetchers)}(S)),ue(e,{flushSync:v})}S.forEach((e=>{Re(e.key),e.controller&&J.set(e.key,e.controller)}));let j=()=>S.forEach((e=>Re(e.key)));I&&I.signal.addEventListener("abort",j);let{loaderResults:E,fetcherResults:P}=await Ae(k,S,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",j);S.forEach((e=>J.delete(e.key)));let T=at(E);if(T)return await me(t,T.result,!0,{replace:h}),{shortCircuited:!0};if(T=at(P),T)return ee.add(T.key),await me(t,T.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:C,errors:D}=et(F,o,E,y,S,P);g&&F.errors&&(D={...F.errors,...D});let _=Le(),N=Fe(Q),R=_||N||S.length>0;return{matches:o,loaderData:C,errors:D,...R?{fetchers:new Map(F.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||(I=null,de(n,{matches:b||p,...nt(h),loaderData:x,errors:A}))}function fe(e){return e&&!pt(e[1])?{[e[0]]:e[1].data}:F.actionData?0===Object.keys(F.actionData).length?null:F.actionData:void 0}async function me(r,o,i,{submission:a,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){i||(B?.resolve(),B=null),o.response.headers.has("X-Remix-Revalidate")&&($=!0);let p=o.response.headers.get("Location");d(p,"Expected a Location header on the redirect Response"),p=Ge(p,new URL(r.url),l,e.history);let f=m(F.location,p,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(H(p)){const n=y(p,!0);e=n.origin!==t.location.origin||null==L(n.pathname,l)}if(e)return void(u?t.location.replace(p):t.location.assign(p))}I=null;let h=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:b}=F.navigation;!a&&!c&&g&&v&&b&&(a=xt(F.navigation));let w=a||c;if(ge.has(o.response.status)&&w&&yt(w.formMethod))await pe(h,f,{submission:{...w,formAction:p},preventScrollReset:s||W,enableViewTransition:i?U:void 0});else{let e=At(f,a);await pe(h,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||W,enableViewTransition:i?U:void 0})}}async function he(e,t,n,r,o){let i,a={};try{i=await Ue(b,e,t,n,o,r,!1)}catch(e){return n.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;if(!yt(e.method))for(let e of n){if("error"===i[e.route.id]?.type)break;i.hasOwnProperty(e.route.id)||F.loaderData.hasOwnProperty(e.route.id)||F.errors&&F.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(i[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(i))if(dt(r)){let o=r.result;a[t]={type:"redirect",response:Ye(o,e,t,n,l)}}else a[t]=await qe(r);return a}async function Ae(e,t,n,r,o){let i=he(n,r,e,o,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await he(e.request,e.path,e.matches,o,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:it(404,{pathname:e.path})}})})));return{loaderResults:await i,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function Oe(){$=!0,te.forEach(((e,t)=>{J.has(t)&&G.add(t),Re(t)}))}function Te(e,t,n={}){F.fetchers.set(e,t),ue({fetchers:new Map(F.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function De(e,t,n,r={}){let o=rt(F.matches,t);Ne(e),ue({errors:{[o.route.id]:n},fetchers:new Map(F.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function _e(e){return ie.set(e,(ie.get(e)||0)+1),ae.has(e)&&ae.delete(e),F.fetchers.get(e)||ye}function Ne(e){let t=F.fetchers.get(e);!J.has(e)||t&&"loading"===t.state&&Z.has(e)||Re(e),te.delete(e),Z.delete(e),ee.delete(e),ae.delete(e),G.delete(e),F.fetchers.delete(e)}function Re(e,t){let n=J.get(e);n&&(n.abort(t),J.delete(e))}function Ie(e){for(let t of e){let e=kt(_e(t).data);F.fetchers.set(t,e)}}function Le(){let e=[],t=!1;for(let n of ee){let r=F.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(ee.delete(n),e.push(n),t=!0)}return Ie(e),t}function Fe(e){let t=[];for(let[n,r]of Z)if(r<e){let e=F.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Re(n),Z.delete(n),t.push(n))}return Ie(t),t.length>0}function He(e){F.blockers.delete(e),se.delete(e)}function ze(e,t){let n=F.blockers.get(e)||be;d("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(F.blockers);r.set(e,t),ue({blockers:r})}function Be({currentLocation:e,nextLocation:t,historyAction:n}){if(0===se.size)return;se.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(se.entries()),[o,i]=r[r.length-1],a=F.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ve(e){let t=it(404,{pathname:e}),n=a||s,{matches:r,route:o}=ot(n);return{notFoundMatches:r,route:o,error:t}}function $e(e,t){if(T){return T(e,t.map((e=>E(e,F.loaderData))))||e.key}return e.key}function Ke(e,t){if(P){let n=$e(e,t),r=P[n];if("number"==typeof r)return r}return null}function Qe(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:j(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:j(n,r,l,!0)}}}return{active:!1,matches:null}}async function Xe(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||Ce(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=j(d,n,l,!0),!(m&&u.length<m.length&&Ze(u,m.slice(0,u.length))))return{type:"success",matches:f}}if(m||(m=j(d,n,l,!0)),!m||Ze(u,m))return{type:"success",matches:null};u=m}}function Ze(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return v={get basename(){return l},get future(){return x},get state(){return F},get routes(){return s},get window(){return t},initialize:function(){if(A=e.history.listen((({action:t,location:n,delta:r})=>{if(M)return M(),void(M=void 0);p(0===se.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:F.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{M=e}));return e.history.go(-1*r),ze(o,{state:"blocked",location:n,proceed(){ze(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(F.blockers);e.set(o,be),ue({blockers:e})}}),B?.resolve(),void(B=null)}return pe(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(xe);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,V);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(xe,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,V);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return F.initialized||pe("POP",F.location,{initialHydration:!0}),v},subscribe:function(e){return k.add(e),()=>k.delete(e)},enableScrollRestoration:function(e,t,n){if(P=e,C=t,T=n||null,!D&&F.navigation===ve){D=!0;let e=Ke(F.location,F.matches);null!=e&&ue({restoreScrollPosition:e})}return()=>{P=null,C=null,T=null}},navigate:async function t(n,r){if(B?.resolve(),B=null,"number"==typeof n){B||(B=St());let t=B.promise;return e.history.go(n),t}let o,i=ke(F.location,F.matches,l,n,r?.fromRouteId,r?.relative),{path:a,submission:c,error:s}=Se(!1,i,r);if(r?.unstable_mask){o={pathname:"",search:"",hash:"",..."string"==typeof r.unstable_mask?g(r.unstable_mask):{...F.location.unstable_mask,...r.unstable_mask}}}let u=F.location,d=m(u,a,r&&r.state,void 0,o);d={...d,...e.history.encodeLocation(d)};let p=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===p?f="REPLACE":!1===p||null!=c&&yt(c.formMethod)&&c.formAction===F.location.pathname+F.location.search&&(f="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=!0===(r&&r.flushSync),y=Be({currentLocation:u,nextLocation:d,historyAction:f});y?ze(y,{state:"blocked",location:d,proceed(){ze(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,r)},reset(){let e=new Map(F.blockers);e.set(y,be),ue({blockers:e})}}):await pe(f,d,{submission:c,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:v,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){Re(t);let p=!0===(u&&u.flushSync),f=a||s,m=ke(F.location,F.matches,l,o,n,u?.relative),h=S(f,m,l),g=Qe(h,f,m);if(g.active&&g.matches&&(h=g.matches),!h)return void De(t,n,it(404,{pathname:m}),{flushSync:p});let{path:v,submission:y,error:b}=Se(!0,m,u);if(b)return void De(t,n,b,{flushSync:p});let x=e.getContext?await e.getContext():new w,A=!0===(u&&u.preventScrollReset);y&&yt(y.formMethod)?await async function(t,n,o,u,p,f,m,h,g,v){Oe(),te.delete(t);let y=F.fetchers.get(t);Te(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,w=Je(e.history,o,b.signal,g);if(f){let e=await Xe(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void De(t,n,e.error,{flushSync:m});if(!e.matches)return void De(t,n,it(404,{pathname:o}),{flushSync:m});u=e.matches}let x=wt(u,o);if(!x.route.action&&!x.route.lazy){let e=it(405,{method:g.formMethod,pathname:o,routeId:n});return void De(t,n,e,{flushSync:m})}J.set(t,b);let A=K,O=We(i,c,w,o,u,x,r,p),k=await he(w,o,O,p,t),j=k[x.route.id];if(!j)for(let e of O)if(k[e.route.id]){j=k[e.route.id];break}if(w.signal.aborted)return void(J.get(t)===b&&J.delete(t));if(ae.has(t)){if(ft(j)||pt(j))return void Te(t,kt(void 0))}else{if(ft(j))return J.delete(t),Q>A?void Te(t,kt(void 0)):(ee.add(t),Te(t,Ot(g)),me(w,j,!1,{fetcherSubmission:g,preventScrollReset:h}));if(pt(j))return void De(t,n,j.error)}let E=F.navigation.location||F.location,P=Je(e.history,E,b.signal),T=a||s,C="idle"!==F.navigation.state?S(T,F.navigation.location,l):F.matches;d(C,"Didn't find any matches after fetcher action");let D=++K;Z.set(t,D);let _=Ot(g,j.data);F.fetchers.set(t,_);let{dsMatches:N,revalidatingFetchers:R}=je(P,p,i,c,e.history,F,C,g,E,r,!1,$,G,ae,te,ee,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,j],v);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=F.fetchers.get(t),r=Ot(void 0,n?n.data:void 0);F.fetchers.set(t,r),Re(t),e.controller&&J.set(t,e.controller)})),ue({fetchers:new Map(F.fetchers)});let M=()=>R.forEach((e=>Re(e.key)));b.signal.addEventListener("abort",M);let{loaderResults:L,fetcherResults:H}=await Ae(N,R,P,E,p);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",M),Z.delete(t),J.delete(t),R.forEach((e=>J.delete(e.key))),F.fetchers.has(t)){let e=kt(j.data);F.fetchers.set(t,e)}let B=at(L);if(B)return me(P,B.result,!1,{preventScrollReset:h});if(B=at(H),B)return ee.add(B.key),me(P,B.result,!1,{preventScrollReset:h});let{loaderData:W,errors:U}=et(F,C,L,void 0,R,H);Fe(D),"loading"===F.navigation.state&&D>Q?(d(z,"Expected pending action"),I&&I.abort(),de(F.navigation.location,{matches:C,loaderData:W,errors:U,fetchers:new Map(F.fetchers)})):(ue({errors:U,loaderData:tt(F.loaderData,W,C,U),fetchers:new Map(F.fetchers)}),$=!1)}(t,n,v,h,x,g.active,p,A,y,u&&u.unstable_defaultShouldRevalidate):(te.set(t,{routeId:n,path:v}),await async function(t,n,o,a,s,l,u,d,p){let f=F.fetchers.get(t);Te(t,Ot(p,f?f.data:void 0),{flushSync:u});let m=new AbortController,h=Je(e.history,o,m.signal);if(l){let e=await Xe(a,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void De(t,n,e.error,{flushSync:u});if(!e.matches)return void De(t,n,it(404,{pathname:o}),{flushSync:u});a=e.matches}let g=wt(a,o);J.set(t,m);let v=K,y=We(i,c,h,o,a,g,r,s),b=await he(h,o,y,s,t),w=b[g.route.id];J.get(t)===m&&J.delete(t);if(h.signal.aborted)return;if(ae.has(t))return void Te(t,kt(void 0));if(ft(w))return Q>v?void Te(t,kt(void 0)):(ee.add(t),void await me(h,w,!1,{preventScrollReset:d}));if(pt(w))return void De(t,n,w.error);Te(t,kt(w.data))}(t,n,v,h,x,g.active,p,A,y))},revalidate:function(){le||(le=St()),Oe(),ue({revalidation:"loading"});let e=le.promise;return"submitting"===F.navigation.state?e:"idle"===F.navigation.state?(pe(F.historyAction,F.location,{startUninterruptedRevalidation:!0}),e):(pe(z||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation,enableViewTransition:!0===U}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:_e,resetFetcher:function(e,t){Re(e,t?.reason),Te(e,kt(null))},deleteFetcher:function(e){let t=(ie.get(e)||0)-1;t<=0?(ie.delete(e),ae.add(e)):ie.set(e,t),ue({fetchers:new Map(F.fetchers)})},dispose:function(){A&&A(),q&&q(),k.clear(),I&&I.abort(),F.fetchers.forEach(((e,t)=>Ne(t))),F.blockers.forEach(((e,t)=>He(t)))},getBlocker:function(e,t){let n=F.blockers.get(e)||be;return se.get(e)!==t&&se.set(e,t),n},deleteBlocker:He,patchRoutes:function(e,t,n=!1){let r=null==a;Ce(e,t,a||s,c,i,n),r&&(s=[...s],ue({}))},_internalFetchControllers:J,_internalSetRoutes:function(e){c={},a=O(e,i,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ue(e)}},e.unstable_instrumentations&&(v=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[ne]??e.navigate,r=oe(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?h(n):".",...ce(e,r??{})}}));r&&(r[ne]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[ne]??e.fetch,r=oe(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...ce(e,o??{})}}));r&&(r[ne]=t,e.fetch=r)}return e}(v,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),v}function ke(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=V(r||".",U(a),L(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=bt(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:Y([e,t])}({basename:n,pathname:s.pathname})),h(s)}function Se(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&&!vt(n.formMethod))return{path:t,error:it(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:it(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),c=ct(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!yt(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(!yt(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(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Qe(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Qe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Xe(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Xe(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(yt(s.formMethod))return{path:t,submission:s};let l=g(t);return e&&l.search&&bt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:h(l),submission:s}}function je(e,t,n,r,o,i,a,c,s,l,u,d,p,f,m,h,g,v,y,b,w){let x,A=b?pt(b[1])?b[1].error:b[1].data:void 0,O=o.createURL(i.location),k=o.createURL(s);if(u&&i.errors){let e=Object.keys(i.errors)[0];x=a.findIndex((t=>t.route.id===e))}else if(b&&pt(b[1])){let e=b[0];x=a.findIndex((t=>t.route.id===e))-1}let j=b?b[1].statusCode:void 0,E=j&&j>=400,P={currentUrl:O,currentParams:i.matches[0]?.params||{},nextUrl:k,nextParams:a[0].params,...c,actionResult:A,actionStatus:j},T=Z(a),C=a.map(((o,a)=>{let{route:c}=o,p=null;if(null!=x&&a>x)p=!1;else if(c.lazy)p=!0;else if(Ee(c))if(u){let{shouldLoad:e}=Pe(c,i.loaderData,i.errors);p=e}else(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)&&(p=!0);else p=!1;if(null!==p)return Be(n,r,e,s,T,o,l,t,p);let f=!1;"boolean"==typeof w?f=w:E?f=!1:(d||O.pathname+O.search===k.pathname+k.search||O.search!==k.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))&&(f=!0);let m={...P,defaultShouldRevalidate:f},h=Te(o,m);return Be(n,r,e,s,T,o,l,t,h,m,w)})),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 x=wt(b,e.path),A=new AbortController,O=Je(o,e.path,A.signal),k=null;if(p.has(c))p.delete(c),k=We(n,r,O,e.path,b,x,l,t);else if(m)d&&(k=We(n,r,O,e.path,b,x,l,t));else{let o;o="boolean"==typeof w?w:!E&&d;let i={...P,defaultShouldRevalidate:o};Te(x,i)&&(k=We(n,r,O,e.path,b,x,l,t,i))}k&&D.push({key:c,routeId:e.routeId,path:e.path,matches:k,match:x,request:O,controller:A})})),{dsMatches:C,revalidatingFetchers:D}}function Ee(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Pe(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Ee(e))return{shouldLoad:!1,renderFallback:!1};let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!r};let i=!r&&!o;return{shouldLoad:i,renderFallback:i}}function Te(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Ce(e,t,n,r,o,i){let a;if(e){let t=r[e];d(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=>De(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 De(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=>De(e,t)))))??!1))}var _e=new WeakMap,Ne=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(d(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=_e.get(o);a||(a={},_e.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)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(n)p(!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},Re=new WeakMap;async function Ie(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 Me(e){return e.matches.some((e=>e.route.middleware))?Le(e,(()=>Ie(e))):Ie(e)}function Le(e,t){return Fe(e,t,(e=>{if(gt(e))throw e;return e}),lt,(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=rt(r,r[o].route.id).route.id;return Promise.resolve({[i]:{type:"error",result:t}})}}))}async function Fe(e,t,n,r,o){let{matches:i,...a}=e,c=i.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await He(a,c,t,n,r,o)}async function He(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 He(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 ze(e,t,n,r,o){let i=Ne({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),a=function(e,t,n,r,o){let i=n[e.id];if(d(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Re.get(i);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{d("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,A.has(o)),c=void 0!==i[e]&&"hasErrorBoundary"!==e;a?p(!a,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?p(!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 Re.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=Ne({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,yt(n.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function Be(e,t,n,r,o,i,a,c,s,l=null,u){let d=!1,p=ze(e,t,n,i,a);return{...i,_lazyPromises:p,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(d=!0,l?Te(i,"boolean"==typeof u?{...l,defaultShouldRevalidate:u}:"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:a,middleware:l}=i.route,u=d||s||e&&!yt(n.method)&&(t||a),f=l&&l.length>0&&!a&&!t;return!u||!yt(n.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,unstable_pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:i,handlerOverride:a,scopedContext:c}){let s,l,u=yt(e.method),d=u?"action":"loader",p=o=>{let i,s=new Promise(((e,t)=>i=t));l=()=>i(),e.signal.addEventListener("abort",l);let u=i=>"function"!=typeof o?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)):o({request:e,unstable_url:Ke(e,t),unstable_pattern:n,params:r.params,context:c},...void 0!==i?[i]:[]),p=(async()=>{try{return{type:"data",result:await(a?a((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([p,s])};try{let t=u?r.route.action:r.route.loader;if(o||i)if(t){let e,[n]=await Promise.all([p(t).catch((t=>{e=t})),o,i]);if(void 0!==e)throw e;s=n}else{await o;let t=u?r.route.action:r.route.loader;if(!t){if("action"===d){let t=new URL(e.url),n=t.pathname+t.search;throw it(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([p(t),i])}else{if(!t){let t=new URL(e.url);throw it(404,{pathname:t.pathname+t.search})}s=await p(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:n,path:r,unstable_pattern:o,match:i,lazyHandlerPromise:p?.handler,lazyRoutePromise:p?.route,handlerOverride:e,scopedContext:c})}}}function We(e,t,n,r,o,i,a,c,s=null){return o.map((l=>l.route.id!==i.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:ze(e,t,n,l,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Be(e,t,n,r,Z(o),l,a,c,!0,s)))}async function Ue(e,t,n,r,o,i,a){r.some((e=>e._lazyPromises?.middleware))&&await Promise.all(r.map((e=>e._lazyPromises?.middleware)));let c={request:t,unstable_url:Ke(t,n),unstable_pattern:Z(r),params:r[0].params,context:i,matches:r},s=a?()=>{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=c;return Le(t,(()=>e({...t,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},l=await e({...c,fetcherKey:o,runClientMiddleware:s});try{await Promise.all(r.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return l}async function Ve(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 qe(e){let{result:t,type:n}=e;if(ht(t)){let e;try{e=await Ve(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new Q(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?mt(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:st(t),statusCode:X(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:X(t)?t.status:void 0}:mt(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 Ye(e,t,n,r,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!H(i)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=ke(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}var $e=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Ge(e,t,n,r){if(H(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if($e.includes(o.protocol))throw new Error("Invalid redirect location");let i=null!=L(o.pathname,n);if(o.origin===t.origin&&i)return q(o.pathname)+o.search+o.hash}try{let t=r.createURL(e);if($e.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Je(e,t,n,r){let o=e.createURL(ct(t)).toString(),i={signal:n};if(r&&yt(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=Qe(r.formData):i.body=r.formData}return new Request(o,i)}function Ke(e,t){let n=new URL(e.url),r="string"==typeof t?g(t):t;if(n.pathname=r.pathname||"/",r.search){let e=new URLSearchParams(r.search),t=e.getAll("index");e.delete("index");for(let n of t.filter(Boolean))e.append("index",n);n.search=e.size?`?${e.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function Qe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Xe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ze(e,t,n,r=!1,o=!1){let i,a={},c=null,s=!1,l={},u=n&&pt(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(d(!ft(f),"Cannot handle redirect results in processLoaderData"),pt(f)){let t=f.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[p]=t;else{let n=rt(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(a[p]=Ae),s||(s=!0,i=X(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!==u&&n&&(c={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:c,statusCode:i||200,loaderHeaders:l}}function et(e,t,n,r,o,i){let{loaderData:a,errors:c}=Ze(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(d(a,"Did not find corresponding fetcher result"),pt(a)){let t=rt(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(ft(a))d(!1,"Unhandled fetcher revalidation redirect");else{let t=kt(a.data);e.fetchers.set(n,t)}})),{loaderData:a,errors:c}}function tt(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==Ae)).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 nt(e){return e?pt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function rt(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 ot(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 it(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 Q(e||500,a,new Error(c),!0)}function at(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(ft(r))return{key:n,result:r}}}function ct(e){return h({..."string"==typeof e?g(e):e,hash:""})}function st(e){return new Q(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function lt(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&ut(t)))}function ut(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function dt(e){return ht(e.result)&&he.has(e.result.status)}function pt(e){return"error"===e.type}function ft(e){return"redirect"===(e&&e.type)}function mt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function ht(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function gt(e){return ht(e)&&(t=e.status,he.has(t))&&e.headers.has("Location");var t}function vt(e){return me.has(e.toUpperCase())}function yt(e){return pe.has(e.toUpperCase())}function bt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function wt(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&bt(n||""))return e[e.length-1];let r=W(e);return r[r.length-1]}function xt(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 At(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 Ot(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 kt(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 St(){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 jt=i.createContext(null);jt.displayName="DataRouter";var Et=i.createContext(null);Et.displayName="DataRouterState";var Pt=i.createContext(!1);function Tt(){return i.useContext(Pt)}var Ct=i.createContext({isTransitioning:!1});Ct.displayName="ViewTransition";var Dt=i.createContext(new Map);Dt.displayName="Fetchers";var _t=i.createContext(null);_t.displayName="Await";var Nt=i.createContext(null);Nt.displayName="Navigation";var Rt=i.createContext(null);Rt.displayName="Location";var It=i.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var Mt=i.createContext(null);Mt.displayName="RouteError";var Lt="REACT_ROUTER_ERROR";function Ft(){return null!=i.useContext(Rt)}function Ht(){return d(Ft(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(Rt).location}var zt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Bt(e){i.useContext(Nt).static||i.useLayoutEffect(e)}function Wt(){let{isDataRoute:e}=i.useContext(It);return e?function(){let{router:e}=en("useNavigate"),t=nn("useNavigate"),n=i.useRef(!1);return Bt((()=>{n.current=!0})),i.useCallback((async(r,o={})=>{p(n.current,zt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(Ft(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(jt),{basename:t,navigator:n}=i.useContext(Nt),{matches:r}=i.useContext(It),{pathname:o}=Ht(),a=JSON.stringify(U(r)),c=i.useRef(!1);return Bt((()=>{c.current=!0})),i.useCallback(((r,i={})=>{if(p(c.current,zt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:Y([t,s.pathname])),(i.replace?n.replace:n.push)(s,i.state,i)}),[t,n,a,o,e])}()}i.createContext(null);function Ut(){let{matches:e}=i.useContext(It),t=e[e.length-1];return t?t.params:{}}function Vt(e,{relative:t}={}){let{matches:n}=i.useContext(It),{pathname:r}=Ht(),o=JSON.stringify(U(n));return i.useMemo((()=>V(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function qt(e,t,n){d(Ft(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=i.useContext(Nt),{matches:o}=i.useContext(It),a=o[o.length-1],c=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;{let e=u&&u.path||"";sn(s,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (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 f,m=Ht();if(t){let e="string"==typeof t?g(t):t;d("/"===l||e.pathname?.startsWith(l),`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 "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=m;let h=f.pathname||"/",v=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=S(e,{pathname:v});p(u||null!=y,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),p(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.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 b=Xt(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:Y([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Y([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),o,n);return t&&b?i.createElement(Rt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...f},navigationType:"POP"}},b):b}function Yt(){let e=rn(),t=X(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 $t=i.createElement(Yt,null),Gt=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(`${Lt}: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 Q(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?i.createElement(It.Provider,{value:this.props.routeContext},i.createElement(Mt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(Kt,{error:e},t):t}};Gt.contextType=Pt;var Jt=new WeakMap;function Kt({children:e,error:t}){let{basename:n}=i.useContext(Nt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Lt}: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=Jt.get(t);if(r)throw r;let o=te(e.location,n);if(ee&&!Jt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Jt.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 Qt({routeContext:e,match:t,children:n}){let r=i.useContext(jt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(It.Provider,{value:e},n)}function Xt(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,a=r?.errors;if(null!=a){let e=o.findIndex((e=>e.route.id&&void 0!==a?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,s=-1;if(n&&r){c=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:i}=r,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!i||void 0===i[t.route.id]);if(t.route.lazy||a){n.isStatic&&(c=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Z(r.matches),errorInfo:t})}:void 0;return o.reduceRight(((e,n,l)=>{let d,p=!1,f=null,m=null;r&&(d=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||$t,c&&(s<0&&0===l?(sn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===l&&(p=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,l+1)),g=()=>{let t;return t=d?f:p?m:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(Qt,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?i.createElement(Gt,{location:r.location,revalidation:r.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()}),null)}function Zt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function en(e){let t=i.useContext(jt);return d(t,Zt(e)),t}function tn(e){let t=i.useContext(Et);return d(t,Zt(e)),t}function nn(e){let t=function(e){let t=i.useContext(It);return d(t,Zt(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rn(){let e=i.useContext(Mt),t=tn("useRouteError"),n=nn("useRouteError");return void 0!==e?e:t.errors?.[n]}var on=0;function an(e){let{router:t,basename:n}=en("useBlocker"),r=tn("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:L(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:L(o.pathname,n)||o.pathname},historyAction:i})}),[n,e]);return i.useEffect((()=>{let e=String(++on);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):be}var cn={};function sn(e,t,n){t||cn[e]||(cn[e]=!0,p(!1,n))}var ln={};function un(e,t){e||ln[t]||(ln[t]=!0,console.warn(t))}var dn=(r||(r=n.t(i,2))).useOptimistic,pn=()=>{};function fn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&p(!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&&p(!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&&p(!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 mn=["HydrateFallback","hydrateFallbackElement"];var hn=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 gn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=Tt();r=o||r;let[a,c]=i.useState(e.state),[s,l]=(u=a,dn?dn(u):[u,pn]);var u;let[d,p]=i.useState(),[f,m]=i.useState({isTransitioning:!1}),[h,g]=i.useState(),[v,y]=i.useState(),[b,w]=i.useState(),x=i.useRef(new Map),A=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:Z(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),a.forEach((e=>x.current.delete(e))),un(!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(un(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(),w({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=>vn(e,o))),c(o)}))}),[e.window,t,v,h,r,l,n]);i.useLayoutEffect((()=>e.subscribe(A)),[e,A]);let O=s.initialized;i.useLayoutEffect((()=>{!O&&e.state.initialized&&A(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})}),[O,A,e.state]),i.useEffect((()=>{f.isTransitioning&&!f.flushSync&&g(new hn)}),[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=>vn(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}),w(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||"/",j=i.useMemo((()=>({router:e,navigator:k,static:!1,basename:S,onError:n})),[e,k,S,n]);return i.createElement(i.Fragment,null,i.createElement(jt.Provider,{value:j},i.createElement(Et.Provider,{value:s},i.createElement(Dt.Provider,{value:x.current},i.createElement(Ct.Provider,{value:f},i.createElement(An,{basename:S,location:s.location,navigationType:s.historyAction,navigator:k,unstable_useTransitions:r},i.createElement(yn,{routes:e.routes,future:e.future,state:s,isStatic:!1,onError:n})))))),null)}function vn(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 yn=i.memo(bn);function bn({routes:e,future:t,state:n,isStatic:r,onError:o}){return qt(e,void 0,{state:n,isStatic:r,onError:o,future:t})}function wn({to:e,replace:t,state:n,relative:r}){d(Ft(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(Nt);p(!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(It),{pathname:c}=Ht(),s=Wt(),l=V(e,U(a),c,"path"===r),u=JSON.stringify(l);return i.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function xn(e){d(!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 An({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1,unstable_useTransitions:c}){d(!Ft(),"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=g(n));let{pathname:u="/",search:f="",hash:m="",state:h=null,key:v="default",unstable_mask:y}=n,b=i.useMemo((()=>{let e=L(u,s);return null==e?null:{location:{pathname:e,search:f,hash:m,state:h,key:v,unstable_mask:y},navigationType:r}}),[s,u,f,m,h,v,r,y]);return p(null!=b,`<Router basename="${s}"> is not able to match the URL "${u}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:i.createElement(Nt.Provider,{value:l},i.createElement(Rt.Provider,{children:t,value:b}))}function On({children:e,location:t}){return qt(kn(e),t)}i.Component;function kn(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,kn(e.props.children,o));d(e.type===xn,`[${"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>`),d(!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=kn(e.props.children,o)),n.push(a)})),n}var Sn="get",jn="application/x-www-form-urlencoded";function En(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Pn=null;var Tn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Cn(e){return null==e||Tn.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jn}"`),null)}function Dn(e,t){let n,r,o,i,a;if(En(c=e)&&"form"===c.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?L(a,t):null,n=e.getAttribute("method")||Sn,o=Cn(e.getAttribute("enctype"))||jn,i=new FormData(e)}else if(function(e){return En(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return En(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?L(c,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Sn,o=Cn(e.getAttribute("formenctype"))||Cn(a.getAttribute("enctype"))||jn,i=new FormData(a,e),!function(){if(null===Pn)try{new FormData(document.createElement("form"),0),Pn=!1}catch(e){Pn=!0}return Pn}()){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(En(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Sn,r=null,o=jn,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 _n(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Nn(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&&"/"===L(o.pathname,t)?o.pathname=`${$(t)}/_root.${r}`:o.pathname=`${$(o.pathname)}.${r}`,o}async function Rn(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 In(e){return null!=e&&"string"==typeof e.page}function Mn(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 Ln(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 Fn(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 Hn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!In(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 zn(e,t){return"lazy"===e.mode&&!0===t}function Bn(){let e=i.useContext(jt);return _n(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Wn(){let e=i.useContext(Et);return _n(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Un=i.createContext(void 0);function Vn(){let e=i.useContext(Un);return _n(e,"You must render this element inside a <HydratedRouter> element"),e}function qn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Yn(e,t,n){if(n&&!Qn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Un.displayName="FrameworkContext";function $n({page:e,...t}){let n=Tt(),{router:r}=Bn(),o=i.useMemo((()=>S(r.routes,e,r.basename)),[r.routes,e,r.basename]);return o?n?i.createElement(Jn,{page:e,matches:o,...t}):i.createElement(Kn,{page:e,matches:o,...t}):null}function Gn(e){let{manifest:t,routeModules:n}=Vn(),[r,o]=i.useState([]);return i.useEffect((()=>{let r=!1;return async function(e,t,n){return Hn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Rn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Mn).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 Jn({page:e,matches:t,...n}){let r=Ht(),{future:o}=Vn(),{basename:a}=Bn(),c=i.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Nn(e,a,o.unstable_trailingSlashAwareDataRequests,"rsc"),i=!1,c=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?i=!0:c.push(e.route.id);return i&&c.length>0&&n.searchParams.set("_routes",c.join(",")),[n.pathname+n.search]}),[a,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return i.createElement(i.Fragment,null,c.map((e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))))}function Kn({page:e,matches:t,...n}){let r=Ht(),{future:o,manifest:a,routeModules:c}=Vn(),{basename:s}=Bn(),{loaderData:l,matches:u}=Wn(),d=i.useMemo((()=>Ln(e,t,u,a,r,"data")),[e,t,u,a,r]),p=i.useMemo((()=>Ln(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=Nn(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((()=>Fn(p,a)),[p,a]),h=Gn(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 Qn=!1;function Xn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:a,ssr:c}=Vn(),{router:s,static:l,staticContext:u}=Bn(),{matches:d}=Wn(),p=Tt(),f=zn(a,c);o&&(o.didRenderScripts=!0);let m=Yn(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];_n(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=Qn||p?[]:(t.entry.imports.concat(Fn(m,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let y="object"==typeof t.sri?t.sri:{};return un(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Qn||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 Zn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}i.Component;function er({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(X(e))return i.createElement(tr,{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(tr,{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 tr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Vn();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(Xn,null):null)))}var nr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{nr&&(window.__reactRouterVersion="7.14.1")}catch(e){}function rr(e,t){return Oe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||or(),routes:e,mapRouteProperties:fn,hydrationRouteProperties:mn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function or(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ir(e.errors)}),e}function ir(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 Q(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 ar=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=i.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:a,unstable_mask:c,state:s,target:l,to:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m,...g},v){let{basename:y,navigator:b,unstable_useTransitions:w}=i.useContext(Nt),x="string"==typeof u&&ar.test(u),A=te(u,y),O=function(e,{relative:t}={}){d(Ft(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=i.useContext(Nt),{hash:o,pathname:a,search:c}=Vt(e,{relative:t}),s=a;return"/"!==n&&(s="/"===a?n:Y([n,a])),r.createHref({pathname:s,search:c,hash:o})}(u=A.to,{relative:r}),k=Ht(),S=null;if(c){let e=V(c,[],k.unstable_mask?k.unstable_mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:Y([y,e.pathname])),S=b.createHref(e)}let[j,E,P]=function(e,t){let n=i.useContext(Un),[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:qn(s,m),onBlur:qn(l,h),onMouseEnter:qn(u,m),onMouseLeave:qn(d,h),onTouchStart:qn(p,m)}]:[!1,f,{}]}(n,g),T=function(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:a,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let d=Wt(),p=Ht(),f=Vt(e,{relative:c});return i.useCallback((m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:h(p)===h(f),g=()=>d(e,{replace:t,unstable_mask:r,state:o,preventScrollReset:a,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l});u?i.startTransition((()=>g())):g()}}),[p,d,f,n,r,o,t,e,a,c,s,l,u])}(u,{replace:a,unstable_mask:c,state:s,target:l,preventScrollReset:p,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:w});let C=!(A.isExternal||o),D=i.createElement("a",{...g,...P,href:(C?S:void 0)||A.absoluteURL||O,onClick:C?function(t){e&&e(t),t.defaultPrevented||T(t)}:e,ref:Zn(v,E),target:l,"data-discover":x||"render"!==t?void 0:"true"});return j&&!x?i.createElement(i.Fragment,null,D,i.createElement($n,{page:O})):D}));cr.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},u){let p=Vt(a,{relative:l.relative}),f=Ht(),m=i.useContext(Et),{navigator:h,basename:g}=i.useContext(Nt),v=null!=m&&function(e,{relative:t}={}){let n=i.useContext(Ct);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ur("useViewTransitionState"),o=Vt(e,{relative:t});if(!n.isTransitioning)return!1;let a=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=R(o.pathname,c)||null!=R(o.pathname,a)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=L(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let A,O=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),k=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:O,isPending:k,isTransitioning:v},j=O?e:void 0;A="function"==typeof n?n(S):[n,O?"active":null,k?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof o?o(S):o;return i.createElement(cr,{...l,"aria-current":j,className:A,ref:u,style:E,to:a,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var sr=i.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:c=Sn,action:s,onSubmit:l,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m,...g},v)=>{let{unstable_useTransitions:y}=i.useContext(Nt),b=pr(),w=function(e,{relative:t}={}){let{basename:n}=i.useContext(Nt),r=i.useContext(It);d(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...Vt(e||".",{relative:t})},c=Ht();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:Y([n,a.pathname]));return h(a)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",A="string"==typeof s&&ar.test(s);return i.createElement("form",{ref:v,method:x,action:w,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||c,d=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:a,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m});y&&!1!==n?i.startTransition((()=>d())):d()},...g,"data-discover":A||"render"!==e?void 0:"true"})}));function lr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ur(e){let t=i.useContext(jt);return d(t,lr(e)),t}sr.displayName="Form";var dr=0;function pr(){let{router:e}=ur("useSubmit"),{basename:t}=i.useContext(Nt),n=nn("useRouteId"),r=e.fetch,o=e.navigate;return i.useCallback((async(e,i={})=>{let{action:a,method:c,encType:s,formData:l,body:u}=Dn(e,t);if(!1===i.navigate){let e=i.fetcherKey||`__${String(++dr)}__`;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(50766),o=n(4883),i=n(81845);function a(e){return o.createElement(r.pg,{flushSync:i.flushSync,...e})}(0,r.q6)()},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:()=>w});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,w=u.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,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 w(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)}}},21396(e,t,n){"use strict";n.d(t,{LU:()=>s,MS:()=>r,Sv:()=>u,XZ:()=>c,YK:()=>a,j:()=>i,vd:()=>o,yE:()=>l});var r="-ms-",o="-moz-",i="-webkit-",a="comm",c="rule",s="decl",l="@import",u="@keyframes"},53473(e,t,n){"use strict";n.d(t,{MY:()=>i,r1:()=>o});var r=n(18061);function o(e){var t=(0,r.FK)(e);return function(n,r,o,i){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,i)||"";return a}}function i(e){return function(t){t.root||(t=t.return)&&e(t)}}},71458(e,t,n){"use strict";n.d(t,{wE:()=>a});var r=n(21396),o=n(18061),i=n(19552);function a(e){return(0,i.VF)(c("",null,null,null,[""],e=(0,i.c4)(e),0,[0],e))}function c(e,t,n,r,a,d,p,f,m){for(var h=0,g=0,v=p,y=0,b=0,w=0,x=1,A=1,O=1,k=0,S="",j=a,E=d,P=r,T=S;A;)switch(w=k,k=(0,i.K2)()){case 40:if(108!=w&&58==(0,o.wN)(T,v-1)){-1!=(0,o.K5)(T+=(0,o.HC)((0,i.Tb)(k),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:T+=(0,i.Tb)(k);break;case 9:case 10:case 13:case 32:T+=(0,i.mw)(w);break;case 92:T+=(0,i.Nc)((0,i.OW)()-1,7);continue;case 47:switch((0,i.se)()){case 42:case 47:(0,o.BC)(l((0,i.nf)((0,i.K2)(),(0,i.OW)()),t,n),m);break;default:T+="/"}break;case 123*x:f[h++]=(0,o.b2)(T)*O;case 125*x:case 59:case 0:switch(k){case 0:case 125:A=0;case 59+g:b>0&&(0,o.b2)(T)-v&&(0,o.BC)(b>32?u(T+";",r,n,v-1):u((0,o.HC)(T," ","")+";",r,n,v-2),m);break;case 59:T+=";";default:if((0,o.BC)(P=s(T,t,n,h,g,a,f,S,j=[],E=[],v),d),123===k)if(0===g)c(T,t,P,P,j,d,v,f,E);else switch(99===y&&110===(0,o.wN)(T,3)?100:y){case 100:case 109:case 115:c(e,P,P,r&&(0,o.BC)(s(e,P,P,0,0,a,f,S,a,j=[],v),E),a,E,v,f,r?j:E);break;default:c(T,P,P,P,[""],E,0,f,E)}}h=g=b=0,x=O=1,S=T="",v=p;break;case 58:v=1+(0,o.b2)(T),b=w;default:if(x<1)if(123==k)--x;else if(125==k&&0==x++&&125==(0,i.YL)())continue;switch(T+=(0,o.HT)(k),k*x){case 38:O=g>0?1:(T+="\f",-1);break;case 44:f[h++]=((0,o.b2)(T)-1)*O,O=1;break;case 64:45===(0,i.se)()&&(T+=(0,i.Tb)((0,i.K2)())),y=(0,i.se)(),g=v=(0,o.b2)(S=T+=(0,i.Cv)((0,i.OW)())),k++;break;case 45:45===w&&2==(0,o.b2)(T)&&(x=0)}}return d}function s(e,t,n,a,c,s,l,u,d,p,f){for(var m=c-1,h=0===c?s:[""],g=(0,o.FK)(h),v=0,y=0,b=0;v<a;++v)for(var w=0,x=(0,o.c1)(e,m+1,m=(0,o.tn)(y=l[v])),A=e;w<g;++w)(A=(0,o.Bq)(y>0?h[w]+" "+x:(0,o.HC)(x,/&\f/g,h[w])))&&(d[b++]=A);return(0,i.rH)(e,t,n,0===c?r.XZ:u,d,p,f)}function l(e,t,n){return(0,i.rH)(e,t,n,r.YK,(0,o.HT)((0,i.Tp)()),(0,o.c1)(e,2,-2),0)}function u(e,t,n,a){return(0,i.rH)(e,t,n,r.LU,(0,o.c1)(e,0,a),(0,o.c1)(e,a+1,-1),a)}},3485(e,t,n){"use strict";n.d(t,{A:()=>a,l:()=>i});var r=n(21396),o=n(18061);function i(e,t){for(var n="",r=(0,o.FK)(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function a(e,t,n,a){switch(e.type){case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+i(e.children,a)+"}";case r.XZ:e.value=e.props.join(",")}return(0,o.b2)(n=i(e.children,a))?e.return=e.value+"{"+n+"}":""}},19552(e,t,n){"use strict";n.d(t,{C:()=>d,Cv:()=>j,G1:()=>c,K2:()=>m,Nc:()=>O,OW:()=>g,Sh:()=>y,Tb:()=>x,Tp:()=>p,VF:()=>w,YL:()=>f,c4:()=>b,di:()=>v,mw:()=>A,nf:()=>S,rH:()=>u,se:()=>h});var r=n(18061),o=1,i=1,a=0,c=0,s=0,l="";function u(e,t,n,r,a,c,s){return{value:e,root:t,parent:n,type:r,props:a,children:c,line:o,column:i,length:s,return:""}}function d(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return s}function f(){return s=c>0?(0,r.wN)(l,--c):0,i--,10===s&&(i=1,o--),s}function m(){return s=c<a?(0,r.wN)(l,c++):0,i++,10===s&&(i=1,o++),s}function h(){return(0,r.wN)(l,c)}function g(){return c}function v(e,t){return(0,r.c1)(l,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return o=i=1,a=(0,r.b2)(l=e),c=0,[]}function w(e){return l="",e}function x(e){return(0,r.Bq)(v(c-1,k(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(s=h())&&s<33;)m();return y(e)>2||y(s)>3?"":" "}function O(e,t){for(;--t&&m()&&!(s<48||s>102||s>57&&s<65||s>70&&s<97););return v(e,g()+(t<6&&32==h()&&32==m()))}function k(e){for(;m();)switch(s){case e:return c;case 34:case 39:34!==e&&39!==e&&k(s);break;case 40:41===e&&k(e);break;case 92:m()}return c}function S(e,t){for(;m()&&e+s!==57&&(e+s!==84||47!==h()););return"/*"+v(t,c-1)+"*"+(0,r.HT)(47===e?e:m())}function j(e){for(;!y(h());)m();return v(e,c)}},18061(e,t,n){"use strict";n.d(t,{BC:()=>h,Bq:()=>c,FK:()=>m,HC:()=>l,HT:()=>o,K5:()=>u,YW:()=>s,b2:()=>f,c1:()=>p,kg:()=>g,kp:()=>i,tW:()=>a,tn:()=>r,wN:()=>d});var r=Math.abs,o=String.fromCharCode,i=Object.assign;function a(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function c(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function f(e){return e.length}function m(e){return e.length}function h(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},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:"89f46bddce41b20b6a7f",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:"11b87af83e97e66991f3",11239:"664b58de88949602eab7",11281:"6839e1785eea6fa62fd4",11788:"3c8d4fb49b0605e4a42e",11842:"a30cf0685f7c94646052",12987:"b8d330440b27bf34bba0",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:"e3054ead996d5efdc489",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",26335:"5a923ec8cde07c75f4ec",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:"c3fdfb2e54bd44c3c099",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:"deac8ba759d513bbd789",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:"0f896ccae0b4dec508fc",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:"369d118c3e04dd1b098e",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:"92ea465ba5ea32fa7c62",71496:"0ae5a9f9d3631024323d",71657:"0dd8cdb91628eeb6024f",72246:"70e526c1393da5f87daa",72283:"3cea797f38ce5d1b52ab",72376:"96dce911c3388994b8dd",72456:"8c0bcd6874db2417e173",72496:"9ae179b5e7264e7b40e7",72823:"0698ec372c10b97b0ccc",72887:"b4a4f8449613decb11e3",72969:"f105693c2d9c70646602",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:"8defc43dff411be0246d",84506:"ede88c0a261e89471a5b",84556:"588b491efef6d6127114",84567:"a01e2975130cbf96047b",84625:"ecaf98bf9b41a3ff9dcf",85085:"9e1a0c0ca176b1d94b5b",85477:"5f62658929abfabe6b45",85481:"8d48215f13377e1f4d60",85749:"76359fa109906f552d50",86006:"2d3afc8146a0e2e17612",86187:"05fd1ef8578aa03aa44e",86275:"74cd8c9d25d9c0a3be4d",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(73896);e.A.registerAppInRegistry(t.yA.name,t.yA.init)})(),l})()));
|