function pb(l,i){for(var c=0;c<i.length;c++){const o=i[c];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in l)){const f=Object.getOwnPropertyDescriptor(o,s);f&&Object.defineProperty(l,s,f.get?f:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function c(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(s){if(s.ep)return;s.ep=!0;const f=c(s);fetch(s.href,f)}})();function Km(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Rc={exports:{}},hr={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var om;function gb(){if(om)return hr;om=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(o,s,f){var p=null;if(f!==void 0&&(p=""+f),s.key!==void 0&&(p=""+s.key),"key"in s){f={};for(var h in s)h!=="key"&&(f[h]=s[h])}else f=s;return s=f.ref,{$$typeof:l,type:o,key:p,ref:s!==void 0?s:null,props:f}}return hr.Fragment=i,hr.jsx=c,hr.jsxs=c,hr}var cm;function yb(){return cm||(cm=1,Rc.exports=gb()),Rc.exports}var y=yb(),Cc={exports:{}},oe={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sm;function bb(){if(sm)return oe;sm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),C=Symbol.iterator;function T(E){return E===null||typeof E!="object"?null:(E=C&&E[C]||E["@@iterator"],typeof E=="function"?E:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,A={};function _(E,X,F){this.props=E,this.context=X,this.refs=A,this.updater=F||k}_.prototype.isReactComponent={},_.prototype.setState=function(E,X){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,X,"setState")},_.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function z(){}z.prototype=_.prototype;function L(E,X,F){this.props=E,this.context=X,this.refs=A,this.updater=F||k}var Y=L.prototype=new z;Y.constructor=L,M(Y,_.prototype),Y.isPureReactComponent=!0;var H=Array.isArray,V={H:null,A:null,T:null,S:null,V:null},te=Object.prototype.hasOwnProperty;function $(E,X,F,K,P,de){return F=de.ref,{$$typeof:l,type:E,key:X,ref:F!==void 0?F:null,props:de}}function Q(E,X){return $(E.type,X,void 0,void 0,void 0,E.props)}function re(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function xe(E){var X={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(F){return X[F]})}var De=/\/+/g;function je(E,X){return typeof E=="object"&&E!==null&&E.key!=null?xe(""+E.key):X.toString(36)}function Et(){}function Rt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(Et,Et):(E.status="pending",E.then(function(X){E.status==="pending"&&(E.status="fulfilled",E.value=X)},function(X){E.status==="pending"&&(E.status="rejected",E.reason=X)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function _e(E,X,F,K,P){var de=typeof E;(de==="undefined"||de==="boolean")&&(E=null);var ie=!1;if(E===null)ie=!0;else switch(de){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(E.$$typeof){case l:case i:ie=!0;break;case x:return ie=E._init,_e(ie(E._payload),X,F,K,P)}}if(ie)return P=P(E),ie=K===""?"."+je(E,0):K,H(P)?(F="",ie!=null&&(F=ie.replace(De,"$&/")+"/"),_e(P,X,F,"",function(dt){return dt})):P!=null&&(re(P)&&(P=Q(P,F+(P.key==null||E&&E.key===P.key?"":(""+P.key).replace(De,"$&/")+"/")+ie)),X.push(P)),1;ie=0;var pe=K===""?".":K+":";if(H(E))for(var Te=0;Te<E.length;Te++)K=E[Te],de=pe+je(K,Te),ie+=_e(K,X,F,de,P);else if(Te=T(E),typeof Te=="function")for(E=Te.call(E),Te=0;!(K=E.next()).done;)K=K.value,de=pe+je(K,Te++),ie+=_e(K,X,F,de,P);else if(de==="object"){if(typeof E.then=="function")return _e(Rt(E),X,F,K,P);throw X=String(E),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ie}function U(E,X,F){if(E==null)return E;var K=[],P=0;return _e(E,K,"","",function(de){return X.call(F,de,P++)}),K}function J(E){if(E._status===-1){var X=E._result;X=X(),X.then(function(F){(E._status===0||E._status===-1)&&(E._status=1,E._result=F)},function(F){(E._status===0||E._status===-1)&&(E._status=2,E._result=F)}),E._status===-1&&(E._status=0,E._result=X)}if(E._status===1)return E._result.default;throw E._result}var Z=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)};function be(){}return oe.Children={map:U,forEach:function(E,X,F){U(E,function(){X.apply(this,arguments)},F)},count:function(E){var X=0;return U(E,function(){X++}),X},toArray:function(E){return U(E,function(X){return X})||[]},only:function(E){if(!re(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},oe.Component=_,oe.Fragment=c,oe.Profiler=s,oe.PureComponent=L,oe.StrictMode=o,oe.Suspense=v,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,oe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return V.H.useMemoCache(E)}},oe.cache=function(E){return function(){return E.apply(null,arguments)}},oe.cloneElement=function(E,X,F){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var K=M({},E.props),P=E.key,de=void 0;if(X!=null)for(ie in X.ref!==void 0&&(de=void 0),X.key!==void 0&&(P=""+X.key),X)!te.call(X,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&X.ref===void 0||(K[ie]=X[ie]);var ie=arguments.length-2;if(ie===1)K.children=F;else if(1<ie){for(var pe=Array(ie),Te=0;Te<ie;Te++)pe[Te]=arguments[Te+2];K.children=pe}return $(E.type,P,void 0,void 0,de,K)},oe.createContext=function(E){return E={$$typeof:p,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},oe.createElement=function(E,X,F){var K,P={},de=null;if(X!=null)for(K in X.key!==void 0&&(de=""+X.key),X)te.call(X,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(P[K]=X[K]);var ie=arguments.length-2;if(ie===1)P.children=F;else if(1<ie){for(var pe=Array(ie),Te=0;Te<ie;Te++)pe[Te]=arguments[Te+2];P.children=pe}if(E&&E.defaultProps)for(K in ie=E.defaultProps,ie)P[K]===void 0&&(P[K]=ie[K]);return $(E,de,void 0,void 0,null,P)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(E){return{$$typeof:h,render:E}},oe.isValidElement=re,oe.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:J}},oe.memo=function(E,X){return{$$typeof:m,type:E,compare:X===void 0?null:X}},oe.startTransition=function(E){var X=V.T,F={};V.T=F;try{var K=E(),P=V.S;P!==null&&P(F,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(be,Z)}catch(de){Z(de)}finally{V.T=X}},oe.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},oe.use=function(E){return V.H.use(E)},oe.useActionState=function(E,X,F){return V.H.useActionState(E,X,F)},oe.useCallback=function(E,X){return V.H.useCallback(E,X)},oe.useContext=function(E){return V.H.useContext(E)},oe.useDebugValue=function(){},oe.useDeferredValue=function(E,X){return V.H.useDeferredValue(E,X)},oe.useEffect=function(E,X,F){var K=V.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(E,X)},oe.useId=function(){return V.H.useId()},oe.useImperativeHandle=function(E,X,F){return V.H.useImperativeHandle(E,X,F)},oe.useInsertionEffect=function(E,X){return V.H.useInsertionEffect(E,X)},oe.useLayoutEffect=function(E,X){return V.H.useLayoutEffect(E,X)},oe.useMemo=function(E,X){return V.H.useMemo(E,X)},oe.useOptimistic=function(E,X){return V.H.useOptimistic(E,X)},oe.useReducer=function(E,X,F){return V.H.useReducer(E,X,F)},oe.useRef=function(E){return V.H.useRef(E)},oe.useState=function(E){return V.H.useState(E)},oe.useSyncExternalStore=function(E,X,F){return V.H.useSyncExternalStore(E,X,F)},oe.useTransition=function(){return V.H.useTransition()},oe.version="19.1.0",oe}var fm;function Fc(){return fm||(fm=1,Cc.exports=bb()),Cc.exports}var b=Fc();const Ge=Km(b),Jm=pb({__proto__:null,default:Ge},[b]);/**
 * react-router v7.7.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var dm="popstate";function xb(l={}){function i(o,s){let{pathname:f,search:p,hash:h}=o.location;return qc("",{pathname:f,search:p,hash:h},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function c(o,s){return typeof s=="string"?s:gr(s)}return Eb(i,c,null,l)}function Ue(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Zt(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Sb(){return Math.random().toString(36).substring(2,10)}function hm(l,i){return{usr:l.state,key:l.key,idx:i}}function qc(l,i,c=null,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?dl(i):i,state:c,key:i&&i.key||o||Sb()}}function gr({pathname:l="/",search:i="",hash:c=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(l+=c.charAt(0)==="#"?c:"#"+c),l}function dl(l){let i={};if(l){let c=l.indexOf("#");c>=0&&(i.hash=l.substring(c),l=l.substring(0,c));let o=l.indexOf("?");o>=0&&(i.search=l.substring(o),l=l.substring(0,o)),l&&(i.pathname=l)}return i}function Eb(l,i,c,o={}){let{window:s=document.defaultView,v5Compat:f=!1}=o,p=s.history,h="POP",v=null,m=x();m==null&&(m=0,p.replaceState({...p.state,idx:m},""));function x(){return(p.state||{idx:null}).idx}function C(){h="POP";let _=x(),z=_==null?null:_-m;m=_,v&&v({action:h,location:A.location,delta:z})}function T(_,z){h="PUSH";let L=qc(A.location,_,z);m=x()+1;let Y=hm(L,m),H=A.createHref(L);try{p.pushState(Y,"",H)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;s.location.assign(H)}f&&v&&v({action:h,location:A.location,delta:1})}function k(_,z){h="REPLACE";let L=qc(A.location,_,z);m=x();let Y=hm(L,m),H=A.createHref(L);p.replaceState(Y,"",H),f&&v&&v({action:h,location:A.location,delta:0})}function M(_){return Rb(_)}let A={get action(){return h},get location(){return l(s,p)},listen(_){if(v)throw new Error("A history only accepts one active listener");return s.addEventListener(dm,C),v=_,()=>{s.removeEventListener(dm,C),v=null}},createHref(_){return i(s,_)},createURL:M,encodeLocation(_){let z=M(_);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:T,replace:k,go(_){return p.go(_)}};return A}function Rb(l,i=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(c,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:gr(l);return o=o.replace(/ $/,"%20"),!i&&o.startsWith("//")&&(o=c+o),new URL(o,c)}function $m(l,i,c="/"){return Cb(l,i,c,!1)}function Cb(l,i,c,o){let s=typeof i=="string"?dl(i):i,f=hn(s.pathname||"/",c);if(f==null)return null;let p=Fm(l);Ab(p);let h=null;for(let v=0;h==null&&v<p.length;++v){let m=kb(f);h=zb(p[v],m,o)}return h}function Fm(l,i=[],c=[],o=""){let s=(f,p,h)=>{let v={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};v.relativePath.startsWith("/")&&(Ue(v.relativePath.startsWith(o),`Absolute route path "${v.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(o.length));let m=dn([o,v.relativePath]),x=c.concat(v);f.children&&f.children.length>0&&(Ue(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Fm(f.children,i,x,m)),!(f.path==null&&!f.index)&&i.push({path:m,score:Db(m,f.index),routesMeta:x})};return l.forEach((f,p)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))s(f,p);else for(let v of Pm(f.path))s(f,p,v)}),i}function Pm(l){let i=l.split("/");if(i.length===0)return[];let[c,...o]=i,s=c.endsWith("?"),f=c.replace(/\?$/,"");if(o.length===0)return s?[f,""]:[f];let p=Pm(o.join("/")),h=[];return h.push(...p.map(v=>v===""?f:[f,v].join("/"))),s&&h.push(...p),h.map(v=>l.startsWith("/")&&v===""?"/":v)}function Ab(l){l.sort((i,c)=>i.score!==c.score?c.score-i.score:jb(i.routesMeta.map(o=>o.childrenIndex),c.routesMeta.map(o=>o.childrenIndex)))}var Tb=/^:[\w-]+$/,wb=3,Nb=2,_b=1,Ob=10,Mb=-2,mm=l=>l==="*";function Db(l,i){let c=l.split("/"),o=c.length;return c.some(mm)&&(o+=Mb),i&&(o+=Nb),c.filter(s=>!mm(s)).reduce((s,f)=>s+(Tb.test(f)?wb:f===""?_b:Ob),o)}function jb(l,i){return l.length===i.length&&l.slice(0,-1).every((o,s)=>o===i[s])?l[l.length-1]-i[i.length-1]:0}function zb(l,i,c=!1){let{routesMeta:o}=l,s={},f="/",p=[];for(let h=0;h<o.length;++h){let v=o[h],m=h===o.length-1,x=f==="/"?i:i.slice(f.length)||"/",C=$u({path:v.relativePath,caseSensitive:v.caseSensitive,end:m},x),T=v.route;if(!C&&m&&c&&!o[o.length-1].route.index&&(C=$u({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!C)return null;Object.assign(s,C.params),p.push({params:s,pathname:dn([f,C.pathname]),pathnameBase:Gb(dn([f,C.pathnameBase])),route:T}),C.pathnameBase!=="/"&&(f=dn([f,C.pathnameBase]))}return p}function $u(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[c,o]=Ub(l.path,l.caseSensitive,l.end),s=i.match(c);if(!s)return null;let f=s[0],p=f.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:o.reduce((m,{paramName:x,isOptional:C},T)=>{if(x==="*"){let M=h[T]||"";p=f.slice(0,f.length-M.length).replace(/(.)\/+$/,"$1")}const k=h[T];return C&&!k?m[x]=void 0:m[x]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:p,pattern:l}}function Ub(l,i=!1,c=!0){Zt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let o=[],s="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,h,v)=>(o.push({paramName:h,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(o.push({paramName:"*"}),s+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?s+="\\/*$":l!==""&&l!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,i?void 0:"i"),o]}function kb(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Zt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function hn(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,o=l.charAt(c);return o&&o!=="/"?null:l.slice(c)||"/"}function Lb(l,i="/"){let{pathname:c,search:o="",hash:s=""}=typeof l=="string"?dl(l):l;return{pathname:c?c.startsWith("/")?c:Hb(c,i):i,search:qb(o),hash:Yb(s)}}function Hb(l,i){let c=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(s=>{s===".."?c.length>1&&c.pop():s!=="."&&c.push(s)}),c.length>1?c.join("/"):"/"}function Ac(l,i,c,o){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(o)}].  Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Bb(l){return l.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function Wm(l){let i=Bb(l);return i.map((c,o)=>o===i.length-1?c.pathname:c.pathnameBase)}function Im(l,i,c,o=!1){let s;typeof l=="string"?s=dl(l):(s={...l},Ue(!s.pathname||!s.pathname.includes("?"),Ac("?","pathname","search",s)),Ue(!s.pathname||!s.pathname.includes("#"),Ac("#","pathname","hash",s)),Ue(!s.search||!s.search.includes("#"),Ac("#","search","hash",s)));let f=l===""||s.pathname==="",p=f?"/":s.pathname,h;if(p==null)h=c;else{let C=i.length-1;if(!o&&p.startsWith("..")){let T=p.split("/");for(;T[0]==="..";)T.shift(),C-=1;s.pathname=T.join("/")}h=C>=0?i[C]:"/"}let v=Lb(s,h),m=p&&p!=="/"&&p.endsWith("/"),x=(f||p===".")&&c.endsWith("/");return!v.pathname.endsWith("/")&&(m||x)&&(v.pathname+="/"),v}var dn=l=>l.join("/").replace(/\/\/+/g,"/"),Gb=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),qb=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Yb=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function Vb(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var ev=["POST","PUT","PATCH","DELETE"];new Set(ev);var Xb=["GET",...ev];new Set(Xb);var hl=b.createContext(null);hl.displayName="DataRouter";var ei=b.createContext(null);ei.displayName="DataRouterState";b.createContext(!1);var tv=b.createContext({isTransitioning:!1});tv.displayName="ViewTransition";var Qb=b.createContext(new Map);Qb.displayName="Fetchers";var Zb=b.createContext(null);Zb.displayName="Await";var Kt=b.createContext(null);Kt.displayName="Navigation";var br=b.createContext(null);br.displayName="Location";var mn=b.createContext({outlet:null,matches:[],isDataRoute:!1});mn.displayName="Route";var Pc=b.createContext(null);Pc.displayName="RouteError";function Kb(l,{relative:i}={}){Ue(xr(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:o}=b.useContext(Kt),{hash:s,pathname:f,search:p}=Sr(l,{relative:i}),h=f;return c!=="/"&&(h=f==="/"?c:dn([c,f])),o.createHref({pathname:h,search:p,hash:s})}function xr(){return b.useContext(br)!=null}function pa(){return Ue(xr(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(br).location}var nv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function av(l){b.useContext(Kt).static||b.useLayoutEffect(l)}function Jb(){let{isDataRoute:l}=b.useContext(mn);return l?i0():$b()}function $b(){Ue(xr(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(hl),{basename:i,navigator:c}=b.useContext(Kt),{matches:o}=b.useContext(mn),{pathname:s}=pa(),f=JSON.stringify(Wm(o)),p=b.useRef(!1);return av(()=>{p.current=!0}),b.useCallback((v,m={})=>{if(Zt(p.current,nv),!p.current)return;if(typeof v=="number"){c.go(v);return}let x=Im(v,JSON.parse(f),s,m.relative==="path");l==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:dn([i,x.pathname])),(m.replace?c.replace:c.push)(x,m.state,m)},[i,c,f,s,l])}b.createContext(null);function Sr(l,{relative:i}={}){let{matches:c}=b.useContext(mn),{pathname:o}=pa(),s=JSON.stringify(Wm(c));return b.useMemo(()=>Im(l,JSON.parse(s),o,i==="path"),[l,s,o,i])}function Fb(l,i){return lv(l,i)}function lv(l,i,c,o){var z;Ue(xr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=b.useContext(Kt),{matches:f}=b.useContext(mn),p=f[f.length-1],h=p?p.params:{},v=p?p.pathname:"/",m=p?p.pathnameBase:"/",x=p&&p.route;{let L=x&&x.path||"";rv(v,!x||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let C=pa(),T;if(i){let L=typeof i=="string"?dl(i):i;Ue(m==="/"||((z=L.pathname)==null?void 0:z.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${L.pathname}" was given in the \`location\` prop.`),T=L}else T=C;let k=T.pathname||"/",M=k;if(m!=="/"){let L=m.replace(/^\//,"").split("/");M="/"+k.replace(/^\//,"").split("/").slice(L.length).join("/")}let A=$m(l,{pathname:M});Zt(x||A!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),Zt(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=t0(A&&A.map(L=>Object.assign({},L,{params:Object.assign({},h,L.params),pathname:dn([m,s.encodeLocation?s.encodeLocation(L.pathname).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?m:dn([m,s.encodeLocation?s.encodeLocation(L.pathnameBase).pathname:L.pathnameBase])})),f,c,o);return i&&_?b.createElement(br.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},_):_}function Pb(){let l=u0(),i=Vb(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),c=l instanceof Error?l.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},p=null;return console.error("Error handled by React Router default ErrorBoundary:",l),p=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},i),c?b.createElement("pre",{style:s},c):null,p)}var Wb=b.createElement(Pb,null),Ib=class extends b.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){console.error("React Router caught the following error during render",l,i)}render(){return this.state.error!==void 0?b.createElement(mn.Provider,{value:this.props.routeContext},b.createElement(Pc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function e0({routeContext:l,match:i,children:c}){let o=b.useContext(hl);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),b.createElement(mn.Provider,{value:l},c)}function t0(l,i=[],c=null,o=null){if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let s=l,f=c==null?void 0:c.errors;if(f!=null){let v=s.findIndex(m=>m.route.id&&(f==null?void 0:f[m.route.id])!==void 0);Ue(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),s=s.slice(0,Math.min(s.length,v+1))}let p=!1,h=-1;if(c)for(let v=0;v<s.length;v++){let m=s[v];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=v),m.route.id){let{loaderData:x,errors:C}=c,T=m.route.loader&&!x.hasOwnProperty(m.route.id)&&(!C||C[m.route.id]===void 0);if(m.route.lazy||T){p=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((v,m,x)=>{let C,T=!1,k=null,M=null;c&&(C=f&&m.route.id?f[m.route.id]:void 0,k=m.route.errorElement||Wb,p&&(h<0&&x===0?(rv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,M=null):h===x&&(T=!0,M=m.route.hydrateFallbackElement||null)));let A=i.concat(s.slice(0,x+1)),_=()=>{let z;return C?z=k:T?z=M:m.route.Component?z=b.createElement(m.route.Component,null):m.route.element?z=m.route.element:z=v,b.createElement(e0,{match:m,routeContext:{outlet:v,matches:A,isDataRoute:c!=null},children:z})};return c&&(m.route.ErrorBoundary||m.route.errorElement||x===0)?b.createElement(Ib,{location:c.location,revalidation:c.revalidation,component:k,error:C,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):_()},null)}function Wc(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function n0(l){let i=b.useContext(hl);return Ue(i,Wc(l)),i}function a0(l){let i=b.useContext(ei);return Ue(i,Wc(l)),i}function l0(l){let i=b.useContext(mn);return Ue(i,Wc(l)),i}function Ic(l){let i=l0(l),c=i.matches[i.matches.length-1];return Ue(c.route.id,`${l} can only be used on routes that contain a unique "id"`),c.route.id}function r0(){return Ic("useRouteId")}function u0(){var o;let l=b.useContext(Pc),i=a0("useRouteError"),c=Ic("useRouteError");return l!==void 0?l:(o=i.errors)==null?void 0:o[c]}function i0(){let{router:l}=n0("useNavigate"),i=Ic("useNavigate"),c=b.useRef(!1);return av(()=>{c.current=!0}),b.useCallback(async(s,f={})=>{Zt(c.current,nv),c.current&&(typeof s=="number"?l.navigate(s):await l.navigate(s,{fromRouteId:i,...f}))},[l,i])}var vm={};function rv(l,i,c){!i&&!vm[l]&&(vm[l]=!0,Zt(!1,c))}b.memo(o0);function o0({routes:l,future:i,state:c}){return lv(l,void 0,c,i)}function da(l){Ue(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function c0({basename:l="/",children:i=null,location:c,navigationType:o="POP",navigator:s,static:f=!1}){Ue(!xr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=l.replace(/^\/*/,"/"),h=b.useMemo(()=>({basename:p,navigator:s,static:f,future:{}}),[p,s,f]);typeof c=="string"&&(c=dl(c));let{pathname:v="/",search:m="",hash:x="",state:C=null,key:T="default"}=c,k=b.useMemo(()=>{let M=hn(v,p);return M==null?null:{location:{pathname:M,search:m,hash:x,state:C,key:T},navigationType:o}},[p,v,m,x,C,T,o]);return Zt(k!=null,`<Router basename="${p}"> is not able to match the URL "${v}${m}${x}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:b.createElement(Kt.Provider,{value:h},b.createElement(br.Provider,{children:i,value:k}))}function s0({children:l,location:i}){return Fb(Yc(l),i)}function Yc(l,i=[]){let c=[];return b.Children.forEach(l,(o,s)=>{if(!b.isValidElement(o))return;let f=[...i,s];if(o.type===b.Fragment){c.push.apply(c,Yc(o.props.children,f));return}Ue(o.type===da,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ue(!o.props.index||!o.props.children,"An index route cannot have child routes.");let p={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(p.children=Yc(o.props.children,f)),c.push(p)}),c}var Qu="get",Zu="application/x-www-form-urlencoded";function ti(l){return l!=null&&typeof l.tagName=="string"}function f0(l){return ti(l)&&l.tagName.toLowerCase()==="button"}function d0(l){return ti(l)&&l.tagName.toLowerCase()==="form"}function h0(l){return ti(l)&&l.tagName.toLowerCase()==="input"}function m0(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function v0(l,i){return l.button===0&&(!i||i==="_self")&&!m0(l)}var Lu=null;function p0(){if(Lu===null)try{new FormData(document.createElement("form"),0),Lu=!1}catch{Lu=!0}return Lu}var g0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tc(l){return l!=null&&!g0.has(l)?(Zt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zu}"`),null):l}function y0(l,i){let c,o,s,f,p;if(d0(l)){let h=l.getAttribute("action");o=h?hn(h,i):null,c=l.getAttribute("method")||Qu,s=Tc(l.getAttribute("enctype"))||Zu,f=new FormData(l)}else if(f0(l)||h0(l)&&(l.type==="submit"||l.type==="image")){let h=l.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||h.getAttribute("action");if(o=v?hn(v,i):null,c=l.getAttribute("formmethod")||h.getAttribute("method")||Qu,s=Tc(l.getAttribute("formenctype"))||Tc(h.getAttribute("enctype"))||Zu,f=new FormData(h,l),!p0()){let{name:m,type:x,value:C}=l;if(x==="image"){let T=m?`${m}.`:"";f.append(`${T}x`,"0"),f.append(`${T}y`,"0")}else m&&f.append(m,C)}}else{if(ti(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Qu,o=null,s=Zu,p=l}return f&&s==="text/plain"&&(p=f,f=void 0),{action:o,method:c.toLowerCase(),encType:s,formData:f,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function es(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function b0(l,i,c){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return o.pathname==="/"?o.pathname=`_root.${c}`:i&&hn(o.pathname,i)==="/"?o.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${c}`,o}async function x0(l,i){if(l.id in i)return i[l.id];try{let c=await import(l.module);return i[l.id]=c,c}catch(c){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function S0(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function E0(l,i,c){let o=await Promise.all(l.map(async s=>{let f=i.routes[s.route.id];if(f){let p=await x0(f,c);return p.links?p.links():[]}return[]}));return T0(o.flat(1).filter(S0).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function pm(l,i,c,o,s,f){let p=(v,m)=>c[m]?v.route.id!==c[m].route.id:!0,h=(v,m)=>{var x;return c[m].pathname!==v.pathname||((x=c[m].route.path)==null?void 0:x.endsWith("*"))&&c[m].params["*"]!==v.params["*"]};return f==="assets"?i.filter((v,m)=>p(v,m)||h(v,m)):f==="data"?i.filter((v,m)=>{var C;let x=o.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(p(v,m)||h(v,m))return!0;if(v.route.shouldRevalidate){let T=v.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((C=c[0])==null?void 0:C.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof T=="boolean")return T}return!0}):[]}function R0(l,i,{includeHydrateFallback:c}={}){return C0(l.map(o=>{let s=i.routes[o.route.id];if(!s)return[];let f=[s.module];return s.clientActionModule&&(f=f.concat(s.clientActionModule)),s.clientLoaderModule&&(f=f.concat(s.clientLoaderModule)),c&&s.hydrateFallbackModule&&(f=f.concat(s.hydrateFallbackModule)),s.imports&&(f=f.concat(s.imports)),f}).flat(1))}function C0(l){return[...new Set(l)]}function A0(l){let i={},c=Object.keys(l).sort();for(let o of c)i[o]=l[o];return i}function T0(l,i){let c=new Set;return new Set(i),l.reduce((o,s)=>{let f=JSON.stringify(A0(s));return c.has(f)||(c.add(f),o.push({key:f,link:s})),o},[])}function uv(){let l=b.useContext(hl);return es(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function w0(){let l=b.useContext(ei);return es(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var ts=b.createContext(void 0);ts.displayName="FrameworkContext";function iv(){let l=b.useContext(ts);return es(l,"You must render this element inside a <HydratedRouter> element"),l}function N0(l,i){let c=b.useContext(ts),[o,s]=b.useState(!1),[f,p]=b.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:m,onMouseLeave:x,onTouchStart:C}=i,T=b.useRef(null);b.useEffect(()=>{if(l==="render"&&p(!0),l==="viewport"){let A=z=>{z.forEach(L=>{p(L.isIntersecting)})},_=new IntersectionObserver(A,{threshold:.5});return T.current&&_.observe(T.current),()=>{_.disconnect()}}},[l]),b.useEffect(()=>{if(o){let A=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(A)}}},[o]);let k=()=>{s(!0)},M=()=>{s(!1),p(!1)};return c?l!=="intent"?[f,T,{}]:[f,T,{onFocus:mr(h,k),onBlur:mr(v,M),onMouseEnter:mr(m,k),onMouseLeave:mr(x,M),onTouchStart:mr(C,k)}]:[!1,T,{}]}function mr(l,i){return c=>{l&&l(c),c.defaultPrevented||i(c)}}function _0({page:l,...i}){let{router:c}=uv(),o=b.useMemo(()=>$m(c.routes,l,c.basename),[c.routes,l,c.basename]);return o?b.createElement(M0,{page:l,matches:o,...i}):null}function O0(l){let{manifest:i,routeModules:c}=iv(),[o,s]=b.useState([]);return b.useEffect(()=>{let f=!1;return E0(l,i,c).then(p=>{f||s(p)}),()=>{f=!0}},[l,i,c]),o}function M0({page:l,matches:i,...c}){let o=pa(),{manifest:s,routeModules:f}=iv(),{basename:p}=uv(),{loaderData:h,matches:v}=w0(),m=b.useMemo(()=>pm(l,i,v,s,o,"data"),[l,i,v,s,o]),x=b.useMemo(()=>pm(l,i,v,s,o,"assets"),[l,i,v,s,o]),C=b.useMemo(()=>{if(l===o.pathname+o.search+o.hash)return[];let M=new Set,A=!1;if(i.forEach(z=>{var Y;let L=s.routes[z.route.id];!L||!L.hasLoader||(!m.some(H=>H.route.id===z.route.id)&&z.route.id in h&&((Y=f[z.route.id])!=null&&Y.shouldRevalidate)||L.hasClientLoader?A=!0:M.add(z.route.id))}),M.size===0)return[];let _=b0(l,p,"data");return A&&M.size>0&&_.searchParams.set("_routes",i.filter(z=>M.has(z.route.id)).map(z=>z.route.id).join(",")),[_.pathname+_.search]},[p,h,o,s,m,i,l,f]),T=b.useMemo(()=>R0(x,s),[x,s]),k=O0(x);return b.createElement(b.Fragment,null,C.map(M=>b.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...c})),T.map(M=>b.createElement("link",{key:M,rel:"modulepreload",href:M,...c})),k.map(({key:M,link:A})=>b.createElement("link",{key:M,...A})))}function D0(...l){return i=>{l.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var ov=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ov&&(window.__reactRouterVersion="7.7.1")}catch{}function j0({basename:l,children:i,window:c}){let o=b.useRef();o.current==null&&(o.current=xb({window:c,v5Compat:!0}));let s=o.current,[f,p]=b.useState({action:s.action,location:s.location}),h=b.useCallback(v=>{b.startTransition(()=>p(v))},[p]);return b.useLayoutEffect(()=>s.listen(h),[s,h]),b.createElement(c0,{basename:l,children:i,location:f.location,navigationType:f.action,navigator:s})}var cv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ha=b.forwardRef(function({onClick:i,discover:c="render",prefetch:o="none",relative:s,reloadDocument:f,replace:p,state:h,target:v,to:m,preventScrollReset:x,viewTransition:C,...T},k){let{basename:M}=b.useContext(Kt),A=typeof m=="string"&&cv.test(m),_,z=!1;if(typeof m=="string"&&A&&(_=m,ov))try{let re=new URL(window.location.href),xe=m.startsWith("//")?new URL(re.protocol+m):new URL(m),De=hn(xe.pathname,M);xe.origin===re.origin&&De!=null?m=De+xe.search+xe.hash:z=!0}catch{Zt(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let L=Kb(m,{relative:s}),[Y,H,V]=N0(o,T),te=L0(m,{replace:p,state:h,target:v,preventScrollReset:x,relative:s,viewTransition:C});function $(re){i&&i(re),re.defaultPrevented||te(re)}let Q=b.createElement("a",{...T,...V,href:_||L,onClick:z||f?i:$,ref:D0(k,H),target:v,"data-discover":!A&&c==="render"?"true":void 0});return Y&&!A?b.createElement(b.Fragment,null,Q,b.createElement(_0,{page:L})):Q});ha.displayName="Link";var z0=b.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:o="",end:s=!1,style:f,to:p,viewTransition:h,children:v,...m},x){let C=Sr(p,{relative:m.relative}),T=pa(),k=b.useContext(ei),{navigator:M,basename:A}=b.useContext(Kt),_=k!=null&&Y0(C)&&h===!0,z=M.encodeLocation?M.encodeLocation(C).pathname:C.pathname,L=T.pathname,Y=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;c||(L=L.toLowerCase(),Y=Y?Y.toLowerCase():null,z=z.toLowerCase()),Y&&A&&(Y=hn(Y,A)||Y);const H=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let V=L===z||!s&&L.startsWith(z)&&L.charAt(H)==="/",te=Y!=null&&(Y===z||!s&&Y.startsWith(z)&&Y.charAt(z.length)==="/"),$={isActive:V,isPending:te,isTransitioning:_},Q=V?i:void 0,re;typeof o=="function"?re=o($):re=[o,V?"active":null,te?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let xe=typeof f=="function"?f($):f;return b.createElement(ha,{...m,"aria-current":Q,className:re,ref:x,style:xe,to:p,viewTransition:h},typeof v=="function"?v($):v)});z0.displayName="NavLink";var U0=b.forwardRef(({discover:l="render",fetcherKey:i,navigate:c,reloadDocument:o,replace:s,state:f,method:p=Qu,action:h,onSubmit:v,relative:m,preventScrollReset:x,viewTransition:C,...T},k)=>{let M=G0(),A=q0(h,{relative:m}),_=p.toLowerCase()==="get"?"get":"post",z=typeof h=="string"&&cv.test(h),L=Y=>{if(v&&v(Y),Y.defaultPrevented)return;Y.preventDefault();let H=Y.nativeEvent.submitter,V=(H==null?void 0:H.getAttribute("formmethod"))||p;M(H||Y.currentTarget,{fetcherKey:i,method:V,navigate:c,replace:s,state:f,relative:m,preventScrollReset:x,viewTransition:C})};return b.createElement("form",{ref:k,method:_,action:A,onSubmit:o?v:L,...T,"data-discover":!z&&l==="render"?"true":void 0})});U0.displayName="Form";function k0(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function sv(l){let i=b.useContext(hl);return Ue(i,k0(l)),i}function L0(l,{target:i,replace:c,state:o,preventScrollReset:s,relative:f,viewTransition:p}={}){let h=Jb(),v=pa(),m=Sr(l,{relative:f});return b.useCallback(x=>{if(v0(x,i)){x.preventDefault();let C=c!==void 0?c:gr(v)===gr(m);h(l,{replace:C,state:o,preventScrollReset:s,relative:f,viewTransition:p})}},[v,h,m,c,o,i,l,s,f,p])}var H0=0,B0=()=>`__${String(++H0)}__`;function G0(){let{router:l}=sv("useSubmit"),{basename:i}=b.useContext(Kt),c=r0();return b.useCallback(async(o,s={})=>{let{action:f,method:p,encType:h,formData:v,body:m}=y0(o,i);if(s.navigate===!1){let x=s.fetcherKey||B0();await l.fetch(x,c,s.action||f,{preventScrollReset:s.preventScrollReset,formData:v,body:m,formMethod:s.method||p,formEncType:s.encType||h,flushSync:s.flushSync})}else await l.navigate(s.action||f,{preventScrollReset:s.preventScrollReset,formData:v,body:m,formMethod:s.method||p,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:c,flushSync:s.flushSync,viewTransition:s.viewTransition})},[l,i,c])}function q0(l,{relative:i}={}){let{basename:c}=b.useContext(Kt),o=b.useContext(mn);Ue(o,"useFormAction must be used inside a RouteContext");let[s]=o.matches.slice(-1),f={...Sr(l||".",{relative:i})},p=pa();if(l==null){f.search=p.search;let h=new URLSearchParams(f.search),v=h.getAll("index");if(v.some(x=>x==="")){h.delete("index"),v.filter(C=>C).forEach(C=>h.append("index",C));let x=h.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&s.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:dn([c,f.pathname])),gr(f)}function Y0(l,{relative:i}={}){let c=b.useContext(tv);Ue(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=sv("useViewTransitionState"),s=Sr(l,{relative:i});if(!c.isTransitioning)return!1;let f=hn(c.currentLocation.pathname,o)||c.currentLocation.pathname,p=hn(c.nextLocation.pathname,o)||c.nextLocation.pathname;return $u(s.pathname,p)!=null||$u(s.pathname,f)!=null}var wc={exports:{}},lt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gm;function V0(){if(gm)return lt;gm=1;var l=Fc();function i(v){var m="https://react.dev/errors/"+v;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(v,m,x){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:C==null?null:""+C,children:v,containerInfo:m,implementation:x}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,m){if(v==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,lt.createPortal=function(v,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(v,m,null,x)},lt.flushSync=function(v){var m=p.T,x=o.p;try{if(p.T=null,o.p=2,v)return v()}finally{p.T=m,o.p=x,o.d.f()}},lt.preconnect=function(v,m){typeof v=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(v,m))},lt.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},lt.preinit=function(v,m){if(typeof v=="string"&&m&&typeof m.as=="string"){var x=m.as,C=h(x,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,k=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?o.d.S(v,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:C,integrity:T,fetchPriority:k}):x==="script"&&o.d.X(v,{crossOrigin:C,integrity:T,fetchPriority:k,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},lt.preinitModule=function(v,m){if(typeof v=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=h(m.as,m.crossOrigin);o.d.M(v,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(v)},lt.preload=function(v,m){if(typeof v=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,C=h(x,m.crossOrigin);o.d.L(v,x,{crossOrigin:C,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},lt.preloadModule=function(v,m){if(typeof v=="string")if(m){var x=h(m.as,m.crossOrigin);o.d.m(v,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(v)},lt.requestFormReset=function(v){o.d.r(v)},lt.unstable_batchedUpdates=function(v,m){return v(m)},lt.useFormState=function(v,m,x){return p.H.useFormState(v,m,x)},lt.useFormStatus=function(){return p.H.useHostTransitionStatus()},lt.version="19.1.0",lt}var ym;function fv(){if(ym)return wc.exports;ym=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),wc.exports=V0(),wc.exports}var dv=fv();const X0=Km(dv);var Nc={exports:{}},vr={},_c={exports:{}},Oc={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bm;function Q0(){return bm||(bm=1,function(l){function i(U,J){var Z=U.length;U.push(J);e:for(;0<Z;){var be=Z-1>>>1,E=U[be];if(0<s(E,J))U[be]=J,U[Z]=E,Z=be;else break e}}function c(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var J=U[0],Z=U.pop();if(Z!==J){U[0]=Z;e:for(var be=0,E=U.length,X=E>>>1;be<X;){var F=2*(be+1)-1,K=U[F],P=F+1,de=U[P];if(0>s(K,Z))P<E&&0>s(de,K)?(U[be]=de,U[P]=Z,be=P):(U[be]=K,U[F]=Z,be=F);else if(P<E&&0>s(de,Z))U[be]=de,U[P]=Z,be=P;else break e}}return J}function s(U,J){var Z=U.sortIndex-J.sortIndex;return Z!==0?Z:U.id-J.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();l.unstable_now=function(){return p.now()-h}}var v=[],m=[],x=1,C=null,T=3,k=!1,M=!1,A=!1,_=!1,z=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function H(U){for(var J=c(m);J!==null;){if(J.callback===null)o(m);else if(J.startTime<=U)o(m),J.sortIndex=J.expirationTime,i(v,J);else break;J=c(m)}}function V(U){if(A=!1,H(U),!M)if(c(v)!==null)M=!0,te||(te=!0,je());else{var J=c(m);J!==null&&_e(V,J.startTime-U)}}var te=!1,$=-1,Q=5,re=-1;function xe(){return _?!0:!(l.unstable_now()-re<Q)}function De(){if(_=!1,te){var U=l.unstable_now();re=U;var J=!0;try{e:{M=!1,A&&(A=!1,L($),$=-1),k=!0;var Z=T;try{t:{for(H(U),C=c(v);C!==null&&!(C.expirationTime>U&&xe());){var be=C.callback;if(typeof be=="function"){C.callback=null,T=C.priorityLevel;var E=be(C.expirationTime<=U);if(U=l.unstable_now(),typeof E=="function"){C.callback=E,H(U),J=!0;break t}C===c(v)&&o(v),H(U)}else o(v);C=c(v)}if(C!==null)J=!0;else{var X=c(m);X!==null&&_e(V,X.startTime-U),J=!1}}break e}finally{C=null,T=Z,k=!1}J=void 0}}finally{J?je():te=!1}}}var je;if(typeof Y=="function")je=function(){Y(De)};else if(typeof MessageChannel<"u"){var Et=new MessageChannel,Rt=Et.port2;Et.port1.onmessage=De,je=function(){Rt.postMessage(null)}}else je=function(){z(De,0)};function _e(U,J){$=z(function(){U(l.unstable_now())},J)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(U){U.callback=null},l.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return T},l.unstable_next=function(U){switch(T){case 1:case 2:case 3:var J=3;break;default:J=T}var Z=T;T=J;try{return U()}finally{T=Z}},l.unstable_requestPaint=function(){_=!0},l.unstable_runWithPriority=function(U,J){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Z=T;T=U;try{return J()}finally{T=Z}},l.unstable_scheduleCallback=function(U,J,Z){var be=l.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?be+Z:be):Z=be,U){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=Z+E,U={id:x++,callback:J,priorityLevel:U,startTime:Z,expirationTime:E,sortIndex:-1},Z>be?(U.sortIndex=Z,i(m,U),c(v)===null&&U===c(m)&&(A?(L($),$=-1):A=!0,_e(V,Z-be))):(U.sortIndex=E,i(v,U),M||k||(M=!0,te||(te=!0,je()))),U},l.unstable_shouldYield=xe,l.unstable_wrapCallback=function(U){var J=T;return function(){var Z=T;T=J;try{return U.apply(this,arguments)}finally{T=Z}}}}(Oc)),Oc}var xm;function Z0(){return xm||(xm=1,_c.exports=Q0()),_c.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Sm;function K0(){if(Sm)return vr;Sm=1;var l=Z0(),i=Fc(),c=fv();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return h(r),e;if(u===a)return h(r),t;u=u.sibling}throw Error(o(188))}if(n.return!==a.return)n=r,a=u;else{for(var d=!1,g=r.child;g;){if(g===n){d=!0,n=r,a=u;break}if(g===a){d=!0,a=r,n=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===n){d=!0,n=u,a=r;break}if(g===a){d=!0,a=u,n=r;break}g=g.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,C=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),De=Symbol.iterator;function je(e){return e===null||typeof e!="object"?null:(e=De&&e[De]||e["@@iterator"],typeof e=="function"?e:null)}var Et=Symbol.for("react.client.reference");function Rt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Et?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case _:return"Profiler";case A:return"StrictMode";case V:return"Suspense";case te:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case Y:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:Rt(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return Rt(e(t))}catch{}}return null}var _e=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},be=[],E=-1;function X(e){return{current:e}}function F(e){0>E||(e.current=be[E],be[E]=null,E--)}function K(e,t){E++,be[E]=e.current,e.current=t}var P=X(null),de=X(null),ie=X(null),pe=X(null);function Te(e,t){switch(K(ie,t),K(de,e),K(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?kh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=kh(t),e=Lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(P),K(P,e)}function dt(){F(P),F(de),F(ie)}function vn(e){e.memoizedState!==null&&K(pe,e);var t=P.current,n=Lh(t,e.type);t!==n&&(K(de,e),K(P,n))}function pn(e){de.current===e&&(F(P),F(de)),pe.current===e&&(F(pe),or._currentValue=Z)}var gn=Object.prototype.hasOwnProperty,ci=l.unstable_scheduleCallback,si=l.unstable_cancelCallback,Jp=l.unstable_shouldYield,$p=l.unstable_requestPaint,Bt=l.unstable_now,Fp=l.unstable_getCurrentPriorityLevel,vs=l.unstable_ImmediatePriority,ps=l.unstable_UserBlockingPriority,Rr=l.unstable_NormalPriority,Pp=l.unstable_LowPriority,gs=l.unstable_IdlePriority,Wp=l.log,Ip=l.unstable_setDisableYieldValue,pl=null,ht=null;function yn(e){if(typeof Wp=="function"&&Ip(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(pl,e)}catch{}}var mt=Math.clz32?Math.clz32:ng,eg=Math.log,tg=Math.LN2;function ng(e){return e>>>=0,e===0?32:31-(eg(e)/tg|0)|0}var Cr=256,Ar=4194304;function Kn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Tr(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,u=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=a&134217727;return g!==0?(a=g&~u,a!==0?r=Kn(a):(d&=g,d!==0?r=Kn(d):n||(n=g&~e,n!==0&&(r=Kn(n))))):(g=a&~u,g!==0?r=Kn(g):d!==0?r=Kn(d):n||(n=a&~e,n!==0&&(r=Kn(n)))),r===0?0:t!==0&&t!==r&&(t&u)===0&&(u=r&-r,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:r}function gl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ag(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ys(){var e=Cr;return Cr<<=1,(Cr&4194048)===0&&(Cr=256),e}function bs(){var e=Ar;return Ar<<=1,(Ar&62914560)===0&&(Ar=4194304),e}function fi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lg(e,t,n,a,r,u){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,S=e.expirationTimes,O=e.hiddenUpdates;for(n=d&~n;0<n;){var B=31-mt(n),q=1<<B;g[B]=0,S[B]=-1;var D=O[B];if(D!==null)for(O[B]=null,B=0;B<D.length;B++){var j=D[B];j!==null&&(j.lane&=-536870913)}n&=~q}a!==0&&xs(e,a,0),u!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=u&~(d&~t))}function xs(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-mt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194090}function Ss(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-mt(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function di(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function hi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Es(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:nm(e.type))}function rg(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var bn=Math.random().toString(36).slice(2),nt="__reactFiber$"+bn,ut="__reactProps$"+bn,ba="__reactContainer$"+bn,mi="__reactEvents$"+bn,ug="__reactListeners$"+bn,ig="__reactHandles$"+bn,Rs="__reactResources$"+bn,bl="__reactMarker$"+bn;function vi(e){delete e[nt],delete e[ut],delete e[mi],delete e[ug],delete e[ig]}function xa(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ba]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=qh(e);e!==null;){if(n=e[nt])return n;e=qh(e)}return t}e=n,n=e.parentNode}return null}function Sa(e){if(e=e[nt]||e[ba]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function xl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Ea(e){var t=e[Rs];return t||(t=e[Rs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[bl]=!0}var Cs=new Set,As={};function Jn(e,t){Ra(e,t),Ra(e+"Capture",t)}function Ra(e,t){for(As[e]=t,e=0;e<t.length;e++)Cs.add(t[e])}var og=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]*$"),Ts={},ws={};function cg(e){return gn.call(ws,e)?!0:gn.call(Ts,e)?!1:og.test(e)?ws[e]=!0:(Ts[e]=!0,!1)}function wr(e,t,n){if(cg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Nr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Jt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}var pi,Ns;function Ca(e){if(pi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pi=t&&t[1]||"",Ns=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+pi+e+Ns}var gi=!1;function yi(e,t){if(!e||gi)return"";gi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){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(j){var D=j}Reflect.construct(e,[],q)}else{try{q.call()}catch(j){D=j}e.call(q.prototype)}}else{try{throw Error()}catch(j){D=j}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(j){if(j&&D&&typeof j.stack=="string")return[j.stack,D.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),d=u[0],g=u[1];if(d&&g){var S=d.split(`
`),O=g.split(`
`);for(r=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;if(a===S.length||r===O.length)for(a=S.length-1,r=O.length-1;1<=a&&0<=r&&S[a]!==O[r];)r--;for(;1<=a&&0<=r;a--,r--)if(S[a]!==O[r]){if(a!==1||r!==1)do if(a--,r--,0>r||S[a]!==O[r]){var B=`
`+S[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=r);break}}}finally{gi=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ca(n):""}function sg(e){switch(e.tag){case 26:case 27:case 5:return Ca(e.type);case 16:return Ca("Lazy");case 13:return Ca("Suspense");case 19:return Ca("SuspenseList");case 0:case 15:return yi(e.type,!1);case 11:return yi(e.type.render,!1);case 1:return yi(e.type,!0);case 31:return Ca("Activity");default:return""}}function _s(e){try{var t="";do t+=sg(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Os(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fg(e){var t=Os(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){a=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _r(e){e._valueTracker||(e._valueTracker=fg(e))}function Ms(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Os(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Or(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dg=/[\n"\\]/g;function At(e){return e.replace(dg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bi(e,t,n,a,r,u,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?xi(e,d,Ct(t)):n!=null?xi(e,d,Ct(n)):a!=null&&e.removeAttribute("value"),r==null&&u!=null&&(e.defaultChecked=!!u),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Ct(g):e.removeAttribute("name")}function Ds(e,t,n,a,r,u,d,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null))return;n=n!=null?""+Ct(n):"",t=t!=null?""+Ct(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=g?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d)}function xi(e,t,n){t==="number"&&Or(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Aa(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Ct(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function js(e,t,n){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ct(n):""}function zs(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(o(92));if(_e(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Ct(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function Ta(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hg=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 Us(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||hg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ks(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&Us(e,r,a)}else for(var u in t)t.hasOwnProperty(u)&&Us(e,u,t[u])}function Si(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mg=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"]]),vg=/^[\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 Mr(e){return vg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ei=null;function Ri(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wa=null,Na=null;function Ls(e){var t=Sa(e);if(t&&(e=t.stateNode)){var n=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(bi(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[ut]||null;if(!r)throw Error(o(90));bi(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Ms(a)}break e;case"textarea":js(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Aa(e,!!n.multiple,t,!1)}}}var Ci=!1;function Hs(e,t,n){if(Ci)return e(t,n);Ci=!0;try{var a=e(t);return a}finally{if(Ci=!1,(wa!==null||Na!==null)&&(pu(),wa&&(t=wa,e=Na,Na=wa=null,Ls(t),e)))for(t=0;t<e.length;t++)Ls(e[t])}}function Sl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ut]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ai=!1;if($t)try{var El={};Object.defineProperty(El,"passive",{get:function(){Ai=!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{Ai=!1}var xn=null,Ti=null,Dr=null;function Bs(){if(Dr)return Dr;var e,t=Ti,n=t.length,a,r="value"in xn?xn.value:xn.textContent,u=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===r[u-a];a++);return Dr=r.slice(e,1<a?1-a:void 0)}function jr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zr(){return!0}function Gs(){return!1}function it(e){function t(n,a,r,u,d){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?zr:Gs,this.isPropagationStopped=Gs,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zr)},persist:function(){},isPersistent:zr}),t}var $n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ur=it($n),Rl=x({},$n,{view:0,detail:0}),pg=it(Rl),wi,Ni,Cl,kr=x({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Cl&&(Cl&&e.type==="mousemove"?(wi=e.screenX-Cl.screenX,Ni=e.screenY-Cl.screenY):Ni=wi=0,Cl=e),wi)},movementY:function(e){return"movementY"in e?e.movementY:Ni}}),qs=it(kr),gg=x({},kr,{dataTransfer:0}),yg=it(gg),bg=x({},Rl,{relatedTarget:0}),_i=it(bg),xg=x({},$n,{animationName:0,elapsedTime:0,pseudoElement:0}),Sg=it(xg),Eg=x({},$n,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rg=it(Eg),Cg=x({},$n,{data:0}),Ys=it(Cg),Ag={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tg={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"},wg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ng(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wg[e])?!!t[e]:!1}function Oi(){return Ng}var _g=x({},Rl,{key:function(e){if(e.key){var t=Ag[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oi,charCode:function(e){return e.type==="keypress"?jr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Og=it(_g),Mg=x({},kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vs=it(Mg),Dg=x({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oi}),jg=it(Dg),zg=x({},$n,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ug=it(zg),kg=x({},kr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lg=it(kg),Hg=x({},$n,{newState:0,oldState:0}),Bg=it(Hg),Gg=[9,13,27,32],Mi=$t&&"CompositionEvent"in window,Al=null;$t&&"documentMode"in document&&(Al=document.documentMode);var qg=$t&&"TextEvent"in window&&!Al,Xs=$t&&(!Mi||Al&&8<Al&&11>=Al),Qs=" ",Zs=!1;function Ks(e,t){switch(e){case"keyup":return Gg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Js(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _a=!1;function Yg(e,t){switch(e){case"compositionend":return Js(t);case"keypress":return t.which!==32?null:(Zs=!0,Qs);case"textInput":return e=t.data,e===Qs&&Zs?null:e;default:return null}}function Vg(e,t){if(_a)return e==="compositionend"||!Mi&&Ks(e,t)?(e=Bs(),Dr=Ti=xn=null,_a=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xs&&t.locale!=="ko"?null:t.data;default:return null}}var Xg={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 $s(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xg[e.type]:t==="textarea"}function Fs(e,t,n,a){wa?Na?Na.push(a):Na=[a]:wa=a,t=Eu(t,"onChange"),0<t.length&&(n=new Ur("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Tl=null,wl=null;function Qg(e){Mh(e,0)}function Lr(e){var t=xl(e);if(Ms(t))return e}function Ps(e,t){if(e==="change")return t}var Ws=!1;if($t){var Di;if($t){var ji="oninput"in document;if(!ji){var Is=document.createElement("div");Is.setAttribute("oninput","return;"),ji=typeof Is.oninput=="function"}Di=ji}else Di=!1;Ws=Di&&(!document.documentMode||9<document.documentMode)}function ef(){Tl&&(Tl.detachEvent("onpropertychange",tf),wl=Tl=null)}function tf(e){if(e.propertyName==="value"&&Lr(wl)){var t=[];Fs(t,wl,e,Ri(e)),Hs(Qg,t)}}function Zg(e,t,n){e==="focusin"?(ef(),Tl=t,wl=n,Tl.attachEvent("onpropertychange",tf)):e==="focusout"&&ef()}function Kg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lr(wl)}function Jg(e,t){if(e==="click")return Lr(t)}function $g(e,t){if(e==="input"||e==="change")return Lr(t)}function Fg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Fg;function Nl(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!gn.call(t,r)||!vt(e[r],t[r]))return!1}return!0}function nf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function af(e,t){var n=nf(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nf(n)}}function lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Or(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Or(e.document)}return t}function zi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Pg=$t&&"documentMode"in document&&11>=document.documentMode,Oa=null,Ui=null,_l=null,ki=!1;function uf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ki||Oa==null||Oa!==Or(a)||(a=Oa,"selectionStart"in a&&zi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),_l&&Nl(_l,a)||(_l=a,a=Eu(Ui,"onSelect"),0<a.length&&(t=new Ur("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Oa)))}function Fn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ma={animationend:Fn("Animation","AnimationEnd"),animationiteration:Fn("Animation","AnimationIteration"),animationstart:Fn("Animation","AnimationStart"),transitionrun:Fn("Transition","TransitionRun"),transitionstart:Fn("Transition","TransitionStart"),transitioncancel:Fn("Transition","TransitionCancel"),transitionend:Fn("Transition","TransitionEnd")},Li={},of={};$t&&(of=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function Pn(e){if(Li[e])return Li[e];if(!Ma[e])return e;var t=Ma[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in of)return Li[e]=t[n];return e}var cf=Pn("animationend"),sf=Pn("animationiteration"),ff=Pn("animationstart"),Wg=Pn("transitionrun"),Ig=Pn("transitionstart"),ey=Pn("transitioncancel"),df=Pn("transitionend"),hf=new Map,Hi="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(" ");Hi.push("scrollEnd");function zt(e,t){hf.set(e,t),Jn(t,[e])}var mf=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var n=mf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:_s(t)},mf.set(e,t),t)}return{value:e,source:t,stack:_s(t)}}var wt=[],Da=0,Bi=0;function Hr(){for(var e=Da,t=Bi=Da=0;t<e;){var n=wt[t];wt[t++]=null;var a=wt[t];wt[t++]=null;var r=wt[t];wt[t++]=null;var u=wt[t];if(wt[t++]=null,a!==null&&r!==null){var d=a.pending;d===null?r.next=r:(r.next=d.next,d.next=r),a.pending=r}u!==0&&vf(n,r,u)}}function Br(e,t,n,a){wt[Da++]=e,wt[Da++]=t,wt[Da++]=n,wt[Da++]=a,Bi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Gi(e,t,n,a){return Br(e,t,n,a),Gr(e)}function ja(e,t){return Br(e,null,null,t),Gr(e)}function vf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(r=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,r&&t!==null&&(r=31-mt(n),e=u.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),u):null}function Gr(e){if(50<er)throw er=0,Ko=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var za={};function ty(e,t,n,a){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,a){return new ty(e,t,n,a)}function qi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function pf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qr(e,t,n,a,r,u){var d=0;if(a=e,typeof e=="function")qi(e)&&(d=1);else if(typeof e=="string")d=ab(e,n,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=pt(31,n,t,r),e.elementType=re,e.lanes=u,e;case M:return Wn(n.children,r,u,t);case A:d=8,r|=24;break;case _:return e=pt(12,n,t,r|2),e.elementType=_,e.lanes=u,e;case V:return e=pt(13,n,t,r),e.elementType=V,e.lanes=u,e;case te:return e=pt(19,n,t,r),e.elementType=te,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:case Y:d=10;break e;case L:d=9;break e;case H:d=11;break e;case $:d=14;break e;case Q:d=16,a=null;break e}d=29,n=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=pt(d,n,t,r),t.elementType=e,t.type=a,t.lanes=u,t}function Wn(e,t,n,a){return e=pt(7,e,a,t),e.lanes=n,e}function Yi(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Vi(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ua=[],ka=0,Yr=null,Vr=0,Nt=[],_t=0,In=null,Pt=1,Wt="";function ea(e,t){Ua[ka++]=Vr,Ua[ka++]=Yr,Yr=e,Vr=t}function gf(e,t,n){Nt[_t++]=Pt,Nt[_t++]=Wt,Nt[_t++]=In,In=e;var a=Pt;e=Wt;var r=32-mt(a)-1;a&=~(1<<r),n+=1;var u=32-mt(t)+r;if(30<u){var d=r-r%5;u=(a&(1<<d)-1).toString(32),a>>=d,r-=d,Pt=1<<32-mt(t)+r|n<<r|a,Wt=u+e}else Pt=1<<u|n<<r|a,Wt=e}function Xi(e){e.return!==null&&(ea(e,1),gf(e,1,0))}function Qi(e){for(;e===Yr;)Yr=Ua[--ka],Ua[ka]=null,Vr=Ua[--ka],Ua[ka]=null;for(;e===In;)In=Nt[--_t],Nt[_t]=null,Wt=Nt[--_t],Nt[_t]=null,Pt=Nt[--_t],Nt[_t]=null}var rt=null,ke=null,ye=!1,ta=null,Gt=!1,Zi=Error(o(519));function na(e){var t=Error(o(418,""));throw Dl(Tt(t,e)),Zi}function yf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[nt]=e,t[ut]=a,n){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(n=0;n<nr.length;n++)me(nr[n],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),Ds(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),_r(t);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),zs(t,a.value,a.defaultValue,a.children),_r(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Uh(t.textContent,n)?(a.popover!=null&&(me("beforetoggle",t),me("toggle",t)),a.onScroll!=null&&me("scroll",t),a.onScrollEnd!=null&&me("scrollend",t),a.onClick!=null&&(t.onclick=Ru),t=!0):t=!1,t||na(e)}function bf(e){for(rt=e.return;rt;)switch(rt.tag){case 5:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:rt=rt.return}}function Ol(e){if(e!==rt)return!1;if(!ye)return bf(e),ye=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||cc(e.type,e.memoizedProps)),n=!n),n&&ke&&na(e),bf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){ke=kt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}ke=null}}else t===27?(t=ke,kn(e.type)?(e=hc,hc=null,ke=e):ke=t):ke=rt?kt(e.stateNode.nextSibling):null;return!0}function Ml(){ke=rt=null,ye=!1}function xf(){var e=ta;return e!==null&&(st===null?st=e:st.push.apply(st,e),ta=null),e}function Dl(e){ta===null?ta=[e]:ta.push(e)}var Ki=X(null),aa=null,It=null;function Sn(e,t,n){K(Ki,t._currentValue),t._currentValue=n}function en(e){e._currentValue=Ki.current,F(Ki)}function Ji(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function $i(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var u=r.dependencies;if(u!==null){var d=r.child;u=u.firstContext;e:for(;u!==null;){var g=u;u=r;for(var S=0;S<t.length;S++)if(g.context===t[S]){u.lanes|=n,g=u.alternate,g!==null&&(g.lanes|=n),Ji(u.return,n,e),a||(d=null);break e}u=g.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(o(341));d.lanes|=n,u=d.alternate,u!==null&&(u.lanes|=n),Ji(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function jl(e,t,n,a){e=null;for(var r=t,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 d=r.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var g=r.type;vt(r.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(r===pe.current){if(d=r.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(or):e=[or])}r=r.return}e!==null&&$i(t,e,n,a),t.flags|=262144}function Xr(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function la(e){aa=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Sf(aa,e)}function Qr(e,t){return aa===null&&la(e),Sf(e,t)}function Sf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},It===null){if(e===null)throw Error(o(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return n}var ny=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ay=l.unstable_scheduleCallback,ly=l.unstable_NormalPriority,Xe={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fi(){return{controller:new ny,data:new Map,refCount:0}}function zl(e){e.refCount--,e.refCount===0&&ay(ly,function(){e.controller.abort()})}var Ul=null,Pi=0,La=0,Ha=null;function ry(e,t){if(Ul===null){var n=Ul=[];Pi=0,La=ec(),Ha={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Pi++,t.then(Ef,Ef),t}function Ef(){if(--Pi===0&&Ul!==null){Ha!==null&&(Ha.status="fulfilled");var e=Ul;Ul=null,La=0,Ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uy(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var Rf=U.S;U.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&ry(e,t),Rf!==null&&Rf(e,t)};var ra=X(null);function Wi(){var e=ra.current;return e!==null?e:Ne.pooledCache}function Zr(e,t){t===null?K(ra,ra.current):K(ra,t.pool)}function Cf(){var e=Wi();return e===null?null:{parent:Xe._currentValue,pool:e}}var kl=Error(o(460)),Af=Error(o(474)),Kr=Error(o(542)),Ii={then:function(){}};function Tf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jr(){}function wf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Jr,Jr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e;default:if(typeof t.status=="string")t.then(Jr,Jr);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e}throw Ll=t,kl}}var Ll=null;function Nf(){if(Ll===null)throw Error(o(459));var e=Ll;return Ll=null,e}function _f(e){if(e===kl||e===Kr)throw Error(o(483))}var En=!1;function eo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function to(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Rn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Gr(e),vf(e,null,n),t}return Br(e,a,t,n),Gr(e)}function Hl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ss(e,n)}}function no(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?r=u=t:u=u.next=t}else r=u=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ao=!1;function Bl(){if(ao){var e=Ha;if(e!==null)throw e}}function Gl(e,t,n,a){ao=!1;var r=e.updateQueue;En=!1;var u=r.firstBaseUpdate,d=r.lastBaseUpdate,g=r.shared.pending;if(g!==null){r.shared.pending=null;var S=g,O=S.next;S.next=null,d===null?u=O:d.next=O,d=S;var B=e.alternate;B!==null&&(B=B.updateQueue,g=B.lastBaseUpdate,g!==d&&(g===null?B.firstBaseUpdate=O:g.next=O,B.lastBaseUpdate=S))}if(u!==null){var q=r.baseState;d=0,B=O=S=null,g=u;do{var D=g.lane&-536870913,j=D!==g.lane;if(j?(ve&D)===D:(a&D)===D){D!==0&&D===La&&(ao=!0),B!==null&&(B=B.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ue=e,ae=g;D=t;var Ae=n;switch(ae.tag){case 1:if(ue=ae.payload,typeof ue=="function"){q=ue.call(Ae,q,D);break e}q=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=ae.payload,D=typeof ue=="function"?ue.call(Ae,q,D):ue,D==null)break e;q=x({},q,D);break e;case 2:En=!0}}D=g.callback,D!==null&&(e.flags|=64,j&&(e.flags|=8192),j=r.callbacks,j===null?r.callbacks=[D]:j.push(D))}else j={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},B===null?(O=B=j,S=q):B=B.next=j,d|=D;if(g=g.next,g===null){if(g=r.shared.pending,g===null)break;j=g,g=j.next,j.next=null,r.lastBaseUpdate=j,r.shared.pending=null}}while(!0);B===null&&(S=q),r.baseState=S,r.firstBaseUpdate=O,r.lastBaseUpdate=B,u===null&&(r.shared.lanes=0),Dn|=d,e.lanes=d,e.memoizedState=q}}function Of(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Mf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Of(n[e],t)}var Ba=X(null),$r=X(0);function Df(e,t){e=on,K($r,e),K(Ba,t),on=e|t.baseLanes}function lo(){K($r,on),K(Ba,Ba.current)}function ro(){on=$r.current,F(Ba),F($r)}var An=0,ce=null,Re=null,Ye=null,Fr=!1,Ga=!1,ua=!1,Pr=0,ql=0,qa=null,iy=0;function He(){throw Error(o(321))}function uo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vt(e[n],t[n]))return!1;return!0}function io(e,t,n,a,r,u){return An=u,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?vd:pd,ua=!1,u=n(a,r),ua=!1,Ga&&(u=zf(t,n,a,r)),jf(e),u}function jf(e){U.H=au;var t=Re!==null&&Re.next!==null;if(An=0,Ye=Re=ce=null,Fr=!1,ql=0,qa=null,t)throw Error(o(300));e===null||Je||(e=e.dependencies,e!==null&&Xr(e)&&(Je=!0))}function zf(e,t,n,a){ce=e;var r=0;do{if(Ga&&(qa=null),ql=0,Ga=!1,25<=r)throw Error(o(301));if(r+=1,Ye=Re=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=my,u=t(n,a)}while(Ga);return u}function oy(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Yl(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(ce.flags|=1024),t}function oo(){var e=Pr!==0;return Pr=0,e}function co(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function so(e){if(Fr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fr=!1}An=0,Ye=Re=ce=null,Ga=!1,ql=Pr=0,qa=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?ce.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Ve(){if(Re===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ye===null?ce.memoizedState:Ye.next;if(t!==null)Ye=t,Re=e;else{if(e===null)throw ce.alternate===null?Error(o(467)):Error(o(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ye===null?ce.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(e){var t=ql;return ql+=1,qa===null&&(qa=[]),e=wf(qa,e,t),t=ce,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?vd:pd),e}function Wr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yl(e);if(e.$$typeof===Y)return at(e)}throw Error(o(438,String(e)))}function ho(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=fo(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=xe;return t.index++,n}function tn(e,t){return typeof t=="function"?t(e):t}function Ir(e){var t=Ve();return mo(t,Re,e)}function mo(e,t,n){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var r=e.baseQueue,u=a.pending;if(u!==null){if(r!==null){var d=r.next;r.next=u.next,u.next=d}t.baseQueue=r=u,a.pending=null}if(u=e.baseState,r===null)e.memoizedState=u;else{t=r.next;var g=d=null,S=null,O=t,B=!1;do{var q=O.lane&-536870913;if(q!==O.lane?(ve&q)===q:(An&q)===q){var D=O.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),q===La&&(B=!0);else if((An&D)===D){O=O.next,D===La&&(B=!0);continue}else q={lane:0,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(g=S=q,d=u):S=S.next=q,ce.lanes|=D,Dn|=D;q=O.action,ua&&n(u,q),u=O.hasEagerState?O.eagerState:n(u,q)}else D={lane:q,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(g=S=D,d=u):S=S.next=D,ce.lanes|=q,Dn|=q;O=O.next}while(O!==null&&O!==t);if(S===null?d=u:S.next=g,!vt(u,e.memoizedState)&&(Je=!0,B&&(n=Ha,n!==null)))throw n;e.memoizedState=u,e.baseState=d,e.baseQueue=S,a.lastRenderedState=u}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function vo(e){var t=Ve(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,u=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do u=e(u,d.action),d=d.next;while(d!==r);vt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function Uf(e,t,n){var a=ce,r=Ve(),u=ye;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=t();var d=!vt((Re||r).memoizedState,n);d&&(r.memoizedState=n,Je=!0),r=r.queue;var g=Hf.bind(null,a,r,e);if(Vl(2048,8,g,[e]),r.getSnapshot!==t||d||Ye!==null&&Ye.memoizedState.tag&1){if(a.flags|=2048,Ya(9,eu(),Lf.bind(null,a,r,n,t),null),Ne===null)throw Error(o(349));u||(An&124)!==0||kf(a,t,n)}return n}function kf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=fo(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Lf(e,t,n,a){t.value=n,t.getSnapshot=a,Bf(t)&&Gf(e)}function Hf(e,t,n){return n(function(){Bf(t)&&Gf(e)})}function Bf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vt(e,n)}catch{return!0}}function Gf(e){var t=ja(e,2);t!==null&&St(t,e,2)}function po(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),ua){yn(!0);try{n()}finally{yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:e},t}function qf(e,t,n,a){return e.baseState=n,mo(e,Re,typeof a=="function"?a:tn)}function cy(e,t,n,a,r){if(nu(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){u.listeners.push(d)}};U.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,Yf(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Yf(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var u=U.T,d={};U.T=d;try{var g=n(r,a),S=U.S;S!==null&&S(d,g),Vf(e,t,g)}catch(O){go(e,t,O)}finally{U.T=u}}else try{u=n(r,a),Vf(e,t,u)}catch(O){go(e,t,O)}}function Vf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Xf(e,t,a)},function(a){return go(e,t,a)}):Xf(e,t,n)}function Xf(e,t,n){t.status="fulfilled",t.value=n,Qf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yf(e,n)))}function go(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Qf(t),t=t.next;while(t!==a)}e.action=null}function Qf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zf(e,t){return t}function Kf(e,t){if(ye){var n=Ne.formState;if(n!==null){e:{var a=ce;if(ye){if(ke){t:{for(var r=ke,u=Gt;r.nodeType!==8;){if(!u){r=null;break t}if(r=kt(r.nextSibling),r===null){r=null;break t}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){ke=kt(r.nextSibling),a=r.data==="F!";break e}}na(a)}a=!1}a&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zf,lastRenderedState:t},n.queue=a,n=dd.bind(null,ce,a),a.dispatch=n,a=po(!1),u=Eo.bind(null,ce,!1,a.queue),a=ot(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=cy.bind(null,ce,r,u,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Jf(e){var t=Ve();return $f(t,Re,e)}function $f(e,t,n){if(t=mo(e,t,Zf)[0],e=Ir(tn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Yl(t)}catch(d){throw d===kl?Kr:d}else a=t;t=Ve();var r=t.queue,u=r.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,Ya(9,eu(),sy.bind(null,r,n),null)),[a,u,e]}function sy(e,t){e.action=t}function Ff(e){var t=Ve(),n=Re;if(n!==null)return $f(t,n,e);Ve(),t=t.memoizedState,n=Ve();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ya(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=fo(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function eu(){return{destroy:void 0,resource:void 0}}function Pf(){return Ve().memoizedState}function tu(e,t,n,a){var r=ot();a=a===void 0?null:a,ce.flags|=e,r.memoizedState=Ya(1|t,eu(),n,a)}function Vl(e,t,n,a){var r=Ve();a=a===void 0?null:a;var u=r.memoizedState.inst;Re!==null&&a!==null&&uo(a,Re.memoizedState.deps)?r.memoizedState=Ya(t,u,n,a):(ce.flags|=e,r.memoizedState=Ya(1|t,u,n,a))}function Wf(e,t){tu(8390656,8,e,t)}function If(e,t){Vl(2048,8,e,t)}function ed(e,t){return Vl(4,2,e,t)}function td(e,t){return Vl(4,4,e,t)}function nd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ad(e,t,n){n=n!=null?n.concat([e]):null,Vl(4,4,nd.bind(null,t,e),n)}function yo(){}function ld(e,t){var n=Ve();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&uo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function rd(e,t){var n=Ve();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&uo(t,a[1]))return a[0];if(a=e(),ua){yn(!0);try{e()}finally{yn(!1)}}return n.memoizedState=[a,t],a}function bo(e,t,n){return n===void 0||(An&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=oh(),ce.lanes|=e,Dn|=e,n)}function ud(e,t,n,a){return vt(n,t)?n:Ba.current!==null?(e=bo(e,n,a),vt(e,t)||(Je=!0),e):(An&42)===0?(Je=!0,e.memoizedState=n):(e=oh(),ce.lanes|=e,Dn|=e,t)}function id(e,t,n,a,r){var u=J.p;J.p=u!==0&&8>u?u:8;var d=U.T,g={};U.T=g,Eo(e,!1,t,n);try{var S=r(),O=U.S;if(O!==null&&O(g,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var B=uy(S,a);Xl(e,t,B,xt(e))}else Xl(e,t,a,xt(e))}catch(q){Xl(e,t,{then:function(){},status:"rejected",reason:q},xt())}finally{J.p=u,U.T=d}}function fy(){}function xo(e,t,n,a){if(e.tag!==5)throw Error(o(476));var r=od(e).queue;id(e,r,t,Z,n===null?fy:function(){return cd(e),n(a)})}function od(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:Z},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cd(e){var t=od(e).next.queue;Xl(e,t,{},xt())}function So(){return at(or)}function sd(){return Ve().memoizedState}function fd(){return Ve().memoizedState}function dy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xt();e=Rn(n);var a=Cn(t,e,n);a!==null&&(St(a,t,n),Hl(a,t,n)),t={cache:Fi()},e.payload=t;return}t=t.return}}function hy(e,t,n){var a=xt();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},nu(e)?hd(t,n):(n=Gi(e,t,n,a),n!==null&&(St(n,e,a),md(n,t,a)))}function dd(e,t,n){var a=xt();Xl(e,t,n,a)}function Xl(e,t,n,a){var r={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(nu(e))hd(t,r);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,g=u(d,n);if(r.hasEagerState=!0,r.eagerState=g,vt(g,d))return Br(e,t,r,0),Ne===null&&Hr(),!1}catch{}finally{}if(n=Gi(e,t,r,a),n!==null)return St(n,e,a),md(n,t,a),!0}return!1}function Eo(e,t,n,a){if(a={lane:2,revertLane:ec(),action:a,hasEagerState:!1,eagerState:null,next:null},nu(e)){if(t)throw Error(o(479))}else t=Gi(e,n,a,2),t!==null&&St(t,e,2)}function nu(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function hd(e,t){Ga=Fr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function md(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ss(e,n)}}var au={readContext:at,use:Wr,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He},vd={readContext:at,use:Wr,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Wf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,tu(4194308,4,nd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){tu(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var a=e();if(ua){yn(!0);try{e()}finally{yn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ot();if(n!==void 0){var r=n(t);if(ua){yn(!0);try{n(t)}finally{yn(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=hy.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=po(e);var t=e.queue,n=dd.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yo,useDeferredValue:function(e,t){var n=ot();return bo(n,e,t)},useTransition:function(){var e=po(!1);return e=id.bind(null,ce,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ce,r=ot();if(ye){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ne===null)throw Error(o(349));(ve&124)!==0||kf(a,t,n)}r.memoizedState=n;var u={value:n,getSnapshot:t};return r.queue=u,Wf(Hf.bind(null,a,u,e),[e]),a.flags|=2048,Ya(9,eu(),Lf.bind(null,a,u,n,t),null),n},useId:function(){var e=ot(),t=Ne.identifierPrefix;if(ye){var n=Wt,a=Pt;n=(a&~(1<<32-mt(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Pr++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=iy++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:So,useFormState:Kf,useActionState:Kf,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Eo.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:ho,useCacheRefresh:function(){return ot().memoizedState=dy.bind(null,ce)}},pd={readContext:at,use:Wr,useCallback:ld,useContext:at,useEffect:If,useImperativeHandle:ad,useInsertionEffect:ed,useLayoutEffect:td,useMemo:rd,useReducer:Ir,useRef:Pf,useState:function(){return Ir(tn)},useDebugValue:yo,useDeferredValue:function(e,t){var n=Ve();return ud(n,Re.memoizedState,e,t)},useTransition:function(){var e=Ir(tn)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Yl(e),t]},useSyncExternalStore:Uf,useId:sd,useHostTransitionStatus:So,useFormState:Jf,useActionState:Jf,useOptimistic:function(e,t){var n=Ve();return qf(n,Re,e,t)},useMemoCache:ho,useCacheRefresh:fd},my={readContext:at,use:Wr,useCallback:ld,useContext:at,useEffect:If,useImperativeHandle:ad,useInsertionEffect:ed,useLayoutEffect:td,useMemo:rd,useReducer:vo,useRef:Pf,useState:function(){return vo(tn)},useDebugValue:yo,useDeferredValue:function(e,t){var n=Ve();return Re===null?bo(n,e,t):ud(n,Re.memoizedState,e,t)},useTransition:function(){var e=vo(tn)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Yl(e),t]},useSyncExternalStore:Uf,useId:sd,useHostTransitionStatus:So,useFormState:Ff,useActionState:Ff,useOptimistic:function(e,t){var n=Ve();return Re!==null?qf(n,Re,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ho,useCacheRefresh:fd},Va=null,Ql=0;function lu(e){var t=Ql;return Ql+=1,Va===null&&(Va=[]),wf(Va,e,t)}function Zl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ru(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function gd(e){var t=e._init;return t(e._payload)}function yd(e){function t(w,R){if(e){var N=w.deletions;N===null?(w.deletions=[R],w.flags|=16):N.push(R)}}function n(w,R){if(!e)return null;for(;R!==null;)t(w,R),R=R.sibling;return null}function a(w){for(var R=new Map;w!==null;)w.key!==null?R.set(w.key,w):R.set(w.index,w),w=w.sibling;return R}function r(w,R){return w=Ft(w,R),w.index=0,w.sibling=null,w}function u(w,R,N){return w.index=N,e?(N=w.alternate,N!==null?(N=N.index,N<R?(w.flags|=67108866,R):N):(w.flags|=67108866,R)):(w.flags|=1048576,R)}function d(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function g(w,R,N,G){return R===null||R.tag!==6?(R=Yi(N,w.mode,G),R.return=w,R):(R=r(R,N),R.return=w,R)}function S(w,R,N,G){var W=N.type;return W===M?B(w,R,N.props.children,G,N.key):R!==null&&(R.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===Q&&gd(W)===R.type)?(R=r(R,N.props),Zl(R,N),R.return=w,R):(R=qr(N.type,N.key,N.props,null,w.mode,G),Zl(R,N),R.return=w,R)}function O(w,R,N,G){return R===null||R.tag!==4||R.stateNode.containerInfo!==N.containerInfo||R.stateNode.implementation!==N.implementation?(R=Vi(N,w.mode,G),R.return=w,R):(R=r(R,N.children||[]),R.return=w,R)}function B(w,R,N,G,W){return R===null||R.tag!==7?(R=Wn(N,w.mode,G,W),R.return=w,R):(R=r(R,N),R.return=w,R)}function q(w,R,N){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Yi(""+R,w.mode,N),R.return=w,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case T:return N=qr(R.type,R.key,R.props,null,w.mode,N),Zl(N,R),N.return=w,N;case k:return R=Vi(R,w.mode,N),R.return=w,R;case Q:var G=R._init;return R=G(R._payload),q(w,R,N)}if(_e(R)||je(R))return R=Wn(R,w.mode,N,null),R.return=w,R;if(typeof R.then=="function")return q(w,lu(R),N);if(R.$$typeof===Y)return q(w,Qr(w,R),N);ru(w,R)}return null}function D(w,R,N,G){var W=R!==null?R.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return W!==null?null:g(w,R,""+N,G);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case T:return N.key===W?S(w,R,N,G):null;case k:return N.key===W?O(w,R,N,G):null;case Q:return W=N._init,N=W(N._payload),D(w,R,N,G)}if(_e(N)||je(N))return W!==null?null:B(w,R,N,G,null);if(typeof N.then=="function")return D(w,R,lu(N),G);if(N.$$typeof===Y)return D(w,R,Qr(w,N),G);ru(w,N)}return null}function j(w,R,N,G,W){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return w=w.get(N)||null,g(R,w,""+G,W);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case T:return w=w.get(G.key===null?N:G.key)||null,S(R,w,G,W);case k:return w=w.get(G.key===null?N:G.key)||null,O(R,w,G,W);case Q:var fe=G._init;return G=fe(G._payload),j(w,R,N,G,W)}if(_e(G)||je(G))return w=w.get(N)||null,B(R,w,G,W,null);if(typeof G.then=="function")return j(w,R,N,lu(G),W);if(G.$$typeof===Y)return j(w,R,N,Qr(R,G),W);ru(R,G)}return null}function ue(w,R,N,G){for(var W=null,fe=null,ne=R,le=R=0,Fe=null;ne!==null&&le<N.length;le++){ne.index>le?(Fe=ne,ne=null):Fe=ne.sibling;var ge=D(w,ne,N[le],G);if(ge===null){ne===null&&(ne=Fe);break}e&&ne&&ge.alternate===null&&t(w,ne),R=u(ge,R,le),fe===null?W=ge:fe.sibling=ge,fe=ge,ne=Fe}if(le===N.length)return n(w,ne),ye&&ea(w,le),W;if(ne===null){for(;le<N.length;le++)ne=q(w,N[le],G),ne!==null&&(R=u(ne,R,le),fe===null?W=ne:fe.sibling=ne,fe=ne);return ye&&ea(w,le),W}for(ne=a(ne);le<N.length;le++)Fe=j(ne,w,le,N[le],G),Fe!==null&&(e&&Fe.alternate!==null&&ne.delete(Fe.key===null?le:Fe.key),R=u(Fe,R,le),fe===null?W=Fe:fe.sibling=Fe,fe=Fe);return e&&ne.forEach(function(qn){return t(w,qn)}),ye&&ea(w,le),W}function ae(w,R,N,G){if(N==null)throw Error(o(151));for(var W=null,fe=null,ne=R,le=R=0,Fe=null,ge=N.next();ne!==null&&!ge.done;le++,ge=N.next()){ne.index>le?(Fe=ne,ne=null):Fe=ne.sibling;var qn=D(w,ne,ge.value,G);if(qn===null){ne===null&&(ne=Fe);break}e&&ne&&qn.alternate===null&&t(w,ne),R=u(qn,R,le),fe===null?W=qn:fe.sibling=qn,fe=qn,ne=Fe}if(ge.done)return n(w,ne),ye&&ea(w,le),W;if(ne===null){for(;!ge.done;le++,ge=N.next())ge=q(w,ge.value,G),ge!==null&&(R=u(ge,R,le),fe===null?W=ge:fe.sibling=ge,fe=ge);return ye&&ea(w,le),W}for(ne=a(ne);!ge.done;le++,ge=N.next())ge=j(ne,w,le,ge.value,G),ge!==null&&(e&&ge.alternate!==null&&ne.delete(ge.key===null?le:ge.key),R=u(ge,R,le),fe===null?W=ge:fe.sibling=ge,fe=ge);return e&&ne.forEach(function(vb){return t(w,vb)}),ye&&ea(w,le),W}function Ae(w,R,N,G){if(typeof N=="object"&&N!==null&&N.type===M&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case T:e:{for(var W=N.key;R!==null;){if(R.key===W){if(W=N.type,W===M){if(R.tag===7){n(w,R.sibling),G=r(R,N.props.children),G.return=w,w=G;break e}}else if(R.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===Q&&gd(W)===R.type){n(w,R.sibling),G=r(R,N.props),Zl(G,N),G.return=w,w=G;break e}n(w,R);break}else t(w,R);R=R.sibling}N.type===M?(G=Wn(N.props.children,w.mode,G,N.key),G.return=w,w=G):(G=qr(N.type,N.key,N.props,null,w.mode,G),Zl(G,N),G.return=w,w=G)}return d(w);case k:e:{for(W=N.key;R!==null;){if(R.key===W)if(R.tag===4&&R.stateNode.containerInfo===N.containerInfo&&R.stateNode.implementation===N.implementation){n(w,R.sibling),G=r(R,N.children||[]),G.return=w,w=G;break e}else{n(w,R);break}else t(w,R);R=R.sibling}G=Vi(N,w.mode,G),G.return=w,w=G}return d(w);case Q:return W=N._init,N=W(N._payload),Ae(w,R,N,G)}if(_e(N))return ue(w,R,N,G);if(je(N)){if(W=je(N),typeof W!="function")throw Error(o(150));return N=W.call(N),ae(w,R,N,G)}if(typeof N.then=="function")return Ae(w,R,lu(N),G);if(N.$$typeof===Y)return Ae(w,R,Qr(w,N),G);ru(w,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,R!==null&&R.tag===6?(n(w,R.sibling),G=r(R,N),G.return=w,w=G):(n(w,R),G=Yi(N,w.mode,G),G.return=w,w=G),d(w)):n(w,R)}return function(w,R,N,G){try{Ql=0;var W=Ae(w,R,N,G);return Va=null,W}catch(ne){if(ne===kl||ne===Kr)throw ne;var fe=pt(29,ne,null,w.mode);return fe.lanes=G,fe.return=w,fe}finally{}}}var Xa=yd(!0),bd=yd(!1),Ot=X(null),qt=null;function Tn(e){var t=e.alternate;K(Qe,Qe.current&1),K(Ot,e),qt===null&&(t===null||Ba.current!==null||t.memoizedState!==null)&&(qt=e)}function xd(e){if(e.tag===22){if(K(Qe,Qe.current),K(Ot,e),qt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(qt=e)}}else wn()}function wn(){K(Qe,Qe.current),K(Ot,Ot.current)}function nn(e){F(Ot),qt===e&&(qt=null),F(Qe)}var Qe=X(0);function uu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||dc(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ro(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Co={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=xt(),r=Rn(a);r.payload=t,n!=null&&(r.callback=n),t=Cn(e,r,a),t!==null&&(St(t,e,a),Hl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=xt(),r=Rn(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Cn(e,r,a),t!==null&&(St(t,e,a),Hl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xt(),a=Rn(n);a.tag=2,t!=null&&(a.callback=t),t=Cn(e,a,n),t!==null&&(St(t,e,n),Hl(t,e,n))}};function Sd(e,t,n,a,r,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,d):t.prototype&&t.prototype.isPureReactComponent?!Nl(n,a)||!Nl(r,u):!0}function Ed(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Co.enqueueReplaceState(t,t.state,null)}function ia(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var iu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Rd(e){iu(e)}function Cd(e){console.error(e)}function Ad(e){iu(e)}function ou(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Td(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ao(e,t,n){return n=Rn(n),n.tag=3,n.payload={element:null},n.callback=function(){ou(e,t)},n}function wd(e){return e=Rn(e),e.tag=3,e}function Nd(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=a.value;e.payload=function(){return r(u)},e.callback=function(){Td(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Td(t,n,a),typeof r!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var g=a.stack;this.componentDidCatch(a.value,{componentStack:g!==null?g:""})})}function vy(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&jl(t,n,r,!0),n=Ot.current,n!==null){switch(n.tag){case 13:return qt===null?$o():n.alternate===null&&Le===0&&(Le=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===Ii?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Po(e,a,r)),!1;case 22:return n.flags|=65536,a===Ii?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Po(e,a,r)),!1}throw Error(o(435,n.tag))}return Po(e,a,r),$o(),!1}if(ye)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==Zi&&(e=Error(o(422),{cause:a}),Dl(Tt(e,n)))):(a!==Zi&&(t=Error(o(423),{cause:a}),Dl(Tt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Tt(a,n),r=Ao(e.stateNode,a,r),no(e,r),Le!==4&&(Le=2)),!1;var u=Error(o(520),{cause:a});if(u=Tt(u,n),Il===null?Il=[u]:Il.push(u),Le!==4&&(Le=2),t===null)return!0;a=Tt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Ao(n.stateNode,a,e),no(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(jn===null||!jn.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=wd(r),Nd(r,e,n,a),no(n,r),!1}n=n.return}while(n!==null);return!1}var _d=Error(o(461)),Je=!1;function Pe(e,t,n,a){t.child=e===null?bd(t,null,n,a):Xa(t,e.child,n,a)}function Od(e,t,n,a,r){n=n.render;var u=t.ref;if("ref"in a){var d={};for(var g in a)g!=="ref"&&(d[g]=a[g])}else d=a;return la(t),a=io(e,t,n,d,u,r),g=oo(),e!==null&&!Je?(co(e,t,r),an(e,t,r)):(ye&&g&&Xi(t),t.flags|=1,Pe(e,t,a,r),t.child)}function Md(e,t,n,a,r){if(e===null){var u=n.type;return typeof u=="function"&&!qi(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Dd(e,t,u,a,r)):(e=qr(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!jo(e,r)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:Nl,n(d,a)&&e.ref===t.ref)return an(e,t,r)}return t.flags|=1,e=Ft(u,a),e.ref=t.ref,e.return=t,t.child=e}function Dd(e,t,n,a,r){if(e!==null){var u=e.memoizedProps;if(Nl(u,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=u,jo(e,r))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,an(e,t,r)}return To(e,t,n,a,r)}function jd(e,t,n){var a=t.pendingProps,r=a.children,u=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=u!==null?u.baseLanes|n:n,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;t.childLanes=u&~a}else t.childLanes=0,t.child=null;return zd(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zr(t,u!==null?u.cachePool:null),u!==null?Df(t,u):lo(),xd(t);else return t.lanes=t.childLanes=536870912,zd(e,t,u!==null?u.baseLanes|n:n,n)}else u!==null?(Zr(t,u.cachePool),Df(t,u),wn(),t.memoizedState=null):(e!==null&&Zr(t,null),lo(),wn());return Pe(e,t,r,n),t.child}function zd(e,t,n,a){var r=Wi();return r=r===null?null:{parent:Xe._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Zr(t,null),lo(),xd(t),e!==null&&jl(e,t,a,!0),null}function cu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function To(e,t,n,a,r){return la(t),n=io(e,t,n,a,void 0,r),a=oo(),e!==null&&!Je?(co(e,t,r),an(e,t,r)):(ye&&a&&Xi(t),t.flags|=1,Pe(e,t,n,r),t.child)}function Ud(e,t,n,a,r,u){return la(t),t.updateQueue=null,n=zf(t,a,n,r),jf(e),a=oo(),e!==null&&!Je?(co(e,t,u),an(e,t,u)):(ye&&a&&Xi(t),t.flags|=1,Pe(e,t,n,u),t.child)}function kd(e,t,n,a,r){if(la(t),t.stateNode===null){var u=za,d=n.contextType;typeof d=="object"&&d!==null&&(u=at(d)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Co,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},eo(t),d=n.contextType,u.context=typeof d=="object"&&d!==null?at(d):za,u.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Ro(t,n,d,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&Co.enqueueReplaceState(u,u.state,null),Gl(t,a,u,r),Bl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var g=t.memoizedProps,S=ia(n,g);u.props=S;var O=u.context,B=n.contextType;d=za,typeof B=="object"&&B!==null&&(d=at(B));var q=n.getDerivedStateFromProps;B=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,B||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||O!==d)&&Ed(t,u,a,d),En=!1;var D=t.memoizedState;u.state=D,Gl(t,a,u,r),Bl(),O=t.memoizedState,g||D!==O||En?(typeof q=="function"&&(Ro(t,n,q,a),O=t.memoizedState),(S=En||Sd(t,n,S,a,D,O,d))?(B||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=O),u.props=a,u.state=O,u.context=d,a=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,to(e,t),d=t.memoizedProps,B=ia(n,d),u.props=B,q=t.pendingProps,D=u.context,O=n.contextType,S=za,typeof O=="object"&&O!==null&&(S=at(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==q||D!==S)&&Ed(t,u,a,S),En=!1,D=t.memoizedState,u.state=D,Gl(t,a,u,r),Bl();var j=t.memoizedState;d!==q||D!==j||En||e!==null&&e.dependencies!==null&&Xr(e.dependencies)?(typeof g=="function"&&(Ro(t,n,g,a),j=t.memoizedState),(B=En||Sd(t,n,B,a,D,j,S)||e!==null&&e.dependencies!==null&&Xr(e.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,j,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,j,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),u.props=a,u.state=j,u.context=S,a=B):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,cu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Xa(t,e.child,null,r),t.child=Xa(t,null,n,r)):Pe(e,t,n,r),t.memoizedState=u.state,e=t.child):e=an(e,t,r),e}function Ld(e,t,n,a){return Ml(),t.flags|=256,Pe(e,t,n,a),t.child}var wo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function No(e){return{baseLanes:e,cachePool:Cf()}}function _o(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Mt),e}function Hd(e,t,n){var a=t.pendingProps,r=!1,u=(t.flags&128)!==0,d;if((d=u)||(d=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(r?Tn(t):wn(),ye){var g=ke,S;if(S=g){e:{for(S=g,g=Gt;S.nodeType!==8;){if(!g){g=null;break e}if(S=kt(S.nextSibling),S===null){g=null;break e}}g=S}g!==null?(t.memoizedState={dehydrated:g,treeContext:In!==null?{id:Pt,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},S=pt(18,null,null,0),S.stateNode=g,S.return=t,t.child=S,rt=t,ke=null,S=!0):S=!1}S||na(t)}if(g=t.memoizedState,g!==null&&(g=g.dehydrated,g!==null))return dc(g)?t.lanes=32:t.lanes=536870912,null;nn(t)}return g=a.children,a=a.fallback,r?(wn(),r=t.mode,g=su({mode:"hidden",children:g},r),a=Wn(a,r,n,null),g.return=t,a.return=t,g.sibling=a,t.child=g,r=t.child,r.memoizedState=No(n),r.childLanes=_o(e,d,n),t.memoizedState=wo,a):(Tn(t),Oo(t,g))}if(S=e.memoizedState,S!==null&&(g=S.dehydrated,g!==null)){if(u)t.flags&256?(Tn(t),t.flags&=-257,t=Mo(e,t,n)):t.memoizedState!==null?(wn(),t.child=e.child,t.flags|=128,t=null):(wn(),r=a.fallback,g=t.mode,a=su({mode:"visible",children:a.children},g),r=Wn(r,g,n,null),r.flags|=2,a.return=t,r.return=t,a.sibling=r,t.child=a,Xa(t,e.child,null,n),a=t.child,a.memoizedState=No(n),a.childLanes=_o(e,d,n),t.memoizedState=wo,t=r);else if(Tn(t),dc(g)){if(d=g.nextSibling&&g.nextSibling.dataset,d)var O=d.dgst;d=O,a=Error(o(419)),a.stack="",a.digest=d,Dl({value:a,source:null,stack:null}),t=Mo(e,t,n)}else if(Je||jl(e,t,n,!1),d=(n&e.childLanes)!==0,Je||d){if(d=Ne,d!==null&&(a=n&-n,a=(a&42)!==0?1:di(a),a=(a&(d.suspendedLanes|n))!==0?0:a,a!==0&&a!==S.retryLane))throw S.retryLane=a,ja(e,a),St(d,e,a),_d;g.data==="$?"||$o(),t=Mo(e,t,n)}else g.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,ke=kt(g.nextSibling),rt=t,ye=!0,ta=null,Gt=!1,e!==null&&(Nt[_t++]=Pt,Nt[_t++]=Wt,Nt[_t++]=In,Pt=e.id,Wt=e.overflow,In=t),t=Oo(t,a.children),t.flags|=4096);return t}return r?(wn(),r=a.fallback,g=t.mode,S=e.child,O=S.sibling,a=Ft(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,O!==null?r=Ft(O,r):(r=Wn(r,g,n,null),r.flags|=2),r.return=t,a.return=t,a.sibling=r,t.child=a,a=r,r=t.child,g=e.child.memoizedState,g===null?g=No(n):(S=g.cachePool,S!==null?(O=Xe._currentValue,S=S.parent!==O?{parent:O,pool:O}:S):S=Cf(),g={baseLanes:g.baseLanes|n,cachePool:S}),r.memoizedState=g,r.childLanes=_o(e,d,n),t.memoizedState=wo,a):(Tn(t),n=e.child,e=n.sibling,n=Ft(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Oo(e,t){return t=su({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function su(e,t){return e=pt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Mo(e,t,n){return Xa(t,e.child,null,n),e=Oo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ji(e.return,t,n)}function Do(e,t,n,a,r){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=n,u.tailMode=r)}function Gd(e,t,n){var a=t.pendingProps,r=a.revealOrder,u=a.tail;if(Pe(e,t,a.children,n),a=Qe.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bd(e,n,t);else if(e.tag===19)Bd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(K(Qe,a),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&uu(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Do(t,!1,r,n,u);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&uu(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Do(t,!0,n,null,u);break;case"together":Do(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function an(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(jl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Xr(e)))}function py(e,t,n){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),Sn(t,Xe,e.memoizedState.cache),Ml();break;case 27:case 5:vn(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:Sn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Tn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Hd(e,t,n):(Tn(t),e=an(e,t,n),e!==null?e.sibling:null);Tn(t);break;case 19:var r=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(jl(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return Gd(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),K(Qe,Qe.current),a)break;return null;case 22:case 23:return t.lanes=0,jd(e,t,n);case 24:Sn(t,Xe,e.memoizedState.cache)}return an(e,t,n)}function qd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!jo(e,n)&&(t.flags&128)===0)return Je=!1,py(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,ye&&(t.flags&1048576)!==0&&gf(t,Vr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,r=a._init;if(a=r(a._payload),t.type=a,typeof a=="function")qi(a)?(e=ia(a,e),t.tag=1,t=kd(null,t,a,e,n)):(t.tag=0,t=To(null,t,a,e,n));else{if(a!=null){if(r=a.$$typeof,r===H){t.tag=11,t=Od(null,t,a,e,n);break e}else if(r===$){t.tag=14,t=Md(null,t,a,e,n);break e}}throw t=Rt(a)||a,Error(o(306,t,""))}}return t;case 0:return To(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=ia(a,t.pendingProps),kd(e,t,a,r,n);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;r=u.element,to(e,t),Gl(t,a,null,n);var d=t.memoizedState;if(a=d.cache,Sn(t,Xe,a),a!==u.cache&&$i(t,[Xe],n,!0),Bl(),a=d.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Ld(e,t,a,n);break e}else if(a!==r){r=Tt(Error(o(424)),t),Dl(r),t=Ld(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=kt(e.firstChild),rt=t,ye=!0,ta=null,Gt=!0,n=bd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ml(),a===r){t=an(e,t,n);break e}Pe(e,t,a,n)}t=t.child}return t;case 26:return cu(e,t),e===null?(n=Qh(t.type,null,t.pendingProps,null))?t.memoizedState=n:ye||(n=t.type,e=t.pendingProps,a=Cu(ie.current).createElement(n),a[nt]=t,a[ut]=e,Ie(a,n,e),Ke(a),t.stateNode=a):t.memoizedState=Qh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return vn(t),e===null&&ye&&(a=t.stateNode=Yh(t.type,t.pendingProps,ie.current),rt=t,Gt=!0,r=ke,kn(t.type)?(hc=r,ke=kt(a.firstChild)):ke=r),Pe(e,t,t.pendingProps.children,n),cu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((r=a=ke)&&(a=Xy(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,rt=t,ke=kt(a.firstChild),Gt=!1,r=!0):r=!1),r||na(t)),vn(t),r=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,a=u.children,cc(r,u)?a=null:d!==null&&cc(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=io(e,t,oy,null,null,n),or._currentValue=r),cu(e,t),Pe(e,t,a,n),t.child;case 6:return e===null&&ye&&((e=n=ke)&&(n=Qy(n,t.pendingProps,Gt),n!==null?(t.stateNode=n,rt=t,ke=null,e=!0):e=!1),e||na(t)),null;case 13:return Hd(e,t,n);case 4:return Te(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Xa(t,null,a,n):Pe(e,t,a,n),t.child;case 11:return Od(e,t,t.type,t.pendingProps,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Sn(t,t.type,a.value),Pe(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,la(t),r=at(r),a=a(r),t.flags|=1,Pe(e,t,a,n),t.child;case 14:return Md(e,t,t.type,t.pendingProps,n);case 15:return Dd(e,t,t.type,t.pendingProps,n);case 19:return Gd(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=su(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Ft(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return jd(e,t,n);case 24:return la(t),a=at(Xe),e===null?(r=Wi(),r===null&&(r=Ne,u=Fi(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),t.memoizedState={parent:a,cache:r},eo(t),Sn(t,Xe,r)):((e.lanes&n)!==0&&(to(e,t),Gl(t,null,null,n),Bl()),r=e.memoizedState,u=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Sn(t,Xe,a)):(a=u.cache,Sn(t,Xe,a),a!==r.cache&&$i(t,[Xe],n,!0))),Pe(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ln(e){e.flags|=4}function Yd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fh(t)){if(t=Ot.current,t!==null&&((ve&4194048)===ve?qt!==null:(ve&62914560)!==ve&&(ve&536870912)===0||t!==qt))throw Ll=Ii,Af;e.flags|=8192}}function fu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bs():536870912,e.lanes|=t,Ja|=t)}function Kl(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function gy(e,t,n){var a=t.pendingProps;switch(Qi(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),en(Xe),dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ol(t)?ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xf())),ze(t),null;case 26:return n=t.memoizedState,e===null?(ln(t),n!==null?(ze(t),Yd(t,n)):(ze(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ln(t),ze(t),Yd(t,n)):(ze(t),t.flags&=-16777217):(e.memoizedProps!==a&&ln(t),ze(t),t.flags&=-16777217),null;case 27:pn(t),n=ie.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return ze(t),null}e=P.current,Ol(t)?yf(t):(e=Yh(r,a,n),t.stateNode=e,ln(t))}return ze(t),null;case 5:if(pn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return ze(t),null}if(e=P.current,Ol(t))yf(t);else{switch(r=Cu(ie.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?r.createElement(n,{is:a.is}):r.createElement(n)}}e[nt]=t,e[ut]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Ie(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ln(t)}}return ze(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,Ol(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=rt,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Uh(e.nodeValue,n)),e||na(t)}else e=Cu(e).createTextNode(a),e[nt]=t,t.stateNode=e}return ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Ol(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[nt]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),r=!1}else r=xf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(nn(t),t):(nn(t),null)}if(nn(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool);var u=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==r&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),fu(t,t.updateQueue),ze(t),null;case 4:return dt(),e===null&&lc(t.stateNode.containerInfo),ze(t),null;case 10:return en(t.type),ze(t),null;case 19:if(F(Qe),r=t.memoizedState,r===null)return ze(t),null;if(a=(t.flags&128)!==0,u=r.rendering,u===null)if(a)Kl(r,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=uu(e),u!==null){for(t.flags|=128,Kl(r,!1),e=u.updateQueue,t.updateQueue=e,fu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)pf(n,e),n=n.sibling;return K(Qe,Qe.current&1|2),t.child}e=e.sibling}r.tail!==null&&Bt()>mu&&(t.flags|=128,a=!0,Kl(r,!1),t.lanes=4194304)}else{if(!a)if(e=uu(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,fu(t,e),Kl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!ye)return ze(t),null}else 2*Bt()-r.renderingStartTime>mu&&n!==536870912&&(t.flags|=128,a=!0,Kl(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Bt(),t.sibling=null,e=Qe.current,K(Qe,a?e&1|2:e&1),t):(ze(t),null);case 22:case 23:return nn(t),ro(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),n=t.updateQueue,n!==null&&fu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&F(ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),en(Xe),ze(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function yy(e,t){switch(Qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return en(Xe),dt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pn(t),null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(Qe),null;case 4:return dt(),null;case 10:return en(t.type),null;case 22:case 23:return nn(t),ro(),e!==null&&F(ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return en(Xe),null;case 25:return null;default:return null}}function Vd(e,t){switch(Qi(t),t.tag){case 3:en(Xe),dt();break;case 26:case 27:case 5:pn(t);break;case 4:dt();break;case 13:nn(t);break;case 19:F(Qe);break;case 10:en(t.type);break;case 22:case 23:nn(t),ro(),e!==null&&F(ra);break;case 24:en(Xe)}}function Jl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var u=n.create,d=n.inst;a=u(),d.destroy=a}n=n.next}while(n!==r)}}catch(g){we(t,t.return,g)}}function Nn(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var u=r.next;a=u;do{if((a.tag&e)===e){var d=a.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,r=t;var S=n,O=g;try{O()}catch(B){we(r,S,B)}}}a=a.next}while(a!==u)}}catch(B){we(t,t.return,B)}}function Xd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Mf(t,n)}catch(a){we(e,e.return,a)}}}function Qd(e,t,n){n.props=ia(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){we(e,t,a)}}function $l(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){we(e,t,r)}}function Yt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){we(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Zd(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){we(e,e.return,r)}}function zo(e,t,n){try{var a=e.stateNode;By(a,e.type,n,t),a[ut]=t}catch(r){we(e,e.return,r)}}function Kd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kn(e.type)||e.tag===4}function Uo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ko(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ru));else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ko(e,t,n),e=e.sibling;e!==null;)ko(e,t,n),e=e.sibling}function du(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(du(e,t,n),e=e.sibling;e!==null;)du(e,t,n),e=e.sibling}function Jd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Ie(t,a,n),t[nt]=e,t[ut]=n}catch(u){we(e,e.return,u)}}var rn=!1,Be=!1,Lo=!1,$d=typeof WeakSet=="function"?WeakSet:Set,$e=null;function by(e,t){if(e=e.containerInfo,ic=Ou,e=rf(e),zi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,g=-1,S=-1,O=0,B=0,q=e,D=null;t:for(;;){for(var j;q!==n||r!==0&&q.nodeType!==3||(g=d+r),q!==u||a!==0&&q.nodeType!==3||(S=d+a),q.nodeType===3&&(d+=q.nodeValue.length),(j=q.firstChild)!==null;)D=q,q=j;for(;;){if(q===e)break t;if(D===n&&++O===r&&(g=d),D===u&&++B===a&&(S=d),(j=q.nextSibling)!==null)break;q=D,D=q.parentNode}q=j}n=g===-1||S===-1?null:{start:g,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(oc={focusedElem:e,selectionRange:n},Ou=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,u=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,r=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var ue=ia(n.type,r,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(ue,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(ae){we(n,n.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)fc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function Fd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:_n(e,n),a&4&&Jl(5,n);break;case 1:if(_n(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){we(n,n.return,d)}else{var r=ia(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){we(n,n.return,d)}}a&64&&Xd(n),a&512&&$l(n,n.return);break;case 3:if(_n(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Mf(e,t)}catch(d){we(n,n.return,d)}}break;case 27:t===null&&a&4&&Jd(n);case 26:case 5:_n(e,n),t===null&&a&4&&Zd(n),a&512&&$l(n,n.return);break;case 12:_n(e,n);break;case 13:_n(e,n),a&4&&Id(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ny.bind(null,n),Zy(e,n))));break;case 22:if(a=n.memoizedState!==null||rn,!a){t=t!==null&&t.memoizedState!==null||Be,r=rn;var u=Be;rn=a,(Be=t)&&!u?On(e,n,(n.subtreeFlags&8772)!==0):_n(e,n),rn=r,Be=u}break;case 30:break;default:_n(e,n)}}function Pd(e){var t=e.alternate;t!==null&&(e.alternate=null,Pd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Oe=null,ct=!1;function un(e,t,n){for(n=n.child;n!==null;)Wd(e,t,n),n=n.sibling}function Wd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(pl,n)}catch{}switch(n.tag){case 26:Be||Yt(n,t),un(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Be||Yt(n,t);var a=Oe,r=ct;kn(n.type)&&(Oe=n.stateNode,ct=!1),un(e,t,n),lr(n.stateNode),Oe=a,ct=r;break;case 5:Be||Yt(n,t);case 6:if(a=Oe,r=ct,Oe=null,un(e,t,n),Oe=a,ct=r,Oe!==null)if(ct)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(n.stateNode)}catch(u){we(n,t,u)}else try{Oe.removeChild(n.stateNode)}catch(u){we(n,t,u)}break;case 18:Oe!==null&&(ct?(e=Oe,Gh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),dr(e)):Gh(Oe,n.stateNode));break;case 4:a=Oe,r=ct,Oe=n.stateNode.containerInfo,ct=!0,un(e,t,n),Oe=a,ct=r;break;case 0:case 11:case 14:case 15:Be||Nn(2,n,t),Be||Nn(4,n,t),un(e,t,n);break;case 1:Be||(Yt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Qd(n,t,a)),un(e,t,n);break;case 21:un(e,t,n);break;case 22:Be=(a=Be)||n.memoizedState!==null,un(e,t,n),Be=a;break;default:un(e,t,n)}}function Id(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{dr(e)}catch(n){we(t,t.return,n)}}function xy(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $d),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $d),t;default:throw Error(o(435,e.tag))}}function Ho(e,t){var n=xy(e);t.forEach(function(a){var r=_y.bind(null,e,a);n.has(a)||(n.add(a),a.then(r,r))})}function gt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a],u=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:if(kn(g.type)){Oe=g.stateNode,ct=!1;break e}break;case 5:Oe=g.stateNode,ct=!1;break e;case 3:case 4:Oe=g.stateNode.containerInfo,ct=!0;break e}g=g.return}if(Oe===null)throw Error(o(160));Wd(u,d,r),Oe=null,ct=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)eh(t,e),t=t.sibling}var Ut=null;function eh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),yt(e),a&4&&(Nn(3,e,e.return),Jl(3,e),Nn(5,e,e.return));break;case 1:gt(t,e),yt(e),a&512&&(Be||n===null||Yt(n,n.return)),a&64&&rn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var r=Ut;if(gt(t,e),yt(e),a&512&&(Be||n===null||Yt(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":u=r.getElementsByTagName("title")[0],(!u||u[bl]||u[nt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(a),r.head.insertBefore(u,r.querySelector("head > title"))),Ie(u,a,n),u[nt]=e,Ke(u),a=u;break e;case"link":var d=Jh("link","href",r).get(a+(n.href||""));if(d){for(var g=0;g<d.length;g++)if(u=d[g],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(g,1);break t}}u=r.createElement(a),Ie(u,a,n),r.head.appendChild(u);break;case"meta":if(d=Jh("meta","content",r).get(a+(n.content||""))){for(g=0;g<d.length;g++)if(u=d[g],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(g,1);break t}}u=r.createElement(a),Ie(u,a,n),r.head.appendChild(u);break;default:throw Error(o(468,a))}u[nt]=e,Ke(u),a=u}e.stateNode=a}else $h(r,e.type,e.stateNode);else e.stateNode=Kh(r,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?$h(r,e.type,e.stateNode):Kh(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&zo(e,e.memoizedProps,n.memoizedProps)}break;case 27:gt(t,e),yt(e),a&512&&(Be||n===null||Yt(n,n.return)),n!==null&&a&4&&zo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gt(t,e),yt(e),a&512&&(Be||n===null||Yt(n,n.return)),e.flags&32){r=e.stateNode;try{Ta(r,"")}catch(j){we(e,e.return,j)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,zo(e,r,n!==null?n.memoizedProps:r)),a&1024&&(Lo=!0);break;case 6:if(gt(t,e),yt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(j){we(e,e.return,j)}}break;case 3:if(wu=null,r=Ut,Ut=Au(t.containerInfo),gt(t,e),Ut=r,yt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{dr(t.containerInfo)}catch(j){we(e,e.return,j)}Lo&&(Lo=!1,th(e));break;case 4:a=Ut,Ut=Au(e.stateNode.containerInfo),gt(t,e),yt(e),Ut=a;break;case 12:gt(t,e),yt(e);break;case 13:gt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xo=Bt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ho(e,a)));break;case 22:r=e.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,O=rn,B=Be;if(rn=O||r,Be=B||S,gt(t,e),Be=B,rn=O,yt(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||S||rn||Be||oa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){S=n=t;try{if(u=S.stateNode,r)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{g=S.stateNode;var q=S.memoizedProps.style,D=q!=null&&q.hasOwnProperty("display")?q.display:null;g.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(j){we(S,S.return,j)}}}else if(t.tag===6){if(n===null){S=t;try{S.stateNode.nodeValue=r?"":S.memoizedProps}catch(j){we(S,S.return,j)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ho(e,n))));break;case 19:gt(t,e),yt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ho(e,a)));break;case 30:break;case 21:break;default:gt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Kd(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=Uo(e);du(e,u,r);break;case 5:var d=n.stateNode;n.flags&32&&(Ta(d,""),n.flags&=-33);var g=Uo(e);du(e,g,d);break;case 3:case 4:var S=n.stateNode.containerInfo,O=Uo(e);ko(e,O,S);break;default:throw Error(o(161))}}catch(B){we(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function th(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;th(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fd(e,t.alternate,t),t=t.sibling}function oa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nn(4,t,t.return),oa(t);break;case 1:Yt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Qd(t,t.return,n),oa(t);break;case 27:lr(t.stateNode);case 26:case 5:Yt(t,t.return),oa(t);break;case 22:t.memoizedState===null&&oa(t);break;case 30:oa(t);break;default:oa(t)}e=e.sibling}}function On(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,u=t,d=u.flags;switch(u.tag){case 0:case 11:case 15:On(r,u,n),Jl(4,u);break;case 1:if(On(r,u,n),a=u,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){we(a,a.return,O)}if(a=u,r=a.updateQueue,r!==null){var g=a.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)Of(S[r],g)}catch(O){we(a,a.return,O)}}n&&d&64&&Xd(u),$l(u,u.return);break;case 27:Jd(u);case 26:case 5:On(r,u,n),n&&a===null&&d&4&&Zd(u),$l(u,u.return);break;case 12:On(r,u,n);break;case 13:On(r,u,n),n&&d&4&&Id(r,u);break;case 22:u.memoizedState===null&&On(r,u,n),$l(u,u.return);break;case 30:break;default:On(r,u,n)}t=t.sibling}}function Bo(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&zl(n))}function Go(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zl(e))}function Vt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)nh(e,t,n,a),t=t.sibling}function nh(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Vt(e,t,n,a),r&2048&&Jl(9,t);break;case 1:Vt(e,t,n,a);break;case 3:Vt(e,t,n,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zl(e)));break;case 12:if(r&2048){Vt(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,d=u.id,g=u.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){we(t,t.return,S)}}else Vt(e,t,n,a);break;case 13:Vt(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,d=t.alternate,t.memoizedState!==null?u._visibility&2?Vt(e,t,n,a):Fl(e,t):u._visibility&2?Vt(e,t,n,a):(u._visibility|=2,Qa(e,t,n,a,(t.subtreeFlags&10256)!==0)),r&2048&&Bo(d,t);break;case 24:Vt(e,t,n,a),r&2048&&Go(t.alternate,t);break;default:Vt(e,t,n,a)}}function Qa(e,t,n,a,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var u=e,d=t,g=n,S=a,O=d.flags;switch(d.tag){case 0:case 11:case 15:Qa(u,d,g,S,r),Jl(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?Qa(u,d,g,S,r):Fl(u,d):(B._visibility|=2,Qa(u,d,g,S,r)),r&&O&2048&&Bo(d.alternate,d);break;case 24:Qa(u,d,g,S,r),r&&O&2048&&Go(d.alternate,d);break;default:Qa(u,d,g,S,r)}t=t.sibling}}function Fl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:Fl(n,a),r&2048&&Bo(a.alternate,a);break;case 24:Fl(n,a),r&2048&&Go(a.alternate,a);break;default:Fl(n,a)}t=t.sibling}}var Pl=8192;function Za(e){if(e.subtreeFlags&Pl)for(e=e.child;e!==null;)ah(e),e=e.sibling}function ah(e){switch(e.tag){case 26:Za(e),e.flags&Pl&&e.memoizedState!==null&&rb(Ut,e.memoizedState,e.memoizedProps);break;case 5:Za(e);break;case 3:case 4:var t=Ut;Ut=Au(e.stateNode.containerInfo),Za(e),Ut=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Pl,Pl=16777216,Za(e),Pl=t):Za(e));break;default:Za(e)}}function lh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Wl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];$e=a,uh(a,e)}lh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rh(e),e=e.sibling}function rh(e){switch(e.tag){case 0:case 11:case 15:Wl(e),e.flags&2048&&Nn(9,e,e.return);break;case 3:Wl(e);break;case 12:Wl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hu(e)):Wl(e);break;default:Wl(e)}}function hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];$e=a,uh(a,e)}lh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nn(8,t,t.return),hu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,hu(t));break;default:hu(t)}e=e.sibling}}function uh(e,t){for(;$e!==null;){var n=$e;switch(n.tag){case 0:case 11:case 15:Nn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:zl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,$e=a;else e:for(n=e;$e!==null;){a=$e;var r=a.sibling,u=a.return;if(Pd(a),a===n){$e=null;break e}if(r!==null){r.return=u,$e=r;break e}$e=u}}}var Sy={getCacheForType:function(e){var t=at(Xe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Ey=typeof WeakMap=="function"?WeakMap:Map,Se=0,Ne=null,he=null,ve=0,Ee=0,bt=null,Mn=!1,Ka=!1,qo=!1,on=0,Le=0,Dn=0,ca=0,Yo=0,Mt=0,Ja=0,Il=null,st=null,Vo=!1,Xo=0,mu=1/0,vu=null,jn=null,We=0,zn=null,$a=null,Fa=0,Qo=0,Zo=null,ih=null,er=0,Ko=null;function xt(){if((Se&2)!==0&&ve!==0)return ve&-ve;if(U.T!==null){var e=La;return e!==0?e:ec()}return Es()}function oh(){Mt===0&&(Mt=(ve&536870912)===0||ye?ys():536870912);var e=Ot.current;return e!==null&&(e.flags|=32),Mt}function St(e,t,n){(e===Ne&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Pa(e,0),Un(e,ve,Mt,!1)),yl(e,n),((Se&2)===0||e!==Ne)&&(e===Ne&&((Se&2)===0&&(ca|=n),Le===4&&Un(e,ve,Mt,!1)),Xt(e))}function ch(e,t,n){if((Se&6)!==0)throw Error(o(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||gl(e,t),r=a?Ay(e,t):Fo(e,t,!0),u=a;do{if(r===0){Ka&&!a&&Un(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Ry(n)){r=Fo(e,t,!1),u=!1;continue}if(r===2){if(u=t,e.errorRecoveryDisabledLanes&u)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;r=Il;var S=g.current.memoizedState.isDehydrated;if(S&&(Pa(g,d).flags|=256),d=Fo(g,d,!1),d!==2){if(qo&&!S){g.errorRecoveryDisabledLanes|=u,ca|=u,r=4;break e}u=st,st=r,u!==null&&(st===null?st=u:st.push.apply(st,u))}r=d}if(u=!1,r!==2)continue}}if(r===1){Pa(e,0),Un(e,t,0,!0);break}e:{switch(a=e,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Un(a,t,Mt,!Mn);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=Xo+300-Bt(),10<r)){if(Un(a,t,Mt,!Mn),Tr(a,0,!0)!==0)break e;a.timeoutHandle=Hh(sh.bind(null,a,n,st,vu,Vo,t,Mt,ca,Ja,Mn,u,2,-0,0),r);break e}sh(a,n,st,vu,Vo,t,Mt,ca,Ja,Mn,u,0,-0,0)}}break}while(!0);Xt(e)}function sh(e,t,n,a,r,u,d,g,S,O,B,q,D,j){if(e.timeoutHandle=-1,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(ir={stylesheets:null,count:0,unsuspend:lb},ah(t),q=ub(),q!==null)){e.cancelPendingCommit=q(gh.bind(null,e,t,u,n,a,r,d,g,S,B,1,D,j)),Un(e,u,d,!O);return}gh(e,t,u,n,a,r,d,g,S)}function Ry(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var r=n[a],u=r.getSnapshot;r=r.value;try{if(!vt(u(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Un(e,t,n,a){t&=~Yo,t&=~ca,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var u=31-mt(r),d=1<<u;a[u]=-1,r&=~d}n!==0&&xs(e,n,t)}function pu(){return(Se&6)===0?(tr(0),!1):!0}function Jo(){if(he!==null){if(Ee===0)var e=he.return;else e=he,It=aa=null,so(e),Va=null,Ql=0,e=he;for(;e!==null;)Vd(e.alternate,e),e=e.return;he=null}}function Pa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qy(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Jo(),Ne=e,he=n=Ft(e.current,null),ve=t,Ee=0,bt=null,Mn=!1,Ka=gl(e,t),qo=!1,Ja=Mt=Yo=ca=Dn=Le=0,st=Il=null,Vo=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var r=31-mt(a),u=1<<r;t|=e[r],a&=~u}return on=t,Hr(),n}function fh(e,t){ce=null,U.H=au,t===kl||t===Kr?(t=Nf(),Ee=3):t===Af?(t=Nf(),Ee=4):Ee=t===_d?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,he===null&&(Le=1,ou(e,Tt(t,e.current)))}function dh(){var e=U.H;return U.H=au,e===null?au:e}function hh(){var e=U.A;return U.A=Sy,e}function $o(){Le=4,Mn||(ve&4194048)!==ve&&Ot.current!==null||(Ka=!0),(Dn&134217727)===0&&(ca&134217727)===0||Ne===null||Un(Ne,ve,Mt,!1)}function Fo(e,t,n){var a=Se;Se|=2;var r=dh(),u=hh();(Ne!==e||ve!==t)&&(vu=null,Pa(e,t)),t=!1;var d=Le;e:do try{if(Ee!==0&&he!==null){var g=he,S=bt;switch(Ee){case 8:Jo(),d=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var O=Ee;if(Ee=0,bt=null,Wa(e,g,S,O),n&&Ka){d=0;break e}break;default:O=Ee,Ee=0,bt=null,Wa(e,g,S,O)}}Cy(),d=Le;break}catch(B){fh(e,B)}while(!0);return t&&e.shellSuspendCounter++,It=aa=null,Se=a,U.H=r,U.A=u,he===null&&(Ne=null,ve=0,Hr()),d}function Cy(){for(;he!==null;)mh(he)}function Ay(e,t){var n=Se;Se|=2;var a=dh(),r=hh();Ne!==e||ve!==t?(vu=null,mu=Bt()+500,Pa(e,t)):Ka=gl(e,t);e:do try{if(Ee!==0&&he!==null){t=he;var u=bt;t:switch(Ee){case 1:Ee=0,bt=null,Wa(e,t,u,1);break;case 2:case 9:if(Tf(u)){Ee=0,bt=null,vh(t);break}t=function(){Ee!==2&&Ee!==9||Ne!==e||(Ee=7),Xt(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Tf(u)?(Ee=0,bt=null,vh(t)):(Ee=0,bt=null,Wa(e,t,u,7));break;case 5:var d=null;switch(he.tag){case 26:d=he.memoizedState;case 5:case 27:var g=he;if(!d||Fh(d)){Ee=0,bt=null;var S=g.sibling;if(S!==null)he=S;else{var O=g.return;O!==null?(he=O,gu(O)):he=null}break t}}Ee=0,bt=null,Wa(e,t,u,5);break;case 6:Ee=0,bt=null,Wa(e,t,u,6);break;case 8:Jo(),Le=6;break e;default:throw Error(o(462))}}Ty();break}catch(B){fh(e,B)}while(!0);return It=aa=null,U.H=a,U.A=r,Se=n,he!==null?0:(Ne=null,ve=0,Hr(),Le)}function Ty(){for(;he!==null&&!Jp();)mh(he)}function mh(e){var t=qd(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?gu(e):he=t}function vh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ud(n,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Ud(n,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:so(t);default:Vd(n,t),t=he=pf(t,on),t=qd(n,t,on)}e.memoizedProps=e.pendingProps,t===null?gu(e):he=t}function Wa(e,t,n,a){It=aa=null,so(t),Va=null,Ql=0;var r=t.return;try{if(vy(e,r,t,n,ve)){Le=1,ou(e,Tt(n,e.current)),he=null;return}}catch(u){if(r!==null)throw he=r,u;Le=1,ou(e,Tt(n,e.current)),he=null;return}t.flags&32768?(ye||a===1?e=!0:Ka||(ve&536870912)!==0?e=!1:(Mn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),ph(t,e)):gu(t)}function gu(e){var t=e;do{if((t.flags&32768)!==0){ph(t,Mn);return}e=t.return;var n=gy(t.alternate,t,on);if(n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);Le===0&&(Le=5)}function ph(e,t){do{var n=yy(e.alternate,e);if(n!==null){n.flags&=32767,he=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=n}while(e!==null);Le=6,he=null}function gh(e,t,n,a,r,u,d,g,S){e.cancelPendingCommit=null;do yu();while(We!==0);if((Se&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Bi,lg(e,n,u,d,g,S),e===Ne&&(he=Ne=null,ve=0),$a=t,zn=e,Fa=n,Qo=u,Zo=r,ih=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Oy(Rr,function(){return Eh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,r=J.p,J.p=2,d=Se,Se|=4;try{by(e,t,n)}finally{Se=d,J.p=r,U.T=a}}We=1,yh(),bh(),xh()}}function yh(){if(We===1){We=0;var e=zn,t=$a,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var a=J.p;J.p=2;var r=Se;Se|=4;try{eh(t,e);var u=oc,d=rf(e.containerInfo),g=u.focusedElem,S=u.selectionRange;if(d!==g&&g&&g.ownerDocument&&lf(g.ownerDocument.documentElement,g)){if(S!==null&&zi(g)){var O=S.start,B=S.end;if(B===void 0&&(B=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(B,g.value.length);else{var q=g.ownerDocument||document,D=q&&q.defaultView||window;if(D.getSelection){var j=D.getSelection(),ue=g.textContent.length,ae=Math.min(S.start,ue),Ae=S.end===void 0?ae:Math.min(S.end,ue);!j.extend&&ae>Ae&&(d=Ae,Ae=ae,ae=d);var w=af(g,ae),R=af(g,Ae);if(w&&R&&(j.rangeCount!==1||j.anchorNode!==w.node||j.anchorOffset!==w.offset||j.focusNode!==R.node||j.focusOffset!==R.offset)){var N=q.createRange();N.setStart(w.node,w.offset),j.removeAllRanges(),ae>Ae?(j.addRange(N),j.extend(R.node,R.offset)):(N.setEnd(R.node,R.offset),j.addRange(N))}}}}for(q=[],j=g;j=j.parentNode;)j.nodeType===1&&q.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<q.length;g++){var G=q[g];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Ou=!!ic,oc=ic=null}finally{Se=r,J.p=a,U.T=n}}e.current=t,We=2}}function bh(){if(We===2){We=0;var e=zn,t=$a,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var a=J.p;J.p=2;var r=Se;Se|=4;try{Fd(e,t.alternate,t)}finally{Se=r,J.p=a,U.T=n}}We=3}}function xh(){if(We===4||We===3){We=0,$p();var e=zn,t=$a,n=Fa,a=ih;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,$a=zn=null,Sh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(jn=null),hi(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(pl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,r=J.p,J.p=2,U.T=null;try{for(var u=e.onRecoverableError,d=0;d<a.length;d++){var g=a[d];u(g.value,{componentStack:g.stack})}}finally{U.T=t,J.p=r}}(Fa&3)!==0&&yu(),Xt(e),r=e.pendingLanes,(n&4194090)!==0&&(r&42)!==0?e===Ko?er++:(er=0,Ko=e):er=0,tr(0)}}function Sh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zl(t)))}function yu(e){return yh(),bh(),xh(),Eh()}function Eh(){if(We!==5)return!1;var e=zn,t=Qo;Qo=0;var n=hi(Fa),a=U.T,r=J.p;try{J.p=32>n?32:n,U.T=null,n=Zo,Zo=null;var u=zn,d=Fa;if(We=0,$a=zn=null,Fa=0,(Se&6)!==0)throw Error(o(331));var g=Se;if(Se|=4,rh(u.current),nh(u,u.current,d,n),Se=g,tr(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(pl,u)}catch{}return!0}finally{J.p=r,U.T=a,Sh(e,t)}}function Rh(e,t,n){t=Tt(n,t),t=Ao(e.stateNode,t,2),e=Cn(e,t,2),e!==null&&(yl(e,2),Xt(e))}function we(e,t,n){if(e.tag===3)Rh(e,e,n);else for(;t!==null;){if(t.tag===3){Rh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(jn===null||!jn.has(a))){e=Tt(n,e),n=wd(2),a=Cn(t,n,2),a!==null&&(Nd(n,a,t,e),yl(a,2),Xt(a));break}}t=t.return}}function Po(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Ey;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(qo=!0,r.add(n),e=wy.bind(null,e,t,n),t.then(e,e))}function wy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(ve&n)===n&&(Le===4||Le===3&&(ve&62914560)===ve&&300>Bt()-Xo?(Se&2)===0&&Pa(e,0):Yo|=n,Ja===ve&&(Ja=0)),Xt(e)}function Ch(e,t){t===0&&(t=bs()),e=ja(e,t),e!==null&&(yl(e,t),Xt(e))}function Ny(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ch(e,n)}function _y(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Ch(e,n)}function Oy(e,t){return ci(e,t)}var bu=null,Ia=null,Wo=!1,xu=!1,Io=!1,sa=0;function Xt(e){e!==Ia&&e.next===null&&(Ia===null?bu=Ia=e:Ia=Ia.next=e),xu=!0,Wo||(Wo=!0,Dy())}function tr(e,t){if(!Io&&xu){Io=!0;do for(var n=!1,a=bu;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var u=0;else{var d=a.suspendedLanes,g=a.pingedLanes;u=(1<<31-mt(42|e)+1)-1,u&=r&~(d&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Nh(a,u))}else u=ve,u=Tr(a,a===Ne?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||gl(a,u)||(n=!0,Nh(a,u));a=a.next}while(n);Io=!1}}function My(){Ah()}function Ah(){xu=Wo=!1;var e=0;sa!==0&&(Gy()&&(e=sa),sa=0);for(var t=Bt(),n=null,a=bu;a!==null;){var r=a.next,u=Th(a,t);u===0?(a.next=null,n===null?bu=r:n.next=r,r===null&&(Ia=n)):(n=a,(e!==0||(u&3)!==0)&&(xu=!0)),a=r}tr(e)}function Th(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var d=31-mt(u),g=1<<d,S=r[d];S===-1?((g&n)===0||(g&a)!==0)&&(r[d]=ag(g,t)):S<=t&&(e.expiredLanes|=g),u&=~g}if(t=Ne,n=ve,n=Tr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&si(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||gl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&si(a),hi(n)){case 2:case 8:n=ps;break;case 32:n=Rr;break;case 268435456:n=gs;break;default:n=Rr}return a=wh.bind(null,e),n=ci(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&si(a),e.callbackPriority=2,e.callbackNode=null,2}function wh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(yu()&&e.callbackNode!==n)return null;var a=ve;return a=Tr(e,e===Ne?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(ch(e,a,t),Th(e,Bt()),e.callbackNode!=null&&e.callbackNode===n?wh.bind(null,e):null)}function Nh(e,t){if(yu())return null;ch(e,t,!0)}function Dy(){Yy(function(){(Se&6)!==0?ci(vs,My):Ah()})}function ec(){return sa===0&&(sa=ys()),sa}function _h(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mr(""+e)}function Oh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function jy(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var u=_h((r[ut]||null).action),d=a.submitter;d&&(t=(t=d[ut]||null)?_h(t.formAction):d.getAttribute("formAction"),t!==null&&(u=t,d=null));var g=new Ur("action","action",null,a,r);e.push({event:g,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(sa!==0){var S=d?Oh(r,d):new FormData(r);xo(n,{pending:!0,data:S,method:r.method,action:u},null,S)}}else typeof u=="function"&&(g.preventDefault(),S=d?Oh(r,d):new FormData(r),xo(n,{pending:!0,data:S,method:r.method,action:u},u,S))},currentTarget:r}]})}}for(var tc=0;tc<Hi.length;tc++){var nc=Hi[tc],zy=nc.toLowerCase(),Uy=nc[0].toUpperCase()+nc.slice(1);zt(zy,"on"+Uy)}zt(cf,"onAnimationEnd"),zt(sf,"onAnimationIteration"),zt(ff,"onAnimationStart"),zt("dblclick","onDoubleClick"),zt("focusin","onFocus"),zt("focusout","onBlur"),zt(Wg,"onTransitionRun"),zt(Ig,"onTransitionStart"),zt(ey,"onTransitionCancel"),zt(df,"onTransitionEnd"),Ra("onMouseEnter",["mouseout","mouseover"]),Ra("onMouseLeave",["mouseout","mouseover"]),Ra("onPointerEnter",["pointerout","pointerover"]),Ra("onPointerLeave",["pointerout","pointerover"]),Jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ky=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nr));function Mh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var d=a.length-1;0<=d;d--){var g=a[d],S=g.instance,O=g.currentTarget;if(g=g.listener,S!==u&&r.isPropagationStopped())break e;u=g,r.currentTarget=O;try{u(r)}catch(B){iu(B)}r.currentTarget=null,u=S}else for(d=0;d<a.length;d++){if(g=a[d],S=g.instance,O=g.currentTarget,g=g.listener,S!==u&&r.isPropagationStopped())break e;u=g,r.currentTarget=O;try{u(r)}catch(B){iu(B)}r.currentTarget=null,u=S}}}}function me(e,t){var n=t[mi];n===void 0&&(n=t[mi]=new Set);var a=e+"__bubble";n.has(a)||(Dh(t,e,2,!1),n.add(a))}function ac(e,t,n){var a=0;t&&(a|=4),Dh(n,e,a,t)}var Su="_reactListening"+Math.random().toString(36).slice(2);function lc(e){if(!e[Su]){e[Su]=!0,Cs.forEach(function(n){n!=="selectionchange"&&(ky.has(n)||ac(n,!1,e),ac(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Su]||(t[Su]=!0,ac("selectionchange",!1,t))}}function Dh(e,t,n,a){switch(nm(t)){case 2:var r=cb;break;case 8:r=sb;break;default:r=yc}n=r.bind(null,t,n,e),r=void 0,!Ai||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function rc(e,t,n,a,r){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var g=a.stateNode.containerInfo;if(g===r)break;if(d===4)for(d=a.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;g!==null;){if(d=xa(g),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){a=u=d;continue e}g=g.parentNode}}a=a.return}Hs(function(){var O=u,B=Ri(n),q=[];e:{var D=hf.get(e);if(D!==void 0){var j=Ur,ue=e;switch(e){case"keypress":if(jr(n)===0)break e;case"keydown":case"keyup":j=Og;break;case"focusin":ue="focus",j=_i;break;case"focusout":ue="blur",j=_i;break;case"beforeblur":case"afterblur":j=_i;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=qs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=yg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=jg;break;case cf:case sf:case ff:j=Sg;break;case df:j=Ug;break;case"scroll":case"scrollend":j=pg;break;case"wheel":j=Lg;break;case"copy":case"cut":case"paste":j=Rg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Vs;break;case"toggle":case"beforetoggle":j=Bg}var ae=(t&4)!==0,Ae=!ae&&(e==="scroll"||e==="scrollend"),w=ae?D!==null?D+"Capture":null:D;ae=[];for(var R=O,N;R!==null;){var G=R;if(N=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||N===null||w===null||(G=Sl(R,w),G!=null&&ae.push(ar(R,G,N))),Ae)break;R=R.return}0<ae.length&&(D=new j(D,ue,null,n,B),q.push({event:D,listeners:ae}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",D&&n!==Ei&&(ue=n.relatedTarget||n.fromElement)&&(xa(ue)||ue[ba]))break e;if((j||D)&&(D=B.window===B?B:(D=B.ownerDocument)?D.defaultView||D.parentWindow:window,j?(ue=n.relatedTarget||n.toElement,j=O,ue=ue?xa(ue):null,ue!==null&&(Ae=f(ue),ae=ue.tag,ue!==Ae||ae!==5&&ae!==27&&ae!==6)&&(ue=null)):(j=null,ue=O),j!==ue)){if(ae=qs,G="onMouseLeave",w="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Vs,G="onPointerLeave",w="onPointerEnter",R="pointer"),Ae=j==null?D:xl(j),N=ue==null?D:xl(ue),D=new ae(G,R+"leave",j,n,B),D.target=Ae,D.relatedTarget=N,G=null,xa(B)===O&&(ae=new ae(w,R+"enter",ue,n,B),ae.target=N,ae.relatedTarget=Ae,G=ae),Ae=G,j&&ue)t:{for(ae=j,w=ue,R=0,N=ae;N;N=el(N))R++;for(N=0,G=w;G;G=el(G))N++;for(;0<R-N;)ae=el(ae),R--;for(;0<N-R;)w=el(w),N--;for(;R--;){if(ae===w||w!==null&&ae===w.alternate)break t;ae=el(ae),w=el(w)}ae=null}else ae=null;j!==null&&jh(q,D,j,ae,!1),ue!==null&&Ae!==null&&jh(q,Ae,ue,ae,!0)}}e:{if(D=O?xl(O):window,j=D.nodeName&&D.nodeName.toLowerCase(),j==="select"||j==="input"&&D.type==="file")var W=Ps;else if($s(D))if(Ws)W=$g;else{W=Kg;var fe=Zg}else j=D.nodeName,!j||j.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&Si(O.elementType)&&(W=Ps):W=Jg;if(W&&(W=W(e,O))){Fs(q,W,n,B);break e}fe&&fe(e,D,O),e==="focusout"&&O&&D.type==="number"&&O.memoizedProps.value!=null&&xi(D,"number",D.value)}switch(fe=O?xl(O):window,e){case"focusin":($s(fe)||fe.contentEditable==="true")&&(Oa=fe,Ui=O,_l=null);break;case"focusout":_l=Ui=Oa=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,uf(q,n,B);break;case"selectionchange":if(Pg)break;case"keydown":case"keyup":uf(q,n,B)}var ne;if(Mi)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else _a?Ks(e,n)&&(le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(le="onCompositionStart");le&&(Xs&&n.locale!=="ko"&&(_a||le!=="onCompositionStart"?le==="onCompositionEnd"&&_a&&(ne=Bs()):(xn=B,Ti="value"in xn?xn.value:xn.textContent,_a=!0)),fe=Eu(O,le),0<fe.length&&(le=new Ys(le,e,null,n,B),q.push({event:le,listeners:fe}),ne?le.data=ne:(ne=Js(n),ne!==null&&(le.data=ne)))),(ne=qg?Yg(e,n):Vg(e,n))&&(le=Eu(O,"onBeforeInput"),0<le.length&&(fe=new Ys("onBeforeInput","beforeinput",null,n,B),q.push({event:fe,listeners:le}),fe.data=ne)),jy(q,e,O,n,B)}Mh(q,t)})}function ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Eu(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=Sl(e,n),r!=null&&a.unshift(ar(e,r,u)),r=Sl(e,t),r!=null&&a.push(ar(e,r,u))),e.tag===3)return a;e=e.return}return[]}function el(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jh(e,t,n,a,r){for(var u=t._reactName,d=[];n!==null&&n!==a;){var g=n,S=g.alternate,O=g.stateNode;if(g=g.tag,S!==null&&S===a)break;g!==5&&g!==26&&g!==27||O===null||(S=O,r?(O=Sl(n,u),O!=null&&d.unshift(ar(n,O,S))):r||(O=Sl(n,u),O!=null&&d.push(ar(n,O,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var Ly=/\r\n?/g,Hy=/\u0000|\uFFFD/g;function zh(e){return(typeof e=="string"?e:""+e).replace(Ly,`
`).replace(Hy,"")}function Uh(e,t){return t=zh(t),zh(e)===t}function Ru(){}function Ce(e,t,n,a,r,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ta(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ta(e,""+a);break;case"className":Nr(e,"class",a);break;case"tabIndex":Nr(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Nr(e,n,a);break;case"style":ks(e,a,u);break;case"data":if(t!=="object"){Nr(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Mr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.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"?(t!=="input"&&Ce(e,t,"name",r.name,r,null),Ce(e,t,"formEncType",r.formEncType,r,null),Ce(e,t,"formMethod",r.formMethod,r,null),Ce(e,t,"formTarget",r.formTarget,r,null)):(Ce(e,t,"encType",r.encType,r,null),Ce(e,t,"method",r.method,r,null),Ce(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Mr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Ru);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Mr(""+a),e.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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":me("beforetoggle",e),me("toggle",e),wr(e,"popover",a);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":wr(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=mg.get(n)||n,wr(e,n,a))}}function uc(e,t,n,a,r,u){switch(n){case"style":ks(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ta(e,a):(typeof a=="number"||typeof a=="bigint")&&Ta(e,""+a);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Ru);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!As.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),u=e[ut]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,r),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):wr(e,n,a)}}}function Ie(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var a=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var d=n[u];if(d!=null)switch(u){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ce(e,t,u,d,n,null)}}r&&Ce(e,t,"srcSet",n.srcSet,n,null),a&&Ce(e,t,"src",n.src,n,null);return;case"input":me("invalid",e);var g=u=d=r=null,S=null,O=null;for(a in n)if(n.hasOwnProperty(a)){var B=n[a];if(B!=null)switch(a){case"name":r=B;break;case"type":d=B;break;case"checked":S=B;break;case"defaultChecked":O=B;break;case"value":u=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:Ce(e,t,a,B,n,null)}}Ds(e,u,g,S,O,d,r,!1),_r(e);return;case"select":me("invalid",e),a=d=u=null;for(r in n)if(n.hasOwnProperty(r)&&(g=n[r],g!=null))switch(r){case"value":u=g;break;case"defaultValue":d=g;break;case"multiple":a=g;default:Ce(e,t,r,g,n,null)}t=u,n=d,e.multiple=!!a,t!=null?Aa(e,!!a,t,!1):n!=null&&Aa(e,!!a,n,!0);return;case"textarea":me("invalid",e),u=r=a=null;for(d in n)if(n.hasOwnProperty(d)&&(g=n[d],g!=null))switch(d){case"value":a=g;break;case"defaultValue":r=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:Ce(e,t,d,g,n,null)}zs(e,a,r,u),_r(e);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(a=n[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ce(e,t,S,a,n,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(a=0;a<nr.length;a++)me(nr[a],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(a=n[O],a!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ce(e,t,O,a,n,null)}return;default:if(Si(t)){for(B in n)n.hasOwnProperty(B)&&(a=n[B],a!==void 0&&uc(e,t,B,a,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(a=n[g],a!=null&&Ce(e,t,g,a,n,null))}function By(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,d=null,g=null,S=null,O=null,B=null;for(j in n){var q=n[j];if(n.hasOwnProperty(j)&&q!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":S=q;default:a.hasOwnProperty(j)||Ce(e,t,j,null,a,q)}}for(var D in a){var j=a[D];if(q=n[D],a.hasOwnProperty(D)&&(j!=null||q!=null))switch(D){case"type":u=j;break;case"name":r=j;break;case"checked":O=j;break;case"defaultChecked":B=j;break;case"value":d=j;break;case"defaultValue":g=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,t));break;default:j!==q&&Ce(e,t,D,j,a,q)}}bi(e,d,g,S,O,B,u,r);return;case"select":j=d=g=D=null;for(u in n)if(S=n[u],n.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":j=S;default:a.hasOwnProperty(u)||Ce(e,t,u,null,a,S)}for(r in a)if(u=a[r],S=n[r],a.hasOwnProperty(r)&&(u!=null||S!=null))switch(r){case"value":D=u;break;case"defaultValue":g=u;break;case"multiple":d=u;default:u!==S&&Ce(e,t,r,u,a,S)}t=g,n=d,a=j,D!=null?Aa(e,!!n,D,!1):!!a!=!!n&&(t!=null?Aa(e,!!n,t,!0):Aa(e,!!n,n?[]:"",!1));return;case"textarea":j=D=null;for(g in n)if(r=n[g],n.hasOwnProperty(g)&&r!=null&&!a.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ce(e,t,g,null,a,r)}for(d in a)if(r=a[d],u=n[d],a.hasOwnProperty(d)&&(r!=null||u!=null))switch(d){case"value":D=r;break;case"defaultValue":j=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&Ce(e,t,d,r,a,u)}js(e,D,j);return;case"option":for(var ue in n)if(D=n[ue],n.hasOwnProperty(ue)&&D!=null&&!a.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:Ce(e,t,ue,null,a,D)}for(S in a)if(D=a[S],j=n[S],a.hasOwnProperty(S)&&D!==j&&(D!=null||j!=null))switch(S){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Ce(e,t,S,D,a,j)}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 ae in n)D=n[ae],n.hasOwnProperty(ae)&&D!=null&&!a.hasOwnProperty(ae)&&Ce(e,t,ae,null,a,D);for(O in a)if(D=a[O],j=n[O],a.hasOwnProperty(O)&&D!==j&&(D!=null||j!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,t));break;default:Ce(e,t,O,D,a,j)}return;default:if(Si(t)){for(var Ae in n)D=n[Ae],n.hasOwnProperty(Ae)&&D!==void 0&&!a.hasOwnProperty(Ae)&&uc(e,t,Ae,void 0,a,D);for(B in a)D=a[B],j=n[B],!a.hasOwnProperty(B)||D===j||D===void 0&&j===void 0||uc(e,t,B,D,a,j);return}}for(var w in n)D=n[w],n.hasOwnProperty(w)&&D!=null&&!a.hasOwnProperty(w)&&Ce(e,t,w,null,a,D);for(q in a)D=a[q],j=n[q],!a.hasOwnProperty(q)||D===j||D==null&&j==null||Ce(e,t,q,D,a,j)}var ic=null,oc=null;function Cu(e){return e.nodeType===9?e:e.ownerDocument}function kh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Lh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function cc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sc=null;function Gy(){var e=window.event;return e&&e.type==="popstate"?e===sc?!1:(sc=e,!0):(sc=null,!1)}var Hh=typeof setTimeout=="function"?setTimeout:void 0,qy=typeof clearTimeout=="function"?clearTimeout:void 0,Bh=typeof Promise=="function"?Promise:void 0,Yy=typeof queueMicrotask=="function"?queueMicrotask:typeof Bh<"u"?function(e){return Bh.resolve(null).then(e).catch(Vy)}:Hh;function Vy(e){setTimeout(function(){throw e})}function kn(e){return e==="head"}function Gh(e,t){var n=t,a=0,r=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(0<a&&8>a){n=a;var d=e.ownerDocument;if(n&1&&lr(d.documentElement),n&2&&lr(d.body),n&4)for(n=d.head,lr(n),d=n.firstChild;d;){var g=d.nextSibling,S=d.nodeName;d[bl]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||n.removeChild(d),d=g}}if(r===0){e.removeChild(u),dr(t);return}r--}else n==="$"||n==="$?"||n==="$!"?r++:a=n.charCodeAt(0)-48;else a=0;n=u}while(n);dr(t)}function fc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":fc(n),vi(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Xy(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[bl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=kt(e.nextSibling),e===null)break}return null}function Qy(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=kt(e.nextSibling),e===null))return null;return e}function dc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Zy(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function kt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var hc=null;function qh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Yh(e,t,n){switch(t=Cu(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function lr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vi(e)}var Dt=new Map,Vh=new Set;function Au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cn=J.d;J.d={f:Ky,r:Jy,D:$y,C:Fy,L:Py,m:Wy,X:eb,S:Iy,M:tb};function Ky(){var e=cn.f(),t=pu();return e||t}function Jy(e){var t=Sa(e);t!==null&&t.tag===5&&t.type==="form"?cd(t):cn.r(e)}var tl=typeof document>"u"?null:document;function Xh(e,t,n){var a=tl;if(a&&typeof t=="string"&&t){var r=At(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Vh.has(r)||(Vh.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Ie(t,"link",e),Ke(t),a.head.appendChild(t)))}}function $y(e){cn.D(e),Xh("dns-prefetch",e,null)}function Fy(e,t){cn.C(e,t),Xh("preconnect",e,t)}function Py(e,t,n){cn.L(e,t,n);var a=tl;if(a&&e&&t){var r='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+At(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+At(n.imageSizes)+'"]')):r+='[href="'+At(e)+'"]';var u=r;switch(t){case"style":u=nl(e);break;case"script":u=al(e)}Dt.has(u)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Dt.set(u,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(rr(u))||t==="script"&&a.querySelector(ur(u))||(t=a.createElement("link"),Ie(t,"link",e),Ke(t),a.head.appendChild(t)))}}function Wy(e,t){cn.m(e,t);var n=tl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+At(a)+'"][href="'+At(e)+'"]',u=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=al(e)}if(!Dt.has(u)&&(e=x({rel:"modulepreload",href:e},t),Dt.set(u,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ur(u)))return}a=n.createElement("link"),Ie(a,"link",e),Ke(a),n.head.appendChild(a)}}}function Iy(e,t,n){cn.S(e,t,n);var a=tl;if(a&&e){var r=Ea(a).hoistableStyles,u=nl(e);t=t||"default";var d=r.get(u);if(!d){var g={loading:0,preload:null};if(d=a.querySelector(rr(u)))g.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Dt.get(u))&&mc(e,n);var S=d=a.createElement("link");Ke(S),Ie(S,"link",e),S._p=new Promise(function(O,B){S.onload=O,S.onerror=B}),S.addEventListener("load",function(){g.loading|=1}),S.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Tu(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:g},r.set(u,d)}}}function eb(e,t){cn.X(e,t);var n=tl;if(n&&e){var a=Ea(n).hoistableScripts,r=al(e),u=a.get(r);u||(u=n.querySelector(ur(r)),u||(e=x({src:e,async:!0},t),(t=Dt.get(r))&&vc(e,t),u=n.createElement("script"),Ke(u),Ie(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(r,u))}}function tb(e,t){cn.M(e,t);var n=tl;if(n&&e){var a=Ea(n).hoistableScripts,r=al(e),u=a.get(r);u||(u=n.querySelector(ur(r)),u||(e=x({src:e,async:!0,type:"module"},t),(t=Dt.get(r))&&vc(e,t),u=n.createElement("script"),Ke(u),Ie(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(r,u))}}function Qh(e,t,n,a){var r=(r=ie.current)?Au(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=nl(n.href),n=Ea(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=nl(n.href);var u=Ea(r).hoistableStyles,d=u.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=r.querySelector(rr(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Dt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Dt.set(e,n),u||nb(r,e,n,d.state))),t&&a===null)throw Error(o(528,""));return d}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=al(n),n=Ea(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function nl(e){return'href="'+At(e)+'"'}function rr(e){return'link[rel="stylesheet"]['+e+"]"}function Zh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function nb(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ie(t,"link",n),Ke(t),e.head.appendChild(t))}function al(e){return'[src="'+At(e)+'"]'}function ur(e){return"script[async]"+e}function Kh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+At(n.href)+'"]');if(a)return t.instance=a,Ke(a),a;var r=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ke(a),Ie(a,"style",r),Tu(a,n.precedence,e),t.instance=a;case"stylesheet":r=nl(n.href);var u=e.querySelector(rr(r));if(u)return t.state.loading|=4,t.instance=u,Ke(u),u;a=Zh(n),(r=Dt.get(r))&&mc(a,r),u=(e.ownerDocument||e).createElement("link"),Ke(u);var d=u;return d._p=new Promise(function(g,S){d.onload=g,d.onerror=S}),Ie(u,"link",a),t.state.loading|=4,Tu(u,n.precedence,e),t.instance=u;case"script":return u=al(n.src),(r=e.querySelector(ur(u)))?(t.instance=r,Ke(r),r):(a=n,(r=Dt.get(u))&&(a=x({},n),vc(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ke(r),Ie(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Tu(a,n.precedence,e));return t.instance}function Tu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,u=r,d=0;d<a.length;d++){var g=a[d];if(g.dataset.precedence===t)u=g;else if(u!==r)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var wu=null;function Jh(e,t,n){if(wu===null){var a=new Map,r=wu=new Map;r.set(n,a)}else r=wu,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var u=n[r];if(!(u[bl]||u[nt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(t)||"";d=e+d;var g=a.get(d);g?g.push(u):a.set(d,[u])}}return a}function $h(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ab(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Fh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var ir=null;function lb(){}function rb(e,t,n){if(ir===null)throw Error(o(475));var a=ir;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var r=nl(n.href),u=e.querySelector(rr(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Nu.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=u,Ke(u);return}u=e.ownerDocument||e,n=Zh(n),(r=Dt.get(r))&&mc(n,r),u=u.createElement("link"),Ke(u);var d=u;d._p=new Promise(function(g,S){d.onload=g,d.onerror=S}),Ie(u,"link",n),t.instance=u}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Nu.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function ub(){if(ir===null)throw Error(o(475));var e=ir;return e.stylesheets&&e.count===0&&pc(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&pc(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Nu(){if(this.count--,this.count===0){if(this.stylesheets)pc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _u=null;function pc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_u=new Map,t.forEach(ib,e),_u=null,Nu.call(e))}function ib(e,t){if(!(t.state.loading&4)){var n=_u.get(e);if(n)var a=n.get(null);else{n=new Map,_u.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var d=r[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}r=t.instance,d=r.getAttribute("data-precedence"),u=n.get(d)||a,u===a&&n.set(null,r),n.set(d,r),this.count++,a=Nu.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),u?u.parentNode.insertBefore(r,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var or={$$typeof:Y,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function ob(e,t,n,a,r,u,d,g){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fi(0),this.hiddenUpdates=fi(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Ph(e,t,n,a,r,u,d,g,S,O,B,q){return e=new ob(e,t,n,d,g,S,O,q),t=1,u===!0&&(t|=24),u=pt(3,null,null,t),e.current=u,u.stateNode=e,t=Fi(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},eo(u),e}function Wh(e){return e?(e=za,e):za}function Ih(e,t,n,a,r,u){r=Wh(r),a.context===null?a.context=r:a.pendingContext=r,a=Rn(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=Cn(e,a,t),n!==null&&(St(n,e,t),Hl(n,e,t))}function em(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gc(e,t){em(e,t),(e=e.alternate)&&em(e,t)}function tm(e){if(e.tag===13){var t=ja(e,67108864);t!==null&&St(t,e,67108864),gc(e,67108864)}}var Ou=!0;function cb(e,t,n,a){var r=U.T;U.T=null;var u=J.p;try{J.p=2,yc(e,t,n,a)}finally{J.p=u,U.T=r}}function sb(e,t,n,a){var r=U.T;U.T=null;var u=J.p;try{J.p=8,yc(e,t,n,a)}finally{J.p=u,U.T=r}}function yc(e,t,n,a){if(Ou){var r=bc(a);if(r===null)rc(e,t,a,Mu,n),am(e,a);else if(db(r,e,t,n,a))a.stopPropagation();else if(am(e,a),t&4&&-1<fb.indexOf(e)){for(;r!==null;){var u=Sa(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=Kn(u.pendingLanes);if(d!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var S=1<<31-mt(d);g.entanglements[1]|=S,d&=~S}Xt(u),(Se&6)===0&&(mu=Bt()+500,tr(0))}}break;case 13:g=ja(u,2),g!==null&&St(g,u,2),pu(),gc(u,2)}if(u=bc(a),u===null&&rc(e,t,a,Mu,n),u===r)break;r=u}r!==null&&a.stopPropagation()}else rc(e,t,a,null,n)}}function bc(e){return e=Ri(e),xc(e)}var Mu=null;function xc(e){if(Mu=null,e=xa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Mu=e,null}function nm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fp()){case vs:return 2;case ps:return 8;case Rr:case Pp:return 32;case gs:return 268435456;default:return 32}default:return 32}}var Sc=!1,Ln=null,Hn=null,Bn=null,cr=new Map,sr=new Map,Gn=[],fb="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 am(e,t){switch(e){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":Hn=null;break;case"mouseover":case"mouseout":Bn=null;break;case"pointerover":case"pointerout":cr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sr.delete(t.pointerId)}}function fr(e,t,n,a,r,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[r]},t!==null&&(t=Sa(t),t!==null&&tm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function db(e,t,n,a,r){switch(t){case"focusin":return Ln=fr(Ln,e,t,n,a,r),!0;case"dragenter":return Hn=fr(Hn,e,t,n,a,r),!0;case"mouseover":return Bn=fr(Bn,e,t,n,a,r),!0;case"pointerover":var u=r.pointerId;return cr.set(u,fr(cr.get(u)||null,e,t,n,a,r)),!0;case"gotpointercapture":return u=r.pointerId,sr.set(u,fr(sr.get(u)||null,e,t,n,a,r)),!0}return!1}function lm(e){var t=xa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,rg(e.priority,function(){if(n.tag===13){var a=xt();a=di(a);var r=ja(n,a);r!==null&&St(r,n,a),gc(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ei=a,n.target.dispatchEvent(a),Ei=null}else return t=Sa(n),t!==null&&tm(t),e.blockedOn=n,!1;t.shift()}return!0}function rm(e,t,n){Du(e)&&n.delete(t)}function hb(){Sc=!1,Ln!==null&&Du(Ln)&&(Ln=null),Hn!==null&&Du(Hn)&&(Hn=null),Bn!==null&&Du(Bn)&&(Bn=null),cr.forEach(rm),sr.forEach(rm)}function ju(e,t){e.blockedOn===t&&(e.blockedOn=null,Sc||(Sc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,hb)))}var zu=null;function um(e){zu!==e&&(zu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){zu===e&&(zu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(xc(a||n)===null)continue;break}var u=Sa(n);u!==null&&(e.splice(t,3),t-=3,xo(u,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function dr(e){function t(S){return ju(S,e)}Ln!==null&&ju(Ln,e),Hn!==null&&ju(Hn,e),Bn!==null&&ju(Bn,e),cr.forEach(t),sr.forEach(t);for(var n=0;n<Gn.length;n++){var a=Gn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)lm(n),n.blockedOn===null&&Gn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],u=n[a+1],d=r[ut]||null;if(typeof u=="function")d||um(n);else if(d){var g=null;if(u&&u.hasAttribute("formAction")){if(r=u,d=u[ut]||null)g=d.formAction;else if(xc(r)!==null)continue}else g=d.action;typeof g=="function"?n[a+1]=g:(n.splice(a,3),a-=3),um(n)}}}function Ec(e){this._internalRoot=e}Uu.prototype.render=Ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,a=xt();Ih(n,a,e,t,null,null)},Uu.prototype.unmount=Ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ih(e.current,2,null,e,null,null),pu(),t[ba]=null}};function Uu(e){this._internalRoot=e}Uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Es();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gn.length&&t!==0&&t<Gn[n].priority;n++);Gn.splice(n,0,e),n===0&&lm(e)}};var im=i.version;if(im!=="19.1.0")throw Error(o(527,im,"19.1.0"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var mb={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{pl=ku.inject(mb),ht=ku}catch{}}return vr.createRoot=function(e,t){if(!s(e))throw Error(o(299));var n=!1,a="",r=Rd,u=Cd,d=Ad,g=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(g=t.unstable_transitionCallbacks)),t=Ph(e,1,!1,null,null,n,a,r,u,d,g,null),e[ba]=t.current,lc(e),new Ec(t)},vr.hydrateRoot=function(e,t,n){if(!s(e))throw Error(o(299));var a=!1,r="",u=Rd,d=Cd,g=Ad,S=null,O=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(S=n.unstable_transitionCallbacks),n.formState!==void 0&&(O=n.formState)),t=Ph(e,1,!0,t,n??null,a,r,u,d,g,S,O),t.context=Wh(null),n=t.current,a=xt(),a=di(a),r=Rn(a),r.callback=null,Cn(n,r,a),n=a,t.current.lanes=n,yl(t,n),Xt(t),e[ba]=t.current,lc(e),new Uu(t)},vr.version="19.1.0",vr}var Em;function J0(){if(Em)return Nc.exports;Em=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Nc.exports=K0(),Nc.exports}var $0=J0();function hv(l){var i,c,o="";if(typeof l=="string"||typeof l=="number")o+=l;else if(typeof l=="object")if(Array.isArray(l)){var s=l.length;for(i=0;i<s;i++)l[i]&&(c=hv(l[i]))&&(o&&(o+=" "),o+=c)}else for(c in l)l[c]&&(o&&(o+=" "),o+=c);return o}function mv(){for(var l,i,c=0,o="",s=arguments.length;c<s;c++)(l=arguments[c])&&(i=hv(l))&&(o&&(o+=" "),o+=i);return o}const ns="-",F0=l=>{const i=W0(l),{conflictingClassGroups:c,conflictingClassGroupModifiers:o}=l;return{getClassGroupId:p=>{const h=p.split(ns);return h[0]===""&&h.length!==1&&h.shift(),vv(h,i)||P0(p)},getConflictingClassGroupIds:(p,h)=>{const v=c[p]||[];return h&&o[p]?[...v,...o[p]]:v}}},vv=(l,i)=>{var p;if(l.length===0)return i.classGroupId;const c=l[0],o=i.nextPart.get(c),s=o?vv(l.slice(1),o):void 0;if(s)return s;if(i.validators.length===0)return;const f=l.join(ns);return(p=i.validators.find(({validator:h})=>h(f)))==null?void 0:p.classGroupId},Rm=/^\[(.+)\]$/,P0=l=>{if(Rm.test(l)){const i=Rm.exec(l)[1],c=i==null?void 0:i.substring(0,i.indexOf(":"));if(c)return"arbitrary.."+c}},W0=l=>{const{theme:i,classGroups:c}=l,o={nextPart:new Map,validators:[]};for(const s in c)Vc(c[s],o,s,i);return o},Vc=(l,i,c,o)=>{l.forEach(s=>{if(typeof s=="string"){const f=s===""?i:Cm(i,s);f.classGroupId=c;return}if(typeof s=="function"){if(I0(s)){Vc(s(o),i,c,o);return}i.validators.push({validator:s,classGroupId:c});return}Object.entries(s).forEach(([f,p])=>{Vc(p,Cm(i,f),c,o)})})},Cm=(l,i)=>{let c=l;return i.split(ns).forEach(o=>{c.nextPart.has(o)||c.nextPart.set(o,{nextPart:new Map,validators:[]}),c=c.nextPart.get(o)}),c},I0=l=>l.isThemeGetter,e1=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,c=new Map,o=new Map;const s=(f,p)=>{c.set(f,p),i++,i>l&&(i=0,o=c,c=new Map)};return{get(f){let p=c.get(f);if(p!==void 0)return p;if((p=o.get(f))!==void 0)return s(f,p),p},set(f,p){c.has(f)?c.set(f,p):s(f,p)}}},Xc="!",Qc=":",t1=Qc.length,n1=l=>{const{prefix:i,experimentalParseClassName:c}=l;let o=s=>{const f=[];let p=0,h=0,v=0,m;for(let M=0;M<s.length;M++){let A=s[M];if(p===0&&h===0){if(A===Qc){f.push(s.slice(v,M)),v=M+t1;continue}if(A==="/"){m=M;continue}}A==="["?p++:A==="]"?p--:A==="("?h++:A===")"&&h--}const x=f.length===0?s:s.substring(v),C=a1(x),T=C!==x,k=m&&m>v?m-v:void 0;return{modifiers:f,hasImportantModifier:T,baseClassName:C,maybePostfixModifierPosition:k}};if(i){const s=i+Qc,f=o;o=p=>p.startsWith(s)?f(p.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(c){const s=o;o=f=>c({className:f,parseClassName:s})}return o},a1=l=>l.endsWith(Xc)?l.substring(0,l.length-1):l.startsWith(Xc)?l.substring(1):l,l1=l=>{const i=Object.fromEntries(l.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const s=[];let f=[];return o.forEach(p=>{p[0]==="["||i[p]?(s.push(...f.sort(),p),f=[]):f.push(p)}),s.push(...f.sort()),s}},r1=l=>({cache:e1(l.cacheSize),parseClassName:n1(l),sortModifiers:l1(l),...F0(l)}),u1=/\s+/,i1=(l,i)=>{const{parseClassName:c,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:f}=i,p=[],h=l.trim().split(u1);let v="";for(let m=h.length-1;m>=0;m-=1){const x=h[m],{isExternal:C,modifiers:T,hasImportantModifier:k,baseClassName:M,maybePostfixModifierPosition:A}=c(x);if(C){v=x+(v.length>0?" "+v:v);continue}let _=!!A,z=o(_?M.substring(0,A):M);if(!z){if(!_){v=x+(v.length>0?" "+v:v);continue}if(z=o(M),!z){v=x+(v.length>0?" "+v:v);continue}_=!1}const L=f(T).join(":"),Y=k?L+Xc:L,H=Y+z;if(p.includes(H))continue;p.push(H);const V=s(z,_);for(let te=0;te<V.length;++te){const $=V[te];p.push(Y+$)}v=x+(v.length>0?" "+v:v)}return v};function o1(){let l=0,i,c,o="";for(;l<arguments.length;)(i=arguments[l++])&&(c=pv(i))&&(o&&(o+=" "),o+=c);return o}const pv=l=>{if(typeof l=="string")return l;let i,c="";for(let o=0;o<l.length;o++)l[o]&&(i=pv(l[o]))&&(c&&(c+=" "),c+=i);return c};function c1(l,...i){let c,o,s,f=p;function p(v){const m=i.reduce((x,C)=>C(x),l());return c=r1(m),o=c.cache.get,s=c.cache.set,f=h,h(v)}function h(v){const m=o(v);if(m)return m;const x=i1(v,c);return s(v,x),x}return function(){return f(o1.apply(null,arguments))}}const Ze=l=>{const i=c=>c[l]||[];return i.isThemeGetter=!0,i},gv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,s1=/^\d+\/\d+$/,f1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,d1=/\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$/,h1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,m1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,v1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ll=l=>s1.test(l),se=l=>!!l&&!Number.isNaN(Number(l)),Yn=l=>!!l&&Number.isInteger(Number(l)),Mc=l=>l.endsWith("%")&&se(l.slice(0,-1)),sn=l=>f1.test(l),p1=()=>!0,g1=l=>d1.test(l)&&!h1.test(l),bv=()=>!1,y1=l=>m1.test(l),b1=l=>v1.test(l),x1=l=>!I(l)&&!ee(l),S1=l=>ml(l,Ev,bv),I=l=>gv.test(l),fa=l=>ml(l,Rv,g1),Dc=l=>ml(l,T1,se),Am=l=>ml(l,xv,bv),E1=l=>ml(l,Sv,b1),Hu=l=>ml(l,Cv,y1),ee=l=>yv.test(l),pr=l=>vl(l,Rv),R1=l=>vl(l,w1),Tm=l=>vl(l,xv),C1=l=>vl(l,Ev),A1=l=>vl(l,Sv),Bu=l=>vl(l,Cv,!0),ml=(l,i,c)=>{const o=gv.exec(l);return o?o[1]?i(o[1]):c(o[2]):!1},vl=(l,i,c=!1)=>{const o=yv.exec(l);return o?o[1]?i(o[1]):c:!1},xv=l=>l==="position"||l==="percentage",Sv=l=>l==="image"||l==="url",Ev=l=>l==="length"||l==="size"||l==="bg-size",Rv=l=>l==="length",T1=l=>l==="number",w1=l=>l==="family-name",Cv=l=>l==="shadow",N1=()=>{const l=Ze("color"),i=Ze("font"),c=Ze("text"),o=Ze("font-weight"),s=Ze("tracking"),f=Ze("leading"),p=Ze("breakpoint"),h=Ze("container"),v=Ze("spacing"),m=Ze("radius"),x=Ze("shadow"),C=Ze("inset-shadow"),T=Ze("text-shadow"),k=Ze("drop-shadow"),M=Ze("blur"),A=Ze("perspective"),_=Ze("aspect"),z=Ze("ease"),L=Ze("animate"),Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...H(),ee,I],te=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],Q=()=>[ee,I,v],re=()=>[ll,"full","auto",...Q()],xe=()=>[Yn,"none","subgrid",ee,I],De=()=>["auto",{span:["full",Yn,ee,I]},Yn,ee,I],je=()=>[Yn,"auto",ee,I],Et=()=>["auto","min","max","fr",ee,I],Rt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_e=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...Q()],J=()=>[ll,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Q()],Z=()=>[l,ee,I],be=()=>[...H(),Tm,Am,{position:[ee,I]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",C1,S1,{size:[ee,I]}],F=()=>[Mc,pr,fa],K=()=>["","none","full",m,ee,I],P=()=>["",se,pr,fa],de=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[se,Mc,Tm,Am],Te=()=>["","none",M,ee,I],dt=()=>["none",se,ee,I],vn=()=>["none",se,ee,I],pn=()=>[se,ee,I],gn=()=>[ll,"full",...Q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sn],breakpoint:[sn],color:[p1],container:[sn],"drop-shadow":[sn],ease:["in","out","in-out"],font:[x1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sn],shadow:[sn],spacing:["px",se],text:[sn],"text-shadow":[sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ll,I,ee,_]}],container:["container"],columns:[{columns:[se,I,ee,h]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:V()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:re()}],"inset-x":[{"inset-x":re()}],"inset-y":[{"inset-y":re()}],start:[{start:re()}],end:[{end:re()}],top:[{top:re()}],right:[{right:re()}],bottom:[{bottom:re()}],left:[{left:re()}],visibility:["visible","invisible","collapse"],z:[{z:[Yn,"auto",ee,I]}],basis:[{basis:[ll,"full","auto",h,...Q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,ll,"auto","initial","none",I]}],grow:[{grow:["",se,ee,I]}],shrink:[{shrink:["",se,ee,I]}],order:[{order:[Yn,"first","last","none",ee,I]}],"grid-cols":[{"grid-cols":xe()}],"col-start-end":[{col:De()}],"col-start":[{"col-start":je()}],"col-end":[{"col-end":je()}],"grid-rows":[{"grid-rows":xe()}],"row-start-end":[{row:De()}],"row-start":[{"row-start":je()}],"row-end":[{"row-end":je()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Et()}],"auto-rows":[{"auto-rows":Et()}],gap:[{gap:Q()}],"gap-x":[{"gap-x":Q()}],"gap-y":[{"gap-y":Q()}],"justify-content":[{justify:[...Rt(),"normal"]}],"justify-items":[{"justify-items":[..._e(),"normal"]}],"justify-self":[{"justify-self":["auto",..._e()]}],"align-content":[{content:["normal",...Rt()]}],"align-items":[{items:[..._e(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._e(),{baseline:["","last"]}]}],"place-content":[{"place-content":Rt()}],"place-items":[{"place-items":[..._e(),"baseline"]}],"place-self":[{"place-self":["auto",..._e()]}],p:[{p:Q()}],px:[{px:Q()}],py:[{py:Q()}],ps:[{ps:Q()}],pe:[{pe:Q()}],pt:[{pt:Q()}],pr:[{pr:Q()}],pb:[{pb:Q()}],pl:[{pl:Q()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":Q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Q()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[h,"screen",...J()]}],"min-w":[{"min-w":[h,"screen","none",...J()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[p]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",c,pr,fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ee,Dc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mc,I]}],"font-family":[{font:[R1,I,i]}],"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:[s,ee,I]}],"line-clamp":[{"line-clamp":[se,"none",ee,Dc]}],leading:[{leading:[f,...Q()]}],"list-image":[{"list-image":["none",ee,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",ee,fa]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[se,"auto",ee,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,I]}],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",ee,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yn,ee,I],radial:["",ee,I],conic:[Yn,ee,I]},A1,E1]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,ee,I]}],"outline-w":[{outline:["",se,pr,fa]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",x,Bu,Hu]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",C,Bu,Hu]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[se,fa]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",T,Bu,Hu]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[se,ee,I]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[ee,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"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":H()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,I]}],filter:[{filter:["","none",ee,I]}],blur:[{blur:Te()}],brightness:[{brightness:[se,ee,I]}],contrast:[{contrast:[se,ee,I]}],"drop-shadow":[{"drop-shadow":["","none",k,Bu,Hu]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",se,ee,I]}],"hue-rotate":[{"hue-rotate":[se,ee,I]}],invert:[{invert:["",se,ee,I]}],saturate:[{saturate:[se,ee,I]}],sepia:[{sepia:["",se,ee,I]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,I]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[se,ee,I]}],"backdrop-contrast":[{"backdrop-contrast":[se,ee,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,ee,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,ee,I]}],"backdrop-invert":[{"backdrop-invert":["",se,ee,I]}],"backdrop-opacity":[{"backdrop-opacity":[se,ee,I]}],"backdrop-saturate":[{"backdrop-saturate":[se,ee,I]}],"backdrop-sepia":[{"backdrop-sepia":["",se,ee,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Q()}],"border-spacing-x":[{"border-spacing-x":Q()}],"border-spacing-y":[{"border-spacing-y":Q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",ee,I]}],ease:[{ease:["linear","initial",z,ee,I]}],delay:[{delay:[se,ee,I]}],animate:[{animate:["none",L,ee,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,ee,I]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:dt()}],"rotate-x":[{"rotate-x":dt()}],"rotate-y":[{"rotate-y":dt()}],"rotate-z":[{"rotate-z":dt()}],scale:[{scale:vn()}],"scale-x":[{"scale-x":vn()}],"scale-y":[{"scale-y":vn()}],"scale-z":[{"scale-z":vn()}],"scale-3d":["scale-3d"],skew:[{skew:pn()}],"skew-x":[{"skew-x":pn()}],"skew-y":[{"skew-y":pn()}],transform:[{transform:[ee,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:gn()}],"translate-x":[{"translate-x":gn()}],"translate-y":[{"translate-y":gn()}],"translate-z":[{"translate-z":gn()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"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",ee,I]}],"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":Q()}],"scroll-mx":[{"scroll-mx":Q()}],"scroll-my":[{"scroll-my":Q()}],"scroll-ms":[{"scroll-ms":Q()}],"scroll-me":[{"scroll-me":Q()}],"scroll-mt":[{"scroll-mt":Q()}],"scroll-mr":[{"scroll-mr":Q()}],"scroll-mb":[{"scroll-mb":Q()}],"scroll-ml":[{"scroll-ml":Q()}],"scroll-p":[{"scroll-p":Q()}],"scroll-px":[{"scroll-px":Q()}],"scroll-py":[{"scroll-py":Q()}],"scroll-ps":[{"scroll-ps":Q()}],"scroll-pe":[{"scroll-pe":Q()}],"scroll-pt":[{"scroll-pt":Q()}],"scroll-pr":[{"scroll-pr":Q()}],"scroll-pb":[{"scroll-pb":Q()}],"scroll-pl":[{"scroll-pl":Q()}],"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",ee,I]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[se,pr,fa,Dc]}],stroke:[{stroke:["none",...Z()]}],"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"]}},_1=c1(N1);function ft(...l){return _1(mv(l))}function fn({className:l,...i}){return y.jsx("div",{"data-slot":"card",className:ft("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",l),...i})}function ol({className:l,...i}){return y.jsx("div",{"data-slot":"card-header",className:ft("@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",l),...i})}function Xn({className:l,...i}){return y.jsx("div",{"data-slot":"card-content",className:ft("px-6",l),...i})}function Fu({className:l,type:i,...c}){return y.jsx("input",{type:i,"data-slot":"input",className:ft("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",l),...c})}function wm(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}function Av(...l){return i=>{let c=!1;const o=l.map(s=>{const f=wm(s,i);return!c&&typeof f=="function"&&(c=!0),f});if(c)return()=>{for(let s=0;s<o.length;s++){const f=o[s];typeof f=="function"?f():wm(l[s],null)}}}}function tt(...l){return b.useCallback(Av(...l),l)}function yr(l){const i=M1(l),c=b.forwardRef((o,s)=>{const{children:f,...p}=o,h=b.Children.toArray(f),v=h.find(j1);if(v){const m=v.props.children,x=h.map(C=>C===v?b.Children.count(m)>1?b.Children.only(null):b.isValidElement(m)?m.props.children:null:C);return y.jsx(i,{...p,ref:s,children:b.isValidElement(m)?b.cloneElement(m,void 0,x):null})}return y.jsx(i,{...p,ref:s,children:f})});return c.displayName=`${l}.Slot`,c}var O1=yr("Slot");function M1(l){const i=b.forwardRef((c,o)=>{const{children:s,...f}=c;if(b.isValidElement(s)){const p=U1(s),h=z1(f,s.props);return s.type!==b.Fragment&&(h.ref=o?Av(o,p):p),b.cloneElement(s,h)}return b.Children.count(s)>1?b.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var D1=Symbol("radix.slottable");function j1(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===D1}function z1(l,i){const c={...i};for(const o in i){const s=l[o],f=i[o];/^on[A-Z]/.test(o)?s&&f?c[o]=(...h)=>{const v=f(...h);return s(...h),v}:s&&(c[o]=s):o==="style"?c[o]={...s,...f}:o==="className"&&(c[o]=[s,f].filter(Boolean).join(" "))}return{...l,...c}}function U1(l){var o,s;let i=(o=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:o.get,c=i&&"isReactWarning"in i&&i.isReactWarning;return c?l.ref:(i=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,c=i&&"isReactWarning"in i&&i.isReactWarning,c?l.props.ref:l.props.ref||l.ref)}var k1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=k1.reduce((l,i)=>{const c=yr(`Primitive.${i}`),o=b.forwardRef((s,f)=>{const{asChild:p,...h}=s,v=p?c:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(v,{...h,ref:f})});return o.displayName=`Primitive.${i}`,{...l,[i]:o}},{});function L1(l,i){l&&dv.flushSync(()=>l.dispatchEvent(i))}var H1="Label",Pu=b.forwardRef((l,i)=>y.jsx(Me.label,{...l,ref:i,onMouseDown:c=>{var s;c.target.closest("button, input, select, textarea")||((s=l.onMouseDown)==null||s.call(l,c),!c.defaultPrevented&&c.detail>1&&c.preventDefault())}}));Pu.displayName=H1;function qe(l,i,{checkForDefaultPrevented:c=!0}={}){return function(s){if(l==null||l(s),c===!1||!s.defaultPrevented)return i==null?void 0:i(s)}}function B1(l,i){const c=b.createContext(i),o=f=>{const{children:p,...h}=f,v=b.useMemo(()=>h,Object.values(h));return y.jsx(c.Provider,{value:v,children:p})};o.displayName=l+"Provider";function s(f){const p=b.useContext(c);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[o,s]}function Zn(l,i=[]){let c=[];function o(f,p){const h=b.createContext(p),v=c.length;c=[...c,p];const m=C=>{var z;const{scope:T,children:k,...M}=C,A=((z=T==null?void 0:T[l])==null?void 0:z[v])||h,_=b.useMemo(()=>M,Object.values(M));return y.jsx(A.Provider,{value:_,children:k})};m.displayName=f+"Provider";function x(C,T){var A;const k=((A=T==null?void 0:T[l])==null?void 0:A[v])||h,M=b.useContext(k);if(M)return M;if(p!==void 0)return p;throw new Error(`\`${C}\` must be used within \`${f}\``)}return[m,x]}const s=()=>{const f=c.map(p=>b.createContext(p));return function(h){const v=(h==null?void 0:h[l])||f;return b.useMemo(()=>({[`__scope${l}`]:{...h,[l]:v}}),[h,v])}};return s.scopeName=l,[o,G1(s,...i)]}function G1(...l){const i=l[0];if(l.length===1)return i;const c=()=>{const o=l.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(f){const p=o.reduce((h,{useScope:v,scopeName:m})=>{const C=v(f)[`__scope${m}`];return{...h,...C}},{});return b.useMemo(()=>({[`__scope${i.scopeName}`]:p}),[p])}};return c.scopeName=i.scopeName,c}function Tv(l){const i=l+"CollectionProvider",[c,o]=Zn(i),[s,f]=c(i,{collectionRef:{current:null},itemMap:new Map}),p=A=>{const{scope:_,children:z}=A,L=Ge.useRef(null),Y=Ge.useRef(new Map).current;return y.jsx(s,{scope:_,itemMap:Y,collectionRef:L,children:z})};p.displayName=i;const h=l+"CollectionSlot",v=yr(h),m=Ge.forwardRef((A,_)=>{const{scope:z,children:L}=A,Y=f(h,z),H=tt(_,Y.collectionRef);return y.jsx(v,{ref:H,children:L})});m.displayName=h;const x=l+"CollectionItemSlot",C="data-radix-collection-item",T=yr(x),k=Ge.forwardRef((A,_)=>{const{scope:z,children:L,...Y}=A,H=Ge.useRef(null),V=tt(_,H),te=f(x,z);return Ge.useEffect(()=>(te.itemMap.set(H,{ref:H,...Y}),()=>void te.itemMap.delete(H))),y.jsx(T,{[C]:"",ref:V,children:L})});k.displayName=x;function M(A){const _=f(l+"CollectionConsumer",A);return Ge.useCallback(()=>{const L=_.collectionRef.current;if(!L)return[];const Y=Array.from(L.querySelectorAll(`[${C}]`));return Array.from(_.itemMap.values()).sort((te,$)=>Y.indexOf(te.ref.current)-Y.indexOf($.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:p,Slot:m,ItemSlot:k},M,o]}var ma=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},q1=Jm[" useId ".trim().toString()]||(()=>{}),Y1=0;function cl(l){const[i,c]=b.useState(q1());return ma(()=>{c(o=>o??String(Y1++))},[l]),i?`radix-${i}`:""}function fl(l){const i=b.useRef(l);return b.useEffect(()=>{i.current=l}),b.useMemo(()=>(...c)=>{var o;return(o=i.current)==null?void 0:o.call(i,...c)},[])}var V1=Jm[" useInsertionEffect ".trim().toString()]||ma;function ga({prop:l,defaultProp:i,onChange:c=()=>{},caller:o}){const[s,f,p]=X1({defaultProp:i,onChange:c}),h=l!==void 0,v=h?l:s;{const x=b.useRef(l!==void 0);b.useEffect(()=>{const C=x.current;C!==h&&console.warn(`${o} is changing from ${C?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=h},[h,o])}const m=b.useCallback(x=>{var C;if(h){const T=Q1(x)?x(l):x;T!==l&&((C=p.current)==null||C.call(p,T))}else f(x)},[h,l,f,p]);return[v,m]}function X1({defaultProp:l,onChange:i}){const[c,o]=b.useState(l),s=b.useRef(c),f=b.useRef(i);return V1(()=>{f.current=i},[i]),b.useEffect(()=>{var p;s.current!==c&&((p=f.current)==null||p.call(f,c),s.current=c)},[c,s]),[c,o,f]}function Q1(l){return typeof l=="function"}var Z1=b.createContext(void 0);function as(l){const i=b.useContext(Z1);return l||i||"ltr"}var jc="rovingFocusGroup.onEntryFocus",K1={bubbles:!1,cancelable:!0},Er="RovingFocusGroup",[Zc,wv,J1]=Tv(Er),[$1,Nv]=Zn(Er,[J1]),[F1,P1]=$1(Er),_v=b.forwardRef((l,i)=>y.jsx(Zc.Provider,{scope:l.__scopeRovingFocusGroup,children:y.jsx(Zc.Slot,{scope:l.__scopeRovingFocusGroup,children:y.jsx(W1,{...l,ref:i})})}));_v.displayName=Er;var W1=b.forwardRef((l,i)=>{const{__scopeRovingFocusGroup:c,orientation:o,loop:s=!1,dir:f,currentTabStopId:p,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:m,preventScrollOnEntryFocus:x=!1,...C}=l,T=b.useRef(null),k=tt(i,T),M=as(f),[A,_]=ga({prop:p,defaultProp:h??null,onChange:v,caller:Er}),[z,L]=b.useState(!1),Y=fl(m),H=wv(c),V=b.useRef(!1),[te,$]=b.useState(0);return b.useEffect(()=>{const Q=T.current;if(Q)return Q.addEventListener(jc,Y),()=>Q.removeEventListener(jc,Y)},[Y]),y.jsx(F1,{scope:c,orientation:o,dir:M,loop:s,currentTabStopId:A,onItemFocus:b.useCallback(Q=>_(Q),[_]),onItemShiftTab:b.useCallback(()=>L(!0),[]),onFocusableItemAdd:b.useCallback(()=>$(Q=>Q+1),[]),onFocusableItemRemove:b.useCallback(()=>$(Q=>Q-1),[]),children:y.jsx(Me.div,{tabIndex:z||te===0?-1:0,"data-orientation":o,...C,ref:k,style:{outline:"none",...l.style},onMouseDown:qe(l.onMouseDown,()=>{V.current=!0}),onFocus:qe(l.onFocus,Q=>{const re=!V.current;if(Q.target===Q.currentTarget&&re&&!z){const xe=new CustomEvent(jc,K1);if(Q.currentTarget.dispatchEvent(xe),!xe.defaultPrevented){const De=H().filter(U=>U.focusable),je=De.find(U=>U.active),Et=De.find(U=>U.id===A),_e=[je,Et,...De].filter(Boolean).map(U=>U.ref.current);Dv(_e,x)}}V.current=!1}),onBlur:qe(l.onBlur,()=>L(!1))})})}),Ov="RovingFocusGroupItem",Mv=b.forwardRef((l,i)=>{const{__scopeRovingFocusGroup:c,focusable:o=!0,active:s=!1,tabStopId:f,children:p,...h}=l,v=cl(),m=f||v,x=P1(Ov,c),C=x.currentTabStopId===m,T=wv(c),{onFocusableItemAdd:k,onFocusableItemRemove:M,currentTabStopId:A}=x;return b.useEffect(()=>{if(o)return k(),()=>M()},[o,k,M]),y.jsx(Zc.ItemSlot,{scope:c,id:m,focusable:o,active:s,children:y.jsx(Me.span,{tabIndex:C?0:-1,"data-orientation":x.orientation,...h,ref:i,onMouseDown:qe(l.onMouseDown,_=>{o?x.onItemFocus(m):_.preventDefault()}),onFocus:qe(l.onFocus,()=>x.onItemFocus(m)),onKeyDown:qe(l.onKeyDown,_=>{if(_.key==="Tab"&&_.shiftKey){x.onItemShiftTab();return}if(_.target!==_.currentTarget)return;const z=tx(_,x.orientation,x.dir);if(z!==void 0){if(_.metaKey||_.ctrlKey||_.altKey||_.shiftKey)return;_.preventDefault();let Y=T().filter(H=>H.focusable).map(H=>H.ref.current);if(z==="last")Y.reverse();else if(z==="prev"||z==="next"){z==="prev"&&Y.reverse();const H=Y.indexOf(_.currentTarget);Y=x.loop?nx(Y,H+1):Y.slice(H+1)}setTimeout(()=>Dv(Y))}}),children:typeof p=="function"?p({isCurrentTabStop:C,hasTabStop:A!=null}):p})})});Mv.displayName=Ov;var I1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ex(l,i){return i!=="rtl"?l:l==="ArrowLeft"?"ArrowRight":l==="ArrowRight"?"ArrowLeft":l}function tx(l,i,c){const o=ex(l.key,c);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return I1[o]}function Dv(l,i=!1){const c=document.activeElement;for(const o of l)if(o===c||(o.focus({preventScroll:i}),document.activeElement!==c))return}function nx(l,i){return l.map((c,o)=>l[(i+o)%l.length])}var ax=_v,lx=Mv;function jv(l){const[i,c]=b.useState(void 0);return ma(()=>{if(l){c({width:l.offsetWidth,height:l.offsetHeight});const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const f=s[0];let p,h;if("borderBoxSize"in f){const v=f.borderBoxSize,m=Array.isArray(v)?v[0]:v;p=m.inlineSize,h=m.blockSize}else p=l.offsetWidth,h=l.offsetHeight;c({width:p,height:h})});return o.observe(l,{box:"border-box"}),()=>o.unobserve(l)}else c(void 0)},[l]),i}function zv(l){const i=b.useRef({value:l,previous:l});return b.useMemo(()=>(i.current.value!==l&&(i.current.previous=i.current.value,i.current.value=l),i.current.previous),[l])}function rx(l,i){return b.useReducer((c,o)=>i[c][o]??c,l)}var ya=l=>{const{present:i,children:c}=l,o=ux(i),s=typeof c=="function"?c({present:o.isPresent}):b.Children.only(c),f=tt(o.ref,ix(s));return typeof c=="function"||o.isPresent?b.cloneElement(s,{ref:f}):null};ya.displayName="Presence";function ux(l){const[i,c]=b.useState(),o=b.useRef(null),s=b.useRef(l),f=b.useRef("none"),p=l?"mounted":"unmounted",[h,v]=rx(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const m=Gu(o.current);f.current=h==="mounted"?m:"none"},[h]),ma(()=>{const m=o.current,x=s.current;if(x!==l){const T=f.current,k=Gu(m);l?v("MOUNT"):k==="none"||(m==null?void 0:m.display)==="none"?v("UNMOUNT"):v(x&&T!==k?"ANIMATION_OUT":"UNMOUNT"),s.current=l}},[l,v]),ma(()=>{if(i){let m;const x=i.ownerDocument.defaultView??window,C=k=>{const A=Gu(o.current).includes(k.animationName);if(k.target===i&&A&&(v("ANIMATION_END"),!s.current)){const _=i.style.animationFillMode;i.style.animationFillMode="forwards",m=x.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=_)})}},T=k=>{k.target===i&&(f.current=Gu(o.current))};return i.addEventListener("animationstart",T),i.addEventListener("animationcancel",C),i.addEventListener("animationend",C),()=>{x.clearTimeout(m),i.removeEventListener("animationstart",T),i.removeEventListener("animationcancel",C),i.removeEventListener("animationend",C)}}else v("ANIMATION_END")},[i,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:b.useCallback(m=>{o.current=m?getComputedStyle(m):null,c(m)},[])}}function Gu(l){return(l==null?void 0:l.animationName)||"none"}function ix(l){var o,s;let i=(o=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:o.get,c=i&&"isReactWarning"in i&&i.isReactWarning;return c?l.ref:(i=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,c=i&&"isReactWarning"in i&&i.isReactWarning,c?l.props.ref:l.props.ref||l.ref)}var ls="Radio",[ox,Uv]=Zn(ls),[cx,sx]=ox(ls),kv=b.forwardRef((l,i)=>{const{__scopeRadio:c,name:o,checked:s=!1,required:f,disabled:p,value:h="on",onCheck:v,form:m,...x}=l,[C,T]=b.useState(null),k=tt(i,_=>T(_)),M=b.useRef(!1),A=C?m||!!C.closest("form"):!0;return y.jsxs(cx,{scope:c,checked:s,disabled:p,children:[y.jsx(Me.button,{type:"button",role:"radio","aria-checked":s,"data-state":Gv(s),"data-disabled":p?"":void 0,disabled:p,value:h,...x,ref:k,onClick:qe(l.onClick,_=>{s||v==null||v(),A&&(M.current=_.isPropagationStopped(),M.current||_.stopPropagation())})}),A&&y.jsx(Bv,{control:C,bubbles:!M.current,name:o,value:h,checked:s,required:f,disabled:p,form:m,style:{transform:"translateX(-100%)"}})]})});kv.displayName=ls;var Lv="RadioIndicator",Hv=b.forwardRef((l,i)=>{const{__scopeRadio:c,forceMount:o,...s}=l,f=sx(Lv,c);return y.jsx(ya,{present:o||f.checked,children:y.jsx(Me.span,{"data-state":Gv(f.checked),"data-disabled":f.disabled?"":void 0,...s,ref:i})})});Hv.displayName=Lv;var fx="RadioBubbleInput",Bv=b.forwardRef(({__scopeRadio:l,control:i,checked:c,bubbles:o=!0,...s},f)=>{const p=b.useRef(null),h=tt(p,f),v=zv(c),m=jv(i);return b.useEffect(()=>{const x=p.current;if(!x)return;const C=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(C,"checked").set;if(v!==c&&k){const M=new Event("click",{bubbles:o});k.call(x,c),x.dispatchEvent(M)}},[v,c,o]),y.jsx(Me.input,{type:"radio","aria-hidden":!0,defaultChecked:c,...s,tabIndex:-1,ref:h,style:{...s.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Bv.displayName=fx;function Gv(l){return l?"checked":"unchecked"}var dx=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ni="RadioGroup",[hx,t2]=Zn(ni,[Nv,Uv]),qv=Nv(),Yv=Uv(),[mx,vx]=hx(ni),Vv=b.forwardRef((l,i)=>{const{__scopeRadioGroup:c,name:o,defaultValue:s,value:f,required:p=!1,disabled:h=!1,orientation:v,dir:m,loop:x=!0,onValueChange:C,...T}=l,k=qv(c),M=as(m),[A,_]=ga({prop:f,defaultProp:s??null,onChange:C,caller:ni});return y.jsx(mx,{scope:c,name:o,required:p,disabled:h,value:A,onValueChange:_,children:y.jsx(ax,{asChild:!0,...k,orientation:v,dir:M,loop:x,children:y.jsx(Me.div,{role:"radiogroup","aria-required":p,"aria-orientation":v,"data-disabled":h?"":void 0,dir:M,...T,ref:i})})})});Vv.displayName=ni;var Xv="RadioGroupItem",Qv=b.forwardRef((l,i)=>{const{__scopeRadioGroup:c,disabled:o,...s}=l,f=vx(Xv,c),p=f.disabled||o,h=qv(c),v=Yv(c),m=b.useRef(null),x=tt(i,m),C=f.value===s.value,T=b.useRef(!1);return b.useEffect(()=>{const k=A=>{dx.includes(A.key)&&(T.current=!0)},M=()=>T.current=!1;return document.addEventListener("keydown",k),document.addEventListener("keyup",M),()=>{document.removeEventListener("keydown",k),document.removeEventListener("keyup",M)}},[]),y.jsx(lx,{asChild:!0,...h,focusable:!p,active:C,children:y.jsx(kv,{disabled:p,required:f.required,checked:C,...v,...s,name:f.name,ref:x,onCheck:()=>f.onValueChange(s.value),onKeyDown:qe(k=>{k.key==="Enter"&&k.preventDefault()}),onFocus:qe(s.onFocus,()=>{var k;T.current&&((k=m.current)==null||k.click())})})})});Qv.displayName=Xv;var px="RadioGroupIndicator",Zv=b.forwardRef((l,i)=>{const{__scopeRadioGroup:c,...o}=l,s=Yv(c);return y.jsx(Hv,{...s,...o,ref:i})});Zv.displayName=px;var gx=Qv,yx=Zv;/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bx=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xx=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,c,o)=>o?o.toUpperCase():c.toLowerCase()),Nm=l=>{const i=xx(l);return i.charAt(0).toUpperCase()+i.slice(1)},Kv=(...l)=>l.filter((i,c,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===c).join(" ").trim(),Sx=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ex={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"};/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rx=b.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:s="",children:f,iconNode:p,...h},v)=>b.createElement("svg",{ref:v,...Ex,width:i,height:i,stroke:l,strokeWidth:o?Number(c)*24/Number(i):c,className:Kv("lucide",s),...!f&&!Sx(h)&&{"aria-hidden":"true"},...h},[...p.map(([m,x])=>b.createElement(m,x)),...Array.isArray(f)?f:[f]]));/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jt=(l,i)=>{const c=b.forwardRef(({className:o,...s},f)=>b.createElement(Rx,{ref:f,iconNode:i,className:Kv(`lucide-${bx(Nm(l))}`,`lucide-${l}`,o),...s}));return c.displayName=Nm(l),c};/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ax=jt("check",Cx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wx=jt("chevron-down",Tx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_x=jt("circle-question-mark",Nx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ox=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Mx=jt("circle",Ox);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dx=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],jx=jt("flask-conical",Dx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zx=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Ux=jt("folder",zx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kx=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Lx=jt("github",kx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hx=[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]],Bx=jt("gitlab",Hx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],qx=jt("info",Gx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yx=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Vx=jt("link",Yx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xx=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Jv=jt("settings",Xx);/**
 * @license lucide-react v0.534.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Zx=jt("x",Qx);function Kx({className:l,id:i,...c}){return y.jsx(gx,{"data-slot":"radio-group-item",className:ft("border-gray-700 text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",l),...c,id:i,children:y.jsx(yx,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:y.jsx(Mx,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}var ai="Checkbox",[Jx,n2]=Zn(ai),[$x,rs]=Jx(ai);function Fx(l){const{__scopeCheckbox:i,checked:c,children:o,defaultChecked:s,disabled:f,form:p,name:h,onCheckedChange:v,required:m,value:x="on",internal_do_not_use_render:C}=l,[T,k]=ga({prop:c,defaultProp:s??!1,onChange:v,caller:ai}),[M,A]=b.useState(null),[_,z]=b.useState(null),L=b.useRef(!1),Y=M?!!p||!!M.closest("form"):!0,H={checked:T,disabled:f,setChecked:k,control:M,setControl:A,name:h,form:p,value:x,hasConsumerStoppedPropagationRef:L,required:m,defaultChecked:Qn(s)?!1:s,isFormControl:Y,bubbleInput:_,setBubbleInput:z};return y.jsx($x,{scope:i,...H,children:Px(C)?C(H):o})}var $v="CheckboxTrigger",Fv=b.forwardRef(({__scopeCheckbox:l,onKeyDown:i,onClick:c,...o},s)=>{const{control:f,value:p,disabled:h,checked:v,required:m,setControl:x,setChecked:C,hasConsumerStoppedPropagationRef:T,isFormControl:k,bubbleInput:M}=rs($v,l),A=tt(s,x),_=b.useRef(v);return b.useEffect(()=>{const z=f==null?void 0:f.form;if(z){const L=()=>C(_.current);return z.addEventListener("reset",L),()=>z.removeEventListener("reset",L)}},[f,C]),y.jsx(Me.button,{type:"button",role:"checkbox","aria-checked":Qn(v)?"mixed":v,"aria-required":m,"data-state":np(v),"data-disabled":h?"":void 0,disabled:h,value:p,...o,ref:A,onKeyDown:qe(i,z=>{z.key==="Enter"&&z.preventDefault()}),onClick:qe(c,z=>{C(L=>Qn(L)?!0:!L),M&&k&&(T.current=z.isPropagationStopped(),T.current||z.stopPropagation())})})});Fv.displayName=$v;var Pv=b.forwardRef((l,i)=>{const{__scopeCheckbox:c,name:o,checked:s,defaultChecked:f,required:p,disabled:h,value:v,onCheckedChange:m,form:x,...C}=l;return y.jsx(Fx,{__scopeCheckbox:c,checked:s,defaultChecked:f,disabled:h,required:p,onCheckedChange:m,name:o,form:x,value:v,internal_do_not_use_render:({isFormControl:T})=>y.jsxs(y.Fragment,{children:[y.jsx(Fv,{...C,ref:i,__scopeCheckbox:c}),T&&y.jsx(tp,{__scopeCheckbox:c})]})})});Pv.displayName=ai;var Wv="CheckboxIndicator",Iv=b.forwardRef((l,i)=>{const{__scopeCheckbox:c,forceMount:o,...s}=l,f=rs(Wv,c);return y.jsx(ya,{present:o||Qn(f.checked)||f.checked===!0,children:y.jsx(Me.span,{"data-state":np(f.checked),"data-disabled":f.disabled?"":void 0,...s,ref:i,style:{pointerEvents:"none",...l.style}})})});Iv.displayName=Wv;var ep="CheckboxBubbleInput",tp=b.forwardRef(({__scopeCheckbox:l,...i},c)=>{const{control:o,hasConsumerStoppedPropagationRef:s,checked:f,defaultChecked:p,required:h,disabled:v,name:m,value:x,form:C,bubbleInput:T,setBubbleInput:k}=rs(ep,l),M=tt(c,k),A=zv(f),_=jv(o);b.useEffect(()=>{const L=T;if(!L)return;const Y=window.HTMLInputElement.prototype,V=Object.getOwnPropertyDescriptor(Y,"checked").set,te=!s.current;if(A!==f&&V){const $=new Event("click",{bubbles:te});L.indeterminate=Qn(f),V.call(L,Qn(f)?!1:f),L.dispatchEvent($)}},[T,A,f,s]);const z=b.useRef(Qn(f)?!1:f);return y.jsx(Me.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??z.current,required:h,disabled:v,name:m,value:x,form:C,...i,tabIndex:-1,ref:M,style:{...i.style,..._,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});tp.displayName=ep;function Px(l){return typeof l=="function"}function Qn(l){return l==="indeterminate"}function np(l){return Qn(l)?"indeterminate":l?"checked":"unchecked"}function Wx({className:l,id:i,...c}){return y.jsx(Pv,{"data-slot":"checkbox",className:ft("peer border-gray-700 dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",l),id:i,...c,children:y.jsx(Iv,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:y.jsx(Ax,{className:"size-3.5"})})})}var li="Collapsible",[Ix,ap]=Zn(li),[eS,us]=Ix(li),lp=b.forwardRef((l,i)=>{const{__scopeCollapsible:c,open:o,defaultOpen:s,disabled:f,onOpenChange:p,...h}=l,[v,m]=ga({prop:o,defaultProp:s??!1,onChange:p,caller:li});return y.jsx(eS,{scope:c,disabled:f,contentId:cl(),open:v,onOpenToggle:b.useCallback(()=>m(x=>!x),[m]),children:y.jsx(Me.div,{"data-state":os(v),"data-disabled":f?"":void 0,...h,ref:i})})});lp.displayName=li;var rp="CollapsibleTrigger",up=b.forwardRef((l,i)=>{const{__scopeCollapsible:c,...o}=l,s=us(rp,c);return y.jsx(Me.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":os(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...o,ref:i,onClick:qe(l.onClick,s.onOpenToggle)})});up.displayName=rp;var is="CollapsibleContent",ip=b.forwardRef((l,i)=>{const{forceMount:c,...o}=l,s=us(is,l.__scopeCollapsible);return y.jsx(ya,{present:c||s.open,children:({present:f})=>y.jsx(tS,{...o,ref:i,present:f})})});ip.displayName=is;var tS=b.forwardRef((l,i)=>{const{__scopeCollapsible:c,present:o,children:s,...f}=l,p=us(is,c),[h,v]=b.useState(o),m=b.useRef(null),x=tt(i,m),C=b.useRef(0),T=C.current,k=b.useRef(0),M=k.current,A=p.open||h,_=b.useRef(A),z=b.useRef(void 0);return b.useEffect(()=>{const L=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(L)},[]),ma(()=>{const L=m.current;if(L){z.current=z.current||{transitionDuration:L.style.transitionDuration,animationName:L.style.animationName},L.style.transitionDuration="0s",L.style.animationName="none";const Y=L.getBoundingClientRect();C.current=Y.height,k.current=Y.width,_.current||(L.style.transitionDuration=z.current.transitionDuration,L.style.animationName=z.current.animationName),v(o)}},[p.open,o]),y.jsx(Me.div,{"data-state":os(p.open),"data-disabled":p.disabled?"":void 0,id:p.contentId,hidden:!A,...f,ref:x,style:{"--radix-collapsible-content-height":T?`${T}px`:void 0,"--radix-collapsible-content-width":M?`${M}px`:void 0,...l.style},children:A&&s})});function os(l){return l?"open":"closed"}var nS=lp,aS=up,lS=ip,Lt="Accordion",rS=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[cs,uS,iS]=Tv(Lt),[ri,a2]=Zn(Lt,[iS,ap]),ss=ap(),op=Ge.forwardRef((l,i)=>{const{type:c,...o}=l,s=o,f=o;return y.jsx(cs.Provider,{scope:l.__scopeAccordion,children:c==="multiple"?y.jsx(fS,{...f,ref:i}):y.jsx(sS,{...s,ref:i})})});op.displayName=Lt;var[cp,oS]=ri(Lt),[sp,cS]=ri(Lt,{collapsible:!1}),sS=Ge.forwardRef((l,i)=>{const{value:c,defaultValue:o,onValueChange:s=()=>{},collapsible:f=!1,...p}=l,[h,v]=ga({prop:c,defaultProp:o??"",onChange:s,caller:Lt});return y.jsx(cp,{scope:l.__scopeAccordion,value:Ge.useMemo(()=>h?[h]:[],[h]),onItemOpen:v,onItemClose:Ge.useCallback(()=>f&&v(""),[f,v]),children:y.jsx(sp,{scope:l.__scopeAccordion,collapsible:f,children:y.jsx(fp,{...p,ref:i})})})}),fS=Ge.forwardRef((l,i)=>{const{value:c,defaultValue:o,onValueChange:s=()=>{},...f}=l,[p,h]=ga({prop:c,defaultProp:o??[],onChange:s,caller:Lt}),v=Ge.useCallback(x=>h((C=[])=>[...C,x]),[h]),m=Ge.useCallback(x=>h((C=[])=>C.filter(T=>T!==x)),[h]);return y.jsx(cp,{scope:l.__scopeAccordion,value:p,onItemOpen:v,onItemClose:m,children:y.jsx(sp,{scope:l.__scopeAccordion,collapsible:!0,children:y.jsx(fp,{...f,ref:i})})})}),[dS,ui]=ri(Lt),fp=Ge.forwardRef((l,i)=>{const{__scopeAccordion:c,disabled:o,dir:s,orientation:f="vertical",...p}=l,h=Ge.useRef(null),v=tt(h,i),m=uS(c),C=as(s)==="ltr",T=qe(l.onKeyDown,k=>{var Q;if(!rS.includes(k.key))return;const M=k.target,A=m().filter(re=>{var xe;return!((xe=re.ref.current)!=null&&xe.disabled)}),_=A.findIndex(re=>re.ref.current===M),z=A.length;if(_===-1)return;k.preventDefault();let L=_;const Y=0,H=z-1,V=()=>{L=_+1,L>H&&(L=Y)},te=()=>{L=_-1,L<Y&&(L=H)};switch(k.key){case"Home":L=Y;break;case"End":L=H;break;case"ArrowRight":f==="horizontal"&&(C?V():te());break;case"ArrowDown":f==="vertical"&&V();break;case"ArrowLeft":f==="horizontal"&&(C?te():V());break;case"ArrowUp":f==="vertical"&&te();break}const $=L%z;(Q=A[$].ref.current)==null||Q.focus()});return y.jsx(dS,{scope:c,disabled:o,direction:s,orientation:f,children:y.jsx(cs.Slot,{scope:c,children:y.jsx(Me.div,{...p,"data-orientation":f,ref:v,onKeyDown:o?void 0:T})})})}),Wu="AccordionItem",[hS,fs]=ri(Wu),dp=Ge.forwardRef((l,i)=>{const{__scopeAccordion:c,value:o,...s}=l,f=ui(Wu,c),p=oS(Wu,c),h=ss(c),v=cl(),m=o&&p.value.includes(o)||!1,x=f.disabled||l.disabled;return y.jsx(hS,{scope:c,open:m,disabled:x,triggerId:v,children:y.jsx(nS,{"data-orientation":f.orientation,"data-state":yp(m),...h,...s,ref:i,disabled:x,open:m,onOpenChange:C=>{C?p.onItemOpen(o):p.onItemClose(o)}})})});dp.displayName=Wu;var hp="AccordionHeader",mp=Ge.forwardRef((l,i)=>{const{__scopeAccordion:c,...o}=l,s=ui(Lt,c),f=fs(hp,c);return y.jsx(Me.h3,{"data-orientation":s.orientation,"data-state":yp(f.open),"data-disabled":f.disabled?"":void 0,...o,ref:i})});mp.displayName=hp;var Kc="AccordionTrigger",vp=Ge.forwardRef((l,i)=>{const{__scopeAccordion:c,...o}=l,s=ui(Lt,c),f=fs(Kc,c),p=cS(Kc,c),h=ss(c);return y.jsx(cs.ItemSlot,{scope:c,children:y.jsx(aS,{"aria-disabled":f.open&&!p.collapsible||void 0,"data-orientation":s.orientation,id:f.triggerId,...h,...o,ref:i})})});vp.displayName=Kc;var pp="AccordionContent",gp=Ge.forwardRef((l,i)=>{const{__scopeAccordion:c,...o}=l,s=ui(Lt,c),f=fs(pp,c),p=ss(c);return y.jsx(lS,{role:"region","aria-labelledby":f.triggerId,"data-orientation":s.orientation,...p,...o,ref:i,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...l.style}})});gp.displayName=pp;function yp(l){return l?"open":"closed"}var mS=op,vS=dp,pS=mp,gS=vp,yS=gp;function _m({...l}){return y.jsx(mS,{"data-slot":"accordion",...l})}function Om({className:l,...i}){return y.jsx(vS,{"data-slot":"accordion-item",className:ft("border-b last:border-b-0",l),...i})}function Mm({className:l,children:i,...c}){return y.jsx(pS,{className:"flex",children:y.jsxs(gS,{"data-slot":"accordion-trigger",className:ft("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 p-0 min-w-56",l),...c,children:[i,y.jsx(wx,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function Dm({className:l,children:i,...c}){return y.jsx(yS,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...c,children:y.jsx("div",{className:ft("pt-0 pb-4",l),children:i})})}const jm=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,zm=mv,bS=(l,i)=>c=>{var o;if((i==null?void 0:i.variants)==null)return zm(l,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:s,defaultVariants:f}=i,p=Object.keys(s).map(m=>{const x=c==null?void 0:c[m],C=f==null?void 0:f[m];if(x===null)return null;const T=jm(x)||jm(C);return s[m][T]}),h=c&&Object.entries(c).reduce((m,x)=>{let[C,T]=x;return T===void 0||(m[C]=T),m},{}),v=i==null||(o=i.compoundVariants)===null||o===void 0?void 0:o.reduce((m,x)=>{let{class:C,className:T,...k}=x;return Object.entries(k).every(M=>{let[A,_]=M;return Array.isArray(_)?_.includes({...f,...h}[A]):{...f,...h}[A]===_})?[...m,C,T]:m},[]);return zm(l,p,v,c==null?void 0:c.class,c==null?void 0:c.className)},xS=bS("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 et({className:l,variant:i,size:c,asChild:o=!1,...s}){const f=o?O1:"button";return y.jsx(f,{"data-slot":"button",className:ft(xS({variant:i,size:c,className:l})),...s})}const SS=()=>{const[l,i]=b.useState(""),[c,o]=b.useState(null),[s,f]=b.useState(!1),[p,h]=b.useState({operator:"",controllers:[],events:1,settings:{},name:""}),[v,m]=b.useState({}),[x,C]=b.useState(!1),T=Object.entries(v).filter(([H,V])=>V.type==="controller").map(([H])=>H),k=Object.entries(v).filter(([H,V])=>V.type==="operator").map(([H])=>H),M=async()=>{try{const V=await(await fetch("/jobs")).json();o(V)}catch(H){console.error("Failed to fetch jobs:",H)}},A=async()=>{try{const V=await(await fetch("/plugins")).json(),te={};for(const $ of V)try{const re=await(await fetch(`/plugins/${$}`)).json();te[$]=re}catch(Q){console.error(`Failed to fetch manifest for ${$}:`,Q)}m(te),C(!0)}catch(H){console.error("Failed to fetch plugins:",H)}},_=async()=>{try{(await fetch("/jobs/job",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)})).status===202&&(i("Job submitted succesfully!"),setTimeout(()=>i(""),3e3),M())}catch(H){console.error("Failed to submit job:",H)}},z=async()=>{try{(await fetch("/jobs/stop",{method:"POST"})).status===202&&(i("Job stopped succesfully!"),setTimeout(()=>i(""),3e3),M())}catch(H){console.error("Failed to stop job:",H)}},L=(H,V)=>{const te=H?[...p.controllers,V]:p.controllers.filter($=>$!==V);h({...p,controllers:te})},Y=x&&p.operator&&p.controllers.length>0;return b.useEffect(()=>{A()},[]),y.jsxs("div",{className:"p-6 space-y-6",children:[y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[y.jsxs(fn,{children:[y.jsxs(ol,{children:[y.jsx("h3",{className:"text-lg font-semibold",children:"Controllers"}),y.jsx("div",{className:"text-sm text-gray-600",children:"Control the behaviour of your scroll run"})]}),y.jsx(Xn,{className:"space-y-2",children:T.length==0?"No controllers found. Change the 'Plugins Directory' in your settings. Defaults to 'Documents/Personal Scroller/Plugins'.":T.map(H=>{var V,te,$,Q,re,xe;return y.jsxs("div",{className:"flex items-top justify-between",children:[y.jsx(Wx,{id:H,color:"red",checked:p.controllers.includes(H),onCheckedChange:De=>L(De,H)}),y.jsx("div",{className:"flex items-center justify-between",children:y.jsx("label",{htmlFor:H,className:"cursor-pointer",children:y.jsx(_m,{type:"single",defaultValue:"",collapsible:!0,children:y.jsxs(Om,{value:"item",children:[y.jsx(Mm,{className:"w-full",children:(V=v[H])==null?void 0:V.name}),y.jsx(Dm,{children:y.jsxs("div",{className:"py-2 space-y-1 text-sm",children:[y.jsx("div",{children:y.jsx("i",{children:(te=v[H])==null?void 0:te.description})}),y.jsxs("div",{children:[y.jsx("strong",{children:"Author:"})," ",($=v[H])==null?void 0:$.author]}),y.jsxs("div",{children:[y.jsx("strong",{children:"Version:"})," ",(Q=v[H])==null?void 0:Q.version]}),y.jsxs("div",{children:[y.jsx("strong",{children:"Traits:"})," ",((re=v[H])==null?void 0:re.traits)==null?"no traits":y.jsx("ol",{children:(xe=v[H])==null?void 0:xe.traits.map(De=>y.jsx("li",{children:De}))})]})]})})]})})})})]},H)})})]}),y.jsxs(fn,{children:[y.jsxs(ol,{children:[y.jsx("h3",{className:"text-lg font-semibold",children:"Operators"}),y.jsx("div",{className:"text-sm text-gray-600",children:"Operate a specific SFV platform"})]}),y.jsx(Xn,{children:y.jsx(Vv,{value:p.operator,onValueChange:H=>h({...p,operator:H}),children:k.length==0?"No operators found. Change the 'Plugins Directory' in your settings. Defaults to 'Documents/Personal Scroller/Plugins'.":k.map(H=>{var V,te,$,Q;return y.jsxs("div",{className:"flex items-top justify-between",children:[y.jsx(Kx,{value:H,id:H}),y.jsx("div",{className:"flex items-center space-x-2",children:y.jsx(_m,{type:"single",defaultValue:"",collapsible:!0,children:y.jsxs(Om,{value:"item",children:[y.jsx(Mm,{className:"",children:(V=v[H])==null?void 0:V.name}),y.jsx(Dm,{children:y.jsxs("div",{className:"py-2 space-y-1 text-sm",children:[y.jsx("div",{children:y.jsx("i",{children:(te=v[H])==null?void 0:te.description})}),y.jsxs("div",{children:[y.jsx("strong",{children:"Author:"})," ",($=v[H])==null?void 0:$.author]}),y.jsxs("div",{children:[y.jsx("strong",{children:"Version:"})," ",(Q=v[H])==null?void 0:Q.version]})]})})]})})})]},H)})})})]})]}),y.jsx(fn,{children:y.jsxs(Xn,{children:[y.jsxs("div",{className:"flex gap-[4px]",children:[y.jsx(et,{onClick:_,disabled:!Y,className:"flex-grow cursor-pointer text-lg h-14",children:"Start scrolling"}),y.jsx(et,{size:"icon",onClick:()=>f(H=>!H),className:"cursor-pointer text-lg h-14 w-14",children:y.jsx(Jv,{})})]}),s&&y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[y.jsxs("div",{children:[y.jsx(Pu,{htmlFor:"name",children:"Scroll name"}),y.jsx(Fu,{id:"name",value:p.name,onChange:H=>h(V=>({...V,name:H.target.value==""?Date.now().toLocaleString():H.target.value})),autoFocus:!0})]}),y.jsxs("div",{children:[y.jsx(Pu,{htmlFor:"events",children:"Scroll limit"}),y.jsx(Fu,{id:"events",type:"number",min:"0",max:"999",defaultValue:0,value:p.events,onChange:H=>h(V=>({...V,events:Math.max(0,Math.min(999,parseInt(H.target.value)||0))})),autoFocus:!0})]})]}),l&&y.jsx("div",{children:l})]})}),y.jsxs(fn,{children:[y.jsx(ol,{className:"flex flex-row items-center justify-between",children:y.jsxs("div",{className:"flex flex-col",children:[y.jsx("h3",{className:"text-lg font-semibold",children:"Status"}),y.jsx("div",{className:"text-sm text-gray-600",children:"View current scroll status"})]})}),y.jsx(Xn,{children:c?y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{children:[y.jsx("strong",{children:"Queue Count:"})," ",c.count]}),c.current&&y.jsxs("div",{className:"p-2 border rounded",children:[y.jsxs("div",{children:[y.jsx("strong",{children:"Current Job:"})," ",c.current.request.name]}),y.jsxs("div",{children:[y.jsx("strong",{children:"Operator:"})," ",c.current.request.operator]}),y.jsxs("div",{children:[y.jsx("strong",{children:"Controllers:"})," ",c.current.request.controllers.join(", ")]}),y.jsxs("div",{children:[y.jsx("strong",{children:"Started:"})," ",new Date(c.current.started_at).toLocaleString()]}),c.current.error&&y.jsxs("div",{className:"text-red-600",children:[y.jsx("strong",{children:"Error:"})," ",c.current.error]}),y.jsx("iframe",{src:"/jobs/current",width:"100%",height:"200"}),y.jsx(et,{onClick:()=>document.querySelector("iframe").src+="",children:"Refresh"}),y.jsx(et,{onClick:z,disabled:c.count<1,className:"flex-grow cursor-pointer text-lg h-14",children:"Stop Job"})]})]}):y.jsx("div",{children:"Not currently scrolling."})})]})]})},ES=()=>y.jsx(y.Fragment,{children:y.jsxs("div",{className:"flex items-center justify-between p-4 border-b bg-gray-50",children:[y.jsxs("div",{className:"flex",children:[y.jsx(et,{variant:"ghost",className:"cursor-pointer",size:"sm",children:y.jsxs(ha,{to:"/scrolls",className:"flex gap-1 items-center",children:[y.jsx(Ux,{className:"w-4 h-4"}),"Scrolls"]})}),y.jsx(et,{variant:"ghost",className:"cursor-pointer",size:"sm",children:y.jsxs(ha,{to:"/sfv_help",className:"flex gap-1 items-center",children:[y.jsx(_x,{className:"w-4 h-4"}),"Help"]})})]}),y.jsx(et,{variant:"ghost",className:"text-xl font-bold cursor-pointer",children:y.jsx(ha,{to:"/",className:"flex gap-1 items-center",children:"Personal Scroller"})}),y.jsxs("div",{className:"flex",children:[y.jsx(et,{variant:"ghost",className:"cursor-pointer",size:"sm",children:y.jsxs(ha,{to:"/settings",className:"flex gap-1 items-center",children:[y.jsx(Jv,{className:"w-4 h-4"}),"Settings"]})}),y.jsx(et,{variant:"ghost",className:"cursor-pointer",size:"sm",children:y.jsxs(ha,{to:"about",className:"flex gap-1 items-center",children:[y.jsx(qx,{className:"w-4 h-4"}),"About"]})})]})]})}),RS=()=>y.jsx(y.Fragment,{children:y.jsx("div",{className:"p-6",children:y.jsxs(fn,{children:[y.jsx(ol,{children:y.jsx("h2",{className:"text-2xl font-bold",children:"About SFV Collector"})}),y.jsxs(Xn,{className:"space-y-4",children:[y.jsx("p",{children:"SFV collector is a modular application designed to make it easy for Digital Methods students and researchers to make use of data from short-form video sources."}),y.jsx("p",{children:"Built with Vite, React, Node.js, Express. Written in TypeScript. Styled with ShadCN, RadixUI and TailwindCSS. "}),y.jsxs("div",{className:"flex space-x-4",children:[y.jsxs(et,{variant:"ghost",size:"sm",onClick:()=>window.location.href="https://gitlab.com/periode/sfv-collector",children:[y.jsx(Bx,{className:"w-4 h-4"}),"GitLab"]}),y.jsxs(et,{variant:"ghost",size:"sm",onClick:()=>window.location.href="https://github.com/hudmarc",children:[y.jsx(Lx,{className:"w-4 h-4"}),"GitHub"]})]}),y.jsx(et,{variant:"ghost",className:"cursor-pointer",size:"sm",children:y.jsxs(Vx,{to:"/test",className:"flex gap-1 items-center",children:[y.jsx(jx,{className:"w-4 h-4"}),"Test"]})})]})]})})}),CS=()=>{const[l,i]=b.useState({captures_directory:"",plugins_directory:"",event_format:"",capture_format:""}),c=async()=>{if(l)try{(await fetch("/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})).ok&&alert("Settings saved successfully!")}catch(s){console.error("Failed to save settings:",s)}},o=async()=>{try{const f=await(await fetch("/settings")).json();i(f)}catch(s){console.error("Failed to fetch settings:",s)}};return b.useEffect(()=>{o()},[]),y.jsx(y.Fragment,{children:y.jsxs("div",{className:"p-6",children:[y.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Settings"}),l?y.jsx(fn,{children:y.jsxs(Xn,{className:"p-6 space-y-4",children:[Object.entries(l).map(([s,f])=>y.jsxs("div",{children:[y.jsx(Pu,{htmlFor:s,children:s.replace("_"," ").toUpperCase()}),y.jsx(Fu,{id:s,value:f,onChange:p=>i(h=>({...h,[s]:p.target.value}))})]},s)),y.jsx(et,{onClick:c,className:"w-full cursor-pointer",children:"Save Settings"})]})}):y.jsx("div",{children:"Loading settings..."})]})})};function AS(l,i=globalThis==null?void 0:globalThis.document){const c=fl(l);b.useEffect(()=>{const o=s=>{s.key==="Escape"&&c(s)};return i.addEventListener("keydown",o,{capture:!0}),()=>i.removeEventListener("keydown",o,{capture:!0})},[c,i])}var TS="DismissableLayer",Jc="dismissableLayer.update",wS="dismissableLayer.pointerDownOutside",NS="dismissableLayer.focusOutside",Um,bp=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xp=b.forwardRef((l,i)=>{const{disableOutsidePointerEvents:c=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:f,onInteractOutside:p,onDismiss:h,...v}=l,m=b.useContext(bp),[x,C]=b.useState(null),T=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=b.useState({}),M=tt(i,$=>C($)),A=Array.from(m.layers),[_]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),z=A.indexOf(_),L=x?A.indexOf(x):-1,Y=m.layersWithOutsidePointerEventsDisabled.size>0,H=L>=z,V=MS($=>{const Q=$.target,re=[...m.branches].some(xe=>xe.contains(Q));!H||re||(s==null||s($),p==null||p($),$.defaultPrevented||h==null||h())},T),te=DS($=>{const Q=$.target;[...m.branches].some(xe=>xe.contains(Q))||(f==null||f($),p==null||p($),$.defaultPrevented||h==null||h())},T);return AS($=>{L===m.layers.size-1&&(o==null||o($),!$.defaultPrevented&&h&&($.preventDefault(),h()))},T),b.useEffect(()=>{if(x)return c&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Um=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(x)),m.layers.add(x),km(),()=>{c&&m.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=Um)}},[x,T,c,m]),b.useEffect(()=>()=>{x&&(m.layers.delete(x),m.layersWithOutsidePointerEventsDisabled.delete(x),km())},[x,m]),b.useEffect(()=>{const $=()=>k({});return document.addEventListener(Jc,$),()=>document.removeEventListener(Jc,$)},[]),y.jsx(Me.div,{...v,ref:M,style:{pointerEvents:Y?H?"auto":"none":void 0,...l.style},onFocusCapture:qe(l.onFocusCapture,te.onFocusCapture),onBlurCapture:qe(l.onBlurCapture,te.onBlurCapture),onPointerDownCapture:qe(l.onPointerDownCapture,V.onPointerDownCapture)})});xp.displayName=TS;var _S="DismissableLayerBranch",OS=b.forwardRef((l,i)=>{const c=b.useContext(bp),o=b.useRef(null),s=tt(i,o);return b.useEffect(()=>{const f=o.current;if(f)return c.branches.add(f),()=>{c.branches.delete(f)}},[c.branches]),y.jsx(Me.div,{...l,ref:s})});OS.displayName=_S;function MS(l,i=globalThis==null?void 0:globalThis.document){const c=fl(l),o=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const f=h=>{if(h.target&&!o.current){let v=function(){Sp(wS,c,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(i.removeEventListener("click",s.current),s.current=v,i.addEventListener("click",s.current,{once:!0})):v()}else i.removeEventListener("click",s.current);o.current=!1},p=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(p),i.removeEventListener("pointerdown",f),i.removeEventListener("click",s.current)}},[i,c]),{onPointerDownCapture:()=>o.current=!0}}function DS(l,i=globalThis==null?void 0:globalThis.document){const c=fl(l),o=b.useRef(!1);return b.useEffect(()=>{const s=f=>{f.target&&!o.current&&Sp(NS,c,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",s),()=>i.removeEventListener("focusin",s)},[i,c]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function km(){const l=new CustomEvent(Jc);document.dispatchEvent(l)}function Sp(l,i,c,{discrete:o}){const s=c.originalEvent.target,f=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:c});i&&s.addEventListener(l,i,{once:!0}),o?L1(s,f):s.dispatchEvent(f)}var zc="focusScope.autoFocusOnMount",Uc="focusScope.autoFocusOnUnmount",Lm={bubbles:!1,cancelable:!0},jS="FocusScope",Ep=b.forwardRef((l,i)=>{const{loop:c=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:f,...p}=l,[h,v]=b.useState(null),m=fl(s),x=fl(f),C=b.useRef(null),T=tt(i,A=>v(A)),k=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(o){let A=function(Y){if(k.paused||!h)return;const H=Y.target;h.contains(H)?C.current=H:Vn(C.current,{select:!0})},_=function(Y){if(k.paused||!h)return;const H=Y.relatedTarget;H!==null&&(h.contains(H)||Vn(C.current,{select:!0}))},z=function(Y){if(document.activeElement===document.body)for(const V of Y)V.removedNodes.length>0&&Vn(h)};document.addEventListener("focusin",A),document.addEventListener("focusout",_);const L=new MutationObserver(z);return h&&L.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",_),L.disconnect()}}},[o,h,k.paused]),b.useEffect(()=>{if(h){Bm.add(k);const A=document.activeElement;if(!h.contains(A)){const z=new CustomEvent(zc,Lm);h.addEventListener(zc,m),h.dispatchEvent(z),z.defaultPrevented||(zS(BS(Rp(h)),{select:!0}),document.activeElement===A&&Vn(h))}return()=>{h.removeEventListener(zc,m),setTimeout(()=>{const z=new CustomEvent(Uc,Lm);h.addEventListener(Uc,x),h.dispatchEvent(z),z.defaultPrevented||Vn(A??document.body,{select:!0}),h.removeEventListener(Uc,x),Bm.remove(k)},0)}}},[h,m,x,k]);const M=b.useCallback(A=>{if(!c&&!o||k.paused)return;const _=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,z=document.activeElement;if(_&&z){const L=A.currentTarget,[Y,H]=US(L);Y&&H?!A.shiftKey&&z===H?(A.preventDefault(),c&&Vn(Y,{select:!0})):A.shiftKey&&z===Y&&(A.preventDefault(),c&&Vn(H,{select:!0})):z===L&&A.preventDefault()}},[c,o,k.paused]);return y.jsx(Me.div,{tabIndex:-1,...p,ref:T,onKeyDown:M})});Ep.displayName=jS;function zS(l,{select:i=!1}={}){const c=document.activeElement;for(const o of l)if(Vn(o,{select:i}),document.activeElement!==c)return}function US(l){const i=Rp(l),c=Hm(i,l),o=Hm(i.reverse(),l);return[c,o]}function Rp(l){const i=[],c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;c.nextNode();)i.push(c.currentNode);return i}function Hm(l,i){for(const c of l)if(!kS(c,{upTo:i}))return c}function kS(l,{upTo:i}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(i!==void 0&&l===i)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function LS(l){return l instanceof HTMLInputElement&&"select"in l}function Vn(l,{select:i=!1}={}){if(l&&l.focus){const c=document.activeElement;l.focus({preventScroll:!0}),l!==c&&LS(l)&&i&&l.select()}}var Bm=HS();function HS(){let l=[];return{add(i){const c=l[0];i!==c&&(c==null||c.pause()),l=Gm(l,i),l.unshift(i)},remove(i){var c;l=Gm(l,i),(c=l[0])==null||c.resume()}}}function Gm(l,i){const c=[...l],o=c.indexOf(i);return o!==-1&&c.splice(o,1),c}function BS(l){return l.filter(i=>i.tagName!=="A")}var GS="Portal",Cp=b.forwardRef((l,i)=>{var h;const{container:c,...o}=l,[s,f]=b.useState(!1);ma(()=>f(!0),[]);const p=c||s&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return p?X0.createPortal(y.jsx(Me.div,{...o,ref:i}),p):null});Cp.displayName=GS;var kc=0;function qS(){b.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??qm()),document.body.insertAdjacentElement("beforeend",l[1]??qm()),kc++,()=>{kc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),kc--}},[])}function qm(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var Qt=function(){return Qt=Object.assign||function(i){for(var c,o=1,s=arguments.length;o<s;o++){c=arguments[o];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i},Qt.apply(this,arguments)};function Ap(l,i){var c={};for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&i.indexOf(o)<0&&(c[o]=l[o]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(l);s<o.length;s++)i.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(l,o[s])&&(c[o[s]]=l[o[s]]);return c}function YS(l,i,c){if(c||arguments.length===2)for(var o=0,s=i.length,f;o<s;o++)(f||!(o in i))&&(f||(f=Array.prototype.slice.call(i,0,o)),f[o]=i[o]);return l.concat(f||Array.prototype.slice.call(i))}var Ku="right-scroll-bar-position",Ju="width-before-scroll-bar",VS="with-scroll-bars-hidden",XS="--removed-body-scroll-bar-size";function Lc(l,i){return typeof l=="function"?l(i):l&&(l.current=i),l}function QS(l,i){var c=b.useState(function(){return{value:l,callback:i,facade:{get current(){return c.value},set current(o){var s=c.value;s!==o&&(c.value=o,c.callback(o,s))}}}})[0];return c.callback=i,c.facade}var ZS=typeof window<"u"?b.useLayoutEffect:b.useEffect,Ym=new WeakMap;function KS(l,i){var c=QS(null,function(o){return l.forEach(function(s){return Lc(s,o)})});return ZS(function(){var o=Ym.get(c);if(o){var s=new Set(o),f=new Set(l),p=c.current;s.forEach(function(h){f.has(h)||Lc(h,null)}),f.forEach(function(h){s.has(h)||Lc(h,p)})}Ym.set(c,l)},[l]),c}function JS(l){return l}function $S(l,i){i===void 0&&(i=JS);var c=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:l},useMedium:function(f){var p=i(f,o);return c.push(p),function(){c=c.filter(function(h){return h!==p})}},assignSyncMedium:function(f){for(o=!0;c.length;){var p=c;c=[],p.forEach(f)}c={push:function(h){return f(h)},filter:function(){return c}}},assignMedium:function(f){o=!0;var p=[];if(c.length){var h=c;c=[],h.forEach(f),p=c}var v=function(){var x=p;p=[],x.forEach(f)},m=function(){return Promise.resolve().then(v)};m(),c={push:function(x){p.push(x),m()},filter:function(x){return p=p.filter(x),c}}}};return s}function FS(l){l===void 0&&(l={});var i=$S(null);return i.options=Qt({async:!0,ssr:!1},l),i}var Tp=function(l){var i=l.sideCar,c=Ap(l,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=i.read();if(!o)throw new Error("Sidecar medium not found");return b.createElement(o,Qt({},c))};Tp.isSideCarExport=!0;function PS(l,i){return l.useMedium(i),Tp}var wp=FS(),Hc=function(){},ii=b.forwardRef(function(l,i){var c=b.useRef(null),o=b.useState({onScrollCapture:Hc,onWheelCapture:Hc,onTouchMoveCapture:Hc}),s=o[0],f=o[1],p=l.forwardProps,h=l.children,v=l.className,m=l.removeScrollBar,x=l.enabled,C=l.shards,T=l.sideCar,k=l.noRelative,M=l.noIsolation,A=l.inert,_=l.allowPinchZoom,z=l.as,L=z===void 0?"div":z,Y=l.gapMode,H=Ap(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=T,te=KS([c,i]),$=Qt(Qt({},H),s);return b.createElement(b.Fragment,null,x&&b.createElement(V,{sideCar:wp,removeScrollBar:m,shards:C,noRelative:k,noIsolation:M,inert:A,setCallbacks:f,allowPinchZoom:!!_,lockRef:c,gapMode:Y}),p?b.cloneElement(b.Children.only(h),Qt(Qt({},$),{ref:te})):b.createElement(L,Qt({},$,{className:v,ref:te}),h))});ii.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ii.classNames={fullWidth:Ju,zeroRight:Ku};var WS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IS(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var i=WS();return i&&l.setAttribute("nonce",i),l}function eE(l,i){l.styleSheet?l.styleSheet.cssText=i:l.appendChild(document.createTextNode(i))}function tE(l){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(l)}var nE=function(){var l=0,i=null;return{add:function(c){l==0&&(i=IS())&&(eE(i,c),tE(i)),l++},remove:function(){l--,!l&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},aE=function(){var l=nE();return function(i,c){b.useEffect(function(){return l.add(i),function(){l.remove()}},[i&&c])}},Np=function(){var l=aE(),i=function(c){var o=c.styles,s=c.dynamic;return l(o,s),null};return i},lE={left:0,top:0,right:0,gap:0},Bc=function(l){return parseInt(l||"",10)||0},rE=function(l){var i=window.getComputedStyle(document.body),c=i[l==="padding"?"paddingLeft":"marginLeft"],o=i[l==="padding"?"paddingTop":"marginTop"],s=i[l==="padding"?"paddingRight":"marginRight"];return[Bc(c),Bc(o),Bc(s)]},uE=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return lE;var i=rE(l),c=document.documentElement.clientWidth,o=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,o-c+i[2]-i[0])}},iE=Np(),sl="data-scroll-locked",oE=function(l,i,c,o){var s=l.left,f=l.top,p=l.right,h=l.gap;return c===void 0&&(c="margin"),`
  .`.concat(VS,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(h,"px ").concat(o,`;
  }
  body[`).concat(sl,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([i&&"position: relative ".concat(o,";"),c==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(f,`px;
    padding-right: `).concat(p,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(h,"px ").concat(o,`;
    `),c==="padding"&&"padding-right: ".concat(h,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Ku,` {
    right: `).concat(h,"px ").concat(o,`;
  }
  
  .`).concat(Ju,` {
    margin-right: `).concat(h,"px ").concat(o,`;
  }
  
  .`).concat(Ku," .").concat(Ku,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(Ju," .").concat(Ju,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(sl,`] {
    `).concat(XS,": ").concat(h,`px;
  }
`)},Vm=function(){var l=parseInt(document.body.getAttribute(sl)||"0",10);return isFinite(l)?l:0},cE=function(){b.useEffect(function(){return document.body.setAttribute(sl,(Vm()+1).toString()),function(){var l=Vm()-1;l<=0?document.body.removeAttribute(sl):document.body.setAttribute(sl,l.toString())}},[])},sE=function(l){var i=l.noRelative,c=l.noImportant,o=l.gapMode,s=o===void 0?"margin":o;cE();var f=b.useMemo(function(){return uE(s)},[s]);return b.createElement(iE,{styles:oE(f,!i,s,c?"":"!important")})},$c=!1;if(typeof window<"u")try{var qu=Object.defineProperty({},"passive",{get:function(){return $c=!0,!0}});window.addEventListener("test",qu,qu),window.removeEventListener("test",qu,qu)}catch{$c=!1}var rl=$c?{passive:!1}:!1,fE=function(l){return l.tagName==="TEXTAREA"},_p=function(l,i){if(!(l instanceof Element))return!1;var c=window.getComputedStyle(l);return c[i]!=="hidden"&&!(c.overflowY===c.overflowX&&!fE(l)&&c[i]==="visible")},dE=function(l){return _p(l,"overflowY")},hE=function(l){return _p(l,"overflowX")},Xm=function(l,i){var c=i.ownerDocument,o=i;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=Op(l,o);if(s){var f=Mp(l,o),p=f[1],h=f[2];if(p>h)return!0}o=o.parentNode}while(o&&o!==c.body);return!1},mE=function(l){var i=l.scrollTop,c=l.scrollHeight,o=l.clientHeight;return[i,c,o]},vE=function(l){var i=l.scrollLeft,c=l.scrollWidth,o=l.clientWidth;return[i,c,o]},Op=function(l,i){return l==="v"?dE(i):hE(i)},Mp=function(l,i){return l==="v"?mE(i):vE(i)},pE=function(l,i){return l==="h"&&i==="rtl"?-1:1},gE=function(l,i,c,o,s){var f=pE(l,window.getComputedStyle(i).direction),p=f*o,h=c.target,v=i.contains(h),m=!1,x=p>0,C=0,T=0;do{if(!h)break;var k=Mp(l,h),M=k[0],A=k[1],_=k[2],z=A-_-f*M;(M||z)&&Op(l,h)&&(C+=z,T+=M);var L=h.parentNode;h=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!v&&h!==document.body||v&&(i.contains(h)||i===h));return(x&&Math.abs(C)<1||!x&&Math.abs(T)<1)&&(m=!0),m},Yu=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},Qm=function(l){return[l.deltaX,l.deltaY]},Zm=function(l){return l&&"current"in l?l.current:l},yE=function(l,i){return l[0]===i[0]&&l[1]===i[1]},bE=function(l){return`
  .block-interactivity-`.concat(l,` {pointer-events: none;}
  .allow-interactivity-`).concat(l,` {pointer-events: all;}
`)},xE=0,ul=[];function SE(l){var i=b.useRef([]),c=b.useRef([0,0]),o=b.useRef(),s=b.useState(xE++)[0],f=b.useState(Np)[0],p=b.useRef(l);b.useEffect(function(){p.current=l},[l]),b.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(s));var A=YS([l.lockRef.current],(l.shards||[]).map(Zm),!0).filter(Boolean);return A.forEach(function(_){return _.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),A.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(s))})}}},[l.inert,l.lockRef.current,l.shards]);var h=b.useCallback(function(A,_){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!p.current.allowPinchZoom;var z=Yu(A),L=c.current,Y="deltaX"in A?A.deltaX:L[0]-z[0],H="deltaY"in A?A.deltaY:L[1]-z[1],V,te=A.target,$=Math.abs(Y)>Math.abs(H)?"h":"v";if("touches"in A&&$==="h"&&te.type==="range")return!1;var Q=Xm($,te);if(!Q)return!0;if(Q?V=$:(V=$==="v"?"h":"v",Q=Xm($,te)),!Q)return!1;if(!o.current&&"changedTouches"in A&&(Y||H)&&(o.current=V),!V)return!0;var re=o.current||V;return gE(re,_,A,re==="h"?Y:H)},[]),v=b.useCallback(function(A){var _=A;if(!(!ul.length||ul[ul.length-1]!==f)){var z="deltaY"in _?Qm(_):Yu(_),L=i.current.filter(function(V){return V.name===_.type&&(V.target===_.target||_.target===V.shadowParent)&&yE(V.delta,z)})[0];if(L&&L.should){_.cancelable&&_.preventDefault();return}if(!L){var Y=(p.current.shards||[]).map(Zm).filter(Boolean).filter(function(V){return V.contains(_.target)}),H=Y.length>0?h(_,Y[0]):!p.current.noIsolation;H&&_.cancelable&&_.preventDefault()}}},[]),m=b.useCallback(function(A,_,z,L){var Y={name:A,delta:_,target:z,should:L,shadowParent:EE(z)};i.current.push(Y),setTimeout(function(){i.current=i.current.filter(function(H){return H!==Y})},1)},[]),x=b.useCallback(function(A){c.current=Yu(A),o.current=void 0},[]),C=b.useCallback(function(A){m(A.type,Qm(A),A.target,h(A,l.lockRef.current))},[]),T=b.useCallback(function(A){m(A.type,Yu(A),A.target,h(A,l.lockRef.current))},[]);b.useEffect(function(){return ul.push(f),l.setCallbacks({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:T}),document.addEventListener("wheel",v,rl),document.addEventListener("touchmove",v,rl),document.addEventListener("touchstart",x,rl),function(){ul=ul.filter(function(A){return A!==f}),document.removeEventListener("wheel",v,rl),document.removeEventListener("touchmove",v,rl),document.removeEventListener("touchstart",x,rl)}},[]);var k=l.removeScrollBar,M=l.inert;return b.createElement(b.Fragment,null,M?b.createElement(f,{styles:bE(s)}):null,k?b.createElement(sE,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function EE(l){for(var i=null;l!==null;)l instanceof ShadowRoot&&(i=l.host,l=l.host),l=l.parentNode;return i}const RE=PS(wp,SE);var Dp=b.forwardRef(function(l,i){return b.createElement(ii,Qt({},l,{ref:i,sideCar:RE}))});Dp.classNames=ii.classNames;var CE=function(l){if(typeof document>"u")return null;var i=Array.isArray(l)?l[0]:l;return i.ownerDocument.body},il=new WeakMap,Vu=new WeakMap,Xu={},Gc=0,jp=function(l){return l&&(l.host||jp(l.parentNode))},AE=function(l,i){return i.map(function(c){if(l.contains(c))return c;var o=jp(c);return o&&l.contains(o)?o:(console.error("aria-hidden",c,"in not contained inside",l,". Doing nothing"),null)}).filter(function(c){return!!c})},TE=function(l,i,c,o){var s=AE(i,Array.isArray(l)?l:[l]);Xu[c]||(Xu[c]=new WeakMap);var f=Xu[c],p=[],h=new Set,v=new Set(s),m=function(C){!C||h.has(C)||(h.add(C),m(C.parentNode))};s.forEach(m);var x=function(C){!C||v.has(C)||Array.prototype.forEach.call(C.children,function(T){if(h.has(T))x(T);else try{var k=T.getAttribute(o),M=k!==null&&k!=="false",A=(il.get(T)||0)+1,_=(f.get(T)||0)+1;il.set(T,A),f.set(T,_),p.push(T),A===1&&M&&Vu.set(T,!0),_===1&&T.setAttribute(c,"true"),M||T.setAttribute(o,"true")}catch(z){console.error("aria-hidden: cannot operate on ",T,z)}})};return x(i),h.clear(),Gc++,function(){p.forEach(function(C){var T=il.get(C)-1,k=f.get(C)-1;il.set(C,T),f.set(C,k),T||(Vu.has(C)||C.removeAttribute(o),Vu.delete(C)),k||C.removeAttribute(c)}),Gc--,Gc||(il=new WeakMap,il=new WeakMap,Vu=new WeakMap,Xu={})}},wE=function(l,i,c){c===void 0&&(c="data-aria-hidden");var o=Array.from(Array.isArray(l)?l:[l]),s=CE(l);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),TE(o,s,c,"aria-hidden")):function(){return null}},oi="Dialog",[zp,l2]=Zn(oi),[NE,Ht]=zp(oi),Up=l=>{const{__scopeDialog:i,children:c,open:o,defaultOpen:s,onOpenChange:f,modal:p=!0}=l,h=b.useRef(null),v=b.useRef(null),[m,x]=ga({prop:o,defaultProp:s??!1,onChange:f,caller:oi});return y.jsx(NE,{scope:i,triggerRef:h,contentRef:v,contentId:cl(),titleId:cl(),descriptionId:cl(),open:m,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(C=>!C),[x]),modal:p,children:c})};Up.displayName=oi;var kp="DialogTrigger",_E=b.forwardRef((l,i)=>{const{__scopeDialog:c,...o}=l,s=Ht(kp,c),f=tt(i,s.triggerRef);return y.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ms(s.open),...o,ref:f,onClick:qe(l.onClick,s.onOpenToggle)})});_E.displayName=kp;var ds="DialogPortal",[OE,Lp]=zp(ds,{forceMount:void 0}),Hp=l=>{const{__scopeDialog:i,forceMount:c,children:o,container:s}=l,f=Ht(ds,i);return y.jsx(OE,{scope:i,forceMount:c,children:b.Children.map(o,p=>y.jsx(ya,{present:c||f.open,children:y.jsx(Cp,{asChild:!0,container:s,children:p})}))})};Hp.displayName=ds;var Iu="DialogOverlay",Bp=b.forwardRef((l,i)=>{const c=Lp(Iu,l.__scopeDialog),{forceMount:o=c.forceMount,...s}=l,f=Ht(Iu,l.__scopeDialog);return f.modal?y.jsx(ya,{present:o||f.open,children:y.jsx(DE,{...s,ref:i})}):null});Bp.displayName=Iu;var ME=yr("DialogOverlay.RemoveScroll"),DE=b.forwardRef((l,i)=>{const{__scopeDialog:c,...o}=l,s=Ht(Iu,c);return y.jsx(Dp,{as:ME,allowPinchZoom:!0,shards:[s.contentRef],children:y.jsx(Me.div,{"data-state":ms(s.open),...o,ref:i,style:{pointerEvents:"auto",...o.style}})})}),va="DialogContent",Gp=b.forwardRef((l,i)=>{const c=Lp(va,l.__scopeDialog),{forceMount:o=c.forceMount,...s}=l,f=Ht(va,l.__scopeDialog);return y.jsx(ya,{present:o||f.open,children:f.modal?y.jsx(jE,{...s,ref:i}):y.jsx(zE,{...s,ref:i})})});Gp.displayName=va;var jE=b.forwardRef((l,i)=>{const c=Ht(va,l.__scopeDialog),o=b.useRef(null),s=tt(i,c.contentRef,o);return b.useEffect(()=>{const f=o.current;if(f)return wE(f)},[]),y.jsx(qp,{...l,ref:s,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qe(l.onCloseAutoFocus,f=>{var p;f.preventDefault(),(p=c.triggerRef.current)==null||p.focus()}),onPointerDownOutside:qe(l.onPointerDownOutside,f=>{const p=f.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0;(p.button===2||h)&&f.preventDefault()}),onFocusOutside:qe(l.onFocusOutside,f=>f.preventDefault())})}),zE=b.forwardRef((l,i)=>{const c=Ht(va,l.__scopeDialog),o=b.useRef(!1),s=b.useRef(!1);return y.jsx(qp,{...l,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var p,h;(p=l.onCloseAutoFocus)==null||p.call(l,f),f.defaultPrevented||(o.current||(h=c.triggerRef.current)==null||h.focus(),f.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:f=>{var v,m;(v=l.onInteractOutside)==null||v.call(l,f),f.defaultPrevented||(o.current=!0,f.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const p=f.target;((m=c.triggerRef.current)==null?void 0:m.contains(p))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&s.current&&f.preventDefault()}})}),qp=b.forwardRef((l,i)=>{const{__scopeDialog:c,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:f,...p}=l,h=Ht(va,c),v=b.useRef(null),m=tt(i,v);return qS(),y.jsxs(y.Fragment,{children:[y.jsx(Ep,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:f,children:y.jsx(xp,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":ms(h.open),...p,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(kE,{titleId:h.titleId}),y.jsx(HE,{contentRef:v,descriptionId:h.descriptionId})]})]})}),hs="DialogTitle",Yp=b.forwardRef((l,i)=>{const{__scopeDialog:c,...o}=l,s=Ht(hs,c);return y.jsx(Me.h2,{id:s.titleId,...o,ref:i})});Yp.displayName=hs;var Vp="DialogDescription",UE=b.forwardRef((l,i)=>{const{__scopeDialog:c,...o}=l,s=Ht(Vp,c);return y.jsx(Me.p,{id:s.descriptionId,...o,ref:i})});UE.displayName=Vp;var Xp="DialogClose",Qp=b.forwardRef((l,i)=>{const{__scopeDialog:c,...o}=l,s=Ht(Xp,c);return y.jsx(Me.button,{type:"button",...o,ref:i,onClick:qe(l.onClick,()=>s.onOpenChange(!1))})});Qp.displayName=Xp;function ms(l){return l?"open":"closed"}var Zp="DialogTitleWarning",[r2,Kp]=B1(Zp,{contentName:va,titleName:hs,docsSlug:"dialog"}),kE=({titleId:l})=>{const i=Kp(Zp),c=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return b.useEffect(()=>{l&&(document.getElementById(l)||console.error(c))},[c,l]),null},LE="DialogDescriptionWarning",HE=({contentRef:l,descriptionId:i})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kp(LE).contentName}}.`;return b.useEffect(()=>{var f;const s=(f=l.current)==null?void 0:f.getAttribute("aria-describedby");i&&s&&(document.getElementById(i)||console.warn(o))},[o,l,i]),null},BE=Up,GE=Hp,qE=Bp,YE=Gp,VE=Yp,XE=Qp;function QE({...l}){return y.jsx(BE,{"data-slot":"dialog",...l})}function ZE({...l}){return y.jsx(GE,{"data-slot":"dialog-portal",...l})}function KE({className:l,...i}){return y.jsx(qE,{"data-slot":"dialog-overlay",className:ft("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",l),...i})}function JE({className:l,children:i,showCloseButton:c=!0,...o}){return y.jsxs(ZE,{"data-slot":"dialog-portal",children:[y.jsx(KE,{}),y.jsxs(YE,{"data-slot":"dialog-content",className:ft("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",l),...o,children:[i,c&&y.jsxs(XE,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[y.jsx(Zx,{}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function $E({className:l,...i}){return y.jsx("div",{"data-slot":"dialog-header",className:ft("flex flex-col gap-2 text-center sm:text-left",l),...i})}function FE({className:l,...i}){return y.jsx(VE,{"data-slot":"dialog-title",className:ft("text-lg leading-none font-semibold",l),...i})}const PE=({open:l,captureSlug:i,currentName:c,onSave:o,onCancel:s})=>{const[f,p]=b.useState(c);return b.useEffect(()=>{p(c)},[c]),y.jsx(QE,{open:l,onOpenChange:h=>!h&&s(),children:y.jsxs(JE,{onPointerMove:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),children:[y.jsx($E,{children:y.jsx(FE,{children:"Rename Capture"})}),y.jsxs("div",{className:"space-y-4",children:[y.jsx(Fu,{value:f,onChange:h=>p(h.target.value),onPointerMove:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation()}),y.jsxs("div",{className:"flex justify-end space-x-2",children:[y.jsx(et,{variant:"outline",onClick:s,children:"Cancel"}),y.jsx(et,{onClick:()=>{o(i,f),s()},children:"Save"})]})]})]})})},WE=()=>{const[l,i]=b.useState({}),[c,o]=b.useState([]),[s,f]=b.useState(void 0),[p,h]=b.useState([]),[v,m]=b.useState({open:!1,captureSlug:"",currentName:""}),x=async()=>{try{const A=await(await fetch("/captures")).json();o(A)}catch(M){console.error("Failed to fetch scrolls:",M)}},C=async M=>{try{const _=await(await fetch(`/captures/${M}`)).json();h(_.events),f([M,_.capture])}catch(A){console.error("Failed to fetch capture events:",A)}},T=async()=>{try{const A=await(await fetch("/settings")).json();i(A)}catch(M){console.error("Failed to fetch settings:",M)}},k=async(M,A)=>{try{(await fetch(new URL(`/captures/${M}`,void 0),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:A})})).ok&&x()}catch(_){console.error("Failed to rename capture:",_)}};return b.useEffect(()=>{T(),x()},[]),y.jsxs(y.Fragment,{children:[y.jsx(PE,{open:v.open,captureSlug:v.captureSlug,currentName:v.currentName,onSave:k,onCancel:()=>m(M=>({...M,open:!1}))}),y.jsxs("div",{className:"p-6",children:[y.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Scrolls"}),y.jsxs("div",{className:"flex gap-2 align-top",children:[c.length===0?y.jsx("div",{children:"No scrolls found."}):y.jsx("div",{className:"grid grid-cols-1 gap-4 min-w-1/2",children:c.map(M=>y.jsx(fn,{className:`cursor-pointer hover:shadow-md ${s!=null&&s[0]==M?"border-4":""}`,onClick:()=>{C(M)},onContextMenu:A=>{A.preventDefault(),m({open:!0,captureSlug:M,currentName:M})},children:y.jsx("div",{className:"flex justify-between items-start p-4",children:y.jsxs("div",{className:"flex-1",children:[y.jsx("div",{className:"font-semibold",children:M}),y.jsx("div",{className:"text-sm text-gray-600"})]})})},M))}),s&&y.jsxs(fn,{className:"w-1/2",children:[y.jsx(ol,{children:y.jsxs("h3",{className:"text-lg font-semibold",children:[s[1]&&s[1].capture_name," results"]})}),y.jsx(Xn,{children:y.jsx("ul",{className:"text-sm space-y-1",children:p.map(M=>y.jsxs("li",{children:[y.jsxs("a",{href:`file:///${l.captures_directory}/${s[0]}/${M}/event.json`,className:"text-blue-600 hover:underline",target:"_blank",rel:"noopener noreferrer",children:["Event: ",M]}),y.jsx("br",{}),y.jsxs("a",{href:`file:///${l.captures_directory}/${s[0]}/${M}/results.json`,className:"text-blue-600 hover:underline",target:"_blank",rel:"noopener noreferrer",children:["Results: ",M]})]},M))})})]})]})]})]})},IE=()=>{const[l,i]=b.useState({}),c="test_capture_001",o="general",s={"GET /":async()=>{var m;const h=await fetch("/"),v=await h.text();return{result:(m=h.headers.get("content-type"))!=null&&m.includes("text/html")?"✅ HTML returned":"❌ Unexpected response",raw:v.slice(0,200)+"..."}},"GET /captures":async()=>{const v=await(await fetch("/captures")).json();return{result:Array.isArray(v)?`✅ Found ${v.length} captures`:"❌ Unexpected response format",raw:JSON.stringify(v)}},"PATCH /captures/:basename":async()=>{const h=await fetch(`/captures/${c}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:`Updated ${Date.now()}`})});return{result:h.ok?"✅ Patch Success":`❌ Failed (${h.status})`,raw:await h.text()}},"POST /jobs/job":async()=>{const h=await fetch("/jobs/job",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operator:"yt-shorts",name:"New Background Job"})});return{result:[201,202].includes(h.status)?"✅ Job Queued":"❌ Failed",raw:await h.text()}},"GET /jobs (Queue Info)":async()=>{const h=await fetch("/jobs"),v=await h.json();return{result:h.ok?"✅ Queue retrieved":"❌ Failed",raw:JSON.stringify(v)}},"GET /jobs/current":async()=>{const h=await fetch("/jobs/current"),v=await h.json();return{result:h.ok?"✅ Status retrieved":"❌ No active job/Error",raw:JSON.stringify(v)}},"GET /configuration/:domain":async()=>{const h=await fetch(`/configuration/${o}`),v=await h.json();return{result:h.ok?"✅ Config retrieved":"❌ Not found",raw:JSON.stringify(v)}},"PATCH /configuration/:domain":async()=>{const h=await fetch(`/configuration/${o}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:"value"})});return{result:h.status===200?"✅ Config Updated":"❌ Failed",raw:await h.text()}},"GET /plugins":async()=>{const v=await(await fetch("/plugins")).json();return{result:Array.isArray(v)?"✅ Plugins listed":"❌ Failed",raw:JSON.stringify(v)}},"GET /help":async()=>{const h=await fetch("/help"),v=await h.text();return{result:h.ok?"✅ README returned":"❌ Not found",raw:v.slice(0,100)}}},f=async()=>{const h={};for(const v of Object.keys(s))try{h[v]=await s[v]()}catch(m){h[v]={result:"❌ Exception thrown",raw:String(m)}}i(h)},p=async h=>{try{const v=await s[h]();i(m=>({...m,[h]:v}))}catch(v){i(m=>({...m,[h]:{result:"❌ Exception thrown",raw:String(v)}}))}};return y.jsxs("div",{className:"p-6",children:[y.jsxs("div",{className:"flex justify-between items-center mb-4",children:[y.jsx("h2",{className:"text-2xl font-bold",children:"API Integration Test Panel"}),y.jsx(et,{onClick:f,variant:"default",children:"Run All Tests"})]}),y.jsx("div",{className:"space-y-4",children:y.jsx("div",{className:"overflow-x-auto rounded-md border border-gray-200",children:y.jsxs("table",{className:"w-full text-sm text-left",children:[y.jsx("thead",{className:"bg-gray-50 text-gray-700 uppercase text-xs",children:y.jsxs("tr",{children:[y.jsx("th",{className:"px-4 py-3 border-b",children:"Endpoint"}),y.jsx("th",{className:"px-4 py-3 border-b",children:"Status"}),y.jsx("th",{className:"px-4 py-3 border-b",children:"Raw Output"}),y.jsx("th",{className:"px-4 py-3 border-b text-right",children:"Action"})]})}),y.jsx("tbody",{className:"divide-y divide-gray-200",children:Object.keys(s).map(h=>{var v,m;return y.jsxs("tr",{className:"hover:bg-gray-50 transition-colors",children:[y.jsx("td",{className:"px-4 py-3 font-mono font-medium text-blue-600",children:h}),y.jsx("td",{className:"px-4 py-3 font-mono whitespace-nowrap",children:((v=l[h])==null?void 0:v.result)||"-"}),y.jsx("td",{className:"px-4 py-3 font-mono text-xs text-gray-500 max-w-xs truncate",children:((m=l[h])==null?void 0:m.raw)||"-"}),y.jsx("td",{className:"px-4 py-3 text-right",children:y.jsx(et,{size:"sm",variant:"outline",onClick:()=>p(h),children:"Run"})})]},h)})})]})})})]})},e2=()=>{const[l,i]=b.useState("Loading...");return b.useEffect(()=>{fetch("/help").then(c=>{if(!c.ok)throw new Error("Failed to load help content");return c.text()}).then(c=>i(c)).catch(()=>i("Error loading content."))},[]),y.jsx("div",{className:"p-6",children:y.jsxs(fn,{children:[y.jsx(ol,{children:y.jsx("h2",{className:"text-2xl font-bold",children:"Help (w.i.p)"})}),y.jsx(Xn,{className:"space-y-4",children:y.jsx("div",{className:"text-sm font-mono bg-slate-50 p-4 rounded-md whitespace-pre-wrap",children:l})})]})})};$0.createRoot(document.getElementById("root")).render(y.jsx(y.Fragment,{children:y.jsx("div",{className:"min-h-screen bg-gray-100",children:y.jsx("div",{className:"max-w-4xl mx-auto bg-white shadow-lg",children:y.jsxs(j0,{children:[y.jsx(ES,{}),y.jsxs(s0,{children:[y.jsx(da,{path:"/",element:y.jsx(SS,{})}),y.jsx(da,{path:"/about",element:y.jsx(RS,{})}),y.jsx(da,{path:"/scrolls",element:y.jsx(WE,{})}),y.jsx(da,{path:"/settings",element:y.jsx(CS,{})}),y.jsx(da,{path:"/test",element:y.jsx(IE,{})}),y.jsx(da,{path:"/sfv_help",element:y.jsx(e2,{})})]})]})})})}));
