@cardor/agent-harness-kit 1.5.0 → 1.5.2

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.
@@ -1,9 +0,0 @@
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"]'))o(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"&&o(m)}).observe(document,{childList:!0,subtree:!0});function u(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 o(r){if(r.ep)return;r.ep=!0;const d=u(r);fetch(r.href,d)}})();function jv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ho={exports:{}},bi={};var _m;function Mv(){if(_m)return bi;_m=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(o,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:o,key:m,ref:r!==void 0?r:null,props:d}}return bi.Fragment=i,bi.jsx=u,bi.jsxs=u,bi}var Tm;function Cv(){return Tm||(Tm=1,Ho.exports=Mv()),Ho.exports}var h=Cv(),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(){}},Av=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 Av,Ov={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},Nv=class{#t=Ov;#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 Nv;function zv(a){setTimeout(a,0)}var Dv=typeof window>"u"||"Deno"in globalThis;function he(){}function wv(a,i){return typeof a=="function"?a(i):a}function nr(a){return typeof a=="number"&&a>=0&&a!==1/0}function vp(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:u="all",exact:o,fetchStatus:r,predicate:d,queryKey:m,stale:x}=a;if(m){if(o){if(i.queryHash!==pr(m,i.options))return!1}else if(!Ai(i.queryKey,m))return!1}if(u!=="all"){const p=i.isActive();if(u==="active"&&!p||u==="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:u,status:o,predicate:r,mutationKey:d}=a;if(d){if(!i.options.mutationKey)return!1;if(u){if(Ci(i.options.mutationKey)!==Ci(d))return!1}else if(!Ai(i.options.mutationKey,d))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function pr(a,i){return(i?.queryKeyHashFn||Ci)(a)}function Ci(a){return JSON.stringify(a,(i,u)=>lr(u)?Object.keys(u).sort().reduce((o,r)=>(o[r]=u[r],o),{}):u)}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(u=>Ai(a[u],i[u])):!1}var Lv=Object.prototype.hasOwnProperty;function gp(a,i,u=0){if(a===i)return a;if(u>500)return i;const o=jm(a)&&jm(i);if(!o&&!(lr(a)&&lr(i)))return i;const d=(o?a:Object.keys(a)).length,m=o?i:Object.keys(i),x=m.length,p=o?new Array(x):{};let y=0;for(let b=0;b<x;b++){const v=o?b:m[b],S=a[v],_=i[v];if(S===_){p[v]=S,(o?b<d:Lv.call(a,v))&&y++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){p[v]=_;continue}const j=gp(S,_,u+1);p[v]=j,j===S&&y++}return d===x&&y===d?a:p}function ar(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const u in a)if(a[u]!==i[u])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 u=i.prototype;return!(!Mm(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Mm(a){return Object.prototype.toString.call(a)==="[object Object]"}function Uv(a){return new Promise(i=>{Ta.setTimeout(i,a)})}function ir(a,i,u){return typeof u.structuralSharing=="function"?u.structuralSharing(a,i):u.structuralSharing!==!1?gp(a,i):i}function Bv(a,i,u=0){const o=[...a,i];return u&&o.length>u?o.slice(1):o}function Hv(a,i,u=0){const o=[i,...a];return u&&o.length>u?o.slice(0,-1):o}var yr=Symbol();function xp(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===yr?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function bp(a,i){return typeof a=="function"?a(...i):!!a}function qv(a,i,u){let o=!1,r;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(r??=i(),o||(o=!0,r.aborted?u():r.addEventListener("abort",u,{once:!0})),r)}),a}var Oi=(()=>{let a=()=>Dv;return{isServer(){return a()},setIsServer(i){a=i}}})();function sr(){let a,i;const u=new Promise((r,d)=>{a=r,i=d});u.status="pending",u.catch(()=>{});function o(r){Object.assign(u,r),delete u.resolve,delete u.reject}return u.resolve=r=>{o({status:"fulfilled",value:r}),a(r)},u.reject=r=>{o({status:"rejected",reason:r}),i(r)},u}var Qv=zv;function Yv(){let a=[],i=0,u=x=>{x()},o=x=>{x()},r=Qv;const d=x=>{i?a.push(x):r(()=>{u(x)})},m=()=>{const x=a;a=[],x.length&&r(()=>{o(()=>{x.forEach(p=>{u(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=>{u=x},setBatchNotifyFunction:x=>{o=x},setScheduler:x=>{r=x}}}var ee=Yv(),Gv=class extends Ui{#t=!0;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a(!0),u=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",u)}}}}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(u=>{u(a)}))}isOnline(){return this.#t}},du=new Gv;function Xv(a){return Math.min(1e3*2**a,3e4)}function Sp(a){return(a??"online")==="online"?du.isOnline():!0}var ur=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function _p(a){let i=!1,u=0,o;const r=sr(),d=()=>r.status!=="pending",m=C=>{if(!d()){const D=new ur(C);S(D),a.onCancel?.(D)}},x=()=>{i=!0},p=()=>{i=!1},y=()=>mr.isFocused()&&(a.networkMode==="always"||du.isOnline())&&a.canRun(),b=()=>Sp(a.networkMode)&&a.canRun(),v=C=>{d()||(o?.(),r.resolve(C))},S=C=>{d()||(o?.(),r.reject(C))},_=()=>new Promise(C=>{o=D=>{(d()||y())&&C(D)},a.onPause?.()}).then(()=>{o=void 0,d()||a.onContinue?.()}),j=()=>{if(d())return;let C;const D=u===0?a.initialPromise:void 0;try{C=D??a.fn()}catch(L){C=Promise.reject(L)}Promise.resolve(C).then(v).catch(L=>{if(d())return;const z=a.retry??(Oi.isServer()?0:3),X=a.retryDelay??Xv,G=typeof X=="function"?X(u,L):X,$=z===!0||typeof z=="number"&&u<z||typeof z=="function"&&z(u,L);if(i||!$){S(L);return}u++,a.onFail?.(u,L),Uv(G).then(()=>y()?void 0:_()).then(()=>{i?S(L):j()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(o?.(),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 Vv(a){return{onFetch:(i,u)=>{const o=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 y=async()=>{let b=!1;const v=j=>{qv(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 v(F),F})(),X=await S(z),{maxPages:G}=i.options,$=D?Hv:Bv;return{pages:$(j.pages,X,G),pageParams:$(j.pageParams,C,G)}};if(r&&d.length){const j=r==="backward",C=j?Kv:Cm,D={pages:d,pageParams:m},L=C(o,D);x=await _(D,L,j)}else{const j=a??d.length;do{const C=p===0?m[0]??o.initialPageParam:Cm(o,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?.(y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},u):i.fetchFn=y}}}function Cm(a,{pages:i,pageParams:u}){const o=i.length-1;return i.length>0?a.getNextPageParam(i[o],i,u[o],u):void 0}function Kv(a,{pages:i,pageParams:u}){return i.length>0?a.getPreviousPageParam?.(i[0],i,u[0],u):void 0}var Zv=class extends Tp{#t;#e;#n;#a;#i;#l;#u;#s;constructor(a){super(),this.#s=!1,this.#u=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.#u,...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 u=ir(this.state.data,a,this.options);return this.#c({data:u,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),u}setState(a){this.#c({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===yr||!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:!vp(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.#c({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(y=>y.options.queryFn);p&&this.setOptions(p.options)}const u=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#s=!0,u.signal)})},r=()=>{const p=xp(this.options,i),b=(()=>{const v={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(v),v})();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 o(p),p})();(this.#t==="infinite"?Vv(this.options.pages):this.options.behavior)?.onFetch(m,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#c({type:"fetch",meta:m.fetchOptions?.meta}),this.#l=_p({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:p=>{p instanceof ur&&p.revert&&this.setState({...this.#n,fetchStatus:"idle"}),u.abort()},onFail:(p,y)=>{this.#c({type:"failed",failureCount:p,error:y})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({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 ur){if(p.silent)return this.#l.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#c({type:"error",error:p}),this.#a.config.onError?.(p,this),this.#a.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#c(a){const i=u=>{switch(a.type){case"failed":return{...u,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...Rp(u.data,this.options),fetchMeta:a.meta??null};case"success":const o={...u,...Am(a.data,a.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=a.manual?o:void 0,o;case"error":const r=a.error;return{...u,error:r,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...a.state}}};this.state=i(this.state),ee.batch(()=>{this.observers.forEach(u=>{u.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,u=i!==void 0,o=u?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:u?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var kv=class extends Ui{constructor(a,i){super(),this.options=i,this.#t=a,this.#s=null,this.#u=sr(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#a=void 0;#i;#l;#u;#s;#r;#c;#m;#f;#d;#o;#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 cr(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cr(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,u=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 o=this.hasListeners();o&&zm(this.#e,u,this.options,i)&&this.#h(),this.updateResult(),o&&(this.#e!==u||Re(this.options.enabled,this.#e)!==Re(i.enabled,this.#e)||ta(this.options.staleTime,this.#e)!==ta(i.staleTime,this.#e))&&this.#y();const r=this.#v();o&&(this.#e!==u||Re(this.options.enabled,this.#e)!==Re(i.enabled,this.#e)||r!==this.#o)&&this.#g(r)}getOptimisticResult(a){const i=this.#t.getQueryCache().build(this.#t,a),u=this.createResult(i,a);return Fv(this,u)&&(this.#a=u,this.#l=this.options,this.#i=this.#e.state),u}getCurrentResult(){return this.#a}trackResult(a,i){return new Proxy(a,{get:(u,o)=>(this.trackProp(o),i?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,o))})}trackProp(a){this.#p.add(a)}getCurrentQuery(){return this.#e}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#t.defaultQueryOptions(a),u=this.#t.getQueryCache().build(this.#t,i);return u.fetch().then(()=>this.createResult(u,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}#y(){this.#b();const a=ta(this.options.staleTime,this.#e);if(Oi.isServer()||this.#a.isStale||!nr(a))return;const u=vp(this.#a.dataUpdatedAt,a)+1;this.#f=Ta.setTimeout(()=>{this.#a.isStale||this.updateResult()},u)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(a){this.#S(),this.#o=a,!(Oi.isServer()||Re(this.options.enabled,this.#e)===!1||!nr(this.#o)||this.#o===0)&&(this.#d=Ta.setInterval(()=>{(this.options.refetchIntervalInBackground||mr.isFocused())&&this.#h()},this.#o))}#x(){this.#y(),this.#g(this.#v())}#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 u=this.#e,o=this.options,r=this.#a,d=this.#i,m=this.#l,p=a!==u?a.state:this.#n,{state:y}=a;let b={...y},v=!1,S;if(i._optimisticResults){const V=this.hasListeners(),k=!V&&Nm(a,i),it=V&&zm(a,u,i,o);(k||it)&&(b={...b,...Rp(y.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),v=!0)}if(i.select&&S!==void 0&&!D)if(r&&S===d?.data&&i.select===this.#r)S=this.#c;else try{this.#r=i.select,S=i.select(S),S=ir(r?.data,S,i),this.#c=S,this.#s=null}catch(V){this.#s=V}this.#s&&(_=this.#s,S=this.#c,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:v,isRefetchError:X&&$,isStale:vr(a,i),refetch:this.refetch,promise:this.#u,isEnabled:Re(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const V=H.data!==void 0,k=H.status==="error"&&!V,it=Lt=>{k?Lt.reject(H.error):V&&Lt.resolve(H.data)},at=()=>{const Lt=this.#u=H.promise=sr();it(Lt)},et=this.#u;switch(et.status){case"pending":a.queryHash===u.queryHash&&it(et);break;case"fulfilled":(k||H.data!==et.value)&&at();break;case"rejected":(!k||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 u=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;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:u()})}#_(){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 Jv(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 Jv(a,i)||a.state.data!==void 0&&cr(a,i,i.refetchOnMount)}function cr(a,i,u){if(Re(i.enabled,a)!==!1&&ta(i.staleTime,a)!=="static"){const o=typeof u=="function"?u(a):u;return o==="always"||o!==!1&&vr(a,i)}return!1}function zm(a,i,u,o){return(a!==i||Re(o.enabled,a)===!1)&&(!u.suspense||a.state.status!=="error")&&vr(a,u)}function vr(a,i){return Re(i.enabled,a)!==!1&&a.isStaleByTime(ta(i.staleTime,a))}function Fv(a,i){return!ar(a.getCurrentResult(),i)}var Pv=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||$v(),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"})},u={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=_p({fn:()=>this.options.mutationFn?this.options.mutationFn(a,u):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 o=this.state.status==="pending",r=!this.#a.canStart();try{if(o)i();else{this.#i({type:"pending",variables:a,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(a,this,u);const m=await this.options.onMutate?.(a,u);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,u),await this.options.onSuccess?.(d,a,this.state.context,u),await this.#n.config.onSettled?.(d,null,this.state.variables,this.state.context,this,u),await this.options.onSettled?.(d,null,a,this.state.context,u),this.#i({type:"success",data:d}),d}catch(d){try{await this.#n.config.onError?.(d,a,this.state.context,this,u)}catch(m){Promise.reject(m)}try{await this.options.onError?.(d,a,this.state.context,u)}catch(m){Promise.reject(m)}try{await this.#n.config.onSettled?.(void 0,d,this.state.variables,this.state.context,this,u)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,d,a,this.state.context,u)}catch(m){Promise.reject(m)}throw this.#i({type:"error",error:d}),d}finally{this.#n.runNext(this)}}#i(a){const i=u=>{switch(a.type){case"failed":return{...u,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,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{...u,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:a.error,failureCount:u.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ee.batch(()=>{this.#e.forEach(u=>{u.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function $v(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wv=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,u){const o=new Pv({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:u});return this.add(o),o}add(a){this.#t.add(a);const i=nu(a);if(typeof i=="string"){const u=this.#e.get(i);u?u.push(a):this.#e.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=nu(a);if(typeof i=="string"){const u=this.#e.get(i);if(u)if(u.length>1){const o=u.indexOf(a);o!==-1&&u.splice(o,1)}else u[0]===a&&this.#e.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=nu(a);if(typeof i=="string"){const o=this.#e.get(i)?.find(r=>r.state.status==="pending");return!o||o===a}else return!0}runNext(a){const i=nu(a);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==a&&o.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(u=>Em(i,u))}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 nu(a){return a.options.scope?.id}var Iv=class extends Ui{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,u){const o=i.queryKey,r=i.queryHash??pr(o,i);let d=this.get(r);return d||(d=new Zv({client:a,queryKey:o,queryHash:r,options:a.defaultQueryOptions(i),state:u,defaultOptions:a.getQueryDefaults(o)}),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(u=>Rm(i,u))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(u=>Rm(a,u)):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()})})}},tg=class{#t;#e;#n;#a;#i;#l;#u;#s;constructor(a={}){this.#t=a.queryCache||new Iv,this.#e=a.mutationCache||new Wv,this.#n=a.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#u=mr.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=du.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#u?.(),this.#u=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),u=this.#t.build(this,i),o=u.state.data;return o===void 0?this.fetchQuery(a):(a.revalidateIfStale&&u.isStaleByTime(ta(i.staleTime,u))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:u})=>{const o=u.data;return[i,o]})}setQueryData(a,i,u){const o=this.defaultQueryOptions({queryKey:a}),d=this.#t.get(o.queryHash)?.state.data,m=wv(i,d);if(m!==void 0)return this.#t.build(this,o).setData(m,{...u,manual:!0})}setQueriesData(a,i,u){return ee.batch(()=>this.#t.findAll(a).map(({queryKey:o})=>[o,this.setQueryData(o,i,u)]))}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(u=>{i.remove(u)})})}resetQueries(a,i){const u=this.#t;return ee.batch(()=>(u.findAll(a).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const u={revert:!0,...i},o=ee.batch(()=>this.#t.findAll(a).map(r=>r.cancel(u)));return Promise.all(o).then(he).catch(he)}invalidateQueries(a,i={}){return ee.batch(()=>(this.#t.findAll(a).forEach(u=>{u.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const u={...i,cancelRefetch:i.cancelRefetch??!0},o=ee.batch(()=>this.#t.findAll(a).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let d=r.fetch(void 0,u);return u.throwOnError||(d=d.catch(he)),r.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(o).then(he)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const u=this.#t.build(this,i);return u.isStaleByTime(ta(i.staleTime,u))?u.fetch(i):Promise.resolve(u.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 du.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()],u={};return i.forEach(o=>{Ai(a,o.queryKey)&&Object.assign(u,o.defaultOptions)}),u}setMutationDefaults(a,i){this.#i.set(Ci(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#i.values()],u={};return i.forEach(o=>{Ai(a,o.mutationKey)&&Object.assign(u,o.defaultOptions)}),u}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===yr&&(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()}},qo={exports:{}},ut={};var Dm;function eg(){if(Dm)return ut;Dm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=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"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=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 k(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 k(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 yt=!1;if(E===null)yt=!0;else switch(rt){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(E.$$typeof){case a:case i:yt=!0;break;case b:return yt=E._init,U(yt(E._payload),Q,Z,P,tt)}}if(yt)return tt=tt(E),yt=P===""?"."+zt(E,0):P,$(tt)?(Z="",yt!=null&&(Z=yt.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,"$&/")+"/")+yt)),Q.push(tt)),1;yt=0;var qt=P===""?".":P+":";if($(E))for(var Mt=0;Mt<E.length;Mt++)P=E[Mt],rt=qt+zt(P,Mt),yt+=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++),yt+=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 yt}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 ut.Activity=v,ut.Children=St,ut.Component=L,ut.Fragment=u,ut.Profiler=r,ut.PureComponent=X,ut.StrictMode=o,ut.Suspense=p,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ut.__COMPILER_RUNTIME={__proto__:null,c:function(E){return H.H.useMemoCache(E)}},ut.cache=function(E){return function(){return E.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.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 yt=Array(rt),qt=0;qt<rt;qt++)yt[qt]=arguments[qt+2];P.children=yt}return k(E.type,tt,P)},ut.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},ut.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 yt=arguments.length-2;if(yt===1)tt.children=Z;else if(1<yt){for(var qt=Array(yt),Mt=0;Mt<yt;Mt++)qt[Mt]=arguments[Mt+2];tt.children=qt}if(E&&E.defaultProps)for(P in yt=E.defaultProps,yt)tt[P]===void 0&&(tt[P]=yt[P]);return k(E,rt,tt)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(E){return{$$typeof:x,render:E}},ut.isValidElement=at,ut.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:lt}},ut.memo=function(E,Q){return{$$typeof:y,type:E,compare:Q===void 0?null:Q}},ut.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}},ut.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ut.use=function(E){return H.H.use(E)},ut.useActionState=function(E,Q,Z){return H.H.useActionState(E,Q,Z)},ut.useCallback=function(E,Q){return H.H.useCallback(E,Q)},ut.useContext=function(E){return H.H.useContext(E)},ut.useDebugValue=function(){},ut.useDeferredValue=function(E,Q){return H.H.useDeferredValue(E,Q)},ut.useEffect=function(E,Q){return H.H.useEffect(E,Q)},ut.useEffectEvent=function(E){return H.H.useEffectEvent(E)},ut.useId=function(){return H.H.useId()},ut.useImperativeHandle=function(E,Q,Z){return H.H.useImperativeHandle(E,Q,Z)},ut.useInsertionEffect=function(E,Q){return H.H.useInsertionEffect(E,Q)},ut.useLayoutEffect=function(E,Q){return H.H.useLayoutEffect(E,Q)},ut.useMemo=function(E,Q){return H.H.useMemo(E,Q)},ut.useOptimistic=function(E,Q){return H.H.useOptimistic(E,Q)},ut.useReducer=function(E,Q,Z){return H.H.useReducer(E,Q,Z)},ut.useRef=function(E){return H.H.useRef(E)},ut.useState=function(E){return H.H.useState(E)},ut.useSyncExternalStore=function(E,Q,Z){return H.H.useSyncExternalStore(E,Q,Z)},ut.useTransition=function(){return H.H.useTransition()},ut.version="19.2.6",ut}var wm;function Bi(){return wm||(wm=1,qo.exports=eg()),qo.exports}var J=Bi();const Ni=jv(J);var Ep=J.createContext(void 0),ng=a=>{const i=J.useContext(Ep);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},ag=({client:a,children:i})=>(J.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),h.jsx(Ep.Provider,{value:a,children:i})),jp=J.createContext(!1),lg=()=>J.useContext(jp);jp.Provider;function ig(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var sg=J.createContext(ig()),ug=()=>J.useContext(sg),cg=(a,i,u)=>{const o=u?.state.error&&typeof a.throwOnError=="function"?bp(a.throwOnError,[u.state.error,u]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||o)&&(i.isReset()||(a.retryOnMount=!1))},og=a=>{J.useEffect(()=>{a.clearReset()},[a])},rg=({result:a,errorResetBoundary:i,throwOnError:u,query:o,suspense:r})=>a.isError&&!i.isReset()&&!a.isFetching&&o&&(r&&a.data===void 0||bp(u,[a.error,o])),fg=a=>{if(a.suspense){const u=r=>r==="static"?r:Math.max(r??1e3,1e3),o=a.staleTime;a.staleTime=typeof o=="function"?(...r)=>u(o(...r)):u(o),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},dg=(a,i)=>a.isLoading&&a.isFetching&&!i,hg=(a,i)=>a?.suspense&&i.isPending,Lm=(a,i,u)=>i.fetchOptimistic(a).catch(()=>{u.clearReset()});function mg(a,i,u){const o=lg(),r=ug(),d=ng(),m=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const x=d.getQueryCache().get(m.queryHash);m._optimisticResults=o?"isRestoring":"optimistic",fg(m),cg(m,r,x),og(r);const p=!d.getQueryCache().get(m.queryHash),[y]=J.useState(()=>new i(d,m)),b=y.getOptimisticResult(m),v=!o&&a.subscribed!==!1;if(J.useSyncExternalStore(J.useCallback(S=>{const _=v?y.subscribe(ee.batchCalls(S)):he;return y.updateResult(),_},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),J.useEffect(()=>{y.setOptions(m)},[m,y]),hg(m,b))throw Lm(m,y,r);if(rg({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()&&dg(b,o)&&(p?Lm(m,y,r):x?.promise)?.catch(he).finally(()=>{y.updateResult()}),m.notifyOnChangeProps?b:y.trackResult(b)}function We(a,i){return mg(a,kv)}var Mi=typeof window<"u"?J.useLayoutEffect:J.useEffect;function Qo(a){const i=J.useRef({value:a,prev:null}),u=i.current.value;return a!==u&&(i.current={value:a,prev:u}),i.current.prev}function pg(a,i,u={},o={}){J.useEffect(()=>{if(!a.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([d])=>{i(d)},u);return r.observe(a.current),()=>{r.disconnect()}},[i,u,o.disabled,a])}function yg(a){const i=J.useRef(null);return J.useImperativeHandle(a,()=>i.current,[]),i}const Mp=!1;function zi(a){return a[a.length-1]}function vg(a){return typeof a=="function"}function $n(a,i){return vg(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 gg=()=>Object.create(null),_a=(a,i)=>Ra(a,i,gg);function Ra(a,i,u=()=>({}),o=0){if(a===i)return a;if(o>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,y=x.length,b=d?new Array(y):u();let v=0;for(let S=0;S<y;S++){const _=d?S:x[S],j=a[_],C=r[_];if(j===C){b[_]=j,(d?S<p:Cp.call(a,_))&&v++;continue}if(j===null||C===null||typeof j!="object"||typeof C!="object"){b[_]=C;continue}const D=Ra(j,C,u,o+1);b[_]=D,D===j&&v++}return p===y&&v===p?a:b}function Bm(a){const i=Object.getOwnPropertyNames(a);for(const r of i)if(!Um.call(a,r))return!1;const u=Object.getOwnPropertySymbols(a);if(u.length===0)return i;const o=i;for(const r of u){if(!Um.call(a,r))return!1;o.push(r)}return o}function Sl(a){if(!Hm(a))return!1;const i=a.constructor;if(typeof i>"u")return!0;const u=i.prototype;return!(!Hm(u)||!u.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,u){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 o=0,r=a.length;o<r;o++)if(!ja(a[o],i[o],u))return!1;return!0}if(Sl(a)&&Sl(i)){const o=u?.ignoreUndefined??!0;if(u?.partial){for(const m in i)if((!o||i[m]!==void 0)&&!ja(a[m],i[m],u))return!1;return!0}let r=0;if(!o)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((!o||i[m]!==void 0)&&(d++,d>r||!ja(a[m],i[m],u)))return!1;return r===d}return!1}function _l(a){let i,u;const o=new Promise((r,d)=>{i=r,u=d});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,i(r),a?.(r)},o.reject=r=>{o.status="rejected",u(r)},o}function Di(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function xg(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,u=>{try{return decodeURI(u)}catch{return u}})}return xg(i)}const bg=["http:","https:","mailto:","tel:"];function hu(a,i){if(!a)return!1;try{const u=new URL(a);return!i.has(u.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 u=0,o="",r;for(;(r=i.exec(a))!==null;)o+=Qm(a.slice(u,r.index))+r[0],u=i.lastIndex;o=o+Qm(u?a.slice(u):a);let d=!1;return o.startsWith("//")&&(d=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:d}}function Sg(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function _g(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let u=0;u<a.length;u++)if(a[u]!==i[u])return!1;return!0}function Tn(){throw new Error("Invariant failed")}function wi(a){const i=new Map;let u,o;const r=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,o&&(o.next=d,d.prev=o)):(d.next.prev=void 0,u=d.next,d.next=void 0,o&&(d.prev=o,o.next=d)),o=d)};return{get(d){const m=i.get(d);if(m)return r(m),m.value},set(d,m){if(i.size>=a&&u){const p=u;i.delete(p.key),p.next&&(u=p.next,p.next.prev=void 0),p===o&&(o=void 0)}const x=i.get(d);if(x)x.value=m,r(x);else{const p={key:d,value:m,prev:o};o&&(o.next=p),o=p,u||(u=p),i.set(d,p)}},clear(){i.clear(),u=void 0,o=void 0}}}const Wn=4,Op=5;function Tg(a){const i=a.indexOf("{");if(i===-1)return null;const u=a.indexOf("}",i);return u===-1||i+1>=a.length?null:[i,u]}function Np(a,i,u=new Uint16Array(6)){const o=a.indexOf("/",i),r=o===-1?a.length:o,d=a.substring(i,r);if(!d||!d.includes("$"))return u[0]=0,u[1]=i,u[2]=i,u[3]=r,u[4]=r,u[5]=r,u;if(d==="$"){const x=a.length;return u[0]=2,u[1]=i,u[2]=i,u[3]=x,u[4]=x,u[5]=x,u}if(d.charCodeAt(0)===36)return u[0]=1,u[1]=i,u[2]=i+1,u[3]=r,u[4]=r,u[5]=r,u;const m=Tg(d);if(m){const[x,p]=m,y=d.charCodeAt(x+1);if(y===45){if(x+2<d.length&&d.charCodeAt(x+2)===36){const b=x+3,v=p;if(b<v)return u[0]=3,u[1]=i+x,u[2]=i+b,u[3]=i+v,u[4]=i+p+1,u[5]=r,u}}else if(y===36){const b=x+1,v=x+2;return v===p?(u[0]=2,u[1]=i+x,u[2]=i+b,u[3]=i+v,u[4]=i+p+1,u[5]=a.length,u):(u[0]=1,u[1]=i+x,u[2]=i+v,u[3]=i+p,u[4]=i+p+1,u[5]=r,u)}}return u[0]=0,u[1]=i,u[2]=i,u[3]=r,u[4]=r,u[5]=r,u}function bu(a,i,u,o,r,d,m){m?.(u);let x=o;{const p=u.fullPath??u.from,y=p.length,b=u.options?.caseSensitive??a,v=u.options?.params?.parse??u.options?.parseParams;for(;x<y;){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(u.fullPath??u.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(u.fullPath??u.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=!v&&r.dynamic?.find(H=>!H.parse&&H.caseSensitive===X&&H.prefix===G&&H.suffix===$);if(F)j=F;else{const H=Go(1,u.fullPath??u.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=!v&&r.optional?.find(H=>!H.parse&&H.caseSensitive===X&&H.prefix===G&&H.suffix===$);if(F)j=F;else{const H=Go(3,u.fullPath??u.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=Go(2,u.fullPath??u.from,X,G,$);j=F,F.parent=r,F.depth=d,r.wildcard??=[],r.wildcard.push(F)}}r=j}if(v&&u.children&&!u.isRoot&&u.id&&u.id.charCodeAt(u.id.lastIndexOf("/")+1)===95){const _=Ea(u.fullPath??u.from);_.kind=Op,_.parent=r,d++,_.depth=d,r.pathless??=[],r.pathless.push(_),r=_}const S=(u.path||!u.children)&&!u.isRoot;if(S&&p.endsWith("/")){const _=Ea(u.fullPath??u.from);_.kind=Wn,_.parent=r,d++,_.depth=d,r.index=_,r=_}r.parse=v??null,S&&!r.route&&(r.route=u,r.fullPath=u.fullPath??u.from)}if(u.children)for(const p of u.children)bu(a,i,p,x,r,d,m)}function Yo(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(Yo);for(const i of a.dynamic)Pn(i)}if(a.optional?.length){a.optional.sort(Yo);for(const i of a.optional)Pn(i)}if(a.wildcard?.length){a.wildcard.sort(Yo);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 Go(a,i,u,o,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:u,prefix:o,suffix:r}}function Rg(a,i){const u=Ea("/"),o=new Uint16Array(6);for(const r of a)bu(!1,o,r,1,u,0);Pn(u),i.masksTree=u,i.flatCache=wi(1e3)}function Eg(a,i){a||="/";const u=i.flatCache.get(a);if(u)return u;const o=gr(a,i.masksTree);return i.flatCache.set(a,o),o}function jg(a,i,u,o,r){a||="/",o||="/";const d=i?`case\0${a}`:a;let m=r.singleCache.get(d);return m||(m=Ea("/"),bu(i,new Uint16Array(6),{from:a},1,m,0),r.singleCache.set(d,m)),gr(o,m,u)}function Mg(a,i,u=!1){const o=u?a:`nofuzz\0${a}`,r=i.matchCache.get(o);if(r!==void 0)return r;a||="/";let d;try{d=gr(a,i.segmentTree,u)}catch(m){if(m instanceof URIError)d=null;else throw m}return d&&(d.branch=Dp(d.route)),i.matchCache.set(o,d),d}function Cg(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function Ag(a,i=!1,u){const o=Ea(a.fullPath),r=new Uint16Array(6),d={},m={};let x=0;return bu(i,r,a,1,o,0,p=>{if(u?.(p,x),p.id in d&&Tn(),d[p.id]=p,x!==0&&p.path){const y=Cg(p.fullPath);(!m[y]||p.fullPath.endsWith("/"))&&(m[y]=p)}x++}),Pn(o),{processedTree:{segmentTree:o,singleCache:wi(1e3),matchCache:wi(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:m}}function gr(a,i,u=!1){const o=a.split("/"),r=Ng(a,o,i,u);if(!r)return null;const[d]=zp(a,o,r);return{route:r.node.route,rawParams:d}}function zp(a,i,u){const o=Og(u.node);let r=null;const d=Object.create(null);let m=u.extract?.part??0,x=u.extract?.node??0,p=u.extract?.path??0,y=u.extract?.segment??0;for(;x<o.length;m++,x++,p++,y++){const b=o[x];if(b.kind===Wn)break;if(b.kind===Op){y--,m--,p--;continue}const v=i[m],S=p;if(v&&(p+=v.length),b.kind===1){r??=u.node.fullPath.split("/");const _=r[y],j=b.prefix?.length??0;if(_.charCodeAt(j)===123){const C=b.suffix?.length??0,D=_.substring(j+2,_.length-C-1),L=v.substring(j,v.length-C);d[D]=decodeURIComponent(L)}else{const C=_.substring(1);d[C]=decodeURIComponent(v)}}else if(b.kind===3){if(u.skipped&1<<x){m--,p=S-1;continue}r??=u.node.fullPath.split("/");const _=r[y],j=b.prefix?.length??0,C=b.suffix?.length??0,D=_.substring(j+3,_.length-C-1),L=b.suffix||b.prefix?v.substring(j,v.length-C):v;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 u.rawParams&&Object.assign(d,u.rawParams),[d,{part:m,node:x,path:p,segment:y}]}function Dp(a){const i=[a];for(;a.parentRoute;)a=a.parentRoute,i.push(a);return i.reverse(),i}function Og(a){const i=Array(a.depth+1);do i[a.depth]=a,a=a.parent;while(a);return i}function Ng(a,i,u,o){if(a==="/"&&u.index)return{node:u.index,skipped:0};const r=!zi(i),d=r&&a!=="/",m=i.length-(r?1:0),x=[{node:u,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,y=null;for(;x.length;){const b=x.pop(),{node:v,index:S,skipped:_,depth:j,statics:C,dynamics:D,optionals:L}=b;let{extract:z,rawParams:X}=b;if(v.kind===2&&v.route&&!lu(y,b))continue;if(v.parse){if(!Ym(a,i,b))continue;X=b.rawParams,z=b.extract}o&&v.route&&v.kind!==Wn&&lu(p,b)&&(p=b);const G=S===m;if(G&&(v.route&&(!d||v.kind===Wn||v.kind===2)&&lu(y,b)&&(y=b),!v.optional&&!v.wildcard&&!v.index&&!v.pathless))continue;const $=G?void 0:i[S];let F;if(G&&v.index){const H={node:v.index,index:S,skipped:_,depth:j+1,statics:C,dynamics:D,optionals:L,extract:z,rawParams:X};let V=!0;if(v.index.parse&&(Ym(a,i,H)||(V=!1)),V){if(!D&&!L&&!_&&zg(C,m))return H;lu(y,H)&&(y=H)}}if(v.wildcard)for(let H=v.wildcard.length-1;H>=0;H--){const V=v.wildcard[H],{prefix:k,suffix:it}=V;if(!(k&&(G||!(V.caseSensitive?$:F??=$.toLowerCase()).startsWith(k)))){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(v.optional){const H=_|1<<j,V=j+1;for(let k=v.optional.length-1;k>=0;k--){const it=v.optional[k];x.push({node:it,index:S,skipped:H,depth:V,statics:C,dynamics:D,optionals:L,extract:z,rawParams:X})}if(!G)for(let k=v.optional.length-1;k>=0;k--){const it=v.optional[k],{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+au(m,S),extract:z,rawParams:X})}}if(!G&&v.dynamic&&$)for(let H=v.dynamic.length-1;H>=0;H--){const V=v.dynamic[H],{prefix:k,suffix:it}=V;if(k||it){const at=V.caseSensitive?$:F??=$.toLowerCase();if(k&&!at.startsWith(k)||it&&!at.endsWith(it))continue}x.push({node:V,index:S+1,skipped:_,depth:j+1,statics:C,dynamics:D+au(m,S),optionals:L,extract:z,rawParams:X})}if(!G&&v.staticInsensitive){const H=v.staticInsensitive.get(F??=$.toLowerCase());H&&x.push({node:H,index:S+1,skipped:_,depth:j+1,statics:C+au(m,S),dynamics:D,optionals:L,extract:z,rawParams:X})}if(!G&&v.static){const H=v.static.get($);H&&x.push({node:H,index:S+1,skipped:_,depth:j+1,statics:C+au(m,S),dynamics:D,optionals:L,extract:z,rawParams:X})}if(v.pathless){const H=j+1;for(let V=v.pathless.length-1;V>=0;V--){const k=v.pathless[V];x.push({node:k,index:S,skipped:_,depth:H,statics:C,dynamics:D,optionals:L,extract:z,rawParams:X})}}}if(y)return y;if(o&&p){let b=p.index;for(let S=0;S<p.index;S++)b+=i[S].length;const v=b===a.length?"/":a.slice(b);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(v),p}return null}function au(a,i){return 2**(a-i-1)}function zg(a,i){return a===2**(i-1)-1}function Ym(a,i,u){let o,r;try{[o,r]=zp(a,i,u)}catch{return null}if(u.rawParams=o,u.extract=r,!u.node.parse)return!0;try{if(u.node.parse(o)===!1)return null}catch{}return!0}function lu(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 cu(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 mu(a,i){return a?.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function Dg(a,i,u){return mu(a,u)===mu(i,u)}function wg({base:a,to:i,trailingSlash:u="never",cache:o}){const r=i.startsWith("/"),d=!r&&i===".";let m;if(o){m=r?i:d?a:a+"\0"+i;const y=o.get(m);if(y)return y}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 y=i.split("/");for(let b=0,v=y.length;b<v;b++){const S=y[b];S===""?b?b===v-1&&x.push(S):x=[S]:S===".."?x.pop():S==="."||x.push(S)}}x.length>1&&(zi(x)===""?u==="never"&&x.pop():u==="always"&&x.push(""));const p=xr(x.join("/"))||"/";return m&&o&&o.set(m,p),p}function Lg(a){const i=new Map(a.map(r=>[encodeURIComponent(r),r])),u=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(u,"g");return r=>r.replace(o,d=>i.get(d)??d)}function Xo(a,i,u){const o=i[a];return typeof o!="string"?o:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Xm(r,u)).join("/"):Xm(o,u)}function Gm({path:a,params:i,decoder:u,...o}){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,y="";for(;x<m;){const b=x;p=Np(a,b,p);const v=p[5];if(x=v+1,b===v)continue;const S=p[0];if(S===0){y+="/"+a.substring(b,v);continue}if(S===2){const _=i._splat;d._splat=_,d["*"]=_;const j=a.substring(b,p[1]),C=a.substring(p[4],v);if(!_){r=!0,(j||C)&&(y+="/"+j+C);continue}const D=Xo("_splat",i,u);y+="/"+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],v),D=Xo(_,i,u)??"undefined";y+="/"+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],v),L=Xo(_,i,u)??"";y+="/"+C+L+D;continue}}return a.endsWith("/")&&(y+="/"),{usedParams:d,interpolatedPath:y||"/",isMissingParams:r}}function Xm(a,i){const u=encodeURIComponent(a);return i?.(u)??u}function le(a){return a?.isNotFound===!0}function Ug(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const Bg="tsr-scroll-restoration-v1_3";function Hg(){const a=Ug();if(!a)return null;let i={};try{const o=JSON.parse(a.getItem("tsr-scroll-restoration-v1_3")||"{}");Sl(o)&&(i=o)}catch{}return{get state(){return i},set:o=>{i=$n(o,i)||i},persist:()=>{try{a.setItem(Bg,JSON.stringify(i))}catch{}}}}const Vm=Hg(),qg=a=>a.state.__TSR_key||a.href;function Qg(a){const i=[];let u;for(;u=a.parentNode;)i.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(u.children,a)+1})`),a=u;return`${i.reverse().join(" > ")}`.toLowerCase()}let iu=!1;const _i="window",Km="data-scroll-restoration-id";function Yg(a,i){if(!Vm)return;const u=Vm;if((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isScrollRestorationSetup||!u)return;a.isScrollRestorationSetup=!0,iu=!1;const o=a.options.getScrollRestorationKey||qg,r=new Map;window.history.scrollRestoration="manual";const d=x=>{if(!(iu||!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||!u)return;const p=u.state[x]||={};for(const[y,b]of r){let v;if(y===_i)v=_i;else if(y.isConnected){const S=y.getAttribute(Km);v=S?`[${Km}="${S}"]`:Qg(y)}v&&(p[v]=b)}};document.addEventListener("scroll",d,!0),a.subscribe("onBeforeLoad",x=>{m(x.fromLocation?o(x.fromLocation):void 0),r.clear()}),window.addEventListener("pagehide",()=>{m(o(a.stores.resolvedLocation.get()??a.stores.location.get())),u.persist()}),a.subscribe("onRendered",x=>{const p=o(x.toLocation),y=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}))){iu=!0;try{const v=a.isScrollRestoring?u.state[p]:void 0;let S=!1;if(v)for(const _ in v){const j=v[_];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:y}),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:y};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{iu=!1}a.isScrollRestoring&&u.set(v=>(v[p]||={},v))}})}function Gg(a,i=String){const u=new URLSearchParams;for(const o in a){const r=a[o];r!==void 0&&u.set(o,i(r))}return u.toString()}function Vo(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function Xg(a){const i=new URLSearchParams(a),u=Object.create(null);for(const[o,r]of i.entries()){const d=u[o];d==null?u[o]=Vo(r):Array.isArray(d)?d.push(Vo(r)):u[o]=[d,Vo(r)]}return u}const Vg=Zg(JSON.parse),Kg=kg(JSON.stringify,JSON.parse);function Zg(a){return i=>{i[0]==="?"&&(i=i.substring(1));const u=Xg(i);for(const o in u){const r=u[o];if(typeof r=="string")try{u[o]=a(r)}catch{}}return u}}function kg(a,i){const u=typeof i=="function";function o(r){if(typeof r=="object"&&r!==null)try{return a(r)}catch{}else if(u&&typeof r=="string")try{return i(r),a(r)}catch{}return r}return r=>{const d=Gg(r,o);return d?`?${d}`:""}}const Ma="__root__";function Jg(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 u=new Response(null,{status:a.statusCode,headers:i});if(u.options=a,a.throw)throw u;return u}function me(a){return a instanceof Response&&!!a.options}function Fg(a){return{input:({url:i})=>{for(const u of a)i=or(u,i);return i},output:({url:i})=>{for(let u=a.length-1;u>=0;u--)i=Up(a[u],i);return i}}}function Pg(a){const i=Lp(a.basepath),u=`/${i}`,o=`${u}/`,r=a.caseSensitive?u:u.toLowerCase(),d=a.caseSensitive?o:o.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(u.length)),m},output:({url:m})=>(m.pathname=cu(["/",i,m.pathname]),m)}}function or(a,i){const u=a?.input?.({url:i});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return i}function Up(a,i){const u=a?.output?.({url:i});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return i}function $g(a,i){const{createMutableStore:u,createReadonlyStore:o,batch:r,init:d}=i,m=new Map,x=new Map,p=new Map,y=u(a.status),b=u(a.loadedAt),v=u(a.isLoading),S=u(a.isTransitioning),_=u(a.location),j=u(a.resolvedLocation),C=u(a.statusCode),D=u(a.redirect),L=u([]),z=u([]),X=u([]),G=o(()=>Ko(m,L.get())),$=o(()=>Ko(x,z.get())),F=o(()=>Ko(p,X.get())),H=o(()=>L.get()[0]),V=o(()=>L.get().some(K=>m.get(K)?.get().status==="pending")),k=o(()=>({locationHref:_.get().href,resolvedLocationHref:j.get()?.href,status:y.get()})),it=o(()=>({status:y.get(),loadedAt:b.get(),isLoading:v.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=o(()=>{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:y,loadedAt:b,isLoading:v,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:k,matchStores:m,pendingMatchStores:x,cachedMatchStores:p,__store:it,getRouteMatchStore:et,setMatches:zt,setPending:Ht,setCached:U};zt(a.matches),d?.(Lt);function zt(K){Zo(K,m,L,u,r)}function Ht(K){Zo(K,x,z,u,r)}function U(K){Zo(K,p,X,u,r)}return Lt}function Ko(a,i){const u=[];for(const o of i){const r=a.get(o);r&&u.push(r.get())}return u}function Zo(a,i,u,o,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 y=o(x);y.routeId=x.routeId,i.set(x.id,y);continue}p.routeId=x.routeId,p.get()!==x&&p.set(x)}_g(u.get(),d)||u.set(d)})}const rr=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},Wg=a=>a.stores.matchesId.get().some(i=>a.stores.matchStores.get(i)?.get()._forcePending),Su=(a,i)=>!!(a.preload&&!a.router.stores.matchStores.has(i)),Ca=(a,i,u=!0)=>{const o={...a.router.options.context??{}},r=u?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(o,x.__routeContext,x.__beforeLoadContext)}return o},Zm=(a,i)=>{if(!a.matches.length)return;const u=i.routeId,o=a.matches.findIndex(m=>m.routeId===a.router.routeTree.id),r=o>=0?o:0;let d=u?a.matches.findIndex(m=>m.routeId===u):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 u?d:r},In=(a,i,u)=>{if(!(!me(u)&&!le(u)))throw me(u)&&u.redirectHandled&&!u.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=u,a.updateMatch(i.id,o=>({...o,status:me(u)?"redirected":le(u)?"notFound":o.status==="pending"?"success":o.status,context:Ca(a,i.index),isFetching:!1,error:u})),le(u)&&!u.routeId&&(u.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),me(u)&&(a.rendered=!0,u.options._fromLocation=a.location,u.redirectHandled=!0,u=a.router.resolveRedirect(u))),u},Bp=(a,i)=>{const u=a.router.getMatch(i);return!!(!u||u._nonReactive.dehydrated)},km=(a,i,u)=>{const o=Ca(a,u);a.updateMatch(i,r=>({...r,context:o}))},Ti=(a,i,u,o)=>{const{id:r,routeId:d}=a.matches[i],m=a.router.looseRoutesById[d];if(u instanceof Promise)throw u;u.routerCode=o,a.firstBadMatchIndex??=i,In(a,a.router.getMatch(r),u);try{m.options.onError?.(u)}catch(x){u=x,In(a,a.router.getMatch(r),u)}a.updateMatch(r,x=>(x._nonReactive.beforeLoadPromise?.resolve(),x._nonReactive.beforeLoadPromise=void 0,x._nonReactive.loadPromise?.resolve(),{...x,error:u,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!a.preload&&!me(u)&&!le(u)&&(a.serialError??=u)},Hp=(a,i,u,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=u.options.pendingMs??a.router.options.defaultPendingMs;if(a.onReady&&!Su(a,i)&&(u.options.loader||u.options.beforeLoad||Qp(u))&&typeof r=="number"&&r!==1/0&&(u.options.pendingComponent??a.router.options?.defaultPendingComponent)){const d=setTimeout(()=>{rr(a)},r);o._nonReactive.pendingTimeout=d}},Ig=(a,i,u)=>{const o=a.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Hp(a,i,u,o);const r=()=>{const d=a.router.getMatch(i);d.preload&&(d.status==="redirected"||d.status==="notFound")&&In(a,d,d.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},tx=(a,i,u,o)=>{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,u,m,"PARSE_PARAMS"),x&&Ti(a,u,x,"VALIDATE_SEARCH"),Hp(a,i,o,r);const p=new AbortController;let y=!1;const b=()=>{y||(y=!0,a.updateMatch(i,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:p})))},v=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,a.updateMatch(i,G=>({...G,isFetching:!1}))};if(!o.options.beforeLoad){a.router.batch(()=>{b(),v()});return}r._nonReactive.beforeLoadPromise=_l();const S={...Ca(a,u,!1),...r.__routeContext},{search:_,params:j,cause:C}=r,D=Su(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:o.id,...a.router.options.additionalContext},z=G=>{if(G===void 0){a.router.batch(()=>{b(),v()});return}(me(G)||le(G))&&(b(),Ti(a,u,G,"BEFORE_LOAD")),a.router.batch(()=>{b(),a.updateMatch(i,$=>({...$,__beforeLoadContext:G})),v()})};let X;try{if(X=o.options.beforeLoad(L),Di(X))return b(),X.catch(G=>{Ti(a,u,G,"BEFORE_LOAD")}).then(z)}catch(G){b(),Ti(a,u,G,"BEFORE_LOAD")}z(X)},ex=(a,i)=>{const{id:u,routeId:o}=a.matches[i],r=a.router.looseRoutesById[o],d=()=>x(),m=()=>tx(a,u,i,r),x=()=>{if(Bp(a,u))return;const p=Ig(a,u,r);return Di(p)?p.then(m):m()};return d()},nx=(a,i,u)=>{const o=a.router.getMatch(i);if(!o||!u.options.head&&!u.options.scripts&&!u.options.headers)return;const r={ssr:a.router.options.ssr,matches:a.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([u.options.head?.(r),u.options.scripts?.(r),u.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,u,o,r)=>{const d=i[o-1],{params:m,loaderDeps:x,abortController:p,cause:y}=a.router.getMatch(u),b=Ca(a,o),v=Su(a,u);return{params:m,deps:x,preload:!!v,parentMatchPromise:d,abortController:p,context:b,location:a.location,navigate:S=>a.router.navigate({...S,_fromLocation:a.location}),cause:v?"preload":y,route:r,...a.router.options.additionalContext}},Jm=async(a,i,u,o,r)=>{try{const d=a.router.getMatch(u);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,u,o,r)),y=!!x&&Di(p);if((y||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||d._nonReactive.minPendingPromise)&&a.updateMatch(u,v=>({...v,isFetching:"loader"})),x){const v=y?await p:p;In(a,a.router.getMatch(u),v),v!==void 0&&a.updateMatch(u,S=>({...S,loaderData:v}))}r._lazyPromise&&await r._lazyPromise;const b=d._nonReactive.minPendingPromise;b&&await b,r._componentsPromise&&await r._componentsPromise,a.updateMatch(u,v=>({...v,error:void 0,context:Ca(a,o),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(u,y=>({...y,status:y.status==="pending"?"success":y.status,isFetching:!1,context:Ca(a,o)}));return}const p=d._nonReactive.minPendingPromise;p&&await p,le(m)&&await r.options.notFoundComponent?.preload?.(),In(a,a.router.getMatch(u),m);try{r.options.onError?.(m)}catch(y){x=y,In(a,a.router.getMatch(u),y)}!me(x)&&!le(x)&&await Li(r,["errorComponent"]),a.updateMatch(u,y=>({...y,error:x,context:Ca(a,o),status:"error",isFetching:!1}))}}catch(d){const m=a.router.getMatch(u);m&&(m._nonReactive.loaderPromise=void 0),In(a,m,d)}},ax=async(a,i,u)=>{async function o(_,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,u,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,u,L);const k=a.router.getMatch(r);k._nonReactive.loaderPromise?.resolve(),k._nonReactive.loadPromise?.resolve(),k._nonReactive.loaderPromise=void 0,k._nonReactive.loadPromise=void 0}catch(k){me(k)&&await a.router.navigate(k.options)}})()):F!=="success"||m?await Jm(a,i,r,u,L):km(a,r,u))}const{id:r,routeId:d}=a.matches[u];let m=!1,x=!1;const p=a.router.looseRoutesById[d],y=p.options.loader,b=((typeof y=="function"?void 0:y?.staleReloadMode)??a.router.options.defaultStaleReloadMode)!=="blocking";if(Bp(a,r)){if(!a.router.getMatch(r))return a.matches[u];km(a,r,u)}else{const _=a.router.getMatch(r),j=a.router.stores.matchesId.get()[u],C=(j&&a.router.stores.matchStores.get(j)||null)?.routeId===d?j:a.router.stores.matches.get().find(L=>L.routeId===d)?.id,D=Su(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 o(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 o(D,_,C,z,p)}}const v=a.router.getMatch(r);x||(v._nonReactive.loaderPromise?.resolve(),v._nonReactive.loadPromise?.resolve(),v._nonReactive.loadPromise=void 0),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,x||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const S=x?v.isFetching:!1;return S!==v.isFetching||v.invalid!==!1?(a.updateMatch(r,_=>({..._,isFetching:S,invalid:!1})),a.router.getMatch(r)):v};async function Fm(a){const i=a,u=[];Wg(i.router)&&rr(i);let o;for(let S=0;S<i.matches.length;S++){try{const _=ex(i,S);Di(_)&&await _}catch(_){if(me(_))throw _;if(le(_))o=_;else if(!i.preload)throw _;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const r=i.firstBadMatchIndex??i.matches.length,d=o&&!i.preload?Zm(i,o):void 0,m=o&&i.preload?0:d!==void 0?Math.min(d+1,r):r;let x,p;for(let S=0;S<m;S++)u.push(ax(i,u,S));try{await Promise.all(u)}catch{const S=await Promise.allSettled(u);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 y=x??(o&&!i.preload?o:void 0);let b=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!y&&o&&i.preload)return i.matches;if(y){const S=Zm(i,y);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),y.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:y},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=nx(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 v=rr(i);if(Di(v)&&await v,y)throw y;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Pm(a,i){const u=i.map(o=>a.options[o]?.preload?.()).filter(Boolean);if(u.length!==0)return Promise.all(u)}function Li(a,i=ou){!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(o=>{const{id:r,...d}=o.options;Object.assign(a.options,d),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0);const u=()=>a._componentsLoaded?void 0:i===ou?(()=>{if(a._componentsPromise===void 0){const o=Pm(a,ou);o?a._componentsPromise=o.then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0}):a._componentsLoaded=!0}return a._componentsPromise})():Pm(a,i);return a._lazyPromise?a._lazyPromise.then(u):u()}function Qp(a){for(const i of ou)if(a.options[i]?.preload)return!0;return!1}const ou=["component","errorComponent","pendingComponent","notFoundComponent"];var ea="__TSR_index",$m="popstate",Wm="beforeunload";function lx(a){let i=a.getLocation();const u=new Set,o=m=>{i=a.getLocation(),u.forEach(x=>x({location:i,action:m}))},r=m=>{a.notifyOnIndexChange??!0?o(m):i=a.getLocation()},d=async({task:m,navigateOpts:x,...p})=>{if(x?.ignoreBlocker??!1){m();return}const y=a.getBlockers?.()??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&y.length&&b)for(const v of y){const S=pu(p.path,p.state);if(await v.blockerFn({currentLocation:i,nextLocation:S,action:p.type})){a.onBlocked?.();return}}m()};return{get location(){return i},get length(){return a.getLength()},subscribers:u,subscribe:m=>(u.add(m),()=>{u.delete(m)}),push:(m,x,p)=>{const y=i.state[ea];x=Im(y+1,x),d({task:()=>{a.pushState(m,x),o({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:m,state:x})},replace:(m,x,p)=>{const y=i.state[ea];x=Im(y,x),d({task:()=>{a.replaceState(m,x),o({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(y=>y!==m))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:o}}function Im(a,i){i||(i={});const u=br();return{...i,key:u,__TSR_key:u,[ea]:a}}function ix(a){const i=typeof document<"u"?window:void 0,u=i.history.pushState,o=i.history.replaceState;let r=[];const d=()=>r,m=V=>r=V,x=(V=>V),p=(()=>pu(`${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 y=p(),b,v=!1,S=!1,_=!1,j=!1;const C=()=>y;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,k,it)=>{const at=x(k);L||(b=y),y=pu(k,it),D={href:at,state:it,isPush:D?.isPush||V==="push"},L||(L=Promise.resolve().then(()=>z()))},G=V=>{y=p(),H.notify({type:V})},$=async()=>{if(S){S=!1;return}const V=p(),k=V.state[ea]-y.state[ea],it=k===1,at=k===-1,et=!it&&!at||v;v=!1;const Lt=et?"GO":at?"BACK":"FORWARD",zt=et?{type:"GO",index:k}:{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:y,nextLocation:V,action:Lt})){S=!0,i.history.go(1),H.notify(zt);return}}}y=p(),H.notify(zt)},F=V=>{if(j){j=!1;return}let k=!1;const it=d();if(typeof document<"u"&&it.length)for(const at of it){const et=at.enableBeforeUnload??!0;if(et===!0){k=!0;break}if(typeof et=="function"&&et()===!0){k=!0;break}}if(k)return V.preventDefault(),V.returnValue=""},H=lx({getLocation:C,getLength:()=>i.history.length,pushState:(V,k)=>X("push",V,k),replaceState:(V,k)=>X("replace",V,k),back:V=>(V&&(_=!0),j=!0,i.history.back()),forward:V=>{V&&(_=!0),j=!0,i.history.forward()},go:V=>{v=!0,i.history.go(V)},createHref:V=>x(V),flush:z,destroy:()=>{i.history.pushState=u,i.history.replaceState=o,i.removeEventListener(Wm,F,{capture:!0}),i.removeEventListener($m,$)},onBlocked:()=>{b&&y!==b&&(y=b)},getBlockers:d,setBlockers:m,notifyOnIndexChange:!1});return i.addEventListener(Wm,F,{capture:!0}),i.addEventListener($m,$),i.history.pushState=function(...V){const k=u.apply(i.history,V);return H._ignoreSubscribers||G("PUSH"),k},i.history.replaceState=function(...V){const k=o.apply(i.history,V);return H._ignoreSubscribers||G("REPLACE"),k},H}function sx(a){let i=a.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function pu(a,i){const u=sx(a),o=u.indexOf("#"),r=u.indexOf("?"),d=br();return{href:u,pathname:u.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:u.length),hash:o>-1?u.substring(o):"",search:r>-1?u.slice(r,o===-1?void 0:o):"",state:i||{[ea]:0,key:d,__TSR_key:d}}}function br(){return(Math.random()+1).toString(36).substring(7)}function bl(a,i){const u=i,o=a;return{fromLocation:u,toLocation:o,pathChanged:u?.pathname!==o.pathname,hrefChanged:u?.href!==o.href,hashChanged:u?.hash!==o.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=u=>u(),this.update=u=>{const o=this.options,r=this.basepath??o?.basepath??"/",d=this.basepath===void 0,m=o?.rewrite;if(this.options={...o,...u},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Lg(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=ix()),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=$g(ox(this.latestLocation),b),Yg(this)}let x=!1;const p=this.options.basepath??"/",y=this.options.rewrite;if(d||r!==p||m!==y){this.basepath=p;const b=[],v=Lp(p);v&&v!=="/"&&b.push(Pg({basepath:p})),y&&b.push(y),this.rewrite=b.length===0?void 0:b.length===1?b[0]:Fg(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 u=Ag(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&Rg(this.options.routeMasks,u.processedTree),u},this.subscribe=(u,o)=>{const r={eventType:u,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=u=>{this.subscribers.forEach(o=>{o.eventType===u.type&&o.fn(u)})},this.parseLocation=(u,o)=>{const r=({pathname:p,search:y,hash:b,href:v,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const L=this.options.parseSearch(y),z=this.options.stringifySearch(L);return{href:p+z+b,publicHref:p+z+b,pathname:Si(p).path,external:!1,searchStr:z,search:_a(o?.search,L),hash:Si(b.slice(1)).path,state:Ra(o?.state,S)}}const _=new URL(v,this.origin),j=or(this.rewrite,_),C=this.options.parseSearch(j.search),D=this.options.stringifySearch(C);return j.search=D,{href:j.href.replace(j.origin,""),publicHref:v,pathname:Si(j.pathname).path,external:!!this.rewrite&&j.origin!==this.origin,searchStr:D,search:_a(o?.search,C),hash:Si(j.hash.slice(1)).path,state:Ra(o?.state,S)}},d=r(u),{__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=(u,o)=>wg({base:u,to:o.includes("//")?xr(o):o,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(u,o,r)=>typeof u=="string"?this.matchRoutesInternal({pathname:u,search:o},r):this.matchRoutesInternal(u,o),this.getMatchedRoutes=u=>rx({pathname:u,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=u=>{const o=this.getMatch(u);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(u=>{this.cancelMatch(u)}),this.stores.matchesId.get().forEach(u=>{if(this.stores.pendingMatchStores.has(u))return;const o=this.stores.matchStores.get(u)?.get();o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(u)})},this.buildLocation=u=>{const o=(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,y=d.to?`${d.to}`:void 0,b=x.search,v=Object.assign(Object.create(null),x.params),S=y?.charCodeAt(0)===47?"/":this.resolvePathWithBase(p,"."),_=y?this.resolvePathWithBase(S,y):S,j=d.params===!1||d.params===null?Object.create(null):(d.params??!0)===!0?v:Object.assign(v,$n(d.params,v)),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=u.leaveParams?_:Si(Gm({path:_,params:j,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let z=b;if(u._includeValidateSearch&&this.options.search?.strict){const at={};D.forEach(et=>{if(et.options.validateSearch)try{Object.assign(at,ru(et.options.validateSearch,{...at,...z}))}catch{}}),z=at}z=fx({search:z,dest:d,destRoutes:D,_includeValidateSearch:u._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,k,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?(k=et.href,it=!0):k=et.pathname+et.search+et.hash}else V=Sg(H),k=V;return{publicHref:k,href:V,pathname:L,search:z,searchStr:X,state:F,hash:G??"",external:it,unmaskOnReload:d.unmaskOnReload}},r=(d={},m)=>{const x=o(d);let p=m?o(m):void 0;if(!p){const y=Object.create(null);if(this.options.routeMasks){const b=Eg(x.pathname,this.processedTree);if(b){Object.assign(y,b.rawParams);const{from:v,params:S,..._}=b.route,j=S===!1||S===null?Object.create(null):(S??!0)===!0?y:Object.assign(y,$n(S,y));m={from:u.from,..._,params:j},p=o(m)}}}return p&&(x.maskedLocation=p),x};return u.mask?r(u,{from:u.from,...u.mask}):r(u)},this.commitLocation=async({viewTransition:u,ignoreBlocker:o,...r})=>{const d=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(b=>{r.state[b]=this.latestLocation.state[b]});const y=ja(r.state,this.latestLocation.state);return p.forEach(b=>{delete r.state[b]}),y},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:y,...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=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=u,this.history[r.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:u,resetScroll:o,hashScrollIntoView:r,viewTransition:d,ignoreBlocker:m,href:x,...p}={})=>{if(x){const v=this.history.location.state.__TSR_index,S=pu(x,{__TSR_index:u?v:v+1}),_=new URL(S.pathname,this.origin);p.to=or(this.rewrite,_).pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const y=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const b=this.commitLocation({...y,viewTransition:d,replace:u,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:m});return Promise.resolve().then(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:u,reloadDocument:o,href:r,publicHref:d,...m})=>{let x=!1;if(r)try{new URL(`${r}`),x=!0}catch{}if(x&&!o&&(o=!0),o){if(u!==void 0||!r){const y=this.buildLocation({to:u,...m});r=r??y.publicHref,d=d??y.publicHref}const p=!x&&d?d:r;if(hu(p,this.protocolAllowlist))return Promise.resolve();if(!m.ignoreBlocker){const y=this.history.getBlockers?.()??[];for(const b of y)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:u,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const u=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatches.get().filter(r=>!u.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(u),this.stores.setCached(o)})},this.load=async u=>{let o,r,d;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(d=new Promise(p=>{this.startTransition(async()=>{try{this.beforeLoad();const y=this.latestLocation,b=bl(y,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...b}),this.emit({type:"onBeforeLoad",...b}),await Fm({router:this,sync:u?.sync,forceStaleReload:m.href===y.href,matches:this.stores.pendingMatches.get(),location:y,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=null,S=null,_=null,j=null;this.batch(()=>{const C=this.stores.pendingMatches.get(),D=C.length,L=this.stores.matches.get();v=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(),...v.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(y){me(y)?(o=y,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):le(y)&&(r=y);const b=o?o.status:r?404:this.stores.matches.get().some(v=>v.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(b),this.stores.redirect.set(o)})}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=u=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,m=this.stores.resolvedLocation.get(),x=typeof o.types=="function"?o.types(bl(d,m)):o.types;if(x===!1){u();return}r={update:u,types:x}}else r=u;document.startViewTransition(r)}else u()},this.updateMatch=(u,o)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(u);if(r){r.set(o);return}const d=this.stores.matchStores.get(u);if(d){d.set(o);return}const m=this.stores.cachedMatchStores.get(u);if(m){const x=o(m.get());x.status==="redirected"?this.stores.cachedMatchStores.delete(u)&&this.stores.cachedIds.set(p=>p.filter(y=>y!==u)):m.set(x)}})},this.getMatch=u=>this.stores.cachedMatchStores.get(u)?.get()??this.stores.pendingMatchStores.get(u)?.get()??this.stores.matchStores.get(u)?.get(),this.invalidate=u=>{const o=r=>u?.filter?.(r)??!0?{...r,invalid:!0,...u?.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(o)),this.stores.setCached(this.stores.cachedMatches.get().map(o)),this.stores.setPending(this.stores.pendingMatches.get().map(o))}),this.shouldViewTransition=!1,this.load({sync:u?.sync})},this.getParsedLocationHref=u=>u.publicHref||"/",this.resolveRedirect=u=>{const o=u.headers.get("Location");if(!u.options.href||u.options._builtLocation){const r=u.options._builtLocation??this.buildLocation(u.options),d=this.getParsedLocationHref(r);u.options.href=d,u.headers.set("Location",d)}else if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const d=r.pathname+r.search+r.hash;u.options.href=d,u.headers.set("Location",d)}}catch{}if(u.options.href&&!u.options._builtLocation&&hu(u.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return u.headers.get("Location")||u.headers.set("Location",u.options.href),u},this.clearCache=u=>{const o=u?.filter;o!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!o(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const u=Date.now(),o=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:u-r.updatedAt>=m};this.clearCache({filter:o})},this.loadRouteChunk=Li,this.preloadRoute=async u=>{const o=u._builtLocation??this.buildLocation(u);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:u});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:o,preload:!0,updateMatch:(p,y)=>{d.has(p)?r=r.map(b=>b.id===p?y(b):b):this.updateMatch(p,y)}}),r}catch(p){if(me(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:o});le(p)||console.error(p);return}},this.matchRoute=(u,o)=>{const r={...u,to:u.to?this.resolvePathWithBase(u.from||"",u.to):void 0,params:u.params||{},leaveParams:!0},d=this.buildLocation(r);if(o?.pending&&this.stores.status.get()!=="pending")return!1;const m=(o?.pending===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),x=jg(d.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,m.pathname,this.processedTree);return!x||u.params&&!ja(x.rawParams,u.params,{partial:!0})?!1:o?.includeSearch??!0?ja(m.search,d.search,{partial:!0})?x.rawParams:!1:x.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(u=>u.status==="notFound"||u.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??Kg,parseSearch:a.parseSearch??Vg,protocolAllowlist:a.protocolAllowlist??bg}),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:u}){this.routesById=a,this.routesByPath=i,this.processedTree=u;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}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 u=this.getMatchedRoutes(a.pathname),{foundRoute:o,routeParams:r}=u;let{matchedRoutes:d}=u,m=!1;(o?o.path!=="/"&&r["**"]:_n(a.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:m=!0);const x=m?hx(this.options.notFoundMode,d):void 0,p=new Array(d.length),y=new Map;for(const b of this.stores.matchStores.values())b.routeId&&y.set(b.routeId,b.get());for(let b=0;b<d.length;b++){const v=d[b],S=p[b-1];let _,j,C;{const et=S?.search??a.search,Lt=S?._strictSearch??void 0;try{const zt=ru(v.options.validateSearch,{...et})??void 0;_={...et,...zt},j={...Lt,...zt},C=void 0}catch(zt){let Ht=zt;if(zt instanceof yu||(Ht=new yu(zt.message,{cause:zt})),i?.throwOnError)throw Ht;_=et,j={},C=Ht}}const D=v.options.loaderDeps?.({search:_})??"",L=D?JSON.stringify(D):"",{interpolatedPath:z,usedParams:X}=Gm({path:v.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),G=v.id+z+L,$=this.getMatch(G),F=y.get(v.id),H=$?._strictParams??X;let V;if(!$)try{tp(v,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 k=F?"stay":"enter";let it;if($)it={...$,cause:k,params:F?.params??r,_strictParams:H,search:_a(F?F.search:$.search,_),_strictSearch:j};else{const et=v.options.loader||v.options.beforeLoad||v.lazyFn||Qp(v)?"pending":"success";it={id:G,ssr:v.options.ssr,index:b,routeId:v.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:k,loaderDeps:F?Ra(F.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}i?.preload||(it.globalNotFound=x===v.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 v=p[b],S=this.looseRoutesById[v.routeId],_=this.getMatch(v.id),j=y.get(v.routeId);if(v.params=j?_a(j.params,r):r,!_){const C=p[b-1],D=this.getParentContext(C);if(S.options.context){const L={deps:v.loaderDeps,params:v.params,context:D??{},location:a,navigate:z=>this.navigate({...z,_fromLocation:a}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:p,routeId:S.id};v.__routeContext=S.options.context(L)??void 0}v.context={...D,...v.__routeContext,...v.__beforeLoadContext}}}return p}matchRoutesLightweight(a){const{matchedRoutes:i,routeParams:u}=this.getMatchedRoutes(a.pathname),o=zi(i),r={...a.search};for(const y of i)try{Object.assign(r,ru(y.options.validateSearch,r))}catch{}const d=zi(this.stores.matchesId.get()),m=d&&this.stores.matchStores.get(d)?.get(),x=m&&m.routeId===o.id&&m.pathname===a.pathname;let p;if(x)p=m.params;else{const y=Object.assign(Object.create(null),u);for(const b of i)try{tp(b,y)}catch{}p=y}return{matchedRoutes:i,fullPath:o.fullPath,search:r,params:p}}},yu=class extends Error{},cx=class extends Error{};function ox(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],statusCode:200}}function ru(a,i){if(a==null)return{};if("~standard"in a){const u=a["~standard"].validate(i);if(u instanceof Promise)throw new yu("Async validation not supported");if(u.issues)throw new yu(JSON.stringify(u.issues,void 0,2),{cause:u});return u.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function rx({pathname:a,routesById:i,processedTree:u}){const o=Object.create(null),r=_n(a);let d;const m=Mg(r,u,!0);return m&&(d=m.route,Object.assign(o,m.rawParams)),{matchedRoutes:m?.branch||[i.__root__],routeParams:o,foundRoute:d}}function fx({search:a,dest:i,destRoutes:u,_includeValidateSearch:o}){return dx(u)(a,i,o??!1)}function dx(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,v)=>v(b),m));const y=x(p);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((b,v)=>v(b),y):y};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,...ru(r.options.validateSearch,p)??void 0}}catch{return p}};i.middlewares.push(d)}}const u=({search:r})=>{const d=i.dest;return d.search?d.search===!0?r:$n(d.search,r):{}};i.middlewares.push(u);const o=(r,d,m)=>{if(r>=m.length)return d;const x=m[r];return x({search:d,next:y=>o(r+1,y,m)})};return function(d,m,x){return i.dest=m,i._includeValidateSearch=x,o(0,d,i.middlewares)}}function hx(a,i){if(a!=="root")for(let u=i.length-1;u>=0;u--){const o=i[u];if(o.children)return o.id}return Ma}function tp(a,i){const u=a.options.params?.parse??a.options.parseParams;if(u){const o=u(i);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,o)}}const mx="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 u=this.options,o=!u?.path&&!u?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=Ma:this.parentRoute||Tn();let r=o?Ma:u?.path;r&&r!=="/"&&(r=wp(r));const d=u?.id||r;let m=o?Ma:cu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,d]);r==="__root__"&&(r="/"),m!=="__root__"&&(m=cu(["/",m]));const x=m==="__root__"?"/":cu([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=>Jg({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.")}},px=class extends Yp{constructor(a){super(a)}};function yx(a){if(typeof document<"u"&&document.querySelector){const i=a.stores.location.get(),u=i.state.__hashScrollIntoViewOptions??!0;if(u&&i.hash!==""){const o=document.getElementById(i.hash);o&&o.scrollIntoView(u)}}}function Sr(a){const i=a.errorComponent??_r;return h.jsx(vx,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:u,reset:o})=>u?J.createElement(i,{error:u,reset:o}):a.children})}var vx=class extends J.Component{constructor(...a){super(...a),this.state={error:null}}static getDerivedStateFromProps(a,i){const u=a.getResetKey();return i.error&&i.resetKey!==u?{resetKey:u,error:null}:{resetKey:u}}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,u]=J.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:()=>u(o=>!o),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 gx({children:a,fallback:i=null}){return Gp()?h.jsx(Ni.Fragment,{children:a}):h.jsx(Ni.Fragment,{children:i})}function Gp(){return Ni.useSyncExternalStore(xx,()=>!0,()=>!1)}function xx(){return()=>{}}var Xp=J.createContext(null);function Be(a){return J.useContext(Xp)}var _u=J.createContext(void 0),bx=J.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 Sx({update:a,notify:i,unwatched:u}){return{link:o,unlink:r,propagate:d,checkDirty:m,shallowPropagate:x};function o(y,b,v){const S=b.depsTail;if(S!==void 0&&S.dep===y)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===y){_.version=v,b.depsTail=_;return}const j=y.subsTail;if(j!==void 0&&j.version===v&&j.sub===b)return;const C=b.depsTail=y.subsTail={version:v,dep:y,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:y.subs=C}function r(y,b=y.sub){const v=y.dep,S=y.prevDep,_=y.nextDep,j=y.nextSub,C=y.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,j!==void 0?j.prevSub=C:v.subsTail=C,C!==void 0?C.nextSub=j:(v.subs=j)===void 0&&u(v),_}function d(y){let b=y.nextSub,v;t:do{const S=y.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&p(y,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=(y=j).nextSub;C!==void 0&&(v={value:b,prev:v},b=C);continue}}if((y=b)!==void 0){b=y.nextSub;continue}for(;v!==void 0;)if(y=v.value,v=v.prev,y!==void 0){b=y.nextSub;continue t}break}while(!0)}function m(y,b){let v,S=0,_=!1;t:do{const j=y.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){(y.nextSub!==void 0||y.prevSub!==void 0)&&(v={value:y,prev:v}),y=j.deps,b=j,++S;continue}if(!_){const D=y.nextDep;if(D!==void 0){y=D;continue}}for(;S--;){const D=b.subs,L=D.nextSub!==void 0;if(L?(y=v.value,v=v.prev):y=D,_){if(a(b)){L&&x(D),b=y.sub;continue}_=!1}else b.flags&=-33;b=y.sub;const z=y.nextDep;if(z!==void 0){y=z;continue t}}return _}while(!0)}function x(y){do{const b=y.sub,v=b.flags;(v&48)===32&&(b.flags=v|16,(v&6)===2&&i(b))}while((y=y.nextSub)!==void 0)}function p(y,b){let v=b.depsTail;for(;v!==void 0;){if(v===y)return!0;v=v.prevDep}return!1}}function _x(a,i,u){const o=typeof a=="object",r=o?a:void 0;return{next:(o?a.next:a)?.bind(r),error:(o?a.error:i)?.bind(r),complete:(o?a.complete:u)?.bind(r)}}const fr=[];let fu=0;const{link:ep,unlink:Tx,propagate:Rx,checkDirty:Vp,shallowPropagate:np}=Sx({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,vu(a))}});let su=0,dr=0,Pe,hr=0;function Kp(a){try{++hr,a()}finally{--hr||Zp()}}function vu(a){const i=a.depsTail;let u=i!==void 0?i.nextDep:a.deps;for(;u!==void 0;)u=Tx(u,a)}function Zp(){if(!(hr>0)){for(;su<dr;){const a=fr[su];fr[su++]=void 0,a.notify()}su=0,dr=0}}function ap(a,i){const u=typeof a=="function",o=a,r={_snapshot:u?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:u?wt.None:wt.Mutable,get(){return Pe!==void 0&&ep(r,Pe,fu),r._snapshot},subscribe(d){const m=_x(d),x={current:!1},p=Ex(()=>{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(u)Pe=r,++fu,r.depsTail=void 0;else if(d===void 0)return!1;u&&(r.flags=wt.Mutable|wt.RecursedCheck);try{const p=r._snapshot,y=typeof d=="function"?d(p):d===void 0&&u?o(p):d;return p===void 0||!x(p,y)?(r._snapshot=y,!0):!1}finally{Pe=m,u&&(r.flags&=~wt.RecursedCheck),vu(r)}}};return u?(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,fu),r._snapshot}):r.set=function(d){if(r._update(d)){const m=r.subs;m!==void 0&&(Rx(m),np(m),Zp())}},r}function Ex(a){const i=()=>{const o=Pe;Pe=u,++fu,u.depsTail=void 0,u.flags=wt.Watching|wt.RecursedCheck;try{return a()}finally{Pe=o,u.flags&=~wt.RecursedCheck,vu(u)}},u={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:wt.Watching|wt.RecursedCheck,notify(){const o=this.flags;o&wt.Dirty||o&wt.Pending&&Vp(this.deps,this)?i():this.flags=wt.Watching},stop(){this.flags=wt.None,this.depsTail=void 0,vu(this)}};return i(),u}var ko={exports:{}},Jo={},Fo={exports:{}},Po={};var lp;function jx(){if(lp)return Po;lp=1;var a=Bi();function i(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var u=typeof Object.is=="function"?Object.is:i,o=a.useState,r=a.useEffect,d=a.useLayoutEffect,m=a.useDebugValue;function x(v,S){var _=S(),j=o({inst:{value:_,getSnapshot:S}}),C=j[0].inst,D=j[1];return d(function(){C.value=_,C.getSnapshot=S,p(C)&&D({inst:C})},[v,_,S]),r(function(){return p(C)&&D({inst:C}),v(function(){p(C)&&D({inst:C})})},[v]),m(_),_}function p(v){var S=v.getSnapshot;v=v.value;try{var _=S();return!u(v,_)}catch{return!0}}function y(v,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:x;return Po.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,Po}var ip;function Mx(){return ip||(ip=1,Fo.exports=jx()),Fo.exports}var sp;function Cx(){if(sp)return Jo;sp=1;var a=Bi(),i=Mx();function u(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var o=typeof Object.is=="function"?Object.is:u,r=i.useSyncExternalStore,d=a.useRef,m=a.useEffect,x=a.useMemo,p=a.useDebugValue;return Jo.useSyncExternalStoreWithSelector=function(y,b,v,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,o(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,$=v===void 0?null:v;return[function(){return L(b())},$===null?void 0:function(){return L($())}]},[b,v,S,_]);var D=r(y,j[0],j[1]);return m(function(){C.hasValue=!0,C.value=D},[D]),p(D),D},Jo}var up;function Ax(){return up||(up=1,ko.exports=Cx()),ko.exports}var Ox=Ax();function Nx(a,i){return a===i}function je(a,i,u=Nx){const o=J.useCallback(m=>{if(!a)return()=>{};const{unsubscribe:x}=a.subscribe(m);return x},[a]),r=J.useCallback(()=>a?.get(),[a]);return Ox.useSyncExternalStoreWithSelector(o,r,r,i,u)}var zx={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Aa(a){const i=Be(),u=J.useContext(a.from?bx:_u),o=a.from??u,r=o?a.from?i.stores.getRouteMatchStore(o):i.stores.matchStores.get(o):void 0,d=J.useRef(void 0);return je(r??zx,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,...u}=a;return Aa({...u,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function Fp(a){return Aa({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const u=a.strict===!1?i.params:i._strictParams;return a.select?a.select(u):u}})}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 J.useCallback(u=>i.navigate({...u,from:u.from??a?.from}),[a?.from,i])}function Wp(a){return Aa({...a,select:i=>a.select?a.select(i.context):i.context})}var $o={exports:{}},ae={};var cp;function Dx(){if(cp)return ae;cp=1;var a=Bi();function i(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},r=Symbol.for("react.portal");function d(p,y,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:v==null?null:""+v,children:p,containerInfo:y,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(p,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return d(p,y,null,b)},ae.flushSync=function(p){var y=m.T,b=o.p;try{if(m.T=null,o.p=2,p)return p()}finally{m.T=y,o.p=b,o.d.f()}},ae.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(p,y))},ae.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},ae.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var b=y.as,v=x(b,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,_=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?o.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:_}):b==="script"&&o.d.X(p,{crossOrigin:v,integrity:S,fetchPriority:_,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ae.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=x(y.as,y.crossOrigin);o.d.M(p,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(p)},ae.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,v=x(b,y.crossOrigin);o.d.L(p,b,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ae.preloadModule=function(p,y){if(typeof p=="string")if(y){var b=x(y.as,y.crossOrigin);o.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(p)},ae.requestFormReset=function(p){o.d.r(p)},ae.unstable_batchedUpdates=function(p,y){return p(y)},ae.useFormState=function(p,y,b){return m.H.useFormState(p,y,b)},ae.useFormStatus=function(){return m.H.useHostTransitionStatus()},ae.version="19.2.6",ae}var op;function Ip(){if(op)return $o.exports;op=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(),$o.exports=Dx(),$o.exports}var wx=Ip();function Lx(a,i){const u=Be(),o=yg(i),{activeProps:r,inactiveProps:d,activeOptions:m,to:x,preload:p,preloadDelay:y,preloadIntentProximity:b,hashScrollIntoView:v,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:k,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=J.useMemo(()=>a,[u,a.from,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),P=je(u.stores.location,At=>At,(At,Ft)=>At.href===Ft.href),tt=J.useMemo(()=>{const At={_fromLocation:P,...Z};return u.buildLocation(At)},[u,P,Z]),rt=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,yt=tt.maskedLocation?tt.maskedLocation.external:tt.external,qt=J.useMemo(()=>Yx(rt,yt,u.history,z),[z,yt,rt,u.history]),Mt=J.useMemo(()=>{if(qt?.external)return hu(qt.href,u.protocolAllowlist)?void 0:qt.href;if(!Gx(x)&&!(typeof x!="string"||x.indexOf(":")===-1))try{return new URL(x),hu(x,u.protocolAllowlist)?void 0:x}catch{}},[x,qt,u.protocolAllowlist]),tn=J.useMemo(()=>{if(Mt)return!1;if(m?.exact){if(!Dg(P.pathname,tt.pathname,u.basepath))return!1}else{const At=mu(P.pathname,u.basepath),Ft=mu(tt.pathname,u.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,u.basepath]),en=tn?$n(r,{})??Ux:Wo,Rn=tn?Wo:$n(d,{})??Wo,El=[G,en.className,Rn.className].filter(Boolean).join(" "),Xe=(X||en.style||Rn.style)&&{...X,...en.style,...Rn.style},[jl,Na]=J.useState(!1),Hi=J.useRef(!1),nn=a.reloadDocument||Mt?!1:p??u.options.defaultPreload,aa=y??u.options.defaultPreloadDelay??0,He=J.useCallback(()=>{u.preloadRoute({...Z,_builtLocation:tt}).catch(At=>{console.warn(At),console.warn(mx)})},[u,Z,tt]);pg(o,J.useCallback(At=>{At?.isIntersecting&&He()},[He]),Qx,{disabled:!!z||nn!=="viewport"}),J.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&&!Xx(At)&&!At.defaultPrevented&&(!Ve||Ve==="_self")&&At.button===0){At.preventDefault(),wx.flushSync(()=>{Na(!0)});const za=u.subscribe("onResolved",()=>{za(),Na(!1)});u.navigate({...Z,replace:S,resetScroll:j,hashScrollIntoView:v,startTransition:_,viewTransition:C,ignoreBlocker:at})}};if(Mt)return{...E,ref:o,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},...k&&{onMouseLeave:k},...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)},Ru=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:o,onClick:vl([$,Ml]),onBlur:vl([F,ne]),onFocus:vl([H,qi]),onMouseEnter:vl([V,qi]),onMouseLeave:vl([k,ne]),onTouchStart:vl([it,Ru]),disabled:!!z,target:L,...Xe&&{style:Xe},...El&&{className:El},...z&&Bx,...tn&&Hx,...Q&&jl&&qx}}var Wo={},Ux={className:"active"},Bx={role:"link","aria-disabled":!0},Hx={"data-status":"active","aria-current":"page"},qx={"data-transitioning":"transitioning"},Ri=new WeakMap,Qx={rootMargin:"100px"},vl=a=>i=>{for(const u of a)if(u){if(i.defaultPrevented)return;u(i)}};function Yx(a,i,u,o){if(!o)return i?{href:a,external:!0}:{href:u.createHref(a)||"/",external:!1}}function Gx(a){if(typeof a!="string")return!1;const i=a.charCodeAt(0);return i===47?a.charCodeAt(1)!==47:i===46}var na=J.forwardRef((a,i)=>{const{_asChild:u,...o}=a,{type:r,...d}=Lx(o,i),m=typeof o.children=="function"?o.children({isActive:d["data-status"]==="active"}):o.children;if(!u){const{disabled:x,...p}=d;return J.createElement("a",p,m)}return J.createElement(u,d,m)});function Xx(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}var Vx=class extends Yp{constructor(i){super(i),this.useMatch=u=>Aa({select:u?.select,from:this.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>Wp({...u,from:this.id}),this.useSearch=u=>Pp({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useParams=u=>Fp({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useLoaderDeps=u=>Jp({...u,from:this.id}),this.useLoaderData=u=>kp({...u,from:this.id}),this.useNavigate=()=>$p({from:this.fullPath}),this.Link=Ni.forwardRef((u,o)=>h.jsx(na,{ref:o,from:this.fullPath,...u}))}};function Kx(a){return new Vx(a)}function Zx(){return a=>Jx(a)}var kx=class extends px{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,u)=>h.jsx(na,{ref:u,from:this.fullPath,...i}))}};function Jx(a){return new kx(a)}function Tl(a){return new Fx(a,{silent:!0}).createRoute}var Fx=class{constructor(a,i){this.path=a,this.createRoute=u=>{const o=Kx(u);return o.isRoot=!1,o},this.silent=i?.silent}};function Px(a){const i=Be(),u=`not-found-${je(i.stores.location,o=>o.pathname)}-${je(i.stores.status,o=>o)}`;return h.jsx(Sr,{getResetKey:()=>u,onCatch:(o,r)=>{if(le(o))a.onCatch?.(o,r);else throw o},errorComponent:({error:o})=>{if(le(o))return a.fallback?.(o);throw o},children:a.children})}function $x(){return h.jsx("p",{children:"Not Found"})}function xl(a){return h.jsx(h.Fragment,{children:a.children})}function t0(a,i,u){return i.options.notFoundComponent?h.jsx(i.options.notFoundComponent,{...u}):a.options.defaultNotFoundComponent?h.jsx(a.options.defaultNotFoundComponent,{...u}):h.jsx($x,{})}function Wx(a){return null}function Ix(){return Wx(Be()),null}var e0=J.memo(function({matchId:i}){const u=Be(),o=u.stores.matchStores.get(i);o||Tn();const r=je(u.stores.loadedAt,m=>m),d=je(o,m=>m);return h.jsx(tb,{router:u,matchId:i,resetKey:r,matchState:J.useMemo(()=>{const m=d.routeId,x=u.routesById[m].parentRoute?.id;return{routeId:m,ssr:d.ssr,_displayPending:d._displayPending,parentRouteId:x}},[d._displayPending,d.routeId,d.ssr,u.routesById])})});function tb({router:a,matchId:i,resetKey:u,matchState:o}){const r=a.routesById[o.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,y=r.isRoot?r.options.notFoundComponent??a.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=o.ssr===!1||o.ssr==="data-only",v=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??d??(r.options.errorComponent?.preload||b))?J.Suspense:xl,S=x?Sr:xl,_=y?Px:xl;return h.jsxs(r.isRoot?r.options.shellComponent??xl:xl,{children:[h.jsx(_u.Provider,{value:i,children:h.jsx(v,{fallback:m,children:h.jsx(S,{getResetKey:()=>u,errorComponent:x||_r,onCatch:(j,C)=>{if(le(j))throw j.routeId??=o.routeId,j;p?.(j,C)},children:h.jsx(_,{fallback:j=>{if(j.routeId??=o.routeId,!y||j.routeId&&j.routeId!==o.routeId||!j.routeId&&!r.isRoot)throw j;return J.createElement(y,j)},children:b||o._displayPending?h.jsx(gx,{fallback:m,children:h.jsx(rp,{matchId:i})}):h.jsx(rp,{matchId:i})})})})}),o.parentRouteId===Ma?h.jsxs(h.Fragment,{children:[h.jsx(eb,{resetKey:u}),a.options.scrollRestoration&&Mp?h.jsx(Ix,{}):null]}):null]})}function eb({resetKey:a}){const i=Be(),u=J.useRef(void 0);return Mi(()=>{const o=i.latestLocation.href;(u.current===void 0||u.current!==o)&&(i.emit({type:"onRendered",...bl(i.stores.location.get(),i.stores.resolvedLocation.get())}),u.current=o)},[i.latestLocation.state.__TSR_key,a,i]),null}var rp=J.memo(function({matchId:i}){const u=Be(),o=(b,v)=>u.getMatch(b.id)?._nonReactive[v]??b._nonReactive[v],r=u.stores.matchStores.get(i);r||Tn();const d=je(r,b=>b),m=d.routeId,x=u.routesById[m],p=J.useMemo(()=>{const b=(u.routesById[m].options.remountDeps??u.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,u.options.defaultRemountDeps,u.routesById]),y=J.useMemo(()=>{const b=x.options.component??u.options.defaultComponent;return b?h.jsx(b,{},p):h.jsx(n0,{})},[p,x.options.component,u.options.defaultComponent]);if(d._displayPending)throw o(d,"displayPendingPromise");if(d._forcePending)throw o(d,"minPendingPromise");if(d.status==="pending"){const b=x.options.pendingMinMs??u.options.defaultPendingMinMs;if(b){const v=u.getMatch(d.id);if(v&&!v._nonReactive.minPendingPromise){const S=_l();v._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),v._nonReactive.minPendingPromise=void 0},b)}}throw o(d,"loadPromise")}if(d.status==="notFound")return le(d.error)||Tn(),t0(u,x,d.error);if(d.status==="redirected")throw me(d.error)||Tn(),o(d,"loadPromise");if(d.status==="error")throw d.error;return y}),n0=J.memo(function(){const i=Be(),u=J.useContext(_u);let o,r=!1,d;{const y=u?i.stores.matchStores.get(u):void 0;[o,r]=je(y,b=>[b?.routeId,b?.globalNotFound??!1]),d=je(i.stores.matchesId,b=>b[b.findIndex(v=>v===u)+1])}const m=o?i.routesById[o]:void 0,x=i.options.defaultPendingComponent?h.jsx(i.options.defaultPendingComponent,{}):null;if(r)return m||Tn(),t0(i,m,void 0);if(!d)return null;const p=h.jsx(e0,{matchId:d});return o===Ma?h.jsx(J.Suspense,{fallback:x,children:p}):p});function nb(){const a=Be(),i=J.useRef({router:a,mounted:!1}),[u,o]=J.useState(!1),r=je(a.stores.isLoading,v=>v),d=je(a.stores.hasPending,v=>v),m=Qo(r),x=r||u||d,p=Qo(x),y=r||d,b=Qo(y);return a.startTransition=v=>{o(!0),J.startTransition(()=>{v(),o(!1)})},J.useEffect(()=>{const v=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}),()=>{v()}},[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&&!y&&a.emit({type:"onBeforeRouteMount",...bl(a.stores.location.get(),a.stores.resolvedLocation.get())})},[y,b,a]),Mi(()=>{if(p&&!x){const v=bl(a.stores.location.get(),a.stores.resolvedLocation.get());a.emit({type:"onResolved",...v}),Kp(()=>{a.stores.status.set("idle"),a.stores.resolvedLocation.set(a.stores.location.get())}),v.hrefChanged&&yx(a)}},[x,p,a]),null}function ab(){const a=Be(),i=a.routesById[Ma].options.pendingComponent??a.options.defaultPendingComponent,u=i?h.jsx(i,{}):null,o=h.jsxs(typeof document<"u"&&a.ssr?xl:J.Suspense,{fallback:u,children:[h.jsx(nb,{}),h.jsx(lb,{})]});return a.options.InnerWrap?h.jsx(a.options.InnerWrap,{children:o}):o}function lb(){const a=Be(),i=je(a.stores.firstId,r=>r),u=je(a.stores.loadedAt,r=>r),o=i?h.jsx(e0,{matchId:i}):null;return h.jsx(_u.Provider,{value:i,children:a.options.disableGlobalCatchBoundary?o:h.jsx(Sr,{getResetKey:()=>u,errorComponent:_r,onCatch:void 0,children:o})})}var ib=a=>({createMutableStore:ap,createReadonlyStore:ap,batch:Kp}),sb=a=>new ub(a),ub=class extends ux{constructor(a){super(a,ib)}};function cb({router:a,children:i,...u}){Ap(u)&&a.update({...a.options,...u,context:{...a.options.context,...u.context}});const o=h.jsx(Xp.Provider,{value:a,children:i});return a.options.Wrap?h.jsx(a.options.Wrap,{children:o}):o}function ob({router:a,...i}){return h.jsx(cb,{router:a,...i,children:h.jsx(ab,{})})}var Io={exports:{}},Ei={},tr={exports:{}},er={};var fp;function rb(){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 u(U){return U.length===0?null:U[0]}function o(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=[],y=[],b=1,v=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=u(y);K!==null;){if(K.callback===null)o(y);else if(K.startTime<=U)o(y),K.sortIndex=K.expirationTime,i(p,K);else break;K=u(y)}}function $(U){if(C=!1,G(U),!j)if(u(p)!==null)j=!0,F||(F=!0,et());else{var K=u(y);K!==null&&Ht($,K.startTime-U)}}var F=!1,H=-1,V=5,k=-1;function it(){return D?!0:!(a.unstable_now()-k<V)}function at(){if(D=!1,F){var U=a.unstable_now();k=U;var K=!0;try{t:{j=!1,C&&(C=!1,z(H),H=-1),_=!0;var lt=S;try{e:{for(G(U),v=u(p);v!==null&&!(v.expirationTime>U&&it());){var xt=v.callback;if(typeof xt=="function"){v.callback=null,S=v.priorityLevel;var St=xt(v.expirationTime<=U);if(U=a.unstable_now(),typeof St=="function"){v.callback=St,G(U),K=!0;break e}v===u(p)&&o(p),G(U)}else o(p);v=u(p)}if(v!==null)K=!0;else{var E=u(y);E!==null&&Ht($,E.startTime-U),K=!1}}break t}finally{v=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"&&lt!==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(y,U),u(p)===null&&U===u(y)&&(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 fb(){return dp||(dp=1,tr.exports=rb()),tr.exports}var hp;function db(){if(hp)return Ei;hp=1;var a=fb(),i=Bi(),u=Ip();function o(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(o(188))}function y(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,l=e;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return p(s),t;if(c===l)return p(s),e;c=c.sibling}throw Error(o(188))}if(n.return!==l.return)n=s,l=c;else{for(var f=!1,g=s.child;g;){if(g===n){f=!0,n=s,l=c;break}if(g===l){f=!0,l=s,n=c;break}g=g.sibling}if(!f){for(g=c.child;g;){if(g===n){f=!0,n=c,l=s;break}if(g===l){f=!0,l=c,n=s;break}g=g.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(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 v=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"),k=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 k: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=u.__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),yt=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(yt,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)),yt.current===t&&(Q(yt),yi._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(`
2
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
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 c=l.DetermineComponentFrameRoot(),f=c[0],g=c[1];if(f&&g){var T=f.split(`
4
- `),O=g.split(`
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:"")?Xe(n):""}function Hi(t,e){switch(t.tag){case 26:case 27:case 5:return Xe(t.type);case 16:return Xe("Lazy");case 13:return t.child!==e&&e!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("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 Xe("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
- 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,Ru=a.unstable_requestPaint,ne=a.unstable_now,At=a.unstable_getCurrentPriorityLevel,Ft=a.unstable_ImmediatePriority,Ve=a.unstable_UserBlockingPriority,za=a.unstable_NormalPriority,u0=a.unstable_LowPriority,Rr=a.unstable_IdlePriority,c0=a.log,o0=a.unstable_setDisableYieldValue,Cl=null,pe=null;function En(t){if(typeof c0=="function"&&o0(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(Cl,t)}catch{}}var ye=Math.clz32?Math.clz32:d0,r0=Math.log,f0=Math.LN2;function d0(t){return t>>>=0,t===0?32:31-(r0(t)/f0|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,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var g=l&134217727;return g!==0?(l=g&~c,l!==0?s=la(l):(f&=g,f!==0?s=la(f):n||(n=g&~t,n!==0&&(s=la(n))))):(g=l&~c,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&c)===0&&(c=s&-s,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:s}function Al(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function h0(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 Eu(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 m0(t,e,n,l,s,c){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-ye(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),c!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function jr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ye(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-ye(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:ju(n),(n&(t.suspendedLanes|e))!==0?0:n}function ju(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 Mu(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,Cu="__reactEvents$"+jn,p0="__reactListeners$"+jn,y0="__reactHandles$"+jn,Nr="__reactResources$"+jn,Nl="__reactMarker$"+jn;function Au(t){delete t[Pt],delete t[se],delete t[Cu],delete t[p0],delete t[y0]}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(o(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 v0=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 g0(t){return aa.call(Lr,t)?!0:aa.call(wr,t)?!1:v0.test(t)?Lr[t]=!0:(wr[t]=!0,!1)}function Vi(t,e,n){if(g0(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 x0(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,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,c.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 Ou(t){if(!t._valueTracker){var e=Ur(t)?"checked":"value";t._valueTracker=x0(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 b0=/[\n"\\]/g;function Ce(t){return t.replace(b0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Nu(t,e,n,l,s,c,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?zu(t,f,Me(e)):n!=null?zu(t,f,Me(n)):l!=null&&t.removeAttribute("value"),s==null&&c!=null&&(t.defaultChecked=!!c),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,c,f,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Ou(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),Ou(t)}function zu(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(o(92));if(Ht(l)){if(1<l.length)throw Error(o(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),Ou(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 S0=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||S0.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(o(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 c in e)e.hasOwnProperty(c)&&Yr(t,c,e[c])}function Du(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 _0=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"]]),T0=/^[\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 T0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ln(){}var wu=null;function Lu(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(Nu(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(o(90));Nu(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 Uu=!1;function Vr(t,e,n){if(Uu)return t(e,n);Uu=!0;try{var l=t(e);return l}finally{if(Uu=!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(o(231,e,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(sn)try{var wl={};Object.defineProperty(wl,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{Bu=!1}var Mn=null,Hu=null,Ji=null;function Kr(){if(Ji)return Ji;var t,e=Hu,n=e.length,l,s="value"in Mn?Mn.value:Mn.textContent,c=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[c-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 ue(t){function e(n,l,s,c,f){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Pi:Zr,this.isPropagationStopped=Zr,this}return v(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=ue(sa),Ll=v({},sa,{view:0,detail:0}),R0=ue(Ll),qu,Qu,Ul,Wi=v({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gu,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"?(qu=t.screenX-Ul.screenX,Qu=t.screenY-Ul.screenY):Qu=qu=0,Ul=t),qu)},movementY:function(t){return"movementY"in t?t.movementY:Qu}}),kr=ue(Wi),E0=v({},Wi,{dataTransfer:0}),j0=ue(E0),M0=v({},Ll,{relatedTarget:0}),Yu=ue(M0),C0=v({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),A0=ue(C0),O0=v({},sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),N0=ue(O0),z0=v({},sa,{data:0}),Jr=ue(z0),D0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w0={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"},L0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=L0[t])?!!e[t]:!1}function Gu(){return U0}var B0=v({},Ll,{key:function(t){if(t.key){var e=D0[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"?w0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gu,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}}),H0=ue(B0),q0=v({},Wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fr=ue(q0),Q0=v({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gu}),Y0=ue(Q0),G0=v({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),X0=ue(G0),V0=v({},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}),K0=ue(V0),Z0=v({},sa,{newState:0,oldState:0}),k0=ue(Z0),J0=[9,13,27,32],Xu=sn&&"CompositionEvent"in window,Bl=null;sn&&"documentMode"in document&&(Bl=document.documentMode);var F0=sn&&"TextEvent"in window&&!Bl,Pr=sn&&(!Xu||Bl&&8<Bl&&11>=Bl),$r=" ",Wr=!1;function Ir(t,e){switch(t){case"keyup":return J0.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 P0(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 $0(t,e){if(Ga)return t==="compositionend"||!Xu&&Ir(t,e)?(t=Kr(),Ji=Hu=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 W0={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"?!!W0[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 I0(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 Vu;if(sn){var Ku="oninput"in document;if(!Ku){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),Ku=typeof sf.oninput=="function"}Vu=Ku}else Vu=!1;lf=Vu&&(!document.documentMode||9<document.documentMode)}function uf(){Hl&&(Hl.detachEvent("onpropertychange",cf),ql=Hl=null)}function cf(t){if(t.propertyName==="value"&&Ii(ql)){var e=[];nf(e,ql,t,Lu(t)),Vr(I0,e)}}function ty(t,e,n){t==="focusin"?(uf(),Hl=e,ql=n,Hl.attachEvent("onpropertychange",cf)):t==="focusout"&&uf()}function ey(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ii(ql)}function ny(t,e){if(t==="click")return Ii(e)}function ay(t,e){if(t==="input"||t==="change")return Ii(e)}function ly(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ve=typeof Object.is=="function"?Object.is:ly;function Ql(t,e){if(ve(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)||!ve(t[s],e[s]))return!1}return!0}function of(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function rf(t,e){var n=of(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=of(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 Zu(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 iy=sn&&"documentMode"in document&&11>=document.documentMode,Xa=null,ku=null,Yl=null,Ju=!1;function hf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ju||Xa==null||Xa!==Zi(l)||(l=Xa,"selectionStart"in l&&Zu(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(ku,"onSelect"),0<l.length&&(e=new $i("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Xa)))}function ua(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Va={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},Fu={},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 ca(t){if(Fu[t])return Fu[t];if(!Va[t])return t;var e=Va[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in mf)return Fu[t]=e[n];return t}var pf=ca("animationend"),yf=ca("animationiteration"),vf=ca("animationstart"),sy=ca("transitionrun"),uy=ca("transitionstart"),cy=ca("transitioncancel"),gf=ca("transitionend"),xf=new Map,Pu="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(" ");Pu.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,$u=0;function es(){for(var t=Ka,e=$u=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 c=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}c!==0&&bf(n,s,c)}}function ns(t,e,n,l){Ae[Ka++]=t,Ae[Ka++]=e,Ae[Ka++]=n,Ae[Ka++]=l,$u|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Wu(t,e,n,l){return ns(t,e,n,l),as(t)}function oa(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,c=t.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(s=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,s&&e!==null&&(s=31-ye(n),t=c.hiddenUpdates,l=t[s],l===null?t[s]=[e]:l.push(e),e.lane=n|536870912),c):null}function as(t){if(50<oi)throw oi=0,uo=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Za={};function oy(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 oy(t,e,n,l)}function Iu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function un(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,c){var f=0;if(l=t,typeof t=="function")Iu(t)&&(f=1);else if(typeof t=="string")f=mv(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case k:return t=ge(31,n,e,s),t.elementType=k,t.lanes=c,t;case C:return ra(n.children,s,c,e);case D:f=8,s|=24;break;case L:return t=ge(12,n,e,s|2),t.elementType=L,t.lanes=c,t;case $:return t=ge(13,n,e,s),t.elementType=$,t.lanes=c,t;case F:return t=ge(19,n,e,s),t.elementType=F,t.lanes=c,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(o(130,t===null?"null":typeof t,"")),l=null}return e=ge(f,n,e,s),e.elementType=t,e.type=l,e.lanes=c,e}function ra(t,e,n,l){return t=ge(7,t,l,e),t.lanes=n,t}function tc(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 ec(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 cn(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-ye(l)-1;l&=~(1<<s),n+=1;var c=32-ye(e)+s;if(30<c){var f=s-s%5;c=(l&(1<<f)-1).toString(32),l>>=f,s-=f,Ke=1<<32-ye(e)+s|n<<s|l,Ze=c+t}else Ke=1<<c|n<<s|l,Ze=t}function nc(t){t.return!==null&&(cn(t,1),Rf(t,1,0))}function ac(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,lc=Error(o(519));function On(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xl(Oe(e,t)),lc}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")||To(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(o(317));Ot=Wh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ot=Wh(t)}else e===27?(e=Ot,Vn(t.type)?(t=Co,Co=null,Ot=t):Ot=e):Ot=$t?Le(t.stateNode.nextSibling):null;return!0}function fa(){Ot=$t=null,pt=!1}function ic(){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 sc=E(null),da=null,on=null;function Nn(t,e,n){Z(sc,e._currentValue),e._currentValue=n}function rn(t){t._currentValue=sc.current,Q(sc)}function uc(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 cc(t,e,n,l){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){var f=s.child;c=c.firstContext;t:for(;c!==null;){var g=c;c=s;for(var T=0;T<e.length;T++)if(g.context===e[T]){c.lanes|=n,g=c.alternate,g!==null&&(g.lanes|=n),uc(c.return,n,t),l||(f=null);break t}c=g.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),uc(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,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var g=s.type;ve(s.pendingProps.value,f.value)||(t!==null?t.push(g):t=[g])}}else if(s===yt.current){if(f=s.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(yi):t=[yi])}s=s.return}t!==null&&cc(e,t,n,l),e.flags|=262144}function ss(t){for(t=t.firstContext;t!==null;){if(!ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){da=t,on=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return Cf(da,t)}function us(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},on===null){if(t===null)throw Error(o(308));on=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else on=on.next=e;return n}var ry=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()})}},fy=a.unstable_scheduleCallback,dy=a.unstable_NormalPriority,Gt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new ry,data:new Map,refCount:0}}function Vl(t){t.refCount--,t.refCount===0&&fy(dy,function(){t.controller.abort()})}var Kl=null,rc=0,$a=0,Wa=null;function hy(t,e){if(Kl===null){var n=Kl=[];rc=0,$a=mo(),Wa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return rc++,e.then(Af,Af),e}function Af(){if(--rc===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 my(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"&&hy(t,e),Of!==null&&Of(t,e)};var ma=E(null);function fc(){var t=ma.current;return t!==null?t:Ct.pooledCache}function cs(t,e){e===null?Z(ma,ma.current):Z(ma,e.pool)}function Nf(){var t=fc();return t===null?null:{parent:Gt._currentValue,pool:t}}var Ia=Error(o(460)),dc=Error(o(474)),os=Error(o(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(o(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 ya=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"?(ya=n,Ia):n}}var ya=null;function wf(){if(ya===null)throw Error(o(459));var t=ya;return ya=null,t}function Lf(t){if(t===Ia||t===os)throw Error(o(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(o(525)):(t=Object.prototype.toString.call(e),Error(o(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=un(M,R),M.index=0,M.sibling=null,M}function c(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=tc(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=ec(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=tc(""+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=ec(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,us(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,us(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,us(R,q),nt);ds(R,q)}return null}function W(M,R,A,q){for(var nt=null,vt=null,I=R,ot=R=0,mt=null;I!==null&&ot<A.length;ot++){I.index>ot?(mt=I,I=null):mt=I.sibling;var gt=N(M,I,A[ot],q);if(gt===null){I===null&&(I=mt);break}t&&I&&gt.alternate===null&&e(M,I),R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt,I=mt}if(ot===A.length)return n(M,I),pt&&cn(M,ot),nt;if(I===null){for(;ot<A.length;ot++)I=Y(M,A[ot],q),I!==null&&(R=c(I,R,ot),vt===null?nt=I:vt.sibling=I,vt=I);return pt&&cn(M,ot),nt}for(I=l(I);ot<A.length;ot++)mt=w(I,M,ot,A[ot],q),mt!==null&&(t&&mt.alternate!==null&&I.delete(mt.key===null?ot:mt.key),R=c(mt,R,ot),vt===null?nt=mt:vt.sibling=mt,vt=mt);return t&&I.forEach(function(Fn){return e(M,Fn)}),pt&&cn(M,ot),nt}function st(M,R,A,q){if(A==null)throw Error(o(151));for(var nt=null,vt=null,I=R,ot=R=0,mt=null,gt=A.next();I!==null&&!gt.done;ot++,gt=A.next()){I.index>ot?(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=c(Fn,R,ot),vt===null?nt=Fn:vt.sibling=Fn,vt=Fn,I=mt}if(gt.done)return n(M,I),pt&&cn(M,ot),nt;if(I===null){for(;!gt.done;ot++,gt=A.next())gt=Y(M,gt.value,q),gt!==null&&(R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return pt&&cn(M,ot),nt}for(I=l(I);!gt.done;ot++,gt=A.next())gt=w(I,M,ot,gt.value,q),gt!==null&&(t&&gt.alternate!==null&&I.delete(gt.key===null?ot:gt.key),R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return t&&I.forEach(function(Ev){return e(M,Ev)}),pt&&cn(M,ot),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=ec(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(o(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,us(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=tc(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===os)throw I;var vt=ge(29,I,null,M.mode);return vt.lanes=q,vt.return=M,vt}}}var va=Uf(!0),Bf=Uf(!1),zn=!1;function hc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mc(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 pc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?s=c=e:c=c.next=e}else s=c=e;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,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 yc=!1;function Fl(){if(yc){var t=Wa;if(t!==null)throw t}}function Pl(t,e,n,l){yc=!1;var s=t.updateQueue;zn=!1;var c=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?c=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(c!==null){var Y=s.baseState;f=0,B=O=T=null,g=c;do{var N=g.lane&-536870913,w=N!==g.lane;if(w?(ht&N)===N:(l&N)===N){N!==0&&N===$a&&(yc=!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=v({},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,c===null&&(s.shared.lanes=0),qn|=f,t.lanes=f,t.memoizedState=Y}}function Hf(t,e){if(typeof t!="function")throw Error(o(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 vc(){Z(hs,xn),Z(el,el.current)}function gc(){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 xc(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||jo(n)||Mo(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,ct=null,Rt=null,Xt=null,ps=!1,nl=!1,ga=!1,ys=0,$l=0,al=null,py=0;function Ut(){throw Error(o(321))}function bc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ve(t[n],e[n]))return!1;return!0}function Sc(t,e,n,l,s,c){return fn=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Rd:Uc,ga=!1,c=n(l,s),ga=!1,nl&&(c=Xf(e,n,l,s)),Gf(t),c}function Gf(t){U.H=ti;var e=Rt!==null&&Rt.next!==null;if(fn=0,Xt=Rt=ct=null,ps=!1,$l=0,al=null,e)throw Error(o(300));t===null||Vt||(t=t.dependencies,t!==null&&ss(t)&&(Vt=!0))}function Xf(t,e,n,l){ct=t;var s=0;do{if(nl&&(al=null),$l=0,nl=!1,25<=s)throw Error(o(301));if(s+=1,Xt=Rt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Ed,c=e(n,l)}while(nl);return c}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&&(ct.flags|=1024),e}function _c(){var t=ys!==0;return ys=0,t}function Tc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Rc(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=ct=null,nl=!1,$l=ys=0,al=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Rt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Xt===null?ct.memoizedState:Xt.next;if(e!==null)Xt=e,Rt=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function vs(){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=ct,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Rd:Uc),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(o(438,String(t)))}function Ec(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ct.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=vs(),ct.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 jc(e,Rt,t)}function jc(t,e,n){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var s=t.baseQueue,c=l.pending;if(c!==null){if(s!==null){var f=s.next;s.next=c.next,c.next=f}e.baseQueue=s=c,l.pending=null}if(c=t.baseState,s===null)t.memoizedState=c;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=c):T=T.next=Y,ct.lanes|=N,qn|=N;Y=O.action,ga&&n(c,Y),c=O.hasEagerState?O.eagerState:n(c,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=c):T=T.next=N,ct.lanes|=Y,qn|=Y;O=O.next}while(O!==null&&O!==e);if(T===null?f=c:T.next=g,!ve(c,t.memoizedState)&&(Vt=!0,B&&(n=Wa,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=T,l.lastRenderedState=c}return s===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Mc(t){var e=Yt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var l=n.dispatch,s=n.pending,c=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do c=t(c,f.action),f=f.next;while(f!==s);ve(c,e.memoizedState)||(Vt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,l]}function Vf(t,e,n){var l=ct,s=Yt(),c=pt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ve((Rt||s).memoizedState,n);if(f&&(s.memoizedState=n,Vt=!0),s=s.queue,Oc(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(o(349));c||(fn&127)!==0||Kf(l,e,n)}return n}function Kf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=vs(),ct.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!ve(t,n)}catch{return!0}}function Ff(t){var e=oa(t,2);e!==null&&de(e,t,2)}function Cc(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,jc(t,Rt,typeof l=="function"?l:dn)}function vy(t,e,n,l,s){if(_s(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};U.T!==null?n(!0):c.isTransition=!1,l(c),n=e.pending,n===null?(c.next=e.pending=c,$f(e,c)):(c.next=n.next,e.pending=n.next=c)}}function $f(t,e){var n=e.action,l=e.payload,s=t.state;if(e.isTransition){var c=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){Ac(t,e,O)}finally{c!==null&&f.types!==null&&(c.types=f.types),U.T=c}}else try{c=n(s,l),Wf(t,e,c)}catch(O){Ac(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 Ac(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 Ac(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=ct;if(pt){if(Ot){e:{for(var s=Ot,c=De;s.nodeType!==8;){if(!c){s=null;break e}if(s=Le(s.nextSibling),s===null){s=null;break e}}c=s.data,s=c==="F!"||c==="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,ct,l),l.dispatch=n,l=Cc(!1),c=Lc.bind(null,ct,!1,l.queue),l=ie(),s={state:e,dispatch:null,action:t,pending:null},l.queue=s,n=vy.bind(null,ct,s,c,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=jc(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?os:f}else l=e;e=Yt();var s=e.queue,c=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,ll(9,{destroy:void 0},gy.bind(null,s,n),null)),[l,c,t]}function gy(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=ct.updateQueue,e===null&&(e=vs(),ct.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();ct.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 c=s.memoizedState.inst;Rt!==null&&l!==null&&bc(l,Rt.memoizedState.deps)?s.memoizedState=ll(e,c,n,l):(ct.flags|=t,s.memoizedState=ll(1|e,c,n,l))}function ud(t,e){bs(8390656,8,t,e)}function Oc(t,e){Ss(2048,8,t,e)}function xy(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=vs(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function cd(t){var e=Yt().memoizedState;return xy({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function od(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 Nc(){}function hd(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&bc(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&&bc(e,l[1]))return l[0];if(l=t(),ga){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[l,e],l}function zc(t,e,n){return n===void 0||(fn&1073741824)!==0&&(ht&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ph(),ct.lanes|=t,qn|=t,n)}function pd(t,e,n,l){return ve(n,e)?n:el.current!==null?(t=zc(t,n,l),ve(t,e)||(Vt=!0),t):(fn&42)===0||(fn&1073741824)!==0&&(ht&261930)===0?(Vt=!0,t.memoizedState=n):(t=ph(),ct.lanes|=t,qn|=t,e)}function yd(t,e,n,l,s){var c=K.p;K.p=c!==0&&8>c?c:8;var f=U.T,g={};U.T=g,Lc(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=my(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=c,f!==null&&g.types!==null&&(f.types=g.types),U.T=f}}function by(){}function Dc(t,e,n,l){if(t.tag!==5)throw Error(o(476));var s=vd(t).queue;yd(t,s,e,lt,n===null?by:function(){return gd(t),n(l)})}function vd(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=vd(t);e.next===null&&(e=t.alternate.memoizedState),Il(t,e.next.queue,{},Te())}function wc(){return Wt(yi)}function xd(){return Yt().memoizedState}function bd(){return Yt().memoizedState}function Sy(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:oc()},t.payload=e;return}e=e.return}}function _y(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=Wu(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 c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,g=c(f,n);if(s.hasEagerState=!0,s.eagerState=g,ve(g,f))return ns(t,e,s,0),Ct===null&&es(),!1}catch{}if(n=Wu(t,e,s,l),n!==null)return de(n,t,l),Td(n,e,l),!0}return!1}function Lc(t,e,n,l){if(l={lane:2,revertLane:mo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_s(t)){if(e)throw Error(o(479))}else e=Wu(t,n,l,2),e!==null&&de(e,t,2)}function _s(t){var e=t.alternate;return t===ct||e!==null&&e===ct}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:ud,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=_y.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=Cc(t);var e=t.queue,n=Sd.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Nc,useDeferredValue:function(t,e){var n=ie();return zc(n,t,e)},useTransition:function(){var t=Cc(!1);return t=yd.bind(null,ct,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,s=ie();if(pt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Ct===null)throw Error(o(349));(ht&127)!==0||Kf(l,e,n)}s.memoizedState=n;var c={value:n,getSnapshot:e};return s.queue=c,ud(kf.bind(null,l,c,t),[t]),l.flags|=2048,ll(9,{destroy:void 0},Zf.bind(null,l,c,n,e),null),n},useId:function(){var t=ie(),e=Ct.identifierPrefix;if(pt){var n=Ze,l=Ke;n=(l&~(1<<32-ye(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ys++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=py++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:wc,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=Lc.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Ec,useCacheRefresh:function(){return ie().memoizedState=Sy.bind(null,ct)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Uc={readContext:Wt,use:gs,useCallback:hd,useContext:Wt,useEffect:Oc,useImperativeHandle:dd,useInsertionEffect:od,useLayoutEffect:rd,useMemo:md,useReducer:xs,useRef:sd,useState:function(){return xs(dn)},useDebugValue:Nc,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:wc,useFormState:ad,useActionState:ad,useOptimistic:function(t,e){var n=Yt();return Pf(n,Rt,t,e)},useMemoCache:Ec,useCacheRefresh:bd};Uc.useEffectEvent=cd;var Ed={readContext:Wt,use:gs,useCallback:hd,useContext:Wt,useEffect:Oc,useImperativeHandle:dd,useInsertionEffect:od,useLayoutEffect:rd,useMemo:md,useReducer:Mc,useRef:sd,useState:function(){return Mc(dn)},useDebugValue:Nc,useDeferredValue:function(t,e){var n=Yt();return Rt===null?zc(n,t,e):pd(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Mc(dn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Wl(t),e]},useSyncExternalStore:Vf,useId:xd,useHostTransitionStatus:wc,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:Ec,useCacheRefresh:bd};Ed.useEffectEvent=cd;function Bc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Hc={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,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,f):e.prototype&&e.prototype.isPureReactComponent?!Ql(n,l)||!Ql(s,c):!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&&Hc.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=v({},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 qc(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 c=l.value;t.payload=function(){return s(c)},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 Ty(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),ro(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)),ro(t,l,s)),!1}throw Error(o(435,n.tag))}return ro(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!==lc&&(t=Error(o(422),{cause:l}),Xl(Oe(t,n)))):(l!==lc&&(e=Error(o(423),{cause:l}),Xl(Oe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,l=Oe(l,n),s=qc(t.stateNode,l,s),pc(t,s),Bt!==4&&(Bt=2)),!1;var c=Error(o(520),{cause:l});if(c=Oe(c,n),ci===null?ci=[c]:ci.push(c),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=qc(n.stateNode,l,t),pc(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Qn===null||!Qn.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=zd(s),Dd(s,t,n,l),pc(n,s),!1}n=n.return}while(n!==null);return!1}var Qc=Error(o(461)),Vt=!1;function It(t,e,n,l){e.child=t===null?Bf(e,null,n,l):va(e,t.child,n,l)}function wd(t,e,n,l,s){n=n.render;var c=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=Sc(t,e,n,f,c,s),g=_c(),t!==null&&!Vt?(Tc(t,e,s),hn(t,e,s)):(pt&&g&&nc(e),e.flags|=1,It(t,e,l,s),e.child)}function Ld(t,e,n,l,s){if(t===null){var c=n.type;return typeof c=="function"&&!Iu(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Ud(t,e,c,l,s)):(t=ls(n.type,null,l,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Jc(t,s)){var f=c.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=un(c,l),t.ref=e.ref,t.return=e,e.child=t}function Ud(t,e,n,l,s){if(t!==null){var c=t.memoizedProps;if(Ql(c,l)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=l=c,Jc(t,s))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,hn(t,e,s)}return Yc(t,e,n,l,s)}function Bd(t,e,n,l){var s=l.children,c=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(c=c!==null?c.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&~c}else l=0,e.child=null;return Hd(t,e,c,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&cs(e,c!==null?c.cachePool:null),c!==null?Qf(e,c):vc(),Yf(e);else return l=e.lanes=536870912,Hd(t,e,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(cs(e,c.cachePool),Qf(e,c),Un(),e.memoizedState=null):(t!==null&&cs(e,null),vc(),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 c=fc();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&cs(e,null),vc(),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 va(e,t.child,null,n),t=Rs(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function Ry(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(xc(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 c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(xc(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(o(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!==c.retryLane))throw c.retryLane=f,oa(t,f),de(l,t,f),Qc;Ls(),e=qd(t,e,n)}else t=c.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=un(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(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Yc(t,e,n,l,s){return ha(e),n=Sc(t,e,n,l,void 0,s),l=_c(),t!==null&&!Vt?(Tc(t,e,s),hn(t,e,s)):(pt&&l&&nc(e),e.flags|=1,It(t,e,n,s),e.child)}function Qd(t,e,n,l,s,c){return ha(e),e.updateQueue=null,n=Xf(e,l,n,s),Gf(t),l=_c(),t!==null&&!Vt?(Tc(t,e,c),hn(t,e,c)):(pt&&l&&nc(e),e.flags|=1,It(t,e,n,c),e.child)}function Yd(t,e,n,l,s){if(ha(e),e.stateNode===null){var c=Za,f=n.contextType;typeof f=="object"&&f!==null&&(c=Wt(f)),c=new n(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Hc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},hc(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?Wt(f):Za,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Bc(e,n,f,l),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Hc.enqueueReplaceState(c,c.state,null),Pl(e,l,c,s),Fl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var g=e.memoizedProps,T=xa(n,g);c.props=T;var O=c.context,B=n.contextType;f=Za,typeof B=="object"&&B!==null&&(f=Wt(B));var Y=n.getDerivedStateFromProps;B=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||O!==f)&&Md(e,c,l,f),zn=!1;var N=e.memoizedState;c.state=N,Pl(e,l,c,s),Fl(),O=e.memoizedState,g||N!==O||zn?(typeof Y=="function"&&(Bc(e,n,Y,l),O=e.memoizedState),(T=zn||jd(e,n,T,l,N,O,f))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=O),c.props=l,c.state=O,c.context=f,l=T):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,mc(t,e),f=e.memoizedProps,B=xa(n,f),c.props=B,Y=e.pendingProps,N=c.context,O=n.contextType,T=Za,typeof O=="object"&&O!==null&&(T=Wt(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==Y||N!==T)&&Md(e,c,l,T),zn=!1,N=e.memoizedState,c.state=N,Pl(e,l,c,s),Fl();var w=e.memoizedState;f!==Y||N!==w||zn||t!==null&&t.dependencies!==null&&ss(t.dependencies)?(typeof g=="function"&&(Bc(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 c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,w,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,w,T)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=w),c.props=l,c.state=w,c.context=T,l=B):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,Es(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=va(e,t.child,null,s),e.child=va(e,null,n,s)):It(t,e,n,s),e.memoizedState=c.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 Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(t){return{baseLanes:t,cachePool:Nf()}}function Vc(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,c=(e.flags&128)!==0,f;if((f=c)||(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 Mo(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=Xc(n),l.childLanes=Vc(t,f,n),e.memoizedState=Gc,ei(null,l)):(Ln(e),Kc(e,g))}var T=t.memoizedState;if(T!==null&&(g=T.dehydrated,g!==null)){if(c)e.flags&256?(Ln(e),e.flags&=-257,e=Zc(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,va(e,t.child,null,n),l=e.child,l.memoizedState=Xc(n),l.childLanes=Vc(t,f,n),e.memoizedState=Gc,e=ei(null,l));else if(Ln(e),Mo(g)){if(f=g.nextSibling&&g.nextSibling.dataset,f)var O=f.dgst;f=O,l=Error(o(419)),l.stack="",l.digest=f,Xl({value:l,source:null,stack:null}),e=Zc(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,oa(t,l),de(f,t,l),Qc;jo(g)||Ls(),e=Zc(t,e,n)}else jo(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=Kc(e,l.children),e.flags|=4096);return e}return s?(Un(),g=l.fallback,s=e.mode,T=t.child,O=T.sibling,l=un(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,O!==null?g=un(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=Xc(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=Vc(t,f,n),e.memoizedState=Gc,ei(t.child,l)):(Ln(e),n=t.child,t=n.sibling,n=un(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 Kc(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 Zc(t,e,n){return va(e,t.child,null,n),t=Kc(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),uc(t.return,e,n)}function kc(t,e,n,l,s,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=s,f.treeForkCount=c)}function Kd(t,e,n){var l=e.pendingProps,s=l.revealOrder,c=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),kc(e,!1,s,n,c,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}kc(e,!0,n,null,c,l);break;case"together":kc(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(o(153));if(e.child!==null){for(t=e.child,n=un(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=un(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Jc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ss(t)))}function Ey(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,xc(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(!Jc(t,n)&&(e.flags&128)===0)return Vt=!1,Ey(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")Iu(t)?(l=xa(t,l),e.tag=1,e=Yd(null,e,t,l,n)):(e.tag=0,e=Yc(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(o(306,e,""))}}return e;case 0:return Yc(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(o(387));l=e.pendingProps;var c=e.memoizedState;s=c.element,mc(t,e),Pl(e,l,null,n);var f=e.memoizedState;if(l=f.cache,Nn(e,Gt,l),l!==c.cache&&cc(e,[Gt],n,!0),Fl(),l=f.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Gd(t,e,l,n);break t}else if(l!==s){s=Oe(Error(o(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)?(Co=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=ev(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,c=e.pendingProps,f=t!==null?t.memoizedProps:null,l=c.children,To(s,c)?l=null:f!==null&&To(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=Sc(t,e,yy,null,null,n),yi._currentValue=s),Es(t,e),It(t,e,l,n),e.child;case 6:return t===null&&pt&&((t=n=Ot)&&(n=nv(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=va(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 Ry(t,e,n);case 22:return Bd(t,e,n,e.pendingProps);case 24:return ha(e),l=Wt(Gt),t===null?(s=fc(),s===null&&(s=Ct,c=oc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),e.memoizedState={parent:l,cache:s},hc(e),Nn(e,Gt,s)):((t.lanes&n)!==0&&(mc(t,e),Pl(e,null,null,n),Fl()),s=t.memoizedState,c=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=c.cache,Nn(e,Gt,l),l!==s.cache&&cc(e,[Gt],n,!0))),It(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function mn(t){t.flags|=4}function Fc(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 ya=rs,dc}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,!cm(e))if(xh())t.flags|=8192;else throw ya=rs,dc}function Ms(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Er():536870912,t.lanes|=e,cl|=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 jy(t,e,n){var l=e.pendingProps;switch(ac(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,ic())),Nt(e),null;case 26:var s=e.type,c=e.memoizedState;return t===null?(mn(e),c!==null?(Nt(e),kd(e,c)):(Nt(e),Fc(e,s,null,l,n))):c?c!==t.memoizedState?(mn(e),Nt(e),kd(e,c)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&mn(e),Nt(e),Fc(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(o(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(o(166));return Nt(e),null}if(c=P.current,Fa(e))jf(e);else{var f=Gs(rt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?f.createElement(s,{is:l.is}):f.createElement(s)}}c[Pt]=e,c[se]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.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=c;t:switch(te(c,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),Fc(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(o(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(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Pt]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else n=ic(),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(o(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(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[Pt]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),s=!1}else s=ic(),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),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ms(e,e.updateQueue),Nt(e),null);case 4:return Mt(),t===null&&go(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,c=l.rendering,c===null)if(s)ni(l,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=ms(t),c!==null){for(e.flags|=128,ni(l,!1),t=c.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&&cn(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(c),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"&&!c.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?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}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&&cn(e,l.treeForkCount),t):(Nt(e),null);case 22:case 23:return be(e),gc(),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(o(156,e.tag))}function My(t,e){switch(ac(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(o(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(o(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),gc(),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(ac(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),gc(),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 c=n.create,f=n.inst;l=c(),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 c=s.next;l=c;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!==c)}}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 Pc(t,e,n){try{var l=t.stateNode;Fy(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 $c(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 Wc(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(Wc(t,e,n),t=t.sibling;t!==null;)Wc(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(c){Tt(t,t.return,c)}}var pn=!1,Kt=!1,Ic=!1,th=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Cy(t,e){if(t=t.containerInfo,So=Fs,t=df(t),Zu(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,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.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!==c||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===c&&++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(_o={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,c=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&&c!==null){t=void 0,n=e,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var W=xa(n.type,s);t=l.getSnapshotBeforeUpdate(W,c),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)Eo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Eo(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(o(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:vn(t,n),l&4&&ai(5,n);break;case 1:if(vn(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(vn(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:vn(t,n),e===null&&l&4&&$d(n),l&512&&li(n,n.return);break;case 12:vn(t,n);break;case 31:vn(t,n),l&4&&lh(t,n);break;case 13:vn(t,n),l&4&&ih(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=By.bind(null,n),av(t,n))));break;case 22:if(l=n.memoizedState!==null||pn,!l){e=e!==null&&e.memoizedState!==null||Kt,s=pn;var c=Kt;pn=l,(Kt=e)&&!c?gn(t,n,(n.subtreeFlags&8772)!==0):vn(t,n),pn=s,Kt=c}break;case 30:break;default:vn(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&&Au(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,ce=!1;function yn(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),yn(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=ce;Vn(n.type)&&(Dt=n.stateNode,ce=!1),yn(t,e,n),hi(n.stateNode),Dt=l,ce=s;break;case 5:Kt||ke(n,e);case 6:if(l=Dt,s=ce,Dt=null,yn(t,e,n),Dt=l,ce=s,Dt!==null)if(ce)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(n.stateNode)}catch(c){Tt(n,e,c)}else try{Dt.removeChild(n.stateNode)}catch(c){Tt(n,e,c)}break;case 18:Dt!==null&&(ce?(t=Dt,Fh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),yl(t)):Fh(Dt,n.stateNode));break;case 4:l=Dt,s=ce,Dt=n.stateNode.containerInfo,ce=!0,yn(t,e,n),Dt=l,ce=s;break;case 0:case 11:case 14:case 15:Bn(2,n,e),Kt||Bn(4,n,e),yn(t,e,n);break;case 1:Kt||(ke(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Pd(n,e,l)),yn(t,e,n);break;case 21:yn(t,e,n);break;case 22:Kt=(l=Kt)||n.memoizedState!==null,yn(t,e,n),Kt=l;break;default:yn(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{yl(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{yl(t)}catch(n){Tt(e,e.return,n)}}function Ay(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(o(435,t.tag))}}function As(t,e){var n=Ay(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var s=Hy.bind(null,t,l);l.then(s,s)}})}function oe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=t,f=e,g=f;t:for(;g!==null;){switch(g.tag){case 27:if(Vn(g.type)){Dt=g.stateNode,ce=!1;break t}break;case 5:Dt=g.stateNode,ce=!1;break t;case 3:case 4:Dt=g.stateNode.containerInfo,ce=!0;break t}g=g.return}if(Dt===null)throw Error(o(160));ah(c,f,s),Dt=null,ce=!1,c=s.alternate,c!==null&&(c.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:oe(e,t),re(t),l&4&&(Bn(3,t,t.return),ai(3,t),Bn(5,t,t.return));break;case 1:oe(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(oe(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),l&4){var c=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":c=s.getElementsByTagName("title")[0],(!c||c[Nl]||c[Pt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),te(c,l,n),c[Pt]=t,kt(c),l=c;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(c=f[g],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(g,1);break e}}c=s.createElement(l),te(c,l,n),s.head.appendChild(c);break;case"meta":if(f=sm("meta","content",s).get(l+(n.content||""))){for(g=0;g<f.length;g++)if(c=f[g],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(g,1);break e}}c=s.createElement(l),te(c,l,n),s.head.appendChild(c);break;default:throw Error(o(468,l))}c[Pt]=t,kt(c),l=c}t.stateNode=l}else um(s,t.type,t.stateNode);else t.stateNode=im(s,l,t.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?um(s,t.type,t.stateNode):im(s,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Pc(t,t.memoizedProps,n.memoizedProps)}break;case 27:oe(e,t),re(t),l&512&&(Kt||n===null||ke(n,n.return)),n!==null&&l&4&&Pc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(oe(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,Pc(t,s,n!==null?n.memoizedProps:s)),l&1024&&(Ic=!0);break;case 6:if(oe(e,t),re(t),l&4){if(t.stateNode===null)throw Error(o(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),oe(e,t),Qe=s,re(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{yl(e.containerInfo)}catch(W){Tt(t,t.return,W)}Ic&&(Ic=!1,uh(t));break;case 4:l=Qe,Qe=Xs(t.stateNode.containerInfo),oe(e,t),re(t),Qe=l;break;case 12:oe(e,t),re(t);break;case 31:oe(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,As(t,l)));break;case 13:oe(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,oe(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(c=T.stateNode,s)f=c.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:oe(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:oe(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(o(160));switch(n.tag){case 27:var s=n.stateNode,c=$c(t);Cs(t,c,s);break;case 5:var f=n.stateNode;n.flags&32&&(qa(f,""),n.flags&=-33);var g=$c(t);Cs(t,g,f);break;case 3:case 4:var T=n.stateNode.containerInfo,O=$c(t);Wc(t,O,T);break;default:throw Error(o(161))}}catch(B){Tt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function uh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;uh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function vn(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,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:gn(s,c,n),ai(4,c);break;case 1:if(gn(s,c,n),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(O){Tt(l,l.return,O)}if(l=c,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(c),li(c,c.return);break;case 27:Id(c);case 26:case 5:gn(s,c,n),n&&l===null&&f&4&&$d(c),li(c,c.return);break;case 12:gn(s,c,n);break;case 31:gn(s,c,n),n&&f&4&&lh(s,c);break;case 13:gn(s,c,n),n&&f&4&&ih(s,c);break;case 22:c.memoizedState===null&&gn(s,c,n),li(c,c.return);break;case 30:break;default:gn(s,c,n)}e=e.sibling}}function to(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 eo(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;)ch(t,e,n,l),e=e.sibling}function ch(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 c=e.memoizedProps,f=c.id,g=c.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:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Ye(t,e,n,l):ii(t,e):c._visibility&2?Ye(t,e,n,l):(c._visibility|=2,il(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),s&2048&&to(f,e);break;case 24:Ye(t,e,n,l),s&2048&&eo(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 c=t,f=e,g=n,T=l,O=f.flags;switch(f.tag){case 0:case 11:case 15:il(c,f,g,T,s),ai(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?il(c,f,g,T,s):ii(c,f):(B._visibility|=2,il(c,f,g,T,s)),s&&O&2048&&to(f.alternate,f);break;case 24:il(c,f,g,T,s),s&&O&2048&&eo(f.alternate,f);break;default:il(c,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&&to(l.alternate,l);break;case 24:ii(n,l),s&2048&&eo(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;)oh(t,e,n),t=t.sibling}function oh(t,e,n){switch(t.tag){case 26:sl(t,e,n),t.flags&si&&t.memoizedState!==null&&pv(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 ui(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:ui(t),t.flags&2048&&Bn(9,t,t.return);break;case 3:ui(t);break;case 12:ui(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)):ui(t);break;default:ui(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,c=l.return;if(nh(l),l===n){Jt=null;break t}if(s!==null){s.return=c,Jt=s;break t}Jt=c}}}var Oy={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}},Ny=typeof WeakMap=="function"?WeakMap:Map,bt=0,Ct=null,ft=null,ht=0,_t=0,Se=null,Hn=!1,ul=!1,no=!1,xn=0,Bt=0,qn=0,Sa=0,ao=0,_e=0,cl=0,ci=null,fe=null,lo=!1,Ns=0,hh=0,zs=1/0,Ds=null,Qn=null,Zt=0,Yn=null,ol=null,bn=0,io=0,so=null,mh=null,oi=0,uo=null;function Te(){return(bt&2)!==0&&ht!==0?ht&-ht:U.T!==null?mo():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 yh(t,e,n){if((bt&6)!==0)throw Error(o(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Al(t,e),s=l?wy(t,e):oo(t,e,!0),c=l;do{if(s===0){ul&&!l&&Gn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!zy(n)){s=oo(t,e,!1),c=!1;continue}if(s===2){if(c=e,t.errorRecoveryDisabledLanes&c)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=ci;var T=g.current.memoizedState.isDehydrated;if(T&&(rl(g,f).flags|=256),f=oo(g,f,!1),f!==2){if(no&&!T){g.errorRecoveryDisabledLanes|=c,Sa|=c,s=4;break t}c=fe,fe=s,c!==null&&(fe===null?fe=c:fe.push.apply(fe,c))}s=f}if(c=!1,s!==2)continue}}if(s===1){rl(t,0),Gn(t,e,0,!0);break}t:{switch(l=t,c=s,c){case 0:case 1:throw Error(o(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(o(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(vh.bind(null,l,n,fe,Ds,lo,e,_e,Sa,cl,Hn,c,"Throttled",-0,0),s);break t}vh(l,n,fe,Ds,lo,e,_e,Sa,cl,Hn,c,null,-0,0)}}break}while(!0);Je(t)}function vh(t,e,n,l,s,c,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},oh(e,c,Y);var W=(c&62914560)===c?Ns-ne():(c&4194048)===c?hh-ne():0;if(W=yv(Y,W),W!==null){bn=c,t.cancelPendingCommit=W(Eh.bind(null,t,e,c,n,l,s,f,g,T,B,Y,null,N,w)),Gn(t,c,f,!O);return}}Eh(t,e,c,n,l,s,f,g,T)}function zy(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],c=s.getSnapshot;s=s.value;try{if(!ve(c(),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&=~ao,e&=~Sa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var s=e;0<s;){var c=31-ye(s),f=1<<c;l[c]=-1,s&=~f}n!==0&&jr(t,n,e)}function ws(){return(bt&6)===0?(ri(0),!1):!0}function co(){if(ft!==null){if(_t===0)var t=ft.return;else t=ft,on=da=null,Rc(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,Wy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),bn=0,co(),Ct=t,ft=n=un(t.current,null),ht=e,_t=0,Se=null,Hn=!1,ul=Al(t,e),no=!1,cl=_e=ao=Sa=qn=Bt=0,fe=ci=null,lo=!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-ye(l),c=1<<s;e|=t[s],l&=~c}return xn=e,es(),n}function gh(t,e){ct=null,U.H=ti,e===Ia||e===os?(e=wf(),_t=3):e===dc?(e=wf(),_t=4):_t=e===Qc?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=Oy,t}function Ls(){Bt=4,Hn||(ht&4194048)!==ht&&xe.current!==null||(ul=!0),(qn&134217727)===0&&(Sa&134217727)===0||Ct===null||Gn(Ct,ht,_e,!1)}function oo(t,e,n){var l=bt;bt|=2;var s=bh(),c=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:co(),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&&ul){f=0;break t}break;default:O=_t,_t=0,Se=null,fl(t,g,T,O)}}Dy(),f=Bt;break}catch(B){gh(t,B)}while(!0);return e&&t.shellSuspendCounter++,on=da=null,bt=l,U.H=s,U.A=c,ft===null&&(Ct=null,ht=0,es()),f}function Dy(){for(;ft!==null;)_h(ft)}function wy(t,e){var n=bt;bt|=2;var l=bh(),s=Sh();Ct!==t||ht!==e?(Ds=null,zs=ne()+500,rl(t,e)):ul=Al(t,e);t:do try{if(_t!==0&&ft!==null){e=ft;var c=Se;e:switch(_t){case 1:_t=0,Se=null,fl(t,e,c,1);break;case 2:case 9:if(zf(c)){_t=0,Se=null,Th(e);break}e=function(){_t!==2&&_t!==9||Ct!==t||(_t=7),Je(t)},c.then(e,e);break t;case 3:_t=7;break t;case 4:_t=5;break t;case 7:zf(c)?(_t=0,Se=null,Th(e)):(_t=0,Se=null,fl(t,e,c,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var g=ft;if(f?cm(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,c,5);break;case 6:_t=0,Se=null,fl(t,e,c,6);break;case 8:co(),Bt=6;break t;default:throw Error(o(462))}}Ly();break}catch(B){gh(t,B)}while(!0);return on=da=null,U.H=l,U.A=s,bt=n,ft!==null?0:(Ct=null,ht=0,es(),Bt)}function Ly(){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:Rc(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){on=da=null,Rc(e),tl=null,Zl=0;var s=e.return;try{if(Ty(t,s,e,n,ht)){Bt=1,Ts(t,Oe(n,t.current)),ft=null;return}}catch(c){if(s!==null)throw ft=s,c;Bt=1,Ts(t,Oe(n,t.current)),ft=null;return}e.flags&32768?(pt||l===1?t=!0:ul||(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=jy(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=My(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,c,f,g,T){t.cancelPendingCommit=null;do Bs();while(Zt!==0);if((bt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=$u,m0(t,n,c,f,g,T),t===Ct&&(ft=Ct=null,ht=0),ol=e,Yn=t,bn=n,io=c,so=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{Cy(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=ol,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 c=_o,f=df(t.containerInfo),g=c.focusedElem,T=c.selectionRange;if(f!==g&&g&&g.ownerDocument&&ff(g.ownerDocument.documentElement,g)){if(T!==null&&Zu(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=!!So,_o=So=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=ol,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,Ru();var t=Yn,e=ol,n=bn,l=mh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,ol=Yn=null,Ah(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Qn=null),Mu(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 c=t.onRecoverableError,f=0;f<l.length;f++){var g=l[f];c(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===uo?oi++:(oi=0,uo=t):oi=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=io;io=0;var n=Mu(bn),l=U.T,s=K.p;try{K.p=32>n?32:n,U.T=null,n=so,so=null;var c=Yn,f=bn;if(Zt=0,ol=Yn=null,bn=0,(bt&6)!==0)throw Error(o(331));var g=bt;if(bt|=4,fh(c.current),ch(c,c.current,f,n),bt=g,ri(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(Cl,c)}catch{}return!0}finally{K.p=s,U.T=l,Ah(t,e)}}function Nh(t,e,n){e=Oe(n,e),e=qc(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 ro(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Ny;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)||(no=!0,s.add(n),t=Uy.bind(null,t,e,n),e.then(t,t))}function Uy(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):ao|=n,cl===ht&&(cl=0)),Je(t)}function zh(t,e){e===0&&(e=Er()),t=oa(t,e),t!==null&&(Ol(t,e),Je(t))}function By(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zh(t,n)}function Hy(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(o(314))}l!==null&&l.delete(e),zh(t,n)}function qy(t,e){return He(t,e)}var Hs=null,dl=null,fo=!1,qs=!1,ho=!1,Xn=0;function Je(t){t!==dl&&t.next===null&&(dl===null?Hs=dl=t:dl=dl.next=t),qs=!0,fo||(fo=!0,Yy())}function ri(t,e){if(!ho&&qs){ho=!0;do for(var n=!1,l=Hs;l!==null;){if(t!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var f=l.suspendedLanes,g=l.pingedLanes;c=(1<<31-ye(42|t)+1)-1,c&=s&~(f&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Uh(l,c))}else c=ht,c=Xi(l,l===Ct?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Al(l,c)||(n=!0,Uh(l,c));l=l.next}while(n);ho=!1}}function Qy(){Dh()}function Dh(){qs=fo=!1;var t=0;Xn!==0&&$y()&&(t=Xn);for(var e=ne(),n=null,l=Hs;l!==null;){var s=l.next,c=wh(l,e);c===0?(l.next=null,n===null?Hs=s:n.next=s,s===null&&(dl=n)):(n=l,(t!==0||(c&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,c=t.pendingLanes&-62914561;0<c;){var f=31-ye(c),g=1<<f,T=s[f];T===-1?((g&n)===0||(g&l)!==0)&&(s[f]=h0(g,e)):T<=e&&(t.expiredLanes|=g),c&=~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),Mu(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:(yh(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;yh(t,e,!0)}function Yy(){Iy(function(){(bt&6)!==0?He(Ft,Qy):Dh()})}function mo(){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 Gy(t,e,n,l,s){if(e==="submit"&&n&&n.stateNode===s){var c=Bh((s[se]||null).action),f=l.submitter;f&&(e=(e=f[se]||null)?Bh(e.formAction):f.getAttribute("formAction"),e!==null&&(c=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);Dc(n,{pending:!0,data:T,method:s.method,action:c},null,T)}}else typeof c=="function"&&(g.preventDefault(),T=f?Hh(s,f):new FormData(s),Dc(n,{pending:!0,data:T,method:s.method,action:c},c,T))},currentTarget:s}]})}}for(var po=0;po<Pu.length;po++){var yo=Pu[po],Xy=yo.toLowerCase(),Vy=yo[0].toUpperCase()+yo.slice(1);qe(Xy,"on"+Vy)}qe(pf,"onAnimationEnd"),qe(yf,"onAnimationIteration"),qe(vf,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(sy,"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(" "),Ky=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 c=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!==c&&s.isPropagationStopped())break t;c=g,s.currentTarget=O;try{c(s)}catch(B){ts(B)}s.currentTarget=null,c=T}else for(f=0;f<l.length;f++){if(g=l[f],T=g.instance,O=g.currentTarget,g=g.listener,T!==c&&s.isPropagationStopped())break t;c=g,s.currentTarget=O;try{c(s)}catch(B){ts(B)}s.currentTarget=null,c=T}}}}function dt(t,e){var n=e[Cu];n===void 0&&(n=e[Cu]=new Set);var l=t+"__bubble";n.has(l)||(Qh(e,t,2,!1),n.add(l))}function vo(t,e,n){var l=0;e&&(l|=4),Qh(n,t,l,e)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function go(t){if(!t[Qs]){t[Qs]=!0,zr.forEach(function(n){n!=="selectionchange"&&(Ky.has(n)||vo(n,!1,t),vo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qs]||(e[Qs]=!0,vo("selectionchange",!1,e))}}function Qh(t,e,n,l){switch(pm(e)){case 2:var s=xv;break;case 8:s=bv;break;default:s=Do}n=s.bind(null,e,n,t),s=void 0,!Bu||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 xo(t,e,n,l,s){var c=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=c=f;continue t}g=g.parentNode}}l=l.return}Vr(function(){var O=c,B=Lu(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=H0;break;case"focusin":W="focus",w=Yu;break;case"focusout":W="blur",w=Yu;break;case"beforeblur":case"afterblur":w=Yu;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=j0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Y0;break;case pf:case yf:case vf:w=A0;break;case gf:w=X0;break;case"scroll":case"scrollend":w=R0;break;case"wheel":w=K0;break;case"copy":case"cut":case"paste":w=N0;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=k0}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!==wu&&(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=Zy,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 vt=af;else if(ef(N))if(lf)vt=ay;else{vt=ey;var I=ty}else w=N.nodeName,!w||w.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?O&&Du(O.elementType)&&(vt=af):vt=ny;if(vt&&(vt=vt(t,O))){nf(Y,vt,n,B);break t}I&&I(t,N,O),t==="focusout"&&O&&N.type==="number"&&O.memoizedProps.value!=null&&zu(N,"number",N.value)}switch(I=O?zl(O):window,t){case"focusin":(ef(I)||I.contentEditable==="true")&&(Xa=I,ku=O,Yl=null);break;case"focusout":Yl=ku=Xa=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,hf(Y,n,B);break;case"selectionchange":if(iy)break;case"keydown":case"keyup":hf(Y,n,B)}var ot;if(Xu)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&&(ot=Kr()):(Mn=B,Hu="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}),ot?mt.data=ot:(ot=tf(n),ot!==null&&(mt.data=ot)))),(ot=F0?P0(t,n):$0(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=ot)),Gy(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,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Dl(t,n),s!=null&&l.unshift(di(t,s,c)),s=Dl(t,e),s!=null&&l.push(di(t,s,c))),t.tag===3)return l;t=t.return}return[]}function Zy(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 c=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,c),O!=null&&f.unshift(di(n,O,T))):s||(O=Dl(n,c),O!=null&&f.push(di(n,O,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var ky=/\r\n?/g,Jy=/\u0000|\uFFFD/g;function Gh(t){return(typeof t=="string"?t:""+t).replace(ky,`
9
- `).replace(Jy,"")}function Xh(t,e){return e=Gh(e),Gh(t)===e}function Et(t,e,n,l,s,c){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,c);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 c=="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(o(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(o(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=_0.get(n)||n,Vi(t,n,l))}}function bo(t,e,n,l,s,c){switch(n){case"style":Gr(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(o(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),c=t[se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,s),typeof l=="function")){typeof c!="function"&&c!==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,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Et(t,e,c,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=c=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":c=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,e));break;default:Et(t,e,l,B,n,null)}}Hr(t,c,g,T,O,f,s,!1);return;case"select":dt("invalid",t),l=f=c=null;for(s in n)if(n.hasOwnProperty(s)&&(g=n[s],g!=null))switch(s){case"value":c=g;break;case"defaultValue":f=g;break;case"multiple":l=g;default:Et(t,e,s,g,n,null)}e=c,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),c=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":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:Et(t,e,f,g,n,null)}Qr(t,l,s,c);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(o(137,e));default:Et(t,e,O,l,n,null)}return;default:if(Du(e)){for(B in n)n.hasOwnProperty(B)&&(l=n[B],l!==void 0&&bo(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 Fy(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,c=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":c=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(o(137,e));break;default:w!==Y&&Et(t,e,N,w,l,Y)}}Nu(t,f,g,T,O,B,c,s);return;case"select":w=f=g=N=null;for(c in n)if(T=n[c],n.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":w=T;default:l.hasOwnProperty(c)||Et(t,e,c,null,l,T)}for(s in l)if(c=l[s],T=n[s],l.hasOwnProperty(s)&&(c!=null||T!=null))switch(s){case"value":N=c;break;case"defaultValue":g=c;break;case"multiple":f=c;default:c!==T&&Et(t,e,s,c,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],c=n[f],l.hasOwnProperty(f)&&(s!=null||c!=null))switch(f){case"value":N=s;break;case"defaultValue":w=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==c&&Et(t,e,f,s,l,c)}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(o(137,e));break;default:Et(t,e,O,N,l,w)}return;default:if(Du(e)){for(var jt in n)N=n[jt],n.hasOwnProperty(jt)&&N!==void 0&&!l.hasOwnProperty(jt)&&bo(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||bo(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 Py(){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],c=s.transferSize,f=s.initiatorType,g=s.duration;if(c&&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*(c+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 So=null,_o=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 To(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 Ro=null;function $y(){var t=window.event;return t&&t.type==="popstate"?t===Ro?!1:(Ro=t,!0):(Ro=null,!1)}var kh=typeof setTimeout=="function"?setTimeout:void 0,Wy=typeof clearTimeout=="function"?clearTimeout:void 0,Jh=typeof Promise=="function"?Promise:void 0,Iy=typeof queueMicrotask=="function"?queueMicrotask:typeof Jh<"u"?function(t){return Jh.resolve(null).then(t).catch(tv)}:kh;function tv(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),yl(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 c=n.firstChild;c;){var f=c.nextSibling,g=c.nodeName;c[Nl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&hi(t.ownerDocument.body);n=s}while(n);yl(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 Eo(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":Eo(n),Au(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function ev(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(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==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(c=t.getAttribute("src"),(c!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function nv(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 jo(t){return t.data==="$?"||t.data==="$~"}function Mo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function av(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 Co=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(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function hi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Au(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:lv,r:iv,D:sv,C:uv,L:cv,m:ov,X:fv,S:rv,M:dv};function lv(){var t=Sn.f(),e=ws();return t||e}function iv(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 sv(t){Sn.D(t),nm("dns-prefetch",t,null)}function uv(t,e){Sn.C(t,e),nm("preconnect",t,e)}function cv(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 c=s;switch(e){case"style":c=ml(t);break;case"script":c=pl(t)}Ue.has(c)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ue.set(c,t),l.querySelector(s)!==null||e==="style"&&l.querySelector(mi(c))||e==="script"&&l.querySelector(pi(c))||(e=l.createElement("link"),te(e,"link",t),kt(e),l.head.appendChild(e)))}}function ov(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)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=pl(t)}if(!Ue.has(c)&&(t=v({rel:"modulepreload",href:t},e),Ue.set(c,t),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(pi(c)))return}l=n.createElement("link"),te(l,"link",t),kt(l),n.head.appendChild(l)}}}function rv(t,e,n){Sn.S(t,e,n);var l=hl;if(l&&t){var s=Ua(l).hoistableStyles,c=ml(t);e=e||"default";var f=s.get(c);if(!f){var g={loading:0,preload:null};if(f=l.querySelector(mi(c)))g.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ue.get(c))&&Ao(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(c,f)}}}function fv(t,e){Sn.X(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,s=pl(t),c=l.get(s);c||(c=n.querySelector(pi(s)),c||(t=v({src:t,async:!0},e),(e=Ue.get(s))&&Oo(t,e),c=n.createElement("script"),kt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function dv(t,e){Sn.M(t,e);var n=hl;if(n&&t){var l=Ua(n).hoistableScripts,s=pl(t),c=l.get(s);c||(c=n.querySelector(pi(s)),c||(t=v({src:t,async:!0,type:"module"},e),(e=Ue.get(s))&&Oo(t,e),c=n.createElement("script"),kt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function am(t,e,n,l){var s=(s=rt.current)?Xs(s):null;if(!s)throw Error(o(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 c=Ua(s).hoistableStyles,f=c.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=s.querySelector(mi(t)))&&!c._p&&(f.instance=c,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),c||hv(s,t,n,f.state))),e&&l===null)throw Error(o(528,""));return f}if(e&&l!==null)throw Error(o(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(o(444,t))}}function ml(t){return'href="'+Ce(t)+'"'}function mi(t){return'link[rel="stylesheet"]['+t+"]"}function lm(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function hv(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=v({},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 c=t.querySelector(mi(s));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;l=lm(n),(s=Ue.get(s))&&Ao(l,s),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),te(c,"link",l),e.state.loading|=4,Vs(c,n.precedence,t),e.instance=c;case"script":return c=pl(n.src),(s=t.querySelector(pi(c)))?(e.instance=s,kt(s),s):(l=n,(s=Ue.get(c))&&(l=v({},n),Oo(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(o(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,c=s,f=0;f<l.length;f++){var g=l[f];if(g.dataset.precedence===e)c=g;else if(c!==s)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ao(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Oo(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 c=n[s];if(!(c[Nl]||c[Pt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var g=l.get(f);g?g.push(c):l.set(f,[c])}}return l}function um(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function mv(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 cm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function pv(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),c=e.querySelector(mi(s));if(c){e=c._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=c,kt(c);return}c=e.ownerDocument||e,l=lm(l),(s=Ue.get(s))&&Ao(l,s),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),te(c,"link",l),n.instance=c}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 No=0;function yv(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 c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&No===0&&(No=62500*Py());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>No?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(vv,t),ks=null,Zs.call(t))}function vv(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]"),c=0;c<s.length;c++){var f=s[c];(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"),c=n.get(f)||l,c===l&&n.set(null,s),n.set(f,s),this.count++,l=Zs.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var yi={$$typeof:X,Provider:null,Consumer:null,_currentValue:lt,_currentValue2:lt,_threadCount:0};function gv(t,e,n,l,s,c,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=Eu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.hiddenUpdates=Eu(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function om(t,e,n,l,s,c,f,g,T,O,B,Y){return t=new gv(t,e,n,f,T,O,B,Y,g),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=oc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:e},hc(c),t}function rm(t){return t?(t=Za,t):Za}function fm(t,e,n,l,s,c){s=rm(s),l.context===null?l.context=s:l.pendingContext=s,l=Dn(e),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),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 zo(t,e){dm(t,e),(t=t.alternate)&&dm(t,e)}function hm(t){if(t.tag===13||t.tag===31){var e=oa(t,67108864);e!==null&&de(e,t,67108864),zo(t,67108864)}}function mm(t){if(t.tag===13||t.tag===31){var e=Te();e=ju(e);var n=oa(t,e);n!==null&&de(n,t,e),zo(t,e)}}var Fs=!0;function xv(t,e,n,l){var s=U.T;U.T=null;var c=K.p;try{K.p=2,Do(t,e,n,l)}finally{K.p=c,U.T=s}}function bv(t,e,n,l){var s=U.T;U.T=null;var c=K.p;try{K.p=8,Do(t,e,n,l)}finally{K.p=c,U.T=s}}function Do(t,e,n,l){if(Fs){var s=wo(l);if(s===null)xo(t,e,l,Ps,n),ym(t,l);else if(_v(s,t,e,n,l))l.stopPropagation();else if(ym(t,l),e&4&&-1<Sv.indexOf(t)){for(;s!==null;){var c=La(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=la(c.pendingLanes);if(f!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;f;){var T=1<<31-ye(f);g.entanglements[1]|=T,f&=~T}Je(c),(bt&6)===0&&(zs=ne()+500,ri(0))}}break;case 31:case 13:g=oa(c,2),g!==null&&de(g,c,2),ws(),zo(c,2)}if(c=wo(l),c===null&&xo(t,e,l,Ps,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else xo(t,e,l,null,n)}}function wo(t){return t=Lu(t),Lo(t)}var Ps=null;function Lo(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 u0:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Uo=!1,Kn=null,Zn=null,kn=null,vi=new Map,gi=new Map,Jn=[],Sv="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 ym(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":vi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":gi.delete(e.pointerId)}}function xi(t,e,n,l,s,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:c,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 _v(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 c=s.pointerId;return vi.set(c,xi(vi.get(c)||null,t,e,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,gi.set(c,xi(gi.get(c)||null,t,e,n,l,s)),!0}return!1}function vm(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=wo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);wu=l,n.target.dispatchEvent(l),wu=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 Tv(){Uo=!1,Kn!==null&&$s(Kn)&&(Kn=null),Zn!==null&&$s(Zn)&&(Zn=null),kn!==null&&$s(kn)&&(kn=null),vi.forEach(gm),gi.forEach(gm)}function Ws(t,e){t.blockedOn===e&&(t.blockedOn=null,Uo||(Uo=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Tv)))}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(Lo(l||n)===null)continue;break}var c=La(n);c!==null&&(t.splice(e,3),e-=3,Dc(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function yl(t){function e(T){return Ws(T,t)}Kn!==null&&Ws(Kn,t),Zn!==null&&Ws(Zn,t),kn!==null&&Ws(kn,t),vi.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);)vm(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],c=n[l+1],f=s[se]||null;if(typeof c=="function")f||xm(n);else if(f){var g=null;if(c&&c.hasAttribute("formAction")){if(s=c,f=c[se]||null)g=f.formAction;else if(Lo(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(c){c.canIntercept&&c.info==="react-transition"&&c.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 c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.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 Bo(t){this._internalRoot=t}tu.prototype.render=Bo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,l=Te();fm(n,l,t,e,null,null)},tu.prototype.unmount=Bo.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 tu(t){this._internalRoot=t}tu.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&&vm(t)}};var Sm=i.version;if(Sm!=="19.2.6")throw Error(o(527,Sm,"19.2.6"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=y(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Rv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{Cl=eu.inject(Rv),pe=eu}catch{}}return Ei.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,l="",s=Cd,c=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&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=om(t,1,!1,null,null,n,l,null,s,c,f,bm),t[Da]=e.current,go(t),new Bo(e)},Ei.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var l=!1,s="",c=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&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=om(t,1,!0,e,n??null,l,s,T,c,f,g,bm),e.context=rm(null),n=e.current,l=Te(),l=ju(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,go(t),new tu(e)},Ei.version="19.2.6",Ei}var mp;function hb(){if(mp)return Io.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(),Io.exports=db(),Io.exports}var mb=hb();const Oa=Zx()({component:yb}),pb=[{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 yb(){return h.jsxs("div",{className:"flex h-screen bg-black text-[#fafafa] overflow-hidden",children:[h.jsxs("nav",{className:"w-48 border-r border-[#1f1f1f] flex flex-col shrink-0",children:[h.jsxs("div",{className:"px-4 py-4 border-b border-[#1f1f1f]",children:[h.jsx("span",{className:"font-mono font-bold text-sm text-green-400",children:"ahk"}),h.jsx("span",{className:"font-mono text-sm text-neutral-600 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:pb.map(({to:a,label:i,exact:u})=>h.jsx(na,{to:a,activeOptions:{exact:u},className:"font-mono text-sm px-3 py-1.5 rounded text-neutral-500 hover:text-[#fafafa] hover:bg-[#0a0a0a] transition-colors",activeProps:{className:"font-mono text-sm px-3 py-1.5 rounded text-[#fafafa] bg-[#0a0a0a]"},children:i},a))}),h.jsx("div",{className:"px-4 py-3 border-t border-[#1f1f1f]",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-green-400 inline-block"}),h.jsx("span",{className:"font-mono text-[10px] text-neutral-600",children:"live"})]})})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(n0,{})})]})}const vb={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 gb(a){return a.startsWith("custom:")?"bg-neutral-900 text-neutral-300":vb[a]??"bg-neutral-900 text-neutral-400"}function Ge({agent:a,size:i="sm"}){const u=i==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${gb(a)} ${u} font-mono px-2 py-0.5 rounded-sm`,children:a})}function gu({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-neutral-600",children:i})})}function a0(){return h.jsx("div",{className:"p-6 font-mono text-xs text-neutral-600",children:"Loading…"})}function xu({cols:a}){return h.jsx("tr",{children:h.jsx("td",{colSpan:a,className:"px-3 py-4 text-center font-mono text-xs text-neutral-600",children:"Loading…"})})}function Rl({title:a,subtitle:i,right:u}){return h.jsxs("div",{className:"flex items-start justify-between px-6 pt-6 pb-4 border-b border-[#1f1f1f]",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"font-mono font-semibold text-base text-[#fafafa]",children:a}),i&&h.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:i})]}),u!=null&&u!=null&&h.jsx("div",{children:u})]})}const pp="/api";async function Fe(a,i){const u=i?`${pp}${a}?${new URLSearchParams(i)}`:`${pp}${a}`,o=await fetch(u);if(!o.ok)throw new Error(`API ${a} → ${o.status}`);return o.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(u=>u.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 l0(a,i){if(!i)return"—";const u=new Date(i).getTime()-new Date(a).getTime(),o=Math.floor(u/1e3);if(o<60)return`${o}s`;const r=Math.floor(o/60);return r<60?`${r}m ${o%60}s`:`${Math.floor(r/60)}h ${r%60}m`}const xb=Tl("/tools")({component:bb});function bb(){const a=We({queryKey:Ie.topTools,queryFn:()=>Ee.topTools(25)}),i=We({queryKey:Ie.recentTools,queryFn:()=>Ee.recentTools(50)}),u=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-neutral-500 uppercase tracking-wider mb-4",children:"Top Tools"}),a.isLoading&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"Loading…"}),h.jsxs("div",{className:"space-y-1.5",children:[(a.data??[]).map(({tool_name:o,uses:r})=>h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-48 font-mono text-xs text-neutral-400 text-right shrink-0 truncate",children:o}),h.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-neutral-900 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/u*100}%`}})}),h.jsx("span",{className:"font-mono text-xs text-neutral-500 w-8 text-right shrink-0",children:r})]})]},o)),!a.isLoading&&a.data?.length===0&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"No tool calls recorded yet."})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 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-[#1f1f1f]",children:["Tool","Agent","Task","Args","Result","Called"].map(o=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:o},o))})}),h.jsxs("tbody",{children:[i.isLoading&&h.jsx(xu,{cols:6}),(i.data??[]).map(o=>h.jsx(Sb,{tool:o},o.id)),!i.isLoading&&i.data?.length===0&&h.jsx(gu,{cols:6,message:"No recent calls"})]})]})]})]})]})}function Sb({tool:a}){let i="—";if(a.args_json)try{const u=JSON.parse(a.args_json);i=JSON.stringify(u).slice(0,60)+(JSON.stringify(u).length>60?"…":"")}catch{i=a.args_json.slice(0,60)}return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] 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-neutral-500 max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-600 max-w-[180px] truncate",children:i}),h.jsx("td",{className:"px-4 py-2 text-xs text-neutral-500 max-w-[180px] truncate",children:a.result_summary??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-neutral-700",children:$e(a.called_at)})]})}const _b={read:"text-neutral-400",created:"text-green-400",modified:"text-amber-400",deleted:"text-red-400"};function i0({op:a}){const i=_b[a]??"text-neutral-500";return h.jsx("span",{className:`${i} font-mono text-xs`,children:a})}const Tb=Tl("/files")({component:Rb});function Rb(){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-neutral-500 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-[#1f1f1f]",children:["File Path","Total","Read","Created","Modified","Deleted"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsxs("tbody",{children:[a.isLoading&&h.jsx(xu,{cols:6}),(a.data??[]).map(u=>h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-300 max-w-xs truncate",children:u.file_path}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-400",children:u.total}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-600",children:u.read||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-green-400",children:u.created||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-amber-400",children:u.modified||"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-red-400",children:u.deleted||"—"})]},u.file_path)),!a.isLoading&&a.data?.length===0&&h.jsx(gu,{cols:6,message:"No file activity yet"})]})]})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 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-[#1f1f1f]",children:["Op","File Path","Agent","Task","Notes","When"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsxs("tbody",{children:[i.isLoading&&h.jsx(xu,{cols:6}),(i.data??[]).map(u=>h.jsx(Eb,{file:u},u.id)),!i.isLoading&&i.data?.length===0&&h.jsx(gu,{cols:6,message:"No recent operations"})]})]})]})]})]})}function Eb({file:a}){return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-2",children:h.jsx(i0,{op:a.operation})}),h.jsx("td",{className:"px-4 py-2 font-mono text-xs text-neutral-300 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-neutral-500 max-w-[120px] truncate",children:a.task_slug}),h.jsx("td",{className:"px-4 py-2 text-xs text-neutral-600 max-w-[160px] truncate",children:a.notes??"—"}),h.jsx("td",{className:"px-4 py-2 font-mono text-[10px] text-neutral-700",children:$e(a.called_at)})]})}const jb=Tl("/agents")({component:Mb});function Mb(){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(a0,{}),h.jsx("div",{className:"grid grid-cols-2 gap-4",children:a.map(u=>h.jsx(Cb,{stat:u},u.agent))}),a.length===0&&!i&&h.jsx("p",{className:"font-mono text-xs text-neutral-600",children:"No agent activity yet."}),a.length>0&&h.jsxs("div",{className:"mt-6",children:[h.jsx("h2",{className:"font-mono text-xs text-neutral-500 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-[#1f1f1f]",children:["Agent","Total Actions","Completed","Blocked","Tasks","Files"].map(u=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-2",children:u},u))})}),h.jsx("tbody",{children:a.map(u=>h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors",children:[h.jsx("td",{className:"px-4 py-3",children:h.jsx(Ge,{agent:u.agent})}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.actions_total}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-green-400",children:u.actions_done}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm text-red-400",children:u.actions_blocked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.tasks_worked}),h.jsx("td",{className:"px-4 py-3 font-mono text-sm",children:u.files_touched})]},u.agent))})]})]})]})]})}function Cb({stat:a}){const i=a.actions_total>0?Math.round(a.actions_done/a.actions_total*100):0;return h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] 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-neutral-600",children:[i,"% done"]})]}),h.jsx("div",{className:"w-full bg-neutral-900 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:u}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("span",{className:"text-xs text-neutral-600",children:a}),h.jsx("span",{className:`font-mono text-xs ${u??"text-neutral-300"}`,children:i})]})}const Ab={pending:"bg-neutral-900 text-neutral-400",in_progress:"bg-amber-950 text-amber-400",done:"bg-green-950 text-green-400",blocked:"bg-red-950 text-red-400"},Ob={in_progress:"in progress"};function Tu({status:a,size:i="sm"}){const u=Ab[a]??"bg-neutral-900 text-neutral-500",o=Ob[a]??a,r=i==="xs"?"text-[10px]":"text-xs";return h.jsx("span",{className:`${u} ${r} font-mono px-2 py-0.5 rounded-sm`,children:o})}const Nb=Tl("/")({component:zb});function zb(){const a=We({queryKey:Ie.stats,queryFn:Ee.stats}),i=We({queryKey:Ie.tasks,queryFn:Ee.tasks}),u=We({queryKey:Ie.timeline,queryFn:()=>Ee.timeline(15)}),o=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-neutral-400"},{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-[#0a0a0a] border border-[#1f1f1f] 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-neutral-500 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-[#0a0a0a] border border-[#1f1f1f] rounded-md px-4 py-3 flex items-center gap-3",children:[h.jsx("span",{className:"font-mono text-lg text-[#fafafa]",children:m??"—"}),h.jsx("span",{className:"text-xs text-neutral-500",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-neutral-500 uppercase tracking-wider mb-3",children:"Active Tasks"}),o.length===0?h.jsx("p",{className:"text-xs text-neutral-600 font-mono",children:"No tasks in progress"}):h.jsx("div",{className:"space-y-2",children:o.map(d=>h.jsxs(na,{to:"/tasks/$id",params:{id:String(d.id)},className:"block bg-[#0a0a0a] border border-[#1f1f1f] rounded-md p-3 hover:border-neutral-700 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-[#fafafa] truncate",children:d.title}),h.jsx("div",{className:"font-mono text-xs text-neutral-600 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-neutral-600 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-neutral-900 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-neutral-500 uppercase tracking-wider mb-3",children:"Recent Activity"}),h.jsxs("div",{className:"space-y-1",children:[(u.data??[]).map(d=>h.jsx(Db,{entry:d},d.id)),u.data?.length===0&&h.jsx("p",{className:"text-xs text-neutral-600 font-mono",children:"No activity yet"})]})]})]})]})]})}function Db({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-[#0a0a0a] 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-neutral-300 truncate group-hover:text-white 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-neutral-600",children:a.task_slug}),h.jsx(Tu,{status:a.status,size:"xs"})]})]}),h.jsx("span",{className:"font-mono text-[10px] text-neutral-700 shrink-0",children:$e(a.created_at)})]})}const wb=Tl("/tasks/")({component:Hb}),Lb=[{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"}],Ub=[{value:"list",label:"List"},{value:"board",label:"Board"}],Bb=[{status:"pending",label:"Pending",color:"text-neutral-400"},{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 yp(a){return a.completed_at??a.started_at??a.created_at}function Hb(){const[a,i]=J.useState("all"),[u,o]=J.useState("list"),[r,d]=J.useState({field:null,dir:"asc"}),{data:m=[],isLoading:x}=We({queryKey:Ie.allTasks(!0),queryFn:()=>Ee.allTasks(!0)}),p=a==="all"?m.filter(v=>!v.archived_at):a==="archived"?m.filter(v=>v.archived_at):m.filter(v=>v.status===a&&!v.archived_at),y=J.useMemo(()=>r.field?[...p].sort((v,S)=>{if(r.field==="status"){const _=v.status.localeCompare(S.status);return r.dir==="asc"?_:-_}if(r.field==="created"){const _=new Date(v.created_at).getTime()-new Date(S.created_at).getTime();return r.dir==="asc"?_:-_}return 0}):p,[p,r]),b=J.useMemo(()=>{const v={pending:[],in_progress:[],done:[],blocked:[]};for(const S of p)v[S.status]&&v[S.status].push(S);for(const S of Object.keys(v))v[S].sort((_,j)=>new Date(yp(j)).getTime()-new Date(yp(_)).getTime());return v},[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:[Ub.map(({value:v,label:S})=>h.jsx("button",{onClick:()=>o(v),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${u===v?"bg-[#0a0a0a] text-[#fafafa] border border-[#3a3a3a]":"text-neutral-500 hover:text-neutral-300 border border-transparent"}`,children:S},v)),h.jsx("span",{className:"w-px h-5 bg-[#1f1f1f] mx-1"}),Lb.map(({value:v,label:S})=>h.jsx("button",{onClick:()=>i(v),className:`font-mono text-xs px-3 py-1.5 rounded transition-colors ${a===v?"bg-[#0a0a0a] text-[#fafafa] border border-[#3a3a3a]":"text-neutral-500 hover:text-neutral-300 border border-transparent"}`,children:S},v))]})}),u==="list"?h.jsx(qb,{tasks:y,sortConfig:r,onSortChange:d,isLoading:x}):h.jsx(Yb,{columns:b})]})}function qb({tasks:a,sortConfig:i,onSortChange:u,isLoading:o}){const r=m=>{i.field===m?u({field:m,dir:i.dir==="asc"?"desc":"asc"}):u({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-[#1f1f1f]",children:[h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"#"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Title"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Slug"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-neutral-400 transition-colors",onClick:()=>r("status"),children:["Status",d("status")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Assigned"}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Acceptance"}),h.jsxs("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3 cursor-pointer select-none hover:text-neutral-400 transition-colors",onClick:()=>r("created"),children:["Created",d("created")]}),h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 uppercase tracking-wider px-4 py-3",children:"Archived"})]})}),h.jsxs("tbody",{children:[o&&h.jsx(xu,{cols:8}),a.map(m=>h.jsx(Qb,{task:m},m.id)),!o&&a.length===0&&h.jsx(gu,{cols:8,message:"No tasks"})]})]})})}function Qb({task:a}){return h.jsxs("tr",{className:"border-b border-[#1f1f1f] hover:bg-[#0a0a0a] transition-colors group",children:[h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-600",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-[#fafafa] hover:text-green-400 transition-colors",children:a.title}),a.description&&h.jsx("div",{className:"text-xs text-neutral-600 mt-0.5 truncate max-w-xs",children:a.description})]}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-500",children:a.slug}),h.jsx("td",{className:"px-4 py-3",children:h.jsx(Tu,{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-neutral-700 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-neutral-900 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-neutral-600",children:[a.acceptance_met,"/",a.acceptance_total]})]}):h.jsx("span",{className:"text-neutral-700 text-xs",children:"—"})}),h.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-600",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-neutral-800 text-xs",children:"—"})})]})}function Yb({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:Bb.map(({status:i,label:u,color:o})=>{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-[#1f1f1f] mb-3",children:[h.jsx("h3",{className:`font-mono text-sm font-medium ${o}`,children:u}),h.jsxs("span",{className:"font-mono text-xs text-neutral-600",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(Gb,{task:d},d.id)):h.jsx("div",{className:"text-xs font-mono text-neutral-700 text-center py-8",children:"No tasks"})})]},i)})})})}function Gb({task:a}){return h.jsxs("div",{className:"border border-[#1f1f1f] rounded bg-black p-3 hover:bg-[#0a0a0a] transition-colors space-y-2",children:[h.jsxs("div",{className:"font-mono text-[10px] text-neutral-600",children:["#",a.id]}),h.jsx(na,{to:"/tasks/$id",params:{id:String(a.id)},className:"font-mono text-sm text-[#fafafa] hover:text-green-400 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-neutral-700 text-xs",children:"—"})}),a.acceptance_total>0&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-neutral-900 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-neutral-600",children:[a.acceptance_met,"/",a.acceptance_total]})]}),h.jsx("div",{className:"font-mono text-[10px] text-neutral-600",children:$e(a.created_at)})]})}function Xb({message:a="Something went wrong",backTo:i,backLabel:u="← Back"}){return h.jsxs("div",{className:"p-6",children:[i&&h.jsx(na,{to:i,className:"font-mono text-xs text-neutral-500 hover:text-neutral-300 transition-colors",children:u}),h.jsx("p",{className:"font-mono text-xs text-red-400 mt-4",children:a})]})}function Vb({action:a}){const[i,u]=J.useState(!1),o=a.sections.length>0,r=l0(a.created_at,a.completed_at);return h.jsxs("div",{className:"bg-[#0a0a0a] border border-[#1f1f1f] rounded-md",children:[h.jsxs("button",{className:"w-full flex items-start gap-3 p-3 text-left hover:bg-[#0f0f0f] transition-colors rounded-md",onClick:()=>o&&u(!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(Tu,{status:a.status,size:"xs"}),h.jsx("span",{className:"font-mono text-xs text-neutral-600",children:r}),a.tools.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-neutral-700",children:[a.tools.length," tool",a.tools.length!==1?"s":""]}),a.files.length>0&&h.jsxs("span",{className:"font-mono text-[10px] text-neutral-700",children:[a.files.length," file",a.files.length!==1?"s":""]})]}),a.summary&&h.jsx("div",{className:"text-xs text-neutral-400 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-neutral-700",children:$e(a.created_at)}),o&&h.jsx("span",{className:"text-neutral-600 text-xs",children:i?"▲":"▼"})]})]}),i&&o&&h.jsx("div",{className:"border-t border-[#1f1f1f] divide-y divide-[#1f1f1f]",children:a.sections.map(d=>h.jsx(Kb,{section:d},d.id))})]})}function Kb({section:a}){return h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[10px] text-neutral-600 uppercase tracking-wider mb-1",children:a.section_type.replace(/_/g," ")}),h.jsx("pre",{className:"text-xs text-neutral-400 whitespace-pre-wrap font-mono leading-relaxed",children:a.content})]})}function uu({children:a}){return h.jsx("h2",{className:"font-mono text-xs text-neutral-500 uppercase tracking-wider",children:a})}function ji({label:a,value:i}){return h.jsxs("div",{children:[h.jsx("div",{className:"text-neutral-600 text-[10px]",children:a}),h.jsx("div",{className:"text-neutral-300",children:i})]})}const s0=Tl("/tasks/$id")({component:Zb});function Zb(){const{id:a}=s0.useParams(),{data:i,isLoading:u,isError:o,dataUpdatedAt:r}=We({queryKey:Ie.task(Number(a)),queryFn:()=>Ee.task(Number(a))}),[d,m]=J.useState(!1),[x,p]=J.useState(i?.title),[y,b]=J.useState(i?.description??""),[v,S]=J.useState(i?.acceptance.map(z=>z.criterion)??[]);if(J.useEffect(()=>{i&&(p(i.title),b(i.description??""),S(i.acceptance.map(z=>z.criterion)))},[r]),u)return h.jsx(a0,{});if(o||!i)return h.jsx(Xb,{message:"Task not found",backTo:"/tasks",backLabel:"← Back to tasks"});const _=()=>S([...v,""]),j=async()=>{await Ee.updateTask(Number(a),{title:x,description:y||null,acceptance:v.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(Tu,{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-neutral-500 hover:text-red-400 border border-[#1f1f1f] 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-neutral-500 hover:text-[#fafafa] border border-[#1f1f1f] 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-[#0a0a0a] border border-[#1f1f1f] 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-[#fafafa] mb-4",children:"Edit Task"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-neutral-500 font-mono block mb-1",children:"Title"}),h.jsx("input",{value:x,onChange:z=>p(z.target.value),className:"w-full bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-neutral-500 font-mono block mb-1",children:"Description"}),h.jsx("textarea",{value:y??"",onChange:z=>b(z.target.value),className:"w-full bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600 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-neutral-500 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:v.map((z,X)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("span",{className:"text-xs text-neutral-600 font-mono mt-2 shrink-0",children:["#",X+1]}),h.jsx("input",{value:z,onChange:G=>{const $=[...v];$[X]=G.target.value,S($)},className:"flex-1 bg-black border border-[#1f1f1f] rounded px-3 py-2 text-sm text-[#fafafa] font-mono outline-none focus:border-neutral-600"}),h.jsx("button",{onClick:()=>S(v.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-neutral-500 hover:text-neutral-300 px-3 py-1.5",children:"Cancel"}),h.jsx("button",{onClick:j,className:"text-xs font-mono bg-[#fafafa] text-black px-3 py-1.5 rounded hover:bg-white",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-neutral-700",children:"→"}),h.jsx(ji,{label:"Started",value:i.started_at?$e(i.started_at):"—"}),h.jsx("span",{className:"text-neutral-700",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-neutral-700",children:"·"}),h.jsx(ji,{label:"Duration",value:l0(i.started_at,i.completed_at)})]}),i.archived_at&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-neutral-700",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(uu,{children:["Acceptance Criteria"," ",h.jsxs("span",{className:"text-neutral-600",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-neutral-700"}`,children:z.met?"✓":"○"}),h.jsx("span",{className:`text-xs ${z.met?"text-neutral-300":"text-neutral-500"}`,children:z.criterion})]},z.id))})]}),i.description&&h.jsxs("div",{className:"col-span-2",children:[h.jsx(uu,{children:"Description"}),h.jsx("p",{className:"text-sm text-neutral-400 mt-2 leading-relaxed",children:i.description})]})]}),i.actions.length>0&&h.jsxs("div",{children:[h.jsxs(uu,{children:["Actions Timeline (",i.actions.length,")"]}),h.jsx("div",{className:"mt-3 space-y-2",children:i.actions.map(z=>h.jsx(Vb,{action:z},z.id))})]}),i.actions.some(z=>z.files.length>0)&&h.jsxs("div",{children:[h.jsx(uu,{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-[#1f1f1f]",children:["Operation","File Path","Agent","Notes"].map(z=>h.jsx("th",{className:"text-left font-mono text-[10px] text-neutral-600 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-[#1f1f1f]",children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx(i0,{op:X.operation})}),h.jsx("td",{className:"px-3 py-2 font-mono text-xs text-neutral-300",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-neutral-600",children:X.notes??"—"})]},X.id)))})]})]})]})]})}const kb=xb.update({id:"/tools",path:"/tools",getParentRoute:()=>Oa}),Jb=Tb.update({id:"/files",path:"/files",getParentRoute:()=>Oa}),Fb=jb.update({id:"/agents",path:"/agents",getParentRoute:()=>Oa}),Pb=Nb.update({id:"/",path:"/",getParentRoute:()=>Oa}),$b=wb.update({id:"/tasks/",path:"/tasks/",getParentRoute:()=>Oa}),Wb=s0.update({id:"/tasks/$id",path:"/tasks/$id",getParentRoute:()=>Oa}),Ib={IndexRoute:Pb,AgentsRoute:Fb,FilesRoute:Jb,ToolsRoute:kb,TasksIdRoute:Wb,TasksIndexRoute:$b},tS=Oa._addFileChildren(Ib)._addFileTypes(),Tr=new tg({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!0,retry:1}}}),eS=sb({routeTree:tS,context:{queryClient:Tr}}),nS=new WebSocket(`ws://${location.host}/ws`);nS.onmessage=a=>{try{JSON.parse(a.data).type==="update"&&Tr.invalidateQueries()}catch{}};const aS=document.getElementById("root");mb.createRoot(aS).render(h.jsx(J.StrictMode,{children:h.jsx(ag,{client:Tr,children:h.jsx(ob,{router:eS})})}));