@kimuson/claude-code-viewer 0.4.2-beta.2 → 0.4.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,115 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DfIIjCmW.js","assets/formatLocaleDate-Dt6P14B9.js","assets/index-BGPIfxUi.js"])))=>i.map(i=>d[i]);
2
- function rb(a,s){for(var l=0;l<s.length;l++){const o=s[l];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(o,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();var l2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hf(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var bc={exports:{}},tl={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var _p;function ub(){if(_p)return tl;_p=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function l(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var y in c)y!=="key"&&(f[y]=c[y])}else f=c;return c=f.ref,{$$typeof:a,type:o,key:d,ref:c!==void 0?c:null,props:f}}return tl.Fragment=s,tl.jsx=l,tl.jsxs=l,tl}var xp;function cb(){return xp||(xp=1,bc.exports=ub()),bc.exports}var U=cb();const Ji=new WeakMap,ko=new WeakMap,Go={current:[]};let Sc=!1,rl=0;const ol=new Set,Oo=new Map;function wy(a){const s=Array.from(a).sort((l,o)=>l instanceof Ii&&l.options.deps.includes(o)?1:o instanceof Ii&&o.options.deps.includes(l)?-1:0);for(const l of s){if(Go.current.includes(l))continue;Go.current.push(l),l.recompute();const o=ko.get(l);if(o)for(const c of o){const f=Ji.get(c);f&&wy(f)}}}function fb(a){const s={prevVal:a.prevState,currentVal:a.state};for(const l of a.listeners)l(s)}function db(a){const s={prevVal:a.prevState,currentVal:a.state};for(const l of a.listeners)l(s)}function Ry(a){if(rl>0&&!Oo.has(a)&&Oo.set(a,a.prevState),ol.add(a),!(rl>0)&&!Sc)try{for(Sc=!0;ol.size>0;){const s=Array.from(ol);ol.clear();for(const l of s){const o=Oo.get(l)??l.prevState;l.prevState=o,fb(l)}for(const l of s){const o=Ji.get(l);o&&(Go.current.push(l),wy(o))}for(const l of s){const o=Ji.get(l);if(o)for(const c of o)db(c)}}}finally{Sc=!1,Go.current=[],Oo.clear()}}function ul(a){rl++;try{a()}finally{if(rl--,rl===0){const s=ol.values().next().value;s&&Ry(s)}}}function hb(a){return typeof a=="function"}class Qc{constructor(s,l){this.listeners=new Set,this.subscribe=o=>{var c,f;this.listeners.add(o);const d=(f=(c=this.options)==null?void 0:c.onSubscribe)==null?void 0:f.call(c,o,this);return()=>{this.listeners.delete(o),d?.()}},this.prevState=s,this.state=s,this.options=l}setState(s){var l,o,c;this.prevState=this.state,(l=this.options)!=null&&l.updateFn?this.state=this.options.updateFn(this.prevState)(s):hb(s)?this.state=s(this.prevState):this.state=s,(c=(o=this.options)==null?void 0:o.onUpdate)==null||c.call(o),Ry(this)}}class Ii{constructor(s){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const l=this.options.deps.length,o=new Array(l),c=new Array(l);for(let f=0;f<l;f++){const d=this.options.deps[f];o[f]=d.prevState,c[f]=d.state}return this.lastSeenDepValues=c,{prevDepVals:o,currDepVals:c,prevVal:this.prevState??void 0}},this.recompute=()=>{var l,o;this.prevState=this.state;const c=this.getDepVals();this.state=this.options.fn(c),(o=(l=this.options).onUpdate)==null||o.call(l)},this.checkIfRecalculationNeededDeeply=()=>{for(const f of this.options.deps)f instanceof Ii&&f.checkIfRecalculationNeededDeeply();let l=!1;const o=this.lastSeenDepValues,{currDepVals:c}=this.getDepVals();for(let f=0;f<c.length;f++)if(c[f]!==o[f]){l=!0;break}l&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const l of this._subscriptions)l()}),this.subscribe=l=>{var o,c;this.listeners.add(l);const f=(c=(o=this.options).onSubscribe)==null?void 0:c.call(o,l,this);return()=>{this.listeners.delete(l),f?.()}},this.options=s,this.state=s.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(s=this.options.deps){for(const l of s)if(l instanceof Ii)l.registerOnGraph(),this.registerOnGraph(l.options.deps);else if(l instanceof Qc){let o=Ji.get(l);o||(o=new Set,Ji.set(l,o)),o.add(this);let c=ko.get(this);c||(c=new Set,ko.set(this,c)),c.add(l)}}unregisterFromGraph(s=this.options.deps){for(const l of s)if(l instanceof Ii)this.unregisterFromGraph(l.options.deps);else if(l instanceof Qc){const o=Ji.get(l);o&&o.delete(this);const c=ko.get(this);c&&c.delete(l)}}}const Ra="__TSR_index",Ep="popstate",wp="beforeunload";function mb(a){let s=a.getLocation();const l=new Set,o=d=>{s=a.getLocation(),l.forEach(y=>y({location:s,action:d}))},c=d=>{a.notifyOnIndexChange??!0?o(d):s=a.getLocation()},f=async({task:d,navigateOpts:y,...m})=>{if(y?.ignoreBlocker??!1){d();return}const v=a.getBlockers?.()??[],p=m.type==="PUSH"||m.type==="REPLACE";if(typeof document<"u"&&v.length&&p)for(const S of v){const _=Yo(m.path,m.state);if(await S.blockerFn({currentLocation:s,nextLocation:_,action:m.type})){a.onBlocked?.();return}}d()};return{get location(){return s},get length(){return a.getLength()},subscribers:l,subscribe:d=>(l.add(d),()=>{l.delete(d)}),push:(d,y,m)=>{const g=s.state[Ra];y=Rp(g+1,y),f({task:()=>{a.pushState(d,y),o({type:"PUSH"})},navigateOpts:m,type:"PUSH",path:d,state:y})},replace:(d,y,m)=>{const g=s.state[Ra];y=Rp(g,y),f({task:()=>{a.replaceState(d,y),o({type:"REPLACE"})},navigateOpts:m,type:"REPLACE",path:d,state:y})},go:(d,y)=>{f({task:()=>{a.go(d),c({type:"GO",index:d})},navigateOpts:y,type:"GO"})},back:d=>{f({task:()=>{a.back(d?.ignoreBlocker??!1),c({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{f({task:()=>{a.forward(d?.ignoreBlocker??!1),c({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>s.state[Ra]!==0,createHref:d=>a.createHref(d),block:d=>{if(!a.setBlockers)return()=>{};const y=a.getBlockers?.()??[];return a.setBlockers([...y,d]),()=>{const m=a.getBlockers?.()??[];a.setBlockers?.(m.filter(g=>g!==d))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:o}}function Rp(a,s){s||(s={});const l=mf();return{...s,key:l,__TSR_key:l,[Ra]:a}}function pb(a){const s=typeof document<"u"?window:void 0,l=s.history.pushState,o=s.history.replaceState;let c=[];const f=()=>c,d=D=>c=D,y=(D=>D),m=(()=>Yo(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!s.history.state?.__TSR_key&&!s.history.state?.key){const D=mf();s.history.replaceState({[Ra]:0,key:D,__TSR_key:D},"")}let g=m(),v,p=!1,S=!1,_=!1,E=!1;const z=()=>g;let L,H;const F=()=>{L&&(V._ignoreSubscribers=!0,(L.isPush?s.history.pushState:s.history.replaceState)(L.state,"",L.href),V._ignoreSubscribers=!1,L=void 0,H=void 0,v=void 0)},P=(D,W,ot)=>{const dt=y(W);H||(v=g),g=Yo(W,ot),L={href:dt,state:ot,isPush:L?.isPush||D==="push"},H||(H=Promise.resolve().then(()=>F()))},I=D=>{g=m(),V.notify({type:D})},lt=async()=>{if(S){S=!1;return}const D=m(),W=D.state[Ra]-g.state[Ra],ot=W===1,dt=W===-1,ht=!ot&&!dt||p;p=!1;const Lt=ht?"GO":dt?"BACK":"FORWARD",Dt=ht?{type:"GO",index:W}:{type:dt?"BACK":"FORWARD"};if(_)_=!1;else{const Mt=f();if(typeof document<"u"&&Mt.length){for(const C of Mt)if(await C.blockerFn({currentLocation:g,nextLocation:D,action:Lt})){S=!0,s.history.go(1),V.notify(Dt);return}}}g=m(),V.notify(Dt)},$=D=>{if(E){E=!1;return}let W=!1;const ot=f();if(typeof document<"u"&&ot.length)for(const dt of ot){const ht=dt.enableBeforeUnload??!0;if(ht===!0){W=!0;break}if(typeof ht=="function"&&ht()===!0){W=!0;break}}if(W)return D.preventDefault(),D.returnValue=""},V=mb({getLocation:z,getLength:()=>s.history.length,pushState:(D,W)=>P("push",D,W),replaceState:(D,W)=>P("replace",D,W),back:D=>(D&&(_=!0),E=!0,s.history.back()),forward:D=>{D&&(_=!0),E=!0,s.history.forward()},go:D=>{p=!0,s.history.go(D)},createHref:D=>y(D),flush:F,destroy:()=>{s.history.pushState=l,s.history.replaceState=o,s.removeEventListener(wp,$,{capture:!0}),s.removeEventListener(Ep,lt)},onBlocked:()=>{v&&g!==v&&(g=v)},getBlockers:f,setBlockers:d,notifyOnIndexChange:!1});return s.addEventListener(wp,$,{capture:!0}),s.addEventListener(Ep,lt),s.history.pushState=function(...D){const W=l.apply(s.history,D);return V._ignoreSubscribers||I("PUSH"),W},s.history.replaceState=function(...D){const W=o.apply(s.history,D);return V._ignoreSubscribers||I("REPLACE"),W},V}function Yo(a,s){const l=a.indexOf("#"),o=a.indexOf("?"),c=mf();return{href:a,pathname:a.substring(0,l>0?o>0?Math.min(l,o):l:o>0?o:a.length),hash:l>-1?a.substring(l):"",search:o>-1?a.slice(o,l===-1?void 0:l):"",state:s||{[Ra]:0,key:c,__TSR_key:c}}}function mf(){return(Math.random()+1).toString(36).substring(7)}function Vc(a){return a[a.length-1]}function yb(a){return typeof a=="function"}function ei(a,s){return yb(a)?a(s):a}const gb=Object.prototype.hasOwnProperty;function nn(a,s){if(a===s)return a;const l=s,o=Mp(a)&&Mp(l);if(!o&&!(Ko(a)&&Ko(l)))return l;const c=o?a:Tp(a);if(!c)return l;const f=o?l:Tp(l);if(!f)return l;const d=c.length,y=f.length,m=o?new Array(y):{};let g=0;for(let v=0;v<y;v++){const p=o?v:f[v],S=a[p],_=l[p];if(S===_){m[p]=S,(o?v<d:gb.call(a,p))&&g++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){m[p]=_;continue}const E=nn(S,_);m[p]=E,E===S&&g++}return d===y&&g===d?a:m}function Tp(a){const s=[],l=Object.getOwnPropertyNames(a);for(const c of l){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;s.push(c)}const o=Object.getOwnPropertySymbols(a);for(const c of o){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;s.push(c)}return s}function Ko(a){if(!Cp(a))return!1;const s=a.constructor;if(typeof s>"u")return!0;const l=s.prototype;return!(!Cp(l)||!l.hasOwnProperty("isPrototypeOf"))}function Cp(a){return Object.prototype.toString.call(a)==="[object Object]"}function Mp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function ni(a,s,l){if(a===s)return!0;if(typeof a!=typeof s)return!1;if(Array.isArray(a)&&Array.isArray(s)){if(a.length!==s.length)return!1;for(let o=0,c=a.length;o<c;o++)if(!ni(a[o],s[o],l))return!1;return!0}if(Ko(a)&&Ko(s)){const o=l?.ignoreUndefined??!0;if(l?.partial){for(const d in s)if((!o||s[d]!==void 0)&&!ni(a[d],s[d],l))return!1;return!0}let c=0;if(!o)c=Object.keys(a).length;else for(const d in a)a[d]!==void 0&&c++;let f=0;for(const d in s)if((!o||s[d]!==void 0)&&(f++,f>c||!ni(a[d],s[d],l)))return!1;return c===f}return!1}function Wi(a){let s,l;const o=new Promise((c,f)=>{s=c,l=f});return o.status="pending",o.resolve=c=>{o.status="resolved",o.value=c,s(c),a?.(c)},o.reject=c=>{o.status="rejected",l(c)},o}function vb(a){return typeof a?.message!="string"?!1:a.message.startsWith("Failed to fetch dynamically imported module")||a.message.startsWith("error loading dynamically imported module")||a.message.startsWith("Importing a module script failed")}function Ta(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}var bb="Invariant failed";function Kn(a,s){if(!a)throw new Error(bb)}const _n=0,ii=1,ts=2,es=3;function Yn(a){return pf(a.filter(s=>s!==void 0).join("/"))}function pf(a){return a.replace(/\/{2,}/g,"/")}function yf(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function Ca(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function Qo(a){return Ca(yf(a))}function Xo(a,s){return a?.endsWith("/")&&a!=="/"&&a!==`${s}/`?a.slice(0,-1):a}function Sb(a,s,l){return Xo(a,l)===Xo(s,l)}function _b(a){const{type:s,value:l}=a;if(s===_n)return l;const{prefixSegment:o,suffixSegment:c}=a;if(s===ii){const f=l.substring(1);if(o&&c)return`${o}{$${f}}${c}`;if(o)return`${o}{$${f}}`;if(c)return`{$${f}}${c}`}if(s===es){const f=l.substring(1);return o&&c?`${o}{-$${f}}${c}`:o?`${o}{-$${f}}`:c?`{-$${f}}${c}`:`{-$${f}}`}if(s===ts){if(o&&c)return`${o}{$}${c}`;if(o)return`${o}{$}`;if(c)return`{$}${c}`}return l}function xb({base:a,to:s,trailingSlash:l="never",parseCache:o}){let c=ns(a,o).slice();const f=ns(s,o);c.length>1&&Vc(c)?.value==="/"&&c.pop();for(let m=0,g=f.length;m<g;m++){const v=f[m],p=v.value;p==="/"?m?m===g-1&&c.push(v):c=[v]:p===".."?c.pop():p==="."||c.push(v)}c.length>1&&(Vc(c).value==="/"?l==="never"&&c.pop():l==="always"&&c.push({type:_n,value:"/"}));const d=c.map(_b);return Yn(d)}const ns=(a,s)=>{if(!a)return[];const l=s?.get(a);if(l)return l;const o=Mb(a);return s?.set(a,o),o},Eb=/^\$.{1,}$/,wb=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,Rb=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,Tb=/^\$$/,Cb=/^(.*?)\{\$\}(.*)$/;function Mb(a){a=pf(a);const s=[];if(a.slice(0,1)==="/"&&(a=a.substring(1),s.push({type:_n,value:"/"})),!a)return s;const l=a.split("/").filter(Boolean);return s.push(...l.map(o=>{const c=o.match(Cb);if(c){const y=c[1],m=c[2];return{type:ts,value:"$",prefixSegment:y||void 0,suffixSegment:m||void 0}}const f=o.match(Rb);if(f){const y=f[1],m=f[2],g=f[3];return{type:es,value:m,prefixSegment:y||void 0,suffixSegment:g||void 0}}const d=o.match(wb);if(d){const y=d[1],m=d[2],g=d[3];return{type:ii,value:""+m,prefixSegment:y||void 0,suffixSegment:g||void 0}}if(Eb.test(o)){const y=o.substring(1);return{type:ii,value:"$"+y,prefixSegment:void 0,suffixSegment:void 0}}return Tb.test(o)?{type:ts,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:_n,value:o.includes("%25")?o.split("%25").map(y=>decodeURI(y)).join("%25"):decodeURI(o)}})),a.slice(-1)==="/"&&(a=a.substring(1),s.push({type:_n,value:"/"})),s}function zo({path:a,params:s,leaveWildcards:l,leaveParams:o,decodeCharMap:c,parseCache:f}){const d=ns(a,f);function y(p){const S=s[p],_=typeof S=="string";return p==="*"||p==="_splat"?_?encodeURI(S):S:_?Ab(S,c):S}let m=!1;const g={},v=Yn(d.map(p=>{if(p.type===_n)return p.value;if(p.type===ts){g._splat=s._splat,g["*"]=s._splat;const S=p.prefixSegment||"",_=p.suffixSegment||"";if(!s._splat)return m=!0,l?`${S}${p.value}${_}`:S||_?`${S}${_}`:void 0;const E=y("_splat");return l?`${S}${p.value}${E??""}${_}`:`${S}${E}${_}`}if(p.type===ii){const S=p.value.substring(1);!m&&!(S in s)&&(m=!0),g[S]=s[S];const _=p.prefixSegment||"",E=p.suffixSegment||"";if(o){const z=y(p.value);return`${_}${p.value}${z??""}${E}`}return`${_}${y(S)??"undefined"}${E}`}if(p.type===es){const S=p.value.substring(1),_=p.prefixSegment||"",E=p.suffixSegment||"";if(!(S in s)||s[S]==null)return l?`${_}${S}${E}`:_||E?`${_}${E}`:void 0;if(g[S]=s[S],o){const z=y(p.value);return`${_}${p.value}${z??""}${E}`}return l?`${_}${S}${y(S)??""}${E}`:`${_}${y(S)??""}${E}`}return p.value}));return{usedParams:g,interpolatedPath:v,isMissingParams:m}}function Ab(a,s){let l=encodeURIComponent(a);if(s)for(const[o,c]of s)l=l.replaceAll(o,c);return l}function Gc(a,s,l){const o=Ob(a,s,l);if(!(s.to&&!o))return o??{}}function Ob(a,{to:s,fuzzy:l,caseSensitive:o},c){const f=s,d=ns(a.startsWith("/")?a:`/${a}`,c),y=ns(f.startsWith("/")?f:`/${f}`,c),m={};return zb(d,y,m,l,o)?m:void 0}function zb(a,s,l,o,c){let f=0,d=0;for(;f<a.length||d<s.length;){const y=a[f],m=s[d];if(m){if(m.type===ts){const g=a.slice(f);let v;if(m.prefixSegment||m.suffixSegment){if(!y)return!1;const p=m.prefixSegment||"",S=m.suffixSegment||"",_=y.value;if("prefixSegment"in m&&!_.startsWith(p)||"suffixSegment"in m&&!a[a.length-1]?.value.endsWith(S))return!1;let E=decodeURI(Yn(g.map(z=>z.value)));p&&E.startsWith(p)&&(E=E.slice(p.length)),S&&E.endsWith(S)&&(E=E.slice(0,E.length-S.length)),v=E}else v=decodeURI(Yn(g.map(p=>p.value)));return l["*"]=v,l._splat=v,!0}if(m.type===_n){if(m.value==="/"&&!y?.value){d++;continue}if(y){if(c){if(m.value!==y.value)return!1}else if(m.value.toLowerCase()!==y.value.toLowerCase())return!1;f++,d++;continue}else return!1}if(m.type===ii){if(!y||y.value==="/")return!1;let g="",v=!1;if(m.prefixSegment||m.suffixSegment){const p=m.prefixSegment||"",S=m.suffixSegment||"",_=y.value;if(p&&!_.startsWith(p)||S&&!_.endsWith(S))return!1;let E=_;p&&E.startsWith(p)&&(E=E.slice(p.length)),S&&E.endsWith(S)&&(E=E.slice(0,E.length-S.length)),g=decodeURIComponent(E),v=!0}else g=decodeURIComponent(y.value),v=!0;v&&(l[m.value.substring(1)]=g,f++),d++;continue}if(m.type===es){if(!y){d++;continue}if(y.value==="/"){d++;continue}let g="",v=!1;if(m.prefixSegment||m.suffixSegment){const p=m.prefixSegment||"",S=m.suffixSegment||"",_=y.value;if((!p||_.startsWith(p))&&(!S||_.endsWith(S))){let E=_;p&&E.startsWith(p)&&(E=E.slice(p.length)),S&&E.endsWith(S)&&(E=E.slice(0,E.length-S.length)),g=decodeURIComponent(E),v=!0}}else{let p=!0;for(let S=d+1;S<s.length;S++){const _=s[S];if(_?.type===_n&&_.value===y.value){p=!1;break}if(_?.type===ii||_?.type===ts){a.length<s.length&&(p=!1);break}}p&&(g=decodeURIComponent(y.value),v=!0)}v&&(l[m.value.substring(1)]=g,f++),d++;continue}}if(f<a.length&&d>=s.length)return l["**"]=Yn(a.slice(f).map(g=>g.value)),!!o&&s[s.length-1]?.value!=="/";if(d<s.length&&f>=a.length){for(let g=d;g<s.length;g++)if(s[g]?.type!==es)return!1;break}break}return!0}const Db=.75,Lb=1,Nb=.5,jb=.4,Ub=.25,Bb=.2,Hb=.05,qb=.02,kb=.01,Ap=2e-4,Op=1e-4;function zp(a,s){return a.prefixSegment&&a.suffixSegment?s+Hb+Ap*a.prefixSegment.length+Op*a.suffixSegment.length:a.prefixSegment?s+qb+Ap*a.prefixSegment.length:a.suffixSegment?s+kb+Op*a.suffixSegment.length:s}function Qb(a){const s=[];return a.forEach((o,c)=>{if(o.isRoot||!o.path)return;const f=yf(o.fullPath);let d=ns(f),y=0;for(;d.length>y+1&&d[y]?.value==="/";)y++;y>0&&(d=d.slice(y));let m=0,g=!1;const v=d.map((p,S)=>{if(p.value==="/")return Db;if(p.type===_n)return Lb;let _;p.type===ii?_=Nb:p.type===es?(_=jb,m++):_=Ub;for(let E=S+1;E<d.length;E++){const z=d[E];if(z.type===_n&&z.value!=="/")return g=!0,zp(p,_+Bb)}return zp(p,_)});s.push({child:o,trimmed:f,parsed:d,index:c,scores:v,optionalParamCount:m,hasStaticAfter:g})}),s.sort((o,c)=>{const f=Math.min(o.scores.length,c.scores.length);for(let d=0;d<f;d++)if(o.scores[d]!==c.scores[d])return c.scores[d]-o.scores[d];if(o.scores.length!==c.scores.length){if(o.optionalParamCount!==c.optionalParamCount){if(o.hasStaticAfter===c.hasStaticAfter)return o.optionalParamCount-c.optionalParamCount;if(o.hasStaticAfter&&!c.hasStaticAfter)return-1;if(!o.hasStaticAfter&&c.hasStaticAfter)return 1}return c.scores.length-o.scores.length}for(let d=0;d<f;d++)if(o.parsed[d].value!==c.parsed[d].value)return o.parsed[d].value>c.parsed[d].value?1:-1;return o.index-c.index}).map((o,c)=>(o.child.rank=c,o.child))}function Vb({routeTree:a,initRoute:s}){const l={},o={},c=d=>{d.forEach((y,m)=>{s?.(y,m);const g=l[y.id];if(Kn(!g,`Duplicate routes found with id: ${String(y.id)}`),l[y.id]=y,!y.isRoot&&y.path){const p=Ca(y.fullPath);(!o[p]||y.fullPath.endsWith("/"))&&(o[p]=y)}const v=y.children;v?.length&&c(v)})};c([a]);const f=Qb(Object.values(l));return{routesById:l,routesByPath:o,flatRoutes:f}}function cn(a){return!!a?.isNotFound}function Gb(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Zo="tsr-scroll-restoration-v1_3",Yb=(a,s)=>{let l;return(...o)=>{l||(l=setTimeout(()=>{a(...o),l=null},s))}};function Kb(){const a=Gb();if(!a)return null;const s=a.getItem(Zo);let l=s?JSON.parse(s):{};return{state:l,set:o=>(l=ei(o,l)||l,a.setItem(Zo,JSON.stringify(l)))}}const Do=Kb(),Yc=a=>a.state.__TSR_key||a.href;function Xb(a){const s=[];let l;for(;l=a.parentNode;)s.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(l.children,a)+1})`),a=l;return`${s.reverse().join(" > ")}`.toLowerCase()}let Po=!1;function Ty({storageKey:a,key:s,behavior:l,shouldScrollRestoration:o,scrollToTopSelectors:c,location:f}){let d;try{d=JSON.parse(sessionStorage.getItem(a)||"{}")}catch(g){console.error(g);return}const y=s||window.history.state?.__TSR_key,m=d[y];Po=!0;t:{if(o&&m&&Object.keys(m).length>0){for(const p in m){const S=m[p];if(p==="window")window.scrollTo({top:S.scrollY,left:S.scrollX,behavior:l});else if(p){const _=document.querySelector(p);_&&(_.scrollLeft=S.scrollX,_.scrollTop=S.scrollY)}}break t}const g=(f??window.location).hash.split("#",2)[1];if(g){const p=window.history.state?.__hashScrollIntoViewOptions??!0;if(p){const S=document.getElementById(g);S&&S.scrollIntoView(p)}break t}const v={top:0,left:0,behavior:l};if(window.scrollTo(v),c)for(const p of c){if(p==="window")continue;const S=typeof p=="function"?p():document.querySelector(p);S&&S.scrollTo(v)}}Po=!1}function Zb(a,s){if(!Do&&!a.isServer||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isServer||a.isScrollRestorationSetup||!Do))return;a.isScrollRestorationSetup=!0,Po=!1;const o=a.options.getScrollRestorationKey||Yc;window.history.scrollRestoration="manual";const c=f=>{if(Po||!a.isScrollRestoring)return;let d="";if(f.target===document||f.target===window)d="window";else{const m=f.target.getAttribute("data-scroll-restoration-id");m?d=`[data-scroll-restoration-id="${m}"]`:d=Xb(f.target)}const y=o(a.state.location);Do.set(m=>{const g=m[y]||={},v=g[d]||={};if(d==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(d){const p=document.querySelector(d);p&&(v.scrollX=p.scrollLeft||0,v.scrollY=p.scrollTop||0)}return m})};typeof document<"u"&&document.addEventListener("scroll",Yb(c,100),!0),a.subscribe("onRendered",f=>{const d=o(f.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(Ty({storageKey:Zo,key:d,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&Do.set(y=>(y[d]||={},y)))})}function Pb(a){if(typeof document<"u"&&document.querySelector){const s=a.state.location.state.__hashScrollIntoViewOptions??!0;if(s&&a.state.location.hash!==""){const l=document.getElementById(a.state.location.hash);l&&l.scrollIntoView(s)}}}function Fb(a,s=String){const l=new URLSearchParams;for(const o in a){const c=a[o];c!==void 0&&l.set(o,s(c))}return l.toString()}function _c(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function $b(a){const s=new URLSearchParams(a),l={};for(const[o,c]of s.entries()){const f=l[o];f==null?l[o]=_c(c):Array.isArray(f)?f.push(_c(c)):l[o]=[f,_c(c)]}return l}const Jb=Wb(JSON.parse),Ib=tS(JSON.stringify,JSON.parse);function Wb(a){return s=>{s[0]==="?"&&(s=s.substring(1));const l=$b(s);for(const o in l){const c=l[o];if(typeof c=="string")try{l[o]=a(c)}catch{}}return l}}function tS(a,s){const l=typeof s=="function";function o(c){if(typeof c=="object"&&c!==null)try{return a(c)}catch{}else if(l&&typeof c=="string")try{return s(c),a(c)}catch{}return c}return c=>{const f=Fb(c,o);return f?`?${f}`:""}}const Ye="__root__";function eS(a){if(a.statusCode=a.statusCode||a.code||307,!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const s=new Headers(a.headers);a.href&&s.get("Location")===null&&s.set("Location",a.href);const l=new Response(null,{status:a.statusCode,headers:s});if(l.options=a,a.throw)throw l;return l}function Sn(a){return a instanceof Response&&!!a.options}function nS(a){const s=new Map;let l,o;const c=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,o&&(o.next=f,f.prev=o)):(f.next.prev=void 0,l=f.next,f.next=void 0,o&&(f.prev=o,o.next=f)),o=f)};return{get(f){const d=s.get(f);if(d)return c(d),d.value},set(f,d){if(s.size>=a&&l){const m=l;s.delete(m.key),m.next&&(l=m.next,m.next.prev=void 0),m===o&&(o=void 0)}const y=s.get(f);if(y)y.value=d,c(y);else{const m={key:f,value:d,prev:o};o&&(o.next=m),o=m,l||(l=m),s.set(f,m)}}}}const Vo=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},ir=(a,s)=>!!(a.preload&&!a.router.state.matches.some(l=>l.id===s)),Cy=(a,s)=>{const l=a.router.routesById[s.routeId??""]??a.router.routeTree;!l.options.notFoundComponent&&a.router.options?.defaultNotFoundComponent&&(l.options.notFoundComponent=a.router.options.defaultNotFoundComponent),Kn(l.options.notFoundComponent);const o=a.matches.find(c=>c.routeId===l.id);Kn(o,"Could not find match for route: "+l.id),a.updateMatch(o.id,c=>({...c,status:"notFound",error:s,isFetching:!1})),s.routerCode==="BEFORE_LOAD"&&l.parentRoute&&(s.routeId=l.parentRoute.id,Cy(a,s))},Ea=(a,s,l)=>{if(!(!Sn(l)&&!cn(l))){if(Sn(l)&&l.redirectHandled&&!l.options.reloadDocument)throw l;if(s){s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.loaderPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0;const o=Sn(l)?"redirected":"notFound";a.updateMatch(s.id,c=>({...c,status:o,isFetching:!1,error:l})),cn(l)&&!l.routeId&&(l.routeId=s.routeId),s._nonReactive.loadPromise?.resolve()}throw Sn(l)?(a.rendered=!0,l.options._fromLocation=a.location,l.redirectHandled=!0,l=a.router.resolveRedirect(l),l):(Cy(a,l),l)}},My=(a,s)=>{const l=a.router.getMatch(s);return!!(!a.router.isServer&&l._nonReactive.dehydrated||a.router.isServer&&l.ssr===!1)},el=(a,s,l,o)=>{const{id:c,routeId:f}=a.matches[s],d=a.router.looseRoutesById[f];if(l instanceof Promise)throw l;l.routerCode=o,a.firstBadMatchIndex??=s,Ea(a,a.router.getMatch(c),l);try{d.options.onError?.(l)}catch(y){l=y,Ea(a,a.router.getMatch(c),l)}a.updateMatch(c,y=>(y._nonReactive.beforeLoadPromise?.resolve(),y._nonReactive.beforeLoadPromise=void 0,y._nonReactive.loadPromise?.resolve(),{...y,error:l,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},aS=(a,s,l,o)=>{const c=a.router.getMatch(s),f=a.matches[l-1]?.id,d=f?a.router.getMatch(f):void 0;if(a.router.isShell()){c.ssr=s===Ye;return}if(d?.ssr===!1){c.ssr=!1;return}const y=_=>_===!0&&d?.ssr==="data-only"?"data-only":_,m=a.router.options.defaultSsr??!0;if(o.options.ssr===void 0){c.ssr=y(m);return}if(typeof o.options.ssr!="function"){c.ssr=y(o.options.ssr);return}const{search:g,params:v}=c,p={search:Lo(g,c.searchError),params:Lo(v,c.paramsError),location:a.location,matches:a.matches.map(_=>({index:_.index,pathname:_.pathname,fullPath:_.fullPath,staticData:_.staticData,id:_.id,routeId:_.routeId,search:Lo(_.search,_.searchError),params:Lo(_.params,_.paramsError),ssr:_.ssr}))},S=o.options.ssr(p);if(Ta(S))return S.then(_=>{c.ssr=y(_??m)});c.ssr=y(S??m)},Ay=(a,s,l,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const c=l.options.pendingMs??a.router.options.defaultPendingMs;if(!!(a.onReady&&!a.router.isServer&&!ir(a,s)&&(l.options.loader||l.options.beforeLoad||Dy(l))&&typeof c=="number"&&c!==1/0&&(l.options.pendingComponent??a.router.options?.defaultPendingComponent))){const d=setTimeout(()=>{Vo(a)},c);o._nonReactive.pendingTimeout=d}},iS=(a,s,l)=>{const o=a.router.getMatch(s);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Ay(a,s,l,o);const c=()=>{const f=a.router.getMatch(s);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Ea(a,f,f.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(c):c()},sS=(a,s,l,o)=>{const c=a.router.getMatch(s),f=c._nonReactive.loadPromise;c._nonReactive.loadPromise=Wi(()=>{f?.resolve()});const{paramsError:d,searchError:y}=c;d&&el(a,l,d,"PARSE_PARAMS"),y&&el(a,l,y,"VALIDATE_SEARCH"),Ay(a,s,o,c);const m=new AbortController,g=a.matches[l-1]?.id,S={...(g?a.router.getMatch(g):void 0)?.context??a.router.options.context??void 0,...c.__routeContext};let _=!1;const E=()=>{_||(_=!0,a.updateMatch(s,V=>({...V,isFetching:"beforeLoad",fetchCount:V.fetchCount+1,abortController:m,context:S})))},z=()=>{c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,a.updateMatch(s,V=>({...V,isFetching:!1}))};if(!o.options.beforeLoad){ul(()=>{E(),z()});return}c._nonReactive.beforeLoadPromise=Wi();const{search:L,params:H,cause:F}=c,P=ir(a,s),I={search:L,abortController:m,params:H,preload:P,context:S,location:a.location,navigate:V=>a.router.navigate({...V,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:P?"preload":F,matches:a.matches,...a.router.options.additionalContext},lt=V=>{if(V===void 0){ul(()=>{E(),z()});return}(Sn(V)||cn(V))&&(E(),el(a,l,V,"BEFORE_LOAD")),ul(()=>{E(),a.updateMatch(s,D=>({...D,__beforeLoadContext:V,context:{...D.context,...V}})),z()})};let $;try{if($=o.options.beforeLoad(I),Ta($))return E(),$.catch(V=>{el(a,l,V,"BEFORE_LOAD")}).then(lt)}catch(V){E(),el(a,l,V,"BEFORE_LOAD")}lt($)},lS=(a,s)=>{const{id:l,routeId:o}=a.matches[s],c=a.router.looseRoutesById[o],f=()=>{if(a.router.isServer){const m=aS(a,l,s,c);if(Ta(m))return m.then(y)}return y()},d=()=>sS(a,l,s,c),y=()=>{if(My(a,l))return;const m=iS(a,l,c);return Ta(m)?m.then(d):d()};return f()},cl=(a,s,l)=>{const o=a.router.getMatch(s);if(!o||!l.options.head&&!l.options.scripts&&!l.options.headers)return;const c={matches:a.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([l.options.head?.(c),l.options.scripts?.(c),l.options.headers?.(c)]).then(([f,d,y])=>{const m=f?.meta,g=f?.links,v=f?.scripts,p=f?.styles;return{meta:m,links:g,headScripts:v,headers:y,scripts:d,styles:p}})},Oy=(a,s,l,o)=>{const c=a.matchPromises[l-1],{params:f,loaderDeps:d,abortController:y,context:m,cause:g}=a.router.getMatch(s),v=ir(a,s);return{params:f,deps:d,preload:!!v,parentMatchPromise:c,abortController:y,context:m,location:a.location,navigate:p=>a.router.navigate({...p,_fromLocation:a.location}),cause:v?"preload":g,route:o,...a.router.options.additionalContext}},Dp=async(a,s,l,o)=>{try{const c=a.router.getMatch(s);try{(!a.router.isServer||c.ssr===!0)&&zy(o);const f=o.options.loader?.(Oy(a,s,l,o)),d=o.options.loader&&Ta(f);if(!!(d||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||c._nonReactive.minPendingPromise)&&a.updateMatch(s,p=>({...p,isFetching:"loader"})),o.options.loader){const p=d?await f:f;Ea(a,a.router.getMatch(s),p),p!==void 0&&a.updateMatch(s,S=>({...S,loaderData:p}))}o._lazyPromise&&await o._lazyPromise;const m=cl(a,s,o),g=m?await m:void 0,v=c._nonReactive.minPendingPromise;v&&await v,o._componentsPromise&&await o._componentsPromise,a.updateMatch(s,p=>({...p,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...g}))}catch(f){let d=f;const y=c._nonReactive.minPendingPromise;y&&await y,cn(f)&&await o.options.notFoundComponent?.preload?.(),Ea(a,a.router.getMatch(s),f);try{o.options.onError?.(f)}catch(v){d=v,Ea(a,a.router.getMatch(s),v)}const m=cl(a,s,o),g=m?await m:void 0;a.updateMatch(s,v=>({...v,error:d,status:"error",isFetching:!1,...g}))}}catch(c){const f=a.router.getMatch(s);if(f){const d=cl(a,s,o);if(d){const y=await d;a.updateMatch(s,m=>({...m,...y}))}f._nonReactive.loaderPromise=void 0}Ea(a,f,c)}},oS=async(a,s)=>{const{id:l,routeId:o}=a.matches[s];let c=!1,f=!1;const d=a.router.looseRoutesById[o];if(My(a,l)){if(a.router.isServer){const g=cl(a,l,d);if(g){const v=await g;a.updateMatch(l,p=>({...p,...v}))}return a.router.getMatch(l)}}else{const g=a.router.getMatch(l);if(g._nonReactive.loaderPromise){if(g.status==="success"&&!a.sync&&!g.preload)return g;await g._nonReactive.loaderPromise;const v=a.router.getMatch(l);v.error&&Ea(a,v,v.error)}else{const v=Date.now()-g.updatedAt,p=ir(a,l),S=p?d.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??a.router.options.defaultStaleTime??0,_=d.options.shouldReload,E=typeof _=="function"?_(Oy(a,l,s,d)):_,z=!!p&&!a.router.state.matches.some(P=>P.id===l),L=a.router.getMatch(l);L._nonReactive.loaderPromise=Wi(),z!==L.preload&&a.updateMatch(l,P=>({...P,preload:z}));const{status:H,invalid:F}=L;if(c=H==="success"&&(F||(E??v>S)),!(p&&d.options.preload===!1))if(c&&!a.sync)f=!0,(async()=>{try{await Dp(a,l,s,d);const P=a.router.getMatch(l);P._nonReactive.loaderPromise?.resolve(),P._nonReactive.loadPromise?.resolve(),P._nonReactive.loaderPromise=void 0}catch(P){Sn(P)&&await a.router.navigate(P.options)}})();else if(H!=="success"||c&&a.sync)await Dp(a,l,s,d);else{const P=cl(a,l,d);if(P){const I=await P;a.updateMatch(l,lt=>({...lt,...I}))}}}}const y=a.router.getMatch(l);f||(y._nonReactive.loaderPromise?.resolve(),y._nonReactive.loadPromise?.resolve()),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,f||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const m=f?y.isFetching:!1;return m!==y.isFetching||y.invalid!==!1?(a.updateMatch(l,g=>({...g,isFetching:m,invalid:!1})),a.router.getMatch(l)):y};async function Lp(a){const s=Object.assign(a,{matchPromises:[]});!s.router.isServer&&s.router.state.matches.some(l=>l._forcePending)&&Vo(s);try{for(let c=0;c<s.matches.length;c++){const f=lS(s,c);Ta(f)&&await f}const l=s.firstBadMatchIndex??s.matches.length;for(let c=0;c<l;c++)s.matchPromises.push(oS(s,c));await Promise.all(s.matchPromises);const o=Vo(s);Ta(o)&&await o}catch(l){if(cn(l)&&!s.preload){const o=Vo(s);throw Ta(o)&&await o,l}if(Sn(l))throw l}return s.matches}async function zy(a){if(!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(s=>{const{id:l,...o}=s.options;Object.assign(a.options,o),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0),!a._componentsLoaded&&a._componentsPromise===void 0){const s=()=>{const l=[];for(const o of Ly){const c=a.options[o]?.preload;c&&l.push(c())}if(l.length)return Promise.all(l).then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0});a._componentsLoaded=!0,a._componentsPromise=void 0};a._componentsPromise=a._lazyPromise?a._lazyPromise.then(s):s()}return a._componentsPromise}function Lo(a,s){return s?{status:"error",error:s}:{status:"success",value:a}}function Dy(a){for(const s of Ly)if(a.options[s]?.preload)return!0;return!1}const Ly=["component","errorComponent","pendingComponent","notFoundComponent"];function rS(a){return{input:({url:s})=>{for(const l of a)s=Ny(l,s);return s},output:({url:s})=>{for(let l=a.length-1;l>=0;l--)s=jy(a[l],s);return s}}}function uS(a){const s=Qo(a.basepath),l=`/${s}`,o=`${l}/`,c=a.caseSensitive?l:l.toLowerCase(),f=a.caseSensitive?o:o.toLowerCase();return{input:({url:d})=>{const y=a.caseSensitive?d.pathname:d.pathname.toLowerCase();return y===c?d.pathname="/":y.startsWith(f)&&(d.pathname=d.pathname.slice(l.length)),d},output:({url:d})=>(d.pathname=Yn(["/",s,d.pathname]),d)}}function Ny(a,s){const l=a?.input?.({url:s});if(l){if(typeof l=="string")return new URL(l);if(l instanceof URL)return l}return s}function jy(a,s){const l=a?.output?.({url:s});if(l){if(typeof l=="string")return new URL(l);if(l instanceof URL)return l}return s}function ai(a){const s=a.resolvedLocation,l=a.location,o=s?.pathname!==l.pathname,c=s?.href!==l.href,f=s?.hash!==l.hash;return{fromLocation:s,toLocation:l,pathChanged:o,hrefChanged:c,hashChanged:f}}class cS{constructor(s){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.startTransition=l=>l(),this.update=l=>{l.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const o=this.options,c=this.basepath??o?.basepath??"/",f=this.basepath===void 0,d=o?.rewrite;this.options={...o,...l},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(S=>[encodeURIComponent(S),S])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=pb())),this.origin=this.options.origin,this.origin||(!this.isServer&&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,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Qc(dS(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(S=>!["redirected"].includes(S.status))}}}),Zb(this));let y=!1;const m=this.options.basepath??"/",g=this.options.rewrite;if(f||c!==m||d!==g){this.basepath=m;const S=[];Qo(m)!==""&&S.push(uS({basepath:m})),g&&S.push(g),this.rewrite=S.length===0?void 0:S.length===1?S[0]:rS(S),this.history&&this.updateLatestLocation(),y=!0}y&&this.__store&&(this.__store.state={...this.state,location: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{routesById:l,routesByPath:o,flatRoutes:c}=Vb({routeTree:this.routeTree,initRoute:(d,y)=>{d.init({originalIndex:y})}});this.routesById=l,this.routesByPath=o,this.flatRoutes=c;const f=this.options.notFoundRoute;f&&(f.init({originalIndex:99999999999}),this.routesById[f.id]=f)},this.subscribe=(l,o)=>{const c={eventType:l,fn:o};return this.subscribers.add(c),()=>{this.subscribers.delete(c)}},this.emit=l=>{this.subscribers.forEach(o=>{o.eventType===l.type&&o.fn(l)})},this.parseLocation=(l,o)=>{const c=({href:m,state:g})=>{const v=new URL(m,this.origin),p=Ny(this.rewrite,v),S=this.options.parseSearch(p.search),_=this.options.stringifySearch(S);p.search=_;const E=p.href.replace(p.origin,""),{pathname:z,hash:L}=p;return{href:E,publicHref:m,url:p.href,pathname:z,searchStr:_,search:nn(o?.search,S),hash:L.split("#").reverse()[0]??"",state:nn(o?.state,g)}},f=c(l),{__tempLocation:d,__tempKey:y}=f.state;if(d&&(!y||y===this.tempLocationKey)){const m=c(d);return m.state.key=f.state.key,m.state.__TSR_key=f.state.__TSR_key,delete m.state.__tempLocation,{...m,maskedLocation:f}}return f},this.resolvePathWithBase=(l,o)=>xb({base:l,to:pf(o),trailingSlash:this.options.trailingSlash,parseCache:this.parsePathnameCache}),this.matchRoutes=(l,o,c)=>typeof l=="string"?this.matchRoutesInternal({pathname:l,search:o},c):this.matchRoutesInternal(l,o),this.parsePathnameCache=nS(1e3),this.getMatchedRoutes=(l,o)=>hS({pathname:l,routePathname:o,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=l=>{const o=this.getMatch(l);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.state.pendingMatches?.forEach(l=>{this.cancelMatch(l.id)})},this.buildLocation=l=>{const o=(f={})=>{const d=f._fromLocation||this.latestLocation,y=this.matchRoutes(d,{_buildLocation:!0}),m=Vc(y);f.from;const g=f.unsafeRelative==="path"?d.pathname:f.from??m.fullPath,v=this.resolvePathWithBase(g,"."),p=m.search,S={...m.params},_=f.to?this.resolvePathWithBase(v,`${f.to}`):this.resolvePathWithBase(v,"."),E=f.params===!1||f.params===null?{}:(f.params??!0)===!0?S:Object.assign(S,ei(f.params,S)),z=zo({path:_,params:E,parseCache:this.parsePathnameCache}).interpolatedPath,L=this.matchRoutes(z,void 0,{_buildLocation:!0}).map(ot=>this.looseRoutesById[ot.routeId]);if(Object.keys(E).length>0)for(const ot of L){const dt=ot.options.params?.stringify??ot.options.stringifyParams;dt&&Object.assign(E,dt(E))}const H=zo({path:_,params:E,leaveWildcards:!1,leaveParams:l.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let F=p;if(l._includeValidateSearch&&this.options.search?.strict){const ot={};L.forEach(dt=>{if(dt.options.validateSearch)try{Object.assign(ot,Kc(dt.options.validateSearch,{...ot,...F}))}catch{}}),F=ot}F=mS({search:F,dest:f,destRoutes:L,_includeValidateSearch:l._includeValidateSearch}),F=nn(p,F);const P=this.options.stringifySearch(F),I=f.hash===!0?d.hash:f.hash?ei(f.hash,d.hash):void 0,lt=I?`#${I}`:"";let $=f.state===!0?d.state:f.state?ei(f.state,d.state):{};$=nn(d.state,$);const V=`${H}${P}${lt}`,D=new URL(V,this.origin),W=jy(this.rewrite,D);return{publicHref:W.pathname+W.search+W.hash,href:V,url:W.href,pathname:H,search:F,searchStr:P,state:$,hash:I??"",unmaskOnReload:f.unmaskOnReload}},c=(f={},d)=>{const y=o(f);let m=d?o(d):void 0;if(!m){let g={};const v=this.options.routeMasks?.find(p=>{const S=Gc(y.pathname,{to:p.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return S?(g=S,!0):!1});if(v){const{from:p,...S}=v;d={from:l.from,...S,params:g},m=o(d)}}return m&&(y.maskedLocation=m),y};return l.mask?c(l,{from:l.from,...l.mask}):c(l)},this.commitLocation=({viewTransition:l,ignoreBlocker:o,...c})=>{const f=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(v=>{c.state[v]=this.latestLocation.state[v]});const g=ni(c.state,this.latestLocation.state);return m.forEach(v=>{delete c.state[v]}),g},d=Ca(this.latestLocation.href)===Ca(c.href),y=this.commitLocationPromise;if(this.commitLocationPromise=Wi(()=>{y?.resolve()}),d&&f())this.load();else{let{maskedLocation:m,hashScrollIntoView:g,...v}=c;m&&(v={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=l,this.history[c.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:o})}return this.resetNextScroll=c.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:l,resetScroll:o,hashScrollIntoView:c,viewTransition:f,ignoreBlocker:d,href:y,...m}={})=>{if(y){const v=this.history.location.state.__TSR_index,p=Yo(y,{__TSR_index:l?v:v+1});m.to=p.pathname,m.search=this.options.parseSearch(p.search),m.hash=p.hash.slice(1)}const g=this.buildLocation({...m,_includeValidateSearch:!0});return this.commitLocation({...g,viewTransition:f,replace:l,resetScroll:o,hashScrollIntoView:c,ignoreBlocker:d})},this.navigate=({to:l,reloadDocument:o,href:c,...f})=>{if(!o&&c)try{new URL(`${c}`),o=!0}catch{}return o?(c||(c=this.buildLocation({to:l,...f}).url),f.replace?window.location.replace(c):window.location.href=c,Promise.resolve()):this.buildAndCommitLocation({...f,href:c,to:l,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const o=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),c=f=>{try{return encodeURI(decodeURI(f))}catch{return f}};if(Qo(c(this.latestLocation.href))!==Qo(c(o.href))){let f=o.url;throw this.origin&&f.startsWith(this.origin)&&(f=f.replace(this.origin,"")||"/"),eS({href:f})}}const l=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:l,cachedMatches:o.cachedMatches.filter(c=>!l.some(f=>f.id===c.id))}))},this.load=async l=>{let o,c,f;for(f=new Promise(y=>{this.startTransition(async()=>{try{this.beforeLoad();const m=this.latestLocation,g=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...ai({resolvedLocation:g,location:m})}),this.emit({type:"onBeforeLoad",...ai({resolvedLocation:g,location:m})}),await Lp({router:this,sync:l?.sync,matches:this.state.pendingMatches,location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startViewTransition(async()=>{let v,p,S;ul(()=>{this.__store.setState(_=>{const E=_.matches,z=_.pendingMatches||_.matches;return v=E.filter(L=>!z.some(H=>H.id===L.id)),p=z.filter(L=>!E.some(H=>H.id===L.id)),S=E.filter(L=>z.some(H=>H.id===L.id)),{..._,isLoading:!1,loadedAt:Date.now(),matches:z,pendingMatches:void 0,cachedMatches:[..._.cachedMatches,...v.filter(L=>L.status!=="error")]}}),this.clearExpiredCache()}),[[v,"onLeave"],[p,"onEnter"],[S,"onStay"]].forEach(([_,E])=>{_.forEach(z=>{this.looseRoutesById[z.routeId].options[E]?.(z)})})})}})}catch(m){Sn(m)?(o=m,this.isServer||this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):cn(m)&&(c=m),this.__store.setState(g=>({...g,statusCode:o?o.status:c?404:g.matches.some(v=>v.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===f&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),y()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.__store.state.matches.some(y=>y.status==="error")&&(d=500),d!==void 0&&this.__store.setState(y=>({...y,statusCode:d}))},this.startViewTransition=l=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let c;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,d=this.state.resolvedLocation,y=typeof o.types=="function"?o.types(ai({resolvedLocation:d,location:f})):o.types;if(y===!1){l();return}c={update:l,types:y}}else c=l;document.startViewTransition(c)}else l()},this.updateMatch=(l,o)=>{const c=this.state.pendingMatches?.some(f=>f.id===l)?"pendingMatches":this.state.matches.some(f=>f.id===l)?"matches":this.state.cachedMatches.some(f=>f.id===l)?"cachedMatches":"";c&&this.__store.setState(f=>({...f,[c]:f[c]?.map(d=>d.id===l?o(d):d)}))},this.getMatch=l=>{const o=c=>c.id===l;return this.state.cachedMatches.find(o)??this.state.pendingMatches?.find(o)??this.state.matches.find(o)},this.invalidate=l=>{const o=c=>l?.filter?.(c)??!0?{...c,invalid:!0,...l?.forcePending||c.status==="error"?{status:"pending",error:void 0}:void 0}:c;return this.__store.setState(c=>({...c,matches:c.matches.map(o),cachedMatches:c.cachedMatches.map(o),pendingMatches:c.pendingMatches?.map(o)})),this.shouldViewTransition=!1,this.load({sync:l?.sync})},this.resolveRedirect=l=>{if(!l.options.href){const o=this.buildLocation(l.options);let c=o.url;this.origin&&c.startsWith(this.origin)&&(c=c.replace(this.origin,"")||"/"),l.options.href=o.href,l.headers.set("Location",c)}return l.headers.get("Location")||l.headers.set("Location",l.options.href),l},this.clearCache=l=>{const o=l?.filter;o!==void 0?this.__store.setState(c=>({...c,cachedMatches:c.cachedMatches.filter(f=>!o(f))})):this.__store.setState(c=>({...c,cachedMatches:[]}))},this.clearExpiredCache=()=>{const l=o=>{const c=this.looseRoutesById[o.routeId];if(!c.options.loader)return!0;const f=(o.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:Date.now()-o.updatedAt>=f};this.clearCache({filter:l})},this.loadRouteChunk=zy,this.preloadRoute=async l=>{const o=this.buildLocation(l);let c=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:l});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(y=>y.id)),d=new Set([...f,...this.state.cachedMatches.map(y=>y.id)]);ul(()=>{c.forEach(y=>{d.has(y.id)||this.__store.setState(m=>({...m,cachedMatches:[...m.cachedMatches,y]}))})});try{return c=await Lp({router:this,matches:c,location:o,preload:!0,updateMatch:(y,m)=>{f.has(y)?c=c.map(g=>g.id===y?m(g):g):this.updateMatch(y,m)}}),c}catch(y){if(Sn(y))return y.options.reloadDocument?void 0:await this.preloadRoute({...y.options,_fromLocation:o});cn(y)||console.error(y);return}},this.matchRoute=(l,o)=>{const c={...l,to:l.to?this.resolvePathWithBase(l.from||"",l.to):void 0,params:l.params||{},leaveParams:!0},f=this.buildLocation(c);if(o?.pending&&this.state.status!=="pending")return!1;const y=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,m=Gc(y.pathname,{...o,to:f.pathname},this.parsePathnameCache);return!m||l.params&&!ni(m,l.params,{partial:!0})?!1:m&&(o?.includeSearch??!0)?ni(y.search,f.search,{partial:!0})?m:!1:m},this.hasNotFoundMatch=()=>this.__store.state.matches.some(l=>l.status==="notFound"||l.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...s,caseSensitive:s.caseSensitive??!1,notFoundMode:s.notFoundMode??"fuzzy",stringifySearch:s.stringifySearch??Ib,parseSearch:s.parseSearch??Jb}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(s,l){const{foundRoute:o,matchedRoutes:c,routeParams:f}=this.getMatchedRoutes(s.pathname,l?.dest?.to);let d=!1;(o?o.path!=="/"&&f["**"]:Ca(s.pathname))&&(this.options.notFoundRoute?c.push(this.options.notFoundRoute):d=!0);const y=(()=>{if(d){if(this.options.notFoundMode!=="root")for(let v=c.length-1;v>=0;v--){const p=c[v];if(p.children)return p.id}return Ye}})(),m=[],g=v=>v?.id?v.context??this.options.context??void 0:this.options.context??void 0;return c.forEach((v,p)=>{const S=m[p-1],[_,E,z]=(()=>{const ht=S?.search??s.search,Lt=S?._strictSearch??void 0;try{const Dt=Kc(v.options.validateSearch,{...ht})??void 0;return[{...ht,...Dt},{...Lt,...Dt},void 0]}catch(Dt){let Mt=Dt;if(Dt instanceof Fo||(Mt=new Fo(Dt.message,{cause:Dt})),l?.throwOnError)throw Mt;return[ht,{},Mt]}})(),L=v.options.loaderDeps?.({search:_})??"",H=L?JSON.stringify(L):"",{interpolatedPath:F,usedParams:P}=zo({path:v.fullPath,params:f,decodeCharMap:this.pathParamsDecodeCharMap}),I=zo({path:v.id,params:f,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+H,lt=this.getMatch(I),$=this.state.matches.find(ht=>ht.routeId===v.id),V=lt?._strictParams??P;let D;if(!lt){const ht=v.options.params?.parse??v.options.parseParams;if(ht)try{Object.assign(V,ht(V))}catch(Lt){if(D=new fS(Lt.message,{cause:Lt}),l?.throwOnError)throw D}}Object.assign(f,V);const W=$?"stay":"enter";let ot;if(lt)ot={...lt,cause:W,params:$?nn($.params,f):f,_strictParams:V,search:nn($?$.search:lt.search,_),_strictSearch:E};else{const ht=v.options.loader||v.options.beforeLoad||v.lazyFn||Dy(v)?"pending":"success";ot={id:I,index:p,routeId:v.id,params:$?nn($.params,f):f,_strictParams:V,pathname:F,updatedAt:Date.now(),search:$?nn($.search,_):_,_strictSearch:E,searchError:void 0,status:ht,isFetching:!1,error:void 0,paramsError:D,__routeContext:void 0,_nonReactive:{loadPromise:Wi()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:W,loaderDeps:$?nn($.loaderDeps,L):L,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}l?.preload||(ot.globalNotFound=y===v.id),ot.searchError=z;const dt=g(S);ot.context={...dt,...ot.__routeContext,...ot.__beforeLoadContext},m.push(ot)}),m.forEach((v,p)=>{const S=this.looseRoutesById[v.routeId];if(!this.getMatch(v.id)&&l?._buildLocation!==!0){const E=m[p-1],z=g(E);if(S.options.context){const L={deps:v.loaderDeps,params:v.params,context:z??{},location:s,navigate:H=>this.navigate({...H,_fromLocation:s}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:m};v.__routeContext=S.options.context(L)??void 0}v.context={...z,...v.__routeContext,...v.__beforeLoadContext}}}),m}}class Fo extends Error{}class fS extends Error{}function dS(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Kc(a,s){if(a==null)return{};if("~standard"in a){const l=a["~standard"].validate(s);if(l instanceof Promise)throw new Fo("Async validation not supported");if(l.issues)throw new Fo(JSON.stringify(l.issues,void 0,2),{cause:l});return l.value}return"parse"in a?a.parse(s):typeof a=="function"?a(s):{}}function hS({pathname:a,routePathname:s,caseSensitive:l,routesByPath:o,routesById:c,flatRoutes:f,parseCache:d}){let y={};const m=Ca(a),g=_=>Gc(m,{to:_.fullPath,caseSensitive:_.options?.caseSensitive??l,fuzzy:!0},d);let v=s!==void 0?o[s]:void 0;if(v)y=g(v);else{let _;for(const E of f){const z=g(E);if(z)if(E.path!=="/"&&z["**"])_||(_={foundRoute:E,routeParams:z});else{v=E,y=z;break}}!v&&_&&(v=_.foundRoute,y=_.routeParams)}let p=v||c[Ye];const S=[p];for(;p.parentRoute;)p=p.parentRoute,S.push(p);return S.reverse(),{matchedRoutes:S,routeParams:y,foundRoute:v}}function mS({search:a,dest:s,destRoutes:l,_includeValidateSearch:o}){const c=l.reduce((y,m)=>{const g=[];if("search"in m.options)m.options.search?.middlewares&&g.push(...m.options.search.middlewares);else if(m.options.preSearchFilters||m.options.postSearchFilters){const v=({search:p,next:S})=>{let _=p;"preSearchFilters"in m.options&&m.options.preSearchFilters&&(_=m.options.preSearchFilters.reduce((z,L)=>L(z),p));const E=S(_);return"postSearchFilters"in m.options&&m.options.postSearchFilters?m.options.postSearchFilters.reduce((z,L)=>L(z),E):E};g.push(v)}if(o&&m.options.validateSearch){const v=({search:p,next:S})=>{const _=S(p);try{return{..._,...Kc(m.options.validateSearch,_)??void 0}}catch{return _}};g.push(v)}return y.concat(g)},[])??[],f=({search:y})=>s.search?s.search===!0?y:ei(s.search,y):{};c.push(f);const d=(y,m)=>{if(y>=c.length)return m;const g=c[y];return g({search:m,next:p=>d(y+1,p)})};return d(0,a)}const pS="Error preloading route! ☝️";class Uy{constructor(s){if(this.init=l=>{this.originalIndex=l.originalIndex;const o=this.options,c=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),c?this._path=Ye:this.parentRoute||Kn(!1);let f=c?Ye:o?.path;f&&f!=="/"&&(f=yf(f));const d=o?.id||f;let y=c?Ye:Yn([this.parentRoute.id===Ye?"":this.parentRoute.id,d]);f===Ye&&(f="/"),y!==Ye&&(y=Yn(["/",y]));const m=y===Ye?"/":Yn([this.parentRoute.fullPath,f]);this._path=f,this._id=y,this._fullPath=m,this._to=m},this.clone=l=>{this._path=l._path,this._id=l._id,this._fullPath=l._fullPath,this._to=l._to,this.options.getParentRoute=l.options.getParentRoute,this.children=l.children},this.addChildren=l=>this._addFileChildren(l),this._addFileChildren=l=>(Array.isArray(l)&&(this.children=l),typeof l=="object"&&l!==null&&(this.children=Object.values(l)),this),this._addFileTypes=()=>this,this.updateLoader=l=>(Object.assign(this.options,l),this),this.update=l=>(Object.assign(this.options,l),this),this.lazy=l=>(this.lazyFn=l,this),this.options=s||{},this.isRoot=!s?.getParentRoute,s?.id&&s?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class yS extends Uy{constructor(s){super(s)}}var xc={exports:{}},mt={};/**
11
- * @license React
12
- * react.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var Np;function gS(){if(Np)return mt;Np=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),S=Symbol.iterator;function _(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,L={};function H(w,q,B){this.props=w,this.context=q,this.refs=L,this.updater=B||E}H.prototype.isReactComponent={},H.prototype.setState=function(w,q){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,q,"setState")},H.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function F(){}F.prototype=H.prototype;function P(w,q,B){this.props=w,this.context=q,this.refs=L,this.updater=B||E}var I=P.prototype=new F;I.constructor=P,z(I,H.prototype),I.isPureReactComponent=!0;var lt=Array.isArray;function $(){}var V={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function W(w,q,B){var Z=B.ref;return{$$typeof:a,type:w,key:q,ref:Z!==void 0?Z:null,props:B}}function ot(w,q){return W(w.type,q,w.props)}function dt(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function ht(w){var q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(B){return q[B]})}var Lt=/\/+/g;function Dt(w,q){return typeof w=="object"&&w!==null&&w.key!=null?ht(""+w.key):q.toString(36)}function Mt(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then($,$):(w.status="pending",w.then(function(q){w.status==="pending"&&(w.status="fulfilled",w.value=q)},function(q){w.status==="pending"&&(w.status="rejected",w.reason=q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function C(w,q,B,Z,J){var at=typeof w;(at==="undefined"||at==="boolean")&&(w=null);var it=!1;if(w===null)it=!0;else switch(at){case"bigint":case"string":case"number":it=!0;break;case"object":switch(w.$$typeof){case a:case s:it=!0;break;case v:return it=w._init,C(it(w._payload),q,B,Z,J)}}if(it)return J=J(w),it=Z===""?"."+Dt(w,0):Z,lt(J)?(B="",it!=null&&(B=it.replace(Lt,"$&/")+"/"),C(J,q,B,"",function(te){return te})):J!=null&&(dt(J)&&(J=ot(J,B+(J.key==null||w&&w.key===J.key?"":(""+J.key).replace(Lt,"$&/")+"/")+it)),q.push(J)),1;it=0;var ct=Z===""?".":Z+":";if(lt(w))for(var bt=0;bt<w.length;bt++)Z=w[bt],at=ct+Dt(Z,bt),it+=C(Z,q,B,at,J);else if(bt=_(w),typeof bt=="function")for(w=bt.call(w),bt=0;!(Z=w.next()).done;)Z=Z.value,at=ct+Dt(Z,bt++),it+=C(Z,q,B,at,J);else if(at==="object"){if(typeof w.then=="function")return C(Mt(w),q,B,Z,J);throw q=String(w),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return it}function X(w,q,B){if(w==null)return w;var Z=[],J=0;return C(w,Z,"","",function(at){return q.call(B,at,J++)}),Z}function Y(w){if(w._status===-1){var q=w._result;q=q(),q.then(function(B){(w._status===0||w._status===-1)&&(w._status=1,w._result=B)},function(B){(w._status===0||w._status===-1)&&(w._status=2,w._result=B)}),w._status===-1&&(w._status=0,w._result=q)}if(w._status===1)return w._result.default;throw w._result}var vt=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},pt={map:X,forEach:function(w,q,B){X(w,function(){q.apply(this,arguments)},B)},count:function(w){var q=0;return X(w,function(){q++}),q},toArray:function(w){return X(w,function(q){return q})||[]},only:function(w){if(!dt(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return mt.Activity=p,mt.Children=pt,mt.Component=H,mt.Fragment=l,mt.Profiler=c,mt.PureComponent=P,mt.StrictMode=o,mt.Suspense=m,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,mt.__COMPILER_RUNTIME={__proto__:null,c:function(w){return V.H.useMemoCache(w)}},mt.cache=function(w){return function(){return w.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(w,q,B){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var Z=z({},w.props),J=w.key;if(q!=null)for(at in q.key!==void 0&&(J=""+q.key),q)!D.call(q,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&q.ref===void 0||(Z[at]=q[at]);var at=arguments.length-2;if(at===1)Z.children=B;else if(1<at){for(var it=Array(at),ct=0;ct<at;ct++)it[ct]=arguments[ct+2];Z.children=it}return W(w.type,J,Z)},mt.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},mt.createElement=function(w,q,B){var Z,J={},at=null;if(q!=null)for(Z in q.key!==void 0&&(at=""+q.key),q)D.call(q,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(J[Z]=q[Z]);var it=arguments.length-2;if(it===1)J.children=B;else if(1<it){for(var ct=Array(it),bt=0;bt<it;bt++)ct[bt]=arguments[bt+2];J.children=ct}if(w&&w.defaultProps)for(Z in it=w.defaultProps,it)J[Z]===void 0&&(J[Z]=it[Z]);return W(w,at,J)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(w){return{$$typeof:y,render:w}},mt.isValidElement=dt,mt.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:Y}},mt.memo=function(w,q){return{$$typeof:g,type:w,compare:q===void 0?null:q}},mt.startTransition=function(w){var q=V.T,B={};V.T=B;try{var Z=w(),J=V.S;J!==null&&J(B,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then($,vt)}catch(at){vt(at)}finally{q!==null&&B.types!==null&&(q.types=B.types),V.T=q}},mt.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},mt.use=function(w){return V.H.use(w)},mt.useActionState=function(w,q,B){return V.H.useActionState(w,q,B)},mt.useCallback=function(w,q){return V.H.useCallback(w,q)},mt.useContext=function(w){return V.H.useContext(w)},mt.useDebugValue=function(){},mt.useDeferredValue=function(w,q){return V.H.useDeferredValue(w,q)},mt.useEffect=function(w,q){return V.H.useEffect(w,q)},mt.useEffectEvent=function(w){return V.H.useEffectEvent(w)},mt.useId=function(){return V.H.useId()},mt.useImperativeHandle=function(w,q,B){return V.H.useImperativeHandle(w,q,B)},mt.useInsertionEffect=function(w,q){return V.H.useInsertionEffect(w,q)},mt.useLayoutEffect=function(w,q){return V.H.useLayoutEffect(w,q)},mt.useMemo=function(w,q){return V.H.useMemo(w,q)},mt.useOptimistic=function(w,q){return V.H.useOptimistic(w,q)},mt.useReducer=function(w,q,B){return V.H.useReducer(w,q,B)},mt.useRef=function(w){return V.H.useRef(w)},mt.useState=function(w){return V.H.useState(w)},mt.useSyncExternalStore=function(w,q,B){return V.H.useSyncExternalStore(w,q,B)},mt.useTransition=function(){return V.H.useTransition()},mt.version="19.2.0",mt}var jp;function dl(){return jp||(jp=1,xc.exports=gS()),xc.exports}var K=dl();const G=hf(K),o2=rb({__proto__:null,default:G},[K]);function gf(a){const s=a.errorComponent??sr;return U.jsx(vS,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:l,reset:o})=>l?K.createElement(s,{error:l,reset:o}):a.children})}class vS extends K.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(s){return{resetKey:s.getResetKey()}}static getDerivedStateFromError(s){return{error:s}}reset(){this.setState({error:null})}componentDidUpdate(s,l){l.error&&l.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(s,l){this.props.onCatch&&this.props.onCatch(s,l)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function sr({error:a}){const[s,l]=K.useState(!1);return U.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[U.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),U.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>l(o=>!o),children:s?"Hide Error":"Show Error"})]}),U.jsx("div",{style:{height:".25rem"}}),s?U.jsx("div",{children:U.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?U.jsx("code",{children:a.message}):null})}):null]})}function bS({children:a,fallback:s=null}){return SS()?U.jsx(G.Fragment,{children:a}):U.jsx(G.Fragment,{children:s})}function SS(){return G.useSyncExternalStore(_S,()=>!0,()=>!1)}function _S(){return()=>{}}var Ec={exports:{}},wc={},Rc={exports:{}},Tc={};/**
19
- * @license React
20
- * use-sync-external-store-shim.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var Up;function xS(){if(Up)return Tc;Up=1;var a=dl();function s(p,S){return p===S&&(p!==0||1/p===1/S)||p!==p&&S!==S}var l=typeof Object.is=="function"?Object.is:s,o=a.useState,c=a.useEffect,f=a.useLayoutEffect,d=a.useDebugValue;function y(p,S){var _=S(),E=o({inst:{value:_,getSnapshot:S}}),z=E[0].inst,L=E[1];return f(function(){z.value=_,z.getSnapshot=S,m(z)&&L({inst:z})},[p,_,S]),c(function(){return m(z)&&L({inst:z}),p(function(){m(z)&&L({inst:z})})},[p]),d(_),_}function m(p){var S=p.getSnapshot;p=p.value;try{var _=S();return!l(p,_)}catch{return!0}}function g(p,S){return S()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:y;return Tc.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:v,Tc}var Bp;function ES(){return Bp||(Bp=1,Rc.exports=xS()),Rc.exports}/**
27
- * @license React
28
- * use-sync-external-store-shim/with-selector.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var Hp;function wS(){if(Hp)return wc;Hp=1;var a=dl(),s=ES();function l(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var o=typeof Object.is=="function"?Object.is:l,c=s.useSyncExternalStore,f=a.useRef,d=a.useEffect,y=a.useMemo,m=a.useDebugValue;return wc.useSyncExternalStoreWithSelector=function(g,v,p,S,_){var E=f(null);if(E.current===null){var z={hasValue:!1,value:null};E.current=z}else z=E.current;E=y(function(){function H($){if(!F){if(F=!0,P=$,$=S($),_!==void 0&&z.hasValue){var V=z.value;if(_(V,$))return I=V}return I=$}if(V=I,o(P,$))return V;var D=S($);return _!==void 0&&_(V,D)?(P=$,V):(P=$,I=D)}var F=!1,P,I,lt=p===void 0?null:p;return[function(){return H(v())},lt===null?void 0:function(){return H(lt())}]},[v,p,S,_]);var L=c(g,E[0],E[1]);return d(function(){z.hasValue=!0,z.value=L},[L]),m(L),L},wc}var qp;function RS(){return qp||(qp=1,Ec.exports=wS()),Ec.exports}var TS=RS();function CS(a,s=l=>l){return TS.useSyncExternalStoreWithSelector(a.subscribe,()=>a.state,()=>a.state,s,MS)}function MS(a,s){if(Object.is(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;if(a instanceof Map&&s instanceof Map){if(a.size!==s.size)return!1;for(const[o,c]of a)if(!s.has(o)||!Object.is(c,s.get(o)))return!1;return!0}if(a instanceof Set&&s instanceof Set){if(a.size!==s.size)return!1;for(const o of a)if(!s.has(o))return!1;return!0}if(a instanceof Date&&s instanceof Date)return a.getTime()===s.getTime();const l=kp(a);if(l.length!==kp(s).length)return!1;for(let o=0;o<l.length;o++)if(!Object.prototype.hasOwnProperty.call(s,l[o])||!Object.is(a[l[o]],s[l[o]]))return!1;return!0}function kp(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}const Cc=K.createContext(null);function By(){return typeof document>"u"?Cc:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Cc,Cc)}function Ke(a){const s=K.useContext(By());return a?.warn,s}function je(a){const s=Ke({warn:a?.router===void 0}),l=a?.router||s,o=K.useRef(void 0);return CS(l.__store,c=>{if(a?.select){if(a.structuralSharing??l.options.defaultStructuralSharing){const f=nn(o.current,a.select(c));return o.current=f,f}return a.select(c)}return c})}const lr=K.createContext(void 0),AS=K.createContext(void 0);function xn(a){const s=K.useContext(a.from?AS:lr);return je({select:o=>{const c=o.matches.find(f=>a.from?a.from===f.routeId:f.id===s);if(Kn(!((a.shouldThrow??!0)&&!c),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),c!==void 0)return a.select?a.select(c):c},structuralSharing:a.structuralSharing})}function vf(a){return xn({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:s=>a.select?a.select(s.loaderData):s.loaderData})}function bf(a){const{select:s,...l}=a;return xn({...l,select:o=>s?s(o.loaderDeps):o.loaderDeps})}function Sf(a){return xn({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:s=>{const l=a.strict===!1?s.params:s._strictParams;return a.select?a.select(l):l}})}function _f(a){return xn({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:s=>a.select?a.select(s.search):s.search})}function xf(a){const s=Ke();return K.useCallback(l=>s.navigate({...l,from:l.from??a?.from}),[a?.from,s])}var Mc={exports:{}},ge={};/**
35
- * @license React
36
- * react-dom.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var Qp;function OS(){if(Qp)return ge;Qp=1;var a=dl();function s(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(s(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(m,g,v){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:p==null?null:""+p,children:m,containerInfo:g,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ge.createPortal=function(m,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return f(m,g,null,v)},ge.flushSync=function(m){var g=d.T,v=o.p;try{if(d.T=null,o.p=2,m)return m()}finally{d.T=g,o.p=v,o.d.f()}},ge.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(m,g))},ge.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},ge.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var v=g.as,p=y(v,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,_=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?o.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:p,integrity:S,fetchPriority:_}):v==="script"&&o.d.X(m,{crossOrigin:p,integrity:S,fetchPriority:_,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ge.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=y(g.as,g.crossOrigin);o.d.M(m,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(m)},ge.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,p=y(v,g.crossOrigin);o.d.L(m,v,{crossOrigin:p,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ge.preloadModule=function(m,g){if(typeof m=="string")if(g){var v=y(g.as,g.crossOrigin);o.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(m)},ge.requestFormReset=function(m){o.d.r(m)},ge.unstable_batchedUpdates=function(m,g){return m(g)},ge.useFormState=function(m,g,v){return d.H.useFormState(m,g,v)},ge.useFormStatus=function(){return d.H.useHostTransitionStatus()},ge.version="19.2.0",ge}var Vp;function Hy(){if(Vp)return Mc.exports;Vp=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(s){console.error(s)}}return a(),Mc.exports=OS(),Mc.exports}var qy=Hy();const zS=hf(qy),No=typeof window<"u"?K.useLayoutEffect:K.useEffect;function Ac(a){const s=K.useRef({value:a,prev:null}),l=s.current.value;return a!==l&&(s.current={value:a,prev:l}),s.current.prev}function DS(a,s,l={},o={}){K.useEffect(()=>{if(!a.current||o.disabled||typeof IntersectionObserver!="function")return;const c=new IntersectionObserver(([f])=>{s(f)},l);return c.observe(a.current),()=>{c.disconnect()}},[s,l,o.disabled,a])}function LS(a){const s=K.useRef(null);return K.useImperativeHandle(a,()=>s.current,[]),s}function NS(a,s){const l=Ke(),[o,c]=K.useState(!1),f=K.useRef(!1),d=LS(s),{activeProps:y,inactiveProps:m,activeOptions:g,to:v,preload:p,preloadDelay:S,hashScrollIntoView:_,replace:E,startTransition:z,resetScroll:L,viewTransition:H,children:F,target:P,disabled:I,style:lt,className:$,onClick:V,onFocus:D,onMouseEnter:W,onMouseLeave:ot,onTouchStart:dt,ignoreBlocker:ht,params:Lt,search:Dt,hash:Mt,state:C,mask:X,reloadDocument:Y,unsafeRelative:vt,from:pt,_fromLocation:w,...q}=a,B=je({select:Rt=>Rt.location.search,structuralSharing:!0}),Z=a.from,J=K.useMemo(()=>({...a,from:Z}),[l,B,Z,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),at=K.useMemo(()=>l.buildLocation({...J}),[l,J]),it=K.useMemo(()=>{if(I)return;let Rt=at.maskedLocation?at.maskedLocation.url:at.url,Ct=!1;return l.origin&&(Rt.startsWith(l.origin)?Rt=l.history.createHref(Rt.replace(l.origin,""))||"/":Ct=!0),{href:Rt,external:Ct}},[I,at.maskedLocation,at.url,l.origin,l.history]),ct=K.useMemo(()=>{if(it?.external)return it.href;try{return new URL(v),v}catch{}},[v,it]),bt=a.reloadDocument||ct?!1:p??l.options.defaultPreload,te=S??l.options.defaultPreloadDelay??0,ue=je({select:Rt=>{if(ct)return!1;if(g?.exact){if(!Sb(Rt.location.pathname,at.pathname,l.basepath))return!1}else{const Ct=Xo(Rt.location.pathname,l.basepath),Se=Xo(at.pathname,l.basepath);if(!(Ct.startsWith(Se)&&(Ct.length===Se.length||Ct[Se.length]==="/")))return!1}return(g?.includeSearch??!0)&&!ni(Rt.location.search,at.search,{partial:!g?.exact,ignoreUndefined:!g?.explicitUndefined})?!1:g?.includeHash?Rt.location.hash===at.hash:!0}}),Yt=K.useCallback(()=>{l.preloadRoute({...J}).catch(Rt=>{console.warn(Rt),console.warn(pS)})},[l,J]),oi=K.useCallback(Rt=>{Rt?.isIntersecting&&Yt()},[Yt]);DS(d,oi,qS,{disabled:!!I||bt!=="viewport"}),K.useEffect(()=>{f.current||!I&&bt==="render"&&(Yt(),f.current=!0)},[I,Yt,bt]);const Ue=Rt=>{const Ct=Rt.currentTarget.getAttribute("target"),Se=P!==void 0?P:Ct;if(!I&&!kS(Rt)&&!Rt.defaultPrevented&&(!Se||Se==="_self")&&Rt.button===0){Rt.preventDefault(),qy.flushSync(()=>{c(!0)});const dn=l.subscribe("onResolved",()=>{dn(),c(!1)});l.navigate({...J,replace:E,resetScroll:L,hashScrollIntoView:_,startTransition:z,viewTransition:H,ignoreBlocker:ht})}};if(ct)return{...q,ref:d,href:ct,...F&&{children:F},...P&&{target:P},...I&&{disabled:I},...lt&&{style:lt},...$&&{className:$},...V&&{onClick:V},...D&&{onFocus:D},...W&&{onMouseEnter:W},...ot&&{onMouseLeave:ot},...dt&&{onTouchStart:dt}};const Zn=Rt=>{I||bt&&Yt()},Pn=Zn,En=Rt=>{if(!(I||!bt))if(!te)Yt();else{const Ct=Rt.target;if(nl.has(Ct))return;const Se=setTimeout(()=>{nl.delete(Ct),Yt()},te);nl.set(Ct,Se)}},Oa=Rt=>{if(I||!bt||!te)return;const Ct=Rt.target,Se=nl.get(Ct);Se&&(clearTimeout(Se),nl.delete(Ct))},ie=ue?ei(y,{})??jS:Oc,fn=ue?Oc:ei(m,{})??Oc,Fn=[$,ie.className,fn.className].filter(Boolean).join(" "),se=(lt||ie.style||fn.style)&&{...lt,...ie.style,...fn.style};return{...q,...ie,...fn,href:it?.href,ref:d,onClick:al([V,Ue]),onFocus:al([D,Zn]),onMouseEnter:al([W,En]),onMouseLeave:al([ot,Oa]),onTouchStart:al([dt,Pn]),disabled:!!I,target:P,...se&&{style:se},...Fn&&{className:Fn},...I&&US,...ue&&BS,...o&&HS}}const Oc={},jS={className:"active"},US={role:"link","aria-disabled":!0},BS={"data-status":"active","aria-current":"page"},HS={"data-transitioning":"transitioning"},nl=new WeakMap,qS={rootMargin:"100px"},al=a=>s=>{for(const l of a)if(l){if(s.defaultPrevented)return;l(s)}},ky=K.forwardRef((a,s)=>{const{_asChild:l,...o}=a,{type:c,ref:f,...d}=NS(o,s),y=typeof o.children=="function"?o.children({isActive:d["data-status"]==="active"}):o.children;return l===void 0&&delete d.disabled,K.createElement(l||"a",{...d,ref:f},y)});function kS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}let QS=class extends Uy{constructor(s){super(s),this.useMatch=l=>xn({select:l?.select,from:this.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>xn({...l,from:this.id,select:o=>l?.select?l.select(o.context):o.context}),this.useSearch=l=>_f({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useParams=l=>Sf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useLoaderDeps=l=>bf({...l,from:this.id}),this.useLoaderData=l=>vf({...l,from:this.id}),this.useNavigate=()=>xf({from:this.fullPath}),this.Link=G.forwardRef((l,o)=>U.jsx(ky,{ref:o,from:this.fullPath,...l})),this.$$typeof=Symbol.for("react.memo")}};function VS(a){return new QS(a)}class GS extends yS{constructor(s){super(s),this.useMatch=l=>xn({select:l?.select,from:this.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>xn({...l,from:this.id,select:o=>l?.select?l.select(o.context):o.context}),this.useSearch=l=>_f({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useParams=l=>Sf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useLoaderDeps=l=>bf({...l,from:this.id}),this.useLoaderData=l=>vf({...l,from:this.id}),this.useNavigate=()=>xf({from:this.fullPath}),this.Link=G.forwardRef((l,o)=>U.jsx(ky,{ref:o,from:this.fullPath,...l})),this.$$typeof=Symbol.for("react.memo")}}function YS(a){return new GS(a)}function as(a){return typeof a=="object"?new Gp(a,{silent:!0}).createRoute(a):new Gp(a,{silent:!0}).createRoute}class Gp{constructor(s,l){this.path=s,this.createRoute=o=>{this.silent;const c=VS(o);return c.isRoot=!1,c},this.silent=l?.silent}}class Yp{constructor(s){this.useMatch=l=>xn({select:l?.select,from:this.options.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>xn({from:this.options.id,select:o=>l?.select?l.select(o.context):o.context}),this.useSearch=l=>_f({select:l?.select,structuralSharing:l?.structuralSharing,from:this.options.id}),this.useParams=l=>Sf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.options.id}),this.useLoaderDeps=l=>bf({...l,from:this.options.id}),this.useLoaderData=l=>vf({...l,from:this.options.id}),this.useNavigate=()=>{const l=Ke();return xf({from:l.routesById[this.options.id].fullPath})},this.options=s,this.$$typeof=Symbol.for("react.memo")}}function Kp(a){return typeof a=="object"?new Yp(a):s=>new Yp({id:a,...s})}function is(a,s){let l,o,c,f;const d=()=>(l||(l=a().then(m=>{l=void 0,o=m[s??"default"]}).catch(m=>{if(c=m,vb(c)&&c instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const g=`tanstack_router_reload:${c.message}`;sessionStorage.getItem(g)||(sessionStorage.setItem(g,"1"),f=!0)}})),l),y=function(g){if(f)throw window.location.reload(),new Promise(()=>{});if(c)throw c;if(!o)throw d();return K.createElement(o,g)};return y.preload=d,y}function KS(){const a=Ke(),s=K.useRef({router:a,mounted:!1}),[l,o]=K.useState(!1),{hasPendingMatches:c,isLoading:f}=je({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),d=Ac(f),y=f||l||c,m=Ac(y),g=f||c,v=Ac(g);return a.startTransition=p=>{o(!0),K.startTransition(()=>{p(),o(!1)})},K.useEffect(()=>{const p=a.history.subscribe(a.load),S=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Ca(a.latestLocation.href)!==Ca(S.href)&&a.commitLocation({...S,replace:!0}),()=>{p()}},[a,a.history]),No(()=>{if(typeof window<"u"&&a.ssr||s.current.router===a&&s.current.mounted)return;s.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(S){console.error(S)}})()},[a]),No(()=>{d&&!f&&a.emit({type:"onLoad",...ai(a.state)})},[d,a,f]),No(()=>{v&&!g&&a.emit({type:"onBeforeRouteMount",...ai(a.state)})},[g,v,a]),No(()=>{m&&!y&&(a.emit({type:"onResolved",...ai(a.state)}),a.__store.setState(p=>({...p,status:"idle",resolvedLocation:p.location})),Pb(a))},[y,m,a]),null}function XS(a){const s=je({select:l=>`not-found-${l.location.pathname}-${l.status}`});return U.jsx(gf,{getResetKey:()=>s,onCatch:(l,o)=>{if(cn(l))a.onCatch?.(l,o);else throw l},errorComponent:({error:l})=>{if(cn(l))return a.fallback?.(l);throw l},children:a.children})}function ZS(){return U.jsx("p",{children:"Not Found"})}function $i(a){return U.jsx(U.Fragment,{children:a.children})}function Qy(a,s,l){return s.options.notFoundComponent?U.jsx(s.options.notFoundComponent,{data:l}):a.options.defaultNotFoundComponent?U.jsx(a.options.defaultNotFoundComponent,{data:l}):U.jsx(ZS,{})}function PS({children:a}){const s=Ke();return s.isServer?U.jsx("script",{nonce:s.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:[a].filter(Boolean).join(`
43
- `)+";$_TSR.c()"}}):null}function FS(){const a=Ke();if(!a.isScrollRestoring||!a.isServer||typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return null;const l=(a.options.getScrollRestorationKey||Yc)(a.latestLocation),o=l!==Yc(a.latestLocation)?l:void 0,c={storageKey:Zo,shouldScrollRestoration:!0};return o&&(c.key=o),U.jsx(PS,{children:`(${Ty.toString()})(${JSON.stringify(c)})`})}const Vy=K.memo(function({matchId:s}){const l=Ke(),o=je({select:H=>{const F=H.matches.find(P=>P.id===s);return Kn(F),{routeId:F.routeId,ssr:F.ssr,_displayPending:F._displayPending}},structuralSharing:!0}),c=l.routesById[o.routeId],f=c.options.pendingComponent??l.options.defaultPendingComponent,d=f?U.jsx(f,{}):null,y=c.options.errorComponent??l.options.defaultErrorComponent,m=c.options.onCatch??l.options.defaultOnCatch,g=c.isRoot?c.options.notFoundComponent??l.options.notFoundRoute?.options.component:c.options.notFoundComponent,v=o.ssr===!1||o.ssr==="data-only",p=(!c.isRoot||c.options.wrapInSuspense||v)&&(c.options.wrapInSuspense??f??(c.options.errorComponent?.preload||v))?K.Suspense:$i,S=y?gf:$i,_=g?XS:$i,E=je({select:H=>H.loadedAt}),z=je({select:H=>{const F=H.matches.findIndex(P=>P.id===s);return H.matches[F-1]?.routeId}}),L=c.isRoot?c.options.shellComponent??$i:$i;return U.jsxs(L,{children:[U.jsx(lr.Provider,{value:s,children:U.jsx(p,{fallback:d,children:U.jsx(S,{getResetKey:()=>E,errorComponent:y||sr,onCatch:(H,F)=>{if(cn(H))throw H;m?.(H,F)},children:U.jsx(_,{fallback:H=>{if(!g||H.routeId&&H.routeId!==o.routeId||!H.routeId&&!c.isRoot)throw H;return K.createElement(g,H)},children:v||o._displayPending?U.jsx(bS,{fallback:d,children:U.jsx(Xp,{matchId:s})}):U.jsx(Xp,{matchId:s})})})})}),z===Ye&&l.options.scrollRestoration?U.jsxs(U.Fragment,{children:[U.jsx($S,{}),U.jsx(FS,{})]}):null]})});function $S(){const a=Ke(),s=K.useRef(void 0);return U.jsx("script",{suppressHydrationWarning:!0,ref:l=>{l&&(s.current===void 0||s.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...ai(a.state)}),s.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}const Xp=K.memo(function({matchId:s}){const l=Ke(),{match:o,key:c,routeId:f}=je({select:m=>{const g=m.matches.find(E=>E.id===s),v=g.routeId,S=(l.routesById[v].options.remountDeps??l.options.defaultRemountDeps)?.({routeId:v,loaderDeps:g.loaderDeps,params:g._strictParams,search:g._strictSearch});return{key:S?JSON.stringify(S):void 0,routeId:v,match:{id:g.id,status:g.status,error:g.error,_forcePending:g._forcePending,_displayPending:g._displayPending}}},structuralSharing:!0}),d=l.routesById[f],y=K.useMemo(()=>{const m=d.options.component??l.options.defaultComponent;return m?U.jsx(m,{},c):U.jsx(Gy,{})},[c,d.options.component,l.options.defaultComponent]);if(o._displayPending)throw l.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw l.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const m=d.options.pendingMinMs??l.options.defaultPendingMinMs;if(m){const g=l.getMatch(o.id);if(g&&!g._nonReactive.minPendingPromise&&!l.isServer){const v=Wi();g._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),g._nonReactive.minPendingPromise=void 0},m)}}throw l.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return Kn(cn(o.error)),Qy(l,d,o.error);if(o.status==="redirected")throw Kn(Sn(o.error)),l.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error"){if(l.isServer){const m=(d.options.errorComponent??l.options.defaultErrorComponent)||sr;return U.jsx(m,{error:o.error,reset:void 0,info:{componentStack:""}})}throw o.error}return y}),Gy=K.memo(function(){const s=Ke(),l=K.useContext(lr),o=je({select:g=>g.matches.find(v=>v.id===l)?.routeId}),c=s.routesById[o],f=je({select:g=>{const p=g.matches.find(S=>S.id===l);return Kn(p),p.globalNotFound}}),d=je({select:g=>{const v=g.matches,p=v.findIndex(S=>S.id===l);return v[p+1]?.id}}),y=s.options.defaultPendingComponent?U.jsx(s.options.defaultPendingComponent,{}):null;if(f)return Qy(s,c,void 0);if(!d)return null;const m=U.jsx(Vy,{matchId:d});return l===Ye?U.jsx(K.Suspense,{fallback:y,children:m}):m});function JS(){const a=Ke(),l=a.routesById[Ye].options.pendingComponent??a.options.defaultPendingComponent,o=l?U.jsx(l,{}):null,c=a.isServer||typeof document<"u"&&a.ssr?$i:K.Suspense,f=U.jsxs(c,{fallback:o,children:[!a.isServer&&U.jsx(KS,{}),U.jsx(IS,{})]});return a.options.InnerWrap?U.jsx(a.options.InnerWrap,{children:f}):f}function IS(){const a=Ke(),s=je({select:c=>c.matches[0]?.id}),l=je({select:c=>c.loadedAt}),o=s?U.jsx(Vy,{matchId:s}):null;return U.jsx(lr.Provider,{value:s,children:a.options.disableGlobalCatchBoundary?o:U.jsx(gf,{getResetKey:()=>l,errorComponent:sr,onCatch:c=>{c.message||c.toString()},children:o})})}const WS=a=>new t1(a);class t1 extends cS{constructor(s){super(s)}}typeof globalThis<"u"?(globalThis.createFileRoute=as,globalThis.createLazyFileRoute=Kp):typeof window<"u"&&(window.createFileRoute=as,window.createLazyFileRoute=Kp);function e1({router:a,children:s,...l}){Object.keys(l).length>0&&a.update({...a.options,...l,context:{...a.options.context,...l.context}});const o=By(),c=U.jsx(o.Provider,{value:a,children:s});return a.options.Wrap?U.jsx(a.options.Wrap,{children:c}):c}function n1({router:a,...s}){return U.jsx(e1,{router:a,...s,children:U.jsx(JS,{})})}var zc={exports:{}},il={},Dc={exports:{}},Lc={};/**
44
- * @license React
45
- * scheduler.production.js
46
- *
47
- * Copyright (c) Meta Platforms, Inc. and affiliates.
48
- *
49
- * This source code is licensed under the MIT license found in the
50
- * LICENSE file in the root directory of this source tree.
51
- */var Zp;function a1(){return Zp||(Zp=1,(function(a){function s(C,X){var Y=C.length;C.push(X);t:for(;0<Y;){var vt=Y-1>>>1,pt=C[vt];if(0<c(pt,X))C[vt]=X,C[Y]=pt,Y=vt;else break t}}function l(C){return C.length===0?null:C[0]}function o(C){if(C.length===0)return null;var X=C[0],Y=C.pop();if(Y!==X){C[0]=Y;t:for(var vt=0,pt=C.length,w=pt>>>1;vt<w;){var q=2*(vt+1)-1,B=C[q],Z=q+1,J=C[Z];if(0>c(B,Y))Z<pt&&0>c(J,B)?(C[vt]=J,C[Z]=Y,vt=Z):(C[vt]=B,C[q]=Y,vt=q);else if(Z<pt&&0>c(J,Y))C[vt]=J,C[Z]=Y,vt=Z;else break t}}return X}function c(C,X){var Y=C.sortIndex-X.sortIndex;return Y!==0?Y:C.id-X.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,y=d.now();a.unstable_now=function(){return d.now()-y}}var m=[],g=[],v=1,p=null,S=3,_=!1,E=!1,z=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function I(C){for(var X=l(g);X!==null;){if(X.callback===null)o(g);else if(X.startTime<=C)o(g),X.sortIndex=X.expirationTime,s(m,X);else break;X=l(g)}}function lt(C){if(z=!1,I(C),!E)if(l(m)!==null)E=!0,$||($=!0,ht());else{var X=l(g);X!==null&&Mt(lt,X.startTime-C)}}var $=!1,V=-1,D=5,W=-1;function ot(){return L?!0:!(a.unstable_now()-W<D)}function dt(){if(L=!1,$){var C=a.unstable_now();W=C;var X=!0;try{t:{E=!1,z&&(z=!1,F(V),V=-1),_=!0;var Y=S;try{e:{for(I(C),p=l(m);p!==null&&!(p.expirationTime>C&&ot());){var vt=p.callback;if(typeof vt=="function"){p.callback=null,S=p.priorityLevel;var pt=vt(p.expirationTime<=C);if(C=a.unstable_now(),typeof pt=="function"){p.callback=pt,I(C),X=!0;break e}p===l(m)&&o(m),I(C)}else o(m);p=l(m)}if(p!==null)X=!0;else{var w=l(g);w!==null&&Mt(lt,w.startTime-C),X=!1}}break t}finally{p=null,S=Y,_=!1}X=void 0}}finally{X?ht():$=!1}}}var ht;if(typeof P=="function")ht=function(){P(dt)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,Dt=Lt.port2;Lt.port1.onmessage=dt,ht=function(){Dt.postMessage(null)}}else ht=function(){H(dt,0)};function Mt(C,X){V=H(function(){C(a.unstable_now())},X)}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(C){C.callback=null},a.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<C?Math.floor(1e3/C):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(C){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var Y=S;S=X;try{return C()}finally{S=Y}},a.unstable_requestPaint=function(){L=!0},a.unstable_runWithPriority=function(C,X){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var Y=S;S=C;try{return X()}finally{S=Y}},a.unstable_scheduleCallback=function(C,X,Y){var vt=a.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?vt+Y:vt):Y=vt,C){case 1:var pt=-1;break;case 2:pt=250;break;case 5:pt=1073741823;break;case 4:pt=1e4;break;default:pt=5e3}return pt=Y+pt,C={id:v++,callback:X,priorityLevel:C,startTime:Y,expirationTime:pt,sortIndex:-1},Y>vt?(C.sortIndex=Y,s(g,C),l(m)===null&&C===l(g)&&(z?(F(V),V=-1):z=!0,Mt(lt,Y-vt))):(C.sortIndex=pt,s(m,C),E||_||(E=!0,$||($=!0,ht()))),C},a.unstable_shouldYield=ot,a.unstable_wrapCallback=function(C){var X=S;return function(){var Y=S;S=X;try{return C.apply(this,arguments)}finally{S=Y}}}})(Lc)),Lc}var Pp;function i1(){return Pp||(Pp=1,Dc.exports=a1()),Dc.exports}/**
52
- * @license React
53
- * react-dom-client.production.js
54
- *
55
- * Copyright (c) Meta Platforms, Inc. and affiliates.
56
- *
57
- * This source code is licensed under the MIT license found in the
58
- * LICENSE file in the root directory of this source tree.
59
- */var Fp;function s1(){if(Fp)return il;Fp=1;var a=i1(),s=dl(),l=Hy();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 c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(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 d(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 y(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 m(t){if(f(t)!==t)throw Error(o(188))}function g(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,i=e;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return m(r),t;if(u===i)return m(r),e;u=u.sibling}throw Error(o(188))}if(n.return!==i.return)n=r,i=u;else{for(var h=!1,b=r.child;b;){if(b===n){h=!0,n=r,i=u;break}if(b===i){h=!0,i=r,n=u;break}b=b.sibling}if(!h){for(b=u.child;b;){if(b===n){h=!0,n=u,i=r;break}if(b===i){h=!0,i=u,n=r;break}b=b.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var p=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),P=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),dt=Symbol.iterator;function ht(t){return t===null||typeof t!="object"?null:(t=dt&&t[dt]||t["@@iterator"],typeof t=="function"?t:null)}var Lt=Symbol.for("react.client.reference");function Dt(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 z:return"Fragment";case H:return"Profiler";case L:return"StrictMode";case lt:return"Suspense";case $:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case P:return t.displayName||"Context";case F:return(t._context.displayName||"Context")+".Consumer";case I:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case V:return e=t.displayName||null,e!==null?e:Dt(t.type)||"Memo";case D:e=t._payload,t=t._init;try{return Dt(t(e))}catch{}}return null}var Mt=Array.isArray,C=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},vt=[],pt=-1;function w(t){return{current:t}}function q(t){0>pt||(t.current=vt[pt],vt[pt]=null,pt--)}function B(t,e){pt++,vt[pt]=t.current,t.current=e}var Z=w(null),J=w(null),at=w(null),it=w(null);function ct(t,e){switch(B(at,e),B(J,t),B(Z,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Ym(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Ym(e),t=Km(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(Z),B(Z,t)}function bt(){q(Z),q(J),q(at)}function te(t){t.memoizedState!==null&&B(it,t);var e=Z.current,n=Km(e,t.type);e!==n&&(B(J,t),B(Z,n))}function ue(t){J.current===t&&(q(Z),q(J)),it.current===t&&(q(it),$s._currentValue=Y)}var Yt,oi;function Ue(t){if(Yt===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Yt=e&&e[1]||"",oi=-1<n.stack.indexOf(`
60
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
61
- `+Yt+t+oi}var Zn=!1;function Pn(t,e){if(!t||Zn)return"";Zn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(N){var O=N}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(N){O=N}t.call(Q.prototype)}}else{try{throw Error()}catch(N){O=N}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(N){if(N&&O&&typeof N.stack=="string")return[N.stack,O.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),h=u[0],b=u[1];if(h&&b){var x=h.split(`
62
- `),A=b.split(`
63
- `);for(r=i=0;i<x.length&&!x[i].includes("DetermineComponentFrameRoot");)i++;for(;r<A.length&&!A[r].includes("DetermineComponentFrameRoot");)r++;if(i===x.length||r===A.length)for(i=x.length-1,r=A.length-1;1<=i&&0<=r&&x[i]!==A[r];)r--;for(;1<=i&&0<=r;i--,r--)if(x[i]!==A[r]){if(i!==1||r!==1)do if(i--,r--,0>r||x[i]!==A[r]){var j=`
64
- `+x[i].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=i&&0<=r);break}}}finally{Zn=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ue(n):""}function En(t,e){switch(t.tag){case 26:case 27:case 5:return Ue(t.type);case 16:return Ue("Lazy");case 13:return t.child!==e&&e!==null?Ue("Suspense Fallback"):Ue("Suspense");case 19:return Ue("SuspenseList");case 0:case 15:return Pn(t.type,!1);case 11:return Pn(t.type.render,!1);case 1:return Pn(t.type,!0);case 31:return Ue("Activity");default:return""}}function Oa(t){try{var e="",n=null;do e+=En(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
65
- Error generating stack: `+i.message+`
66
- `+i.stack}}var ie=Object.prototype.hasOwnProperty,fn=a.unstable_scheduleCallback,Fn=a.unstable_cancelCallback,se=a.unstable_shouldYield,Rt=a.unstable_requestPaint,Ct=a.unstable_now,Se=a.unstable_getCurrentPriorityLevel,dn=a.unstable_ImmediatePriority,pl=a.unstable_UserBlockingPriority,za=a.unstable_NormalPriority,us=a.unstable_LowPriority,wn=a.unstable_IdlePriority,yl=a.log,$n=a.unstable_setDisableYieldValue,Da=null,_e=null;function sn(t){if(typeof yl=="function"&&$n(t),_e&&typeof _e.setStrictMode=="function")try{_e.setStrictMode(Da,t)}catch{}}var pe=Math.clz32?Math.clz32:hn,rr=Math.log,cs=Math.LN2;function hn(t){return t>>>=0,t===0?32:31-(rr(t)/cs|0)|0}var ri=256,ui=262144,La=4194304;function mn(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 ft(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var r=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var b=i&134217727;return b!==0?(i=b&~u,i!==0?r=mn(i):(h&=b,h!==0?r=mn(h):n||(n=b&~t,n!==0&&(r=mn(n))))):(b=i&~u,b!==0?r=mn(b):h!==0?r=mn(h):n||(n=i&~t,n!==0&&(r=mn(n)))),r===0?0:e!==0&&e!==r&&(e&u)===0&&(u=r&-r,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:r}function Vt(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function le(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 ye(){var t=La;return La<<=1,(La&62914560)===0&&(La=4194304),t}function Jn(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Kt(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function we(t,e,n,i,r,u){var h=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 b=t.entanglements,x=t.expirationTimes,A=t.hiddenUpdates;for(n=h&~n;0<n;){var j=31-pe(n),Q=1<<j;b[j]=0,x[j]=-1;var O=A[j];if(O!==null)for(A[j]=null,j=0;j<O.length;j++){var N=O[j];N!==null&&(N.lane&=-536870913)}n&=~Q}i!==0&&Na(t,i,0),u!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function Na(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-pe(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function Re(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-pe(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}function Te(t,e){var n=e&-e;return n=(n&42)!==0?1:ci(n),(n&(t.suspendedLanes|e))!==0?0:n}function ci(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 ln(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ur(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:mp(t.type))}function Of(t,e){var n=X.p;try{return X.p=t,e()}finally{X.p=n}}var In=Math.random().toString(36).slice(2),ce="__reactFiber$"+In,Ce="__reactProps$"+In,fi="__reactContainer$"+In,cr="__reactEvents$"+In,Jg="__reactListeners$"+In,Ig="__reactHandles$"+In,zf="__reactResources$"+In,fs="__reactMarker$"+In;function fr(t){delete t[ce],delete t[Ce],delete t[cr],delete t[Jg],delete t[Ig]}function di(t){var e=t[ce];if(e)return e;for(var n=t.parentNode;n;){if(e=n[fi]||n[ce]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Im(t);t!==null;){if(n=t[ce])return n;t=Im(t)}return e}t=n,n=t.parentNode}return null}function hi(t){if(t=t[ce]||t[fi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ds(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function mi(t){var e=t[zf];return e||(e=t[zf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function oe(t){t[fs]=!0}var Df=new Set,Lf={};function ja(t,e){pi(t,e),pi(t+"Capture",e)}function pi(t,e){for(Lf[t]=e,t=0;t<e.length;t++)Df.add(e[t])}var Wg=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]*$"),Nf={},jf={};function tv(t){return ie.call(jf,t)?!0:ie.call(Nf,t)?!1:Wg.test(t)?jf[t]=!0:(Nf[t]=!0,!1)}function gl(t,e,n){if(tv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function vl(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 Rn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function Xe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Uf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ev(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,u=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function dr(t){if(!t._valueTracker){var e=Uf(t)?"checked":"value";t._valueTracker=ev(t,e,""+t[e])}}function Bf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Uf(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function bl(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 nv=/[\n"\\]/g;function Ze(t){return t.replace(nv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function hr(t,e,n,i,r,u,h,b){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Xe(e)):t.value!==""+Xe(e)&&(t.value=""+Xe(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?mr(t,h,Xe(e)):n!=null?mr(t,h,Xe(n)):i!=null&&t.removeAttribute("value"),r==null&&u!=null&&(t.defaultChecked=!!u),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Xe(b):t.removeAttribute("name")}function Hf(t,e,n,i,r,u,h,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){dr(t);return}n=n!=null?""+Xe(n):"",e=e!=null?""+Xe(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=b?t.checked:!!i,t.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),dr(t)}function mr(t,e,n){e==="number"&&bl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function yi(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&i&&(t[n].defaultSelected=!0)}else{for(n=""+Xe(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,i&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function qf(t,e,n){if(e!=null&&(e=""+Xe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Xe(n):""}function kf(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(o(92));if(Mt(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=Xe(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),dr(t)}function gi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var av=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 Qf(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||av.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Vf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var r in e)i=e[r],e.hasOwnProperty(r)&&n[r]!==i&&Qf(t,r,i)}else for(var u in e)e.hasOwnProperty(u)&&Qf(t,u,e[u])}function pr(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 iv=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"]]),sv=/^[\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 Sl(t){return sv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Tn(){}var yr=null;function gr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var vi=null,bi=null;function Gf(t){var e=hi(t);if(e&&(t=e.stateNode)){var n=t[Ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(hr(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="'+Ze(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var r=i[Ce]||null;if(!r)throw Error(o(90));hr(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Bf(i)}break t;case"textarea":qf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&yi(t,!!n.multiple,e,!1)}}}var vr=!1;function Yf(t,e,n){if(vr)return t(e,n);vr=!0;try{var i=t(e);return i}finally{if(vr=!1,(vi!==null||bi!==null)&&(oo(),vi&&(e=vi,t=bi,bi=vi=null,Gf(e),t)))for(e=0;e<t.length;e++)Gf(t[e])}}function hs(t,e){var n=t.stateNode;if(n===null)return null;var i=n[Ce]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),br=!1;if(Cn)try{var ms={};Object.defineProperty(ms,"passive",{get:function(){br=!0}}),window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{br=!1}var Wn=null,Sr=null,_l=null;function Kf(){if(_l)return _l;var t,e=Sr,n=e.length,i,r="value"in Wn?Wn.value:Wn.textContent,u=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(i=1;i<=h&&e[n-i]===r[u-i];i++);return _l=r.slice(t,1<i?1-i:void 0)}function xl(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 El(){return!0}function Xf(){return!1}function Me(t){function e(n,i,r,u,h){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(n=t[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?El:Xf,this.isPropagationStopped=Xf,this}return p(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=El)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=El)},persist:function(){},isPersistent:El}),e}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wl=Me(Ua),ps=p({},Ua,{view:0,detail:0}),lv=Me(ps),_r,xr,ys,Rl=p({},ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wr,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!==ys&&(ys&&t.type==="mousemove"?(_r=t.screenX-ys.screenX,xr=t.screenY-ys.screenY):xr=_r=0,ys=t),_r)},movementY:function(t){return"movementY"in t?t.movementY:xr}}),Zf=Me(Rl),ov=p({},Rl,{dataTransfer:0}),rv=Me(ov),uv=p({},ps,{relatedTarget:0}),Er=Me(uv),cv=p({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),fv=Me(cv),dv=p({},Ua,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),hv=Me(dv),mv=p({},Ua,{data:0}),Pf=Me(mv),pv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yv={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"},gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=gv[t])?!!e[t]:!1}function wr(){return vv}var bv=p({},ps,{key:function(t){if(t.key){var e=pv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=xl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?yv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wr,charCode:function(t){return t.type==="keypress"?xl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Sv=Me(bv),_v=p({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ff=Me(_v),xv=p({},ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wr}),Ev=Me(xv),wv=p({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rv=Me(wv),Tv=p({},Rl,{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}),Cv=Me(Tv),Mv=p({},Ua,{newState:0,oldState:0}),Av=Me(Mv),Ov=[9,13,27,32],Rr=Cn&&"CompositionEvent"in window,gs=null;Cn&&"documentMode"in document&&(gs=document.documentMode);var zv=Cn&&"TextEvent"in window&&!gs,$f=Cn&&(!Rr||gs&&8<gs&&11>=gs),Jf=" ",If=!1;function Wf(t,e){switch(t){case"keyup":return Ov.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Si=!1;function Dv(t,e){switch(t){case"compositionend":return td(e);case"keypress":return e.which!==32?null:(If=!0,Jf);case"textInput":return t=e.data,t===Jf&&If?null:t;default:return null}}function Lv(t,e){if(Si)return t==="compositionend"||!Rr&&Wf(t,e)?(t=Kf(),_l=Sr=Wn=null,Si=!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 $f&&e.locale!=="ko"?null:e.data;default:return null}}var Nv={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 ed(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Nv[t.type]:e==="textarea"}function nd(t,e,n,i){vi?bi?bi.push(i):bi=[i]:vi=i,e=po(e,"onChange"),0<e.length&&(n=new wl("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var vs=null,bs=null;function jv(t){Hm(t,0)}function Tl(t){var e=ds(t);if(Bf(e))return t}function ad(t,e){if(t==="change")return e}var id=!1;if(Cn){var Tr;if(Cn){var Cr="oninput"in document;if(!Cr){var sd=document.createElement("div");sd.setAttribute("oninput","return;"),Cr=typeof sd.oninput=="function"}Tr=Cr}else Tr=!1;id=Tr&&(!document.documentMode||9<document.documentMode)}function ld(){vs&&(vs.detachEvent("onpropertychange",od),bs=vs=null)}function od(t){if(t.propertyName==="value"&&Tl(bs)){var e=[];nd(e,bs,t,gr(t)),Yf(jv,e)}}function Uv(t,e,n){t==="focusin"?(ld(),vs=e,bs=n,vs.attachEvent("onpropertychange",od)):t==="focusout"&&ld()}function Bv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Tl(bs)}function Hv(t,e){if(t==="click")return Tl(e)}function qv(t,e){if(t==="input"||t==="change")return Tl(e)}function kv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Be=typeof Object.is=="function"?Object.is:kv;function Ss(t,e){if(Be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!ie.call(e,r)||!Be(t[r],e[r]))return!1}return!0}function rd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ud(t,e){var n=rd(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=rd(n)}}function cd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?cd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function fd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=bl(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=bl(t.document)}return e}function Mr(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 Qv=Cn&&"documentMode"in document&&11>=document.documentMode,_i=null,Ar=null,_s=null,Or=!1;function dd(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||_i==null||_i!==bl(i)||(i=_i,"selectionStart"in i&&Mr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),_s&&Ss(_s,i)||(_s=i,i=po(Ar,"onSelect"),0<i.length&&(e=new wl("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=_i)))}function Ba(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var xi={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},zr={},hd={};Cn&&(hd=document.createElement("div").style,"AnimationEvent"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),"TransitionEvent"in window||delete xi.transitionend.transition);function Ha(t){if(zr[t])return zr[t];if(!xi[t])return t;var e=xi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in hd)return zr[t]=e[n];return t}var md=Ha("animationend"),pd=Ha("animationiteration"),yd=Ha("animationstart"),Vv=Ha("transitionrun"),Gv=Ha("transitionstart"),Yv=Ha("transitioncancel"),gd=Ha("transitionend"),vd=new Map,Dr="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(" ");Dr.push("scrollEnd");function on(t,e){vd.set(t,e),ja(e,[t])}var Cl=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)},Pe=[],Ei=0,Lr=0;function Ml(){for(var t=Ei,e=Lr=Ei=0;e<t;){var n=Pe[e];Pe[e++]=null;var i=Pe[e];Pe[e++]=null;var r=Pe[e];Pe[e++]=null;var u=Pe[e];if(Pe[e++]=null,i!==null&&r!==null){var h=i.pending;h===null?r.next=r:(r.next=h.next,h.next=r),i.pending=r}u!==0&&bd(n,r,u)}}function Al(t,e,n,i){Pe[Ei++]=t,Pe[Ei++]=e,Pe[Ei++]=n,Pe[Ei++]=i,Lr|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Nr(t,e,n,i){return Al(t,e,n,i),Ol(t)}function qa(t,e){return Al(t,null,null,e),Ol(t)}function bd(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var r=!1,u=t.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(r=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,r&&e!==null&&(r=31-pe(n),t=u.hiddenUpdates,i=t[r],i===null?t[r]=[e]:i.push(e),e.lane=n|536870912),u):null}function Ol(t){if(50<Gs)throw Gs=0,Gu=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var wi={};function Kv(t,e,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function He(t,e,n,i){return new Kv(t,e,n,i)}function jr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mn(t,e){var n=t.alternate;return n===null?(n=He(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 Sd(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 zl(t,e,n,i,r,u){var h=0;if(i=t,typeof t=="function")jr(t)&&(h=1);else if(typeof t=="string")h=$0(t,n,Z.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=He(31,n,e,r),t.elementType=W,t.lanes=u,t;case z:return ka(n.children,r,u,e);case L:h=8,r|=24;break;case H:return t=He(12,n,e,r|2),t.elementType=H,t.lanes=u,t;case lt:return t=He(13,n,e,r),t.elementType=lt,t.lanes=u,t;case $:return t=He(19,n,e,r),t.elementType=$,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:h=10;break t;case F:h=9;break t;case I:h=11;break t;case V:h=14;break t;case D:h=16,i=null;break t}h=29,n=Error(o(130,t===null?"null":typeof t,"")),i=null}return e=He(h,n,e,r),e.elementType=t,e.type=i,e.lanes=u,e}function ka(t,e,n,i){return t=He(7,t,i,e),t.lanes=n,t}function Ur(t,e,n){return t=He(6,t,null,e),t.lanes=n,t}function _d(t){var e=He(18,null,null,0);return e.stateNode=t,e}function Br(t,e,n){return e=He(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var xd=new WeakMap;function Fe(t,e){if(typeof t=="object"&&t!==null){var n=xd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Oa(e)},xd.set(t,e),e)}return{value:t,source:e,stack:Oa(e)}}var Ri=[],Ti=0,Dl=null,xs=0,$e=[],Je=0,ta=null,pn=1,yn="";function An(t,e){Ri[Ti++]=xs,Ri[Ti++]=Dl,Dl=t,xs=e}function Ed(t,e,n){$e[Je++]=pn,$e[Je++]=yn,$e[Je++]=ta,ta=t;var i=pn;t=yn;var r=32-pe(i)-1;i&=~(1<<r),n+=1;var u=32-pe(e)+r;if(30<u){var h=r-r%5;u=(i&(1<<h)-1).toString(32),i>>=h,r-=h,pn=1<<32-pe(e)+r|n<<r|i,yn=u+t}else pn=1<<u|n<<r|i,yn=t}function Hr(t){t.return!==null&&(An(t,1),Ed(t,1,0))}function qr(t){for(;t===Dl;)Dl=Ri[--Ti],Ri[Ti]=null,xs=Ri[--Ti],Ri[Ti]=null;for(;t===ta;)ta=$e[--Je],$e[Je]=null,yn=$e[--Je],$e[Je]=null,pn=$e[--Je],$e[Je]=null}function wd(t,e){$e[Je++]=pn,$e[Je++]=yn,$e[Je++]=ta,pn=e.id,yn=e.overflow,ta=t}var fe=null,kt=null,Tt=!1,ea=null,Ie=!1,kr=Error(o(519));function na(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Es(Fe(e,t)),kr}function Rd(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[ce]=t,e[Ce]=i,n){case"dialog":xt("cancel",e),xt("close",e);break;case"iframe":case"object":case"embed":xt("load",e);break;case"video":case"audio":for(n=0;n<Ks.length;n++)xt(Ks[n],e);break;case"source":xt("error",e);break;case"img":case"image":case"link":xt("error",e),xt("load",e);break;case"details":xt("toggle",e);break;case"input":xt("invalid",e),Hf(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":xt("invalid",e);break;case"textarea":xt("invalid",e),kf(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||Vm(e.textContent,n)?(i.popover!=null&&(xt("beforetoggle",e),xt("toggle",e)),i.onScroll!=null&&xt("scroll",e),i.onScrollEnd!=null&&xt("scrollend",e),i.onClick!=null&&(e.onclick=Tn),e=!0):e=!1,e||na(t,!0)}function Td(t){for(fe=t.return;fe;)switch(fe.tag){case 5:case 31:case 13:Ie=!1;return;case 27:case 3:Ie=!0;return;default:fe=fe.return}}function Ci(t){if(t!==fe)return!1;if(!Tt)return Td(t),Tt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ic(t.type,t.memoizedProps)),n=!n),n&&kt&&na(t),Td(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));kt=Jm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));kt=Jm(t)}else e===27?(e=kt,ya(t.type)?(t=uc,uc=null,kt=t):kt=e):kt=fe?tn(t.stateNode.nextSibling):null;return!0}function Qa(){kt=fe=null,Tt=!1}function Qr(){var t=ea;return t!==null&&(De===null?De=t:De.push.apply(De,t),ea=null),t}function Es(t){ea===null?ea=[t]:ea.push(t)}var Vr=w(null),Va=null,On=null;function aa(t,e,n){B(Vr,e._currentValue),e._currentValue=n}function zn(t){t._currentValue=Vr.current,q(Vr)}function Gr(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Yr(t,e,n,i){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var u=r.dependencies;if(u!==null){var h=r.child;u=u.firstContext;t:for(;u!==null;){var b=u;u=r;for(var x=0;x<e.length;x++)if(b.context===e[x]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),Gr(u.return,n,t),i||(h=null);break t}u=b.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(o(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),Gr(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Mi(t,e,n,i){t=null;for(var r=e,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var b=r.type;Be(r.pendingProps.value,h.value)||(t!==null?t.push(b):t=[b])}}else if(r===it.current){if(h=r.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push($s):t=[$s])}r=r.return}t!==null&&Yr(e,t,n,i),e.flags|=262144}function Ll(t){for(t=t.firstContext;t!==null;){if(!Be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ga(t){Va=t,On=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function de(t){return Cd(Va,t)}function Nl(t,e){return Va===null&&Ga(t),Cd(t,e)}function Cd(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 Xv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Zv=a.unstable_scheduleCallback,Pv=a.unstable_NormalPriority,$t={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kr(){return{controller:new Xv,data:new Map,refCount:0}}function ws(t){t.refCount--,t.refCount===0&&Zv(Pv,function(){t.controller.abort()})}var Rs=null,Xr=0,Ai=0,Oi=null;function Fv(t,e){if(Rs===null){var n=Rs=[];Xr=0,Ai=Fu(),Oi={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Xr++,e.then(Md,Md),e}function Md(){if(--Xr===0&&Rs!==null){Oi!==null&&(Oi.status="fulfilled");var t=Rs;Rs=null,Ai=0,Oi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function $v(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var Ad=C.S;C.S=function(t,e){dm=Ct(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Fv(t,e),Ad!==null&&Ad(t,e)};var Ya=w(null);function Zr(){var t=Ya.current;return t!==null?t:qt.pooledCache}function jl(t,e){e===null?B(Ya,Ya.current):B(Ya,e.pool)}function Od(){var t=Zr();return t===null?null:{parent:$t._currentValue,pool:t}}var zi=Error(o(460)),Pr=Error(o(474)),Ul=Error(o(542)),Bl={then:function(){}};function zd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Dd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Tn,Tn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Nd(t),t;default:if(typeof e.status=="string")e.then(Tn,Tn);else{if(t=qt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=i}},function(i){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Nd(t),t}throw Xa=e,zi}}function Ka(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Xa=n,zi):n}}var Xa=null;function Ld(){if(Xa===null)throw Error(o(459));var t=Xa;return Xa=null,t}function Nd(t){if(t===zi||t===Ul)throw Error(o(483))}var Di=null,Ts=0;function Hl(t){var e=Ts;return Ts+=1,Di===null&&(Di=[]),Dd(Di,t,e)}function Cs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ql(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 jd(t){function e(T,R){if(t){var M=T.deletions;M===null?(T.deletions=[R],T.flags|=16):M.push(R)}}function n(T,R){if(!t)return null;for(;R!==null;)e(T,R),R=R.sibling;return null}function i(T){for(var R=new Map;T!==null;)T.key!==null?R.set(T.key,T):R.set(T.index,T),T=T.sibling;return R}function r(T,R){return T=Mn(T,R),T.index=0,T.sibling=null,T}function u(T,R,M){return T.index=M,t?(M=T.alternate,M!==null?(M=M.index,M<R?(T.flags|=67108866,R):M):(T.flags|=67108866,R)):(T.flags|=1048576,R)}function h(T){return t&&T.alternate===null&&(T.flags|=67108866),T}function b(T,R,M,k){return R===null||R.tag!==6?(R=Ur(M,T.mode,k),R.return=T,R):(R=r(R,M),R.return=T,R)}function x(T,R,M,k){var rt=M.type;return rt===z?j(T,R,M.props.children,k,M.key):R!==null&&(R.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===D&&Ka(rt)===R.type)?(R=r(R,M.props),Cs(R,M),R.return=T,R):(R=zl(M.type,M.key,M.props,null,T.mode,k),Cs(R,M),R.return=T,R)}function A(T,R,M,k){return R===null||R.tag!==4||R.stateNode.containerInfo!==M.containerInfo||R.stateNode.implementation!==M.implementation?(R=Br(M,T.mode,k),R.return=T,R):(R=r(R,M.children||[]),R.return=T,R)}function j(T,R,M,k,rt){return R===null||R.tag!==7?(R=ka(M,T.mode,k,rt),R.return=T,R):(R=r(R,M),R.return=T,R)}function Q(T,R,M){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Ur(""+R,T.mode,M),R.return=T,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return M=zl(R.type,R.key,R.props,null,T.mode,M),Cs(M,R),M.return=T,M;case E:return R=Br(R,T.mode,M),R.return=T,R;case D:return R=Ka(R),Q(T,R,M)}if(Mt(R)||ht(R))return R=ka(R,T.mode,M,null),R.return=T,R;if(typeof R.then=="function")return Q(T,Hl(R),M);if(R.$$typeof===P)return Q(T,Nl(T,R),M);ql(T,R)}return null}function O(T,R,M,k){var rt=R!==null?R.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return rt!==null?null:b(T,R,""+M,k);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case _:return M.key===rt?x(T,R,M,k):null;case E:return M.key===rt?A(T,R,M,k):null;case D:return M=Ka(M),O(T,R,M,k)}if(Mt(M)||ht(M))return rt!==null?null:j(T,R,M,k,null);if(typeof M.then=="function")return O(T,R,Hl(M),k);if(M.$$typeof===P)return O(T,R,Nl(T,M),k);ql(T,M)}return null}function N(T,R,M,k,rt){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return T=T.get(M)||null,b(R,T,""+k,rt);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case _:return T=T.get(k.key===null?M:k.key)||null,x(R,T,k,rt);case E:return T=T.get(k.key===null?M:k.key)||null,A(R,T,k,rt);case D:return k=Ka(k),N(T,R,M,k,rt)}if(Mt(k)||ht(k))return T=T.get(M)||null,j(R,T,k,rt,null);if(typeof k.then=="function")return N(T,R,M,Hl(k),rt);if(k.$$typeof===P)return N(T,R,M,Nl(R,k),rt);ql(R,k)}return null}function tt(T,R,M,k){for(var rt=null,At=null,st=R,gt=R=0,wt=null;st!==null&&gt<M.length;gt++){st.index>gt?(wt=st,st=null):wt=st.sibling;var Ot=O(T,st,M[gt],k);if(Ot===null){st===null&&(st=wt);break}t&&st&&Ot.alternate===null&&e(T,st),R=u(Ot,R,gt),At===null?rt=Ot:At.sibling=Ot,At=Ot,st=wt}if(gt===M.length)return n(T,st),Tt&&An(T,gt),rt;if(st===null){for(;gt<M.length;gt++)st=Q(T,M[gt],k),st!==null&&(R=u(st,R,gt),At===null?rt=st:At.sibling=st,At=st);return Tt&&An(T,gt),rt}for(st=i(st);gt<M.length;gt++)wt=N(st,T,gt,M[gt],k),wt!==null&&(t&&wt.alternate!==null&&st.delete(wt.key===null?gt:wt.key),R=u(wt,R,gt),At===null?rt=wt:At.sibling=wt,At=wt);return t&&st.forEach(function(_a){return e(T,_a)}),Tt&&An(T,gt),rt}function ut(T,R,M,k){if(M==null)throw Error(o(151));for(var rt=null,At=null,st=R,gt=R=0,wt=null,Ot=M.next();st!==null&&!Ot.done;gt++,Ot=M.next()){st.index>gt?(wt=st,st=null):wt=st.sibling;var _a=O(T,st,Ot.value,k);if(_a===null){st===null&&(st=wt);break}t&&st&&_a.alternate===null&&e(T,st),R=u(_a,R,gt),At===null?rt=_a:At.sibling=_a,At=_a,st=wt}if(Ot.done)return n(T,st),Tt&&An(T,gt),rt;if(st===null){for(;!Ot.done;gt++,Ot=M.next())Ot=Q(T,Ot.value,k),Ot!==null&&(R=u(Ot,R,gt),At===null?rt=Ot:At.sibling=Ot,At=Ot);return Tt&&An(T,gt),rt}for(st=i(st);!Ot.done;gt++,Ot=M.next())Ot=N(st,T,gt,Ot.value,k),Ot!==null&&(t&&Ot.alternate!==null&&st.delete(Ot.key===null?gt:Ot.key),R=u(Ot,R,gt),At===null?rt=Ot:At.sibling=Ot,At=Ot);return t&&st.forEach(function(ob){return e(T,ob)}),Tt&&An(T,gt),rt}function Ht(T,R,M,k){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case _:t:{for(var rt=M.key;R!==null;){if(R.key===rt){if(rt=M.type,rt===z){if(R.tag===7){n(T,R.sibling),k=r(R,M.props.children),k.return=T,T=k;break t}}else if(R.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===D&&Ka(rt)===R.type){n(T,R.sibling),k=r(R,M.props),Cs(k,M),k.return=T,T=k;break t}n(T,R);break}else e(T,R);R=R.sibling}M.type===z?(k=ka(M.props.children,T.mode,k,M.key),k.return=T,T=k):(k=zl(M.type,M.key,M.props,null,T.mode,k),Cs(k,M),k.return=T,T=k)}return h(T);case E:t:{for(rt=M.key;R!==null;){if(R.key===rt)if(R.tag===4&&R.stateNode.containerInfo===M.containerInfo&&R.stateNode.implementation===M.implementation){n(T,R.sibling),k=r(R,M.children||[]),k.return=T,T=k;break t}else{n(T,R);break}else e(T,R);R=R.sibling}k=Br(M,T.mode,k),k.return=T,T=k}return h(T);case D:return M=Ka(M),Ht(T,R,M,k)}if(Mt(M))return tt(T,R,M,k);if(ht(M)){if(rt=ht(M),typeof rt!="function")throw Error(o(150));return M=rt.call(M),ut(T,R,M,k)}if(typeof M.then=="function")return Ht(T,R,Hl(M),k);if(M.$$typeof===P)return Ht(T,R,Nl(T,M),k);ql(T,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,R!==null&&R.tag===6?(n(T,R.sibling),k=r(R,M),k.return=T,T=k):(n(T,R),k=Ur(M,T.mode,k),k.return=T,T=k),h(T)):n(T,R)}return function(T,R,M,k){try{Ts=0;var rt=Ht(T,R,M,k);return Di=null,rt}catch(st){if(st===zi||st===Ul)throw st;var At=He(29,st,null,T.mode);return At.lanes=k,At.return=T,At}finally{}}}var Za=jd(!0),Ud=jd(!1),ia=!1;function Fr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $r(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 sa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function la(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(zt&2)!==0){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,e=Ol(t),bd(t,null,n),e}return Al(t,i,e,n),Ol(t)}function Ms(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Re(t,n)}}function Jr(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=e:u=u.next=e}else r=u=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Ir=!1;function As(){if(Ir){var t=Oi;if(t!==null)throw t}}function Os(t,e,n,i){Ir=!1;var r=t.updateQueue;ia=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var x=b,A=x.next;x.next=null,h===null?u=A:h.next=A,h=x;var j=t.alternate;j!==null&&(j=j.updateQueue,b=j.lastBaseUpdate,b!==h&&(b===null?j.firstBaseUpdate=A:b.next=A,j.lastBaseUpdate=x))}if(u!==null){var Q=r.baseState;h=0,j=A=x=null,b=u;do{var O=b.lane&-536870913,N=O!==b.lane;if(N?(Et&O)===O:(i&O)===O){O!==0&&O===Ai&&(Ir=!0),j!==null&&(j=j.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var tt=t,ut=b;O=e;var Ht=n;switch(ut.tag){case 1:if(tt=ut.payload,typeof tt=="function"){Q=tt.call(Ht,Q,O);break t}Q=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=ut.payload,O=typeof tt=="function"?tt.call(Ht,Q,O):tt,O==null)break t;Q=p({},Q,O);break t;case 2:ia=!0}}O=b.callback,O!==null&&(t.flags|=64,N&&(t.flags|=8192),N=r.callbacks,N===null?r.callbacks=[O]:N.push(O))}else N={lane:O,tag:b.tag,payload:b.payload,callback:b.callback,next:null},j===null?(A=j=N,x=Q):j=j.next=N,h|=O;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;N=b,b=N.next,N.next=null,r.lastBaseUpdate=N,r.shared.pending=null}}while(!0);j===null&&(x=Q),r.baseState=x,r.firstBaseUpdate=A,r.lastBaseUpdate=j,u===null&&(r.shared.lanes=0),fa|=h,t.lanes=h,t.memoizedState=Q}}function Bd(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Hd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Bd(n[t],e)}var Li=w(null),kl=w(0);function qd(t,e){t=kn,B(kl,t),B(Li,e),kn=t|e.baseLanes}function Wr(){B(kl,kn),B(Li,Li.current)}function tu(){kn=kl.current,q(Li),q(kl)}var qe=w(null),We=null;function oa(t){var e=t.alternate;B(Pt,Pt.current&1),B(qe,t),We===null&&(e===null||Li.current!==null||e.memoizedState!==null)&&(We=t)}function eu(t){B(Pt,Pt.current),B(qe,t),We===null&&(We=t)}function kd(t){t.tag===22?(B(Pt,Pt.current),B(qe,t),We===null&&(We=t)):ra()}function ra(){B(Pt,Pt.current),B(qe,qe.current)}function ke(t){q(qe),We===t&&(We=null),q(Pt)}var Pt=w(0);function Ql(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||oc(n)||rc(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 Dn=0,yt=null,Ut=null,Jt=null,Vl=!1,Ni=!1,Pa=!1,Gl=0,zs=0,ji=null,Jv=0;function Xt(){throw Error(o(321))}function nu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Be(t[n],e[n]))return!1;return!0}function au(t,e,n,i,r,u){return Dn=u,yt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,C.H=t===null||t.memoizedState===null?Eh:vu,Pa=!1,u=n(i,r),Pa=!1,Ni&&(u=Vd(e,n,i,r)),Qd(t),u}function Qd(t){C.H=Ns;var e=Ut!==null&&Ut.next!==null;if(Dn=0,Jt=Ut=yt=null,Vl=!1,zs=0,ji=null,e)throw Error(o(300));t===null||It||(t=t.dependencies,t!==null&&Ll(t)&&(It=!0))}function Vd(t,e,n,i){yt=t;var r=0;do{if(Ni&&(ji=null),zs=0,Ni=!1,25<=r)throw Error(o(301));if(r+=1,Jt=Ut=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}C.H=wh,u=e(n,i)}while(Ni);return u}function Iv(){var t=C.H,e=t.useState()[0];return e=typeof e.then=="function"?Ds(e):e,t=t.useState()[0],(Ut!==null?Ut.memoizedState:null)!==t&&(yt.flags|=1024),e}function iu(){var t=Gl!==0;return Gl=0,t}function su(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function lu(t){if(Vl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Vl=!1}Dn=0,Jt=Ut=yt=null,Ni=!1,zs=Gl=0,ji=null}function xe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?yt.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Ft(){if(Ut===null){var t=yt.alternate;t=t!==null?t.memoizedState:null}else t=Ut.next;var e=Jt===null?yt.memoizedState:Jt.next;if(e!==null)Jt=e,Ut=t;else{if(t===null)throw yt.alternate===null?Error(o(467)):Error(o(310));Ut=t,t={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},Jt===null?yt.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function Yl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ds(t){var e=zs;return zs+=1,ji===null&&(ji=[]),t=Dd(ji,t,e),e=yt,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,C.H=e===null||e.memoizedState===null?Eh:vu),t}function Kl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ds(t);if(t.$$typeof===P)return de(t)}throw Error(o(438,String(t)))}function ou(t){var e=null,n=yt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=yt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Yl(),yt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=ot;return e.index++,n}function Ln(t,e){return typeof e=="function"?e(t):e}function Xl(t){var e=Ft();return ru(e,Ut,t)}function ru(t,e,n){var i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var r=t.baseQueue,u=i.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}e.baseQueue=r=u,i.pending=null}if(u=t.baseState,r===null)t.memoizedState=u;else{e=r.next;var b=h=null,x=null,A=e,j=!1;do{var Q=A.lane&-536870913;if(Q!==A.lane?(Et&Q)===Q:(Dn&Q)===Q){var O=A.revertLane;if(O===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),Q===Ai&&(j=!0);else if((Dn&O)===O){A=A.next,O===Ai&&(j=!0);continue}else Q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},x===null?(b=x=Q,h=u):x=x.next=Q,yt.lanes|=O,fa|=O;Q=A.action,Pa&&n(u,Q),u=A.hasEagerState?A.eagerState:n(u,Q)}else O={lane:Q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},x===null?(b=x=O,h=u):x=x.next=O,yt.lanes|=Q,fa|=Q;A=A.next}while(A!==null&&A!==e);if(x===null?h=u:x.next=b,!Be(u,t.memoizedState)&&(It=!0,j&&(n=Oi,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=x,i.lastRenderedState=u}return r===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function uu(t){var e=Ft(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,u=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do u=t(u,h.action),h=h.next;while(h!==r);Be(u,e.memoizedState)||(It=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,i]}function Gd(t,e,n){var i=yt,r=Ft(),u=Tt;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var h=!Be((Ut||r).memoizedState,n);if(h&&(r.memoizedState=n,It=!0),r=r.queue,du(Xd.bind(null,i,r,t),[t]),r.getSnapshot!==e||h||Jt!==null&&Jt.memoizedState.tag&1){if(i.flags|=2048,Ui(9,{destroy:void 0},Kd.bind(null,i,r,n,e),null),qt===null)throw Error(o(349));u||(Dn&127)!==0||Yd(i,e,n)}return n}function Yd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=yt.updateQueue,e===null?(e=Yl(),yt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Kd(t,e,n,i){e.value=n,e.getSnapshot=i,Zd(e)&&Pd(t)}function Xd(t,e,n){return n(function(){Zd(e)&&Pd(t)})}function Zd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Be(t,n)}catch{return!0}}function Pd(t){var e=qa(t,2);e!==null&&Le(e,t,2)}function cu(t){var e=xe();if(typeof t=="function"){var n=t;if(t=n(),Pa){sn(!0);try{n()}finally{sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:t},e}function Fd(t,e,n,i){return t.baseState=n,ru(t,Ut,typeof i=="function"?i:Ln)}function Wv(t,e,n,i,r){if(Fl(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};C.T!==null?n(!0):u.isTransition=!1,i(u),n=e.pending,n===null?(u.next=e.pending=u,$d(e,u)):(u.next=n.next,e.pending=n.next=u)}}function $d(t,e){var n=e.action,i=e.payload,r=t.state;if(e.isTransition){var u=C.T,h={};C.T=h;try{var b=n(r,i),x=C.S;x!==null&&x(h,b),Jd(t,e,b)}catch(A){fu(t,e,A)}finally{u!==null&&h.types!==null&&(u.types=h.types),C.T=u}}else try{u=n(r,i),Jd(t,e,u)}catch(A){fu(t,e,A)}}function Jd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Id(t,e,i)},function(i){return fu(t,e,i)}):Id(t,e,n)}function Id(t,e,n){e.status="fulfilled",e.value=n,Wd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$d(t,n)))}function fu(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,Wd(e),e=e.next;while(e!==i)}t.action=null}function Wd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function th(t,e){return e}function eh(t,e){if(Tt){var n=qt.formState;if(n!==null){t:{var i=yt;if(Tt){if(kt){e:{for(var r=kt,u=Ie;r.nodeType!==8;){if(!u){r=null;break e}if(r=tn(r.nextSibling),r===null){r=null;break e}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){kt=tn(r.nextSibling),i=r.data==="F!";break t}}na(i)}i=!1}i&&(e=n[0])}}return n=xe(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:th,lastRenderedState:e},n.queue=i,n=Sh.bind(null,yt,i),i.dispatch=n,i=cu(!1),u=gu.bind(null,yt,!1,i.queue),i=xe(),r={state:e,dispatch:null,action:t,pending:null},i.queue=r,n=Wv.bind(null,yt,r,u,n),r.dispatch=n,i.memoizedState=t,[e,n,!1]}function nh(t){var e=Ft();return ah(e,Ut,t)}function ah(t,e,n){if(e=ru(t,e,th)[0],t=Xl(Ln)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=Ds(e)}catch(h){throw h===zi?Ul:h}else i=e;e=Ft();var r=e.queue,u=r.dispatch;return n!==e.memoizedState&&(yt.flags|=2048,Ui(9,{destroy:void 0},t0.bind(null,r,n),null)),[i,u,t]}function t0(t,e){t.action=e}function ih(t){var e=Ft(),n=Ut;if(n!==null)return ah(e,n,t);Ft(),e=e.memoizedState,n=Ft();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Ui(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=yt.updateQueue,e===null&&(e=Yl(),yt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function sh(){return Ft().memoizedState}function Zl(t,e,n,i){var r=xe();yt.flags|=t,r.memoizedState=Ui(1|e,{destroy:void 0},n,i===void 0?null:i)}function Pl(t,e,n,i){var r=Ft();i=i===void 0?null:i;var u=r.memoizedState.inst;Ut!==null&&i!==null&&nu(i,Ut.memoizedState.deps)?r.memoizedState=Ui(e,u,n,i):(yt.flags|=t,r.memoizedState=Ui(1|e,u,n,i))}function lh(t,e){Zl(8390656,8,t,e)}function du(t,e){Pl(2048,8,t,e)}function e0(t){yt.flags|=4;var e=yt.updateQueue;if(e===null)e=Yl(),yt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function oh(t){var e=Ft().memoizedState;return e0({ref:e,nextImpl:t}),function(){if((zt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function rh(t,e){return Pl(4,2,t,e)}function uh(t,e){return Pl(4,4,t,e)}function ch(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 fh(t,e,n){n=n!=null?n.concat([t]):null,Pl(4,4,ch.bind(null,e,t),n)}function hu(){}function dh(t,e){var n=Ft();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&nu(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function hh(t,e){var n=Ft();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&nu(e,i[1]))return i[0];if(i=t(),Pa){sn(!0);try{t()}finally{sn(!1)}}return n.memoizedState=[i,e],i}function mu(t,e,n){return n===void 0||(Dn&1073741824)!==0&&(Et&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=mm(),yt.lanes|=t,fa|=t,n)}function mh(t,e,n,i){return Be(n,e)?n:Li.current!==null?(t=mu(t,n,i),Be(t,e)||(It=!0),t):(Dn&42)===0||(Dn&1073741824)!==0&&(Et&261930)===0?(It=!0,t.memoizedState=n):(t=mm(),yt.lanes|=t,fa|=t,e)}function ph(t,e,n,i,r){var u=X.p;X.p=u!==0&&8>u?u:8;var h=C.T,b={};C.T=b,gu(t,!1,e,n);try{var x=r(),A=C.S;if(A!==null&&A(b,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var j=$v(x,i);Ls(t,e,j,Ge(t))}else Ls(t,e,i,Ge(t))}catch(Q){Ls(t,e,{then:function(){},status:"rejected",reason:Q},Ge())}finally{X.p=u,h!==null&&b.types!==null&&(h.types=b.types),C.T=h}}function n0(){}function pu(t,e,n,i){if(t.tag!==5)throw Error(o(476));var r=yh(t).queue;ph(t,r,e,Y,n===null?n0:function(){return gh(t),n(i)})}function yh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:Y},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function gh(t){var e=yh(t);e.next===null&&(e=t.alternate.memoizedState),Ls(t,e.next.queue,{},Ge())}function yu(){return de($s)}function vh(){return Ft().memoizedState}function bh(){return Ft().memoizedState}function a0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ge();t=sa(n);var i=la(e,t,n);i!==null&&(Le(i,e,n),Ms(i,e,n)),e={cache:Kr()},t.payload=e;return}e=e.return}}function i0(t,e,n){var i=Ge();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fl(t)?_h(e,n):(n=Nr(t,e,n,i),n!==null&&(Le(n,t,i),xh(n,e,i)))}function Sh(t,e,n){var i=Ge();Ls(t,e,n,i)}function Ls(t,e,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fl(t))_h(e,r);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,b=u(h,n);if(r.hasEagerState=!0,r.eagerState=b,Be(b,h))return Al(t,e,r,0),qt===null&&Ml(),!1}catch{}finally{}if(n=Nr(t,e,r,i),n!==null)return Le(n,t,i),xh(n,e,i),!0}return!1}function gu(t,e,n,i){if(i={lane:2,revertLane:Fu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Fl(t)){if(e)throw Error(o(479))}else e=Nr(t,n,i,2),e!==null&&Le(e,t,2)}function Fl(t){var e=t.alternate;return t===yt||e!==null&&e===yt}function _h(t,e){Ni=Vl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function xh(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Re(t,n)}}var Ns={readContext:de,use:Kl,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};Ns.useEffectEvent=Xt;var Eh={readContext:de,use:Kl,useCallback:function(t,e){return xe().memoizedState=[t,e===void 0?null:e],t},useContext:de,useEffect:lh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Zl(4194308,4,ch.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Zl(4194308,4,t,e)},useInsertionEffect:function(t,e){Zl(4,2,t,e)},useMemo:function(t,e){var n=xe();e=e===void 0?null:e;var i=t();if(Pa){sn(!0);try{t()}finally{sn(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=xe();if(n!==void 0){var r=n(e);if(Pa){sn(!0);try{n(e)}finally{sn(!1)}}}else r=e;return i.memoizedState=i.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},i.queue=t,t=t.dispatch=i0.bind(null,yt,t),[i.memoizedState,t]},useRef:function(t){var e=xe();return t={current:t},e.memoizedState=t},useState:function(t){t=cu(t);var e=t.queue,n=Sh.bind(null,yt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:hu,useDeferredValue:function(t,e){var n=xe();return mu(n,t,e)},useTransition:function(){var t=cu(!1);return t=ph.bind(null,yt,t.queue,!0,!1),xe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=yt,r=xe();if(Tt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),qt===null)throw Error(o(349));(Et&127)!==0||Yd(i,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,lh(Xd.bind(null,i,u,t),[t]),i.flags|=2048,Ui(9,{destroy:void 0},Kd.bind(null,i,u,n,e),null),n},useId:function(){var t=xe(),e=qt.identifierPrefix;if(Tt){var n=yn,i=pn;n=(i&~(1<<32-pe(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Gl++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Jv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:yu,useFormState:eh,useActionState:eh,useOptimistic:function(t){var e=xe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=gu.bind(null,yt,!0,n),n.dispatch=e,[t,e]},useMemoCache:ou,useCacheRefresh:function(){return xe().memoizedState=a0.bind(null,yt)},useEffectEvent:function(t){var e=xe(),n={impl:t};return e.memoizedState=n,function(){if((zt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},vu={readContext:de,use:Kl,useCallback:dh,useContext:de,useEffect:du,useImperativeHandle:fh,useInsertionEffect:rh,useLayoutEffect:uh,useMemo:hh,useReducer:Xl,useRef:sh,useState:function(){return Xl(Ln)},useDebugValue:hu,useDeferredValue:function(t,e){var n=Ft();return mh(n,Ut.memoizedState,t,e)},useTransition:function(){var t=Xl(Ln)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:Ds(t),e]},useSyncExternalStore:Gd,useId:vh,useHostTransitionStatus:yu,useFormState:nh,useActionState:nh,useOptimistic:function(t,e){var n=Ft();return Fd(n,Ut,t,e)},useMemoCache:ou,useCacheRefresh:bh};vu.useEffectEvent=oh;var wh={readContext:de,use:Kl,useCallback:dh,useContext:de,useEffect:du,useImperativeHandle:fh,useInsertionEffect:rh,useLayoutEffect:uh,useMemo:hh,useReducer:uu,useRef:sh,useState:function(){return uu(Ln)},useDebugValue:hu,useDeferredValue:function(t,e){var n=Ft();return Ut===null?mu(n,t,e):mh(n,Ut.memoizedState,t,e)},useTransition:function(){var t=uu(Ln)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:Ds(t),e]},useSyncExternalStore:Gd,useId:vh,useHostTransitionStatus:yu,useFormState:ih,useActionState:ih,useOptimistic:function(t,e){var n=Ft();return Ut!==null?Fd(n,Ut,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ou,useCacheRefresh:bh};wh.useEffectEvent=oh;function bu(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:p({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Su={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Ge(),r=sa(i);r.payload=e,n!=null&&(r.callback=n),e=la(t,r,i),e!==null&&(Le(e,t,i),Ms(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Ge(),r=sa(i);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=la(t,r,i),e!==null&&(Le(e,t,i),Ms(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ge(),i=sa(n);i.tag=2,e!=null&&(i.callback=e),e=la(t,i,n),e!==null&&(Le(e,t,n),Ms(e,t,n))}};function Rh(t,e,n,i,r,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,u,h):e.prototype&&e.prototype.isPureReactComponent?!Ss(n,i)||!Ss(r,u):!0}function Th(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Su.enqueueReplaceState(e,e.state,null)}function Fa(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=p({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Ch(t){Cl(t)}function Mh(t){console.error(t)}function Ah(t){Cl(t)}function $l(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Oh(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function _u(t,e,n){return n=sa(n),n.tag=3,n.payload={element:null},n.callback=function(){$l(t,e)},n}function zh(t){return t=sa(t),t.tag=3,t}function Dh(t,e,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=i.value;t.payload=function(){return r(u)},t.callback=function(){Oh(e,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Oh(e,n,i),typeof r!="function"&&(da===null?da=new Set([this]):da.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function s0(t,e,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Mi(e,n,r,!0),n=qe.current,n!==null){switch(n.tag){case 31:case 13:return We===null?ro():n.alternate===null&&Zt===0&&(Zt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Bl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Xu(t,i,r)),!1;case 22:return n.flags|=65536,i===Bl?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Xu(t,i,r)),!1}throw Error(o(435,n.tag))}return Xu(t,i,r),ro(),!1}if(Tt)return e=qe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,i!==kr&&(t=Error(o(422),{cause:i}),Es(Fe(t,n)))):(i!==kr&&(e=Error(o(423),{cause:i}),Es(Fe(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,i=Fe(i,n),r=_u(t.stateNode,i,r),Jr(t,r),Zt!==4&&(Zt=2)),!1;var u=Error(o(520),{cause:i});if(u=Fe(u,n),Vs===null?Vs=[u]:Vs.push(u),Zt!==4&&(Zt=2),e===null)return!0;i=Fe(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=_u(n.stateNode,i,t),Jr(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(da===null||!da.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=zh(r),Dh(r,t,n,i),Jr(n,r),!1}n=n.return}while(n!==null);return!1}var xu=Error(o(461)),It=!1;function he(t,e,n,i){e.child=t===null?Ud(e,null,n,i):Za(e,t.child,n,i)}function Lh(t,e,n,i,r){n=n.render;var u=e.ref;if("ref"in i){var h={};for(var b in i)b!=="ref"&&(h[b]=i[b])}else h=i;return Ga(e),i=au(t,e,n,h,u,r),b=iu(),t!==null&&!It?(su(t,e,r),Nn(t,e,r)):(Tt&&b&&Hr(e),e.flags|=1,he(t,e,i,r),e.child)}function Nh(t,e,n,i,r){if(t===null){var u=n.type;return typeof u=="function"&&!jr(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,jh(t,e,u,i,r)):(t=zl(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Ou(t,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ss,n(h,i)&&t.ref===e.ref)return Nn(t,e,r)}return e.flags|=1,t=Mn(u,i),t.ref=e.ref,t.return=e,e.child=t}function jh(t,e,n,i,r){if(t!==null){var u=t.memoizedProps;if(Ss(u,i)&&t.ref===e.ref)if(It=!1,e.pendingProps=i=u,Ou(t,r))(t.flags&131072)!==0&&(It=!0);else return e.lanes=t.lanes,Nn(t,e,r)}return Eu(t,e,n,i,r)}function Uh(t,e,n,i){var r=i.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(i=e.child=t.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~u}else i=0,e.child=null;return Bh(t,e,u,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&jl(e,u!==null?u.cachePool:null),u!==null?qd(e,u):Wr(),kd(e);else return i=e.lanes=536870912,Bh(t,e,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(jl(e,u.cachePool),qd(e,u),ra(),e.memoizedState=null):(t!==null&&jl(e,null),Wr(),ra());return he(t,e,r,n),e.child}function js(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Bh(t,e,n,i,r){var u=Zr();return u=u===null?null:{parent:$t._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&jl(e,null),Wr(),kd(e),t!==null&&Mi(t,e,i,!0),e.childLanes=r,null}function Jl(t,e){return e=Wl({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Hh(t,e,n){return Za(e,t.child,null,n),t=Jl(e,e.pendingProps),t.flags|=2,ke(e),e.memoizedState=null,t}function l0(t,e,n){var i=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Tt){if(i.mode==="hidden")return t=Jl(e,i),e.lanes=536870912,js(null,t);if(eu(e),(t=kt)?(t=$m(t,Ie),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ta!==null?{id:pn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=_d(t),n.return=e,e.child=n,fe=e,kt=null)):t=null,t===null)throw na(e);return e.lanes=536870912,null}return Jl(e,i)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(eu(e),r)if(e.flags&256)e.flags&=-257,e=Hh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(It||Mi(t,e,n,!1),r=(n&t.childLanes)!==0,It||r){if(i=qt,i!==null&&(h=Te(i,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,qa(t,h),Le(i,t,h),xu;ro(),e=Hh(t,e,n)}else t=u.treeContext,kt=tn(h.nextSibling),fe=e,Tt=!0,ea=null,Ie=!1,t!==null&&wd(e,t),e=Jl(e,i),e.flags|=4096;return e}return t=Mn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Il(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 Eu(t,e,n,i,r){return Ga(e),n=au(t,e,n,i,void 0,r),i=iu(),t!==null&&!It?(su(t,e,r),Nn(t,e,r)):(Tt&&i&&Hr(e),e.flags|=1,he(t,e,n,r),e.child)}function qh(t,e,n,i,r,u){return Ga(e),e.updateQueue=null,n=Vd(e,i,n,r),Qd(t),i=iu(),t!==null&&!It?(su(t,e,u),Nn(t,e,u)):(Tt&&i&&Hr(e),e.flags|=1,he(t,e,n,u),e.child)}function kh(t,e,n,i,r){if(Ga(e),e.stateNode===null){var u=wi,h=n.contextType;typeof h=="object"&&h!==null&&(u=de(h)),u=new n(i,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Su,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=i,u.state=e.memoizedState,u.refs={},Fr(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?de(h):wi,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(bu(e,n,h,i),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Su.enqueueReplaceState(u,u.state,null),Os(e,i,u,r),As(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){u=e.stateNode;var b=e.memoizedProps,x=Fa(n,b);u.props=x;var A=u.context,j=n.contextType;h=wi,typeof j=="object"&&j!==null&&(h=de(j));var Q=n.getDerivedStateFromProps;j=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,j||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||A!==h)&&Th(e,u,i,h),ia=!1;var O=e.memoizedState;u.state=O,Os(e,i,u,r),As(),A=e.memoizedState,b||O!==A||ia?(typeof Q=="function"&&(bu(e,n,Q,i),A=e.memoizedState),(x=ia||Rh(e,n,x,i,O,A,h))?(j||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=A),u.props=i,u.state=A,u.context=h,i=x):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{u=e.stateNode,$r(t,e),h=e.memoizedProps,j=Fa(n,h),u.props=j,Q=e.pendingProps,O=u.context,A=n.contextType,x=wi,typeof A=="object"&&A!==null&&(x=de(A)),b=n.getDerivedStateFromProps,(A=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==Q||O!==x)&&Th(e,u,i,x),ia=!1,O=e.memoizedState,u.state=O,Os(e,i,u,r),As();var N=e.memoizedState;h!==Q||O!==N||ia||t!==null&&t.dependencies!==null&&Ll(t.dependencies)?(typeof b=="function"&&(bu(e,n,b,i),N=e.memoizedState),(j=ia||Rh(e,n,j,i,O,N,x)||t!==null&&t.dependencies!==null&&Ll(t.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,N,x),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,N,x)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=N),u.props=i,u.state=N,u.context=x,i=j):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),i=!1)}return u=i,Il(t,e),i=(e.flags&128)!==0,u||i?(u=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&i?(e.child=Za(e,t.child,null,r),e.child=Za(e,null,n,r)):he(t,e,n,r),e.memoizedState=u.state,t=e.child):t=Nn(t,e,r),t}function Qh(t,e,n,i){return Qa(),e.flags|=256,he(t,e,n,i),e.child}var wu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ru(t){return{baseLanes:t,cachePool:Od()}}function Tu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ve),t}function Vh(t,e,n){var i=e.pendingProps,r=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Pt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(Tt){if(r?oa(e):ra(),(t=kt)?(t=$m(t,Ie),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ta!==null?{id:pn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=_d(t),n.return=e,e.child=n,fe=e,kt=null)):t=null,t===null)throw na(e);return rc(t)?e.lanes=32:e.lanes=536870912,null}var b=i.children;return i=i.fallback,r?(ra(),r=e.mode,b=Wl({mode:"hidden",children:b},r),i=ka(i,r,n,null),b.return=e,i.return=e,b.sibling=i,e.child=b,i=e.child,i.memoizedState=Ru(n),i.childLanes=Tu(t,h,n),e.memoizedState=wu,js(null,i)):(oa(e),Cu(e,b))}var x=t.memoizedState;if(x!==null&&(b=x.dehydrated,b!==null)){if(u)e.flags&256?(oa(e),e.flags&=-257,e=Mu(t,e,n)):e.memoizedState!==null?(ra(),e.child=t.child,e.flags|=128,e=null):(ra(),b=i.fallback,r=e.mode,i=Wl({mode:"visible",children:i.children},r),b=ka(b,r,n,null),b.flags|=2,i.return=e,b.return=e,i.sibling=b,e.child=i,Za(e,t.child,null,n),i=e.child,i.memoizedState=Ru(n),i.childLanes=Tu(t,h,n),e.memoizedState=wu,e=js(null,i));else if(oa(e),rc(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var A=h.dgst;h=A,i=Error(o(419)),i.stack="",i.digest=h,Es({value:i,source:null,stack:null}),e=Mu(t,e,n)}else if(It||Mi(t,e,n,!1),h=(n&t.childLanes)!==0,It||h){if(h=qt,h!==null&&(i=Te(h,n),i!==0&&i!==x.retryLane))throw x.retryLane=i,qa(t,i),Le(h,t,i),xu;oc(b)||ro(),e=Mu(t,e,n)}else oc(b)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,kt=tn(b.nextSibling),fe=e,Tt=!0,ea=null,Ie=!1,t!==null&&wd(e,t),e=Cu(e,i.children),e.flags|=4096);return e}return r?(ra(),b=i.fallback,r=e.mode,x=t.child,A=x.sibling,i=Mn(x,{mode:"hidden",children:i.children}),i.subtreeFlags=x.subtreeFlags&65011712,A!==null?b=Mn(A,b):(b=ka(b,r,n,null),b.flags|=2),b.return=e,i.return=e,i.sibling=b,e.child=i,js(null,i),i=e.child,b=t.child.memoizedState,b===null?b=Ru(n):(r=b.cachePool,r!==null?(x=$t._currentValue,r=r.parent!==x?{parent:x,pool:x}:r):r=Od(),b={baseLanes:b.baseLanes|n,cachePool:r}),i.memoizedState=b,i.childLanes=Tu(t,h,n),e.memoizedState=wu,js(t.child,i)):(oa(e),n=t.child,t=n.sibling,n=Mn(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function Cu(t,e){return e=Wl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Wl(t,e){return t=He(22,t,null,e),t.lanes=0,t}function Mu(t,e,n){return Za(e,t.child,null,n),t=Cu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Gh(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Gr(t.return,e,n)}function Au(t,e,n,i,r,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=r,h.treeForkCount=u)}function Yh(t,e,n){var i=e.pendingProps,r=i.revealOrder,u=i.tail;i=i.children;var h=Pt.current,b=(h&2)!==0;if(b?(h=h&1|2,e.flags|=128):h&=1,B(Pt,h),he(t,e,i,n),i=Tt?xs:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Gh(t,n,e);else if(t.tag===19)Gh(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(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Ql(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Au(e,!1,r,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Ql(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Au(e,!0,n,null,u,i);break;case"together":Au(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function Nn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),fa|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Mi(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=Mn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Mn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Ou(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ll(t)))}function o0(t,e,n){switch(e.tag){case 3:ct(e,e.stateNode.containerInfo),aa(e,$t,t.memoizedState.cache),Qa();break;case 27:case 5:te(e);break;case 4:ct(e,e.stateNode.containerInfo);break;case 10:aa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,eu(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(oa(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Vh(t,e,n):(oa(e),t=Nn(t,e,n),t!==null?t.sibling:null);oa(e);break;case 19:var r=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Mi(t,e,n,!1),i=(n&e.childLanes)!==0),r){if(i)return Yh(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),B(Pt,Pt.current),i)break;return null;case 22:return e.lanes=0,Uh(t,e,n,e.pendingProps);case 24:aa(e,$t,t.memoizedState.cache)}return Nn(t,e,n)}function Kh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)It=!0;else{if(!Ou(t,n)&&(e.flags&128)===0)return It=!1,o0(t,e,n);It=(t.flags&131072)!==0}else It=!1,Tt&&(e.flags&1048576)!==0&&Ed(e,xs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=Ka(e.elementType),e.type=t,typeof t=="function")jr(t)?(i=Fa(t,i),e.tag=1,e=kh(null,e,t,i,n)):(e.tag=0,e=Eu(null,e,t,i,n));else{if(t!=null){var r=t.$$typeof;if(r===I){e.tag=11,e=Lh(null,e,t,i,n);break t}else if(r===V){e.tag=14,e=Nh(null,e,t,i,n);break t}}throw e=Dt(t)||t,Error(o(306,e,""))}}return e;case 0:return Eu(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,r=Fa(i,e.pendingProps),kh(t,e,i,r,n);case 3:t:{if(ct(e,e.stateNode.containerInfo),t===null)throw Error(o(387));i=e.pendingProps;var u=e.memoizedState;r=u.element,$r(t,e),Os(e,i,null,n);var h=e.memoizedState;if(i=h.cache,aa(e,$t,i),i!==u.cache&&Yr(e,[$t],n,!0),As(),i=h.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Qh(t,e,i,n);break t}else if(i!==r){r=Fe(Error(o(424)),e),Es(r),e=Qh(t,e,i,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(kt=tn(t.firstChild),fe=e,Tt=!0,ea=null,Ie=!0,n=Ud(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Qa(),i===r){e=Nn(t,e,n);break t}he(t,e,i,n)}e=e.child}return e;case 26:return Il(t,e),t===null?(n=np(e.type,null,e.pendingProps,null))?e.memoizedState=n:Tt||(n=e.type,t=e.pendingProps,i=yo(at.current).createElement(n),i[ce]=e,i[Ce]=t,me(i,n,t),oe(i),e.stateNode=i):e.memoizedState=np(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return te(e),t===null&&Tt&&(i=e.stateNode=Wm(e.type,e.pendingProps,at.current),fe=e,Ie=!0,r=kt,ya(e.type)?(uc=r,kt=tn(i.firstChild)):kt=r),he(t,e,e.pendingProps.children,n),Il(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Tt&&((r=i=kt)&&(i=B0(i,e.type,e.pendingProps,Ie),i!==null?(e.stateNode=i,fe=e,kt=tn(i.firstChild),Ie=!1,r=!0):r=!1),r||na(e)),te(e),r=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,i=u.children,ic(r,u)?i=null:h!==null&&ic(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=au(t,e,Iv,null,null,n),$s._currentValue=r),Il(t,e),he(t,e,i,n),e.child;case 6:return t===null&&Tt&&((t=n=kt)&&(n=H0(n,e.pendingProps,Ie),n!==null?(e.stateNode=n,fe=e,kt=null,t=!0):t=!1),t||na(e)),null;case 13:return Vh(t,e,n);case 4:return ct(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Za(e,null,i,n):he(t,e,i,n),e.child;case 11:return Lh(t,e,e.type,e.pendingProps,n);case 7:return he(t,e,e.pendingProps,n),e.child;case 8:return he(t,e,e.pendingProps.children,n),e.child;case 12:return he(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,aa(e,e.type,i.value),he(t,e,i.children,n),e.child;case 9:return r=e.type._context,i=e.pendingProps.children,Ga(e),r=de(r),i=i(r),e.flags|=1,he(t,e,i,n),e.child;case 14:return Nh(t,e,e.type,e.pendingProps,n);case 15:return jh(t,e,e.type,e.pendingProps,n);case 19:return Yh(t,e,n);case 31:return l0(t,e,n);case 22:return Uh(t,e,n,e.pendingProps);case 24:return Ga(e),i=de($t),t===null?(r=Zr(),r===null&&(r=qt,u=Kr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),e.memoizedState={parent:i,cache:r},Fr(e),aa(e,$t,r)):((t.lanes&n)!==0&&($r(t,e),Os(e,null,null,n),As()),r=t.memoizedState,u=e.memoizedState,r.parent!==i?(r={parent:i,cache:i},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),aa(e,$t,i)):(i=u.cache,aa(e,$t,i),i!==r.cache&&Yr(e,[$t],n,!0))),he(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function jn(t){t.flags|=4}function zu(t,e,n,i,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(vm())t.flags|=8192;else throw Xa=Bl,Pr}else t.flags&=-16777217}function Xh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!op(e))if(vm())t.flags|=8192;else throw Xa=Bl,Pr}function to(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ye():536870912,t.lanes|=e,ki|=e)}function Us(t,e){if(!Tt)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function r0(t,e,n){var i=e.pendingProps;switch(qr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(e),null;case 1:return Qt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),zn($t),bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ci(e)?jn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Qr())),Qt(e),null;case 26:var r=e.type,u=e.memoizedState;return t===null?(jn(e),u!==null?(Qt(e),Xh(e,u)):(Qt(e),zu(e,r,null,i,n))):u?u!==t.memoizedState?(jn(e),Qt(e),Xh(e,u)):(Qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&jn(e),Qt(e),zu(e,r,t,i,n)),null;case 27:if(ue(e),n=at.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&jn(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return Qt(e),null}t=Z.current,Ci(e)?Rd(e):(t=Wm(r,i,n),e.stateNode=t,jn(e))}return Qt(e),null;case 5:if(ue(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&jn(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return Qt(e),null}if(u=Z.current,Ci(e))Rd(e);else{var h=yo(at.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?h.createElement(r,{is:i.is}):h.createElement(r)}}u[ce]=e,u[Ce]=i;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(me(u,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&jn(e)}}return Qt(e),zu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&jn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(o(166));if(t=at.current,Ci(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,r=fe,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}t[ce]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Vm(t.nodeValue,n)),t||na(e,!0)}else t=yo(t).createTextNode(i),t[ce]=e,e.stateNode=t}return Qt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Ci(e),n!==null){if(t===null){if(!i)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ce]=e}else Qa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),t=!1}else n=Qr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ke(e),e):(ke(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Qt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Ci(e),i!==null&&i.dehydrated!==null){if(t===null){if(!r)throw Error(o(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[ce]=e}else Qa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),r=!1}else r=Qr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(ke(e),e):(ke(e),null)}return ke(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==r&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),to(e,e.updateQueue),Qt(e),null);case 4:return bt(),t===null&&Wu(e.stateNode.containerInfo),Qt(e),null;case 10:return zn(e.type),Qt(e),null;case 19:if(q(Pt),i=e.memoizedState,i===null)return Qt(e),null;if(r=(e.flags&128)!==0,u=i.rendering,u===null)if(r)Us(i,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Ql(t),u!==null){for(e.flags|=128,Us(i,!1),t=u.updateQueue,e.updateQueue=t,to(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Sd(n,t),n=n.sibling;return B(Pt,Pt.current&1|2),Tt&&An(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Ct()>so&&(e.flags|=128,r=!0,Us(i,!1),e.lanes=4194304)}else{if(!r)if(t=Ql(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,to(e,t),Us(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Tt)return Qt(e),null}else 2*Ct()-i.renderingStartTime>so&&n!==536870912&&(e.flags|=128,r=!0,Us(i,!1),e.lanes=4194304);i.isBackwards?(u.sibling=e.child,e.child=u):(t=i.last,t!==null?t.sibling=u:e.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ct(),t.sibling=null,n=Pt.current,B(Pt,r?n&1|2:n&1),Tt&&An(e,i.treeForkCount),t):(Qt(e),null);case 22:case 23:return ke(e),tu(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Qt(e),e.subtreeFlags&6&&(e.flags|=8192)):Qt(e),n=e.updateQueue,n!==null&&to(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&q(Ya),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),zn($t),Qt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function u0(t,e){switch(qr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return zn($t),bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ue(e),null;case 31:if(e.memoizedState!==null){if(ke(e),e.alternate===null)throw Error(o(340));Qa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ke(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Qa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Pt),null;case 4:return bt(),null;case 10:return zn(e.type),null;case 22:case 23:return ke(e),tu(),t!==null&&q(Ya),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return zn($t),null;case 25:return null;default:return null}}function Zh(t,e){switch(qr(e),e.tag){case 3:zn($t),bt();break;case 26:case 27:case 5:ue(e);break;case 4:bt();break;case 31:e.memoizedState!==null&&ke(e);break;case 13:ke(e);break;case 19:q(Pt);break;case 10:zn(e.type);break;case 22:case 23:ke(e),tu(),t!==null&&q(Ya);break;case 24:zn($t)}}function Bs(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&t)===t){i=void 0;var u=n.create,h=n.inst;i=u(),h.destroy=i}n=n.next}while(n!==r)}}catch(b){jt(e,e.return,b)}}function ua(t,e,n){try{var i=e.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&t)===t){var h=i.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,r=e;var x=n,A=b;try{A()}catch(j){jt(r,x,j)}}}i=i.next}while(i!==u)}}catch(j){jt(e,e.return,j)}}function Ph(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Hd(e,n)}catch(i){jt(t,t.return,i)}}}function Fh(t,e,n){n.props=Fa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){jt(t,e,i)}}function Hs(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(r){jt(t,e,r)}}function gn(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){jt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){jt(t,e,r)}else n.current=null}function $h(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){jt(t,t.return,r)}}function Du(t,e,n){try{var i=t.stateNode;z0(i,t.type,n,e),i[Ce]=e}catch(r){jt(t,t.return,r)}}function Jh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ya(t.type)||t.tag===4}function Lu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Jh(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&&ya(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 Nu(t,e,n){var i=t.tag;if(i===5||i===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=Tn));else if(i!==4&&(i===27&&ya(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Nu(t,e,n),t=t.sibling;t!==null;)Nu(t,e,n),t=t.sibling}function eo(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&ya(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(eo(t,e,n),t=t.sibling;t!==null;)eo(t,e,n),t=t.sibling}function Ih(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);me(e,i,n),e[ce]=t,e[Ce]=n}catch(u){jt(t,t.return,u)}}var Un=!1,Wt=!1,ju=!1,Wh=typeof WeakSet=="function"?WeakSet:Set,re=null;function c0(t,e){if(t=t.containerInfo,nc=Eo,t=fd(t),Mr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,b=-1,x=-1,A=0,j=0,Q=t,O=null;e:for(;;){for(var N;Q!==n||r!==0&&Q.nodeType!==3||(b=h+r),Q!==u||i!==0&&Q.nodeType!==3||(x=h+i),Q.nodeType===3&&(h+=Q.nodeValue.length),(N=Q.firstChild)!==null;)O=Q,Q=N;for(;;){if(Q===t)break e;if(O===n&&++A===r&&(b=h),O===u&&++j===i&&(x=h),(N=Q.nextSibling)!==null)break;Q=O,O=Q.parentNode}Q=N}n=b===-1||x===-1?null:{start:b,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(ac={focusedElem:t,selectionRange:n},Eo=!1,re=e;re!==null;)if(e=re,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,re=t;else for(;re!==null;){switch(e=re,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,r=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var tt=Fa(n.type,r);t=i.getSnapshotBeforeUpdate(tt,u),i.__reactInternalSnapshotBeforeUpdate=t}catch(ut){jt(n,n.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)lc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":lc(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,re=t;break}re=e.return}}function tm(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Hn(t,n),i&4&&Bs(5,n);break;case 1:if(Hn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){jt(n,n.return,h)}else{var r=Fa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){jt(n,n.return,h)}}i&64&&Ph(n),i&512&&Hs(n,n.return);break;case 3:if(Hn(t,n),i&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{Hd(t,e)}catch(h){jt(n,n.return,h)}}break;case 27:e===null&&i&4&&Ih(n);case 26:case 5:Hn(t,n),e===null&&i&4&&$h(n),i&512&&Hs(n,n.return);break;case 12:Hn(t,n);break;case 31:Hn(t,n),i&4&&am(t,n);break;case 13:Hn(t,n),i&4&&im(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=b0.bind(null,n),q0(t,n))));break;case 22:if(i=n.memoizedState!==null||Un,!i){e=e!==null&&e.memoizedState!==null||Wt,r=Un;var u=Wt;Un=i,(Wt=e)&&!u?qn(t,n,(n.subtreeFlags&8772)!==0):Hn(t,n),Un=r,Wt=u}break;case 30:break;default:Hn(t,n)}}function em(t){var e=t.alternate;e!==null&&(t.alternate=null,em(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&fr(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 Gt=null,Ae=!1;function Bn(t,e,n){for(n=n.child;n!==null;)nm(t,e,n),n=n.sibling}function nm(t,e,n){if(_e&&typeof _e.onCommitFiberUnmount=="function")try{_e.onCommitFiberUnmount(Da,n)}catch{}switch(n.tag){case 26:Wt||gn(n,e),Bn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||gn(n,e);var i=Gt,r=Ae;ya(n.type)&&(Gt=n.stateNode,Ae=!1),Bn(t,e,n),Zs(n.stateNode),Gt=i,Ae=r;break;case 5:Wt||gn(n,e);case 6:if(i=Gt,r=Ae,Gt=null,Bn(t,e,n),Gt=i,Ae=r,Gt!==null)if(Ae)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(n.stateNode)}catch(u){jt(n,e,u)}else try{Gt.removeChild(n.stateNode)}catch(u){jt(n,e,u)}break;case 18:Gt!==null&&(Ae?(t=Gt,Pm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Pi(t)):Pm(Gt,n.stateNode));break;case 4:i=Gt,r=Ae,Gt=n.stateNode.containerInfo,Ae=!0,Bn(t,e,n),Gt=i,Ae=r;break;case 0:case 11:case 14:case 15:ua(2,n,e),Wt||ua(4,n,e),Bn(t,e,n);break;case 1:Wt||(gn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Fh(n,e,i)),Bn(t,e,n);break;case 21:Bn(t,e,n);break;case 22:Wt=(i=Wt)||n.memoizedState!==null,Bn(t,e,n),Wt=i;break;default:Bn(t,e,n)}}function am(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Pi(t)}catch(n){jt(e,e.return,n)}}}function im(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Pi(t)}catch(n){jt(e,e.return,n)}}function f0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Wh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Wh),e;default:throw Error(o(435,t.tag))}}function no(t,e){var n=f0(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var r=S0.bind(null,t,i);i.then(r,r)}})}function Oe(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],u=t,h=e,b=h;t:for(;b!==null;){switch(b.tag){case 27:if(ya(b.type)){Gt=b.stateNode,Ae=!1;break t}break;case 5:Gt=b.stateNode,Ae=!1;break t;case 3:case 4:Gt=b.stateNode.containerInfo,Ae=!0;break t}b=b.return}if(Gt===null)throw Error(o(160));nm(u,h,r),Gt=null,Ae=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)sm(e,t),e=e.sibling}var rn=null;function sm(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Oe(e,t),ze(t),i&4&&(ua(3,t,t.return),Bs(3,t),ua(5,t,t.return));break;case 1:Oe(e,t),ze(t),i&512&&(Wt||n===null||gn(n,n.return)),i&64&&Un&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=rn;if(Oe(e,t),ze(t),i&512&&(Wt||n===null||gn(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(i){case"title":u=r.getElementsByTagName("title")[0],(!u||u[fs]||u[ce]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(i),r.head.insertBefore(u,r.querySelector("head > title"))),me(u,i,n),u[ce]=t,oe(u),i=u;break t;case"link":var h=sp("link","href",r).get(i+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(u=h[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(b,1);break e}}u=r.createElement(i),me(u,i,n),r.head.appendChild(u);break;case"meta":if(h=sp("meta","content",r).get(i+(n.content||""))){for(b=0;b<h.length;b++)if(u=h[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(b,1);break e}}u=r.createElement(i),me(u,i,n),r.head.appendChild(u);break;default:throw Error(o(468,i))}u[ce]=t,oe(u),i=u}t.stateNode=i}else lp(r,t.type,t.stateNode);else t.stateNode=ip(r,i,t.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?lp(r,t.type,t.stateNode):ip(r,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Du(t,t.memoizedProps,n.memoizedProps)}break;case 27:Oe(e,t),ze(t),i&512&&(Wt||n===null||gn(n,n.return)),n!==null&&i&4&&Du(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Oe(e,t),ze(t),i&512&&(Wt||n===null||gn(n,n.return)),t.flags&32){r=t.stateNode;try{gi(r,"")}catch(tt){jt(t,t.return,tt)}}i&4&&t.stateNode!=null&&(r=t.memoizedProps,Du(t,r,n!==null?n.memoizedProps:r)),i&1024&&(ju=!0);break;case 6:if(Oe(e,t),ze(t),i&4){if(t.stateNode===null)throw Error(o(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(tt){jt(t,t.return,tt)}}break;case 3:if(bo=null,r=rn,rn=go(e.containerInfo),Oe(e,t),rn=r,ze(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Pi(e.containerInfo)}catch(tt){jt(t,t.return,tt)}ju&&(ju=!1,lm(t));break;case 4:i=rn,rn=go(t.stateNode.containerInfo),Oe(e,t),ze(t),rn=i;break;case 12:Oe(e,t),ze(t);break;case 31:Oe(e,t),ze(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,no(t,i)));break;case 13:Oe(e,t),ze(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(io=Ct()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,no(t,i)));break;case 22:r=t.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,A=Un,j=Wt;if(Un=A||r,Wt=j||x,Oe(e,t),Wt=j,Un=A,ze(t),i&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||x||Un||Wt||$a(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){x=n=e;try{if(u=x.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=x.stateNode;var Q=x.memoizedProps.style,O=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(tt){jt(x,x.return,tt)}}}else if(e.tag===6){if(n===null){x=e;try{x.stateNode.nodeValue=r?"":x.memoizedProps}catch(tt){jt(x,x.return,tt)}}}else if(e.tag===18){if(n===null){x=e;try{var N=x.stateNode;r?Fm(N,!0):Fm(x.stateNode,!1)}catch(tt){jt(x,x.return,tt)}}}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}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,no(t,n))));break;case 19:Oe(e,t),ze(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,no(t,i)));break;case 30:break;case 21:break;default:Oe(e,t),ze(t)}}function ze(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(Jh(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=Lu(t);eo(t,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(gi(h,""),n.flags&=-33);var b=Lu(t);eo(t,b,h);break;case 3:case 4:var x=n.stateNode.containerInfo,A=Lu(t);Nu(t,A,x);break;default:throw Error(o(161))}}catch(j){jt(t,t.return,j)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function lm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;lm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Hn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)tm(t,e.alternate,e),e=e.sibling}function $a(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ua(4,e,e.return),$a(e);break;case 1:gn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Fh(e,e.return,n),$a(e);break;case 27:Zs(e.stateNode);case 26:case 5:gn(e,e.return),$a(e);break;case 22:e.memoizedState===null&&$a(e);break;case 30:$a(e);break;default:$a(e)}t=t.sibling}}function qn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,r=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:qn(r,u,n),Bs(4,u);break;case 1:if(qn(r,u,n),i=u,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(A){jt(i,i.return,A)}if(i=u,r=i.updateQueue,r!==null){var b=i.stateNode;try{var x=r.shared.hiddenCallbacks;if(x!==null)for(r.shared.hiddenCallbacks=null,r=0;r<x.length;r++)Bd(x[r],b)}catch(A){jt(i,i.return,A)}}n&&h&64&&Ph(u),Hs(u,u.return);break;case 27:Ih(u);case 26:case 5:qn(r,u,n),n&&i===null&&h&4&&$h(u),Hs(u,u.return);break;case 12:qn(r,u,n);break;case 31:qn(r,u,n),n&&h&4&&am(r,u);break;case 13:qn(r,u,n),n&&h&4&&im(r,u);break;case 22:u.memoizedState===null&&qn(r,u,n),Hs(u,u.return);break;case 30:break;default:qn(r,u,n)}e=e.sibling}}function Uu(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&&ws(n))}function Bu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ws(t))}function un(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)om(t,e,n,i),e=e.sibling}function om(t,e,n,i){var r=e.flags;switch(e.tag){case 0:case 11:case 15:un(t,e,n,i),r&2048&&Bs(9,e);break;case 1:un(t,e,n,i);break;case 3:un(t,e,n,i),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ws(t)));break;case 12:if(r&2048){un(t,e,n,i),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,b=u.onPostCommit;typeof b=="function"&&b(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(x){jt(e,e.return,x)}}else un(t,e,n,i);break;case 31:un(t,e,n,i);break;case 13:un(t,e,n,i);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?un(t,e,n,i):qs(t,e):u._visibility&2?un(t,e,n,i):(u._visibility|=2,Bi(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),r&2048&&Uu(h,e);break;case 24:un(t,e,n,i),r&2048&&Bu(e.alternate,e);break;default:un(t,e,n,i)}}function Bi(t,e,n,i,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,b=n,x=i,A=h.flags;switch(h.tag){case 0:case 11:case 15:Bi(u,h,b,x,r),Bs(8,h);break;case 23:break;case 22:var j=h.stateNode;h.memoizedState!==null?j._visibility&2?Bi(u,h,b,x,r):qs(u,h):(j._visibility|=2,Bi(u,h,b,x,r)),r&&A&2048&&Uu(h.alternate,h);break;case 24:Bi(u,h,b,x,r),r&&A&2048&&Bu(h.alternate,h);break;default:Bi(u,h,b,x,r)}e=e.sibling}}function qs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,r=i.flags;switch(i.tag){case 22:qs(n,i),r&2048&&Uu(i.alternate,i);break;case 24:qs(n,i),r&2048&&Bu(i.alternate,i);break;default:qs(n,i)}e=e.sibling}}var ks=8192;function Hi(t,e,n){if(t.subtreeFlags&ks)for(t=t.child;t!==null;)rm(t,e,n),t=t.sibling}function rm(t,e,n){switch(t.tag){case 26:Hi(t,e,n),t.flags&ks&&t.memoizedState!==null&&J0(n,rn,t.memoizedState,t.memoizedProps);break;case 5:Hi(t,e,n);break;case 3:case 4:var i=rn;rn=go(t.stateNode.containerInfo),Hi(t,e,n),rn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=ks,ks=16777216,Hi(t,e,n),ks=i):Hi(t,e,n));break;default:Hi(t,e,n)}}function um(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 Qs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];re=i,fm(i,t)}um(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cm(t),t=t.sibling}function cm(t){switch(t.tag){case 0:case 11:case 15:Qs(t),t.flags&2048&&ua(9,t,t.return);break;case 3:Qs(t);break;case 12:Qs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ao(t)):Qs(t);break;default:Qs(t)}}function ao(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];re=i,fm(i,t)}um(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ua(8,e,e.return),ao(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,ao(e));break;default:ao(e)}t=t.sibling}}function fm(t,e){for(;re!==null;){var n=re;switch(n.tag){case 0:case 11:case 15:ua(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ws(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,re=i;else t:for(n=t;re!==null;){i=re;var r=i.sibling,u=i.return;if(em(i),i===n){re=null;break t}if(r!==null){r.return=u,re=r;break t}re=u}}}var d0={getCacheForType:function(t){var e=de($t),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return de($t).controller.signal}},h0=typeof WeakMap=="function"?WeakMap:Map,zt=0,qt=null,_t=null,Et=0,Nt=0,Qe=null,ca=!1,qi=!1,Hu=!1,kn=0,Zt=0,fa=0,Ja=0,qu=0,Ve=0,ki=0,Vs=null,De=null,ku=!1,io=0,dm=0,so=1/0,lo=null,da=null,ee=0,ha=null,Qi=null,Qn=0,Qu=0,Vu=null,hm=null,Gs=0,Gu=null;function Ge(){return(zt&2)!==0&&Et!==0?Et&-Et:C.T!==null?Fu():ur()}function mm(){if(Ve===0)if((Et&536870912)===0||Tt){var t=ui;ui<<=1,(ui&3932160)===0&&(ui=262144),Ve=t}else Ve=536870912;return t=qe.current,t!==null&&(t.flags|=32),Ve}function Le(t,e,n){(t===qt&&(Nt===2||Nt===9)||t.cancelPendingCommit!==null)&&(Vi(t,0),ma(t,Et,Ve,!1)),Kt(t,n),((zt&2)===0||t!==qt)&&(t===qt&&((zt&2)===0&&(Ja|=n),Zt===4&&ma(t,Et,Ve,!1)),vn(t))}function pm(t,e,n){if((zt&6)!==0)throw Error(o(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Vt(t,e),r=i?y0(t,e):Ku(t,e,!0),u=i;do{if(r===0){qi&&!i&&ma(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!m0(n)){r=Ku(t,e,!1),u=!1;continue}if(r===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var b=t;r=Vs;var x=b.current.memoizedState.isDehydrated;if(x&&(Vi(b,h).flags|=256),h=Ku(b,h,!1),h!==2){if(Hu&&!x){b.errorRecoveryDisabledLanes|=u,Ja|=u,r=4;break t}u=De,De=r,u!==null&&(De===null?De=u:De.push.apply(De,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){Vi(t,0),ma(t,e,0,!0);break}t:{switch(i=t,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:ma(i,e,Ve,!ca);break t;case 2:De=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=io+300-Ct(),10<r)){if(ma(i,e,Ve,!ca),ft(i,0,!0)!==0)break t;Qn=e,i.timeoutHandle=Xm(ym.bind(null,i,n,De,lo,ku,e,Ve,Ja,ki,ca,u,"Throttled",-0,0),r);break t}ym(i,n,De,lo,ku,e,Ve,Ja,ki,ca,u,null,-0,0)}}break}while(!0);vn(t)}function ym(t,e,n,i,r,u,h,b,x,A,j,Q,O,N){if(t.timeoutHandle=-1,Q=e.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},rm(e,u,Q);var tt=(u&62914560)===u?io-Ct():(u&4194048)===u?dm-Ct():0;if(tt=I0(Q,tt),tt!==null){Qn=u,t.cancelPendingCommit=tt(wm.bind(null,t,e,u,n,i,r,h,b,x,j,Q,null,O,N)),ma(t,u,h,!A);return}}wm(t,e,u,n,i,r,h,b,x)}function m0(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 i=0;i<n.length;i++){var r=n[i],u=r.getSnapshot;r=r.value;try{if(!Be(u(),r))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 ma(t,e,n,i){e&=~qu,e&=~Ja,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var r=e;0<r;){var u=31-pe(r),h=1<<u;i[u]=-1,r&=~h}n!==0&&Na(t,n,e)}function oo(){return(zt&6)===0?(Ys(0),!1):!0}function Yu(){if(_t!==null){if(Nt===0)var t=_t.return;else t=_t,On=Va=null,lu(t),Di=null,Ts=0,t=_t;for(;t!==null;)Zh(t.alternate,t),t=t.return;_t=null}}function Vi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,N0(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Qn=0,Yu(),qt=t,_t=n=Mn(t.current,null),Et=e,Nt=0,Qe=null,ca=!1,qi=Vt(t,e),Hu=!1,ki=Ve=qu=Ja=fa=Zt=0,De=Vs=null,ku=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var r=31-pe(i),u=1<<r;e|=t[r],i&=~u}return kn=e,Ml(),n}function gm(t,e){yt=null,C.H=Ns,e===zi||e===Ul?(e=Ld(),Nt=3):e===Pr?(e=Ld(),Nt=4):Nt=e===xu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Qe=e,_t===null&&(Zt=1,$l(t,Fe(e,t.current)))}function vm(){var t=qe.current;return t===null?!0:(Et&4194048)===Et?We===null:(Et&62914560)===Et||(Et&536870912)!==0?t===We:!1}function bm(){var t=C.H;return C.H=Ns,t===null?Ns:t}function Sm(){var t=C.A;return C.A=d0,t}function ro(){Zt=4,ca||(Et&4194048)!==Et&&qe.current!==null||(qi=!0),(fa&134217727)===0&&(Ja&134217727)===0||qt===null||ma(qt,Et,Ve,!1)}function Ku(t,e,n){var i=zt;zt|=2;var r=bm(),u=Sm();(qt!==t||Et!==e)&&(lo=null,Vi(t,e)),e=!1;var h=Zt;t:do try{if(Nt!==0&&_t!==null){var b=_t,x=Qe;switch(Nt){case 8:Yu(),h=6;break t;case 3:case 2:case 9:case 6:qe.current===null&&(e=!0);var A=Nt;if(Nt=0,Qe=null,Gi(t,b,x,A),n&&qi){h=0;break t}break;default:A=Nt,Nt=0,Qe=null,Gi(t,b,x,A)}}p0(),h=Zt;break}catch(j){gm(t,j)}while(!0);return e&&t.shellSuspendCounter++,On=Va=null,zt=i,C.H=r,C.A=u,_t===null&&(qt=null,Et=0,Ml()),h}function p0(){for(;_t!==null;)_m(_t)}function y0(t,e){var n=zt;zt|=2;var i=bm(),r=Sm();qt!==t||Et!==e?(lo=null,so=Ct()+500,Vi(t,e)):qi=Vt(t,e);t:do try{if(Nt!==0&&_t!==null){e=_t;var u=Qe;e:switch(Nt){case 1:Nt=0,Qe=null,Gi(t,e,u,1);break;case 2:case 9:if(zd(u)){Nt=0,Qe=null,xm(e);break}e=function(){Nt!==2&&Nt!==9||qt!==t||(Nt=7),vn(t)},u.then(e,e);break t;case 3:Nt=7;break t;case 4:Nt=5;break t;case 7:zd(u)?(Nt=0,Qe=null,xm(e)):(Nt=0,Qe=null,Gi(t,e,u,7));break;case 5:var h=null;switch(_t.tag){case 26:h=_t.memoizedState;case 5:case 27:var b=_t;if(h?op(h):b.stateNode.complete){Nt=0,Qe=null;var x=b.sibling;if(x!==null)_t=x;else{var A=b.return;A!==null?(_t=A,uo(A)):_t=null}break e}}Nt=0,Qe=null,Gi(t,e,u,5);break;case 6:Nt=0,Qe=null,Gi(t,e,u,6);break;case 8:Yu(),Zt=6;break t;default:throw Error(o(462))}}g0();break}catch(j){gm(t,j)}while(!0);return On=Va=null,C.H=i,C.A=r,zt=n,_t!==null?0:(qt=null,Et=0,Ml(),Zt)}function g0(){for(;_t!==null&&!se();)_m(_t)}function _m(t){var e=Kh(t.alternate,t,kn);t.memoizedProps=t.pendingProps,e===null?uo(t):_t=e}function xm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=qh(n,e,e.pendingProps,e.type,void 0,Et);break;case 11:e=qh(n,e,e.pendingProps,e.type.render,e.ref,Et);break;case 5:lu(e);default:Zh(n,e),e=_t=Sd(e,kn),e=Kh(n,e,kn)}t.memoizedProps=t.pendingProps,e===null?uo(t):_t=e}function Gi(t,e,n,i){On=Va=null,lu(e),Di=null,Ts=0;var r=e.return;try{if(s0(t,r,e,n,Et)){Zt=1,$l(t,Fe(n,t.current)),_t=null;return}}catch(u){if(r!==null)throw _t=r,u;Zt=1,$l(t,Fe(n,t.current)),_t=null;return}e.flags&32768?(Tt||i===1?t=!0:qi||(Et&536870912)!==0?t=!1:(ca=t=!0,(i===2||i===9||i===3||i===6)&&(i=qe.current,i!==null&&i.tag===13&&(i.flags|=16384))),Em(e,t)):uo(e)}function uo(t){var e=t;do{if((e.flags&32768)!==0){Em(e,ca);return}t=e.return;var n=r0(e.alternate,e,kn);if(n!==null){_t=n;return}if(e=e.sibling,e!==null){_t=e;return}_t=e=t}while(e!==null);Zt===0&&(Zt=5)}function Em(t,e){do{var n=u0(t.alternate,t);if(n!==null){n.flags&=32767,_t=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){_t=t;return}_t=t=n}while(t!==null);Zt=6,_t=null}function wm(t,e,n,i,r,u,h,b,x){t.cancelPendingCommit=null;do co();while(ee!==0);if((zt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=Lr,we(t,n,u,h,b,x),t===qt&&(_t=qt=null,Et=0),Qi=e,ha=t,Qn=n,Qu=u,Vu=r,hm=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,_0(za,function(){return Am(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=C.T,C.T=null,r=X.p,X.p=2,h=zt,zt|=4;try{c0(t,e,n)}finally{zt=h,X.p=r,C.T=i}}ee=1,Rm(),Tm(),Cm()}}function Rm(){if(ee===1){ee=0;var t=ha,e=Qi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=C.T,C.T=null;var i=X.p;X.p=2;var r=zt;zt|=4;try{sm(e,t);var u=ac,h=fd(t.containerInfo),b=u.focusedElem,x=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&cd(b.ownerDocument.documentElement,b)){if(x!==null&&Mr(b)){var A=x.start,j=x.end;if(j===void 0&&(j=A),"selectionStart"in b)b.selectionStart=A,b.selectionEnd=Math.min(j,b.value.length);else{var Q=b.ownerDocument||document,O=Q&&Q.defaultView||window;if(O.getSelection){var N=O.getSelection(),tt=b.textContent.length,ut=Math.min(x.start,tt),Ht=x.end===void 0?ut:Math.min(x.end,tt);!N.extend&&ut>Ht&&(h=Ht,Ht=ut,ut=h);var T=ud(b,ut),R=ud(b,Ht);if(T&&R&&(N.rangeCount!==1||N.anchorNode!==T.node||N.anchorOffset!==T.offset||N.focusNode!==R.node||N.focusOffset!==R.offset)){var M=Q.createRange();M.setStart(T.node,T.offset),N.removeAllRanges(),ut>Ht?(N.addRange(M),N.extend(R.node,R.offset)):(M.setEnd(R.node,R.offset),N.addRange(M))}}}}for(Q=[],N=b;N=N.parentNode;)N.nodeType===1&&Q.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Q.length;b++){var k=Q[b];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Eo=!!nc,ac=nc=null}finally{zt=r,X.p=i,C.T=n}}t.current=e,ee=2}}function Tm(){if(ee===2){ee=0;var t=ha,e=Qi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=C.T,C.T=null;var i=X.p;X.p=2;var r=zt;zt|=4;try{tm(t,e.alternate,e)}finally{zt=r,X.p=i,C.T=n}}ee=3}}function Cm(){if(ee===4||ee===3){ee=0,Rt();var t=ha,e=Qi,n=Qn,i=hm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,Qi=ha=null,Mm(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(da=null),ln(n),e=e.stateNode,_e&&typeof _e.onCommitFiberRoot=="function")try{_e.onCommitFiberRoot(Da,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=C.T,r=X.p,X.p=2,C.T=null;try{for(var u=t.onRecoverableError,h=0;h<i.length;h++){var b=i[h];u(b.value,{componentStack:b.stack})}}finally{C.T=e,X.p=r}}(Qn&3)!==0&&co(),vn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===Gu?Gs++:(Gs=0,Gu=t):Gs=0,Ys(0)}}function Mm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ws(e)))}function co(){return Rm(),Tm(),Cm(),Am()}function Am(){if(ee!==5)return!1;var t=ha,e=Qu;Qu=0;var n=ln(Qn),i=C.T,r=X.p;try{X.p=32>n?32:n,C.T=null,n=Vu,Vu=null;var u=ha,h=Qn;if(ee=0,Qi=ha=null,Qn=0,(zt&6)!==0)throw Error(o(331));var b=zt;if(zt|=4,cm(u.current),om(u,u.current,h,n),zt=b,Ys(0,!1),_e&&typeof _e.onPostCommitFiberRoot=="function")try{_e.onPostCommitFiberRoot(Da,u)}catch{}return!0}finally{X.p=r,C.T=i,Mm(t,e)}}function Om(t,e,n){e=Fe(n,e),e=_u(t.stateNode,e,2),t=la(t,e,2),t!==null&&(Kt(t,2),vn(t))}function jt(t,e,n){if(t.tag===3)Om(t,t,n);else for(;e!==null;){if(e.tag===3){Om(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(da===null||!da.has(i))){t=Fe(n,t),n=zh(2),i=la(e,n,2),i!==null&&(Dh(n,i,e,t),Kt(i,2),vn(i));break}}e=e.return}}function Xu(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new h0;var r=new Set;i.set(e,r)}else r=i.get(e),r===void 0&&(r=new Set,i.set(e,r));r.has(n)||(Hu=!0,r.add(n),t=v0.bind(null,t,e,n),e.then(t,t))}function v0(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,qt===t&&(Et&n)===n&&(Zt===4||Zt===3&&(Et&62914560)===Et&&300>Ct()-io?(zt&2)===0&&Vi(t,0):qu|=n,ki===Et&&(ki=0)),vn(t)}function zm(t,e){e===0&&(e=ye()),t=qa(t,e),t!==null&&(Kt(t,e),vn(t))}function b0(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zm(t,n)}function S0(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(e),zm(t,n)}function _0(t,e){return fn(t,e)}var fo=null,Yi=null,Zu=!1,ho=!1,Pu=!1,pa=0;function vn(t){t!==Yi&&t.next===null&&(Yi===null?fo=Yi=t:Yi=Yi.next=t),ho=!0,Zu||(Zu=!0,E0())}function Ys(t,e){if(!Pu&&ho){Pu=!0;do for(var n=!1,i=fo;i!==null;){if(t!==0){var r=i.pendingLanes;if(r===0)var u=0;else{var h=i.suspendedLanes,b=i.pingedLanes;u=(1<<31-pe(42|t)+1)-1,u&=r&~(h&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,jm(i,u))}else u=Et,u=ft(i,i===qt?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||Vt(i,u)||(n=!0,jm(i,u));i=i.next}while(n);Pu=!1}}function x0(){Dm()}function Dm(){ho=Zu=!1;var t=0;pa!==0&&L0()&&(t=pa);for(var e=Ct(),n=null,i=fo;i!==null;){var r=i.next,u=Lm(i,e);u===0?(i.next=null,n===null?fo=r:n.next=r,r===null&&(Yi=n)):(n=i,(t!==0||(u&3)!==0)&&(ho=!0)),i=r}ee!==0&&ee!==5||Ys(t),pa!==0&&(pa=0)}function Lm(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-pe(u),b=1<<h,x=r[h];x===-1?((b&n)===0||(b&i)!==0)&&(r[h]=le(b,e)):x<=e&&(t.expiredLanes|=b),u&=~b}if(e=qt,n=Et,n=ft(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Nt===2||Nt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Fn(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Vt(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Fn(i),ln(n)){case 2:case 8:n=pl;break;case 32:n=za;break;case 268435456:n=wn;break;default:n=za}return i=Nm.bind(null,t),n=fn(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Fn(i),t.callbackPriority=2,t.callbackNode=null,2}function Nm(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(co()&&t.callbackNode!==n)return null;var i=Et;return i=ft(t,t===qt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(pm(t,i,e),Lm(t,Ct()),t.callbackNode!=null&&t.callbackNode===n?Nm.bind(null,t):null)}function jm(t,e){if(co())return null;pm(t,e,!0)}function E0(){j0(function(){(zt&6)!==0?fn(dn,x0):Dm()})}function Fu(){if(pa===0){var t=Ai;t===0&&(t=ri,ri<<=1,(ri&261888)===0&&(ri=256)),pa=t}return pa}function Um(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Sl(""+t)}function Bm(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 w0(t,e,n,i,r){if(e==="submit"&&n&&n.stateNode===r){var u=Um((r[Ce]||null).action),h=i.submitter;h&&(e=(e=h[Ce]||null)?Um(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var b=new wl("action","action",null,i,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(pa!==0){var x=h?Bm(r,h):new FormData(r);pu(n,{pending:!0,data:x,method:r.method,action:u},null,x)}}else typeof u=="function"&&(b.preventDefault(),x=h?Bm(r,h):new FormData(r),pu(n,{pending:!0,data:x,method:r.method,action:u},u,x))},currentTarget:r}]})}}for(var $u=0;$u<Dr.length;$u++){var Ju=Dr[$u],R0=Ju.toLowerCase(),T0=Ju[0].toUpperCase()+Ju.slice(1);on(R0,"on"+T0)}on(md,"onAnimationEnd"),on(pd,"onAnimationIteration"),on(yd,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(Vv,"onTransitionRun"),on(Gv,"onTransitionStart"),on(Yv,"onTransitionCancel"),on(gd,"onTransitionEnd"),pi("onMouseEnter",["mouseout","mouseover"]),pi("onMouseLeave",["mouseout","mouseover"]),pi("onPointerEnter",["pointerout","pointerover"]),pi("onPointerLeave",["pointerout","pointerover"]),ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ks="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(" "),C0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ks));function Hm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],r=i.event;i=i.listeners;t:{var u=void 0;if(e)for(var h=i.length-1;0<=h;h--){var b=i[h],x=b.instance,A=b.currentTarget;if(b=b.listener,x!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=A;try{u(r)}catch(j){Cl(j)}r.currentTarget=null,u=x}else for(h=0;h<i.length;h++){if(b=i[h],x=b.instance,A=b.currentTarget,b=b.listener,x!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=A;try{u(r)}catch(j){Cl(j)}r.currentTarget=null,u=x}}}}function xt(t,e){var n=e[cr];n===void 0&&(n=e[cr]=new Set);var i=t+"__bubble";n.has(i)||(qm(e,t,2,!1),n.add(i))}function Iu(t,e,n){var i=0;e&&(i|=4),qm(n,t,i,e)}var mo="_reactListening"+Math.random().toString(36).slice(2);function Wu(t){if(!t[mo]){t[mo]=!0,Df.forEach(function(n){n!=="selectionchange"&&(C0.has(n)||Iu(n,!1,t),Iu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[mo]||(e[mo]=!0,Iu("selectionchange",!1,e))}}function qm(t,e,n,i){switch(mp(e)){case 2:var r=eb;break;case 8:r=nb;break;default:r=mc}n=r.bind(null,e,n,t),r=void 0,!br||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),i?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function tc(t,e,n,i,r){var u=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var b=i.stateNode.containerInfo;if(b===r)break;if(h===4)for(h=i.return;h!==null;){var x=h.tag;if((x===3||x===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;b!==null;){if(h=di(b),h===null)return;if(x=h.tag,x===5||x===6||x===26||x===27){i=u=h;continue t}b=b.parentNode}}i=i.return}Yf(function(){var A=u,j=gr(n),Q=[];t:{var O=vd.get(t);if(O!==void 0){var N=wl,tt=t;switch(t){case"keypress":if(xl(n)===0)break t;case"keydown":case"keyup":N=Sv;break;case"focusin":tt="focus",N=Er;break;case"focusout":tt="blur",N=Er;break;case"beforeblur":case"afterblur":N=Er;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":N=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=rv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Ev;break;case md:case pd:case yd:N=fv;break;case gd:N=Rv;break;case"scroll":case"scrollend":N=lv;break;case"wheel":N=Cv;break;case"copy":case"cut":case"paste":N=hv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Ff;break;case"toggle":case"beforetoggle":N=Av}var ut=(e&4)!==0,Ht=!ut&&(t==="scroll"||t==="scrollend"),T=ut?O!==null?O+"Capture":null:O;ut=[];for(var R=A,M;R!==null;){var k=R;if(M=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||M===null||T===null||(k=hs(R,T),k!=null&&ut.push(Xs(R,k,M))),Ht)break;R=R.return}0<ut.length&&(O=new N(O,tt,null,n,j),Q.push({event:O,listeners:ut}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",O&&n!==yr&&(tt=n.relatedTarget||n.fromElement)&&(di(tt)||tt[fi]))break t;if((N||O)&&(O=j.window===j?j:(O=j.ownerDocument)?O.defaultView||O.parentWindow:window,N?(tt=n.relatedTarget||n.toElement,N=A,tt=tt?di(tt):null,tt!==null&&(Ht=f(tt),ut=tt.tag,tt!==Ht||ut!==5&&ut!==27&&ut!==6)&&(tt=null)):(N=null,tt=A),N!==tt)){if(ut=Zf,k="onMouseLeave",T="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(ut=Ff,k="onPointerLeave",T="onPointerEnter",R="pointer"),Ht=N==null?O:ds(N),M=tt==null?O:ds(tt),O=new ut(k,R+"leave",N,n,j),O.target=Ht,O.relatedTarget=M,k=null,di(j)===A&&(ut=new ut(T,R+"enter",tt,n,j),ut.target=M,ut.relatedTarget=Ht,k=ut),Ht=k,N&&tt)e:{for(ut=M0,T=N,R=tt,M=0,k=T;k;k=ut(k))M++;k=0;for(var rt=R;rt;rt=ut(rt))k++;for(;0<M-k;)T=ut(T),M--;for(;0<k-M;)R=ut(R),k--;for(;M--;){if(T===R||R!==null&&T===R.alternate){ut=T;break e}T=ut(T),R=ut(R)}ut=null}else ut=null;N!==null&&km(Q,O,N,ut,!1),tt!==null&&Ht!==null&&km(Q,Ht,tt,ut,!0)}}t:{if(O=A?ds(A):window,N=O.nodeName&&O.nodeName.toLowerCase(),N==="select"||N==="input"&&O.type==="file")var At=ad;else if(ed(O))if(id)At=qv;else{At=Bv;var st=Uv}else N=O.nodeName,!N||N.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&pr(A.elementType)&&(At=ad):At=Hv;if(At&&(At=At(t,A))){nd(Q,At,n,j);break t}st&&st(t,O,A),t==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&mr(O,"number",O.value)}switch(st=A?ds(A):window,t){case"focusin":(ed(st)||st.contentEditable==="true")&&(_i=st,Ar=A,_s=null);break;case"focusout":_s=Ar=_i=null;break;case"mousedown":Or=!0;break;case"contextmenu":case"mouseup":case"dragend":Or=!1,dd(Q,n,j);break;case"selectionchange":if(Qv)break;case"keydown":case"keyup":dd(Q,n,j)}var gt;if(Rr)t:{switch(t){case"compositionstart":var wt="onCompositionStart";break t;case"compositionend":wt="onCompositionEnd";break t;case"compositionupdate":wt="onCompositionUpdate";break t}wt=void 0}else Si?Wf(t,n)&&(wt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(wt="onCompositionStart");wt&&($f&&n.locale!=="ko"&&(Si||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&Si&&(gt=Kf()):(Wn=j,Sr="value"in Wn?Wn.value:Wn.textContent,Si=!0)),st=po(A,wt),0<st.length&&(wt=new Pf(wt,t,null,n,j),Q.push({event:wt,listeners:st}),gt?wt.data=gt:(gt=td(n),gt!==null&&(wt.data=gt)))),(gt=zv?Dv(t,n):Lv(t,n))&&(wt=po(A,"onBeforeInput"),0<wt.length&&(st=new Pf("onBeforeInput","beforeinput",null,n,j),Q.push({event:st,listeners:wt}),st.data=gt)),w0(Q,t,A,n,j)}Hm(Q,e)})}function Xs(t,e,n){return{instance:t,listener:e,currentTarget:n}}function po(t,e){for(var n=e+"Capture",i=[];t!==null;){var r=t,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=hs(t,n),r!=null&&i.unshift(Xs(t,r,u)),r=hs(t,e),r!=null&&i.push(Xs(t,r,u))),t.tag===3)return i;t=t.return}return[]}function M0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function km(t,e,n,i,r){for(var u=e._reactName,h=[];n!==null&&n!==i;){var b=n,x=b.alternate,A=b.stateNode;if(b=b.tag,x!==null&&x===i)break;b!==5&&b!==26&&b!==27||A===null||(x=A,r?(A=hs(n,u),A!=null&&h.unshift(Xs(n,A,x))):r||(A=hs(n,u),A!=null&&h.push(Xs(n,A,x)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var A0=/\r\n?/g,O0=/\u0000|\uFFFD/g;function Qm(t){return(typeof t=="string"?t:""+t).replace(A0,`
67
- `).replace(O0,"")}function Vm(t,e){return e=Qm(e),Qm(t)===e}function Bt(t,e,n,i,r,u){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||gi(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&gi(t,""+i);break;case"className":vl(t,"class",i);break;case"tabIndex":vl(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":vl(t,n,i);break;case"style":Vf(t,i,u);break;case"data":if(e!=="object"){vl(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Sl(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Bt(t,e,"name",r.name,r,null),Bt(t,e,"formEncType",r.formEncType,r,null),Bt(t,e,"formMethod",r.formMethod,r,null),Bt(t,e,"formTarget",r.formTarget,r,null)):(Bt(t,e,"encType",r.encType,r,null),Bt(t,e,"method",r.method,r,null),Bt(t,e,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Sl(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Tn);break;case"onScroll":i!=null&&xt("scroll",t);break;case"onScrollEnd":i!=null&&xt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=Sl(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":xt("beforetoggle",t),xt("toggle",t),gl(t,"popover",i);break;case"xlinkActuate":Rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Rn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Rn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Rn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Rn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":gl(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=iv.get(n)||n,gl(t,n,i))}}function ec(t,e,n,i,r,u){switch(n){case"style":Vf(t,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof i=="string"?gi(t,i):(typeof i=="number"||typeof i=="bigint")&&gi(t,""+i);break;case"onScroll":i!=null&&xt("scroll",t);break;case"onScrollEnd":i!=null&&xt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),u=t[Ce]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,r),typeof i=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,r);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):gl(t,n,i)}}}function me(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xt("error",t),xt("load",t);var i=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Bt(t,e,u,h,n,null)}}r&&Bt(t,e,"srcSet",n.srcSet,n,null),i&&Bt(t,e,"src",n.src,n,null);return;case"input":xt("invalid",t);var b=u=h=r=null,x=null,A=null;for(i in n)if(n.hasOwnProperty(i)){var j=n[i];if(j!=null)switch(i){case"name":r=j;break;case"type":h=j;break;case"checked":x=j;break;case"defaultChecked":A=j;break;case"value":u=j;break;case"defaultValue":b=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,e));break;default:Bt(t,e,i,j,n,null)}}Hf(t,u,b,x,A,h,r,!1);return;case"select":xt("invalid",t),i=h=u=null;for(r in n)if(n.hasOwnProperty(r)&&(b=n[r],b!=null))switch(r){case"value":u=b;break;case"defaultValue":h=b;break;case"multiple":i=b;default:Bt(t,e,r,b,n,null)}e=u,n=h,t.multiple=!!i,e!=null?yi(t,!!i,e,!1):n!=null&&yi(t,!!i,n,!0);return;case"textarea":xt("invalid",t),u=r=i=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":i=b;break;case"defaultValue":r=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Bt(t,e,h,b,n,null)}kf(t,i,r,u);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(i=n[x],i!=null))switch(x){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Bt(t,e,x,i,n,null)}return;case"dialog":xt("beforetoggle",t),xt("toggle",t),xt("cancel",t),xt("close",t);break;case"iframe":case"object":xt("load",t);break;case"video":case"audio":for(i=0;i<Ks.length;i++)xt(Ks[i],t);break;case"image":xt("error",t),xt("load",t);break;case"details":xt("toggle",t);break;case"embed":case"source":case"link":xt("error",t),xt("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(A in n)if(n.hasOwnProperty(A)&&(i=n[A],i!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Bt(t,e,A,i,n,null)}return;default:if(pr(e)){for(j in n)n.hasOwnProperty(j)&&(i=n[j],i!==void 0&&ec(t,e,j,i,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(i=n[b],i!=null&&Bt(t,e,b,i,n,null))}function z0(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,b=null,x=null,A=null,j=null;for(N in n){var Q=n[N];if(n.hasOwnProperty(N)&&Q!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":x=Q;default:i.hasOwnProperty(N)||Bt(t,e,N,null,i,Q)}}for(var O in i){var N=i[O];if(Q=n[O],i.hasOwnProperty(O)&&(N!=null||Q!=null))switch(O){case"type":u=N;break;case"name":r=N;break;case"checked":A=N;break;case"defaultChecked":j=N;break;case"value":h=N;break;case"defaultValue":b=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:N!==Q&&Bt(t,e,O,N,i,Q)}}hr(t,h,b,x,A,j,u,r);return;case"select":N=h=b=O=null;for(u in n)if(x=n[u],n.hasOwnProperty(u)&&x!=null)switch(u){case"value":break;case"multiple":N=x;default:i.hasOwnProperty(u)||Bt(t,e,u,null,i,x)}for(r in i)if(u=i[r],x=n[r],i.hasOwnProperty(r)&&(u!=null||x!=null))switch(r){case"value":O=u;break;case"defaultValue":b=u;break;case"multiple":h=u;default:u!==x&&Bt(t,e,r,u,i,x)}e=b,n=h,i=N,O!=null?yi(t,!!n,O,!1):!!i!=!!n&&(e!=null?yi(t,!!n,e,!0):yi(t,!!n,n?[]:"",!1));return;case"textarea":N=O=null;for(b in n)if(r=n[b],n.hasOwnProperty(b)&&r!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Bt(t,e,b,null,i,r)}for(h in i)if(r=i[h],u=n[h],i.hasOwnProperty(h)&&(r!=null||u!=null))switch(h){case"value":O=r;break;case"defaultValue":N=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&Bt(t,e,h,r,i,u)}qf(t,O,N);return;case"option":for(var tt in n)if(O=n[tt],n.hasOwnProperty(tt)&&O!=null&&!i.hasOwnProperty(tt))switch(tt){case"selected":t.selected=!1;break;default:Bt(t,e,tt,null,i,O)}for(x in i)if(O=i[x],N=n[x],i.hasOwnProperty(x)&&O!==N&&(O!=null||N!=null))switch(x){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Bt(t,e,x,O,i,N)}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 ut in n)O=n[ut],n.hasOwnProperty(ut)&&O!=null&&!i.hasOwnProperty(ut)&&Bt(t,e,ut,null,i,O);for(A in i)if(O=i[A],N=n[A],i.hasOwnProperty(A)&&O!==N&&(O!=null||N!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,e));break;default:Bt(t,e,A,O,i,N)}return;default:if(pr(e)){for(var Ht in n)O=n[Ht],n.hasOwnProperty(Ht)&&O!==void 0&&!i.hasOwnProperty(Ht)&&ec(t,e,Ht,void 0,i,O);for(j in i)O=i[j],N=n[j],!i.hasOwnProperty(j)||O===N||O===void 0&&N===void 0||ec(t,e,j,O,i,N);return}}for(var T in n)O=n[T],n.hasOwnProperty(T)&&O!=null&&!i.hasOwnProperty(T)&&Bt(t,e,T,null,i,O);for(Q in i)O=i[Q],N=n[Q],!i.hasOwnProperty(Q)||O===N||O==null&&N==null||Bt(t,e,Q,O,i,N)}function Gm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function D0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],u=r.transferSize,h=r.initiatorType,b=r.duration;if(u&&b&&Gm(h)){for(h=0,b=r.responseEnd,i+=1;i<n.length;i++){var x=n[i],A=x.startTime;if(A>b)break;var j=x.transferSize,Q=x.initiatorType;j&&Gm(Q)&&(x=x.responseEnd,h+=j*(x<b?1:(b-A)/(x-A)))}if(--i,e+=8*(u+h)/(r.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 nc=null,ac=null;function yo(t){return t.nodeType===9?t:t.ownerDocument}function Ym(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 Km(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 ic(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 sc=null;function L0(){var t=window.event;return t&&t.type==="popstate"?t===sc?!1:(sc=t,!0):(sc=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,N0=typeof clearTimeout=="function"?clearTimeout:void 0,Zm=typeof Promise=="function"?Promise:void 0,j0=typeof queueMicrotask=="function"?queueMicrotask:typeof Zm<"u"?function(t){return Zm.resolve(null).then(t).catch(U0)}:Xm;function U0(t){setTimeout(function(){throw t})}function ya(t){return t==="head"}function Pm(t,e){var n=e,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(r),Pi(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Zs(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Zs(n);for(var u=n.firstChild;u;){var h=u.nextSibling,b=u.nodeName;u[fs]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&Zs(t.ownerDocument.body);n=r}while(n);Pi(e)}function Fm(t,e){var n=t;t=0;do{var i=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||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function lc(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":lc(n),fr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function B0(t,e,n,i){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[fs])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=tn(t.nextSibling),t===null)break}return null}function H0(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=tn(t.nextSibling),t===null))return null;return t}function $m(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=tn(t.nextSibling),t===null))return null;return t}function oc(t){return t.data==="$?"||t.data==="$~"}function rc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function q0(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function tn(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 uc=null;function Jm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return tn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Im(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 Wm(t,e,n){switch(e=yo(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 Zs(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);fr(t)}var en=new Map,tp=new Set;function go(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Vn=X.d;X.d={f:k0,r:Q0,D:V0,C:G0,L:Y0,m:K0,X:Z0,S:X0,M:P0};function k0(){var t=Vn.f(),e=oo();return t||e}function Q0(t){var e=hi(t);e!==null&&e.tag===5&&e.type==="form"?gh(e):Vn.r(t)}var Ki=typeof document>"u"?null:document;function ep(t,e,n){var i=Ki;if(i&&typeof e=="string"&&e){var r=Ze(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),tp.has(r)||(tp.add(r),t={rel:t,crossOrigin:n,href:e},i.querySelector(r)===null&&(e=i.createElement("link"),me(e,"link",t),oe(e),i.head.appendChild(e)))}}function V0(t){Vn.D(t),ep("dns-prefetch",t,null)}function G0(t,e){Vn.C(t,e),ep("preconnect",t,e)}function Y0(t,e,n){Vn.L(t,e,n);var i=Ki;if(i&&t&&e){var r='link[rel="preload"][as="'+Ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Ze(n.imageSizes)+'"]')):r+='[href="'+Ze(t)+'"]';var u=r;switch(e){case"style":u=Xi(t);break;case"script":u=Zi(t)}en.has(u)||(t=p({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),en.set(u,t),i.querySelector(r)!==null||e==="style"&&i.querySelector(Ps(u))||e==="script"&&i.querySelector(Fs(u))||(e=i.createElement("link"),me(e,"link",t),oe(e),i.head.appendChild(e)))}}function K0(t,e){Vn.m(t,e);var n=Ki;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+Ze(i)+'"][href="'+Ze(t)+'"]',u=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Zi(t)}if(!en.has(u)&&(t=p({rel:"modulepreload",href:t},e),en.set(u,t),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fs(u)))return}i=n.createElement("link"),me(i,"link",t),oe(i),n.head.appendChild(i)}}}function X0(t,e,n){Vn.S(t,e,n);var i=Ki;if(i&&t){var r=mi(i).hoistableStyles,u=Xi(t);e=e||"default";var h=r.get(u);if(!h){var b={loading:0,preload:null};if(h=i.querySelector(Ps(u)))b.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":e},n),(n=en.get(u))&&cc(t,n);var x=h=i.createElement("link");oe(x),me(x,"link",t),x._p=new Promise(function(A,j){x.onload=A,x.onerror=j}),x.addEventListener("load",function(){b.loading|=1}),x.addEventListener("error",function(){b.loading|=2}),b.loading|=4,vo(h,e,i)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(u,h)}}}function Z0(t,e){Vn.X(t,e);var n=Ki;if(n&&t){var i=mi(n).hoistableScripts,r=Zi(t),u=i.get(r);u||(u=n.querySelector(Fs(r)),u||(t=p({src:t,async:!0},e),(e=en.get(r))&&fc(t,e),u=n.createElement("script"),oe(u),me(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(r,u))}}function P0(t,e){Vn.M(t,e);var n=Ki;if(n&&t){var i=mi(n).hoistableScripts,r=Zi(t),u=i.get(r);u||(u=n.querySelector(Fs(r)),u||(t=p({src:t,async:!0,type:"module"},e),(e=en.get(r))&&fc(t,e),u=n.createElement("script"),oe(u),me(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(r,u))}}function np(t,e,n,i){var r=(r=at.current)?go(r):null;if(!r)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Xi(n.href),n=mi(r).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Xi(n.href);var u=mi(r).hoistableStyles,h=u.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=r.querySelector(Ps(t)))&&!u._p&&(h.instance=u,h.state.loading=5),en.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},en.set(t,n),u||F0(r,t,n,h.state))),e&&i===null)throw Error(o(528,""));return h}if(e&&i!==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=Zi(n),n=mi(r).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Xi(t){return'href="'+Ze(t)+'"'}function Ps(t){return'link[rel="stylesheet"]['+t+"]"}function ap(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function F0(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),me(e,"link",n),oe(e),t.head.appendChild(e))}function Zi(t){return'[src="'+Ze(t)+'"]'}function Fs(t){return"script[async]"+t}function ip(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Ze(n.href)+'"]');if(i)return e.instance=i,oe(i),i;var r=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),oe(i),me(i,"style",r),vo(i,n.precedence,t),e.instance=i;case"stylesheet":r=Xi(n.href);var u=t.querySelector(Ps(r));if(u)return e.state.loading|=4,e.instance=u,oe(u),u;i=ap(n),(r=en.get(r))&&cc(i,r),u=(t.ownerDocument||t).createElement("link"),oe(u);var h=u;return h._p=new Promise(function(b,x){h.onload=b,h.onerror=x}),me(u,"link",i),e.state.loading|=4,vo(u,n.precedence,t),e.instance=u;case"script":return u=Zi(n.src),(r=t.querySelector(Fs(u)))?(e.instance=r,oe(r),r):(i=n,(r=en.get(u))&&(i=p({},n),fc(i,r)),t=t.ownerDocument||t,r=t.createElement("script"),oe(r),me(r,"link",i),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,vo(i,n.precedence,t));return e.instance}function vo(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,u=r,h=0;h<i.length;h++){var b=i[h];if(b.dataset.precedence===e)u=b;else if(u!==r)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function cc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function fc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var bo=null;function sp(t,e,n){if(bo===null){var i=new Map,r=bo=new Map;r.set(n,i)}else r=bo,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var u=n[r];if(!(u[fs]||u[ce]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var b=i.get(h);b?b.push(u):i.set(h,[u])}}return i}function lp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function $0(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;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!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 op(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function J0(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Xi(i.href),u=e.querySelector(Ps(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=So.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,oe(u);return}u=e.ownerDocument||e,i=ap(i),(r=en.get(r))&&cc(i,r),u=u.createElement("link"),oe(u);var h=u;h._p=new Promise(function(b,x){h.onload=b,h.onerror=x}),me(u,"link",i),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=So.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var dc=0;function I0(t,e){return t.stylesheets&&t.count===0&&xo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&xo(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&dc===0&&(dc=62500*D0());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&xo(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>dc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function So(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var _o=null;function xo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,_o=new Map,e.forEach(W0,t),_o=null,So.call(t))}function W0(t,e){if(!(e.state.loading&4)){var n=_o.get(t);if(n)var i=n.get(null);else{n=new Map,_o.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var h=r[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),i=h)}i&&n.set(null,i)}r=e.instance,h=r.getAttribute("data-precedence"),u=n.get(h)||i,u===i&&n.set(null,r),n.set(h,r),this.count++,i=So.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),u?u.parentNode.insertBefore(r,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var $s={$$typeof:P,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function tb(t,e,n,i,r,u,h,b,x){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=Jn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jn(0),this.hiddenUpdates=Jn(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function rp(t,e,n,i,r,u,h,b,x,A,j,Q){return t=new tb(t,e,n,h,x,A,j,Q,b),e=1,u===!0&&(e|=24),u=He(3,null,null,e),t.current=u,u.stateNode=t,e=Kr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:e},Fr(u),t}function up(t){return t?(t=wi,t):wi}function cp(t,e,n,i,r,u){r=up(r),i.context===null?i.context=r:i.pendingContext=r,i=sa(e),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=la(t,i,e),n!==null&&(Le(n,t,e),Ms(n,t,e))}function fp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function hc(t,e){fp(t,e),(t=t.alternate)&&fp(t,e)}function dp(t){if(t.tag===13||t.tag===31){var e=qa(t,67108864);e!==null&&Le(e,t,67108864),hc(t,67108864)}}function hp(t){if(t.tag===13||t.tag===31){var e=Ge();e=ci(e);var n=qa(t,e);n!==null&&Le(n,t,e),hc(t,e)}}var Eo=!0;function eb(t,e,n,i){var r=C.T;C.T=null;var u=X.p;try{X.p=2,mc(t,e,n,i)}finally{X.p=u,C.T=r}}function nb(t,e,n,i){var r=C.T;C.T=null;var u=X.p;try{X.p=8,mc(t,e,n,i)}finally{X.p=u,C.T=r}}function mc(t,e,n,i){if(Eo){var r=pc(i);if(r===null)tc(t,e,i,wo,n),pp(t,i);else if(ib(r,t,e,n,i))i.stopPropagation();else if(pp(t,i),e&4&&-1<ab.indexOf(t)){for(;r!==null;){var u=hi(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=mn(u.pendingLanes);if(h!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var x=1<<31-pe(h);b.entanglements[1]|=x,h&=~x}vn(u),(zt&6)===0&&(so=Ct()+500,Ys(0))}}break;case 31:case 13:b=qa(u,2),b!==null&&Le(b,u,2),oo(),hc(u,2)}if(u=pc(i),u===null&&tc(t,e,i,wo,n),u===r)break;r=u}r!==null&&i.stopPropagation()}else tc(t,e,i,null,n)}}function pc(t){return t=gr(t),yc(t)}var wo=null;function yc(t){if(wo=null,t=di(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=y(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 wo=t,null}function mp(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(Se()){case dn:return 2;case pl:return 8;case za:case us:return 32;case wn:return 268435456;default:return 32}default:return 32}}var gc=!1,ga=null,va=null,ba=null,Js=new Map,Is=new Map,Sa=[],ab="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 pp(t,e){switch(t){case"focusin":case"focusout":ga=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":ba=null;break;case"pointerover":case"pointerout":Js.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Is.delete(e.pointerId)}}function Ws(t,e,n,i,r,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[r]},e!==null&&(e=hi(e),e!==null&&dp(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function ib(t,e,n,i,r){switch(e){case"focusin":return ga=Ws(ga,t,e,n,i,r),!0;case"dragenter":return va=Ws(va,t,e,n,i,r),!0;case"mouseover":return ba=Ws(ba,t,e,n,i,r),!0;case"pointerover":var u=r.pointerId;return Js.set(u,Ws(Js.get(u)||null,t,e,n,i,r)),!0;case"gotpointercapture":return u=r.pointerId,Is.set(u,Ws(Is.get(u)||null,t,e,n,i,r)),!0}return!1}function yp(t){var e=di(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,Of(t.priority,function(){hp(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,Of(t.priority,function(){hp(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 Ro(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=pc(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);yr=i,n.target.dispatchEvent(i),yr=null}else return e=hi(n),e!==null&&dp(e),t.blockedOn=n,!1;e.shift()}return!0}function gp(t,e,n){Ro(t)&&n.delete(e)}function sb(){gc=!1,ga!==null&&Ro(ga)&&(ga=null),va!==null&&Ro(va)&&(va=null),ba!==null&&Ro(ba)&&(ba=null),Js.forEach(gp),Is.forEach(gp)}function To(t,e){t.blockedOn===e&&(t.blockedOn=null,gc||(gc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,sb)))}var Co=null;function vp(t){Co!==t&&(Co=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Co===t&&(Co=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],r=t[e+2];if(typeof i!="function"){if(yc(i||n)===null)continue;break}var u=hi(n);u!==null&&(t.splice(e,3),e-=3,pu(u,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function Pi(t){function e(x){return To(x,t)}ga!==null&&To(ga,t),va!==null&&To(va,t),ba!==null&&To(ba,t),Js.forEach(e),Is.forEach(e);for(var n=0;n<Sa.length;n++){var i=Sa[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Sa.length&&(n=Sa[0],n.blockedOn===null);)yp(n),n.blockedOn===null&&Sa.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],u=n[i+1],h=r[Ce]||null;if(typeof u=="function")h||vp(n);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[Ce]||null)b=h.formAction;else if(yc(r)!==null)continue}else b=h.action;typeof b=="function"?n[i+1]=b:(n.splice(i,3),i-=3),vp(n)}}}function bp(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function vc(t){this._internalRoot=t}Mo.prototype.render=vc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,i=Ge();cp(n,i,t,e,null,null)},Mo.prototype.unmount=vc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;cp(t.current,2,null,t,null,null),oo(),e[fi]=null}};function Mo(t){this._internalRoot=t}Mo.prototype.unstable_scheduleHydration=function(t){if(t){var e=ur();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Sa.length&&e!==0&&e<Sa[n].priority;n++);Sa.splice(n,0,t),n===0&&yp(t)}};var Sp=s.version;if(Sp!=="19.2.0")throw Error(o(527,Sp,"19.2.0"));X.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=g(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var lb={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ao.isDisabled&&Ao.supportsFiber)try{Da=Ao.inject(lb),_e=Ao}catch{}}return il.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,i="",r=Ch,u=Mh,h=Ah;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=rp(t,1,!1,null,null,n,i,null,r,u,h,bp),t[fi]=e.current,Wu(t),new vc(e)},il.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var i=!1,r="",u=Ch,h=Mh,b=Ah,x=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),e=rp(t,1,!0,e,n??null,i,r,x,u,h,b,bp),e.context=up(null),n=e.current,i=Ge(),i=ci(i),r=sa(i),r.callback=null,la(n,r,i),n=i,e.current.lanes=n,Kt(e,n),vn(e),t[fi]=e.current,Wu(t),new Mo(e)},il.version="19.2.0",il}var $p;function l1(){if($p)return zc.exports;$p=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(s){console.error(s)}}return a(),zc.exports=s1(),zc.exports}var o1=l1();const r1=hf(o1);/**
68
- * @license lucide-react v0.548.0 - ISC
69
- *
70
- * This source code is licensed under the ISC license.
71
- * See the LICENSE file in the root directory of this source tree.
72
- */const u1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),c1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,l,o)=>o?o.toUpperCase():l.toLowerCase()),Jp=a=>{const s=c1(a);return s.charAt(0).toUpperCase()+s.slice(1)},Yy=(...a)=>a.filter((s,l,o)=>!!s&&s.trim()!==""&&o.indexOf(s)===l).join(" ").trim(),f1=a=>{for(const s in a)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};/**
73
- * @license lucide-react v0.548.0 - ISC
74
- *
75
- * This source code is licensed under the ISC license.
76
- * See the LICENSE file in the root directory of this source tree.
77
- */var d1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
78
- * @license lucide-react v0.548.0 - ISC
79
- *
80
- * This source code is licensed under the ISC license.
81
- * See the LICENSE file in the root directory of this source tree.
82
- */const h1=K.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:d,...y},m)=>K.createElement("svg",{ref:m,...d1,width:s,height:s,stroke:a,strokeWidth:o?Number(l)*24/Number(s):l,className:Yy("lucide",c),...!f&&!f1(y)&&{"aria-hidden":"true"},...y},[...d.map(([g,v])=>K.createElement(g,v)),...Array.isArray(f)?f:[f]]));/**
83
- * @license lucide-react v0.548.0 - ISC
84
- *
85
- * This source code is licensed under the ISC license.
86
- * See the LICENSE file in the root directory of this source tree.
87
- */const or=(a,s)=>{const l=K.forwardRef(({className:o,...c},f)=>K.createElement(h1,{ref:f,iconNode:s,className:Yy(`lucide-${u1(Jp(a))}`,`lucide-${a}`,o),...c}));return l.displayName=Jp(a),l};/**
88
- * @license lucide-react v0.548.0 - ISC
89
- *
90
- * This source code is licensed under the ISC license.
91
- * See the LICENSE file in the root directory of this source tree.
92
- */const m1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ip=or("circle-alert",m1);/**
93
- * @license lucide-react v0.548.0 - ISC
94
- *
95
- * This source code is licensed under the ISC license.
96
- * See the LICENSE file in the root directory of this source tree.
97
- */const p1=[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],y1=or("file-question-mark",p1);/**
98
- * @license lucide-react v0.548.0 - ISC
99
- *
100
- * This source code is licensed under the ISC license.
101
- * See the LICENSE file in the root directory of this source tree.
102
- */const g1=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Ky=or("house",g1);/**
103
- * @license lucide-react v0.548.0 - ISC
104
- *
105
- * This source code is licensed under the ISC license.
106
- * See the LICENSE file in the root directory of this source tree.
107
- */const v1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],b1=or("refresh-cw",v1),S1=K.createContext(null),Nc={didCatch:!1,error:null};class _1 extends K.Component{constructor(s){super(s),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Nc}static getDerivedStateFromError(s){return{didCatch:!0,error:s}}resetErrorBoundary(){const{error:s}=this.state;if(s!==null){for(var l,o,c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];(l=(o=this.props).onReset)===null||l===void 0||l.call(o,{args:f,reason:"imperative-api"}),this.setState(Nc)}}componentDidCatch(s,l){var o,c;(o=(c=this.props).onError)===null||o===void 0||o.call(c,s,l)}componentDidUpdate(s,l){const{didCatch:o}=this.state,{resetKeys:c}=this.props;if(o&&l.error!==null&&x1(s.resetKeys,c)){var f,d;(f=(d=this.props).onReset)===null||f===void 0||f.call(d,{next:c,prev:s.resetKeys,reason:"keys"}),this.setState(Nc)}}render(){const{children:s,fallbackRender:l,FallbackComponent:o,fallback:c}=this.props,{didCatch:f,error:d}=this.state;let y=s;if(f){const m={error:d,resetErrorBoundary:this.resetErrorBoundary};if(typeof l=="function")y=l(m);else if(o)y=K.createElement(o,m);else if(c!==void 0)y=c;else throw d}return K.createElement(S1.Provider,{value:{didCatch:f,error:d,resetErrorBoundary:this.resetErrorBoundary}},y)}}function x1(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return a.length!==s.length||a.some((l,o)=>!Object.is(l,s[o]))}function Xy(a){var s,l,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(s=0;s<c;s++)a[s]&&(l=Xy(a[s]))&&(o&&(o+=" "),o+=l)}else for(l in a)a[l]&&(o&&(o+=" "),o+=l);return o}function Zy(){for(var a,s,l=0,o="",c=arguments.length;l<c;l++)(a=arguments[l])&&(s=Xy(a))&&(o&&(o+=" "),o+=s);return o}const Wp=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,ty=Zy,Py=(a,s)=>l=>{var o;if(s?.variants==null)return ty(a,l?.class,l?.className);const{variants:c,defaultVariants:f}=s,d=Object.keys(c).map(g=>{const v=l?.[g],p=f?.[g];if(v===null)return null;const S=Wp(v)||Wp(p);return c[g][S]}),y=l&&Object.entries(l).reduce((g,v)=>{let[p,S]=v;return S===void 0||(g[p]=S),g},{}),m=s==null||(o=s.compoundVariants)===null||o===void 0?void 0:o.reduce((g,v)=>{let{class:p,className:S,..._}=v;return Object.entries(_).every(E=>{let[z,L]=E;return Array.isArray(L)?L.includes({...f,...y}[z]):{...f,...y}[z]===L})?[...g,p,S]:g},[]);return ty(a,d,m,l?.class,l?.className)},Ef="-",E1=a=>{const s=R1(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:d=>{const y=d.split(Ef);return y[0]===""&&y.length!==1&&y.shift(),Fy(y,s)||w1(d)},getConflictingClassGroupIds:(d,y)=>{const m=l[d]||[];return y&&o[d]?[...m,...o[d]]:m}}},Fy=(a,s)=>{if(a.length===0)return s.classGroupId;const l=a[0],o=s.nextPart.get(l),c=o?Fy(a.slice(1),o):void 0;if(c)return c;if(s.validators.length===0)return;const f=a.join(Ef);return s.validators.find(({validator:d})=>d(f))?.classGroupId},ey=/^\[(.+)\]$/,w1=a=>{if(ey.test(a)){const s=ey.exec(a)[1],l=s?.substring(0,s.indexOf(":"));if(l)return"arbitrary.."+l}},R1=a=>{const{theme:s,classGroups:l}=a,o={nextPart:new Map,validators:[]};for(const c in l)Xc(l[c],o,c,s);return o},Xc=(a,s,l,o)=>{a.forEach(c=>{if(typeof c=="string"){const f=c===""?s:ny(s,c);f.classGroupId=l;return}if(typeof c=="function"){if(T1(c)){Xc(c(o),s,l,o);return}s.validators.push({validator:c,classGroupId:l});return}Object.entries(c).forEach(([f,d])=>{Xc(d,ny(s,f),l,o)})})},ny=(a,s)=>{let l=a;return s.split(Ef).forEach(o=>{l.nextPart.has(o)||l.nextPart.set(o,{nextPart:new Map,validators:[]}),l=l.nextPart.get(o)}),l},T1=a=>a.isThemeGetter,C1=a=>{if(a<1)return{get:()=>{},set:()=>{}};let s=0,l=new Map,o=new Map;const c=(f,d)=>{l.set(f,d),s++,s>a&&(s=0,o=l,l=new Map)};return{get(f){let d=l.get(f);if(d!==void 0)return d;if((d=o.get(f))!==void 0)return c(f,d),d},set(f,d){l.has(f)?l.set(f,d):c(f,d)}}},Zc="!",Pc=":",M1=Pc.length,A1=a=>{const{prefix:s,experimentalParseClassName:l}=a;let o=c=>{const f=[];let d=0,y=0,m=0,g;for(let E=0;E<c.length;E++){let z=c[E];if(d===0&&y===0){if(z===Pc){f.push(c.slice(m,E)),m=E+M1;continue}if(z==="/"){g=E;continue}}z==="["?d++:z==="]"?d--:z==="("?y++:z===")"&&y--}const v=f.length===0?c:c.substring(m),p=O1(v),S=p!==v,_=g&&g>m?g-m:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:p,maybePostfixModifierPosition:_}};if(s){const c=s+Pc,f=o;o=d=>d.startsWith(c)?f(d.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(l){const c=o;o=f=>l({className:f,parseClassName:c})}return o},O1=a=>a.endsWith(Zc)?a.substring(0,a.length-1):a.startsWith(Zc)?a.substring(1):a,z1=a=>{const s=Object.fromEntries(a.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const c=[];let f=[];return o.forEach(d=>{d[0]==="["||s[d]?(c.push(...f.sort(),d),f=[]):f.push(d)}),c.push(...f.sort()),c}},D1=a=>({cache:C1(a.cacheSize),parseClassName:A1(a),sortModifiers:z1(a),...E1(a)}),L1=/\s+/,N1=(a,s)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:f}=s,d=[],y=a.trim().split(L1);let m="";for(let g=y.length-1;g>=0;g-=1){const v=y[g],{isExternal:p,modifiers:S,hasImportantModifier:_,baseClassName:E,maybePostfixModifierPosition:z}=l(v);if(p){m=v+(m.length>0?" "+m:m);continue}let L=!!z,H=o(L?E.substring(0,z):E);if(!H){if(!L){m=v+(m.length>0?" "+m:m);continue}if(H=o(E),!H){m=v+(m.length>0?" "+m:m);continue}L=!1}const F=f(S).join(":"),P=_?F+Zc:F,I=P+H;if(d.includes(I))continue;d.push(I);const lt=c(H,L);for(let $=0;$<lt.length;++$){const V=lt[$];d.push(P+V)}m=v+(m.length>0?" "+m:m)}return m};function j1(){let a=0,s,l,o="";for(;a<arguments.length;)(s=arguments[a++])&&(l=$y(s))&&(o&&(o+=" "),o+=l);return o}const $y=a=>{if(typeof a=="string")return a;let s,l="";for(let o=0;o<a.length;o++)a[o]&&(s=$y(a[o]))&&(l&&(l+=" "),l+=s);return l};function U1(a,...s){let l,o,c,f=d;function d(m){const g=s.reduce((v,p)=>p(v),a());return l=D1(g),o=l.cache.get,c=l.cache.set,f=y,y(m)}function y(m){const g=o(m);if(g)return g;const v=N1(m,l);return c(m,v),v}return function(){return f(j1.apply(null,arguments))}}const ne=a=>{const s=l=>l[a]||[];return s.isThemeGetter=!0,s},Jy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Iy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,B1=/^\d+\/\d+$/,H1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,k1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Q1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,V1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fi=a=>B1.test(a),St=a=>!!a&&!Number.isNaN(Number(a)),xa=a=>!!a&&Number.isInteger(Number(a)),jc=a=>a.endsWith("%")&&St(a.slice(0,-1)),Gn=a=>H1.test(a),G1=()=>!0,Y1=a=>q1.test(a)&&!k1.test(a),Wy=()=>!1,K1=a=>Q1.test(a),X1=a=>V1.test(a),Z1=a=>!et(a)&&!nt(a),P1=a=>ls(a,ng,Wy),et=a=>Jy.test(a),Ia=a=>ls(a,ag,Y1),Uc=a=>ls(a,W1,St),ay=a=>ls(a,tg,Wy),F1=a=>ls(a,eg,X1),jo=a=>ls(a,ig,K1),nt=a=>Iy.test(a),sl=a=>os(a,ag),$1=a=>os(a,t_),iy=a=>os(a,tg),J1=a=>os(a,ng),I1=a=>os(a,eg),Uo=a=>os(a,ig,!0),ls=(a,s,l)=>{const o=Jy.exec(a);return o?o[1]?s(o[1]):l(o[2]):!1},os=(a,s,l=!1)=>{const o=Iy.exec(a);return o?o[1]?s(o[1]):l:!1},tg=a=>a==="position"||a==="percentage",eg=a=>a==="image"||a==="url",ng=a=>a==="length"||a==="size"||a==="bg-size",ag=a=>a==="length",W1=a=>a==="number",t_=a=>a==="family-name",ig=a=>a==="shadow",e_=()=>{const a=ne("color"),s=ne("font"),l=ne("text"),o=ne("font-weight"),c=ne("tracking"),f=ne("leading"),d=ne("breakpoint"),y=ne("container"),m=ne("spacing"),g=ne("radius"),v=ne("shadow"),p=ne("inset-shadow"),S=ne("text-shadow"),_=ne("drop-shadow"),E=ne("blur"),z=ne("perspective"),L=ne("aspect"),H=ne("ease"),F=ne("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],lt=()=>[...I(),nt,et],$=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],D=()=>[nt,et,m],W=()=>[Fi,"full","auto",...D()],ot=()=>[xa,"none","subgrid",nt,et],dt=()=>["auto",{span:["full",xa,nt,et]},xa,nt,et],ht=()=>[xa,"auto",nt,et],Lt=()=>["auto","min","max","fr",nt,et],Dt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Mt=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...D()],X=()=>[Fi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],Y=()=>[a,nt,et],vt=()=>[...I(),iy,ay,{position:[nt,et]}],pt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",J1,P1,{size:[nt,et]}],q=()=>[jc,sl,Ia],B=()=>["","none","full",g,nt,et],Z=()=>["",St,sl,Ia],J=()=>["solid","dashed","dotted","double"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],it=()=>[St,jc,iy,ay],ct=()=>["","none",E,nt,et],bt=()=>["none",St,nt,et],te=()=>["none",St,nt,et],ue=()=>[St,nt,et],Yt=()=>[Fi,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gn],breakpoint:[Gn],color:[G1],container:[Gn],"drop-shadow":[Gn],ease:["in","out","in-out"],font:[Z1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gn],shadow:[Gn],spacing:["px",St],text:[Gn],"text-shadow":[Gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fi,et,nt,L]}],container:["container"],columns:[{columns:[St,et,nt,y]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:lt()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[xa,"auto",nt,et]}],basis:[{basis:[Fi,"full","auto",y,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[St,Fi,"auto","initial","none",et]}],grow:[{grow:["",St,nt,et]}],shrink:[{shrink:["",St,nt,et]}],order:[{order:[xa,"first","last","none",nt,et]}],"grid-cols":[{"grid-cols":ot()}],"col-start-end":[{col:dt()}],"col-start":[{"col-start":ht()}],"col-end":[{"col-end":ht()}],"grid-rows":[{"grid-rows":ot()}],"row-start-end":[{row:dt()}],"row-start":[{"row-start":ht()}],"row-end":[{"row-end":ht()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Lt()}],"auto-rows":[{"auto-rows":Lt()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...Dt(),"normal"]}],"justify-items":[{"justify-items":[...Mt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Mt()]}],"align-content":[{content:["normal",...Dt()]}],"align-items":[{items:[...Mt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Mt(),{baseline:["","last"]}]}],"place-content":[{"place-content":Dt()}],"place-items":[{"place-items":[...Mt(),"baseline"]}],"place-self":[{"place-self":["auto",...Mt()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[y,"screen",...X()]}],"min-w":[{"min-w":[y,"screen","none",...X()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[d]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",l,sl,Ia]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,nt,Uc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jc,et]}],"font-family":[{font:[$1,et,s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,nt,et]}],"line-clamp":[{"line-clamp":[St,"none",nt,Uc]}],leading:[{leading:[f,...D()]}],"list-image":[{"list-image":["none",nt,et]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",nt,et]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[St,"from-font","auto",nt,Ia]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[St,"auto",nt,et]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nt,et]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",nt,et]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:vt()}],"bg-repeat":[{bg:pt()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xa,nt,et],radial:["",nt,et],conic:[xa,nt,et]},I1,F1]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[St,nt,et]}],"outline-w":[{outline:["",St,sl,Ia]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",v,Uo,jo]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Uo,jo]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[St,Ia]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",S,Uo,jo]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[St,nt,et]}],"mix-blend":[{"mix-blend":[...at(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":at()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[St]}],"mask-image-linear-from-pos":[{"mask-linear-from":it()}],"mask-image-linear-to-pos":[{"mask-linear-to":it()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":it()}],"mask-image-t-to-pos":[{"mask-t-to":it()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":it()}],"mask-image-r-to-pos":[{"mask-r-to":it()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":it()}],"mask-image-b-to-pos":[{"mask-b-to":it()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":it()}],"mask-image-l-to-pos":[{"mask-l-to":it()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":it()}],"mask-image-x-to-pos":[{"mask-x-to":it()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":it()}],"mask-image-y-to-pos":[{"mask-y-to":it()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[nt,et]}],"mask-image-radial-from-pos":[{"mask-radial-from":it()}],"mask-image-radial-to-pos":[{"mask-radial-to":it()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[St]}],"mask-image-conic-from-pos":[{"mask-conic-from":it()}],"mask-image-conic-to-pos":[{"mask-conic-to":it()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:vt()}],"mask-repeat":[{mask:pt()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",nt,et]}],filter:[{filter:["","none",nt,et]}],blur:[{blur:ct()}],brightness:[{brightness:[St,nt,et]}],contrast:[{contrast:[St,nt,et]}],"drop-shadow":[{"drop-shadow":["","none",_,Uo,jo]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",St,nt,et]}],"hue-rotate":[{"hue-rotate":[St,nt,et]}],invert:[{invert:["",St,nt,et]}],saturate:[{saturate:[St,nt,et]}],sepia:[{sepia:["",St,nt,et]}],"backdrop-filter":[{"backdrop-filter":["","none",nt,et]}],"backdrop-blur":[{"backdrop-blur":ct()}],"backdrop-brightness":[{"backdrop-brightness":[St,nt,et]}],"backdrop-contrast":[{"backdrop-contrast":[St,nt,et]}],"backdrop-grayscale":[{"backdrop-grayscale":["",St,nt,et]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[St,nt,et]}],"backdrop-invert":[{"backdrop-invert":["",St,nt,et]}],"backdrop-opacity":[{"backdrop-opacity":[St,nt,et]}],"backdrop-saturate":[{"backdrop-saturate":[St,nt,et]}],"backdrop-sepia":[{"backdrop-sepia":["",St,nt,et]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",nt,et]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[St,"initial",nt,et]}],ease:[{ease:["linear","initial",H,nt,et]}],delay:[{delay:[St,nt,et]}],animate:[{animate:["none",F,nt,et]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,nt,et]}],"perspective-origin":[{"perspective-origin":lt()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[nt,et,"","none","gpu","cpu"]}],"transform-origin":[{origin:lt()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Yt()}],"translate-x":[{"translate-x":Yt()}],"translate-y":[{"translate-y":Yt()}],"translate-z":[{"translate-z":Yt()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",nt,et]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",nt,et]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[St,sl,Ia,Uc]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},n_=U1(e_);function Xn(...a){return n_(Zy(a))}const a_=Py("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function i_({className:a,variant:s,...l}){return U.jsx("div",{"data-slot":"alert",role:"alert",className:Xn(a_({variant:s}),a),...l})}function s_({className:a,...s}){return U.jsx("div",{"data-slot":"alert-title",className:Xn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",a),...s})}function l_({className:a,...s}){return U.jsx("div",{"data-slot":"alert-description",className:Xn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",a),...s})}function sy(a,s){if(typeof a=="function")return a(s);a!=null&&(a.current=s)}function sg(...a){return s=>{let l=!1;const o=a.map(c=>{const f=sy(c,s);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():sy(a[c],null)}}}}function u2(...a){return K.useCallback(sg(...a),a)}function o_(a){const s=u_(a),l=K.forwardRef((o,c)=>{const{children:f,...d}=o,y=K.Children.toArray(f),m=y.find(c_);if(m){const g=m.props.children,v=y.map(p=>p===m?K.Children.count(g)>1?K.Children.only(null):K.isValidElement(g)?g.props.children:null:p);return U.jsx(s,{...d,ref:c,children:K.isValidElement(g)?K.cloneElement(g,void 0,v):null})}return U.jsx(s,{...d,ref:c,children:f})});return l.displayName=`${a}.Slot`,l}var r_=o_("Slot");function u_(a){const s=K.forwardRef((l,o)=>{const{children:c,...f}=l;if(K.isValidElement(c)){const d=d_(c),y=f_(f,c.props);return c.type!==K.Fragment&&(y.ref=o?sg(o,d):d),K.cloneElement(c,y)}return K.Children.count(c)>1?K.Children.only(null):null});return s.displayName=`${a}.SlotClone`,s}var lg=Symbol("radix.slottable");function c2(a){const s=({children:l})=>U.jsx(U.Fragment,{children:l});return s.displayName=`${a}.Slottable`,s.__radixId=lg,s}function c_(a){return K.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===lg}function f_(a,s){const l={...s};for(const o in s){const c=a[o],f=s[o];/^on[A-Z]/.test(o)?c&&f?l[o]=(...y)=>{const m=f(...y);return c(...y),m}:c&&(l[o]=c):o==="style"?l[o]={...c,...f}:o==="className"&&(l[o]=[c,f].filter(Boolean).join(" "))}return{...a,...l}}function d_(a){let s=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,l=s&&"isReactWarning"in s&&s.isReactWarning;return l?a.ref:(s=Object.getOwnPropertyDescriptor(a,"ref")?.get,l=s&&"isReactWarning"in s&&s.isReactWarning,l?a.props.ref:a.props.ref||a.ref)}const h_=Py("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Fc({className:a,variant:s,size:l,asChild:o=!1,...c}){const f=o?r_:"button";return U.jsx(f,{"data-slot":"button",className:Xn(h_({variant:s,size:l,className:a})),...c})}function og({className:a,...s}){return U.jsx("div",{"data-slot":"card",className:Xn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...s})}function rg({className:a,...s}){return U.jsx("div",{"data-slot":"card-header",className:Xn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...s})}function ug({className:a,...s}){return U.jsx("div",{"data-slot":"card-title",className:Xn("leading-none font-semibold",a),...s})}function cg({className:a,...s}){return U.jsx("div",{"data-slot":"card-description",className:Xn("text-muted-foreground text-sm",a),...s})}function fg({className:a,...s}){return U.jsx("div",{"data-slot":"card-content",className:Xn("px-6",a),...s})}const m_=({children:a})=>U.jsx(_1,{FallbackComponent:({error:s,resetErrorBoundary:l})=>U.jsx("div",{className:"flex min-h-screen items-center justify-center p-4",children:U.jsxs(og,{className:"w-full max-w-2xl",children:[U.jsx(rg,{children:U.jsxs("div",{className:"flex items-center gap-3",children:[U.jsx(Ip,{className:"size-6 text-destructive"}),U.jsxs("div",{children:[U.jsx(ug,{children:"Something went wrong"}),U.jsx(cg,{children:"An unexpected error occurred in the application"})]})]})}),U.jsxs(fg,{className:"space-y-4",children:[U.jsxs(i_,{variant:"destructive",children:[U.jsx(Ip,{}),U.jsx(s_,{children:"Error Details"}),U.jsx(l_,{children:U.jsx("code",{className:"text-xs",children:s.message})})]}),U.jsxs("div",{className:"flex gap-2",children:[U.jsxs(Fc,{onClick:l,variant:"default",children:[U.jsx(b1,{}),"Try Again"]}),U.jsxs(Fc,{onClick:()=>{window.location.href="/"},variant:"outline",children:[U.jsx(Ky,{}),"Go to Home"]})]})]})]})}),children:a});var rs=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(){}},p_={setTimeout:(a,s)=>setTimeout(a,s),clearTimeout:a=>clearTimeout(a),setInterval:(a,s)=>setInterval(a,s),clearInterval:a=>clearInterval(a)},y_=class{#t=p_;#e=!1;setTimeoutProvider(a){this.#t=a}setTimeout(a,s){return this.#t.setTimeout(a,s)}clearTimeout(a){this.#t.clearTimeout(a)}setInterval(a,s){return this.#t.setInterval(a,s)}clearInterval(a){this.#t.clearInterval(a)}},ti=new y_;function g_(a){setTimeout(a,0)}var si=typeof window>"u"||"Deno"in globalThis;function Ee(){}function v_(a,s){return typeof a=="function"?a(s):a}function $c(a){return typeof a=="number"&&a>=0&&a!==1/0}function dg(a,s){return Math.max(a+(s||0)-Date.now(),0)}function Ma(a,s){return typeof a=="function"?a(s):a}function an(a,s){return typeof a=="function"?a(s):a}function ly(a,s){const{type:l="all",exact:o,fetchStatus:c,predicate:f,queryKey:d,stale:y}=a;if(d){if(o){if(s.queryHash!==wf(d,s.options))return!1}else if(!fl(s.queryKey,d))return!1}if(l!=="all"){const m=s.isActive();if(l==="active"&&!m||l==="inactive"&&m)return!1}return!(typeof y=="boolean"&&s.isStale()!==y||c&&c!==s.state.fetchStatus||f&&!f(s))}function oy(a,s){const{exact:l,status:o,predicate:c,mutationKey:f}=a;if(f){if(!s.options.mutationKey)return!1;if(l){if(li(s.options.mutationKey)!==li(f))return!1}else if(!fl(s.options.mutationKey,f))return!1}return!(o&&s.state.status!==o||c&&!c(s))}function wf(a,s){return(s?.queryKeyHashFn||li)(a)}function li(a){return JSON.stringify(a,(s,l)=>Jc(l)?Object.keys(l).sort().reduce((o,c)=>(o[c]=l[c],o),{}):l)}function fl(a,s){return a===s?!0:typeof a!=typeof s?!1:a&&s&&typeof a=="object"&&typeof s=="object"?Object.keys(s).every(l=>fl(a[l],s[l])):!1}var b_=Object.prototype.hasOwnProperty;function hg(a,s){if(a===s)return a;const l=ry(a)&&ry(s);if(!l&&!(Jc(a)&&Jc(s)))return s;const c=(l?a:Object.keys(a)).length,f=l?s:Object.keys(s),d=f.length,y=l?new Array(d):{};let m=0;for(let g=0;g<d;g++){const v=l?g:f[g],p=a[v],S=s[v];if(p===S){y[v]=p,(l?g<c:b_.call(a,v))&&m++;continue}if(p===null||S===null||typeof p!="object"||typeof S!="object"){y[v]=S;continue}const _=hg(p,S);y[v]=_,_===p&&m++}return c===d&&m===c?a:y}function $o(a,s){if(!s||Object.keys(a).length!==Object.keys(s).length)return!1;for(const l in a)if(a[l]!==s[l])return!1;return!0}function ry(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Jc(a){if(!uy(a))return!1;const s=a.constructor;if(s===void 0)return!0;const l=s.prototype;return!(!uy(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function uy(a){return Object.prototype.toString.call(a)==="[object Object]"}function S_(a){return new Promise(s=>{ti.setTimeout(s,a)})}function Ic(a,s,l){return typeof l.structuralSharing=="function"?l.structuralSharing(a,s):l.structuralSharing!==!1?hg(a,s):s}function __(a,s,l=0){const o=[...a,s];return l&&o.length>l?o.slice(1):o}function x_(a,s,l=0){const o=[s,...a];return l&&o.length>l?o.slice(0,-1):o}var Rf=Symbol();function mg(a,s){return!a.queryFn&&s?.initialPromise?()=>s.initialPromise:!a.queryFn||a.queryFn===Rf?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function pg(a,s){return typeof a=="function"?a(...s):!!a}var E_=class extends rs{#t;#e;#n;constructor(){super(),this.#n=a=>{if(!si&&window.addEventListener){const s=()=>a();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}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(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(a){this.#t!==a&&(this.#t=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(s=>{s(a)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Tf=new E_;function Wc(){let a,s;const l=new Promise((c,f)=>{a=c,s=f});l.status="pending",l.catch(()=>{});function o(c){Object.assign(l,c),delete l.resolve,delete l.reject}return l.resolve=c=>{o({status:"fulfilled",value:c}),a(c)},l.reject=c=>{o({status:"rejected",reason:c}),s(c)},l}var w_=g_;function R_(){let a=[],s=0,l=y=>{y()},o=y=>{y()},c=w_;const f=y=>{s?a.push(y):c(()=>{l(y)})},d=()=>{const y=a;a=[],y.length&&c(()=>{o(()=>{y.forEach(m=>{l(m)})})})};return{batch:y=>{let m;s++;try{m=y()}finally{s--,s||d()}return m},batchCalls:y=>(...m)=>{f(()=>{y(...m)})},schedule:f,setNotifyFunction:y=>{l=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{c=y}}}var ae=R_(),T_=class extends rs{#t=!0;#e;#n;constructor(){super(),this.#n=a=>{if(!si&&window.addEventListener){const s=()=>a(!0),l=()=>a(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",l)}}}}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(l=>{l(a)}))}isOnline(){return this.#t}},Jo=new T_;function C_(a){return Math.min(1e3*2**a,3e4)}function yg(a){return(a??"online")==="online"?Jo.isOnline():!0}var tf=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function gg(a){let s=!1,l=0,o;const c=Wc(),f=()=>c.status!=="pending",d=z=>{if(!f()){const L=new tf(z);S(L),a.onCancel?.(L)}},y=()=>{s=!0},m=()=>{s=!1},g=()=>Tf.isFocused()&&(a.networkMode==="always"||Jo.isOnline())&&a.canRun(),v=()=>yg(a.networkMode)&&a.canRun(),p=z=>{f()||(o?.(),c.resolve(z))},S=z=>{f()||(o?.(),c.reject(z))},_=()=>new Promise(z=>{o=L=>{(f()||g())&&z(L)},a.onPause?.()}).then(()=>{o=void 0,f()||a.onContinue?.()}),E=()=>{if(f())return;let z;const L=l===0?a.initialPromise:void 0;try{z=L??a.fn()}catch(H){z=Promise.reject(H)}Promise.resolve(z).then(p).catch(H=>{if(f())return;const F=a.retry??(si?0:3),P=a.retryDelay??C_,I=typeof P=="function"?P(l,H):P,lt=F===!0||typeof F=="number"&&l<F||typeof F=="function"&&F(l,H);if(s||!lt){S(H);return}l++,a.onFail?.(l,H),S_(I).then(()=>g()?void 0:_()).then(()=>{s?S(H):E()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(o?.(),c),cancelRetry:y,continueRetry:m,canStart:v,start:()=>(v()?E():_().then(E),c)}}var vg=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$c(this.gcTime)&&(this.#t=ti.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(si?1/0:300*1e3))}clearGcTimeout(){this.#t&&(ti.clearTimeout(this.#t),this.#t=void 0)}},M_=class extends vg{#t;#e;#n;#i;#a;#l;#o;constructor(a){super(),this.#o=!1,this.#l=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#i=a.client,this.#n=this.#i.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#t=cy(this.options),this.state=a.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){if(this.options={...this.#l,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=cy(this.options);s.data!==void 0&&(this.setData(s.data,{updatedAt:s.dataUpdatedAt,manual:!0}),this.#t=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(a,s){const l=Ic(this.state.data,a,this.options);return this.#s({data:l,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),l}setState(a,s){this.#s({type:"setState",state:a,setStateOptions:s})}cancel(a){const s=this.#a?.promise;return this.#a?.cancel(a),s?s.then(Ee).catch(Ee):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(a=>an(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Ma(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:!dg(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(s=>s!==a),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(a,s){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const y=this.observers.find(m=>m.options.queryFn);y&&this.setOptions(y.options)}const l=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#o=!0,l.signal)})},c=()=>{const y=mg(this.options,s),g=(()=>{const v={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(v),v})();return this.#o=!1,this.options.persister?this.options.persister(y,g,this):y(g)},d=(()=>{const y={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:c};return o(y),y})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=gg({initialPromise:s?.initialPromise,fn:d.fetchFn,onCancel:y=>{y instanceof tf&&y.revert&&this.setState({...this.#e,fetchStatus:"idle"}),l.abort()},onFail:(y,m)=>{this.#s({type:"failed",failureCount:y,error:m})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const y=await this.#a.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#n.config.onSuccess?.(y,this),this.#n.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof tf){if(y.silent)return this.#a.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#s({type:"error",error:y}),this.#n.config.onError?.(y,this),this.#n.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#s(a){const s=l=>{switch(a.type){case"failed":return{...l,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...bg(l.data,this.options),fetchMeta:a.meta??null};case"success":const o={...l,data:a.data,dataUpdateCount:l.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=a.manual?o:void 0,o;case"error":const c=a.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...a.state}}};this.state=s(this.state),ae.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:a})})}};function bg(a,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yg(s.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function cy(a){const s=typeof a.initialData=="function"?a.initialData():a.initialData,l=s!==void 0,o=l?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:l?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var A_=class extends rs{constructor(a,s){super(),this.options=s,this.#t=a,this.#s=null,this.#o=Wc(),this.bindMethods(),this.setOptions(s)}#t;#e=void 0;#n=void 0;#i=void 0;#a;#l;#o;#s;#p;#d;#h;#u;#c;#r;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),fy(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ef(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ef(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#_(),this.#e.removeObserver(this)}setOptions(a){const s=this.options,l=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 an(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),s._defaulted&&!$o(this.options,s)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&dy(this.#e,l,this.options,s)&&this.#f(),this.updateResult(),o&&(this.#e!==l||an(this.options.enabled,this.#e)!==an(s.enabled,this.#e)||Ma(this.options.staleTime,this.#e)!==Ma(s.staleTime,this.#e))&&this.#y();const c=this.#g();o&&(this.#e!==l||an(this.options.enabled,this.#e)!==an(s.enabled,this.#e)||c!==this.#r)&&this.#v(c)}getOptimisticResult(a){const s=this.#t.getQueryCache().build(this.#t,a),l=this.createResult(s,a);return z_(this,l)&&(this.#i=l,this.#l=this.options,this.#a=this.#e.state),l}getCurrentResult(){return this.#i}trackResult(a,s){return new Proxy(a,{get:(l,o)=>(this.trackProp(o),s?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,o))})}trackProp(a){this.#m.add(a)}getCurrentQuery(){return this.#e}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const s=this.#t.defaultQueryOptions(a),l=this.#t.getQueryCache().build(this.#t,s);return l.fetch().then(()=>this.createResult(l,s))}fetch(a){return this.#f({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(a){this.#x();let s=this.#e.fetch(this.options,a);return a?.throwOnError||(s=s.catch(Ee)),s}#y(){this.#S();const a=Ma(this.options.staleTime,this.#e);if(si||this.#i.isStale||!$c(a))return;const l=dg(this.#i.dataUpdatedAt,a)+1;this.#u=ti.setTimeout(()=>{this.#i.isStale||this.updateResult()},l)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(a){this.#_(),this.#r=a,!(si||an(this.options.enabled,this.#e)===!1||!$c(this.#r)||this.#r===0)&&(this.#c=ti.setInterval(()=>{(this.options.refetchIntervalInBackground||Tf.isFocused())&&this.#f()},this.#r))}#b(){this.#y(),this.#v(this.#g())}#S(){this.#u&&(ti.clearTimeout(this.#u),this.#u=void 0)}#_(){this.#c&&(ti.clearInterval(this.#c),this.#c=void 0)}createResult(a,s){const l=this.#e,o=this.options,c=this.#i,f=this.#a,d=this.#l,m=a!==l?a.state:this.#n,{state:g}=a;let v={...g},p=!1,S;if(s._optimisticResults){const D=this.hasListeners(),W=!D&&fy(a,s),ot=D&&dy(a,l,s,o);(W||ot)&&(v={...v,...bg(g.data,a.options)}),s._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:_,errorUpdatedAt:E,status:z}=v;S=v.data;let L=!1;if(s.placeholderData!==void 0&&S===void 0&&z==="pending"){let D;c?.isPlaceholderData&&s.placeholderData===d?.placeholderData?(D=c.data,L=!0):D=typeof s.placeholderData=="function"?s.placeholderData(this.#h?.state.data,this.#h):s.placeholderData,D!==void 0&&(z="success",S=Ic(c?.data,D,s),p=!0)}if(s.select&&S!==void 0&&!L)if(c&&S===f?.data&&s.select===this.#p)S=this.#d;else try{this.#p=s.select,S=s.select(S),S=Ic(c?.data,S,s),this.#d=S,this.#s=null}catch(D){this.#s=D}this.#s&&(_=this.#s,S=this.#d,E=Date.now(),z="error");const H=v.fetchStatus==="fetching",F=z==="pending",P=z==="error",I=F&&H,lt=S!==void 0,V={status:z,fetchStatus:v.fetchStatus,isPending:F,isSuccess:z==="success",isError:P,isInitialLoading:I,isLoading:I,data:S,dataUpdatedAt:v.dataUpdatedAt,error:_,errorUpdatedAt:E,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:H,isRefetching:H&&!F,isLoadingError:P&&!lt,isPaused:v.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:P&&lt,isStale:Cf(a,s),refetch:this.refetch,promise:this.#o,isEnabled:an(s.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const D=dt=>{V.status==="error"?dt.reject(V.error):V.data!==void 0&&dt.resolve(V.data)},W=()=>{const dt=this.#o=V.promise=Wc();D(dt)},ot=this.#o;switch(ot.status){case"pending":a.queryHash===l.queryHash&&D(ot);break;case"fulfilled":(V.status==="error"||V.data!==ot.value)&&W();break;case"rejected":(V.status!=="error"||V.error!==ot.reason)&&W();break}}return V}updateResult(){const a=this.#i,s=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#l=this.options,this.#a.data!==void 0&&(this.#h=this.#e),$o(s,a))return;this.#i=s;const l=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!this.#m.size)return!0;const f=new Set(c??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#i).some(d=>{const y=d;return this.#i[y]!==a[y]&&f.has(y)})};this.#E({listeners:l()})}#x(){const a=this.#t.getQueryCache().build(this.#t,this.options);if(a===this.#e)return;const s=this.#e;this.#e=a,this.#n=a.state,this.hasListeners()&&(s?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(a){ae.batch(()=>{a.listeners&&this.listeners.forEach(s=>{s(this.#i)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function O_(a,s){return an(s.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&s.retryOnMount===!1)}function fy(a,s){return O_(a,s)||a.state.data!==void 0&&ef(a,s,s.refetchOnMount)}function ef(a,s,l){if(an(s.enabled,a)!==!1&&Ma(s.staleTime,a)!=="static"){const o=typeof l=="function"?l(a):l;return o==="always"||o!==!1&&Cf(a,s)}return!1}function dy(a,s,l,o){return(a!==s||an(o.enabled,a)===!1)&&(!l.suspense||a.state.status!=="error")&&Cf(a,l)}function Cf(a,s){return an(s.enabled,a)!==!1&&a.isStaleByTime(Ma(s.staleTime,a))}function z_(a,s){return!$o(a.getCurrentResult(),s)}function hy(a){return{onFetch:(s,l)=>{const o=s.options,c=s.fetchOptions?.meta?.fetchMore?.direction,f=s.state.data?.pages||[],d=s.state.data?.pageParams||[];let y={pages:[],pageParams:[]},m=0;const g=async()=>{let v=!1;const p=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(s.signal.aborted?v=!0:s.signal.addEventListener("abort",()=>{v=!0}),s.signal)})},S=mg(s.options,s.fetchOptions),_=async(E,z,L)=>{if(v)return Promise.reject();if(z==null&&E.pages.length)return Promise.resolve(E);const F=(()=>{const $={client:s.client,queryKey:s.queryKey,pageParam:z,direction:L?"backward":"forward",meta:s.options.meta};return p($),$})(),P=await S(F),{maxPages:I}=s.options,lt=L?x_:__;return{pages:lt(E.pages,P,I),pageParams:lt(E.pageParams,z,I)}};if(c&&f.length){const E=c==="backward",z=E?Sg:nf,L={pages:f,pageParams:d},H=z(o,L);y=await _(L,H,E)}else{const E=a??f.length;do{const z=m===0?d[0]??o.initialPageParam:nf(o,y);if(m>0&&z==null)break;y=await _(y,z),m++}while(m<E)}return y};s.options.persister?s.fetchFn=()=>s.options.persister?.(g,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},l):s.fetchFn=g}}}function nf(a,{pages:s,pageParams:l}){const o=s.length-1;return s.length>0?a.getNextPageParam(s[o],s,l[o],l):void 0}function Sg(a,{pages:s,pageParams:l}){return s.length>0?a.getPreviousPageParam?.(s[0],s,l[0],l):void 0}function f2(a,s){return s?nf(a,s)!=null:!1}function d2(a,s){return!s||!a.getPreviousPageParam?!1:Sg(a,s)!=null}var D_=class extends vg{#t;#e;#n;#i;constructor(a){super(),this.#t=a.client,this.mutationId=a.mutationId,this.#n=a.mutationCache,this.#e=[],this.state=a.state||_g(),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(s=>s!==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.#i?.continue()??this.execute(this.state.variables)}async execute(a){const s=()=>{this.#a({type:"continue"})},l={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=gg({fn:()=>this.options.mutationFn?this.options.mutationFn(a,l):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",c=!this.#i.canStart();try{if(o)s();else{this.#a({type:"pending",variables:a,isPaused:c}),await this.#n.config.onMutate?.(a,this,l);const d=await this.options.onMutate?.(a,l);d!==this.state.context&&this.#a({type:"pending",context:d,variables:a,isPaused:c})}const f=await this.#i.start();return await this.#n.config.onSuccess?.(f,a,this.state.context,this,l),await this.options.onSuccess?.(f,a,this.state.context,l),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(f,null,a,this.state.context,l),this.#a({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,a,this.state.context,this,l),await this.options.onError?.(f,a,this.state.context,l),await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(void 0,f,a,this.state.context,l),f}finally{this.#a({type:"error",error:f})}}finally{this.#n.runNext(this)}}#a(a){const s=l=>{switch(a.type){case"failed":return{...l,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,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{...l,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:a.error,failureCount:l.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ae.batch(()=>{this.#e.forEach(l=>{l.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function _g(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L_=class extends rs{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(a,s,l){const o=new D_({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(s),state:l});return this.add(o),o}add(a){this.#t.add(a);const s=Bo(a);if(typeof s=="string"){const l=this.#e.get(s);l?l.push(a):this.#e.set(s,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const s=Bo(a);if(typeof s=="string"){const l=this.#e.get(s);if(l)if(l.length>1){const o=l.indexOf(a);o!==-1&&l.splice(o,1)}else l[0]===a&&this.#e.delete(s)}}this.notify({type:"removed",mutation:a})}canRun(a){const s=Bo(a);if(typeof s=="string"){const o=this.#e.get(s)?.find(c=>c.state.status==="pending");return!o||o===a}else return!0}runNext(a){const s=Bo(a);return typeof s=="string"?this.#e.get(s)?.find(o=>o!==a&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ae.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 s={exact:!0,...a};return this.getAll().find(l=>oy(s,l))}findAll(a={}){return this.getAll().filter(s=>oy(a,s))}notify(a){ae.batch(()=>{this.listeners.forEach(s=>{s(a)})})}resumePausedMutations(){const a=this.getAll().filter(s=>s.state.isPaused);return ae.batch(()=>Promise.all(a.map(s=>s.continue().catch(Ee))))}};function Bo(a){return a.options.scope?.id}var N_=class extends rs{#t;#e=void 0;#n;#i;constructor(s,l){super(),this.#t=s,this.setOptions(l),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){const l=this.options;this.options=this.#t.defaultMutationOptions(s),$o(this.options,l)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),l?.mutationKey&&this.options.mutationKey&&li(l.mutationKey)!==li(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(s){this.#a(),this.#l(s)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#l()}mutate(s,l){return this.#i=l,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(s)}#a(){const s=this.#n?.state??_g();this.#e={...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset}}#l(s){ae.batch(()=>{if(this.#i&&this.hasListeners()){const l=this.#e.variables,o=this.#e.context,c={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};s?.type==="success"?(this.#i.onSuccess?.(s.data,l,o,c),this.#i.onSettled?.(s.data,null,l,o,c)):s?.type==="error"&&(this.#i.onError?.(s.error,l,o,c),this.#i.onSettled?.(void 0,s.error,l,o,c))}this.listeners.forEach(l=>{l(this.#e)})})}},j_=class extends rs{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,s,l){const o=s.queryKey,c=s.queryHash??wf(o,s);let f=this.get(c);return f||(f=new M_({client:a,queryKey:o,queryHash:c,options:a.defaultQueryOptions(s),state:l,defaultOptions:a.getQueryDefaults(o)}),this.add(f)),f}add(a){this.#t.has(a.queryHash)||(this.#t.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const s=this.#t.get(a.queryHash);s&&(a.destroy(),s===a&&this.#t.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){ae.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#t.get(a)}getAll(){return[...this.#t.values()]}find(a){const s={exact:!0,...a};return this.getAll().find(l=>ly(s,l))}findAll(a={}){const s=this.getAll();return Object.keys(a).length>0?s.filter(l=>ly(a,l)):s}notify(a){ae.batch(()=>{this.listeners.forEach(s=>{s(a)})})}onFocus(){ae.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){ae.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},U_=class{#t;#e;#n;#i;#a;#l;#o;#s;constructor(a={}){this.#t=a.queryCache||new j_,this.#e=a.mutationCache||new L_,this.#n=a.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#o=Tf.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Jo.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(a){return this.#t.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#e.findAll({...a,status:"pending"}).length}getQueryData(a){const s=this.defaultQueryOptions({queryKey:a});return this.#t.get(s.queryHash)?.state.data}ensureQueryData(a){const s=this.defaultQueryOptions(a),l=this.#t.build(this,s),o=l.state.data;return o===void 0?this.fetchQuery(a):(a.revalidateIfStale&&l.isStaleByTime(Ma(s.staleTime,l))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:s,state:l})=>{const o=l.data;return[s,o]})}setQueryData(a,s,l){const o=this.defaultQueryOptions({queryKey:a}),f=this.#t.get(o.queryHash)?.state.data,d=v_(s,f);if(d!==void 0)return this.#t.build(this,o).setData(d,{...l,manual:!0})}setQueriesData(a,s,l){return ae.batch(()=>this.#t.findAll(a).map(({queryKey:o})=>[o,this.setQueryData(o,s,l)]))}getQueryState(a){const s=this.defaultQueryOptions({queryKey:a});return this.#t.get(s.queryHash)?.state}removeQueries(a){const s=this.#t;ae.batch(()=>{s.findAll(a).forEach(l=>{s.remove(l)})})}resetQueries(a,s){const l=this.#t;return ae.batch(()=>(l.findAll(a).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...a},s)))}cancelQueries(a,s={}){const l={revert:!0,...s},o=ae.batch(()=>this.#t.findAll(a).map(c=>c.cancel(l)));return Promise.all(o).then(Ee).catch(Ee)}invalidateQueries(a,s={}){return ae.batch(()=>(this.#t.findAll(a).forEach(l=>{l.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},s)))}refetchQueries(a,s={}){const l={...s,cancelRefetch:s.cancelRefetch??!0},o=ae.batch(()=>this.#t.findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,l);return l.throwOnError||(f=f.catch(Ee)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(o).then(Ee)}fetchQuery(a){const s=this.defaultQueryOptions(a);s.retry===void 0&&(s.retry=!1);const l=this.#t.build(this,s);return l.isStaleByTime(Ma(s.staleTime,l))?l.fetch(s):Promise.resolve(l.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Ee).catch(Ee)}fetchInfiniteQuery(a){return a.behavior=hy(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Ee).catch(Ee)}ensureInfiniteQueryData(a){return a.behavior=hy(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Jo.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,s){this.#i.set(li(a),{queryKey:a,defaultOptions:s})}getQueryDefaults(a){const s=[...this.#i.values()],l={};return s.forEach(o=>{fl(a,o.queryKey)&&Object.assign(l,o.defaultOptions)}),l}setMutationDefaults(a,s){this.#a.set(li(a),{mutationKey:a,defaultOptions:s})}getMutationDefaults(a){const s=[...this.#a.values()],l={};return s.forEach(o=>{fl(a,o.mutationKey)&&Object.assign(l,o.defaultOptions)}),l}defaultQueryOptions(a){if(a._defaulted)return a;const s={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return s.queryHash||(s.queryHash=wf(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===Rf&&(s.enabled=!1),s}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()}},xg=K.createContext(void 0),hl=a=>{const s=K.useContext(xg);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},B_=({client:a,children:s})=>(K.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),U.jsx(xg.Provider,{value:a,children:s})),Eg=K.createContext(!1),H_=()=>K.useContext(Eg);Eg.Provider;function q_(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var k_=K.createContext(q_()),Q_=()=>K.useContext(k_),V_=(a,s)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(s.isReset()||(a.retryOnMount=!1))},G_=a=>{K.useEffect(()=>{a.clearReset()},[a])},Y_=({result:a,errorResetBoundary:s,throwOnError:l,query:o,suspense:c})=>a.isError&&!s.isReset()&&!a.isFetching&&o&&(c&&a.data===void 0||pg(l,[a.error,o])),K_=(a,s)=>s.state.data===void 0,X_=a=>{if(a.suspense){const l=c=>c==="static"?c:Math.max(c??1e3,1e3),o=a.staleTime;a.staleTime=typeof o=="function"?(...c)=>l(o(...c)):l(o),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},Z_=(a,s)=>a.isLoading&&a.isFetching&&!s,P_=(a,s)=>a?.suspense&&s.isPending,my=(a,s,l)=>s.fetchOptimistic(a).catch(()=>{l.clearReset()});function F_(a,s,l){const o=H_(),c=Q_(),f=hl(),d=f.defaultQueryOptions(a);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=o?"isRestoring":"optimistic",X_(d),V_(d,c),G_(c);const y=!f.getQueryCache().get(d.queryHash),[m]=K.useState(()=>new s(f,d)),g=m.getOptimisticResult(d),v=!o&&a.subscribed!==!1;if(K.useSyncExternalStore(K.useCallback(p=>{const S=v?m.subscribe(ae.batchCalls(p)):Ee;return m.updateResult(),S},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),K.useEffect(()=>{m.setOptions(d)},[d,m]),P_(d,g))throw my(d,m,c);if(Y_({result:g,errorResetBoundary:c,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw g.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,g),d.experimental_prefetchInRender&&!si&&Z_(g,o)&&(y?my(d,m,c):f.getQueryCache().get(d.queryHash)?.promise)?.catch(Ee).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?g:m.trackResult(g)}function wg(a,s){return F_({...a,enabled:!0,suspense:!0,throwOnError:K_,placeholderData:void 0},A_)}function $_(a,s){const l=hl(),[o]=K.useState(()=>new N_(l,a));K.useEffect(()=>{o.setOptions(a)},[o,a]);const c=K.useSyncExternalStore(K.useCallback(d=>o.subscribe(ae.batchCalls(d)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),f=K.useCallback((d,y)=>{o.mutate(d,y).catch(Ee)},[o]);if(c.error&&pg(o.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}var J_=(a,s,l={})=>{let o=`${a}=${s}`;if(a.startsWith("__Secure-")&&!l.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(a.startsWith("__Host-")){if(!l.secure)throw new Error("__Host- Cookie must have Secure attributes");if(l.path!=="/")throw new Error('__Host- Cookie must have Path attributes with "/"');if(l.domain)throw new Error("__Host- Cookie must not have Domain attributes")}if(l&&typeof l.maxAge=="number"&&l.maxAge>=0){if(l.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");o+=`; Max-Age=${l.maxAge|0}`}if(l.domain&&l.prefix!=="host"&&(o+=`; Domain=${l.domain}`),l.path&&(o+=`; Path=${l.path}`),l.expires){if(l.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");o+=`; Expires=${l.expires.toUTCString()}`}if(l.httpOnly&&(o+="; HttpOnly"),l.secure&&(o+="; Secure"),l.sameSite&&(o+=`; SameSite=${l.sameSite.charAt(0).toUpperCase()+l.sameSite.slice(1)}`),l.priority&&(o+=`; Priority=${l.priority.charAt(0).toUpperCase()+l.priority.slice(1)}`),l.partitioned){if(!l.secure)throw new Error("Partitioned Cookie must have Secure attributes");o+="; Partitioned"}return o},I_=(a,s,l)=>(s=encodeURIComponent(s),J_(a,s,l)),W_=(a,s)=>(a=a.replace(/\/+$/,""),a=a+"/",s=s.replace(/^\/+/,""),a+s),af=(a,s)=>{for(const[l,o]of Object.entries(s)){const c=new RegExp("/:"+l+"(?:{[^/]+})?\\??");a=a.replace(c,o?`/${o}`:"")}return a},Rg=a=>{const s=new URLSearchParams;for(const[l,o]of Object.entries(a))if(o!==void 0)if(Array.isArray(o))for(const c of o)s.append(l,c);else s.set(l,o);return s},tx=(a,s)=>{switch(s){case"ws":return a.replace(/^http/,"ws");case"http":return a.replace(/^ws/,"http")}},Tg=a=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(a)?a.replace(/\/index(?=\?|$)/,"/"):a.replace(/\/index(?=\?|$)/,"");function Ho(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function Cg(a,s){if(!Ho(a)&&!Ho(s))return s;const l={...a};for(const o in s){const c=s[o];Ho(l[o])&&Ho(c)?l[o]=Cg(l[o],c):l[o]=c}return l}var Mg=(a,s)=>new Proxy(()=>{},{get(o,c){if(!(typeof c!="string"||c==="then"))return Mg(a,[...s,c])},apply(o,c,f){return a({path:s,args:f})}}),ex=class{url;method;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(a,s){this.url=a,this.method=s}fetch=async(a,s)=>{if(a){if(a.query&&(this.queryParams=Rg(a.query)),a.form){const y=new FormData;for(const[m,g]of Object.entries(a.form))if(Array.isArray(g))for(const v of g)y.append(m,v);else y.append(m,g);this.rBody=y}a.json&&(this.rBody=JSON.stringify(a.json),this.cType="application/json"),a.param&&(this.pathParams=a.param)}let l=this.method.toUpperCase();const o={...a?.header,...typeof s?.headers=="function"?await s.headers():s?.headers};if(a?.cookie){const y=[];for(const[m,g]of Object.entries(a.cookie))y.push(I_(m,g,{path:"/"}));o.Cookie=y.join(",")}this.cType&&(o["Content-Type"]=this.cType);const c=new Headers(o??void 0);let f=this.url;f=Tg(f),f=af(f,this.pathParams),this.queryParams&&(f=f+"?"+this.queryParams.toString()),l=this.method.toUpperCase();const d=!(l==="GET"||l==="HEAD");return(s?.fetch||fetch)(f,{body:d?this.rBody:void 0,method:l,headers:c,...s?.init})}},nx=(a,s)=>Mg(function l(o){const c=[...o.path],f=c.slice(-3).reverse();if(f[0]==="toString")return f[1]==="name"?f[2]||"":l.toString();if(f[0]==="valueOf")return f[1]==="name"?f[2]||"":l;let d="";if(/^\$/.test(f[0])){const v=c.pop();v&&(d=v.replace(/^\$/,""))}const y=c.join("/"),m=W_(a,y);if(d==="url"){let v=m;return o.args[0]&&(o.args[0].param&&(v=af(m,o.args[0].param)),o.args[0].query&&(v=v+"?"+Rg(o.args[0].query).toString())),v=Tg(v),new URL(v)}if(d==="ws"){const v=tx(o.args[0]&&o.args[0].param?af(m,o.args[0].param):m,"ws"),p=new URL(v),S=o.args[0]?.query;return S&&Object.entries(S).forEach(([E,z])=>{Array.isArray(z)?z.forEach(L=>p.searchParams.append(E,L)):p.searchParams.set(E,z)}),((...E)=>s?.webSocket!==void 0&&typeof s.webSocket=="function"?s.webSocket(...E):new WebSocket(...E))(p.toString())}const g=new ex(m,d);if(d){s??={};const v=Cg(s,{...o.args[1]});return g.fetch(o.args[0],v)}return g},[]);const be=nx("/"),ax={queryKey:["projects"],queryFn:async()=>{const a=await be.api.projects.$get({param:{}});if(!a.ok)throw new Error(`Failed to fetch projects: ${a.statusText}`);return await a.json()}},m2=a=>({queryKey:["directory-listing",a],queryFn:async()=>{const s=await be.api.fs["directory-browser"].$get({query:a?{currentPath:a}:{}});if(!s.ok)throw new Error("Failed to fetch directory listing");return await s.json()}}),ix=(a,s)=>({queryKey:["projects",a],queryFn:async()=>{const l=await be.api.projects[":projectId"].$get({param:{projectId:a},query:{cursor:s}});if(!l.ok)throw new Error(`Failed to fetch project: ${l.statusText}`);return await l.json()}}),sx=(a,s)=>({queryKey:["projects",a,"sessions",s],queryFn:async()=>{const l=await be.api.projects[":projectId"].sessions[":sessionId"].$get({param:{projectId:a,sessionId:s}});if(!l.ok)throw new Error(`Failed to fetch session: ${l.statusText}`);return await l.json()}}),p2=a=>({queryKey:["claude-commands",a],queryFn:async()=>{const s=await be.api.projects[":projectId"]["claude-commands"].$get({param:{projectId:a}});if(!s.ok)throw new Error(`Failed to fetch claude commands: ${s.statusText}`);return await s.json()}}),py={queryKey:["sessionProcesses"],queryFn:async()=>{const a=await be.api.cc["session-processes"].$get({});if(!a.ok)throw new Error(`Failed to fetch alive tasks: ${a.statusText}`);return await a.json()}},y2=a=>({queryKey:["git","branches",a],queryFn:async()=>{const s=await be.api.projects[":projectId"].git.branches.$get({param:{projectId:a}});if(!s.ok)throw new Error(`Failed to fetch branches: ${s.statusText}`);return await s.json()}}),g2=a=>({queryKey:["git","commits",a],queryFn:async()=>{const s=await be.api.projects[":projectId"].git.commits.$get({param:{projectId:a}});if(!s.ok)throw new Error(`Failed to fetch commits: ${s.statusText}`);return await s.json()}}),v2=a=>({queryKey:["mcp","list",a],queryFn:async()=>{const s=await be.api.projects[":projectId"].mcp.list.$get({param:{projectId:a}});if(!s.ok)throw new Error(`Failed to fetch MCP list: ${s.statusText}`);return await s.json()}}),b2=(a,s)=>({queryKey:["file-completion",a,s],queryFn:async()=>{const l=await be.api.fs["file-completion"].$get({query:{basePath:s,projectId:a}});if(!l.ok)throw new Error("Failed to fetch file completion");return await l.json()}}),Bc={queryKey:["config"],queryFn:async()=>{const a=await be.api.config.$get();if(!a.ok)throw new Error(`Failed to fetch config: ${a.statusText}`);return await a.json()}},S2={queryKey:["version"],queryFn:async()=>{const a=await be.api.version.$get();if(!a.ok)throw new Error(`Failed to fetch system version: ${a.statusText}`);return await a.json()}},_2={queryKey:["cc","meta"],queryFn:async()=>{const a=await be.api.cc.meta.$get();if(!a.ok)throw new Error(`Failed to fetch system features: ${a.statusText}`);return await a.json()}},x2={queryKey:["flags"],queryFn:async()=>{const a=await be.api.flags.$get();if(!a.ok)throw new Error(`Failed to fetch feature flags: ${a.statusText}`);return await a.json()}},Ag=K.createContext(null),lx=()=>{const a=K.useContext(Ag);if(!a)throw new Error("useSSEContext must be used within SSEProvider");return a},sf=(a,s)=>{const{addEventListener:l}=lx(),o=K.useRef(s);K.useEffect(()=>{o.current=s}),K.useEffect(()=>{const c=l(a,f=>{o.current(f)});return()=>{c()}},[a,l])},ox=({children:a})=>{const s=hl();return sf("sessionListChanged",async l=>{await s.invalidateQueries({queryKey:ix(l.projectId).queryKey})}),sf("sessionChanged",async l=>{await s.invalidateQueries({queryKey:sx(l.projectId,l.sessionId).queryKey})}),U.jsx(U.Fragment,{children:a})},ss={};function Og(a){return"init"in a}function lf(a){return!!a.write}function yy(a){return"v"in a||"e"in a}function Io(a){if("e"in a)throw a.e;if((ss?"production":void 0)!=="production"&&!("v"in a))throw new Error("[Bug] atom state is not initialized");return a.v}const Wo=new WeakMap;function zg(a){var s;return tr(a)&&!!((s=Wo.get(a))!=null&&s[0])}function rx(a){const s=Wo.get(a);s?.[0]&&(s[0]=!1,s[1].forEach(l=>l()))}function of(a,s){let l=Wo.get(a);if(!l){l=[!0,new Set],Wo.set(a,l);const o=()=>{l[0]=!1};a.then(o,o)}l[1].add(s)}function tr(a){return typeof a?.then=="function"}function Dg(a,s,l){if(!l.p.has(a)){l.p.add(a);const o=()=>l.p.delete(a);s.then(o,o)}}function Lg(a,s,l){var o;const c=new Set;for(const f of((o=l.get(a))==null?void 0:o.t)||[])l.has(f)&&c.add(f);for(const f of s.p)c.add(f);return c}const ux=(a,s,...l)=>s.read(...l),cx=(a,s,...l)=>s.write(...l),fx=(a,s)=>{var l;return(l=s.unstable_onInit)==null?void 0:l.call(s,a)},dx=(a,s,l)=>{var o;return(o=s.onMount)==null?void 0:o.call(s,l)},hx=(a,s)=>{const l=ve(a),o=l[0],c=l[9];if((ss?"production":void 0)!=="production"&&!s)throw new Error("Atom is undefined or null");let f=o.get(s);return f||(f={d:new Map,p:new Set,n:0},o.set(s,f),c?.(a,s)),f},mx=a=>{const s=ve(a),l=s[1],o=s[3],c=s[4],f=s[5],d=s[6],y=s[13],m=[],g=v=>{try{v()}catch(p){m.push(p)}};do{d.f&&g(d.f);const v=new Set,p=v.add.bind(v);o.forEach(S=>{var _;return(_=l.get(S))==null?void 0:_.l.forEach(p)}),o.clear(),f.forEach(p),f.clear(),c.forEach(p),c.clear(),v.forEach(g),o.size&&y(a)}while(o.size||f.size||c.size);if(m.length)throw new AggregateError(m)},px=a=>{const s=ve(a),l=s[1],o=s[2],c=s[3],f=s[11],d=s[14],y=s[17],m=[],g=new WeakSet,v=new WeakSet,p=Array.from(c);for(;p.length;){const S=p[p.length-1],_=f(a,S);if(v.has(S)){p.pop();continue}if(g.has(S)){if(o.get(S)===_.n)m.push([S,_]);else if((ss?"production":void 0)!=="production"&&o.has(S))throw new Error("[Bug] invalidated atom exists");v.add(S),p.pop();continue}g.add(S);for(const E of Lg(S,_,l))g.has(E)||p.push(E)}for(let S=m.length-1;S>=0;--S){const[_,E]=m[S];let z=!1;for(const L of E.d.keys())if(L!==_&&c.has(L)){z=!0;break}z&&(d(a,_),y(a,_)),o.delete(_)}},yx=(a,s)=>{var l,o;const c=ve(a),f=c[1],d=c[2],y=c[3],m=c[6],g=c[7],v=c[11],p=c[12],S=c[13],_=c[14],E=c[16],z=c[17],L=v(a,s);if(yy(L)&&(f.has(s)&&d.get(s)!==L.n||Array.from(L.d).every(([D,W])=>_(a,D).n===W)))return L;L.d.clear();let H=!0;function F(){f.has(s)&&(z(a,s),S(a),p(a))}function P(D){var W;if(D===s){const dt=v(a,D);if(!yy(dt))if(Og(D))er(a,D,D.init);else throw new Error("no atom init");return Io(dt)}const ot=_(a,D);try{return Io(ot)}finally{L.d.set(D,ot.n),zg(L.v)&&Dg(s,L.v,ot),(W=f.get(D))==null||W.t.add(s),H||F()}}let I,lt;const $={get signal(){return I||(I=new AbortController),I.signal},get setSelf(){return(ss?"production":void 0)!=="production"&&!lf(s)&&console.warn("setSelf function cannot be used with read-only atom"),!lt&&lf(s)&&(lt=(...D)=>{if((ss?"production":void 0)!=="production"&&H&&console.warn("setSelf function cannot be called in sync"),!H)try{return E(a,s,...D)}finally{S(a),p(a)}}),lt}},V=L.n;try{const D=g(a,s,P,$);return er(a,s,D),tr(D)&&(of(D,()=>I?.abort()),D.then(F,F)),(l=m.r)==null||l.call(m,s),L}catch(D){return delete L.v,L.e=D,++L.n,L}finally{H=!1,V!==L.n&&d.get(s)===V&&(d.set(s,L.n),y.add(s),(o=m.c)==null||o.call(m,s))}},gx=(a,s)=>{const l=ve(a),o=l[1],c=l[2],f=l[11],d=[s];for(;d.length;){const y=d.pop(),m=f(a,y);for(const g of Lg(y,m,o)){const v=f(a,g);c.set(g,v.n),d.push(g)}}},Ng=(a,s,...l)=>{const o=ve(a),c=o[3],f=o[6],d=o[8],y=o[11],m=o[12],g=o[13],v=o[14],p=o[15],S=o[17];let _=!0;const E=L=>Io(v(a,L)),z=(L,...H)=>{var F;const P=y(a,L);try{if(L===s){if(!Og(L))throw new Error("atom not writable");const I=P.n,lt=H[0];er(a,L,lt),S(a,L),I!==P.n&&(c.add(L),(F=f.c)==null||F.call(f,L),p(a,L));return}else return Ng(a,L,...H)}finally{_||(g(a),m(a))}};try{return d(a,s,E,z,...l)}finally{_=!1}},vx=(a,s)=>{var l;const o=ve(a),c=o[1],f=o[3],d=o[6],y=o[11],m=o[15],g=o[18],v=o[19],p=y(a,s),S=c.get(s);if(S&&!zg(p.v)){for(const[_,E]of p.d)if(!S.d.has(_)){const z=y(a,_);g(a,_).t.add(s),S.d.add(_),E!==z.n&&(f.add(_),(l=d.c)==null||l.call(d,_),m(a,_))}for(const _ of S.d||[])if(!p.d.has(_)){S.d.delete(_);const E=v(a,_);E?.t.delete(s)}}},jg=(a,s)=>{var l;const o=ve(a),c=o[1],f=o[4],d=o[6],y=o[10],m=o[11],g=o[12],v=o[13],p=o[14],S=o[16],_=m(a,s);let E=c.get(s);if(!E){p(a,s);for(const z of _.d.keys())jg(a,z).t.add(s);if(E={l:new Set,d:new Set(_.d.keys()),t:new Set},c.set(s,E),(l=d.m)==null||l.call(d,s),lf(s)){const z=()=>{let L=!0;const H=(...F)=>{try{return S(a,s,...F)}finally{L||(v(a),g(a))}};try{const F=y(a,s,H);F&&(E.u=()=>{L=!0;try{F()}finally{L=!1}})}finally{L=!1}};f.add(z)}}return E},bx=(a,s)=>{var l;const o=ve(a),c=o[1],f=o[5],d=o[6],y=o[11],m=o[19],g=y(a,s);let v=c.get(s);if(v&&!v.l.size&&!Array.from(v.t).some(p=>{var S;return(S=c.get(p))==null?void 0:S.d.has(s)})){v.u&&f.add(v.u),v=void 0,c.delete(s),(l=d.u)==null||l.call(d,s);for(const p of g.d.keys()){const S=m(a,p);S?.t.delete(s)}return}return v},er=(a,s,l)=>{const o=ve(a)[11],c=o(a,s),f="v"in c,d=c.v;if(tr(l))for(const y of c.d.keys())Dg(s,l,o(a,y));c.v=l,delete c.e,(!f||!Object.is(d,c.v))&&(++c.n,tr(d)&&rx(d))},Sx=(a,s)=>{const l=ve(a)[14];return Io(l(a,s))},_x=(a,s,...l)=>{const o=ve(a),c=o[12],f=o[13],d=o[16];try{return d(a,s,...l)}finally{f(a),c(a)}},xx=(a,s,l)=>{const o=ve(a),c=o[12],f=o[18],d=o[19],m=f(a,s).l;return m.add(l),c(a),()=>{m.delete(l),d(a,s),c(a)}},Ug=new WeakMap,ve=a=>{const s=Ug.get(a);if((ss?"production":void 0)!=="production"&&!s)throw new Error("Store must be created by buildStore to read its building blocks");return s};function Ex(...a){const s={get(o){const c=ve(s)[21];return c(s,o)},set(o,...c){const f=ve(s)[22];return f(s,o,...c)},sub(o,c){const f=ve(s)[23];return f(s,o,c)}},l=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},ux,cx,fx,dx,hx,mx,px,yx,gx,Ng,vx,jg,bx,er,Sx,_x,xx,void 0].map((o,c)=>a[c]||o);return Ug.set(s,Object.freeze(l)),s}const Bg={};let wx=0;function Hg(a,s){const l=`atom${++wx}`,o={toString(){return(Bg?"production":void 0)!=="production"&&this.debugLabel?l+":"+this.debugLabel:l}};return typeof a=="function"?o.read=a:(o.init=a,o.read=Rx,o.write=Tx),s&&(o.write=s),o}function Rx(a){return a(this)}function Tx(a,s,l){return s(this,typeof l=="function"?l(a(this)):l)}function Cx(){return Ex()}let ll;function Mx(){return ll||(ll=Cx(),(Bg?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ll),globalThis.__JOTAI_DEFAULT_STORE__!==ll&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ll}const Ax={},Ox=K.createContext(void 0);function qg(a){return K.useContext(Ox)||Mx()}const rf=a=>typeof a?.then=="function",uf=a=>{a.status||(a.status="pending",a.then(s=>{a.status="fulfilled",a.value=s},s=>{a.status="rejected",a.reason=s}))},zx=G.use||(a=>{if(a.status==="pending")throw a;if(a.status==="fulfilled")return a.value;throw a.status==="rejected"?a.reason:(uf(a),a)}),Hc=new WeakMap,gy=(a,s)=>{let l=Hc.get(a);return l||(l=new Promise((o,c)=>{let f=a;const d=g=>v=>{f===g&&o(v)},y=g=>v=>{f===g&&c(v)},m=()=>{try{const g=s();rf(g)?(Hc.set(g,l),f=g,g.then(d(g),y(g)),of(g,m)):o(g)}catch(g){c(g)}};a.then(d(a),y(a)),of(a,m)}),Hc.set(a,l)),l};function Dx(a,s){const{delay:l,unstable_promiseStatus:o=!G.use}={},c=qg(),[[f,d,y],m]=K.useReducer(v=>{const p=c.get(a);return Object.is(v[0],p)&&v[1]===c&&v[2]===a?v:[p,c,a]},void 0,()=>[c.get(a),c,a]);let g=f;if((d!==c||y!==a)&&(m(),g=c.get(a)),K.useEffect(()=>{const v=c.sub(a,()=>{if(o)try{const p=c.get(a);rf(p)&&uf(gy(p,()=>c.get(a)))}catch{}if(typeof l=="number"){setTimeout(m,l);return}m()});return m(),v},[c,a,l,o]),K.useDebugValue(g),rf(g)){const v=gy(g,()=>c.get(a));return o&&uf(v),zx(v)}return g}function kg(a,s){const l=qg();return K.useCallback((...c)=>{if((Ax?"production":void 0)!=="production"&&!("write"in a))throw new Error("not writable atom");return l.set(a,...c)},[l,a])}function Lx(a,s){return[Dx(a),kg(a)]}const Nx=Hg([]),jx=({children:a})=>{const s=kg(Nx),{data:l}=wg({queryKey:py.queryKey,queryFn:py.queryFn});return sf("sessionProcessChanged",async({processes:o})=>{s(o)}),K.useEffect(()=>{s(l.processes)},[l,s]),U.jsx(U.Fragment,{children:a})},Qg=()=>{const a=hl(),{data:s}=wg({queryKey:Bc.queryKey,queryFn:Bc.queryFn}),l=$_({mutationFn:async o=>await(await be.api.config.$put({json:o})).json()});return{config:s?.config,updateConfig:K.useCallback((o,c)=>{l.mutate(o,{onSuccess:async()=>{await a.invalidateQueries({queryKey:Bc.queryKey}),await c?.onSuccess?.()}})},[l,a])}},Vg=()=>{const{config:a}=Qg(),s=K.useMemo(()=>a?.theme==="light"||a?.theme==="dark"?a?.theme:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[a?.theme]);return{theme:a?.theme??"system",resolvedTheme:s}},Ux=({children:a})=>{const{resolvedTheme:s}=Vg();return K.useEffect(()=>{const l=window.document.documentElement;l.classList.remove("light","dark"),l.classList.add(s)},[s]),U.jsx(U.Fragment,{children:a})};function Bx(a){if(typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",s.appendChild(l),l.styleSheet?l.styleSheet.cssText=a:l.appendChild(document.createTextNode(a))}const Hx=a=>{switch(a){case"success":return Qx;case"info":return Gx;case"warning":return Vx;case"error":return Yx;default:return null}},qx=Array(12).fill(0),kx=({visible:a,className:s})=>G.createElement("div",{className:["sonner-loading-wrapper",s].filter(Boolean).join(" "),"data-visible":a},G.createElement("div",{className:"sonner-spinner"},qx.map((l,o)=>G.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Qx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Vx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Gx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Yx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Kx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},G.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),G.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Xx=()=>{const[a,s]=G.useState(document.hidden);return G.useEffect(()=>{const l=()=>{s(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),a};let cf=1;class Zx{constructor(){this.subscribe=s=>(this.subscribers.push(s),()=>{const l=this.subscribers.indexOf(s);this.subscribers.splice(l,1)}),this.publish=s=>{this.subscribers.forEach(l=>l(s))},this.addToast=s=>{this.publish(s),this.toasts=[...this.toasts,s]},this.create=s=>{var l;const{message:o,...c}=s,f=typeof s?.id=="number"||((l=s.id)==null?void 0:l.length)>0?s.id:cf++,d=this.toasts.find(m=>m.id===f),y=s.dismissible===void 0?!0:s.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(m=>m.id===f?(this.publish({...m,...s,id:f,title:o}),{...m,...s,id:f,dismissible:y,title:o}):m):this.addToast({title:o,...c,dismissible:y,id:f}),f},this.dismiss=s=>(s?(this.dismissedToasts.add(s),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:s,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(o=>o({id:l.id,dismiss:!0}))}),s),this.message=(s,l)=>this.create({...l,message:s}),this.error=(s,l)=>this.create({...l,message:s,type:"error"}),this.success=(s,l)=>this.create({...l,type:"success",message:s}),this.info=(s,l)=>this.create({...l,type:"info",message:s}),this.warning=(s,l)=>this.create({...l,type:"warning",message:s}),this.loading=(s,l)=>this.create({...l,type:"loading",message:s}),this.promise=(s,l)=>{if(!l)return;let o;l.loading!==void 0&&(o=this.create({...l,promise:s,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const c=Promise.resolve(s instanceof Function?s():s);let f=o!==void 0,d;const y=c.then(async g=>{if(d=["resolve",g],G.isValidElement(g))f=!1,this.create({id:o,type:"default",message:g});else if(Fx(g)&&!g.ok){f=!1;const p=typeof l.error=="function"?await l.error(`HTTP error! status: ${g.status}`):l.error,S=typeof l.description=="function"?await l.description(`HTTP error! status: ${g.status}`):l.description,E=typeof p=="object"&&!G.isValidElement(p)?p:{message:p};this.create({id:o,type:"error",description:S,...E})}else if(g instanceof Error){f=!1;const p=typeof l.error=="function"?await l.error(g):l.error,S=typeof l.description=="function"?await l.description(g):l.description,E=typeof p=="object"&&!G.isValidElement(p)?p:{message:p};this.create({id:o,type:"error",description:S,...E})}else if(l.success!==void 0){f=!1;const p=typeof l.success=="function"?await l.success(g):l.success,S=typeof l.description=="function"?await l.description(g):l.description,E=typeof p=="object"&&!G.isValidElement(p)?p:{message:p};this.create({id:o,type:"success",description:S,...E})}}).catch(async g=>{if(d=["reject",g],l.error!==void 0){f=!1;const v=typeof l.error=="function"?await l.error(g):l.error,p=typeof l.description=="function"?await l.description(g):l.description,_=typeof v=="object"&&!G.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:p,..._})}}).finally(()=>{f&&(this.dismiss(o),o=void 0),l.finally==null||l.finally.call(l)}),m=()=>new Promise((g,v)=>y.then(()=>d[0]==="reject"?v(d[1]):g(d[1])).catch(v));return typeof o!="string"&&typeof o!="number"?{unwrap:m}:Object.assign(o,{unwrap:m})},this.custom=(s,l)=>{const o=l?.id||cf++;return this.create({jsx:s(o),id:o,...l}),o},this.getActiveToasts=()=>this.toasts.filter(s=>!this.dismissedToasts.has(s.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ne=new Zx,Px=(a,s)=>{const l=s?.id||cf++;return Ne.addToast({title:a,...s,id:l}),l},Fx=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",$x=Px,Jx=()=>Ne.toasts,Ix=()=>Ne.getActiveToasts(),E2=Object.assign($x,{success:Ne.success,info:Ne.info,warning:Ne.warning,error:Ne.error,custom:Ne.custom,message:Ne.message,promise:Ne.promise,dismiss:Ne.dismiss,loading:Ne.loading},{getHistory:Jx,getToasts:Ix});Bx("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function qo(a){return a.label!==void 0}const Wx=3,tE="24px",eE="16px",vy=4e3,nE=356,aE=14,iE=45,sE=200;function bn(...a){return a.filter(Boolean).join(" ")}function lE(a){const[s,l]=a.split("-"),o=[];return s&&o.push(s),l&&o.push(l),o}const oE=a=>{var s,l,o,c,f,d,y,m,g;const{invert:v,toast:p,unstyled:S,interacting:_,setHeights:E,visibleToasts:z,heights:L,index:H,toasts:F,expanded:P,removeToast:I,defaultRichColors:lt,closeButton:$,style:V,cancelButtonStyle:D,actionButtonStyle:W,className:ot="",descriptionClassName:dt="",duration:ht,position:Lt,gap:Dt,expandByDefault:Mt,classNames:C,icons:X,closeButtonAriaLabel:Y="Close toast"}=a,[vt,pt]=G.useState(null),[w,q]=G.useState(null),[B,Z]=G.useState(!1),[J,at]=G.useState(!1),[it,ct]=G.useState(!1),[bt,te]=G.useState(!1),[ue,Yt]=G.useState(!1),[oi,Ue]=G.useState(0),[Zn,Pn]=G.useState(0),En=G.useRef(p.duration||ht||vy),Oa=G.useRef(null),ie=G.useRef(null),fn=H===0,Fn=H+1<=z,se=p.type,Rt=p.dismissible!==!1,Ct=p.className||"",Se=p.descriptionClassName||"",dn=G.useMemo(()=>L.findIndex(ft=>ft.toastId===p.id)||0,[L,p.id]),pl=G.useMemo(()=>{var ft;return(ft=p.closeButton)!=null?ft:$},[p.closeButton,$]),za=G.useMemo(()=>p.duration||ht||vy,[p.duration,ht]),us=G.useRef(0),wn=G.useRef(0),yl=G.useRef(0),$n=G.useRef(null),[Da,_e]=Lt.split("-"),sn=G.useMemo(()=>L.reduce((ft,Vt,le)=>le>=dn?ft:ft+Vt.height,0),[L,dn]),pe=Xx(),rr=p.invert||v,cs=se==="loading";wn.current=G.useMemo(()=>dn*Dt+sn,[dn,sn]),G.useEffect(()=>{En.current=za},[za]),G.useEffect(()=>{Z(!0)},[]),G.useEffect(()=>{const ft=ie.current;if(ft){const Vt=ft.getBoundingClientRect().height;return Pn(Vt),E(le=>[{toastId:p.id,height:Vt,position:p.position},...le]),()=>E(le=>le.filter(ye=>ye.toastId!==p.id))}},[E,p.id]),G.useLayoutEffect(()=>{if(!B)return;const ft=ie.current,Vt=ft.style.height;ft.style.height="auto";const le=ft.getBoundingClientRect().height;ft.style.height=Vt,Pn(le),E(ye=>ye.find(Kt=>Kt.toastId===p.id)?ye.map(Kt=>Kt.toastId===p.id?{...Kt,height:le}:Kt):[{toastId:p.id,height:le,position:p.position},...ye])},[B,p.title,p.description,E,p.id,p.jsx,p.action,p.cancel]);const hn=G.useCallback(()=>{at(!0),Ue(wn.current),E(ft=>ft.filter(Vt=>Vt.toastId!==p.id)),setTimeout(()=>{I(p)},sE)},[p,I,E,wn]);G.useEffect(()=>{if(p.promise&&se==="loading"||p.duration===1/0||p.type==="loading")return;let ft;return P||_||pe?(()=>{if(yl.current<us.current){const ye=new Date().getTime()-us.current;En.current=En.current-ye}yl.current=new Date().getTime()})():(()=>{En.current!==1/0&&(us.current=new Date().getTime(),ft=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),hn()},En.current))})(),()=>clearTimeout(ft)},[P,_,p,se,pe,hn]),G.useEffect(()=>{p.delete&&(hn(),p.onDismiss==null||p.onDismiss.call(p,p))},[hn,p.delete]);function ri(){var ft;if(X?.loading){var Vt;return G.createElement("div",{className:bn(C?.loader,p==null||(Vt=p.classNames)==null?void 0:Vt.loader,"sonner-loader"),"data-visible":se==="loading"},X.loading)}return G.createElement(kx,{className:bn(C?.loader,p==null||(ft=p.classNames)==null?void 0:ft.loader),visible:se==="loading"})}const ui=p.icon||X?.[se]||Hx(se);var La,mn;return G.createElement("li",{tabIndex:0,ref:ie,className:bn(ot,Ct,C?.toast,p==null||(s=p.classNames)==null?void 0:s.toast,C?.default,C?.[se],p==null||(l=p.classNames)==null?void 0:l[se]),"data-sonner-toast":"","data-rich-colors":(La=p.richColors)!=null?La:lt,"data-styled":!(p.jsx||p.unstyled||S),"data-mounted":B,"data-promise":!!p.promise,"data-swiped":ue,"data-removed":J,"data-visible":Fn,"data-y-position":Da,"data-x-position":_e,"data-index":H,"data-front":fn,"data-swiping":it,"data-dismissible":Rt,"data-type":se,"data-invert":rr,"data-swipe-out":bt,"data-swipe-direction":w,"data-expanded":!!(P||Mt&&B),"data-testid":p.testId,style:{"--index":H,"--toasts-before":H,"--z-index":F.length-H,"--offset":`${J?oi:wn.current}px`,"--initial-height":Mt?"auto":`${Zn}px`,...V,...p.style},onDragEnd:()=>{ct(!1),pt(null),$n.current=null},onPointerDown:ft=>{ft.button!==2&&(cs||!Rt||(Oa.current=new Date,Ue(wn.current),ft.target.setPointerCapture(ft.pointerId),ft.target.tagName!=="BUTTON"&&(ct(!0),$n.current={x:ft.clientX,y:ft.clientY})))},onPointerUp:()=>{var ft,Vt,le;if(bt||!Rt)return;$n.current=null;const ye=Number(((ft=ie.current)==null?void 0:ft.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Jn=Number(((Vt=ie.current)==null?void 0:Vt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Kt=new Date().getTime()-((le=Oa.current)==null?void 0:le.getTime()),we=vt==="x"?ye:Jn,Na=Math.abs(we)/Kt;if(Math.abs(we)>=iE||Na>.11){Ue(wn.current),p.onDismiss==null||p.onDismiss.call(p,p),q(vt==="x"?ye>0?"right":"left":Jn>0?"down":"up"),hn(),te(!0);return}else{var Re,Te;(Re=ie.current)==null||Re.style.setProperty("--swipe-amount-x","0px"),(Te=ie.current)==null||Te.style.setProperty("--swipe-amount-y","0px")}Yt(!1),ct(!1),pt(null)},onPointerMove:ft=>{var Vt,le,ye;if(!$n.current||!Rt||((Vt=window.getSelection())==null?void 0:Vt.toString().length)>0)return;const Kt=ft.clientY-$n.current.y,we=ft.clientX-$n.current.x;var Na;const Re=(Na=a.swipeDirections)!=null?Na:lE(Lt);!vt&&(Math.abs(we)>1||Math.abs(Kt)>1)&&pt(Math.abs(we)>Math.abs(Kt)?"x":"y");let Te={x:0,y:0};const ci=ln=>1/(1.5+Math.abs(ln)/20);if(vt==="y"){if(Re.includes("top")||Re.includes("bottom"))if(Re.includes("top")&&Kt<0||Re.includes("bottom")&&Kt>0)Te.y=Kt;else{const ln=Kt*ci(Kt);Te.y=Math.abs(ln)<Math.abs(Kt)?ln:Kt}}else if(vt==="x"&&(Re.includes("left")||Re.includes("right")))if(Re.includes("left")&&we<0||Re.includes("right")&&we>0)Te.x=we;else{const ln=we*ci(we);Te.x=Math.abs(ln)<Math.abs(we)?ln:we}(Math.abs(Te.x)>0||Math.abs(Te.y)>0)&&Yt(!0),(le=ie.current)==null||le.style.setProperty("--swipe-amount-x",`${Te.x}px`),(ye=ie.current)==null||ye.style.setProperty("--swipe-amount-y",`${Te.y}px`)}},pl&&!p.jsx&&se!=="loading"?G.createElement("button",{"aria-label":Y,"data-disabled":cs,"data-close-button":!0,onClick:cs||!Rt?()=>{}:()=>{hn(),p.onDismiss==null||p.onDismiss.call(p,p)},className:bn(C?.closeButton,p==null||(o=p.classNames)==null?void 0:o.closeButton)},(mn=X?.close)!=null?mn:Kx):null,(se||p.icon||p.promise)&&p.icon!==null&&(X?.[se]!==null||p.icon)?G.createElement("div",{"data-icon":"",className:bn(C?.icon,p==null||(c=p.classNames)==null?void 0:c.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||ri():null,p.type!=="loading"?ui:null):null,G.createElement("div",{"data-content":"",className:bn(C?.content,p==null||(f=p.classNames)==null?void 0:f.content)},G.createElement("div",{"data-title":"",className:bn(C?.title,p==null||(d=p.classNames)==null?void 0:d.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?G.createElement("div",{"data-description":"",className:bn(dt,Se,C?.description,p==null||(y=p.classNames)==null?void 0:y.description)},typeof p.description=="function"?p.description():p.description):null),G.isValidElement(p.cancel)?p.cancel:p.cancel&&qo(p.cancel)?G.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||D,onClick:ft=>{qo(p.cancel)&&Rt&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,ft),hn())},className:bn(C?.cancelButton,p==null||(m=p.classNames)==null?void 0:m.cancelButton)},p.cancel.label):null,G.isValidElement(p.action)?p.action:p.action&&qo(p.action)?G.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||W,onClick:ft=>{qo(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,ft),!ft.defaultPrevented&&hn())},className:bn(C?.actionButton,p==null||(g=p.classNames)==null?void 0:g.actionButton)},p.action.label):null)};function by(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function rE(a,s){const l={};return[a,s].forEach((o,c)=>{const f=c===1,d=f?"--mobile-offset":"--offset",y=f?eE:tE;function m(g){["top","right","bottom","left"].forEach(v=>{l[`${d}-${v}`]=typeof g=="number"?`${g}px`:g})}typeof o=="number"||typeof o=="string"?m(o):typeof o=="object"?["top","right","bottom","left"].forEach(g=>{o[g]===void 0?l[`${d}-${g}`]=y:l[`${d}-${g}`]=typeof o[g]=="number"?`${o[g]}px`:o[g]}):m(y)}),l}const uE=G.forwardRef(function(s,l){const{id:o,invert:c,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:y,closeButton:m,className:g,offset:v,mobileOffset:p,theme:S="light",richColors:_,duration:E,style:z,visibleToasts:L=Wx,toastOptions:H,dir:F=by(),gap:P=aE,icons:I,containerAriaLabel:lt="Notifications"}=s,[$,V]=G.useState([]),D=G.useMemo(()=>o?$.filter(B=>B.toasterId===o):$.filter(B=>!B.toasterId),[$,o]),W=G.useMemo(()=>Array.from(new Set([f].concat(D.filter(B=>B.position).map(B=>B.position)))),[D,f]),[ot,dt]=G.useState([]),[ht,Lt]=G.useState(!1),[Dt,Mt]=G.useState(!1),[C,X]=G.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=G.useRef(null),vt=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),pt=G.useRef(null),w=G.useRef(!1),q=G.useCallback(B=>{V(Z=>{var J;return(J=Z.find(at=>at.id===B.id))!=null&&J.delete||Ne.dismiss(B.id),Z.filter(({id:at})=>at!==B.id)})},[]);return G.useEffect(()=>Ne.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{V(Z=>Z.map(J=>J.id===B.id?{...J,delete:!0}:J))});return}setTimeout(()=>{zS.flushSync(()=>{V(Z=>{const J=Z.findIndex(at=>at.id===B.id);return J!==-1?[...Z.slice(0,J),{...Z[J],...B},...Z.slice(J+1)]:[B,...Z]})})})}),[$]),G.useEffect(()=>{if(S!=="system"){X(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Z})=>{X(Z?"dark":"light")})}catch{B.addListener(({matches:J})=>{try{X(J?"dark":"light")}catch(at){console.error(at)}})}},[S]),G.useEffect(()=>{$.length<=1&&Lt(!1)},[$]),G.useEffect(()=>{const B=Z=>{var J;if(d.every(ct=>Z[ct]||Z.code===ct)){var it;Lt(!0),(it=Y.current)==null||it.focus()}Z.code==="Escape"&&(document.activeElement===Y.current||(J=Y.current)!=null&&J.contains(document.activeElement))&&Lt(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[d]),G.useEffect(()=>{if(Y.current)return()=>{pt.current&&(pt.current.focus({preventScroll:!0}),pt.current=null,w.current=!1)}},[Y.current]),G.createElement("section",{ref:l,"aria-label":`${lt} ${vt}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},W.map((B,Z)=>{var J;const[at,it]=B.split("-");return D.length?G.createElement("ol",{key:B,dir:F==="auto"?by():F,tabIndex:-1,ref:Y,className:g,"data-sonner-toaster":!0,"data-sonner-theme":C,"data-y-position":at,"data-x-position":it,style:{"--front-toast-height":`${((J=ot[0])==null?void 0:J.height)||0}px`,"--width":`${nE}px`,"--gap":`${P}px`,...z,...rE(v,p)},onBlur:ct=>{w.current&&!ct.currentTarget.contains(ct.relatedTarget)&&(w.current=!1,pt.current&&(pt.current.focus({preventScroll:!0}),pt.current=null))},onFocus:ct=>{ct.target instanceof HTMLElement&&ct.target.dataset.dismissible==="false"||w.current||(w.current=!0,pt.current=ct.relatedTarget)},onMouseEnter:()=>Lt(!0),onMouseMove:()=>Lt(!0),onMouseLeave:()=>{Dt||Lt(!1)},onDragEnd:()=>Lt(!1),onPointerDown:ct=>{ct.target instanceof HTMLElement&&ct.target.dataset.dismissible==="false"||Mt(!0)},onPointerUp:()=>Mt(!1)},D.filter(ct=>!ct.position&&Z===0||ct.position===B).map((ct,bt)=>{var te,ue;return G.createElement(oE,{key:ct.id,icons:I,index:bt,toast:ct,defaultRichColors:_,duration:(te=H?.duration)!=null?te:E,className:H?.className,descriptionClassName:H?.descriptionClassName,invert:c,visibleToasts:L,closeButton:(ue=H?.closeButton)!=null?ue:m,interacting:Dt,position:B,style:H?.style,unstyled:H?.unstyled,classNames:H?.classNames,cancelButtonStyle:H?.cancelButtonStyle,actionButtonStyle:H?.actionButtonStyle,closeButtonAriaLabel:H?.closeButtonAriaLabel,removeToast:q,toasts:D.filter(Yt=>Yt.position==ct.position),heights:ot.filter(Yt=>Yt.position==ct.position),setHeights:dt,expandByDefault:y,gap:P,expanded:ht,swipeDirections:s.swipeDirections})})):null}))}),cE=({...a})=>{const{theme:s}=Vg();return U.jsx(uE,{theme:s,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...a})},wa=a=>typeof a=="string",fE=a=>typeof a=="function",Sy=new Map,Gg="en";function Mf(a){return[...Array.isArray(a)?a:[a],Gg]}function Af(a,s,l){const o=Mf(a);l||(l="default");let c;if(typeof l=="string")switch(c={day:"numeric",month:"short",year:"numeric"},l){case"full":c.weekday="long";case"long":c.month="long";break;case"short":c.month="numeric";break}else c=l;return nr(()=>ar("date",o,l),()=>new Intl.DateTimeFormat(o,c)).format(wa(s)?new Date(s):s)}function dE(a,s,l){let o;if(l||(l="default"),typeof l=="string")switch(o={second:"numeric",minute:"numeric",hour:"numeric"},l){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=l;return Af(a,s,o)}function ff(a,s,l){const o=Mf(a);return nr(()=>ar("number",o,l),()=>new Intl.NumberFormat(o,l)).format(s)}function _y(a,s,l,{offset:o=0,...c}){const f=Mf(a),d=s?nr(()=>ar("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):nr(()=>ar("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return c[l]??c[d.select(l-o)]??c.other}function nr(a,s){const l=a();let o=Sy.get(l);return o||(o=s(),Sy.set(l,o)),o}function ar(a,s,l){const o=s.join("-");return`${a}-${o}-${JSON.stringify(l)}`}const Yg=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Kg=a=>a.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(s,l,o)=>{if(l){const c=parseInt(l,16);return String.fromCharCode(c)}else{const c=parseInt(o,16);return String.fromCharCode(c)}}),Xg="%__lingui_octothorpe__%",hE=(a,s,l={})=>{const o=s||a,c=d=>typeof d=="object"?d:l[d],f=(d,y)=>{const m=Object.keys(l).length?c("number"):void 0,g=ff(o,d,m);return y.replace(new RegExp(Xg,"g"),g)};return{plural:(d,y)=>{const{offset:m=0}=y,g=_y(o,!1,d,y);return f(d-m,g)},selectordinal:(d,y)=>{const{offset:m=0}=y,g=_y(o,!0,d,y);return f(d-m,g)},select:mE,number:(d,y)=>ff(o,d,c(y)||{style:y}),date:(d,y)=>Af(o,d,c(y)||y),time:(d,y)=>dE(o,d,c(y)||y)}},mE=(a,s)=>s[a]??s.other;function pE(a,s,l){return(o={},c)=>{const f=hE(s,l,c),d=(m,g=!1)=>Array.isArray(m)?m.reduce((v,p)=>{if(p==="#"&&g)return v+Xg;if(wa(p))return v+p;const[S,_,E]=p;let z={};_==="plural"||_==="selectordinal"||_==="select"?Object.entries(E).forEach(([H,F])=>{z[H]=d(F,_==="plural"||_==="selectordinal")}):z=E;let L;if(_){const H=f[_];L=H(o[S],z)}else L=o[S];return L==null?v:v+L},""):m,y=d(a);return wa(y)&&Yg.test(y)?Kg(y):wa(y)?y:y?String(y):""}}var yE=Object.defineProperty,gE=(a,s,l)=>s in a?yE(a,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[s]=l,vE=(a,s,l)=>(gE(a,s+"",l),l);class bE{constructor(){vE(this,"_events",{})}on(s,l){var o;return(o=this._events)[s]??(o[s]=[]),this._events[s].push(l),()=>this.removeListener(s,l)}removeListener(s,l){const o=this._getListeners(s);if(!o)return;const c=o.indexOf(l);~c&&o.splice(c,1)}emit(s,...l){const o=this._getListeners(s);o&&o.map(c=>c.apply(this,l))}_getListeners(s){const l=this._events[s];return Array.isArray(l)?l:!1}}var SE=Object.defineProperty,_E=(a,s,l)=>s in a?SE(a,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[s]=l,Wa=(a,s,l)=>(_E(a,typeof s!="symbol"?s+"":s,l),l);class xE extends bE{constructor(s){super(),Wa(this,"_locale",""),Wa(this,"_locales"),Wa(this,"_localeData",{}),Wa(this,"_messages",{}),Wa(this,"_missing"),Wa(this,"_messageCompiler"),Wa(this,"t",this._.bind(this)),s.missing!=null&&(this._missing=s.missing),s.messages!=null&&this.load(s.messages),s.localeData!=null&&this.loadLocaleData(s.localeData),(typeof s.locale=="string"||s.locales)&&this.activate(s.locale??Gg,s.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(s,l){const o=this._localeData[s];o?Object.assign(o,l):this._localeData[s]=l}setMessagesCompiler(s){return this._messageCompiler=s,this}loadLocaleData(s,l){typeof s=="string"?this._loadLocaleData(s,l):Object.keys(s).forEach(o=>this._loadLocaleData(o,s[o])),this.emit("change")}_load(s,l){const o=this._messages[s];o?Object.assign(o,l):this._messages[s]=l}load(s,l){typeof s=="string"&&typeof l=="object"?this._load(s,l):Object.entries(s).forEach(([o,c])=>this._load(o,c)),this.emit("change")}loadAndActivate({locale:s,locales:l,messages:o}){this._locale=s,this._locales=l||void 0,this._messages[this._locale]=o,this.emit("change")}activate(s,l){this._locale=s,this._locales=l,this.emit("change")}_(s,l,o){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let c=o?.message;s||(s=""),wa(s)||(l=s.values||l,c=s.message,s=s.id);const f=this.messages[s],d=f===void 0,y=this._missing;if(y&&d)return fE(y)?y(this._locale,s):y;d&&this.emit("missing",{id:s,locale:this._locale});let m=f||c||s;return wa(m)&&(this._messageCompiler?m=this._messageCompiler(m):console.warn(`Uncompiled message detected! Message:
108
-
109
- > ${m}
110
-
111
- That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
112
- ICU features such as interpolation and plurals will not work properly for that message.
113
-
114
- Please compile your catalog first.
115
- `)),wa(m)&&Yg.test(m)?Kg(m):wa(m)?m:pE(m,this._locale,this._locales)(l,o?.formats)}date(s,l){return Af(this._locales||this._locale,s,l)}number(s,l){return ff(this._locales||this._locale,s,l)}}function EE(a={}){return new xE(a)}const df=EE(),wE=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,RE={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function Zg(a,s={}){const l=a.split(wE);if(l.length===1)return a;const o=TE(0,"$lingui$"),c=[],f=l.shift();f&&c.push(f);for(const[d,y,m]of Pg(l)){let g=typeof d<"u"?s[d]:void 0;(!g||RE[g.type]&&y)&&(console.error(g?`${g.type} is a void element tag therefore it must have no children`:`Can't use element at index '${d}' as it is not declared in the original translation`),g=G.createElement(G.Fragment)),Array.isArray(g)&&(g=G.createElement(G.Fragment,{},g)),c.push(G.cloneElement(g,{key:o()},y?Zg(y,s):g.props.children)),m&&c.push(m)}return c.length===1?c[0]:c}function Pg(a){if(!a.length)return[];const[s,l,o,c]=a.slice(0,4);return[[s||o,l||"",c]].concat(Pg(a.slice(4,a.length)))}const TE=(a=0,s="")=>()=>`${s}_${a++}`;function CE(a){const{render:s,component:l,id:o,message:c,formats:f,lingui:{i18n:d,defaultComponent:y}}=a,{values:m,components:g}=AE(a),v=d&&typeof d._=="function"?d._(o,m,{message:c,formats:f}):o,p=v?Zg(v,g):null;if(s===null||l===null)return p;const S=y||ME,_={id:o,message:c,translation:p,children:p};if(s&&l)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(s&&typeof s!="function")console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${s}`);else if(l&&typeof l!="function")return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${l}`),G.createElement(S,_,p);if(typeof s=="function")return s(_);const E=l||S;return G.createElement(E,_,p)}const ME=({children:a})=>G.createElement(G.Fragment,null,a),AE=a=>{if(!a.values)return{values:void 0,components:a.components};const s={...a.values},l={...a.components};return Object.entries(a.values).forEach(([o,c])=>{if(typeof c=="string"||typeof c=="number")return;const f=Object.keys(l).length;l[f]=G.createElement(G.Fragment,null,c),s[o]=`<${f}/>`}),{values:s,components:l}},Fg=G.createContext(null),$g=a=>G.useContext(Fg);function w2(){return $g()}function OE({i18n:a,defaultComponent:s,children:l}){const o=G.useRef(a.locale),c=G.useCallback(()=>({i18n:a,defaultComponent:s,_:a.t.bind(a)}),[a,s]),[f,d]=G.useState(c());return G.useEffect(()=>{const y=()=>{o.current=a.locale,d(c())},m=a.on("change",y);return o.current!==a.locale&&y(),m},[a,c]),o.current?G.createElement(Fg.Provider,{value:f},l):null}function qc(a){const s=$g();return G.createElement(CE,{...a,lingui:s})}const zE="modulepreload",DE=function(a){return"/"+a},xy={},Aa=function(s,l,o){let c=Promise.resolve();if(l&&l.length>0){let m=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),y=d?.nonce||d?.getAttribute("nonce");c=m(l.map(g=>{if(g=DE(g),g in xy)return;xy[g]=!0;const v=g.endsWith(".css"),p=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${p}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":zE,v||(S.as="script"),S.crossOrigin="",S.href=g,y&&S.setAttribute("nonce",y),document.head.appendChild(S),v)return new Promise((_,E)=>{S.addEventListener("load",_),S.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(d){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=d,window.dispatchEvent(y),!y.defaultPrevented)throw d}return c.then(d=>{for(const y of d||[])y.status==="rejected"&&f(y.reason);return s().catch(f)})},LE=async a=>{switch(a){case"ja":return Aa(()=>import("./messages-CTBgz1qg.js"),[]);case"en":return Aa(()=>import("./messages-B2As9KeS.js"),[]);default:throw new Error(`Unsupported locale: ${a}`)}},Ey=[],NE=async a=>{if(!Ey.includes(a)){const{messages:s}=await LE(a);df.load(a,s),Ey.push(a)}df.activate(a)},jE=({children:a})=>{const{config:s}=Qg();return K.useEffect(()=>{NE(s.locale)},[s.locale]),U.jsx(OE,{i18n:df,children:a})},UE=a=>{const{onOpen:s}=a??{},l=new EventSource(new URL("/api/sse",window.location.origin).href),o=d=>{console.log("SSE connection opened",d),s?.(d)};return l.onopen=o,{addEventListener:(d,y)=>{const m=v=>{try{const p=JSON.parse(v.data);y(p)}catch(p){console.error("Failed to parse SSE event data:",p)}};return l.addEventListener(d,m),{removeEventListener:()=>{l.removeEventListener(d,m)}}},cleanUp:()=>{l.onopen=null,l.onmessage=null,l.close()},eventSource:l}},BE=Hg({isConnected:!1}),HE=({children:a})=>{const s=K.useRef(null),l=K.useRef(new Map),[,o]=Lx(BE),c=hl();K.useEffect(()=>{const y=UE({onOpen:async()=>{await c.invalidateQueries({queryKey:ax.queryKey})}});s.current=y;const{removeEventListener:m}=y.addEventListener("connect",g=>{o({isConnected:!0}),console.log("SSE connected",g)});return()=>{y.cleanUp(),m()}},[o,c]);const d={addEventListener:K.useCallback((y,m)=>{l.current.has(y)||l.current.set(y,new Set);const g=l.current.get(y);g&&g.add(m);let v=null,p=null;const S=()=>{if(s.current){const{removeEventListener:_}=s.current.addEventListener(y,E=>{m(E)});v=_}};return s.current?S():p=setTimeout(S,0),()=>{const _=l.current.get(y);_&&(_.delete(m),_.size===0&&l.current.delete(y)),v&&v(),p&&clearTimeout(p)}},[])};return U.jsx(Ag.Provider,{value:d,children:a})},qE=({children:a})=>U.jsx(HE,{children:a}),ml=YS({component:()=>U.jsxs(m_,{children:[U.jsx(Ux,{children:U.jsx(jE,{children:U.jsx(qE,{children:U.jsx(ox,{children:U.jsx(jx,{children:U.jsx(Gy,{})})})})})}),U.jsx(cE,{position:"top-right"})]})}),kE=()=>Aa(()=>import("./index-BCLB4du1.js"),[]),QE=as("/")({component:is(kE,"component")}),VE=()=>Aa(()=>import("./index-DfIIjCmW.js"),__vite__mapDeps([0,1])),GE=as("/projects/")({component:is(VE,"component")}),YE=()=>Aa(()=>import("./index-CK6hOCWi.js"),[]),KE=()=>Aa(()=>import("./index-DIDGF7dr.js"),[]),XE=as("/projects/$projectId/latest/")({component:is(KE,"component"),notFoundComponent:is(YE,"notFoundComponent"),loader:async({params:a})=>{const{projectId:s}=a,l=await be.api.projects[":projectId"]["latest-session"].$get({param:{projectId:s}});return l.ok?{success:!0,projectId:s,data:await l.json()}:{success:!1,message:`Failed to fetch latest session: ${l.statusText}`}}}),ZE=()=>Aa(()=>import("./index-ctyalk2m.js"),[]),PE=()=>Aa(()=>import("./index-BGPIfxUi.js"),__vite__mapDeps([2,1])),FE=as("/projects/$projectId/sessions/$sessionId/")({component:is(PE,"component"),notFoundComponent:is(ZE,"notFoundComponent")}),$E=QE.update({id:"/",path:"/",getParentRoute:()=>ml}),JE=GE.update({id:"/projects/",path:"/projects/",getParentRoute:()=>ml}),IE=XE.update({id:"/projects/$projectId/latest/",path:"/projects/$projectId/latest/",getParentRoute:()=>ml}),WE=FE.update({id:"/projects/$projectId/sessions/$sessionId/",path:"/projects/$projectId/sessions/$sessionId/",getParentRoute:()=>ml}),t2={IndexRoute:$E,ProjectsIndexRoute:JE,ProjectsProjectIdLatestIndexRoute:IE,ProjectsProjectIdSessionsSessionIdIndexRoute:WE},e2=ml._addFileChildren(t2)._addFileTypes(),n2=({message:a=U.jsx(qc,{id:"notfound.default.title",message:"Page Not Found"}),description:s=U.jsx(qc,{id:"notfound.default.description",message:"The page you are looking for does not exist or has been moved."})})=>U.jsx("div",{className:"flex min-h-screen items-center justify-center p-4",children:U.jsxs(og,{className:"w-full max-w-2xl",children:[U.jsx(rg,{children:U.jsxs("div",{className:"flex items-center gap-3",children:[U.jsx(y1,{className:"size-6 text-muted-foreground"}),U.jsxs("div",{children:[U.jsx(ug,{children:a}),U.jsx(cg,{children:s})]})]})}),U.jsx(fg,{className:"space-y-4",children:U.jsx("div",{className:"flex gap-2",children:U.jsxs(Fc,{onClick:()=>{window.location.href="/"},variant:"default",children:[U.jsx(Ky,{}),U.jsx(qc,{id:"notfound.button.go_home",message:"Go to Home"})]})})})]})}),a2=new U_({defaultOptions:{queries:{refetchOnWindowFocus:!0,retry:!1}}}),i2=({children:a})=>U.jsx(B_,{client:a2,children:a}),s2=WS({routeTree:e2,context:{},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0,defaultNotFoundComponent:()=>U.jsx(n2,{})}),kc=document.getElementById("app");kc&&!kc.innerHTML&&r1.createRoot(kc).render(U.jsx(K.StrictMode,{children:U.jsx(i2,{children:U.jsx(n1,{router:s2})})}));export{o_ as $,Nx as A,Fc as B,og as C,l2 as D,hf as E,Vg as F,Ip as G,i_ as H,s_ as I,l_ as J,Xn as K,ky as L,y2 as M,n2 as N,g2 as O,w2 as P,A_ as Q,G as R,hl as S,qc as T,p2 as U,b2 as V,b1 as W,v2 as X,qy as Y,FE as Z,Aa as _,xf as a,u2 as a0,o2 as a1,zS as a2,c2 as a3,Hg as a4,Lx as a5,x2 as a6,r_ as a7,Py as a8,S2 as a9,_2 as aa,$_ as b,or as c,m2 as d,wg as e,Qg as f,rg as g,be as h,ug as i,U as j,cg as k,fg as l,vf as m,hy as n,d2 as o,ax as p,f2 as q,K as r,F_ as s,E2 as t,Ke as u,K_ as v,sf as w,Dx as x,ix as y,sx as z};