tocco-widget-bundle 3.15.38 → 3.15.39
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 +4 -0
- package/dist/{chunk-actions.6d558e76ff797d15bf63.js → chunk-actions.1272473e00ace1bc6fac.js} +1 -1
- package/dist/education-portfolio.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/dist/evaluation-execution-participation.js +1 -1
- package/dist/event-registration.js +1 -1
- package/dist/function-mutation.js +1 -1
- package/dist/job-application.js +1 -1
- package/dist/mailing-list.js +1 -1
- package/dist/stint-auction.js +1 -1
- package/dist/user-availability.js +1 -1
- package/dist/user-grades.js +1 -1
- package/dist/wage-view.js +1 -1
- package/package.json +1 -1
package/dist/entity-browser.js
CHANGED
|
@@ -59,4 +59,4 @@ const{entries:r,setPrototypeOf:o,isFrozen:a,getPrototypeOf:i,getOwnPropertyDescr
|
|
|
59
59
|
* LICENSE.md file in the root directory of this source tree.
|
|
60
60
|
*
|
|
61
61
|
* @license MIT
|
|
62
|
-
*/function l(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=s(null==r?t.length-1:r),i="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function l(){return t[a]}function u(e,n=null,r){let o=h(t?l().pathname:"/",e,n,r);return f("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:m(e)}return{get index(){return a},get action(){return i},get location(){return l()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?v(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=u(e,n);a+=1,t.splice(a,t.length,r),o&&c&&c({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=u(e,n);t[a]=r,o&&c&&c({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,c&&c({action:i,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function u(e={}){return g((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=v(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),h("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:m(t))}),(function(e,t){f("/"===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 f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?v(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function m({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",l=null,u=d();function d(){return(i.state||{idx:null}).idx}function f(){c="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:c,location:v.location,delta:t})}function m(e){return y(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let v={get action(){return c},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(s,f),l=e,()=>{o.removeEventListener(s,f),l=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=h(v.location,e,t);n&&n(r,e),u=d()+1;let s=p(r,u),f=v.createHref(r);try{i.pushState(s,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&l&&l({action:c,location:v.location,delta:1})},replace:function(e,t){c="REPLACE";let r=h(v.location,e,t);n&&n(r,e),u=d();let o=p(r,u),s=v.createHref(r);i.replaceState(o,"",s),a&&l&&l({action:c,location:v.location,delta:0})},go:e=>i.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:m(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)?i("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 k=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function A(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.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]=O(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=O(n,t(n)),e.children&&(n.children=A(e.children,t,i,r,o)),n}}))}function O(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 E(e,t,n,!1)}function E(e,t,n,r){let o=M(("string"==typeof t?v(t):t).pathname||"/",n);if(null==o)return null;let a=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)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=I(o);i=R(a[e],t,r)}return i}function j(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function P(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,c)=>{let s={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)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=q([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,i)),(null!=e.path||e.index)&&t.push({path:l,score:N(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of T(e.path))a(e,t,!0,n);else a(e,t)})),t}function T(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=T(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var C=/^:[\w-]+$/,_=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=-2),t&&(r+=2),n.filter((e=>!_(e))).reduce(((e,t)=>e+(C.test(t)?3:""===t?1:10)),r)}function R(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=D({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=D({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:q([a,u.pathname]),pathnameBase:G(q([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=q([a,u.pathnameBase]))}return i}function D(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=L(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function L(e,t=!1,n=!0){f("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return f(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z=e=>F.test(e);function H(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function 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 U(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=U(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function $(e,t,n,r=!1){let o;"string"==typeof e?o=v(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 a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=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("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:o="",hash:a=""}="string"==typeof e?v(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?H(r.substring(1),"/"):H(r,t)):n=t,{pathname:n,search:V(o),hash:Y(a)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),u=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var q=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var K=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function X(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Z(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(Q)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=M(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:o=!0}catch(e){f(!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 ee=Symbol("Uninstrumented");function te(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=ne(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],a=n[`lazy.${t}`];if("function"==typeof o&&a.length>0){let e=ne(a,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[ee]??o,a=ne(n[e],t,((...e)=>oe(e[0])));a&&("loader"===e&&!0===t.hydrate&&(a.hydrate=!0),a[ee]=t,r[e]=a)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[ee]??e,r=ne(n.middleware,t,((...e)=>oe(e[0])));return r?(r[ee]=t,r):e}))),r}function ne(e,t,n){return 0===e.length?null:async(...r)=>{let o=await re(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function re(e,t,n,r){let o,a=e[r];if(a){let i,c=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=re(e,t,n,r-1),o=await i,d(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await a(c,t)}catch(e){console.error("An instrumentation function threw an error:",e)}i||await c(),await i}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 oe(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:ie(t),params:{...r},unstable_pattern:o,context:ce(n)}}function ae(e,t){return{currentUrl:m(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ce(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")===se}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var se=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var le=["POST","PUT","PATCH","DELETE"],ue=new Set(le),de=["GET",...le],fe=new Set(de),pe=new Set([301,302,303,307,308]),he=new Set([307,308]),me={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ve={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ge={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ye=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),be="remix-router-transitions",we=Symbol("ResetLoaderData");function xe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||ye,a=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...o(e),...te(t.map((e=>e.route)).filter(Boolean),e)})}let i,c={},s=A(e.routes,a,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let u,p,v=e.dataStrategy||De,g={...e.future},b=null,x=new Set,k=null,O=null,P=null,T=null!=e.hydrationData,C=S(s,e.history.location,l),_=!1,N=null;if(null!=C||e.patchRoutesOnNavigation){if(C&&!e.hydrationData){Ke(C,s,e.history.location.pathname).active&&(C=null)}if(C)if(C.some((e=>e.route.lazy)))u=!1;else if(C.some((e=>Se(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=C.findIndex((e=>void 0!==n[e.route.id]));u=C.slice(0,e+1).every((e=>!Ee(e.route,t,n)))}else u=C.every((e=>!Ee(e.route,t,n)))}else u=!0;else{u=!1,C=[];let t=Ke(null,s,e.history.location.pathname);t.active&&t.matches&&(_=!0,C=t.matches)}}else{let t=tt(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=et(s);u=!0,C=n,N={[r.id]:t}}let R,D,L={historyAction:e.history.action,location:e.history.location,matches:C,initialized:u,navigation:me,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||N,fetchers:new Map,blockers:new Map},I="POP",F=null,H=!1,B=!1,U=new Map,W=null,$=!1,q=!1,G=new Set,V=new Map,Y=0,K=-1,X=new Map,Q=new Set,Z=new Map,re=new Map,oe=new Set,ie=new Map,ce=null;function se(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=c[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),L={...L,...e};let n=[],r=[];L.fetchers.forEach(((e,t)=>{"idle"===e.state&&(oe.has(t)?n.push(t):r.push(t))})),oe.forEach((e=>{L.fetchers.has(e)||V.has(e)||n.push(e)})),[...x].forEach((r=>r(L,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>_e(e))),r.forEach((e=>L.fetchers.delete(e)))}function le(t,n,{flushSync:r}={}){let o,a=null!=L.actionData&&null!=L.navigation.formMethod&&ht(L.navigation.formMethod)&&"loading"===L.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?L.actionData:null;let c=n.loaderData?Xe(L.loaderData,n.loaderData,n.matches||[],n.errors):L.loaderData,l=L.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,ge))));let u,d=!$&&Ye(t,n.matches||L.matches),f=!0===H||null!=L.navigation.formMethod&&ht(L.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(s=i,i=void 0),$||"POP"===I||("PUSH"===I?e.history.push(t,t.state):"REPLACE"===I&&e.history.replace(t,t.state)),"POP"===I){let e=U.get(L.location.pathname);e&&e.has(t.pathname)?u={currentLocation:L.location,nextLocation:t}:U.has(t.pathname)&&(u={currentLocation:t,nextLocation:L.location})}else if(B){let e=U.get(L.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(L.location.pathname,e)),u={currentLocation:L.location,nextLocation:t}}se({...n,actionData:o,loaderData:c,historyAction:I,location:t,initialized:!0,navigation:me,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),I="POP",H=!1,B=!1,$=!1,q=!1,F?.resolve(),F=null,ce?.resolve(),ce=null}async function ue(t,n,o){R&&R.abort(),R=null,I=t,$=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(k&&P){let n=Ve(e,t);k[n]=P()}}(L.location,L.matches),H=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let u=i||s,d=o&&o.overrideNavigation,f=o?.initialHydration&&L.matches&&L.matches.length>0&&!_?L.matches:S(u,n,l),p=!0===(o&&o.flushSync);if(f&&L.initialized&&!q&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(L.location,n)&&!(o&&o.submission&&ht(o.submission.formMethod)))return void le(n,{matches:f},{flushSync:p});let h=Ke(f,u,n.pathname);if(h.active&&h.matches&&(f=h.matches),!f){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return void le(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}R=new AbortController;let m,v=Ge(e.history,n,R.signal,o&&o.submission),g=e.getContext?await e.getContext():new w;if(o&&o.pendingError)m=[Ze(f).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&ht(o.submission.formMethod)){let t=await async function(t,n,o,i,u,d,f,p={}){xe();let h,m=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,o);if(se({navigation:m},{flushSync:!0===p.flushSync}),d){let e=await rt(i,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}=et(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=Ze(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}=Ue(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}i=e.matches}let v=vt(i,n);if(v.route.action||v.route.lazy){let e=He(a,c,t,i,v,f?[]:r,u),n=await pe(t,e,u,null);if(h=n[v.route.id],!h)for(let e of i)if(n[e.route.id]){h=n[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else h={type:"error",error:tt(405,{method:t.method,pathname:n.pathname,routeId:v.route.id})};if(lt(h)){let n;if(p&&null!=p.replace)n=p.replace;else{n=qe(h.response.headers.get("Location"),new URL(t.url),l,e.history)===L.location.pathname+L.location.search}return await fe(t,h,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(st(h)){let e=Ze(i,v.route.id);return!0!==(p&&p.replace)&&(I="PUSH"),{matches:i,pendingActionResult:[e.route.id,h,v.route.id]}}return{matches:i,pendingActionResult:[v.route.id,h]}}(v,n,o.submission,f,g,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(st(r)&&J(r.error)&&404===r.error.status)return R=null,void le(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}f=t.matches||f,m=t.pendingActionResult,d=yt(n,o.submission),p=!1,h.active=!1,v=Ge(e.history,v.url,v.signal)}let{shortCircuited:y,matches:b,loaderData:x,errors:A}=await async function(t,n,o,u,d,f,p,h,m,v,g,y,b){let w=f||yt(n,p),x=p||h||gt(w),k=!$&&!v;if(d){if(k){let e=de(y);se({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:g})}let e=await rt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=et(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Ze(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let A=i||s,{dsMatches:O,revalidatingFetchers:S}=Oe(t,u,a,c,e.history,L,o,x,n,v?[]:r,!0===v,q,G,oe,Z,Q,A,l,null!=e.patchRoutesOnNavigation,y,b);if(K=++Y,!e.dataStrategy&&!O.some((e=>e.shouldLoad))&&!O.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Le();return le(n,{matches:o,loaderData:{},errors:y&&st(y[1])?{[y[0]]:y[1].error}:null,...Qe(y),...e?{fetchers:new Map(L.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(k){let e={};if(!d){e.navigation=w;let t=de(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=L.fetchers.get(e.key),n=bt(void 0,t?t.data:void 0);L.fetchers.set(e.key,n)})),new Map(L.fetchers)}(S)),se(e,{flushSync:g})}S.forEach((e=>{Ne(e.key),e.controller&&V.set(e.key,e.controller)}));let E=()=>S.forEach((e=>Ne(e.key)));R&&R.signal.addEventListener("abort",E);let{loaderResults:j,fetcherResults:P}=await we(O,S,t,u);if(t.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",E);S.forEach((e=>V.delete(e.key)));let T=nt(j);if(T)return await fe(t,T.result,!0,{replace:m}),{shortCircuited:!0};if(T=nt(P),T)return Q.add(T.key),await fe(t,T.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:C,errors:_}=Je(L,o,j,y,S,P);v&&L.errors&&(_={...L.errors,..._});let N=Le(),D=Ie(K),I=N||D||S.length>0;return{matches:o,loaderData:C,errors:_,...I?{fetchers:new Map(L.fetchers)}:{}}}(v,n,f,g,h.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m,o&&o.callSiteDefaultShouldRevalidate);y||(R=null,le(n,{matches:b||f,...Qe(m),loaderData:x,errors:A}))}function de(e){return e&&!st(e[1])?{[e[0]]:e[1].data}:L.actionData?0===Object.keys(L.actionData).length?null:L.actionData:void 0}async function fe(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){a||(F?.resolve(),F=null),o.response.headers.has("X-Remix-Revalidate")&&(q=!0);let f=o.response.headers.get("Location");d(f,"Expected a Location header on the redirect Response"),f=qe(f,new URL(r.url),l,e.history);let p=h(L.location,f,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(z(f)){const n=y(f,!0);e=n.origin!==t.location.origin||null==M(n.pathname,l)}if(e)return void(u?t.location.replace(f):t.location.assign(f))}R=null;let m=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:v,formAction:g,formEncType:b}=L.navigation;!i&&!c&&v&&g&&b&&(i=gt(L.navigation));let w=i||c;if(he.has(o.response.status)&&w&&ht(w.formMethod))await ue(m,p,{submission:{...w,formAction:f},preventScrollReset:s||H,enableViewTransition:a?B:void 0});else{let e=yt(p,i);await ue(m,p,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||H,enableViewTransition:a?B:void 0})}}async function pe(e,t,n,r){let o,a={};try{o=await Be(v,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;if(!ht(e.method))for(let e of t){if("error"===o[e.route.id]?.type)break;o.hasOwnProperty(e.route.id)||L.loaderData.hasOwnProperty(e.route.id)||L.errors&&L.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(o[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[n,r]of Object.entries(o))if(ct(r)){let o=r.result;a[n]={type:"redirect",response:$e(o,e,n,t,l)}}else a[n]=await We(r);return a}async function we(e,t,n,r){let o=pe(n,e,r,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await pe(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:tt(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function xe(){q=!0,Z.forEach(((e,t)=>{V.has(t)&&G.add(t),Ne(t)}))}function je(e,t,n={}){L.fetchers.set(e,t),se({fetchers:new Map(L.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Te(e,t,n,r={}){let o=Ze(L.matches,t);_e(e),se({errors:{[o.route.id]:n},fetchers:new Map(L.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ce(e){return re.set(e,(re.get(e)||0)+1),oe.has(e)&&oe.delete(e),L.fetchers.get(e)||ve}function _e(e){let t=L.fetchers.get(e);!V.has(e)||t&&"loading"===t.state&&X.has(e)||Ne(e),Z.delete(e),X.delete(e),Q.delete(e),oe.delete(e),G.delete(e),L.fetchers.delete(e)}function Ne(e,t){let n=V.get(e);n&&(n.abort(t),V.delete(e))}function Re(e){for(let t of e){let e=wt(Ce(t).data);L.fetchers.set(t,e)}}function Le(){let e=[],t=!1;for(let n of Q){let r=L.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(Q.delete(n),e.push(n),t=!0)}return Re(e),t}function Ie(e){let t=[];for(let[n,r]of X)if(r<e){let e=L.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ne(n),X.delete(n),t.push(n))}return Re(t),t.length>0}function Me(e){L.blockers.delete(e),ie.delete(e)}function Fe(e,t){let n=L.blockers.get(e)||ge;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(L.blockers);r.set(e,t),se({blockers:r})}function ze({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ie.size)return;ie.size>1&&f(!1,"A router only supports one blocker at a time");let r=Array.from(ie.entries()),[o,a]=r[r.length-1],i=L.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ue(e){let t=tt(404,{pathname:e}),n=i||s,{matches:r,route:o}=et(n);return{notFoundMatches:r,route:o,error:t}}function Ve(e,t){if(O){return O(e,t.map((e=>j(e,L.loaderData))))||e.key}return e.key}function Ye(e,t){if(k){let n=Ve(e,t),r=k[n];if("number"==typeof r)return r}return null}function Ke(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:E(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:E(n,r,l,!0)}}}return{active:!1,matches:null}}async function rt(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==i,d=i||s,f=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||Pe(e,t,d,f,a,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let p=S(d,n,l),h=null;if(p){if(0===Object.keys(p[0].params).length)return{type:"success",matches:p};if(h=E(d,n,l,!0),!(h&&u.length<h.length&&ot(u,h.slice(0,u.length))))return{type:"success",matches:p}}if(h||(h=E(d,n,l,!0)),!h||ot(u,h))return{type:"success",matches:null};u=h}}function ot(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return p={get basename(){return l},get future(){return g},get state(){return L},get routes(){return s},get window(){return t},initialize:function(){if(b=e.history.listen((({action:t,location:n,delta:r})=>{if(D)return D(),void(D=void 0);f(0===ie.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=ze({currentLocation:L.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{D=e}));return e.history.go(-1*r),Fe(o,{state:"blocked",location:n,proceed(){Fe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(L.blockers);e.set(o,ge),se({blockers:e})}}),F?.resolve(),void(F=null)}return ue(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(be);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,U);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(be,JSON.stringify(n))}catch(e){f(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,U);t.addEventListener("pagehide",e),W=()=>t.removeEventListener("pagehide",e)}return L.initialized||ue("POP",L.location,{initialHydration:!0}),p},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,n){if(k=e,P=t,O=n||null,!T&&L.navigation===me){T=!0;let e=Ye(L.location,L.matches);null!=e&&se({restoreScrollPosition:e})}return()=>{k=null,P=null,O=null}},navigate:async function t(n,r){if(F?.resolve(),F=null,"number"==typeof n){F||(F=xt());let t=F.promise;return e.history.go(n),t}let o=ke(L.location,L.matches,l,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=Ae(!1,o,r),s=L.location,u=h(L.location,a,r&&r.state);u={...u,...e.history.encodeLocation(u)};let d=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===d?f="REPLACE":!1===d||null!=i&&ht(i.formMethod)&&i.formAction===L.location.pathname+L.location.search&&(f="REPLACE");let p=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),v=ze({currentLocation:s,nextLocation:u,historyAction:f});v?Fe(v,{state:"blocked",location:u,proceed(){Fe(v,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(L.blockers);e.set(v,ge),se({blockers:e})}}):await ue(f,u,{submission:i,pendingError:c,preventScrollReset:p,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){Ne(t);let f=!0===(u&&u.flushSync),p=i||s,h=ke(L.location,L.matches,l,o,n,u?.relative),m=S(p,h,l),v=Ke(m,p,h);if(v.active&&v.matches&&(m=v.matches),!m)return void Te(t,n,tt(404,{pathname:h}),{flushSync:f});let{path:g,submission:y,error:b}=Ae(!0,h,u);if(b)return void Te(t,n,b,{flushSync:f});let x=e.getContext?await e.getContext():new w,k=!0===(u&&u.preventScrollReset);y&&ht(y.formMethod)?await async function(t,n,o,u,f,p,h,m,v,g){xe(),Z.delete(t);let y=L.fetchers.get(t);je(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}(v,y),{flushSync:h});let b=new AbortController,w=Ge(e.history,o,b.signal,v);if(p){let e=await rt(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:h});if(!e.matches)return void Te(t,n,tt(404,{pathname:o}),{flushSync:h});u=e.matches}let x=vt(u,o);if(!x.route.action&&!x.route.lazy){let e=tt(405,{method:v.formMethod,pathname:o,routeId:n});return void Te(t,n,e,{flushSync:h})}V.set(t,b);let k=Y,A=He(a,c,w,u,x,r,f),O=await pe(w,A,f,t),E=O[x.route.id];if(!E)for(let e of A)if(O[e.route.id]){E=O[e.route.id];break}if(w.signal.aborted)return void(V.get(t)===b&&V.delete(t));if(oe.has(t)){if(lt(E)||st(E))return void je(t,wt(void 0))}else{if(lt(E))return V.delete(t),K>k?void je(t,wt(void 0)):(Q.add(t),je(t,bt(v)),fe(w,E,!1,{fetcherSubmission:v,preventScrollReset:m}));if(st(E))return void Te(t,n,E.error)}let j=L.navigation.location||L.location,P=Ge(e.history,j,b.signal),T=i||s,C="idle"!==L.navigation.state?S(T,L.navigation.location,l):L.matches;d(C,"Didn't find any matches after fetcher action");let _=++Y;X.set(t,_);let N=bt(v,E.data);L.fetchers.set(t,N);let{dsMatches:D,revalidatingFetchers:M}=Oe(P,f,a,c,e.history,L,C,v,j,r,!1,q,G,oe,Z,Q,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,E],g);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=L.fetchers.get(t),r=bt(void 0,n?n.data:void 0);L.fetchers.set(t,r),Ne(t),e.controller&&V.set(t,e.controller)})),se({fetchers:new Map(L.fetchers)});let F=()=>M.forEach((e=>Ne(e.key)));b.signal.addEventListener("abort",F);let{loaderResults:z,fetcherResults:H}=await we(D,M,P,f);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",F),X.delete(t),V.delete(t),M.forEach((e=>V.delete(e.key))),L.fetchers.has(t)){let e=wt(E.data);L.fetchers.set(t,e)}let B=nt(z);if(B)return fe(P,B.result,!1,{preventScrollReset:m});if(B=nt(H),B)return Q.add(B.key),fe(P,B.result,!1,{preventScrollReset:m});let{loaderData:U,errors:W}=Je(L,C,z,void 0,M,H);Ie(_),"loading"===L.navigation.state&&_>K?(d(I,"Expected pending action"),R&&R.abort(),le(L.navigation.location,{matches:C,loaderData:U,errors:W,fetchers:new Map(L.fetchers)})):(se({errors:W,loaderData:Xe(L.loaderData,U,C,W),fetchers:new Map(L.fetchers)}),q=!1)}(t,n,g,m,x,v.active,f,k,y,u&&u.unstable_defaultShouldRevalidate):(Z.set(t,{routeId:n,path:g}),await async function(t,n,o,i,s,l,u,d,f){let p=L.fetchers.get(t);je(t,bt(f,p?p.data:void 0),{flushSync:u});let h=new AbortController,m=Ge(e.history,o,h.signal);if(l){let e=await rt(i,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:u});if(!e.matches)return void Te(t,n,tt(404,{pathname:o}),{flushSync:u});i=e.matches}let v=vt(i,o);V.set(t,h);let g=Y,y=He(a,c,m,i,v,r,s),b=await pe(m,y,s,t),w=b[v.route.id];V.get(t)===h&&V.delete(t);if(m.signal.aborted)return;if(oe.has(t))return void je(t,wt(void 0));if(lt(w))return K>g?void je(t,wt(void 0)):(Q.add(t),void await fe(m,w,!1,{preventScrollReset:d}));if(st(w))return void Te(t,n,w.error);je(t,wt(w.data))}(t,n,g,m,x,v.active,f,k,y))},revalidate:function(){ce||(ce=xt()),xe(),se({revalidation:"loading"});let e=ce.promise;return"submitting"===L.navigation.state?e:"idle"===L.navigation.state?(ue(L.historyAction,L.location,{startUninterruptedRevalidation:!0}),e):(ue(I||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation,enableViewTransition:!0===B}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ce,resetFetcher:function(e,t){Ne(e,t?.reason),je(e,wt(null))},deleteFetcher:function(e){let t=(re.get(e)||0)-1;t<=0?(re.delete(e),oe.add(e)):re.set(e,t),se({fetchers:new Map(L.fetchers)})},dispose:function(){b&&b(),W&&W(),x.clear(),R&&R.abort(),L.fetchers.forEach(((e,t)=>_e(t))),L.blockers.forEach(((e,t)=>Me(t)))},getBlocker:function(e,t){let n=L.blockers.get(e)||ge;return ie.get(e)!==t&&ie.set(e,t),n},deleteBlocker:Me,patchRoutes:function(e,t,n=!1){let r=null==i;Pe(e,t,i||s,c,a,n),r&&(s=[...s],se({}))},_internalFetchControllers:V,_internalSetRoutes:function(e){c={},i=A(e,a,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){se(e)}},e.unstable_instrumentations&&(p=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[ee]??e.navigate,r=ne(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?m(n):".",...ae(e,r??{})}}));r&&(r[ee]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[ee]??e.fetch,r=ne(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...ae(e,o??{})}}));r&&(r[ee]=t,e.fetch=r)}return e}(p,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),p}function ke(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=$(r||".",W(i),M(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=mt(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:q([e,t])}({basename:n,pathname:s.pathname})),m(s)}function Ae(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!pt(n.formMethod))return{path:t,error:tt(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:tt(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=rt(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ht(i))return a();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:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ht(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ve(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ve(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ye(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ye(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ht(s.formMethod))return{path:t,submission:s};let l=v(t);return e&&l.search&&mt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:m(l),submission:s}}function Oe(e,t,n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g,y,b,w){let x,k=b?st(b[1])?b[1].error:b[1].data:void 0,A=o.createURL(a.location),O=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];x=i.findIndex((t=>t.route.id===e))}else if(b&&st(b[1])){let e=b[0];x=i.findIndex((t=>t.route.id===e))-1}let E=b?b[1].statusCode:void 0,j=E&&E>=400,P={currentUrl:A,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:i[0].params,...c,actionResult:k,actionStatus:E},T=X(i),C=i.map(((o,i)=>{let{route:c}=o,s=null;if(null!=x&&i>x?s=!1:c.lazy?s=!0:Se(c)?u?s=Ee(c,a.loaderData,a.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(a.loaderData,a.matches[i],o)&&(s=!0):s=!1,null!==s)return ze(n,r,e,T,o,l,t,s);let f=!1;"boolean"==typeof w?f=w:j?f=!1:(d||A.pathname+A.search===O.pathname+O.search||A.search!==O.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o))&&(f=!0);let p={...P,defaultShouldRevalidate:f},h=je(o,p);return ze(n,r,e,T,o,l,t,h,p,w)})),_=[];return h.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||p.has(c))return;let s=a.fetchers.get(c),h=s&&"idle"!==s.state&&void 0===s.data,b=S(v,e.path,g);if(!b){if(y&&h)return;return void _.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(c))return;let x=vt(b,e.path),k=new AbortController,A=Ge(o,e.path,k.signal),O=null;if(f.has(c))f.delete(c),O=He(n,r,A,b,x,l,t);else if(h)d&&(O=He(n,r,A,b,x,l,t));else{let e;e="boolean"==typeof w?w:!j&&d;let o={...P,defaultShouldRevalidate:e};je(x,o)&&(O=He(n,r,A,b,x,l,t,o))}O&&_.push({key:c,routeId:e.routeId,path:e.path,matches:O,match:x,request:A,controller:k})})),{dsMatches:C,revalidatingFetchers:_}}function Se(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Ee(e,t,n){if(e.lazy)return!0;if(!Se(e))return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function je(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Pe(e,t,n,r,o,a){let i;if(e){let t=r[e];d(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>Te(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=A(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=A([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function Te(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=>Te(e,t))))))}var Ce=new WeakMap,_e=({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 a=o.lazy[e];if(!a)return;let i=Ce.get(o);i||(i={},Ce.set(o,i));let c=i[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)f(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)f(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();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 i[e]=s,s},Ne=new WeakMap;async function Re(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 De(e){return e.matches.some((e=>e.route.middleware))?Le(e,(()=>Re(e))):Re(e)}function Le(e,t){return Ie(e,t,(e=>{if(ft(e))throw e;return e}),at,(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)),a=Ze(r,r[o].route.id).route.id;return Promise.resolve({[a]:{type:"error",result:t}})}}))}async function Ie(e,t,n,r,o){let{matches:a,request:i,params:c,context:s,unstable_pattern:l}=e,u=a.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await Me({request:i,params:c,context:s,unstable_pattern:l},u,t,n,r,o)}async function Me(e,t,n,r,o,a,i=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let s=t[i];if(!s){return await n()}let l,[u,d]=s,f=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await Me(e,t,n,r,o,a,i+1);return l={value:c},l.value}catch(e){return l={value:await a(e,u,l)},l.value}};try{let t=await d(e,f),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await f()},l.value)}catch(e){return await a(e,u,l)}}function Fe(e,t,n,r,o){let a=_e({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(d(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Ne.get(a);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 i=(o=e,k.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?f(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?f(!c,`Route "${a.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(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Ne.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=_e({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:i}}(r.route,ht(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function ze(e,t,n,r,o,a,i,c,s=null,l){let u=!1,d=Fe(e,t,n,o,a);return{...o,_lazyPromises:d,shouldLoad:c,shouldRevalidateArgs:s,shouldCallHandler:e=>(u=!0,s?je(o,"boolean"==typeof l?{...s,defaultShouldRevalidate:l}:"boolean"==typeof e?{...s,defaultShouldRevalidate:e}:s):c),resolve(e){let{lazy:t,loader:a,middleware:s}=o.route,l=u||c||e&&!ht(n.method)&&(t||a),f=s&&s.length>0&&!a&&!t;return!l||!ht(n.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:a,scopedContext:i}){let c,s,l=ht(e.method),u=l?"action":"loader",d=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),e.signal.addEventListener("abort",s);let l=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)):r({request:e,unstable_pattern:t,params:n.params,context:i},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(a?a((e=>l(e))):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,c])};try{let t=l?n.route.action:n.route.loader;if(r||o)if(t){let e,[n]=await Promise.all([d(t).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=n}else{await r;let t=l?n.route.action:n.route.loader;if(!t){if("action"===u){let t=new URL(e.url),r=t.pathname+t.search;throw tt(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw tt(404,{pathname:t.pathname+t.search})}c=await d(t)}}catch(e){return{type:"error",result:e}}finally{s&&e.signal.removeEventListener("abort",s)}return c}({request:n,unstable_pattern:r,match:o,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:i})}}}function He(e,t,n,r,o,a,i,c=null){return r.map((s=>s.route.id!==o.route.id?{...s,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Fe(e,t,n,s,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ze(e,t,n,X(r),s,a,i,!0,c)))}async function Be(e,t,n,r,o,a){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let i={request:t,unstable_pattern:X(n),params:n[0].params,context:o,matches:n},c=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=i;return Le(t,(()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},s=await e({...i,fetcherKey:r,runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function Ue(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function We(e){let{result:t,type:n}=e;if(dt(t)){let e;try{e=await Ue(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new K(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?ut(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:ot(t),statusCode:J(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:J(t)?t.status:void 0}:ut(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 $e(e,t,n,r,o){let a=e.headers.get("Location");if(d(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!z(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ke(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function qe(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(z(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(o.includes(a.protocol))throw new Error("Invalid redirect location");let i=null!=M(a.pathname,n);if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}try{let t=r.createURL(e);if(o.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Ge(e,t,n,r){let o=e.createURL(rt(t)).toString(),a={signal:n};if(r&&ht(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Ve(r.formData):a.body=r.formData}return new Request(o,a)}function Ve(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ye(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ke(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},u=n&&st(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(d(!lt(p),"Cannot handle redirect results in processLoaderData"),st(p)){let t=p.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[f]=t;else{let n=Ze(e,f);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[f]=we),s||(s=!0,a=J(p.error)?p.error.status:500),p.headers&&(l[f]=p.headers)}else i[f]=p.data,p.statusCode&&200!==p.statusCode&&!s&&(a=p.statusCode),p.headers&&(l[f]=p.headers)})),void 0!==u&&n&&(c={[n[0]]:u},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:l}}function Je(e,t,n,r,o,a){let{loaderData:i,errors:c}=Ke(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 i=a[n];if(d(i,"Did not find corresponding fetcher result"),st(i)){let t=Ze(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(lt(i))d(!1,"Unhandled fetcher revalidation redirect");else{let t=wt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Xe(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==we)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Qe(e){return e?st(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ze(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 et(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 tt(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="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?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="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 K(e||500,i,new Error(c),!0)}function nt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(lt(r))return{key:n,result:r}}}function rt(e){return m({..."string"==typeof e?v(e):e,hash:""})}function ot(e){return new K(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function at(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&it(t)))}function it(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function ct(e){return dt(e.result)&&pe.has(e.result.status)}function st(e){return"error"===e.type}function lt(e){return"redirect"===(e&&e.type)}function ut(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function dt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ft(e){return dt(e)&&(t=e.status,pe.has(t))&&e.headers.has("Location");var t}function pt(e){return fe.has(e.toUpperCase())}function ht(e){return ue.has(e.toUpperCase())}function mt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function vt(e,t){let n="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&mt(n||""))return e[e.length-1];let r=U(e);return r[r.length-1]}function gt(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function yt(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 bt(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 wt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function xt(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var kt=a.createContext(null);kt.displayName="DataRouter";var At=a.createContext(null);At.displayName="DataRouterState";var Ot=a.createContext(!1);function St(){return a.useContext(Ot)}var Et=a.createContext({isTransitioning:!1});Et.displayName="ViewTransition";var jt=a.createContext(new Map);jt.displayName="Fetchers";var Pt=a.createContext(null);Pt.displayName="Await";var Tt=a.createContext(null);Tt.displayName="Navigation";var Ct=a.createContext(null);Ct.displayName="Location";var _t=a.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var Nt=a.createContext(null);Nt.displayName="RouteError";var Rt="REACT_ROUTER_ERROR";function Dt(){return null!=a.useContext(Ct)}function Lt(){return d(Dt(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Ct).location}var It="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mt(e){a.useContext(Tt).static||a.useLayoutEffect(e)}function Ft(){let{isDataRoute:e}=a.useContext(_t);return e?function(){let{router:e}=Jt("useNavigate"),t=Qt("useNavigate"),n=a.useRef(!1);return Mt((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{f(n.current,It),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(Dt(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(kt),{basename:t,navigator:n}=a.useContext(Tt),{matches:r}=a.useContext(_t),{pathname:o}=Lt(),i=JSON.stringify(W(r)),c=a.useRef(!1);return Mt((()=>{c.current=!0})),a.useCallback(((r,a={})=>{if(f(c.current,It),!c.current)return;if("number"==typeof r)return void n.go(r);let s=$(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:q([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}),[t,n,i,o,e])}()}a.createContext(null);function zt(){let{matches:e}=a.useContext(_t),t=e[e.length-1];return t?t.params:{}}function Ht(e,{relative:t}={}){let{matches:n}=a.useContext(_t),{pathname:r}=Lt(),o=JSON.stringify(W(n));return a.useMemo((()=>$(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function Bt(e,t,n,r,o){d(Dt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=a.useContext(Tt),{matches:c}=a.useContext(_t),s=c[c.length-1],l=s?s.params:{},u=s?s.pathname:"/",p=s?s.pathnameBase:"/",h=s&&s.route;{let e=h&&h.path||"";on(u,!h||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (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 m,g=Lt();if(t){let e="string"==typeof t?v(t):t;d("/"===p||e.pathname?.startsWith(p),`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 "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`),m=e}else m=g;let y=m.pathname||"/",b=y;if("/"!==p){let e=p.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=S(e,{pathname:b});f(h||null!=w,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),f(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${m.pathname}${m.search}${m.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 x=Yt(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:q([p,i.encodeLocation?i.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:q([p,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),c,n,r,o);return t&&x?a.createElement(Ct.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},x):x}function Ut(){let e=en(),t=J(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,c)}var Wt=a.createElement(Ut,null),$t=class extends a.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(`${Rt}: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 K(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(_t.Provider,{value:this.props.routeContext},a.createElement(Nt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Gt,{error:e},t):t}};$t.contextType=Ot;var qt=new WeakMap;function Gt({children:e,error:t}){let{basename:n}=a.useContext(Tt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Rt}: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=qt.get(t);if(r)throw r;let o=Z(e.location,n);if(Q&&!qt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw qt.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Vt({routeContext:e,match:t,children:n}){let r=a.useContext(kt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(_t.Provider,{value:e},n)}function Yt(e,t=[],n=null,r=null,o=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,c=n?.errors;if(null!=c){let e=i.findIndex((e=>e.route.id&&void 0!==c?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,l=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){s=!0,i=l>=0?i.slice(0,l+1):[i[0]];break}}}let u=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:X(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,o)=>{let d,f=!1,p=null,h=null;n&&(d=c&&r.route.id?c[r.route.id]:void 0,p=r.route.errorElement||Wt,s&&(l<0&&0===o?(on("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):l===o&&(f=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,o+1)),v=()=>{let t;return t=d?p:f?h:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(Vt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?a.createElement($t,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):v()}),null)}function Kt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jt(e){let t=a.useContext(kt);return d(t,Kt(e)),t}function Xt(e){let t=a.useContext(At);return d(t,Kt(e)),t}function Qt(e){let t=function(e){let t=a.useContext(_t);return d(t,Kt(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 Zt(){let{matches:e,loaderData:t}=Xt("useMatches");return a.useMemo((()=>e.map((e=>j(e,t)))),[e,t])}function en(){let e=a.useContext(Nt),t=Xt("useRouteError"),n=Qt("useRouteError");return void 0!==e?e:t.errors?.[n]}var tn=0;function nn(e){let{router:t,basename:n}=Jt("useBlocker"),r=Xt("useBlocker"),[o,i]=a.useState(""),c=a.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:{...r,pathname:M(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:M(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return a.useEffect((()=>{let e=String(++tn);return i(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==o&&t.getBlocker(o,c)}),[t,o,c]),o&&r.blockers.has(o)?r.blockers.get(o):ge}var rn={};function on(e,t,n){t||rn[e]||(rn[e]=!0,f(!1,n))}var an={};function cn(e,t){e||an[t]||(an[t]=!0,console.warn(t))}var sn=(r||(r=n.t(a,2))).useOptimistic,ln=()=>{};function un(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&f(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:a.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&f(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&f(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var dn=["HydrateFallback","hydrateFallbackElement"];function fn(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:l({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:dn,mapRouteProperties:un,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var pn=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 hn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=St();r=o||r;let[i,c]=a.useState(e.state),[s,l]=(u=i,sn?sn(u):[u,ln]);var u;let[d,f]=a.useState(),[p,h]=a.useState({isTransitioning:!1}),[m,v]=a.useState(),[g,y]=a.useState(),[b,w]=a.useState(),x=a.useRef(new Map),k=a.useCallback(((o,{deletedFetchers:i,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:X(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),i.forEach((e=>x.current.delete(e))),cn(!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 p=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(cn(null==d||p,"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&&p){if(t&&u){t((()=>{g&&(m?.resolve(),g.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{v(void 0),y(void 0),f(void 0),h({isTransitioning:!1})}))})),void t((()=>y(n)))}g?(m?.resolve(),g.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(f(o),h({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t((()=>c(o))):!1===r?c(o):a.startTransition((()=>{!0===r&&l((e=>mn(e,o))),c(o)}))}),[e.window,t,g,m,r,l,n]);a.useLayoutEffect((()=>e.subscribe(k)),[e,k]),a.useEffect((()=>{p.isTransitioning&&!p.flushSync&&v(new pn)}),[p]),a.useEffect((()=>{if(m&&d&&e.window){let t=d,n=m.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):a.startTransition((()=>{!0===r&&l((e=>mn(e,t))),c(t)})),await n}));o.finished.finally((()=>{v(void 0),y(void 0),f(void 0),h({isTransitioning:!1})})),y(o)}}),[d,m,e.window,r,l]),a.useEffect((()=>{m&&d&&s.location.key===d.location.key&&m.resolve()}),[m,g,s.location,d]),a.useEffect((()=>{!p.isTransitioning&&b&&(f(b.state),h({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))}),[p.isTransitioning,b]);let A=a.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]),O=e.basename||"/",S=a.useMemo((()=>({router:e,navigator:A,static:!1,basename:O,onError:n})),[e,A,O,n]);return a.createElement(a.Fragment,null,a.createElement(kt.Provider,{value:S},a.createElement(At.Provider,{value:s},a.createElement(jt.Provider,{value:x.current},a.createElement(Et.Provider,{value:p},a.createElement(bn,{basename:O,location:s.location,navigationType:s.historyAction,navigator:A,unstable_useTransitions:r},a.createElement(vn,{routes:e.routes,future:e.future,state:s,onError:n})))))),null)}function mn(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 vn=a.memo((function({routes:e,future:t,state:n,onError:r}){return Bt(e,void 0,n,r,t)}));function gn({to:e,replace:t,state:n,relative:r}){d(Dt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(Tt);f(!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:i}=a.useContext(_t),{pathname:c}=Lt(),s=Ft(),l=$(e,W(i),c,"path"===r),u=JSON.stringify(l);return a.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function yn(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 bn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:c}){d(!Dt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:s,navigator:o,static:i,unstable_useTransitions:c,future:{}})),[s,o,i,c]);"string"==typeof n&&(n=v(n));let{pathname:u="/",search:p="",hash:h="",state:m=null,key:g="default"}=n,y=a.useMemo((()=>{let e=M(u,s);return null==e?null:{location:{pathname:e,search:p,hash:h,state:m,key:g},navigationType:r}}),[s,u,p,h,m,g,r]);return f(null!=y,`<Router basename="${s}"> is not able to match the URL "${u}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:a.createElement(Tt.Provider,{value:l},a.createElement(Ct.Provider,{children:t,value:y}))}function wn({children:e,location:t}){return Bt(xn(e),t)}a.Component;function xn(e,t=[]){let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,xn(e.props.children,o));d(e.type===yn,`[${"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 i={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&&(i.children=xn(e.props.children,o)),n.push(i)})),n}var kn="get",An="application/x-www-form-urlencoded";function On(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Sn(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var En=null;var jn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pn(e){return null==e||jn.has(e)?e:(f(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${An}"`),null)}function Tn(e,t){let n,r,o,a,i;if(On(c=e)&&"form"===c.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?M(i,t):null,n=e.getAttribute("method")||kn,o=Pn(e.getAttribute("enctype"))||An,a=new FormData(e)}else if(function(e){return On(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return On(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?M(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||kn,o=Pn(e.getAttribute("formenctype"))||Pn(i.getAttribute("enctype"))||An,a=new FormData(i,e),!function(){if(null===En)try{new FormData(document.createElement("form"),0),En=!1}catch(e){En=!0}return En}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(On(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=kn,r=null,o=An,i=e}var c;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;var Cn={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},_n=/[&><\u2028\u2029]/g;function Nn(e){return e.replace(_n,(e=>Cn[e]))}function Rn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Dn(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===M(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Ln(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 Fn(e,t,n,r,o,a){let i=(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"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))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 zn(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 a=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(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function Bn(e,t){return"lazy"===e.mode&&!0===t}function Un(){let e=a.useContext(kt);return Rn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Wn(){let e=a.useContext(At);return Rn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $n=a.createContext(void 0);function qn(){let e=a.useContext($n);return Rn(e,"You must render this element inside a <HydratedRouter> element"),e}function Gn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Vn(e,t,n){if(n&&!Xn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}$n.displayName="FrameworkContext";function Yn({page:e,...t}){let{router:n}=Un(),r=a.useMemo((()=>S(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?a.createElement(Jn,{page:e,matches:r,...t}):null}function Kn(e){let{manifest:t,routeModules:n}=qn(),[r,o]=a.useState([]);return a.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 Ln(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=Lt(),{future:o,manifest:i,routeModules:c}=qn(),{basename:s}=Un(),{loaderData:l,matches:u}=Wn(),d=a.useMemo((()=>Fn(e,t,u,i,r,"data")),[e,t,u,i,r]),f=a.useMemo((()=>Fn(e,t,u,i,r,"assets")),[e,t,u,i,r]),p=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach((e=>{let t=i.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?a=!0:n.add(e.route.id))})),0===n.size)return[];let u=Dn(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return a&&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,i,d,t,e,c]),h=a.useMemo((()=>zn(f,i)),[f,i]),m=Kn(f);return a.createElement(a.Fragment,null,p.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),h.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var Xn=!1;function Qn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:c}=qn(),{router:s,static:l,staticContext:u}=Un(),{matches:d}=Wn(),f=St(),p=Bn(i,c);o&&(o.didRenderScripts=!0);let h=Vn(d,null,r);a.useEffect((()=>{0}),[]);let m=a.useMemo((()=>{if(f)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)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Rn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,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 ${p?`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),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=S(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))}),[]),v=Xn||f?[]:(t.entry.imports.concat(zn(h,t,{includeHydrateFallback:!0})),[...new Set(g)]);var g;let y="object"==typeof t.sri?t.sri:{};return cn(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Xn||f?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,p?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),v.map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),m)}function Zn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}a.Component;function er({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(J(e))return a.createElement(tr,{title:"Unhandled Thrown Response!"},a.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 a.createElement(tr,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.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}=qn();return o.root?.Layout&&!n?r:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?a.createElement(Qn,null):null)))}var nr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{nr&&(window.__reactRouterVersion="7.13.0")}catch(e){}function rr(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||or(),routes:e,mapRouteProperties:un,hydrationRouteProperties:dn,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:ar(e.errors)}),e}function ar(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 K(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 ir=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,state:c,target:s,to:l,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:p,...h},v){let{basename:g,unstable_useTransitions:y}=a.useContext(Tt),b="string"==typeof l&&ir.test(l),w=Z(l,g),x=function(e,{relative:t}={}){d(Dt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(Tt),{hash:o,pathname:i,search:c}=Ht(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:q([n,i])),r.createHref({pathname:s,search:c,hash:o})}(l=w.to,{relative:r}),[k,A,O]=function(e,t){let n=a.useContext($n),[r,o]=a.useState(!1),[i,c]=a.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{o(!0)},m=()=>{o(!1),c(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:Gn(s,h),onBlur:Gn(l,m),onMouseEnter:Gn(u,h),onMouseLeave:Gn(d,m),onTouchStart:Gn(f,h)}]:[!1,p,{}]}(n,h),S=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=Ft(),d=Lt(),f=Ht(e,{relative:i});return a.useCallback((p=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(p,t)){p.preventDefault();let t=void 0!==n?n:m(d)===m(f),h=()=>u(e,{replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:s});l?a.startTransition((()=>h())):h()}}),[d,u,f,n,r,t,e,o,i,c,s,l])}(l,{replace:i,state:c,target:s,preventScrollReset:u,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y});let E=a.createElement("a",{...h,...O,href:w.absoluteURL||x,onClick:w.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||S(t)},ref:Zn(v,A),target:s,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?a.createElement(a.Fragment,null,E,a.createElement(Yn,{page:x})):E}));cr.displayName="Link",a.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:c,children:s,...l},u){let f=Ht(i,{relative:l.relative}),p=Lt(),h=a.useContext(At),{navigator:m,basename:v}=a.useContext(Tt),g=null!=h&&function(e,{relative:t}={}){let n=a.useContext(Et);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dr("useViewTransitionState"),o=Ht(e,{relative:t});if(!n.isTransitioning)return!1;let i=M(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=M(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=D(o.pathname,c)||null!=D(o.pathname,i)}(f)&&!0===c,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,b=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&v&&(w=M(w,v)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,A=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),O=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:A,isPending:O,isTransitioning:g},E=A?e:void 0;k="function"==typeof n?n(S):[n,A?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(S):o;return a.createElement(cr,{...l,"aria-current":E,className:k,ref:u,style:j,to:i,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var sr=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:c=kn,action:s,onSubmit:l,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...v},g)=>{let{unstable_useTransitions:y}=a.useContext(Tt),b=mr(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(Tt),r=a.useContext(_t);d(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Ht(e||".",{relative:t})},c=Lt();if(null==e){i.search=c.search;let e=new URLSearchParams(i.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();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:q([n,i.pathname]));return m(i)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",k="string"==typeof s&&ir.test(s);return a.createElement("form",{ref:g,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:i,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h});y&&!1!==n?a.startTransition((()=>d())):d()},...v,"data-discover":k||"render"!==e?void 0:"true"})}));function lr({getKey:e,storageKey:t,...n}){let r=a.useContext($n),{basename:o}=a.useContext(Tt),i=Lt(),c=Zt();!function({getKey:e,storageKey:t}={}){let{router:n}=dr("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=fr("useScrollRestoration"),{basename:i}=a.useContext(Tt),c=Lt(),s=Zt(),l=Xt("useNavigation").navigation;a.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};a.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(a.useCallback((()=>{if("idle"===l.state){let t=yr(c,s,i,e);gr[t]=window.scrollY}try{sessionStorage.setItem(t||vr,JSON.stringify(gr))}catch(e){f(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"}),[l.state,e,i,c,s,t])),"undefined"!=typeof document&&(a.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(t||vr);e&&(gr=JSON.parse(e))}catch(e){}}),[t]),a.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(gr,(()=>window.scrollY),e?(t,n)=>yr(t,n,i,e):void 0);return()=>t&&t()}),[n,i,e]),a.useLayoutEffect((()=>{if(!1!==r)if("number"!=typeof r){try{if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{f(!1,`"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==o&&window.scrollTo(0,0)}else window.scrollTo(0,r)}),[c,r,o]))}({getKey:e,storageKey:t});let s=a.useMemo((()=>{if(!r||!e)return null;let t=yr(i,c,o,e);return t!==i.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return a.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${Nn(JSON.stringify(t||vr))}, ${Nn(JSON.stringify(s))})`}})}function ur(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dr(e){let t=a.useContext(kt);return d(t,ur(e)),t}function fr(e){let t=a.useContext(At);return d(t,ur(e)),t}function pr(e){f("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(Sn(e)),n=a.useRef(!1),r=Lt(),o=a.useMemo((()=>function(e,t){let n=Sn(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=Ft(),c=a.useCallback(((e,t)=>{const r=Sn("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,c]}sr.displayName="Form",lr.displayName="ScrollRestoration";var hr=0;function mr(){let{router:e}=dr("useSubmit"),{basename:t}=a.useContext(Tt),n=Qt("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback((async(e,a={})=>{let{action:i,method:c,encType:s,formData:l,body:u}=Tn(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++hr)}__`;await r(e,n,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[r,o,t,n])}var vr="react-router-scroll-positions",gr={};function yr(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:M(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}},52600(e,t,n){"use strict";n.d(t,{pg:()=>i});var r=n(35570),o=n(4883),a=n(81845);function i(e){return o.createElement(r.pg,{flushSync:a.flushSync,...e})}(0,r.q6)()},77987(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},88097(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},21648(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}n.d(t,{A:()=>r})},37820(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(88097);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},8609(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},52167(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(6695),o=n(21648),a=n(25134),i=n(37820);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},47978(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},65710(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},72367(e,t,n){"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725(e,t,n){"use strict";n.d(t,{ll:()=>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 a(e){return o(e).getComputedStyle(e)}function i(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}=a(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function p(e){return["html","body","#document"].includes(i(e))}Math.min,Math.max;const h=Math.round;function m(e,t,n){var r,a,i,c;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let d=1,p=1;t&&s(e)&&(d=e.offsetWidth>0&&h(u.width)/e.offsetWidth||1,p=e.offsetHeight>0&&h(u.height)/e.offsetHeight||1);const m=l(e)?o(e):window,v=!f()&&n,g=(u.left+(v&&null!=(r=null==(a=m.visualViewport)?void 0:a.offsetLeft)?r:0))/d,y=(u.top+(v&&null!=(i=null==(c=m.visualViewport)?void 0:c.offsetTop)?i:0))/p,b=u.width/d,w=u.height/p;return{width:b,height:w,top:y,right:g+b,bottom:y+w,left:g,x:g,y}}function v(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function g(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||v(e);return u(t)?t.host:t}function y(e){const t=g(e);return p(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),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=o(r),c=a?[i].concat(i.visualViewport||[],d(r)?r:[]):r,s=t.concat(c);return a?s:s.concat(b(c))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...l(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let d,f=null;if(i){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&f.observe(e),l(e)||!e.contextElement||c||f.observe(e.contextElement),f.observe(t)}let p=c?m(e):null;return c&&function t(){const r=m(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(d)}}},92149(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4883),o=n(81845),a=n(2418);function i(){return i=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},i.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 a(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={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,c),a=i({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(a):this._createTetherInstance(a),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:()=>a});var o=r(),a=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:()=>p,Zz:()=>f,ve:()=>h,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};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 a=e,l=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return l}function v(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function g(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(p)throw new Error(r(9));try{p=!0,l=a(l,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}g({type:i.INIT});return{dispatch:g,subscribe:v,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,g({type:i.REPLACE})},[o]:function(){const e=v;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}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 a;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const c={};for(let a=0;a<o.length;a++){const s=o[a],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,i=i||d!==u}return i=i||o.length!==Object.keys(e).length,i?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 f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const c={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(c)));return i=f(...s)(a.dispatch),{...a,dispatch:i}}}function h(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 i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,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 a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(o,a),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",54236:"actions",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"55b709a1e67d30741e96",662:"0709b28425abca2159be",850:"fc9b4e2f1f0020dc680a",996:"21a842210fa3c8385856",1114:"645d08bd4a40ba745cab",1207:"eb29c85fefa59b81ee29",1216:"6acaae98c11fc5093b1c",1221:"9ed57a05f59fb0852f8d",1234:"b772b800007fe0af5ca0",1325:"bbf245813bc3167f8e28",1361:"c72713c80a4d951a3536",1496:"e29046cbbe103a33b971",1655:"57f39649ad023fe0a44d",1702:"6a2e20365a9fe58c9408",1766:"3266b3e54db03e176fd5",2045:"d2e6608a066a0e1a8075",2070:"3c2b089a2893beb5cf51",2451:"3466483b840640f19706",2540:"26a95001fce688f4df0a",2586:"aab9805dfd4411d66a75",2682:"fbce207866337b7948c6",3082:"1e22f1f7069c73263cca",3459:"62de1f29b122c6070a0c",4139:"86ea494a01052de0a906",4490:"4aa480502a55b02d2792",4672:"df409b6ab91acadfb10f",5243:"79991c7b9691fcd34056",5318:"50ce2dedab26b3e546b1",5438:"075f4fcfe1218743620f",5575:"0c64f6946a4fa6bbdfcc",5817:"3634825f807251ab5b20",6041:"0e58d9c8c41755f867d5",6147:"1f7ce063c1946f2f1359",6396:"9f55f8d7e81293cfd96a",6644:"beeb0a46b19d88c16d38",6893:"d1b655a118b8d35f16c9",7313:"0e9a157fd98f73fbb077",7625:"97c0b0e226ea9ffdb330",7668:"3c1c59154271f87e916e",7743:"6a3b2b01e444368af9e2",7802:"e868ffe14749aedeb427",7989:"7d67b889e58f85f2fbf6",8171:"eef1e28193232f867458",8504:"71d1263e1e332cc8b63f",8676:"22c3b6e2ce770a269eeb",8818:"f48798d6db7389a4b62f",8992:"c75371a8810e05de1160",9017:"443c3b54409f19ee7c1b",9561:"482cce5d4fc3dbfe4ac2",9603:"43097da4b936011acc15",9753:"2104911286eef06de727",10012:"c8ab2dee83486b2444c8",10472:"3facaa10badfa19af71a",10499:"cd327bb45eefa3229969",10655:"a1310d1c80d1a95e1320",10910:"f9a73d6b14e4fece4326",11211:"792c5d8eedd7e180a8dd",11239:"3a5cd677cf29f3546ee4",11281:"d0881fa4e1202a4dbb76",11788:"51e32ea30eb321b03e6f",11842:"9004a43dcef6d7760dd2",12987:"db3540b9dcc6a7f3ef0b",13081:"6e3a716365ee7d39dd63",13093:"3b4932fbe1e946badeb8",13124:"764ef1f63f450a6e264e",13452:"f31354ce62affe8aa010",13622:"5769fcec499ffa3f8767",14291:"6b35b1445b08f16e746a",14527:"14552f16863cd535b9f3",14663:"97d3fa97b5fbc43dcb6b",14879:"fc754cc445fe49ec62d1",14973:"f5bd4d6821369ddb9902",15028:"12e19959715ac40d672a",15197:"deff53df5228fa2c24f0",15692:"2220e995fc039eb05eae",15802:"fd306bc350d0626d0473",15898:"1158c67247e4c8ab4f3c",16334:"fafa6ea6d3569a75d135",17e3:"c3fd2a7dc35291a84ae9",17076:"0f19a6b0d9cc8dc8ab61",17247:"db0ba89198c83764a522",17380:"9dc5fc5b4589a4c4c03d",18334:"b7ee0200ec27b95f0b60",18410:"bef573967f30cde14a27",18849:"f2472681cf4af859b992",19217:"1515dc5b023136b25cdd",19249:"90baded3ae36d9b7566a",19557:"2e0873273209dff402bc",19588:"3ad1468e8a3e9a8f7722",19786:"368da19980cfa756d67a",19956:"988e55513ade05075610",20009:"af75e80faa07fc7eab99",20047:"f7bee1ddda299d8667fe",20132:"5088bc17a351b35a9862",20360:"7fcaeef80d1db5956b22",20454:"432083e5f41410c8db2f",20592:"f48bc52100574af18a16",20659:"e66eb1b6623329a2937c",21137:"4602565b0c56494683f3",21323:"2bfeee6325ccfa03bb82",21843:"e5f6f1902f9b094a6619",21901:"81698b2cc38d201c0a63",22030:"c6259dbf37721bbfbfd5",22584:"5d6cda172bda5322815d",22981:"7761a1310b113edb4605",23097:"ba847b56813726f79436",23257:"0b2c46625f3638e898cd",23407:"40a4f4ec8fc984c71455",24364:"c41187836437ff058e55",24499:"fe03519b5d9fbfd60fc3",24522:"584f31a073235fdd2e0a",24854:"a7fd3dfb0f0a153d69ef",25181:"4ade960a842ef4c100bb",25395:"12cec45009b444dc3631",25637:"be4ad6dabc51b1ac5b80",26051:"fd430c23c4ccf734e86b",26332:"86e899c360ce4305357b",26528:"2058d031de5ffa19a688",26605:"7e65ff9ef2a2c0211495",26820:"fa58e092ebbee3d55be0",27211:"d3852ecf430737750021",28507:"609fae44f43cf8862780",28586:"1bcd120f8525d25beb3e",28734:"07684bf6b67a236ceaf0",28797:"5b5e2fa1d44428c8c827",29067:"2dfe443f7cc993f34941",29072:"a2ebb414065469553a79",29369:"8dafde99b5944fc2cf6f",29435:"660e92f79d1185e49133",29694:"18517adbc05c4642da34",29755:"7df6f8f9b7a96d4fcd5a",29861:"5f7679f4315fa3e2d0a3",29954:"79b1ae00af45e95a3c56",30470:"ac573086b4e17c955dc6",30486:"fd84837c0e602a7eaa62",30766:"217730baee42aed1b545",30897:"009ffa5de2ca2ddab31e",31001:"fc24be602d994b07bfe1",31131:"e00f6c558e7b634c6972",31255:"284d61fabe5b5e7e997f",31570:"38f44180ef39cc4bac78",31600:"102146e75a946ca0a528",31723:"3f9ca9f3db3e6aa55583",31835:"e7e6a10db3de690c40a5",32499:"755932b2aaa6c227b76c",32521:"284f3f58bed5891af7fe",32725:"084212f69acc91cc9e18",33204:"13d21862e8e9b6a61468",33227:"030d94d5f267409e7c89",33366:"cc6a7ba0fae65f10aa9b",33537:"ff4135b6b6d23fc0f21a",33688:"fd0e5ba6a25bc67d9142",34048:"82f3726f04680935d376",34163:"ef7ed0f0b6674e832d34",34675:"f249568ce058bdbe8959",34678:"adc95a7cdb5fb956efbd",34817:"02642114674717ea5515",34869:"1ae6b287a301074bace8",34916:"6793f2214984cbe50727",35173:"c9359f23abcb3ffbb024",36032:"a5a363c8f71950fc4255",36086:"181d5b1e040e11b819d1",36627:"599f51539711b56f98c0",36763:"96837ddc65e2150cb2da",36788:"0e7ffd3b0e524b3f1075",36916:"222804c131bcefbe8ead",37210:"f6278c0aadb80890fe5d",37551:"0a69c03c600be01a7959",37633:"50544d3151542cb1b0dc",37856:"9a37ed9989f007cb84f1",37887:"34bc6b68c4dfe77b7237",38223:"ae11e5ff036c4c7b6fe4",38297:"eedaae81cd83ca49ec70",38470:"6e4e7753c03332f46087",38506:"71f0b92fc5f9ab206a47",38749:"171a3deb73bfdbaf4a33",38848:"c103126300e5bd237e25",38909:"7bcd37f04776fd5618cc",38918:"588e8d295b84f0a9437c",39417:"5614744c5f77330f4adc",39669:"51e01abfaef96032f7ea",39797:"47480790e6c8b09c46bb",40426:"7a03b4113873e223f4fa",40975:"cb22d228c324ead003ec",41056:"b28cd9e48be188ca6e6f",41170:"9b6ca720904d7680825b",41293:"8b93fd134ecda415a88c",42049:"733b330d55d34c4be581",42206:"061386d61650c8dcc5f4",42482:"f2ce98cfbe1b7f4fd67c",43158:"60eb6fd2a03c92db6c32",43317:"ca9f4ceac867435d379d",43425:"b31052de5d55876efb17",43500:"c6835f9be8555cc4c110",43636:"2927cb3b50eef450cdf2",44286:"9971617eae952dd74262",44330:"41139c74898d549bc71f",44417:"9d80d6493d40b0348be4",44586:"d285afc00848c9d0cf72",44753:"f4531ccc8e9079e1e54f",44788:"1df2acb3c0abb6e02b23",45010:"88fdd69223a2ff04aaab",45011:"0f3ee20446072ae7e84d",45029:"450cac71e9af8a391422",45202:"648abbbcd149fea5425a",45209:"467b29b9742795038062",45587:"e178f27893c9c32ef621",45631:"5d3e1fca835a90f17786",45734:"95098f8933b7dd643805",45814:"2d182bf2ed9ecca4424e",46116:"c3b234cfd3764c5ac7ca",46167:"eaad51979a15258126c9",46503:"397619af3e2499a3d061",46623:"0192d63261a9431dbcaa",46811:"067bf557370878bb5bb0",47026:"6dd4d3cf79cf019e4c9f",47075:"f2effe325cfc11d32333",47145:"080c753a83b83ba91b76",47173:"de64cdd0bf6917c26572",47281:"bc445615da8446239d1a",47387:"60acb4daa69ee6b6040e",47507:"1cf8b3a1340f4cb79f05",47694:"aead390ef2eef6dee573",47968:"c844e5296f783731287e",48077:"4aadda7f9e96a7e1e9c1",48320:"b8eb8b426c820839dd9f",48331:"7196f1bdcc8a221a6d14",48575:"50c5014cb176eb6714e1",48640:"e534bf7a58811ef2c8bd",49159:"eadb61400091b1c10d77",49222:"eb517c355ffe999b8e56",49343:"d9b3aeec4ba3d1b53e43",49372:"b90c42134a7ac98b61ec",49392:"e7cdd975bf0c463dd969",49808:"842a1deb9090396c5e32",50117:"9502bee1ee2230863e3f",50152:"a1d1e59f249f83def93a",51004:"e367f86624bccf3f7e31",51057:"ef7d99460f087628da16",51150:"cef2267247ba07f6c739",51183:"e24c93b812697b07e44c",51199:"e47ddbe0a992b185f2da",51287:"0db49861e0d3a8c814d7",51289:"16c7f3c1b1e2d076a1d8",51678:"0bc483982c268f0f2855",51958:"2c1cd66da24b194d0b48",52602:"516ef2fae7c2fa4e5c1c",53103:"8e650d1a571786b92c48",53610:"f4b3433db4edb1bb91f0",53611:"2c084168e7aa91b6dfc7",53840:"1d2ee8133e222ba02eca",54176:"8e6d6d8f467d1ee6e048",54236:"6d558e76ff797d15bf63",54310:"2ca2266ada2374163f48",54958:"09a59592c6c721cc88fd",55009:"d7a4afbc7fa2e8639c29",55113:"b8906c45edb18e43f4f6",55208:"2ab47fc88c473bf699b6",55263:"f4b1fecdc5bcc5ac49a9",55677:"b50f7084898db30be8ac",55980:"dec370469b3dea2b1ffa",56470:"464fda9e7efcdced81e1",56742:"4e5e77a2dc75c051685f",56746:"ff270605f206b3b00f68",57e3:"fe8c369e39d86f6341b2",57031:"d15c526cf7246d17cc8b",57108:"58b676f3b9386f789b67",57186:"b80511a71283c3a99c70",57217:"5b4b99f7374c05365f8d",57546:"c19fe57a0a9bf9433598",57592:"29b9ec31ca428490a84a",57936:"f6f1b366d3240f2556c1",58045:"13a2c2dce2cf09d0f540",58082:"f724c8229530ef962fa1",58135:"08f721ab5ff6038da1bf",58292:"4899c7d3fa047709ee47",58382:"6991743aa1efc1ae7585",58444:"33375a6f72b502837a0a",58457:"2ce0618b4c8f8ea579dd",58485:"85feae1a28c3d60356df",58972:"a0eb7f83be915f8c6b1c",59287:"705e6431fb2158aa45c7",59364:"52e28d5be9c1332d4cf7",59479:"088d030275ceca04a3a0",59517:"209c1d4e6c01b399d711",59544:"9a9c1e6d4c85890bb8cf",60240:"4c7e69531a623e34ea80",60395:"98dc972c273dba592c86",60526:"a49437bdea3e2be9930a",60824:"c95ebbaaf010932ad6ff",60871:"88a168d6759efb77fb1e",61060:"76e9eafe5c968a07bdae",61079:"a3ca7aeccd20c134fc8c",61305:"e96f62a8bfc1b37d46df",61507:"63c9a7157d7ef468a0b4",61532:"175ae393fb289a835ccd",61556:"e588afb4488f11fd7815",61594:"0382427712b4da544e89",61742:"69492c57097c7388ee14",61777:"6cfa01d168603d2e8b19",62115:"1b678f758663080a7b01",62308:"26dc495f0f463da3b0f9",62429:"59879690a27d5de8217e",62459:"80ad1792f9b61f1c915e",62575:"824beb8bf5cfa49e4401",62632:"986d0fe476f909c0e303",62797:"36551b552b6dc9eb3d94",63112:"bdb57914e8503d844bcd",63135:"92d35065523917c1ad99",63419:"88502bb23c0338114067",63471:"0e3f89f7c037ca05f16a",63489:"266aa9bfe25a60fe3ca2",63767:"2bb9b080be711df5cd0c",63780:"1f218c2f4ba4e7ff340d",64025:"3414e7a0b945937c7fa6",64108:"14ba11cb2e75baaa809b",64190:"072142050070bc273006",64309:"837ee3015640679acbb2",64420:"5d300e51b82dc0cae650",64442:"7abd6ed64f3d6c6d0f3c",64570:"ea6dec5dd759cf4aba44",64660:"cb8d588d30176bffd253",65111:"4d0dcda0383dac0d36e6",65408:"1a30bc2b9d7bd2e8dec9",65559:"4f3e54739cb32f771589",65896:"f35caf7ff8650f71e9a7",66181:"6a72393c9517628a0316",66448:"a2dfdbd24a3588f7489f",66565:"58c2a9e8e759b3e6542f",66656:"7485f3f4913bc3aab325",66796:"e584972fd68200f15a5d",66885:"5fcc126dd04266e2e46b",67015:"2fd58e657c09ec06111c",67278:"3937fef7a946d4b3857c",67705:"fb305cffbb0201ae2f18",67744:"917129ac82418dfa14cd",67772:"6e2a5492b50e16d96971",68389:"21c4f10787123ef929d2",68648:"626ab410de3b0107b50b",69073:"2b6d88ba6a1ac41f2f1e",69170:"50933dbc6144f3ccd543",69502:"cff776640344cdb44ade",69687:"9f6dff497a6ab6e68eca",69776:"08f6b63ed3cf7e02393c",69884:"9ee569bc61a675d05f36",69975:"e3110f5ccb37d9200092",70174:"5234cdf02209e0851692",70316:"46c6ddb94b2a0266aa94",70471:"2404ea8ce4e766412073",70997:"147b7a6a534a09d1ff10",71075:"2964b4b0918eb2c96de0",71262:"f382a9def7c08d24614e",71496:"06a9e24517f63c64b71e",71657:"e24e92ec601c3a8f6123",72246:"74336b92b3c10275cf5b",72283:"5640ceafcb1a84995a2b",72376:"1c8fe4fca40bdb58f2c7",72456:"f76fad1aca8dfb886286",72496:"2e04213724432319d644",72823:"0986f95ef2f3e926bec0",72887:"a2459671464659787208",72969:"cb3a4a6c593fe220a05c",73031:"dd71a517f881edd9d8c3",73120:"d272e6a0bffc5172bc48",73226:"2c1a6e531e24ea283b88",73330:"5a50a05993eb767c309c",73477:"205f99959cb9d231d738",73781:"eb6e7bcf93bdaae3ec12",74142:"3d670f4bd292f133bade",74413:"4725684692958ea7f1e5",75042:"065ab5be0ba83abd6cc1",75263:"749dac4a120692ffebe3",76235:"cbb7286a14ba4594cd07",76254:"6caae5921e2441a90dcc",76283:"de1a40e4c57169aef5e5",76397:"e8abbebfc125f8e8b0bb",76667:"74ebd2430bdc43e3ecd4",77385:"7071cd8ad175d5cd7137",77406:"87c4c4bdcfd581493a2b",77623:"ec72054b4d92a21b234c",77968:"a866a0b7a1acec57f7db",78056:"5f8f7e52e7b980b7de3d",78155:"1c273c1e11e3765cb7f8",78720:"5d8ced9525aef536ad7f",79258:"79cb99624223df731c11",79289:"fd6fd52e0ecb5ef82165",79340:"b6b4bd6671aba4f948a1",79625:"cb4ca441c1c2430a6e5a",79685:"e1f9dcb8ff9a472013de",79699:"7e364fd1b5c7c7598078",79869:"40fdcb998f181de4d773",80008:"a83f75ebb8cab1c8d37f",80262:"9c066f08769142e86213",80270:"2df925ad04c68e688b9d",80335:"b7511e28be8ecb4a5cd5",80566:"0b1c7eec30627206617a",80569:"3a2b0d9efa9f60d4cc82",80638:"3a86c8fbeff1678e1fa7",80902:"fe4159bb61199644b734",81328:"6b7115a74a075f38c799",81450:"13af8a1248b7c49c14ca",81534:"5bef7ceeca3acb52d1be",81852:"fb62cfca74c8fae32a6a",82067:"0dcc81ddc8e5007b3de8",82327:"e1e1fc9b4f7a1467a823",82422:"c3695a3eb28f2b642fd0",82544:"0370ded20e71e1527b37",82555:"5fb9ac0ce96e3fa77996",82628:"ef51d7865ca6f23d00b4",82954:"061ac642a1ce20c7cc2c",83136:"d9121fe1542f2122e02e",83282:"cbc4633f587e1371b460",83369:"0dff41c8748325cea681",83722:"912241017b80b7e6688c",84506:"65901c8d6e51b655ed26",84556:"1037288f434db19f6a5d",84567:"a5ea4e7f08bf4d4786a2",84625:"4d45878bc75d842f0ce5",85085:"1437fb70620c874f931b",85477:"b1c42a2c640fc2f2efa4",85481:"9bf28c4cde56ec1da335",85749:"e12a77f854f7d0742067",86006:"ea630e081ef1e382e68f",86187:"89510d8669a217799c2c",86275:"8f2150b7ecff4a190fca",86902:"ab0bf04a1e0383d5df49",86952:"0517e341b6e10ee776ce",87268:"a7087cd82cedd90f490c",87406:"debb0c44636d04b5eb39",87624:"64c6748e273bf56ee1d4",87632:"0af7995c6e40eb52dca5",87772:"c202df324d8c7a9f281a",87826:"8aa1ffea5e1e56adc349",87842:"bed34f3e7841458d6640",87874:"f12fa7bfa10ecc20982a",88408:"9a48313c98c21ae6d1d6",88533:"5eb1146629661065df32",88628:"12f5fc0c3aba791d9a2c",89179:"7d00f85436616020bda8",89426:"9a25ab594d74348e18c6",89476:"f67df3c69912937f1523",89609:"fa3ca64eb85db5886e02",89651:"bc4ac92adc26ff821031",89673:"151a1d4cab641fadfc63",89695:"a12db7f0fe08b4675472",90008:"84cc7ab91d9cfcfa4391",90316:"b24f7bec252cbafc332b",90616:"3e98884220668405e2c9",90667:"222b3dc2b62488187da8",90721:"3c9f3b41706ebac89371",90724:"7cb9cb9a20e61980c465",90731:"b19dfa49acdbda9e000d",90830:"a8afe84f076c4fe09682",90846:"7cbb8281928a160c83f1",91051:"155972e885f15770b830",91201:"52ea9aab1a5f7397dfdc",91316:"d71dbfaa509e1922fdf0",91344:"98a01a7b75c1e588f044",91841:"92b4c75fe767e610a016",91858:"11bc3a034c8b2a04f6a4",91951:"2b5529ef98c9dbefd8d8",92012:"a77b4948d3ea822a8af2",92174:"3e3739be35b37dfb3fbe",92361:"a3f0df65f0d112c837e5",92657:"65b03a51e48c472555a1",93102:"5065edb159d56ef9aac5",93171:"bb3a24a282c316bb3ae3",93236:"df4c86dec4767c440c40",93534:"eb21ab6c7f397035b32f",93537:"4e422fcf8100e596cb54",93985:"6b5b006c41701d71962a",94194:"874988358d90d2ada2ea",94224:"d780c752eab2bef8775c",94443:"3d38310af7bba4e9b7f7",94565:"042130afcf5cee5a91cf",95399:"571e5848a3b4f2e18aa8",95814:"1f7d4b0ec5fec6e00e2e",95883:"d2e26eb9c8852f1a2bd7",96145:"a6ee2cfdcf6528a8f9c6",96193:"79e4fe2851a1dc19c512",96199:"7f44df2209ad638b44bf",96332:"5398dbb27ce84121fb75",96679:"1d186d28cff27c3d9c06",96809:"cfa7a7a96385b2913bb8",96934:"55830f344105fcb8a760",97230:"25633af52236707de347",97359:"1e499768062f586a1f52",97665:"8fba68dda4752888ead1",97940:"0f24963a4ed77d85f2ee",98153:"af1fe2055e0ebaa9d030",98423:"72c9a2563b902325285c",98769:"18994fa02e00b158f525",98996:"95624092978a62b14e6c",99010:"04b4f165cf5dea59c237",99148:"7dab4be2c2769260ee22",99623:"4a7a4f9cfe1156da2363",99651:"e4f9a079d93032c29342"}[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={},a="tocco-widget-bundle:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,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")==a+n){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},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=27101,s.p="/",(()=>{var e={27101: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 a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_widget_bundle=this.webpackChunktocco_widget_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:()=>Ge});var e=s(61402),t=s(26396),n=s.n(t),r=s(62193),o=s.n(r),a=s(2404),i=s.n(a),c=s(71086),u=s.n(c),d=s(5556),f=s.n(d),p=s(4883),h=s.n(p),m=s(35570),v=s(52600),g=s(88951),y=s(13128),b=s(59042),w=s(28391),x=s(96450),k=s(72942),A=s(78144),O=s(68500),S=s(80621),E=s(32619),j=s(7311),P=s(66498),T=s(35301),C=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return P.A.getDispatchActions(e,_,t)},_=[{name:"entityName",action:T.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:T.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:T.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:T.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:T.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],N=s(44467),R=s(92207),D=s.n(R),L=s(15003),I=s(29056),M=s(71635),F=n()(n()({},M.Bt,I.A.singleTransferReducer("formTouched")),M.wr,I.A.singleTransferReducer("detailParams")),z={detailParams:void 0,formTouched:!1};var H=s(15890),B=s.n(H),U=s(22056),W=s.n(U),$=s(28261),q=s(57327),G=s(27399);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var K=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=Y({},e)})),e.relations.forEach((function(e){t[e.relationName]=Y({type:"relation"},e)})),t};function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K;return D().mark((function n(){var r;return D().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,L.T1)(q.A.requestSaga,"entities/".concat(e,"/model"));case 1:return r=n.sent,n.next=2,(0,L.T1)(t,r.body);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))()}var X={CREATE:"create",UPDATE:"update"};const Q=function(e){return void 0===e?X.CREATE:X.UPDATE};var Z=s(21259),ee=s.n(Z);const te=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0})).map((function(e){return e.split(".")})).reduce((function(e,t){return[].concat(ee()(e),ee()(t))}),[]);if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const ne=function(e,t){return 0!==t.length||(!e||isNaN(e))};var re=s(74848);function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ae=D().mark(ue),ie=D().mark(de),ce=D().mark(he),se=function(e){return e.entityBrowser},le=function(e){return e.input};function ue(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.Q7)([(0,L.p8)(M.M4,fe),(0,L.p8)(M.z3,de),(0,L.p8)(M.o7,me)]);case 1:case"end":return e.stop()}}),ae)}function de(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.yJ)(M.EJ(void 0));case 1:case"end":return e.stop()}}),ie)}function fe(e){var t=e.payload;return D().mark((function e(){var n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.T1)(te,t.url);case 1:return n=e.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,e.next=2,(0,L.Lt)(se);case 2:return i=e.sent,c=i.entityName,s=i.formBase,e.next=3,(0,L.T1)(Q,o);case 3:return l=e.sent,e.next=4,(0,L.T1)(pe,c,r,s);case 4:return u=e.sent,d=W()(u,2),f=d[0],p=d[1],e.next=5,(0,L.Lt)(le);case 5:return h=e.sent,m=h.initialKey,e.next=6,(0,L.T1)(ne,m,r);case 6:return v=e.sent,g={mode:l,entityId:o,entityName:f,formName:p,parentUrl:a,showBackButton:v},e.next=7,(0,L.yJ)(M.EJ(g));case 7:case"end":return e.stop()}}),e)}))()}function pe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return D().mark((function o(){var a,i,c,s,l,u,d;return D().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=B()(t),i=a[0],c=oe(a).slice(1),i){o.next=1;break}return o.abrupt("return",[e,r]);case 1:return o.next=2,(0,L.T1)(J,e);case 2:if(s=o.sent,l=s[i]){o.next=5;break}return o.next=3,(0,L.T1)(q.A.fetchForm,"".concat(n,"_detail_").concat(i),"list");case 3:return u=o.sent,o.next=4,(0,L.T1)(pe,u.modelName,c,"".concat(n,"_").concat(i));case 4:case 6:return o.abrupt("return",o.sent);case 5:return d="".concat(n,"_").concat(l.targetEntity),o.next=6,(0,L.T1)(pe,l.targetEntity,c,n,d);case 7:case"end":return o.stop()}}),o)}))()}function he(e){var t;return D().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,L.T1)($.Ix);case 1:return t=n.sent,n.next=2,(0,L.yJ)(k.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,re.jsx)(G.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 2:return n.next=3,(0,L.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),ce)}function me(e){var t=e.payload;return D().mark((function e(){var n,r;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=1,(0,L.T1)(he,n);case 1:if("yes"!==e.sent){e.next=3;break}return e.next=2,(0,L.T1)(r,!0);case 2:e.next=4;break;case 3:return e.next=4,(0,L.T1)(r,!1);case 4:case"end":return e.stop()}}),e)}))()}var ve=D().mark(ge);function ge(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.Q7)([(0,L.Zy)(ue)]);case 1:case"end":return e.stop()}}),ve)}const ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0,n=F[t.type];return n?n(e,t):e};function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xe=n()(n()(n()(n()({},T.Rf,I.A.singleTransferReducer("entityName")),T.g0,(function(e,t){var n=t.payload.formBase;return n?we(we({},e),{},{formBase:n}):we({},e)})),T.J6,I.A.singleTransferReducer("scrollBehaviour")),T.PH,I.A.singleTransferReducer("appId")),ke={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var Ae=D().mark(Ee),Oe=D().mark(je),Se=D().mark(Pe);function Ee(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.Q7)([(0,L.T1)(je),(0,L.p8)(T.XA,Pe)]);case 1:case"end":return e.stop()}}),Ae)}function je(){return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,L.s)(e.A.INPUT_INITIALIZED);case 1:return t.next=2,(0,L.yJ)(x.A.doSessionCheck());case 2:case"end":return t.stop()}}),Oe)}function Pe(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.yJ)(w.A.fireExternalEvent("onRouteChange"));case 1:case"end":return e.stop()}}),Se)}var Te=D().mark(Ce);function Ce(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.Q7)([(0,L.Zy)(Ee)]);case 1:case"end":return e.stop()}}),Te)}const _e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke,t=arguments.length>1?arguments[1]:void 0,n=xe[t.type];return n?n(e,t):e},Ne={detail:ye,form:N.A,entityBrowser:_e};var Re,De,Le=[Ce,ge];function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fe="entity-browser",ze=["onVisibilityStatusChange","onRouteChange"],He=h().lazy((function(){return Promise.all([s.e(1114),s.e(86275),s.e(91051)]).then(s.bind(s,55341))})),Be=function(){return Re||(Re=(0,re.jsx)(p.Suspense,{fallback:"",children:(0,re.jsx)(He,{})}))},Ue=function(e){var t=e.initialKey,n=e.initialAction,r=(0,m.Zp)(),o=(0,m.zy)().pathname;(0,p.useEffect)((function(){if(t&&!isNaN(t)){if(!o.match(/\/detail\/[0-9]*/)){var e="/detail/".concat(t);r(e)}}if(n&&n.name){var a="/action/".concat(n.name,"?").concat(E.A.toQueryString(n.properties));r(a)}}),[])},We=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?m.bg:m.Ge)([{path:"*",element:(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Ue,{initialKey:n,initialAction:r}),De||(De=(0,re.jsx)(Be,{}))]})}]);return(0,re.jsx)(v.pg,{router:o})},$e=function(t,n,r,o){n=Me(Me({},n),{},{id:t}),S.A.setInputEnvs(n);var a=e.A.createStore(Ne,Le,n,Fe);w.A.addToStore(a,(function(t){return e.A.getEvents(ze,t.input)})),g.A.addToStore(a),y.A.dynamicActionsAddToStore(a),b.A.addToStore(a,!0,["console","remote","notification"]),k.A.addToStore(a,!0),x.A.addToStore(a);var i=(0,re.jsx)(We,{memoryRouter:n.memoryHistory,initialKey:n.initialKey,initialAction:n.initialAction});return e.A.createApp(Fe,i,a,{input:n,actions:C(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},qe=function(t){var n=e.A.useApp({initApp:$e,props:t,packageName:Fe}),r=n.component,a=n.store,c=j.A.usePrevious(t);return j.A.useDidUpdate((function(){var e=u()(t,(function(e,t){return!i()(e,c[t])}));o()(e)||C(e,!1).forEach((function(e){a.dispatch(e)}))}),[t]),(0,re.jsx)(re.Fragment,{children:r})};qe.propTypes=Me({entityName:f().string.isRequired,searchFormType:A.X,formBase:f().string,limit:f().oneOfType([f().number,f().string]),preselectedSearchFields:f().array,searchFilters:f().arrayOf(f().string),simpleSearchFields:f().string,initialKey:f().string,initialAction:f().shape({name:f().string,properties:f().objectOf(f().object)}),businessUnit:f().string,memoryHistory:f().bool,backendUrl:f().string,scrollBehaviour:f().oneOf(["none","inline"]),appContext:O.A.propTypes,modifyFormDefinition:f().func,modifyEntityPaths:f().func,disableDetailView:f().bool,reportIds:f().arrayOf(f().string),customActionEventHandlers:f().objectOf(f().objectOf(f().func)),isHidden:f().bool},w.A.createPropTypes(ze));var Ge=e.A.createBundleableApp(Fe,$e,qe);e.A.registerAppInRegistry(Ge.name,Ge.init)})(),l})()));
|
|
62
|
+
*/function l(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=s(null==r?t.length-1:r),i="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function l(){return t[a]}function u(e,n=null,r){let o=h(t?l().pathname:"/",e,n,r);return f("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:m(e)}return{get index(){return a},get action(){return i},get location(){return l()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?v(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=u(e,n);a+=1,t.splice(a,t.length,r),o&&c&&c({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=u(e,n);t[a]=r,o&&c&&c({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,c&&c({action:i,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function u(e={}){return g((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=v(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),h("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:m(t))}),(function(e,t){f("/"===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 f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?v(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function m({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",l=null,u=d();function d(){return(i.state||{idx:null}).idx}function f(){c="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:c,location:v.location,delta:t})}function m(e){return y(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let v={get action(){return c},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(s,f),l=e,()=>{o.removeEventListener(s,f),l=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=h(v.location,e,t);n&&n(r,e),u=d()+1;let s=p(r,u),f=v.createHref(r);try{i.pushState(s,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&l&&l({action:c,location:v.location,delta:1})},replace:function(e,t){c="REPLACE";let r=h(v.location,e,t);n&&n(r,e),u=d();let o=p(r,u),s=v.createHref(r);i.replaceState(o,"",s),a&&l&&l({action:c,location:v.location,delta:0})},go:e=>i.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:m(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)?i("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 k=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function A(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.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]=O(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=O(n,t(n)),e.children&&(n.children=A(e.children,t,i,r,o)),n}}))}function O(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 E(e,t,n,!1)}function E(e,t,n,r){let o=M(("string"==typeof t?v(t):t).pathname||"/",n);if(null==o)return null;let a=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)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=I(o);i=R(a[e],t,r)}return i}function j(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function P(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,c)=>{let s={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)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=q([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,i)),(null!=e.path||e.index)&&t.push({path:l,score:N(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of T(e.path))a(e,t,!0,n);else a(e,t)})),t}function T(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=T(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var C=/^:[\w-]+$/,_=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=-2),t&&(r+=2),n.filter((e=>!_(e))).reduce(((e,t)=>e+(C.test(t)?3:""===t?1:10)),r)}function R(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=D({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=D({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:q([a,u.pathname]),pathnameBase:G(q([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=q([a,u.pathnameBase]))}return i}function D(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=L(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function L(e,t=!1,n=!0){f("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return f(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z=e=>F.test(e);function H(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function 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 U(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=U(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function $(e,t,n,r=!1){let o;"string"==typeof e?o=v(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 a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=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("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:o="",hash:a=""}="string"==typeof e?v(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?H(r.substring(1),"/"):H(r,t)):n=t,{pathname:n,search:V(o),hash:Y(a)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),u=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var q=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var K=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function X(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Z(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(Q)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=M(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:o=!0}catch(e){f(!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 ee=Symbol("Uninstrumented");function te(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=ne(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],a=n[`lazy.${t}`];if("function"==typeof o&&a.length>0){let e=ne(a,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[ee]??o,a=ne(n[e],t,((...e)=>oe(e[0])));a&&("loader"===e&&!0===t.hydrate&&(a.hydrate=!0),a[ee]=t,r[e]=a)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[ee]??e,r=ne(n.middleware,t,((...e)=>oe(e[0])));return r?(r[ee]=t,r):e}))),r}function ne(e,t,n){return 0===e.length?null:async(...r)=>{let o=await re(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function re(e,t,n,r){let o,a=e[r];if(a){let i,c=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=re(e,t,n,r-1),o=await i,d(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await a(c,t)}catch(e){console.error("An instrumentation function threw an error:",e)}i||await c(),await i}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 oe(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:ie(t),params:{...r},unstable_pattern:o,context:ce(n)}}function ae(e,t){return{currentUrl:m(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ce(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")===se}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var se=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var le=["POST","PUT","PATCH","DELETE"],ue=new Set(le),de=["GET",...le],fe=new Set(de),pe=new Set([301,302,303,307,308]),he=new Set([307,308]),me={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ve={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ge={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ye=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),be="remix-router-transitions",we=Symbol("ResetLoaderData");function xe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||ye,a=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...o(e),...te(t.map((e=>e.route)).filter(Boolean),e)})}let i,c={},s=A(e.routes,a,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let u,p,v=e.dataStrategy||De,g={...e.future},b=null,x=new Set,k=null,O=null,P=null,T=null!=e.hydrationData,C=S(s,e.history.location,l),_=!1,N=null;if(null!=C||e.patchRoutesOnNavigation){if(C&&!e.hydrationData){Ke(C,s,e.history.location.pathname).active&&(C=null)}if(C)if(C.some((e=>e.route.lazy)))u=!1;else if(C.some((e=>Se(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=C.findIndex((e=>void 0!==n[e.route.id]));u=C.slice(0,e+1).every((e=>!Ee(e.route,t,n)))}else u=C.every((e=>!Ee(e.route,t,n)))}else u=!0;else{u=!1,C=[];let t=Ke(null,s,e.history.location.pathname);t.active&&t.matches&&(_=!0,C=t.matches)}}else{let t=tt(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=et(s);u=!0,C=n,N={[r.id]:t}}let R,D,L={historyAction:e.history.action,location:e.history.location,matches:C,initialized:u,navigation:me,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||N,fetchers:new Map,blockers:new Map},I="POP",F=null,H=!1,B=!1,U=new Map,W=null,$=!1,q=!1,G=new Set,V=new Map,Y=0,K=-1,X=new Map,Q=new Set,Z=new Map,re=new Map,oe=new Set,ie=new Map,ce=null;function se(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=c[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),L={...L,...e};let n=[],r=[];L.fetchers.forEach(((e,t)=>{"idle"===e.state&&(oe.has(t)?n.push(t):r.push(t))})),oe.forEach((e=>{L.fetchers.has(e)||V.has(e)||n.push(e)})),[...x].forEach((r=>r(L,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>_e(e))),r.forEach((e=>L.fetchers.delete(e)))}function le(t,n,{flushSync:r}={}){let o,a=null!=L.actionData&&null!=L.navigation.formMethod&&ht(L.navigation.formMethod)&&"loading"===L.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?L.actionData:null;let c=n.loaderData?Xe(L.loaderData,n.loaderData,n.matches||[],n.errors):L.loaderData,l=L.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,ge))));let u,d=!$&&Ye(t,n.matches||L.matches),f=!0===H||null!=L.navigation.formMethod&&ht(L.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(s=i,i=void 0),$||"POP"===I||("PUSH"===I?e.history.push(t,t.state):"REPLACE"===I&&e.history.replace(t,t.state)),"POP"===I){let e=U.get(L.location.pathname);e&&e.has(t.pathname)?u={currentLocation:L.location,nextLocation:t}:U.has(t.pathname)&&(u={currentLocation:t,nextLocation:L.location})}else if(B){let e=U.get(L.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(L.location.pathname,e)),u={currentLocation:L.location,nextLocation:t}}se({...n,actionData:o,loaderData:c,historyAction:I,location:t,initialized:!0,navigation:me,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),I="POP",H=!1,B=!1,$=!1,q=!1,F?.resolve(),F=null,ce?.resolve(),ce=null}async function ue(t,n,o){R&&R.abort(),R=null,I=t,$=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(k&&P){let n=Ve(e,t);k[n]=P()}}(L.location,L.matches),H=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let u=i||s,d=o&&o.overrideNavigation,f=o?.initialHydration&&L.matches&&L.matches.length>0&&!_?L.matches:S(u,n,l),p=!0===(o&&o.flushSync);if(f&&L.initialized&&!q&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(L.location,n)&&!(o&&o.submission&&ht(o.submission.formMethod)))return void le(n,{matches:f},{flushSync:p});let h=Ke(f,u,n.pathname);if(h.active&&h.matches&&(f=h.matches),!f){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return void le(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}R=new AbortController;let m,v=Ge(e.history,n,R.signal,o&&o.submission),g=e.getContext?await e.getContext():new w;if(o&&o.pendingError)m=[Ze(f).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&ht(o.submission.formMethod)){let t=await async function(t,n,o,i,u,d,f,p={}){xe();let h,m=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,o);if(se({navigation:m},{flushSync:!0===p.flushSync}),d){let e=await rt(i,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}=et(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=Ze(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}=Ue(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}i=e.matches}let v=vt(i,n);if(v.route.action||v.route.lazy){let e=He(a,c,t,i,v,f?[]:r,u),n=await pe(t,e,u,null);if(h=n[v.route.id],!h)for(let e of i)if(n[e.route.id]){h=n[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else h={type:"error",error:tt(405,{method:t.method,pathname:n.pathname,routeId:v.route.id})};if(lt(h)){let n;if(p&&null!=p.replace)n=p.replace;else{n=qe(h.response.headers.get("Location"),new URL(t.url),l,e.history)===L.location.pathname+L.location.search}return await fe(t,h,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(st(h)){let e=Ze(i,v.route.id);return!0!==(p&&p.replace)&&(I="PUSH"),{matches:i,pendingActionResult:[e.route.id,h,v.route.id]}}return{matches:i,pendingActionResult:[v.route.id,h]}}(v,n,o.submission,f,g,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(st(r)&&J(r.error)&&404===r.error.status)return R=null,void le(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}f=t.matches||f,m=t.pendingActionResult,d=yt(n,o.submission),p=!1,h.active=!1,v=Ge(e.history,v.url,v.signal)}let{shortCircuited:y,matches:b,loaderData:x,errors:A}=await async function(t,n,o,u,d,f,p,h,m,v,g,y,b){let w=f||yt(n,p),x=p||h||gt(w),k=!$&&!v;if(d){if(k){let e=de(y);se({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:g})}let e=await rt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=et(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Ze(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let A=i||s,{dsMatches:O,revalidatingFetchers:S}=Oe(t,u,a,c,e.history,L,o,x,n,v?[]:r,!0===v,q,G,oe,Z,Q,A,l,null!=e.patchRoutesOnNavigation,y,b);if(K=++Y,!e.dataStrategy&&!O.some((e=>e.shouldLoad))&&!O.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Le();return le(n,{matches:o,loaderData:{},errors:y&&st(y[1])?{[y[0]]:y[1].error}:null,...Qe(y),...e?{fetchers:new Map(L.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(k){let e={};if(!d){e.navigation=w;let t=de(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=L.fetchers.get(e.key),n=bt(void 0,t?t.data:void 0);L.fetchers.set(e.key,n)})),new Map(L.fetchers)}(S)),se(e,{flushSync:g})}S.forEach((e=>{Ne(e.key),e.controller&&V.set(e.key,e.controller)}));let E=()=>S.forEach((e=>Ne(e.key)));R&&R.signal.addEventListener("abort",E);let{loaderResults:j,fetcherResults:P}=await we(O,S,t,u);if(t.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",E);S.forEach((e=>V.delete(e.key)));let T=nt(j);if(T)return await fe(t,T.result,!0,{replace:m}),{shortCircuited:!0};if(T=nt(P),T)return Q.add(T.key),await fe(t,T.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:C,errors:_}=Je(L,o,j,y,S,P);v&&L.errors&&(_={...L.errors,..._});let N=Le(),D=Ie(K),I=N||D||S.length>0;return{matches:o,loaderData:C,errors:_,...I?{fetchers:new Map(L.fetchers)}:{}}}(v,n,f,g,h.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m,o&&o.callSiteDefaultShouldRevalidate);y||(R=null,le(n,{matches:b||f,...Qe(m),loaderData:x,errors:A}))}function de(e){return e&&!st(e[1])?{[e[0]]:e[1].data}:L.actionData?0===Object.keys(L.actionData).length?null:L.actionData:void 0}async function fe(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){a||(F?.resolve(),F=null),o.response.headers.has("X-Remix-Revalidate")&&(q=!0);let f=o.response.headers.get("Location");d(f,"Expected a Location header on the redirect Response"),f=qe(f,new URL(r.url),l,e.history);let p=h(L.location,f,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(z(f)){const n=y(f,!0);e=n.origin!==t.location.origin||null==M(n.pathname,l)}if(e)return void(u?t.location.replace(f):t.location.assign(f))}R=null;let m=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:v,formAction:g,formEncType:b}=L.navigation;!i&&!c&&v&&g&&b&&(i=gt(L.navigation));let w=i||c;if(he.has(o.response.status)&&w&&ht(w.formMethod))await ue(m,p,{submission:{...w,formAction:f},preventScrollReset:s||H,enableViewTransition:a?B:void 0});else{let e=yt(p,i);await ue(m,p,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||H,enableViewTransition:a?B:void 0})}}async function pe(e,t,n,r){let o,a={};try{o=await Be(v,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;if(!ht(e.method))for(let e of t){if("error"===o[e.route.id]?.type)break;o.hasOwnProperty(e.route.id)||L.loaderData.hasOwnProperty(e.route.id)||L.errors&&L.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(o[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[n,r]of Object.entries(o))if(ct(r)){let o=r.result;a[n]={type:"redirect",response:$e(o,e,n,t,l)}}else a[n]=await We(r);return a}async function we(e,t,n,r){let o=pe(n,e,r,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await pe(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:tt(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function xe(){q=!0,Z.forEach(((e,t)=>{V.has(t)&&G.add(t),Ne(t)}))}function je(e,t,n={}){L.fetchers.set(e,t),se({fetchers:new Map(L.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Te(e,t,n,r={}){let o=Ze(L.matches,t);_e(e),se({errors:{[o.route.id]:n},fetchers:new Map(L.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ce(e){return re.set(e,(re.get(e)||0)+1),oe.has(e)&&oe.delete(e),L.fetchers.get(e)||ve}function _e(e){let t=L.fetchers.get(e);!V.has(e)||t&&"loading"===t.state&&X.has(e)||Ne(e),Z.delete(e),X.delete(e),Q.delete(e),oe.delete(e),G.delete(e),L.fetchers.delete(e)}function Ne(e,t){let n=V.get(e);n&&(n.abort(t),V.delete(e))}function Re(e){for(let t of e){let e=wt(Ce(t).data);L.fetchers.set(t,e)}}function Le(){let e=[],t=!1;for(let n of Q){let r=L.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(Q.delete(n),e.push(n),t=!0)}return Re(e),t}function Ie(e){let t=[];for(let[n,r]of X)if(r<e){let e=L.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ne(n),X.delete(n),t.push(n))}return Re(t),t.length>0}function Me(e){L.blockers.delete(e),ie.delete(e)}function Fe(e,t){let n=L.blockers.get(e)||ge;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(L.blockers);r.set(e,t),se({blockers:r})}function ze({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ie.size)return;ie.size>1&&f(!1,"A router only supports one blocker at a time");let r=Array.from(ie.entries()),[o,a]=r[r.length-1],i=L.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ue(e){let t=tt(404,{pathname:e}),n=i||s,{matches:r,route:o}=et(n);return{notFoundMatches:r,route:o,error:t}}function Ve(e,t){if(O){return O(e,t.map((e=>j(e,L.loaderData))))||e.key}return e.key}function Ye(e,t){if(k){let n=Ve(e,t),r=k[n];if("number"==typeof r)return r}return null}function Ke(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:E(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:E(n,r,l,!0)}}}return{active:!1,matches:null}}async function rt(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==i,d=i||s,f=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||Pe(e,t,d,f,a,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let p=S(d,n,l),h=null;if(p){if(0===Object.keys(p[0].params).length)return{type:"success",matches:p};if(h=E(d,n,l,!0),!(h&&u.length<h.length&&ot(u,h.slice(0,u.length))))return{type:"success",matches:p}}if(h||(h=E(d,n,l,!0)),!h||ot(u,h))return{type:"success",matches:null};u=h}}function ot(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return p={get basename(){return l},get future(){return g},get state(){return L},get routes(){return s},get window(){return t},initialize:function(){if(b=e.history.listen((({action:t,location:n,delta:r})=>{if(D)return D(),void(D=void 0);f(0===ie.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=ze({currentLocation:L.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{D=e}));return e.history.go(-1*r),Fe(o,{state:"blocked",location:n,proceed(){Fe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(L.blockers);e.set(o,ge),se({blockers:e})}}),F?.resolve(),void(F=null)}return ue(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(be);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,U);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(be,JSON.stringify(n))}catch(e){f(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,U);t.addEventListener("pagehide",e),W=()=>t.removeEventListener("pagehide",e)}return L.initialized||ue("POP",L.location,{initialHydration:!0}),p},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,n){if(k=e,P=t,O=n||null,!T&&L.navigation===me){T=!0;let e=Ye(L.location,L.matches);null!=e&&se({restoreScrollPosition:e})}return()=>{k=null,P=null,O=null}},navigate:async function t(n,r){if(F?.resolve(),F=null,"number"==typeof n){F||(F=xt());let t=F.promise;return e.history.go(n),t}let o=ke(L.location,L.matches,l,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=Ae(!1,o,r),s=L.location,u=h(L.location,a,r&&r.state);u={...u,...e.history.encodeLocation(u)};let d=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===d?f="REPLACE":!1===d||null!=i&&ht(i.formMethod)&&i.formAction===L.location.pathname+L.location.search&&(f="REPLACE");let p=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),v=ze({currentLocation:s,nextLocation:u,historyAction:f});v?Fe(v,{state:"blocked",location:u,proceed(){Fe(v,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(L.blockers);e.set(v,ge),se({blockers:e})}}):await ue(f,u,{submission:i,pendingError:c,preventScrollReset:p,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){Ne(t);let f=!0===(u&&u.flushSync),p=i||s,h=ke(L.location,L.matches,l,o,n,u?.relative),m=S(p,h,l),v=Ke(m,p,h);if(v.active&&v.matches&&(m=v.matches),!m)return void Te(t,n,tt(404,{pathname:h}),{flushSync:f});let{path:g,submission:y,error:b}=Ae(!0,h,u);if(b)return void Te(t,n,b,{flushSync:f});let x=e.getContext?await e.getContext():new w,k=!0===(u&&u.preventScrollReset);y&&ht(y.formMethod)?await async function(t,n,o,u,f,p,h,m,v,g){xe(),Z.delete(t);let y=L.fetchers.get(t);je(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}(v,y),{flushSync:h});let b=new AbortController,w=Ge(e.history,o,b.signal,v);if(p){let e=await rt(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:h});if(!e.matches)return void Te(t,n,tt(404,{pathname:o}),{flushSync:h});u=e.matches}let x=vt(u,o);if(!x.route.action&&!x.route.lazy){let e=tt(405,{method:v.formMethod,pathname:o,routeId:n});return void Te(t,n,e,{flushSync:h})}V.set(t,b);let k=Y,A=He(a,c,w,u,x,r,f),O=await pe(w,A,f,t),E=O[x.route.id];if(!E)for(let e of A)if(O[e.route.id]){E=O[e.route.id];break}if(w.signal.aborted)return void(V.get(t)===b&&V.delete(t));if(oe.has(t)){if(lt(E)||st(E))return void je(t,wt(void 0))}else{if(lt(E))return V.delete(t),K>k?void je(t,wt(void 0)):(Q.add(t),je(t,bt(v)),fe(w,E,!1,{fetcherSubmission:v,preventScrollReset:m}));if(st(E))return void Te(t,n,E.error)}let j=L.navigation.location||L.location,P=Ge(e.history,j,b.signal),T=i||s,C="idle"!==L.navigation.state?S(T,L.navigation.location,l):L.matches;d(C,"Didn't find any matches after fetcher action");let _=++Y;X.set(t,_);let N=bt(v,E.data);L.fetchers.set(t,N);let{dsMatches:D,revalidatingFetchers:M}=Oe(P,f,a,c,e.history,L,C,v,j,r,!1,q,G,oe,Z,Q,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,E],g);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=L.fetchers.get(t),r=bt(void 0,n?n.data:void 0);L.fetchers.set(t,r),Ne(t),e.controller&&V.set(t,e.controller)})),se({fetchers:new Map(L.fetchers)});let F=()=>M.forEach((e=>Ne(e.key)));b.signal.addEventListener("abort",F);let{loaderResults:z,fetcherResults:H}=await we(D,M,P,f);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",F),X.delete(t),V.delete(t),M.forEach((e=>V.delete(e.key))),L.fetchers.has(t)){let e=wt(E.data);L.fetchers.set(t,e)}let B=nt(z);if(B)return fe(P,B.result,!1,{preventScrollReset:m});if(B=nt(H),B)return Q.add(B.key),fe(P,B.result,!1,{preventScrollReset:m});let{loaderData:U,errors:W}=Je(L,C,z,void 0,M,H);Ie(_),"loading"===L.navigation.state&&_>K?(d(I,"Expected pending action"),R&&R.abort(),le(L.navigation.location,{matches:C,loaderData:U,errors:W,fetchers:new Map(L.fetchers)})):(se({errors:W,loaderData:Xe(L.loaderData,U,C,W),fetchers:new Map(L.fetchers)}),q=!1)}(t,n,g,m,x,v.active,f,k,y,u&&u.unstable_defaultShouldRevalidate):(Z.set(t,{routeId:n,path:g}),await async function(t,n,o,i,s,l,u,d,f){let p=L.fetchers.get(t);je(t,bt(f,p?p.data:void 0),{flushSync:u});let h=new AbortController,m=Ge(e.history,o,h.signal);if(l){let e=await rt(i,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:u});if(!e.matches)return void Te(t,n,tt(404,{pathname:o}),{flushSync:u});i=e.matches}let v=vt(i,o);V.set(t,h);let g=Y,y=He(a,c,m,i,v,r,s),b=await pe(m,y,s,t),w=b[v.route.id];V.get(t)===h&&V.delete(t);if(m.signal.aborted)return;if(oe.has(t))return void je(t,wt(void 0));if(lt(w))return K>g?void je(t,wt(void 0)):(Q.add(t),void await fe(m,w,!1,{preventScrollReset:d}));if(st(w))return void Te(t,n,w.error);je(t,wt(w.data))}(t,n,g,m,x,v.active,f,k,y))},revalidate:function(){ce||(ce=xt()),xe(),se({revalidation:"loading"});let e=ce.promise;return"submitting"===L.navigation.state?e:"idle"===L.navigation.state?(ue(L.historyAction,L.location,{startUninterruptedRevalidation:!0}),e):(ue(I||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation,enableViewTransition:!0===B}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ce,resetFetcher:function(e,t){Ne(e,t?.reason),je(e,wt(null))},deleteFetcher:function(e){let t=(re.get(e)||0)-1;t<=0?(re.delete(e),oe.add(e)):re.set(e,t),se({fetchers:new Map(L.fetchers)})},dispose:function(){b&&b(),W&&W(),x.clear(),R&&R.abort(),L.fetchers.forEach(((e,t)=>_e(t))),L.blockers.forEach(((e,t)=>Me(t)))},getBlocker:function(e,t){let n=L.blockers.get(e)||ge;return ie.get(e)!==t&&ie.set(e,t),n},deleteBlocker:Me,patchRoutes:function(e,t,n=!1){let r=null==i;Pe(e,t,i||s,c,a,n),r&&(s=[...s],se({}))},_internalFetchControllers:V,_internalSetRoutes:function(e){c={},i=A(e,a,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){se(e)}},e.unstable_instrumentations&&(p=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[ee]??e.navigate,r=ne(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?m(n):".",...ae(e,r??{})}}));r&&(r[ee]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[ee]??e.fetch,r=ne(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...ae(e,o??{})}}));r&&(r[ee]=t,e.fetch=r)}return e}(p,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),p}function ke(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=$(r||".",W(i),M(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=mt(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:q([e,t])}({basename:n,pathname:s.pathname})),m(s)}function Ae(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!pt(n.formMethod))return{path:t,error:tt(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:tt(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=rt(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ht(i))return a();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:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ht(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ve(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ve(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ye(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ye(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ht(s.formMethod))return{path:t,submission:s};let l=v(t);return e&&l.search&&mt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:m(l),submission:s}}function Oe(e,t,n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g,y,b,w){let x,k=b?st(b[1])?b[1].error:b[1].data:void 0,A=o.createURL(a.location),O=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];x=i.findIndex((t=>t.route.id===e))}else if(b&&st(b[1])){let e=b[0];x=i.findIndex((t=>t.route.id===e))-1}let E=b?b[1].statusCode:void 0,j=E&&E>=400,P={currentUrl:A,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:i[0].params,...c,actionResult:k,actionStatus:E},T=X(i),C=i.map(((o,i)=>{let{route:c}=o,s=null;if(null!=x&&i>x?s=!1:c.lazy?s=!0:Se(c)?u?s=Ee(c,a.loaderData,a.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(a.loaderData,a.matches[i],o)&&(s=!0):s=!1,null!==s)return ze(n,r,e,T,o,l,t,s);let f=!1;"boolean"==typeof w?f=w:j?f=!1:(d||A.pathname+A.search===O.pathname+O.search||A.search!==O.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o))&&(f=!0);let p={...P,defaultShouldRevalidate:f},h=je(o,p);return ze(n,r,e,T,o,l,t,h,p,w)})),_=[];return h.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||p.has(c))return;let s=a.fetchers.get(c),h=s&&"idle"!==s.state&&void 0===s.data,b=S(v,e.path,g);if(!b){if(y&&h)return;return void _.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(c))return;let x=vt(b,e.path),k=new AbortController,A=Ge(o,e.path,k.signal),O=null;if(f.has(c))f.delete(c),O=He(n,r,A,b,x,l,t);else if(h)d&&(O=He(n,r,A,b,x,l,t));else{let e;e="boolean"==typeof w?w:!j&&d;let o={...P,defaultShouldRevalidate:e};je(x,o)&&(O=He(n,r,A,b,x,l,t,o))}O&&_.push({key:c,routeId:e.routeId,path:e.path,matches:O,match:x,request:A,controller:k})})),{dsMatches:C,revalidatingFetchers:_}}function Se(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Ee(e,t,n){if(e.lazy)return!0;if(!Se(e))return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function je(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Pe(e,t,n,r,o,a){let i;if(e){let t=r[e];d(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>Te(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=A(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=A([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function Te(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=>Te(e,t))))))}var Ce=new WeakMap,_e=({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 a=o.lazy[e];if(!a)return;let i=Ce.get(o);i||(i={},Ce.set(o,i));let c=i[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)f(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)f(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();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 i[e]=s,s},Ne=new WeakMap;async function Re(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 De(e){return e.matches.some((e=>e.route.middleware))?Le(e,(()=>Re(e))):Re(e)}function Le(e,t){return Ie(e,t,(e=>{if(ft(e))throw e;return e}),at,(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)),a=Ze(r,r[o].route.id).route.id;return Promise.resolve({[a]:{type:"error",result:t}})}}))}async function Ie(e,t,n,r,o){let{matches:a,request:i,params:c,context:s,unstable_pattern:l}=e,u=a.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await Me({request:i,params:c,context:s,unstable_pattern:l},u,t,n,r,o)}async function Me(e,t,n,r,o,a,i=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let s=t[i];if(!s){return await n()}let l,[u,d]=s,f=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await Me(e,t,n,r,o,a,i+1);return l={value:c},l.value}catch(e){return l={value:await a(e,u,l)},l.value}};try{let t=await d(e,f),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await f()},l.value)}catch(e){return await a(e,u,l)}}function Fe(e,t,n,r,o){let a=_e({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(d(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Ne.get(a);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 i=(o=e,k.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?f(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?f(!c,`Route "${a.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(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Ne.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=_e({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:i}}(r.route,ht(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function ze(e,t,n,r,o,a,i,c,s=null,l){let u=!1,d=Fe(e,t,n,o,a);return{...o,_lazyPromises:d,shouldLoad:c,shouldRevalidateArgs:s,shouldCallHandler:e=>(u=!0,s?je(o,"boolean"==typeof l?{...s,defaultShouldRevalidate:l}:"boolean"==typeof e?{...s,defaultShouldRevalidate:e}:s):c),resolve(e){let{lazy:t,loader:a,middleware:s}=o.route,l=u||c||e&&!ht(n.method)&&(t||a),f=s&&s.length>0&&!a&&!t;return!l||!ht(n.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:a,scopedContext:i}){let c,s,l=ht(e.method),u=l?"action":"loader",d=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),e.signal.addEventListener("abort",s);let l=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)):r({request:e,unstable_pattern:t,params:n.params,context:i},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(a?a((e=>l(e))):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,c])};try{let t=l?n.route.action:n.route.loader;if(r||o)if(t){let e,[n]=await Promise.all([d(t).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=n}else{await r;let t=l?n.route.action:n.route.loader;if(!t){if("action"===u){let t=new URL(e.url),r=t.pathname+t.search;throw tt(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw tt(404,{pathname:t.pathname+t.search})}c=await d(t)}}catch(e){return{type:"error",result:e}}finally{s&&e.signal.removeEventListener("abort",s)}return c}({request:n,unstable_pattern:r,match:o,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:i})}}}function He(e,t,n,r,o,a,i,c=null){return r.map((s=>s.route.id!==o.route.id?{...s,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Fe(e,t,n,s,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ze(e,t,n,X(r),s,a,i,!0,c)))}async function Be(e,t,n,r,o,a){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let i={request:t,unstable_pattern:X(n),params:n[0].params,context:o,matches:n},c=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=i;return Le(t,(()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},s=await e({...i,fetcherKey:r,runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function Ue(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function We(e){let{result:t,type:n}=e;if(dt(t)){let e;try{e=await Ue(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new K(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?ut(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:ot(t),statusCode:J(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:J(t)?t.status:void 0}:ut(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 $e(e,t,n,r,o){let a=e.headers.get("Location");if(d(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!z(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ke(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function qe(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(z(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(o.includes(a.protocol))throw new Error("Invalid redirect location");let i=null!=M(a.pathname,n);if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}try{let t=r.createURL(e);if(o.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Ge(e,t,n,r){let o=e.createURL(rt(t)).toString(),a={signal:n};if(r&&ht(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Ve(r.formData):a.body=r.formData}return new Request(o,a)}function Ve(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ye(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ke(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},u=n&&st(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(d(!lt(p),"Cannot handle redirect results in processLoaderData"),st(p)){let t=p.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[f]=t;else{let n=Ze(e,f);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[f]=we),s||(s=!0,a=J(p.error)?p.error.status:500),p.headers&&(l[f]=p.headers)}else i[f]=p.data,p.statusCode&&200!==p.statusCode&&!s&&(a=p.statusCode),p.headers&&(l[f]=p.headers)})),void 0!==u&&n&&(c={[n[0]]:u},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:l}}function Je(e,t,n,r,o,a){let{loaderData:i,errors:c}=Ke(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 i=a[n];if(d(i,"Did not find corresponding fetcher result"),st(i)){let t=Ze(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(lt(i))d(!1,"Unhandled fetcher revalidation redirect");else{let t=wt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Xe(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==we)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Qe(e){return e?st(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ze(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 et(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 tt(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="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?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="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 K(e||500,i,new Error(c),!0)}function nt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(lt(r))return{key:n,result:r}}}function rt(e){return m({..."string"==typeof e?v(e):e,hash:""})}function ot(e){return new K(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function at(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&it(t)))}function it(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function ct(e){return dt(e.result)&&pe.has(e.result.status)}function st(e){return"error"===e.type}function lt(e){return"redirect"===(e&&e.type)}function ut(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function dt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ft(e){return dt(e)&&(t=e.status,pe.has(t))&&e.headers.has("Location");var t}function pt(e){return fe.has(e.toUpperCase())}function ht(e){return ue.has(e.toUpperCase())}function mt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function vt(e,t){let n="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&mt(n||""))return e[e.length-1];let r=U(e);return r[r.length-1]}function gt(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function yt(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 bt(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 wt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function xt(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var kt=a.createContext(null);kt.displayName="DataRouter";var At=a.createContext(null);At.displayName="DataRouterState";var Ot=a.createContext(!1);function St(){return a.useContext(Ot)}var Et=a.createContext({isTransitioning:!1});Et.displayName="ViewTransition";var jt=a.createContext(new Map);jt.displayName="Fetchers";var Pt=a.createContext(null);Pt.displayName="Await";var Tt=a.createContext(null);Tt.displayName="Navigation";var Ct=a.createContext(null);Ct.displayName="Location";var _t=a.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var Nt=a.createContext(null);Nt.displayName="RouteError";var Rt="REACT_ROUTER_ERROR";function Dt(){return null!=a.useContext(Ct)}function Lt(){return d(Dt(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Ct).location}var It="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mt(e){a.useContext(Tt).static||a.useLayoutEffect(e)}function Ft(){let{isDataRoute:e}=a.useContext(_t);return e?function(){let{router:e}=Jt("useNavigate"),t=Qt("useNavigate"),n=a.useRef(!1);return Mt((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{f(n.current,It),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(Dt(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(kt),{basename:t,navigator:n}=a.useContext(Tt),{matches:r}=a.useContext(_t),{pathname:o}=Lt(),i=JSON.stringify(W(r)),c=a.useRef(!1);return Mt((()=>{c.current=!0})),a.useCallback(((r,a={})=>{if(f(c.current,It),!c.current)return;if("number"==typeof r)return void n.go(r);let s=$(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:q([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}),[t,n,i,o,e])}()}a.createContext(null);function zt(){let{matches:e}=a.useContext(_t),t=e[e.length-1];return t?t.params:{}}function Ht(e,{relative:t}={}){let{matches:n}=a.useContext(_t),{pathname:r}=Lt(),o=JSON.stringify(W(n));return a.useMemo((()=>$(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function Bt(e,t,n,r,o){d(Dt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=a.useContext(Tt),{matches:c}=a.useContext(_t),s=c[c.length-1],l=s?s.params:{},u=s?s.pathname:"/",p=s?s.pathnameBase:"/",h=s&&s.route;{let e=h&&h.path||"";on(u,!h||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (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 m,g=Lt();if(t){let e="string"==typeof t?v(t):t;d("/"===p||e.pathname?.startsWith(p),`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 "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`),m=e}else m=g;let y=m.pathname||"/",b=y;if("/"!==p){let e=p.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=S(e,{pathname:b});f(h||null!=w,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),f(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${m.pathname}${m.search}${m.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 x=Yt(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:q([p,i.encodeLocation?i.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:q([p,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),c,n,r,o);return t&&x?a.createElement(Ct.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},x):x}function Ut(){let e=en(),t=J(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,c)}var Wt=a.createElement(Ut,null),$t=class extends a.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(`${Rt}: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 K(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(_t.Provider,{value:this.props.routeContext},a.createElement(Nt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Gt,{error:e},t):t}};$t.contextType=Ot;var qt=new WeakMap;function Gt({children:e,error:t}){let{basename:n}=a.useContext(Tt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Rt}: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=qt.get(t);if(r)throw r;let o=Z(e.location,n);if(Q&&!qt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw qt.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Vt({routeContext:e,match:t,children:n}){let r=a.useContext(kt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(_t.Provider,{value:e},n)}function Yt(e,t=[],n=null,r=null,o=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,c=n?.errors;if(null!=c){let e=i.findIndex((e=>e.route.id&&void 0!==c?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,l=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){s=!0,i=l>=0?i.slice(0,l+1):[i[0]];break}}}let u=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:X(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,o)=>{let d,f=!1,p=null,h=null;n&&(d=c&&r.route.id?c[r.route.id]:void 0,p=r.route.errorElement||Wt,s&&(l<0&&0===o?(on("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):l===o&&(f=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,o+1)),v=()=>{let t;return t=d?p:f?h:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(Vt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?a.createElement($t,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):v()}),null)}function Kt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jt(e){let t=a.useContext(kt);return d(t,Kt(e)),t}function Xt(e){let t=a.useContext(At);return d(t,Kt(e)),t}function Qt(e){let t=function(e){let t=a.useContext(_t);return d(t,Kt(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 Zt(){let{matches:e,loaderData:t}=Xt("useMatches");return a.useMemo((()=>e.map((e=>j(e,t)))),[e,t])}function en(){let e=a.useContext(Nt),t=Xt("useRouteError"),n=Qt("useRouteError");return void 0!==e?e:t.errors?.[n]}var tn=0;function nn(e){let{router:t,basename:n}=Jt("useBlocker"),r=Xt("useBlocker"),[o,i]=a.useState(""),c=a.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:{...r,pathname:M(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:M(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return a.useEffect((()=>{let e=String(++tn);return i(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==o&&t.getBlocker(o,c)}),[t,o,c]),o&&r.blockers.has(o)?r.blockers.get(o):ge}var rn={};function on(e,t,n){t||rn[e]||(rn[e]=!0,f(!1,n))}var an={};function cn(e,t){e||an[t]||(an[t]=!0,console.warn(t))}var sn=(r||(r=n.t(a,2))).useOptimistic,ln=()=>{};function un(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&f(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:a.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&f(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&f(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var dn=["HydrateFallback","hydrateFallbackElement"];function fn(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:l({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:dn,mapRouteProperties:un,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var pn=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 hn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=St();r=o||r;let[i,c]=a.useState(e.state),[s,l]=(u=i,sn?sn(u):[u,ln]);var u;let[d,f]=a.useState(),[p,h]=a.useState({isTransitioning:!1}),[m,v]=a.useState(),[g,y]=a.useState(),[b,w]=a.useState(),x=a.useRef(new Map),k=a.useCallback(((o,{deletedFetchers:i,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:X(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),i.forEach((e=>x.current.delete(e))),cn(!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 p=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(cn(null==d||p,"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&&p){if(t&&u){t((()=>{g&&(m?.resolve(),g.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{v(void 0),y(void 0),f(void 0),h({isTransitioning:!1})}))})),void t((()=>y(n)))}g?(m?.resolve(),g.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(f(o),h({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t((()=>c(o))):!1===r?c(o):a.startTransition((()=>{!0===r&&l((e=>mn(e,o))),c(o)}))}),[e.window,t,g,m,r,l,n]);a.useLayoutEffect((()=>e.subscribe(k)),[e,k]),a.useEffect((()=>{p.isTransitioning&&!p.flushSync&&v(new pn)}),[p]),a.useEffect((()=>{if(m&&d&&e.window){let t=d,n=m.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):a.startTransition((()=>{!0===r&&l((e=>mn(e,t))),c(t)})),await n}));o.finished.finally((()=>{v(void 0),y(void 0),f(void 0),h({isTransitioning:!1})})),y(o)}}),[d,m,e.window,r,l]),a.useEffect((()=>{m&&d&&s.location.key===d.location.key&&m.resolve()}),[m,g,s.location,d]),a.useEffect((()=>{!p.isTransitioning&&b&&(f(b.state),h({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))}),[p.isTransitioning,b]);let A=a.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]),O=e.basename||"/",S=a.useMemo((()=>({router:e,navigator:A,static:!1,basename:O,onError:n})),[e,A,O,n]);return a.createElement(a.Fragment,null,a.createElement(kt.Provider,{value:S},a.createElement(At.Provider,{value:s},a.createElement(jt.Provider,{value:x.current},a.createElement(Et.Provider,{value:p},a.createElement(bn,{basename:O,location:s.location,navigationType:s.historyAction,navigator:A,unstable_useTransitions:r},a.createElement(vn,{routes:e.routes,future:e.future,state:s,onError:n})))))),null)}function mn(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 vn=a.memo((function({routes:e,future:t,state:n,onError:r}){return Bt(e,void 0,n,r,t)}));function gn({to:e,replace:t,state:n,relative:r}){d(Dt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(Tt);f(!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:i}=a.useContext(_t),{pathname:c}=Lt(),s=Ft(),l=$(e,W(i),c,"path"===r),u=JSON.stringify(l);return a.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function yn(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 bn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:c}){d(!Dt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:s,navigator:o,static:i,unstable_useTransitions:c,future:{}})),[s,o,i,c]);"string"==typeof n&&(n=v(n));let{pathname:u="/",search:p="",hash:h="",state:m=null,key:g="default"}=n,y=a.useMemo((()=>{let e=M(u,s);return null==e?null:{location:{pathname:e,search:p,hash:h,state:m,key:g},navigationType:r}}),[s,u,p,h,m,g,r]);return f(null!=y,`<Router basename="${s}"> is not able to match the URL "${u}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:a.createElement(Tt.Provider,{value:l},a.createElement(Ct.Provider,{children:t,value:y}))}function wn({children:e,location:t}){return Bt(xn(e),t)}a.Component;function xn(e,t=[]){let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,xn(e.props.children,o));d(e.type===yn,`[${"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 i={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&&(i.children=xn(e.props.children,o)),n.push(i)})),n}var kn="get",An="application/x-www-form-urlencoded";function On(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Sn(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var En=null;var jn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pn(e){return null==e||jn.has(e)?e:(f(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${An}"`),null)}function Tn(e,t){let n,r,o,a,i;if(On(c=e)&&"form"===c.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?M(i,t):null,n=e.getAttribute("method")||kn,o=Pn(e.getAttribute("enctype"))||An,a=new FormData(e)}else if(function(e){return On(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return On(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?M(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||kn,o=Pn(e.getAttribute("formenctype"))||Pn(i.getAttribute("enctype"))||An,a=new FormData(i,e),!function(){if(null===En)try{new FormData(document.createElement("form"),0),En=!1}catch(e){En=!0}return En}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(On(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=kn,r=null,o=An,i=e}var c;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;var Cn={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},_n=/[&><\u2028\u2029]/g;function Nn(e){return e.replace(_n,(e=>Cn[e]))}function Rn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Dn(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===M(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Ln(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 Fn(e,t,n,r,o,a){let i=(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"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))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 zn(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 a=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(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function Bn(e,t){return"lazy"===e.mode&&!0===t}function Un(){let e=a.useContext(kt);return Rn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Wn(){let e=a.useContext(At);return Rn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $n=a.createContext(void 0);function qn(){let e=a.useContext($n);return Rn(e,"You must render this element inside a <HydratedRouter> element"),e}function Gn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Vn(e,t,n){if(n&&!Xn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}$n.displayName="FrameworkContext";function Yn({page:e,...t}){let{router:n}=Un(),r=a.useMemo((()=>S(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?a.createElement(Jn,{page:e,matches:r,...t}):null}function Kn(e){let{manifest:t,routeModules:n}=qn(),[r,o]=a.useState([]);return a.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 Ln(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=Lt(),{future:o,manifest:i,routeModules:c}=qn(),{basename:s}=Un(),{loaderData:l,matches:u}=Wn(),d=a.useMemo((()=>Fn(e,t,u,i,r,"data")),[e,t,u,i,r]),f=a.useMemo((()=>Fn(e,t,u,i,r,"assets")),[e,t,u,i,r]),p=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach((e=>{let t=i.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?a=!0:n.add(e.route.id))})),0===n.size)return[];let u=Dn(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return a&&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,i,d,t,e,c]),h=a.useMemo((()=>zn(f,i)),[f,i]),m=Kn(f);return a.createElement(a.Fragment,null,p.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),h.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var Xn=!1;function Qn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:c}=qn(),{router:s,static:l,staticContext:u}=Un(),{matches:d}=Wn(),f=St(),p=Bn(i,c);o&&(o.didRenderScripts=!0);let h=Vn(d,null,r);a.useEffect((()=>{0}),[]);let m=a.useMemo((()=>{if(f)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)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Rn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,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 ${p?`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),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=S(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))}),[]),v=Xn||f?[]:(t.entry.imports.concat(zn(h,t,{includeHydrateFallback:!0})),[...new Set(g)]);var g;let y="object"==typeof t.sri?t.sri:{};return cn(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Xn||f?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,p?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),v.map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),m)}function Zn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}a.Component;function er({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(J(e))return a.createElement(tr,{title:"Unhandled Thrown Response!"},a.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 a.createElement(tr,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.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}=qn();return o.root?.Layout&&!n?r:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?a.createElement(Qn,null):null)))}var nr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{nr&&(window.__reactRouterVersion="7.13.0")}catch(e){}function rr(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||or(),routes:e,mapRouteProperties:un,hydrationRouteProperties:dn,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:ar(e.errors)}),e}function ar(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 K(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 ir=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,state:c,target:s,to:l,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:p,...h},v){let{basename:g,unstable_useTransitions:y}=a.useContext(Tt),b="string"==typeof l&&ir.test(l),w=Z(l,g),x=function(e,{relative:t}={}){d(Dt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(Tt),{hash:o,pathname:i,search:c}=Ht(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:q([n,i])),r.createHref({pathname:s,search:c,hash:o})}(l=w.to,{relative:r}),[k,A,O]=function(e,t){let n=a.useContext($n),[r,o]=a.useState(!1),[i,c]=a.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{o(!0)},m=()=>{o(!1),c(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:Gn(s,h),onBlur:Gn(l,m),onMouseEnter:Gn(u,h),onMouseLeave:Gn(d,m),onTouchStart:Gn(f,h)}]:[!1,p,{}]}(n,h),S=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=Ft(),d=Lt(),f=Ht(e,{relative:i});return a.useCallback((p=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(p,t)){p.preventDefault();let t=void 0!==n?n:m(d)===m(f),h=()=>u(e,{replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:s});l?a.startTransition((()=>h())):h()}}),[d,u,f,n,r,t,e,o,i,c,s,l])}(l,{replace:i,state:c,target:s,preventScrollReset:u,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y});let E=a.createElement("a",{...h,...O,href:w.absoluteURL||x,onClick:w.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||S(t)},ref:Zn(v,A),target:s,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?a.createElement(a.Fragment,null,E,a.createElement(Yn,{page:x})):E}));cr.displayName="Link",a.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:c,children:s,...l},u){let f=Ht(i,{relative:l.relative}),p=Lt(),h=a.useContext(At),{navigator:m,basename:v}=a.useContext(Tt),g=null!=h&&function(e,{relative:t}={}){let n=a.useContext(Et);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dr("useViewTransitionState"),o=Ht(e,{relative:t});if(!n.isTransitioning)return!1;let i=M(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=M(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=D(o.pathname,c)||null!=D(o.pathname,i)}(f)&&!0===c,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,b=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&v&&(w=M(w,v)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,A=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),O=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:A,isPending:O,isTransitioning:g},E=A?e:void 0;k="function"==typeof n?n(S):[n,A?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(S):o;return a.createElement(cr,{...l,"aria-current":E,className:k,ref:u,style:j,to:i,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var sr=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:c=kn,action:s,onSubmit:l,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...v},g)=>{let{unstable_useTransitions:y}=a.useContext(Tt),b=mr(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(Tt),r=a.useContext(_t);d(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Ht(e||".",{relative:t})},c=Lt();if(null==e){i.search=c.search;let e=new URLSearchParams(i.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();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:q([n,i.pathname]));return m(i)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",k="string"==typeof s&&ir.test(s);return a.createElement("form",{ref:g,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:i,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h});y&&!1!==n?a.startTransition((()=>d())):d()},...v,"data-discover":k||"render"!==e?void 0:"true"})}));function lr({getKey:e,storageKey:t,...n}){let r=a.useContext($n),{basename:o}=a.useContext(Tt),i=Lt(),c=Zt();!function({getKey:e,storageKey:t}={}){let{router:n}=dr("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=fr("useScrollRestoration"),{basename:i}=a.useContext(Tt),c=Lt(),s=Zt(),l=Xt("useNavigation").navigation;a.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};a.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(a.useCallback((()=>{if("idle"===l.state){let t=yr(c,s,i,e);gr[t]=window.scrollY}try{sessionStorage.setItem(t||vr,JSON.stringify(gr))}catch(e){f(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"}),[l.state,e,i,c,s,t])),"undefined"!=typeof document&&(a.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(t||vr);e&&(gr=JSON.parse(e))}catch(e){}}),[t]),a.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(gr,(()=>window.scrollY),e?(t,n)=>yr(t,n,i,e):void 0);return()=>t&&t()}),[n,i,e]),a.useLayoutEffect((()=>{if(!1!==r)if("number"!=typeof r){try{if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{f(!1,`"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==o&&window.scrollTo(0,0)}else window.scrollTo(0,r)}),[c,r,o]))}({getKey:e,storageKey:t});let s=a.useMemo((()=>{if(!r||!e)return null;let t=yr(i,c,o,e);return t!==i.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return a.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${Nn(JSON.stringify(t||vr))}, ${Nn(JSON.stringify(s))})`}})}function ur(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dr(e){let t=a.useContext(kt);return d(t,ur(e)),t}function fr(e){let t=a.useContext(At);return d(t,ur(e)),t}function pr(e){f("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(Sn(e)),n=a.useRef(!1),r=Lt(),o=a.useMemo((()=>function(e,t){let n=Sn(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=Ft(),c=a.useCallback(((e,t)=>{const r=Sn("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,c]}sr.displayName="Form",lr.displayName="ScrollRestoration";var hr=0;function mr(){let{router:e}=dr("useSubmit"),{basename:t}=a.useContext(Tt),n=Qt("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback((async(e,a={})=>{let{action:i,method:c,encType:s,formData:l,body:u}=Tn(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++hr)}__`;await r(e,n,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[r,o,t,n])}var vr="react-router-scroll-positions",gr={};function yr(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:M(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}},52600(e,t,n){"use strict";n.d(t,{pg:()=>i});var r=n(35570),o=n(4883),a=n(81845);function i(e){return o.createElement(r.pg,{flushSync:a.flushSync,...e})}(0,r.q6)()},77987(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},88097(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},21648(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}n.d(t,{A:()=>r})},37820(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(88097);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},8609(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},52167(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(6695),o=n(21648),a=n(25134),i=n(37820);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},47978(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},65710(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},72367(e,t,n){"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725(e,t,n){"use strict";n.d(t,{ll:()=>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 a(e){return o(e).getComputedStyle(e)}function i(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}=a(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function p(e){return["html","body","#document"].includes(i(e))}Math.min,Math.max;const h=Math.round;function m(e,t,n){var r,a,i,c;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let d=1,p=1;t&&s(e)&&(d=e.offsetWidth>0&&h(u.width)/e.offsetWidth||1,p=e.offsetHeight>0&&h(u.height)/e.offsetHeight||1);const m=l(e)?o(e):window,v=!f()&&n,g=(u.left+(v&&null!=(r=null==(a=m.visualViewport)?void 0:a.offsetLeft)?r:0))/d,y=(u.top+(v&&null!=(i=null==(c=m.visualViewport)?void 0:c.offsetTop)?i:0))/p,b=u.width/d,w=u.height/p;return{width:b,height:w,top:y,right:g+b,bottom:y+w,left:g,x:g,y}}function v(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function g(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||v(e);return u(t)?t.host:t}function y(e){const t=g(e);return p(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),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=o(r),c=a?[i].concat(i.visualViewport||[],d(r)?r:[]):r,s=t.concat(c);return a?s:s.concat(b(c))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...l(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let d,f=null;if(i){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&f.observe(e),l(e)||!e.contextElement||c||f.observe(e.contextElement),f.observe(t)}let p=c?m(e):null;return c&&function t(){const r=m(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(d)}}},92149(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4883),o=n(81845),a=n(2418);function i(){return i=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},i.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 a(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={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,c),a=i({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(a):this._createTetherInstance(a),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:()=>a});var o=r(),a=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:()=>p,Zz:()=>f,ve:()=>h,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};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 a=e,l=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return l}function v(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function g(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(p)throw new Error(r(9));try{p=!0,l=a(l,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}g({type:i.INIT});return{dispatch:g,subscribe:v,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,g({type:i.REPLACE})},[o]:function(){const e=v;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}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 a;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const c={};for(let a=0;a<o.length;a++){const s=o[a],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,i=i||d!==u}return i=i||o.length!==Object.keys(e).length,i?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 f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const c={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(c)));return i=f(...s)(a.dispatch),{...a,dispatch:i}}}function h(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 i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,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 a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(o,a),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",54236:"actions",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"55b709a1e67d30741e96",662:"0709b28425abca2159be",850:"fc9b4e2f1f0020dc680a",996:"21a842210fa3c8385856",1114:"645d08bd4a40ba745cab",1207:"eb29c85fefa59b81ee29",1216:"6acaae98c11fc5093b1c",1221:"9ed57a05f59fb0852f8d",1234:"b772b800007fe0af5ca0",1325:"bbf245813bc3167f8e28",1361:"c72713c80a4d951a3536",1496:"e29046cbbe103a33b971",1655:"57f39649ad023fe0a44d",1702:"6a2e20365a9fe58c9408",1766:"3266b3e54db03e176fd5",2045:"d2e6608a066a0e1a8075",2070:"3c2b089a2893beb5cf51",2451:"3466483b840640f19706",2540:"26a95001fce688f4df0a",2586:"aab9805dfd4411d66a75",2682:"fbce207866337b7948c6",3082:"1e22f1f7069c73263cca",3459:"62de1f29b122c6070a0c",4139:"86ea494a01052de0a906",4490:"4aa480502a55b02d2792",4672:"df409b6ab91acadfb10f",5243:"79991c7b9691fcd34056",5318:"50ce2dedab26b3e546b1",5438:"075f4fcfe1218743620f",5575:"0c64f6946a4fa6bbdfcc",5817:"3634825f807251ab5b20",6041:"0e58d9c8c41755f867d5",6147:"1f7ce063c1946f2f1359",6396:"9f55f8d7e81293cfd96a",6644:"beeb0a46b19d88c16d38",6893:"d1b655a118b8d35f16c9",7313:"0e9a157fd98f73fbb077",7625:"97c0b0e226ea9ffdb330",7668:"3c1c59154271f87e916e",7743:"6a3b2b01e444368af9e2",7802:"e868ffe14749aedeb427",7989:"7d67b889e58f85f2fbf6",8171:"eef1e28193232f867458",8504:"71d1263e1e332cc8b63f",8676:"22c3b6e2ce770a269eeb",8818:"f48798d6db7389a4b62f",8992:"c75371a8810e05de1160",9017:"443c3b54409f19ee7c1b",9561:"482cce5d4fc3dbfe4ac2",9603:"43097da4b936011acc15",9753:"2104911286eef06de727",10012:"c8ab2dee83486b2444c8",10472:"3facaa10badfa19af71a",10499:"cd327bb45eefa3229969",10655:"a1310d1c80d1a95e1320",10910:"f9a73d6b14e4fece4326",11211:"792c5d8eedd7e180a8dd",11239:"3a5cd677cf29f3546ee4",11281:"d0881fa4e1202a4dbb76",11788:"51e32ea30eb321b03e6f",11842:"9004a43dcef6d7760dd2",12987:"db3540b9dcc6a7f3ef0b",13081:"6e3a716365ee7d39dd63",13093:"3b4932fbe1e946badeb8",13124:"764ef1f63f450a6e264e",13452:"f31354ce62affe8aa010",13622:"5769fcec499ffa3f8767",14291:"6b35b1445b08f16e746a",14527:"14552f16863cd535b9f3",14663:"97d3fa97b5fbc43dcb6b",14879:"fc754cc445fe49ec62d1",14973:"f5bd4d6821369ddb9902",15028:"12e19959715ac40d672a",15197:"deff53df5228fa2c24f0",15692:"2220e995fc039eb05eae",15802:"fd306bc350d0626d0473",15898:"1158c67247e4c8ab4f3c",16334:"fafa6ea6d3569a75d135",17e3:"c3fd2a7dc35291a84ae9",17076:"0f19a6b0d9cc8dc8ab61",17247:"db0ba89198c83764a522",17380:"9dc5fc5b4589a4c4c03d",18334:"b7ee0200ec27b95f0b60",18410:"bef573967f30cde14a27",18849:"f2472681cf4af859b992",19217:"1515dc5b023136b25cdd",19249:"90baded3ae36d9b7566a",19557:"2e0873273209dff402bc",19588:"3ad1468e8a3e9a8f7722",19786:"368da19980cfa756d67a",19956:"988e55513ade05075610",20009:"af75e80faa07fc7eab99",20047:"f7bee1ddda299d8667fe",20132:"5088bc17a351b35a9862",20360:"7fcaeef80d1db5956b22",20454:"432083e5f41410c8db2f",20592:"f48bc52100574af18a16",20659:"e66eb1b6623329a2937c",21137:"4602565b0c56494683f3",21323:"2bfeee6325ccfa03bb82",21843:"e5f6f1902f9b094a6619",21901:"81698b2cc38d201c0a63",22030:"c6259dbf37721bbfbfd5",22584:"5d6cda172bda5322815d",22981:"7761a1310b113edb4605",23097:"ba847b56813726f79436",23257:"0b2c46625f3638e898cd",23407:"40a4f4ec8fc984c71455",24364:"c41187836437ff058e55",24499:"fe03519b5d9fbfd60fc3",24522:"584f31a073235fdd2e0a",24854:"a7fd3dfb0f0a153d69ef",25181:"4ade960a842ef4c100bb",25395:"12cec45009b444dc3631",25637:"be4ad6dabc51b1ac5b80",26051:"fd430c23c4ccf734e86b",26332:"86e899c360ce4305357b",26528:"2058d031de5ffa19a688",26605:"7e65ff9ef2a2c0211495",26820:"fa58e092ebbee3d55be0",27211:"d3852ecf430737750021",28507:"609fae44f43cf8862780",28586:"1bcd120f8525d25beb3e",28734:"07684bf6b67a236ceaf0",28797:"5b5e2fa1d44428c8c827",29067:"2dfe443f7cc993f34941",29072:"a2ebb414065469553a79",29369:"8dafde99b5944fc2cf6f",29435:"660e92f79d1185e49133",29694:"18517adbc05c4642da34",29755:"7df6f8f9b7a96d4fcd5a",29861:"5f7679f4315fa3e2d0a3",29954:"79b1ae00af45e95a3c56",30470:"ac573086b4e17c955dc6",30486:"fd84837c0e602a7eaa62",30766:"217730baee42aed1b545",30897:"009ffa5de2ca2ddab31e",31001:"fc24be602d994b07bfe1",31131:"e00f6c558e7b634c6972",31255:"284d61fabe5b5e7e997f",31570:"38f44180ef39cc4bac78",31600:"102146e75a946ca0a528",31723:"3f9ca9f3db3e6aa55583",31835:"e7e6a10db3de690c40a5",32499:"755932b2aaa6c227b76c",32521:"284f3f58bed5891af7fe",32725:"084212f69acc91cc9e18",33204:"13d21862e8e9b6a61468",33227:"030d94d5f267409e7c89",33366:"cc6a7ba0fae65f10aa9b",33537:"ff4135b6b6d23fc0f21a",33688:"fd0e5ba6a25bc67d9142",34048:"82f3726f04680935d376",34163:"ef7ed0f0b6674e832d34",34675:"f249568ce058bdbe8959",34678:"adc95a7cdb5fb956efbd",34817:"02642114674717ea5515",34869:"1ae6b287a301074bace8",34916:"6793f2214984cbe50727",35173:"c9359f23abcb3ffbb024",36032:"a5a363c8f71950fc4255",36086:"181d5b1e040e11b819d1",36627:"599f51539711b56f98c0",36763:"96837ddc65e2150cb2da",36788:"0e7ffd3b0e524b3f1075",36916:"222804c131bcefbe8ead",37210:"f6278c0aadb80890fe5d",37551:"0a69c03c600be01a7959",37633:"50544d3151542cb1b0dc",37856:"9a37ed9989f007cb84f1",37887:"34bc6b68c4dfe77b7237",38223:"ae11e5ff036c4c7b6fe4",38297:"eedaae81cd83ca49ec70",38470:"6e4e7753c03332f46087",38506:"71f0b92fc5f9ab206a47",38749:"171a3deb73bfdbaf4a33",38848:"c103126300e5bd237e25",38909:"7bcd37f04776fd5618cc",38918:"588e8d295b84f0a9437c",39417:"5614744c5f77330f4adc",39669:"51e01abfaef96032f7ea",39797:"47480790e6c8b09c46bb",40426:"7a03b4113873e223f4fa",40975:"cb22d228c324ead003ec",41056:"b28cd9e48be188ca6e6f",41170:"9b6ca720904d7680825b",41293:"8b93fd134ecda415a88c",42049:"733b330d55d34c4be581",42206:"061386d61650c8dcc5f4",42482:"f2ce98cfbe1b7f4fd67c",43158:"60eb6fd2a03c92db6c32",43317:"ca9f4ceac867435d379d",43425:"b31052de5d55876efb17",43500:"c6835f9be8555cc4c110",43636:"2927cb3b50eef450cdf2",44286:"9971617eae952dd74262",44330:"41139c74898d549bc71f",44417:"9d80d6493d40b0348be4",44586:"d285afc00848c9d0cf72",44753:"f4531ccc8e9079e1e54f",44788:"1df2acb3c0abb6e02b23",45010:"88fdd69223a2ff04aaab",45011:"0f3ee20446072ae7e84d",45029:"450cac71e9af8a391422",45202:"648abbbcd149fea5425a",45209:"467b29b9742795038062",45587:"e178f27893c9c32ef621",45631:"5d3e1fca835a90f17786",45734:"95098f8933b7dd643805",45814:"2d182bf2ed9ecca4424e",46116:"c3b234cfd3764c5ac7ca",46167:"eaad51979a15258126c9",46503:"397619af3e2499a3d061",46623:"0192d63261a9431dbcaa",46811:"067bf557370878bb5bb0",47026:"6dd4d3cf79cf019e4c9f",47075:"f2effe325cfc11d32333",47145:"080c753a83b83ba91b76",47173:"de64cdd0bf6917c26572",47281:"bc445615da8446239d1a",47387:"60acb4daa69ee6b6040e",47507:"1cf8b3a1340f4cb79f05",47694:"aead390ef2eef6dee573",47968:"c844e5296f783731287e",48077:"4aadda7f9e96a7e1e9c1",48320:"b8eb8b426c820839dd9f",48331:"7196f1bdcc8a221a6d14",48575:"50c5014cb176eb6714e1",48640:"e534bf7a58811ef2c8bd",49159:"eadb61400091b1c10d77",49222:"eb517c355ffe999b8e56",49343:"d9b3aeec4ba3d1b53e43",49372:"b90c42134a7ac98b61ec",49392:"e7cdd975bf0c463dd969",49808:"842a1deb9090396c5e32",50117:"9502bee1ee2230863e3f",50152:"a1d1e59f249f83def93a",51004:"e367f86624bccf3f7e31",51057:"ef7d99460f087628da16",51150:"cef2267247ba07f6c739",51183:"e24c93b812697b07e44c",51199:"e47ddbe0a992b185f2da",51287:"0db49861e0d3a8c814d7",51289:"16c7f3c1b1e2d076a1d8",51678:"0bc483982c268f0f2855",51958:"2c1cd66da24b194d0b48",52602:"516ef2fae7c2fa4e5c1c",53103:"8e650d1a571786b92c48",53610:"f4b3433db4edb1bb91f0",53611:"2c084168e7aa91b6dfc7",53840:"1d2ee8133e222ba02eca",54176:"8e6d6d8f467d1ee6e048",54236:"1272473e00ace1bc6fac",54310:"2ca2266ada2374163f48",54958:"09a59592c6c721cc88fd",55009:"d7a4afbc7fa2e8639c29",55113:"b8906c45edb18e43f4f6",55208:"2ab47fc88c473bf699b6",55263:"f4b1fecdc5bcc5ac49a9",55677:"b50f7084898db30be8ac",55980:"dec370469b3dea2b1ffa",56470:"464fda9e7efcdced81e1",56742:"4e5e77a2dc75c051685f",56746:"ff270605f206b3b00f68",57e3:"fe8c369e39d86f6341b2",57031:"d15c526cf7246d17cc8b",57108:"58b676f3b9386f789b67",57186:"b80511a71283c3a99c70",57217:"5b4b99f7374c05365f8d",57546:"c19fe57a0a9bf9433598",57592:"29b9ec31ca428490a84a",57936:"f6f1b366d3240f2556c1",58045:"13a2c2dce2cf09d0f540",58082:"f724c8229530ef962fa1",58135:"08f721ab5ff6038da1bf",58292:"4899c7d3fa047709ee47",58382:"6991743aa1efc1ae7585",58444:"33375a6f72b502837a0a",58457:"2ce0618b4c8f8ea579dd",58485:"85feae1a28c3d60356df",58972:"a0eb7f83be915f8c6b1c",59287:"705e6431fb2158aa45c7",59364:"52e28d5be9c1332d4cf7",59479:"088d030275ceca04a3a0",59517:"209c1d4e6c01b399d711",59544:"9a9c1e6d4c85890bb8cf",60240:"4c7e69531a623e34ea80",60395:"98dc972c273dba592c86",60526:"a49437bdea3e2be9930a",60824:"c95ebbaaf010932ad6ff",60871:"88a168d6759efb77fb1e",61060:"76e9eafe5c968a07bdae",61079:"a3ca7aeccd20c134fc8c",61305:"e96f62a8bfc1b37d46df",61507:"63c9a7157d7ef468a0b4",61532:"175ae393fb289a835ccd",61556:"e588afb4488f11fd7815",61594:"0382427712b4da544e89",61742:"69492c57097c7388ee14",61777:"6cfa01d168603d2e8b19",62115:"1b678f758663080a7b01",62308:"26dc495f0f463da3b0f9",62429:"59879690a27d5de8217e",62459:"80ad1792f9b61f1c915e",62575:"824beb8bf5cfa49e4401",62632:"986d0fe476f909c0e303",62797:"36551b552b6dc9eb3d94",63112:"bdb57914e8503d844bcd",63135:"92d35065523917c1ad99",63419:"88502bb23c0338114067",63471:"0e3f89f7c037ca05f16a",63489:"266aa9bfe25a60fe3ca2",63767:"2bb9b080be711df5cd0c",63780:"1f218c2f4ba4e7ff340d",64025:"3414e7a0b945937c7fa6",64108:"14ba11cb2e75baaa809b",64190:"072142050070bc273006",64309:"837ee3015640679acbb2",64420:"5d300e51b82dc0cae650",64442:"7abd6ed64f3d6c6d0f3c",64570:"ea6dec5dd759cf4aba44",64660:"cb8d588d30176bffd253",65111:"4d0dcda0383dac0d36e6",65408:"1a30bc2b9d7bd2e8dec9",65559:"4f3e54739cb32f771589",65896:"f35caf7ff8650f71e9a7",66181:"6a72393c9517628a0316",66448:"a2dfdbd24a3588f7489f",66565:"58c2a9e8e759b3e6542f",66656:"7485f3f4913bc3aab325",66796:"e584972fd68200f15a5d",66885:"5fcc126dd04266e2e46b",67015:"2fd58e657c09ec06111c",67278:"3937fef7a946d4b3857c",67705:"fb305cffbb0201ae2f18",67744:"917129ac82418dfa14cd",67772:"6e2a5492b50e16d96971",68389:"21c4f10787123ef929d2",68648:"626ab410de3b0107b50b",69073:"2b6d88ba6a1ac41f2f1e",69170:"50933dbc6144f3ccd543",69502:"cff776640344cdb44ade",69687:"9f6dff497a6ab6e68eca",69776:"08f6b63ed3cf7e02393c",69884:"9ee569bc61a675d05f36",69975:"e3110f5ccb37d9200092",70174:"5234cdf02209e0851692",70316:"46c6ddb94b2a0266aa94",70471:"2404ea8ce4e766412073",70997:"147b7a6a534a09d1ff10",71075:"2964b4b0918eb2c96de0",71262:"f382a9def7c08d24614e",71496:"06a9e24517f63c64b71e",71657:"e24e92ec601c3a8f6123",72246:"74336b92b3c10275cf5b",72283:"5640ceafcb1a84995a2b",72376:"1c8fe4fca40bdb58f2c7",72456:"f76fad1aca8dfb886286",72496:"2e04213724432319d644",72823:"0986f95ef2f3e926bec0",72887:"a2459671464659787208",72969:"cb3a4a6c593fe220a05c",73031:"dd71a517f881edd9d8c3",73120:"d272e6a0bffc5172bc48",73226:"2c1a6e531e24ea283b88",73330:"5a50a05993eb767c309c",73477:"205f99959cb9d231d738",73781:"eb6e7bcf93bdaae3ec12",74142:"3d670f4bd292f133bade",74413:"4725684692958ea7f1e5",75042:"065ab5be0ba83abd6cc1",75263:"749dac4a120692ffebe3",76235:"cbb7286a14ba4594cd07",76254:"6caae5921e2441a90dcc",76283:"de1a40e4c57169aef5e5",76397:"e8abbebfc125f8e8b0bb",76667:"74ebd2430bdc43e3ecd4",77385:"7071cd8ad175d5cd7137",77406:"87c4c4bdcfd581493a2b",77623:"ec72054b4d92a21b234c",77968:"a866a0b7a1acec57f7db",78056:"5f8f7e52e7b980b7de3d",78155:"1c273c1e11e3765cb7f8",78720:"5d8ced9525aef536ad7f",79258:"79cb99624223df731c11",79289:"fd6fd52e0ecb5ef82165",79340:"b6b4bd6671aba4f948a1",79625:"cb4ca441c1c2430a6e5a",79685:"e1f9dcb8ff9a472013de",79699:"7e364fd1b5c7c7598078",79869:"40fdcb998f181de4d773",80008:"a83f75ebb8cab1c8d37f",80262:"9c066f08769142e86213",80270:"2df925ad04c68e688b9d",80335:"b7511e28be8ecb4a5cd5",80566:"0b1c7eec30627206617a",80569:"3a2b0d9efa9f60d4cc82",80638:"3a86c8fbeff1678e1fa7",80902:"fe4159bb61199644b734",81328:"6b7115a74a075f38c799",81450:"13af8a1248b7c49c14ca",81534:"5bef7ceeca3acb52d1be",81852:"fb62cfca74c8fae32a6a",82067:"0dcc81ddc8e5007b3de8",82327:"e1e1fc9b4f7a1467a823",82422:"c3695a3eb28f2b642fd0",82544:"0370ded20e71e1527b37",82555:"5fb9ac0ce96e3fa77996",82628:"ef51d7865ca6f23d00b4",82954:"061ac642a1ce20c7cc2c",83136:"d9121fe1542f2122e02e",83282:"cbc4633f587e1371b460",83369:"0dff41c8748325cea681",83722:"912241017b80b7e6688c",84506:"65901c8d6e51b655ed26",84556:"1037288f434db19f6a5d",84567:"a5ea4e7f08bf4d4786a2",84625:"4d45878bc75d842f0ce5",85085:"1437fb70620c874f931b",85477:"b1c42a2c640fc2f2efa4",85481:"9bf28c4cde56ec1da335",85749:"e12a77f854f7d0742067",86006:"ea630e081ef1e382e68f",86187:"89510d8669a217799c2c",86275:"8f2150b7ecff4a190fca",86902:"ab0bf04a1e0383d5df49",86952:"0517e341b6e10ee776ce",87268:"a7087cd82cedd90f490c",87406:"debb0c44636d04b5eb39",87624:"64c6748e273bf56ee1d4",87632:"0af7995c6e40eb52dca5",87772:"c202df324d8c7a9f281a",87826:"8aa1ffea5e1e56adc349",87842:"bed34f3e7841458d6640",87874:"f12fa7bfa10ecc20982a",88408:"9a48313c98c21ae6d1d6",88533:"5eb1146629661065df32",88628:"12f5fc0c3aba791d9a2c",89179:"7d00f85436616020bda8",89426:"9a25ab594d74348e18c6",89476:"f67df3c69912937f1523",89609:"fa3ca64eb85db5886e02",89651:"bc4ac92adc26ff821031",89673:"151a1d4cab641fadfc63",89695:"a12db7f0fe08b4675472",90008:"84cc7ab91d9cfcfa4391",90316:"b24f7bec252cbafc332b",90616:"3e98884220668405e2c9",90667:"222b3dc2b62488187da8",90721:"3c9f3b41706ebac89371",90724:"7cb9cb9a20e61980c465",90731:"b19dfa49acdbda9e000d",90830:"a8afe84f076c4fe09682",90846:"7cbb8281928a160c83f1",91051:"155972e885f15770b830",91201:"52ea9aab1a5f7397dfdc",91316:"d71dbfaa509e1922fdf0",91344:"98a01a7b75c1e588f044",91841:"92b4c75fe767e610a016",91858:"11bc3a034c8b2a04f6a4",91951:"2b5529ef98c9dbefd8d8",92012:"a77b4948d3ea822a8af2",92174:"3e3739be35b37dfb3fbe",92361:"a3f0df65f0d112c837e5",92657:"65b03a51e48c472555a1",93102:"5065edb159d56ef9aac5",93171:"bb3a24a282c316bb3ae3",93236:"df4c86dec4767c440c40",93534:"eb21ab6c7f397035b32f",93537:"4e422fcf8100e596cb54",93985:"6b5b006c41701d71962a",94194:"874988358d90d2ada2ea",94224:"d780c752eab2bef8775c",94443:"3d38310af7bba4e9b7f7",94565:"042130afcf5cee5a91cf",95399:"571e5848a3b4f2e18aa8",95814:"1f7d4b0ec5fec6e00e2e",95883:"d2e26eb9c8852f1a2bd7",96145:"a6ee2cfdcf6528a8f9c6",96193:"79e4fe2851a1dc19c512",96199:"7f44df2209ad638b44bf",96332:"5398dbb27ce84121fb75",96679:"1d186d28cff27c3d9c06",96809:"cfa7a7a96385b2913bb8",96934:"55830f344105fcb8a760",97230:"25633af52236707de347",97359:"1e499768062f586a1f52",97665:"8fba68dda4752888ead1",97940:"0f24963a4ed77d85f2ee",98153:"af1fe2055e0ebaa9d030",98423:"72c9a2563b902325285c",98769:"18994fa02e00b158f525",98996:"95624092978a62b14e6c",99010:"04b4f165cf5dea59c237",99148:"7dab4be2c2769260ee22",99623:"4a7a4f9cfe1156da2363",99651:"e4f9a079d93032c29342"}[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={},a="tocco-widget-bundle:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,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")==a+n){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},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=27101,s.p="/",(()=>{var e={27101: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 a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_widget_bundle=this.webpackChunktocco_widget_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:()=>Ge});var e=s(61402),t=s(26396),n=s.n(t),r=s(62193),o=s.n(r),a=s(2404),i=s.n(a),c=s(71086),u=s.n(c),d=s(5556),f=s.n(d),p=s(4883),h=s.n(p),m=s(35570),v=s(52600),g=s(88951),y=s(13128),b=s(59042),w=s(28391),x=s(96450),k=s(72942),A=s(78144),O=s(68500),S=s(80621),E=s(32619),j=s(7311),P=s(66498),T=s(35301),C=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return P.A.getDispatchActions(e,_,t)},_=[{name:"entityName",action:T.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:T.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:T.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:T.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:T.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],N=s(44467),R=s(92207),D=s.n(R),L=s(15003),I=s(29056),M=s(71635),F=n()(n()({},M.Bt,I.A.singleTransferReducer("formTouched")),M.wr,I.A.singleTransferReducer("detailParams")),z={detailParams:void 0,formTouched:!1};var H=s(15890),B=s.n(H),U=s(22056),W=s.n(U),$=s(28261),q=s(57327),G=s(27399);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var K=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=Y({},e)})),e.relations.forEach((function(e){t[e.relationName]=Y({type:"relation"},e)})),t};function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K;return D().mark((function n(){var r;return D().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,L.T1)(q.A.requestSaga,"entities/".concat(e,"/model"));case 1:return r=n.sent,n.next=2,(0,L.T1)(t,r.body);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))()}var X={CREATE:"create",UPDATE:"update"};const Q=function(e){return void 0===e?X.CREATE:X.UPDATE};var Z=s(21259),ee=s.n(Z);const te=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0})).map((function(e){return e.split(".")})).reduce((function(e,t){return[].concat(ee()(e),ee()(t))}),[]);if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const ne=function(e,t){return 0!==t.length||(!e||isNaN(e))};var re=s(74848);function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ae=D().mark(ue),ie=D().mark(de),ce=D().mark(he),se=function(e){return e.entityBrowser},le=function(e){return e.input};function ue(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.Q7)([(0,L.p8)(M.M4,fe),(0,L.p8)(M.z3,de),(0,L.p8)(M.o7,me)]);case 1:case"end":return e.stop()}}),ae)}function de(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.yJ)(M.EJ(void 0));case 1:case"end":return e.stop()}}),ie)}function fe(e){var t=e.payload;return D().mark((function e(){var n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.T1)(te,t.url);case 1:return n=e.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,e.next=2,(0,L.Lt)(se);case 2:return i=e.sent,c=i.entityName,s=i.formBase,e.next=3,(0,L.T1)(Q,o);case 3:return l=e.sent,e.next=4,(0,L.T1)(pe,c,r,s);case 4:return u=e.sent,d=W()(u,2),f=d[0],p=d[1],e.next=5,(0,L.Lt)(le);case 5:return h=e.sent,m=h.initialKey,e.next=6,(0,L.T1)(ne,m,r);case 6:return v=e.sent,g={mode:l,entityId:o,entityName:f,formName:p,parentUrl:a,showBackButton:v},e.next=7,(0,L.yJ)(M.EJ(g));case 7:case"end":return e.stop()}}),e)}))()}function pe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return D().mark((function o(){var a,i,c,s,l,u,d;return D().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=B()(t),i=a[0],c=oe(a).slice(1),i){o.next=1;break}return o.abrupt("return",[e,r]);case 1:return o.next=2,(0,L.T1)(J,e);case 2:if(s=o.sent,l=s[i]){o.next=5;break}return o.next=3,(0,L.T1)(q.A.fetchForm,"".concat(n,"_detail_").concat(i),"list");case 3:return u=o.sent,o.next=4,(0,L.T1)(pe,u.modelName,c,"".concat(n,"_").concat(i));case 4:case 6:return o.abrupt("return",o.sent);case 5:return d="".concat(n,"_").concat(l.targetEntity),o.next=6,(0,L.T1)(pe,l.targetEntity,c,n,d);case 7:case"end":return o.stop()}}),o)}))()}function he(e){var t;return D().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,L.T1)($.Ix);case 1:return t=n.sent,n.next=2,(0,L.yJ)(k.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,re.jsx)(G.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 2:return n.next=3,(0,L.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),ce)}function me(e){var t=e.payload;return D().mark((function e(){var n,r;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=1,(0,L.T1)(he,n);case 1:if("yes"!==e.sent){e.next=3;break}return e.next=2,(0,L.T1)(r,!0);case 2:e.next=4;break;case 3:return e.next=4,(0,L.T1)(r,!1);case 4:case"end":return e.stop()}}),e)}))()}var ve=D().mark(ge);function ge(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.Q7)([(0,L.Zy)(ue)]);case 1:case"end":return e.stop()}}),ve)}const ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0,n=F[t.type];return n?n(e,t):e};function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xe=n()(n()(n()(n()({},T.Rf,I.A.singleTransferReducer("entityName")),T.g0,(function(e,t){var n=t.payload.formBase;return n?we(we({},e),{},{formBase:n}):we({},e)})),T.J6,I.A.singleTransferReducer("scrollBehaviour")),T.PH,I.A.singleTransferReducer("appId")),ke={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var Ae=D().mark(Ee),Oe=D().mark(je),Se=D().mark(Pe);function Ee(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.Q7)([(0,L.T1)(je),(0,L.p8)(T.XA,Pe)]);case 1:case"end":return e.stop()}}),Ae)}function je(){return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,L.s)(e.A.INPUT_INITIALIZED);case 1:return t.next=2,(0,L.yJ)(x.A.doSessionCheck());case 2:case"end":return t.stop()}}),Oe)}function Pe(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.yJ)(w.A.fireExternalEvent("onRouteChange"));case 1:case"end":return e.stop()}}),Se)}var Te=D().mark(Ce);function Ce(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,L.Q7)([(0,L.Zy)(Ee)]);case 1:case"end":return e.stop()}}),Te)}const _e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke,t=arguments.length>1?arguments[1]:void 0,n=xe[t.type];return n?n(e,t):e},Ne={detail:ye,form:N.A,entityBrowser:_e};var Re,De,Le=[Ce,ge];function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fe="entity-browser",ze=["onVisibilityStatusChange","onRouteChange"],He=h().lazy((function(){return Promise.all([s.e(1114),s.e(86275),s.e(91051)]).then(s.bind(s,55341))})),Be=function(){return Re||(Re=(0,re.jsx)(p.Suspense,{fallback:"",children:(0,re.jsx)(He,{})}))},Ue=function(e){var t=e.initialKey,n=e.initialAction,r=(0,m.Zp)(),o=(0,m.zy)().pathname;(0,p.useEffect)((function(){if(t&&!isNaN(t)){if(!o.match(/\/detail\/[0-9]*/)){var e="/detail/".concat(t);r(e)}}if(n&&n.name){var a="/action/".concat(n.name,"?").concat(E.A.toQueryString(n.properties));r(a)}}),[])},We=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?m.bg:m.Ge)([{path:"*",element:(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Ue,{initialKey:n,initialAction:r}),De||(De=(0,re.jsx)(Be,{}))]})}]);return(0,re.jsx)(v.pg,{router:o})},$e=function(t,n,r,o){n=Me(Me({},n),{},{id:t}),S.A.setInputEnvs(n);var a=e.A.createStore(Ne,Le,n,Fe);w.A.addToStore(a,(function(t){return e.A.getEvents(ze,t.input)})),g.A.addToStore(a),y.A.dynamicActionsAddToStore(a),b.A.addToStore(a,!0,["console","remote","notification"]),k.A.addToStore(a,!0),x.A.addToStore(a);var i=(0,re.jsx)(We,{memoryRouter:n.memoryHistory,initialKey:n.initialKey,initialAction:n.initialAction});return e.A.createApp(Fe,i,a,{input:n,actions:C(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},qe=function(t){var n=e.A.useApp({initApp:$e,props:t,packageName:Fe}),r=n.component,a=n.store,c=j.A.usePrevious(t);return j.A.useDidUpdate((function(){var e=u()(t,(function(e,t){return!i()(e,c[t])}));o()(e)||C(e,!1).forEach((function(e){a.dispatch(e)}))}),[t]),(0,re.jsx)(re.Fragment,{children:r})};qe.propTypes=Me({entityName:f().string.isRequired,searchFormType:A.X,formBase:f().string,limit:f().oneOfType([f().number,f().string]),preselectedSearchFields:f().array,searchFilters:f().arrayOf(f().string),simpleSearchFields:f().string,initialKey:f().string,initialAction:f().shape({name:f().string,properties:f().objectOf(f().object)}),businessUnit:f().string,memoryHistory:f().bool,backendUrl:f().string,scrollBehaviour:f().oneOf(["none","inline"]),appContext:O.A.propTypes,modifyFormDefinition:f().func,modifyEntityPaths:f().func,disableDetailView:f().bool,reportIds:f().arrayOf(f().string),customActionEventHandlers:f().objectOf(f().objectOf(f().func)),isHidden:f().bool},w.A.createPropTypes(ze));var Ge=e.A.createBundleableApp(Fe,$e,qe);e.A.registerAppInRegistry(Ge.name,Ge.init)})(),l})()));
|