function D_(e,n){for(var r=0;r<n.length;r++){const o=n[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(o,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function Ub(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vd={exports:{}},tl={};/**
 * @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 Ig;function N_(){if(Ig)return tl;Ig=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(o,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:e,type:o,key:f,ref:s!==void 0?s:null,props:c}}return tl.Fragment=n,tl.jsx=r,tl.jsxs=r,tl}var Gg;function z_(){return Gg||(Gg=1,vd.exports=N_()),vd.exports}var w=z_(),bd={exports:{}},De={};/**
 * @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 Xg;function j_(){if(Xg)return De;Xg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function x(R){return R===null||typeof R!="object"?null:(R=g&&R[g]||R["@@iterator"],typeof R=="function"?R:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function T(R,K,le){this.props=R,this.context=K,this.refs=S,this.updater=le||E}T.prototype.isReactComponent={},T.prototype.setState=function(R,K){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,K,"setState")},T.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function O(){}O.prototype=T.prototype;function C(R,K,le){this.props=R,this.context=K,this.refs=S,this.updater=le||E}var A=C.prototype=new O;A.constructor=C,k(A,T.prototype),A.isPureReactComponent=!0;var N=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},q=Object.prototype.hasOwnProperty;function L(R,K,le,ae,fe,ke){return le=ke.ref,{$$typeof:e,type:R,key:K,ref:le!==void 0?le:null,props:ke}}function U(R,K){return L(R.type,K,void 0,void 0,void 0,R.props)}function ee(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function ie(R){var K={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(le){return K[le]})}var se=/\/+/g;function te(R,K){return typeof R=="object"&&R!==null&&R.key!=null?ie(""+R.key):K.toString(36)}function ce(){}function he(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ce,ce):(R.status="pending",R.then(function(K){R.status==="pending"&&(R.status="fulfilled",R.value=K)},function(K){R.status==="pending"&&(R.status="rejected",R.reason=K)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function pe(R,K,le,ae,fe){var ke=typeof R;(ke==="undefined"||ke==="boolean")&&(R=null);var we=!1;if(R===null)we=!0;else switch(ke){case"bigint":case"string":case"number":we=!0;break;case"object":switch(R.$$typeof){case e:case n:we=!0;break;case y:return we=R._init,pe(we(R._payload),K,le,ae,fe)}}if(we)return fe=fe(R),we=ae===""?"."+te(R,0):ae,N(fe)?(le="",we!=null&&(le=we.replace(se,"$&/")+"/"),pe(fe,K,le,"",function(Be){return Be})):fe!=null&&(ee(fe)&&(fe=U(fe,le+(fe.key==null||R&&R.key===fe.key?"":(""+fe.key).replace(se,"$&/")+"/")+we)),K.push(fe)),1;we=0;var oe=ae===""?".":ae+":";if(N(R))for(var _e=0;_e<R.length;_e++)ae=R[_e],ke=oe+te(ae,_e),we+=pe(ae,K,le,ke,fe);else if(_e=x(R),typeof _e=="function")for(R=_e.call(R),_e=0;!(ae=R.next()).done;)ae=ae.value,ke=oe+te(ae,_e++),we+=pe(ae,K,le,ke,fe);else if(ke==="object"){if(typeof R.then=="function")return pe(he(R),K,le,ae,fe);throw K=String(R),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return we}function B(R,K,le){if(R==null)return R;var ae=[],fe=0;return pe(R,ae,"","",function(ke){return K.call(le,ke,fe++)}),ae}function I(R){if(R._status===-1){var K=R._result;K=K(),K.then(function(le){(R._status===0||R._status===-1)&&(R._status=1,R._result=le)},function(le){(R._status===0||R._status===-1)&&(R._status=2,R._result=le)}),R._status===-1&&(R._status=0,R._result=K)}if(R._status===1)return R._result.default;throw R._result}var H=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function ye(){}return De.Children={map:B,forEach:function(R,K,le){B(R,function(){K.apply(this,arguments)},le)},count:function(R){var K=0;return B(R,function(){K++}),K},toArray:function(R){return B(R,function(K){return K})||[]},only:function(R){if(!ee(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},De.Component=T,De.Fragment=r,De.Profiler=s,De.PureComponent=C,De.StrictMode=o,De.Suspense=p,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,De.__COMPILER_RUNTIME={__proto__:null,c:function(R){return M.H.useMemoCache(R)}},De.cache=function(R){return function(){return R.apply(null,arguments)}},De.cloneElement=function(R,K,le){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ae=k({},R.props),fe=R.key,ke=void 0;if(K!=null)for(we in K.ref!==void 0&&(ke=void 0),K.key!==void 0&&(fe=""+K.key),K)!q.call(K,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&K.ref===void 0||(ae[we]=K[we]);var we=arguments.length-2;if(we===1)ae.children=le;else if(1<we){for(var oe=Array(we),_e=0;_e<we;_e++)oe[_e]=arguments[_e+2];ae.children=oe}return L(R.type,fe,void 0,void 0,ke,ae)},De.createContext=function(R){return R={$$typeof:f,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},De.createElement=function(R,K,le){var ae,fe={},ke=null;if(K!=null)for(ae in K.key!==void 0&&(ke=""+K.key),K)q.call(K,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(fe[ae]=K[ae]);var we=arguments.length-2;if(we===1)fe.children=le;else if(1<we){for(var oe=Array(we),_e=0;_e<we;_e++)oe[_e]=arguments[_e+2];fe.children=oe}if(R&&R.defaultProps)for(ae in we=R.defaultProps,we)fe[ae]===void 0&&(fe[ae]=we[ae]);return L(R,ke,void 0,void 0,null,fe)},De.createRef=function(){return{current:null}},De.forwardRef=function(R){return{$$typeof:d,render:R}},De.isValidElement=ee,De.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:I}},De.memo=function(R,K){return{$$typeof:h,type:R,compare:K===void 0?null:K}},De.startTransition=function(R){var K=M.T,le={};M.T=le;try{var ae=R(),fe=M.S;fe!==null&&fe(le,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(ye,H)}catch(ke){H(ke)}finally{M.T=K}},De.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},De.use=function(R){return M.H.use(R)},De.useActionState=function(R,K,le){return M.H.useActionState(R,K,le)},De.useCallback=function(R,K){return M.H.useCallback(R,K)},De.useContext=function(R){return M.H.useContext(R)},De.useDebugValue=function(){},De.useDeferredValue=function(R,K){return M.H.useDeferredValue(R,K)},De.useEffect=function(R,K,le){var ae=M.H;if(typeof le=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(R,K)},De.useId=function(){return M.H.useId()},De.useImperativeHandle=function(R,K,le){return M.H.useImperativeHandle(R,K,le)},De.useInsertionEffect=function(R,K){return M.H.useInsertionEffect(R,K)},De.useLayoutEffect=function(R,K){return M.H.useLayoutEffect(R,K)},De.useMemo=function(R,K){return M.H.useMemo(R,K)},De.useOptimistic=function(R,K){return M.H.useOptimistic(R,K)},De.useReducer=function(R,K,le){return M.H.useReducer(R,K,le)},De.useRef=function(R){return M.H.useRef(R)},De.useState=function(R){return M.H.useState(R)},De.useSyncExternalStore=function(R,K,le){return M.H.useSyncExternalStore(R,K,le)},De.useTransition=function(){return M.H.useTransition()},De.version="19.1.0",De}var Kg;function vm(){return Kg||(Kg=1,bd.exports=j_()),bd.exports}var b=vm();const W=Ub(b),Pb=D_({__proto__:null,default:W},[b]);var nl={},Qg;function B_(){if(Qg)return nl;Qg=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.parse=f,nl.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,c=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function f(x,E){const k=new c,S=x.length;if(S<2)return k;const T=E?.decode||y;let O=0;do{const C=x.indexOf("=",O);if(C===-1)break;const A=x.indexOf(";",O),N=A===-1?S:A;if(C>N){O=x.lastIndexOf(";",C-1)+1;continue}const M=d(x,O,C),q=p(x,C,M),L=x.slice(M,q);if(k[L]===void 0){let U=d(x,C+1,N),ee=p(x,N,U);const ie=T(x.slice(U,ee));k[L]=ie}O=N+1}while(O<S);return k}function d(x,E,k){do{const S=x.charCodeAt(E);if(S!==32&&S!==9)return E}while(++E<k);return k}function p(x,E,k){for(;E>k;){const S=x.charCodeAt(--E);if(S!==32&&S!==9)return E+1}return k}function h(x,E,k){const S=k?.encode||encodeURIComponent;if(!e.test(x))throw new TypeError(`argument name is invalid: ${x}`);const T=S(E);if(!n.test(T))throw new TypeError(`argument val is invalid: ${E}`);let O=x+"="+T;if(!k)return O;if(k.maxAge!==void 0){if(!Number.isInteger(k.maxAge))throw new TypeError(`option maxAge is invalid: ${k.maxAge}`);O+="; Max-Age="+k.maxAge}if(k.domain){if(!r.test(k.domain))throw new TypeError(`option domain is invalid: ${k.domain}`);O+="; Domain="+k.domain}if(k.path){if(!o.test(k.path))throw new TypeError(`option path is invalid: ${k.path}`);O+="; Path="+k.path}if(k.expires){if(!g(k.expires)||!Number.isFinite(k.expires.valueOf()))throw new TypeError(`option expires is invalid: ${k.expires}`);O+="; Expires="+k.expires.toUTCString()}if(k.httpOnly&&(O+="; HttpOnly"),k.secure&&(O+="; Secure"),k.partitioned&&(O+="; Partitioned"),k.priority)switch(typeof k.priority=="string"?k.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${k.priority}`)}if(k.sameSite)switch(typeof k.sameSite=="string"?k.sameSite.toLowerCase():k.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${k.sameSite}`)}return O}function y(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function g(x){return s.call(x)==="[object Date]"}return nl}B_();var Jg="popstate";function L_(e={}){function n(o,s){let{pathname:c,search:f,hash:d}=o.location;return Zd("",{pathname:c,search:f,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(o,s){return typeof s=="string"?s:bl(s)}return P_(n,r,null,e)}function pt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function oa(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function U_(){return Math.random().toString(36).substring(2,10)}function ev(e,n){return{usr:e.state,key:e.key,idx:n}}function Zd(e,n,r=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ko(n):n,state:r,key:n&&n.key||o||U_()}}function bl({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ko(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(n.search=e.substring(o),e=e.substring(0,o)),e&&(n.pathname=e)}return n}function P_(e,n,r,o={}){let{window:s=document.defaultView,v5Compat:c=!1}=o,f=s.history,d="POP",p=null,h=y();h==null&&(h=0,f.replaceState({...f.state,idx:h},""));function y(){return(f.state||{idx:null}).idx}function g(){d="POP";let T=y(),O=T==null?null:T-h;h=T,p&&p({action:d,location:S.location,delta:O})}function x(T,O){d="PUSH";let C=Zd(S.location,T,O);h=y()+1;let A=ev(C,h),N=S.createHref(C);try{f.pushState(A,"",N)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;s.location.assign(N)}c&&p&&p({action:d,location:S.location,delta:1})}function E(T,O){d="REPLACE";let C=Zd(S.location,T,O);h=y();let A=ev(C,h),N=S.createHref(C);f.replaceState(A,"",N),c&&p&&p({action:d,location:S.location,delta:0})}function k(T){return H_(T)}let S={get action(){return d},get location(){return e(s,f)},listen(T){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Jg,g),p=T,()=>{s.removeEventListener(Jg,g),p=null}},createHref(T){return n(s,T)},createURL:k,encodeLocation(T){let O=k(T);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:x,replace:E,go(T){return f.go(T)}};return S}function H_(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),pt(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:bl(e);return o=o.replace(/ $/,"%20"),!n&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Hb(e,n,r="/"){return F_(e,n,r,!1)}function F_(e,n,r,o){let s=typeof n=="string"?Ko(n):n,c=za(s.pathname||"/",r);if(c==null)return null;let f=Fb(e);V_(f);let d=null;for(let p=0;d==null&&p<f.length;++p){let h=J_(c);d=K_(f[p],h,o)}return d}function Fb(e,n=[],r=[],o=""){let s=(c,f,d)=>{let p={relativePath:d===void 0?c.path||"":d,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};p.relativePath.startsWith("/")&&(pt(p.relativePath.startsWith(o),`Absolute route path "${p.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(o.length));let h=Da([o,p.relativePath]),y=r.concat(p);c.children&&c.children.length>0&&(pt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Fb(c.children,n,y,h)),!(c.path==null&&!c.index)&&n.push({path:h,score:G_(h,c.index),routesMeta:y})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))s(c,f);else for(let d of Vb(c.path))s(c,f,d)}),n}function Vb(e){let n=e.split("/");if(n.length===0)return[];let[r,...o]=n,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(o.length===0)return s?[c,""]:[c];let f=Vb(o.join("/")),d=[];return d.push(...f.map(p=>p===""?c:[c,p].join("/"))),s&&d.push(...f),d.map(p=>e.startsWith("/")&&p===""?"/":p)}function V_(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:X_(n.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var Z_=/^:[\w-]+$/,Y_=3,$_=2,q_=1,W_=10,I_=-2,tv=e=>e==="*";function G_(e,n){let r=e.split("/"),o=r.length;return r.some(tv)&&(o+=I_),n&&(o+=$_),r.filter(s=>!tv(s)).reduce((s,c)=>s+(Z_.test(c)?Y_:c===""?q_:W_),o)}function X_(e,n){return e.length===n.length&&e.slice(0,-1).every((o,s)=>o===n[s])?e[e.length-1]-n[n.length-1]:0}function K_(e,n,r=!1){let{routesMeta:o}=e,s={},c="/",f=[];for(let d=0;d<o.length;++d){let p=o[d],h=d===o.length-1,y=c==="/"?n:n.slice(c.length)||"/",g=Tc({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},y),x=p.route;if(!g&&h&&r&&!o[o.length-1].route.index&&(g=Tc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!g)return null;Object.assign(s,g.params),f.push({params:s,pathname:Da([c,g.pathname]),pathnameBase:aE(Da([c,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(c=Da([c,g.pathnameBase]))}return f}function Tc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Q_(e.path,e.caseSensitive,e.end),s=n.match(r);if(!s)return null;let c=s[0],f=c.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:o.reduce((h,{paramName:y,isOptional:g},x)=>{if(y==="*"){let k=d[x]||"";f=c.slice(0,c.length-k.length).replace(/(.)\/+$/,"$1")}const E=d[x];return g&&!E?h[y]=void 0:h[y]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:c,pathnameBase:f,pattern:e}}function Q_(e,n=!1,r=!0){oa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,d,p)=>(o.push({paramName:d,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),o]}function J_(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return oa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function za(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}function eE(e,n="/"){let{pathname:r,search:o="",hash:s=""}=typeof e=="string"?Ko(e):e;return{pathname:r?r.startsWith("/")?r:tE(r,n):n,search:rE(o),hash:oE(s)}}function tE(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function xd(e,n,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(o)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nE(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Zb(e){let n=nE(e);return n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase)}function Yb(e,n,r,o=!1){let s;typeof e=="string"?s=Ko(e):(s={...e},pt(!s.pathname||!s.pathname.includes("?"),xd("?","pathname","search",s)),pt(!s.pathname||!s.pathname.includes("#"),xd("#","pathname","hash",s)),pt(!s.search||!s.search.includes("#"),xd("#","search","hash",s)));let c=e===""||s.pathname==="",f=c?"/":s.pathname,d;if(f==null)d=r;else{let g=n.length-1;if(!o&&f.startsWith("..")){let x=f.split("/");for(;x[0]==="..";)x.shift(),g-=1;s.pathname=x.join("/")}d=g>=0?n[g]:"/"}let p=eE(s,d),h=f&&f!=="/"&&f.endsWith("/"),y=(c||f===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(h||y)&&(p.pathname+="/"),p}var Da=e=>e.join("/").replace(/\/\/+/g,"/"),aE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var $b=["POST","PUT","PATCH","DELETE"];new Set($b);var lE=["GET",...$b];new Set(lE);var Qo=b.createContext(null);Qo.displayName="DataRouter";var Uc=b.createContext(null);Uc.displayName="DataRouterState";var qb=b.createContext({isTransitioning:!1});qb.displayName="ViewTransition";var sE=b.createContext(new Map);sE.displayName="Fetchers";var cE=b.createContext(null);cE.displayName="Await";var la=b.createContext(null);la.displayName="Navigation";var Ol=b.createContext(null);Ol.displayName="Location";var Vn=b.createContext({outlet:null,matches:[],isDataRoute:!1});Vn.displayName="Route";var bm=b.createContext(null);bm.displayName="RouteError";function uE(e,{relative:n}={}){pt(Al(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=b.useContext(la),{hash:s,pathname:c,search:f}=Rl(e,{relative:n}),d=c;return r!=="/"&&(d=c==="/"?r:Da([r,c])),o.createHref({pathname:d,search:f,hash:s})}function Al(){return b.useContext(Ol)!=null}function Gr(){return pt(Al(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Ol).location}var Wb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ib(e){b.useContext(la).static||b.useLayoutEffect(e)}function Pc(){let{isDataRoute:e}=b.useContext(Vn);return e?TE():fE()}function fE(){pt(Al(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Qo),{basename:n,navigator:r}=b.useContext(la),{matches:o}=b.useContext(Vn),{pathname:s}=Gr(),c=JSON.stringify(Zb(o)),f=b.useRef(!1);return Ib(()=>{f.current=!0}),b.useCallback((p,h={})=>{if(oa(f.current,Wb),!f.current)return;if(typeof p=="number"){r.go(p);return}let y=Yb(p,JSON.parse(c),s,h.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Da([n,y.pathname])),(h.replace?r.replace:r.push)(y,h.state,h)},[n,r,c,s,e])}var dE=b.createContext(null);function mE(e){let n=b.useContext(Vn).outlet;return n&&b.createElement(dE.Provider,{value:e},n)}function Gb(){let{matches:e}=b.useContext(Vn),n=e[e.length-1];return n?n.params:{}}function Rl(e,{relative:n}={}){let{matches:r}=b.useContext(Vn),{pathname:o}=Gr(),s=JSON.stringify(Zb(r));return b.useMemo(()=>Yb(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function hE(e,n){return Xb(e,n)}function Xb(e,n,r,o){pt(Al(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=b.useContext(la),{matches:c}=b.useContext(Vn),f=c[c.length-1],d=f?f.params:{},p=f?f.pathname:"/",h=f?f.pathnameBase:"/",y=f&&f.route;{let O=y&&y.path||"";Kb(p,!y||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${O}">) 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="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let g=Gr(),x;if(n){let O=typeof n=="string"?Ko(n):n;pt(h==="/"||O.pathname?.startsWith(h),`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 "${h}" but pathname "${O.pathname}" was given in the \`location\` prop.`),x=O}else x=g;let E=x.pathname||"/",k=E;if(h!=="/"){let O=h.replace(/^\//,"").split("/");k="/"+E.replace(/^\//,"").split("/").slice(O.length).join("/")}let S=Hb(e,{pathname:k});oa(y||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),oa(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 T=bE(S&&S.map(O=>Object.assign({},O,{params:Object.assign({},d,O.params),pathname:Da([h,s.encodeLocation?s.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?h:Da([h,s.encodeLocation?s.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),c,r,o);return n&&T?b.createElement(Ol.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},T):T}function pE(){let e=EE(),n=iE(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},c={padding:"2px 4px",backgroundColor:o},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=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:c},"ErrorBoundary")," or"," ",b.createElement("code",{style:c},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},n),r?b.createElement("pre",{style:s},r):null,f)}var yE=b.createElement(pE,null),gE=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?b.createElement(Vn.Provider,{value:this.props.routeContext},b.createElement(bm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function vE({routeContext:e,match:n,children:r}){let o=b.useContext(Qo);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Vn.Provider,{value:e},r)}function bE(e,n=[],r=null,o=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,c=r?.errors;if(c!=null){let p=s.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);pt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let f=!1,d=-1;if(r)for(let p=0;p<s.length;p++){let h=s[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=p),h.route.id){let{loaderData:y,errors:g}=r,x=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||x){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((p,h,y)=>{let g,x=!1,E=null,k=null;r&&(g=c&&h.route.id?c[h.route.id]:void 0,E=h.route.errorElement||yE,f&&(d<0&&y===0?(Kb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,k=null):d===y&&(x=!0,k=h.route.hydrateFallbackElement||null)));let S=n.concat(s.slice(0,y+1)),T=()=>{let O;return g?O=E:x?O=k:h.route.Component?O=b.createElement(h.route.Component,null):h.route.element?O=h.route.element:O=p,b.createElement(vE,{match:h,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:O})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?b.createElement(gE,{location:r.location,revalidation:r.revalidation,component:E,error:g,children:T(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):T()},null)}function xm(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function xE(e){let n=b.useContext(Qo);return pt(n,xm(e)),n}function wE(e){let n=b.useContext(Uc);return pt(n,xm(e)),n}function SE(e){let n=b.useContext(Vn);return pt(n,xm(e)),n}function wm(e){let n=SE(e),r=n.matches[n.matches.length-1];return pt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function _E(){return wm("useRouteId")}function EE(){let e=b.useContext(bm),n=wE("useRouteError"),r=wm("useRouteError");return e!==void 0?e:n.errors?.[r]}function TE(){let{router:e}=xE("useNavigate"),n=wm("useNavigate"),r=b.useRef(!1);return Ib(()=>{r.current=!0}),b.useCallback(async(s,c={})=>{oa(r.current,Wb),r.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:n,...c}))},[e,n])}var nv={};function Kb(e,n,r){!n&&!nv[e]&&(nv[e]=!0,oa(!1,r))}b.memo(kE);function kE({routes:e,future:n,state:r}){return Xb(e,void 0,r,n)}function CE(e){return mE(e.context)}function dl(e){pt(!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 OE({basename:e="/",children:n=null,location:r,navigationType:o="POP",navigator:s,static:c=!1}){pt(!Al(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=b.useMemo(()=>({basename:f,navigator:s,static:c,future:{}}),[f,s,c]);typeof r=="string"&&(r=Ko(r));let{pathname:p="/",search:h="",hash:y="",state:g=null,key:x="default"}=r,E=b.useMemo(()=>{let k=za(p,f);return k==null?null:{location:{pathname:k,search:h,hash:y,state:g,key:x},navigationType:o}},[f,p,h,y,g,x,o]);return oa(E!=null,`<Router basename="${f}"> is not able to match the URL "${p}${h}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:b.createElement(la.Provider,{value:d},b.createElement(Ol.Provider,{children:n,value:E}))}function AE({children:e,location:n}){return hE(Yd(e),n)}function Yd(e,n=[]){let r=[];return b.Children.forEach(e,(o,s)=>{if(!b.isValidElement(o))return;let c=[...n,s];if(o.type===b.Fragment){r.push.apply(r,Yd(o.props.children,c));return}pt(o.type===dl,`[${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>`),pt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let f={id:o.props.id||c.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&&(f.children=Yd(o.props.children,c)),r.push(f)}),r}var bc="get",xc="application/x-www-form-urlencoded";function Hc(e){return e!=null&&typeof e.tagName=="string"}function RE(e){return Hc(e)&&e.tagName.toLowerCase()==="button"}function ME(e){return Hc(e)&&e.tagName.toLowerCase()==="form"}function DE(e){return Hc(e)&&e.tagName.toLowerCase()==="input"}function NE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zE(e,n){return e.button===0&&(!n||n==="_self")&&!NE(e)}var tc=null;function jE(){if(tc===null)try{new FormData(document.createElement("form"),0),tc=!1}catch{tc=!0}return tc}var BE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wd(e){return e!=null&&!BE.has(e)?(oa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xc}"`),null):e}function LE(e,n){let r,o,s,c,f;if(ME(e)){let d=e.getAttribute("action");o=d?za(d,n):null,r=e.getAttribute("method")||bc,s=wd(e.getAttribute("enctype"))||xc,c=new FormData(e)}else if(RE(e)||DE(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||d.getAttribute("action");if(o=p?za(p,n):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||bc,s=wd(e.getAttribute("formenctype"))||wd(d.getAttribute("enctype"))||xc,c=new FormData(d,e),!jE()){let{name:h,type:y,value:g}=e;if(y==="image"){let x=h?`${h}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else h&&c.append(h,g)}}else{if(Hc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=bc,o=null,s=xc,f=e}return c&&s==="text/plain"&&(f=c,c=void 0),{action:o,method:r.toLowerCase(),encType:s,formData:c,body:f}}function Sm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function UE(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function PE(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function HE(e,n,r){let o=await Promise.all(e.map(async s=>{let c=n.routes[s.route.id];if(c){let f=await UE(c,r);return f.links?f.links():[]}return[]}));return YE(o.flat(1).filter(PE).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function av(e,n,r,o,s,c){let f=(p,h)=>r[h]?p.route.id!==r[h].route.id:!0,d=(p,h)=>r[h].pathname!==p.pathname||r[h].route.path?.endsWith("*")&&r[h].params["*"]!==p.params["*"];return c==="assets"?n.filter((p,h)=>f(p,h)||d(p,h)):c==="data"?n.filter((p,h)=>{let y=o.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(f(p,h)||d(p,h))return!0;if(p.route.shouldRevalidate){let g=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function FE(e,n,{includeHydrateFallback:r}={}){return VE(e.map(o=>{let s=n.routes[o.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function VE(e){return[...new Set(e)]}function ZE(e){let n={},r=Object.keys(e).sort();for(let o of r)n[o]=e[o];return n}function YE(e,n){let r=new Set;return new Set(n),e.reduce((o,s)=>{let c=JSON.stringify(ZE(s));return r.has(c)||(r.add(c),o.push({key:c,link:s})),o},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $E=new Set([100,101,204,205]);function qE(e,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":n&&za(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Qb(){let e=b.useContext(Qo);return Sm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function WE(){let e=b.useContext(Uc);return Sm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var _m=b.createContext(void 0);_m.displayName="FrameworkContext";function Jb(){let e=b.useContext(_m);return Sm(e,"You must render this element inside a <HydratedRouter> element"),e}function IE(e,n){let r=b.useContext(_m),[o,s]=b.useState(!1),[c,f]=b.useState(!1),{onFocus:d,onBlur:p,onMouseEnter:h,onMouseLeave:y,onTouchStart:g}=n,x=b.useRef(null);b.useEffect(()=>{if(e==="render"&&f(!0),e==="viewport"){let S=O=>{O.forEach(C=>{f(C.isIntersecting)})},T=new IntersectionObserver(S,{threshold:.5});return x.current&&T.observe(x.current),()=>{T.disconnect()}}},[e]),b.useEffect(()=>{if(o){let S=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(S)}}},[o]);let E=()=>{s(!0)},k=()=>{s(!1),f(!1)};return r?e!=="intent"?[c,x,{}]:[c,x,{onFocus:al(d,E),onBlur:al(p,k),onMouseEnter:al(h,E),onMouseLeave:al(y,k),onTouchStart:al(g,E)}]:[!1,x,{}]}function al(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function GE({page:e,...n}){let{router:r}=Qb(),o=b.useMemo(()=>Hb(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?b.createElement(KE,{page:e,matches:o,...n}):null}function XE(e){let{manifest:n,routeModules:r}=Jb(),[o,s]=b.useState([]);return b.useEffect(()=>{let c=!1;return HE(e,n,r).then(f=>{c||s(f)}),()=>{c=!0}},[e,n,r]),o}function KE({page:e,matches:n,...r}){let o=Gr(),{manifest:s,routeModules:c}=Jb(),{basename:f}=Qb(),{loaderData:d,matches:p}=WE(),h=b.useMemo(()=>av(e,n,p,s,o,"data"),[e,n,p,s,o]),y=b.useMemo(()=>av(e,n,p,s,o,"assets"),[e,n,p,s,o]),g=b.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let k=new Set,S=!1;if(n.forEach(O=>{let C=s.routes[O.route.id];!C||!C.hasLoader||(!h.some(A=>A.route.id===O.route.id)&&O.route.id in d&&c[O.route.id]?.shouldRevalidate||C.hasClientLoader?S=!0:k.add(O.route.id))}),k.size===0)return[];let T=qE(e,f);return S&&k.size>0&&T.searchParams.set("_routes",n.filter(O=>k.has(O.route.id)).map(O=>O.route.id).join(",")),[T.pathname+T.search]},[f,d,o,s,h,n,e,c]),x=b.useMemo(()=>FE(y,s),[y,s]),E=XE(y);return b.createElement(b.Fragment,null,g.map(k=>b.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...r})),x.map(k=>b.createElement("link",{key:k,rel:"modulepreload",href:k,...r})),E.map(({key:k,link:S})=>b.createElement("link",{key:k,...S})))}function QE(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var e0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{e0&&(window.__reactRouterVersion="7.6.3")}catch{}function JE({basename:e,children:n,window:r}){let o=b.useRef();o.current==null&&(o.current=L_({window:r,v5Compat:!0}));let s=o.current,[c,f]=b.useState({action:s.action,location:s.location}),d=b.useCallback(p=>{b.startTransition(()=>f(p))},[f]);return b.useLayoutEffect(()=>s.listen(d),[s,d]),b.createElement(OE,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:s})}var t0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,n0=b.forwardRef(function({onClick:n,discover:r="render",prefetch:o="none",relative:s,reloadDocument:c,replace:f,state:d,target:p,to:h,preventScrollReset:y,viewTransition:g,...x},E){let{basename:k}=b.useContext(la),S=typeof h=="string"&&t0.test(h),T,O=!1;if(typeof h=="string"&&S&&(T=h,e0))try{let ee=new URL(window.location.href),ie=h.startsWith("//")?new URL(ee.protocol+h):new URL(h),se=za(ie.pathname,k);ie.origin===ee.origin&&se!=null?h=se+ie.search+ie.hash:O=!0}catch{oa(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=uE(h,{relative:s}),[A,N,M]=IE(o,x),q=a2(h,{replace:f,state:d,target:p,preventScrollReset:y,relative:s,viewTransition:g});function L(ee){n&&n(ee),ee.defaultPrevented||q(ee)}let U=b.createElement("a",{...x,...M,href:T||C,onClick:O||c?n:L,ref:QE(E,N),target:p,"data-discover":!S&&r==="render"?"true":void 0});return A&&!S?b.createElement(b.Fragment,null,U,b.createElement(GE,{page:C})):U});n0.displayName="Link";var e2=b.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:o="",end:s=!1,style:c,to:f,viewTransition:d,children:p,...h},y){let g=Rl(f,{relative:h.relative}),x=Gr(),E=b.useContext(Uc),{navigator:k,basename:S}=b.useContext(la),T=E!=null&&s2(g)&&d===!0,O=k.encodeLocation?k.encodeLocation(g).pathname:g.pathname,C=x.pathname,A=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;r||(C=C.toLowerCase(),A=A?A.toLowerCase():null,O=O.toLowerCase()),A&&S&&(A=za(A,S)||A);const N=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let M=C===O||!s&&C.startsWith(O)&&C.charAt(N)==="/",q=A!=null&&(A===O||!s&&A.startsWith(O)&&A.charAt(O.length)==="/"),L={isActive:M,isPending:q,isTransitioning:T},U=M?n:void 0,ee;typeof o=="function"?ee=o(L):ee=[o,M?"active":null,q?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let ie=typeof c=="function"?c(L):c;return b.createElement(n0,{...h,"aria-current":U,className:ee,ref:y,style:ie,to:f,viewTransition:d},typeof p=="function"?p(L):p)});e2.displayName="NavLink";var t2=b.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:o,replace:s,state:c,method:f=bc,action:d,onSubmit:p,relative:h,preventScrollReset:y,viewTransition:g,...x},E)=>{let k=i2(),S=l2(d,{relative:h}),T=f.toLowerCase()==="get"?"get":"post",O=typeof d=="string"&&t0.test(d),C=A=>{if(p&&p(A),A.defaultPrevented)return;A.preventDefault();let N=A.nativeEvent.submitter,M=N?.getAttribute("formmethod")||f;k(N||A.currentTarget,{fetcherKey:n,method:M,navigate:r,replace:s,state:c,relative:h,preventScrollReset:y,viewTransition:g})};return b.createElement("form",{ref:E,method:T,action:S,onSubmit:o?p:C,...x,"data-discover":!O&&e==="render"?"true":void 0})});t2.displayName="Form";function n2(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function a0(e){let n=b.useContext(Qo);return pt(n,n2(e)),n}function a2(e,{target:n,replace:r,state:o,preventScrollReset:s,relative:c,viewTransition:f}={}){let d=Pc(),p=Gr(),h=Rl(e,{relative:c});return b.useCallback(y=>{if(zE(y,n)){y.preventDefault();let g=r!==void 0?r:bl(p)===bl(h);d(e,{replace:g,state:o,preventScrollReset:s,relative:c,viewTransition:f})}},[p,d,h,r,o,n,e,s,c,f])}var r2=0,o2=()=>`__${String(++r2)}__`;function i2(){let{router:e}=a0("useSubmit"),{basename:n}=b.useContext(la),r=_E();return b.useCallback(async(o,s={})=>{let{action:c,method:f,encType:d,formData:p,body:h}=LE(o,n);if(s.navigate===!1){let y=s.fetcherKey||o2();await e.fetch(y,r,s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:h,formMethod:s.method||f,formEncType:s.encType||d,flushSync:s.flushSync})}else await e.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:h,formMethod:s.method||f,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,n,r])}function l2(e,{relative:n}={}){let{basename:r}=b.useContext(la),o=b.useContext(Vn);pt(o,"useFormAction must be used inside a RouteContext");let[s]=o.matches.slice(-1),c={...Rl(e||".",{relative:n})},f=Gr();if(e==null){c.search=f.search;let d=new URLSearchParams(c.search),p=d.getAll("index");if(p.some(y=>y==="")){d.delete("index"),p.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();c.search=y?`?${y}`:""}}return(!e||e===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:Da([r,c.pathname])),bl(c)}function s2(e,n={}){let r=b.useContext(qb);pt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=a0("useViewTransitionState"),s=Rl(e,{relative:n.relative});if(!r.isTransitioning)return!1;let c=za(r.currentLocation.pathname,o)||r.currentLocation.pathname,f=za(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Tc(s.pathname,f)!=null||Tc(s.pathname,c)!=null}[...$E];var Sd={exports:{}},rl={},_d={exports:{}},Ed={};/**
 * @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 rv;function c2(){return rv||(rv=1,function(e){function n(B,I){var H=B.length;B.push(I);e:for(;0<H;){var ye=H-1>>>1,R=B[ye];if(0<s(R,I))B[ye]=I,B[H]=R,H=ye;else break e}}function r(B){return B.length===0?null:B[0]}function o(B){if(B.length===0)return null;var I=B[0],H=B.pop();if(H!==I){B[0]=H;e:for(var ye=0,R=B.length,K=R>>>1;ye<K;){var le=2*(ye+1)-1,ae=B[le],fe=le+1,ke=B[fe];if(0>s(ae,H))fe<R&&0>s(ke,ae)?(B[ye]=ke,B[fe]=H,ye=fe):(B[ye]=ae,B[le]=H,ye=le);else if(fe<R&&0>s(ke,H))B[ye]=ke,B[fe]=H,ye=fe;else break e}}return I}function s(B,I){var H=B.sortIndex-I.sortIndex;return H!==0?H:B.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var p=[],h=[],y=1,g=null,x=3,E=!1,k=!1,S=!1,T=!1,O=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function N(B){for(var I=r(h);I!==null;){if(I.callback===null)o(h);else if(I.startTime<=B)o(h),I.sortIndex=I.expirationTime,n(p,I);else break;I=r(h)}}function M(B){if(S=!1,N(B),!k)if(r(p)!==null)k=!0,q||(q=!0,te());else{var I=r(h);I!==null&&pe(M,I.startTime-B)}}var q=!1,L=-1,U=5,ee=-1;function ie(){return T?!0:!(e.unstable_now()-ee<U)}function se(){if(T=!1,q){var B=e.unstable_now();ee=B;var I=!0;try{e:{k=!1,S&&(S=!1,C(L),L=-1),E=!0;var H=x;try{t:{for(N(B),g=r(p);g!==null&&!(g.expirationTime>B&&ie());){var ye=g.callback;if(typeof ye=="function"){g.callback=null,x=g.priorityLevel;var R=ye(g.expirationTime<=B);if(B=e.unstable_now(),typeof R=="function"){g.callback=R,N(B),I=!0;break t}g===r(p)&&o(p),N(B)}else o(p);g=r(p)}if(g!==null)I=!0;else{var K=r(h);K!==null&&pe(M,K.startTime-B),I=!1}}break e}finally{g=null,x=H,E=!1}I=void 0}}finally{I?te():q=!1}}}var te;if(typeof A=="function")te=function(){A(se)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,he=ce.port2;ce.port1.onmessage=se,te=function(){he.postMessage(null)}}else te=function(){O(se,0)};function pe(B,I){L=O(function(){B(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(B){switch(x){case 1:case 2:case 3:var I=3;break;default:I=x}var H=x;x=I;try{return B()}finally{x=H}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(B,I){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var H=x;x=B;try{return I()}finally{x=H}},e.unstable_scheduleCallback=function(B,I,H){var ye=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?ye+H:ye):H=ye,B){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=H+R,B={id:y++,callback:I,priorityLevel:B,startTime:H,expirationTime:R,sortIndex:-1},H>ye?(B.sortIndex=H,n(h,B),r(p)===null&&B===r(h)&&(S?(C(L),L=-1):S=!0,pe(M,H-ye))):(B.sortIndex=R,n(p,B),k||E||(k=!0,q||(q=!0,te()))),B},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(B){var I=x;return function(){var H=x;x=I;try{return B.apply(this,arguments)}finally{x=H}}}}(Ed)),Ed}var ov;function u2(){return ov||(ov=1,_d.exports=c2()),_d.exports}var Td={exports:{}},It={};/**
 * @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 iv;function f2(){if(iv)return It;iv=1;var e=vm();function n(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,h,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:h,implementation:y}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,It.createPortal=function(p,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return c(p,h,null,y)},It.flushSync=function(p){var h=f.T,y=o.p;try{if(f.T=null,o.p=2,p)return p()}finally{f.T=h,o.p=y,o.d.f()}},It.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(p,h))},It.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},It.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var y=h.as,g=d(y,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,E=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?o.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:E}):y==="script"&&o.d.X(p,{crossOrigin:g,integrity:x,fetchPriority:E,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},It.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=d(h.as,h.crossOrigin);o.d.M(p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(p)},It.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,g=d(y,h.crossOrigin);o.d.L(p,y,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},It.preloadModule=function(p,h){if(typeof p=="string")if(h){var y=d(h.as,h.crossOrigin);o.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(p)},It.requestFormReset=function(p){o.d.r(p)},It.unstable_batchedUpdates=function(p,h){return p(h)},It.useFormState=function(p,h,y){return f.H.useFormState(p,h,y)},It.useFormStatus=function(){return f.H.useHostTransitionStatus()},It.version="19.1.0",It}var lv;function r0(){if(lv)return Td.exports;lv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Td.exports=f2(),Td.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 sv;function d2(){if(sv)return rl;sv=1;var e=u2(),n=vm(),r=r0();function o(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function f(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function d(t){if(c(t)!==t)throw Error(o(188))}function p(t){var a=t.alternate;if(!a){if(a=c(t),a===null)throw Error(o(188));return a!==t?null:t}for(var i=t,l=a;;){var u=i.return;if(u===null)break;var m=u.alternate;if(m===null){if(l=u.return,l!==null){i=l;continue}break}if(u.child===m.child){for(m=u.child;m;){if(m===i)return d(u),t;if(m===l)return d(u),a;m=m.sibling}throw Error(o(188))}if(i.return!==l.return)i=u,l=m;else{for(var v=!1,_=u.child;_;){if(_===i){v=!0,i=u,l=m;break}if(_===l){v=!0,l=u,i=m;break}_=_.sibling}if(!v){for(_=m.child;_;){if(_===i){v=!0,i=m,l=u;break}if(_===l){v=!0,l=m,i=u;break}_=_.sibling}if(!v)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:a}function h(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=h(t),a!==null)return a;t=t.sibling}return null}var y=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),A=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function te(t){return t===null||typeof t!="object"?null:(t=se&&t[se]||t["@@iterator"],typeof t=="function"?t:null)}var ce=Symbol.for("react.client.reference");function he(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ce?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case k:return"Fragment";case T:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case q:return"SuspenseList";case ee:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case A:return(t.displayName||"Context")+".Provider";case C:return(t._context.displayName||"Context")+".Consumer";case N:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case L:return a=t.displayName||null,a!==null?a:he(t.type)||"Memo";case U:a=t._payload,t=t._init;try{return he(t(a))}catch{}}return null}var pe=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},ye=[],R=-1;function K(t){return{current:t}}function le(t){0>R||(t.current=ye[R],ye[R]=null,R--)}function ae(t,a){R++,ye[R]=t.current,t.current=a}var fe=K(null),ke=K(null),we=K(null),oe=K(null);function _e(t,a){switch(ae(we,a),ae(ke,t),ae(fe,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?Sg(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=Sg(a),t=_g(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}le(fe),ae(fe,t)}function Be(){le(fe),le(ke),le(we)}function Ne(t){t.memoizedState!==null&&ae(oe,t);var a=fe.current,i=_g(a,t.type);a!==i&&(ae(ke,t),ae(fe,i))}function Ue(t){ke.current===t&&(le(fe),le(ke)),oe.current===t&&(le(oe),Xi._currentValue=H)}var Ve=Object.prototype.hasOwnProperty,_t=e.unstable_scheduleCallback,Ft=e.unstable_cancelCallback,Yn=e.unstable_shouldYield,fa=e.unstable_requestPaint,jt=e.unstable_now,Zl=e.unstable_getCurrentPriorityLevel,vr=e.unstable_ImmediatePriority,z=e.unstable_UserBlockingPriority,Z=e.unstable_NormalPriority,G=e.unstable_LowPriority,de=e.unstable_IdlePriority,ue=e.log,re=e.unstable_setDisableYieldValue,xe=null,Ae=null;function Pe(t){if(typeof ue=="function"&&re(t),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(xe,t)}catch{}}var et=Math.clz32?Math.clz32:oi,Pa=Math.log,bn=Math.LN2;function oi(t){return t>>>=0,t===0?32:31-(Pa(t)/bn|0)|0}var $n=256,qn=4194304;function Mn(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Wn(t,a,i){var l=t.pendingLanes;if(l===0)return 0;var u=0,m=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var _=l&134217727;return _!==0?(l=_&~m,l!==0?u=Mn(l):(v&=_,v!==0?u=Mn(v):i||(i=_&~t,i!==0&&(u=Mn(i))))):(_=l&~m,_!==0?u=Mn(_):v!==0?u=Mn(v):i||(i=l&~t,i!==0&&(u=Mn(i)))),u===0?0:a!==0&&a!==u&&(a&m)===0&&(m=u&-u,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:u}function da(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function Me(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 it(){var t=$n;return $n<<=1,($n&4194048)===0&&($n=256),t}function $e(){var t=qn;return qn<<=1,(qn&62914560)===0&&(qn=4194304),t}function xn(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function Vt(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Qr(t,a,i,l,u,m){var v=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var _=t.entanglements,D=t.expirationTimes,V=t.hiddenUpdates;for(i=v&~i;0<i;){var X=31-et(i),J=1<<X;_[X]=0,D[X]=-1;var Y=V[X];if(Y!==null)for(V[X]=null,X=0;X<Y.length;X++){var $=Y[X];$!==null&&($.lane&=-536870913)}i&=~J}l!==0&&At(t,l,0),m!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=m&~(v&~a))}function At(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var l=31-et(a);t.entangledLanes|=a,t.entanglements[l]=t.entanglements[l]|1073741824|i&4194090}function ln(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var l=31-et(i),u=1<<l;u&a|t[l]&a&&(t[l]|=a),i&=~u}}function qe(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ii(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Yl(){var t=I.p;return t!==0?t:(t=window.event,t===void 0?32:Vg(t.type))}function su(t,a){var i=I.p;try{return I.p=t,a()}finally{I.p=i}}var wn=Math.random().toString(36).slice(2),Et="__reactFiber$"+wn,en="__reactProps$"+wn,Jr="__reactContainer$"+wn,cu="__reactEvents$"+wn,Sw="__reactListeners$"+wn,_w="__reactHandles$"+wn,uh="__reactResources$"+wn,li="__reactMarker$"+wn;function uu(t){delete t[Et],delete t[en],delete t[cu],delete t[Sw],delete t[_w]}function eo(t){var a=t[Et];if(a)return a;for(var i=t.parentNode;i;){if(a=i[Jr]||i[Et]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=Cg(t);t!==null;){if(i=t[Et])return i;t=Cg(t)}return a}t=i,i=t.parentNode}return null}function to(t){if(t=t[Et]||t[Jr]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function si(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(o(33))}function no(t){var a=t[uh];return a||(a=t[uh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Bt(t){t[li]=!0}var fh=new Set,dh={};function br(t,a){ao(t,a),ao(t+"Capture",a)}function ao(t,a){for(dh[t]=a,t=0;t<a.length;t++)fh.add(a[t])}var Ew=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]*$"),mh={},hh={};function Tw(t){return Ve.call(hh,t)?!0:Ve.call(mh,t)?!1:Ew.test(t)?hh[t]=!0:(mh[t]=!0,!1)}function $l(t,a,i){if(Tw(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function ql(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function ma(t,a,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+l)}}var fu,ph;function ro(t){if(fu===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);fu=a&&a[1]||"",ph=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+fu+t+ph}var du=!1;function mu(t,a){if(!t||du)return"";du=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch($){var Y=$}Reflect.construct(t,[],J)}else{try{J.call()}catch($){Y=$}t.call(J.prototype)}}else{try{throw Error()}catch($){Y=$}(J=t())&&typeof J.catch=="function"&&J.catch(function(){})}}catch($){if($&&Y&&typeof $.stack=="string")return[$.stack,Y.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),v=m[0],_=m[1];if(v&&_){var D=v.split(`
`),V=_.split(`
`);for(u=l=0;l<D.length&&!D[l].includes("DetermineComponentFrameRoot");)l++;for(;u<V.length&&!V[u].includes("DetermineComponentFrameRoot");)u++;if(l===D.length||u===V.length)for(l=D.length-1,u=V.length-1;1<=l&&0<=u&&D[l]!==V[u];)u--;for(;1<=l&&0<=u;l--,u--)if(D[l]!==V[u]){if(l!==1||u!==1)do if(l--,u--,0>u||D[l]!==V[u]){var X=`
`+D[l].replace(" at new "," at ");return t.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",t.displayName)),X}while(1<=l&&0<=u);break}}}finally{du=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?ro(i):""}function kw(t){switch(t.tag){case 26:case 27:case 5:return ro(t.type);case 16:return ro("Lazy");case 13:return ro("Suspense");case 19:return ro("SuspenseList");case 0:case 15:return mu(t.type,!1);case 11:return mu(t.type.render,!1);case 1:return mu(t.type,!0);case 31:return ro("Activity");default:return""}}function yh(t){try{var a="";do a+=kw(t),t=t.return;while(t);return a}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function Sn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function gh(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Cw(t){var a=gh(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),l=""+t[a];if(!t.hasOwnProperty(a)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,m=i.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return u.call(this)},set:function(v){l=""+v,m.call(this,v)}}),Object.defineProperty(t,a,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function Wl(t){t._valueTracker||(t._valueTracker=Cw(t))}function vh(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),l="";return t&&(l=gh(t)?t.checked?"true":"false":t.value),t=l,t!==i?(a.setValue(t),!0):!1}function Il(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ow=/[\n"\\]/g;function _n(t){return t.replace(Ow,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function hu(t,a,i,l,u,m,v,_){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),a!=null?v==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Sn(a)):t.value!==""+Sn(a)&&(t.value=""+Sn(a)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),a!=null?pu(t,v,Sn(a)):i!=null?pu(t,v,Sn(i)):l!=null&&t.removeAttribute("value"),u==null&&m!=null&&(t.defaultChecked=!!m),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+Sn(_):t.removeAttribute("name")}function bh(t,a,i,l,u,m,v,_){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null))return;i=i!=null?""+Sn(i):"",a=a!=null?""+Sn(a):i,_||a===t.value||(t.value=a),t.defaultValue=a}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=_?t.checked:!!l,t.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v)}function pu(t,a,i){a==="number"&&Il(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function oo(t,a,i,l){if(t=t.options,a){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=!0;for(i=0;i<t.length;i++)u=a.hasOwnProperty("$"+t[i].value),t[i].selected!==u&&(t[i].selected=u),u&&l&&(t[i].defaultSelected=!0)}else{for(i=""+Sn(i),a=null,u=0;u<t.length;u++){if(t[u].value===i){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}a!==null||t[u].disabled||(a=t[u])}a!==null&&(a.selected=!0)}}function xh(t,a,i){if(a!=null&&(a=""+Sn(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+Sn(i):""}function wh(t,a,i,l){if(a==null){if(l!=null){if(i!=null)throw Error(o(92));if(pe(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),a=i}i=Sn(a),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l)}function io(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var Aw=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 Sh(t,a,i){var l=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":l?t.setProperty(a,i):typeof i!="number"||i===0||Aw.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function _h(t,a,i){if(a!=null&&typeof a!="object")throw Error(o(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in a)l=a[u],a.hasOwnProperty(u)&&i[u]!==l&&Sh(t,u,l)}else for(var m in a)a.hasOwnProperty(m)&&Sh(t,m,a[m])}function yu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rw=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"]]),Mw=/^[\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 Gl(t){return Mw.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var gu=null;function vu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var lo=null,so=null;function Eh(t){var a=to(t);if(a&&(t=a.stateNode)){var i=t[en]||null;e:switch(t=a.stateNode,a.type){case"input":if(hu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+_n(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var l=i[a];if(l!==t&&l.form===t.form){var u=l[en]||null;if(!u)throw Error(o(90));hu(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(a=0;a<i.length;a++)l=i[a],l.form===t.form&&vh(l)}break e;case"textarea":xh(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&oo(t,!!i.multiple,a,!1)}}}var bu=!1;function Th(t,a,i){if(bu)return t(a,i);bu=!0;try{var l=t(a);return l}finally{if(bu=!1,(lo!==null||so!==null)&&(zs(),lo&&(a=lo,t=so,so=lo=null,Eh(a),t)))for(a=0;a<t.length;a++)Eh(t[a])}}function ci(t,a){var i=t.stateNode;if(i===null)return null;var l=i[en]||null;if(l===null)return null;i=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,a,typeof i));return i}var ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xu=!1;if(ha)try{var ui={};Object.defineProperty(ui,"passive",{get:function(){xu=!0}}),window.addEventListener("test",ui,ui),window.removeEventListener("test",ui,ui)}catch{xu=!1}var Ha=null,wu=null,Xl=null;function kh(){if(Xl)return Xl;var t,a=wu,i=a.length,l,u="value"in Ha?Ha.value:Ha.textContent,m=u.length;for(t=0;t<i&&a[t]===u[t];t++);var v=i-t;for(l=1;l<=v&&a[i-l]===u[m-l];l++);return Xl=u.slice(t,1<l?1-l:void 0)}function Kl(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function Ql(){return!0}function Ch(){return!1}function tn(t){function a(i,l,u,m,v){this._reactName=i,this._targetInst=u,this.type=l,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(i=t[_],this[_]=i?i(m):m[_]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Ql:Ch,this.isPropagationStopped=Ch,this}return y(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ql)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ql)},persist:function(){},isPersistent:Ql}),a}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jl=tn(xr),fi=y({},xr,{view:0,detail:0}),Dw=tn(fi),Su,_u,di,es=y({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==di&&(di&&t.type==="mousemove"?(Su=t.screenX-di.screenX,_u=t.screenY-di.screenY):_u=Su=0,di=t),Su)},movementY:function(t){return"movementY"in t?t.movementY:_u}}),Oh=tn(es),Nw=y({},es,{dataTransfer:0}),zw=tn(Nw),jw=y({},fi,{relatedTarget:0}),Eu=tn(jw),Bw=y({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Lw=tn(Bw),Uw=y({},xr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Pw=tn(Uw),Hw=y({},xr,{data:0}),Ah=tn(Hw),Fw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vw={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"},Zw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yw(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=Zw[t])?!!a[t]:!1}function Tu(){return Yw}var $w=y({},fi,{key:function(t){if(t.key){var a=Fw[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Kl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Vw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tu,charCode:function(t){return t.type==="keypress"?Kl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Kl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qw=tn($w),Ww=y({},es,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rh=tn(Ww),Iw=y({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tu}),Gw=tn(Iw),Xw=y({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kw=tn(Xw),Qw=y({},es,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Jw=tn(Qw),eS=y({},xr,{newState:0,oldState:0}),tS=tn(eS),nS=[9,13,27,32],ku=ha&&"CompositionEvent"in window,mi=null;ha&&"documentMode"in document&&(mi=document.documentMode);var aS=ha&&"TextEvent"in window&&!mi,Mh=ha&&(!ku||mi&&8<mi&&11>=mi),Dh=" ",Nh=!1;function zh(t,a){switch(t){case"keyup":return nS.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var co=!1;function rS(t,a){switch(t){case"compositionend":return jh(a);case"keypress":return a.which!==32?null:(Nh=!0,Dh);case"textInput":return t=a.data,t===Dh&&Nh?null:t;default:return null}}function oS(t,a){if(co)return t==="compositionend"||!ku&&zh(t,a)?(t=kh(),Xl=wu=Ha=null,co=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Mh&&a.locale!=="ko"?null:a.data;default:return null}}var iS={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 Bh(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!iS[t.type]:a==="textarea"}function Lh(t,a,i,l){lo?so?so.push(l):so=[l]:lo=l,a=Hs(a,"onChange"),0<a.length&&(i=new Jl("onChange","change",null,i,l),t.push({event:i,listeners:a}))}var hi=null,pi=null;function lS(t){gg(t,0)}function ts(t){var a=si(t);if(vh(a))return t}function Uh(t,a){if(t==="change")return a}var Ph=!1;if(ha){var Cu;if(ha){var Ou="oninput"in document;if(!Ou){var Hh=document.createElement("div");Hh.setAttribute("oninput","return;"),Ou=typeof Hh.oninput=="function"}Cu=Ou}else Cu=!1;Ph=Cu&&(!document.documentMode||9<document.documentMode)}function Fh(){hi&&(hi.detachEvent("onpropertychange",Vh),pi=hi=null)}function Vh(t){if(t.propertyName==="value"&&ts(pi)){var a=[];Lh(a,pi,t,vu(t)),Th(lS,a)}}function sS(t,a,i){t==="focusin"?(Fh(),hi=a,pi=i,hi.attachEvent("onpropertychange",Vh)):t==="focusout"&&Fh()}function cS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ts(pi)}function uS(t,a){if(t==="click")return ts(a)}function fS(t,a){if(t==="input"||t==="change")return ts(a)}function dS(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var sn=typeof Object.is=="function"?Object.is:dS;function yi(t,a){if(sn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),l=Object.keys(a);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var u=i[l];if(!Ve.call(a,u)||!sn(t[u],a[u]))return!1}return!0}function Zh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Yh(t,a){var i=Zh(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=a&&l>=a)return{node:i,offset:a-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Zh(i)}}function $h(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?$h(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function qh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Il(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=Il(t.document)}return a}function Au(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var mS=ha&&"documentMode"in document&&11>=document.documentMode,uo=null,Ru=null,gi=null,Mu=!1;function Wh(t,a,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Mu||uo==null||uo!==Il(l)||(l=uo,"selectionStart"in l&&Au(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),gi&&yi(gi,l)||(gi=l,l=Hs(Ru,"onSelect"),0<l.length&&(a=new Jl("onSelect","select",null,a,i),t.push({event:a,listeners:l}),a.target=uo)))}function wr(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var fo={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionrun:wr("Transition","TransitionRun"),transitionstart:wr("Transition","TransitionStart"),transitioncancel:wr("Transition","TransitionCancel"),transitionend:wr("Transition","TransitionEnd")},Du={},Ih={};ha&&(Ih=document.createElement("div").style,"AnimationEvent"in window||(delete fo.animationend.animation,delete fo.animationiteration.animation,delete fo.animationstart.animation),"TransitionEvent"in window||delete fo.transitionend.transition);function Sr(t){if(Du[t])return Du[t];if(!fo[t])return t;var a=fo[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in Ih)return Du[t]=a[i];return t}var Gh=Sr("animationend"),Xh=Sr("animationiteration"),Kh=Sr("animationstart"),hS=Sr("transitionrun"),pS=Sr("transitionstart"),yS=Sr("transitioncancel"),Qh=Sr("transitionend"),Jh=new Map,Nu="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(" ");Nu.push("scrollEnd");function Dn(t,a){Jh.set(t,a),br(a,[t])}var ep=new WeakMap;function En(t,a){if(typeof t=="object"&&t!==null){var i=ep.get(t);return i!==void 0?i:(a={value:t,source:a,stack:yh(a)},ep.set(t,a),a)}return{value:t,source:a,stack:yh(a)}}var Tn=[],mo=0,zu=0;function ns(){for(var t=mo,a=zu=mo=0;a<t;){var i=Tn[a];Tn[a++]=null;var l=Tn[a];Tn[a++]=null;var u=Tn[a];Tn[a++]=null;var m=Tn[a];if(Tn[a++]=null,l!==null&&u!==null){var v=l.pending;v===null?u.next=u:(u.next=v.next,v.next=u),l.pending=u}m!==0&&tp(i,u,m)}}function as(t,a,i,l){Tn[mo++]=t,Tn[mo++]=a,Tn[mo++]=i,Tn[mo++]=l,zu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function ju(t,a,i,l){return as(t,a,i,l),rs(t)}function ho(t,a){return as(t,null,null,a),rs(t)}function tp(t,a,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var u=!1,m=t.return;m!==null;)m.childLanes|=i,l=m.alternate,l!==null&&(l.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(u=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,u&&a!==null&&(u=31-et(i),t=m.hiddenUpdates,l=t[u],l===null?t[u]=[a]:l.push(a),a.lane=i|536870912),m):null}function rs(t){if(50<Vi)throw Vi=0,Vf=null,Error(o(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var po={};function gS(t,a,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cn(t,a,i,l){return new gS(t,a,i,l)}function Bu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function pa(t,a){var i=t.alternate;return i===null?(i=cn(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function np(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function os(t,a,i,l,u,m){var v=0;if(l=t,typeof t=="function")Bu(t)&&(v=1);else if(typeof t=="string")v=b_(t,i,fe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ee:return t=cn(31,i,a,u),t.elementType=ee,t.lanes=m,t;case k:return _r(i.children,u,m,a);case S:v=8,u|=24;break;case T:return t=cn(12,i,a,u|2),t.elementType=T,t.lanes=m,t;case M:return t=cn(13,i,a,u),t.elementType=M,t.lanes=m,t;case q:return t=cn(19,i,a,u),t.elementType=q,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case O:case A:v=10;break e;case C:v=9;break e;case N:v=11;break e;case L:v=14;break e;case U:v=16,l=null;break e}v=29,i=Error(o(130,t===null?"null":typeof t,"")),l=null}return a=cn(v,i,a,u),a.elementType=t,a.type=l,a.lanes=m,a}function _r(t,a,i,l){return t=cn(7,t,l,a),t.lanes=i,t}function Lu(t,a,i){return t=cn(6,t,null,a),t.lanes=i,t}function Uu(t,a,i){return a=cn(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var yo=[],go=0,is=null,ls=0,kn=[],Cn=0,Er=null,ya=1,ga="";function Tr(t,a){yo[go++]=ls,yo[go++]=is,is=t,ls=a}function ap(t,a,i){kn[Cn++]=ya,kn[Cn++]=ga,kn[Cn++]=Er,Er=t;var l=ya;t=ga;var u=32-et(l)-1;l&=~(1<<u),i+=1;var m=32-et(a)+u;if(30<m){var v=u-u%5;m=(l&(1<<v)-1).toString(32),l>>=v,u-=v,ya=1<<32-et(a)+u|i<<u|l,ga=m+t}else ya=1<<m|i<<u|l,ga=t}function Pu(t){t.return!==null&&(Tr(t,1),ap(t,1,0))}function Hu(t){for(;t===is;)is=yo[--go],yo[go]=null,ls=yo[--go],yo[go]=null;for(;t===Er;)Er=kn[--Cn],kn[Cn]=null,ga=kn[--Cn],kn[Cn]=null,ya=kn[--Cn],kn[Cn]=null}var Kt=null,gt=null,Ie=!1,kr=null,In=!1,Fu=Error(o(519));function Cr(t){var a=Error(o(418,""));throw xi(En(a,t)),Fu}function rp(t){var a=t.stateNode,i=t.type,l=t.memoizedProps;switch(a[Et]=t,a[en]=l,i){case"dialog":Fe("cancel",a),Fe("close",a);break;case"iframe":case"object":case"embed":Fe("load",a);break;case"video":case"audio":for(i=0;i<Yi.length;i++)Fe(Yi[i],a);break;case"source":Fe("error",a);break;case"img":case"image":case"link":Fe("error",a),Fe("load",a);break;case"details":Fe("toggle",a);break;case"input":Fe("invalid",a),bh(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Wl(a);break;case"select":Fe("invalid",a);break;case"textarea":Fe("invalid",a),wh(a,l.value,l.defaultValue,l.children),Wl(a)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||l.suppressHydrationWarning===!0||wg(a.textContent,i)?(l.popover!=null&&(Fe("beforetoggle",a),Fe("toggle",a)),l.onScroll!=null&&Fe("scroll",a),l.onScrollEnd!=null&&Fe("scrollend",a),l.onClick!=null&&(a.onclick=Fs),a=!0):a=!1,a||Cr(t)}function op(t){for(Kt=t.return;Kt;)switch(Kt.tag){case 5:case 13:In=!1;return;case 27:case 3:In=!0;return;default:Kt=Kt.return}}function vi(t){if(t!==Kt)return!1;if(!Ie)return op(t),Ie=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||rd(t.type,t.memoizedProps)),i=!i),i&&gt&&Cr(t),op(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));e:{for(t=t.nextSibling,a=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(a===0){gt=zn(t.nextSibling);break e}a--}else i!=="$"&&i!=="$!"&&i!=="$?"||a++;t=t.nextSibling}gt=null}}else a===27?(a=gt,nr(t.type)?(t=sd,sd=null,gt=t):gt=a):gt=Kt?zn(t.stateNode.nextSibling):null;return!0}function bi(){gt=Kt=null,Ie=!1}function ip(){var t=kr;return t!==null&&(rn===null?rn=t:rn.push.apply(rn,t),kr=null),t}function xi(t){kr===null?kr=[t]:kr.push(t)}var Vu=K(null),Or=null,va=null;function Fa(t,a,i){ae(Vu,a._currentValue),a._currentValue=i}function ba(t){t._currentValue=Vu.current,le(Vu)}function Zu(t,a,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),t===i)break;t=t.return}}function Yu(t,a,i,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var m=u.dependencies;if(m!==null){var v=u.child;m=m.firstContext;e:for(;m!==null;){var _=m;m=u;for(var D=0;D<a.length;D++)if(_.context===a[D]){m.lanes|=i,_=m.alternate,_!==null&&(_.lanes|=i),Zu(m.return,i,t),l||(v=null);break e}m=_.next}}else if(u.tag===18){if(v=u.return,v===null)throw Error(o(341));v.lanes|=i,m=v.alternate,m!==null&&(m.lanes|=i),Zu(v,i,t),v=null}else v=u.child;if(v!==null)v.return=u;else for(v=u;v!==null;){if(v===t){v=null;break}if(u=v.sibling,u!==null){u.return=v.return,v=u;break}v=v.return}u=v}}function wi(t,a,i,l){t=null;for(var u=a,m=!1;u!==null;){if(!m){if((u.flags&524288)!==0)m=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var v=u.alternate;if(v===null)throw Error(o(387));if(v=v.memoizedProps,v!==null){var _=u.type;sn(u.pendingProps.value,v.value)||(t!==null?t.push(_):t=[_])}}else if(u===oe.current){if(v=u.alternate,v===null)throw Error(o(387));v.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Xi):t=[Xi])}u=u.return}t!==null&&Yu(a,t,i,l),a.flags|=262144}function ss(t){for(t=t.firstContext;t!==null;){if(!sn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ar(t){Or=t,va=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return lp(Or,t)}function cs(t,a){return Or===null&&Ar(t),lp(t,a)}function lp(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},va===null){if(t===null)throw Error(o(308));va=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else va=va.next=a;return i}var vS=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},bS=e.unstable_scheduleCallback,xS=e.unstable_NormalPriority,Rt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $u(){return{controller:new vS,data:new Map,refCount:0}}function Si(t){t.refCount--,t.refCount===0&&bS(xS,function(){t.controller.abort()})}var _i=null,qu=0,vo=0,bo=null;function wS(t,a){if(_i===null){var i=_i=[];qu=0,vo=Gf(),bo={status:"pending",value:void 0,then:function(l){i.push(l)}}}return qu++,a.then(sp,sp),a}function sp(){if(--qu===0&&_i!==null){bo!==null&&(bo.status="fulfilled");var t=_i;_i=null,vo=0,bo=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function SS(t,a){var i=[],l={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return t.then(function(){l.status="fulfilled",l.value=a;for(var u=0;u<i.length;u++)(0,i[u])(a)},function(u){for(l.status="rejected",l.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),l}var cp=B.S;B.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&wS(t,a),cp!==null&&cp(t,a)};var Rr=K(null);function Wu(){var t=Rr.current;return t!==null?t:st.pooledCache}function us(t,a){a===null?ae(Rr,Rr.current):ae(Rr,a.pool)}function up(){var t=Wu();return t===null?null:{parent:Rt._currentValue,pool:t}}var Ei=Error(o(460)),fp=Error(o(474)),fs=Error(o(542)),Iu={then:function(){}};function dp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ds(){}function mp(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(ds,ds),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,pp(t),t;default:if(typeof a.status=="string")a.then(ds,ds);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=a,t.status="pending",t.then(function(l){if(a.status==="pending"){var u=a;u.status="fulfilled",u.value=l}},function(l){if(a.status==="pending"){var u=a;u.status="rejected",u.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,pp(t),t}throw Ti=a,Ei}}var Ti=null;function hp(){if(Ti===null)throw Error(o(459));var t=Ti;return Ti=null,t}function pp(t){if(t===Ei||t===fs)throw Error(o(483))}var Va=!1;function Gu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xu(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Za(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ya(t,a,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Xe&2)!==0){var u=l.pending;return u===null?a.next=a:(a.next=u.next,u.next=a),l.pending=a,a=rs(t),tp(t,null,i),a}return as(t,l,a,i),rs(t)}function ki(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var l=a.lanes;l&=t.pendingLanes,i|=l,a.lanes=i,ln(t,i)}}function Ku(t,a){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var u=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?u=m=v:m=m.next=v,i=i.next}while(i!==null);m===null?u=m=a:m=m.next=a}else u=m=a;i={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var Qu=!1;function Ci(){if(Qu){var t=bo;if(t!==null)throw t}}function Oi(t,a,i,l){Qu=!1;var u=t.updateQueue;Va=!1;var m=u.firstBaseUpdate,v=u.lastBaseUpdate,_=u.shared.pending;if(_!==null){u.shared.pending=null;var D=_,V=D.next;D.next=null,v===null?m=V:v.next=V,v=D;var X=t.alternate;X!==null&&(X=X.updateQueue,_=X.lastBaseUpdate,_!==v&&(_===null?X.firstBaseUpdate=V:_.next=V,X.lastBaseUpdate=D))}if(m!==null){var J=u.baseState;v=0,X=V=D=null,_=m;do{var Y=_.lane&-536870913,$=Y!==_.lane;if($?(Ze&Y)===Y:(l&Y)===Y){Y!==0&&Y===vo&&(Qu=!0),X!==null&&(X=X.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Oe=t,Te=_;Y=a;var at=i;switch(Te.tag){case 1:if(Oe=Te.payload,typeof Oe=="function"){J=Oe.call(at,J,Y);break e}J=Oe;break e;case 3:Oe.flags=Oe.flags&-65537|128;case 0:if(Oe=Te.payload,Y=typeof Oe=="function"?Oe.call(at,J,Y):Oe,Y==null)break e;J=y({},J,Y);break e;case 2:Va=!0}}Y=_.callback,Y!==null&&(t.flags|=64,$&&(t.flags|=8192),$=u.callbacks,$===null?u.callbacks=[Y]:$.push(Y))}else $={lane:Y,tag:_.tag,payload:_.payload,callback:_.callback,next:null},X===null?(V=X=$,D=J):X=X.next=$,v|=Y;if(_=_.next,_===null){if(_=u.shared.pending,_===null)break;$=_,_=$.next,$.next=null,u.lastBaseUpdate=$,u.shared.pending=null}}while(!0);X===null&&(D=J),u.baseState=D,u.firstBaseUpdate=V,u.lastBaseUpdate=X,m===null&&(u.shared.lanes=0),Qa|=v,t.lanes=v,t.memoizedState=J}}function yp(t,a){if(typeof t!="function")throw Error(o(191,t));t.call(a)}function gp(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)yp(i[t],a)}var xo=K(null),ms=K(0);function vp(t,a){t=ka,ae(ms,t),ae(xo,a),ka=t|a.baseLanes}function Ju(){ae(ms,ka),ae(xo,xo.current)}function ef(){ka=ms.current,le(xo),le(ms)}var $a=0,ze=null,tt=null,Tt=null,hs=!1,wo=!1,Mr=!1,ps=0,Ai=0,So=null,_S=0;function bt(){throw Error(o(321))}function tf(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!sn(t[i],a[i]))return!1;return!0}function nf(t,a,i,l,u,m){return $a=m,ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,B.H=t===null||t.memoizedState===null?ty:ny,Mr=!1,m=i(l,u),Mr=!1,wo&&(m=xp(a,i,l,u)),bp(t),m}function bp(t){B.H=ws;var a=tt!==null&&tt.next!==null;if($a=0,Tt=tt=ze=null,hs=!1,Ai=0,So=null,a)throw Error(o(300));t===null||Lt||(t=t.dependencies,t!==null&&ss(t)&&(Lt=!0))}function xp(t,a,i,l){ze=t;var u=0;do{if(wo&&(So=null),Ai=0,wo=!1,25<=u)throw Error(o(301));if(u+=1,Tt=tt=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}B.H=RS,m=a(i,l)}while(wo);return m}function ES(){var t=B.H,a=t.useState()[0];return a=typeof a.then=="function"?Ri(a):a,t=t.useState()[0],(tt!==null?tt.memoizedState:null)!==t&&(ze.flags|=1024),a}function af(){var t=ps!==0;return ps=0,t}function rf(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function of(t){if(hs){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}hs=!1}$a=0,Tt=tt=ze=null,wo=!1,Ai=ps=0,So=null}function nn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?ze.memoizedState=Tt=t:Tt=Tt.next=t,Tt}function kt(){if(tt===null){var t=ze.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var a=Tt===null?ze.memoizedState:Tt.next;if(a!==null)Tt=a,tt=t;else{if(t===null)throw ze.alternate===null?Error(o(467)):Error(o(310));tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},Tt===null?ze.memoizedState=Tt=t:Tt=Tt.next=t}return Tt}function lf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ri(t){var a=Ai;return Ai+=1,So===null&&(So=[]),t=mp(So,t,a),a=ze,(Tt===null?a.memoizedState:Tt.next)===null&&(a=a.alternate,B.H=a===null||a.memoizedState===null?ty:ny),t}function ys(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ri(t);if(t.$$typeof===A)return Wt(t)}throw Error(o(438,String(t)))}function sf(t){var a=null,i=ze.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var l=ze.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(u){return u.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=lf(),ze.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),l=0;l<t;l++)i[l]=ie;return a.index++,i}function xa(t,a){return typeof a=="function"?a(t):a}function gs(t){var a=kt();return cf(a,tt,t)}function cf(t,a,i){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var u=t.baseQueue,m=l.pending;if(m!==null){if(u!==null){var v=u.next;u.next=m.next,m.next=v}a.baseQueue=u=m,l.pending=null}if(m=t.baseState,u===null)t.memoizedState=m;else{a=u.next;var _=v=null,D=null,V=a,X=!1;do{var J=V.lane&-536870913;if(J!==V.lane?(Ze&J)===J:($a&J)===J){var Y=V.revertLane;if(Y===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),J===vo&&(X=!0);else if(($a&Y)===Y){V=V.next,Y===vo&&(X=!0);continue}else J={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},D===null?(_=D=J,v=m):D=D.next=J,ze.lanes|=Y,Qa|=Y;J=V.action,Mr&&i(m,J),m=V.hasEagerState?V.eagerState:i(m,J)}else Y={lane:J,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},D===null?(_=D=Y,v=m):D=D.next=Y,ze.lanes|=J,Qa|=J;V=V.next}while(V!==null&&V!==a);if(D===null?v=m:D.next=_,!sn(m,t.memoizedState)&&(Lt=!0,X&&(i=bo,i!==null)))throw i;t.memoizedState=m,t.baseState=v,t.baseQueue=D,l.lastRenderedState=m}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function uf(t){var a=kt(),i=a.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var l=i.dispatch,u=i.pending,m=a.memoizedState;if(u!==null){i.pending=null;var v=u=u.next;do m=t(m,v.action),v=v.next;while(v!==u);sn(m,a.memoizedState)||(Lt=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,l]}function wp(t,a,i){var l=ze,u=kt(),m=Ie;if(m){if(i===void 0)throw Error(o(407));i=i()}else i=a();var v=!sn((tt||u).memoizedState,i);v&&(u.memoizedState=i,Lt=!0),u=u.queue;var _=Ep.bind(null,l,u,t);if(Mi(2048,8,_,[t]),u.getSnapshot!==a||v||Tt!==null&&Tt.memoizedState.tag&1){if(l.flags|=2048,_o(9,vs(),_p.bind(null,l,u,i,a),null),st===null)throw Error(o(349));m||($a&124)!==0||Sp(l,a,i)}return i}function Sp(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=ze.updateQueue,a===null?(a=lf(),ze.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function _p(t,a,i,l){a.value=i,a.getSnapshot=l,Tp(a)&&kp(t)}function Ep(t,a,i){return i(function(){Tp(a)&&kp(t)})}function Tp(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!sn(t,i)}catch{return!0}}function kp(t){var a=ho(t,2);a!==null&&hn(a,t,2)}function ff(t){var a=nn();if(typeof t=="function"){var i=t;if(t=i(),Mr){Pe(!0);try{i()}finally{Pe(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:t},a}function Cp(t,a,i,l){return t.baseState=i,cf(t,tt,typeof l=="function"?l:xa)}function TS(t,a,i,l,u){if(xs(t))throw Error(o(485));if(t=a.action,t!==null){var m={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};B.T!==null?i(!0):m.isTransition=!1,l(m),i=a.pending,i===null?(m.next=a.pending=m,Op(a,m)):(m.next=i.next,a.pending=i.next=m)}}function Op(t,a){var i=a.action,l=a.payload,u=t.state;if(a.isTransition){var m=B.T,v={};B.T=v;try{var _=i(u,l),D=B.S;D!==null&&D(v,_),Ap(t,a,_)}catch(V){df(t,a,V)}finally{B.T=m}}else try{m=i(u,l),Ap(t,a,m)}catch(V){df(t,a,V)}}function Ap(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Rp(t,a,l)},function(l){return df(t,a,l)}):Rp(t,a,i)}function Rp(t,a,i){a.status="fulfilled",a.value=i,Mp(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,Op(t,i)))}function df(t,a,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=i,Mp(a),a=a.next;while(a!==l)}t.action=null}function Mp(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Dp(t,a){return a}function Np(t,a){if(Ie){var i=st.formState;if(i!==null){e:{var l=ze;if(Ie){if(gt){t:{for(var u=gt,m=In;u.nodeType!==8;){if(!m){u=null;break t}if(u=zn(u.nextSibling),u===null){u=null;break t}}m=u.data,u=m==="F!"||m==="F"?u:null}if(u){gt=zn(u.nextSibling),l=u.data==="F!";break e}}Cr(l)}l=!1}l&&(a=i[0])}}return i=nn(),i.memoizedState=i.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dp,lastRenderedState:a},i.queue=l,i=Qp.bind(null,ze,l),l.dispatch=i,l=ff(!1),m=gf.bind(null,ze,!1,l.queue),l=nn(),u={state:a,dispatch:null,action:t,pending:null},l.queue=u,i=TS.bind(null,ze,u,m,i),u.dispatch=i,l.memoizedState=t,[a,i,!1]}function zp(t){var a=kt();return jp(a,tt,t)}function jp(t,a,i){if(a=cf(t,a,Dp)[0],t=gs(xa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=Ri(a)}catch(v){throw v===Ei?fs:v}else l=a;a=kt();var u=a.queue,m=u.dispatch;return i!==a.memoizedState&&(ze.flags|=2048,_o(9,vs(),kS.bind(null,u,i),null)),[l,m,t]}function kS(t,a){t.action=a}function Bp(t){var a=kt(),i=tt;if(i!==null)return jp(a,i,t);kt(),a=a.memoizedState,i=kt();var l=i.queue.dispatch;return i.memoizedState=t,[a,l,!1]}function _o(t,a,i,l){return t={tag:t,create:i,deps:l,inst:a,next:null},a=ze.updateQueue,a===null&&(a=lf(),ze.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,a.lastEffect=t),t}function vs(){return{destroy:void 0,resource:void 0}}function Lp(){return kt().memoizedState}function bs(t,a,i,l){var u=nn();l=l===void 0?null:l,ze.flags|=t,u.memoizedState=_o(1|a,vs(),i,l)}function Mi(t,a,i,l){var u=kt();l=l===void 0?null:l;var m=u.memoizedState.inst;tt!==null&&l!==null&&tf(l,tt.memoizedState.deps)?u.memoizedState=_o(a,m,i,l):(ze.flags|=t,u.memoizedState=_o(1|a,m,i,l))}function Up(t,a){bs(8390656,8,t,a)}function Pp(t,a){Mi(2048,8,t,a)}function Hp(t,a){return Mi(4,2,t,a)}function Fp(t,a){return Mi(4,4,t,a)}function Vp(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Zp(t,a,i){i=i!=null?i.concat([t]):null,Mi(4,4,Vp.bind(null,a,t),i)}function mf(){}function Yp(t,a){var i=kt();a=a===void 0?null:a;var l=i.memoizedState;return a!==null&&tf(a,l[1])?l[0]:(i.memoizedState=[t,a],t)}function $p(t,a){var i=kt();a=a===void 0?null:a;var l=i.memoizedState;if(a!==null&&tf(a,l[1]))return l[0];if(l=t(),Mr){Pe(!0);try{t()}finally{Pe(!1)}}return i.memoizedState=[l,a],l}function hf(t,a,i){return i===void 0||($a&1073741824)!==0?t.memoizedState=a:(t.memoizedState=i,t=Iy(),ze.lanes|=t,Qa|=t,i)}function qp(t,a,i,l){return sn(i,a)?i:xo.current!==null?(t=hf(t,i,l),sn(t,a)||(Lt=!0),t):($a&42)===0?(Lt=!0,t.memoizedState=i):(t=Iy(),ze.lanes|=t,Qa|=t,a)}function Wp(t,a,i,l,u){var m=I.p;I.p=m!==0&&8>m?m:8;var v=B.T,_={};B.T=_,gf(t,!1,a,i);try{var D=u(),V=B.S;if(V!==null&&V(_,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var X=SS(D,l);Di(t,a,X,mn(t))}else Di(t,a,l,mn(t))}catch(J){Di(t,a,{then:function(){},status:"rejected",reason:J},mn())}finally{I.p=m,B.T=v}}function CS(){}function pf(t,a,i,l){if(t.tag!==5)throw Error(o(476));var u=Ip(t).queue;Wp(t,u,a,H,i===null?CS:function(){return Gp(t),i(l)})}function Ip(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:H},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Gp(t){var a=Ip(t).next.queue;Di(t,a,{},mn())}function yf(){return Wt(Xi)}function Xp(){return kt().memoizedState}function Kp(){return kt().memoizedState}function OS(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=mn();t=Za(i);var l=Ya(a,t,i);l!==null&&(hn(l,a,i),ki(l,a,i)),a={cache:$u()},t.payload=a;return}a=a.return}}function AS(t,a,i){var l=mn();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},xs(t)?Jp(a,i):(i=ju(t,a,i,l),i!==null&&(hn(i,t,l),ey(i,a,l)))}function Qp(t,a,i){var l=mn();Di(t,a,i,l)}function Di(t,a,i,l){var u={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(xs(t))Jp(a,u);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var v=a.lastRenderedState,_=m(v,i);if(u.hasEagerState=!0,u.eagerState=_,sn(_,v))return as(t,a,u,0),st===null&&ns(),!1}catch{}finally{}if(i=ju(t,a,u,l),i!==null)return hn(i,t,l),ey(i,a,l),!0}return!1}function gf(t,a,i,l){if(l={lane:2,revertLane:Gf(),action:l,hasEagerState:!1,eagerState:null,next:null},xs(t)){if(a)throw Error(o(479))}else a=ju(t,i,l,2),a!==null&&hn(a,t,2)}function xs(t){var a=t.alternate;return t===ze||a!==null&&a===ze}function Jp(t,a){wo=hs=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function ey(t,a,i){if((i&4194048)!==0){var l=a.lanes;l&=t.pendingLanes,i|=l,a.lanes=i,ln(t,i)}}var ws={readContext:Wt,use:ys,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt},ty={readContext:Wt,use:ys,useCallback:function(t,a){return nn().memoizedState=[t,a===void 0?null:a],t},useContext:Wt,useEffect:Up,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,bs(4194308,4,Vp.bind(null,a,t),i)},useLayoutEffect:function(t,a){return bs(4194308,4,t,a)},useInsertionEffect:function(t,a){bs(4,2,t,a)},useMemo:function(t,a){var i=nn();a=a===void 0?null:a;var l=t();if(Mr){Pe(!0);try{t()}finally{Pe(!1)}}return i.memoizedState=[l,a],l},useReducer:function(t,a,i){var l=nn();if(i!==void 0){var u=i(a);if(Mr){Pe(!0);try{i(a)}finally{Pe(!1)}}}else u=a;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=AS.bind(null,ze,t),[l.memoizedState,t]},useRef:function(t){var a=nn();return t={current:t},a.memoizedState=t},useState:function(t){t=ff(t);var a=t.queue,i=Qp.bind(null,ze,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:mf,useDeferredValue:function(t,a){var i=nn();return hf(i,t,a)},useTransition:function(){var t=ff(!1);return t=Wp.bind(null,ze,t.queue,!0,!1),nn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var l=ze,u=nn();if(Ie){if(i===void 0)throw Error(o(407));i=i()}else{if(i=a(),st===null)throw Error(o(349));(Ze&124)!==0||Sp(l,a,i)}u.memoizedState=i;var m={value:i,getSnapshot:a};return u.queue=m,Up(Ep.bind(null,l,m,t),[t]),l.flags|=2048,_o(9,vs(),_p.bind(null,l,m,i,a),null),i},useId:function(){var t=nn(),a=st.identifierPrefix;if(Ie){var i=ga,l=ya;i=(l&~(1<<32-et(l)-1)).toString(32)+i,a="«"+a+"R"+i,i=ps++,0<i&&(a+="H"+i.toString(32)),a+="»"}else i=_S++,a="«"+a+"r"+i.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:yf,useFormState:Np,useActionState:Np,useOptimistic:function(t){var a=nn();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=gf.bind(null,ze,!0,i),i.dispatch=a,[t,a]},useMemoCache:sf,useCacheRefresh:function(){return nn().memoizedState=OS.bind(null,ze)}},ny={readContext:Wt,use:ys,useCallback:Yp,useContext:Wt,useEffect:Pp,useImperativeHandle:Zp,useInsertionEffect:Hp,useLayoutEffect:Fp,useMemo:$p,useReducer:gs,useRef:Lp,useState:function(){return gs(xa)},useDebugValue:mf,useDeferredValue:function(t,a){var i=kt();return qp(i,tt.memoizedState,t,a)},useTransition:function(){var t=gs(xa)[0],a=kt().memoizedState;return[typeof t=="boolean"?t:Ri(t),a]},useSyncExternalStore:wp,useId:Xp,useHostTransitionStatus:yf,useFormState:zp,useActionState:zp,useOptimistic:function(t,a){var i=kt();return Cp(i,tt,t,a)},useMemoCache:sf,useCacheRefresh:Kp},RS={readContext:Wt,use:ys,useCallback:Yp,useContext:Wt,useEffect:Pp,useImperativeHandle:Zp,useInsertionEffect:Hp,useLayoutEffect:Fp,useMemo:$p,useReducer:uf,useRef:Lp,useState:function(){return uf(xa)},useDebugValue:mf,useDeferredValue:function(t,a){var i=kt();return tt===null?hf(i,t,a):qp(i,tt.memoizedState,t,a)},useTransition:function(){var t=uf(xa)[0],a=kt().memoizedState;return[typeof t=="boolean"?t:Ri(t),a]},useSyncExternalStore:wp,useId:Xp,useHostTransitionStatus:yf,useFormState:Bp,useActionState:Bp,useOptimistic:function(t,a){var i=kt();return tt!==null?Cp(i,tt,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:sf,useCacheRefresh:Kp},Eo=null,Ni=0;function Ss(t){var a=Ni;return Ni+=1,Eo===null&&(Eo=[]),mp(Eo,t,a)}function zi(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function _s(t,a){throw a.$$typeof===g?Error(o(525)):(t=Object.prototype.toString.call(a),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function ay(t){var a=t._init;return a(t._payload)}function ry(t){function a(P,j){if(t){var F=P.deletions;F===null?(P.deletions=[j],P.flags|=16):F.push(j)}}function i(P,j){if(!t)return null;for(;j!==null;)a(P,j),j=j.sibling;return null}function l(P){for(var j=new Map;P!==null;)P.key!==null?j.set(P.key,P):j.set(P.index,P),P=P.sibling;return j}function u(P,j){return P=pa(P,j),P.index=0,P.sibling=null,P}function m(P,j,F){return P.index=F,t?(F=P.alternate,F!==null?(F=F.index,F<j?(P.flags|=67108866,j):F):(P.flags|=67108866,j)):(P.flags|=1048576,j)}function v(P){return t&&P.alternate===null&&(P.flags|=67108866),P}function _(P,j,F,Q){return j===null||j.tag!==6?(j=Lu(F,P.mode,Q),j.return=P,j):(j=u(j,F),j.return=P,j)}function D(P,j,F,Q){var ge=F.type;return ge===k?X(P,j,F.props.children,Q,F.key):j!==null&&(j.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===U&&ay(ge)===j.type)?(j=u(j,F.props),zi(j,F),j.return=P,j):(j=os(F.type,F.key,F.props,null,P.mode,Q),zi(j,F),j.return=P,j)}function V(P,j,F,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==F.containerInfo||j.stateNode.implementation!==F.implementation?(j=Uu(F,P.mode,Q),j.return=P,j):(j=u(j,F.children||[]),j.return=P,j)}function X(P,j,F,Q,ge){return j===null||j.tag!==7?(j=_r(F,P.mode,Q,ge),j.return=P,j):(j=u(j,F),j.return=P,j)}function J(P,j,F){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Lu(""+j,P.mode,F),j.return=P,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case x:return F=os(j.type,j.key,j.props,null,P.mode,F),zi(F,j),F.return=P,F;case E:return j=Uu(j,P.mode,F),j.return=P,j;case U:var Q=j._init;return j=Q(j._payload),J(P,j,F)}if(pe(j)||te(j))return j=_r(j,P.mode,F,null),j.return=P,j;if(typeof j.then=="function")return J(P,Ss(j),F);if(j.$$typeof===A)return J(P,cs(P,j),F);_s(P,j)}return null}function Y(P,j,F,Q){var ge=j!==null?j.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return ge!==null?null:_(P,j,""+F,Q);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case x:return F.key===ge?D(P,j,F,Q):null;case E:return F.key===ge?V(P,j,F,Q):null;case U:return ge=F._init,F=ge(F._payload),Y(P,j,F,Q)}if(pe(F)||te(F))return ge!==null?null:X(P,j,F,Q,null);if(typeof F.then=="function")return Y(P,j,Ss(F),Q);if(F.$$typeof===A)return Y(P,j,cs(P,F),Q);_s(P,F)}return null}function $(P,j,F,Q,ge){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return P=P.get(F)||null,_(j,P,""+Q,ge);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:return P=P.get(Q.key===null?F:Q.key)||null,D(j,P,Q,ge);case E:return P=P.get(Q.key===null?F:Q.key)||null,V(j,P,Q,ge);case U:var Le=Q._init;return Q=Le(Q._payload),$(P,j,F,Q,ge)}if(pe(Q)||te(Q))return P=P.get(F)||null,X(j,P,Q,ge,null);if(typeof Q.then=="function")return $(P,j,F,Ss(Q),ge);if(Q.$$typeof===A)return $(P,j,F,cs(j,Q),ge);_s(j,Q)}return null}function Oe(P,j,F,Q){for(var ge=null,Le=null,Se=j,Ce=j=0,Pt=null;Se!==null&&Ce<F.length;Ce++){Se.index>Ce?(Pt=Se,Se=null):Pt=Se.sibling;var We=Y(P,Se,F[Ce],Q);if(We===null){Se===null&&(Se=Pt);break}t&&Se&&We.alternate===null&&a(P,Se),j=m(We,j,Ce),Le===null?ge=We:Le.sibling=We,Le=We,Se=Pt}if(Ce===F.length)return i(P,Se),Ie&&Tr(P,Ce),ge;if(Se===null){for(;Ce<F.length;Ce++)Se=J(P,F[Ce],Q),Se!==null&&(j=m(Se,j,Ce),Le===null?ge=Se:Le.sibling=Se,Le=Se);return Ie&&Tr(P,Ce),ge}for(Se=l(Se);Ce<F.length;Ce++)Pt=$(Se,P,Ce,F[Ce],Q),Pt!==null&&(t&&Pt.alternate!==null&&Se.delete(Pt.key===null?Ce:Pt.key),j=m(Pt,j,Ce),Le===null?ge=Pt:Le.sibling=Pt,Le=Pt);return t&&Se.forEach(function(lr){return a(P,lr)}),Ie&&Tr(P,Ce),ge}function Te(P,j,F,Q){if(F==null)throw Error(o(151));for(var ge=null,Le=null,Se=j,Ce=j=0,Pt=null,We=F.next();Se!==null&&!We.done;Ce++,We=F.next()){Se.index>Ce?(Pt=Se,Se=null):Pt=Se.sibling;var lr=Y(P,Se,We.value,Q);if(lr===null){Se===null&&(Se=Pt);break}t&&Se&&lr.alternate===null&&a(P,Se),j=m(lr,j,Ce),Le===null?ge=lr:Le.sibling=lr,Le=lr,Se=Pt}if(We.done)return i(P,Se),Ie&&Tr(P,Ce),ge;if(Se===null){for(;!We.done;Ce++,We=F.next())We=J(P,We.value,Q),We!==null&&(j=m(We,j,Ce),Le===null?ge=We:Le.sibling=We,Le=We);return Ie&&Tr(P,Ce),ge}for(Se=l(Se);!We.done;Ce++,We=F.next())We=$(Se,P,Ce,We.value,Q),We!==null&&(t&&We.alternate!==null&&Se.delete(We.key===null?Ce:We.key),j=m(We,j,Ce),Le===null?ge=We:Le.sibling=We,Le=We);return t&&Se.forEach(function(M_){return a(P,M_)}),Ie&&Tr(P,Ce),ge}function at(P,j,F,Q){if(typeof F=="object"&&F!==null&&F.type===k&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case x:e:{for(var ge=F.key;j!==null;){if(j.key===ge){if(ge=F.type,ge===k){if(j.tag===7){i(P,j.sibling),Q=u(j,F.props.children),Q.return=P,P=Q;break e}}else if(j.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===U&&ay(ge)===j.type){i(P,j.sibling),Q=u(j,F.props),zi(Q,F),Q.return=P,P=Q;break e}i(P,j);break}else a(P,j);j=j.sibling}F.type===k?(Q=_r(F.props.children,P.mode,Q,F.key),Q.return=P,P=Q):(Q=os(F.type,F.key,F.props,null,P.mode,Q),zi(Q,F),Q.return=P,P=Q)}return v(P);case E:e:{for(ge=F.key;j!==null;){if(j.key===ge)if(j.tag===4&&j.stateNode.containerInfo===F.containerInfo&&j.stateNode.implementation===F.implementation){i(P,j.sibling),Q=u(j,F.children||[]),Q.return=P,P=Q;break e}else{i(P,j);break}else a(P,j);j=j.sibling}Q=Uu(F,P.mode,Q),Q.return=P,P=Q}return v(P);case U:return ge=F._init,F=ge(F._payload),at(P,j,F,Q)}if(pe(F))return Oe(P,j,F,Q);if(te(F)){if(ge=te(F),typeof ge!="function")throw Error(o(150));return F=ge.call(F),Te(P,j,F,Q)}if(typeof F.then=="function")return at(P,j,Ss(F),Q);if(F.$$typeof===A)return at(P,j,cs(P,F),Q);_s(P,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,j!==null&&j.tag===6?(i(P,j.sibling),Q=u(j,F),Q.return=P,P=Q):(i(P,j),Q=Lu(F,P.mode,Q),Q.return=P,P=Q),v(P)):i(P,j)}return function(P,j,F,Q){try{Ni=0;var ge=at(P,j,F,Q);return Eo=null,ge}catch(Se){if(Se===Ei||Se===fs)throw Se;var Le=cn(29,Se,null,P.mode);return Le.lanes=Q,Le.return=P,Le}finally{}}}var To=ry(!0),oy=ry(!1),On=K(null),Gn=null;function qa(t){var a=t.alternate;ae(Mt,Mt.current&1),ae(On,t),Gn===null&&(a===null||xo.current!==null||a.memoizedState!==null)&&(Gn=t)}function iy(t){if(t.tag===22){if(ae(Mt,Mt.current),ae(On,t),Gn===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(Gn=t)}}else Wa()}function Wa(){ae(Mt,Mt.current),ae(On,On.current)}function wa(t){le(On),Gn===t&&(Gn=null),le(Mt)}var Mt=K(0);function Es(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||ld(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function vf(t,a,i,l){a=t.memoizedState,i=i(l,a),i=i==null?a:y({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var bf={enqueueSetState:function(t,a,i){t=t._reactInternals;var l=mn(),u=Za(l);u.payload=a,i!=null&&(u.callback=i),a=Ya(t,u,l),a!==null&&(hn(a,t,l),ki(a,t,l))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var l=mn(),u=Za(l);u.tag=1,u.payload=a,i!=null&&(u.callback=i),a=Ya(t,u,l),a!==null&&(hn(a,t,l),ki(a,t,l))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=mn(),l=Za(i);l.tag=2,a!=null&&(l.callback=a),a=Ya(t,l,i),a!==null&&(hn(a,t,i),ki(a,t,i))}};function ly(t,a,i,l,u,m,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,m,v):a.prototype&&a.prototype.isPureReactComponent?!yi(i,l)||!yi(u,m):!0}function sy(t,a,i,l){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,l),a.state!==t&&bf.enqueueReplaceState(a,a.state,null)}function Dr(t,a){var i=a;if("ref"in a){i={};for(var l in a)l!=="ref"&&(i[l]=a[l])}if(t=t.defaultProps){i===a&&(i=y({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}var Ts=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function cy(t){Ts(t)}function uy(t){console.error(t)}function fy(t){Ts(t)}function ks(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function dy(t,a,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function xf(t,a,i){return i=Za(i),i.tag=3,i.payload={element:null},i.callback=function(){ks(t,a)},i}function my(t){return t=Za(t),t.tag=3,t}function hy(t,a,i,l){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var m=l.value;t.payload=function(){return u(m)},t.callback=function(){dy(a,i,l)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){dy(a,i,l),typeof u!="function"&&(Ja===null?Ja=new Set([this]):Ja.add(this));var _=l.stack;this.componentDidCatch(l.value,{componentStack:_!==null?_:""})})}function MS(t,a,i,l,u){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=i.alternate,a!==null&&wi(a,i,u,!0),i=On.current,i!==null){switch(i.tag){case 13:return Gn===null?Yf():i.alternate===null&&vt===0&&(vt=3),i.flags&=-257,i.flags|=65536,i.lanes=u,l===Iu?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([l]):a.add(l),qf(t,l,u)),!1;case 22:return i.flags|=65536,l===Iu?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([l]):i.add(l)),qf(t,l,u)),!1}throw Error(o(435,i.tag))}return qf(t,l,u),Yf(),!1}if(Ie)return a=On.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=u,l!==Fu&&(t=Error(o(422),{cause:l}),xi(En(t,i)))):(l!==Fu&&(a=Error(o(423),{cause:l}),xi(En(a,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=En(l,i),u=xf(t.stateNode,l,u),Ku(t,u),vt!==4&&(vt=2)),!1;var m=Error(o(520),{cause:l});if(m=En(m,i),Fi===null?Fi=[m]:Fi.push(m),vt!==4&&(vt=2),a===null)return!0;l=En(l,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=xf(i.stateNode,l,t),Ku(i,t),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ja===null||!Ja.has(m))))return i.flags|=65536,u&=-u,i.lanes|=u,u=my(u),hy(u,t,i,l),Ku(i,u),!1}i=i.return}while(i!==null);return!1}var py=Error(o(461)),Lt=!1;function Zt(t,a,i,l){a.child=t===null?oy(a,null,i,l):To(a,t.child,i,l)}function yy(t,a,i,l,u){i=i.render;var m=a.ref;if("ref"in l){var v={};for(var _ in l)_!=="ref"&&(v[_]=l[_])}else v=l;return Ar(a),l=nf(t,a,i,v,m,u),_=af(),t!==null&&!Lt?(rf(t,a,u),Sa(t,a,u)):(Ie&&_&&Pu(a),a.flags|=1,Zt(t,a,l,u),a.child)}function gy(t,a,i,l,u){if(t===null){var m=i.type;return typeof m=="function"&&!Bu(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,vy(t,a,m,l,u)):(t=os(i.type,null,l,a,a.mode,u),t.ref=a.ref,t.return=a,a.child=t)}if(m=t.child,!Of(t,u)){var v=m.memoizedProps;if(i=i.compare,i=i!==null?i:yi,i(v,l)&&t.ref===a.ref)return Sa(t,a,u)}return a.flags|=1,t=pa(m,l),t.ref=a.ref,t.return=a,a.child=t}function vy(t,a,i,l,u){if(t!==null){var m=t.memoizedProps;if(yi(m,l)&&t.ref===a.ref)if(Lt=!1,a.pendingProps=l=m,Of(t,u))(t.flags&131072)!==0&&(Lt=!0);else return a.lanes=t.lanes,Sa(t,a,u)}return wf(t,a,i,l,u)}function by(t,a,i){var l=a.pendingProps,u=l.children,m=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((a.flags&128)!==0){if(l=m!==null?m.baseLanes|i:i,t!==null){for(u=a.child=t.child,m=0;u!==null;)m=m|u.lanes|u.childLanes,u=u.sibling;a.childLanes=m&~l}else a.childLanes=0,a.child=null;return xy(t,a,l,i)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&us(a,m!==null?m.cachePool:null),m!==null?vp(a,m):Ju(),iy(a);else return a.lanes=a.childLanes=536870912,xy(t,a,m!==null?m.baseLanes|i:i,i)}else m!==null?(us(a,m.cachePool),vp(a,m),Wa(),a.memoizedState=null):(t!==null&&us(a,null),Ju(),Wa());return Zt(t,a,u,i),a.child}function xy(t,a,i,l){var u=Wu();return u=u===null?null:{parent:Rt._currentValue,pool:u},a.memoizedState={baseLanes:i,cachePool:u},t!==null&&us(a,null),Ju(),iy(a),t!==null&&wi(t,a,l,!0),null}function Cs(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function wf(t,a,i,l,u){return Ar(a),i=nf(t,a,i,l,void 0,u),l=af(),t!==null&&!Lt?(rf(t,a,u),Sa(t,a,u)):(Ie&&l&&Pu(a),a.flags|=1,Zt(t,a,i,u),a.child)}function wy(t,a,i,l,u,m){return Ar(a),a.updateQueue=null,i=xp(a,l,i,u),bp(t),l=af(),t!==null&&!Lt?(rf(t,a,m),Sa(t,a,m)):(Ie&&l&&Pu(a),a.flags|=1,Zt(t,a,i,m),a.child)}function Sy(t,a,i,l,u){if(Ar(a),a.stateNode===null){var m=po,v=i.contextType;typeof v=="object"&&v!==null&&(m=Wt(v)),m=new i(l,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=bf,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=l,m.state=a.memoizedState,m.refs={},Gu(a),v=i.contextType,m.context=typeof v=="object"&&v!==null?Wt(v):po,m.state=a.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(vf(a,i,v,l),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&bf.enqueueReplaceState(m,m.state,null),Oi(a,l,m,u),Ci(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(t===null){m=a.stateNode;var _=a.memoizedProps,D=Dr(i,_);m.props=D;var V=m.context,X=i.contextType;v=po,typeof X=="object"&&X!==null&&(v=Wt(X));var J=i.getDerivedStateFromProps;X=typeof J=="function"||typeof m.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,X||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(_||V!==v)&&sy(a,m,l,v),Va=!1;var Y=a.memoizedState;m.state=Y,Oi(a,l,m,u),Ci(),V=a.memoizedState,_||Y!==V||Va?(typeof J=="function"&&(vf(a,i,J,l),V=a.memoizedState),(D=Va||ly(a,i,D,l,Y,V,v))?(X||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=V),m.props=l,m.state=V,m.context=v,l=D):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{m=a.stateNode,Xu(t,a),v=a.memoizedProps,X=Dr(i,v),m.props=X,J=a.pendingProps,Y=m.context,V=i.contextType,D=po,typeof V=="object"&&V!==null&&(D=Wt(V)),_=i.getDerivedStateFromProps,(V=typeof _=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==J||Y!==D)&&sy(a,m,l,D),Va=!1,Y=a.memoizedState,m.state=Y,Oi(a,l,m,u),Ci();var $=a.memoizedState;v!==J||Y!==$||Va||t!==null&&t.dependencies!==null&&ss(t.dependencies)?(typeof _=="function"&&(vf(a,i,_,l),$=a.memoizedState),(X=Va||ly(a,i,X,l,Y,$,D)||t!==null&&t.dependencies!==null&&ss(t.dependencies))?(V||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,$,D),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,$,D)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&Y===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&Y===t.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=$),m.props=l,m.state=$,m.context=D,l=X):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&Y===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&Y===t.memoizedState||(a.flags|=1024),l=!1)}return m=l,Cs(t,a),l=(a.flags&128)!==0,m||l?(m=a.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,t!==null&&l?(a.child=To(a,t.child,null,u),a.child=To(a,null,i,u)):Zt(t,a,i,u),a.memoizedState=m.state,t=a.child):t=Sa(t,a,u),t}function _y(t,a,i,l){return bi(),a.flags|=256,Zt(t,a,i,l),a.child}var Sf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _f(t){return{baseLanes:t,cachePool:up()}}function Ef(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=An),t}function Ey(t,a,i){var l=a.pendingProps,u=!1,m=(a.flags&128)!==0,v;if((v=m)||(v=t!==null&&t.memoizedState===null?!1:(Mt.current&2)!==0),v&&(u=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,t===null){if(Ie){if(u?qa(a):Wa(),Ie){var _=gt,D;if(D=_){e:{for(D=_,_=In;D.nodeType!==8;){if(!_){_=null;break e}if(D=zn(D.nextSibling),D===null){_=null;break e}}_=D}_!==null?(a.memoizedState={dehydrated:_,treeContext:Er!==null?{id:ya,overflow:ga}:null,retryLane:536870912,hydrationErrors:null},D=cn(18,null,null,0),D.stateNode=_,D.return=a,a.child=D,Kt=a,gt=null,D=!0):D=!1}D||Cr(a)}if(_=a.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return ld(_)?a.lanes=32:a.lanes=536870912,null;wa(a)}return _=l.children,l=l.fallback,u?(Wa(),u=a.mode,_=Os({mode:"hidden",children:_},u),l=_r(l,u,i,null),_.return=a,l.return=a,_.sibling=l,a.child=_,u=a.child,u.memoizedState=_f(i),u.childLanes=Ef(t,v,i),a.memoizedState=Sf,l):(qa(a),Tf(a,_))}if(D=t.memoizedState,D!==null&&(_=D.dehydrated,_!==null)){if(m)a.flags&256?(qa(a),a.flags&=-257,a=kf(t,a,i)):a.memoizedState!==null?(Wa(),a.child=t.child,a.flags|=128,a=null):(Wa(),u=l.fallback,_=a.mode,l=Os({mode:"visible",children:l.children},_),u=_r(u,_,i,null),u.flags|=2,l.return=a,u.return=a,l.sibling=u,a.child=l,To(a,t.child,null,i),l=a.child,l.memoizedState=_f(i),l.childLanes=Ef(t,v,i),a.memoizedState=Sf,a=u);else if(qa(a),ld(_)){if(v=_.nextSibling&&_.nextSibling.dataset,v)var V=v.dgst;v=V,l=Error(o(419)),l.stack="",l.digest=v,xi({value:l,source:null,stack:null}),a=kf(t,a,i)}else if(Lt||wi(t,a,i,!1),v=(i&t.childLanes)!==0,Lt||v){if(v=st,v!==null&&(l=i&-i,l=(l&42)!==0?1:qe(l),l=(l&(v.suspendedLanes|i))!==0?0:l,l!==0&&l!==D.retryLane))throw D.retryLane=l,ho(t,l),hn(v,t,l),py;_.data==="$?"||Yf(),a=kf(t,a,i)}else _.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=D.treeContext,gt=zn(_.nextSibling),Kt=a,Ie=!0,kr=null,In=!1,t!==null&&(kn[Cn++]=ya,kn[Cn++]=ga,kn[Cn++]=Er,ya=t.id,ga=t.overflow,Er=a),a=Tf(a,l.children),a.flags|=4096);return a}return u?(Wa(),u=l.fallback,_=a.mode,D=t.child,V=D.sibling,l=pa(D,{mode:"hidden",children:l.children}),l.subtreeFlags=D.subtreeFlags&65011712,V!==null?u=pa(V,u):(u=_r(u,_,i,null),u.flags|=2),u.return=a,l.return=a,l.sibling=u,a.child=l,l=u,u=a.child,_=t.child.memoizedState,_===null?_=_f(i):(D=_.cachePool,D!==null?(V=Rt._currentValue,D=D.parent!==V?{parent:V,pool:V}:D):D=up(),_={baseLanes:_.baseLanes|i,cachePool:D}),u.memoizedState=_,u.childLanes=Ef(t,v,i),a.memoizedState=Sf,l):(qa(a),i=t.child,t=i.sibling,i=pa(i,{mode:"visible",children:l.children}),i.return=a,i.sibling=null,t!==null&&(v=a.deletions,v===null?(a.deletions=[t],a.flags|=16):v.push(t)),a.child=i,a.memoizedState=null,i)}function Tf(t,a){return a=Os({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Os(t,a){return t=cn(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function kf(t,a,i){return To(a,t.child,null,i),t=Tf(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function Ty(t,a,i){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a),Zu(t.return,a,i)}function Cf(t,a,i,l,u){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:u}:(m.isBackwards=a,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=i,m.tailMode=u)}function ky(t,a,i){var l=a.pendingProps,u=l.revealOrder,m=l.tail;if(Zt(t,a,l.children,i),l=Mt.current,(l&2)!==0)l=l&1|2,a.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ty(t,i,a);else if(t.tag===19)Ty(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(ae(Mt,l),u){case"forwards":for(i=a.child,u=null;i!==null;)t=i.alternate,t!==null&&Es(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=a.child,a.child=null):(u=i.sibling,i.sibling=null),Cf(a,!1,u,i,m);break;case"backwards":for(i=null,u=a.child,a.child=null;u!==null;){if(t=u.alternate,t!==null&&Es(t)===null){a.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}Cf(a,!0,i,null,m);break;case"together":Cf(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Sa(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),Qa|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(wi(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(o(153));if(a.child!==null){for(t=a.child,i=pa(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=pa(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Of(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&ss(t)))}function DS(t,a,i){switch(a.tag){case 3:_e(a,a.stateNode.containerInfo),Fa(a,Rt,t.memoizedState.cache),bi();break;case 27:case 5:Ne(a);break;case 4:_e(a,a.stateNode.containerInfo);break;case 10:Fa(a,a.type,a.memoizedProps.value);break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(qa(a),a.flags|=128,null):(i&a.child.childLanes)!==0?Ey(t,a,i):(qa(a),t=Sa(t,a,i),t!==null?t.sibling:null);qa(a);break;case 19:var u=(t.flags&128)!==0;if(l=(i&a.childLanes)!==0,l||(wi(t,a,i,!1),l=(i&a.childLanes)!==0),u){if(l)return ky(t,a,i);a.flags|=128}if(u=a.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ae(Mt,Mt.current),l)break;return null;case 22:case 23:return a.lanes=0,by(t,a,i);case 24:Fa(a,Rt,t.memoizedState.cache)}return Sa(t,a,i)}function Cy(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)Lt=!0;else{if(!Of(t,i)&&(a.flags&128)===0)return Lt=!1,DS(t,a,i);Lt=(t.flags&131072)!==0}else Lt=!1,Ie&&(a.flags&1048576)!==0&&ap(a,ls,a.index);switch(a.lanes=0,a.tag){case 16:e:{t=a.pendingProps;var l=a.elementType,u=l._init;if(l=u(l._payload),a.type=l,typeof l=="function")Bu(l)?(t=Dr(l,t),a.tag=1,a=Sy(null,a,l,t,i)):(a.tag=0,a=wf(null,a,l,t,i));else{if(l!=null){if(u=l.$$typeof,u===N){a.tag=11,a=yy(null,a,l,t,i);break e}else if(u===L){a.tag=14,a=gy(null,a,l,t,i);break e}}throw a=he(l)||l,Error(o(306,a,""))}}return a;case 0:return wf(t,a,a.type,a.pendingProps,i);case 1:return l=a.type,u=Dr(l,a.pendingProps),Sy(t,a,l,u,i);case 3:e:{if(_e(a,a.stateNode.containerInfo),t===null)throw Error(o(387));l=a.pendingProps;var m=a.memoizedState;u=m.element,Xu(t,a),Oi(a,l,null,i);var v=a.memoizedState;if(l=v.cache,Fa(a,Rt,l),l!==m.cache&&Yu(a,[Rt],i,!0),Ci(),l=v.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=_y(t,a,l,i);break e}else if(l!==u){u=En(Error(o(424)),a),xi(u),a=_y(t,a,l,i);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(gt=zn(t.firstChild),Kt=a,Ie=!0,kr=null,In=!0,i=oy(a,null,l,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(bi(),l===u){a=Sa(t,a,i);break e}Zt(t,a,l,i)}a=a.child}return a;case 26:return Cs(t,a),t===null?(i=Mg(a.type,null,a.pendingProps,null))?a.memoizedState=i:Ie||(i=a.type,t=a.pendingProps,l=Vs(we.current).createElement(i),l[Et]=a,l[en]=t,$t(l,i,t),Bt(l),a.stateNode=l):a.memoizedState=Mg(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Ne(a),t===null&&Ie&&(l=a.stateNode=Og(a.type,a.pendingProps,we.current),Kt=a,In=!0,u=gt,nr(a.type)?(sd=u,gt=zn(l.firstChild)):gt=u),Zt(t,a,a.pendingProps.children,i),Cs(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Ie&&((u=l=gt)&&(l=i_(l,a.type,a.pendingProps,In),l!==null?(a.stateNode=l,Kt=a,gt=zn(l.firstChild),In=!1,u=!0):u=!1),u||Cr(a)),Ne(a),u=a.type,m=a.pendingProps,v=t!==null?t.memoizedProps:null,l=m.children,rd(u,m)?l=null:v!==null&&rd(u,v)&&(a.flags|=32),a.memoizedState!==null&&(u=nf(t,a,ES,null,null,i),Xi._currentValue=u),Cs(t,a),Zt(t,a,l,i),a.child;case 6:return t===null&&Ie&&((t=i=gt)&&(i=l_(i,a.pendingProps,In),i!==null?(a.stateNode=i,Kt=a,gt=null,t=!0):t=!1),t||Cr(a)),null;case 13:return Ey(t,a,i);case 4:return _e(a,a.stateNode.containerInfo),l=a.pendingProps,t===null?a.child=To(a,null,l,i):Zt(t,a,l,i),a.child;case 11:return yy(t,a,a.type,a.pendingProps,i);case 7:return Zt(t,a,a.pendingProps,i),a.child;case 8:return Zt(t,a,a.pendingProps.children,i),a.child;case 12:return Zt(t,a,a.pendingProps.children,i),a.child;case 10:return l=a.pendingProps,Fa(a,a.type,l.value),Zt(t,a,l.children,i),a.child;case 9:return u=a.type._context,l=a.pendingProps.children,Ar(a),u=Wt(u),l=l(u),a.flags|=1,Zt(t,a,l,i),a.child;case 14:return gy(t,a,a.type,a.pendingProps,i);case 15:return vy(t,a,a.type,a.pendingProps,i);case 19:return ky(t,a,i);case 31:return l=a.pendingProps,i=a.mode,l={mode:l.mode,children:l.children},t===null?(i=Os(l,i),i.ref=a.ref,a.child=i,i.return=a,a=i):(i=pa(t.child,l),i.ref=a.ref,a.child=i,i.return=a,a=i),a;case 22:return by(t,a,i);case 24:return Ar(a),l=Wt(Rt),t===null?(u=Wu(),u===null&&(u=st,m=$u(),u.pooledCache=m,m.refCount++,m!==null&&(u.pooledCacheLanes|=i),u=m),a.memoizedState={parent:l,cache:u},Gu(a),Fa(a,Rt,u)):((t.lanes&i)!==0&&(Xu(t,a),Oi(a,null,null,i),Ci()),u=t.memoizedState,m=a.memoizedState,u.parent!==l?(u={parent:l,cache:l},a.memoizedState=u,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=u),Fa(a,Rt,l)):(l=m.cache,Fa(a,Rt,l),l!==u.cache&&Yu(a,[Rt],i,!0))),Zt(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function _a(t){t.flags|=4}function Oy(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Bg(a)){if(a=On.current,a!==null&&((Ze&4194048)===Ze?Gn!==null:(Ze&62914560)!==Ze&&(Ze&536870912)===0||a!==Gn))throw Ti=Iu,fp;t.flags|=8192}}function As(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?$e():536870912,t.lanes|=a,Ao|=a)}function ji(t,a){if(!Ie)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function mt(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(a)for(var u=t.child;u!==null;)i|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)i|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=i,a}function NS(t,a,i){var l=a.pendingProps;switch(Hu(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(a),null;case 1:return mt(a),null;case 3:return i=a.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),ba(Rt),Be(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(vi(a)?_a(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ip())),mt(a),null;case 26:return i=a.memoizedState,t===null?(_a(a),i!==null?(mt(a),Oy(a,i)):(mt(a),a.flags&=-16777217)):i?i!==t.memoizedState?(_a(a),mt(a),Oy(a,i)):(mt(a),a.flags&=-16777217):(t.memoizedProps!==l&&_a(a),mt(a),a.flags&=-16777217),null;case 27:Ue(a),i=we.current;var u=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==l&&_a(a);else{if(!l){if(a.stateNode===null)throw Error(o(166));return mt(a),null}t=fe.current,vi(a)?rp(a):(t=Og(u,l,i),a.stateNode=t,_a(a))}return mt(a),null;case 5:if(Ue(a),i=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==l&&_a(a);else{if(!l){if(a.stateNode===null)throw Error(o(166));return mt(a),null}if(t=fe.current,vi(a))rp(a);else{switch(u=Vs(we.current),t){case 1:t=u.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=u.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=u.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?u.createElement(i,{is:l.is}):u.createElement(i)}}t[Et]=a,t[en]=l;e:for(u=a.child;u!==null;){if(u.tag===5||u.tag===6)t.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a.stateNode=t;e:switch($t(t,i,l),i){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&_a(a)}}return mt(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==l&&_a(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(o(166));if(t=we.current,vi(a)){if(t=a.stateNode,i=a.memoizedProps,l=null,u=Kt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[Et]=a,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||wg(t.nodeValue,i)),t||Cr(a)}else t=Vs(t).createTextNode(l),t[Et]=a,a.stateNode=t}return mt(a),null;case 13:if(l=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=vi(a),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=a.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Et]=a}else bi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;mt(a),u=!1}else u=ip(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return a.flags&256?(wa(a),a):(wa(a),null)}if(wa(a),(a.flags&128)!==0)return a.lanes=i,a;if(i=l!==null,t=t!==null&&t.memoizedState!==null,i){l=a.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var m=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==u&&(l.flags|=2048)}return i!==t&&i&&(a.child.flags|=8192),As(a,a.updateQueue),mt(a),null;case 4:return Be(),t===null&&Jf(a.stateNode.containerInfo),mt(a),null;case 10:return ba(a.type),mt(a),null;case 19:if(le(Mt),u=a.memoizedState,u===null)return mt(a),null;if(l=(a.flags&128)!==0,m=u.rendering,m===null)if(l)ji(u,!1);else{if(vt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(m=Es(t),m!==null){for(a.flags|=128,ji(u,!1),t=m.updateQueue,a.updateQueue=t,As(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)np(i,t),i=i.sibling;return ae(Mt,Mt.current&1|2),a.child}t=t.sibling}u.tail!==null&&jt()>Ds&&(a.flags|=128,l=!0,ji(u,!1),a.lanes=4194304)}else{if(!l)if(t=Es(m),t!==null){if(a.flags|=128,l=!0,t=t.updateQueue,a.updateQueue=t,As(a,t),ji(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!Ie)return mt(a),null}else 2*jt()-u.renderingStartTime>Ds&&i!==536870912&&(a.flags|=128,l=!0,ji(u,!1),a.lanes=4194304);u.isBackwards?(m.sibling=a.child,a.child=m):(t=u.last,t!==null?t.sibling=m:a.child=m,u.last=m)}return u.tail!==null?(a=u.tail,u.rendering=a,u.tail=a.sibling,u.renderingStartTime=jt(),a.sibling=null,t=Mt.current,ae(Mt,l?t&1|2:t&1),a):(mt(a),null);case 22:case 23:return wa(a),ef(),l=a.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(i&536870912)!==0&&(a.flags&128)===0&&(mt(a),a.subtreeFlags&6&&(a.flags|=8192)):mt(a),i=a.updateQueue,i!==null&&As(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048),t!==null&&le(Rr),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),ba(Rt),mt(a),null;case 25:return null;case 30:return null}throw Error(o(156,a.tag))}function zS(t,a){switch(Hu(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return ba(Rt),Be(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Ue(a),null;case 13:if(wa(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(o(340));bi()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return le(Mt),null;case 4:return Be(),null;case 10:return ba(a.type),null;case 22:case 23:return wa(a),ef(),t!==null&&le(Rr),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return ba(Rt),null;case 25:return null;default:return null}}function Ay(t,a){switch(Hu(a),a.tag){case 3:ba(Rt),Be();break;case 26:case 27:case 5:Ue(a);break;case 4:Be();break;case 13:wa(a);break;case 19:le(Mt);break;case 10:ba(a.type);break;case 22:case 23:wa(a),ef(),t!==null&&le(Rr);break;case 24:ba(Rt)}}function Bi(t,a){try{var i=a.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var u=l.next;i=u;do{if((i.tag&t)===t){l=void 0;var m=i.create,v=i.inst;l=m(),v.destroy=l}i=i.next}while(i!==u)}}catch(_){lt(a,a.return,_)}}function Ia(t,a,i){try{var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var m=u.next;l=m;do{if((l.tag&t)===t){var v=l.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,u=a;var D=i,V=_;try{V()}catch(X){lt(u,D,X)}}}l=l.next}while(l!==m)}}catch(X){lt(a,a.return,X)}}function Ry(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{gp(a,i)}catch(l){lt(t,t.return,l)}}}function My(t,a,i){i.props=Dr(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){lt(t,a,l)}}function Li(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(u){lt(t,a,u)}}function Xn(t,a){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(u){lt(t,a,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){lt(t,a,u)}else i.current=null}function Dy(t){var a=t.type,i=t.memoizedProps,l=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(u){lt(t,t.return,u)}}function Af(t,a,i){try{var l=t.stateNode;t_(l,t.type,i,a),l[en]=a}catch(u){lt(t,t.return,u)}}function Ny(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&nr(t.type)||t.tag===4}function Rf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ny(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&nr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Mf(t,a,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Fs));else if(l!==4&&(l===27&&nr(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(Mf(t,a,i),t=t.sibling;t!==null;)Mf(t,a,i),t=t.sibling}function Rs(t,a,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(l!==4&&(l===27&&nr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Rs(t,a,i),t=t.sibling;t!==null;)Rs(t,a,i),t=t.sibling}function zy(t){var a=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,u=a.attributes;u.length;)a.removeAttributeNode(u[0]);$t(a,l,i),a[Et]=t,a[en]=i}catch(m){lt(t,t.return,m)}}var Ea=!1,xt=!1,Df=!1,jy=typeof WeakSet=="function"?WeakSet:Set,Ut=null;function jS(t,a){if(t=t.containerInfo,nd=Is,t=qh(t),Au(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var u=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var v=0,_=-1,D=-1,V=0,X=0,J=t,Y=null;t:for(;;){for(var $;J!==i||u!==0&&J.nodeType!==3||(_=v+u),J!==m||l!==0&&J.nodeType!==3||(D=v+l),J.nodeType===3&&(v+=J.nodeValue.length),($=J.firstChild)!==null;)Y=J,J=$;for(;;){if(J===t)break t;if(Y===i&&++V===u&&(_=v),Y===m&&++X===l&&(D=v),($=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=$}i=_===-1||D===-1?null:{start:_,end:D}}else i=null}i=i||{start:0,end:0}}else i=null;for(ad={focusedElem:t,selectionRange:i},Is=!1,Ut=a;Ut!==null;)if(a=Ut,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,Ut=t;else for(;Ut!==null;){switch(a=Ut,m=a.alternate,t=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=a,u=m.memoizedProps,m=m.memoizedState,l=i.stateNode;try{var Oe=Dr(i.type,u,i.elementType===i.type);t=l.getSnapshotBeforeUpdate(Oe,m),l.__reactInternalSnapshotBeforeUpdate=t}catch(Te){lt(i,i.return,Te)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)id(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":id(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=a.sibling,t!==null){t.return=a.return,Ut=t;break}Ut=a.return}}function By(t,a,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ga(t,i),l&4&&Bi(5,i);break;case 1:if(Ga(t,i),l&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(v){lt(i,i.return,v)}else{var u=Dr(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(u,a,t.__reactInternalSnapshotBeforeUpdate)}catch(v){lt(i,i.return,v)}}l&64&&Ry(i),l&512&&Li(i,i.return);break;case 3:if(Ga(t,i),l&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{gp(t,a)}catch(v){lt(i,i.return,v)}}break;case 27:a===null&&l&4&&zy(i);case 26:case 5:Ga(t,i),a===null&&l&4&&Dy(i),l&512&&Li(i,i.return);break;case 12:Ga(t,i);break;case 13:Ga(t,i),l&4&&Py(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=YS.bind(null,i),s_(t,i))));break;case 22:if(l=i.memoizedState!==null||Ea,!l){a=a!==null&&a.memoizedState!==null||xt,u=Ea;var m=xt;Ea=l,(xt=a)&&!m?Xa(t,i,(i.subtreeFlags&8772)!==0):Ga(t,i),Ea=u,xt=m}break;case 30:break;default:Ga(t,i)}}function Ly(t){var a=t.alternate;a!==null&&(t.alternate=null,Ly(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&uu(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ut=null,an=!1;function Ta(t,a,i){for(i=i.child;i!==null;)Uy(t,a,i),i=i.sibling}function Uy(t,a,i){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(xe,i)}catch{}switch(i.tag){case 26:xt||Xn(i,a),Ta(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:xt||Xn(i,a);var l=ut,u=an;nr(i.type)&&(ut=i.stateNode,an=!1),Ta(t,a,i),qi(i.stateNode),ut=l,an=u;break;case 5:xt||Xn(i,a);case 6:if(l=ut,u=an,ut=null,Ta(t,a,i),ut=l,an=u,ut!==null)if(an)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(i.stateNode)}catch(m){lt(i,a,m)}else try{ut.removeChild(i.stateNode)}catch(m){lt(i,a,m)}break;case 18:ut!==null&&(an?(t=ut,kg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),el(t)):kg(ut,i.stateNode));break;case 4:l=ut,u=an,ut=i.stateNode.containerInfo,an=!0,Ta(t,a,i),ut=l,an=u;break;case 0:case 11:case 14:case 15:xt||Ia(2,i,a),xt||Ia(4,i,a),Ta(t,a,i);break;case 1:xt||(Xn(i,a),l=i.stateNode,typeof l.componentWillUnmount=="function"&&My(i,a,l)),Ta(t,a,i);break;case 21:Ta(t,a,i);break;case 22:xt=(l=xt)||i.memoizedState!==null,Ta(t,a,i),xt=l;break;default:Ta(t,a,i)}}function Py(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{el(t)}catch(i){lt(a,a.return,i)}}function BS(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new jy),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new jy),a;default:throw Error(o(435,t.tag))}}function Nf(t,a){var i=BS(t);a.forEach(function(l){var u=$S.bind(null,t,l);i.has(l)||(i.add(l),l.then(u,u))})}function un(t,a){var i=a.deletions;if(i!==null)for(var l=0;l<i.length;l++){var u=i[l],m=t,v=a,_=v;e:for(;_!==null;){switch(_.tag){case 27:if(nr(_.type)){ut=_.stateNode,an=!1;break e}break;case 5:ut=_.stateNode,an=!1;break e;case 3:case 4:ut=_.stateNode.containerInfo,an=!0;break e}_=_.return}if(ut===null)throw Error(o(160));Uy(m,v,u),ut=null,an=!1,m=u.alternate,m!==null&&(m.return=null),u.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Hy(a,t),a=a.sibling}var Nn=null;function Hy(t,a){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:un(a,t),fn(t),l&4&&(Ia(3,t,t.return),Bi(3,t),Ia(5,t,t.return));break;case 1:un(a,t),fn(t),l&512&&(xt||i===null||Xn(i,i.return)),l&64&&Ea&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var u=Nn;if(un(a,t),fn(t),l&512&&(xt||i===null||Xn(i,i.return)),l&4){var m=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){e:{l=t.type,i=t.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":m=u.getElementsByTagName("title")[0],(!m||m[li]||m[Et]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=u.createElement(l),u.head.insertBefore(m,u.querySelector("head > title"))),$t(m,l,i),m[Et]=t,Bt(m),l=m;break e;case"link":var v=zg("link","href",u).get(l+(i.href||""));if(v){for(var _=0;_<v.length;_++)if(m=v[_],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(_,1);break t}}m=u.createElement(l),$t(m,l,i),u.head.appendChild(m);break;case"meta":if(v=zg("meta","content",u).get(l+(i.content||""))){for(_=0;_<v.length;_++)if(m=v[_],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(_,1);break t}}m=u.createElement(l),$t(m,l,i),u.head.appendChild(m);break;default:throw Error(o(468,l))}m[Et]=t,Bt(m),l=m}t.stateNode=l}else jg(u,t.type,t.stateNode);else t.stateNode=Ng(u,l,t.memoizedProps);else m!==l?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,l===null?jg(u,t.type,t.stateNode):Ng(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Af(t,t.memoizedProps,i.memoizedProps)}break;case 27:un(a,t),fn(t),l&512&&(xt||i===null||Xn(i,i.return)),i!==null&&l&4&&Af(t,t.memoizedProps,i.memoizedProps);break;case 5:if(un(a,t),fn(t),l&512&&(xt||i===null||Xn(i,i.return)),t.flags&32){u=t.stateNode;try{io(u,"")}catch($){lt(t,t.return,$)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,Af(t,u,i!==null?i.memoizedProps:u)),l&1024&&(Df=!0);break;case 6:if(un(a,t),fn(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch($){lt(t,t.return,$)}}break;case 3:if($s=null,u=Nn,Nn=Zs(a.containerInfo),un(a,t),Nn=u,fn(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{el(a.containerInfo)}catch($){lt(t,t.return,$)}Df&&(Df=!1,Fy(t));break;case 4:l=Nn,Nn=Zs(t.stateNode.containerInfo),un(a,t),fn(t),Nn=l;break;case 12:un(a,t),fn(t);break;case 13:un(a,t),fn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Pf=jt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Nf(t,l)));break;case 22:u=t.memoizedState!==null;var D=i!==null&&i.memoizedState!==null,V=Ea,X=xt;if(Ea=V||u,xt=X||D,un(a,t),xt=X,Ea=V,fn(t),l&8192)e:for(a=t.stateNode,a._visibility=u?a._visibility&-2:a._visibility|1,u&&(i===null||D||Ea||xt||Nr(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){D=i=a;try{if(m=D.stateNode,u)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=D.stateNode;var J=D.memoizedProps.style,Y=J!=null&&J.hasOwnProperty("display")?J.display:null;_.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch($){lt(D,D.return,$)}}}else if(a.tag===6){if(i===null){D=a;try{D.stateNode.nodeValue=u?"":D.memoizedProps}catch($){lt(D,D.return,$)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Nf(t,i))));break;case 19:un(a,t),fn(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Nf(t,l)));break;case 30:break;case 21:break;default:un(a,t),fn(t)}}function fn(t){var a=t.flags;if(a&2){try{for(var i,l=t.return;l!==null;){if(Ny(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var u=i.stateNode,m=Rf(t);Rs(t,m,u);break;case 5:var v=i.stateNode;i.flags&32&&(io(v,""),i.flags&=-33);var _=Rf(t);Rs(t,_,v);break;case 3:case 4:var D=i.stateNode.containerInfo,V=Rf(t);Mf(t,V,D);break;default:throw Error(o(161))}}catch(X){lt(t,t.return,X)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function Fy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;Fy(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function Ga(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)By(t,a.alternate,a),a=a.sibling}function Nr(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Ia(4,a,a.return),Nr(a);break;case 1:Xn(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&My(a,a.return,i),Nr(a);break;case 27:qi(a.stateNode);case 26:case 5:Xn(a,a.return),Nr(a);break;case 22:a.memoizedState===null&&Nr(a);break;case 30:Nr(a);break;default:Nr(a)}t=t.sibling}}function Xa(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,u=t,m=a,v=m.flags;switch(m.tag){case 0:case 11:case 15:Xa(u,m,i),Bi(4,m);break;case 1:if(Xa(u,m,i),l=m,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(V){lt(l,l.return,V)}if(l=m,u=l.updateQueue,u!==null){var _=l.stateNode;try{var D=u.shared.hiddenCallbacks;if(D!==null)for(u.shared.hiddenCallbacks=null,u=0;u<D.length;u++)yp(D[u],_)}catch(V){lt(l,l.return,V)}}i&&v&64&&Ry(m),Li(m,m.return);break;case 27:zy(m);case 26:case 5:Xa(u,m,i),i&&l===null&&v&4&&Dy(m),Li(m,m.return);break;case 12:Xa(u,m,i);break;case 13:Xa(u,m,i),i&&v&4&&Py(u,m);break;case 22:m.memoizedState===null&&Xa(u,m,i),Li(m,m.return);break;case 30:break;default:Xa(u,m,i)}a=a.sibling}}function zf(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Si(i))}function jf(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Si(t))}function Kn(t,a,i,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Vy(t,a,i,l),a=a.sibling}function Vy(t,a,i,l){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Kn(t,a,i,l),u&2048&&Bi(9,a);break;case 1:Kn(t,a,i,l);break;case 3:Kn(t,a,i,l),u&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Si(t)));break;case 12:if(u&2048){Kn(t,a,i,l),t=a.stateNode;try{var m=a.memoizedProps,v=m.id,_=m.onPostCommit;typeof _=="function"&&_(v,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(D){lt(a,a.return,D)}}else Kn(t,a,i,l);break;case 13:Kn(t,a,i,l);break;case 23:break;case 22:m=a.stateNode,v=a.alternate,a.memoizedState!==null?m._visibility&2?Kn(t,a,i,l):Ui(t,a):m._visibility&2?Kn(t,a,i,l):(m._visibility|=2,ko(t,a,i,l,(a.subtreeFlags&10256)!==0)),u&2048&&zf(v,a);break;case 24:Kn(t,a,i,l),u&2048&&jf(a.alternate,a);break;default:Kn(t,a,i,l)}}function ko(t,a,i,l,u){for(u=u&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var m=t,v=a,_=i,D=l,V=v.flags;switch(v.tag){case 0:case 11:case 15:ko(m,v,_,D,u),Bi(8,v);break;case 23:break;case 22:var X=v.stateNode;v.memoizedState!==null?X._visibility&2?ko(m,v,_,D,u):Ui(m,v):(X._visibility|=2,ko(m,v,_,D,u)),u&&V&2048&&zf(v.alternate,v);break;case 24:ko(m,v,_,D,u),u&&V&2048&&jf(v.alternate,v);break;default:ko(m,v,_,D,u)}a=a.sibling}}function Ui(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,l=a,u=l.flags;switch(l.tag){case 22:Ui(i,l),u&2048&&zf(l.alternate,l);break;case 24:Ui(i,l),u&2048&&jf(l.alternate,l);break;default:Ui(i,l)}a=a.sibling}}var Pi=8192;function Co(t){if(t.subtreeFlags&Pi)for(t=t.child;t!==null;)Zy(t),t=t.sibling}function Zy(t){switch(t.tag){case 26:Co(t),t.flags&Pi&&t.memoizedState!==null&&w_(Nn,t.memoizedState,t.memoizedProps);break;case 5:Co(t);break;case 3:case 4:var a=Nn;Nn=Zs(t.stateNode.containerInfo),Co(t),Nn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Pi,Pi=16777216,Co(t),Pi=a):Co(t));break;default:Co(t)}}function Yy(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function Hi(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];Ut=l,qy(l,t)}Yy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$y(t),t=t.sibling}function $y(t){switch(t.tag){case 0:case 11:case 15:Hi(t),t.flags&2048&&Ia(9,t,t.return);break;case 3:Hi(t);break;case 12:Hi(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Ms(t)):Hi(t);break;default:Hi(t)}}function Ms(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];Ut=l,qy(l,t)}Yy(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Ia(8,a,a.return),Ms(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,Ms(a));break;default:Ms(a)}t=t.sibling}}function qy(t,a){for(;Ut!==null;){var i=Ut;switch(i.tag){case 0:case 11:case 15:Ia(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Si(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Ut=l;else e:for(i=t;Ut!==null;){l=Ut;var u=l.sibling,m=l.return;if(Ly(l),l===i){Ut=null;break e}if(u!==null){u.return=m,Ut=u;break e}Ut=m}}}var LS={getCacheForType:function(t){var a=Wt(Rt),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i}},US=typeof WeakMap=="function"?WeakMap:Map,Xe=0,st=null,He=null,Ze=0,Ke=0,dn=null,Ka=!1,Oo=!1,Bf=!1,ka=0,vt=0,Qa=0,zr=0,Lf=0,An=0,Ao=0,Fi=null,rn=null,Uf=!1,Pf=0,Ds=1/0,Ns=null,Ja=null,Yt=0,er=null,Ro=null,Mo=0,Hf=0,Ff=null,Wy=null,Vi=0,Vf=null;function mn(){if((Xe&2)!==0&&Ze!==0)return Ze&-Ze;if(B.T!==null){var t=vo;return t!==0?t:Gf()}return Yl()}function Iy(){An===0&&(An=(Ze&536870912)===0||Ie?it():536870912);var t=On.current;return t!==null&&(t.flags|=32),An}function hn(t,a,i){(t===st&&(Ke===2||Ke===9)||t.cancelPendingCommit!==null)&&(Do(t,0),tr(t,Ze,An,!1)),Vt(t,i),((Xe&2)===0||t!==st)&&(t===st&&((Xe&2)===0&&(zr|=i),vt===4&&tr(t,Ze,An,!1)),Qn(t))}function Gy(t,a,i){if((Xe&6)!==0)throw Error(o(327));var l=!i&&(a&124)===0&&(a&t.expiredLanes)===0||da(t,a),u=l?FS(t,a):$f(t,a,!0),m=l;do{if(u===0){Oo&&!l&&tr(t,a,0,!1);break}else{if(i=t.current.alternate,m&&!PS(i)){u=$f(t,a,!1),m=!1;continue}if(u===2){if(m=a,t.errorRecoveryDisabledLanes&m)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var _=t;u=Fi;var D=_.current.memoizedState.isDehydrated;if(D&&(Do(_,v).flags|=256),v=$f(_,v,!1),v!==2){if(Bf&&!D){_.errorRecoveryDisabledLanes|=m,zr|=m,u=4;break e}m=rn,rn=u,m!==null&&(rn===null?rn=m:rn.push.apply(rn,m))}u=v}if(m=!1,u!==2)continue}}if(u===1){Do(t,0),tr(t,a,0,!0);break}e:{switch(l=t,m=u,m){case 0:case 1:throw Error(o(345));case 4:if((a&4194048)!==a)break;case 6:tr(l,a,An,!Ka);break e;case 2:rn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((a&62914560)===a&&(u=Pf+300-jt(),10<u)){if(tr(l,a,An,!Ka),Wn(l,0,!0)!==0)break e;l.timeoutHandle=Eg(Xy.bind(null,l,i,rn,Ns,Uf,a,An,zr,Ao,Ka,m,2,-0,0),u);break e}Xy(l,i,rn,Ns,Uf,a,An,zr,Ao,Ka,m,0,-0,0)}}break}while(!0);Qn(t)}function Xy(t,a,i,l,u,m,v,_,D,V,X,J,Y,$){if(t.timeoutHandle=-1,J=a.subtreeFlags,(J&8192||(J&16785408)===16785408)&&(Gi={stylesheets:null,count:0,unsuspend:x_},Zy(a),J=S_(),J!==null)){t.cancelPendingCommit=J(ag.bind(null,t,a,m,i,l,u,v,_,D,X,1,Y,$)),tr(t,m,v,!V);return}ag(t,a,m,i,l,u,v,_,D)}function PS(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var u=i[l],m=u.getSnapshot;u=u.value;try{if(!sn(m(),u))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function tr(t,a,i,l){a&=~Lf,a&=~zr,t.suspendedLanes|=a,t.pingedLanes&=~a,l&&(t.warmLanes|=a),l=t.expirationTimes;for(var u=a;0<u;){var m=31-et(u),v=1<<m;l[m]=-1,u&=~v}i!==0&&At(t,i,a)}function zs(){return(Xe&6)===0?(Zi(0),!1):!0}function Zf(){if(He!==null){if(Ke===0)var t=He.return;else t=He,va=Or=null,of(t),Eo=null,Ni=0,t=He;for(;t!==null;)Ay(t.alternate,t),t=t.return;He=null}}function Do(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,a_(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Zf(),st=t,He=i=pa(t.current,null),Ze=a,Ke=0,dn=null,Ka=!1,Oo=da(t,a),Bf=!1,Ao=An=Lf=zr=Qa=vt=0,rn=Fi=null,Uf=!1,(a&8)!==0&&(a|=a&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=a;0<l;){var u=31-et(l),m=1<<u;a|=t[u],l&=~m}return ka=a,ns(),i}function Ky(t,a){ze=null,B.H=ws,a===Ei||a===fs?(a=hp(),Ke=3):a===fp?(a=hp(),Ke=4):Ke=a===py?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,dn=a,He===null&&(vt=1,ks(t,En(a,t.current)))}function Qy(){var t=B.H;return B.H=ws,t===null?ws:t}function Jy(){var t=B.A;return B.A=LS,t}function Yf(){vt=4,Ka||(Ze&4194048)!==Ze&&On.current!==null||(Oo=!0),(Qa&134217727)===0&&(zr&134217727)===0||st===null||tr(st,Ze,An,!1)}function $f(t,a,i){var l=Xe;Xe|=2;var u=Qy(),m=Jy();(st!==t||Ze!==a)&&(Ns=null,Do(t,a)),a=!1;var v=vt;e:do try{if(Ke!==0&&He!==null){var _=He,D=dn;switch(Ke){case 8:Zf(),v=6;break e;case 3:case 2:case 9:case 6:On.current===null&&(a=!0);var V=Ke;if(Ke=0,dn=null,No(t,_,D,V),i&&Oo){v=0;break e}break;default:V=Ke,Ke=0,dn=null,No(t,_,D,V)}}HS(),v=vt;break}catch(X){Ky(t,X)}while(!0);return a&&t.shellSuspendCounter++,va=Or=null,Xe=l,B.H=u,B.A=m,He===null&&(st=null,Ze=0,ns()),v}function HS(){for(;He!==null;)eg(He)}function FS(t,a){var i=Xe;Xe|=2;var l=Qy(),u=Jy();st!==t||Ze!==a?(Ns=null,Ds=jt()+500,Do(t,a)):Oo=da(t,a);e:do try{if(Ke!==0&&He!==null){a=He;var m=dn;t:switch(Ke){case 1:Ke=0,dn=null,No(t,a,m,1);break;case 2:case 9:if(dp(m)){Ke=0,dn=null,tg(a);break}a=function(){Ke!==2&&Ke!==9||st!==t||(Ke=7),Qn(t)},m.then(a,a);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:dp(m)?(Ke=0,dn=null,tg(a)):(Ke=0,dn=null,No(t,a,m,7));break;case 5:var v=null;switch(He.tag){case 26:v=He.memoizedState;case 5:case 27:var _=He;if(!v||Bg(v)){Ke=0,dn=null;var D=_.sibling;if(D!==null)He=D;else{var V=_.return;V!==null?(He=V,js(V)):He=null}break t}}Ke=0,dn=null,No(t,a,m,5);break;case 6:Ke=0,dn=null,No(t,a,m,6);break;case 8:Zf(),vt=6;break e;default:throw Error(o(462))}}VS();break}catch(X){Ky(t,X)}while(!0);return va=Or=null,B.H=l,B.A=u,Xe=i,He!==null?0:(st=null,Ze=0,ns(),vt)}function VS(){for(;He!==null&&!Yn();)eg(He)}function eg(t){var a=Cy(t.alternate,t,ka);t.memoizedProps=t.pendingProps,a===null?js(t):He=a}function tg(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=wy(i,a,a.pendingProps,a.type,void 0,Ze);break;case 11:a=wy(i,a,a.pendingProps,a.type.render,a.ref,Ze);break;case 5:of(a);default:Ay(i,a),a=He=np(a,ka),a=Cy(i,a,ka)}t.memoizedProps=t.pendingProps,a===null?js(t):He=a}function No(t,a,i,l){va=Or=null,of(a),Eo=null,Ni=0;var u=a.return;try{if(MS(t,u,a,i,Ze)){vt=1,ks(t,En(i,t.current)),He=null;return}}catch(m){if(u!==null)throw He=u,m;vt=1,ks(t,En(i,t.current)),He=null;return}a.flags&32768?(Ie||l===1?t=!0:Oo||(Ze&536870912)!==0?t=!1:(Ka=t=!0,(l===2||l===9||l===3||l===6)&&(l=On.current,l!==null&&l.tag===13&&(l.flags|=16384))),ng(a,t)):js(a)}function js(t){var a=t;do{if((a.flags&32768)!==0){ng(a,Ka);return}t=a.return;var i=NS(a.alternate,a,ka);if(i!==null){He=i;return}if(a=a.sibling,a!==null){He=a;return}He=a=t}while(a!==null);vt===0&&(vt=5)}function ng(t,a){do{var i=zS(t.alternate,t);if(i!==null){i.flags&=32767,He=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){He=t;return}He=t=i}while(t!==null);vt=6,He=null}function ag(t,a,i,l,u,m,v,_,D){t.cancelPendingCommit=null;do Bs();while(Yt!==0);if((Xe&6)!==0)throw Error(o(327));if(a!==null){if(a===t.current)throw Error(o(177));if(m=a.lanes|a.childLanes,m|=zu,Qr(t,i,m,v,_,D),t===st&&(He=st=null,Ze=0),Ro=a,er=t,Mo=i,Hf=m,Ff=u,Wy=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,qS(Z,function(){return sg(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=B.T,B.T=null,u=I.p,I.p=2,v=Xe,Xe|=4;try{jS(t,a,i)}finally{Xe=v,I.p=u,B.T=l}}Yt=1,rg(),og(),ig()}}function rg(){if(Yt===1){Yt=0;var t=er,a=Ro,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=B.T,B.T=null;var l=I.p;I.p=2;var u=Xe;Xe|=4;try{Hy(a,t);var m=ad,v=qh(t.containerInfo),_=m.focusedElem,D=m.selectionRange;if(v!==_&&_&&_.ownerDocument&&$h(_.ownerDocument.documentElement,_)){if(D!==null&&Au(_)){var V=D.start,X=D.end;if(X===void 0&&(X=V),"selectionStart"in _)_.selectionStart=V,_.selectionEnd=Math.min(X,_.value.length);else{var J=_.ownerDocument||document,Y=J&&J.defaultView||window;if(Y.getSelection){var $=Y.getSelection(),Oe=_.textContent.length,Te=Math.min(D.start,Oe),at=D.end===void 0?Te:Math.min(D.end,Oe);!$.extend&&Te>at&&(v=at,at=Te,Te=v);var P=Yh(_,Te),j=Yh(_,at);if(P&&j&&($.rangeCount!==1||$.anchorNode!==P.node||$.anchorOffset!==P.offset||$.focusNode!==j.node||$.focusOffset!==j.offset)){var F=J.createRange();F.setStart(P.node,P.offset),$.removeAllRanges(),Te>at?($.addRange(F),$.extend(j.node,j.offset)):(F.setEnd(j.node,j.offset),$.addRange(F))}}}}for(J=[],$=_;$=$.parentNode;)$.nodeType===1&&J.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<J.length;_++){var Q=J[_];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Is=!!nd,ad=nd=null}finally{Xe=u,I.p=l,B.T=i}}t.current=a,Yt=2}}function og(){if(Yt===2){Yt=0;var t=er,a=Ro,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=B.T,B.T=null;var l=I.p;I.p=2;var u=Xe;Xe|=4;try{By(t,a.alternate,a)}finally{Xe=u,I.p=l,B.T=i}}Yt=3}}function ig(){if(Yt===4||Yt===3){Yt=0,fa();var t=er,a=Ro,i=Mo,l=Wy;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Yt=5:(Yt=0,Ro=er=null,lg(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Ja=null),ii(i),a=a.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(xe,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=B.T,u=I.p,I.p=2,B.T=null;try{for(var m=t.onRecoverableError,v=0;v<l.length;v++){var _=l[v];m(_.value,{componentStack:_.stack})}}finally{B.T=a,I.p=u}}(Mo&3)!==0&&Bs(),Qn(t),u=t.pendingLanes,(i&4194090)!==0&&(u&42)!==0?t===Vf?Vi++:(Vi=0,Vf=t):Vi=0,Zi(0)}}function lg(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,Si(a)))}function Bs(t){return rg(),og(),ig(),sg()}function sg(){if(Yt!==5)return!1;var t=er,a=Hf;Hf=0;var i=ii(Mo),l=B.T,u=I.p;try{I.p=32>i?32:i,B.T=null,i=Ff,Ff=null;var m=er,v=Mo;if(Yt=0,Ro=er=null,Mo=0,(Xe&6)!==0)throw Error(o(331));var _=Xe;if(Xe|=4,$y(m.current),Vy(m,m.current,v,i),Xe=_,Zi(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(xe,m)}catch{}return!0}finally{I.p=u,B.T=l,lg(t,a)}}function cg(t,a,i){a=En(i,a),a=xf(t.stateNode,a,2),t=Ya(t,a,2),t!==null&&(Vt(t,2),Qn(t))}function lt(t,a,i){if(t.tag===3)cg(t,t,i);else for(;a!==null;){if(a.tag===3){cg(a,t,i);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ja===null||!Ja.has(l))){t=En(i,t),i=my(2),l=Ya(a,i,2),l!==null&&(hy(i,l,a,t),Vt(l,2),Qn(l));break}}a=a.return}}function qf(t,a,i){var l=t.pingCache;if(l===null){l=t.pingCache=new US;var u=new Set;l.set(a,u)}else u=l.get(a),u===void 0&&(u=new Set,l.set(a,u));u.has(i)||(Bf=!0,u.add(i),t=ZS.bind(null,t,a,i),a.then(t,t))}function ZS(t,a,i){var l=t.pingCache;l!==null&&l.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,st===t&&(Ze&i)===i&&(vt===4||vt===3&&(Ze&62914560)===Ze&&300>jt()-Pf?(Xe&2)===0&&Do(t,0):Lf|=i,Ao===Ze&&(Ao=0)),Qn(t)}function ug(t,a){a===0&&(a=$e()),t=ho(t,a),t!==null&&(Vt(t,a),Qn(t))}function YS(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),ug(t,i)}function $S(t,a){var i=0;switch(t.tag){case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(i=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(a),ug(t,i)}function qS(t,a){return _t(t,a)}var Ls=null,zo=null,Wf=!1,Us=!1,If=!1,jr=0;function Qn(t){t!==zo&&t.next===null&&(zo===null?Ls=zo=t:zo=zo.next=t),Us=!0,Wf||(Wf=!0,IS())}function Zi(t,a){if(!If&&Us){If=!0;do for(var i=!1,l=Ls;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var m=0;else{var v=l.suspendedLanes,_=l.pingedLanes;m=(1<<31-et(42|t)+1)-1,m&=u&~(v&~_),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,hg(l,m))}else m=Ze,m=Wn(l,l===st?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||da(l,m)||(i=!0,hg(l,m));l=l.next}while(i);If=!1}}function WS(){fg()}function fg(){Us=Wf=!1;var t=0;jr!==0&&(n_()&&(t=jr),jr=0);for(var a=jt(),i=null,l=Ls;l!==null;){var u=l.next,m=dg(l,a);m===0?(l.next=null,i===null?Ls=u:i.next=u,u===null&&(zo=i)):(i=l,(t!==0||(m&3)!==0)&&(Us=!0)),l=u}Zi(t)}function dg(t,a){for(var i=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var v=31-et(m),_=1<<v,D=u[v];D===-1?((_&i)===0||(_&l)!==0)&&(u[v]=Me(_,a)):D<=a&&(t.expiredLanes|=_),m&=~_}if(a=st,i=Ze,i=Wn(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===a&&(Ke===2||Ke===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Ft(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||da(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(l!==null&&Ft(l),ii(i)){case 2:case 8:i=z;break;case 32:i=Z;break;case 268435456:i=de;break;default:i=Z}return l=mg.bind(null,t),i=_t(i,l),t.callbackPriority=a,t.callbackNode=i,a}return l!==null&&l!==null&&Ft(l),t.callbackPriority=2,t.callbackNode=null,2}function mg(t,a){if(Yt!==0&&Yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Bs()&&t.callbackNode!==i)return null;var l=Ze;return l=Wn(t,t===st?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Gy(t,l,a),dg(t,jt()),t.callbackNode!=null&&t.callbackNode===i?mg.bind(null,t):null)}function hg(t,a){if(Bs())return null;Gy(t,a,!0)}function IS(){r_(function(){(Xe&6)!==0?_t(vr,WS):fg()})}function Gf(){return jr===0&&(jr=it()),jr}function pg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Gl(""+t)}function yg(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function GS(t,a,i,l,u){if(a==="submit"&&i&&i.stateNode===u){var m=pg((u[en]||null).action),v=l.submitter;v&&(a=(a=v[en]||null)?pg(a.formAction):v.getAttribute("formAction"),a!==null&&(m=a,v=null));var _=new Jl("action","action",null,l,u);t.push({event:_,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(jr!==0){var D=v?yg(u,v):new FormData(u);pf(i,{pending:!0,data:D,method:u.method,action:m},null,D)}}else typeof m=="function"&&(_.preventDefault(),D=v?yg(u,v):new FormData(u),pf(i,{pending:!0,data:D,method:u.method,action:m},m,D))},currentTarget:u}]})}}for(var Xf=0;Xf<Nu.length;Xf++){var Kf=Nu[Xf],XS=Kf.toLowerCase(),KS=Kf[0].toUpperCase()+Kf.slice(1);Dn(XS,"on"+KS)}Dn(Gh,"onAnimationEnd"),Dn(Xh,"onAnimationIteration"),Dn(Kh,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(hS,"onTransitionRun"),Dn(pS,"onTransitionStart"),Dn(yS,"onTransitionCancel"),Dn(Qh,"onTransitionEnd"),ao("onMouseEnter",["mouseout","mouseover"]),ao("onMouseLeave",["mouseout","mouseover"]),ao("onPointerEnter",["pointerout","pointerover"]),ao("onPointerLeave",["pointerout","pointerover"]),br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),br("onBeforeInput",["compositionend","keypress","textInput","paste"]),br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yi="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(" "),QS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yi));function gg(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],u=l.event;l=l.listeners;e:{var m=void 0;if(a)for(var v=l.length-1;0<=v;v--){var _=l[v],D=_.instance,V=_.currentTarget;if(_=_.listener,D!==m&&u.isPropagationStopped())break e;m=_,u.currentTarget=V;try{m(u)}catch(X){Ts(X)}u.currentTarget=null,m=D}else for(v=0;v<l.length;v++){if(_=l[v],D=_.instance,V=_.currentTarget,_=_.listener,D!==m&&u.isPropagationStopped())break e;m=_,u.currentTarget=V;try{m(u)}catch(X){Ts(X)}u.currentTarget=null,m=D}}}}function Fe(t,a){var i=a[cu];i===void 0&&(i=a[cu]=new Set);var l=t+"__bubble";i.has(l)||(vg(a,t,2,!1),i.add(l))}function Qf(t,a,i){var l=0;a&&(l|=4),vg(i,t,l,a)}var Ps="_reactListening"+Math.random().toString(36).slice(2);function Jf(t){if(!t[Ps]){t[Ps]=!0,fh.forEach(function(i){i!=="selectionchange"&&(QS.has(i)||Qf(i,!1,t),Qf(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[Ps]||(a[Ps]=!0,Qf("selectionchange",!1,a))}}function vg(t,a,i,l){switch(Vg(a)){case 2:var u=T_;break;case 8:u=k_;break;default:u=md}i=u.bind(null,a,i,t),u=void 0,!xu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(a,i,{capture:!0,passive:u}):t.addEventListener(a,i,!0):u!==void 0?t.addEventListener(a,i,{passive:u}):t.addEventListener(a,i,!1)}function ed(t,a,i,l,u){var m=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var _=l.stateNode.containerInfo;if(_===u)break;if(v===4)for(v=l.return;v!==null;){var D=v.tag;if((D===3||D===4)&&v.stateNode.containerInfo===u)return;v=v.return}for(;_!==null;){if(v=eo(_),v===null)return;if(D=v.tag,D===5||D===6||D===26||D===27){l=m=v;continue e}_=_.parentNode}}l=l.return}Th(function(){var V=m,X=vu(i),J=[];e:{var Y=Jh.get(t);if(Y!==void 0){var $=Jl,Oe=t;switch(t){case"keypress":if(Kl(i)===0)break e;case"keydown":case"keyup":$=qw;break;case"focusin":Oe="focus",$=Eu;break;case"focusout":Oe="blur",$=Eu;break;case"beforeblur":case"afterblur":$=Eu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Oh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=zw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=Gw;break;case Gh:case Xh:case Kh:$=Lw;break;case Qh:$=Kw;break;case"scroll":case"scrollend":$=Dw;break;case"wheel":$=Jw;break;case"copy":case"cut":case"paste":$=Pw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Rh;break;case"toggle":case"beforetoggle":$=tS}var Te=(a&4)!==0,at=!Te&&(t==="scroll"||t==="scrollend"),P=Te?Y!==null?Y+"Capture":null:Y;Te=[];for(var j=V,F;j!==null;){var Q=j;if(F=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||F===null||P===null||(Q=ci(j,P),Q!=null&&Te.push($i(j,Q,F))),at)break;j=j.return}0<Te.length&&(Y=new $(Y,Oe,null,i,X),J.push({event:Y,listeners:Te}))}}if((a&7)===0){e:{if(Y=t==="mouseover"||t==="pointerover",$=t==="mouseout"||t==="pointerout",Y&&i!==gu&&(Oe=i.relatedTarget||i.fromElement)&&(eo(Oe)||Oe[Jr]))break e;if(($||Y)&&(Y=X.window===X?X:(Y=X.ownerDocument)?Y.defaultView||Y.parentWindow:window,$?(Oe=i.relatedTarget||i.toElement,$=V,Oe=Oe?eo(Oe):null,Oe!==null&&(at=c(Oe),Te=Oe.tag,Oe!==at||Te!==5&&Te!==27&&Te!==6)&&(Oe=null)):($=null,Oe=V),$!==Oe)){if(Te=Oh,Q="onMouseLeave",P="onMouseEnter",j="mouse",(t==="pointerout"||t==="pointerover")&&(Te=Rh,Q="onPointerLeave",P="onPointerEnter",j="pointer"),at=$==null?Y:si($),F=Oe==null?Y:si(Oe),Y=new Te(Q,j+"leave",$,i,X),Y.target=at,Y.relatedTarget=F,Q=null,eo(X)===V&&(Te=new Te(P,j+"enter",Oe,i,X),Te.target=F,Te.relatedTarget=at,Q=Te),at=Q,$&&Oe)t:{for(Te=$,P=Oe,j=0,F=Te;F;F=jo(F))j++;for(F=0,Q=P;Q;Q=jo(Q))F++;for(;0<j-F;)Te=jo(Te),j--;for(;0<F-j;)P=jo(P),F--;for(;j--;){if(Te===P||P!==null&&Te===P.alternate)break t;Te=jo(Te),P=jo(P)}Te=null}else Te=null;$!==null&&bg(J,Y,$,Te,!1),Oe!==null&&at!==null&&bg(J,at,Oe,Te,!0)}}e:{if(Y=V?si(V):window,$=Y.nodeName&&Y.nodeName.toLowerCase(),$==="select"||$==="input"&&Y.type==="file")var ge=Uh;else if(Bh(Y))if(Ph)ge=fS;else{ge=cS;var Le=sS}else $=Y.nodeName,!$||$.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?V&&yu(V.elementType)&&(ge=Uh):ge=uS;if(ge&&(ge=ge(t,V))){Lh(J,ge,i,X);break e}Le&&Le(t,Y,V),t==="focusout"&&V&&Y.type==="number"&&V.memoizedProps.value!=null&&pu(Y,"number",Y.value)}switch(Le=V?si(V):window,t){case"focusin":(Bh(Le)||Le.contentEditable==="true")&&(uo=Le,Ru=V,gi=null);break;case"focusout":gi=Ru=uo=null;break;case"mousedown":Mu=!0;break;case"contextmenu":case"mouseup":case"dragend":Mu=!1,Wh(J,i,X);break;case"selectionchange":if(mS)break;case"keydown":case"keyup":Wh(J,i,X)}var Se;if(ku)e:{switch(t){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else co?zh(t,i)&&(Ce="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ce="onCompositionStart");Ce&&(Mh&&i.locale!=="ko"&&(co||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&co&&(Se=kh()):(Ha=X,wu="value"in Ha?Ha.value:Ha.textContent,co=!0)),Le=Hs(V,Ce),0<Le.length&&(Ce=new Ah(Ce,t,null,i,X),J.push({event:Ce,listeners:Le}),Se?Ce.data=Se:(Se=jh(i),Se!==null&&(Ce.data=Se)))),(Se=aS?rS(t,i):oS(t,i))&&(Ce=Hs(V,"onBeforeInput"),0<Ce.length&&(Le=new Ah("onBeforeInput","beforeinput",null,i,X),J.push({event:Le,listeners:Ce}),Le.data=Se)),GS(J,t,V,i,X)}gg(J,a)})}function $i(t,a,i){return{instance:t,listener:a,currentTarget:i}}function Hs(t,a){for(var i=a+"Capture",l=[];t!==null;){var u=t,m=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||m===null||(u=ci(t,i),u!=null&&l.unshift($i(t,u,m)),u=ci(t,a),u!=null&&l.push($i(t,u,m))),t.tag===3)return l;t=t.return}return[]}function jo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function bg(t,a,i,l,u){for(var m=a._reactName,v=[];i!==null&&i!==l;){var _=i,D=_.alternate,V=_.stateNode;if(_=_.tag,D!==null&&D===l)break;_!==5&&_!==26&&_!==27||V===null||(D=V,u?(V=ci(i,m),V!=null&&v.unshift($i(i,V,D))):u||(V=ci(i,m),V!=null&&v.push($i(i,V,D)))),i=i.return}v.length!==0&&t.push({event:a,listeners:v})}var JS=/\r\n?/g,e_=/\u0000|\uFFFD/g;function xg(t){return(typeof t=="string"?t:""+t).replace(JS,`
`).replace(e_,"")}function wg(t,a){return a=xg(a),xg(t)===a}function Fs(){}function nt(t,a,i,l,u,m){switch(i){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||io(t,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&io(t,""+l);break;case"className":ql(t,"class",l);break;case"tabIndex":ql(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ql(t,i,l);break;case"style":_h(t,l,m);break;case"data":if(a!=="object"){ql(t,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Gl(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"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 m=="function"&&(i==="formAction"?(a!=="input"&&nt(t,a,"name",u.name,u,null),nt(t,a,"formEncType",u.formEncType,u,null),nt(t,a,"formMethod",u.formMethod,u,null),nt(t,a,"formTarget",u.formTarget,u,null)):(nt(t,a,"encType",u.encType,u,null),nt(t,a,"method",u.method,u,null),nt(t,a,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Gl(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=Fs);break;case"onScroll":l!=null&&Fe("scroll",t);break;case"onScrollEnd":l!=null&&Fe("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=Gl(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":Fe("beforetoggle",t),Fe("toggle",t),$l(t,"popover",l);break;case"xlinkActuate":ma(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ma(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ma(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ma(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ma(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ma(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ma(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ma(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ma(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":$l(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Rw.get(i)||i,$l(t,i,l))}}function td(t,a,i,l,u,m){switch(i){case"style":_h(t,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof l=="string"?io(t,l):(typeof l=="number"||typeof l=="bigint")&&io(t,""+l);break;case"onScroll":l!=null&&Fe("scroll",t);break;case"onScrollEnd":l!=null&&Fe("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Fs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),a=i.slice(2,u?i.length-7:void 0),m=t[en]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(a,m,u),typeof l=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,l,u);break e}i in t?t[i]=l:l===!0?t.setAttribute(i,""):$l(t,i,l)}}}function $t(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",t),Fe("load",t);var l=!1,u=!1,m;for(m in i)if(i.hasOwnProperty(m)){var v=i[m];if(v!=null)switch(m){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:nt(t,a,m,v,i,null)}}u&&nt(t,a,"srcSet",i.srcSet,i,null),l&&nt(t,a,"src",i.src,i,null);return;case"input":Fe("invalid",t);var _=m=v=u=null,D=null,V=null;for(l in i)if(i.hasOwnProperty(l)){var X=i[l];if(X!=null)switch(l){case"name":u=X;break;case"type":v=X;break;case"checked":D=X;break;case"defaultChecked":V=X;break;case"value":m=X;break;case"defaultValue":_=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(o(137,a));break;default:nt(t,a,l,X,i,null)}}bh(t,m,_,D,V,v,u,!1),Wl(t);return;case"select":Fe("invalid",t),l=v=m=null;for(u in i)if(i.hasOwnProperty(u)&&(_=i[u],_!=null))switch(u){case"value":m=_;break;case"defaultValue":v=_;break;case"multiple":l=_;default:nt(t,a,u,_,i,null)}a=m,i=v,t.multiple=!!l,a!=null?oo(t,!!l,a,!1):i!=null&&oo(t,!!l,i,!0);return;case"textarea":Fe("invalid",t),m=u=l=null;for(v in i)if(i.hasOwnProperty(v)&&(_=i[v],_!=null))switch(v){case"value":l=_;break;case"defaultValue":u=_;break;case"children":m=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(91));break;default:nt(t,a,v,_,i,null)}wh(t,l,u,m),Wl(t);return;case"option":for(D in i)if(i.hasOwnProperty(D)&&(l=i[D],l!=null))switch(D){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:nt(t,a,D,l,i,null)}return;case"dialog":Fe("beforetoggle",t),Fe("toggle",t),Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":Fe("load",t);break;case"video":case"audio":for(l=0;l<Yi.length;l++)Fe(Yi[l],t);break;case"image":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"embed":case"source":case"link":Fe("error",t),Fe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in i)if(i.hasOwnProperty(V)&&(l=i[V],l!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:nt(t,a,V,l,i,null)}return;default:if(yu(a)){for(X in i)i.hasOwnProperty(X)&&(l=i[X],l!==void 0&&td(t,a,X,l,i,void 0));return}}for(_ in i)i.hasOwnProperty(_)&&(l=i[_],l!=null&&nt(t,a,_,l,i,null))}function t_(t,a,i,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,m=null,v=null,_=null,D=null,V=null,X=null;for($ in i){var J=i[$];if(i.hasOwnProperty($)&&J!=null)switch($){case"checked":break;case"value":break;case"defaultValue":D=J;default:l.hasOwnProperty($)||nt(t,a,$,null,l,J)}}for(var Y in l){var $=l[Y];if(J=i[Y],l.hasOwnProperty(Y)&&($!=null||J!=null))switch(Y){case"type":m=$;break;case"name":u=$;break;case"checked":V=$;break;case"defaultChecked":X=$;break;case"value":v=$;break;case"defaultValue":_=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(o(137,a));break;default:$!==J&&nt(t,a,Y,$,l,J)}}hu(t,v,_,D,V,X,m,u);return;case"select":$=v=_=Y=null;for(m in i)if(D=i[m],i.hasOwnProperty(m)&&D!=null)switch(m){case"value":break;case"multiple":$=D;default:l.hasOwnProperty(m)||nt(t,a,m,null,l,D)}for(u in l)if(m=l[u],D=i[u],l.hasOwnProperty(u)&&(m!=null||D!=null))switch(u){case"value":Y=m;break;case"defaultValue":_=m;break;case"multiple":v=m;default:m!==D&&nt(t,a,u,m,l,D)}a=_,i=v,l=$,Y!=null?oo(t,!!i,Y,!1):!!l!=!!i&&(a!=null?oo(t,!!i,a,!0):oo(t,!!i,i?[]:"",!1));return;case"textarea":$=Y=null;for(_ in i)if(u=i[_],i.hasOwnProperty(_)&&u!=null&&!l.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:nt(t,a,_,null,l,u)}for(v in l)if(u=l[v],m=i[v],l.hasOwnProperty(v)&&(u!=null||m!=null))switch(v){case"value":Y=u;break;case"defaultValue":$=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==m&&nt(t,a,v,u,l,m)}xh(t,Y,$);return;case"option":for(var Oe in i)if(Y=i[Oe],i.hasOwnProperty(Oe)&&Y!=null&&!l.hasOwnProperty(Oe))switch(Oe){case"selected":t.selected=!1;break;default:nt(t,a,Oe,null,l,Y)}for(D in l)if(Y=l[D],$=i[D],l.hasOwnProperty(D)&&Y!==$&&(Y!=null||$!=null))switch(D){case"selected":t.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:nt(t,a,D,Y,l,$)}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 Te in i)Y=i[Te],i.hasOwnProperty(Te)&&Y!=null&&!l.hasOwnProperty(Te)&&nt(t,a,Te,null,l,Y);for(V in l)if(Y=l[V],$=i[V],l.hasOwnProperty(V)&&Y!==$&&(Y!=null||$!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o(137,a));break;default:nt(t,a,V,Y,l,$)}return;default:if(yu(a)){for(var at in i)Y=i[at],i.hasOwnProperty(at)&&Y!==void 0&&!l.hasOwnProperty(at)&&td(t,a,at,void 0,l,Y);for(X in l)Y=l[X],$=i[X],!l.hasOwnProperty(X)||Y===$||Y===void 0&&$===void 0||td(t,a,X,Y,l,$);return}}for(var P in i)Y=i[P],i.hasOwnProperty(P)&&Y!=null&&!l.hasOwnProperty(P)&&nt(t,a,P,null,l,Y);for(J in l)Y=l[J],$=i[J],!l.hasOwnProperty(J)||Y===$||Y==null&&$==null||nt(t,a,J,Y,l,$)}var nd=null,ad=null;function Vs(t){return t.nodeType===9?t:t.ownerDocument}function Sg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _g(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function rd(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var od=null;function n_(){var t=window.event;return t&&t.type==="popstate"?t===od?!1:(od=t,!0):(od=null,!1)}var Eg=typeof setTimeout=="function"?setTimeout:void 0,a_=typeof clearTimeout=="function"?clearTimeout:void 0,Tg=typeof Promise=="function"?Promise:void 0,r_=typeof queueMicrotask=="function"?queueMicrotask:typeof Tg<"u"?function(t){return Tg.resolve(null).then(t).catch(o_)}:Eg;function o_(t){setTimeout(function(){throw t})}function nr(t){return t==="head"}function kg(t,a){var i=a,l=0,u=0;do{var m=i.nextSibling;if(t.removeChild(i),m&&m.nodeType===8)if(i=m.data,i==="/$"){if(0<l&&8>l){i=l;var v=t.ownerDocument;if(i&1&&qi(v.documentElement),i&2&&qi(v.body),i&4)for(i=v.head,qi(i),v=i.firstChild;v;){var _=v.nextSibling,D=v.nodeName;v[li]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&v.rel.toLowerCase()==="stylesheet"||i.removeChild(v),v=_}}if(u===0){t.removeChild(m),el(a);return}u--}else i==="$"||i==="$?"||i==="$!"?u++:l=i.charCodeAt(0)-48;else l=0;i=m}while(i);el(a)}function id(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":id(i),uu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function i_(t,a,i,l){for(;t.nodeType===1;){var u=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[li])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var m=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=zn(t.nextSibling),t===null)break}return null}function l_(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=zn(t.nextSibling),t===null))return null;return t}function ld(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function s_(t,a){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")a();else{var l=function(){a(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function zn(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return t}var sd=null;function Cg(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(a===0)return t;a--}else i==="/$"&&a++}t=t.previousSibling}return null}function Og(t,a,i){switch(a=Vs(i),t){case"html":if(t=a.documentElement,!t)throw Error(o(452));return t;case"head":if(t=a.head,!t)throw Error(o(453));return t;case"body":if(t=a.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function qi(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);uu(t)}var Rn=new Map,Ag=new Set;function Zs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ca=I.d;I.d={f:c_,r:u_,D:f_,C:d_,L:m_,m:h_,X:y_,S:p_,M:g_};function c_(){var t=Ca.f(),a=zs();return t||a}function u_(t){var a=to(t);a!==null&&a.tag===5&&a.type==="form"?Gp(a):Ca.r(t)}var Bo=typeof document>"u"?null:document;function Rg(t,a,i){var l=Bo;if(l&&typeof a=="string"&&a){var u=_n(a);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),Ag.has(u)||(Ag.add(u),t={rel:t,crossOrigin:i,href:a},l.querySelector(u)===null&&(a=l.createElement("link"),$t(a,"link",t),Bt(a),l.head.appendChild(a)))}}function f_(t){Ca.D(t),Rg("dns-prefetch",t,null)}function d_(t,a){Ca.C(t,a),Rg("preconnect",t,a)}function m_(t,a,i){Ca.L(t,a,i);var l=Bo;if(l&&t&&a){var u='link[rel="preload"][as="'+_n(a)+'"]';a==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+_n(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+_n(i.imageSizes)+'"]')):u+='[href="'+_n(t)+'"]';var m=u;switch(a){case"style":m=Lo(t);break;case"script":m=Uo(t)}Rn.has(m)||(t=y({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),Rn.set(m,t),l.querySelector(u)!==null||a==="style"&&l.querySelector(Wi(m))||a==="script"&&l.querySelector(Ii(m))||(a=l.createElement("link"),$t(a,"link",t),Bt(a),l.head.appendChild(a)))}}function h_(t,a){Ca.m(t,a);var i=Bo;if(i&&t){var l=a&&typeof a.as=="string"?a.as:"script",u='link[rel="modulepreload"][as="'+_n(l)+'"][href="'+_n(t)+'"]',m=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Uo(t)}if(!Rn.has(m)&&(t=y({rel:"modulepreload",href:t},a),Rn.set(m,t),i.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ii(m)))return}l=i.createElement("link"),$t(l,"link",t),Bt(l),i.head.appendChild(l)}}}function p_(t,a,i){Ca.S(t,a,i);var l=Bo;if(l&&t){var u=no(l).hoistableStyles,m=Lo(t);a=a||"default";var v=u.get(m);if(!v){var _={loading:0,preload:null};if(v=l.querySelector(Wi(m)))_.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":a},i),(i=Rn.get(m))&&cd(t,i);var D=v=l.createElement("link");Bt(D),$t(D,"link",t),D._p=new Promise(function(V,X){D.onload=V,D.onerror=X}),D.addEventListener("load",function(){_.loading|=1}),D.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Ys(v,a,l)}v={type:"stylesheet",instance:v,count:1,state:_},u.set(m,v)}}}function y_(t,a){Ca.X(t,a);var i=Bo;if(i&&t){var l=no(i).hoistableScripts,u=Uo(t),m=l.get(u);m||(m=i.querySelector(Ii(u)),m||(t=y({src:t,async:!0},a),(a=Rn.get(u))&&ud(t,a),m=i.createElement("script"),Bt(m),$t(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(u,m))}}function g_(t,a){Ca.M(t,a);var i=Bo;if(i&&t){var l=no(i).hoistableScripts,u=Uo(t),m=l.get(u);m||(m=i.querySelector(Ii(u)),m||(t=y({src:t,async:!0,type:"module"},a),(a=Rn.get(u))&&ud(t,a),m=i.createElement("script"),Bt(m),$t(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(u,m))}}function Mg(t,a,i,l){var u=(u=we.current)?Zs(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Lo(i.href),i=no(u).hoistableStyles,l=i.get(a),l||(l={type:"style",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Lo(i.href);var m=no(u).hoistableStyles,v=m.get(t);if(v||(u=u.ownerDocument||u,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,v),(m=u.querySelector(Wi(t)))&&!m._p&&(v.instance=m,v.state.loading=5),Rn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Rn.set(t,i),m||v_(u,t,i,v.state))),a&&l===null)throw Error(o(528,""));return v}if(a&&l!==null)throw Error(o(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Uo(i),i=no(u).hoistableScripts,l=i.get(a),l||(l={type:"script",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Lo(t){return'href="'+_n(t)+'"'}function Wi(t){return'link[rel="stylesheet"]['+t+"]"}function Dg(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function v_(t,a,i,l){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=t.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),$t(a,"link",i),Bt(a),t.head.appendChild(a))}function Uo(t){return'[src="'+_n(t)+'"]'}function Ii(t){return"script[async]"+t}function Ng(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var l=t.querySelector('style[data-href~="'+_n(i.href)+'"]');if(l)return a.instance=l,Bt(l),l;var u=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Bt(l),$t(l,"style",u),Ys(l,i.precedence,t),a.instance=l;case"stylesheet":u=Lo(i.href);var m=t.querySelector(Wi(u));if(m)return a.state.loading|=4,a.instance=m,Bt(m),m;l=Dg(i),(u=Rn.get(u))&&cd(l,u),m=(t.ownerDocument||t).createElement("link"),Bt(m);var v=m;return v._p=new Promise(function(_,D){v.onload=_,v.onerror=D}),$t(m,"link",l),a.state.loading|=4,Ys(m,i.precedence,t),a.instance=m;case"script":return m=Uo(i.src),(u=t.querySelector(Ii(m)))?(a.instance=u,Bt(u),u):(l=i,(u=Rn.get(m))&&(l=y({},i),ud(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),Bt(u),$t(u,"link",l),t.head.appendChild(u),a.instance=u);case"void":return null;default:throw Error(o(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,Ys(l,i.precedence,t));return a.instance}function Ys(t,a,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,m=u,v=0;v<l.length;v++){var _=l[v];if(_.dataset.precedence===a)m=_;else if(m!==u)break}m?m.parentNode.insertBefore(t,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function cd(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function ud(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var $s=null;function zg(t,a,i){if($s===null){var l=new Map,u=$s=new Map;u.set(i,l)}else u=$s,l=u.get(i),l||(l=new Map,u.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),u=0;u<i.length;u++){var m=i[u];if(!(m[li]||m[Et]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(a)||"";v=t+v;var _=l.get(v);_?_.push(m):l.set(v,[m])}}return l}function jg(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function b_(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Bg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Gi=null;function x_(){}function w_(t,a,i){if(Gi===null)throw Error(o(475));var l=Gi;if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Lo(i.href),m=t.querySelector(Wi(u));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=qs.bind(l),t.then(l,l)),a.state.loading|=4,a.instance=m,Bt(m);return}m=t.ownerDocument||t,i=Dg(i),(u=Rn.get(u))&&cd(i,u),m=m.createElement("link"),Bt(m);var v=m;v._p=new Promise(function(_,D){v.onload=_,v.onerror=D}),$t(m,"link",i),a.instance=m}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(l.count++,a=qs.bind(l),t.addEventListener("load",a),t.addEventListener("error",a))}}function S_(){if(Gi===null)throw Error(o(475));var t=Gi;return t.stylesheets&&t.count===0&&fd(t,t.stylesheets),0<t.count?function(a){var i=setTimeout(function(){if(t.stylesheets&&fd(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(i)}}:null}function qs(){if(this.count--,this.count===0){if(this.stylesheets)fd(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ws=null;function fd(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ws=new Map,a.forEach(__,t),Ws=null,qs.call(t))}function __(t,a){if(!(a.state.loading&4)){var i=Ws.get(t);if(i)var l=i.get(null);else{i=new Map,Ws.set(t,i);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<u.length;m++){var v=u[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),l=v)}l&&i.set(null,l)}u=a.instance,v=u.getAttribute("data-precedence"),m=i.get(v)||l,m===l&&i.set(null,u),i.set(v,u),this.count++,l=qs.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),m?m.parentNode.insertBefore(u,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),a.state.loading|=4}}var Xi={$$typeof:A,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function E_(t,a,i,l,u,m,v,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xn(0),this.hiddenUpdates=xn(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Lg(t,a,i,l,u,m,v,_,D,V,X,J){return t=new E_(t,a,i,v,_,D,V,J),a=1,m===!0&&(a|=24),m=cn(3,null,null,a),t.current=m,m.stateNode=t,a=$u(),a.refCount++,t.pooledCache=a,a.refCount++,m.memoizedState={element:l,isDehydrated:i,cache:a},Gu(m),t}function Ug(t){return t?(t=po,t):po}function Pg(t,a,i,l,u,m){u=Ug(u),l.context===null?l.context=u:l.pendingContext=u,l=Za(a),l.payload={element:i},m=m===void 0?null:m,m!==null&&(l.callback=m),i=Ya(t,l,a),i!==null&&(hn(i,t,a),ki(i,t,a))}function Hg(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function dd(t,a){Hg(t,a),(t=t.alternate)&&Hg(t,a)}function Fg(t){if(t.tag===13){var a=ho(t,67108864);a!==null&&hn(a,t,67108864),dd(t,67108864)}}var Is=!0;function T_(t,a,i,l){var u=B.T;B.T=null;var m=I.p;try{I.p=2,md(t,a,i,l)}finally{I.p=m,B.T=u}}function k_(t,a,i,l){var u=B.T;B.T=null;var m=I.p;try{I.p=8,md(t,a,i,l)}finally{I.p=m,B.T=u}}function md(t,a,i,l){if(Is){var u=hd(l);if(u===null)ed(t,a,l,Gs,i),Zg(t,l);else if(O_(u,t,a,i,l))l.stopPropagation();else if(Zg(t,l),a&4&&-1<C_.indexOf(t)){for(;u!==null;){var m=to(u);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=Mn(m.pendingLanes);if(v!==0){var _=m;for(_.pendingLanes|=2,_.entangledLanes|=2;v;){var D=1<<31-et(v);_.entanglements[1]|=D,v&=~D}Qn(m),(Xe&6)===0&&(Ds=jt()+500,Zi(0))}}break;case 13:_=ho(m,2),_!==null&&hn(_,m,2),zs(),dd(m,2)}if(m=hd(l),m===null&&ed(t,a,l,Gs,i),m===u)break;u=m}u!==null&&l.stopPropagation()}else ed(t,a,l,null,i)}}function hd(t){return t=vu(t),pd(t)}var Gs=null;function pd(t){if(Gs=null,t=eo(t),t!==null){var a=c(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=f(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return Gs=t,null}function Vg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Zl()){case vr:return 2;case z:return 8;case Z:case G:return 32;case de:return 268435456;default:return 32}default:return 32}}var yd=!1,ar=null,rr=null,or=null,Ki=new Map,Qi=new Map,ir=[],C_="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 Zg(t,a){switch(t){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":rr=null;break;case"mouseover":case"mouseout":or=null;break;case"pointerover":case"pointerout":Ki.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qi.delete(a.pointerId)}}function Ji(t,a,i,l,u,m){return t===null||t.nativeEvent!==m?(t={blockedOn:a,domEventName:i,eventSystemFlags:l,nativeEvent:m,targetContainers:[u]},a!==null&&(a=to(a),a!==null&&Fg(a)),t):(t.eventSystemFlags|=l,a=t.targetContainers,u!==null&&a.indexOf(u)===-1&&a.push(u),t)}function O_(t,a,i,l,u){switch(a){case"focusin":return ar=Ji(ar,t,a,i,l,u),!0;case"dragenter":return rr=Ji(rr,t,a,i,l,u),!0;case"mouseover":return or=Ji(or,t,a,i,l,u),!0;case"pointerover":var m=u.pointerId;return Ki.set(m,Ji(Ki.get(m)||null,t,a,i,l,u)),!0;case"gotpointercapture":return m=u.pointerId,Qi.set(m,Ji(Qi.get(m)||null,t,a,i,l,u)),!0}return!1}function Yg(t){var a=eo(t.target);if(a!==null){var i=c(a);if(i!==null){if(a=i.tag,a===13){if(a=f(i),a!==null){t.blockedOn=a,su(t.priority,function(){if(i.tag===13){var l=mn();l=qe(l);var u=ho(i,l);u!==null&&hn(u,i,l),dd(i,l)}});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Xs(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=hd(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);gu=l,i.target.dispatchEvent(l),gu=null}else return a=to(i),a!==null&&Fg(a),t.blockedOn=i,!1;a.shift()}return!0}function $g(t,a,i){Xs(t)&&i.delete(a)}function A_(){yd=!1,ar!==null&&Xs(ar)&&(ar=null),rr!==null&&Xs(rr)&&(rr=null),or!==null&&Xs(or)&&(or=null),Ki.forEach($g),Qi.forEach($g)}function Ks(t,a){t.blockedOn===a&&(t.blockedOn=null,yd||(yd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,A_)))}var Qs=null;function qg(t){Qs!==t&&(Qs=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Qs===t&&(Qs=null);for(var a=0;a<t.length;a+=3){var i=t[a],l=t[a+1],u=t[a+2];if(typeof l!="function"){if(pd(l||i)===null)continue;break}var m=to(i);m!==null&&(t.splice(a,3),a-=3,pf(m,{pending:!0,data:u,method:i.method,action:l},l,u))}}))}function el(t){function a(D){return Ks(D,t)}ar!==null&&Ks(ar,t),rr!==null&&Ks(rr,t),or!==null&&Ks(or,t),Ki.forEach(a),Qi.forEach(a);for(var i=0;i<ir.length;i++){var l=ir[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ir.length&&(i=ir[0],i.blockedOn===null);)Yg(i),i.blockedOn===null&&ir.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var u=i[l],m=i[l+1],v=u[en]||null;if(typeof m=="function")v||qg(i);else if(v){var _=null;if(m&&m.hasAttribute("formAction")){if(u=m,v=m[en]||null)_=v.formAction;else if(pd(u)!==null)continue}else _=v.action;typeof _=="function"?i[l+1]=_:(i.splice(l,3),l-=3),qg(i)}}}function gd(t){this._internalRoot=t}Js.prototype.render=gd.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(o(409));var i=a.current,l=mn();Pg(i,l,t,a,null,null)},Js.prototype.unmount=gd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Pg(t.current,2,null,t,null,null),zs(),a[Jr]=null}};function Js(t){this._internalRoot=t}Js.prototype.unstable_scheduleHydration=function(t){if(t){var a=Yl();t={blockedOn:null,target:t,priority:a};for(var i=0;i<ir.length&&a!==0&&a<ir[i].priority;i++);ir.splice(i,0,t),i===0&&Yg(t)}};var Wg=n.version;if(Wg!=="19.1.0")throw Error(o(527,Wg,"19.1.0"));I.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(a),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var R_={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ec=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ec.isDisabled&&ec.supportsFiber)try{xe=ec.inject(R_),Ae=ec}catch{}}return rl.createRoot=function(t,a){if(!s(t))throw Error(o(299));var i=!1,l="",u=cy,m=uy,v=fy,_=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(_=a.unstable_transitionCallbacks)),a=Lg(t,1,!1,null,null,i,l,u,m,v,_,null),t[Jr]=a.current,Jf(t),new gd(a)},rl.hydrateRoot=function(t,a,i){if(!s(t))throw Error(o(299));var l=!1,u="",m=cy,v=uy,_=fy,D=null,V=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(_=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(D=i.unstable_transitionCallbacks),i.formState!==void 0&&(V=i.formState)),a=Lg(t,1,!0,a,i??null,l,u,m,v,_,D,V),a.context=Ug(null),i=a.current,l=mn(),l=qe(l),u=Za(l),u.callback=null,Ya(i,u,l),i=l,a.current.lanes=i,Vt(a,i),Qn(a),t[Jr]=a.current,Jf(t),new Js(a)},rl.version="19.1.0",rl}var cv;function m2(){if(cv)return Sd.exports;cv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Sd.exports=d2(),Sd.exports}var h2=m2();function nc({hotelLocationName:e,slug:n}){const r=Pc(),o={"mactan-cebu":"solea-mactan-cebu","coast-bohol":"solea-coast-bohol","reef-bohol":"solea-reef-bohol","azure-bohol":"solea-azure-bohol"};return w.jsxs("div",{className:"relative group cursor-pointer",onClick:()=>{r(`/solea/${n}`)},children:[w.jsx("h5",{className:"text-white w-full text-center z-10 py-5 text-2xl font-bold absolute bottom-0",children:e}),w.jsx("img",{className:"rounded-md w-full h-full inset-y-0",src:`/images/${o[n]}.jpg`}),w.jsx("div",{className:"block opacity-15 group-hover:opacity-30 transition delay-200 bg-black absolute w-full h-full inset-y-0 rounded-md"})]})}function p2(){return w.jsx(w.Fragment,{children:w.jsxs("div",{className:"mx-4",children:[w.jsx("div",{className:"flex justify-center py-15",children:w.jsx("h2",{className:"text-primary uppercase text-5xl font-semibold",children:"Book with Solea"})}),w.jsx("div",{className:"flex justify-center",children:w.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[w.jsx(nc,{hotelLocationName:"Solea Mactan - Cebu",slug:"mactan-cebu"}),w.jsx(nc,{hotelLocationName:"Solea Coast - Bohol",slug:"coast-bohol"}),w.jsx(nc,{hotelLocationName:"Solea Reef - Bohol",slug:"reef-bohol"}),w.jsx(nc,{hotelLocationName:"Solea Azure - Bohol",slug:"azure-bohol"})]})})]})})}function y2(){return w.jsx(w.Fragment,{children:w.jsx("div",{children:w.jsx(p2,{})})})}function o0(e){var n,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(r=o0(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Na(){for(var e,n,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(n=o0(e))&&(o&&(o+=" "),o+=n);return o}function g2(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}g2(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
`);var Ml=e=>typeof e=="number"&&!isNaN(e),Zr=e=>typeof e=="string",ja=e=>typeof e=="function",v2=e=>Zr(e)||Ml(e),$d=e=>Zr(e)||ja(e)?e:null,b2=(e,n)=>e===!1||Ml(e)&&e>0?e:n,qd=e=>b.isValidElement(e)||Zr(e)||ja(e)||Ml(e);function x2(e,n,r=300){let{scrollHeight:o,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${r}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(n,r)})})}function w2({enter:e,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:s=300}){return function({children:c,position:f,preventExitTransition:d,done:p,nodeRef:h,isIn:y,playToast:g}){let x=r?`${e}--${f}`:e,E=r?`${n}--${f}`:n,k=b.useRef(0);return b.useLayoutEffect(()=>{let S=h.current,T=x.split(" "),O=C=>{C.target===h.current&&(g(),S.removeEventListener("animationend",O),S.removeEventListener("animationcancel",O),k.current===0&&C.type!=="animationcancel"&&S.classList.remove(...T))};S.classList.add(...T),S.addEventListener("animationend",O),S.addEventListener("animationcancel",O)},[]),b.useEffect(()=>{let S=h.current,T=()=>{S.removeEventListener("animationend",T),o?x2(S,p,s):p()};y||(d?T():(k.current=1,S.className+=` ${E}`,S.addEventListener("animationend",T)))},[y]),W.createElement(W.Fragment,null,c)}}function uv(e,n){return{content:i0(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:n}}function i0(e,n,r=!1){return b.isValidElement(e)&&!Zr(e.type)?b.cloneElement(e,{closeToast:n.closeToast,toastProps:n,data:n.data,isPaused:r}):ja(e)?e({closeToast:n.closeToast,toastProps:n,data:n.data,isPaused:r}):e}function S2({closeToast:e,theme:n,ariaLabel:r="close"}){return W.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:o=>{o.stopPropagation(),e(!0)},"aria-label":r},W.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},W.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function _2({delay:e,isRunning:n,closeToast:r,type:o="default",hide:s,className:c,controlledProgress:f,progress:d,rtl:p,isIn:h,theme:y}){let g=s||f&&d===0,x={animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};f&&(x.transform=`scaleX(${d})`);let E=Na("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":p}),k=ja(c)?c({rtl:p,type:o,defaultClassName:E}):Na(E,c),S={[f&&d>=1?"onTransitionEnd":"onAnimationEnd"]:f&&d<1?null:()=>{h&&r()}};return W.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},W.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${o}`}),W.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:k,style:x,...S}))}var E2=1,l0=()=>`${E2++}`;function T2(e,n,r){let o=1,s=0,c=[],f=[],d=n,p=new Map,h=new Set,y=C=>(h.add(C),()=>h.delete(C)),g=()=>{f=Array.from(p.values()),h.forEach(C=>C())},x=({containerId:C,toastId:A,updateId:N})=>{let M=C?C!==e:e!==1,q=p.has(A)&&N==null;return M||q},E=(C,A)=>{p.forEach(N=>{var M;(A==null||A===N.props.toastId)&&((M=N.toggle)==null||M.call(N,C))})},k=C=>{var A,N;(N=(A=C.props)==null?void 0:A.onClose)==null||N.call(A,C.removalReason),C.isActive=!1},S=C=>{if(C==null)p.forEach(k);else{let A=p.get(C);A&&k(A)}g()},T=()=>{s-=c.length,c=[]},O=C=>{var A,N;let{toastId:M,updateId:q}=C.props,L=q==null;C.staleId&&p.delete(C.staleId),C.isActive=!0,p.set(M,C),g(),r(uv(C,L?"added":"updated")),L&&((N=(A=C.props).onOpen)==null||N.call(A))};return{id:e,props:d,observe:y,toggle:E,removeToast:S,toasts:p,clearQueue:T,buildToast:(C,A)=>{if(x(A))return;let{toastId:N,updateId:M,data:q,staleId:L,delay:U}=A,ee=M==null;ee&&s++;let ie={...d,style:d.toastStyle,key:o++,...Object.fromEntries(Object.entries(A).filter(([te,ce])=>ce!=null)),toastId:N,updateId:M,data:q,isIn:!1,className:$d(A.className||d.toastClassName),progressClassName:$d(A.progressClassName||d.progressClassName),autoClose:A.isLoading?!1:b2(A.autoClose,d.autoClose),closeToast(te){p.get(N).removalReason=te,S(N)},deleteToast(){let te=p.get(N);if(te!=null){if(r(uv(te,"removed")),p.delete(N),s--,s<0&&(s=0),c.length>0){O(c.shift());return}g()}}};ie.closeButton=d.closeButton,A.closeButton===!1||qd(A.closeButton)?ie.closeButton=A.closeButton:A.closeButton===!0&&(ie.closeButton=qd(d.closeButton)?d.closeButton:!0);let se={content:C,props:ie,staleId:L};d.limit&&d.limit>0&&s>d.limit&&ee?c.push(se):Ml(U)?setTimeout(()=>{O(se)},U):O(se)},setProps(C){d=C},setToggle:(C,A)=>{let N=p.get(C);N&&(N.toggle=A)},isToastActive:C=>{var A;return(A=p.get(C))==null?void 0:A.isActive},getSnapshot:()=>f}}var Jt=new Map,xl=[],Wd=new Set,k2=e=>Wd.forEach(n=>n(e)),s0=()=>Jt.size>0;function C2(){xl.forEach(e=>u0(e.content,e.options)),xl=[]}var O2=(e,{containerId:n})=>{var r;return(r=Jt.get(n||1))==null?void 0:r.toasts.get(e)};function c0(e,n){var r;if(n)return!!((r=Jt.get(n))!=null&&r.isToastActive(e));let o=!1;return Jt.forEach(s=>{s.isToastActive(e)&&(o=!0)}),o}function A2(e){if(!s0()){xl=xl.filter(n=>e!=null&&n.options.toastId!==e);return}if(e==null||v2(e))Jt.forEach(n=>{n.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let n=Jt.get(e.containerId);n?n.removeToast(e.id):Jt.forEach(r=>{r.removeToast(e.id)})}}var R2=(e={})=>{Jt.forEach(n=>{n.props.limit&&(!e.containerId||n.id===e.containerId)&&n.clearQueue()})};function u0(e,n){qd(e)&&(s0()||xl.push({content:e,options:n}),Jt.forEach(r=>{r.buildToast(e,n)}))}function M2(e){var n;(n=Jt.get(e.containerId||1))==null||n.setToggle(e.id,e.fn)}function f0(e,n){Jt.forEach(r=>{(n==null||!(n!=null&&n.containerId)||n?.containerId===r.id)&&r.toggle(e,n?.id)})}function D2(e){let n=e.containerId||1;return{subscribe(r){let o=T2(n,e,k2);Jt.set(n,o);let s=o.observe(r);return C2(),()=>{s(),Jt.delete(n)}},setProps(r){var o;(o=Jt.get(n))==null||o.setProps(r)},getSnapshot(){var r;return(r=Jt.get(n))==null?void 0:r.getSnapshot()}}}function N2(e){return Wd.add(e),()=>{Wd.delete(e)}}function z2(e){return e&&(Zr(e.toastId)||Ml(e.toastId))?e.toastId:l0()}function Dl(e,n){return u0(e,n),n.toastId}function Fc(e,n){return{...n,type:n&&n.type||e,toastId:z2(n)}}function Vc(e){return(n,r)=>Dl(n,Fc(e,r))}function rt(e,n){return Dl(e,Fc("default",n))}rt.loading=(e,n)=>Dl(e,Fc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...n}));function j2(e,{pending:n,error:r,success:o},s){let c;n&&(c=Zr(n)?rt.loading(n,s):rt.loading(n.render,{...s,...n}));let f={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(h,y,g)=>{if(y==null){rt.dismiss(c);return}let x={type:h,...f,...s,data:g},E=Zr(y)?{render:y}:y;return c?rt.update(c,{...x,...E}):rt(E.render,{...x,...E}),g},p=ja(e)?e():e;return p.then(h=>d("success",o,h)).catch(h=>d("error",r,h)),p}rt.promise=j2;rt.success=Vc("success");rt.info=Vc("info");rt.error=Vc("error");rt.warning=Vc("warning");rt.warn=rt.warning;rt.dark=(e,n)=>Dl(e,Fc("default",{theme:"dark",...n}));function B2(e){A2(e)}rt.dismiss=B2;rt.clearWaitingQueue=R2;rt.isActive=c0;rt.update=(e,n={})=>{let r=O2(e,n);if(r){let{props:o,content:s}=r,c={delay:100,...o,...n,toastId:n.toastId||e,updateId:l0()};c.toastId!==e&&(c.staleId=e);let f=c.render||s;delete c.render,Dl(f,c)}};rt.done=e=>{rt.update(e,{progress:1})};rt.onChange=N2;rt.play=e=>f0(!0,e);rt.pause=e=>f0(!1,e);function L2(e){var n;let{subscribe:r,getSnapshot:o,setProps:s}=b.useRef(D2(e)).current;s(e);let c=(n=b.useSyncExternalStore(r,o,o))==null?void 0:n.slice();function f(d){if(!c)return[];let p=new Map;return e.newestOnTop&&c.reverse(),c.forEach(h=>{let{position:y}=h.props;p.has(y)||p.set(y,[]),p.get(y).push(h)}),Array.from(p,h=>d(h[0],h[1]))}return{getToastToRender:f,isToastActive:c0,count:c?.length}}function U2(e){let[n,r]=b.useState(!1),[o,s]=b.useState(!1),c=b.useRef(null),f=b.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:d,pauseOnHover:p,closeToast:h,onClick:y,closeOnClick:g}=e;M2({id:e.toastId,containerId:e.containerId,fn:r}),b.useEffect(()=>{if(e.pauseOnFocusLoss)return x(),()=>{E()}},[e.pauseOnFocusLoss]);function x(){document.hasFocus()||O(),window.addEventListener("focus",T),window.addEventListener("blur",O)}function E(){window.removeEventListener("focus",T),window.removeEventListener("blur",O)}function k(L){if(e.draggable===!0||e.draggable===L.pointerType){C();let U=c.current;f.canCloseOnClick=!0,f.canDrag=!0,U.style.transition="none",e.draggableDirection==="x"?(f.start=L.clientX,f.removalDistance=U.offsetWidth*(e.draggablePercent/100)):(f.start=L.clientY,f.removalDistance=U.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function S(L){let{top:U,bottom:ee,left:ie,right:se}=c.current.getBoundingClientRect();L.nativeEvent.type!=="touchend"&&e.pauseOnHover&&L.clientX>=ie&&L.clientX<=se&&L.clientY>=U&&L.clientY<=ee?O():T()}function T(){r(!0)}function O(){r(!1)}function C(){f.didMove=!1,document.addEventListener("pointermove",N),document.addEventListener("pointerup",M)}function A(){document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",M)}function N(L){let U=c.current;if(f.canDrag&&U){f.didMove=!0,n&&O(),e.draggableDirection==="x"?f.delta=L.clientX-f.start:f.delta=L.clientY-f.start,f.start!==L.clientX&&(f.canCloseOnClick=!1);let ee=e.draggableDirection==="x"?`${f.delta}px, var(--y)`:`0, calc(${f.delta}px + var(--y))`;U.style.transform=`translate3d(${ee},0)`,U.style.opacity=`${1-Math.abs(f.delta/f.removalDistance)}`}}function M(){A();let L=c.current;if(f.canDrag&&f.didMove&&L){if(f.canDrag=!1,Math.abs(f.delta)>f.removalDistance){s(!0),e.closeToast(!0),e.collapseAll();return}L.style.transition="transform 0.2s, opacity 0.2s",L.style.removeProperty("transform"),L.style.removeProperty("opacity")}}let q={onPointerDown:k,onPointerUp:S};return d&&p&&(q.onMouseEnter=O,e.stacked||(q.onMouseLeave=T)),g&&(q.onClick=L=>{y&&y(L),f.canCloseOnClick&&h(!0)}),{playToast:T,pauseToast:O,isRunning:n,preventExitTransition:o,toastRef:c,eventHandlers:q}}var P2=typeof window<"u"?b.useLayoutEffect:b.useEffect,Zc=({theme:e,type:n,isLoading:r,...o})=>W.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o});function H2(e){return W.createElement(Zc,{...e},W.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function F2(e){return W.createElement(Zc,{...e},W.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function V2(e){return W.createElement(Zc,{...e},W.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function Z2(e){return W.createElement(Zc,{...e},W.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function Y2(){return W.createElement("div",{className:"Toastify__spinner"})}var Id={info:F2,warning:H2,success:V2,error:Z2,spinner:Y2},$2=e=>e in Id;function q2({theme:e,type:n,isLoading:r,icon:o}){let s=null,c={theme:e,type:n};return o===!1||(ja(o)?s=o({...c,isLoading:r}):b.isValidElement(o)?s=b.cloneElement(o,c):r?s=Id.spinner():$2(n)&&(s=Id[n](c))),s}var W2=e=>{let{isRunning:n,preventExitTransition:r,toastRef:o,eventHandlers:s,playToast:c}=U2(e),{closeButton:f,children:d,autoClose:p,onClick:h,type:y,hideProgressBar:g,closeToast:x,transition:E,position:k,className:S,style:T,progressClassName:O,updateId:C,role:A,progress:N,rtl:M,toastId:q,deleteToast:L,isIn:U,isLoading:ee,closeOnClick:ie,theme:se,ariaLabel:te}=e,ce=Na("Toastify__toast",`Toastify__toast-theme--${se}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":M},{"Toastify__toast--close-on-click":ie}),he=ja(S)?S({rtl:M,position:k,type:y,defaultClassName:ce}):Na(ce,S),pe=q2(e),B=!!N||!p,I={closeToast:x,type:y,theme:se},H=null;return f===!1||(ja(f)?H=f(I):b.isValidElement(f)?H=b.cloneElement(f,I):H=S2(I)),W.createElement(E,{isIn:U,done:L,position:k,preventExitTransition:r,nodeRef:o,playToast:c},W.createElement("div",{id:q,tabIndex:0,onClick:h,"data-in":U,className:he,...s,style:T,ref:o,...U&&{role:A,"aria-label":te}},pe!=null&&W.createElement("div",{className:Na("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ee})},pe),i0(d,e,!n),H,!e.customProgressBar&&W.createElement(_2,{...C&&!B?{key:`p-${C}`}:{},rtl:M,theme:se,delay:p,isRunning:n,isIn:U,closeToast:x,hide:g,type:y,className:O,controlledProgress:B,progress:N||0})))},I2=(e,n=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:n}),G2=w2(I2("bounce",!0)),X2={position:"top-right",transition:G2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&e.code==="KeyT"};function K2(e){let n={...X2,...e},r=e.stacked,[o,s]=b.useState(!0),c=b.useRef(null),{getToastToRender:f,isToastActive:d,count:p}=L2(n),{className:h,style:y,rtl:g,containerId:x,hotKeys:E}=n;function k(T){let O=Na("Toastify__toast-container",`Toastify__toast-container--${T}`,{"Toastify__toast-container--rtl":g});return ja(h)?h({position:T,rtl:g,defaultClassName:O}):Na(O,$d(h))}function S(){r&&(s(!0),rt.play())}return P2(()=>{var T;if(r){let O=c.current.querySelectorAll('[data-in="true"]'),C=12,A=(T=n.position)==null?void 0:T.includes("top"),N=0,M=0;Array.from(O).reverse().forEach((q,L)=>{let U=q;U.classList.add("Toastify__toast--stacked"),L>0&&(U.dataset.collapsed=`${o}`),U.dataset.pos||(U.dataset.pos=A?"top":"bot");let ee=N*(o?.2:1)+(o?0:C*L);U.style.setProperty("--y",`${A?ee:ee*-1}px`),U.style.setProperty("--g",`${C}`),U.style.setProperty("--s",`${1-(o?M:0)}`),N+=U.offsetHeight,M+=.025})}},[o,p,r]),b.useEffect(()=>{function T(O){var C;let A=c.current;E(O)&&((C=A.querySelector('[tabIndex="0"]'))==null||C.focus(),s(!1),rt.pause()),O.key==="Escape"&&(document.activeElement===A||A!=null&&A.contains(document.activeElement))&&(s(!0),rt.play())}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[E]),W.createElement("section",{ref:c,className:"Toastify",id:x,onMouseEnter:()=>{r&&(s(!1),rt.pause())},onMouseLeave:S,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":n["aria-label"]},f((T,O)=>{let C=O.length?{...y}:{...y,pointerEvents:"none"};return W.createElement("div",{tabIndex:-1,className:k(T),"data-stacked":r,style:C,key:`c-${T}`},O.map(({content:A,props:N})=>W.createElement(W2,{...N,stacked:r,collapseAll:S,isIn:d(N.toastId,N.containerId),key:`t-${N.key}`},A)))}))}const Q2="/images/solea-white.svg";function J2(){const e=Pc();return w.jsx(w.Fragment,{children:w.jsx("header",{className:"px-4 bg-primary min-h-28 py-8 w-full",children:w.jsx("div",{className:"cursor-pointer",onClick:()=>{e("/")},children:w.jsx("img",{src:Q2,className:"w-28",alt:"Solea"})})})})}function eT(){return w.jsx(w.Fragment,{children:w.jsx("footer",{className:"px-4 bg-primary py-8 w-full text-white text-md",children:w.jsxs("div",{children:["© ",new Date().getFullYear()," Solea Hotels & Resorts. All rights. reserved."]})})})}function tT(){return w.jsxs("div",{className:"flex flex-col h-full",children:[w.jsx(J2,{}),w.jsx("main",{className:"flex-1 pb-14",children:w.jsx(CE,{})}),w.jsx(eT,{}),w.jsx(K2,{})]})}const nT={},ml={};function pl(e,n){try{const o=(nT[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(n).split("GMT")[1]||"";return o in ml?ml[o]:fv(o,o.split(":"))}catch{if(e in ml)return ml[e];const r=e?.match(aT);return r?fv(e,r.slice(1)):NaN}}const aT=/([+-]\d\d):?(\d\d)?/;function fv(e,n){const r=+n[0],o=+(n[1]||0);return ml[e]=r>0?r*60+o:r*60-o}class ta extends Date{constructor(...n){super(),n.length>1&&typeof n[n.length-1]=="string"&&(this.timeZone=n.pop()),this.internal=new Date,isNaN(pl(this.timeZone,this))?this.setTime(NaN):n.length?typeof n[0]=="number"&&(n.length===1||n.length===2&&typeof n[1]!="number")?this.setTime(n[0]):typeof n[0]=="string"?this.setTime(+new Date(n[0])):n[0]instanceof Date?this.setTime(+n[0]):(this.setTime(+new Date(...n)),d0(this),Gd(this)):this.setTime(Date.now())}static tz(n,...r){return r.length?new ta(...r,n):new ta(Date.now(),n)}withTimeZone(n){return new ta(+this,n)}getTimezoneOffset(){return-pl(this.timeZone,this)}setTime(n){return Date.prototype.setTime.apply(this,arguments),Gd(this),+this}[Symbol.for("constructDateFrom")](n){return new ta(+new Date(n),this.timeZone)}}const dv=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!dv.test(e))return;const n=e.replace(dv,"$1UTC");ta.prototype[n]&&(e.startsWith("get")?ta.prototype[e]=function(){return this.internal[n]()}:(ta.prototype[e]=function(){return Date.prototype[n].apply(this.internal,arguments),rT(this),+this},ta.prototype[n]=function(){return Date.prototype[n].apply(this,arguments),Gd(this),+this}))});function Gd(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function rT(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),d0(e)}function d0(e){const n=pl(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),c=o-s,f=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();c&&f&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+c);const d=o-n;d&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+d);const p=pl(e.timeZone,e),y=-new Date(+e).getTimezoneOffset()-p,g=p!==n,x=y-d;if(g&&x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x);const E=pl(e.timeZone,e),k=p-E;k&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+k),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+k))}}class Gt extends ta{static tz(n,...r){return r.length?new Gt(...r,n):new Gt(Date.now(),n)}toISOString(){const[n,r,o]=this.tzComponents(),s=`${n}${r}:${o}`;return this.internal.toISOString().slice(0,-1)+s}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[n,r,o,s]=this.internal.toUTCString().split(" ");return`${n?.slice(0,-1)} ${o} ${r} ${s}`}toTimeString(){const n=this.internal.toUTCString().split(" ")[4],[r,o,s]=this.tzComponents();return`${n} GMT${r}${o}${s} (${oT(this.timeZone,this)})`}toLocaleString(n,r){return Date.prototype.toLocaleString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(n,r){return Date.prototype.toLocaleDateString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(n,r){return Date.prototype.toLocaleTimeString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const n=this.getTimezoneOffset(),r=n>0?"-":"+",o=String(Math.floor(Math.abs(n)/60)).padStart(2,"0"),s=String(Math.abs(n)%60).padStart(2,"0");return[r,o,s]}withTimeZone(n){return new Gt(+this,n)}[Symbol.for("constructDateFrom")](n){return new Gt(+new Date(n),this.timeZone)}}function oT(e,n){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(n).slice(12)}var Ee;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Ee||(Ee={}));var ht;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(ht||(ht={}));var Pn;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Pn||(Pn={}));var pn;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(pn||(pn={}));const m0=6048e5,iT=864e5,mv=Symbol.for("constructDateFrom");function zt(e,n){return typeof e=="function"?e(n):e&&typeof e=="object"&&mv in e?e[mv](n):e instanceof Date?new e.constructor(n):new Date(n)}function ot(e,n){return zt(n||e,e)}function h0(e,n,r){const o=ot(e,r?.in);return isNaN(n)?zt(e,NaN):(n&&o.setDate(o.getDate()+n),o)}function p0(e,n,r){const o=ot(e,r?.in);if(isNaN(n))return zt(e,NaN);if(!n)return o;const s=o.getDate(),c=zt(e,o.getTime());c.setMonth(o.getMonth()+n+1,0);const f=c.getDate();return s>=f?c:(o.setFullYear(c.getFullYear(),c.getMonth(),s),o)}let lT={};function Nl(){return lT}function Wo(e,n){const r=Nl(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=ot(e,n?.in),c=s.getDay(),f=(c<o?7:0)+c-o;return s.setDate(s.getDate()-f),s.setHours(0,0,0,0),s}function wl(e,n){return Wo(e,{...n,weekStartsOn:1})}function y0(e,n){const r=ot(e,n?.in),o=r.getFullYear(),s=zt(r,0);s.setFullYear(o+1,0,4),s.setHours(0,0,0,0);const c=wl(s),f=zt(r,0);f.setFullYear(o,0,4),f.setHours(0,0,0,0);const d=wl(f);return r.getTime()>=c.getTime()?o+1:r.getTime()>=d.getTime()?o:o-1}function hv(e){const n=ot(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+e-+r}function Jo(e,...n){const r=zt.bind(null,n.find(o=>typeof o=="object"));return n.map(r)}function Sl(e,n){const r=ot(e,n?.in);return r.setHours(0,0,0,0),r}function Em(e,n,r){const[o,s]=Jo(r?.in,e,n),c=Sl(o),f=Sl(s),d=+c-hv(c),p=+f-hv(f);return Math.round((d-p)/iT)}function sT(e,n){const r=y0(e,n),o=zt(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),wl(o)}function cT(e,n,r){return h0(e,n*7,r)}function uT(e,n,r){return p0(e,n*12,r)}function fT(e,n){let r,o=n?.in;return e.forEach(s=>{!o&&typeof s=="object"&&(o=zt.bind(null,s));const c=ot(s,o);(!r||r<c||isNaN(+c))&&(r=c)}),zt(o,r||NaN)}function dT(e,n){let r,o=n?.in;return e.forEach(s=>{!o&&typeof s=="object"&&(o=zt.bind(null,s));const c=ot(s,o);(!r||r>c||isNaN(+c))&&(r=c)}),zt(o,r||NaN)}function mT(e,n,r){const[o,s]=Jo(r?.in,e,n);return+Sl(o)==+Sl(s)}function g0(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function hT(e){return!(!g0(e)&&typeof e!="number"||isNaN(+ot(e)))}function pT(e,n,r){const[o,s]=Jo(r?.in,e,n),c=o.getFullYear()-s.getFullYear(),f=o.getMonth()-s.getMonth();return c*12+f}function yT(e,n){const r=ot(e,n?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(23,59,59,999),r}function gT(e,n){const[r,o]=Jo(e,n.start,n.end);return{start:r,end:o}}function vT(e,n){const{start:r,end:o}=gT(n?.in,e);let s=+r>+o;const c=s?+r:+o,f=s?o:r;f.setHours(0,0,0,0),f.setDate(1);let d=1;const p=[];for(;+f<=c;)p.push(zt(r,f)),f.setMonth(f.getMonth()+d);return s?p.reverse():p}function bT(e,n){const r=ot(e,n?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function xT(e,n){const r=ot(e,n?.in),o=r.getFullYear();return r.setFullYear(o+1,0,0),r.setHours(23,59,59,999),r}function v0(e,n){const r=ot(e,n?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function b0(e,n){const r=Nl(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=ot(e,n?.in),c=s.getDay(),f=(c<o?-7:0)+6-(c-o);return s.setDate(s.getDate()+f),s.setHours(23,59,59,999),s}function wT(e,n){return b0(e,{...n,weekStartsOn:1})}const ST={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_T=(e,n,r)=>{let o;const s=ST[e];return typeof s=="string"?o=s:n===1?o=s.one:o=s.other.replace("{{count}}",n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function kd(e){return(n={})=>{const r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const ET={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},TT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},CT={date:kd({formats:ET,defaultWidth:"full"}),time:kd({formats:TT,defaultWidth:"full"}),dateTime:kd({formats:kT,defaultWidth:"full"})},OT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},AT=(e,n,r,o)=>OT[e];function ol(e){return(n,r)=>{const o=r?.context?String(r.context):"standalone";let s;if(o==="formatting"&&e.formattingValues){const f=e.defaultFormattingWidth||e.defaultWidth,d=r?.width?String(r.width):f;s=e.formattingValues[d]||e.formattingValues[f]}else{const f=e.defaultWidth,d=r?.width?String(r.width):e.defaultWidth;s=e.values[d]||e.values[f]}const c=e.argumentCallback?e.argumentCallback(n):n;return s[c]}}const RT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},DT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},NT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},BT=(e,n)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},LT={ordinalNumber:BT,era:ol({values:RT,defaultWidth:"wide"}),quarter:ol({values:MT,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ol({values:DT,defaultWidth:"wide"}),day:ol({values:NT,defaultWidth:"wide"}),dayPeriod:ol({values:zT,defaultWidth:"wide",formattingValues:jT,defaultFormattingWidth:"wide"})};function il(e){return(n,r={})=>{const o=r.width,s=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],c=n.match(s);if(!c)return null;const f=c[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(d)?PT(d,g=>g.test(f)):UT(d,g=>g.test(f));let h;h=e.valueCallback?e.valueCallback(p):p,h=r.valueCallback?r.valueCallback(h):h;const y=n.slice(f.length);return{value:h,rest:y}}}function UT(e,n){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n(e[r]))return r}function PT(e,n){for(let r=0;r<e.length;r++)if(n(e[r]))return r}function HT(e){return(n,r={})=>{const o=n.match(e.matchPattern);if(!o)return null;const s=o[0],c=n.match(e.parsePattern);if(!c)return null;let f=e.valueCallback?e.valueCallback(c[0]):c[0];f=r.valueCallback?r.valueCallback(f):f;const d=n.slice(s.length);return{value:f,rest:d}}}const FT=/^(\d+)(th|st|nd|rd)?/i,VT=/\d+/i,ZT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},YT={any:[/^b/i,/^(a|c)/i]},$T={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},qT={any:[/1/i,/2/i,/3/i,/4/i]},WT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},IT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},GT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},XT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},KT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},QT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},JT={ordinalNumber:HT({matchPattern:FT,parsePattern:VT,valueCallback:e=>parseInt(e,10)}),era:il({matchPatterns:ZT,defaultMatchWidth:"wide",parsePatterns:YT,defaultParseWidth:"any"}),quarter:il({matchPatterns:$T,defaultMatchWidth:"wide",parsePatterns:qT,defaultParseWidth:"any",valueCallback:e=>e+1}),month:il({matchPatterns:WT,defaultMatchWidth:"wide",parsePatterns:IT,defaultParseWidth:"any"}),day:il({matchPatterns:GT,defaultMatchWidth:"wide",parsePatterns:XT,defaultParseWidth:"any"}),dayPeriod:il({matchPatterns:KT,defaultMatchWidth:"any",parsePatterns:QT,defaultParseWidth:"any"})},Tm={code:"en-US",formatDistance:_T,formatLong:CT,formatRelative:AT,localize:LT,match:JT,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ek(e,n){const r=ot(e,n?.in);return Em(r,v0(r))+1}function x0(e,n){const r=ot(e,n?.in),o=+wl(r)-+sT(r);return Math.round(o/m0)+1}function w0(e,n){const r=ot(e,n?.in),o=r.getFullYear(),s=Nl(),c=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,f=zt(n?.in||e,0);f.setFullYear(o+1,0,c),f.setHours(0,0,0,0);const d=Wo(f,n),p=zt(n?.in||e,0);p.setFullYear(o,0,c),p.setHours(0,0,0,0);const h=Wo(p,n);return+r>=+d?o+1:+r>=+h?o:o-1}function tk(e,n){const r=Nl(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=w0(e,n),c=zt(n?.in||e,0);return c.setFullYear(s,0,o),c.setHours(0,0,0,0),Wo(c,n)}function S0(e,n){const r=ot(e,n?.in),o=+Wo(r,n)-+tk(r,n);return Math.round(o/m0)+1}function Je(e,n){const r=e<0?"-":"",o=Math.abs(e).toString().padStart(n,"0");return r+o}const sr={y(e,n){const r=e.getFullYear(),o=r>0?r:1-r;return Je(n==="yy"?o%100:o,n.length)},M(e,n){const r=e.getMonth();return n==="M"?String(r+1):Je(r+1,2)},d(e,n){return Je(e.getDate(),n.length)},a(e,n){const r=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,n){return Je(e.getHours()%12||12,n.length)},H(e,n){return Je(e.getHours(),n.length)},m(e,n){return Je(e.getMinutes(),n.length)},s(e,n){return Je(e.getSeconds(),n.length)},S(e,n){const r=n.length,o=e.getMilliseconds(),s=Math.trunc(o*Math.pow(10,r-3));return Je(s,n.length)}},Po={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pv={G:function(e,n,r){const o=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){const o=e.getFullYear(),s=o>0?o:1-o;return r.ordinalNumber(s,{unit:"year"})}return sr.y(e,n)},Y:function(e,n,r,o){const s=w0(e,o),c=s>0?s:1-s;if(n==="YY"){const f=c%100;return Je(f,2)}return n==="Yo"?r.ordinalNumber(c,{unit:"year"}):Je(c,n.length)},R:function(e,n){const r=y0(e);return Je(r,n.length)},u:function(e,n){const r=e.getFullYear();return Je(r,n.length)},Q:function(e,n,r){const o=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Je(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,n,r){const o=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Je(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,n,r){const o=e.getMonth();switch(n){case"M":case"MM":return sr.M(e,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,n,r){const o=e.getMonth();switch(n){case"L":return String(o+1);case"LL":return Je(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,n,r,o){const s=S0(e,o);return n==="wo"?r.ordinalNumber(s,{unit:"week"}):Je(s,n.length)},I:function(e,n,r){const o=x0(e);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Je(o,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):sr.d(e,n)},D:function(e,n,r){const o=ek(e);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Je(o,n.length)},E:function(e,n,r){const o=e.getDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,n,r,o){const s=e.getDay(),c=(s-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(c);case"ee":return Je(c,2);case"eo":return r.ordinalNumber(c,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,r,o){const s=e.getDay(),c=(s-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(c);case"cc":return Je(c,n.length);case"co":return r.ordinalNumber(c,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,r){const o=e.getDay(),s=o===0?7:o;switch(n){case"i":return String(s);case"ii":return Je(s,n.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,n,r){const s=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,r){const o=e.getHours();let s;switch(o===12?s=Po.noon:o===0?s=Po.midnight:s=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,r){const o=e.getHours();let s;switch(o>=17?s=Po.evening:o>=12?s=Po.afternoon:o>=4?s=Po.morning:s=Po.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){let o=e.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return sr.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):sr.H(e,n)},K:function(e,n,r){const o=e.getHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Je(o,n.length)},k:function(e,n,r){let o=e.getHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Je(o,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):sr.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):sr.s(e,n)},S:function(e,n){return sr.S(e,n)},X:function(e,n,r){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return gv(o);case"XXXX":case"XX":return Fr(o);case"XXXXX":case"XXX":default:return Fr(o,":")}},x:function(e,n,r){const o=e.getTimezoneOffset();switch(n){case"x":return gv(o);case"xxxx":case"xx":return Fr(o);case"xxxxx":case"xxx":default:return Fr(o,":")}},O:function(e,n,r){const o=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+yv(o,":");case"OOOO":default:return"GMT"+Fr(o,":")}},z:function(e,n,r){const o=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+yv(o,":");case"zzzz":default:return"GMT"+Fr(o,":")}},t:function(e,n,r){const o=Math.trunc(+e/1e3);return Je(o,n.length)},T:function(e,n,r){return Je(+e,n.length)}};function yv(e,n=""){const r=e>0?"-":"+",o=Math.abs(e),s=Math.trunc(o/60),c=o%60;return c===0?r+String(s):r+String(s)+n+Je(c,2)}function gv(e,n){return e%60===0?(e>0?"-":"+")+Je(Math.abs(e)/60,2):Fr(e,n)}function Fr(e,n=""){const r=e>0?"-":"+",o=Math.abs(e),s=Je(Math.trunc(o/60),2),c=Je(o%60,2);return r+s+n+c}const vv=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},_0=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},nk=(e,n)=>{const r=e.match(/(P+)(p+)?/)||[],o=r[1],s=r[2];if(!s)return vv(e,n);let c;switch(o){case"P":c=n.dateTime({width:"short"});break;case"PP":c=n.dateTime({width:"medium"});break;case"PPP":c=n.dateTime({width:"long"});break;case"PPPP":default:c=n.dateTime({width:"full"});break}return c.replace("{{date}}",vv(o,n)).replace("{{time}}",_0(s,n))},ak={p:_0,P:nk},rk=/^D+$/,ok=/^Y+$/,ik=["D","DD","YY","YYYY"];function lk(e){return rk.test(e)}function sk(e){return ok.test(e)}function ck(e,n,r){const o=uk(e,n,r);if(console.warn(o),ik.includes(e))throw new RangeError(o)}function uk(e,n,r){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const fk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mk=/^'([^]*?)'?$/,hk=/''/g,pk=/[a-zA-Z]/;function E0(e,n,r){const o=Nl(),s=r?.locale??o.locale??Tm,c=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,f=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,d=ot(e,r?.in);if(!hT(d))throw new RangeError("Invalid time value");let p=n.match(dk).map(y=>{const g=y[0];if(g==="p"||g==="P"){const x=ak[g];return x(y,s.formatLong)}return y}).join("").match(fk).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const g=y[0];if(g==="'")return{isToken:!1,value:yk(y)};if(pv[g])return{isToken:!0,value:y};if(g.match(pk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:y}});s.localize.preprocessor&&(p=s.localize.preprocessor(d,p));const h={firstWeekContainsDate:c,weekStartsOn:f,locale:s};return p.map(y=>{if(!y.isToken)return y.value;const g=y.value;(!r?.useAdditionalWeekYearTokens&&sk(g)||!r?.useAdditionalDayOfYearTokens&&lk(g))&&ck(g,n,String(e));const x=pv[g[0]];return x(d,g,s.localize,h)}).join("")}function yk(e){const n=e.match(mk);return n?n[1].replace(hk,"'"):e}function gk(e,n){const r=ot(e,n?.in),o=r.getFullYear(),s=r.getMonth(),c=zt(r,0);return c.setFullYear(o,s+1,0),c.setHours(0,0,0,0),c.getDate()}function vk(e,n){return ot(e,n?.in).getMonth()}function bk(e,n){return ot(e,n?.in).getFullYear()}function xk(e,n){return+ot(e)>+ot(n)}function wk(e,n){return+ot(e)<+ot(n)}function Sk(e,n,r){const[o,s]=Jo(r?.in,e,n);return o.getFullYear()===s.getFullYear()&&o.getMonth()===s.getMonth()}function _k(e,n,r){const[o,s]=Jo(r?.in,e,n);return o.getFullYear()===s.getFullYear()}function Ek(e,n,r){const o=ot(e,r?.in),s=o.getFullYear(),c=o.getDate(),f=zt(e,0);f.setFullYear(s,n,15),f.setHours(0,0,0,0);const d=gk(f);return o.setMonth(n,Math.min(c,d)),o}function Tk(e,n,r){const o=ot(e,r?.in);return isNaN(+o)?zt(e,NaN):(o.setFullYear(n),o)}const bv=5,kk=4;function Ck(e,n){const r=n.startOfMonth(e),o=r.getDay()>0?r.getDay():7,s=n.addDays(e,-o+1),c=n.addDays(s,bv*7-1);return n.getMonth(e)===n.getMonth(c)?bv:kk}function T0(e,n){const r=n.startOfMonth(e),o=r.getDay();return o===1?r:o===0?n.addDays(r,-1*6):n.addDays(r,-1*(o-1))}function Ok(e,n){const r=T0(e,n),o=Ck(e,n);return n.addDays(r,o*7-1)}class Ua{constructor(n,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Gt.tz(this.options.timeZone):new this.Date,this.newDate=(o,s,c)=>this.overrides?.newDate?this.overrides.newDate(o,s,c):this.options.timeZone?new Gt(o,s,c,this.options.timeZone):new Date(o,s,c),this.addDays=(o,s)=>this.overrides?.addDays?this.overrides.addDays(o,s):h0(o,s),this.addMonths=(o,s)=>this.overrides?.addMonths?this.overrides.addMonths(o,s):p0(o,s),this.addWeeks=(o,s)=>this.overrides?.addWeeks?this.overrides.addWeeks(o,s):cT(o,s),this.addYears=(o,s)=>this.overrides?.addYears?this.overrides.addYears(o,s):uT(o,s),this.differenceInCalendarDays=(o,s)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(o,s):Em(o,s),this.differenceInCalendarMonths=(o,s)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(o,s):pT(o,s),this.eachMonthOfInterval=o=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(o):vT(o),this.endOfBroadcastWeek=o=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(o):Ok(o,this),this.endOfISOWeek=o=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(o):wT(o),this.endOfMonth=o=>this.overrides?.endOfMonth?this.overrides.endOfMonth(o):yT(o),this.endOfWeek=(o,s)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(o,s):b0(o,this.options),this.endOfYear=o=>this.overrides?.endOfYear?this.overrides.endOfYear(o):xT(o),this.format=(o,s,c)=>{const f=this.overrides?.format?this.overrides.format(o,s,this.options):E0(o,s,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(f):f},this.getISOWeek=o=>this.overrides?.getISOWeek?this.overrides.getISOWeek(o):x0(o),this.getMonth=(o,s)=>this.overrides?.getMonth?this.overrides.getMonth(o,this.options):vk(o,this.options),this.getYear=(o,s)=>this.overrides?.getYear?this.overrides.getYear(o,this.options):bk(o,this.options),this.getWeek=(o,s)=>this.overrides?.getWeek?this.overrides.getWeek(o,this.options):S0(o,this.options),this.isAfter=(o,s)=>this.overrides?.isAfter?this.overrides.isAfter(o,s):xk(o,s),this.isBefore=(o,s)=>this.overrides?.isBefore?this.overrides.isBefore(o,s):wk(o,s),this.isDate=o=>this.overrides?.isDate?this.overrides.isDate(o):g0(o),this.isSameDay=(o,s)=>this.overrides?.isSameDay?this.overrides.isSameDay(o,s):mT(o,s),this.isSameMonth=(o,s)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(o,s):Sk(o,s),this.isSameYear=(o,s)=>this.overrides?.isSameYear?this.overrides.isSameYear(o,s):_k(o,s),this.max=o=>this.overrides?.max?this.overrides.max(o):fT(o),this.min=o=>this.overrides?.min?this.overrides.min(o):dT(o),this.setMonth=(o,s)=>this.overrides?.setMonth?this.overrides.setMonth(o,s):Ek(o,s),this.setYear=(o,s)=>this.overrides?.setYear?this.overrides.setYear(o,s):Tk(o,s),this.startOfBroadcastWeek=(o,s)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(o,this):T0(o,this),this.startOfDay=o=>this.overrides?.startOfDay?this.overrides.startOfDay(o):Sl(o),this.startOfISOWeek=o=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(o):wl(o),this.startOfMonth=o=>this.overrides?.startOfMonth?this.overrides.startOfMonth(o):bT(o),this.startOfWeek=(o,s)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(o,this.options):Wo(o,this.options),this.startOfYear=o=>this.overrides?.startOfYear?this.overrides.startOfYear(o):v0(o),this.options={locale:Tm,...n},this.overrides=r}getDigitMap(){const{numerals:n="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:n}),o={};for(let s=0;s<10;s++)o[s.toString()]=r.format(s);return o}replaceDigits(n){const r=this.getDigitMap();return n.replace(/\d/g,o=>r[o]||o)}formatNumber(n){return this.replaceDigits(n.toString())}}const sa=new Ua;class k0{constructor(n,r,o=sa){this.date=n,this.displayMonth=r,this.outside=!!(r&&!o.isSameMonth(n,r)),this.dateLib=o}isEqualTo(n){return this.dateLib.isSameDay(n.date,this.date)&&this.dateLib.isSameMonth(n.displayMonth,this.displayMonth)}}class Ak{constructor(n,r){this.date=n,this.weeks=r}}class Rk{constructor(n,r){this.days=r,this.weekNumber=n}}function Ra(e,n,r=!1,o=sa){let{from:s,to:c}=e;const{differenceInCalendarDays:f,isSameDay:d}=o;return s&&c?(f(c,s)<0&&([s,c]=[c,s]),f(n,s)>=(r?1:0)&&f(c,n)>=(r?1:0)):!r&&c?d(c,n):!r&&s?d(s,n):!1}function C0(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function km(e){return!!(e&&typeof e=="object"&&"from"in e)}function O0(e){return!!(e&&typeof e=="object"&&"after"in e)}function A0(e){return!!(e&&typeof e=="object"&&"before"in e)}function R0(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function M0(e,n){return Array.isArray(e)&&e.every(n.isDate)}function Ma(e,n,r=sa){const o=Array.isArray(n)?n:[n],{isSameDay:s,differenceInCalendarDays:c,isAfter:f}=r;return o.some(d=>{if(typeof d=="boolean")return d;if(r.isDate(d))return s(e,d);if(M0(d,r))return d.includes(e);if(km(d))return Ra(d,e,!1,r);if(R0(d))return Array.isArray(d.dayOfWeek)?d.dayOfWeek.includes(e.getDay()):d.dayOfWeek===e.getDay();if(C0(d)){const p=c(d.before,e),h=c(d.after,e),y=p>0,g=h<0;return f(d.before,d.after)?g&&y:y||g}return O0(d)?c(e,d.after)>0:A0(d)?c(d.before,e)>0:typeof d=="function"?d(e):!1})}function Mk(e,n,r,o,s){const{disabled:c,hidden:f,modifiers:d,showOutsideDays:p,broadcastCalendar:h,today:y}=n,{isSameDay:g,isSameMonth:x,startOfMonth:E,isBefore:k,endOfMonth:S,isAfter:T}=s,O=r&&E(r),C=o&&S(o),A={[ht.focused]:[],[ht.outside]:[],[ht.disabled]:[],[ht.hidden]:[],[ht.today]:[]},N={};for(const M of e){const{date:q,displayMonth:L}=M,U=!!(L&&!x(q,L)),ee=!!(O&&k(q,O)),ie=!!(C&&T(q,C)),se=!!(c&&Ma(q,c,s)),te=!!(f&&Ma(q,f,s))||ee||ie||!h&&!p&&U||h&&p===!1&&U,ce=g(q,y??s.today());U&&A.outside.push(M),se&&A.disabled.push(M),te&&A.hidden.push(M),ce&&A.today.push(M),d&&Object.keys(d).forEach(he=>{const pe=d?.[he];pe&&Ma(q,pe,s)&&(N[he]?N[he].push(M):N[he]=[M])})}return M=>{const q={[ht.focused]:!1,[ht.disabled]:!1,[ht.hidden]:!1,[ht.outside]:!1,[ht.today]:!1},L={};for(const U in A){const ee=A[U];q[U]=ee.some(ie=>ie===M)}for(const U in N)L[U]=N[U].some(ee=>ee===M);return{...q,...L}}}function Dk(e,n,r={}){return Object.entries(e).filter(([,s])=>s===!0).reduce((s,[c])=>(r[c]?s.push(r[c]):n[ht[c]]?s.push(n[ht[c]]):n[Pn[c]]&&s.push(n[Pn[c]]),s),[n[Ee.Day]])}function Nk(e){return W.createElement("button",{...e})}function zk(e){return W.createElement("span",{...e})}function jk(e){const{size:n=24,orientation:r="left",className:o}=e;return W.createElement("svg",{className:o,width:n,height:n,viewBox:"0 0 24 24"},r==="up"&&W.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),r==="down"&&W.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),r==="left"&&W.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),r==="right"&&W.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Bk(e){const{day:n,modifiers:r,...o}=e;return W.createElement("td",{...o})}function Lk(e){const{day:n,modifiers:r,...o}=e,s=W.useRef(null);return W.useEffect(()=>{r.focused&&s.current?.focus()},[r.focused]),W.createElement("button",{ref:s,...o})}function Uk(e){const{options:n,className:r,components:o,classNames:s,...c}=e,f=[s[Ee.Dropdown],r].join(" "),d=n?.find(({value:p})=>p===c.value);return W.createElement("span",{"data-disabled":c.disabled,className:s[Ee.DropdownRoot]},W.createElement(o.Select,{className:f,...c},n?.map(({value:p,label:h,disabled:y})=>W.createElement(o.Option,{key:p,value:p,disabled:y},h))),W.createElement("span",{className:s[Ee.CaptionLabel],"aria-hidden":!0},d?.label,W.createElement(o.Chevron,{orientation:"down",size:18,className:s[Ee.Chevron]})))}function Pk(e){return W.createElement("div",{...e})}function Hk(e){return W.createElement("div",{...e})}function Fk(e){const{calendarMonth:n,displayIndex:r,...o}=e;return W.createElement("div",{...o},e.children)}function Vk(e){const{calendarMonth:n,displayIndex:r,...o}=e;return W.createElement("div",{...o})}function Zk(e){return W.createElement("table",{...e})}function Yk(e){return W.createElement("div",{...e})}const D0=b.createContext(void 0);function zl(){const e=b.useContext(D0);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function $k(e){const{components:n}=zl();return W.createElement(n.Dropdown,{...e})}function qk(e){const{onPreviousClick:n,onNextClick:r,previousMonth:o,nextMonth:s,...c}=e,{components:f,classNames:d,labels:{labelPrevious:p,labelNext:h}}=zl(),y=b.useCallback(x=>{s&&r?.(x)},[s,r]),g=b.useCallback(x=>{o&&n?.(x)},[o,n]);return W.createElement("nav",{...c},W.createElement(f.PreviousMonthButton,{type:"button",className:d[Ee.PreviousMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":p(o),onClick:g},W.createElement(f.Chevron,{disabled:o?void 0:!0,className:d[Ee.Chevron],orientation:"left"})),W.createElement(f.NextMonthButton,{type:"button",className:d[Ee.NextMonthButton],tabIndex:s?void 0:-1,"aria-disabled":s?void 0:!0,"aria-label":h(s),onClick:y},W.createElement(f.Chevron,{disabled:s?void 0:!0,orientation:"right",className:d[Ee.Chevron]})))}function Wk(e){const{components:n}=zl();return W.createElement(n.Button,{...e})}function Ik(e){return W.createElement("option",{...e})}function Gk(e){const{components:n}=zl();return W.createElement(n.Button,{...e})}function Xk(e){const{rootRef:n,...r}=e;return W.createElement("div",{...r,ref:n})}function Kk(e){return W.createElement("select",{...e})}function Qk(e){const{week:n,...r}=e;return W.createElement("tr",{...r})}function Jk(e){return W.createElement("th",{...e})}function eC(e){return W.createElement("thead",{"aria-hidden":!0},W.createElement("tr",{...e}))}function tC(e){const{week:n,...r}=e;return W.createElement("th",{...r})}function nC(e){return W.createElement("th",{...e})}function aC(e){return W.createElement("tbody",{...e})}function rC(e){const{components:n}=zl();return W.createElement(n.Dropdown,{...e})}const oC=Object.freeze(Object.defineProperty({__proto__:null,Button:Nk,CaptionLabel:zk,Chevron:jk,Day:Bk,DayButton:Lk,Dropdown:Uk,DropdownNav:Pk,Footer:Hk,Month:Fk,MonthCaption:Vk,MonthGrid:Zk,Months:Yk,MonthsDropdown:$k,Nav:qk,NextMonthButton:Wk,Option:Ik,PreviousMonthButton:Gk,Root:Xk,Select:Kk,Week:Qk,WeekNumber:tC,WeekNumberHeader:nC,Weekday:Jk,Weekdays:eC,Weeks:aC,YearsDropdown:rC},Symbol.toStringTag,{value:"Module"}));function iC(e){return{...oC,...e}}function lC(e){const n={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([r,o])=>{r.startsWith("data-")&&(n[r]=o)}),n}function sC(){const e={};for(const n in Ee)e[Ee[n]]=`rdp-${Ee[n]}`;for(const n in ht)e[ht[n]]=`rdp-${ht[n]}`;for(const n in Pn)e[Pn[n]]=`rdp-${Pn[n]}`;for(const n in pn)e[pn[n]]=`rdp-${pn[n]}`;return e}function N0(e,n,r){return(r??new Ua(n)).format(e,"LLLL y")}const cC=N0;function uC(e,n,r){return(r??new Ua(n)).format(e,"d")}function fC(e,n=sa){return n.format(e,"LLLL")}function dC(e,n=sa){return e<10?n.formatNumber(`0${e.toLocaleString()}`):n.formatNumber(`${e.toLocaleString()}`)}function mC(){return""}function hC(e,n,r){return(r??new Ua(n)).format(e,"cccccc")}function z0(e,n=sa){return n.format(e,"yyyy")}const pC=z0,yC=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:N0,formatDay:uC,formatMonthCaption:cC,formatMonthDropdown:fC,formatWeekNumber:dC,formatWeekNumberHeader:mC,formatWeekdayName:hC,formatYearCaption:pC,formatYearDropdown:z0},Symbol.toStringTag,{value:"Module"}));function gC(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...yC,...e}}function vC(e,n,r,o,s){const{startOfMonth:c,startOfYear:f,endOfYear:d,eachMonthOfInterval:p,getMonth:h}=s;return p({start:f(e),end:d(e)}).map(x=>{const E=o.formatMonthDropdown(x,s),k=h(x),S=n&&x<c(n)||r&&x>c(r)||!1;return{value:k,label:E,disabled:S}})}function bC(e,n={},r={}){let o={...n?.[Ee.Day]};return Object.entries(e).filter(([,s])=>s===!0).forEach(([s])=>{o={...o,...r?.[s]}}),o}function xC(e,n,r){const o=e.today(),s=n?e.startOfISOWeek(o):e.startOfWeek(o),c=[];for(let f=0;f<7;f++){const d=e.addDays(s,f);c.push(d)}return c}function wC(e,n,r,o){if(!e||!n)return;const{startOfYear:s,endOfYear:c,addYears:f,getYear:d,isBefore:p,isSameYear:h}=o,y=s(e),g=c(n),x=[];let E=y;for(;p(E,g)||h(E,g);)x.push(E),E=f(E,1);return x.map(k=>{const S=r.formatYearDropdown(k,o);return{value:d(k),label:S,disabled:!1}})}function j0(e,n,r){return(r??new Ua(n)).format(e,"LLLL y")}const SC=j0;function _C(e,n,r,o){let s=(o??new Ua(r)).format(e,"PPPP");return n?.today&&(s=`Today, ${s}`),s}function B0(e,n,r,o){let s=(o??new Ua(r)).format(e,"PPPP");return n.today&&(s=`Today, ${s}`),n.selected&&(s=`${s}, selected`),s}const EC=B0;function TC(){return""}function kC(e){return"Choose the Month"}function CC(e){return"Go to the Next Month"}function OC(e){return"Go to the Previous Month"}function AC(e,n,r){return(r??new Ua(n)).format(e,"cccc")}function RC(e,n){return`Week ${e}`}function MC(e){return"Week Number"}function DC(e){return"Choose the Year"}const NC=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:SC,labelDay:EC,labelDayButton:B0,labelGrid:j0,labelGridcell:_C,labelMonthDropdown:kC,labelNav:TC,labelNext:CC,labelPrevious:OC,labelWeekNumber:RC,labelWeekNumberHeader:MC,labelWeekday:AC,labelYearDropdown:DC},Symbol.toStringTag,{value:"Module"})),jl=e=>e instanceof HTMLElement?e:null,Cd=e=>[...e.querySelectorAll("[data-animated-month]")??[]],zC=e=>jl(e.querySelector("[data-animated-month]")),Od=e=>jl(e.querySelector("[data-animated-caption]")),Ad=e=>jl(e.querySelector("[data-animated-weeks]")),jC=e=>jl(e.querySelector("[data-animated-nav]")),BC=e=>jl(e.querySelector("[data-animated-weekdays]"));function LC(e,n,{classNames:r,months:o,focused:s,dateLib:c}){const f=b.useRef(null),d=b.useRef(o),p=b.useRef(!1);b.useLayoutEffect(()=>{const h=d.current;if(d.current=o,!n||!e.current||!(e.current instanceof HTMLElement)||o.length===0||h.length===0||o.length!==h.length)return;const y=c.isSameMonth(o[0].date,h[0].date),g=c.isAfter(o[0].date,h[0].date),x=g?r[pn.caption_after_enter]:r[pn.caption_before_enter],E=g?r[pn.weeks_after_enter]:r[pn.weeks_before_enter],k=f.current,S=e.current.cloneNode(!0);if(S instanceof HTMLElement?(Cd(S).forEach(A=>{if(!(A instanceof HTMLElement))return;const N=zC(A);N&&A.contains(N)&&A.removeChild(N);const M=Od(A);M&&M.classList.remove(x);const q=Ad(A);q&&q.classList.remove(E)}),f.current=S):f.current=null,p.current||y||s)return;const T=k instanceof HTMLElement?Cd(k):[],O=Cd(e.current);if(O&&O.every(C=>C instanceof HTMLElement)&&T&&T.every(C=>C instanceof HTMLElement)){p.current=!0,e.current.style.isolation="isolate";const C=jC(e.current);C&&(C.style.zIndex="1"),O.forEach((A,N)=>{const M=T[N];if(!M)return;A.style.position="relative",A.style.overflow="hidden";const q=Od(A);q&&q.classList.add(x);const L=Ad(A);L&&L.classList.add(E);const U=()=>{p.current=!1,e.current&&(e.current.style.isolation=""),C&&(C.style.zIndex=""),q&&q.classList.remove(x),L&&L.classList.remove(E),A.style.position="",A.style.overflow="",A.contains(M)&&A.removeChild(M)};M.style.pointerEvents="none",M.style.position="absolute",M.style.overflow="hidden",M.setAttribute("aria-hidden","true");const ee=BC(M);ee&&(ee.style.opacity="0");const ie=Od(M);ie&&(ie.classList.add(g?r[pn.caption_before_exit]:r[pn.caption_after_exit]),ie.addEventListener("animationend",U));const se=Ad(M);se&&se.classList.add(g?r[pn.weeks_before_exit]:r[pn.weeks_after_exit]),A.insertBefore(M,A.firstChild)})}})}function UC(e,n,r,o){const s=e[0],c=e[e.length-1],{ISOWeek:f,fixedWeeks:d,broadcastCalendar:p}=r??{},{addDays:h,differenceInCalendarDays:y,differenceInCalendarMonths:g,endOfBroadcastWeek:x,endOfISOWeek:E,endOfMonth:k,endOfWeek:S,isAfter:T,startOfBroadcastWeek:O,startOfISOWeek:C,startOfWeek:A}=o,N=p?O(s,o):f?C(s):A(s),M=p?x(c):f?E(k(c)):S(k(c)),q=y(M,N),L=g(c,s)+1,U=[];for(let se=0;se<=q;se++){const te=h(N,se);if(n&&T(te,n))break;U.push(te)}const ie=(p?35:42)*L;if(d&&U.length<ie){const se=ie-U.length;for(let te=0;te<se;te++){const ce=h(U[U.length-1],1);U.push(ce)}}return U}function PC(e){const n=[];return e.reduce((r,o)=>{const s=o.weeks.reduce((c,f)=>[...c,...f.days],n);return[...r,...s]},n)}function HC(e,n,r,o){const{numberOfMonths:s=1}=r,c=[];for(let f=0;f<s;f++){const d=o.addMonths(e,f);if(n&&d>n)break;c.push(d)}return c}function xv(e,n,r,o){const{month:s,defaultMonth:c,today:f=o.today(),numberOfMonths:d=1}=e;let p=s||c||f;const{differenceInCalendarMonths:h,addMonths:y,startOfMonth:g}=o;if(r&&h(r,p)<d-1){const x=-1*(d-1);p=y(r,x)}return n&&h(p,n)<0&&(p=n),g(p)}function FC(e,n,r,o){const{addDays:s,endOfBroadcastWeek:c,endOfISOWeek:f,endOfMonth:d,endOfWeek:p,getISOWeek:h,getWeek:y,startOfBroadcastWeek:g,startOfISOWeek:x,startOfWeek:E}=o,k=e.reduce((S,T)=>{const O=r.broadcastCalendar?g(T,o):r.ISOWeek?x(T):E(T),C=r.broadcastCalendar?c(T):r.ISOWeek?f(d(T)):p(d(T)),A=n.filter(L=>L>=O&&L<=C),N=r.broadcastCalendar?35:42;if(r.fixedWeeks&&A.length<N){const L=n.filter(U=>{const ee=N-A.length;return U>C&&U<=s(C,ee)});A.push(...L)}const M=A.reduce((L,U)=>{const ee=r.ISOWeek?h(U):y(U),ie=L.find(te=>te.weekNumber===ee),se=new k0(U,T,o);return ie?ie.days.push(se):L.push(new Rk(ee,[se])),L},[]),q=new Ak(T,M);return S.push(q),S},[]);return r.reverseMonths?k.reverse():k}function VC(e,n){let{startMonth:r,endMonth:o}=e;const{startOfYear:s,startOfDay:c,startOfMonth:f,endOfMonth:d,addYears:p,endOfYear:h,newDate:y,today:g}=n,{fromYear:x,toYear:E,fromMonth:k,toMonth:S}=e;!r&&k&&(r=k),!r&&x&&(r=n.newDate(x,0,1)),!o&&S&&(o=S),!o&&E&&(o=y(E,11,31));const T=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return r?r=f(r):x?r=y(x,0,1):!r&&T&&(r=s(p(e.today??g(),-100))),o?o=d(o):E?o=y(E,11,31):!o&&T&&(o=h(e.today??g())),[r&&c(r),o&&c(o)]}function ZC(e,n,r,o){if(r.disableNavigation)return;const{pagedNavigation:s,numberOfMonths:c=1}=r,{startOfMonth:f,addMonths:d,differenceInCalendarMonths:p}=o,h=s?c:1,y=f(e);if(!n)return d(y,h);if(!(p(n,e)<c))return d(y,h)}function YC(e,n,r,o){if(r.disableNavigation)return;const{pagedNavigation:s,numberOfMonths:c}=r,{startOfMonth:f,addMonths:d,differenceInCalendarMonths:p}=o,h=s?c??1:1,y=f(e);if(!n)return d(y,-h);if(!(p(y,n)<=0))return d(y,-h)}function $C(e){const n=[];return e.reduce((r,o)=>[...r,...o.weeks],n)}function Yc(e,n){const[r,o]=b.useState(e);return[n===void 0?r:n,o]}function qC(e,n){const[r,o]=VC(e,n),{startOfMonth:s,endOfMonth:c}=n,f=xv(e,r,o,n),[d,p]=Yc(f,e.month?f:void 0);b.useEffect(()=>{const q=xv(e,r,o,n);p(q)},[e.timeZone]);const h=HC(d,o,e,n),y=UC(h,e.endMonth?c(e.endMonth):void 0,e,n),g=FC(h,y,e,n),x=$C(g),E=PC(g),k=YC(d,r,e,n),S=ZC(d,o,e,n),{disableNavigation:T,onMonthChange:O}=e,C=q=>x.some(L=>L.days.some(U=>U.isEqualTo(q))),A=q=>{if(T)return;let L=s(q);r&&L<s(r)&&(L=s(r)),o&&L>s(o)&&(L=s(o)),p(L),O?.(L)};return{months:g,weeks:x,days:E,navStart:r,navEnd:o,previousMonth:k,nextMonth:S,goToMonth:A,goToDay:q=>{C(q)||A(q.date)}}}var Jn;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Jn||(Jn={}));function wv(e){return!e[ht.disabled]&&!e[ht.hidden]&&!e[ht.outside]}function WC(e,n,r,o){let s,c=-1;for(const f of e){const d=n(f);wv(d)&&(d[ht.focused]&&c<Jn.FocusedModifier?(s=f,c=Jn.FocusedModifier):o?.isEqualTo(f)&&c<Jn.LastFocused?(s=f,c=Jn.LastFocused):r(f.date)&&c<Jn.Selected?(s=f,c=Jn.Selected):d[ht.today]&&c<Jn.Today&&(s=f,c=Jn.Today))}return s||(s=e.find(f=>wv(n(f)))),s}function IC(e,n,r,o,s,c,f){const{ISOWeek:d,broadcastCalendar:p}=c,{addDays:h,addMonths:y,addWeeks:g,addYears:x,endOfBroadcastWeek:E,endOfISOWeek:k,endOfWeek:S,max:T,min:O,startOfBroadcastWeek:C,startOfISOWeek:A,startOfWeek:N}=f;let q={day:h,week:g,month:y,year:x,startOfWeek:L=>p?C(L,f):d?A(L):N(L),endOfWeek:L=>p?E(L):d?k(L):S(L)}[e](r,n==="after"?1:-1);return n==="before"&&o?q=T([o,q]):n==="after"&&s&&(q=O([s,q])),q}function L0(e,n,r,o,s,c,f,d=0){if(d>365)return;const p=IC(e,n,r.date,o,s,c,f),h=!!(c.disabled&&Ma(p,c.disabled,f)),y=!!(c.hidden&&Ma(p,c.hidden,f)),g=p,x=new k0(p,g,f);return!h&&!y?x:L0(e,n,x,o,s,c,f,d+1)}function GC(e,n,r,o,s){const{autoFocus:c}=e,[f,d]=b.useState(),p=WC(n.days,r,o||(()=>!1),f),[h,y]=b.useState(c?p:void 0);return{isFocusTarget:S=>!!p?.isEqualTo(S),setFocused:y,focused:h,blur:()=>{d(h),y(void 0)},moveFocus:(S,T)=>{if(!h)return;const O=L0(S,T,h,n.navStart,n.navEnd,e,s);O&&(n.goToDay(O),y(O))}}}function XC(e,n){const{selected:r,required:o,onSelect:s}=e,[c,f]=Yc(r,s?r:void 0),d=s?r:c,{isSameDay:p}=n,h=E=>d?.some(k=>p(k,E))??!1,{min:y,max:g}=e;return{selected:d,select:(E,k,S)=>{let T=[...d??[]];if(h(E)){if(d?.length===y||o&&d?.length===1)return;T=d?.filter(O=>!p(O,E))}else d?.length===g?T=[E]:T=[...T,E];return s||f(T),s?.(T,E,k,S),T},isSelected:h}}function KC(e,n,r=0,o=0,s=!1,c=sa){const{from:f,to:d}=n||{},{isSameDay:p,isAfter:h,isBefore:y}=c;let g;if(!f&&!d)g={from:e,to:r>0?void 0:e};else if(f&&!d)p(f,e)?s?g={from:f,to:void 0}:g=void 0:y(e,f)?g={from:e,to:f}:g={from:f,to:e};else if(f&&d)if(p(f,e)&&p(d,e))s?g={from:f,to:d}:g=void 0;else if(p(f,e))g={from:f,to:r>0?void 0:e};else if(p(d,e))g={from:e,to:r>0?void 0:e};else if(y(e,f))g={from:e,to:d};else if(h(e,f))g={from:f,to:e};else if(h(e,d))g={from:f,to:e};else throw new Error("Invalid range");if(g?.from&&g?.to){const x=c.differenceInCalendarDays(g.to,g.from);o>0&&x>o?g={from:e,to:void 0}:r>1&&x<r&&(g={from:e,to:void 0})}return g}function QC(e,n,r=sa){const o=Array.isArray(n)?n:[n];let s=e.from;const c=r.differenceInCalendarDays(e.to,e.from),f=Math.min(c,6);for(let d=0;d<=f;d++){if(o.includes(s.getDay()))return!0;s=r.addDays(s,1)}return!1}function Sv(e,n,r=sa){return Ra(e,n.from,!1,r)||Ra(e,n.to,!1,r)||Ra(n,e.from,!1,r)||Ra(n,e.to,!1,r)}function JC(e,n,r=sa){const o=Array.isArray(n)?n:[n];if(o.filter(d=>typeof d!="function").some(d=>typeof d=="boolean"?d:r.isDate(d)?Ra(e,d,!1,r):M0(d,r)?d.some(p=>Ra(e,p,!1,r)):km(d)?d.from&&d.to?Sv(e,{from:d.from,to:d.to},r):!1:R0(d)?QC(e,d.dayOfWeek,r):C0(d)?r.isAfter(d.before,d.after)?Sv(e,{from:r.addDays(d.after,1),to:r.addDays(d.before,-1)},r):Ma(e.from,d,r)||Ma(e.to,d,r):O0(d)||A0(d)?Ma(e.from,d,r)||Ma(e.to,d,r):!1))return!0;const f=o.filter(d=>typeof d=="function");if(f.length){let d=e.from;const p=r.differenceInCalendarDays(e.to,e.from);for(let h=0;h<=p;h++){if(f.some(y=>y(d)))return!0;d=r.addDays(d,1)}}return!1}function eO(e,n){const{disabled:r,excludeDisabled:o,selected:s,required:c,onSelect:f}=e,[d,p]=Yc(s,f?s:void 0),h=f?s:d;return{selected:h,select:(x,E,k)=>{const{min:S,max:T}=e,O=x?KC(x,h,S,T,c,n):void 0;return o&&r&&O?.from&&O.to&&JC({from:O.from,to:O.to},r,n)&&(O.from=x,O.to=void 0),f||p(O),f?.(O,x,E,k),O},isSelected:x=>h&&Ra(h,x,!1,n)}}function tO(e,n){const{selected:r,required:o,onSelect:s}=e,[c,f]=Yc(r,s?r:void 0),d=s?r:c,{isSameDay:p}=n;return{selected:d,select:(g,x,E)=>{let k=g;return!o&&d&&d&&p(g,d)&&(k=void 0),s||f(k),s?.(k,g,x,E),k},isSelected:g=>d?p(d,g):!1}}function nO(e,n){const r=tO(e,n),o=XC(e,n),s=eO(e,n);switch(e.mode){case"single":return r;case"multiple":return o;case"range":return s;default:return}}function aO(e){let n=e;n.timeZone&&(n={...e},n.today&&(n.today=new Gt(n.today,n.timeZone)),n.month&&(n.month=new Gt(n.month,n.timeZone)),n.defaultMonth&&(n.defaultMonth=new Gt(n.defaultMonth,n.timeZone)),n.startMonth&&(n.startMonth=new Gt(n.startMonth,n.timeZone)),n.endMonth&&(n.endMonth=new Gt(n.endMonth,n.timeZone)),n.mode==="single"&&n.selected?n.selected=new Gt(n.selected,n.timeZone):n.mode==="multiple"&&n.selected?n.selected=n.selected?.map(Me=>new Gt(Me,n.timeZone)):n.mode==="range"&&n.selected&&(n.selected={from:n.selected.from?new Gt(n.selected.from,n.timeZone):void 0,to:n.selected.to?new Gt(n.selected.to,n.timeZone):void 0}));const{components:r,formatters:o,labels:s,dateLib:c,locale:f,classNames:d}=b.useMemo(()=>{const Me={...Tm,...n.locale};return{dateLib:new Ua({locale:Me,weekStartsOn:n.broadcastCalendar?1:n.weekStartsOn,firstWeekContainsDate:n.firstWeekContainsDate,useAdditionalWeekYearTokens:n.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:n.useAdditionalDayOfYearTokens,timeZone:n.timeZone,numerals:n.numerals},n.dateLib),components:iC(n.components),formatters:gC(n.formatters),labels:{...NC,...n.labels},locale:Me,classNames:{...sC(),...n.classNames}}},[n.locale,n.broadcastCalendar,n.weekStartsOn,n.firstWeekContainsDate,n.useAdditionalWeekYearTokens,n.useAdditionalDayOfYearTokens,n.timeZone,n.numerals,n.dateLib,n.components,n.formatters,n.labels,n.classNames]),{captionLayout:p,mode:h,navLayout:y,numberOfMonths:g=1,onDayBlur:x,onDayClick:E,onDayFocus:k,onDayKeyDown:S,onDayMouseEnter:T,onDayMouseLeave:O,onNextClick:C,onPrevClick:A,showWeekNumber:N,styles:M}=n,{formatCaption:q,formatDay:L,formatMonthDropdown:U,formatWeekNumber:ee,formatWeekNumberHeader:ie,formatWeekdayName:se,formatYearDropdown:te}=o,ce=qC(n,c),{days:he,months:pe,navStart:B,navEnd:I,previousMonth:H,nextMonth:ye,goToMonth:R}=ce,K=Mk(he,n,B,I,c),{isSelected:le,select:ae,selected:fe}=nO(n,c)??{},{blur:ke,focused:we,isFocusTarget:oe,moveFocus:_e,setFocused:Be}=GC(n,ce,K,le??(()=>!1),c),{labelDayButton:Ne,labelGridcell:Ue,labelGrid:Ve,labelMonthDropdown:_t,labelNav:Ft,labelPrevious:Yn,labelNext:fa,labelWeekday:jt,labelWeekNumber:Zl,labelWeekNumberHeader:vr,labelYearDropdown:z}=s,Z=b.useMemo(()=>xC(c,n.ISOWeek),[c,n.ISOWeek]),G=h!==void 0||E!==void 0,de=b.useCallback(()=>{H&&(R(H),A?.(H))},[H,R,A]),ue=b.useCallback(()=>{ye&&(R(ye),C?.(ye))},[R,ye,C]),re=b.useCallback((Me,it)=>$e=>{$e.preventDefault(),$e.stopPropagation(),Be(Me),ae?.(Me.date,it,$e),E?.(Me.date,it,$e)},[ae,E,Be]),xe=b.useCallback((Me,it)=>$e=>{Be(Me),k?.(Me.date,it,$e)},[k,Be]),Ae=b.useCallback((Me,it)=>$e=>{ke(),x?.(Me.date,it,$e)},[ke,x]),Pe=b.useCallback((Me,it)=>$e=>{const xn={ArrowLeft:[$e.shiftKey?"month":"day",n.dir==="rtl"?"after":"before"],ArrowRight:[$e.shiftKey?"month":"day",n.dir==="rtl"?"before":"after"],ArrowDown:[$e.shiftKey?"year":"week","after"],ArrowUp:[$e.shiftKey?"year":"week","before"],PageUp:[$e.shiftKey?"year":"month","before"],PageDown:[$e.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(xn[$e.key]){$e.preventDefault(),$e.stopPropagation();const[Vt,Qr]=xn[$e.key];_e(Vt,Qr)}S?.(Me.date,it,$e)},[_e,S,n.dir]),et=b.useCallback((Me,it)=>$e=>{T?.(Me.date,it,$e)},[T]),Pa=b.useCallback((Me,it)=>$e=>{O?.(Me.date,it,$e)},[O]),bn=b.useCallback(Me=>it=>{const $e=Number(it.target.value),xn=c.setMonth(c.startOfMonth(Me),$e);R(xn)},[c,R]),oi=b.useCallback(Me=>it=>{const $e=Number(it.target.value),xn=c.setYear(c.startOfMonth(Me),$e);R(xn)},[c,R]),{className:$n,style:qn}=b.useMemo(()=>({className:[d[Ee.Root],n.className].filter(Boolean).join(" "),style:{...M?.[Ee.Root],...n.style}}),[d,n.className,n.style,M]),Mn=lC(n),Wn=b.useRef(null);LC(Wn,!!n.animate,{classNames:d,months:pe,focused:we,dateLib:c});const da={dayPickerProps:n,selected:fe,select:ae,isSelected:le,months:pe,nextMonth:ye,previousMonth:H,goToMonth:R,getModifiers:K,components:r,classNames:d,styles:M,labels:s,formatters:o};return W.createElement(D0.Provider,{value:da},W.createElement(r.Root,{rootRef:n.animate?Wn:void 0,className:$n,style:qn,dir:n.dir,id:n.id,lang:n.lang,nonce:n.nonce,title:n.title,role:n.role,"aria-label":n["aria-label"],...Mn},W.createElement(r.Months,{className:d[Ee.Months],style:M?.[Ee.Months]},!n.hideNavigation&&!y&&W.createElement(r.Nav,{"data-animated-nav":n.animate?"true":void 0,className:d[Ee.Nav],style:M?.[Ee.Nav],"aria-label":Ft(),onPreviousClick:de,onNextClick:ue,previousMonth:H,nextMonth:ye}),pe.map((Me,it)=>{const $e=vC(Me.date,B,I,o,c),xn=wC(B,I,o,c);return W.createElement(r.Month,{"data-animated-month":n.animate?"true":void 0,className:d[Ee.Month],style:M?.[Ee.Month],key:it,displayIndex:it,calendarMonth:Me},y==="around"&&!n.hideNavigation&&it===0&&W.createElement(r.PreviousMonthButton,{type:"button",className:d[Ee.PreviousMonthButton],tabIndex:H?void 0:-1,"aria-disabled":H?void 0:!0,"aria-label":Yn(H),onClick:de,"data-animated-button":n.animate?"true":void 0},W.createElement(r.Chevron,{disabled:H?void 0:!0,className:d[Ee.Chevron],orientation:n.dir==="rtl"?"right":"left"})),W.createElement(r.MonthCaption,{"data-animated-caption":n.animate?"true":void 0,className:d[Ee.MonthCaption],style:M?.[Ee.MonthCaption],calendarMonth:Me,displayIndex:it},p?.startsWith("dropdown")?W.createElement(r.DropdownNav,{className:d[Ee.Dropdowns],style:M?.[Ee.Dropdowns]},p==="dropdown"||p==="dropdown-months"?W.createElement(r.MonthsDropdown,{className:d[Ee.MonthsDropdown],"aria-label":_t(),classNames:d,components:r,disabled:!!n.disableNavigation,onChange:bn(Me.date),options:$e,style:M?.[Ee.Dropdown],value:c.getMonth(Me.date)}):W.createElement("span",null,U(Me.date,c)),p==="dropdown"||p==="dropdown-years"?W.createElement(r.YearsDropdown,{className:d[Ee.YearsDropdown],"aria-label":z(c.options),classNames:d,components:r,disabled:!!n.disableNavigation,onChange:oi(Me.date),options:xn,style:M?.[Ee.Dropdown],value:c.getYear(Me.date)}):W.createElement("span",null,te(Me.date,c)),W.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},q(Me.date,c.options,c))):W.createElement(r.CaptionLabel,{className:d[Ee.CaptionLabel],role:"status","aria-live":"polite"},q(Me.date,c.options,c))),y==="around"&&!n.hideNavigation&&it===g-1&&W.createElement(r.NextMonthButton,{type:"button",className:d[Ee.NextMonthButton],tabIndex:ye?void 0:-1,"aria-disabled":ye?void 0:!0,"aria-label":fa(ye),onClick:ue,"data-animated-button":n.animate?"true":void 0},W.createElement(r.Chevron,{disabled:ye?void 0:!0,className:d[Ee.Chevron],orientation:n.dir==="rtl"?"left":"right"})),it===g-1&&y==="after"&&!n.hideNavigation&&W.createElement(r.Nav,{"data-animated-nav":n.animate?"true":void 0,className:d[Ee.Nav],style:M?.[Ee.Nav],"aria-label":Ft(),onPreviousClick:de,onNextClick:ue,previousMonth:H,nextMonth:ye}),W.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":h==="multiple"||h==="range","aria-label":Ve(Me.date,c.options,c)||void 0,className:d[Ee.MonthGrid],style:M?.[Ee.MonthGrid]},!n.hideWeekdays&&W.createElement(r.Weekdays,{"data-animated-weekdays":n.animate?"true":void 0,className:d[Ee.Weekdays],style:M?.[Ee.Weekdays]},N&&W.createElement(r.WeekNumberHeader,{"aria-label":vr(c.options),className:d[Ee.WeekNumberHeader],style:M?.[Ee.WeekNumberHeader],scope:"col"},ie()),Z.map((Vt,Qr)=>W.createElement(r.Weekday,{"aria-label":jt(Vt,c.options,c),className:d[Ee.Weekday],key:Qr,style:M?.[Ee.Weekday],scope:"col"},se(Vt,c.options,c)))),W.createElement(r.Weeks,{"data-animated-weeks":n.animate?"true":void 0,className:d[Ee.Weeks],style:M?.[Ee.Weeks]},Me.weeks.map((Vt,Qr)=>W.createElement(r.Week,{className:d[Ee.Week],key:Vt.weekNumber,style:M?.[Ee.Week],week:Vt},N&&W.createElement(r.WeekNumber,{week:Vt,style:M?.[Ee.WeekNumber],"aria-label":Zl(Vt.weekNumber,{locale:f}),className:d[Ee.WeekNumber],scope:"row",role:"rowheader"},ee(Vt.weekNumber,c)),Vt.days.map(At=>{const{date:ln}=At,qe=K(At);if(qe[ht.focused]=!qe.hidden&&!!we?.isEqualTo(At),qe[Pn.selected]=le?.(ln)||qe.selected,km(fe)){const{from:wn,to:Et}=fe;qe[Pn.range_start]=!!(wn&&Et&&c.isSameDay(ln,wn)),qe[Pn.range_end]=!!(wn&&Et&&c.isSameDay(ln,Et)),qe[Pn.range_middle]=Ra(fe,ln,!0,c)}const ii=bC(qe,M,n.modifiersStyles),Yl=Dk(qe,d,n.modifiersClassNames),su=!G&&!qe.hidden?Ue(ln,qe,c.options,c):void 0;return W.createElement(r.Day,{key:`${c.format(ln,"yyyy-MM-dd")}_${c.format(At.displayMonth,"yyyy-MM")}`,day:At,modifiers:qe,className:Yl.join(" "),style:ii,role:"gridcell","aria-selected":qe.selected||void 0,"aria-label":su,"data-day":c.format(ln,"yyyy-MM-dd"),"data-month":At.outside?c.format(ln,"yyyy-MM"):void 0,"data-selected":qe.selected||void 0,"data-disabled":qe.disabled||void 0,"data-hidden":qe.hidden||void 0,"data-outside":At.outside||void 0,"data-focused":qe.focused||void 0,"data-today":qe.today||void 0},!qe.hidden&&G?W.createElement(r.DayButton,{className:d[Ee.DayButton],style:M?.[Ee.DayButton],type:"button",day:At,modifiers:qe,disabled:qe.disabled||void 0,tabIndex:oe(At)?0:-1,"aria-label":Ne(ln,qe,c.options,c),onClick:re(At,qe),onBlur:Ae(At,qe),onFocus:xe(At,qe),onKeyDown:Pe(At,qe),onMouseEnter:et(At,qe),onMouseLeave:Pa(At,qe)},L(ln,c.options,c)):!qe.hidden&&L(At.date,c.options,c))}))))))})),n.footer&&W.createElement(r.Footer,{className:d[Ee.Footer],style:M?.[Ee.Footer],role:"status","aria-live":"polite"},n.footer)))}const _v=e=>{let n;const r=new Set,o=(h,y)=>{const g=typeof h=="function"?h(n):h;if(!Object.is(g,n)){const x=n;n=y??(typeof g!="object"||g===null)?g:Object.assign({},n,g),r.forEach(E=>E(n,x))}},s=()=>n,d={setState:o,getState:s,getInitialState:()=>p,subscribe:h=>(r.add(h),()=>r.delete(h))},p=n=e(o,s,d);return d},rO=e=>e?_v(e):_v,oO=e=>e;function iO(e,n=oO){const r=W.useSyncExternalStore(e.subscribe,()=>n(e.getState()),()=>n(e.getInitialState()));return W.useDebugValue(r),r}const Ev=e=>{const n=rO(e),r=o=>iO(n,o);return Object.assign(r,n),r},lO=e=>e?Ev(e):Ev;function sO(e,n){let r;try{r=e()}catch{return}return{getItem:s=>{var c;const f=p=>p===null?null:JSON.parse(p,void 0),d=(c=r.getItem(s))!=null?c:null;return d instanceof Promise?d.then(f):f(d)},setItem:(s,c)=>r.setItem(s,JSON.stringify(c,void 0)),removeItem:s=>r.removeItem(s)}}const Xd=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(o){return Xd(o)(r)},catch(o){return this}}}catch(r){return{then(o){return this},catch(o){return Xd(o)(r)}}}},cO=(e,n)=>(r,o,s)=>{let c={storage:sO(()=>localStorage),partialize:S=>S,version:0,merge:(S,T)=>({...T,...S}),...n},f=!1;const d=new Set,p=new Set;let h=c.storage;if(!h)return e((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...S)},o,s);const y=()=>{const S=c.partialize({...o()});return h.setItem(c.name,{state:S,version:c.version})},g=s.setState;s.setState=(S,T)=>{g(S,T),y()};const x=e((...S)=>{r(...S),y()},o,s);s.getInitialState=()=>x;let E;const k=()=>{var S,T;if(!h)return;f=!1,d.forEach(C=>{var A;return C((A=o())!=null?A:x)});const O=((T=c.onRehydrateStorage)==null?void 0:T.call(c,(S=o())!=null?S:x))||void 0;return Xd(h.getItem.bind(h))(c.name).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==c.version){if(c.migrate){const A=c.migrate(C.state,C.version);return A instanceof Promise?A.then(N=>[!0,N]):[!0,A]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then(C=>{var A;const[N,M]=C;if(E=c.merge(M,(A=o())!=null?A:x),r(E,!0),N)return y()}).then(()=>{O?.(E,void 0),E=o(),f=!0,p.forEach(C=>C(E))}).catch(C=>{O?.(void 0,C)})};return s.persist={setOptions:S=>{c={...c,...S},S.storage&&(h=S.storage)},clearStorage:()=>{h?.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>k(),hasHydrated:()=>f,onHydrate:S=>(d.add(S),()=>{d.delete(S)}),onFinishHydration:S=>(p.add(S),()=>{p.delete(S)})},c.skipHydration||k(),E||x},uO=cO,Cm=lO(uO(e=>({dateRange:{start:"",end:""},rooms:0,adults:0,children:0,setDateRange:(n,r)=>e({dateRange:{start:n,end:r}}),setRooms:n=>e({rooms:n}),setAdults:n=>e({adults:n}),setChildren:n=>e({children:n})}),{name:"booking-storage"}));function fO(){const{dateRange:e,setDateRange:n}=Cm(),[r,o]=b.useState(),[s,c]=b.useState(!1),f=b.useRef(null),d=g=>g?g.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"",p=()=>r?.from?r.to?`${d(r.from)} – ${d(r.to)}`:d(r.from):"",h=g=>{o(g),g?.from&&g?.to&&(n(g?.from.toDateString(),g?.to.toDateString()),o({from:g?.from,to:g?.to}),c(!1))},y=g=>{f.current&&!f.current.contains(g.target)&&c(!1)};return b.useEffect(()=>(e&&e.start&&e.end&&o({from:new Date(e.start),to:new Date(e.end)}),s?document.addEventListener("mousedown",y):document.removeEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)),[s]),w.jsxs("div",{className:"relative p-6 md:w-3xl sm:flex-1",children:[w.jsx("h2",{className:"text-lg font-bold mb-4",children:"Select Booking Dates"}),w.jsx("input",{type:"text",readOnly:!0,value:p(),onClick:()=>c(!0),className:"w-full px-3 py-2 border rounded cursor-pointer text-sm",placeholder:"Select date range"}),s&&w.jsx("div",{ref:f,className:"absolute z-50 mt-2 bg-white border rounded shadow-lg p-4",children:w.jsx(aO,{mode:"range",selected:r,onSelect:h,numberOfMonths:2,disabled:{before:new Date},weekStartsOn:1})})]})}function Ye(e,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return n?.(s)}}function Tv(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function U0(...e){return n=>{let r=!1;const o=e.map(s=>{const c=Tv(s,n);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<o.length;s++){const c=o[s];typeof c=="function"?c():Tv(e[s],null)}}}}function ft(...e){return b.useCallback(U0(...e),e)}function Xr(e,n=[]){let r=[];function o(c,f){const d=b.createContext(f),p=r.length;r=[...r,f];const h=g=>{const{scope:x,children:E,...k}=g,S=x?.[e]?.[p]||d,T=b.useMemo(()=>k,Object.values(k));return w.jsx(S.Provider,{value:T,children:E})};h.displayName=c+"Provider";function y(g,x){const E=x?.[e]?.[p]||d,k=b.useContext(E);if(k)return k;if(f!==void 0)return f;throw new Error(`\`${g}\` must be used within \`${c}\``)}return[h,y]}const s=()=>{const c=r.map(f=>b.createContext(f));return function(d){const p=d?.[e]||c;return b.useMemo(()=>({[`__scope${e}`]:{...d,[e]:p}}),[d,p])}};return s.scopeName=e,[o,dO(s,...n)]}function dO(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const o=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=o.reduce((d,{useScope:p,scopeName:h})=>{const g=p(c)[`__scope${h}`];return{...d,...g}},{});return b.useMemo(()=>({[`__scope${n.scopeName}`]:f}),[f])}};return r.scopeName=n.scopeName,r}var Bl=r0();const mO=Ub(Bl);function Io(e){const n=hO(e),r=b.forwardRef((o,s)=>{const{children:c,...f}=o,d=b.Children.toArray(c),p=d.find(yO);if(p){const h=p.props.children,y=d.map(g=>g===p?b.Children.count(h)>1?b.Children.only(null):b.isValidElement(h)?h.props.children:null:g);return w.jsx(n,{...f,ref:s,children:b.isValidElement(h)?b.cloneElement(h,void 0,y):null})}return w.jsx(n,{...f,ref:s,children:c})});return r.displayName=`${e}.Slot`,r}var P0=Io("Slot");function hO(e){const n=b.forwardRef((r,o)=>{const{children:s,...c}=r;if(b.isValidElement(s)){const f=vO(s),d=gO(c,s.props);return s.type!==b.Fragment&&(d.ref=o?U0(o,f):f),b.cloneElement(s,d)}return b.Children.count(s)>1?b.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var pO=Symbol("radix.slottable");function yO(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pO}function gO(e,n){const r={...n};for(const o in n){const s=e[o],c=n[o];/^on[A-Z]/.test(o)?s&&c?r[o]=(...d)=>{const p=c(...d);return s(...d),p}:s&&(r[o]=s):o==="style"?r[o]={...s,...c}:o==="className"&&(r[o]=[s,c].filter(Boolean).join(" "))}return{...e,...r}}function vO(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var bO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ge=bO.reduce((e,n)=>{const r=Io(`Primitive.${n}`),o=b.forwardRef((s,c)=>{const{asChild:f,...d}=s,p=f?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(p,{...d,ref:c})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function xO(e,n){e&&Bl.flushSync(()=>e.dispatchEvent(n))}function dr(e){const n=b.useRef(e);return b.useEffect(()=>{n.current=e}),b.useMemo(()=>(...r)=>n.current?.(...r),[])}function wO(e,n=globalThis?.document){const r=dr(e);b.useEffect(()=>{const o=s=>{s.key==="Escape"&&r(s)};return n.addEventListener("keydown",o,{capture:!0}),()=>n.removeEventListener("keydown",o,{capture:!0})},[r,n])}var SO="DismissableLayer",Kd="dismissableLayer.update",_O="dismissableLayer.pointerDownOutside",EO="dismissableLayer.focusOutside",kv,H0=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Om=b.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...p}=e,h=b.useContext(H0),[y,g]=b.useState(null),x=y?.ownerDocument??globalThis?.document,[,E]=b.useState({}),k=ft(n,L=>g(L)),S=Array.from(h.layers),[T]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(T),C=y?S.indexOf(y):-1,A=h.layersWithOutsidePointerEventsDisabled.size>0,N=C>=O,M=CO(L=>{const U=L.target,ee=[...h.branches].some(ie=>ie.contains(U));!N||ee||(s?.(L),f?.(L),L.defaultPrevented||d?.())},x),q=OO(L=>{const U=L.target;[...h.branches].some(ie=>ie.contains(U))||(c?.(L),f?.(L),L.defaultPrevented||d?.())},x);return wO(L=>{C===h.layers.size-1&&(o?.(L),!L.defaultPrevented&&d&&(L.preventDefault(),d()))},x),b.useEffect(()=>{if(y)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(kv=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),Cv(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=kv)}},[y,x,r,h]),b.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),Cv())},[y,h]),b.useEffect(()=>{const L=()=>E({});return document.addEventListener(Kd,L),()=>document.removeEventListener(Kd,L)},[]),w.jsx(Ge.div,{...p,ref:k,style:{pointerEvents:A?N?"auto":"none":void 0,...e.style},onFocusCapture:Ye(e.onFocusCapture,q.onFocusCapture),onBlurCapture:Ye(e.onBlurCapture,q.onBlurCapture),onPointerDownCapture:Ye(e.onPointerDownCapture,M.onPointerDownCapture)})});Om.displayName=SO;var TO="DismissableLayerBranch",kO=b.forwardRef((e,n)=>{const r=b.useContext(H0),o=b.useRef(null),s=ft(n,o);return b.useEffect(()=>{const c=o.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),w.jsx(Ge.div,{...e,ref:s})});kO.displayName=TO;function CO(e,n=globalThis?.document){const r=dr(e),o=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const c=d=>{if(d.target&&!o.current){let p=function(){F0(_O,r,h,{discrete:!0})};const h={originalEvent:d};d.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=p,n.addEventListener("click",s.current,{once:!0})):p()}else n.removeEventListener("click",s.current);o.current=!1},f=window.setTimeout(()=>{n.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),n.removeEventListener("pointerdown",c),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}function OO(e,n=globalThis?.document){const r=dr(e),o=b.useRef(!1);return b.useEffect(()=>{const s=c=>{c.target&&!o.current&&F0(EO,r,{originalEvent:c},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Cv(){const e=new CustomEvent(Kd);document.dispatchEvent(e)}function F0(e,n,r,{discrete:o}){const s=r.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(e,n,{once:!0}),o?xO(s,c):s.dispatchEvent(c)}var Rd=0;function V0(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ov()),document.body.insertAdjacentElement("beforeend",e[1]??Ov()),Rd++,()=>{Rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Rd--}},[])}function Ov(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Md="focusScope.autoFocusOnMount",Dd="focusScope.autoFocusOnUnmount",Av={bubbles:!1,cancelable:!0},AO="FocusScope",Am=b.forwardRef((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=e,[d,p]=b.useState(null),h=dr(s),y=dr(c),g=b.useRef(null),x=ft(n,S=>p(S)),E=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(o){let S=function(A){if(E.paused||!d)return;const N=A.target;d.contains(N)?g.current=N:ur(g.current,{select:!0})},T=function(A){if(E.paused||!d)return;const N=A.relatedTarget;N!==null&&(d.contains(N)||ur(g.current,{select:!0}))},O=function(A){if(document.activeElement===document.body)for(const M of A)M.removedNodes.length>0&&ur(d)};document.addEventListener("focusin",S),document.addEventListener("focusout",T);const C=new MutationObserver(O);return d&&C.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",T),C.disconnect()}}},[o,d,E.paused]),b.useEffect(()=>{if(d){Mv.add(E);const S=document.activeElement;if(!d.contains(S)){const O=new CustomEvent(Md,Av);d.addEventListener(Md,h),d.dispatchEvent(O),O.defaultPrevented||(RO(jO(Z0(d)),{select:!0}),document.activeElement===S&&ur(d))}return()=>{d.removeEventListener(Md,h),setTimeout(()=>{const O=new CustomEvent(Dd,Av);d.addEventListener(Dd,y),d.dispatchEvent(O),O.defaultPrevented||ur(S??document.body,{select:!0}),d.removeEventListener(Dd,y),Mv.remove(E)},0)}}},[d,h,y,E]);const k=b.useCallback(S=>{if(!r&&!o||E.paused)return;const T=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,O=document.activeElement;if(T&&O){const C=S.currentTarget,[A,N]=MO(C);A&&N?!S.shiftKey&&O===N?(S.preventDefault(),r&&ur(A,{select:!0})):S.shiftKey&&O===A&&(S.preventDefault(),r&&ur(N,{select:!0})):O===C&&S.preventDefault()}},[r,o,E.paused]);return w.jsx(Ge.div,{tabIndex:-1,...f,ref:x,onKeyDown:k})});Am.displayName=AO;function RO(e,{select:n=!1}={}){const r=document.activeElement;for(const o of e)if(ur(o,{select:n}),document.activeElement!==r)return}function MO(e){const n=Z0(e),r=Rv(n,e),o=Rv(n.reverse(),e);return[r,o]}function Z0(e){const n=[],r=document.createTreeWalker(e,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(;r.nextNode();)n.push(r.currentNode);return n}function Rv(e,n){for(const r of e)if(!DO(r,{upTo:n}))return r}function DO(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function NO(e){return e instanceof HTMLInputElement&&"select"in e}function ur(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&NO(e)&&n&&e.select()}}var Mv=zO();function zO(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=Dv(e,n),e.unshift(n)},remove(n){e=Dv(e,n),e[0]?.resume()}}}function Dv(e,n){const r=[...e],o=r.indexOf(n);return o!==-1&&r.splice(o,1),r}function jO(e){return e.filter(n=>n.tagName!=="A")}var Xt=globalThis?.document?b.useLayoutEffect:()=>{},BO=Pb[" useId ".trim().toString()]||(()=>{}),LO=0;function Ll(e){const[n,r]=b.useState(BO());return Xt(()=>{r(o=>o??String(LO++))},[e]),e||(n?`radix-${n}`:"")}const UO=["top","right","bottom","left"],mr=Math.min,gn=Math.max,kc=Math.round,ac=Math.floor,ra=e=>({x:e,y:e}),PO={left:"right",right:"left",bottom:"top",top:"bottom"},HO={start:"end",end:"start"};function Qd(e,n,r){return gn(e,mr(n,r))}function Ba(e,n){return typeof e=="function"?e(n):e}function La(e){return e.split("-")[0]}function ei(e){return e.split("-")[1]}function Rm(e){return e==="x"?"y":"x"}function Mm(e){return e==="y"?"height":"width"}const FO=new Set(["top","bottom"]);function na(e){return FO.has(La(e))?"y":"x"}function Dm(e){return Rm(na(e))}function VO(e,n,r){r===void 0&&(r=!1);const o=ei(e),s=Dm(e),c=Mm(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Cc(f)),[f,Cc(f)]}function ZO(e){const n=Cc(e);return[Jd(e),n,Jd(n)]}function Jd(e){return e.replace(/start|end/g,n=>HO[n])}const Nv=["left","right"],zv=["right","left"],YO=["top","bottom"],$O=["bottom","top"];function qO(e,n,r){switch(e){case"top":case"bottom":return r?n?zv:Nv:n?Nv:zv;case"left":case"right":return n?YO:$O;default:return[]}}function WO(e,n,r,o){const s=ei(e);let c=qO(La(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),n&&(c=c.concat(c.map(Jd)))),c}function Cc(e){return e.replace(/left|right|bottom|top/g,n=>PO[n])}function IO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Y0(e){return typeof e!="number"?IO(e):{top:e,right:e,bottom:e,left:e}}function Oc(e){const{x:n,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:n,right:n+o,bottom:r+s,x:n,y:r}}function jv(e,n,r){let{reference:o,floating:s}=e;const c=na(n),f=Dm(n),d=Mm(f),p=La(n),h=c==="y",y=o.x+o.width/2-s.width/2,g=o.y+o.height/2-s.height/2,x=o[d]/2-s[d]/2;let E;switch(p){case"top":E={x:y,y:o.y-s.height};break;case"bottom":E={x:y,y:o.y+o.height};break;case"right":E={x:o.x+o.width,y:g};break;case"left":E={x:o.x-s.width,y:g};break;default:E={x:o.x,y:o.y}}switch(ei(n)){case"start":E[f]-=x*(r&&h?-1:1);break;case"end":E[f]+=x*(r&&h?-1:1);break}return E}const GO=async(e,n,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(n));let h=await f.getElementRects({reference:e,floating:n,strategy:s}),{x:y,y:g}=jv(h,o,p),x=o,E={},k=0;for(let S=0;S<d.length;S++){const{name:T,fn:O}=d[S],{x:C,y:A,data:N,reset:M}=await O({x:y,y:g,initialPlacement:o,placement:x,strategy:s,middlewareData:E,rects:h,platform:f,elements:{reference:e,floating:n}});y=C??y,g=A??g,E={...E,[T]:{...E[T],...N}},M&&k<=50&&(k++,typeof M=="object"&&(M.placement&&(x=M.placement),M.rects&&(h=M.rects===!0?await f.getElementRects({reference:e,floating:n,strategy:s}):M.rects),{x:y,y:g}=jv(h,x,p)),S=-1)}return{x:y,y:g,placement:x,strategy:s,middlewareData:E}};async function _l(e,n){var r;n===void 0&&(n={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:x=!1,padding:E=0}=Ba(n,e),k=Y0(E),T=d[x?g==="floating"?"reference":"floating":g],O=Oc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(T)))==null||r?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:h,rootBoundary:y,strategy:p})),C=g==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),N=await(c.isElement==null?void 0:c.isElement(A))?await(c.getScale==null?void 0:c.getScale(A))||{x:1,y:1}:{x:1,y:1},M=Oc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:C,offsetParent:A,strategy:p}):C);return{top:(O.top-M.top+k.top)/N.y,bottom:(M.bottom-O.bottom+k.bottom)/N.y,left:(O.left-M.left+k.left)/N.x,right:(M.right-O.right+k.right)/N.x}}const XO=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:p}=n,{element:h,padding:y=0}=Ba(e,n)||{};if(h==null)return{};const g=Y0(y),x={x:r,y:o},E=Dm(s),k=Mm(E),S=await f.getDimensions(h),T=E==="y",O=T?"top":"left",C=T?"bottom":"right",A=T?"clientHeight":"clientWidth",N=c.reference[k]+c.reference[E]-x[E]-c.floating[k],M=x[E]-c.reference[E],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let L=q?q[A]:0;(!L||!await(f.isElement==null?void 0:f.isElement(q)))&&(L=d.floating[A]||c.floating[k]);const U=N/2-M/2,ee=L/2-S[k]/2-1,ie=mr(g[O],ee),se=mr(g[C],ee),te=ie,ce=L-S[k]-se,he=L/2-S[k]/2+U,pe=Qd(te,he,ce),B=!p.arrow&&ei(s)!=null&&he!==pe&&c.reference[k]/2-(he<te?ie:se)-S[k]/2<0,I=B?he<te?he-te:he-ce:0;return{[E]:x[E]+I,data:{[E]:pe,centerOffset:he-pe-I,...B&&{alignmentOffset:I}},reset:B}}}),KO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:p,elements:h}=n,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...T}=Ba(e,n);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const O=La(s),C=na(d),A=La(d)===d,N=await(p.isRTL==null?void 0:p.isRTL(h.floating)),M=x||(A||!S?[Cc(d)]:ZO(d)),q=k!=="none";!x&&q&&M.push(...WO(d,S,k,N));const L=[d,...M],U=await _l(n,T),ee=[];let ie=((o=c.flip)==null?void 0:o.overflows)||[];if(y&&ee.push(U[O]),g){const he=VO(s,f,N);ee.push(U[he[0]],U[he[1]])}if(ie=[...ie,{placement:s,overflows:ee}],!ee.every(he=>he<=0)){var se,te;const he=(((se=c.flip)==null?void 0:se.index)||0)+1,pe=L[he];if(pe&&(!(g==="alignment"?C!==na(pe):!1)||ie.every(H=>H.overflows[0]>0&&na(H.placement)===C)))return{data:{index:he,overflows:ie},reset:{placement:pe}};let B=(te=ie.filter(I=>I.overflows[0]<=0).sort((I,H)=>I.overflows[1]-H.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(E){case"bestFit":{var ce;const I=(ce=ie.filter(H=>{if(q){const ye=na(H.placement);return ye===C||ye==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(ye=>ye>0).reduce((ye,R)=>ye+R,0)]).sort((H,ye)=>H[1]-ye[1])[0])==null?void 0:ce[0];I&&(B=I);break}case"initialPlacement":B=d;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function Bv(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Lv(e){return UO.some(n=>e[n]>=0)}const QO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:o="referenceHidden",...s}=Ba(e,n);switch(o){case"referenceHidden":{const c=await _l(n,{...s,elementContext:"reference"}),f=Bv(c,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Lv(f)}}}case"escaped":{const c=await _l(n,{...s,altBoundary:!0}),f=Bv(c,r.floating);return{data:{escapedOffsets:f,escaped:Lv(f)}}}default:return{}}}}},$0=new Set(["left","top"]);async function JO(e,n){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=La(r),d=ei(r),p=na(r)==="y",h=$0.has(f)?-1:1,y=c&&p?-1:1,g=Ba(n,e);let{mainAxis:x,crossAxis:E,alignmentAxis:k}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof k=="number"&&(E=d==="end"?k*-1:k),p?{x:E*y,y:x*h}:{x:x*h,y:E*y}}const eA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=n,p=await JO(n,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:f}}}}},tA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:o,placement:s}=n,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:T=>{let{x:O,y:C}=T;return{x:O,y:C}}},...p}=Ba(e,n),h={x:r,y:o},y=await _l(n,p),g=na(La(s)),x=Rm(g);let E=h[x],k=h[g];if(c){const T=x==="y"?"top":"left",O=x==="y"?"bottom":"right",C=E+y[T],A=E-y[O];E=Qd(C,E,A)}if(f){const T=g==="y"?"top":"left",O=g==="y"?"bottom":"right",C=k+y[T],A=k-y[O];k=Qd(C,k,A)}const S=d.fn({...n,[x]:E,[g]:k});return{...S,data:{x:S.x-r,y:S.y-o,enabled:{[x]:c,[g]:f}}}}}},nA=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:o,placement:s,rects:c,middlewareData:f}=n,{offset:d=0,mainAxis:p=!0,crossAxis:h=!0}=Ba(e,n),y={x:r,y:o},g=na(s),x=Rm(g);let E=y[x],k=y[g];const S=Ba(d,n),T=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const A=x==="y"?"height":"width",N=c.reference[x]-c.floating[A]+T.mainAxis,M=c.reference[x]+c.reference[A]-T.mainAxis;E<N?E=N:E>M&&(E=M)}if(h){var O,C;const A=x==="y"?"width":"height",N=$0.has(La(s)),M=c.reference[g]-c.floating[A]+(N&&((O=f.offset)==null?void 0:O[g])||0)+(N?0:T.crossAxis),q=c.reference[g]+c.reference[A]+(N?0:((C=f.offset)==null?void 0:C[g])||0)-(N?T.crossAxis:0);k<M?k=M:k>q&&(k=q)}return{[x]:E,[g]:k}}}},aA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,o;const{placement:s,rects:c,platform:f,elements:d}=n,{apply:p=()=>{},...h}=Ba(e,n),y=await _l(n,h),g=La(s),x=ei(s),E=na(s)==="y",{width:k,height:S}=c.floating;let T,O;g==="top"||g==="bottom"?(T=g,O=x===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(O=g,T=x==="end"?"top":"bottom");const C=S-y.top-y.bottom,A=k-y.left-y.right,N=mr(S-y[T],C),M=mr(k-y[O],A),q=!n.middlewareData.shift;let L=N,U=M;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(U=A),(o=n.middlewareData.shift)!=null&&o.enabled.y&&(L=C),q&&!x){const ie=gn(y.left,0),se=gn(y.right,0),te=gn(y.top,0),ce=gn(y.bottom,0);E?U=k-2*(ie!==0||se!==0?ie+se:gn(y.left,y.right)):L=S-2*(te!==0||ce!==0?te+ce:gn(y.top,y.bottom))}await p({...n,availableWidth:U,availableHeight:L});const ee=await f.getDimensions(d.floating);return k!==ee.width||S!==ee.height?{reset:{rects:!0}}:{}}}};function $c(){return typeof window<"u"}function ti(e){return q0(e)?(e.nodeName||"").toLowerCase():"#document"}function vn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function ca(e){var n;return(n=(q0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function q0(e){return $c()?e instanceof Node||e instanceof vn(e).Node:!1}function Hn(e){return $c()?e instanceof Element||e instanceof vn(e).Element:!1}function ia(e){return $c()?e instanceof HTMLElement||e instanceof vn(e).HTMLElement:!1}function Uv(e){return!$c()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vn(e).ShadowRoot}const rA=new Set(["inline","contents"]);function Ul(e){const{overflow:n,overflowX:r,overflowY:o,display:s}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!rA.has(s)}const oA=new Set(["table","td","th"]);function iA(e){return oA.has(ti(e))}const lA=[":popover-open",":modal"];function qc(e){return lA.some(n=>{try{return e.matches(n)}catch{return!1}})}const sA=["transform","translate","scale","rotate","perspective"],cA=["transform","translate","scale","rotate","perspective","filter"],uA=["paint","layout","strict","content"];function Nm(e){const n=zm(),r=Hn(e)?Fn(e):e;return sA.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||cA.some(o=>(r.willChange||"").includes(o))||uA.some(o=>(r.contain||"").includes(o))}function fA(e){let n=hr(e);for(;ia(n)&&!Go(n);){if(Nm(n))return n;if(qc(n))return null;n=hr(n)}return null}function zm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const dA=new Set(["html","body","#document"]);function Go(e){return dA.has(ti(e))}function Fn(e){return vn(e).getComputedStyle(e)}function Wc(e){return Hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hr(e){if(ti(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Uv(e)&&e.host||ca(e);return Uv(n)?n.host:n}function W0(e){const n=hr(e);return Go(n)?e.ownerDocument?e.ownerDocument.body:e.body:ia(n)&&Ul(n)?n:W0(n)}function El(e,n,r){var o;n===void 0&&(n=[]),r===void 0&&(r=!0);const s=W0(e),c=s===((o=e.ownerDocument)==null?void 0:o.body),f=vn(s);if(c){const d=em(f);return n.concat(f,f.visualViewport||[],Ul(s)?s:[],d&&r?El(d):[])}return n.concat(s,El(s,[],r))}function em(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function I0(e){const n=Fn(e);let r=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const s=ia(e),c=s?e.offsetWidth:r,f=s?e.offsetHeight:o,d=kc(r)!==c||kc(o)!==f;return d&&(r=c,o=f),{width:r,height:o,$:d}}function jm(e){return Hn(e)?e:e.contextElement}function $o(e){const n=jm(e);if(!ia(n))return ra(1);const r=n.getBoundingClientRect(),{width:o,height:s,$:c}=I0(n);let f=(c?kc(r.width):r.width)/o,d=(c?kc(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const mA=ra(0);function G0(e){const n=vn(e);return!zm()||!n.visualViewport?mA:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function hA(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==vn(e)?!1:n}function Yr(e,n,r,o){n===void 0&&(n=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),c=jm(e);let f=ra(1);n&&(o?Hn(o)&&(f=$o(o)):f=$o(e));const d=hA(c,r,o)?G0(c):ra(0);let p=(s.left+d.x)/f.x,h=(s.top+d.y)/f.y,y=s.width/f.x,g=s.height/f.y;if(c){const x=vn(c),E=o&&Hn(o)?vn(o):o;let k=x,S=em(k);for(;S&&o&&E!==k;){const T=$o(S),O=S.getBoundingClientRect(),C=Fn(S),A=O.left+(S.clientLeft+parseFloat(C.paddingLeft))*T.x,N=O.top+(S.clientTop+parseFloat(C.paddingTop))*T.y;p*=T.x,h*=T.y,y*=T.x,g*=T.y,p+=A,h+=N,k=vn(S),S=em(k)}}return Oc({width:y,height:g,x:p,y:h})}function Bm(e,n){const r=Wc(e).scrollLeft;return n?n.left+r:Yr(ca(e)).left+r}function X0(e,n,r){r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=o.left+n.scrollLeft-(r?0:Bm(e,o)),c=o.top+n.scrollTop;return{x:s,y:c}}function pA(e){let{elements:n,rect:r,offsetParent:o,strategy:s}=e;const c=s==="fixed",f=ca(o),d=n?qc(n.floating):!1;if(o===f||d&&c)return r;let p={scrollLeft:0,scrollTop:0},h=ra(1);const y=ra(0),g=ia(o);if((g||!g&&!c)&&((ti(o)!=="body"||Ul(f))&&(p=Wc(o)),ia(o))){const E=Yr(o);h=$o(o),y.x=E.x+o.clientLeft,y.y=E.y+o.clientTop}const x=f&&!g&&!c?X0(f,p,!0):ra(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-p.scrollLeft*h.x+y.x+x.x,y:r.y*h.y-p.scrollTop*h.y+y.y+x.y}}function yA(e){return Array.from(e.getClientRects())}function gA(e){const n=ca(e),r=Wc(e),o=e.ownerDocument.body,s=gn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),c=gn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let f=-r.scrollLeft+Bm(e);const d=-r.scrollTop;return Fn(o).direction==="rtl"&&(f+=gn(n.clientWidth,o.clientWidth)-s),{width:s,height:c,x:f,y:d}}function vA(e,n){const r=vn(e),o=ca(e),s=r.visualViewport;let c=o.clientWidth,f=o.clientHeight,d=0,p=0;if(s){c=s.width,f=s.height;const h=zm();(!h||h&&n==="fixed")&&(d=s.offsetLeft,p=s.offsetTop)}return{width:c,height:f,x:d,y:p}}const bA=new Set(["absolute","fixed"]);function xA(e,n){const r=Yr(e,!0,n==="fixed"),o=r.top+e.clientTop,s=r.left+e.clientLeft,c=ia(e)?$o(e):ra(1),f=e.clientWidth*c.x,d=e.clientHeight*c.y,p=s*c.x,h=o*c.y;return{width:f,height:d,x:p,y:h}}function Pv(e,n,r){let o;if(n==="viewport")o=vA(e,r);else if(n==="document")o=gA(ca(e));else if(Hn(n))o=xA(n,r);else{const s=G0(e);o={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return Oc(o)}function K0(e,n){const r=hr(e);return r===n||!Hn(r)||Go(r)?!1:Fn(r).position==="fixed"||K0(r,n)}function wA(e,n){const r=n.get(e);if(r)return r;let o=El(e,[],!1).filter(d=>Hn(d)&&ti(d)!=="body"),s=null;const c=Fn(e).position==="fixed";let f=c?hr(e):e;for(;Hn(f)&&!Go(f);){const d=Fn(f),p=Nm(f);!p&&d.position==="fixed"&&(s=null),(c?!p&&!s:!p&&d.position==="static"&&!!s&&bA.has(s.position)||Ul(f)&&!p&&K0(e,f))?o=o.filter(y=>y!==f):s=d,f=hr(f)}return n.set(e,o),o}function SA(e){let{element:n,boundary:r,rootBoundary:o,strategy:s}=e;const f=[...r==="clippingAncestors"?qc(n)?[]:wA(n,this._c):[].concat(r),o],d=f[0],p=f.reduce((h,y)=>{const g=Pv(n,y,s);return h.top=gn(g.top,h.top),h.right=mr(g.right,h.right),h.bottom=mr(g.bottom,h.bottom),h.left=gn(g.left,h.left),h},Pv(n,d,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function _A(e){const{width:n,height:r}=I0(e);return{width:n,height:r}}function EA(e,n,r){const o=ia(n),s=ca(n),c=r==="fixed",f=Yr(e,!0,c,n);let d={scrollLeft:0,scrollTop:0};const p=ra(0);function h(){p.x=Bm(s)}if(o||!o&&!c)if((ti(n)!=="body"||Ul(s))&&(d=Wc(n)),o){const E=Yr(n,!0,c,n);p.x=E.x+n.clientLeft,p.y=E.y+n.clientTop}else s&&h();c&&!o&&s&&h();const y=s&&!o&&!c?X0(s,d):ra(0),g=f.left+d.scrollLeft-p.x-y.x,x=f.top+d.scrollTop-p.y-y.y;return{x:g,y:x,width:f.width,height:f.height}}function Nd(e){return Fn(e).position==="static"}function Hv(e,n){if(!ia(e)||Fn(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return ca(e)===r&&(r=r.ownerDocument.body),r}function Q0(e,n){const r=vn(e);if(qc(e))return r;if(!ia(e)){let s=hr(e);for(;s&&!Go(s);){if(Hn(s)&&!Nd(s))return s;s=hr(s)}return r}let o=Hv(e,n);for(;o&&iA(o)&&Nd(o);)o=Hv(o,n);return o&&Go(o)&&Nd(o)&&!Nm(o)?r:o||fA(e)||r}const TA=async function(e){const n=this.getOffsetParent||Q0,r=this.getDimensions,o=await r(e.floating);return{reference:EA(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function kA(e){return Fn(e).direction==="rtl"}const CA={convertOffsetParentRelativeRectToViewportRelativeRect:pA,getDocumentElement:ca,getClippingRect:SA,getOffsetParent:Q0,getElementRects:TA,getClientRects:yA,getDimensions:_A,getScale:$o,isElement:Hn,isRTL:kA};function J0(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function OA(e,n){let r=null,o;const s=ca(e);function c(){var d;clearTimeout(o),(d=r)==null||d.disconnect(),r=null}function f(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),c();const h=e.getBoundingClientRect(),{left:y,top:g,width:x,height:E}=h;if(d||n(),!x||!E)return;const k=ac(g),S=ac(s.clientWidth-(y+x)),T=ac(s.clientHeight-(g+E)),O=ac(y),A={rootMargin:-k+"px "+-S+"px "+-T+"px "+-O+"px",threshold:gn(0,mr(1,p))||1};let N=!0;function M(q){const L=q[0].intersectionRatio;if(L!==p){if(!N)return f();L?f(!1,L):o=setTimeout(()=>{f(!1,1e-7)},1e3)}L===1&&!J0(h,e.getBoundingClientRect())&&f(),N=!1}try{r=new IntersectionObserver(M,{...A,root:s.ownerDocument})}catch{r=new IntersectionObserver(M,A)}r.observe(e)}return f(!0),c}function AA(e,n,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,h=jm(e),y=s||c?[...h?El(h):[],...El(n)]:[];y.forEach(O=>{s&&O.addEventListener("scroll",r,{passive:!0}),c&&O.addEventListener("resize",r)});const g=h&&d?OA(h,r):null;let x=-1,E=null;f&&(E=new ResizeObserver(O=>{let[C]=O;C&&C.target===h&&E&&(E.unobserve(n),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var A;(A=E)==null||A.observe(n)})),r()}),h&&!p&&E.observe(h),E.observe(n));let k,S=p?Yr(e):null;p&&T();function T(){const O=Yr(e);S&&!J0(S,O)&&r(),S=O,k=requestAnimationFrame(T)}return r(),()=>{var O;y.forEach(C=>{s&&C.removeEventListener("scroll",r),c&&C.removeEventListener("resize",r)}),g?.(),(O=E)==null||O.disconnect(),E=null,p&&cancelAnimationFrame(k)}}const RA=eA,MA=tA,DA=KO,NA=aA,zA=QO,Fv=XO,jA=nA,BA=(e,n,r)=>{const o=new Map,s={platform:CA,...r},c={...s.platform,_c:o};return GO(e,n,{...s,platform:c})};var LA=typeof document<"u",UA=function(){},wc=LA?b.useLayoutEffect:UA;function Ac(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,o,s;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(o=r;o--!==0;)if(!Ac(e[o],n[o]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(n,s[o]))return!1;for(o=r;o--!==0;){const c=s[o];if(!(c==="_owner"&&e.$$typeof)&&!Ac(e[c],n[c]))return!1}return!0}return e!==e&&n!==n}function ex(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vv(e,n){const r=ex(e);return Math.round(n*r)/r}function zd(e){const n=b.useRef(e);return wc(()=>{n.current=e}),n}function PA(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:c,floating:f}={},transform:d=!0,whileElementsMounted:p,open:h}=e,[y,g]=b.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[x,E]=b.useState(o);Ac(x,o)||E(o);const[k,S]=b.useState(null),[T,O]=b.useState(null),C=b.useCallback(H=>{H!==q.current&&(q.current=H,S(H))},[]),A=b.useCallback(H=>{H!==L.current&&(L.current=H,O(H))},[]),N=c||k,M=f||T,q=b.useRef(null),L=b.useRef(null),U=b.useRef(y),ee=p!=null,ie=zd(p),se=zd(s),te=zd(h),ce=b.useCallback(()=>{if(!q.current||!L.current)return;const H={placement:n,strategy:r,middleware:x};se.current&&(H.platform=se.current),BA(q.current,L.current,H).then(ye=>{const R={...ye,isPositioned:te.current!==!1};he.current&&!Ac(U.current,R)&&(U.current=R,Bl.flushSync(()=>{g(R)}))})},[x,n,r,se,te]);wc(()=>{h===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,g(H=>({...H,isPositioned:!1})))},[h]);const he=b.useRef(!1);wc(()=>(he.current=!0,()=>{he.current=!1}),[]),wc(()=>{if(N&&(q.current=N),M&&(L.current=M),N&&M){if(ie.current)return ie.current(N,M,ce);ce()}},[N,M,ce,ie,ee]);const pe=b.useMemo(()=>({reference:q,floating:L,setReference:C,setFloating:A}),[C,A]),B=b.useMemo(()=>({reference:N,floating:M}),[N,M]),I=b.useMemo(()=>{const H={position:r,left:0,top:0};if(!B.floating)return H;const ye=Vv(B.floating,y.x),R=Vv(B.floating,y.y);return d?{...H,transform:"translate("+ye+"px, "+R+"px)",...ex(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ye,top:R}},[r,d,B.floating,y.x,y.y]);return b.useMemo(()=>({...y,update:ce,refs:pe,elements:B,floatingStyles:I}),[y,ce,pe,B,I])}const HA=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:s}=typeof e=="function"?e(r):e;return o&&n(o)?o.current!=null?Fv({element:o.current,padding:s}).fn(r):{}:o?Fv({element:o,padding:s}).fn(r):{}}}},FA=(e,n)=>({...RA(e),options:[e,n]}),VA=(e,n)=>({...MA(e),options:[e,n]}),ZA=(e,n)=>({...jA(e),options:[e,n]}),YA=(e,n)=>({...DA(e),options:[e,n]}),$A=(e,n)=>({...NA(e),options:[e,n]}),qA=(e,n)=>({...zA(e),options:[e,n]}),WA=(e,n)=>({...HA(e),options:[e,n]});var IA="Arrow",tx=b.forwardRef((e,n)=>{const{children:r,width:o=10,height:s=5,...c}=e;return w.jsx(Ge.svg,{...c,ref:n,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});tx.displayName=IA;var GA=tx;function nx(e){const[n,r]=b.useState(void 0);return Xt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let f,d;if("borderBoxSize"in c){const p=c.borderBoxSize,h=Array.isArray(p)?p[0]:p;f=h.inlineSize,d=h.blockSize}else f=e.offsetWidth,d=e.offsetHeight;r({width:f,height:d})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),n}var Lm="Popper",[ax,Ic]=Xr(Lm),[XA,rx]=ax(Lm),ox=e=>{const{__scopePopper:n,children:r}=e,[o,s]=b.useState(null);return w.jsx(XA,{scope:n,anchor:o,onAnchorChange:s,children:r})};ox.displayName=Lm;var ix="PopperAnchor",lx=b.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:o,...s}=e,c=rx(ix,r),f=b.useRef(null),d=ft(n,f);return b.useEffect(()=>{c.onAnchorChange(o?.current||f.current)}),o?null:w.jsx(Ge.div,{...s,ref:d})});lx.displayName=ix;var Um="PopperContent",[KA,QA]=ax(Um),sx=b.forwardRef((e,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:s=0,align:c="center",alignOffset:f=0,arrowPadding:d=0,avoidCollisions:p=!0,collisionBoundary:h=[],collisionPadding:y=0,sticky:g="partial",hideWhenDetached:x=!1,updatePositionStrategy:E="optimized",onPlaced:k,...S}=e,T=rx(Um,r),[O,C]=b.useState(null),A=ft(n,oe=>C(oe)),[N,M]=b.useState(null),q=nx(N),L=q?.width??0,U=q?.height??0,ee=o+(c!=="center"?"-"+c:""),ie=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},se=Array.isArray(h)?h:[h],te=se.length>0,ce={padding:ie,boundary:se.filter(eR),altBoundary:te},{refs:he,floatingStyles:pe,placement:B,isPositioned:I,middlewareData:H}=PA({strategy:"fixed",placement:ee,whileElementsMounted:(...oe)=>AA(...oe,{animationFrame:E==="always"}),elements:{reference:T.anchor},middleware:[FA({mainAxis:s+U,alignmentAxis:f}),p&&VA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?ZA():void 0,...ce}),p&&YA({...ce}),$A({...ce,apply:({elements:oe,rects:_e,availableWidth:Be,availableHeight:Ne})=>{const{width:Ue,height:Ve}=_e.reference,_t=oe.floating.style;_t.setProperty("--radix-popper-available-width",`${Be}px`),_t.setProperty("--radix-popper-available-height",`${Ne}px`),_t.setProperty("--radix-popper-anchor-width",`${Ue}px`),_t.setProperty("--radix-popper-anchor-height",`${Ve}px`)}}),N&&WA({element:N,padding:d}),tR({arrowWidth:L,arrowHeight:U}),x&&qA({strategy:"referenceHidden",...ce})]}),[ye,R]=fx(B),K=dr(k);Xt(()=>{I&&K?.()},[I,K]);const le=H.arrow?.x,ae=H.arrow?.y,fe=H.arrow?.centerOffset!==0,[ke,we]=b.useState();return Xt(()=>{O&&we(window.getComputedStyle(O).zIndex)},[O]),w.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:I?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(KA,{scope:r,placedSide:ye,onArrowChange:M,arrowX:le,arrowY:ae,shouldHideArrow:fe,children:w.jsx(Ge.div,{"data-side":ye,"data-align":R,...S,ref:A,style:{...S.style,animation:I?void 0:"none"}})})})});sx.displayName=Um;var cx="PopperArrow",JA={top:"bottom",right:"left",bottom:"top",left:"right"},ux=b.forwardRef(function(n,r){const{__scopePopper:o,...s}=n,c=QA(cx,o),f=JA[c.placedSide];return w.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:w.jsx(GA,{...s,ref:r,style:{...s.style,display:"block"}})})});ux.displayName=cx;function eR(e){return e!==null}var tR=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:o,middlewareData:s}=n,f=s.arrow?.centerOffset!==0,d=f?0:e.arrowWidth,p=f?0:e.arrowHeight,[h,y]=fx(r),g={start:"0%",center:"50%",end:"100%"}[y],x=(s.arrow?.x??0)+d/2,E=(s.arrow?.y??0)+p/2;let k="",S="";return h==="bottom"?(k=f?g:`${x}px`,S=`${-p}px`):h==="top"?(k=f?g:`${x}px`,S=`${o.floating.height+p}px`):h==="right"?(k=`${-p}px`,S=f?g:`${E}px`):h==="left"&&(k=`${o.floating.width+p}px`,S=f?g:`${E}px`),{data:{x:k,y:S}}}});function fx(e){const[n,r="center"]=e.split("-");return[n,r]}var dx=ox,Pm=lx,mx=sx,hx=ux,nR="Portal",Hm=b.forwardRef((e,n)=>{const{container:r,...o}=e,[s,c]=b.useState(!1);Xt(()=>c(!0),[]);const f=r||s&&globalThis?.document?.body;return f?mO.createPortal(w.jsx(Ge.div,{...o,ref:n}),f):null});Hm.displayName=nR;function aR(e,n){return b.useReducer((r,o)=>n[r][o]??r,e)}var Gc=e=>{const{present:n,children:r}=e,o=rR(n),s=typeof r=="function"?r({present:o.isPresent}):b.Children.only(r),c=ft(o.ref,oR(s));return typeof r=="function"||o.isPresent?b.cloneElement(s,{ref:c}):null};Gc.displayName="Presence";function rR(e){const[n,r]=b.useState(),o=b.useRef(null),s=b.useRef(e),c=b.useRef("none"),f=e?"mounted":"unmounted",[d,p]=aR(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const h=rc(o.current);c.current=d==="mounted"?h:"none"},[d]),Xt(()=>{const h=o.current,y=s.current;if(y!==e){const x=c.current,E=rc(h);e?p("MOUNT"):E==="none"||h?.display==="none"?p("UNMOUNT"):p(y&&x!==E?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,p]),Xt(()=>{if(n){let h;const y=n.ownerDocument.defaultView??window,g=E=>{const S=rc(o.current).includes(E.animationName);if(E.target===n&&S&&(p("ANIMATION_END"),!s.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",h=y.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},x=E=>{E.target===n&&(c.current=rc(o.current))};return n.addEventListener("animationstart",x),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{y.clearTimeout(h),n.removeEventListener("animationstart",x),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:b.useCallback(h=>{o.current=h?getComputedStyle(h):null,r(h)},[])}}function rc(e){return e?.animationName||"none"}function oR(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var iR=Pb[" useInsertionEffect ".trim().toString()]||Xt;function Tl({prop:e,defaultProp:n,onChange:r=()=>{},caller:o}){const[s,c,f]=lR({defaultProp:n,onChange:r}),d=e!==void 0,p=d?e:s;{const y=b.useRef(e!==void 0);b.useEffect(()=>{const g=y.current;g!==d&&console.warn(`${o} is changing from ${g?"controlled":"uncontrolled"} to ${d?"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.`),y.current=d},[d,o])}const h=b.useCallback(y=>{if(d){const g=sR(y)?y(e):y;g!==e&&f.current?.(g)}else c(y)},[d,e,c,f]);return[p,h]}function lR({defaultProp:e,onChange:n}){const[r,o]=b.useState(e),s=b.useRef(r),c=b.useRef(n);return iR(()=>{c.current=n},[n]),b.useEffect(()=>{s.current!==r&&(c.current?.(r),s.current=r)},[r,s]),[r,o,c]}function sR(e){return typeof e=="function"}var cR=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Ho=new WeakMap,oc=new WeakMap,ic={},jd=0,px=function(e){return e&&(e.host||px(e.parentNode))},uR=function(e,n){return n.map(function(r){if(e.contains(r))return r;var o=px(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},fR=function(e,n,r,o){var s=uR(n,Array.isArray(e)?e:[e]);ic[r]||(ic[r]=new WeakMap);var c=ic[r],f=[],d=new Set,p=new Set(s),h=function(g){!g||d.has(g)||(d.add(g),h(g.parentNode))};s.forEach(h);var y=function(g){!g||p.has(g)||Array.prototype.forEach.call(g.children,function(x){if(d.has(x))y(x);else try{var E=x.getAttribute(o),k=E!==null&&E!=="false",S=(Ho.get(x)||0)+1,T=(c.get(x)||0)+1;Ho.set(x,S),c.set(x,T),f.push(x),S===1&&k&&oc.set(x,!0),T===1&&x.setAttribute(r,"true"),k||x.setAttribute(o,"true")}catch(O){console.error("aria-hidden: cannot operate on ",x,O)}})};return y(n),d.clear(),jd++,function(){f.forEach(function(g){var x=Ho.get(g)-1,E=c.get(g)-1;Ho.set(g,x),c.set(g,E),x||(oc.has(g)||g.removeAttribute(o),oc.delete(g)),E||g.removeAttribute(r)}),jd--,jd||(Ho=new WeakMap,Ho=new WeakMap,oc=new WeakMap,ic={})}},yx=function(e,n,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=cR(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),fR(o,s,r,"aria-hidden")):function(){return null}},ea=function(){return ea=Object.assign||function(n){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(n[c]=r[c])}return n},ea.apply(this,arguments)};function gx(e,n){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function dR(e,n,r){if(r||arguments.length===2)for(var o=0,s=n.length,c;o<s;o++)(c||!(o in n))&&(c||(c=Array.prototype.slice.call(n,0,o)),c[o]=n[o]);return e.concat(c||Array.prototype.slice.call(n))}var Sc="right-scroll-bar-position",_c="width-before-scroll-bar",mR="with-scroll-bars-hidden",hR="--removed-body-scroll-bar-size";function Bd(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function pR(e,n){var r=b.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=n,r.facade}var yR=typeof window<"u"?b.useLayoutEffect:b.useEffect,Zv=new WeakMap;function gR(e,n){var r=pR(null,function(o){return e.forEach(function(s){return Bd(s,o)})});return yR(function(){var o=Zv.get(r);if(o){var s=new Set(o),c=new Set(e),f=r.current;s.forEach(function(d){c.has(d)||Bd(d,null)}),c.forEach(function(d){s.has(d)||Bd(d,f)})}Zv.set(r,e)},[e]),r}function vR(e){return e}function bR(e,n){n===void 0&&(n=vR);var r=[],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 r.length?r[r.length-1]:e},useMedium:function(c){var f=n(c,o);return r.push(f),function(){r=r.filter(function(d){return d!==f})}},assignSyncMedium:function(c){for(o=!0;r.length;){var f=r;r=[],f.forEach(c)}r={push:function(d){return c(d)},filter:function(){return r}}},assignMedium:function(c){o=!0;var f=[];if(r.length){var d=r;r=[],d.forEach(c),f=r}var p=function(){var y=f;f=[],y.forEach(c)},h=function(){return Promise.resolve().then(p)};h(),r={push:function(y){f.push(y),h()},filter:function(y){return f=f.filter(y),r}}}};return s}function xR(e){e===void 0&&(e={});var n=bR(null);return n.options=ea({async:!0,ssr:!1},e),n}var vx=function(e){var n=e.sideCar,r=gx(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return b.createElement(o,ea({},r))};vx.isSideCarExport=!0;function wR(e,n){return e.useMedium(n),vx}var bx=xR(),Ld=function(){},Xc=b.forwardRef(function(e,n){var r=b.useRef(null),o=b.useState({onScrollCapture:Ld,onWheelCapture:Ld,onTouchMoveCapture:Ld}),s=o[0],c=o[1],f=e.forwardProps,d=e.children,p=e.className,h=e.removeScrollBar,y=e.enabled,g=e.shards,x=e.sideCar,E=e.noRelative,k=e.noIsolation,S=e.inert,T=e.allowPinchZoom,O=e.as,C=O===void 0?"div":O,A=e.gapMode,N=gx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=x,q=gR([r,n]),L=ea(ea({},N),s);return b.createElement(b.Fragment,null,y&&b.createElement(M,{sideCar:bx,removeScrollBar:h,shards:g,noRelative:E,noIsolation:k,inert:S,setCallbacks:c,allowPinchZoom:!!T,lockRef:r,gapMode:A}),f?b.cloneElement(b.Children.only(d),ea(ea({},L),{ref:q})):b.createElement(C,ea({},L,{className:p,ref:q}),d))});Xc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xc.classNames={fullWidth:_c,zeroRight:Sc};var SR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _R(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=SR();return n&&e.setAttribute("nonce",n),e}function ER(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function TR(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var kR=function(){var e=0,n=null;return{add:function(r){e==0&&(n=_R())&&(ER(n,r),TR(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},CR=function(){var e=kR();return function(n,r){b.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},xx=function(){var e=CR(),n=function(r){var o=r.styles,s=r.dynamic;return e(o,s),null};return n},OR={left:0,top:0,right:0,gap:0},Ud=function(e){return parseInt(e||"",10)||0},AR=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],o=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[Ud(r),Ud(o),Ud(s)]},RR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return OR;var n=AR(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,o-r+n[2]-n[0])}},MR=xx(),qo="data-scroll-locked",DR=function(e,n,r,o){var s=e.left,c=e.top,f=e.right,d=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(mR,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(d,"px ").concat(o,`;
  }
  body[`).concat(qo,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([n&&"position: relative ".concat(o,";"),r==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(c,`px;
    padding-right: `).concat(f,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(d,"px ").concat(o,`;
    `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Sc,` {
    right: `).concat(d,"px ").concat(o,`;
  }
  
  .`).concat(_c,` {
    margin-right: `).concat(d,"px ").concat(o,`;
  }
  
  .`).concat(Sc," .").concat(Sc,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(_c," .").concat(_c,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(qo,`] {
    `).concat(hR,": ").concat(d,`px;
  }
`)},Yv=function(){var e=parseInt(document.body.getAttribute(qo)||"0",10);return isFinite(e)?e:0},NR=function(){b.useEffect(function(){return document.body.setAttribute(qo,(Yv()+1).toString()),function(){var e=Yv()-1;e<=0?document.body.removeAttribute(qo):document.body.setAttribute(qo,e.toString())}},[])},zR=function(e){var n=e.noRelative,r=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;NR();var c=b.useMemo(function(){return RR(s)},[s]);return b.createElement(MR,{styles:DR(c,!n,s,r?"":"!important")})},tm=!1;if(typeof window<"u")try{var lc=Object.defineProperty({},"passive",{get:function(){return tm=!0,!0}});window.addEventListener("test",lc,lc),window.removeEventListener("test",lc,lc)}catch{tm=!1}var Fo=tm?{passive:!1}:!1,jR=function(e){return e.tagName==="TEXTAREA"},wx=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!jR(e)&&r[n]==="visible")},BR=function(e){return wx(e,"overflowY")},LR=function(e){return wx(e,"overflowX")},$v=function(e,n){var r=n.ownerDocument,o=n;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=Sx(e,o);if(s){var c=_x(e,o),f=c[1],d=c[2];if(f>d)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},UR=function(e){var n=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[n,r,o]},PR=function(e){var n=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[n,r,o]},Sx=function(e,n){return e==="v"?BR(n):LR(n)},_x=function(e,n){return e==="v"?UR(n):PR(n)},HR=function(e,n){return e==="h"&&n==="rtl"?-1:1},FR=function(e,n,r,o,s){var c=HR(e,window.getComputedStyle(n).direction),f=c*o,d=r.target,p=n.contains(d),h=!1,y=f>0,g=0,x=0;do{if(!d)break;var E=_x(e,d),k=E[0],S=E[1],T=E[2],O=S-T-c*k;(k||O)&&Sx(e,d)&&(g+=O,x+=k);var C=d.parentNode;d=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!p&&d!==document.body||p&&(n.contains(d)||n===d));return(y&&Math.abs(g)<1||!y&&Math.abs(x)<1)&&(h=!0),h},sc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qv=function(e){return[e.deltaX,e.deltaY]},Wv=function(e){return e&&"current"in e?e.current:e},VR=function(e,n){return e[0]===n[0]&&e[1]===n[1]},ZR=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},YR=0,Vo=[];function $R(e){var n=b.useRef([]),r=b.useRef([0,0]),o=b.useRef(),s=b.useState(YR++)[0],c=b.useState(xx)[0],f=b.useRef(e);b.useEffect(function(){f.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=dR([e.lockRef.current],(e.shards||[]).map(Wv),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var d=b.useCallback(function(S,T){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!f.current.allowPinchZoom;var O=sc(S),C=r.current,A="deltaX"in S?S.deltaX:C[0]-O[0],N="deltaY"in S?S.deltaY:C[1]-O[1],M,q=S.target,L=Math.abs(A)>Math.abs(N)?"h":"v";if("touches"in S&&L==="h"&&q.type==="range")return!1;var U=$v(L,q);if(!U)return!0;if(U?M=L:(M=L==="v"?"h":"v",U=$v(L,q)),!U)return!1;if(!o.current&&"changedTouches"in S&&(A||N)&&(o.current=M),!M)return!0;var ee=o.current||M;return FR(ee,T,S,ee==="h"?A:N)},[]),p=b.useCallback(function(S){var T=S;if(!(!Vo.length||Vo[Vo.length-1]!==c)){var O="deltaY"in T?qv(T):sc(T),C=n.current.filter(function(M){return M.name===T.type&&(M.target===T.target||T.target===M.shadowParent)&&VR(M.delta,O)})[0];if(C&&C.should){T.cancelable&&T.preventDefault();return}if(!C){var A=(f.current.shards||[]).map(Wv).filter(Boolean).filter(function(M){return M.contains(T.target)}),N=A.length>0?d(T,A[0]):!f.current.noIsolation;N&&T.cancelable&&T.preventDefault()}}},[]),h=b.useCallback(function(S,T,O,C){var A={name:S,delta:T,target:O,should:C,shadowParent:qR(O)};n.current.push(A),setTimeout(function(){n.current=n.current.filter(function(N){return N!==A})},1)},[]),y=b.useCallback(function(S){r.current=sc(S),o.current=void 0},[]),g=b.useCallback(function(S){h(S.type,qv(S),S.target,d(S,e.lockRef.current))},[]),x=b.useCallback(function(S){h(S.type,sc(S),S.target,d(S,e.lockRef.current))},[]);b.useEffect(function(){return Vo.push(c),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:x}),document.addEventListener("wheel",p,Fo),document.addEventListener("touchmove",p,Fo),document.addEventListener("touchstart",y,Fo),function(){Vo=Vo.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,Fo),document.removeEventListener("touchmove",p,Fo),document.removeEventListener("touchstart",y,Fo)}},[]);var E=e.removeScrollBar,k=e.inert;return b.createElement(b.Fragment,null,k?b.createElement(c,{styles:ZR(s)}):null,E?b.createElement(zR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qR(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const WR=wR(bx,$R);var Fm=b.forwardRef(function(e,n){return b.createElement(Xc,ea({},e,{ref:n,sideCar:WR}))});Fm.classNames=Xc.classNames;var Kc="Popover",[Ex,c6]=Xr(Kc,[Ic]),Pl=Ic(),[IR,pr]=Ex(Kc),Tx=e=>{const{__scopePopover:n,children:r,open:o,defaultOpen:s,onOpenChange:c,modal:f=!1}=e,d=Pl(n),p=b.useRef(null),[h,y]=b.useState(!1),[g,x]=Tl({prop:o,defaultProp:s??!1,onChange:c,caller:Kc});return w.jsx(dx,{...d,children:w.jsx(IR,{scope:n,contentId:Ll(),triggerRef:p,open:g,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(E=>!E),[x]),hasCustomAnchor:h,onCustomAnchorAdd:b.useCallback(()=>y(!0),[]),onCustomAnchorRemove:b.useCallback(()=>y(!1),[]),modal:f,children:r})})};Tx.displayName=Kc;var kx="PopoverAnchor",GR=b.forwardRef((e,n)=>{const{__scopePopover:r,...o}=e,s=pr(kx,r),c=Pl(r),{onCustomAnchorAdd:f,onCustomAnchorRemove:d}=s;return b.useEffect(()=>(f(),()=>d()),[f,d]),w.jsx(Pm,{...c,...o,ref:n})});GR.displayName=kx;var Cx="PopoverTrigger",Ox=b.forwardRef((e,n)=>{const{__scopePopover:r,...o}=e,s=pr(Cx,r),c=Pl(r),f=ft(n,s.triggerRef),d=w.jsx(Ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Nx(s.open),...o,ref:f,onClick:Ye(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?d:w.jsx(Pm,{asChild:!0,...c,children:d})});Ox.displayName=Cx;var Vm="PopoverPortal",[XR,KR]=Ex(Vm,{forceMount:void 0}),Ax=e=>{const{__scopePopover:n,forceMount:r,children:o,container:s}=e,c=pr(Vm,n);return w.jsx(XR,{scope:n,forceMount:r,children:w.jsx(Gc,{present:r||c.open,children:w.jsx(Hm,{asChild:!0,container:s,children:o})})})};Ax.displayName=Vm;var Xo="PopoverContent",Rx=b.forwardRef((e,n)=>{const r=KR(Xo,e.__scopePopover),{forceMount:o=r.forceMount,...s}=e,c=pr(Xo,e.__scopePopover);return w.jsx(Gc,{present:o||c.open,children:c.modal?w.jsx(JR,{...s,ref:n}):w.jsx(eM,{...s,ref:n})})});Rx.displayName=Xo;var QR=Io("PopoverContent.RemoveScroll"),JR=b.forwardRef((e,n)=>{const r=pr(Xo,e.__scopePopover),o=b.useRef(null),s=ft(n,o),c=b.useRef(!1);return b.useEffect(()=>{const f=o.current;if(f)return yx(f)},[]),w.jsx(Fm,{as:QR,allowPinchZoom:!0,children:w.jsx(Mx,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ye(e.onCloseAutoFocus,f=>{f.preventDefault(),c.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Ye(e.onPointerDownOutside,f=>{const d=f.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,h=d.button===2||p;c.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:Ye(e.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})}),eM=b.forwardRef((e,n)=>{const r=pr(Xo,e.__scopePopover),o=b.useRef(!1),s=b.useRef(!1);return w.jsx(Mx,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{e.onCloseAutoFocus?.(c),c.defaultPrevented||(o.current||r.triggerRef.current?.focus(),c.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:c=>{e.onInteractOutside?.(c),c.defaultPrevented||(o.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=c.target;r.triggerRef.current?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),Mx=b.forwardRef((e,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:h,onInteractOutside:y,...g}=e,x=pr(Xo,r),E=Pl(r);return V0(),w.jsx(Am,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:c,children:w.jsx(Om,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:y,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:h,onDismiss:()=>x.onOpenChange(!1),children:w.jsx(mx,{"data-state":Nx(x.open),role:"dialog",id:x.contentId,...E,...g,ref:n,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Dx="PopoverClose",tM=b.forwardRef((e,n)=>{const{__scopePopover:r,...o}=e,s=pr(Dx,r);return w.jsx(Ge.button,{type:"button",...o,ref:n,onClick:Ye(e.onClick,()=>s.onOpenChange(!1))})});tM.displayName=Dx;var nM="PopoverArrow",aM=b.forwardRef((e,n)=>{const{__scopePopover:r,...o}=e,s=Pl(r);return w.jsx(hx,{...s,...o,ref:n})});aM.displayName=nM;function Nx(e){return e?"open":"closed"}var rM=Tx,oM=Ox,iM=Ax,lM=Rx;const Zm="-",sM=e=>{const n=uM(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:f=>{const d=f.split(Zm);return d[0]===""&&d.length!==1&&d.shift(),zx(d,n)||cM(f)},getConflictingClassGroupIds:(f,d)=>{const p=r[f]||[];return d&&o[f]?[...p,...o[f]]:p}}},zx=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],o=n.nextPart.get(r),s=o?zx(e.slice(1),o):void 0;if(s)return s;if(n.validators.length===0)return;const c=e.join(Zm);return n.validators.find(({validator:f})=>f(c))?.classGroupId},Iv=/^\[(.+)\]$/,cM=e=>{if(Iv.test(e)){const n=Iv.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},uM=e=>{const{theme:n,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const s in r)nm(r[s],o,s,n);return o},nm=(e,n,r,o)=>{e.forEach(s=>{if(typeof s=="string"){const c=s===""?n:Gv(n,s);c.classGroupId=r;return}if(typeof s=="function"){if(fM(s)){nm(s(o),n,r,o);return}n.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([c,f])=>{nm(f,Gv(n,c),r,o)})})},Gv=(e,n)=>{let r=e;return n.split(Zm).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},fM=e=>e.isThemeGetter,dM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,o=new Map;const s=(c,f)=>{r.set(c,f),n++,n>e&&(n=0,o=r,r=new Map)};return{get(c){let f=r.get(c);if(f!==void 0)return f;if((f=o.get(c))!==void 0)return s(c,f),f},set(c,f){r.has(c)?r.set(c,f):s(c,f)}}},am="!",rm=":",mM=rm.length,hM=e=>{const{prefix:n,experimentalParseClassName:r}=e;let o=s=>{const c=[];let f=0,d=0,p=0,h;for(let k=0;k<s.length;k++){let S=s[k];if(f===0&&d===0){if(S===rm){c.push(s.slice(p,k)),p=k+mM;continue}if(S==="/"){h=k;continue}}S==="["?f++:S==="]"?f--:S==="("?d++:S===")"&&d--}const y=c.length===0?s:s.substring(p),g=pM(y),x=g!==y,E=h&&h>p?h-p:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:E}};if(n){const s=n+rm,c=o;o=f=>f.startsWith(s)?c(f.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(r){const s=o;o=c=>r({className:c,parseClassName:s})}return o},pM=e=>e.endsWith(am)?e.substring(0,e.length-1):e.startsWith(am)?e.substring(1):e,yM=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const s=[];let c=[];return o.forEach(f=>{f[0]==="["||n[f]?(s.push(...c.sort(),f),c=[]):c.push(f)}),s.push(...c.sort()),s}},gM=e=>({cache:dM(e.cacheSize),parseClassName:hM(e),sortModifiers:yM(e),...sM(e)}),vM=/\s+/,bM=(e,n)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:c}=n,f=[],d=e.trim().split(vM);let p="";for(let h=d.length-1;h>=0;h-=1){const y=d[h],{isExternal:g,modifiers:x,hasImportantModifier:E,baseClassName:k,maybePostfixModifierPosition:S}=r(y);if(g){p=y+(p.length>0?" "+p:p);continue}let T=!!S,O=o(T?k.substring(0,S):k);if(!O){if(!T){p=y+(p.length>0?" "+p:p);continue}if(O=o(k),!O){p=y+(p.length>0?" "+p:p);continue}T=!1}const C=c(x).join(":"),A=E?C+am:C,N=A+O;if(f.includes(N))continue;f.push(N);const M=s(O,T);for(let q=0;q<M.length;++q){const L=M[q];f.push(A+L)}p=y+(p.length>0?" "+p:p)}return p};function xM(){let e=0,n,r,o="";for(;e<arguments.length;)(n=arguments[e++])&&(r=jx(n))&&(o&&(o+=" "),o+=r);return o}const jx=e=>{if(typeof e=="string")return e;let n,r="";for(let o=0;o<e.length;o++)e[o]&&(n=jx(e[o]))&&(r&&(r+=" "),r+=n);return r};function wM(e,...n){let r,o,s,c=f;function f(p){const h=n.reduce((y,g)=>g(y),e());return r=gM(h),o=r.cache.get,s=r.cache.set,c=d,d(p)}function d(p){const h=o(p);if(h)return h;const y=bM(p,r);return s(p,y),y}return function(){return c(xM.apply(null,arguments))}}const Dt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},Bx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,SM=/^\d+\/\d+$/,_M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EM=/\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$/,TM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,CM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zo=e=>SM.test(e),je=e=>!!e&&!Number.isNaN(Number(e)),cr=e=>!!e&&Number.isInteger(Number(e)),Pd=e=>e.endsWith("%")&&je(e.slice(0,-1)),Oa=e=>_M.test(e),OM=()=>!0,AM=e=>EM.test(e)&&!TM.test(e),Ux=()=>!1,RM=e=>kM.test(e),MM=e=>CM.test(e),DM=e=>!ve(e)&&!be(e),NM=e=>ni(e,Fx,Ux),ve=e=>Bx.test(e),Br=e=>ni(e,Vx,AM),Hd=e=>ni(e,UM,je),Xv=e=>ni(e,Px,Ux),zM=e=>ni(e,Hx,MM),cc=e=>ni(e,Zx,RM),be=e=>Lx.test(e),ll=e=>ai(e,Vx),jM=e=>ai(e,PM),Kv=e=>ai(e,Px),BM=e=>ai(e,Fx),LM=e=>ai(e,Hx),uc=e=>ai(e,Zx,!0),ni=(e,n,r)=>{const o=Bx.exec(e);return o?o[1]?n(o[1]):r(o[2]):!1},ai=(e,n,r=!1)=>{const o=Lx.exec(e);return o?o[1]?n(o[1]):r:!1},Px=e=>e==="position"||e==="percentage",Hx=e=>e==="image"||e==="url",Fx=e=>e==="length"||e==="size"||e==="bg-size",Vx=e=>e==="length",UM=e=>e==="number",PM=e=>e==="family-name",Zx=e=>e==="shadow",HM=()=>{const e=Dt("color"),n=Dt("font"),r=Dt("text"),o=Dt("font-weight"),s=Dt("tracking"),c=Dt("leading"),f=Dt("breakpoint"),d=Dt("container"),p=Dt("spacing"),h=Dt("radius"),y=Dt("shadow"),g=Dt("inset-shadow"),x=Dt("text-shadow"),E=Dt("drop-shadow"),k=Dt("blur"),S=Dt("perspective"),T=Dt("aspect"),O=Dt("ease"),C=Dt("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...N(),be,ve],q=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],U=()=>[be,ve,p],ee=()=>[Zo,"full","auto",...U()],ie=()=>[cr,"none","subgrid",be,ve],se=()=>["auto",{span:["full",cr,be,ve]},cr,be,ve],te=()=>[cr,"auto",be,ve],ce=()=>["auto","min","max","fr",be,ve],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...U()],I=()=>[Zo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],H=()=>[e,be,ve],ye=()=>[...N(),Kv,Xv,{position:[be,ve]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",BM,NM,{size:[be,ve]}],le=()=>[Pd,ll,Br],ae=()=>["","none","full",h,be,ve],fe=()=>["",je,ll,Br],ke=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[je,Pd,Kv,Xv],_e=()=>["","none",k,be,ve],Be=()=>["none",je,be,ve],Ne=()=>["none",je,be,ve],Ue=()=>[je,be,ve],Ve=()=>[Zo,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Oa],breakpoint:[Oa],color:[OM],container:[Oa],"drop-shadow":[Oa],ease:["in","out","in-out"],font:[DM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Oa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Oa],shadow:[Oa],spacing:["px",je],text:[Oa],"text-shadow":[Oa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zo,ve,be,T]}],container:["container"],columns:[{columns:[je,ve,be,d]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:M()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[cr,"auto",be,ve]}],basis:[{basis:[Zo,"full","auto",d,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Zo,"auto","initial","none",ve]}],grow:[{grow:["",je,be,ve]}],shrink:[{shrink:["",je,be,ve]}],order:[{order:[cr,"first","last","none",be,ve]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:se()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:se()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[d,"screen",...I()]}],"min-w":[{"min-w":[d,"screen","none",...I()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[f]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",r,ll,Br]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,be,Hd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Pd,ve]}],"font-family":[{font:[jM,ve,n]}],"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,be,ve]}],"line-clamp":[{"line-clamp":[je,"none",be,Hd]}],leading:[{leading:[c,...U()]}],"list-image":[{"list-image":["none",be,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",be,Br]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[je,"auto",be,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ve]}],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",be,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ye()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cr,be,ve],radial:["",be,ve],conic:[cr,be,ve]},LM,zM]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,be,ve]}],"outline-w":[{outline:["",je,ll,Br]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",y,uc,cc]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",g,uc,cc]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[je,Br]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",x,uc,cc]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[je,be,ve]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"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":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[be,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ye()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ve]}],filter:[{filter:["","none",be,ve]}],blur:[{blur:_e()}],brightness:[{brightness:[je,be,ve]}],contrast:[{contrast:[je,be,ve]}],"drop-shadow":[{"drop-shadow":["","none",E,uc,cc]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",je,be,ve]}],"hue-rotate":[{"hue-rotate":[je,be,ve]}],invert:[{invert:["",je,be,ve]}],saturate:[{saturate:[je,be,ve]}],sepia:[{sepia:["",je,be,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ve]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[je,be,ve]}],"backdrop-contrast":[{"backdrop-contrast":[je,be,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,be,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,be,ve]}],"backdrop-invert":[{"backdrop-invert":["",je,be,ve]}],"backdrop-opacity":[{"backdrop-opacity":[je,be,ve]}],"backdrop-saturate":[{"backdrop-saturate":[je,be,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",je,be,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",be,ve]}],ease:[{ease:["linear","initial",O,be,ve]}],delay:[{delay:[je,be,ve]}],animate:[{animate:["none",C,be,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,be,ve]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:Be()}],"rotate-x":[{"rotate-x":Be()}],"rotate-y":[{"rotate-y":Be()}],"rotate-z":[{"rotate-z":Be()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[be,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ve()}],"translate-x":[{"translate-x":Ve()}],"translate-y":[{"translate-y":Ve()}],"translate-z":[{"translate-z":Ve()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"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",be,ve]}],"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":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",be,ve]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[je,ll,Br,Hd]}],stroke:[{stroke:["none",...H()]}],"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"]}},FM=wM(HM);function qt(...e){return FM(Na(e))}function VM({...e}){return w.jsx(rM,{"data-slot":"popover",...e})}function ZM({...e}){return w.jsx(oM,{"data-slot":"popover-trigger",...e})}function YM({className:e,align:n="center",sideOffset:r=4,...o}){return w.jsx(iM,{children:w.jsx(lM,{"data-slot":"popover-content",align:n,sideOffset:r,className:qt("bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...o})})}const Qv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Jv=Na,$M=(e,n)=>r=>{var o;if(n?.variants==null)return Jv(e,r?.class,r?.className);const{variants:s,defaultVariants:c}=n,f=Object.keys(s).map(h=>{const y=r?.[h],g=c?.[h];if(y===null)return null;const x=Qv(y)||Qv(g);return s[h][x]}),d=r&&Object.entries(r).reduce((h,y)=>{let[g,x]=y;return x===void 0||(h[g]=x),h},{}),p=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((h,y)=>{let{class:g,className:x,...E}=y;return Object.entries(E).every(k=>{let[S,T]=k;return Array.isArray(T)?T.includes({...c,...d}[S]):{...c,...d}[S]===T})?[...h,g,x]:h},[]);return Jv(e,f,p,r?.class,r?.className)},qM=$M("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 Ym({className:e,variant:n,size:r,asChild:o=!1,...s}){const c=o?P0:"button";return w.jsx(c,{"data-slot":"button",className:qt(qM({variant:n,size:r,className:e})),...s})}/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WM=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),IM=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,o)=>o?o.toUpperCase():r.toLowerCase()),eb=e=>{const n=IM(e);return n.charAt(0).toUpperCase()+n.slice(1)},Yx=(...e)=>e.filter((n,r,o)=>!!n&&n.trim()!==""&&o.indexOf(n)===r).join(" ").trim(),GM=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var XM={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.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KM=b.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:s="",children:c,iconNode:f,...d},p)=>b.createElement("svg",{ref:p,...XM,width:n,height:n,stroke:e,strokeWidth:o?Number(r)*24/Number(n):r,className:Yx("lucide",s),...!c&&!GM(d)&&{"aria-hidden":"true"},...d},[...f.map(([h,y])=>b.createElement(h,y)),...Array.isArray(c)?c:[c]]));/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zn=(e,n)=>{const r=b.forwardRef(({className:o,...s},c)=>b.createElement(KM,{ref:c,iconNode:n,className:Yx(`lucide-${WM(eb(e))}`,`lucide-${e}`,o),...s}));return r.displayName=eb(e),r};/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],JM=Zn("arrow-right",QM);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eD=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],tD=Zn("bed-double",eD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nD=[["path",{d:"M3 20v-8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8",key:"1wm6mi"}],["path",{d:"M5 10V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4",key:"4k93s5"}],["path",{d:"M3 18h18",key:"1h113x"}]],aD=Zn("bed-single",nD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rD=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$x=Zn("check",rD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oD=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],qx=Zn("chevron-down",oD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iD=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],lD=Zn("chevron-up",iD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],cD=Zn("circle",sD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uD=[["path",{d:"M5.116 4.104A1 1 0 0 1 6.11 3h11.78a1 1 0 0 1 .994 1.105L17.19 20.21A2 2 0 0 1 15.2 22H8.8a2 2 0 0 1-2-1.79z",key:"p55z4y"}],["path",{d:"M6 12a5 5 0 0 1 6 0 5 5 0 0 0 6 0",key:"mjntcy"}]],fD=Zn("glass-water",uD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dD=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],mD=Zn("house",dD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],pD=Zn("info",hD);/**
 * @license lucide-react v0.525.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yD=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],gD=Zn("users",yD),vD=({rooms:e,adults:n,children:r,onRoomsChange:o,onAdultsChange:s,onChildrenChange:c})=>{const f=g=>{g==="increment"?o(e+1):g==="decrement"&&e>1&&o(e-1)},d=g=>{g==="increment"?s(n+1):g==="decrement"&&n>1&&s(n-1)},p=g=>{g==="increment"?c(r+1):g==="decrement"&&r>0&&c(r-1)},h={width:"30px",height:"30px",borderRadius:"50%",border:"1px solid #ccc",fontSize:"18px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"white"},y={...h,backgroundColor:"#eee",cursor:"not-allowed"};return w.jsxs("div",{className:"p-4",children:[w.jsxs("div",{className:"mb-4",children:[w.jsx("div",{className:"font-bold mb-1",children:"Rooms"}),w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("button",{onClick:()=>f("decrement"),style:e<=1?y:h,disabled:e<=1,children:"-"}),w.jsx("span",{className:"text-lg mx-2",children:e}),w.jsx("button",{onClick:()=>f("increment"),style:h,children:"+"})]})]}),w.jsxs("div",{className:"mb-4",children:[w.jsx("div",{className:"font-bold mb-1",children:"Adults"}),w.jsx("div",{className:"text-xs text-gray-600 mb-1",children:"Ages 18 or above"}),w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("button",{onClick:()=>d("decrement"),style:n<=1?y:h,disabled:n<=1,children:"-"}),w.jsx("span",{className:"text-lg mx-2",children:n}),w.jsx("button",{onClick:()=>d("increment"),style:h,children:"+"})]})]}),w.jsxs("div",{children:[w.jsx("div",{className:"font-bold mb-1",children:"Children"}),w.jsx("div",{className:"text-xs text-gray-600 mb-1",children:"Ages 0-17"}),w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("button",{onClick:()=>p("decrement"),style:r<=0?y:h,disabled:r<=0,children:"-"}),w.jsx("span",{className:"text-lg mx-2",children:r}),w.jsx("button",{onClick:()=>p("increment"),style:h,children:"+"})]})]})]})},bD=()=>{const{rooms:e,adults:n,children:r,setRooms:o,setAdults:s,setChildren:c}=Cm(),f=`${e} Room${e>1?"s":""}`,d=`${n} Adult${n>1?"s":""}${r>0?`, ${r} Children`:""}`,p=g=>{o(g)},h=g=>{s(g)},y=g=>{c(g)};return w.jsx("div",{className:"flex justify-center",children:w.jsxs(VM,{children:[w.jsx(ZM,{asChild:!0,children:w.jsxs(Ym,{variant:"destructive",className:"w-[320px] !bg-white justify-start text-left text-black font-normal border !border-gray-300 mt-10",children:[w.jsx(tD,{}),f,",",w.jsx(gD,{}),d]})}),w.jsx(YM,{className:"w-auto p-0",children:w.jsx(vD,{rooms:e,adults:n,children:r,onRoomsChange:p,onAdultsChange:h,onChildrenChange:y})})]})})};function xD(){return w.jsx(w.Fragment,{children:w.jsx("div",{className:"bg-white shadow rounded flex justify-center",children:w.jsxs("div",{className:"flex items-center",children:[w.jsx(fO,{}),w.jsx(bD,{})]})})})}var Wx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},tb=W.createContext&&W.createContext(Wx),wD=["attr","size","title"];function SD(e,n){if(e==null)return{};var r=_D(e,n),o,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)o=c[s],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function _D(e,n){if(e==null)return{};var r={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(n.indexOf(o)>=0)continue;r[o]=e[o]}return r}function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Rc.apply(this,arguments)}function nb(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function Mc(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?nb(Object(r),!0).forEach(function(o){ED(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function ED(e,n,r){return n=TD(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function TD(e){var n=kD(e,"string");return typeof n=="symbol"?n:n+""}function kD(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,n);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ix(e){return e&&e.map((n,r)=>W.createElement(n.tag,Mc({key:r},n.attr),Ix(n.child)))}function Gx(e){return n=>W.createElement(CD,Rc({attr:Mc({},e.attr)},n),Ix(e.child))}function CD(e){var n=r=>{var{attr:o,size:s,title:c}=e,f=SD(e,wD),d=s||r.size||"1em",p;return r.className&&(p=r.className),e.className&&(p=(p?p+" ":"")+e.className),W.createElement("svg",Rc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,f,{className:p,style:Mc(Mc({color:e.color||r.color},r.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&W.createElement("title",null,c),e.children)};return tb!==void 0?W.createElement(tb.Consumer,null,r=>n(r)):n(Wx)}function OD(e){return Gx({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M96 64a64 64 0 1 1 128 0A64 64 0 1 1 96 64zm48 320l0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-192.2L59.1 321c-9.4 15-29.2 19.4-44.1 10S-4.5 301.9 4.9 287l39.9-63.3C69.7 184 113.2 160 160 160s90.3 24 115.2 63.6L315.1 287c9.4 15 4.9 34.7-10 44.1s-34.7 4.9-44.1-10L240 287.8 240 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96-32 0z"},child:[]}]})(e)}function ab(e){return Gx({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M112 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm40 304l0 128c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-223.1L59.4 304.5c-9.1 15.1-28.8 20-43.9 10.9s-20-28.8-10.9-43.9l58.3-97c17.4-28.9 48.6-46.6 82.3-46.6l29.7 0c33.7 0 64.9 17.7 82.3 46.6l58.3 97c9.1 15.1 4.2 34.8-10.9 43.9s-34.8 4.2-43.9-10.9L232 256.9 232 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-128-16 0z"},child:[]}]})(e)}function AD({price:e,hotelSlug:n}){const r=Pc();function o(s){return new Intl.NumberFormat("en-US",{style:"currency",currency:"PHP",currencyDisplay:"narrowSymbol"}).format(s)}return w.jsx(w.Fragment,{children:e&&w.jsxs("div",{className:"flex basis-full bg-white mb-4 p-5",children:[w.jsx("div",{className:"w-6/12",children:w.jsx("ul",{children:e.perks.map((s,c)=>w.jsxs("li",{className:"flex gap-2",children:[w.jsx($x,{}),s]},c))})}),w.jsx("div",{className:"w-1/12",children:w.jsxs("div",{className:"flex items-center flex-col",children:[w.jsx("div",{children:w.jsx(pD,{size:"15"})}),e.roomPriceCapacity&&e.roomPriceCapacity.rooms&&e.roomPriceCapacity.adult&&w.jsx(w.Fragment,{children:w.jsxs("div",{className:"flex mt-2",children:[w.jsx(ab,{size:"20"}),w.jsx(ab,{size:"20"}),e.roomPriceCapacity.kids?w.jsx("div",{className:"flex items-end",children:w.jsx(OD,{size:"15"})}):""]})})]})}),w.jsx("div",{className:"w-2/12 flex justify-center",children:w.jsx("div",{className:"bg-primary text-white max-h-10 p-4 flex items-center text-center",children:o(e.price)})}),w.jsx("div",{className:"w-1/12 flex justify-center",children:w.jsx("div",{className:"bg-gray-200 w-10 h-10 border border-black flex justify-center items-center",children:"1"})}),w.jsx("div",{className:"w-2/12",children:w.jsx(Ym,{onClick:()=>{r(`/solea/${n}/book`)},variant:"outline",className:"border !border-primary !bg-white text-primary",children:"Book Now"})})]})})}function fc({rooms:e,hotelSlug:n}){return w.jsx(w.Fragment,{children:w.jsx("div",{children:e&&e.map((r,o)=>w.jsxs("div",{className:"border border-gray-300 mb-8",children:[w.jsx("h4",{className:"border border-b-gray-300 font-bold p-4",children:r.name}),w.jsxs("div",{className:"flex bg-gray-100 px-4 py-5",children:[w.jsxs("div",{className:"w-1/6 leading-10",children:[w.jsx("h3",{className:"text-primary font-semibold mb-2",children:"Room photos and details"}),w.jsxs("div",{className:"text-md/7",children:[w.jsxs("p",{className:"flex gap-2 items-center",children:[w.jsx(mD,{})," ",r.room_size]}),w.jsxs("p",{className:"flex gap-2 items-center",children:[w.jsx(aD,{})," ",r.bed]}),w.jsxs("p",{className:"flex gap-2 items-center",children:[w.jsx(fD,{})," ",r.free_drink]})]})]}),w.jsx("div",{className:"w-5/6",children:r.prices.map((s,c)=>w.jsx(AD,{price:s,hotelSlug:n},c))})]})]},o))})})}function RD({locationDetails:e,hotelSlug:n}){return w.jsx(w.Fragment,{children:w.jsx("div",{className:"flex justify-center py-10",children:w.jsx("div",{className:"max-w-[1200px] w-full",children:w.jsxs("div",{children:[w.jsx("h3",{className:"text-2xl text-primary font-bold mb-6",children:"Select your room"}),e!==void 0&&(n==="mactan-cebu"?w.jsxs(w.Fragment,{children:[w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[w.jsx("h2",{className:"text-2xl text-primary font-bold",children:"Solea Mactan"}),w.jsx("img",{className:"rounded-md h-3xs inset-y-0",src:"/images/solea-mactan-building.png"})]}),w.jsx(fc,{rooms:e.soleaMactan.rooms,hotelSlug:n})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[w.jsx("h2",{className:"text-2xl text-primary font-bold",children:"Solea Palm"}),w.jsx("img",{className:"rounded-md h-3xs inset-y-0",src:"/images/solea-mactan-building.png"})]}),w.jsx(fc,{rooms:e.soleaPalm.rooms,hotelSlug:n})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[w.jsx("h2",{className:"text-2xl text-primary font-bold",children:"Solea Seaview"}),w.jsx("img",{className:"rounded-md h-3xs inset-y-0",src:"/images/solea-mactan-building.png"})]}),w.jsx(fc,{rooms:e.soleaSeaview.rooms,hotelSlug:n})]})]}):w.jsx(w.Fragment,{children:w.jsx(fc,{rooms:e.rooms,hotelSlug:n})}))]})})})})}const MD={soleaMactan:{rooms:[{name:"Superior Room",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]},{name:"Premier City View",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]},{name:"Premier Sea View",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]}]},soleaPalm:{rooms:[{name:"Standard Room",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]},{name:"Palm Pool View",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]}]},soleaSeaview:{rooms:[{name:"Deluxe Room",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]}]}},DD={rooms:[{name:"Superior Room",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]},{name:"Premier Sea View",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]}]},ND={rooms:[{name:"Superior Room",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]},{name:"Premier Sea View",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]}]},zD={rooms:[{name:"Superior Room",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]},{name:"Premier Sea View",capacity:2,room_size:"32 m²/344 ft²",bed:"2 queen beds",free_drink:"Free welcome drink",prices:[{perks:["Breakfast available (₱ 900 / person)","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:1,kidsAge:"0-12",isKidFree:!0},price:5641,cashbackRewards:1431},{perks:["Breakfast included","Non-refundable (Low price!)","Book and pay now","Parking","Express check-in","Free WiFi","Free fitness center access"],roomPriceCapacity:{rooms:1,adult:2,kids:0,kidsAge:"",isKidFree:!1},price:6053,cashbackRewards:1520}]}]},rb={mactanCebu:MD,coastBohol:DD,reefBohol:ND,azureBohol:zD};function Xx({slug:e}){const n={"mactan-cebu":"Solea Mactan - Cebu","coast-bohol":"Solea Coast - Bohol","reef-bohol":"Solea Reef - Bohol","azure-bohol":"Solea Azure - Bohol"};return w.jsx(w.Fragment,{children:w.jsx("div",{className:"h-96 bg-cover bg-center",style:{backgroundImage:`url(/images/${e}.jpg)`},children:w.jsxs("div",{className:"flex justify-center items-center h-full w-full relative",children:[w.jsx("h1",{className:"text-white text-5xl font-semibold z-10",children:n[e]}),w.jsx("div",{className:"block opacity-50 bg-black absolute w-full h-full inset-y-0"})]})})})}function jD(){const{slug:e}=Gb(),n={"mactan-cebu":"mactanCebu","coast-bohol":"coastBohol","reef-bohol":"reefBohol","azure-bohol":"azureBohol"};return w.jsxs(w.Fragment,{children:[w.jsx(Xx,{slug:e||""}),w.jsx(xD,{}),e&&e!==void 0&&n[e]&&rb[n[e]]?w.jsx(RD,{locationDetails:rb[n[e]],hotelSlug:e||""}):""]})}function ne(e,n,r){function o(d,p){var h;Object.defineProperty(d,"_zod",{value:d._zod??{},enumerable:!1}),(h=d._zod).traits??(h.traits=new Set),d._zod.traits.add(e),n(d,p);for(const y in f.prototype)y in d||Object.defineProperty(d,y,{value:f.prototype[y].bind(d)});d._zod.constr=f,d._zod.def=p}const s=r?.Parent??Object;class c extends s{}Object.defineProperty(c,"name",{value:e});function f(d){var p;const h=r?.Parent?new c:this;o(h,d),(p=h._zod).deferred??(p.deferred=[]);for(const y of h._zod.deferred)y();return h}return Object.defineProperty(f,"init",{value:o}),Object.defineProperty(f,Symbol.hasInstance,{value:d=>r?.Parent&&d instanceof r.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}class kl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Kx={};function $r(e){return Kx}function BD(e){const n=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,s])=>n.indexOf(+o)===-1).map(([o,s])=>s)}function LD(e,n){return typeof n=="bigint"?n.toString():n}function Qx(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function $m(e){return e==null}function qm(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function ct(e,n,r){Object.defineProperty(e,n,{get(){{const o=r();return e[n]=o,o}},set(o){Object.defineProperty(e,n,{value:o})},configurable:!0})}function Wm(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function sl(e){return JSON.stringify(e)}const Jx=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function om(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const UD=Qx(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function im(e){if(om(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(om(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}const PD=new Set(["string","number","symbol"]);function Qc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Kr(e,n,r){const o=new e._zod.constr(n??e._zod.def);return(!n||r?.parent)&&(o._zod.parent=e),o}function Re(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function HD(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}function FD(e,n){const r={},o=e._zod.def;for(const s in n){if(!(s in o.shape))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(r[s]=o.shape[s])}return Kr(e,{...e._zod.def,shape:r,checks:[]})}function VD(e,n){const r={...e._zod.def.shape},o=e._zod.def;for(const s in n){if(!(s in o.shape))throw new Error(`Unrecognized key: "${s}"`);n[s]&&delete r[s]}return Kr(e,{...e._zod.def,shape:r,checks:[]})}function ZD(e,n){if(!im(n))throw new Error("Invalid input to extend: expected a plain object");const r={...e._zod.def,get shape(){const o={...e._zod.def.shape,...n};return Wm(this,"shape",o),o},checks:[]};return Kr(e,r)}function YD(e,n){return Kr(e,{...e._zod.def,get shape(){const r={...e._zod.def.shape,...n._zod.def.shape};return Wm(this,"shape",r),r},catchall:n._zod.def.catchall,checks:[]})}function $D(e,n,r){const o=n._zod.def.shape,s={...o};if(r)for(const c in r){if(!(c in o))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=e?new e({type:"optional",innerType:o[c]}):o[c])}else for(const c in o)s[c]=e?new e({type:"optional",innerType:o[c]}):o[c];return Kr(n,{...n._zod.def,shape:s,checks:[]})}function qD(e,n,r){const o=n._zod.def.shape,s={...o};if(r)for(const c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=new e({type:"nonoptional",innerType:o[c]}))}else for(const c in o)s[c]=new e({type:"nonoptional",innerType:o[c]});return Kr(n,{...n._zod.def,shape:s,checks:[]})}function yl(e,n=0){for(let r=n;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Im(e,n){return n.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function dc(e){return typeof e=="string"?e:e?.message}function qr(e,n,r){const o={...e,path:e.path??[]};if(!e.message){const s=dc(e.inst?._zod.def?.error?.(e))??dc(n?.error?.(e))??dc(r.customError?.(e))??dc(r.localeError?.(e))??"Invalid input";o.message=s}return delete o.inst,delete o.continue,n?.reportInput||delete o.input,o}function Gm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Cl(...e){const[n,r,o]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:o}:{...n}}const e1=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,LD,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Xm=ne("$ZodError",e1),Jc=ne("$ZodError",e1,{Parent:Error});function WD(e,n=r=>r.message){const r={},o=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(n(s))):o.push(n(s));return{formErrors:o,fieldErrors:r}}function ID(e,n){const r=n||function(c){return c.message},o={_errors:[]},s=c=>{for(const f of c.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(d=>s({issues:d}));else if(f.code==="invalid_key")s({issues:f.issues});else if(f.code==="invalid_element")s({issues:f.issues});else if(f.path.length===0)o._errors.push(r(f));else{let d=o,p=0;for(;p<f.path.length;){const h=f.path[p];p===f.path.length-1?(d[h]=d[h]||{_errors:[]},d[h]._errors.push(r(f))):d[h]=d[h]||{_errors:[]},d=d[h],p++}}};return s(e),o}const t1=e=>(n,r,o,s)=>{const c=o?Object.assign(o,{async:!1}):{async:!1},f=n._zod.run({value:r,issues:[]},c);if(f instanceof Promise)throw new kl;if(f.issues.length){const d=new(s?.Err??e)(f.issues.map(p=>qr(p,c,$r())));throw Jx(d,s?.callee),d}return f.value},GD=t1(Jc),n1=e=>async(n,r,o,s)=>{const c=o?Object.assign(o,{async:!0}):{async:!0};let f=n._zod.run({value:r,issues:[]},c);if(f instanceof Promise&&(f=await f),f.issues.length){const d=new(s?.Err??e)(f.issues.map(p=>qr(p,c,$r())));throw Jx(d,s?.callee),d}return f.value},XD=n1(Jc),a1=e=>(n,r,o)=>{const s=o?{...o,async:!1}:{async:!1},c=n._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new kl;return c.issues.length?{success:!1,error:new(e??Xm)(c.issues.map(f=>qr(f,s,$r())))}:{success:!0,data:c.value}},KD=a1(Jc),r1=e=>async(n,r,o)=>{const s=o?Object.assign(o,{async:!0}):{async:!0};let c=n._zod.run({value:r,issues:[]},s);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(f=>qr(f,s,$r())))}:{success:!0,data:c.value}},QD=r1(Jc),JD=/^[cC][^\s-]{8,}$/,eN=/^[0-9a-z]+$/,tN=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nN=/^[0-9a-vA-V]{20}$/,aN=/^[A-Za-z0-9]{27}$/,rN=/^[a-zA-Z0-9_-]{21}$/,oN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,iN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ob=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,lN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,sN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function cN(){return new RegExp(sN,"u")}const uN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,dN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,mN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hN=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,o1=/^[A-Za-z0-9_-]*$/,pN=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,yN=/^\+(?:[0-9]){6,14}[0-9]$/,i1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",gN=new RegExp(`^${i1}$`);function l1(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function vN(e){return new RegExp(`^${l1(e)}$`)}function bN(e){const n=l1({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-]\\d{2}:\\d{2})");const o=`${n}(?:${r.join("|")})`;return new RegExp(`^${i1}T(?:${o})$`)}const xN=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},wN=/^[^A-Z]*$/,SN=/^[^a-z]*$/,ua=ne("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),_N=ne("$ZodCheckMaxLength",(e,n)=>{var r;ua.init(e,n),(r=e._zod.def).when??(r.when=o=>{const s=o.value;return!$m(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<s&&(o._zod.bag.maximum=n.maximum)}),e._zod.check=o=>{const s=o.value;if(s.length<=n.maximum)return;const f=Gm(s);o.issues.push({origin:f,code:"too_big",maximum:n.maximum,inclusive:!0,input:s,inst:e,continue:!n.abort})}}),EN=ne("$ZodCheckMinLength",(e,n)=>{var r;ua.init(e,n),(r=e._zod.def).when??(r.when=o=>{const s=o.value;return!$m(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>s&&(o._zod.bag.minimum=n.minimum)}),e._zod.check=o=>{const s=o.value;if(s.length>=n.minimum)return;const f=Gm(s);o.issues.push({origin:f,code:"too_small",minimum:n.minimum,inclusive:!0,input:s,inst:e,continue:!n.abort})}}),TN=ne("$ZodCheckLengthEquals",(e,n)=>{var r;ua.init(e,n),(r=e._zod.def).when??(r.when=o=>{const s=o.value;return!$m(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag;s.minimum=n.length,s.maximum=n.length,s.length=n.length}),e._zod.check=o=>{const s=o.value,c=s.length;if(c===n.length)return;const f=Gm(s),d=c>n.length;o.issues.push({origin:f,...d?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!n.abort})}}),eu=ne("$ZodCheckStringFormat",(e,n)=>{var r,o;ua.init(e,n),e._zod.onattach.push(s=>{const c=s._zod.bag;c.format=n.format,n.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=s=>{n.pattern.lastIndex=0,!n.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:n.format,input:s.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(o=e._zod).check??(o.check=()=>{})}),kN=ne("$ZodCheckRegex",(e,n)=>{eu.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),CN=ne("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=wN),eu.init(e,n)}),ON=ne("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=SN),eu.init(e,n)}),AN=ne("$ZodCheckIncludes",(e,n)=>{ua.init(e,n);const r=Qc(n.includes),o=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=o,e._zod.onattach.push(s=>{const c=s._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(o)}),e._zod.check=s=>{s.value.includes(n.includes,n.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:s.value,inst:e,continue:!n.abort})}}),RN=ne("$ZodCheckStartsWith",(e,n)=>{ua.init(e,n);const r=new RegExp(`^${Qc(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(n.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:o.value,inst:e,continue:!n.abort})}}),MN=ne("$ZodCheckEndsWith",(e,n)=>{ua.init(e,n);const r=new RegExp(`.*${Qc(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(n.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:o.value,inst:e,continue:!n.abort})}}),DN=ne("$ZodCheckOverwrite",(e,n)=>{ua.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class NN{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const o=n.split(`
`).filter(f=>f),s=Math.min(...o.map(f=>f.length-f.trimStart().length)),c=o.map(f=>f.slice(s)).map(f=>" ".repeat(this.indent*2)+f);for(const f of c)this.content.push(f)}compile(){const n=Function,r=this?.args,s=[...(this?.content??[""]).map(c=>`  ${c}`)];return new n(...r,s.join(`
`))}}const zN={major:4,minor:0,patch:5},Ot=ne("$ZodType",(e,n)=>{var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=zN;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const s of o)for(const c of s._zod.onattach)c(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(c,f,d)=>{let p=yl(c),h;for(const y of f){if(y._zod.def.when){if(!y._zod.def.when(c))continue}else if(p)continue;const g=c.issues.length,x=y._zod.check(c);if(x instanceof Promise&&d?.async===!1)throw new kl;if(h||x instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await x,c.issues.length!==g&&(p||(p=yl(c,g)))});else{if(c.issues.length===g)continue;p||(p=yl(c,g))}}return h?h.then(()=>c):c};e._zod.run=(c,f)=>{const d=e._zod.parse(c,f);if(d instanceof Promise){if(f.async===!1)throw new kl;return d.then(p=>s(p,o,f))}return s(d,o,f)}}e["~standard"]={validate:s=>{try{const c=KD(e,s);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return QD(e,s).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Km=ne("$ZodString",(e,n)=>{Ot.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xN(e._zod.bag),e._zod.parse=(r,o)=>{if(n.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),dt=ne("$ZodStringFormat",(e,n)=>{eu.init(e,n),Km.init(e,n)}),jN=ne("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=iN),dt.init(e,n)}),BN=ne("$ZodUUID",(e,n)=>{if(n.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(o===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=ob(o))}else n.pattern??(n.pattern=ob());dt.init(e,n)}),LN=ne("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=lN),dt.init(e,n)}),UN=ne("$ZodURL",(e,n)=>{dt.init(e,n),e._zod.check=r=>{try{const o=r.value,s=new URL(o),c=s.href;n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(s.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:pN.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),!o.endsWith("/")&&c.endsWith("/")?r.value=c.slice(0,-1):r.value=c;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),PN=ne("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=cN()),dt.init(e,n)}),HN=ne("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=rN),dt.init(e,n)}),FN=ne("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=JD),dt.init(e,n)}),VN=ne("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=eN),dt.init(e,n)}),ZN=ne("$ZodULID",(e,n)=>{n.pattern??(n.pattern=tN),dt.init(e,n)}),YN=ne("$ZodXID",(e,n)=>{n.pattern??(n.pattern=nN),dt.init(e,n)}),$N=ne("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=aN),dt.init(e,n)}),qN=ne("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=bN(n)),dt.init(e,n)}),WN=ne("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=gN),dt.init(e,n)}),IN=ne("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=vN(n)),dt.init(e,n)}),GN=ne("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=oN),dt.init(e,n)}),XN=ne("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=uN),dt.init(e,n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.format="ipv4"})}),KN=ne("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=fN),dt.init(e,n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!n.abort})}}}),QN=ne("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=dN),dt.init(e,n)}),JN=ne("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=mN),dt.init(e,n),e._zod.check=r=>{const[o,s]=r.value.split("/");try{if(!s)throw new Error;const c=Number(s);if(`${c}`!==s)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function s1(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const ez=ne("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=hN),dt.init(e,n),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{s1(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function tz(e){if(!o1.test(e))return!1;const n=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return s1(r)}const nz=ne("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=o1),dt.init(e,n),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{tz(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),az=ne("$ZodE164",(e,n)=>{n.pattern??(n.pattern=yN),dt.init(e,n)});function rz(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[o]=r;if(!o)return!1;const s=JSON.parse(atob(o));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||n&&(!("alg"in s)||s.alg!==n))}catch{return!1}}const oz=ne("$ZodJWT",(e,n)=>{dt.init(e,n),e._zod.check=r=>{rz(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),iz=ne("$ZodUnknown",(e,n)=>{Ot.init(e,n),e._zod.parse=r=>r}),lz=ne("$ZodNever",(e,n)=>{Ot.init(e,n),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function ib(e,n,r){e.issues.length&&n.issues.push(...Im(r,e.issues)),n.value[r]=e.value}const sz=ne("$ZodArray",(e,n)=>{Ot.init(e,n),e._zod.parse=(r,o)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const c=[];for(let f=0;f<s.length;f++){const d=s[f],p=n.element._zod.run({value:d,issues:[]},o);p instanceof Promise?c.push(p.then(h=>ib(h,r,f))):ib(p,r,f)}return c.length?Promise.all(c).then(()=>r):r}});function mc(e,n,r){e.issues.length&&n.issues.push(...Im(r,e.issues)),n.value[r]=e.value}function lb(e,n,r,o){e.issues.length?o[r]===void 0?r in o?n.value[r]=void 0:n.value[r]=e.value:n.issues.push(...Im(r,e.issues)):e.value===void 0?r in o&&(n.value[r]=void 0):n.value[r]=e.value}const cz=ne("$ZodObject",(e,n)=>{Ot.init(e,n);const r=Qx(()=>{const g=Object.keys(n.shape);for(const E of g)if(!(n.shape[E]instanceof Ot))throw new Error(`Invalid element at key "${E}": expected a Zod schema`);const x=HD(n.shape);return{shape:n.shape,keys:g,keySet:new Set(g),numKeys:g.length,optionalKeys:new Set(x)}});ct(e._zod,"propValues",()=>{const g=n.shape,x={};for(const E in g){const k=g[E]._zod;if(k.values){x[E]??(x[E]=new Set);for(const S of k.values)x[E].add(S)}}return x});const o=g=>{const x=new NN(["shape","payload","ctx"]),E=r.value,k=C=>{const A=sl(C);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};x.write("const input = payload.value;");const S=Object.create(null);let T=0;for(const C of E.keys)S[C]=`key_${T++}`;x.write("const newResult = {}");for(const C of E.keys)if(E.optionalKeys.has(C)){const A=S[C];x.write(`const ${A} = ${k(C)};`);const N=sl(C);x.write(`
        if (${A}.issues.length) {
          if (input[${N}] === undefined) {
            if (${N} in input) {
              newResult[${N}] = undefined;
            }
          } else {
            payload.issues = payload.issues.concat(
              ${A}.issues.map((iss) => ({
                ...iss,
                path: iss.path ? [${N}, ...iss.path] : [${N}],
              }))
            );
          }
        } else if (${A}.value === undefined) {
          if (${N} in input) newResult[${N}] = undefined;
        } else {
          newResult[${N}] = ${A}.value;
        }
        `)}else{const A=S[C];x.write(`const ${A} = ${k(C)};`),x.write(`
          if (${A}.issues.length) payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${sl(C)}, ...iss.path] : [${sl(C)}]
          })));`),x.write(`newResult[${sl(C)}] = ${A}.value`)}x.write("payload.value = newResult;"),x.write("return payload;");const O=x.compile();return(C,A)=>O(g,C,A)};let s;const c=om,f=!Kx.jitless,p=f&&UD.value,h=n.catchall;let y;e._zod.parse=(g,x)=>{y??(y=r.value);const E=g.value;if(!c(E))return g.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),g;const k=[];if(f&&p&&x?.async===!1&&x.jitless!==!0)s||(s=o(n.shape)),g=s(g,x);else{g.value={};const A=y.shape;for(const N of y.keys){const M=A[N],q=M._zod.run({value:E[N],issues:[]},x),L=M._zod.optin==="optional"&&M._zod.optout==="optional";q instanceof Promise?k.push(q.then(U=>L?lb(U,g,N,E):mc(U,g,N))):L?lb(q,g,N,E):mc(q,g,N)}}if(!h)return k.length?Promise.all(k).then(()=>g):g;const S=[],T=y.keySet,O=h._zod,C=O.def.type;for(const A of Object.keys(E)){if(T.has(A))continue;if(C==="never"){S.push(A);continue}const N=O.run({value:E[A],issues:[]},x);N instanceof Promise?k.push(N.then(M=>mc(M,g,A))):mc(N,g,A)}return S.length&&g.issues.push({code:"unrecognized_keys",keys:S,input:E,inst:e}),k.length?Promise.all(k).then(()=>g):g}});function sb(e,n,r,o){for(const s of e)if(s.issues.length===0)return n.value=s.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(s=>s.issues.map(c=>qr(c,o,$r())))}),n}const uz=ne("$ZodUnion",(e,n)=>{Ot.init(e,n),ct(e._zod,"optin",()=>n.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ct(e._zod,"optout",()=>n.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ct(e._zod,"values",()=>{if(n.options.every(r=>r._zod.values))return new Set(n.options.flatMap(r=>Array.from(r._zod.values)))}),ct(e._zod,"pattern",()=>{if(n.options.every(r=>r._zod.pattern)){const r=n.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>qm(o.source)).join("|")})$`)}}),e._zod.parse=(r,o)=>{let s=!1;const c=[];for(const f of n.options){const d=f._zod.run({value:r.value,issues:[]},o);if(d instanceof Promise)c.push(d),s=!0;else{if(d.issues.length===0)return d;c.push(d)}}return s?Promise.all(c).then(f=>sb(f,r,e,o)):sb(c,r,e,o)}}),fz=ne("$ZodIntersection",(e,n)=>{Ot.init(e,n),e._zod.parse=(r,o)=>{const s=r.value,c=n.left._zod.run({value:s,issues:[]},o),f=n.right._zod.run({value:s,issues:[]},o);return c instanceof Promise||f instanceof Promise?Promise.all([c,f]).then(([p,h])=>cb(r,p,h)):cb(r,c,f)}});function lm(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(im(e)&&im(n)){const r=Object.keys(n),o=Object.keys(e).filter(c=>r.indexOf(c)!==-1),s={...e,...n};for(const c of o){const f=lm(e[c],n[c]);if(!f.valid)return{valid:!1,mergeErrorPath:[c,...f.mergeErrorPath]};s[c]=f.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<e.length;o++){const s=e[o],c=n[o],f=lm(s,c);if(!f.valid)return{valid:!1,mergeErrorPath:[o,...f.mergeErrorPath]};r.push(f.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function cb(e,n,r){if(n.issues.length&&e.issues.push(...n.issues),r.issues.length&&e.issues.push(...r.issues),yl(e))return e;const o=lm(n.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const dz=ne("$ZodEnum",(e,n)=>{Ot.init(e,n);const r=BD(n.entries);e._zod.values=new Set(r),e._zod.pattern=new RegExp(`^(${r.filter(o=>PD.has(typeof o)).map(o=>typeof o=="string"?Qc(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const c=o.value;return e._zod.values.has(c)||o.issues.push({code:"invalid_value",values:r,input:c,inst:e}),o}}),mz=ne("$ZodTransform",(e,n)=>{Ot.init(e,n),e._zod.parse=(r,o)=>{const s=n.transform(r.value,r);if(o.async)return(s instanceof Promise?s:Promise.resolve(s)).then(f=>(r.value=f,r));if(s instanceof Promise)throw new kl;return r.value=s,r}}),hz=ne("$ZodOptional",(e,n)=>{Ot.init(e,n),e._zod.optin="optional",e._zod.optout="optional",ct(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),ct(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${qm(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(r,o):r.value===void 0?r:n.innerType._zod.run(r,o)}),pz=ne("$ZodNullable",(e,n)=>{Ot.init(e,n),ct(e._zod,"optin",()=>n.innerType._zod.optin),ct(e._zod,"optout",()=>n.innerType._zod.optout),ct(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${qm(r.source)}|null)$`):void 0}),ct(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:n.innerType._zod.run(r,o)}),yz=ne("$ZodDefault",(e,n)=>{Ot.init(e,n),e._zod.optin="optional",ct(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,o)=>{if(r.value===void 0)return r.value=n.defaultValue,r;const s=n.innerType._zod.run(r,o);return s instanceof Promise?s.then(c=>ub(c,n)):ub(s,n)}});function ub(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const gz=ne("$ZodPrefault",(e,n)=>{Ot.init(e,n),e._zod.optin="optional",ct(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,o)=>(r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,o))}),vz=ne("$ZodNonOptional",(e,n)=>{Ot.init(e,n),ct(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{const s=n.innerType._zod.run(r,o);return s instanceof Promise?s.then(c=>fb(c,e)):fb(s,e)}});function fb(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const bz=ne("$ZodCatch",(e,n)=>{Ot.init(e,n),e._zod.optin="optional",ct(e._zod,"optout",()=>n.innerType._zod.optout),ct(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,o)=>{const s=n.innerType._zod.run(r,o);return s instanceof Promise?s.then(c=>(r.value=c.value,c.issues.length&&(r.value=n.catchValue({...r,error:{issues:c.issues.map(f=>qr(f,o,$r()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=n.catchValue({...r,error:{issues:s.issues.map(c=>qr(c,o,$r()))},input:r.value}),r.issues=[]),r)}}),xz=ne("$ZodPipe",(e,n)=>{Ot.init(e,n),ct(e._zod,"values",()=>n.in._zod.values),ct(e._zod,"optin",()=>n.in._zod.optin),ct(e._zod,"optout",()=>n.out._zod.optout),ct(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,o)=>{const s=n.in._zod.run(r,o);return s instanceof Promise?s.then(c=>db(c,n,o)):db(s,n,o)}});function db(e,n,r){return yl(e)?e:n.out._zod.run({value:e.value,issues:e.issues},r)}const wz=ne("$ZodReadonly",(e,n)=>{Ot.init(e,n),ct(e._zod,"propValues",()=>n.innerType._zod.propValues),ct(e._zod,"values",()=>n.innerType._zod.values),ct(e._zod,"optin",()=>n.innerType._zod.optin),ct(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(r,o)=>{const s=n.innerType._zod.run(r,o);return s instanceof Promise?s.then(mb):mb(s)}});function mb(e){return e.value=Object.freeze(e.value),e}const Sz=ne("$ZodCustom",(e,n)=>{ua.init(e,n),Ot.init(e,n),e._zod.parse=(r,o)=>r,e._zod.check=r=>{const o=r.value,s=n.fn(o);if(s instanceof Promise)return s.then(c=>hb(c,r,o,e));hb(s,r,o,e)}});function hb(e,n,r,o){if(!e){const s={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(s.params=o._zod.def.params),n.issues.push(Cl(s))}}class _z{constructor(){this._map=new Map,this._idmap=new Map}add(n,...r){const o=r[0];if(this._map.set(n,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,n)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const o={...this.get(r)??{}};return delete o.id,{...o,...this._map.get(n)}}return this._map.get(n)}has(n){return this._map.has(n)}}function Ez(){return new _z}const hc=Ez();function Tz(e,n){return new e({type:"string",...Re(n)})}function kz(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Re(n)})}function pb(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Re(n)})}function Cz(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Re(n)})}function Oz(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Re(n)})}function Az(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Re(n)})}function Rz(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Re(n)})}function Mz(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Re(n)})}function Dz(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Re(n)})}function Nz(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Re(n)})}function zz(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Re(n)})}function jz(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Re(n)})}function Bz(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Re(n)})}function Lz(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Re(n)})}function Uz(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Re(n)})}function Pz(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Re(n)})}function Hz(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Re(n)})}function Fz(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Re(n)})}function Vz(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Re(n)})}function Zz(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Re(n)})}function Yz(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Re(n)})}function $z(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Re(n)})}function qz(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Re(n)})}function Wz(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Re(n)})}function Iz(e,n){return new e({type:"string",format:"date",check:"string_format",...Re(n)})}function Gz(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...Re(n)})}function Xz(e,n){return new e({type:"string",format:"duration",check:"string_format",...Re(n)})}function Kz(e){return new e({type:"unknown"})}function Qz(e,n){return new e({type:"never",...Re(n)})}function c1(e,n){return new _N({check:"max_length",...Re(n),maximum:e})}function Dc(e,n){return new EN({check:"min_length",...Re(n),minimum:e})}function u1(e,n){return new TN({check:"length_equals",...Re(n),length:e})}function Jz(e,n){return new kN({check:"string_format",format:"regex",...Re(n),pattern:e})}function e3(e){return new CN({check:"string_format",format:"lowercase",...Re(e)})}function t3(e){return new ON({check:"string_format",format:"uppercase",...Re(e)})}function n3(e,n){return new AN({check:"string_format",format:"includes",...Re(n),includes:e})}function a3(e,n){return new RN({check:"string_format",format:"starts_with",...Re(n),prefix:e})}function r3(e,n){return new MN({check:"string_format",format:"ends_with",...Re(n),suffix:e})}function Hl(e){return new DN({check:"overwrite",tx:e})}function o3(e){return Hl(n=>n.normalize(e))}function i3(){return Hl(e=>e.trim())}function l3(){return Hl(e=>e.toLowerCase())}function s3(){return Hl(e=>e.toUpperCase())}function c3(e,n,r){return new e({type:"array",element:n,...Re(r)})}function u3(e,n,r){return new e({type:"custom",check:"custom",fn:n,...Re(r)})}const f3=ne("ZodISODateTime",(e,n)=>{qN.init(e,n),yt.init(e,n)});function d3(e){return Wz(f3,e)}const m3=ne("ZodISODate",(e,n)=>{WN.init(e,n),yt.init(e,n)});function h3(e){return Iz(m3,e)}const p3=ne("ZodISOTime",(e,n)=>{IN.init(e,n),yt.init(e,n)});function y3(e){return Gz(p3,e)}const g3=ne("ZodISODuration",(e,n)=>{GN.init(e,n),yt.init(e,n)});function v3(e){return Xz(g3,e)}const b3=(e,n)=>{Xm.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>ID(e,r)},flatten:{value:r=>WD(e,r)},addIssue:{value:r=>e.issues.push(r)},addIssues:{value:r=>e.issues.push(...r)},isEmpty:{get(){return e.issues.length===0}}})},tu=ne("ZodError",b3,{Parent:Error}),x3=t1(tu),w3=n1(tu),S3=a1(tu),_3=r1(tu),Ht=ne("ZodType",(e,n)=>(Ot.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone({...n,checks:[...n.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),e.clone=(r,o)=>Kr(e,r,o),e.brand=()=>e,e.register=(r,o)=>(r.add(e,o),e),e.parse=(r,o)=>x3(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>S3(e,r,o),e.parseAsync=async(r,o)=>w3(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>_3(e,r,o),e.spa=e.safeParseAsync,e.refine=(r,o)=>e.check(h4(r,o)),e.superRefine=r=>e.check(p4(r)),e.overwrite=r=>e.check(Hl(r)),e.optional=()=>vb(e),e.nullable=()=>bb(e),e.nullish=()=>vb(bb(e)),e.nonoptional=r=>i4(e,r),e.array=()=>q3(e),e.or=r=>X3([e,r]),e.and=r=>Q3(e,r),e.transform=r=>xb(e,e4(r)),e.default=r=>a4(e,r),e.prefault=r=>o4(e,r),e.catch=r=>s4(e,r),e.pipe=r=>xb(e,r),e.readonly=()=>f4(e),e.describe=r=>{const o=e.clone();return hc.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return hc.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return hc.get(e);const o=e.clone();return hc.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),f1=ne("_ZodString",(e,n)=>{Km.init(e,n),Ht.init(e,n);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(Jz(...o)),e.includes=(...o)=>e.check(n3(...o)),e.startsWith=(...o)=>e.check(a3(...o)),e.endsWith=(...o)=>e.check(r3(...o)),e.min=(...o)=>e.check(Dc(...o)),e.max=(...o)=>e.check(c1(...o)),e.length=(...o)=>e.check(u1(...o)),e.nonempty=(...o)=>e.check(Dc(1,...o)),e.lowercase=o=>e.check(e3(o)),e.uppercase=o=>e.check(t3(o)),e.trim=()=>e.check(i3()),e.normalize=(...o)=>e.check(o3(...o)),e.toLowerCase=()=>e.check(l3()),e.toUpperCase=()=>e.check(s3())}),E3=ne("ZodString",(e,n)=>{Km.init(e,n),f1.init(e,n),e.email=r=>e.check(kz(T3,r)),e.url=r=>e.check(Mz(k3,r)),e.jwt=r=>e.check(qz(F3,r)),e.emoji=r=>e.check(Dz(C3,r)),e.guid=r=>e.check(pb(yb,r)),e.uuid=r=>e.check(Cz(pc,r)),e.uuidv4=r=>e.check(Oz(pc,r)),e.uuidv6=r=>e.check(Az(pc,r)),e.uuidv7=r=>e.check(Rz(pc,r)),e.nanoid=r=>e.check(Nz(O3,r)),e.guid=r=>e.check(pb(yb,r)),e.cuid=r=>e.check(zz(A3,r)),e.cuid2=r=>e.check(jz(R3,r)),e.ulid=r=>e.check(Bz(M3,r)),e.base64=r=>e.check(Zz(U3,r)),e.base64url=r=>e.check(Yz(P3,r)),e.xid=r=>e.check(Lz(D3,r)),e.ksuid=r=>e.check(Uz(N3,r)),e.ipv4=r=>e.check(Pz(z3,r)),e.ipv6=r=>e.check(Hz(j3,r)),e.cidrv4=r=>e.check(Fz(B3,r)),e.cidrv6=r=>e.check(Vz(L3,r)),e.e164=r=>e.check($z(H3,r)),e.datetime=r=>e.check(d3(r)),e.date=r=>e.check(h3(r)),e.time=r=>e.check(y3(r)),e.duration=r=>e.check(v3(r))});function cl(e){return Tz(E3,e)}const yt=ne("ZodStringFormat",(e,n)=>{dt.init(e,n),f1.init(e,n)}),T3=ne("ZodEmail",(e,n)=>{LN.init(e,n),yt.init(e,n)}),yb=ne("ZodGUID",(e,n)=>{jN.init(e,n),yt.init(e,n)}),pc=ne("ZodUUID",(e,n)=>{BN.init(e,n),yt.init(e,n)}),k3=ne("ZodURL",(e,n)=>{UN.init(e,n),yt.init(e,n)}),C3=ne("ZodEmoji",(e,n)=>{PN.init(e,n),yt.init(e,n)}),O3=ne("ZodNanoID",(e,n)=>{HN.init(e,n),yt.init(e,n)}),A3=ne("ZodCUID",(e,n)=>{FN.init(e,n),yt.init(e,n)}),R3=ne("ZodCUID2",(e,n)=>{VN.init(e,n),yt.init(e,n)}),M3=ne("ZodULID",(e,n)=>{ZN.init(e,n),yt.init(e,n)}),D3=ne("ZodXID",(e,n)=>{YN.init(e,n),yt.init(e,n)}),N3=ne("ZodKSUID",(e,n)=>{$N.init(e,n),yt.init(e,n)}),z3=ne("ZodIPv4",(e,n)=>{XN.init(e,n),yt.init(e,n)}),j3=ne("ZodIPv6",(e,n)=>{KN.init(e,n),yt.init(e,n)}),B3=ne("ZodCIDRv4",(e,n)=>{QN.init(e,n),yt.init(e,n)}),L3=ne("ZodCIDRv6",(e,n)=>{JN.init(e,n),yt.init(e,n)}),U3=ne("ZodBase64",(e,n)=>{ez.init(e,n),yt.init(e,n)}),P3=ne("ZodBase64URL",(e,n)=>{nz.init(e,n),yt.init(e,n)}),H3=ne("ZodE164",(e,n)=>{az.init(e,n),yt.init(e,n)}),F3=ne("ZodJWT",(e,n)=>{oz.init(e,n),yt.init(e,n)}),V3=ne("ZodUnknown",(e,n)=>{iz.init(e,n),Ht.init(e,n)});function gb(){return Kz(V3)}const Z3=ne("ZodNever",(e,n)=>{lz.init(e,n),Ht.init(e,n)});function Y3(e){return Qz(Z3,e)}const $3=ne("ZodArray",(e,n)=>{sz.init(e,n),Ht.init(e,n),e.element=n.element,e.min=(r,o)=>e.check(Dc(r,o)),e.nonempty=r=>e.check(Dc(1,r)),e.max=(r,o)=>e.check(c1(r,o)),e.length=(r,o)=>e.check(u1(r,o)),e.unwrap=()=>e.element});function q3(e,n){return c3($3,e,n)}const W3=ne("ZodObject",(e,n)=>{cz.init(e,n),Ht.init(e,n),ct(e,"shape",()=>n.shape),e.keyof=()=>cm(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:gb()}),e.loose=()=>e.clone({...e._zod.def,catchall:gb()}),e.strict=()=>e.clone({...e._zod.def,catchall:Y3()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>ZD(e,r),e.merge=r=>YD(e,r),e.pick=r=>FD(e,r),e.omit=r=>VD(e,r),e.partial=(...r)=>$D(d1,e,r[0]),e.required=(...r)=>qD(m1,e,r[0])});function I3(e,n){const r={type:"object",get shape(){return Wm(this,"shape",{...e}),this.shape},...Re(n)};return new W3(r)}const G3=ne("ZodUnion",(e,n)=>{uz.init(e,n),Ht.init(e,n),e.options=n.options});function X3(e,n){return new G3({type:"union",options:e,...Re(n)})}const K3=ne("ZodIntersection",(e,n)=>{fz.init(e,n),Ht.init(e,n)});function Q3(e,n){return new K3({type:"intersection",left:e,right:n})}const sm=ne("ZodEnum",(e,n)=>{dz.init(e,n),Ht.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(o,s)=>{const c={};for(const f of o)if(r.has(f))c[f]=n.entries[f];else throw new Error(`Key ${f} not found in enum`);return new sm({...n,checks:[],...Re(s),entries:c})},e.exclude=(o,s)=>{const c={...n.entries};for(const f of o)if(r.has(f))delete c[f];else throw new Error(`Key ${f} not found in enum`);return new sm({...n,checks:[],...Re(s),entries:c})}});function cm(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new sm({type:"enum",entries:r,...Re(n)})}const J3=ne("ZodTransform",(e,n)=>{mz.init(e,n),Ht.init(e,n),e._zod.parse=(r,o)=>{r.addIssue=c=>{if(typeof c=="string")r.issues.push(Cl(c,r.value,n));else{const f=c;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=r.value),f.inst??(f.inst=e),f.continue??(f.continue=!0),r.issues.push(Cl(f))}};const s=n.transform(r.value,r);return s instanceof Promise?s.then(c=>(r.value=c,r)):(r.value=s,r)}});function e4(e){return new J3({type:"transform",transform:e})}const d1=ne("ZodOptional",(e,n)=>{hz.init(e,n),Ht.init(e,n),e.unwrap=()=>e._zod.def.innerType});function vb(e){return new d1({type:"optional",innerType:e})}const t4=ne("ZodNullable",(e,n)=>{pz.init(e,n),Ht.init(e,n),e.unwrap=()=>e._zod.def.innerType});function bb(e){return new t4({type:"nullable",innerType:e})}const n4=ne("ZodDefault",(e,n)=>{yz.init(e,n),Ht.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function a4(e,n){return new n4({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}const r4=ne("ZodPrefault",(e,n)=>{gz.init(e,n),Ht.init(e,n),e.unwrap=()=>e._zod.def.innerType});function o4(e,n){return new r4({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}const m1=ne("ZodNonOptional",(e,n)=>{vz.init(e,n),Ht.init(e,n),e.unwrap=()=>e._zod.def.innerType});function i4(e,n){return new m1({type:"nonoptional",innerType:e,...Re(n)})}const l4=ne("ZodCatch",(e,n)=>{bz.init(e,n),Ht.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function s4(e,n){return new l4({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const c4=ne("ZodPipe",(e,n)=>{xz.init(e,n),Ht.init(e,n),e.in=n.in,e.out=n.out});function xb(e,n){return new c4({type:"pipe",in:e,out:n})}const u4=ne("ZodReadonly",(e,n)=>{wz.init(e,n),Ht.init(e,n)});function f4(e){return new u4({type:"readonly",innerType:e})}const d4=ne("ZodCustom",(e,n)=>{Sz.init(e,n),Ht.init(e,n)});function m4(e){const n=new ua({check:"custom"});return n._zod.check=e,n}function h4(e,n={}){return u3(d4,e,n)}function p4(e){const n=m4(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Cl(o,r.value,n._zod.def));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(Cl(s))}},e(r.value,r)));return n}var Fl=e=>e.type==="checkbox",Vr=e=>e instanceof Date,Qt=e=>e==null;const h1=e=>typeof e=="object";var St=e=>!Qt(e)&&!Array.isArray(e)&&h1(e)&&!Vr(e),p1=e=>St(e)&&e.target?Fl(e.target)?e.target.checked:e.target.value:e,y4=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,y1=(e,n)=>e.has(y4(n)),g4=e=>{const n=e.constructor&&e.constructor.prototype;return St(n)&&n.hasOwnProperty("isPrototypeOf")},Qm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nt(e){let n;const r=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(Qm&&(e instanceof Blob||o))&&(r||St(e)))if(n=r?[]:{},!r&&!g4(e))n=e;else for(const s in e)e.hasOwnProperty(s)&&(n[s]=Nt(e[s]));else return e;return n}var nu=e=>/^\w*$/.test(e),wt=e=>e===void 0,Jm=e=>Array.isArray(e)?e.filter(Boolean):[],eh=e=>Jm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),me=(e,n,r)=>{if(!n||!St(e))return r;const o=(nu(n)?[n]:eh(n)).reduce((s,c)=>Qt(s)?s:s[c],e);return wt(o)||o===e?wt(e[n])?r:e[n]:o},yn=e=>typeof e=="boolean",Qe=(e,n,r)=>{let o=-1;const s=nu(n)?[n]:eh(n),c=s.length,f=c-1;for(;++o<c;){const d=s[o];let p=r;if(o!==f){const h=e[d];p=St(h)||Array.isArray(h)?h:isNaN(+s[o+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=p,e=e[d]}};const Nc={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ln={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Aa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},th=W.createContext(null);th.displayName="HookFormContext";const au=()=>W.useContext(th),v4=e=>{const{children:n,...r}=e;return W.createElement(th.Provider,{value:r},n)};var g1=(e,n,r,o=!0)=>{const s={defaultValues:n._defaultValues};for(const c in e)Object.defineProperty(s,c,{get:()=>{const f=c;return n._proxyFormState[f]!==Ln.all&&(n._proxyFormState[f]=!o||Ln.all),r&&(r[f]=!0),e[f]}});return s};const nh=typeof window<"u"?b.useLayoutEffect:b.useEffect;function v1(e){const n=au(),{control:r=n.control,disabled:o,name:s,exact:c}=e||{},[f,d]=W.useState(r._formState),p=W.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return nh(()=>r._subscribe({name:s,formState:p.current,exact:c,callback:h=>{!o&&d({...r._formState,...h})}}),[s,o,c]),W.useEffect(()=>{p.current.isValid&&r._setValid(!0)},[r]),W.useMemo(()=>g1(f,r,p.current,!1),[f,r])}var aa=e=>typeof e=="string",b1=(e,n,r,o,s)=>aa(e)?(o&&n.watch.add(e),me(r,e,s)):Array.isArray(e)?e.map(c=>(o&&n.watch.add(c),me(r,c))):(o&&(n.watchAll=!0),r);function b4(e){const n=au(),{control:r=n.control,name:o,defaultValue:s,disabled:c,exact:f}=e||{},d=W.useRef(s),[p,h]=W.useState(r._getWatch(o,d.current));return nh(()=>r._subscribe({name:o,formState:{values:!0},exact:f,callback:y=>!c&&h(b1(o,r._names,y.values||r._formValues,!1,d.current))}),[o,r,c,f]),W.useEffect(()=>r._removeUnmounted()),p}function x4(e){const n=au(),{name:r,disabled:o,control:s=n.control,shouldUnregister:c}=e,f=y1(s._names.array,r),d=b4({control:s,name:r,defaultValue:me(s._formValues,r,me(s._defaultValues,r,e.defaultValue)),exact:!0}),p=v1({control:s,name:r,exact:!0}),h=W.useRef(e),y=W.useRef(s.register(r,{...e.rules,value:d,...yn(e.disabled)?{disabled:e.disabled}:{}})),g=W.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!me(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!me(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!me(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!me(p.validatingFields,r)},error:{enumerable:!0,get:()=>me(p.errors,r)}}),[p,r]),x=W.useCallback(T=>y.current.onChange({target:{value:p1(T),name:r},type:Nc.CHANGE}),[r]),E=W.useCallback(()=>y.current.onBlur({target:{value:me(s._formValues,r),name:r},type:Nc.BLUR}),[r,s._formValues]),k=W.useCallback(T=>{const O=me(s._fields,r);O&&T&&(O._f.ref={focus:()=>T.focus&&T.focus(),select:()=>T.select&&T.select(),setCustomValidity:C=>T.setCustomValidity(C),reportValidity:()=>T.reportValidity()})},[s._fields,r]),S=W.useMemo(()=>({name:r,value:d,...yn(o)||p.disabled?{disabled:p.disabled||o}:{},onChange:x,onBlur:E,ref:k}),[r,o,p.disabled,x,E,k,d]);return W.useEffect(()=>{const T=s._options.shouldUnregister||c;s.register(r,{...h.current.rules,...yn(h.current.disabled)?{disabled:h.current.disabled}:{}});const O=(C,A)=>{const N=me(s._fields,C);N&&N._f&&(N._f.mount=A)};if(O(r,!0),T){const C=Nt(me(s._options.defaultValues,r));Qe(s._defaultValues,r,C),wt(me(s._formValues,r))&&Qe(s._formValues,r,C)}return!f&&s.register(r),()=>{(f?T&&!s._state.action:T)?s.unregister(r):O(r,!1)}},[r,s,f,c]),W.useEffect(()=>{s._setDisabledField({disabled:o,name:r})},[o,r,s]),W.useMemo(()=>({field:S,formState:p,fieldState:g}),[S,p,g])}const w4=e=>e.render(x4(e));var ah=(e,n,r,o,s)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[o]:s||!0}}:{},gl=e=>Array.isArray(e)?e:[e],wb=()=>{let e=[];return{get observers(){return e},next:s=>{for(const c of e)c.next&&c.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(c=>c!==s)}}),unsubscribe:()=>{e=[]}}},um=e=>Qt(e)||!h1(e);function fr(e,n,r=new WeakSet){if(um(e)||um(n))return e===n;if(Vr(e)&&Vr(n))return e.getTime()===n.getTime();const o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const c of o){const f=e[c];if(!s.includes(c))return!1;if(c!=="ref"){const d=n[c];if(Vr(f)&&Vr(d)||St(f)&&St(d)||Array.isArray(f)&&Array.isArray(d)?!fr(f,d,r):f!==d)return!1}}return!0}var on=e=>St(e)&&!Object.keys(e).length,rh=e=>e.type==="file",Un=e=>typeof e=="function",zc=e=>{if(!Qm)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},x1=e=>e.type==="select-multiple",oh=e=>e.type==="radio",S4=e=>oh(e)||Fl(e),Fd=e=>zc(e)&&e.isConnected;function _4(e,n){const r=n.slice(0,-1).length;let o=0;for(;o<r;)e=wt(e)?o++:e[n[o++]];return e}function E4(e){for(const n in e)if(e.hasOwnProperty(n)&&!wt(e[n]))return!1;return!0}function Ct(e,n){const r=Array.isArray(n)?n:nu(n)?[n]:eh(n),o=r.length===1?e:_4(e,r),s=r.length-1,c=r[s];return o&&delete o[c],s!==0&&(St(o)&&on(o)||Array.isArray(o)&&E4(o))&&Ct(e,r.slice(0,-1)),e}var w1=e=>{for(const n in e)if(Un(e[n]))return!0;return!1};function jc(e,n={}){const r=Array.isArray(e);if(St(e)||r)for(const o in e)Array.isArray(e[o])||St(e[o])&&!w1(e[o])?(n[o]=Array.isArray(e[o])?[]:{},jc(e[o],n[o])):Qt(e[o])||(n[o]=!0);return n}function S1(e,n,r){const o=Array.isArray(e);if(St(e)||o)for(const s in e)Array.isArray(e[s])||St(e[s])&&!w1(e[s])?wt(n)||um(r[s])?r[s]=Array.isArray(e[s])?jc(e[s],[]):{...jc(e[s])}:S1(e[s],Qt(n)?{}:n[s],r[s]):r[s]=!fr(e[s],n[s]);return r}var ul=(e,n)=>S1(e,n,jc(n));const Sb={value:!1,isValid:!1},_b={value:!0,isValid:!0};var _1=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!wt(e[0].attributes.value)?wt(e[0].value)||e[0].value===""?_b:{value:e[0].value,isValid:!0}:_b:Sb}return Sb},E1=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:o})=>wt(e)?e:n?e===""?NaN:e&&+e:r&&aa(e)?new Date(e):o?o(e):e;const Eb={isValid:!1,value:null};var T1=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,Eb):Eb;function Tb(e){const n=e.ref;return rh(n)?n.files:oh(n)?T1(e.refs).value:x1(n)?[...n.selectedOptions].map(({value:r})=>r):Fl(n)?_1(e.refs).value:E1(wt(n.value)?e.ref.value:n.value,e)}var T4=(e,n,r,o)=>{const s={};for(const c of e){const f=me(n,c);f&&Qe(s,c,f._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:o}},Bc=e=>e instanceof RegExp,fl=e=>wt(e)?e:Bc(e)?e.source:St(e)?Bc(e.value)?e.value.source:e.value:e,kb=e=>({isOnSubmit:!e||e===Ln.onSubmit,isOnBlur:e===Ln.onBlur,isOnChange:e===Ln.onChange,isOnAll:e===Ln.all,isOnTouch:e===Ln.onTouched});const Cb="AsyncFunction";var k4=e=>!!e&&!!e.validate&&!!(Un(e.validate)&&e.validate.constructor.name===Cb||St(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===Cb)),C4=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ob=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const vl=(e,n,r,o)=>{for(const s of r||Object.keys(e)){const c=me(e,s);if(c){const{_f:f,...d}=c;if(f){if(f.refs&&f.refs[0]&&n(f.refs[0],s)&&!o)return!0;if(f.ref&&n(f.ref,f.name)&&!o)return!0;if(vl(d,n))break}else if(St(d)&&vl(d,n))break}}};function Ab(e,n,r){const o=me(e,r);if(o||nu(r))return{error:o,name:r};const s=r.split(".");for(;s.length;){const c=s.join("."),f=me(n,c),d=me(e,c);if(f&&!Array.isArray(f)&&r!==c)return{name:r};if(d&&d.type)return{name:c,error:d};if(d&&d.root&&d.root.type)return{name:`${c}.root`,error:d.root};s.pop()}return{name:r}}var O4=(e,n,r,o)=>{r(e);const{name:s,...c}=e;return on(c)||Object.keys(c).length>=Object.keys(n).length||Object.keys(c).find(f=>n[f]===(!o||Ln.all))},A4=(e,n,r)=>!e||!n||e===n||gl(e).some(o=>o&&(r?o===n:o.startsWith(n)||n.startsWith(o))),R4=(e,n,r,o,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(n||e):(r?o.isOnBlur:s.isOnBlur)?!e:(r?o.isOnChange:s.isOnChange)?e:!0,M4=(e,n)=>!Jm(me(e,n)).length&&Ct(e,n),D4=(e,n,r)=>{const o=gl(me(e,r));return Qe(o,"root",n[r]),Qe(e,r,o),e},Ec=e=>aa(e);function Rb(e,n,r="validate"){if(Ec(e)||Array.isArray(e)&&e.every(Ec)||yn(e)&&!e)return{type:r,message:Ec(e)?e:"",ref:n}}var Yo=e=>St(e)&&!Bc(e)?e:{value:e,message:""},Mb=async(e,n,r,o,s,c)=>{const{ref:f,refs:d,required:p,maxLength:h,minLength:y,min:g,max:x,pattern:E,validate:k,name:S,valueAsNumber:T,mount:O}=e._f,C=me(r,S);if(!O||n.has(S))return{};const A=d?d[0]:f,N=te=>{s&&A.reportValidity&&(A.setCustomValidity(yn(te)?"":te||""),A.reportValidity())},M={},q=oh(f),L=Fl(f),U=q||L,ee=(T||rh(f))&&wt(f.value)&&wt(C)||zc(f)&&f.value===""||C===""||Array.isArray(C)&&!C.length,ie=ah.bind(null,S,o,M),se=(te,ce,he,pe=Aa.maxLength,B=Aa.minLength)=>{const I=te?ce:he;M[S]={type:te?pe:B,message:I,ref:f,...ie(te?pe:B,I)}};if(c?!Array.isArray(C)||!C.length:p&&(!U&&(ee||Qt(C))||yn(C)&&!C||L&&!_1(d).isValid||q&&!T1(d).isValid)){const{value:te,message:ce}=Ec(p)?{value:!!p,message:p}:Yo(p);if(te&&(M[S]={type:Aa.required,message:ce,ref:A,...ie(Aa.required,ce)},!o))return N(ce),M}if(!ee&&(!Qt(g)||!Qt(x))){let te,ce;const he=Yo(x),pe=Yo(g);if(!Qt(C)&&!isNaN(C)){const B=f.valueAsNumber||C&&+C;Qt(he.value)||(te=B>he.value),Qt(pe.value)||(ce=B<pe.value)}else{const B=f.valueAsDate||new Date(C),I=R=>new Date(new Date().toDateString()+" "+R),H=f.type=="time",ye=f.type=="week";aa(he.value)&&C&&(te=H?I(C)>I(he.value):ye?C>he.value:B>new Date(he.value)),aa(pe.value)&&C&&(ce=H?I(C)<I(pe.value):ye?C<pe.value:B<new Date(pe.value))}if((te||ce)&&(se(!!te,he.message,pe.message,Aa.max,Aa.min),!o))return N(M[S].message),M}if((h||y)&&!ee&&(aa(C)||c&&Array.isArray(C))){const te=Yo(h),ce=Yo(y),he=!Qt(te.value)&&C.length>+te.value,pe=!Qt(ce.value)&&C.length<+ce.value;if((he||pe)&&(se(he,te.message,ce.message),!o))return N(M[S].message),M}if(E&&!ee&&aa(C)){const{value:te,message:ce}=Yo(E);if(Bc(te)&&!C.match(te)&&(M[S]={type:Aa.pattern,message:ce,ref:f,...ie(Aa.pattern,ce)},!o))return N(ce),M}if(k){if(Un(k)){const te=await k(C,r),ce=Rb(te,A);if(ce&&(M[S]={...ce,...ie(Aa.validate,ce.message)},!o))return N(ce.message),M}else if(St(k)){let te={};for(const ce in k){if(!on(te)&&!o)break;const he=Rb(await k[ce](C,r),A,ce);he&&(te={...he,...ie(ce,he.message)},N(he.message),o&&(M[S]=te))}if(!on(te)&&(M[S]={ref:A,...te},!o))return M}}return N(!0),M};const N4={mode:Ln.onSubmit,reValidateMode:Ln.onChange,shouldFocusError:!0};function z4(e={}){let n={...N4,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Un(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},s=St(n.defaultValues)||St(n.values)?Nt(n.defaultValues||n.values)||{}:{},c=n.shouldUnregister?{}:Nt(s),f={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,h=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...y};const x={array:wb(),state:wb()},E=n.criteriaMode===Ln.all,k=z=>Z=>{clearTimeout(h),h=setTimeout(z,Z)},S=async z=>{if(!n.disabled&&(y.isValid||g.isValid||z)){const Z=n.resolver?on((await L()).errors):await ee(o,!0);Z!==r.isValid&&x.state.next({isValid:Z})}},T=(z,Z)=>{!n.disabled&&(y.isValidating||y.validatingFields||g.isValidating||g.validatingFields)&&((z||Array.from(d.mount)).forEach(G=>{G&&(Z?Qe(r.validatingFields,G,Z):Ct(r.validatingFields,G))}),x.state.next({validatingFields:r.validatingFields,isValidating:!on(r.validatingFields)}))},O=(z,Z=[],G,de,ue=!0,re=!0)=>{if(de&&G&&!n.disabled){if(f.action=!0,re&&Array.isArray(me(o,z))){const xe=G(me(o,z),de.argA,de.argB);ue&&Qe(o,z,xe)}if(re&&Array.isArray(me(r.errors,z))){const xe=G(me(r.errors,z),de.argA,de.argB);ue&&Qe(r.errors,z,xe),M4(r.errors,z)}if((y.touchedFields||g.touchedFields)&&re&&Array.isArray(me(r.touchedFields,z))){const xe=G(me(r.touchedFields,z),de.argA,de.argB);ue&&Qe(r.touchedFields,z,xe)}(y.dirtyFields||g.dirtyFields)&&(r.dirtyFields=ul(s,c)),x.state.next({name:z,isDirty:se(z,Z),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Qe(c,z,Z)},C=(z,Z)=>{Qe(r.errors,z,Z),x.state.next({errors:r.errors})},A=z=>{r.errors=z,x.state.next({errors:r.errors,isValid:!1})},N=(z,Z,G,de)=>{const ue=me(o,z);if(ue){const re=me(c,z,wt(G)?me(s,z):G);wt(re)||de&&de.defaultChecked||Z?Qe(c,z,Z?re:Tb(ue._f)):he(z,re),f.mount&&S()}},M=(z,Z,G,de,ue)=>{let re=!1,xe=!1;const Ae={name:z};if(!n.disabled){if(!G||de){(y.isDirty||g.isDirty)&&(xe=r.isDirty,r.isDirty=Ae.isDirty=se(),re=xe!==Ae.isDirty);const Pe=fr(me(s,z),Z);xe=!!me(r.dirtyFields,z),Pe?Ct(r.dirtyFields,z):Qe(r.dirtyFields,z,!0),Ae.dirtyFields=r.dirtyFields,re=re||(y.dirtyFields||g.dirtyFields)&&xe!==!Pe}if(G){const Pe=me(r.touchedFields,z);Pe||(Qe(r.touchedFields,z,G),Ae.touchedFields=r.touchedFields,re=re||(y.touchedFields||g.touchedFields)&&Pe!==G)}re&&ue&&x.state.next(Ae)}return re?Ae:{}},q=(z,Z,G,de)=>{const ue=me(r.errors,z),re=(y.isValid||g.isValid)&&yn(Z)&&r.isValid!==Z;if(n.delayError&&G?(p=k(()=>C(z,G)),p(n.delayError)):(clearTimeout(h),p=null,G?Qe(r.errors,z,G):Ct(r.errors,z)),(G?!fr(ue,G):ue)||!on(de)||re){const xe={...de,...re&&yn(Z)?{isValid:Z}:{},errors:r.errors,name:z};r={...r,...xe},x.state.next(xe)}},L=async z=>{T(z,!0);const Z=await n.resolver(c,n.context,T4(z||d.mount,o,n.criteriaMode,n.shouldUseNativeValidation));return T(z),Z},U=async z=>{const{errors:Z}=await L(z);if(z)for(const G of z){const de=me(Z,G);de?Qe(r.errors,G,de):Ct(r.errors,G)}else r.errors=Z;return Z},ee=async(z,Z,G={valid:!0})=>{for(const de in z){const ue=z[de];if(ue){const{_f:re,...xe}=ue;if(re){const Ae=d.array.has(re.name),Pe=ue._f&&k4(ue._f);Pe&&y.validatingFields&&T([de],!0);const et=await Mb(ue,d.disabled,c,E,n.shouldUseNativeValidation&&!Z,Ae);if(Pe&&y.validatingFields&&T([de]),et[re.name]&&(G.valid=!1,Z))break;!Z&&(me(et,re.name)?Ae?D4(r.errors,et,re.name):Qe(r.errors,re.name,et[re.name]):Ct(r.errors,re.name))}!on(xe)&&await ee(xe,Z,G)}}return G.valid},ie=()=>{for(const z of d.unMount){const Z=me(o,z);Z&&(Z._f.refs?Z._f.refs.every(G=>!Fd(G)):!Fd(Z._f.ref))&&oe(z)}d.unMount=new Set},se=(z,Z)=>!n.disabled&&(z&&Z&&Qe(c,z,Z),!fr(R(),s)),te=(z,Z,G)=>b1(z,d,{...f.mount?c:wt(Z)?s:aa(z)?{[z]:Z}:Z},G,Z),ce=z=>Jm(me(f.mount?c:s,z,n.shouldUnregister?me(s,z,[]):[])),he=(z,Z,G={})=>{const de=me(o,z);let ue=Z;if(de){const re=de._f;re&&(!re.disabled&&Qe(c,z,E1(Z,re)),ue=zc(re.ref)&&Qt(Z)?"":Z,x1(re.ref)?[...re.ref.options].forEach(xe=>xe.selected=ue.includes(xe.value)):re.refs?Fl(re.ref)?re.refs.forEach(xe=>{(!xe.defaultChecked||!xe.disabled)&&(Array.isArray(ue)?xe.checked=!!ue.find(Ae=>Ae===xe.value):xe.checked=ue===xe.value||!!ue)}):re.refs.forEach(xe=>xe.checked=xe.value===ue):rh(re.ref)?re.ref.value="":(re.ref.value=ue,re.ref.type||x.state.next({name:z,values:Nt(c)})))}(G.shouldDirty||G.shouldTouch)&&M(z,ue,G.shouldTouch,G.shouldDirty,!0),G.shouldValidate&&ye(z)},pe=(z,Z,G)=>{for(const de in Z){if(!Z.hasOwnProperty(de))return;const ue=Z[de],re=z+"."+de,xe=me(o,re);(d.array.has(z)||St(ue)||xe&&!xe._f)&&!Vr(ue)?pe(re,ue,G):he(re,ue,G)}},B=(z,Z,G={})=>{const de=me(o,z),ue=d.array.has(z),re=Nt(Z);Qe(c,z,re),ue?(x.array.next({name:z,values:Nt(c)}),(y.isDirty||y.dirtyFields||g.isDirty||g.dirtyFields)&&G.shouldDirty&&x.state.next({name:z,dirtyFields:ul(s,c),isDirty:se(z,re)})):de&&!de._f&&!Qt(re)?pe(z,re,G):he(z,re,G),Ob(z,d)&&x.state.next({...r}),x.state.next({name:f.mount?z:void 0,values:Nt(c)})},I=async z=>{f.mount=!0;const Z=z.target;let G=Z.name,de=!0;const ue=me(o,G),re=Pe=>{de=Number.isNaN(Pe)||Vr(Pe)&&isNaN(Pe.getTime())||fr(Pe,me(c,G,Pe))},xe=kb(n.mode),Ae=kb(n.reValidateMode);if(ue){let Pe,et;const Pa=Z.type?Tb(ue._f):p1(z),bn=z.type===Nc.BLUR||z.type===Nc.FOCUS_OUT,oi=!C4(ue._f)&&!n.resolver&&!me(r.errors,G)&&!ue._f.deps||R4(bn,me(r.touchedFields,G),r.isSubmitted,Ae,xe),$n=Ob(G,d,bn);Qe(c,G,Pa),bn?(ue._f.onBlur&&ue._f.onBlur(z),p&&p(0)):ue._f.onChange&&ue._f.onChange(z);const qn=M(G,Pa,bn),Mn=!on(qn)||$n;if(!bn&&x.state.next({name:G,type:z.type,values:Nt(c)}),oi)return(y.isValid||g.isValid)&&(n.mode==="onBlur"?bn&&S():bn||S()),Mn&&x.state.next({name:G,...$n?{}:qn});if(!bn&&$n&&x.state.next({...r}),n.resolver){const{errors:Wn}=await L([G]);if(re(Pa),de){const da=Ab(r.errors,o,G),Me=Ab(Wn,o,da.name||G);Pe=Me.error,G=Me.name,et=on(Wn)}}else T([G],!0),Pe=(await Mb(ue,d.disabled,c,E,n.shouldUseNativeValidation))[G],T([G]),re(Pa),de&&(Pe?et=!1:(y.isValid||g.isValid)&&(et=await ee(o,!0)));de&&(ue._f.deps&&ye(ue._f.deps),q(G,et,Pe,qn))}},H=(z,Z)=>{if(me(r.errors,Z)&&z.focus)return z.focus(),1},ye=async(z,Z={})=>{let G,de;const ue=gl(z);if(n.resolver){const re=await U(wt(z)?z:ue);G=on(re),de=z?!ue.some(xe=>me(re,xe)):G}else z?(de=(await Promise.all(ue.map(async re=>{const xe=me(o,re);return await ee(xe&&xe._f?{[re]:xe}:xe)}))).every(Boolean),!(!de&&!r.isValid)&&S()):de=G=await ee(o);return x.state.next({...!aa(z)||(y.isValid||g.isValid)&&G!==r.isValid?{}:{name:z},...n.resolver||!z?{isValid:G}:{},errors:r.errors}),Z.shouldFocus&&!de&&vl(o,H,z?ue:d.mount),de},R=z=>{const Z={...f.mount?c:s};return wt(z)?Z:aa(z)?me(Z,z):z.map(G=>me(Z,G))},K=(z,Z)=>({invalid:!!me((Z||r).errors,z),isDirty:!!me((Z||r).dirtyFields,z),error:me((Z||r).errors,z),isValidating:!!me(r.validatingFields,z),isTouched:!!me((Z||r).touchedFields,z)}),le=z=>{z&&gl(z).forEach(Z=>Ct(r.errors,Z)),x.state.next({errors:z?r.errors:{}})},ae=(z,Z,G)=>{const de=(me(o,z,{_f:{}})._f||{}).ref,ue=me(r.errors,z)||{},{ref:re,message:xe,type:Ae,...Pe}=ue;Qe(r.errors,z,{...Pe,...Z,ref:de}),x.state.next({name:z,errors:r.errors,isValid:!1}),G&&G.shouldFocus&&de&&de.focus&&de.focus()},fe=(z,Z)=>Un(z)?x.state.subscribe({next:G=>z(te(void 0,Z),G)}):te(z,Z,!0),ke=z=>x.state.subscribe({next:Z=>{A4(z.name,Z.name,z.exact)&&O4(Z,z.formState||y,jt,z.reRenderRoot)&&z.callback({values:{...c},...r,...Z})}}).unsubscribe,we=z=>(f.mount=!0,g={...g,...z.formState},ke({...z,formState:g})),oe=(z,Z={})=>{for(const G of z?gl(z):d.mount)d.mount.delete(G),d.array.delete(G),Z.keepValue||(Ct(o,G),Ct(c,G)),!Z.keepError&&Ct(r.errors,G),!Z.keepDirty&&Ct(r.dirtyFields,G),!Z.keepTouched&&Ct(r.touchedFields,G),!Z.keepIsValidating&&Ct(r.validatingFields,G),!n.shouldUnregister&&!Z.keepDefaultValue&&Ct(s,G);x.state.next({values:Nt(c)}),x.state.next({...r,...Z.keepDirty?{isDirty:se()}:{}}),!Z.keepIsValid&&S()},_e=({disabled:z,name:Z})=>{(yn(z)&&f.mount||z||d.disabled.has(Z))&&(z?d.disabled.add(Z):d.disabled.delete(Z))},Be=(z,Z={})=>{let G=me(o,z);const de=yn(Z.disabled)||yn(n.disabled);return Qe(o,z,{...G||{},_f:{...G&&G._f?G._f:{ref:{name:z}},name:z,mount:!0,...Z}}),d.mount.add(z),G?_e({disabled:yn(Z.disabled)?Z.disabled:n.disabled,name:z}):N(z,!0,Z.value),{...de?{disabled:Z.disabled||n.disabled}:{},...n.progressive?{required:!!Z.required,min:fl(Z.min),max:fl(Z.max),minLength:fl(Z.minLength),maxLength:fl(Z.maxLength),pattern:fl(Z.pattern)}:{},name:z,onChange:I,onBlur:I,ref:ue=>{if(ue){Be(z,Z),G=me(o,z);const re=wt(ue.value)&&ue.querySelectorAll&&ue.querySelectorAll("input,select,textarea")[0]||ue,xe=S4(re),Ae=G._f.refs||[];if(xe?Ae.find(Pe=>Pe===re):re===G._f.ref)return;Qe(o,z,{_f:{...G._f,...xe?{refs:[...Ae.filter(Fd),re,...Array.isArray(me(s,z))?[{}]:[]],ref:{type:re.type,name:z}}:{ref:re}}}),N(z,!1,void 0,re)}else G=me(o,z,{}),G._f&&(G._f.mount=!1),(n.shouldUnregister||Z.shouldUnregister)&&!(y1(d.array,z)&&f.action)&&d.unMount.add(z)}}},Ne=()=>n.shouldFocusError&&vl(o,H,d.mount),Ue=z=>{yn(z)&&(x.state.next({disabled:z}),vl(o,(Z,G)=>{const de=me(o,G);de&&(Z.disabled=de._f.disabled||z,Array.isArray(de._f.refs)&&de._f.refs.forEach(ue=>{ue.disabled=de._f.disabled||z}))},0,!1))},Ve=(z,Z)=>async G=>{let de;G&&(G.preventDefault&&G.preventDefault(),G.persist&&G.persist());let ue=Nt(c);if(x.state.next({isSubmitting:!0}),n.resolver){const{errors:re,values:xe}=await L();r.errors=re,ue=Nt(xe)}else await ee(o);if(d.disabled.size)for(const re of d.disabled)Ct(ue,re);if(Ct(r.errors,"root"),on(r.errors)){x.state.next({errors:{}});try{await z(ue,G)}catch(re){de=re}}else Z&&await Z({...r.errors},G),Ne(),setTimeout(Ne);if(x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:on(r.errors)&&!de,submitCount:r.submitCount+1,errors:r.errors}),de)throw de},_t=(z,Z={})=>{me(o,z)&&(wt(Z.defaultValue)?B(z,Nt(me(s,z))):(B(z,Z.defaultValue),Qe(s,z,Nt(Z.defaultValue))),Z.keepTouched||Ct(r.touchedFields,z),Z.keepDirty||(Ct(r.dirtyFields,z),r.isDirty=Z.defaultValue?se(z,Nt(me(s,z))):se()),Z.keepError||(Ct(r.errors,z),y.isValid&&S()),x.state.next({...r}))},Ft=(z,Z={})=>{const G=z?Nt(z):s,de=Nt(G),ue=on(z),re=ue?s:de;if(Z.keepDefaultValues||(s=G),!Z.keepValues){if(Z.keepDirtyValues){const xe=new Set([...d.mount,...Object.keys(ul(s,c))]);for(const Ae of Array.from(xe))me(r.dirtyFields,Ae)?Qe(re,Ae,me(c,Ae)):B(Ae,me(re,Ae))}else{if(Qm&&wt(z))for(const xe of d.mount){const Ae=me(o,xe);if(Ae&&Ae._f){const Pe=Array.isArray(Ae._f.refs)?Ae._f.refs[0]:Ae._f.ref;if(zc(Pe)){const et=Pe.closest("form");if(et){et.reset();break}}}}if(Z.keepFieldsRef)for(const xe of d.mount)B(xe,me(re,xe));else o={}}c=n.shouldUnregister?Z.keepDefaultValues?Nt(s):{}:Nt(re),x.array.next({values:{...re}}),x.state.next({values:{...re}})}d={mount:Z.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!y.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,f.watch=!!n.shouldUnregister,x.state.next({submitCount:Z.keepSubmitCount?r.submitCount:0,isDirty:ue?!1:Z.keepDirty?r.isDirty:!!(Z.keepDefaultValues&&!fr(z,s)),isSubmitted:Z.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ue?{}:Z.keepDirtyValues?Z.keepDefaultValues&&c?ul(s,c):r.dirtyFields:Z.keepDefaultValues&&z?ul(s,z):Z.keepDirty?r.dirtyFields:{},touchedFields:Z.keepTouched?r.touchedFields:{},errors:Z.keepErrors?r.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Yn=(z,Z)=>Ft(Un(z)?z(c):z,Z),fa=(z,Z={})=>{const G=me(o,z),de=G&&G._f;if(de){const ue=de.refs?de.refs[0]:de.ref;ue.focus&&(ue.focus(),Z.shouldSelect&&Un(ue.select)&&ue.select())}},jt=z=>{r={...r,...z}},vr={control:{register:Be,unregister:oe,getFieldState:K,handleSubmit:Ve,setError:ae,_subscribe:ke,_runSchema:L,_focusError:Ne,_getWatch:te,_getDirty:se,_setValid:S,_setFieldArray:O,_setDisabledField:_e,_setErrors:A,_getFieldArray:ce,_reset:Ft,_resetDefaultValues:()=>Un(n.defaultValues)&&n.defaultValues().then(z=>{Yn(z,n.resetOptions),x.state.next({isLoading:!1})}),_removeUnmounted:ie,_disableForm:Ue,_subjects:x,_proxyFormState:y,get _fields(){return o},get _formValues(){return c},get _state(){return f},set _state(z){f=z},get _defaultValues(){return s},get _names(){return d},set _names(z){d=z},get _formState(){return r},get _options(){return n},set _options(z){n={...n,...z}}},subscribe:we,trigger:ye,register:Be,handleSubmit:Ve,watch:fe,setValue:B,getValues:R,reset:Yn,resetField:_t,clearErrors:le,unregister:oe,setError:ae,setFocus:fa,getFieldState:K};return{...vr,formControl:vr}}function j4(e={}){const n=W.useRef(void 0),r=W.useRef(void 0),[o,s]=W.useState({isDirty:!1,isValidating:!1,isLoading:Un(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Un(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:o},e.defaultValues&&!Un(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:f,...d}=z4(e);n.current={...d,formState:o}}const c=n.current.control;return c._options=e,nh(()=>{const f=c._subscribe({formState:c._proxyFormState,callback:()=>s({...c._formState}),reRenderRoot:!0});return s(d=>({...d,isReady:!0})),c._formState.isReady=!0,f},[c]),W.useEffect(()=>c._disableForm(e.disabled),[c,e.disabled]),W.useEffect(()=>{e.mode&&(c._options.mode=e.mode),e.reValidateMode&&(c._options.reValidateMode=e.reValidateMode)},[c,e.mode,e.reValidateMode]),W.useEffect(()=>{e.errors&&(c._setErrors(e.errors),c._focusError())},[c,e.errors]),W.useEffect(()=>{e.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,e.shouldUnregister]),W.useEffect(()=>{if(c._proxyFormState.isDirty){const f=c._getDirty();f!==o.isDirty&&c._subjects.state.next({isDirty:f})}},[c,o.isDirty]),W.useEffect(()=>{e.values&&!fr(e.values,r.current)?(c._reset(e.values,{keepFieldsRef:!0,...c._options.resetOptions}),r.current=e.values,s(f=>({...f}))):c._resetDefaultValues()},[c,e.values]),W.useEffect(()=>{c._state.mount||(c._setValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),n.current.formState=g1(o,c),n.current}const Db=(e,n,r)=>{if(e&&"reportValidity"in e){const o=me(r,n);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},fm=(e,n)=>{for(const r in n.fields){const o=n.fields[r];o&&o.ref&&"reportValidity"in o.ref?Db(o.ref,r,e):o&&o.refs&&o.refs.forEach(s=>Db(s,r,e))}},Nb=(e,n)=>{n.shouldUseNativeValidation&&fm(e,n);const r={};for(const o in e){const s=me(n.fields,o),c=Object.assign(e[o]||{},{ref:s&&s.ref});if(B4(n.names||Object.keys(e),o)){const f=Object.assign({},me(r,o));Qe(f,"root",c),Qe(r,o,f)}else Qe(r,o,c)}return r},B4=(e,n)=>{const r=zb(n);return e.some(o=>zb(o).match(`^${r}\\.\\d+`))};function zb(e){return e.replace(/\]|\[/g,"")}function jb(e,n){try{var r=e()}catch(o){return n(o)}return r&&r.then?r.then(void 0,n):r}function L4(e,n){for(var r={};e.length;){var o=e[0],s=o.code,c=o.message,f=o.path.join(".");if(!r[f])if("unionErrors"in o){var d=o.unionErrors[0].errors[0];r[f]={message:d.message,type:d.code}}else r[f]={message:c,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(y){return y.errors.forEach(function(g){return e.push(g)})}),n){var p=r[f].types,h=p&&p[o.code];r[f]=ah(f,n,r,s,h?[].concat(h,o.message):o.message)}e.shift()}return r}function U4(e,n){for(var r={};e.length;){var o=e[0],s=o.code,c=o.message,f=o.path.join(".");if(!r[f])if(o.code==="invalid_union"){var d=o.errors[0][0];r[f]={message:d.message,type:d.code}}else r[f]={message:c,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(y){return y.forEach(function(g){return e.push(g)})}),n){var p=r[f].types,h=p&&p[o.code];r[f]=ah(f,n,r,s,h?[].concat(h,o.message):o.message)}e.shift()}return r}function P4(e,n,r){if(r===void 0&&(r={}),function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def}(e))return function(o,s,c){try{return Promise.resolve(jb(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](o,n)).then(function(f){return c.shouldUseNativeValidation&&fm({},c),{errors:{},values:r.raw?Object.assign({},o):f}})},function(f){if(function(d){return Array.isArray(d?.issues)}(f))return{values:{},errors:Nb(L4(f.errors,!c.shouldUseNativeValidation&&c.criteriaMode==="all"),c)};throw f}))}catch(f){return Promise.reject(f)}};if(function(o){return"_zod"in o&&typeof o._zod=="object"}(e))return function(o,s,c){try{return Promise.resolve(jb(function(){return Promise.resolve((r.mode==="sync"?GD:XD)(e,o,n)).then(function(f){return c.shouldUseNativeValidation&&fm({},c),{errors:{},values:r.raw?Object.assign({},o):f}})},function(f){if(function(d){return d instanceof Xm}(f))return{values:{},errors:Nb(U4(f.issues,!c.shouldUseNativeValidation&&c.criteriaMode==="all"),c)};throw f}))}catch(f){return Promise.reject(f)}};throw new Error("Invalid input: not a Zod schema")}function H4({className:e,...n}){return w.jsx("div",{"data-slot":"card",className:qt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function F4({className:e,...n}){return w.jsx("div",{"data-slot":"card-content",className:qt("px-6",e),...n})}function Bb(e,[n,r]){return Math.min(r,Math.max(n,e))}function k1(e){const n=e+"CollectionProvider",[r,o]=Xr(n),[s,c]=r(n,{collectionRef:{current:null},itemMap:new Map}),f=S=>{const{scope:T,children:O}=S,C=W.useRef(null),A=W.useRef(new Map).current;return w.jsx(s,{scope:T,itemMap:A,collectionRef:C,children:O})};f.displayName=n;const d=e+"CollectionSlot",p=Io(d),h=W.forwardRef((S,T)=>{const{scope:O,children:C}=S,A=c(d,O),N=ft(T,A.collectionRef);return w.jsx(p,{ref:N,children:C})});h.displayName=d;const y=e+"CollectionItemSlot",g="data-radix-collection-item",x=Io(y),E=W.forwardRef((S,T)=>{const{scope:O,children:C,...A}=S,N=W.useRef(null),M=ft(T,N),q=c(y,O);return W.useEffect(()=>(q.itemMap.set(N,{ref:N,...A}),()=>void q.itemMap.delete(N))),w.jsx(x,{[g]:"",ref:M,children:C})});E.displayName=y;function k(S){const T=c(e+"CollectionConsumer",S);return W.useCallback(()=>{const C=T.collectionRef.current;if(!C)return[];const A=Array.from(C.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((q,L)=>A.indexOf(q.ref.current)-A.indexOf(L.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:f,Slot:h,ItemSlot:E},k,o]}var V4=b.createContext(void 0);function ih(e){const n=b.useContext(V4);return e||n||"ltr"}function C1(e){const n=b.useRef({value:e,previous:e});return b.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var O1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Z4="VisuallyHidden",Y4=b.forwardRef((e,n)=>w.jsx(Ge.span,{...e,ref:n,style:{...O1,...e.style}}));Y4.displayName=Z4;var $4=[" ","Enter","ArrowUp","ArrowDown"],q4=[" ","Enter"],Wr="Select",[ru,ou,W4]=k1(Wr),[ri,u6]=Xr(Wr,[W4,Ic]),iu=Ic(),[I4,yr]=ri(Wr),[G4,X4]=ri(Wr),A1=e=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:s,onOpenChange:c,value:f,defaultValue:d,onValueChange:p,dir:h,name:y,autoComplete:g,disabled:x,required:E,form:k}=e,S=iu(n),[T,O]=b.useState(null),[C,A]=b.useState(null),[N,M]=b.useState(!1),q=ih(h),[L,U]=Tl({prop:o,defaultProp:s??!1,onChange:c,caller:Wr}),[ee,ie]=Tl({prop:f,defaultProp:d,onChange:p,caller:Wr}),se=b.useRef(null),te=T?k||!!T.closest("form"):!0,[ce,he]=b.useState(new Set),pe=Array.from(ce).map(B=>B.props.value).join(";");return w.jsx(dx,{...S,children:w.jsxs(I4,{required:E,scope:n,trigger:T,onTriggerChange:O,valueNode:C,onValueNodeChange:A,valueNodeHasChildren:N,onValueNodeHasChildrenChange:M,contentId:Ll(),value:ee,onValueChange:ie,open:L,onOpenChange:U,dir:q,triggerPointerDownPosRef:se,disabled:x,children:[w.jsx(ru.Provider,{scope:n,children:w.jsx(G4,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(B=>{he(I=>new Set(I).add(B))},[]),onNativeOptionRemove:b.useCallback(B=>{he(I=>{const H=new Set(I);return H.delete(B),H})},[]),children:r})}),te?w.jsxs(K1,{"aria-hidden":!0,required:E,tabIndex:-1,name:y,autoComplete:g,value:ee,onChange:B=>ie(B.target.value),disabled:x,form:k,children:[ee===void 0?w.jsx("option",{value:""}):null,Array.from(ce)]},pe):null]})})};A1.displayName=Wr;var R1="SelectTrigger",M1=b.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:o=!1,...s}=e,c=iu(r),f=yr(R1,r),d=f.disabled||o,p=ft(n,f.onTriggerChange),h=ou(r),y=b.useRef("touch"),[g,x,E]=J1(S=>{const T=h().filter(A=>!A.disabled),O=T.find(A=>A.value===f.value),C=ew(T,S,O);C!==void 0&&f.onValueChange(C.value)}),k=S=>{d||(f.onOpenChange(!0),E()),S&&(f.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return w.jsx(Pm,{asChild:!0,...c,children:w.jsx(Ge.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":Q1(f.value)?"":void 0,...s,ref:p,onClick:Ye(s.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&k(S)}),onPointerDown:Ye(s.onPointerDown,S=>{y.current=S.pointerType;const T=S.target;T.hasPointerCapture(S.pointerId)&&T.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(k(S),S.preventDefault())}),onKeyDown:Ye(s.onKeyDown,S=>{const T=g.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&x(S.key),!(T&&S.key===" ")&&$4.includes(S.key)&&(k(),S.preventDefault())})})})});M1.displayName=R1;var D1="SelectValue",N1=b.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:s,children:c,placeholder:f="",...d}=e,p=yr(D1,r),{onValueNodeHasChildrenChange:h}=p,y=c!==void 0,g=ft(n,p.onValueNodeChange);return Xt(()=>{h(y)},[h,y]),w.jsx(Ge.span,{...d,ref:g,style:{pointerEvents:"none"},children:Q1(p.value)?w.jsx(w.Fragment,{children:f}):c})});N1.displayName=D1;var K4="SelectIcon",z1=b.forwardRef((e,n)=>{const{__scopeSelect:r,children:o,...s}=e;return w.jsx(Ge.span,{"aria-hidden":!0,...s,ref:n,children:o||"▼"})});z1.displayName=K4;var Q4="SelectPortal",j1=e=>w.jsx(Hm,{asChild:!0,...e});j1.displayName=Q4;var Ir="SelectContent",B1=b.forwardRef((e,n)=>{const r=yr(Ir,e.__scopeSelect),[o,s]=b.useState();if(Xt(()=>{s(new DocumentFragment)},[]),!r.open){const c=o;return c?Bl.createPortal(w.jsx(L1,{scope:e.__scopeSelect,children:w.jsx(ru.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),c):null}return w.jsx(U1,{...e,ref:n})});B1.displayName=Ir;var Bn=10,[L1,gr]=ri(Ir),J4="SelectContentImpl",ej=Io("SelectContent.RemoveScroll"),U1=b.forwardRef((e,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:f,side:d,sideOffset:p,align:h,alignOffset:y,arrowPadding:g,collisionBoundary:x,collisionPadding:E,sticky:k,hideWhenDetached:S,avoidCollisions:T,...O}=e,C=yr(Ir,r),[A,N]=b.useState(null),[M,q]=b.useState(null),L=ft(n,oe=>N(oe)),[U,ee]=b.useState(null),[ie,se]=b.useState(null),te=ou(r),[ce,he]=b.useState(!1),pe=b.useRef(!1);b.useEffect(()=>{if(A)return yx(A)},[A]),V0();const B=b.useCallback(oe=>{const[_e,...Be]=te().map(Ve=>Ve.ref.current),[Ne]=Be.slice(-1),Ue=document.activeElement;for(const Ve of oe)if(Ve===Ue||(Ve?.scrollIntoView({block:"nearest"}),Ve===_e&&M&&(M.scrollTop=0),Ve===Ne&&M&&(M.scrollTop=M.scrollHeight),Ve?.focus(),document.activeElement!==Ue))return},[te,M]),I=b.useCallback(()=>B([U,A]),[B,U,A]);b.useEffect(()=>{ce&&I()},[ce,I]);const{onOpenChange:H,triggerPointerDownPosRef:ye}=C;b.useEffect(()=>{if(A){let oe={x:0,y:0};const _e=Ne=>{oe={x:Math.abs(Math.round(Ne.pageX)-(ye.current?.x??0)),y:Math.abs(Math.round(Ne.pageY)-(ye.current?.y??0))}},Be=Ne=>{oe.x<=10&&oe.y<=10?Ne.preventDefault():A.contains(Ne.target)||H(!1),document.removeEventListener("pointermove",_e),ye.current=null};return ye.current!==null&&(document.addEventListener("pointermove",_e),document.addEventListener("pointerup",Be,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_e),document.removeEventListener("pointerup",Be,{capture:!0})}}},[A,H,ye]),b.useEffect(()=>{const oe=()=>H(!1);return window.addEventListener("blur",oe),window.addEventListener("resize",oe),()=>{window.removeEventListener("blur",oe),window.removeEventListener("resize",oe)}},[H]);const[R,K]=J1(oe=>{const _e=te().filter(Ue=>!Ue.disabled),Be=_e.find(Ue=>Ue.ref.current===document.activeElement),Ne=ew(_e,oe,Be);Ne&&setTimeout(()=>Ne.ref.current.focus())}),le=b.useCallback((oe,_e,Be)=>{const Ne=!pe.current&&!Be;(C.value!==void 0&&C.value===_e||Ne)&&(ee(oe),Ne&&(pe.current=!0))},[C.value]),ae=b.useCallback(()=>A?.focus(),[A]),fe=b.useCallback((oe,_e,Be)=>{const Ne=!pe.current&&!Be;(C.value!==void 0&&C.value===_e||Ne)&&se(oe)},[C.value]),ke=o==="popper"?dm:P1,we=ke===dm?{side:d,sideOffset:p,align:h,alignOffset:y,arrowPadding:g,collisionBoundary:x,collisionPadding:E,sticky:k,hideWhenDetached:S,avoidCollisions:T}:{};return w.jsx(L1,{scope:r,content:A,viewport:M,onViewportChange:q,itemRefCallback:le,selectedItem:U,onItemLeave:ae,itemTextRefCallback:fe,focusSelectedItem:I,selectedItemText:ie,position:o,isPositioned:ce,searchRef:R,children:w.jsx(Fm,{as:ej,allowPinchZoom:!0,children:w.jsx(Am,{asChild:!0,trapped:C.open,onMountAutoFocus:oe=>{oe.preventDefault()},onUnmountAutoFocus:Ye(s,oe=>{C.trigger?.focus({preventScroll:!0}),oe.preventDefault()}),children:w.jsx(Om,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:oe=>oe.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:w.jsx(ke,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:oe=>oe.preventDefault(),...O,...we,onPlaced:()=>he(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:Ye(O.onKeyDown,oe=>{const _e=oe.ctrlKey||oe.altKey||oe.metaKey;if(oe.key==="Tab"&&oe.preventDefault(),!_e&&oe.key.length===1&&K(oe.key),["ArrowUp","ArrowDown","Home","End"].includes(oe.key)){let Ne=te().filter(Ue=>!Ue.disabled).map(Ue=>Ue.ref.current);if(["ArrowUp","End"].includes(oe.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(oe.key)){const Ue=oe.target,Ve=Ne.indexOf(Ue);Ne=Ne.slice(Ve+1)}setTimeout(()=>B(Ne)),oe.preventDefault()}})})})})})})});U1.displayName=J4;var tj="SelectItemAlignedPosition",P1=b.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:o,...s}=e,c=yr(Ir,r),f=gr(Ir,r),[d,p]=b.useState(null),[h,y]=b.useState(null),g=ft(n,L=>y(L)),x=ou(r),E=b.useRef(!1),k=b.useRef(!0),{viewport:S,selectedItem:T,selectedItemText:O,focusSelectedItem:C}=f,A=b.useCallback(()=>{if(c.trigger&&c.valueNode&&d&&h&&S&&T&&O){const L=c.trigger.getBoundingClientRect(),U=h.getBoundingClientRect(),ee=c.valueNode.getBoundingClientRect(),ie=O.getBoundingClientRect();if(c.dir!=="rtl"){const Ue=ie.left-U.left,Ve=ee.left-Ue,_t=L.left-Ve,Ft=L.width+_t,Yn=Math.max(Ft,U.width),fa=window.innerWidth-Bn,jt=Bb(Ve,[Bn,Math.max(Bn,fa-Yn)]);d.style.minWidth=Ft+"px",d.style.left=jt+"px"}else{const Ue=U.right-ie.right,Ve=window.innerWidth-ee.right-Ue,_t=window.innerWidth-L.right-Ve,Ft=L.width+_t,Yn=Math.max(Ft,U.width),fa=window.innerWidth-Bn,jt=Bb(Ve,[Bn,Math.max(Bn,fa-Yn)]);d.style.minWidth=Ft+"px",d.style.right=jt+"px"}const se=x(),te=window.innerHeight-Bn*2,ce=S.scrollHeight,he=window.getComputedStyle(h),pe=parseInt(he.borderTopWidth,10),B=parseInt(he.paddingTop,10),I=parseInt(he.borderBottomWidth,10),H=parseInt(he.paddingBottom,10),ye=pe+B+ce+H+I,R=Math.min(T.offsetHeight*5,ye),K=window.getComputedStyle(S),le=parseInt(K.paddingTop,10),ae=parseInt(K.paddingBottom,10),fe=L.top+L.height/2-Bn,ke=te-fe,we=T.offsetHeight/2,oe=T.offsetTop+we,_e=pe+B+oe,Be=ye-_e;if(_e<=fe){const Ue=se.length>0&&T===se[se.length-1].ref.current;d.style.bottom="0px";const Ve=h.clientHeight-S.offsetTop-S.offsetHeight,_t=Math.max(ke,we+(Ue?ae:0)+Ve+I),Ft=_e+_t;d.style.height=Ft+"px"}else{const Ue=se.length>0&&T===se[0].ref.current;d.style.top="0px";const _t=Math.max(fe,pe+S.offsetTop+(Ue?le:0)+we)+Be;d.style.height=_t+"px",S.scrollTop=_e-fe+S.offsetTop}d.style.margin=`${Bn}px 0`,d.style.minHeight=R+"px",d.style.maxHeight=te+"px",o?.(),requestAnimationFrame(()=>E.current=!0)}},[x,c.trigger,c.valueNode,d,h,S,T,O,c.dir,o]);Xt(()=>A(),[A]);const[N,M]=b.useState();Xt(()=>{h&&M(window.getComputedStyle(h).zIndex)},[h]);const q=b.useCallback(L=>{L&&k.current===!0&&(A(),C?.(),k.current=!1)},[A,C]);return w.jsx(aj,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:E,onScrollButtonChange:q,children:w.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:w.jsx(Ge.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});P1.displayName=tj;var nj="SelectPopperPosition",dm=b.forwardRef((e,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:s=Bn,...c}=e,f=iu(r);return w.jsx(mx,{...f,...c,ref:n,align:o,collisionPadding:s,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});dm.displayName=nj;var[aj,lh]=ri(Ir,{}),mm="SelectViewport",H1=b.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:o,...s}=e,c=gr(mm,r),f=lh(mm,r),d=ft(n,c.onViewportChange),p=b.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),w.jsx(ru.Slot,{scope:r,children:w.jsx(Ge.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Ye(s.onScroll,h=>{const y=h.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:x}=f;if(x?.current&&g){const E=Math.abs(p.current-y.scrollTop);if(E>0){const k=window.innerHeight-Bn*2,S=parseFloat(g.style.minHeight),T=parseFloat(g.style.height),O=Math.max(S,T);if(O<k){const C=O+E,A=Math.min(k,C),N=C-A;g.style.height=A+"px",g.style.bottom==="0px"&&(y.scrollTop=N>0?N:0,g.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});H1.displayName=mm;var F1="SelectGroup",[rj,oj]=ri(F1),ij=b.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,s=Ll();return w.jsx(rj,{scope:r,id:s,children:w.jsx(Ge.div,{role:"group","aria-labelledby":s,...o,ref:n})})});ij.displayName=F1;var V1="SelectLabel",lj=b.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,s=oj(V1,r);return w.jsx(Ge.div,{id:s.id,...o,ref:n})});lj.displayName=V1;var Lc="SelectItem",[sj,Z1]=ri(Lc),Y1=b.forwardRef((e,n)=>{const{__scopeSelect:r,value:o,disabled:s=!1,textValue:c,...f}=e,d=yr(Lc,r),p=gr(Lc,r),h=d.value===o,[y,g]=b.useState(c??""),[x,E]=b.useState(!1),k=ft(n,C=>p.itemRefCallback?.(C,o,s)),S=Ll(),T=b.useRef("touch"),O=()=>{s||(d.onValueChange(o),d.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(sj,{scope:r,value:o,disabled:s,textId:S,isSelected:h,onItemTextChange:b.useCallback(C=>{g(A=>A||(C?.textContent??"").trim())},[]),children:w.jsx(ru.ItemSlot,{scope:r,value:o,disabled:s,textValue:y,children:w.jsx(Ge.div,{role:"option","aria-labelledby":S,"data-highlighted":x?"":void 0,"aria-selected":h&&x,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...f,ref:k,onFocus:Ye(f.onFocus,()=>E(!0)),onBlur:Ye(f.onBlur,()=>E(!1)),onClick:Ye(f.onClick,()=>{T.current!=="mouse"&&O()}),onPointerUp:Ye(f.onPointerUp,()=>{T.current==="mouse"&&O()}),onPointerDown:Ye(f.onPointerDown,C=>{T.current=C.pointerType}),onPointerMove:Ye(f.onPointerMove,C=>{T.current=C.pointerType,s?p.onItemLeave?.():T.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ye(f.onPointerLeave,C=>{C.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:Ye(f.onKeyDown,C=>{p.searchRef?.current!==""&&C.key===" "||(q4.includes(C.key)&&O(),C.key===" "&&C.preventDefault())})})})})});Y1.displayName=Lc;var hl="SelectItemText",$1=b.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:s,...c}=e,f=yr(hl,r),d=gr(hl,r),p=Z1(hl,r),h=X4(hl,r),[y,g]=b.useState(null),x=ft(n,O=>g(O),p.onItemTextChange,O=>d.itemTextRefCallback?.(O,p.value,p.disabled)),E=y?.textContent,k=b.useMemo(()=>w.jsx("option",{value:p.value,disabled:p.disabled,children:E},p.value),[p.disabled,p.value,E]),{onNativeOptionAdd:S,onNativeOptionRemove:T}=h;return Xt(()=>(S(k),()=>T(k)),[S,T,k]),w.jsxs(w.Fragment,{children:[w.jsx(Ge.span,{id:p.textId,...c,ref:x}),p.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Bl.createPortal(c.children,f.valueNode):null]})});$1.displayName=hl;var q1="SelectItemIndicator",W1=b.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return Z1(q1,r).isSelected?w.jsx(Ge.span,{"aria-hidden":!0,...o,ref:n}):null});W1.displayName=q1;var hm="SelectScrollUpButton",I1=b.forwardRef((e,n)=>{const r=gr(hm,e.__scopeSelect),o=lh(hm,e.__scopeSelect),[s,c]=b.useState(!1),f=ft(n,o.onScrollButtonChange);return Xt(()=>{if(r.viewport&&r.isPositioned){let d=function(){const h=p.scrollTop>0;c(h)};const p=r.viewport;return d(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),s?w.jsx(X1,{...e,ref:f,onAutoScroll:()=>{const{viewport:d,selectedItem:p}=r;d&&p&&(d.scrollTop=d.scrollTop-p.offsetHeight)}}):null});I1.displayName=hm;var pm="SelectScrollDownButton",G1=b.forwardRef((e,n)=>{const r=gr(pm,e.__scopeSelect),o=lh(pm,e.__scopeSelect),[s,c]=b.useState(!1),f=ft(n,o.onScrollButtonChange);return Xt(()=>{if(r.viewport&&r.isPositioned){let d=function(){const h=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<h;c(y)};const p=r.viewport;return d(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),s?w.jsx(X1,{...e,ref:f,onAutoScroll:()=>{const{viewport:d,selectedItem:p}=r;d&&p&&(d.scrollTop=d.scrollTop+p.offsetHeight)}}):null});G1.displayName=pm;var X1=b.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:o,...s}=e,c=gr("SelectScrollButton",r),f=b.useRef(null),d=ou(r),p=b.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return b.useEffect(()=>()=>p(),[p]),Xt(()=>{d().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),w.jsx(Ge.div,{"aria-hidden":!0,...s,ref:n,style:{flexShrink:0,...s.style},onPointerDown:Ye(s.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(o,50))}),onPointerMove:Ye(s.onPointerMove,()=>{c.onItemLeave?.(),f.current===null&&(f.current=window.setInterval(o,50))}),onPointerLeave:Ye(s.onPointerLeave,()=>{p()})})}),cj="SelectSeparator",uj=b.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return w.jsx(Ge.div,{"aria-hidden":!0,...o,ref:n})});uj.displayName=cj;var ym="SelectArrow",fj=b.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,s=iu(r),c=yr(ym,r),f=gr(ym,r);return c.open&&f.position==="popper"?w.jsx(hx,{...s,...o,ref:n}):null});fj.displayName=ym;var dj="SelectBubbleInput",K1=b.forwardRef(({__scopeSelect:e,value:n,...r},o)=>{const s=b.useRef(null),c=ft(o,s),f=C1(n);return b.useEffect(()=>{const d=s.current;if(!d)return;const p=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(f!==n&&y){const g=new Event("change",{bubbles:!0});y.call(d,n),d.dispatchEvent(g)}},[f,n]),w.jsx(Ge.select,{...r,style:{...O1,...r.style},ref:c,defaultValue:n})});K1.displayName=dj;function Q1(e){return e===""||e===void 0}function J1(e){const n=dr(e),r=b.useRef(""),o=b.useRef(0),s=b.useCallback(f=>{const d=r.current+f;n(d),function p(h){r.current=h,window.clearTimeout(o.current),h!==""&&(o.current=window.setTimeout(()=>p(""),1e3))}(d)},[n]),c=b.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,s,c]}function ew(e,n,r){const s=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,c=r?e.indexOf(r):-1;let f=mj(e,Math.max(c,0));s.length===1&&(f=f.filter(h=>h!==r));const p=f.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return p!==r?p:void 0}function mj(e,n){return e.map((r,o)=>e[(n+o)%e.length])}var hj=A1,pj=M1,yj=N1,gj=z1,vj=j1,bj=B1,xj=H1,wj=Y1,Sj=$1,_j=W1,Ej=I1,Tj=G1;function kj({...e}){return w.jsx(hj,{"data-slot":"select",...e})}function Cj({...e}){return w.jsx(yj,{"data-slot":"select-value",...e})}function Oj({className:e,size:n="default",children:r,...o}){return w.jsxs(pj,{"data-slot":"select-trigger","data-size":n,className:qt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground 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 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[r,w.jsx(gj,{asChild:!0,children:w.jsx(qx,{className:"size-4 opacity-50"})})]})}function Aj({className:e,children:n,position:r="popper",...o}){return w.jsx(vj,{children:w.jsxs(bj,{"data-slot":"select-content",className:qt("bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[w.jsx(Rj,{}),w.jsx(xj,{className:qt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:n}),w.jsx(Mj,{})]})})}function yc({className:e,children:n,...r}){return w.jsxs(wj,{"data-slot":"select-item",className:qt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[w.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:w.jsx(_j,{children:w.jsx($x,{className:"size-4"})})}),w.jsx(Sj,{children:n})]})}function Rj({className:e,...n}){return w.jsx(Ej,{"data-slot":"select-scroll-up-button",className:qt("flex cursor-default items-center justify-center py-1",e),...n,children:w.jsx(lD,{className:"size-4"})})}function Mj({className:e,...n}){return w.jsx(Tj,{"data-slot":"select-scroll-down-button",className:qt("flex cursor-default items-center justify-center py-1",e),...n,children:w.jsx(qx,{className:"size-4"})})}function Dj(){const{dateRange:e}=Cm(),[n,r]=b.useState(0),o=c=>{const f=new Date(c);return E0(f,"EEE, MMM dd")},s=()=>{if(!e||!e.start||!e.end)return;const c=new Date(e.start||""),f=new Date(e.end||"");r(Em(f,c))};return b.useEffect(()=>{s()},[]),w.jsx(w.Fragment,{children:e&&e.start&&e.end?w.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl border",children:[w.jsxs("div",{children:[w.jsx("p",{className:"font-semibold",children:o(e.start)}),w.jsx("p",{className:"text-sm text-gray-500",children:"03:00 PM"})]}),w.jsx(JM,{className:"mx-2"}),w.jsxs("div",{children:[w.jsx("p",{className:"font-semibold",children:o(e.end)}),w.jsx("p",{className:"text-sm text-gray-500",children:"11:00 AM"})]}),w.jsxs("div",{className:"ml-4 text-right",children:[w.jsx("p",{className:"font-semibold",children:n}),w.jsx("p",{className:"text-sm text-gray-500",children:"nights"})]})]}):""})}function gc({className:e,type:n,...r}){return w.jsx("input",{type:n,"data-slot":"input",className:qt("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",e),...r})}var Vd="rovingFocusGroup.onEntryFocus",Nj={bubbles:!1,cancelable:!0},Vl="RovingFocusGroup",[gm,tw,zj]=k1(Vl),[jj,nw]=Xr(Vl,[zj]),[Bj,Lj]=jj(Vl),aw=b.forwardRef((e,n)=>w.jsx(gm.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(gm.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Uj,{...e,ref:n})})}));aw.displayName=Vl;var Uj=b.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:h,preventScrollOnEntryFocus:y=!1,...g}=e,x=b.useRef(null),E=ft(n,x),k=ih(c),[S,T]=Tl({prop:f,defaultProp:d??null,onChange:p,caller:Vl}),[O,C]=b.useState(!1),A=dr(h),N=tw(r),M=b.useRef(!1),[q,L]=b.useState(0);return b.useEffect(()=>{const U=x.current;if(U)return U.addEventListener(Vd,A),()=>U.removeEventListener(Vd,A)},[A]),w.jsx(Bj,{scope:r,orientation:o,dir:k,loop:s,currentTabStopId:S,onItemFocus:b.useCallback(U=>T(U),[T]),onItemShiftTab:b.useCallback(()=>C(!0),[]),onFocusableItemAdd:b.useCallback(()=>L(U=>U+1),[]),onFocusableItemRemove:b.useCallback(()=>L(U=>U-1),[]),children:w.jsx(Ge.div,{tabIndex:O||q===0?-1:0,"data-orientation":o,...g,ref:E,style:{outline:"none",...e.style},onMouseDown:Ye(e.onMouseDown,()=>{M.current=!0}),onFocus:Ye(e.onFocus,U=>{const ee=!M.current;if(U.target===U.currentTarget&&ee&&!O){const ie=new CustomEvent(Vd,Nj);if(U.currentTarget.dispatchEvent(ie),!ie.defaultPrevented){const se=N().filter(B=>B.focusable),te=se.find(B=>B.active),ce=se.find(B=>B.id===S),pe=[te,ce,...se].filter(Boolean).map(B=>B.ref.current);iw(pe,y)}}M.current=!1}),onBlur:Ye(e.onBlur,()=>C(!1))})})}),rw="RovingFocusGroupItem",ow=b.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:s=!1,tabStopId:c,children:f,...d}=e,p=Ll(),h=c||p,y=Lj(rw,r),g=y.currentTabStopId===h,x=tw(r),{onFocusableItemAdd:E,onFocusableItemRemove:k,currentTabStopId:S}=y;return b.useEffect(()=>{if(o)return E(),()=>k()},[o,E,k]),w.jsx(gm.ItemSlot,{scope:r,id:h,focusable:o,active:s,children:w.jsx(Ge.span,{tabIndex:g?0:-1,"data-orientation":y.orientation,...d,ref:n,onMouseDown:Ye(e.onMouseDown,T=>{o?y.onItemFocus(h):T.preventDefault()}),onFocus:Ye(e.onFocus,()=>y.onItemFocus(h)),onKeyDown:Ye(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){y.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const O=Fj(T,y.orientation,y.dir);if(O!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let A=x().filter(N=>N.focusable).map(N=>N.ref.current);if(O==="last")A.reverse();else if(O==="prev"||O==="next"){O==="prev"&&A.reverse();const N=A.indexOf(T.currentTarget);A=y.loop?Vj(A,N+1):A.slice(N+1)}setTimeout(()=>iw(A))}}),children:typeof f=="function"?f({isCurrentTabStop:g,hasTabStop:S!=null}):f})})});ow.displayName=rw;var Pj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Hj(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Fj(e,n,r){const o=Hj(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Pj[o]}function iw(e,n=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:n}),document.activeElement!==r))return}function Vj(e,n){return e.map((r,o)=>e[(n+o)%e.length])}var Zj=aw,Yj=ow,sh="Radio",[$j,lw]=Xr(sh),[qj,Wj]=$j(sh),sw=b.forwardRef((e,n)=>{const{__scopeRadio:r,name:o,checked:s=!1,required:c,disabled:f,value:d="on",onCheck:p,form:h,...y}=e,[g,x]=b.useState(null),E=ft(n,T=>x(T)),k=b.useRef(!1),S=g?h||!!g.closest("form"):!0;return w.jsxs(qj,{scope:r,checked:s,disabled:f,children:[w.jsx(Ge.button,{type:"button",role:"radio","aria-checked":s,"data-state":dw(s),"data-disabled":f?"":void 0,disabled:f,value:d,...y,ref:E,onClick:Ye(e.onClick,T=>{s||p?.(),S&&(k.current=T.isPropagationStopped(),k.current||T.stopPropagation())})}),S&&w.jsx(fw,{control:g,bubbles:!k.current,name:o,value:d,checked:s,required:c,disabled:f,form:h,style:{transform:"translateX(-100%)"}})]})});sw.displayName=sh;var cw="RadioIndicator",uw=b.forwardRef((e,n)=>{const{__scopeRadio:r,forceMount:o,...s}=e,c=Wj(cw,r);return w.jsx(Gc,{present:o||c.checked,children:w.jsx(Ge.span,{"data-state":dw(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:n})})});uw.displayName=cw;var Ij="RadioBubbleInput",fw=b.forwardRef(({__scopeRadio:e,control:n,checked:r,bubbles:o=!0,...s},c)=>{const f=b.useRef(null),d=ft(f,c),p=C1(r),h=nx(n);return b.useEffect(()=>{const y=f.current;if(!y)return;const g=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(g,"checked").set;if(p!==r&&E){const k=new Event("click",{bubbles:o});E.call(y,r),y.dispatchEvent(k)}},[p,r,o]),w.jsx(Ge.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:d,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});fw.displayName=Ij;function dw(e){return e?"checked":"unchecked"}var Gj=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],lu="RadioGroup",[Xj,f6]=Xr(lu,[nw,lw]),mw=nw(),hw=lw(),[Kj,Qj]=Xj(lu),pw=b.forwardRef((e,n)=>{const{__scopeRadioGroup:r,name:o,defaultValue:s,value:c,required:f=!1,disabled:d=!1,orientation:p,dir:h,loop:y=!0,onValueChange:g,...x}=e,E=mw(r),k=ih(h),[S,T]=Tl({prop:c,defaultProp:s??null,onChange:g,caller:lu});return w.jsx(Kj,{scope:r,name:o,required:f,disabled:d,value:S,onValueChange:T,children:w.jsx(Zj,{asChild:!0,...E,orientation:p,dir:k,loop:y,children:w.jsx(Ge.div,{role:"radiogroup","aria-required":f,"aria-orientation":p,"data-disabled":d?"":void 0,dir:k,...x,ref:n})})})});pw.displayName=lu;var yw="RadioGroupItem",gw=b.forwardRef((e,n)=>{const{__scopeRadioGroup:r,disabled:o,...s}=e,c=Qj(yw,r),f=c.disabled||o,d=mw(r),p=hw(r),h=b.useRef(null),y=ft(n,h),g=c.value===s.value,x=b.useRef(!1);return b.useEffect(()=>{const E=S=>{Gj.includes(S.key)&&(x.current=!0)},k=()=>x.current=!1;return document.addEventListener("keydown",E),document.addEventListener("keyup",k),()=>{document.removeEventListener("keydown",E),document.removeEventListener("keyup",k)}},[]),w.jsx(Yj,{asChild:!0,...d,focusable:!f,active:g,children:w.jsx(sw,{disabled:f,required:c.required,checked:g,...p,...s,name:c.name,ref:y,onCheck:()=>c.onValueChange(s.value),onKeyDown:Ye(E=>{E.key==="Enter"&&E.preventDefault()}),onFocus:Ye(s.onFocus,()=>{x.current&&h.current?.click()})})})});gw.displayName=yw;var Jj="RadioGroupIndicator",vw=b.forwardRef((e,n)=>{const{__scopeRadioGroup:r,...o}=e,s=hw(r);return w.jsx(uw,{...s,...o,ref:n})});vw.displayName=Jj;var e6=pw,t6=gw,n6=vw;function Lb({className:e,...n}){return w.jsx(e6,{"data-slot":"radio-group",className:qt("grid gap-3",e),...n})}function vc({className:e,...n}){return w.jsx(t6,{"data-slot":"radio-group-item",className:qt("border-input 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",e),...n,children:w.jsx(n6,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:w.jsx(cD,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}var a6="Label",bw=b.forwardRef((e,n)=>w.jsx(Ge.label,{...e,ref:n,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));bw.displayName=a6;var r6=bw;function o6({className:e,...n}){return w.jsx(r6,{"data-slot":"label",className:qt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}const i6=v4,xw=b.createContext({}),Lr=({...e})=>w.jsx(xw.Provider,{value:{name:e.name},children:w.jsx(w4,{...e})}),ch=()=>{const e=b.useContext(xw),n=b.useContext(ww),{getFieldState:r}=au(),o=v1({name:e.name}),s=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:c}=n;return{id:c,name:e.name,formItemId:`${c}-form-item`,formDescriptionId:`${c}-form-item-description`,formMessageId:`${c}-form-item-message`,...s}},ww=b.createContext({});function Ur({className:e,...n}){const r=b.useId();return w.jsx(ww.Provider,{value:{id:r},children:w.jsx("div",{"data-slot":"form-item",className:qt("grid gap-2",e),...n})})}function jn({className:e,...n}){const{error:r,formItemId:o}=ch();return w.jsx(o6,{"data-slot":"form-label","data-error":!!r,className:qt("data-[error=true]:text-destructive",e),htmlFor:o,...n})}function Pr({...e}){const{error:n,formItemId:r,formDescriptionId:o,formMessageId:s}=ch();return w.jsx(P0,{"data-slot":"form-control",id:r,"aria-describedby":n?`${o} ${s}`:`${o}`,"aria-invalid":!!n,...e})}function Hr({className:e,...n}){const{error:r,formMessageId:o}=ch(),s=r?String(r?.message??""):n.children;return s?w.jsx("p",{"data-slot":"form-message",id:o,className:qt("text-destructive text-sm",e),...n,children:s}):null}const l6=I3({firstName:cl().min(1,"First name is required"),lastName:cl().min(1,"Last name is required"),email:cl().email("Please enter a valid email"),country:cl().min(1,"Please select a country"),phone:cl().optional(),smoking:cm(["Non-smoking","Smoking"]),bedSetup:cm(["Large","Twin"])});function s6(){const{slug:e}=Gb(),n=j4({resolver:P4(l6),defaultValues:{firstName:"",lastName:"",email:"",country:"",phone:"",smoking:"Non-smoking",bedSetup:"Large"}});function r(o){console.log(o),rt.success("Booking details saved")}return w.jsxs(w.Fragment,{children:[w.jsx(Xx,{slug:e||""}),w.jsx(H4,{className:"max-w-xl mx-auto p-6 mt-14",children:w.jsxs(F4,{children:[w.jsx(Dj,{}),w.jsx("h2",{className:"my-5 text-xl font-bold",children:"Lead Guest"}),w.jsx(i6,{...n,children:w.jsxs("form",{onSubmit:n.handleSubmit(r),className:"space-y-4",children:[w.jsx(Lr,{control:n.control,name:"firstName",render:({field:o})=>w.jsxs(Ur,{children:[w.jsx(jn,{children:"First name *"}),w.jsx(Pr,{children:w.jsx(gc,{...o})}),w.jsx(Hr,{})]})}),w.jsx(Lr,{control:n.control,name:"lastName",render:({field:o})=>w.jsxs(Ur,{children:[w.jsx(jn,{children:"Last name *"}),w.jsx(Pr,{children:w.jsx(gc,{...o})}),w.jsx(Hr,{})]})}),w.jsx(Lr,{control:n.control,name:"email",render:({field:o})=>w.jsxs(Ur,{children:[w.jsx(jn,{children:"Email *"}),w.jsx(Pr,{children:w.jsx(gc,{...o})}),w.jsx(Hr,{})]})}),w.jsx(Lr,{control:n.control,name:"country",render:({field:o})=>w.jsxs(Ur,{children:[w.jsx(jn,{children:"Country/region of residence *"}),w.jsx(Pr,{children:w.jsxs(kj,{value:o.value,onValueChange:o.onChange,children:[w.jsx(Oj,{className:"w-full",children:w.jsx(Cj,{placeholder:"Select a country"})}),w.jsxs(Aj,{children:[w.jsx(yc,{value:"Philippines",children:"Philippines"}),w.jsx(yc,{value:"Singapore",children:"Singapore"}),w.jsx(yc,{value:"United States",children:"United States"}),w.jsx(yc,{value:"Other",children:"Other"})]})]})}),w.jsx(Hr,{})]})}),w.jsx(Lr,{control:n.control,name:"phone",render:({field:o})=>w.jsxs(Ur,{children:[w.jsx(jn,{children:"Phone number (optional)"}),w.jsx(Pr,{children:w.jsx(gc,{...o})}),w.jsx(Hr,{})]})}),w.jsxs("div",{children:[w.jsx("h3",{className:"font-semibold mb-4",children:"Special requests"}),w.jsx(Lr,{control:n.control,name:"smoking",render:({field:o})=>w.jsxs(Ur,{className:"space-y-2 mb-6",children:[w.jsx(jn,{children:"Which type of room would you prefer?"}),w.jsx(Pr,{children:w.jsxs(Lb,{value:o.value,onValueChange:o.onChange,children:[w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx(vc,{value:"Non-smoking"}),w.jsx(jn,{children:"Non-smoking"})]}),w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx(vc,{value:"Smoking"}),w.jsx(jn,{children:"Smoking"})]})]})}),w.jsx(Hr,{})]})}),w.jsx(Lr,{control:n.control,name:"bedSetup",render:({field:o})=>w.jsxs(Ur,{className:"space-y-2",children:[w.jsx(jn,{children:"Which bed setup would you prefer?"}),w.jsx(Pr,{children:w.jsxs(Lb,{value:o.value,onValueChange:o.onChange,children:[w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx(vc,{value:"Large"}),w.jsx(jn,{children:"I’d like a large bed"})]}),w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx(vc,{value:"Twin"}),w.jsx(jn,{children:"I’d like twin beds"})]})]})}),w.jsx(Hr,{})]})})]}),w.jsx(Ym,{type:"submit",className:"w-full !bg-primary mt-4",children:"NEXT: FINAL STEP"}),w.jsx("p",{className:"text-green-600 text-xs text-center",children:"You won’t be charged yet."})]})})]})})]})}h2.createRoot(document.getElementById("root")).render(w.jsx(JE,{children:w.jsx(AE,{children:w.jsxs(dl,{path:"/",element:w.jsx(tT,{}),children:[w.jsx(dl,{index:!0,element:w.jsx(y2,{})}),w.jsx(dl,{path:"/solea/:slug",element:w.jsx(jD,{})}),w.jsx(dl,{path:"/solea/:slug/book",element:w.jsx(s6,{})})]})})}));
