TvBox/jav/lib/react-core-442d3988d6da.js

41 lines
193 KiB
JavaScript
Raw Permalink Normal View History

2025-07-03 20:15:22 +08:00
"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["react-core"],{43581:(e,t,r)=>{r.d(t,{A:()=>i,T:()=>o});var n=r(49236),a={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};a.bgImage=a.backgroundImage,a.bgSize=a.backgroundSize,a.bgPosition=a.backgroundPosition,a.bgRepeat=a.backgroundRepeat;var o=(0,n.qU)(a);let i=o},84995:(e,t,r)=>{r.d(t,{A:()=>i,P:()=>o});var n=r(49236),a={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};a.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"},a.borderTopColor={property:"borderTopColor",scale:"colors"},a.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"},a.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},a.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},a.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},a.borderBottomColor={property:"borderBottomColor",scale:"colors"},a.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},a.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},a.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},a.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},a.borderLeftColor={property:"borderLeftColor",scale:"colors"},a.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},a.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},a.borderRightColor={property:"borderRightColor",scale:"colors"},a.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var o=(0,n.qU)(a);let i=o},77638:(e,t,r)=>{r.d(t,{A:()=>i,y:()=>o});var n=r(49236),a={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};a.bg=a.backgroundColor;var o=(0,n.qU)(a);let i=o},49236:(e,t,r)=>{r.d(t,{Cp:()=>d,Jt:()=>c,Zz:()=>y,oK:()=>p,qU:()=>m});var n=r(45228),a=r.n(n),o=function(e,t){var r,n=a()({},e,t);for(var o in e)e[o]&&"object"==typeof t[o]&&a()(n,((r={})[o]=a()(e[o],t[o]),r));return n},i=function(e){var t={};return Object.keys(e).sort(function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})}).forEach(function(r){t[r]=e[r]}),t},s={breakpoints:[40,52,64].map(function(e){return e+"em"})},l=function(e){return"@media screen and (min-width: "+e+")"},u=function(e,t){return c(t,e,e)},c=function(e,t,r,n,a){for(n=0,t=t&&t.split?t.split("."):[t];n<t.length;n++)e=e?e[t[n]]:a;return e===a?r:e},d=function e(t){var r={},n=function(e){var n={},u=!1,d=e.theme&&e.theme.disableStyledSystemCache;for(var p in e)if(t[p]){var m=t[p],y=e[p],g=c(e.theme,m.scale,m.defaults);if("object"==typeof y){if(r.breakpoints=!d&&r.breakpoints||c(e.theme,"breakpoints",s.breakpoints),Array.isArray(y)){r.media=!d&&r.media||[null].concat(r.breakpoints.map(l)),n=o(n,h(r.media,m,g,y,e));continue}null!==y&&(n=o(n,f(r.breakpoints,m,g,y,e)),u=!0);continue}a()(n,m(y,g,e))}return u&&(n=i(n)),n};n.config=t,n.propNames=Object.keys(t),n.cache=r;var u=Object.keys(t).filter(function(e){return"config"!==e});return u.length>1&&u.forEach(function(r){var a;n[r]=e(((a={})[r]=t[r],a))}),n},h=function(e,t,r,n,o){var i={};return n.slice(0,e.length).forEach(function(n,s){var l,u=e[s],c=t(n,r,o);u?a(
`;return t},e}(),C=new Map,k=new Map,N=1,j=function(e){if(C.has(e))return C.get(e);for(;k.has(N);)N++;var t=N++;return C.set(e,t),k.set(t,e),t},T=function(e,t){t>=N&&(N=t+1),C.set(e,t),k.set(t,e)},A="style["+w+'][data-styled-version="5.3.11"]',P=RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,r){for(var n,a=r.split(","),o=0,i=a.length;o<i;o++)(n=a[o])&&e.registerName(t,n)},_=function(e,t){for(var r=(t.textContent||"").split(`/*!sc*/
`),n=[],a=0,o=r.length;a<o;a++){var i=r[a].trim();if(i){var s=i.match(P);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(T(u,l),L(e,u,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(i)}}},O=function(){return r.nc},$=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(w))return n}}(r),o=void 0!==a?a.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var i=O();return i&&n.setAttribute("nonce",i),r.insertBefore(n,o),n},D=function(){function e(e){var t=this.element=$(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var a=t[r];if(a.ownerNode===e)return a}R(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),I=function(){function e(e){var t=this.element=$(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),M=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),z=S,W={isServer:!S,useCSSOMInjection:!0},U=function(){function e(e,t,r){void 0===e&&(e=y),void 0===t&&(t={}),this.options=h({},W,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&S&&z&&(z=!1,function(e){for(var t=document.querySelectorAll(A),r=0,n=t.length;r<n;r++){var a=t[r];a&&"active"!==a.getAttribute(w)&&(_(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return j(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(h({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new x(t?new M(n):r?new D(n):new I(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(j(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(j(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(j(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",a=0;a<r;a++){var o,i=(o=a,k.get(o));if(void 0!==i){var s=e.names.get(i),l=t.getGroup(a);if(s&&l&&s.size){var u=w+".g"+a+'[id="'+i+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+l+u+'{content:"'+c+`"}/*!sc*/
`}}}return n}(this)},e}(),H=/(a)(d)/gi,B=function(e){return String.fromCharCode(e+(e>25?39:97))};function F(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=B(t%52)+r;return(B(t%52)+r).replace(H,"$1-$2")}var q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return q(5381,e)};function Y(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(g(r)&&!b(r))return!1}return!0}var V=J("5.3.11"),X=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Y(e),this.componentId=t,this.baseHash=q(V,t),this.baseStyle=r,U.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))a.push(this.staticRulesId);else{var o=ef(this.rules,e,t,r).join(""),i=F(q(this.baseHash,o)>>>0);if(!t.hasNameForId(n,i)){var s=r(o,"."+i,void 0,n);t.insertRules(n,i,s)}a.push(i),this.staticRulesId=i}else{for(var l=this.rules.length,u=q(this.baseHash,r.hash),c="",d=0;d<l;d++){var h=this.rules[d];if("string"==typeof h)c+=h;else if(h){var f=ef(h,e,t,r),p=Array.isArray(f)?f.join(""):f;u=q(u,p+d),c+=p}}if(c){var m=F(u>>>0);if(!t.hasNameForId(n,m)){var y=r(c,"."+m,void 0,n);t.insertRules(n,m,y)}a.push(m)}}return a.join(" ")},e}(),G=/^\s*\/\/.*$/gm,K=[":","[",".","#"];function Q(e){var t,r,n,a,o=void 0===e?y:e,i=o.options,l=void 0===i?y:i,u=o.plugins,c=void 0===u?m:u,d=new s.A(l),h=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,o,i,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),p=function(e,n,o){return 0===n&&-1!==K.indexOf(o[r.length])||o.match(a)?e:"."+t};function g(e,o,i,s){void 0===s&&(s="&");var l=e.replace(G,""),u=o&&i?i+" "+o+" { "+l+" }":l;return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),a=RegExp("(\\"+r+"\\b){2,}"),d(i||!o?"":o,u)}return d.use([].concat(c,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(r)>0&&(a[0]=a[0].replace(n,p))},f,function(e){if(-2===e){var t=h;return h=[],t}}])),g.hash=c.length?c.reduce(function(e,t){return t.name||R(15),q(e,t.name)},5381).toString():"",g}var Z=a.createContext(),ee=(Z.Consumer,a.createContext()),et=(ee.Consumer,new U),er=Q();function en(){return(0,a.useContext)(Z)||et}function ea(){return(0,a.useContext)(ee)||er}function eo(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],o=en(),s=(0,a.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,a.useMemo)(function(){return Q({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,a.useEffect)(function(){i()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),a.createElement(Z.Provider,{value:s},a.createElement(ee.Provider,{value:l},e.children))}var ei=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=er);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return R(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=er),this.name+e.hash},e}(),es=/([A-Z])/,el=/([A-Z])/g,eu=/^ms-/,ec=function(e){return"-"+e.toLowerCase()};function ed(e){return es.test(e)?e.replace(el,ec).replace(eu,"-ms-"):e}var eh=function(e){return null==e||!1===e||""===e};function ef(e,t,r,n){if(Array.isArray(e)){for(var a,o=[],i=0,s=e.length;i<s;i+=1)""!==(a=ef(e[i],t,r,n))&&(Array.isArray(a)?o.push.apply(o,a):o.push(a));return o}return eh(e)?"":b(e)?"."+e.styledComponentId:g(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:ef(e(t),t,r,n):e instanceof
`;return e.stacktrace.map(e=>{let{function:r,filename:n,lineno:a,colno:o}=e,i=`${t} at ${r} (${n}:${a}:${o})`;return t=" ",i}).join(`
`)}(t);console.error("Error During Alloy SSR:",`${t.type}: ${t.value}
`,t,r)}catch{console.error("Error During Alloy SSR:",e,"unable to parse as json")}}}b([a.aC],ReactBaseElement.prototype,"embeddedData",void 0),b([a.aC],ReactBaseElement.prototype,"ssrError",void 0),b([a.aC],ReactBaseElement.prototype,"reactRoot",void 0);try{w.displayName||(w.displayName="REACT_INVARIANT_ERROR_REGEX")}catch{}},45499:(e,t,r)=>{r.d(t,{d:()=>i});var n=r(74848),a=r(21728),o=r(23818);function i(e){let t,r,i,s=(0,a.c)(5),{routes:l,children:u}=e;return s[0]!==l?(r={routes:l},s[0]=l,s[1]=r):r=s[1],t=r,s[2]!==t||s[3]!==u?(i=(0,n.jsx)(o.k.Provider,{value:t,children:u}),s[2]=t,s[3]=u,s[4]=i):i=s[4],i}try{i.displayName||(i.displayName="RoutesContextProvider")}catch{}},30729:(e,t,r)=>{r.d(t,{e:()=>o,v:()=>i});var n=r(74848),a=r(21728);let o=(0,r(96540).createContext)(!1);function i(e){let t,r=(0,a.c)(3),{enabled:i,children:s}=e;return r[0]!==s||r[1]!==i?(t=(0,n.jsx)(o.Provider,{value:i,children:s}),r[0]=s,r[1]=i,r[2]=t):t=r[2],t}try{o.displayName||(o.displayName="IsDataRouterEnabledContext")}catch{}try{i.displayName||(i.displayName="IsDataRouterEnabledContextProvider")}catch{}},97710:(e,t,r)=>{r.d(t,{V:()=>u,l:()=>c});var n=r(74848),a=r(21728),o=r(22353),i=r(96540),s=r(2604);let l=(0,i.createContext)(null),u=(0,i.memo)(function(e){let t,r,u,c,d=(0,a.c)(9),{appName:h,children:f,critical:p}=e;d[0]!==p||d[1]!==h?(t={reactAppName:h,critical:p},d[0]=p,d[1]=h,d[2]=t):t=d[2];let m=(0,i.useRef)(t);d[3]!==p||d[4]!==h?(r=()=>{m.current={reactAppName:h,critical:p}},d[3]=p,d[4]=h,d[5]=r):r=d[5],(0,i.useEffect)(r),d[6]===Symbol.for("react.memo_cache_sentinel")?(u=(e,t)=>{if(e)return(0,s.km)(e,e=>{(0,o.N7)(e,{critical:m.current.critical,reactAppName:m.current.reactAppName,...t})})},d[6]=u):u=d[6];let y=u;return d[7]!==f?(c=(0,n.jsx)(l.Provider,{value:y,children:f}),d[7]=f,d[8]=c):c=d[8],c});function c(){let e=(0,i.useContext)(l);if(null==e)throw Error("useReportErrorContext must be used within a ReportErrorContextProvider");return e}try{l.displayName||(l.displayName="ReportErrorContext")}catch{}try{u.displayName||(u.displayName="ReportErrorContextProvider")}catch{}},2604:(e,t,r)=>{r.d(t,{Ly:()=>m,hw:()=>f,km:()=>h});var n=r(74848),a=r(21728),o=r(22353),i=r(85647),s=r(93116),l=r(96540),u=r(66300),c=r(39627);let d=new WeakSet;function h(e,t){d.has(e)||(d.add(e),t(e))}let f=e=>{let t,r=(0,a.c)(3),{appName:o}=e,s=(0,i.r5)();return!function(e){return(0,i.pX)(e)&&404===e.status}(s)?(r[0]!==o||r[1]!==s?(t=(0,n.jsx)(p,{appName:o,routeError:s}),r[0]=o,r[1]=s,r[2]=t):t=r[2],t):null};function p(e){let t,r,i,u,c=(0,a.c)(6),{appName:d,routeError:f}=e,p=(0,l.useRef)(d);return c[0]!==d?(t=()=>{p.current=d},c[0]=d,c[1]=t):t=c[1],(0,l.useEffect)(t),c[2]!==f?(r=()=>{f&&h(f,e=>{(0,o.N7)(e,{critical:!0,reactAppName:p.current})})},i=[f],c[2]=f,c[3]=r,c[4]=i):(r=c[3],i=c[4]),(0,l.useEffect)(r,i),c[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsxs)(s.E,{border:!1,spacious:!1,children:[(0,n.jsx)(s.E.Heading,{children:"Unable to load page."}),(0,n.jsx)(s.E.Description,{children:"Please reload page and try again"})]}),c[5]=u):u=c[5],u}let m=e=>{let t,r=(0,a.c)(6),{appName:o}=e,s=(0,i.r5)();if((0,u.c)(s)){let e;return r[0]!==o||r[1]!==s?(e=(0,n.jsx)(y,{appName:o,responseError:s}),r[0]=o,r[1]=s,r[2]=e):e=r[2],e}return r[3]!==o||r[4]!==s?(t=(0,n.jsx)(p,{routeError:s,appName:o}),r[3]=o,r[4]=s,r[5]=t):t=r[5],t};function y(e){let t,r,i,u,d,f,p,m,y,g=(0,a.c)(11),{appName:v,responseError:b}=e,w=(0,a.c)(3),S=b.response.status;w[0]!==S?(m=()=>{let e=function(e){let t=404===e?"404 Page not found":500===e?"500 Internal server error":`Error ${e}`;return(0,c.Y)(t)}(S);(0,c.D)(e)},y=[S],w[0]=S,w[1]=m,w[2]=y):(m=w[1],y=w[2]),(0,l.useEffect)(m,y);let E=(0,l.useRef)(v);g[0]!==v?(t=()=>{E.current=v},g[0]=v,g[1]=t):t=g[1],(0,l.useEffect)(t),g[2]!==b?(r=()=>{h(b,e=>{(0,o.N7)(e,{critical:!0,reactAppName:E.current})})},i=[b],g[2]=b,g[3]=r,g[4]=i):(r=g[3],i=g[4]),(0,l.useEffect)(r,i),g[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)(s.E.Heading,{children:"Unable to load page."}),g[5]=u):u=g[5];let R=`Status: ${b.response.status} Message: ${b.message}`;return g[6
`,""):String(r.body);return{path:t,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===r.formEncType){if(!eZ(i))return o();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return o()}}}if(f("function"==typeof FormData,"FormData is not available in this environment"),r.formData)n=eO(r.formData),a=r.formData;else if(r.body instanceof FormData)n=eO(r.body),a=r.body;else if(r.body instanceof URLSearchParams)a=e$(n=r.body);else if(null==r.body)n=new URLSearchParams,a=new FormData;else try{n=new URLSearchParams(r.body),a=e$(n)}catch(e){return o()}let l={formMethod:i,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(eZ(l.formMethod))return{path:t,submission:l};let u=v(t);return e&&u.search&&e0(u.search)&&n.append("index",""),u.search=`?${n}`,{path:g(u),submission:l}}function eh(e,t,r,n,a,o,i,s,l,u,c,d,h,f,p,m,y,g,v,b){let w,S=b?eJ(b[1])?b[1].error:b[1].data:void 0,E=a.createURL(o.location),R=a.createURL(l);if(c&&o.errors){let e=Object.keys(o.errors)[0];w=i.findIndex(t=>t.route.id===e)}else if(b&&eJ(b[1])){let e=b[0];w=i.findIndex(t=>t.route.id===e)-1}let x=b?b[1].statusCode:void 0,k=x&&x>=400,N={currentUrl:E,currentParams:o.matches[0]?.params||{},nextUrl:R,nextParams:i[0].params,...s,actionResult:S,actionStatus:x},j=i.map((a,i)=>{var s,l,h,f,p;let m,y,g,{route:v}=a,b=null;if(null!=w&&i>w?b=!1:v.lazy?b=!0:null==v.loader?b=!1:c?b=ef(v,o.loaderData,o.errors):(s=o.loaderData,l=o.matches[i],h=a,m=!l||h.route.id!==l.route.id,y=!s.hasOwnProperty(h.route.id),(m||y)&&(b=!0)),null!==b)return ek(r,n,e,a,u,t,b);let S=!k&&(d||E.pathname+E.search===R.pathname+R.search||E.search!==R.search||(f=o.matches[i],p=a,g=f.route.path,f.pathname!==p.pathname||null!=g&&g.endsWith("*")&&f.params["*"]!==p.params["*"])),x={...N,defaultShouldRevalidate:S},C=ep(a,x);return ek(r,n,e,a,u,t,C,x)}),T=[];return p.forEach((e,s)=>{if(c||!i.some(t=>t.route.id===e.routeId)||f.has(s))return;let l=o.fetchers.get(s),p=l&&"idle"!==l.state&&void 0===l.data,b=C(y,e.path,g);if(!b){if(v&&p)return;T.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(m.has(s))return;let w=e1(b,e.path),S=new AbortController,E=e_(a,e.path,S.signal),R=null;if(h.has(s))h.delete(s),R=eN(r,n,E,b,w,u,t);else if(p)d&&(R=eN(r,n,E,b,w,u,t));else{let e={...N,defaultShouldRevalidate:!k&&d};ep(w,e)&&(R=eN(r,n,E,b,w,u,t,e))}R&&T.push({key:s,routeId:e.routeId,path:e.path,matches:R,match:w,request:E,controller:S})}),{dsMatches:j,revalidatingFetchers:T}}function ef(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&e.id in t,a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ep(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function em(e,t,r,n,a){let o;if(e){let t=n[e];f(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),o=t.children}else o=r;let i=x(t.filter(e=>!o.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>r.children?.some(r=>e(t,r))))})(e,t))),a,[e||"_","patch",String(o?.length||"0")],n);o.push(...i)}var ey=new WeakMap,eg=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let a=r[t.id];if(f(a,"No route found in manifest"),!a.lazy||"object"!=typeof a.lazy)return;let o=a.lazy[e];if(!o)return;let i=ey.get(a);i||(i={},ey.set(a,i));let s=i[e];if(s)return s;let l=(async()=>{let t=E.has(e),r=void 0!==a[e]&&"hasErrorBoundary"!==e;if(t)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(r)p(!1,`Route "${a.id}" has a static
Please change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let m=ti();if(t){let e="string"==typeof t?v(t):t;f("/"===d||e.pathname?.startsWith(d),`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 "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),a=e}else a=m;let y=a.pathname||"/",g=y;if("/"!==d){let e=d.replace(/^\//,"").split("/");g="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=C(e,{pathname:g});p(h||null!=b,`No routes matched location "${a.pathname}${a.search}${a.hash}" `),p(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${a.pathname}${a.search}${a.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=function(e,t=[],r=null,n=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let a=e,i=r?.errors;if(null!=i){let e=a.findIndex(e=>e.route.id&&i?.[e.route.id]!==void 0);f(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,l=-1;if(r)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){s=!0,a=l>=0?a.slice(0,l+1):[a[0]];break}}}return a.reduceRight((e,n,u)=>{let c,d=!1,h=null,f=null;r&&(c=i&&n.route.id?i[n.route.id]:void 0,h=n.route.errorElement||tg,s&&(l<0&&0===u?(tL("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):l===u&&(d=!0,f=n.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,u+1)),m=()=>{let t;return t=c?h:d?f:n.route.Component?o.createElement(n.route.Component,null):n.route.element?n.route.element:e,o.createElement(tb,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===u)?o.createElement(tv,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:W([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:W([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,r,n);return t&&w?o.createElement(tr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...a},navigationType:"POP"}},w):w}var tg=o.createElement(function(){let e=tj(),t=X(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=o.createElement(o.Fragment,null,o.createElement("p",null,"\u{1F4BF} Hey developer \u{1F44B}"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route.")),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),r?o.createElement("pre",{style:{padding:"0.5rem",backgroundColor:n}},r):null,i)},null),tv=class extends o.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)
`);for(let e of(t=o.pop()||"",o))n.enqueue(e)},flush(e){t&&e.enqueue(t)}})}()).getReader(),o={values:[],hydrated:[],deferred:{},plugins:r},i=await ru.call(o,a),s=n.promise;return i.done?n.resolve():s=rc.call(o,a).then(n.resolve).catch(e=>{for(let t of Object.values(o.deferred))t.reject(e);n.reject(e)}),{done:s.then(()=>a.closed),value:i.value}}async function ru(e){let t,r=await e.read();if(!r.value)throw SyntaxError();try{t=JSON.parse(r.value)}catch(e){throw SyntaxError()}return{done:r.done,value:ri.call(this,t)}}async function rc(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let r=t.value;switch(r[0]){case"P":{let e,t=r.indexOf(":"),n=Number(r.slice(1,t)),a=this.deferred[n];if(!a)throw Error(`Deferred ID ${n} not found in stream`);let o=r.slice(t+1);try{e=JSON.parse(o)}catch(e){throw SyntaxError()}let i=ri.call(this,e);a.resolve(i);break}case"E":{let e,t=r.indexOf(":"),n=Number(r.slice(1,t)),a=this.deferred[n];if(!a)throw Error(`Deferred ID ${n} not found in stream`);let o=r.slice(t+1);try{e=JSON.parse(o)}catch(e){throw SyntaxError()}let i=ri.call(this,e);a.reject(i);break}default:throw SyntaxError()}t=await e.read()}}async function rd(e){let t={signal:e.signal};if("GET"!==e.method){t.method=e.method;let r=e.headers.get("Content-Type");r&&/\bapplication\/json\b/.test(r)?(t.headers={"Content-Type":r},t.body=JSON.stringify(await e.json())):r&&/\btext\/plain\b/.test(r)?(t.headers={"Content-Type":r},t.body=await e.text()):r&&/\bapplication\/x-www-form-urlencoded\b/.test(r)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var rh=Symbol("SingleFetchRedirect"),rf=class extends null{},rp=new Set([100,101,204,205]);function rm({context:e,identifier:t,reader:r,textDecoder:n,nonce:a}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:o}=e.renderMeta,i=o[t];if(i||(i=o[t]=r.read().then(e=>{o[t].result={done:e.done,value:n.decode(e.value,{stream:!0})}}).catch(e=>{o[t].error=e})),i.error)throw i.error;if(void 0===i.result)throw i;let{done:s,value:l}=i.result,u=l?React4.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${JSON.stringify(l).replace(re,e=>t9[e])});`}}):null;return s?React4.createElement(React4.Fragment,null,u,React4.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:"window.__reactRouterContext.streamController.close();"}})):React4.createElement(React4.Fragment,null,u,React4.createElement(React4.Suspense,null,React4.createElement(rm,{context:e,identifier:t+1,reader:r,textDecoder:n,nonce:a})))}async function ry(e,t,r,n){try{let a,o=await e;if("routes"in o){for(let e of t)if(e.route.id in o.routes){let t=o.routes[e.route.id];if("error"in t){a=t.error;break}}}void 0!==a&&Array.from(r.values()).forEach(e=>{n[e].result instanceof rf&&(n[e].result=a)})}catch(e){}}function rg(e,t){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname="_root.data":t&&"/"===O(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function rv(e,t){return rl(e,{plugins:[(e,...r)=>{if("SanitizedError"===e){let[e,n,a]=r,o=Error;e&&e in t&&"function"==typeof t[e]&&(o=t[e]);let i=new o(n);return i.stack=a,{value:i}}if("ErrorResponse"===e){let[e,t,n]=r;return{value:new V(t,n,e)}}return"SingleFetchRedirect"===e?{value:{[rh]:r[0]}}:"SingleFetchClassInstance"===e?{value:r[0]}:"SingleFetchFallback"===e?{value:void 0}:void 0}]})}function rb(e,t){if("redirect"in e){let{redirect:t,revalidate:r,reload:n,replace:a,status:o}=e.redirect;throw q(t,{status:o,headers:{...r?{"X-Remix-Revalidate":"yes"}:null,...n?{"X-Remix-Reload-Document":"yes"}:null,...a?{"X-Remix-Replace":"yes"}:null}})}let r=e.routes[t];if(null==r)throw new rf(`No result found for routeId "${t}"`);if("error"in r)throw r.error;if("data"in r)return r.data;throw Error(`Invalid response found for routeId "${t}"`)}function rw(){let e,t,r=new Promise((n,
console.log(
"\u{1F4BF} Hey developer \u{1F44B}. 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."
);
`}});return X(e)?o.createElement(rE,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n):(r=e instanceof Error?e:Error(null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e)),o.createElement(rE,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n))}function rE({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:a}=r$();return a.root?.Layout&&!r?n:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?o.createElement(rW,null):null)))}function rR(){return React6.createElement(rE,{title:"Loading...",renderScripts:!0},React6.createElement("script",{dangerouslySetInnerHTML:{__html:`
console.log(
"\u{1F4BF} Hey developer \u{1F44B}. You can provide a way better UX than this " +
"when your app is loading JS modules and/or running \`clientLoader\` " +
"functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +
"for more information."
);
`}}))}o.Component;function rx(e,t){if("loader"===e&&!t.hasLoader||"action"===e&&!t.hasAction){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(r),new V(400,"Bad Request",Error(r),!0)}}function rC(e,t){let r="clientAction"===e?"a":"an",n=`Route "${t}" does not have ${r} ${e}, but you are trying to submit to it. To fix this, please add ${r} \`${e}\` function to the route`;throw console.error(n),new V(405,"Method Not Allowed",Error(n),!0)}function rk(e,t,r,n,a){if(a){var o,i,s;let e;return o=r.id,i=t.shouldRevalidate,s=a,e=!1,t=>e?i?i(t):t.defaultShouldRevalidate:(e=!0,s.has(o))}if(!n&&r.hasLoader&&!r.hasClientLoader){let r=e?L(e)[1].map(e=>e.paramName):[],n=e=>r.some(t=>e.currentParams[t]!==e.nextParams[t]);if(!t.shouldRevalidate)return e=>n(e);{let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:n(t)})}}if(n&&t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:!0})}return t.shouldRevalidate}async function rN(e,t){let r=tZ(e,t),n=t1(e),a=await r;return await Promise.all([n,t2(e,a)]),{Component:rj(a),ErrorBoundary:a.ErrorBoundary,unstable_clientMiddleware:a.unstable_clientMiddleware,clientAction:a.clientAction,clientLoader:a.clientLoader,handle:a.handle,links:a.links,meta:a.meta,shouldRevalidate:a.shouldRevalidate}}function rj(e){if(null!=e.default&&("object"!=typeof e.default||0!==Object.keys(e.default).length))return e.default}var rT=new Set,rA=new Set,rP="react-router-manifest-version";function rL(){let e=o.useContext(e8);return tQ(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function r_(){let e=o.useContext(e6);return tQ(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rO=o.createContext(void 0);function r$(){let e=o.useContext(rO);return tQ(e,"You must render this element inside a <HydratedRouter> element"),e}function rD(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}rO.displayName="FrameworkContext";function rI({page:e,...t}){let{router:r}=rL(),n=o.useMemo(()=>C(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?o.createElement(rM,{page:e,matches:n,...t}):null}function rM({page:e,matches:t,...r}){let n=ti(),{manifest:a,routeModules:i}=r$(),{basename:s}=rL(),{loaderData:l,matches:u}=r_(),c=o.useMemo(()=>t6(e,t,u,a,n,"data"),[e,t,u,a,n]),d=o.useMemo(()=>t6(e,t,u,a,n,"assets"),[e,t,u,a,n]),h=o.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,o=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in l&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:r.add(e.route.id))}),0===r.size)return[];let u=rg(e,s);return o&&r.size>0&&u.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[s,l,n,a,c,t,e,i]),f=o.useMemo(()=>t7(d,a),[d,a]),p=function(e){let{manifest:t,routeModules:r}=r$(),[n,a]=o.useState([]);return o.useEffect(()=>{let n=!1;return t8(e,t,r).then(e=>{n||a(e)}),()=>{n=!0}},[e,t,r]),n}(d);return o.createElement(o.Fragment,null,h.map(e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),f.map(e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),p.map(({key:e,link:t})=>o.createElement("link",{key:e,...t})))}var rz=!1;function rW(e){var t,r;let{manifest:n,serverHandoffString:a,isSpaMode:i,renderMeta:s,routeDiscovery:l,ssr:u}=r$(),{router:c,static:d,staticContext:h}=rL(),{matches:f}=r_(),p=(t=l,r=u,"lazy"===t.mode&&!0===r);s&&(s.didRenderScripts=!0);let m=function(e,t,r){if(r&&!rz)return[e[0]];!1;return e}(f,null,i);o.useEffect(()=>{rz=!0},[]);let y=o.useMemo(()=>{let t=h?`window.__reactRouterContext = ${a};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",r=d?`${n.hmr?.runtime?`import ${JSON.stringify(n.hmr.runtime)};`:""}${!p?`import ${JSON.stringify(n.ur
${m.map((e,t)=>{let r=`route${t}`,a=n.routes[e.route.id];tQ(a,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:i,clientMiddlewareModule:s,hydrateFallbackModule:l,module:u}=a,c=[...o?[{module:o,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...l?[{module:l,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===c.length?`import * as ${r} from ${JSON.stringify(u)};`:[c.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
`),`const ${r} = {${c.map(e=>`...${e.varName}`).join(",")}};`].join(`
`)}).join(`
`)}
${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),a=r.state.location.pathname.split("/").filter(Boolean),o=["/"];for(a.pop();a.length>0;)o.push(`/${a.join("/")}`),a.pop();o.forEach(e=>{let t=C(r.routes,e,r.basename);t&&t.forEach(e=>n.add(e.route.id))});let i=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:i,sri:!!e||void 0}}(n,c),null,2)};`:""}
window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};
import(${JSON.stringify(n.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t},type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:"module",async:!0}))},[]),g=rz?[]:[...new Set(n.entry.imports.concat(t7(m,n,{includeHydrateFallback:!0})))],v="object"==typeof n.sri?n.sri:{};return rz?null:o.createElement(o.Fragment,null,"object"==typeof n.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,p?null:o.createElement("link",{rel:"modulepreload",href:n.url,crossOrigin:e.crossOrigin,integrity:v[n.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:n.entry.module,crossOrigin:e.crossOrigin,integrity:v[n.entry.module],suppressHydrationWarning:!0}),g.map(t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],suppressHydrationWarning:!0})),y)}var rU="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{rU&&(window.__reactRouterVersion="7.6.1")}catch(e){}function rH(e,t){return(function(e){let t,r,n,a,o,i=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==i&&void 0!==i.document&&void 0!==i.document.createElement;f(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l=e.hydrationRouteProperties||[],u=e.mapRouteProperties||eo,c={},d=x(e.routes,u,void 0,c),h=e.basename||"/",m=e.dataStrategy||eE,g={unstable_middleware:!1,...e.future},v=null,b=new Set,E=null,R=null,j=null,T=null!=e.hydrationData,A=C(d,e.history.location,h),P=!1,L=null;if(null!=A||e.patchRoutesOnNavigation)if(A&&!e.hydrationData&&e7(A,d,e.history.location.pathname).active&&(A=null),A)if(A.some(e=>e.route.lazy))r=!1;else if(A.some(e=>e.route.loader)){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=A.findIndex(e=>void 0!==n[e.route.id]);r=A.slice(0,e+1).every(e=>!ef(e.route,t,n))}else r=A.every(e=>!ef(e.route,t,n))}else r=!0;else{r=!1,A=[];let t=e7(null,d,e.history.location.pathname);t.active&&t.matches&&(P=!0,A=t.matches)}else{let t=eH(404,{pathname:e.history.location.pathname}),{matches:n,route:a}=eU(d);r=!0,A=n,L={[a.id]:t}}let _={historyAction:e.history.action,location:e.history.location,matches:A,initialized:r,navigation:et,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||L,fetchers:new Map,blockers:new Map},$="POP",D=!1,I=!1,M=new Map,z=null,W=!1,U=!1,H=new Set,B=new Map,F=0,q=-1,J=new Map,Y=new Set,V=new Map,G=new Map,K=new Set,Q=new Map,Z=null;function es(e,t={}){_={..._,...e};let r=[],n=[];_.fetchers.forEach((e,t)=>{"idle"===e.state&&(K.has(t)?r.push(t):n.push(t))}),K.forEach(e=>{_.fetchers.has(e)||B.has(e)||r.push(e)}),[...b].forEach(e=>e(_,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),r.forEach(e=>e$(e)),n.forEach(e=>_.fetchers.delete(e))}function el(r,n,{flushSync:a}={}){let o,i,s=null!=_.actionData&&null!=_.navigation.formMethod&&eZ(_.navigation.formMethod)&&"loading"===_.navigation.state&&r.state?._isRedirect!==!0;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:s?_.actionData:null;let l=n.loaderData?eM(_.loaderData,n.loaderData,n.matches||[],n.errors):_.loaderData,u=_.blockers;u.size>0&&(u=new Map(u)).forEach((e,t)=>u.set(t,en));let c=!0===D||null!=_.navigation.formMethod&&eZ(_.navigation.formMethod)&&r.state?._isRedirect!==!0;if(t&&(d=t,t=void 0),W||"POP"===$||("PUSH"===$?e.history.push(r,r.state):"REPLACE"===$&&e.history.replace(r,r.state)),"POP"===$){let e=M.get(_.location.pathname);e&&e.has(r.pathname)?i={currentLocation:_.location,nextLocation:r}:M.has(r.pathname)&&(i={currentLocation:r,ne
`)):(t.enqueue(i.encode(`[${o.stringified.join(",")}]
`)),s=o.stringified.length-1);let n=new WeakSet;if(Object.keys(o.deferred).length){let e,r=new Promise((t,r)=>{if(e=t,a){let e=()=>r(a.reason||Error("Signal was aborted."));a.aborted?e():a.addEventListener("abort",t=>{e()})}});for(;Object.keys(o.deferred).length>0;){for(let[e,a]of Object.entries(o.deferred))n.has(a)||n.add(o.deferred[Number(e)]=Promise.race([r,a]).then(r=>{let n=rr.call(o,r);if(Array.isArray(n))t.enqueue(i.encode(`P${e}:[["Z",${n[0]}]]
`)),o.index++,s++;else if(n<0)t.enqueue(i.encode(`P${e}:${n}
`));else{let r=o.stringified.slice(s+1).join(",");t.enqueue(i.encode(`P${e}:[${r}]
`)),s=o.stringified.length-1}},r=>{r&&"object"==typeof r&&r instanceof Error||(r=Error("An unknown error occurred"));let n=rr.call(o,r);if(Array.isArray(n))t.enqueue(i.encode(`E${e}:[["Z",${n[0]}]]
`)),o.index++,s++;else if(n<0)t.enqueue(i.encode(`E${e}:${n}
`));else{let r=o.stringified.slice(s+1).join(",");t.enqueue(i.encode(`E${e}:[${r}]
`)),s=o.stringified.length-1}}).finally(()=>{delete o.deferred[Number(e)]}));await Promise.race(Object.values(o.deferred))}e()}await Promise.all(Object.values(o.deferred)),t.close()}})}(e,{signal:a.signal,plugins:[e=>{if(e instanceof Error){let{name:t,message:r,stack:a}="production"===n?nc(e,n):e;return["SanitizedError",t,r,a]}if(e instanceof V){let{data:t,status:r,statusText:n}=e;return["ErrorResponse",t,r,n]}if(e&&"object"==typeof e&&rh in e)return["SingleFetchRedirect",e[rh]]}],postPlugins:[e=>{if(e&&"object"==typeof e)return["SingleFetchClassInstance",Object.fromEntries(Object.entries(e))]},()=>["SingleFetchFallback"]]})}function nj(e,t){let r="Unexpected Server Error";return"production"!==t&&(r+=`
${String(e)}`),new Response(r,{status:500,headers:{"Content-Type":"text/plain"}})}function nT(e){return`__flash_${e}__`}}}]);
//# sourceMappingURL=react-core-9e613698d1dd.js.map