stackkit 0.2.3 → 0.2.7
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/dist/cli/add.js +2 -16
- package/dist/cli/create.js +2 -5
- package/dist/cli/doctor.js +0 -4
- package/dist/cli/list.js +73 -83
- package/dist/index.js +25 -44
- package/dist/lib/constants.d.ts +110 -0
- package/dist/lib/constants.js +112 -0
- package/dist/lib/conversion/js-conversion.js +27 -11
- package/dist/lib/discovery/installed-detection.js +3 -3
- package/dist/lib/discovery/module-discovery.d.ts +1 -1
- package/dist/lib/discovery/module-discovery.js +22 -6
- package/dist/lib/env/env-editor.js +41 -47
- package/dist/lib/fs/files.d.ts +0 -1
- package/dist/lib/fs/files.js +12 -40
- package/dist/lib/generation/code-generator.d.ts +4 -1
- package/dist/lib/generation/code-generator.js +39 -13
- package/dist/lib/pm/package-manager.d.ts +1 -1
- package/dist/lib/pm/package-manager.js +130 -14
- package/dist/lib/ui/logger.d.ts +8 -1
- package/dist/lib/ui/logger.js +60 -3
- package/dist/lib/utils/fs-helpers.d.ts +12 -0
- package/dist/lib/utils/fs-helpers.js +61 -0
- package/dist/lib/utils/json-loader.d.ts +6 -0
- package/dist/lib/utils/json-loader.js +34 -0
- package/dist/lib/utils/module-loader.d.ts +9 -0
- package/dist/lib/utils/module-loader.js +98 -0
- package/dist/lib/utils/package-root.d.ts +1 -0
- package/dist/lib/utils/package-root.js +75 -2
- package/dist/lib/utils/path-resolver.d.ts +9 -0
- package/dist/lib/utils/path-resolver.js +44 -0
- package/modules/auth/authjs/files/nextjs/api/auth/[...nextauth]/route.ts +3 -0
- package/modules/auth/authjs/files/nextjs/proxy.ts +1 -0
- package/modules/auth/authjs/files/shared/lib/auth.ts +119 -0
- package/modules/auth/authjs/files/{prisma → shared/prisma}/schema.prisma +11 -1
- package/modules/auth/authjs/generator.json +18 -8
- package/modules/auth/better-auth/files/express/middlewares/authorize.ts +54 -0
- package/modules/auth/better-auth/files/express/types/express.d.ts +16 -0
- package/modules/auth/better-auth/files/nextjs/lib/auth/auth-guards.ts +31 -0
- package/modules/auth/better-auth/files/nextjs/proxy.ts +34 -0
- package/modules/auth/better-auth/files/{lib → shared/lib}/auth-client.ts +1 -1
- package/modules/auth/better-auth/files/{lib → shared/lib}/auth.ts +46 -20
- package/modules/auth/better-auth/files/{prisma → shared/prisma}/schema.prisma +11 -2
- package/modules/auth/better-auth/generator.json +74 -19
- package/modules/database/mongoose/generator.json +16 -2
- package/modules/database/prisma/files/lib/prisma.ts +1 -1
- package/modules/database/prisma/files/prisma/schema.prisma +1 -2
- package/modules/database/prisma/generator.json +8 -1
- package/package.json +7 -7
- package/templates/express/env.example +2 -1
- package/templates/express/package.json +3 -4
- package/templates/express/src/app.ts +18 -25
- package/templates/express/src/config/cors.ts +12 -0
- package/templates/express/src/config/helmet.ts +5 -0
- package/templates/express/src/config/logger.ts +6 -0
- package/templates/express/src/config/rate-limit.ts +11 -0
- package/templates/express/src/{features → modules}/health/health.route.ts +1 -1
- package/templates/express/src/routes/index.ts +12 -0
- package/templates/express/src/shared/errors/api-error.ts +14 -0
- package/templates/express/src/shared/errors/error-codes.ts +9 -0
- package/templates/express/src/shared/logger/logger.ts +20 -0
- package/templates/express/src/{middlewares → shared/middlewares}/error.middleware.ts +1 -1
- package/templates/express/src/shared/middlewares/not-found.middleware.ts +9 -0
- package/templates/express/src/shared/utils/async-handler.ts +9 -0
- package/templates/express/src/shared/utils/pagination.ts +6 -0
- package/templates/express/src/shared/utils/response.ts +9 -0
- package/templates/express/tsconfig.json +9 -3
- package/templates/nextjs/next-env.d.ts +6 -0
- package/templates/react/dist/assets/index-D4AHT4dU.js +193 -0
- package/templates/react/dist/assets/index-rpwj5ZOX.css +1 -0
- package/templates/react/dist/index.html +14 -0
- package/templates/react/dist/vite.svg +1 -0
- package/templates/react/src/app/layouts/dashboard-layout.tsx +8 -0
- package/templates/react/src/app/layouts/public-layout.tsx +5 -0
- package/templates/react/src/app/providers.tsx +20 -0
- package/templates/react/src/app/router.tsx +21 -0
- package/templates/react/src/{pages/About.tsx → features/about/pages/about.tsx} +1 -1
- package/templates/react/src/{pages/Home.tsx → features/home/pages/home.tsx} +1 -1
- package/templates/react/src/main.tsx +2 -2
- package/templates/react/src/{api/client.ts → shared/api/http.ts} +1 -1
- package/templates/react/src/{pages/NotFound.tsx → shared/pages/not-found.tsx} +1 -1
- package/dist/lib/git-utils.d.ts +0 -1
- package/dist/lib/git-utils.js +0 -29
- package/modules/auth/authjs/files/api/auth/[...nextauth]/route.ts +0 -2
- package/modules/auth/authjs/files/lib/auth.ts +0 -22
- package/templates/express/.env.example +0 -2
- package/templates/nextjs/.env.example +0 -1
- package/templates/react/.env.example +0 -1
- package/templates/react/.prettierignore +0 -4
- package/templates/react/.prettierrc +0 -9
- /package/modules/auth/better-auth/files/{api → nextjs/api}/auth/[...all]/route.ts +0 -0
- /package/modules/auth/better-auth/files/{lib → shared/lib/email}/email-service.ts +0 -0
- /package/modules/auth/better-auth/files/{lib → shared/lib/email}/email-templates.ts +0 -0
- /package/templates/express/src/{features → modules}/health/health.controller.ts +0 -0
- /package/templates/express/src/{features → modules}/health/health.service.ts +0 -0
- /package/templates/react/src/{components/ErrorBoundary.tsx → shared/components/error-boundary.tsx} +0 -0
- /package/templates/react/src/{components/Layout.tsx → shared/components/layout.tsx} +0 -0
- /package/templates/react/src/{components/Loading.tsx → shared/components/loading.tsx} +0 -0
- /package/templates/react/src/{components/SEO.tsx → shared/components/seo.tsx} +0 -0
- /package/templates/react/src/{lib/queryClient.ts → shared/lib/query-client.ts} +0 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
function Bb(n,l){for(var r=0;r<l.length;r++){const u=l[r];if(typeof u!="string"&&!Array.isArray(u)){for(const c in u)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(u,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>u[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function gs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Xc={exports:{}},sr={};var qy;function qb(){if(qy)return sr;qy=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(u,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:n,type:u,key:d,ref:c!==void 0?c:null,props:f}}return sr.Fragment=l,sr.jsx=r,sr.jsxs=r,sr}var Qy;function Qb(){return Qy||(Qy=1,Xc.exports=qb()),Xc.exports}var J=Qb(),Ar=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Yb={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},Gb=class{#e=Yb;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,l){return this.#e.setTimeout(n,l)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,l){return this.#e.setInterval(n,l)}clearInterval(n){this.#e.clearInterval(n)}},ml=new Gb;function Xb(n){setTimeout(n,0)}var gl=typeof window>"u"||"Deno"in globalThis;function Xt(){}function Vb(n,l){return typeof n=="function"?n(l):n}function ff(n){return typeof n=="number"&&n>=0&&n!==1/0}function iv(n,l){return Math.max(n+(l||0)-Date.now(),0)}function qa(n,l){return typeof n=="function"?n(l):n}function mn(n,l){return typeof n=="function"?n(l):n}function Yy(n,l){const{type:r="all",exact:u,fetchStatus:c,predicate:f,queryKey:d,stale:h}=n;if(d){if(u){if(l.queryHash!==_f(d,l.options))return!1}else if(!Tr(l.queryKey,d))return!1}if(r!=="all"){const p=l.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof h=="boolean"&&l.isStale()!==h||c&&c!==l.state.fetchStatus||f&&!f(l))}function Gy(n,l){const{exact:r,status:u,predicate:c,mutationKey:f}=n;if(f){if(!l.options.mutationKey)return!1;if(r){if(Er(l.options.mutationKey)!==Er(f))return!1}else if(!Tr(l.options.mutationKey,f))return!1}return!(u&&l.state.status!==u||c&&!c(l))}function _f(n,l){return(l?.queryKeyHashFn||Er)(n)}function Er(n){return JSON.stringify(n,(l,r)=>hf(r)?Object.keys(r).sort().reduce((u,c)=>(u[c]=r[c],u),{}):r)}function Tr(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(r=>Tr(n[r],l[r])):!1}var Kb=Object.prototype.hasOwnProperty;function rv(n,l){if(n===l)return n;const r=Xy(n)&&Xy(l);if(!r&&!(hf(n)&&hf(l)))return l;const c=(r?n:Object.keys(n)).length,f=r?l:Object.keys(l),d=f.length,h=r?new Array(d):{};let p=0;for(let y=0;y<d;y++){const v=r?y:f[y],b=n[v],S=l[v];if(b===S){h[v]=b,(r?y<c:Kb.call(n,v))&&p++;continue}if(b===null||S===null||typeof b!="object"||typeof S!="object"){h[v]=S;continue}const A=rv(b,S);h[v]=A,A===b&&p++}return c===d&&p===c?n:h}function df(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(n[r]!==l[r])return!1;return!0}function Xy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function hf(n){if(!Vy(n))return!1;const l=n.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!Vy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Vy(n){return Object.prototype.toString.call(n)==="[object Object]"}function Fb(n){return new Promise(l=>{ml.setTimeout(l,n)})}function mf(n,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,l):r.structuralSharing!==!1?rv(n,l):l}function Zb(n,l,r=0){const u=[...n,l];return r&&u.length>r?u.slice(1):u}function Jb(n,l,r=0){const u=[l,...n];return r&&u.length>r?u.slice(0,-1):u}var Uf=Symbol();function uv(n,l){return!n.queryFn&&l?.initialPromise?()=>l.initialPromise:!n.queryFn||n.queryFn===Uf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function sv(n,l){return typeof n=="function"?n(...l):!!n}function kb(n,l,r){let u=!1,c;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(c??=l(),u||(u=!0,c.aborted?r():c.addEventListener("abort",r,{once:!0})),c)}),n}var $b=class extends Ar{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!gl&&window.addEventListener){const l=()=>n();return window.addEventListener("visibilitychange",l,!1),()=>{window.removeEventListener("visibilitychange",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(l=>{l(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Nf=new $b;function yf(){let n,l;const r=new Promise((c,f)=>{n=c,l=f});r.status="pending",r.catch(()=>{});function u(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{u({status:"fulfilled",value:c}),n(c)},r.reject=c=>{u({status:"rejected",reason:c}),l(c)},r}var Pb=Xb;function Wb(){let n=[],l=0,r=h=>{h()},u=h=>{h()},c=Pb;const f=h=>{l?n.push(h):c(()=>{r(h)})},d=()=>{const h=n;n=[],h.length&&c(()=>{u(()=>{h.forEach(p=>{r(p)})})})};return{batch:h=>{let p;l++;try{p=h()}finally{l--,l||d()}return p},batchCalls:h=>(...p)=>{f(()=>{h(...p)})},schedule:f,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{u=h},setScheduler:h=>{c=h}}}var Dt=Wb(),Ib=class extends Ar{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!gl&&window.addEventListener){const l=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",l,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(r=>{r(n)}))}isOnline(){return this.#e}},ms=new Ib;function eS(n){return Math.min(1e3*2**n,3e4)}function ov(n){return(n??"online")==="online"?ms.isOnline():!0}var pf=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function cv(n){let l=!1,r=0,u;const c=yf(),f=()=>c.status!=="pending",d=z=>{if(!f()){const _=new pf(z);S(_),n.onCancel?.(_)}},h=()=>{l=!0},p=()=>{l=!1},y=()=>Nf.isFocused()&&(n.networkMode==="always"||ms.isOnline())&&n.canRun(),v=()=>ov(n.networkMode)&&n.canRun(),b=z=>{f()||(u?.(),c.resolve(z))},S=z=>{f()||(u?.(),c.reject(z))},A=()=>new Promise(z=>{u=_=>{(f()||y())&&z(_)},n.onPause?.()}).then(()=>{u=void 0,f()||n.onContinue?.()}),O=()=>{if(f())return;let z;const _=r===0?n.initialPromise:void 0;try{z=_??n.fn()}catch(K){z=Promise.reject(K)}Promise.resolve(z).then(b).catch(K=>{if(f())return;const X=n.retry??(gl?0:3),F=n.retryDelay??eS,ie=typeof F=="function"?F(r,K):F,ue=X===!0||typeof X=="number"&&r<X||typeof X=="function"&&X(r,K);if(l||!ue){S(K);return}r++,n.onFail?.(r,K),Fb(ie).then(()=>y()?void 0:A()).then(()=>{l?S(K):O()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(u?.(),c),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?O():A().then(O),c)}}var fv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ff(this.gcTime)&&(this.#e=ml.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(gl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ml.clearTimeout(this.#e),this.#e=void 0)}},tS=class extends fv{#e;#t;#n;#l;#a;#u;#r;constructor(n){super(),this.#r=!1,this.#u=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#n=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Fy(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#u,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const l=Fy(this.options);l.data!==void 0&&(this.setState(Ky(l.data,l.dataUpdatedAt)),this.#e=l)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,l){const r=mf(this.state.data,n,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:l?.updatedAt,manual:l?.manual}),r}setState(n,l){this.#i({type:"setState",state:n,setStateOptions:l})}cancel(n){const l=this.#a?.promise;return this.#a?.cancel(n),l?l.then(Xt).catch(Xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>mn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>qa(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!iv(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(l=>l.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(l=>l.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(l=>l!==n),this.observers.length||(this.#a&&(this.#r?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,l){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&l?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,u=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#r=!0,r.signal)})},c=()=>{const h=uv(this.options,l),y=(()=>{const v={client:this.#l,queryKey:this.queryKey,meta:this.meta};return u(v),v})();return this.#r=!1,this.options.persister?this.options.persister(h,y,this):h(y)},d=(()=>{const h={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return u(h),h})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=cv({initialPromise:l?.initialPromise,fn:d.fetchFn,onCancel:h=>{h instanceof pf&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(h,p)=>{this.#i({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof pf){if(h.silent)return this.#a.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const l=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...dv(r.data,this.options),fetchMeta:n.meta??null};case"success":const u={...r,...Ky(n.data,n.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?u:void 0,u;case"error":const c=n.error;return{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=l(this.state),Dt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function dv(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ov(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Ky(n,l){return{data:n,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Fy(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,r=l!==void 0,u=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var nS=class extends Ar{constructor(n,l){super(),this.options=l,this.#e=n,this.#i=null,this.#r=yf(),this.bindMethods(),this.setOptions(l)}#e;#t=void 0;#n=void 0;#l=void 0;#a;#u;#r;#i;#y;#d;#h;#o;#c;#s;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Zy(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#E(),this.#t.removeObserver(this)}setOptions(n){const l=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#t.setOptions(this.options),l._defaulted&&!df(this.options,l)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const u=this.hasListeners();u&&Jy(this.#t,r,this.options,l)&&this.#f(),this.updateResult(),u&&(this.#t!==r||mn(this.options.enabled,this.#t)!==mn(l.enabled,this.#t)||qa(this.options.staleTime,this.#t)!==qa(l.staleTime,this.#t))&&this.#p();const c=this.#v();u&&(this.#t!==r||mn(this.options.enabled,this.#t)!==mn(l.enabled,this.#t)||c!==this.#s)&&this.#g(c)}getOptimisticResult(n){const l=this.#e.getQueryCache().build(this.#e,n),r=this.createResult(l,n);return lS(this,r)&&(this.#l=r,this.#u=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#l}trackResult(n,l){return new Proxy(n,{get:(r,u)=>(this.trackProp(u),l?.(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,u))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const l=this.#e.defaultQueryOptions(n),r=this.#e.getQueryCache().build(this.#e,l);return r.fetch().then(()=>this.createResult(r,l))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(n){this.#T();let l=this.#t.fetch(this.options,n);return n?.throwOnError||(l=l.catch(Xt)),l}#p(){this.#S();const n=qa(this.options.staleTime,this.#t);if(gl||this.#l.isStale||!ff(n))return;const r=iv(this.#l.dataUpdatedAt,n)+1;this.#o=ml.setTimeout(()=>{this.#l.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(n){this.#E(),this.#s=n,!(gl||mn(this.options.enabled,this.#t)===!1||!ff(this.#s)||this.#s===0)&&(this.#c=ml.setInterval(()=>{(this.options.refetchIntervalInBackground||Nf.isFocused())&&this.#f()},this.#s))}#b(){this.#p(),this.#g(this.#v())}#S(){this.#o&&(ml.clearTimeout(this.#o),this.#o=void 0)}#E(){this.#c&&(ml.clearInterval(this.#c),this.#c=void 0)}createResult(n,l){const r=this.#t,u=this.options,c=this.#l,f=this.#a,d=this.#u,p=n!==r?n.state:this.#n,{state:y}=n;let v={...y},b=!1,S;if(l._optimisticResults){const te=this.hasListeners(),me=!te&&Zy(n,l),xe=te&&Jy(n,r,l,u);(me||xe)&&(v={...v,...dv(y.data,n.options)}),l._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:A,errorUpdatedAt:O,status:z}=v;S=v.data;let _=!1;if(l.placeholderData!==void 0&&S===void 0&&z==="pending"){let te;c?.isPlaceholderData&&l.placeholderData===d?.placeholderData?(te=c.data,_=!0):te=typeof l.placeholderData=="function"?l.placeholderData(this.#h?.state.data,this.#h):l.placeholderData,te!==void 0&&(z="success",S=mf(c?.data,te,l),b=!0)}if(l.select&&S!==void 0&&!_)if(c&&S===f?.data&&l.select===this.#y)S=this.#d;else try{this.#y=l.select,S=l.select(S),S=mf(c?.data,S,l),this.#d=S,this.#i=null}catch(te){this.#i=te}this.#i&&(A=this.#i,S=this.#d,O=Date.now(),z="error");const K=v.fetchStatus==="fetching",X=z==="pending",F=z==="error",ie=X&&K,ue=S!==void 0,w={status:z,fetchStatus:v.fetchStatus,isPending:X,isSuccess:z==="success",isError:F,isInitialLoading:ie,isLoading:ie,data:S,dataUpdatedAt:v.dataUpdatedAt,error:A,errorUpdatedAt:O,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:K,isRefetching:K&&!X,isLoadingError:F&&!ue,isPaused:v.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:F&&ue,isStale:jf(n,l),refetch:this.refetch,promise:this.#r,isEnabled:mn(l.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const te=be=>{w.status==="error"?be.reject(w.error):w.data!==void 0&&be.resolve(w.data)},me=()=>{const be=this.#r=w.promise=yf();te(be)},xe=this.#r;switch(xe.status){case"pending":n.queryHash===r.queryHash&&te(xe);break;case"fulfilled":(w.status==="error"||w.data!==xe.value)&&me();break;case"rejected":(w.status!=="error"||w.error!==xe.reason)&&me();break}}return w}updateResult(){const n=this.#l,l=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#u=this.options,this.#a.data!==void 0&&(this.#h=this.#t),df(l,n))return;this.#l=l;const r=()=>{if(!n)return!0;const{notifyOnChangeProps:u}=this.options,c=typeof u=="function"?u():u;if(c==="all"||!c&&!this.#m.size)return!0;const f=new Set(c??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#l).some(d=>{const h=d;return this.#l[h]!==n[h]&&f.has(h)})};this.#R({listeners:r()})}#T(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const l=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(l?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#R(n){Dt.batch(()=>{n.listeners&&this.listeners.forEach(l=>{l(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function aS(n,l){return mn(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function Zy(n,l){return aS(n,l)||n.state.data!==void 0&&vf(n,l,l.refetchOnMount)}function vf(n,l,r){if(mn(l.enabled,n)!==!1&&qa(l.staleTime,n)!=="static"){const u=typeof r=="function"?r(n):r;return u==="always"||u!==!1&&jf(n,l)}return!1}function Jy(n,l,r,u){return(n!==l||mn(u.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&jf(n,r)}function jf(n,l){return mn(l.enabled,n)!==!1&&n.isStaleByTime(qa(l.staleTime,n))}function lS(n,l){return!df(n.getCurrentResult(),l)}function ky(n){return{onFetch:(l,r)=>{const u=l.options,c=l.fetchOptions?.meta?.fetchMore?.direction,f=l.state.data?.pages||[],d=l.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const y=async()=>{let v=!1;const b=O=>{kb(O,()=>l.signal,()=>v=!0)},S=uv(l.options,l.fetchOptions),A=async(O,z,_)=>{if(v)return Promise.reject();if(z==null&&O.pages.length)return Promise.resolve(O);const X=(()=>{const ve={client:l.client,queryKey:l.queryKey,pageParam:z,direction:_?"backward":"forward",meta:l.options.meta};return b(ve),ve})(),F=await S(X),{maxPages:ie}=l.options,ue=_?Jb:Zb;return{pages:ue(O.pages,F,ie),pageParams:ue(O.pageParams,z,ie)}};if(c&&f.length){const O=c==="backward",z=O?iS:$y,_={pages:f,pageParams:d},K=z(u,_);h=await A(_,K,O)}else{const O=n??f.length;do{const z=p===0?d[0]??u.initialPageParam:$y(u,h);if(p>0&&z==null)break;h=await A(h,z),p++}while(p<O)}return h};l.options.persister?l.fetchFn=()=>l.options.persister?.(y,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r):l.fetchFn=y}}}function $y(n,{pages:l,pageParams:r}){const u=l.length-1;return l.length>0?n.getNextPageParam(l[u],l,r[u],r):void 0}function iS(n,{pages:l,pageParams:r}){return l.length>0?n.getPreviousPageParam?.(l[0],l,r[0],r):void 0}var rS=class extends fv{#e;#t;#n;#l;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||uS(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(l=>l!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(n){const l=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=cv({fn:()=>this.options.mutationFn?this.options.mutationFn(n,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:l,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const u=this.state.status==="pending",c=!this.#l.canStart();try{if(u)l();else{this.#a({type:"pending",variables:n,isPaused:c}),await this.#n.config.onMutate?.(n,this,r);const d=await this.options.onMutate?.(n,r);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:c})}const f=await this.#l.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,r),await this.options.onSuccess?.(f,n,this.state.context,r),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,n,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,r)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,r)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const l=r=>{switch(n.type){case"failed":return{...r,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...r,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:n.error,failureCount:r.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=l(this.state),Dt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function uS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sS=class extends Ar{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,l,r){const u=new rS({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(l),state:r});return this.add(u),u}add(n){this.#e.add(n);const l=Iu(n);if(typeof l=="string"){const r=this.#t.get(l);r?r.push(n):this.#t.set(l,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const l=Iu(n);if(typeof l=="string"){const r=this.#t.get(l);if(r)if(r.length>1){const u=r.indexOf(n);u!==-1&&r.splice(u,1)}else r[0]===n&&this.#t.delete(l)}}this.notify({type:"removed",mutation:n})}canRun(n){const l=Iu(n);if(typeof l=="string"){const u=this.#t.get(l)?.find(c=>c.state.status==="pending");return!u||u===n}else return!0}runNext(n){const l=Iu(n);return typeof l=="string"?this.#t.get(l)?.find(u=>u!==n&&u.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Dt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const l={exact:!0,...n};return this.getAll().find(r=>Gy(l,r))}findAll(n={}){return this.getAll().filter(l=>Gy(n,l))}notify(n){Dt.batch(()=>{this.listeners.forEach(l=>{l(n)})})}resumePausedMutations(){const n=this.getAll().filter(l=>l.state.isPaused);return Dt.batch(()=>Promise.all(n.map(l=>l.continue().catch(Xt))))}};function Iu(n){return n.options.scope?.id}var oS=class extends Ar{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,l,r){const u=l.queryKey,c=l.queryHash??_f(u,l);let f=this.get(c);return f||(f=new tS({client:n,queryKey:u,queryHash:c,options:n.defaultQueryOptions(l),state:r,defaultOptions:n.getQueryDefaults(u)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const l=this.#e.get(n.queryHash);l&&(n.destroy(),l===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Dt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const l={exact:!0,...n};return this.getAll().find(r=>Yy(l,r))}findAll(n={}){const l=this.getAll();return Object.keys(n).length>0?l.filter(r=>Yy(n,r)):l}notify(n){Dt.batch(()=>{this.listeners.forEach(l=>{l(n)})})}onFocus(){Dt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Dt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},cS=class{#e;#t;#n;#l;#a;#u;#r;#i;constructor(n={}){this.#e=n.queryCache||new oS,this.#t=n.mutationCache||new sS,this.#n=n.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=Nf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ms.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const l=this.defaultQueryOptions({queryKey:n});return this.#e.get(l.queryHash)?.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),r=this.#e.build(this,l),u=r.state.data;return u===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(qa(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(u))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:l,state:r})=>{const u=r.data;return[l,u]})}setQueryData(n,l,r){const u=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(u.queryHash)?.state.data,d=Vb(l,f);if(d!==void 0)return this.#e.build(this,u).setData(d,{...r,manual:!0})}setQueriesData(n,l,r){return Dt.batch(()=>this.#e.findAll(n).map(({queryKey:u})=>[u,this.setQueryData(u,l,r)]))}getQueryState(n){const l=this.defaultQueryOptions({queryKey:n});return this.#e.get(l.queryHash)?.state}removeQueries(n){const l=this.#e;Dt.batch(()=>{l.findAll(n).forEach(r=>{l.remove(r)})})}resetQueries(n,l){const r=this.#e;return Dt.batch(()=>(r.findAll(n).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const r={revert:!0,...l},u=Dt.batch(()=>this.#e.findAll(n).map(c=>c.cancel(r)));return Promise.all(u).then(Xt).catch(Xt)}invalidateQueries(n,l={}){return Dt.batch(()=>(this.#e.findAll(n).forEach(r=>{r.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},l)))}refetchQueries(n,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},u=Dt.batch(()=>this.#e.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,r);return r.throwOnError||(f=f.catch(Xt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(u).then(Xt)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const r=this.#e.build(this,l);return r.isStaleByTime(qa(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Xt).catch(Xt)}fetchInfiniteQuery(n){return n.behavior=ky(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Xt).catch(Xt)}ensureInfiniteQueryData(n){return n.behavior=ky(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ms.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,l){this.#l.set(Er(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...this.#l.values()],r={};return l.forEach(u=>{Tr(n,u.queryKey)&&Object.assign(r,u.defaultOptions)}),r}setMutationDefaults(n,l){this.#a.set(Er(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...this.#a.values()],r={};return l.forEach(u=>{Tr(n,u.mutationKey)&&Object.assign(r,u.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const l={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=_f(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Uf&&(l.enabled=!1),l}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Vc={exports:{}},Ee={};var Py;function fS(){if(Py)return Ee;Py=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function A(R){return R===null||typeof R!="object"?null:(R=S&&R[S]||R["@@iterator"],typeof R=="function"?R:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,_={};function K(R,Q,$){this.props=R,this.context=Q,this.refs=_,this.updater=$||O}K.prototype.isReactComponent={},K.prototype.setState=function(R,Q){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,Q,"setState")},K.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function X(){}X.prototype=K.prototype;function F(R,Q,$){this.props=R,this.context=Q,this.refs=_,this.updater=$||O}var ie=F.prototype=new X;ie.constructor=F,z(ie,K.prototype),ie.isPureReactComponent=!0;var ue=Array.isArray;function ve(){}var w={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function me(R,Q,$){var I=$.ref;return{$$typeof:n,type:R,key:Q,ref:I!==void 0?I:null,props:$}}function xe(R,Q){return me(R.type,Q,R.props)}function be(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function we(R){var Q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function($){return Q[$]})}var $e=/\/+/g;function De(R,Q){return typeof R=="object"&&R!==null&&R.key!=null?we(""+R.key):Q.toString(36)}function Te(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ve,ve):(R.status="pending",R.then(function(Q){R.status==="pending"&&(R.status="fulfilled",R.value=Q)},function(Q){R.status==="pending"&&(R.status="rejected",R.reason=Q)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function j(R,Q,$,I,oe){var ge=typeof R;(ge==="undefined"||ge==="boolean")&&(R=null);var Ne=!1;if(R===null)Ne=!0;else switch(ge){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(R.$$typeof){case n:case l:Ne=!0;break;case v:return Ne=R._init,j(Ne(R._payload),Q,$,I,oe)}}if(Ne)return oe=oe(R),Ne=I===""?"."+De(R,0):I,ue(oe)?($="",Ne!=null&&($=Ne.replace($e,"$&/")+"/"),j(oe,Q,$,"",function(Ga){return Ga})):oe!=null&&(be(oe)&&(oe=xe(oe,$+(oe.key==null||R&&R.key===oe.key?"":(""+oe.key).replace($e,"$&/")+"/")+Ne)),Q.push(oe)),1;Ne=0;var st=I===""?".":I+":";if(ue(R))for(var tt=0;tt<R.length;tt++)I=R[tt],ge=st+De(I,tt),Ne+=j(I,Q,$,ge,oe);else if(tt=A(R),typeof tt=="function")for(R=tt.call(R),tt=0;!(I=R.next()).done;)I=I.value,ge=st+De(I,tt++),Ne+=j(I,Q,$,ge,oe);else if(ge==="object"){if(typeof R.then=="function")return j(Te(R),Q,$,I,oe);throw Q=String(R),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function k(R,Q,$){if(R==null)return R;var I=[],oe=0;return j(R,I,"","",function(ge){return Q.call($,ge,oe++)}),I}function P(R){if(R._status===-1){var Q=R._result;Q=Q(),Q.then(function($){(R._status===0||R._status===-1)&&(R._status=1,R._result=$)},function($){(R._status===0||R._status===-1)&&(R._status=2,R._result=$)}),R._status===-1&&(R._status=0,R._result=Q)}if(R._status===1)return R._result.default;throw R._result}var pe=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},Se={map:k,forEach:function(R,Q,$){k(R,function(){Q.apply(this,arguments)},$)},count:function(R){var Q=0;return k(R,function(){Q++}),Q},toArray:function(R){return k(R,function(Q){return Q})||[]},only:function(R){if(!be(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ee.Activity=b,Ee.Children=Se,Ee.Component=K,Ee.Fragment=r,Ee.Profiler=c,Ee.PureComponent=F,Ee.StrictMode=u,Ee.Suspense=p,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(R){return w.H.useMemoCache(R)}},Ee.cache=function(R){return function(){return R.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(R,Q,$){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var I=z({},R.props),oe=R.key;if(Q!=null)for(ge in Q.key!==void 0&&(oe=""+Q.key),Q)!te.call(Q,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&Q.ref===void 0||(I[ge]=Q[ge]);var ge=arguments.length-2;if(ge===1)I.children=$;else if(1<ge){for(var Ne=Array(ge),st=0;st<ge;st++)Ne[st]=arguments[st+2];I.children=Ne}return me(R.type,oe,I)},Ee.createContext=function(R){return R={$$typeof:d,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},Ee.createElement=function(R,Q,$){var I,oe={},ge=null;if(Q!=null)for(I in Q.key!==void 0&&(ge=""+Q.key),Q)te.call(Q,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(oe[I]=Q[I]);var Ne=arguments.length-2;if(Ne===1)oe.children=$;else if(1<Ne){for(var st=Array(Ne),tt=0;tt<Ne;tt++)st[tt]=arguments[tt+2];oe.children=st}if(R&&R.defaultProps)for(I in Ne=R.defaultProps,Ne)oe[I]===void 0&&(oe[I]=Ne[I]);return me(R,ge,oe)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(R){return{$$typeof:h,render:R}},Ee.isValidElement=be,Ee.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:P}},Ee.memo=function(R,Q){return{$$typeof:y,type:R,compare:Q===void 0?null:Q}},Ee.startTransition=function(R){var Q=w.T,$={};w.T=$;try{var I=R(),oe=w.S;oe!==null&&oe($,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(ve,pe)}catch(ge){pe(ge)}finally{Q!==null&&$.types!==null&&(Q.types=$.types),w.T=Q}},Ee.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},Ee.use=function(R){return w.H.use(R)},Ee.useActionState=function(R,Q,$){return w.H.useActionState(R,Q,$)},Ee.useCallback=function(R,Q){return w.H.useCallback(R,Q)},Ee.useContext=function(R){return w.H.useContext(R)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(R,Q){return w.H.useDeferredValue(R,Q)},Ee.useEffect=function(R,Q){return w.H.useEffect(R,Q)},Ee.useEffectEvent=function(R){return w.H.useEffectEvent(R)},Ee.useId=function(){return w.H.useId()},Ee.useImperativeHandle=function(R,Q,$){return w.H.useImperativeHandle(R,Q,$)},Ee.useInsertionEffect=function(R,Q){return w.H.useInsertionEffect(R,Q)},Ee.useLayoutEffect=function(R,Q){return w.H.useLayoutEffect(R,Q)},Ee.useMemo=function(R,Q){return w.H.useMemo(R,Q)},Ee.useOptimistic=function(R,Q){return w.H.useOptimistic(R,Q)},Ee.useReducer=function(R,Q,$){return w.H.useReducer(R,Q,$)},Ee.useRef=function(R){return w.H.useRef(R)},Ee.useState=function(R){return w.H.useState(R)},Ee.useSyncExternalStore=function(R,Q,$){return w.H.useSyncExternalStore(R,Q,$)},Ee.useTransition=function(){return w.H.useTransition()},Ee.version="19.2.3",Ee}var Wy;function Lf(){return Wy||(Wy=1,Vc.exports=fS()),Vc.exports}var C=Lf();const ua=gs(C),dS=Bb({__proto__:null,default:ua},[C]);var hv=C.createContext(void 0),hS=n=>{const l=C.useContext(hv);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},mS=({client:n,children:l})=>(C.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),J.jsx(hv.Provider,{value:n,children:l})),mv=C.createContext(!1),yS=()=>C.useContext(mv);mv.Provider;function pS(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var vS=C.createContext(pS()),gS=()=>C.useContext(vS),bS=(n,l,r)=>{const u=r?.state.error&&typeof n.throwOnError=="function"?sv(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||u)&&(l.isReset()||(n.retryOnMount=!1))},SS=n=>{C.useEffect(()=>{n.clearReset()},[n])},ES=({result:n,errorResetBoundary:l,throwOnError:r,query:u,suspense:c})=>n.isError&&!l.isReset()&&!n.isFetching&&u&&(c&&n.data===void 0||sv(r,[n.error,u])),TS=n=>{if(n.suspense){const r=c=>c==="static"?c:Math.max(c??1e3,1e3),u=n.staleTime;n.staleTime=typeof u=="function"?(...c)=>r(u(...c)):r(u),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},RS=(n,l)=>n.isLoading&&n.isFetching&&!l,OS=(n,l)=>n?.suspense&&l.isPending,Iy=(n,l,r)=>l.fetchOptimistic(n).catch(()=>{r.clearReset()});function xS(n,l,r){const u=yS(),c=gS(),f=hS(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const h=f.getQueryCache().get(d.queryHash);d._optimisticResults=u?"isRestoring":"optimistic",TS(d),bS(d,c,h),SS(c);const p=!f.getQueryCache().get(d.queryHash),[y]=C.useState(()=>new l(f,d)),v=y.getOptimisticResult(d),b=!u&&n.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(S=>{const A=b?y.subscribe(Dt.batchCalls(S)):Xt;return y.updateResult(),A},[y,b]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),C.useEffect(()=>{y.setOptions(d)},[d,y]),OS(d,v))throw Iy(d,y,c);if(ES({result:v,errorResetBoundary:c,throwOnError:d.throwOnError,query:h,suspense:d.suspense}))throw v.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,v),d.experimental_prefetchInRender&&!gl&&RS(v,u)&&(p?Iy(d,y,c):h?.promise)?.catch(Xt).finally(()=>{y.updateResult()}),d.notifyOnChangeProps?v:y.trackResult(v)}function AS(n,l){return xS(n,nS)}var wS=function(){return null},Kc={exports:{}},or={},Fc={exports:{}},Zc={};var ep;function CS(){return ep||(ep=1,(function(n){function l(j,k){var P=j.length;j.push(k);e:for(;0<P;){var pe=P-1>>>1,Se=j[pe];if(0<c(Se,k))j[pe]=k,j[P]=Se,P=pe;else break e}}function r(j){return j.length===0?null:j[0]}function u(j){if(j.length===0)return null;var k=j[0],P=j.pop();if(P!==k){j[0]=P;e:for(var pe=0,Se=j.length,R=Se>>>1;pe<R;){var Q=2*(pe+1)-1,$=j[Q],I=Q+1,oe=j[I];if(0>c($,P))I<Se&&0>c(oe,$)?(j[pe]=oe,j[I]=P,pe=I):(j[pe]=$,j[Q]=P,pe=Q);else if(I<Se&&0>c(oe,P))j[pe]=oe,j[I]=P,pe=I;else break e}}return k}function c(j,k){var P=j.sortIndex-k.sortIndex;return P!==0?P:j.id-k.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],y=[],v=1,b=null,S=3,A=!1,O=!1,z=!1,_=!1,K=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function ie(j){for(var k=r(y);k!==null;){if(k.callback===null)u(y);else if(k.startTime<=j)u(y),k.sortIndex=k.expirationTime,l(p,k);else break;k=r(y)}}function ue(j){if(z=!1,ie(j),!O)if(r(p)!==null)O=!0,ve||(ve=!0,we());else{var k=r(y);k!==null&&Te(ue,k.startTime-j)}}var ve=!1,w=-1,te=5,me=-1;function xe(){return _?!0:!(n.unstable_now()-me<te)}function be(){if(_=!1,ve){var j=n.unstable_now();me=j;var k=!0;try{e:{O=!1,z&&(z=!1,X(w),w=-1),A=!0;var P=S;try{t:{for(ie(j),b=r(p);b!==null&&!(b.expirationTime>j&&xe());){var pe=b.callback;if(typeof pe=="function"){b.callback=null,S=b.priorityLevel;var Se=pe(b.expirationTime<=j);if(j=n.unstable_now(),typeof Se=="function"){b.callback=Se,ie(j),k=!0;break t}b===r(p)&&u(p),ie(j)}else u(p);b=r(p)}if(b!==null)k=!0;else{var R=r(y);R!==null&&Te(ue,R.startTime-j),k=!1}}break e}finally{b=null,S=P,A=!1}k=void 0}}finally{k?we():ve=!1}}}var we;if(typeof F=="function")we=function(){F(be)};else if(typeof MessageChannel<"u"){var $e=new MessageChannel,De=$e.port2;$e.port1.onmessage=be,we=function(){De.postMessage(null)}}else we=function(){K(be,0)};function Te(j,k){w=K(function(){j(n.unstable_now())},k)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(j){switch(S){case 1:case 2:case 3:var k=3;break;default:k=S}var P=S;S=k;try{return j()}finally{S=P}},n.unstable_requestPaint=function(){_=!0},n.unstable_runWithPriority=function(j,k){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=S;S=j;try{return k()}finally{S=P}},n.unstable_scheduleCallback=function(j,k,P){var pe=n.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?pe+P:pe):P=pe,j){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=P+Se,j={id:v++,callback:k,priorityLevel:j,startTime:P,expirationTime:Se,sortIndex:-1},P>pe?(j.sortIndex=P,l(y,j),r(p)===null&&j===r(y)&&(z?(X(w),w=-1):z=!0,Te(ue,P-pe))):(j.sortIndex=Se,l(p,j),O||A||(O=!0,ve||(ve=!0,we()))),j},n.unstable_shouldYield=xe,n.unstable_wrapCallback=function(j){var k=S;return function(){var P=S;S=k;try{return j.apply(this,arguments)}finally{S=P}}}})(Zc)),Zc}var tp;function DS(){return tp||(tp=1,Fc.exports=CS()),Fc.exports}var Jc={exports:{}},zt={};var np;function MS(){if(np)return zt;np=1;var n=Lf();function l(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,y,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:p,containerInfo:y,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,zt.createPortal=function(p,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(l(299));return f(p,y,null,v)},zt.flushSync=function(p){var y=d.T,v=u.p;try{if(d.T=null,u.p=2,p)return p()}finally{d.T=y,u.p=v,u.d.f()}},zt.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,u.d.C(p,y))},zt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},zt.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var v=y.as,b=h(v,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,A=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?u.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:A}):v==="script"&&u.d.X(p,{crossOrigin:b,integrity:S,fetchPriority:A,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},zt.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=h(y.as,y.crossOrigin);u.d.M(p,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&u.d.M(p)},zt.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,b=h(v,y.crossOrigin);u.d.L(p,v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},zt.preloadModule=function(p,y){if(typeof p=="string")if(y){var v=h(y.as,y.crossOrigin);u.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else u.d.m(p)},zt.requestFormReset=function(p){u.d.r(p)},zt.unstable_batchedUpdates=function(p,y){return p(y)},zt.useFormState=function(p,y,v){return d.H.useFormState(p,y,v)},zt.useFormStatus=function(){return d.H.useHostTransitionStatus()},zt.version="19.2.3",zt}var ap;function zS(){if(ap)return Jc.exports;ap=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Jc.exports=MS(),Jc.exports}var lp;function _S(){if(lp)return or;lp=1;var n=DS(),l=Lf(),r=zS();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(u(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var o=s.alternate;if(o===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===a)return p(s),e;if(o===i)return p(s),t;o=o.sibling}throw Error(u(188))}if(a.return!==i.return)a=s,i=o;else{for(var m=!1,g=s.child;g;){if(g===a){m=!0,a=s,i=o;break}if(g===i){m=!0,i=s,a=o;break}g=g.sibling}if(!m){for(g=o.child;g;){if(g===a){m=!0,a=o,i=s;break}if(g===i){m=!0,i=o,a=s;break}g=g.sibling}if(!m)throw Error(u(189))}}if(a.alternate!==i)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function we(e){return e===null||typeof e!="object"?null:(e=be&&e[be]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case K:return"Profiler";case _:return"StrictMode";case ue:return"Suspense";case ve:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case F:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case w:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Te=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},pe=[],Se=-1;function R(e){return{current:e}}function Q(e){0>Se||(e.current=pe[Se],pe[Se]=null,Se--)}function $(e,t){Se++,pe[Se]=e.current,e.current=t}var I=R(null),oe=R(null),ge=R(null),Ne=R(null);function st(e,t){switch($(ge,t),$(oe,e),$(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sy(t),e=oy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(I),$(I,e)}function tt(){Q(I),Q(oe),Q(ge)}function Ga(e){e.memoizedState!==null&&$(Ne,e);var t=I.current,a=oy(t,e.type);t!==a&&($(oe,e),$(I,a))}function Tl(e){oe.current===e&&(Q(I),Q(oe)),Ne.current===e&&(Q(Ne),lr._currentValue=P)}var yt,Bn;function Dn(e){if(yt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);yt=t&&t[1]||"",Bn=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+yt+e+Bn}var mi=!1;function vn(e,t){if(!e||mi)return"";mi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(q){var L=q}Reflect.construct(e,[],V)}else{try{V.call()}catch(q){L=q}e.call(V.prototype)}}else{try{throw Error()}catch(q){L=q}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(q){if(q&&L&&typeof q.stack=="string")return[q.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),m=o[0],g=o[1];if(m&&g){var T=m.split(`
|
|
4
|
+
`),N=g.split(`
|
|
5
|
+
`);for(s=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;if(i===T.length||s===N.length)for(i=T.length-1,s=N.length-1;1<=i&&0<=s&&T[i]!==N[s];)s--;for(;1<=i&&0<=s;i--,s--)if(T[i]!==N[s]){if(i!==1||s!==1)do if(i--,s--,0>s||T[i]!==N[s]){var Y=`
|
|
6
|
+
`+T[i].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=i&&0<=s);break}}}finally{mi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Dn(a):""}function Ms(e,t){switch(e.tag){case 26:case 27:case 5:return Dn(e.type);case 16:return Dn("Lazy");case 13:return e.child!==t&&t!==null?Dn("Suspense Fallback"):Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 15:return vn(e.type,!1);case 11:return vn(e.type.render,!1);case 1:return vn(e.type,!0);case 31:return Dn("Activity");default:return""}}function Hr(e){try{var t="",a=null;do t+=Ms(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
|
|
7
|
+
Error generating stack: `+i.message+`
|
|
8
|
+
`+i.stack}}var Rl=Object.prototype.hasOwnProperty,yi=n.unstable_scheduleCallback,pi=n.unstable_cancelCallback,zs=n.unstable_shouldYield,_s=n.unstable_requestPaint,ot=n.unstable_now,Xa=n.unstable_getCurrentPriorityLevel,vi=n.unstable_ImmediatePriority,Ol=n.unstable_UserBlockingPriority,jt=n.unstable_NormalPriority,gn=n.unstable_LowPriority,gi=n.unstable_IdlePriority,Us=n.log,bi=n.unstable_setDisableYieldValue,Va=null,nt=null;function bn(e){if(typeof Us=="function"&&bi(e),nt&&typeof nt.setStrictMode=="function")try{nt.setStrictMode(Va,e)}catch{}}var Mt=Math.clz32?Math.clz32:qr,Br=Math.log,Ns=Math.LN2;function qr(e){return e>>>=0,e===0?32:31-(Br(e)/Ns|0)|0}var qn=256,Ka=262144,oa=4194304;function Qn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fa(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var s=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var g=i&134217727;return g!==0?(i=g&~o,i!==0?s=Qn(i):(m&=g,m!==0?s=Qn(m):a||(a=g&~e,a!==0&&(s=Qn(a))))):(g=i&~o,g!==0?s=Qn(g):m!==0?s=Qn(m):a||(a=i&~e,a!==0&&(s=Qn(a)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:s}function Za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qr(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ja(){var e=oa;return oa<<=1,(oa&62914560)===0&&(oa=4194304),e}function ca(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function js(e,t,a,i,s,o){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,T=e.expirationTimes,N=e.hiddenUpdates;for(a=m&~a;0<a;){var Y=31-Mt(a),V=1<<Y;g[Y]=0,T[Y]=-1;var L=N[Y];if(L!==null)for(N[Y]=null,Y=0;Y<L.length;Y++){var q=L[Y];q!==null&&(q.lane&=-536870913)}a&=~V}i!==0&&Yr(e,i,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function Yr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Mt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function E(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Mt(a),s=1<<i;s&t|e[i]&t&&(e[i]|=t),a&=~s}}function M(e,t){var a=t&-t;return a=(a&42)!==0?1:H(a),(a&(e.suspendedLanes|t))!==0?0:a}function H(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Z(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function W(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:_y(e.type))}function ce(e,t){var a=k.p;try{return k.p=e,t()}finally{k.p=a}}var ne=Math.random().toString(36).slice(2),ee="__reactFiber$"+ne,ae="__reactProps$"+ne,se="__reactContainer$"+ne,he="__reactEvents$"+ne,fe="__reactListeners$"+ne,Qe="__reactHandles$"+ne,je="__reactResources$"+ne,at="__reactMarker$"+ne;function lt(e){delete e[ee],delete e[ae],delete e[he],delete e[fe],delete e[Qe]}function it(e){var t=e[ee];if(t)return t;for(var a=e.parentNode;a;){if(t=a[se]||a[ee]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=py(e);e!==null;){if(a=e[ee])return a;e=py(e)}return t}e=a,a=e.parentNode}return null}function Le(e){if(e=e[ee]||e[se]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Lt(e){var t=e[je];return t||(t=e[je]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[at]=!0}var Sn=new Set,Ft={};function En(e,t){tn(e,t),tn(e+"Capture",t)}function tn(e,t){for(Ft[e]=t,e=0;e<t.length;e++)Sn.add(t[e])}var Yn=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ka={},$a={};function He(e){return Rl.call($a,e)?!0:Rl.call(ka,e)?!1:Yn.test(e)?$a[e]=!0:(ka[e]=!0,!1)}function ct(e,t,a){if(He(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Tn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Ot(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Be(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gr(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(m){a=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Si(e){if(!e._valueTracker){var t=Pa(e)?"checked":"value";e._valueTracker=Gr(e,t,""+e[t])}}function td(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Pa(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Xr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _g=/[\n"\\]/g;function nn(e){return e.replace(_g,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ls(e,t,a,i,s,o,m,g){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Be(t)):e.value!==""+Be(t)&&(e.value=""+Be(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Hs(e,m,Be(t)):a!=null?Hs(e,m,Be(a)):i!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Be(g):e.removeAttribute("name")}function nd(e,t,a,i,s,o,m,g){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Si(e);return}a=a!=null?""+Be(a):"",t=t!=null?""+Be(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=g?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Si(e)}function Hs(e,t,a){t==="number"&&Xr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xl(e,t,a,i){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Be(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ad(e,t,a){if(t!=null&&(t=""+Be(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Be(a):""}function ld(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(u(92));if(Te(i)){if(1<i.length)throw Error(u(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Be(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),Si(e)}function Al(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Ug=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function id(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Ug.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function rd(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&a[s]!==i&&id(e,s,i)}else for(var o in t)t.hasOwnProperty(o)&&id(e,o,t[o])}function Bs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ng=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Vr(e){return jg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gn(){}var qs=null;function Qs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wl=null,Cl=null;function ud(e){var t=Le(e);if(t&&(e=t.stateNode)){var a=e[ae]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ls(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var s=i[ae]||null;if(!s)throw Error(u(90));Ls(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&td(i)}break e;case"textarea":ad(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&xl(e,!!a.multiple,t,!1)}}}var Ys=!1;function sd(e,t,a){if(Ys)return e(t,a);Ys=!0;try{var i=e(t);return i}finally{if(Ys=!1,(wl!==null||Cl!==null)&&(zu(),wl&&(t=wl,e=Cl,Cl=wl=null,ud(t),e)))for(t=0;t<e.length;t++)ud(e[t])}}function Ei(e,t){var a=e.stateNode;if(a===null)return null;var i=a[ae]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var Xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gs=!1;if(Xn)try{var Ti={};Object.defineProperty(Ti,"passive",{get:function(){Gs=!0}}),window.addEventListener("test",Ti,Ti),window.removeEventListener("test",Ti,Ti)}catch{Gs=!1}var da=null,Xs=null,Kr=null;function od(){if(Kr)return Kr;var e,t=Xs,a=t.length,i,s="value"in da?da.value:da.textContent,o=s.length;for(e=0;e<a&&t[e]===s[e];e++);var m=a-e;for(i=1;i<=m&&t[a-i]===s[o-i];i++);return Kr=s.slice(e,1<i?1-i:void 0)}function Fr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zr(){return!0}function cd(){return!1}function Ht(e){function t(a,i,s,o,m){this._reactName=a,this._targetInst=s,this.type=i,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(o):o[g]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Zr:cd,this.isPropagationStopped=cd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Zr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Zr)},persist:function(){},isPersistent:Zr}),t}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jr=Ht(Wa),Ri=b({},Wa,{view:0,detail:0}),Lg=Ht(Ri),Vs,Ks,Oi,kr=b({},Ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Oi&&(Oi&&e.type==="mousemove"?(Vs=e.screenX-Oi.screenX,Ks=e.screenY-Oi.screenY):Ks=Vs=0,Oi=e),Vs)},movementY:function(e){return"movementY"in e?e.movementY:Ks}}),fd=Ht(kr),Hg=b({},kr,{dataTransfer:0}),Bg=Ht(Hg),qg=b({},Ri,{relatedTarget:0}),Fs=Ht(qg),Qg=b({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),Yg=Ht(Qg),Gg=b({},Wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xg=Ht(Gg),Vg=b({},Wa,{data:0}),dd=Ht(Vg),Kg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Zg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zg[e])?!!t[e]:!1}function Zs(){return Jg}var kg=b({},Ri,{key:function(e){if(e.key){var t=Kg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zs,charCode:function(e){return e.type==="keypress"?Fr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$g=Ht(kg),Pg=b({},kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hd=Ht(Pg),Wg=b({},Ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zs}),Ig=Ht(Wg),e0=b({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),t0=Ht(e0),n0=b({},kr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),a0=Ht(n0),l0=b({},Wa,{newState:0,oldState:0}),i0=Ht(l0),r0=[9,13,27,32],Js=Xn&&"CompositionEvent"in window,xi=null;Xn&&"documentMode"in document&&(xi=document.documentMode);var u0=Xn&&"TextEvent"in window&&!xi,md=Xn&&(!Js||xi&&8<xi&&11>=xi),yd=" ",pd=!1;function vd(e,t){switch(e){case"keyup":return r0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dl=!1;function s0(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(pd=!0,yd);case"textInput":return e=t.data,e===yd&&pd?null:e;default:return null}}function o0(e,t){if(Dl)return e==="compositionend"||!Js&&vd(e,t)?(e=od(),Kr=Xs=da=null,Dl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return md&&t.locale!=="ko"?null:t.data;default:return null}}var c0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!c0[e.type]:t==="textarea"}function Sd(e,t,a,i){wl?Cl?Cl.push(i):Cl=[i]:wl=i,t=Bu(t,"onChange"),0<t.length&&(a=new Jr("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Ai=null,wi=null;function f0(e){ny(e,0)}function $r(e){var t=Tt(e);if(td(t))return e}function Ed(e,t){if(e==="change")return t}var Td=!1;if(Xn){var ks;if(Xn){var $s="oninput"in document;if(!$s){var Rd=document.createElement("div");Rd.setAttribute("oninput","return;"),$s=typeof Rd.oninput=="function"}ks=$s}else ks=!1;Td=ks&&(!document.documentMode||9<document.documentMode)}function Od(){Ai&&(Ai.detachEvent("onpropertychange",xd),wi=Ai=null)}function xd(e){if(e.propertyName==="value"&&$r(wi)){var t=[];Sd(t,wi,e,Qs(e)),sd(f0,t)}}function d0(e,t,a){e==="focusin"?(Od(),Ai=t,wi=a,Ai.attachEvent("onpropertychange",xd)):e==="focusout"&&Od()}function h0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $r(wi)}function m0(e,t){if(e==="click")return $r(t)}function y0(e,t){if(e==="input"||e==="change")return $r(t)}function p0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:p0;function Ci(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var s=a[i];if(!Rl.call(t,s)||!Zt(e[s],t[s]))return!1}return!0}function Ad(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wd(e,t){var a=Ad(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ad(a)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Xr(e.document)}return t}function Ps(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var v0=Xn&&"documentMode"in document&&11>=document.documentMode,Ml=null,Ws=null,Di=null,Is=!1;function Md(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Is||Ml==null||Ml!==Xr(i)||(i=Ml,"selectionStart"in i&&Ps(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Di&&Ci(Di,i)||(Di=i,i=Bu(Ws,"onSelect"),0<i.length&&(t=new Jr("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=Ml)))}function Ia(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var zl={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},eo={},zd={};Xn&&(zd=document.createElement("div").style,"AnimationEvent"in window||(delete zl.animationend.animation,delete zl.animationiteration.animation,delete zl.animationstart.animation),"TransitionEvent"in window||delete zl.transitionend.transition);function el(e){if(eo[e])return eo[e];if(!zl[e])return e;var t=zl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in zd)return eo[e]=t[a];return e}var _d=el("animationend"),Ud=el("animationiteration"),Nd=el("animationstart"),g0=el("transitionrun"),b0=el("transitionstart"),S0=el("transitioncancel"),jd=el("transitionend"),Ld=new Map,to="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");to.push("scrollEnd");function Rn(e,t){Ld.set(e,t),En(t,[e])}var Pr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},an=[],_l=0,no=0;function Wr(){for(var e=_l,t=no=_l=0;t<e;){var a=an[t];an[t++]=null;var i=an[t];an[t++]=null;var s=an[t];an[t++]=null;var o=an[t];if(an[t++]=null,i!==null&&s!==null){var m=i.pending;m===null?s.next=s:(s.next=m.next,m.next=s),i.pending=s}o!==0&&Hd(a,s,o)}}function Ir(e,t,a,i){an[_l++]=e,an[_l++]=t,an[_l++]=a,an[_l++]=i,no|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function ao(e,t,a,i){return Ir(e,t,a,i),eu(e)}function tl(e,t){return Ir(e,null,null,t),eu(e)}function Hd(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var s=!1,o=e.return;o!==null;)o.childLanes|=a,i=o.alternate,i!==null&&(i.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-Mt(a),e=o.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=a|536870912),o):null}function eu(e){if(50<Pi)throw Pi=0,hc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ul={};function E0(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,a,i){return new E0(e,t,a,i)}function lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vn(e,t){var a=e.alternate;return a===null?(a=Jt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Bd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function tu(e,t,a,i,s,o){var m=0;if(i=e,typeof e=="function")lo(e)&&(m=1);else if(typeof e=="string")m=Ab(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case me:return e=Jt(31,a,t,s),e.elementType=me,e.lanes=o,e;case z:return nl(a.children,s,o,t);case _:m=8,s|=24;break;case K:return e=Jt(12,a,t,s|2),e.elementType=K,e.lanes=o,e;case ue:return e=Jt(13,a,t,s),e.elementType=ue,e.lanes=o,e;case ve:return e=Jt(19,a,t,s),e.elementType=ve,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:m=10;break e;case X:m=9;break e;case ie:m=11;break e;case w:m=14;break e;case te:m=16,i=null;break e}m=29,a=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Jt(m,a,t,s),t.elementType=e,t.type=i,t.lanes=o,t}function nl(e,t,a,i){return e=Jt(7,e,i,t),e.lanes=a,e}function io(e,t,a){return e=Jt(6,e,null,t),e.lanes=a,e}function qd(e){var t=Jt(18,null,null,0);return t.stateNode=e,t}function ro(e,t,a){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qd=new WeakMap;function ln(e,t){if(typeof e=="object"&&e!==null){var a=Qd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Hr(t)},Qd.set(e,t),t)}return{value:e,source:t,stack:Hr(t)}}var Nl=[],jl=0,nu=null,Mi=0,rn=[],un=0,ha=null,Mn=1,zn="";function Kn(e,t){Nl[jl++]=Mi,Nl[jl++]=nu,nu=e,Mi=t}function Yd(e,t,a){rn[un++]=Mn,rn[un++]=zn,rn[un++]=ha,ha=e;var i=Mn;e=zn;var s=32-Mt(i)-1;i&=~(1<<s),a+=1;var o=32-Mt(t)+s;if(30<o){var m=s-s%5;o=(i&(1<<m)-1).toString(32),i>>=m,s-=m,Mn=1<<32-Mt(t)+s|a<<s|i,zn=o+e}else Mn=1<<o|a<<s|i,zn=e}function uo(e){e.return!==null&&(Kn(e,1),Yd(e,1,0))}function so(e){for(;e===nu;)nu=Nl[--jl],Nl[jl]=null,Mi=Nl[--jl],Nl[jl]=null;for(;e===ha;)ha=rn[--un],rn[un]=null,zn=rn[--un],rn[un]=null,Mn=rn[--un],rn[un]=null}function Gd(e,t){rn[un++]=Mn,rn[un++]=zn,rn[un++]=ha,Mn=t.id,zn=t.overflow,ha=e}var xt=null,Pe=null,qe=!1,ma=null,sn=!1,oo=Error(u(519));function ya(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zi(ln(t,e)),oo}function Xd(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[ee]=e,t[ae]=i,a){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(a=0;a<Ii.length;a++)ze(Ii[a],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),nd(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),ld(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||ry(t.textContent,a)?(i.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),i.onScroll!=null&&ze("scroll",t),i.onScrollEnd!=null&&ze("scrollend",t),i.onClick!=null&&(t.onclick=Gn),t=!0):t=!1,t||ya(e,!0)}function Vd(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:xt=xt.return}}function Ll(e){if(e!==xt)return!1;if(!qe)return Vd(e),qe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Cc(e.type,e.memoizedProps)),a=!a),a&&Pe&&ya(e),Vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Pe=yy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Pe=yy(e)}else t===27?(t=Pe,Da(e.type)?(e=Uc,Uc=null,Pe=e):Pe=t):Pe=xt?cn(e.stateNode.nextSibling):null;return!0}function al(){Pe=xt=null,qe=!1}function co(){var e=ma;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),ma=null),e}function zi(e){ma===null?ma=[e]:ma.push(e)}var fo=R(null),ll=null,Fn=null;function pa(e,t,a){$(fo,t._currentValue),t._currentValue=a}function Zn(e){e._currentValue=fo.current,Q(fo)}function ho(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function mo(e,t,a,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var m=s.child;o=o.firstContext;e:for(;o!==null;){var g=o;o=s;for(var T=0;T<t.length;T++)if(g.context===t[T]){o.lanes|=a,g=o.alternate,g!==null&&(g.lanes|=a),ho(o.return,a,e),i||(m=null);break e}o=g.next}}else if(s.tag===18){if(m=s.return,m===null)throw Error(u(341));m.lanes|=a,o=m.alternate,o!==null&&(o.lanes|=a),ho(m,a,e),m=null}else m=s.child;if(m!==null)m.return=s;else for(m=s;m!==null;){if(m===e){m=null;break}if(s=m.sibling,s!==null){s.return=m.return,m=s;break}m=m.return}s=m}}function Hl(e,t,a,i){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var m=s.alternate;if(m===null)throw Error(u(387));if(m=m.memoizedProps,m!==null){var g=s.type;Zt(s.pendingProps.value,m.value)||(e!==null?e.push(g):e=[g])}}else if(s===Ne.current){if(m=s.alternate,m===null)throw Error(u(387));m.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(lr):e=[lr])}s=s.return}e!==null&&mo(t,e,a,i),t.flags|=262144}function au(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function il(e){ll=e,Fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function At(e){return Kd(ll,e)}function lu(e,t){return ll===null&&il(e),Kd(e,t)}function Kd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Fn===null){if(e===null)throw Error(u(308));Fn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fn=Fn.next=t;return a}var T0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},R0=n.unstable_scheduleCallback,O0=n.unstable_NormalPriority,pt={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yo(){return{controller:new T0,data:new Map,refCount:0}}function _i(e){e.refCount--,e.refCount===0&&R0(O0,function(){e.controller.abort()})}var Ui=null,po=0,Bl=0,ql=null;function x0(e,t){if(Ui===null){var a=Ui=[];po=0,Bl=bc(),ql={status:"pending",value:void 0,then:function(i){a.push(i)}}}return po++,t.then(Fd,Fd),t}function Fd(){if(--po===0&&Ui!==null){ql!==null&&(ql.status="fulfilled");var e=Ui;Ui=null,Bl=0,ql=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function A0(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),i}var Zd=j.S;j.S=function(e,t){Mm=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&x0(e,t),Zd!==null&&Zd(e,t)};var rl=R(null);function vo(){var e=rl.current;return e!==null?e:ke.pooledCache}function iu(e,t){t===null?$(rl,rl.current):$(rl,t.pool)}function Jd(){var e=vo();return e===null?null:{parent:pt._currentValue,pool:e}}var Ql=Error(u(460)),go=Error(u(474)),ru=Error(u(542)),uu={then:function(){}};function kd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $d(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Gn,Gn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e;default:if(typeof t.status=="string")t.then(Gn,Gn);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e}throw sl=t,Ql}}function ul(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(sl=a,Ql):a}}var sl=null;function Pd(){if(sl===null)throw Error(u(459));var e=sl;return sl=null,e}function Wd(e){if(e===Ql||e===ru)throw Error(u(483))}var Yl=null,Ni=0;function su(e){var t=Ni;return Ni+=1,Yl===null&&(Yl=[]),$d(Yl,e,t)}function ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ou(e,t){throw t.$$typeof===S?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Id(e){function t(D,x){if(e){var U=D.deletions;U===null?(D.deletions=[x],D.flags|=16):U.push(x)}}function a(D,x){if(!e)return null;for(;x!==null;)t(D,x),x=x.sibling;return null}function i(D){for(var x=new Map;D!==null;)D.key!==null?x.set(D.key,D):x.set(D.index,D),D=D.sibling;return x}function s(D,x){return D=Vn(D,x),D.index=0,D.sibling=null,D}function o(D,x,U){return D.index=U,e?(U=D.alternate,U!==null?(U=U.index,U<x?(D.flags|=67108866,x):U):(D.flags|=67108866,x)):(D.flags|=1048576,x)}function m(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function g(D,x,U,G){return x===null||x.tag!==6?(x=io(U,D.mode,G),x.return=D,x):(x=s(x,U),x.return=D,x)}function T(D,x,U,G){var de=U.type;return de===z?Y(D,x,U.props.children,G,U.key):x!==null&&(x.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===te&&ul(de)===x.type)?(x=s(x,U.props),ji(x,U),x.return=D,x):(x=tu(U.type,U.key,U.props,null,D.mode,G),ji(x,U),x.return=D,x)}function N(D,x,U,G){return x===null||x.tag!==4||x.stateNode.containerInfo!==U.containerInfo||x.stateNode.implementation!==U.implementation?(x=ro(U,D.mode,G),x.return=D,x):(x=s(x,U.children||[]),x.return=D,x)}function Y(D,x,U,G,de){return x===null||x.tag!==7?(x=nl(U,D.mode,G,de),x.return=D,x):(x=s(x,U),x.return=D,x)}function V(D,x,U){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=io(""+x,D.mode,U),x.return=D,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case A:return U=tu(x.type,x.key,x.props,null,D.mode,U),ji(U,x),U.return=D,U;case O:return x=ro(x,D.mode,U),x.return=D,x;case te:return x=ul(x),V(D,x,U)}if(Te(x)||we(x))return x=nl(x,D.mode,U,null),x.return=D,x;if(typeof x.then=="function")return V(D,su(x),U);if(x.$$typeof===F)return V(D,lu(D,x),U);ou(D,x)}return null}function L(D,x,U,G){var de=x!==null?x.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return de!==null?null:g(D,x,""+U,G);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case A:return U.key===de?T(D,x,U,G):null;case O:return U.key===de?N(D,x,U,G):null;case te:return U=ul(U),L(D,x,U,G)}if(Te(U)||we(U))return de!==null?null:Y(D,x,U,G,null);if(typeof U.then=="function")return L(D,x,su(U),G);if(U.$$typeof===F)return L(D,x,lu(D,U),G);ou(D,U)}return null}function q(D,x,U,G,de){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return D=D.get(U)||null,g(x,D,""+G,de);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case A:return D=D.get(G.key===null?U:G.key)||null,T(x,D,G,de);case O:return D=D.get(G.key===null?U:G.key)||null,N(x,D,G,de);case te:return G=ul(G),q(D,x,U,G,de)}if(Te(G)||we(G))return D=D.get(U)||null,Y(x,D,G,de,null);if(typeof G.then=="function")return q(D,x,U,su(G),de);if(G.$$typeof===F)return q(D,x,U,lu(x,G),de);ou(x,G)}return null}function le(D,x,U,G){for(var de=null,Ye=null,re=x,Ae=x=0,Ue=null;re!==null&&Ae<U.length;Ae++){re.index>Ae?(Ue=re,re=null):Ue=re.sibling;var Ge=L(D,re,U[Ae],G);if(Ge===null){re===null&&(re=Ue);break}e&&re&&Ge.alternate===null&&t(D,re),x=o(Ge,x,Ae),Ye===null?de=Ge:Ye.sibling=Ge,Ye=Ge,re=Ue}if(Ae===U.length)return a(D,re),qe&&Kn(D,Ae),de;if(re===null){for(;Ae<U.length;Ae++)re=V(D,U[Ae],G),re!==null&&(x=o(re,x,Ae),Ye===null?de=re:Ye.sibling=re,Ye=re);return qe&&Kn(D,Ae),de}for(re=i(re);Ae<U.length;Ae++)Ue=q(re,D,Ae,U[Ae],G),Ue!==null&&(e&&Ue.alternate!==null&&re.delete(Ue.key===null?Ae:Ue.key),x=o(Ue,x,Ae),Ye===null?de=Ue:Ye.sibling=Ue,Ye=Ue);return e&&re.forEach(function(Na){return t(D,Na)}),qe&&Kn(D,Ae),de}function ye(D,x,U,G){if(U==null)throw Error(u(151));for(var de=null,Ye=null,re=x,Ae=x=0,Ue=null,Ge=U.next();re!==null&&!Ge.done;Ae++,Ge=U.next()){re.index>Ae?(Ue=re,re=null):Ue=re.sibling;var Na=L(D,re,Ge.value,G);if(Na===null){re===null&&(re=Ue);break}e&&re&&Na.alternate===null&&t(D,re),x=o(Na,x,Ae),Ye===null?de=Na:Ye.sibling=Na,Ye=Na,re=Ue}if(Ge.done)return a(D,re),qe&&Kn(D,Ae),de;if(re===null){for(;!Ge.done;Ae++,Ge=U.next())Ge=V(D,Ge.value,G),Ge!==null&&(x=o(Ge,x,Ae),Ye===null?de=Ge:Ye.sibling=Ge,Ye=Ge);return qe&&Kn(D,Ae),de}for(re=i(re);!Ge.done;Ae++,Ge=U.next())Ge=q(re,D,Ae,Ge.value,G),Ge!==null&&(e&&Ge.alternate!==null&&re.delete(Ge.key===null?Ae:Ge.key),x=o(Ge,x,Ae),Ye===null?de=Ge:Ye.sibling=Ge,Ye=Ge);return e&&re.forEach(function(Hb){return t(D,Hb)}),qe&&Kn(D,Ae),de}function Je(D,x,U,G){if(typeof U=="object"&&U!==null&&U.type===z&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case A:e:{for(var de=U.key;x!==null;){if(x.key===de){if(de=U.type,de===z){if(x.tag===7){a(D,x.sibling),G=s(x,U.props.children),G.return=D,D=G;break e}}else if(x.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===te&&ul(de)===x.type){a(D,x.sibling),G=s(x,U.props),ji(G,U),G.return=D,D=G;break e}a(D,x);break}else t(D,x);x=x.sibling}U.type===z?(G=nl(U.props.children,D.mode,G,U.key),G.return=D,D=G):(G=tu(U.type,U.key,U.props,null,D.mode,G),ji(G,U),G.return=D,D=G)}return m(D);case O:e:{for(de=U.key;x!==null;){if(x.key===de)if(x.tag===4&&x.stateNode.containerInfo===U.containerInfo&&x.stateNode.implementation===U.implementation){a(D,x.sibling),G=s(x,U.children||[]),G.return=D,D=G;break e}else{a(D,x);break}else t(D,x);x=x.sibling}G=ro(U,D.mode,G),G.return=D,D=G}return m(D);case te:return U=ul(U),Je(D,x,U,G)}if(Te(U))return le(D,x,U,G);if(we(U)){if(de=we(U),typeof de!="function")throw Error(u(150));return U=de.call(U),ye(D,x,U,G)}if(typeof U.then=="function")return Je(D,x,su(U),G);if(U.$$typeof===F)return Je(D,x,lu(D,U),G);ou(D,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,x!==null&&x.tag===6?(a(D,x.sibling),G=s(x,U),G.return=D,D=G):(a(D,x),G=io(U,D.mode,G),G.return=D,D=G),m(D)):a(D,x)}return function(D,x,U,G){try{Ni=0;var de=Je(D,x,U,G);return Yl=null,de}catch(re){if(re===Ql||re===ru)throw re;var Ye=Jt(29,re,null,D.mode);return Ye.lanes=G,Ye.return=D,Ye}}}var ol=Id(!0),eh=Id(!1),va=!1;function bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function So(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ba(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=eu(e),Hd(e,null,a),t}return Ir(e,i,t,a),eu(e)}function Li(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,E(e,a)}}function Eo(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var s=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?s=o=m:o=o.next=m,a=a.next}while(a!==null);o===null?s=o=t:o=o.next=t}else s=o=t;a={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var To=!1;function Hi(){if(To){var e=ql;if(e!==null)throw e}}function Bi(e,t,a,i){To=!1;var s=e.updateQueue;va=!1;var o=s.firstBaseUpdate,m=s.lastBaseUpdate,g=s.shared.pending;if(g!==null){s.shared.pending=null;var T=g,N=T.next;T.next=null,m===null?o=N:m.next=N,m=T;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,g=Y.lastBaseUpdate,g!==m&&(g===null?Y.firstBaseUpdate=N:g.next=N,Y.lastBaseUpdate=T))}if(o!==null){var V=s.baseState;m=0,Y=N=T=null,g=o;do{var L=g.lane&-536870913,q=L!==g.lane;if(q?(_e&L)===L:(i&L)===L){L!==0&&L===Bl&&(To=!0),Y!==null&&(Y=Y.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var le=e,ye=g;L=t;var Je=a;switch(ye.tag){case 1:if(le=ye.payload,typeof le=="function"){V=le.call(Je,V,L);break e}V=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ye.payload,L=typeof le=="function"?le.call(Je,V,L):le,L==null)break e;V=b({},V,L);break e;case 2:va=!0}}L=g.callback,L!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[L]:q.push(L))}else q={lane:L,tag:g.tag,payload:g.payload,callback:g.callback,next:null},Y===null?(N=Y=q,T=V):Y=Y.next=q,m|=L;if(g=g.next,g===null){if(g=s.shared.pending,g===null)break;q=g,g=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);Y===null&&(T=V),s.baseState=T,s.firstBaseUpdate=N,s.lastBaseUpdate=Y,o===null&&(s.shared.lanes=0),Oa|=m,e.lanes=m,e.memoizedState=V}}function th(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function nh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)th(a[e],t)}var Gl=R(null),cu=R(0);function ah(e,t){e=na,$(cu,e),$(Gl,t),na=e|t.baseLanes}function Ro(){$(cu,na),$(Gl,Gl.current)}function Oo(){na=cu.current,Q(Gl),Q(cu)}var kt=R(null),on=null;function Sa(e){var t=e.alternate;$(ft,ft.current&1),$(kt,e),on===null&&(t===null||Gl.current!==null||t.memoizedState!==null)&&(on=e)}function xo(e){$(ft,ft.current),$(kt,e),on===null&&(on=e)}function lh(e){e.tag===22?($(ft,ft.current),$(kt,e),on===null&&(on=e)):Ea()}function Ea(){$(ft,ft.current),$(kt,kt.current)}function $t(e){Q(kt),on===e&&(on=null),Q(ft)}var ft=R(0);function fu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||zc(a)||_c(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jn=0,Re=null,Fe=null,vt=null,du=!1,Xl=!1,cl=!1,hu=0,qi=0,Vl=null,w0=0;function rt(){throw Error(u(321))}function Ao(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Zt(e[a],t[a]))return!1;return!0}function wo(e,t,a,i,s,o){return Jn=o,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Yh:Go,cl=!1,o=a(i,s),cl=!1,Xl&&(o=rh(t,a,i,s)),ih(e),o}function ih(e){j.H=Gi;var t=Fe!==null&&Fe.next!==null;if(Jn=0,vt=Fe=Re=null,du=!1,qi=0,Vl=null,t)throw Error(u(300));e===null||gt||(e=e.dependencies,e!==null&&au(e)&&(gt=!0))}function rh(e,t,a,i){Re=e;var s=0;do{if(Xl&&(Vl=null),qi=0,Xl=!1,25<=s)throw Error(u(301));if(s+=1,vt=Fe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Gh,o=t(a,i)}while(Xl);return o}function C0(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?Qi(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(Re.flags|=1024),t}function Co(){var e=hu!==0;return hu=0,e}function Do(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mo(e){if(du){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}du=!1}Jn=0,vt=Fe=Re=null,Xl=!1,qi=hu=0,Vl=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Re.memoizedState=vt=e:vt=vt.next=e,vt}function dt(){if(Fe===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=vt===null?Re.memoizedState:vt.next;if(t!==null)vt=t,Fe=e;else{if(e===null)throw Re.alternate===null?Error(u(467)):Error(u(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},vt===null?Re.memoizedState=vt=e:vt=vt.next=e}return vt}function mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qi(e){var t=qi;return qi+=1,Vl===null&&(Vl=[]),e=$d(Vl,e,t),t=Re,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Yh:Go),e}function yu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Qi(e);if(e.$$typeof===F)return At(e)}throw Error(u(438,String(e)))}function zo(e){var t=null,a=Re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Re.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=mu(),Re.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=xe;return t.index++,a}function kn(e,t){return typeof t=="function"?t(e):t}function pu(e){var t=dt();return _o(t,Fe,e)}function _o(e,t,a){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=a;var s=e.baseQueue,o=i.pending;if(o!==null){if(s!==null){var m=s.next;s.next=o.next,o.next=m}t.baseQueue=s=o,i.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var g=m=null,T=null,N=t,Y=!1;do{var V=N.lane&-536870913;if(V!==N.lane?(_e&V)===V:(Jn&V)===V){var L=N.revertLane;if(L===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),V===Bl&&(Y=!0);else if((Jn&L)===L){N=N.next,L===Bl&&(Y=!0);continue}else V={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(g=T=V,m=o):T=T.next=V,Re.lanes|=L,Oa|=L;V=N.action,cl&&a(o,V),o=N.hasEagerState?N.eagerState:a(o,V)}else L={lane:V,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(g=T=L,m=o):T=T.next=L,Re.lanes|=V,Oa|=V;N=N.next}while(N!==null&&N!==t);if(T===null?m=o:T.next=g,!Zt(o,e.memoizedState)&&(gt=!0,Y&&(a=ql,a!==null)))throw a;e.memoizedState=o,e.baseState=m,e.baseQueue=T,i.lastRenderedState=o}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Uo(e){var t=dt(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var i=a.dispatch,s=a.pending,o=t.memoizedState;if(s!==null){a.pending=null;var m=s=s.next;do o=e(o,m.action),m=m.next;while(m!==s);Zt(o,t.memoizedState)||(gt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,i]}function uh(e,t,a){var i=Re,s=dt(),o=qe;if(o){if(a===void 0)throw Error(u(407));a=a()}else a=t();var m=!Zt((Fe||s).memoizedState,a);if(m&&(s.memoizedState=a,gt=!0),s=s.queue,Lo(ch.bind(null,i,s,e),[e]),s.getSnapshot!==t||m||vt!==null&&vt.memoizedState.tag&1){if(i.flags|=2048,Kl(9,{destroy:void 0},oh.bind(null,i,s,a,t),null),ke===null)throw Error(u(349));o||(Jn&127)!==0||sh(i,t,a)}return a}function sh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Re.updateQueue,t===null?(t=mu(),Re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function oh(e,t,a,i){t.value=a,t.getSnapshot=i,fh(t)&&dh(e)}function ch(e,t,a){return a(function(){fh(t)&&dh(e)})}function fh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Zt(e,a)}catch{return!0}}function dh(e){var t=tl(e,2);t!==null&&Gt(t,e,2)}function No(e){var t=Nt();if(typeof e=="function"){var a=e;if(e=a(),cl){bn(!0);try{a()}finally{bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:e},t}function hh(e,t,a,i){return e.baseState=a,_o(e,Fe,typeof i=="function"?i:kn)}function D0(e,t,a,i,s){if(bu(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};j.T!==null?a(!0):o.isTransition=!1,i(o),a=t.pending,a===null?(o.next=t.pending=o,mh(t,o)):(o.next=a.next,t.pending=a.next=o)}}function mh(e,t){var a=t.action,i=t.payload,s=e.state;if(t.isTransition){var o=j.T,m={};j.T=m;try{var g=a(s,i),T=j.S;T!==null&&T(m,g),yh(e,t,g)}catch(N){jo(e,t,N)}finally{o!==null&&m.types!==null&&(o.types=m.types),j.T=o}}else try{o=a(s,i),yh(e,t,o)}catch(N){jo(e,t,N)}}function yh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){ph(e,t,i)},function(i){return jo(e,t,i)}):ph(e,t,a)}function ph(e,t,a){t.status="fulfilled",t.value=a,vh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,mh(e,a)))}function jo(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,vh(t),t=t.next;while(t!==i)}e.action=null}function vh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gh(e,t){return t}function bh(e,t){if(qe){var a=ke.formState;if(a!==null){e:{var i=Re;if(qe){if(Pe){t:{for(var s=Pe,o=sn;s.nodeType!==8;){if(!o){s=null;break t}if(s=cn(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Pe=cn(s.nextSibling),i=s.data==="F!";break e}}ya(i)}i=!1}i&&(t=a[0])}}return a=Nt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:t},a.queue=i,a=Bh.bind(null,Re,i),i.dispatch=a,i=No(!1),o=Yo.bind(null,Re,!1,i.queue),i=Nt(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,a=D0.bind(null,Re,s,o,a),s.dispatch=a,i.memoizedState=e,[t,a,!1]}function Sh(e){var t=dt();return Eh(t,Fe,e)}function Eh(e,t,a){if(t=_o(e,t,gh)[0],e=pu(kn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Qi(t)}catch(m){throw m===Ql?ru:m}else i=t;t=dt();var s=t.queue,o=s.dispatch;return a!==t.memoizedState&&(Re.flags|=2048,Kl(9,{destroy:void 0},M0.bind(null,s,a),null)),[i,o,e]}function M0(e,t){e.action=t}function Th(e){var t=dt(),a=Fe;if(a!==null)return Eh(t,a,e);dt(),t=t.memoizedState,a=dt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function Kl(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Re.updateQueue,t===null&&(t=mu(),Re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function Rh(){return dt().memoizedState}function vu(e,t,a,i){var s=Nt();Re.flags|=e,s.memoizedState=Kl(1|t,{destroy:void 0},a,i===void 0?null:i)}function gu(e,t,a,i){var s=dt();i=i===void 0?null:i;var o=s.memoizedState.inst;Fe!==null&&i!==null&&Ao(i,Fe.memoizedState.deps)?s.memoizedState=Kl(t,o,a,i):(Re.flags|=e,s.memoizedState=Kl(1|t,o,a,i))}function Oh(e,t){vu(8390656,8,e,t)}function Lo(e,t){gu(2048,8,e,t)}function z0(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=mu(),Re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function xh(e){var t=dt().memoizedState;return z0({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Ah(e,t){return gu(4,2,e,t)}function wh(e,t){return gu(4,4,e,t)}function Ch(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dh(e,t,a){a=a!=null?a.concat([e]):null,gu(4,4,Ch.bind(null,t,e),a)}function Ho(){}function Mh(e,t){var a=dt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Ao(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function zh(e,t){var a=dt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Ao(t,i[1]))return i[0];if(i=e(),cl){bn(!0);try{e()}finally{bn(!1)}}return a.memoizedState=[i,t],i}function Bo(e,t,a){return a===void 0||(Jn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=_m(),Re.lanes|=e,Oa|=e,a)}function _h(e,t,a,i){return Zt(a,t)?a:Gl.current!==null?(e=Bo(e,a,i),Zt(e,t)||(gt=!0),e):(Jn&42)===0||(Jn&1073741824)!==0&&(_e&261930)===0?(gt=!0,e.memoizedState=a):(e=_m(),Re.lanes|=e,Oa|=e,t)}function Uh(e,t,a,i,s){var o=k.p;k.p=o!==0&&8>o?o:8;var m=j.T,g={};j.T=g,Yo(e,!1,t,a);try{var T=s(),N=j.S;if(N!==null&&N(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Y=A0(T,i);Yi(e,t,Y,It(e))}else Yi(e,t,i,It(e))}catch(V){Yi(e,t,{then:function(){},status:"rejected",reason:V},It())}finally{k.p=o,m!==null&&g.types!==null&&(m.types=g.types),j.T=m}}function _0(){}function qo(e,t,a,i){if(e.tag!==5)throw Error(u(476));var s=Nh(e).queue;Uh(e,s,t,P,a===null?_0:function(){return jh(e),a(i)})}function Nh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:P},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function jh(e){var t=Nh(e);t.next===null&&(t=e.alternate.memoizedState),Yi(e,t.next.queue,{},It())}function Qo(){return At(lr)}function Lh(){return dt().memoizedState}function Hh(){return dt().memoizedState}function U0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=It();e=ga(a);var i=ba(t,e,a);i!==null&&(Gt(i,t,a),Li(i,t,a)),t={cache:yo()},e.payload=t;return}t=t.return}}function N0(e,t,a){var i=It();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bu(e)?qh(t,a):(a=ao(e,t,a,i),a!==null&&(Gt(a,e,i),Qh(a,t,i)))}function Bh(e,t,a){var i=It();Yi(e,t,a,i)}function Yi(e,t,a,i){var s={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(bu(e))qh(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,g=o(m,a);if(s.hasEagerState=!0,s.eagerState=g,Zt(g,m))return Ir(e,t,s,0),ke===null&&Wr(),!1}catch{}if(a=ao(e,t,s,i),a!==null)return Gt(a,e,i),Qh(a,t,i),!0}return!1}function Yo(e,t,a,i){if(i={lane:2,revertLane:bc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},bu(e)){if(t)throw Error(u(479))}else t=ao(e,a,i,2),t!==null&&Gt(t,e,2)}function bu(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function qh(e,t){Xl=du=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Qh(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,E(e,a)}}var Gi={readContext:At,use:yu,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};Gi.useEffectEvent=rt;var Yh={readContext:At,use:yu,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Oh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,vu(4194308,4,Ch.bind(null,t,e),a)},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t)},useMemo:function(e,t){var a=Nt();t=t===void 0?null:t;var i=e();if(cl){bn(!0);try{e()}finally{bn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Nt();if(a!==void 0){var s=a(t);if(cl){bn(!0);try{a(t)}finally{bn(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=N0.bind(null,Re,e),[i.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=No(e);var t=e.queue,a=Bh.bind(null,Re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ho,useDeferredValue:function(e,t){var a=Nt();return Bo(a,e,t)},useTransition:function(){var e=No(!1);return e=Uh.bind(null,Re,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Re,s=Nt();if(qe){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),ke===null)throw Error(u(349));(_e&127)!==0||sh(i,t,a)}s.memoizedState=a;var o={value:a,getSnapshot:t};return s.queue=o,Oh(ch.bind(null,i,o,e),[e]),i.flags|=2048,Kl(9,{destroy:void 0},oh.bind(null,i,o,a,t),null),a},useId:function(){var e=Nt(),t=ke.identifierPrefix;if(qe){var a=zn,i=Mn;a=(i&~(1<<32-Mt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=hu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=w0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qo,useFormState:bh,useActionState:bh,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Yo.bind(null,Re,!0,a),a.dispatch=t,[e,t]},useMemoCache:zo,useCacheRefresh:function(){return Nt().memoizedState=U0.bind(null,Re)},useEffectEvent:function(e){var t=Nt(),a={impl:e};return t.memoizedState=a,function(){if((Xe&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},Go={readContext:At,use:yu,useCallback:Mh,useContext:At,useEffect:Lo,useImperativeHandle:Dh,useInsertionEffect:Ah,useLayoutEffect:wh,useMemo:zh,useReducer:pu,useRef:Rh,useState:function(){return pu(kn)},useDebugValue:Ho,useDeferredValue:function(e,t){var a=dt();return _h(a,Fe.memoizedState,e,t)},useTransition:function(){var e=pu(kn)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Qi(e),t]},useSyncExternalStore:uh,useId:Lh,useHostTransitionStatus:Qo,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var a=dt();return hh(a,Fe,e,t)},useMemoCache:zo,useCacheRefresh:Hh};Go.useEffectEvent=xh;var Gh={readContext:At,use:yu,useCallback:Mh,useContext:At,useEffect:Lo,useImperativeHandle:Dh,useInsertionEffect:Ah,useLayoutEffect:wh,useMemo:zh,useReducer:Uo,useRef:Rh,useState:function(){return Uo(kn)},useDebugValue:Ho,useDeferredValue:function(e,t){var a=dt();return Fe===null?Bo(a,e,t):_h(a,Fe.memoizedState,e,t)},useTransition:function(){var e=Uo(kn)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Qi(e),t]},useSyncExternalStore:uh,useId:Lh,useHostTransitionStatus:Qo,useFormState:Th,useActionState:Th,useOptimistic:function(e,t){var a=dt();return Fe!==null?hh(a,Fe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:zo,useCacheRefresh:Hh};Gh.useEffectEvent=xh;function Xo(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Vo={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=It(),s=ga(i);s.payload=t,a!=null&&(s.callback=a),t=ba(e,s,i),t!==null&&(Gt(t,e,i),Li(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=It(),s=ga(i);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=ba(e,s,i),t!==null&&(Gt(t,e,i),Li(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=It(),i=ga(a);i.tag=2,t!=null&&(i.callback=t),t=ba(e,i,a),t!==null&&(Gt(t,e,a),Li(t,e,a))}};function Xh(e,t,a,i,s,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,m):t.prototype&&t.prototype.isPureReactComponent?!Ci(a,i)||!Ci(s,o):!0}function Vh(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function fl(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Kh(e){Pr(e)}function Fh(e){console.error(e)}function Zh(e){Pr(e)}function Su(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Jh(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Ko(e,t,a){return a=ga(a),a.tag=3,a.payload={element:null},a.callback=function(){Su(e,t)},a}function kh(e){return e=ga(e),e.tag=3,e}function $h(e,t,a,i){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var o=i.value;e.payload=function(){return s(o)},e.callback=function(){Jh(t,a,i)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Jh(t,a,i),typeof s!="function"&&(xa===null?xa=new Set([this]):xa.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function j0(e,t,a,i,s){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&Hl(t,a,s,!0),a=kt.current,a!==null){switch(a.tag){case 31:case 13:return on===null?_u():a.alternate===null&&ut===0&&(ut=3),a.flags&=-257,a.flags|=65536,a.lanes=s,i===uu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),pc(e,i,s)),!1;case 22:return a.flags|=65536,i===uu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),pc(e,i,s)),!1}throw Error(u(435,a.tag))}return pc(e,i,s),_u(),!1}if(qe)return t=kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==oo&&(e=Error(u(422),{cause:i}),zi(ln(e,a)))):(i!==oo&&(t=Error(u(423),{cause:i}),zi(ln(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=ln(i,a),s=Ko(e.stateNode,i,s),Eo(e,s),ut!==4&&(ut=2)),!1;var o=Error(u(520),{cause:i});if(o=ln(o,a),$i===null?$i=[o]:$i.push(o),ut!==4&&(ut=2),t===null)return!0;i=ln(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Ko(a.stateNode,i,e),Eo(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(xa===null||!xa.has(o))))return a.flags|=65536,s&=-s,a.lanes|=s,s=kh(s),$h(s,e,a,i),Eo(a,s),!1}a=a.return}while(a!==null);return!1}var Fo=Error(u(461)),gt=!1;function wt(e,t,a,i){t.child=e===null?eh(t,null,a,i):ol(t,e.child,a,i)}function Ph(e,t,a,i,s){a=a.render;var o=t.ref;if("ref"in i){var m={};for(var g in i)g!=="ref"&&(m[g]=i[g])}else m=i;return il(t),i=wo(e,t,a,m,o,s),g=Co(),e!==null&&!gt?(Do(e,t,s),$n(e,t,s)):(qe&&g&&uo(t),t.flags|=1,wt(e,t,i,s),t.child)}function Wh(e,t,a,i,s){if(e===null){var o=a.type;return typeof o=="function"&&!lo(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,Ih(e,t,o,i,s)):(e=tu(a.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!ec(e,s)){var m=o.memoizedProps;if(a=a.compare,a=a!==null?a:Ci,a(m,i)&&e.ref===t.ref)return $n(e,t,s)}return t.flags|=1,e=Vn(o,i),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,a,i,s){if(e!==null){var o=e.memoizedProps;if(Ci(o,i)&&e.ref===t.ref)if(gt=!1,t.pendingProps=i=o,ec(e,s))(e.flags&131072)!==0&&(gt=!0);else return t.lanes=e.lanes,$n(e,t,s)}return Zo(e,t,a,i,s)}function em(e,t,a,i){var s=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~o}else i=0,t.child=null;return tm(e,t,o,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&iu(t,o!==null?o.cachePool:null),o!==null?ah(t,o):Ro(),lh(t);else return i=t.lanes=536870912,tm(e,t,o!==null?o.baseLanes|a:a,a,i)}else o!==null?(iu(t,o.cachePool),ah(t,o),Ea(),t.memoizedState=null):(e!==null&&iu(t,null),Ro(),Ea());return wt(e,t,s,a),t.child}function Xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tm(e,t,a,i,s){var o=vo();return o=o===null?null:{parent:pt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&iu(t,null),Ro(),lh(t),e!==null&&Hl(e,t,i,!0),t.childLanes=s,null}function Eu(e,t){return t=Ru({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function nm(e,t,a){return ol(t,e.child,null,a),e=Eu(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function L0(e,t,a){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(i.mode==="hidden")return e=Eu(t,i),t.lanes=536870912,Xi(null,e);if(xo(t),(e=Pe)?(e=my(e,sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ha!==null?{id:Mn,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},a=qd(e),a.return=t,t.child=a,xt=t,Pe=null)):e=null,e===null)throw ya(t);return t.lanes=536870912,null}return Eu(t,i)}var o=e.memoizedState;if(o!==null){var m=o.dehydrated;if(xo(t),s)if(t.flags&256)t.flags&=-257,t=nm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(gt||Hl(e,t,a,!1),s=(a&e.childLanes)!==0,gt||s){if(i=ke,i!==null&&(m=M(i,a),m!==0&&m!==o.retryLane))throw o.retryLane=m,tl(e,m),Gt(i,e,m),Fo;_u(),t=nm(e,t,a)}else e=o.treeContext,Pe=cn(m.nextSibling),xt=t,qe=!0,ma=null,sn=!1,e!==null&&Gd(t,e),t=Eu(t,i),t.flags|=4096;return t}return e=Vn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Zo(e,t,a,i,s){return il(t),a=wo(e,t,a,i,void 0,s),i=Co(),e!==null&&!gt?(Do(e,t,s),$n(e,t,s)):(qe&&i&&uo(t),t.flags|=1,wt(e,t,a,s),t.child)}function am(e,t,a,i,s,o){return il(t),t.updateQueue=null,a=rh(t,i,a,s),ih(e),i=Co(),e!==null&&!gt?(Do(e,t,o),$n(e,t,o)):(qe&&i&&uo(t),t.flags|=1,wt(e,t,a,o),t.child)}function lm(e,t,a,i,s){if(il(t),t.stateNode===null){var o=Ul,m=a.contextType;typeof m=="object"&&m!==null&&(o=At(m)),o=new a(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Vo,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},bo(t),m=a.contextType,o.context=typeof m=="object"&&m!==null?At(m):Ul,o.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Xo(t,a,m,i),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&Vo.enqueueReplaceState(o,o.state,null),Bi(t,i,o,s),Hi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var g=t.memoizedProps,T=fl(a,g);o.props=T;var N=o.context,Y=a.contextType;m=Ul,typeof Y=="object"&&Y!==null&&(m=At(Y));var V=a.getDerivedStateFromProps;Y=typeof V=="function"||typeof o.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,Y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(g||N!==m)&&Vh(t,o,i,m),va=!1;var L=t.memoizedState;o.state=L,Bi(t,i,o,s),Hi(),N=t.memoizedState,g||L!==N||va?(typeof V=="function"&&(Xo(t,a,V,i),N=t.memoizedState),(T=va||Xh(t,a,T,i,L,N,m))?(Y||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=N),o.props=i,o.state=N,o.context=m,i=T):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,So(e,t),m=t.memoizedProps,Y=fl(a,m),o.props=Y,V=t.pendingProps,L=o.context,N=a.contextType,T=Ul,typeof N=="object"&&N!==null&&(T=At(N)),g=a.getDerivedStateFromProps,(N=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==V||L!==T)&&Vh(t,o,i,T),va=!1,L=t.memoizedState,o.state=L,Bi(t,i,o,s),Hi();var q=t.memoizedState;m!==V||L!==q||va||e!==null&&e.dependencies!==null&&au(e.dependencies)?(typeof g=="function"&&(Xo(t,a,g,i),q=t.memoizedState),(Y=va||Xh(t,a,Y,i,L,q,T)||e!==null&&e.dependencies!==null&&au(e.dependencies))?(N||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,q,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,q,T)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),o.props=i,o.state=q,o.context=T,i=Y):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,Tu(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=ol(t,e.child,null,s),t.child=ol(t,null,a,s)):wt(e,t,a,s),t.memoizedState=o.state,e=t.child):e=$n(e,t,s),e}function im(e,t,a,i){return al(),t.flags|=256,wt(e,t,a,i),t.child}var Jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ko(e){return{baseLanes:e,cachePool:Jd()}}function $o(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Wt),e}function rm(e,t,a){var i=t.pendingProps,s=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),m&&(s=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(s?Sa(t):Ea(),(e=Pe)?(e=my(e,sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ha!==null?{id:Mn,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},a=qd(e),a.return=t,t.child=a,xt=t,Pe=null)):e=null,e===null)throw ya(t);return _c(e)?t.lanes=32:t.lanes=536870912,null}var g=i.children;return i=i.fallback,s?(Ea(),s=t.mode,g=Ru({mode:"hidden",children:g},s),i=nl(i,s,a,null),g.return=t,i.return=t,g.sibling=i,t.child=g,i=t.child,i.memoizedState=ko(a),i.childLanes=$o(e,m,a),t.memoizedState=Jo,Xi(null,i)):(Sa(t),Po(t,g))}var T=e.memoizedState;if(T!==null&&(g=T.dehydrated,g!==null)){if(o)t.flags&256?(Sa(t),t.flags&=-257,t=Wo(e,t,a)):t.memoizedState!==null?(Ea(),t.child=e.child,t.flags|=128,t=null):(Ea(),g=i.fallback,s=t.mode,i=Ru({mode:"visible",children:i.children},s),g=nl(g,s,a,null),g.flags|=2,i.return=t,g.return=t,i.sibling=g,t.child=i,ol(t,e.child,null,a),i=t.child,i.memoizedState=ko(a),i.childLanes=$o(e,m,a),t.memoizedState=Jo,t=Xi(null,i));else if(Sa(t),_c(g)){if(m=g.nextSibling&&g.nextSibling.dataset,m)var N=m.dgst;m=N,i=Error(u(419)),i.stack="",i.digest=m,zi({value:i,source:null,stack:null}),t=Wo(e,t,a)}else if(gt||Hl(e,t,a,!1),m=(a&e.childLanes)!==0,gt||m){if(m=ke,m!==null&&(i=M(m,a),i!==0&&i!==T.retryLane))throw T.retryLane=i,tl(e,i),Gt(m,e,i),Fo;zc(g)||_u(),t=Wo(e,t,a)}else zc(g)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Pe=cn(g.nextSibling),xt=t,qe=!0,ma=null,sn=!1,e!==null&&Gd(t,e),t=Po(t,i.children),t.flags|=4096);return t}return s?(Ea(),g=i.fallback,s=t.mode,T=e.child,N=T.sibling,i=Vn(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,N!==null?g=Vn(N,g):(g=nl(g,s,a,null),g.flags|=2),g.return=t,i.return=t,i.sibling=g,t.child=i,Xi(null,i),i=t.child,g=e.child.memoizedState,g===null?g=ko(a):(s=g.cachePool,s!==null?(T=pt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=Jd(),g={baseLanes:g.baseLanes|a,cachePool:s}),i.memoizedState=g,i.childLanes=$o(e,m,a),t.memoizedState=Jo,Xi(e.child,i)):(Sa(t),a=e.child,e=a.sibling,a=Vn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Po(e,t){return t=Ru({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ru(e,t){return e=Jt(22,e,null,t),e.lanes=0,e}function Wo(e,t,a){return ol(t,e.child,null,a),e=Po(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function um(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ho(e.return,t,a)}function Io(e,t,a,i,s,o){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:s,treeForkCount:o}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=a,m.tailMode=s,m.treeForkCount=o)}function sm(e,t,a){var i=t.pendingProps,s=i.revealOrder,o=i.tail;i=i.children;var m=ft.current,g=(m&2)!==0;if(g?(m=m&1|2,t.flags|=128):m&=1,$(ft,m),wt(e,t,i,a),i=qe?Mi:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&um(e,a,t);else if(e.tag===19)um(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&fu(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Io(t,!1,s,a,o,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&fu(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Io(t,!0,a,null,o,i);break;case"together":Io(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function $n(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Hl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=Vn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Vn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&au(e)))}function H0(e,t,a){switch(t.tag){case 3:st(t,t.stateNode.containerInfo),pa(t,pt,e.memoizedState.cache),al();break;case 27:case 5:Ga(t);break;case 4:st(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xo(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Sa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?rm(e,t,a):(Sa(t),e=$n(e,t,a),e!==null?e.sibling:null);Sa(t);break;case 19:var s=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(Hl(e,t,a,!1),i=(a&t.childLanes)!==0),s){if(i)return sm(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),$(ft,ft.current),i)break;return null;case 22:return t.lanes=0,em(e,t,a,t.pendingProps);case 24:pa(t,pt,e.memoizedState.cache)}return $n(e,t,a)}function om(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)gt=!0;else{if(!ec(e,a)&&(t.flags&128)===0)return gt=!1,H0(e,t,a);gt=(e.flags&131072)!==0}else gt=!1,qe&&(t.flags&1048576)!==0&&Yd(t,Mi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ul(t.elementType),t.type=e,typeof e=="function")lo(e)?(i=fl(e,i),t.tag=1,t=lm(null,t,e,i,a)):(t.tag=0,t=Zo(null,t,e,i,a));else{if(e!=null){var s=e.$$typeof;if(s===ie){t.tag=11,t=Ph(null,t,e,i,a);break e}else if(s===w){t.tag=14,t=Wh(null,t,e,i,a);break e}}throw t=De(e)||e,Error(u(306,t,""))}}return t;case 0:return Zo(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,s=fl(i,t.pendingProps),lm(e,t,i,s,a);case 3:e:{if(st(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var o=t.memoizedState;s=o.element,So(e,t),Bi(t,i,null,a);var m=t.memoizedState;if(i=m.cache,pa(t,pt,i),i!==o.cache&&mo(t,[pt],a,!0),Hi(),i=m.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=im(e,t,i,a);break e}else if(i!==s){s=ln(Error(u(424)),t),zi(s),t=im(e,t,i,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Pe=cn(e.firstChild),xt=t,qe=!0,ma=null,sn=!0,a=eh(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(al(),i===s){t=$n(e,t,a);break e}wt(e,t,i,a)}t=t.child}return t;case 26:return Tu(e,t),e===null?(a=Sy(t.type,null,t.pendingProps,null))?t.memoizedState=a:qe||(a=t.type,e=t.pendingProps,i=qu(ge.current).createElement(a),i[ee]=t,i[ae]=e,Ct(i,a,e),Ie(i),t.stateNode=i):t.memoizedState=Sy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ga(t),e===null&&qe&&(i=t.stateNode=vy(t.type,t.pendingProps,ge.current),xt=t,sn=!0,s=Pe,Da(t.type)?(Uc=s,Pe=cn(i.firstChild)):Pe=s),wt(e,t,t.pendingProps.children,a),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((s=i=Pe)&&(i=hb(i,t.type,t.pendingProps,sn),i!==null?(t.stateNode=i,xt=t,Pe=cn(i.firstChild),sn=!1,s=!0):s=!1),s||ya(t)),Ga(t),s=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,i=o.children,Cc(s,o)?i=null:m!==null&&Cc(s,m)&&(t.flags|=32),t.memoizedState!==null&&(s=wo(e,t,C0,null,null,a),lr._currentValue=s),Tu(e,t),wt(e,t,i,a),t.child;case 6:return e===null&&qe&&((e=a=Pe)&&(a=mb(a,t.pendingProps,sn),a!==null?(t.stateNode=a,xt=t,Pe=null,e=!0):e=!1),e||ya(t)),null;case 13:return rm(e,t,a);case 4:return st(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ol(t,null,i,a):wt(e,t,i,a),t.child;case 11:return Ph(e,t,t.type,t.pendingProps,a);case 7:return wt(e,t,t.pendingProps,a),t.child;case 8:return wt(e,t,t.pendingProps.children,a),t.child;case 12:return wt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,pa(t,t.type,i.value),wt(e,t,i.children,a),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,il(t),s=At(s),i=i(s),t.flags|=1,wt(e,t,i,a),t.child;case 14:return Wh(e,t,t.type,t.pendingProps,a);case 15:return Ih(e,t,t.type,t.pendingProps,a);case 19:return sm(e,t,a);case 31:return L0(e,t,a);case 22:return em(e,t,a,t.pendingProps);case 24:return il(t),i=At(pt),e===null?(s=vo(),s===null&&(s=ke,o=yo(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=a),s=o),t.memoizedState={parent:i,cache:s},bo(t),pa(t,pt,s)):((e.lanes&a)!==0&&(So(e,t),Bi(t,null,null,a),Hi()),s=e.memoizedState,o=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),pa(t,pt,i)):(i=o.cache,pa(t,pt,i),i!==s.cache&&mo(t,[pt],a,!0))),wt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Pn(e){e.flags|=4}function tc(e,t,a,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Lm())e.flags|=8192;else throw sl=uu,go}else e.flags&=-16777217}function cm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!xy(t))if(Lm())e.flags|=8192;else throw sl=uu,go}function Ou(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ja():536870912,e.lanes|=t,kl|=t)}function Vi(e,t){if(!qe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function B0(e,t,a){var i=t.pendingProps;switch(so(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Zn(pt),tt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?Pn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,co())),We(t),null;case 26:var s=t.type,o=t.memoizedState;return e===null?(Pn(t),o!==null?(We(t),cm(t,o)):(We(t),tc(t,s,null,i,a))):o?o!==e.memoizedState?(Pn(t),We(t),cm(t,o)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Pn(t),We(t),tc(t,s,e,i,a)),null;case 27:if(Tl(t),a=ge.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Pn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return We(t),null}e=I.current,Ll(t)?Xd(t):(e=vy(s,i,a),t.stateNode=e,Pn(t))}return We(t),null;case 5:if(Tl(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Pn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return We(t),null}if(o=I.current,Ll(t))Xd(t);else{var m=qu(ge.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?m.createElement(s,{is:i.is}):m.createElement(s)}}o[ee]=t,o[ae]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=o;e:switch(Ct(o,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Pn(t)}}return We(t),tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Pn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=ge.current,Ll(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,s=xt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[ee]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||ry(e.nodeValue,a)),e||ya(t,!0)}else e=qu(e).createTextNode(i),e[ee]=t,t.stateNode=e}return We(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ll(t),a!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ee]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else a=co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(u(558))}return We(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Ll(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ee]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),s=!1}else s=co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ou(t,t.updateQueue),We(t),null);case 4:return tt(),e===null&&Rc(t.stateNode.containerInfo),We(t),null;case 10:return Zn(t.type),We(t),null;case 19:if(Q(ft),i=t.memoizedState,i===null)return We(t),null;if(s=(t.flags&128)!==0,o=i.rendering,o===null)if(s)Vi(i,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=fu(e),o!==null){for(t.flags|=128,Vi(i,!1),e=o.updateQueue,t.updateQueue=e,Ou(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Bd(a,e),a=a.sibling;return $(ft,ft.current&1|2),qe&&Kn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&ot()>Du&&(t.flags|=128,s=!0,Vi(i,!1),t.lanes=4194304)}else{if(!s)if(e=fu(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ou(t,e),Vi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!qe)return We(t),null}else 2*ot()-i.renderingStartTime>Du&&a!==536870912&&(t.flags|=128,s=!0,Vi(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ot(),e.sibling=null,a=ft.current,$(ft,s?a&1|2:a&1),qe&&Kn(t,i.treeForkCount),e):(We(t),null);case 22:case 23:return $t(t),Oo(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),a=t.updateQueue,a!==null&&Ou(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Q(rl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zn(pt),We(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function q0(e,t){switch(so(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(pt),tt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Tl(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(u(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(ft),null;case 4:return tt(),null;case 10:return Zn(t.type),null;case 22:case 23:return $t(t),Oo(),e!==null&&Q(rl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zn(pt),null;case 25:return null;default:return null}}function fm(e,t){switch(so(t),t.tag){case 3:Zn(pt),tt();break;case 26:case 27:case 5:Tl(t);break;case 4:tt();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:Q(ft);break;case 10:Zn(t.type);break;case 22:case 23:$t(t),Oo(),e!==null&&Q(rl);break;case 24:Zn(pt)}}function Ki(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){i=void 0;var o=a.create,m=a.inst;i=o(),m.destroy=i}a=a.next}while(a!==s)}}catch(g){Ke(t,t.return,g)}}function Ta(e,t,a){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var o=s.next;i=o;do{if((i.tag&e)===e){var m=i.inst,g=m.destroy;if(g!==void 0){m.destroy=void 0,s=t;var T=a,N=g;try{N()}catch(Y){Ke(s,T,Y)}}}i=i.next}while(i!==o)}}catch(Y){Ke(t,t.return,Y)}}function dm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{nh(t,a)}catch(i){Ke(e,e.return,i)}}}function hm(e,t,a){a.props=fl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ke(e,t,i)}}function Fi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(s){Ke(e,t,s)}}function _n(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(s){Ke(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Ke(e,t,s)}else a.current=null}function mm(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(s){Ke(e,e.return,s)}}function nc(e,t,a){try{var i=e.stateNode;ub(i,e.type,a,t),i[ae]=t}catch(s){Ke(e,e.return,s)}}function ym(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ym(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Da(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lc(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Gn));else if(i!==4&&(i===27&&Da(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(lc(e,t,a),e=e.sibling;e!==null;)lc(e,t,a),e=e.sibling}function xu(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Da(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(xu(e,t,a),e=e.sibling;e!==null;)xu(e,t,a),e=e.sibling}function pm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Ct(t,i,a),t[ee]=e,t[ae]=a}catch(o){Ke(e,e.return,o)}}var Wn=!1,bt=!1,ic=!1,vm=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function Q0(e,t){if(e=e.containerInfo,Ac=Fu,e=Dd(e),Ps(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var s=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var m=0,g=-1,T=-1,N=0,Y=0,V=e,L=null;t:for(;;){for(var q;V!==a||s!==0&&V.nodeType!==3||(g=m+s),V!==o||i!==0&&V.nodeType!==3||(T=m+i),V.nodeType===3&&(m+=V.nodeValue.length),(q=V.firstChild)!==null;)L=V,V=q;for(;;){if(V===e)break t;if(L===a&&++N===s&&(g=m),L===o&&++Y===i&&(T=m),(q=V.nextSibling)!==null)break;V=L,L=V.parentNode}V=q}a=g===-1||T===-1?null:{start:g,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(wc={focusedElem:e,selectionRange:a},Fu=!1,Rt=t;Rt!==null;)if(t=Rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Rt=e;else for(;Rt!==null;){switch(t=Rt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,a=t,s=o.memoizedProps,o=o.memoizedState,i=a.stateNode;try{var le=fl(a.type,s);e=i.getSnapshotBeforeUpdate(le,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Ke(a,a.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Mc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,Rt=e;break}Rt=t.return}}function gm(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ea(e,a),i&4&&Ki(5,a);break;case 1:if(ea(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){Ke(a,a.return,m)}else{var s=fl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ke(a,a.return,m)}}i&64&&dm(a),i&512&&Fi(a,a.return);break;case 3:if(ea(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{nh(e,t)}catch(m){Ke(a,a.return,m)}}break;case 27:t===null&&i&4&&pm(a);case 26:case 5:ea(e,a),t===null&&i&4&&mm(a),i&512&&Fi(a,a.return);break;case 12:ea(e,a);break;case 31:ea(e,a),i&4&&Em(e,a);break;case 13:ea(e,a),i&4&&Tm(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=k0.bind(null,a),yb(e,a))));break;case 22:if(i=a.memoizedState!==null||Wn,!i){t=t!==null&&t.memoizedState!==null||bt,s=Wn;var o=bt;Wn=i,(bt=t)&&!o?ta(e,a,(a.subtreeFlags&8772)!==0):ea(e,a),Wn=s,bt=o}break;case 30:break;default:ea(e,a)}}function bm(e){var t=e.alternate;t!==null&&(e.alternate=null,bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&<(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,Bt=!1;function In(e,t,a){for(a=a.child;a!==null;)Sm(e,t,a),a=a.sibling}function Sm(e,t,a){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(Va,a)}catch{}switch(a.tag){case 26:bt||_n(a,t),In(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:bt||_n(a,t);var i=et,s=Bt;Da(a.type)&&(et=a.stateNode,Bt=!1),In(e,t,a),tr(a.stateNode),et=i,Bt=s;break;case 5:bt||_n(a,t);case 6:if(i=et,s=Bt,et=null,In(e,t,a),et=i,Bt=s,et!==null)if(Bt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(o){Ke(a,t,o)}else try{et.removeChild(a.stateNode)}catch(o){Ke(a,t,o)}break;case 18:et!==null&&(Bt?(e=et,dy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ai(e)):dy(et,a.stateNode));break;case 4:i=et,s=Bt,et=a.stateNode.containerInfo,Bt=!0,In(e,t,a),et=i,Bt=s;break;case 0:case 11:case 14:case 15:Ta(2,a,t),bt||Ta(4,a,t),In(e,t,a);break;case 1:bt||(_n(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&hm(a,t,i)),In(e,t,a);break;case 21:In(e,t,a);break;case 22:bt=(i=bt)||a.memoizedState!==null,In(e,t,a),bt=i;break;default:In(e,t,a)}}function Em(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ai(e)}catch(a){Ke(t,t.return,a)}}}function Tm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ai(e)}catch(a){Ke(t,t.return,a)}}function Y0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vm),t;default:throw Error(u(435,e.tag))}}function Au(e,t){var a=Y0(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var s=$0.bind(null,e,i);i.then(s,s)}})}function qt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var s=a[i],o=e,m=t,g=m;e:for(;g!==null;){switch(g.tag){case 27:if(Da(g.type)){et=g.stateNode,Bt=!1;break e}break;case 5:et=g.stateNode,Bt=!1;break e;case 3:case 4:et=g.stateNode.containerInfo,Bt=!0;break e}g=g.return}if(et===null)throw Error(u(160));Sm(o,m,s),et=null,Bt=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Rm(t,e),t=t.sibling}var On=null;function Rm(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qt(t,e),Qt(e),i&4&&(Ta(3,e,e.return),Ki(3,e),Ta(5,e,e.return));break;case 1:qt(t,e),Qt(e),i&512&&(bt||a===null||_n(a,a.return)),i&64&&Wn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var s=On;if(qt(t,e),Qt(e),i&512&&(bt||a===null||_n(a,a.return)),i&4){var o=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":o=s.getElementsByTagName("title")[0],(!o||o[at]||o[ee]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(i),s.head.insertBefore(o,s.querySelector("head > title"))),Ct(o,i,a),o[ee]=e,Ie(o),i=o;break e;case"link":var m=Ry("link","href",s).get(i+(a.href||""));if(m){for(var g=0;g<m.length;g++)if(o=m[g],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(g,1);break t}}o=s.createElement(i),Ct(o,i,a),s.head.appendChild(o);break;case"meta":if(m=Ry("meta","content",s).get(i+(a.content||""))){for(g=0;g<m.length;g++)if(o=m[g],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(g,1);break t}}o=s.createElement(i),Ct(o,i,a),s.head.appendChild(o);break;default:throw Error(u(468,i))}o[ee]=e,Ie(o),i=o}e.stateNode=i}else Oy(s,e.type,e.stateNode);else e.stateNode=Ty(s,i,e.memoizedProps);else o!==i?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,i===null?Oy(s,e.type,e.stateNode):Ty(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&nc(e,e.memoizedProps,a.memoizedProps)}break;case 27:qt(t,e),Qt(e),i&512&&(bt||a===null||_n(a,a.return)),a!==null&&i&4&&nc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(qt(t,e),Qt(e),i&512&&(bt||a===null||_n(a,a.return)),e.flags&32){s=e.stateNode;try{Al(s,"")}catch(le){Ke(e,e.return,le)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,nc(e,s,a!==null?a.memoizedProps:s)),i&1024&&(ic=!0);break;case 6:if(qt(t,e),Qt(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(le){Ke(e,e.return,le)}}break;case 3:if(Gu=null,s=On,On=Qu(t.containerInfo),qt(t,e),On=s,Qt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch(le){Ke(e,e.return,le)}ic&&(ic=!1,Om(e));break;case 4:i=On,On=Qu(e.stateNode.containerInfo),qt(t,e),Qt(e),On=i;break;case 12:qt(t,e),Qt(e);break;case 31:qt(t,e),Qt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Au(e,i)));break;case 13:qt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Cu=ot()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Au(e,i)));break;case 22:s=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,N=Wn,Y=bt;if(Wn=N||s,bt=Y||T,qt(t,e),bt=Y,Wn=N,Qt(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||T||Wn||bt||dl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){T=a=t;try{if(o=T.stateNode,s)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{g=T.stateNode;var V=T.memoizedProps.style,L=V!=null&&V.hasOwnProperty("display")?V.display:null;g.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(le){Ke(T,T.return,le)}}}else if(t.tag===6){if(a===null){T=t;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(le){Ke(T,T.return,le)}}}else if(t.tag===18){if(a===null){T=t;try{var q=T.stateNode;s?hy(q,!0):hy(T.stateNode,!1)}catch(le){Ke(T,T.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Au(e,a))));break;case 19:qt(t,e),Qt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Au(e,i)));break;case 30:break;case 21:break;default:qt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(ym(i)){a=i;break}i=i.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,o=ac(e);xu(e,o,s);break;case 5:var m=a.stateNode;a.flags&32&&(Al(m,""),a.flags&=-33);var g=ac(e);xu(e,g,m);break;case 3:case 4:var T=a.stateNode.containerInfo,N=ac(e);lc(e,N,T);break;default:throw Error(u(161))}}catch(Y){Ke(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Om(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Om(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ea(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gm(e,t.alternate,t),t=t.sibling}function dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ta(4,t,t.return),dl(t);break;case 1:_n(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&hm(t,t.return,a),dl(t);break;case 27:tr(t.stateNode);case 26:case 5:_n(t,t.return),dl(t);break;case 22:t.memoizedState===null&&dl(t);break;case 30:dl(t);break;default:dl(t)}e=e.sibling}}function ta(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:ta(s,o,a),Ki(4,o);break;case 1:if(ta(s,o,a),i=o,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(N){Ke(i,i.return,N)}if(i=o,s=i.updateQueue,s!==null){var g=i.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)th(T[s],g)}catch(N){Ke(i,i.return,N)}}a&&m&64&&dm(o),Fi(o,o.return);break;case 27:pm(o);case 26:case 5:ta(s,o,a),a&&i===null&&m&4&&mm(o),Fi(o,o.return);break;case 12:ta(s,o,a);break;case 31:ta(s,o,a),a&&m&4&&Em(s,o);break;case 13:ta(s,o,a),a&&m&4&&Tm(s,o);break;case 22:o.memoizedState===null&&ta(s,o,a),Fi(o,o.return);break;case 30:break;default:ta(s,o,a)}t=t.sibling}}function rc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&_i(a))}function uc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_i(e))}function xn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xm(e,t,a,i),t=t.sibling}function xm(e,t,a,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:xn(e,t,a,i),s&2048&&Ki(9,t);break;case 1:xn(e,t,a,i);break;case 3:xn(e,t,a,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_i(e)));break;case 12:if(s&2048){xn(e,t,a,i),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,g=o.onPostCommit;typeof g=="function"&&g(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ke(t,t.return,T)}}else xn(e,t,a,i);break;case 31:xn(e,t,a,i);break;case 13:xn(e,t,a,i);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?xn(e,t,a,i):Zi(e,t):o._visibility&2?xn(e,t,a,i):(o._visibility|=2,Fl(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&rc(m,t);break;case 24:xn(e,t,a,i),s&2048&&uc(t.alternate,t);break;default:xn(e,t,a,i)}}function Fl(e,t,a,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,m=t,g=a,T=i,N=m.flags;switch(m.tag){case 0:case 11:case 15:Fl(o,m,g,T,s),Ki(8,m);break;case 23:break;case 22:var Y=m.stateNode;m.memoizedState!==null?Y._visibility&2?Fl(o,m,g,T,s):Zi(o,m):(Y._visibility|=2,Fl(o,m,g,T,s)),s&&N&2048&&rc(m.alternate,m);break;case 24:Fl(o,m,g,T,s),s&&N&2048&&uc(m.alternate,m);break;default:Fl(o,m,g,T,s)}t=t.sibling}}function Zi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,s=i.flags;switch(i.tag){case 22:Zi(a,i),s&2048&&rc(i.alternate,i);break;case 24:Zi(a,i),s&2048&&uc(i.alternate,i);break;default:Zi(a,i)}t=t.sibling}}var Ji=8192;function Zl(e,t,a){if(e.subtreeFlags&Ji)for(e=e.child;e!==null;)Am(e,t,a),e=e.sibling}function Am(e,t,a){switch(e.tag){case 26:Zl(e,t,a),e.flags&Ji&&e.memoizedState!==null&&wb(a,On,e.memoizedState,e.memoizedProps);break;case 5:Zl(e,t,a);break;case 3:case 4:var i=On;On=Qu(e.stateNode.containerInfo),Zl(e,t,a),On=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ji,Ji=16777216,Zl(e,t,a),Ji=i):Zl(e,t,a));break;default:Zl(e,t,a)}}function wm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Rt=i,Dm(i,e)}wm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cm(e),e=e.sibling}function Cm(e){switch(e.tag){case 0:case 11:case 15:ki(e),e.flags&2048&&Ta(9,e,e.return);break;case 3:ki(e);break;case 12:ki(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wu(e)):ki(e);break;default:ki(e)}}function wu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Rt=i,Dm(i,e)}wm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ta(8,t,t.return),wu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,wu(t));break;default:wu(t)}e=e.sibling}}function Dm(e,t){for(;Rt!==null;){var a=Rt;switch(a.tag){case 0:case 11:case 15:Ta(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:_i(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Rt=i;else e:for(a=e;Rt!==null;){i=Rt;var s=i.sibling,o=i.return;if(bm(i),i===a){Rt=null;break e}if(s!==null){s.return=o,Rt=s;break e}Rt=o}}}var G0={getCacheForType:function(e){var t=At(pt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return At(pt).controller.signal}},X0=typeof WeakMap=="function"?WeakMap:Map,Xe=0,ke=null,Me=null,_e=0,Ve=0,Pt=null,Ra=!1,Jl=!1,sc=!1,na=0,ut=0,Oa=0,hl=0,oc=0,Wt=0,kl=0,$i=null,Yt=null,cc=!1,Cu=0,Mm=0,Du=1/0,Mu=null,xa=null,St=0,Aa=null,$l=null,aa=0,fc=0,dc=null,zm=null,Pi=0,hc=null;function It(){return(Xe&2)!==0&&_e!==0?_e&-_e:j.T!==null?bc():W()}function _m(){if(Wt===0)if((_e&536870912)===0||qe){var e=Ka;Ka<<=1,(Ka&3932160)===0&&(Ka=262144),Wt=e}else Wt=536870912;return e=kt.current,e!==null&&(e.flags|=32),Wt}function Gt(e,t,a){(e===ke&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(Pl(e,0),wa(e,_e,Wt,!1)),fa(e,a),((Xe&2)===0||e!==ke)&&(e===ke&&((Xe&2)===0&&(hl|=a),ut===4&&wa(e,_e,Wt,!1)),Un(e))}function Um(e,t,a){if((Xe&6)!==0)throw Error(u(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Za(e,t),s=i?F0(e,t):yc(e,t,!0),o=i;do{if(s===0){Jl&&!i&&wa(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!V0(a)){s=yc(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var g=e;s=$i;var T=g.current.memoizedState.isDehydrated;if(T&&(Pl(g,m).flags|=256),m=yc(g,m,!1),m!==2){if(sc&&!T){g.errorRecoveryDisabledLanes|=o,hl|=o,s=4;break e}o=Yt,Yt=s,o!==null&&(Yt===null?Yt=o:Yt.push.apply(Yt,o))}s=m}if(o=!1,s!==2)continue}}if(s===1){Pl(e,0),wa(e,t,0,!0);break}e:{switch(i=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:wa(i,t,Wt,!Ra);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=Cu+300-ot(),10<s)){if(wa(i,t,Wt,!Ra),Fa(i,0,!0)!==0)break e;aa=t,i.timeoutHandle=cy(Nm.bind(null,i,a,Yt,Mu,cc,t,Wt,hl,kl,Ra,o,"Throttled",-0,0),s);break e}Nm(i,a,Yt,Mu,cc,t,Wt,hl,kl,Ra,o,null,-0,0)}}break}while(!0);Un(e)}function Nm(e,t,a,i,s,o,m,g,T,N,Y,V,L,q){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gn},Am(t,o,V);var le=(o&62914560)===o?Cu-ot():(o&4194048)===o?Mm-ot():0;if(le=Cb(V,le),le!==null){aa=o,e.cancelPendingCommit=le(Gm.bind(null,e,t,o,a,i,s,m,g,T,Y,V,null,L,q)),wa(e,o,m,!N);return}}Gm(e,t,o,a,i,s,m,g,T)}function V0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var s=a[i],o=s.getSnapshot;s=s.value;try{if(!Zt(o(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wa(e,t,a,i){t&=~oc,t&=~hl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var o=31-Mt(s),m=1<<o;i[o]=-1,s&=~m}a!==0&&Yr(e,a,t)}function zu(){return(Xe&6)===0?(Wi(0),!1):!0}function mc(){if(Me!==null){if(Ve===0)var e=Me.return;else e=Me,Fn=ll=null,Mo(e),Yl=null,Ni=0,e=Me;for(;e!==null;)fm(e.alternate,e),e=e.return;Me=null}}function Pl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,cb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),aa=0,mc(),ke=e,Me=a=Vn(e.current,null),_e=t,Ve=0,Pt=null,Ra=!1,Jl=Za(e,t),sc=!1,kl=Wt=oc=hl=Oa=ut=0,Yt=$i=null,cc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-Mt(i),o=1<<s;t|=e[s],i&=~o}return na=t,Wr(),a}function jm(e,t){Re=null,j.H=Gi,t===Ql||t===ru?(t=Pd(),Ve=3):t===go?(t=Pd(),Ve=4):Ve=t===Fo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pt=t,Me===null&&(ut=1,Su(e,ln(t,e.current)))}function Lm(){var e=kt.current;return e===null?!0:(_e&4194048)===_e?on===null:(_e&62914560)===_e||(_e&536870912)!==0?e===on:!1}function Hm(){var e=j.H;return j.H=Gi,e===null?Gi:e}function Bm(){var e=j.A;return j.A=G0,e}function _u(){ut=4,Ra||(_e&4194048)!==_e&&kt.current!==null||(Jl=!0),(Oa&134217727)===0&&(hl&134217727)===0||ke===null||wa(ke,_e,Wt,!1)}function yc(e,t,a){var i=Xe;Xe|=2;var s=Hm(),o=Bm();(ke!==e||_e!==t)&&(Mu=null,Pl(e,t)),t=!1;var m=ut;e:do try{if(Ve!==0&&Me!==null){var g=Me,T=Pt;switch(Ve){case 8:mc(),m=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(t=!0);var N=Ve;if(Ve=0,Pt=null,Wl(e,g,T,N),a&&Jl){m=0;break e}break;default:N=Ve,Ve=0,Pt=null,Wl(e,g,T,N)}}K0(),m=ut;break}catch(Y){jm(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Fn=ll=null,Xe=i,j.H=s,j.A=o,Me===null&&(ke=null,_e=0,Wr()),m}function K0(){for(;Me!==null;)qm(Me)}function F0(e,t){var a=Xe;Xe|=2;var i=Hm(),s=Bm();ke!==e||_e!==t?(Mu=null,Du=ot()+500,Pl(e,t)):Jl=Za(e,t);e:do try{if(Ve!==0&&Me!==null){t=Me;var o=Pt;t:switch(Ve){case 1:Ve=0,Pt=null,Wl(e,t,o,1);break;case 2:case 9:if(kd(o)){Ve=0,Pt=null,Qm(t);break}t=function(){Ve!==2&&Ve!==9||ke!==e||(Ve=7),Un(e)},o.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:kd(o)?(Ve=0,Pt=null,Qm(t)):(Ve=0,Pt=null,Wl(e,t,o,7));break;case 5:var m=null;switch(Me.tag){case 26:m=Me.memoizedState;case 5:case 27:var g=Me;if(m?xy(m):g.stateNode.complete){Ve=0,Pt=null;var T=g.sibling;if(T!==null)Me=T;else{var N=g.return;N!==null?(Me=N,Uu(N)):Me=null}break t}}Ve=0,Pt=null,Wl(e,t,o,5);break;case 6:Ve=0,Pt=null,Wl(e,t,o,6);break;case 8:mc(),ut=6;break e;default:throw Error(u(462))}}Z0();break}catch(Y){jm(e,Y)}while(!0);return Fn=ll=null,j.H=i,j.A=s,Xe=a,Me!==null?0:(ke=null,_e=0,Wr(),ut)}function Z0(){for(;Me!==null&&!zs();)qm(Me)}function qm(e){var t=om(e.alternate,e,na);e.memoizedProps=e.pendingProps,t===null?Uu(e):Me=t}function Qm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=am(a,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=am(a,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:Mo(t);default:fm(a,t),t=Me=Bd(t,na),t=om(a,t,na)}e.memoizedProps=e.pendingProps,t===null?Uu(e):Me=t}function Wl(e,t,a,i){Fn=ll=null,Mo(t),Yl=null,Ni=0;var s=t.return;try{if(j0(e,s,t,a,_e)){ut=1,Su(e,ln(a,e.current)),Me=null;return}}catch(o){if(s!==null)throw Me=s,o;ut=1,Su(e,ln(a,e.current)),Me=null;return}t.flags&32768?(qe||i===1?e=!0:Jl||(_e&536870912)!==0?e=!1:(Ra=e=!0,(i===2||i===9||i===3||i===6)&&(i=kt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Ym(t,e)):Uu(t)}function Uu(e){var t=e;do{if((t.flags&32768)!==0){Ym(t,Ra);return}e=t.return;var a=B0(t.alternate,t,na);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ut===0&&(ut=5)}function Ym(e,t){do{var a=q0(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);ut=6,Me=null}function Gm(e,t,a,i,s,o,m,g,T){e.cancelPendingCommit=null;do Nu();while(St!==0);if((Xe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=no,js(e,a,o,m,g,T),e===ke&&(Me=ke=null,_e=0),$l=t,Aa=e,aa=a,fc=o,dc=s,zm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,P0(jt,function(){return Zm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=j.T,j.T=null,s=k.p,k.p=2,m=Xe,Xe|=4;try{Q0(e,t,a)}finally{Xe=m,k.p=s,j.T=i}}St=1,Xm(),Vm(),Km()}}function Xm(){if(St===1){St=0;var e=Aa,t=$l,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var i=k.p;k.p=2;var s=Xe;Xe|=4;try{Rm(t,e);var o=wc,m=Dd(e.containerInfo),g=o.focusedElem,T=o.selectionRange;if(m!==g&&g&&g.ownerDocument&&Cd(g.ownerDocument.documentElement,g)){if(T!==null&&Ps(g)){var N=T.start,Y=T.end;if(Y===void 0&&(Y=N),"selectionStart"in g)g.selectionStart=N,g.selectionEnd=Math.min(Y,g.value.length);else{var V=g.ownerDocument||document,L=V&&V.defaultView||window;if(L.getSelection){var q=L.getSelection(),le=g.textContent.length,ye=Math.min(T.start,le),Je=T.end===void 0?ye:Math.min(T.end,le);!q.extend&&ye>Je&&(m=Je,Je=ye,ye=m);var D=wd(g,ye),x=wd(g,Je);if(D&&x&&(q.rangeCount!==1||q.anchorNode!==D.node||q.anchorOffset!==D.offset||q.focusNode!==x.node||q.focusOffset!==x.offset)){var U=V.createRange();U.setStart(D.node,D.offset),q.removeAllRanges(),ye>Je?(q.addRange(U),q.extend(x.node,x.offset)):(U.setEnd(x.node,x.offset),q.addRange(U))}}}}for(V=[],q=g;q=q.parentNode;)q.nodeType===1&&V.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<V.length;g++){var G=V[g];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Fu=!!Ac,wc=Ac=null}finally{Xe=s,k.p=i,j.T=a}}e.current=t,St=2}}function Vm(){if(St===2){St=0;var e=Aa,t=$l,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var i=k.p;k.p=2;var s=Xe;Xe|=4;try{gm(e,t.alternate,t)}finally{Xe=s,k.p=i,j.T=a}}St=3}}function Km(){if(St===4||St===3){St=0,_s();var e=Aa,t=$l,a=aa,i=zm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?St=5:(St=0,$l=Aa=null,Fm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(xa=null),Z(a),t=t.stateNode,nt&&typeof nt.onCommitFiberRoot=="function")try{nt.onCommitFiberRoot(Va,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=j.T,s=k.p,k.p=2,j.T=null;try{for(var o=e.onRecoverableError,m=0;m<i.length;m++){var g=i[m];o(g.value,{componentStack:g.stack})}}finally{j.T=t,k.p=s}}(aa&3)!==0&&Nu(),Un(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===hc?Pi++:(Pi=0,hc=e):Pi=0,Wi(0)}}function Fm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_i(t)))}function Nu(){return Xm(),Vm(),Km(),Zm()}function Zm(){if(St!==5)return!1;var e=Aa,t=fc;fc=0;var a=Z(aa),i=j.T,s=k.p;try{k.p=32>a?32:a,j.T=null,a=dc,dc=null;var o=Aa,m=aa;if(St=0,$l=Aa=null,aa=0,(Xe&6)!==0)throw Error(u(331));var g=Xe;if(Xe|=4,Cm(o.current),xm(o,o.current,m,a),Xe=g,Wi(0,!1),nt&&typeof nt.onPostCommitFiberRoot=="function")try{nt.onPostCommitFiberRoot(Va,o)}catch{}return!0}finally{k.p=s,j.T=i,Fm(e,t)}}function Jm(e,t,a){t=ln(a,t),t=Ko(e.stateNode,t,2),e=ba(e,t,2),e!==null&&(fa(e,2),Un(e))}function Ke(e,t,a){if(e.tag===3)Jm(e,e,a);else for(;t!==null;){if(t.tag===3){Jm(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(xa===null||!xa.has(i))){e=ln(a,e),a=kh(2),i=ba(t,a,2),i!==null&&($h(a,i,t,e),fa(i,2),Un(i));break}}t=t.return}}function pc(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new X0;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(a)||(sc=!0,s.add(a),e=J0.bind(null,e,t,a),t.then(e,e))}function J0(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(_e&a)===a&&(ut===4||ut===3&&(_e&62914560)===_e&&300>ot()-Cu?(Xe&2)===0&&Pl(e,0):oc|=a,kl===_e&&(kl=0)),Un(e)}function km(e,t){t===0&&(t=Ja()),e=tl(e,t),e!==null&&(fa(e,t),Un(e))}function k0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),km(e,a)}function $0(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),km(e,a)}function P0(e,t){return yi(e,t)}var ju=null,Il=null,vc=!1,Lu=!1,gc=!1,Ca=0;function Un(e){e!==Il&&e.next===null&&(Il===null?ju=Il=e:Il=Il.next=e),Lu=!0,vc||(vc=!0,I0())}function Wi(e,t){if(!gc&&Lu){gc=!0;do for(var a=!1,i=ju;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var o=0;else{var m=i.suspendedLanes,g=i.pingedLanes;o=(1<<31-Mt(42|e)+1)-1,o&=s&~(m&~g),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,Im(i,o))}else o=_e,o=Fa(i,i===ke?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Za(i,o)||(a=!0,Im(i,o));i=i.next}while(a);gc=!1}}function W0(){$m()}function $m(){Lu=vc=!1;var e=0;Ca!==0&&ob()&&(e=Ca);for(var t=ot(),a=null,i=ju;i!==null;){var s=i.next,o=Pm(i,t);o===0?(i.next=null,a===null?ju=s:a.next=s,s===null&&(Il=a)):(a=i,(e!==0||(o&3)!==0)&&(Lu=!0)),i=s}St!==0&&St!==5||Wi(e),Ca!==0&&(Ca=0)}function Pm(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-Mt(o),g=1<<m,T=s[m];T===-1?((g&a)===0||(g&i)!==0)&&(s[m]=Qr(g,t)):T<=t&&(e.expiredLanes|=g),o&=~g}if(t=ke,a=_e,a=Fa(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&pi(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Za(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&pi(i),Z(a)){case 2:case 8:a=Ol;break;case 32:a=jt;break;case 268435456:a=gi;break;default:a=jt}return i=Wm.bind(null,e),a=yi(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&pi(i),e.callbackPriority=2,e.callbackNode=null,2}function Wm(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Nu()&&e.callbackNode!==a)return null;var i=_e;return i=Fa(e,e===ke?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Um(e,i,t),Pm(e,ot()),e.callbackNode!=null&&e.callbackNode===a?Wm.bind(null,e):null)}function Im(e,t){if(Nu())return null;Um(e,t,!0)}function I0(){fb(function(){(Xe&6)!==0?yi(vi,W0):$m()})}function bc(){if(Ca===0){var e=Bl;e===0&&(e=qn,qn<<=1,(qn&261888)===0&&(qn=256)),Ca=e}return Ca}function ey(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Vr(""+e)}function ty(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function eb(e,t,a,i,s){if(t==="submit"&&a&&a.stateNode===s){var o=ey((s[ae]||null).action),m=i.submitter;m&&(t=(t=m[ae]||null)?ey(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var g=new Jr("action","action",null,i,s);e.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ca!==0){var T=m?ty(s,m):new FormData(s);qo(a,{pending:!0,data:T,method:s.method,action:o},null,T)}}else typeof o=="function"&&(g.preventDefault(),T=m?ty(s,m):new FormData(s),qo(a,{pending:!0,data:T,method:s.method,action:o},o,T))},currentTarget:s}]})}}for(var Sc=0;Sc<to.length;Sc++){var Ec=to[Sc],tb=Ec.toLowerCase(),nb=Ec[0].toUpperCase()+Ec.slice(1);Rn(tb,"on"+nb)}Rn(_d,"onAnimationEnd"),Rn(Ud,"onAnimationIteration"),Rn(Nd,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(g0,"onTransitionRun"),Rn(b0,"onTransitionStart"),Rn(S0,"onTransitionCancel"),Rn(jd,"onTransitionEnd"),tn("onMouseEnter",["mouseout","mouseover"]),tn("onMouseLeave",["mouseout","mouseover"]),tn("onPointerEnter",["pointerout","pointerover"]),tn("onPointerLeave",["pointerout","pointerover"]),En("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),En("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),En("onBeforeInput",["compositionend","keypress","textInput","paste"]),En("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),En("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),En("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ii="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ab=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ii));function ny(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],s=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var m=i.length-1;0<=m;m--){var g=i[m],T=g.instance,N=g.currentTarget;if(g=g.listener,T!==o&&s.isPropagationStopped())break e;o=g,s.currentTarget=N;try{o(s)}catch(Y){Pr(Y)}s.currentTarget=null,o=T}else for(m=0;m<i.length;m++){if(g=i[m],T=g.instance,N=g.currentTarget,g=g.listener,T!==o&&s.isPropagationStopped())break e;o=g,s.currentTarget=N;try{o(s)}catch(Y){Pr(Y)}s.currentTarget=null,o=T}}}}function ze(e,t){var a=t[he];a===void 0&&(a=t[he]=new Set);var i=e+"__bubble";a.has(i)||(ay(t,e,2,!1),a.add(i))}function Tc(e,t,a){var i=0;t&&(i|=4),ay(a,e,i,t)}var Hu="_reactListening"+Math.random().toString(36).slice(2);function Rc(e){if(!e[Hu]){e[Hu]=!0,Sn.forEach(function(a){a!=="selectionchange"&&(ab.has(a)||Tc(a,!1,e),Tc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hu]||(t[Hu]=!0,Tc("selectionchange",!1,t))}}function ay(e,t,a,i){switch(_y(t)){case 2:var s=zb;break;case 8:s=_b;break;default:s=Bc}a=s.bind(null,t,a,e),s=void 0,!Gs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function Oc(e,t,a,i,s){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var g=i.stateNode.containerInfo;if(g===s)break;if(m===4)for(m=i.return;m!==null;){var T=m.tag;if((T===3||T===4)&&m.stateNode.containerInfo===s)return;m=m.return}for(;g!==null;){if(m=it(g),m===null)return;if(T=m.tag,T===5||T===6||T===26||T===27){i=o=m;continue e}g=g.parentNode}}i=i.return}sd(function(){var N=o,Y=Qs(a),V=[];e:{var L=Ld.get(e);if(L!==void 0){var q=Jr,le=e;switch(e){case"keypress":if(Fr(a)===0)break e;case"keydown":case"keyup":q=$g;break;case"focusin":le="focus",q=Fs;break;case"focusout":le="blur",q=Fs;break;case"beforeblur":case"afterblur":q=Fs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Bg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Ig;break;case _d:case Ud:case Nd:q=Yg;break;case jd:q=t0;break;case"scroll":case"scrollend":q=Lg;break;case"wheel":q=a0;break;case"copy":case"cut":case"paste":q=Xg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=hd;break;case"toggle":case"beforetoggle":q=i0}var ye=(t&4)!==0,Je=!ye&&(e==="scroll"||e==="scrollend"),D=ye?L!==null?L+"Capture":null:L;ye=[];for(var x=N,U;x!==null;){var G=x;if(U=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||U===null||D===null||(G=Ei(x,D),G!=null&&ye.push(er(x,G,U))),Je)break;x=x.return}0<ye.length&&(L=new q(L,le,null,a,Y),V.push({event:L,listeners:ye}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",L&&a!==qs&&(le=a.relatedTarget||a.fromElement)&&(it(le)||le[se]))break e;if((q||L)&&(L=Y.window===Y?Y:(L=Y.ownerDocument)?L.defaultView||L.parentWindow:window,q?(le=a.relatedTarget||a.toElement,q=N,le=le?it(le):null,le!==null&&(Je=f(le),ye=le.tag,le!==Je||ye!==5&&ye!==27&&ye!==6)&&(le=null)):(q=null,le=N),q!==le)){if(ye=fd,G="onMouseLeave",D="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(ye=hd,G="onPointerLeave",D="onPointerEnter",x="pointer"),Je=q==null?L:Tt(q),U=le==null?L:Tt(le),L=new ye(G,x+"leave",q,a,Y),L.target=Je,L.relatedTarget=U,G=null,it(Y)===N&&(ye=new ye(D,x+"enter",le,a,Y),ye.target=U,ye.relatedTarget=Je,G=ye),Je=G,q&&le)t:{for(ye=lb,D=q,x=le,U=0,G=D;G;G=ye(G))U++;G=0;for(var de=x;de;de=ye(de))G++;for(;0<U-G;)D=ye(D),U--;for(;0<G-U;)x=ye(x),G--;for(;U--;){if(D===x||x!==null&&D===x.alternate){ye=D;break t}D=ye(D),x=ye(x)}ye=null}else ye=null;q!==null&&ly(V,L,q,ye,!1),le!==null&&Je!==null&&ly(V,Je,le,ye,!0)}}e:{if(L=N?Tt(N):window,q=L.nodeName&&L.nodeName.toLowerCase(),q==="select"||q==="input"&&L.type==="file")var Ye=Ed;else if(bd(L))if(Td)Ye=y0;else{Ye=h0;var re=d0}else q=L.nodeName,!q||q.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?N&&Bs(N.elementType)&&(Ye=Ed):Ye=m0;if(Ye&&(Ye=Ye(e,N))){Sd(V,Ye,a,Y);break e}re&&re(e,L,N),e==="focusout"&&N&&L.type==="number"&&N.memoizedProps.value!=null&&Hs(L,"number",L.value)}switch(re=N?Tt(N):window,e){case"focusin":(bd(re)||re.contentEditable==="true")&&(Ml=re,Ws=N,Di=null);break;case"focusout":Di=Ws=Ml=null;break;case"mousedown":Is=!0;break;case"contextmenu":case"mouseup":case"dragend":Is=!1,Md(V,a,Y);break;case"selectionchange":if(v0)break;case"keydown":case"keyup":Md(V,a,Y)}var Ae;if(Js)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Dl?vd(e,a)&&(Ue="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ue="onCompositionStart");Ue&&(md&&a.locale!=="ko"&&(Dl||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Dl&&(Ae=od()):(da=Y,Xs="value"in da?da.value:da.textContent,Dl=!0)),re=Bu(N,Ue),0<re.length&&(Ue=new dd(Ue,e,null,a,Y),V.push({event:Ue,listeners:re}),Ae?Ue.data=Ae:(Ae=gd(a),Ae!==null&&(Ue.data=Ae)))),(Ae=u0?s0(e,a):o0(e,a))&&(Ue=Bu(N,"onBeforeInput"),0<Ue.length&&(re=new dd("onBeforeInput","beforeinput",null,a,Y),V.push({event:re,listeners:Ue}),re.data=Ae)),eb(V,e,N,a,Y)}ny(V,t)})}function er(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Bu(e,t){for(var a=t+"Capture",i=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=Ei(e,a),s!=null&&i.unshift(er(e,s,o)),s=Ei(e,t),s!=null&&i.push(er(e,s,o))),e.tag===3)return i;e=e.return}return[]}function lb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ly(e,t,a,i,s){for(var o=t._reactName,m=[];a!==null&&a!==i;){var g=a,T=g.alternate,N=g.stateNode;if(g=g.tag,T!==null&&T===i)break;g!==5&&g!==26&&g!==27||N===null||(T=N,s?(N=Ei(a,o),N!=null&&m.unshift(er(a,N,T))):s||(N=Ei(a,o),N!=null&&m.push(er(a,N,T)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var ib=/\r\n?/g,rb=/\u0000|\uFFFD/g;function iy(e){return(typeof e=="string"?e:""+e).replace(ib,`
|
|
9
|
+
`).replace(rb,"")}function ry(e,t){return t=iy(t),iy(e)===t}function Ze(e,t,a,i,s,o){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Al(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Al(e,""+i);break;case"className":Tn(e,"class",i);break;case"tabIndex":Tn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Tn(e,a,i);break;case"style":rd(e,i,o);break;case"data":if(t!=="object"){Tn(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Vr(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(a==="formAction"?(t!=="input"&&Ze(e,t,"name",s.name,s,null),Ze(e,t,"formEncType",s.formEncType,s,null),Ze(e,t,"formMethod",s.formMethod,s,null),Ze(e,t,"formTarget",s.formTarget,s,null)):(Ze(e,t,"encType",s.encType,s,null),Ze(e,t,"method",s.method,s,null),Ze(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Vr(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=Gn);break;case"onScroll":i!=null&&ze("scroll",e);break;case"onScrollEnd":i!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Vr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":ze("beforetoggle",e),ze("toggle",e),ct(e,"popover",i);break;case"xlinkActuate":Ot(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Ot(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Ot(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Ot(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Ot(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Ot(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Ot(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Ot(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Ot(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ct(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ng.get(a)||a,ct(e,a,i))}}function xc(e,t,a,i,s,o){switch(a){case"style":rd(e,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof i=="string"?Al(e,i):(typeof i=="number"||typeof i=="bigint")&&Al(e,""+i);break;case"onScroll":i!=null&&ze("scroll",e);break;case"onScrollEnd":i!=null&&ze("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ft.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),o=e[ae]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof i=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,s);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):ct(e,a,i)}}}function Ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var i=!1,s=!1,o;for(o in a)if(a.hasOwnProperty(o)){var m=a[o];if(m!=null)switch(o){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ze(e,t,o,m,a,null)}}s&&Ze(e,t,"srcSet",a.srcSet,a,null),i&&Ze(e,t,"src",a.src,a,null);return;case"input":ze("invalid",e);var g=o=m=s=null,T=null,N=null;for(i in a)if(a.hasOwnProperty(i)){var Y=a[i];if(Y!=null)switch(i){case"name":s=Y;break;case"type":m=Y;break;case"checked":T=Y;break;case"defaultChecked":N=Y;break;case"value":o=Y;break;case"defaultValue":g=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,t));break;default:Ze(e,t,i,Y,a,null)}}nd(e,o,g,T,N,m,s,!1);return;case"select":ze("invalid",e),i=m=o=null;for(s in a)if(a.hasOwnProperty(s)&&(g=a[s],g!=null))switch(s){case"value":o=g;break;case"defaultValue":m=g;break;case"multiple":i=g;default:Ze(e,t,s,g,a,null)}t=o,a=m,e.multiple=!!i,t!=null?xl(e,!!i,t,!1):a!=null&&xl(e,!!i,a,!0);return;case"textarea":ze("invalid",e),o=s=i=null;for(m in a)if(a.hasOwnProperty(m)&&(g=a[m],g!=null))switch(m){case"value":i=g;break;case"defaultValue":s=g;break;case"children":o=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(u(91));break;default:Ze(e,t,m,g,a,null)}ld(e,i,s,o);return;case"option":for(T in a)a.hasOwnProperty(T)&&(i=a[T],i!=null)&&(T==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":Ze(e,t,T,i,a,null));return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(i=0;i<Ii.length;i++)ze(Ii[i],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(i=a[N],i!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ze(e,t,N,i,a,null)}return;default:if(Bs(t)){for(Y in a)a.hasOwnProperty(Y)&&(i=a[Y],i!==void 0&&xc(e,t,Y,i,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(i=a[g],i!=null&&Ze(e,t,g,i,a,null))}function ub(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,m=null,g=null,T=null,N=null,Y=null;for(q in a){var V=a[q];if(a.hasOwnProperty(q)&&V!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":T=V;default:i.hasOwnProperty(q)||Ze(e,t,q,null,i,V)}}for(var L in i){var q=i[L];if(V=a[L],i.hasOwnProperty(L)&&(q!=null||V!=null))switch(L){case"type":o=q;break;case"name":s=q;break;case"checked":N=q;break;case"defaultChecked":Y=q;break;case"value":m=q;break;case"defaultValue":g=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==V&&Ze(e,t,L,q,i,V)}}Ls(e,m,g,T,N,Y,o,s);return;case"select":q=m=g=L=null;for(o in a)if(T=a[o],a.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":q=T;default:i.hasOwnProperty(o)||Ze(e,t,o,null,i,T)}for(s in i)if(o=i[s],T=a[s],i.hasOwnProperty(s)&&(o!=null||T!=null))switch(s){case"value":L=o;break;case"defaultValue":g=o;break;case"multiple":m=o;default:o!==T&&Ze(e,t,s,o,i,T)}t=g,a=m,i=q,L!=null?xl(e,!!a,L,!1):!!i!=!!a&&(t!=null?xl(e,!!a,t,!0):xl(e,!!a,a?[]:"",!1));return;case"textarea":q=L=null;for(g in a)if(s=a[g],a.hasOwnProperty(g)&&s!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ze(e,t,g,null,i,s)}for(m in i)if(s=i[m],o=a[m],i.hasOwnProperty(m)&&(s!=null||o!=null))switch(m){case"value":L=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&Ze(e,t,m,s,i,o)}ad(e,L,q);return;case"option":for(var le in a)L=a[le],a.hasOwnProperty(le)&&L!=null&&!i.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:Ze(e,t,le,null,i,L));for(T in i)L=i[T],q=a[T],i.hasOwnProperty(T)&&L!==q&&(L!=null||q!=null)&&(T==="selected"?e.selected=L&&typeof L!="function"&&typeof L!="symbol":Ze(e,t,T,L,i,q));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)L=a[ye],a.hasOwnProperty(ye)&&L!=null&&!i.hasOwnProperty(ye)&&Ze(e,t,ye,null,i,L);for(N in i)if(L=i[N],q=a[N],i.hasOwnProperty(N)&&L!==q&&(L!=null||q!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:Ze(e,t,N,L,i,q)}return;default:if(Bs(t)){for(var Je in a)L=a[Je],a.hasOwnProperty(Je)&&L!==void 0&&!i.hasOwnProperty(Je)&&xc(e,t,Je,void 0,i,L);for(Y in i)L=i[Y],q=a[Y],!i.hasOwnProperty(Y)||L===q||L===void 0&&q===void 0||xc(e,t,Y,L,i,q);return}}for(var D in a)L=a[D],a.hasOwnProperty(D)&&L!=null&&!i.hasOwnProperty(D)&&Ze(e,t,D,null,i,L);for(V in i)L=i[V],q=a[V],!i.hasOwnProperty(V)||L===q||L==null&&q==null||Ze(e,t,V,L,i,q)}function uy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var s=a[i],o=s.transferSize,m=s.initiatorType,g=s.duration;if(o&&g&&uy(m)){for(m=0,g=s.responseEnd,i+=1;i<a.length;i++){var T=a[i],N=T.startTime;if(N>g)break;var Y=T.transferSize,V=T.initiatorType;Y&&uy(V)&&(T=T.responseEnd,m+=Y*(T<g?1:(g-N)/(T-N)))}if(--i,t+=8*(o+m)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ac=null,wc=null;function qu(e){return e.nodeType===9?e:e.ownerDocument}function sy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function oy(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Cc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dc=null;function ob(){var e=window.event;return e&&e.type==="popstate"?e===Dc?!1:(Dc=e,!0):(Dc=null,!1)}var cy=typeof setTimeout=="function"?setTimeout:void 0,cb=typeof clearTimeout=="function"?clearTimeout:void 0,fy=typeof Promise=="function"?Promise:void 0,fb=typeof queueMicrotask=="function"?queueMicrotask:typeof fy<"u"?function(e){return fy.resolve(null).then(e).catch(db)}:cy;function db(e){setTimeout(function(){throw e})}function Da(e){return e==="head"}function dy(e,t){var a=t,i=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(s),ai(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")tr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,tr(a);for(var o=a.firstChild;o;){var m=o.nextSibling,g=o.nodeName;o[at]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=m}}else a==="body"&&tr(e.ownerDocument.body);a=s}while(a);ai(t)}function hy(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Mc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Mc(a),lt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function hb(e,t,a,i){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[at])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function mb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=cn(e.nextSibling),e===null))return null;return e}function my(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function zc(e){return e.data==="$?"||e.data==="$~"}function _c(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Uc=null;function yy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return cn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function py(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function vy(e,t,a){switch(t=qu(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function tr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lt(e)}var fn=new Map,gy=new Set;function Qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var la=k.d;k.d={f:pb,r:vb,D:gb,C:bb,L:Sb,m:Eb,X:Rb,S:Tb,M:Ob};function pb(){var e=la.f(),t=zu();return e||t}function vb(e){var t=Le(e);t!==null&&t.tag===5&&t.type==="form"?jh(t):la.r(e)}var ei=typeof document>"u"?null:document;function by(e,t,a){var i=ei;if(i&&typeof t=="string"&&t){var s=nn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),gy.has(s)||(gy.add(s),e={rel:e,crossOrigin:a,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),Ct(t,"link",e),Ie(t),i.head.appendChild(t)))}}function gb(e){la.D(e),by("dns-prefetch",e,null)}function bb(e,t){la.C(e,t),by("preconnect",e,t)}function Sb(e,t,a){la.L(e,t,a);var i=ei;if(i&&e&&t){var s='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+nn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+nn(a.imageSizes)+'"]')):s+='[href="'+nn(e)+'"]';var o=s;switch(t){case"style":o=ti(e);break;case"script":o=ni(e)}fn.has(o)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fn.set(o,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(nr(o))||t==="script"&&i.querySelector(ar(o))||(t=i.createElement("link"),Ct(t,"link",e),Ie(t),i.head.appendChild(t)))}}function Eb(e,t){la.m(e,t);var a=ei;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+nn(i)+'"][href="'+nn(e)+'"]',o=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ni(e)}if(!fn.has(o)&&(e=b({rel:"modulepreload",href:e},t),fn.set(o,e),a.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ar(o)))return}i=a.createElement("link"),Ct(i,"link",e),Ie(i),a.head.appendChild(i)}}}function Tb(e,t,a){la.S(e,t,a);var i=ei;if(i&&e){var s=Lt(i).hoistableStyles,o=ti(e);t=t||"default";var m=s.get(o);if(!m){var g={loading:0,preload:null};if(m=i.querySelector(nr(o)))g.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fn.get(o))&&Nc(e,a);var T=m=i.createElement("link");Ie(T),Ct(T,"link",e),T._p=new Promise(function(N,Y){T.onload=N,T.onerror=Y}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Yu(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:g},s.set(o,m)}}}function Rb(e,t){la.X(e,t);var a=ei;if(a&&e){var i=Lt(a).hoistableScripts,s=ni(e),o=i.get(s);o||(o=a.querySelector(ar(s)),o||(e=b({src:e,async:!0},t),(t=fn.get(s))&&jc(e,t),o=a.createElement("script"),Ie(o),Ct(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function Ob(e,t){la.M(e,t);var a=ei;if(a&&e){var i=Lt(a).hoistableScripts,s=ni(e),o=i.get(s);o||(o=a.querySelector(ar(s)),o||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(s))&&jc(e,t),o=a.createElement("script"),Ie(o),Ct(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function Sy(e,t,a,i){var s=(s=ge.current)?Qu(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=ti(a.href),a=Lt(s).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=ti(a.href);var o=Lt(s).hoistableStyles,m=o.get(e);if(m||(s=s.ownerDocument||s,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=s.querySelector(nr(e)))&&!o._p&&(m.instance=o,m.state.loading=5),fn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fn.set(e,a),o||xb(s,e,a,m.state))),t&&i===null)throw Error(u(528,""));return m}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ni(a),a=Lt(s).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ti(e){return'href="'+nn(e)+'"'}function nr(e){return'link[rel="stylesheet"]['+e+"]"}function Ey(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function xb(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Ct(t,"link",a),Ie(t),e.head.appendChild(t))}function ni(e){return'[src="'+nn(e)+'"]'}function ar(e){return"script[async]"+e}function Ty(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+nn(a.href)+'"]');if(i)return t.instance=i,Ie(i),i;var s=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ie(i),Ct(i,"style",s),Yu(i,a.precedence,e),t.instance=i;case"stylesheet":s=ti(a.href);var o=e.querySelector(nr(s));if(o)return t.state.loading|=4,t.instance=o,Ie(o),o;i=Ey(a),(s=fn.get(s))&&Nc(i,s),o=(e.ownerDocument||e).createElement("link"),Ie(o);var m=o;return m._p=new Promise(function(g,T){m.onload=g,m.onerror=T}),Ct(o,"link",i),t.state.loading|=4,Yu(o,a.precedence,e),t.instance=o;case"script":return o=ni(a.src),(s=e.querySelector(ar(o)))?(t.instance=s,Ie(s),s):(i=a,(s=fn.get(o))&&(i=b({},a),jc(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ie(s),Ct(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Yu(i,a.precedence,e));return t.instance}function Yu(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,o=s,m=0;m<i.length;m++){var g=i[m];if(g.dataset.precedence===t)o=g;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Gu=null;function Ry(e,t,a){if(Gu===null){var i=new Map,s=Gu=new Map;s.set(a,i)}else s=Gu,i=s.get(a),i||(i=new Map,s.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var o=a[s];if(!(o[at]||o[ee]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var g=i.get(m);g?g.push(o):i.set(m,[o])}}return i}function Oy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Ab(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function xy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wb(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=ti(i.href),o=t.querySelector(nr(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,Ie(o);return}o=t.ownerDocument||t,i=Ey(i),(s=fn.get(s))&&Nc(i,s),o=o.createElement("link"),Ie(o);var m=o;m._p=new Promise(function(g,T){m.onload=g,m.onerror=T}),Ct(o,"link",i),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Xu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Lc=0;function Cb(e,t){return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Lc===0&&(Lc=62500*sb());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Lc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function Xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vu=null;function Ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vu=new Map,t.forEach(Db,e),Vu=null,Xu.call(e))}function Db(e,t){if(!(t.state.loading&4)){var a=Vu.get(e);if(a)var i=a.get(null);else{a=new Map,Vu.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var m=s[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),i=m)}i&&a.set(null,i)}s=t.instance,m=s.getAttribute("data-precedence"),o=a.get(m)||i,o===i&&a.set(null,s),a.set(m,s),this.count++,i=Xu.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var lr={$$typeof:F,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Mb(e,t,a,i,s,o,m,g,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ca(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ca(0),this.hiddenUpdates=ca(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Ay(e,t,a,i,s,o,m,g,T,N,Y,V){return e=new Mb(e,t,a,m,T,N,Y,V,g),t=1,o===!0&&(t|=24),o=Jt(3,null,null,t),e.current=o,o.stateNode=e,t=yo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:a,cache:t},bo(o),e}function wy(e){return e?(e=Ul,e):Ul}function Cy(e,t,a,i,s,o){s=wy(s),i.context===null?i.context=s:i.pendingContext=s,i=ga(t),i.payload={element:a},o=o===void 0?null:o,o!==null&&(i.callback=o),a=ba(e,i,t),a!==null&&(Gt(a,e,t),Li(a,e,t))}function Dy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Hc(e,t){Dy(e,t),(e=e.alternate)&&Dy(e,t)}function My(e){if(e.tag===13||e.tag===31){var t=tl(e,67108864);t!==null&&Gt(t,e,67108864),Hc(e,67108864)}}function zy(e){if(e.tag===13||e.tag===31){var t=It();t=H(t);var a=tl(e,t);a!==null&&Gt(a,e,t),Hc(e,t)}}var Fu=!0;function zb(e,t,a,i){var s=j.T;j.T=null;var o=k.p;try{k.p=2,Bc(e,t,a,i)}finally{k.p=o,j.T=s}}function _b(e,t,a,i){var s=j.T;j.T=null;var o=k.p;try{k.p=8,Bc(e,t,a,i)}finally{k.p=o,j.T=s}}function Bc(e,t,a,i){if(Fu){var s=qc(i);if(s===null)Oc(e,t,i,Zu,a),Uy(e,i);else if(Nb(s,e,t,a,i))i.stopPropagation();else if(Uy(e,i),t&4&&-1<Ub.indexOf(e)){for(;s!==null;){var o=Le(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=Qn(o.pendingLanes);if(m!==0){var g=o;for(g.pendingLanes|=2,g.entangledLanes|=2;m;){var T=1<<31-Mt(m);g.entanglements[1]|=T,m&=~T}Un(o),(Xe&6)===0&&(Du=ot()+500,Wi(0))}}break;case 31:case 13:g=tl(o,2),g!==null&&Gt(g,o,2),zu(),Hc(o,2)}if(o=qc(i),o===null&&Oc(e,t,i,Zu,a),o===s)break;s=o}s!==null&&i.stopPropagation()}else Oc(e,t,i,null,a)}}function qc(e){return e=Qs(e),Qc(e)}var Zu=null;function Qc(e){if(Zu=null,e=it(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zu=e,null}function _y(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Xa()){case vi:return 2;case Ol:return 8;case jt:case gn:return 32;case gi:return 268435456;default:return 32}default:return 32}}var Yc=!1,Ma=null,za=null,_a=null,ir=new Map,rr=new Map,Ua=[],Ub="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Uy(e,t){switch(e){case"focusin":case"focusout":Ma=null;break;case"dragenter":case"dragleave":za=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(t.pointerId)}}function ur(e,t,a,i,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Le(t),t!==null&&My(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Nb(e,t,a,i,s){switch(t){case"focusin":return Ma=ur(Ma,e,t,a,i,s),!0;case"dragenter":return za=ur(za,e,t,a,i,s),!0;case"mouseover":return _a=ur(_a,e,t,a,i,s),!0;case"pointerover":var o=s.pointerId;return ir.set(o,ur(ir.get(o)||null,e,t,a,i,s)),!0;case"gotpointercapture":return o=s.pointerId,rr.set(o,ur(rr.get(o)||null,e,t,a,i,s)),!0}return!1}function Ny(e){var t=it(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,ce(e.priority,function(){zy(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,ce(e.priority,function(){zy(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ju(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=qc(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);qs=i,a.target.dispatchEvent(i),qs=null}else return t=Le(a),t!==null&&My(t),e.blockedOn=a,!1;t.shift()}return!0}function jy(e,t,a){Ju(e)&&a.delete(t)}function jb(){Yc=!1,Ma!==null&&Ju(Ma)&&(Ma=null),za!==null&&Ju(za)&&(za=null),_a!==null&&Ju(_a)&&(_a=null),ir.forEach(jy),rr.forEach(jy)}function ku(e,t){e.blockedOn===t&&(e.blockedOn=null,Yc||(Yc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,jb)))}var $u=null;function Ly(e){$u!==e&&($u=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){$u===e&&($u=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(Qc(i||a)===null)continue;break}var o=Le(a);o!==null&&(e.splice(t,3),t-=3,qo(o,{pending:!0,data:s,method:a.method,action:i},i,s))}}))}function ai(e){function t(T){return ku(T,e)}Ma!==null&&ku(Ma,e),za!==null&&ku(za,e),_a!==null&&ku(_a,e),ir.forEach(t),rr.forEach(t);for(var a=0;a<Ua.length;a++){var i=Ua[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ua.length&&(a=Ua[0],a.blockedOn===null);)Ny(a),a.blockedOn===null&&Ua.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var s=a[i],o=a[i+1],m=s[ae]||null;if(typeof o=="function")m||Ly(a);else if(m){var g=null;if(o&&o.hasAttribute("formAction")){if(s=o,m=o[ae]||null)g=m.formAction;else if(Qc(s)!==null)continue}else g=m.action;typeof g=="function"?a[i+1]=g:(a.splice(i,3),i-=3),Ly(a)}}}function Hy(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return s=m})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Gc(e){this._internalRoot=e}Pu.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,i=It();Cy(a,i,e,t,null,null)},Pu.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cy(e.current,2,null,e,null,null),zu(),t[se]=null}};function Pu(e){this._internalRoot=e}Pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=W();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ua.length&&t!==0&&t<Ua[a].priority;a++);Ua.splice(a,0,e),a===0&&Ny(e)}};var By=l.version;if(By!=="19.2.3")throw Error(u(527,By,"19.2.3"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=y(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Lb={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wu.isDisabled&&Wu.supportsFiber)try{Va=Wu.inject(Lb),nt=Wu}catch{}}return or.createRoot=function(e,t){if(!c(e))throw Error(u(299));var a=!1,i="",s=Kh,o=Fh,m=Zh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Ay(e,1,!1,null,null,a,i,null,s,o,m,Hy),e[se]=t.current,Rc(e),new Gc(t)},or.hydrateRoot=function(e,t,a){if(!c(e))throw Error(u(299));var i=!1,s="",o=Kh,m=Fh,g=Zh,T=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(T=a.formState)),t=Ay(e,1,!0,t,a??null,i,s,T,o,m,g,Hy),t.context=wy(null),a=t.current,i=It(),i=H(i),s=ga(i),s.callback=null,ba(a,s,i),a=i,t.current.lanes=a,fa(t,a),Un(t),e[se]=t.current,Rc(e),new Pu(t)},or.version="19.2.3",or}var ip;function US(){if(ip)return Kc.exports;ip=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Kc.exports=_S(),Kc.exports}var NS=US();let jS={data:""},LS=n=>{if(typeof window=="object"){let l=(n?n.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return l.nonce=window.__nonce__,l.parentNode||(n||document.head).appendChild(l),l.firstChild}return n||jS},HS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,BS=/\/\*[^]*?\*\/| +/g,rp=/\n+/g,ja=(n,l)=>{let r="",u="",c="";for(let f in n){let d=n[f];f[0]=="@"?f[1]=="i"?r=f+" "+d+";":u+=f[1]=="f"?ja(d,f):f+"{"+ja(d,f[1]=="k"?"":l)+"}":typeof d=="object"?u+=ja(d,l?l.replace(/([^,])+/g,h=>f.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,h):h?h+" "+p:p)):f):d!=null&&(f=/^--/.test(f)?f:f.replace(/[A-Z]/g,"-$&").toLowerCase(),c+=ja.p?ja.p(f,d):f+":"+d+";")}return r+(l&&c?l+"{"+c+"}":c)+u},ia={},yv=n=>{if(typeof n=="object"){let l="";for(let r in n)l+=r+yv(n[r]);return l}return n},qS=(n,l,r,u,c)=>{let f=yv(n),d=ia[f]||(ia[f]=(p=>{let y=0,v=11;for(;y<p.length;)v=101*v+p.charCodeAt(y++)>>>0;return"go"+v})(f));if(!ia[d]){let p=f!==n?n:(y=>{let v,b,S=[{}];for(;v=HS.exec(y.replace(BS,""));)v[4]?S.shift():v[3]?(b=v[3].replace(rp," ").trim(),S.unshift(S[0][b]=S[0][b]||{})):S[0][v[1]]=v[2].replace(rp," ").trim();return S[0]})(n);ia[d]=ja(c?{["@keyframes "+d]:p}:p,r?"":"."+d)}let h=r&&ia.g?ia.g:null;return r&&(ia.g=ia[d]),((p,y,v,b)=>{b?y.data=y.data.replace(b,p):y.data.indexOf(p)===-1&&(y.data=v?p+y.data:y.data+p)})(ia[d],l,u,h),d},QS=(n,l,r)=>n.reduce((u,c,f)=>{let d=l[f];if(d&&d.call){let h=d(r),p=h&&h.props&&h.props.className||/^go/.test(h)&&h;d=p?"."+p:h&&typeof h=="object"?h.props?"":ja(h,""):h===!1?"":h}return u+c+(d??"")},"");function bs(n){let l=this||{},r=n.call?n(l.p):n;return qS(r.unshift?r.raw?QS(r,[].slice.call(arguments,1),l.p):r.reduce((u,c)=>Object.assign(u,c&&c.call?c(l.p):c),{}):r,LS(l.target),l.g,l.o,l.k)}let pv,gf,bf;bs.bind({g:1});let sa=bs.bind({k:1});function YS(n,l,r,u){ja.p=l,pv=n,gf=r,bf=u}function Qa(n,l){let r=this||{};return function(){let u=arguments;function c(f,d){let h=Object.assign({},f),p=h.className||c.className;r.p=Object.assign({theme:gf&&gf()},h),r.o=/ *go\d+/.test(p),h.className=bs.apply(r,u)+(p?" "+p:"");let y=n;return n[0]&&(y=h.as||n,delete h.as),bf&&y[0]&&bf(h),pv(y,h)}return c}}var GS=n=>typeof n=="function",ys=(n,l)=>GS(n)?n(l):n,XS=(()=>{let n=0;return()=>(++n).toString()})(),vv=(()=>{let n;return()=>{if(n===void 0&&typeof window<"u"){let l=matchMedia("(prefers-reduced-motion: reduce)");n=!l||l.matches}return n}})(),VS=20,Hf="default",gv=(n,l)=>{let{toastLimit:r}=n.settings;switch(l.type){case 0:return{...n,toasts:[l.toast,...n.toasts].slice(0,r)};case 1:return{...n,toasts:n.toasts.map(d=>d.id===l.toast.id?{...d,...l.toast}:d)};case 2:let{toast:u}=l;return gv(n,{type:n.toasts.find(d=>d.id===u.id)?1:0,toast:u});case 3:let{toastId:c}=l;return{...n,toasts:n.toasts.map(d=>d.id===c||c===void 0?{...d,dismissed:!0,visible:!1}:d)};case 4:return l.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(d=>d.id!==l.toastId)};case 5:return{...n,pausedAt:l.time};case 6:let f=l.time-(n.pausedAt||0);return{...n,pausedAt:void 0,toasts:n.toasts.map(d=>({...d,pauseDuration:d.pauseDuration+f}))}}},rs=[],bv={toasts:[],pausedAt:void 0,settings:{toastLimit:VS}},jn={},Sv=(n,l=Hf)=>{jn[l]=gv(jn[l]||bv,n),rs.forEach(([r,u])=>{r===l&&u(jn[l])})},Ev=n=>Object.keys(jn).forEach(l=>Sv(n,l)),KS=n=>Object.keys(jn).find(l=>jn[l].toasts.some(r=>r.id===n)),Ss=(n=Hf)=>l=>{Sv(l,n)},FS={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ZS=(n={},l=Hf)=>{let[r,u]=C.useState(jn[l]||bv),c=C.useRef(jn[l]);C.useEffect(()=>(c.current!==jn[l]&&u(jn[l]),rs.push([l,u]),()=>{let d=rs.findIndex(([h])=>h===l);d>-1&&rs.splice(d,1)}),[l]);let f=r.toasts.map(d=>{var h,p,y;return{...n,...n[d.type],...d,removeDelay:d.removeDelay||((h=n[d.type])==null?void 0:h.removeDelay)||n?.removeDelay,duration:d.duration||((p=n[d.type])==null?void 0:p.duration)||n?.duration||FS[d.type],style:{...n.style,...(y=n[d.type])==null?void 0:y.style,...d.style}}});return{...r,toasts:f}},JS=(n,l="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:l,ariaProps:{role:"status","aria-live":"polite"},message:n,pauseDuration:0,...r,id:r?.id||XS()}),wr=n=>(l,r)=>{let u=JS(l,n,r);return Ss(u.toasterId||KS(u.id))({type:2,toast:u}),u.id},Et=(n,l)=>wr("blank")(n,l);Et.error=wr("error");Et.success=wr("success");Et.loading=wr("loading");Et.custom=wr("custom");Et.dismiss=(n,l)=>{let r={type:3,toastId:n};l?Ss(l)(r):Ev(r)};Et.dismissAll=n=>Et.dismiss(void 0,n);Et.remove=(n,l)=>{let r={type:4,toastId:n};l?Ss(l)(r):Ev(r)};Et.removeAll=n=>Et.remove(void 0,n);Et.promise=(n,l,r)=>{let u=Et.loading(l.loading,{...r,...r?.loading});return typeof n=="function"&&(n=n()),n.then(c=>{let f=l.success?ys(l.success,c):void 0;return f?Et.success(f,{id:u,...r,...r?.success}):Et.dismiss(u),c}).catch(c=>{let f=l.error?ys(l.error,c):void 0;f?Et.error(f,{id:u,...r,...r?.error}):Et.dismiss(u)}),n};var kS=1e3,$S=(n,l="default")=>{let{toasts:r,pausedAt:u}=ZS(n,l),c=C.useRef(new Map).current,f=C.useCallback((b,S=kS)=>{if(c.has(b))return;let A=setTimeout(()=>{c.delete(b),d({type:4,toastId:b})},S);c.set(b,A)},[]);C.useEffect(()=>{if(u)return;let b=Date.now(),S=r.map(A=>{if(A.duration===1/0)return;let O=(A.duration||0)+A.pauseDuration-(b-A.createdAt);if(O<0){A.visible&&Et.dismiss(A.id);return}return setTimeout(()=>Et.dismiss(A.id,l),O)});return()=>{S.forEach(A=>A&&clearTimeout(A))}},[r,u,l]);let d=C.useCallback(Ss(l),[l]),h=C.useCallback(()=>{d({type:5,time:Date.now()})},[d]),p=C.useCallback((b,S)=>{d({type:1,toast:{id:b,height:S}})},[d]),y=C.useCallback(()=>{u&&d({type:6,time:Date.now()})},[u,d]),v=C.useCallback((b,S)=>{let{reverseOrder:A=!1,gutter:O=8,defaultPosition:z}=S||{},_=r.filter(F=>(F.position||z)===(b.position||z)&&F.height),K=_.findIndex(F=>F.id===b.id),X=_.filter((F,ie)=>ie<K&&F.visible).length;return _.filter(F=>F.visible).slice(...A?[X+1]:[0,X]).reduce((F,ie)=>F+(ie.height||0)+O,0)},[r]);return C.useEffect(()=>{r.forEach(b=>{if(b.dismissed)f(b.id,b.removeDelay);else{let S=c.get(b.id);S&&(clearTimeout(S),c.delete(b.id))}})},[r,f]),{toasts:r,handlers:{updateHeight:p,startPause:h,endPause:y,calculateOffset:v}}},PS=sa`
|
|
10
|
+
from {
|
|
11
|
+
transform: scale(0) rotate(45deg);
|
|
12
|
+
opacity: 0;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
transform: scale(1) rotate(45deg);
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}`,WS=sa`
|
|
18
|
+
from {
|
|
19
|
+
transform: scale(0);
|
|
20
|
+
opacity: 0;
|
|
21
|
+
}
|
|
22
|
+
to {
|
|
23
|
+
transform: scale(1);
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}`,IS=sa`
|
|
26
|
+
from {
|
|
27
|
+
transform: scale(0) rotate(90deg);
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
to {
|
|
31
|
+
transform: scale(1) rotate(90deg);
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}`,e1=Qa("div")`
|
|
34
|
+
width: 20px;
|
|
35
|
+
opacity: 0;
|
|
36
|
+
height: 20px;
|
|
37
|
+
border-radius: 10px;
|
|
38
|
+
background: ${n=>n.primary||"#ff4b4b"};
|
|
39
|
+
position: relative;
|
|
40
|
+
transform: rotate(45deg);
|
|
41
|
+
|
|
42
|
+
animation: ${PS} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
43
|
+
forwards;
|
|
44
|
+
animation-delay: 100ms;
|
|
45
|
+
|
|
46
|
+
&:after,
|
|
47
|
+
&:before {
|
|
48
|
+
content: '';
|
|
49
|
+
animation: ${WS} 0.15s ease-out forwards;
|
|
50
|
+
animation-delay: 150ms;
|
|
51
|
+
position: absolute;
|
|
52
|
+
border-radius: 3px;
|
|
53
|
+
opacity: 0;
|
|
54
|
+
background: ${n=>n.secondary||"#fff"};
|
|
55
|
+
bottom: 9px;
|
|
56
|
+
left: 4px;
|
|
57
|
+
height: 2px;
|
|
58
|
+
width: 12px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:before {
|
|
62
|
+
animation: ${IS} 0.15s ease-out forwards;
|
|
63
|
+
animation-delay: 180ms;
|
|
64
|
+
transform: rotate(90deg);
|
|
65
|
+
}
|
|
66
|
+
`,t1=sa`
|
|
67
|
+
from {
|
|
68
|
+
transform: rotate(0deg);
|
|
69
|
+
}
|
|
70
|
+
to {
|
|
71
|
+
transform: rotate(360deg);
|
|
72
|
+
}
|
|
73
|
+
`,n1=Qa("div")`
|
|
74
|
+
width: 12px;
|
|
75
|
+
height: 12px;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
border: 2px solid;
|
|
78
|
+
border-radius: 100%;
|
|
79
|
+
border-color: ${n=>n.secondary||"#e0e0e0"};
|
|
80
|
+
border-right-color: ${n=>n.primary||"#616161"};
|
|
81
|
+
animation: ${t1} 1s linear infinite;
|
|
82
|
+
`,a1=sa`
|
|
83
|
+
from {
|
|
84
|
+
transform: scale(0) rotate(45deg);
|
|
85
|
+
opacity: 0;
|
|
86
|
+
}
|
|
87
|
+
to {
|
|
88
|
+
transform: scale(1) rotate(45deg);
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}`,l1=sa`
|
|
91
|
+
0% {
|
|
92
|
+
height: 0;
|
|
93
|
+
width: 0;
|
|
94
|
+
opacity: 0;
|
|
95
|
+
}
|
|
96
|
+
40% {
|
|
97
|
+
height: 0;
|
|
98
|
+
width: 6px;
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
100% {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
height: 10px;
|
|
104
|
+
}`,i1=Qa("div")`
|
|
105
|
+
width: 20px;
|
|
106
|
+
opacity: 0;
|
|
107
|
+
height: 20px;
|
|
108
|
+
border-radius: 10px;
|
|
109
|
+
background: ${n=>n.primary||"#61d345"};
|
|
110
|
+
position: relative;
|
|
111
|
+
transform: rotate(45deg);
|
|
112
|
+
|
|
113
|
+
animation: ${a1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
114
|
+
forwards;
|
|
115
|
+
animation-delay: 100ms;
|
|
116
|
+
&:after {
|
|
117
|
+
content: '';
|
|
118
|
+
box-sizing: border-box;
|
|
119
|
+
animation: ${l1} 0.2s ease-out forwards;
|
|
120
|
+
opacity: 0;
|
|
121
|
+
animation-delay: 200ms;
|
|
122
|
+
position: absolute;
|
|
123
|
+
border-right: 2px solid;
|
|
124
|
+
border-bottom: 2px solid;
|
|
125
|
+
border-color: ${n=>n.secondary||"#fff"};
|
|
126
|
+
bottom: 6px;
|
|
127
|
+
left: 6px;
|
|
128
|
+
height: 10px;
|
|
129
|
+
width: 6px;
|
|
130
|
+
}
|
|
131
|
+
`,r1=Qa("div")`
|
|
132
|
+
position: absolute;
|
|
133
|
+
`,u1=Qa("div")`
|
|
134
|
+
position: relative;
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
align-items: center;
|
|
138
|
+
min-width: 20px;
|
|
139
|
+
min-height: 20px;
|
|
140
|
+
`,s1=sa`
|
|
141
|
+
from {
|
|
142
|
+
transform: scale(0.6);
|
|
143
|
+
opacity: 0.4;
|
|
144
|
+
}
|
|
145
|
+
to {
|
|
146
|
+
transform: scale(1);
|
|
147
|
+
opacity: 1;
|
|
148
|
+
}`,o1=Qa("div")`
|
|
149
|
+
position: relative;
|
|
150
|
+
transform: scale(0.6);
|
|
151
|
+
opacity: 0.4;
|
|
152
|
+
min-width: 20px;
|
|
153
|
+
animation: ${s1} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
154
|
+
forwards;
|
|
155
|
+
`,c1=({toast:n})=>{let{icon:l,type:r,iconTheme:u}=n;return l!==void 0?typeof l=="string"?C.createElement(o1,null,l):l:r==="blank"?null:C.createElement(u1,null,C.createElement(n1,{...u}),r!=="loading"&&C.createElement(r1,null,r==="error"?C.createElement(e1,{...u}):C.createElement(i1,{...u})))},f1=n=>`
|
|
156
|
+
0% {transform: translate3d(0,${n*-200}%,0) scale(.6); opacity:.5;}
|
|
157
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
158
|
+
`,d1=n=>`
|
|
159
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
160
|
+
100% {transform: translate3d(0,${n*-150}%,-1px) scale(.6); opacity:0;}
|
|
161
|
+
`,h1="0%{opacity:0;} 100%{opacity:1;}",m1="0%{opacity:1;} 100%{opacity:0;}",y1=Qa("div")`
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
background: #fff;
|
|
165
|
+
color: #363636;
|
|
166
|
+
line-height: 1.3;
|
|
167
|
+
will-change: transform;
|
|
168
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
169
|
+
max-width: 350px;
|
|
170
|
+
pointer-events: auto;
|
|
171
|
+
padding: 8px 10px;
|
|
172
|
+
border-radius: 8px;
|
|
173
|
+
`,p1=Qa("div")`
|
|
174
|
+
display: flex;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
margin: 4px 10px;
|
|
177
|
+
color: inherit;
|
|
178
|
+
flex: 1 1 auto;
|
|
179
|
+
white-space: pre-line;
|
|
180
|
+
`,v1=(n,l)=>{let r=n.includes("top")?1:-1,[u,c]=vv()?[h1,m1]:[f1(r),d1(r)];return{animation:l?`${sa(u)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${sa(c)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},g1=C.memo(({toast:n,position:l,style:r,children:u})=>{let c=n.height?v1(n.position||l||"top-center",n.visible):{opacity:0},f=C.createElement(c1,{toast:n}),d=C.createElement(p1,{...n.ariaProps},ys(n.message,n));return C.createElement(y1,{className:n.className,style:{...c,...r,...n.style}},typeof u=="function"?u({icon:f,message:d}):C.createElement(C.Fragment,null,f,d))});YS(C.createElement);var b1=({id:n,className:l,style:r,onHeightUpdate:u,children:c})=>{let f=C.useCallback(d=>{if(d){let h=()=>{let p=d.getBoundingClientRect().height;u(n,p)};h(),new MutationObserver(h).observe(d,{subtree:!0,childList:!0,characterData:!0})}},[n,u]);return C.createElement("div",{ref:f,className:l,style:r},c)},S1=(n,l)=>{let r=n.includes("top"),u=r?{top:0}:{bottom:0},c=n.includes("center")?{justifyContent:"center"}:n.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:vv()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${l*(r?1:-1)}px)`,...u,...c}},E1=bs`
|
|
181
|
+
z-index: 9999;
|
|
182
|
+
> * {
|
|
183
|
+
pointer-events: auto;
|
|
184
|
+
}
|
|
185
|
+
`,es=16,T1=({reverseOrder:n,position:l="top-center",toastOptions:r,gutter:u,children:c,toasterId:f,containerStyle:d,containerClassName:h})=>{let{toasts:p,handlers:y}=$S(r,f);return C.createElement("div",{"data-rht-toaster":f||"",style:{position:"fixed",zIndex:9999,top:es,left:es,right:es,bottom:es,pointerEvents:"none",...d},className:h,onMouseEnter:y.startPause,onMouseLeave:y.endPause},p.map(v=>{let b=v.position||l,S=y.calculateOffset(v,{reverseOrder:n,gutter:u,defaultPosition:l}),A=S1(b,S);return C.createElement(b1,{id:v.id,key:v.id,onHeightUpdate:y.updateHeight,className:v.visible?E1:"",style:A},v.type==="custom"?ys(v.message,v):c?c(v):C.createElement(g1,{toast:v,position:b}))}))},li=Et;var Tv=n=>{throw TypeError(n)},R1=(n,l,r)=>l.has(n)||Tv("Cannot "+r),kc=(n,l,r)=>(R1(n,l,"read from private field"),r?r.call(n):l.get(n)),O1=(n,l,r)=>l.has(n)?Tv("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,r),up="popstate";function x1(n={}){function l(u,c){let{pathname:f,search:d,hash:h}=u.location;return Rr("",{pathname:f,search:d,hash:h},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(u,c){return typeof c=="string"?c:Hn(c)}return w1(l,r,null,n)}function Ce(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function ht(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function A1(){return Math.random().toString(36).substring(2,10)}function sp(n,l){return{usr:n.state,key:n.key,idx:l}}function Rr(n,l,r=null,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Ya(l):l,state:r,key:l&&l.key||u||A1()}}function Hn({pathname:n="/",search:l="",hash:r=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Ya(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let u=n.indexOf("?");u>=0&&(l.search=n.substring(u),n=n.substring(0,u)),n&&(l.pathname=n)}return l}function w1(n,l,r,u={}){let{window:c=document.defaultView,v5Compat:f=!1}=u,d=c.history,h="POP",p=null,y=v();y==null&&(y=0,d.replaceState({...d.state,idx:y},""));function v(){return(d.state||{idx:null}).idx}function b(){h="POP";let _=v(),K=_==null?null:_-y;y=_,p&&p({action:h,location:z.location,delta:K})}function S(_,K){h="PUSH";let X=Rr(z.location,_,K);y=v()+1;let F=sp(X,y),ie=z.createHref(X);try{d.pushState(F,"",ie)}catch(ue){if(ue instanceof DOMException&&ue.name==="DataCloneError")throw ue;c.location.assign(ie)}f&&p&&p({action:h,location:z.location,delta:1})}function A(_,K){h="REPLACE";let X=Rr(z.location,_,K);y=v();let F=sp(X,y),ie=z.createHref(X);d.replaceState(F,"",ie),f&&p&&p({action:h,location:z.location,delta:0})}function O(_){return Rv(_)}let z={get action(){return h},get location(){return n(c,d)},listen(_){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(up,b),p=_,()=>{c.removeEventListener(up,b),p=null}},createHref(_){return l(c,_)},createURL:O,encodeLocation(_){let K=O(_);return{pathname:K.pathname,search:K.search,hash:K.hash}},push:S,replace:A,go(_){return d.go(_)}};return z}function Rv(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ce(r,"No window.location.(origin|href) available to create URL");let u=typeof n=="string"?n:Hn(n);return u=u.replace(/ $/,"%20"),!l&&u.startsWith("//")&&(u=r+u),new URL(u,r)}var vr,op=class{constructor(n){if(O1(this,vr,new Map),n)for(let[l,r]of n)this.set(l,r)}get(n){if(kc(this,vr).has(n))return kc(this,vr).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,l){kc(this,vr).set(n,l)}};vr=new WeakMap;var C1=new Set(["lazy","caseSensitive","path","id","index","children"]);function D1(n){return C1.has(n)}var M1=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function z1(n){return M1.has(n)}function _1(n){return n.index===!0}function Or(n,l,r=[],u={},c=!1){return n.map((f,d)=>{let h=[...r,String(d)],p=typeof f.id=="string"?f.id:h.join("-");if(Ce(f.index!==!0||!f.children,"Cannot specify children on an index route"),Ce(c||!u[p],`Found a route id collision on id "${p}". Route id's must be globally unique within Data Router usages`),_1(f)){let y={...f,id:p};return u[p]=cp(y,l(y)),y}else{let y={...f,id:p,children:void 0};return u[p]=cp(y,l(y)),f.children&&(y.children=Or(f.children,l,h,u,c)),y}})}function cp(n,l){return Object.assign(n,{...l,...typeof l.lazy=="object"&&l.lazy!=null?{lazy:{...n.lazy,...l.lazy}}:{}})}function La(n,l,r="/"){return gr(n,l,r,!1)}function gr(n,l,r,u){let c=typeof l=="string"?Ya(l):l,f=yn(c.pathname||"/",r);if(f==null)return null;let d=Ov(n);N1(d);let h=null;for(let p=0;h==null&&p<d.length;++p){let y=K1(f);h=X1(d[p],y,u)}return h}function U1(n,l){let{route:r,pathname:u,params:c}=n;return{id:r.id,pathname:u,params:c,data:l[r.id],loaderData:l[r.id],handle:r.handle}}function Ov(n,l=[],r=[],u="",c=!1){let f=(d,h,p=c,y)=>{let v={relativePath:y===void 0?d.path||"":y,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(u)&&p)return;Ce(v.relativePath.startsWith(u),`Absolute route path "${v.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(u.length)}let b=Ln([u,v.relativePath]),S=r.concat(v);d.children&&d.children.length>0&&(Ce(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Ov(d.children,l,S,b,p)),!(d.path==null&&!d.index)&&l.push({path:b,score:Y1(b,d.index),routesMeta:S})};return n.forEach((d,h)=>{if(d.path===""||!d.path?.includes("?"))f(d,h);else for(let p of xv(d.path))f(d,h,!0,p)}),l}function xv(n){let l=n.split("/");if(l.length===0)return[];let[r,...u]=l,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(u.length===0)return c?[f,""]:[f];let d=xv(u.join("/")),h=[];return h.push(...d.map(p=>p===""?f:[f,p].join("/"))),c&&h.push(...d),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function N1(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:G1(l.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var j1=/^:[\w-]+$/,L1=3,H1=2,B1=1,q1=10,Q1=-2,fp=n=>n==="*";function Y1(n,l){let r=n.split("/"),u=r.length;return r.some(fp)&&(u+=Q1),l&&(u+=H1),r.filter(c=>!fp(c)).reduce((c,f)=>c+(j1.test(f)?L1:f===""?B1:q1),u)}function G1(n,l){return n.length===l.length&&n.slice(0,-1).every((u,c)=>u===l[c])?n[n.length-1]-l[l.length-1]:0}function X1(n,l,r=!1){let{routesMeta:u}=n,c={},f="/",d=[];for(let h=0;h<u.length;++h){let p=u[h],y=h===u.length-1,v=f==="/"?l:l.slice(f.length)||"/",b=ps({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},v),S=p.route;if(!b&&y&&r&&!u[u.length-1].route.index&&(b=ps({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!b)return null;Object.assign(c,b.params),d.push({params:c,pathname:Ln([f,b.pathname]),pathnameBase:J1(Ln([f,b.pathnameBase])),route:S}),b.pathnameBase!=="/"&&(f=Ln([f,b.pathnameBase]))}return d}function ps(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,u]=V1(n.path,n.caseSensitive,n.end),c=l.match(r);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:u.reduce((y,{paramName:v,isOptional:b},S)=>{if(v==="*"){let O=h[S]||"";d=f.slice(0,f.length-O.length).replace(/(.)\/+$/,"$1")}const A=h[S];return b&&!A?y[v]=void 0:y[v]=(A||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:d,pattern:n}}function V1(n,l=!1,r=!0){ht(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let u=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,p)=>(u.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(u.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),u]}function K1(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return ht(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function yn(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,u=n.charAt(r);return u&&u!=="/"?null:n.slice(r)||"/"}function F1({basename:n,pathname:l}){return l==="/"?n:Ln([n,l])}var Av=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Es=n=>Av.test(n);function Z1(n,l="/"){let{pathname:r,search:u="",hash:c=""}=typeof n=="string"?Ya(n):n,f;if(r)if(Es(r))f=r;else{if(r.includes("//")){let d=r;r=r.replace(/\/\/+/g,"/"),ht(!1,`Pathnames cannot have embedded double slashes - normalizing ${d} -> ${r}`)}r.startsWith("/")?f=dp(r.substring(1),"/"):f=dp(r,l)}else f=l;return{pathname:f,search:k1(u),hash:$1(c)}}function dp(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function $c(n,l,r,u){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wv(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function Bf(n){let l=wv(n);return l.map((r,u)=>u===l.length-1?r.pathname:r.pathnameBase)}function qf(n,l,r,u=!1){let c;typeof n=="string"?c=Ya(n):(c={...n},Ce(!c.pathname||!c.pathname.includes("?"),$c("?","pathname","search",c)),Ce(!c.pathname||!c.pathname.includes("#"),$c("#","pathname","hash",c)),Ce(!c.search||!c.search.includes("#"),$c("#","search","hash",c)));let f=n===""||c.pathname==="",d=f?"/":c.pathname,h;if(d==null)h=r;else{let b=l.length-1;if(!u&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),b-=1;c.pathname=S.join("/")}h=b>=0?l[b]:"/"}let p=Z1(c,h),y=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(y||v)&&(p.pathname+="/"),p}var Ln=n=>n.join("/").replace(/\/\/+/g,"/"),J1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),k1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,$1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Cr=class{constructor(n,l,r,u=!1){this.status=n,this.statusText=l||"",this.internal=u,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function xr(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Dr(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Cv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dv(n,l){let r=n;if(typeof r!="string"||!Av.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,c=!1;if(Cv)try{let f=new URL(window.location.href),d=r.startsWith("//")?new URL(f.protocol+r):new URL(r),h=yn(d.pathname,l);d.origin===f.origin&&h!=null?r=h+d.search+d.hash:c=!0}catch{ht(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:c,to:r}}var Ba=Symbol("Uninstrumented");function P1(n,l){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(c=>c({id:l.id,index:l.index,path:l.path,instrument(f){let d=Object.keys(r);for(let h of d)f[h]&&r[h].push(f[h])}}));let u={};if(typeof l.lazy=="function"&&r.lazy.length>0){let c=ui(r.lazy,l.lazy,()=>{});c&&(u.lazy=c)}if(typeof l.lazy=="object"){let c=l.lazy;["middleware","loader","action"].forEach(f=>{let d=c[f],h=r[`lazy.${f}`];if(typeof d=="function"&&h.length>0){let p=ui(h,d,()=>{});p&&(u.lazy=Object.assign(u.lazy||{},{[f]:p}))}})}return["loader","action"].forEach(c=>{let f=l[c];if(typeof f=="function"&&r[c].length>0){let d=f[Ba]??f,h=ui(r[c],d,(...p)=>hp(p[0]));h&&(c==="loader"&&d.hydrate===!0&&(h.hydrate=!0),h[Ba]=d,u[c]=h)}}),l.middleware&&l.middleware.length>0&&r.middleware.length>0&&(u.middleware=l.middleware.map(c=>{let f=c[Ba]??c,d=ui(r.middleware,f,(...h)=>hp(h[0]));return d?(d[Ba]=f,d):c})),u}function W1(n,l){let r={navigate:[],fetch:[]};if(l.forEach(u=>u({instrument(c){let f=Object.keys(c);for(let d of f)c[d]&&r[d].push(c[d])}})),r.navigate.length>0){let u=n.navigate[Ba]??n.navigate,c=ui(r.navigate,u,(...f)=>{let[d,h]=f;return{to:typeof d=="number"||typeof d=="string"?d:d?Hn(d):".",...mp(n,h??{})}});c&&(c[Ba]=u,n.navigate=c)}if(r.fetch.length>0){let u=n.fetch[Ba]??n.fetch,c=ui(r.fetch,u,(...f)=>{let[d,,h,p]=f;return{href:h??".",fetcherKey:d,...mp(n,p??{})}});c&&(c[Ba]=u,n.fetch=c)}return n}function ui(n,l,r){return n.length===0?null:async(...u)=>{let c=await Mv(n,r(...u),()=>l(...u),n.length-1);if(c.type==="error")throw c.value;return c.value}}async function Mv(n,l,r,u){let c=n[u],f;if(c){let d,h=async()=>(d?console.error("You cannot call instrumented handlers more than once"):d=Mv(n,l,r,u-1),f=await d,Ce(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(h,l)}catch(p){console.error("An instrumentation function threw an error:",p)}d||await h(),await d}else try{f={type:"success",value:await r()}}catch(d){f={type:"error",value:d}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function hp(n){let{request:l,context:r,params:u,unstable_pattern:c}=n;return{request:I1(l),params:{...u},unstable_pattern:c,context:eE(r)}}function mp(n,l){return{currentUrl:Hn(n.state.location),..."formMethod"in l?{formMethod:l.formMethod}:{},..."formEncType"in l?{formEncType:l.formEncType}:{},..."formData"in l?{formData:l.formData}:{},..."body"in l?{body:l.body}:{}}}function I1(n){return{method:n.method,url:n.url,headers:{get:(...l)=>n.headers.get(...l)}}}function eE(n){if(nE(n)){let l={...n};return Object.freeze(l),l}else return{get:l=>n.get(l)}}var tE=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nE(n){if(n===null||typeof n!="object")return!1;const l=Object.getPrototypeOf(n);return l===Object.prototype||l===null||Object.getOwnPropertyNames(l).sort().join("\0")===tE}var zv=["POST","PUT","PATCH","DELETE"],aE=new Set(zv),lE=["GET",...zv],iE=new Set(lE),_v=new Set([301,302,303,307,308]),rE=new Set([307,308]),Pc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uE={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},sE=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Uv="remix-router-transitions",Nv=Symbol("ResetLoaderData");function oE(n){const l=n.window?n.window:typeof window<"u"?window:void 0,r=typeof l<"u"&&typeof l.document<"u"&&typeof l.document.createElement<"u";Ce(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let u=n.hydrationRouteProperties||[],c=n.mapRouteProperties||sE,f=c;if(n.unstable_instrumentations){let E=n.unstable_instrumentations;f=M=>({...c(M),...P1(E.map(H=>H.route).filter(Boolean),M)})}let d={},h=Or(n.routes,f,void 0,d),p,y=n.basename||"/";y.startsWith("/")||(y=`/${y}`);let v=n.dataStrategy||mE,b={...n.future},S=null,A=new Set,O=null,z=null,_=null,K=n.hydrationData!=null,X=La(h,n.history.location,y),F=!1,ie=null,ue;if(X==null&&!n.patchRoutesOnNavigation){let E=hn(404,{pathname:n.history.location.pathname}),{matches:M,route:H}=ts(h);ue=!0,X=M,ie={[H.id]:E}}else if(X&&!n.hydrationData&&Ja(X,h,n.history.location.pathname).active&&(X=null),X)if(X.some(E=>E.route.lazy))ue=!1;else if(!X.some(E=>Qf(E.route)))ue=!0;else{let E=n.hydrationData?n.hydrationData.loaderData:null,M=n.hydrationData?n.hydrationData.errors:null;if(M){let H=X.findIndex(Z=>M[Z.route.id]!==void 0);ue=X.slice(0,H+1).every(Z=>!Ef(Z.route,E,M))}else ue=X.every(H=>!Ef(H.route,E,M))}else{ue=!1,X=[];let E=Ja(null,h,n.history.location.pathname);E.active&&E.matches&&(F=!0,X=E.matches)}let ve,w={historyAction:n.history.action,location:n.history.location,matches:X,initialized:ue,navigation:Pc,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||ie,fetchers:new Map,blockers:new Map},te="POP",me=null,xe=!1,be,we=!1,$e=new Map,De=null,Te=!1,j=!1,k=new Set,P=new Map,pe=0,Se=-1,R=new Map,Q=new Set,$=new Map,I=new Map,oe=new Set,ge=new Map,Ne,st=null;function tt(){if(S=n.history.listen(({action:E,location:M,delta:H})=>{if(Ne){Ne(),Ne=void 0;return}ht(ge.size===0||H!=null,"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 Z=Ka({currentLocation:w.location,nextLocation:M,historyAction:E});if(Z&&H!=null){let W=new Promise(ce=>{Ne=ce});n.history.go(H*-1),qn(Z,{state:"blocked",location:M,proceed(){qn(Z,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),W.then(()=>n.history.go(H))},reset(){let ce=new Map(w.blockers);ce.set(Z,cr),yt({blockers:ce})}}),me?.resolve(),me=null;return}return vn(E,M)}),r){_E(l,$e);let E=()=>UE(l,$e);l.addEventListener("pagehide",E),De=()=>l.removeEventListener("pagehide",E)}return w.initialized||vn("POP",w.location,{initialHydration:!0}),ve}function Ga(){S&&S(),De&&De(),A.clear(),be&&be.abort(),w.fetchers.forEach((E,M)=>bi(M)),w.blockers.forEach((E,M)=>qr(M))}function Tl(E){return A.add(E),()=>A.delete(E)}function yt(E,M={}){E.matches&&(E.matches=E.matches.map(W=>{let ce=d[W.route.id],ne=W.route;return ne.element!==ce.element||ne.errorElement!==ce.errorElement||ne.hydrateFallbackElement!==ce.hydrateFallbackElement?{...W,route:ce}:W})),w={...w,...E};let H=[],Z=[];w.fetchers.forEach((W,ce)=>{W.state==="idle"&&(oe.has(ce)?H.push(ce):Z.push(ce))}),oe.forEach(W=>{!w.fetchers.has(W)&&!P.has(W)&&H.push(W)}),[...A].forEach(W=>W(w,{deletedFetchers:H,newErrors:E.errors??null,viewTransitionOpts:M.viewTransitionOpts,flushSync:M.flushSync===!0})),H.forEach(W=>bi(W)),Z.forEach(W=>w.fetchers.delete(W))}function Bn(E,M,{flushSync:H}={}){let Z=w.actionData!=null&&w.navigation.formMethod!=null&&_t(w.navigation.formMethod)&&w.navigation.state==="loading"&&E.state?._isRedirect!==!0,W;M.actionData?Object.keys(M.actionData).length>0?W=M.actionData:W=null:Z?W=w.actionData:W=null;let ce=M.loaderData?Op(w.loaderData,M.loaderData,M.matches||[],M.errors):w.loaderData,ne=w.blockers;ne.size>0&&(ne=new Map(ne),ne.forEach((he,fe)=>ne.set(fe,cr)));let ee=Te?!1:Qr(E,M.matches||w.matches),ae=xe===!0||w.navigation.formMethod!=null&&_t(w.navigation.formMethod)&&E.state?._isRedirect!==!0;p&&(h=p,p=void 0),Te||te==="POP"||(te==="PUSH"?n.history.push(E,E.state):te==="REPLACE"&&n.history.replace(E,E.state));let se;if(te==="POP"){let he=$e.get(w.location.pathname);he&&he.has(E.pathname)?se={currentLocation:w.location,nextLocation:E}:$e.has(E.pathname)&&(se={currentLocation:E,nextLocation:w.location})}else if(we){let he=$e.get(w.location.pathname);he?he.add(E.pathname):(he=new Set([E.pathname]),$e.set(w.location.pathname,he)),se={currentLocation:w.location,nextLocation:E}}yt({...M,actionData:W,loaderData:ce,historyAction:te,location:E,initialized:!0,navigation:Pc,revalidation:"idle",restoreScrollPosition:ee,preventScrollReset:ae,blockers:ne},{viewTransitionOpts:se,flushSync:H===!0}),te="POP",xe=!1,we=!1,Te=!1,j=!1,me?.resolve(),me=null,st?.resolve(),st=null}async function Dn(E,M){if(me?.resolve(),me=null,typeof E=="number"){me||(me=Cp());let je=me.promise;return n.history.go(E),je}let H=Sf(w.location,w.matches,y,E,M?.fromRouteId,M?.relative),{path:Z,submission:W,error:ce}=yp(!1,H,M),ne=w.location,ee=Rr(w.location,Z,M&&M.state);ee={...ee,...n.history.encodeLocation(ee)};let ae=M&&M.replace!=null?M.replace:void 0,se="PUSH";ae===!0?se="REPLACE":ae===!1||W!=null&&_t(W.formMethod)&&W.formAction===w.location.pathname+w.location.search&&(se="REPLACE");let he=M&&"preventScrollReset"in M?M.preventScrollReset===!0:void 0,fe=(M&&M.flushSync)===!0,Qe=Ka({currentLocation:ne,nextLocation:ee,historyAction:se});if(Qe){qn(Qe,{state:"blocked",location:ee,proceed(){qn(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),Dn(E,M)},reset(){let je=new Map(w.blockers);je.set(Qe,cr),yt({blockers:je})}});return}await vn(se,ee,{submission:W,pendingError:ce,preventScrollReset:he,replace:M&&M.replace,enableViewTransition:M&&M.viewTransition,flushSync:fe,callSiteDefaultShouldRevalidate:M&&M.unstable_defaultShouldRevalidate})}function mi(){st||(st=Cp()),Ol(),yt({revalidation:"loading"});let E=st.promise;return w.navigation.state==="submitting"?E:w.navigation.state==="idle"?(vn(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),E):(vn(te||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:we===!0}),E)}async function vn(E,M,H){be&&be.abort(),be=null,te=E,Te=(H&&H.startUninterruptedRevalidation)===!0,Za(w.location,w.matches),xe=(H&&H.preventScrollReset)===!0,we=(H&&H.enableViewTransition)===!0;let Z=p||h,W=H&&H.overrideNavigation,ce=H?.initialHydration&&w.matches&&w.matches.length>0&&!F?w.matches:La(Z,M,y),ne=(H&&H.flushSync)===!0;if(ce&&w.initialized&&!j&&TE(w.location,M)&&!(H&&H.submission&&_t(H.submission.formMethod))){Bn(M,{matches:ce},{flushSync:ne});return}let ee=Ja(ce,Z,M.pathname);if(ee.active&&ee.matches&&(ce=ee.matches),!ce){let{error:lt,notFoundMatches:it,route:Le}=oa(M.pathname);Bn(M,{matches:it,loaderData:{},errors:{[Le.id]:lt}},{flushSync:ne});return}be=new AbortController;let ae=ri(n.history,M,be.signal,H&&H.submission),se=n.getContext?await n.getContext():new op,he;if(H&&H.pendingError)he=[Ha(ce).route.id,{type:"error",error:H.pendingError}];else if(H&&H.submission&&_t(H.submission.formMethod)){let lt=await Ms(ae,M,H.submission,ce,se,ee.active,H&&H.initialHydration===!0,{replace:H.replace,flushSync:ne});if(lt.shortCircuited)return;if(lt.pendingActionResult){let[it,Le]=lt.pendingActionResult;if(en(Le)&&xr(Le.error)&&Le.error.status===404){be=null,Bn(M,{matches:lt.matches,loaderData:{},errors:{[it]:Le.error}});return}}ce=lt.matches||ce,he=lt.pendingActionResult,W=Wc(M,H.submission),ne=!1,ee.active=!1,ae=ri(n.history,ae.url,ae.signal)}let{shortCircuited:fe,matches:Qe,loaderData:je,errors:at}=await Hr(ae,M,ce,se,ee.active,W,H&&H.submission,H&&H.fetcherSubmission,H&&H.replace,H&&H.initialHydration===!0,ne,he,H&&H.callSiteDefaultShouldRevalidate);fe||(be=null,Bn(M,{matches:Qe||ce,...xp(he),loaderData:je,errors:at}))}async function Ms(E,M,H,Z,W,ce,ne,ee={}){Ol();let ae=ME(M,H);if(yt({navigation:ae},{flushSync:ee.flushSync===!0}),ce){let fe=await ca(Z,M.pathname,E.signal);if(fe.type==="aborted")return{shortCircuited:!0};if(fe.type==="error"){if(fe.partialMatches.length===0){let{matches:je,route:at}=ts(h);return{matches:je,pendingActionResult:[at.id,{type:"error",error:fe.error}]}}let Qe=Ha(fe.partialMatches).route.id;return{matches:fe.partialMatches,pendingActionResult:[Qe,{type:"error",error:fe.error}]}}else if(fe.matches)Z=fe.matches;else{let{notFoundMatches:Qe,error:je,route:at}=oa(M.pathname);return{matches:Qe,pendingActionResult:[at.id,{type:"error",error:je}]}}}let se,he=us(Z,M);if(!he.route.action&&!he.route.lazy)se={type:"error",error:hn(405,{method:E.method,pathname:M.pathname,routeId:he.route.id})};else{let fe=si(f,d,E,Z,he,ne?[]:u,W),Qe=await Xa(E,fe,W,null);if(se=Qe[he.route.id],!se){for(let je of Z)if(Qe[je.route.id]){se=Qe[je.route.id];break}}if(E.signal.aborted)return{shortCircuited:!0}}if(yl(se)){let fe;return ee&&ee.replace!=null?fe=ee.replace:fe=Ep(se.response.headers.get("Location"),new URL(E.url),y,n.history)===w.location.pathname+w.location.search,await ot(E,se,!0,{submission:H,replace:fe}),{shortCircuited:!0}}if(en(se)){let fe=Ha(Z,he.route.id);return(ee&&ee.replace)!==!0&&(te="PUSH"),{matches:Z,pendingActionResult:[fe.route.id,se,he.route.id]}}return{matches:Z,pendingActionResult:[he.route.id,se]}}async function Hr(E,M,H,Z,W,ce,ne,ee,ae,se,he,fe,Qe){let je=ce||Wc(M,ne),at=ne||ee||wp(je),lt=!Te&&!se;if(W){if(lt){let ct=Rl(fe);yt({navigation:je,...ct!==void 0?{actionData:ct}:{}},{flushSync:he})}let He=await ca(H,M.pathname,E.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){if(He.partialMatches.length===0){let{matches:Tn,route:Ot}=ts(h);return{matches:Tn,loaderData:{},errors:{[Ot.id]:He.error}}}let ct=Ha(He.partialMatches).route.id;return{matches:He.partialMatches,loaderData:{},errors:{[ct]:He.error}}}else if(He.matches)H=He.matches;else{let{error:ct,notFoundMatches:Tn,route:Ot}=oa(M.pathname);return{matches:Tn,loaderData:{},errors:{[Ot.id]:ct}}}}let it=p||h,{dsMatches:Le,revalidatingFetchers:Tt}=pp(E,Z,f,d,n.history,w,H,at,M,se?[]:u,se===!0,j,k,oe,$,Q,it,y,n.patchRoutesOnNavigation!=null,fe,Qe);if(Se=++pe,!n.dataStrategy&&!Le.some(He=>He.shouldLoad)&&!Le.some(He=>He.route.middleware&&He.route.middleware.length>0)&&Tt.length===0){let He=Mt();return Bn(M,{matches:H,loaderData:{},errors:fe&&en(fe[1])?{[fe[0]]:fe[1].error}:null,...xp(fe),...He?{fetchers:new Map(w.fetchers)}:{}},{flushSync:he}),{shortCircuited:!0}}if(lt){let He={};if(!W){He.navigation=je;let ct=Rl(fe);ct!==void 0&&(He.actionData=ct)}Tt.length>0&&(He.fetchers=yi(Tt)),yt(He,{flushSync:he})}Tt.forEach(He=>{nt(He.key),He.controller&&P.set(He.key,He.controller)});let Lt=()=>Tt.forEach(He=>nt(He.key));be&&be.signal.addEventListener("abort",Lt);let{loaderResults:Ie,fetcherResults:Sn}=await vi(Le,Tt,E,Z);if(E.signal.aborted)return{shortCircuited:!0};be&&be.signal.removeEventListener("abort",Lt),Tt.forEach(He=>P.delete(He.key));let Ft=ns(Ie);if(Ft)return await ot(E,Ft.result,!0,{replace:ae}),{shortCircuited:!0};if(Ft=ns(Sn),Ft)return Q.add(Ft.key),await ot(E,Ft.result,!0,{replace:ae}),{shortCircuited:!0};let{loaderData:En,errors:tn}=Rp(w,H,Ie,fe,Tt,Sn);se&&w.errors&&(tn={...w.errors,...tn});let Yn=Mt(),ka=Br(Se),$a=Yn||ka||Tt.length>0;return{matches:H,loaderData:En,errors:tn,...$a?{fetchers:new Map(w.fetchers)}:{}}}function Rl(E){if(E&&!en(E[1]))return{[E[0]]:E[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function yi(E){return E.forEach(M=>{let H=w.fetchers.get(M.key),Z=fr(void 0,H?H.data:void 0);w.fetchers.set(M.key,Z)}),new Map(w.fetchers)}async function pi(E,M,H,Z){nt(E);let W=(Z&&Z.flushSync)===!0,ce=p||h,ne=Sf(w.location,w.matches,y,H,M,Z?.relative),ee=La(ce,ne,y),ae=Ja(ee,ce,ne);if(ae.active&&ae.matches&&(ee=ae.matches),!ee){gn(E,M,hn(404,{pathname:ne}),{flushSync:W});return}let{path:se,submission:he,error:fe}=yp(!0,ne,Z);if(fe){gn(E,M,fe,{flushSync:W});return}let Qe=n.getContext?await n.getContext():new op,je=(Z&&Z.preventScrollReset)===!0;if(he&&_t(he.formMethod)){await zs(E,M,se,ee,Qe,ae.active,W,je,he,Z&&Z.unstable_defaultShouldRevalidate);return}$.set(E,{routeId:M,path:se}),await _s(E,M,se,ee,Qe,ae.active,W,je,he)}async function zs(E,M,H,Z,W,ce,ne,ee,ae,se){Ol(),$.delete(E);let he=w.fetchers.get(E);jt(E,zE(ae,he),{flushSync:ne});let fe=new AbortController,Qe=ri(n.history,H,fe.signal,ae);if(ce){let Be=await ca(Z,new URL(Qe.url).pathname,Qe.signal,E);if(Be.type==="aborted")return;if(Be.type==="error"){gn(E,M,Be.error,{flushSync:ne});return}else if(Be.matches)Z=Be.matches;else{gn(E,M,hn(404,{pathname:H}),{flushSync:ne});return}}let je=us(Z,H);if(!je.route.action&&!je.route.lazy){let Be=hn(405,{method:ae.formMethod,pathname:H,routeId:M});gn(E,M,Be,{flushSync:ne});return}P.set(E,fe);let at=pe,lt=si(f,d,Qe,Z,je,u,W),it=await Xa(Qe,lt,W,E),Le=it[je.route.id];if(!Le){for(let Be of lt)if(it[Be.route.id]){Le=it[Be.route.id];break}}if(Qe.signal.aborted){P.get(E)===fe&&P.delete(E);return}if(oe.has(E)){if(yl(Le)||en(Le)){jt(E,ra(void 0));return}}else{if(yl(Le))if(P.delete(E),Se>at){jt(E,ra(void 0));return}else return Q.add(E),jt(E,fr(ae)),ot(Qe,Le,!1,{fetcherSubmission:ae,preventScrollReset:ee});if(en(Le)){gn(E,M,Le.error);return}}let Tt=w.navigation.location||w.location,Lt=ri(n.history,Tt,fe.signal),Ie=p||h,Sn=w.navigation.state!=="idle"?La(Ie,w.navigation.location,y):w.matches;Ce(Sn,"Didn't find any matches after fetcher action");let Ft=++pe;R.set(E,Ft);let En=fr(ae,Le.data);w.fetchers.set(E,En);let{dsMatches:tn,revalidatingFetchers:Yn}=pp(Lt,W,f,d,n.history,w,Sn,ae,Tt,u,!1,j,k,oe,$,Q,Ie,y,n.patchRoutesOnNavigation!=null,[je.route.id,Le],se);Yn.filter(Be=>Be.key!==E).forEach(Be=>{let Pa=Be.key,Gr=w.fetchers.get(Pa),Si=fr(void 0,Gr?Gr.data:void 0);w.fetchers.set(Pa,Si),nt(Pa),Be.controller&&P.set(Pa,Be.controller)}),yt({fetchers:new Map(w.fetchers)});let ka=()=>Yn.forEach(Be=>nt(Be.key));fe.signal.addEventListener("abort",ka);let{loaderResults:$a,fetcherResults:He}=await vi(tn,Yn,Lt,W);if(fe.signal.aborted)return;if(fe.signal.removeEventListener("abort",ka),R.delete(E),P.delete(E),Yn.forEach(Be=>P.delete(Be.key)),w.fetchers.has(E)){let Be=ra(Le.data);w.fetchers.set(E,Be)}let ct=ns($a);if(ct)return ot(Lt,ct.result,!1,{preventScrollReset:ee});if(ct=ns(He),ct)return Q.add(ct.key),ot(Lt,ct.result,!1,{preventScrollReset:ee});let{loaderData:Tn,errors:Ot}=Rp(w,Sn,$a,void 0,Yn,He);Br(Ft),w.navigation.state==="loading"&&Ft>Se?(Ce(te,"Expected pending action"),be&&be.abort(),Bn(w.navigation.location,{matches:Sn,loaderData:Tn,errors:Ot,fetchers:new Map(w.fetchers)})):(yt({errors:Ot,loaderData:Op(w.loaderData,Tn,Sn,Ot),fetchers:new Map(w.fetchers)}),j=!1)}async function _s(E,M,H,Z,W,ce,ne,ee,ae){let se=w.fetchers.get(E);jt(E,fr(ae,se?se.data:void 0),{flushSync:ne});let he=new AbortController,fe=ri(n.history,H,he.signal);if(ce){let Le=await ca(Z,new URL(fe.url).pathname,fe.signal,E);if(Le.type==="aborted")return;if(Le.type==="error"){gn(E,M,Le.error,{flushSync:ne});return}else if(Le.matches)Z=Le.matches;else{gn(E,M,hn(404,{pathname:H}),{flushSync:ne});return}}let Qe=us(Z,H);P.set(E,he);let je=pe,at=si(f,d,fe,Z,Qe,u,W),it=(await Xa(fe,at,W,E))[Qe.route.id];if(P.get(E)===he&&P.delete(E),!fe.signal.aborted){if(oe.has(E)){jt(E,ra(void 0));return}if(yl(it))if(Se>je){jt(E,ra(void 0));return}else{Q.add(E),await ot(fe,it,!1,{preventScrollReset:ee});return}if(en(it)){gn(E,M,it.error);return}jt(E,ra(it.data))}}async function ot(E,M,H,{submission:Z,fetcherSubmission:W,preventScrollReset:ce,replace:ne}={}){H||(me?.resolve(),me=null),M.response.headers.has("X-Remix-Revalidate")&&(j=!0);let ee=M.response.headers.get("Location");Ce(ee,"Expected a Location header on the redirect Response"),ee=Ep(ee,new URL(E.url),y,n.history);let ae=Rr(w.location,ee,{_isRedirect:!0});if(r){let at=!1;if(M.response.headers.has("X-Remix-Reload-Document"))at=!0;else if(Es(ee)){const lt=Rv(ee,!0);at=lt.origin!==l.location.origin||yn(lt.pathname,y)==null}if(at){ne?l.location.replace(ee):l.location.assign(ee);return}}be=null;let se=ne===!0||M.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:he,formAction:fe,formEncType:Qe}=w.navigation;!Z&&!W&&he&&fe&&Qe&&(Z=wp(w.navigation));let je=Z||W;if(rE.has(M.response.status)&&je&&_t(je.formMethod))await vn(se,ae,{submission:{...je,formAction:ee},preventScrollReset:ce||xe,enableViewTransition:H?we:void 0});else{let at=Wc(ae,Z);await vn(se,ae,{overrideNavigation:at,fetcherSubmission:W,preventScrollReset:ce||xe,enableViewTransition:H?we:void 0})}}async function Xa(E,M,H,Z){let W,ce={};try{W=await pE(v,E,M,Z,H,!1)}catch(ne){return M.filter(ee=>ee.shouldLoad).forEach(ee=>{ce[ee.route.id]={type:"error",error:ne}}),ce}if(E.signal.aborted)return ce;if(!_t(E.method))for(let ne of M){if(W[ne.route.id]?.type==="error")break;!W.hasOwnProperty(ne.route.id)&&!w.loaderData.hasOwnProperty(ne.route.id)&&(!w.errors||!w.errors.hasOwnProperty(ne.route.id))&&ne.shouldCallHandler()&&(W[ne.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ne.route.id}`)})}for(let[ne,ee]of Object.entries(W))if(AE(ee)){let ae=ee.result;ce[ne]={type:"redirect",response:SE(ae,E,ne,M,y)}}else ce[ne]=await bE(ee);return ce}async function vi(E,M,H,Z){let W=Xa(H,E,Z,null),ce=Promise.all(M.map(async ae=>{if(ae.matches&&ae.match&&ae.request&&ae.controller){let he=(await Xa(ae.request,ae.matches,Z,ae.key))[ae.match.route.id];return{[ae.key]:he}}else return Promise.resolve({[ae.key]:{type:"error",error:hn(404,{pathname:ae.path})}})})),ne=await W,ee=(await ce).reduce((ae,se)=>Object.assign(ae,se),{});return{loaderResults:ne,fetcherResults:ee}}function Ol(){j=!0,$.forEach((E,M)=>{P.has(M)&&k.add(M),nt(M)})}function jt(E,M,H={}){w.fetchers.set(E,M),yt({fetchers:new Map(w.fetchers)},{flushSync:(H&&H.flushSync)===!0})}function gn(E,M,H,Z={}){let W=Ha(w.matches,M);bi(E),yt({errors:{[W.route.id]:H},fetchers:new Map(w.fetchers)},{flushSync:(Z&&Z.flushSync)===!0})}function gi(E){return I.set(E,(I.get(E)||0)+1),oe.has(E)&&oe.delete(E),w.fetchers.get(E)||uE}function Us(E,M){nt(E,M?.reason),jt(E,ra(null))}function bi(E){let M=w.fetchers.get(E);P.has(E)&&!(M&&M.state==="loading"&&R.has(E))&&nt(E),$.delete(E),R.delete(E),Q.delete(E),oe.delete(E),k.delete(E),w.fetchers.delete(E)}function Va(E){let M=(I.get(E)||0)-1;M<=0?(I.delete(E),oe.add(E)):I.set(E,M),yt({fetchers:new Map(w.fetchers)})}function nt(E,M){let H=P.get(E);H&&(H.abort(M),P.delete(E))}function bn(E){for(let M of E){let H=gi(M),Z=ra(H.data);w.fetchers.set(M,Z)}}function Mt(){let E=[],M=!1;for(let H of Q){let Z=w.fetchers.get(H);Ce(Z,`Expected fetcher: ${H}`),Z.state==="loading"&&(Q.delete(H),E.push(H),M=!0)}return bn(E),M}function Br(E){let M=[];for(let[H,Z]of R)if(Z<E){let W=w.fetchers.get(H);Ce(W,`Expected fetcher: ${H}`),W.state==="loading"&&(nt(H),R.delete(H),M.push(H))}return bn(M),M.length>0}function Ns(E,M){let H=w.blockers.get(E)||cr;return ge.get(E)!==M&&ge.set(E,M),H}function qr(E){w.blockers.delete(E),ge.delete(E)}function qn(E,M){let H=w.blockers.get(E)||cr;Ce(H.state==="unblocked"&&M.state==="blocked"||H.state==="blocked"&&M.state==="blocked"||H.state==="blocked"&&M.state==="proceeding"||H.state==="blocked"&&M.state==="unblocked"||H.state==="proceeding"&&M.state==="unblocked",`Invalid blocker state transition: ${H.state} -> ${M.state}`);let Z=new Map(w.blockers);Z.set(E,M),yt({blockers:Z})}function Ka({currentLocation:E,nextLocation:M,historyAction:H}){if(ge.size===0)return;ge.size>1&&ht(!1,"A router only supports one blocker at a time");let Z=Array.from(ge.entries()),[W,ce]=Z[Z.length-1],ne=w.blockers.get(W);if(!(ne&&ne.state==="proceeding")&&ce({currentLocation:E,nextLocation:M,historyAction:H}))return W}function oa(E){let M=hn(404,{pathname:E}),H=p||h,{matches:Z,route:W}=ts(H);return{notFoundMatches:Z,route:W,error:M}}function Qn(E,M,H){if(O=E,_=M,z=H||null,!K&&w.navigation===Pc){K=!0;let Z=Qr(w.location,w.matches);Z!=null&&yt({restoreScrollPosition:Z})}return()=>{O=null,_=null,z=null}}function Fa(E,M){return z&&z(E,M.map(Z=>U1(Z,w.loaderData)))||E.key}function Za(E,M){if(O&&_){let H=Fa(E,M);O[H]=_()}}function Qr(E,M){if(O){let H=Fa(E,M),Z=O[H];if(typeof Z=="number")return Z}return null}function Ja(E,M,H){if(n.patchRoutesOnNavigation)if(E){if(Object.keys(E[0].params).length>0)return{active:!0,matches:gr(M,H,y,!0)}}else return{active:!0,matches:gr(M,H,y,!0)||[]};return{active:!1,matches:null}}async function ca(E,M,H,Z){if(!n.patchRoutesOnNavigation)return{type:"success",matches:E};let W=E;for(;;){let ce=p==null,ne=p||h,ee=d;try{await n.patchRoutesOnNavigation({signal:H,path:M,matches:W,fetcherKey:Z,patch:(he,fe)=>{H.aborted||vp(he,fe,ne,ee,f,!1)}})}catch(he){return{type:"error",error:he,partialMatches:W}}finally{ce&&!H.aborted&&(h=[...h])}if(H.aborted)return{type:"aborted"};let ae=La(ne,M,y),se=null;if(ae){if(Object.keys(ae[0].params).length===0)return{type:"success",matches:ae};if(se=gr(ne,M,y,!0),!(se&&W.length<se.length&&fa(W,se.slice(0,W.length))))return{type:"success",matches:ae}}if(se||(se=gr(ne,M,y,!0)),!se||fa(W,se))return{type:"success",matches:null};W=se}}function fa(E,M){return E.length===M.length&&E.every((H,Z)=>H.route.id===M[Z].route.id)}function js(E){d={},p=Or(E,f,void 0,d)}function Yr(E,M,H=!1){let Z=p==null;vp(E,M,p||h,d,f,H),Z&&(h=[...h],yt({}))}return ve={get basename(){return y},get future(){return b},get state(){return w},get routes(){return h},get window(){return l},initialize:tt,subscribe:Tl,enableScrollRestoration:Qn,navigate:Dn,fetch:pi,revalidate:mi,createHref:E=>n.history.createHref(E),encodeLocation:E=>n.history.encodeLocation(E),getFetcher:gi,resetFetcher:Us,deleteFetcher:Va,dispose:Ga,getBlocker:Ns,deleteBlocker:qr,patchRoutes:Yr,_internalFetchControllers:P,_internalSetRoutes:js,_internalSetStateDoNotUseOrYouWillBreakYourApp(E){yt(E)}},n.unstable_instrumentations&&(ve=W1(ve,n.unstable_instrumentations.map(E=>E.router).filter(Boolean))),ve}function cE(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Sf(n,l,r,u,c,f){let d,h;if(c){d=[];for(let y of l)if(d.push(y),y.route.id===c){h=y;break}}else d=l,h=l[l.length-1];let p=qf(u||".",Bf(d),yn(n.pathname,r)||n.pathname,f==="path");if(u==null&&(p.search=n.search,p.hash=n.hash),(u==null||u===""||u===".")&&h){let y=Gf(p.search);if(h.route.index&&!y)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&y){let v=new URLSearchParams(p.search),b=v.getAll("index");v.delete("index"),b.filter(A=>A).forEach(A=>v.append("index",A));let S=v.toString();p.search=S?`?${S}`:""}}return r!=="/"&&(p.pathname=F1({basename:r,pathname:p.pathname})),Hn(p)}function yp(n,l,r){if(!r||!cE(r))return{path:l};if(r.formMethod&&!DE(r.formMethod))return{path:l,error:hn(405,{method:r.formMethod})};let u=()=>({path:l,error:hn(400,{type:"invalid-body"})}),f=(r.formMethod||"get").toUpperCase(),d=Qv(l);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!_t(f))return u();let b=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,[A,O])=>`${S}${A}=${O}
|
|
186
|
+
`,""):String(r.body);return{path:l,submission:{formMethod:f,formAction:d,formEncType:r.formEncType,formData:void 0,json:void 0,text:b}}}else if(r.formEncType==="application/json"){if(!_t(f))return u();try{let b=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:l,submission:{formMethod:f,formAction:d,formEncType:r.formEncType,formData:void 0,json:b,text:void 0}}}catch{return u()}}}Ce(typeof FormData=="function","FormData is not available in this environment");let h,p;if(r.formData)h=Rf(r.formData),p=r.formData;else if(r.body instanceof FormData)h=Rf(r.body),p=r.body;else if(r.body instanceof URLSearchParams)h=r.body,p=Tp(h);else if(r.body==null)h=new URLSearchParams,p=new FormData;else try{h=new URLSearchParams(r.body),p=Tp(h)}catch{return u()}let y={formMethod:f,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(_t(y.formMethod))return{path:l,submission:y};let v=Ya(l);return n&&v.search&&Gf(v.search)&&h.append("index",""),v.search=`?${h}`,{path:Hn(v),submission:y}}function pp(n,l,r,u,c,f,d,h,p,y,v,b,S,A,O,z,_,K,X,F,ie){let ue=F?en(F[1])?F[1].error:F[1].data:void 0,ve=c.createURL(f.location),w=c.createURL(p),te;if(v&&f.errors){let Te=Object.keys(f.errors)[0];te=d.findIndex(j=>j.route.id===Te)}else if(F&&en(F[1])){let Te=F[0];te=d.findIndex(j=>j.route.id===Te)-1}let me=F?F[1].statusCode:void 0,xe=me&&me>=400,be={currentUrl:ve,currentParams:f.matches[0]?.params||{},nextUrl:w,nextParams:d[0].params,...h,actionResult:ue,actionStatus:me},we=Dr(d),$e=d.map((Te,j)=>{let{route:k}=Te,P=null;if(te!=null&&j>te?P=!1:k.lazy?P=!0:Qf(k)?v?P=Ef(k,f.loaderData,f.errors):fE(f.loaderData,f.matches[j],Te)&&(P=!0):P=!1,P!==null)return Tf(r,u,n,we,Te,y,l,P);let pe=!1;typeof ie=="boolean"?pe=ie:xe?pe=!1:(b||ve.pathname+ve.search===w.pathname+w.search||ve.search!==w.search||dE(f.matches[j],Te))&&(pe=!0);let Se={...be,defaultShouldRevalidate:pe},R=br(Te,Se);return Tf(r,u,n,we,Te,y,l,R,Se,ie)}),De=[];return O.forEach((Te,j)=>{if(v||!d.some(I=>I.route.id===Te.routeId)||A.has(j))return;let k=f.fetchers.get(j),P=k&&k.state!=="idle"&&k.data===void 0,pe=La(_,Te.path,K);if(!pe){if(X&&P)return;De.push({key:j,routeId:Te.routeId,path:Te.path,matches:null,match:null,request:null,controller:null});return}if(z.has(j))return;let Se=us(pe,Te.path),R=new AbortController,Q=ri(c,Te.path,R.signal),$=null;if(S.has(j))S.delete(j),$=si(r,u,Q,pe,Se,y,l);else if(P)b&&($=si(r,u,Q,pe,Se,y,l));else{let I;typeof ie=="boolean"?I=ie:xe?I=!1:I=b;let oe={...be,defaultShouldRevalidate:I};br(Se,oe)&&($=si(r,u,Q,pe,Se,y,l,oe))}$&&De.push({key:j,routeId:Te.routeId,path:Te.path,matches:$,match:Se,request:Q,controller:R})}),{dsMatches:$e,revalidatingFetchers:De}}function Qf(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function Ef(n,l,r){if(n.lazy)return!0;if(!Qf(n))return!1;let u=l!=null&&n.id in l,c=r!=null&&r[n.id]!==void 0;return!u&&c?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!u&&!c}function fE(n,l,r){let u=!l||r.route.id!==l.route.id,c=!n.hasOwnProperty(r.route.id);return u||c}function dE(n,l){let r=n.route.path;return n.pathname!==l.pathname||r!=null&&r.endsWith("*")&&n.params["*"]!==l.params["*"]}function br(n,l){if(n.route.shouldRevalidate){let r=n.route.shouldRevalidate(l);if(typeof r=="boolean")return r}return l.defaultShouldRevalidate}function vp(n,l,r,u,c,f){let d;if(n){let y=u[n];Ce(y,`No route found to patch children into: routeId = ${n}`),y.children||(y.children=[]),d=y.children}else d=r;let h=[],p=[];if(l.forEach(y=>{let v=d.find(b=>jv(y,b));v?p.push({existingRoute:v,newRoute:y}):h.push(y)}),h.length>0){let y=Or(h,c,[n||"_","patch",String(d?.length||"0")],u);d.push(...y)}if(f&&p.length>0)for(let y=0;y<p.length;y++){let{existingRoute:v,newRoute:b}=p[y],S=v,[A]=Or([b],c,[],{},!0);Object.assign(S,{element:A.element?A.element:S.element,errorElement:A.errorElement?A.errorElement:S.errorElement,hydrateFallbackElement:A.hydrateFallbackElement?A.hydrateFallbackElement:S.hydrateFallbackElement})}}function jv(n,l){return"id"in n&&"id"in l&&n.id===l.id?!0:n.index===l.index&&n.path===l.path&&n.caseSensitive===l.caseSensitive?(!n.children||n.children.length===0)&&(!l.children||l.children.length===0)?!0:n.children.every((r,u)=>l.children?.some(c=>jv(r,c))):!1}var gp=new WeakMap,Lv=({key:n,route:l,manifest:r,mapRouteProperties:u})=>{let c=r[l.id];if(Ce(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[n];if(!f)return;let d=gp.get(c);d||(d={},gp.set(c,d));let h=d[n];if(h)return h;let p=(async()=>{let y=D1(n),b=c[n]!==void 0&&n!=="hasErrorBoundary";if(y)ht(!y,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),d[n]=Promise.resolve();else if(b)ht(!1,`Route "${c.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let S=await f();S!=null&&(Object.assign(c,{[n]:S}),Object.assign(c,u(c)))}typeof c.lazy=="object"&&(c.lazy[n]=void 0,Object.values(c.lazy).every(S=>S===void 0)&&(c.lazy=void 0))})();return d[n]=p,p},bp=new WeakMap;function hE(n,l,r,u,c){let f=r[n.id];if(Ce(f,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let v=bp.get(f);if(v)return{lazyRoutePromise:v,lazyHandlerPromise:v};let b=(async()=>{Ce(typeof n.lazy=="function","No lazy route function found");let S=await n.lazy(),A={};for(let O in S){let z=S[O];if(z===void 0)continue;let _=z1(O),X=f[O]!==void 0&&O!=="hasErrorBoundary";_?ht(!_,"Route property "+O+" is not a supported property to be returned from a lazy route function. This property will be ignored."):X?ht(!X,`Route "${f.id}" has a static property "${O}" defined but its lazy function is also returning a value for this property. The lazy route property "${O}" will be ignored.`):A[O]=z}Object.assign(f,A),Object.assign(f,{...u(f),lazy:void 0})})();return bp.set(f,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let d=Object.keys(n.lazy),h=[],p;for(let v of d){if(c&&c.includes(v))continue;let b=Lv({key:v,route:n,manifest:r,mapRouteProperties:u});b&&(h.push(b),v===l&&(p=b))}let y=h.length>0?Promise.all(h).then(()=>{}):void 0;return y?.catch(()=>{}),p?.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:p}}async function Sp(n){let l=n.matches.filter(c=>c.shouldLoad),r={};return(await Promise.all(l.map(c=>c.resolve()))).forEach((c,f)=>{r[l[f].route.id]=c}),r}async function mE(n){return n.matches.some(l=>l.route.middleware)?Hv(n,()=>Sp(n)):Sp(n)}function Hv(n,l){return yE(n,l,u=>{if(CE(u))throw u;return u},OE,r);function r(u,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:u}}));{let{matches:d}=n,h=Math.min(Math.max(d.findIndex(y=>y.route.id===c),0),Math.max(d.findIndex(y=>y.shouldCallHandler()),0)),p=Ha(d,d[h].route.id).route.id;return Promise.resolve({[p]:{type:"error",result:u}})}}}async function yE(n,l,r,u,c){let{matches:f,request:d,params:h,context:p,unstable_pattern:y}=n,v=f.flatMap(S=>S.route.middleware?S.route.middleware.map(A=>[S.route.id,A]):[]);return await Bv({request:d,params:h,context:p,unstable_pattern:y},v,l,r,u,c)}async function Bv(n,l,r,u,c,f,d=0){let{request:h}=n;if(h.signal.aborted)throw h.signal.reason??new Error(`Request aborted: ${h.method} ${h.url}`);let p=l[d];if(!p)return await r();let[y,v]=p,b,S=async()=>{if(b)throw new Error("You may only call `next()` once per middleware");try{return b={value:await Bv(n,l,r,u,c,f,d+1)},b.value}catch(A){return b={value:await f(A,y,b)},b.value}};try{let A=await v(n,S),O=A!=null?u(A):void 0;return c(O)?O:b?O??b.value:(b={value:await S()},b.value)}catch(A){return await f(A,y,b)}}function qv(n,l,r,u,c){let f=Lv({key:"middleware",route:u.route,manifest:l,mapRouteProperties:n}),d=hE(u.route,_t(r.method)?"action":"loader",l,n,c);return{middleware:f,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function Tf(n,l,r,u,c,f,d,h,p=null,y){let v=!1,b=qv(n,l,r,c,f);return{...c,_lazyPromises:b,shouldLoad:h,shouldRevalidateArgs:p,shouldCallHandler(S){return v=!0,p?typeof y=="boolean"?br(c,{...p,defaultShouldRevalidate:y}):typeof S=="boolean"?br(c,{...p,defaultShouldRevalidate:S}):br(c,p):h},resolve(S){let{lazy:A,loader:O,middleware:z}=c.route,_=v||h||S&&!_t(r.method)&&(A||O),K=z&&z.length>0&&!O&&!A;return _&&(_t(r.method)||!K)?vE({request:r,unstable_pattern:u,match:c,lazyHandlerPromise:b?.handler,lazyRoutePromise:b?.route,handlerOverride:S,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function si(n,l,r,u,c,f,d,h=null){return u.map(p=>p.route.id!==c.route.id?{...p,shouldLoad:!1,shouldRevalidateArgs:h,shouldCallHandler:()=>!1,_lazyPromises:qv(n,l,r,p,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Tf(n,l,r,Dr(u),p,f,d,!0,h))}async function pE(n,l,r,u,c,f){r.some(y=>y._lazyPromises?.middleware)&&await Promise.all(r.map(y=>y._lazyPromises?.middleware));let d={request:l,unstable_pattern:Dr(r),params:r[0].params,context:c,matches:r},p=await n({...d,fetcherKey:u,runClientMiddleware:y=>{let v=d;return Hv(v,()=>y({...v,fetcherKey:u,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return p}async function vE({request:n,unstable_pattern:l,match:r,lazyHandlerPromise:u,lazyRoutePromise:c,handlerOverride:f,scopedContext:d}){let h,p,y=_t(n.method),v=y?"action":"loader",b=S=>{let A,O=new Promise((K,X)=>A=X);p=()=>A(),n.signal.addEventListener("abort",p);let z=K=>typeof S!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${v}" [routeId: ${r.route.id}]`)):S({request:n,unstable_pattern:l,params:r.params,context:d},...K!==void 0?[K]:[]),_=(async()=>{try{return{type:"data",result:await(f?f(X=>z(X)):z())}}catch(K){return{type:"error",result:K}}})();return Promise.race([_,O])};try{let S=y?r.route.action:r.route.loader;if(u||c)if(S){let A,[O]=await Promise.all([b(S).catch(z=>{A=z}),u,c]);if(A!==void 0)throw A;h=O}else{await u;let A=y?r.route.action:r.route.loader;if(A)[h]=await Promise.all([b(A),c]);else if(v==="action"){let O=new URL(n.url),z=O.pathname+O.search;throw hn(405,{method:n.method,pathname:z,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(S)h=await b(S);else{let A=new URL(n.url),O=A.pathname+A.search;throw hn(404,{pathname:O})}}catch(S){return{type:"error",result:S}}finally{p&&n.signal.removeEventListener("abort",p)}return h}async function gE(n){let l=n.headers.get("Content-Type");return l&&/\bapplication\/json\b/.test(l)?n.body==null?null:n.json():n.text()}async function bE(n){let{result:l,type:r}=n;if(Yf(l)){let u;try{u=await gE(l)}catch(c){return{type:"error",error:c}}return r==="error"?{type:"error",error:new Cr(l.status,l.statusText,u),statusCode:l.status,headers:l.headers}:{type:"data",data:u,statusCode:l.status,headers:l.headers}}return r==="error"?Ap(l)?l.data instanceof Error?{type:"error",error:l.data,statusCode:l.init?.status,headers:l.init?.headers?new Headers(l.init.headers):void 0}:{type:"error",error:RE(l),statusCode:xr(l)?l.status:void 0,headers:l.init?.headers?new Headers(l.init.headers):void 0}:{type:"error",error:l,statusCode:xr(l)?l.status:void 0}:Ap(l)?{type:"data",data:l.data,statusCode:l.init?.status,headers:l.init?.headers?new Headers(l.init.headers):void 0}:{type:"data",data:l}}function SE(n,l,r,u,c){let f=n.headers.get("Location");if(Ce(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Es(f)){let d=u.slice(0,u.findIndex(h=>h.route.id===r)+1);f=Sf(new URL(l.url),d,c,f),n.headers.set("Location",f)}return n}function Ep(n,l,r,u){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Es(n)){let f=n,d=f.startsWith("//")?new URL(l.protocol+f):new URL(f);if(c.includes(d.protocol))throw new Error("Invalid redirect location");let h=yn(d.pathname,r)!=null;if(d.origin===l.origin&&h)return d.pathname+d.search+d.hash}try{let f=u.createURL(n);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return n}function ri(n,l,r,u){let c=n.createURL(Qv(l)).toString(),f={signal:r};if(u&&_t(u.formMethod)){let{formMethod:d,formEncType:h}=u;f.method=d.toUpperCase(),h==="application/json"?(f.headers=new Headers({"Content-Type":h}),f.body=JSON.stringify(u.json)):h==="text/plain"?f.body=u.text:h==="application/x-www-form-urlencoded"&&u.formData?f.body=Rf(u.formData):f.body=u.formData}return new Request(c,f)}function Rf(n){let l=new URLSearchParams;for(let[r,u]of n.entries())l.append(r,typeof u=="string"?u:u.name);return l}function Tp(n){let l=new FormData;for(let[r,u]of n.entries())l.append(r,u);return l}function EE(n,l,r,u=!1,c=!1){let f={},d=null,h,p=!1,y={},v=r&&en(r[1])?r[1].error:void 0;return n.forEach(b=>{if(!(b.route.id in l))return;let S=b.route.id,A=l[S];if(Ce(!yl(A),"Cannot handle redirect results in processLoaderData"),en(A)){let O=A.error;if(v!==void 0&&(O=v,v=void 0),d=d||{},c)d[S]=O;else{let z=Ha(n,S);d[z.route.id]==null&&(d[z.route.id]=O)}u||(f[S]=Nv),p||(p=!0,h=xr(A.error)?A.error.status:500),A.headers&&(y[S]=A.headers)}else f[S]=A.data,A.statusCode&&A.statusCode!==200&&!p&&(h=A.statusCode),A.headers&&(y[S]=A.headers)}),v!==void 0&&r&&(d={[r[0]]:v},r[2]&&(f[r[2]]=void 0)),{loaderData:f,errors:d,statusCode:h||200,loaderHeaders:y}}function Rp(n,l,r,u,c,f){let{loaderData:d,errors:h}=EE(l,r,u);return c.filter(p=>!p.matches||p.matches.some(y=>y.shouldLoad)).forEach(p=>{let{key:y,match:v,controller:b}=p;if(b&&b.signal.aborted)return;let S=f[y];if(Ce(S,"Did not find corresponding fetcher result"),en(S)){let A=Ha(n.matches,v?.route.id);h&&h[A.route.id]||(h={...h,[A.route.id]:S.error}),n.fetchers.delete(y)}else if(yl(S))Ce(!1,"Unhandled fetcher revalidation redirect");else{let A=ra(S.data);n.fetchers.set(y,A)}}),{loaderData:d,errors:h}}function Op(n,l,r,u){let c=Object.entries(l).filter(([,f])=>f!==Nv).reduce((f,[d,h])=>(f[d]=h,f),{});for(let f of r){let d=f.route.id;if(!l.hasOwnProperty(d)&&n.hasOwnProperty(d)&&f.route.loader&&(c[d]=n[d]),u&&u.hasOwnProperty(d))break}return c}function xp(n){return n?en(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function Ha(n,l){return(l?n.slice(0,n.findIndex(u=>u.route.id===l)+1):[...n]).reverse().find(u=>u.route.hasErrorBoundary===!0)||n[0]}function ts(n){let l=n.length===1?n[0]:n.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:l}],route:l}}function hn(n,{pathname:l,routeId:r,method:u,type:c,message:f}={}){let d="Unknown Server Error",h="Unknown @remix-run/router error";return n===400?(d="Bad Request",u&&l&&r?h=`You made a ${u} request to "${l}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:c==="invalid-body"&&(h="Unable to encode submission body")):n===403?(d="Forbidden",h=`Route "${r}" does not match URL "${l}"`):n===404?(d="Not Found",h=`No route matches URL "${l}"`):n===405&&(d="Method Not Allowed",u&&l&&r?h=`You made a ${u.toUpperCase()} request to "${l}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:u&&(h=`Invalid request method "${u.toUpperCase()}"`)),new Cr(n||500,d,new Error(h),!0)}function ns(n){let l=Object.entries(n);for(let r=l.length-1;r>=0;r--){let[u,c]=l[r];if(yl(c))return{key:u,result:c}}}function Qv(n){let l=typeof n=="string"?Ya(n):n;return Hn({...l,hash:""})}function TE(n,l){return n.pathname!==l.pathname||n.search!==l.search?!1:n.hash===""?l.hash!=="":n.hash===l.hash?!0:l.hash!==""}function RE(n){return new Cr(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function OE(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([l,r])=>typeof l=="string"&&xE(r))}function xE(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function AE(n){return Yf(n.result)&&_v.has(n.result.status)}function en(n){return n.type==="error"}function yl(n){return(n&&n.type)==="redirect"}function Ap(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function Yf(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function wE(n){return _v.has(n)}function CE(n){return Yf(n)&&wE(n.status)&&n.headers.has("Location")}function DE(n){return iE.has(n.toUpperCase())}function _t(n){return aE.has(n.toUpperCase())}function Gf(n){return new URLSearchParams(n).getAll("index").some(l=>l==="")}function us(n,l){let r=typeof l=="string"?Ya(l).search:l.search;if(n[n.length-1].route.index&&Gf(r||""))return n[n.length-1];let u=wv(n);return u[u.length-1]}function wp(n){let{formMethod:l,formAction:r,formEncType:u,text:c,formData:f,json:d}=n;if(!(!l||!r||!u)){if(c!=null)return{formMethod:l,formAction:r,formEncType:u,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:l,formAction:r,formEncType:u,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:l,formAction:r,formEncType:u,formData:void 0,json:d,text:void 0}}}function Wc(n,l){return l?{state:"loading",location:n,formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ME(n,l){return{state:"submitting",location:n,formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text}}function fr(n,l){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:l}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:l}}function zE(n,l){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:l?l.data:void 0}}function ra(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function _E(n,l){try{let r=n.sessionStorage.getItem(Uv);if(r){let u=JSON.parse(r);for(let[c,f]of Object.entries(u||{}))f&&Array.isArray(f)&&l.set(c,new Set(f||[]))}}catch{}}function UE(n,l){if(l.size>0){let r={};for(let[u,c]of l)r[u]=[...c];try{n.sessionStorage.setItem(Uv,JSON.stringify(r))}catch(u){ht(!1,`Failed to save applied view transitions in sessionStorage (${u}).`)}}}function Cp(){let n,l,r=new Promise((u,c)=>{n=async f=>{u(f);try{await r}catch{}},l=async f=>{c(f);try{await r}catch{}}});return{promise:r,resolve:n,reject:l}}var Sl=C.createContext(null);Sl.displayName="DataRouter";var Mr=C.createContext(null);Mr.displayName="DataRouterState";var Yv=C.createContext(!1);function NE(){return C.useContext(Yv)}var Xf=C.createContext({isTransitioning:!1});Xf.displayName="ViewTransition";var Gv=C.createContext(new Map);Gv.displayName="Fetchers";var jE=C.createContext(null);jE.displayName="Await";var pn=C.createContext(null);pn.displayName="Navigation";var Ts=C.createContext(null);Ts.displayName="Location";var wn=C.createContext({outlet:null,matches:[],isDataRoute:!1});wn.displayName="Route";var Vf=C.createContext(null);Vf.displayName="RouteError";var Xv="REACT_ROUTER_ERROR",LE="REDIRECT",HE="ROUTE_ERROR_RESPONSE";function BE(n){if(n.startsWith(`${Xv}:${LE}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function qE(n){if(n.startsWith(`${Xv}:${HE}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new Cr(l.status,l.statusText,l.data)}catch{}}function QE(n,{relative:l}={}){Ce(zr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=C.useContext(pn),{hash:c,pathname:f,search:d}=_r(n,{relative:l}),h=f;return r!=="/"&&(h=f==="/"?r:Ln([r,f])),u.createHref({pathname:h,search:d,hash:c})}function zr(){return C.useContext(Ts)!=null}function El(){return Ce(zr(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Ts).location}var Vv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kv(n){C.useContext(pn).static||C.useLayoutEffect(n)}function YE(){let{isDataRoute:n}=C.useContext(wn);return n?aT():GE()}function GE(){Ce(zr(),"useNavigate() may be used only in the context of a <Router> component.");let n=C.useContext(Sl),{basename:l,navigator:r}=C.useContext(pn),{matches:u}=C.useContext(wn),{pathname:c}=El(),f=JSON.stringify(Bf(u)),d=C.useRef(!1);return Kv(()=>{d.current=!0}),C.useCallback((p,y={})=>{if(ht(d.current,Vv),!d.current)return;if(typeof p=="number"){r.go(p);return}let v=qf(p,JSON.parse(f),c,y.relative==="path");n==null&&l!=="/"&&(v.pathname=v.pathname==="/"?l:Ln([l,v.pathname])),(y.replace?r.replace:r.push)(v,y.state,y)},[l,r,f,c,n])}var XE=C.createContext(null);function VE(n){let l=C.useContext(wn).outlet;return C.useMemo(()=>l&&C.createElement(XE.Provider,{value:n},l),[l,n])}function KE(){let{matches:n}=C.useContext(wn),l=n[n.length-1];return l?l.params:{}}function _r(n,{relative:l}={}){let{matches:r}=C.useContext(wn),{pathname:u}=El(),c=JSON.stringify(Bf(r));return C.useMemo(()=>qf(n,JSON.parse(c),u,l==="path"),[n,c,u,l])}function FE(n,l,r,u,c){Ce(zr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=C.useContext(pn),{matches:d}=C.useContext(wn),h=d[d.length-1],p=h?h.params:{},y=h?h.pathname:"/",v=h?h.pathnameBase:"/",b=h&&h.route;{let X=b&&b.path||"";Jv(y,!b||X.endsWith("*")||X.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${X}">) 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.
|
|
187
|
+
|
|
188
|
+
Please change the parent <Route path="${X}"> to <Route path="${X==="/"?"*":`${X}/*`}">.`)}let S=El(),A;A=S;let O=A.pathname||"/",z=O;if(v!=="/"){let X=v.replace(/^\//,"").split("/");z="/"+O.replace(/^\//,"").split("/").slice(X.length).join("/")}let _=La(n,{pathname:z});return ht(b||_!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),ht(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`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.`),PE(_&&_.map(X=>Object.assign({},X,{params:Object.assign({},p,X.params),pathname:Ln([v,f.encodeLocation?f.encodeLocation(X.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathname]),pathnameBase:X.pathnameBase==="/"?v:Ln([v,f.encodeLocation?f.encodeLocation(X.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathnameBase])})),d,r,u,c)}function ZE(){let n=nT(),l=xr(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:f},"ErrorBoundary")," or"," ",C.createElement("code",{style:f},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},l),r?C.createElement("pre",{style:c},r):null,d)}var JE=C.createElement(ZE,null),Fv=class extends C.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=qE(n.digest);r&&(n=r)}let l=n!==void 0?C.createElement(wn.Provider,{value:this.props.routeContext},C.createElement(Vf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?C.createElement(kE,{error:n},l):l}};Fv.contextType=Yv;var Ic=new WeakMap;function kE({children:n,error:l}){let{basename:r}=C.useContext(pn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let u=BE(l.digest);if(u){let c=Ic.get(l);if(c)throw c;let f=Dv(u.location,r);if(Cv&&!Ic.get(l))if(f.isExternal||u.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:u.replace}));throw Ic.set(l,d),d}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function $E({routeContext:n,match:l,children:r}){let u=C.useContext(Sl);return u&&u.static&&u.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=l.route.id),C.createElement(wn.Provider,{value:n},r)}function PE(n,l=[],r=null,u=null,c=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let f=n,d=r?.errors;if(d!=null){let v=f.findIndex(b=>b.route.id&&d?.[b.route.id]!==void 0);Ce(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,v+1))}let h=!1,p=-1;if(r)for(let v=0;v<f.length;v++){let b=f[v];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(p=v),b.route.id){let{loaderData:S,errors:A}=r,O=b.route.loader&&!S.hasOwnProperty(b.route.id)&&(!A||A[b.route.id]===void 0);if(b.route.lazy||O){h=!0,p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}let y=r&&u?(v,b)=>{u(v,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Dr(r.matches),errorInfo:b})}:void 0;return f.reduceRight((v,b,S)=>{let A,O=!1,z=null,_=null;r&&(A=d&&b.route.id?d[b.route.id]:void 0,z=b.route.errorElement||JE,h&&(p<0&&S===0?(Jv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,_=null):p===S&&(O=!0,_=b.route.hydrateFallbackElement||null)));let K=l.concat(f.slice(0,S+1)),X=()=>{let F;return A?F=z:O?F=_:b.route.Component?F=C.createElement(b.route.Component,null):b.route.element?F=b.route.element:F=v,C.createElement($E,{match:b,routeContext:{outlet:v,matches:K,isDataRoute:r!=null},children:F})};return r&&(b.route.ErrorBoundary||b.route.errorElement||S===0)?C.createElement(Fv,{location:r.location,revalidation:r.revalidation,component:z,error:A,children:X(),routeContext:{outlet:null,matches:K,isDataRoute:!0},onError:y}):X()},null)}function Kf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function WE(n){let l=C.useContext(Sl);return Ce(l,Kf(n)),l}function Zv(n){let l=C.useContext(Mr);return Ce(l,Kf(n)),l}function IE(n){let l=C.useContext(wn);return Ce(l,Kf(n)),l}function Rs(n){let l=IE(n),r=l.matches[l.matches.length-1];return Ce(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function eT(){return Rs("useRouteId")}function tT(){let n=Zv("useLoaderData"),l=Rs("useLoaderData");return n.loaderData[l]}function nT(){let n=C.useContext(Vf),l=Zv("useRouteError"),r=Rs("useRouteError");return n!==void 0?n:l.errors?.[r]}function aT(){let{router:n}=WE("useNavigate"),l=Rs("useNavigate"),r=C.useRef(!1);return Kv(()=>{r.current=!0}),C.useCallback(async(c,f={})=>{ht(r.current,Vv),r.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:l,...f}))},[n,l])}var Dp={};function Jv(n,l,r){!l&&!Dp[n]&&(Dp[n]=!0,ht(!1,r))}var Mp={};function zp(n,l){!n&&!Mp[l]&&(Mp[l]=!0,console.warn(l))}var lT="useOptimistic",_p=dS[lT],iT=()=>{};function rT(n){return _p?_p(n):[n,iT]}function uT(n){let l={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&ht(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(l,{element:C.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&ht(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(l,{hydrateFallbackElement:C.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&ht(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(l,{errorElement:C.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),l}var sT=["HydrateFallback","hydrateFallbackElement"],oT=class{constructor(){this.status="pending",this.promise=new Promise((n,l)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",n(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",l(r))}})}};function cT({router:n,flushSync:l,onError:r,unstable_useTransitions:u}){u=NE()||u;let[f,d]=C.useState(n.state),[h,p]=rT(f),[y,v]=C.useState(),[b,S]=C.useState({isTransitioning:!1}),[A,O]=C.useState(),[z,_]=C.useState(),[K,X]=C.useState(),F=C.useRef(new Map),ie=C.useCallback((te,{deletedFetchers:me,newErrors:xe,flushSync:be,viewTransitionOpts:we})=>{xe&&r&&Object.values(xe).forEach(De=>r(De,{location:te.location,params:te.matches[0]?.params??{},unstable_pattern:Dr(te.matches)})),te.fetchers.forEach((De,Te)=>{De.data!==void 0&&F.current.set(Te,De.data)}),me.forEach(De=>F.current.delete(De)),zp(be===!1||l!=null,'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 $e=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(zp(we==null||$e,"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."),!we||!$e){l&&be?l(()=>d(te)):u===!1?d(te):C.startTransition(()=>{u===!0&&p(De=>Up(De,te)),d(te)});return}if(l&&be){l(()=>{z&&(A?.resolve(),z.skipTransition()),S({isTransitioning:!0,flushSync:!0,currentLocation:we.currentLocation,nextLocation:we.nextLocation})});let De=n.window.document.startViewTransition(()=>{l(()=>d(te))});De.finished.finally(()=>{l(()=>{O(void 0),_(void 0),v(void 0),S({isTransitioning:!1})})}),l(()=>_(De));return}z?(A?.resolve(),z.skipTransition(),X({state:te,currentLocation:we.currentLocation,nextLocation:we.nextLocation})):(v(te),S({isTransitioning:!0,flushSync:!1,currentLocation:we.currentLocation,nextLocation:we.nextLocation}))},[n.window,l,z,A,u,p,r]);C.useLayoutEffect(()=>n.subscribe(ie),[n,ie]),C.useEffect(()=>{b.isTransitioning&&!b.flushSync&&O(new oT)},[b]),C.useEffect(()=>{if(A&&y&&n.window){let te=y,me=A.promise,xe=n.window.document.startViewTransition(async()=>{u===!1?d(te):C.startTransition(()=>{u===!0&&p(be=>Up(be,te)),d(te)}),await me});xe.finished.finally(()=>{O(void 0),_(void 0),v(void 0),S({isTransitioning:!1})}),_(xe)}},[y,A,n.window,u,p]),C.useEffect(()=>{A&&y&&h.location.key===y.location.key&&A.resolve()},[A,z,h.location,y]),C.useEffect(()=>{!b.isTransitioning&&K&&(v(K.state),S({isTransitioning:!0,flushSync:!1,currentLocation:K.currentLocation,nextLocation:K.nextLocation}),X(void 0))},[b.isTransitioning,K]);let ue=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:te=>n.navigate(te),push:(te,me,xe)=>n.navigate(te,{state:me,preventScrollReset:xe?.preventScrollReset}),replace:(te,me,xe)=>n.navigate(te,{replace:!0,state:me,preventScrollReset:xe?.preventScrollReset})}),[n]),ve=n.basename||"/",w=C.useMemo(()=>({router:n,navigator:ue,static:!1,basename:ve,onError:r}),[n,ue,ve,r]);return C.createElement(C.Fragment,null,C.createElement(Sl.Provider,{value:w},C.createElement(Mr.Provider,{value:h},C.createElement(Gv.Provider,{value:F.current},C.createElement(Xf.Provider,{value:b},C.createElement(mT,{basename:ve,location:h.location,navigationType:h.historyAction,navigator:ue,unstable_useTransitions:u},C.createElement(fT,{routes:n.routes,future:n.future,state:h,onError:r})))))),null)}function Up(n,l){return{...n,navigation:l.navigation.state!=="idle"?l.navigation:n.navigation,revalidation:l.revalidation!=="idle"?l.revalidation:n.revalidation,actionData:l.navigation.state!=="submitting"?l.actionData:n.actionData,fetchers:l.fetchers}}var fT=C.memo(dT);function dT({routes:n,future:l,state:r,onError:u}){return FE(n,void 0,r,u,l)}function hT(n){return VE(n.context)}function mT({basename:n="/",children:l=null,location:r,navigationType:u="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){Ce(!zr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),p=C.useMemo(()=>({basename:h,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[h,c,f,d]);typeof r=="string"&&(r=Ya(r));let{pathname:y="/",search:v="",hash:b="",state:S=null,key:A="default"}=r,O=C.useMemo(()=>{let z=yn(y,h);return z==null?null:{location:{pathname:z,search:v,hash:b,state:S,key:A},navigationType:u}},[h,y,v,b,S,A,u]);return ht(O!=null,`<Router basename="${h}"> is not able to match the URL "${y}${v}${b}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:C.createElement(pn.Provider,{value:p},C.createElement(Ts.Provider,{children:l,value:O}))}var ss="get",os="application/x-www-form-urlencoded";function Os(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function yT(n){return Os(n)&&n.tagName.toLowerCase()==="button"}function pT(n){return Os(n)&&n.tagName.toLowerCase()==="form"}function vT(n){return Os(n)&&n.tagName.toLowerCase()==="input"}function gT(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function bT(n,l){return n.button===0&&(!l||l==="_self")&&!gT(n)}var as=null;function ST(){if(as===null)try{new FormData(document.createElement("form"),0),as=!1}catch{as=!0}return as}var ET=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ef(n){return n!=null&&!ET.has(n)?(ht(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${os}"`),null):n}function TT(n,l){let r,u,c,f,d;if(pT(n)){let h=n.getAttribute("action");u=h?yn(h,l):null,r=n.getAttribute("method")||ss,c=ef(n.getAttribute("enctype"))||os,f=new FormData(n)}else if(yT(n)||vT(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||h.getAttribute("action");if(u=p?yn(p,l):null,r=n.getAttribute("formmethod")||h.getAttribute("method")||ss,c=ef(n.getAttribute("formenctype"))||ef(h.getAttribute("enctype"))||os,f=new FormData(h,n),!ST()){let{name:y,type:v,value:b}=n;if(v==="image"){let S=y?`${y}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else y&&f.append(y,b)}}else{if(Os(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ss,u=null,c=os,d=n}return f&&c==="text/plain"&&(d=f,f=void 0),{action:u,method:r.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ff(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function RT(n,l,r,u){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${u}`:c.pathname=`${c.pathname}.${u}`:c.pathname==="/"?c.pathname=`_root.${u}`:l&&yn(c.pathname,l)==="/"?c.pathname=`${l.replace(/\/$/,"")}/_root.${u}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${u}`,c}async function OT(n,l){if(n.id in l)return l[n.id];try{let r=await import(n.module);return l[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function xT(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function AT(n,l,r){let u=await Promise.all(n.map(async c=>{let f=l.routes[c.route.id];if(f){let d=await OT(f,r);return d.links?d.links():[]}return[]}));return MT(u.flat(1).filter(xT).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Np(n,l,r,u,c,f){let d=(p,y)=>r[y]?p.route.id!==r[y].route.id:!0,h=(p,y)=>r[y].pathname!==p.pathname||r[y].route.path?.endsWith("*")&&r[y].params["*"]!==p.params["*"];return f==="assets"?l.filter((p,y)=>d(p,y)||h(p,y)):f==="data"?l.filter((p,y)=>{let v=u.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(d(p,y)||h(p,y))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function wT(n,l,{includeHydrateFallback:r}={}){return CT(n.map(u=>{let c=l.routes[u.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function CT(n){return[...new Set(n)]}function DT(n){let l={},r=Object.keys(n).sort();for(let u of r)l[u]=n[u];return l}function MT(n,l){let r=new Set;return new Set(l),n.reduce((u,c)=>{let f=JSON.stringify(DT(c));return r.has(f)||(r.add(f),u.push({key:f,link:c})),u},[])}function kv(){let n=C.useContext(Sl);return Ff(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function zT(){let n=C.useContext(Mr);return Ff(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Zf=C.createContext(void 0);Zf.displayName="FrameworkContext";function $v(){let n=C.useContext(Zf);return Ff(n,"You must render this element inside a <HydratedRouter> element"),n}function _T(n,l){let r=C.useContext(Zf),[u,c]=C.useState(!1),[f,d]=C.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:y,onMouseLeave:v,onTouchStart:b}=l,S=C.useRef(null);C.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let z=K=>{K.forEach(X=>{d(X.isIntersecting)})},_=new IntersectionObserver(z,{threshold:.5});return S.current&&_.observe(S.current),()=>{_.disconnect()}}},[n]),C.useEffect(()=>{if(u){let z=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(z)}}},[u]);let A=()=>{c(!0)},O=()=>{c(!1),d(!1)};return r?n!=="intent"?[f,S,{}]:[f,S,{onFocus:dr(h,A),onBlur:dr(p,O),onMouseEnter:dr(y,A),onMouseLeave:dr(v,O),onTouchStart:dr(b,A)}]:[!1,S,{}]}function dr(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function UT({page:n,...l}){let{router:r}=kv(),u=C.useMemo(()=>La(r.routes,n,r.basename),[r.routes,n,r.basename]);return u?C.createElement(jT,{page:n,matches:u,...l}):null}function NT(n){let{manifest:l,routeModules:r}=$v(),[u,c]=C.useState([]);return C.useEffect(()=>{let f=!1;return AT(n,l,r).then(d=>{f||c(d)}),()=>{f=!0}},[n,l,r]),u}function jT({page:n,matches:l,...r}){let u=El(),{future:c,manifest:f,routeModules:d}=$v(),{basename:h}=kv(),{loaderData:p,matches:y}=zT(),v=C.useMemo(()=>Np(n,l,y,f,u,"data"),[n,l,y,f,u]),b=C.useMemo(()=>Np(n,l,y,f,u,"assets"),[n,l,y,f,u]),S=C.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let z=new Set,_=!1;if(l.forEach(X=>{let F=f.routes[X.route.id];!F||!F.hasLoader||(!v.some(ie=>ie.route.id===X.route.id)&&X.route.id in p&&d[X.route.id]?.shouldRevalidate||F.hasClientLoader?_=!0:z.add(X.route.id))}),z.size===0)return[];let K=RT(n,h,c.unstable_trailingSlashAwareDataRequests,"data");return _&&z.size>0&&K.searchParams.set("_routes",l.filter(X=>z.has(X.route.id)).map(X=>X.route.id).join(",")),[K.pathname+K.search]},[h,c.unstable_trailingSlashAwareDataRequests,p,u,f,v,l,n,d]),A=C.useMemo(()=>wT(b,f),[b,f]),O=NT(b);return C.createElement(C.Fragment,null,S.map(z=>C.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...r})),A.map(z=>C.createElement("link",{key:z,rel:"modulepreload",href:z,...r})),O.map(({key:z,link:_})=>C.createElement("link",{key:z,nonce:r.nonce,..._})))}function LT(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var HT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{HT&&(window.__reactRouterVersion="7.12.0")}catch{}function BT(n,l){return oE({basename:l?.basename,getContext:l?.getContext,future:l?.future,history:x1({window:l?.window}),hydrationData:qT(),routes:n,mapRouteProperties:uT,hydrationRouteProperties:sT,dataStrategy:l?.dataStrategy,patchRoutesOnNavigation:l?.patchRoutesOnNavigation,window:l?.window,unstable_instrumentations:l?.unstable_instrumentations}).initialize()}function qT(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:QT(n.errors)}),n}function QT(n){if(!n)return null;let l=Object.entries(n),r={};for(let[u,c]of l)if(c&&c.__type==="RouteErrorResponse")r[u]=new Cr(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let f=window[c.__subType];if(typeof f=="function")try{let d=new f(c.message);d.stack="",r[u]=d}catch{}}if(r[u]==null){let f=new Error(c.message);f.stack="",r[u]=f}}else r[u]=c;return r}var Pv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jf=C.forwardRef(function({onClick:l,discover:r="render",prefetch:u="none",relative:c,reloadDocument:f,replace:d,state:h,target:p,to:y,preventScrollReset:v,viewTransition:b,unstable_defaultShouldRevalidate:S,...A},O){let{basename:z,unstable_useTransitions:_}=C.useContext(pn),K=typeof y=="string"&&Pv.test(y),X=Dv(y,z);y=X.to;let F=QE(y,{relative:c}),[ie,ue,ve]=_T(u,A),w=VT(y,{replace:d,state:h,target:p,preventScrollReset:v,relative:c,viewTransition:b,unstable_defaultShouldRevalidate:S,unstable_useTransitions:_});function te(xe){l&&l(xe),xe.defaultPrevented||w(xe)}let me=C.createElement("a",{...A,...ve,href:X.absoluteURL||F,onClick:X.isExternal||f?l:te,ref:LT(O,ue),target:p,"data-discover":!K&&r==="render"?"true":void 0});return ie&&!K?C.createElement(C.Fragment,null,me,C.createElement(UT,{page:F})):me});Jf.displayName="Link";var YT=C.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:u="",end:c=!1,style:f,to:d,viewTransition:h,children:p,...y},v){let b=_r(d,{relative:y.relative}),S=El(),A=C.useContext(Mr),{navigator:O,basename:z}=C.useContext(pn),_=A!=null&&kT(b)&&h===!0,K=O.encodeLocation?O.encodeLocation(b).pathname:b.pathname,X=S.pathname,F=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;r||(X=X.toLowerCase(),F=F?F.toLowerCase():null,K=K.toLowerCase()),F&&z&&(F=yn(F,z)||F);const ie=K!=="/"&&K.endsWith("/")?K.length-1:K.length;let ue=X===K||!c&&X.startsWith(K)&&X.charAt(ie)==="/",ve=F!=null&&(F===K||!c&&F.startsWith(K)&&F.charAt(K.length)==="/"),w={isActive:ue,isPending:ve,isTransitioning:_},te=ue?l:void 0,me;typeof u=="function"?me=u(w):me=[u,ue?"active":null,ve?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let xe=typeof f=="function"?f(w):f;return C.createElement(Jf,{...y,"aria-current":te,className:me,ref:v,style:xe,to:d,viewTransition:h},typeof p=="function"?p(w):p)});YT.displayName="NavLink";var GT=C.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:u,replace:c,state:f,method:d=ss,action:h,onSubmit:p,relative:y,preventScrollReset:v,viewTransition:b,unstable_defaultShouldRevalidate:S,...A},O)=>{let{unstable_useTransitions:z}=C.useContext(pn),_=ZT(),K=JT(h,{relative:y}),X=d.toLowerCase()==="get"?"get":"post",F=typeof h=="string"&&Pv.test(h),ie=ue=>{if(p&&p(ue),ue.defaultPrevented)return;ue.preventDefault();let ve=ue.nativeEvent.submitter,w=ve?.getAttribute("formmethod")||d,te=()=>_(ve||ue.currentTarget,{fetcherKey:l,method:w,navigate:r,replace:c,state:f,relative:y,preventScrollReset:v,viewTransition:b,unstable_defaultShouldRevalidate:S});z&&r!==!1?C.startTransition(()=>te()):te()};return C.createElement("form",{ref:O,method:X,action:K,onSubmit:u?p:ie,...A,"data-discover":!F&&n==="render"?"true":void 0})});GT.displayName="Form";function XT(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wv(n){let l=C.useContext(Sl);return Ce(l,XT(n)),l}function VT(n,{target:l,replace:r,state:u,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:h,unstable_useTransitions:p}={}){let y=YE(),v=El(),b=_r(n,{relative:f});return C.useCallback(S=>{if(bT(S,l)){S.preventDefault();let A=r!==void 0?r:Hn(v)===Hn(b),O=()=>y(n,{replace:A,state:u,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:h});p?C.startTransition(()=>O()):O()}},[v,y,b,r,u,l,n,c,f,d,h,p])}var KT=0,FT=()=>`__${String(++KT)}__`;function ZT(){let{router:n}=Wv("useSubmit"),{basename:l}=C.useContext(pn),r=eT(),u=n.fetch,c=n.navigate;return C.useCallback(async(f,d={})=>{let{action:h,method:p,encType:y,formData:v,body:b}=TT(f,l);if(d.navigate===!1){let S=d.fetcherKey||FT();await u(S,r,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:b,formMethod:d.method||p,formEncType:d.encType||y,flushSync:d.flushSync})}else await c(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:b,formMethod:d.method||p,formEncType:d.encType||y,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[u,c,l,r])}function JT(n,{relative:l}={}){let{basename:r}=C.useContext(pn),u=C.useContext(wn);Ce(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),f={..._r(n||".",{relative:l})},d=El();if(n==null){f.search=d.search;let h=new URLSearchParams(f.search),p=h.getAll("index");if(p.some(v=>v==="")){h.delete("index"),p.filter(b=>b).forEach(b=>h.append("index",b));let v=h.toString();f.search=v?`?${v}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Ln([r,f.pathname])),Hn(f)}function kT(n,{relative:l}={}){let r=C.useContext(Xf);Ce(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Wv("useViewTransitionState"),c=_r(n,{relative:l});if(!r.isTransitioning)return!1;let f=yn(r.currentLocation.pathname,u)||r.currentLocation.pathname,d=yn(r.nextLocation.pathname,u)||r.nextLocation.pathname;return ps(c.pathname,d)!=null||ps(c.pathname,f)!=null}var tf,jp;function $T(){if(jp)return tf;jp=1;var n=typeof Element<"u",l=typeof Map=="function",r=typeof Set=="function",u=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function c(f,d){if(f===d)return!0;if(f&&d&&typeof f=="object"&&typeof d=="object"){if(f.constructor!==d.constructor)return!1;var h,p,y;if(Array.isArray(f)){if(h=f.length,h!=d.length)return!1;for(p=h;p--!==0;)if(!c(f[p],d[p]))return!1;return!0}var v;if(l&&f instanceof Map&&d instanceof Map){if(f.size!==d.size)return!1;for(v=f.entries();!(p=v.next()).done;)if(!d.has(p.value[0]))return!1;for(v=f.entries();!(p=v.next()).done;)if(!c(p.value[1],d.get(p.value[0])))return!1;return!0}if(r&&f instanceof Set&&d instanceof Set){if(f.size!==d.size)return!1;for(v=f.entries();!(p=v.next()).done;)if(!d.has(p.value[0]))return!1;return!0}if(u&&ArrayBuffer.isView(f)&&ArrayBuffer.isView(d)){if(h=f.length,h!=d.length)return!1;for(p=h;p--!==0;)if(f[p]!==d[p])return!1;return!0}if(f.constructor===RegExp)return f.source===d.source&&f.flags===d.flags;if(f.valueOf!==Object.prototype.valueOf&&typeof f.valueOf=="function"&&typeof d.valueOf=="function")return f.valueOf()===d.valueOf();if(f.toString!==Object.prototype.toString&&typeof f.toString=="function"&&typeof d.toString=="function")return f.toString()===d.toString();if(y=Object.keys(f),h=y.length,h!==Object.keys(d).length)return!1;for(p=h;p--!==0;)if(!Object.prototype.hasOwnProperty.call(d,y[p]))return!1;if(n&&f instanceof Element)return!1;for(p=h;p--!==0;)if(!((y[p]==="_owner"||y[p]==="__v"||y[p]==="__o")&&f.$$typeof)&&!c(f[y[p]],d[y[p]]))return!1;return!0}return f!==f&&d!==d}return tf=function(d,h){try{return c(d,h)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}},tf}var PT=$T();const WT=gs(PT);var nf,Lp;function IT(){if(Lp)return nf;Lp=1;var n=function(l,r,u,c,f,d,h,p){if(!l){var y;if(r===void 0)y=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var v=[u,c,f,d,h,p],b=0;y=new Error(r.replace(/%s/g,function(){return v[b++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}};return nf=n,nf}var eR=IT();const Hp=gs(eR);var af,Bp;function tR(){return Bp||(Bp=1,af=function(l,r,u,c){var f=u?u.call(c,l,r):void 0;if(f!==void 0)return!!f;if(l===r)return!0;if(typeof l!="object"||!l||typeof r!="object"||!r)return!1;var d=Object.keys(l),h=Object.keys(r);if(d.length!==h.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(r),y=0;y<d.length;y++){var v=d[y];if(!p(v))return!1;var b=l[v],S=r[v];if(f=u?u.call(c,b,S,v):void 0,f===!1||f===void 0&&b!==S)return!1}return!0}),af}var nR=tR();const aR=gs(nR);var Iv=(n=>(n.BASE="base",n.BODY="body",n.HEAD="head",n.HTML="html",n.LINK="link",n.META="meta",n.NOSCRIPT="noscript",n.SCRIPT="script",n.STYLE="style",n.TITLE="title",n.FRAGMENT="Symbol(react.fragment)",n))(Iv||{}),lf={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},qp=Object.values(Iv),kf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},lR=Object.entries(kf).reduce((n,[l,r])=>(n[r]=l,n),{}),An="data-rh",oi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ci=(n,l)=>{for(let r=n.length-1;r>=0;r-=1){const u=n[r];if(Object.prototype.hasOwnProperty.call(u,l))return u[l]}return null},iR=n=>{let l=ci(n,"title");const r=ci(n,oi.TITLE_TEMPLATE);if(Array.isArray(l)&&(l=l.join("")),r&&l)return r.replace(/%s/g,()=>l);const u=ci(n,oi.DEFAULT_TITLE);return l||u||void 0},rR=n=>ci(n,oi.ON_CHANGE_CLIENT_STATE)||(()=>{}),rf=(n,l)=>l.filter(r=>typeof r[n]<"u").map(r=>r[n]).reduce((r,u)=>({...r,...u}),{}),uR=(n,l)=>l.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,u)=>{if(!r.length){const c=Object.keys(u);for(let f=0;f<c.length;f+=1){const h=c[f].toLowerCase();if(n.indexOf(h)!==-1&&u[h])return r.concat(u)}}return r},[]),sR=n=>console&&typeof console.warn=="function"&&console.warn(n),hr=(n,l,r)=>{const u={};return r.filter(c=>Array.isArray(c[n])?!0:(typeof c[n]<"u"&&sR(`Helmet: ${n} should be of type "Array". Instead found type "${typeof c[n]}"`),!1)).map(c=>c[n]).reverse().reduce((c,f)=>{const d={};f.filter(p=>{let y;const v=Object.keys(p);for(let S=0;S<v.length;S+=1){const A=v[S],O=A.toLowerCase();l.indexOf(O)!==-1&&!(y==="rel"&&p[y].toLowerCase()==="canonical")&&!(O==="rel"&&p[O].toLowerCase()==="stylesheet")&&(y=O),l.indexOf(A)!==-1&&(A==="innerHTML"||A==="cssText"||A==="itemprop")&&(y=A)}if(!y||!p[y])return!1;const b=p[y].toLowerCase();return u[y]||(u[y]={}),d[y]||(d[y]={}),u[y][b]?!1:(d[y][b]=!0,!0)}).reverse().forEach(p=>c.push(p));const h=Object.keys(d);for(let p=0;p<h.length;p+=1){const y=h[p],v={...u[y],...d[y]};u[y]=v}return c},[]).reverse()},oR=(n,l)=>{if(Array.isArray(n)&&n.length){for(let r=0;r<n.length;r+=1)if(n[r][l])return!0}return!1},cR=n=>({baseTag:uR(["href"],n),bodyAttributes:rf("bodyAttributes",n),defer:ci(n,oi.DEFER),encode:ci(n,oi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:rf("htmlAttributes",n),linkTags:hr("link",["rel","href"],n),metaTags:hr("meta",["name","charset","http-equiv","property","itemprop"],n),noscriptTags:hr("noscript",["innerHTML"],n),onChangeClientState:rR(n),scriptTags:hr("script",["src","innerHTML"],n),styleTags:hr("style",["cssText"],n),title:iR(n),titleAttributes:rf("titleAttributes",n),prioritizeSeoTags:oR(n,oi.PRIORITIZE_SEO_TAGS)}),eg=n=>Array.isArray(n)?n.join(""):n,fR=(n,l)=>{const r=Object.keys(n);for(let u=0;u<r.length;u+=1)if(l[r[u]]&&l[r[u]].includes(n[r[u]]))return!0;return!1},uf=(n,l)=>Array.isArray(n)?n.reduce((r,u)=>(fR(u,l)?r.priority.push(u):r.default.push(u),r),{priority:[],default:[]}):{default:n,priority:[]},Qp=(n,l)=>({...n,[l]:void 0}),dR=["noscript","script","style"],Of=(n,l=!0)=>l===!1?String(n):String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),tg=n=>Object.keys(n).reduce((l,r)=>{const u=typeof n[r]<"u"?`${r}="${n[r]}"`:`${r}`;return l?`${l} ${u}`:u},""),hR=(n,l,r,u)=>{const c=tg(r),f=eg(l);return c?`<${n} ${An}="true" ${c}>${Of(f,u)}</${n}>`:`<${n} ${An}="true">${Of(f,u)}</${n}>`},mR=(n,l,r=!0)=>l.reduce((u,c)=>{const f=c,d=Object.keys(f).filter(y=>!(y==="innerHTML"||y==="cssText")).reduce((y,v)=>{const b=typeof f[v]>"u"?v:`${v}="${Of(f[v],r)}"`;return y?`${y} ${b}`:b},""),h=f.innerHTML||f.cssText||"",p=dR.indexOf(n)===-1;return`${u}<${n} ${An}="true" ${d}${p?"/>":`>${h}</${n}>`}`},""),ng=(n,l={})=>Object.keys(n).reduce((r,u)=>{const c=kf[u];return r[c||u]=n[u],r},l),yR=(n,l,r)=>{const u={key:l,[An]:!0},c=ng(r,u);return[ua.createElement("title",c,l)]},cs=(n,l)=>l.map((r,u)=>{const c={key:u,[An]:!0};return Object.keys(r).forEach(f=>{const h=kf[f]||f;if(h==="innerHTML"||h==="cssText"){const p=r.innerHTML||r.cssText;c.dangerouslySetInnerHTML={__html:p}}else c[h]=r[f]}),ua.createElement(n,c)}),dn=(n,l,r=!0)=>{switch(n){case"title":return{toComponent:()=>yR(n,l.title,l.titleAttributes),toString:()=>hR(n,l.title,l.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ng(l),toString:()=>tg(l)};default:return{toComponent:()=>cs(n,l),toString:()=>mR(n,l,r)}}},pR=({metaTags:n,linkTags:l,scriptTags:r,encode:u})=>{const c=uf(n,lf.meta),f=uf(l,lf.link),d=uf(r,lf.script);return{priorityMethods:{toComponent:()=>[...cs("meta",c.priority),...cs("link",f.priority),...cs("script",d.priority)],toString:()=>`${dn("meta",c.priority,u)} ${dn("link",f.priority,u)} ${dn("script",d.priority,u)}`},metaTags:c.default,linkTags:f.default,scriptTags:d.default}},vR=n=>{const{baseTag:l,bodyAttributes:r,encode:u=!0,htmlAttributes:c,noscriptTags:f,styleTags:d,title:h="",titleAttributes:p,prioritizeSeoTags:y}=n;let{linkTags:v,metaTags:b,scriptTags:S}=n,A={toComponent:()=>{},toString:()=>""};return y&&({priorityMethods:A,linkTags:v,metaTags:b,scriptTags:S}=pR(n)),{priority:A,base:dn("base",l,u),bodyAttributes:dn("bodyAttributes",r,u),htmlAttributes:dn("htmlAttributes",c,u),link:dn("link",v,u),meta:dn("meta",b,u),noscript:dn("noscript",f,u),script:dn("script",S,u),style:dn("style",d,u),title:dn("title",{title:h,titleAttributes:p},u)}},xf=vR,ls=[],ag=!!(typeof window<"u"&&window.document&&window.document.createElement),Af=class{instances=[];canUseDOM=ag;context;value={setHelmet:n=>{this.context.helmet=n},helmetInstances:{get:()=>this.canUseDOM?ls:this.instances,add:n=>{(this.canUseDOM?ls:this.instances).push(n)},remove:n=>{const l=(this.canUseDOM?ls:this.instances).indexOf(n);(this.canUseDOM?ls:this.instances).splice(l,1)}}};constructor(n,l){this.context=n,this.canUseDOM=l||!1,l||(n.helmet=xf({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},gR={},lg=ua.createContext(gR),ig=class rg extends C.Component{static canUseDOM=ag;helmetData;constructor(l){super(l),this.helmetData=new Af(this.props.context||{},rg.canUseDOM)}render(){return ua.createElement(lg.Provider,{value:this.helmetData.value},this.props.children)}},ii=(n,l)=>{const r=document.head||document.querySelector("head"),u=r.querySelectorAll(`${n}[${An}]`),c=[].slice.call(u),f=[];let d;return l&&l.length&&l.forEach(h=>{const p=document.createElement(n);for(const y in h)if(Object.prototype.hasOwnProperty.call(h,y))if(y==="innerHTML")p.innerHTML=h.innerHTML;else if(y==="cssText")p.styleSheet?p.styleSheet.cssText=h.cssText:p.appendChild(document.createTextNode(h.cssText));else{const v=y,b=typeof h[v]>"u"?"":h[v];p.setAttribute(y,b)}p.setAttribute(An,"true"),c.some((y,v)=>(d=v,p.isEqualNode(y)))?c.splice(d,1):f.push(p)}),c.forEach(h=>h.parentNode?.removeChild(h)),f.forEach(h=>r.appendChild(h)),{oldTags:c,newTags:f}},wf=(n,l)=>{const r=document.getElementsByTagName(n)[0];if(!r)return;const u=r.getAttribute(An),c=u?u.split(","):[],f=[...c],d=Object.keys(l);for(const h of d){const p=l[h]||"";r.getAttribute(h)!==p&&r.setAttribute(h,p),c.indexOf(h)===-1&&c.push(h);const y=f.indexOf(h);y!==-1&&f.splice(y,1)}for(let h=f.length-1;h>=0;h-=1)r.removeAttribute(f[h]);c.length===f.length?r.removeAttribute(An):r.getAttribute(An)!==d.join(",")&&r.setAttribute(An,d.join(","))},bR=(n,l)=>{typeof n<"u"&&document.title!==n&&(document.title=eg(n)),wf("title",l)},Yp=(n,l)=>{const{baseTag:r,bodyAttributes:u,htmlAttributes:c,linkTags:f,metaTags:d,noscriptTags:h,onChangeClientState:p,scriptTags:y,styleTags:v,title:b,titleAttributes:S}=n;wf("body",u),wf("html",c),bR(b,S);const A={baseTag:ii("base",r),linkTags:ii("link",f),metaTags:ii("meta",d),noscriptTags:ii("noscript",h),scriptTags:ii("script",y),styleTags:ii("style",v)},O={},z={};Object.keys(A).forEach(_=>{const{newTags:K,oldTags:X}=A[_];K.length&&(O[_]=K),X.length&&(z[_]=A[_].oldTags)}),l&&l(),p(n,O,z)},mr=null,SR=n=>{mr&&cancelAnimationFrame(mr),n.defer?mr=requestAnimationFrame(()=>{Yp(n,()=>{mr=null})}):(Yp(n),mr=null)},ER=SR,Gp=class extends C.Component{rendered=!1;shouldComponentUpdate(n){return!aR(n,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:n}=this.props.context;n.remove(this),this.emitChange()}emitChange(){const{helmetInstances:n,setHelmet:l}=this.props.context;let r=null;const u=cR(n.get().map(c=>{const f={...c.props};return delete f.context,f}));ig.canUseDOM?ER(u):xf&&(r=xf(u)),l(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:n}=this.props.context;n.add(this),this.emitChange()}render(){return this.init(),null}},TR=class extends C.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(n){return!WT(Qp(this.props,"helmetData"),Qp(n,"helmetData"))}mapNestedChildrenToProps(n,l){if(!l)return null;switch(n.type){case"script":case"noscript":return{innerHTML:l};case"style":return{cssText:l};default:throw new Error(`<${n.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(n,l,r,u){return{...l,[n.type]:[...l[n.type]||[],{...r,...this.mapNestedChildrenToProps(n,u)}]}}mapObjectTypeChildren(n,l,r,u){switch(n.type){case"title":return{...l,[n.type]:u,titleAttributes:{...r}};case"body":return{...l,bodyAttributes:{...r}};case"html":return{...l,htmlAttributes:{...r}};default:return{...l,[n.type]:{...r}}}}mapArrayTypeChildrenToProps(n,l){let r={...l};return Object.keys(n).forEach(u=>{r={...r,[u]:n[u]}}),r}warnOnInvalidChildren(n,l){return Hp(qp.some(r=>n.type===r),typeof n.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${qp.join(", ")} are allowed. Helmet does not support rendering <${n.type}> elements. Refer to our API for more information.`),Hp(!l||typeof l=="string"||Array.isArray(l)&&!l.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${n.type}>. Did you forget to wrap your children in braces? ( <${n.type}>{\`\`}</${n.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(n,l){let r={};return ua.Children.forEach(n,u=>{if(!u||!u.props)return;const{children:c,...f}=u.props,d=Object.keys(f).reduce((p,y)=>(p[lR[y]||y]=f[y],p),{});let{type:h}=u;switch(typeof h=="symbol"?h=h.toString():this.warnOnInvalidChildren(u,c),h){case"Symbol(react.fragment)":l=this.mapChildrenToProps(c,l);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(u,r,d,c);break;default:l=this.mapObjectTypeChildren(u,l,d,c);break}}),this.mapArrayTypeChildrenToProps(r,l)}render(){const{children:n,...l}=this.props;let r={...l},{helmetData:u}=l;if(n&&(r=this.mapChildrenToProps(n,r)),u&&!(u instanceof Af)){const c=u;u=new Af(c.context,!0),delete r.helmetData}return u?ua.createElement(Gp,{...r,context:u.value}):ua.createElement(lg.Consumer,null,c=>ua.createElement(Gp,{...r,context:c}))}};const yr={title:"React App",description:"A modern React application built with Vite",keywords:"react, vite, typescript, spa",image:"/og-image.png"};function RR({children:n}){return J.jsx(ig,{children:n})}function $f({title:n,description:l,keywords:r,image:u,url:c}){const f=n?`${n} | ${yr.title}`:yr.title,d=l||yr.description,h=r||yr.keywords,p=u||yr.image,y=c||window.location.href;return J.jsxs(TR,{children:[J.jsx("title",{children:f}),J.jsx("meta",{name:"description",content:d}),J.jsx("meta",{name:"keywords",content:h}),J.jsx("meta",{property:"og:type",content:"website"}),J.jsx("meta",{property:"og:title",content:f}),J.jsx("meta",{property:"og:description",content:d}),J.jsx("meta",{property:"og:image",content:p}),J.jsx("meta",{property:"og:url",content:y}),J.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),J.jsx("meta",{name:"twitter:title",content:f}),J.jsx("meta",{name:"twitter:description",content:d}),J.jsx("meta",{name:"twitter:image",content:p}),J.jsx("link",{rel:"canonical",href:y})]})}const OR=new cS({defaultOptions:{queries:{staleTime:1e3*60*5,gcTime:1e3*60*10,retry:1,refetchOnWindowFocus:!1}}});function ug(n,l){return function(){return n.apply(l,arguments)}}const{toString:xR}=Object.prototype,{getPrototypeOf:Pf}=Object,{iterator:xs,toStringTag:sg}=Symbol,As=(n=>l=>{const r=xR.call(l);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Cn=n=>(n=n.toLowerCase(),l=>As(l)===n),ws=n=>l=>typeof l===n,{isArray:di}=Array,fi=ws("undefined");function Ur(n){return n!==null&&!fi(n)&&n.constructor!==null&&!fi(n.constructor)&&Vt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const og=Cn("ArrayBuffer");function AR(n){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(n):l=n&&n.buffer&&og(n.buffer),l}const wR=ws("string"),Vt=ws("function"),cg=ws("number"),Nr=n=>n!==null&&typeof n=="object",CR=n=>n===!0||n===!1,fs=n=>{if(As(n)!=="object")return!1;const l=Pf(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(sg in n)&&!(xs in n)},DR=n=>{if(!Nr(n)||Ur(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},MR=Cn("Date"),zR=Cn("File"),_R=Cn("Blob"),UR=Cn("FileList"),NR=n=>Nr(n)&&Vt(n.pipe),jR=n=>{let l;return n&&(typeof FormData=="function"&&n instanceof FormData||Vt(n.append)&&((l=As(n))==="formdata"||l==="object"&&Vt(n.toString)&&n.toString()==="[object FormData]"))},LR=Cn("URLSearchParams"),[HR,BR,qR,QR]=["ReadableStream","Request","Response","Headers"].map(Cn),YR=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jr(n,l,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let u,c;if(typeof n!="object"&&(n=[n]),di(n))for(u=0,c=n.length;u<c;u++)l.call(null,n[u],u,n);else{if(Ur(n))return;const f=r?Object.getOwnPropertyNames(n):Object.keys(n),d=f.length;let h;for(u=0;u<d;u++)h=f[u],l.call(null,n[h],h,n)}}function fg(n,l){if(Ur(n))return null;l=l.toLowerCase();const r=Object.keys(n);let u=r.length,c;for(;u-- >0;)if(c=r[u],l===c.toLowerCase())return c;return null}const pl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dg=n=>!fi(n)&&n!==pl;function Cf(){const{caseless:n,skipUndefined:l}=dg(this)&&this||{},r={},u=(c,f)=>{const d=n&&fg(r,f)||f;fs(r[d])&&fs(c)?r[d]=Cf(r[d],c):fs(c)?r[d]=Cf({},c):di(c)?r[d]=c.slice():(!l||!fi(c))&&(r[d]=c)};for(let c=0,f=arguments.length;c<f;c++)arguments[c]&&jr(arguments[c],u);return r}const GR=(n,l,r,{allOwnKeys:u}={})=>(jr(l,(c,f)=>{r&&Vt(c)?n[f]=ug(c,r):n[f]=c},{allOwnKeys:u}),n),XR=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),VR=(n,l,r,u)=>{n.prototype=Object.create(l.prototype,u),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:l.prototype}),r&&Object.assign(n.prototype,r)},KR=(n,l,r,u)=>{let c,f,d;const h={};if(l=l||{},n==null)return l;do{for(c=Object.getOwnPropertyNames(n),f=c.length;f-- >0;)d=c[f],(!u||u(d,n,l))&&!h[d]&&(l[d]=n[d],h[d]=!0);n=r!==!1&&Pf(n)}while(n&&(!r||r(n,l))&&n!==Object.prototype);return l},FR=(n,l,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=l.length;const u=n.indexOf(l,r);return u!==-1&&u===r},ZR=n=>{if(!n)return null;if(di(n))return n;let l=n.length;if(!cg(l))return null;const r=new Array(l);for(;l-- >0;)r[l]=n[l];return r},JR=(n=>l=>n&&l instanceof n)(typeof Uint8Array<"u"&&Pf(Uint8Array)),kR=(n,l)=>{const u=(n&&n[xs]).call(n);let c;for(;(c=u.next())&&!c.done;){const f=c.value;l.call(n,f[0],f[1])}},$R=(n,l)=>{let r;const u=[];for(;(r=n.exec(l))!==null;)u.push(r);return u},PR=Cn("HTMLFormElement"),WR=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,u,c){return u.toUpperCase()+c}),Xp=(({hasOwnProperty:n})=>(l,r)=>n.call(l,r))(Object.prototype),IR=Cn("RegExp"),hg=(n,l)=>{const r=Object.getOwnPropertyDescriptors(n),u={};jr(r,(c,f)=>{let d;(d=l(c,f,n))!==!1&&(u[f]=d||c)}),Object.defineProperties(n,u)},eO=n=>{hg(n,(l,r)=>{if(Vt(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const u=n[r];if(Vt(u)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},tO=(n,l)=>{const r={},u=c=>{c.forEach(f=>{r[f]=!0})};return di(n)?u(n):u(String(n).split(l)),r},nO=()=>{},aO=(n,l)=>n!=null&&Number.isFinite(n=+n)?n:l;function lO(n){return!!(n&&Vt(n.append)&&n[sg]==="FormData"&&n[xs])}const iO=n=>{const l=new Array(10),r=(u,c)=>{if(Nr(u)){if(l.indexOf(u)>=0)return;if(Ur(u))return u;if(!("toJSON"in u)){l[c]=u;const f=di(u)?[]:{};return jr(u,(d,h)=>{const p=r(d,c+1);!fi(p)&&(f[h]=p)}),l[c]=void 0,f}}return u};return r(n,0)},rO=Cn("AsyncFunction"),uO=n=>n&&(Nr(n)||Vt(n))&&Vt(n.then)&&Vt(n.catch),mg=((n,l)=>n?setImmediate:l?((r,u)=>(pl.addEventListener("message",({source:c,data:f})=>{c===pl&&f===r&&u.length&&u.shift()()},!1),c=>{u.push(c),pl.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Vt(pl.postMessage)),sO=typeof queueMicrotask<"u"?queueMicrotask.bind(pl):typeof process<"u"&&process.nextTick||mg,oO=n=>n!=null&&Vt(n[xs]),B={isArray:di,isArrayBuffer:og,isBuffer:Ur,isFormData:jR,isArrayBufferView:AR,isString:wR,isNumber:cg,isBoolean:CR,isObject:Nr,isPlainObject:fs,isEmptyObject:DR,isReadableStream:HR,isRequest:BR,isResponse:qR,isHeaders:QR,isUndefined:fi,isDate:MR,isFile:zR,isBlob:_R,isRegExp:IR,isFunction:Vt,isStream:NR,isURLSearchParams:LR,isTypedArray:JR,isFileList:UR,forEach:jr,merge:Cf,extend:GR,trim:YR,stripBOM:XR,inherits:VR,toFlatObject:KR,kindOf:As,kindOfTest:Cn,endsWith:FR,toArray:ZR,forEachEntry:kR,matchAll:$R,isHTMLForm:PR,hasOwnProperty:Xp,hasOwnProp:Xp,reduceDescriptors:hg,freezeMethods:eO,toObjectSet:tO,toCamelCase:WR,noop:nO,toFiniteNumber:aO,findKey:fg,global:pl,isContextDefined:dg,isSpecCompliantForm:lO,toJSONObject:iO,isAsyncFn:rO,isThenable:uO,setImmediate:mg,asap:sO,isIterable:oO};function Oe(n,l,r,u,c){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",l&&(this.code=l),r&&(this.config=r),u&&(this.request=u),c&&(this.response=c,this.status=c.status?c.status:null)}B.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.status}}});const yg=Oe.prototype,pg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{pg[n]={value:n}});Object.defineProperties(Oe,pg);Object.defineProperty(yg,"isAxiosError",{value:!0});Oe.from=(n,l,r,u,c,f)=>{const d=Object.create(yg);B.toFlatObject(n,d,function(v){return v!==Error.prototype},y=>y!=="isAxiosError");const h=n&&n.message?n.message:"Error",p=l==null&&n?n.code:l;return Oe.call(d,h,p,r,u,c),n&&d.cause==null&&Object.defineProperty(d,"cause",{value:n,configurable:!0}),d.name=n&&n.name||"Error",f&&Object.assign(d,f),d};const cO=null;function Df(n){return B.isPlainObject(n)||B.isArray(n)}function vg(n){return B.endsWith(n,"[]")?n.slice(0,-2):n}function Vp(n,l,r){return n?n.concat(l).map(function(c,f){return c=vg(c),!r&&f?"["+c+"]":c}).join(r?".":""):l}function fO(n){return B.isArray(n)&&!n.some(Df)}const dO=B.toFlatObject(B,{},null,function(l){return/^is[A-Z]/.test(l)});function Cs(n,l,r){if(!B.isObject(n))throw new TypeError("target must be an object");l=l||new FormData,r=B.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(z,_){return!B.isUndefined(_[z])});const u=r.metaTokens,c=r.visitor||v,f=r.dots,d=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(l);if(!B.isFunction(c))throw new TypeError("visitor must be a function");function y(O){if(O===null)return"";if(B.isDate(O))return O.toISOString();if(B.isBoolean(O))return O.toString();if(!p&&B.isBlob(O))throw new Oe("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(O)||B.isTypedArray(O)?p&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function v(O,z,_){let K=O;if(O&&!_&&typeof O=="object"){if(B.endsWith(z,"{}"))z=u?z:z.slice(0,-2),O=JSON.stringify(O);else if(B.isArray(O)&&fO(O)||(B.isFileList(O)||B.endsWith(z,"[]"))&&(K=B.toArray(O)))return z=vg(z),K.forEach(function(F,ie){!(B.isUndefined(F)||F===null)&&l.append(d===!0?Vp([z],ie,f):d===null?z:z+"[]",y(F))}),!1}return Df(O)?!0:(l.append(Vp(_,z,f),y(O)),!1)}const b=[],S=Object.assign(dO,{defaultVisitor:v,convertValue:y,isVisitable:Df});function A(O,z){if(!B.isUndefined(O)){if(b.indexOf(O)!==-1)throw Error("Circular reference detected in "+z.join("."));b.push(O),B.forEach(O,function(K,X){(!(B.isUndefined(K)||K===null)&&c.call(l,K,B.isString(X)?X.trim():X,z,S))===!0&&A(K,z?z.concat(X):[X])}),b.pop()}}if(!B.isObject(n))throw new TypeError("data must be an object");return A(n),l}function Kp(n){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(u){return l[u]})}function Wf(n,l){this._pairs=[],n&&Cs(n,this,l)}const gg=Wf.prototype;gg.append=function(l,r){this._pairs.push([l,r])};gg.toString=function(l){const r=l?function(u){return l.call(this,u,Kp)}:Kp;return this._pairs.map(function(c){return r(c[0])+"="+r(c[1])},"").join("&")};function hO(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function bg(n,l,r){if(!l)return n;const u=r&&r.encode||hO;B.isFunction(r)&&(r={serialize:r});const c=r&&r.serialize;let f;if(c?f=c(l,r):f=B.isURLSearchParams(l)?l.toString():new Wf(l,r).toString(u),f){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class Fp{constructor(){this.handlers=[]}use(l,r,u){return this.handlers.push({fulfilled:l,rejected:r,synchronous:u?u.synchronous:!1,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){B.forEach(this.handlers,function(u){u!==null&&l(u)})}}const Sg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mO=typeof URLSearchParams<"u"?URLSearchParams:Wf,yO=typeof FormData<"u"?FormData:null,pO=typeof Blob<"u"?Blob:null,vO={isBrowser:!0,classes:{URLSearchParams:mO,FormData:yO,Blob:pO},protocols:["http","https","file","blob","url","data"]},If=typeof window<"u"&&typeof document<"u",Mf=typeof navigator=="object"&&navigator||void 0,gO=If&&(!Mf||["ReactNative","NativeScript","NS"].indexOf(Mf.product)<0),bO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SO=If&&window.location.href||"http://localhost",EO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:If,hasStandardBrowserEnv:gO,hasStandardBrowserWebWorkerEnv:bO,navigator:Mf,origin:SO},Symbol.toStringTag,{value:"Module"})),Ut={...EO,...vO};function TO(n,l){return Cs(n,new Ut.classes.URLSearchParams,{visitor:function(r,u,c,f){return Ut.isNode&&B.isBuffer(r)?(this.append(u,r.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...l})}function RO(n){return B.matchAll(/\w+|\[(\w*)]/g,n).map(l=>l[0]==="[]"?"":l[1]||l[0])}function OO(n){const l={},r=Object.keys(n);let u;const c=r.length;let f;for(u=0;u<c;u++)f=r[u],l[f]=n[f];return l}function Eg(n){function l(r,u,c,f){let d=r[f++];if(d==="__proto__")return!0;const h=Number.isFinite(+d),p=f>=r.length;return d=!d&&B.isArray(c)?c.length:d,p?(B.hasOwnProp(c,d)?c[d]=[c[d],u]:c[d]=u,!h):((!c[d]||!B.isObject(c[d]))&&(c[d]=[]),l(r,u,c[d],f)&&B.isArray(c[d])&&(c[d]=OO(c[d])),!h)}if(B.isFormData(n)&&B.isFunction(n.entries)){const r={};return B.forEachEntry(n,(u,c)=>{l(RO(u),c,r,0)}),r}return null}function xO(n,l,r){if(B.isString(n))try{return(l||JSON.parse)(n),B.trim(n)}catch(u){if(u.name!=="SyntaxError")throw u}return(r||JSON.stringify)(n)}const Lr={transitional:Sg,adapter:["xhr","http","fetch"],transformRequest:[function(l,r){const u=r.getContentType()||"",c=u.indexOf("application/json")>-1,f=B.isObject(l);if(f&&B.isHTMLForm(l)&&(l=new FormData(l)),B.isFormData(l))return c?JSON.stringify(Eg(l)):l;if(B.isArrayBuffer(l)||B.isBuffer(l)||B.isStream(l)||B.isFile(l)||B.isBlob(l)||B.isReadableStream(l))return l;if(B.isArrayBufferView(l))return l.buffer;if(B.isURLSearchParams(l))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let h;if(f){if(u.indexOf("application/x-www-form-urlencoded")>-1)return TO(l,this.formSerializer).toString();if((h=B.isFileList(l))||u.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Cs(h?{"files[]":l}:l,p&&new p,this.formSerializer)}}return f||c?(r.setContentType("application/json",!1),xO(l)):l}],transformResponse:[function(l){const r=this.transitional||Lr.transitional,u=r&&r.forcedJSONParsing,c=this.responseType==="json";if(B.isResponse(l)||B.isReadableStream(l))return l;if(l&&B.isString(l)&&(u&&!this.responseType||c)){const d=!(r&&r.silentJSONParsing)&&c;try{return JSON.parse(l,this.parseReviver)}catch(h){if(d)throw h.name==="SyntaxError"?Oe.from(h,Oe.ERR_BAD_RESPONSE,this,null,this.response):h}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ut.classes.FormData,Blob:Ut.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],n=>{Lr.headers[n]={}});const AO=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wO=n=>{const l={};let r,u,c;return n&&n.split(`
|
|
189
|
+
`).forEach(function(d){c=d.indexOf(":"),r=d.substring(0,c).trim().toLowerCase(),u=d.substring(c+1).trim(),!(!r||l[r]&&AO[r])&&(r==="set-cookie"?l[r]?l[r].push(u):l[r]=[u]:l[r]=l[r]?l[r]+", "+u:u)}),l},Zp=Symbol("internals");function pr(n){return n&&String(n).trim().toLowerCase()}function ds(n){return n===!1||n==null?n:B.isArray(n)?n.map(ds):String(n)}function CO(n){const l=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let u;for(;u=r.exec(n);)l[u[1]]=u[2];return l}const DO=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function sf(n,l,r,u,c){if(B.isFunction(u))return u.call(this,l,r);if(c&&(l=r),!!B.isString(l)){if(B.isString(u))return l.indexOf(u)!==-1;if(B.isRegExp(u))return u.test(l)}}function MO(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,r,u)=>r.toUpperCase()+u)}function zO(n,l){const r=B.toCamelCase(" "+l);["get","set","has"].forEach(u=>{Object.defineProperty(n,u+r,{value:function(c,f,d){return this[u].call(this,l,c,f,d)},configurable:!0})})}let Kt=class{constructor(l){l&&this.set(l)}set(l,r,u){const c=this;function f(h,p,y){const v=pr(p);if(!v)throw new Error("header name must be a non-empty string");const b=B.findKey(c,v);(!b||c[b]===void 0||y===!0||y===void 0&&c[b]!==!1)&&(c[b||p]=ds(h))}const d=(h,p)=>B.forEach(h,(y,v)=>f(y,v,p));if(B.isPlainObject(l)||l instanceof this.constructor)d(l,r);else if(B.isString(l)&&(l=l.trim())&&!DO(l))d(wO(l),r);else if(B.isObject(l)&&B.isIterable(l)){let h={},p,y;for(const v of l){if(!B.isArray(v))throw TypeError("Object iterator must return a key-value pair");h[y=v[0]]=(p=h[y])?B.isArray(p)?[...p,v[1]]:[p,v[1]]:v[1]}d(h,r)}else l!=null&&f(r,l,u);return this}get(l,r){if(l=pr(l),l){const u=B.findKey(this,l);if(u){const c=this[u];if(!r)return c;if(r===!0)return CO(c);if(B.isFunction(r))return r.call(this,c,u);if(B.isRegExp(r))return r.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,r){if(l=pr(l),l){const u=B.findKey(this,l);return!!(u&&this[u]!==void 0&&(!r||sf(this,this[u],u,r)))}return!1}delete(l,r){const u=this;let c=!1;function f(d){if(d=pr(d),d){const h=B.findKey(u,d);h&&(!r||sf(u,u[h],h,r))&&(delete u[h],c=!0)}}return B.isArray(l)?l.forEach(f):f(l),c}clear(l){const r=Object.keys(this);let u=r.length,c=!1;for(;u--;){const f=r[u];(!l||sf(this,this[f],f,l,!0))&&(delete this[f],c=!0)}return c}normalize(l){const r=this,u={};return B.forEach(this,(c,f)=>{const d=B.findKey(u,f);if(d){r[d]=ds(c),delete r[f];return}const h=l?MO(f):String(f).trim();h!==f&&delete r[f],r[h]=ds(c),u[h]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const r=Object.create(null);return B.forEach(this,(u,c)=>{u!=null&&u!==!1&&(r[c]=l&&B.isArray(u)?u.join(", "):u)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([l,r])=>l+": "+r).join(`
|
|
190
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...r){const u=new this(l);return r.forEach(c=>u.set(c)),u}static accessor(l){const u=(this[Zp]=this[Zp]={accessors:{}}).accessors,c=this.prototype;function f(d){const h=pr(d);u[h]||(zO(c,d),u[h]=!0)}return B.isArray(l)?l.forEach(f):f(l),this}};Kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(Kt.prototype,({value:n},l)=>{let r=l[0].toUpperCase()+l.slice(1);return{get:()=>n,set(u){this[r]=u}}});B.freezeMethods(Kt);function of(n,l){const r=this||Lr,u=l||r,c=Kt.from(u.headers);let f=u.data;return B.forEach(n,function(h){f=h.call(r,f,c.normalize(),l?l.status:void 0)}),c.normalize(),f}function Tg(n){return!!(n&&n.__CANCEL__)}function hi(n,l,r){Oe.call(this,n??"canceled",Oe.ERR_CANCELED,l,r),this.name="CanceledError"}B.inherits(hi,Oe,{__CANCEL__:!0});function Rg(n,l,r){const u=r.config.validateStatus;!r.status||!u||u(r.status)?n(r):l(new Oe("Request failed with status code "+r.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function _O(n){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return l&&l[1]||""}function UO(n,l){n=n||10;const r=new Array(n),u=new Array(n);let c=0,f=0,d;return l=l!==void 0?l:1e3,function(p){const y=Date.now(),v=u[f];d||(d=y),r[c]=p,u[c]=y;let b=f,S=0;for(;b!==c;)S+=r[b++],b=b%n;if(c=(c+1)%n,c===f&&(f=(f+1)%n),y-d<l)return;const A=v&&y-v;return A?Math.round(S*1e3/A):void 0}}function NO(n,l){let r=0,u=1e3/l,c,f;const d=(y,v=Date.now())=>{r=v,c=null,f&&(clearTimeout(f),f=null),n(...y)};return[(...y)=>{const v=Date.now(),b=v-r;b>=u?d(y,v):(c=y,f||(f=setTimeout(()=>{f=null,d(c)},u-b)))},()=>c&&d(c)]}const vs=(n,l,r=3)=>{let u=0;const c=UO(50,250);return NO(f=>{const d=f.loaded,h=f.lengthComputable?f.total:void 0,p=d-u,y=c(p),v=d<=h;u=d;const b={loaded:d,total:h,progress:h?d/h:void 0,bytes:p,rate:y||void 0,estimated:y&&h&&v?(h-d)/y:void 0,event:f,lengthComputable:h!=null,[l?"download":"upload"]:!0};n(b)},r)},Jp=(n,l)=>{const r=n!=null;return[u=>l[0]({lengthComputable:r,total:n,loaded:u}),l[1]]},kp=n=>(...l)=>B.asap(()=>n(...l)),jO=Ut.hasStandardBrowserEnv?((n,l)=>r=>(r=new URL(r,Ut.origin),n.protocol===r.protocol&&n.host===r.host&&(l||n.port===r.port)))(new URL(Ut.origin),Ut.navigator&&/(msie|trident)/i.test(Ut.navigator.userAgent)):()=>!0,LO=Ut.hasStandardBrowserEnv?{write(n,l,r,u,c,f,d){if(typeof document>"u")return;const h=[`${n}=${encodeURIComponent(l)}`];B.isNumber(r)&&h.push(`expires=${new Date(r).toUTCString()}`),B.isString(u)&&h.push(`path=${u}`),B.isString(c)&&h.push(`domain=${c}`),f===!0&&h.push("secure"),B.isString(d)&&h.push(`SameSite=${d}`),document.cookie=h.join("; ")},read(n){if(typeof document>"u")return null;const l=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return l?decodeURIComponent(l[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function HO(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function BO(n,l){return l?n.replace(/\/?\/$/,"")+"/"+l.replace(/^\/+/,""):n}function Og(n,l,r){let u=!HO(l);return n&&(u||r==!1)?BO(n,l):l}const $p=n=>n instanceof Kt?{...n}:n;function bl(n,l){l=l||{};const r={};function u(y,v,b,S){return B.isPlainObject(y)&&B.isPlainObject(v)?B.merge.call({caseless:S},y,v):B.isPlainObject(v)?B.merge({},v):B.isArray(v)?v.slice():v}function c(y,v,b,S){if(B.isUndefined(v)){if(!B.isUndefined(y))return u(void 0,y,b,S)}else return u(y,v,b,S)}function f(y,v){if(!B.isUndefined(v))return u(void 0,v)}function d(y,v){if(B.isUndefined(v)){if(!B.isUndefined(y))return u(void 0,y)}else return u(void 0,v)}function h(y,v,b){if(b in l)return u(y,v);if(b in n)return u(void 0,y)}const p={url:f,method:f,data:f,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:h,headers:(y,v,b)=>c($p(y),$p(v),b,!0)};return B.forEach(Object.keys({...n,...l}),function(v){const b=p[v]||c,S=b(n[v],l[v],v);B.isUndefined(S)&&b!==h||(r[v]=S)}),r}const xg=n=>{const l=bl({},n);let{data:r,withXSRFToken:u,xsrfHeaderName:c,xsrfCookieName:f,headers:d,auth:h}=l;if(l.headers=d=Kt.from(d),l.url=bg(Og(l.baseURL,l.url,l.allowAbsoluteUrls),n.params,n.paramsSerializer),h&&d.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),B.isFormData(r)){if(Ut.hasStandardBrowserEnv||Ut.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(B.isFunction(r.getHeaders)){const p=r.getHeaders(),y=["content-type","content-length"];Object.entries(p).forEach(([v,b])=>{y.includes(v.toLowerCase())&&d.set(v,b)})}}if(Ut.hasStandardBrowserEnv&&(u&&B.isFunction(u)&&(u=u(l)),u||u!==!1&&jO(l.url))){const p=c&&f&&LO.read(f);p&&d.set(c,p)}return l},qO=typeof XMLHttpRequest<"u",QO=qO&&function(n){return new Promise(function(r,u){const c=xg(n);let f=c.data;const d=Kt.from(c.headers).normalize();let{responseType:h,onUploadProgress:p,onDownloadProgress:y}=c,v,b,S,A,O;function z(){A&&A(),O&&O(),c.cancelToken&&c.cancelToken.unsubscribe(v),c.signal&&c.signal.removeEventListener("abort",v)}let _=new XMLHttpRequest;_.open(c.method.toUpperCase(),c.url,!0),_.timeout=c.timeout;function K(){if(!_)return;const F=Kt.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),ue={data:!h||h==="text"||h==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:F,config:n,request:_};Rg(function(w){r(w),z()},function(w){u(w),z()},ue),_=null}"onloadend"in _?_.onloadend=K:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(K)},_.onabort=function(){_&&(u(new Oe("Request aborted",Oe.ECONNABORTED,n,_)),_=null)},_.onerror=function(ie){const ue=ie&&ie.message?ie.message:"Network Error",ve=new Oe(ue,Oe.ERR_NETWORK,n,_);ve.event=ie||null,u(ve),_=null},_.ontimeout=function(){let ie=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const ue=c.transitional||Sg;c.timeoutErrorMessage&&(ie=c.timeoutErrorMessage),u(new Oe(ie,ue.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,n,_)),_=null},f===void 0&&d.setContentType(null),"setRequestHeader"in _&&B.forEach(d.toJSON(),function(ie,ue){_.setRequestHeader(ue,ie)}),B.isUndefined(c.withCredentials)||(_.withCredentials=!!c.withCredentials),h&&h!=="json"&&(_.responseType=c.responseType),y&&([S,O]=vs(y,!0),_.addEventListener("progress",S)),p&&_.upload&&([b,A]=vs(p),_.upload.addEventListener("progress",b),_.upload.addEventListener("loadend",A)),(c.cancelToken||c.signal)&&(v=F=>{_&&(u(!F||F.type?new hi(null,n,_):F),_.abort(),_=null)},c.cancelToken&&c.cancelToken.subscribe(v),c.signal&&(c.signal.aborted?v():c.signal.addEventListener("abort",v)));const X=_O(c.url);if(X&&Ut.protocols.indexOf(X)===-1){u(new Oe("Unsupported protocol "+X+":",Oe.ERR_BAD_REQUEST,n));return}_.send(f||null)})},YO=(n,l)=>{const{length:r}=n=n?n.filter(Boolean):[];if(l||r){let u=new AbortController,c;const f=function(y){if(!c){c=!0,h();const v=y instanceof Error?y:this.reason;u.abort(v instanceof Oe?v:new hi(v instanceof Error?v.message:v))}};let d=l&&setTimeout(()=>{d=null,f(new Oe(`timeout ${l} of ms exceeded`,Oe.ETIMEDOUT))},l);const h=()=>{n&&(d&&clearTimeout(d),d=null,n.forEach(y=>{y.unsubscribe?y.unsubscribe(f):y.removeEventListener("abort",f)}),n=null)};n.forEach(y=>y.addEventListener("abort",f));const{signal:p}=u;return p.unsubscribe=()=>B.asap(h),p}},GO=function*(n,l){let r=n.byteLength;if(r<l){yield n;return}let u=0,c;for(;u<r;)c=u+l,yield n.slice(u,c),u=c},XO=async function*(n,l){for await(const r of VO(n))yield*GO(r,l)},VO=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const l=n.getReader();try{for(;;){const{done:r,value:u}=await l.read();if(r)break;yield u}}finally{await l.cancel()}},Pp=(n,l,r,u)=>{const c=XO(n,l);let f=0,d,h=p=>{d||(d=!0,u&&u(p))};return new ReadableStream({async pull(p){try{const{done:y,value:v}=await c.next();if(y){h(),p.close();return}let b=v.byteLength;if(r){let S=f+=b;r(S)}p.enqueue(new Uint8Array(v))}catch(y){throw h(y),y}},cancel(p){return h(p),c.return()}},{highWaterMark:2})},Wp=64*1024,{isFunction:is}=B,KO=(({Request:n,Response:l})=>({Request:n,Response:l}))(B.global),{ReadableStream:Ip,TextEncoder:ev}=B.global,tv=(n,...l)=>{try{return!!n(...l)}catch{return!1}},FO=n=>{n=B.merge.call({skipUndefined:!0},KO,n);const{fetch:l,Request:r,Response:u}=n,c=l?is(l):typeof fetch=="function",f=is(r),d=is(u);if(!c)return!1;const h=c&&is(Ip),p=c&&(typeof ev=="function"?(O=>z=>O.encode(z))(new ev):async O=>new Uint8Array(await new r(O).arrayBuffer())),y=f&&h&&tv(()=>{let O=!1;const z=new r(Ut.origin,{body:new Ip,method:"POST",get duplex(){return O=!0,"half"}}).headers.has("Content-Type");return O&&!z}),v=d&&h&&tv(()=>B.isReadableStream(new u("").body)),b={stream:v&&(O=>O.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(O=>{!b[O]&&(b[O]=(z,_)=>{let K=z&&z[O];if(K)return K.call(z);throw new Oe(`Response type '${O}' is not supported`,Oe.ERR_NOT_SUPPORT,_)})});const S=async O=>{if(O==null)return 0;if(B.isBlob(O))return O.size;if(B.isSpecCompliantForm(O))return(await new r(Ut.origin,{method:"POST",body:O}).arrayBuffer()).byteLength;if(B.isArrayBufferView(O)||B.isArrayBuffer(O))return O.byteLength;if(B.isURLSearchParams(O)&&(O=O+""),B.isString(O))return(await p(O)).byteLength},A=async(O,z)=>{const _=B.toFiniteNumber(O.getContentLength());return _??S(z)};return async O=>{let{url:z,method:_,data:K,signal:X,cancelToken:F,timeout:ie,onDownloadProgress:ue,onUploadProgress:ve,responseType:w,headers:te,withCredentials:me="same-origin",fetchOptions:xe}=xg(O),be=l||fetch;w=w?(w+"").toLowerCase():"text";let we=YO([X,F&&F.toAbortSignal()],ie),$e=null;const De=we&&we.unsubscribe&&(()=>{we.unsubscribe()});let Te;try{if(ve&&y&&_!=="get"&&_!=="head"&&(Te=await A(te,K))!==0){let R=new r(z,{method:"POST",body:K,duplex:"half"}),Q;if(B.isFormData(K)&&(Q=R.headers.get("content-type"))&&te.setContentType(Q),R.body){const[$,I]=Jp(Te,vs(kp(ve)));K=Pp(R.body,Wp,$,I)}}B.isString(me)||(me=me?"include":"omit");const j=f&&"credentials"in r.prototype,k={...xe,signal:we,method:_.toUpperCase(),headers:te.normalize().toJSON(),body:K,duplex:"half",credentials:j?me:void 0};$e=f&&new r(z,k);let P=await(f?be($e,xe):be(z,k));const pe=v&&(w==="stream"||w==="response");if(v&&(ue||pe&&De)){const R={};["status","statusText","headers"].forEach(oe=>{R[oe]=P[oe]});const Q=B.toFiniteNumber(P.headers.get("content-length")),[$,I]=ue&&Jp(Q,vs(kp(ue),!0))||[];P=new u(Pp(P.body,Wp,$,()=>{I&&I(),De&&De()}),R)}w=w||"text";let Se=await b[B.findKey(b,w)||"text"](P,O);return!pe&&De&&De(),await new Promise((R,Q)=>{Rg(R,Q,{data:Se,headers:Kt.from(P.headers),status:P.status,statusText:P.statusText,config:O,request:$e})})}catch(j){throw De&&De(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,O,$e),{cause:j.cause||j}):Oe.from(j,j&&j.code,O,$e)}}},ZO=new Map,Ag=n=>{let l=n&&n.env||{};const{fetch:r,Request:u,Response:c}=l,f=[u,c,r];let d=f.length,h=d,p,y,v=ZO;for(;h--;)p=f[h],y=v.get(p),y===void 0&&v.set(p,y=h?new Map:FO(l)),v=y;return y};Ag();const ed={http:cO,xhr:QO,fetch:{get:Ag}};B.forEach(ed,(n,l)=>{if(n){try{Object.defineProperty(n,"name",{value:l})}catch{}Object.defineProperty(n,"adapterName",{value:l})}});const nv=n=>`- ${n}`,JO=n=>B.isFunction(n)||n===null||n===!1;function kO(n,l){n=B.isArray(n)?n:[n];const{length:r}=n;let u,c;const f={};for(let d=0;d<r;d++){u=n[d];let h;if(c=u,!JO(u)&&(c=ed[(h=String(u)).toLowerCase()],c===void 0))throw new Oe(`Unknown adapter '${h}'`);if(c&&(B.isFunction(c)||(c=c.get(l))))break;f[h||"#"+d]=c}if(!c){const d=Object.entries(f).map(([p,y])=>`adapter ${p} `+(y===!1?"is not supported by the environment":"is not available in the build"));let h=r?d.length>1?`since :
|
|
191
|
+
`+d.map(nv).join(`
|
|
192
|
+
`):" "+nv(d[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+h,"ERR_NOT_SUPPORT")}return c}const wg={getAdapter:kO,adapters:ed};function cf(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new hi(null,n)}function av(n){return cf(n),n.headers=Kt.from(n.headers),n.data=of.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),wg.getAdapter(n.adapter||Lr.adapter,n)(n).then(function(u){return cf(n),u.data=of.call(n,n.transformResponse,u),u.headers=Kt.from(u.headers),u},function(u){return Tg(u)||(cf(n),u&&u.response&&(u.response.data=of.call(n,n.transformResponse,u.response),u.response.headers=Kt.from(u.response.headers))),Promise.reject(u)})}const Cg="1.13.2",Ds={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{Ds[n]=function(u){return typeof u===n||"a"+(l<1?"n ":" ")+n}});const lv={};Ds.transitional=function(l,r,u){function c(f,d){return"[Axios v"+Cg+"] Transitional option '"+f+"'"+d+(u?". "+u:"")}return(f,d,h)=>{if(l===!1)throw new Oe(c(d," has been removed"+(r?" in "+r:"")),Oe.ERR_DEPRECATED);return r&&!lv[d]&&(lv[d]=!0,console.warn(c(d," has been deprecated since v"+r+" and will be removed in the near future"))),l?l(f,d,h):!0}};Ds.spelling=function(l){return(r,u)=>(console.warn(`${u} is likely a misspelling of ${l}`),!0)};function $O(n,l,r){if(typeof n!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const u=Object.keys(n);let c=u.length;for(;c-- >0;){const f=u[c],d=l[f];if(d){const h=n[f],p=h===void 0||d(h,f,n);if(p!==!0)throw new Oe("option "+f+" must be "+p,Oe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Oe("Unknown option "+f,Oe.ERR_BAD_OPTION)}}const hs={assertOptions:$O,validators:Ds},Nn=hs.validators;let vl=class{constructor(l){this.defaults=l||{},this.interceptors={request:new Fp,response:new Fp}}async request(l,r){try{return await this._request(l,r)}catch(u){if(u instanceof Error){let c={};Error.captureStackTrace?Error.captureStackTrace(c):c=new Error;const f=c.stack?c.stack.replace(/^.+\n/,""):"";try{u.stack?f&&!String(u.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(u.stack+=`
|
|
193
|
+
`+f):u.stack=f}catch{}}throw u}}_request(l,r){typeof l=="string"?(r=r||{},r.url=l):r=l||{},r=bl(this.defaults,r);const{transitional:u,paramsSerializer:c,headers:f}=r;u!==void 0&&hs.assertOptions(u,{silentJSONParsing:Nn.transitional(Nn.boolean),forcedJSONParsing:Nn.transitional(Nn.boolean),clarifyTimeoutError:Nn.transitional(Nn.boolean)},!1),c!=null&&(B.isFunction(c)?r.paramsSerializer={serialize:c}:hs.assertOptions(c,{encode:Nn.function,serialize:Nn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),hs.assertOptions(r,{baseUrl:Nn.spelling("baseURL"),withXsrfToken:Nn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=f&&B.merge(f.common,f[r.method]);f&&B.forEach(["delete","get","head","post","put","patch","common"],O=>{delete f[O]}),r.headers=Kt.concat(d,f);const h=[];let p=!0;this.interceptors.request.forEach(function(z){typeof z.runWhen=="function"&&z.runWhen(r)===!1||(p=p&&z.synchronous,h.unshift(z.fulfilled,z.rejected))});const y=[];this.interceptors.response.forEach(function(z){y.push(z.fulfilled,z.rejected)});let v,b=0,S;if(!p){const O=[av.bind(this),void 0];for(O.unshift(...h),O.push(...y),S=O.length,v=Promise.resolve(r);b<S;)v=v.then(O[b++],O[b++]);return v}S=h.length;let A=r;for(;b<S;){const O=h[b++],z=h[b++];try{A=O(A)}catch(_){z.call(this,_);break}}try{v=av.call(this,A)}catch(O){return Promise.reject(O)}for(b=0,S=y.length;b<S;)v=v.then(y[b++],y[b++]);return v}getUri(l){l=bl(this.defaults,l);const r=Og(l.baseURL,l.url,l.allowAbsoluteUrls);return bg(r,l.params,l.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(l){vl.prototype[l]=function(r,u){return this.request(bl(u||{},{method:l,url:r,data:(u||{}).data}))}});B.forEach(["post","put","patch"],function(l){function r(u){return function(f,d,h){return this.request(bl(h||{},{method:l,headers:u?{"Content-Type":"multipart/form-data"}:{},url:f,data:d}))}}vl.prototype[l]=r(),vl.prototype[l+"Form"]=r(!0)});let PO=class Dg{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(f){r=f});const u=this;this.promise.then(c=>{if(!u._listeners)return;let f=u._listeners.length;for(;f-- >0;)u._listeners[f](c);u._listeners=null}),this.promise.then=c=>{let f;const d=new Promise(h=>{u.subscribe(h),f=h}).then(c);return d.cancel=function(){u.unsubscribe(f)},d},l(function(f,d,h){u.reason||(u.reason=new hi(f,d,h),r(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const r=this._listeners.indexOf(l);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const l=new AbortController,r=u=>{l.abort(u)};return this.subscribe(r),l.signal.unsubscribe=()=>this.unsubscribe(r),l.signal}static source(){let l;return{token:new Dg(function(c){l=c}),cancel:l}}};function WO(n){return function(r){return n.apply(null,r)}}function IO(n){return B.isObject(n)&&n.isAxiosError===!0}const zf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zf).forEach(([n,l])=>{zf[l]=n});function Mg(n){const l=new vl(n),r=ug(vl.prototype.request,l);return B.extend(r,vl.prototype,l,{allOwnKeys:!0}),B.extend(r,l,null,{allOwnKeys:!0}),r.create=function(c){return Mg(bl(n,c))},r}const mt=Mg(Lr);mt.Axios=vl;mt.CanceledError=hi;mt.CancelToken=PO;mt.isCancel=Tg;mt.VERSION=Cg;mt.toFormData=Cs;mt.AxiosError=Oe;mt.Cancel=mt.CanceledError;mt.all=function(l){return Promise.all(l)};mt.spread=WO;mt.isAxiosError=IO;mt.mergeConfig=bl;mt.AxiosHeaders=Kt;mt.formToJSON=n=>Eg(B.isHTMLForm(n)?new FormData(n):n);mt.getAdapter=wg.getAdapter;mt.HttpStatusCode=zf;mt.default=mt;const{Axios:ox,AxiosError:cx,CanceledError:fx,isCancel:dx,CancelToken:hx,VERSION:mx,all:yx,Cancel:px,isAxiosError:vx,spread:gx,toFormData:bx,AxiosHeaders:Sx,HttpStatusCode:Ex,formToJSON:Tx,getAdapter:Rx,mergeConfig:Ox}=mt,Sr=mt.create({baseURL:"http://localhost:3000/api",timeout:1e4,headers:{"Content-Type":"application/json"}});Sr.interceptors.request.use(n=>{const l=localStorage.getItem("auth_token");return l&&(n.headers.Authorization=`Bearer ${l}`),n},n=>Promise.reject(n));Sr.interceptors.response.use(n=>n,n=>(n.response?.status===401?(localStorage.removeItem("auth_token"),li.error("Session expired. Please login again.")):n.response?.status===403?li.error("You do not have permission to perform this action."):n.response?.status===404?li.error("Resource not found."):n.response?.status===500?li.error("Server error. Please try again later."):n.code==="ECONNABORTED"?li.error("Request timeout. Please try again."):n.response||li.error("Network error. Please check your connection."),Promise.reject(n)));const zg={getUser:async n=>(await Sr.get(`/users/${n}`)).data.data,getCurrentUser:async()=>(await Sr.get("/users/me")).data.data,updateUser:async(n,l)=>(await Sr.patch(`/users/${n}`,l)).data.data};class ex extends C.Component{constructor(l){super(l),this.state={hasError:!1}}static getDerivedStateFromError(l){return{hasError:!0,error:l}}componentDidCatch(l,r){console.error("ErrorBoundary caught an error:",l,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:J.jsxs("div",{className:"p-8 text-center",children:[J.jsx("h2",{className:"text-2xl font-semibold",children:"Something went wrong"}),J.jsx("p",{className:"mt-2 text-gray-600",children:this.state.error?.message||"An unexpected error occurred"}),J.jsx("button",{onClick:()=>this.setState({hasError:!1,error:void 0}),className:"mt-4 flex h-12 w-full items-center justify-center rounded-full bg-white text-black px-5 transition-colors hover:bg-zinc-200 md:w-39.5",children:"Try again"})]}):this.props.children}}function tx(){return J.jsx("div",{className:"min-h-screen flex flex-col bg-black",children:J.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto p-4",children:J.jsx(hT,{})})})}function nx(){return J.jsxs(J.Fragment,{children:[J.jsx($f,{title:"About",description:"About Stackkit - A production-ready React starter template"}),J.jsx("div",{className:"flex min-h-screen items-center justify-center bg-black",children:J.jsxs("main",{className:"flex min-h-screen w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-black sm:items-start",children:[J.jsx("div",{className:"text-2xl font-bold text-white",children:"Stackkit"}),J.jsxs("div",{className:"flex flex-col gap-12 sm:text-left",children:[J.jsxs("div",{children:[J.jsx("h1",{className:"text-3xl font-semibold leading-10 tracking-tight text-zinc-50 mb-6",children:"About this template"}),J.jsx("p",{className:"text-lg leading-8 text-zinc-400 mb-8",children:"Stackkit is a production-ready React starter template that includes all the essential tools you need to build modern web applications."})]}),J.jsxs("div",{children:[J.jsx("h2",{className:"text-xl font-semibold text-zinc-50 mb-4",children:"What's included"}),J.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 text-zinc-400",children:[J.jsxs("div",{className:"p-4 border border-zinc-800 rounded-lg",children:[J.jsx("div",{className:"font-medium text-zinc-50 mb-1",children:"React 19"}),J.jsx("div",{className:"text-sm",children:"Latest React with TypeScript"})]}),J.jsxs("div",{className:"p-4 border border-zinc-800 rounded-lg",children:[J.jsx("div",{className:"font-medium text-zinc-50 mb-1",children:"Vite 7"}),J.jsx("div",{className:"text-sm",children:"Fast build tool and dev server"})]}),J.jsxs("div",{className:"p-4 border border-zinc-800 rounded-lg",children:[J.jsx("div",{className:"font-medium text-zinc-50 mb-1",children:"React Router"}),J.jsx("div",{className:"text-sm",children:"Client-side routing"})]}),J.jsxs("div",{className:"p-4 border border-zinc-800 rounded-lg",children:[J.jsx("div",{className:"font-medium text-zinc-50 mb-1",children:"TanStack Query"}),J.jsx("div",{className:"text-sm",children:"Data fetching and caching"})]}),J.jsxs("div",{className:"p-4 border border-zinc-800 rounded-lg",children:[J.jsx("div",{className:"font-medium text-zinc-50 mb-1",children:"Axios"}),J.jsx("div",{className:"text-sm",children:"HTTP client with interceptors"})]}),J.jsxs("div",{className:"p-4 border border-zinc-800 rounded-lg",children:[J.jsx("div",{className:"font-medium text-zinc-50 mb-1",children:"Tailwind CSS"}),J.jsx("div",{className:"text-sm",children:"Utility-first CSS framework"})]})]})]})]}),J.jsxs("div",{className:"flex flex-col gap-4 text-base font-medium sm:flex-row mt-8",children:[J.jsx("a",{className:"flex h-12 w-full items-center justify-center rounded-full bg-white text-black px-5 transition-colors hover:bg-zinc-200 md:w-39.5",href:"/",children:"Back to Home"}),J.jsx("a",{className:"flex h-12 w-full items-center justify-center rounded-full px-5 transition-colors hover:border-transparent bg-zinc-900 md:w-39.5 dark:text-white text-black",href:"https://stackkit.tariqul.dev",target:"_blank",rel:"noopener noreferrer",children:"Website"})]})]})})]})}function ax(){return J.jsxs(J.Fragment,{children:[J.jsx($f,{title:"Home"}),J.jsx("div",{className:"flex min-h-screen items-center justify-center bg-black",children:J.jsxs("main",{className:"flex min-h-screen w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-black sm:items-start",children:[J.jsx("div",{className:"text-2xl font-bold text-white",children:"Stackkit"}),J.jsxs("div",{className:"flex flex-col items-center gap-6 text-center sm:items-start sm:text-left",children:[J.jsx("h1",{className:"max-w-xs text-3xl font-semibold leading-10 tracking-tight text-zinc-50",children:"To get started, edit the Home.tsx file."}),J.jsxs("p",{className:"max-w-md text-lg leading-8 text-zinc-400",children:["This template includes React Router, TanStack Query, Axios, and Tailwind CSS. Check out the"," ",J.jsx("a",{href:"/about",className:"font-medium text-zinc-50 hover:underline",children:"About"})," ","page to learn more about the included features."]})]}),J.jsxs("div",{className:"flex flex-col gap-4 text-base font-medium sm:flex-row",children:[J.jsx("a",{className:"flex h-12 w-full items-center justify-center rounded-full bg-white text-black px-5 transition-colors hover:bg-zinc-200 md:w-39.5",href:"https://react.dev",target:"_blank",rel:"noopener noreferrer",children:"Get Started"}),J.jsx("a",{className:"flex h-12 w-full items-center justify-center rounded-full px-5 transition-colors hover:border-transparent bg-zinc-900 md:w-39.5 dark:text-white text-black",href:"/about",children:"Documentation"})]})]})})]})}function lx(){return J.jsxs(J.Fragment,{children:[J.jsx($f,{title:"404 - Page Not Found",description:"The page you're looking for doesn't exist"}),J.jsx("div",{className:"flex min-h-screen items-center justify-center bg-black",children:J.jsxs("div",{className:"text-center px-6",children:[J.jsx("h1",{className:"text-8xl font-bold text-white mb-4",children:"404"}),J.jsx("h2",{className:"text-3xl font-semibold text-zinc-50 mb-4",children:"Page Not Found"}),J.jsx("p",{className:"text-lg text-zinc-400 mb-8",children:"The page you're looking for doesn't exist."}),J.jsx(Jf,{to:"/",className:"inline-flex h-12 items-center justify-center rounded-full bg-white text-black px-8 font-medium transition-colors hover:bg-zinc-200",children:"Go Home"})]})})]})}function ix(){const n=tT(),{userId:l}=KE(),{data:r=n??{}}=AS({queryKey:["user",l],queryFn:async()=>{if(!l)throw new Error("Missing user id");return await zg.getUser(l)},initialData:n,staleTime:1e3*60});return J.jsx("div",{className:"min-h-screen bg-black text-white flex items-center justify-center",children:J.jsx("div",{className:"max-w-xl p-8 bg-zinc-900 rounded-md shadow",children:J.jsxs("div",{className:"flex items-center gap-4",children:[r.avatar?J.jsx("img",{src:r.avatar,alt:r.name,className:"w-16 h-16 rounded-full"}):J.jsx("div",{className:"w-16 h-16 rounded-full bg-zinc-700 flex items-center justify-center text-xl",children:r.name?.[0]??"U"}),J.jsxs("div",{children:[J.jsx("h2",{className:"text-2xl font-semibold",children:r.name}),J.jsx("p",{className:"text-sm text-zinc-400",children:r.email})]})]})})})}const rx=BT([{path:"/",Component:tx,errorElement:J.jsx(ex,{}),children:[{index:!0,Component:ax},{path:"about",Component:nx},{path:"users/:userId",loader:async({params:n})=>{const l=n.userId;if(!l)throw new Response("Missing user id",{status:400});return await zg.getUser(l)},Component:ix},{path:"*",Component:lx}]}]);NS.createRoot(document.getElementById("root")).render(J.jsx(C.StrictMode,{children:J.jsx(RR,{children:J.jsxs(mS,{client:OR,children:[J.jsx(cT,{router:rx}),J.jsx(T1,{position:"top-right"}),J.jsx(wS,{initialIsOpen:!1})]})})}));
|