@cardor/agent-harness-kit 1.5.2 → 1.6.0
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/agent-templates/reviewer.md +1 -0
- package/dist/cli.js +139 -25
- package/dist/cli.js.map +1 -1
- package/dist/dashboard-dist/assets/{index-Tnz4xXel.js → index-CoqlHfTu.js} +4 -4
- package/dist/dashboard-dist/index.html +9 -6
- package/dist/dashboard-dist/logo-512.png +0 -0
- package/dist/dashboard-dist/logo.png +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/{mysql-NXLYFD2H.js → mysql-THKQOXIS.js} +8 -2
- package/dist/mysql-THKQOXIS.js.map +1 -0
- package/dist/{postgres-6BXN7ZH4.js → postgres-IOQE32DM.js} +8 -2
- package/dist/postgres-IOQE32DM.js.map +1 -0
- package/dist/{sqlite-M65L55DA.js → sqlite-XBEJJ5T2.js} +8 -2
- package/dist/sqlite-XBEJJ5T2.js.map +1 -0
- package/package.json +1 -1
- package/dist/mysql-NXLYFD2H.js.map +0 -1
- package/dist/postgres-6BXN7ZH4.js.map +0 -1
- package/dist/sqlite-M65L55DA.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const d of r)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function o(r){const d={};return r.integrity&&(d.integrity=r.integrity),r.referrerPolicy&&(d.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?d.credentials="include":r.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(r){if(r.ep)return;r.ep=!0;const d=o(r);fetch(r.href,d)}})();function Mg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Hc={exports:{}},bi={};var _m;function Cg(){if(_m)return bi;_m=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(c,r,d){var m=null;if(d!==void 0&&(m=""+d),r.key!==void 0&&(m=""+r.key),"key"in r){d={};for(var x in r)x!=="key"&&(d[x]=r[x])}else d=r;return r=d.ref,{$$typeof:a,type:c,key:m,ref:r!==void 0?r:null,props:d}}return bi.Fragment=i,bi.jsx=o,bi.jsxs=o,bi}var Tm;function Ag(){return Tm||(Tm=1,Hc.exports=Cg()),Hc.exports}var h=Ag(),Ui=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Og=class extends Ui{#t;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#t!==a&&(this.#t=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},mr=new Og,Ng={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},zg=class{#t=Ng;#e=!1;setTimeoutProvider(a){this.#t=a}setTimeout(a,i){return this.#t.setTimeout(a,i)}clearTimeout(a){this.#t.clearTimeout(a)}setInterval(a,i){return this.#t.setInterval(a,i)}clearInterval(a){this.#t.clearInterval(a)}},Ta=new zg;function Dg(a){setTimeout(a,0)}var wg=typeof window>"u"||"Deno"in globalThis;function he(){}function Lg(a,i){return typeof a=="function"?a(i):a}function nr(a){return typeof a=="number"&&a>=0&&a!==1/0}function yp(a,i){return Math.max(a+(i||0)-Date.now(),0)}function ta(a,i){return typeof a=="function"?a(i):a}function Re(a,i){return typeof a=="function"?a(i):a}function Rm(a,i){const{type:o="all",exact:c,fetchStatus:r,predicate:d,queryKey:m,stale:x}=a;if(m){if(c){if(i.queryHash!==pr(m,i.options))return!1}else if(!Ai(i.queryKey,m))return!1}if(o!=="all"){const p=i.isActive();if(o==="active"&&!p||o==="inactive"&&p)return!1}return!(typeof x=="boolean"&&i.isStale()!==x||r&&r!==i.state.fetchStatus||d&&!d(i))}function Em(a,i){const{exact:o,status:c,predicate:r,mutationKey:d}=a;if(d){if(!i.options.mutationKey)return!1;if(o){if(Ci(i.options.mutationKey)!==Ci(d))return!1}else if(!Ai(i.options.mutationKey,d))return!1}return!(c&&i.state.status!==c||r&&!r(i))}function pr(a,i){return(i?.queryKeyHashFn||Ci)(a)}function Ci(a){return JSON.stringify(a,(i,o)=>lr(o)?Object.keys(o).sort().reduce((c,r)=>(c[r]=o[r],c),{}):o)}function Ai(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(o=>Ai(a[o],i[o])):!1}var Ug=Object.prototype.hasOwnProperty;function gp(a,i,o=0){if(a===i)return a;if(o>500)return i;const c=jm(a)&&jm(i);if(!c&&!(lr(a)&&lr(i)))return i;const d=(c?a:Object.keys(a)).length,m=c?i:Object.keys(i),x=m.length,p=c?new Array(x):{};let v=0;for(let b=0;b<x;b++){const y=c?b:m[b],S=a[y],_=i[y];if(S===_){p[y]=S,(c?b<d:Ug.call(a,y))&&v++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){p[y]=_;continue}const j=gp(S,_,o+1);p[y]=j,j===S&&v++}return d===x&&v===d?a:p}function ar(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const o in a)if(a[o]!==i[o])return!1;return!0}function jm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function lr(a){if(!Mm(a))return!1;const i=a.constructor;if(i===void 0)return!0;const o=i.prototype;return!(!Mm(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Mm(a){return Object.prototype.toString.call(a)==="[object Object]"}function Bg(a){return new Promise(i=>{Ta.setTimeout(i,a)})}function ir(a,i,o){return typeof o.structuralSharing=="function"?o.structuralSharing(a,i):o.structuralSharing!==!1?gp(a,i):i}function Hg(a,i,o=0){const c=[...a,i];return o&&c.length>o?c.slice(1):c}function qg(a,i,o=0){const c=[i,...a];return o&&c.length>o?c.slice(0,-1):c}var vr=Symbol();function xp(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===vr?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function bp(a,i){return typeof a=="function"?a(...i):!!a}function Qg(a,i,o){let c=!1,r;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(r??=i(),c||(c=!0,r.aborted?o():r.addEventListener("abort",o,{once:!0})),r)}),a}var Oi=(()=>{let a=()=>wg;return{isServer(){return a()},setIsServer(i){a=i}}})();function sr(){let a,i;const o=new Promise((r,d)=>{a=r,i=d});o.status="pending",o.catch(()=>{});function c(r){Object.assign(o,r),delete o.resolve,delete o.reject}return o.resolve=r=>{c({status:"fulfilled",value:r}),a(r)},o.reject=r=>{c({status:"rejected",reason:r}),i(r)},o}var Yg=Dg;function Gg(){let a=[],i=0,o=x=>{x()},c=x=>{x()},r=Yg;const d=x=>{i?a.push(x):r(()=>{o(x)})},m=()=>{const x=a;a=[],x.length&&r(()=>{c(()=>{x.forEach(p=>{o(p)})})})};return{batch:x=>{let p;i++;try{p=x()}finally{i--,i||m()}return p},batchCalls:x=>(...p)=>{d(()=>{x(...p)})},schedule:d,setNotifyFunction:x=>{o=x},setBatchNotifyFunction:x=>{c=x},setScheduler:x=>{r=x}}}var ee=Gg(),Xg=class extends Ui{#t=!0;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a(!0),o=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(this.setOnline.bind(this))}setOnline(a){this.#t!==a&&(this.#t=a,this.listeners.forEach(o=>{o(a)}))}isOnline(){return this.#t}},ho=new Xg;function Vg(a){return Math.min(1e3*2**a,3e4)}function Sp(a){return(a??"online")==="online"?ho.isOnline():!0}var or=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function _p(a){let i=!1,o=0,c;const r=sr(),d=()=>r.status!=="pending",m=C=>{if(!d()){const D=new or(C);S(D),a.onCancel?.(D)}},x=()=>{i=!0},p=()=>{i=!1},v=()=>mr.isFocused()&&(a.networkMode==="always"||ho.isOnline())&&a.canRun(),b=()=>Sp(a.networkMode)&&a.canRun(),y=C=>{d()||(c?.(),r.resolve(C))},S=C=>{d()||(c?.(),r.reject(C))},_=()=>new Promise(C=>{c=D=>{(d()||v())&&C(D)},a.onPause?.()}).then(()=>{c=void 0,d()||a.onContinue?.()}),j=()=>{if(d())return;let C;const D=o===0?a.initialPromise:void 0;try{C=D??a.fn()}catch(L){C=Promise.reject(L)}Promise.resolve(C).then(y).catch(L=>{if(d())return;const z=a.retry??(Oi.isServer()?0:3),X=a.retryDelay??Vg,G=typeof X=="function"?X(o,L):X,$=z===!0||typeof z=="number"&&o<z||typeof z=="function"&&z(o,L);if(i||!$){S(L);return}o++,a.onFail?.(o,L),Bg(G).then(()=>v()?void 0:_()).then(()=>{i?S(L):j()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(c?.(),r),cancelRetry:x,continueRetry:p,canStart:b,start:()=>(b()?j():_().then(j),r)}}var Tp=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nr(this.gcTime)&&(this.#t=Ta.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Oi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(Ta.clearTimeout(this.#t),this.#t=void 0)}};function Kg(a){return{onFetch:(i,o)=>{const c=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let x={pages:[],pageParams:[]},p=0;const v=async()=>{let b=!1;const y=j=>{Qg(j,()=>i.signal,()=>b=!0)},S=xp(i.options,i.fetchOptions),_=async(j,C,D)=>{if(b)return Promise.reject(i.signal.reason);if(C==null&&j.pages.length)return Promise.resolve(j);const z=(()=>{const F={client:i.client,queryKey:i.queryKey,pageParam:C,direction:D?"backward":"forward",meta:i.options.meta};return y(F),F})(),X=await S(z),{maxPages:G}=i.options,$=D?qg:Hg;return{pages:$(j.pages,X,G),pageParams:$(j.pageParams,C,G)}};if(r&&d.length){const j=r==="backward",C=j?Zg:Cm,D={pages:d,pageParams:m},L=C(c,D);x=await _(D,L,j)}else{const j=a??d.length;do{const C=p===0?m[0]??c.initialPageParam:Cm(c,x);if(p>0&&C==null)break;x=await _(x,C),p++}while(p<j)}return x};i.options.persister?i.fetchFn=()=>i.options.persister?.(v,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},o):i.fetchFn=v}}}function Cm(a,{pages:i,pageParams:o}){const c=i.length-1;return i.length>0?a.getNextPageParam(i[c],i,o[c],o):void 0}function Zg(a,{pages:i,pageParams:o}){return i.length>0?a.getPreviousPageParam?.(i[0],i,o[0],o):void 0}var kg=class extends Tp{#t;#e;#n;#a;#i;#l;#o;#s;constructor(a){super(),this.#s=!1,this.#o=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#i=a.client,this.#a=this.#i.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=Om(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#l?.promise}setOptions(a){if(this.options={...this.#o,...a},a?._type&&(this.#t=a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Om(this.options);i.data!==void 0&&(this.setState(Am(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(a,i){const o=ir(this.state.data,a,this.options);return this.#u({data:o,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),o}setState(a){this.#u({type:"setState",state:a})}cancel(a){const i=this.#l?.promise;return this.#l?.cancel(a),i?i.then(he).catch(he):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>Re(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>ta(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!yp(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#l&&(this.#s||this.#r()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(a,i){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(a&&this.setOptions(a),!this.options.queryFn){const p=this.observers.find(v=>v.options.queryFn);p&&this.setOptions(p.options)}const o=new AbortController,c=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#s=!0,o.signal)})},r=()=>{const p=xp(this.options,i),b=(()=>{const y={client:this.#i,queryKey:this.queryKey,meta:this.meta};return c(y),y})();return this.#s=!1,this.options.persister?this.options.persister(p,b,this):p(b)},m=(()=>{const p={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return c(p),p})();(this.#t==="infinite"?Kg(this.options.pages):this.options.behavior)?.onFetch(m,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#u({type:"fetch",meta:m.fetchOptions?.meta}),this.#l=_p({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:p=>{p instanceof or&&p.revert&&this.setState({...this.#n,fetchStatus:"idle"}),o.abort()},onFail:(p,v)=>{this.#u({type:"failed",failureCount:p,error:v})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0});try{const p=await this.#l.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#a.config.onSuccess?.(p,this),this.#a.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof or){if(p.silent)return this.#l.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#u({type:"error",error:p}),this.#a.config.onError?.(p,this),this.#a.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#u(a){const i=o=>{switch(a.type){case"failed":return{...o,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...Rp(o.data,this.options),fetchMeta:a.meta??null};case"success":const c={...o,...Am(a.data,a.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=a.manual?c:void 0,c;case"error":const r=a.error;return{...o,error:r,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...a.state}}};this.state=i(this.state),ee.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:a})})}};function Rp(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sp(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Am(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Om(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,o=i!==void 0,c=o?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:o?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var Jg=class extends Ui{constructor(a,i){super(),this.options=i,this.#t=a,this.#s=null,this.#o=sr(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#a=void 0;#i;#l;#o;#s;#r;#u;#m;#f;#d;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Nm(this.#e,this.options)?this.#h():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ur(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ur(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#e.removeObserver(this)}setOptions(a){const i=this.options,o=this.#e;if(this.options=this.#t.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Re(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),i._defaulted&&!ar(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const c=this.hasListeners();c&&zm(this.#e,o,this.options,i)&&this.#h(),this.updateResult(),c&&(this.#e!==o||Re(this.options.enabled,this.#e)!==Re(i.enabled,this.#e)||ta(this.options.staleTime,this.#e)!==ta(i.staleTime,this.#e))&&this.#v();const r=this.#y();c&&(this.#e!==o||Re(this.options.enabled,this.#e)!==Re(i.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(a){const i=this.#t.getQueryCache().build(this.#t,a),o=this.createResult(i,a);return Pg(this,o)&&(this.#a=o,this.#l=this.options,this.#i=this.#e.state),o}getCurrentResult(){return this.#a}trackResult(a,i){return new Proxy(a,{get:(o,c)=>(this.trackProp(c),i?.(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,c))})}trackProp(a){this.#p.add(a)}getCurrentQuery(){return this.#e}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#t.defaultQueryOptions(a),o=this.#t.getQueryCache().build(this.#t,i);return o.fetch().then(()=>this.createResult(o,i))}fetch(a){return this.#h({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#h(a){this.#_();let i=this.#e.fetch(this.options,a);return a?.throwOnError||(i=i.catch(he)),i}#v(){this.#b();const a=ta(this.options.staleTime,this.#e);if(Oi.isServer()||this.#a.isStale||!nr(a))return;const o=yp(this.#a.dataUpdatedAt,a)+1;this.#f=Ta.setTimeout(()=>{this.#a.isStale||this.updateResult()},o)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(a){this.#S(),this.#c=a,!(Oi.isServer()||Re(this.options.enabled,this.#e)===!1||!nr(this.#c)||this.#c===0)&&(this.#d=Ta.setInterval(()=>{(this.options.refetchIntervalInBackground||mr.isFocused())&&this.#h()},this.#c))}#x(){this.#v(),this.#g(this.#y())}#b(){this.#f!==void 0&&(Ta.clearTimeout(this.#f),this.#f=void 0)}#S(){this.#d!==void 0&&(Ta.clearInterval(this.#d),this.#d=void 0)}createResult(a,i){const o=this.#e,c=this.options,r=this.#a,d=this.#i,m=this.#l,p=a!==o?a.state:this.#n,{state:v}=a;let b={...v},y=!1,S;if(i._optimisticResults){const V=this.hasListeners(),J=!V&&Nm(a,i),it=V&&zm(a,o,i,c);(J||it)&&(b={...b,...Rp(v.data,a.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:j,status:C}=b;S=b.data;let D=!1;if(i.placeholderData!==void 0&&S===void 0&&C==="pending"){let V;r?.isPlaceholderData&&i.placeholderData===m?.placeholderData?(V=r.data,D=!0):V=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,V!==void 0&&(C="success",S=ir(r?.data,V,i),y=!0)}if(i.select&&S!==void 0&&!D)if(r&&S===d?.data&&i.select===this.#r)S=this.#u;else try{this.#r=i.select,S=i.select(S),S=ir(r?.data,S,i),this.#u=S,this.#s=null}catch(V){this.#s=V}this.#s&&(_=this.#s,S=this.#u,j=Date.now(),C="error");const L=b.fetchStatus==="fetching",z=C==="pending",X=C==="error",G=z&&L,$=S!==void 0,H={status:C,fetchStatus:b.fetchStatus,isPending:z,isSuccess:C==="success",isError:X,isInitialLoading:G,isLoading:G,data:S,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:j,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:L,isRefetching:L&&!z,isLoadingError:X&&!$,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:X&&$,isStale:yr(a,i),refetch:this.refetch,promise:this.#o,isEnabled:Re(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const V=H.data!==void 0,J=H.status==="error"&&!V,it=Lt=>{J?Lt.reject(H.error):V&&Lt.resolve(H.data)},at=()=>{const Lt=this.#o=H.promise=sr();it(Lt)},et=this.#o;switch(et.status){case"pending":a.queryHash===o.queryHash&&it(et);break;case"fulfilled":(J||H.data!==et.value)&&at();break;case"rejected":(!J||H.error!==et.reason)&&at();break}}return H}updateResult(){const a=this.#a,i=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#l=this.options,this.#i.data!==void 0&&(this.#m=this.#e),ar(i,a))return;this.#a=i;const o=()=>{if(!a)return!0;const{notifyOnChangeProps:c}=this.options,r=typeof c=="function"?c():c;if(r==="all"||!r&&!this.#p.size)return!0;const d=new Set(r??this.#p);return this.options.throwOnError&&d.add("error"),Object.keys(this.#a).some(m=>{const x=m;return this.#a[x]!==a[x]&&d.has(x)})};this.#T({listeners:o()})}#_(){const a=this.#t.getQueryCache().build(this.#t,this.options);if(a===this.#e)return;const i=this.#e;this.#e=a,this.#n=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#T(a){ee.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Fg(a,i){return Re(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Re(i.retryOnMount,a)===!1)}function Nm(a,i){return Fg(a,i)||a.state.data!==void 0&&ur(a,i,i.refetchOnMount)}function ur(a,i,o){if(Re(i.enabled,a)!==!1&&ta(i.staleTime,a)!=="static"){const c=typeof o=="function"?o(a):o;return c==="always"||c!==!1&&yr(a,i)}return!1}function zm(a,i,o,c){return(a!==i||Re(c.enabled,a)===!1)&&(!o.suspense||a.state.status!=="error")&&yr(a,o)}function yr(a,i){return Re(i.enabled,a)!==!1&&a.isStaleByTime(ta(i.staleTime,a))}function Pg(a,i){return!ar(a.getCurrentResult(),i)}var $g=class extends Tp{#t;#e;#n;#a;constructor(a){super(),this.#t=a.client,this.mutationId=a.mutationId,this.#n=a.mutationCache,this.#e=[],this.state=a.state||Wg(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#i({type:"continue"})},o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=_p({fn:()=>this.options.mutationFn?this.options.mutationFn(a,o):Promise.reject(new Error("No mutationFn found")),onFail:(d,m)=>{this.#i({type:"failed",failureCount:d,error:m})},onPause:()=>{this.#i({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const c=this.state.status==="pending",r=!this.#a.canStart();try{if(c)i();else{this.#i({type:"pending",variables:a,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(a,this,o);const m=await this.options.onMutate?.(a,o);m!==this.state.context&&this.#i({type:"pending",context:m,variables:a,isPaused:r})}const d=await this.#a.start();return await this.#n.config.onSuccess?.(d,a,this.state.context,this,o),await this.options.onSuccess?.(d,a,this.state.context,o),await this.#n.config.onSettled?.(d,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(d,null,a,this.state.context,o),this.#i({type:"success",data:d}),d}catch(d){try{await this.#n.config.onError?.(d,a,this.state.context,this,o)}catch(m){Promise.reject(m)}try{await this.options.onError?.(d,a,this.state.context,o)}catch(m){Promise.reject(m)}try{await this.#n.config.onSettled?.(void 0,d,this.state.variables,this.state.context,this,o)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,d,a,this.state.context,o)}catch(m){Promise.reject(m)}throw this.#i({type:"error",error:d}),d}finally{this.#n.runNext(this)}}#i(a){const i=o=>{switch(a.type){case"failed":return{...o,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...o,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:a.error,failureCount:o.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ee.batch(()=>{this.#e.forEach(o=>{o.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function Wg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ig=class extends Ui{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(a,i,o){const c=new $g({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:o});return this.add(c),c}add(a){this.#t.add(a);const i=no(a);if(typeof i=="string"){const o=this.#e.get(i);o?o.push(a):this.#e.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=no(a);if(typeof i=="string"){const o=this.#e.get(i);if(o)if(o.length>1){const c=o.indexOf(a);c!==-1&&o.splice(c,1)}else o[0]===a&&this.#e.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=no(a);if(typeof i=="string"){const c=this.#e.get(i)?.find(r=>r.state.status==="pending");return!c||c===a}else return!0}runNext(a){const i=no(a);return typeof i=="string"?this.#e.get(i)?.find(c=>c!==a&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ee.batch(()=>{this.#t.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(a){const i={exact:!0,...a};return this.getAll().find(o=>Em(i,o))}findAll(a={}){return this.getAll().filter(i=>Em(a,i))}notify(a){ee.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return ee.batch(()=>Promise.all(a.map(i=>i.continue().catch(he))))}};function no(a){return a.options.scope?.id}var t0=class extends Ui{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,o){const c=i.queryKey,r=i.queryHash??pr(c,i);let d=this.get(r);return d||(d=new kg({client:a,queryKey:c,queryHash:r,options:a.defaultQueryOptions(i),state:o,defaultOptions:a.getQueryDefaults(c)}),this.add(d)),d}add(a){this.#t.has(a.queryHash)||(this.#t.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#t.get(a.queryHash);i&&(a.destroy(),i===a&&this.#t.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){ee.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#t.get(a)}getAll(){return[...this.#t.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(o=>Rm(i,o))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(o=>Rm(a,o)):i}notify(a){ee.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){ee.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){ee.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},e0=class{#t;#e;#n;#a;#i;#l;#o;#s;constructor(a={}){this.#t=a.queryCache||new t0,this.#e=a.mutationCache||new Ig,this.#n=a.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#o=mr.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=ho.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(a){return this.#t.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#e.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),o=this.#t.build(this,i),c=o.state.data;return c===void 0?this.fetchQuery(a):(a.revalidateIfStale&&o.isStaleByTime(ta(i.staleTime,o))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:o})=>{const c=o.data;return[i,c]})}setQueryData(a,i,o){const c=this.defaultQueryOptions({queryKey:a}),d=this.#t.get(c.queryHash)?.state.data,m=Lg(i,d);if(m!==void 0)return this.#t.build(this,c).setData(m,{...o,manual:!0})}setQueriesData(a,i,o){return ee.batch(()=>this.#t.findAll(a).map(({queryKey:c})=>[c,this.setQueryData(c,i,o)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state}removeQueries(a){const i=this.#t;ee.batch(()=>{i.findAll(a).forEach(o=>{i.remove(o)})})}resetQueries(a,i){const o=this.#t;return ee.batch(()=>(o.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const o={revert:!0,...i},c=ee.batch(()=>this.#t.findAll(a).map(r=>r.cancel(o)));return Promise.all(c).then(he).catch(he)}invalidateQueries(a,i={}){return ee.batch(()=>(this.#t.findAll(a).forEach(o=>{o.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const o={...i,cancelRefetch:i.cancelRefetch??!0},c=ee.batch(()=>this.#t.findAll(a).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let d=r.fetch(void 0,o);return o.throwOnError||(d=d.catch(he)),r.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(he)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const o=this.#t.build(this,i);return o.isStaleByTime(ta(i.staleTime,o))?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(he).catch(he)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(he).catch(he)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return ho.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#a.set(Ci(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#a.values()],o={};return i.forEach(c=>{Ai(a,c.queryKey)&&Object.assign(o,c.defaultOptions)}),o}setMutationDefaults(a,i){this.#i.set(Ci(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#i.values()],o={};return i.forEach(c=>{Ai(a,c.mutationKey)&&Object.assign(o,c.defaultOptions)}),o}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=pr(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===vr&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},qc={exports:{}},ot={};var Dm;function n0(){if(Dm)return ot;Dm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function _(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function L(E,Q,Z){this.props=E,this.context=Q,this.refs=D,this.updater=Z||j}L.prototype.isReactComponent={},L.prototype.setState=function(E,Q){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Q,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function z(){}z.prototype=L.prototype;function X(E,Q,Z){this.props=E,this.context=Q,this.refs=D,this.updater=Z||j}var G=X.prototype=new z;G.constructor=X,C(G,L.prototype),G.isPureReactComponent=!0;var $=Array.isArray;function F(){}var H={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function J(E,Q,Z){var P=Z.ref;return{$$typeof:a,type:E,key:Q,ref:P!==void 0?P:null,props:Z}}function it(E,Q){return J(E.type,Q,E.props)}function at(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function et(E){var Q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return Q[Z]})}var Lt=/\/+/g;function zt(E,Q){return typeof E=="object"&&E!==null&&E.key!=null?et(""+E.key):Q.toString(36)}function Ht(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(F,F):(E.status="pending",E.then(function(Q){E.status==="pending"&&(E.status="fulfilled",E.value=Q)},function(Q){E.status==="pending"&&(E.status="rejected",E.reason=Q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,Q,Z,P,tt){var rt=typeof E;(rt==="undefined"||rt==="boolean")&&(E=null);var vt=!1;if(E===null)vt=!0;else switch(rt){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(E.$$typeof){case a:case i:vt=!0;break;case b:return vt=E._init,U(vt(E._payload),Q,Z,P,tt)}}if(vt)return tt=tt(E),vt=P===""?"."+zt(E,0):P,$(tt)?(Z="",vt!=null&&(Z=vt.replace(Lt,"$&/")+"/"),U(tt,Q,Z,"",function(tn){return tn})):tt!=null&&(at(tt)&&(tt=it(tt,Z+(tt.key==null||E&&E.key===tt.key?"":(""+tt.key).replace(Lt,"$&/")+"/")+vt)),Q.push(tt)),1;vt=0;var qt=P===""?".":P+":";if($(E))for(var Mt=0;Mt<E.length;Mt++)P=E[Mt],rt=qt+zt(P,Mt),vt+=U(P,Q,Z,rt,tt);else if(Mt=_(E),typeof Mt=="function")for(E=Mt.call(E),Mt=0;!(P=E.next()).done;)P=P.value,rt=qt+zt(P,Mt++),vt+=U(P,Q,Z,rt,tt);else if(rt==="object"){if(typeof E.then=="function")return U(Ht(E),Q,Z,P,tt);throw Q=String(E),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return vt}function K(E,Q,Z){if(E==null)return E;var P=[],tt=0;return U(E,P,"","",function(rt){return Q.call(Z,rt,tt++)}),P}function lt(E){if(E._status===-1){var Q=E._result;Q=Q(),Q.then(function(Z){(E._status===0||E._status===-1)&&(E._status=1,E._result=Z)},function(Z){(E._status===0||E._status===-1)&&(E._status=2,E._result=Z)}),E._status===-1&&(E._status=0,E._result=Q)}if(E._status===1)return E._result.default;throw E._result}var xt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=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(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},St={map:K,forEach:function(E,Q,Z){K(E,function(){Q.apply(this,arguments)},Z)},count:function(E){var Q=0;return K(E,function(){Q++}),Q},toArray:function(E){return K(E,function(Q){return Q})||[]},only:function(E){if(!at(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ot.Activity=y,ot.Children=St,ot.Component=L,ot.Fragment=o,ot.Profiler=r,ot.PureComponent=X,ot.StrictMode=c,ot.Suspense=p,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ot.__COMPILER_RUNTIME={__proto__:null,c:function(E){return H.H.useMemoCache(E)}},ot.cache=function(E){return function(){return E.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(E,Q,Z){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=C({},E.props),tt=E.key;if(Q!=null)for(rt in Q.key!==void 0&&(tt=""+Q.key),Q)!V.call(Q,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&Q.ref===void 0||(P[rt]=Q[rt]);var rt=arguments.length-2;if(rt===1)P.children=Z;else if(1<rt){for(var vt=Array(rt),qt=0;qt<rt;qt++)vt[qt]=arguments[qt+2];P.children=vt}return J(E.type,tt,P)},ot.createContext=function(E){return E={$$typeof:m,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ot.createElement=function(E,Q,Z){var P,tt={},rt=null;if(Q!=null)for(P in Q.key!==void 0&&(rt=""+Q.key),Q)V.call(Q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(tt[P]=Q[P]);var vt=arguments.length-2;if(vt===1)tt.children=Z;else if(1<vt){for(var qt=Array(vt),Mt=0;Mt<vt;Mt++)qt[Mt]=arguments[Mt+2];tt.children=qt}if(E&&E.defaultProps)for(P in vt=E.defaultProps,vt)tt[P]===void 0&&(tt[P]=vt[P]);return J(E,rt,tt)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(E){return{$$typeof:x,render:E}},ot.isValidElement=at,ot.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:lt}},ot.memo=function(E,Q){return{$$typeof:v,type:E,compare:Q===void 0?null:Q}},ot.startTransition=function(E){var Q=H.T,Z={};H.T=Z;try{var P=E(),tt=H.S;tt!==null&&tt(Z,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(F,xt)}catch(rt){xt(rt)}finally{Q!==null&&Z.types!==null&&(Q.types=Z.types),H.T=Q}},ot.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ot.use=function(E){return H.H.use(E)},ot.useActionState=function(E,Q,Z){return H.H.useActionState(E,Q,Z)},ot.useCallback=function(E,Q){return H.H.useCallback(E,Q)},ot.useContext=function(E){return H.H.useContext(E)},ot.useDebugValue=function(){},ot.useDeferredValue=function(E,Q){return H.H.useDeferredValue(E,Q)},ot.useEffect=function(E,Q){return H.H.useEffect(E,Q)},ot.useEffectEvent=function(E){return H.H.useEffectEvent(E)},ot.useId=function(){return H.H.useId()},ot.useImperativeHandle=function(E,Q,Z){return H.H.useImperativeHandle(E,Q,Z)},ot.useInsertionEffect=function(E,Q){return H.H.useInsertionEffect(E,Q)},ot.useLayoutEffect=function(E,Q){return H.H.useLayoutEffect(E,Q)},ot.useMemo=function(E,Q){return H.H.useMemo(E,Q)},ot.useOptimistic=function(E,Q){return H.H.useOptimistic(E,Q)},ot.useReducer=function(E,Q,Z){return H.H.useReducer(E,Q,Z)},ot.useRef=function(E){return H.H.useRef(E)},ot.useState=function(E){return H.H.useState(E)},ot.useSyncExternalStore=function(E,Q,Z){return H.H.useSyncExternalStore(E,Q,Z)},ot.useTransition=function(){return H.H.useTransition()},ot.version="19.2.6",ot}var wm;function Bi(){return wm||(wm=1,qc.exports=n0()),qc.exports}var k=Bi();const Ni=Mg(k);var Ep=k.createContext(void 0),a0=a=>{const i=k.useContext(Ep);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},l0=({client:a,children:i})=>(k.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),h.jsx(Ep.Provider,{value:a,children:i})),jp=k.createContext(!1),i0=()=>k.useContext(jp);jp.Provider;function s0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var o0=k.createContext(s0()),u0=()=>k.useContext(o0),c0=(a,i,o)=>{const c=o?.state.error&&typeof a.throwOnError=="function"?bp(a.throwOnError,[o.state.error,o]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||c)&&(i.isReset()||(a.retryOnMount=!1))},r0=a=>{k.useEffect(()=>{a.clearReset()},[a])},f0=({result:a,errorResetBoundary:i,throwOnError:o,query:c,suspense:r})=>a.isError&&!i.isReset()&&!a.isFetching&&c&&(r&&a.data===void 0||bp(o,[a.error,c])),d0=a=>{if(a.suspense){const o=r=>r==="static"?r:Math.max(r??1e3,1e3),c=a.staleTime;a.staleTime=typeof c=="function"?(...r)=>o(c(...r)):o(c),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},h0=(a,i)=>a.isLoading&&a.isFetching&&!i,m0=(a,i)=>a?.suspense&&i.isPending,Lm=(a,i,o)=>i.fetchOptimistic(a).catch(()=>{o.clearReset()});function p0(a,i,o){const c=i0(),r=u0(),d=a0(),m=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const x=d.getQueryCache().get(m.queryHash);m._optimisticResults=c?"isRestoring":"optimistic",d0(m),c0(m,r,x),r0(r);const p=!d.getQueryCache().get(m.queryHash),[v]=k.useState(()=>new i(d,m)),b=v.getOptimisticResult(m),y=!c&&a.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(S=>{const _=y?v.subscribe(ee.batchCalls(S)):he;return v.updateResult(),_},[v,y]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),k.useEffect(()=>{v.setOptions(m)},[m,v]),m0(m,b))throw Lm(m,v,r);if(f0({result:b,errorResetBoundary:r,throwOnError:m.throwOnError,query:x,suspense:m.suspense}))throw b.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(m,b),m.experimental_prefetchInRender&&!Oi.isServer()&&h0(b,c)&&(p?Lm(m,v,r):x?.promise)?.catch(he).finally(()=>{v.updateResult()}),m.notifyOnChangeProps?b:v.trackResult(b)}function We(a,i){return p0(a,Jg)}var Mi=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Qc(a){const i=k.useRef({value:a,prev:null}),o=i.current.value;return a!==o&&(i.current={value:a,prev:o}),i.current.prev}function v0(a,i,o={},c={}){k.useEffect(()=>{if(!a.current||c.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([d])=>{i(d)},o);return r.observe(a.current),()=>{r.disconnect()}},[i,o,c.disabled,a])}function y0(a){const i=k.useRef(null);return k.useImperativeHandle(a,()=>i.current,[]),i}const Mp=!1;function zi(a){return a[a.length-1]}function g0(a){return typeof a=="function"}function $n(a,i){return g0(a)?a(i):a}const Cp=Object.prototype.hasOwnProperty,Um=Object.prototype.propertyIsEnumerable;function Ap(a){for(const i in a)if(Cp.call(a,i))return!0;return!1}const x0=()=>Object.create(null),_a=(a,i)=>Ra(a,i,x0);function Ra(a,i,o=()=>({}),c=0){if(a===i)return a;if(c>500)return i;const r=i,d=qm(a)&&qm(r);if(!d&&!(Sl(a)&&Sl(r)))return r;const m=d?a:Bm(a);if(!m)return r;const x=d?r:Bm(r);if(!x)return r;const p=m.length,v=x.length,b=d?new Array(v):o();let y=0;for(let S=0;S<v;S++){const _=d?S:x[S],j=a[_],C=r[_];if(j===C){b[_]=j,(d?S<p:Cp.call(a,_))&&y++;continue}if(j===null||C===null||typeof j!="object"||typeof C!="object"){b[_]=C;continue}const D=Ra(j,C,o,c+1);b[_]=D,D===j&&y++}return p===v&&y===p?a:b}function Bm(a){const i=Object.getOwnPropertyNames(a);for(const r of i)if(!Um.call(a,r))return!1;const o=Object.getOwnPropertySymbols(a);if(o.length===0)return i;const c=i;for(const r of o){if(!Um.call(a,r))return!1;c.push(r)}return c}function Sl(a){if(!Hm(a))return!1;const i=a.constructor;if(typeof i>"u")return!0;const o=i.prototype;return!(!Hm(o)||!o.hasOwnProperty("isPrototypeOf"))}function Hm(a){return Object.prototype.toString.call(a)==="[object Object]"}function qm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function ja(a,i,o){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(Array.isArray(a)&&Array.isArray(i)){if(a.length!==i.length)return!1;for(let c=0,r=a.length;c<r;c++)if(!ja(a[c],i[c],o))return!1;return!0}if(Sl(a)&&Sl(i)){const c=o?.ignoreUndefined??!0;if(o?.partial){for(const m in i)if((!c||i[m]!==void 0)&&!ja(a[m],i[m],o))return!1;return!0}let r=0;if(!c)r=Object.keys(a).length;else for(const m in a)a[m]!==void 0&&r++;let d=0;for(const m in i)if((!c||i[m]!==void 0)&&(d++,d>r||!ja(a[m],i[m],o)))return!1;return r===d}return!1}function _l(a){let i,o;const c=new Promise((r,d)=>{i=r,o=d});return c.status="pending",c.resolve=r=>{c.status="resolved",c.value=r,i(r),a?.(r)},c.reject=r=>{c.status="rejected",o(r)},c}function Di(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function b0(a){return a.replace(/[\x00-\x1f\x7f]/g,"")}function Qm(a){let i;try{i=decodeURI(a)}catch{i=a.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}return b0(i)}const S0=["http:","https:","mailto:","tel:"];function mo(a,i){if(!a)return!1;try{const o=new URL(a);return!i.has(o.protocol)}catch{return!1}}function Si(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let o=0,c="",r;for(;(r=i.exec(a))!==null;)c+=Qm(a.slice(o,r.index))+r[0],o=i.lastIndex;c=c+Qm(o?a.slice(o):a);let d=!1;return c.startsWith("//")&&(d=!0,c="/"+c.replace(/^\/+/,"")),{path:c,handledProtocolRelativeURL:d}}function _0(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function T0(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let o=0;o<a.length;o++)if(a[o]!==i[o])return!1;return!0}function Tn(){throw new Error("Invariant failed")}function wi(a){const i=new Map;let o,c;const r=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,c&&(c.next=d,d.prev=c)):(d.next.prev=void 0,o=d.next,d.next=void 0,c&&(d.prev=c,c.next=d)),c=d)};return{get(d){const m=i.get(d);if(m)return r(m),m.value},set(d,m){if(i.size>=a&&o){const p=o;i.delete(p.key),p.next&&(o=p.next,p.next.prev=void 0),p===c&&(c=void 0)}const x=i.get(d);if(x)x.value=m,r(x);else{const p={key:d,value:m,prev:c};c&&(c.next=p),c=p,o||(o=p),i.set(d,p)}},clear(){i.clear(),o=void 0,c=void 0}}}const Wn=4,Op=5;function R0(a){const i=a.indexOf("{");if(i===-1)return null;const o=a.indexOf("}",i);return o===-1||i+1>=a.length?null:[i,o]}function Np(a,i,o=new Uint16Array(6)){const c=a.indexOf("/",i),r=c===-1?a.length:c,d=a.substring(i,r);if(!d||!d.includes("$"))return o[0]=0,o[1]=i,o[2]=i,o[3]=r,o[4]=r,o[5]=r,o;if(d==="$"){const x=a.length;return o[0]=2,o[1]=i,o[2]=i,o[3]=x,o[4]=x,o[5]=x,o}if(d.charCodeAt(0)===36)return o[0]=1,o[1]=i,o[2]=i+1,o[3]=r,o[4]=r,o[5]=r,o;const m=R0(d);if(m){const[x,p]=m,v=d.charCodeAt(x+1);if(v===45){if(x+2<d.length&&d.charCodeAt(x+2)===36){const b=x+3,y=p;if(b<y)return o[0]=3,o[1]=i+x,o[2]=i+b,o[3]=i+y,o[4]=i+p+1,o[5]=r,o}}else if(v===36){const b=x+1,y=x+2;return y===p?(o[0]=2,o[1]=i+x,o[2]=i+b,o[3]=i+y,o[4]=i+p+1,o[5]=a.length,o):(o[0]=1,o[1]=i+x,o[2]=i+y,o[3]=i+p,o[4]=i+p+1,o[5]=r,o)}}return o[0]=0,o[1]=i,o[2]=i,o[3]=r,o[4]=r,o[5]=r,o}function So(a,i,o,c,r,d,m){m?.(o);let x=c;{const p=o.fullPath??o.from,v=p.length,b=o.options?.caseSensitive??a,y=o.options?.params?.parse??o.options?.parseParams;for(;x<v;){const _=Np(p,x,i);let j;const C=x,D=_[5];switch(x=D+1,d++,_[0]){case 0:{const L=p.substring(_[2],_[3]);if(b){const z=r.static?.get(L);if(z)j=z;else{r.static??=new Map;const X=Ea(o.fullPath??o.from);X.parent=r,X.depth=d,j=X,r.static.set(L,X)}}else{const z=L.toLowerCase(),X=r.staticInsensitive?.get(z);if(X)j=X;else{r.staticInsensitive??=new Map;const G=Ea(o.fullPath??o.from);G.parent=r,G.depth=d,j=G,r.staticInsensitive.set(z,G)}}break}case 1:{const L=p.substring(C,_[1]),z=p.substring(_[4],D),X=b&&!!(L||z),G=L?X?L:L.toLowerCase():void 0,$=z?X?z:z.toLowerCase():void 0,F=!y&&r.dynamic?.find(H=>!H.parse&&H.caseSensitive===X&&H.prefix===G&&H.suffix===$);if(F)j=F;else{const H=Gc(1,o.fullPath??o.from,X,G,$);j=H,H.depth=d,H.parent=r,r.dynamic??=[],r.dynamic.push(H)}break}case 3:{const L=p.substring(C,_[1]),z=p.substring(_[4],D),X=b&&!!(L||z),G=L?X?L:L.toLowerCase():void 0,$=z?X?z:z.toLowerCase():void 0,F=!y&&r.optional?.find(H=>!H.parse&&H.caseSensitive===X&&H.prefix===G&&H.suffix===$);if(F)j=F;else{const H=Gc(3,o.fullPath??o.from,X,G,$);j=H,H.parent=r,H.depth=d,r.optional??=[],r.optional.push(H)}break}case 2:{const L=p.substring(C,_[1]),z=p.substring(_[4],D),X=b&&!!(L||z),G=L?X?L:L.toLowerCase():void 0,$=z?X?z:z.toLowerCase():void 0,F=Gc(2,o.fullPath??o.from,X,G,$);j=F,F.parent=r,F.depth=d,r.wildcard??=[],r.wildcard.push(F)}}r=j}if(y&&o.children&&!o.isRoot&&o.id&&o.id.charCodeAt(o.id.lastIndexOf("/")+1)===95){const _=Ea(o.fullPath??o.from);_.kind=Op,_.parent=r,d++,_.depth=d,r.pathless??=[],r.pathless.push(_),r=_}const S=(o.path||!o.children)&&!o.isRoot;if(S&&p.endsWith("/")){const _=Ea(o.fullPath??o.from);_.kind=Wn,_.parent=r,d++,_.depth=d,r.index=_,r=_}r.parse=y??null,S&&!r.route&&(r.route=o,r.fullPath=o.fullPath??o.from)}if(o.children)for(const p of o.children)So(a,i,p,x,r,d,m)}function Yc(a,i){if(a.parse&&!i.parse)return-1;if(!a.parse&&i.parse)return 1;if(a.prefix&&i.prefix&&a.prefix!==i.prefix){if(a.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(a.prefix))return 1}if(a.suffix&&i.suffix&&a.suffix!==i.suffix){if(a.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(a.suffix))return 1}return a.prefix&&!i.prefix?-1:!a.prefix&&i.prefix?1:a.suffix&&!i.suffix?-1:!a.suffix&&i.suffix?1:a.caseSensitive&&!i.caseSensitive?-1:!a.caseSensitive&&i.caseSensitive?1:0}function Pn(a){if(a.pathless)for(const i of a.pathless)Pn(i);if(a.static)for(const i of a.static.values())Pn(i);if(a.staticInsensitive)for(const i of a.staticInsensitive.values())Pn(i);if(a.dynamic?.length){a.dynamic.sort(Yc);for(const i of a.dynamic)Pn(i)}if(a.optional?.length){a.optional.sort(Yc);for(const i of a.optional)Pn(i)}if(a.wildcard?.length){a.wildcard.sort(Yc);for(const i of a.wildcard)Pn(i)}}function Ea(a){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null}}function Gc(a,i,o,c,r){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,caseSensitive:o,prefix:c,suffix:r}}function E0(a,i){const o=Ea("/"),c=new Uint16Array(6);for(const r of a)So(!1,c,r,1,o,0);Pn(o),i.masksTree=o,i.flatCache=wi(1e3)}function j0(a,i){a||="/";const o=i.flatCache.get(a);if(o)return o;const c=gr(a,i.masksTree);return i.flatCache.set(a,c),c}function M0(a,i,o,c,r){a||="/",c||="/";const d=i?`case\0${a}`:a;let m=r.singleCache.get(d);return m||(m=Ea("/"),So(i,new Uint16Array(6),{from:a},1,m,0),r.singleCache.set(d,m)),gr(c,m,o)}function C0(a,i,o=!1){const c=o?a:`nofuzz\0${a}`,r=i.matchCache.get(c);if(r!==void 0)return r;a||="/";let d;try{d=gr(a,i.segmentTree,o)}catch(m){if(m instanceof URIError)d=null;else throw m}return d&&(d.branch=Dp(d.route)),i.matchCache.set(c,d),d}function A0(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function O0(a,i=!1,o){const c=Ea(a.fullPath),r=new Uint16Array(6),d={},m={};let x=0;return So(i,r,a,1,c,0,p=>{if(o?.(p,x),p.id in d&&Tn(),d[p.id]=p,x!==0&&p.path){const v=A0(p.fullPath);(!m[v]||p.fullPath.endsWith("/"))&&(m[v]=p)}x++}),Pn(c),{processedTree:{segmentTree:c,singleCache:wi(1e3),matchCache:wi(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:m}}function gr(a,i,o=!1){const c=a.split("/"),r=z0(a,c,i,o);if(!r)return null;const[d]=zp(a,c,r);return{route:r.node.route,rawParams:d}}function zp(a,i,o){const c=N0(o.node);let r=null;const d=Object.create(null);let m=o.extract?.part??0,x=o.extract?.node??0,p=o.extract?.path??0,v=o.extract?.segment??0;for(;x<c.length;m++,x++,p++,v++){const b=c[x];if(b.kind===Wn)break;if(b.kind===Op){v--,m--,p--;continue}const y=i[m],S=p;if(y&&(p+=y.length),b.kind===1){r??=o.node.fullPath.split("/");const _=r[v],j=b.prefix?.length??0;if(_.charCodeAt(j)===123){const C=b.suffix?.length??0,D=_.substring(j+2,_.length-C-1),L=y.substring(j,y.length-C);d[D]=decodeURIComponent(L)}else{const C=_.substring(1);d[C]=decodeURIComponent(y)}}else if(b.kind===3){if(o.skipped&1<<x){m--,p=S-1;continue}r??=o.node.fullPath.split("/");const _=r[v],j=b.prefix?.length??0,C=b.suffix?.length??0,D=_.substring(j+3,_.length-C-1),L=b.suffix||b.prefix?y.substring(j,y.length-C):y;L&&(d[D]=decodeURIComponent(L))}else if(b.kind===2){const _=b,j=a.substring(S+(_.prefix?.length??0),a.length-(_.suffix?.length??0)),C=decodeURIComponent(j);d["*"]=C,d._splat=C;break}}return o.rawParams&&Object.assign(d,o.rawParams),[d,{part:m,node:x,path:p,segment:v}]}function Dp(a){const i=[a];for(;a.parentRoute;)a=a.parentRoute,i.push(a);return i.reverse(),i}function N0(a){const i=Array(a.depth+1);do i[a.depth]=a,a=a.parent;while(a);return i}function z0(a,i,o,c){if(a==="/"&&o.index)return{node:o.index,skipped:0};const r=!zi(i),d=r&&a!=="/",m=i.length-(r?1:0),x=[{node:o,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,v=null;for(;x.length;){const b=x.pop(),{node:y,index:S,skipped:_,depth:j,statics:C,dynamics:D,optionals:L}=b;let{extract:z,rawParams:X}=b;if(y.kind===2&&y.route&&!lo(v,b))continue;if(y.parse){if(!Ym(a,i,b))continue;X=b.rawParams,z=b.extract}c&&y.route&&y.kind!==Wn&&lo(p,b)&&(p=b);const G=S===m;if(G&&(y.route&&(!d||y.kind===Wn||y.kind===2)&&lo(v,b)&&(v=b),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const $=G?void 0:i[S];let F;if(G&&y.index){const H={node:y.index,index:S,skipped:_,depth:j+1,statics:C,dynamics:D,optionals:L,extract:z,rawParams:X};let V=!0;if(y.index.parse&&(Ym(a,i,H)||(V=!1)),V){if(!D&&!L&&!_&&D0(C,m))return H;lo(v,H)&&(v=H)}}if(y.wildcard)for(let H=y.wildcard.length-1;H>=0;H--){const V=y.wildcard[H],{prefix:J,suffix:it}=V;if(!(J&&(G||!(V.caseSensitive?$:F??=$.toLowerCase()).startsWith(J)))){if(it){if(G)continue;const at=i.slice(S).join("/").slice(-it.length);if((V.caseSensitive?at:at.toLowerCase())!==it)continue}x.push({node:V,index:m,skipped:_,depth:j+1,statics:C,dynamics:D,optionals:L,extract:z,rawParams:X})}}if(y.optional){const H=_|1<<j,V=j+1;for(let J=y.optional.length-1;J>=0;J--){const it=y.optional[J];x.push({node:it,index:S,skipped:H,depth:V,statics:C,dynamics:D,optionals:L,extract:z,rawParams:X})}if(!G)for(let J=y.optional.length-1;J>=0;J--){const it=y.optional[J],{prefix:at,suffix:et}=it;if(at||et){const Lt=it.caseSensitive?$:F??=$.toLowerCase();if(at&&!Lt.startsWith(at)||et&&!Lt.endsWith(et))continue}x.push({node:it,index:S+1,skipped:_,depth:V,statics:C,dynamics:D,optionals:L+ao(m,S),extract:z,rawParams:X})}}if(!G&&y.dynamic&&$)for(let H=y.dynamic.length-1;H>=0;H--){const V=y.dynamic[H],{prefix:J,suffix:it}=V;if(J||it){const at=V.caseSensitive?$:F??=$.toLowerCase();if(J&&!at.startsWith(J)||it&&!at.endsWith(it))continue}x.push({node:V,index:S+1,skipped:_,depth:j+1,statics:C,dynamics:D+ao(m,S),optionals:L,extract:z,rawParams:X})}if(!G&&y.staticInsensitive){const H=y.staticInsensitive.get(F??=$.toLowerCase());H&&x.push({node:H,index:S+1,skipped:_,depth:j+1,statics:C+ao(m,S),dynamics:D,optionals:L,extract:z,rawParams:X})}if(!G&&y.static){const H=y.static.get($);H&&x.push({node:H,index:S+1,skipped:_,depth:j+1,statics:C+ao(m,S),dynamics:D,optionals:L,extract:z,rawParams:X})}if(y.pathless){const H=j+1;for(let V=y.pathless.length-1;V>=0;V--){const J=y.pathless[V];x.push({node:J,index:S,skipped:_,depth:H,statics:C,dynamics:D,optionals:L,extract:z,rawParams:X})}}}if(v)return v;if(c&&p){let b=p.index;for(let S=0;S<p.index;S++)b+=i[S].length;const y=b===a.length?"/":a.slice(b);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(y),p}return null}function ao(a,i){return 2**(a-i-1)}function D0(a,i){return a===2**(i-1)-1}function Ym(a,i,o){let c,r;try{[c,r]=zp(a,i,o)}catch{return null}if(o.rawParams=c,o.extract=r,!o.node.parse)return!0;try{if(o.node.parse(c)===!1)return null}catch{}return!0}function lo(a,i){return a?i.statics>a.statics||i.statics===a.statics&&(i.dynamics>a.dynamics||i.dynamics===a.dynamics&&(i.optionals>a.optionals||i.optionals===a.optionals&&((i.node.kind===Wn)>(a.node.kind===Wn)||i.node.kind===Wn==(a.node.kind===Wn)&&i.depth>a.depth))):!0}function uo(a){return xr(a.filter(i=>i!==void 0).join("/"))}function xr(a){return a.replace(/\/{2,}/g,"/")}function wp(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function _n(a){const i=a.length;return i>1&&a[i-1]==="/"?a.replace(/\/{1,}$/,""):a}function Lp(a){return _n(wp(a))}function po(a,i){return a?.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function w0(a,i,o){return po(a,o)===po(i,o)}function L0({base:a,to:i,trailingSlash:o="never",cache:c}){const r=i.startsWith("/"),d=!r&&i===".";let m;if(c){m=r?i:d?a:a+"\0"+i;const v=c.get(m);if(v)return v}let x;if(d)x=a.split("/");else if(r)x=i.split("/");else{for(x=a.split("/");x.length>1&&zi(x)==="";)x.pop();const v=i.split("/");for(let b=0,y=v.length;b<y;b++){const S=v[b];S===""?b?b===y-1&&x.push(S):x=[S]:S===".."?x.pop():S==="."||x.push(S)}}x.length>1&&(zi(x)===""?o==="never"&&x.pop():o==="always"&&x.push(""));const p=xr(x.join("/"))||"/";return m&&c&&c.set(m,p),p}function U0(a){const i=new Map(a.map(r=>[encodeURIComponent(r),r])),o=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),c=new RegExp(o,"g");return r=>r.replace(c,d=>i.get(d)??d)}function Xc(a,i,o){const c=i[a];return typeof c!="string"?c:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(c)?c:c.split("/").map(r=>Xm(r,o)).join("/"):Xm(c,o)}function Gm({path:a,params:i,decoder:o,...c}){let r=!1;const d=Object.create(null);if(!a||a==="/")return{interpolatedPath:"/",usedParams:d,isMissingParams:r};if(!a.includes("$"))return{interpolatedPath:a,usedParams:d,isMissingParams:r};const m=a.length;let x=0,p,v="";for(;x<m;){const b=x;p=Np(a,b,p);const y=p[5];if(x=y+1,b===y)continue;const S=p[0];if(S===0){v+="/"+a.substring(b,y);continue}if(S===2){const _=i._splat;d._splat=_,d["*"]=_;const j=a.substring(b,p[1]),C=a.substring(p[4],y);if(!_){r=!0,(j||C)&&(v+="/"+j+C);continue}const D=Xc("_splat",i,o);v+="/"+j+D+C;continue}if(S===1){const _=a.substring(p[2],p[3]);!r&&!(_ in i)&&(r=!0),d[_]=i[_];const j=a.substring(b,p[1]),C=a.substring(p[4],y),D=Xc(_,i,o)??"undefined";v+="/"+j+D+C;continue}if(S===3){const _=a.substring(p[2],p[3]),j=i[_];if(j==null)continue;d[_]=j;const C=a.substring(b,p[1]),D=a.substring(p[4],y),L=Xc(_,i,o)??"";v+="/"+C+L+D;continue}}return a.endsWith("/")&&(v+="/"),{usedParams:d,interpolatedPath:v||"/",isMissingParams:r}}function Xm(a,i){const o=encodeURIComponent(a);return i?.(o)??o}function le(a){return a?.isNotFound===!0}function B0(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const H0="tsr-scroll-restoration-v1_3";function q0(){const a=B0();if(!a)return null;let i={};try{const c=JSON.parse(a.getItem("tsr-scroll-restoration-v1_3")||"{}");Sl(c)&&(i=c)}catch{}return{get state(){return i},set:c=>{i=$n(c,i)||i},persist:()=>{try{a.setItem(H0,JSON.stringify(i))}catch{}}}}const Vm=q0(),Q0=a=>a.state.__TSR_key||a.href;function Y0(a){const i=[];let o;for(;o=a.parentNode;)i.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(o.children,a)+1})`),a=o;return`${i.reverse().join(" > ")}`.toLowerCase()}let io=!1;const _i="window",Km="data-scroll-restoration-id";function G0(a,i){if(!Vm)return;const o=Vm;if((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isScrollRestorationSetup||!o)return;a.isScrollRestorationSetup=!0,io=!1;const c=a.options.getScrollRestorationKey||Q0,r=new Map;window.history.scrollRestoration="manual";const d=x=>{if(!(io||!a.isScrollRestoring))if(x.target===document||x.target===window)r.set(_i,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=x.target;r.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},m=x=>{if(!a.isScrollRestoring||!x||r.size===0||!o)return;const p=o.state[x]||={};for(const[v,b]of r){let y;if(v===_i)y=_i;else if(v.isConnected){const S=v.getAttribute(Km);y=S?`[${Km}="${S}"]`:Y0(v)}y&&(p[y]=b)}};document.addEventListener("scroll",d,!0),a.subscribe("onBeforeLoad",x=>{m(x.fromLocation?c(x.fromLocation):void 0),r.clear()}),window.addEventListener("pagehide",()=>{m(c(a.stores.resolvedLocation.get()??a.stores.location.get())),o.persist()}),a.subscribe("onRendered",x=>{const p=c(x.toLocation),v=a.options.scrollRestorationBehavior,b=a.options.scrollToTopSelectors;if(r.clear(),!a.resetNextScroll){a.resetNextScroll=!0;return}if(!(typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))){io=!0;try{const y=a.isScrollRestoring?o.state[p]:void 0;let S=!1;if(y)for(const _ in y){const j=y[_];if(!Sl(j))continue;const{scrollX:C,scrollY:D}=j;if(!(!Number.isFinite(C)||!Number.isFinite(D))){if(_===_i)window.scrollTo({top:D,left:C,behavior:v}),S=!0;else if(_){let L;try{L=document.querySelector(_)}catch{continue}L&&(L.scrollLeft=C,L.scrollTop=D,S=!0)}}}if(!S){const _=a.history.location.hash.slice(1);if(_){const j=window.history.state?.__hashScrollIntoViewOptions??!0;if(j){const C=document.getElementById(_);C&&C.scrollIntoView(j)}}else{const j={top:0,left:0,behavior:v};if(window.scrollTo(j),b)for(const C of b){if(C===_i)continue;const D=typeof C=="function"?C():document.querySelector(C);D&&D.scrollTo(j)}}}}finally{io=!1}a.isScrollRestoring&&o.set(y=>(y[p]||={},y))}})}function X0(a,i=String){const o=new URLSearchParams;for(const c in a){const r=a[c];r!==void 0&&o.set(c,i(r))}return o.toString()}function Vc(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function V0(a){const i=new URLSearchParams(a),o=Object.create(null);for(const[c,r]of i.entries()){const d=o[c];d==null?o[c]=Vc(r):Array.isArray(d)?d.push(Vc(r)):o[c]=[d,Vc(r)]}return o}const K0=k0(JSON.parse),Z0=J0(JSON.stringify,JSON.parse);function k0(a){return i=>{i[0]==="?"&&(i=i.substring(1));const o=V0(i);for(const c in o){const r=o[c];if(typeof r=="string")try{o[c]=a(r)}catch{}}return o}}function J0(a,i){const o=typeof i=="function";function c(r){if(typeof r=="object"&&r!==null)try{return a(r)}catch{}else if(o&&typeof r=="string")try{return i(r),a(r)}catch{}return r}return r=>{const d=X0(r,c);return d?`?${d}`:""}}const Ma="__root__";function F0(a){if(a.statusCode=a.statusCode||a.code||307,!a._builtLocation&&!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const i=new Headers(a.headers);a.href&&i.get("Location")===null&&i.set("Location",a.href);const o=new Response(null,{status:a.statusCode,headers:i});if(o.options=a,a.throw)throw o;return o}function me(a){return a instanceof Response&&!!a.options}function P0(a){return{input:({url:i})=>{for(const o of a)i=cr(o,i);return i},output:({url:i})=>{for(let o=a.length-1;o>=0;o--)i=Up(a[o],i);return i}}}function $0(a){const i=Lp(a.basepath),o=`/${i}`,c=`${o}/`,r=a.caseSensitive?o:o.toLowerCase(),d=a.caseSensitive?c:c.toLowerCase();return{input:({url:m})=>{const x=a.caseSensitive?m.pathname:m.pathname.toLowerCase();return x===r?m.pathname="/":x.startsWith(d)&&(m.pathname=m.pathname.slice(o.length)),m},output:({url:m})=>(m.pathname=uo(["/",i,m.pathname]),m)}}function cr(a,i){const o=a?.input?.({url:i});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return i}function Up(a,i){const o=a?.output?.({url:i});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return i}function W0(a,i){const{createMutableStore:o,createReadonlyStore:c,batch:r,init:d}=i,m=new Map,x=new Map,p=new Map,v=o(a.status),b=o(a.loadedAt),y=o(a.isLoading),S=o(a.isTransitioning),_=o(a.location),j=o(a.resolvedLocation),C=o(a.statusCode),D=o(a.redirect),L=o([]),z=o([]),X=o([]),G=c(()=>Kc(m,L.get())),$=c(()=>Kc(x,z.get())),F=c(()=>Kc(p,X.get())),H=c(()=>L.get()[0]),V=c(()=>L.get().some(K=>m.get(K)?.get().status==="pending")),J=c(()=>({locationHref:_.get().href,resolvedLocationHref:j.get()?.href,status:v.get()})),it=c(()=>({status:v.get(),loadedAt:b.get(),isLoading:y.get(),isTransitioning:S.get(),matches:G.get(),location:_.get(),resolvedLocation:j.get(),statusCode:C.get(),redirect:D.get()})),at=wi(64);function et(K){let lt=at.get(K);return lt||(lt=c(()=>{const xt=L.get();for(const St of xt){const E=m.get(St);if(E&&E.routeId===K)return E.get()}}),at.set(K,lt)),lt}const Lt={status:v,loadedAt:b,isLoading:y,isTransitioning:S,location:_,resolvedLocation:j,statusCode:C,redirect:D,matchesId:L,pendingIds:z,cachedIds:X,matches:G,pendingMatches:$,cachedMatches:F,firstId:H,hasPending:V,matchRouteDeps:J,matchStores:m,pendingMatchStores:x,cachedMatchStores:p,__store:it,getRouteMatchStore:et,setMatches:zt,setPending:Ht,setCached:U};zt(a.matches),d?.(Lt);function zt(K){Zc(K,m,L,o,r)}function Ht(K){Zc(K,x,z,o,r)}function U(K){Zc(K,p,X,o,r)}return Lt}function Kc(a,i){const o=[];for(const c of i){const r=a.get(c);r&&o.push(r.get())}return o}function Zc(a,i,o,c,r){const d=a.map(x=>x.id),m=new Set(d);r(()=>{for(const x of i.keys())m.has(x)||i.delete(x);for(const x of a){const p=i.get(x.id);if(!p){const v=c(x);v.routeId=x.routeId,i.set(x.id,v);continue}p.routeId=x.routeId,p.get()!==x&&p.set(x)}T0(o.get(),d)||o.set(d)})}const rr=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},I0=a=>a.stores.matchesId.get().some(i=>a.stores.matchStores.get(i)?.get()._forcePending),_o=(a,i)=>!!(a.preload&&!a.router.stores.matchStores.has(i)),Ca=(a,i,o=!0)=>{const c={...a.router.options.context??{}},r=o?i:i-1;for(let d=0;d<=r;d++){const m=a.matches[d];if(!m)continue;const x=a.router.getMatch(m.id);x&&Object.assign(c,x.__routeContext,x.__beforeLoadContext)}return c},Zm=(a,i)=>{if(!a.matches.length)return;const o=i.routeId,c=a.matches.findIndex(m=>m.routeId===a.router.routeTree.id),r=c>=0?c:0;let d=o?a.matches.findIndex(m=>m.routeId===o):a.firstBadMatchIndex??a.matches.length-1;d<0&&(d=r);for(let m=d;m>=0;m--){const x=a.matches[m];if(a.router.looseRoutesById[x.routeId].options.notFoundComponent)return m}return o?d:r},In=(a,i,o)=>{if(!(!me(o)&&!le(o)))throw me(o)&&o.redirectHandled&&!o.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=o,a.updateMatch(i.id,c=>({...c,status:me(o)?"redirected":le(o)?"notFound":c.status==="pending"?"success":c.status,context:Ca(a,i.index),isFetching:!1,error:o})),le(o)&&!o.routeId&&(o.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),me(o)&&(a.rendered=!0,o.options._fromLocation=a.location,o.redirectHandled=!0,o=a.router.resolveRedirect(o))),o},Bp=(a,i)=>{const o=a.router.getMatch(i);return!!(!o||o._nonReactive.dehydrated)},km=(a,i,o)=>{const c=Ca(a,o);a.updateMatch(i,r=>({...r,context:c}))},Ti=(a,i,o,c)=>{const{id:r,routeId:d}=a.matches[i],m=a.router.looseRoutesById[d];if(o instanceof Promise)throw o;o.routerCode=c,a.firstBadMatchIndex??=i,In(a,a.router.getMatch(r),o);try{m.options.onError?.(o)}catch(x){o=x,In(a,a.router.getMatch(r),o)}a.updateMatch(r,x=>(x._nonReactive.beforeLoadPromise?.resolve(),x._nonReactive.beforeLoadPromise=void 0,x._nonReactive.loadPromise?.resolve(),{...x,error:o,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!a.preload&&!me(o)&&!le(o)&&(a.serialError??=o)},Hp=(a,i,o,c)=>{if(c._nonReactive.pendingTimeout!==void 0)return;const r=o.options.pendingMs??a.router.options.defaultPendingMs;if(a.onReady&&!_o(a,i)&&(o.options.loader||o.options.beforeLoad||Qp(o))&&typeof r=="number"&&r!==1/0&&(o.options.pendingComponent??a.router.options?.defaultPendingComponent)){const d=setTimeout(()=>{rr(a)},r);c._nonReactive.pendingTimeout=d}},tx=(a,i,o)=>{const c=a.router.getMatch(i);if(!c._nonReactive.beforeLoadPromise&&!c._nonReactive.loaderPromise)return;Hp(a,i,o,c);const r=()=>{const d=a.router.getMatch(i);d.preload&&(d.status==="redirected"||d.status==="notFound")&&In(a,d,d.error)};return c._nonReactive.beforeLoadPromise?c._nonReactive.beforeLoadPromise.then(r):r()},ex=(a,i,o,c)=>{const r=a.router.getMatch(i);let d=r._nonReactive.loadPromise;r._nonReactive.loadPromise=_l(()=>{d?.resolve(),d=void 0});const{paramsError:m,searchError:x}=r;m&&Ti(a,o,m,"PARSE_PARAMS"),x&&Ti(a,o,x,"VALIDATE_SEARCH"),Hp(a,i,c,r);const p=new AbortController;let v=!1;const b=()=>{v||(v=!0,a.updateMatch(i,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:p})))},y=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,a.updateMatch(i,G=>({...G,isFetching:!1}))};if(!c.options.beforeLoad){a.router.batch(()=>{b(),y()});return}r._nonReactive.beforeLoadPromise=_l();const S={...Ca(a,o,!1),...r.__routeContext},{search:_,params:j,cause:C}=r,D=_o(a,i),L={search:_,abortController:p,params:j,preload:D,context:S,location:a.location,navigate:G=>a.router.navigate({...G,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:D?"preload":C,matches:a.matches,routeId:c.id,...a.router.options.additionalContext},z=G=>{if(G===void 0){a.router.batch(()=>{b(),y()});return}(me(G)||le(G))&&(b(),Ti(a,o,G,"BEFORE_LOAD")),a.router.batch(()=>{b(),a.updateMatch(i,$=>({...$,__beforeLoadContext:G})),y()})};let X;try{if(X=c.options.beforeLoad(L),Di(X))return b(),X.catch(G=>{Ti(a,o,G,"BEFORE_LOAD")}).then(z)}catch(G){b(),Ti(a,o,G,"BEFORE_LOAD")}z(X)},nx=(a,i)=>{const{id:o,routeId:c}=a.matches[i],r=a.router.looseRoutesById[c],d=()=>x(),m=()=>ex(a,o,i,r),x=()=>{if(Bp(a,o))return;const p=tx(a,o,r);return Di(p)?p.then(m):m()};return d()},ax=(a,i,o)=>{const c=a.router.getMatch(i);if(!c||!o.options.head&&!o.options.scripts&&!o.options.headers)return;const r={ssr:a.router.options.ssr,matches:a.matches,match:c,params:c.params,loaderData:c.loaderData};return Promise.all([o.options.head?.(r),o.options.scripts?.(r),o.options.headers?.(r)]).then(([d,m,x])=>({meta:d?.meta,links:d?.links,headScripts:d?.scripts,headers:x,scripts:m,styles:d?.styles}))},qp=(a,i,o,c,r)=>{const d=i[c-1],{params:m,loaderDeps:x,abortController:p,cause:v}=a.router.getMatch(o),b=Ca(a,c),y=_o(a,o);return{params:m,deps:x,preload:!!y,parentMatchPromise:d,abortController:p,context:b,location:a.location,navigate:S=>a.router.navigate({...S,_fromLocation:a.location}),cause:y?"preload":v,route:r,...a.router.options.additionalContext}},Jm=async(a,i,o,c,r)=>{try{const d=a.router.getMatch(o);try{(!(Mp??a.router.isServer)||d.ssr===!0)&&Li(r);const m=r.options.loader,x=typeof m=="function"?m:m?.handler,p=x?.(qp(a,i,o,c,r)),v=!!x&&Di(p);if((v||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||d._nonReactive.minPendingPromise)&&a.updateMatch(o,y=>({...y,isFetching:"loader"})),x){const y=v?await p:p;In(a,a.router.getMatch(o),y),y!==void 0&&a.updateMatch(o,S=>({...S,loaderData:y}))}r._lazyPromise&&await r._lazyPromise;const b=d._nonReactive.minPendingPromise;b&&await b,r._componentsPromise&&await r._componentsPromise,a.updateMatch(o,y=>({...y,error:void 0,context:Ca(a,c),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(m){let x=m;if(x?.name==="AbortError"){if(d.abortController.signal.aborted){d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loaderPromise=void 0;return}a.updateMatch(o,v=>({...v,status:v.status==="pending"?"success":v.status,isFetching:!1,context:Ca(a,c)}));return}const p=d._nonReactive.minPendingPromise;p&&await p,le(m)&&await r.options.notFoundComponent?.preload?.(),In(a,a.router.getMatch(o),m);try{r.options.onError?.(m)}catch(v){x=v,In(a,a.router.getMatch(o),v)}!me(x)&&!le(x)&&await Li(r,["errorComponent"]),a.updateMatch(o,v=>({...v,error:x,context:Ca(a,c),status:"error",isFetching:!1}))}}catch(d){const m=a.router.getMatch(o);m&&(m._nonReactive.loaderPromise=void 0),In(a,m,d)}},lx=async(a,i,o)=>{async function c(_,j,C,D,L){const z=Date.now()-j.updatedAt,X=_?L.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:L.options.staleTime??a.router.options.defaultStaleTime??0,G=L.options.shouldReload,$=typeof G=="function"?G(qp(a,i,r,o,L)):G,{status:F,invalid:H}=D,V=z>=X&&(!!a.forceStaleReload||D.cause==="enter"||C!==void 0&&C!==D.id);m=F==="success"&&(H||($??V)),_&&L.options.preload===!1||(m&&!a.sync&&b?(x=!0,(async()=>{try{await Jm(a,i,r,o,L);const J=a.router.getMatch(r);J._nonReactive.loaderPromise?.resolve(),J._nonReactive.loadPromise?.resolve(),J._nonReactive.loaderPromise=void 0,J._nonReactive.loadPromise=void 0}catch(J){me(J)&&await a.router.navigate(J.options)}})()):F!=="success"||m?await Jm(a,i,r,o,L):km(a,r,o))}const{id:r,routeId:d}=a.matches[o];let m=!1,x=!1;const p=a.router.looseRoutesById[d],v=p.options.loader,b=((typeof v=="function"?void 0:v?.staleReloadMode)??a.router.options.defaultStaleReloadMode)!=="blocking";if(Bp(a,r)){if(!a.router.getMatch(r))return a.matches[o];km(a,r,o)}else{const _=a.router.getMatch(r),j=a.router.stores.matchesId.get()[o],C=(j&&a.router.stores.matchStores.get(j)||null)?.routeId===d?j:a.router.stores.matches.get().find(L=>L.routeId===d)?.id,D=_o(a,r);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!a.sync&&!_.preload&&b)return _;await _._nonReactive.loaderPromise;const L=a.router.getMatch(r),z=L._nonReactive.error||L.error;z&&In(a,L,z),L.status==="pending"&&await c(D,_,C,L,p)}else{const L=D&&!a.router.stores.matchStores.has(r),z=a.router.getMatch(r);z._nonReactive.loaderPromise=_l(),L!==z.preload&&a.updateMatch(r,X=>({...X,preload:L})),await c(D,_,C,z,p)}}const y=a.router.getMatch(r);x||(y._nonReactive.loaderPromise?.resolve(),y._nonReactive.loadPromise?.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,x||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const S=x?y.isFetching:!1;return S!==y.isFetching||y.invalid!==!1?(a.updateMatch(r,_=>({..._,isFetching:S,invalid:!1})),a.router.getMatch(r)):y};async function Fm(a){const i=a,o=[];I0(i.router)&&rr(i);let c;for(let S=0;S<i.matches.length;S++){try{const _=nx(i,S);Di(_)&&await _}catch(_){if(me(_))throw _;if(le(_))c=_;else if(!i.preload)throw _;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const r=i.firstBadMatchIndex??i.matches.length,d=c&&!i.preload?Zm(i,c):void 0,m=c&&i.preload?0:d!==void 0?Math.min(d+1,r):r;let x,p;for(let S=0;S<m;S++)o.push(lx(i,o,S));try{await Promise.all(o)}catch{const S=await Promise.allSettled(o);for(const _ of S){if(_.status!=="rejected")continue;const j=_.reason;if(me(j))throw j;le(j)?x??=j:p??=j}if(p!==void 0)throw p}const v=x??(c&&!i.preload?c:void 0);let b=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!v&&c&&i.preload)return i.matches;if(v){const S=Zm(i,v);S===void 0&&Tn();const _=i.matches[S],j=i.router.looseRoutesById[_.routeId],C=i.router.options?.defaultNotFoundComponent;!j.options.notFoundComponent&&C&&(j.options.notFoundComponent=C),v.routeId=_.routeId;const D=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,L=>({...L,...D?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:v},isFetching:!1})),b=S,await Li(j,["notFoundComponent"])}else if(!i.preload){const S=i.matches[0];S.globalNotFound||i.router.getMatch(S.id)?.globalNotFound&&i.updateMatch(S.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const S=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Li(S,["errorComponent"])}for(let S=0;S<=b;S++){const{id:_,routeId:j}=i.matches[S],C=i.router.looseRoutesById[j];try{const D=ax(i,_,C);if(D){const L=await D;i.updateMatch(_,z=>({...z,...L}))}}catch(D){console.error(`Error executing head for route ${j}:`,D)}}const y=rr(i);if(Di(y)&&await y,v)throw v;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Pm(a,i){const o=i.map(c=>a.options[c]?.preload?.()).filter(Boolean);if(o.length!==0)return Promise.all(o)}function Li(a,i=co){!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(c=>{const{id:r,...d}=c.options;Object.assign(a.options,d),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0);const o=()=>a._componentsLoaded?void 0:i===co?(()=>{if(a._componentsPromise===void 0){const c=Pm(a,co);c?a._componentsPromise=c.then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0}):a._componentsLoaded=!0}return a._componentsPromise})():Pm(a,i);return a._lazyPromise?a._lazyPromise.then(o):o()}function Qp(a){for(const i of co)if(a.options[i]?.preload)return!0;return!1}const co=["component","errorComponent","pendingComponent","notFoundComponent"];var ea="__TSR_index",$m="popstate",Wm="beforeunload";function ix(a){let i=a.getLocation();const o=new Set,c=m=>{i=a.getLocation(),o.forEach(x=>x({location:i,action:m}))},r=m=>{a.notifyOnIndexChange??!0?c(m):i=a.getLocation()},d=async({task:m,navigateOpts:x,...p})=>{if(x?.ignoreBlocker??!1){m();return}const v=a.getBlockers?.()??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&v.length&&b)for(const y of v){const S=vo(p.path,p.state);if(await y.blockerFn({currentLocation:i,nextLocation:S,action:p.type})){a.onBlocked?.();return}}m()};return{get location(){return i},get length(){return a.getLength()},subscribers:o,subscribe:m=>(o.add(m),()=>{o.delete(m)}),push:(m,x,p)=>{const v=i.state[ea];x=Im(v+1,x),d({task:()=>{a.pushState(m,x),c({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:m,state:x})},replace:(m,x,p)=>{const v=i.state[ea];x=Im(v,x),d({task:()=>{a.replaceState(m,x),c({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:m,state:x})},go:(m,x)=>{d({task:()=>{a.go(m),r({type:"GO",index:m})},navigateOpts:x,type:"GO"})},back:m=>{d({task:()=>{a.back(m?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{d({task:()=>{a.forward(m?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>i.state[ea]!==0,createHref:m=>a.createHref(m),block:m=>{if(!a.setBlockers)return()=>{};const x=a.getBlockers?.()??[];return a.setBlockers([...x,m]),()=>{const p=a.getBlockers?.()??[];a.setBlockers?.(p.filter(v=>v!==m))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:c}}function Im(a,i){i||(i={});const o=br();return{...i,key:o,__TSR_key:o,[ea]:a}}function sx(a){const i=typeof document<"u"?window:void 0,o=i.history.pushState,c=i.history.replaceState;let r=[];const d=()=>r,m=V=>r=V,x=(V=>V),p=(()=>vo(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const V=br();i.history.replaceState({[ea]:0,key:V,__TSR_key:V},"")}let v=p(),b,y=!1,S=!1,_=!1,j=!1;const C=()=>v;let D,L;const z=()=>{D&&(H._ignoreSubscribers=!0,(D.isPush?i.history.pushState:i.history.replaceState)(D.state,"",D.href),H._ignoreSubscribers=!1,D=void 0,L=void 0,b=void 0)},X=(V,J,it)=>{const at=x(J);L||(b=v),v=vo(J,it),D={href:at,state:it,isPush:D?.isPush||V==="push"},L||(L=Promise.resolve().then(()=>z()))},G=V=>{v=p(),H.notify({type:V})},$=async()=>{if(S){S=!1;return}const V=p(),J=V.state[ea]-v.state[ea],it=J===1,at=J===-1,et=!it&&!at||y;y=!1;const Lt=et?"GO":at?"BACK":"FORWARD",zt=et?{type:"GO",index:J}:{type:at?"BACK":"FORWARD"};if(_)_=!1;else{const Ht=d();if(typeof document<"u"&&Ht.length){for(const U of Ht)if(await U.blockerFn({currentLocation:v,nextLocation:V,action:Lt})){S=!0,i.history.go(1),H.notify(zt);return}}}v=p(),H.notify(zt)},F=V=>{if(j){j=!1;return}let J=!1;const it=d();if(typeof document<"u"&&it.length)for(const at of it){const et=at.enableBeforeUnload??!0;if(et===!0){J=!0;break}if(typeof et=="function"&&et()===!0){J=!0;break}}if(J)return V.preventDefault(),V.returnValue=""},H=ix({getLocation:C,getLength:()=>i.history.length,pushState:(V,J)=>X("push",V,J),replaceState:(V,J)=>X("replace",V,J),back:V=>(V&&(_=!0),j=!0,i.history.back()),forward:V=>{V&&(_=!0),j=!0,i.history.forward()},go:V=>{y=!0,i.history.go(V)},createHref:V=>x(V),flush:z,destroy:()=>{i.history.pushState=o,i.history.replaceState=c,i.removeEventListener(Wm,F,{capture:!0}),i.removeEventListener($m,$)},onBlocked:()=>{b&&v!==b&&(v=b)},getBlockers:d,setBlockers:m,notifyOnIndexChange:!1});return i.addEventListener(Wm,F,{capture:!0}),i.addEventListener($m,$),i.history.pushState=function(...V){const J=o.apply(i.history,V);return H._ignoreSubscribers||G("PUSH"),J},i.history.replaceState=function(...V){const J=c.apply(i.history,V);return H._ignoreSubscribers||G("REPLACE"),J},H}function ox(a){let i=a.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function vo(a,i){const o=ox(a),c=o.indexOf("#"),r=o.indexOf("?"),d=br();return{href:o,pathname:o.substring(0,c>0?r>0?Math.min(c,r):c:r>0?r:o.length),hash:c>-1?o.substring(c):"",search:r>-1?o.slice(r,c===-1?void 0:c):"",state:i||{[ea]:0,key:d,__TSR_key:d}}}function br(){return(Math.random()+1).toString(36).substring(7)}function bl(a,i){const o=i,c=a;return{fromLocation:o,toLocation:c,pathChanged:o?.pathname!==c.pathname,hrefChanged:o?.href!==c.href,hashChanged:o?.hash!==c.hash}}var ux=class{constructor(a,i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=o=>o(),this.update=o=>{const c=this.options,r=this.basepath??c?.basepath??"/",d=this.basepath===void 0,m=c?.rewrite;if(this.options={...c,...o},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=U0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=sx()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let b;this.resolvePathCache=wi(1e3),b=this.buildRouteTree(),this.setRoutes(b)}if(!this.stores&&this.latestLocation){const b=this.getStoreConfig(this);this.batch=b.batch,this.stores=W0(rx(this.latestLocation),b),G0(this)}let x=!1;const p=this.options.basepath??"/",v=this.options.rewrite;if(d||r!==p||m!==v){this.basepath=p;const b=[],y=Lp(p);y&&y!=="/"&&b.push($0({basepath:p})),v&&b.push(v),this.rewrite=b.length===0?void 0:b.length===1?b[0]:P0(b),this.history&&this.updateLatestLocation(),x=!0}x&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const o=O0(this.routeTree,this.options.caseSensitive,(c,r)=>{c.init({originalIndex:r})});return this.options.routeMasks&&E0(this.options.routeMasks,o.processedTree),o},this.subscribe=(o,c)=>{const r={eventType:o,fn:c};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=o=>{this.subscribers.forEach(c=>{c.eventType===o.type&&c.fn(o)})},this.parseLocation=(o,c)=>{const r=({pathname:p,search:v,hash:b,href:y,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const L=this.options.parseSearch(v),z=this.options.stringifySearch(L);return{href:p+z+b,publicHref:p+z+b,pathname:Si(p).path,external:!1,searchStr:z,search:_a(c?.search,L),hash:Si(b.slice(1)).path,state:Ra(c?.state,S)}}const _=new URL(y,this.origin),j=cr(this.rewrite,_),C=this.options.parseSearch(j.search),D=this.options.stringifySearch(C);return j.search=D,{href:j.href.replace(j.origin,""),publicHref:y,pathname:Si(j.pathname).path,external:!!this.rewrite&&j.origin!==this.origin,searchStr:D,search:_a(c?.search,C),hash:Si(j.hash.slice(1)).path,state:Ra(c?.state,S)}},d=r(o),{__tempLocation:m,__tempKey:x}=d.state;if(m&&(!x||x===this.tempLocationKey)){const p=r(m);return p.state.key=d.state.key,p.state.__TSR_key=d.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:d}}return d},this.resolvePathWithBase=(o,c)=>L0({base:o,to:c.includes("//")?xr(c):c,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(o,c,r)=>typeof o=="string"?this.matchRoutesInternal({pathname:o,search:c},r):this.matchRoutesInternal(o,c),this.getMatchedRoutes=o=>fx({pathname:o,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=o=>{const c=this.getMatch(o);c&&(c.abortController.abort(),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(o=>{this.cancelMatch(o)}),this.stores.matchesId.get().forEach(o=>{if(this.stores.pendingMatchStores.has(o))return;const c=this.stores.matchStores.get(o)?.get();c&&(c.status==="pending"||c.isFetching==="loader")&&this.cancelMatch(o)})},this.buildLocation=o=>{const c=(d={})=>{const m=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,x=this.matchRoutesLightweight(m);d.from;const p=d.unsafeRelative==="path"?m.pathname:d.from??x.fullPath,v=d.to?`${d.to}`:void 0,b=x.search,y=Object.assign(Object.create(null),x.params),S=v?.charCodeAt(0)===47?"/":this.resolvePathWithBase(p,"."),_=v?this.resolvePathWithBase(S,v):S,j=d.params===!1||d.params===null?Object.create(null):(d.params??!0)===!0?y:Object.assign(y,$n(d.params,y)),C=this.routesByPath[_n(_)];let D;if(C)D=this.getRouteBranch(C);else if(_.includes("$"))D=[];else{const at=this.getMatchedRoutes(_);D=at.matchedRoutes,this.options.notFoundRoute&&(!at.foundRoute||at.foundRoute.path!=="/"&&at.routeParams["**"])&&(D=[...D,this.options.notFoundRoute])}if(D.length&&Ap(j))for(const at of D){const et=at.options.params?.stringify??at.options.stringifyParams;if(et)try{Object.assign(j,et(j))}catch{}}const L=o.leaveParams?_:Si(Gm({path:_,params:j,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let z=b;if(o._includeValidateSearch&&this.options.search?.strict){const at={};D.forEach(et=>{if(et.options.validateSearch)try{Object.assign(at,ro(et.options.validateSearch,{...at,...z}))}catch{}}),z=at}z=dx({search:z,dest:d,destRoutes:D,_includeValidateSearch:o._includeValidateSearch}),z=_a(b,z);const X=this.options.stringifySearch(z),G=d.hash===!0?m.hash:d.hash?$n(d.hash,m.hash):void 0,$=G?`#${G}`:"";let F=d.state===!0?m.state:d.state?$n(d.state,m.state):{};F=Ra(m.state,F);const H=`${L}${X}${$}`;let V,J,it=!1;if(this.rewrite){const at=new URL(H,this.origin),et=Up(this.rewrite,at);V=at.href.replace(at.origin,""),et.origin!==this.origin?(J=et.href,it=!0):J=et.pathname+et.search+et.hash}else V=_0(H),J=V;return{publicHref:J,href:V,pathname:L,search:z,searchStr:X,state:F,hash:G??"",external:it,unmaskOnReload:d.unmaskOnReload}},r=(d={},m)=>{const x=c(d);let p=m?c(m):void 0;if(!p){const v=Object.create(null);if(this.options.routeMasks){const b=j0(x.pathname,this.processedTree);if(b){Object.assign(v,b.rawParams);const{from:y,params:S,..._}=b.route,j=S===!1||S===null?Object.create(null):(S??!0)===!0?v:Object.assign(v,$n(S,v));m={from:o.from,..._,params:j},p=c(m)}}}return p&&(x.maskedLocation=p),x};return o.mask?r(o,{from:o.from,...o.mask}):r(o)},this.commitLocation=async({viewTransition:o,ignoreBlocker:c,...r})=>{const d=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(b=>{r.state[b]=this.latestLocation.state[b]});const v=ja(r.state,this.latestLocation.state);return p.forEach(b=>{delete r.state[b]}),v},m=_n(this.latestLocation.href)===_n(r.href);let x=this.commitLocationPromise;if(this.commitLocationPromise=_l(()=>{x?.resolve(),x=void 0}),m&&d())this.load();else{let{maskedLocation:p,hashScrollIntoView:v,...b}=r;p&&(b={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=o,this.history[r.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:c})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:o,resetScroll:c,hashScrollIntoView:r,viewTransition:d,ignoreBlocker:m,href:x,...p}={})=>{if(x){const y=this.history.location.state.__TSR_index,S=vo(x,{__TSR_index:o?y:y+1}),_=new URL(S.pathname,this.origin);p.to=cr(this.rewrite,_).pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const v=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=v;const b=this.commitLocation({...v,viewTransition:d,replace:o,resetScroll:c,hashScrollIntoView:r,ignoreBlocker:m});return Promise.resolve().then(()=>{this.pendingBuiltLocation===v&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:o,reloadDocument:c,href:r,publicHref:d,...m})=>{let x=!1;if(r)try{new URL(`${r}`),x=!0}catch{}if(x&&!c&&(c=!0),c){if(o!==void 0||!r){const v=this.buildLocation({to:o,...m});r=r??v.publicHref,d=d??v.publicHref}const p=!x&&d?d:r;if(mo(p,this.protocolAllowlist))return Promise.resolve();if(!m.ignoreBlocker){const v=this.history.getBlockers?.()??[];for(const b of v)if(b?.blockerFn&&await b.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return m.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...m,href:r,to:o,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const o=this.matchRoutes(this.latestLocation),c=this.stores.cachedMatches.get().filter(r=>!o.some(d=>d.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(o),this.stores.setCached(c)})},this.load=async o=>{let c,r,d;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(d=new Promise(p=>{this.startTransition(async()=>{try{this.beforeLoad();const v=this.latestLocation,b=bl(v,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...b}),this.emit({type:"onBeforeLoad",...b}),await Fm({router:this,sync:o?.sync,forceStaleReload:m.href===v.href,matches:this.stores.pendingMatches.get(),location:v,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let y=null,S=null,_=null,j=null;this.batch(()=>{const C=this.stores.pendingMatches.get(),D=C.length,L=this.stores.matches.get();y=D?L.filter(G=>!this.stores.pendingMatchStores.has(G.id)):null;const z=new Set;for(const G of this.stores.pendingMatchStores.values())G.routeId&&z.add(G.routeId);const X=new Set;for(const G of this.stores.matchStores.values())G.routeId&&X.add(G.routeId);S=D?L.filter(G=>!z.has(G.routeId)):null,_=D?C.filter(G=>!X.has(G.routeId)):null,j=D?C.filter(G=>X.has(G.routeId)):L,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),D&&(this.stores.setMatches(C),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...y.filter(G=>G.status!=="error"&&G.status!=="notFound"&&G.status!=="redirected")]),this.clearExpiredCache())});for(const[C,D]of[[S,"onLeave"],[_,"onEnter"],[j,"onStay"]])if(C)for(const L of C)this.looseRoutesById[L.routeId].options[D]?.(L)})})}})}catch(v){me(v)?(c=v,this.navigate({...c.options,replace:!0,ignoreBlocker:!0})):le(v)&&(r=v);const b=c?c.status:r?404:this.stores.matches.get().some(y=>y.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(b),this.stores.redirect.set(c)})}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let x;this.hasNotFoundMatch()?x=404:this.stores.matches.get().some(p=>p.status==="error")&&(x=500),x!==void 0&&this.stores.statusCode.set(x)},this.startViewTransition=o=>{const c=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,c&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof c=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,m=this.stores.resolvedLocation.get(),x=typeof c.types=="function"?c.types(bl(d,m)):c.types;if(x===!1){o();return}r={update:o,types:x}}else r=o;document.startViewTransition(r)}else o()},this.updateMatch=(o,c)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(o);if(r){r.set(c);return}const d=this.stores.matchStores.get(o);if(d){d.set(c);return}const m=this.stores.cachedMatchStores.get(o);if(m){const x=c(m.get());x.status==="redirected"?this.stores.cachedMatchStores.delete(o)&&this.stores.cachedIds.set(p=>p.filter(v=>v!==o)):m.set(x)}})},this.getMatch=o=>this.stores.cachedMatchStores.get(o)?.get()??this.stores.pendingMatchStores.get(o)?.get()??this.stores.matchStores.get(o)?.get(),this.invalidate=o=>{const c=r=>o?.filter?.(r)??!0?{...r,invalid:!0,...o?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(c)),this.stores.setCached(this.stores.cachedMatches.get().map(c)),this.stores.setPending(this.stores.pendingMatches.get().map(c))}),this.shouldViewTransition=!1,this.load({sync:o?.sync})},this.getParsedLocationHref=o=>o.publicHref||"/",this.resolveRedirect=o=>{const c=o.headers.get("Location");if(!o.options.href||o.options._builtLocation){const r=o.options._builtLocation??this.buildLocation(o.options),d=this.getParsedLocationHref(r);o.options.href=d,o.headers.set("Location",d)}else if(c)try{const r=new URL(c);if(this.origin&&r.origin===this.origin){const d=r.pathname+r.search+r.hash;o.options.href=d,o.headers.set("Location",d)}}catch{}if(o.options.href&&!o.options._builtLocation&&mo(o.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return o.headers.get("Location")||o.headers.set("Location",o.options.href),o},this.clearCache=o=>{const c=o?.filter;c!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!c(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const o=Date.now(),c=r=>{const d=this.looseRoutesById[r.routeId];if(!d.options.loader)return!0;const m=(r.preload?d.options.preloadGcTime??this.options.defaultPreloadGcTime:d.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:o-r.updatedAt>=m};this.clearCache({filter:c})},this.loadRouteChunk=Li,this.preloadRoute=async o=>{const c=o._builtLocation??this.buildLocation(o);let r=this.matchRoutes(c,{throwOnError:!0,preload:!0,dest:o});const d=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),m=new Set([...d,...this.stores.cachedIds.get()]),x=r.filter(p=>!m.has(p.id));if(x.length){const p=this.stores.cachedMatches.get();this.stores.setCached([...p,...x])}try{return r=await Fm({router:this,matches:r,location:c,preload:!0,updateMatch:(p,v)=>{d.has(p)?r=r.map(b=>b.id===p?v(b):b):this.updateMatch(p,v)}}),r}catch(p){if(me(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:c});le(p)||console.error(p);return}},this.matchRoute=(o,c)=>{const r={...o,to:o.to?this.resolvePathWithBase(o.from||"",o.to):void 0,params:o.params||{},leaveParams:!0},d=this.buildLocation(r);if(c?.pending&&this.stores.status.get()!=="pending")return!1;const m=(c?.pending===void 0?!this.stores.isLoading.get():c.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),x=M0(d.pathname,c?.caseSensitive??!1,c?.fuzzy??!1,m.pathname,this.processedTree);return!x||o.params&&!ja(x.rawParams,o.params,{partial:!0})?!1:c?.includeSearch??!0?ja(m.search,d.search,{partial:!0})?x.rawParams:!1:x.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(o=>o.status==="notFound"||o.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??Z0,parseSearch:a.parseSearch??K0,protocolAllowlist:a.protocolAllowlist??S0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:a,routesByPath:i,processedTree:o}){this.routesById=a,this.routesByPath=i,this.processedTree=o;const c=this.options.notFoundRoute;c&&(c.init({originalIndex:99999999999}),this.routesById[c.id]=c)}getRouteBranch(a){let i=this.routeBranchCache.get(a);return i||(i=Dp(a),this.routeBranchCache.set(a,i)),i}get looseRoutesById(){return this.routesById}getParentContext(a){return a?.id?a.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(a,i){const o=this.getMatchedRoutes(a.pathname),{foundRoute:c,routeParams:r}=o;let{matchedRoutes:d}=o,m=!1;(c?c.path!=="/"&&r["**"]:_n(a.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:m=!0);const x=m?mx(this.options.notFoundMode,d):void 0,p=new Array(d.length),v=new Map;for(const b of this.stores.matchStores.values())b.routeId&&v.set(b.routeId,b.get());for(let b=0;b<d.length;b++){const y=d[b],S=p[b-1];let _,j,C;{const et=S?.search??a.search,Lt=S?._strictSearch??void 0;try{const zt=ro(y.options.validateSearch,{...et})??void 0;_={...et,...zt},j={...Lt,...zt},C=void 0}catch(zt){let Ht=zt;if(zt instanceof yo||(Ht=new yo(zt.message,{cause:zt})),i?.throwOnError)throw Ht;_=et,j={},C=Ht}}const D=y.options.loaderDeps?.({search:_})??"",L=D?JSON.stringify(D):"",{interpolatedPath:z,usedParams:X}=Gm({path:y.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),G=y.id+z+L,$=this.getMatch(G),F=v.get(y.id),H=$?._strictParams??X;let V;if(!$)try{tp(y,H)}catch(et){if(le(et)||me(et)?V=et:V=new cx(et.message,{cause:et}),i?.throwOnError)throw V}Object.assign(r,H);const J=F?"stay":"enter";let it;if($)it={...$,cause:J,params:F?.params??r,_strictParams:H,search:_a(F?F.search:$.search,_),_strictSearch:j};else{const et=y.options.loader||y.options.beforeLoad||y.lazyFn||Qp(y)?"pending":"success";it={id:G,ssr:y.options.ssr,index:b,routeId:y.id,params:F?.params??r,_strictParams:H,pathname:z,updatedAt:Date.now(),search:F?_a(F.search,_):_,_strictSearch:j,searchError:void 0,status:et,isFetching:!1,error:void 0,paramsError:V,__routeContext:void 0,_nonReactive:{loadPromise:_l()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:J,loaderDeps:F?Ra(F.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}i?.preload||(it.globalNotFound=x===y.id),it.searchError=C;const at=this.getParentContext(S);it.context={...at,...it.__routeContext,...it.__beforeLoadContext},p[b]=it}for(let b=0;b<p.length;b++){const y=p[b],S=this.looseRoutesById[y.routeId],_=this.getMatch(y.id),j=v.get(y.routeId);if(y.params=j?_a(j.params,r):r,!_){const C=p[b-1],D=this.getParentContext(C);if(S.options.context){const L={deps:y.loaderDeps,params:y.params,context:D??{},location:a,navigate:z=>this.navigate({...z,_fromLocation:a}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:p,routeId:S.id};y.__routeContext=S.options.context(L)??void 0}y.context={...D,...y.__routeContext,...y.__beforeLoadContext}}}return p}matchRoutesLightweight(a){const{matchedRoutes:i,routeParams:o}=this.getMatchedRoutes(a.pathname),c=zi(i),r={...a.search};for(const v of i)try{Object.assign(r,ro(v.options.validateSearch,r))}catch{}const d=zi(this.stores.matchesId.get()),m=d&&this.stores.matchStores.get(d)?.get(),x=m&&m.routeId===c.id&&m.pathname===a.pathname;let p;if(x)p=m.params;else{const v=Object.assign(Object.create(null),o);for(const b of i)try{tp(b,v)}catch{}p=v}return{matchedRoutes:i,fullPath:c.fullPath,search:r,params:p}}},yo=class extends Error{},cx=class extends Error{};function rx(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],statusCode:200}}function ro(a,i){if(a==null)return{};if("~standard"in a){const o=a["~standard"].validate(i);if(o instanceof Promise)throw new yo("Async validation not supported");if(o.issues)throw new yo(JSON.stringify(o.issues,void 0,2),{cause:o});return o.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function fx({pathname:a,routesById:i,processedTree:o}){const c=Object.create(null),r=_n(a);let d;const m=C0(r,o,!0);return m&&(d=m.route,Object.assign(c,m.rawParams)),{matchedRoutes:m?.branch||[i.__root__],routeParams:c,foundRoute:d}}function dx({search:a,dest:i,destRoutes:o,_includeValidateSearch:c}){return hx(o)(a,i,c??!1)}function hx(a){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of a){if("search"in r.options)r.options.search?.middlewares&&i.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const d=({search:m,next:x})=>{let p=m;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(p=r.options.preSearchFilters.reduce((b,y)=>y(b),m));const v=x(p);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((b,y)=>y(b),v):v};i.middlewares.push(d)}if(r.options.validateSearch){const d=({search:m,next:x})=>{const p=x(m);if(!i._includeValidateSearch)return p;try{return{...p,...ro(r.options.validateSearch,p)??void 0}}catch{return p}};i.middlewares.push(d)}}const o=({search:r})=>{const d=i.dest;return d.search?d.search===!0?r:$n(d.search,r):{}};i.middlewares.push(o);const c=(r,d,m)=>{if(r>=m.length)return d;const x=m[r];return x({search:d,next:v=>c(r+1,v,m)})};return function(d,m,x){return i.dest=m,i._includeValidateSearch=x,c(0,d,i.middlewares)}}function mx(a,i){if(a!=="root")for(let o=i.length-1;o>=0;o--){const c=i[o];if(c.children)return c.id}return Ma}function tp(a,i){const o=a.options.params?.parse??a.options.parseParams;if(o){const c=o(i);if(c===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,c)}}const px="Error preloading route! ☝️";var Yp=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(a){if(this.init=i=>{this.originalIndex=i.originalIndex;const o=this.options,c=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),c?this._path=Ma:this.parentRoute||Tn();let r=c?Ma:o?.path;r&&r!=="/"&&(r=wp(r));const d=o?.id||r;let m=c?Ma:uo([this.parentRoute.id==="__root__"?"":this.parentRoute.id,d]);r==="__root__"&&(r="/"),m!=="__root__"&&(m=uo(["/",m]));const x=m==="__root__"?"/":uo([this.parentRoute.fullPath,r]);this._path=r,this._id=m,this._fullPath=x,this._to=_n(x)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>F0({from:this.fullPath,...i}),this.options=a||{},this.isRoot=!a?.getParentRoute,a?.id&&a?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},vx=class extends Yp{constructor(a){super(a)}};function yx(a){if(typeof document<"u"&&document.querySelector){const i=a.stores.location.get(),o=i.state.__hashScrollIntoViewOptions??!0;if(o&&i.hash!==""){const c=document.getElementById(i.hash);c&&c.scrollIntoView(o)}}}function Sr(a){const i=a.errorComponent??_r;return h.jsx(gx,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:o,reset:c})=>o?k.createElement(i,{error:o,reset:c}):a.children})}var gx=class extends k.Component{constructor(...a){super(...a),this.state={error:null}}static getDerivedStateFromProps(a,i){const o=a.getResetKey();return i.error&&i.resetKey!==o?{resetKey:o,error:null}:{resetKey:o}}static getDerivedStateFromError(a){return{error:a}}reset(){this.setState({error:null})}componentDidCatch(a,i){this.props.onCatch&&this.props.onCatch(a,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function _r({error:a}){const[i,o]=k.useState(!1);return h.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[h.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),h.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>o(c=>!c),children:i?"Hide Error":"Show Error"})]}),h.jsx("div",{style:{height:".25rem"}}),i?h.jsx("div",{children:h.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?h.jsx("code",{children:a.message}):null})}):null]})}function xx({children:a,fallback:i=null}){return Gp()?h.jsx(Ni.Fragment,{children:a}):h.jsx(Ni.Fragment,{children:i})}function Gp(){return Ni.useSyncExternalStore(bx,()=>!0,()=>!1)}function bx(){return()=>{}}var Xp=k.createContext(null);function Be(a){return k.useContext(Xp)}var To=k.createContext(void 0),Sx=k.createContext(void 0),wt=(a=>(a[a.None=0]="None",a[a.Mutable=1]="Mutable",a[a.Watching=2]="Watching",a[a.RecursedCheck=4]="RecursedCheck",a[a.Recursed=8]="Recursed",a[a.Dirty=16]="Dirty",a[a.Pending=32]="Pending",a))(wt||{});function _x({update:a,notify:i,unwatched:o}){return{link:c,unlink:r,propagate:d,checkDirty:m,shallowPropagate:x};function c(v,b,y){const S=b.depsTail;if(S!==void 0&&S.dep===v)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===v){_.version=y,b.depsTail=_;return}const j=v.subsTail;if(j!==void 0&&j.version===y&&j.sub===b)return;const C=b.depsTail=v.subsTail={version:y,dep:v,sub:b,prevDep:S,nextDep:_,prevSub:j,nextSub:void 0};_!==void 0&&(_.prevDep=C),S!==void 0?S.nextDep=C:b.deps=C,j!==void 0?j.nextSub=C:v.subs=C}function r(v,b=v.sub){const y=v.dep,S=v.prevDep,_=v.nextDep,j=v.nextSub,C=v.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,j!==void 0?j.prevSub=C:y.subsTail=C,C!==void 0?C.nextSub=j:(y.subs=j)===void 0&&o(y),_}function d(v){let b=v.nextSub,y;t:do{const S=v.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&p(v,S)?(S.flags=_|40,_&=1):_=0:S.flags=_&-9|32:_=0:S.flags=_|32,_&2&&i(S),_&1){const j=S.subs;if(j!==void 0){const C=(v=j).nextSub;C!==void 0&&(y={value:b,prev:y},b=C);continue}}if((v=b)!==void 0){b=v.nextSub;continue}for(;y!==void 0;)if(v=y.value,y=y.prev,v!==void 0){b=v.nextSub;continue t}break}while(!0)}function m(v,b){let y,S=0,_=!1;t:do{const j=v.dep,C=j.flags;if(b.flags&16)_=!0;else if((C&17)===17){if(a(j)){const D=j.subs;D.nextSub!==void 0&&x(D),_=!0}}else if((C&33)===33){(v.nextSub!==void 0||v.prevSub!==void 0)&&(y={value:v,prev:y}),v=j.deps,b=j,++S;continue}if(!_){const D=v.nextDep;if(D!==void 0){v=D;continue}}for(;S--;){const D=b.subs,L=D.nextSub!==void 0;if(L?(v=y.value,y=y.prev):v=D,_){if(a(b)){L&&x(D),b=v.sub;continue}_=!1}else b.flags&=-33;b=v.sub;const z=v.nextDep;if(z!==void 0){v=z;continue t}}return _}while(!0)}function x(v){do{const b=v.sub,y=b.flags;(y&48)===32&&(b.flags=y|16,(y&6)===2&&i(b))}while((v=v.nextSub)!==void 0)}function p(v,b){let y=b.depsTail;for(;y!==void 0;){if(y===v)return!0;y=y.prevDep}return!1}}function Tx(a,i,o){const c=typeof a=="object",r=c?a:void 0;return{next:(c?a.next:a)?.bind(r),error:(c?a.error:i)?.bind(r),complete:(c?a.complete:o)?.bind(r)}}const fr=[];let fo=0;const{link:ep,unlink:Rx,propagate:Ex,checkDirty:Vp,shallowPropagate:np}=_x({update(a){return a._update()},notify(a){fr[dr++]=a,a.flags&=~wt.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=wt.Mutable|wt.Dirty,go(a))}});let so=0,dr=0,Pe,hr=0;function Kp(a){try{++hr,a()}finally{--hr||Zp()}}function go(a){const i=a.depsTail;let o=i!==void 0?i.nextDep:a.deps;for(;o!==void 0;)o=Rx(o,a)}function Zp(){if(!(hr>0)){for(;so<dr;){const a=fr[so];fr[so++]=void 0,a.notify()}so=0,dr=0}}function ap(a,i){const o=typeof a=="function",c=a,r={_snapshot:o?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:o?wt.None:wt.Mutable,get(){return Pe!==void 0&&ep(r,Pe,fo),r._snapshot},subscribe(d){const m=Tx(d),x={current:!1},p=jx(()=>{r.get(),x.current?m.next?.(r._snapshot):x.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(d){const m=Pe,x=i?.compare??Object.is;if(o)Pe=r,++fo,r.depsTail=void 0;else if(d===void 0)return!1;o&&(r.flags=wt.Mutable|wt.RecursedCheck);try{const p=r._snapshot,v=typeof d=="function"?d(p):d===void 0&&o?c(p):d;return p===void 0||!x(p,v)?(r._snapshot=v,!0):!1}finally{Pe=m,o&&(r.flags&=~wt.RecursedCheck),go(r)}}};return o?(r.flags=wt.Mutable|wt.Dirty,r.get=function(){const d=r.flags;if(d&wt.Dirty||d&wt.Pending&&Vp(r.deps,r)){if(r._update()){const m=r.subs;m!==void 0&&np(m)}}else d&wt.Pending&&(r.flags=d&~wt.Pending);return Pe!==void 0&&ep(r,Pe,fo),r._snapshot}):r.set=function(d){if(r._update(d)){const m=r.subs;m!==void 0&&(Ex(m),np(m),Zp())}},r}function jx(a){const i=()=>{const c=Pe;Pe=o,++fo,o.depsTail=void 0,o.flags=wt.Watching|wt.RecursedCheck;try{return a()}finally{Pe=c,o.flags&=~wt.RecursedCheck,go(o)}},o={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:wt.Watching|wt.RecursedCheck,notify(){const c=this.flags;c&wt.Dirty||c&wt.Pending&&Vp(this.deps,this)?i():this.flags=wt.Watching},stop(){this.flags=wt.None,this.depsTail=void 0,go(this)}};return i(),o}var kc={exports:{}},Jc={},Fc={exports:{}},Pc={};var lp;function Mx(){if(lp)return Pc;lp=1;var a=Bi();function i(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var o=typeof Object.is=="function"?Object.is:i,c=a.useState,r=a.useEffect,d=a.useLayoutEffect,m=a.useDebugValue;function x(y,S){var _=S(),j=c({inst:{value:_,getSnapshot:S}}),C=j[0].inst,D=j[1];return d(function(){C.value=_,C.getSnapshot=S,p(C)&&D({inst:C})},[y,_,S]),r(function(){return p(C)&&D({inst:C}),y(function(){p(C)&&D({inst:C})})},[y]),m(_),_}function p(y){var S=y.getSnapshot;y=y.value;try{var _=S();return!o(y,_)}catch{return!0}}function v(y,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:x;return Pc.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,Pc}var ip;function Cx(){return ip||(ip=1,Fc.exports=Mx()),Fc.exports}var sp;function Ax(){if(sp)return Jc;sp=1;var a=Bi(),i=Cx();function o(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var c=typeof Object.is=="function"?Object.is:o,r=i.useSyncExternalStore,d=a.useRef,m=a.useEffect,x=a.useMemo,p=a.useDebugValue;return Jc.useSyncExternalStoreWithSelector=function(v,b,y,S,_){var j=d(null);if(j.current===null){var C={hasValue:!1,value:null};j.current=C}else C=j.current;j=x(function(){function L(F){if(!z){if(z=!0,X=F,F=S(F),_!==void 0&&C.hasValue){var H=C.value;if(_(H,F))return G=H}return G=F}if(H=G,c(X,F))return H;var V=S(F);return _!==void 0&&_(H,V)?(X=F,H):(X=F,G=V)}var z=!1,X,G,$=y===void 0?null:y;return[function(){return L(b())},$===null?void 0:function(){return L($())}]},[b,y,S,_]);var D=r(v,j[0],j[1]);return m(function(){C.hasValue=!0,C.value=D},[D]),p(D),D},Jc}var op;function Ox(){return op||(op=1,kc.exports=Ax()),kc.exports}var Nx=Ox();function zx(a,i){return a===i}function je(a,i,o=zx){const c=k.useCallback(m=>{if(!a)return()=>{};const{unsubscribe:x}=a.subscribe(m);return x},[a]),r=k.useCallback(()=>a?.get(),[a]);return Nx.useSyncExternalStoreWithSelector(c,r,r,i,o)}var Dx={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Aa(a){const i=Be(),o=k.useContext(a.from?Sx:To),c=a.from??o,r=c?a.from?i.stores.getRouteMatchStore(c):i.stores.matchStores.get(c):void 0,d=k.useRef(void 0);return je(r??Dx,m=>{if((a.shouldThrow??!0)&&!m&&Tn(),m===void 0)return;const x=a.select?a.select(m):m;if(a.structuralSharing??i.options.defaultStructuralSharing){const p=Ra(d.current,x);return d.current=p,p}return x})}function kp(a){return Aa({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.loaderData):i.loaderData})}function Jp(a){const{select:i,...o}=a;return Aa({...o,select:c=>i?i(c.loaderDeps):c.loaderDeps})}function Fp(a){return Aa({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const o=a.strict===!1?i.params:i._strictParams;return a.select?a.select(o):o}})}function Pp(a){return Aa({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.search):i.search})}function $p(a){const i=Be();return k.useCallback(o=>i.navigate({...o,from:o.from??a?.from}),[a?.from,i])}function Wp(a){return Aa({...a,select:i=>a.select?a.select(i.context):i.context})}var $c={exports:{}},ae={};var up;function wx(){if(up)return ae;up=1;var a=Bi();function i(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)v+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var c={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},r=Symbol.for("react.portal");function d(p,v,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:y==null?null:""+y,children:p,containerInfo:v,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ae.createPortal=function(p,v){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return d(p,v,null,b)},ae.flushSync=function(p){var v=m.T,b=c.p;try{if(m.T=null,c.p=2,p)return p()}finally{m.T=v,c.p=b,c.d.f()}},ae.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(p,v))},ae.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},ae.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var b=v.as,y=x(b,v.crossOrigin),S=typeof v.integrity=="string"?v.integrity:void 0,_=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;b==="style"?c.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:_}):b==="script"&&c.d.X(p,{crossOrigin:y,integrity:S,fetchPriority:_,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ae.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var b=x(v.as,v.crossOrigin);c.d.M(p,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(p)},ae.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var b=v.as,y=x(b,v.crossOrigin);c.d.L(p,b,{crossOrigin:y,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ae.preloadModule=function(p,v){if(typeof p=="string")if(v){var b=x(v.as,v.crossOrigin);c.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(p)},ae.requestFormReset=function(p){c.d.r(p)},ae.unstable_batchedUpdates=function(p,v){return p(v)},ae.useFormState=function(p,v,b){return m.H.useFormState(p,v,b)},ae.useFormStatus=function(){return m.H.useHostTransitionStatus()},ae.version="19.2.6",ae}var cp;function Ip(){if(cp)return $c.exports;cp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),$c.exports=wx(),$c.exports}var Lx=Ip();function Ux(a,i){const o=Be(),c=y0(i),{activeProps:r,inactiveProps:d,activeOptions:m,to:x,preload:p,preloadDelay:v,preloadIntentProximity:b,hashScrollIntoView:y,replace:S,startTransition:_,resetScroll:j,viewTransition:C,children:D,target:L,disabled:z,style:X,className:G,onClick:$,onBlur:F,onFocus:H,onMouseEnter:V,onMouseLeave:J,onTouchStart:it,ignoreBlocker:at,params:et,search:Lt,hash:zt,state:Ht,mask:U,reloadDocument:K,unsafeRelative:lt,from:xt,_fromLocation:St,...E}=a,Q=Gp(),Z=k.useMemo(()=>a,[o,a.from,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),P=je(o.stores.location,At=>At,(At,Ft)=>At.href===Ft.href),tt=k.useMemo(()=>{const At={_fromLocation:P,...Z};return o.buildLocation(At)},[o,P,Z]),rt=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,vt=tt.maskedLocation?tt.maskedLocation.external:tt.external,qt=k.useMemo(()=>Gx(rt,vt,o.history,z),[z,vt,rt,o.history]),Mt=k.useMemo(()=>{if(qt?.external)return mo(qt.href,o.protocolAllowlist)?void 0:qt.href;if(!Xx(x)&&!(typeof x!="string"||x.indexOf(":")===-1))try{return new URL(x),mo(x,o.protocolAllowlist)?void 0:x}catch{}},[x,qt,o.protocolAllowlist]),tn=k.useMemo(()=>{if(Mt)return!1;if(m?.exact){if(!w0(P.pathname,tt.pathname,o.basepath))return!1}else{const At=po(P.pathname,o.basepath),Ft=po(tt.pathname,o.basepath);if(!(At.startsWith(Ft)&&(At.length===Ft.length||At[Ft.length]==="/")))return!1}return(m?.includeSearch??!0)&&!ja(P.search,tt.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?Q&&P.hash===tt.hash:!0},[m?.exact,m?.explicitUndefined,m?.includeHash,m?.includeSearch,P,Mt,Q,tt.hash,tt.pathname,tt.search,o.basepath]),en=tn?$n(r,{})??Bx:Wc,Rn=tn?Wc:$n(d,{})??Wc,El=[G,en.className,Rn.className].filter(Boolean).join(" "),Xe=(X||en.style||Rn.style)&&{...X,...en.style,...Rn.style},[jl,Na]=k.useState(!1),Hi=k.useRef(!1),nn=a.reloadDocument||Mt?!1:p??o.options.defaultPreload,aa=v??o.options.defaultPreloadDelay??0,He=k.useCallback(()=>{o.preloadRoute({...Z,_builtLocation:tt}).catch(At=>{console.warn(At),console.warn(px)})},[o,Z,tt]);v0(c,k.useCallback(At=>{At?.isIntersecting&&He()},[He]),Yx,{disabled:!!z||nn!=="viewport"}),k.useEffect(()=>{Hi.current||!z&&nn==="render"&&(He(),Hi.current=!0)},[z,He,nn]);const Ml=At=>{const Ft=At.currentTarget.getAttribute("target"),Ve=L!==void 0?L:Ft;if(!z&&!Vx(At)&&!At.defaultPrevented&&(!Ve||Ve==="_self")&&At.button===0){At.preventDefault(),Lx.flushSync(()=>{Na(!0)});const za=o.subscribe("onResolved",()=>{za(),Na(!1)});o.navigate({...Z,replace:S,resetScroll:j,hashScrollIntoView:y,startTransition:_,viewTransition:C,ignoreBlocker:at})}};if(Mt)return{...E,ref:c,href:Mt,...D&&{children:D},...L&&{target:L},...z&&{disabled:z},...X&&{style:X},...G&&{className:G},...$&&{onClick:$},...F&&{onBlur:F},...H&&{onFocus:H},...V&&{onMouseEnter:V},...J&&{onMouseLeave:J},...it&&{onTouchStart:it}};const qi=At=>{if(z||nn!=="intent")return;if(!aa){He();return}const Ft=At.currentTarget;if(Ri.has(Ft))return;const Ve=setTimeout(()=>{Ri.delete(Ft),He()},aa);Ri.set(Ft,Ve)},Eo=At=>{z||nn!=="intent"||He()},ne=At=>{if(z||!nn||!aa)return;const Ft=At.currentTarget,Ve=Ri.get(Ft);Ve&&(clearTimeout(Ve),Ri.delete(Ft))};return{...E,...en,...Rn,href:qt?.href,ref:c,onClick:yl([$,Ml]),onBlur:yl([F,ne]),onFocus:yl([H,qi]),onMouseEnter:yl([V,qi]),onMouseLeave:yl([J,ne]),onTouchStart:yl([it,Eo]),disabled:!!z,target:L,...Xe&&{style:Xe},...El&&{className:El},...z&&Hx,...tn&&qx,...Q&&jl&&Qx}}var Wc={},Bx={className:"active"},Hx={role:"link","aria-disabled":!0},qx={"data-status":"active","aria-current":"page"},Qx={"data-transitioning":"transitioning"},Ri=new WeakMap,Yx={rootMargin:"100px"},yl=a=>i=>{for(const o of a)if(o){if(i.defaultPrevented)return;o(i)}};function Gx(a,i,o,c){if(!c)return i?{href:a,external:!0}:{href:o.createHref(a)||"/",external:!1}}function Xx(a){if(typeof a!="string")return!1;const i=a.charCodeAt(0);return i===47?a.charCodeAt(1)!==47:i===46}var na=k.forwardRef((a,i)=>{const{_asChild:o,...c}=a,{type:r,...d}=Ux(c,i),m=typeof c.children=="function"?c.children({isActive:d["data-status"]==="active"}):c.children;if(!o){const{disabled:x,...p}=d;return k.createElement("a",p,m)}return k.createElement(o,d,m)});function Vx(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}var Kx=class extends Yp{constructor(i){super(i),this.useMatch=o=>Aa({select:o?.select,from:this.id,structuralSharing:o?.structuralSharing}),this.useRouteContext=o=>Wp({...o,from:this.id}),this.useSearch=o=>Pp({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useParams=o=>Fp({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useLoaderDeps=o=>Jp({...o,from:this.id}),this.useLoaderData=o=>kp({...o,from:this.id}),this.useNavigate=()=>$p({from:this.fullPath}),this.Link=Ni.forwardRef((o,c)=>h.jsx(na,{ref:c,from:this.fullPath,...o}))}};function Zx(a){return new Kx(a)}function kx(){return a=>Fx(a)}var Jx=class extends vx{constructor(a){super(a),this.useMatch=i=>Aa({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Wp({...i,from:this.id}),this.useSearch=i=>Pp({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Fp({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Jp({...i,from:this.id}),this.useLoaderData=i=>kp({...i,from:this.id}),this.useNavigate=()=>$p({from:this.fullPath}),this.Link=Ni.forwardRef((i,o)=>h.jsx(na,{ref:o,from:this.fullPath,...i}))}};function Fx(a){return new Jx(a)}function Tl(a){return new Px(a,{silent:!0}).createRoute}var Px=class{constructor(a,i){this.path=a,this.createRoute=o=>{const c=Zx(o);return c.isRoot=!1,c},this.silent=i?.silent}};function $x(a){const i=Be(),o=`not-found-${je(i.stores.location,c=>c.pathname)}-${je(i.stores.status,c=>c)}`;return h.jsx(Sr,{getResetKey:()=>o,onCatch:(c,r)=>{if(le(c))a.onCatch?.(c,r);else throw c},errorComponent:({error:c})=>{if(le(c))return a.fallback?.(c);throw c},children:a.children})}function Wx(){return h.jsx("p",{children:"Not Found"})}function xl(a){return h.jsx(h.Fragment,{children:a.children})}function tv(a,i,o){return i.options.notFoundComponent?h.jsx(i.options.notFoundComponent,{...o}):a.options.defaultNotFoundComponent?h.jsx(a.options.defaultNotFoundComponent,{...o}):h.jsx(Wx,{})}function Ix(a){return null}function tb(){return Ix(Be()),null}var ev=k.memo(function({matchId:i}){const o=Be(),c=o.stores.matchStores.get(i);c||Tn();const r=je(o.stores.loadedAt,m=>m),d=je(c,m=>m);return h.jsx(eb,{router:o,matchId:i,resetKey:r,matchState:k.useMemo(()=>{const m=d.routeId,x=o.routesById[m].parentRoute?.id;return{routeId:m,ssr:d.ssr,_displayPending:d._displayPending,parentRouteId:x}},[d._displayPending,d.routeId,d.ssr,o.routesById])})});function eb({router:a,matchId:i,resetKey:o,matchState:c}){const r=a.routesById[c.routeId],d=r.options.pendingComponent??a.options.defaultPendingComponent,m=d?h.jsx(d,{}):null,x=r.options.errorComponent??a.options.defaultErrorComponent,p=r.options.onCatch??a.options.defaultOnCatch,v=r.isRoot?r.options.notFoundComponent??a.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=c.ssr===!1||c.ssr==="data-only",y=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??d??(r.options.errorComponent?.preload||b))?k.Suspense:xl,S=x?Sr:xl,_=v?$x:xl;return h.jsxs(r.isRoot?r.options.shellComponent??xl:xl,{children:[h.jsx(To.Provider,{value:i,children:h.jsx(y,{fallback:m,children:h.jsx(S,{getResetKey:()=>o,errorComponent:x||_r,onCatch:(j,C)=>{if(le(j))throw j.routeId??=c.routeId,j;p?.(j,C)},children:h.jsx(_,{fallback:j=>{if(j.routeId??=c.routeId,!v||j.routeId&&j.routeId!==c.routeId||!j.routeId&&!r.isRoot)throw j;return k.createElement(v,j)},children:b||c._displayPending?h.jsx(xx,{fallback:m,children:h.jsx(rp,{matchId:i})}):h.jsx(rp,{matchId:i})})})})}),c.parentRouteId===Ma?h.jsxs(h.Fragment,{children:[h.jsx(nb,{resetKey:o}),a.options.scrollRestoration&&Mp?h.jsx(tb,{}):null]}):null]})}function nb({resetKey:a}){const i=Be(),o=k.useRef(void 0);return Mi(()=>{const c=i.latestLocation.href;(o.current===void 0||o.current!==c)&&(i.emit({type:"onRendered",...bl(i.stores.location.get(),i.stores.resolvedLocation.get())}),o.current=c)},[i.latestLocation.state.__TSR_key,a,i]),null}var rp=k.memo(function({matchId:i}){const o=Be(),c=(b,y)=>o.getMatch(b.id)?._nonReactive[y]??b._nonReactive[y],r=o.stores.matchStores.get(i);r||Tn();const d=je(r,b=>b),m=d.routeId,x=o.routesById[m],p=k.useMemo(()=>{const b=(o.routesById[m].options.remountDeps??o.options.defaultRemountDeps)?.({routeId:m,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return b?JSON.stringify(b):void 0},[m,d.loaderDeps,d._strictParams,d._strictSearch,o.options.defaultRemountDeps,o.routesById]),v=k.useMemo(()=>{const b=x.options.component??o.options.defaultComponent;return b?h.jsx(b,{},p):h.jsx(nv,{})},[p,x.options.component,o.options.defaultComponent]);if(d._displayPending)throw c(d,"displayPendingPromise");if(d._forcePending)throw c(d,"minPendingPromise");if(d.status==="pending"){const b=x.options.pendingMinMs??o.options.defaultPendingMinMs;if(b){const y=o.getMatch(d.id);if(y&&!y._nonReactive.minPendingPromise){const S=_l();y._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),y._nonReactive.minPendingPromise=void 0},b)}}throw c(d,"loadPromise")}if(d.status==="notFound")return le(d.error)||Tn(),tv(o,x,d.error);if(d.status==="redirected")throw me(d.error)||Tn(),c(d,"loadPromise");if(d.status==="error")throw d.error;return v}),nv=k.memo(function(){const i=Be(),o=k.useContext(To);let c,r=!1,d;{const v=o?i.stores.matchStores.get(o):void 0;[c,r]=je(v,b=>[b?.routeId,b?.globalNotFound??!1]),d=je(i.stores.matchesId,b=>b[b.findIndex(y=>y===o)+1])}const m=c?i.routesById[c]:void 0,x=i.options.defaultPendingComponent?h.jsx(i.options.defaultPendingComponent,{}):null;if(r)return m||Tn(),tv(i,m,void 0);if(!d)return null;const p=h.jsx(ev,{matchId:d});return c===Ma?h.jsx(k.Suspense,{fallback:x,children:p}):p});function ab(){const a=Be(),i=k.useRef({router:a,mounted:!1}),[o,c]=k.useState(!1),r=je(a.stores.isLoading,y=>y),d=je(a.stores.hasPending,y=>y),m=Qc(r),x=r||o||d,p=Qc(x),v=r||d,b=Qc(v);return a.startTransition=y=>{c(!0),k.startTransition(()=>{y(),c(!1)})},k.useEffect(()=>{const y=a.history.subscribe(a.load),S=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return _n(a.latestLocation.publicHref)!==_n(S.publicHref)&&a.commitLocation({...S,replace:!0}),()=>{y()}},[a,a.history]),Mi(()=>{if(typeof window<"u"&&a.ssr||i.current.router===a&&i.current.mounted)return;i.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(S){console.error(S)}})()},[a]),Mi(()=>{m&&!r&&a.emit({type:"onLoad",...bl(a.stores.location.get(),a.stores.resolvedLocation.get())})},[m,a,r]),Mi(()=>{b&&!v&&a.emit({type:"onBeforeRouteMount",...bl(a.stores.location.get(),a.stores.resolvedLocation.get())})},[v,b,a]),Mi(()=>{if(p&&!x){const y=bl(a.stores.location.get(),a.stores.resolvedLocation.get());a.emit({type:"onResolved",...y}),Kp(()=>{a.stores.status.set("idle"),a.stores.resolvedLocation.set(a.stores.location.get())}),y.hrefChanged&&yx(a)}},[x,p,a]),null}function lb(){const a=Be(),i=a.routesById[Ma].options.pendingComponent??a.options.defaultPendingComponent,o=i?h.jsx(i,{}):null,c=h.jsxs(typeof document<"u"&&a.ssr?xl:k.Suspense,{fallback:o,children:[h.jsx(ab,{}),h.jsx(ib,{})]});return a.options.InnerWrap?h.jsx(a.options.InnerWrap,{children:c}):c}function ib(){const a=Be(),i=je(a.stores.firstId,r=>r),o=je(a.stores.loadedAt,r=>r),c=i?h.jsx(ev,{matchId:i}):null;return h.jsx(To.Provider,{value:i,children:a.options.disableGlobalCatchBoundary?c:h.jsx(Sr,{getResetKey:()=>o,errorComponent:_r,onCatch:void 0,children:c})})}var sb=a=>({createMutableStore:ap,createReadonlyStore:ap,batch:Kp}),ob=a=>new ub(a),ub=class extends ux{constructor(a){super(a,sb)}};function cb({router:a,children:i,...o}){Ap(o)&&a.update({...a.options,...o,context:{...a.options.context,...o.context}});const c=h.jsx(Xp.Provider,{value:a,children:i});return a.options.Wrap?h.jsx(a.options.Wrap,{children:c}):c}function rb({router:a,...i}){return h.jsx(cb,{router:a,...i,children:h.jsx(lb,{})})}var Ic={exports:{}},Ei={},tr={exports:{}},er={};var fp;function fb(){return fp||(fp=1,(function(a){function i(U,K){var lt=U.length;U.push(K);t:for(;0<lt;){var xt=lt-1>>>1,St=U[xt];if(0<r(St,K))U[xt]=K,U[lt]=St,lt=xt;else break t}}function o(U){return U.length===0?null:U[0]}function c(U){if(U.length===0)return null;var K=U[0],lt=U.pop();if(lt!==K){U[0]=lt;t:for(var xt=0,St=U.length,E=St>>>1;xt<E;){var Q=2*(xt+1)-1,Z=U[Q],P=Q+1,tt=U[P];if(0>r(Z,lt))P<St&&0>r(tt,Z)?(U[xt]=tt,U[P]=lt,xt=P):(U[xt]=Z,U[Q]=lt,xt=Q);else if(P<St&&0>r(tt,lt))U[xt]=tt,U[P]=lt,xt=P;else break t}}return K}function r(U,K){var lt=U.sortIndex-K.sortIndex;return lt!==0?lt:U.id-K.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();a.unstable_now=function(){return m.now()-x}}var p=[],v=[],b=1,y=null,S=3,_=!1,j=!1,C=!1,D=!1,L=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function G(U){for(var K=o(v);K!==null;){if(K.callback===null)c(v);else if(K.startTime<=U)c(v),K.sortIndex=K.expirationTime,i(p,K);else break;K=o(v)}}function $(U){if(C=!1,G(U),!j)if(o(p)!==null)j=!0,F||(F=!0,et());else{var K=o(v);K!==null&&Ht($,K.startTime-U)}}var F=!1,H=-1,V=5,J=-1;function it(){return D?!0:!(a.unstable_now()-J<V)}function at(){if(D=!1,F){var U=a.unstable_now();J=U;var K=!0;try{t:{j=!1,C&&(C=!1,z(H),H=-1),_=!0;var lt=S;try{e:{for(G(U),y=o(p);y!==null&&!(y.expirationTime>U&&it());){var xt=y.callback;if(typeof xt=="function"){y.callback=null,S=y.priorityLevel;var St=xt(y.expirationTime<=U);if(U=a.unstable_now(),typeof St=="function"){y.callback=St,G(U),K=!0;break e}y===o(p)&&c(p),G(U)}else c(p);y=o(p)}if(y!==null)K=!0;else{var E=o(v);E!==null&&Ht($,E.startTime-U),K=!1}}break t}finally{y=null,S=lt,_=!1}K=void 0}}finally{K?et():F=!1}}}var et;if(typeof X=="function")et=function(){X(at)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,zt=Lt.port2;Lt.port1.onmessage=at,et=function(){zt.postMessage(null)}}else et=function(){L(at,0)};function Ht(U,K){H=L(function(){U(a.unstable_now())},K)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(U){U.callback=null},a.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<U?Math.floor(1e3/U):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(U){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var lt=S;S=K;try{return U()}finally{S=lt}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(U,K){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var lt=S;S=U;try{return K()}finally{S=lt}},a.unstable_scheduleCallback=function(U,K,lt){var xt=a.unstable_now();switch(typeof lt=="object"&<!==null?(lt=lt.delay,lt=typeof lt=="number"&&0<lt?xt+lt:xt):lt=xt,U){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=lt+St,U={id:b++,callback:K,priorityLevel:U,startTime:lt,expirationTime:St,sortIndex:-1},lt>xt?(U.sortIndex=lt,i(v,U),o(p)===null&&U===o(v)&&(C?(z(H),H=-1):C=!0,Ht($,lt-xt))):(U.sortIndex=St,i(p,U),j||_||(j=!0,F||(F=!0,et()))),U},a.unstable_shouldYield=it,a.unstable_wrapCallback=function(U){var K=S;return function(){var lt=S;S=K;try{return U.apply(this,arguments)}finally{S=lt}}}})(er)),er}var dp;function db(){return dp||(dp=1,tr.exports=fb()),tr.exports}var hp;function hb(){if(hp)return Ei;hp=1;var a=db(),i=Bi(),o=Ip();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function x(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(d(t)!==t)throw Error(c(188))}function v(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return p(s),t;if(u===l)return p(s),e;u=u.sibling}throw Error(c(188))}if(n.return!==l.return)n=s,l=u;else{for(var f=!1,g=s.child;g;){if(g===n){f=!0,n=s,l=u;break}if(g===l){f=!0,l=s,n=u;break}g=g.sibling}if(!f){for(g=u.child;g;){if(g===n){f=!0,n=u,l=s;break}if(g===l){f=!0,l=u,n=s;break}g=g.sibling}if(!f)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),X=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function et(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var Lt=Symbol.for("react.client.reference");function zt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Lt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case L:return"Profiler";case D:return"StrictMode";case $:return"Suspense";case F:return"SuspenseList";case J:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case X:return t.displayName||"Context";case z:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return e=t.displayName||null,e!==null?e:zt(t.type)||"Memo";case V:e=t._payload,t=t._init;try{return zt(t(e))}catch{}}return null}var Ht=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lt={pending:!1,data:null,method:null,action:null},xt=[],St=-1;function E(t){return{current:t}}function Q(t){0>St||(t.current=xt[St],xt[St]=null,St--)}function Z(t,e){St++,xt[St]=t.current,t.current=e}var P=E(null),tt=E(null),rt=E(null),vt=E(null);function qt(t,e){switch(Z(rt,e),Z(tt,t),Z(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Kh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Kh(e),t=Zh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(P),Z(P,t)}function Mt(){Q(P),Q(tt),Q(rt)}function tn(t){t.memoizedState!==null&&Z(vt,t);var e=P.current,n=Zh(e,t.type);e!==n&&(Z(tt,t),Z(P,n))}function en(t){tt.current===t&&(Q(P),Q(tt)),vt.current===t&&(Q(vt),vi._currentValue=lt)}var Rn,El;function Xe(t){if(Rn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Rn=e&&e[1]||"",El=-1<n.stack.indexOf(`
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const d of r)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function o(r){const d={};return r.integrity&&(d.integrity=r.integrity),r.referrerPolicy&&(d.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?d.credentials="include":r.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(r){if(r.ep)return;r.ep=!0;const d=o(r);fetch(r.href,d)}})();function Mg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Hc={exports:{}},bi={};var _m;function Cg(){if(_m)return bi;_m=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(c,r,d){var m=null;if(d!==void 0&&(m=""+d),r.key!==void 0&&(m=""+r.key),"key"in r){d={};for(var x in r)x!=="key"&&(d[x]=r[x])}else d=r;return r=d.ref,{$$typeof:a,type:c,key:m,ref:r!==void 0?r:null,props:d}}return bi.Fragment=i,bi.jsx=o,bi.jsxs=o,bi}var Tm;function Ag(){return Tm||(Tm=1,Hc.exports=Cg()),Hc.exports}var h=Ag(),Ui=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Og=class extends Ui{#t;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#t!==a&&(this.#t=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},mr=new Og,Ng={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},zg=class{#t=Ng;#e=!1;setTimeoutProvider(a){this.#t=a}setTimeout(a,i){return this.#t.setTimeout(a,i)}clearTimeout(a){this.#t.clearTimeout(a)}setInterval(a,i){return this.#t.setInterval(a,i)}clearInterval(a){this.#t.clearInterval(a)}},Ta=new zg;function Dg(a){setTimeout(a,0)}var wg=typeof window>"u"||"Deno"in globalThis;function he(){}function Lg(a,i){return typeof a=="function"?a(i):a}function nr(a){return typeof a=="number"&&a>=0&&a!==1/0}function yp(a,i){return Math.max(a+(i||0)-Date.now(),0)}function ta(a,i){return typeof a=="function"?a(i):a}function Re(a,i){return typeof a=="function"?a(i):a}function Rm(a,i){const{type:o="all",exact:c,fetchStatus:r,predicate:d,queryKey:m,stale:x}=a;if(m){if(c){if(i.queryHash!==pr(m,i.options))return!1}else if(!Ai(i.queryKey,m))return!1}if(o!=="all"){const p=i.isActive();if(o==="active"&&!p||o==="inactive"&&p)return!1}return!(typeof x=="boolean"&&i.isStale()!==x||r&&r!==i.state.fetchStatus||d&&!d(i))}function Em(a,i){const{exact:o,status:c,predicate:r,mutationKey:d}=a;if(d){if(!i.options.mutationKey)return!1;if(o){if(Ci(i.options.mutationKey)!==Ci(d))return!1}else if(!Ai(i.options.mutationKey,d))return!1}return!(c&&i.state.status!==c||r&&!r(i))}function pr(a,i){return(i?.queryKeyHashFn||Ci)(a)}function Ci(a){return JSON.stringify(a,(i,o)=>lr(o)?Object.keys(o).sort().reduce((c,r)=>(c[r]=o[r],c),{}):o)}function Ai(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(o=>Ai(a[o],i[o])):!1}var Ug=Object.prototype.hasOwnProperty;function gp(a,i,o=0){if(a===i)return a;if(o>500)return i;const c=jm(a)&&jm(i);if(!c&&!(lr(a)&&lr(i)))return i;const d=(c?a:Object.keys(a)).length,m=c?i:Object.keys(i),x=m.length,p=c?new Array(x):{};let v=0;for(let b=0;b<x;b++){const y=c?b:m[b],S=a[y],_=i[y];if(S===_){p[y]=S,(c?b<d:Ug.call(a,y))&&v++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){p[y]=_;continue}const j=gp(S,_,o+1);p[y]=j,j===S&&v++}return d===x&&v===d?a:p}function ar(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const o in a)if(a[o]!==i[o])return!1;return!0}function jm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function lr(a){if(!Mm(a))return!1;const i=a.constructor;if(i===void 0)return!0;const o=i.prototype;return!(!Mm(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Mm(a){return Object.prototype.toString.call(a)==="[object Object]"}function Bg(a){return new Promise(i=>{Ta.setTimeout(i,a)})}function ir(a,i,o){return typeof o.structuralSharing=="function"?o.structuralSharing(a,i):o.structuralSharing!==!1?gp(a,i):i}function Hg(a,i,o=0){const c=[...a,i];return o&&c.length>o?c.slice(1):c}function qg(a,i,o=0){const c=[i,...a];return o&&c.length>o?c.slice(0,-1):c}var vr=Symbol();function xp(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===vr?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function bp(a,i){return typeof a=="function"?a(...i):!!a}function Qg(a,i,o){let c=!1,r;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(r??=i(),c||(c=!0,r.aborted?o():r.addEventListener("abort",o,{once:!0})),r)}),a}var Oi=(()=>{let a=()=>wg;return{isServer(){return a()},setIsServer(i){a=i}}})();function sr(){let a,i;const o=new Promise((r,d)=>{a=r,i=d});o.status="pending",o.catch(()=>{});function c(r){Object.assign(o,r),delete o.resolve,delete o.reject}return o.resolve=r=>{c({status:"fulfilled",value:r}),a(r)},o.reject=r=>{c({status:"rejected",reason:r}),i(r)},o}var Yg=Dg;function Gg(){let a=[],i=0,o=x=>{x()},c=x=>{x()},r=Yg;const d=x=>{i?a.push(x):r(()=>{o(x)})},m=()=>{const x=a;a=[],x.length&&r(()=>{c(()=>{x.forEach(p=>{o(p)})})})};return{batch:x=>{let p;i++;try{p=x()}finally{i--,i||m()}return p},batchCalls:x=>(...p)=>{d(()=>{x(...p)})},schedule:d,setNotifyFunction:x=>{o=x},setBatchNotifyFunction:x=>{c=x},setScheduler:x=>{r=x}}}var ee=Gg(),Vg=class extends Ui{#t=!0;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a(!0),o=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(this.setOnline.bind(this))}setOnline(a){this.#t!==a&&(this.#t=a,this.listeners.forEach(o=>{o(a)}))}isOnline(){return this.#t}},ho=new Vg;function Xg(a){return Math.min(1e3*2**a,3e4)}function Sp(a){return(a??"online")==="online"?ho.isOnline():!0}var or=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function _p(a){let i=!1,o=0,c;const r=sr(),d=()=>r.status!=="pending",m=C=>{if(!d()){const D=new or(C);S(D),a.onCancel?.(D)}},x=()=>{i=!0},p=()=>{i=!1},v=()=>mr.isFocused()&&(a.networkMode==="always"||ho.isOnline())&&a.canRun(),b=()=>Sp(a.networkMode)&&a.canRun(),y=C=>{d()||(c?.(),r.resolve(C))},S=C=>{d()||(c?.(),r.reject(C))},_=()=>new Promise(C=>{c=D=>{(d()||v())&&C(D)},a.onPause?.()}).then(()=>{c=void 0,d()||a.onContinue?.()}),j=()=>{if(d())return;let C;const D=o===0?a.initialPromise:void 0;try{C=D??a.fn()}catch(L){C=Promise.reject(L)}Promise.resolve(C).then(y).catch(L=>{if(d())return;const z=a.retry??(Oi.isServer()?0:3),V=a.retryDelay??Xg,G=typeof V=="function"?V(o,L):V,$=z===!0||typeof z=="number"&&o<z||typeof z=="function"&&z(o,L);if(i||!$){S(L);return}o++,a.onFail?.(o,L),Bg(G).then(()=>v()?void 0:_()).then(()=>{i?S(L):j()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(c?.(),r),cancelRetry:x,continueRetry:p,canStart:b,start:()=>(b()?j():_().then(j),r)}}var Tp=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nr(this.gcTime)&&(this.#t=Ta.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Oi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(Ta.clearTimeout(this.#t),this.#t=void 0)}};function Kg(a){return{onFetch:(i,o)=>{const c=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let x={pages:[],pageParams:[]},p=0;const v=async()=>{let b=!1;const y=j=>{Qg(j,()=>i.signal,()=>b=!0)},S=xp(i.options,i.fetchOptions),_=async(j,C,D)=>{if(b)return Promise.reject(i.signal.reason);if(C==null&&j.pages.length)return Promise.resolve(j);const z=(()=>{const F={client:i.client,queryKey:i.queryKey,pageParam:C,direction:D?"backward":"forward",meta:i.options.meta};return y(F),F})(),V=await S(z),{maxPages:G}=i.options,$=D?qg:Hg;return{pages:$(j.pages,V,G),pageParams:$(j.pageParams,C,G)}};if(r&&d.length){const j=r==="backward",C=j?Zg:Cm,D={pages:d,pageParams:m},L=C(c,D);x=await _(D,L,j)}else{const j=a??d.length;do{const C=p===0?m[0]??c.initialPageParam:Cm(c,x);if(p>0&&C==null)break;x=await _(x,C),p++}while(p<j)}return x};i.options.persister?i.fetchFn=()=>i.options.persister?.(v,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},o):i.fetchFn=v}}}function Cm(a,{pages:i,pageParams:o}){const c=i.length-1;return i.length>0?a.getNextPageParam(i[c],i,o[c],o):void 0}function Zg(a,{pages:i,pageParams:o}){return i.length>0?a.getPreviousPageParam?.(i[0],i,o[0],o):void 0}var kg=class extends Tp{#t;#e;#n;#a;#i;#l;#o;#s;constructor(a){super(),this.#s=!1,this.#o=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#i=a.client,this.#a=this.#i.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=Om(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#l?.promise}setOptions(a){if(this.options={...this.#o,...a},a?._type&&(this.#t=a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Om(this.options);i.data!==void 0&&(this.setState(Am(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(a,i){const o=ir(this.state.data,a,this.options);return this.#u({data:o,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),o}setState(a){this.#u({type:"setState",state:a})}cancel(a){const i=this.#l?.promise;return this.#l?.cancel(a),i?i.then(he).catch(he):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>Re(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>ta(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!yp(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#l&&(this.#s||this.#r()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(a,i){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(a&&this.setOptions(a),!this.options.queryFn){const p=this.observers.find(v=>v.options.queryFn);p&&this.setOptions(p.options)}const o=new AbortController,c=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#s=!0,o.signal)})},r=()=>{const p=xp(this.options,i),b=(()=>{const y={client:this.#i,queryKey:this.queryKey,meta:this.meta};return c(y),y})();return this.#s=!1,this.options.persister?this.options.persister(p,b,this):p(b)},m=(()=>{const p={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return c(p),p})();(this.#t==="infinite"?Kg(this.options.pages):this.options.behavior)?.onFetch(m,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#u({type:"fetch",meta:m.fetchOptions?.meta}),this.#l=_p({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:p=>{p instanceof or&&p.revert&&this.setState({...this.#n,fetchStatus:"idle"}),o.abort()},onFail:(p,v)=>{this.#u({type:"failed",failureCount:p,error:v})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0});try{const p=await this.#l.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#a.config.onSuccess?.(p,this),this.#a.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof or){if(p.silent)return this.#l.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#u({type:"error",error:p}),this.#a.config.onError?.(p,this),this.#a.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#u(a){const i=o=>{switch(a.type){case"failed":return{...o,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...Rp(o.data,this.options),fetchMeta:a.meta??null};case"success":const c={...o,...Am(a.data,a.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=a.manual?c:void 0,c;case"error":const r=a.error;return{...o,error:r,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...a.state}}};this.state=i(this.state),ee.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:a})})}};function Rp(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sp(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Am(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Om(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,o=i!==void 0,c=o?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:o?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var Jg=class extends Ui{constructor(a,i){super(),this.options=i,this.#t=a,this.#s=null,this.#o=sr(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#a=void 0;#i;#l;#o;#s;#r;#u;#m;#f;#d;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Nm(this.#e,this.options)?this.#h():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ur(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ur(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#e.removeObserver(this)}setOptions(a){const i=this.options,o=this.#e;if(this.options=this.#t.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Re(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),i._defaulted&&!ar(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const c=this.hasListeners();c&&zm(this.#e,o,this.options,i)&&this.#h(),this.updateResult(),c&&(this.#e!==o||Re(this.options.enabled,this.#e)!==Re(i.enabled,this.#e)||ta(this.options.staleTime,this.#e)!==ta(i.staleTime,this.#e))&&this.#v();const r=this.#y();c&&(this.#e!==o||Re(this.options.enabled,this.#e)!==Re(i.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(a){const i=this.#t.getQueryCache().build(this.#t,a),o=this.createResult(i,a);return Pg(this,o)&&(this.#a=o,this.#l=this.options,this.#i=this.#e.state),o}getCurrentResult(){return this.#a}trackResult(a,i){return new Proxy(a,{get:(o,c)=>(this.trackProp(c),i?.(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,c))})}trackProp(a){this.#p.add(a)}getCurrentQuery(){return this.#e}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#t.defaultQueryOptions(a),o=this.#t.getQueryCache().build(this.#t,i);return o.fetch().then(()=>this.createResult(o,i))}fetch(a){return this.#h({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#h(a){this.#_();let i=this.#e.fetch(this.options,a);return a?.throwOnError||(i=i.catch(he)),i}#v(){this.#b();const a=ta(this.options.staleTime,this.#e);if(Oi.isServer()||this.#a.isStale||!nr(a))return;const o=yp(this.#a.dataUpdatedAt,a)+1;this.#f=Ta.setTimeout(()=>{this.#a.isStale||this.updateResult()},o)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(a){this.#S(),this.#c=a,!(Oi.isServer()||Re(this.options.enabled,this.#e)===!1||!nr(this.#c)||this.#c===0)&&(this.#d=Ta.setInterval(()=>{(this.options.refetchIntervalInBackground||mr.isFocused())&&this.#h()},this.#c))}#x(){this.#v(),this.#g(this.#y())}#b(){this.#f!==void 0&&(Ta.clearTimeout(this.#f),this.#f=void 0)}#S(){this.#d!==void 0&&(Ta.clearInterval(this.#d),this.#d=void 0)}createResult(a,i){const o=this.#e,c=this.options,r=this.#a,d=this.#i,m=this.#l,p=a!==o?a.state:this.#n,{state:v}=a;let b={...v},y=!1,S;if(i._optimisticResults){const X=this.hasListeners(),J=!X&&Nm(a,i),it=X&&zm(a,o,i,c);(J||it)&&(b={...b,...Rp(v.data,a.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:j,status:C}=b;S=b.data;let D=!1;if(i.placeholderData!==void 0&&S===void 0&&C==="pending"){let X;r?.isPlaceholderData&&i.placeholderData===m?.placeholderData?(X=r.data,D=!0):X=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,X!==void 0&&(C="success",S=ir(r?.data,X,i),y=!0)}if(i.select&&S!==void 0&&!D)if(r&&S===d?.data&&i.select===this.#r)S=this.#u;else try{this.#r=i.select,S=i.select(S),S=ir(r?.data,S,i),this.#u=S,this.#s=null}catch(X){this.#s=X}this.#s&&(_=this.#s,S=this.#u,j=Date.now(),C="error");const L=b.fetchStatus==="fetching",z=C==="pending",V=C==="error",G=z&&L,$=S!==void 0,H={status:C,fetchStatus:b.fetchStatus,isPending:z,isSuccess:C==="success",isError:V,isInitialLoading:G,isLoading:G,data:S,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:j,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:L,isRefetching:L&&!z,isLoadingError:V&&!$,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:V&&$,isStale:yr(a,i),refetch:this.refetch,promise:this.#o,isEnabled:Re(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const X=H.data!==void 0,J=H.status==="error"&&!X,it=Lt=>{J?Lt.reject(H.error):X&&Lt.resolve(H.data)},at=()=>{const Lt=this.#o=H.promise=sr();it(Lt)},et=this.#o;switch(et.status){case"pending":a.queryHash===o.queryHash&&it(et);break;case"fulfilled":(J||H.data!==et.value)&&at();break;case"rejected":(!J||H.error!==et.reason)&&at();break}}return H}updateResult(){const a=this.#a,i=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#l=this.options,this.#i.data!==void 0&&(this.#m=this.#e),ar(i,a))return;this.#a=i;const o=()=>{if(!a)return!0;const{notifyOnChangeProps:c}=this.options,r=typeof c=="function"?c():c;if(r==="all"||!r&&!this.#p.size)return!0;const d=new Set(r??this.#p);return this.options.throwOnError&&d.add("error"),Object.keys(this.#a).some(m=>{const x=m;return this.#a[x]!==a[x]&&d.has(x)})};this.#T({listeners:o()})}#_(){const a=this.#t.getQueryCache().build(this.#t,this.options);if(a===this.#e)return;const i=this.#e;this.#e=a,this.#n=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#T(a){ee.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Fg(a,i){return Re(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Re(i.retryOnMount,a)===!1)}function Nm(a,i){return Fg(a,i)||a.state.data!==void 0&&ur(a,i,i.refetchOnMount)}function ur(a,i,o){if(Re(i.enabled,a)!==!1&&ta(i.staleTime,a)!=="static"){const c=typeof o=="function"?o(a):o;return c==="always"||c!==!1&&yr(a,i)}return!1}function zm(a,i,o,c){return(a!==i||Re(c.enabled,a)===!1)&&(!o.suspense||a.state.status!=="error")&&yr(a,o)}function yr(a,i){return Re(i.enabled,a)!==!1&&a.isStaleByTime(ta(i.staleTime,a))}function Pg(a,i){return!ar(a.getCurrentResult(),i)}var $g=class extends Tp{#t;#e;#n;#a;constructor(a){super(),this.#t=a.client,this.mutationId=a.mutationId,this.#n=a.mutationCache,this.#e=[],this.state=a.state||Wg(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#i({type:"continue"})},o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=_p({fn:()=>this.options.mutationFn?this.options.mutationFn(a,o):Promise.reject(new Error("No mutationFn found")),onFail:(d,m)=>{this.#i({type:"failed",failureCount:d,error:m})},onPause:()=>{this.#i({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const c=this.state.status==="pending",r=!this.#a.canStart();try{if(c)i();else{this.#i({type:"pending",variables:a,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(a,this,o);const m=await this.options.onMutate?.(a,o);m!==this.state.context&&this.#i({type:"pending",context:m,variables:a,isPaused:r})}const d=await this.#a.start();return await this.#n.config.onSuccess?.(d,a,this.state.context,this,o),await this.options.onSuccess?.(d,a,this.state.context,o),await this.#n.config.onSettled?.(d,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(d,null,a,this.state.context,o),this.#i({type:"success",data:d}),d}catch(d){try{await this.#n.config.onError?.(d,a,this.state.context,this,o)}catch(m){Promise.reject(m)}try{await this.options.onError?.(d,a,this.state.context,o)}catch(m){Promise.reject(m)}try{await this.#n.config.onSettled?.(void 0,d,this.state.variables,this.state.context,this,o)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,d,a,this.state.context,o)}catch(m){Promise.reject(m)}throw this.#i({type:"error",error:d}),d}finally{this.#n.runNext(this)}}#i(a){const i=o=>{switch(a.type){case"failed":return{...o,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...o,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:a.error,failureCount:o.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ee.batch(()=>{this.#e.forEach(o=>{o.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function Wg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ig=class extends Ui{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(a,i,o){const c=new $g({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:o});return this.add(c),c}add(a){this.#t.add(a);const i=no(a);if(typeof i=="string"){const o=this.#e.get(i);o?o.push(a):this.#e.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=no(a);if(typeof i=="string"){const o=this.#e.get(i);if(o)if(o.length>1){const c=o.indexOf(a);c!==-1&&o.splice(c,1)}else o[0]===a&&this.#e.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=no(a);if(typeof i=="string"){const c=this.#e.get(i)?.find(r=>r.state.status==="pending");return!c||c===a}else return!0}runNext(a){const i=no(a);return typeof i=="string"?this.#e.get(i)?.find(c=>c!==a&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ee.batch(()=>{this.#t.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(a){const i={exact:!0,...a};return this.getAll().find(o=>Em(i,o))}findAll(a={}){return this.getAll().filter(i=>Em(a,i))}notify(a){ee.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return ee.batch(()=>Promise.all(a.map(i=>i.continue().catch(he))))}};function no(a){return a.options.scope?.id}var t0=class extends Ui{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,o){const c=i.queryKey,r=i.queryHash??pr(c,i);let d=this.get(r);return d||(d=new kg({client:a,queryKey:c,queryHash:r,options:a.defaultQueryOptions(i),state:o,defaultOptions:a.getQueryDefaults(c)}),this.add(d)),d}add(a){this.#t.has(a.queryHash)||(this.#t.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#t.get(a.queryHash);i&&(a.destroy(),i===a&&this.#t.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){ee.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#t.get(a)}getAll(){return[...this.#t.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(o=>Rm(i,o))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(o=>Rm(a,o)):i}notify(a){ee.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){ee.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){ee.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},e0=class{#t;#e;#n;#a;#i;#l;#o;#s;constructor(a={}){this.#t=a.queryCache||new t0,this.#e=a.mutationCache||new Ig,this.#n=a.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#o=mr.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=ho.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(a){return this.#t.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#e.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),o=this.#t.build(this,i),c=o.state.data;return c===void 0?this.fetchQuery(a):(a.revalidateIfStale&&o.isStaleByTime(ta(i.staleTime,o))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:o})=>{const c=o.data;return[i,c]})}setQueryData(a,i,o){const c=this.defaultQueryOptions({queryKey:a}),d=this.#t.get(c.queryHash)?.state.data,m=Lg(i,d);if(m!==void 0)return this.#t.build(this,c).setData(m,{...o,manual:!0})}setQueriesData(a,i,o){return ee.batch(()=>this.#t.findAll(a).map(({queryKey:c})=>[c,this.setQueryData(c,i,o)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state}removeQueries(a){const i=this.#t;ee.batch(()=>{i.findAll(a).forEach(o=>{i.remove(o)})})}resetQueries(a,i){const o=this.#t;return ee.batch(()=>(o.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const o={revert:!0,...i},c=ee.batch(()=>this.#t.findAll(a).map(r=>r.cancel(o)));return Promise.all(c).then(he).catch(he)}invalidateQueries(a,i={}){return ee.batch(()=>(this.#t.findAll(a).forEach(o=>{o.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const o={...i,cancelRefetch:i.cancelRefetch??!0},c=ee.batch(()=>this.#t.findAll(a).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let d=r.fetch(void 0,o);return o.throwOnError||(d=d.catch(he)),r.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(he)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const o=this.#t.build(this,i);return o.isStaleByTime(ta(i.staleTime,o))?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(he).catch(he)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(he).catch(he)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return ho.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#a.set(Ci(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#a.values()],o={};return i.forEach(c=>{Ai(a,c.queryKey)&&Object.assign(o,c.defaultOptions)}),o}setMutationDefaults(a,i){this.#i.set(Ci(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#i.values()],o={};return i.forEach(c=>{Ai(a,c.mutationKey)&&Object.assign(o,c.defaultOptions)}),o}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=pr(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===vr&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},qc={exports:{}},ot={};var Dm;function n0(){if(Dm)return ot;Dm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function _(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function L(E,Q,Z){this.props=E,this.context=Q,this.refs=D,this.updater=Z||j}L.prototype.isReactComponent={},L.prototype.setState=function(E,Q){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Q,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function z(){}z.prototype=L.prototype;function V(E,Q,Z){this.props=E,this.context=Q,this.refs=D,this.updater=Z||j}var G=V.prototype=new z;G.constructor=V,C(G,L.prototype),G.isPureReactComponent=!0;var $=Array.isArray;function F(){}var H={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function J(E,Q,Z){var P=Z.ref;return{$$typeof:a,type:E,key:Q,ref:P!==void 0?P:null,props:Z}}function it(E,Q){return J(E.type,Q,E.props)}function at(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function et(E){var Q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return Q[Z]})}var Lt=/\/+/g;function zt(E,Q){return typeof E=="object"&&E!==null&&E.key!=null?et(""+E.key):Q.toString(36)}function Ht(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(F,F):(E.status="pending",E.then(function(Q){E.status==="pending"&&(E.status="fulfilled",E.value=Q)},function(Q){E.status==="pending"&&(E.status="rejected",E.reason=Q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,Q,Z,P,tt){var rt=typeof E;(rt==="undefined"||rt==="boolean")&&(E=null);var vt=!1;if(E===null)vt=!0;else switch(rt){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(E.$$typeof){case a:case i:vt=!0;break;case b:return vt=E._init,U(vt(E._payload),Q,Z,P,tt)}}if(vt)return tt=tt(E),vt=P===""?"."+zt(E,0):P,$(tt)?(Z="",vt!=null&&(Z=vt.replace(Lt,"$&/")+"/"),U(tt,Q,Z,"",function(tn){return tn})):tt!=null&&(at(tt)&&(tt=it(tt,Z+(tt.key==null||E&&E.key===tt.key?"":(""+tt.key).replace(Lt,"$&/")+"/")+vt)),Q.push(tt)),1;vt=0;var qt=P===""?".":P+":";if($(E))for(var Mt=0;Mt<E.length;Mt++)P=E[Mt],rt=qt+zt(P,Mt),vt+=U(P,Q,Z,rt,tt);else if(Mt=_(E),typeof Mt=="function")for(E=Mt.call(E),Mt=0;!(P=E.next()).done;)P=P.value,rt=qt+zt(P,Mt++),vt+=U(P,Q,Z,rt,tt);else if(rt==="object"){if(typeof E.then=="function")return U(Ht(E),Q,Z,P,tt);throw Q=String(E),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return vt}function K(E,Q,Z){if(E==null)return E;var P=[],tt=0;return U(E,P,"","",function(rt){return Q.call(Z,rt,tt++)}),P}function lt(E){if(E._status===-1){var Q=E._result;Q=Q(),Q.then(function(Z){(E._status===0||E._status===-1)&&(E._status=1,E._result=Z)},function(Z){(E._status===0||E._status===-1)&&(E._status=2,E._result=Z)}),E._status===-1&&(E._status=0,E._result=Q)}if(E._status===1)return E._result.default;throw E._result}var xt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=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(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},St={map:K,forEach:function(E,Q,Z){K(E,function(){Q.apply(this,arguments)},Z)},count:function(E){var Q=0;return K(E,function(){Q++}),Q},toArray:function(E){return K(E,function(Q){return Q})||[]},only:function(E){if(!at(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ot.Activity=y,ot.Children=St,ot.Component=L,ot.Fragment=o,ot.Profiler=r,ot.PureComponent=V,ot.StrictMode=c,ot.Suspense=p,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ot.__COMPILER_RUNTIME={__proto__:null,c:function(E){return H.H.useMemoCache(E)}},ot.cache=function(E){return function(){return E.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(E,Q,Z){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=C({},E.props),tt=E.key;if(Q!=null)for(rt in Q.key!==void 0&&(tt=""+Q.key),Q)!X.call(Q,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&Q.ref===void 0||(P[rt]=Q[rt]);var rt=arguments.length-2;if(rt===1)P.children=Z;else if(1<rt){for(var vt=Array(rt),qt=0;qt<rt;qt++)vt[qt]=arguments[qt+2];P.children=vt}return J(E.type,tt,P)},ot.createContext=function(E){return E={$$typeof:m,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ot.createElement=function(E,Q,Z){var P,tt={},rt=null;if(Q!=null)for(P in Q.key!==void 0&&(rt=""+Q.key),Q)X.call(Q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(tt[P]=Q[P]);var vt=arguments.length-2;if(vt===1)tt.children=Z;else if(1<vt){for(var qt=Array(vt),Mt=0;Mt<vt;Mt++)qt[Mt]=arguments[Mt+2];tt.children=qt}if(E&&E.defaultProps)for(P in vt=E.defaultProps,vt)tt[P]===void 0&&(tt[P]=vt[P]);return J(E,rt,tt)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(E){return{$$typeof:x,render:E}},ot.isValidElement=at,ot.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:lt}},ot.memo=function(E,Q){return{$$typeof:v,type:E,compare:Q===void 0?null:Q}},ot.startTransition=function(E){var Q=H.T,Z={};H.T=Z;try{var P=E(),tt=H.S;tt!==null&&tt(Z,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(F,xt)}catch(rt){xt(rt)}finally{Q!==null&&Z.types!==null&&(Q.types=Z.types),H.T=Q}},ot.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ot.use=function(E){return H.H.use(E)},ot.useActionState=function(E,Q,Z){return H.H.useActionState(E,Q,Z)},ot.useCallback=function(E,Q){return H.H.useCallback(E,Q)},ot.useContext=function(E){return H.H.useContext(E)},ot.useDebugValue=function(){},ot.useDeferredValue=function(E,Q){return H.H.useDeferredValue(E,Q)},ot.useEffect=function(E,Q){return H.H.useEffect(E,Q)},ot.useEffectEvent=function(E){return H.H.useEffectEvent(E)},ot.useId=function(){return H.H.useId()},ot.useImperativeHandle=function(E,Q,Z){return H.H.useImperativeHandle(E,Q,Z)},ot.useInsertionEffect=function(E,Q){return H.H.useInsertionEffect(E,Q)},ot.useLayoutEffect=function(E,Q){return H.H.useLayoutEffect(E,Q)},ot.useMemo=function(E,Q){return H.H.useMemo(E,Q)},ot.useOptimistic=function(E,Q){return H.H.useOptimistic(E,Q)},ot.useReducer=function(E,Q,Z){return H.H.useReducer(E,Q,Z)},ot.useRef=function(E){return H.H.useRef(E)},ot.useState=function(E){return H.H.useState(E)},ot.useSyncExternalStore=function(E,Q,Z){return H.H.useSyncExternalStore(E,Q,Z)},ot.useTransition=function(){return H.H.useTransition()},ot.version="19.2.6",ot}var wm;function Bi(){return wm||(wm=1,qc.exports=n0()),qc.exports}var k=Bi();const Ni=Mg(k);var Ep=k.createContext(void 0),a0=a=>{const i=k.useContext(Ep);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},l0=({client:a,children:i})=>(k.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),h.jsx(Ep.Provider,{value:a,children:i})),jp=k.createContext(!1),i0=()=>k.useContext(jp);jp.Provider;function s0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var o0=k.createContext(s0()),u0=()=>k.useContext(o0),c0=(a,i,o)=>{const c=o?.state.error&&typeof a.throwOnError=="function"?bp(a.throwOnError,[o.state.error,o]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||c)&&(i.isReset()||(a.retryOnMount=!1))},r0=a=>{k.useEffect(()=>{a.clearReset()},[a])},f0=({result:a,errorResetBoundary:i,throwOnError:o,query:c,suspense:r})=>a.isError&&!i.isReset()&&!a.isFetching&&c&&(r&&a.data===void 0||bp(o,[a.error,c])),d0=a=>{if(a.suspense){const o=r=>r==="static"?r:Math.max(r??1e3,1e3),c=a.staleTime;a.staleTime=typeof c=="function"?(...r)=>o(c(...r)):o(c),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},h0=(a,i)=>a.isLoading&&a.isFetching&&!i,m0=(a,i)=>a?.suspense&&i.isPending,Lm=(a,i,o)=>i.fetchOptimistic(a).catch(()=>{o.clearReset()});function p0(a,i,o){const c=i0(),r=u0(),d=a0(),m=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const x=d.getQueryCache().get(m.queryHash);m._optimisticResults=c?"isRestoring":"optimistic",d0(m),c0(m,r,x),r0(r);const p=!d.getQueryCache().get(m.queryHash),[v]=k.useState(()=>new i(d,m)),b=v.getOptimisticResult(m),y=!c&&a.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(S=>{const _=y?v.subscribe(ee.batchCalls(S)):he;return v.updateResult(),_},[v,y]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),k.useEffect(()=>{v.setOptions(m)},[m,v]),m0(m,b))throw Lm(m,v,r);if(f0({result:b,errorResetBoundary:r,throwOnError:m.throwOnError,query:x,suspense:m.suspense}))throw b.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(m,b),m.experimental_prefetchInRender&&!Oi.isServer()&&h0(b,c)&&(p?Lm(m,v,r):x?.promise)?.catch(he).finally(()=>{v.updateResult()}),m.notifyOnChangeProps?b:v.trackResult(b)}function We(a,i){return p0(a,Jg)}var Mi=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Qc(a){const i=k.useRef({value:a,prev:null}),o=i.current.value;return a!==o&&(i.current={value:a,prev:o}),i.current.prev}function v0(a,i,o={},c={}){k.useEffect(()=>{if(!a.current||c.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([d])=>{i(d)},o);return r.observe(a.current),()=>{r.disconnect()}},[i,o,c.disabled,a])}function y0(a){const i=k.useRef(null);return k.useImperativeHandle(a,()=>i.current,[]),i}const Mp=!1;function zi(a){return a[a.length-1]}function g0(a){return typeof a=="function"}function $n(a,i){return g0(a)?a(i):a}const Cp=Object.prototype.hasOwnProperty,Um=Object.prototype.propertyIsEnumerable;function Ap(a){for(const i in a)if(Cp.call(a,i))return!0;return!1}const x0=()=>Object.create(null),_a=(a,i)=>Ra(a,i,x0);function Ra(a,i,o=()=>({}),c=0){if(a===i)return a;if(c>500)return i;const r=i,d=qm(a)&&qm(r);if(!d&&!(Sl(a)&&Sl(r)))return r;const m=d?a:Bm(a);if(!m)return r;const x=d?r:Bm(r);if(!x)return r;const p=m.length,v=x.length,b=d?new Array(v):o();let y=0;for(let S=0;S<v;S++){const _=d?S:x[S],j=a[_],C=r[_];if(j===C){b[_]=j,(d?S<p:Cp.call(a,_))&&y++;continue}if(j===null||C===null||typeof j!="object"||typeof C!="object"){b[_]=C;continue}const D=Ra(j,C,o,c+1);b[_]=D,D===j&&y++}return p===v&&y===p?a:b}function Bm(a){const i=Object.getOwnPropertyNames(a);for(const r of i)if(!Um.call(a,r))return!1;const o=Object.getOwnPropertySymbols(a);if(o.length===0)return i;const c=i;for(const r of o){if(!Um.call(a,r))return!1;c.push(r)}return c}function Sl(a){if(!Hm(a))return!1;const i=a.constructor;if(typeof i>"u")return!0;const o=i.prototype;return!(!Hm(o)||!o.hasOwnProperty("isPrototypeOf"))}function Hm(a){return Object.prototype.toString.call(a)==="[object Object]"}function qm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function ja(a,i,o){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(Array.isArray(a)&&Array.isArray(i)){if(a.length!==i.length)return!1;for(let c=0,r=a.length;c<r;c++)if(!ja(a[c],i[c],o))return!1;return!0}if(Sl(a)&&Sl(i)){const c=o?.ignoreUndefined??!0;if(o?.partial){for(const m in i)if((!c||i[m]!==void 0)&&!ja(a[m],i[m],o))return!1;return!0}let r=0;if(!c)r=Object.keys(a).length;else for(const m in a)a[m]!==void 0&&r++;let d=0;for(const m in i)if((!c||i[m]!==void 0)&&(d++,d>r||!ja(a[m],i[m],o)))return!1;return r===d}return!1}function _l(a){let i,o;const c=new Promise((r,d)=>{i=r,o=d});return c.status="pending",c.resolve=r=>{c.status="resolved",c.value=r,i(r),a?.(r)},c.reject=r=>{c.status="rejected",o(r)},c}function Di(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function b0(a){return a.replace(/[\x00-\x1f\x7f]/g,"")}function Qm(a){let i;try{i=decodeURI(a)}catch{i=a.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}return b0(i)}const S0=["http:","https:","mailto:","tel:"];function mo(a,i){if(!a)return!1;try{const o=new URL(a);return!i.has(o.protocol)}catch{return!1}}function Si(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let o=0,c="",r;for(;(r=i.exec(a))!==null;)c+=Qm(a.slice(o,r.index))+r[0],o=i.lastIndex;c=c+Qm(o?a.slice(o):a);let d=!1;return c.startsWith("//")&&(d=!0,c="/"+c.replace(/^\/+/,"")),{path:c,handledProtocolRelativeURL:d}}function _0(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function T0(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let o=0;o<a.length;o++)if(a[o]!==i[o])return!1;return!0}function Tn(){throw new Error("Invariant failed")}function wi(a){const i=new Map;let o,c;const r=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,c&&(c.next=d,d.prev=c)):(d.next.prev=void 0,o=d.next,d.next=void 0,c&&(d.prev=c,c.next=d)),c=d)};return{get(d){const m=i.get(d);if(m)return r(m),m.value},set(d,m){if(i.size>=a&&o){const p=o;i.delete(p.key),p.next&&(o=p.next,p.next.prev=void 0),p===c&&(c=void 0)}const x=i.get(d);if(x)x.value=m,r(x);else{const p={key:d,value:m,prev:c};c&&(c.next=p),c=p,o||(o=p),i.set(d,p)}},clear(){i.clear(),o=void 0,c=void 0}}}const Wn=4,Op=5;function R0(a){const i=a.indexOf("{");if(i===-1)return null;const o=a.indexOf("}",i);return o===-1||i+1>=a.length?null:[i,o]}function Np(a,i,o=new Uint16Array(6)){const c=a.indexOf("/",i),r=c===-1?a.length:c,d=a.substring(i,r);if(!d||!d.includes("$"))return o[0]=0,o[1]=i,o[2]=i,o[3]=r,o[4]=r,o[5]=r,o;if(d==="$"){const x=a.length;return o[0]=2,o[1]=i,o[2]=i,o[3]=x,o[4]=x,o[5]=x,o}if(d.charCodeAt(0)===36)return o[0]=1,o[1]=i,o[2]=i+1,o[3]=r,o[4]=r,o[5]=r,o;const m=R0(d);if(m){const[x,p]=m,v=d.charCodeAt(x+1);if(v===45){if(x+2<d.length&&d.charCodeAt(x+2)===36){const b=x+3,y=p;if(b<y)return o[0]=3,o[1]=i+x,o[2]=i+b,o[3]=i+y,o[4]=i+p+1,o[5]=r,o}}else if(v===36){const b=x+1,y=x+2;return y===p?(o[0]=2,o[1]=i+x,o[2]=i+b,o[3]=i+y,o[4]=i+p+1,o[5]=a.length,o):(o[0]=1,o[1]=i+x,o[2]=i+y,o[3]=i+p,o[4]=i+p+1,o[5]=r,o)}}return o[0]=0,o[1]=i,o[2]=i,o[3]=r,o[4]=r,o[5]=r,o}function So(a,i,o,c,r,d,m){m?.(o);let x=c;{const p=o.fullPath??o.from,v=p.length,b=o.options?.caseSensitive??a,y=o.options?.params?.parse??o.options?.parseParams;for(;x<v;){const _=Np(p,x,i);let j;const C=x,D=_[5];switch(x=D+1,d++,_[0]){case 0:{const L=p.substring(_[2],_[3]);if(b){const z=r.static?.get(L);if(z)j=z;else{r.static??=new Map;const V=Ea(o.fullPath??o.from);V.parent=r,V.depth=d,j=V,r.static.set(L,V)}}else{const z=L.toLowerCase(),V=r.staticInsensitive?.get(z);if(V)j=V;else{r.staticInsensitive??=new Map;const G=Ea(o.fullPath??o.from);G.parent=r,G.depth=d,j=G,r.staticInsensitive.set(z,G)}}break}case 1:{const L=p.substring(C,_[1]),z=p.substring(_[4],D),V=b&&!!(L||z),G=L?V?L:L.toLowerCase():void 0,$=z?V?z:z.toLowerCase():void 0,F=!y&&r.dynamic?.find(H=>!H.parse&&H.caseSensitive===V&&H.prefix===G&&H.suffix===$);if(F)j=F;else{const H=Gc(1,o.fullPath??o.from,V,G,$);j=H,H.depth=d,H.parent=r,r.dynamic??=[],r.dynamic.push(H)}break}case 3:{const L=p.substring(C,_[1]),z=p.substring(_[4],D),V=b&&!!(L||z),G=L?V?L:L.toLowerCase():void 0,$=z?V?z:z.toLowerCase():void 0,F=!y&&r.optional?.find(H=>!H.parse&&H.caseSensitive===V&&H.prefix===G&&H.suffix===$);if(F)j=F;else{const H=Gc(3,o.fullPath??o.from,V,G,$);j=H,H.parent=r,H.depth=d,r.optional??=[],r.optional.push(H)}break}case 2:{const L=p.substring(C,_[1]),z=p.substring(_[4],D),V=b&&!!(L||z),G=L?V?L:L.toLowerCase():void 0,$=z?V?z:z.toLowerCase():void 0,F=Gc(2,o.fullPath??o.from,V,G,$);j=F,F.parent=r,F.depth=d,r.wildcard??=[],r.wildcard.push(F)}}r=j}if(y&&o.children&&!o.isRoot&&o.id&&o.id.charCodeAt(o.id.lastIndexOf("/")+1)===95){const _=Ea(o.fullPath??o.from);_.kind=Op,_.parent=r,d++,_.depth=d,r.pathless??=[],r.pathless.push(_),r=_}const S=(o.path||!o.children)&&!o.isRoot;if(S&&p.endsWith("/")){const _=Ea(o.fullPath??o.from);_.kind=Wn,_.parent=r,d++,_.depth=d,r.index=_,r=_}r.parse=y??null,S&&!r.route&&(r.route=o,r.fullPath=o.fullPath??o.from)}if(o.children)for(const p of o.children)So(a,i,p,x,r,d,m)}function Yc(a,i){if(a.parse&&!i.parse)return-1;if(!a.parse&&i.parse)return 1;if(a.prefix&&i.prefix&&a.prefix!==i.prefix){if(a.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(a.prefix))return 1}if(a.suffix&&i.suffix&&a.suffix!==i.suffix){if(a.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(a.suffix))return 1}return a.prefix&&!i.prefix?-1:!a.prefix&&i.prefix?1:a.suffix&&!i.suffix?-1:!a.suffix&&i.suffix?1:a.caseSensitive&&!i.caseSensitive?-1:!a.caseSensitive&&i.caseSensitive?1:0}function Pn(a){if(a.pathless)for(const i of a.pathless)Pn(i);if(a.static)for(const i of a.static.values())Pn(i);if(a.staticInsensitive)for(const i of a.staticInsensitive.values())Pn(i);if(a.dynamic?.length){a.dynamic.sort(Yc);for(const i of a.dynamic)Pn(i)}if(a.optional?.length){a.optional.sort(Yc);for(const i of a.optional)Pn(i)}if(a.wildcard?.length){a.wildcard.sort(Yc);for(const i of a.wildcard)Pn(i)}}function Ea(a){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null}}function Gc(a,i,o,c,r){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,caseSensitive:o,prefix:c,suffix:r}}function E0(a,i){const o=Ea("/"),c=new Uint16Array(6);for(const r of a)So(!1,c,r,1,o,0);Pn(o),i.masksTree=o,i.flatCache=wi(1e3)}function j0(a,i){a||="/";const o=i.flatCache.get(a);if(o)return o;const c=gr(a,i.masksTree);return i.flatCache.set(a,c),c}function M0(a,i,o,c,r){a||="/",c||="/";const d=i?`case\0${a}`:a;let m=r.singleCache.get(d);return m||(m=Ea("/"),So(i,new Uint16Array(6),{from:a},1,m,0),r.singleCache.set(d,m)),gr(c,m,o)}function C0(a,i,o=!1){const c=o?a:`nofuzz\0${a}`,r=i.matchCache.get(c);if(r!==void 0)return r;a||="/";let d;try{d=gr(a,i.segmentTree,o)}catch(m){if(m instanceof URIError)d=null;else throw m}return d&&(d.branch=Dp(d.route)),i.matchCache.set(c,d),d}function A0(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function O0(a,i=!1,o){const c=Ea(a.fullPath),r=new Uint16Array(6),d={},m={};let x=0;return So(i,r,a,1,c,0,p=>{if(o?.(p,x),p.id in d&&Tn(),d[p.id]=p,x!==0&&p.path){const v=A0(p.fullPath);(!m[v]||p.fullPath.endsWith("/"))&&(m[v]=p)}x++}),Pn(c),{processedTree:{segmentTree:c,singleCache:wi(1e3),matchCache:wi(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:m}}function gr(a,i,o=!1){const c=a.split("/"),r=z0(a,c,i,o);if(!r)return null;const[d]=zp(a,c,r);return{route:r.node.route,rawParams:d}}function zp(a,i,o){const c=N0(o.node);let r=null;const d=Object.create(null);let m=o.extract?.part??0,x=o.extract?.node??0,p=o.extract?.path??0,v=o.extract?.segment??0;for(;x<c.length;m++,x++,p++,v++){const b=c[x];if(b.kind===Wn)break;if(b.kind===Op){v--,m--,p--;continue}const y=i[m],S=p;if(y&&(p+=y.length),b.kind===1){r??=o.node.fullPath.split("/");const _=r[v],j=b.prefix?.length??0;if(_.charCodeAt(j)===123){const C=b.suffix?.length??0,D=_.substring(j+2,_.length-C-1),L=y.substring(j,y.length-C);d[D]=decodeURIComponent(L)}else{const C=_.substring(1);d[C]=decodeURIComponent(y)}}else if(b.kind===3){if(o.skipped&1<<x){m--,p=S-1;continue}r??=o.node.fullPath.split("/");const _=r[v],j=b.prefix?.length??0,C=b.suffix?.length??0,D=_.substring(j+3,_.length-C-1),L=b.suffix||b.prefix?y.substring(j,y.length-C):y;L&&(d[D]=decodeURIComponent(L))}else if(b.kind===2){const _=b,j=a.substring(S+(_.prefix?.length??0),a.length-(_.suffix?.length??0)),C=decodeURIComponent(j);d["*"]=C,d._splat=C;break}}return o.rawParams&&Object.assign(d,o.rawParams),[d,{part:m,node:x,path:p,segment:v}]}function Dp(a){const i=[a];for(;a.parentRoute;)a=a.parentRoute,i.push(a);return i.reverse(),i}function N0(a){const i=Array(a.depth+1);do i[a.depth]=a,a=a.parent;while(a);return i}function z0(a,i,o,c){if(a==="/"&&o.index)return{node:o.index,skipped:0};const r=!zi(i),d=r&&a!=="/",m=i.length-(r?1:0),x=[{node:o,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,v=null;for(;x.length;){const b=x.pop(),{node:y,index:S,skipped:_,depth:j,statics:C,dynamics:D,optionals:L}=b;let{extract:z,rawParams:V}=b;if(y.kind===2&&y.route&&!lo(v,b))continue;if(y.parse){if(!Ym(a,i,b))continue;V=b.rawParams,z=b.extract}c&&y.route&&y.kind!==Wn&&lo(p,b)&&(p=b);const G=S===m;if(G&&(y.route&&(!d||y.kind===Wn||y.kind===2)&&lo(v,b)&&(v=b),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const $=G?void 0:i[S];let F;if(G&&y.index){const H={node:y.index,index:S,skipped:_,depth:j+1,statics:C,dynamics:D,optionals:L,extract:z,rawParams:V};let X=!0;if(y.index.parse&&(Ym(a,i,H)||(X=!1)),X){if(!D&&!L&&!_&&D0(C,m))return H;lo(v,H)&&(v=H)}}if(y.wildcard)for(let H=y.wildcard.length-1;H>=0;H--){const X=y.wildcard[H],{prefix:J,suffix:it}=X;if(!(J&&(G||!(X.caseSensitive?$:F??=$.toLowerCase()).startsWith(J)))){if(it){if(G)continue;const at=i.slice(S).join("/").slice(-it.length);if((X.caseSensitive?at:at.toLowerCase())!==it)continue}x.push({node:X,index:m,skipped:_,depth:j+1,statics:C,dynamics:D,optionals:L,extract:z,rawParams:V})}}if(y.optional){const H=_|1<<j,X=j+1;for(let J=y.optional.length-1;J>=0;J--){const it=y.optional[J];x.push({node:it,index:S,skipped:H,depth:X,statics:C,dynamics:D,optionals:L,extract:z,rawParams:V})}if(!G)for(let J=y.optional.length-1;J>=0;J--){const it=y.optional[J],{prefix:at,suffix:et}=it;if(at||et){const Lt=it.caseSensitive?$:F??=$.toLowerCase();if(at&&!Lt.startsWith(at)||et&&!Lt.endsWith(et))continue}x.push({node:it,index:S+1,skipped:_,depth:X,statics:C,dynamics:D,optionals:L+ao(m,S),extract:z,rawParams:V})}}if(!G&&y.dynamic&&$)for(let H=y.dynamic.length-1;H>=0;H--){const X=y.dynamic[H],{prefix:J,suffix:it}=X;if(J||it){const at=X.caseSensitive?$:F??=$.toLowerCase();if(J&&!at.startsWith(J)||it&&!at.endsWith(it))continue}x.push({node:X,index:S+1,skipped:_,depth:j+1,statics:C,dynamics:D+ao(m,S),optionals:L,extract:z,rawParams:V})}if(!G&&y.staticInsensitive){const H=y.staticInsensitive.get(F??=$.toLowerCase());H&&x.push({node:H,index:S+1,skipped:_,depth:j+1,statics:C+ao(m,S),dynamics:D,optionals:L,extract:z,rawParams:V})}if(!G&&y.static){const H=y.static.get($);H&&x.push({node:H,index:S+1,skipped:_,depth:j+1,statics:C+ao(m,S),dynamics:D,optionals:L,extract:z,rawParams:V})}if(y.pathless){const H=j+1;for(let X=y.pathless.length-1;X>=0;X--){const J=y.pathless[X];x.push({node:J,index:S,skipped:_,depth:H,statics:C,dynamics:D,optionals:L,extract:z,rawParams:V})}}}if(v)return v;if(c&&p){let b=p.index;for(let S=0;S<p.index;S++)b+=i[S].length;const y=b===a.length?"/":a.slice(b);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(y),p}return null}function ao(a,i){return 2**(a-i-1)}function D0(a,i){return a===2**(i-1)-1}function Ym(a,i,o){let c,r;try{[c,r]=zp(a,i,o)}catch{return null}if(o.rawParams=c,o.extract=r,!o.node.parse)return!0;try{if(o.node.parse(c)===!1)return null}catch{}return!0}function lo(a,i){return a?i.statics>a.statics||i.statics===a.statics&&(i.dynamics>a.dynamics||i.dynamics===a.dynamics&&(i.optionals>a.optionals||i.optionals===a.optionals&&((i.node.kind===Wn)>(a.node.kind===Wn)||i.node.kind===Wn==(a.node.kind===Wn)&&i.depth>a.depth))):!0}function uo(a){return xr(a.filter(i=>i!==void 0).join("/"))}function xr(a){return a.replace(/\/{2,}/g,"/")}function wp(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function _n(a){const i=a.length;return i>1&&a[i-1]==="/"?a.replace(/\/{1,}$/,""):a}function Lp(a){return _n(wp(a))}function po(a,i){return a?.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function w0(a,i,o){return po(a,o)===po(i,o)}function L0({base:a,to:i,trailingSlash:o="never",cache:c}){const r=i.startsWith("/"),d=!r&&i===".";let m;if(c){m=r?i:d?a:a+"\0"+i;const v=c.get(m);if(v)return v}let x;if(d)x=a.split("/");else if(r)x=i.split("/");else{for(x=a.split("/");x.length>1&&zi(x)==="";)x.pop();const v=i.split("/");for(let b=0,y=v.length;b<y;b++){const S=v[b];S===""?b?b===y-1&&x.push(S):x=[S]:S===".."?x.pop():S==="."||x.push(S)}}x.length>1&&(zi(x)===""?o==="never"&&x.pop():o==="always"&&x.push(""));const p=xr(x.join("/"))||"/";return m&&c&&c.set(m,p),p}function U0(a){const i=new Map(a.map(r=>[encodeURIComponent(r),r])),o=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),c=new RegExp(o,"g");return r=>r.replace(c,d=>i.get(d)??d)}function Vc(a,i,o){const c=i[a];return typeof c!="string"?c:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(c)?c:c.split("/").map(r=>Vm(r,o)).join("/"):Vm(c,o)}function Gm({path:a,params:i,decoder:o,...c}){let r=!1;const d=Object.create(null);if(!a||a==="/")return{interpolatedPath:"/",usedParams:d,isMissingParams:r};if(!a.includes("$"))return{interpolatedPath:a,usedParams:d,isMissingParams:r};const m=a.length;let x=0,p,v="";for(;x<m;){const b=x;p=Np(a,b,p);const y=p[5];if(x=y+1,b===y)continue;const S=p[0];if(S===0){v+="/"+a.substring(b,y);continue}if(S===2){const _=i._splat;d._splat=_,d["*"]=_;const j=a.substring(b,p[1]),C=a.substring(p[4],y);if(!_){r=!0,(j||C)&&(v+="/"+j+C);continue}const D=Vc("_splat",i,o);v+="/"+j+D+C;continue}if(S===1){const _=a.substring(p[2],p[3]);!r&&!(_ in i)&&(r=!0),d[_]=i[_];const j=a.substring(b,p[1]),C=a.substring(p[4],y),D=Vc(_,i,o)??"undefined";v+="/"+j+D+C;continue}if(S===3){const _=a.substring(p[2],p[3]),j=i[_];if(j==null)continue;d[_]=j;const C=a.substring(b,p[1]),D=a.substring(p[4],y),L=Vc(_,i,o)??"";v+="/"+C+L+D;continue}}return a.endsWith("/")&&(v+="/"),{usedParams:d,interpolatedPath:v||"/",isMissingParams:r}}function Vm(a,i){const o=encodeURIComponent(a);return i?.(o)??o}function le(a){return a?.isNotFound===!0}function B0(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const H0="tsr-scroll-restoration-v1_3";function q0(){const a=B0();if(!a)return null;let i={};try{const c=JSON.parse(a.getItem("tsr-scroll-restoration-v1_3")||"{}");Sl(c)&&(i=c)}catch{}return{get state(){return i},set:c=>{i=$n(c,i)||i},persist:()=>{try{a.setItem(H0,JSON.stringify(i))}catch{}}}}const Xm=q0(),Q0=a=>a.state.__TSR_key||a.href;function Y0(a){const i=[];let o;for(;o=a.parentNode;)i.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(o.children,a)+1})`),a=o;return`${i.reverse().join(" > ")}`.toLowerCase()}let io=!1;const _i="window",Km="data-scroll-restoration-id";function G0(a,i){if(!Xm)return;const o=Xm;if((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isScrollRestorationSetup||!o)return;a.isScrollRestorationSetup=!0,io=!1;const c=a.options.getScrollRestorationKey||Q0,r=new Map;window.history.scrollRestoration="manual";const d=x=>{if(!(io||!a.isScrollRestoring))if(x.target===document||x.target===window)r.set(_i,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=x.target;r.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},m=x=>{if(!a.isScrollRestoring||!x||r.size===0||!o)return;const p=o.state[x]||={};for(const[v,b]of r){let y;if(v===_i)y=_i;else if(v.isConnected){const S=v.getAttribute(Km);y=S?`[${Km}="${S}"]`:Y0(v)}y&&(p[y]=b)}};document.addEventListener("scroll",d,!0),a.subscribe("onBeforeLoad",x=>{m(x.fromLocation?c(x.fromLocation):void 0),r.clear()}),window.addEventListener("pagehide",()=>{m(c(a.stores.resolvedLocation.get()??a.stores.location.get())),o.persist()}),a.subscribe("onRendered",x=>{const p=c(x.toLocation),v=a.options.scrollRestorationBehavior,b=a.options.scrollToTopSelectors;if(r.clear(),!a.resetNextScroll){a.resetNextScroll=!0;return}if(!(typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))){io=!0;try{const y=a.isScrollRestoring?o.state[p]:void 0;let S=!1;if(y)for(const _ in y){const j=y[_];if(!Sl(j))continue;const{scrollX:C,scrollY:D}=j;if(!(!Number.isFinite(C)||!Number.isFinite(D))){if(_===_i)window.scrollTo({top:D,left:C,behavior:v}),S=!0;else if(_){let L;try{L=document.querySelector(_)}catch{continue}L&&(L.scrollLeft=C,L.scrollTop=D,S=!0)}}}if(!S){const _=a.history.location.hash.slice(1);if(_){const j=window.history.state?.__hashScrollIntoViewOptions??!0;if(j){const C=document.getElementById(_);C&&C.scrollIntoView(j)}}else{const j={top:0,left:0,behavior:v};if(window.scrollTo(j),b)for(const C of b){if(C===_i)continue;const D=typeof C=="function"?C():document.querySelector(C);D&&D.scrollTo(j)}}}}finally{io=!1}a.isScrollRestoring&&o.set(y=>(y[p]||={},y))}})}function V0(a,i=String){const o=new URLSearchParams;for(const c in a){const r=a[c];r!==void 0&&o.set(c,i(r))}return o.toString()}function Xc(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function X0(a){const i=new URLSearchParams(a),o=Object.create(null);for(const[c,r]of i.entries()){const d=o[c];d==null?o[c]=Xc(r):Array.isArray(d)?d.push(Xc(r)):o[c]=[d,Xc(r)]}return o}const K0=k0(JSON.parse),Z0=J0(JSON.stringify,JSON.parse);function k0(a){return i=>{i[0]==="?"&&(i=i.substring(1));const o=X0(i);for(const c in o){const r=o[c];if(typeof r=="string")try{o[c]=a(r)}catch{}}return o}}function J0(a,i){const o=typeof i=="function";function c(r){if(typeof r=="object"&&r!==null)try{return a(r)}catch{}else if(o&&typeof r=="string")try{return i(r),a(r)}catch{}return r}return r=>{const d=V0(r,c);return d?`?${d}`:""}}const Ma="__root__";function F0(a){if(a.statusCode=a.statusCode||a.code||307,!a._builtLocation&&!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const i=new Headers(a.headers);a.href&&i.get("Location")===null&&i.set("Location",a.href);const o=new Response(null,{status:a.statusCode,headers:i});if(o.options=a,a.throw)throw o;return o}function me(a){return a instanceof Response&&!!a.options}function P0(a){return{input:({url:i})=>{for(const o of a)i=cr(o,i);return i},output:({url:i})=>{for(let o=a.length-1;o>=0;o--)i=Up(a[o],i);return i}}}function $0(a){const i=Lp(a.basepath),o=`/${i}`,c=`${o}/`,r=a.caseSensitive?o:o.toLowerCase(),d=a.caseSensitive?c:c.toLowerCase();return{input:({url:m})=>{const x=a.caseSensitive?m.pathname:m.pathname.toLowerCase();return x===r?m.pathname="/":x.startsWith(d)&&(m.pathname=m.pathname.slice(o.length)),m},output:({url:m})=>(m.pathname=uo(["/",i,m.pathname]),m)}}function cr(a,i){const o=a?.input?.({url:i});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return i}function Up(a,i){const o=a?.output?.({url:i});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return i}function W0(a,i){const{createMutableStore:o,createReadonlyStore:c,batch:r,init:d}=i,m=new Map,x=new Map,p=new Map,v=o(a.status),b=o(a.loadedAt),y=o(a.isLoading),S=o(a.isTransitioning),_=o(a.location),j=o(a.resolvedLocation),C=o(a.statusCode),D=o(a.redirect),L=o([]),z=o([]),V=o([]),G=c(()=>Kc(m,L.get())),$=c(()=>Kc(x,z.get())),F=c(()=>Kc(p,V.get())),H=c(()=>L.get()[0]),X=c(()=>L.get().some(K=>m.get(K)?.get().status==="pending")),J=c(()=>({locationHref:_.get().href,resolvedLocationHref:j.get()?.href,status:v.get()})),it=c(()=>({status:v.get(),loadedAt:b.get(),isLoading:y.get(),isTransitioning:S.get(),matches:G.get(),location:_.get(),resolvedLocation:j.get(),statusCode:C.get(),redirect:D.get()})),at=wi(64);function et(K){let lt=at.get(K);return lt||(lt=c(()=>{const xt=L.get();for(const St of xt){const E=m.get(St);if(E&&E.routeId===K)return E.get()}}),at.set(K,lt)),lt}const Lt={status:v,loadedAt:b,isLoading:y,isTransitioning:S,location:_,resolvedLocation:j,statusCode:C,redirect:D,matchesId:L,pendingIds:z,cachedIds:V,matches:G,pendingMatches:$,cachedMatches:F,firstId:H,hasPending:X,matchRouteDeps:J,matchStores:m,pendingMatchStores:x,cachedMatchStores:p,__store:it,getRouteMatchStore:et,setMatches:zt,setPending:Ht,setCached:U};zt(a.matches),d?.(Lt);function zt(K){Zc(K,m,L,o,r)}function Ht(K){Zc(K,x,z,o,r)}function U(K){Zc(K,p,V,o,r)}return Lt}function Kc(a,i){const o=[];for(const c of i){const r=a.get(c);r&&o.push(r.get())}return o}function Zc(a,i,o,c,r){const d=a.map(x=>x.id),m=new Set(d);r(()=>{for(const x of i.keys())m.has(x)||i.delete(x);for(const x of a){const p=i.get(x.id);if(!p){const v=c(x);v.routeId=x.routeId,i.set(x.id,v);continue}p.routeId=x.routeId,p.get()!==x&&p.set(x)}T0(o.get(),d)||o.set(d)})}const rr=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},I0=a=>a.stores.matchesId.get().some(i=>a.stores.matchStores.get(i)?.get()._forcePending),_o=(a,i)=>!!(a.preload&&!a.router.stores.matchStores.has(i)),Ca=(a,i,o=!0)=>{const c={...a.router.options.context??{}},r=o?i:i-1;for(let d=0;d<=r;d++){const m=a.matches[d];if(!m)continue;const x=a.router.getMatch(m.id);x&&Object.assign(c,x.__routeContext,x.__beforeLoadContext)}return c},Zm=(a,i)=>{if(!a.matches.length)return;const o=i.routeId,c=a.matches.findIndex(m=>m.routeId===a.router.routeTree.id),r=c>=0?c:0;let d=o?a.matches.findIndex(m=>m.routeId===o):a.firstBadMatchIndex??a.matches.length-1;d<0&&(d=r);for(let m=d;m>=0;m--){const x=a.matches[m];if(a.router.looseRoutesById[x.routeId].options.notFoundComponent)return m}return o?d:r},In=(a,i,o)=>{if(!(!me(o)&&!le(o)))throw me(o)&&o.redirectHandled&&!o.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=o,a.updateMatch(i.id,c=>({...c,status:me(o)?"redirected":le(o)?"notFound":c.status==="pending"?"success":c.status,context:Ca(a,i.index),isFetching:!1,error:o})),le(o)&&!o.routeId&&(o.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),me(o)&&(a.rendered=!0,o.options._fromLocation=a.location,o.redirectHandled=!0,o=a.router.resolveRedirect(o))),o},Bp=(a,i)=>{const o=a.router.getMatch(i);return!!(!o||o._nonReactive.dehydrated)},km=(a,i,o)=>{const c=Ca(a,o);a.updateMatch(i,r=>({...r,context:c}))},Ti=(a,i,o,c)=>{const{id:r,routeId:d}=a.matches[i],m=a.router.looseRoutesById[d];if(o instanceof Promise)throw o;o.routerCode=c,a.firstBadMatchIndex??=i,In(a,a.router.getMatch(r),o);try{m.options.onError?.(o)}catch(x){o=x,In(a,a.router.getMatch(r),o)}a.updateMatch(r,x=>(x._nonReactive.beforeLoadPromise?.resolve(),x._nonReactive.beforeLoadPromise=void 0,x._nonReactive.loadPromise?.resolve(),{...x,error:o,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!a.preload&&!me(o)&&!le(o)&&(a.serialError??=o)},Hp=(a,i,o,c)=>{if(c._nonReactive.pendingTimeout!==void 0)return;const r=o.options.pendingMs??a.router.options.defaultPendingMs;if(a.onReady&&!_o(a,i)&&(o.options.loader||o.options.beforeLoad||Qp(o))&&typeof r=="number"&&r!==1/0&&(o.options.pendingComponent??a.router.options?.defaultPendingComponent)){const d=setTimeout(()=>{rr(a)},r);c._nonReactive.pendingTimeout=d}},tx=(a,i,o)=>{const c=a.router.getMatch(i);if(!c._nonReactive.beforeLoadPromise&&!c._nonReactive.loaderPromise)return;Hp(a,i,o,c);const r=()=>{const d=a.router.getMatch(i);d.preload&&(d.status==="redirected"||d.status==="notFound")&&In(a,d,d.error)};return c._nonReactive.beforeLoadPromise?c._nonReactive.beforeLoadPromise.then(r):r()},ex=(a,i,o,c)=>{const r=a.router.getMatch(i);let d=r._nonReactive.loadPromise;r._nonReactive.loadPromise=_l(()=>{d?.resolve(),d=void 0});const{paramsError:m,searchError:x}=r;m&&Ti(a,o,m,"PARSE_PARAMS"),x&&Ti(a,o,x,"VALIDATE_SEARCH"),Hp(a,i,c,r);const p=new AbortController;let v=!1;const b=()=>{v||(v=!0,a.updateMatch(i,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:p})))},y=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,a.updateMatch(i,G=>({...G,isFetching:!1}))};if(!c.options.beforeLoad){a.router.batch(()=>{b(),y()});return}r._nonReactive.beforeLoadPromise=_l();const S={...Ca(a,o,!1),...r.__routeContext},{search:_,params:j,cause:C}=r,D=_o(a,i),L={search:_,abortController:p,params:j,preload:D,context:S,location:a.location,navigate:G=>a.router.navigate({...G,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:D?"preload":C,matches:a.matches,routeId:c.id,...a.router.options.additionalContext},z=G=>{if(G===void 0){a.router.batch(()=>{b(),y()});return}(me(G)||le(G))&&(b(),Ti(a,o,G,"BEFORE_LOAD")),a.router.batch(()=>{b(),a.updateMatch(i,$=>({...$,__beforeLoadContext:G})),y()})};let V;try{if(V=c.options.beforeLoad(L),Di(V))return b(),V.catch(G=>{Ti(a,o,G,"BEFORE_LOAD")}).then(z)}catch(G){b(),Ti(a,o,G,"BEFORE_LOAD")}z(V)},nx=(a,i)=>{const{id:o,routeId:c}=a.matches[i],r=a.router.looseRoutesById[c],d=()=>x(),m=()=>ex(a,o,i,r),x=()=>{if(Bp(a,o))return;const p=tx(a,o,r);return Di(p)?p.then(m):m()};return d()},ax=(a,i,o)=>{const c=a.router.getMatch(i);if(!c||!o.options.head&&!o.options.scripts&&!o.options.headers)return;const r={ssr:a.router.options.ssr,matches:a.matches,match:c,params:c.params,loaderData:c.loaderData};return Promise.all([o.options.head?.(r),o.options.scripts?.(r),o.options.headers?.(r)]).then(([d,m,x])=>({meta:d?.meta,links:d?.links,headScripts:d?.scripts,headers:x,scripts:m,styles:d?.styles}))},qp=(a,i,o,c,r)=>{const d=i[c-1],{params:m,loaderDeps:x,abortController:p,cause:v}=a.router.getMatch(o),b=Ca(a,c),y=_o(a,o);return{params:m,deps:x,preload:!!y,parentMatchPromise:d,abortController:p,context:b,location:a.location,navigate:S=>a.router.navigate({...S,_fromLocation:a.location}),cause:y?"preload":v,route:r,...a.router.options.additionalContext}},Jm=async(a,i,o,c,r)=>{try{const d=a.router.getMatch(o);try{(!(Mp??a.router.isServer)||d.ssr===!0)&&Li(r);const m=r.options.loader,x=typeof m=="function"?m:m?.handler,p=x?.(qp(a,i,o,c,r)),v=!!x&&Di(p);if((v||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||d._nonReactive.minPendingPromise)&&a.updateMatch(o,y=>({...y,isFetching:"loader"})),x){const y=v?await p:p;In(a,a.router.getMatch(o),y),y!==void 0&&a.updateMatch(o,S=>({...S,loaderData:y}))}r._lazyPromise&&await r._lazyPromise;const b=d._nonReactive.minPendingPromise;b&&await b,r._componentsPromise&&await r._componentsPromise,a.updateMatch(o,y=>({...y,error:void 0,context:Ca(a,c),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(m){let x=m;if(x?.name==="AbortError"){if(d.abortController.signal.aborted){d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loaderPromise=void 0;return}a.updateMatch(o,v=>({...v,status:v.status==="pending"?"success":v.status,isFetching:!1,context:Ca(a,c)}));return}const p=d._nonReactive.minPendingPromise;p&&await p,le(m)&&await r.options.notFoundComponent?.preload?.(),In(a,a.router.getMatch(o),m);try{r.options.onError?.(m)}catch(v){x=v,In(a,a.router.getMatch(o),v)}!me(x)&&!le(x)&&await Li(r,["errorComponent"]),a.updateMatch(o,v=>({...v,error:x,context:Ca(a,c),status:"error",isFetching:!1}))}}catch(d){const m=a.router.getMatch(o);m&&(m._nonReactive.loaderPromise=void 0),In(a,m,d)}},lx=async(a,i,o)=>{async function c(_,j,C,D,L){const z=Date.now()-j.updatedAt,V=_?L.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:L.options.staleTime??a.router.options.defaultStaleTime??0,G=L.options.shouldReload,$=typeof G=="function"?G(qp(a,i,r,o,L)):G,{status:F,invalid:H}=D,X=z>=V&&(!!a.forceStaleReload||D.cause==="enter"||C!==void 0&&C!==D.id);m=F==="success"&&(H||($??X)),_&&L.options.preload===!1||(m&&!a.sync&&b?(x=!0,(async()=>{try{await Jm(a,i,r,o,L);const J=a.router.getMatch(r);J._nonReactive.loaderPromise?.resolve(),J._nonReactive.loadPromise?.resolve(),J._nonReactive.loaderPromise=void 0,J._nonReactive.loadPromise=void 0}catch(J){me(J)&&await a.router.navigate(J.options)}})()):F!=="success"||m?await Jm(a,i,r,o,L):km(a,r,o))}const{id:r,routeId:d}=a.matches[o];let m=!1,x=!1;const p=a.router.looseRoutesById[d],v=p.options.loader,b=((typeof v=="function"?void 0:v?.staleReloadMode)??a.router.options.defaultStaleReloadMode)!=="blocking";if(Bp(a,r)){if(!a.router.getMatch(r))return a.matches[o];km(a,r,o)}else{const _=a.router.getMatch(r),j=a.router.stores.matchesId.get()[o],C=(j&&a.router.stores.matchStores.get(j)||null)?.routeId===d?j:a.router.stores.matches.get().find(L=>L.routeId===d)?.id,D=_o(a,r);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!a.sync&&!_.preload&&b)return _;await _._nonReactive.loaderPromise;const L=a.router.getMatch(r),z=L._nonReactive.error||L.error;z&&In(a,L,z),L.status==="pending"&&await c(D,_,C,L,p)}else{const L=D&&!a.router.stores.matchStores.has(r),z=a.router.getMatch(r);z._nonReactive.loaderPromise=_l(),L!==z.preload&&a.updateMatch(r,V=>({...V,preload:L})),await c(D,_,C,z,p)}}const y=a.router.getMatch(r);x||(y._nonReactive.loaderPromise?.resolve(),y._nonReactive.loadPromise?.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,x||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const S=x?y.isFetching:!1;return S!==y.isFetching||y.invalid!==!1?(a.updateMatch(r,_=>({..._,isFetching:S,invalid:!1})),a.router.getMatch(r)):y};async function Fm(a){const i=a,o=[];I0(i.router)&&rr(i);let c;for(let S=0;S<i.matches.length;S++){try{const _=nx(i,S);Di(_)&&await _}catch(_){if(me(_))throw _;if(le(_))c=_;else if(!i.preload)throw _;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const r=i.firstBadMatchIndex??i.matches.length,d=c&&!i.preload?Zm(i,c):void 0,m=c&&i.preload?0:d!==void 0?Math.min(d+1,r):r;let x,p;for(let S=0;S<m;S++)o.push(lx(i,o,S));try{await Promise.all(o)}catch{const S=await Promise.allSettled(o);for(const _ of S){if(_.status!=="rejected")continue;const j=_.reason;if(me(j))throw j;le(j)?x??=j:p??=j}if(p!==void 0)throw p}const v=x??(c&&!i.preload?c:void 0);let b=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!v&&c&&i.preload)return i.matches;if(v){const S=Zm(i,v);S===void 0&&Tn();const _=i.matches[S],j=i.router.looseRoutesById[_.routeId],C=i.router.options?.defaultNotFoundComponent;!j.options.notFoundComponent&&C&&(j.options.notFoundComponent=C),v.routeId=_.routeId;const D=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,L=>({...L,...D?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:v},isFetching:!1})),b=S,await Li(j,["notFoundComponent"])}else if(!i.preload){const S=i.matches[0];S.globalNotFound||i.router.getMatch(S.id)?.globalNotFound&&i.updateMatch(S.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const S=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Li(S,["errorComponent"])}for(let S=0;S<=b;S++){const{id:_,routeId:j}=i.matches[S],C=i.router.looseRoutesById[j];try{const D=ax(i,_,C);if(D){const L=await D;i.updateMatch(_,z=>({...z,...L}))}}catch(D){console.error(`Error executing head for route ${j}:`,D)}}const y=rr(i);if(Di(y)&&await y,v)throw v;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Pm(a,i){const o=i.map(c=>a.options[c]?.preload?.()).filter(Boolean);if(o.length!==0)return Promise.all(o)}function Li(a,i=co){!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(c=>{const{id:r,...d}=c.options;Object.assign(a.options,d),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0);const o=()=>a._componentsLoaded?void 0:i===co?(()=>{if(a._componentsPromise===void 0){const c=Pm(a,co);c?a._componentsPromise=c.then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0}):a._componentsLoaded=!0}return a._componentsPromise})():Pm(a,i);return a._lazyPromise?a._lazyPromise.then(o):o()}function Qp(a){for(const i of co)if(a.options[i]?.preload)return!0;return!1}const co=["component","errorComponent","pendingComponent","notFoundComponent"];var ea="__TSR_index",$m="popstate",Wm="beforeunload";function ix(a){let i=a.getLocation();const o=new Set,c=m=>{i=a.getLocation(),o.forEach(x=>x({location:i,action:m}))},r=m=>{a.notifyOnIndexChange??!0?c(m):i=a.getLocation()},d=async({task:m,navigateOpts:x,...p})=>{if(x?.ignoreBlocker??!1){m();return}const v=a.getBlockers?.()??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&v.length&&b)for(const y of v){const S=vo(p.path,p.state);if(await y.blockerFn({currentLocation:i,nextLocation:S,action:p.type})){a.onBlocked?.();return}}m()};return{get location(){return i},get length(){return a.getLength()},subscribers:o,subscribe:m=>(o.add(m),()=>{o.delete(m)}),push:(m,x,p)=>{const v=i.state[ea];x=Im(v+1,x),d({task:()=>{a.pushState(m,x),c({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:m,state:x})},replace:(m,x,p)=>{const v=i.state[ea];x=Im(v,x),d({task:()=>{a.replaceState(m,x),c({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:m,state:x})},go:(m,x)=>{d({task:()=>{a.go(m),r({type:"GO",index:m})},navigateOpts:x,type:"GO"})},back:m=>{d({task:()=>{a.back(m?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{d({task:()=>{a.forward(m?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>i.state[ea]!==0,createHref:m=>a.createHref(m),block:m=>{if(!a.setBlockers)return()=>{};const x=a.getBlockers?.()??[];return a.setBlockers([...x,m]),()=>{const p=a.getBlockers?.()??[];a.setBlockers?.(p.filter(v=>v!==m))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:c}}function Im(a,i){i||(i={});const o=br();return{...i,key:o,__TSR_key:o,[ea]:a}}function sx(a){const i=typeof document<"u"?window:void 0,o=i.history.pushState,c=i.history.replaceState;let r=[];const d=()=>r,m=X=>r=X,x=(X=>X),p=(()=>vo(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const X=br();i.history.replaceState({[ea]:0,key:X,__TSR_key:X},"")}let v=p(),b,y=!1,S=!1,_=!1,j=!1;const C=()=>v;let D,L;const z=()=>{D&&(H._ignoreSubscribers=!0,(D.isPush?i.history.pushState:i.history.replaceState)(D.state,"",D.href),H._ignoreSubscribers=!1,D=void 0,L=void 0,b=void 0)},V=(X,J,it)=>{const at=x(J);L||(b=v),v=vo(J,it),D={href:at,state:it,isPush:D?.isPush||X==="push"},L||(L=Promise.resolve().then(()=>z()))},G=X=>{v=p(),H.notify({type:X})},$=async()=>{if(S){S=!1;return}const X=p(),J=X.state[ea]-v.state[ea],it=J===1,at=J===-1,et=!it&&!at||y;y=!1;const Lt=et?"GO":at?"BACK":"FORWARD",zt=et?{type:"GO",index:J}:{type:at?"BACK":"FORWARD"};if(_)_=!1;else{const Ht=d();if(typeof document<"u"&&Ht.length){for(const U of Ht)if(await U.blockerFn({currentLocation:v,nextLocation:X,action:Lt})){S=!0,i.history.go(1),H.notify(zt);return}}}v=p(),H.notify(zt)},F=X=>{if(j){j=!1;return}let J=!1;const it=d();if(typeof document<"u"&&it.length)for(const at of it){const et=at.enableBeforeUnload??!0;if(et===!0){J=!0;break}if(typeof et=="function"&&et()===!0){J=!0;break}}if(J)return X.preventDefault(),X.returnValue=""},H=ix({getLocation:C,getLength:()=>i.history.length,pushState:(X,J)=>V("push",X,J),replaceState:(X,J)=>V("replace",X,J),back:X=>(X&&(_=!0),j=!0,i.history.back()),forward:X=>{X&&(_=!0),j=!0,i.history.forward()},go:X=>{y=!0,i.history.go(X)},createHref:X=>x(X),flush:z,destroy:()=>{i.history.pushState=o,i.history.replaceState=c,i.removeEventListener(Wm,F,{capture:!0}),i.removeEventListener($m,$)},onBlocked:()=>{b&&v!==b&&(v=b)},getBlockers:d,setBlockers:m,notifyOnIndexChange:!1});return i.addEventListener(Wm,F,{capture:!0}),i.addEventListener($m,$),i.history.pushState=function(...X){const J=o.apply(i.history,X);return H._ignoreSubscribers||G("PUSH"),J},i.history.replaceState=function(...X){const J=c.apply(i.history,X);return H._ignoreSubscribers||G("REPLACE"),J},H}function ox(a){let i=a.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function vo(a,i){const o=ox(a),c=o.indexOf("#"),r=o.indexOf("?"),d=br();return{href:o,pathname:o.substring(0,c>0?r>0?Math.min(c,r):c:r>0?r:o.length),hash:c>-1?o.substring(c):"",search:r>-1?o.slice(r,c===-1?void 0:c):"",state:i||{[ea]:0,key:d,__TSR_key:d}}}function br(){return(Math.random()+1).toString(36).substring(7)}function bl(a,i){const o=i,c=a;return{fromLocation:o,toLocation:c,pathChanged:o?.pathname!==c.pathname,hrefChanged:o?.href!==c.href,hashChanged:o?.hash!==c.hash}}var ux=class{constructor(a,i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=o=>o(),this.update=o=>{const c=this.options,r=this.basepath??c?.basepath??"/",d=this.basepath===void 0,m=c?.rewrite;if(this.options={...c,...o},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=U0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=sx()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let b;this.resolvePathCache=wi(1e3),b=this.buildRouteTree(),this.setRoutes(b)}if(!this.stores&&this.latestLocation){const b=this.getStoreConfig(this);this.batch=b.batch,this.stores=W0(rx(this.latestLocation),b),G0(this)}let x=!1;const p=this.options.basepath??"/",v=this.options.rewrite;if(d||r!==p||m!==v){this.basepath=p;const b=[],y=Lp(p);y&&y!=="/"&&b.push($0({basepath:p})),v&&b.push(v),this.rewrite=b.length===0?void 0:b.length===1?b[0]:P0(b),this.history&&this.updateLatestLocation(),x=!0}x&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const o=O0(this.routeTree,this.options.caseSensitive,(c,r)=>{c.init({originalIndex:r})});return this.options.routeMasks&&E0(this.options.routeMasks,o.processedTree),o},this.subscribe=(o,c)=>{const r={eventType:o,fn:c};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=o=>{this.subscribers.forEach(c=>{c.eventType===o.type&&c.fn(o)})},this.parseLocation=(o,c)=>{const r=({pathname:p,search:v,hash:b,href:y,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const L=this.options.parseSearch(v),z=this.options.stringifySearch(L);return{href:p+z+b,publicHref:p+z+b,pathname:Si(p).path,external:!1,searchStr:z,search:_a(c?.search,L),hash:Si(b.slice(1)).path,state:Ra(c?.state,S)}}const _=new URL(y,this.origin),j=cr(this.rewrite,_),C=this.options.parseSearch(j.search),D=this.options.stringifySearch(C);return j.search=D,{href:j.href.replace(j.origin,""),publicHref:y,pathname:Si(j.pathname).path,external:!!this.rewrite&&j.origin!==this.origin,searchStr:D,search:_a(c?.search,C),hash:Si(j.hash.slice(1)).path,state:Ra(c?.state,S)}},d=r(o),{__tempLocation:m,__tempKey:x}=d.state;if(m&&(!x||x===this.tempLocationKey)){const p=r(m);return p.state.key=d.state.key,p.state.__TSR_key=d.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:d}}return d},this.resolvePathWithBase=(o,c)=>L0({base:o,to:c.includes("//")?xr(c):c,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(o,c,r)=>typeof o=="string"?this.matchRoutesInternal({pathname:o,search:c},r):this.matchRoutesInternal(o,c),this.getMatchedRoutes=o=>fx({pathname:o,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=o=>{const c=this.getMatch(o);c&&(c.abortController.abort(),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(o=>{this.cancelMatch(o)}),this.stores.matchesId.get().forEach(o=>{if(this.stores.pendingMatchStores.has(o))return;const c=this.stores.matchStores.get(o)?.get();c&&(c.status==="pending"||c.isFetching==="loader")&&this.cancelMatch(o)})},this.buildLocation=o=>{const c=(d={})=>{const m=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,x=this.matchRoutesLightweight(m);d.from;const p=d.unsafeRelative==="path"?m.pathname:d.from??x.fullPath,v=d.to?`${d.to}`:void 0,b=x.search,y=Object.assign(Object.create(null),x.params),S=v?.charCodeAt(0)===47?"/":this.resolvePathWithBase(p,"."),_=v?this.resolvePathWithBase(S,v):S,j=d.params===!1||d.params===null?Object.create(null):(d.params??!0)===!0?y:Object.assign(y,$n(d.params,y)),C=this.routesByPath[_n(_)];let D;if(C)D=this.getRouteBranch(C);else if(_.includes("$"))D=[];else{const at=this.getMatchedRoutes(_);D=at.matchedRoutes,this.options.notFoundRoute&&(!at.foundRoute||at.foundRoute.path!=="/"&&at.routeParams["**"])&&(D=[...D,this.options.notFoundRoute])}if(D.length&&Ap(j))for(const at of D){const et=at.options.params?.stringify??at.options.stringifyParams;if(et)try{Object.assign(j,et(j))}catch{}}const L=o.leaveParams?_:Si(Gm({path:_,params:j,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let z=b;if(o._includeValidateSearch&&this.options.search?.strict){const at={};D.forEach(et=>{if(et.options.validateSearch)try{Object.assign(at,ro(et.options.validateSearch,{...at,...z}))}catch{}}),z=at}z=dx({search:z,dest:d,destRoutes:D,_includeValidateSearch:o._includeValidateSearch}),z=_a(b,z);const V=this.options.stringifySearch(z),G=d.hash===!0?m.hash:d.hash?$n(d.hash,m.hash):void 0,$=G?`#${G}`:"";let F=d.state===!0?m.state:d.state?$n(d.state,m.state):{};F=Ra(m.state,F);const H=`${L}${V}${$}`;let X,J,it=!1;if(this.rewrite){const at=new URL(H,this.origin),et=Up(this.rewrite,at);X=at.href.replace(at.origin,""),et.origin!==this.origin?(J=et.href,it=!0):J=et.pathname+et.search+et.hash}else X=_0(H),J=X;return{publicHref:J,href:X,pathname:L,search:z,searchStr:V,state:F,hash:G??"",external:it,unmaskOnReload:d.unmaskOnReload}},r=(d={},m)=>{const x=c(d);let p=m?c(m):void 0;if(!p){const v=Object.create(null);if(this.options.routeMasks){const b=j0(x.pathname,this.processedTree);if(b){Object.assign(v,b.rawParams);const{from:y,params:S,..._}=b.route,j=S===!1||S===null?Object.create(null):(S??!0)===!0?v:Object.assign(v,$n(S,v));m={from:o.from,..._,params:j},p=c(m)}}}return p&&(x.maskedLocation=p),x};return o.mask?r(o,{from:o.from,...o.mask}):r(o)},this.commitLocation=async({viewTransition:o,ignoreBlocker:c,...r})=>{const d=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(b=>{r.state[b]=this.latestLocation.state[b]});const v=ja(r.state,this.latestLocation.state);return p.forEach(b=>{delete r.state[b]}),v},m=_n(this.latestLocation.href)===_n(r.href);let x=this.commitLocationPromise;if(this.commitLocationPromise=_l(()=>{x?.resolve(),x=void 0}),m&&d())this.load();else{let{maskedLocation:p,hashScrollIntoView:v,...b}=r;p&&(b={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=o,this.history[r.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:c})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:o,resetScroll:c,hashScrollIntoView:r,viewTransition:d,ignoreBlocker:m,href:x,...p}={})=>{if(x){const y=this.history.location.state.__TSR_index,S=vo(x,{__TSR_index:o?y:y+1}),_=new URL(S.pathname,this.origin);p.to=cr(this.rewrite,_).pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const v=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=v;const b=this.commitLocation({...v,viewTransition:d,replace:o,resetScroll:c,hashScrollIntoView:r,ignoreBlocker:m});return Promise.resolve().then(()=>{this.pendingBuiltLocation===v&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:o,reloadDocument:c,href:r,publicHref:d,...m})=>{let x=!1;if(r)try{new URL(`${r}`),x=!0}catch{}if(x&&!c&&(c=!0),c){if(o!==void 0||!r){const v=this.buildLocation({to:o,...m});r=r??v.publicHref,d=d??v.publicHref}const p=!x&&d?d:r;if(mo(p,this.protocolAllowlist))return Promise.resolve();if(!m.ignoreBlocker){const v=this.history.getBlockers?.()??[];for(const b of v)if(b?.blockerFn&&await b.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return m.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...m,href:r,to:o,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const o=this.matchRoutes(this.latestLocation),c=this.stores.cachedMatches.get().filter(r=>!o.some(d=>d.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(o),this.stores.setCached(c)})},this.load=async o=>{let c,r,d;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(d=new Promise(p=>{this.startTransition(async()=>{try{this.beforeLoad();const v=this.latestLocation,b=bl(v,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...b}),this.emit({type:"onBeforeLoad",...b}),await Fm({router:this,sync:o?.sync,forceStaleReload:m.href===v.href,matches:this.stores.pendingMatches.get(),location:v,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let y=null,S=null,_=null,j=null;this.batch(()=>{const C=this.stores.pendingMatches.get(),D=C.length,L=this.stores.matches.get();y=D?L.filter(G=>!this.stores.pendingMatchStores.has(G.id)):null;const z=new Set;for(const G of this.stores.pendingMatchStores.values())G.routeId&&z.add(G.routeId);const V=new Set;for(const G of this.stores.matchStores.values())G.routeId&&V.add(G.routeId);S=D?L.filter(G=>!z.has(G.routeId)):null,_=D?C.filter(G=>!V.has(G.routeId)):null,j=D?C.filter(G=>V.has(G.routeId)):L,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),D&&(this.stores.setMatches(C),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...y.filter(G=>G.status!=="error"&&G.status!=="notFound"&&G.status!=="redirected")]),this.clearExpiredCache())});for(const[C,D]of[[S,"onLeave"],[_,"onEnter"],[j,"onStay"]])if(C)for(const L of C)this.looseRoutesById[L.routeId].options[D]?.(L)})})}})}catch(v){me(v)?(c=v,this.navigate({...c.options,replace:!0,ignoreBlocker:!0})):le(v)&&(r=v);const b=c?c.status:r?404:this.stores.matches.get().some(y=>y.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(b),this.stores.redirect.set(c)})}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let x;this.hasNotFoundMatch()?x=404:this.stores.matches.get().some(p=>p.status==="error")&&(x=500),x!==void 0&&this.stores.statusCode.set(x)},this.startViewTransition=o=>{const c=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,c&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof c=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,m=this.stores.resolvedLocation.get(),x=typeof c.types=="function"?c.types(bl(d,m)):c.types;if(x===!1){o();return}r={update:o,types:x}}else r=o;document.startViewTransition(r)}else o()},this.updateMatch=(o,c)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(o);if(r){r.set(c);return}const d=this.stores.matchStores.get(o);if(d){d.set(c);return}const m=this.stores.cachedMatchStores.get(o);if(m){const x=c(m.get());x.status==="redirected"?this.stores.cachedMatchStores.delete(o)&&this.stores.cachedIds.set(p=>p.filter(v=>v!==o)):m.set(x)}})},this.getMatch=o=>this.stores.cachedMatchStores.get(o)?.get()??this.stores.pendingMatchStores.get(o)?.get()??this.stores.matchStores.get(o)?.get(),this.invalidate=o=>{const c=r=>o?.filter?.(r)??!0?{...r,invalid:!0,...o?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(c)),this.stores.setCached(this.stores.cachedMatches.get().map(c)),this.stores.setPending(this.stores.pendingMatches.get().map(c))}),this.shouldViewTransition=!1,this.load({sync:o?.sync})},this.getParsedLocationHref=o=>o.publicHref||"/",this.resolveRedirect=o=>{const c=o.headers.get("Location");if(!o.options.href||o.options._builtLocation){const r=o.options._builtLocation??this.buildLocation(o.options),d=this.getParsedLocationHref(r);o.options.href=d,o.headers.set("Location",d)}else if(c)try{const r=new URL(c);if(this.origin&&r.origin===this.origin){const d=r.pathname+r.search+r.hash;o.options.href=d,o.headers.set("Location",d)}}catch{}if(o.options.href&&!o.options._builtLocation&&mo(o.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return o.headers.get("Location")||o.headers.set("Location",o.options.href),o},this.clearCache=o=>{const c=o?.filter;c!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!c(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const o=Date.now(),c=r=>{const d=this.looseRoutesById[r.routeId];if(!d.options.loader)return!0;const m=(r.preload?d.options.preloadGcTime??this.options.defaultPreloadGcTime:d.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:o-r.updatedAt>=m};this.clearCache({filter:c})},this.loadRouteChunk=Li,this.preloadRoute=async o=>{const c=o._builtLocation??this.buildLocation(o);let r=this.matchRoutes(c,{throwOnError:!0,preload:!0,dest:o});const d=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),m=new Set([...d,...this.stores.cachedIds.get()]),x=r.filter(p=>!m.has(p.id));if(x.length){const p=this.stores.cachedMatches.get();this.stores.setCached([...p,...x])}try{return r=await Fm({router:this,matches:r,location:c,preload:!0,updateMatch:(p,v)=>{d.has(p)?r=r.map(b=>b.id===p?v(b):b):this.updateMatch(p,v)}}),r}catch(p){if(me(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:c});le(p)||console.error(p);return}},this.matchRoute=(o,c)=>{const r={...o,to:o.to?this.resolvePathWithBase(o.from||"",o.to):void 0,params:o.params||{},leaveParams:!0},d=this.buildLocation(r);if(c?.pending&&this.stores.status.get()!=="pending")return!1;const m=(c?.pending===void 0?!this.stores.isLoading.get():c.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),x=M0(d.pathname,c?.caseSensitive??!1,c?.fuzzy??!1,m.pathname,this.processedTree);return!x||o.params&&!ja(x.rawParams,o.params,{partial:!0})?!1:c?.includeSearch??!0?ja(m.search,d.search,{partial:!0})?x.rawParams:!1:x.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(o=>o.status==="notFound"||o.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??Z0,parseSearch:a.parseSearch??K0,protocolAllowlist:a.protocolAllowlist??S0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:a,routesByPath:i,processedTree:o}){this.routesById=a,this.routesByPath=i,this.processedTree=o;const c=this.options.notFoundRoute;c&&(c.init({originalIndex:99999999999}),this.routesById[c.id]=c)}getRouteBranch(a){let i=this.routeBranchCache.get(a);return i||(i=Dp(a),this.routeBranchCache.set(a,i)),i}get looseRoutesById(){return this.routesById}getParentContext(a){return a?.id?a.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(a,i){const o=this.getMatchedRoutes(a.pathname),{foundRoute:c,routeParams:r}=o;let{matchedRoutes:d}=o,m=!1;(c?c.path!=="/"&&r["**"]:_n(a.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:m=!0);const x=m?mx(this.options.notFoundMode,d):void 0,p=new Array(d.length),v=new Map;for(const b of this.stores.matchStores.values())b.routeId&&v.set(b.routeId,b.get());for(let b=0;b<d.length;b++){const y=d[b],S=p[b-1];let _,j,C;{const et=S?.search??a.search,Lt=S?._strictSearch??void 0;try{const zt=ro(y.options.validateSearch,{...et})??void 0;_={...et,...zt},j={...Lt,...zt},C=void 0}catch(zt){let Ht=zt;if(zt instanceof yo||(Ht=new yo(zt.message,{cause:zt})),i?.throwOnError)throw Ht;_=et,j={},C=Ht}}const D=y.options.loaderDeps?.({search:_})??"",L=D?JSON.stringify(D):"",{interpolatedPath:z,usedParams:V}=Gm({path:y.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),G=y.id+z+L,$=this.getMatch(G),F=v.get(y.id),H=$?._strictParams??V;let X;if(!$)try{tp(y,H)}catch(et){if(le(et)||me(et)?X=et:X=new cx(et.message,{cause:et}),i?.throwOnError)throw X}Object.assign(r,H);const J=F?"stay":"enter";let it;if($)it={...$,cause:J,params:F?.params??r,_strictParams:H,search:_a(F?F.search:$.search,_),_strictSearch:j};else{const et=y.options.loader||y.options.beforeLoad||y.lazyFn||Qp(y)?"pending":"success";it={id:G,ssr:y.options.ssr,index:b,routeId:y.id,params:F?.params??r,_strictParams:H,pathname:z,updatedAt:Date.now(),search:F?_a(F.search,_):_,_strictSearch:j,searchError:void 0,status:et,isFetching:!1,error:void 0,paramsError:X,__routeContext:void 0,_nonReactive:{loadPromise:_l()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:J,loaderDeps:F?Ra(F.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}i?.preload||(it.globalNotFound=x===y.id),it.searchError=C;const at=this.getParentContext(S);it.context={...at,...it.__routeContext,...it.__beforeLoadContext},p[b]=it}for(let b=0;b<p.length;b++){const y=p[b],S=this.looseRoutesById[y.routeId],_=this.getMatch(y.id),j=v.get(y.routeId);if(y.params=j?_a(j.params,r):r,!_){const C=p[b-1],D=this.getParentContext(C);if(S.options.context){const L={deps:y.loaderDeps,params:y.params,context:D??{},location:a,navigate:z=>this.navigate({...z,_fromLocation:a}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:p,routeId:S.id};y.__routeContext=S.options.context(L)??void 0}y.context={...D,...y.__routeContext,...y.__beforeLoadContext}}}return p}matchRoutesLightweight(a){const{matchedRoutes:i,routeParams:o}=this.getMatchedRoutes(a.pathname),c=zi(i),r={...a.search};for(const v of i)try{Object.assign(r,ro(v.options.validateSearch,r))}catch{}const d=zi(this.stores.matchesId.get()),m=d&&this.stores.matchStores.get(d)?.get(),x=m&&m.routeId===c.id&&m.pathname===a.pathname;let p;if(x)p=m.params;else{const v=Object.assign(Object.create(null),o);for(const b of i)try{tp(b,v)}catch{}p=v}return{matchedRoutes:i,fullPath:c.fullPath,search:r,params:p}}},yo=class extends Error{},cx=class extends Error{};function rx(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],statusCode:200}}function ro(a,i){if(a==null)return{};if("~standard"in a){const o=a["~standard"].validate(i);if(o instanceof Promise)throw new yo("Async validation not supported");if(o.issues)throw new yo(JSON.stringify(o.issues,void 0,2),{cause:o});return o.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function fx({pathname:a,routesById:i,processedTree:o}){const c=Object.create(null),r=_n(a);let d;const m=C0(r,o,!0);return m&&(d=m.route,Object.assign(c,m.rawParams)),{matchedRoutes:m?.branch||[i.__root__],routeParams:c,foundRoute:d}}function dx({search:a,dest:i,destRoutes:o,_includeValidateSearch:c}){return hx(o)(a,i,c??!1)}function hx(a){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of a){if("search"in r.options)r.options.search?.middlewares&&i.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const d=({search:m,next:x})=>{let p=m;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(p=r.options.preSearchFilters.reduce((b,y)=>y(b),m));const v=x(p);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((b,y)=>y(b),v):v};i.middlewares.push(d)}if(r.options.validateSearch){const d=({search:m,next:x})=>{const p=x(m);if(!i._includeValidateSearch)return p;try{return{...p,...ro(r.options.validateSearch,p)??void 0}}catch{return p}};i.middlewares.push(d)}}const o=({search:r})=>{const d=i.dest;return d.search?d.search===!0?r:$n(d.search,r):{}};i.middlewares.push(o);const c=(r,d,m)=>{if(r>=m.length)return d;const x=m[r];return x({search:d,next:v=>c(r+1,v,m)})};return function(d,m,x){return i.dest=m,i._includeValidateSearch=x,c(0,d,i.middlewares)}}function mx(a,i){if(a!=="root")for(let o=i.length-1;o>=0;o--){const c=i[o];if(c.children)return c.id}return Ma}function tp(a,i){const o=a.options.params?.parse??a.options.parseParams;if(o){const c=o(i);if(c===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,c)}}const px="Error preloading route! ☝️";var Yp=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(a){if(this.init=i=>{this.originalIndex=i.originalIndex;const o=this.options,c=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),c?this._path=Ma:this.parentRoute||Tn();let r=c?Ma:o?.path;r&&r!=="/"&&(r=wp(r));const d=o?.id||r;let m=c?Ma:uo([this.parentRoute.id==="__root__"?"":this.parentRoute.id,d]);r==="__root__"&&(r="/"),m!=="__root__"&&(m=uo(["/",m]));const x=m==="__root__"?"/":uo([this.parentRoute.fullPath,r]);this._path=r,this._id=m,this._fullPath=x,this._to=_n(x)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>F0({from:this.fullPath,...i}),this.options=a||{},this.isRoot=!a?.getParentRoute,a?.id&&a?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},vx=class extends Yp{constructor(a){super(a)}};function yx(a){if(typeof document<"u"&&document.querySelector){const i=a.stores.location.get(),o=i.state.__hashScrollIntoViewOptions??!0;if(o&&i.hash!==""){const c=document.getElementById(i.hash);c&&c.scrollIntoView(o)}}}function Sr(a){const i=a.errorComponent??_r;return h.jsx(gx,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:o,reset:c})=>o?k.createElement(i,{error:o,reset:c}):a.children})}var gx=class extends k.Component{constructor(...a){super(...a),this.state={error:null}}static getDerivedStateFromProps(a,i){const o=a.getResetKey();return i.error&&i.resetKey!==o?{resetKey:o,error:null}:{resetKey:o}}static getDerivedStateFromError(a){return{error:a}}reset(){this.setState({error:null})}componentDidCatch(a,i){this.props.onCatch&&this.props.onCatch(a,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function _r({error:a}){const[i,o]=k.useState(!1);return h.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[h.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),h.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>o(c=>!c),children:i?"Hide Error":"Show Error"})]}),h.jsx("div",{style:{height:".25rem"}}),i?h.jsx("div",{children:h.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?h.jsx("code",{children:a.message}):null})}):null]})}function xx({children:a,fallback:i=null}){return Gp()?h.jsx(Ni.Fragment,{children:a}):h.jsx(Ni.Fragment,{children:i})}function Gp(){return Ni.useSyncExternalStore(bx,()=>!0,()=>!1)}function bx(){return()=>{}}var Vp=k.createContext(null);function Be(a){return k.useContext(Vp)}var To=k.createContext(void 0),Sx=k.createContext(void 0),wt=(a=>(a[a.None=0]="None",a[a.Mutable=1]="Mutable",a[a.Watching=2]="Watching",a[a.RecursedCheck=4]="RecursedCheck",a[a.Recursed=8]="Recursed",a[a.Dirty=16]="Dirty",a[a.Pending=32]="Pending",a))(wt||{});function _x({update:a,notify:i,unwatched:o}){return{link:c,unlink:r,propagate:d,checkDirty:m,shallowPropagate:x};function c(v,b,y){const S=b.depsTail;if(S!==void 0&&S.dep===v)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===v){_.version=y,b.depsTail=_;return}const j=v.subsTail;if(j!==void 0&&j.version===y&&j.sub===b)return;const C=b.depsTail=v.subsTail={version:y,dep:v,sub:b,prevDep:S,nextDep:_,prevSub:j,nextSub:void 0};_!==void 0&&(_.prevDep=C),S!==void 0?S.nextDep=C:b.deps=C,j!==void 0?j.nextSub=C:v.subs=C}function r(v,b=v.sub){const y=v.dep,S=v.prevDep,_=v.nextDep,j=v.nextSub,C=v.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,j!==void 0?j.prevSub=C:y.subsTail=C,C!==void 0?C.nextSub=j:(y.subs=j)===void 0&&o(y),_}function d(v){let b=v.nextSub,y;t:do{const S=v.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&p(v,S)?(S.flags=_|40,_&=1):_=0:S.flags=_&-9|32:_=0:S.flags=_|32,_&2&&i(S),_&1){const j=S.subs;if(j!==void 0){const C=(v=j).nextSub;C!==void 0&&(y={value:b,prev:y},b=C);continue}}if((v=b)!==void 0){b=v.nextSub;continue}for(;y!==void 0;)if(v=y.value,y=y.prev,v!==void 0){b=v.nextSub;continue t}break}while(!0)}function m(v,b){let y,S=0,_=!1;t:do{const j=v.dep,C=j.flags;if(b.flags&16)_=!0;else if((C&17)===17){if(a(j)){const D=j.subs;D.nextSub!==void 0&&x(D),_=!0}}else if((C&33)===33){(v.nextSub!==void 0||v.prevSub!==void 0)&&(y={value:v,prev:y}),v=j.deps,b=j,++S;continue}if(!_){const D=v.nextDep;if(D!==void 0){v=D;continue}}for(;S--;){const D=b.subs,L=D.nextSub!==void 0;if(L?(v=y.value,y=y.prev):v=D,_){if(a(b)){L&&x(D),b=v.sub;continue}_=!1}else b.flags&=-33;b=v.sub;const z=v.nextDep;if(z!==void 0){v=z;continue t}}return _}while(!0)}function x(v){do{const b=v.sub,y=b.flags;(y&48)===32&&(b.flags=y|16,(y&6)===2&&i(b))}while((v=v.nextSub)!==void 0)}function p(v,b){let y=b.depsTail;for(;y!==void 0;){if(y===v)return!0;y=y.prevDep}return!1}}function Tx(a,i,o){const c=typeof a=="object",r=c?a:void 0;return{next:(c?a.next:a)?.bind(r),error:(c?a.error:i)?.bind(r),complete:(c?a.complete:o)?.bind(r)}}const fr=[];let fo=0;const{link:ep,unlink:Rx,propagate:Ex,checkDirty:Xp,shallowPropagate:np}=_x({update(a){return a._update()},notify(a){fr[dr++]=a,a.flags&=~wt.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=wt.Mutable|wt.Dirty,go(a))}});let so=0,dr=0,Pe,hr=0;function Kp(a){try{++hr,a()}finally{--hr||Zp()}}function go(a){const i=a.depsTail;let o=i!==void 0?i.nextDep:a.deps;for(;o!==void 0;)o=Rx(o,a)}function Zp(){if(!(hr>0)){for(;so<dr;){const a=fr[so];fr[so++]=void 0,a.notify()}so=0,dr=0}}function ap(a,i){const o=typeof a=="function",c=a,r={_snapshot:o?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:o?wt.None:wt.Mutable,get(){return Pe!==void 0&&ep(r,Pe,fo),r._snapshot},subscribe(d){const m=Tx(d),x={current:!1},p=jx(()=>{r.get(),x.current?m.next?.(r._snapshot):x.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(d){const m=Pe,x=i?.compare??Object.is;if(o)Pe=r,++fo,r.depsTail=void 0;else if(d===void 0)return!1;o&&(r.flags=wt.Mutable|wt.RecursedCheck);try{const p=r._snapshot,v=typeof d=="function"?d(p):d===void 0&&o?c(p):d;return p===void 0||!x(p,v)?(r._snapshot=v,!0):!1}finally{Pe=m,o&&(r.flags&=~wt.RecursedCheck),go(r)}}};return o?(r.flags=wt.Mutable|wt.Dirty,r.get=function(){const d=r.flags;if(d&wt.Dirty||d&wt.Pending&&Xp(r.deps,r)){if(r._update()){const m=r.subs;m!==void 0&&np(m)}}else d&wt.Pending&&(r.flags=d&~wt.Pending);return Pe!==void 0&&ep(r,Pe,fo),r._snapshot}):r.set=function(d){if(r._update(d)){const m=r.subs;m!==void 0&&(Ex(m),np(m),Zp())}},r}function jx(a){const i=()=>{const c=Pe;Pe=o,++fo,o.depsTail=void 0,o.flags=wt.Watching|wt.RecursedCheck;try{return a()}finally{Pe=c,o.flags&=~wt.RecursedCheck,go(o)}},o={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:wt.Watching|wt.RecursedCheck,notify(){const c=this.flags;c&wt.Dirty||c&wt.Pending&&Xp(this.deps,this)?i():this.flags=wt.Watching},stop(){this.flags=wt.None,this.depsTail=void 0,go(this)}};return i(),o}var kc={exports:{}},Jc={},Fc={exports:{}},Pc={};var lp;function Mx(){if(lp)return Pc;lp=1;var a=Bi();function i(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var o=typeof Object.is=="function"?Object.is:i,c=a.useState,r=a.useEffect,d=a.useLayoutEffect,m=a.useDebugValue;function x(y,S){var _=S(),j=c({inst:{value:_,getSnapshot:S}}),C=j[0].inst,D=j[1];return d(function(){C.value=_,C.getSnapshot=S,p(C)&&D({inst:C})},[y,_,S]),r(function(){return p(C)&&D({inst:C}),y(function(){p(C)&&D({inst:C})})},[y]),m(_),_}function p(y){var S=y.getSnapshot;y=y.value;try{var _=S();return!o(y,_)}catch{return!0}}function v(y,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:x;return Pc.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,Pc}var ip;function Cx(){return ip||(ip=1,Fc.exports=Mx()),Fc.exports}var sp;function Ax(){if(sp)return Jc;sp=1;var a=Bi(),i=Cx();function o(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var c=typeof Object.is=="function"?Object.is:o,r=i.useSyncExternalStore,d=a.useRef,m=a.useEffect,x=a.useMemo,p=a.useDebugValue;return Jc.useSyncExternalStoreWithSelector=function(v,b,y,S,_){var j=d(null);if(j.current===null){var C={hasValue:!1,value:null};j.current=C}else C=j.current;j=x(function(){function L(F){if(!z){if(z=!0,V=F,F=S(F),_!==void 0&&C.hasValue){var H=C.value;if(_(H,F))return G=H}return G=F}if(H=G,c(V,F))return H;var X=S(F);return _!==void 0&&_(H,X)?(V=F,H):(V=F,G=X)}var z=!1,V,G,$=y===void 0?null:y;return[function(){return L(b())},$===null?void 0:function(){return L($())}]},[b,y,S,_]);var D=r(v,j[0],j[1]);return m(function(){C.hasValue=!0,C.value=D},[D]),p(D),D},Jc}var op;function Ox(){return op||(op=1,kc.exports=Ax()),kc.exports}var Nx=Ox();function zx(a,i){return a===i}function je(a,i,o=zx){const c=k.useCallback(m=>{if(!a)return()=>{};const{unsubscribe:x}=a.subscribe(m);return x},[a]),r=k.useCallback(()=>a?.get(),[a]);return Nx.useSyncExternalStoreWithSelector(c,r,r,i,o)}var Dx={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Aa(a){const i=Be(),o=k.useContext(a.from?Sx:To),c=a.from??o,r=c?a.from?i.stores.getRouteMatchStore(c):i.stores.matchStores.get(c):void 0,d=k.useRef(void 0);return je(r??Dx,m=>{if((a.shouldThrow??!0)&&!m&&Tn(),m===void 0)return;const x=a.select?a.select(m):m;if(a.structuralSharing??i.options.defaultStructuralSharing){const p=Ra(d.current,x);return d.current=p,p}return x})}function kp(a){return Aa({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.loaderData):i.loaderData})}function Jp(a){const{select:i,...o}=a;return Aa({...o,select:c=>i?i(c.loaderDeps):c.loaderDeps})}function Fp(a){return Aa({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const o=a.strict===!1?i.params:i._strictParams;return a.select?a.select(o):o}})}function Pp(a){return Aa({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.search):i.search})}function $p(a){const i=Be();return k.useCallback(o=>i.navigate({...o,from:o.from??a?.from}),[a?.from,i])}function Wp(a){return Aa({...a,select:i=>a.select?a.select(i.context):i.context})}var $c={exports:{}},ae={};var up;function wx(){if(up)return ae;up=1;var a=Bi();function i(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)v+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var c={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},r=Symbol.for("react.portal");function d(p,v,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:y==null?null:""+y,children:p,containerInfo:v,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ae.createPortal=function(p,v){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return d(p,v,null,b)},ae.flushSync=function(p){var v=m.T,b=c.p;try{if(m.T=null,c.p=2,p)return p()}finally{m.T=v,c.p=b,c.d.f()}},ae.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(p,v))},ae.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},ae.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var b=v.as,y=x(b,v.crossOrigin),S=typeof v.integrity=="string"?v.integrity:void 0,_=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;b==="style"?c.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:_}):b==="script"&&c.d.X(p,{crossOrigin:y,integrity:S,fetchPriority:_,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ae.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var b=x(v.as,v.crossOrigin);c.d.M(p,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(p)},ae.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var b=v.as,y=x(b,v.crossOrigin);c.d.L(p,b,{crossOrigin:y,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ae.preloadModule=function(p,v){if(typeof p=="string")if(v){var b=x(v.as,v.crossOrigin);c.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(p)},ae.requestFormReset=function(p){c.d.r(p)},ae.unstable_batchedUpdates=function(p,v){return p(v)},ae.useFormState=function(p,v,b){return m.H.useFormState(p,v,b)},ae.useFormStatus=function(){return m.H.useHostTransitionStatus()},ae.version="19.2.6",ae}var cp;function Ip(){if(cp)return $c.exports;cp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),$c.exports=wx(),$c.exports}var Lx=Ip();function Ux(a,i){const o=Be(),c=y0(i),{activeProps:r,inactiveProps:d,activeOptions:m,to:x,preload:p,preloadDelay:v,preloadIntentProximity:b,hashScrollIntoView:y,replace:S,startTransition:_,resetScroll:j,viewTransition:C,children:D,target:L,disabled:z,style:V,className:G,onClick:$,onBlur:F,onFocus:H,onMouseEnter:X,onMouseLeave:J,onTouchStart:it,ignoreBlocker:at,params:et,search:Lt,hash:zt,state:Ht,mask:U,reloadDocument:K,unsafeRelative:lt,from:xt,_fromLocation:St,...E}=a,Q=Gp(),Z=k.useMemo(()=>a,[o,a.from,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),P=je(o.stores.location,At=>At,(At,Ft)=>At.href===Ft.href),tt=k.useMemo(()=>{const At={_fromLocation:P,...Z};return o.buildLocation(At)},[o,P,Z]),rt=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,vt=tt.maskedLocation?tt.maskedLocation.external:tt.external,qt=k.useMemo(()=>Gx(rt,vt,o.history,z),[z,vt,rt,o.history]),Mt=k.useMemo(()=>{if(qt?.external)return mo(qt.href,o.protocolAllowlist)?void 0:qt.href;if(!Vx(x)&&!(typeof x!="string"||x.indexOf(":")===-1))try{return new URL(x),mo(x,o.protocolAllowlist)?void 0:x}catch{}},[x,qt,o.protocolAllowlist]),tn=k.useMemo(()=>{if(Mt)return!1;if(m?.exact){if(!w0(P.pathname,tt.pathname,o.basepath))return!1}else{const At=po(P.pathname,o.basepath),Ft=po(tt.pathname,o.basepath);if(!(At.startsWith(Ft)&&(At.length===Ft.length||At[Ft.length]==="/")))return!1}return(m?.includeSearch??!0)&&!ja(P.search,tt.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?Q&&P.hash===tt.hash:!0},[m?.exact,m?.explicitUndefined,m?.includeHash,m?.includeSearch,P,Mt,Q,tt.hash,tt.pathname,tt.search,o.basepath]),en=tn?$n(r,{})??Bx:Wc,Rn=tn?Wc:$n(d,{})??Wc,El=[G,en.className,Rn.className].filter(Boolean).join(" "),Ve=(V||en.style||Rn.style)&&{...V,...en.style,...Rn.style},[jl,Na]=k.useState(!1),Hi=k.useRef(!1),nn=a.reloadDocument||Mt?!1:p??o.options.defaultPreload,aa=v??o.options.defaultPreloadDelay??0,He=k.useCallback(()=>{o.preloadRoute({...Z,_builtLocation:tt}).catch(At=>{console.warn(At),console.warn(px)})},[o,Z,tt]);v0(c,k.useCallback(At=>{At?.isIntersecting&&He()},[He]),Yx,{disabled:!!z||nn!=="viewport"}),k.useEffect(()=>{Hi.current||!z&&nn==="render"&&(He(),Hi.current=!0)},[z,He,nn]);const Ml=At=>{const Ft=At.currentTarget.getAttribute("target"),Xe=L!==void 0?L:Ft;if(!z&&!Xx(At)&&!At.defaultPrevented&&(!Xe||Xe==="_self")&&At.button===0){At.preventDefault(),Lx.flushSync(()=>{Na(!0)});const za=o.subscribe("onResolved",()=>{za(),Na(!1)});o.navigate({...Z,replace:S,resetScroll:j,hashScrollIntoView:y,startTransition:_,viewTransition:C,ignoreBlocker:at})}};if(Mt)return{...E,ref:c,href:Mt,...D&&{children:D},...L&&{target:L},...z&&{disabled:z},...V&&{style:V},...G&&{className:G},...$&&{onClick:$},...F&&{onBlur:F},...H&&{onFocus:H},...X&&{onMouseEnter:X},...J&&{onMouseLeave:J},...it&&{onTouchStart:it}};const qi=At=>{if(z||nn!=="intent")return;if(!aa){He();return}const Ft=At.currentTarget;if(Ri.has(Ft))return;const Xe=setTimeout(()=>{Ri.delete(Ft),He()},aa);Ri.set(Ft,Xe)},Eo=At=>{z||nn!=="intent"||He()},ne=At=>{if(z||!nn||!aa)return;const Ft=At.currentTarget,Xe=Ri.get(Ft);Xe&&(clearTimeout(Xe),Ri.delete(Ft))};return{...E,...en,...Rn,href:qt?.href,ref:c,onClick:yl([$,Ml]),onBlur:yl([F,ne]),onFocus:yl([H,qi]),onMouseEnter:yl([X,qi]),onMouseLeave:yl([J,ne]),onTouchStart:yl([it,Eo]),disabled:!!z,target:L,...Ve&&{style:Ve},...El&&{className:El},...z&&Hx,...tn&&qx,...Q&&jl&&Qx}}var Wc={},Bx={className:"active"},Hx={role:"link","aria-disabled":!0},qx={"data-status":"active","aria-current":"page"},Qx={"data-transitioning":"transitioning"},Ri=new WeakMap,Yx={rootMargin:"100px"},yl=a=>i=>{for(const o of a)if(o){if(i.defaultPrevented)return;o(i)}};function Gx(a,i,o,c){if(!c)return i?{href:a,external:!0}:{href:o.createHref(a)||"/",external:!1}}function Vx(a){if(typeof a!="string")return!1;const i=a.charCodeAt(0);return i===47?a.charCodeAt(1)!==47:i===46}var na=k.forwardRef((a,i)=>{const{_asChild:o,...c}=a,{type:r,...d}=Ux(c,i),m=typeof c.children=="function"?c.children({isActive:d["data-status"]==="active"}):c.children;if(!o){const{disabled:x,...p}=d;return k.createElement("a",p,m)}return k.createElement(o,d,m)});function Xx(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}var Kx=class extends Yp{constructor(i){super(i),this.useMatch=o=>Aa({select:o?.select,from:this.id,structuralSharing:o?.structuralSharing}),this.useRouteContext=o=>Wp({...o,from:this.id}),this.useSearch=o=>Pp({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useParams=o=>Fp({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useLoaderDeps=o=>Jp({...o,from:this.id}),this.useLoaderData=o=>kp({...o,from:this.id}),this.useNavigate=()=>$p({from:this.fullPath}),this.Link=Ni.forwardRef((o,c)=>h.jsx(na,{ref:c,from:this.fullPath,...o}))}};function Zx(a){return new Kx(a)}function kx(){return a=>Fx(a)}var Jx=class extends vx{constructor(a){super(a),this.useMatch=i=>Aa({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Wp({...i,from:this.id}),this.useSearch=i=>Pp({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Fp({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Jp({...i,from:this.id}),this.useLoaderData=i=>kp({...i,from:this.id}),this.useNavigate=()=>$p({from:this.fullPath}),this.Link=Ni.forwardRef((i,o)=>h.jsx(na,{ref:o,from:this.fullPath,...i}))}};function Fx(a){return new Jx(a)}function Tl(a){return new Px(a,{silent:!0}).createRoute}var Px=class{constructor(a,i){this.path=a,this.createRoute=o=>{const c=Zx(o);return c.isRoot=!1,c},this.silent=i?.silent}};function $x(a){const i=Be(),o=`not-found-${je(i.stores.location,c=>c.pathname)}-${je(i.stores.status,c=>c)}`;return h.jsx(Sr,{getResetKey:()=>o,onCatch:(c,r)=>{if(le(c))a.onCatch?.(c,r);else throw c},errorComponent:({error:c})=>{if(le(c))return a.fallback?.(c);throw c},children:a.children})}function Wx(){return h.jsx("p",{children:"Not Found"})}function xl(a){return h.jsx(h.Fragment,{children:a.children})}function tv(a,i,o){return i.options.notFoundComponent?h.jsx(i.options.notFoundComponent,{...o}):a.options.defaultNotFoundComponent?h.jsx(a.options.defaultNotFoundComponent,{...o}):h.jsx(Wx,{})}function Ix(a){return null}function tb(){return Ix(Be()),null}var ev=k.memo(function({matchId:i}){const o=Be(),c=o.stores.matchStores.get(i);c||Tn();const r=je(o.stores.loadedAt,m=>m),d=je(c,m=>m);return h.jsx(eb,{router:o,matchId:i,resetKey:r,matchState:k.useMemo(()=>{const m=d.routeId,x=o.routesById[m].parentRoute?.id;return{routeId:m,ssr:d.ssr,_displayPending:d._displayPending,parentRouteId:x}},[d._displayPending,d.routeId,d.ssr,o.routesById])})});function eb({router:a,matchId:i,resetKey:o,matchState:c}){const r=a.routesById[c.routeId],d=r.options.pendingComponent??a.options.defaultPendingComponent,m=d?h.jsx(d,{}):null,x=r.options.errorComponent??a.options.defaultErrorComponent,p=r.options.onCatch??a.options.defaultOnCatch,v=r.isRoot?r.options.notFoundComponent??a.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=c.ssr===!1||c.ssr==="data-only",y=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??d??(r.options.errorComponent?.preload||b))?k.Suspense:xl,S=x?Sr:xl,_=v?$x:xl;return h.jsxs(r.isRoot?r.options.shellComponent??xl:xl,{children:[h.jsx(To.Provider,{value:i,children:h.jsx(y,{fallback:m,children:h.jsx(S,{getResetKey:()=>o,errorComponent:x||_r,onCatch:(j,C)=>{if(le(j))throw j.routeId??=c.routeId,j;p?.(j,C)},children:h.jsx(_,{fallback:j=>{if(j.routeId??=c.routeId,!v||j.routeId&&j.routeId!==c.routeId||!j.routeId&&!r.isRoot)throw j;return k.createElement(v,j)},children:b||c._displayPending?h.jsx(xx,{fallback:m,children:h.jsx(rp,{matchId:i})}):h.jsx(rp,{matchId:i})})})})}),c.parentRouteId===Ma?h.jsxs(h.Fragment,{children:[h.jsx(nb,{resetKey:o}),a.options.scrollRestoration&&Mp?h.jsx(tb,{}):null]}):null]})}function nb({resetKey:a}){const i=Be(),o=k.useRef(void 0);return Mi(()=>{const c=i.latestLocation.href;(o.current===void 0||o.current!==c)&&(i.emit({type:"onRendered",...bl(i.stores.location.get(),i.stores.resolvedLocation.get())}),o.current=c)},[i.latestLocation.state.__TSR_key,a,i]),null}var rp=k.memo(function({matchId:i}){const o=Be(),c=(b,y)=>o.getMatch(b.id)?._nonReactive[y]??b._nonReactive[y],r=o.stores.matchStores.get(i);r||Tn();const d=je(r,b=>b),m=d.routeId,x=o.routesById[m],p=k.useMemo(()=>{const b=(o.routesById[m].options.remountDeps??o.options.defaultRemountDeps)?.({routeId:m,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return b?JSON.stringify(b):void 0},[m,d.loaderDeps,d._strictParams,d._strictSearch,o.options.defaultRemountDeps,o.routesById]),v=k.useMemo(()=>{const b=x.options.component??o.options.defaultComponent;return b?h.jsx(b,{},p):h.jsx(nv,{})},[p,x.options.component,o.options.defaultComponent]);if(d._displayPending)throw c(d,"displayPendingPromise");if(d._forcePending)throw c(d,"minPendingPromise");if(d.status==="pending"){const b=x.options.pendingMinMs??o.options.defaultPendingMinMs;if(b){const y=o.getMatch(d.id);if(y&&!y._nonReactive.minPendingPromise){const S=_l();y._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),y._nonReactive.minPendingPromise=void 0},b)}}throw c(d,"loadPromise")}if(d.status==="notFound")return le(d.error)||Tn(),tv(o,x,d.error);if(d.status==="redirected")throw me(d.error)||Tn(),c(d,"loadPromise");if(d.status==="error")throw d.error;return v}),nv=k.memo(function(){const i=Be(),o=k.useContext(To);let c,r=!1,d;{const v=o?i.stores.matchStores.get(o):void 0;[c,r]=je(v,b=>[b?.routeId,b?.globalNotFound??!1]),d=je(i.stores.matchesId,b=>b[b.findIndex(y=>y===o)+1])}const m=c?i.routesById[c]:void 0,x=i.options.defaultPendingComponent?h.jsx(i.options.defaultPendingComponent,{}):null;if(r)return m||Tn(),tv(i,m,void 0);if(!d)return null;const p=h.jsx(ev,{matchId:d});return c===Ma?h.jsx(k.Suspense,{fallback:x,children:p}):p});function ab(){const a=Be(),i=k.useRef({router:a,mounted:!1}),[o,c]=k.useState(!1),r=je(a.stores.isLoading,y=>y),d=je(a.stores.hasPending,y=>y),m=Qc(r),x=r||o||d,p=Qc(x),v=r||d,b=Qc(v);return a.startTransition=y=>{c(!0),k.startTransition(()=>{y(),c(!1)})},k.useEffect(()=>{const y=a.history.subscribe(a.load),S=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return _n(a.latestLocation.publicHref)!==_n(S.publicHref)&&a.commitLocation({...S,replace:!0}),()=>{y()}},[a,a.history]),Mi(()=>{if(typeof window<"u"&&a.ssr||i.current.router===a&&i.current.mounted)return;i.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(S){console.error(S)}})()},[a]),Mi(()=>{m&&!r&&a.emit({type:"onLoad",...bl(a.stores.location.get(),a.stores.resolvedLocation.get())})},[m,a,r]),Mi(()=>{b&&!v&&a.emit({type:"onBeforeRouteMount",...bl(a.stores.location.get(),a.stores.resolvedLocation.get())})},[v,b,a]),Mi(()=>{if(p&&!x){const y=bl(a.stores.location.get(),a.stores.resolvedLocation.get());a.emit({type:"onResolved",...y}),Kp(()=>{a.stores.status.set("idle"),a.stores.resolvedLocation.set(a.stores.location.get())}),y.hrefChanged&&yx(a)}},[x,p,a]),null}function lb(){const a=Be(),i=a.routesById[Ma].options.pendingComponent??a.options.defaultPendingComponent,o=i?h.jsx(i,{}):null,c=h.jsxs(typeof document<"u"&&a.ssr?xl:k.Suspense,{fallback:o,children:[h.jsx(ab,{}),h.jsx(ib,{})]});return a.options.InnerWrap?h.jsx(a.options.InnerWrap,{children:c}):c}function ib(){const a=Be(),i=je(a.stores.firstId,r=>r),o=je(a.stores.loadedAt,r=>r),c=i?h.jsx(ev,{matchId:i}):null;return h.jsx(To.Provider,{value:i,children:a.options.disableGlobalCatchBoundary?c:h.jsx(Sr,{getResetKey:()=>o,errorComponent:_r,onCatch:void 0,children:c})})}var sb=a=>({createMutableStore:ap,createReadonlyStore:ap,batch:Kp}),ob=a=>new ub(a),ub=class extends ux{constructor(a){super(a,sb)}};function cb({router:a,children:i,...o}){Ap(o)&&a.update({...a.options,...o,context:{...a.options.context,...o.context}});const c=h.jsx(Vp.Provider,{value:a,children:i});return a.options.Wrap?h.jsx(a.options.Wrap,{children:c}):c}function rb({router:a,...i}){return h.jsx(cb,{router:a,...i,children:h.jsx(lb,{})})}var Ic={exports:{}},Ei={},tr={exports:{}},er={};var fp;function fb(){return fp||(fp=1,(function(a){function i(U,K){var lt=U.length;U.push(K);t:for(;0<lt;){var xt=lt-1>>>1,St=U[xt];if(0<r(St,K))U[xt]=K,U[lt]=St,lt=xt;else break t}}function o(U){return U.length===0?null:U[0]}function c(U){if(U.length===0)return null;var K=U[0],lt=U.pop();if(lt!==K){U[0]=lt;t:for(var xt=0,St=U.length,E=St>>>1;xt<E;){var Q=2*(xt+1)-1,Z=U[Q],P=Q+1,tt=U[P];if(0>r(Z,lt))P<St&&0>r(tt,Z)?(U[xt]=tt,U[P]=lt,xt=P):(U[xt]=Z,U[Q]=lt,xt=Q);else if(P<St&&0>r(tt,lt))U[xt]=tt,U[P]=lt,xt=P;else break t}}return K}function r(U,K){var lt=U.sortIndex-K.sortIndex;return lt!==0?lt:U.id-K.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();a.unstable_now=function(){return m.now()-x}}var p=[],v=[],b=1,y=null,S=3,_=!1,j=!1,C=!1,D=!1,L=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function G(U){for(var K=o(v);K!==null;){if(K.callback===null)c(v);else if(K.startTime<=U)c(v),K.sortIndex=K.expirationTime,i(p,K);else break;K=o(v)}}function $(U){if(C=!1,G(U),!j)if(o(p)!==null)j=!0,F||(F=!0,et());else{var K=o(v);K!==null&&Ht($,K.startTime-U)}}var F=!1,H=-1,X=5,J=-1;function it(){return D?!0:!(a.unstable_now()-J<X)}function at(){if(D=!1,F){var U=a.unstable_now();J=U;var K=!0;try{t:{j=!1,C&&(C=!1,z(H),H=-1),_=!0;var lt=S;try{e:{for(G(U),y=o(p);y!==null&&!(y.expirationTime>U&&it());){var xt=y.callback;if(typeof xt=="function"){y.callback=null,S=y.priorityLevel;var St=xt(y.expirationTime<=U);if(U=a.unstable_now(),typeof St=="function"){y.callback=St,G(U),K=!0;break e}y===o(p)&&c(p),G(U)}else c(p);y=o(p)}if(y!==null)K=!0;else{var E=o(v);E!==null&&Ht($,E.startTime-U),K=!1}}break t}finally{y=null,S=lt,_=!1}K=void 0}}finally{K?et():F=!1}}}var et;if(typeof V=="function")et=function(){V(at)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,zt=Lt.port2;Lt.port1.onmessage=at,et=function(){zt.postMessage(null)}}else et=function(){L(at,0)};function Ht(U,K){H=L(function(){U(a.unstable_now())},K)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(U){U.callback=null},a.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<U?Math.floor(1e3/U):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(U){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var lt=S;S=K;try{return U()}finally{S=lt}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(U,K){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var lt=S;S=U;try{return K()}finally{S=lt}},a.unstable_scheduleCallback=function(U,K,lt){var xt=a.unstable_now();switch(typeof lt=="object"&<!==null?(lt=lt.delay,lt=typeof lt=="number"&&0<lt?xt+lt:xt):lt=xt,U){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=lt+St,U={id:b++,callback:K,priorityLevel:U,startTime:lt,expirationTime:St,sortIndex:-1},lt>xt?(U.sortIndex=lt,i(v,U),o(p)===null&&U===o(v)&&(C?(z(H),H=-1):C=!0,Ht($,lt-xt))):(U.sortIndex=St,i(p,U),j||_||(j=!0,F||(F=!0,et()))),U},a.unstable_shouldYield=it,a.unstable_wrapCallback=function(U){var K=S;return function(){var lt=S;S=K;try{return U.apply(this,arguments)}finally{S=lt}}}})(er)),er}var dp;function db(){return dp||(dp=1,tr.exports=fb()),tr.exports}var hp;function hb(){if(hp)return Ei;hp=1;var a=db(),i=Bi(),o=Ip();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function x(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(d(t)!==t)throw Error(c(188))}function v(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return p(s),t;if(u===l)return p(s),e;u=u.sibling}throw Error(c(188))}if(n.return!==l.return)n=s,l=u;else{for(var f=!1,g=s.child;g;){if(g===n){f=!0,n=s,l=u;break}if(g===l){f=!0,l=s,n=u;break}g=g.sibling}if(!f){for(g=u.child;g;){if(g===n){f=!0,n=u,l=s;break}if(g===l){f=!0,l=u,n=s;break}g=g.sibling}if(!f)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),V=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function et(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var Lt=Symbol.for("react.client.reference");function zt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Lt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case L:return"Profiler";case D:return"StrictMode";case $:return"Suspense";case F:return"SuspenseList";case J:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case V:return t.displayName||"Context";case z:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return e=t.displayName||null,e!==null?e:zt(t.type)||"Memo";case X:e=t._payload,t=t._init;try{return zt(t(e))}catch{}}return null}var Ht=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lt={pending:!1,data:null,method:null,action:null},xt=[],St=-1;function E(t){return{current:t}}function Q(t){0>St||(t.current=xt[St],xt[St]=null,St--)}function Z(t,e){St++,xt[St]=t.current,t.current=e}var P=E(null),tt=E(null),rt=E(null),vt=E(null);function qt(t,e){switch(Z(rt,e),Z(tt,t),Z(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Kh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Kh(e),t=Zh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(P),Z(P,t)}function Mt(){Q(P),Q(tt),Q(rt)}function tn(t){t.memoizedState!==null&&Z(vt,t);var e=P.current,n=Zh(e,t.type);e!==n&&(Z(tt,t),Z(P,n))}function en(t){tt.current===t&&(Q(P),Q(tt)),vt.current===t&&(Q(vt),vi._currentValue=lt)}var Rn,El;function Ve(t){if(Rn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Rn=e&&e[1]||"",El=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Rn+t+El}var jl=!1;function Na(t,e){if(!t||jl)return"";jl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(w){var N=w}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(w){N=w}t.call(Y.prototype)}}else{try{throw Error()}catch(w){N=w}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(w){if(w&&N&&typeof w.stack=="string")return[w.stack,N.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),f=u[0],g=u[1];if(f&&g){var T=f.split(`
|
|
4
4
|
`),O=g.split(`
|
|
5
5
|
`);for(s=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;if(l===T.length||s===O.length)for(l=T.length-1,s=O.length-1;1<=l&&0<=s&&T[l]!==O[s];)s--;for(;1<=l&&0<=s;l--,s--)if(T[l]!==O[s]){if(l!==1||s!==1)do if(l--,s--,0>s||T[l]!==O[s]){var B=`
|
|
6
|
-
`+T[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=s);break}}}finally{jl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?
|
|
6
|
+
`+T[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=s);break}}}finally{jl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ve(n):""}function Hi(t,e){switch(t.tag){case 26:case 27:case 5:return Ve(t.type);case 16:return Ve("Lazy");case 13:return t.child!==e&&e!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return Na(t.type,!1);case 11:return Na(t.type.render,!1);case 1:return Na(t.type,!0);case 31:return Ve("Activity");default:return""}}function nn(t){try{var e="",n=null;do e+=Hi(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
|
-
`+l.stack}}var aa=Object.prototype.hasOwnProperty,He=a.unstable_scheduleCallback,Ml=a.unstable_cancelCallback,qi=a.unstable_shouldYield,Eo=a.unstable_requestPaint,ne=a.unstable_now,At=a.unstable_getCurrentPriorityLevel,Ft=a.unstable_ImmediatePriority,Ve=a.unstable_UserBlockingPriority,za=a.unstable_NormalPriority,uv=a.unstable_LowPriority,Rr=a.unstable_IdlePriority,cv=a.log,rv=a.unstable_setDisableYieldValue,Cl=null,pe=null;function En(t){if(typeof cv=="function"&&rv(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(Cl,t)}catch{}}var ve=Math.clz32?Math.clz32:hv,fv=Math.log,dv=Math.LN2;function hv(t){return t>>>=0,t===0?32:31-(fv(t)/dv|0)|0}var Qi=256,Yi=262144,Gi=4194304;function la(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Xi(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var s=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var g=l&134217727;return g!==0?(l=g&~u,l!==0?s=la(l):(f&=g,f!==0?s=la(f):n||(n=g&~t,n!==0&&(s=la(n))))):(g=l&~u,g!==0?s=la(g):f!==0?s=la(f):n||(n=l&~t,n!==0&&(s=la(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function Al(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function mv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Er(){var t=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),t}function jo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ol(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function pv(t,e,n,l,s,u){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var g=t.entanglements,T=t.expirationTimes,O=t.hiddenUpdates;for(n=f&~n;0<n;){var B=31-ve(n),Y=1<<B;g[B]=0,T[B]=-1;var N=O[B];if(N!==null)for(O[B]=null,B=0;B<N.length;B++){var w=N[B];w!==null&&(w.lane&=-536870913)}n&=~Y}l!==0&&jr(t,l,0),u!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function jr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ve(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Mr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-ve(n),s=1<<l;s&e|t[l]&e&&(t[l]|=e),n&=~s}}function Cr(t,e){var n=e&-e;return n=(n&42)!==0?1:Mo(n),(n&(t.suspendedLanes|e))!==0?0:n}function Mo(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Co(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ar(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:pm(t.type))}function Or(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var jn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+jn,se="__reactProps$"+jn,Da="__reactContainer$"+jn,Ao="__reactEvents$"+jn,vv="__reactListeners$"+jn,yv="__reactHandles$"+jn,Nr="__reactResources$"+jn,Nl="__reactMarker$"+jn;function Oo(t){delete t[Pt],delete t[se],delete t[Ao],delete t[vv],delete t[yv]}function wa(t){var e=t[Pt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Da]||n[Pt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ih(t);t!==null;){if(n=t[Pt])return n;t=Ih(t)}return e}t=n,n=t.parentNode}return null}function La(t){if(t=t[Pt]||t[Da]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function zl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Ua(t){var e=t[Nr];return e||(e=t[Nr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Nl]=!0}var zr=new Set,Dr={};function ia(t,e){Ba(t,e),Ba(t+"Capture",e)}function Ba(t,e){for(Dr[t]=e,t=0;t<e.length;t++)zr.add(e[t])}var gv=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]*$"),wr={},Lr={};function xv(t){return aa.call(Lr,t)?!0:aa.call(wr,t)?!1:gv.test(t)?Lr[t]=!0:(wr[t]=!0,!1)}function Vi(t,e,n){if(xv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ki(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function an(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ur(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function bv(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function No(t){if(!t._valueTracker){var e=Ur(t)?"checked":"value";t._valueTracker=bv(t,e,""+t[e])}}function Br(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Ur(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Zi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Sv=/[\n"\\]/g;function Ce(t){return t.replace(Sv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function zo(t,e,n,l,s,u,f,g){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Do(t,f,Me(e)):n!=null?Do(t,f,Me(n)):l!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Me(g):t.removeAttribute("name")}function Hr(t,e,n,l,s,u,f,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){No(t);return}n=n!=null?""+Me(n):"",e=e!=null?""+Me(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=g?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),No(t)}function Do(t,e,n){e==="number"&&Zi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ha(t,e,n,l){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Me(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,l&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function qr(t,e,n){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Me(n):""}function Qr(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(Ht(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Me(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),No(t)}function qa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var _v=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 Yr(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||_v.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Gr(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var s in e)l=e[s],e.hasOwnProperty(s)&&n[s]!==l&&Yr(t,s,l)}else for(var u in e)e.hasOwnProperty(u)&&Yr(t,u,e[u])}function wo(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Tv=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"]]),Rv=/^[\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 ki(t){return Rv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ln(){}var Lo=null;function Uo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Qa=null,Ya=null;function Xr(t){var e=La(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(zo(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var s=l[se]||null;if(!s)throw Error(c(90));zo(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Br(l)}break t;case"textarea":qr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ha(t,!!n.multiple,e,!1)}}}var Bo=!1;function Vr(t,e,n){if(Bo)return t(e,n);Bo=!0;try{var l=t(e);return l}finally{if(Bo=!1,(Qa!==null||Ya!==null)&&(ws(),Qa&&(e=Qa,t=Ya,Ya=Qa=null,Xr(e),t)))for(e=0;e<t.length;e++)Xr(t[e])}}function Dl(t,e){var n=t.stateNode;if(n===null)return null;var l=n[se]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(c(231,e,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ho=!1;if(sn)try{var wl={};Object.defineProperty(wl,"passive",{get:function(){Ho=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{Ho=!1}var Mn=null,qo=null,Ji=null;function Kr(){if(Ji)return Ji;var t,e=qo,n=e.length,l,s="value"in Mn?Mn.value:Mn.textContent,u=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===s[u-l];l++);return Ji=s.slice(t,1<l?1-l:void 0)}function Fi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Pi(){return!0}function Zr(){return!1}function oe(t){function e(n,l,s,u,f){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Pi:Zr,this.isPropagationStopped=Zr,this}return y(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pi)},persist:function(){},isPersistent:Pi}),e}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$i=oe(sa),Ll=y({},sa,{view:0,detail:0}),Ev=oe(Ll),Qo,Yo,Ul,Wi=y({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xo,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ul&&(Ul&&t.type==="mousemove"?(Qo=t.screenX-Ul.screenX,Yo=t.screenY-Ul.screenY):Yo=Qo=0,Ul=t),Qo)},movementY:function(t){return"movementY"in t?t.movementY:Yo}}),kr=oe(Wi),jv=y({},Wi,{dataTransfer:0}),Mv=oe(jv),Cv=y({},Ll,{relatedTarget:0}),Go=oe(Cv),Av=y({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),Ov=oe(Av),Nv=y({},sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),zv=oe(Nv),Dv=y({},sa,{data:0}),Jr=oe(Dv),wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lv={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"},Uv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Uv[t])?!!e[t]:!1}function Xo(){return Bv}var Hv=y({},Ll,{key:function(t){if(t.key){var e=wv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Fi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xo,charCode:function(t){return t.type==="keypress"?Fi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qv=oe(Hv),Qv=y({},Wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fr=oe(Qv),Yv=y({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xo}),Gv=oe(Yv),Xv=y({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vv=oe(Xv),Kv=y({},Wi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Zv=oe(Kv),kv=y({},sa,{newState:0,oldState:0}),Jv=oe(kv),Fv=[9,13,27,32],Vo=sn&&"CompositionEvent"in window,Bl=null;sn&&"documentMode"in document&&(Bl=document.documentMode);var Pv=sn&&"TextEvent"in window&&!Bl,Pr=sn&&(!Vo||Bl&&8<Bl&&11>=Bl),$r=" ",Wr=!1;function Ir(t,e){switch(t){case"keyup":return Fv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ga=!1;function $v(t,e){switch(t){case"compositionend":return tf(e);case"keypress":return e.which!==32?null:(Wr=!0,$r);case"textInput":return t=e.data,t===$r&&Wr?null:t;default:return null}}function Wv(t,e){if(Ga)return t==="compositionend"||!Vo&&Ir(t,e)?(t=Kr(),Ji=qo=Mn=null,Ga=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Pr&&e.locale!=="ko"?null:e.data;default:return null}}var Iv={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 ef(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Iv[t.type]:e==="textarea"}function nf(t,e,n,l){Qa?Ya?Ya.push(l):Ya=[l]:Qa=l,e=Ys(e,"onChange"),0<e.length&&(n=new $i("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Hl=null,ql=null;function ty(t){qh(t,0)}function Ii(t){var e=zl(t);if(Br(e))return t}function af(t,e){if(t==="change")return e}var lf=!1;if(sn){var Ko;if(sn){var Zo="oninput"in document;if(!Zo){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),Zo=typeof sf.oninput=="function"}Ko=Zo}else Ko=!1;lf=Ko&&(!document.documentMode||9<document.documentMode)}function of(){Hl&&(Hl.detachEvent("onpropertychange",uf),ql=Hl=null)}function uf(t){if(t.propertyName==="value"&&Ii(ql)){var e=[];nf(e,ql,t,Uo(t)),Vr(ty,e)}}function ey(t,e,n){t==="focusin"?(of(),Hl=e,ql=n,Hl.attachEvent("onpropertychange",uf)):t==="focusout"&&of()}function ny(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ii(ql)}function ay(t,e){if(t==="click")return Ii(e)}function ly(t,e){if(t==="input"||t==="change")return Ii(e)}function iy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ye=typeof Object.is=="function"?Object.is:iy;function Ql(t,e){if(ye(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!aa.call(e,s)||!ye(t[s],e[s]))return!1}return!0}function cf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function rf(t,e){var n=cf(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=cf(n)}}function ff(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ff(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function df(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Zi(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Zi(t.document)}return e}function ko(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var sy=sn&&"documentMode"in document&&11>=document.documentMode,Xa=null,Jo=null,Yl=null,Fo=!1;function hf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fo||Xa==null||Xa!==Zi(l)||(l=Xa,"selectionStart"in l&&ko(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Yl&&Ql(Yl,l)||(Yl=l,l=Ys(Jo,"onSelect"),0<l.length&&(e=new $i("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Xa)))}function oa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Va={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},Po={},mf={};sn&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function ua(t){if(Po[t])return Po[t];if(!Va[t])return t;var e=Va[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in mf)return Po[t]=e[n];return t}var pf=ua("animationend"),vf=ua("animationiteration"),yf=ua("animationstart"),oy=ua("transitionrun"),uy=ua("transitionstart"),cy=ua("transitioncancel"),gf=ua("transitionend"),xf=new Map,$o="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(" ");$o.push("scrollEnd");function qe(t,e){xf.set(t,e),ia(e,[t])}var ts=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],Ka=0,Wo=0;function es(){for(var t=Ka,e=Wo=Ka=0;e<t;){var n=Ae[e];Ae[e++]=null;var l=Ae[e];Ae[e++]=null;var s=Ae[e];Ae[e++]=null;var u=Ae[e];if(Ae[e++]=null,l!==null&&s!==null){var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}u!==0&&bf(n,s,u)}}function ns(t,e,n,l){Ae[Ka++]=t,Ae[Ka++]=e,Ae[Ka++]=n,Ae[Ka++]=l,Wo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Io(t,e,n,l){return ns(t,e,n,l),as(t)}function ca(t,e){return ns(t,null,null,e),as(t)}function bf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var s=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(s=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,s&&e!==null&&(s=31-ve(n),t=u.hiddenUpdates,l=t[s],l===null?t[s]=[e]:l.push(e),e.lane=n|536870912),u):null}function as(t){if(50<ci)throw ci=0,uc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Za={};function ry(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ge(t,e,n,l){return new ry(t,e,n,l)}function tu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function on(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Sf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ls(t,e,n,l,s,u){var f=0;if(l=t,typeof t=="function")tu(t)&&(f=1);else if(typeof t=="string")f=pg(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case J:return t=ge(31,n,e,s),t.elementType=J,t.lanes=u,t;case C:return ra(n.children,s,u,e);case D:f=8,s|=24;break;case L:return t=ge(12,n,e,s|2),t.elementType=L,t.lanes=u,t;case $:return t=ge(13,n,e,s),t.elementType=$,t.lanes=u,t;case F:return t=ge(19,n,e,s),t.elementType=F,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case z:f=9;break t;case G:f=11;break t;case H:f=14;break t;case V:f=16,l=null;break t}f=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=ge(f,n,e,s),e.elementType=t,e.type=l,e.lanes=u,e}function ra(t,e,n,l){return t=ge(7,t,l,e),t.lanes=n,t}function eu(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function _f(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function nu(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Tf=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var n=Tf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:nn(e)},Tf.set(t,e),e)}return{value:t,source:e,stack:nn(e)}}var ka=[],Ja=0,is=null,Gl=0,Ne=[],ze=0,Cn=null,Ke=1,Ze="";function un(t,e){ka[Ja++]=Gl,ka[Ja++]=is,is=t,Gl=e}function Rf(t,e,n){Ne[ze++]=Ke,Ne[ze++]=Ze,Ne[ze++]=Cn,Cn=t;var l=Ke;t=Ze;var s=32-ve(l)-1;l&=~(1<<s),n+=1;var u=32-ve(e)+s;if(30<u){var f=s-s%5;u=(l&(1<<f)-1).toString(32),l>>=f,s-=f,Ke=1<<32-ve(e)+s|n<<s|l,Ze=u+t}else Ke=1<<u|n<<s|l,Ze=t}function au(t){t.return!==null&&(un(t,1),Rf(t,1,0))}function lu(t){for(;t===is;)is=ka[--Ja],ka[Ja]=null,Gl=ka[--Ja],ka[Ja]=null;for(;t===Cn;)Cn=Ne[--ze],Ne[ze]=null,Ze=Ne[--ze],Ne[ze]=null,Ke=Ne[--ze],Ne[ze]=null}function Ef(t,e){Ne[ze++]=Ke,Ne[ze++]=Ze,Ne[ze++]=Cn,Ke=e.id,Ze=e.overflow,Cn=t}var $t=null,Ot=null,pt=!1,An=null,De=!1,iu=Error(c(519));function On(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xl(Oe(e,t)),iu}function jf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Pt]=t,e[se]=l,n){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(n=0;n<fi.length;n++)dt(fi[n],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Hr(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Qr(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||Xh(e.textContent,n)?(l.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),l.onScroll!=null&&dt("scroll",e),l.onScrollEnd!=null&&dt("scrollend",e),l.onClick!=null&&(e.onclick=ln),e=!0):e=!1,e||On(t,!0)}function Mf(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:$t=$t.return}}function Fa(t){if(t!==$t)return!1;if(!pt)return Mf(t),pt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Tc(t.type,t.memoizedProps)),n=!n),n&&Ot&&On(t),Mf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ot=Wh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ot=Wh(t)}else e===27?(e=Ot,Vn(t.type)?(t=Cc,Cc=null,Ot=t):Ot=e):Ot=$t?Le(t.stateNode.nextSibling):null;return!0}function fa(){Ot=$t=null,pt=!1}function su(){var t=An;return t!==null&&(fe===null?fe=t:fe.push.apply(fe,t),An=null),t}function Xl(t){An===null?An=[t]:An.push(t)}var ou=E(null),da=null,cn=null;function Nn(t,e,n){Z(ou,e._currentValue),e._currentValue=n}function rn(t){t._currentValue=ou.current,Q(ou)}function uu(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function cu(t,e,n,l){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){var f=s.child;u=u.firstContext;t:for(;u!==null;){var g=u;u=s;for(var T=0;T<e.length;T++)if(g.context===e[T]){u.lanes|=n,g=u.alternate,g!==null&&(g.lanes|=n),uu(u.return,n,t),l||(f=null);break t}u=g.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(c(341));f.lanes|=n,u=f.alternate,u!==null&&(u.lanes|=n),uu(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function Pa(t,e,n,l){t=null;for(var s=e,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var g=s.type;ye(s.pendingProps.value,f.value)||(t!==null?t.push(g):t=[g])}}else if(s===vt.current){if(f=s.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(vi):t=[vi])}s=s.return}t!==null&&cu(e,t,n,l),e.flags|=262144}function ss(t){for(t=t.firstContext;t!==null;){if(!ye(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){da=t,cn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return Cf(da,t)}function os(t,e){return da===null&&ha(t),Cf(t,e)}function Cf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},cn===null){if(t===null)throw Error(c(308));cn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else cn=cn.next=e;return n}var fy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},dy=a.unstable_scheduleCallback,hy=a.unstable_NormalPriority,Gt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ru(){return{controller:new fy,data:new Map,refCount:0}}function Vl(t){t.refCount--,t.refCount===0&&dy(hy,function(){t.controller.abort()})}var Kl=null,fu=0,$a=0,Wa=null;function my(t,e){if(Kl===null){var n=Kl=[];fu=0,$a=mc(),Wa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return fu++,e.then(Af,Af),e}function Af(){if(--fu===0&&Kl!==null){Wa!==null&&(Wa.status="fulfilled");var t=Kl;Kl=null,$a=0,Wa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function py(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var Of=U.S;U.S=function(t,e){hh=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&my(t,e),Of!==null&&Of(t,e)};var ma=E(null);function du(){var t=ma.current;return t!==null?t:Ct.pooledCache}function us(t,e){e===null?Z(ma,ma.current):Z(ma,e.pool)}function Nf(){var t=du();return t===null?null:{parent:Gt._currentValue,pool:t}}var Ia=Error(c(460)),hu=Error(c(474)),cs=Error(c(542)),rs={then:function(){}};function zf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Df(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ln,ln),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lf(t),t;default:if(typeof e.status=="string")e.then(ln,ln);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=l}},function(l){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lf(t),t}throw va=e,Ia}}function pa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(va=n,Ia):n}}var va=null;function wf(){if(va===null)throw Error(c(459));var t=va;return va=null,t}function Lf(t){if(t===Ia||t===cs)throw Error(c(483))}var tl=null,Zl=0;function fs(t){var e=Zl;return Zl+=1,tl===null&&(tl=[]),Df(tl,t,e)}function kl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ds(t,e){throw e.$$typeof===S?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Uf(t){function e(M,R){if(t){var A=M.deletions;A===null?(M.deletions=[R],M.flags|=16):A.push(R)}}function n(M,R){if(!t)return null;for(;R!==null;)e(M,R),R=R.sibling;return null}function l(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function s(M,R){return M=on(M,R),M.index=0,M.sibling=null,M}function u(M,R,A){return M.index=A,t?(A=M.alternate,A!==null?(A=A.index,A<R?(M.flags|=67108866,R):A):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function f(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function g(M,R,A,q){return R===null||R.tag!==6?(R=eu(A,M.mode,q),R.return=M,R):(R=s(R,A),R.return=M,R)}function T(M,R,A,q){var nt=A.type;return nt===C?B(M,R,A.props.children,q,A.key):R!==null&&(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===V&&pa(nt)===R.type)?(R=s(R,A.props),kl(R,A),R.return=M,R):(R=ls(A.type,A.key,A.props,null,M.mode,q),kl(R,A),R.return=M,R)}function O(M,R,A,q){return R===null||R.tag!==4||R.stateNode.containerInfo!==A.containerInfo||R.stateNode.implementation!==A.implementation?(R=nu(A,M.mode,q),R.return=M,R):(R=s(R,A.children||[]),R.return=M,R)}function B(M,R,A,q,nt){return R===null||R.tag!==7?(R=ra(A,M.mode,q,nt),R.return=M,R):(R=s(R,A),R.return=M,R)}function Y(M,R,A){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=eu(""+R,M.mode,A),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return A=ls(R.type,R.key,R.props,null,M.mode,A),kl(A,R),A.return=M,A;case j:return R=nu(R,M.mode,A),R.return=M,R;case V:return R=pa(R),Y(M,R,A)}if(Ht(R)||et(R))return R=ra(R,M.mode,A,null),R.return=M,R;if(typeof R.then=="function")return Y(M,fs(R),A);if(R.$$typeof===X)return Y(M,os(M,R),A);ds(M,R)}return null}function N(M,R,A,q){var nt=R!==null?R.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:g(M,R,""+A,q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?T(M,R,A,q):null;case j:return A.key===nt?O(M,R,A,q):null;case V:return A=pa(A),N(M,R,A,q)}if(Ht(A)||et(A))return nt!==null?null:B(M,R,A,q,null);if(typeof A.then=="function")return N(M,R,fs(A),q);if(A.$$typeof===X)return N(M,R,os(M,A),q);ds(M,A)}return null}function w(M,R,A,q,nt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return M=M.get(A)||null,g(R,M,""+q,nt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return M=M.get(q.key===null?A:q.key)||null,T(R,M,q,nt);case j:return M=M.get(q.key===null?A:q.key)||null,O(R,M,q,nt);case V:return q=pa(q),w(M,R,A,q,nt)}if(Ht(q)||et(q))return M=M.get(A)||null,B(R,M,q,nt,null);if(typeof q.then=="function")return w(M,R,A,fs(q),nt);if(q.$$typeof===X)return w(M,R,A,os(R,q),nt);ds(R,q)}return null}function W(M,R,A,q){for(var nt=null,yt=null,I=R,ct=R=0,mt=null;I!==null&&ct<A.length;ct++){I.index>ct?(mt=I,I=null):mt=I.sibling;var gt=N(M,I,A[ct],q);if(gt===null){I===null&&(I=mt);break}t&&I&>.alternate===null&&e(M,I),R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt,I=mt}if(ct===A.length)return n(M,I),pt&&un(M,ct),nt;if(I===null){for(;ct<A.length;ct++)I=Y(M,A[ct],q),I!==null&&(R=u(I,R,ct),yt===null?nt=I:yt.sibling=I,yt=I);return pt&&un(M,ct),nt}for(I=l(I);ct<A.length;ct++)mt=w(I,M,ct,A[ct],q),mt!==null&&(t&&mt.alternate!==null&&I.delete(mt.key===null?ct:mt.key),R=u(mt,R,ct),yt===null?nt=mt:yt.sibling=mt,yt=mt);return t&&I.forEach(function(Fn){return e(M,Fn)}),pt&&un(M,ct),nt}function st(M,R,A,q){if(A==null)throw Error(c(151));for(var nt=null,yt=null,I=R,ct=R=0,mt=null,gt=A.next();I!==null&&!gt.done;ct++,gt=A.next()){I.index>ct?(mt=I,I=null):mt=I.sibling;var Fn=N(M,I,gt.value,q);if(Fn===null){I===null&&(I=mt);break}t&&I&&Fn.alternate===null&&e(M,I),R=u(Fn,R,ct),yt===null?nt=Fn:yt.sibling=Fn,yt=Fn,I=mt}if(gt.done)return n(M,I),pt&&un(M,ct),nt;if(I===null){for(;!gt.done;ct++,gt=A.next())gt=Y(M,gt.value,q),gt!==null&&(R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt);return pt&&un(M,ct),nt}for(I=l(I);!gt.done;ct++,gt=A.next())gt=w(I,M,ct,gt.value,q),gt!==null&&(t&>.alternate!==null&&I.delete(gt.key===null?ct:gt.key),R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt);return t&&I.forEach(function(jg){return e(M,jg)}),pt&&un(M,ct),nt}function jt(M,R,A,q){if(typeof A=="object"&&A!==null&&A.type===C&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var nt=A.key;R!==null;){if(R.key===nt){if(nt=A.type,nt===C){if(R.tag===7){n(M,R.sibling),q=s(R,A.props.children),q.return=M,M=q;break t}}else if(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===V&&pa(nt)===R.type){n(M,R.sibling),q=s(R,A.props),kl(q,A),q.return=M,M=q;break t}n(M,R);break}else e(M,R);R=R.sibling}A.type===C?(q=ra(A.props.children,M.mode,q,A.key),q.return=M,M=q):(q=ls(A.type,A.key,A.props,null,M.mode,q),kl(q,A),q.return=M,M=q)}return f(M);case j:t:{for(nt=A.key;R!==null;){if(R.key===nt)if(R.tag===4&&R.stateNode.containerInfo===A.containerInfo&&R.stateNode.implementation===A.implementation){n(M,R.sibling),q=s(R,A.children||[]),q.return=M,M=q;break t}else{n(M,R);break}else e(M,R);R=R.sibling}q=nu(A,M.mode,q),q.return=M,M=q}return f(M);case V:return A=pa(A),jt(M,R,A,q)}if(Ht(A))return W(M,R,A,q);if(et(A)){if(nt=et(A),typeof nt!="function")throw Error(c(150));return A=nt.call(A),st(M,R,A,q)}if(typeof A.then=="function")return jt(M,R,fs(A),q);if(A.$$typeof===X)return jt(M,R,os(M,A),q);ds(M,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,R!==null&&R.tag===6?(n(M,R.sibling),q=s(R,A),q.return=M,M=q):(n(M,R),q=eu(A,M.mode,q),q.return=M,M=q),f(M)):n(M,R)}return function(M,R,A,q){try{Zl=0;var nt=jt(M,R,A,q);return tl=null,nt}catch(I){if(I===Ia||I===cs)throw I;var yt=ge(29,I,null,M.mode);return yt.lanes=q,yt.return=M,yt}}}var ya=Uf(!0),Bf=Uf(!1),zn=!1;function mu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var s=l.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),l.pending=e,e=as(t),bf(t,null,n),e}return ns(t,l,e,n),as(t)}function Jl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Mr(t,n)}}function vu(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var yu=!1;function Fl(){if(yu){var t=Wa;if(t!==null)throw t}}function Pl(t,e,n,l){yu=!1;var s=t.updateQueue;zn=!1;var u=s.firstBaseUpdate,f=s.lastBaseUpdate,g=s.shared.pending;if(g!==null){s.shared.pending=null;var T=g,O=T.next;T.next=null,f===null?u=O:f.next=O,f=T;var B=t.alternate;B!==null&&(B=B.updateQueue,g=B.lastBaseUpdate,g!==f&&(g===null?B.firstBaseUpdate=O:g.next=O,B.lastBaseUpdate=T))}if(u!==null){var Y=s.baseState;f=0,B=O=T=null,g=u;do{var N=g.lane&-536870913,w=N!==g.lane;if(w?(ht&N)===N:(l&N)===N){N!==0&&N===$a&&(yu=!0),B!==null&&(B=B.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var W=t,st=g;N=e;var jt=n;switch(st.tag){case 1:if(W=st.payload,typeof W=="function"){Y=W.call(jt,Y,N);break t}Y=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=st.payload,N=typeof W=="function"?W.call(jt,Y,N):W,N==null)break t;Y=y({},Y,N);break t;case 2:zn=!0}}N=g.callback,N!==null&&(t.flags|=64,w&&(t.flags|=8192),w=s.callbacks,w===null?s.callbacks=[N]:w.push(N))}else w={lane:N,tag:g.tag,payload:g.payload,callback:g.callback,next:null},B===null?(O=B=w,T=Y):B=B.next=w,f|=N;if(g=g.next,g===null){if(g=s.shared.pending,g===null)break;w=g,g=w.next,w.next=null,s.lastBaseUpdate=w,s.shared.pending=null}}while(!0);B===null&&(T=Y),s.baseState=T,s.firstBaseUpdate=O,s.lastBaseUpdate=B,u===null&&(s.shared.lanes=0),qn|=f,t.lanes=f,t.memoizedState=Y}}function Hf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function qf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Hf(n[t],e)}var el=E(null),hs=E(0);function Qf(t,e){t=xn,Z(hs,t),Z(el,e),xn=t|e.baseLanes}function gu(){Z(hs,xn),Z(el,el.current)}function xu(){xn=hs.current,Q(el),Q(hs)}var xe=E(null),we=null;function Ln(t){var e=t.alternate;Z(Qt,Qt.current&1),Z(xe,t),we===null&&(e===null||el.current!==null||e.memoizedState!==null)&&(we=t)}function bu(t){Z(Qt,Qt.current),Z(xe,t),we===null&&(we=t)}function Yf(t){t.tag===22?(Z(Qt,Qt.current),Z(xe,t),we===null&&(we=t)):Un()}function Un(){Z(Qt,Qt.current),Z(xe,xe.current)}function be(t){Q(xe),we===t&&(we=null),Q(Qt)}var Qt=E(0);function ms(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||jc(n)||Mc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fn=0,ut=null,Rt=null,Xt=null,ps=!1,nl=!1,ga=!1,vs=0,$l=0,al=null,vy=0;function Ut(){throw Error(c(321))}function Su(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ye(t[n],e[n]))return!1;return!0}function _u(t,e,n,l,s,u){return fn=u,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Rd:Bu,ga=!1,u=n(l,s),ga=!1,nl&&(u=Xf(e,n,l,s)),Gf(t),u}function Gf(t){U.H=ti;var e=Rt!==null&&Rt.next!==null;if(fn=0,Xt=Rt=ut=null,ps=!1,$l=0,al=null,e)throw Error(c(300));t===null||Vt||(t=t.dependencies,t!==null&&ss(t)&&(Vt=!0))}function Xf(t,e,n,l){ut=t;var s=0;do{if(nl&&(al=null),$l=0,nl=!1,25<=s)throw Error(c(301));if(s+=1,Xt=Rt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=Ed,u=e(n,l)}while(nl);return u}function yy(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Wl(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(ut.flags|=1024),e}function Tu(){var t=vs!==0;return vs=0,t}function Ru(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Eu(t){if(ps){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ps=!1}fn=0,Xt=Rt=ut=null,nl=!1,$l=vs=0,al=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Rt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Xt===null?ut.memoizedState:Xt.next;if(e!==null)Xt=e,Rt=t;else{if(t===null)throw ut.alternate===null?Error(c(467)):Error(c(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function ys(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wl(t){var e=$l;return $l+=1,al===null&&(al=[]),t=Df(al,t,e),e=ut,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Rd:Bu),t}function gs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Wl(t);if(t.$$typeof===X)return Wt(t)}throw Error(c(438,String(t)))}function ju(t){var e=null,n=ut.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ut.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ys(),ut.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=it;return e.index++,n}function dn(t,e){return typeof e=="function"?e(t):e}function xs(t){var e=Yt();return Mu(e,Rt,t)}function Mu(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var s=t.baseQueue,u=l.pending;if(u!==null){if(s!==null){var f=s.next;s.next=u.next,u.next=f}e.baseQueue=s=u,l.pending=null}if(u=t.baseState,s===null)t.memoizedState=u;else{e=s.next;var g=f=null,T=null,O=e,B=!1;do{var Y=O.lane&-536870913;if(Y!==O.lane?(ht&Y)===Y:(fn&Y)===Y){var N=O.revertLane;if(N===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Y===$a&&(B=!0);else if((fn&N)===N){O=O.next,N===$a&&(B=!0);continue}else Y={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(g=T=Y,f=u):T=T.next=Y,ut.lanes|=N,qn|=N;Y=O.action,ga&&n(u,Y),u=O.hasEagerState?O.eagerState:n(u,Y)}else N={lane:Y,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(g=T=N,f=u):T=T.next=N,ut.lanes|=Y,qn|=Y;O=O.next}while(O!==null&&O!==e);if(T===null?f=u:T.next=g,!ye(u,t.memoizedState)&&(Vt=!0,B&&(n=Wa,n!==null)))throw n;t.memoizedState=u,t.baseState=f,t.baseQueue=T,l.lastRenderedState=u}return s===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Cu(t){var e=Yt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,s=n.pending,u=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do u=t(u,f.action),f=f.next;while(f!==s);ye(u,e.memoizedState)||(Vt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function Vf(t,e,n){var l=ut,s=Yt(),u=pt;if(u){if(n===void 0)throw Error(c(407));n=n()}else n=e();var f=!ye((Rt||s).memoizedState,n);if(f&&(s.memoizedState=n,Vt=!0),s=s.queue,Nu(kf.bind(null,l,s,t),[t]),s.getSnapshot!==e||f||Xt!==null&&Xt.memoizedState.tag&1){if(l.flags|=2048,ll(9,{destroy:void 0},Zf.bind(null,l,s,n,e),null),Ct===null)throw Error(c(349));u||(fn&127)!==0||Kf(l,e,n)}return n}function Kf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ut.updateQueue,e===null?(e=ys(),ut.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Zf(t,e,n,l){e.value=n,e.getSnapshot=l,Jf(e)&&Ff(t)}function kf(t,e,n){return n(function(){Jf(e)&&Ff(t)})}function Jf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ye(t,n)}catch{return!0}}function Ff(t){var e=ca(t,2);e!==null&&de(e,t,2)}function Au(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ga){En(!0);try{n()}finally{En(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:t},e}function Pf(t,e,n,l){return t.baseState=n,Mu(t,Rt,typeof l=="function"?l:dn)}function gy(t,e,n,l,s){if(_s(t))throw Error(c(485));if(t=e.action,t!==null){var u={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};U.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,$f(e,u)):(u.next=n.next,e.pending=n.next=u)}}function $f(t,e){var n=e.action,l=e.payload,s=t.state;if(e.isTransition){var u=U.T,f={};U.T=f;try{var g=n(s,l),T=U.S;T!==null&&T(f,g),Wf(t,e,g)}catch(O){Ou(t,e,O)}finally{u!==null&&f.types!==null&&(u.types=f.types),U.T=u}}else try{u=n(s,l),Wf(t,e,u)}catch(O){Ou(t,e,O)}}function Wf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){If(t,e,l)},function(l){return Ou(t,e,l)}):If(t,e,n)}function If(t,e,n){e.status="fulfilled",e.value=n,td(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$f(t,n)))}function Ou(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,td(e),e=e.next;while(e!==l)}t.action=null}function td(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ed(t,e){return e}function nd(t,e){if(pt){var n=Ct.formState;if(n!==null){t:{var l=ut;if(pt){if(Ot){e:{for(var s=Ot,u=De;s.nodeType!==8;){if(!u){s=null;break e}if(s=Le(s.nextSibling),s===null){s=null;break e}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){Ot=Le(s.nextSibling),l=s.data==="F!";break t}}On(l)}l=!1}l&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ed,lastRenderedState:e},n.queue=l,n=Sd.bind(null,ut,l),l.dispatch=n,l=Au(!1),u=Uu.bind(null,ut,!1,l.queue),l=ie(),s={state:e,dispatch:null,action:t,pending:null},l.queue=s,n=gy.bind(null,ut,s,u,n),s.dispatch=n,l.memoizedState=t,[e,n,!1]}function ad(t){var e=Yt();return ld(e,Rt,t)}function ld(t,e,n){if(e=Mu(t,e,ed)[0],t=xs(dn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Wl(e)}catch(f){throw f===Ia?cs:f}else l=e;e=Yt();var s=e.queue,u=s.dispatch;return n!==e.memoizedState&&(ut.flags|=2048,ll(9,{destroy:void 0},xy.bind(null,s,n),null)),[l,u,t]}function xy(t,e){t.action=e}function id(t){var e=Yt(),n=Rt;if(n!==null)return ld(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ll(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ut.updateQueue,e===null&&(e=ys(),ut.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function sd(){return Yt().memoizedState}function bs(t,e,n,l){var s=ie();ut.flags|=t,s.memoizedState=ll(1|e,{destroy:void 0},n,l===void 0?null:l)}function Ss(t,e,n,l){var s=Yt();l=l===void 0?null:l;var u=s.memoizedState.inst;Rt!==null&&l!==null&&Su(l,Rt.memoizedState.deps)?s.memoizedState=ll(e,u,n,l):(ut.flags|=t,s.memoizedState=ll(1|e,u,n,l))}function od(t,e){bs(8390656,8,t,e)}function Nu(t,e){Ss(2048,8,t,e)}function by(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=ys(),ut.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ud(t){var e=Yt().memoizedState;return by({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function cd(t,e){return Ss(4,2,t,e)}function rd(t,e){return Ss(4,4,t,e)}function fd(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function dd(t,e,n){n=n!=null?n.concat([t]):null,Ss(4,4,fd.bind(null,e,t),n)}function zu(){}function hd(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Su(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function md(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Su(e,l[1]))return l[0];if(l=t(),ga){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l}function Du(t,e,n){return n===void 0||(fn&1073741824)!==0&&(ht&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ph(),ut.lanes|=t,qn|=t,n)}function pd(t,e,n,l){return ye(n,e)?n:el.current!==null?(t=Du(t,n,l),ye(t,e)||(Vt=!0),t):(fn&42)===0||(fn&1073741824)!==0&&(ht&261930)===0?(Vt=!0,t.memoizedState=n):(t=ph(),ut.lanes|=t,qn|=t,e)}function vd(t,e,n,l,s){var u=K.p;K.p=u!==0&&8>u?u:8;var f=U.T,g={};U.T=g,Uu(t,!1,e,n);try{var T=s(),O=U.S;if(O!==null&&O(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=py(T,l);Il(t,e,B,Te(t))}else Il(t,e,l,Te(t))}catch(Y){Il(t,e,{then:function(){},status:"rejected",reason:Y},Te())}finally{K.p=u,f!==null&&g.types!==null&&(f.types=g.types),U.T=f}}function Sy(){}function wu(t,e,n,l){if(t.tag!==5)throw Error(c(476));var s=yd(t).queue;vd(t,s,e,lt,n===null?Sy:function(){return gd(t),n(l)})}function yd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:lt,baseState:lt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:lt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function gd(t){var e=yd(t);e.next===null&&(e=t.alternate.memoizedState),Il(t,e.next.queue,{},Te())}function Lu(){return Wt(vi)}function xd(){return Yt().memoizedState}function bd(){return Yt().memoizedState}function _y(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Te();t=Dn(n);var l=wn(e,t,n);l!==null&&(de(l,e,n),Jl(l,e,n)),e={cache:ru()},t.payload=e;return}e=e.return}}function Ty(t,e,n){var l=Te();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_s(t)?_d(e,n):(n=Io(t,e,n,l),n!==null&&(de(n,t,l),Td(n,e,l)))}function Sd(t,e,n){var l=Te();Il(t,e,n,l)}function Il(t,e,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_s(t))_d(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,g=u(f,n);if(s.hasEagerState=!0,s.eagerState=g,ye(g,f))return ns(t,e,s,0),Ct===null&&es(),!1}catch{}if(n=Io(t,e,s,l),n!==null)return de(n,t,l),Td(n,e,l),!0}return!1}function Uu(t,e,n,l){if(l={lane:2,revertLane:mc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_s(t)){if(e)throw Error(c(479))}else e=Io(t,n,l,2),e!==null&&de(e,t,2)}function _s(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function _d(t,e){nl=ps=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Td(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Mr(t,n)}}var ti={readContext:Wt,use:gs,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};ti.useEffectEvent=Ut;var Rd={readContext:Wt,use:gs,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:od,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,bs(4194308,4,fd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return bs(4194308,4,t,e)},useInsertionEffect:function(t,e){bs(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var l=t();if(ga){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ie();if(n!==void 0){var s=n(e);if(ga){En(!0);try{n(e)}finally{En(!1)}}}else s=e;return l.memoizedState=l.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},l.queue=t,t=t.dispatch=Ty.bind(null,ut,t),[l.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=Au(t);var e=t.queue,n=Sd.bind(null,ut,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:zu,useDeferredValue:function(t,e){var n=ie();return Du(n,t,e)},useTransition:function(){var t=Au(!1);return t=vd.bind(null,ut,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ut,s=ie();if(pt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Ct===null)throw Error(c(349));(ht&127)!==0||Kf(l,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,od(kf.bind(null,l,u,t),[t]),l.flags|=2048,ll(9,{destroy:void 0},Zf.bind(null,l,u,n,e),null),n},useId:function(){var t=ie(),e=Ct.identifierPrefix;if(pt){var n=Ze,l=Ke;n=(l&~(1<<32-ve(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=vs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=vy++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Lu,useFormState:nd,useActionState:nd,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Uu.bind(null,ut,!0,n),n.dispatch=e,[t,e]},useMemoCache:ju,useCacheRefresh:function(){return ie().memoizedState=_y.bind(null,ut)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Bu={readContext:Wt,use:gs,useCallback:hd,useContext:Wt,useEffect:Nu,useImperativeHandle:dd,useInsertionEffect:cd,useLayoutEffect:rd,useMemo:md,useReducer:xs,useRef:sd,useState:function(){return xs(dn)},useDebugValue:zu,useDeferredValue:function(t,e){var n=Yt();return pd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=xs(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:Vf,useId:xd,useHostTransitionStatus:Lu,useFormState:ad,useActionState:ad,useOptimistic:function(t,e){var n=Yt();return Pf(n,Rt,t,e)},useMemoCache:ju,useCacheRefresh:bd};Bu.useEffectEvent=ud;var Ed={readContext:Wt,use:gs,useCallback:hd,useContext:Wt,useEffect:Nu,useImperativeHandle:dd,useInsertionEffect:cd,useLayoutEffect:rd,useMemo:md,useReducer:Cu,useRef:sd,useState:function(){return Cu(dn)},useDebugValue:zu,useDeferredValue:function(t,e){var n=Yt();return Rt===null?Du(n,t,e):pd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Cu(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:Vf,useId:xd,useHostTransitionStatus:Lu,useFormState:id,useActionState:id,useOptimistic:function(t,e){var n=Yt();return Rt!==null?Pf(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ju,useCacheRefresh:bd};Ed.useEffectEvent=ud;function Hu(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:y({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var qu={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Te(),s=Dn(l);s.payload=e,n!=null&&(s.callback=n),e=wn(t,s,l),e!==null&&(de(e,t,l),Jl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Te(),s=Dn(l);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=wn(t,s,l),e!==null&&(de(e,t,l),Jl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Te(),l=Dn(n);l.tag=2,e!=null&&(l.callback=e),e=wn(t,l,n),e!==null&&(de(e,t,n),Jl(e,t,n))}};function jd(t,e,n,l,s,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,f):e.prototype&&e.prototype.isPureReactComponent?!Ql(n,l)||!Ql(s,u):!0}function Md(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&qu.enqueueReplaceState(e,e.state,null)}function xa(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=y({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Cd(t){ts(t)}function Ad(t){console.error(t)}function Od(t){ts(t)}function Ts(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Nd(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Qu(t,e,n){return n=Dn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ts(t,e)},n}function zd(t){return t=Dn(t),t.tag=3,t}function Dd(t,e,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=l.value;t.payload=function(){return s(u)},t.callback=function(){Nd(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Nd(e,n,l),typeof s!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function Ry(t,e,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Pa(e,n,s,!0),n=xe.current,n!==null){switch(n.tag){case 31:case 13:return we===null?Ls():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===rs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),fc(t,l,s)),!1;case 22:return n.flags|=65536,l===rs?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),fc(t,l,s)),!1}throw Error(c(435,n.tag))}return fc(t,l,s),Ls(),!1}if(pt)return e=xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,l!==iu&&(t=Error(c(422),{cause:l}),Xl(Oe(t,n)))):(l!==iu&&(e=Error(c(423),{cause:l}),Xl(Oe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,l=Oe(l,n),s=Qu(t.stateNode,l,s),vu(t,s),Bt!==4&&(Bt=2)),!1;var u=Error(c(520),{cause:l});if(u=Oe(u,n),ui===null?ui=[u]:ui.push(u),Bt!==4&&(Bt=2),e===null)return!0;l=Oe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Qu(n.stateNode,l,t),vu(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Qn===null||!Qn.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=zd(s),Dd(s,t,n,l),vu(n,s),!1}n=n.return}while(n!==null);return!1}var Yu=Error(c(461)),Vt=!1;function It(t,e,n,l){e.child=t===null?Bf(e,null,n,l):ya(e,t.child,n,l)}function wd(t,e,n,l,s){n=n.render;var u=e.ref;if("ref"in l){var f={};for(var g in l)g!=="ref"&&(f[g]=l[g])}else f=l;return ha(e),l=_u(t,e,n,f,u,s),g=Tu(),t!==null&&!Vt?(Ru(t,e,s),hn(t,e,s)):(pt&&g&&au(e),e.flags|=1,It(t,e,l,s),e.child)}function Ld(t,e,n,l,s){if(t===null){var u=n.type;return typeof u=="function"&&!tu(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Ud(t,e,u,l,s)):(t=ls(n.type,null,l,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Fu(t,s)){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(f,l)&&t.ref===e.ref)return hn(t,e,s)}return e.flags|=1,t=on(u,l),t.ref=e.ref,t.return=e,e.child=t}function Ud(t,e,n,l,s){if(t!==null){var u=t.memoizedProps;if(Ql(u,l)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=l=u,Fu(t,s))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,hn(t,e,s)}return Gu(t,e,n,l,s)}function Bd(t,e,n,l){var s=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~u}else l=0,e.child=null;return Hd(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&us(e,u!==null?u.cachePool:null),u!==null?Qf(e,u):gu(),Yf(e);else return l=e.lanes=536870912,Hd(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(us(e,u.cachePool),Qf(e,u),Un(),e.memoizedState=null):(t!==null&&us(e,null),gu(),Un());return It(t,e,s,n),e.child}function ei(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Hd(t,e,n,l,s){var u=du();return u=u===null?null:{parent:Gt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&us(e,null),gu(),Yf(e),t!==null&&Pa(t,e,l,!0),e.childLanes=s,null}function Rs(t,e){return e=js({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function qd(t,e,n){return ya(e,t.child,null,n),t=Rs(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function Ey(t,e,n){var l=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(pt){if(l.mode==="hidden")return t=Rs(e,l),e.lanes=536870912,ei(null,t);if(bu(e),(t=Ot)?(t=$h(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Cn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=_f(t),n.return=e,e.child=n,$t=e,Ot=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return Rs(e,l)}var u=t.memoizedState;if(u!==null){var f=u.dehydrated;if(bu(e),s)if(e.flags&256)e.flags&=-257,e=qd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Vt||Pa(t,e,n,!1),s=(n&t.childLanes)!==0,Vt||s){if(l=Ct,l!==null&&(f=Cr(l,n),f!==0&&f!==u.retryLane))throw u.retryLane=f,ca(t,f),de(l,t,f),Yu;Ls(),e=qd(t,e,n)}else t=u.treeContext,Ot=Le(f.nextSibling),$t=e,pt=!0,An=null,De=!1,t!==null&&Ef(e,t),e=Rs(e,l),e.flags|=4096;return e}return t=on(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Es(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Gu(t,e,n,l,s){return ha(e),n=_u(t,e,n,l,void 0,s),l=Tu(),t!==null&&!Vt?(Ru(t,e,s),hn(t,e,s)):(pt&&l&&au(e),e.flags|=1,It(t,e,n,s),e.child)}function Qd(t,e,n,l,s,u){return ha(e),e.updateQueue=null,n=Xf(e,l,n,s),Gf(t),l=Tu(),t!==null&&!Vt?(Ru(t,e,u),hn(t,e,u)):(pt&&l&&au(e),e.flags|=1,It(t,e,n,u),e.child)}function Yd(t,e,n,l,s){if(ha(e),e.stateNode===null){var u=Za,f=n.contextType;typeof f=="object"&&f!==null&&(u=Wt(f)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=qu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},mu(e),f=n.contextType,u.context=typeof f=="object"&&f!==null?Wt(f):Za,u.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Hu(e,n,f,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&qu.enqueueReplaceState(u,u.state,null),Pl(e,l,u,s),Fl(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var g=e.memoizedProps,T=xa(n,g);u.props=T;var O=u.context,B=n.contextType;f=Za,typeof B=="object"&&B!==null&&(f=Wt(B));var Y=n.getDerivedStateFromProps;B=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,B||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||O!==f)&&Md(e,u,l,f),zn=!1;var N=e.memoizedState;u.state=N,Pl(e,l,u,s),Fl(),O=e.memoizedState,g||N!==O||zn?(typeof Y=="function"&&(Hu(e,n,Y,l),O=e.memoizedState),(T=zn||jd(e,n,T,l,N,O,f))?(B||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=O),u.props=l,u.state=O,u.context=f,l=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,pu(t,e),f=e.memoizedProps,B=xa(n,f),u.props=B,Y=e.pendingProps,N=u.context,O=n.contextType,T=Za,typeof O=="object"&&O!==null&&(T=Wt(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==Y||N!==T)&&Md(e,u,l,T),zn=!1,N=e.memoizedState,u.state=N,Pl(e,l,u,s),Fl();var w=e.memoizedState;f!==Y||N!==w||zn||t!==null&&t.dependencies!==null&&ss(t.dependencies)?(typeof g=="function"&&(Hu(e,n,g,l),w=e.memoizedState),(B=zn||jd(e,n,B,l,N,w,T)||t!==null&&t.dependencies!==null&&ss(t.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,w,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,w,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=w),u.props=l,u.state=w,u.context=T,l=B):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,Es(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=ya(e,t.child,null,s),e.child=ya(e,null,n,s)):It(t,e,n,s),e.memoizedState=u.state,t=e.child):t=hn(t,e,s),t}function Gd(t,e,n,l){return fa(),e.flags|=256,It(t,e,n,l),e.child}var Xu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vu(t){return{baseLanes:t,cachePool:Nf()}}function Ku(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=_e),t}function Xd(t,e,n){var l=e.pendingProps,s=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(pt){if(s?Ln(e):Un(),(t=Ot)?(t=$h(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Cn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=_f(t),n.return=e,e.child=n,$t=e,Ot=null)):t=null,t===null)throw On(e);return Mc(t)?e.lanes=32:e.lanes=536870912,null}var g=l.children;return l=l.fallback,s?(Un(),s=e.mode,g=js({mode:"hidden",children:g},s),l=ra(l,s,n,null),g.return=e,l.return=e,g.sibling=l,e.child=g,l=e.child,l.memoizedState=Vu(n),l.childLanes=Ku(t,f,n),e.memoizedState=Xu,ei(null,l)):(Ln(e),Zu(e,g))}var T=t.memoizedState;if(T!==null&&(g=T.dehydrated,g!==null)){if(u)e.flags&256?(Ln(e),e.flags&=-257,e=ku(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),g=l.fallback,s=e.mode,l=js({mode:"visible",children:l.children},s),g=ra(g,s,n,null),g.flags|=2,l.return=e,g.return=e,l.sibling=g,e.child=l,ya(e,t.child,null,n),l=e.child,l.memoizedState=Vu(n),l.childLanes=Ku(t,f,n),e.memoizedState=Xu,e=ei(null,l));else if(Ln(e),Mc(g)){if(f=g.nextSibling&&g.nextSibling.dataset,f)var O=f.dgst;f=O,l=Error(c(419)),l.stack="",l.digest=f,Xl({value:l,source:null,stack:null}),e=ku(t,e,n)}else if(Vt||Pa(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=Ct,f!==null&&(l=Cr(f,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,ca(t,l),de(f,t,l),Yu;jc(g)||Ls(),e=ku(t,e,n)}else jc(g)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ot=Le(g.nextSibling),$t=e,pt=!0,An=null,De=!1,t!==null&&Ef(e,t),e=Zu(e,l.children),e.flags|=4096);return e}return s?(Un(),g=l.fallback,s=e.mode,T=t.child,O=T.sibling,l=on(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,O!==null?g=on(O,g):(g=ra(g,s,n,null),g.flags|=2),g.return=e,l.return=e,l.sibling=g,e.child=l,ei(null,l),l=e.child,g=t.child.memoizedState,g===null?g=Vu(n):(s=g.cachePool,s!==null?(T=Gt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=Nf(),g={baseLanes:g.baseLanes|n,cachePool:s}),l.memoizedState=g,l.childLanes=Ku(t,f,n),e.memoizedState=Xu,ei(t.child,l)):(Ln(e),n=t.child,t=n.sibling,n=on(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Zu(t,e){return e=js({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function js(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function ku(t,e,n){return ya(e,t.child,null,n),t=Zu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Vd(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),uu(t.return,e,n)}function Ju(t,e,n,l,s,u){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:u}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=s,f.treeForkCount=u)}function Kd(t,e,n){var l=e.pendingProps,s=l.revealOrder,u=l.tail;l=l.children;var f=Qt.current,g=(f&2)!==0;if(g?(f=f&1|2,e.flags|=128):f&=1,Z(Qt,f),It(t,e,l,n),l=pt?Gl:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Vd(t,n,e);else if(t.tag===19)Vd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&ms(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Ju(e,!1,s,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&ms(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Ju(e,!0,n,null,u,l);break;case"together":Ju(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function hn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Pa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=on(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=on(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Fu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ss(t)))}function jy(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Nn(e,Gt,t.memoizedState.cache),fa();break;case 27:case 5:tn(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Nn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,bu(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ln(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Xd(t,e,n):(Ln(e),t=hn(t,e,n),t!==null?t.sibling:null);Ln(e);break;case 19:var s=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Pa(t,e,n,!1),l=(n&e.childLanes)!==0),s){if(l)return Kd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(Qt,Qt.current),l)break;return null;case 22:return e.lanes=0,Bd(t,e,n,e.pendingProps);case 24:Nn(e,Gt,t.memoizedState.cache)}return hn(t,e,n)}function Zd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!Fu(t,n)&&(e.flags&128)===0)return Vt=!1,jy(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,pt&&(e.flags&1048576)!==0&&Rf(e,Gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=pa(e.elementType),e.type=t,typeof t=="function")tu(t)?(l=xa(t,l),e.tag=1,e=Yd(null,e,t,l,n)):(e.tag=0,e=Gu(null,e,t,l,n));else{if(t!=null){var s=t.$$typeof;if(s===G){e.tag=11,e=wd(null,e,t,l,n);break t}else if(s===H){e.tag=14,e=Ld(null,e,t,l,n);break t}}throw e=zt(t)||t,Error(c(306,e,""))}}return e;case 0:return Gu(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,s=xa(l,e.pendingProps),Yd(t,e,l,s,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var u=e.memoizedState;s=u.element,pu(t,e),Pl(e,l,null,n);var f=e.memoizedState;if(l=f.cache,Nn(e,Gt,l),l!==u.cache&&cu(e,[Gt],n,!0),Fl(),l=f.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Gd(t,e,l,n);break t}else if(l!==s){s=Oe(Error(c(424)),e),Xl(s),e=Gd(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ot=Le(t.firstChild),$t=e,pt=!0,An=null,De=!0,n=Bf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fa(),l===s){e=hn(t,e,n);break t}It(t,e,l,n)}e=e.child}return e;case 26:return Es(t,e),t===null?(n=am(e.type,null,e.pendingProps,null))?e.memoizedState=n:pt||(n=e.type,t=e.pendingProps,l=Gs(rt.current).createElement(n),l[Pt]=e,l[se]=t,te(l,n,t),kt(l),e.stateNode=l):e.memoizedState=am(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return tn(e),t===null&&pt&&(l=e.stateNode=tm(e.type,e.pendingProps,rt.current),$t=e,De=!0,s=Ot,Vn(e.type)?(Cc=s,Ot=Le(l.firstChild)):Ot=s),It(t,e,e.pendingProps.children,n),Es(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&pt&&((s=l=Ot)&&(l=ng(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,$t=e,Ot=Le(l.firstChild),De=!1,s=!0):s=!1),s||On(e)),tn(e),s=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,l=u.children,Tc(s,u)?l=null:f!==null&&Tc(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=_u(t,e,yy,null,null,n),vi._currentValue=s),Es(t,e),It(t,e,l,n),e.child;case 6:return t===null&&pt&&((t=n=Ot)&&(n=ag(n,e.pendingProps,De),n!==null?(e.stateNode=n,$t=e,Ot=null,t=!0):t=!1),t||On(e)),null;case 13:return Xd(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ya(e,null,l,n):It(t,e,l,n),e.child;case 11:return wd(t,e,e.type,e.pendingProps,n);case 7:return It(t,e,e.pendingProps,n),e.child;case 8:return It(t,e,e.pendingProps.children,n),e.child;case 12:return It(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Nn(e,e.type,l.value),It(t,e,l.children,n),e.child;case 9:return s=e.type._context,l=e.pendingProps.children,ha(e),s=Wt(s),l=l(s),e.flags|=1,It(t,e,l,n),e.child;case 14:return Ld(t,e,e.type,e.pendingProps,n);case 15:return Ud(t,e,e.type,e.pendingProps,n);case 19:return Kd(t,e,n);case 31:return Ey(t,e,n);case 22:return Bd(t,e,n,e.pendingProps);case 24:return ha(e),l=Wt(Gt),t===null?(s=du(),s===null&&(s=Ct,u=ru(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),e.memoizedState={parent:l,cache:s},mu(e),Nn(e,Gt,s)):((t.lanes&n)!==0&&(pu(t,e),Pl(e,null,null,n),Fl()),s=t.memoizedState,u=e.memoizedState,s.parent!==l?(s={parent:l,cache:l},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Nn(e,Gt,l)):(l=u.cache,Nn(e,Gt,l),l!==s.cache&&cu(e,[Gt],n,!0))),It(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function mn(t){t.flags|=4}function Pu(t,e,n,l,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(xh())t.flags|=8192;else throw va=rs,hu}else t.flags&=-16777217}function kd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!um(e))if(xh())t.flags|=8192;else throw va=rs,hu}function Ms(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Er():536870912,t.lanes|=e,ul|=e)}function ni(t,e){if(!pt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Nt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function My(t,e,n){var l=e.pendingProps;switch(lu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),rn(Gt),Mt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Fa(e)?mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,su())),Nt(e),null;case 26:var s=e.type,u=e.memoizedState;return t===null?(mn(e),u!==null?(Nt(e),kd(e,u)):(Nt(e),Pu(e,s,null,l,n))):u?u!==t.memoizedState?(mn(e),Nt(e),kd(e,u)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&mn(e),Nt(e),Pu(e,s,t,l,n)),null;case 27:if(en(e),n=rt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Nt(e),null}t=P.current,Fa(e)?jf(e):(t=tm(s,l,n),e.stateNode=t,mn(e))}return Nt(e),null;case 5:if(en(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Nt(e),null}if(u=P.current,Fa(e))jf(e);else{var f=Gs(rt.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?f.createElement(s,{is:l.is}):f.createElement(s)}}u[Pt]=e,u[se]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(te(u,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&mn(e)}}return Nt(e),Pu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=rt.current,Fa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,s=$t,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Xh(t.nodeValue,n)),t||On(e,!0)}else t=Gs(t).createTextNode(l),t[Pt]=e,e.stateNode=t}return Nt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Fa(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Pt]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else n=su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Nt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Fa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!s)throw Error(c(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(c(317));s[Pt]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),s=!1}else s=su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==s&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ms(e,e.updateQueue),Nt(e),null);case 4:return Mt(),t===null&&gc(e.stateNode.containerInfo),Nt(e),null;case 10:return rn(e.type),Nt(e),null;case 19:if(Q(Qt),l=e.memoizedState,l===null)return Nt(e),null;if(s=(e.flags&128)!==0,u=l.rendering,u===null)if(s)ni(l,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=ms(t),u!==null){for(e.flags|=128,ni(l,!1),t=u.updateQueue,e.updateQueue=t,Ms(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Sf(n,t),n=n.sibling;return Z(Qt,Qt.current&1|2),pt&&un(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ne()>zs&&(e.flags|=128,s=!0,ni(l,!1),e.lanes=4194304)}else{if(!s)if(t=ms(u),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Ms(e,t),ni(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!pt)return Nt(e),null}else 2*ne()-l.renderingStartTime>zs&&n!==536870912&&(e.flags|=128,s=!0,ni(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=Qt.current,Z(Qt,s?n&1|2:n&1),pt&&un(e,l.treeForkCount),t):(Nt(e),null);case 22:case 23:return be(e),xu(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),n=e.updateQueue,n!==null&&Ms(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Q(ma),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),rn(Gt),Nt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Cy(t,e){switch(lu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return rn(Gt),Mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return en(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(c(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Qt),null;case 4:return Mt(),null;case 10:return rn(e.type),null;case 22:case 23:return be(e),xu(),t!==null&&Q(ma),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return rn(Gt),null;case 25:return null;default:return null}}function Jd(t,e){switch(lu(e),e.tag){case 3:rn(Gt),Mt();break;case 26:case 27:case 5:en(e);break;case 4:Mt();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:Q(Qt);break;case 10:rn(e.type);break;case 22:case 23:be(e),xu(),t!==null&&Q(ma);break;case 24:rn(Gt)}}function ai(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&t)===t){l=void 0;var u=n.create,f=n.inst;l=u(),f.destroy=l}n=n.next}while(n!==s)}}catch(g){Tt(e,e.return,g)}}function Bn(t,e,n){try{var l=e.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var u=s.next;l=u;do{if((l.tag&t)===t){var f=l.inst,g=f.destroy;if(g!==void 0){f.destroy=void 0,s=e;var T=n,O=g;try{O()}catch(B){Tt(s,T,B)}}}l=l.next}while(l!==u)}}catch(B){Tt(e,e.return,B)}}function Fd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{qf(e,n)}catch(l){Tt(t,t.return,l)}}}function Pd(t,e,n){n.props=xa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function li(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(s){Tt(t,e,s)}}function ke(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Tt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Tt(t,e,s)}else n.current=null}function $d(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Tt(t,t.return,s)}}function $u(t,e,n){try{var l=t.stateNode;Py(l,t.type,n,e),l[se]=e}catch(s){Tt(t,t.return,s)}}function Wd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Vn(t.type)||t.tag===4}function Wu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Wd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Vn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Iu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ln));else if(l!==4&&(l===27&&Vn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Iu(t,e,n),t=t.sibling;t!==null;)Iu(t,e,n),t=t.sibling}function Cs(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Vn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Cs(t,e,n),t=t.sibling;t!==null;)Cs(t,e,n),t=t.sibling}function Id(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);te(e,l,n),e[Pt]=t,e[se]=n}catch(u){Tt(t,t.return,u)}}var pn=!1,Kt=!1,tc=!1,th=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Ay(t,e){if(t=t.containerInfo,Sc=Fs,t=df(t),ko(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var f=0,g=-1,T=-1,O=0,B=0,Y=t,N=null;e:for(;;){for(var w;Y!==n||s!==0&&Y.nodeType!==3||(g=f+s),Y!==u||l!==0&&Y.nodeType!==3||(T=f+l),Y.nodeType===3&&(f+=Y.nodeValue.length),(w=Y.firstChild)!==null;)N=Y,Y=w;for(;;){if(Y===t)break e;if(N===n&&++O===s&&(g=f),N===u&&++B===l&&(T=f),(w=Y.nextSibling)!==null)break;Y=N,N=Y.parentNode}Y=w}n=g===-1||T===-1?null:{start:g,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(_c={focusedElem:t,selectionRange:n},Fs=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,s=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var W=xa(n.type,s);t=l.getSnapshotBeforeUpdate(W,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Tt(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Ec(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ec(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,Jt=t;break}Jt=e.return}}function eh(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:yn(t,n),l&4&&ai(5,n);break;case 1:if(yn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var s=xa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}l&64&&Fd(n),l&512&&li(n,n.return);break;case 3:if(yn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{qf(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&l&4&&Id(n);case 26:case 5:yn(t,n),e===null&&l&4&&$d(n),l&512&&li(n,n.return);break;case 12:yn(t,n);break;case 31:yn(t,n),l&4&&lh(t,n);break;case 13:yn(t,n),l&4&&ih(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Hy.bind(null,n),lg(t,n))));break;case 22:if(l=n.memoizedState!==null||pn,!l){e=e!==null&&e.memoizedState!==null||Kt,s=pn;var u=Kt;pn=l,(Kt=e)&&!u?gn(t,n,(n.subtreeFlags&8772)!==0):yn(t,n),pn=s,Kt=u}break;case 30:break;default:yn(t,n)}}function nh(t){var e=t.alternate;e!==null&&(t.alternate=null,nh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Oo(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Dt=null,ue=!1;function vn(t,e,n){for(n=n.child;n!==null;)ah(t,e,n),n=n.sibling}function ah(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 26:Kt||ke(n,e),vn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||ke(n,e);var l=Dt,s=ue;Vn(n.type)&&(Dt=n.stateNode,ue=!1),vn(t,e,n),hi(n.stateNode),Dt=l,ue=s;break;case 5:Kt||ke(n,e);case 6:if(l=Dt,s=ue,Dt=null,vn(t,e,n),Dt=l,ue=s,Dt!==null)if(ue)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(n.stateNode)}catch(u){Tt(n,e,u)}else try{Dt.removeChild(n.stateNode)}catch(u){Tt(n,e,u)}break;case 18:Dt!==null&&(ue?(t=Dt,Fh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),vl(t)):Fh(Dt,n.stateNode));break;case 4:l=Dt,s=ue,Dt=n.stateNode.containerInfo,ue=!0,vn(t,e,n),Dt=l,ue=s;break;case 0:case 11:case 14:case 15:Bn(2,n,e),Kt||Bn(4,n,e),vn(t,e,n);break;case 1:Kt||(ke(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Pd(n,e,l)),vn(t,e,n);break;case 21:vn(t,e,n);break;case 22:Kt=(l=Kt)||n.memoizedState!==null,vn(t,e,n),Kt=l;break;default:vn(t,e,n)}}function lh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vl(t)}catch(n){Tt(e,e.return,n)}}}function ih(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vl(t)}catch(n){Tt(e,e.return,n)}}function Oy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new th),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new th),e;default:throw Error(c(435,t.tag))}}function As(t,e){var n=Oy(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var s=qy.bind(null,t,l);l.then(s,s)}})}function ce(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],u=t,f=e,g=f;t:for(;g!==null;){switch(g.tag){case 27:if(Vn(g.type)){Dt=g.stateNode,ue=!1;break t}break;case 5:Dt=g.stateNode,ue=!1;break t;case 3:case 4:Dt=g.stateNode.containerInfo,ue=!0;break t}g=g.return}if(Dt===null)throw Error(c(160));ah(u,f,s),Dt=null,ue=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)sh(e,t),e=e.sibling}var Qe=null;function sh(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ce(e,t),re(t),l&4&&(Bn(3,t,t.return),ai(3,t),Bn(5,t,t.return));break;case 1:ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&64&&pn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=Qe;if(ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(l){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Nl]||u[Pt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(l),s.head.insertBefore(u,s.querySelector("head > title"))),te(u,l,n),u[Pt]=t,kt(u),l=u;break t;case"link":var f=sm("link","href",s).get(l+(n.href||""));if(f){for(var g=0;g<f.length;g++)if(u=f[g],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(g,1);break e}}u=s.createElement(l),te(u,l,n),s.head.appendChild(u);break;case"meta":if(f=sm("meta","content",s).get(l+(n.content||""))){for(g=0;g<f.length;g++)if(u=f[g],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(g,1);break e}}u=s.createElement(l),te(u,l,n),s.head.appendChild(u);break;default:throw Error(c(468,l))}u[Pt]=t,kt(u),l=u}t.stateNode=l}else om(s,t.type,t.stateNode);else t.stateNode=im(s,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?om(s,t.type,t.stateNode):im(s,l,t.memoizedProps)):l===null&&t.stateNode!==null&&$u(t,t.memoizedProps,n.memoizedProps)}break;case 27:ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),n!==null&&l&4&&$u(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),t.flags&32){s=t.stateNode;try{qa(s,"")}catch(W){Tt(t,t.return,W)}}l&4&&t.stateNode!=null&&(s=t.memoizedProps,$u(t,s,n!==null?n.memoizedProps:s)),l&1024&&(tc=!0);break;case 6:if(ce(e,t),re(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(W){Tt(t,t.return,W)}}break;case 3:if(Ks=null,s=Qe,Qe=Xs(e.containerInfo),ce(e,t),Qe=s,re(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{vl(e.containerInfo)}catch(W){Tt(t,t.return,W)}tc&&(tc=!1,oh(t));break;case 4:l=Qe,Qe=Xs(t.stateNode.containerInfo),ce(e,t),re(t),Qe=l;break;case 12:ce(e,t),re(t);break;case 31:ce(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,As(t,l)));break;case 13:ce(e,t),re(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ns=ne()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,As(t,l)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,O=pn,B=Kt;if(pn=O||s,Kt=B||T,ce(e,t),Kt=B,pn=O,re(t),l&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||pn||Kt||ba(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,s)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{g=T.stateNode;var Y=T.memoizedProps.style,N=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;g.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(W){Tt(T,T.return,W)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(W){Tt(T,T.return,W)}}}else if(e.tag===18){if(n===null){T=e;try{var w=T.stateNode;s?Ph(w,!0):Ph(T.stateNode,!1)}catch(W){Tt(T,T.return,W)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,As(t,n))));break;case 19:ce(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,As(t,l)));break;case 30:break;case 21:break;default:ce(e,t),re(t)}}function re(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Wd(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var s=n.stateNode,u=Wu(t);Cs(t,u,s);break;case 5:var f=n.stateNode;n.flags&32&&(qa(f,""),n.flags&=-33);var g=Wu(t);Cs(t,g,f);break;case 3:case 4:var T=n.stateNode.containerInfo,O=Wu(t);Iu(t,O,T);break;default:throw Error(c(161))}}catch(B){Tt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function oh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;oh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function yn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)eh(t,e.alternate,e),e=e.sibling}function ba(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Bn(4,e,e.return),ba(e);break;case 1:ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Pd(e,e.return,n),ba(e);break;case 27:hi(e.stateNode);case 26:case 5:ke(e,e.return),ba(e);break;case 22:e.memoizedState===null&&ba(e);break;case 30:ba(e);break;default:ba(e)}t=t.sibling}}function gn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,s=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:gn(s,u,n),ai(4,u);break;case 1:if(gn(s,u,n),l=u,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(O){Tt(l,l.return,O)}if(l=u,s=l.updateQueue,s!==null){var g=l.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)Hf(T[s],g)}catch(O){Tt(l,l.return,O)}}n&&f&64&&Fd(u),li(u,u.return);break;case 27:Id(u);case 26:case 5:gn(s,u,n),n&&l===null&&f&4&&$d(u),li(u,u.return);break;case 12:gn(s,u,n);break;case 31:gn(s,u,n),n&&f&4&&lh(s,u);break;case 13:gn(s,u,n),n&&f&4&&ih(s,u);break;case 22:u.memoizedState===null&&gn(s,u,n),li(u,u.return);break;case 30:break;default:gn(s,u,n)}e=e.sibling}}function ec(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Vl(n))}function nc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vl(t))}function Ye(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)uh(t,e,n,l),e=e.sibling}function uh(t,e,n,l){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,n,l),s&2048&&ai(9,e);break;case 1:Ye(t,e,n,l);break;case 3:Ye(t,e,n,l),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vl(t)));break;case 12:if(s&2048){Ye(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,g=u.onPostCommit;typeof g=="function"&&g(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Tt(e,e.return,T)}}else Ye(t,e,n,l);break;case 31:Ye(t,e,n,l);break;case 13:Ye(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?Ye(t,e,n,l):ii(t,e):u._visibility&2?Ye(t,e,n,l):(u._visibility|=2,il(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),s&2048&&ec(f,e);break;case 24:Ye(t,e,n,l),s&2048&&nc(e.alternate,e);break;default:Ye(t,e,n,l)}}function il(t,e,n,l,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,f=e,g=n,T=l,O=f.flags;switch(f.tag){case 0:case 11:case 15:il(u,f,g,T,s),ai(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?il(u,f,g,T,s):ii(u,f):(B._visibility|=2,il(u,f,g,T,s)),s&&O&2048&&ec(f.alternate,f);break;case 24:il(u,f,g,T,s),s&&O&2048&&nc(f.alternate,f);break;default:il(u,f,g,T,s)}e=e.sibling}}function ii(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,s=l.flags;switch(l.tag){case 22:ii(n,l),s&2048&&ec(l.alternate,l);break;case 24:ii(n,l),s&2048&&nc(l.alternate,l);break;default:ii(n,l)}e=e.sibling}}var si=8192;function sl(t,e,n){if(t.subtreeFlags&si)for(t=t.child;t!==null;)ch(t,e,n),t=t.sibling}function ch(t,e,n){switch(t.tag){case 26:sl(t,e,n),t.flags&si&&t.memoizedState!==null&&vg(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:sl(t,e,n);break;case 3:case 4:var l=Qe;Qe=Xs(t.stateNode.containerInfo),sl(t,e,n),Qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=si,si=16777216,sl(t,e,n),si=l):sl(t,e,n));break;default:sl(t,e,n)}}function rh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function oi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Jt=l,dh(l,t)}rh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fh(t),t=t.sibling}function fh(t){switch(t.tag){case 0:case 11:case 15:oi(t),t.flags&2048&&Bn(9,t,t.return);break;case 3:oi(t);break;case 12:oi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Os(t)):oi(t);break;default:oi(t)}}function Os(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Jt=l,dh(l,t)}rh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Bn(8,e,e.return),Os(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Os(e));break;default:Os(e)}t=t.sibling}}function dh(t,e){for(;Jt!==null;){var n=Jt;switch(n.tag){case 0:case 11:case 15:Bn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Vl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Jt=l;else t:for(n=t;Jt!==null;){l=Jt;var s=l.sibling,u=l.return;if(nh(l),l===n){Jt=null;break t}if(s!==null){s.return=u,Jt=s;break t}Jt=u}}}var Ny={getCacheForType:function(t){var e=Wt(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Wt(Gt).controller.signal}},zy=typeof WeakMap=="function"?WeakMap:Map,bt=0,Ct=null,ft=null,ht=0,_t=0,Se=null,Hn=!1,ol=!1,ac=!1,xn=0,Bt=0,qn=0,Sa=0,lc=0,_e=0,ul=0,ui=null,fe=null,ic=!1,Ns=0,hh=0,zs=1/0,Ds=null,Qn=null,Zt=0,Yn=null,cl=null,bn=0,sc=0,oc=null,mh=null,ci=0,uc=null;function Te(){return(bt&2)!==0&&ht!==0?ht&-ht:U.T!==null?mc():Ar()}function ph(){if(_e===0)if((ht&536870912)===0||pt){var t=Yi;Yi<<=1,(Yi&3932160)===0&&(Yi=262144),_e=t}else _e=536870912;return t=xe.current,t!==null&&(t.flags|=32),_e}function de(t,e,n){(t===Ct&&(_t===2||_t===9)||t.cancelPendingCommit!==null)&&(rl(t,0),Gn(t,ht,_e,!1)),Ol(t,n),((bt&2)===0||t!==Ct)&&(t===Ct&&((bt&2)===0&&(Sa|=n),Bt===4&&Gn(t,ht,_e,!1)),Je(t))}function vh(t,e,n){if((bt&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Al(t,e),s=l?Ly(t,e):rc(t,e,!0),u=l;do{if(s===0){ol&&!l&&Gn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!Dy(n)){s=rc(t,e,!1),u=!1;continue}if(s===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var g=t;s=ui;var T=g.current.memoizedState.isDehydrated;if(T&&(rl(g,f).flags|=256),f=rc(g,f,!1),f!==2){if(ac&&!T){g.errorRecoveryDisabledLanes|=u,Sa|=u,s=4;break t}u=fe,fe=s,u!==null&&(fe===null?fe=u:fe.push.apply(fe,u))}s=f}if(u=!1,s!==2)continue}}if(s===1){rl(t,0),Gn(t,e,0,!0);break}t:{switch(l=t,u=s,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Gn(l,e,_e,!Hn);break t;case 2:fe=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(s=Ns+300-ne(),10<s)){if(Gn(l,e,_e,!Hn),Xi(l,0,!0)!==0)break t;bn=e,l.timeoutHandle=kh(yh.bind(null,l,n,fe,Ds,ic,e,_e,Sa,ul,Hn,u,"Throttled",-0,0),s);break t}yh(l,n,fe,Ds,ic,e,_e,Sa,ul,Hn,u,null,-0,0)}}break}while(!0);Je(t)}function yh(t,e,n,l,s,u,f,g,T,O,B,Y,N,w){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},ch(e,u,Y);var W=(u&62914560)===u?Ns-ne():(u&4194048)===u?hh-ne():0;if(W=yg(Y,W),W!==null){bn=u,t.cancelPendingCommit=W(Eh.bind(null,t,e,u,n,l,s,f,g,T,B,Y,null,N,w)),Gn(t,u,f,!O);return}}Eh(t,e,u,n,l,s,f,g,T)}function Dy(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],u=s.getSnapshot;s=s.value;try{if(!ye(u(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Gn(t,e,n,l){e&=~lc,e&=~Sa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var s=e;0<s;){var u=31-ve(s),f=1<<u;l[u]=-1,s&=~f}n!==0&&jr(t,n,e)}function ws(){return(bt&6)===0?(ri(0),!1):!0}function cc(){if(ft!==null){if(_t===0)var t=ft.return;else t=ft,cn=da=null,Eu(t),tl=null,Zl=0,t=ft;for(;t!==null;)Jd(t.alternate,t),t=t.return;ft=null}}function rl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Iy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),bn=0,cc(),Ct=t,ft=n=on(t.current,null),ht=e,_t=0,Se=null,Hn=!1,ol=Al(t,e),ac=!1,ul=_e=lc=Sa=qn=Bt=0,fe=ui=null,ic=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var s=31-ve(l),u=1<<s;e|=t[s],l&=~u}return xn=e,es(),n}function gh(t,e){ut=null,U.H=ti,e===Ia||e===cs?(e=wf(),_t=3):e===hu?(e=wf(),_t=4):_t=e===Yu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,ft===null&&(Bt=1,Ts(t,Oe(e,t.current)))}function xh(){var t=xe.current;return t===null?!0:(ht&4194048)===ht?we===null:(ht&62914560)===ht||(ht&536870912)!==0?t===we:!1}function bh(){var t=U.H;return U.H=ti,t===null?ti:t}function Sh(){var t=U.A;return U.A=Ny,t}function Ls(){Bt=4,Hn||(ht&4194048)!==ht&&xe.current!==null||(ol=!0),(qn&134217727)===0&&(Sa&134217727)===0||Ct===null||Gn(Ct,ht,_e,!1)}function rc(t,e,n){var l=bt;bt|=2;var s=bh(),u=Sh();(Ct!==t||ht!==e)&&(Ds=null,rl(t,e)),e=!1;var f=Bt;t:do try{if(_t!==0&&ft!==null){var g=ft,T=Se;switch(_t){case 8:cc(),f=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var O=_t;if(_t=0,Se=null,fl(t,g,T,O),n&&ol){f=0;break t}break;default:O=_t,_t=0,Se=null,fl(t,g,T,O)}}wy(),f=Bt;break}catch(B){gh(t,B)}while(!0);return e&&t.shellSuspendCounter++,cn=da=null,bt=l,U.H=s,U.A=u,ft===null&&(Ct=null,ht=0,es()),f}function wy(){for(;ft!==null;)_h(ft)}function Ly(t,e){var n=bt;bt|=2;var l=bh(),s=Sh();Ct!==t||ht!==e?(Ds=null,zs=ne()+500,rl(t,e)):ol=Al(t,e);t:do try{if(_t!==0&&ft!==null){e=ft;var u=Se;e:switch(_t){case 1:_t=0,Se=null,fl(t,e,u,1);break;case 2:case 9:if(zf(u)){_t=0,Se=null,Th(e);break}e=function(){_t!==2&&_t!==9||Ct!==t||(_t=7),Je(t)},u.then(e,e);break t;case 3:_t=7;break t;case 4:_t=5;break t;case 7:zf(u)?(_t=0,Se=null,Th(e)):(_t=0,Se=null,fl(t,e,u,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var g=ft;if(f?um(f):g.stateNode.complete){_t=0,Se=null;var T=g.sibling;if(T!==null)ft=T;else{var O=g.return;O!==null?(ft=O,Us(O)):ft=null}break e}}_t=0,Se=null,fl(t,e,u,5);break;case 6:_t=0,Se=null,fl(t,e,u,6);break;case 8:cc(),Bt=6;break t;default:throw Error(c(462))}}Uy();break}catch(B){gh(t,B)}while(!0);return cn=da=null,U.H=l,U.A=s,bt=n,ft!==null?0:(Ct=null,ht=0,es(),Bt)}function Uy(){for(;ft!==null&&!qi();)_h(ft)}function _h(t){var e=Zd(t.alternate,t,xn);t.memoizedProps=t.pendingProps,e===null?Us(t):ft=e}function Th(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Qd(n,e,e.pendingProps,e.type,void 0,ht);break;case 11:e=Qd(n,e,e.pendingProps,e.type.render,e.ref,ht);break;case 5:Eu(e);default:Jd(n,e),e=ft=Sf(e,xn),e=Zd(n,e,xn)}t.memoizedProps=t.pendingProps,e===null?Us(t):ft=e}function fl(t,e,n,l){cn=da=null,Eu(e),tl=null,Zl=0;var s=e.return;try{if(Ry(t,s,e,n,ht)){Bt=1,Ts(t,Oe(n,t.current)),ft=null;return}}catch(u){if(s!==null)throw ft=s,u;Bt=1,Ts(t,Oe(n,t.current)),ft=null;return}e.flags&32768?(pt||l===1?t=!0:ol||(ht&536870912)!==0?t=!1:(Hn=t=!0,(l===2||l===9||l===3||l===6)&&(l=xe.current,l!==null&&l.tag===13&&(l.flags|=16384))),Rh(e,t)):Us(e)}function Us(t){var e=t;do{if((e.flags&32768)!==0){Rh(e,Hn);return}t=e.return;var n=My(e.alternate,e,xn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Bt===0&&(Bt=5)}function Rh(t,e){do{var n=Cy(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Bt=6,ft=null}function Eh(t,e,n,l,s,u,f,g,T){t.cancelPendingCommit=null;do Bs();while(Zt!==0);if((bt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(u=e.lanes|e.childLanes,u|=Wo,pv(t,n,u,f,g,T),t===Ct&&(ft=Ct=null,ht=0),cl=e,Yn=t,bn=n,sc=u,oc=s,mh=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Qy(za,function(){return Oh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,s=K.p,K.p=2,f=bt,bt|=4;try{Ay(t,e,n)}finally{bt=f,K.p=s,U.T=l}}Zt=1,jh(),Mh(),Ch()}}function jh(){if(Zt===1){Zt=0;var t=Yn,e=cl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=K.p;K.p=2;var s=bt;bt|=4;try{sh(e,t);var u=_c,f=df(t.containerInfo),g=u.focusedElem,T=u.selectionRange;if(f!==g&&g&&g.ownerDocument&&ff(g.ownerDocument.documentElement,g)){if(T!==null&&ko(g)){var O=T.start,B=T.end;if(B===void 0&&(B=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(B,g.value.length);else{var Y=g.ownerDocument||document,N=Y&&Y.defaultView||window;if(N.getSelection){var w=N.getSelection(),W=g.textContent.length,st=Math.min(T.start,W),jt=T.end===void 0?st:Math.min(T.end,W);!w.extend&&st>jt&&(f=jt,jt=st,st=f);var M=rf(g,st),R=rf(g,jt);if(M&&R&&(w.rangeCount!==1||w.anchorNode!==M.node||w.anchorOffset!==M.offset||w.focusNode!==R.node||w.focusOffset!==R.offset)){var A=Y.createRange();A.setStart(M.node,M.offset),w.removeAllRanges(),st>jt?(w.addRange(A),w.extend(R.node,R.offset)):(A.setEnd(R.node,R.offset),w.addRange(A))}}}}for(Y=[],w=g;w=w.parentNode;)w.nodeType===1&&Y.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Y.length;g++){var q=Y[g];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Fs=!!Sc,_c=Sc=null}finally{bt=s,K.p=l,U.T=n}}t.current=e,Zt=2}}function Mh(){if(Zt===2){Zt=0;var t=Yn,e=cl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=K.p;K.p=2;var s=bt;bt|=4;try{eh(t,e.alternate,e)}finally{bt=s,K.p=l,U.T=n}}Zt=3}}function Ch(){if(Zt===4||Zt===3){Zt=0,Eo();var t=Yn,e=cl,n=bn,l=mh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,cl=Yn=null,Ah(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Qn=null),Co(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(Cl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=U.T,s=K.p,K.p=2,U.T=null;try{for(var u=t.onRecoverableError,f=0;f<l.length;f++){var g=l[f];u(g.value,{componentStack:g.stack})}}finally{U.T=e,K.p=s}}(bn&3)!==0&&Bs(),Je(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===uc?ci++:(ci=0,uc=t):ci=0,ri(0)}}function Ah(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Vl(e)))}function Bs(){return jh(),Mh(),Ch(),Oh()}function Oh(){if(Zt!==5)return!1;var t=Yn,e=sc;sc=0;var n=Co(bn),l=U.T,s=K.p;try{K.p=32>n?32:n,U.T=null,n=oc,oc=null;var u=Yn,f=bn;if(Zt=0,cl=Yn=null,bn=0,(bt&6)!==0)throw Error(c(331));var g=bt;if(bt|=4,fh(u.current),uh(u,u.current,f,n),bt=g,ri(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(Cl,u)}catch{}return!0}finally{K.p=s,U.T=l,Ah(t,e)}}function Nh(t,e,n){e=Oe(n,e),e=Qu(t.stateNode,e,2),t=wn(t,e,2),t!==null&&(Ol(t,2),Je(t))}function Tt(t,e,n){if(t.tag===3)Nh(t,t,n);else for(;e!==null;){if(e.tag===3){Nh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qn===null||!Qn.has(l))){t=Oe(n,t),n=zd(2),l=wn(e,n,2),l!==null&&(Dd(n,l,e,t),Ol(l,2),Je(l));break}}e=e.return}}function fc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new zy;var s=new Set;l.set(e,s)}else s=l.get(e),s===void 0&&(s=new Set,l.set(e,s));s.has(n)||(ac=!0,s.add(n),t=By.bind(null,t,e,n),e.then(t,t))}function By(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(ht&n)===n&&(Bt===4||Bt===3&&(ht&62914560)===ht&&300>ne()-Ns?(bt&2)===0&&rl(t,0):lc|=n,ul===ht&&(ul=0)),Je(t)}function zh(t,e){e===0&&(e=Er()),t=ca(t,e),t!==null&&(Ol(t,e),Je(t))}function Hy(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zh(t,n)}function qy(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),zh(t,n)}function Qy(t,e){return He(t,e)}var Hs=null,dl=null,dc=!1,qs=!1,hc=!1,Xn=0;function Je(t){t!==dl&&t.next===null&&(dl===null?Hs=dl=t:dl=dl.next=t),qs=!0,dc||(dc=!0,Gy())}function ri(t,e){if(!hc&&qs){hc=!0;do for(var n=!1,l=Hs;l!==null;){if(t!==0){var s=l.pendingLanes;if(s===0)var u=0;else{var f=l.suspendedLanes,g=l.pingedLanes;u=(1<<31-ve(42|t)+1)-1,u&=s&~(f&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Uh(l,u))}else u=ht,u=Xi(l,l===Ct?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Al(l,u)||(n=!0,Uh(l,u));l=l.next}while(n);hc=!1}}function Yy(){Dh()}function Dh(){qs=dc=!1;var t=0;Xn!==0&&Wy()&&(t=Xn);for(var e=ne(),n=null,l=Hs;l!==null;){var s=l.next,u=wh(l,e);u===0?(l.next=null,n===null?Hs=s:n.next=s,s===null&&(dl=n)):(n=l,(t!==0||(u&3)!==0)&&(qs=!0)),l=s}Zt!==0&&Zt!==5||ri(t),Xn!==0&&(Xn=0)}function wh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-ve(u),g=1<<f,T=s[f];T===-1?((g&n)===0||(g&l)!==0)&&(s[f]=mv(g,e)):T<=e&&(t.expiredLanes|=g),u&=~g}if(e=Ct,n=ht,n=Xi(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(_t===2||_t===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Ml(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Al(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Ml(l),Co(n)){case 2:case 8:n=Ve;break;case 32:n=za;break;case 268435456:n=Rr;break;default:n=za}return l=Lh.bind(null,t),n=He(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Ml(l),t.callbackPriority=2,t.callbackNode=null,2}function Lh(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Bs()&&t.callbackNode!==n)return null;var l=ht;return l=Xi(t,t===Ct?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(vh(t,l,e),wh(t,ne()),t.callbackNode!=null&&t.callbackNode===n?Lh.bind(null,t):null)}function Uh(t,e){if(Bs())return null;vh(t,e,!0)}function Gy(){tg(function(){(bt&6)!==0?He(Ft,Yy):Dh()})}function mc(){if(Xn===0){var t=$a;t===0&&(t=Qi,Qi<<=1,(Qi&261888)===0&&(Qi=256)),Xn=t}return Xn}function Bh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ki(""+t)}function Hh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Xy(t,e,n,l,s){if(e==="submit"&&n&&n.stateNode===s){var u=Bh((s[se]||null).action),f=l.submitter;f&&(e=(e=f[se]||null)?Bh(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var g=new $i("action","action",null,l,s);t.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xn!==0){var T=f?Hh(s,f):new FormData(s);wu(n,{pending:!0,data:T,method:s.method,action:u},null,T)}}else typeof u=="function"&&(g.preventDefault(),T=f?Hh(s,f):new FormData(s),wu(n,{pending:!0,data:T,method:s.method,action:u},u,T))},currentTarget:s}]})}}for(var pc=0;pc<$o.length;pc++){var vc=$o[pc],Vy=vc.toLowerCase(),Ky=vc[0].toUpperCase()+vc.slice(1);qe(Vy,"on"+Ky)}qe(pf,"onAnimationEnd"),qe(vf,"onAnimationIteration"),qe(yf,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(oy,"onTransitionRun"),qe(uy,"onTransitionStart"),qe(cy,"onTransitionCancel"),qe(gf,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),Zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function qh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],s=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var f=l.length-1;0<=f;f--){var g=l[f],T=g.instance,O=g.currentTarget;if(g=g.listener,T!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=O;try{u(s)}catch(B){ts(B)}s.currentTarget=null,u=T}else for(f=0;f<l.length;f++){if(g=l[f],T=g.instance,O=g.currentTarget,g=g.listener,T!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=O;try{u(s)}catch(B){ts(B)}s.currentTarget=null,u=T}}}}function dt(t,e){var n=e[Ao];n===void 0&&(n=e[Ao]=new Set);var l=t+"__bubble";n.has(l)||(Qh(e,t,2,!1),n.add(l))}function yc(t,e,n){var l=0;e&&(l|=4),Qh(n,t,l,e)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function gc(t){if(!t[Qs]){t[Qs]=!0,zr.forEach(function(n){n!=="selectionchange"&&(Zy.has(n)||yc(n,!1,t),yc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qs]||(e[Qs]=!0,yc("selectionchange",!1,e))}}function Qh(t,e,n,l){switch(pm(e)){case 2:var s=bg;break;case 8:s=Sg;break;default:s=Dc}n=s.bind(null,e,n,t),s=void 0,!Ho||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),l?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function xc(t,e,n,l,s){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var g=l.stateNode.containerInfo;if(g===s)break;if(f===4)for(f=l.return;f!==null;){var T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;g!==null;){if(f=wa(g),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){l=u=f;continue t}g=g.parentNode}}l=l.return}Vr(function(){var O=u,B=Uo(n),Y=[];t:{var N=xf.get(t);if(N!==void 0){var w=$i,W=t;switch(t){case"keypress":if(Fi(n)===0)break t;case"keydown":case"keyup":w=qv;break;case"focusin":W="focus",w=Go;break;case"focusout":W="blur",w=Go;break;case"beforeblur":case"afterblur":w=Go;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Mv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Gv;break;case pf:case vf:case yf:w=Ov;break;case gf:w=Vv;break;case"scroll":case"scrollend":w=Ev;break;case"wheel":w=Zv;break;case"copy":case"cut":case"paste":w=zv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Fr;break;case"toggle":case"beforetoggle":w=Jv}var st=(e&4)!==0,jt=!st&&(t==="scroll"||t==="scrollend"),M=st?N!==null?N+"Capture":null:N;st=[];for(var R=O,A;R!==null;){var q=R;if(A=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||A===null||M===null||(q=Dl(R,M),q!=null&&st.push(di(R,q,A))),jt)break;R=R.return}0<st.length&&(N=new w(N,W,null,n,B),Y.push({event:N,listeners:st}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",w=t==="mouseout"||t==="pointerout",N&&n!==Lo&&(W=n.relatedTarget||n.fromElement)&&(wa(W)||W[Da]))break t;if((w||N)&&(N=B.window===B?B:(N=B.ownerDocument)?N.defaultView||N.parentWindow:window,w?(W=n.relatedTarget||n.toElement,w=O,W=W?wa(W):null,W!==null&&(jt=d(W),st=W.tag,W!==jt||st!==5&&st!==27&&st!==6)&&(W=null)):(w=null,W=O),w!==W)){if(st=kr,q="onMouseLeave",M="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(st=Fr,q="onPointerLeave",M="onPointerEnter",R="pointer"),jt=w==null?N:zl(w),A=W==null?N:zl(W),N=new st(q,R+"leave",w,n,B),N.target=jt,N.relatedTarget=A,q=null,wa(B)===O&&(st=new st(M,R+"enter",W,n,B),st.target=A,st.relatedTarget=jt,q=st),jt=q,w&&W)e:{for(st=ky,M=w,R=W,A=0,q=M;q;q=st(q))A++;q=0;for(var nt=R;nt;nt=st(nt))q++;for(;0<A-q;)M=st(M),A--;for(;0<q-A;)R=st(R),q--;for(;A--;){if(M===R||R!==null&&M===R.alternate){st=M;break e}M=st(M),R=st(R)}st=null}else st=null;w!==null&&Yh(Y,N,w,st,!1),W!==null&&jt!==null&&Yh(Y,jt,W,st,!0)}}t:{if(N=O?zl(O):window,w=N.nodeName&&N.nodeName.toLowerCase(),w==="select"||w==="input"&&N.type==="file")var yt=af;else if(ef(N))if(lf)yt=ly;else{yt=ny;var I=ey}else w=N.nodeName,!w||w.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?O&&wo(O.elementType)&&(yt=af):yt=ay;if(yt&&(yt=yt(t,O))){nf(Y,yt,n,B);break t}I&&I(t,N,O),t==="focusout"&&O&&N.type==="number"&&O.memoizedProps.value!=null&&Do(N,"number",N.value)}switch(I=O?zl(O):window,t){case"focusin":(ef(I)||I.contentEditable==="true")&&(Xa=I,Jo=O,Yl=null);break;case"focusout":Yl=Jo=Xa=null;break;case"mousedown":Fo=!0;break;case"contextmenu":case"mouseup":case"dragend":Fo=!1,hf(Y,n,B);break;case"selectionchange":if(sy)break;case"keydown":case"keyup":hf(Y,n,B)}var ct;if(Vo)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else Ga?Ir(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Pr&&n.locale!=="ko"&&(Ga||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Ga&&(ct=Kr()):(Mn=B,qo="value"in Mn?Mn.value:Mn.textContent,Ga=!0)),I=Ys(O,mt),0<I.length&&(mt=new Jr(mt,t,null,n,B),Y.push({event:mt,listeners:I}),ct?mt.data=ct:(ct=tf(n),ct!==null&&(mt.data=ct)))),(ct=Pv?$v(t,n):Wv(t,n))&&(mt=Ys(O,"onBeforeInput"),0<mt.length&&(I=new Jr("onBeforeInput","beforeinput",null,n,B),Y.push({event:I,listeners:mt}),I.data=ct)),Xy(Y,t,O,n,B)}qh(Y,e)})}function di(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ys(t,e){for(var n=e+"Capture",l=[];t!==null;){var s=t,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Dl(t,n),s!=null&&l.unshift(di(t,s,u)),s=Dl(t,e),s!=null&&l.push(di(t,s,u))),t.tag===3)return l;t=t.return}return[]}function ky(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Yh(t,e,n,l,s){for(var u=e._reactName,f=[];n!==null&&n!==l;){var g=n,T=g.alternate,O=g.stateNode;if(g=g.tag,T!==null&&T===l)break;g!==5&&g!==26&&g!==27||O===null||(T=O,s?(O=Dl(n,u),O!=null&&f.unshift(di(n,O,T))):s||(O=Dl(n,u),O!=null&&f.push(di(n,O,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Jy=/\r\n?/g,Fy=/\u0000|\uFFFD/g;function Gh(t){return(typeof t=="string"?t:""+t).replace(Jy,`
|
|
9
|
-
`).replace(Fy,"")}function Xh(t,e){return e=Gh(e),Gh(t)===e}function Et(t,e,n,l,s,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||qa(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&qa(t,""+l);break;case"className":Ki(t,"class",l);break;case"tabIndex":Ki(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(t,n,l);break;case"style":Gr(t,l,u);break;case"data":if(e!=="object"){Ki(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ki(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"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 u=="function"&&(n==="formAction"?(e!=="input"&&Et(t,e,"name",s.name,s,null),Et(t,e,"formEncType",s.formEncType,s,null),Et(t,e,"formMethod",s.formMethod,s,null),Et(t,e,"formTarget",s.formTarget,s,null)):(Et(t,e,"encType",s.encType,s,null),Et(t,e,"method",s.method,s,null),Et(t,e,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ki(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ln);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=ki(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Vi(t,"popover",l);break;case"xlinkActuate":an(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":an(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":an(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":an(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":an(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":an(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":an(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":an(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":an(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vi(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Tv.get(n)||n,Vi(t,n,l))}}function bc(t,e,n,l,s,u){switch(n){case"style":Gr(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?qa(t,l):(typeof l=="number"||typeof l=="bigint")&&qa(t,""+l);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),u=t[se]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,s),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,s);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Vi(t,n,l)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var l=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var f=n[u];if(f!=null)switch(u){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Et(t,e,u,f,n,null)}}s&&Et(t,e,"srcSet",n.srcSet,n,null),l&&Et(t,e,"src",n.src,n,null);return;case"input":dt("invalid",t);var g=u=f=s=null,T=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var B=n[l];if(B!=null)switch(l){case"name":s=B;break;case"type":f=B;break;case"checked":T=B;break;case"defaultChecked":O=B;break;case"value":u=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,e));break;default:Et(t,e,l,B,n,null)}}Hr(t,u,g,T,O,f,s,!1);return;case"select":dt("invalid",t),l=f=u=null;for(s in n)if(n.hasOwnProperty(s)&&(g=n[s],g!=null))switch(s){case"value":u=g;break;case"defaultValue":f=g;break;case"multiple":l=g;default:Et(t,e,s,g,n,null)}e=u,n=f,t.multiple=!!l,e!=null?Ha(t,!!l,e,!1):n!=null&&Ha(t,!!l,n,!0);return;case"textarea":dt("invalid",t),u=s=l=null;for(f in n)if(n.hasOwnProperty(f)&&(g=n[f],g!=null))switch(f){case"value":l=g;break;case"defaultValue":s=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:Et(t,e,f,g,n,null)}Qr(t,l,s,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(l=n[T],l!=null)&&(T==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Et(t,e,T,l,n,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(l=0;l<fi.length;l++)dt(fi[l],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Et(t,e,O,l,n,null)}return;default:if(wo(e)){for(B in n)n.hasOwnProperty(B)&&(l=n[B],l!==void 0&&bc(t,e,B,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&Et(t,e,g,l,n,null))}function Py(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,f=null,g=null,T=null,O=null,B=null;for(w in n){var Y=n[w];if(n.hasOwnProperty(w)&&Y!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(w)||Et(t,e,w,null,l,Y)}}for(var N in l){var w=l[N];if(Y=n[N],l.hasOwnProperty(N)&&(w!=null||Y!=null))switch(N){case"type":u=w;break;case"name":s=w;break;case"checked":O=w;break;case"defaultChecked":B=w;break;case"value":f=w;break;case"defaultValue":g=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,e));break;default:w!==Y&&Et(t,e,N,w,l,Y)}}zo(t,f,g,T,O,B,u,s);return;case"select":w=f=g=N=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":w=T;default:l.hasOwnProperty(u)||Et(t,e,u,null,l,T)}for(s in l)if(u=l[s],T=n[s],l.hasOwnProperty(s)&&(u!=null||T!=null))switch(s){case"value":N=u;break;case"defaultValue":g=u;break;case"multiple":f=u;default:u!==T&&Et(t,e,s,u,l,T)}e=g,n=f,l=w,N!=null?Ha(t,!!n,N,!1):!!l!=!!n&&(e!=null?Ha(t,!!n,e,!0):Ha(t,!!n,n?[]:"",!1));return;case"textarea":w=N=null;for(g in n)if(s=n[g],n.hasOwnProperty(g)&&s!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Et(t,e,g,null,l,s)}for(f in l)if(s=l[f],u=n[f],l.hasOwnProperty(f)&&(s!=null||u!=null))switch(f){case"value":N=s;break;case"defaultValue":w=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(c(91));break;default:s!==u&&Et(t,e,f,s,l,u)}qr(t,N,w);return;case"option":for(var W in n)N=n[W],n.hasOwnProperty(W)&&N!=null&&!l.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:Et(t,e,W,null,l,N));for(T in l)N=l[T],w=n[T],l.hasOwnProperty(T)&&N!==w&&(N!=null||w!=null)&&(T==="selected"?t.selected=N&&typeof N!="function"&&typeof N!="symbol":Et(t,e,T,N,l,w));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 st in n)N=n[st],n.hasOwnProperty(st)&&N!=null&&!l.hasOwnProperty(st)&&Et(t,e,st,null,l,N);for(O in l)if(N=l[O],w=n[O],l.hasOwnProperty(O)&&N!==w&&(N!=null||w!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,e));break;default:Et(t,e,O,N,l,w)}return;default:if(wo(e)){for(var jt in n)N=n[jt],n.hasOwnProperty(jt)&&N!==void 0&&!l.hasOwnProperty(jt)&&bc(t,e,jt,void 0,l,N);for(B in l)N=l[B],w=n[B],!l.hasOwnProperty(B)||N===w||N===void 0&&w===void 0||bc(t,e,B,N,l,w);return}}for(var M in n)N=n[M],n.hasOwnProperty(M)&&N!=null&&!l.hasOwnProperty(M)&&Et(t,e,M,null,l,N);for(Y in l)N=l[Y],w=n[Y],!l.hasOwnProperty(Y)||N===w||N==null&&w==null||Et(t,e,Y,N,l,w)}function Vh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $y(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],u=s.transferSize,f=s.initiatorType,g=s.duration;if(u&&g&&Vh(f)){for(f=0,g=s.responseEnd,l+=1;l<n.length;l++){var T=n[l],O=T.startTime;if(O>g)break;var B=T.transferSize,Y=T.initiatorType;B&&Vh(Y)&&(T=T.responseEnd,f+=B*(T<g?1:(g-O)/(T-O)))}if(--l,e+=8*(u+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Sc=null,_c=null;function Gs(t){return t.nodeType===9?t:t.ownerDocument}function Kh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Tc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Rc=null;function Wy(){var t=window.event;return t&&t.type==="popstate"?t===Rc?!1:(Rc=t,!0):(Rc=null,!1)}var kh=typeof setTimeout=="function"?setTimeout:void 0,Iy=typeof clearTimeout=="function"?clearTimeout:void 0,Jh=typeof Promise=="function"?Promise:void 0,tg=typeof queueMicrotask=="function"?queueMicrotask:typeof Jh<"u"?function(t){return Jh.resolve(null).then(t).catch(eg)}:kh;function eg(t){setTimeout(function(){throw t})}function Vn(t){return t==="head"}function Fh(t,e){var n=e,l=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(s),vl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")hi(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,hi(n);for(var u=n.firstChild;u;){var f=u.nextSibling,g=u.nodeName;u[Nl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=f}}else n==="body"&&hi(t.ownerDocument.body);n=s}while(n);vl(e)}function Ph(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Ec(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ec(n),Oo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function ng(t,e,n,l){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Nl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function ag(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function $h(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Le(t.nextSibling),t===null))return null;return t}function jc(t){return t.data==="$?"||t.data==="$~"}function Mc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function lg(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Le(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Cc=null;function Wh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Le(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Ih(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function tm(t,e,n){switch(e=Gs(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function hi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Oo(t)}var Ue=new Map,em=new Set;function Xs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sn=K.d;K.d={f:ig,r:sg,D:og,C:ug,L:cg,m:rg,X:dg,S:fg,M:hg};function ig(){var t=Sn.f(),e=ws();return t||e}function sg(t){var e=La(t);e!==null&&e.tag===5&&e.type==="form"?gd(e):Sn.r(t)}var hl=typeof document>"u"?null:document;function nm(t,e,n){var l=hl;if(l&&typeof e=="string"&&e){var s=Ce(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),em.has(s)||(em.add(s),t={rel:t,crossOrigin:n,href:e},l.querySelector(s)===null&&(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function og(t){Sn.D(t),nm("dns-prefetch",t,null)}function ug(t,e){Sn.C(t,e),nm("preconnect",t,e)}function cg(t,e,n){Sn.L(t,e,n);var l=hl;if(l&&t&&e){var s='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ce(n.imageSizes)+'"]')):s+='[href="'+Ce(t)+'"]';var u=s;switch(e){case"style":u=ml(t);break;case"script":u=pl(t)}Ue.has(u)||(t=y({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ue.set(u,t),l.querySelector(s)!==null||e==="style"&&l.querySelector(mi(u))||e==="script"&&l.querySelector(pi(u))||(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function rg(t,e){Sn.m(t,e);var n=hl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ce(l)+'"][href="'+Ce(t)+'"]',u=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=pl(t)}if(!Ue.has(u)&&(t=y({rel:"modulepreload",href:t},e),Ue.set(u,t),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(pi(u)))return}l=n.createElement("link"),te(l,"link",t),kt(l),n.head.appendChild(l)}}}function fg(t,e,n){Sn.S(t,e,n);var l=hl;if(l&&t){var s=Ua(l).hoistableStyles,u=ml(t);e=e||"default";var f=s.get(u);if(!f){var g={loading:0,preload:null};if(f=l.querySelector(mi(u)))g.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ue.get(u))&&Ac(t,n);var T=f=l.createElement("link");kt(T),te(T,"link",t),T._p=new Promise(function(O,B){T.onload=O,T.onerror=B}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Vs(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:g},s.set(u,f)}}}function dg(t,e){Sn.X(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,s=pl(t),u=l.get(s);u||(u=n.querySelector(pi(s)),u||(t=y({src:t,async:!0},e),(e=Ue.get(s))&&Oc(t,e),u=n.createElement("script"),kt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(s,u))}}function hg(t,e){Sn.M(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,s=pl(t),u=l.get(s);u||(u=n.querySelector(pi(s)),u||(t=y({src:t,async:!0,type:"module"},e),(e=Ue.get(s))&&Oc(t,e),u=n.createElement("script"),kt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(s,u))}}function am(t,e,n,l){var s=(s=rt.current)?Xs(s):null;if(!s)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ml(n.href),n=Ua(s).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ml(n.href);var u=Ua(s).hoistableStyles,f=u.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=s.querySelector(mi(t)))&&!u._p&&(f.instance=u,f.state.loading=5),Ue.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ue.set(t,n),u||mg(s,t,n,f.state))),e&&l===null)throw Error(c(528,""));return f}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=pl(n),n=Ua(s).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function ml(t){return'href="'+Ce(t)+'"'}function mi(t){return'link[rel="stylesheet"]['+t+"]"}function lm(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function mg(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),te(e,"link",n),kt(e),t.head.appendChild(e))}function pl(t){return'[src="'+Ce(t)+'"]'}function pi(t){return"script[async]"+t}function im(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(l)return e.instance=l,kt(l),l;var s=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),kt(l),te(l,"style",s),Vs(l,n.precedence,t),e.instance=l;case"stylesheet":s=ml(n.href);var u=t.querySelector(mi(s));if(u)return e.state.loading|=4,e.instance=u,kt(u),u;l=lm(n),(s=Ue.get(s))&&Ac(l,s),u=(t.ownerDocument||t).createElement("link"),kt(u);var f=u;return f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),te(u,"link",l),e.state.loading|=4,Vs(u,n.precedence,t),e.instance=u;case"script":return u=pl(n.src),(s=t.querySelector(pi(u)))?(e.instance=s,kt(s),s):(l=n,(s=Ue.get(u))&&(l=y({},n),Oc(l,s)),t=t.ownerDocument||t,s=t.createElement("script"),kt(s),te(s,"link",l),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Vs(l,n.precedence,t));return e.instance}function Vs(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,u=s,f=0;f<l.length;f++){var g=l[f];if(g.dataset.precedence===e)u=g;else if(u!==s)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ac(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Oc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ks=null;function sm(t,e,n){if(Ks===null){var l=new Map,s=Ks=new Map;s.set(n,l)}else s=Ks,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var u=n[s];if(!(u[Nl]||u[Pt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var g=l.get(f);g?g.push(u):l.set(f,[u])}}return l}function om(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function pg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function um(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function vg(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ml(l.href),u=e.querySelector(mi(s));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Zs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,kt(u);return}u=e.ownerDocument||e,l=lm(l),(s=Ue.get(s))&&Ac(l,s),u=u.createElement("link"),kt(u);var f=u;f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),te(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Zs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Nc=0;function yg(t,e){return t.stylesheets&&t.count===0&&Js(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Nc===0&&(Nc=62500*$y());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Nc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Zs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Js(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ks=null;function Js(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ks=new Map,e.forEach(gg,t),ks=null,Zs.call(t))}function gg(t,e){if(!(e.state.loading&4)){var n=ks.get(t);if(n)var l=n.get(null);else{n=new Map,ks.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var f=s[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}s=e.instance,f=s.getAttribute("data-precedence"),u=n.get(f)||l,u===l&&n.set(null,s),n.set(f,s),this.count++,l=Zs.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),u?u.parentNode.insertBefore(s,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var vi={$$typeof:X,Provider:null,Consumer:null,_currentValue:lt,_currentValue2:lt,_threadCount:0};function xg(t,e,n,l,s,u,f,g,T){this.tag=1,this.containerInfo=t,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=jo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jo(0),this.hiddenUpdates=jo(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function cm(t,e,n,l,s,u,f,g,T,O,B,Y){return t=new xg(t,e,n,f,T,O,B,Y,g),e=1,u===!0&&(e|=24),u=ge(3,null,null,e),t.current=u,u.stateNode=t,e=ru(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},mu(u),t}function rm(t){return t?(t=Za,t):Za}function fm(t,e,n,l,s,u){s=rm(s),l.context===null?l.context=s:l.pendingContext=s,l=Dn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=wn(t,l,e),n!==null&&(de(n,t,e),Jl(n,t,e))}function dm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function zc(t,e){dm(t,e),(t=t.alternate)&&dm(t,e)}function hm(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&de(e,t,67108864),zc(t,67108864)}}function mm(t){if(t.tag===13||t.tag===31){var e=Te();e=Mo(e);var n=ca(t,e);n!==null&&de(n,t,e),zc(t,e)}}var Fs=!0;function bg(t,e,n,l){var s=U.T;U.T=null;var u=K.p;try{K.p=2,Dc(t,e,n,l)}finally{K.p=u,U.T=s}}function Sg(t,e,n,l){var s=U.T;U.T=null;var u=K.p;try{K.p=8,Dc(t,e,n,l)}finally{K.p=u,U.T=s}}function Dc(t,e,n,l){if(Fs){var s=wc(l);if(s===null)xc(t,e,l,Ps,n),vm(t,l);else if(Tg(s,t,e,n,l))l.stopPropagation();else if(vm(t,l),e&4&&-1<_g.indexOf(t)){for(;s!==null;){var u=La(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=la(u.pendingLanes);if(f!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;f;){var T=1<<31-ve(f);g.entanglements[1]|=T,f&=~T}Je(u),(bt&6)===0&&(zs=ne()+500,ri(0))}}break;case 31:case 13:g=ca(u,2),g!==null&&de(g,u,2),ws(),zc(u,2)}if(u=wc(l),u===null&&xc(t,e,l,Ps,n),u===s)break;s=u}s!==null&&l.stopPropagation()}else xc(t,e,l,null,n)}}function wc(t){return t=Uo(t),Lc(t)}var Ps=null;function Lc(t){if(Ps=null,t=wa(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(e),t!==null)return t;t=null}else if(n===31){if(t=x(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ps=t,null}function pm(t){switch(t){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(At()){case Ft:return 2;case Ve:return 8;case za:case uv:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Uc=!1,Kn=null,Zn=null,kn=null,yi=new Map,gi=new Map,Jn=[],_g="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 vm(t,e){switch(t){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":yi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":gi.delete(e.pointerId)}}function xi(t,e,n,l,s,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[s]},e!==null&&(e=La(e),e!==null&&hm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Tg(t,e,n,l,s){switch(e){case"focusin":return Kn=xi(Kn,t,e,n,l,s),!0;case"dragenter":return Zn=xi(Zn,t,e,n,l,s),!0;case"mouseover":return kn=xi(kn,t,e,n,l,s),!0;case"pointerover":var u=s.pointerId;return yi.set(u,xi(yi.get(u)||null,t,e,n,l,s)),!0;case"gotpointercapture":return u=s.pointerId,gi.set(u,xi(gi.get(u)||null,t,e,n,l,s)),!0}return!1}function ym(t){var e=wa(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,Or(t.priority,function(){mm(n)});return}}else if(e===31){if(e=x(n),e!==null){t.blockedOn=e,Or(t.priority,function(){mm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function $s(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=wc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Lo=l,n.target.dispatchEvent(l),Lo=null}else return e=La(n),e!==null&&hm(e),t.blockedOn=n,!1;e.shift()}return!0}function gm(t,e,n){$s(t)&&n.delete(e)}function Rg(){Uc=!1,Kn!==null&&$s(Kn)&&(Kn=null),Zn!==null&&$s(Zn)&&(Zn=null),kn!==null&&$s(kn)&&(kn=null),yi.forEach(gm),gi.forEach(gm)}function Ws(t,e){t.blockedOn===e&&(t.blockedOn=null,Uc||(Uc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Rg)))}var Is=null;function xm(t){Is!==t&&(Is=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Is===t&&(Is=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],s=t[e+2];if(typeof l!="function"){if(Lc(l||n)===null)continue;break}var u=La(n);u!==null&&(t.splice(e,3),e-=3,wu(u,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function vl(t){function e(T){return Ws(T,t)}Kn!==null&&Ws(Kn,t),Zn!==null&&Ws(Zn,t),kn!==null&&Ws(kn,t),yi.forEach(e),gi.forEach(e);for(var n=0;n<Jn.length;n++){var l=Jn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)ym(n),n.blockedOn===null&&Jn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],u=n[l+1],f=s[se]||null;if(typeof u=="function")f||xm(n);else if(f){var g=null;if(u&&u.hasAttribute("formAction")){if(s=u,f=u[se]||null)g=f.formAction;else if(Lc(s)!==null)continue}else g=f.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),xm(n)}}}function bm(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function Bc(t){this._internalRoot=t}to.prototype.render=Bc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=Te();fm(n,l,t,e,null,null)},to.prototype.unmount=Bc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fm(t.current,2,null,t,null,null),ws(),e[Da]=null}};function to(t){this._internalRoot=t}to.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ar();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Jn.length&&e!==0&&e<Jn[n].priority;n++);Jn.splice(n,0,t),n===0&&ym(t)}};var Sm=i.version;if(Sm!=="19.2.6")throw Error(c(527,Sm,"19.2.6"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=v(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Eg={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eo.isDisabled&&eo.supportsFiber)try{Cl=eo.inject(Eg),pe=eo}catch{}}return Ei.createRoot=function(t,e){if(!r(t))throw Error(c(299));var n=!1,l="",s=Cd,u=Ad,f=Od;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=cm(t,1,!1,null,null,n,l,null,s,u,f,bm),t[Da]=e.current,gc(t),new Bc(e)},Ei.hydrateRoot=function(t,e,n){if(!r(t))throw Error(c(299));var l=!1,s="",u=Cd,f=Ad,g=Od,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=cm(t,1,!0,e,n??null,l,s,T,u,f,g,bm),e.context=rm(null),n=e.current,l=Te(),l=Mo(l),s=Dn(l),s.callback=null,wn(n,s,l),n=l,e.current.lanes=n,Ol(e,n),Je(e),t[Da]=e.current,gc(t),new to(e)},Ei.version="19.2.6",Ei}var mp;function mb(){if(mp)return Ic.exports;mp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Ic.exports=hb(),Ic.exports}var pb=mb();const av="ahk-theme";function vb(){if(typeof window>"u")return"dark";const a=localStorage.getItem(av);return a==="light"||a==="dark"?a:"dark"}function yb(){const[a,i]=k.useState(vb);return k.useEffect(()=>{const c=document.documentElement;a==="dark"?(c.classList.add("dark"),c.classList.remove("light")):(c.classList.add("light"),c.classList.remove("dark")),localStorage.setItem(av,a)},[a]),{theme:a,toggle:()=>i(c=>c==="dark"?"light":"dark")}}function gb(){return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("circle",{cx:"12",cy:"12",r:"4"}),h.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]})}function xb(){return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}const Oa=kx()({component:Sb}),bb=[{to:"/",label:"Overview",exact:!0},{to:"/tasks",label:"Tasks",exact:!1},{to:"/agents",label:"Agents",exact:!1},{to:"/tools",label:"Tools",exact:!1},{to:"/files",label:"Files",exact:!1}];function Sb(){const{theme:a,toggle:i}=yb();return h.jsxs("div",{className:"flex h-screen bg-[var(--color-bg-base)] text-[var(--color-text-primary)] overflow-hidden",children:[h.jsxs("nav",{className:"w-48 border-r border-[var(--color-border)] flex flex-col shrink-0",children:[h.jsxs("div",{className:"px-4 py-4 border-b border-[var(--color-border)]",children:[h.jsx("span",{className:"font-mono font-bold text-sm text-[var(--color-accent)]",children:"ahk"}),h.jsx("span",{className:"font-mono text-sm text-[var(--color-text-muted)] ml-1.5",children:"dashboard"})]}),h.jsx("div",{className:"flex-1 py-2 flex flex-col gap-0.5 px-2 overflow-y-auto",children:bb.map(({to:o,label:c,exact:r})=>h.jsx(na,{to:o,activeOptions:{exact:r},className:"font-mono text-sm px-3 py-1.5 rounded text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] hover:bg-[var(--color-bg-surface)] transition-colors",activeProps:{className:"font-mono text-sm px-3 py-1.5 rounded text-[var(--color-text-primary)] bg-[var(--color-bg-surface)]"},children:c},o))}),h.jsx("div",{className:"px-4 py-3 border-t border-[var(--color-border)]",children:h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-accent)] inline-block"}),h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-muted)]",children:"live"}),h.jsx("button",{onClick:i,title:a==="dark"?"Switch to light mode":"Switch to dark mode",className:"ml-auto text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] transition-colors p-1 rounded hover:bg-[var(--color-bg-elevated)]",children:a==="dark"?h.jsx(gb,{}):h.jsx(xb,{})})]})})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(nv,{})})]})}const _b={lead:"bg-violet-950 text-violet-400",explorer:"bg-sky-950 text-sky-300",builder:"bg-green-950 text-green-400",reviewer:"bg-amber-950 text-amber-400"};function Tb(a){return a.startsWith("custom:")?"bg-neutral-900 text-neutral-300":_b[a]??"bg-neutral-900 text-neutral-400"}function Ge({agent:a,size:i="sm"}){const o=i==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${Tb(a)} ${o} font-mono px-2 py-0.5 rounded-sm`,children:a})}function xo({cols:a,message:i="No data"}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-[var(--color-text-faint)]",children:i})})}function lv(){return h.jsx("div",{className:"p-6 font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"})}function bo({cols:a}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"})})}function Rl({title:a,subtitle:i,right:o}){return h.jsxs("div",{className:"flex items-start justify-between px-6 pt-6 pb-4 border-b border-[var(--color-border)]",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"font-mono font-semibold text-base text-[var(--color-text-primary)]",children:a}),i&&h.jsx("p",{className:"text-xs text-[var(--color-text-muted)] mt-0.5",children:i})]}),o!=null&&o!=null&&h.jsx("div",{children:o})]})}const pp="/api";async function Fe(a,i){const o=i?`${pp}${a}?${new URLSearchParams(i)}`:`${pp}${a}`,c=await fetch(o);if(!c.ok)throw new Error(`API ${a} → ${c.status}`);return c.json()}const Ee={stats:()=>Fe("/stats"),tasks:()=>Fe("/tasks"),allTasks:(a=!1)=>Fe("/tasks",{includeArchived:String(a)}),task:a=>Fe(`/tasks/${a}`),topTools:(a=20)=>Fe("/tools/top",{limit:String(a)}),recentTools:(a=50)=>Fe("/tools/recent",{limit:String(a)}),topFiles:(a=20)=>Fe("/files/top",{limit:String(a)}),recentFiles:(a=50)=>Fe("/files/recent",{limit:String(a)}),agentStats:()=>Fe("/agents/stats"),timeline:(a=50)=>Fe("/timeline",{limit:String(a)}),updateTask:(a,i)=>fetch(`/api/tasks/${a}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(o=>o.json()),archiveTask:a=>fetch(`/api/tasks/${a}/archive`,{method:"PATCH"}).then(i=>i.json()),unarchiveTask:a=>fetch(`/api/tasks/${a}/unarchive`,{method:"PATCH"}).then(i=>i.json())},Ie={stats:["stats"],tasks:["tasks"],allTasks:a=>["tasks",{includeArchived:a}],task:a=>["tasks",a],topTools:["tools","top"],recentTools:["tools","recent"],topFiles:["files","top"],recentFiles:["files","recent"],agentStats:["agents","stats"],timeline:["timeline"]};function $e(a){return new Date(a).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function iv(a,i){if(!i)return"—";const o=new Date(i).getTime()-new Date(a).getTime(),c=Math.floor(o/1e3);if(c<60)return`${c}s`;const r=Math.floor(c/60);return r<60?`${r}m ${c%60}s`:`${Math.floor(r/60)}h ${r%60}m`}const Rb=Tl("/tools")({component:Eb});function Eb(){const a=We({queryKey:Ie.topTools,queryFn:()=>Ee.topTools(25)}),i=We({queryKey:Ie.recentTools,queryFn:()=>Ee.recentTools(50)}),o=a.data?.[0]?.uses??1;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tools",subtitle:"Tool usage across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-4",children:"Top Tools"}),a.isLoading&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"}),h.jsxs("div",{className:"space-y-1.5",children:[(a.data??[]).map(({tool_name:c,uses:r})=>h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-48 font-mono text-xs text-[var(--color-text-secondary)] text-right shrink-0 truncate",children:c}),h.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-[var(--color-bg-elevated)] rounded-sm h-5 overflow-hidden",children:h.jsx("div",{className:"bg-violet-900 h-full transition-all flex items-center px-2",style:{width:`${r/o*100}%`}})}),h.jsx("span",{className:"font-mono text-xs text-[var(--color-text-muted)] w-8 text-right shrink-0",children:r})]})]},c)),!a.isLoading&&a.data?.length===0&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"No tool calls recorded yet."})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Calls"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Tool","Agent","Task","Args","Result","Called"].map(c=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:c},c))})}),h.jsxs("tbody",{children:[i.isLoading&&h.jsx(bo,{cols:6}),(i.data??[]).map(c=>h.jsx(jb,{tool:c},c.id)),!i.isLoading&&i.data?.length===0&&h.jsx(xo,{cols:6,message:"No recent calls"})]})]})]})]})]})}function jb({tool:a}){let i="—";if(a.args_json)try{const o=JSON.parse(a.args_json);i=JSON.stringify(o).slice(0,60)+(JSON.stringify(o).length>60?"…":"")}catch{i=a.args_json.slice(0,60)}return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-violet-400",children:a.tool_name}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-muted)] max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-faint)] max-w-[180px] truncate",children:i}),h.jsx("td",{className:"px-4 py-2 text-xs text-[var(--color-text-muted)] max-w-[180px] truncate",children:a.result_summary??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.called_at)})]})}const Mb={read:"text-neutral-400",created:"text-green-400",modified:"text-amber-400",deleted:"text-red-400"};function sv({op:a}){const i=Mb[a]??"text-neutral-500";return h.jsx("span",{className:`${i} font-mono text-xs`,children:a})}const Cb=Tl("/files")({component:Ab});function Ab(){const a=We({queryKey:Ie.topFiles,queryFn:()=>Ee.topFiles(25)}),i=We({queryKey:Ie.recentFiles,queryFn:()=>Ee.recentFiles(60)});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Files",subtitle:"File operations across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Most Touched"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["File Path","Total","Read","Created","Modified","Deleted"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[a.isLoading&&h.jsx(bo,{cols:6}),(a.data??[]).map(o=>h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)] max-w-xs truncate",children:o.file_path}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)]",children:o.total}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-faint)]",children:o.read||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-green-400",children:o.created||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-amber-400",children:o.modified||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-red-400",children:o.deleted||"—"})]},o.file_path)),!a.isLoading&&a.data?.length===0&&h.jsx(xo,{cols:6,message:"No file activity yet"})]})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Operations"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Op","File Path","Agent","Task","Notes","When"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[i.isLoading&&h.jsx(bo,{cols:6}),(i.data??[]).map(o=>h.jsx(Ob,{file:o},o.id)),!i.isLoading&&i.data?.length===0&&h.jsx(xo,{cols:6,message:"No recent operations"})]})]})]})]})]})}function Ob({file:a}){return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2",children:h.jsx(sv,{op:a.operation})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)] max-w-[220px] truncate",children:a.file_path}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-muted)] max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 text-xs text-[var(--color-text-faint)] max-w-[160px] truncate",children:a.notes??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.called_at)})]})}const Nb=Tl("/agents")({component:zb});function zb(){const{data:a=[],isLoading:i}=We({queryKey:Ie.agentStats,queryFn:Ee.agentStats});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Agents",subtitle:"Activity breakdown per agent role"}),h.jsxs("div",{className:"p-6 space-y-4",children:[i&&h.jsx(lv,{}),h.jsx("div",{className:"grid grid-cols-2 gap-4",children:a.map(o=>h.jsx(Db,{stat:o},o.agent))}),a.length===0&&!i&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"No agent activity yet."}),a.length>0&&h.jsxs("div",{className:"mt-6",children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Summary Table"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Agent","Total Actions","Completed","Blocked","Tasks","Files"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsx("tbody",{children:a.map(o=>h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-3",children:h.jsx(Ge,{agent:o.agent})}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.actions_total}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-green-400",children:o.actions_done}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-red-400",children:o.actions_blocked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.tasks_worked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.files_touched})]},o.agent))})]})]})]})]})}function Db({stat:a}){const i=a.actions_total>0?Math.round(a.actions_done/a.actions_total*100):0;return h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-4 space-y-3",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:[i,"% done"]})]}),h.jsx("div",{className:"w-full bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-700 h-1 rounded-full",style:{width:`${i}%`}})}),h.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:[h.jsx(gl,{label:"Actions",value:a.actions_total}),h.jsx(gl,{label:"Completed",value:a.actions_done,color:"text-green-400"}),h.jsx(gl,{label:"Tasks",value:a.tasks_worked}),h.jsx(gl,{label:"Blocked",value:a.actions_blocked,color:a.actions_blocked>0?"text-red-400":void 0}),h.jsx(gl,{label:"Files touched",value:a.files_touched}),h.jsx(gl,{label:"In progress",value:a.actions_total-a.actions_done-a.actions_blocked,color:"text-amber-400"})]})]})}function gl({label:a,value:i,color:o}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("span",{className:"text-xs text-[var(--color-text-faint)]",children:a}),h.jsx("span",{className:`font-mono text-xs ${o??"text-[var(--color-text-secondary)]"}`,children:i})]})}const wb={pending:"bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400",in_progress:"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-400",done:"bg-green-100 text-green-700 dark:bg-green-950 dark:text-green-400",blocked:"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-400",completed:"bg-indigo-100 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-400"},Lb={in_progress:"in progress"};function Ro({status:a,size:i="sm"}){const o=wb[a]??"bg-neutral-100 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-500",c=Lb[a]??a,r=i==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${o} ${r} font-mono px-2 py-0.5 rounded-sm`,children:c})}const Ub=Tl("/")({component:Bb});function Bb(){const a=We({queryKey:Ie.stats,queryFn:Ee.stats}),i=We({queryKey:Ie.tasks,queryFn:Ee.tasks}),o=We({queryKey:Ie.timeline,queryFn:()=>Ee.timeline(15)}),c=i.data?.filter(d=>d.status==="in_progress")??[],r=a.data;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Overview",subtitle:"Harness state at a glance"}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Pending",key:"pending",color:"text-[var(--color-text-secondary)]"},{label:"In Progress",key:"in_progress",color:"text-amber-400"},{label:"Done",key:"done",color:"text-green-400"},{label:"Blocked",key:"blocked",color:"text-red-400"}].map(({label:d,key:m,color:x})=>h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-4",children:[h.jsx("div",{className:`font-mono text-2xl font-semibold ${x}`,children:r?r.byStatus[m]??0:"—"}),h.jsx("div",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:d})]},m))}),h.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Total Actions",value:r?.totalActions},{label:"Files Touched",value:r?.totalFiles},{label:"Unique Tools",value:r?.uniqueTools}].map(({label:d,value:m})=>h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md px-4 py-3 flex items-center gap-3",children:[h.jsx("span",{className:"font-mono text-lg text-[var(--color-text-primary)]",children:m??"—"}),h.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:d})]},d))}),h.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Active Tasks"}),c.length===0?h.jsx("p",{className:"text-xs text-[var(--color-text-faint)] font-mono",children:"No tasks in progress"}):h.jsx("div",{className:"space-y-2",children:c.map(d=>h.jsxs(na,{to:"/tasks/$id",params:{id:String(d.id)},className:"block bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-3 hover:border-[var(--color-border)] transition-colors",children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"font-mono text-sm text-[var(--color-text-primary)] truncate",children:d.title}),h.jsx("div",{className:"font-mono text-xs text-[var(--color-text-faint)] mt-0.5",children:d.slug})]}),d.assigned_to&&h.jsx(Ge,{agent:d.assigned_to,size:"xs"})]}),d.acceptance_total>0&&h.jsxs("div",{className:"mt-2",children:[h.jsxs("div",{className:"flex justify-between text-[10px] font-mono text-[var(--color-text-faint)] mb-1",children:[h.jsx("span",{children:"acceptance"}),h.jsxs("span",{children:[d.acceptance_met,"/",d.acceptance_total]})]}),h.jsx("div",{className:"w-full bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full transition-all",style:{width:`${d.acceptance_met/d.acceptance_total*100}%`}})})]})]},d.id))})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Activity"}),h.jsxs("div",{className:"space-y-1",children:[(o.data??[]).map(d=>h.jsx(Hb,{entry:d},d.id)),o.data?.length===0&&h.jsx("p",{className:"text-xs text-[var(--color-text-faint)] font-mono",children:"No activity yet"})]})]})]})]})]})}function Hb({entry:a}){return h.jsxs(na,{to:"/tasks/$id",params:{id:String(a.task_id)},className:"flex items-start gap-2 px-2 py-1.5 rounded hover:bg-[var(--color-bg-surface)] transition-colors group",children:[h.jsx(Ge,{agent:a.agent,size:"xs"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"text-xs text-[var(--color-text-secondary)] truncate group-hover:text-[var(--color-text-primary)] transition-colors",children:a.summary??a.task_title}),h.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:a.task_slug}),h.jsx(Ro,{status:a.status,size:"xs"})]})]}),h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)] shrink-0",children:$e(a.created_at)})]})}const qb=a=>{const[i,o]=k.useState(a);return k.useEffect(()=>{const r=d=>{if(d.storageArea===localStorage)try{const m=d.newValue?JSON.parse(d.newValue):void 0;o(m)}catch{}};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}},[]),[i,r=>{o(r),r===void 0?localStorage.removeItem("app-storage"):localStorage.setItem("app-storage",JSON.stringify(r))}]},Qb=Tl("/tasks/")({component:Vb}),Yb=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in_progress",label:"In Progress"},{value:"done",label:"Done"},{value:"blocked",label:"Blocked"},{value:"archived",label:"Archived"}],Gb=[{value:"list",label:"List"},{value:"board",label:"Board"}],Xb=[{status:"pending",label:"Pending",color:"text-[var(--color-text-secondary)]"},{status:"in_progress",label:"In Progress",color:"text-amber-400"},{status:"done",label:"Done",color:"text-green-400"},{status:"blocked",label:"Blocked",color:"text-red-400"}];function vp(a){return a.completed_at??a.started_at??a.created_at}function Vb(){const[a,i]=k.useState("all"),[o,c]=qb("list"),[r,d]=k.useState({field:null,dir:"asc"}),{data:m=[],isLoading:x}=We({queryKey:Ie.allTasks(!0),queryFn:()=>Ee.allTasks(!0)}),p=a==="all"?m.filter(y=>!y.archived_at):a==="archived"?m.filter(y=>y.archived_at):m.filter(y=>y.status===a&&!y.archived_at),v=k.useMemo(()=>r.field?[...p].sort((y,S)=>{if(r.field==="status"){const _=y.status.localeCompare(S.status);return r.dir==="asc"?_:-_}if(r.field==="created"){const _=new Date(y.created_at).getTime()-new Date(S.created_at).getTime();return r.dir==="asc"?_:-_}return 0}):p,[p,r]),b=k.useMemo(()=>{const y={pending:[],in_progress:[],done:[],blocked:[]};for(const S of p)y[S.status]&&y[S.status].push(S);for(const S of Object.keys(y))y[S].sort((_,j)=>new Date(vp(j)).getTime()-new Date(vp(_)).getTime());return y},[p]);return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tasks",subtitle:`${p.length} task${p.length!==1?"s":""}`,right:h.jsxs("div",{className:"flex gap-1 items-center",children:[Gb.map(({value:y,label:S})=>h.jsx("button",{onClick:()=>c(y),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${o===y?"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] border border-transparent"}`,children:S},y)),h.jsx("span",{className:"w-px h-5 bg-[var(--color-border)] mx-1"}),Yb.map(({value:y,label:S})=>h.jsx("button",{onClick:()=>i(y),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${a===y?"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] border border-transparent"}`,children:S},y))]})}),o==="list"?h.jsx(Kb,{tasks:v,sortConfig:r,onSortChange:d,isLoading:x}):h.jsx(kb,{columns:b})]})}function Kb({tasks:a,sortConfig:i,onSortChange:o,isLoading:c}){const r=m=>{i.field===m?o({field:m,dir:i.dir==="asc"?"desc":"asc"}):o({field:m,dir:"asc"})},d=m=>i.field!==m?"":i.dir==="asc"?" ▲":" ▼";return h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-[var(--color-border)]",children:[h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"#"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Title"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Slug"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-[var(--color-text-secondary)] transition-colors",onClick:()=>r("status"),children:["Status",d("status")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Assigned"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Acceptance"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-[var(--color-text-secondary)] transition-colors",onClick:()=>r("created"),children:["Created",d("created")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Archived"})]})}),h.jsxs("tbody",{children:[c&&h.jsx(bo,{cols:8}),a.map(m=>h.jsx(Zb,{task:m},m.id)),!c&&a.length===0&&h.jsx(xo,{cols:8,message:"No tasks"})]})]})})}function Zb({task:a}){return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors group",children:[h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-faint)]",children:a.id}),h.jsxs("td",{className:"px-4 py-3",children:[h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[var(--color-text-primary)] hover:text-[var(--color-accent)] transition-colors",children:a.title}),a.description&&h.jsx("div",{className:"text-xs text-[var(--color-text-faint)] mt-0.5 truncate max-w-xs",children:a.description})]}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-muted)]",children:a.slug}),h.jsx("td",{className:"px-4 py-3",children:h.jsx(Ro,{status:a.status})}),h.jsx("td",{className:"px-4 py-3",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3",children:a.acceptance_total>0?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"w-16 bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.acceptance_met,"/",a.acceptance_total]})]}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-faint)]",children:$e(a.created_at)}),h.jsx("td",{className:"px-4 py-3",children:a.archived_at?h.jsx("span",{className:"text-[10px] font-mono text-yellow-600/80 bg-yellow-500/5 px-2 py-0.5 rounded",children:"archived"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})})]})}function kb({columns:a}){return h.jsx("div",{className:"overflow-x-auto px-6 pb-6",children:h.jsx("div",{className:"flex gap-4 min-h-[calc(100vh-12rem)]",children:Xb.map(({status:i,label:o,color:c})=>{const r=a[i]??[];return h.jsxs("div",{className:"w-72 shrink-0 flex flex-col",children:[h.jsxs("div",{className:"flex items-center gap-2 px-1 py-3 border-b border-[var(--color-border)] mb-3",children:[h.jsx("h3",{className:`font-mono text-sm font-medium ${c}`,children:o}),h.jsxs("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:["(",r.length,")"]})]}),h.jsx("div",{className:"flex-1 overflow-y-auto max-h-[calc(100vh-16rem)] space-y-2 pr-1",children:r.length>0?r.map(d=>h.jsx(Jb,{task:d},d.id)):h.jsx("div",{className:"text-xs font-mono text-[var(--color-text-faint)] text-center py-8",children:"No tasks"})})]},i)})})})}function Jb({task:a}){return h.jsxs("div",{className:"border border-[var(--color-border)] rounded bg-[var(--color-bg-base)] p-3 hover:bg-[var(--color-bg-surface)] transition-colors space-y-2",children:[h.jsxs("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:["#",a.id]}),h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[var(--color-text-primary)] hover:text-[var(--color-accent)] transition-colors block",children:a.title}),h.jsx("div",{className:"flex items-center gap-2",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),a.acceptance_total>0&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.acceptance_met,"/",a.acceptance_total]})]}),h.jsx("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.created_at)})]})}function Fb({message:a="Something went wrong",backTo:i,backLabel:o="← Back"}){return h.jsxs("div",{className:"p-6",children:[i&&h.jsx(na,{to:i,className:"font-mono text-xs text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition-colors",children:o}),h.jsx("p",{className:"font-mono text-xs text-red-400 mt-4",children:a})]})}function Pb({action:a}){const[i,o]=k.useState(!1),c=a.sections.length>0,r=iv(a.created_at,a.completed_at);return h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md",children:[h.jsxs("button",{className:"w-full flex items-start gap-3 p-3 text-left hover:bg-[var(--color-bg-elevated)] transition-colors rounded-md",onClick:()=>c&&o(!i),children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Ro,{status:a.status,size:"xs"}),h.jsx("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:r}),a.tools.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.tools.length," tool",a.tools.length!==1?"s":""]}),a.files.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.files.length," file",a.files.length!==1?"s":""]})]}),a.summary&&h.jsx("div",{className:"text-xs text-[var(--color-text-secondary)] mt-1",children:a.summary})]}),h.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.created_at)}),c&&h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:i?"▲":"▼"})]})]}),i&&c&&h.jsx("div",{className:"border-t border-[var(--color-border)] divide-y divide-[var(--color-border)]",children:a.sections.map(d=>h.jsx($b,{section:d},d.id))})]})}function $b({section:a}){return h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider mb-1",children:a.section_type.replace(/_/g," ")}),h.jsx("pre",{className:"text-xs text-[var(--color-text-secondary)] whitespace-pre-wrap font-mono leading-relaxed",children:a.content})]})}function oo({children:a}){return h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider",children:a})}function ji({label:a,value:i}){return h.jsxs("div",{children:[h.jsx("div",{className:"text-[var(--color-text-faint)] text-[10px]",children:a}),h.jsx("div",{className:"text-[var(--color-text-secondary)]",children:i})]})}const ov=Tl("/tasks/$id")({component:Wb});function Wb(){const{id:a}=ov.useParams(),{data:i,isLoading:o,isError:c,dataUpdatedAt:r}=We({queryKey:Ie.task(Number(a)),queryFn:()=>Ee.task(Number(a))}),[d,m]=k.useState(!1),[x,p]=k.useState(i?.title),[v,b]=k.useState(i?.description??""),[y,S]=k.useState(i?.acceptance.map(z=>z.criterion)??[]);if(k.useEffect(()=>{i&&(p(i.title),b(i.description??""),S(i.acceptance.map(z=>z.criterion)))},[r]),o)return h.jsx(lv,{});if(c||!i)return h.jsx(Fb,{message:"Task not found",backTo:"/tasks",backLabel:"← Back to tasks"});const _=()=>S([...y,""]),j=async()=>{await Ee.updateTask(Number(a),{title:x,description:v||null,acceptance:y.filter(z=>z.trim()!=="")}),m(!1),window.location.reload()},C=i.acceptance.filter(z=>z.met).length,D=async()=>{await Ee.archiveTask(Number(a)),window.location.reload()},L=async()=>{await Ee.unarchiveTask(Number(a)),window.location.reload()};return h.jsxs("div",{children:[h.jsx(Rl,{title:i.title,subtitle:i.slug,right:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Ro,{status:i.status}),i.assigned_to&&h.jsx(Ge,{agent:i.assigned_to}),i.archived_at?h.jsx("button",{onClick:L,className:"text-xs font-mono text-yellow-500 hover:text-yellow-400 border border-yellow-900/50 px-3 py-1 rounded",children:"Unarchive"}):h.jsx("button",{onClick:D,className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-red-400 border border-[var(--color-border)] px-3 py-1 rounded",children:"Archive"})]})}),h.jsx("div",{className:"px-6 pt-3",children:h.jsx("button",{onClick:()=>m(!0),className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] border border-[var(--color-border)] px-3 py-1.5 rounded transition-colors",children:"Edit"})}),d&&h.jsx("div",{className:"fixed inset-0 bg-black/60 z-50 flex items-center justify-center",onClick:()=>m(!1),children:h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-lg p-6 w-full md:max-w-2xl lg:max-w-3xl xl:max-w-4xl 2xl:max-w-5xl mx-4 max-h-[80vh] overflow-y-auto max-md:inset-0 max-md:rounded-none max-md:h-screen max-md:w-screen max-md:max-w-full max-md:max-h-full max-md:m-0",onClick:z=>z.stopPropagation(),children:[h.jsx("h3",{className:"font-mono text-sm text-[var(--color-text-primary)] mb-4",children:"Edit Task"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-[var(--color-text-muted)] font-mono block mb-1",children:"Title"}),h.jsx("input",{value:x,onChange:z=>p(z.target.value),className:"w-full bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)]"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-[var(--color-text-muted)] font-mono block mb-1",children:"Description"}),h.jsx("textarea",{value:v??"",onChange:z=>b(z.target.value),className:"w-full bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)] resize-none h-20"})]}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-mono",children:"Acceptance Criteria"}),h.jsx("button",{onClick:_,className:"text-xs font-mono text-green-500 hover:text-green-400",children:"+ Add"})]}),h.jsx("div",{className:"space-y-2",children:y.map((z,X)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("span",{className:"text-xs text-[var(--color-text-faint)] font-mono mt-2 shrink-0",children:["#",X+1]}),h.jsx("input",{value:z,onChange:G=>{const $=[...y];$[X]=G.target.value,S($)},className:"flex-1 bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)]"}),h.jsx("button",{onClick:()=>S(y.filter((G,$)=>$!==X)),className:"text-xs text-red-500 hover:text-red-400 mt-2",children:"✕"})]},`index-${X}`))})]})]}),h.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[h.jsx("button",{onClick:()=>m(!1),className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] px-3 py-1.5",children:"Cancel"}),h.jsx("button",{onClick:j,className:"text-xs font-mono bg-[var(--color-text-primary)] text-[var(--color-bg-base)] px-3 py-1.5 rounded hover:opacity-90",children:"Save"})]})]})}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"flex gap-6 text-xs font-mono",children:[h.jsx(ji,{label:"Created",value:$e(i.created_at)}),h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"→"}),h.jsx(ji,{label:"Started",value:i.started_at?$e(i.started_at):"—"}),h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"→"}),h.jsx(ji,{label:"Completed",value:i.completed_at?$e(i.completed_at):"—"}),i.started_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"·"}),h.jsx(ji,{label:"Duration",value:iv(i.started_at,i.completed_at)})]}),i.archived_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"·"}),h.jsx(ji,{label:"Archived",value:$e(i.archived_at)})]})]}),h.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[i.acceptance.length>0&&h.jsxs("div",{className:"col-span-1",children:[h.jsxs(oo,{children:["Acceptance Criteria"," ",h.jsxs("span",{className:"text-[var(--color-text-faint)]",children:["(",C,"/",i.acceptance.length,")"]})]}),h.jsx("div",{className:"space-y-1.5 mt-2",children:i.acceptance.map(z=>h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx("span",{className:`mt-0.5 text-xs font-mono shrink-0 ${z.met?"text-green-400":"text-[var(--color-text-faint)]"}`,children:z.met?"✓":"○"}),h.jsx("span",{className:`text-xs ${z.met?"text-[var(--color-text-secondary)]":"text-[var(--color-text-muted)]"}`,children:z.criterion})]},z.id))})]}),i.description&&h.jsxs("div",{className:"col-span-2",children:[h.jsx(oo,{children:"Description"}),h.jsx("p",{className:"text-sm text-[var(--color-text-secondary)] mt-2 leading-relaxed",children:i.description})]})]}),i.actions.length>0&&h.jsxs("div",{children:[h.jsxs(oo,{children:["Actions Timeline (",i.actions.length,")"]}),h.jsx("div",{className:"mt-3 space-y-2",children:i.actions.map(z=>h.jsx(Pb,{action:z},z.id))})]}),i.actions.some(z=>z.files.length>0)&&h.jsxs("div",{children:[h.jsx(oo,{children:"Files Touched"}),h.jsxs("table",{className:"w-full mt-2 text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Operation","File Path","Agent","Notes"].map(z=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-3 py-2",children:z},z))})}),h.jsx("tbody",{children:i.actions.flatMap(z=>z.files.map(X=>h.jsxs("tr",{className:"border-b border-[var(--color-border)]",children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx(sv,{op:X.operation})}),h.jsx("td",{className:"px-3 py-2 font-mono text-xs text-[var(--color-text-secondary)]",children:X.file_path}),h.jsx("td",{className:"px-3 py-2",children:h.jsx(Ge,{agent:z.agent,size:"xs"})}),h.jsx("td",{className:"px-3 py-2 text-xs text-[var(--color-text-faint)]",children:X.notes??"—"})]},X.id)))})]})]})]})]})}const Ib=Rb.update({id:"/tools",path:"/tools",getParentRoute:()=>Oa}),tS=Cb.update({id:"/files",path:"/files",getParentRoute:()=>Oa}),eS=Nb.update({id:"/agents",path:"/agents",getParentRoute:()=>Oa}),nS=Ub.update({id:"/",path:"/",getParentRoute:()=>Oa}),aS=Qb.update({id:"/tasks/",path:"/tasks/",getParentRoute:()=>Oa}),lS=ov.update({id:"/tasks/$id",path:"/tasks/$id",getParentRoute:()=>Oa}),iS={IndexRoute:nS,AgentsRoute:eS,FilesRoute:tS,ToolsRoute:Ib,TasksIdRoute:lS,TasksIndexRoute:aS},sS=Oa._addFileChildren(iS)._addFileTypes(),Tr=new e0({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!0,retry:1}}}),oS=ob({routeTree:sS,context:{queryClient:Tr}}),uS=new WebSocket(`ws://${location.host}/ws`);uS.onmessage=a=>{try{JSON.parse(a.data).type==="update"&&Tr.invalidateQueries()}catch{}};const cS=document.getElementById("root");pb.createRoot(cS).render(h.jsx(k.StrictMode,{children:h.jsx(l0,{client:Tr,children:h.jsx(rb,{router:oS})})}));
|
|
8
|
+
`+l.stack}}var aa=Object.prototype.hasOwnProperty,He=a.unstable_scheduleCallback,Ml=a.unstable_cancelCallback,qi=a.unstable_shouldYield,Eo=a.unstable_requestPaint,ne=a.unstable_now,At=a.unstable_getCurrentPriorityLevel,Ft=a.unstable_ImmediatePriority,Xe=a.unstable_UserBlockingPriority,za=a.unstable_NormalPriority,uv=a.unstable_LowPriority,Rr=a.unstable_IdlePriority,cv=a.log,rv=a.unstable_setDisableYieldValue,Cl=null,pe=null;function En(t){if(typeof cv=="function"&&rv(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(Cl,t)}catch{}}var ve=Math.clz32?Math.clz32:hv,fv=Math.log,dv=Math.LN2;function hv(t){return t>>>=0,t===0?32:31-(fv(t)/dv|0)|0}var Qi=256,Yi=262144,Gi=4194304;function la(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Vi(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var s=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var g=l&134217727;return g!==0?(l=g&~u,l!==0?s=la(l):(f&=g,f!==0?s=la(f):n||(n=g&~t,n!==0&&(s=la(n))))):(g=l&~u,g!==0?s=la(g):f!==0?s=la(f):n||(n=l&~t,n!==0&&(s=la(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function Al(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function mv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Er(){var t=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),t}function jo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ol(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function pv(t,e,n,l,s,u){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var g=t.entanglements,T=t.expirationTimes,O=t.hiddenUpdates;for(n=f&~n;0<n;){var B=31-ve(n),Y=1<<B;g[B]=0,T[B]=-1;var N=O[B];if(N!==null)for(O[B]=null,B=0;B<N.length;B++){var w=N[B];w!==null&&(w.lane&=-536870913)}n&=~Y}l!==0&&jr(t,l,0),u!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function jr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ve(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Mr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-ve(n),s=1<<l;s&e|t[l]&e&&(t[l]|=e),n&=~s}}function Cr(t,e){var n=e&-e;return n=(n&42)!==0?1:Mo(n),(n&(t.suspendedLanes|e))!==0?0:n}function Mo(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Co(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ar(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:pm(t.type))}function Or(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var jn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+jn,se="__reactProps$"+jn,Da="__reactContainer$"+jn,Ao="__reactEvents$"+jn,vv="__reactListeners$"+jn,yv="__reactHandles$"+jn,Nr="__reactResources$"+jn,Nl="__reactMarker$"+jn;function Oo(t){delete t[Pt],delete t[se],delete t[Ao],delete t[vv],delete t[yv]}function wa(t){var e=t[Pt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Da]||n[Pt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ih(t);t!==null;){if(n=t[Pt])return n;t=Ih(t)}return e}t=n,n=t.parentNode}return null}function La(t){if(t=t[Pt]||t[Da]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function zl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Ua(t){var e=t[Nr];return e||(e=t[Nr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Nl]=!0}var zr=new Set,Dr={};function ia(t,e){Ba(t,e),Ba(t+"Capture",e)}function Ba(t,e){for(Dr[t]=e,t=0;t<e.length;t++)zr.add(e[t])}var gv=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]*$"),wr={},Lr={};function xv(t){return aa.call(Lr,t)?!0:aa.call(wr,t)?!1:gv.test(t)?Lr[t]=!0:(wr[t]=!0,!1)}function Xi(t,e,n){if(xv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ki(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function an(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ur(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function bv(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function No(t){if(!t._valueTracker){var e=Ur(t)?"checked":"value";t._valueTracker=bv(t,e,""+t[e])}}function Br(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Ur(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Zi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Sv=/[\n"\\]/g;function Ce(t){return t.replace(Sv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function zo(t,e,n,l,s,u,f,g){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Do(t,f,Me(e)):n!=null?Do(t,f,Me(n)):l!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Me(g):t.removeAttribute("name")}function Hr(t,e,n,l,s,u,f,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){No(t);return}n=n!=null?""+Me(n):"",e=e!=null?""+Me(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=g?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),No(t)}function Do(t,e,n){e==="number"&&Zi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ha(t,e,n,l){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Me(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,l&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function qr(t,e,n){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Me(n):""}function Qr(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(Ht(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Me(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),No(t)}function qa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var _v=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 Yr(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||_v.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Gr(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var s in e)l=e[s],e.hasOwnProperty(s)&&n[s]!==l&&Yr(t,s,l)}else for(var u in e)e.hasOwnProperty(u)&&Yr(t,u,e[u])}function wo(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Tv=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"]]),Rv=/^[\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 ki(t){return Rv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ln(){}var Lo=null;function Uo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Qa=null,Ya=null;function Vr(t){var e=La(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(zo(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var s=l[se]||null;if(!s)throw Error(c(90));zo(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Br(l)}break t;case"textarea":qr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ha(t,!!n.multiple,e,!1)}}}var Bo=!1;function Xr(t,e,n){if(Bo)return t(e,n);Bo=!0;try{var l=t(e);return l}finally{if(Bo=!1,(Qa!==null||Ya!==null)&&(ws(),Qa&&(e=Qa,t=Ya,Ya=Qa=null,Vr(e),t)))for(e=0;e<t.length;e++)Vr(t[e])}}function Dl(t,e){var n=t.stateNode;if(n===null)return null;var l=n[se]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(c(231,e,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ho=!1;if(sn)try{var wl={};Object.defineProperty(wl,"passive",{get:function(){Ho=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{Ho=!1}var Mn=null,qo=null,Ji=null;function Kr(){if(Ji)return Ji;var t,e=qo,n=e.length,l,s="value"in Mn?Mn.value:Mn.textContent,u=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===s[u-l];l++);return Ji=s.slice(t,1<l?1-l:void 0)}function Fi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Pi(){return!0}function Zr(){return!1}function oe(t){function e(n,l,s,u,f){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Pi:Zr,this.isPropagationStopped=Zr,this}return y(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pi)},persist:function(){},isPersistent:Pi}),e}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$i=oe(sa),Ll=y({},sa,{view:0,detail:0}),Ev=oe(Ll),Qo,Yo,Ul,Wi=y({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vo,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ul&&(Ul&&t.type==="mousemove"?(Qo=t.screenX-Ul.screenX,Yo=t.screenY-Ul.screenY):Yo=Qo=0,Ul=t),Qo)},movementY:function(t){return"movementY"in t?t.movementY:Yo}}),kr=oe(Wi),jv=y({},Wi,{dataTransfer:0}),Mv=oe(jv),Cv=y({},Ll,{relatedTarget:0}),Go=oe(Cv),Av=y({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),Ov=oe(Av),Nv=y({},sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),zv=oe(Nv),Dv=y({},sa,{data:0}),Jr=oe(Dv),wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lv={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"},Uv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Uv[t])?!!e[t]:!1}function Vo(){return Bv}var Hv=y({},Ll,{key:function(t){if(t.key){var e=wv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Fi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vo,charCode:function(t){return t.type==="keypress"?Fi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qv=oe(Hv),Qv=y({},Wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fr=oe(Qv),Yv=y({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vo}),Gv=oe(Yv),Vv=y({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xv=oe(Vv),Kv=y({},Wi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Zv=oe(Kv),kv=y({},sa,{newState:0,oldState:0}),Jv=oe(kv),Fv=[9,13,27,32],Xo=sn&&"CompositionEvent"in window,Bl=null;sn&&"documentMode"in document&&(Bl=document.documentMode);var Pv=sn&&"TextEvent"in window&&!Bl,Pr=sn&&(!Xo||Bl&&8<Bl&&11>=Bl),$r=" ",Wr=!1;function Ir(t,e){switch(t){case"keyup":return Fv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ga=!1;function $v(t,e){switch(t){case"compositionend":return tf(e);case"keypress":return e.which!==32?null:(Wr=!0,$r);case"textInput":return t=e.data,t===$r&&Wr?null:t;default:return null}}function Wv(t,e){if(Ga)return t==="compositionend"||!Xo&&Ir(t,e)?(t=Kr(),Ji=qo=Mn=null,Ga=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Pr&&e.locale!=="ko"?null:e.data;default:return null}}var Iv={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 ef(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Iv[t.type]:e==="textarea"}function nf(t,e,n,l){Qa?Ya?Ya.push(l):Ya=[l]:Qa=l,e=Ys(e,"onChange"),0<e.length&&(n=new $i("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Hl=null,ql=null;function ty(t){qh(t,0)}function Ii(t){var e=zl(t);if(Br(e))return t}function af(t,e){if(t==="change")return e}var lf=!1;if(sn){var Ko;if(sn){var Zo="oninput"in document;if(!Zo){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),Zo=typeof sf.oninput=="function"}Ko=Zo}else Ko=!1;lf=Ko&&(!document.documentMode||9<document.documentMode)}function of(){Hl&&(Hl.detachEvent("onpropertychange",uf),ql=Hl=null)}function uf(t){if(t.propertyName==="value"&&Ii(ql)){var e=[];nf(e,ql,t,Uo(t)),Xr(ty,e)}}function ey(t,e,n){t==="focusin"?(of(),Hl=e,ql=n,Hl.attachEvent("onpropertychange",uf)):t==="focusout"&&of()}function ny(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ii(ql)}function ay(t,e){if(t==="click")return Ii(e)}function ly(t,e){if(t==="input"||t==="change")return Ii(e)}function iy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ye=typeof Object.is=="function"?Object.is:iy;function Ql(t,e){if(ye(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!aa.call(e,s)||!ye(t[s],e[s]))return!1}return!0}function cf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function rf(t,e){var n=cf(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=cf(n)}}function ff(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ff(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function df(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Zi(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Zi(t.document)}return e}function ko(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var sy=sn&&"documentMode"in document&&11>=document.documentMode,Va=null,Jo=null,Yl=null,Fo=!1;function hf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fo||Va==null||Va!==Zi(l)||(l=Va,"selectionStart"in l&&ko(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Yl&&Ql(Yl,l)||(Yl=l,l=Ys(Jo,"onSelect"),0<l.length&&(e=new $i("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Va)))}function oa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Xa={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},Po={},mf={};sn&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function ua(t){if(Po[t])return Po[t];if(!Xa[t])return t;var e=Xa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in mf)return Po[t]=e[n];return t}var pf=ua("animationend"),vf=ua("animationiteration"),yf=ua("animationstart"),oy=ua("transitionrun"),uy=ua("transitionstart"),cy=ua("transitioncancel"),gf=ua("transitionend"),xf=new Map,$o="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(" ");$o.push("scrollEnd");function qe(t,e){xf.set(t,e),ia(e,[t])}var ts=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],Ka=0,Wo=0;function es(){for(var t=Ka,e=Wo=Ka=0;e<t;){var n=Ae[e];Ae[e++]=null;var l=Ae[e];Ae[e++]=null;var s=Ae[e];Ae[e++]=null;var u=Ae[e];if(Ae[e++]=null,l!==null&&s!==null){var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}u!==0&&bf(n,s,u)}}function ns(t,e,n,l){Ae[Ka++]=t,Ae[Ka++]=e,Ae[Ka++]=n,Ae[Ka++]=l,Wo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Io(t,e,n,l){return ns(t,e,n,l),as(t)}function ca(t,e){return ns(t,null,null,e),as(t)}function bf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var s=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(s=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,s&&e!==null&&(s=31-ve(n),t=u.hiddenUpdates,l=t[s],l===null?t[s]=[e]:l.push(e),e.lane=n|536870912),u):null}function as(t){if(50<ci)throw ci=0,uc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Za={};function ry(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ge(t,e,n,l){return new ry(t,e,n,l)}function tu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function on(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Sf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ls(t,e,n,l,s,u){var f=0;if(l=t,typeof t=="function")tu(t)&&(f=1);else if(typeof t=="string")f=pg(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case J:return t=ge(31,n,e,s),t.elementType=J,t.lanes=u,t;case C:return ra(n.children,s,u,e);case D:f=8,s|=24;break;case L:return t=ge(12,n,e,s|2),t.elementType=L,t.lanes=u,t;case $:return t=ge(13,n,e,s),t.elementType=$,t.lanes=u,t;case F:return t=ge(19,n,e,s),t.elementType=F,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case V:f=10;break t;case z:f=9;break t;case G:f=11;break t;case H:f=14;break t;case X:f=16,l=null;break t}f=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=ge(f,n,e,s),e.elementType=t,e.type=l,e.lanes=u,e}function ra(t,e,n,l){return t=ge(7,t,l,e),t.lanes=n,t}function eu(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function _f(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function nu(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Tf=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var n=Tf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:nn(e)},Tf.set(t,e),e)}return{value:t,source:e,stack:nn(e)}}var ka=[],Ja=0,is=null,Gl=0,Ne=[],ze=0,Cn=null,Ke=1,Ze="";function un(t,e){ka[Ja++]=Gl,ka[Ja++]=is,is=t,Gl=e}function Rf(t,e,n){Ne[ze++]=Ke,Ne[ze++]=Ze,Ne[ze++]=Cn,Cn=t;var l=Ke;t=Ze;var s=32-ve(l)-1;l&=~(1<<s),n+=1;var u=32-ve(e)+s;if(30<u){var f=s-s%5;u=(l&(1<<f)-1).toString(32),l>>=f,s-=f,Ke=1<<32-ve(e)+s|n<<s|l,Ze=u+t}else Ke=1<<u|n<<s|l,Ze=t}function au(t){t.return!==null&&(un(t,1),Rf(t,1,0))}function lu(t){for(;t===is;)is=ka[--Ja],ka[Ja]=null,Gl=ka[--Ja],ka[Ja]=null;for(;t===Cn;)Cn=Ne[--ze],Ne[ze]=null,Ze=Ne[--ze],Ne[ze]=null,Ke=Ne[--ze],Ne[ze]=null}function Ef(t,e){Ne[ze++]=Ke,Ne[ze++]=Ze,Ne[ze++]=Cn,Ke=e.id,Ze=e.overflow,Cn=t}var $t=null,Ot=null,pt=!1,An=null,De=!1,iu=Error(c(519));function On(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vl(Oe(e,t)),iu}function jf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Pt]=t,e[se]=l,n){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(n=0;n<fi.length;n++)dt(fi[n],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Hr(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Qr(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||Vh(e.textContent,n)?(l.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),l.onScroll!=null&&dt("scroll",e),l.onScrollEnd!=null&&dt("scrollend",e),l.onClick!=null&&(e.onclick=ln),e=!0):e=!1,e||On(t,!0)}function Mf(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:$t=$t.return}}function Fa(t){if(t!==$t)return!1;if(!pt)return Mf(t),pt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Tc(t.type,t.memoizedProps)),n=!n),n&&Ot&&On(t),Mf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ot=Wh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ot=Wh(t)}else e===27?(e=Ot,Xn(t.type)?(t=Cc,Cc=null,Ot=t):Ot=e):Ot=$t?Le(t.stateNode.nextSibling):null;return!0}function fa(){Ot=$t=null,pt=!1}function su(){var t=An;return t!==null&&(fe===null?fe=t:fe.push.apply(fe,t),An=null),t}function Vl(t){An===null?An=[t]:An.push(t)}var ou=E(null),da=null,cn=null;function Nn(t,e,n){Z(ou,e._currentValue),e._currentValue=n}function rn(t){t._currentValue=ou.current,Q(ou)}function uu(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function cu(t,e,n,l){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){var f=s.child;u=u.firstContext;t:for(;u!==null;){var g=u;u=s;for(var T=0;T<e.length;T++)if(g.context===e[T]){u.lanes|=n,g=u.alternate,g!==null&&(g.lanes|=n),uu(u.return,n,t),l||(f=null);break t}u=g.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(c(341));f.lanes|=n,u=f.alternate,u!==null&&(u.lanes|=n),uu(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function Pa(t,e,n,l){t=null;for(var s=e,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var g=s.type;ye(s.pendingProps.value,f.value)||(t!==null?t.push(g):t=[g])}}else if(s===vt.current){if(f=s.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(vi):t=[vi])}s=s.return}t!==null&&cu(e,t,n,l),e.flags|=262144}function ss(t){for(t=t.firstContext;t!==null;){if(!ye(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){da=t,cn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return Cf(da,t)}function os(t,e){return da===null&&ha(t),Cf(t,e)}function Cf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},cn===null){if(t===null)throw Error(c(308));cn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else cn=cn.next=e;return n}var fy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},dy=a.unstable_scheduleCallback,hy=a.unstable_NormalPriority,Gt={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ru(){return{controller:new fy,data:new Map,refCount:0}}function Xl(t){t.refCount--,t.refCount===0&&dy(hy,function(){t.controller.abort()})}var Kl=null,fu=0,$a=0,Wa=null;function my(t,e){if(Kl===null){var n=Kl=[];fu=0,$a=mc(),Wa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return fu++,e.then(Af,Af),e}function Af(){if(--fu===0&&Kl!==null){Wa!==null&&(Wa.status="fulfilled");var t=Kl;Kl=null,$a=0,Wa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function py(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var Of=U.S;U.S=function(t,e){hh=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&my(t,e),Of!==null&&Of(t,e)};var ma=E(null);function du(){var t=ma.current;return t!==null?t:Ct.pooledCache}function us(t,e){e===null?Z(ma,ma.current):Z(ma,e.pool)}function Nf(){var t=du();return t===null?null:{parent:Gt._currentValue,pool:t}}var Ia=Error(c(460)),hu=Error(c(474)),cs=Error(c(542)),rs={then:function(){}};function zf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Df(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ln,ln),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lf(t),t;default:if(typeof e.status=="string")e.then(ln,ln);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=l}},function(l){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lf(t),t}throw va=e,Ia}}function pa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(va=n,Ia):n}}var va=null;function wf(){if(va===null)throw Error(c(459));var t=va;return va=null,t}function Lf(t){if(t===Ia||t===cs)throw Error(c(483))}var tl=null,Zl=0;function fs(t){var e=Zl;return Zl+=1,tl===null&&(tl=[]),Df(tl,t,e)}function kl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ds(t,e){throw e.$$typeof===S?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Uf(t){function e(M,R){if(t){var A=M.deletions;A===null?(M.deletions=[R],M.flags|=16):A.push(R)}}function n(M,R){if(!t)return null;for(;R!==null;)e(M,R),R=R.sibling;return null}function l(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function s(M,R){return M=on(M,R),M.index=0,M.sibling=null,M}function u(M,R,A){return M.index=A,t?(A=M.alternate,A!==null?(A=A.index,A<R?(M.flags|=67108866,R):A):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function f(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function g(M,R,A,q){return R===null||R.tag!==6?(R=eu(A,M.mode,q),R.return=M,R):(R=s(R,A),R.return=M,R)}function T(M,R,A,q){var nt=A.type;return nt===C?B(M,R,A.props.children,q,A.key):R!==null&&(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&pa(nt)===R.type)?(R=s(R,A.props),kl(R,A),R.return=M,R):(R=ls(A.type,A.key,A.props,null,M.mode,q),kl(R,A),R.return=M,R)}function O(M,R,A,q){return R===null||R.tag!==4||R.stateNode.containerInfo!==A.containerInfo||R.stateNode.implementation!==A.implementation?(R=nu(A,M.mode,q),R.return=M,R):(R=s(R,A.children||[]),R.return=M,R)}function B(M,R,A,q,nt){return R===null||R.tag!==7?(R=ra(A,M.mode,q,nt),R.return=M,R):(R=s(R,A),R.return=M,R)}function Y(M,R,A){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=eu(""+R,M.mode,A),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return A=ls(R.type,R.key,R.props,null,M.mode,A),kl(A,R),A.return=M,A;case j:return R=nu(R,M.mode,A),R.return=M,R;case X:return R=pa(R),Y(M,R,A)}if(Ht(R)||et(R))return R=ra(R,M.mode,A,null),R.return=M,R;if(typeof R.then=="function")return Y(M,fs(R),A);if(R.$$typeof===V)return Y(M,os(M,R),A);ds(M,R)}return null}function N(M,R,A,q){var nt=R!==null?R.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:g(M,R,""+A,q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?T(M,R,A,q):null;case j:return A.key===nt?O(M,R,A,q):null;case X:return A=pa(A),N(M,R,A,q)}if(Ht(A)||et(A))return nt!==null?null:B(M,R,A,q,null);if(typeof A.then=="function")return N(M,R,fs(A),q);if(A.$$typeof===V)return N(M,R,os(M,A),q);ds(M,A)}return null}function w(M,R,A,q,nt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return M=M.get(A)||null,g(R,M,""+q,nt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return M=M.get(q.key===null?A:q.key)||null,T(R,M,q,nt);case j:return M=M.get(q.key===null?A:q.key)||null,O(R,M,q,nt);case X:return q=pa(q),w(M,R,A,q,nt)}if(Ht(q)||et(q))return M=M.get(A)||null,B(R,M,q,nt,null);if(typeof q.then=="function")return w(M,R,A,fs(q),nt);if(q.$$typeof===V)return w(M,R,A,os(R,q),nt);ds(R,q)}return null}function W(M,R,A,q){for(var nt=null,yt=null,I=R,ct=R=0,mt=null;I!==null&&ct<A.length;ct++){I.index>ct?(mt=I,I=null):mt=I.sibling;var gt=N(M,I,A[ct],q);if(gt===null){I===null&&(I=mt);break}t&&I&>.alternate===null&&e(M,I),R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt,I=mt}if(ct===A.length)return n(M,I),pt&&un(M,ct),nt;if(I===null){for(;ct<A.length;ct++)I=Y(M,A[ct],q),I!==null&&(R=u(I,R,ct),yt===null?nt=I:yt.sibling=I,yt=I);return pt&&un(M,ct),nt}for(I=l(I);ct<A.length;ct++)mt=w(I,M,ct,A[ct],q),mt!==null&&(t&&mt.alternate!==null&&I.delete(mt.key===null?ct:mt.key),R=u(mt,R,ct),yt===null?nt=mt:yt.sibling=mt,yt=mt);return t&&I.forEach(function(Fn){return e(M,Fn)}),pt&&un(M,ct),nt}function st(M,R,A,q){if(A==null)throw Error(c(151));for(var nt=null,yt=null,I=R,ct=R=0,mt=null,gt=A.next();I!==null&&!gt.done;ct++,gt=A.next()){I.index>ct?(mt=I,I=null):mt=I.sibling;var Fn=N(M,I,gt.value,q);if(Fn===null){I===null&&(I=mt);break}t&&I&&Fn.alternate===null&&e(M,I),R=u(Fn,R,ct),yt===null?nt=Fn:yt.sibling=Fn,yt=Fn,I=mt}if(gt.done)return n(M,I),pt&&un(M,ct),nt;if(I===null){for(;!gt.done;ct++,gt=A.next())gt=Y(M,gt.value,q),gt!==null&&(R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt);return pt&&un(M,ct),nt}for(I=l(I);!gt.done;ct++,gt=A.next())gt=w(I,M,ct,gt.value,q),gt!==null&&(t&>.alternate!==null&&I.delete(gt.key===null?ct:gt.key),R=u(gt,R,ct),yt===null?nt=gt:yt.sibling=gt,yt=gt);return t&&I.forEach(function(jg){return e(M,jg)}),pt&&un(M,ct),nt}function jt(M,R,A,q){if(typeof A=="object"&&A!==null&&A.type===C&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var nt=A.key;R!==null;){if(R.key===nt){if(nt=A.type,nt===C){if(R.tag===7){n(M,R.sibling),q=s(R,A.props.children),q.return=M,M=q;break t}}else if(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&pa(nt)===R.type){n(M,R.sibling),q=s(R,A.props),kl(q,A),q.return=M,M=q;break t}n(M,R);break}else e(M,R);R=R.sibling}A.type===C?(q=ra(A.props.children,M.mode,q,A.key),q.return=M,M=q):(q=ls(A.type,A.key,A.props,null,M.mode,q),kl(q,A),q.return=M,M=q)}return f(M);case j:t:{for(nt=A.key;R!==null;){if(R.key===nt)if(R.tag===4&&R.stateNode.containerInfo===A.containerInfo&&R.stateNode.implementation===A.implementation){n(M,R.sibling),q=s(R,A.children||[]),q.return=M,M=q;break t}else{n(M,R);break}else e(M,R);R=R.sibling}q=nu(A,M.mode,q),q.return=M,M=q}return f(M);case X:return A=pa(A),jt(M,R,A,q)}if(Ht(A))return W(M,R,A,q);if(et(A)){if(nt=et(A),typeof nt!="function")throw Error(c(150));return A=nt.call(A),st(M,R,A,q)}if(typeof A.then=="function")return jt(M,R,fs(A),q);if(A.$$typeof===V)return jt(M,R,os(M,A),q);ds(M,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,R!==null&&R.tag===6?(n(M,R.sibling),q=s(R,A),q.return=M,M=q):(n(M,R),q=eu(A,M.mode,q),q.return=M,M=q),f(M)):n(M,R)}return function(M,R,A,q){try{Zl=0;var nt=jt(M,R,A,q);return tl=null,nt}catch(I){if(I===Ia||I===cs)throw I;var yt=ge(29,I,null,M.mode);return yt.lanes=q,yt.return=M,yt}}}var ya=Uf(!0),Bf=Uf(!1),zn=!1;function mu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var s=l.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),l.pending=e,e=as(t),bf(t,null,n),e}return ns(t,l,e,n),as(t)}function Jl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Mr(t,n)}}function vu(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var yu=!1;function Fl(){if(yu){var t=Wa;if(t!==null)throw t}}function Pl(t,e,n,l){yu=!1;var s=t.updateQueue;zn=!1;var u=s.firstBaseUpdate,f=s.lastBaseUpdate,g=s.shared.pending;if(g!==null){s.shared.pending=null;var T=g,O=T.next;T.next=null,f===null?u=O:f.next=O,f=T;var B=t.alternate;B!==null&&(B=B.updateQueue,g=B.lastBaseUpdate,g!==f&&(g===null?B.firstBaseUpdate=O:g.next=O,B.lastBaseUpdate=T))}if(u!==null){var Y=s.baseState;f=0,B=O=T=null,g=u;do{var N=g.lane&-536870913,w=N!==g.lane;if(w?(ht&N)===N:(l&N)===N){N!==0&&N===$a&&(yu=!0),B!==null&&(B=B.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var W=t,st=g;N=e;var jt=n;switch(st.tag){case 1:if(W=st.payload,typeof W=="function"){Y=W.call(jt,Y,N);break t}Y=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=st.payload,N=typeof W=="function"?W.call(jt,Y,N):W,N==null)break t;Y=y({},Y,N);break t;case 2:zn=!0}}N=g.callback,N!==null&&(t.flags|=64,w&&(t.flags|=8192),w=s.callbacks,w===null?s.callbacks=[N]:w.push(N))}else w={lane:N,tag:g.tag,payload:g.payload,callback:g.callback,next:null},B===null?(O=B=w,T=Y):B=B.next=w,f|=N;if(g=g.next,g===null){if(g=s.shared.pending,g===null)break;w=g,g=w.next,w.next=null,s.lastBaseUpdate=w,s.shared.pending=null}}while(!0);B===null&&(T=Y),s.baseState=T,s.firstBaseUpdate=O,s.lastBaseUpdate=B,u===null&&(s.shared.lanes=0),qn|=f,t.lanes=f,t.memoizedState=Y}}function Hf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function qf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Hf(n[t],e)}var el=E(null),hs=E(0);function Qf(t,e){t=xn,Z(hs,t),Z(el,e),xn=t|e.baseLanes}function gu(){Z(hs,xn),Z(el,el.current)}function xu(){xn=hs.current,Q(el),Q(hs)}var xe=E(null),we=null;function Ln(t){var e=t.alternate;Z(Qt,Qt.current&1),Z(xe,t),we===null&&(e===null||el.current!==null||e.memoizedState!==null)&&(we=t)}function bu(t){Z(Qt,Qt.current),Z(xe,t),we===null&&(we=t)}function Yf(t){t.tag===22?(Z(Qt,Qt.current),Z(xe,t),we===null&&(we=t)):Un()}function Un(){Z(Qt,Qt.current),Z(xe,xe.current)}function be(t){Q(xe),we===t&&(we=null),Q(Qt)}var Qt=E(0);function ms(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||jc(n)||Mc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fn=0,ut=null,Rt=null,Vt=null,ps=!1,nl=!1,ga=!1,vs=0,$l=0,al=null,vy=0;function Ut(){throw Error(c(321))}function Su(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ye(t[n],e[n]))return!1;return!0}function _u(t,e,n,l,s,u){return fn=u,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Rd:Bu,ga=!1,u=n(l,s),ga=!1,nl&&(u=Vf(e,n,l,s)),Gf(t),u}function Gf(t){U.H=ti;var e=Rt!==null&&Rt.next!==null;if(fn=0,Vt=Rt=ut=null,ps=!1,$l=0,al=null,e)throw Error(c(300));t===null||Xt||(t=t.dependencies,t!==null&&ss(t)&&(Xt=!0))}function Vf(t,e,n,l){ut=t;var s=0;do{if(nl&&(al=null),$l=0,nl=!1,25<=s)throw Error(c(301));if(s+=1,Vt=Rt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=Ed,u=e(n,l)}while(nl);return u}function yy(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Wl(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(ut.flags|=1024),e}function Tu(){var t=vs!==0;return vs=0,t}function Ru(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Eu(t){if(ps){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ps=!1}fn=0,Vt=Rt=ut=null,nl=!1,$l=vs=0,al=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?ut.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Yt(){if(Rt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Vt===null?ut.memoizedState:Vt.next;if(e!==null)Vt=e,Rt=t;else{if(t===null)throw ut.alternate===null?Error(c(467)):Error(c(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Vt===null?ut.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function ys(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wl(t){var e=$l;return $l+=1,al===null&&(al=[]),t=Df(al,t,e),e=ut,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Rd:Bu),t}function gs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Wl(t);if(t.$$typeof===V)return Wt(t)}throw Error(c(438,String(t)))}function ju(t){var e=null,n=ut.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ut.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ys(),ut.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=it;return e.index++,n}function dn(t,e){return typeof e=="function"?e(t):e}function xs(t){var e=Yt();return Mu(e,Rt,t)}function Mu(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var s=t.baseQueue,u=l.pending;if(u!==null){if(s!==null){var f=s.next;s.next=u.next,u.next=f}e.baseQueue=s=u,l.pending=null}if(u=t.baseState,s===null)t.memoizedState=u;else{e=s.next;var g=f=null,T=null,O=e,B=!1;do{var Y=O.lane&-536870913;if(Y!==O.lane?(ht&Y)===Y:(fn&Y)===Y){var N=O.revertLane;if(N===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Y===$a&&(B=!0);else if((fn&N)===N){O=O.next,N===$a&&(B=!0);continue}else Y={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(g=T=Y,f=u):T=T.next=Y,ut.lanes|=N,qn|=N;Y=O.action,ga&&n(u,Y),u=O.hasEagerState?O.eagerState:n(u,Y)}else N={lane:Y,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(g=T=N,f=u):T=T.next=N,ut.lanes|=Y,qn|=Y;O=O.next}while(O!==null&&O!==e);if(T===null?f=u:T.next=g,!ye(u,t.memoizedState)&&(Xt=!0,B&&(n=Wa,n!==null)))throw n;t.memoizedState=u,t.baseState=f,t.baseQueue=T,l.lastRenderedState=u}return s===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Cu(t){var e=Yt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,s=n.pending,u=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do u=t(u,f.action),f=f.next;while(f!==s);ye(u,e.memoizedState)||(Xt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function Xf(t,e,n){var l=ut,s=Yt(),u=pt;if(u){if(n===void 0)throw Error(c(407));n=n()}else n=e();var f=!ye((Rt||s).memoizedState,n);if(f&&(s.memoizedState=n,Xt=!0),s=s.queue,Nu(kf.bind(null,l,s,t),[t]),s.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(l.flags|=2048,ll(9,{destroy:void 0},Zf.bind(null,l,s,n,e),null),Ct===null)throw Error(c(349));u||(fn&127)!==0||Kf(l,e,n)}return n}function Kf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ut.updateQueue,e===null?(e=ys(),ut.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Zf(t,e,n,l){e.value=n,e.getSnapshot=l,Jf(e)&&Ff(t)}function kf(t,e,n){return n(function(){Jf(e)&&Ff(t)})}function Jf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ye(t,n)}catch{return!0}}function Ff(t){var e=ca(t,2);e!==null&&de(e,t,2)}function Au(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ga){En(!0);try{n()}finally{En(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:t},e}function Pf(t,e,n,l){return t.baseState=n,Mu(t,Rt,typeof l=="function"?l:dn)}function gy(t,e,n,l,s){if(_s(t))throw Error(c(485));if(t=e.action,t!==null){var u={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};U.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,$f(e,u)):(u.next=n.next,e.pending=n.next=u)}}function $f(t,e){var n=e.action,l=e.payload,s=t.state;if(e.isTransition){var u=U.T,f={};U.T=f;try{var g=n(s,l),T=U.S;T!==null&&T(f,g),Wf(t,e,g)}catch(O){Ou(t,e,O)}finally{u!==null&&f.types!==null&&(u.types=f.types),U.T=u}}else try{u=n(s,l),Wf(t,e,u)}catch(O){Ou(t,e,O)}}function Wf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){If(t,e,l)},function(l){return Ou(t,e,l)}):If(t,e,n)}function If(t,e,n){e.status="fulfilled",e.value=n,td(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$f(t,n)))}function Ou(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,td(e),e=e.next;while(e!==l)}t.action=null}function td(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ed(t,e){return e}function nd(t,e){if(pt){var n=Ct.formState;if(n!==null){t:{var l=ut;if(pt){if(Ot){e:{for(var s=Ot,u=De;s.nodeType!==8;){if(!u){s=null;break e}if(s=Le(s.nextSibling),s===null){s=null;break e}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){Ot=Le(s.nextSibling),l=s.data==="F!";break t}}On(l)}l=!1}l&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ed,lastRenderedState:e},n.queue=l,n=Sd.bind(null,ut,l),l.dispatch=n,l=Au(!1),u=Uu.bind(null,ut,!1,l.queue),l=ie(),s={state:e,dispatch:null,action:t,pending:null},l.queue=s,n=gy.bind(null,ut,s,u,n),s.dispatch=n,l.memoizedState=t,[e,n,!1]}function ad(t){var e=Yt();return ld(e,Rt,t)}function ld(t,e,n){if(e=Mu(t,e,ed)[0],t=xs(dn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Wl(e)}catch(f){throw f===Ia?cs:f}else l=e;e=Yt();var s=e.queue,u=s.dispatch;return n!==e.memoizedState&&(ut.flags|=2048,ll(9,{destroy:void 0},xy.bind(null,s,n),null)),[l,u,t]}function xy(t,e){t.action=e}function id(t){var e=Yt(),n=Rt;if(n!==null)return ld(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ll(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ut.updateQueue,e===null&&(e=ys(),ut.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function sd(){return Yt().memoizedState}function bs(t,e,n,l){var s=ie();ut.flags|=t,s.memoizedState=ll(1|e,{destroy:void 0},n,l===void 0?null:l)}function Ss(t,e,n,l){var s=Yt();l=l===void 0?null:l;var u=s.memoizedState.inst;Rt!==null&&l!==null&&Su(l,Rt.memoizedState.deps)?s.memoizedState=ll(e,u,n,l):(ut.flags|=t,s.memoizedState=ll(1|e,u,n,l))}function od(t,e){bs(8390656,8,t,e)}function Nu(t,e){Ss(2048,8,t,e)}function by(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=ys(),ut.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ud(t){var e=Yt().memoizedState;return by({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function cd(t,e){return Ss(4,2,t,e)}function rd(t,e){return Ss(4,4,t,e)}function fd(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function dd(t,e,n){n=n!=null?n.concat([t]):null,Ss(4,4,fd.bind(null,e,t),n)}function zu(){}function hd(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Su(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function md(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Su(e,l[1]))return l[0];if(l=t(),ga){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l}function Du(t,e,n){return n===void 0||(fn&1073741824)!==0&&(ht&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ph(),ut.lanes|=t,qn|=t,n)}function pd(t,e,n,l){return ye(n,e)?n:el.current!==null?(t=Du(t,n,l),ye(t,e)||(Xt=!0),t):(fn&42)===0||(fn&1073741824)!==0&&(ht&261930)===0?(Xt=!0,t.memoizedState=n):(t=ph(),ut.lanes|=t,qn|=t,e)}function vd(t,e,n,l,s){var u=K.p;K.p=u!==0&&8>u?u:8;var f=U.T,g={};U.T=g,Uu(t,!1,e,n);try{var T=s(),O=U.S;if(O!==null&&O(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=py(T,l);Il(t,e,B,Te(t))}else Il(t,e,l,Te(t))}catch(Y){Il(t,e,{then:function(){},status:"rejected",reason:Y},Te())}finally{K.p=u,f!==null&&g.types!==null&&(f.types=g.types),U.T=f}}function Sy(){}function wu(t,e,n,l){if(t.tag!==5)throw Error(c(476));var s=yd(t).queue;vd(t,s,e,lt,n===null?Sy:function(){return gd(t),n(l)})}function yd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:lt,baseState:lt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:lt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function gd(t){var e=yd(t);e.next===null&&(e=t.alternate.memoizedState),Il(t,e.next.queue,{},Te())}function Lu(){return Wt(vi)}function xd(){return Yt().memoizedState}function bd(){return Yt().memoizedState}function _y(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Te();t=Dn(n);var l=wn(e,t,n);l!==null&&(de(l,e,n),Jl(l,e,n)),e={cache:ru()},t.payload=e;return}e=e.return}}function Ty(t,e,n){var l=Te();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_s(t)?_d(e,n):(n=Io(t,e,n,l),n!==null&&(de(n,t,l),Td(n,e,l)))}function Sd(t,e,n){var l=Te();Il(t,e,n,l)}function Il(t,e,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_s(t))_d(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,g=u(f,n);if(s.hasEagerState=!0,s.eagerState=g,ye(g,f))return ns(t,e,s,0),Ct===null&&es(),!1}catch{}if(n=Io(t,e,s,l),n!==null)return de(n,t,l),Td(n,e,l),!0}return!1}function Uu(t,e,n,l){if(l={lane:2,revertLane:mc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_s(t)){if(e)throw Error(c(479))}else e=Io(t,n,l,2),e!==null&&de(e,t,2)}function _s(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function _d(t,e){nl=ps=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Td(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Mr(t,n)}}var ti={readContext:Wt,use:gs,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};ti.useEffectEvent=Ut;var Rd={readContext:Wt,use:gs,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:od,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,bs(4194308,4,fd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return bs(4194308,4,t,e)},useInsertionEffect:function(t,e){bs(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var l=t();if(ga){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ie();if(n!==void 0){var s=n(e);if(ga){En(!0);try{n(e)}finally{En(!1)}}}else s=e;return l.memoizedState=l.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},l.queue=t,t=t.dispatch=Ty.bind(null,ut,t),[l.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=Au(t);var e=t.queue,n=Sd.bind(null,ut,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:zu,useDeferredValue:function(t,e){var n=ie();return Du(n,t,e)},useTransition:function(){var t=Au(!1);return t=vd.bind(null,ut,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ut,s=ie();if(pt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Ct===null)throw Error(c(349));(ht&127)!==0||Kf(l,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,od(kf.bind(null,l,u,t),[t]),l.flags|=2048,ll(9,{destroy:void 0},Zf.bind(null,l,u,n,e),null),n},useId:function(){var t=ie(),e=Ct.identifierPrefix;if(pt){var n=Ze,l=Ke;n=(l&~(1<<32-ve(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=vs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=vy++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Lu,useFormState:nd,useActionState:nd,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Uu.bind(null,ut,!0,n),n.dispatch=e,[t,e]},useMemoCache:ju,useCacheRefresh:function(){return ie().memoizedState=_y.bind(null,ut)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Bu={readContext:Wt,use:gs,useCallback:hd,useContext:Wt,useEffect:Nu,useImperativeHandle:dd,useInsertionEffect:cd,useLayoutEffect:rd,useMemo:md,useReducer:xs,useRef:sd,useState:function(){return xs(dn)},useDebugValue:zu,useDeferredValue:function(t,e){var n=Yt();return pd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=xs(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:Xf,useId:xd,useHostTransitionStatus:Lu,useFormState:ad,useActionState:ad,useOptimistic:function(t,e){var n=Yt();return Pf(n,Rt,t,e)},useMemoCache:ju,useCacheRefresh:bd};Bu.useEffectEvent=ud;var Ed={readContext:Wt,use:gs,useCallback:hd,useContext:Wt,useEffect:Nu,useImperativeHandle:dd,useInsertionEffect:cd,useLayoutEffect:rd,useMemo:md,useReducer:Cu,useRef:sd,useState:function(){return Cu(dn)},useDebugValue:zu,useDeferredValue:function(t,e){var n=Yt();return Rt===null?Du(n,t,e):pd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Cu(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:Xf,useId:xd,useHostTransitionStatus:Lu,useFormState:id,useActionState:id,useOptimistic:function(t,e){var n=Yt();return Rt!==null?Pf(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ju,useCacheRefresh:bd};Ed.useEffectEvent=ud;function Hu(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:y({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var qu={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Te(),s=Dn(l);s.payload=e,n!=null&&(s.callback=n),e=wn(t,s,l),e!==null&&(de(e,t,l),Jl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Te(),s=Dn(l);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=wn(t,s,l),e!==null&&(de(e,t,l),Jl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Te(),l=Dn(n);l.tag=2,e!=null&&(l.callback=e),e=wn(t,l,n),e!==null&&(de(e,t,n),Jl(e,t,n))}};function jd(t,e,n,l,s,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,f):e.prototype&&e.prototype.isPureReactComponent?!Ql(n,l)||!Ql(s,u):!0}function Md(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&qu.enqueueReplaceState(e,e.state,null)}function xa(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=y({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Cd(t){ts(t)}function Ad(t){console.error(t)}function Od(t){ts(t)}function Ts(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Nd(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Qu(t,e,n){return n=Dn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ts(t,e)},n}function zd(t){return t=Dn(t),t.tag=3,t}function Dd(t,e,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=l.value;t.payload=function(){return s(u)},t.callback=function(){Nd(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Nd(e,n,l),typeof s!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function Ry(t,e,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Pa(e,n,s,!0),n=xe.current,n!==null){switch(n.tag){case 31:case 13:return we===null?Ls():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===rs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),fc(t,l,s)),!1;case 22:return n.flags|=65536,l===rs?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),fc(t,l,s)),!1}throw Error(c(435,n.tag))}return fc(t,l,s),Ls(),!1}if(pt)return e=xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,l!==iu&&(t=Error(c(422),{cause:l}),Vl(Oe(t,n)))):(l!==iu&&(e=Error(c(423),{cause:l}),Vl(Oe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,l=Oe(l,n),s=Qu(t.stateNode,l,s),vu(t,s),Bt!==4&&(Bt=2)),!1;var u=Error(c(520),{cause:l});if(u=Oe(u,n),ui===null?ui=[u]:ui.push(u),Bt!==4&&(Bt=2),e===null)return!0;l=Oe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Qu(n.stateNode,l,t),vu(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Qn===null||!Qn.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=zd(s),Dd(s,t,n,l),vu(n,s),!1}n=n.return}while(n!==null);return!1}var Yu=Error(c(461)),Xt=!1;function It(t,e,n,l){e.child=t===null?Bf(e,null,n,l):ya(e,t.child,n,l)}function wd(t,e,n,l,s){n=n.render;var u=e.ref;if("ref"in l){var f={};for(var g in l)g!=="ref"&&(f[g]=l[g])}else f=l;return ha(e),l=_u(t,e,n,f,u,s),g=Tu(),t!==null&&!Xt?(Ru(t,e,s),hn(t,e,s)):(pt&&g&&au(e),e.flags|=1,It(t,e,l,s),e.child)}function Ld(t,e,n,l,s){if(t===null){var u=n.type;return typeof u=="function"&&!tu(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Ud(t,e,u,l,s)):(t=ls(n.type,null,l,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Fu(t,s)){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(f,l)&&t.ref===e.ref)return hn(t,e,s)}return e.flags|=1,t=on(u,l),t.ref=e.ref,t.return=e,e.child=t}function Ud(t,e,n,l,s){if(t!==null){var u=t.memoizedProps;if(Ql(u,l)&&t.ref===e.ref)if(Xt=!1,e.pendingProps=l=u,Fu(t,s))(t.flags&131072)!==0&&(Xt=!0);else return e.lanes=t.lanes,hn(t,e,s)}return Gu(t,e,n,l,s)}function Bd(t,e,n,l){var s=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~u}else l=0,e.child=null;return Hd(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&us(e,u!==null?u.cachePool:null),u!==null?Qf(e,u):gu(),Yf(e);else return l=e.lanes=536870912,Hd(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(us(e,u.cachePool),Qf(e,u),Un(),e.memoizedState=null):(t!==null&&us(e,null),gu(),Un());return It(t,e,s,n),e.child}function ei(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Hd(t,e,n,l,s){var u=du();return u=u===null?null:{parent:Gt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&us(e,null),gu(),Yf(e),t!==null&&Pa(t,e,l,!0),e.childLanes=s,null}function Rs(t,e){return e=js({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function qd(t,e,n){return ya(e,t.child,null,n),t=Rs(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function Ey(t,e,n){var l=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(pt){if(l.mode==="hidden")return t=Rs(e,l),e.lanes=536870912,ei(null,t);if(bu(e),(t=Ot)?(t=$h(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Cn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=_f(t),n.return=e,e.child=n,$t=e,Ot=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return Rs(e,l)}var u=t.memoizedState;if(u!==null){var f=u.dehydrated;if(bu(e),s)if(e.flags&256)e.flags&=-257,e=qd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Xt||Pa(t,e,n,!1),s=(n&t.childLanes)!==0,Xt||s){if(l=Ct,l!==null&&(f=Cr(l,n),f!==0&&f!==u.retryLane))throw u.retryLane=f,ca(t,f),de(l,t,f),Yu;Ls(),e=qd(t,e,n)}else t=u.treeContext,Ot=Le(f.nextSibling),$t=e,pt=!0,An=null,De=!1,t!==null&&Ef(e,t),e=Rs(e,l),e.flags|=4096;return e}return t=on(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Es(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Gu(t,e,n,l,s){return ha(e),n=_u(t,e,n,l,void 0,s),l=Tu(),t!==null&&!Xt?(Ru(t,e,s),hn(t,e,s)):(pt&&l&&au(e),e.flags|=1,It(t,e,n,s),e.child)}function Qd(t,e,n,l,s,u){return ha(e),e.updateQueue=null,n=Vf(e,l,n,s),Gf(t),l=Tu(),t!==null&&!Xt?(Ru(t,e,u),hn(t,e,u)):(pt&&l&&au(e),e.flags|=1,It(t,e,n,u),e.child)}function Yd(t,e,n,l,s){if(ha(e),e.stateNode===null){var u=Za,f=n.contextType;typeof f=="object"&&f!==null&&(u=Wt(f)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=qu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},mu(e),f=n.contextType,u.context=typeof f=="object"&&f!==null?Wt(f):Za,u.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Hu(e,n,f,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&qu.enqueueReplaceState(u,u.state,null),Pl(e,l,u,s),Fl(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var g=e.memoizedProps,T=xa(n,g);u.props=T;var O=u.context,B=n.contextType;f=Za,typeof B=="object"&&B!==null&&(f=Wt(B));var Y=n.getDerivedStateFromProps;B=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,B||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||O!==f)&&Md(e,u,l,f),zn=!1;var N=e.memoizedState;u.state=N,Pl(e,l,u,s),Fl(),O=e.memoizedState,g||N!==O||zn?(typeof Y=="function"&&(Hu(e,n,Y,l),O=e.memoizedState),(T=zn||jd(e,n,T,l,N,O,f))?(B||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=O),u.props=l,u.state=O,u.context=f,l=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,pu(t,e),f=e.memoizedProps,B=xa(n,f),u.props=B,Y=e.pendingProps,N=u.context,O=n.contextType,T=Za,typeof O=="object"&&O!==null&&(T=Wt(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==Y||N!==T)&&Md(e,u,l,T),zn=!1,N=e.memoizedState,u.state=N,Pl(e,l,u,s),Fl();var w=e.memoizedState;f!==Y||N!==w||zn||t!==null&&t.dependencies!==null&&ss(t.dependencies)?(typeof g=="function"&&(Hu(e,n,g,l),w=e.memoizedState),(B=zn||jd(e,n,B,l,N,w,T)||t!==null&&t.dependencies!==null&&ss(t.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,w,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,w,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=w),u.props=l,u.state=w,u.context=T,l=B):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,Es(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=ya(e,t.child,null,s),e.child=ya(e,null,n,s)):It(t,e,n,s),e.memoizedState=u.state,t=e.child):t=hn(t,e,s),t}function Gd(t,e,n,l){return fa(),e.flags|=256,It(t,e,n,l),e.child}var Vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xu(t){return{baseLanes:t,cachePool:Nf()}}function Ku(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=_e),t}function Vd(t,e,n){var l=e.pendingProps,s=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(pt){if(s?Ln(e):Un(),(t=Ot)?(t=$h(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Cn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=_f(t),n.return=e,e.child=n,$t=e,Ot=null)):t=null,t===null)throw On(e);return Mc(t)?e.lanes=32:e.lanes=536870912,null}var g=l.children;return l=l.fallback,s?(Un(),s=e.mode,g=js({mode:"hidden",children:g},s),l=ra(l,s,n,null),g.return=e,l.return=e,g.sibling=l,e.child=g,l=e.child,l.memoizedState=Xu(n),l.childLanes=Ku(t,f,n),e.memoizedState=Vu,ei(null,l)):(Ln(e),Zu(e,g))}var T=t.memoizedState;if(T!==null&&(g=T.dehydrated,g!==null)){if(u)e.flags&256?(Ln(e),e.flags&=-257,e=ku(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),g=l.fallback,s=e.mode,l=js({mode:"visible",children:l.children},s),g=ra(g,s,n,null),g.flags|=2,l.return=e,g.return=e,l.sibling=g,e.child=l,ya(e,t.child,null,n),l=e.child,l.memoizedState=Xu(n),l.childLanes=Ku(t,f,n),e.memoizedState=Vu,e=ei(null,l));else if(Ln(e),Mc(g)){if(f=g.nextSibling&&g.nextSibling.dataset,f)var O=f.dgst;f=O,l=Error(c(419)),l.stack="",l.digest=f,Vl({value:l,source:null,stack:null}),e=ku(t,e,n)}else if(Xt||Pa(t,e,n,!1),f=(n&t.childLanes)!==0,Xt||f){if(f=Ct,f!==null&&(l=Cr(f,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,ca(t,l),de(f,t,l),Yu;jc(g)||Ls(),e=ku(t,e,n)}else jc(g)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ot=Le(g.nextSibling),$t=e,pt=!0,An=null,De=!1,t!==null&&Ef(e,t),e=Zu(e,l.children),e.flags|=4096);return e}return s?(Un(),g=l.fallback,s=e.mode,T=t.child,O=T.sibling,l=on(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,O!==null?g=on(O,g):(g=ra(g,s,n,null),g.flags|=2),g.return=e,l.return=e,l.sibling=g,e.child=l,ei(null,l),l=e.child,g=t.child.memoizedState,g===null?g=Xu(n):(s=g.cachePool,s!==null?(T=Gt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=Nf(),g={baseLanes:g.baseLanes|n,cachePool:s}),l.memoizedState=g,l.childLanes=Ku(t,f,n),e.memoizedState=Vu,ei(t.child,l)):(Ln(e),n=t.child,t=n.sibling,n=on(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Zu(t,e){return e=js({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function js(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function ku(t,e,n){return ya(e,t.child,null,n),t=Zu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Xd(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),uu(t.return,e,n)}function Ju(t,e,n,l,s,u){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:u}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=s,f.treeForkCount=u)}function Kd(t,e,n){var l=e.pendingProps,s=l.revealOrder,u=l.tail;l=l.children;var f=Qt.current,g=(f&2)!==0;if(g?(f=f&1|2,e.flags|=128):f&=1,Z(Qt,f),It(t,e,l,n),l=pt?Gl:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Xd(t,n,e);else if(t.tag===19)Xd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&ms(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Ju(e,!1,s,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&ms(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Ju(e,!0,n,null,u,l);break;case"together":Ju(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function hn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Pa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=on(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=on(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Fu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ss(t)))}function jy(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Nn(e,Gt,t.memoizedState.cache),fa();break;case 27:case 5:tn(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Nn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,bu(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ln(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Vd(t,e,n):(Ln(e),t=hn(t,e,n),t!==null?t.sibling:null);Ln(e);break;case 19:var s=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Pa(t,e,n,!1),l=(n&e.childLanes)!==0),s){if(l)return Kd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(Qt,Qt.current),l)break;return null;case 22:return e.lanes=0,Bd(t,e,n,e.pendingProps);case 24:Nn(e,Gt,t.memoizedState.cache)}return hn(t,e,n)}function Zd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Xt=!0;else{if(!Fu(t,n)&&(e.flags&128)===0)return Xt=!1,jy(t,e,n);Xt=(t.flags&131072)!==0}else Xt=!1,pt&&(e.flags&1048576)!==0&&Rf(e,Gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=pa(e.elementType),e.type=t,typeof t=="function")tu(t)?(l=xa(t,l),e.tag=1,e=Yd(null,e,t,l,n)):(e.tag=0,e=Gu(null,e,t,l,n));else{if(t!=null){var s=t.$$typeof;if(s===G){e.tag=11,e=wd(null,e,t,l,n);break t}else if(s===H){e.tag=14,e=Ld(null,e,t,l,n);break t}}throw e=zt(t)||t,Error(c(306,e,""))}}return e;case 0:return Gu(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,s=xa(l,e.pendingProps),Yd(t,e,l,s,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var u=e.memoizedState;s=u.element,pu(t,e),Pl(e,l,null,n);var f=e.memoizedState;if(l=f.cache,Nn(e,Gt,l),l!==u.cache&&cu(e,[Gt],n,!0),Fl(),l=f.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Gd(t,e,l,n);break t}else if(l!==s){s=Oe(Error(c(424)),e),Vl(s),e=Gd(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ot=Le(t.firstChild),$t=e,pt=!0,An=null,De=!0,n=Bf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fa(),l===s){e=hn(t,e,n);break t}It(t,e,l,n)}e=e.child}return e;case 26:return Es(t,e),t===null?(n=am(e.type,null,e.pendingProps,null))?e.memoizedState=n:pt||(n=e.type,t=e.pendingProps,l=Gs(rt.current).createElement(n),l[Pt]=e,l[se]=t,te(l,n,t),kt(l),e.stateNode=l):e.memoizedState=am(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return tn(e),t===null&&pt&&(l=e.stateNode=tm(e.type,e.pendingProps,rt.current),$t=e,De=!0,s=Ot,Xn(e.type)?(Cc=s,Ot=Le(l.firstChild)):Ot=s),It(t,e,e.pendingProps.children,n),Es(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&pt&&((s=l=Ot)&&(l=ng(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,$t=e,Ot=Le(l.firstChild),De=!1,s=!0):s=!1),s||On(e)),tn(e),s=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,l=u.children,Tc(s,u)?l=null:f!==null&&Tc(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=_u(t,e,yy,null,null,n),vi._currentValue=s),Es(t,e),It(t,e,l,n),e.child;case 6:return t===null&&pt&&((t=n=Ot)&&(n=ag(n,e.pendingProps,De),n!==null?(e.stateNode=n,$t=e,Ot=null,t=!0):t=!1),t||On(e)),null;case 13:return Vd(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ya(e,null,l,n):It(t,e,l,n),e.child;case 11:return wd(t,e,e.type,e.pendingProps,n);case 7:return It(t,e,e.pendingProps,n),e.child;case 8:return It(t,e,e.pendingProps.children,n),e.child;case 12:return It(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Nn(e,e.type,l.value),It(t,e,l.children,n),e.child;case 9:return s=e.type._context,l=e.pendingProps.children,ha(e),s=Wt(s),l=l(s),e.flags|=1,It(t,e,l,n),e.child;case 14:return Ld(t,e,e.type,e.pendingProps,n);case 15:return Ud(t,e,e.type,e.pendingProps,n);case 19:return Kd(t,e,n);case 31:return Ey(t,e,n);case 22:return Bd(t,e,n,e.pendingProps);case 24:return ha(e),l=Wt(Gt),t===null?(s=du(),s===null&&(s=Ct,u=ru(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),e.memoizedState={parent:l,cache:s},mu(e),Nn(e,Gt,s)):((t.lanes&n)!==0&&(pu(t,e),Pl(e,null,null,n),Fl()),s=t.memoizedState,u=e.memoizedState,s.parent!==l?(s={parent:l,cache:l},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Nn(e,Gt,l)):(l=u.cache,Nn(e,Gt,l),l!==s.cache&&cu(e,[Gt],n,!0))),It(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function mn(t){t.flags|=4}function Pu(t,e,n,l,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(xh())t.flags|=8192;else throw va=rs,hu}else t.flags&=-16777217}function kd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!um(e))if(xh())t.flags|=8192;else throw va=rs,hu}function Ms(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Er():536870912,t.lanes|=e,ul|=e)}function ni(t,e){if(!pt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Nt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function My(t,e,n){var l=e.pendingProps;switch(lu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),rn(Gt),Mt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Fa(e)?mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,su())),Nt(e),null;case 26:var s=e.type,u=e.memoizedState;return t===null?(mn(e),u!==null?(Nt(e),kd(e,u)):(Nt(e),Pu(e,s,null,l,n))):u?u!==t.memoizedState?(mn(e),Nt(e),kd(e,u)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&mn(e),Nt(e),Pu(e,s,t,l,n)),null;case 27:if(en(e),n=rt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Nt(e),null}t=P.current,Fa(e)?jf(e):(t=tm(s,l,n),e.stateNode=t,mn(e))}return Nt(e),null;case 5:if(en(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Nt(e),null}if(u=P.current,Fa(e))jf(e);else{var f=Gs(rt.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?f.createElement(s,{is:l.is}):f.createElement(s)}}u[Pt]=e,u[se]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(te(u,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&mn(e)}}return Nt(e),Pu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=rt.current,Fa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,s=$t,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Vh(t.nodeValue,n)),t||On(e,!0)}else t=Gs(t).createTextNode(l),t[Pt]=e,e.stateNode=t}return Nt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Fa(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Pt]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else n=su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Nt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Fa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!s)throw Error(c(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(c(317));s[Pt]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),s=!1}else s=su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==s&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ms(e,e.updateQueue),Nt(e),null);case 4:return Mt(),t===null&&gc(e.stateNode.containerInfo),Nt(e),null;case 10:return rn(e.type),Nt(e),null;case 19:if(Q(Qt),l=e.memoizedState,l===null)return Nt(e),null;if(s=(e.flags&128)!==0,u=l.rendering,u===null)if(s)ni(l,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=ms(t),u!==null){for(e.flags|=128,ni(l,!1),t=u.updateQueue,e.updateQueue=t,Ms(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Sf(n,t),n=n.sibling;return Z(Qt,Qt.current&1|2),pt&&un(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ne()>zs&&(e.flags|=128,s=!0,ni(l,!1),e.lanes=4194304)}else{if(!s)if(t=ms(u),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Ms(e,t),ni(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!pt)return Nt(e),null}else 2*ne()-l.renderingStartTime>zs&&n!==536870912&&(e.flags|=128,s=!0,ni(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=Qt.current,Z(Qt,s?n&1|2:n&1),pt&&un(e,l.treeForkCount),t):(Nt(e),null);case 22:case 23:return be(e),xu(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),n=e.updateQueue,n!==null&&Ms(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Q(ma),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),rn(Gt),Nt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Cy(t,e){switch(lu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return rn(Gt),Mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return en(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(c(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Qt),null;case 4:return Mt(),null;case 10:return rn(e.type),null;case 22:case 23:return be(e),xu(),t!==null&&Q(ma),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return rn(Gt),null;case 25:return null;default:return null}}function Jd(t,e){switch(lu(e),e.tag){case 3:rn(Gt),Mt();break;case 26:case 27:case 5:en(e);break;case 4:Mt();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:Q(Qt);break;case 10:rn(e.type);break;case 22:case 23:be(e),xu(),t!==null&&Q(ma);break;case 24:rn(Gt)}}function ai(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&t)===t){l=void 0;var u=n.create,f=n.inst;l=u(),f.destroy=l}n=n.next}while(n!==s)}}catch(g){Tt(e,e.return,g)}}function Bn(t,e,n){try{var l=e.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var u=s.next;l=u;do{if((l.tag&t)===t){var f=l.inst,g=f.destroy;if(g!==void 0){f.destroy=void 0,s=e;var T=n,O=g;try{O()}catch(B){Tt(s,T,B)}}}l=l.next}while(l!==u)}}catch(B){Tt(e,e.return,B)}}function Fd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{qf(e,n)}catch(l){Tt(t,t.return,l)}}}function Pd(t,e,n){n.props=xa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function li(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(s){Tt(t,e,s)}}function ke(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Tt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Tt(t,e,s)}else n.current=null}function $d(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Tt(t,t.return,s)}}function $u(t,e,n){try{var l=t.stateNode;Py(l,t.type,n,e),l[se]=e}catch(s){Tt(t,t.return,s)}}function Wd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Xn(t.type)||t.tag===4}function Wu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Wd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Xn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Iu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ln));else if(l!==4&&(l===27&&Xn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Iu(t,e,n),t=t.sibling;t!==null;)Iu(t,e,n),t=t.sibling}function Cs(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Xn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Cs(t,e,n),t=t.sibling;t!==null;)Cs(t,e,n),t=t.sibling}function Id(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);te(e,l,n),e[Pt]=t,e[se]=n}catch(u){Tt(t,t.return,u)}}var pn=!1,Kt=!1,tc=!1,th=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Ay(t,e){if(t=t.containerInfo,Sc=Fs,t=df(t),ko(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var f=0,g=-1,T=-1,O=0,B=0,Y=t,N=null;e:for(;;){for(var w;Y!==n||s!==0&&Y.nodeType!==3||(g=f+s),Y!==u||l!==0&&Y.nodeType!==3||(T=f+l),Y.nodeType===3&&(f+=Y.nodeValue.length),(w=Y.firstChild)!==null;)N=Y,Y=w;for(;;){if(Y===t)break e;if(N===n&&++O===s&&(g=f),N===u&&++B===l&&(T=f),(w=Y.nextSibling)!==null)break;Y=N,N=Y.parentNode}Y=w}n=g===-1||T===-1?null:{start:g,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(_c={focusedElem:t,selectionRange:n},Fs=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,s=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var W=xa(n.type,s);t=l.getSnapshotBeforeUpdate(W,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Tt(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Ec(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ec(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,Jt=t;break}Jt=e.return}}function eh(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:yn(t,n),l&4&&ai(5,n);break;case 1:if(yn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var s=xa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}l&64&&Fd(n),l&512&&li(n,n.return);break;case 3:if(yn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{qf(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&l&4&&Id(n);case 26:case 5:yn(t,n),e===null&&l&4&&$d(n),l&512&&li(n,n.return);break;case 12:yn(t,n);break;case 31:yn(t,n),l&4&&lh(t,n);break;case 13:yn(t,n),l&4&&ih(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Hy.bind(null,n),lg(t,n))));break;case 22:if(l=n.memoizedState!==null||pn,!l){e=e!==null&&e.memoizedState!==null||Kt,s=pn;var u=Kt;pn=l,(Kt=e)&&!u?gn(t,n,(n.subtreeFlags&8772)!==0):yn(t,n),pn=s,Kt=u}break;case 30:break;default:yn(t,n)}}function nh(t){var e=t.alternate;e!==null&&(t.alternate=null,nh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Oo(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Dt=null,ue=!1;function vn(t,e,n){for(n=n.child;n!==null;)ah(t,e,n),n=n.sibling}function ah(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 26:Kt||ke(n,e),vn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||ke(n,e);var l=Dt,s=ue;Xn(n.type)&&(Dt=n.stateNode,ue=!1),vn(t,e,n),hi(n.stateNode),Dt=l,ue=s;break;case 5:Kt||ke(n,e);case 6:if(l=Dt,s=ue,Dt=null,vn(t,e,n),Dt=l,ue=s,Dt!==null)if(ue)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(n.stateNode)}catch(u){Tt(n,e,u)}else try{Dt.removeChild(n.stateNode)}catch(u){Tt(n,e,u)}break;case 18:Dt!==null&&(ue?(t=Dt,Fh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),vl(t)):Fh(Dt,n.stateNode));break;case 4:l=Dt,s=ue,Dt=n.stateNode.containerInfo,ue=!0,vn(t,e,n),Dt=l,ue=s;break;case 0:case 11:case 14:case 15:Bn(2,n,e),Kt||Bn(4,n,e),vn(t,e,n);break;case 1:Kt||(ke(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Pd(n,e,l)),vn(t,e,n);break;case 21:vn(t,e,n);break;case 22:Kt=(l=Kt)||n.memoizedState!==null,vn(t,e,n),Kt=l;break;default:vn(t,e,n)}}function lh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vl(t)}catch(n){Tt(e,e.return,n)}}}function ih(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vl(t)}catch(n){Tt(e,e.return,n)}}function Oy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new th),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new th),e;default:throw Error(c(435,t.tag))}}function As(t,e){var n=Oy(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var s=qy.bind(null,t,l);l.then(s,s)}})}function ce(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],u=t,f=e,g=f;t:for(;g!==null;){switch(g.tag){case 27:if(Xn(g.type)){Dt=g.stateNode,ue=!1;break t}break;case 5:Dt=g.stateNode,ue=!1;break t;case 3:case 4:Dt=g.stateNode.containerInfo,ue=!0;break t}g=g.return}if(Dt===null)throw Error(c(160));ah(u,f,s),Dt=null,ue=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)sh(e,t),e=e.sibling}var Qe=null;function sh(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ce(e,t),re(t),l&4&&(Bn(3,t,t.return),ai(3,t),Bn(5,t,t.return));break;case 1:ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&64&&pn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=Qe;if(ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(l){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Nl]||u[Pt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(l),s.head.insertBefore(u,s.querySelector("head > title"))),te(u,l,n),u[Pt]=t,kt(u),l=u;break t;case"link":var f=sm("link","href",s).get(l+(n.href||""));if(f){for(var g=0;g<f.length;g++)if(u=f[g],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(g,1);break e}}u=s.createElement(l),te(u,l,n),s.head.appendChild(u);break;case"meta":if(f=sm("meta","content",s).get(l+(n.content||""))){for(g=0;g<f.length;g++)if(u=f[g],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(g,1);break e}}u=s.createElement(l),te(u,l,n),s.head.appendChild(u);break;default:throw Error(c(468,l))}u[Pt]=t,kt(u),l=u}t.stateNode=l}else om(s,t.type,t.stateNode);else t.stateNode=im(s,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?om(s,t.type,t.stateNode):im(s,l,t.memoizedProps)):l===null&&t.stateNode!==null&&$u(t,t.memoizedProps,n.memoizedProps)}break;case 27:ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),n!==null&&l&4&&$u(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ce(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),t.flags&32){s=t.stateNode;try{qa(s,"")}catch(W){Tt(t,t.return,W)}}l&4&&t.stateNode!=null&&(s=t.memoizedProps,$u(t,s,n!==null?n.memoizedProps:s)),l&1024&&(tc=!0);break;case 6:if(ce(e,t),re(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(W){Tt(t,t.return,W)}}break;case 3:if(Ks=null,s=Qe,Qe=Vs(e.containerInfo),ce(e,t),Qe=s,re(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{vl(e.containerInfo)}catch(W){Tt(t,t.return,W)}tc&&(tc=!1,oh(t));break;case 4:l=Qe,Qe=Vs(t.stateNode.containerInfo),ce(e,t),re(t),Qe=l;break;case 12:ce(e,t),re(t);break;case 31:ce(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,As(t,l)));break;case 13:ce(e,t),re(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ns=ne()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,As(t,l)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,O=pn,B=Kt;if(pn=O||s,Kt=B||T,ce(e,t),Kt=B,pn=O,re(t),l&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||pn||Kt||ba(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,s)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{g=T.stateNode;var Y=T.memoizedProps.style,N=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;g.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(W){Tt(T,T.return,W)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(W){Tt(T,T.return,W)}}}else if(e.tag===18){if(n===null){T=e;try{var w=T.stateNode;s?Ph(w,!0):Ph(T.stateNode,!1)}catch(W){Tt(T,T.return,W)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,As(t,n))));break;case 19:ce(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,As(t,l)));break;case 30:break;case 21:break;default:ce(e,t),re(t)}}function re(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Wd(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var s=n.stateNode,u=Wu(t);Cs(t,u,s);break;case 5:var f=n.stateNode;n.flags&32&&(qa(f,""),n.flags&=-33);var g=Wu(t);Cs(t,g,f);break;case 3:case 4:var T=n.stateNode.containerInfo,O=Wu(t);Iu(t,O,T);break;default:throw Error(c(161))}}catch(B){Tt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function oh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;oh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function yn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)eh(t,e.alternate,e),e=e.sibling}function ba(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Bn(4,e,e.return),ba(e);break;case 1:ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Pd(e,e.return,n),ba(e);break;case 27:hi(e.stateNode);case 26:case 5:ke(e,e.return),ba(e);break;case 22:e.memoizedState===null&&ba(e);break;case 30:ba(e);break;default:ba(e)}t=t.sibling}}function gn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,s=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:gn(s,u,n),ai(4,u);break;case 1:if(gn(s,u,n),l=u,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(O){Tt(l,l.return,O)}if(l=u,s=l.updateQueue,s!==null){var g=l.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)Hf(T[s],g)}catch(O){Tt(l,l.return,O)}}n&&f&64&&Fd(u),li(u,u.return);break;case 27:Id(u);case 26:case 5:gn(s,u,n),n&&l===null&&f&4&&$d(u),li(u,u.return);break;case 12:gn(s,u,n);break;case 31:gn(s,u,n),n&&f&4&&lh(s,u);break;case 13:gn(s,u,n),n&&f&4&&ih(s,u);break;case 22:u.memoizedState===null&&gn(s,u,n),li(u,u.return);break;case 30:break;default:gn(s,u,n)}e=e.sibling}}function ec(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Xl(n))}function nc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Xl(t))}function Ye(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)uh(t,e,n,l),e=e.sibling}function uh(t,e,n,l){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,n,l),s&2048&&ai(9,e);break;case 1:Ye(t,e,n,l);break;case 3:Ye(t,e,n,l),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Xl(t)));break;case 12:if(s&2048){Ye(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,g=u.onPostCommit;typeof g=="function"&&g(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Tt(e,e.return,T)}}else Ye(t,e,n,l);break;case 31:Ye(t,e,n,l);break;case 13:Ye(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?Ye(t,e,n,l):ii(t,e):u._visibility&2?Ye(t,e,n,l):(u._visibility|=2,il(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),s&2048&&ec(f,e);break;case 24:Ye(t,e,n,l),s&2048&&nc(e.alternate,e);break;default:Ye(t,e,n,l)}}function il(t,e,n,l,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,f=e,g=n,T=l,O=f.flags;switch(f.tag){case 0:case 11:case 15:il(u,f,g,T,s),ai(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?il(u,f,g,T,s):ii(u,f):(B._visibility|=2,il(u,f,g,T,s)),s&&O&2048&&ec(f.alternate,f);break;case 24:il(u,f,g,T,s),s&&O&2048&&nc(f.alternate,f);break;default:il(u,f,g,T,s)}e=e.sibling}}function ii(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,s=l.flags;switch(l.tag){case 22:ii(n,l),s&2048&&ec(l.alternate,l);break;case 24:ii(n,l),s&2048&&nc(l.alternate,l);break;default:ii(n,l)}e=e.sibling}}var si=8192;function sl(t,e,n){if(t.subtreeFlags&si)for(t=t.child;t!==null;)ch(t,e,n),t=t.sibling}function ch(t,e,n){switch(t.tag){case 26:sl(t,e,n),t.flags&si&&t.memoizedState!==null&&vg(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:sl(t,e,n);break;case 3:case 4:var l=Qe;Qe=Vs(t.stateNode.containerInfo),sl(t,e,n),Qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=si,si=16777216,sl(t,e,n),si=l):sl(t,e,n));break;default:sl(t,e,n)}}function rh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function oi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Jt=l,dh(l,t)}rh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fh(t),t=t.sibling}function fh(t){switch(t.tag){case 0:case 11:case 15:oi(t),t.flags&2048&&Bn(9,t,t.return);break;case 3:oi(t);break;case 12:oi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Os(t)):oi(t);break;default:oi(t)}}function Os(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Jt=l,dh(l,t)}rh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Bn(8,e,e.return),Os(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Os(e));break;default:Os(e)}t=t.sibling}}function dh(t,e){for(;Jt!==null;){var n=Jt;switch(n.tag){case 0:case 11:case 15:Bn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Xl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Jt=l;else t:for(n=t;Jt!==null;){l=Jt;var s=l.sibling,u=l.return;if(nh(l),l===n){Jt=null;break t}if(s!==null){s.return=u,Jt=s;break t}Jt=u}}}var Ny={getCacheForType:function(t){var e=Wt(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Wt(Gt).controller.signal}},zy=typeof WeakMap=="function"?WeakMap:Map,bt=0,Ct=null,ft=null,ht=0,_t=0,Se=null,Hn=!1,ol=!1,ac=!1,xn=0,Bt=0,qn=0,Sa=0,lc=0,_e=0,ul=0,ui=null,fe=null,ic=!1,Ns=0,hh=0,zs=1/0,Ds=null,Qn=null,Zt=0,Yn=null,cl=null,bn=0,sc=0,oc=null,mh=null,ci=0,uc=null;function Te(){return(bt&2)!==0&&ht!==0?ht&-ht:U.T!==null?mc():Ar()}function ph(){if(_e===0)if((ht&536870912)===0||pt){var t=Yi;Yi<<=1,(Yi&3932160)===0&&(Yi=262144),_e=t}else _e=536870912;return t=xe.current,t!==null&&(t.flags|=32),_e}function de(t,e,n){(t===Ct&&(_t===2||_t===9)||t.cancelPendingCommit!==null)&&(rl(t,0),Gn(t,ht,_e,!1)),Ol(t,n),((bt&2)===0||t!==Ct)&&(t===Ct&&((bt&2)===0&&(Sa|=n),Bt===4&&Gn(t,ht,_e,!1)),Je(t))}function vh(t,e,n){if((bt&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Al(t,e),s=l?Ly(t,e):rc(t,e,!0),u=l;do{if(s===0){ol&&!l&&Gn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!Dy(n)){s=rc(t,e,!1),u=!1;continue}if(s===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var g=t;s=ui;var T=g.current.memoizedState.isDehydrated;if(T&&(rl(g,f).flags|=256),f=rc(g,f,!1),f!==2){if(ac&&!T){g.errorRecoveryDisabledLanes|=u,Sa|=u,s=4;break t}u=fe,fe=s,u!==null&&(fe===null?fe=u:fe.push.apply(fe,u))}s=f}if(u=!1,s!==2)continue}}if(s===1){rl(t,0),Gn(t,e,0,!0);break}t:{switch(l=t,u=s,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Gn(l,e,_e,!Hn);break t;case 2:fe=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(s=Ns+300-ne(),10<s)){if(Gn(l,e,_e,!Hn),Vi(l,0,!0)!==0)break t;bn=e,l.timeoutHandle=kh(yh.bind(null,l,n,fe,Ds,ic,e,_e,Sa,ul,Hn,u,"Throttled",-0,0),s);break t}yh(l,n,fe,Ds,ic,e,_e,Sa,ul,Hn,u,null,-0,0)}}break}while(!0);Je(t)}function yh(t,e,n,l,s,u,f,g,T,O,B,Y,N,w){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},ch(e,u,Y);var W=(u&62914560)===u?Ns-ne():(u&4194048)===u?hh-ne():0;if(W=yg(Y,W),W!==null){bn=u,t.cancelPendingCommit=W(Eh.bind(null,t,e,u,n,l,s,f,g,T,B,Y,null,N,w)),Gn(t,u,f,!O);return}}Eh(t,e,u,n,l,s,f,g,T)}function Dy(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],u=s.getSnapshot;s=s.value;try{if(!ye(u(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Gn(t,e,n,l){e&=~lc,e&=~Sa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var s=e;0<s;){var u=31-ve(s),f=1<<u;l[u]=-1,s&=~f}n!==0&&jr(t,n,e)}function ws(){return(bt&6)===0?(ri(0),!1):!0}function cc(){if(ft!==null){if(_t===0)var t=ft.return;else t=ft,cn=da=null,Eu(t),tl=null,Zl=0,t=ft;for(;t!==null;)Jd(t.alternate,t),t=t.return;ft=null}}function rl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Iy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),bn=0,cc(),Ct=t,ft=n=on(t.current,null),ht=e,_t=0,Se=null,Hn=!1,ol=Al(t,e),ac=!1,ul=_e=lc=Sa=qn=Bt=0,fe=ui=null,ic=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var s=31-ve(l),u=1<<s;e|=t[s],l&=~u}return xn=e,es(),n}function gh(t,e){ut=null,U.H=ti,e===Ia||e===cs?(e=wf(),_t=3):e===hu?(e=wf(),_t=4):_t=e===Yu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,ft===null&&(Bt=1,Ts(t,Oe(e,t.current)))}function xh(){var t=xe.current;return t===null?!0:(ht&4194048)===ht?we===null:(ht&62914560)===ht||(ht&536870912)!==0?t===we:!1}function bh(){var t=U.H;return U.H=ti,t===null?ti:t}function Sh(){var t=U.A;return U.A=Ny,t}function Ls(){Bt=4,Hn||(ht&4194048)!==ht&&xe.current!==null||(ol=!0),(qn&134217727)===0&&(Sa&134217727)===0||Ct===null||Gn(Ct,ht,_e,!1)}function rc(t,e,n){var l=bt;bt|=2;var s=bh(),u=Sh();(Ct!==t||ht!==e)&&(Ds=null,rl(t,e)),e=!1;var f=Bt;t:do try{if(_t!==0&&ft!==null){var g=ft,T=Se;switch(_t){case 8:cc(),f=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var O=_t;if(_t=0,Se=null,fl(t,g,T,O),n&&ol){f=0;break t}break;default:O=_t,_t=0,Se=null,fl(t,g,T,O)}}wy(),f=Bt;break}catch(B){gh(t,B)}while(!0);return e&&t.shellSuspendCounter++,cn=da=null,bt=l,U.H=s,U.A=u,ft===null&&(Ct=null,ht=0,es()),f}function wy(){for(;ft!==null;)_h(ft)}function Ly(t,e){var n=bt;bt|=2;var l=bh(),s=Sh();Ct!==t||ht!==e?(Ds=null,zs=ne()+500,rl(t,e)):ol=Al(t,e);t:do try{if(_t!==0&&ft!==null){e=ft;var u=Se;e:switch(_t){case 1:_t=0,Se=null,fl(t,e,u,1);break;case 2:case 9:if(zf(u)){_t=0,Se=null,Th(e);break}e=function(){_t!==2&&_t!==9||Ct!==t||(_t=7),Je(t)},u.then(e,e);break t;case 3:_t=7;break t;case 4:_t=5;break t;case 7:zf(u)?(_t=0,Se=null,Th(e)):(_t=0,Se=null,fl(t,e,u,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var g=ft;if(f?um(f):g.stateNode.complete){_t=0,Se=null;var T=g.sibling;if(T!==null)ft=T;else{var O=g.return;O!==null?(ft=O,Us(O)):ft=null}break e}}_t=0,Se=null,fl(t,e,u,5);break;case 6:_t=0,Se=null,fl(t,e,u,6);break;case 8:cc(),Bt=6;break t;default:throw Error(c(462))}}Uy();break}catch(B){gh(t,B)}while(!0);return cn=da=null,U.H=l,U.A=s,bt=n,ft!==null?0:(Ct=null,ht=0,es(),Bt)}function Uy(){for(;ft!==null&&!qi();)_h(ft)}function _h(t){var e=Zd(t.alternate,t,xn);t.memoizedProps=t.pendingProps,e===null?Us(t):ft=e}function Th(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Qd(n,e,e.pendingProps,e.type,void 0,ht);break;case 11:e=Qd(n,e,e.pendingProps,e.type.render,e.ref,ht);break;case 5:Eu(e);default:Jd(n,e),e=ft=Sf(e,xn),e=Zd(n,e,xn)}t.memoizedProps=t.pendingProps,e===null?Us(t):ft=e}function fl(t,e,n,l){cn=da=null,Eu(e),tl=null,Zl=0;var s=e.return;try{if(Ry(t,s,e,n,ht)){Bt=1,Ts(t,Oe(n,t.current)),ft=null;return}}catch(u){if(s!==null)throw ft=s,u;Bt=1,Ts(t,Oe(n,t.current)),ft=null;return}e.flags&32768?(pt||l===1?t=!0:ol||(ht&536870912)!==0?t=!1:(Hn=t=!0,(l===2||l===9||l===3||l===6)&&(l=xe.current,l!==null&&l.tag===13&&(l.flags|=16384))),Rh(e,t)):Us(e)}function Us(t){var e=t;do{if((e.flags&32768)!==0){Rh(e,Hn);return}t=e.return;var n=My(e.alternate,e,xn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Bt===0&&(Bt=5)}function Rh(t,e){do{var n=Cy(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Bt=6,ft=null}function Eh(t,e,n,l,s,u,f,g,T){t.cancelPendingCommit=null;do Bs();while(Zt!==0);if((bt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(u=e.lanes|e.childLanes,u|=Wo,pv(t,n,u,f,g,T),t===Ct&&(ft=Ct=null,ht=0),cl=e,Yn=t,bn=n,sc=u,oc=s,mh=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Qy(za,function(){return Oh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,s=K.p,K.p=2,f=bt,bt|=4;try{Ay(t,e,n)}finally{bt=f,K.p=s,U.T=l}}Zt=1,jh(),Mh(),Ch()}}function jh(){if(Zt===1){Zt=0;var t=Yn,e=cl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=K.p;K.p=2;var s=bt;bt|=4;try{sh(e,t);var u=_c,f=df(t.containerInfo),g=u.focusedElem,T=u.selectionRange;if(f!==g&&g&&g.ownerDocument&&ff(g.ownerDocument.documentElement,g)){if(T!==null&&ko(g)){var O=T.start,B=T.end;if(B===void 0&&(B=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(B,g.value.length);else{var Y=g.ownerDocument||document,N=Y&&Y.defaultView||window;if(N.getSelection){var w=N.getSelection(),W=g.textContent.length,st=Math.min(T.start,W),jt=T.end===void 0?st:Math.min(T.end,W);!w.extend&&st>jt&&(f=jt,jt=st,st=f);var M=rf(g,st),R=rf(g,jt);if(M&&R&&(w.rangeCount!==1||w.anchorNode!==M.node||w.anchorOffset!==M.offset||w.focusNode!==R.node||w.focusOffset!==R.offset)){var A=Y.createRange();A.setStart(M.node,M.offset),w.removeAllRanges(),st>jt?(w.addRange(A),w.extend(R.node,R.offset)):(A.setEnd(R.node,R.offset),w.addRange(A))}}}}for(Y=[],w=g;w=w.parentNode;)w.nodeType===1&&Y.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Y.length;g++){var q=Y[g];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Fs=!!Sc,_c=Sc=null}finally{bt=s,K.p=l,U.T=n}}t.current=e,Zt=2}}function Mh(){if(Zt===2){Zt=0;var t=Yn,e=cl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=K.p;K.p=2;var s=bt;bt|=4;try{eh(t,e.alternate,e)}finally{bt=s,K.p=l,U.T=n}}Zt=3}}function Ch(){if(Zt===4||Zt===3){Zt=0,Eo();var t=Yn,e=cl,n=bn,l=mh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,cl=Yn=null,Ah(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Qn=null),Co(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(Cl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=U.T,s=K.p,K.p=2,U.T=null;try{for(var u=t.onRecoverableError,f=0;f<l.length;f++){var g=l[f];u(g.value,{componentStack:g.stack})}}finally{U.T=e,K.p=s}}(bn&3)!==0&&Bs(),Je(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===uc?ci++:(ci=0,uc=t):ci=0,ri(0)}}function Ah(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Xl(e)))}function Bs(){return jh(),Mh(),Ch(),Oh()}function Oh(){if(Zt!==5)return!1;var t=Yn,e=sc;sc=0;var n=Co(bn),l=U.T,s=K.p;try{K.p=32>n?32:n,U.T=null,n=oc,oc=null;var u=Yn,f=bn;if(Zt=0,cl=Yn=null,bn=0,(bt&6)!==0)throw Error(c(331));var g=bt;if(bt|=4,fh(u.current),uh(u,u.current,f,n),bt=g,ri(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(Cl,u)}catch{}return!0}finally{K.p=s,U.T=l,Ah(t,e)}}function Nh(t,e,n){e=Oe(n,e),e=Qu(t.stateNode,e,2),t=wn(t,e,2),t!==null&&(Ol(t,2),Je(t))}function Tt(t,e,n){if(t.tag===3)Nh(t,t,n);else for(;e!==null;){if(e.tag===3){Nh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qn===null||!Qn.has(l))){t=Oe(n,t),n=zd(2),l=wn(e,n,2),l!==null&&(Dd(n,l,e,t),Ol(l,2),Je(l));break}}e=e.return}}function fc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new zy;var s=new Set;l.set(e,s)}else s=l.get(e),s===void 0&&(s=new Set,l.set(e,s));s.has(n)||(ac=!0,s.add(n),t=By.bind(null,t,e,n),e.then(t,t))}function By(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(ht&n)===n&&(Bt===4||Bt===3&&(ht&62914560)===ht&&300>ne()-Ns?(bt&2)===0&&rl(t,0):lc|=n,ul===ht&&(ul=0)),Je(t)}function zh(t,e){e===0&&(e=Er()),t=ca(t,e),t!==null&&(Ol(t,e),Je(t))}function Hy(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zh(t,n)}function qy(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),zh(t,n)}function Qy(t,e){return He(t,e)}var Hs=null,dl=null,dc=!1,qs=!1,hc=!1,Vn=0;function Je(t){t!==dl&&t.next===null&&(dl===null?Hs=dl=t:dl=dl.next=t),qs=!0,dc||(dc=!0,Gy())}function ri(t,e){if(!hc&&qs){hc=!0;do for(var n=!1,l=Hs;l!==null;){if(t!==0){var s=l.pendingLanes;if(s===0)var u=0;else{var f=l.suspendedLanes,g=l.pingedLanes;u=(1<<31-ve(42|t)+1)-1,u&=s&~(f&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Uh(l,u))}else u=ht,u=Vi(l,l===Ct?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Al(l,u)||(n=!0,Uh(l,u));l=l.next}while(n);hc=!1}}function Yy(){Dh()}function Dh(){qs=dc=!1;var t=0;Vn!==0&&Wy()&&(t=Vn);for(var e=ne(),n=null,l=Hs;l!==null;){var s=l.next,u=wh(l,e);u===0?(l.next=null,n===null?Hs=s:n.next=s,s===null&&(dl=n)):(n=l,(t!==0||(u&3)!==0)&&(qs=!0)),l=s}Zt!==0&&Zt!==5||ri(t),Vn!==0&&(Vn=0)}function wh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-ve(u),g=1<<f,T=s[f];T===-1?((g&n)===0||(g&l)!==0)&&(s[f]=mv(g,e)):T<=e&&(t.expiredLanes|=g),u&=~g}if(e=Ct,n=ht,n=Vi(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(_t===2||_t===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Ml(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Al(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Ml(l),Co(n)){case 2:case 8:n=Xe;break;case 32:n=za;break;case 268435456:n=Rr;break;default:n=za}return l=Lh.bind(null,t),n=He(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Ml(l),t.callbackPriority=2,t.callbackNode=null,2}function Lh(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Bs()&&t.callbackNode!==n)return null;var l=ht;return l=Vi(t,t===Ct?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(vh(t,l,e),wh(t,ne()),t.callbackNode!=null&&t.callbackNode===n?Lh.bind(null,t):null)}function Uh(t,e){if(Bs())return null;vh(t,e,!0)}function Gy(){tg(function(){(bt&6)!==0?He(Ft,Yy):Dh()})}function mc(){if(Vn===0){var t=$a;t===0&&(t=Qi,Qi<<=1,(Qi&261888)===0&&(Qi=256)),Vn=t}return Vn}function Bh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ki(""+t)}function Hh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Vy(t,e,n,l,s){if(e==="submit"&&n&&n.stateNode===s){var u=Bh((s[se]||null).action),f=l.submitter;f&&(e=(e=f[se]||null)?Bh(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var g=new $i("action","action",null,l,s);t.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Vn!==0){var T=f?Hh(s,f):new FormData(s);wu(n,{pending:!0,data:T,method:s.method,action:u},null,T)}}else typeof u=="function"&&(g.preventDefault(),T=f?Hh(s,f):new FormData(s),wu(n,{pending:!0,data:T,method:s.method,action:u},u,T))},currentTarget:s}]})}}for(var pc=0;pc<$o.length;pc++){var vc=$o[pc],Xy=vc.toLowerCase(),Ky=vc[0].toUpperCase()+vc.slice(1);qe(Xy,"on"+Ky)}qe(pf,"onAnimationEnd"),qe(vf,"onAnimationIteration"),qe(yf,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(oy,"onTransitionRun"),qe(uy,"onTransitionStart"),qe(cy,"onTransitionCancel"),qe(gf,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),Zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function qh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],s=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var f=l.length-1;0<=f;f--){var g=l[f],T=g.instance,O=g.currentTarget;if(g=g.listener,T!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=O;try{u(s)}catch(B){ts(B)}s.currentTarget=null,u=T}else for(f=0;f<l.length;f++){if(g=l[f],T=g.instance,O=g.currentTarget,g=g.listener,T!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=O;try{u(s)}catch(B){ts(B)}s.currentTarget=null,u=T}}}}function dt(t,e){var n=e[Ao];n===void 0&&(n=e[Ao]=new Set);var l=t+"__bubble";n.has(l)||(Qh(e,t,2,!1),n.add(l))}function yc(t,e,n){var l=0;e&&(l|=4),Qh(n,t,l,e)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function gc(t){if(!t[Qs]){t[Qs]=!0,zr.forEach(function(n){n!=="selectionchange"&&(Zy.has(n)||yc(n,!1,t),yc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qs]||(e[Qs]=!0,yc("selectionchange",!1,e))}}function Qh(t,e,n,l){switch(pm(e)){case 2:var s=bg;break;case 8:s=Sg;break;default:s=Dc}n=s.bind(null,e,n,t),s=void 0,!Ho||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),l?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function xc(t,e,n,l,s){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var g=l.stateNode.containerInfo;if(g===s)break;if(f===4)for(f=l.return;f!==null;){var T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;g!==null;){if(f=wa(g),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){l=u=f;continue t}g=g.parentNode}}l=l.return}Xr(function(){var O=u,B=Uo(n),Y=[];t:{var N=xf.get(t);if(N!==void 0){var w=$i,W=t;switch(t){case"keypress":if(Fi(n)===0)break t;case"keydown":case"keyup":w=qv;break;case"focusin":W="focus",w=Go;break;case"focusout":W="blur",w=Go;break;case"beforeblur":case"afterblur":w=Go;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Mv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Gv;break;case pf:case vf:case yf:w=Ov;break;case gf:w=Xv;break;case"scroll":case"scrollend":w=Ev;break;case"wheel":w=Zv;break;case"copy":case"cut":case"paste":w=zv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Fr;break;case"toggle":case"beforetoggle":w=Jv}var st=(e&4)!==0,jt=!st&&(t==="scroll"||t==="scrollend"),M=st?N!==null?N+"Capture":null:N;st=[];for(var R=O,A;R!==null;){var q=R;if(A=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||A===null||M===null||(q=Dl(R,M),q!=null&&st.push(di(R,q,A))),jt)break;R=R.return}0<st.length&&(N=new w(N,W,null,n,B),Y.push({event:N,listeners:st}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",w=t==="mouseout"||t==="pointerout",N&&n!==Lo&&(W=n.relatedTarget||n.fromElement)&&(wa(W)||W[Da]))break t;if((w||N)&&(N=B.window===B?B:(N=B.ownerDocument)?N.defaultView||N.parentWindow:window,w?(W=n.relatedTarget||n.toElement,w=O,W=W?wa(W):null,W!==null&&(jt=d(W),st=W.tag,W!==jt||st!==5&&st!==27&&st!==6)&&(W=null)):(w=null,W=O),w!==W)){if(st=kr,q="onMouseLeave",M="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(st=Fr,q="onPointerLeave",M="onPointerEnter",R="pointer"),jt=w==null?N:zl(w),A=W==null?N:zl(W),N=new st(q,R+"leave",w,n,B),N.target=jt,N.relatedTarget=A,q=null,wa(B)===O&&(st=new st(M,R+"enter",W,n,B),st.target=A,st.relatedTarget=jt,q=st),jt=q,w&&W)e:{for(st=ky,M=w,R=W,A=0,q=M;q;q=st(q))A++;q=0;for(var nt=R;nt;nt=st(nt))q++;for(;0<A-q;)M=st(M),A--;for(;0<q-A;)R=st(R),q--;for(;A--;){if(M===R||R!==null&&M===R.alternate){st=M;break e}M=st(M),R=st(R)}st=null}else st=null;w!==null&&Yh(Y,N,w,st,!1),W!==null&&jt!==null&&Yh(Y,jt,W,st,!0)}}t:{if(N=O?zl(O):window,w=N.nodeName&&N.nodeName.toLowerCase(),w==="select"||w==="input"&&N.type==="file")var yt=af;else if(ef(N))if(lf)yt=ly;else{yt=ny;var I=ey}else w=N.nodeName,!w||w.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?O&&wo(O.elementType)&&(yt=af):yt=ay;if(yt&&(yt=yt(t,O))){nf(Y,yt,n,B);break t}I&&I(t,N,O),t==="focusout"&&O&&N.type==="number"&&O.memoizedProps.value!=null&&Do(N,"number",N.value)}switch(I=O?zl(O):window,t){case"focusin":(ef(I)||I.contentEditable==="true")&&(Va=I,Jo=O,Yl=null);break;case"focusout":Yl=Jo=Va=null;break;case"mousedown":Fo=!0;break;case"contextmenu":case"mouseup":case"dragend":Fo=!1,hf(Y,n,B);break;case"selectionchange":if(sy)break;case"keydown":case"keyup":hf(Y,n,B)}var ct;if(Xo)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else Ga?Ir(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Pr&&n.locale!=="ko"&&(Ga||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Ga&&(ct=Kr()):(Mn=B,qo="value"in Mn?Mn.value:Mn.textContent,Ga=!0)),I=Ys(O,mt),0<I.length&&(mt=new Jr(mt,t,null,n,B),Y.push({event:mt,listeners:I}),ct?mt.data=ct:(ct=tf(n),ct!==null&&(mt.data=ct)))),(ct=Pv?$v(t,n):Wv(t,n))&&(mt=Ys(O,"onBeforeInput"),0<mt.length&&(I=new Jr("onBeforeInput","beforeinput",null,n,B),Y.push({event:I,listeners:mt}),I.data=ct)),Vy(Y,t,O,n,B)}qh(Y,e)})}function di(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ys(t,e){for(var n=e+"Capture",l=[];t!==null;){var s=t,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Dl(t,n),s!=null&&l.unshift(di(t,s,u)),s=Dl(t,e),s!=null&&l.push(di(t,s,u))),t.tag===3)return l;t=t.return}return[]}function ky(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Yh(t,e,n,l,s){for(var u=e._reactName,f=[];n!==null&&n!==l;){var g=n,T=g.alternate,O=g.stateNode;if(g=g.tag,T!==null&&T===l)break;g!==5&&g!==26&&g!==27||O===null||(T=O,s?(O=Dl(n,u),O!=null&&f.unshift(di(n,O,T))):s||(O=Dl(n,u),O!=null&&f.push(di(n,O,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Jy=/\r\n?/g,Fy=/\u0000|\uFFFD/g;function Gh(t){return(typeof t=="string"?t:""+t).replace(Jy,`
|
|
9
|
+
`).replace(Fy,"")}function Vh(t,e){return e=Gh(e),Gh(t)===e}function Et(t,e,n,l,s,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||qa(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&qa(t,""+l);break;case"className":Ki(t,"class",l);break;case"tabIndex":Ki(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(t,n,l);break;case"style":Gr(t,l,u);break;case"data":if(e!=="object"){Ki(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ki(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"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 u=="function"&&(n==="formAction"?(e!=="input"&&Et(t,e,"name",s.name,s,null),Et(t,e,"formEncType",s.formEncType,s,null),Et(t,e,"formMethod",s.formMethod,s,null),Et(t,e,"formTarget",s.formTarget,s,null)):(Et(t,e,"encType",s.encType,s,null),Et(t,e,"method",s.method,s,null),Et(t,e,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ki(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ln);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=ki(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Xi(t,"popover",l);break;case"xlinkActuate":an(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":an(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":an(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":an(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":an(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":an(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":an(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":an(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":an(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Xi(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Tv.get(n)||n,Xi(t,n,l))}}function bc(t,e,n,l,s,u){switch(n){case"style":Gr(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?qa(t,l):(typeof l=="number"||typeof l=="bigint")&&qa(t,""+l);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),u=t[se]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,s),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,s);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Xi(t,n,l)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var l=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var f=n[u];if(f!=null)switch(u){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Et(t,e,u,f,n,null)}}s&&Et(t,e,"srcSet",n.srcSet,n,null),l&&Et(t,e,"src",n.src,n,null);return;case"input":dt("invalid",t);var g=u=f=s=null,T=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var B=n[l];if(B!=null)switch(l){case"name":s=B;break;case"type":f=B;break;case"checked":T=B;break;case"defaultChecked":O=B;break;case"value":u=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,e));break;default:Et(t,e,l,B,n,null)}}Hr(t,u,g,T,O,f,s,!1);return;case"select":dt("invalid",t),l=f=u=null;for(s in n)if(n.hasOwnProperty(s)&&(g=n[s],g!=null))switch(s){case"value":u=g;break;case"defaultValue":f=g;break;case"multiple":l=g;default:Et(t,e,s,g,n,null)}e=u,n=f,t.multiple=!!l,e!=null?Ha(t,!!l,e,!1):n!=null&&Ha(t,!!l,n,!0);return;case"textarea":dt("invalid",t),u=s=l=null;for(f in n)if(n.hasOwnProperty(f)&&(g=n[f],g!=null))switch(f){case"value":l=g;break;case"defaultValue":s=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:Et(t,e,f,g,n,null)}Qr(t,l,s,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(l=n[T],l!=null)&&(T==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Et(t,e,T,l,n,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(l=0;l<fi.length;l++)dt(fi[l],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Et(t,e,O,l,n,null)}return;default:if(wo(e)){for(B in n)n.hasOwnProperty(B)&&(l=n[B],l!==void 0&&bc(t,e,B,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&Et(t,e,g,l,n,null))}function Py(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,f=null,g=null,T=null,O=null,B=null;for(w in n){var Y=n[w];if(n.hasOwnProperty(w)&&Y!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(w)||Et(t,e,w,null,l,Y)}}for(var N in l){var w=l[N];if(Y=n[N],l.hasOwnProperty(N)&&(w!=null||Y!=null))switch(N){case"type":u=w;break;case"name":s=w;break;case"checked":O=w;break;case"defaultChecked":B=w;break;case"value":f=w;break;case"defaultValue":g=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,e));break;default:w!==Y&&Et(t,e,N,w,l,Y)}}zo(t,f,g,T,O,B,u,s);return;case"select":w=f=g=N=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":w=T;default:l.hasOwnProperty(u)||Et(t,e,u,null,l,T)}for(s in l)if(u=l[s],T=n[s],l.hasOwnProperty(s)&&(u!=null||T!=null))switch(s){case"value":N=u;break;case"defaultValue":g=u;break;case"multiple":f=u;default:u!==T&&Et(t,e,s,u,l,T)}e=g,n=f,l=w,N!=null?Ha(t,!!n,N,!1):!!l!=!!n&&(e!=null?Ha(t,!!n,e,!0):Ha(t,!!n,n?[]:"",!1));return;case"textarea":w=N=null;for(g in n)if(s=n[g],n.hasOwnProperty(g)&&s!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Et(t,e,g,null,l,s)}for(f in l)if(s=l[f],u=n[f],l.hasOwnProperty(f)&&(s!=null||u!=null))switch(f){case"value":N=s;break;case"defaultValue":w=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(c(91));break;default:s!==u&&Et(t,e,f,s,l,u)}qr(t,N,w);return;case"option":for(var W in n)N=n[W],n.hasOwnProperty(W)&&N!=null&&!l.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:Et(t,e,W,null,l,N));for(T in l)N=l[T],w=n[T],l.hasOwnProperty(T)&&N!==w&&(N!=null||w!=null)&&(T==="selected"?t.selected=N&&typeof N!="function"&&typeof N!="symbol":Et(t,e,T,N,l,w));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 st in n)N=n[st],n.hasOwnProperty(st)&&N!=null&&!l.hasOwnProperty(st)&&Et(t,e,st,null,l,N);for(O in l)if(N=l[O],w=n[O],l.hasOwnProperty(O)&&N!==w&&(N!=null||w!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,e));break;default:Et(t,e,O,N,l,w)}return;default:if(wo(e)){for(var jt in n)N=n[jt],n.hasOwnProperty(jt)&&N!==void 0&&!l.hasOwnProperty(jt)&&bc(t,e,jt,void 0,l,N);for(B in l)N=l[B],w=n[B],!l.hasOwnProperty(B)||N===w||N===void 0&&w===void 0||bc(t,e,B,N,l,w);return}}for(var M in n)N=n[M],n.hasOwnProperty(M)&&N!=null&&!l.hasOwnProperty(M)&&Et(t,e,M,null,l,N);for(Y in l)N=l[Y],w=n[Y],!l.hasOwnProperty(Y)||N===w||N==null&&w==null||Et(t,e,Y,N,l,w)}function Xh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $y(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],u=s.transferSize,f=s.initiatorType,g=s.duration;if(u&&g&&Xh(f)){for(f=0,g=s.responseEnd,l+=1;l<n.length;l++){var T=n[l],O=T.startTime;if(O>g)break;var B=T.transferSize,Y=T.initiatorType;B&&Xh(Y)&&(T=T.responseEnd,f+=B*(T<g?1:(g-O)/(T-O)))}if(--l,e+=8*(u+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Sc=null,_c=null;function Gs(t){return t.nodeType===9?t:t.ownerDocument}function Kh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Tc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Rc=null;function Wy(){var t=window.event;return t&&t.type==="popstate"?t===Rc?!1:(Rc=t,!0):(Rc=null,!1)}var kh=typeof setTimeout=="function"?setTimeout:void 0,Iy=typeof clearTimeout=="function"?clearTimeout:void 0,Jh=typeof Promise=="function"?Promise:void 0,tg=typeof queueMicrotask=="function"?queueMicrotask:typeof Jh<"u"?function(t){return Jh.resolve(null).then(t).catch(eg)}:kh;function eg(t){setTimeout(function(){throw t})}function Xn(t){return t==="head"}function Fh(t,e){var n=e,l=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(s),vl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")hi(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,hi(n);for(var u=n.firstChild;u;){var f=u.nextSibling,g=u.nodeName;u[Nl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=f}}else n==="body"&&hi(t.ownerDocument.body);n=s}while(n);vl(e)}function Ph(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Ec(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ec(n),Oo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function ng(t,e,n,l){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Nl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function ag(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function $h(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Le(t.nextSibling),t===null))return null;return t}function jc(t){return t.data==="$?"||t.data==="$~"}function Mc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function lg(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Le(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Cc=null;function Wh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Le(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Ih(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function tm(t,e,n){switch(e=Gs(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function hi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Oo(t)}var Ue=new Map,em=new Set;function Vs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sn=K.d;K.d={f:ig,r:sg,D:og,C:ug,L:cg,m:rg,X:dg,S:fg,M:hg};function ig(){var t=Sn.f(),e=ws();return t||e}function sg(t){var e=La(t);e!==null&&e.tag===5&&e.type==="form"?gd(e):Sn.r(t)}var hl=typeof document>"u"?null:document;function nm(t,e,n){var l=hl;if(l&&typeof e=="string"&&e){var s=Ce(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),em.has(s)||(em.add(s),t={rel:t,crossOrigin:n,href:e},l.querySelector(s)===null&&(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function og(t){Sn.D(t),nm("dns-prefetch",t,null)}function ug(t,e){Sn.C(t,e),nm("preconnect",t,e)}function cg(t,e,n){Sn.L(t,e,n);var l=hl;if(l&&t&&e){var s='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ce(n.imageSizes)+'"]')):s+='[href="'+Ce(t)+'"]';var u=s;switch(e){case"style":u=ml(t);break;case"script":u=pl(t)}Ue.has(u)||(t=y({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ue.set(u,t),l.querySelector(s)!==null||e==="style"&&l.querySelector(mi(u))||e==="script"&&l.querySelector(pi(u))||(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function rg(t,e){Sn.m(t,e);var n=hl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ce(l)+'"][href="'+Ce(t)+'"]',u=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=pl(t)}if(!Ue.has(u)&&(t=y({rel:"modulepreload",href:t},e),Ue.set(u,t),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(pi(u)))return}l=n.createElement("link"),te(l,"link",t),kt(l),n.head.appendChild(l)}}}function fg(t,e,n){Sn.S(t,e,n);var l=hl;if(l&&t){var s=Ua(l).hoistableStyles,u=ml(t);e=e||"default";var f=s.get(u);if(!f){var g={loading:0,preload:null};if(f=l.querySelector(mi(u)))g.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ue.get(u))&&Ac(t,n);var T=f=l.createElement("link");kt(T),te(T,"link",t),T._p=new Promise(function(O,B){T.onload=O,T.onerror=B}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Xs(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:g},s.set(u,f)}}}function dg(t,e){Sn.X(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,s=pl(t),u=l.get(s);u||(u=n.querySelector(pi(s)),u||(t=y({src:t,async:!0},e),(e=Ue.get(s))&&Oc(t,e),u=n.createElement("script"),kt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(s,u))}}function hg(t,e){Sn.M(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,s=pl(t),u=l.get(s);u||(u=n.querySelector(pi(s)),u||(t=y({src:t,async:!0,type:"module"},e),(e=Ue.get(s))&&Oc(t,e),u=n.createElement("script"),kt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(s,u))}}function am(t,e,n,l){var s=(s=rt.current)?Vs(s):null;if(!s)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ml(n.href),n=Ua(s).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ml(n.href);var u=Ua(s).hoistableStyles,f=u.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=s.querySelector(mi(t)))&&!u._p&&(f.instance=u,f.state.loading=5),Ue.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ue.set(t,n),u||mg(s,t,n,f.state))),e&&l===null)throw Error(c(528,""));return f}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=pl(n),n=Ua(s).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function ml(t){return'href="'+Ce(t)+'"'}function mi(t){return'link[rel="stylesheet"]['+t+"]"}function lm(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function mg(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),te(e,"link",n),kt(e),t.head.appendChild(e))}function pl(t){return'[src="'+Ce(t)+'"]'}function pi(t){return"script[async]"+t}function im(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(l)return e.instance=l,kt(l),l;var s=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),kt(l),te(l,"style",s),Xs(l,n.precedence,t),e.instance=l;case"stylesheet":s=ml(n.href);var u=t.querySelector(mi(s));if(u)return e.state.loading|=4,e.instance=u,kt(u),u;l=lm(n),(s=Ue.get(s))&&Ac(l,s),u=(t.ownerDocument||t).createElement("link"),kt(u);var f=u;return f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),te(u,"link",l),e.state.loading|=4,Xs(u,n.precedence,t),e.instance=u;case"script":return u=pl(n.src),(s=t.querySelector(pi(u)))?(e.instance=s,kt(s),s):(l=n,(s=Ue.get(u))&&(l=y({},n),Oc(l,s)),t=t.ownerDocument||t,s=t.createElement("script"),kt(s),te(s,"link",l),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Xs(l,n.precedence,t));return e.instance}function Xs(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,u=s,f=0;f<l.length;f++){var g=l[f];if(g.dataset.precedence===e)u=g;else if(u!==s)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ac(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Oc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ks=null;function sm(t,e,n){if(Ks===null){var l=new Map,s=Ks=new Map;s.set(n,l)}else s=Ks,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var u=n[s];if(!(u[Nl]||u[Pt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var g=l.get(f);g?g.push(u):l.set(f,[u])}}return l}function om(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function pg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function um(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function vg(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ml(l.href),u=e.querySelector(mi(s));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Zs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,kt(u);return}u=e.ownerDocument||e,l=lm(l),(s=Ue.get(s))&&Ac(l,s),u=u.createElement("link"),kt(u);var f=u;f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),te(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Zs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Nc=0;function yg(t,e){return t.stylesheets&&t.count===0&&Js(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Nc===0&&(Nc=62500*$y());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Nc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Zs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Js(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ks=null;function Js(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ks=new Map,e.forEach(gg,t),ks=null,Zs.call(t))}function gg(t,e){if(!(e.state.loading&4)){var n=ks.get(t);if(n)var l=n.get(null);else{n=new Map,ks.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var f=s[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}s=e.instance,f=s.getAttribute("data-precedence"),u=n.get(f)||l,u===l&&n.set(null,s),n.set(f,s),this.count++,l=Zs.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),u?u.parentNode.insertBefore(s,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var vi={$$typeof:V,Provider:null,Consumer:null,_currentValue:lt,_currentValue2:lt,_threadCount:0};function xg(t,e,n,l,s,u,f,g,T){this.tag=1,this.containerInfo=t,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=jo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jo(0),this.hiddenUpdates=jo(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function cm(t,e,n,l,s,u,f,g,T,O,B,Y){return t=new xg(t,e,n,f,T,O,B,Y,g),e=1,u===!0&&(e|=24),u=ge(3,null,null,e),t.current=u,u.stateNode=t,e=ru(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},mu(u),t}function rm(t){return t?(t=Za,t):Za}function fm(t,e,n,l,s,u){s=rm(s),l.context===null?l.context=s:l.pendingContext=s,l=Dn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=wn(t,l,e),n!==null&&(de(n,t,e),Jl(n,t,e))}function dm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function zc(t,e){dm(t,e),(t=t.alternate)&&dm(t,e)}function hm(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&de(e,t,67108864),zc(t,67108864)}}function mm(t){if(t.tag===13||t.tag===31){var e=Te();e=Mo(e);var n=ca(t,e);n!==null&&de(n,t,e),zc(t,e)}}var Fs=!0;function bg(t,e,n,l){var s=U.T;U.T=null;var u=K.p;try{K.p=2,Dc(t,e,n,l)}finally{K.p=u,U.T=s}}function Sg(t,e,n,l){var s=U.T;U.T=null;var u=K.p;try{K.p=8,Dc(t,e,n,l)}finally{K.p=u,U.T=s}}function Dc(t,e,n,l){if(Fs){var s=wc(l);if(s===null)xc(t,e,l,Ps,n),vm(t,l);else if(Tg(s,t,e,n,l))l.stopPropagation();else if(vm(t,l),e&4&&-1<_g.indexOf(t)){for(;s!==null;){var u=La(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=la(u.pendingLanes);if(f!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;f;){var T=1<<31-ve(f);g.entanglements[1]|=T,f&=~T}Je(u),(bt&6)===0&&(zs=ne()+500,ri(0))}}break;case 31:case 13:g=ca(u,2),g!==null&&de(g,u,2),ws(),zc(u,2)}if(u=wc(l),u===null&&xc(t,e,l,Ps,n),u===s)break;s=u}s!==null&&l.stopPropagation()}else xc(t,e,l,null,n)}}function wc(t){return t=Uo(t),Lc(t)}var Ps=null;function Lc(t){if(Ps=null,t=wa(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(e),t!==null)return t;t=null}else if(n===31){if(t=x(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ps=t,null}function pm(t){switch(t){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(At()){case Ft:return 2;case Xe:return 8;case za:case uv:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Uc=!1,Kn=null,Zn=null,kn=null,yi=new Map,gi=new Map,Jn=[],_g="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 vm(t,e){switch(t){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":yi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":gi.delete(e.pointerId)}}function xi(t,e,n,l,s,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[s]},e!==null&&(e=La(e),e!==null&&hm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Tg(t,e,n,l,s){switch(e){case"focusin":return Kn=xi(Kn,t,e,n,l,s),!0;case"dragenter":return Zn=xi(Zn,t,e,n,l,s),!0;case"mouseover":return kn=xi(kn,t,e,n,l,s),!0;case"pointerover":var u=s.pointerId;return yi.set(u,xi(yi.get(u)||null,t,e,n,l,s)),!0;case"gotpointercapture":return u=s.pointerId,gi.set(u,xi(gi.get(u)||null,t,e,n,l,s)),!0}return!1}function ym(t){var e=wa(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,Or(t.priority,function(){mm(n)});return}}else if(e===31){if(e=x(n),e!==null){t.blockedOn=e,Or(t.priority,function(){mm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function $s(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=wc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Lo=l,n.target.dispatchEvent(l),Lo=null}else return e=La(n),e!==null&&hm(e),t.blockedOn=n,!1;e.shift()}return!0}function gm(t,e,n){$s(t)&&n.delete(e)}function Rg(){Uc=!1,Kn!==null&&$s(Kn)&&(Kn=null),Zn!==null&&$s(Zn)&&(Zn=null),kn!==null&&$s(kn)&&(kn=null),yi.forEach(gm),gi.forEach(gm)}function Ws(t,e){t.blockedOn===e&&(t.blockedOn=null,Uc||(Uc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Rg)))}var Is=null;function xm(t){Is!==t&&(Is=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Is===t&&(Is=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],s=t[e+2];if(typeof l!="function"){if(Lc(l||n)===null)continue;break}var u=La(n);u!==null&&(t.splice(e,3),e-=3,wu(u,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function vl(t){function e(T){return Ws(T,t)}Kn!==null&&Ws(Kn,t),Zn!==null&&Ws(Zn,t),kn!==null&&Ws(kn,t),yi.forEach(e),gi.forEach(e);for(var n=0;n<Jn.length;n++){var l=Jn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)ym(n),n.blockedOn===null&&Jn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],u=n[l+1],f=s[se]||null;if(typeof u=="function")f||xm(n);else if(f){var g=null;if(u&&u.hasAttribute("formAction")){if(s=u,f=u[se]||null)g=f.formAction;else if(Lc(s)!==null)continue}else g=f.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),xm(n)}}}function bm(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function Bc(t){this._internalRoot=t}to.prototype.render=Bc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=Te();fm(n,l,t,e,null,null)},to.prototype.unmount=Bc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fm(t.current,2,null,t,null,null),ws(),e[Da]=null}};function to(t){this._internalRoot=t}to.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ar();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Jn.length&&e!==0&&e<Jn[n].priority;n++);Jn.splice(n,0,t),n===0&&ym(t)}};var Sm=i.version;if(Sm!=="19.2.6")throw Error(c(527,Sm,"19.2.6"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=v(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Eg={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eo.isDisabled&&eo.supportsFiber)try{Cl=eo.inject(Eg),pe=eo}catch{}}return Ei.createRoot=function(t,e){if(!r(t))throw Error(c(299));var n=!1,l="",s=Cd,u=Ad,f=Od;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=cm(t,1,!1,null,null,n,l,null,s,u,f,bm),t[Da]=e.current,gc(t),new Bc(e)},Ei.hydrateRoot=function(t,e,n){if(!r(t))throw Error(c(299));var l=!1,s="",u=Cd,f=Ad,g=Od,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=cm(t,1,!0,e,n??null,l,s,T,u,f,g,bm),e.context=rm(null),n=e.current,l=Te(),l=Mo(l),s=Dn(l),s.callback=null,wn(n,s,l),n=l,e.current.lanes=n,Ol(e,n),Je(e),t[Da]=e.current,gc(t),new to(e)},Ei.version="19.2.6",Ei}var mp;function mb(){if(mp)return Ic.exports;mp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Ic.exports=hb(),Ic.exports}var pb=mb();const av="ahk-theme";function vb(){if(typeof window>"u")return"dark";const a=localStorage.getItem(av);return a==="light"||a==="dark"?a:"dark"}function yb(){const[a,i]=k.useState(vb);return k.useEffect(()=>{const c=document.documentElement;a==="dark"?(c.classList.add("dark"),c.classList.remove("light")):(c.classList.add("light"),c.classList.remove("dark")),localStorage.setItem(av,a)},[a]),{theme:a,toggle:()=>i(c=>c==="dark"?"light":"dark")}}function gb(){return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("circle",{cx:"12",cy:"12",r:"4"}),h.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]})}function xb(){return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}const Oa=kx()({component:Sb}),bb=[{to:"/",label:"Overview",exact:!0},{to:"/tasks",label:"Tasks",exact:!1},{to:"/agents",label:"Agents",exact:!1},{to:"/tools",label:"Tools",exact:!1},{to:"/files",label:"Files",exact:!1}];function Sb(){const{theme:a,toggle:i}=yb();return h.jsxs("div",{className:"flex h-screen bg-[var(--color-bg-base)] text-[var(--color-text-primary)] overflow-hidden",children:[h.jsxs("nav",{className:"w-48 border-r border-[var(--color-border)] flex flex-col shrink-0",children:[h.jsxs("div",{className:"px-4 py-4 border-b border-[var(--color-border)]",children:[h.jsx("span",{className:"font-mono font-bold text-sm text-[var(--color-accent)]",children:"ahk"}),h.jsx("span",{className:"font-mono text-sm text-[var(--color-text-muted)] ml-1.5",children:"dashboard"})]}),h.jsx("div",{className:"flex-1 py-2 flex flex-col gap-0.5 px-2 overflow-y-auto",children:bb.map(({to:o,label:c,exact:r})=>h.jsx(na,{to:o,activeOptions:{exact:r},className:"font-mono text-sm px-3 py-1.5 rounded text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] hover:bg-[var(--color-bg-surface)] transition-colors",activeProps:{className:"font-mono text-sm px-3 py-1.5 rounded text-[var(--color-text-primary)] bg-[var(--color-bg-surface)]"},children:c},o))}),h.jsx("div",{className:"px-4 py-3 border-t border-[var(--color-border)]",children:h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-accent)] inline-block"}),h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-muted)]",children:"live"}),h.jsx("button",{onClick:i,title:a==="dark"?"Switch to light mode":"Switch to dark mode",className:"ml-auto text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] transition-colors p-1 rounded hover:bg-[var(--color-bg-elevated)]",children:a==="dark"?h.jsx(gb,{}):h.jsx(xb,{})})]})})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(nv,{})})]})}const _b={lead:"bg-violet-950 text-violet-400",explorer:"bg-sky-950 text-sky-300",builder:"bg-green-950 text-green-400",reviewer:"bg-amber-950 text-amber-400"};function Tb(a){return a.startsWith("custom:")?"bg-neutral-900 text-neutral-300":_b[a]??"bg-neutral-900 text-neutral-400"}function Ge({agent:a,size:i="sm"}){const o=i==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${Tb(a)} ${o} font-mono px-2 py-0.5 rounded-sm`,children:a})}function xo({cols:a,message:i="No data"}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-[var(--color-text-faint)]",children:i})})}function lv(){return h.jsx("div",{className:"p-6 font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"})}function bo({cols:a}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"})})}function Rl({title:a,subtitle:i,right:o}){return h.jsxs("div",{className:"flex items-start justify-between px-6 pt-6 pb-4 border-b border-[var(--color-border)]",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"font-mono font-semibold text-base text-[var(--color-text-primary)]",children:a}),i&&h.jsx("p",{className:"text-xs text-[var(--color-text-muted)] mt-0.5",children:i})]}),o!=null&&o!=null&&h.jsx("div",{children:o})]})}const pp="/api";async function Fe(a,i){const o=i?`${pp}${a}?${new URLSearchParams(i)}`:`${pp}${a}`,c=await fetch(o);if(!c.ok)throw new Error(`API ${a} → ${c.status}`);return c.json()}const Ee={stats:()=>Fe("/stats"),tasks:()=>Fe("/tasks"),allTasks:(a=!1)=>Fe("/tasks",{includeArchived:String(a)}),task:a=>Fe(`/tasks/${a}`),topTools:(a=20)=>Fe("/tools/top",{limit:String(a)}),recentTools:(a=50)=>Fe("/tools/recent",{limit:String(a)}),topFiles:(a=20)=>Fe("/files/top",{limit:String(a)}),recentFiles:(a=50)=>Fe("/files/recent",{limit:String(a)}),agentStats:()=>Fe("/agents/stats"),timeline:(a=50)=>Fe("/timeline",{limit:String(a)}),updateTask:(a,i)=>fetch(`/api/tasks/${a}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(o=>o.json()),archiveTask:a=>fetch(`/api/tasks/${a}/archive`,{method:"PATCH"}).then(i=>i.json()),unarchiveTask:a=>fetch(`/api/tasks/${a}/unarchive`,{method:"PATCH"}).then(i=>i.json())},Ie={stats:["stats"],tasks:["tasks"],allTasks:a=>["tasks",{includeArchived:a}],task:a=>["tasks",a],topTools:["tools","top"],recentTools:["tools","recent"],topFiles:["files","top"],recentFiles:["files","recent"],agentStats:["agents","stats"],timeline:["timeline"]};function $e(a){return new Date(a).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function iv(a,i){if(!i)return"—";const o=new Date(i).getTime()-new Date(a).getTime(),c=Math.floor(o/1e3);if(c<60)return`${c}s`;const r=Math.floor(c/60);return r<60?`${r}m ${c%60}s`:`${Math.floor(r/60)}h ${r%60}m`}const Rb=Tl("/tools")({component:Eb});function Eb(){const a=We({queryKey:Ie.topTools,queryFn:()=>Ee.topTools(25)}),i=We({queryKey:Ie.recentTools,queryFn:()=>Ee.recentTools(50)}),o=a.data?.[0]?.uses??1;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tools",subtitle:"Tool usage across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-4",children:"Top Tools"}),a.isLoading&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"Loading…"}),h.jsxs("div",{className:"space-y-1.5",children:[(a.data??[]).map(({tool_name:c,uses:r})=>h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-48 font-mono text-xs text-[var(--color-text-secondary)] text-right shrink-0 truncate",children:c}),h.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-[var(--color-bg-elevated)] rounded-sm h-5 overflow-hidden",children:h.jsx("div",{className:"bg-violet-900 h-full transition-all flex items-center px-2",style:{width:`${r/o*100}%`}})}),h.jsx("span",{className:"font-mono text-xs text-[var(--color-text-muted)] w-8 text-right shrink-0",children:r})]})]},c)),!a.isLoading&&a.data?.length===0&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"No tool calls recorded yet."})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Calls"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Tool","Agent","Task","Args","Result","Called"].map(c=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:c},c))})}),h.jsxs("tbody",{children:[i.isLoading&&h.jsx(bo,{cols:6}),(i.data??[]).map(c=>h.jsx(jb,{tool:c},c.id)),!i.isLoading&&i.data?.length===0&&h.jsx(xo,{cols:6,message:"No recent calls"})]})]})]})]})]})}function jb({tool:a}){let i="—";if(a.args_json)try{const o=JSON.parse(a.args_json);i=JSON.stringify(o).slice(0,60)+(JSON.stringify(o).length>60?"…":"")}catch{i=a.args_json.slice(0,60)}return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-violet-400",children:a.tool_name}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-muted)] max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-faint)] max-w-[180px] truncate",children:i}),h.jsx("td",{className:"px-4 py-2 text-xs text-[var(--color-text-muted)] max-w-[180px] truncate",children:a.result_summary??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.called_at)})]})}const Mb={read:"text-neutral-400",created:"text-green-400",modified:"text-amber-400",deleted:"text-red-400"};function sv({op:a}){const i=Mb[a]??"text-neutral-500";return h.jsx("span",{className:`${i} font-mono text-xs`,children:a})}const Cb=Tl("/files")({component:Ab});function Ab(){const a=We({queryKey:Ie.topFiles,queryFn:()=>Ee.topFiles(25)}),i=We({queryKey:Ie.recentFiles,queryFn:()=>Ee.recentFiles(60)});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Files",subtitle:"File operations across all agent actions"}),h.jsxs("div",{className:"p-6 space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Most Touched"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["File Path","Total","Read","Created","Modified","Deleted"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[a.isLoading&&h.jsx(bo,{cols:6}),(a.data??[]).map(o=>h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)] max-w-xs truncate",children:o.file_path}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)]",children:o.total}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-faint)]",children:o.read||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-green-400",children:o.created||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-amber-400",children:o.modified||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-red-400",children:o.deleted||"—"})]},o.file_path)),!a.isLoading&&a.data?.length===0&&h.jsx(xo,{cols:6,message:"No file activity yet"})]})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Operations"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Op","File Path","Agent","Task","Notes","When"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[i.isLoading&&h.jsx(bo,{cols:6}),(i.data??[]).map(o=>h.jsx(Ob,{file:o},o.id)),!i.isLoading&&i.data?.length===0&&h.jsx(xo,{cols:6,message:"No recent operations"})]})]})]})]})]})}function Ob({file:a}){return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-2",children:h.jsx(sv,{op:a.operation})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-secondary)] max-w-[220px] truncate",children:a.file_path}),h.jsx("td",{className:"px-4 py-2",children:h.jsx(Ge,{agent:a.agent,size:"xs"})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-[var(--color-text-muted)] max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 text-xs text-[var(--color-text-faint)] max-w-[160px] truncate",children:a.notes??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.called_at)})]})}const Nb=Tl("/agents")({component:zb});function zb(){const{data:a=[],isLoading:i}=We({queryKey:Ie.agentStats,queryFn:Ee.agentStats});return h.jsxs("div",{children:[h.jsx(Rl,{title:"Agents",subtitle:"Activity breakdown per agent role"}),h.jsxs("div",{className:"p-6 space-y-4",children:[i&&h.jsx(lv,{}),h.jsx("div",{className:"grid grid-cols-2 gap-4",children:a.map(o=>h.jsx(Db,{stat:o},o.agent))}),a.length===0&&!i&&h.jsx("p",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:"No agent activity yet."}),a.length>0&&h.jsxs("div",{className:"mt-6",children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Summary Table"}),h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Agent","Total Actions","Completed","Blocked","Tasks","Files"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsx("tbody",{children:a.map(o=>h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors",children:[h.jsx("td",{className:"px-4 py-3",children:h.jsx(Ge,{agent:o.agent})}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.actions_total}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-green-400",children:o.actions_done}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-red-400",children:o.actions_blocked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.tasks_worked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:o.files_touched})]},o.agent))})]})]})]})]})}function Db({stat:a}){const i=a.actions_total>0?Math.round(a.actions_done/a.actions_total*100):0;return h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-4 space-y-3",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:[i,"% done"]})]}),h.jsx("div",{className:"w-full bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-700 h-1 rounded-full",style:{width:`${i}%`}})}),h.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:[h.jsx(gl,{label:"Actions",value:a.actions_total}),h.jsx(gl,{label:"Completed",value:a.actions_done,color:"text-green-400"}),h.jsx(gl,{label:"Tasks",value:a.tasks_worked}),h.jsx(gl,{label:"Blocked",value:a.actions_blocked,color:a.actions_blocked>0?"text-red-400":void 0}),h.jsx(gl,{label:"Files touched",value:a.files_touched}),h.jsx(gl,{label:"In progress",value:a.actions_total-a.actions_done-a.actions_blocked,color:"text-amber-400"})]})]})}function gl({label:a,value:i,color:o}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("span",{className:"text-xs text-[var(--color-text-faint)]",children:a}),h.jsx("span",{className:`font-mono text-xs ${o??"text-[var(--color-text-secondary)]"}`,children:i})]})}const wb={pending:"bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400",in_progress:"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-400",done:"bg-green-100 text-green-700 dark:bg-green-950 dark:text-green-400",blocked:"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-400",completed:"bg-indigo-100 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-400"},Lb={in_progress:"in progress"};function Ro({status:a,size:i="sm"}){const o=wb[a]??"bg-neutral-100 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-500",c=Lb[a]??a,r=i==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${o} ${r} font-mono px-2 py-0.5 rounded-sm`,children:c})}const Ub=Tl("/")({component:Bb});function Bb(){const a=We({queryKey:Ie.stats,queryFn:Ee.stats}),i=We({queryKey:Ie.tasks,queryFn:Ee.tasks}),o=We({queryKey:Ie.timeline,queryFn:()=>Ee.timeline(15)}),c=i.data?.filter(d=>d.status==="in_progress")??[],r=a.data;return h.jsxs("div",{children:[h.jsx(Rl,{title:"Overview",subtitle:"Harness state at a glance"}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Pending",key:"pending",color:"text-[var(--color-text-secondary)]"},{label:"In Progress",key:"in_progress",color:"text-amber-400"},{label:"Done",key:"done",color:"text-green-400"},{label:"Blocked",key:"blocked",color:"text-red-400"}].map(({label:d,key:m,color:x})=>h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-4",children:[h.jsx("div",{className:`font-mono text-2xl font-semibold ${x}`,children:r?r.byStatus[m]??0:"—"}),h.jsx("div",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:d})]},m))}),h.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Total Actions",value:r?.totalActions},{label:"Files Touched",value:r?.totalFiles},{label:"Unique Tools",value:r?.uniqueTools}].map(({label:d,value:m})=>h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md px-4 py-3 flex items-center gap-3",children:[h.jsx("span",{className:"font-mono text-lg text-[var(--color-text-primary)]",children:m??"—"}),h.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:d})]},d))}),h.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Active Tasks"}),c.length===0?h.jsx("p",{className:"text-xs text-[var(--color-text-faint)] font-mono",children:"No tasks in progress"}):h.jsx("div",{className:"space-y-2",children:c.map(d=>h.jsxs(na,{to:"/tasks/$id",params:{id:String(d.id)},className:"block bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md p-3 hover:border-[var(--color-border)] transition-colors",children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"font-mono text-sm text-[var(--color-text-primary)] truncate",children:d.title}),h.jsx("div",{className:"font-mono text-xs text-[var(--color-text-faint)] mt-0.5",children:d.slug})]}),d.assigned_to&&h.jsx(Ge,{agent:d.assigned_to,size:"xs"})]}),d.acceptance_total>0&&h.jsxs("div",{className:"mt-2",children:[h.jsxs("div",{className:"flex justify-between text-[10px] font-mono text-[var(--color-text-faint)] mb-1",children:[h.jsx("span",{children:"acceptance"}),h.jsxs("span",{children:[d.acceptance_met,"/",d.acceptance_total]})]}),h.jsx("div",{className:"w-full bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full transition-all",style:{width:`${d.acceptance_met/d.acceptance_total*100}%`}})})]})]},d.id))})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-3",children:"Recent Activity"}),h.jsxs("div",{className:"space-y-1",children:[(o.data??[]).map(d=>h.jsx(Hb,{entry:d},d.id)),o.data?.length===0&&h.jsx("p",{className:"text-xs text-[var(--color-text-faint)] font-mono",children:"No activity yet"})]})]})]})]})]})}function Hb({entry:a}){return h.jsxs(na,{to:"/tasks/$id",params:{id:String(a.task_id)},className:"flex items-start gap-2 px-2 py-1.5 rounded hover:bg-[var(--color-bg-surface)] transition-colors group",children:[h.jsx(Ge,{agent:a.agent,size:"xs"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"text-xs text-[var(--color-text-secondary)] truncate group-hover:text-[var(--color-text-primary)] transition-colors",children:a.summary??a.task_title}),h.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:a.task_slug}),h.jsx(Ro,{status:a.status,size:"xs"})]})]}),h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)] shrink-0",children:$e(a.created_at)})]})}const qb=(a,i)=>{const[o,c]=k.useState(a);return k.useEffect(()=>{const d=m=>{if(m.storageArea===localStorage&&m.key===i)try{const x=m.newValue?JSON.parse(m.newValue):void 0;c(x)}catch{}};return window.addEventListener("storage",d),()=>{window.removeEventListener("storage",d)}},[i]),k.useEffect(()=>{try{const d=localStorage.getItem(i);d!==null&&c(JSON.parse(d))}catch{}},[i]),[o,d=>{c(d),d===void 0?localStorage.removeItem(i):localStorage.setItem(i,JSON.stringify(d))}]},Qb=Tl("/tasks/")({component:Xb}),Yb=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in_progress",label:"In Progress"},{value:"done",label:"Done"},{value:"blocked",label:"Blocked"},{value:"archived",label:"Archived"}],Gb=[{value:"list",label:"List"},{value:"board",label:"Board"}],Vb=[{status:"pending",label:"Pending",color:"text-[var(--color-text-secondary)]"},{status:"in_progress",label:"In Progress",color:"text-amber-400"},{status:"done",label:"Done",color:"text-green-400"},{status:"blocked",label:"Blocked",color:"text-red-400"}];function vp(a){return a.completed_at??a.started_at??a.created_at}function Xb(){const[a,i]=k.useState("all"),[o,c]=qb("list","tasks_view_mode"),[r,d]=k.useState({field:null,dir:"asc"}),{data:m=[],isLoading:x}=We({queryKey:Ie.allTasks(!0),queryFn:()=>Ee.allTasks(!0)}),p=a==="all"?m.filter(y=>!y.archived_at):a==="archived"?m.filter(y=>y.archived_at):m.filter(y=>y.status===a&&!y.archived_at),v=k.useMemo(()=>r.field?[...p].sort((y,S)=>{if(r.field==="status"){const _=y.status.localeCompare(S.status);return r.dir==="asc"?_:-_}if(r.field==="created"){const _=new Date(y.created_at).getTime()-new Date(S.created_at).getTime();return r.dir==="asc"?_:-_}return 0}):p,[p,r]),b=k.useMemo(()=>{const y={pending:[],in_progress:[],done:[],blocked:[]};for(const S of p)y[S.status]&&y[S.status].push(S);for(const S of Object.keys(y))y[S].sort((_,j)=>new Date(vp(j)).getTime()-new Date(vp(_)).getTime());return y},[p]);return h.jsxs("div",{children:[h.jsx(Rl,{title:"Tasks",subtitle:`${p.length} task${p.length!==1?"s":""}`,right:h.jsxs("div",{className:"flex gap-1 items-center",children:[Gb.map(({value:y,label:S})=>h.jsx("button",{onClick:()=>c(y),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${o===y?"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] border border-transparent"}`,children:S},y)),h.jsx("span",{className:"w-px h-5 bg-[var(--color-border)] mx-1"}),Yb.map(({value:y,label:S})=>h.jsx("button",{onClick:()=>i(y),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${a===y?"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] border border-transparent"}`,children:S},y))]})}),o==="list"?h.jsx(Kb,{tasks:v,sortConfig:r,onSortChange:d,isLoading:x}):h.jsx(kb,{columns:b})]})}function Kb({tasks:a,sortConfig:i,onSortChange:o,isLoading:c}){const r=m=>{i.field===m?o({field:m,dir:i.dir==="asc"?"desc":"asc"}):o({field:m,dir:"asc"})},d=m=>i.field!==m?"":i.dir==="asc"?" ▲":" ▼";return h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-[var(--color-border)]",children:[h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"#"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Title"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Slug"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-[var(--color-text-secondary)] transition-colors",onClick:()=>r("status"),children:["Status",d("status")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Assigned"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Acceptance"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-[var(--color-text-secondary)] transition-colors",onClick:()=>r("created"),children:["Created",d("created")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-4 py-3",children:"Archived"})]})}),h.jsxs("tbody",{children:[c&&h.jsx(bo,{cols:8}),a.map(m=>h.jsx(Zb,{task:m},m.id)),!c&&a.length===0&&h.jsx(xo,{cols:8,message:"No tasks"})]})]})})}function Zb({task:a}){return h.jsxs("tr",{className:"border-b border-[var(--color-border)] hover:bg-[var(--color-bg-surface)] transition-colors group",children:[h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-faint)]",children:a.id}),h.jsxs("td",{className:"px-4 py-3",children:[h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[var(--color-text-primary)] hover:text-[var(--color-accent)] transition-colors",children:a.title}),a.description&&h.jsx("div",{className:"text-xs text-[var(--color-text-faint)] mt-0.5 truncate max-w-xs",children:a.description})]}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-muted)]",children:a.slug}),h.jsx("td",{className:"px-4 py-3",children:h.jsx(Ro,{status:a.status})}),h.jsx("td",{className:"px-4 py-3",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3",children:a.acceptance_total>0?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"w-16 bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.acceptance_met,"/",a.acceptance_total]})]}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-[var(--color-text-faint)]",children:$e(a.created_at)}),h.jsx("td",{className:"px-4 py-3",children:a.archived_at?h.jsx("span",{className:"text-[10px] font-mono text-yellow-600/80 bg-yellow-500/5 px-2 py-0.5 rounded",children:"archived"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})})]})}function kb({columns:a}){return h.jsx("div",{className:"overflow-x-auto px-6 pb-6",children:h.jsx("div",{className:"flex gap-4 min-h-[calc(100vh-12rem)]",children:Vb.map(({status:i,label:o,color:c})=>{const r=a[i]??[];return h.jsxs("div",{className:"w-72 shrink-0 flex flex-col",children:[h.jsxs("div",{className:"flex items-center gap-2 px-1 py-3 border-b border-[var(--color-border)] mb-3",children:[h.jsx("h3",{className:`font-mono text-sm font-medium ${c}`,children:o}),h.jsxs("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:["(",r.length,")"]})]}),h.jsx("div",{className:"flex-1 overflow-y-auto max-h-[calc(100vh-16rem)] space-y-2 pr-1",children:r.length>0?r.map(d=>h.jsx(Jb,{task:d},d.id)):h.jsx("div",{className:"text-xs font-mono text-[var(--color-text-faint)] text-center py-8",children:"No tasks"})})]},i)})})})}function Jb({task:a}){return h.jsxs("div",{className:"border border-[var(--color-border)] rounded bg-[var(--color-bg-base)] p-3 hover:bg-[var(--color-bg-surface)] transition-colors space-y-2",children:[h.jsxs("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:["#",a.id]}),h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[var(--color-text-primary)] hover:text-[var(--color-accent)] transition-colors block",children:a.title}),h.jsx("div",{className:"flex items-center gap-2",children:a.assigned_to?h.jsx(Ge,{agent:a.assigned_to,size:"xs"}):h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:"—"})}),a.acceptance_total>0&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-[var(--color-bg-elevated)] rounded-full h-1",children:h.jsx("div",{className:"bg-green-600 h-1 rounded-full",style:{width:`${a.acceptance_met/a.acceptance_total*100}%`}})}),h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.acceptance_met,"/",a.acceptance_total]})]}),h.jsx("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.created_at)})]})}function Fb({message:a="Something went wrong",backTo:i,backLabel:o="← Back"}){return h.jsxs("div",{className:"p-6",children:[i&&h.jsx(na,{to:i,className:"font-mono text-xs text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition-colors",children:o}),h.jsx("p",{className:"font-mono text-xs text-red-400 mt-4",children:a})]})}function Pb({action:a}){const[i,o]=k.useState(!1),c=a.sections.length>0,r=iv(a.created_at,a.completed_at);return h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-md",children:[h.jsxs("button",{className:"w-full flex items-start gap-3 p-3 text-left hover:bg-[var(--color-bg-elevated)] transition-colors rounded-md",onClick:()=>c&&o(!i),children:[h.jsx(Ge,{agent:a.agent}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Ro,{status:a.status,size:"xs"}),h.jsx("span",{className:"font-mono text-xs text-[var(--color-text-faint)]",children:r}),a.tools.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.tools.length," tool",a.tools.length!==1?"s":""]}),a.files.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:[a.files.length," file",a.files.length!==1?"s":""]})]}),a.summary&&h.jsx("div",{className:"text-xs text-[var(--color-text-secondary)] mt-1",children:a.summary})]}),h.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[h.jsx("span",{className:"font-mono text-[10px] text-[var(--color-text-faint)]",children:$e(a.created_at)}),c&&h.jsx("span",{className:"text-[var(--color-text-faint)] text-xs",children:i?"▲":"▼"})]})]}),i&&c&&h.jsx("div",{className:"border-t border-[var(--color-border)] divide-y divide-[var(--color-border)]",children:a.sections.map(d=>h.jsx($b,{section:d},d.id))})]})}function $b({section:a}){return h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider mb-1",children:a.section_type.replace(/_/g," ")}),h.jsx("pre",{className:"text-xs text-[var(--color-text-secondary)] whitespace-pre-wrap font-mono leading-relaxed",children:a.content})]})}function oo({children:a}){return h.jsx("h2",{className:"font-mono text-xs text-[var(--color-text-muted)] uppercase tracking-wider",children:a})}function ji({label:a,value:i}){return h.jsxs("div",{children:[h.jsx("div",{className:"text-[var(--color-text-faint)] text-[10px]",children:a}),h.jsx("div",{className:"text-[var(--color-text-secondary)]",children:i})]})}const ov=Tl("/tasks/$id")({component:Wb});function Wb(){const{id:a}=ov.useParams(),{data:i,isLoading:o,isError:c,dataUpdatedAt:r}=We({queryKey:Ie.task(Number(a)),queryFn:()=>Ee.task(Number(a))}),[d,m]=k.useState(!1),[x,p]=k.useState(i?.title),[v,b]=k.useState(i?.description??""),[y,S]=k.useState(i?.acceptance.map(z=>z.criterion)??[]);if(k.useEffect(()=>{i&&(p(i.title),b(i.description??""),S(i.acceptance.map(z=>z.criterion)))},[r]),o)return h.jsx(lv,{});if(c||!i)return h.jsx(Fb,{message:"Task not found",backTo:"/tasks",backLabel:"← Back to tasks"});const _=()=>S([...y,""]),j=async()=>{await Ee.updateTask(Number(a),{title:x,description:v||null,acceptance:y.filter(z=>z.trim()!=="")}),m(!1),window.location.reload()},C=i.acceptance.filter(z=>z.met).length,D=async()=>{await Ee.archiveTask(Number(a)),window.location.reload()},L=async()=>{await Ee.unarchiveTask(Number(a)),window.location.reload()};return h.jsxs("div",{children:[h.jsx(Rl,{title:i.title,subtitle:i.slug,right:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Ro,{status:i.status}),i.assigned_to&&h.jsx(Ge,{agent:i.assigned_to}),i.archived_at?h.jsx("button",{onClick:L,className:"text-xs font-mono text-yellow-500 hover:text-yellow-400 border border-yellow-900/50 px-3 py-1 rounded",children:"Unarchive"}):h.jsx("button",{onClick:D,className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-red-400 border border-[var(--color-border)] px-3 py-1 rounded",children:"Archive"})]})}),h.jsx("div",{className:"px-6 pt-3",children:h.jsx("button",{onClick:()=>m(!0),className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] border border-[var(--color-border)] px-3 py-1.5 rounded transition-colors",children:"Edit"})}),d&&h.jsx("div",{className:"fixed inset-0 bg-black/60 z-50 flex items-center justify-center",onClick:()=>m(!1),children:h.jsxs("div",{className:"bg-[var(--color-bg-surface)] border border-[var(--color-border)] rounded-lg p-6 w-full md:max-w-2xl lg:max-w-3xl xl:max-w-4xl 2xl:max-w-5xl mx-4 max-h-[80vh] overflow-y-auto max-md:inset-0 max-md:rounded-none max-md:h-screen max-md:w-screen max-md:max-w-full max-md:max-h-full max-md:m-0",onClick:z=>z.stopPropagation(),children:[h.jsx("h3",{className:"font-mono text-sm text-[var(--color-text-primary)] mb-4",children:"Edit Task"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-[var(--color-text-muted)] font-mono block mb-1",children:"Title"}),h.jsx("input",{value:x,onChange:z=>p(z.target.value),className:"w-full bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)]"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-[var(--color-text-muted)] font-mono block mb-1",children:"Description"}),h.jsx("textarea",{value:v??"",onChange:z=>b(z.target.value),className:"w-full bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)] resize-none h-20"})]}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-mono",children:"Acceptance Criteria"}),h.jsx("button",{onClick:_,className:"text-xs font-mono text-green-500 hover:text-green-400",children:"+ Add"})]}),h.jsx("div",{className:"space-y-2",children:y.map((z,V)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("span",{className:"text-xs text-[var(--color-text-faint)] font-mono mt-2 shrink-0",children:["#",V+1]}),h.jsx("input",{value:z,onChange:G=>{const $=[...y];$[V]=G.target.value,S($)},className:"flex-1 bg-[var(--color-bg-base)] border border-[var(--color-border)] rounded px-3 py-2 text-sm text-[var(--color-text-primary)] font-mono outline-none focus:border-[var(--color-text-muted)]"}),h.jsx("button",{onClick:()=>S(y.filter((G,$)=>$!==V)),className:"text-xs text-red-500 hover:text-red-400 mt-2",children:"✕"})]},`index-${V}`))})]})]}),h.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[h.jsx("button",{onClick:()=>m(!1),className:"text-xs font-mono text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] px-3 py-1.5",children:"Cancel"}),h.jsx("button",{onClick:j,className:"text-xs font-mono bg-[var(--color-text-primary)] text-[var(--color-bg-base)] px-3 py-1.5 rounded hover:opacity-90",children:"Save"})]})]})}),h.jsxs("div",{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"flex gap-6 text-xs font-mono",children:[h.jsx(ji,{label:"Created",value:$e(i.created_at)}),h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"→"}),h.jsx(ji,{label:"Started",value:i.started_at?$e(i.started_at):"—"}),h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"→"}),h.jsx(ji,{label:"Completed",value:i.completed_at?$e(i.completed_at):"—"}),i.started_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"·"}),h.jsx(ji,{label:"Duration",value:iv(i.started_at,i.completed_at)})]}),i.archived_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-[var(--color-text-faint)]",children:"·"}),h.jsx(ji,{label:"Archived",value:$e(i.archived_at)})]})]}),h.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[i.acceptance.length>0&&h.jsxs("div",{className:"col-span-1",children:[h.jsxs(oo,{children:["Acceptance Criteria"," ",h.jsxs("span",{className:"text-[var(--color-text-faint)]",children:["(",C,"/",i.acceptance.length,")"]})]}),h.jsx("div",{className:"space-y-1.5 mt-2",children:i.acceptance.map(z=>h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx("span",{className:`mt-0.5 text-xs font-mono shrink-0 ${z.met?"text-green-400":"text-[var(--color-text-faint)]"}`,children:z.met?"✓":"○"}),h.jsx("span",{className:`text-xs ${z.met?"text-[var(--color-text-secondary)]":"text-[var(--color-text-muted)]"}`,children:z.criterion})]},z.id))})]}),i.description&&h.jsxs("div",{className:"col-span-2",children:[h.jsx(oo,{children:"Description"}),h.jsx("p",{className:"text-sm text-[var(--color-text-secondary)] mt-2 leading-relaxed",children:i.description})]})]}),i.actions.length>0&&h.jsxs("div",{children:[h.jsxs(oo,{children:["Actions Timeline (",i.actions.length,")"]}),h.jsx("div",{className:"mt-3 space-y-2",children:i.actions.map(z=>h.jsx(Pb,{action:z},z.id))})]}),i.actions.some(z=>z.files.length>0)&&h.jsxs("div",{children:[h.jsx(oo,{children:"Files Touched"}),h.jsxs("table",{className:"w-full mt-2 text-sm",children:[h.jsx("thead",{children:h.jsx("tr",{className:"border-b border-[var(--color-border)]",children:["Operation","File Path","Agent","Notes"].map(z=>h.jsx("th",{className:"text-left font-mono text-[10px] text-[var(--color-text-faint)] uppercase tracking-wider px-3 py-2",children:z},z))})}),h.jsx("tbody",{children:i.actions.flatMap(z=>z.files.map(V=>h.jsxs("tr",{className:"border-b border-[var(--color-border)]",children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx(sv,{op:V.operation})}),h.jsx("td",{className:"px-3 py-2 font-mono text-xs text-[var(--color-text-secondary)]",children:V.file_path}),h.jsx("td",{className:"px-3 py-2",children:h.jsx(Ge,{agent:z.agent,size:"xs"})}),h.jsx("td",{className:"px-3 py-2 text-xs text-[var(--color-text-faint)]",children:V.notes??"—"})]},V.id)))})]})]})]})]})}const Ib=Rb.update({id:"/tools",path:"/tools",getParentRoute:()=>Oa}),tS=Cb.update({id:"/files",path:"/files",getParentRoute:()=>Oa}),eS=Nb.update({id:"/agents",path:"/agents",getParentRoute:()=>Oa}),nS=Ub.update({id:"/",path:"/",getParentRoute:()=>Oa}),aS=Qb.update({id:"/tasks/",path:"/tasks/",getParentRoute:()=>Oa}),lS=ov.update({id:"/tasks/$id",path:"/tasks/$id",getParentRoute:()=>Oa}),iS={IndexRoute:nS,AgentsRoute:eS,FilesRoute:tS,ToolsRoute:Ib,TasksIdRoute:lS,TasksIndexRoute:aS},sS=Oa._addFileChildren(iS)._addFileTypes(),Tr=new e0({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!0,retry:1}}}),oS=ob({routeTree:sS,context:{queryClient:Tr}}),uS=new WebSocket(`ws://${location.host}/ws`);uS.onmessage=a=>{try{JSON.parse(a.data).type==="update"&&Tr.invalidateQueries()}catch{}};const cS=document.getElementById("root");pb.createRoot(cS).render(h.jsx(k.StrictMode,{children:h.jsx(l0,{client:Tr,children:h.jsx(rb,{router:oS})})}));
|