airport-one-embeddable-widgets 2.28.16 → 2.28.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var AirportOneEmbeddableWidgets=(function(){"use strict";function
|
|
1
|
+
var AirportOneEmbeddableWidgets=(function(){"use strict";function YA(t,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in t)){const f=Object.getOwnPropertyDescriptor(i,l);f&&Object.defineProperty(t,l,f.get?f:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Cm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var W0={exports:{}},Td={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var AirportOneEmbeddableWidgets=(function(){"use strict";function AC(e,t){for(va
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Xx;function GA(){if(Xx)return Td;Xx=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,l,f){var h=null;if(f!==void 0&&(h=""+f),l.key!==void 0&&(h=""+l.key),"key"in l){f={};for(var g in l)g!=="key"&&(f[g]=l[g])}else f=l;return l=f.ref,{$$typeof:t,type:i,key:h,ref:l!==void 0?l:null,props:f}}return Td.Fragment=n,Td.jsx=r,Td.jsxs=r,Td}var X0={exports:{}},ot={},Kx;function VA(){if(Kx)return ot;Kx=1;var t={env:{NODE_ENV:"production"}};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var AirportOneEmbeddableWidgets=(function(){"use strict";function AC(e,t){for(va
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),T=Symbol.iterator;function N(P){return P===null||typeof P!="object"?null:(P=T&&P[T]||P["@@iterator"],typeof P=="function"?P:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,D={};function B(P,$,ee){this.props=P,this.context=$,this.refs=D,this.updater=ee||j}B.prototype.isReactComponent={},B.prototype.setState=function(P,$){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,$,"setState")},B.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function F(){}F.prototype=B.prototype;function re(P,$,ee){this.props=P,this.context=$,this.refs=D,this.updater=ee||j}var Y=re.prototype=new F;Y.constructor=re,M(Y,B.prototype),Y.isPureReactComponent=!0;var ne=Array.isArray,se={H:null,A:null,T:null,S:null,V:null},fe=Object.prototype.hasOwnProperty;function ie(P,$,ee,K,me,Re){return ee=Re.ref,{$$typeof:t,type:P,key:$,ref:ee!==void 0?ee:null,props:Re}}function we(P,$){return ie(P.type,$,void 0,void 0,void 0,P.props)}function Ce(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function De(P){var $={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ee){return $[ee]})}var _e=/\/+/g;function le(P,$){return typeof P=="object"&&P!==null&&P.key!=null?De(""+P.key):$.toString(36)}function ue(){}function he(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(ue,ue):(P.status="pending",P.then(function($){P.status==="pending"&&(P.status="fulfilled",P.value=$)},function($){P.status==="pending"&&(P.status="rejected",P.reason=$)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function Q(P,$,ee,K,me){var Re=typeof P;(Re==="undefined"||Re==="boolean")&&(P=null);var be=!1;if(P===null)be=!0;else switch(Re){case"bigint":case"string":case"number":be=!0;break;case"object":switch(P.$$typeof){case t:case r:be=!0;break;case S:return be=P._init,Q(be(P._payload),$,ee,K,me)}}if(be)return me=me(P),be=K===""?"."+le(P,0):K,ne(me)?(ee="",be!=null&&(ee=be.replace(_e,"$&/")+"/"),Q(me,$,ee,"",function(ft){return ft})):me!=null&&(Ce(me)&&(me=we(me,ee+(me.key==null||P&&P.key===me.key?"":(""+me.key).replace(_e,"$&/")+"/")+be)),$.push(me)),1;be=0;var Be=K===""?".":K+":";if(ne(P))for(var qe=0;qe<P.length;qe++)K=P[qe],Re=Be+le(K,qe),be+=Q(K,$,ee,Re,me);else if(qe=N(P),typeof qe=="function")for(P=qe.call(P),qe=0;!(K=P.next()).done;)K=K.value,Re=Be+le(K,qe++),be+=Q(K,$,ee,Re,me);else if(Re==="object"){if(typeof P.then=="function")return Q(he(P),$,ee,K,me);throw $=String(P),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return be}function U(P,$,ee){if(P==null)return P;var K=[],me=0;return Q(P,K,"","",function(Re){return $.call(ee,Re,me++)}),K}function z(P){if(P._status===-1){var $=P._result;$=$(),$.then(function(ee){(P._status===0||P._status===-1)&&(P._status=1,P._result=ee)},function(ee){(P._status===0||P._status===-1)&&(P._status=2,P._result=ee)}),P._status===-1&&(P._status=0,P._result=$)}if(P._status===1)return P._result.default;throw P._result}var ve=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent($))return}else if(typeof e=="object"&&typeof e.emit=="function"){e.emit("uncaughtException",P);return}console.error(P)};function Oe(){}return ct.Children={map:U,forEach:function(P,$,ee){U(P,function(){$.apply(this,arguments)},ee)},count:function(P){var $=0;return U(P,function(){$++}),$},toArray:function(P){return U(P,function($){return $})||[]},only:function(P){if(!Ce(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},ct.Component=B,ct.Fragment=i,ct.Profiler=f,ct.PureComponent=re,ct.StrictMode=l,ct.Suspense=b,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=se,ct.__COMPILER_RUNTIME={__proto__:null,c:function(P){return se.H.useMemoCache(P)}},ct.cache=function(P){return function(){return P.apply(null,arguments)}},ct.cloneElement=function(P,$,ee){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var K=M({},P.props),me=P.key,Re=void 0;if($!=null)for(be in $.ref!==void 0&&(Re=void 0),$.key!==void 0&&(me=""+$.key),$)!fe.call($,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&$.ref===void 0||(K[be]=$[be]);var be=arguments.length-2;if(be===1)K.children=ee;else if(1<be){for(var Be=Array(be),qe=0;qe<be;qe++)Be[qe]=arguments[qe+2];K.children=Be}return ie(P.type,me,void 0,void 0,Re,K)},ct.createContext=function(P){return P={$$typeof:m,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:h,_context:P},P},ct.createElement=function(P,$,ee){var K,me={},Re=null;if($!=null)for(K in $.key!==void 0&&(Re=""+$.key),$)fe.call($,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(me[K]=$[K]);var be=arguments.length-2;if(be===1)me.children=ee;else if(1<be){for(var Be=Array(be),qe=0;qe<be;qe++)Be[qe]=arguments[qe+2];me.children=Be}if(P&&P.defaultProps)for(K in be=P.defaultProps,be)me[K]===void 0&&(me[K]=be[K]);return ie(P,Re,void 0,void 0,null,me)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(P){return{$$typeof:y,render:P}},ct.isValidElement=Ce,ct.lazy=function(P){return{$$typeof:S,_payload:{_status:-1,_result:P},_init:z}},ct.memo=function(P,$){return{$$typeof:x,type:P,compare:$===void 0?null:$}},ct.startTransition=function(P){var $=se.T,ee={};se.T=ee;try{var K=P(),me=se.S;me!==null&&me(ee,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(Oe,ve)}catch(Re){ve(Re)}finally{se.T=$}},ct.unstable_useCacheRefresh=function(){return se.H.useCacheRefresh()},ct.use=function(P){return se.H.use(P)},ct.useActionState=function(P,$,ee){return se.H.useActionState(P,$,ee)},ct.useCallback=function(P,$){return se.H.useCallback(P,$)},ct.useContext=function(P){return se.H.useContext(P)},ct.useDebugValue=function(){},ct.useDeferredValue=function(P,$){return se.H.useDeferredValue(P,$)},ct.useEffect=function(P,$,ee){var K=se.H;if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(P,$)},ct.useId=function(){return se.H.useId()},ct.useImperativeHandle=function(P,$,ee){return se.H.useImperativeHandle(P,$,ee)},ct.useInsertionEffect=function(P,$){return se.H.useInsertionEffect(P,$)},ct.useLayoutEffect=function(P,$){return se.H.useLayoutEffect(P,$)},ct.useMemo=function(P,$){return se.H.useMemo(P,$)},ct.useOptimistic=function(P,$){return se.H.useOptimistic(P,$)},ct.useReducer=function(P,$,ee){return se.H.useReducer(P,$,ee)},ct.useRef=function(P){return se.H.useRef(P)},ct.useState=function(P){return se.H.useState(P)},ct.useSyncExternalStore=function(P,$,ee){return se.H.useSyncExternalStore(P,$,ee)},ct.useTransition=function(){return se.H.useTransition()},ct.version="19.1.1",ct}var zx;function k0(){return zx||(zx=1,M0.exports=TC()),M0.exports}var Px;function OC(){return Px||(Px=1,D0.exports=CC()),D0.exports}var R=OC(),ld=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},RC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},DC=class{#e=RC;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},rl=new DC;function MC(e){setTimeout(e,0)}var il=typeof window>"u"||"Deno"in globalThis;function Za(){}function kC(e,t){return typeof e=="function"?e(t):e}function N0(e){return typeof e=="number"&&e>=0&&e!==1/0}function jx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ko(e,t){return typeof e=="function"?e(t):e}function Ir(e,t){return typeof e=="function"?e(t):e}function Ux(e,t){const{type:r="all",exact:i,fetchStatus:l,predicate:f,queryKey:h,stale:m}=e;if(h){if(i){if(t.queryHash!==I0(h,t.options))return!1}else if(!cd(t.queryKey,h))return!1}if(r!=="all"){const y=t.isActive();if(r==="active"&&!y||r==="inactive"&&y)return!1}return!(typeof m=="boolean"&&t.isStale()!==m||l&&l!==t.state.fetchStatus||f&&!f(t))}function Hx(e,t){const{exact:r,status:i,predicate:l,mutationKey:f}=e;if(f){if(!t.options.mutationKey)return!1;if(r){if(ud(t.options.mutationKey)!==ud(f))return!1}else if(!cd(t.options.mutationKey,f))return!1}return!(i&&t.state.status!==i||l&&!l(t))}function I0(e,t){return(t?.queryKeyHashFn||ud)(e)}function ud(e){return JSON.stringify(e,(t,r)=>z0(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function cd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>cd(e[r],t[r])):!1}var NC=Object.prototype.hasOwnProperty;function Bx(e,t){if(e===t)return e;const r=qx(e)&&qx(t);if(!r&&!(z0(e)&&z0(t)))return t;const l=(r?e:Object.keys(e)).length,f=r?t:Object.keys(t),h=f.length,m=r?new Array(h):{};let y=0;for(let b=0;b<h;b++){const x=r?b:f[b],S=e[x],T=t[x];if(S===T){m[x]=S,(r?b<l:NC.call(e,x))&&y++;continue}if(S===null||T===null||typeof S!="object"||typeof T!="object"){m[x]=T;continue}const N=Bx(S,T);m[x]=N,N===S&&y++}return l===h&&y===l?e:m}function L0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function qx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function z0(e){if(!Fx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Fx(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fx(e){return Object.prototype.toString.call(e)==="[object Object]"}function IC(e){return new Promise(t=>{rl.setTimeout(t,e)})}function P0(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Bx(e,t):t}function LC(e,t,r=0){const i=[...e,t];return r&&i.length>r?i.slice(1):i}function zC(e,t,r=0){const i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var j0=Symbol();function Yx(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===j0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function PC(e,t){return typeof e=="function"?e(...t):!!e}var jC=class extends ld{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!il&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},U0=new jC;function H0(){let e,t;const r=new Promise((l,f)=>{e=l,t=f});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},r.reject=l=>{i({status:"rejected",reason:l}),t(l)},r}var UC=MC;function HC(){let e=[],t=0,r=m=>{m()},i=m=>{m()},l=UC;const f=m=>{t?e.push(m):l(()=>{r(m)})},h=()=>{const m=e;e=[],m.length&&l(()=>{i(()=>{m.forEach(y=>{r(y)})})})};return{batch:m=>{let y;t++;try{y=m()}finally{t--,t||h()}return y},batchCalls:m=>(...y)=>{f(()=>{m(...y)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{l=m}}}var ia=HC(),BC=class extends ld{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!il&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},em=new BC;function qC(e){return Math.min(1e3*2**e,3e4)}function Gx(e){return(e??"online")==="online"?em.isOnline():!0}var B0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Vx(e){let t=!1,r=0,i;const l=H0(),f=()=>l.status!=="pending",h=M=>{if(!f()){const D=new B0(M);T(D),e.onCancel?.(D)}},m=()=>{t=!0},y=()=>{t=!1},b=()=>U0.isFocused()&&(e.networkMode==="always"||em.isOnline())&&e.canRun(),x=()=>Gx(e.networkMode)&&e.canRun(),S=M=>{f()||(i?.(),l.resolve(M))},T=M=>{f()||(i?.(),l.reject(M))},N=()=>new Promise(M=>{i=D=>{(f()||b())&&M(D)},e.onPause?.()}).then(()=>{i=void 0,f()||e.onContinue?.()}),j=()=>{if(f())return;let M;const D=r===0?e.initialPromise:void 0;try{M=D??e.fn()}catch(B){M=Promise.reject(B)}Promise.resolve(M).then(S).catch(B=>{if(f())return;const F=e.retry??(il?0:3),re=e.retryDelay??qC,Y=typeof re=="function"?re(r,B):re,ne=F===!0||typeof F=="number"&&r<F||typeof F=="function"&&F(r,B);if(t||!ne){T(B);return}r++,e.onFail?.(r,B),IC(Y).then(()=>b()?void 0:N()).then(()=>{t?T(B):j()})})};return{promise:l,status:()=>l.status,cancel:h,continue:()=>(i?.(),l),cancelRetry:m,continueRetry:y,canStart:x,start:()=>(x()?j():N().then(j),l)}}var $x=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),N0(this.gcTime)&&(this.#e=rl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(il?1/0:300*1e3))}clearGcTimeout(){this.#e&&(rl.clearTimeout(this.#e),this.#e=void 0)}},FC={env:{NODE_ENV:"production"}},YC=class extends $x{#e;#t;#n;#r;#a;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Qx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Qx(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=P0(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Za).catch(Za):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Ir(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===j0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ko(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!jx(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const m=this.observers.find(y=>y.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,i=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},l=()=>{const m=Yx(this.options,t),b=(()=>{const x={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(x),x})();return this.#o=!1,this.options.persister?this.options.persister(m,b,this):m(b)},h=(()=>{const m={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return i(m),m})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=Vx({initialPromise:t?.initialPromise,fn:h.fetchFn,onCancel:m=>{m instanceof B0&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(m,y)=>{this.#i({type:"failed",failureCount:m,error:y})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw FC.env.NODE_ENV,new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof B0){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Zx(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),ia.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Zx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Qx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var GC=class extends ld{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#o=H0(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#a;#s;#o;#i;#m;#d;#h;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Wx(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return q0(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return q0(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ir(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#t.setOptions(this.options),t._defaulted&&!L0(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&Xx(this.#t,r,this.options,t)&&this.#f(),this.updateResult(),i&&(this.#t!==r||Ir(this.options.enabled,this.#t)!==Ir(t.enabled,this.#t)||Ko(this.options.staleTime,this.#t)!==Ko(t.staleTime,this.#t))&&this.#g();const l=this.#y();i&&(this.#t!==r||Ir(this.options.enabled,this.#t)!==Ir(t.enabled,this.#t)||l!==this.#l)&&this.#v(l)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return $C(this,r)&&(this.#r=r,this.#s=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),t?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#_();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Za)),t}#g(){this.#x();const e=Ko(this.options.staleTime,this.#t);if(il||this.#r.isStale||!N0(e))return;const r=jx(this.#r.dataUpdatedAt,e)+1;this.#u=rl.setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#l=e,!(il||Ir(this.options.enabled,this.#t)===!1||!N0(this.#l)||this.#l===0)&&(this.#c=rl.setInterval(()=>{(this.options.refetchIntervalInBackground||U0.isFocused())&&this.#f()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#x(){this.#u&&(rl.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(rl.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const r=this.#t,i=this.options,l=this.#r,f=this.#a,h=this.#s,y=e!==r?e.state:this.#n,{state:b}=e;let x={...b},S=!1,T;if(t._optimisticResults){const ie=this.hasListeners(),we=!ie&&Wx(e,t),Ce=ie&&Xx(e,r,t,i);(we||Ce)&&(x={...x,...Zx(b.data,e.options)}),t._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:N,errorUpdatedAt:j,status:M}=x;T=x.data;let D=!1;if(t.placeholderData!==void 0&&T===void 0&&M==="pending"){let ie;l?.isPlaceholderData&&t.placeholderData===h?.placeholderData?(ie=l.data,D=!0):ie=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,ie!==void 0&&(M="success",T=P0(l?.data,ie,t),S=!0)}if(t.select&&T!==void 0&&!D)if(l&&T===f?.data&&t.select===this.#m)T=this.#d;else try{this.#m=t.select,T=t.select(T),T=P0(l?.data,T,t),this.#d=T,this.#i=null}catch(ie){this.#i=ie}this.#i&&(N=this.#i,T=this.#d,j=Date.now(),M="error");const B=x.fetchStatus==="fetching",F=M==="pending",re=M==="error",Y=F&&B,ne=T!==void 0,fe={status:M,fetchStatus:x.fetchStatus,isPending:F,isSuccess:M==="success",isError:re,isInitialLoading:Y,isLoading:Y,data:T,dataUpdatedAt:x.dataUpdatedAt,error:N,errorUpdatedAt:j,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>y.dataUpdateCount||x.errorUpdateCount>y.errorUpdateCount,isFetching:B,isRefetching:B&&!F,isLoadingError:re&&!ne,isPaused:x.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:re&&ne,isStale:F0(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Ir(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ie=De=>{fe.status==="error"?De.reject(fe.error):fe.data!==void 0&&De.resolve(fe.data)},we=()=>{const De=this.#o=fe.promise=H0();ie(De)},Ce=this.#o;switch(Ce.status){case"pending":e.queryHash===r.queryHash&&ie(Ce);break;case"fulfilled":(fe.status==="error"||fe.data!==Ce.value)&&we();break;case"rejected":(fe.status!=="error"||fe.error!==Ce.reason)&&we();break}}return fe}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),L0(t,e))return;this.#r=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#p.size)return!0;const f=new Set(l??this.#p);return this.options.throwOnError&&f.add("error"),Object.keys(this.#r).some(h=>{const m=h;return this.#r[m]!==e[m]&&f.has(m)})};this.#S({listeners:r()})}#_(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(e){ia.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function VC(e,t){return Ir(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Wx(e,t){return VC(e,t)||e.state.data!==void 0&&q0(e,t,t.refetchOnMount)}function q0(e,t,r){if(Ir(t.enabled,e)!==!1&&Ko(t.staleTime,e)!=="static"){const i=typeof r=="function"?r(e):r;return i==="always"||i!==!1&&F0(e,t)}return!1}function Xx(e,t,r,i){return(e!==t||Ir(i.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&F0(e,r)}function F0(e,t){return Ir(t.enabled,e)!==!1&&e.isStaleByTime(Ko(t.staleTime,e))}function $C(e,t){return!L0(e.getCurrentResult(),t)}function Kx(e){return{onFetch:(t,r)=>{const i=t.options,l=t.fetchOptions?.meta?.fetchMore?.direction,f=t.state.data?.pages||[],h=t.state.data?.pageParams||[];let m={pages:[],pageParams:[]},y=0;const b=async()=>{let x=!1;const S=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},T=Yx(t.options,t.fetchOptions),N=async(j,M,D)=>{if(x)return Promise.reject();if(M==null&&j.pages.length)return Promise.resolve(j);const F=(()=>{const se={client:t.client,queryKey:t.queryKey,pageParam:M,direction:D?"backward":"forward",meta:t.options.meta};return S(se),se})(),re=await T(F),{maxPages:Y}=t.options,ne=D?zC:LC;return{pages:ne(j.pages,re,Y),pageParams:ne(j.pageParams,M,Y)}};if(l&&f.length){const j=l==="backward",M=j?ZC:Jx,D={pages:f,pageParams:h},B=M(i,D);m=await N(D,B,j)}else{const j=e??f.length;do{const M=y===0?h[0]??i.initialPageParam:Jx(i,m);if(y>0&&M==null)break;m=await N(m,M),y++}while(y<j)}return m};t.options.persister?t.fetchFn=()=>t.options.persister?.(b,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=b}}}function Jx(e,{pages:t,pageParams:r}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function ZC(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var QC=class extends $x{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||WC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Vx({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",l=!this.#r.canStart();try{if(i)t();else{this.#a({type:"pending",variables:e,isPaused:l}),await this.#n.config.onMutate?.(e,this,r);const h=await this.options.onMutate?.(e,r);h!==this.state.context&&this.#a({type:"pending",context:h,variables:e,isPaused:l})}const f=await this.#r.start();return await this.#n.config.onSuccess?.(f,e,this.state.context,this,r),await this.options.onSuccess?.(f,e,this.state.context,r),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,e,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,e,this.state.context,this,r),await this.options.onError?.(f,e,this.state.context,r),await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,f,e,this.state.context,r),f}finally{this.#a({type:"error",error:f})}}finally{this.#n.runNext(this)}}#a(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ia.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function WC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var XC=class extends ld{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,r){const i=new QC({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#e.add(e);const t=tm(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=tm(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=tm(e);if(typeof t=="string"){const i=this.#t.get(t)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=tm(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ia.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Hx(t,r))}findAll(e={}){return this.getAll().filter(t=>Hx(e,t))}notify(e){ia.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ia.batch(()=>Promise.all(e.map(t=>t.continue().catch(Za))))}};function tm(e){return e.options.scope?.id}var KC=class extends ld{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const i=t.queryKey,l=t.queryHash??I0(i,t);let f=this.get(l);return f||(f=new YC({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(f)),f}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ia.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Ux(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>Ux(e,r)):t}notify(e){ia.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ia.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ia.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ew=class{#e;#t;#n;#r;#a;#s;#o;#i;constructor(e={}){this.#e=e.queryCache||new KC,this.#t=e.mutationCache||new XC,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=U0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=em.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ko(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const i=r.data;return[t,i]})}setQueryData(e,t,r){const i=this.defaultQueryOptions({queryKey:e}),f=this.#e.get(i.queryHash)?.state.data,h=kC(t,f);if(h!==void 0)return this.#e.build(this,i).setData(h,{...r,manual:!0})}setQueriesData(e,t,r){return ia.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ia.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return ia.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},i=ia.batch(()=>this.#e.findAll(e).map(l=>l.cancel(r)));return Promise.all(i).then(Za).catch(Za)}invalidateQueries(e,t={}){return ia.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},i=ia.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let f=l.fetch(void 0,r);return r.throwOnError||(f=f.catch(Za)),l.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(i).then(Za)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(Ko(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Za).catch(Za)}fetchInfiniteQuery(e){return e.behavior=Kx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Za).catch(Za)}ensureInfiniteQueryData(e){return e.behavior=Kx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return em.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ud(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(i=>{cd(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,t){this.#a.set(ud(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],r={};return t.forEach(i=>{cd(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=I0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===j0&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},C=k0();const ol=Pu(C),tw=AC({__proto__:null,default:ol},[C]);var nw=C.createContext(void 0),JC=e=>{const t=C.useContext(nw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},aw=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(nw.Provider,{value:e,children:t})),rw=C.createContext(!1),e3=()=>C.useContext(rw);rw.Provider;function t3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var n3=C.createContext(t3()),a3=()=>C.useContext(n3),r3=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},i3=e=>{C.useEffect(()=>{e.clearReset()},[e])},o3=({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:l})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||PC(r,[e.error,i])),s3=e=>{if(e.suspense){const r=l=>l==="static"?l:Math.max(l??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...l)=>r(i(...l)):r(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},l3=(e,t)=>e.isLoading&&e.isFetching&&!t,u3=(e,t)=>e?.suspense&&t.isPending,iw=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function c3(e,t,r){const i=e3(),l=a3(),f=JC(),h=f.defaultQueryOptions(e);f.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=i?"isRestoring":"optimistic",s3(h),r3(h,l),i3(l);const m=!f.getQueryCache().get(h.queryHash),[y]=C.useState(()=>new t(f,h)),b=y.getOptimisticResult(h),x=!i&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(S=>{const T=x?y.subscribe(ia.batchCalls(S)):Za;return y.updateResult(),T},[y,x]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),C.useEffect(()=>{y.setOptions(h)},[h,y]),u3(h,b))throw iw(h,y,l);if(o3({result:b,errorResetBoundary:l,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw b.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(h,b),h.experimental_prefetchInRender&&!il&&l3(b,i)&&(m?iw(h,y,l):f.getQueryCache().get(h.queryHash)?.promise)?.catch(Za).finally(()=>{y.updateResult()}),h.notifyOnChangeProps?b:y.trackResult(b)}function ow(e,t){return c3(e,GC)}var Y0={exports:{}},fd={},G0={exports:{}},V0={};/**
|
|
17
|
+
*/var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),I=Symbol.iterator;function j(k){return k===null||typeof k!="object"?null:(k=I&&k[I]||k["@@iterator"],typeof k=="function"?k:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,q={};function Y(k,F,W){this.props=k,this.context=F,this.refs=q,this.updater=W||D}Y.prototype.isReactComponent={},Y.prototype.setState=function(k,F){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,F,"setState")},Y.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function re(){}re.prototype=Y.prototype;function G(k,F,W){this.props=k,this.context=F,this.refs=q,this.updater=W||D}var te=G.prototype=new re;te.constructor=G,R(te,Y.prototype),te.isPureReactComponent=!0;var ye=Array.isArray;function ce(){}var X={H:null,A:null,T:null,S:null},ve=Object.prototype.hasOwnProperty;function Ee(k,F,W){var ue=W.ref;return{$$typeof:n,type:k,key:F,ref:ue!==void 0?ue:null,props:W}}function Re(k,F){return Ee(k.type,F,k.props)}function be(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function le(k){var F={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(W){return F[W]})}var se=/\/+/g;function de(k,F){return typeof k=="object"&&k!==null&&k.key!=null?le(""+k.key):F.toString(36)}function Q(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(ce,ce):(k.status="pending",k.then(function(F){k.status==="pending"&&(k.status="fulfilled",k.value=F)},function(F){k.status==="pending"&&(k.status="rejected",k.reason=F)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function U(k,F,W,ue,Te){var _e=typeof k;(_e==="undefined"||_e==="boolean")&&(k=null);var Me=!1;if(k===null)Me=!0;else switch(_e){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(k.$$typeof){case n:case r:Me=!0;break;case E:return Me=k._init,U(Me(k._payload),F,W,ue,Te)}}if(Me)return Te=Te(k),Me=ue===""?"."+de(k,0):ue,ye(Te)?(W="",Me!=null&&(W=Me.replace(se,"$&/")+"/"),U(Te,F,W,"",function(Ke){return Ke})):Te!=null&&(be(Te)&&(Te=Re(Te,W+(Te.key==null||k&&k.key===Te.key?"":(""+Te.key).replace(se,"$&/")+"/")+Me)),F.push(Te)),1;Me=0;var We=ue===""?".":ue+":";if(ye(k))for(var Ze=0;Ze<k.length;Ze++)ue=k[Ze],_e=We+de(ue,Ze),Me+=U(ue,F,W,_e,Te);else if(Ze=j(k),typeof Ze=="function")for(k=Ze.call(k),Ze=0;!(ue=k.next()).done;)ue=ue.value,_e=We+de(ue,Ze++),Me+=U(ue,F,W,_e,Te);else if(_e==="object"){if(typeof k.then=="function")return U(Q(k),F,W,ue,Te);throw F=String(k),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Me}function z(k,F,W){if(k==null)return k;var ue=[],Te=0;return U(k,ue,"","",function(_e){return F.call(W,_e,Te++)}),ue}function xe(k){if(k._status===-1){var F=k._result;F=F(),F.then(function(W){(k._status===0||k._status===-1)&&(k._status=1,k._result=W)},function(W){(k._status===0||k._status===-1)&&(k._status=2,k._result=W)}),k._status===-1&&(k._status=0,k._result=F)}if(k._status===1)return k._result.default;throw k._result}var Oe=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(F))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",k);return}console.error(k)},Ve={map:z,forEach:function(k,F,W){z(k,function(){F.apply(this,arguments)},W)},count:function(k){var F=0;return z(k,function(){F++}),F},toArray:function(k){return z(k,function(F){return F})||[]},only:function(k){if(!be(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return ot.Activity=A,ot.Children=Ve,ot.Component=Y,ot.Fragment=i,ot.Profiler=f,ot.PureComponent=G,ot.StrictMode=l,ot.Suspense=b,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ot.__COMPILER_RUNTIME={__proto__:null,c:function(k){return X.H.useMemoCache(k)}},ot.cache=function(k){return function(){return k.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(k,F,W){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var ue=R({},k.props),Te=k.key;if(F!=null)for(_e in F.key!==void 0&&(Te=""+F.key),F)!ve.call(F,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&F.ref===void 0||(ue[_e]=F[_e]);var _e=arguments.length-2;if(_e===1)ue.children=W;else if(1<_e){for(var Me=Array(_e),We=0;We<_e;We++)Me[We]=arguments[We+2];ue.children=Me}return Ee(k.type,Te,ue)},ot.createContext=function(k){return k={$$typeof:g,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:h,_context:k},k},ot.createElement=function(k,F,W){var ue,Te={},_e=null;if(F!=null)for(ue in F.key!==void 0&&(_e=""+F.key),F)ve.call(F,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(Te[ue]=F[ue]);var Me=arguments.length-2;if(Me===1)Te.children=W;else if(1<Me){for(var We=Array(Me),Ze=0;Ze<Me;Ze++)We[Ze]=arguments[Ze+2];Te.children=We}if(k&&k.defaultProps)for(ue in Me=k.defaultProps,Me)Te[ue]===void 0&&(Te[ue]=Me[ue]);return Ee(k,_e,Te)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(k){return{$$typeof:y,render:k}},ot.isValidElement=be,ot.lazy=function(k){return{$$typeof:E,_payload:{_status:-1,_result:k},_init:xe}},ot.memo=function(k,F){return{$$typeof:w,type:k,compare:F===void 0?null:F}},ot.startTransition=function(k){var F=X.T,W={};X.T=W;try{var ue=k(),Te=X.S;Te!==null&&Te(W,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(ce,Oe)}catch(_e){Oe(_e)}finally{F!==null&&W.types!==null&&(F.types=W.types),X.T=F}},ot.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ot.use=function(k){return X.H.use(k)},ot.useActionState=function(k,F,W){return X.H.useActionState(k,F,W)},ot.useCallback=function(k,F){return X.H.useCallback(k,F)},ot.useContext=function(k){return X.H.useContext(k)},ot.useDebugValue=function(){},ot.useDeferredValue=function(k,F){return X.H.useDeferredValue(k,F)},ot.useEffect=function(k,F){return X.H.useEffect(k,F)},ot.useEffectEvent=function(k){return X.H.useEffectEvent(k)},ot.useId=function(){return X.H.useId()},ot.useImperativeHandle=function(k,F,W){return X.H.useImperativeHandle(k,F,W)},ot.useInsertionEffect=function(k,F){return X.H.useInsertionEffect(k,F)},ot.useLayoutEffect=function(k,F){return X.H.useLayoutEffect(k,F)},ot.useMemo=function(k,F){return X.H.useMemo(k,F)},ot.useOptimistic=function(k,F){return X.H.useOptimistic(k,F)},ot.useReducer=function(k,F,W){return X.H.useReducer(k,F,W)},ot.useRef=function(k){return X.H.useRef(k)},ot.useState=function(k){return X.H.useState(k)},ot.useSyncExternalStore=function(k,F,W){return X.H.useSyncExternalStore(k,F,W)},ot.useTransition=function(){return X.H.useTransition()},ot.version="19.2.0",ot}var Jx;function K0(){return Jx||(Jx=1,X0.exports=VA()),X0.exports}var ew;function $A(){return ew||(ew=1,W0.exports=GA()),W0.exports}var M=$A(),Od=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ZA={setTimeout:(t,n)=>setTimeout(t,n),clearTimeout:t=>clearTimeout(t),setInterval:(t,n)=>setInterval(t,n),clearInterval:t=>clearInterval(t)},QA=class{#e=ZA;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,n){return this.#e.setTimeout(t,n)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,n){return this.#e.setInterval(t,n)}clearInterval(t){this.#e.clearInterval(t)}},Rl=new QA;function WA(t){setTimeout(t,0)}var Ml=typeof window>"u"||"Deno"in globalThis;function Fa(){}function XA(t,n){return typeof t=="function"?t(n):t}function J0(t){return typeof t=="number"&&t>=0&&t!==1/0}function tw(t,n){return Math.max(t+(n||0)-Date.now(),0)}function ms(t,n){return typeof t=="function"?t(n):t}function Ir(t,n){return typeof t=="function"?t(n):t}function nw(t,n){const{type:r="all",exact:i,fetchStatus:l,predicate:f,queryKey:h,stale:g}=t;if(h){if(i){if(n.queryHash!==ey(h,n.options))return!1}else if(!Md(n.queryKey,h))return!1}if(r!=="all"){const y=n.isActive();if(r==="active"&&!y||r==="inactive"&&y)return!1}return!(typeof g=="boolean"&&n.isStale()!==g||l&&l!==n.state.fetchStatus||f&&!f(n))}function aw(t,n){const{exact:r,status:i,predicate:l,mutationKey:f}=t;if(f){if(!n.options.mutationKey)return!1;if(r){if(Rd(n.options.mutationKey)!==Rd(f))return!1}else if(!Md(n.options.mutationKey,f))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function ey(t,n){return(n?.queryKeyHashFn||Rd)(t)}function Rd(t){return JSON.stringify(t,(n,r)=>ny(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function Md(t,n){return t===n?!0:typeof t!=typeof n?!1:t&&n&&typeof t=="object"&&typeof n=="object"?Object.keys(n).every(r=>Md(t[r],n[r])):!1}var KA=Object.prototype.hasOwnProperty;function rw(t,n){if(t===n)return t;const r=iw(t)&&iw(n);if(!r&&!(ny(t)&&ny(n)))return n;const l=(r?t:Object.keys(t)).length,f=r?n:Object.keys(n),h=f.length,g=r?new Array(h):{};let y=0;for(let b=0;b<h;b++){const w=r?b:f[b],E=t[w],A=n[w];if(E===A){g[w]=E,(r?b<l:KA.call(t,w))&&y++;continue}if(E===null||A===null||typeof E!="object"||typeof A!="object"){g[w]=A;continue}const I=rw(E,A);g[w]=I,I===E&&y++}return l===h&&y===l?t:g}function ty(t,n){if(!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}function iw(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function ny(t){if(!ow(t))return!1;const n=t.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!ow(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function ow(t){return Object.prototype.toString.call(t)==="[object Object]"}function JA(t){return new Promise(n=>{Rl.setTimeout(n,t)})}function ay(t,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,n):r.structuralSharing!==!1?rw(t,n):n}function e5(t,n,r=0){const i=[...t,n];return r&&i.length>r?i.slice(1):i}function t5(t,n,r=0){const i=[n,...t];return r&&i.length>r?i.slice(0,-1):i}var ry=Symbol();function sw(t,n){return!t.queryFn&&n?.initialPromise?()=>n.initialPromise:!t.queryFn||t.queryFn===ry?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function n5(t,n){return typeof t=="function"?t(...n):!!t}var a5=class extends Od{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!Ml&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},iy=new a5;function oy(){let t,n;const r=new Promise((l,f)=>{t=l,n=f});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),t(l)},r.reject=l=>{i({status:"rejected",reason:l}),n(l)},r}var r5=WA;function i5(){let t=[],n=0,r=g=>{g()},i=g=>{g()},l=r5;const f=g=>{n?t.push(g):l(()=>{r(g)})},h=()=>{const g=t;t=[],g.length&&l(()=>{i(()=>{g.forEach(y=>{r(y)})})})};return{batch:g=>{let y;n++;try{y=g()}finally{n--,n||h()}return y},batchCalls:g=>(...y)=>{f(()=>{g(...y)})},schedule:f,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{i=g},setScheduler:g=>{l=g}}}var na=i5(),o5=class extends Od{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!Ml&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(r=>{r(t)}))}isOnline(){return this.#e}},Em=new o5;function s5(t){return Math.min(1e3*2**t,3e4)}function lw(t){return(t??"online")==="online"?Em.isOnline():!0}var sy=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function uw(t){let n=!1,r=0,i;const l=oy(),f=()=>l.status!=="pending",h=D=>{if(!f()){const R=new sy(D);A(R),t.onCancel?.(R)}},g=()=>{n=!0},y=()=>{n=!1},b=()=>iy.isFocused()&&(t.networkMode==="always"||Em.isOnline())&&t.canRun(),w=()=>lw(t.networkMode)&&t.canRun(),E=D=>{f()||(i?.(),l.resolve(D))},A=D=>{f()||(i?.(),l.reject(D))},I=()=>new Promise(D=>{i=R=>{(f()||b())&&D(R)},t.onPause?.()}).then(()=>{i=void 0,f()||t.onContinue?.()}),j=()=>{if(f())return;let D;const R=r===0?t.initialPromise:void 0;try{D=R??t.fn()}catch(q){D=Promise.reject(q)}Promise.resolve(D).then(E).catch(q=>{if(f())return;const Y=t.retry??(Ml?0:3),re=t.retryDelay??s5,G=typeof re=="function"?re(r,q):re,te=Y===!0||typeof Y=="number"&&r<Y||typeof Y=="function"&&Y(r,q);if(n||!te){A(q);return}r++,t.onFail?.(r,q),JA(G).then(()=>b()?void 0:I()).then(()=>{n?A(q):j()})})};return{promise:l,status:()=>l.status,cancel:h,continue:()=>(i?.(),l),cancelRetry:g,continueRetry:y,canStart:w,start:()=>(w()?j():I().then(j),l)}}var cw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),J0(this.gcTime)&&(this.#e=Rl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ml?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Rl.clearTimeout(this.#e),this.#e=void 0)}},l5={env:{NODE_ENV:"production"}},u5=class extends cw{#e;#t;#n;#r;#a;#s;#o;constructor(t){super(),this.#o=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=dw(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){if(this.options={...this.#s,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=dw(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),this.#e=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,n){const r=ay(this.state.data,t,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(t,n){this.#i({type:"setState",state:t,setStateOptions:n})}cancel(t){const n=this.#a?.promise;return this.#a?.cancel(t),n?n.then(Fa).catch(Fa):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>Ir(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ry||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ms(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!tw(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(t,n){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(y=>y.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},l=()=>{const g=sw(this.options,n),b=(()=>{const w={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(w),w})();return this.#o=!1,this.options.persister?this.options.persister(g,b,this):g(b)},h=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return i(g),g})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=uw({initialPromise:n?.initialPromise,fn:h.fetchFn,onCancel:g=>{g instanceof sy&&g.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(g,y)=>{this.#i({type:"failed",failureCount:g,error:y})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const g=await this.#a.start();if(g===void 0)throw l5.env.NODE_ENV,new Error(`${this.queryHash} data is undefined`);return this.setData(g),this.#n.config.onSuccess?.(g,this),this.#n.config.onSettled?.(g,this.state.error,this),g}catch(g){if(g instanceof sy){if(g.silent)return this.#a.promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw this.#i({type:"error",error:g}),this.#n.config.onError?.(g,this),this.#n.config.onSettled?.(this.state.data,g,this),g}finally{this.scheduleGc()}}#i(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...fw(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?i:void 0,i;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),na.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function fw(t,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lw(n.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function dw(t){const n=typeof t.initialData=="function"?t.initialData():t.initialData,r=n!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var c5=class extends Od{constructor(t,n){super(),this.options=n,this.#e=t,this.#i=null,this.#o=oy(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#r=void 0;#a;#s;#o;#i;#m;#d;#h;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),hw(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ly(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ly(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#t.removeObserver(this)}setOptions(t){const n=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ir(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#t.setOptions(this.options),n._defaulted&&!ty(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&pw(this.#t,r,this.options,n)&&this.#f(),this.updateResult(),i&&(this.#t!==r||Ir(this.options.enabled,this.#t)!==Ir(n.enabled,this.#t)||ms(this.options.staleTime,this.#t)!==ms(n.staleTime,this.#t))&&this.#g();const l=this.#y();i&&(this.#t!==r||Ir(this.options.enabled,this.#t)!==Ir(n.enabled,this.#t)||l!==this.#l)&&this.#v(l)}getOptimisticResult(t){const n=this.#e.getQueryCache().build(this.#e,t),r=this.createResult(n,t);return d5(this,r)&&(this.#r=r,this.#s=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=this.#e.defaultQueryOptions(t),r=this.#e.getQueryCache().build(this.#e,n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(t){this.#_();let n=this.#t.fetch(this.options,t);return t?.throwOnError||(n=n.catch(Fa)),n}#g(){this.#x();const t=ms(this.options.staleTime,this.#t);if(Ml||this.#r.isStale||!J0(t))return;const r=tw(this.#r.dataUpdatedAt,t)+1;this.#u=Rl.setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(t){this.#w(),this.#l=t,!(Ml||Ir(this.options.enabled,this.#t)===!1||!J0(this.#l)||this.#l===0)&&(this.#c=Rl.setInterval(()=>{(this.options.refetchIntervalInBackground||iy.isFocused())&&this.#f()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#x(){this.#u&&(Rl.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(Rl.clearInterval(this.#c),this.#c=void 0)}createResult(t,n){const r=this.#t,i=this.options,l=this.#r,f=this.#a,h=this.#s,y=t!==r?t.state:this.#n,{state:b}=t;let w={...b},E=!1,A;if(n._optimisticResults){const X=this.hasListeners(),ve=!X&&hw(t,n),Ee=X&&pw(t,r,n,i);(ve||Ee)&&(w={...w,...fw(b.data,t.options)}),n._optimisticResults==="isRestoring"&&(w.fetchStatus="idle")}let{error:I,errorUpdatedAt:j,status:D}=w;A=w.data;let R=!1;if(n.placeholderData!==void 0&&A===void 0&&D==="pending"){let X;l?.isPlaceholderData&&n.placeholderData===h?.placeholderData?(X=l.data,R=!0):X=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,X!==void 0&&(D="success",A=ay(l?.data,X,n),E=!0)}if(n.select&&A!==void 0&&!R)if(l&&A===f?.data&&n.select===this.#m)A=this.#d;else try{this.#m=n.select,A=n.select(A),A=ay(l?.data,A,n),this.#d=A,this.#i=null}catch(X){this.#i=X}this.#i&&(I=this.#i,A=this.#d,j=Date.now(),D="error");const q=w.fetchStatus==="fetching",Y=D==="pending",re=D==="error",G=Y&&q,te=A!==void 0,ce={status:D,fetchStatus:w.fetchStatus,isPending:Y,isSuccess:D==="success",isError:re,isInitialLoading:G,isLoading:G,data:A,dataUpdatedAt:w.dataUpdatedAt,error:I,errorUpdatedAt:j,failureCount:w.fetchFailureCount,failureReason:w.fetchFailureReason,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>y.dataUpdateCount||w.errorUpdateCount>y.errorUpdateCount,isFetching:q,isRefetching:q&&!Y,isLoadingError:re&&!te,isPaused:w.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:re&&te,isStale:uy(t,n),refetch:this.refetch,promise:this.#o,isEnabled:Ir(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const X=Re=>{ce.status==="error"?Re.reject(ce.error):ce.data!==void 0&&Re.resolve(ce.data)},ve=()=>{const Re=this.#o=ce.promise=oy();X(Re)},Ee=this.#o;switch(Ee.status){case"pending":t.queryHash===r.queryHash&&X(Ee);break;case"fulfilled":(ce.status==="error"||ce.data!==Ee.value)&&ve();break;case"rejected":(ce.status!=="error"||ce.error!==Ee.reason)&&ve();break}}return ce}updateResult(){const t=this.#r,n=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),ty(n,t))return;this.#r=n;const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#p.size)return!0;const f=new Set(l??this.#p);return this.options.throwOnError&&f.add("error"),Object.keys(this.#r).some(h=>{const g=h;return this.#r[g]!==t[g]&&f.has(g)})};this.#S({listeners:r()})}#_(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const n=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(t){na.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function f5(t,n){return Ir(n.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&n.retryOnMount===!1)}function hw(t,n){return f5(t,n)||t.state.data!==void 0&&ly(t,n,n.refetchOnMount)}function ly(t,n,r){if(Ir(n.enabled,t)!==!1&&ms(n.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&uy(t,n)}return!1}function pw(t,n,r,i){return(t!==n||Ir(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&uy(t,r)}function uy(t,n){return Ir(n.enabled,t)!==!1&&t.isStaleByTime(ms(n.staleTime,t))}function d5(t,n){return!ty(t.getCurrentResult(),n)}function mw(t){return{onFetch:(n,r)=>{const i=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,f=n.state.data?.pages||[],h=n.state.data?.pageParams||[];let g={pages:[],pageParams:[]},y=0;const b=async()=>{let w=!1;const E=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(n.signal.aborted?w=!0:n.signal.addEventListener("abort",()=>{w=!0}),n.signal)})},A=sw(n.options,n.fetchOptions),I=async(j,D,R)=>{if(w)return Promise.reject();if(D==null&&j.pages.length)return Promise.resolve(j);const Y=(()=>{const ye={client:n.client,queryKey:n.queryKey,pageParam:D,direction:R?"backward":"forward",meta:n.options.meta};return E(ye),ye})(),re=await A(Y),{maxPages:G}=n.options,te=R?t5:e5;return{pages:te(j.pages,re,G),pageParams:te(j.pageParams,D,G)}};if(l&&f.length){const j=l==="backward",D=j?h5:gw,R={pages:f,pageParams:h},q=D(i,R);g=await I(R,q,j)}else{const j=t??f.length;do{const D=y===0?h[0]??i.initialPageParam:gw(i,g);if(y>0&&D==null)break;g=await I(g,D),y++}while(y<j)}return g};n.options.persister?n.fetchFn=()=>n.options.persister?.(b,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=b}}}function gw(t,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?t.getNextPageParam(n[i],n,r[i],r):void 0}function h5(t,{pages:n,pageParams:r}){return n.length>0?t.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var p5=class extends cw{#e;#t;#n;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||m5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(n=>n!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){const n=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=uw({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",l=!this.#r.canStart();try{if(i)n();else{this.#a({type:"pending",variables:t,isPaused:l}),await this.#n.config.onMutate?.(t,this,r);const h=await this.options.onMutate?.(t,r);h!==this.state.context&&this.#a({type:"pending",context:h,variables:t,isPaused:l})}const f=await this.#r.start();return await this.#n.config.onSuccess?.(f,t,this.state.context,this,r),await this.options.onSuccess?.(f,t,this.state.context,r),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,t,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,t,this.state.context,this,r),await this.options.onError?.(f,t,this.state.context,r),await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,f,t,this.state.context,r),f}finally{this.#a({type:"error",error:f})}}finally{this.#n.runNext(this)}}#a(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),na.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function m5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var g5=class extends Od{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,n,r){const i=new p5({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){this.#e.add(t);const n=Am(t);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(t):this.#t.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const n=Am(t);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&this.#t.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Am(t);if(typeof n=="string"){const i=this.#t.get(n)?.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){const n=Am(t);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){na.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const n={exact:!0,...t};return this.getAll().find(r=>aw(n,r))}findAll(t={}){return this.getAll().filter(n=>aw(t,n))}notify(t){na.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return na.batch(()=>Promise.all(t.map(n=>n.continue().catch(Fa))))}};function Am(t){return t.options.scope?.id}var y5=class extends Od{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,n,r){const i=n.queryKey,l=n.queryHash??ey(i,n);let f=this.get(l);return f||(f=new u5({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(f)),f}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=this.#e.get(t.queryHash);n&&(t.destroy(),n===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){na.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nw(t,r)):n}notify(t){na.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){na.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){na.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},yw=class{#e;#t;#n;#r;#a;#s;#o;#i;constructor(t={}){this.#e=t.queryCache||new y5,this.#t=t.mutationCache||new g5,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=iy.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Em.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=this.#e.build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(ms(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.defaultQueryOptions({queryKey:t}),f=this.#e.get(i.queryHash)?.state.data,h=XA(n,f);if(h!==void 0)return this.#e.build(this,i).setData(h,{...r,manual:!0})}setQueriesData(t,n,r){return na.batch(()=>this.#e.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state}removeQueries(t){const n=this.#e;na.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=this.#e;return na.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},i=na.batch(()=>this.#e.findAll(t).map(l=>l.cancel(r)));return Promise.all(i).then(Fa).catch(Fa)}invalidateQueries(t,n={}){return na.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=na.batch(()=>this.#e.findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let f=l.fetch(void 0,r);return r.throwOnError||(f=f.catch(Fa)),l.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(i).then(Fa)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(ms(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Fa).catch(Fa)}fetchInfiniteQuery(t){return t.behavior=mw(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Fa).catch(Fa)}ensureInfiniteQueryData(t){return t.behavior=mw(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Em.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,n){this.#r.set(Rd(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#r.values()],r={};return n.forEach(i=>{Md(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,n){this.#a.set(Rd(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#a.values()],r={};return n.forEach(i=>{Md(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=ey(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===ry&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},T=K0();const Dl=sc(T),vw=YA({__proto__:null,default:Dl},[T]);var bw=T.createContext(void 0),v5=t=>{const n=T.useContext(bw);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},xw=({client:t,children:n})=>(T.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),M.jsx(bw.Provider,{value:t,children:n})),ww=T.createContext(!1),b5=()=>T.useContext(ww);ww.Provider;function x5(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var w5=T.createContext(x5()),_5=()=>T.useContext(w5),S5=(t,n)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(n.isReset()||(t.retryOnMount=!1))},C5=t=>{T.useEffect(()=>{t.clearReset()},[t])},E5=({result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:l})=>t.isError&&!n.isReset()&&!t.isFetching&&i&&(l&&t.data===void 0||n5(r,[t.error,i])),A5=t=>{if(t.suspense){const r=l=>l==="static"?l:Math.max(l??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...l)=>r(i(...l)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},T5=(t,n)=>t.isLoading&&t.isFetching&&!n,O5=(t,n)=>t?.suspense&&n.isPending,_w=(t,n,r)=>n.fetchOptimistic(t).catch(()=>{r.clearReset()});function R5(t,n,r){const i=b5(),l=_5(),f=v5(),h=f.defaultQueryOptions(t);f.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=i?"isRestoring":"optimistic",A5(h),S5(h,l),C5(l);const g=!f.getQueryCache().get(h.queryHash),[y]=T.useState(()=>new n(f,h)),b=y.getOptimisticResult(h),w=!i&&t.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(E=>{const A=w?y.subscribe(na.batchCalls(E)):Fa;return y.updateResult(),A},[y,w]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),T.useEffect(()=>{y.setOptions(h)},[h,y]),O5(h,b))throw _w(h,y,l);if(E5({result:b,errorResetBoundary:l,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw b.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(h,b),h.experimental_prefetchInRender&&!Ml&&T5(b,i)&&(g?_w(h,y,l):f.getQueryCache().get(h.queryHash)?.promise)?.catch(Fa).finally(()=>{y.updateResult()}),h.notifyOnChangeProps?b:y.trackResult(b)}function Sw(t,n){return R5(t,c5)}var cy={exports:{}},Dd={},fy={exports:{}},dy={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var AirportOneEmbeddableWidgets=(function(){"use strict";function AC(e,t){for(va
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var Cw;function M5(){return Cw||(Cw=1,(function(t){function n(Q,U){var z=Q.length;Q.push(U);e:for(;0<z;){var xe=z-1>>>1,Oe=Q[xe];if(0<l(Oe,U))Q[xe]=U,Q[z]=Oe,z=xe;else break e}}function r(Q){return Q.length===0?null:Q[0]}function i(Q){if(Q.length===0)return null;var U=Q[0],z=Q.pop();if(z!==U){Q[0]=z;e:for(var xe=0,Oe=Q.length,Ve=Oe>>>1;xe<Ve;){var k=2*(xe+1)-1,F=Q[k],W=k+1,ue=Q[W];if(0>l(F,z))W<Oe&&0>l(ue,F)?(Q[xe]=ue,Q[W]=z,xe=W):(Q[xe]=F,Q[k]=z,xe=k);else if(W<Oe&&0>l(ue,z))Q[xe]=ue,Q[W]=z,xe=W;else break e}}return U}function l(Q,U){var z=Q.sortIndex-U.sortIndex;return z!==0?z:Q.id-U.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();t.unstable_now=function(){return h.now()-g}}var y=[],b=[],w=1,E=null,A=3,I=!1,j=!1,D=!1,R=!1,q=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,re=typeof setImmediate<"u"?setImmediate:null;function G(Q){for(var U=r(b);U!==null;){if(U.callback===null)i(b);else if(U.startTime<=Q)i(b),U.sortIndex=U.expirationTime,n(y,U);else break;U=r(b)}}function te(Q){if(D=!1,G(Q),!j)if(r(y)!==null)j=!0,ye||(ye=!0,be());else{var U=r(b);U!==null&&de(te,U.startTime-Q)}}var ye=!1,ce=-1,X=5,ve=-1;function Ee(){return R?!0:!(t.unstable_now()-ve<X)}function Re(){if(R=!1,ye){var Q=t.unstable_now();ve=Q;var U=!0;try{e:{j=!1,D&&(D=!1,Y(ce),ce=-1),I=!0;var z=A;try{t:{for(G(Q),E=r(y);E!==null&&!(E.expirationTime>Q&&Ee());){var xe=E.callback;if(typeof xe=="function"){E.callback=null,A=E.priorityLevel;var Oe=xe(E.expirationTime<=Q);if(Q=t.unstable_now(),typeof Oe=="function"){E.callback=Oe,G(Q),U=!0;break t}E===r(y)&&i(y),G(Q)}else i(y);E=r(y)}if(E!==null)U=!0;else{var Ve=r(b);Ve!==null&&de(te,Ve.startTime-Q),U=!1}}break e}finally{E=null,A=z,I=!1}U=void 0}}finally{U?be():ye=!1}}}var be;if(typeof re=="function")be=function(){re(Re)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,se=le.port2;le.port1.onmessage=Re,be=function(){se.postMessage(null)}}else be=function(){q(Re,0)};function de(Q,U){ce=q(function(){Q(t.unstable_now())},U)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_next=function(Q){switch(A){case 1:case 2:case 3:var U=3;break;default:U=A}var z=A;A=U;try{return Q()}finally{A=z}},t.unstable_requestPaint=function(){R=!0},t.unstable_runWithPriority=function(Q,U){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var z=A;A=Q;try{return U()}finally{A=z}},t.unstable_scheduleCallback=function(Q,U,z){var xe=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?xe+z:xe):z=xe,Q){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=z+Oe,Q={id:w++,callback:U,priorityLevel:Q,startTime:z,expirationTime:Oe,sortIndex:-1},z>xe?(Q.sortIndex=z,n(b,Q),r(y)===null&&Q===r(b)&&(D?(Y(ce),ce=-1):D=!0,de(te,z-xe))):(Q.sortIndex=Oe,n(y,Q),j||I||(j=!0,ye||(ye=!0,be()))),Q},t.unstable_shouldYield=Ee,t.unstable_wrapCallback=function(Q){var U=A;return function(){var z=A;A=U;try{return Q.apply(this,arguments)}finally{A=z}}}})(dy)),dy}var Ew;function D5(){return Ew||(Ew=1,fy.exports=M5()),fy.exports}var hy={exports:{}},ca={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@ var AirportOneEmbeddableWidgets=(function(){"use strict";function AC(e,t){for(va
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var Aw;function k5(){if(Aw)return ca;Aw=1;var t=K0();function n(y){var b="https://react.dev/errors/"+y;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)b+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+y+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={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},l=Symbol.for("react.portal");function f(y,b,w){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:E==null?null:""+E,children:y,containerInfo:b,implementation:w}}var h=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,b){if(y==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return ca.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,ca.createPortal=function(y,b){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(n(299));return f(y,b,null,w)},ca.flushSync=function(y){var b=h.T,w=i.p;try{if(h.T=null,i.p=2,y)return y()}finally{h.T=b,i.p=w,i.d.f()}},ca.preconnect=function(y,b){typeof y=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,i.d.C(y,b))},ca.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},ca.preinit=function(y,b){if(typeof y=="string"&&b&&typeof b.as=="string"){var w=b.as,E=g(w,b.crossOrigin),A=typeof b.integrity=="string"?b.integrity:void 0,I=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;w==="style"?i.d.S(y,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:E,integrity:A,fetchPriority:I}):w==="script"&&i.d.X(y,{crossOrigin:E,integrity:A,fetchPriority:I,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},ca.preinitModule=function(y,b){if(typeof y=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var w=g(b.as,b.crossOrigin);i.d.M(y,{crossOrigin:w,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&i.d.M(y)},ca.preload=function(y,b){if(typeof y=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var w=b.as,E=g(w,b.crossOrigin);i.d.L(y,w,{crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},ca.preloadModule=function(y,b){if(typeof y=="string")if(b){var w=g(b.as,b.crossOrigin);i.d.m(y,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:w,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else i.d.m(y)},ca.requestFormReset=function(y){i.d.r(y)},ca.unstable_batchedUpdates=function(y,b){return y(b)},ca.useFormState=function(y,b,w){return h.H.useFormState(y,b,w)},ca.useFormStatus=function(){return h.H.useHostTransitionStatus()},ca.version="19.2.0",ca}var Tw;function Ow(){if(Tw)return hy.exports;Tw=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),hy.exports=k5(),hy.exports}var Rw;function N5(){if(Rw)return Dd;Rw=1;var t={env:{NODE_ENV:"production"}};/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,23 +38,23 @@ var AirportOneEmbeddableWidgets=(function(){"use strict";function AC(e,t){for(va
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var t=d3(),r=k0(),i=fw();function l(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function h(n){var a=n,o=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(o=a.return),n=a.return;while(n)}return a.tag===3?o:null}function m(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function y(n){if(h(n)!==n)throw Error(l(188))}function b(n){var a=n.alternate;if(!a){if(a=h(n),a===null)throw Error(l(188));return a!==n?null:n}for(var o=n,c=a;;){var d=o.return;if(d===null)break;var g=d.alternate;if(g===null){if(c=d.return,c!==null){o=c;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===o)return y(d),n;if(g===c)return y(d),a;g=g.sibling}throw Error(l(188))}if(o.return!==c.return)o=d,c=g;else{for(var w=!1,A=d.child;A;){if(A===o){w=!0,o=d,c=g;break}if(A===c){w=!0,c=d,o=g;break}A=A.sibling}if(!w){for(A=g.child;A;){if(A===o){w=!0,o=g,c=d;break}if(A===c){w=!0,c=g,o=d;break}A=A.sibling}if(!w)throw Error(l(189))}}if(o.alternate!==c)throw Error(l(190))}if(o.tag!==3)throw Error(l(188));return o.stateNode.current===o?n:a}function x(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=x(n),a!==null)return a;n=n.sibling}return null}var S=Object.assign,T=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),re=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Ce=Symbol.for("react.activity"),De=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function le(n){return n===null||typeof n!="object"?null:(n=_e&&n[_e]||n["@@iterator"],typeof n=="function"?n:null)}var ue=Symbol.for("react.client.reference");function he(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ue?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case M:return"Fragment";case B:return"Profiler";case D:return"StrictMode";case se:return"Suspense";case fe:return"SuspenseList";case Ce:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case j:return"Portal";case Y:return(n.displayName||"Context")+".Provider";case re:return(n._context.displayName||"Context")+".Consumer";case ne:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case ie:return a=n.displayName||null,a!==null?a:he(n.type)||"Memo";case we:a=n._payload,n=n._init;try{return he(n(a))}catch{}}return null}var Q=Array.isArray,U=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},Oe=[],P=-1;function $(n){return{current:n}}function ee(n){0>P||(n.current=Oe[P],Oe[P]=null,P--)}function K(n,a){P++,Oe[P]=n.current,n.current=a}var me=$(null),Re=$(null),be=$(null),Be=$(null);function qe(n,a){switch(K(be,a),K(Re,n),K(me,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?cn(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=cn(a),n=Up(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ee(me),K(me,n)}function ft(){ee(me),ee(Re),ee(be)}function at(n){n.memoizedState!==null&&K(Be,n);var a=me.current,o=Up(a,n.type);a!==o&&(K(Re,n),K(me,o))}function Dt(n){Re.current===n&&(ee(me),ee(Re)),Be.current===n&&(ee(Be),ku._currentValue=ve)}var bn=Object.prototype.hasOwnProperty,Yt=t.unstable_scheduleCallback,sa=t.unstable_cancelCallback,Fn=t.unstable_shouldYield,On=t.unstable_requestPaint,dn=t.unstable_now,br=t.unstable_getCurrentPriorityLevel,Ve=t.unstable_ImmediatePriority,Ue=t.unstable_UserBlockingPriority,Yn=t.unstable_NormalPriority,la=t.unstable_LowPriority,Xa=t.unstable_IdlePriority,ta=t.log,xr=t.unstable_setDisableYieldValue,Da=null,Qt=null;function ba(n){if(typeof ta=="function"&&xr(n),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(Da,n)}catch{}}var Gn=Math.clz32?Math.clz32:wl,bl=Math.log,xl=Math.LN2;function wl(n){return n>>>=0,n===0?32:31-(bl(n)/xl|0)|0}var zi=256,Pi=4194304;function wr(n){var a=n&42;if(a!==0)return a;switch(n&-n){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 n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ji(n,a,o){var c=n.pendingLanes;if(c===0)return 0;var d=0,g=n.suspendedLanes,w=n.pingedLanes;n=n.warmLanes;var A=c&134217727;return A!==0?(c=A&~g,c!==0?d=wr(c):(w&=A,w!==0?d=wr(w):o||(o=A&~n,o!==0&&(d=wr(o))))):(A=c&~g,A!==0?d=wr(A):w!==0?d=wr(w):o||(o=c&~n,o!==0&&(d=wr(o)))),d===0?0:a!==0&&a!==d&&(a&g)===0&&(g=d&-d,o=a&-a,g>=o||g===32&&(o&4194048)!==0)?a:d}function Ui(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function xc(n,a){switch(n){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 wc(){var n=zi;return zi<<=1,(zi&4194048)===0&&(zi=256),n}function xe(){var n=Pi;return Pi<<=1,(Pi&62914560)===0&&(Pi=4194304),n}function Le(n){for(var a=[],o=0;31>o;o++)a.push(n);return a}function bt(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Wt(n,a,o,c,d,g){var w=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var A=n.entanglements,L=n.expirationTimes,J=n.hiddenUpdates;for(o=w&~o;0<o;){var ce=31-Gn(o),ge=1<<ce;A[ce]=0,L[ce]=-1;var W=J[ce];if(W!==null)for(J[ce]=null,ce=0;ce<W.length;ce++){var te=W[ce];te!==null&&(te.lane&=-536870913)}o&=~ge}c!==0&&Rn(n,c,0),g!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=g&~(w&~a))}function Rn(n,a,o){n.pendingLanes|=a,n.suspendedLanes&=~a;var c=31-Gn(a);n.entangledLanes|=a,n.entanglements[c]=n.entanglements[c]|1073741824|o&4194090}function Hi(n,a){var o=n.entangledLanes|=a;for(n=n.entanglements;o;){var c=31-Gn(o),d=1<<c;d&a|n[c]&a&&(n[c]|=a),o&=~d}}function Ro(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function _l(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Sl(){var n=z.p;return n!==0?n:(n=window.event,n===void 0?32:Xp(n.type))}function _c(n,a){var o=z.p;try{return z.p=n,a()}finally{z.p=o}}var Ka=Math.random().toString(36).slice(2),Ln="__reactFiber$"+Ka,Vn="__reactProps$"+Ka,Kr="__reactContainer$"+Ka,ys="__reactEvents$"+Ka,Db="__reactListeners$"+Ka,Mb="__reactHandles$"+Ka,dg="__reactResources$"+Ka,El="__reactMarker$"+Ka;function Xd(n){delete n[Ln],delete n[Vn],delete n[ys],delete n[Db],delete n[Mb]}function vs(n){var a=n[Ln];if(a)return a;for(var o=n.parentNode;o;){if(a=o[Kr]||o[Ln]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(n=c0(n);n!==null;){if(o=n[Ln])return o;n=c0(n)}return a}n=o,o=n.parentNode}return null}function Do(n){if(n=n[Ln]||n[Kr]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function Al(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(l(33))}function bs(n){var a=n[dg];return a||(a=n[dg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function zn(n){n[El]=!0}var hg=new Set,pg={};function Mo(n,a){Jr(n,a),Jr(n+"Capture",a)}function Jr(n,a){for(pg[n]=a,n=0;n<a.length;n++)hg.add(a[n])}var kb=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]*$"),Cl={},mg={};function Nb(n){return bn.call(mg,n)?!0:bn.call(Cl,n)?!1:kb.test(n)?mg[n]=!0:(Cl[n]=!0,!1)}function Sc(n,a,o){if(Nb(a))if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+o)}}function Tl(n,a,o){if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+o)}}function zr(n,a,o,c){if(c===null)n.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(a,o,""+c)}}var Ec,gg;function xs(n){if(Ec===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Ec=a&&a[1]||"",gg=-1<o.stack.indexOf(`
|
|
41
|
+
*/var n=D5(),r=K0(),i=Ow();function l(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var a=e,o=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(o=a.return),e=a.return;while(e)}return a.tag===3?o:null}function g(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function y(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(l(188))}function w(e){var a=e.alternate;if(!a){if(a=h(e),a===null)throw Error(l(188));return a!==e?null:e}for(var o=e,u=a;;){var d=o.return;if(d===null)break;var m=d.alternate;if(m===null){if(u=d.return,u!==null){o=u;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===o)return b(d),e;if(m===u)return b(d),a;m=m.sibling}throw Error(l(188))}if(o.return!==u.return)o=d,u=m;else{for(var x=!1,S=d.child;S;){if(S===o){x=!0,o=d,u=m;break}if(S===u){x=!0,u=d,o=m;break}S=S.sibling}if(!x){for(S=m.child;S;){if(S===o){x=!0,o=m,u=d;break}if(S===u){x=!0,u=m,o=d;break}S=S.sibling}if(!x)throw Error(l(189))}}if(o.alternate!==u)throw Error(l(190))}if(o.tag!==3)throw Error(l(188));return o.stateNode.current===o?e:a}function E(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=E(e),a!==null)return a;e=e.sibling}return null}var A=Object.assign,I=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),G=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),Re=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=be&&e[be]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case Y:return"Profiler";case q:return"StrictMode";case ye:return"Suspense";case ce:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case G:return e.displayName||"Context";case re:return(e._context.displayName||"Context")+".Consumer";case te:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return a=e.displayName||null,a!==null?a:de(e.type)||"Memo";case ve:a=e._payload,e=e._init;try{return de(e(a))}catch{}}return null}var Q=Array.isArray,U=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe={pending:!1,data:null,method:null,action:null},Oe=[],Ve=-1;function k(e){return{current:e}}function F(e){0>Ve||(e.current=Oe[Ve],Oe[Ve]=null,Ve--)}function W(e,a){Ve++,Oe[Ve]=e.current,e.current=a}var ue=k(null),Te=k(null),_e=k(null),Me=k(null);function We(e,a){switch(W(_e,a),W(Te,e),W(ue,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?Aa(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=Aa(a),e=cs(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(ue),W(ue,e)}function Ze(){F(ue),F(Te),F(_e)}function Ke(e){e.memoizedState!==null&&W(Me,e);var a=ue.current,o=cs(a,e.type);a!==o&&(W(Te,e),W(ue,o))}function kt(e){Te.current===e&&(F(ue),F(Te)),Me.current===e&&(F(Me),rc._currentValue=xe)}var bn,Xt;function Mn(e){if(bn===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);bn=a&&a[1]||"",Xt=-1<o.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+
|
|
44
|
-
`),J=
|
|
45
|
-
`);for(d=
|
|
46
|
-
`+
|
|
47
|
-
Error generating stack: `+
|
|
48
|
-
`+o.stack}}function Ma(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ac(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ib(n){var a=Ac(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),c=""+n[a];if(!n.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,g=o.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return d.call(this)},set:function(w){c=""+w,g.call(this,w)}}),Object.defineProperty(n,a,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Ol(n){n._valueTracker||(n._valueTracker=Ib(n))}function Rl(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var o=a.getValue(),c="";return n&&(c=Ac(n)?n.checked?"true":"false":n.value),n=c,n!==o?(a.setValue(n),!0):!1}function Dl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Lb=/[\n"\\]/g;function ka(n){return n.replace(Lb,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Cc(n,a,o,c,d,g,w,A){n.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.type=w:n.removeAttribute("type"),a!=null?w==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Ma(a)):n.value!==""+Ma(a)&&(n.value=""+Ma(a)):w!=="submit"&&w!=="reset"||n.removeAttribute("value"),a!=null?th(n,w,Ma(a)):o!=null?th(n,w,Ma(o)):c!=null&&n.removeAttribute("value"),d==null&&g!=null&&(n.defaultChecked=!!g),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?n.name=""+Ma(A):n.removeAttribute("name")}function Tc(n,a,o,c,d,g,w,A){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),a!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||a!=null))return;o=o!=null?""+Ma(o):"",a=a!=null?""+Ma(a):o,A||a===n.value||(n.value=a),n.defaultValue=a}c=c??d,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=A?n.checked:!!c,n.defaultChecked=!!c,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(n.name=w)}function th(n,a,o){a==="number"&&Dl(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function ko(n,a,o,c){if(n=n.options,a){a={};for(var d=0;d<o.length;d++)a["$"+o[d]]=!0;for(o=0;o<n.length;o++)d=a.hasOwnProperty("$"+n[o].value),n[o].selected!==d&&(n[o].selected=d),d&&c&&(n[o].defaultSelected=!0)}else{for(o=""+Ma(o),a=null,d=0;d<n.length;d++){if(n[d].value===o){n[d].selected=!0,c&&(n[d].defaultSelected=!0);return}a!==null||n[d].disabled||(a=n[d])}a!==null&&(a.selected=!0)}}function Oc(n,a,o){if(a!=null&&(a=""+Ma(a),a!==n.value&&(n.value=a),o==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=o!=null?""+Ma(o):""}function Rc(n,a,o,c){if(a==null){if(c!=null){if(o!=null)throw Error(l(92));if(Q(c)){if(1<c.length)throw Error(l(93));c=c[0]}o=c}o==null&&(o=""),a=o}o=Ma(a),n.defaultValue=o,c=n.textContent,c===o&&c!==""&&c!==null&&(n.value=c)}function _r(n,a){if(a){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=a;return}}n.textContent=a}var vg=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 nh(n,a,o){var c=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":c?n.setProperty(a,o):typeof o!="number"||o===0||vg.has(a)?a==="float"?n.cssFloat=o:n[a]=(""+o).trim():n[a]=o+"px"}function bg(n,a,o){if(a!=null&&typeof a!="object")throw Error(l(62));if(n=n.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var d in a)c=a[d],a.hasOwnProperty(d)&&o[d]!==c&&nh(n,d,c)}else for(var g in a)a.hasOwnProperty(g)&&nh(n,g,a[g])}function Dc(n){if(n.indexOf("-")===-1)return!1;switch(n){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 xg=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"]]),wg=/^[\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 Ml(n){return wg.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var ah=null;function rh(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ws=null,No=null;function _g(n){var a=Do(n);if(a&&(n=a.stateNode)){var o=n[Vn]||null;e:switch(n=a.stateNode,a.type){case"input":if(Cc(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+ka(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var c=o[a];if(c!==n&&c.form===n.form){var d=c[Vn]||null;if(!d)throw Error(l(90));Cc(c,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<o.length;a++)c=o[a],c.form===n.form&&Rl(c)}break e;case"textarea":Oc(n,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&ko(n,!!o.multiple,a,!1)}}}var ih=!1;function Sg(n,a,o){if(ih)return n(a,o);ih=!0;try{var c=n(a);return c}finally{if(ih=!1,(ws!==null||No!==null)&&(Pf(),ws&&(a=ws,n=No,No=ws=null,_g(a),n)))for(a=0;a<n.length;a++)_g(n[a])}}function kl(n,a){var o=n.stateNode;if(o===null)return null;var c=o[Vn]||null;if(c===null)return null;o=c[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":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(l(231,a,typeof o));return o}var Sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oh=!1;if(Sr)try{var Nl={};Object.defineProperty(Nl,"passive",{get:function(){oh=!0}}),window.addEventListener("test",Nl,Nl),window.removeEventListener("test",Nl,Nl)}catch{oh=!1}var Bi=null,sh=null,Mc=null;function Xt(){if(Mc)return Mc;var n,a=sh,o=a.length,c,d="value"in Bi?Bi.value:Bi.textContent,g=d.length;for(n=0;n<o&&a[n]===d[n];n++);var w=o-n;for(c=1;c<=w&&a[o-c]===d[g-c];c++);return Mc=d.slice(n,1<c?1-c:void 0)}function It(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function kc(){return!0}function Eg(){return!1}function xa(n){function a(o,c,d,g,w){this._reactName=o,this._targetInst=d,this.type=c,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var A in n)n.hasOwnProperty(A)&&(o=n[A],this[A]=o?o(g):g[A]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?kc:Eg,this.isPropagationStopped=Eg,this}return S(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=kc)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=kc)},persist:function(){},isPersistent:kc}),a}var Io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nc=xa(Io),Il=S({},Io,{view:0,detail:0}),Ag=xa(Il),lh,Dn,Lo,Pr=S({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_s,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Lo&&(Lo&&n.type==="mousemove"?(lh=n.screenX-Lo.screenX,Dn=n.screenY-Lo.screenY):Dn=lh=0,Lo=n),lh)},movementY:function(n){return"movementY"in n?n.movementY:Dn}}),uh=xa(Pr),ch=S({},Pr,{dataTransfer:0}),Ja=xa(ch),Cg=S({},Il,{relatedTarget:0}),Ic=xa(Cg),Tg=S({},Io,{animationName:0,elapsedTime:0,pseudoElement:0}),Og=xa(Tg),Rg=S({},Io,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Dg=xa(Rg),Na=S({},Io,{data:0}),Mg=xa(Na),er={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zb={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"},kg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qi(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=kg[n])?!!a[n]:!1}function _s(){return qi}var fh=S({},Il,{key:function(n){if(n.key){var a=er[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=It(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?zb[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_s,charCode:function(n){return n.type==="keypress"?It(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?It(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),an=xa(fh),Fi=S({},Pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lc=xa(Fi),Pb=S({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_s}),dh=xa(Pb),jb=S({},Io,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ub=xa(jb),Hb=S({},Pr,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Ng=xa(Hb),zc=S({},Io,{newState:0,oldState:0}),Ss=xa(zc),Bb=[9,13,27,32],Pc=Sr&&"CompositionEvent"in window,Es=null;Sr&&"documentMode"in document&&(Es=document.documentMode);var hh=Sr&&"TextEvent"in window&&!Es,jc=Sr&&(!Pc||Es&&8<Es&&11>=Es),ph=" ",Ig=!1;function Uc(n,a){switch(n){case"keyup":return Bb.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hc(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var As=!1;function Lg(n,a){switch(n){case"compositionend":return Hc(a);case"keypress":return a.which!==32?null:(Ig=!0,ph);case"textInput":return n=a.data,n===ph&&Ig?null:n;default:return null}}function Ia(n,a){if(As)return n==="compositionend"||!Pc&&Uc(n,a)?(n=Xt(),Mc=sh=Bi=null,As=!1,n):null;switch(n){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 jc&&a.locale!=="ko"?null:a.data;default:return null}}var mh={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 Cs(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!mh[n.type]:a==="textarea"}function gh(n,a,o,c){ws?No?No.push(c):No=[c]:ws=c,a=Jn(a,"onChange"),0<a.length&&(o=new Nc("onChange","change",null,o,c),n.push({event:o,listeners:a}))}var Ts=null,Ll=null;function qb(n){n0(n,0)}function Bc(n){var a=Al(n);if(Rl(a))return n}function zg(n,a){if(n==="change")return a}var Pg=!1;if(Sr){var Yi;if(Sr){var yh="oninput"in document;if(!yh){var jg=document.createElement("div");jg.setAttribute("oninput","return;"),yh=typeof jg.oninput=="function"}Yi=yh}else Yi=!1;Pg=Yi&&(!document.documentMode||9<document.documentMode)}function qc(){Ts&&(Ts.detachEvent("onpropertychange",vh),Ll=Ts=null)}function vh(n){if(n.propertyName==="value"&&Bc(Ll)){var a=[];gh(a,Ll,n,rh(n)),Sg(qb,a)}}function Gi(n,a,o){n==="focusin"?(qc(),Ts=a,Ll=o,Ts.attachEvent("onpropertychange",vh)):n==="focusout"&&qc()}function Fc(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Bc(Ll)}function Fb(n,a){if(n==="click")return Bc(a)}function Yb(n,a){if(n==="input"||n==="change")return Bc(a)}function Gb(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Pn=typeof Object.is=="function"?Object.is:Gb;function ua(n,a){if(Pn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var o=Object.keys(n),c=Object.keys(a);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var d=o[c];if(!bn.call(a,d)||!Pn(n[d],a[d]))return!1}return!0}function bh(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Ug(n,a){var o=bh(n);n=0;for(var c;o;){if(o.nodeType===3){if(c=n+o.textContent.length,n<=a&&c>=a)return{node:o,offset:a-n};n=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=bh(o)}}function Hg(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Hg(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Bg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Dl(n.document);a instanceof n.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)n=a.contentWindow;else break;a=Dl(n.document)}return a}function xh(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var Vb=Sr&&"documentMode"in document&&11>=document.documentMode,Er=null,G=null,oe=null,ae=!1;function Ne(n,a,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ae||Er==null||Er!==Dl(c)||(c=Er,"selectionStart"in c&&xh(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),oe&&ua(oe,c)||(oe=c,c=Jn(G,"onSelect"),0<c.length&&(a=new Nc("onSelect","select",null,a,o),n.push({event:a,listeners:c}),a.target=Er)))}function Qe(n,a){var o={};return o[n.toLowerCase()]=a.toLowerCase(),o["Webkit"+n]="webkit"+a,o["Moz"+n]="moz"+a,o}var _t={animationend:Qe("Animation","AnimationEnd"),animationiteration:Qe("Animation","AnimationIteration"),animationstart:Qe("Animation","AnimationStart"),transitionrun:Qe("Transition","TransitionRun"),transitionstart:Qe("Transition","TransitionStart"),transitioncancel:Qe("Transition","TransitionCancel"),transitionend:Qe("Transition","TransitionEnd")},xn={},jt={};Sr&&(jt=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);function ei(n){if(xn[n])return xn[n];if(!_t[n])return n;var a=_t[n],o;for(o in a)if(a.hasOwnProperty(o)&&o in jt)return xn[n]=a[o];return n}var qg=ei("animationend"),La=ei("animationiteration"),zl=ei("animationstart"),$b=ei("transitionrun"),Os=ei("transitionstart"),Yc=ei("transitioncancel"),Pl=ei("transitionend"),Mt=new Map,wh="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(" ");wh.push("scrollEnd");function tr(n,a){Mt.set(n,a),Mo(a,[n])}var jl=new WeakMap;function nr(n,a){if(typeof n=="object"&&n!==null){var o=jl.get(n);return o!==void 0?o:(a={value:n,source:a,stack:eh(a)},jl.set(n,a),a)}return{value:n,source:a,stack:eh(a)}}var ar=[],Rs=0,Ds=0;function Ar(){for(var n=Rs,a=Ds=Rs=0;a<n;){var o=ar[a];ar[a++]=null;var c=ar[a];ar[a++]=null;var d=ar[a];ar[a++]=null;var g=ar[a];if(ar[a++]=null,c!==null&&d!==null){var w=c.pending;w===null?d.next=d:(d.next=w.next,w.next=d),c.pending=d}g!==0&&_h(o,d,g)}}function zo(n,a,o,c){ar[Rs++]=n,ar[Rs++]=a,ar[Rs++]=o,ar[Rs++]=c,Ds|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function Gc(n,a,o,c){return zo(n,a,o,c),Ul(n)}function ti(n,a){return zo(n,null,null,a),Ul(n)}function _h(n,a,o){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o);for(var d=!1,g=n.return;g!==null;)g.childLanes|=o,c=g.alternate,c!==null&&(c.childLanes|=o),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(d=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,d&&a!==null&&(d=31-Gn(o),n=g.hiddenUpdates,c=n[d],c===null?n[d]=[a]:c.push(a),a.lane=o|536870912),g):null}function Ul(n){if(50<yu)throw yu=0,Zs=null,Error(l(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var ni={};function Fg(n,a,o,c){this.tag=n,this.key=o,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=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(n,a,o,c){return new Fg(n,a,o,c)}function ai(n){return n=n.prototype,!(!n||!n.isReactComponent)}function rr(n,a){var o=n.alternate;return o===null?(o=$n(n.tag,a,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=a,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,a=n.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function Yg(n,a){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,a=o.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Vc(n,a,o,c,d,g){var w=0;if(c=n,typeof n=="function")ai(n)&&(w=1);else if(typeof n=="string")w=Bn(n,o,me.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Ce:return n=$n(31,o,a,d),n.elementType=Ce,n.lanes=g,n;case M:return Po(o.children,d,g,a);case D:w=8,d|=24;break;case B:return n=$n(12,o,a,d|2),n.elementType=B,n.lanes=g,n;case se:return n=$n(13,o,a,d),n.elementType=se,n.lanes=g,n;case fe:return n=$n(19,o,a,d),n.elementType=fe,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case F:case Y:w=10;break e;case re:w=9;break e;case ne:w=11;break e;case ie:w=14;break e;case we:w=16,c=null;break e}w=29,o=Error(l(130,n===null?"null":typeof n,"")),c=null}return a=$n(w,o,a,d),a.elementType=n,a.type=c,a.lanes=g,a}function Po(n,a,o,c){return n=$n(7,n,c,a),n.lanes=o,n}function Ms(n,a,o){return n=$n(6,n,null,a),n.lanes=o,n}function ks(n,a,o){return a=$n(4,n.children!==null?n.children:[],n.key,a),a.lanes=o,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Vi=[],Ns=0,Hl=null,$c=0,ir=[],kt=0,hn=null,ri=1,ii="";function $i(n,a){Vi[Ns++]=$c,Vi[Ns++]=Hl,Hl=n,$c=a}function Gg(n,a,o){ir[kt++]=ri,ir[kt++]=ii,ir[kt++]=hn,hn=n;var c=ri;n=ii;var d=32-Gn(c)-1;c&=~(1<<d),o+=1;var g=32-Gn(a)+d;if(30<g){var w=d-d%5;g=(c&(1<<w)-1).toString(32),c>>=w,d-=w,ri=1<<32-Gn(a)+d|o<<d|c,ii=g+n}else ri=1<<g|o<<d|c,ii=n}function Bl(n){n.return!==null&&($i(n,1),Gg(n,1,0))}function jo(n){for(;n===Hl;)Hl=Vi[--Ns],Vi[Ns]=null,$c=Vi[--Ns],Vi[Ns]=null;for(;n===hn;)hn=ir[--kt],ir[kt]=null,ii=ir[--kt],ir[kt]=null,ri=ir[--kt],ir[kt]=null}var Zn=null,Gt=null,St=!1,Cr=null,za=!1,Zi=Error(l(519));function Uo(n){var a=Error(l(418,""));throw oi(nr(a,n)),Zi}function Vg(n){var a=n.stateNode,o=n.type,c=n.memoizedProps;switch(a[Ln]=n,a[Vn]=c,o){case"dialog":wt("cancel",a),wt("close",a);break;case"iframe":case"object":case"embed":wt("load",a);break;case"video":case"audio":for(o=0;o<Su.length;o++)wt(Su[o],a);break;case"source":wt("error",a);break;case"img":case"image":case"link":wt("error",a),wt("load",a);break;case"details":wt("toggle",a);break;case"input":wt("invalid",a),Tc(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),Ol(a);break;case"select":wt("invalid",a);break;case"textarea":wt("invalid",a),Rc(a,c.value,c.defaultValue,c.children),Ol(a)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||c.suppressHydrationWarning===!0||i0(a.textContent,o)?(c.popover!=null&&(wt("beforetoggle",a),wt("toggle",a)),c.onScroll!=null&&wt("scroll",a),c.onScrollEnd!=null&&wt("scrollend",a),c.onClick!=null&&(a.onclick=Gf),a=!0):a=!1,a||Uo(n)}function $g(n){for(Zn=n.return;Zn;)switch(Zn.tag){case 5:case 13:za=!1;return;case 27:case 3:za=!0;return;default:Zn=Zn.return}}function ql(n){if(n!==Zn)return!1;if(!St)return $g(n),St=!0,!1;var a=n.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Hp(n.type,n.memoizedProps)),o=!o),o&&Gt&&Uo(n),$g(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(o=n.data,o==="/$"){if(a===0){Gt=Mr(n.nextSibling);break e}a--}else o!=="$"&&o!=="$!"&&o!=="$?"||a++;n=n.nextSibling}Gt=null}}else a===27?(a=Gt,Fr(n.type)?(n=qp,qp=null,Gt=n):Gt=a):Gt=Zn?Mr(n.stateNode.nextSibling):null;return!0}function Fl(){Gt=Zn=null,St=!1}function Yl(){var n=Cr;return n!==null&&(Oa===null?Oa=n:Oa.push.apply(Oa,n),Cr=null),n}function oi(n){Cr===null?Cr=[n]:Cr.push(n)}var Zc=$(null),E=null,wa=null;function Tr(n,a,o){K(Zc,a._currentValue),a._currentValue=o}function _n(n){n._currentValue=Zc.current,ee(Zc)}function pt(n,a,o){for(;n!==null;){var c=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),n===o)break;n=n.return}}function Sh(n,a,o,c){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var g=d.dependencies;if(g!==null){var w=d.child;g=g.firstContext;e:for(;g!==null;){var A=g;g=d;for(var L=0;L<a.length;L++)if(A.context===a[L]){g.lanes|=o,A=g.alternate,A!==null&&(A.lanes|=o),pt(g.return,o,n),c||(w=null);break e}g=A.next}}else if(d.tag===18){if(w=d.return,w===null)throw Error(l(341));w.lanes|=o,g=w.alternate,g!==null&&(g.lanes|=o),pt(w,o,n),w=null}else w=d.child;if(w!==null)w.return=d;else for(w=d;w!==null;){if(w===n){w=null;break}if(d=w.sibling,d!==null){d.return=w.return,w=d;break}w=w.return}d=w}}function Gl(n,a,o,c){n=null;for(var d=a,g=!1;d!==null;){if(!g){if((d.flags&524288)!==0)g=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var w=d.alternate;if(w===null)throw Error(l(387));if(w=w.memoizedProps,w!==null){var A=d.type;Pn(d.pendingProps.value,w.value)||(n!==null?n.push(A):n=[A])}}else if(d===Be.current){if(w=d.alternate,w===null)throw Error(l(387));w.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(ku):n=[ku])}d=d.return}n!==null&&Sh(a,n,o,c),a.flags|=262144}function Qc(n){for(n=n.firstContext;n!==null;){if(!Pn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Pa(n){E=n,wa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function na(n){return Zg(E,n)}function Wc(n,a){return E===null&&Pa(n),Zg(n,a)}function Zg(n,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},wa===null){if(n===null)throw Error(l(308));wa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else wa=wa.next=a;return o}var Zb=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(o,c){n.push(c)}};this.abort=function(){a.aborted=!0,n.forEach(function(o){return o()})}},Qb=t.unstable_scheduleCallback,si=t.unstable_NormalPriority,Mn={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Eh(){return{controller:new Zb,data:new Map,refCount:0}}function Vl(n){n.refCount--,n.refCount===0&&Qb(si,function(){n.controller.abort()})}var $l=null,Ah=0,_a=0,Is=null;function Wb(n,a){if($l===null){var o=$l=[];Ah=0,_a=Lp(),Is={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Ah++,a.then(Qg,Qg),a}function Qg(){if(--Ah===0&&$l!==null){Is!==null&&(Is.status="fulfilled");var n=$l;$l=null,_a=0,Is=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Xb(n,a){var o=[],c={status:"pending",value:null,reason:null,then:function(d){o.push(d)}};return n.then(function(){c.status="fulfilled",c.value=a;for(var d=0;d<o.length;d++)(0,o[d])(a)},function(d){for(c.status="rejected",c.reason=d,d=0;d<o.length;d++)(0,o[d])(void 0)}),c}var Wg=U.S;U.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Wb(n,a),Wg!==null&&Wg(n,a)};var ja=$(null);function Ch(){var n=ja.current;return n!==null?n:Jt.pooledCache}function Xc(n,a){a===null?K(ja,ja.current):K(ja,a.pool)}function or(){var n=Ch();return n===null?null:{parent:Mn._currentValue,pool:n}}var Zl=Error(l(460)),Xg=Error(l(474)),Kc=Error(l(542)),Th={then:function(){}};function Kg(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Ql(){}function Oh(n,a,o){switch(o=n[o],o===void 0?n.push(a):o!==a&&(a.then(Ql,Ql),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Jc(n),n;default:if(typeof a.status=="string")a.then(Ql,Ql);else{if(n=Jt,n!==null&&100<n.shellSuspendCounter)throw Error(l(482));n=a,n.status="pending",n.then(function(c){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=c}},function(c){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Jc(n),n}throw Wl=a,Zl}}var Wl=null;function Jg(){if(Wl===null)throw Error(l(459));var n=Wl;return Wl=null,n}function Jc(n){if(n===Zl||n===Kc)throw Error(l(483))}var sr=!1;function Ls(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rh(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function li(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Qi(n,a,o){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Lt&2)!==0){var d=c.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a,a=Ul(n),_h(n,null,o),a}return zo(n,c,a,o),Ul(n)}function Ua(n,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var c=a.lanes;c&=n.pendingLanes,o|=c,a.lanes=o,Hi(n,o)}}function Xl(n,a){var o=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var d=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var w={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?d=g=w:g=g.next=w,o=o.next}while(o!==null);g===null?d=g=a:g=g.next=a}else d=g=a;o={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=a:n.next=a,o.lastBaseUpdate=a}var ui=!1;function aa(){if(ui){var n=Is;if(n!==null)throw n}}function Kl(n,a,o,c){ui=!1;var d=n.updateQueue;sr=!1;var g=d.firstBaseUpdate,w=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var L=A,J=L.next;L.next=null,w===null?g=J:w.next=J,w=L;var ce=n.alternate;ce!==null&&(ce=ce.updateQueue,A=ce.lastBaseUpdate,A!==w&&(A===null?ce.firstBaseUpdate=J:A.next=J,ce.lastBaseUpdate=L))}if(g!==null){var ge=d.baseState;w=0,ce=J=L=null,A=g;do{var W=A.lane&-536870913,te=W!==A.lane;if(te?(Ct&W)===W:(c&W)===W){W!==0&&W===_a&&(ui=!0),ce!==null&&(ce=ce.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ke=n,Ze=A;W=a;var Ht=o;switch(Ze.tag){case 1:if(Ke=Ze.payload,typeof Ke=="function"){ge=Ke.call(Ht,ge,W);break e}ge=Ke;break e;case 3:Ke.flags=Ke.flags&-65537|128;case 0:if(Ke=Ze.payload,W=typeof Ke=="function"?Ke.call(Ht,ge,W):Ke,W==null)break e;ge=S({},ge,W);break e;case 2:sr=!0}}W=A.callback,W!==null&&(n.flags|=64,te&&(n.flags|=8192),te=d.callbacks,te===null?d.callbacks=[W]:te.push(W))}else te={lane:W,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ce===null?(J=ce=te,L=ge):ce=ce.next=te,w|=W;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;te=A,A=te.next,te.next=null,d.lastBaseUpdate=te,d.shared.pending=null}}while(!0);ce===null&&(L=ge),d.baseState=L,d.firstBaseUpdate=J,d.lastBaseUpdate=ce,g===null&&(d.shared.lanes=0),oo|=w,n.lanes=w,n.memoizedState=ge}}function Dh(n,a){if(typeof n!="function")throw Error(l(191,n));n.call(a)}function Mh(n,a){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)Dh(o[n],a)}var jr=$(null),Or=$(0);function kh(n,a){n=vi,K(Or,n),K(jr,a),vi=n|a.baseLanes}function Nh(){K(Or,vi),K(jr,jr.current)}function zs(){vi=Or.current,ee(jr),ee(Or)}var Wi=0,ut=null,it=null,pn=null,Jl=!1,ca=!1,ci=!1,Ho=0,Rr=0,Bo=null,fa=0;function un(){throw Error(l(321))}function Ih(n,a){if(a===null)return!1;for(var o=0;o<a.length&&o<n.length;o++)if(!Pn(n[o],a[o]))return!1;return!0}function Lh(n,a,o,c,d,g){return Wi=g,ut=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,U.H=n===null||n.memoizedState===null?ep:tp,ci=!1,g=o(c,d),ci=!1,ca&&(g=ef(a,o,c,d)),e1(n),g}function e1(n){U.H=xf;var a=it!==null&&it.next!==null;if(Wi=0,pn=it=ut=null,Jl=!1,Rr=0,Bo=null,a)throw Error(l(300));n===null||Kt||(n=n.dependencies,n!==null&&Qc(n)&&(Kt=!0))}function ef(n,a,o,c){ut=n;var d=0;do{if(ca&&(Bo=null),Rr=0,ca=!1,25<=d)throw Error(l(301));if(d+=1,pn=it=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}U.H=Ea,g=a(o,c)}while(ca);return g}function Kb(){var n=U.H,a=n.useState()[0];return a=typeof a.then=="function"?eu(a):a,n=n.useState()[0],(it!==null?it.memoizedState:null)!==n&&(ut.flags|=1024),a}function qo(){var n=Ho!==0;return Ho=0,n}function tf(n,a,o){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~o}function zh(n){if(Jl){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Jl=!1}Wi=0,pn=it=ut=null,ca=!1,Rr=Ho=0,Bo=null}function Sa(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pn===null?ut.memoizedState=pn=n:pn=pn.next=n,pn}function rn(){if(it===null){var n=ut.alternate;n=n!==null?n.memoizedState:null}else n=it.next;var a=pn===null?ut.memoizedState:pn.next;if(a!==null)pn=a,it=n;else{if(n===null)throw ut.alternate===null?Error(l(467)):Error(l(310));it=n,n={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},pn===null?ut.memoizedState=pn=n:pn=pn.next=n}return pn}function Ph(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function eu(n){var a=Rr;return Rr+=1,Bo===null&&(Bo=[]),n=Oh(Bo,n,a),a=ut,(pn===null?a.memoizedState:pn.next)===null&&(a=a.alternate,U.H=a===null||a.memoizedState===null?ep:tp),n}function Ps(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return eu(n);if(n.$$typeof===Y)return na(n)}throw Error(l(438,String(n)))}function nf(n){var a=null,o=ut.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var c=ut.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=Ph(),ut.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(n),c=0;c<n;c++)o[c]=De;return a.index++,o}function fi(n,a){return typeof a=="function"?a(n):a}function af(n){var a=rn();return jh(a,it,n)}function jh(n,a,o){var c=n.queue;if(c===null)throw Error(l(311));c.lastRenderedReducer=o;var d=n.baseQueue,g=c.pending;if(g!==null){if(d!==null){var w=d.next;d.next=g.next,g.next=w}a.baseQueue=d=g,c.pending=null}if(g=n.baseState,d===null)n.memoizedState=g;else{a=d.next;var A=w=null,L=null,J=a,ce=!1;do{var ge=J.lane&-536870913;if(ge!==J.lane?(Ct&ge)===ge:(Wi&ge)===ge){var W=J.revertLane;if(W===0)L!==null&&(L=L.next={lane:0,revertLane:0,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),ge===_a&&(ce=!0);else if((Wi&W)===W){J=J.next,W===_a&&(ce=!0);continue}else ge={lane:0,revertLane:J.revertLane,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},L===null?(A=L=ge,w=g):L=L.next=ge,ut.lanes|=W,oo|=W;ge=J.action,ci&&o(g,ge),g=J.hasEagerState?J.eagerState:o(g,ge)}else W={lane:ge,revertLane:J.revertLane,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},L===null?(A=L=W,w=g):L=L.next=W,ut.lanes|=ge,oo|=ge;J=J.next}while(J!==null&&J!==a);if(L===null?w=g:L.next=A,!Pn(g,n.memoizedState)&&(Kt=!0,ce&&(o=Is,o!==null)))throw o;n.memoizedState=g,n.baseState=w,n.baseQueue=L,c.lastRenderedState=g}return d===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function rf(n){var a=rn(),o=a.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=n;var c=o.dispatch,d=o.pending,g=a.memoizedState;if(d!==null){o.pending=null;var w=d=d.next;do g=n(g,w.action),w=w.next;while(w!==d);Pn(g,a.memoizedState)||(Kt=!0),a.memoizedState=g,a.baseQueue===null&&(a.baseState=g),o.lastRenderedState=g}return[g,c]}function of(n,a,o){var c=ut,d=rn(),g=St;if(g){if(o===void 0)throw Error(l(407));o=o()}else o=a();var w=!Pn((it||d).memoizedState,o);w&&(d.memoizedState=o,Kt=!0),d=d.queue;var A=Uh.bind(null,c,d,n);if(tu(2048,8,A,[n]),d.getSnapshot!==a||w||pn!==null&&pn.memoizedState.tag&1){if(c.flags|=2048,Us(9,Xi(),sf.bind(null,c,d,o,a),null),Jt===null)throw Error(l(349));g||(Wi&124)!==0||t1(c,a,o)}return o}function t1(n,a,o){n.flags|=16384,n={getSnapshot:a,value:o},a=ut.updateQueue,a===null?(a=Ph(),ut.updateQueue=a,a.stores=[n]):(o=a.stores,o===null?a.stores=[n]:o.push(n))}function sf(n,a,o,c){a.value=o,a.getSnapshot=c,Hh(a)&&Bh(n)}function Uh(n,a,o){return o(function(){Hh(a)&&Bh(n)})}function Hh(n){var a=n.getSnapshot;n=n.value;try{var o=a();return!Pn(n,o)}catch{return!0}}function Bh(n){var a=ti(n,2);a!==null&&Ya(a,n,2)}function js(n){var a=Sa();if(typeof n=="function"){var o=n;if(n=o(),ci){ba(!0);try{o()}finally{ba(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:n},a}function n1(n,a,o,c){return n.baseState=o,jh(n,it,typeof c=="function"?c:fi)}function a1(n,a,o,c,d){if(bf(n))throw Error(l(485));if(n=a.action,n!==null){var g={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){g.listeners.push(w)}};U.T!==null?o(!0):g.isTransition=!1,c(g),o=a.pending,o===null?(g.next=a.pending=g,qh(a,g)):(g.next=o.next,a.pending=o.next=g)}}function qh(n,a){var o=a.action,c=a.payload,d=n.state;if(a.isTransition){var g=U.T,w={};U.T=w;try{var A=o(d,c),L=U.S;L!==null&&L(w,A),r1(n,a,A)}catch(J){Yh(n,a,J)}finally{U.T=g}}else try{g=o(d,c),r1(n,a,g)}catch(J){Yh(n,a,J)}}function r1(n,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){Fh(n,a,c)},function(c){return Yh(n,a,c)}):Fh(n,a,o)}function Fh(n,a,o){a.status="fulfilled",a.value=o,lf(a),n.state=o,a=n.pending,a!==null&&(o=a.next,o===a?n.pending=null:(o=o.next,a.next=o,qh(n,o)))}function Yh(n,a,o){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=o,lf(a),a=a.next;while(a!==c)}n.action=null}function lf(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function Gh(n,a){return a}function uf(n,a){if(St){var o=Jt.formState;if(o!==null){e:{var c=ut;if(St){if(Gt){t:{for(var d=Gt,g=za;d.nodeType!==8;){if(!g){d=null;break t}if(d=Mr(d.nextSibling),d===null){d=null;break t}}g=d.data,d=g==="F!"||g==="F"?d:null}if(d){Gt=Mr(d.nextSibling),c=d.data==="F!";break e}}Uo(c)}c=!1}c&&(a=o[0])}}return o=Sa(),o.memoizedState=o.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gh,lastRenderedState:a},o.queue=c,o=vf.bind(null,ut,c),c.dispatch=o,c=js(!1),g=Xh.bind(null,ut,!1,c.queue),c=Sa(),d={state:a,dispatch:null,action:n,pending:null},c.queue=d,o=a1.bind(null,ut,d,g,o),d.dispatch=o,c.memoizedState=n,[a,o,!1]}function i1(n){var a=rn();return cf(a,it,n)}function cf(n,a,o){if(a=jh(n,a,Gh)[0],n=af(fi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=eu(a)}catch(w){throw w===Zl?Kc:w}else c=a;a=rn();var d=a.queue,g=d.dispatch;return o!==a.memoizedState&&(ut.flags|=2048,Us(9,Xi(),dt.bind(null,d,o),null)),[c,g,n]}function dt(n,a){n.action=a}function o1(n){var a=rn(),o=it;if(o!==null)return cf(a,o,n);rn(),a=a.memoizedState,o=rn();var c=o.queue.dispatch;return o.memoizedState=n,[a,c,!1]}function Us(n,a,o,c){return n={tag:n,create:o,deps:c,inst:a,next:null},a=ut.updateQueue,a===null&&(a=Ph(),ut.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=n.next=n:(c=o.next,o.next=n,n.next=c,a.lastEffect=n),n}function Xi(){return{destroy:void 0,resource:void 0}}function Vh(){return rn().memoizedState}function ff(n,a,o,c){var d=Sa();c=c===void 0?null:c,ut.flags|=n,d.memoizedState=Us(1|a,Xi(),o,c)}function tu(n,a,o,c){var d=rn();c=c===void 0?null:c;var g=d.memoizedState.inst;it!==null&&c!==null&&Ih(c,it.memoizedState.deps)?d.memoizedState=Us(a,g,o,c):(ut.flags|=n,d.memoizedState=Us(1|a,g,o,c))}function Ha(n,a){ff(8390656,8,n,a)}function s1(n,a){tu(2048,8,n,a)}function nu(n,a){return tu(4,2,n,a)}function df(n,a){return tu(4,4,n,a)}function $h(n,a){if(typeof a=="function"){n=n();var o=a(n);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Zh(n,a,o){o=o!=null?o.concat([n]):null,tu(4,4,$h.bind(null,a,n),o)}function da(){}function di(n,a){var o=rn();a=a===void 0?null:a;var c=o.memoizedState;return a!==null&&Ih(a,c[1])?c[0]:(o.memoizedState=[n,a],n)}function hf(n,a){var o=rn();a=a===void 0?null:a;var c=o.memoizedState;if(a!==null&&Ih(a,c[1]))return c[0];if(c=n(),ci){ba(!0);try{n()}finally{ba(!1)}}return o.memoizedState=[c,a],c}function pf(n,a,o){return o===void 0||(Wi&1073741824)!==0?n.memoizedState=a:(n.memoizedState=o,n=k1(),ut.lanes|=n,oo|=n,o)}function au(n,a,o,c){return Pn(o,a)?o:jr.current!==null?(n=pf(n,o,c),Pn(n,a)||(Kt=!0),n):(Wi&42)===0?(Kt=!0,n.memoizedState=o):(n=k1(),ut.lanes|=n,oo|=n,a)}function Qh(n,a,o,c,d){var g=z.p;z.p=g!==0&&8>g?g:8;var w=U.T,A={};U.T=A,Xh(n,!1,a,o);try{var L=d(),J=U.S;if(J!==null&&J(A,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var ce=Xb(L,c);ru(n,a,ce,Fa(n))}else ru(n,a,c,Fa(n))}catch(ge){ru(n,a,{then:function(){},status:"rejected",reason:ge},Fa())}finally{z.p=g,U.T=w}}function Wh(){}function mf(n,a,o,c){if(n.tag!==5)throw Error(l(476));var d=gf(n).queue;Qh(n,d,a,ve,o===null?Wh:function(){return yf(n),o(c)})}function gf(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:ve},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:o},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function yf(n){var a=gf(n).next.queue;ru(n,a,{},Fa())}function Ur(){return na(ku)}function l1(){return rn().memoizedState}function hi(){return rn().memoizedState}function u1(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var o=Fa();n=li(o);var c=Qi(a,n,o);c!==null&&(Ya(c,a,o),Ua(c,a,o)),a={cache:Eh()},n.payload=a;return}a=a.return}}function c1(n,a,o){var c=Fa();o={lane:c,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},bf(n)?Kh(a,o):(o=Gc(n,a,o,c),o!==null&&(Ya(o,n,c),Jh(o,a,c)))}function vf(n,a,o){var c=Fa();ru(n,a,o,c)}function ru(n,a,o,c){var d={lane:c,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(bf(n))Kh(a,d);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=a.lastRenderedReducer,g!==null))try{var w=a.lastRenderedState,A=g(w,o);if(d.hasEagerState=!0,d.eagerState=A,Pn(A,w))return zo(n,a,d,0),Jt===null&&Ar(),!1}catch{}finally{}if(o=Gc(n,a,d,c),o!==null)return Ya(o,n,c),Jh(o,a,c),!0}return!1}function Xh(n,a,o,c){if(c={lane:2,revertLane:Lp(),action:c,hasEagerState:!1,eagerState:null,next:null},bf(n)){if(a)throw Error(l(479))}else a=Gc(n,o,c,2),a!==null&&Ya(a,n,2)}function bf(n){var a=n.alternate;return n===ut||a!==null&&a===ut}function Kh(n,a){ca=Jl=!0;var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}function Jh(n,a,o){if((o&4194048)!==0){var c=a.lanes;c&=n.pendingLanes,o|=c,a.lanes=o,Hi(n,o)}}var xf={readContext:na,use:Ps,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useLayoutEffect:un,useInsertionEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useSyncExternalStore:un,useId:un,useHostTransitionStatus:un,useFormState:un,useActionState:un,useOptimistic:un,useMemoCache:un,useCacheRefresh:un},ep={readContext:na,use:Ps,useCallback:function(n,a){return Sa().memoizedState=[n,a===void 0?null:a],n},useContext:na,useEffect:Ha,useImperativeHandle:function(n,a,o){o=o!=null?o.concat([n]):null,ff(4194308,4,$h.bind(null,a,n),o)},useLayoutEffect:function(n,a){return ff(4194308,4,n,a)},useInsertionEffect:function(n,a){ff(4,2,n,a)},useMemo:function(n,a){var o=Sa();a=a===void 0?null:a;var c=n();if(ci){ba(!0);try{n()}finally{ba(!1)}}return o.memoizedState=[c,a],c},useReducer:function(n,a,o){var c=Sa();if(o!==void 0){var d=o(a);if(ci){ba(!0);try{o(a)}finally{ba(!1)}}}else d=a;return c.memoizedState=c.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},c.queue=n,n=n.dispatch=c1.bind(null,ut,n),[c.memoizedState,n]},useRef:function(n){var a=Sa();return n={current:n},a.memoizedState=n},useState:function(n){n=js(n);var a=n.queue,o=vf.bind(null,ut,a);return a.dispatch=o,[n.memoizedState,o]},useDebugValue:da,useDeferredValue:function(n,a){var o=Sa();return pf(o,n,a)},useTransition:function(){var n=js(!1);return n=Qh.bind(null,ut,n.queue,!0,!1),Sa().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,o){var c=ut,d=Sa();if(St){if(o===void 0)throw Error(l(407));o=o()}else{if(o=a(),Jt===null)throw Error(l(349));(Ct&124)!==0||t1(c,a,o)}d.memoizedState=o;var g={value:o,getSnapshot:a};return d.queue=g,Ha(Uh.bind(null,c,g,n),[n]),c.flags|=2048,Us(9,Xi(),sf.bind(null,c,g,o,a),null),o},useId:function(){var n=Sa(),a=Jt.identifierPrefix;if(St){var o=ii,c=ri;o=(c&~(1<<32-Gn(c)-1)).toString(32)+o,a="«"+a+"R"+o,o=Ho++,0<o&&(a+="H"+o.toString(32)),a+="»"}else o=fa++,a="«"+a+"r"+o.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:Ur,useFormState:uf,useActionState:uf,useOptimistic:function(n){var a=Sa();a.memoizedState=a.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Xh.bind(null,ut,!0,o),o.dispatch=a,[n,a]},useMemoCache:nf,useCacheRefresh:function(){return Sa().memoizedState=u1.bind(null,ut)}},tp={readContext:na,use:Ps,useCallback:di,useContext:na,useEffect:s1,useImperativeHandle:Zh,useInsertionEffect:nu,useLayoutEffect:df,useMemo:hf,useReducer:af,useRef:Vh,useState:function(){return af(fi)},useDebugValue:da,useDeferredValue:function(n,a){var o=rn();return au(o,it.memoizedState,n,a)},useTransition:function(){var n=af(fi)[0],a=rn().memoizedState;return[typeof n=="boolean"?n:eu(n),a]},useSyncExternalStore:of,useId:l1,useHostTransitionStatus:Ur,useFormState:i1,useActionState:i1,useOptimistic:function(n,a){var o=rn();return n1(o,it,n,a)},useMemoCache:nf,useCacheRefresh:hi},Ea={readContext:na,use:Ps,useCallback:di,useContext:na,useEffect:s1,useImperativeHandle:Zh,useInsertionEffect:nu,useLayoutEffect:df,useMemo:hf,useReducer:rf,useRef:Vh,useState:function(){return rf(fi)},useDebugValue:da,useDeferredValue:function(n,a){var o=rn();return it===null?pf(o,n,a):au(o,it.memoizedState,n,a)},useTransition:function(){var n=rf(fi)[0],a=rn().memoizedState;return[typeof n=="boolean"?n:eu(n),a]},useSyncExternalStore:of,useId:l1,useHostTransitionStatus:Ur,useFormState:o1,useActionState:o1,useOptimistic:function(n,a){var o=rn();return it!==null?n1(o,it,n,a):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:nf,useCacheRefresh:hi},ha=null,iu=0;function wf(n){var a=iu;return iu+=1,ha===null&&(ha=[]),Oh(ha,n,a)}function Ki(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function pi(n,a){throw a.$$typeof===T?Error(l(525)):(n=Object.prototype.toString.call(a),Error(l(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function np(n){var a=n._init;return a(n._payload)}function ap(n){function a(V,q){if(n){var X=V.deletions;X===null?(V.deletions=[q],V.flags|=16):X.push(q)}}function o(V,q){if(!n)return null;for(;q!==null;)a(V,q),q=q.sibling;return null}function c(V){for(var q=new Map;V!==null;)V.key!==null?q.set(V.key,V):q.set(V.index,V),V=V.sibling;return q}function d(V,q){return V=rr(V,q),V.index=0,V.sibling=null,V}function g(V,q,X){return V.index=X,n?(X=V.alternate,X!==null?(X=X.index,X<q?(V.flags|=67108866,q):X):(V.flags|=67108866,q)):(V.flags|=1048576,q)}function w(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function A(V,q,X,de){return q===null||q.tag!==6?(q=Ms(X,V.mode,de),q.return=V,q):(q=d(q,X),q.return=V,q)}function L(V,q,X,de){var ze=X.type;return ze===M?ce(V,q,X.props.children,de,X.key):q!==null&&(q.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===we&&np(ze)===q.type)?(q=d(q,X.props),Ki(q,X),q.return=V,q):(q=Vc(X.type,X.key,X.props,null,V.mode,de),Ki(q,X),q.return=V,q)}function J(V,q,X,de){return q===null||q.tag!==4||q.stateNode.containerInfo!==X.containerInfo||q.stateNode.implementation!==X.implementation?(q=ks(X,V.mode,de),q.return=V,q):(q=d(q,X.children||[]),q.return=V,q)}function ce(V,q,X,de,ze){return q===null||q.tag!==7?(q=Po(X,V.mode,de,ze),q.return=V,q):(q=d(q,X),q.return=V,q)}function ge(V,q,X){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Ms(""+q,V.mode,X),q.return=V,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case N:return X=Vc(q.type,q.key,q.props,null,V.mode,X),Ki(X,q),X.return=V,X;case j:return q=ks(q,V.mode,X),q.return=V,q;case we:var de=q._init;return q=de(q._payload),ge(V,q,X)}if(Q(q)||le(q))return q=Po(q,V.mode,X,null),q.return=V,q;if(typeof q.then=="function")return ge(V,wf(q),X);if(q.$$typeof===Y)return ge(V,Wc(V,q),X);pi(V,q)}return null}function W(V,q,X,de){var ze=q!==null?q.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return ze!==null?null:A(V,q,""+X,de);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case N:return X.key===ze?L(V,q,X,de):null;case j:return X.key===ze?J(V,q,X,de):null;case we:return ze=X._init,X=ze(X._payload),W(V,q,X,de)}if(Q(X)||le(X))return ze!==null?null:ce(V,q,X,de,null);if(typeof X.then=="function")return W(V,q,wf(X),de);if(X.$$typeof===Y)return W(V,q,Wc(V,X),de);pi(V,X)}return null}function te(V,q,X,de,ze){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return V=V.get(X)||null,A(q,V,""+de,ze);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case N:return V=V.get(de.key===null?X:de.key)||null,L(q,V,de,ze);case j:return V=V.get(de.key===null?X:de.key)||null,J(q,V,de,ze);case we:var mt=de._init;return de=mt(de._payload),te(V,q,X,de,ze)}if(Q(de)||le(de))return V=V.get(X)||null,ce(q,V,de,ze,null);if(typeof de.then=="function")return te(V,q,X,wf(de),ze);if(de.$$typeof===Y)return te(V,q,X,Wc(q,de),ze);pi(q,de)}return null}function Ke(V,q,X,de){for(var ze=null,mt=null,Ye=q,We=q=0,Nn=null;Ye!==null&&We<X.length;We++){Ye.index>We?(Nn=Ye,Ye=null):Nn=Ye.sibling;var Rt=W(V,Ye,X[We],de);if(Rt===null){Ye===null&&(Ye=Nn);break}n&&Ye&&Rt.alternate===null&&a(V,Ye),q=g(Rt,q,We),mt===null?ze=Rt:mt.sibling=Rt,mt=Rt,Ye=Nn}if(We===X.length)return o(V,Ye),St&&$i(V,We),ze;if(Ye===null){for(;We<X.length;We++)Ye=ge(V,X[We],de),Ye!==null&&(q=g(Ye,q,We),mt===null?ze=Ye:mt.sibling=Ye,mt=Ye);return St&&$i(V,We),ze}for(Ye=c(Ye);We<X.length;We++)Nn=te(Ye,V,We,X[We],de),Nn!==null&&(n&&Nn.alternate!==null&&Ye.delete(Nn.key===null?We:Nn.key),q=g(Nn,q,We),mt===null?ze=Nn:mt.sibling=Nn,mt=Nn);return n&&Ye.forEach(function(vo){return a(V,vo)}),St&&$i(V,We),ze}function Ze(V,q,X,de){if(X==null)throw Error(l(151));for(var ze=null,mt=null,Ye=q,We=q=0,Nn=null,Rt=X.next();Ye!==null&&!Rt.done;We++,Rt=X.next()){Ye.index>We?(Nn=Ye,Ye=null):Nn=Ye.sibling;var vo=W(V,Ye,Rt.value,de);if(vo===null){Ye===null&&(Ye=Nn);break}n&&Ye&&vo.alternate===null&&a(V,Ye),q=g(vo,q,We),mt===null?ze=vo:mt.sibling=vo,mt=vo,Ye=Nn}if(Rt.done)return o(V,Ye),St&&$i(V,We),ze;if(Ye===null){for(;!Rt.done;We++,Rt=X.next())Rt=ge(V,Rt.value,de),Rt!==null&&(q=g(Rt,q,We),mt===null?ze=Rt:mt.sibling=Rt,mt=Rt);return St&&$i(V,We),ze}for(Ye=c(Ye);!Rt.done;We++,Rt=X.next())Rt=te(Ye,V,We,Rt.value,de),Rt!==null&&(n&&Rt.alternate!==null&&Ye.delete(Rt.key===null?We:Rt.key),q=g(Rt,q,We),mt===null?ze=Rt:mt.sibling=Rt,mt=Rt);return n&&Ye.forEach(function(Mx){return a(V,Mx)}),St&&$i(V,We),ze}function Ht(V,q,X,de){if(typeof X=="object"&&X!==null&&X.type===M&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case N:e:{for(var ze=X.key;q!==null;){if(q.key===ze){if(ze=X.type,ze===M){if(q.tag===7){o(V,q.sibling),de=d(q,X.props.children),de.return=V,V=de;break e}}else if(q.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===we&&np(ze)===q.type){o(V,q.sibling),de=d(q,X.props),Ki(de,X),de.return=V,V=de;break e}o(V,q);break}else a(V,q);q=q.sibling}X.type===M?(de=Po(X.props.children,V.mode,de,X.key),de.return=V,V=de):(de=Vc(X.type,X.key,X.props,null,V.mode,de),Ki(de,X),de.return=V,V=de)}return w(V);case j:e:{for(ze=X.key;q!==null;){if(q.key===ze)if(q.tag===4&&q.stateNode.containerInfo===X.containerInfo&&q.stateNode.implementation===X.implementation){o(V,q.sibling),de=d(q,X.children||[]),de.return=V,V=de;break e}else{o(V,q);break}else a(V,q);q=q.sibling}de=ks(X,V.mode,de),de.return=V,V=de}return w(V);case we:return ze=X._init,X=ze(X._payload),Ht(V,q,X,de)}if(Q(X))return Ke(V,q,X,de);if(le(X)){if(ze=le(X),typeof ze!="function")throw Error(l(150));return X=ze.call(X),Ze(V,q,X,de)}if(typeof X.then=="function")return Ht(V,q,wf(X),de);if(X.$$typeof===Y)return Ht(V,q,Wc(V,X),de);pi(V,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,q!==null&&q.tag===6?(o(V,q.sibling),de=d(q,X),de.return=V,V=de):(o(V,q),de=Ms(X,V.mode,de),de.return=V,V=de),w(V)):o(V,q)}return function(V,q,X,de){try{iu=0;var ze=Ht(V,q,X,de);return ha=null,ze}catch(Ye){if(Ye===Zl||Ye===Kc)throw Ye;var mt=$n(29,Ye,null,V.mode);return mt.lanes=de,mt.return=V,mt}finally{}}}var Hs=ap(!0),rp=ap(!1),Qn=$(null),Aa=null;function Ji(n){var a=n.alternate;K(Sn,Sn.current&1),K(Qn,n),Aa===null&&(a===null||jr.current!==null||a.memoizedState!==null)&&(Aa=n)}function ip(n){if(n.tag===22){if(K(Sn,Sn.current),K(Qn,n),Aa===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Aa=n)}}else mi()}function mi(){K(Sn,Sn.current),K(Qn,Qn.current)}function lr(n){ee(Qn),Aa===n&&(Aa=null),ee(Sn)}var Sn=$(0);function Fo(n){for(var a=n;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||ho(o)))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===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function ou(n,a,o,c){a=n.memoizedState,o=o(c,a),o=o==null?a:S({},a,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Bs={enqueueSetState:function(n,a,o){n=n._reactInternals;var c=Fa(),d=li(c);d.payload=a,o!=null&&(d.callback=o),a=Qi(n,d,c),a!==null&&(Ya(a,n,c),Ua(a,n,c))},enqueueReplaceState:function(n,a,o){n=n._reactInternals;var c=Fa(),d=li(c);d.tag=1,d.payload=a,o!=null&&(d.callback=o),a=Qi(n,d,c),a!==null&&(Ya(a,n,c),Ua(a,n,c))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var o=Fa(),c=li(o);c.tag=2,a!=null&&(c.callback=a),a=Qi(n,c,o),a!==null&&(Ya(a,n,o),Ua(a,n,o))}};function f1(n,a,o,c,d,g,w){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,g,w):a.prototype&&a.prototype.isPureReactComponent?!ua(o,c)||!ua(d,g):!0}function op(n,a,o,c){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,c),a.state!==n&&Bs.enqueueReplaceState(a,a.state,null)}function Hr(n,a){var o=a;if("ref"in a){o={};for(var c in a)c!=="ref"&&(o[c]=a[c])}if(n=n.defaultProps){o===a&&(o=S({},o));for(var d in n)o[d]===void 0&&(o[d]=n[d])}return o}var su=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof e=="object"&&typeof e.emit=="function"){e.emit("uncaughtException",n);return}console.error(n)};function _f(n){su(n)}function d1(n){console.error(n)}function sp(n){su(n)}function ur(n,a){try{var o=n.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function lp(n,a,o){try{var c=n.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Sf(n,a,o){return o=li(o),o.tag=3,o.payload={element:null},o.callback=function(){ur(n,a)},o}function h1(n){return n=li(n),n.tag=3,n}function up(n,a,o,c){var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var g=c.value;n.payload=function(){return d(g)},n.callback=function(){lp(a,o,c)}}var w=o.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(n.callback=function(){lp(a,o,c),typeof d!="function"&&(so===null?so=new Set([this]):so.add(this));var A=c.stack;this.componentDidCatch(c.value,{componentStack:A!==null?A:""})})}function Jb(n,a,o,c,d){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=o.alternate,a!==null&&Gl(a,o,d,!0),o=Qn.current,o!==null){switch(o.tag){case 13:return Aa===null?kp():o.alternate===null&&mn===0&&(mn=3),o.flags&=-257,o.flags|=65536,o.lanes=d,c===Th?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([c]):a.add(c),Ip(n,c,d)),!1;case 22:return o.flags|=65536,c===Th?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([c]):o.add(c)),Ip(n,c,d)),!1}throw Error(l(435,o.tag))}return Ip(n,c,d),kp(),!1}if(St)return a=Qn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,c!==Zi&&(n=Error(l(422),{cause:c}),oi(nr(n,o)))):(c!==Zi&&(a=Error(l(423),{cause:c}),oi(nr(a,o))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,c=nr(c,o),d=Sf(n.stateNode,c,d),Xl(n,d),mn!==4&&(mn=2)),!1;var g=Error(l(520),{cause:c});if(g=nr(g,o),pu===null?pu=[g]:pu.push(g),mn!==4&&(mn=2),a===null)return!0;c=nr(c,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,n=d&-d,o.lanes|=n,n=Sf(o.stateNode,c,n),Xl(o,n),!1;case 1:if(a=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(so===null||!so.has(g))))return o.flags|=65536,d&=-d,o.lanes|=d,d=h1(d),up(d,n,o,c),Xl(o,d),!1}o=o.return}while(o!==null);return!1}var p1=Error(l(461)),Kt=!1;function kn(n,a,o,c){a.child=n===null?rp(a,null,o,c):Hs(a,n.child,o,c)}function Ef(n,a,o,c,d){o=o.render;var g=a.ref;if("ref"in c){var w={};for(var A in c)A!=="ref"&&(w[A]=c[A])}else w=c;return Pa(a),c=Lh(n,a,o,w,g,d),A=qo(),n!==null&&!Kt?(tf(n,a,d),Wn(n,a,d)):(St&&A&&Bl(a),a.flags|=1,kn(n,a,c,d),a.child)}function Af(n,a,o,c,d){if(n===null){var g=o.type;return typeof g=="function"&&!ai(g)&&g.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=g,lu(n,a,g,c,d)):(n=Vc(o.type,null,c,a,a.mode,d),n.ref=a.ref,n.return=a,a.child=n)}if(g=n.child,!Xn(n,d)){var w=g.memoizedProps;if(o=o.compare,o=o!==null?o:ua,o(w,c)&&n.ref===a.ref)return Wn(n,a,d)}return a.flags|=1,n=rr(g,c),n.ref=a.ref,n.return=a,a.child=n}function lu(n,a,o,c,d){if(n!==null){var g=n.memoizedProps;if(ua(g,c)&&n.ref===a.ref)if(Kt=!1,a.pendingProps=c=g,Xn(n,d))(n.flags&131072)!==0&&(Kt=!0);else return a.lanes=n.lanes,Wn(n,a,d)}return uu(n,a,o,c,d)}function Yo(n,a,o){var c=a.pendingProps,d=c.children,g=n!==null?n.memoizedState:null;if(c.mode==="hidden"){if((a.flags&128)!==0){if(c=g!==null?g.baseLanes|o:o,n!==null){for(d=a.child=n.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;a.childLanes=g&~c}else a.childLanes=0,a.child=null;return $e(n,a,c,o)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Xc(a,g!==null?g.cachePool:null),g!==null?kh(a,g):Nh(),ip(a);else return a.lanes=a.childLanes=536870912,$e(n,a,g!==null?g.baseLanes|o:o,o)}else g!==null?(Xc(a,g.cachePool),kh(a,g),mi(),a.memoizedState=null):(n!==null&&Xc(a,null),Nh(),mi());return kn(n,a,d,o),a.child}function $e(n,a,o,c){var d=Ch();return d=d===null?null:{parent:Mn._currentValue,pool:d},a.memoizedState={baseLanes:o,cachePool:d},n!==null&&Xc(a,null),Nh(),ip(a),n!==null&&Gl(n,a,c,!0),null}function Go(n,a){var o=a.ref;if(o===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(l(284));(n===null||n.ref!==o)&&(a.flags|=4194816)}}function uu(n,a,o,c,d){return Pa(a),o=Lh(n,a,o,c,void 0,d),c=qo(),n!==null&&!Kt?(tf(n,a,d),Wn(n,a,d)):(St&&c&&Bl(a),a.flags|=1,kn(n,a,o,d),a.child)}function eo(n,a,o,c,d,g){return Pa(a),a.updateQueue=null,o=ef(a,c,o,d),e1(n),c=qo(),n!==null&&!Kt?(tf(n,a,g),Wn(n,a,g)):(St&&c&&Bl(a),a.flags|=1,kn(n,a,o,g),a.child)}function m1(n,a,o,c,d){if(Pa(a),a.stateNode===null){var g=ni,w=o.contextType;typeof w=="object"&&w!==null&&(g=na(w)),g=new o(c,g),a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Bs,a.stateNode=g,g._reactInternals=a,g=a.stateNode,g.props=c,g.state=a.memoizedState,g.refs={},Ls(a),w=o.contextType,g.context=typeof w=="object"&&w!==null?na(w):ni,g.state=a.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(ou(a,o,w,c),g.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(w=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),w!==g.state&&Bs.enqueueReplaceState(g,g.state,null),Kl(a,c,g,d),aa(),g.state=a.memoizedState),typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(n===null){g=a.stateNode;var A=a.memoizedProps,L=Hr(o,A);g.props=L;var J=g.context,ce=o.contextType;w=ni,typeof ce=="object"&&ce!==null&&(w=na(ce));var ge=o.getDerivedStateFromProps;ce=typeof ge=="function"||typeof g.getSnapshotBeforeUpdate=="function",A=a.pendingProps!==A,ce||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(A||J!==w)&&op(a,g,c,w),sr=!1;var W=a.memoizedState;g.state=W,Kl(a,c,g,d),aa(),J=a.memoizedState,A||W!==J||sr?(typeof ge=="function"&&(ou(a,o,ge,c),J=a.memoizedState),(L=sr||f1(a,o,L,c,W,J,w))?(ce||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(a.flags|=4194308)):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=J),g.props=c,g.state=J,g.context=w,c=L):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{g=a.stateNode,Rh(n,a),w=a.memoizedProps,ce=Hr(o,w),g.props=ce,ge=a.pendingProps,W=g.context,J=o.contextType,L=ni,typeof J=="object"&&J!==null&&(L=na(J)),A=o.getDerivedStateFromProps,(J=typeof A=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==ge||W!==L)&&op(a,g,c,L),sr=!1,W=a.memoizedState,g.state=W,Kl(a,c,g,d),aa();var te=a.memoizedState;w!==ge||W!==te||sr||n!==null&&n.dependencies!==null&&Qc(n.dependencies)?(typeof A=="function"&&(ou(a,o,A,c),te=a.memoizedState),(ce=sr||f1(a,o,ce,c,W,te,L)||n!==null&&n.dependencies!==null&&Qc(n.dependencies))?(J||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,te,L),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,te,L)),typeof g.componentDidUpdate=="function"&&(a.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof g.componentDidUpdate!="function"||w===n.memoizedProps&&W===n.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&W===n.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=te),g.props=c,g.state=te,g.context=L,c=ce):(typeof g.componentDidUpdate!="function"||w===n.memoizedProps&&W===n.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&W===n.memoizedState||(a.flags|=1024),c=!1)}return g=c,Go(n,a),c=(a.flags&128)!==0,g||c?(g=a.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:g.render(),a.flags|=1,n!==null&&c?(a.child=Hs(a,n.child,null,d),a.child=Hs(a,null,o,d)):kn(n,a,o,d),a.memoizedState=g.state,n=a.child):n=Wn(n,a,d),n}function Cf(n,a,o,c){return Fl(),a.flags|=256,kn(n,a,o,c),a.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jn(n){return{baseLanes:n,cachePool:or()}}function cp(n,a,o){return n=n!==null?n.childLanes&~o:0,a&&(n|=dr),n}function g1(n,a,o){var c=a.pendingProps,d=!1,g=(a.flags&128)!==0,w;if((w=g)||(w=n!==null&&n.memoizedState===null?!1:(Sn.current&2)!==0),w&&(d=!0,a.flags&=-129),w=(a.flags&32)!==0,a.flags&=-33,n===null){if(St){if(d?Ji(a):mi(),St){var A=Gt,L;if(L=A){e:{for(L=A,A=za;L.nodeType!==8;){if(!A){A=null;break e}if(L=Mr(L.nextSibling),L===null){A=null;break e}}A=L}A!==null?(a.memoizedState={dehydrated:A,treeContext:hn!==null?{id:ri,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},L=$n(18,null,null,0),L.stateNode=A,L.return=a,a.child=L,Zn=a,Gt=null,L=!0):L=!1}L||Uo(a)}if(A=a.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return ho(A)?a.lanes=32:a.lanes=536870912,null;lr(a)}return A=c.children,c=c.fallback,d?(mi(),d=a.mode,A=Rf({mode:"hidden",children:A},d),c=Po(c,d,o,null),A.return=a,c.return=a,A.sibling=c,a.child=A,d=a.child,d.memoizedState=jn(o),d.childLanes=cp(n,w,o),a.memoizedState=Tf,c):(Ji(a),Of(a,A))}if(L=n.memoizedState,L!==null&&(A=L.dehydrated,A!==null)){if(g)a.flags&256?(Ji(a),a.flags&=-257,a=Df(n,a,o)):a.memoizedState!==null?(mi(),a.child=n.child,a.flags|=128,a=null):(mi(),d=c.fallback,A=a.mode,c=Rf({mode:"visible",children:c.children},A),d=Po(d,A,o,null),d.flags|=2,c.return=a,d.return=a,c.sibling=d,a.child=c,Hs(a,n.child,null,o),c=a.child,c.memoizedState=jn(o),c.childLanes=cp(n,w,o),a.memoizedState=Tf,a=d);else if(Ji(a),ho(A)){if(w=A.nextSibling&&A.nextSibling.dataset,w)var J=w.dgst;w=J,c=Error(l(419)),c.stack="",c.digest=w,oi({value:c,source:null,stack:null}),a=Df(n,a,o)}else if(Kt||Gl(n,a,o,!1),w=(o&n.childLanes)!==0,Kt||w){if(w=Jt,w!==null&&(c=o&-o,c=(c&42)!==0?1:Ro(c),c=(c&(w.suspendedLanes|o))!==0?0:c,c!==0&&c!==L.retryLane))throw L.retryLane=c,ti(n,c),Ya(w,n,c),p1;A.data==="$?"||kp(),a=Df(n,a,o)}else A.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=L.treeContext,Gt=Mr(A.nextSibling),Zn=a,St=!0,Cr=null,za=!1,n!==null&&(ir[kt++]=ri,ir[kt++]=ii,ir[kt++]=hn,ri=n.id,ii=n.overflow,hn=a),a=Of(a,c.children),a.flags|=4096);return a}return d?(mi(),d=c.fallback,A=a.mode,L=n.child,J=L.sibling,c=rr(L,{mode:"hidden",children:c.children}),c.subtreeFlags=L.subtreeFlags&65011712,J!==null?d=rr(J,d):(d=Po(d,A,o,null),d.flags|=2),d.return=a,c.return=a,c.sibling=d,a.child=c,c=d,d=a.child,A=n.child.memoizedState,A===null?A=jn(o):(L=A.cachePool,L!==null?(J=Mn._currentValue,L=L.parent!==J?{parent:J,pool:J}:L):L=or(),A={baseLanes:A.baseLanes|o,cachePool:L}),d.memoizedState=A,d.childLanes=cp(n,w,o),a.memoizedState=Tf,c):(Ji(a),o=n.child,n=o.sibling,o=rr(o,{mode:"visible",children:c.children}),o.return=a,o.sibling=null,n!==null&&(w=a.deletions,w===null?(a.deletions=[n],a.flags|=16):w.push(n)),a.child=o,a.memoizedState=null,o)}function Of(n,a){return a=Rf({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Rf(n,a){return n=$n(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Df(n,a,o){return Hs(a,n.child,null,o),n=Of(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function y1(n,a,o){n.lanes|=a;var c=n.alternate;c!==null&&(c.lanes|=a),pt(n.return,a,o)}function fp(n,a,o,c,d){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:d}:(g.isBackwards=a,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=o,g.tailMode=d)}function v1(n,a,o){var c=a.pendingProps,d=c.revealOrder,g=c.tail;if(kn(n,a,c.children,o),c=Sn.current,(c&2)!==0)c=c&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&y1(n,o,a);else if(n.tag===19)y1(n,o,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}switch(K(Sn,c),d){case"forwards":for(o=a.child,d=null;o!==null;)n=o.alternate,n!==null&&Fo(n)===null&&(d=o),o=o.sibling;o=d,o===null?(d=a.child,a.child=null):(d=o.sibling,o.sibling=null),fp(a,!1,d,o,g);break;case"backwards":for(o=null,d=a.child,a.child=null;d!==null;){if(n=d.alternate,n!==null&&Fo(n)===null){a.child=d;break}n=d.sibling,d.sibling=o,o=d,d=n}fp(a,!0,o,null,g);break;case"together":fp(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Wn(n,a,o){if(n!==null&&(a.dependencies=n.dependencies),oo|=a.lanes,(o&a.childLanes)===0)if(n!==null){if(Gl(n,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(l(153));if(a.child!==null){for(n=a.child,o=rr(n,n.pendingProps),a.child=o,o.return=a;n.sibling!==null;)n=n.sibling,o=o.sibling=rr(n,n.pendingProps),o.return=a;o.sibling=null}return a.child}function Xn(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Qc(n)))}function dp(n,a,o){switch(a.tag){case 3:qe(a,a.stateNode.containerInfo),Tr(a,Mn,n.memoizedState.cache),Fl();break;case 27:case 5:at(a);break;case 4:qe(a,a.stateNode.containerInfo);break;case 10:Tr(a,a.type,a.memoizedProps.value);break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Ji(a),a.flags|=128,null):(o&a.child.childLanes)!==0?g1(n,a,o):(Ji(a),n=Wn(n,a,o),n!==null?n.sibling:null);Ji(a);break;case 19:var d=(n.flags&128)!==0;if(c=(o&a.childLanes)!==0,c||(Gl(n,a,o,!1),c=(o&a.childLanes)!==0),d){if(c)return v1(n,a,o);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),K(Sn,Sn.current),c)break;return null;case 22:case 23:return a.lanes=0,Yo(n,a,o);case 24:Tr(a,Mn,n.memoizedState.cache)}return Wn(n,a,o)}function b1(n,a,o){if(n!==null)if(n.memoizedProps!==a.pendingProps)Kt=!0;else{if(!Xn(n,o)&&(a.flags&128)===0)return Kt=!1,dp(n,a,o);Kt=(n.flags&131072)!==0}else Kt=!1,St&&(a.flags&1048576)!==0&&Gg(a,$c,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var c=a.elementType,d=c._init;if(c=d(c._payload),a.type=c,typeof c=="function")ai(c)?(n=Hr(c,n),a.tag=1,a=m1(null,a,c,n,o)):(a.tag=0,a=uu(null,a,c,n,o));else{if(c!=null){if(d=c.$$typeof,d===ne){a.tag=11,a=Ef(null,a,c,n,o);break e}else if(d===ie){a.tag=14,a=Af(null,a,c,n,o);break e}}throw a=he(c)||c,Error(l(306,a,""))}}return a;case 0:return uu(n,a,a.type,a.pendingProps,o);case 1:return c=a.type,d=Hr(c,a.pendingProps),m1(n,a,c,d,o);case 3:e:{if(qe(a,a.stateNode.containerInfo),n===null)throw Error(l(387));c=a.pendingProps;var g=a.memoizedState;d=g.element,Rh(n,a),Kl(a,c,null,o);var w=a.memoizedState;if(c=w.cache,Tr(a,Mn,c),c!==g.cache&&Sh(a,[Mn],o,!0),aa(),c=w.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:w.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=Cf(n,a,c,o);break e}else if(c!==d){d=nr(Error(l(424)),a),oi(d),a=Cf(n,a,c,o);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Gt=Mr(n.firstChild),Zn=a,St=!0,Cr=null,za=!0,o=rp(a,null,c,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Fl(),c===d){a=Wn(n,a,o);break e}kn(n,a,c,o)}a=a.child}return a;case 26:return Go(n,a),n===null?(o=m0(a.type,null,a.pendingProps,null))?a.memoizedState=o:St||(o=a.type,n=a.pendingProps,c=tn(be.current).createElement(o),c[Ln]=a,c[Vn]=n,ea(c,o,n),zn(c),a.stateNode=c):a.memoizedState=m0(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return at(a),n===null&&St&&(c=a.stateNode=f0(a.type,a.pendingProps,be.current),Zn=a,za=!0,d=Gt,Fr(a.type)?(qp=d,Gt=Mr(c.firstChild)):Gt=d),kn(n,a,a.pendingProps.children,o),Go(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&St&&((d=c=Gt)&&(c=Zf(c,a.type,a.pendingProps,za),c!==null?(a.stateNode=c,Zn=a,Gt=Mr(c.firstChild),za=!1,d=!0):d=!1),d||Uo(a)),at(a),d=a.type,g=a.pendingProps,w=n!==null?n.memoizedProps:null,c=g.children,Hp(d,g)?c=null:w!==null&&Hp(d,w)&&(a.flags|=32),a.memoizedState!==null&&(d=Lh(n,a,Kb,null,null,o),ku._currentValue=d),Go(n,a),kn(n,a,c,o),a.child;case 6:return n===null&&St&&((n=o=Gt)&&(o=Va(o,a.pendingProps,za),o!==null?(a.stateNode=o,Zn=a,Gt=null,n=!0):n=!1),n||Uo(a)),null;case 13:return g1(n,a,o);case 4:return qe(a,a.stateNode.containerInfo),c=a.pendingProps,n===null?a.child=Hs(a,null,c,o):kn(n,a,c,o),a.child;case 11:return Ef(n,a,a.type,a.pendingProps,o);case 7:return kn(n,a,a.pendingProps,o),a.child;case 8:return kn(n,a,a.pendingProps.children,o),a.child;case 12:return kn(n,a,a.pendingProps.children,o),a.child;case 10:return c=a.pendingProps,Tr(a,a.type,c.value),kn(n,a,c.children,o),a.child;case 9:return d=a.type._context,c=a.pendingProps.children,Pa(a),d=na(d),c=c(d),a.flags|=1,kn(n,a,c,o),a.child;case 14:return Af(n,a,a.type,a.pendingProps,o);case 15:return lu(n,a,a.type,a.pendingProps,o);case 19:return v1(n,a,o);case 31:return c=a.pendingProps,o=a.mode,c={mode:c.mode,children:c.children},n===null?(o=Rf(c,o),o.ref=a.ref,a.child=o,o.return=a,a=o):(o=rr(n.child,c),o.ref=a.ref,a.child=o,o.return=a,a=o),a;case 22:return Yo(n,a,o);case 24:return Pa(a),c=na(Mn),n===null?(d=Ch(),d===null&&(d=Jt,g=Eh(),d.pooledCache=g,g.refCount++,g!==null&&(d.pooledCacheLanes|=o),d=g),a.memoizedState={parent:c,cache:d},Ls(a),Tr(a,Mn,d)):((n.lanes&o)!==0&&(Rh(n,a),Kl(a,null,null,o),aa()),d=n.memoizedState,g=a.memoizedState,d.parent!==c?(d={parent:c,cache:c},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),Tr(a,Mn,c)):(c=g.cache,Tr(a,Mn,c),c!==d.cache&&Sh(a,[Mn],o,!0))),kn(n,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(l(156,a.tag))}function Dr(n){n.flags|=4}function x1(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!pa(a)){if(a=Qn.current,a!==null&&((Ct&4194048)===Ct?Aa!==null:(Ct&62914560)!==Ct&&(Ct&536870912)===0||a!==Aa))throw Wl=Th,Xg;n.flags|=8192}}function Mf(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?xe():536870912,n.lanes|=a,Gs|=a)}function gi(n,a){if(!St)switch(n.tailMode){case"hidden":a=n.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function on(n){var a=n.alternate!==null&&n.alternate.child===n.child,o=0,c=0;if(a)for(var d=n.child;d!==null;)o|=d.lanes|d.childLanes,c|=d.subtreeFlags&65011712,c|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)o|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=c,n.childLanes=o,a}function w1(n,a,o){var c=a.pendingProps;switch(jo(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return on(a),null;case 1:return on(a),null;case 3:return o=a.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),_n(Mn),ft(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(ql(a)?Dr(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Yl())),on(a),null;case 26:return o=a.memoizedState,n===null?(Dr(a),o!==null?(on(a),x1(a,o)):(on(a),a.flags&=-16777217)):o?o!==n.memoizedState?(Dr(a),on(a),x1(a,o)):(on(a),a.flags&=-16777217):(n.memoizedProps!==c&&Dr(a),on(a),a.flags&=-16777217),null;case 27:Dt(a),o=be.current;var d=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==c&&Dr(a);else{if(!c){if(a.stateNode===null)throw Error(l(166));return on(a),null}n=me.current,ql(a)?Vg(a):(n=f0(d,c,o),a.stateNode=n,Dr(a))}return on(a),null;case 5:if(Dt(a),o=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&Dr(a);else{if(!c){if(a.stateNode===null)throw Error(l(166));return on(a),null}if(n=me.current,ql(a))Vg(a);else{switch(d=tn(be.current),n){case 1:n=d.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:n=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":n=d.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":n=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":n=d.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof c.is=="string"?d.createElement("select",{is:c.is}):d.createElement("select"),c.multiple?n.multiple=!0:c.size&&(n.size=c.size);break;default:n=typeof c.is=="string"?d.createElement(o,{is:c.is}):d.createElement(o)}}n[Ln]=a,n[Vn]=c;e:for(d=a.child;d!==null;){if(d.tag===5||d.tag===6)n.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break e;for(;d.sibling===null;){if(d.return===null||d.return===a)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}a.stateNode=n;e:switch(ea(n,o,c),o){case"button":case"input":case"select":case"textarea":n=!!c.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Dr(a)}}return on(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==c&&Dr(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(l(166));if(n=be.current,ql(a)){if(n=a.stateNode,o=a.memoizedProps,c=null,d=Zn,d!==null)switch(d.tag){case 27:case 5:c=d.memoizedProps}n[Ln]=a,n=!!(n.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||i0(n.nodeValue,o)),n||Uo(a)}else n=tn(n).createTextNode(c),n[Ln]=a,a.stateNode=n}return on(a),null;case 13:if(c=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=ql(a),c!==null&&c.dehydrated!==null){if(n===null){if(!d)throw Error(l(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(l(317));d[Ln]=a}else Fl(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;on(a),d=!1}else d=Yl(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(lr(a),a):(lr(a),null)}if(lr(a),(a.flags&128)!==0)return a.lanes=o,a;if(o=c!==null,n=n!==null&&n.memoizedState!==null,o){c=a.child,d=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(d=c.alternate.memoizedState.cachePool.pool);var g=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==d&&(c.flags|=2048)}return o!==n&&o&&(a.child.flags|=8192),Mf(a,a.updateQueue),on(a),null;case 4:return ft(),n===null&&jp(a.stateNode.containerInfo),on(a),null;case 10:return _n(a.type),on(a),null;case 19:if(ee(Sn),d=a.memoizedState,d===null)return on(a),null;if(c=(a.flags&128)!==0,g=d.rendering,g===null)if(c)gi(d,!1);else{if(mn!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(g=Fo(n),g!==null){for(a.flags|=128,gi(d,!1),n=g.updateQueue,a.updateQueue=n,Mf(a,n),a.subtreeFlags=0,n=o,o=a.child;o!==null;)Yg(o,n),o=o.sibling;return K(Sn,Sn.current&1|2),a.child}n=n.sibling}d.tail!==null&&dn()>gu&&(a.flags|=128,c=!0,gi(d,!1),a.lanes=4194304)}else{if(!c)if(n=Fo(g),n!==null){if(a.flags|=128,c=!0,n=n.updateQueue,a.updateQueue=n,Mf(a,n),gi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!St)return on(a),null}else 2*dn()-d.renderingStartTime>gu&&o!==536870912&&(a.flags|=128,c=!0,gi(d,!1),a.lanes=4194304);d.isBackwards?(g.sibling=a.child,a.child=g):(n=d.last,n!==null?n.sibling=g:a.child=g,d.last=g)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=dn(),a.sibling=null,n=Sn.current,K(Sn,c?n&1|2:n&1),a):(on(a),null);case 22:case 23:return lr(a),zs(),c=a.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(o&536870912)!==0&&(a.flags&128)===0&&(on(a),a.subtreeFlags&6&&(a.flags|=8192)):on(a),o=a.updateQueue,o!==null&&Mf(a,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048),n!==null&&ee(ja),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),_n(Mn),on(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function ex(n,a){switch(jo(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return _n(Mn),ft(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Dt(a),null;case 13:if(lr(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(l(340));Fl()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return ee(Sn),null;case 4:return ft(),null;case 10:return _n(a.type),null;case 22:case 23:return lr(a),zs(),n!==null&&ee(ja),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return _n(Mn),null;case 25:return null;default:return null}}function _1(n,a){switch(jo(a),a.tag){case 3:_n(Mn),ft();break;case 26:case 27:case 5:Dt(a);break;case 4:ft();break;case 13:lr(a);break;case 19:ee(Sn);break;case 10:_n(a.type);break;case 22:case 23:lr(a),zs(),n!==null&&ee(ja);break;case 24:_n(Mn)}}function cu(n,a){try{var o=a.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var d=c.next;o=d;do{if((o.tag&n)===n){c=void 0;var g=o.create,w=o.inst;c=g(),w.destroy=c}o=o.next}while(o!==d)}}catch(A){$t(a,a.return,A)}}function to(n,a,o){try{var c=a.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var g=d.next;c=g;do{if((c.tag&n)===n){var w=c.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,d=a;var L=o,J=A;try{J()}catch(ce){$t(d,L,ce)}}}c=c.next}while(c!==g)}}catch(ce){$t(a,a.return,ce)}}function hp(n){var a=n.updateQueue;if(a!==null){var o=n.stateNode;try{Mh(a,o)}catch(c){$t(n,n.return,c)}}}function pp(n,a,o){o.props=Hr(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(c){$t(n,a,c)}}function fu(n,a){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof o=="function"?n.refCleanup=o(c):o.current=c}}catch(d){$t(n,a,d)}}function cr(n,a){var o=n.ref,c=n.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(d){$t(n,a,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(d){$t(n,a,d)}else o.current=null}function mp(n){var a=n.type,o=n.memoizedProps,c=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(d){$t(n,n.return,d)}}function Vo(n,a,o){try{var c=n.stateNode;bi(c,n.type,o,a),c[Vn]=a}catch(d){$t(n,n.return,d)}}function kf(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Fr(n.type)||n.tag===4}function Nf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||kf(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Fr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function If(n,a,o){var c=n.tag;if(c===5||c===6)n=n.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(n),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Gf));else if(c!==4&&(c===27&&Fr(n.type)&&(o=n.stateNode,a=null),n=n.child,n!==null))for(If(n,a,o),n=n.sibling;n!==null;)If(n,a,o),n=n.sibling}function $o(n,a,o){var c=n.tag;if(c===5||c===6)n=n.stateNode,a?o.insertBefore(n,a):o.appendChild(n);else if(c!==4&&(c===27&&Fr(n.type)&&(o=n.stateNode),n=n.child,n!==null))for($o(n,a,o),n=n.sibling;n!==null;)$o(n,a,o),n=n.sibling}function gp(n){var a=n.stateNode,o=n.memoizedProps;try{for(var c=n.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);ea(a,c,o),a[Ln]=n,a[Vn]=o}catch(g){$t(n,n.return,g)}}var Un=!1,Vt=!1,yp=!1,vp=typeof WeakSet=="function"?WeakSet:Set,Hn=null;function tx(n,a){if(n=n.containerInfo,Vf=Jf,n=Bg(n),xh(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var d=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var w=0,A=-1,L=-1,J=0,ce=0,ge=n,W=null;t:for(;;){for(var te;ge!==o||d!==0&&ge.nodeType!==3||(A=w+d),ge!==g||c!==0&&ge.nodeType!==3||(L=w+c),ge.nodeType===3&&(w+=ge.nodeValue.length),(te=ge.firstChild)!==null;)W=ge,ge=te;for(;;){if(ge===n)break t;if(W===o&&++J===d&&(A=w),W===g&&++ce===c&&(L=w),(te=ge.nextSibling)!==null)break;ge=W,W=ge.parentNode}ge=te}o=A===-1||L===-1?null:{start:A,end:L}}else o=null}o=o||{start:0,end:0}}else o=null;for(Ks={focusedElem:n,selectionRange:o},Jf=!1,Hn=a;Hn!==null;)if(a=Hn,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,Hn=n;else for(;Hn!==null;){switch(a=Hn,g=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,o=a,d=g.memoizedProps,g=g.memoizedState,c=o.stateNode;try{var Ke=Hr(o.type,d,o.elementType===o.type);n=c.getSnapshotBeforeUpdate(Ke,g),c.__reactInternalSnapshotBeforeUpdate=n}catch(Ze){$t(o,o.return,Ze)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,o=n.nodeType,o===9)$f(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":$f(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(l(163))}if(n=a.sibling,n!==null){n.return=a.return,Hn=n;break}Hn=a.return}}function S1(n,a,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:no(n,o),c&4&&cu(5,o);break;case 1:if(no(n,o),c&4)if(n=o.stateNode,a===null)try{n.componentDidMount()}catch(w){$t(o,o.return,w)}else{var d=Hr(o.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(d,a,n.__reactInternalSnapshotBeforeUpdate)}catch(w){$t(o,o.return,w)}}c&64&&hp(o),c&512&&fu(o,o.return);break;case 3:if(no(n,o),c&64&&(n=o.updateQueue,n!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{Mh(n,a)}catch(w){$t(o,o.return,w)}}break;case 27:a===null&&c&4&&gp(o);case 26:case 5:no(n,o),a===null&&c&4&&mp(o),c&512&&fu(o,o.return);break;case 12:no(n,o);break;case 13:no(n,o),c&4&&C1(n,o),c&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=sx.bind(null,o),mx(n,o))));break;case 22:if(c=o.memoizedState!==null||Un,!c){a=a!==null&&a.memoizedState!==null||Vt,d=Un;var g=Vt;Un=c,(Vt=a)&&!g?ro(n,o,(o.subtreeFlags&8772)!==0):no(n,o),Un=d,Vt=g}break;case 30:break;default:no(n,o)}}function E1(n){var a=n.alternate;a!==null&&(n.alternate=null,E1(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Xd(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var sn=null,Ca=!1;function yi(n,a,o){for(o=o.child;o!==null;)A1(n,a,o),o=o.sibling}function A1(n,a,o){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Da,o)}catch{}switch(o.tag){case 26:Vt||cr(o,a),yi(n,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Vt||cr(o,a);var c=sn,d=Ca;Fr(o.type)&&(sn=o.stateNode,Ca=!1),yi(n,a,o),Js(o.stateNode),sn=c,Ca=d;break;case 5:Vt||cr(o,a);case 6:if(c=sn,d=Ca,sn=null,yi(n,a,o),sn=c,Ca=d,sn!==null)if(Ca)try{(sn.nodeType===9?sn.body:sn.nodeName==="HTML"?sn.ownerDocument.body:sn).removeChild(o.stateNode)}catch(g){$t(o,a,g)}else try{sn.removeChild(o.stateNode)}catch(g){$t(o,a,g)}break;case 18:sn!==null&&(Ca?(n=sn,u0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),zu(n)):u0(sn,o.stateNode));break;case 4:c=sn,d=Ca,sn=o.stateNode.containerInfo,Ca=!0,yi(n,a,o),sn=c,Ca=d;break;case 0:case 11:case 14:case 15:Vt||to(2,o,a),Vt||to(4,o,a),yi(n,a,o);break;case 1:Vt||(cr(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"&&pp(o,a,c)),yi(n,a,o);break;case 21:yi(n,a,o);break;case 22:Vt=(c=Vt)||o.memoizedState!==null,yi(n,a,o),Vt=c;break;default:yi(n,a,o)}}function C1(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{zu(n)}catch(o){$t(a,a.return,o)}}function nx(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new vp),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new vp),a;default:throw Error(l(435,n.tag))}}function bp(n,a){var o=nx(n);a.forEach(function(c){var d=Q1.bind(null,n,c);o.has(c)||(o.add(c),c.then(d,d))})}function Ta(n,a){var o=a.deletions;if(o!==null)for(var c=0;c<o.length;c++){var d=o[c],g=n,w=a,A=w;e:for(;A!==null;){switch(A.tag){case 27:if(Fr(A.type)){sn=A.stateNode,Ca=!1;break e}break;case 5:sn=A.stateNode,Ca=!1;break e;case 3:case 4:sn=A.stateNode.containerInfo,Ca=!0;break e}A=A.return}if(sn===null)throw Error(l(160));A1(g,w,d),sn=null,Ca=!1,g=d.alternate,g!==null&&(g.return=null),d.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)xp(a,n),a=a.sibling}var fr=null;function xp(n,a){var o=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Ta(a,n),Ba(n),c&4&&(to(3,n,n.return),cu(3,n),to(5,n,n.return));break;case 1:Ta(a,n),Ba(n),c&512&&(Vt||o===null||cr(o,o.return)),c&64&&Un&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var d=fr;if(Ta(a,n),Ba(n),c&512&&(Vt||o===null||cr(o,o.return)),c&4){var g=o!==null?o.memoizedState:null;if(c=n.memoizedState,o===null)if(c===null)if(n.stateNode===null){e:{c=n.type,o=n.memoizedProps,d=d.ownerDocument||d;t:switch(c){case"title":g=d.getElementsByTagName("title")[0],(!g||g[El]||g[Ln]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=d.createElement(c),d.head.insertBefore(g,d.querySelector("head > title"))),ea(g,c,o),g[Ln]=n,zn(g),c=g;break e;case"link":var w=v0("link","href",d).get(c+(o.href||""));if(w){for(var A=0;A<w.length;A++)if(g=w[A],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){w.splice(A,1);break t}}g=d.createElement(c),ea(g,c,o),d.head.appendChild(g);break;case"meta":if(w=v0("meta","content",d).get(c+(o.content||""))){for(A=0;A<w.length;A++)if(g=w[A],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){w.splice(A,1);break t}}g=d.createElement(c),ea(g,c,o),d.head.appendChild(g);break;default:throw Error(l(468,c))}g[Ln]=n,zn(g),c=g}n.stateNode=c}else b0(d,n.type,n.stateNode);else n.stateNode=y0(d,c,n.memoizedProps);else g!==c?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,c===null?b0(d,n.type,n.stateNode):y0(d,c,n.memoizedProps)):c===null&&n.stateNode!==null&&Vo(n,n.memoizedProps,o.memoizedProps)}break;case 27:Ta(a,n),Ba(n),c&512&&(Vt||o===null||cr(o,o.return)),o!==null&&c&4&&Vo(n,n.memoizedProps,o.memoizedProps);break;case 5:if(Ta(a,n),Ba(n),c&512&&(Vt||o===null||cr(o,o.return)),n.flags&32){d=n.stateNode;try{_r(d,"")}catch(te){$t(n,n.return,te)}}c&4&&n.stateNode!=null&&(d=n.memoizedProps,Vo(n,d,o!==null?o.memoizedProps:d)),c&1024&&(yp=!0);break;case 6:if(Ta(a,n),Ba(n),c&4){if(n.stateNode===null)throw Error(l(162));c=n.memoizedProps,o=n.stateNode;try{o.nodeValue=c}catch(te){$t(n,n.return,te)}}break;case 3:if(Wf=null,d=fr,fr=Tu(a.containerInfo),Ta(a,n),fr=d,Ba(n),c&4&&o!==null&&o.memoizedState.isDehydrated)try{zu(a.containerInfo)}catch(te){$t(n,n.return,te)}yp&&(yp=!1,T1(n));break;case 4:c=fr,fr=Tu(n.stateNode.containerInfo),Ta(a,n),Ba(n),fr=c;break;case 12:Ta(a,n),Ba(n);break;case 13:Ta(a,n),Ba(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(mu=dn()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,bp(n,c)));break;case 22:d=n.memoizedState!==null;var L=o!==null&&o.memoizedState!==null,J=Un,ce=Vt;if(Un=J||d,Vt=ce||L,Ta(a,n),Vt=ce,Un=J,Ba(n),c&8192)e:for(a=n.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(o===null||L||Un||Vt||ao(n)),o=null,a=n;;){if(a.tag===5||a.tag===26){if(o===null){L=o=a;try{if(g=L.stateNode,d)w=g.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{A=L.stateNode;var ge=L.memoizedProps.style,W=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;A.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(te){$t(L,L.return,te)}}}else if(a.tag===6){if(o===null){L=a;try{L.stateNode.nodeValue=d?"":L.memoizedProps}catch(te){$t(L,L.return,te)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=n.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,bp(n,o))));break;case 19:Ta(a,n),Ba(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,bp(n,c)));break;case 30:break;case 21:break;default:Ta(a,n),Ba(n)}}function Ba(n){var a=n.flags;if(a&2){try{for(var o,c=n.return;c!==null;){if(kf(c)){o=c;break}c=c.return}if(o==null)throw Error(l(160));switch(o.tag){case 27:var d=o.stateNode,g=Nf(n);$o(n,g,d);break;case 5:var w=o.stateNode;o.flags&32&&(_r(w,""),o.flags&=-33);var A=Nf(n);$o(n,A,w);break;case 3:case 4:var L=o.stateNode.containerInfo,J=Nf(n);If(n,J,L);break;default:throw Error(l(161))}}catch(ce){$t(n,n.return,ce)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function T1(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;T1(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function no(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)S1(n,a.alternate,a),a=a.sibling}function ao(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:to(4,a,a.return),ao(a);break;case 1:cr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&pp(a,a.return,o),ao(a);break;case 27:Js(a.stateNode);case 26:case 5:cr(a,a.return),ao(a);break;case 22:a.memoizedState===null&&ao(a);break;case 30:ao(a);break;default:ao(a)}n=n.sibling}}function ro(n,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,d=n,g=a,w=g.flags;switch(g.tag){case 0:case 11:case 15:ro(d,g,o),cu(4,g);break;case 1:if(ro(d,g,o),c=g,d=c.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(J){$t(c,c.return,J)}if(c=g,d=c.updateQueue,d!==null){var A=c.stateNode;try{var L=d.shared.hiddenCallbacks;if(L!==null)for(d.shared.hiddenCallbacks=null,d=0;d<L.length;d++)Dh(L[d],A)}catch(J){$t(c,c.return,J)}}o&&w&64&&hp(g),fu(g,g.return);break;case 27:gp(g);case 26:case 5:ro(d,g,o),o&&c===null&&w&4&&mp(g),fu(g,g.return);break;case 12:ro(d,g,o);break;case 13:ro(d,g,o),o&&w&4&&C1(d,g);break;case 22:g.memoizedState===null&&ro(d,g,o),fu(g,g.return);break;case 30:break;default:ro(d,g,o)}a=a.sibling}}function wp(n,a){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&Vl(o))}function _p(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Vl(n))}function Br(n,a,o,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)O1(n,a,o,c),a=a.sibling}function O1(n,a,o,c){var d=a.flags;switch(a.tag){case 0:case 11:case 15:Br(n,a,o,c),d&2048&&cu(9,a);break;case 1:Br(n,a,o,c);break;case 3:Br(n,a,o,c),d&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Vl(n)));break;case 12:if(d&2048){Br(n,a,o,c),n=a.stateNode;try{var g=a.memoizedProps,w=g.id,A=g.onPostCommit;typeof A=="function"&&A(w,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(L){$t(a,a.return,L)}}else Br(n,a,o,c);break;case 13:Br(n,a,o,c);break;case 23:break;case 22:g=a.stateNode,w=a.alternate,a.memoizedState!==null?g._visibility&2?Br(n,a,o,c):ra(n,a):g._visibility&2?Br(n,a,o,c):(g._visibility|=2,qs(n,a,o,c,(a.subtreeFlags&10256)!==0)),d&2048&&wp(w,a);break;case 24:Br(n,a,o,c),d&2048&&_p(a.alternate,a);break;default:Br(n,a,o,c)}}function qs(n,a,o,c,d){for(d=d&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var g=n,w=a,A=o,L=c,J=w.flags;switch(w.tag){case 0:case 11:case 15:qs(g,w,A,L,d),cu(8,w);break;case 23:break;case 22:var ce=w.stateNode;w.memoizedState!==null?ce._visibility&2?qs(g,w,A,L,d):ra(g,w):(ce._visibility|=2,qs(g,w,A,L,d)),d&&J&2048&&wp(w.alternate,w);break;case 24:qs(g,w,A,L,d),d&&J&2048&&_p(w.alternate,w);break;default:qs(g,w,A,L,d)}a=a.sibling}}function ra(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=n,c=a,d=c.flags;switch(c.tag){case 22:ra(o,c),d&2048&&wp(c.alternate,c);break;case 24:ra(o,c),d&2048&&_p(c.alternate,c);break;default:ra(o,c)}a=a.sibling}}var du=8192;function Fs(n){if(n.subtreeFlags&du)for(n=n.child;n!==null;)R1(n),n=n.sibling}function R1(n){switch(n.tag){case 26:Fs(n),n.flags&du&&n.memoizedState!==null&&Ex(fr,n.memoizedState,n.memoizedProps);break;case 5:Fs(n);break;case 3:case 4:var a=fr;fr=Tu(n.stateNode.containerInfo),Fs(n),fr=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=du,du=16777216,Fs(n),du=a):Fs(n));break;default:Fs(n)}}function Sp(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function hu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];Hn=c,M1(c,n)}Sp(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)D1(n),n=n.sibling}function D1(n){switch(n.tag){case 0:case 11:case 15:hu(n),n.flags&2048&&to(9,n,n.return);break;case 3:hu(n);break;case 12:hu(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Lf(n)):hu(n);break;default:hu(n)}}function Lf(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];Hn=c,M1(c,n)}Sp(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:to(8,a,a.return),Lf(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,Lf(a));break;default:Lf(a)}n=n.sibling}}function M1(n,a){for(;Hn!==null;){var o=Hn;switch(o.tag){case 0:case 11:case 15:to(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Vl(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Hn=c;else e:for(o=n;Hn!==null;){c=Hn;var d=c.sibling,g=c.return;if(E1(c),c===o){Hn=null;break e}if(d!==null){d.return=g,Hn=d;break e}Hn=g}}}var Ep={getCacheForType:function(n){var a=na(Mn),o=a.data.get(n);return o===void 0&&(o=n(),a.data.set(n,o)),o}},ax=typeof WeakMap=="function"?WeakMap:Map,Lt=0,Jt=null,xt=null,Ct=0,zt=0,qa=null,io=!1,Ys=!1,Ap=!1,vi=0,mn=0,oo=0,Zo=0,Cp=0,dr=0,Gs=0,pu=null,Oa=null,Tp=!1,mu=0,gu=1/0,zf=null,so=null,Kn=0,lo=null,Vs=null,$s=0,Op=0,Rp=null,Dp=null,yu=0,Zs=null;function Fa(){if((Lt&2)!==0&&Ct!==0)return Ct&-Ct;if(U.T!==null){var n=_a;return n!==0?n:Lp()}return Sl()}function k1(){dr===0&&(dr=(Ct&536870912)===0||St?wc():536870912);var n=Qn.current;return n!==null&&(n.flags|=32),dr}function Ya(n,a,o){(n===Jt&&(zt===2||zt===9)||n.cancelPendingCommit!==null)&&(Qs(n,0),uo(n,Ct,dr,!1)),bt(n,o),((Lt&2)===0||n!==Jt)&&(n===Jt&&((Lt&2)===0&&(Zo|=o),mn===4&&uo(n,Ct,dr,!1)),qr(n))}function N1(n,a,o){if((Lt&6)!==0)throw Error(l(327));var c=!o&&(a&124)===0&&(a&n.expiredLanes)===0||Ui(n,a),d=c?j1(n,a):Np(n,a,!0),g=c;do{if(d===0){Ys&&!c&&uo(n,a,0,!1);break}else{if(o=n.current.alternate,g&&!rx(o)){d=Np(n,a,!1),g=!1;continue}if(d===2){if(g=a,n.errorRecoveryDisabledLanes&g)var w=0;else w=n.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){a=w;e:{var A=n;d=pu;var L=A.current.memoizedState.isDehydrated;if(L&&(Qs(A,w).flags|=256),w=Np(A,w,!1),w!==2){if(Ap&&!L){A.errorRecoveryDisabledLanes|=g,Zo|=g,d=4;break e}g=Oa,Oa=d,g!==null&&(Oa===null?Oa=g:Oa.push.apply(Oa,g))}d=w}if(g=!1,d!==2)continue}}if(d===1){Qs(n,0),uo(n,a,0,!0);break}e:{switch(c=n,g=d,g){case 0:case 1:throw Error(l(345));case 4:if((a&4194048)!==a)break;case 6:uo(c,a,dr,!io);break e;case 2:Oa=null;break;case 3:case 5:break;default:throw Error(l(329))}if((a&62914560)===a&&(d=mu+300-dn(),10<d)){if(uo(c,a,dr,!io),ji(c,0,!0)!==0)break e;c.timeoutHandle=o0(I1.bind(null,c,o,Oa,zf,Tp,a,dr,Zo,Gs,io,g,2,-0,0),d);break e}I1(c,o,Oa,zf,Tp,a,dr,Zo,Gs,io,g,0,-0,0)}}break}while(!0);qr(n)}function I1(n,a,o,c,d,g,w,A,L,J,ce,ge,W,te){if(n.timeoutHandle=-1,ge=a.subtreeFlags,(ge&8192||(ge&16785408)===16785408)&&(Mu={stylesheets:null,count:0,unsuspend:Sx},R1(a),ge=x0(),ge!==null)){n.cancelPendingCommit=ge(q1.bind(null,n,a,g,o,c,d,w,A,L,ce,1,W,te)),uo(n,g,w,!J);return}q1(n,a,g,o,c,d,w,A,L)}function rx(n){for(var a=n;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var d=o[c],g=d.getSnapshot;d=d.value;try{if(!Pn(g(),d))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function uo(n,a,o,c){a&=~Cp,a&=~Zo,n.suspendedLanes|=a,n.pingedLanes&=~a,c&&(n.warmLanes|=a),c=n.expirationTimes;for(var d=a;0<d;){var g=31-Gn(d),w=1<<g;c[g]=-1,d&=~w}o!==0&&Rn(n,o,a)}function Pf(){return(Lt&6)===0?(wu(0),!1):!0}function Mp(){if(xt!==null){if(zt===0)var n=xt.return;else n=xt,wa=E=null,zh(n),ha=null,iu=0,n=xt;for(;n!==null;)_1(n.alternate,n),n=n.return;xt=null}}function Qs(n,a){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,px(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),Mp(),Jt=n,xt=o=rr(n.current,null),Ct=a,zt=0,qa=null,io=!1,Ys=Ui(n,a),Ap=!1,Gs=dr=Cp=Zo=oo=mn=0,Oa=pu=null,Tp=!1,(a&8)!==0&&(a|=a&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=a;0<c;){var d=31-Gn(c),g=1<<d;a|=n[d],c&=~g}return vi=a,Ar(),o}function L1(n,a){ut=null,U.H=xf,a===Zl||a===Kc?(a=Jg(),zt=3):a===Xg?(a=Jg(),zt=4):zt=a===p1?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,qa=a,xt===null&&(mn=1,ur(n,nr(a,n.current)))}function z1(){var n=U.H;return U.H=xf,n===null?xf:n}function P1(){var n=U.A;return U.A=Ep,n}function kp(){mn=4,io||(Ct&4194048)!==Ct&&Qn.current!==null||(Ys=!0),(oo&134217727)===0&&(Zo&134217727)===0||Jt===null||uo(Jt,Ct,dr,!1)}function Np(n,a,o){var c=Lt;Lt|=2;var d=z1(),g=P1();(Jt!==n||Ct!==a)&&(zf=null,Qs(n,a)),a=!1;var w=mn;e:do try{if(zt!==0&&xt!==null){var A=xt,L=qa;switch(zt){case 8:Mp(),w=6;break e;case 3:case 2:case 9:case 6:Qn.current===null&&(a=!0);var J=zt;if(zt=0,qa=null,Ws(n,A,L,J),o&&Ys){w=0;break e}break;default:J=zt,zt=0,qa=null,Ws(n,A,L,J)}}ix(),w=mn;break}catch(ce){L1(n,ce)}while(!0);return a&&n.shellSuspendCounter++,wa=E=null,Lt=c,U.H=d,U.A=g,xt===null&&(Jt=null,Ct=0,Ar()),w}function ix(){for(;xt!==null;)H1(xt)}function j1(n,a){var o=Lt;Lt|=2;var c=z1(),d=P1();Jt!==n||Ct!==a?(zf=null,gu=dn()+500,Qs(n,a)):Ys=Ui(n,a);e:do try{if(zt!==0&&xt!==null){a=xt;var g=qa;t:switch(zt){case 1:zt=0,qa=null,Ws(n,a,g,1);break;case 2:case 9:if(Kg(g)){zt=0,qa=null,B1(a);break}a=function(){zt!==2&&zt!==9||Jt!==n||(zt=7),qr(n)},g.then(a,a);break e;case 3:zt=7;break e;case 4:zt=5;break e;case 7:Kg(g)?(zt=0,qa=null,B1(a)):(zt=0,qa=null,Ws(n,a,g,7));break;case 5:var w=null;switch(xt.tag){case 26:w=xt.memoizedState;case 5:case 27:var A=xt;if(!w||pa(w)){zt=0,qa=null;var L=A.sibling;if(L!==null)xt=L;else{var J=A.return;J!==null?(xt=J,jf(J)):xt=null}break t}}zt=0,qa=null,Ws(n,a,g,5);break;case 6:zt=0,qa=null,Ws(n,a,g,6);break;case 8:Mp(),mn=6;break e;default:throw Error(l(462))}}U1();break}catch(ce){L1(n,ce)}while(!0);return wa=E=null,U.H=c,U.A=d,Lt=o,xt!==null?0:(Jt=null,Ct=0,Ar(),mn)}function U1(){for(;xt!==null&&!Fn();)H1(xt)}function H1(n){var a=b1(n.alternate,n,vi);n.memoizedProps=n.pendingProps,a===null?jf(n):xt=a}function B1(n){var a=n,o=a.alternate;switch(a.tag){case 15:case 0:a=eo(o,a,a.pendingProps,a.type,void 0,Ct);break;case 11:a=eo(o,a,a.pendingProps,a.type.render,a.ref,Ct);break;case 5:zh(a);default:_1(o,a),a=xt=Yg(a,vi),a=b1(o,a,vi)}n.memoizedProps=n.pendingProps,a===null?jf(n):xt=a}function Ws(n,a,o,c){wa=E=null,zh(a),ha=null,iu=0;var d=a.return;try{if(Jb(n,d,a,o,Ct)){mn=1,ur(n,nr(o,n.current)),xt=null;return}}catch(g){if(d!==null)throw xt=d,g;mn=1,ur(n,nr(o,n.current)),xt=null;return}a.flags&32768?(St||c===1?n=!0:Ys||(Ct&536870912)!==0?n=!1:(io=n=!0,(c===2||c===9||c===3||c===6)&&(c=Qn.current,c!==null&&c.tag===13&&(c.flags|=16384))),vu(a,n)):jf(a)}function jf(n){var a=n;do{if((a.flags&32768)!==0){vu(a,io);return}n=a.return;var o=w1(a.alternate,a,vi);if(o!==null){xt=o;return}if(a=a.sibling,a!==null){xt=a;return}xt=a=n}while(a!==null);mn===0&&(mn=5)}function vu(n,a){do{var o=ex(n.alternate,n);if(o!==null){o.flags&=32767,xt=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(n=n.sibling,n!==null)){xt=n;return}xt=n=o}while(n!==null);mn=6,xt=null}function q1(n,a,o,c,d,g,w,A,L){n.cancelPendingCommit=null;do Uf();while(Kn!==0);if((Lt&6)!==0)throw Error(l(327));if(a!==null){if(a===n.current)throw Error(l(177));if(g=a.lanes|a.childLanes,g|=Ds,Wt(n,o,g,w,A,L),n===Jt&&(xt=Jt=null,Ct=0),Vs=a,lo=n,$s=o,Op=g,Rp=d,Dp=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,W1(Yn,function(){return $1(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=U.T,U.T=null,d=z.p,z.p=2,w=Lt,Lt|=4;try{tx(n,a,o)}finally{Lt=w,z.p=d,U.T=c}}Kn=1,F1(),Y1(),G1()}}function F1(){if(Kn===1){Kn=0;var n=lo,a=Vs,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=U.T,U.T=null;var c=z.p;z.p=2;var d=Lt;Lt|=4;try{xp(a,n);var g=Ks,w=Bg(n.containerInfo),A=g.focusedElem,L=g.selectionRange;if(w!==A&&A&&A.ownerDocument&&Hg(A.ownerDocument.documentElement,A)){if(L!==null&&xh(A)){var J=L.start,ce=L.end;if(ce===void 0&&(ce=J),"selectionStart"in A)A.selectionStart=J,A.selectionEnd=Math.min(ce,A.value.length);else{var ge=A.ownerDocument||document,W=ge&&ge.defaultView||window;if(W.getSelection){var te=W.getSelection(),Ke=A.textContent.length,Ze=Math.min(L.start,Ke),Ht=L.end===void 0?Ze:Math.min(L.end,Ke);!te.extend&&Ze>Ht&&(w=Ht,Ht=Ze,Ze=w);var V=Ug(A,Ze),q=Ug(A,Ht);if(V&&q&&(te.rangeCount!==1||te.anchorNode!==V.node||te.anchorOffset!==V.offset||te.focusNode!==q.node||te.focusOffset!==q.offset)){var X=ge.createRange();X.setStart(V.node,V.offset),te.removeAllRanges(),Ze>Ht?(te.addRange(X),te.extend(q.node,q.offset)):(X.setEnd(q.node,q.offset),te.addRange(X))}}}}for(ge=[],te=A;te=te.parentNode;)te.nodeType===1&&ge.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<ge.length;A++){var de=ge[A];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}Jf=!!Vf,Ks=Vf=null}finally{Lt=d,z.p=c,U.T=o}}n.current=a,Kn=2}}function Y1(){if(Kn===2){Kn=0;var n=lo,a=Vs,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=U.T,U.T=null;var c=z.p;z.p=2;var d=Lt;Lt|=4;try{S1(n,a.alternate,a)}finally{Lt=d,z.p=c,U.T=o}}Kn=3}}function G1(){if(Kn===4||Kn===3){Kn=0,On();var n=lo,a=Vs,o=$s,c=Dp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Kn=5:(Kn=0,Vs=lo=null,V1(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(so=null),_l(o),a=a.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Da,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=U.T,d=z.p,z.p=2,U.T=null;try{for(var g=n.onRecoverableError,w=0;w<c.length;w++){var A=c[w];g(A.value,{componentStack:A.stack})}}finally{U.T=a,z.p=d}}($s&3)!==0&&Uf(),qr(n),d=n.pendingLanes,(o&4194090)!==0&&(d&42)!==0?n===Zs?yu++:(yu=0,Zs=n):yu=0,wu(0)}}function V1(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Vl(a)))}function Uf(n){return F1(),Y1(),G1(),$1()}function $1(){if(Kn!==5)return!1;var n=lo,a=Op;Op=0;var o=_l($s),c=U.T,d=z.p;try{z.p=32>o?32:o,U.T=null,o=Rp,Rp=null;var g=lo,w=$s;if(Kn=0,Vs=lo=null,$s=0,(Lt&6)!==0)throw Error(l(331));var A=Lt;if(Lt|=4,D1(g.current),O1(g,g.current,w,o),Lt=A,wu(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Da,g)}catch{}return!0}finally{z.p=d,U.T=c,V1(n,a)}}function Z1(n,a,o){a=nr(o,a),a=Sf(n.stateNode,a,2),n=Qi(n,a,2),n!==null&&(bt(n,2),qr(n))}function $t(n,a,o){if(n.tag===3)Z1(n,n,o);else for(;a!==null;){if(a.tag===3){Z1(a,n,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(so===null||!so.has(c))){n=nr(o,n),o=h1(2),c=Qi(a,o,2),c!==null&&(up(o,c,a,n),bt(c,2),qr(c));break}}a=a.return}}function Ip(n,a,o){var c=n.pingCache;if(c===null){c=n.pingCache=new ax;var d=new Set;c.set(a,d)}else d=c.get(a),d===void 0&&(d=new Set,c.set(a,d));d.has(o)||(Ap=!0,d.add(o),n=ox.bind(null,n,a,o),a.then(n,n))}function ox(n,a,o){var c=n.pingCache;c!==null&&c.delete(a),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,Jt===n&&(Ct&o)===o&&(mn===4||mn===3&&(Ct&62914560)===Ct&&300>dn()-mu?(Lt&2)===0&&Qs(n,0):Cp|=o,Gs===Ct&&(Gs=0)),qr(n)}function bu(n,a){a===0&&(a=xe()),n=ti(n,a),n!==null&&(bt(n,a),qr(n))}function sx(n){var a=n.memoizedState,o=0;a!==null&&(o=a.retryLane),bu(n,o)}function Q1(n,a){var o=0;switch(n.tag){case 13:var c=n.stateNode,d=n.memoizedState;d!==null&&(o=d.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(l(314))}c!==null&&c.delete(a),bu(n,o)}function W1(n,a){return Yt(n,a)}var Xs=null,Qo=null,Hf=!1,xu=!1,Bf=!1,Wo=0;function qr(n){n!==Qo&&n.next===null&&(Qo===null?Xs=Qo=n:Qo=Qo.next=n),xu=!0,Hf||(Hf=!0,J1())}function wu(n,a){if(!Bf&&xu){Bf=!0;do for(var o=!1,c=Xs;c!==null;){if(n!==0){var d=c.pendingLanes;if(d===0)var g=0;else{var w=c.suspendedLanes,A=c.pingedLanes;g=(1<<31-Gn(42|n)+1)-1,g&=d&~(w&~A),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,Ff(c,g))}else g=Ct,g=ji(c,c===Jt?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||Ui(c,g)||(o=!0,Ff(c,g));c=c.next}while(o);Bf=!1}}function qf(){_u()}function _u(){xu=Hf=!1;var n=0;Wo!==0&&(hx()&&(n=Wo),Wo=0);for(var a=dn(),o=null,c=Xs;c!==null;){var d=c.next,g=X1(c,a);g===0?(c.next=null,o===null?Xs=d:o.next=d,d===null&&(Qo=o)):(o=c,(n!==0||(g&3)!==0)&&(xu=!0)),c=d}wu(n)}function X1(n,a){for(var o=n.suspendedLanes,c=n.pingedLanes,d=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var w=31-Gn(g),A=1<<w,L=d[w];L===-1?((A&o)===0||(A&c)!==0)&&(d[w]=xc(A,a)):L<=a&&(n.expiredLanes|=A),g&=~A}if(a=Jt,o=Ct,o=ji(n,n===a?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,o===0||n===a&&(zt===2||zt===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&sa(c),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||Ui(n,o)){if(a=o&-o,a===n.callbackPriority)return a;switch(c!==null&&sa(c),_l(o)){case 2:case 8:o=Ue;break;case 32:o=Yn;break;case 268435456:o=Xa;break;default:o=Yn}return c=K1.bind(null,n),o=Yt(o,c),n.callbackPriority=a,n.callbackNode=o,a}return c!==null&&c!==null&&sa(c),n.callbackPriority=2,n.callbackNode=null,2}function K1(n,a){if(Kn!==0&&Kn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Uf()&&n.callbackNode!==o)return null;var c=Ct;return c=ji(n,n===Jt?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(N1(n,c,a),X1(n,dn()),n.callbackNode!=null&&n.callbackNode===o?K1.bind(null,n):null)}function Ff(n,a){if(Uf())return null;N1(n,a,!0)}function J1(){l0(function(){(Lt&6)!==0?Yt(Ve,qf):_u()})}function Lp(){return Wo===0&&(Wo=wc()),Wo}function e0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Ml(""+n)}function t0(n,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,n.id&&o.setAttribute("form",n.id),a.parentNode.insertBefore(o,a),n=new FormData(n),o.parentNode.removeChild(o),n}function lx(n,a,o,c,d){if(a==="submit"&&o&&o.stateNode===d){var g=e0((d[Vn]||null).action),w=c.submitter;w&&(a=(a=w[Vn]||null)?e0(a.formAction):w.getAttribute("formAction"),a!==null&&(g=a,w=null));var A=new Nc("action","action",null,c,d);n.push({event:A,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Wo!==0){var L=w?t0(d,w):new FormData(d);mf(o,{pending:!0,data:L,method:d.method,action:g},null,L)}}else typeof g=="function"&&(A.preventDefault(),L=w?t0(d,w):new FormData(d),mf(o,{pending:!0,data:L,method:d.method,action:g},g,L))},currentTarget:d}]})}}for(var zp=0;zp<wh.length;zp++){var Pp=wh[zp],ux=Pp.toLowerCase(),cx=Pp[0].toUpperCase()+Pp.slice(1);tr(ux,"on"+cx)}tr(qg,"onAnimationEnd"),tr(La,"onAnimationIteration"),tr(zl,"onAnimationStart"),tr("dblclick","onDoubleClick"),tr("focusin","onFocus"),tr("focusout","onBlur"),tr($b,"onTransitionRun"),tr(Os,"onTransitionStart"),tr(Yc,"onTransitionCancel"),tr(Pl,"onTransitionEnd"),Jr("onMouseEnter",["mouseout","mouseover"]),Jr("onMouseLeave",["mouseout","mouseover"]),Jr("onPointerEnter",["pointerout","pointerover"]),Jr("onPointerLeave",["pointerout","pointerover"]),Mo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),fx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Su));function n0(n,a){a=(a&4)!==0;for(var o=0;o<n.length;o++){var c=n[o],d=c.event;c=c.listeners;e:{var g=void 0;if(a)for(var w=c.length-1;0<=w;w--){var A=c[w],L=A.instance,J=A.currentTarget;if(A=A.listener,L!==g&&d.isPropagationStopped())break e;g=A,d.currentTarget=J;try{g(d)}catch(ce){su(ce)}d.currentTarget=null,g=L}else for(w=0;w<c.length;w++){if(A=c[w],L=A.instance,J=A.currentTarget,A=A.listener,L!==g&&d.isPropagationStopped())break e;g=A,d.currentTarget=J;try{g(d)}catch(ce){su(ce)}d.currentTarget=null,g=L}}}}function wt(n,a){var o=a[ys];o===void 0&&(o=a[ys]=new Set);var c=n+"__bubble";o.has(c)||(co(a,n,2,!1),o.add(c))}function Ga(n,a,o){var c=0;a&&(c|=4),co(o,n,c,a)}var Yf="_reactListening"+Math.random().toString(36).slice(2);function jp(n){if(!n[Yf]){n[Yf]=!0,hg.forEach(function(o){o!=="selectionchange"&&(fx.has(o)||Ga(o,!1,n),Ga(o,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Yf]||(a[Yf]=!0,Ga("selectionchange",!1,a))}}function co(n,a,o,c){switch(Xp(a)){case 2:var d=al;break;case 8:d=Cx;break;default:d=Zp}o=d.bind(null,a,o,n),d=void 0,!oh||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),c?d!==void 0?n.addEventListener(a,o,{capture:!0,passive:d}):n.addEventListener(a,o,!0):d!==void 0?n.addEventListener(a,o,{passive:d}):n.addEventListener(a,o,!1)}function rt(n,a,o,c,d){var g=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var A=c.stateNode.containerInfo;if(A===d)break;if(w===4)for(w=c.return;w!==null;){var L=w.tag;if((L===3||L===4)&&w.stateNode.containerInfo===d)return;w=w.return}for(;A!==null;){if(w=vs(A),w===null)return;if(L=w.tag,L===5||L===6||L===26||L===27){c=g=w;continue e}A=A.parentNode}}c=c.return}Sg(function(){var J=g,ce=rh(o),ge=[];e:{var W=Mt.get(n);if(W!==void 0){var te=Nc,Ke=n;switch(n){case"keypress":if(It(o)===0)break e;case"keydown":case"keyup":te=an;break;case"focusin":Ke="focus",te=Ic;break;case"focusout":Ke="blur",te=Ic;break;case"beforeblur":case"afterblur":te=Ic;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=Ja;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=dh;break;case qg:case La:case zl:te=Og;break;case Pl:te=Ub;break;case"scroll":case"scrollend":te=Ag;break;case"wheel":te=Ng;break;case"copy":case"cut":case"paste":te=Dg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Lc;break;case"toggle":case"beforetoggle":te=Ss}var Ze=(a&4)!==0,Ht=!Ze&&(n==="scroll"||n==="scrollend"),V=Ze?W!==null?W+"Capture":null:W;Ze=[];for(var q=J,X;q!==null;){var de=q;if(X=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||X===null||V===null||(de=kl(q,V),de!=null&&Ze.push(Eu(q,de,X))),Ht)break;q=q.return}0<Ze.length&&(W=new te(W,Ke,null,o,ce),ge.push({event:W,listeners:Ze}))}}if((a&7)===0){e:{if(W=n==="mouseover"||n==="pointerover",te=n==="mouseout"||n==="pointerout",W&&o!==ah&&(Ke=o.relatedTarget||o.fromElement)&&(vs(Ke)||Ke[Kr]))break e;if((te||W)&&(W=ce.window===ce?ce:(W=ce.ownerDocument)?W.defaultView||W.parentWindow:window,te?(Ke=o.relatedTarget||o.toElement,te=J,Ke=Ke?vs(Ke):null,Ke!==null&&(Ht=h(Ke),Ze=Ke.tag,Ke!==Ht||Ze!==5&&Ze!==27&&Ze!==6)&&(Ke=null)):(te=null,Ke=J),te!==Ke)){if(Ze=uh,de="onMouseLeave",V="onMouseEnter",q="mouse",(n==="pointerout"||n==="pointerover")&&(Ze=Lc,de="onPointerLeave",V="onPointerEnter",q="pointer"),Ht=te==null?W:Al(te),X=Ke==null?W:Al(Ke),W=new Ze(de,q+"leave",te,o,ce),W.target=Ht,W.relatedTarget=X,de=null,vs(ce)===J&&(Ze=new Ze(V,q+"enter",Ke,o,ce),Ze.target=X,Ze.relatedTarget=Ht,de=Ze),Ht=de,te&&Ke)t:{for(Ze=te,V=Ke,q=0,X=Ze;X;X=en(X))q++;for(X=0,de=V;de;de=en(de))X++;for(;0<q-X;)Ze=en(Ze),q--;for(;0<X-q;)V=en(V),X--;for(;q--;){if(Ze===V||V!==null&&Ze===V.alternate)break t;Ze=en(Ze),V=en(V)}Ze=null}else Ze=null;te!==null&&a0(ge,W,te,Ze,!1),Ke!==null&&Ht!==null&&a0(ge,Ht,Ke,Ze,!0)}}e:{if(W=J?Al(J):window,te=W.nodeName&&W.nodeName.toLowerCase(),te==="select"||te==="input"&&W.type==="file")var ze=zg;else if(Cs(W))if(Pg)ze=Yb;else{ze=Fc;var mt=Gi}else te=W.nodeName,!te||te.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?J&&Dc(J.elementType)&&(ze=zg):ze=Fb;if(ze&&(ze=ze(n,J))){gh(ge,ze,o,ce);break e}mt&&mt(n,W,J),n==="focusout"&&J&&W.type==="number"&&J.memoizedProps.value!=null&&th(W,"number",W.value)}switch(mt=J?Al(J):window,n){case"focusin":(Cs(mt)||mt.contentEditable==="true")&&(Er=mt,G=J,oe=null);break;case"focusout":oe=G=Er=null;break;case"mousedown":ae=!0;break;case"contextmenu":case"mouseup":case"dragend":ae=!1,Ne(ge,o,ce);break;case"selectionchange":if(Vb)break;case"keydown":case"keyup":Ne(ge,o,ce)}var Ye;if(Pc)e:{switch(n){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else As?Uc(n,o)&&(We="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(We="onCompositionStart");We&&(jc&&o.locale!=="ko"&&(As||We!=="onCompositionStart"?We==="onCompositionEnd"&&As&&(Ye=Xt()):(Bi=ce,sh="value"in Bi?Bi.value:Bi.textContent,As=!0)),mt=Jn(J,We),0<mt.length&&(We=new Mg(We,n,null,o,ce),ge.push({event:We,listeners:mt}),Ye?We.data=Ye:(Ye=Hc(o),Ye!==null&&(We.data=Ye)))),(Ye=hh?Lg(n,o):Ia(n,o))&&(We=Jn(J,"onBeforeInput"),0<We.length&&(mt=new Mg("onBeforeInput","beforeinput",null,o,ce),ge.push({event:mt,listeners:We}),mt.data=Ye)),lx(ge,n,J,o,ce)}n0(ge,a)})}function Eu(n,a,o){return{instance:n,listener:a,currentTarget:o}}function Jn(n,a){for(var o=a+"Capture",c=[];n!==null;){var d=n,g=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||g===null||(d=kl(n,o),d!=null&&c.unshift(Eu(n,d,g)),d=kl(n,a),d!=null&&c.push(Eu(n,d,g))),n.tag===3)return c;n=n.return}return[]}function en(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function a0(n,a,o,c,d){for(var g=a._reactName,w=[];o!==null&&o!==c;){var A=o,L=A.alternate,J=A.stateNode;if(A=A.tag,L!==null&&L===c)break;A!==5&&A!==26&&A!==27||J===null||(L=J,d?(J=kl(o,g),J!=null&&w.unshift(Eu(o,J,L))):d||(J=kl(o,g),J!=null&&w.push(Eu(o,J,L)))),o=o.return}w.length!==0&&n.push({event:a,listeners:w})}var fo=/\r\n?/g,dx=/\u0000|\uFFFD/g;function r0(n){return(typeof n=="string"?n:""+n).replace(fo,`
|
|
49
|
-
`).replace(dx,"")}function i0(n,a){return a=r0(a),r0(n)===a}function Gf(){}function Ut(n,a,o,c,d,g){switch(o){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||_r(n,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&_r(n,""+c);break;case"className":Tl(n,"class",c);break;case"tabIndex":Tl(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Tl(n,o,c);break;case"style":bg(n,c,g);break;case"data":if(a!=="object"){Tl(n,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||o!=="href")){n.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(o);break}c=Ml(""+c),n.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(o,"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 g=="function"&&(o==="formAction"?(a!=="input"&&Ut(n,a,"name",d.name,d,null),Ut(n,a,"formEncType",d.formEncType,d,null),Ut(n,a,"formMethod",d.formMethod,d,null),Ut(n,a,"formTarget",d.formTarget,d,null)):(Ut(n,a,"encType",d.encType,d,null),Ut(n,a,"method",d.method,d,null),Ut(n,a,"target",d.target,d,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(o);break}c=Ml(""+c),n.setAttribute(o,c);break;case"onClick":c!=null&&(n.onclick=Gf);break;case"onScroll":c!=null&&wt("scroll",n);break;case"onScrollEnd":c!=null&&wt("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(o=c.__html,o!=null){if(d.children!=null)throw Error(l(60));n.innerHTML=o}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}o=Ml(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,""+c):n.removeAttribute(o);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":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":c===!0?n.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,c):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(o,c):n.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(o):n.setAttribute(o,c);break;case"popover":wt("beforetoggle",n),wt("toggle",n),Sc(n,"popover",c);break;case"xlinkActuate":zr(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":zr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":zr(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":zr(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":zr(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":zr(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":zr(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":zr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":zr(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Sc(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=xg.get(o)||o,Sc(n,o,c))}}function Au(n,a,o,c,d,g){switch(o){case"style":bg(n,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(o=c.__html,o!=null){if(d.children!=null)throw Error(l(60));n.innerHTML=o}}break;case"children":typeof c=="string"?_r(n,c):(typeof c=="number"||typeof c=="bigint")&&_r(n,""+c);break;case"onScroll":c!=null&&wt("scroll",n);break;case"onScrollEnd":c!=null&&wt("scrollend",n);break;case"onClick":c!=null&&(n.onclick=Gf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pg.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(d=o.endsWith("Capture"),a=o.slice(2,d?o.length-7:void 0),g=n[Vn]||null,g=g!=null?g[o]:null,typeof g=="function"&&n.removeEventListener(a,g,d),typeof c=="function")){typeof g!="function"&&g!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(a,c,d);break e}o in n?n[o]=c:c===!0?n.setAttribute(o,""):Sc(n,o,c)}}}function ea(n,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",n),wt("load",n);var c=!1,d=!1,g;for(g in o)if(o.hasOwnProperty(g)){var w=o[g];if(w!=null)switch(g){case"src":c=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ut(n,a,g,w,o,null)}}d&&Ut(n,a,"srcSet",o.srcSet,o,null),c&&Ut(n,a,"src",o.src,o,null);return;case"input":wt("invalid",n);var A=g=w=d=null,L=null,J=null;for(c in o)if(o.hasOwnProperty(c)){var ce=o[c];if(ce!=null)switch(c){case"name":d=ce;break;case"type":w=ce;break;case"checked":L=ce;break;case"defaultChecked":J=ce;break;case"value":g=ce;break;case"defaultValue":A=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(l(137,a));break;default:Ut(n,a,c,ce,o,null)}}Tc(n,g,A,L,J,w,d,!1),Ol(n);return;case"select":wt("invalid",n),c=w=g=null;for(d in o)if(o.hasOwnProperty(d)&&(A=o[d],A!=null))switch(d){case"value":g=A;break;case"defaultValue":w=A;break;case"multiple":c=A;default:Ut(n,a,d,A,o,null)}a=g,o=w,n.multiple=!!c,a!=null?ko(n,!!c,a,!1):o!=null&&ko(n,!!c,o,!0);return;case"textarea":wt("invalid",n),g=d=c=null;for(w in o)if(o.hasOwnProperty(w)&&(A=o[w],A!=null))switch(w){case"value":c=A;break;case"defaultValue":d=A;break;case"children":g=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(l(91));break;default:Ut(n,a,w,A,o,null)}Rc(n,c,d,g),Ol(n);return;case"option":for(L in o)if(o.hasOwnProperty(L)&&(c=o[L],c!=null))switch(L){case"selected":n.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ut(n,a,L,c,o,null)}return;case"dialog":wt("beforetoggle",n),wt("toggle",n),wt("cancel",n),wt("close",n);break;case"iframe":case"object":wt("load",n);break;case"video":case"audio":for(c=0;c<Su.length;c++)wt(Su[c],n);break;case"image":wt("error",n),wt("load",n);break;case"details":wt("toggle",n);break;case"embed":case"source":case"link":wt("error",n),wt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in o)if(o.hasOwnProperty(J)&&(c=o[J],c!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ut(n,a,J,c,o,null)}return;default:if(Dc(a)){for(ce in o)o.hasOwnProperty(ce)&&(c=o[ce],c!==void 0&&Au(n,a,ce,c,o,void 0));return}}for(A in o)o.hasOwnProperty(A)&&(c=o[A],c!=null&&Ut(n,a,A,c,o,null))}function bi(n,a,o,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,g=null,w=null,A=null,L=null,J=null,ce=null;for(te in o){var ge=o[te];if(o.hasOwnProperty(te)&&ge!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":L=ge;default:c.hasOwnProperty(te)||Ut(n,a,te,null,c,ge)}}for(var W in c){var te=c[W];if(ge=o[W],c.hasOwnProperty(W)&&(te!=null||ge!=null))switch(W){case"type":g=te;break;case"name":d=te;break;case"checked":J=te;break;case"defaultChecked":ce=te;break;case"value":w=te;break;case"defaultValue":A=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(l(137,a));break;default:te!==ge&&Ut(n,a,W,te,c,ge)}}Cc(n,w,A,L,J,ce,g,d);return;case"select":te=w=A=W=null;for(g in o)if(L=o[g],o.hasOwnProperty(g)&&L!=null)switch(g){case"value":break;case"multiple":te=L;default:c.hasOwnProperty(g)||Ut(n,a,g,null,c,L)}for(d in c)if(g=c[d],L=o[d],c.hasOwnProperty(d)&&(g!=null||L!=null))switch(d){case"value":W=g;break;case"defaultValue":A=g;break;case"multiple":w=g;default:g!==L&&Ut(n,a,d,g,c,L)}a=A,o=w,c=te,W!=null?ko(n,!!o,W,!1):!!c!=!!o&&(a!=null?ko(n,!!o,a,!0):ko(n,!!o,o?[]:"",!1));return;case"textarea":te=W=null;for(A in o)if(d=o[A],o.hasOwnProperty(A)&&d!=null&&!c.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Ut(n,a,A,null,c,d)}for(w in c)if(d=c[w],g=o[w],c.hasOwnProperty(w)&&(d!=null||g!=null))switch(w){case"value":W=d;break;case"defaultValue":te=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(l(91));break;default:d!==g&&Ut(n,a,w,d,c,g)}Oc(n,W,te);return;case"option":for(var Ke in o)if(W=o[Ke],o.hasOwnProperty(Ke)&&W!=null&&!c.hasOwnProperty(Ke))switch(Ke){case"selected":n.selected=!1;break;default:Ut(n,a,Ke,null,c,W)}for(L in c)if(W=c[L],te=o[L],c.hasOwnProperty(L)&&W!==te&&(W!=null||te!=null))switch(L){case"selected":n.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:Ut(n,a,L,W,c,te)}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 Ze in o)W=o[Ze],o.hasOwnProperty(Ze)&&W!=null&&!c.hasOwnProperty(Ze)&&Ut(n,a,Ze,null,c,W);for(J in c)if(W=c[J],te=o[J],c.hasOwnProperty(J)&&W!==te&&(W!=null||te!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,a));break;default:Ut(n,a,J,W,c,te)}return;default:if(Dc(a)){for(var Ht in o)W=o[Ht],o.hasOwnProperty(Ht)&&W!==void 0&&!c.hasOwnProperty(Ht)&&Au(n,a,Ht,void 0,c,W);for(ce in c)W=c[ce],te=o[ce],!c.hasOwnProperty(ce)||W===te||W===void 0&&te===void 0||Au(n,a,ce,W,c,te);return}}for(var V in o)W=o[V],o.hasOwnProperty(V)&&W!=null&&!c.hasOwnProperty(V)&&Ut(n,a,V,null,c,W);for(ge in c)W=c[ge],te=o[ge],!c.hasOwnProperty(ge)||W===te||W==null&&te==null||Ut(n,a,ge,W,c,te)}var Vf=null,Ks=null;function tn(n){return n.nodeType===9?n:n.ownerDocument}function cn(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Up(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Hp(n,a){return n==="textarea"||n==="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 Bp=null;function hx(){var n=window.event;return n&&n.type==="popstate"?n===Bp?!1:(Bp=n,!0):(Bp=null,!1)}var o0=typeof setTimeout=="function"?setTimeout:void 0,px=typeof clearTimeout=="function"?clearTimeout:void 0,s0=typeof Promise=="function"?Promise:void 0,l0=typeof queueMicrotask=="function"?queueMicrotask:typeof s0<"u"?function(n){return s0.resolve(null).then(n).catch(Cu)}:o0;function Cu(n){setTimeout(function(){throw n})}function Fr(n){return n==="head"}function u0(n,a){var o=a,c=0,d=0;do{var g=o.nextSibling;if(n.removeChild(o),g&&g.nodeType===8)if(o=g.data,o==="/$"){if(0<c&&8>c){o=c;var w=n.ownerDocument;if(o&1&&Js(w.documentElement),o&2&&Js(w.body),o&4)for(o=w.head,Js(o),w=o.firstChild;w;){var A=w.nextSibling,L=w.nodeName;w[El]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&w.rel.toLowerCase()==="stylesheet"||o.removeChild(w),w=A}}if(d===0){n.removeChild(g),zu(a);return}d--}else o==="$"||o==="$?"||o==="$!"?d++:c=o.charCodeAt(0)-48;else c=0;o=g}while(o);zu(a)}function $f(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":$f(o),Xd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function Zf(n,a,o,c){for(;n.nodeType===1;){var d=o;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[El])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var g=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=Mr(n.nextSibling),n===null)break}return null}function Va(n,a,o){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Mr(n.nextSibling),n===null))return null;return n}function ho(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function mx(n,a){var o=n.ownerDocument;if(n.data!=="$?"||o.readyState==="complete")a();else{var c=function(){a(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function Mr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var qp=null;function c0(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(a===0)return n;a--}else o==="/$"&&a++}n=n.previousSibling}return null}function f0(n,a,o){switch(a=tn(o),n){case"html":if(n=a.documentElement,!n)throw Error(l(452));return n;case"head":if(n=a.head,!n)throw Error(l(453));return n;case"body":if(n=a.body,!n)throw Error(l(454));return n;default:throw Error(l(451))}}function Js(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Xd(n)}var En=new Map,ot=new Set;function Tu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var An=z.d;z.d={f:d0,r:gx,D:p0,C:Qf,L:yx,m:vx,X:xx,S:bx,M:wx};function d0(){var n=An.f(),a=Pf();return n||a}function gx(n){var a=Do(n);a!==null&&a.tag===5&&a.type==="form"?yf(a):An.r(n)}var Et=typeof document>"u"?null:document;function h0(n,a,o){var c=Et;if(c&&typeof a=="string"&&a){var d=ka(a);d='link[rel="'+n+'"][href="'+d+'"]',typeof o=="string"&&(d+='[crossorigin="'+o+'"]'),ot.has(d)||(ot.add(d),n={rel:n,crossOrigin:o,href:a},c.querySelector(d)===null&&(a=c.createElement("link"),ea(a,"link",n),zn(a),c.head.appendChild(a)))}}function p0(n){An.D(n),h0("dns-prefetch",n,null)}function Qf(n,a){An.C(n,a),h0("preconnect",n,a)}function yx(n,a,o){An.L(n,a,o);var c=Et;if(c&&n&&a){var d='link[rel="preload"][as="'+ka(a)+'"]';a==="image"&&o&&o.imageSrcSet?(d+='[imagesrcset="'+ka(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(d+='[imagesizes="'+ka(o.imageSizes)+'"]')):d+='[href="'+ka(n)+'"]';var g=d;switch(a){case"style":g=el(n);break;case"script":g=tl(n)}En.has(g)||(n=S({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:n,as:a},o),En.set(g,n),c.querySelector(d)!==null||a==="style"&&c.querySelector(Ou(g))||a==="script"&&c.querySelector(Ru(g))||(a=c.createElement("link"),ea(a,"link",n),zn(a),c.head.appendChild(a)))}}function vx(n,a){An.m(n,a);var o=Et;if(o&&n){var c=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+ka(c)+'"][href="'+ka(n)+'"]',g=d;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=tl(n)}if(!En.has(g)&&(n=S({rel:"modulepreload",href:n},a),En.set(g,n),o.querySelector(d)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ru(g)))return}c=o.createElement("link"),ea(c,"link",n),zn(c),o.head.appendChild(c)}}}function bx(n,a,o){An.S(n,a,o);var c=Et;if(c&&n){var d=bs(c).hoistableStyles,g=el(n);a=a||"default";var w=d.get(g);if(!w){var A={loading:0,preload:null};if(w=c.querySelector(Ou(g)))A.loading=5;else{n=S({rel:"stylesheet",href:n,"data-precedence":a},o),(o=En.get(g))&&Fp(n,o);var L=w=c.createElement("link");zn(L),ea(L,"link",n),L._p=new Promise(function(J,ce){L.onload=J,L.onerror=ce}),L.addEventListener("load",function(){A.loading|=1}),L.addEventListener("error",function(){A.loading|=2}),A.loading|=4,nl(w,a,c)}w={type:"stylesheet",instance:w,count:1,state:A},d.set(g,w)}}}function xx(n,a){An.X(n,a);var o=Et;if(o&&n){var c=bs(o).hoistableScripts,d=tl(n),g=c.get(d);g||(g=o.querySelector(Ru(d)),g||(n=S({src:n,async:!0},a),(a=En.get(d))&&Du(n,a),g=o.createElement("script"),zn(g),ea(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(d,g))}}function wx(n,a){An.M(n,a);var o=Et;if(o&&n){var c=bs(o).hoistableScripts,d=tl(n),g=c.get(d);g||(g=o.querySelector(Ru(d)),g||(n=S({src:n,async:!0,type:"module"},a),(a=En.get(d))&&Du(n,a),g=o.createElement("script"),zn(g),ea(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(d,g))}}function m0(n,a,o,c){var d=(d=be.current)?Tu(d):null;if(!d)throw Error(l(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=el(o.href),o=bs(d).hoistableStyles,c=o.get(a),c||(c={type:"style",instance:null,count:0,state:null},o.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=el(o.href);var g=bs(d).hoistableStyles,w=g.get(n);if(w||(d=d.ownerDocument||d,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,w),(g=d.querySelector(Ou(n)))&&!g._p&&(w.instance=g,w.state.loading=5),En.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},En.set(n,o),g||_x(d,n,o,w.state))),a&&c===null)throw Error(l(528,""));return w}if(a&&c!==null)throw Error(l(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=tl(o),o=bs(d).hoistableScripts,c=o.get(a),c||(c={type:"script",instance:null,count:0,state:null},o.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,n))}}function el(n){return'href="'+ka(n)+'"'}function Ou(n){return'link[rel="stylesheet"]['+n+"]"}function g0(n){return S({},n,{"data-precedence":n.precedence,precedence:null})}function _x(n,a,o,c){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=n.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),ea(a,"link",o),zn(a),n.head.appendChild(a))}function tl(n){return'[src="'+ka(n)+'"]'}function Ru(n){return"script[async]"+n}function y0(n,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var c=n.querySelector('style[data-href~="'+ka(o.href)+'"]');if(c)return a.instance=c,zn(c),c;var d=S({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),zn(c),ea(c,"style",d),nl(c,o.precedence,n),a.instance=c;case"stylesheet":d=el(o.href);var g=n.querySelector(Ou(d));if(g)return a.state.loading|=4,a.instance=g,zn(g),g;c=g0(o),(d=En.get(d))&&Fp(c,d),g=(n.ownerDocument||n).createElement("link"),zn(g);var w=g;return w._p=new Promise(function(A,L){w.onload=A,w.onerror=L}),ea(g,"link",c),a.state.loading|=4,nl(g,o.precedence,n),a.instance=g;case"script":return g=tl(o.src),(d=n.querySelector(Ru(g)))?(a.instance=d,zn(d),d):(c=o,(d=En.get(g))&&(c=S({},o),Du(c,d)),n=n.ownerDocument||n,d=n.createElement("script"),zn(d),ea(d,"link",c),n.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,nl(c,o.precedence,n));return a.instance}function nl(n,a,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=c.length?c[c.length-1]:null,g=d,w=0;w<c.length;w++){var A=c[w];if(A.dataset.precedence===a)g=A;else if(g!==d)break}g?g.parentNode.insertBefore(n,g.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(n,a.firstChild))}function Fp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Du(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Wf=null;function v0(n,a,o){if(Wf===null){var c=new Map,d=Wf=new Map;d.set(o,c)}else d=Wf,c=d.get(o),c||(c=new Map,d.set(o,c));if(c.has(n))return c;for(c.set(n,null),o=o.getElementsByTagName(n),d=0;d<o.length;d++){var g=o[d];if(!(g[El]||g[Ln]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var w=g.getAttribute(a)||"";w=n+w;var A=c.get(w);A?A.push(g):c.set(w,[g])}}return c}function b0(n,a,o){n=n.ownerDocument||n,n.head.insertBefore(o,a==="title"?n.querySelector("head > title"):null)}function Bn(n,a,o){if(o===1||a.itemProp!=null)return!1;switch(n){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 n=a.disabled,typeof a.precedence=="string"&&n==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 pa(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Mu=null;function Sx(){}function Ex(n,a,o){if(Mu===null)throw Error(l(475));var c=Mu;if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=el(o.href),g=n.querySelector(Ou(d));if(g){n=g._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(c.count++,c=Xf.bind(c),n.then(c,c)),a.state.loading|=4,a.instance=g,zn(g);return}g=n.ownerDocument||n,o=g0(o),(d=En.get(d))&&Fp(o,d),g=g.createElement("link"),zn(g);var w=g;w._p=new Promise(function(A,L){w.onload=A,w.onerror=L}),ea(g,"link",o),a.instance=g}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(c.count++,a=Xf.bind(c),n.addEventListener("load",a),n.addEventListener("error",a))}}function x0(){if(Mu===null)throw Error(l(475));var n=Mu;return n.stylesheets&&n.count===0&&Yp(n,n.stylesheets),0<n.count?function(a){var o=setTimeout(function(){if(n.stylesheets&&Yp(n,n.stylesheets),n.unsuspend){var c=n.unsuspend;n.unsuspend=null,c()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(o)}}:null}function Xf(){if(this.count--,this.count===0){if(this.stylesheets)Yp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Kf=null;function Yp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Kf=new Map,a.forEach(w0,n),Kf=null,Xf.call(n))}function w0(n,a){if(!(a.state.loading&4)){var o=Kf.get(n);if(o)var c=o.get(null);else{o=new Map,Kf.set(n,o);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<d.length;g++){var w=d[g];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(o.set(w.dataset.precedence,w),c=w)}c&&o.set(null,c)}d=a.instance,w=d.getAttribute("data-precedence"),g=o.get(w)||c,g===c&&o.set(null,d),o.set(w,d),this.count++,c=Xf.bind(this),d.addEventListener("load",c),d.addEventListener("error",c),g?g.parentNode.insertBefore(d,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),a.state.loading|=4}}var ku={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ve,_currentValue2:ve,_threadCount:0};function Ax(n,a,o,c,d,g,w,A){this.tag=1,this.containerInfo=n,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=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=c,this.onUncaughtError=d,this.onCaughtError=g,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function _0(n,a,o,c,d,g,w,A,L,J,ce,ge){return n=new Ax(n,a,o,w,A,L,J,ge),a=1,g===!0&&(a|=24),g=$n(3,null,null,a),n.current=g,g.stateNode=n,a=Eh(),a.refCount++,n.pooledCache=a,a.refCount++,g.memoizedState={element:c,isDehydrated:o,cache:a},Ls(g),n}function Gp(n){return n?(n=ni,n):ni}function Vp(n,a,o,c,d,g){d=Gp(d),c.context===null?c.context=d:c.pendingContext=d,c=li(a),c.payload={element:o},g=g===void 0?null:g,g!==null&&(c.callback=g),o=Qi(n,c,a),o!==null&&(Ya(o,n,a),Ua(o,n,a))}function S0(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<a?o:a}}function $p(n,a){S0(n,a),(n=n.alternate)&&S0(n,a)}function E0(n){if(n.tag===13){var a=ti(n,67108864);a!==null&&Ya(a,n,67108864),$p(n,67108864)}}var Jf=!0;function al(n,a,o,c){var d=U.T;U.T=null;var g=z.p;try{z.p=2,Zp(n,a,o,c)}finally{z.p=g,U.T=d}}function Cx(n,a,o,c){var d=U.T;U.T=null;var g=z.p;try{z.p=8,Zp(n,a,o,c)}finally{z.p=g,U.T=d}}function Zp(n,a,o,c){if(Jf){var d=Qp(c);if(d===null)rt(n,a,c,ed,o),A0(n,c);else if(Ox(d,n,a,o,c))c.stopPropagation();else if(A0(n,c),a&4&&-1<Tx.indexOf(n)){for(;d!==null;){var g=Do(d);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var w=wr(g.pendingLanes);if(w!==0){var A=g;for(A.pendingLanes|=2,A.entangledLanes|=2;w;){var L=1<<31-Gn(w);A.entanglements[1]|=L,w&=~L}qr(g),(Lt&6)===0&&(gu=dn()+500,wu(0))}}break;case 13:A=ti(g,2),A!==null&&Ya(A,g,2),Pf(),$p(g,2)}if(g=Qp(c),g===null&&rt(n,a,c,ed,o),g===d)break;d=g}d!==null&&c.stopPropagation()}else rt(n,a,c,null,o)}}function Qp(n){return n=rh(n),Wp(n)}var ed=null;function Wp(n){if(ed=null,n=vs(n),n!==null){var a=h(n);if(a===null)n=null;else{var o=a.tag;if(o===13){if(n=m(a),n!==null)return n;n=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return ed=n,null}function Xp(n){switch(n){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(br()){case Ve:return 2;case Ue:return 8;case Yn:case la:return 32;case Xa:return 268435456;default:return 32}default:return 32}}var td=!1,po=null,mo=null,go=null,Nu=new Map,Iu=new Map,yo=[],Tx="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 A0(n,a){switch(n){case"focusin":case"focusout":po=null;break;case"dragenter":case"dragleave":mo=null;break;case"mouseover":case"mouseout":go=null;break;case"pointerover":case"pointerout":Nu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Iu.delete(a.pointerId)}}function Lu(n,a,o,c,d,g){return n===null||n.nativeEvent!==g?(n={blockedOn:a,domEventName:o,eventSystemFlags:c,nativeEvent:g,targetContainers:[d]},a!==null&&(a=Do(a),a!==null&&E0(a)),n):(n.eventSystemFlags|=c,a=n.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),n)}function Ox(n,a,o,c,d){switch(a){case"focusin":return po=Lu(po,n,a,o,c,d),!0;case"dragenter":return mo=Lu(mo,n,a,o,c,d),!0;case"mouseover":return go=Lu(go,n,a,o,c,d),!0;case"pointerover":var g=d.pointerId;return Nu.set(g,Lu(Nu.get(g)||null,n,a,o,c,d)),!0;case"gotpointercapture":return g=d.pointerId,Iu.set(g,Lu(Iu.get(g)||null,n,a,o,c,d)),!0}return!1}function C0(n){var a=vs(n.target);if(a!==null){var o=h(a);if(o!==null){if(a=o.tag,a===13){if(a=m(o),a!==null){n.blockedOn=a,_c(n.priority,function(){if(o.tag===13){var c=Fa();c=Ro(c);var d=ti(o,c);d!==null&&Ya(d,o,c),$p(o,c)}});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function nd(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var o=Qp(n.nativeEvent);if(o===null){o=n.nativeEvent;var c=new o.constructor(o.type,o);ah=c,o.target.dispatchEvent(c),ah=null}else return a=Do(o),a!==null&&E0(a),n.blockedOn=o,!1;a.shift()}return!0}function T0(n,a,o){nd(n)&&o.delete(a)}function Rx(){td=!1,po!==null&&nd(po)&&(po=null),mo!==null&&nd(mo)&&(mo=null),go!==null&&nd(go)&&(go=null),Nu.forEach(T0),Iu.forEach(T0)}function ad(n,a){n.blockedOn===a&&(n.blockedOn=null,td||(td=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rx)))}var rd=null;function O0(n){rd!==n&&(rd=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){rd===n&&(rd=null);for(var a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],d=n[a+2];if(typeof c!="function"){if(Wp(c||o)===null)continue;break}var g=Do(o);g!==null&&(n.splice(a,3),a-=3,mf(g,{pending:!0,data:d,method:o.method,action:c},c,d))}}))}function zu(n){function a(L){return ad(L,n)}po!==null&&ad(po,n),mo!==null&&ad(mo,n),go!==null&&ad(go,n),Nu.forEach(a),Iu.forEach(a);for(var o=0;o<yo.length;o++){var c=yo[o];c.blockedOn===n&&(c.blockedOn=null)}for(;0<yo.length&&(o=yo[0],o.blockedOn===null);)C0(o),o.blockedOn===null&&yo.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var d=o[c],g=o[c+1],w=d[Vn]||null;if(typeof g=="function")w||O0(o);else if(w){var A=null;if(g&&g.hasAttribute("formAction")){if(d=g,w=g[Vn]||null)A=w.formAction;else if(Wp(d)!==null)continue}else A=w.action;typeof A=="function"?o[c+1]=A:(o.splice(c,3),c-=3),O0(o)}}}function Kp(n){this._internalRoot=n}id.prototype.render=Kp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(l(409));var o=a.current,c=Fa();Vp(o,c,n,a,null,null)},id.prototype.unmount=Kp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Vp(n.current,2,null,n,null,null),Pf(),a[Kr]=null}};function id(n){this._internalRoot=n}id.prototype.unstable_scheduleHydration=function(n){if(n){var a=Sl();n={blockedOn:null,target:n,priority:a};for(var o=0;o<yo.length&&a!==0&&a<yo[o].priority;o++);yo.splice(o,0,n),o===0&&C0(n)}};var R0=r.version;if(R0!=="19.1.1")throw Error(l(527,R0,"19.1.1"));z.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(l(188)):(n=Object.keys(n).join(","),Error(l(268,n)));return n=b(a),n=n!==null?x(n):null,n=n===null?null:n.stateNode,n};var Dx={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!od.isDisabled&&od.supportsFiber)try{Da=od.inject(Dx),Qt=od}catch{}}return fd.createRoot=function(n,a){if(!f(n))throw Error(l(299));var o=!1,c="",d=_f,g=d1,w=sp,A=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(A=a.unstable_transitionCallbacks)),a=_0(n,1,!1,null,null,o,c,d,g,w,A,null),n[Kr]=a.current,jp(n),new Kp(a)},fd.hydrateRoot=function(n,a,o){if(!f(n))throw Error(l(299));var c=!1,d="",g=_f,w=d1,A=sp,L=null,J=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(A=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(L=o.unstable_transitionCallbacks),o.formState!==void 0&&(J=o.formState)),a=_0(n,1,!0,a,o??null,c,d,g,w,A,L,J),a.context=Gp(null),o=a.current,c=Fa(),c=Ro(c),d=li(c),d.callback=null,Qi(o,d,c),o=c,a.current.lanes=o,bt(a,o),qr(a),n[Kr]=a.current,jp(n),new id(a)},fd.version="19.1.1",fd}var hw;function m3(){if(hw)return Y0.exports;hw=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(t){console.error(t)}}return e(),Y0.exports=p3(),Y0.exports}var g3=m3();const y3=Pu(g3);/*!
|
|
43
|
+
`+bn+e+Xt}var Dn=!1;function xn(e,a){if(!e||Dn)return"";Dn=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ae){var ee=ae}Reflect.construct(e,[],he)}else{try{he.call()}catch(ae){ee=ae}e.call(he.prototype)}}else{try{throw Error()}catch(ae){ee=ae}(he=e())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ae){if(ae&&ee&&typeof ae.stack=="string")return[ae.stack,ee.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),x=m[0],S=m[1];if(x&&S){var P=x.split(`
|
|
44
|
+
`),J=S.split(`
|
|
45
|
+
`);for(d=u=0;u<P.length&&!P[u].includes("DetermineComponentFrameRoot");)u++;for(;d<J.length&&!J[d].includes("DetermineComponentFrameRoot");)d++;if(u===P.length||d===J.length)for(u=P.length-1,d=J.length-1;1<=u&&0<=d&&P[u]!==J[d];)d--;for(;1<=u&&0<=d;u--,d--)if(P[u]!==J[d]){if(u!==1||d!==1)do if(u--,d--,0>d||P[u]!==J[d]){var oe=`
|
|
46
|
+
`+P[u].replace(" at new "," at ");return e.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",e.displayName)),oe}while(1<=u&&0<=d);break}}}finally{Dn=!1,Error.prepareStackTrace=o}return(o=e?e.displayName||e.name:"")?Mn(o):""}function Ra(e,a){switch(e.tag){case 26:case 27:case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return e.child!==a&&a!==null?Mn("Suspense Fallback"):Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 15:return xn(e.type,!1);case 11:return xn(e.type.render,!1);case 1:return xn(e.type,!0);case 31:return Mn("Activity");default:return""}}function Va(e){try{var a="",o=null;do a+=Ra(e,o),o=e,e=e.return;while(e);return a}catch(u){return`
|
|
47
|
+
Error generating stack: `+u.message+`
|
|
48
|
+
`+u.stack}}var Ge=Object.prototype.hasOwnProperty,He=n.unstable_scheduleCallback,Xn=n.unstable_cancelCallback,ra=n.unstable_shouldYield,hr=n.unstable_requestPaint,Bt=n.unstable_now,pr=n.unstable_getCurrentPriorityLevel,zr=n.unstable_ImmediatePriority,ia=n.unstable_UserBlockingPriority,jr=n.unstable_NormalPriority,Yl=n.unstable_LowPriority,Is=n.unstable_IdlePriority,Gl=n.log,Vl=n.unstable_setDisableYieldValue,ai=null,Gn=null;function $a(e){if(typeof Gl=="function"&&Vl(e),Gn&&typeof Gn.setStrictMode=="function")try{Gn.setStrictMode(ai,e)}catch{}}var Vn=Math.clz32?Math.clz32:gh,Yc=Math.log,Gc=Math.LN2;function gh(e){return e>>>=0,e===0?32:31-(Yc(e)/Gc|0)|0}var ge=256,ze=262144,bt=4194304;function At(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function wn(e,a,o){var u=e.pendingLanes;if(u===0)return 0;var d=0,m=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var S=u&134217727;return S!==0?(u=S&~m,u!==0?d=At(u):(x&=S,x!==0?d=At(x):o||(o=S&~e,o!==0&&(d=At(o))))):(S=u&~m,S!==0?d=At(S):x!==0?d=At(x):o||(o=u&~e,o!==0&&(d=At(o)))),d===0?0:a!==0&&a!==d&&(a&m)===0&&(m=d&-d,o=a&-a,m>=o||m===32&&(o&4194048)!==0)?a:d}function mr(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function $l(e,a){switch(e){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 Vc(){var e=bt;return bt<<=1,(bt&62914560)===0&&(bt=4194304),e}function Ls(e){for(var a=[],o=0;31>o;o++)a.push(e);return a}function qi(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zl(e,a,o,u,d,m){var x=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var S=e.entanglements,P=e.expirationTimes,J=e.hiddenUpdates;for(o=x&~o;0<o;){var oe=31-Vn(o),he=1<<oe;S[oe]=0,P[oe]=-1;var ee=J[oe];if(ee!==null)for(J[oe]=null,oe=0;oe<ee.length;oe++){var ae=ee[oe];ae!==null&&(ae.lane&=-536870913)}o&=~he}u!==0&&$c(e,u,0),m!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=m&~(x&~a))}function $c(e,a,o){e.pendingLanes|=a,e.suspendedLanes&=~a;var u=31-Vn(a);e.entangledLanes|=a,e.entanglements[u]=e.entanglements[u]|1073741824|o&261930}function Ql(e,a){var o=e.entangledLanes|=a;for(e=e.entanglements;o;){var u=31-Vn(o),d=1<<u;d&a|e[u]&a&&(e[u]|=a),o&=~d}}function Wl(e,a){var o=a&-a;return o=(o&42)!==0?1:zs(o),(o&(e.suspendedLanes|a))!==0?0:o}function zs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function yh(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jg(){var e=z.p;return e!==0?e:(e=window.event,e===void 0?32:Y0(e.type))}function Pg(e,a){var o=z.p;try{return z.p=e,a()}finally{z.p=o}}var Fi=Math.random().toString(36).slice(2),$n="__reactFiber$"+Fi,ha="__reactProps$"+Fi,Do="__reactContainer$"+Fi,vh="__reactEvents$"+Fi,Xb="__reactListeners$"+Fi,Kb="__reactHandles$"+Fi,Ug="__reactResources$"+Fi,Xl="__reactMarker$"+Fi;function bh(e){delete e[$n],delete e[ha],delete e[vh],delete e[Xb],delete e[Kb]}function ri(e){var a=e[$n];if(a)return a;for(var o=e.parentNode;o;){if(a=o[Do]||o[$n]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(e=R0(e);e!==null;){if(o=e[$n])return o;e=R0(e)}return a}e=o,o=e.parentNode}return null}function js(e){if(e=e[$n]||e[Do]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function Yi(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(l(33))}function Ps(e){var a=e[Ug];return a||(a=e[Ug]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Un(e){e[Xl]=!0}var Hg=new Set,xh={};function Gi(e,a){ko(e,a),ko(e+"Capture",a)}function ko(e,a){for(xh[e]=a,e=0;e<a.length;e++)Hg.add(a[e])}var Jb=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]*$"),Bg={},qg={};function ex(e){return Ge.call(qg,e)?!0:Ge.call(Bg,e)?!1:Jb.test(e)?qg[e]=!0:(Bg[e]=!0,!1)}function Kl(e,a,o){if(ex(a))if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+o)}}function Jl(e,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+o)}}function Pr(e,a,o,u){if(u===null)e.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}e.setAttributeNS(a,o,""+u)}}function pa(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fg(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Yg(e,a,o){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var d=u.get,m=u.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return d.call(this)},set:function(x){o=""+x,m.call(this,x)}}),Object.defineProperty(e,a,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function Us(e){if(!e._valueTracker){var a=Fg(e)?"checked":"value";e._valueTracker=Yg(e,a,""+e[a])}}function wh(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var o=a.getValue(),u="";return e&&(u=Fg(e)?e.checked?"true":"false":e.value),e=u,e!==o?(a.setValue(e),!0):!1}function Zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Gg=/[\n"\\]/g;function Ma(e){return e.replace(Gg,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function eu(e,a,o,u,d,m,x,S){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),a!=null?x==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+pa(a)):e.value!==""+pa(a)&&(e.value=""+pa(a)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),a!=null?Qc(e,x,pa(a)):o!=null?Qc(e,x,pa(o)):u!=null&&e.removeAttribute("value"),d==null&&m!=null&&(e.defaultChecked=!!m),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+pa(S):e.removeAttribute("name")}function Vg(e,a,o,u,d,m,x,S){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),a!=null||o!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){Us(e);return}o=o!=null?""+pa(o):"",a=a!=null?""+pa(a):o,S||a===e.value||(e.value=a),e.defaultValue=a}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=S?e.checked:!!u,e.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Us(e)}function Qc(e,a,o){a==="number"&&Zc(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function Vi(e,a,o,u){if(e=e.options,a){a={};for(var d=0;d<o.length;d++)a["$"+o[d]]=!0;for(o=0;o<e.length;o++)d=a.hasOwnProperty("$"+e[o].value),e[o].selected!==d&&(e[o].selected=d),d&&u&&(e[o].defaultSelected=!0)}else{for(o=""+pa(o),a=null,d=0;d<e.length;d++){if(e[d].value===o){e[d].selected=!0,u&&(e[d].defaultSelected=!0);return}a!==null||e[d].disabled||(a=e[d])}a!==null&&(a.selected=!0)}}function Wc(e,a,o){if(a!=null&&(a=""+pa(a),a!==e.value&&(e.value=a),o==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=o!=null?""+pa(o):""}function No(e,a,o,u){if(a==null){if(u!=null){if(o!=null)throw Error(l(92));if(Q(u)){if(1<u.length)throw Error(l(93));u=u[0]}o=u}o==null&&(o=""),a=o}o=pa(a),e.defaultValue=o,u=e.textContent,u===o&&u!==""&&u!==null&&(e.value=u),Us(e)}function Io(e,a){if(a){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=a;return}}e.textContent=a}var $g=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 Zg(e,a,o){var u=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":u?e.setProperty(a,o):typeof o!="number"||o===0||$g.has(a)?a==="float"?e.cssFloat=o:e[a]=(""+o).trim():e[a]=o+"px"}function _h(e,a,o){if(a!=null&&typeof a!="object")throw Error(l(62));if(e=e.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var d in a)u=a[d],a.hasOwnProperty(d)&&o[d]!==u&&Zg(e,d,u)}else for(var m in a)a.hasOwnProperty(m)&&Zg(e,m,a[m])}function Xc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qg=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"]]),Wg=/^[\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 Kc(e){return Wg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ii(){}var Sh=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hs=null,Bs=null;function Xg(e){var a=js(e);if(a&&(e=a.stateNode)){var o=e[ha]||null;e:switch(e=a.stateNode,a.type){case"input":if(eu(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Ma(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var u=o[a];if(u!==e&&u.form===e.form){var d=u[ha]||null;if(!d)throw Error(l(90));eu(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<o.length;a++)u=o[a],u.form===e.form&&wh(u)}break e;case"textarea":Wc(e,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Vi(e,!!o.multiple,a,!1)}}}var Ch=!1;function ef(e,a,o){if(Ch)return e(a,o);Ch=!0;try{var u=e(a);return u}finally{if(Ch=!1,(Hs!==null||Bs!==null)&&(rd(),Hs&&(a=Hs,e=Bs,Bs=Hs=null,Xg(a),e)))for(a=0;a<e.length;a++)Xg(e[a])}}function tu(e,a){var o=e.stateNode;if(o===null)return null;var u=o[ha]||null;if(u===null)return null;o=u[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":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(l(231,a,typeof o));return o}var oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eh=!1;if(oi)try{var nu={};Object.defineProperty(nu,"passive",{get:function(){Eh=!0}}),window.addEventListener("test",nu,nu),window.removeEventListener("test",nu,nu)}catch{Eh=!1}var $i=null,Zt=null,zt=null;function Kg(){if(zt)return zt;var e,a=Zt,o=a.length,u,d="value"in $i?$i.value:$i.textContent,m=d.length;for(e=0;e<o&&a[e]===d[e];e++);var x=o-e;for(u=1;u<=x&&a[o-u]===d[m-u];u++);return zt=d.slice(e,1<u?1-u:void 0)}function tf(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function nf(){return!0}function Jg(){return!1}function ma(e){function a(o,u,d,m,x){this._reactName=o,this._targetInst=d,this.type=u,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(o=e[S],this[S]=o?o(m):m[S]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?nf:Jg,this.isPropagationStopped=Jg,this}return A(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=nf)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=nf)},persist:function(){},isPersistent:nf}),a}var Lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},au=ma(Lo),ru=A({},Lo,{view:0,detail:0}),Zn=ma(ru),iu,si,qs,Fs=A({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kt,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qs&&(qs&&e.type==="mousemove"?(iu=e.screenX-qs.screenX,si=e.screenY-qs.screenY):si=iu=0,qs=e),iu)},movementY:function(e){return"movementY"in e?e.movementY:si}}),Da=ma(Fs),e1=A({},Fs,{dataTransfer:0}),t1=ma(e1),n1=A({},ru,{relatedTarget:0}),af=ma(n1),a1=A({},Lo,{animationName:0,elapsedTime:0,pseudoElement:0}),r1=ma(a1),ka=A({},Lo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tx=ma(ka),Za=A({},Lo,{data:0}),i1=ma(Za),o1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zi={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"},rf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ah(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=rf[e])?!!a[e]:!1}function Kt(){return Ah}var Qi=A({},ru,{key:function(e){if(e.key){var a=o1[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=tf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zi[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kt,charCode:function(e){return e.type==="keypress"?tf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Th=ma(Qi),nx=A({},Fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=ma(nx),ax=A({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kt}),rx=ma(ax),ix=A({},Lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),s1=ma(ix),sf=A({},Fs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ys=ma(sf),ox=A({},Lo,{newState:0,oldState:0}),l1=ma(ox),u1=[9,13,27,32],ou=oi&&"CompositionEvent"in window,zo=null;oi&&"documentMode"in document&&(zo=document.documentMode);var c1=oi&&"TextEvent"in window&&!zo,f1=oi&&(!ou||zo&&8<zo&&11>=zo),lf=" ",uf=!1;function d1(e,a){switch(e){case"keyup":return u1.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Rh(e,a){switch(e){case"compositionend":return Oh(a);case"keypress":return a.which!==32?null:(uf=!0,lf);case"textInput":return e=a.data,e===lf&&uf?null:e;default:return null}}function su(e,a){if(Hn)return e==="compositionend"||!ou&&d1(e,a)?(e=Kg(),zt=Zt=$i=null,Hn=!1,e):null;switch(e){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 f1&&a.locale!=="ko"?null:a.data;default:return null}}var h1={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 Mh(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!h1[e.type]:a==="textarea"}function p1(e,a,o,u){Hs?Bs?Bs.push(u):Bs=[u]:Hs=u,a=ls(a,"onChange"),0<a.length&&(o=new au("onChange","change",null,o,u),e.push({event:o,listeners:a}))}var lu=null,uu=null;function sx(e){w0(e,0)}function cf(e){var a=Yi(e);if(wh(a))return e}function jo(e,a){if(e==="change")return a}var m1=!1;if(oi){var Dh;if(oi){var cu="oninput"in document;if(!cu){var kh=document.createElement("div");kh.setAttribute("oninput","return;"),cu=typeof kh.oninput=="function"}Dh=cu}else Dh=!1;m1=Dh&&(!document.documentMode||9<document.documentMode)}function li(){lu&&(lu.detachEvent("onpropertychange",fu),uu=lu=null)}function fu(e){if(e.propertyName==="value"&&cf(uu)){var a=[];p1(a,uu,e,Jc(e)),ef(sx,a)}}function lx(e,a,o){e==="focusin"?(li(),lu=a,uu=o,lu.attachEvent("onpropertychange",fu)):e==="focusout"&&li()}function ux(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cf(uu)}function cx(e,a){if(e==="click")return cf(a)}function Gs(e,a){if(e==="input"||e==="change")return cf(a)}function gr(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var ga=typeof Object.is=="function"?Object.is:gr;function du(e,a){if(ga(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var o=Object.keys(e),u=Object.keys(a);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var d=o[u];if(!Ge.call(a,d)||!ga(e[d],a[d]))return!1}return!0}function g1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function y1(e,a){var o=g1(e);e=0;for(var u;o;){if(o.nodeType===3){if(u=e+o.textContent.length,e<=a&&u>=a)return{node:o,offset:a-e};e=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=g1(o)}}function v1(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?v1(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function b1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=Zc(e.document);a instanceof e.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)e=a.contentWindow;else break;a=Zc(e.document)}return a}function Wi(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var V=oi&&"documentMode"in document&&11>=document.documentMode,ie=null,ne=null,Ne=null,rt=!1;function Tt(e,a,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;rt||ie==null||ie!==Zc(u)||(u=ie,"selectionStart"in u&&Wi(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ne&&du(Ne,u)||(Ne=u,u=ls(ne,"onSelect"),0<u.length&&(a=new au("onSelect","select",null,a,o),e.push({event:a,listeners:u}),a.target=ie)))}function tn(e,a){var o={};return o[e.toLowerCase()]=a.toLowerCase(),o["Webkit"+e]="webkit"+a,o["Moz"+e]="moz"+a,o}var Ot={animationend:tn("Animation","AnimationEnd"),animationiteration:tn("Animation","AnimationIteration"),animationstart:tn("Animation","AnimationStart"),transitionrun:tn("Transition","TransitionRun"),transitionstart:tn("Transition","TransitionStart"),transitioncancel:tn("Transition","TransitionCancel"),transitionend:tn("Transition","TransitionEnd")},hu={},x1={};oi&&(x1=document.createElement("div").style,"AnimationEvent"in window||(delete Ot.animationend.animation,delete Ot.animationiteration.animation,delete Ot.animationstart.animation),"TransitionEvent"in window||delete Ot.transitionend.transition);function Bn(e){if(hu[e])return hu[e];if(!Ot[e])return e;var a=Ot[e],o;for(o in a)if(a.hasOwnProperty(o)&&o in x1)return hu[e]=a[o];return e}var pu=Bn("animationend"),w1=Bn("animationiteration"),Po=Bn("animationstart"),ff=Bn("transitionrun"),df=Bn("transitionstart"),jt=Bn("transitioncancel"),_1=Bn("transitionend"),Nh=new Map,Vs="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(" ");Vs.push("scrollEnd");function yr(e,a){Nh.set(e,a),Gi(a,[e])}var hf=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",e);return}console.error(e)},Qa=[],ui=0,Ur=0;function Uo(){for(var e=ui,a=Ur=ui=0;a<e;){var o=Qa[a];Qa[a++]=null;var u=Qa[a];Qa[a++]=null;var d=Qa[a];Qa[a++]=null;var m=Qa[a];if(Qa[a++]=null,u!==null&&d!==null){var x=u.pending;x===null?d.next=d:(d.next=x.next,x.next=d),u.pending=d}m!==0&&Ih(o,d,m)}}function mu(e,a,o,u){Qa[ui++]=e,Qa[ui++]=a,Qa[ui++]=o,Qa[ui++]=u,Ur|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function $s(e,a,o,u){return mu(e,a,o,u),Ho(e)}function Xi(e,a){return mu(e,null,null,a),Ho(e)}function Ih(e,a,o){e.lanes|=o;var u=e.alternate;u!==null&&(u.lanes|=o);for(var d=!1,m=e.return;m!==null;)m.childLanes|=o,u=m.alternate,u!==null&&(u.childLanes|=o),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(d=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,d&&a!==null&&(d=31-Vn(o),e=m.hiddenUpdates,u=e[d],u===null?e[d]=[a]:u.push(a),a.lane=o|536870912),m):null}function Ho(e){if(50<$u)throw $u=0,qp=null,Error(l(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var Bo={};function gu(e,a,o,u){this.tag=e,this.key=o,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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kn(e,a,o,u){return new gu(e,a,o,u)}function Zs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ci(e,a){var o=e.alternate;return o===null?(o=kn(e.tag,a,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=a,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,a=e.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o}function S1(e,a){e.flags&=65011714;var o=e.alternate;return o===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,a=o.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function pf(e,a,o,u,d,m){var x=0;if(u=e,typeof e=="function")Zs(e)&&(x=1);else if(typeof e=="string")x=qx(e,o,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=kn(31,o,a,d),e.elementType=Ee,e.lanes=m,e;case R:return Hr(o.children,d,m,a);case q:x=8,d|=24;break;case Y:return e=kn(12,o,a,d|2),e.elementType=Y,e.lanes=m,e;case ye:return e=kn(13,o,a,d),e.elementType=ye,e.lanes=m,e;case ce:return e=kn(19,o,a,d),e.elementType=ce,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:x=10;break e;case re:x=9;break e;case te:x=11;break e;case X:x=14;break e;case ve:x=16,u=null;break e}x=29,o=Error(l(130,e===null?"null":typeof e,"")),u=null}return a=kn(x,o,a,d),a.elementType=e,a.type=u,a.lanes=m,a}function Hr(e,a,o,u){return e=kn(7,e,u,a),e.lanes=o,e}function Qs(e,a,o){return e=kn(6,e,null,a),e.lanes=o,e}function mf(e){var a=kn(18,null,null,0);return a.stateNode=e,a}function Lh(e,a,o){return a=kn(4,e.children!==null?e.children:[],e.key,a),a.lanes=o,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var zh=new WeakMap;function Wa(e,a){if(typeof e=="object"&&e!==null){var o=zh.get(e);return o!==void 0?o:(a={value:e,source:a,stack:Va(a)},zh.set(e,a),a)}return{value:e,source:a,stack:Va(a)}}var Ws=[],on=0,Nn=null,yu=0,Xa=[],Na=0,Ki=null,Ka=1,ya="";function vr(e,a){Ws[on++]=yu,Ws[on++]=Nn,Nn=e,yu=a}function qo(e,a,o){Xa[Na++]=Ka,Xa[Na++]=ya,Xa[Na++]=Ki,Ki=e;var u=Ka;e=ya;var d=32-Vn(u)-1;u&=~(1<<d),o+=1;var m=32-Vn(a)+d;if(30<m){var x=d-d%5;m=(u&(1<<x)-1).toString(32),u>>=x,d-=x,Ka=1<<32-Vn(a)+d|o<<d|u,ya=m+e}else Ka=1<<m|o<<d|u,ya=e}function Fo(e){e.return!==null&&(vr(e,1),qo(e,1,0))}function Yo(e){for(;e===Nn;)Nn=Ws[--on],Ws[on]=null,yu=Ws[--on],Ws[on]=null;for(;e===Ki;)Ki=Xa[--Na],Xa[Na]=null,ya=Xa[--Na],Xa[Na]=null,Ka=Xa[--Na],Xa[Na]=null}function vu(e,a){Xa[Na++]=Ka,Xa[Na++]=ya,Xa[Na++]=Ki,Ka=a.id,ya=a.overflow,Ki=e}var pn=null,nn=null,_t=!1,Ji=null,Ja=!1,jh=Error(l(519));function br(e){var a=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Kn(Wa(a,e)),jh}function Xs(e){var a=e.stateNode,o=e.type,u=e.memoizedProps;switch(a[$n]=e,a[ha]=u,o){case"dialog":vt("cancel",a),vt("close",a);break;case"iframe":case"object":case"embed":vt("load",a);break;case"video":case"audio":for(o=0;o<rr.length;o++)vt(rr[o],a);break;case"source":vt("error",a);break;case"img":case"image":case"link":vt("error",a),vt("load",a);break;case"details":vt("toggle",a);break;case"input":vt("invalid",a),Vg(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":vt("invalid",a);break;case"textarea":vt("invalid",a),No(a,u.value,u.defaultValue,u.children)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||u.suppressHydrationWarning===!0||E0(a.textContent,o)?(u.popover!=null&&(vt("beforetoggle",a),vt("toggle",a)),u.onScroll!=null&&vt("scroll",a),u.onScrollEnd!=null&&vt("scrollend",a),u.onClick!=null&&(a.onclick=ii),a=!0):a=!1,a||br(e,!0)}function Ph(e){for(pn=e.return;pn;)switch(pn.tag){case 5:case 31:case 13:Ja=!1;return;case 27:case 3:Ja=!0;return;default:pn=pn.return}}function C(e){if(e!==pn)return!1;if(!_t)return Ph(e),_t=!0,!1;var a=e.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||sm(e.type,e.memoizedProps)),o=!o),o&&nn&&br(e),Ph(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));nn=O0(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));nn=O0(e)}else a===27?(a=nn,Ci(e.type)?(e=pm,pm=null,nn=e):nn=a):nn=pn?ir(e.stateNode.nextSibling):null;return!0}function er(){nn=pn=null,_t=!1}function Ks(){var e=Ji;return e!==null&&(Ca===null?Ca=e:Ca.push.apply(Ca,e),Ji=null),e}function Kn(e){Ji===null?Ji=[e]:Ji.push(e)}var ht=k(null),Go=null,fi=null;function eo(e,a,o){W(ht,a._currentValue),a._currentValue=o}function oa(e){e._currentValue=ht.current,F(ht)}function Uh(e,a,o){for(;e!==null;){var u=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),e===o)break;e=e.return}}function Hh(e,a,o,u){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var m=d.dependencies;if(m!==null){var x=d.child;m=m.firstContext;e:for(;m!==null;){var S=m;m=d;for(var P=0;P<a.length;P++)if(S.context===a[P]){m.lanes|=o,S=m.alternate,S!==null&&(S.lanes|=o),Uh(m.return,o,e),u||(x=null);break e}m=S.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(l(341));x.lanes|=o,m=x.alternate,m!==null&&(m.lanes|=o),Uh(x,o,e),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===e){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function Js(e,a,o,u){e=null;for(var d=a,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(l(387));if(x=x.memoizedProps,x!==null){var S=d.type;ga(d.pendingProps.value,x.value)||(e!==null?e.push(S):e=[S])}}else if(d===Me.current){if(x=d.alternate,x===null)throw Error(l(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(rc):e=[rc])}d=d.return}e!==null&&Hh(a,e,o,u),a.flags|=262144}function gf(e){for(e=e.firstContext;e!==null;){if(!ga(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vo(e){Go=e,fi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function an(e){return C1(Go,e)}function yf(e,a){return Go===null&&Vo(e),C1(e,a)}function C1(e,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},fi===null){if(e===null)throw Error(l(308));fi=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else fi=fi.next=a;return o}var fx=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(o,u){e.push(u)}};this.abort=function(){a.aborted=!0,e.forEach(function(o){return o()})}},dx=n.unstable_scheduleCallback,hx=n.unstable_NormalPriority,qt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bh(){return{controller:new fx,data:new Map,refCount:0}}function bu(e){e.refCount--,e.refCount===0&&dx(hx,function(){e.controller.abort()})}var xu=null,qh=0,el=0,tr=null;function px(e,a){if(xu===null){var o=xu=[];qh=0,el=tm(),tr={status:"pending",value:void 0,then:function(u){o.push(u)}}}return qh++,a.then(E1,E1),a}function E1(){if(--qh===0&&xu!==null){tr!==null&&(tr.status="fulfilled");var e=xu;xu=null,el=0,tr=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function xr(e,a){var o=[],u={status:"pending",value:null,reason:null,then:function(d){o.push(d)}};return e.then(function(){u.status="fulfilled",u.value=a;for(var d=0;d<o.length;d++)(0,o[d])(a)},function(d){for(u.status="rejected",u.reason=d,d=0;d<o.length;d++)(0,o[d])(void 0)}),u}var A1=U.S;U.S=function(e,a){Vu=Bt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&px(e,a),A1!==null&&A1(e,a)};var $o=k(null);function Fh(){var e=$o.current;return e!==null?e:Qt.pooledCache}function vf(e,a){a===null?W($o,$o.current):W($o,a.pool)}function T1(){var e=Fh();return e===null?null:{parent:qt._currentValue,pool:e}}var Zo=Error(l(460)),bf=Error(l(474)),xf=Error(l(542)),wf={then:function(){}};function _f(e){return e=e.status,e==="fulfilled"||e==="rejected"}function tl(e,a,o){switch(o=e[o],o===void 0?e.push(a):o!==a&&(a.then(ii,ii),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,O1(e),e;default:if(typeof a.status=="string")a.then(ii,ii);else{if(e=Qt,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=a,e.status="pending",e.then(function(u){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=u}},function(u){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,O1(e),e}throw Qo=a,Zo}}function Br(e){try{var a=e._init;return a(e._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Qo=o,Zo):o}}var Qo=null;function Yh(){if(Qo===null)throw Error(l(459));var e=Qo;return Qo=null,e}function O1(e){if(e===Zo||e===xf)throw Error(l(483))}var va=null,Wo=0;function qr(e){var a=Wo;return Wo+=1,va===null&&(va=[]),tl(va,e,a)}function Jn(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Sf(e,a){throw a.$$typeof===I?Error(l(525)):(e=Object.prototype.toString.call(a),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function Gh(e){function a($,B){if(e){var K=$.deletions;K===null?($.deletions=[B],$.flags|=16):K.push(B)}}function o($,B){if(!e)return null;for(;B!==null;)a($,B),B=B.sibling;return null}function u($){for(var B=new Map;$!==null;)$.key!==null?B.set($.key,$):B.set($.index,$),$=$.sibling;return B}function d($,B){return $=ci($,B),$.index=0,$.sibling=null,$}function m($,B,K){return $.index=K,e?(K=$.alternate,K!==null?(K=K.index,K<B?($.flags|=67108866,B):K):($.flags|=67108866,B)):($.flags|=1048576,B)}function x($){return e&&$.alternate===null&&($.flags|=67108866),$}function S($,B,K,fe){return B===null||B.tag!==6?(B=Qs(K,$.mode,fe),B.return=$,B):(B=d(B,K),B.return=$,B)}function P($,B,K,fe){var $e=K.type;return $e===R?oe($,B,K.props.children,fe,K.key):B!==null&&(B.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===ve&&Br($e)===B.type)?(B=d(B,K.props),Jn(B,K),B.return=$,B):(B=pf(K.type,K.key,K.props,null,$.mode,fe),Jn(B,K),B.return=$,B)}function J($,B,K,fe){return B===null||B.tag!==4||B.stateNode.containerInfo!==K.containerInfo||B.stateNode.implementation!==K.implementation?(B=Lh(K,$.mode,fe),B.return=$,B):(B=d(B,K.children||[]),B.return=$,B)}function oe($,B,K,fe,$e){return B===null||B.tag!==7?(B=Hr(K,$.mode,fe,$e),B.return=$,B):(B=d(B,K),B.return=$,B)}function he($,B,K){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=Qs(""+B,$.mode,K),B.return=$,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return K=pf(B.type,B.key,B.props,null,$.mode,K),Jn(K,B),K.return=$,K;case D:return B=Lh(B,$.mode,K),B.return=$,B;case ve:return B=Br(B),he($,B,K)}if(Q(B)||le(B))return B=Hr(B,$.mode,K,null),B.return=$,B;if(typeof B.then=="function")return he($,qr(B),K);if(B.$$typeof===G)return he($,yf($,B),K);Sf($,B)}return null}function ee($,B,K,fe){var $e=B!==null?B.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return $e!==null?null:S($,B,""+K,fe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case j:return K.key===$e?P($,B,K,fe):null;case D:return K.key===$e?J($,B,K,fe):null;case ve:return K=Br(K),ee($,B,K,fe)}if(Q(K)||le(K))return $e!==null?null:oe($,B,K,fe,null);if(typeof K.then=="function")return ee($,B,qr(K),fe);if(K.$$typeof===G)return ee($,B,yf($,K),fe);Sf($,K)}return null}function ae($,B,K,fe,$e){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return $=$.get(K)||null,S(B,$,""+fe,$e);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case j:return $=$.get(fe.key===null?K:fe.key)||null,P(B,$,fe,$e);case D:return $=$.get(fe.key===null?K:fe.key)||null,J(B,$,fe,$e);case ve:return fe=Br(fe),ae($,B,K,fe,$e)}if(Q(fe)||le(fe))return $=$.get(K)||null,oe(B,$,fe,$e,null);if(typeof fe.then=="function")return ae($,B,K,qr(fe),$e);if(fe.$$typeof===G)return ae($,B,K,yf(B,fe),$e);Sf(B,fe)}return null}function je($,B,K,fe){for(var $e=null,Rt=null,Be=B,ut=B=0,wt=null;Be!==null&&ut<K.length;ut++){Be.index>ut?(wt=Be,Be=null):wt=Be.sibling;var Mt=ee($,Be,K[ut],fe);if(Mt===null){Be===null&&(Be=wt);break}e&&Be&&Mt.alternate===null&&a($,Be),B=m(Mt,B,ut),Rt===null?$e=Mt:Rt.sibling=Mt,Rt=Mt,Be=wt}if(ut===K.length)return o($,Be),_t&&vr($,ut),$e;if(Be===null){for(;ut<K.length;ut++)Be=he($,K[ut],fe),Be!==null&&(B=m(Be,B,ut),Rt===null?$e=Be:Rt.sibling=Be,Rt=Be);return _t&&vr($,ut),$e}for(Be=u(Be);ut<K.length;ut++)wt=ae(Be,$,ut,K[ut],fe),wt!==null&&(e&&wt.alternate!==null&&Be.delete(wt.key===null?ut:wt.key),B=m(wt,B,ut),Rt===null?$e=wt:Rt.sibling=wt,Rt=wt);return e&&Be.forEach(function(xo){return a($,xo)}),_t&&vr($,ut),$e}function Qe($,B,K,fe){if(K==null)throw Error(l(151));for(var $e=null,Rt=null,Be=B,ut=B=0,wt=null,Mt=K.next();Be!==null&&!Mt.done;ut++,Mt=K.next()){Be.index>ut?(wt=Be,Be=null):wt=Be.sibling;var xo=ee($,Be,Mt.value,fe);if(xo===null){Be===null&&(Be=wt);break}e&&Be&&xo.alternate===null&&a($,Be),B=m(xo,B,ut),Rt===null?$e=xo:Rt.sibling=xo,Rt=xo,Be=wt}if(Mt.done)return o($,Be),_t&&vr($,ut),$e;if(Be===null){for(;!Mt.done;ut++,Mt=K.next())Mt=he($,Mt.value,fe),Mt!==null&&(B=m(Mt,B,ut),Rt===null?$e=Mt:Rt.sibling=Mt,Rt=Mt);return _t&&vr($,ut),$e}for(Be=u(Be);!Mt.done;ut++,Mt=K.next())Mt=ae(Be,$,ut,Mt.value,fe),Mt!==null&&(e&&Mt.alternate!==null&&Be.delete(Mt.key===null?ut:Mt.key),B=m(Mt,B,ut),Rt===null?$e=Mt:Rt.sibling=Mt,Rt=Mt);return e&&Be.forEach(function(Wx){return a($,Wx)}),_t&&vr($,ut),$e}function Yt($,B,K,fe){if(typeof K=="object"&&K!==null&&K.type===R&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case j:e:{for(var $e=K.key;B!==null;){if(B.key===$e){if($e=K.type,$e===R){if(B.tag===7){o($,B.sibling),fe=d(B,K.props.children),fe.return=$,$=fe;break e}}else if(B.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===ve&&Br($e)===B.type){o($,B.sibling),fe=d(B,K.props),Jn(fe,K),fe.return=$,$=fe;break e}o($,B);break}else a($,B);B=B.sibling}K.type===R?(fe=Hr(K.props.children,$.mode,fe,K.key),fe.return=$,$=fe):(fe=pf(K.type,K.key,K.props,null,$.mode,fe),Jn(fe,K),fe.return=$,$=fe)}return x($);case D:e:{for($e=K.key;B!==null;){if(B.key===$e)if(B.tag===4&&B.stateNode.containerInfo===K.containerInfo&&B.stateNode.implementation===K.implementation){o($,B.sibling),fe=d(B,K.children||[]),fe.return=$,$=fe;break e}else{o($,B);break}else a($,B);B=B.sibling}fe=Lh(K,$.mode,fe),fe.return=$,$=fe}return x($);case ve:return K=Br(K),Yt($,B,K,fe)}if(Q(K))return je($,B,K,fe);if(le(K)){if($e=le(K),typeof $e!="function")throw Error(l(150));return K=$e.call(K),Qe($,B,K,fe)}if(typeof K.then=="function")return Yt($,B,qr(K),fe);if(K.$$typeof===G)return Yt($,B,yf($,K),fe);Sf($,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,B!==null&&B.tag===6?(o($,B.sibling),fe=d(B,K),fe.return=$,$=fe):(o($,B),fe=Qs(K,$.mode,fe),fe.return=$,$=fe),x($)):o($,B)}return function($,B,K,fe){try{Wo=0;var $e=Yt($,B,K,fe);return va=null,$e}catch(Be){if(Be===Zo||Be===xf)throw Be;var Rt=kn(29,Be,null,$.mode);return Rt.lanes=fe,Rt.return=$,Rt}finally{}}}var to=Gh(!0),nl=Gh(!1),sa=!1;function Cf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vh(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function no(e,a,o){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Dt&2)!==0){var d=u.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a,a=Ho(e),Ih(e,null,o),a}return mu(e,u,a,o),Ho(e)}function al(e,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var u=a.lanes;u&=e.pendingLanes,o|=u,a.lanes=o,Ql(e,o)}}function In(e,a){var o=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var d=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var x={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};m===null?d=m=x:m=m.next=x,o=o.next}while(o!==null);m===null?d=m=a:m=m.next=a}else d=m=a;o={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=a:e.next=a,o.lastBaseUpdate=a}var wu=!1;function rl(){if(wu){var e=tr;if(e!==null)throw e}}function ba(e,a,o,u){wu=!1;var d=e.updateQueue;sa=!1;var m=d.firstBaseUpdate,x=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var P=S,J=P.next;P.next=null,x===null?m=J:x.next=J,x=P;var oe=e.alternate;oe!==null&&(oe=oe.updateQueue,S=oe.lastBaseUpdate,S!==x&&(S===null?oe.firstBaseUpdate=J:S.next=J,oe.lastBaseUpdate=P))}if(m!==null){var he=d.baseState;x=0,oe=J=P=null,S=m;do{var ee=S.lane&-536870913,ae=ee!==S.lane;if(ae?(xt&ee)===ee:(u&ee)===ee){ee!==0&&ee===el&&(wu=!0),oe!==null&&(oe=oe.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var je=e,Qe=S;ee=a;var Yt=o;switch(Qe.tag){case 1:if(je=Qe.payload,typeof je=="function"){he=je.call(Yt,he,ee);break e}he=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Qe.payload,ee=typeof je=="function"?je.call(Yt,he,ee):je,ee==null)break e;he=A({},he,ee);break e;case 2:sa=!0}}ee=S.callback,ee!==null&&(e.flags|=64,ae&&(e.flags|=8192),ae=d.callbacks,ae===null?d.callbacks=[ee]:ae.push(ee))}else ae={lane:ee,tag:S.tag,payload:S.payload,callback:S.callback,next:null},oe===null?(J=oe=ae,P=he):oe=oe.next=ae,x|=ee;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;ae=S,S=ae.next,ae.next=null,d.lastBaseUpdate=ae,d.shared.pending=null}}while(!0);oe===null&&(P=he),d.baseState=P,d.firstBaseUpdate=J,d.lastBaseUpdate=oe,m===null&&(d.shared.lanes=0),uo|=x,e.lanes=x,e.memoizedState=he}}function Ef(e,a){if(typeof e!="function")throw Error(l(191,e));e.call(a)}function _u(e,a){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)Ef(o[e],a)}var nr=k(null),Su=k(0);function ea(e,a){e=$r,W(Su,e),W(nr,a),$r=e|a.baseLanes}function Cu(){W(Su,$r),W(nr,nr.current)}function $h(){$r=Su.current,F(nr),F(Su)}var Ia=k(null),ar=null;function Fr(e){var a=e.alternate;W(_n,_n.current&1),W(Ia,e),ar===null&&(a===null||nr.current!==null||a.memoizedState!==null)&&(ar=e)}function Zh(e){W(_n,_n.current),W(Ia,e),ar===null&&(ar=e)}function il(e){e.tag===22?(W(_n,_n.current),W(Ia,e),ar===null&&(ar=e)):di()}function di(){W(_n,_n.current),W(Ia,Ia.current)}function La(e){F(Ia),ar===e&&(ar=null),F(_n)}var _n=k(0);function ao(e){for(var a=e;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||El(o)||hm(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var hi=0,st=null,Nt=null,Sn=null,Af=!1,ol=!1,Xo=!1,Eu=0,Ko=0,sl=null,Qh=0;function un(){throw Error(l(321))}function Tf(e,a){if(a===null)return!1;for(var o=0;o<a.length&&o<e.length;o++)if(!ga(e[o],a[o]))return!1;return!0}function Of(e,a,o,u,d,m){return hi=m,st=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,U.H=e===null||e.memoizedState===null?cp:fl,Xo=!1,m=o(u,d),Xo=!1,ol&&(m=R1(a,o,u,d)),Au(e),m}function Au(e){U.H=zu;var a=Nt!==null&&Nt.next!==null;if(hi=0,Sn=Nt=st=null,Af=!1,Ko=0,sl=null,a)throw Error(l(300));e===null||rn||(e=e.dependencies,e!==null&&gf(e)&&(rn=!0))}function R1(e,a,o,u){st=e;var d=0;do{if(ol&&(sl=null),Ko=0,ol=!1,25<=d)throw Error(l(301));if(d+=1,Sn=Nt=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}U.H=fp,m=a(o,u)}while(ol);return m}function M1(){var e=U.H,a=e.useState()[0];return a=typeof a.then=="function"?Jo(a):a,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(st.flags|=1024),a}function Rf(){var e=Eu!==0;return Eu=0,e}function Wh(e,a,o){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~o}function Mf(e){if(Af){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Af=!1}hi=0,Sn=Nt=st=null,ol=!1,Ko=Eu=0,sl=null}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?st.memoizedState=Sn=e:Sn=Sn.next=e,Sn}function cn(){if(Nt===null){var e=st.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var a=Sn===null?st.memoizedState:Sn.next;if(a!==null)Sn=a,Nt=e;else{if(e===null)throw st.alternate===null?Error(l(467)):Error(l(310));Nt=e,e={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Sn===null?st.memoizedState=Sn=e:Sn=Sn.next=e}return Sn}function Tu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jo(e){var a=Ko;return Ko+=1,sl===null&&(sl=[]),e=tl(sl,e,a),a=st,(Sn===null?a.memoizedState:Sn.next)===null&&(a=a.alternate,U.H=a===null||a.memoizedState===null?cp:fl),e}function Df(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Jo(e);if(e.$$typeof===G)return an(e)}throw Error(l(438,String(e)))}function Ou(e){var a=null,o=st.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var u=st.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=Tu(),st.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(e),u=0;u<e;u++)o[u]=Re;return a.index++,o}function at(e,a){return typeof a=="function"?a(e):a}function kf(e){var a=cn();return Xh(a,Nt,e)}function Xh(e,a,o){var u=e.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=o;var d=e.baseQueue,m=u.pending;if(m!==null){if(d!==null){var x=d.next;d.next=m.next,m.next=x}a.baseQueue=d=m,u.pending=null}if(m=e.baseState,d===null)e.memoizedState=m;else{a=d.next;var S=x=null,P=null,J=a,oe=!1;do{var he=J.lane&-536870913;if(he!==J.lane?(xt&he)===he:(hi&he)===he){var ee=J.revertLane;if(ee===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),he===el&&(oe=!0);else if((hi&ee)===ee){J=J.next,ee===el&&(oe=!0);continue}else he={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},P===null?(S=P=he,x=m):P=P.next=he,st.lanes|=ee,uo|=ee;he=J.action,Xo&&o(m,he),m=J.hasEagerState?J.eagerState:o(m,he)}else ee={lane:he,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},P===null?(S=P=ee,x=m):P=P.next=ee,st.lanes|=he,uo|=he;J=J.next}while(J!==null&&J!==a);if(P===null?x=m:P.next=S,!ga(m,e.memoizedState)&&(rn=!0,oe&&(o=tr,o!==null)))throw o;e.memoizedState=m,e.baseState=x,e.baseQueue=P,u.lastRenderedState=m}return d===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function es(e){var a=cn(),o=a.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=e;var u=o.dispatch,d=o.pending,m=a.memoizedState;if(d!==null){o.pending=null;var x=d=d.next;do m=e(m,x.action),x=x.next;while(x!==d);ga(m,a.memoizedState)||(rn=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),o.lastRenderedState=m}return[m,u]}function Kh(e,a,o){var u=st,d=cn(),m=_t;if(m){if(o===void 0)throw Error(l(407));o=o()}else o=a();var x=!ga((Nt||d).memoizedState,o);if(x&&(d.memoizedState=o,rn=!0),d=d.queue,ap(za.bind(null,u,d,e),[e]),d.getSnapshot!==a||x||Sn!==null&&Sn.memoizedState.tag&1){if(u.flags|=2048,ll(9,{destroy:void 0},k1.bind(null,u,d,o,a),null),Qt===null)throw Error(l(349));m||(hi&127)!==0||D1(u,a,o)}return o}function D1(e,a,o){e.flags|=16384,e={getSnapshot:a,value:o},a=st.updateQueue,a===null?(a=Tu(),st.updateQueue=a,a.stores=[e]):(o=a.stores,o===null?a.stores=[e]:o.push(e))}function k1(e,a,o,u){a.value=o,a.getSnapshot=u,N1(a)&&Ru(e)}function za(e,a,o){return o(function(){N1(a)&&Ru(e)})}function N1(e){var a=e.getSnapshot;e=e.value;try{var o=a();return!ga(e,o)}catch{return!0}}function Ru(e){var a=Xi(e,2);a!==null&&Ea(a,e,2)}function Mu(e){var a=la();if(typeof e=="function"){var o=e;if(e=o(),Xo){$a(!0);try{o()}finally{$a(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:at,lastRenderedState:e},a}function Jh(e,a,o,u){return e.baseState=o,Xh(e,Nt,typeof u=="function"?u:at)}function I1(e,a,o,u,d){if(ns(e))throw Error(l(485));if(e=a.action,e!==null){var m={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};U.T!==null?o(!0):m.isTransition=!1,u(m),o=a.pending,o===null?(m.next=a.pending=m,xa(a,m)):(m.next=o.next,a.pending=o.next=m)}}function xa(e,a){var o=a.action,u=a.payload,d=e.state;if(a.isTransition){var m=U.T,x={};U.T=x;try{var S=o(d,u),P=U.S;P!==null&&P(x,S),pi(e,a,S)}catch(J){If(e,a,J)}finally{m!==null&&x.types!==null&&(m.types=x.types),U.T=m}}else try{m=o(d,u),pi(e,a,m)}catch(J){If(e,a,J)}}function pi(e,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){Nf(e,a,u)},function(u){return If(e,a,u)}):Nf(e,a,o)}function Nf(e,a,o){a.status="fulfilled",a.value=o,Du(a),e.state=o,a=e.pending,a!==null&&(o=a.next,o===a?e.pending=null:(o=o.next,a.next=o,xa(e,o)))}function If(e,a,o){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=o,Du(a),a=a.next;while(a!==u)}e.action=null}function Du(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function ep(e,a){return a}function Lf(e,a){if(_t){var o=Qt.formState;if(o!==null){e:{var u=st;if(_t){if(nn){t:{for(var d=nn,m=Ja;d.nodeType!==8;){if(!m){d=null;break t}if(d=ir(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){nn=ir(d.nextSibling),u=d.data==="F!";break e}}br(u)}u=!1}u&&(a=o[0])}}return o=la(),o.memoizedState=o.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ep,lastRenderedState:a},o.queue=u,o=up.bind(null,st,u),u.dispatch=o,u=Mu(!1),m=Bf.bind(null,st,!1,u.queue),u=la(),d={state:a,dispatch:null,action:e,pending:null},u.queue=d,o=I1.bind(null,st,d,m,o),d.dispatch=o,u.memoizedState=e,[a,o,!1]}function tp(e){var a=cn();return zf(a,Nt,e)}function zf(e,a,o){if(a=Xh(e,a,ep)[0],e=kf(at)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=Jo(a)}catch(x){throw x===Zo?xf:x}else u=a;a=cn();var d=a.queue,m=d.dispatch;return o!==a.memoizedState&&(st.flags|=2048,ll(9,{destroy:void 0},np.bind(null,d,o),null)),[u,m,e]}function np(e,a){e.action=a}function mi(e){var a=cn(),o=Nt;if(o!==null)return zf(a,o,e);cn(),a=a.memoizedState,o=cn();var u=o.queue.dispatch;return o.memoizedState=e,[a,u,!1]}function ll(e,a,o,u){return e={tag:e,create:o,deps:u,inst:a,next:null},a=st.updateQueue,a===null&&(a=Tu(),st.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=e.next=e:(u=o.next,o.next=e,e.next=u,a.lastEffect=e),e}function gi(){return cn().memoizedState}function ku(e,a,o,u){var d=la();st.flags|=e,d.memoizedState=ll(1|a,{destroy:void 0},o,u===void 0?null:u)}function Nu(e,a,o,u){var d=cn();u=u===void 0?null:u;var m=d.memoizedState.inst;Nt!==null&&u!==null&&Tf(u,Nt.memoizedState.deps)?d.memoizedState=ll(a,m,o,u):(st.flags|=e,d.memoizedState=ll(1|a,m,o,u))}function jf(e,a){ku(8390656,8,e,a)}function ap(e,a){Nu(2048,8,e,a)}function mx(e){st.flags|=4;var a=st.updateQueue;if(a===null)a=Tu(),st.updateQueue=a,a.events=[e];else{var o=a.events;o===null?a.events=[e]:o.push(e)}}function L1(e){var a=cn().memoizedState;return mx({ref:a,nextImpl:e}),function(){if((Dt&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}function rp(e,a){return Nu(4,2,e,a)}function ip(e,a){return Nu(4,4,e,a)}function z1(e,a){if(typeof a=="function"){e=e();var o=a(e);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function op(e,a,o){o=o!=null?o.concat([e]):null,Nu(4,4,z1.bind(null,a,e),o)}function Pf(){}function ua(e,a){var o=cn();a=a===void 0?null:a;var u=o.memoizedState;return a!==null&&Tf(a,u[1])?u[0]:(o.memoizedState=[e,a],e)}function _r(e,a){var o=cn();a=a===void 0?null:a;var u=o.memoizedState;if(a!==null&&Tf(a,u[1]))return u[0];if(u=e(),Xo){$a(!0);try{e()}finally{$a(!1)}}return o.memoizedState=[u,a],u}function sp(e,a,o){return o===void 0||(hi&1073741824)!==0&&(xt&261930)===0?e.memoizedState=a:(e.memoizedState=o,e=o0(),st.lanes|=e,uo|=e,o)}function j1(e,a,o,u){return ga(o,a)?o:nr.current!==null?(e=sp(e,o,u),ga(e,a)||(rn=!0),e):(hi&42)===0||(hi&1073741824)!==0&&(xt&261930)===0?(rn=!0,e.memoizedState=o):(e=o0(),st.lanes|=e,uo|=e,a)}function Iu(e,a,o,u,d){var m=z.p;z.p=m!==0&&8>m?m:8;var x=U.T,S={};U.T=S,Bf(e,!1,a,o);try{var P=d(),J=U.S;if(J!==null&&J(S,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var oe=xr(P,u);ro(e,a,oe,Ha(e))}else ro(e,a,u,Ha(e))}catch(he){ro(e,a,{then:function(){},status:"rejected",reason:he},Ha())}finally{z.p=m,x!==null&&S.types!==null&&(x.types=S.types),U.T=x}}function ul(){}function Uf(e,a,o,u){if(e.tag!==5)throw Error(l(476));var d=lp(e).queue;Iu(e,d,a,xe,o===null?ul:function(){return P1(e),o(u)})}function lp(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:xe,baseState:xe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:at,lastRenderedState:xe},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:at,lastRenderedState:o},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function P1(e){var a=lp(e);a.next===null&&(a=e.alternate.memoizedState),ro(e,a.next.queue,{},Ha())}function Hf(){return an(rc)}function ts(){return cn().memoizedState}function cl(){return cn().memoizedState}function gx(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ha();e=wr(o);var u=no(a,e,o);u!==null&&(Ea(u,a,o),al(u,a,o)),a={cache:Bh()},e.payload=a;return}a=a.return}}function U1(e,a,o){var u=Ha();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ns(e)?qf(a,o):(o=$s(e,a,o,u),o!==null&&(Ea(o,e,u),Lu(o,a,u)))}function up(e,a,o){var u=Ha();ro(e,a,o,u)}function ro(e,a,o,u){var d={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(ns(e))qf(a,d);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var x=a.lastRenderedState,S=m(x,o);if(d.hasEagerState=!0,d.eagerState=S,ga(S,x))return mu(e,a,d,0),Qt===null&&Uo(),!1}catch{}finally{}if(o=$s(e,a,d,u),o!==null)return Ea(o,e,u),Lu(o,a,u),!0}return!1}function Bf(e,a,o,u){if(u={lane:2,revertLane:tm(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},ns(e)){if(a)throw Error(l(479))}else a=$s(e,o,u,2),a!==null&&Ea(a,e,2)}function ns(e){var a=e.alternate;return e===st||a!==null&&a===st}function qf(e,a){ol=Af=!0;var o=e.pending;o===null?a.next=a:(a.next=o.next,o.next=a),e.pending=a}function Lu(e,a,o){if((o&4194048)!==0){var u=a.lanes;u&=e.pendingLanes,o|=u,a.lanes=o,Ql(e,o)}}var zu={readContext:an,use:Df,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useLayoutEffect:un,useInsertionEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useSyncExternalStore:un,useId:un,useHostTransitionStatus:un,useFormState:un,useActionState:un,useOptimistic:un,useMemoCache:un,useCacheRefresh:un};zu.useEffectEvent=un;var cp={readContext:an,use:Df,useCallback:function(e,a){return la().memoizedState=[e,a===void 0?null:a],e},useContext:an,useEffect:jf,useImperativeHandle:function(e,a,o){o=o!=null?o.concat([e]):null,ku(4194308,4,z1.bind(null,a,e),o)},useLayoutEffect:function(e,a){return ku(4194308,4,e,a)},useInsertionEffect:function(e,a){ku(4,2,e,a)},useMemo:function(e,a){var o=la();a=a===void 0?null:a;var u=e();if(Xo){$a(!0);try{e()}finally{$a(!1)}}return o.memoizedState=[u,a],u},useReducer:function(e,a,o){var u=la();if(o!==void 0){var d=o(a);if(Xo){$a(!0);try{o(a)}finally{$a(!1)}}}else d=a;return u.memoizedState=u.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},u.queue=e,e=e.dispatch=U1.bind(null,st,e),[u.memoizedState,e]},useRef:function(e){var a=la();return e={current:e},a.memoizedState=e},useState:function(e){e=Mu(e);var a=e.queue,o=up.bind(null,st,a);return a.dispatch=o,[e.memoizedState,o]},useDebugValue:Pf,useDeferredValue:function(e,a){var o=la();return sp(o,e,a)},useTransition:function(){var e=Mu(!1);return e=Iu.bind(null,st,e.queue,!0,!1),la().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,o){var u=st,d=la();if(_t){if(o===void 0)throw Error(l(407));o=o()}else{if(o=a(),Qt===null)throw Error(l(349));(xt&127)!==0||D1(u,a,o)}d.memoizedState=o;var m={value:o,getSnapshot:a};return d.queue=m,jf(za.bind(null,u,m,e),[e]),u.flags|=2048,ll(9,{destroy:void 0},k1.bind(null,u,m,o,a),null),o},useId:function(){var e=la(),a=Qt.identifierPrefix;if(_t){var o=ya,u=Ka;o=(u&~(1<<32-Vn(u)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Eu++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=Qh++,a="_"+a+"r_"+o.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:Hf,useFormState:Lf,useActionState:Lf,useOptimistic:function(e){var a=la();a.memoizedState=a.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Bf.bind(null,st,!0,o),o.dispatch=a,[e,a]},useMemoCache:Ou,useCacheRefresh:function(){return la().memoizedState=gx.bind(null,st)},useEffectEvent:function(e){var a=la(),o={impl:e};return a.memoizedState=o,function(){if((Dt&2)!==0)throw Error(l(440));return o.impl.apply(void 0,arguments)}}},fl={readContext:an,use:Df,useCallback:ua,useContext:an,useEffect:ap,useImperativeHandle:op,useInsertionEffect:rp,useLayoutEffect:ip,useMemo:_r,useReducer:kf,useRef:gi,useState:function(){return kf(at)},useDebugValue:Pf,useDeferredValue:function(e,a){var o=cn();return j1(o,Nt.memoizedState,e,a)},useTransition:function(){var e=kf(at)[0],a=cn().memoizedState;return[typeof e=="boolean"?e:Jo(e),a]},useSyncExternalStore:Kh,useId:ts,useHostTransitionStatus:Hf,useFormState:tp,useActionState:tp,useOptimistic:function(e,a){var o=cn();return Jh(o,Nt,e,a)},useMemoCache:Ou,useCacheRefresh:cl};fl.useEffectEvent=L1;var fp={readContext:an,use:Df,useCallback:ua,useContext:an,useEffect:ap,useImperativeHandle:op,useInsertionEffect:rp,useLayoutEffect:ip,useMemo:_r,useReducer:es,useRef:gi,useState:function(){return es(at)},useDebugValue:Pf,useDeferredValue:function(e,a){var o=cn();return Nt===null?sp(o,e,a):j1(o,Nt.memoizedState,e,a)},useTransition:function(){var e=es(at)[0],a=cn().memoizedState;return[typeof e=="boolean"?e:Jo(e),a]},useSyncExternalStore:Kh,useId:ts,useHostTransitionStatus:Hf,useFormState:mi,useActionState:mi,useOptimistic:function(e,a){var o=cn();return Nt!==null?Jh(o,Nt,e,a):(o.baseState=e,[e,o.queue.dispatch])},useMemoCache:Ou,useCacheRefresh:cl};fp.useEffectEvent=L1;function ju(e,a,o,u){a=e.memoizedState,o=o(u,a),o=o==null?a:A({},a,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var dp={enqueueSetState:function(e,a,o){e=e._reactInternals;var u=Ha(),d=wr(u);d.payload=a,o!=null&&(d.callback=o),a=no(e,d,u),a!==null&&(Ea(a,e,u),al(a,e,u))},enqueueReplaceState:function(e,a,o){e=e._reactInternals;var u=Ha(),d=wr(u);d.tag=1,d.payload=a,o!=null&&(d.callback=o),a=no(e,d,u),a!==null&&(Ea(a,e,u),al(a,e,u))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var o=Ha(),u=wr(o);u.tag=2,a!=null&&(u.callback=a),a=no(e,u,o),a!==null&&(Ea(a,e,o),al(a,e,o))}};function hp(e,a,o,u,d,m,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,m,x):a.prototype&&a.prototype.isPureReactComponent?!du(o,u)||!du(d,m):!0}function Yr(e,a,o,u){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,u),a.state!==e&&dp.enqueueReplaceState(a,a.state,null)}function io(e,a){var o=a;if("ref"in a){o={};for(var u in a)u!=="ref"&&(o[u]=a[u])}if(e=e.defaultProps){o===a&&(o=A({},o));for(var d in e)o[d]===void 0&&(o[d]=e[d])}return o}function pp(e){hf(e)}function H1(e){console.error(e)}function mp(e){hf(e)}function Ff(e,a){try{var o=e.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function B1(e,a,o){try{var u=e.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Sr(e,a,o){return o=wr(o),o.tag=3,o.payload={element:null},o.callback=function(){Ff(e,a)},o}function Yf(e){return e=wr(e),e.tag=3,e}function Gf(e,a,o,u){var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var m=u.value;e.payload=function(){return d(m)},e.callback=function(){B1(a,o,u)}}var x=o.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){B1(a,o,u),typeof d!="function"&&(co===null?co=new Set([this]):co.add(this));var S=u.stack;this.componentDidCatch(u.value,{componentStack:S!==null?S:""})})}function gp(e,a,o,u,d){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=o.alternate,a!==null&&Js(a,o,d,!0),o=Ia.current,o!==null){switch(o.tag){case 31:case 13:return ar===null?id():o.alternate===null&&mn===0&&(mn=3),o.flags&=-257,o.flags|=65536,o.lanes=d,u===wf?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([u]):a.add(u),Xp(e,u,d)),!1;case 22:return o.flags|=65536,u===wf?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([u]):o.add(u)),Xp(e,u,d)),!1}throw Error(l(435,o.tag))}return Xp(e,u,d),id(),!1}if(_t)return a=Ia.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,u!==jh&&(e=Error(l(422),{cause:u}),Kn(Wa(e,o)))):(u!==jh&&(a=Error(l(423),{cause:u}),Kn(Wa(a,o))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,u=Wa(u,o),d=Sr(e.stateNode,u,d),In(e,d),mn!==4&&(mn=2)),!1;var m=Error(l(520),{cause:u});if(m=Wa(m,o),Gu===null?Gu=[m]:Gu.push(m),mn!==4&&(mn=2),a===null)return!0;u=Wa(u,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,e=d&-d,o.lanes|=e,e=Sr(o.stateNode,u,e),In(o,e),!1;case 1:if(a=o.type,m=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(co===null||!co.has(m))))return o.flags|=65536,d&=-d,o.lanes|=d,d=Yf(d),Gf(d,e,o,u),In(o,d),!1}o=o.return}while(o!==null);return!1}var dl=Error(l(461)),rn=!1;function Le(e,a,o,u){a.child=e===null?nl(a,null,o,u):to(a,e.child,o,u)}function Pu(e,a,o,u,d){o=o.render;var m=a.ref;if("ref"in u){var x={};for(var S in u)S!=="ref"&&(x[S]=u[S])}else x=u;return Vo(a),u=Of(e,a,o,x,m,d),S=Rf(),e!==null&&!rn?(Wh(e,a,d),Gr(e,a,d)):(_t&&S&&Fo(a),a.flags|=1,Le(e,a,u,d),a.child)}function Vf(e,a,o,u,d){if(e===null){var m=o.type;return typeof m=="function"&&!Zs(m)&&m.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=m,oo(e,a,m,u,d)):(e=pf(o.type,null,u,a,a.mode,d),e.ref=a.ref,e.return=a,a.child=e)}if(m=e.child,!Cp(e,d)){var x=m.memoizedProps;if(o=o.compare,o=o!==null?o:du,o(x,u)&&e.ref===a.ref)return Gr(e,a,d)}return a.flags|=1,e=ci(m,u),e.ref=a.ref,e.return=a,a.child=e}function oo(e,a,o,u,d){if(e!==null){var m=e.memoizedProps;if(du(m,u)&&e.ref===a.ref)if(rn=!1,a.pendingProps=u=m,Cp(e,d))(e.flags&131072)!==0&&(rn=!0);else return a.lanes=e.lanes,Gr(e,a,d)}return vp(e,a,o,u,d)}function q1(e,a,o,u){var d=u.children,m=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|o:o,e!==null){for(u=a.child=e.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;u=d&~m}else u=0,a.child=null;return yp(e,a,m,o,u)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&vf(a,m!==null?m.cachePool:null),m!==null?ea(a,m):Cu(),il(a);else return u=a.lanes=536870912,yp(e,a,m!==null?m.baseLanes|o:o,o,u)}else m!==null?(vf(a,m.cachePool),ea(a,m),di(),a.memoizedState=null):(e!==null&&vf(a,null),Cu(),di());return Le(e,a,d,o),a.child}function as(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function yp(e,a,o,u,d){var m=Fh();return m=m===null?null:{parent:qt._currentValue,pool:m},a.memoizedState={baseLanes:o,cachePool:m},e!==null&&vf(a,null),Cu(),il(a),e!==null&&Js(e,a,u,!0),a.childLanes=d,null}function Ln(e,a){return a=hl({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function F1(e,a,o){return to(a,e.child,null,o),e=Ln(a,a.pendingProps),e.flags|=2,La(a),a.memoizedState=null,e}function yx(e,a,o){var u=a.pendingProps,d=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(_t){if(u.mode==="hidden")return e=Ln(a,u),a.lanes=536870912,as(null,e);if(Zh(a),(e=nn)?(e=dm(e,Ja),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:Ki!==null?{id:Ka,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},o=mf(e),o.return=a,a.child=o,pn=a,nn=null)):e=null,e===null)throw br(a);return a.lanes=536870912,null}return Ln(a,u)}var m=e.memoizedState;if(m!==null){var x=m.dehydrated;if(Zh(a),d)if(a.flags&256)a.flags&=-257,a=F1(e,a,o);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(l(558));else if(rn||Js(e,a,o,!1),d=(o&e.childLanes)!==0,rn||d){if(u=Qt,u!==null&&(x=Wl(u,o),x!==0&&x!==m.retryLane))throw m.retryLane=x,Xi(e,x),Ea(u,e,x),dl;id(),a=F1(e,a,o)}else e=m.treeContext,nn=ir(x.nextSibling),pn=a,_t=!0,Ji=null,Ja=!1,e!==null&&vu(a,e),a=Ln(a,u),a.flags|=4096;return a}return e=ci(e.child,{mode:u.mode,children:u.children}),e.ref=a.ref,a.child=e,e.return=a,e}function Uu(e,a){var o=a.ref;if(o===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(l(284));(e===null||e.ref!==o)&&(a.flags|=4194816)}}function vp(e,a,o,u,d){return Vo(a),o=Of(e,a,o,u,void 0,d),u=Rf(),e!==null&&!rn?(Wh(e,a,d),Gr(e,a,d)):(_t&&u&&Fo(a),a.flags|=1,Le(e,a,o,d),a.child)}function bp(e,a,o,u,d,m){return Vo(a),a.updateQueue=null,o=R1(a,u,o,d),Au(e),u=Rf(),e!==null&&!rn?(Wh(e,a,m),Gr(e,a,m)):(_t&&u&&Fo(a),a.flags|=1,Le(e,a,o,m),a.child)}function Y1(e,a,o,u,d){if(Vo(a),a.stateNode===null){var m=Bo,x=o.contextType;typeof x=="object"&&x!==null&&(m=an(x)),m=new o(u,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=dp,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=u,m.state=a.memoizedState,m.refs={},Cf(a),x=o.contextType,m.context=typeof x=="object"&&x!==null?an(x):Bo,m.state=a.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(ju(a,o,x,u),m.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&dp.enqueueReplaceState(m,m.state,null),ba(a,u,m,d),rl(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(e===null){m=a.stateNode;var S=a.memoizedProps,P=io(o,S);m.props=P;var J=m.context,oe=o.contextType;x=Bo,typeof oe=="object"&&oe!==null&&(x=an(oe));var he=o.getDerivedStateFromProps;oe=typeof he=="function"||typeof m.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,oe||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S||J!==x)&&Yr(a,m,u,x),sa=!1;var ee=a.memoizedState;m.state=ee,ba(a,u,m,d),rl(),J=a.memoizedState,S||ee!==J||sa?(typeof he=="function"&&(ju(a,o,he,u),J=a.memoizedState),(P=sa||hp(a,o,P,u,ee,J,x))?(oe||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=u,a.memoizedState=J),m.props=u,m.state=J,m.context=x,u=P):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{m=a.stateNode,Vh(e,a),x=a.memoizedProps,oe=io(o,x),m.props=oe,he=a.pendingProps,ee=m.context,J=o.contextType,P=Bo,typeof J=="object"&&J!==null&&(P=an(J)),S=o.getDerivedStateFromProps,(J=typeof S=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==he||ee!==P)&&Yr(a,m,u,P),sa=!1,ee=a.memoizedState,m.state=ee,ba(a,u,m,d),rl();var ae=a.memoizedState;x!==he||ee!==ae||sa||e!==null&&e.dependencies!==null&&gf(e.dependencies)?(typeof S=="function"&&(ju(a,o,S,u),ae=a.memoizedState),(oe=sa||hp(a,o,oe,u,ee,ae,P)||e!==null&&e.dependencies!==null&&gf(e.dependencies))?(J||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,ae,P),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,ae,P)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&ee===e.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&ee===e.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=ae),m.props=u,m.state=ae,m.context=P,u=oe):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&ee===e.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&ee===e.memoizedState||(a.flags|=1024),u=!1)}return m=u,Uu(e,a),u=(a.flags&128)!==0,m||u?(m=a.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,e!==null&&u?(a.child=to(a,e.child,null,d),a.child=to(a,null,o,d)):Le(e,a,o,d),a.memoizedState=m.state,e=a.child):e=Gr(e,a,d),e}function G1(e,a,o,u){return er(),a.flags|=256,Le(e,a,o,u),a.child}var xp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cr(e){return{baseLanes:e,cachePool:T1()}}function Qn(e,a,o){return e=e!==null?e.childLanes&~o:0,a&&(e|=Ua),e}function $f(e,a,o){var u=a.pendingProps,d=!1,m=(a.flags&128)!==0,x;if((x=m)||(x=e!==null&&e.memoizedState===null?!1:(_n.current&2)!==0),x&&(d=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,e===null){if(_t){if(d?Fr(a):di(),(e=nn)?(e=dm(e,Ja),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:Ki!==null?{id:Ka,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},o=mf(e),o.return=a,a.child=o,pn=a,nn=null)):e=null,e===null)throw br(a);return hm(e)?a.lanes=32:a.lanes=536870912,null}var S=u.children;return u=u.fallback,d?(di(),d=a.mode,S=hl({mode:"hidden",children:S},d),u=Hr(u,d,o,null),S.return=a,u.return=a,S.sibling=u,a.child=S,u=a.child,u.memoizedState=Cr(o),u.childLanes=Qn(e,x,o),a.memoizedState=xp,as(null,u)):(Fr(a),wp(a,S))}var P=e.memoizedState;if(P!==null&&(S=P.dehydrated,S!==null)){if(m)a.flags&256?(Fr(a),a.flags&=-257,a=_p(e,a,o)):a.memoizedState!==null?(di(),a.child=e.child,a.flags|=128,a=null):(di(),S=u.fallback,d=a.mode,u=hl({mode:"visible",children:u.children},d),S=Hr(S,d,o,null),S.flags|=2,u.return=a,S.return=a,u.sibling=S,a.child=u,to(a,e.child,null,o),u=a.child,u.memoizedState=Cr(o),u.childLanes=Qn(e,x,o),a.memoizedState=xp,a=as(null,u));else if(Fr(a),hm(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var J=x.dgst;x=J,u=Error(l(419)),u.stack="",u.digest=x,Kn({value:u,source:null,stack:null}),a=_p(e,a,o)}else if(rn||Js(e,a,o,!1),x=(o&e.childLanes)!==0,rn||x){if(x=Qt,x!==null&&(u=Wl(x,o),u!==0&&u!==P.retryLane))throw P.retryLane=u,Xi(e,u),Ea(x,e,u),dl;El(S)||id(),a=_p(e,a,o)}else El(S)?(a.flags|=192,a.child=e.child,a=null):(e=P.treeContext,nn=ir(S.nextSibling),pn=a,_t=!0,Ji=null,Ja=!1,e!==null&&vu(a,e),a=wp(a,u.children),a.flags|=4096);return a}return d?(di(),S=u.fallback,d=a.mode,P=e.child,J=P.sibling,u=ci(P,{mode:"hidden",children:u.children}),u.subtreeFlags=P.subtreeFlags&65011712,J!==null?S=ci(J,S):(S=Hr(S,d,o,null),S.flags|=2),S.return=a,u.return=a,u.sibling=S,a.child=u,as(null,u),u=a.child,S=e.child.memoizedState,S===null?S=Cr(o):(d=S.cachePool,d!==null?(P=qt._currentValue,d=d.parent!==P?{parent:P,pool:P}:d):d=T1(),S={baseLanes:S.baseLanes|o,cachePool:d}),u.memoizedState=S,u.childLanes=Qn(e,x,o),a.memoizedState=xp,as(e.child,u)):(Fr(a),o=e.child,e=o.sibling,o=ci(o,{mode:"visible",children:u.children}),o.return=a,o.sibling=null,e!==null&&(x=a.deletions,x===null?(a.deletions=[e],a.flags|=16):x.push(e)),a.child=o,a.memoizedState=null,o)}function wp(e,a){return a=hl({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function hl(e,a){return e=kn(22,e,null,a),e.lanes=0,e}function _p(e,a,o){return to(a,e.child,null,o),e=wp(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function V1(e,a,o){e.lanes|=a;var u=e.alternate;u!==null&&(u.lanes|=a),Uh(e.return,a,o)}function rs(e,a,o,u,d,m){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d,treeForkCount:m}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=o,x.tailMode=d,x.treeForkCount=m)}function Sp(e,a,o){var u=a.pendingProps,d=u.revealOrder,m=u.tail;u=u.children;var x=_n.current,S=(x&2)!==0;if(S?(x=x&1|2,a.flags|=128):x&=1,W(_n,x),Le(e,a,u,o),u=_t?yu:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&V1(e,o,a);else if(e.tag===19)V1(e,o,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(o=a.child,d=null;o!==null;)e=o.alternate,e!==null&&ao(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=a.child,a.child=null):(d=o.sibling,o.sibling=null),rs(a,!1,d,o,m,u);break;case"backwards":case"unstable_legacy-backwards":for(o=null,d=a.child,a.child=null;d!==null;){if(e=d.alternate,e!==null&&ao(e)===null){a.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}rs(a,!0,o,null,m,u);break;case"together":rs(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function Gr(e,a,o){if(e!==null&&(a.dependencies=e.dependencies),uo|=a.lanes,(o&a.childLanes)===0)if(e!==null){if(Js(e,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(l(153));if(a.child!==null){for(e=a.child,o=ci(e,e.pendingProps),a.child=o,o.return=a;e.sibling!==null;)e=e.sibling,o=o.sibling=ci(e,e.pendingProps),o.return=a;o.sibling=null}return a.child}function Cp(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&gf(e)))}function vx(e,a,o){switch(a.tag){case 3:We(a,a.stateNode.containerInfo),eo(a,qt,e.memoizedState.cache),er();break;case 27:case 5:Ke(a);break;case 4:We(a,a.stateNode.containerInfo);break;case 10:eo(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Zh(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(Fr(a),a.flags|=128,null):(o&a.child.childLanes)!==0?$f(e,a,o):(Fr(a),e=Gr(e,a,o),e!==null?e.sibling:null);Fr(a);break;case 19:var d=(e.flags&128)!==0;if(u=(o&a.childLanes)!==0,u||(Js(e,a,o,!1),u=(o&a.childLanes)!==0),d){if(u)return Sp(e,a,o);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),W(_n,_n.current),u)break;return null;case 22:return a.lanes=0,q1(e,a,o,a.pendingProps);case 24:eo(a,qt,e.memoizedState.cache)}return Gr(e,a,o)}function $1(e,a,o){if(e!==null)if(e.memoizedProps!==a.pendingProps)rn=!0;else{if(!Cp(e,o)&&(a.flags&128)===0)return rn=!1,vx(e,a,o);rn=(e.flags&131072)!==0}else rn=!1,_t&&(a.flags&1048576)!==0&&qo(a,yu,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(e=Br(a.elementType),a.type=e,typeof e=="function")Zs(e)?(u=io(e,u),a.tag=1,a=Y1(null,a,e,u,o)):(a.tag=0,a=vp(null,a,e,u,o));else{if(e!=null){var d=e.$$typeof;if(d===te){a.tag=11,a=Pu(null,a,e,u,o);break e}else if(d===X){a.tag=14,a=Vf(null,a,e,u,o);break e}}throw a=de(e)||e,Error(l(306,a,""))}}return a;case 0:return vp(e,a,a.type,a.pendingProps,o);case 1:return u=a.type,d=io(u,a.pendingProps),Y1(e,a,u,d,o);case 3:e:{if(We(a,a.stateNode.containerInfo),e===null)throw Error(l(387));u=a.pendingProps;var m=a.memoizedState;d=m.element,Vh(e,a),ba(a,u,null,o);var x=a.memoizedState;if(u=x.cache,eo(a,qt,u),u!==m.cache&&Hh(a,[qt],o,!0),rl(),u=x.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=G1(e,a,u,o);break e}else if(u!==d){d=Wa(Error(l(424)),a),Kn(d),a=G1(e,a,u,o);break e}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nn=ir(e.firstChild),pn=a,_t=!0,Ji=null,Ja=!0,o=nl(a,null,u,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(er(),u===d){a=Gr(e,a,o);break e}Le(e,a,u,o)}a=a.child}return a;case 26:return Uu(e,a),e===null?(o=k0(a.type,null,a.pendingProps,null))?a.memoizedState=o:_t||(o=a.type,e=a.pendingProps,u=us(_e.current).createElement(o),u[$n]=a,u[ha]=e,Wn(u,o,e),Un(u),a.stateNode=u):a.memoizedState=k0(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return Ke(a),e===null&&_t&&(u=a.stateNode=M0(a.type,a.pendingProps,_e.current),pn=a,Ja=!0,d=nn,Ci(a.type)?(pm=d,nn=ir(u.firstChild)):nn=d),Le(e,a,a.pendingProps.children,o),Uu(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&_t&&((d=u=nn)&&(u=It(u,a.type,a.pendingProps,Ja),u!==null?(a.stateNode=u,pn=a,nn=ir(u.firstChild),Ja=!1,d=!0):d=!1),d||br(a)),Ke(a),d=a.type,m=a.pendingProps,x=e!==null?e.memoizedProps:null,u=m.children,sm(d,m)?u=null:x!==null&&sm(d,x)&&(a.flags|=32),a.memoizedState!==null&&(d=Of(e,a,M1,null,null,o),rc._currentValue=d),Uu(e,a),Le(e,a,u,o),a.child;case 6:return e===null&&_t&&((e=o=nn)&&(o=Nx(o,a.pendingProps,Ja),o!==null?(a.stateNode=o,pn=a,nn=null,e=!0):e=!1),e||br(a)),null;case 13:return $f(e,a,o);case 4:return We(a,a.stateNode.containerInfo),u=a.pendingProps,e===null?a.child=to(a,null,u,o):Le(e,a,u,o),a.child;case 11:return Pu(e,a,a.type,a.pendingProps,o);case 7:return Le(e,a,a.pendingProps,o),a.child;case 8:return Le(e,a,a.pendingProps.children,o),a.child;case 12:return Le(e,a,a.pendingProps.children,o),a.child;case 10:return u=a.pendingProps,eo(a,a.type,u.value),Le(e,a,u.children,o),a.child;case 9:return d=a.type._context,u=a.pendingProps.children,Vo(a),d=an(d),u=u(d),a.flags|=1,Le(e,a,u,o),a.child;case 14:return Vf(e,a,a.type,a.pendingProps,o);case 15:return oo(e,a,a.type,a.pendingProps,o);case 19:return Sp(e,a,o);case 31:return yx(e,a,o);case 22:return q1(e,a,o,a.pendingProps);case 24:return Vo(a),u=an(qt),e===null?(d=Fh(),d===null&&(d=Qt,m=Bh(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=o),d=m),a.memoizedState={parent:u,cache:d},Cf(a),eo(a,qt,d)):((e.lanes&o)!==0&&(Vh(e,a),ba(a,null,null,o),rl()),d=e.memoizedState,m=a.memoizedState,d.parent!==u?(d={parent:u,cache:u},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),eo(a,qt,u)):(u=m.cache,eo(a,qt,u),u!==d.cache&&Hh(a,[qt],o,!0))),Le(e,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(l(156,a.tag))}function yi(e){e.flags|=4}function Zf(e,a,o,u,d){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(u0())e.flags|=8192;else throw Qo=wf,bf}else e.flags&=-16777217}function Ep(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hs(a))if(u0())e.flags|=8192;else throw Qo=wf,bf}function Qf(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?Vc():536870912,e.lanes|=a,vl|=a)}function is(e,a){if(!_t)switch(e.tailMode){case"hidden":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Jt(e){var a=e.alternate!==null&&e.alternate.child===e.child,o=0,u=0;if(a)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=o,a}function Hu(e,a,o){var u=a.pendingProps;switch(Yo(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jt(a),null;case 1:return Jt(a),null;case 3:return o=a.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),oa(qt),Ze(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(C(a)?yi(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Ks())),Jt(a),null;case 26:var d=a.type,m=a.memoizedState;return e===null?(yi(a),m!==null?(Jt(a),Ep(a,m)):(Jt(a),Zf(a,d,null,u,o))):m?m!==e.memoizedState?(yi(a),Jt(a),Ep(a,m)):(Jt(a),a.flags&=-16777217):(e=e.memoizedProps,e!==u&&yi(a),Jt(a),Zf(a,d,e,u,o)),null;case 27:if(kt(a),o=_e.current,d=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==u&&yi(a);else{if(!u){if(a.stateNode===null)throw Error(l(166));return Jt(a),null}e=ue.current,C(a)?Xs(a):(e=M0(d,u,o),a.stateNode=e,yi(a))}return Jt(a),null;case 5:if(kt(a),d=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==u&&yi(a);else{if(!u){if(a.stateNode===null)throw Error(l(166));return Jt(a),null}if(m=ue.current,C(a))Xs(a);else{var x=us(_e.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?x.createElement(d,{is:u.is}):x.createElement(d)}}m[$n]=a,m[ha]=u;e:for(x=a.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===a)break e;for(;x.sibling===null;){if(x.return===null||x.return===a)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}a.stateNode=m;e:switch(Wn(m,d,u),d){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&yi(a)}}return Jt(a),Zf(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,o),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==u&&yi(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(l(166));if(e=_e.current,C(a)){if(e=a.stateNode,o=a.memoizedProps,u=null,d=pn,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}e[$n]=a,e=!!(e.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||E0(e.nodeValue,o)),e||br(a,!0)}else e=us(e).createTextNode(u),e[$n]=a,a.stateNode=e}return Jt(a),null;case 31:if(o=a.memoizedState,e===null||e.memoizedState!==null){if(u=C(a),o!==null){if(e===null){if(!u)throw Error(l(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[$n]=a}else er(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Jt(a),e=!1}else o=Ks(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e)return a.flags&256?(La(a),a):(La(a),null);if((a.flags&128)!==0)throw Error(l(558))}return Jt(a),null;case 13:if(u=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=C(a),u!==null&&u.dehydrated!==null){if(e===null){if(!d)throw Error(l(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(l(317));d[$n]=a}else er(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Jt(a),d=!1}else d=Ks(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(La(a),a):(La(a),null)}return La(a),(a.flags&128)!==0?(a.lanes=o,a):(o=u!==null,e=e!==null&&e.memoizedState!==null,o&&(u=a.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==d&&(u.flags|=2048)),o!==e&&o&&(a.child.flags|=8192),Qf(a,a.updateQueue),Jt(a),null);case 4:return Ze(),e===null&&Ju(a.stateNode.containerInfo),Jt(a),null;case 10:return oa(a.type),Jt(a),null;case 19:if(F(_n),u=a.memoizedState,u===null)return Jt(a),null;if(d=(a.flags&128)!==0,m=u.rendering,m===null)if(d)is(u,!1);else{if(mn!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(m=ao(e),m!==null){for(a.flags|=128,is(u,!1),e=m.updateQueue,a.updateQueue=e,Qf(a,e),a.subtreeFlags=0,e=o,o=a.child;o!==null;)S1(o,e),o=o.sibling;return W(_n,_n.current&1|2),_t&&vr(a,u.treeForkCount),a.child}e=e.sibling}u.tail!==null&&Bt()>nd&&(a.flags|=128,d=!0,is(u,!1),a.lanes=4194304)}else{if(!d)if(e=ao(m),e!==null){if(a.flags|=128,d=!0,e=e.updateQueue,a.updateQueue=e,Qf(a,e),is(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!_t)return Jt(a),null}else 2*Bt()-u.renderingStartTime>nd&&o!==536870912&&(a.flags|=128,d=!0,is(u,!1),a.lanes=4194304);u.isBackwards?(m.sibling=a.child,a.child=m):(e=u.last,e!==null?e.sibling=m:a.child=m,u.last=m)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Bt(),e.sibling=null,o=_n.current,W(_n,d?o&1|2:o&1),_t&&vr(a,u.treeForkCount),e):(Jt(a),null);case 22:case 23:return La(a),$h(),u=a.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(o&536870912)!==0&&(a.flags&128)===0&&(Jt(a),a.subtreeFlags&6&&(a.flags|=8192)):Jt(a),o=a.updateQueue,o!==null&&Qf(a,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048),e!==null&&F($o),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),oa(qt),Jt(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function Ap(e,a){switch(Yo(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return oa(qt),Ze(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return kt(a),null;case 31:if(a.memoizedState!==null){if(La(a),a.alternate===null)throw Error(l(340));er()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(La(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(l(340));er()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return F(_n),null;case 4:return Ze(),null;case 10:return oa(a.type),null;case 22:case 23:return La(a),$h(),e!==null&&F($o),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return oa(qt),null;case 25:return null;default:return null}}function Tp(e,a){switch(Yo(a),a.tag){case 3:oa(qt),Ze();break;case 26:case 27:case 5:kt(a);break;case 4:Ze();break;case 31:a.memoizedState!==null&&La(a);break;case 13:La(a);break;case 19:F(_n);break;case 10:oa(a.type);break;case 22:case 23:La(a),$h(),e!==null&&F($o);break;case 24:oa(qt)}}function pl(e,a){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var d=u.next;o=d;do{if((o.tag&e)===e){u=void 0;var m=o.create,x=o.inst;u=m(),x.destroy=u}o=o.next}while(o!==d)}}catch(S){Ut(a,a.return,S)}}function Er(e,a,o){try{var u=a.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var m=d.next;u=m;do{if((u.tag&e)===e){var x=u.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,d=a;var P=o,J=S;try{J()}catch(oe){Ut(d,P,oe)}}}u=u.next}while(u!==m)}}catch(oe){Ut(a,a.return,oe)}}function Op(e){var a=e.updateQueue;if(a!==null){var o=e.stateNode;try{_u(a,o)}catch(u){Ut(e,e.return,u)}}}function Ar(e,a,o){o.props=io(e.type,e.memoizedProps),o.state=e.memoizedState;try{o.componentWillUnmount()}catch(u){Ut(e,a,u)}}function Tr(e,a){try{var o=e.ref;if(o!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof o=="function"?e.refCleanup=o(u):o.current=u}}catch(d){Ut(e,a,d)}}function Vr(e,a){var o=e.ref,u=e.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(d){Ut(e,a,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(d){Ut(e,a,d)}else o.current=null}function Rp(e){var a=e.type,o=e.memoizedProps,u=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(d){Ut(e,e.return,d)}}function Mp(e,a,o){try{var u=e.stateNode;A0(u,e.type,o,a),u[ha]=a}catch(d){Ut(e,e.return,d)}}function Z1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ci(e.type)||e.tag===4}function Dp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ci(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kp(e,a,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(e),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=ii));else if(u!==4&&(u===27&&Ci(e.type)&&(o=e.stateNode,a=null),e=e.child,e!==null))for(kp(e,a,o),e=e.sibling;e!==null;)kp(e,a,o),e=e.sibling}function Wf(e,a,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,a?o.insertBefore(e,a):o.appendChild(e);else if(u!==4&&(u===27&&Ci(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(Wf(e,a,o),e=e.sibling;e!==null;)Wf(e,a,o),e=e.sibling}function Q1(e){var a=e.stateNode,o=e.memoizedProps;try{for(var u=e.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);Wn(a,u,o),a[$n]=e,a[ha]=o}catch(m){Ut(e,e.return,m)}}var vi=!1,An=!1,Np=!1,W1=typeof WeakSet=="function"?WeakSet:Set,qn=null;function X1(e,a){if(e=e.containerInfo,om=bd,e=b1(e),Wi(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var x=0,S=-1,P=-1,J=0,oe=0,he=e,ee=null;t:for(;;){for(var ae;he!==o||d!==0&&he.nodeType!==3||(S=x+d),he!==m||u!==0&&he.nodeType!==3||(P=x+u),he.nodeType===3&&(x+=he.nodeValue.length),(ae=he.firstChild)!==null;)ee=he,he=ae;for(;;){if(he===e)break t;if(ee===o&&++J===d&&(S=x),ee===m&&++oe===u&&(P=x),(ae=he.nextSibling)!==null)break;he=ee,ee=he.parentNode}he=ae}o=S===-1||P===-1?null:{start:S,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(cd={focusedElem:e,selectionRange:o},bd=!1,qn=a;qn!==null;)if(a=qn,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,qn=e;else for(;qn!==null;){switch(a=qn,m=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)d=e[o],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,o=a,d=m.memoizedProps,m=m.memoizedState,u=o.stateNode;try{var je=io(o.type,d);e=u.getSnapshotBeforeUpdate(je,m),u.__reactInternalSnapshotBeforeUpdate=e}catch(Qe){Ut(o,o.return,Qe)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,o=e.nodeType,o===9)fm(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fm(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=a.sibling,e!==null){e.return=a.return,qn=e;break}qn=a.return}}function Ip(e,a,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:xi(e,o),u&4&&pl(5,o);break;case 1:if(xi(e,o),u&4)if(e=o.stateNode,a===null)try{e.componentDidMount()}catch(x){Ut(o,o.return,x)}else{var d=io(o.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(d,a,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ut(o,o.return,x)}}u&64&&Op(o),u&512&&Tr(o,o.return);break;case 3:if(xi(e,o),u&64&&(e=o.updateQueue,e!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{_u(e,a)}catch(x){Ut(o,o.return,x)}}break;case 27:a===null&&u&4&&Q1(o);case 26:case 5:xi(e,o),a===null&&u&4&&Rp(o),u&512&&Tr(o,o.return);break;case 12:xi(e,o);break;case 31:xi(e,o),u&4&&K1(e,o);break;case 13:xi(e,o),u&4&&J1(e,o),u&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(o=Ex.bind(null,o),Ix(e,o))));break;case 22:if(u=o.memoizedState!==null||vi,!u){a=a!==null&&a.memoizedState!==null||An,d=vi;var m=An;vi=u,(An=a)&&!m?wi(e,o,(o.subtreeFlags&8772)!==0):xi(e,o),vi=d,An=m}break;case 30:break;default:xi(e,o)}}function Lp(e){var a=e.alternate;a!==null&&(e.alternate=null,Lp(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&bh(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sn=null,wa=!1;function bi(e,a,o){for(o=o.child;o!==null;)zp(e,a,o),o=o.sibling}function zp(e,a,o){if(Gn&&typeof Gn.onCommitFiberUnmount=="function")try{Gn.onCommitFiberUnmount(ai,o)}catch{}switch(o.tag){case 26:An||Vr(o,a),bi(e,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:An||Vr(o,a);var u=sn,d=wa;Ci(o.type)&&(sn=o.stateNode,wa=!1),bi(e,a,o),ec(o.stateNode),sn=u,wa=d;break;case 5:An||Vr(o,a);case 6:if(u=sn,d=wa,sn=null,bi(e,a,o),sn=u,wa=d,sn!==null)if(wa)try{(sn.nodeType===9?sn.body:sn.nodeName==="HTML"?sn.ownerDocument.body:sn).removeChild(o.stateNode)}catch(m){Ut(o,a,m)}else try{sn.removeChild(o.stateNode)}catch(m){Ut(o,a,m)}break;case 18:sn!==null&&(wa?(e=sn,Ba(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),jn(e)):Ba(sn,o.stateNode));break;case 4:u=sn,d=wa,sn=o.stateNode.containerInfo,wa=!0,bi(e,a,o),sn=u,wa=d;break;case 0:case 11:case 14:case 15:Er(2,o,a),An||Er(4,o,a),bi(e,a,o);break;case 1:An||(Vr(o,a),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Ar(o,a,u)),bi(e,a,o);break;case 21:bi(e,a,o);break;case 22:An=(u=An)||o.memoizedState!==null,bi(e,a,o),An=u;break;default:bi(e,a,o)}}function K1(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{jn(e)}catch(o){Ut(a,a.return,o)}}}function J1(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{jn(e)}catch(o){Ut(a,a.return,o)}}function bx(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new W1),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new W1),a;default:throw Error(l(435,e.tag))}}function Xf(e,a){var o=bx(e);a.forEach(function(u){if(!o.has(u)){o.add(u);var d=Ax.bind(null,e,u);u.then(d,d)}})}function _a(e,a){var o=a.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u],m=e,x=a,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(Ci(S.type)){sn=S.stateNode,wa=!1;break e}break;case 5:sn=S.stateNode,wa=!1;break e;case 3:case 4:sn=S.stateNode.containerInfo,wa=!0;break e}S=S.return}if(sn===null)throw Error(l(160));zp(m,x,d),sn=null,wa=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)ja(a,e),a=a.sibling}var Or=null;function ja(e,a){var o=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_a(a,e),Sa(e),u&4&&(Er(3,e,e.return),pl(3,e),Er(5,e,e.return));break;case 1:_a(a,e),Sa(e),u&512&&(An||o===null||Vr(o,o.return)),u&64&&vi&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(o=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var d=Or;if(_a(a,e),Sa(e),u&512&&(An||o===null||Vr(o,o.return)),u&4){var m=o!==null?o.memoizedState:null;if(u=e.memoizedState,o===null)if(u===null)if(e.stateNode===null){e:{u=e.type,o=e.memoizedProps,d=d.ownerDocument||d;t:switch(u){case"title":m=d.getElementsByTagName("title")[0],(!m||m[Xl]||m[$n]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(u),d.head.insertBefore(m,d.querySelector("head > title"))),Wn(m,u,o),m[$n]=e,Un(m),u=m;break e;case"link":var x=L0("link","href",d).get(u+(o.href||""));if(x){for(var S=0;S<x.length;S++)if(m=x[S],m.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&m.getAttribute("rel")===(o.rel==null?null:o.rel)&&m.getAttribute("title")===(o.title==null?null:o.title)&&m.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){x.splice(S,1);break t}}m=d.createElement(u),Wn(m,u,o),d.head.appendChild(m);break;case"meta":if(x=L0("meta","content",d).get(u+(o.content||""))){for(S=0;S<x.length;S++)if(m=x[S],m.getAttribute("content")===(o.content==null?null:""+o.content)&&m.getAttribute("name")===(o.name==null?null:o.name)&&m.getAttribute("property")===(o.property==null?null:o.property)&&m.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&m.getAttribute("charset")===(o.charSet==null?null:o.charSet)){x.splice(S,1);break t}}m=d.createElement(u),Wn(m,u,o),d.head.appendChild(m);break;default:throw Error(l(468,u))}m[$n]=e,Un(m),u=m}e.stateNode=u}else z0(d,e.type,e.stateNode);else e.stateNode=I0(d,u,e.memoizedProps);else m!==u?(m===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):m.count--,u===null?z0(d,e.type,e.stateNode):I0(d,u,e.memoizedProps)):u===null&&e.stateNode!==null&&Mp(e,e.memoizedProps,o.memoizedProps)}break;case 27:_a(a,e),Sa(e),u&512&&(An||o===null||Vr(o,o.return)),o!==null&&u&4&&Mp(e,e.memoizedProps,o.memoizedProps);break;case 5:if(_a(a,e),Sa(e),u&512&&(An||o===null||Vr(o,o.return)),e.flags&32){d=e.stateNode;try{Io(d,"")}catch(je){Ut(e,e.return,je)}}u&4&&e.stateNode!=null&&(d=e.memoizedProps,Mp(e,d,o!==null?o.memoizedProps:d)),u&1024&&(Np=!0);break;case 6:if(_a(a,e),Sa(e),u&4){if(e.stateNode===null)throw Error(l(162));u=e.memoizedProps,o=e.stateNode;try{o.nodeValue=u}catch(je){Ut(e,e.return,je)}}break;case 3:if(gd=null,d=Or,Or=fd(a.containerInfo),_a(a,e),Or=d,Sa(e),u&4&&o!==null&&o.memoizedState.isDehydrated)try{jn(a.containerInfo)}catch(je){Ut(e,e.return,je)}Np&&(Np=!1,e0(e));break;case 4:u=Or,Or=fd(e.stateNode.containerInfo),_a(a,e),Sa(e),Or=u;break;case 12:_a(a,e),Sa(e);break;case 31:_a(a,e),Sa(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Xf(e,u)));break;case 13:_a(a,e),Sa(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(td=Bt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Xf(e,u)));break;case 22:d=e.memoizedState!==null;var P=o!==null&&o.memoizedState!==null,J=vi,oe=An;if(vi=J||d,An=oe||P,_a(a,e),An=oe,vi=J,Sa(e),u&8192)e:for(a=e.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(o===null||P||vi||An||so(e)),o=null,a=e;;){if(a.tag===5||a.tag===26){if(o===null){P=o=a;try{if(m=P.stateNode,d)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=P.stateNode;var he=P.memoizedProps.style,ee=he!=null&&he.hasOwnProperty("display")?he.display:null;S.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(je){Ut(P,P.return,je)}}}else if(a.tag===6){if(o===null){P=a;try{P.stateNode.nodeValue=d?"":P.memoizedProps}catch(je){Ut(P,P.return,je)}}}else if(a.tag===18){if(o===null){P=a;try{var ae=P.stateNode;d?cm(ae,!0):cm(P.stateNode,!1)}catch(je){Ut(P,P.return,je)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=e.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Xf(e,o))));break;case 19:_a(a,e),Sa(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Xf(e,u)));break;case 30:break;case 21:break;default:_a(a,e),Sa(e)}}function Sa(e){var a=e.flags;if(a&2){try{for(var o,u=e.return;u!==null;){if(Z1(u)){o=u;break}u=u.return}if(o==null)throw Error(l(160));switch(o.tag){case 27:var d=o.stateNode,m=Dp(e);Wf(e,m,d);break;case 5:var x=o.stateNode;o.flags&32&&(Io(x,""),o.flags&=-33);var S=Dp(e);Wf(e,S,x);break;case 3:case 4:var P=o.stateNode.containerInfo,J=Dp(e);kp(e,J,P);break;default:throw Error(l(161))}}catch(oe){Ut(e,e.return,oe)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function e0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;e0(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function xi(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Ip(e,a.alternate,a),a=a.sibling}function so(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:Er(4,a,a.return),so(a);break;case 1:Vr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&Ar(a,a.return,o),so(a);break;case 27:ec(a.stateNode);case 26:case 5:Vr(a,a.return),so(a);break;case 22:a.memoizedState===null&&so(a);break;case 30:so(a);break;default:so(a)}e=e.sibling}}function wi(e,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,d=e,m=a,x=m.flags;switch(m.tag){case 0:case 11:case 15:wi(d,m,o),pl(4,m);break;case 1:if(wi(d,m,o),u=m,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(J){Ut(u,u.return,J)}if(u=m,d=u.updateQueue,d!==null){var S=u.stateNode;try{var P=d.shared.hiddenCallbacks;if(P!==null)for(d.shared.hiddenCallbacks=null,d=0;d<P.length;d++)Ef(P[d],S)}catch(J){Ut(u,u.return,J)}}o&&x&64&&Op(m),Tr(m,m.return);break;case 27:Q1(m);case 26:case 5:wi(d,m,o),o&&u===null&&x&4&&Rp(m),Tr(m,m.return);break;case 12:wi(d,m,o);break;case 31:wi(d,m,o),o&&x&4&&K1(d,m);break;case 13:wi(d,m,o),o&&x&4&&J1(d,m);break;case 22:m.memoizedState===null&&wi(d,m,o),Tr(m,m.return);break;case 30:break;default:wi(d,m,o)}a=a.sibling}}function jp(e,a){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==o&&(e!=null&&e.refCount++,o!=null&&bu(o))}function Pp(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&bu(e))}function Rr(e,a,o,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Kf(e,a,o,u),a=a.sibling}function Kf(e,a,o,u){var d=a.flags;switch(a.tag){case 0:case 11:case 15:Rr(e,a,o,u),d&2048&&pl(9,a);break;case 1:Rr(e,a,o,u);break;case 3:Rr(e,a,o,u),d&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&bu(e)));break;case 12:if(d&2048){Rr(e,a,o,u),e=a.stateNode;try{var m=a.memoizedProps,x=m.id,S=m.onPostCommit;typeof S=="function"&&S(x,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(P){Ut(a,a.return,P)}}else Rr(e,a,o,u);break;case 31:Rr(e,a,o,u);break;case 13:Rr(e,a,o,u);break;case 23:break;case 22:m=a.stateNode,x=a.alternate,a.memoizedState!==null?m._visibility&2?Rr(e,a,o,u):Bu(e,a):m._visibility&2?Rr(e,a,o,u):(m._visibility|=2,ml(e,a,o,u,(a.subtreeFlags&10256)!==0||!1)),d&2048&&jp(x,a);break;case 24:Rr(e,a,o,u),d&2048&&Pp(a.alternate,a);break;default:Rr(e,a,o,u)}}function ml(e,a,o,u,d){for(d=d&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=e,x=a,S=o,P=u,J=x.flags;switch(x.tag){case 0:case 11:case 15:ml(m,x,S,P,d),pl(8,x);break;case 23:break;case 22:var oe=x.stateNode;x.memoizedState!==null?oe._visibility&2?ml(m,x,S,P,d):Bu(m,x):(oe._visibility|=2,ml(m,x,S,P,d)),d&&J&2048&&jp(x.alternate,x);break;case 24:ml(m,x,S,P,d),d&&J&2048&&Pp(x.alternate,x);break;default:ml(m,x,S,P,d)}a=a.sibling}}function Bu(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=e,u=a,d=u.flags;switch(u.tag){case 22:Bu(o,u),d&2048&&jp(u.alternate,u);break;case 24:Bu(o,u),d&2048&&Pp(u.alternate,u);break;default:Bu(o,u)}a=a.sibling}}var qu=8192;function gl(e,a,o){if(e.subtreeFlags&qu)for(e=e.child;e!==null;)t0(e,a,o),e=e.sibling}function t0(e,a,o){switch(e.tag){case 26:gl(e,a,o),e.flags&qu&&e.memoizedState!==null&&Fx(o,Or,e.memoizedState,e.memoizedProps);break;case 5:gl(e,a,o);break;case 3:case 4:var u=Or;Or=fd(e.stateNode.containerInfo),gl(e,a,o),Or=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=qu,qu=16777216,gl(e,a,o),qu=u):gl(e,a,o));break;default:gl(e,a,o)}}function n0(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function Fu(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];qn=u,r0(u,e)}n0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)a0(e),e=e.sibling}function a0(e){switch(e.tag){case 0:case 11:case 15:Fu(e),e.flags&2048&&Er(9,e,e.return);break;case 3:Fu(e);break;case 12:Fu(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,Jf(e)):Fu(e);break;default:Fu(e)}}function Jf(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];qn=u,r0(u,e)}n0(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:Er(8,a,a.return),Jf(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,Jf(a));break;default:Jf(a)}e=e.sibling}}function r0(e,a){for(;qn!==null;){var o=qn;switch(o.tag){case 0:case 11:case 15:Er(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:bu(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,qn=u;else e:for(o=e;qn!==null;){u=qn;var d=u.sibling,m=u.return;if(Lp(u),u===o){qn=null;break e}if(d!==null){d.return=m,qn=d;break e}qn=m}}}var xx={getCacheForType:function(e){var a=an(qt),o=a.data.get(e);return o===void 0&&(o=e(),a.data.set(e,o)),o},cacheSignal:function(){return an(qt).controller.signal}},wx=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Qt=null,yt=null,xt=0,Pt=0,Pa=null,lo=!1,yl=!1,Yu=!1,$r=0,mn=0,uo=0,os=0,Up=0,Ua=0,vl=0,Gu=null,Ca=null,ed=!1,td=0,Vu=0,nd=1/0,ad=null,co=null,zn=0,fo=null,bl=null,_i=0,Hp=0,Bp=null,i0=null,$u=0,qp=null;function Ha(){return(Dt&2)!==0&&xt!==0?xt&-xt:U.T!==null?tm():jg()}function o0(){if(Ua===0)if((xt&536870912)===0||_t){var e=ze;ze<<=1,(ze&3932160)===0&&(ze=262144),Ua=e}else Ua=536870912;return e=Ia.current,e!==null&&(e.flags|=32),Ua}function Ea(e,a,o){(e===Qt&&(Pt===2||Pt===9)||e.cancelPendingCommit!==null)&&(xl(e,0),ho(e,xt,Ua,!1)),qi(e,o),((Dt&2)===0||e!==Qt)&&(e===Qt&&((Dt&2)===0&&(os|=o),mn===4&&ho(e,xt,Ua,!1)),Zr(e))}function s0(e,a,o){if((Dt&6)!==0)throw Error(l(327));var u=!o&&(a&127)===0&&(a&e.expiredLanes)===0||mr(e,a),d=u?Sx(e,a):Gp(e,a,!0),m=u;do{if(d===0){yl&&!u&&ho(e,a,0,!1);break}else{if(o=e.current.alternate,m&&!l0(o)){d=Gp(e,a,!1),m=!1;continue}if(d===2){if(m=a,e.errorRecoveryDisabledLanes&m)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;e:{var S=e;d=Gu;var P=S.current.memoizedState.isDehydrated;if(P&&(xl(S,x).flags|=256),x=Gp(S,x,!1),x!==2){if(Yu&&!P){S.errorRecoveryDisabledLanes|=m,os|=m,d=4;break e}m=Ca,Ca=d,m!==null&&(Ca===null?Ca=m:Ca.push.apply(Ca,m))}d=x}if(m=!1,d!==2)continue}}if(d===1){xl(e,0),ho(e,a,0,!0);break}e:{switch(u=e,m=d,m){case 0:case 1:throw Error(l(345));case 4:if((a&4194048)!==a)break;case 6:ho(u,a,Ua,!lo);break e;case 2:Ca=null;break;case 3:case 5:break;default:throw Error(l(329))}if((a&62914560)===a&&(d=td+300-Bt(),10<d)){if(ho(u,a,Ua,!lo),wn(u,0,!0)!==0)break e;_i=a,u.timeoutHandle=T0(Fp.bind(null,u,o,Ca,ad,ed,a,Ua,os,vl,lo,m,"Throttled",-0,0),d);break e}Fp(u,o,Ca,ad,ed,a,Ua,os,vl,lo,m,null,-0,0)}}break}while(!0);Zr(e)}function Fp(e,a,o,u,d,m,x,S,P,J,oe,he,ee,ae){if(e.timeoutHandle=-1,he=a.subtreeFlags,he&8192||(he&16785408)===16785408){he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ii},t0(a,m,he);var je=(m&62914560)===m?td-Bt():(m&4194048)===m?Vu-Bt():0;if(je=Yx(he,je),je!==null){_i=m,e.cancelPendingCommit=je(Vp.bind(null,e,a,m,o,u,d,x,S,P,oe,he,null,ee,ae)),ho(e,m,x,!J);return}}Vp(e,a,m,o,u,d,x,S,P)}function l0(e){for(var a=e;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var d=o[u],m=d.getSnapshot;d=d.value;try{if(!ga(m(),d))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ho(e,a,o,u){a&=~Up,a&=~os,e.suspendedLanes|=a,e.pingedLanes&=~a,u&&(e.warmLanes|=a),u=e.expirationTimes;for(var d=a;0<d;){var m=31-Vn(d),x=1<<m;u[m]=-1,d&=~x}o!==0&&$c(e,o,a)}function rd(){return(Dt&6)===0?(Ku(0),!1):!0}function Yp(){if(yt!==null){if(Pt===0)var e=yt.return;else e=yt,fi=Go=null,Mf(e),va=null,Wo=0,e=yt;for(;e!==null;)Tp(e.alternate,e),e=e.return;yt=null}}function xl(e,a){var o=e.timeoutHandle;o!==-1&&(e.timeoutHandle=-1,kx(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),_i=0,Yp(),Qt=e,yt=o=ci(e.current,null),xt=a,Pt=0,Pa=null,lo=!1,yl=mr(e,a),Yu=!1,vl=Ua=Up=os=uo=mn=0,Ca=Gu=null,ed=!1,(a&8)!==0&&(a|=a&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=a;0<u;){var d=31-Vn(u),m=1<<d;a|=e[d],u&=~m}return $r=a,Uo(),o}function Zu(e,a){st=null,U.H=zu,a===Zo||a===xf?(a=Yh(),Pt=3):a===bf?(a=Yh(),Pt=4):Pt=a===dl?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Pa=a,yt===null&&(mn=1,Ff(e,Wa(a,e.current)))}function u0(){var e=Ia.current;return e===null?!0:(xt&4194048)===xt?ar===null:(xt&62914560)===xt||(xt&536870912)!==0?e===ar:!1}function c0(){var e=U.H;return U.H=zu,e===null?zu:e}function f0(){var e=U.A;return U.A=xx,e}function id(){mn=4,lo||(xt&4194048)!==xt&&Ia.current!==null||(yl=!0),(uo&134217727)===0&&(os&134217727)===0||Qt===null||ho(Qt,xt,Ua,!1)}function Gp(e,a,o){var u=Dt;Dt|=2;var d=c0(),m=f0();(Qt!==e||xt!==a)&&(ad=null,xl(e,a)),a=!1;var x=mn;e:do try{if(Pt!==0&&yt!==null){var S=yt,P=Pa;switch(Pt){case 8:Yp(),x=6;break e;case 3:case 2:case 9:case 6:Ia.current===null&&(a=!0);var J=Pt;if(Pt=0,Pa=null,wl(e,S,P,J),o&&yl){x=0;break e}break;default:J=Pt,Pt=0,Pa=null,wl(e,S,P,J)}}_x(),x=mn;break}catch(oe){Zu(e,oe)}while(!0);return a&&e.shellSuspendCounter++,fi=Go=null,Dt=u,U.H=d,U.A=m,yt===null&&(Qt=null,xt=0,Uo()),x}function _x(){for(;yt!==null;)d0(yt)}function Sx(e,a){var o=Dt;Dt|=2;var u=c0(),d=f0();Qt!==e||xt!==a?(ad=null,nd=Bt()+500,xl(e,a)):yl=mr(e,a);e:do try{if(Pt!==0&&yt!==null){a=yt;var m=Pa;t:switch(Pt){case 1:Pt=0,Pa=null,wl(e,a,m,1);break;case 2:case 9:if(_f(m)){Pt=0,Pa=null,h0(a);break}a=function(){Pt!==2&&Pt!==9||Qt!==e||(Pt=7),Zr(e)},m.then(a,a);break e;case 3:Pt=7;break e;case 4:Pt=5;break e;case 7:_f(m)?(Pt=0,Pa=null,h0(a)):(Pt=0,Pa=null,wl(e,a,m,7));break;case 5:var x=null;switch(yt.tag){case 26:x=yt.memoizedState;case 5:case 27:var S=yt;if(x?hs(x):S.stateNode.complete){Pt=0,Pa=null;var P=S.sibling;if(P!==null)yt=P;else{var J=S.return;J!==null?(yt=J,ss(J)):yt=null}break t}}Pt=0,Pa=null,wl(e,a,m,5);break;case 6:Pt=0,Pa=null,wl(e,a,m,6);break;case 8:Yp(),mn=6;break e;default:throw Error(l(462))}}Cx();break}catch(oe){Zu(e,oe)}while(!0);return fi=Go=null,U.H=u,U.A=d,Dt=o,yt!==null?0:(Qt=null,xt=0,Uo(),mn)}function Cx(){for(;yt!==null&&!ra();)d0(yt)}function d0(e){var a=$1(e.alternate,e,$r);e.memoizedProps=e.pendingProps,a===null?ss(e):yt=a}function h0(e){var a=e,o=a.alternate;switch(a.tag){case 15:case 0:a=bp(o,a,a.pendingProps,a.type,void 0,xt);break;case 11:a=bp(o,a,a.pendingProps,a.type.render,a.ref,xt);break;case 5:Mf(a);default:Tp(o,a),a=yt=S1(a,$r),a=$1(o,a,$r)}e.memoizedProps=e.pendingProps,a===null?ss(e):yt=a}function wl(e,a,o,u){fi=Go=null,Mf(a),va=null,Wo=0;var d=a.return;try{if(gp(e,d,a,o,xt)){mn=1,Ff(e,Wa(o,e.current)),yt=null;return}}catch(m){if(d!==null)throw yt=d,m;mn=1,Ff(e,Wa(o,e.current)),yt=null;return}a.flags&32768?(_t||u===1?e=!0:yl||(xt&536870912)!==0?e=!1:(lo=e=!0,(u===2||u===9||u===3||u===6)&&(u=Ia.current,u!==null&&u.tag===13&&(u.flags|=16384))),p0(a,e)):ss(a)}function ss(e){var a=e;do{if((a.flags&32768)!==0){p0(a,lo);return}e=a.return;var o=Hu(a.alternate,a,$r);if(o!==null){yt=o;return}if(a=a.sibling,a!==null){yt=a;return}yt=a=e}while(a!==null);mn===0&&(mn=5)}function p0(e,a){do{var o=Ap(e.alternate,e);if(o!==null){o.flags&=32767,yt=o;return}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(e=e.sibling,e!==null)){yt=e;return}yt=e=o}while(e!==null);mn=6,yt=null}function Vp(e,a,o,u,d,m,x,S,P){e.cancelPendingCommit=null;do Qu();while(zn!==0);if((Dt&6)!==0)throw Error(l(327));if(a!==null){if(a===e.current)throw Error(l(177));if(m=a.lanes|a.childLanes,m|=Ur,Zl(e,o,m,x,S,P),e===Qt&&(yt=Qt=null,xt=0),bl=a,fo=e,_i=o,Hp=m,Bp=d,i0=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Kp(jr,function(){return Wp(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=U.T,U.T=null,d=z.p,z.p=2,x=Dt,Dt|=4;try{X1(e,a,o)}finally{Dt=x,z.p=d,U.T=u}}zn=1,$p(),od(),Zp()}}function $p(){if(zn===1){zn=0;var e=fo,a=bl,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=U.T,U.T=null;var u=z.p;z.p=2;var d=Dt;Dt|=4;try{ja(a,e);var m=cd,x=b1(e.containerInfo),S=m.focusedElem,P=m.selectionRange;if(x!==S&&S&&S.ownerDocument&&v1(S.ownerDocument.documentElement,S)){if(P!==null&&Wi(S)){var J=P.start,oe=P.end;if(oe===void 0&&(oe=J),"selectionStart"in S)S.selectionStart=J,S.selectionEnd=Math.min(oe,S.value.length);else{var he=S.ownerDocument||document,ee=he&&he.defaultView||window;if(ee.getSelection){var ae=ee.getSelection(),je=S.textContent.length,Qe=Math.min(P.start,je),Yt=P.end===void 0?Qe:Math.min(P.end,je);!ae.extend&&Qe>Yt&&(x=Yt,Yt=Qe,Qe=x);var $=y1(S,Qe),B=y1(S,Yt);if($&&B&&(ae.rangeCount!==1||ae.anchorNode!==$.node||ae.anchorOffset!==$.offset||ae.focusNode!==B.node||ae.focusOffset!==B.offset)){var K=he.createRange();K.setStart($.node,$.offset),ae.removeAllRanges(),Qe>Yt?(ae.addRange(K),ae.extend(B.node,B.offset)):(K.setEnd(B.node,B.offset),ae.addRange(K))}}}}for(he=[],ae=S;ae=ae.parentNode;)ae.nodeType===1&&he.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<he.length;S++){var fe=he[S];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}bd=!!om,cd=om=null}finally{Dt=d,z.p=u,U.T=o}}e.current=a,zn=2}}function od(){if(zn===2){zn=0;var e=fo,a=bl,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=U.T,U.T=null;var u=z.p;z.p=2;var d=Dt;Dt|=4;try{Ip(e,a.alternate,a)}finally{Dt=d,z.p=u,U.T=o}}zn=3}}function Zp(){if(zn===4||zn===3){zn=0,hr();var e=fo,a=bl,o=_i,u=i0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?zn=5:(zn=0,bl=fo=null,Qp(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(co=null),yh(o),a=a.stateNode,Gn&&typeof Gn.onCommitFiberRoot=="function")try{Gn.onCommitFiberRoot(ai,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=U.T,d=z.p,z.p=2,U.T=null;try{for(var m=e.onRecoverableError,x=0;x<u.length;x++){var S=u[x];m(S.value,{componentStack:S.stack})}}finally{U.T=a,z.p=d}}(_i&3)!==0&&Qu(),Zr(e),d=e.pendingLanes,(o&261930)!==0&&(d&42)!==0?e===qp?$u++:($u=0,qp=e):$u=0,Ku(0)}}function Qp(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,bu(a)))}function Qu(){return $p(),od(),Zp(),Wp()}function Wp(){if(zn!==5)return!1;var e=fo,a=Hp;Hp=0;var o=yh(_i),u=U.T,d=z.p;try{z.p=32>o?32:o,U.T=null,o=Bp,Bp=null;var m=fo,x=_i;if(zn=0,bl=fo=null,_i=0,(Dt&6)!==0)throw Error(l(331));var S=Dt;if(Dt|=4,a0(m.current),Kf(m,m.current,x,o),Dt=S,Ku(0,!1),Gn&&typeof Gn.onPostCommitFiberRoot=="function")try{Gn.onPostCommitFiberRoot(ai,m)}catch{}return!0}finally{z.p=d,U.T=u,Qp(e,a)}}function m0(e,a,o){a=Wa(o,a),a=Sr(e.stateNode,a,2),e=no(e,a,2),e!==null&&(qi(e,2),Zr(e))}function Ut(e,a,o){if(e.tag===3)m0(e,e,o);else for(;a!==null;){if(a.tag===3){m0(a,e,o);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(co===null||!co.has(u))){e=Wa(o,e),o=Yf(2),u=no(a,o,2),u!==null&&(Gf(o,u,a,e),qi(u,2),Zr(u));break}}a=a.return}}function Xp(e,a,o){var u=e.pingCache;if(u===null){u=e.pingCache=new wx;var d=new Set;u.set(a,d)}else d=u.get(a),d===void 0&&(d=new Set,u.set(a,d));d.has(o)||(Yu=!0,d.add(o),e=sd.bind(null,e,a,o),a.then(e,e))}function sd(e,a,o){var u=e.pingCache;u!==null&&u.delete(a),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,Qt===e&&(xt&o)===o&&(mn===4||mn===3&&(xt&62914560)===xt&&300>Bt()-td?(Dt&2)===0&&xl(e,0):Up|=o,vl===xt&&(vl=0)),Zr(e)}function Wu(e,a){a===0&&(a=Vc()),e=Xi(e,a),e!==null&&(qi(e,a),Zr(e))}function Ex(e){var a=e.memoizedState,o=0;a!==null&&(o=a.retryLane),Wu(e,o)}function Ax(e,a){var o=0;switch(e.tag){case 31:case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(l(314))}u!==null&&u.delete(a),Wu(e,o)}function Kp(e,a){return He(e,a)}var Xu=null,_l=null,Jp=!1,ld=!1,em=!1,po=0;function Zr(e){e!==_l&&e.next===null&&(_l===null?Xu=_l=e:_l=_l.next=e),ld=!0,Jp||(Jp=!0,Mr())}function Ku(e,a){if(!em&&ld){em=!0;do for(var o=!1,u=Xu;u!==null;){if(e!==0){var d=u.pendingLanes;if(d===0)var m=0;else{var x=u.suspendedLanes,S=u.pingedLanes;m=(1<<31-Vn(42|e)+1)-1,m&=d&~(x&~S),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(o=!0,b0(u,m))}else m=xt,m=wn(u,u===Qt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||mr(u,m)||(o=!0,b0(u,m));u=u.next}while(o);em=!1}}function Tx(){g0()}function g0(){ld=Jp=!1;var e=0;po!==0&&Dx()&&(e=po);for(var a=Bt(),o=null,u=Xu;u!==null;){var d=u.next,m=y0(u,a);m===0?(u.next=null,o===null?Xu=d:o.next=d,d===null&&(_l=o)):(o=u,(e!==0||(m&3)!==0)&&(ld=!0)),u=d}zn!==0&&zn!==5||Ku(e),po!==0&&(po=0)}function y0(e,a){for(var o=e.suspendedLanes,u=e.pingedLanes,d=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var x=31-Vn(m),S=1<<x,P=d[x];P===-1?((S&o)===0||(S&u)!==0)&&(d[x]=$l(S,a)):P<=a&&(e.expiredLanes|=S),m&=~S}if(a=Qt,o=xt,o=wn(e,e===a?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,o===0||e===a&&(Pt===2||Pt===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&Xn(u),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||mr(e,o)){if(a=o&-o,a===e.callbackPriority)return a;switch(u!==null&&Xn(u),yh(o)){case 2:case 8:o=ia;break;case 32:o=jr;break;case 268435456:o=Is;break;default:o=jr}return u=v0.bind(null,e),o=He(o,u),e.callbackPriority=a,e.callbackNode=o,a}return u!==null&&u!==null&&Xn(u),e.callbackPriority=2,e.callbackNode=null,2}function v0(e,a){if(zn!==0&&zn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(Qu()&&e.callbackNode!==o)return null;var u=xt;return u=wn(e,e===Qt?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(s0(e,u,a),y0(e,Bt()),e.callbackNode!=null&&e.callbackNode===o?v0.bind(null,e):null)}function b0(e,a){if(Qu())return null;s0(e,a,!0)}function Mr(){Si(function(){(Dt&6)!==0?He(zr,Tx):g0()})}function tm(){if(po===0){var e=el;e===0&&(e=ge,ge<<=1,(ge&261888)===0&&(ge=256)),po=e}return po}function x0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Kc(""+e)}function mo(e,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,e.id&&o.setAttribute("form",e.id),a.parentNode.insertBefore(o,a),e=new FormData(e),o.parentNode.removeChild(o),e}function it(e,a,o,u,d){if(a==="submit"&&o&&o.stateNode===d){var m=x0((d[ha]||null).action),x=u.submitter;x&&(a=(a=x[ha]||null)?x0(a.formAction):x.getAttribute("formAction"),a!==null&&(m=a,x=null));var S=new au("action","action",null,u,d);e.push({event:S,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(po!==0){var P=x?mo(d,x):new FormData(d);Uf(o,{pending:!0,data:P,method:d.method,action:m},null,P)}}else typeof m=="function"&&(S.preventDefault(),P=x?mo(d,x):new FormData(d),Uf(o,{pending:!0,data:P,method:d.method,action:m},m,P))},currentTarget:d}]})}}for(var nm=0;nm<Vs.length;nm++){var ta=Vs[nm],Cn=ta.toLowerCase(),Ox=ta[0].toUpperCase()+ta.slice(1);yr(Cn,"on"+Ox)}yr(pu,"onAnimationEnd"),yr(w1,"onAnimationIteration"),yr(Po,"onAnimationStart"),yr("dblclick","onDoubleClick"),yr("focusin","onFocus"),yr("focusout","onBlur"),yr(ff,"onTransitionRun"),yr(df,"onTransitionStart"),yr(jt,"onTransitionCancel"),yr(_1,"onTransitionEnd"),ko("onMouseEnter",["mouseout","mouseover"]),ko("onMouseLeave",["mouseout","mouseover"]),ko("onPointerEnter",["pointerout","pointerover"]),ko("onPointerLeave",["pointerout","pointerover"]),Gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rr="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(" "),Rx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rr));function w0(e,a){a=(a&4)!==0;for(var o=0;o<e.length;o++){var u=e[o],d=u.event;u=u.listeners;e:{var m=void 0;if(a)for(var x=u.length-1;0<=x;x--){var S=u[x],P=S.instance,J=S.currentTarget;if(S=S.listener,P!==m&&d.isPropagationStopped())break e;m=S,d.currentTarget=J;try{m(d)}catch(oe){hf(oe)}d.currentTarget=null,m=P}else for(x=0;x<u.length;x++){if(S=u[x],P=S.instance,J=S.currentTarget,S=S.listener,P!==m&&d.isPropagationStopped())break e;m=S,d.currentTarget=J;try{m(d)}catch(oe){hf(oe)}d.currentTarget=null,m=P}}}}function vt(e,a){var o=a[vh];o===void 0&&(o=a[vh]=new Set);var u=e+"__bubble";o.has(u)||(_0(a,e,2,!1),o.add(u))}function am(e,a,o){var u=0;a&&(u|=4),_0(o,e,u,a)}var ud="_reactListening"+Math.random().toString(36).slice(2);function Ju(e){if(!e[ud]){e[ud]=!0,Hg.forEach(function(o){o!=="selectionchange"&&(Rx.has(o)||am(o,!1,e),am(o,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[ud]||(a[ud]=!0,am("selectionchange",!1,a))}}function _0(e,a,o,u){switch(Y0(a)){case 2:var d=Vx;break;case 8:d=$x;break;default:d=vm}o=d.bind(null,a,o,e),d=void 0,!Eh||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),u?d!==void 0?e.addEventListener(a,o,{capture:!0,passive:d}):e.addEventListener(a,o,!0):d!==void 0?e.addEventListener(a,o,{passive:d}):e.addEventListener(a,o,!1)}function Dr(e,a,o,u,d){var m=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var S=u.stateNode.containerInfo;if(S===d)break;if(x===4)for(x=u.return;x!==null;){var P=x.tag;if((P===3||P===4)&&x.stateNode.containerInfo===d)return;x=x.return}for(;S!==null;){if(x=ri(S),x===null)return;if(P=x.tag,P===5||P===6||P===26||P===27){u=m=x;continue e}S=S.parentNode}}u=u.return}ef(function(){var J=m,oe=Jc(o),he=[];e:{var ee=Nh.get(e);if(ee!==void 0){var ae=au,je=e;switch(e){case"keypress":if(tf(o)===0)break e;case"keydown":case"keyup":ae=Th;break;case"focusin":je="focus",ae=af;break;case"focusout":je="blur",ae=af;break;case"beforeblur":case"afterblur":ae=af;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=Da;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=t1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=rx;break;case pu:case w1:case Po:ae=r1;break;case _1:ae=s1;break;case"scroll":case"scrollend":ae=Zn;break;case"wheel":ae=Ys;break;case"copy":case"cut":case"paste":ae=tx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=of;break;case"toggle":case"beforetoggle":ae=l1}var Qe=(a&4)!==0,Yt=!Qe&&(e==="scroll"||e==="scrollend"),$=Qe?ee!==null?ee+"Capture":null:ee;Qe=[];for(var B=J,K;B!==null;){var fe=B;if(K=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||K===null||$===null||(fe=tu(B,$),fe!=null&&Qe.push(Sl(B,fe,K))),Yt)break;B=B.return}0<Qe.length&&(ee=new ae(ee,je,null,o,oe),he.push({event:ee,listeners:Qe}))}}if((a&7)===0){e:{if(ee=e==="mouseover"||e==="pointerover",ae=e==="mouseout"||e==="pointerout",ee&&o!==Sh&&(je=o.relatedTarget||o.fromElement)&&(ri(je)||je[Do]))break e;if((ae||ee)&&(ee=oe.window===oe?oe:(ee=oe.ownerDocument)?ee.defaultView||ee.parentWindow:window,ae?(je=o.relatedTarget||o.toElement,ae=J,je=je?ri(je):null,je!==null&&(Yt=h(je),Qe=je.tag,je!==Yt||Qe!==5&&Qe!==27&&Qe!==6)&&(je=null)):(ae=null,je=J),ae!==je)){if(Qe=Da,fe="onMouseLeave",$="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(Qe=of,fe="onPointerLeave",$="onPointerEnter",B="pointer"),Yt=ae==null?ee:Yi(ae),K=je==null?ee:Yi(je),ee=new Qe(fe,B+"leave",ae,o,oe),ee.target=Yt,ee.relatedTarget=K,fe=null,ri(oe)===J&&(Qe=new Qe($,B+"enter",je,o,oe),Qe.target=K,Qe.relatedTarget=Yt,fe=Qe),Yt=fe,ae&&je)t:{for(Qe=fn,$=ae,B=je,K=0,fe=$;fe;fe=Qe(fe))K++;fe=0;for(var $e=B;$e;$e=Qe($e))fe++;for(;0<K-fe;)$=Qe($),K--;for(;0<fe-K;)B=Qe(B),fe--;for(;K--;){if($===B||B!==null&&$===B.alternate){Qe=$;break t}$=Qe($),B=Qe(B)}Qe=null}else Qe=null;ae!==null&&dn(he,ee,ae,Qe,!1),je!==null&&Yt!==null&&dn(he,Yt,je,Qe,!0)}}e:{if(ee=J?Yi(J):window,ae=ee.nodeName&&ee.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ee.type==="file")var Rt=jo;else if(Mh(ee))if(m1)Rt=Gs;else{Rt=ux;var Be=lx}else ae=ee.nodeName,!ae||ae.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?J&&Xc(J.elementType)&&(Rt=jo):Rt=cx;if(Rt&&(Rt=Rt(e,J))){p1(he,Rt,o,oe);break e}Be&&Be(e,ee,J),e==="focusout"&&J&&ee.type==="number"&&J.memoizedProps.value!=null&&Qc(ee,"number",ee.value)}switch(Be=J?Yi(J):window,e){case"focusin":(Mh(Be)||Be.contentEditable==="true")&&(ie=Be,ne=J,Ne=null);break;case"focusout":Ne=ne=ie=null;break;case"mousedown":rt=!0;break;case"contextmenu":case"mouseup":case"dragend":rt=!1,Tt(he,o,oe);break;case"selectionchange":if(V)break;case"keydown":case"keyup":Tt(he,o,oe)}var ut;if(ou)e:{switch(e){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else Hn?d1(e,o)&&(wt="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(wt="onCompositionStart");wt&&(f1&&o.locale!=="ko"&&(Hn||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&Hn&&(ut=Kg()):($i=oe,Zt="value"in $i?$i.value:$i.textContent,Hn=!0)),Be=ls(J,wt),0<Be.length&&(wt=new i1(wt,e,null,o,oe),he.push({event:wt,listeners:Be}),ut?wt.data=ut:(ut=Oh(o),ut!==null&&(wt.data=ut)))),(ut=c1?Rh(e,o):su(e,o))&&(wt=ls(J,"onBeforeInput"),0<wt.length&&(Be=new i1("onBeforeInput","beforeinput",null,o,oe),he.push({event:Be,listeners:wt}),Be.data=ut)),it(he,e,J,o,oe)}w0(he,a)})}function Sl(e,a,o){return{instance:e,listener:a,currentTarget:o}}function ls(e,a){for(var o=a+"Capture",u=[];e!==null;){var d=e,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=tu(e,o),d!=null&&u.unshift(Sl(e,d,m)),d=tu(e,a),d!=null&&u.push(Sl(e,d,m))),e.tag===3)return u;e=e.return}return[]}function fn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dn(e,a,o,u,d){for(var m=a._reactName,x=[];o!==null&&o!==u;){var S=o,P=S.alternate,J=S.stateNode;if(S=S.tag,P!==null&&P===u)break;S!==5&&S!==26&&S!==27||J===null||(P=J,d?(J=tu(o,m),J!=null&&x.unshift(Sl(o,J,P))):d||(J=tu(o,m),J!=null&&x.push(Sl(o,J,P)))),o=o.return}x.length!==0&&e.push({event:a,listeners:x})}var S0=/\r\n?/g,Mx=/\u0000|\uFFFD/g;function C0(e){return(typeof e=="string"?e:""+e).replace(S0,`
|
|
49
|
+
`).replace(Mx,"")}function E0(e,a){return a=C0(a),C0(e)===a}function Ft(e,a,o,u,d,m){switch(o){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||Io(e,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&Io(e,""+u);break;case"className":Jl(e,"class",u);break;case"tabIndex":Jl(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Jl(e,o,u);break;case"style":_h(e,u,m);break;case"data":if(a!=="object"){Jl(e,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||o!=="href")){e.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(o);break}u=Kc(""+u),e.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(o,"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"&&(o==="formAction"?(a!=="input"&&Ft(e,a,"name",d.name,d,null),Ft(e,a,"formEncType",d.formEncType,d,null),Ft(e,a,"formMethod",d.formMethod,d,null),Ft(e,a,"formTarget",d.formTarget,d,null)):(Ft(e,a,"encType",d.encType,d,null),Ft(e,a,"method",d.method,d,null),Ft(e,a,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(o);break}u=Kc(""+u),e.setAttribute(o,u);break;case"onClick":u!=null&&(e.onclick=ii);break;case"onScroll":u!=null&&vt("scroll",e);break;case"onScrollEnd":u!=null&&vt("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(o=u.__html,o!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=o}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}o=Kc(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(o,""+u):e.removeAttribute(o);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":u===!0?e.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(o,u):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(o,u):e.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(o):e.setAttribute(o,u);break;case"popover":vt("beforetoggle",e),vt("toggle",e),Kl(e,"popover",u);break;case"xlinkActuate":Pr(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Pr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Pr(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Pr(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Pr(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Pr(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Pr(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Pr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Pr(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Kl(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Qg.get(o)||o,Kl(e,o,u))}}function rm(e,a,o,u,d,m){switch(o){case"style":_h(e,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(o=u.__html,o!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=o}}break;case"children":typeof u=="string"?Io(e,u):(typeof u=="number"||typeof u=="bigint")&&Io(e,""+u);break;case"onScroll":u!=null&&vt("scroll",e);break;case"onScrollEnd":u!=null&&vt("scrollend",e);break;case"onClick":u!=null&&(e.onclick=ii);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xh.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(d=o.endsWith("Capture"),a=o.slice(2,d?o.length-7:void 0),m=e[ha]||null,m=m!=null?m[o]:null,typeof m=="function"&&e.removeEventListener(a,m,d),typeof u=="function")){typeof m!="function"&&m!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(a,u,d);break e}o in e?e[o]=u:u===!0?e.setAttribute(o,""):Kl(e,o,u)}}}function Wn(e,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",e),vt("load",e);var u=!1,d=!1,m;for(m in o)if(o.hasOwnProperty(m)){var x=o[m];if(x!=null)switch(m){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ft(e,a,m,x,o,null)}}d&&Ft(e,a,"srcSet",o.srcSet,o,null),u&&Ft(e,a,"src",o.src,o,null);return;case"input":vt("invalid",e);var S=m=x=d=null,P=null,J=null;for(u in o)if(o.hasOwnProperty(u)){var oe=o[u];if(oe!=null)switch(u){case"name":d=oe;break;case"type":x=oe;break;case"checked":P=oe;break;case"defaultChecked":J=oe;break;case"value":m=oe;break;case"defaultValue":S=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(l(137,a));break;default:Ft(e,a,u,oe,o,null)}}Vg(e,m,S,P,J,x,d,!1);return;case"select":vt("invalid",e),u=x=m=null;for(d in o)if(o.hasOwnProperty(d)&&(S=o[d],S!=null))switch(d){case"value":m=S;break;case"defaultValue":x=S;break;case"multiple":u=S;default:Ft(e,a,d,S,o,null)}a=m,o=x,e.multiple=!!u,a!=null?Vi(e,!!u,a,!1):o!=null&&Vi(e,!!u,o,!0);return;case"textarea":vt("invalid",e),m=d=u=null;for(x in o)if(o.hasOwnProperty(x)&&(S=o[x],S!=null))switch(x){case"value":u=S;break;case"defaultValue":d=S;break;case"children":m=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(l(91));break;default:Ft(e,a,x,S,o,null)}No(e,u,d,m);return;case"option":for(P in o)if(o.hasOwnProperty(P)&&(u=o[P],u!=null))switch(P){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Ft(e,a,P,u,o,null)}return;case"dialog":vt("beforetoggle",e),vt("toggle",e),vt("cancel",e),vt("close",e);break;case"iframe":case"object":vt("load",e);break;case"video":case"audio":for(u=0;u<rr.length;u++)vt(rr[u],e);break;case"image":vt("error",e),vt("load",e);break;case"details":vt("toggle",e);break;case"embed":case"source":case"link":vt("error",e),vt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in o)if(o.hasOwnProperty(J)&&(u=o[J],u!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ft(e,a,J,u,o,null)}return;default:if(Xc(a)){for(oe in o)o.hasOwnProperty(oe)&&(u=o[oe],u!==void 0&&rm(e,a,oe,u,o,void 0));return}}for(S in o)o.hasOwnProperty(S)&&(u=o[S],u!=null&&Ft(e,a,S,u,o,null))}function A0(e,a,o,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,x=null,S=null,P=null,J=null,oe=null;for(ae in o){var he=o[ae];if(o.hasOwnProperty(ae)&&he!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":P=he;default:u.hasOwnProperty(ae)||Ft(e,a,ae,null,u,he)}}for(var ee in u){var ae=u[ee];if(he=o[ee],u.hasOwnProperty(ee)&&(ae!=null||he!=null))switch(ee){case"type":m=ae;break;case"name":d=ae;break;case"checked":J=ae;break;case"defaultChecked":oe=ae;break;case"value":x=ae;break;case"defaultValue":S=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(l(137,a));break;default:ae!==he&&Ft(e,a,ee,ae,u,he)}}eu(e,x,S,P,J,oe,m,d);return;case"select":ae=x=S=ee=null;for(m in o)if(P=o[m],o.hasOwnProperty(m)&&P!=null)switch(m){case"value":break;case"multiple":ae=P;default:u.hasOwnProperty(m)||Ft(e,a,m,null,u,P)}for(d in u)if(m=u[d],P=o[d],u.hasOwnProperty(d)&&(m!=null||P!=null))switch(d){case"value":ee=m;break;case"defaultValue":S=m;break;case"multiple":x=m;default:m!==P&&Ft(e,a,d,m,u,P)}a=S,o=x,u=ae,ee!=null?Vi(e,!!o,ee,!1):!!u!=!!o&&(a!=null?Vi(e,!!o,a,!0):Vi(e,!!o,o?[]:"",!1));return;case"textarea":ae=ee=null;for(S in o)if(d=o[S],o.hasOwnProperty(S)&&d!=null&&!u.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ft(e,a,S,null,u,d)}for(x in u)if(d=u[x],m=o[x],u.hasOwnProperty(x)&&(d!=null||m!=null))switch(x){case"value":ee=d;break;case"defaultValue":ae=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(l(91));break;default:d!==m&&Ft(e,a,x,d,u,m)}Wc(e,ee,ae);return;case"option":for(var je in o)if(ee=o[je],o.hasOwnProperty(je)&&ee!=null&&!u.hasOwnProperty(je))switch(je){case"selected":e.selected=!1;break;default:Ft(e,a,je,null,u,ee)}for(P in u)if(ee=u[P],ae=o[P],u.hasOwnProperty(P)&&ee!==ae&&(ee!=null||ae!=null))switch(P){case"selected":e.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:Ft(e,a,P,ee,u,ae)}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 Qe in o)ee=o[Qe],o.hasOwnProperty(Qe)&&ee!=null&&!u.hasOwnProperty(Qe)&&Ft(e,a,Qe,null,u,ee);for(J in u)if(ee=u[J],ae=o[J],u.hasOwnProperty(J)&&ee!==ae&&(ee!=null||ae!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(l(137,a));break;default:Ft(e,a,J,ee,u,ae)}return;default:if(Xc(a)){for(var Yt in o)ee=o[Yt],o.hasOwnProperty(Yt)&&ee!==void 0&&!u.hasOwnProperty(Yt)&&rm(e,a,Yt,void 0,u,ee);for(oe in u)ee=u[oe],ae=o[oe],!u.hasOwnProperty(oe)||ee===ae||ee===void 0&&ae===void 0||rm(e,a,oe,ee,u,ae);return}}for(var $ in o)ee=o[$],o.hasOwnProperty($)&&ee!=null&&!u.hasOwnProperty($)&&Ft(e,a,$,null,u,ee);for(he in u)ee=u[he],ae=o[he],!u.hasOwnProperty(he)||ee===ae||ee==null&&ae==null||Ft(e,a,he,ee,u,ae)}function Cl(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function im(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,o=performance.getEntriesByType("resource"),u=0;u<o.length;u++){var d=o[u],m=d.transferSize,x=d.initiatorType,S=d.duration;if(m&&S&&Cl(x)){for(x=0,S=d.responseEnd,u+=1;u<o.length;u++){var P=o[u],J=P.startTime;if(J>S)break;var oe=P.transferSize,he=P.initiatorType;oe&&Cl(he)&&(P=P.responseEnd,x+=oe*(P<S?1:(S-J)/(P-J)))}if(--u,a+=8*(m+x)/(d.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var om=null,cd=null;function us(e){return e.nodeType===9?e:e.ownerDocument}function Aa(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cs(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function sm(e,a){return e==="textarea"||e==="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 lm=null;function Dx(){var e=window.event;return e&&e.type==="popstate"?e===lm?!1:(lm=e,!0):(lm=null,!1)}var T0=typeof setTimeout=="function"?setTimeout:void 0,kx=typeof clearTimeout=="function"?clearTimeout:void 0,um=typeof Promise=="function"?Promise:void 0,Si=typeof queueMicrotask=="function"?queueMicrotask:typeof um<"u"?function(e){return um.resolve(null).then(e).catch(lt)}:T0;function lt(e){setTimeout(function(){throw e})}function Ci(e){return e==="head"}function Ba(e,a){var o=a,u=0;do{var d=o.nextSibling;if(e.removeChild(o),d&&d.nodeType===8)if(o=d.data,o==="/$"||o==="/&"){if(u===0){e.removeChild(d),jn(a);return}u--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")u++;else if(o==="html")ec(e.ownerDocument.documentElement);else if(o==="head"){o=e.ownerDocument.head,ec(o);for(var m=o.firstChild;m;){var x=m.nextSibling,S=m.nodeName;m[Xl]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&m.rel.toLowerCase()==="stylesheet"||o.removeChild(m),m=x}}else o==="body"&&ec(e.ownerDocument.body);o=d}while(o);jn(a)}function cm(e,a){var o=e;e=0;do{var u=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(e===0)break;e--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||e++;o=u}while(o)}function fm(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":fm(o),bh(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function It(e,a,o,u){for(;e.nodeType===1;){var d=o;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[Xl])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=ir(e.nextSibling),e===null)break}return null}function Nx(e,a,o){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=ir(e.nextSibling),e===null))return null;return e}function dm(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ir(e.nextSibling),e===null))return null;return e}function El(e){return e.data==="$?"||e.data==="$~"}function hm(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ix(e,a){var o=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||o.readyState!=="loading")a();else{var u=function(){a(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function ir(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var pm=null;function O0(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"||o==="/&"){if(a===0)return ir(e.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}e=e.nextSibling}return null}function R0(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return e;a--}else o!=="/$"&&o!=="/&"||a++}e=e.previousSibling}return null}function M0(e,a,o){switch(a=us(o),e){case"html":if(e=a.documentElement,!e)throw Error(l(452));return e;case"head":if(e=a.head,!e)throw Error(l(453));return e;case"body":if(e=a.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function ec(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);bh(e)}var or=new Map,D0=new Set;function fd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ei=z.d;z.d={f:Lx,r:mm,D:zx,C:jx,L:Px,m:Fn,X:Ux,S:Ta,M:Hx};function Lx(){var e=Ei.f(),a=rd();return e||a}function mm(e){var a=js(e);a!==null&&a.tag===5&&a.type==="form"?P1(a):Ei.r(e)}var Al=typeof document>"u"?null:document;function dd(e,a,o){var u=Al;if(u&&typeof a=="string"&&a){var d=Ma(a);d='link[rel="'+e+'"][href="'+d+'"]',typeof o=="string"&&(d+='[crossorigin="'+o+'"]'),D0.has(d)||(D0.add(d),e={rel:e,crossOrigin:o,href:a},u.querySelector(d)===null&&(a=u.createElement("link"),Wn(a,"link",e),Un(a),u.head.appendChild(a)))}}function zx(e){Ei.D(e),dd("dns-prefetch",e,null)}function jx(e,a){Ei.C(e,a),dd("preconnect",e,a)}function Px(e,a,o){Ei.L(e,a,o);var u=Al;if(u&&e&&a){var d='link[rel="preload"][as="'+Ma(a)+'"]';a==="image"&&o&&o.imageSrcSet?(d+='[imagesrcset="'+Ma(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(d+='[imagesizes="'+Ma(o.imageSizes)+'"]')):d+='[href="'+Ma(e)+'"]';var m=d;switch(a){case"style":m=fs(e);break;case"script":m=ds(e)}or.has(m)||(e=A({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:e,as:a},o),or.set(m,e),u.querySelector(d)!==null||a==="style"&&u.querySelector(tc(m))||a==="script"&&u.querySelector(nc(m))||(a=u.createElement("link"),Wn(a,"link",e),Un(a),u.head.appendChild(a)))}}function Fn(e,a){Ei.m(e,a);var o=Al;if(o&&e){var u=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+Ma(u)+'"][href="'+Ma(e)+'"]',m=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=ds(e)}if(!or.has(m)&&(e=A({rel:"modulepreload",href:e},a),or.set(m,e),o.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(nc(m)))return}u=o.createElement("link"),Wn(u,"link",e),Un(u),o.head.appendChild(u)}}}function Ta(e,a,o){Ei.S(e,a,o);var u=Al;if(u&&e){var d=Ps(u).hoistableStyles,m=fs(e);a=a||"default";var x=d.get(m);if(!x){var S={loading:0,preload:null};if(x=u.querySelector(tc(m)))S.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":a},o),(o=or.get(m))&&pd(e,o);var P=x=u.createElement("link");Un(P),Wn(P,"link",e),P._p=new Promise(function(J,oe){P.onload=J,P.onerror=oe}),P.addEventListener("load",function(){S.loading|=1}),P.addEventListener("error",function(){S.loading|=2}),S.loading|=4,hd(x,a,u)}x={type:"stylesheet",instance:x,count:1,state:S},d.set(m,x)}}}function Ux(e,a){Ei.X(e,a);var o=Al;if(o&&e){var u=Ps(o).hoistableScripts,d=ds(e),m=u.get(d);m||(m=o.querySelector(nc(d)),m||(e=A({src:e,async:!0},a),(a=or.get(d))&&md(e,a),m=o.createElement("script"),Un(m),Wn(m,"link",e),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(d,m))}}function Hx(e,a){Ei.M(e,a);var o=Al;if(o&&e){var u=Ps(o).hoistableScripts,d=ds(e),m=u.get(d);m||(m=o.querySelector(nc(d)),m||(e=A({src:e,async:!0,type:"module"},a),(a=or.get(d))&&md(e,a),m=o.createElement("script"),Un(m),Wn(m,"link",e),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(d,m))}}function k0(e,a,o,u){var d=(d=_e.current)?fd(d):null;if(!d)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=fs(o.href),o=Ps(d).hoistableStyles,u=o.get(a),u||(u={type:"style",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=fs(o.href);var m=Ps(d).hoistableStyles,x=m.get(e);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,x),(m=d.querySelector(tc(e)))&&!m._p&&(x.instance=m,x.state.loading=5),or.has(e)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},or.set(e,o),m||Bx(d,e,o,x.state))),a&&u===null)throw Error(l(528,""));return x}if(a&&u!==null)throw Error(l(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ds(o),o=Ps(d).hoistableScripts,u=o.get(a),u||(u={type:"script",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function fs(e){return'href="'+Ma(e)+'"'}function tc(e){return'link[rel="stylesheet"]['+e+"]"}function N0(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Bx(e,a,o,u){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=e.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),Wn(a,"link",o),Un(a),e.head.appendChild(a))}function ds(e){return'[src="'+Ma(e)+'"]'}function nc(e){return"script[async]"+e}function I0(e,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var u=e.querySelector('style[data-href~="'+Ma(o.href)+'"]');if(u)return a.instance=u,Un(u),u;var d=A({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),Un(u),Wn(u,"style",d),hd(u,o.precedence,e),a.instance=u;case"stylesheet":d=fs(o.href);var m=e.querySelector(tc(d));if(m)return a.state.loading|=4,a.instance=m,Un(m),m;u=N0(o),(d=or.get(d))&&pd(u,d),m=(e.ownerDocument||e).createElement("link"),Un(m);var x=m;return x._p=new Promise(function(S,P){x.onload=S,x.onerror=P}),Wn(m,"link",u),a.state.loading|=4,hd(m,o.precedence,e),a.instance=m;case"script":return m=ds(o.src),(d=e.querySelector(nc(m)))?(a.instance=d,Un(d),d):(u=o,(d=or.get(m))&&(u=A({},o),md(u,d)),e=e.ownerDocument||e,d=e.createElement("script"),Un(d),Wn(d,"link",u),e.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,hd(u,o.precedence,e));return a.instance}function hd(e,a,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,m=d,x=0;x<u.length;x++){var S=u[x];if(S.dataset.precedence===a)m=S;else if(m!==d)break}m?m.parentNode.insertBefore(e,m.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(e,a.firstChild))}function pd(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function md(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var gd=null;function L0(e,a,o){if(gd===null){var u=new Map,d=gd=new Map;d.set(o,u)}else d=gd,u=d.get(o),u||(u=new Map,d.set(o,u));if(u.has(e))return u;for(u.set(e,null),o=o.getElementsByTagName(e),d=0;d<o.length;d++){var m=o[d];if(!(m[Xl]||m[$n]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(a)||"";x=e+x;var S=u.get(x);S?S.push(m):u.set(x,[m])}}return u}function z0(e,a,o){e=e.ownerDocument||e,e.head.insertBefore(o,a==="title"?e.querySelector("head > title"):null)}function qx(e,a,o){if(o===1||a.itemProp!=null)return!1;switch(e){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 e=a.disabled,typeof a.precedence=="string"&&e==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 hs(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Fx(e,a,o,u){if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var d=fs(u.href),m=a.querySelector(tc(d));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=yd.bind(e),a.then(e,e)),o.state.loading|=4,o.instance=m,Un(m);return}m=a.ownerDocument||a,u=N0(u),(d=or.get(d))&&pd(u,d),m=m.createElement("link"),Un(m);var x=m;x._p=new Promise(function(S,P){x.onload=S,x.onerror=P}),Wn(m,"link",u),o.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(e.count++,o=yd.bind(e),a.addEventListener("load",o),a.addEventListener("error",o))}}var gm=0;function Yx(e,a){return e.stylesheets&&e.count===0&&ac(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var u=setTimeout(function(){if(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+a);0<e.imgBytes&&gm===0&&(gm=62500*im());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>gm?50:800)+a);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(d)}}:null}function yd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ac(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vd=null;function ac(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vd=new Map,a.forEach(j0,e),vd=null,yd.call(e))}function j0(e,a){if(!(a.state.loading&4)){var o=vd.get(e);if(o)var u=o.get(null);else{o=new Map,vd.set(e,o);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var x=d[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(o.set(x.dataset.precedence,x),u=x)}u&&o.set(null,u)}d=a.instance,x=d.getAttribute("data-precedence"),m=o.get(x)||u,m===u&&o.set(null,d),o.set(x,d),this.count++,u=yd.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),m?m.parentNode.insertBefore(d,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),a.state.loading|=4}}var rc={$$typeof:G,Provider:null,Consumer:null,_currentValue:xe,_currentValue2:xe,_threadCount:0};function Gx(e,a,o,u,d,m,x,S,P){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ls(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ls(0),this.hiddenUpdates=Ls(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function P0(e,a,o,u,d,m,x,S,P,J,oe,he){return e=new Gx(e,a,o,x,P,J,oe,he,S),a=1,m===!0&&(a|=24),m=kn(3,null,null,a),e.current=m,m.stateNode=e,a=Bh(),a.refCount++,e.pooledCache=a,a.refCount++,m.memoizedState={element:u,isDehydrated:o,cache:a},Cf(m),e}function U0(e){return e?(e=Bo,e):Bo}function H0(e,a,o,u,d,m){d=U0(d),u.context===null?u.context=d:u.pendingContext=d,u=wr(a),u.payload={element:o},m=m===void 0?null:m,m!==null&&(u.callback=m),o=no(e,u,a),o!==null&&(Ea(o,e,a),al(o,e,a))}function B0(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<a?o:a}}function ym(e,a){B0(e,a),(e=e.alternate)&&B0(e,a)}function q0(e){if(e.tag===13||e.tag===31){var a=Xi(e,67108864);a!==null&&Ea(a,e,67108864),ym(e,67108864)}}function F0(e){if(e.tag===13||e.tag===31){var a=Ha();a=zs(a);var o=Xi(e,a);o!==null&&Ea(o,e,a),ym(e,a)}}var bd=!0;function Vx(e,a,o,u){var d=U.T;U.T=null;var m=z.p;try{z.p=2,vm(e,a,o,u)}finally{z.p=m,U.T=d}}function $x(e,a,o,u){var d=U.T;U.T=null;var m=z.p;try{z.p=8,vm(e,a,o,u)}finally{z.p=m,U.T=d}}function vm(e,a,o,u){if(bd){var d=bm(u);if(d===null)Dr(e,a,u,xd,o),wd(e,u);else if(G0(d,e,a,o,u))u.stopPropagation();else if(wd(e,u),a&4&&-1<Zx.indexOf(e)){for(;d!==null;){var m=js(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=At(m.pendingLanes);if(x!==0){var S=m;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var P=1<<31-Vn(x);S.entanglements[1]|=P,x&=~P}Zr(m),(Dt&6)===0&&(nd=Bt()+500,Ku(0))}}break;case 31:case 13:S=Xi(m,2),S!==null&&Ea(S,m,2),rd(),ym(m,2)}if(m=bm(u),m===null&&Dr(e,a,u,xd,o),m===d)break;d=m}d!==null&&u.stopPropagation()}else Dr(e,a,u,null,o)}}function bm(e){return e=Jc(e),xm(e)}var xd=null;function xm(e){if(xd=null,e=ri(e),e!==null){var a=h(e);if(a===null)e=null;else{var o=a.tag;if(o===13){if(e=g(a),e!==null)return e;e=null}else if(o===31){if(e=y(a),e!==null)return e;e=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return xd=e,null}function Y0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pr()){case zr:return 2;case ia:return 8;case jr:case Yl:return 32;case Is:return 268435456;default:return 32}default:return 32}}var wm=!1,go=null,yo=null,vo=null,ic=new Map,oc=new Map,bo=[],Zx="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 wd(e,a){switch(e){case"focusin":case"focusout":go=null;break;case"dragenter":case"dragleave":yo=null;break;case"mouseover":case"mouseout":vo=null;break;case"pointerover":case"pointerout":ic.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":oc.delete(a.pointerId)}}function Tl(e,a,o,u,d,m){return e===null||e.nativeEvent!==m?(e={blockedOn:a,domEventName:o,eventSystemFlags:u,nativeEvent:m,targetContainers:[d]},a!==null&&(a=js(a),a!==null&&q0(a)),e):(e.eventSystemFlags|=u,a=e.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),e)}function G0(e,a,o,u,d){switch(a){case"focusin":return go=Tl(go,e,a,o,u,d),!0;case"dragenter":return yo=Tl(yo,e,a,o,u,d),!0;case"mouseover":return vo=Tl(vo,e,a,o,u,d),!0;case"pointerover":var m=d.pointerId;return ic.set(m,Tl(ic.get(m)||null,e,a,o,u,d)),!0;case"gotpointercapture":return m=d.pointerId,oc.set(m,Tl(oc.get(m)||null,e,a,o,u,d)),!0}return!1}function V0(e){var a=ri(e.target);if(a!==null){var o=h(a);if(o!==null){if(a=o.tag,a===13){if(a=g(o),a!==null){e.blockedOn=a,Pg(e.priority,function(){F0(o)});return}}else if(a===31){if(a=y(o),a!==null){e.blockedOn=a,Pg(e.priority,function(){F0(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _d(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var o=bm(e.nativeEvent);if(o===null){o=e.nativeEvent;var u=new o.constructor(o.type,o);Sh=u,o.target.dispatchEvent(u),Sh=null}else return a=js(o),a!==null&&q0(a),e.blockedOn=o,!1;a.shift()}return!0}function $0(e,a,o){_d(e)&&o.delete(a)}function _m(){wm=!1,go!==null&&_d(go)&&(go=null),yo!==null&&_d(yo)&&(yo=null),vo!==null&&_d(vo)&&(vo=null),ic.forEach($0),oc.forEach($0)}function Sd(e,a){e.blockedOn===a&&(e.blockedOn=null,wm||(wm=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_m)))}var Cd=null;function Z0(e){Cd!==e&&(Cd=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Cd===e&&(Cd=null);for(var a=0;a<e.length;a+=3){var o=e[a],u=e[a+1],d=e[a+2];if(typeof u!="function"){if(xm(u||o)===null)continue;break}var m=js(o);m!==null&&(e.splice(a,3),a-=3,Uf(m,{pending:!0,data:d,method:o.method,action:u},u,d))}}))}function jn(e){function a(P){return Sd(P,e)}go!==null&&Sd(go,e),yo!==null&&Sd(yo,e),vo!==null&&Sd(vo,e),ic.forEach(a),oc.forEach(a);for(var o=0;o<bo.length;o++){var u=bo[o];u.blockedOn===e&&(u.blockedOn=null)}for(;0<bo.length&&(o=bo[0],o.blockedOn===null);)V0(o),o.blockedOn===null&&bo.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var d=o[u],m=o[u+1],x=d[ha]||null;if(typeof m=="function")x||Z0(o);else if(x){var S=null;if(m&&m.hasAttribute("formAction")){if(d=m,x=m[ha]||null)S=x.formAction;else if(xm(d)!==null)continue}else S=x.action;typeof S=="function"?o[u+1]=S:(o.splice(u,3),u-=3),Z0(o)}}}function Ed(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return d=x})},focusReset:"manual",scroll:"manual"})}function a(){d!==null&&(d(),d=null),u||setTimeout(o,20)}function o(){if(!u&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),d!==null&&(d(),d=null)}}}function Sm(e){this._internalRoot=e}Ad.prototype.render=Sm.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(l(409));var o=a.current,u=Ha();H0(o,u,e,a,null,null)},Ad.prototype.unmount=Sm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;H0(e.current,2,null,e,null,null),rd(),a[Do]=null}};function Ad(e){this._internalRoot=e}Ad.prototype.unstable_scheduleHydration=function(e){if(e){var a=jg();e={blockedOn:null,target:e,priority:a};for(var o=0;o<bo.length&&a!==0&&a<bo[o].priority;o++);bo.splice(o,0,e),o===0&&V0(e)}};var Q0=r.version;if(Q0!=="19.2.0")throw Error(l(527,Q0,"19.2.0"));z.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=w(a),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var Qx={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ol.isDisabled&&Ol.supportsFiber)try{ai=Ol.inject(Qx),Gn=Ol}catch{}}return Dd.createRoot=function(e,a){if(!f(e))throw Error(l(299));var o=!1,u="",d=pp,m=H1,x=mp;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=P0(e,1,!1,null,null,o,u,null,d,m,x,Ed),e[Do]=a.current,Ju(e),new Sm(a)},Dd.hydrateRoot=function(e,a,o){if(!f(e))throw Error(l(299));var u=!1,d="",m=pp,x=H1,S=mp,P=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.formState!==void 0&&(P=o.formState)),a=P0(e,1,!0,a,o??null,u,d,P,m,x,S,Ed),a.context=U0(null),o=a.current,u=Ha(),u=zs(u),d=wr(u),d.callback=null,no(o,d,u),o=u,a.current.lanes=o,qi(a,o),Zr(a),e[Do]=a.current,Ju(e),new Ad(a)},Dd.version="19.2.0",Dd}var Mw;function I5(){if(Mw)return cy.exports;Mw=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),cy.exports=N5(),cy.exports}var L5=I5();const z5=sc(L5);/*!
|
|
50
50
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
51
51
|
* License - https://fontawesome.com/license (Commercial License)
|
|
52
52
|
* Copyright 2024 Fonticons, Inc.
|
|
53
|
-
*/const
|
|
53
|
+
*/const j5={prefix:"fal",iconName:"plane-departure",icon:[640,512,[128747],"f5b0","M158.7 105.4c11.5-5.2 24.5-5.7 36.4-1.4L375 170c4.2 1.5 8.8 1.3 12.8-.8l88-45c15.8-8.1 33.3-12.3 51-12.3l61 0c12.7 0 21.1 13.1 15.8 24.6c-15.4 33.4-41.7 60.5-74.6 77L255.6 350.3c-2.2 1.1-4.7 1.7-7.2 1.7l-139.2 0c-4.2 0-8.3-1.7-11.3-4.7L34.1 283.5l23.7-13.6c4.4-2.5 9.8-2.8 14.4-.7l57.2 25.4c4.4 2 9.5 1.8 13.8-.4l115-58.8c5.1-2.6 8.5-7.8 8.7-13.6s-2.6-11.2-7.5-14.3L121.9 122.2l-6.6-14.6 6.6 14.6 36.9-16.8zM206.1 74c-19.7-7.2-41.5-6.4-60.6 2.3L108.6 93.1c-23.3 10.6-25.4 42.8-3.6 56.3l113.5 70.5-83 42.4L85.3 240l-6.1 13.7L85.3 240c-14-6.2-30-5.4-43.3 2.2L18.2 255.7c-18.3 10.5-21.7 35.5-6.8 50.4l63.8 63.8c9 9 21.2 14.1 33.9 14.1l139.2 0c7.5 0 14.8-1.7 21.5-5.1L543.3 242.2c39.4-19.7 70.9-52.2 89.3-92.2c15.1-32.7-8.8-70-44.8-70l-61 0c-22.8 0-45.2 5.4-65.5 15.8l-81.8 41.8L206.1 74zM16 480c-8.8 0-16 7.2-16 16s7.2 16 16 16l608 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 480z"]},P5={prefix:"fal",iconName:"plane-arrival",icon:[640,512,[128748],"f5af","M253.3 32c5.8 0 11.1 3.1 13.9 8.2L388.5 255.7c2.1 3.7 5.6 6.4 9.7 7.6l91.5 25.4c15.9 4.4 30.7 12.3 43.2 23.2l26.7 23.1c11.5 9.9 6.7 28.7-8.1 32c-27.1 6-55.3 5.1-82-2.5L170.5 279.5c-1.8-.5-3.5-1.3-5-2.4L70.9 208.7c-4.2-3-6.6-7.8-6.6-12.9L64 100l34.2 7.6c5.7 1.3 10.2 5.5 11.9 11l18.6 62c1.6 5.3 5.7 9.3 11 10.8l101.8 28.3c5.6 1.6 11.6 0 15.6-4.1s5.6-10.1 4-15.7L213.2 32l40.1 0zm41.8-7.5C286.6 9.4 270.6 0 253.3 0L213.2 0C192 0 176.6 20.3 182.4 40.8l40.1 140.4-65.8-18.3-16.1-53.6c-5-16.6-18.6-29.3-35.6-33.1L71 68.7C51 64.3 32 79.5 32 100l.2 95.8c0 15.4 7.4 29.8 19.9 38.8L146.8 303c4.5 3.3 9.6 5.7 15 7.3l4.4-15.4-4.4 15.4 298.8 84.9c31.8 9 65.4 10 97.7 2.9c40.6-8.9 53.6-60.3 22.1-87.5l-26.7-23.1c-16.1-13.9-35.1-24.1-55.6-29.8l-85.1-23.7L295.1 24.5zM16 480c-8.8 0-16 7.2-16 16s7.2 16 16 16l608 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 480zM176 368a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zm72 56a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},U5={prefix:"fal",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M352 192c0-88.4-71.6-160-160-160S32 103.6 32 192c0 15.6 5.4 37 16.6 63.4c10.9 25.9 26.2 54 43.6 82.1c34.1 55.3 74.4 108.2 99.9 140c25.4-31.8 65.8-84.7 99.9-140c17.3-28.1 32.7-56.3 43.6-82.1C346.6 229 352 207.6 352 192zm32 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-240 0a48 48 0 1 0 96 0 48 48 0 1 0 -96 0zm48 80a80 80 0 1 1 0-160 80 80 0 1 1 0 160z"]},H5={prefix:"fal",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Dw={prefix:"fal",iconName:"plane",icon:[576,512,[],"f072","M562.7 221.2c7.6 9.5 13.3 21.3 13.3 34.8c0 26.9-21.6 47.1-41.8 59.2c-21.1 12.7-47.3 20.8-67.9 20.8l-100.5 0L279.1 487.8c-8.5 15-24.5 24.2-41.7 24.2l-56.2 0c-21.3 0-36.6-20.3-30.8-40.8L189.1 336 136 336 97.6 387.2C91.6 395.3 82.1 400 72 400l-42 0c-16.6 0-30-13.4-30-30c0-2.8 .4-5.6 1.2-8.2L31.4 256 1.2 150.3C.4 147.6 0 144.8 0 142c0-16.6 13.4-30 30-30l42 0c10.1 0 19.6 4.7 25.6 12.8L136 176l53.1 0L150.4 40.8C144.6 20.3 160 0 181.2 0l56.2 0c17.2 0 33.1 9.2 41.7 24.2L365.9 176l100.5 0c20.7 0 46.9 8.4 68 21.2c10.7 6.5 20.8 14.5 28.4 24zm-45 3.3c-17.3-10.5-37.9-16.6-51.3-16.6l-109.7 0c-5.7 0-11-3.1-13.9-8.1L251.3 40.1l13.9-7.9-13.9 7.9c-2.8-5-8.2-8.1-13.9-8.1l-56.2 0 44.5 155.6c1.4 4.8 .4 10-2.6 14s-7.8 6.4-12.8 6.4L128 208c-5 0-9.8-2.4-12.8-6.4L72 144l-39.4 0L63.4 251.6c.8 2.9 .8 5.9 0 8.8L32.6 368 72 368l43.2-57.6c3-4 7.8-6.4 12.8-6.4l82.3 0c5 0 9.8 2.4 12.8 6.4s4 9.2 2.6 14L181.2 480l56.2 0c5.7 0 11-3.1 13.9-8.1l91.4-159.9c2.9-5 8.2-8.1 13.9-8.1l109.7 0c13.6 0 34.2-5.9 51.4-16.2C535.8 276.9 544 265.1 544 256c0-4.1-1.7-9-6.3-14.8c-4.6-5.8-11.5-11.5-20-16.7z"]};var B5={env:{NODE_ENV:"production"}};/*!
|
|
54
54
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
55
55
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
56
56
|
* Copyright 2024 Fonticons, Inc.
|
|
57
|
-
*/function S3(e,t,r){return(t=A3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,i)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mw(Object(r),!0).forEach(function(i){S3(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function E3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A3(e){var t=E3(e,"string");return typeof t=="symbol"?t:t+""}const gw=()=>{};let Z0={},yw={},vw=null,bw={mark:gw,measure:gw};try{typeof window<"u"&&(Z0=window),typeof document<"u"&&(yw=document),typeof MutationObserver<"u"&&(vw=MutationObserver),typeof performance<"u"&&(bw=performance)}catch{}const{userAgent:xw=""}=Z0.navigator||{},Jo=Z0,ln=yw,ww=vw,nm=bw;Jo.document;const bo=!!ln.documentElement&&!!ln.head&&typeof ln.addEventListener=="function"&&typeof ln.createElement=="function",_w=~xw.indexOf("MSIE")||~xw.indexOf("Trident/");var C3=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,T3=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Sw={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},O3={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ew=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],ga="classic",am="duotone",R3="sharp",D3="sharp-duotone",Aw=[ga,am,R3,D3],M3={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},k3={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},N3=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),I3={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},L3=["fak","fa-kit","fakd","fa-kit-duotone"],Cw={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},z3=["kit"],P3={kit:{"fa-kit":"fak"}},j3=["fak","fakd"],U3={kit:{fak:"fa-kit"}},Tw={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},rm={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},H3=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],B3=["fak","fa-kit","fakd","fa-kit-duotone"],q3={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},F3={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},Y3={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Q0={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},G3=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],W0=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...H3,...G3],V3=["solid","regular","light","thin","duotone","brands"],Ow=[1,2,3,4,5,6,7,8,9,10],$3=Ow.concat([11,12,13,14,15,16,17,18,19,20]),Z3=[...Object.keys(Y3),...V3,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",rm.GROUP,rm.SWAP_OPACITY,rm.PRIMARY,rm.SECONDARY].concat(Ow.map(e=>"".concat(e,"x"))).concat($3.map(e=>"w-".concat(e))),Q3={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const xo="___FONT_AWESOME___",X0=16,Rw="fa",Dw="svg-inline--fa",sl="data-fa-i2svg",K0="data-fa-pseudo-element",W3="data-fa-pseudo-element-pending",J0="data-prefix",ey="data-icon",Mw="fontawesome-i2svg",X3="async",K3=["HTML","HEAD","STYLE","SCRIPT"],kw=(()=>{try{return _3.env.NODE_ENV==="production"}catch{return!1}})();function dd(e){return new Proxy(e,{get(t,r){return r in t?t[r]:t[ga]}})}const Nw=Ae({},Sw);Nw[ga]=Ae(Ae(Ae(Ae({},{"fa-duotone":"duotone"}),Sw[ga]),Cw.kit),Cw["kit-duotone"]);const J3=dd(Nw),ty=Ae({},I3);ty[ga]=Ae(Ae(Ae(Ae({},{duotone:"fad"}),ty[ga]),Tw.kit),Tw["kit-duotone"]);const Iw=dd(ty),ny=Ae({},Q0);ny[ga]=Ae(Ae({},ny[ga]),U3.kit);const ay=dd(ny),ry=Ae({},F3);ry[ga]=Ae(Ae({},ry[ga]),P3.kit),dd(ry);const e4=C3,Lw="fa-layers-text",t4=T3,n4=Ae({},M3);dd(n4);const a4=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],iy=O3,r4=[...z3,...Z3],hd=Jo.FontAwesomeConfig||{};function i4(e){var t=ln.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function o4(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}ln&&typeof ln.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[r,i]=t;const l=o4(i4(r));l!=null&&(hd[i]=l)});const zw={styleDefault:"solid",familyDefault:ga,cssPrefix:Rw,replacementClass:Dw,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};hd.familyPrefix&&(hd.cssPrefix=hd.familyPrefix);const ju=Ae(Ae({},zw),hd);ju.autoReplaceSvg||(ju.observeMutations=!1);const Ge={};Object.keys(zw).forEach(e=>{Object.defineProperty(Ge,e,{enumerable:!0,set:function(t){ju[e]=t,pd.forEach(r=>r(Ge))},get:function(){return ju[e]}})}),Object.defineProperty(Ge,"familyPrefix",{enumerable:!0,set:function(e){ju.cssPrefix=e,pd.forEach(t=>t(Ge))},get:function(){return ju.cssPrefix}}),Jo.FontAwesomeConfig=Ge;const pd=[];function s4(e){return pd.push(e),()=>{pd.splice(pd.indexOf(e),1)}}const es=X0,wi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function l4(e){if(!e||!bo)return;const t=ln.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const r=ln.head.childNodes;let i=null;for(let l=r.length-1;l>-1;l--){const f=r[l],h=(f.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(h)>-1&&(i=f)}return ln.head.insertBefore(t,i),e}const u4="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function md(){let e=12,t="";for(;e-- >0;)t+=u4[Math.random()*62|0];return t}function Uu(e){const t=[];for(let r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function oy(e){return e.classList?Uu(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function Pw(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function c4(e){return Object.keys(e||{}).reduce((t,r)=>t+"".concat(r,'="').concat(Pw(e[r]),'" '),"").trim()}function im(e){return Object.keys(e||{}).reduce((t,r)=>t+"".concat(r,": ").concat(e[r].trim(),";"),"")}function sy(e){return e.size!==wi.size||e.x!==wi.x||e.y!==wi.y||e.rotate!==wi.rotate||e.flipX||e.flipY}function f4(e){let{transform:t,containerWidth:r,iconWidth:i}=e;const l={transform:"translate(".concat(r/2," 256)")},f="translate(".concat(t.x*32,", ").concat(t.y*32,") "),h="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),m="rotate(".concat(t.rotate," 0 0)"),y={transform:"".concat(f," ").concat(h," ").concat(m)},b={transform:"translate(".concat(i/2*-1," -256)")};return{outer:l,inner:y,path:b}}function d4(e){let{transform:t,width:r=X0,height:i=X0,startCentered:l=!1}=e,f="";return l&&_w?f+="translate(".concat(t.x/es-r/2,"em, ").concat(t.y/es-i/2,"em) "):l?f+="translate(calc(-50% + ".concat(t.x/es,"em), calc(-50% + ").concat(t.y/es,"em)) "):f+="translate(".concat(t.x/es,"em, ").concat(t.y/es,"em) "),f+="scale(".concat(t.size/es*(t.flipX?-1:1),", ").concat(t.size/es*(t.flipY?-1:1),") "),f+="rotate(".concat(t.rotate,"deg) "),f}var h4=`:root, :host {
|
|
57
|
+
*/function q5(t,n,r){return(n=Y5(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function kw(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),r.push.apply(r,i)}return r}function Ce(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?kw(Object(r),!0).forEach(function(i){q5(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kw(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function F5(t,n){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function Y5(t){var n=F5(t,"string");return typeof n=="symbol"?n:n+""}const Nw=()=>{};let py={},Iw={},Lw=null,zw={mark:Nw,measure:Nw};try{typeof window<"u"&&(py=window),typeof document<"u"&&(Iw=document),typeof MutationObserver<"u"&&(Lw=MutationObserver),typeof performance<"u"&&(zw=performance)}catch{}const{userAgent:jw=""}=py.navigator||{},gs=py,ln=Iw,Pw=Lw,Tm=zw;gs.document;const wo=!!ln.documentElement&&!!ln.head&&typeof ln.addEventListener=="function"&&typeof ln.createElement=="function",Uw=~jw.indexOf("MSIE")||~jw.indexOf("Trident/");var G5=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,V5=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Hw={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},$5={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Bw=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],fa="classic",Om="duotone",Z5="sharp",Q5="sharp-duotone",qw=[fa,Om,Z5,Q5],W5={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},X5={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},K5=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),J5={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},e3=["fak","fa-kit","fakd","fa-kit-duotone"],Fw={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},t3=["kit"],n3={kit:{"fa-kit":"fak"}},a3=["fak","fakd"],r3={kit:{fak:"fa-kit"}},Yw={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Rm={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},i3=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],o3=["fak","fa-kit","fakd","fa-kit-duotone"],s3={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},l3={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},u3={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},my={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},c3=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],gy=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...i3,...c3],f3=["solid","regular","light","thin","duotone","brands"],Gw=[1,2,3,4,5,6,7,8,9,10],d3=Gw.concat([11,12,13,14,15,16,17,18,19,20]),h3=[...Object.keys(u3),...f3,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Rm.GROUP,Rm.SWAP_OPACITY,Rm.PRIMARY,Rm.SECONDARY].concat(Gw.map(t=>"".concat(t,"x"))).concat(d3.map(t=>"w-".concat(t))),p3={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const _o="___FONT_AWESOME___",yy=16,Vw="fa",$w="svg-inline--fa",kl="data-fa-i2svg",vy="data-fa-pseudo-element",m3="data-fa-pseudo-element-pending",by="data-prefix",xy="data-icon",Zw="fontawesome-i2svg",g3="async",y3=["HTML","HEAD","STYLE","SCRIPT"],Qw=(()=>{try{return B5.env.NODE_ENV==="production"}catch{return!1}})();function kd(t){return new Proxy(t,{get(n,r){return r in n?n[r]:n[fa]}})}const Ww=Ce({},Hw);Ww[fa]=Ce(Ce(Ce(Ce({},{"fa-duotone":"duotone"}),Hw[fa]),Fw.kit),Fw["kit-duotone"]);const v3=kd(Ww),wy=Ce({},J5);wy[fa]=Ce(Ce(Ce(Ce({},{duotone:"fad"}),wy[fa]),Yw.kit),Yw["kit-duotone"]);const Xw=kd(wy),_y=Ce({},my);_y[fa]=Ce(Ce({},_y[fa]),r3.kit);const Sy=kd(_y),Cy=Ce({},l3);Cy[fa]=Ce(Ce({},Cy[fa]),n3.kit),kd(Cy);const b3=G5,Kw="fa-layers-text",x3=V5,w3=Ce({},W5);kd(w3);const _3=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ey=$5,S3=[...t3,...h3],Nd=gs.FontAwesomeConfig||{};function C3(t){var n=ln.querySelector("script["+t+"]");if(n)return n.getAttribute(t)}function E3(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}ln&&typeof ln.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(n=>{let[r,i]=n;const l=E3(C3(r));l!=null&&(Nd[i]=l)});const Jw={styleDefault:"solid",familyDefault:fa,cssPrefix:Vw,replacementClass:$w,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Nd.familyPrefix&&(Nd.cssPrefix=Nd.familyPrefix);const lc=Ce(Ce({},Jw),Nd);lc.autoReplaceSvg||(lc.observeMutations=!1);const Ye={};Object.keys(Jw).forEach(t=>{Object.defineProperty(Ye,t,{enumerable:!0,set:function(n){lc[t]=n,Id.forEach(r=>r(Ye))},get:function(){return lc[t]}})}),Object.defineProperty(Ye,"familyPrefix",{enumerable:!0,set:function(t){lc.cssPrefix=t,Id.forEach(n=>n(Ye))},get:function(){return lc.cssPrefix}}),gs.FontAwesomeConfig=Ye;const Id=[];function A3(t){return Id.push(t),()=>{Id.splice(Id.indexOf(t),1)}}const ys=yy,Ti={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function T3(t){if(!t||!wo)return;const n=ln.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=t;const r=ln.head.childNodes;let i=null;for(let l=r.length-1;l>-1;l--){const f=r[l],h=(f.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(h)>-1&&(i=f)}return ln.head.insertBefore(n,i),t}const O3="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ld(){let t=12,n="";for(;t-- >0;)n+=O3[Math.random()*62|0];return n}function uc(t){const n=[];for(let r=(t||[]).length>>>0;r--;)n[r]=t[r];return n}function Ay(t){return t.classList?uc(t.classList):(t.getAttribute("class")||"").split(" ").filter(n=>n)}function e_(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function R3(t){return Object.keys(t||{}).reduce((n,r)=>n+"".concat(r,'="').concat(e_(t[r]),'" '),"").trim()}function Mm(t){return Object.keys(t||{}).reduce((n,r)=>n+"".concat(r,": ").concat(t[r].trim(),";"),"")}function Ty(t){return t.size!==Ti.size||t.x!==Ti.x||t.y!==Ti.y||t.rotate!==Ti.rotate||t.flipX||t.flipY}function M3(t){let{transform:n,containerWidth:r,iconWidth:i}=t;const l={transform:"translate(".concat(r/2," 256)")},f="translate(".concat(n.x*32,", ").concat(n.y*32,") "),h="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),g="rotate(".concat(n.rotate," 0 0)"),y={transform:"".concat(f," ").concat(h," ").concat(g)},b={transform:"translate(".concat(i/2*-1," -256)")};return{outer:l,inner:y,path:b}}function D3(t){let{transform:n,width:r=yy,height:i=yy,startCentered:l=!1}=t,f="";return l&&Uw?f+="translate(".concat(n.x/ys-r/2,"em, ").concat(n.y/ys-i/2,"em) "):l?f+="translate(calc(-50% + ".concat(n.x/ys,"em), calc(-50% + ").concat(n.y/ys,"em)) "):f+="translate(".concat(n.x/ys,"em, ").concat(n.y/ys,"em) "),f+="scale(".concat(n.size/ys*(n.flipX?-1:1),", ").concat(n.size/ys*(n.flipY?-1:1),") "),f+="rotate(".concat(n.rotate,"deg) "),f}var k3=`:root, :host {
|
|
58
58
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
59
59
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
60
60
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
@@ -607,112 +607,112 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
607
607
|
.svg-inline--fa mask .fa-primary,
|
|
608
608
|
.svg-inline--fa mask .fa-secondary {
|
|
609
609
|
fill: black;
|
|
610
|
-
}`;function jw(){const e=Rw,t=Dw,r=Ge.cssPrefix,i=Ge.replacementClass;let l=h4;if(r!==e||i!==t){const f=new RegExp("\\.".concat(e,"\\-"),"g"),h=new RegExp("\\--".concat(e,"\\-"),"g"),m=new RegExp("\\.".concat(t),"g");l=l.replace(f,".".concat(r,"-")).replace(h,"--".concat(r,"-")).replace(m,".".concat(i))}return l}let Uw=!1;function ly(){Ge.autoAddCss&&!Uw&&(l4(jw()),Uw=!0)}var p4={mixout(){return{dom:{css:jw,insertCss:ly}}},hooks(){return{beforeDOMElementCreation(){ly()},beforeI2svg(){ly()}}}};const wo=Jo||{};wo[xo]||(wo[xo]={}),wo[xo].styles||(wo[xo].styles={}),wo[xo].hooks||(wo[xo].hooks={}),wo[xo].shims||(wo[xo].shims=[]);var _i=wo[xo];const Hw=[],Bw=function(){ln.removeEventListener("DOMContentLoaded",Bw),om=1,Hw.map(e=>e())};let om=!1;bo&&(om=(ln.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ln.readyState),om||ln.addEventListener("DOMContentLoaded",Bw));function m4(e){bo&&(om?setTimeout(e,0):Hw.push(e))}function gd(e){const{tag:t,attributes:r={},children:i=[]}=e;return typeof e=="string"?Pw(e):"<".concat(t," ").concat(c4(r),">").concat(i.map(gd).join(""),"</").concat(t,">")}function qw(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var uy=function(t,r,i,l){var f=Object.keys(t),h=f.length,m=r,y,b,x;for(i===void 0?(y=1,x=t[f[0]]):(y=0,x=i);y<h;y++)b=f[y],x=m(x,t[b],b,t);return x};function g4(e){const t=[];let r=0;const i=e.length;for(;r<i;){const l=e.charCodeAt(r++);if(l>=55296&&l<=56319&&r<i){const f=e.charCodeAt(r++);(f&64512)==56320?t.push(((l&1023)<<10)+(f&1023)+65536):(t.push(l),r--)}else t.push(l)}return t}function cy(e){const t=g4(e);return t.length===1?t[0].toString(16):null}function y4(e,t){const r=e.length;let i=e.charCodeAt(t),l;return i>=55296&&i<=56319&&r>t+1&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(i-55296)*1024+l-56320+65536:i}function Fw(e){return Object.keys(e).reduce((t,r)=>{const i=e[r];return!!i.icon?t[i.iconName]=i.icon:t[r]=i,t},{})}function fy(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=r,l=Fw(t);typeof _i.hooks.addPack=="function"&&!i?_i.hooks.addPack(e,Fw(t)):_i.styles[e]=Ae(Ae({},_i.styles[e]||{}),l),e==="fas"&&fy("fa",t)}const{styles:yd,shims:v4}=_i,Yw=Object.keys(ay),b4=Yw.reduce((e,t)=>(e[t]=Object.keys(ay[t]),e),{});let dy=null,Gw={},Vw={},$w={},Zw={},Qw={};function x4(e){return~r4.indexOf(e)}function w4(e,t){const r=t.split("-"),i=r[0],l=r.slice(1).join("-");return i===e&&l!==""&&!x4(l)?l:null}const Ww=()=>{const e=i=>uy(yd,(l,f,h)=>(l[h]=uy(f,i,{}),l),{});Gw=e((i,l,f)=>(l[3]&&(i[l[3]]=f),l[2]&&l[2].filter(m=>typeof m=="number").forEach(m=>{i[m.toString(16)]=f}),i)),Vw=e((i,l,f)=>(i[f]=f,l[2]&&l[2].filter(m=>typeof m=="string").forEach(m=>{i[m]=f}),i)),Qw=e((i,l,f)=>{const h=l[2];return i[f]=f,h.forEach(m=>{i[m]=f}),i});const t="far"in yd||Ge.autoFetchSvg,r=uy(v4,(i,l)=>{const f=l[0];let h=l[1];const m=l[2];return h==="far"&&!t&&(h="fas"),typeof f=="string"&&(i.names[f]={prefix:h,iconName:m}),typeof f=="number"&&(i.unicodes[f.toString(16)]={prefix:h,iconName:m}),i},{names:{},unicodes:{}});$w=r.names,Zw=r.unicodes,dy=sm(Ge.styleDefault,{family:Ge.familyDefault})};s4(e=>{dy=sm(e.styleDefault,{family:Ge.familyDefault})}),Ww();function hy(e,t){return(Gw[e]||{})[t]}function _4(e,t){return(Vw[e]||{})[t]}function ll(e,t){return(Qw[e]||{})[t]}function Xw(e){return $w[e]||{prefix:null,iconName:null}}function S4(e){const t=Zw[e],r=hy("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function ts(){return dy}const Kw=()=>({prefix:null,iconName:null,rest:[]});function E4(e){let t=ga;const r=Yw.reduce((i,l)=>(i[l]="".concat(Ge.cssPrefix,"-").concat(l),i),{});return Aw.forEach(i=>{(e.includes(r[i])||e.some(l=>b4[i].includes(l)))&&(t=i)}),t}function sm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:r=ga}=t,i=J3[r][e];if(r===am&&!e)return"fad";const l=Iw[r][e]||Iw[r][i],f=e in _i.styles?e:null;return l||f||null}function A4(e){let t=[],r=null;return e.forEach(i=>{const l=w4(Ge.cssPrefix,i);l?r=l:i&&t.push(i)}),{iconName:r,rest:t}}function Jw(e){return e.sort().filter((t,r,i)=>i.indexOf(t)===r)}function lm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:r=!1}=t;let i=null;const l=W0.concat(B3),f=Jw(e.filter(S=>l.includes(S))),h=Jw(e.filter(S=>!W0.includes(S))),m=f.filter(S=>(i=S,!Ew.includes(S))),[y=null]=m,b=E4(f),x=Ae(Ae({},A4(h)),{},{prefix:sm(y,{family:b})});return Ae(Ae(Ae({},x),R4({values:e,family:b,styles:yd,config:Ge,canonical:x,givenPrefix:i})),C4(r,i,x))}function C4(e,t,r){let{prefix:i,iconName:l}=r;if(e||!i||!l)return{prefix:i,iconName:l};const f=t==="fa"?Xw(l):{},h=ll(i,l);return l=f.iconName||h||l,i=f.prefix||i,i==="far"&&!yd.far&&yd.fas&&!Ge.autoFetchSvg&&(i="fas"),{prefix:i,iconName:l}}const T4=Aw.filter(e=>e!==ga||e!==am),O4=Object.keys(Q0).filter(e=>e!==ga).map(e=>Object.keys(Q0[e])).flat();function R4(e){const{values:t,family:r,canonical:i,givenPrefix:l="",styles:f={},config:h={}}=e,m=r===am,y=t.includes("fa-duotone")||t.includes("fad"),b=h.familyDefault==="duotone",x=i.prefix==="fad"||i.prefix==="fa-duotone";if(!m&&(y||b||x)&&(i.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(i.prefix="fab"),!i.prefix&&T4.includes(r)&&(Object.keys(f).find(T=>O4.includes(T))||h.autoFetchSvg)){const T=N3.get(r).defaultShortPrefixId;i.prefix=T,i.iconName=ll(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||l==="fa")&&(i.prefix=ts()||"fas"),i}class D4{constructor(){this.definitions={}}add(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];const l=r.reduce(this._pullDefinitions,{});Object.keys(l).forEach(f=>{this.definitions[f]=Ae(Ae({},this.definitions[f]||{}),l[f]),fy(f,l[f]);const h=ay[ga][f];h&&fy(h,l[f]),Ww()})}reset(){this.definitions={}}_pullDefinitions(t,r){const i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(l=>{const{prefix:f,iconName:h,icon:m}=i[l],y=m[2];t[f]||(t[f]={}),y.length>0&&y.forEach(b=>{typeof b=="string"&&(t[f][b]=m)}),t[f][h]=m}),t}}let e_=[],Hu={};const Bu={},M4=Object.keys(Bu);function k4(e,t){let{mixoutsTo:r}=t;return e_=e,Hu={},Object.keys(Bu).forEach(i=>{M4.indexOf(i)===-1&&delete Bu[i]}),e_.forEach(i=>{const l=i.mixout?i.mixout():{};if(Object.keys(l).forEach(f=>{typeof l[f]=="function"&&(r[f]=l[f]),typeof l[f]=="object"&&Object.keys(l[f]).forEach(h=>{r[f]||(r[f]={}),r[f][h]=l[f][h]})}),i.hooks){const f=i.hooks();Object.keys(f).forEach(h=>{Hu[h]||(Hu[h]=[]),Hu[h].push(f[h])})}i.provides&&i.provides(Bu)}),r}function py(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),l=2;l<r;l++)i[l-2]=arguments[l];return(Hu[e]||[]).forEach(h=>{t=h.apply(null,[t,...i])}),t}function ul(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];(Hu[e]||[]).forEach(f=>{f.apply(null,r)})}function ns(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Bu[e]?Bu[e].apply(null,t):void 0}function my(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const r=e.prefix||ts();if(t)return t=ll(r,t)||t,qw(t_.definitions,r,t)||qw(_i.styles,r,t)}const t_=new D4,hr={noAuto:()=>{Ge.autoReplaceSvg=!1,Ge.observeMutations=!1,ul("noAuto")},config:Ge,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return bo?(ul("beforeI2svg",e),ns("pseudoElements2svg",e),ns("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;Ge.autoReplaceSvg===!1&&(Ge.autoReplaceSvg=!0),Ge.observeMutations=!0,m4(()=>{N4({autoReplaceSvgRoot:t}),ul("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:ll(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=sm(e[0]);return{prefix:r,iconName:ll(r,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(Ge.cssPrefix,"-"))>-1||e.match(e4))){const t=lm(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||ts(),iconName:ll(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=ts();return{prefix:t,iconName:ll(t,e)||e}}}},library:t_,findIconDefinition:my,toHtml:gd},N4=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=ln}=e;(Object.keys(_i.styles).length>0||Ge.autoFetchSvg)&&bo&&Ge.autoReplaceSvg&&hr.dom.i2svg({node:t})};function um(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(r=>gd(r))}}),Object.defineProperty(e,"node",{get:function(){if(!bo)return;const r=ln.createElement("div");return r.innerHTML=e.html,r.children}}),e}function I4(e){let{children:t,main:r,mask:i,attributes:l,styles:f,transform:h}=e;if(sy(h)&&r.found&&!i.found){const{width:m,height:y}=r,b={x:m/y/2,y:.5};l.style=im(Ae(Ae({},f),{},{"transform-origin":"".concat(b.x+h.x/16,"em ").concat(b.y+h.y/16,"em")}))}return[{tag:"svg",attributes:l,children:t}]}function L4(e){let{prefix:t,iconName:r,children:i,attributes:l,symbol:f}=e;const h=f===!0?"".concat(t,"-").concat(Ge.cssPrefix,"-").concat(r):f;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ae(Ae({},l),{},{id:h}),children:i}]}]}function gy(e){const{icons:{main:t,mask:r},prefix:i,iconName:l,transform:f,symbol:h,title:m,maskId:y,titleId:b,extra:x,watchable:S=!1}=e,{width:T,height:N}=r.found?r:t,j=j3.includes(i),M=[Ge.replacementClass,l?"".concat(Ge.cssPrefix,"-").concat(l):""].filter(ne=>x.classes.indexOf(ne)===-1).filter(ne=>ne!==""||!!ne).concat(x.classes).join(" ");let D={children:[],attributes:Ae(Ae({},x.attributes),{},{"data-prefix":i,"data-icon":l,class:M,role:x.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(T," ").concat(N)})};const B=j&&!~x.classes.indexOf("fa-fw")?{width:"".concat(T/N*16*.0625,"em")}:{};S&&(D.attributes[sl]=""),m&&(D.children.push({tag:"title",attributes:{id:D.attributes["aria-labelledby"]||"title-".concat(b||md())},children:[m]}),delete D.attributes.title);const F=Ae(Ae({},D),{},{prefix:i,iconName:l,main:t,mask:r,maskId:y,transform:f,symbol:h,styles:Ae(Ae({},B),x.styles)}),{children:re,attributes:Y}=r.found&&t.found?ns("generateAbstractMask",F)||{children:[],attributes:{}}:ns("generateAbstractIcon",F)||{children:[],attributes:{}};return F.children=re,F.attributes=Y,h?L4(F):I4(F)}function n_(e){const{content:t,width:r,height:i,transform:l,title:f,extra:h,watchable:m=!1}=e,y=Ae(Ae(Ae({},h.attributes),f?{title:f}:{}),{},{class:h.classes.join(" ")});m&&(y[sl]="");const b=Ae({},h.styles);sy(l)&&(b.transform=d4({transform:l,startCentered:!0,width:r,height:i}),b["-webkit-transform"]=b.transform);const x=im(b);x.length>0&&(y.style=x);const S=[];return S.push({tag:"span",attributes:y,children:[t]}),f&&S.push({tag:"span",attributes:{class:"sr-only"},children:[f]}),S}function z4(e){const{content:t,title:r,extra:i}=e,l=Ae(Ae(Ae({},i.attributes),r?{title:r}:{}),{},{class:i.classes.join(" ")}),f=im(i.styles);f.length>0&&(l.style=f);const h=[];return h.push({tag:"span",attributes:l,children:[t]}),r&&h.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),h}const{styles:yy}=_i;function vy(e){const t=e[0],r=e[1],[i]=e.slice(4);let l=null;return Array.isArray(i)?l={tag:"g",attributes:{class:"".concat(Ge.cssPrefix,"-").concat(iy.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ge.cssPrefix,"-").concat(iy.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Ge.cssPrefix,"-").concat(iy.PRIMARY),fill:"currentColor",d:i[1]}}]}:l={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:r,icon:l}}const P4={found:!1,width:512,height:512};function j4(e,t){!kw&&!Ge.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function by(e,t){let r=t;return t==="fa"&&Ge.styleDefault!==null&&(t=ts()),new Promise((i,l)=>{if(r==="fa"){const f=Xw(e)||{};e=f.iconName||e,t=f.prefix||t}if(e&&t&&yy[t]&&yy[t][e]){const f=yy[t][e];return i(vy(f))}j4(e,t),i(Ae(Ae({},P4),{},{icon:Ge.showMissingIcons&&e?ns("missingIconAbstract")||{}:{}}))})}const a_=()=>{},xy=Ge.measurePerformance&&nm&&nm.mark&&nm.measure?nm:{mark:a_,measure:a_},vd='FA "6.7.2"',U4=e=>(xy.mark("".concat(vd," ").concat(e," begins")),()=>r_(e)),r_=e=>{xy.mark("".concat(vd," ").concat(e," ends")),xy.measure("".concat(vd," ").concat(e),"".concat(vd," ").concat(e," begins"),"".concat(vd," ").concat(e," ends"))};var wy={begin:U4,end:r_};const cm=()=>{};function i_(e){return typeof(e.getAttribute?e.getAttribute(sl):null)=="string"}function H4(e){const t=e.getAttribute?e.getAttribute(J0):null,r=e.getAttribute?e.getAttribute(ey):null;return t&&r}function B4(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ge.replacementClass)}function q4(){return Ge.autoReplaceSvg===!0?fm.replace:fm[Ge.autoReplaceSvg]||fm.replace}function F4(e){return ln.createElementNS("http://www.w3.org/2000/svg",e)}function Y4(e){return ln.createElement(e)}function o_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:r=e.tag==="svg"?F4:Y4}=t;if(typeof e=="string")return ln.createTextNode(e);const i=r(e.tag);return Object.keys(e.attributes||[]).forEach(function(f){i.setAttribute(f,e.attributes[f])}),(e.children||[]).forEach(function(f){i.appendChild(o_(f,{ceFn:r}))}),i}function G4(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fm={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(r=>{t.parentNode.insertBefore(o_(r),t)}),t.getAttribute(sl)===null&&Ge.keepOriginalSource){let r=ln.createComment(G4(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){const t=e[0],r=e[1];if(~oy(t).indexOf(Ge.replacementClass))return fm.replace(e);const i=new RegExp("".concat(Ge.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){const f=r[0].attributes.class.split(" ").reduce((h,m)=>(m===Ge.replacementClass||m.match(i)?h.toSvg.push(m):h.toNode.push(m),h),{toNode:[],toSvg:[]});r[0].attributes.class=f.toSvg.join(" "),f.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",f.toNode.join(" "))}const l=r.map(f=>gd(f)).join(`
|
|
611
|
-
`);
|
|
612
|
-
`),
|
|
613
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
614
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
610
|
+
}`;function t_(){const t=Vw,n=$w,r=Ye.cssPrefix,i=Ye.replacementClass;let l=k3;if(r!==t||i!==n){const f=new RegExp("\\.".concat(t,"\\-"),"g"),h=new RegExp("\\--".concat(t,"\\-"),"g"),g=new RegExp("\\.".concat(n),"g");l=l.replace(f,".".concat(r,"-")).replace(h,"--".concat(r,"-")).replace(g,".".concat(i))}return l}let n_=!1;function Oy(){Ye.autoAddCss&&!n_&&(T3(t_()),n_=!0)}var N3={mixout(){return{dom:{css:t_,insertCss:Oy}}},hooks(){return{beforeDOMElementCreation(){Oy()},beforeI2svg(){Oy()}}}};const So=gs||{};So[_o]||(So[_o]={}),So[_o].styles||(So[_o].styles={}),So[_o].hooks||(So[_o].hooks={}),So[_o].shims||(So[_o].shims=[]);var Oi=So[_o];const a_=[],r_=function(){ln.removeEventListener("DOMContentLoaded",r_),Dm=1,a_.map(t=>t())};let Dm=!1;wo&&(Dm=(ln.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ln.readyState),Dm||ln.addEventListener("DOMContentLoaded",r_));function I3(t){wo&&(Dm?setTimeout(t,0):a_.push(t))}function zd(t){const{tag:n,attributes:r={},children:i=[]}=t;return typeof t=="string"?e_(t):"<".concat(n," ").concat(R3(r),">").concat(i.map(zd).join(""),"</").concat(n,">")}function i_(t,n,r){if(t&&t[n]&&t[n][r])return{prefix:n,iconName:r,icon:t[n][r]}}var Ry=function(n,r,i,l){var f=Object.keys(n),h=f.length,g=r,y,b,w;for(i===void 0?(y=1,w=n[f[0]]):(y=0,w=i);y<h;y++)b=f[y],w=g(w,n[b],b,n);return w};function L3(t){const n=[];let r=0;const i=t.length;for(;r<i;){const l=t.charCodeAt(r++);if(l>=55296&&l<=56319&&r<i){const f=t.charCodeAt(r++);(f&64512)==56320?n.push(((l&1023)<<10)+(f&1023)+65536):(n.push(l),r--)}else n.push(l)}return n}function My(t){const n=L3(t);return n.length===1?n[0].toString(16):null}function z3(t,n){const r=t.length;let i=t.charCodeAt(n),l;return i>=55296&&i<=56319&&r>n+1&&(l=t.charCodeAt(n+1),l>=56320&&l<=57343)?(i-55296)*1024+l-56320+65536:i}function o_(t){return Object.keys(t).reduce((n,r)=>{const i=t[r];return!!i.icon?n[i.iconName]=i.icon:n[r]=i,n},{})}function Dy(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=r,l=o_(n);typeof Oi.hooks.addPack=="function"&&!i?Oi.hooks.addPack(t,o_(n)):Oi.styles[t]=Ce(Ce({},Oi.styles[t]||{}),l),t==="fas"&&Dy("fa",n)}const{styles:jd,shims:j3}=Oi,s_=Object.keys(Sy),P3=s_.reduce((t,n)=>(t[n]=Object.keys(Sy[n]),t),{});let ky=null,l_={},u_={},c_={},f_={},d_={};function U3(t){return~S3.indexOf(t)}function H3(t,n){const r=n.split("-"),i=r[0],l=r.slice(1).join("-");return i===t&&l!==""&&!U3(l)?l:null}const h_=()=>{const t=i=>Ry(jd,(l,f,h)=>(l[h]=Ry(f,i,{}),l),{});l_=t((i,l,f)=>(l[3]&&(i[l[3]]=f),l[2]&&l[2].filter(g=>typeof g=="number").forEach(g=>{i[g.toString(16)]=f}),i)),u_=t((i,l,f)=>(i[f]=f,l[2]&&l[2].filter(g=>typeof g=="string").forEach(g=>{i[g]=f}),i)),d_=t((i,l,f)=>{const h=l[2];return i[f]=f,h.forEach(g=>{i[g]=f}),i});const n="far"in jd||Ye.autoFetchSvg,r=Ry(j3,(i,l)=>{const f=l[0];let h=l[1];const g=l[2];return h==="far"&&!n&&(h="fas"),typeof f=="string"&&(i.names[f]={prefix:h,iconName:g}),typeof f=="number"&&(i.unicodes[f.toString(16)]={prefix:h,iconName:g}),i},{names:{},unicodes:{}});c_=r.names,f_=r.unicodes,ky=km(Ye.styleDefault,{family:Ye.familyDefault})};A3(t=>{ky=km(t.styleDefault,{family:Ye.familyDefault})}),h_();function Ny(t,n){return(l_[t]||{})[n]}function B3(t,n){return(u_[t]||{})[n]}function Nl(t,n){return(d_[t]||{})[n]}function p_(t){return c_[t]||{prefix:null,iconName:null}}function q3(t){const n=f_[t],r=Ny("fas",t);return n||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function vs(){return ky}const m_=()=>({prefix:null,iconName:null,rest:[]});function F3(t){let n=fa;const r=s_.reduce((i,l)=>(i[l]="".concat(Ye.cssPrefix,"-").concat(l),i),{});return qw.forEach(i=>{(t.includes(r[i])||t.some(l=>P3[i].includes(l)))&&(n=i)}),n}function km(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:r=fa}=n,i=v3[r][t];if(r===Om&&!t)return"fad";const l=Xw[r][t]||Xw[r][i],f=t in Oi.styles?t:null;return l||f||null}function Y3(t){let n=[],r=null;return t.forEach(i=>{const l=H3(Ye.cssPrefix,i);l?r=l:i&&n.push(i)}),{iconName:r,rest:n}}function g_(t){return t.sort().filter((n,r,i)=>i.indexOf(n)===r)}function Nm(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:r=!1}=n;let i=null;const l=gy.concat(o3),f=g_(t.filter(E=>l.includes(E))),h=g_(t.filter(E=>!gy.includes(E))),g=f.filter(E=>(i=E,!Bw.includes(E))),[y=null]=g,b=F3(f),w=Ce(Ce({},Y3(h)),{},{prefix:km(y,{family:b})});return Ce(Ce(Ce({},w),Z3({values:t,family:b,styles:jd,config:Ye,canonical:w,givenPrefix:i})),G3(r,i,w))}function G3(t,n,r){let{prefix:i,iconName:l}=r;if(t||!i||!l)return{prefix:i,iconName:l};const f=n==="fa"?p_(l):{},h=Nl(i,l);return l=f.iconName||h||l,i=f.prefix||i,i==="far"&&!jd.far&&jd.fas&&!Ye.autoFetchSvg&&(i="fas"),{prefix:i,iconName:l}}const V3=qw.filter(t=>t!==fa||t!==Om),$3=Object.keys(my).filter(t=>t!==fa).map(t=>Object.keys(my[t])).flat();function Z3(t){const{values:n,family:r,canonical:i,givenPrefix:l="",styles:f={},config:h={}}=t,g=r===Om,y=n.includes("fa-duotone")||n.includes("fad"),b=h.familyDefault==="duotone",w=i.prefix==="fad"||i.prefix==="fa-duotone";if(!g&&(y||b||w)&&(i.prefix="fad"),(n.includes("fa-brands")||n.includes("fab"))&&(i.prefix="fab"),!i.prefix&&V3.includes(r)&&(Object.keys(f).find(A=>$3.includes(A))||h.autoFetchSvg)){const A=K5.get(r).defaultShortPrefixId;i.prefix=A,i.iconName=Nl(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||l==="fa")&&(i.prefix=vs()||"fas"),i}class Q3{constructor(){this.definitions={}}add(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const l=r.reduce(this._pullDefinitions,{});Object.keys(l).forEach(f=>{this.definitions[f]=Ce(Ce({},this.definitions[f]||{}),l[f]),Dy(f,l[f]);const h=Sy[fa][f];h&&Dy(h,l[f]),h_()})}reset(){this.definitions={}}_pullDefinitions(n,r){const i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(l=>{const{prefix:f,iconName:h,icon:g}=i[l],y=g[2];n[f]||(n[f]={}),y.length>0&&y.forEach(b=>{typeof b=="string"&&(n[f][b]=g)}),n[f][h]=g}),n}}let y_=[],cc={};const fc={},W3=Object.keys(fc);function X3(t,n){let{mixoutsTo:r}=n;return y_=t,cc={},Object.keys(fc).forEach(i=>{W3.indexOf(i)===-1&&delete fc[i]}),y_.forEach(i=>{const l=i.mixout?i.mixout():{};if(Object.keys(l).forEach(f=>{typeof l[f]=="function"&&(r[f]=l[f]),typeof l[f]=="object"&&Object.keys(l[f]).forEach(h=>{r[f]||(r[f]={}),r[f][h]=l[f][h]})}),i.hooks){const f=i.hooks();Object.keys(f).forEach(h=>{cc[h]||(cc[h]=[]),cc[h].push(f[h])})}i.provides&&i.provides(fc)}),r}function Iy(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),l=2;l<r;l++)i[l-2]=arguments[l];return(cc[t]||[]).forEach(h=>{n=h.apply(null,[n,...i])}),n}function Il(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(cc[t]||[]).forEach(f=>{f.apply(null,r)})}function bs(){const t=arguments[0],n=Array.prototype.slice.call(arguments,1);return fc[t]?fc[t].apply(null,n):void 0}function Ly(t){t.prefix==="fa"&&(t.prefix="fas");let{iconName:n}=t;const r=t.prefix||vs();if(n)return n=Nl(r,n)||n,i_(v_.definitions,r,n)||i_(Oi.styles,r,n)}const v_=new Q3,sr={noAuto:()=>{Ye.autoReplaceSvg=!1,Ye.observeMutations=!1,Il("noAuto")},config:Ye,dom:{i2svg:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wo?(Il("beforeI2svg",t),bs("pseudoElements2svg",t),bs("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:n}=t;Ye.autoReplaceSvg===!1&&(Ye.autoReplaceSvg=!0),Ye.observeMutations=!0,I3(()=>{K3({autoReplaceSvgRoot:n}),Il("watch",t)})}},parse:{icon:t=>{if(t===null)return null;if(typeof t=="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Nl(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){const n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=km(t[0]);return{prefix:r,iconName:Nl(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Ye.cssPrefix,"-"))>-1||t.match(b3))){const n=Nm(t.split(" "),{skipLookups:!0});return{prefix:n.prefix||vs(),iconName:Nl(n.prefix,n.iconName)||n.iconName}}if(typeof t=="string"){const n=vs();return{prefix:n,iconName:Nl(n,t)||t}}}},library:v_,findIconDefinition:Ly,toHtml:zd},K3=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:n=ln}=t;(Object.keys(Oi.styles).length>0||Ye.autoFetchSvg)&&wo&&Ye.autoReplaceSvg&&sr.dom.i2svg({node:n})};function Im(t,n){return Object.defineProperty(t,"abstract",{get:n}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(r=>zd(r))}}),Object.defineProperty(t,"node",{get:function(){if(!wo)return;const r=ln.createElement("div");return r.innerHTML=t.html,r.children}}),t}function J3(t){let{children:n,main:r,mask:i,attributes:l,styles:f,transform:h}=t;if(Ty(h)&&r.found&&!i.found){const{width:g,height:y}=r,b={x:g/y/2,y:.5};l.style=Mm(Ce(Ce({},f),{},{"transform-origin":"".concat(b.x+h.x/16,"em ").concat(b.y+h.y/16,"em")}))}return[{tag:"svg",attributes:l,children:n}]}function e4(t){let{prefix:n,iconName:r,children:i,attributes:l,symbol:f}=t;const h=f===!0?"".concat(n,"-").concat(Ye.cssPrefix,"-").concat(r):f;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ce(Ce({},l),{},{id:h}),children:i}]}]}function zy(t){const{icons:{main:n,mask:r},prefix:i,iconName:l,transform:f,symbol:h,title:g,maskId:y,titleId:b,extra:w,watchable:E=!1}=t,{width:A,height:I}=r.found?r:n,j=a3.includes(i),D=[Ye.replacementClass,l?"".concat(Ye.cssPrefix,"-").concat(l):""].filter(te=>w.classes.indexOf(te)===-1).filter(te=>te!==""||!!te).concat(w.classes).join(" ");let R={children:[],attributes:Ce(Ce({},w.attributes),{},{"data-prefix":i,"data-icon":l,class:D,role:w.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(A," ").concat(I)})};const q=j&&!~w.classes.indexOf("fa-fw")?{width:"".concat(A/I*16*.0625,"em")}:{};E&&(R.attributes[kl]=""),g&&(R.children.push({tag:"title",attributes:{id:R.attributes["aria-labelledby"]||"title-".concat(b||Ld())},children:[g]}),delete R.attributes.title);const Y=Ce(Ce({},R),{},{prefix:i,iconName:l,main:n,mask:r,maskId:y,transform:f,symbol:h,styles:Ce(Ce({},q),w.styles)}),{children:re,attributes:G}=r.found&&n.found?bs("generateAbstractMask",Y)||{children:[],attributes:{}}:bs("generateAbstractIcon",Y)||{children:[],attributes:{}};return Y.children=re,Y.attributes=G,h?e4(Y):J3(Y)}function b_(t){const{content:n,width:r,height:i,transform:l,title:f,extra:h,watchable:g=!1}=t,y=Ce(Ce(Ce({},h.attributes),f?{title:f}:{}),{},{class:h.classes.join(" ")});g&&(y[kl]="");const b=Ce({},h.styles);Ty(l)&&(b.transform=D3({transform:l,startCentered:!0,width:r,height:i}),b["-webkit-transform"]=b.transform);const w=Mm(b);w.length>0&&(y.style=w);const E=[];return E.push({tag:"span",attributes:y,children:[n]}),f&&E.push({tag:"span",attributes:{class:"sr-only"},children:[f]}),E}function t4(t){const{content:n,title:r,extra:i}=t,l=Ce(Ce(Ce({},i.attributes),r?{title:r}:{}),{},{class:i.classes.join(" ")}),f=Mm(i.styles);f.length>0&&(l.style=f);const h=[];return h.push({tag:"span",attributes:l,children:[n]}),r&&h.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),h}const{styles:jy}=Oi;function Py(t){const n=t[0],r=t[1],[i]=t.slice(4);let l=null;return Array.isArray(i)?l={tag:"g",attributes:{class:"".concat(Ye.cssPrefix,"-").concat(Ey.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ye.cssPrefix,"-").concat(Ey.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Ye.cssPrefix,"-").concat(Ey.PRIMARY),fill:"currentColor",d:i[1]}}]}:l={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:n,height:r,icon:l}}const n4={found:!1,width:512,height:512};function a4(t,n){!Qw&&!Ye.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(n,'" is missing.'))}function Uy(t,n){let r=n;return n==="fa"&&Ye.styleDefault!==null&&(n=vs()),new Promise((i,l)=>{if(r==="fa"){const f=p_(t)||{};t=f.iconName||t,n=f.prefix||n}if(t&&n&&jy[n]&&jy[n][t]){const f=jy[n][t];return i(Py(f))}a4(t,n),i(Ce(Ce({},n4),{},{icon:Ye.showMissingIcons&&t?bs("missingIconAbstract")||{}:{}}))})}const x_=()=>{},Hy=Ye.measurePerformance&&Tm&&Tm.mark&&Tm.measure?Tm:{mark:x_,measure:x_},Pd='FA "6.7.2"',r4=t=>(Hy.mark("".concat(Pd," ").concat(t," begins")),()=>w_(t)),w_=t=>{Hy.mark("".concat(Pd," ").concat(t," ends")),Hy.measure("".concat(Pd," ").concat(t),"".concat(Pd," ").concat(t," begins"),"".concat(Pd," ").concat(t," ends"))};var By={begin:r4,end:w_};const Lm=()=>{};function __(t){return typeof(t.getAttribute?t.getAttribute(kl):null)=="string"}function i4(t){const n=t.getAttribute?t.getAttribute(by):null,r=t.getAttribute?t.getAttribute(xy):null;return n&&r}function o4(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(Ye.replacementClass)}function s4(){return Ye.autoReplaceSvg===!0?zm.replace:zm[Ye.autoReplaceSvg]||zm.replace}function l4(t){return ln.createElementNS("http://www.w3.org/2000/svg",t)}function u4(t){return ln.createElement(t)}function S_(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:r=t.tag==="svg"?l4:u4}=n;if(typeof t=="string")return ln.createTextNode(t);const i=r(t.tag);return Object.keys(t.attributes||[]).forEach(function(f){i.setAttribute(f,t.attributes[f])}),(t.children||[]).forEach(function(f){i.appendChild(S_(f,{ceFn:r}))}),i}function c4(t){let n=" ".concat(t.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}const zm={replace:function(t){const n=t[0];if(n.parentNode)if(t[1].forEach(r=>{n.parentNode.insertBefore(S_(r),n)}),n.getAttribute(kl)===null&&Ye.keepOriginalSource){let r=ln.createComment(c4(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){const n=t[0],r=t[1];if(~Ay(n).indexOf(Ye.replacementClass))return zm.replace(t);const i=new RegExp("".concat(Ye.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){const f=r[0].attributes.class.split(" ").reduce((h,g)=>(g===Ye.replacementClass||g.match(i)?h.toSvg.push(g):h.toNode.push(g),h),{toNode:[],toSvg:[]});r[0].attributes.class=f.toSvg.join(" "),f.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",f.toNode.join(" "))}const l=r.map(f=>zd(f)).join(`
|
|
611
|
+
`);n.setAttribute(kl,""),n.innerHTML=l}};function C_(t){t()}function E_(t,n){const r=typeof n=="function"?n:Lm;if(t.length===0)r();else{let i=C_;Ye.mutateApproach===g3&&(i=gs.requestAnimationFrame||C_),i(()=>{const l=s4(),f=By.begin("mutate");t.map(l),f(),r()})}}let qy=!1;function A_(){qy=!0}function Fy(){qy=!1}let jm=null;function T_(t){if(!Pw||!Ye.observeMutations)return;const{treeCallback:n=Lm,nodeCallback:r=Lm,pseudoElementsCallback:i=Lm,observeMutationsRoot:l=ln}=t;jm=new Pw(f=>{if(qy)return;const h=vs();uc(f).forEach(g=>{if(g.type==="childList"&&g.addedNodes.length>0&&!__(g.addedNodes[0])&&(Ye.searchPseudoElements&&i(g.target),n(g.target)),g.type==="attributes"&&g.target.parentNode&&Ye.searchPseudoElements&&i(g.target.parentNode),g.type==="attributes"&&__(g.target)&&~_3.indexOf(g.attributeName))if(g.attributeName==="class"&&i4(g.target)){const{prefix:y,iconName:b}=Nm(Ay(g.target));g.target.setAttribute(by,y||h),b&&g.target.setAttribute(xy,b)}else o4(g.target)&&r(g.target)})}),wo&&jm.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function f4(){jm&&jm.disconnect()}function d4(t){const n=t.getAttribute("style");let r=[];return n&&(r=n.split(";").reduce((i,l)=>{const f=l.split(":"),h=f[0],g=f.slice(1);return h&&g.length>0&&(i[h]=g.join(":").trim()),i},{})),r}function h4(t){const n=t.getAttribute("data-prefix"),r=t.getAttribute("data-icon"),i=t.innerText!==void 0?t.innerText.trim():"";let l=Nm(Ay(t));return l.prefix||(l.prefix=vs()),n&&r&&(l.prefix=n,l.iconName=r),l.iconName&&l.prefix||(l.prefix&&i.length>0&&(l.iconName=B3(l.prefix,t.innerText)||Ny(l.prefix,My(t.innerText))),!l.iconName&&Ye.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(l.iconName=t.firstChild.data)),l}function p4(t){const n=uc(t.attributes).reduce((l,f)=>(l.name!=="class"&&l.name!=="style"&&(l[f.name]=f.value),l),{}),r=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return Ye.autoA11y&&(r?n["aria-labelledby"]="".concat(Ye.replacementClass,"-title-").concat(i||Ld()):(n["aria-hidden"]="true",n.focusable="false")),n}function m4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ti,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function O_(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:r,prefix:i,rest:l}=h4(t),f=p4(t),h=Iy("parseNodeAttributes",{},t);let g=n.styleParser?d4(t):[];return Ce({iconName:r,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:i,transform:Ti,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:g,attributes:f}},h)}const{styles:g4}=Oi;function R_(t){const n=Ye.autoReplaceSvg==="nest"?O_(t,{styleParser:!1}):O_(t);return~n.extra.classes.indexOf(Kw)?bs("generateLayersText",t,n):bs("generateSvgReplacementMutation",t,n)}function y4(){return[...e3,...gy]}function M_(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!wo)return Promise.resolve();const r=ln.documentElement.classList,i=w=>r.add("".concat(Zw,"-").concat(w)),l=w=>r.remove("".concat(Zw,"-").concat(w)),f=Ye.autoFetchSvg?y4():Bw.concat(Object.keys(g4));f.includes("fa")||f.push("fa");const h=[".".concat(Kw,":not([").concat(kl,"])")].concat(f.map(w=>".".concat(w,":not([").concat(kl,"])"))).join(", ");if(h.length===0)return Promise.resolve();let g=[];try{g=uc(t.querySelectorAll(h))}catch{}if(g.length>0)i("pending"),l("complete");else return Promise.resolve();const y=By.begin("onTree"),b=g.reduce((w,E)=>{try{const A=R_(E);A&&w.push(A)}catch(A){Qw||A.name==="MissingIcon"&&console.error(A)}return w},[]);return new Promise((w,E)=>{Promise.all(b).then(A=>{E_(A,()=>{i("active"),i("complete"),l("pending"),typeof n=="function"&&n(),y(),w()})}).catch(A=>{y(),E(A)})})}function v4(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;R_(t).then(r=>{r&&E_([r],n)})}function b4(t){return function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(n||{}).icon?n:Ly(n||{});let{mask:l}=r;return l&&(l=(l||{}).icon?l:Ly(l||{})),t(i,Ce(Ce({},r),{},{mask:l}))}}const x4=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Ti,symbol:i=!1,mask:l=null,maskId:f=null,title:h=null,titleId:g=null,classes:y=[],attributes:b={},styles:w={}}=n;if(!t)return;const{prefix:E,iconName:A,icon:I}=t;return Im(Ce({type:"icon"},t),()=>(Il("beforeDOMElementCreation",{iconDefinition:t,params:n}),Ye.autoA11y&&(h?b["aria-labelledby"]="".concat(Ye.replacementClass,"-title-").concat(g||Ld()):(b["aria-hidden"]="true",b.focusable="false")),zy({icons:{main:Py(I),mask:l?Py(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:A,transform:Ce(Ce({},Ti),r),symbol:i,title:h,maskId:f,titleId:g,extra:{attributes:b,styles:w,classes:y}})))};var w4={mixout(){return{icon:b4(x4)}},hooks(){return{mutationObserverCallbacks(t){return t.treeCallback=M_,t.nodeCallback=v4,t}}},provides(t){t.i2svg=function(n){const{node:r=ln,callback:i=()=>{}}=n;return M_(r,i)},t.generateSvgReplacementMutation=function(n,r){const{iconName:i,title:l,titleId:f,prefix:h,transform:g,symbol:y,mask:b,maskId:w,extra:E}=r;return new Promise((A,I)=>{Promise.all([Uy(i,h),b.iconName?Uy(b.iconName,b.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(j=>{let[D,R]=j;A([n,zy({icons:{main:D,mask:R},prefix:h,iconName:i,transform:g,symbol:y,maskId:w,title:l,titleId:f,extra:E,watchable:!0})])}).catch(I)})},t.generateAbstractIcon=function(n){let{children:r,attributes:i,main:l,transform:f,styles:h}=n;const g=Mm(h);g.length>0&&(i.style=g);let y;return Ty(f)&&(y=bs("generateAbstractTransformGrouping",{main:l,transform:f,containerWidth:l.width,iconWidth:l.width})),r.push(y||l.icon),{children:r,attributes:i}}}},_4={mixout(){return{layer(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:r=[]}=n;return Im({type:"layer"},()=>{Il("beforeDOMElementCreation",{assembler:t,params:n});let i=[];return t(l=>{Array.isArray(l)?l.map(f=>{i=i.concat(f.abstract)}):i=i.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Ye.cssPrefix,"-layers"),...r].join(" ")},children:i}]})}}}},S4={mixout(){return{counter(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:r=null,classes:i=[],attributes:l={},styles:f={}}=n;return Im({type:"counter",content:t},()=>(Il("beforeDOMElementCreation",{content:t,params:n}),t4({content:t.toString(),title:r,extra:{attributes:l,styles:f,classes:["".concat(Ye.cssPrefix,"-layers-counter"),...i]}})))}}}},C4={mixout(){return{text(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Ti,title:i=null,classes:l=[],attributes:f={},styles:h={}}=n;return Im({type:"text",content:t},()=>(Il("beforeDOMElementCreation",{content:t,params:n}),b_({content:t,transform:Ce(Ce({},Ti),r),title:i,extra:{attributes:f,styles:h,classes:["".concat(Ye.cssPrefix,"-layers-text"),...l]}})))}}},provides(t){t.generateLayersText=function(n,r){const{title:i,transform:l,extra:f}=r;let h=null,g=null;if(Uw){const y=parseInt(getComputedStyle(n).fontSize,10),b=n.getBoundingClientRect();h=b.width/y,g=b.height/y}return Ye.autoA11y&&!i&&(f.attributes["aria-hidden"]="true"),Promise.resolve([n,b_({content:n.innerHTML,width:h,height:g,transform:l,title:i,extra:f,watchable:!0})])}}};const E4=new RegExp('"',"ug"),D_=[1105920,1112319],k_=Ce(Ce(Ce(Ce({},{FontAwesome:{normal:"fas",400:"fas"}}),X5),p3),s3),Yy=Object.keys(k_).reduce((t,n)=>(t[n.toLowerCase()]=k_[n],t),{}),A4=Object.keys(Yy).reduce((t,n)=>{const r=Yy[n];return t[n]=r[900]||[...Object.entries(r)][0][1],t},{});function T4(t){const n=t.replace(E4,""),r=z3(n,0),i=r>=D_[0]&&r<=D_[1],l=n.length===2?n[0]===n[1]:!1;return{value:My(l?n[0]:n),isSecondary:i||l}}function O4(t,n){const r=t.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(n),l=isNaN(i)?"normal":i;return(Yy[r]||{})[l]||A4[r]}function N_(t,n){const r="".concat(m3).concat(n.replace(":","-"));return new Promise((i,l)=>{if(t.getAttribute(r)!==null)return i();const h=uc(t.children).filter(A=>A.getAttribute(vy)===n)[0],g=gs.getComputedStyle(t,n),y=g.getPropertyValue("font-family"),b=y.match(x3),w=g.getPropertyValue("font-weight"),E=g.getPropertyValue("content");if(h&&!b)return t.removeChild(h),i();if(b&&E!=="none"&&E!==""){const A=g.getPropertyValue("content");let I=O4(y,w);const{value:j,isSecondary:D}=T4(A),R=b[0].startsWith("FontAwesome");let q=Ny(I,j),Y=q;if(R){const re=q3(j);re.iconName&&re.prefix&&(q=re.iconName,I=re.prefix)}if(q&&!D&&(!h||h.getAttribute(by)!==I||h.getAttribute(xy)!==Y)){t.setAttribute(r,Y),h&&t.removeChild(h);const re=m4(),{extra:G}=re;G.attributes[vy]=n,Uy(q,I).then(te=>{const ye=zy(Ce(Ce({},re),{},{icons:{main:te,mask:m_()},prefix:I,iconName:Y,extra:G,watchable:!0})),ce=ln.createElementNS("http://www.w3.org/2000/svg","svg");n==="::before"?t.insertBefore(ce,t.firstChild):t.appendChild(ce),ce.outerHTML=ye.map(X=>zd(X)).join(`
|
|
612
|
+
`),t.removeAttribute(r),i()}).catch(l)}else i()}else i()})}function R4(t){return Promise.all([N_(t,"::before"),N_(t,"::after")])}function M4(t){return t.parentNode!==document.head&&!~y3.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(vy)&&(!t.parentNode||t.parentNode.tagName!=="svg")}function I_(t){if(wo)return new Promise((n,r)=>{const i=uc(t.querySelectorAll("*")).filter(M4).map(R4),l=By.begin("searchPseudoElements");A_(),Promise.all(i).then(()=>{l(),Fy(),n()}).catch(()=>{l(),Fy(),r()})})}var D4={hooks(){return{mutationObserverCallbacks(t){return t.pseudoElementsCallback=I_,t}}},provides(t){t.pseudoElements2svg=function(n){const{node:r=ln}=n;Ye.searchPseudoElements&&I_(r)}}};let L_=!1;var k4={mixout(){return{dom:{unwatch(){A_(),L_=!0}}}},hooks(){return{bootstrap(){T_(Iy("mutationObserverCallbacks",{}))},noAuto(){f4()},watch(t){const{observeMutationsRoot:n}=t;L_?Fy():T_(Iy("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}};const z_=t=>{let n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce((r,i)=>{const l=i.toLowerCase().split("-"),f=l[0];let h=l.slice(1).join("-");if(f&&h==="h")return r.flipX=!0,r;if(f&&h==="v")return r.flipY=!0,r;if(h=parseFloat(h),isNaN(h))return r;switch(f){case"grow":r.size=r.size+h;break;case"shrink":r.size=r.size-h;break;case"left":r.x=r.x-h;break;case"right":r.x=r.x+h;break;case"up":r.y=r.y-h;break;case"down":r.y=r.y+h;break;case"rotate":r.rotate=r.rotate+h;break}return r},n)};var N4={mixout(){return{parse:{transform:t=>z_(t)}}},hooks(){return{parseNodeAttributes(t,n){const r=n.getAttribute("data-fa-transform");return r&&(t.transform=z_(r)),t}}},provides(t){t.generateAbstractTransformGrouping=function(n){let{main:r,transform:i,containerWidth:l,iconWidth:f}=n;const h={transform:"translate(".concat(l/2," 256)")},g="translate(".concat(i.x*32,", ").concat(i.y*32,") "),y="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),b="rotate(".concat(i.rotate," 0 0)"),w={transform:"".concat(g," ").concat(y," ").concat(b)},E={transform:"translate(".concat(f/2*-1," -256)")},A={outer:h,inner:w,path:E};return{tag:"g",attributes:Ce({},A.outer),children:[{tag:"g",attributes:Ce({},A.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Ce(Ce({},r.icon.attributes),A.path)}]}]}}}};const Gy={x:0,y:0,width:"100%",height:"100%"};function j_(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||n)&&(t.attributes.fill="black"),t}function I4(t){return t.tag==="g"?t.children:[t]}var L4={hooks(){return{parseNodeAttributes(t,n){const r=n.getAttribute("data-fa-mask"),i=r?Nm(r.split(" ").map(l=>l.trim())):m_();return i.prefix||(i.prefix=vs()),t.mask=i,t.maskId=n.getAttribute("data-fa-mask-id"),t}}},provides(t){t.generateAbstractMask=function(n){let{children:r,attributes:i,main:l,mask:f,maskId:h,transform:g}=n;const{width:y,icon:b}=l,{width:w,icon:E}=f,A=M3({transform:g,containerWidth:w,iconWidth:y}),I={tag:"rect",attributes:Ce(Ce({},Gy),{},{fill:"white"})},j=b.children?{children:b.children.map(j_)}:{},D={tag:"g",attributes:Ce({},A.inner),children:[j_(Ce({tag:b.tag,attributes:Ce(Ce({},b.attributes),A.path)},j))]},R={tag:"g",attributes:Ce({},A.outer),children:[D]},q="mask-".concat(h||Ld()),Y="clip-".concat(h||Ld()),re={tag:"mask",attributes:Ce(Ce({},Gy),{},{id:q,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[I,R]},G={tag:"defs",children:[{tag:"clipPath",attributes:{id:Y},children:I4(E)},re]};return r.push(G,{tag:"rect",attributes:Ce({fill:"currentColor","clip-path":"url(#".concat(Y,")"),mask:"url(#".concat(q,")")},Gy)}),{children:r,attributes:i}}}},z4={provides(t){let n=!1;gs.matchMedia&&(n=gs.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){const r=[],i={fill:"currentColor"},l={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Ce(Ce({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const f=Ce(Ce({},l),{},{attributeName:"opacity"}),h={tag:"circle",attributes:Ce(Ce({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||h.children.push({tag:"animate",attributes:Ce(Ce({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ce(Ce({},f),{},{values:"1;0;1;1;0;1;"})}),r.push(h),r.push({tag:"path",attributes:Ce(Ce({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Ce(Ce({},f),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Ce(Ce({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ce(Ce({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},j4={hooks(){return{parseNodeAttributes(t,n){const r=n.getAttribute("data-fa-symbol"),i=r===null?!1:r===""?!0:r;return t.symbol=i,t}}}},P4=[N3,w4,_4,S4,C4,D4,k4,N4,L4,z4,j4];X3(P4,{mixoutsTo:sr}),sr.noAuto,sr.config,sr.library,sr.dom;const Vy=sr.parse;sr.findIconDefinition,sr.toHtml;const U4=sr.icon;sr.layer,sr.text,sr.counter;var $y={exports:{}},Zy,P_;function H4(){if(P_)return Zy;P_=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zy=t,Zy}var Qy,U_;function B4(){if(U_)return Qy;U_=1;var t=H4();function n(){}function r(){}return r.resetWarningCache=n,Qy=function(){function i(h,g,y,b,w,E){if(E!==t){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}i.isRequired=i;function l(){return i}var f={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:l,element:i,elementType:i,instanceOf:l,node:i,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:r,resetWarningCache:n};return f.PropTypes=f,f},Qy}var H_;function q4(){return H_||(H_=1,$y.exports=B4()()),$y.exports}var F4=q4();const Ae=sc(F4);var Wy={env:{NODE_ENV:"production"}};function Xy(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,i=Array(n);r<n;r++)i[r]=t[r];return i}function Y4(t){if(Array.isArray(t))return t}function G4(t){if(Array.isArray(t))return Xy(t)}function xs(t,n,r){return(n=J4(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function V4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function $4(t,n){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i,l,f,h,g=[],y=!0,b=!1;try{if(f=(r=r.call(t)).next,n!==0)for(;!(y=(i=f.call(r)).done)&&(g.push(i.value),g.length!==n);y=!0);}catch(w){b=!0,l=w}finally{try{if(!y&&r.return!=null&&(h=r.return(),Object(h)!==h))return}finally{if(b)throw l}}return g}}function Z4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
613
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
614
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B_(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),r.push.apply(r,i)}return r}function Ri(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?B_(Object(r),!0).forEach(function(i){xs(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B_(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function W4(t,n){if(t==null)return{};var r,i,l=X4(t,n);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);for(i=0;i<f.length;i++)r=f[i],n.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(l[r]=t[r])}return l}function X4(t,n){if(t==null)return{};var r={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(n.indexOf(i)!==-1)continue;r[i]=t[i]}return r}function q_(t,n){return Y4(t)||$4(t,n)||F_(t,n)||Z4()}function Ky(t){return G4(t)||V4(t)||F_(t)||Q4()}function K4(t,n){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function J4(t){var n=K4(t,"string");return typeof n=="symbol"?n:n+""}function Pm(t){"@babel/helpers - typeof";return Pm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pm(t)}function F_(t,n){if(t){if(typeof t=="string")return Xy(t,n);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xy(t,n):void 0}}var eT="7.0.0",Jy;try{var tT=require("@fortawesome/fontawesome-svg-core/package.json");Jy=tT.version}catch{Jy=typeof Wy<"u"&&Wy.env.FA_VERSION||"7.0.0"}function nT(t){var n=t.beat,r=t.fade,i=t.beatFade,l=t.bounce,f=t.shake,h=t.flash,g=t.spin,y=t.spinPulse,b=t.spinReverse,w=t.pulse,E=t.fixedWidth,A=t.inverse,I=t.border,j=t.listItem,D=t.flip,R=t.size,q=t.rotation,Y=t.pull,re=t.swapOpacity,G=t.rotateBy,te=t.widthAuto,ye=aT(Jy,eT),ce=xs(xs(xs(xs(xs(xs({"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":l,"fa-shake":f,"fa-flash":h,"fa-spin":g,"fa-spin-reverse":b,"fa-spin-pulse":y,"fa-pulse":w,"fa-fw":E,"fa-inverse":A,"fa-border":I,"fa-li":j,"fa-flip":D===!0,"fa-flip-horizontal":D==="horizontal"||D==="both","fa-flip-vertical":D==="vertical"||D==="both"},"fa-".concat(R),typeof R<"u"&&R!==null),"fa-rotate-".concat(q),typeof q<"u"&&q!==null&&q!==0),"fa-pull-".concat(Y),typeof Y<"u"&&Y!==null),"fa-swap-opacity",re),"fa-rotate-by",ye&&G),"fa-width-auto",ye&&te);return Object.keys(ce).map(function(X){return ce[X]?X:null}).filter(function(X){return X})}function aT(t,n){for(var r=t.split("-"),i=q_(r,2),l=i[0],f=i[1],h=n.split("-"),g=q_(h,2),y=g[0],b=g[1],w=l.split("."),E=y.split("."),A=0;A<Math.max(w.length,E.length);A++){var I=w[A]||"0",j=E[A]||"0",D=parseInt(I,10),R=parseInt(j,10);if(D!==R)return D>R}for(var q=0;q<Math.max(w.length,E.length);q++){var Y=w[q]||"0",re=E[q]||"0";if(Y!==re&&Y.length!==re.length)return Y.length<re.length}return!(f&&!b)}function rT(t){return t=t-0,t===t}function Y_(t){return rT(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,function(n,r){return r?r.toUpperCase():""}),t.substr(0,1).toLowerCase()+t.substr(1))}var iT=["style"];function oT(t){return t.charAt(0).toUpperCase()+t.slice(1)}function sT(t){return t.split(";").map(function(n){return n.trim()}).filter(function(n){return n}).reduce(function(n,r){var i=r.indexOf(":"),l=Y_(r.slice(0,i)),f=r.slice(i+1).trim();return l.startsWith("webkit")?n[oT(l)]=f:n[l]=f,n},{})}function G_(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof n=="string")return n;var i=(n.children||[]).map(function(y){return G_(t,y)}),l=Object.keys(n.attributes||{}).reduce(function(y,b){var w=n.attributes[b];switch(b){case"class":y.attrs.className=w,delete n.attributes.class;break;case"style":y.attrs.style=sT(w);break;default:b.indexOf("aria-")===0||b.indexOf("data-")===0?y.attrs[b.toLowerCase()]=w:y.attrs[Y_(b)]=w}return y},{attrs:{}}),f=r.style,h=f===void 0?{}:f,g=W4(r,iT);return l.attrs.style=Ri(Ri({},l.attrs.style),h),t.apply(void 0,[n.tag,Ri(Ri({},l.attrs),g)].concat(Ky(i)))}var V_=!1;try{V_=Wy.env.NODE_ENV==="production"}catch{}function lT(){if(!V_&&console&&typeof console.error=="function"){var t;(t=console).error.apply(t,arguments)}}function $_(t){if(t&&Pm(t)==="object"&&t.prefix&&t.iconName&&t.icon)return t;if(Vy.icon)return Vy.icon(t);if(t===null)return null;if(t&&Pm(t)==="object"&&t.prefix&&t.iconName)return t;if(Array.isArray(t)&&t.length===2)return{prefix:t[0],iconName:t[1]};if(typeof t=="string")return{prefix:"fas",iconName:t}}function ev(t,n){return Array.isArray(n)&&n.length>0||!Array.isArray(n)&&n?xs({},t,n):{}}var Z_={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},ws=Dl.forwardRef(function(t,n){var r=Ri(Ri({},Z_),t),i=r.icon,l=r.mask,f=r.symbol,h=r.className,g=r.title,y=r.titleId,b=r.maskId,w=$_(i),E=ev("classes",[].concat(Ky(nT(r)),Ky((h||"").split(" ")))),A=ev("transform",typeof r.transform=="string"?Vy.transform(r.transform):r.transform),I=ev("mask",$_(l)),j=U4(w,Ri(Ri(Ri(Ri({},E),A),I),{},{symbol:f,title:g,titleId:y,maskId:b}));if(!j)return lT("Could not find icon",w),null;var D=j.abstract,R={ref:n};return Object.keys(r).forEach(function(q){Z_.hasOwnProperty(q)||(R[q]=r[q])}),uT(D[0],R)});ws.displayName="FontAwesomeIcon",ws.propTypes={beat:Ae.bool,border:Ae.bool,beatFade:Ae.bool,bounce:Ae.bool,className:Ae.string,fade:Ae.bool,flash:Ae.bool,mask:Ae.oneOfType([Ae.object,Ae.array,Ae.string]),maskId:Ae.string,fixedWidth:Ae.bool,inverse:Ae.bool,flip:Ae.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ae.oneOfType([Ae.object,Ae.array,Ae.string]),listItem:Ae.bool,pull:Ae.oneOf(["right","left"]),pulse:Ae.bool,rotation:Ae.oneOf([0,90,180,270]),rotateBy:Ae.bool,shake:Ae.bool,size:Ae.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ae.bool,spinPulse:Ae.bool,spinReverse:Ae.bool,symbol:Ae.oneOfType([Ae.bool,Ae.string]),title:Ae.string,titleId:Ae.string,transform:Ae.oneOfType([Ae.string,Ae.object]),swapOpacity:Ae.bool,widthAuto:Ae.bool};var uT=G_.bind(null,Dl.createElement),tv={exports:{}};/*!
|
|
615
615
|
Copyright (c) 2018 Jed Watson.
|
|
616
616
|
Licensed under the MIT License (MIT), see
|
|
617
617
|
http://jedwatson.github.io/classnames
|
|
618
|
-
*/var k_;function GT(){return k_||(k_=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var f="",h=0;h<arguments.length;h++){var m=arguments[h];m&&(f=l(f,i(m)))}return f}function i(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return r.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var h="";for(var m in f)t.call(f,m)&&f[m]&&(h=l(h,m));return h}function l(f,h){return h?f?f+" "+h:f+h:f}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ly)),Ly.exports}var VT=GT();const Bt=Pu(VT);var Ot;(function(e){e.assertEqual=l=>{};function t(l){}e.assertIs=t;function r(l){throw new Error}e.assertNever=r,e.arrayToEnum=l=>{const f={};for(const h of l)f[h]=h;return f},e.getValidEnumValues=l=>{const f=e.objectKeys(l).filter(m=>typeof l[l[m]]!="number"),h={};for(const m of f)h[m]=l[m];return e.objectValues(h)},e.objectValues=l=>e.objectKeys(l).map(function(f){return l[f]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const f=[];for(const h in l)Object.prototype.hasOwnProperty.call(l,h)&&f.push(h);return f},e.find=(l,f)=>{for(const h of l)if(f(h))return h},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function i(l,f=" | "){return l.map(h=>typeof h=="string"?`'${h}'`:h).join(f)}e.joinValues=i,e.jsonStringifyReplacer=(l,f)=>typeof f=="bigint"?f.toString():f})(Ot||(Ot={}));var zy;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(zy||(zy={}));const Ie=Ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_o=e=>{switch(typeof e){case"undefined":return Ie.undefined;case"string":return Ie.string;case"number":return Number.isNaN(e)?Ie.nan:Ie.number;case"boolean":return Ie.boolean;case"function":return Ie.function;case"bigint":return Ie.bigint;case"symbol":return Ie.symbol;case"object":return Array.isArray(e)?Ie.array:e===null?Ie.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ie.promise:typeof Map<"u"&&e instanceof Map?Ie.map:typeof Set<"u"&&e instanceof Set?Ie.set:typeof Date<"u"&&e instanceof Date?Ie.date:Ie.object;default:return Ie.unknown}},Ee=Ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$T=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class pr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(f){return f.message},i={_errors:[]},l=f=>{for(const h of f.issues)if(h.code==="invalid_union")h.unionErrors.map(l);else if(h.code==="invalid_return_type")l(h.returnTypeError);else if(h.code==="invalid_arguments")l(h.argumentsError);else if(h.path.length===0)i._errors.push(r(h));else{let m=i,y=0;for(;y<h.path.length;){const b=h.path[y];y===h.path.length-1?(m[b]=m[b]||{_errors:[]},m[b]._errors.push(r(h))):m[b]=m[b]||{_errors:[]},m=m[b],y++}}};return l(this),i}static assert(t){if(!(t instanceof pr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},i=[];for(const l of this.issues)if(l.path.length>0){const f=l.path[0];r[f]=r[f]||[],r[f].push(t(l))}else i.push(t(l));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}}pr.create=e=>new pr(e);const qu=(e,t)=>{let r;switch(e.code){case Ee.invalid_type:e.received===Ie.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Ee.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ot.jsonStringifyReplacer)}`;break;case Ee.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ot.joinValues(e.keys,", ")}`;break;case Ee.invalid_union:r="Invalid input";break;case Ee.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ot.joinValues(e.options)}`;break;case Ee.invalid_enum_value:r=`Invalid enum value. Expected ${Ot.joinValues(e.options)}, received '${e.received}'`;break;case Ee.invalid_arguments:r="Invalid function arguments";break;case Ee.invalid_return_type:r="Invalid function return type";break;case Ee.invalid_date:r="Invalid date";break;case Ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ot.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Ee.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Ee.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Ee.custom:r="Invalid input";break;case Ee.invalid_intersection_types:r="Intersection results could not be merged";break;case Ee.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Ee.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ot.assertNever(e)}return{message:r}};let N_=qu;function ZT(e){N_=e}function pm(){return N_}const mm=e=>{const{data:t,path:r,errorMaps:i,issueData:l}=e,f=[...r,...l.path||[]],h={...l,path:f};if(l.message!==void 0)return{...l,path:f,message:l.message};let m="";const y=i.filter(b=>!!b).slice().reverse();for(const b of y)m=b(h,{data:t,defaultError:m}).message;return{...l,path:f,message:m}},QT=[];function Me(e,t){const r=pm(),i=mm({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===qu?void 0:qu].filter(l=>!!l)});e.common.issues.push(i)}class ya{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const i=[];for(const l of r){if(l.status==="aborted")return Xe;l.status==="dirty"&&t.dirty(),i.push(l.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){const i=[];for(const l of r){const f=await l.key,h=await l.value;i.push({key:f,value:h})}return ya.mergeObjectSync(t,i)}static mergeObjectSync(t,r){const i={};for(const l of r){const{key:f,value:h}=l;if(f.status==="aborted"||h.status==="aborted")return Xe;f.status==="dirty"&&t.dirty(),h.status==="dirty"&&t.dirty(),f.value!=="__proto__"&&(typeof h.value<"u"||l.alwaysSet)&&(i[f.value]=h.value)}return{status:t.value,value:i}}}const Xe=Object.freeze({status:"aborted"}),Fu=e=>({status:"dirty",value:e}),Ra=e=>({status:"valid",value:e}),Py=e=>e.status==="aborted",jy=e=>e.status==="dirty",cl=e=>e.status==="valid",bd=e=>typeof Promise<"u"&&e instanceof Promise;var He;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(He||(He={}));class Ei{constructor(t,r,i,l){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const I_=(e,t)=>{if(cl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new pr(e.common.issues);return this._error=r,this._error}}};function st(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:i,description:l}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:l}:{errorMap:(h,m)=>{const{message:y}=e;return h.code==="invalid_enum_value"?{message:y??m.defaultError}:typeof m.data>"u"?{message:y??i??m.defaultError}:h.code!=="invalid_type"?{message:m.defaultError}:{message:y??r??m.defaultError}},description:l}}class ht{get description(){return this._def.description}_getType(t){return _o(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:_o(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ya,ctx:{common:t.parent.common,data:t.data,parsedType:_o(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(bd(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){const i={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:_o(t)},l=this._parseSync({data:t,path:i.path,parent:i});return I_(i,l)}"~validate"(t){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:_o(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return cl(i)?{value:i.value}:{issues:r.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>cl(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,r){const i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){const i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:_o(t)},l=this._parse({data:t,path:i.path,parent:i}),f=await(bd(l)?l:Promise.resolve(l));return I_(i,f)}refine(t,r){const i=l=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(l):r;return this._refinement((l,f)=>{const h=t(l),m=()=>f.addIssue({code:Ee.custom,...i(l)});return typeof Promise<"u"&&h instanceof Promise?h.then(y=>y?!0:(m(),!1)):h?!0:(m(),!1)})}refinement(t,r){return this._refinement((i,l)=>t(i)?!0:(l.addIssue(typeof r=="function"?r(i,l):r),!1))}_refinement(t){return new Vr({schema:this,typeName:tt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Ci.create(this,this._def)}nullable(){return ls.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gr.create(this)}promise(){return $u.create(this,this._def)}or(t){return Sd.create([this,t],this._def)}and(t){return Ed.create(this,t,this._def)}transform(t){return new Vr({...st(this._def),schema:this,typeName:tt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Rd({...st(this._def),innerType:this,defaultValue:r,typeName:tt.ZodDefault})}brand(){return new By({typeName:tt.ZodBranded,type:this,...st(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Dd({...st(this._def),innerType:this,catchValue:r,typeName:tt.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Md.create(this,t)}readonly(){return kd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const WT=/^c[^\s-]{8,}$/i,XT=/^[0-9a-z]+$/,KT=/^[0-9A-HJKMNP-TV-Z]{26}$/i,JT=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eO=/^[a-z0-9_-]{21}$/i,tO=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,nO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,aO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Uy;const iO=/^(?:(?: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])$/,oO=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,sO=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,lO=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,uO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,cO=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,L_="((\\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])))",fO=new RegExp(`^${L_}$`);function z_(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function dO(e){return new RegExp(`^${z_(e)}$`)}function P_(e){let t=`${L_}T${z_(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function hO(e,t){return!!((t==="v4"||!t)&&iO.test(e)||(t==="v6"||!t)&&sO.test(e))}function pO(e,t){if(!tO.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),l=JSON.parse(atob(i));return!(typeof l!="object"||l===null||"typ"in l&&l?.typ!=="JWT"||!l.alg||t&&l.alg!==t)}catch{return!1}}function mO(e,t){return!!((t==="v4"||!t)&&oO.test(e)||(t==="v6"||!t)&&lO.test(e))}class Yr extends ht{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ie.string){const f=this._getOrReturnCtx(t);return Me(f,{code:Ee.invalid_type,expected:Ie.string,received:f.parsedType}),Xe}const i=new ya;let l;for(const f of this._def.checks)if(f.kind==="min")t.data.length<f.value&&(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),i.dirty());else if(f.kind==="max")t.data.length>f.value&&(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),i.dirty());else if(f.kind==="length"){const h=t.data.length>f.value,m=t.data.length<f.value;(h||m)&&(l=this._getOrReturnCtx(t,l),h?Me(l,{code:Ee.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&Me(l,{code:Ee.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),i.dirty())}else if(f.kind==="email")aO.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"email",code:Ee.invalid_string,message:f.message}),i.dirty());else if(f.kind==="emoji")Uy||(Uy=new RegExp(rO,"u")),Uy.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"emoji",code:Ee.invalid_string,message:f.message}),i.dirty());else if(f.kind==="uuid")JT.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"uuid",code:Ee.invalid_string,message:f.message}),i.dirty());else if(f.kind==="nanoid")eO.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"nanoid",code:Ee.invalid_string,message:f.message}),i.dirty());else if(f.kind==="cuid")WT.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"cuid",code:Ee.invalid_string,message:f.message}),i.dirty());else if(f.kind==="cuid2")XT.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"cuid2",code:Ee.invalid_string,message:f.message}),i.dirty());else if(f.kind==="ulid")KT.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"ulid",code:Ee.invalid_string,message:f.message}),i.dirty());else if(f.kind==="url")try{new URL(t.data)}catch{l=this._getOrReturnCtx(t,l),Me(l,{validation:"url",code:Ee.invalid_string,message:f.message}),i.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"regex",code:Ee.invalid_string,message:f.message}),i.dirty())):f.kind==="trim"?t.data=t.data.trim():f.kind==="includes"?t.data.includes(f.value,f.position)||(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),i.dirty()):f.kind==="toLowerCase"?t.data=t.data.toLowerCase():f.kind==="toUpperCase"?t.data=t.data.toUpperCase():f.kind==="startsWith"?t.data.startsWith(f.value)||(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.invalid_string,validation:{startsWith:f.value},message:f.message}),i.dirty()):f.kind==="endsWith"?t.data.endsWith(f.value)||(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.invalid_string,validation:{endsWith:f.value},message:f.message}),i.dirty()):f.kind==="datetime"?P_(f).test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.invalid_string,validation:"datetime",message:f.message}),i.dirty()):f.kind==="date"?fO.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.invalid_string,validation:"date",message:f.message}),i.dirty()):f.kind==="time"?dO(f).test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.invalid_string,validation:"time",message:f.message}),i.dirty()):f.kind==="duration"?nO.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"duration",code:Ee.invalid_string,message:f.message}),i.dirty()):f.kind==="ip"?hO(t.data,f.version)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"ip",code:Ee.invalid_string,message:f.message}),i.dirty()):f.kind==="jwt"?pO(t.data,f.alg)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"jwt",code:Ee.invalid_string,message:f.message}),i.dirty()):f.kind==="cidr"?mO(t.data,f.version)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"cidr",code:Ee.invalid_string,message:f.message}),i.dirty()):f.kind==="base64"?uO.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"base64",code:Ee.invalid_string,message:f.message}),i.dirty()):f.kind==="base64url"?cO.test(t.data)||(l=this._getOrReturnCtx(t,l),Me(l,{validation:"base64url",code:Ee.invalid_string,message:f.message}),i.dirty()):Ot.assertNever(f);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(l=>t.test(l),{validation:r,code:Ee.invalid_string,...He.errToObj(i)})}_addCheck(t){return new Yr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...He.errToObj(t)})}url(t){return this._addCheck({kind:"url",...He.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...He.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...He.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...He.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...He.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...He.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...He.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...He.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...He.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...He.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...He.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...He.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...He.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...He.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...He.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...He.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...He.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...He.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...He.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...He.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...He.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...He.errToObj(r)})}nonempty(t){return this.min(1,He.errToObj(t))}trim(){return new Yr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Yr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Yr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Yr.create=e=>new Yr({checks:[],typeName:tt.ZodString,coerce:e?.coerce??!1,...st(e)});function gO(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,l=r>i?r:i,f=Number.parseInt(e.toFixed(l).replace(".","")),h=Number.parseInt(t.toFixed(l).replace(".",""));return f%h/10**l}class is extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ie.number){const f=this._getOrReturnCtx(t);return Me(f,{code:Ee.invalid_type,expected:Ie.number,received:f.parsedType}),Xe}let i;const l=new ya;for(const f of this._def.checks)f.kind==="int"?Ot.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),Me(i,{code:Ee.invalid_type,expected:"integer",received:"float",message:f.message}),l.dirty()):f.kind==="min"?(f.inclusive?t.data<f.value:t.data<=f.value)&&(i=this._getOrReturnCtx(t,i),Me(i,{code:Ee.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),l.dirty()):f.kind==="max"?(f.inclusive?t.data>f.value:t.data>=f.value)&&(i=this._getOrReturnCtx(t,i),Me(i,{code:Ee.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),l.dirty()):f.kind==="multipleOf"?gO(t.data,f.value)!==0&&(i=this._getOrReturnCtx(t,i),Me(i,{code:Ee.not_multiple_of,multipleOf:f.value,message:f.message}),l.dirty()):f.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),Me(i,{code:Ee.not_finite,message:f.message}),l.dirty()):Ot.assertNever(f);return{status:l.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,He.toString(r))}gt(t,r){return this.setLimit("min",t,!1,He.toString(r))}lte(t,r){return this.setLimit("max",t,!0,He.toString(r))}lt(t,r){return this.setLimit("max",t,!1,He.toString(r))}setLimit(t,r,i,l){return new is({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:He.toString(l)}]})}_addCheck(t){return new is({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:He.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:He.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:He.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:He.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:He.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:He.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:He.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:He.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:He.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ot.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}}is.create=e=>new is({checks:[],typeName:tt.ZodNumber,coerce:e?.coerce||!1,...st(e)});class os extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ie.bigint)return this._getInvalidInput(t);let i;const l=new ya;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?t.data<f.value:t.data<=f.value)&&(i=this._getOrReturnCtx(t,i),Me(i,{code:Ee.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),l.dirty()):f.kind==="max"?(f.inclusive?t.data>f.value:t.data>=f.value)&&(i=this._getOrReturnCtx(t,i),Me(i,{code:Ee.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),l.dirty()):f.kind==="multipleOf"?t.data%f.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),Me(i,{code:Ee.not_multiple_of,multipleOf:f.value,message:f.message}),l.dirty()):Ot.assertNever(f);return{status:l.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return Me(r,{code:Ee.invalid_type,expected:Ie.bigint,received:r.parsedType}),Xe}gte(t,r){return this.setLimit("min",t,!0,He.toString(r))}gt(t,r){return this.setLimit("min",t,!1,He.toString(r))}lte(t,r){return this.setLimit("max",t,!0,He.toString(r))}lt(t,r){return this.setLimit("max",t,!1,He.toString(r))}setLimit(t,r,i,l){return new os({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:He.toString(l)}]})}_addCheck(t){return new os({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:He.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:He.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:He.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:He.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:He.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}os.create=e=>new os({checks:[],typeName:tt.ZodBigInt,coerce:e?.coerce??!1,...st(e)});class xd extends ht{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ie.boolean){const i=this._getOrReturnCtx(t);return Me(i,{code:Ee.invalid_type,expected:Ie.boolean,received:i.parsedType}),Xe}return Ra(t.data)}}xd.create=e=>new xd({typeName:tt.ZodBoolean,coerce:e?.coerce||!1,...st(e)});class fl extends ht{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ie.date){const f=this._getOrReturnCtx(t);return Me(f,{code:Ee.invalid_type,expected:Ie.date,received:f.parsedType}),Xe}if(Number.isNaN(t.data.getTime())){const f=this._getOrReturnCtx(t);return Me(f,{code:Ee.invalid_date}),Xe}const i=new ya;let l;for(const f of this._def.checks)f.kind==="min"?t.data.getTime()<f.value&&(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),i.dirty()):f.kind==="max"?t.data.getTime()>f.value&&(l=this._getOrReturnCtx(t,l),Me(l,{code:Ee.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),i.dirty()):Ot.assertNever(f);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new fl({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:He.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:He.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}fl.create=e=>new fl({checks:[],coerce:e?.coerce||!1,typeName:tt.ZodDate,...st(e)});class gm extends ht{_parse(t){if(this._getType(t)!==Ie.symbol){const i=this._getOrReturnCtx(t);return Me(i,{code:Ee.invalid_type,expected:Ie.symbol,received:i.parsedType}),Xe}return Ra(t.data)}}gm.create=e=>new gm({typeName:tt.ZodSymbol,...st(e)});class wd extends ht{_parse(t){if(this._getType(t)!==Ie.undefined){const i=this._getOrReturnCtx(t);return Me(i,{code:Ee.invalid_type,expected:Ie.undefined,received:i.parsedType}),Xe}return Ra(t.data)}}wd.create=e=>new wd({typeName:tt.ZodUndefined,...st(e)});class _d extends ht{_parse(t){if(this._getType(t)!==Ie.null){const i=this._getOrReturnCtx(t);return Me(i,{code:Ee.invalid_type,expected:Ie.null,received:i.parsedType}),Xe}return Ra(t.data)}}_d.create=e=>new _d({typeName:tt.ZodNull,...st(e)});class Yu extends ht{constructor(){super(...arguments),this._any=!0}_parse(t){return Ra(t.data)}}Yu.create=e=>new Yu({typeName:tt.ZodAny,...st(e)});class dl extends ht{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ra(t.data)}}dl.create=e=>new dl({typeName:tt.ZodUnknown,...st(e)});class So extends ht{_parse(t){const r=this._getOrReturnCtx(t);return Me(r,{code:Ee.invalid_type,expected:Ie.never,received:r.parsedType}),Xe}}So.create=e=>new So({typeName:tt.ZodNever,...st(e)});class ym extends ht{_parse(t){if(this._getType(t)!==Ie.undefined){const i=this._getOrReturnCtx(t);return Me(i,{code:Ee.invalid_type,expected:Ie.void,received:i.parsedType}),Xe}return Ra(t.data)}}ym.create=e=>new ym({typeName:tt.ZodVoid,...st(e)});class Gr extends ht{_parse(t){const{ctx:r,status:i}=this._processInputParams(t),l=this._def;if(r.parsedType!==Ie.array)return Me(r,{code:Ee.invalid_type,expected:Ie.array,received:r.parsedType}),Xe;if(l.exactLength!==null){const h=r.data.length>l.exactLength.value,m=r.data.length<l.exactLength.value;(h||m)&&(Me(r,{code:h?Ee.too_big:Ee.too_small,minimum:m?l.exactLength.value:void 0,maximum:h?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),i.dirty())}if(l.minLength!==null&&r.data.length<l.minLength.value&&(Me(r,{code:Ee.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),i.dirty()),l.maxLength!==null&&r.data.length>l.maxLength.value&&(Me(r,{code:Ee.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((h,m)=>l.type._parseAsync(new Ei(r,h,r.path,m)))).then(h=>ya.mergeArray(i,h));const f=[...r.data].map((h,m)=>l.type._parseSync(new Ei(r,h,r.path,m)));return ya.mergeArray(i,f)}get element(){return this._def.type}min(t,r){return new Gr({...this._def,minLength:{value:t,message:He.toString(r)}})}max(t,r){return new Gr({...this._def,maxLength:{value:t,message:He.toString(r)}})}length(t,r){return new Gr({...this._def,exactLength:{value:t,message:He.toString(r)}})}nonempty(t){return this.min(1,t)}}Gr.create=(e,t)=>new Gr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tt.ZodArray,...st(t)});function Gu(e){if(e instanceof gn){const t={};for(const r in e.shape){const i=e.shape[r];t[r]=Ci.create(Gu(i))}return new gn({...e._def,shape:()=>t})}else return e instanceof Gr?new Gr({...e._def,type:Gu(e.element)}):e instanceof Ci?Ci.create(Gu(e.unwrap())):e instanceof ls?ls.create(Gu(e.unwrap())):e instanceof Ai?Ai.create(e.items.map(t=>Gu(t))):e}class gn extends ht{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Ot.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Ie.object){const b=this._getOrReturnCtx(t);return Me(b,{code:Ee.invalid_type,expected:Ie.object,received:b.parsedType}),Xe}const{status:i,ctx:l}=this._processInputParams(t),{shape:f,keys:h}=this._getCached(),m=[];if(!(this._def.catchall instanceof So&&this._def.unknownKeys==="strip"))for(const b in l.data)h.includes(b)||m.push(b);const y=[];for(const b of h){const x=f[b],S=l.data[b];y.push({key:{status:"valid",value:b},value:x._parse(new Ei(l,S,l.path,b)),alwaysSet:b in l.data})}if(this._def.catchall instanceof So){const b=this._def.unknownKeys;if(b==="passthrough")for(const x of m)y.push({key:{status:"valid",value:x},value:{status:"valid",value:l.data[x]}});else if(b==="strict")m.length>0&&(Me(l,{code:Ee.unrecognized_keys,keys:m}),i.dirty());else if(b!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const b=this._def.catchall;for(const x of m){const S=l.data[x];y.push({key:{status:"valid",value:x},value:b._parse(new Ei(l,S,l.path,x)),alwaysSet:x in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const b=[];for(const x of y){const S=await x.key,T=await x.value;b.push({key:S,value:T,alwaysSet:x.alwaysSet})}return b}).then(b=>ya.mergeObjectSync(i,b)):ya.mergeObjectSync(i,y)}get shape(){return this._def.shape()}strict(t){return He.errToObj,new gn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{const l=this._def.errorMap?.(r,i).message??i.defaultError;return r.code==="unrecognized_keys"?{message:He.errToObj(t).message??l}:{message:l}}}:{}})}strip(){return new gn({...this._def,unknownKeys:"strip"})}passthrough(){return new gn({...this._def,unknownKeys:"passthrough"})}extend(t){return new gn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new gn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:tt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new gn({...this._def,catchall:t})}pick(t){const r={};for(const i of Ot.objectKeys(t))t[i]&&this.shape[i]&&(r[i]=this.shape[i]);return new gn({...this._def,shape:()=>r})}omit(t){const r={};for(const i of Ot.objectKeys(this.shape))t[i]||(r[i]=this.shape[i]);return new gn({...this._def,shape:()=>r})}deepPartial(){return Gu(this)}partial(t){const r={};for(const i of Ot.objectKeys(this.shape)){const l=this.shape[i];t&&!t[i]?r[i]=l:r[i]=l.optional()}return new gn({...this._def,shape:()=>r})}required(t){const r={};for(const i of Ot.objectKeys(this.shape))if(t&&!t[i])r[i]=this.shape[i];else{let f=this.shape[i];for(;f instanceof Ci;)f=f._def.innerType;r[i]=f}return new gn({...this._def,shape:()=>r})}keyof(){return j_(Ot.objectKeys(this.shape))}}gn.create=(e,t)=>new gn({shape:()=>e,unknownKeys:"strip",catchall:So.create(),typeName:tt.ZodObject,...st(t)}),gn.strictCreate=(e,t)=>new gn({shape:()=>e,unknownKeys:"strict",catchall:So.create(),typeName:tt.ZodObject,...st(t)}),gn.lazycreate=(e,t)=>new gn({shape:e,unknownKeys:"strip",catchall:So.create(),typeName:tt.ZodObject,...st(t)});class Sd extends ht{_parse(t){const{ctx:r}=this._processInputParams(t),i=this._def.options;function l(f){for(const m of f)if(m.result.status==="valid")return m.result;for(const m of f)if(m.result.status==="dirty")return r.common.issues.push(...m.ctx.common.issues),m.result;const h=f.map(m=>new pr(m.ctx.common.issues));return Me(r,{code:Ee.invalid_union,unionErrors:h}),Xe}if(r.common.async)return Promise.all(i.map(async f=>{const h={...r,common:{...r.common,issues:[]},parent:null};return{result:await f._parseAsync({data:r.data,path:r.path,parent:h}),ctx:h}})).then(l);{let f;const h=[];for(const y of i){const b={...r,common:{...r.common,issues:[]},parent:null},x=y._parseSync({data:r.data,path:r.path,parent:b});if(x.status==="valid")return x;x.status==="dirty"&&!f&&(f={result:x,ctx:b}),b.common.issues.length&&h.push(b.common.issues)}if(f)return r.common.issues.push(...f.ctx.common.issues),f.result;const m=h.map(y=>new pr(y));return Me(r,{code:Ee.invalid_union,unionErrors:m}),Xe}}get options(){return this._def.options}}Sd.create=(e,t)=>new Sd({options:e,typeName:tt.ZodUnion,...st(t)});const Eo=e=>e instanceof Cd?Eo(e.schema):e instanceof Vr?Eo(e.innerType()):e instanceof Td?[e.value]:e instanceof ss?e.options:e instanceof Od?Ot.objectValues(e.enum):e instanceof Rd?Eo(e._def.innerType):e instanceof wd?[void 0]:e instanceof _d?[null]:e instanceof Ci?[void 0,...Eo(e.unwrap())]:e instanceof ls?[null,...Eo(e.unwrap())]:e instanceof By||e instanceof kd?Eo(e.unwrap()):e instanceof Dd?Eo(e._def.innerType):[];class vm extends ht{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ie.object)return Me(r,{code:Ee.invalid_type,expected:Ie.object,received:r.parsedType}),Xe;const i=this.discriminator,l=r.data[i],f=this.optionsMap.get(l);return f?r.common.async?f._parseAsync({data:r.data,path:r.path,parent:r}):f._parseSync({data:r.data,path:r.path,parent:r}):(Me(r,{code:Ee.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Xe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){const l=new Map;for(const f of r){const h=Eo(f.shape[t]);if(!h.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const m of h){if(l.has(m))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(m)}`);l.set(m,f)}}return new vm({typeName:tt.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:l,...st(i)})}}function Hy(e,t){const r=_o(e),i=_o(t);if(e===t)return{valid:!0,data:e};if(r===Ie.object&&i===Ie.object){const l=Ot.objectKeys(t),f=Ot.objectKeys(e).filter(m=>l.indexOf(m)!==-1),h={...e,...t};for(const m of f){const y=Hy(e[m],t[m]);if(!y.valid)return{valid:!1};h[m]=y.data}return{valid:!0,data:h}}else if(r===Ie.array&&i===Ie.array){if(e.length!==t.length)return{valid:!1};const l=[];for(let f=0;f<e.length;f++){const h=e[f],m=t[f],y=Hy(h,m);if(!y.valid)return{valid:!1};l.push(y.data)}return{valid:!0,data:l}}else return r===Ie.date&&i===Ie.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ed extends ht{_parse(t){const{status:r,ctx:i}=this._processInputParams(t),l=(f,h)=>{if(Py(f)||Py(h))return Xe;const m=Hy(f.value,h.value);return m.valid?((jy(f)||jy(h))&&r.dirty(),{status:r.value,value:m.data}):(Me(i,{code:Ee.invalid_intersection_types}),Xe)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([f,h])=>l(f,h)):l(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Ed.create=(e,t,r)=>new Ed({left:e,right:t,typeName:tt.ZodIntersection,...st(r)});class Ai extends ht{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==Ie.array)return Me(i,{code:Ee.invalid_type,expected:Ie.array,received:i.parsedType}),Xe;if(i.data.length<this._def.items.length)return Me(i,{code:Ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Xe;!this._def.rest&&i.data.length>this._def.items.length&&(Me(i,{code:Ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const f=[...i.data].map((h,m)=>{const y=this._def.items[m]||this._def.rest;return y?y._parse(new Ei(i,h,i.path,m)):null}).filter(h=>!!h);return i.common.async?Promise.all(f).then(h=>ya.mergeArray(r,h)):ya.mergeArray(r,f)}get items(){return this._def.items}rest(t){return new Ai({...this._def,rest:t})}}Ai.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ai({items:e,typeName:tt.ZodTuple,rest:null,...st(t)})};class Ad extends ht{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==Ie.object)return Me(i,{code:Ee.invalid_type,expected:Ie.object,received:i.parsedType}),Xe;const l=[],f=this._def.keyType,h=this._def.valueType;for(const m in i.data)l.push({key:f._parse(new Ei(i,m,i.path,m)),value:h._parse(new Ei(i,i.data[m],i.path,m)),alwaysSet:m in i.data});return i.common.async?ya.mergeObjectAsync(r,l):ya.mergeObjectSync(r,l)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof ht?new Ad({keyType:t,valueType:r,typeName:tt.ZodRecord,...st(i)}):new Ad({keyType:Yr.create(),valueType:t,typeName:tt.ZodRecord,...st(r)})}}class bm extends ht{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==Ie.map)return Me(i,{code:Ee.invalid_type,expected:Ie.map,received:i.parsedType}),Xe;const l=this._def.keyType,f=this._def.valueType,h=[...i.data.entries()].map(([m,y],b)=>({key:l._parse(new Ei(i,m,i.path,[b,"key"])),value:f._parse(new Ei(i,y,i.path,[b,"value"]))}));if(i.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const y of h){const b=await y.key,x=await y.value;if(b.status==="aborted"||x.status==="aborted")return Xe;(b.status==="dirty"||x.status==="dirty")&&r.dirty(),m.set(b.value,x.value)}return{status:r.value,value:m}})}else{const m=new Map;for(const y of h){const b=y.key,x=y.value;if(b.status==="aborted"||x.status==="aborted")return Xe;(b.status==="dirty"||x.status==="dirty")&&r.dirty(),m.set(b.value,x.value)}return{status:r.value,value:m}}}}bm.create=(e,t,r)=>new bm({valueType:t,keyType:e,typeName:tt.ZodMap,...st(r)});class hl extends ht{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==Ie.set)return Me(i,{code:Ee.invalid_type,expected:Ie.set,received:i.parsedType}),Xe;const l=this._def;l.minSize!==null&&i.data.size<l.minSize.value&&(Me(i,{code:Ee.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),r.dirty()),l.maxSize!==null&&i.data.size>l.maxSize.value&&(Me(i,{code:Ee.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),r.dirty());const f=this._def.valueType;function h(y){const b=new Set;for(const x of y){if(x.status==="aborted")return Xe;x.status==="dirty"&&r.dirty(),b.add(x.value)}return{status:r.value,value:b}}const m=[...i.data.values()].map((y,b)=>f._parse(new Ei(i,y,i.path,b)));return i.common.async?Promise.all(m).then(y=>h(y)):h(m)}min(t,r){return new hl({...this._def,minSize:{value:t,message:He.toString(r)}})}max(t,r){return new hl({...this._def,maxSize:{value:t,message:He.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}hl.create=(e,t)=>new hl({valueType:e,minSize:null,maxSize:null,typeName:tt.ZodSet,...st(t)});class Vu extends ht{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ie.function)return Me(r,{code:Ee.invalid_type,expected:Ie.function,received:r.parsedType}),Xe;function i(m,y){return mm({data:m,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,pm(),qu].filter(b=>!!b),issueData:{code:Ee.invalid_arguments,argumentsError:y}})}function l(m,y){return mm({data:m,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,pm(),qu].filter(b=>!!b),issueData:{code:Ee.invalid_return_type,returnTypeError:y}})}const f={errorMap:r.common.contextualErrorMap},h=r.data;if(this._def.returns instanceof $u){const m=this;return Ra(async function(...y){const b=new pr([]),x=await m._def.args.parseAsync(y,f).catch(N=>{throw b.addIssue(i(y,N)),b}),S=await Reflect.apply(h,this,x);return await m._def.returns._def.type.parseAsync(S,f).catch(N=>{throw b.addIssue(l(S,N)),b})})}else{const m=this;return Ra(function(...y){const b=m._def.args.safeParse(y,f);if(!b.success)throw new pr([i(y,b.error)]);const x=Reflect.apply(h,this,b.data),S=m._def.returns.safeParse(x,f);if(!S.success)throw new pr([l(x,S.error)]);return S.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Vu({...this._def,args:Ai.create(t).rest(dl.create())})}returns(t){return new Vu({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new Vu({args:t||Ai.create([]).rest(dl.create()),returns:r||dl.create(),typeName:tt.ZodFunction,...st(i)})}}class Cd extends ht{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Cd.create=(e,t)=>new Cd({getter:e,typeName:tt.ZodLazy,...st(t)});class Td extends ht{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Me(r,{received:r.data,code:Ee.invalid_literal,expected:this._def.value}),Xe}return{status:"valid",value:t.data}}get value(){return this._def.value}}Td.create=(e,t)=>new Td({value:e,typeName:tt.ZodLiteral,...st(t)});function j_(e,t){return new ss({values:e,typeName:tt.ZodEnum,...st(t)})}class ss extends ht{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),i=this._def.values;return Me(r,{expected:Ot.joinValues(i),received:r.parsedType,code:Ee.invalid_type}),Xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),i=this._def.values;return Me(r,{received:r.data,code:Ee.invalid_enum_value,options:i}),Xe}return Ra(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return ss.create(t,{...this._def,...r})}exclude(t,r=this._def){return ss.create(this.options.filter(i=>!t.includes(i)),{...this._def,...r})}}ss.create=j_;class Od extends ht{_parse(t){const r=Ot.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==Ie.string&&i.parsedType!==Ie.number){const l=Ot.objectValues(r);return Me(i,{expected:Ot.joinValues(l),received:i.parsedType,code:Ee.invalid_type}),Xe}if(this._cache||(this._cache=new Set(Ot.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const l=Ot.objectValues(r);return Me(i,{received:i.data,code:Ee.invalid_enum_value,options:l}),Xe}return Ra(t.data)}get enum(){return this._def.values}}Od.create=(e,t)=>new Od({values:e,typeName:tt.ZodNativeEnum,...st(t)});class $u extends ht{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ie.promise&&r.common.async===!1)return Me(r,{code:Ee.invalid_type,expected:Ie.promise,received:r.parsedType}),Xe;const i=r.parsedType===Ie.promise?r.data:Promise.resolve(r.data);return Ra(i.then(l=>this._def.type.parseAsync(l,{path:r.path,errorMap:r.common.contextualErrorMap})))}}$u.create=(e,t)=>new $u({type:e,typeName:tt.ZodPromise,...st(t)});class Vr extends ht{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:i}=this._processInputParams(t),l=this._def.effect||null,f={addIssue:h=>{Me(i,h),h.fatal?r.abort():r.dirty()},get path(){return i.path}};if(f.addIssue=f.addIssue.bind(f),l.type==="preprocess"){const h=l.transform(i.data,f);if(i.common.async)return Promise.resolve(h).then(async m=>{if(r.value==="aborted")return Xe;const y=await this._def.schema._parseAsync({data:m,path:i.path,parent:i});return y.status==="aborted"?Xe:y.status==="dirty"||r.value==="dirty"?Fu(y.value):y});{if(r.value==="aborted")return Xe;const m=this._def.schema._parseSync({data:h,path:i.path,parent:i});return m.status==="aborted"?Xe:m.status==="dirty"||r.value==="dirty"?Fu(m.value):m}}if(l.type==="refinement"){const h=m=>{const y=l.refinement(m,f);if(i.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return m};if(i.common.async===!1){const m=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return m.status==="aborted"?Xe:(m.status==="dirty"&&r.dirty(),h(m.value),{status:r.value,value:m.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(m=>m.status==="aborted"?Xe:(m.status==="dirty"&&r.dirty(),h(m.value).then(()=>({status:r.value,value:m.value}))))}if(l.type==="transform")if(i.common.async===!1){const h=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!cl(h))return Xe;const m=l.transform(h.value,f);if(m instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:m}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(h=>cl(h)?Promise.resolve(l.transform(h.value,f)).then(m=>({status:r.value,value:m})):Xe);Ot.assertNever(l)}}Vr.create=(e,t,r)=>new Vr({schema:e,typeName:tt.ZodEffects,effect:t,...st(r)}),Vr.createWithPreprocess=(e,t,r)=>new Vr({schema:t,effect:{type:"preprocess",transform:e},typeName:tt.ZodEffects,...st(r)});class Ci extends ht{_parse(t){return this._getType(t)===Ie.undefined?Ra(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ci.create=(e,t)=>new Ci({innerType:e,typeName:tt.ZodOptional,...st(t)});class ls extends ht{_parse(t){return this._getType(t)===Ie.null?Ra(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ls.create=(e,t)=>new ls({innerType:e,typeName:tt.ZodNullable,...st(t)});class Rd extends ht{_parse(t){const{ctx:r}=this._processInputParams(t);let i=r.data;return r.parsedType===Ie.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Rd.create=(e,t)=>new Rd({innerType:e,typeName:tt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...st(t)});class Dd extends ht{_parse(t){const{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},l=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return bd(l)?l.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new pr(i.common.issues)},input:i.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new pr(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Dd.create=(e,t)=>new Dd({innerType:e,typeName:tt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...st(t)});class xm extends ht{_parse(t){if(this._getType(t)!==Ie.nan){const i=this._getOrReturnCtx(t);return Me(i,{code:Ee.invalid_type,expected:Ie.nan,received:i.parsedType}),Xe}return{status:"valid",value:t.data}}}xm.create=e=>new xm({typeName:tt.ZodNaN,...st(e)});const yO=Symbol("zod_brand");class By extends ht{_parse(t){const{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}}class Md extends ht{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return f.status==="aborted"?Xe:f.status==="dirty"?(r.dirty(),Fu(f.value)):this._def.out._parseAsync({data:f.value,path:i.path,parent:i})})();{const l=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?Xe:l.status==="dirty"?(r.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:i.path,parent:i})}}static create(t,r){return new Md({in:t,out:r,typeName:tt.ZodPipeline})}}class kd extends ht{_parse(t){const r=this._def.innerType._parse(t),i=l=>(cl(l)&&(l.value=Object.freeze(l.value)),l);return bd(r)?r.then(l=>i(l)):i(r)}unwrap(){return this._def.innerType}}kd.create=(e,t)=>new kd({innerType:e,typeName:tt.ZodReadonly,...st(t)});function U_(e,t){const r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function qy(e,t={},r){return e?Yu.create().superRefine((i,l)=>{const f=e(i);if(f instanceof Promise)return f.then(h=>{if(!h){const m=U_(t,i),y=m.fatal??r??!0;l.addIssue({code:"custom",...m,fatal:y})}});if(!f){const h=U_(t,i),m=h.fatal??r??!0;l.addIssue({code:"custom",...h,fatal:m})}}):Yu.create()}const vO={object:gn.lazycreate};var tt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(tt||(tt={}));const bO=(e,t={message:`Input not instance of ${e.name}`})=>qy(r=>r instanceof e,t),k=Yr.create,nt=is.create,xO=xm.create,wO=os.create,lt=xd.create,Fy=fl.create,_O=gm.create,SO=wd.create,EO=_d.create,AO=Yu.create,CO=dl.create,TO=So.create,Yy=ym.create,oa=Gr.create,yt=gn.create,OO=gn.strictCreate,Zu=Sd.create,Nd=vm.create,RO=Ed.create,DO=Ai.create,Gy=Ad.create,MO=bm.create,kO=hl.create,Vy=Vu.create,NO=Cd.create,qt=Td.create,Qu=ss.create,IO=Od.create,LO=$u.create,H_=Vr.create,zO=Ci.create,PO=ls.create,jO=Vr.createWithPreprocess,UO=Md.create,Wu=Object.freeze(Object.defineProperty({__proto__:null,BRAND:yO,DIRTY:Fu,EMPTY_PATH:QT,INVALID:Xe,NEVER:Xe,OK:Ra,ParseStatus:ya,Schema:ht,ZodAny:Yu,ZodArray:Gr,ZodBigInt:os,ZodBoolean:xd,ZodBranded:By,ZodCatch:Dd,ZodDate:fl,ZodDefault:Rd,ZodDiscriminatedUnion:vm,ZodEffects:Vr,ZodEnum:ss,ZodError:pr,get ZodFirstPartyTypeKind(){return tt},ZodFunction:Vu,ZodIntersection:Ed,ZodIssueCode:Ee,ZodLazy:Cd,ZodLiteral:Td,ZodMap:bm,ZodNaN:xm,ZodNativeEnum:Od,ZodNever:So,ZodNull:_d,ZodNullable:ls,ZodNumber:is,ZodObject:gn,ZodOptional:Ci,ZodParsedType:Ie,ZodPipeline:Md,ZodPromise:$u,ZodReadonly:kd,ZodRecord:Ad,ZodSchema:ht,ZodSet:hl,ZodString:Yr,ZodSymbol:gm,ZodTransformer:Vr,ZodTuple:Ai,ZodType:ht,ZodUndefined:wd,ZodUnion:Sd,ZodUnknown:dl,ZodVoid:ym,addIssueToContext:Me,any:AO,array:oa,bigint:wO,boolean:lt,coerce:{string:(e=>Yr.create({...e,coerce:!0})),number:(e=>is.create({...e,coerce:!0})),boolean:(e=>xd.create({...e,coerce:!0})),bigint:(e=>os.create({...e,coerce:!0})),date:(e=>fl.create({...e,coerce:!0}))},custom:qy,date:Fy,datetimeRegex:P_,defaultErrorMap:qu,discriminatedUnion:Nd,effect:H_,enum:Qu,function:Vy,getErrorMap:pm,getParsedType:_o,instanceof:bO,intersection:RO,isAborted:Py,isAsync:bd,isDirty:jy,isValid:cl,late:vO,lazy:NO,literal:qt,makeIssue:mm,map:MO,nan:xO,nativeEnum:IO,never:TO,null:EO,nullable:PO,number:nt,object:yt,get objectUtil(){return zy},oboolean:()=>lt().optional(),onumber:()=>nt().optional(),optional:zO,ostring:()=>k().optional(),pipeline:UO,preprocess:jO,promise:LO,quotelessJson:$T,record:Gy,set:kO,setErrorMap:ZT,strictObject:OO,string:k,symbol:_O,transformer:H_,tuple:DO,undefined:SO,union:Zu,unknown:CO,get util(){return Ot},void:Yy},Symbol.toStringTag,{value:"Module"})),HO={iata:Wu.string(),primaryColor:Wu.string(),secondaryColor:Wu.string(),defaultDestinations:Wu.array(Wu.string())};Wu.object(HO);const BO=yt({Code:k(),Name:k(),"Logo URL":k().url().optional()}),B_="LAS,MCO,SFB,ORL,PIE,FLL,PGD,RSW,TPA,SRQ,PHX,DEN,BNA,MIA,AZA,DFW,ATL",q_={type:Zu([qt("airtable"),qt("full")]).default("full"),Name:k(),"Menu Bar & Button Color":k(),"Button Hover Color":k(),"Preferred Airport Naming Convention":k(),"Airport Website URL":k(),"Mapping Address (from Mapping Address)":k(),"Mapping - Address Line 1":k().optional(),"Mapping - Address Line 2":k().optional(),"Mapping - City":k().optional(),"Mapping - State":k().optional(),"Mapping - Zip/Postal Code":k().optional(),"Mapping - Country":k().optional(),"Hosted Logo Url":k().optional(),"Hosted Logo Url White":k().optional(),"Kayak Car Rental Code":k(),"Default Nearby Dates for Lower Fares":lt().optional(),"Kayak Search Override":k().optional(),Airlines:oa(k()).default([]),Facebook:k().url().optional(),Instagram:k().url().optional(),LinkedIn:k().url().optional(),Twitter:k().url().optional(),TikTok:k().url().optional(),Threads:k().url().optional(),YouTube:k().url().optional(),Vimeo:k().url().optional(),Pinterest:k().url().optional(),IATA_blacklist:k().optional(),Promoted_IATAs:k().transform(e=>e==null||e.trim()===""?B_:e).default(B_),"Kayak Provider Filter":k().optional(),Search_AutoComplete_Type:Qu(["kayak","schedule_data"]).default("kayak")};Nd("type",[yt({...q_,type:qt("airtable")}),yt({...q_,Airlines:oa(BO),type:qt("full")})]),yt({Name:k(),URL:k().url().optional(),Latitude:nt().optional(),Longitude:nt().optional(),City:k().optional(),"Destination Overview":k().optional()}),yt({Name:k(),Destination:k(),url:k(),"Start Date":k(),"End Date":k(),excluded_airport_iatas:k().optional()}),yt({Name:k().default(""),"Segment Write Key":k().default("nqwOz3T8HLmWRDiyjqIY0I3aT81UrgMo")}),yt({iata:k(),name:k(),imageUrl:k(),directFlight:lt(),airlineCodes:oa(k()),scheduleStartDate:Fy().nullish(),fliesSunday:lt(),fliesMonday:lt(),fliesTuesday:lt(),fliesWednesday:lt(),fliesThursday:lt(),fliesFriday:lt(),fliesSaturday:lt(),stops:nt(),country:k(),region:k(),searchRegion:k(),municipality:k().nullish(),latitude:nt(),longitude:nt()}),yt({query:k().min(0).max(255),departureAirportIATA:k().min(3).max(3).toUpperCase(),marketingCarrierCodeIATA:k().min(2).max(2).toUpperCase()});const qO=yt({airportIATA:k().min(3).max(3).toUpperCase(),city:k().min(2).max(100),state:k().min(2).max(2),country:k().min(2).max(2)}),FO=oa(qO),YO=yt({success:qt(!0),data:FO}),GO=yt({success:qt(!1),error:k().min(1).max(255)}),VO=Nd("success",[YO,GO]);yt({departureAirport:k(),arrivalAirport:k(),departureDate:k(),arrivalDate:k().optional().nullable()}),Gy(k(),yt({date:k(),stops:nt().optional().nullable()})),yt({from_iata:k().min(3).max(3).toUpperCase(),promoted_iatas:oa(k().min(3).max(3).toUpperCase()).optional()});const $O=yt({iata:k().min(3).max(3).toUpperCase(),name:k(),price:nt(),departureDate:k(),returnDate:k()}),ZO=oa($O),QO=yt({origin:yt({iata:k().min(3).max(3).toUpperCase()}),destinations:ZO}),WO=yt({success:qt(!0),data:QO}),XO=yt({success:qt(!1),error:k().min(1).max(255)});Nd("success",[WO,XO]);const F_=6048e5,KO=864e5,JO=6e4,e5=36e5,t5=1e3,Y_=Symbol.for("constructDateFrom");function fn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Y_ in e?e[Y_](t):e instanceof Date?new e.constructor(t):new Date(t)}function nn(e,t){return fn(t||e,e)}function us(e,t,r){const i=nn(e,r?.in);return isNaN(t)?fn(r?.in||e,NaN):(t&&i.setDate(i.getDate()+t),i)}function $y(e,t,r){const i=nn(e,r?.in);if(isNaN(t))return fn(e,NaN);if(!t)return i;const l=i.getDate(),f=fn(e,i.getTime());f.setMonth(i.getMonth()+t+1,0);const h=f.getDate();return l>=h?f:(i.setFullYear(f.getFullYear(),f.getMonth(),l),i)}function G_(e,t,r){const{years:i=0,months:l=0,weeks:f=0,days:h=0,hours:m=0,minutes:y=0,seconds:b=0}=t,x=nn(e,r?.in),S=l||i?$y(x,l+i*12):x,T=h||f?us(S,h+f*7):S,N=y+m*60,M=(b+N*60)*1e3;return fn(e,+T+M)}let n5={};function Xu(){return n5}function Ti(e,t){const r=Xu(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=nn(e,t?.in),f=l.getDay(),h=(f<i?7:0)+f-i;return l.setDate(l.getDate()-h),l.setHours(0,0,0,0),l}function Ku(e,t){return Ti(e,{...t,weekStartsOn:1})}function V_(e,t){const r=nn(e,t?.in),i=r.getFullYear(),l=fn(r,0);l.setFullYear(i+1,0,4),l.setHours(0,0,0,0);const f=Ku(l),h=fn(r,0);h.setFullYear(i,0,4),h.setHours(0,0,0,0);const m=Ku(h);return r.getTime()>=f.getTime()?i+1:r.getTime()>=m.getTime()?i:i-1}function wm(e){const t=nn(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function $_(e,...t){const r=fn.bind(null,t.find(i=>typeof i=="object"));return t.map(r)}function Lr(e,t){const r=nn(e,t?.in);return r.setHours(0,0,0,0),r}function a5(e,t,r){const[i,l]=$_(r?.in,e,t),f=Lr(i),h=Lr(l),m=+f-wm(f),y=+h-wm(h);return Math.round((m-y)/KO)}function r5(e,t){const r=V_(e,t),i=fn(e,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),Ku(i)}function i5(e,t){let r,i=t?.in;return e.forEach(l=>{!i&&typeof l=="object"&&(i=fn.bind(null,l));const f=nn(l,i);(!r||r<f||isNaN(+f))&&(r=f)}),fn(i,r||NaN)}function Ju(e,t,r){const[i,l]=$_(r?.in,e,t);return+Lr(i)==+Lr(l)}function o5(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zy(e){return!(!o5(e)&&typeof e!="number"||isNaN(+nn(e)))}function Qy(e,t){const r=nn(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function s5(e,t){const r=nn(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const l5={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"}},u5=(e,t,r)=>{let i;const l=l5[e];return typeof l=="string"?i=l:t===1?i=l.one:i=l.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function Wy(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const c5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},f5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},h5={date:Wy({formats:c5,defaultWidth:"full"}),time:Wy({formats:f5,defaultWidth:"full"}),dateTime:Wy({formats:d5,defaultWidth:"full"})},p5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},m5=(e,t,r,i)=>p5[e];function Id(e){return(t,r)=>{const i=r?.context?String(r.context):"standalone";let l;if(i==="formatting"&&e.formattingValues){const h=e.defaultFormattingWidth||e.defaultWidth,m=r?.width?String(r.width):h;l=e.formattingValues[m]||e.formattingValues[h]}else{const h=e.defaultWidth,m=r?.width?String(r.width):e.defaultWidth;l=e.values[m]||e.values[h]}const f=e.argumentCallback?e.argumentCallback(t):t;return l[f]}}const g5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},y5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},v5={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"]},b5={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"]},x5={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"}},w5={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"}},_5={ordinalNumber:(e,t)=>{const r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Id({values:g5,defaultWidth:"wide"}),quarter:Id({values:y5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Id({values:v5,defaultWidth:"wide"}),day:Id({values:b5,defaultWidth:"wide"}),dayPeriod:Id({values:x5,defaultWidth:"wide",formattingValues:w5,defaultFormattingWidth:"wide"})};function Ld(e){return(t,r={})=>{const i=r.width,l=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],f=t.match(l);if(!f)return null;const h=f[0],m=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],y=Array.isArray(m)?E5(m,S=>S.test(h)):S5(m,S=>S.test(h));let b;b=e.valueCallback?e.valueCallback(y):y,b=r.valueCallback?r.valueCallback(b):b;const x=t.slice(h.length);return{value:b,rest:x}}}function S5(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function E5(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function A5(e){return(t,r={})=>{const i=t.match(e.matchPattern);if(!i)return null;const l=i[0],f=t.match(e.parsePattern);if(!f)return null;let h=e.valueCallback?e.valueCallback(f[0]):f[0];h=r.valueCallback?r.valueCallback(h):h;const m=t.slice(l.length);return{value:h,rest:m}}}const C5=/^(\d+)(th|st|nd|rd)?/i,T5=/\d+/i,O5={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},R5={any:[/^b/i,/^(a|c)/i]},D5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},M5={any:[/1/i,/2/i,/3/i,/4/i]},k5={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},N5={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]},I5={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},L5={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]},z5={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},P5={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}},j5={ordinalNumber:A5({matchPattern:C5,parsePattern:T5,valueCallback:e=>parseInt(e,10)}),era:Ld({matchPatterns:O5,defaultMatchWidth:"wide",parsePatterns:R5,defaultParseWidth:"any"}),quarter:Ld({matchPatterns:D5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ld({matchPatterns:k5,defaultMatchWidth:"wide",parsePatterns:N5,defaultParseWidth:"any"}),day:Ld({matchPatterns:I5,defaultMatchWidth:"wide",parsePatterns:L5,defaultParseWidth:"any"}),dayPeriod:Ld({matchPatterns:z5,defaultMatchWidth:"any",parsePatterns:P5,defaultParseWidth:"any"})},Z_={code:"en-US",formatDistance:u5,formatLong:h5,formatRelative:m5,localize:_5,match:j5,options:{weekStartsOn:0,firstWeekContainsDate:1}};function U5(e,t){const r=nn(e,t?.in);return a5(r,s5(r))+1}function Q_(e,t){const r=nn(e,t?.in),i=+Ku(r)-+r5(r);return Math.round(i/F_)+1}function Xy(e,t){const r=nn(e,t?.in),i=r.getFullYear(),l=Xu(),f=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,h=fn(t?.in||e,0);h.setFullYear(i+1,0,f),h.setHours(0,0,0,0);const m=Ti(h,t),y=fn(t?.in||e,0);y.setFullYear(i,0,f),y.setHours(0,0,0,0);const b=Ti(y,t);return+r>=+m?i+1:+r>=+b?i:i-1}function H5(e,t){const r=Xu(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,l=Xy(e,t),f=fn(t?.in||e,0);return f.setFullYear(l,0,i),f.setHours(0,0,0,0),Ti(f,t)}function W_(e,t){const r=nn(e,t?.in),i=+Ti(r,t)-+H5(r,t);return Math.round(i/F_)+1}function Ft(e,t){const r=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return r+i}const cs={y(e,t){const r=e.getFullYear(),i=r>0?r:1-r;return Ft(t==="yy"?i%100:i,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ft(r+1,2)},d(e,t){return Ft(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){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,t){return Ft(e.getHours()%12||12,t.length)},H(e,t){return Ft(e.getHours(),t.length)},m(e,t){return Ft(e.getMinutes(),t.length)},s(e,t){return Ft(e.getSeconds(),t.length)},S(e,t){const r=t.length,i=e.getMilliseconds(),l=Math.trunc(i*Math.pow(10,r-3));return Ft(l,t.length)}},ec={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},X_={G:function(e,t,r){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const i=e.getFullYear(),l=i>0?i:1-i;return r.ordinalNumber(l,{unit:"year"})}return cs.y(e,t)},Y:function(e,t,r,i){const l=Xy(e,i),f=l>0?l:1-l;if(t==="YY"){const h=f%100;return Ft(h,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):Ft(f,t.length)},R:function(e,t){const r=V_(e);return Ft(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ft(r,t.length)},Q:function(e,t,r){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Ft(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Ft(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){const i=e.getMonth();switch(t){case"M":case"MM":return cs.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return Ft(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){const l=W_(e,i);return t==="wo"?r.ordinalNumber(l,{unit:"week"}):Ft(l,t.length)},I:function(e,t,r){const i=Q_(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):Ft(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):cs.d(e,t)},D:function(e,t,r){const i=U5(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Ft(i,t.length)},E:function(e,t,r){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){const l=e.getDay(),f=(l-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return Ft(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(l,{width:"short",context:"formatting"});case"eeee":default:return r.day(l,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){const l=e.getDay(),f=(l-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return Ft(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(l,{width:"narrow",context:"standalone"});case"cccccc":return r.day(l,{width:"short",context:"standalone"});case"cccc":default:return r.day(l,{width:"wide",context:"standalone"})}},i:function(e,t,r){const i=e.getDay(),l=i===0?7:i;switch(t){case"i":return String(l);case"ii":return Ft(l,t.length);case"io":return r.ordinalNumber(l,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){const l=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(e,t,r){const i=e.getHours();let l;switch(i===12?l=ec.noon:i===0?l=ec.midnight:l=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(e,t,r){const i=e.getHours();let l;switch(i>=17?l=ec.evening:i>=12?l=ec.afternoon:i>=4?l=ec.morning:l=ec.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return cs.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):cs.H(e,t)},K:function(e,t,r){const i=e.getHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Ft(i,t.length)},k:function(e,t,r){let i=e.getHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):Ft(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):cs.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):cs.s(e,t)},S:function(e,t){return cs.S(e,t)},X:function(e,t,r){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return J_(i);case"XXXX":case"XX":return pl(i);case"XXXXX":case"XXX":default:return pl(i,":")}},x:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"x":return J_(i);case"xxxx":case"xx":return pl(i);case"xxxxx":case"xxx":default:return pl(i,":")}},O:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+K_(i,":");case"OOOO":default:return"GMT"+pl(i,":")}},z:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+K_(i,":");case"zzzz":default:return"GMT"+pl(i,":")}},t:function(e,t,r){const i=Math.trunc(+e/1e3);return Ft(i,t.length)},T:function(e,t,r){return Ft(+e,t.length)}};function K_(e,t=""){const r=e>0?"-":"+",i=Math.abs(e),l=Math.trunc(i/60),f=i%60;return f===0?r+String(l):r+String(l)+t+Ft(f,2)}function J_(e,t){return e%60===0?(e>0?"-":"+")+Ft(Math.abs(e)/60,2):pl(e,t)}function pl(e,t=""){const r=e>0?"-":"+",i=Math.abs(e),l=Ft(Math.trunc(i/60),2),f=Ft(i%60,2);return r+l+t+f}const eS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},tS=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ky={p:tS,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],i=r[1],l=r[2];if(!l)return eS(e,t);let f;switch(i){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",eS(i,t)).replace("{{time}}",tS(l,t))}},B5=/^D+$/,q5=/^Y+$/,F5=["D","DD","YY","YYYY"];function nS(e){return B5.test(e)}function aS(e){return q5.test(e)}function Jy(e,t,r){const i=Y5(e,t,r);if(console.warn(i),F5.includes(e))throw new RangeError(i)}function Y5(e,t,r){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const G5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,V5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$5=/^'([^]*?)'?$/,Z5=/''/g,Q5=/[a-zA-Z]/;function _m(e,t,r){const i=Xu(),l=i.locale??Z_,f=i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,h=i.weekStartsOn??i.locale?.options?.weekStartsOn??0,m=nn(e,r?.in);if(!Zy(m))throw new RangeError("Invalid time value");let y=t.match(V5).map(x=>{const S=x[0];if(S==="p"||S==="P"){const T=Ky[S];return T(x,l.formatLong)}return x}).join("").match(G5).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const S=x[0];if(S==="'")return{isToken:!1,value:W5(x)};if(X_[S])return{isToken:!0,value:x};if(S.match(Q5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:x}});l.localize.preprocessor&&(y=l.localize.preprocessor(m,y));const b={firstWeekContainsDate:f,weekStartsOn:h,locale:l};return y.map(x=>{if(!x.isToken)return x.value;const S=x.value;(aS(S)||nS(S))&&Jy(S,t,String(e));const T=X_[S[0]];return T(m,S,l.localize,b)}).join("")}function W5(e){const t=e.match($5);return t?t[1].replace(Z5,"'"):e}function X5(){return Object.assign({},Xu())}function K5(e,t){const r=nn(e,t?.in).getDay();return r===0?7:r}function ev(e,t){return+nn(e)>+nn(t)}function Oi(e,t){return+nn(e)<+nn(t)}function J5(e,t){const r=eR(t)?new t(0):fn(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function eR(e){return typeof e=="function"&&e.prototype?.constructor===e}const tR=10;class rS{subPriority=0;validate(t,r){return!0}}class nR extends rS{constructor(t,r,i,l,f){super(),this.value=t,this.validateValue=r,this.setValue=i,this.priority=l,f&&(this.subPriority=f)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,i){return this.setValue(t,r,this.value,i)}}class aR extends rS{priority=tR;subPriority=-1;constructor(t,r){super(),this.context=t||(i=>fn(r,i))}set(t,r){return r.timestampIsSet?t:fn(t,J5(t,this.context))}}class Nt{run(t,r,i,l){const f=this.parse(t,r,i,l);return f?{setter:new nR(f.value,this.validate,this.set,this.priority,this.subPriority),rest:f.rest}:null}validate(t,r,i){return!0}}class rR extends Nt{priority=140;parse(t,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,r,i){return r.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const Cn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ri={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tn(e,t){return e&&{value:t(e.value),rest:e.rest}}function yn(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Di(e,t){const r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};const i=r[1]==="+"?1:-1,l=r[2]?parseInt(r[2],10):0,f=r[3]?parseInt(r[3],10):0,h=r[5]?parseInt(r[5],10):0;return{value:i*(l*e5+f*JO+h*t5),rest:t.slice(r[0].length)}}function iS(e){return yn(Cn.anyDigitsSigned,e)}function wn(e,t){switch(e){case 1:return yn(Cn.singleDigit,t);case 2:return yn(Cn.twoDigits,t);case 3:return yn(Cn.threeDigits,t);case 4:return yn(Cn.fourDigits,t);default:return yn(new RegExp("^\\d{1,"+e+"}"),t)}}function Sm(e,t){switch(e){case 1:return yn(Cn.singleDigitSigned,t);case 2:return yn(Cn.twoDigitsSigned,t);case 3:return yn(Cn.threeDigitsSigned,t);case 4:return yn(Cn.fourDigitsSigned,t);default:return yn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function tv(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function oS(e,t){const r=t>0,i=r?t:1-t;let l;if(i<=50)l=e||100;else{const f=i+50,h=Math.trunc(f/100)*100,m=e>=f%100;l=e+h-(m?100:0)}return r?l:1-l}function sS(e){return e%400===0||e%4===0&&e%100!==0}class iR extends Nt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,i){const l=f=>({year:f,isTwoDigitYear:r==="yy"});switch(r){case"y":return Tn(wn(4,t),l);case"yo":return Tn(i.ordinalNumber(t,{unit:"year"}),l);default:return Tn(wn(r.length,t),l)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,i){const l=t.getFullYear();if(i.isTwoDigitYear){const h=oS(i.year,l);return t.setFullYear(h,0,1),t.setHours(0,0,0,0),t}const f=!("era"in r)||r.era===1?i.year:1-i.year;return t.setFullYear(f,0,1),t.setHours(0,0,0,0),t}}class oR extends Nt{priority=130;parse(t,r,i){const l=f=>({year:f,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Tn(wn(4,t),l);case"Yo":return Tn(i.ordinalNumber(t,{unit:"year"}),l);default:return Tn(wn(r.length,t),l)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,i,l){const f=Xy(t,l);if(i.isTwoDigitYear){const m=oS(i.year,f);return t.setFullYear(m,0,l.firstWeekContainsDate),t.setHours(0,0,0,0),Ti(t,l)}const h=!("era"in r)||r.era===1?i.year:1-i.year;return t.setFullYear(h,0,l.firstWeekContainsDate),t.setHours(0,0,0,0),Ti(t,l)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class sR extends Nt{priority=130;parse(t,r){return Sm(r==="R"?4:r.length,t)}set(t,r,i){const l=fn(t,0);return l.setFullYear(i,0,4),l.setHours(0,0,0,0),Ku(l)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class lR extends Nt{priority=130;parse(t,r){return Sm(r==="u"?4:r.length,t)}set(t,r,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class uR extends Nt{priority=120;parse(t,r,i){switch(r){case"Q":case"QQ":return wn(r.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class cR extends Nt{priority=120;parse(t,r,i){switch(r){case"q":case"qq":return wn(r.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class fR extends Nt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,i){const l=f=>f-1;switch(r){case"M":return Tn(yn(Cn.month,t),l);case"MM":return Tn(wn(2,t),l);case"Mo":return Tn(i.ordinalNumber(t,{unit:"month"}),l);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}class dR extends Nt{priority=110;parse(t,r,i){const l=f=>f-1;switch(r){case"L":return Tn(yn(Cn.month,t),l);case"LL":return Tn(wn(2,t),l);case"Lo":return Tn(i.ordinalNumber(t,{unit:"month"}),l);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function hR(e,t,r){const i=nn(e,r?.in),l=W_(i,r)-t;return i.setDate(i.getDate()-l*7),nn(i,r?.in)}class pR extends Nt{priority=100;parse(t,r,i){switch(r){case"w":return yn(Cn.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return wn(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,i,l){return Ti(hR(t,i,l),l)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function mR(e,t,r){const i=nn(e,r?.in),l=Q_(i,r)-t;return i.setDate(i.getDate()-l*7),i}class gR extends Nt{priority=100;parse(t,r,i){switch(r){case"I":return yn(Cn.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return wn(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,i){return Ku(mR(t,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const yR=[31,28,31,30,31,30,31,31,30,31,30,31],vR=[31,29,31,30,31,30,31,31,30,31,30,31];class bR extends Nt{priority=90;subPriority=1;parse(t,r,i){switch(r){case"d":return yn(Cn.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return wn(r.length,t)}}validate(t,r){const i=t.getFullYear(),l=sS(i),f=t.getMonth();return l?r>=1&&r<=vR[f]:r>=1&&r<=yR[f]}set(t,r,i){return t.setDate(i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class xR extends Nt{priority=90;subpriority=1;parse(t,r,i){switch(r){case"D":case"DD":return yn(Cn.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return wn(r.length,t)}}validate(t,r){const i=t.getFullYear();return sS(i)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function nv(e,t,r){const i=Xu(),l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,f=nn(e,r?.in),h=f.getDay(),y=(t%7+7)%7,b=7-l,x=t<0||t>6?t-(h+b)%7:(y+b)%7-(h+b)%7;return us(f,x,r)}class wR extends Nt{priority=90;parse(t,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,i,l){return t=nv(t,i,l),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class _R extends Nt{priority=90;parse(t,r,i,l){const f=h=>{const m=Math.floor((h-1)/7)*7;return(h+l.weekStartsOn+6)%7+m};switch(r){case"e":case"ee":return Tn(wn(r.length,t),f);case"eo":return Tn(i.ordinalNumber(t,{unit:"day"}),f);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,i,l){return t=nv(t,i,l),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class SR extends Nt{priority=90;parse(t,r,i,l){const f=h=>{const m=Math.floor((h-1)/7)*7;return(h+l.weekStartsOn+6)%7+m};switch(r){case"c":case"cc":return Tn(wn(r.length,t),f);case"co":return Tn(i.ordinalNumber(t,{unit:"day"}),f);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,i,l){return t=nv(t,i,l),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function ER(e,t,r){const i=nn(e,r?.in),l=K5(i,r),f=t-l;return us(i,f,r)}class AR extends Nt{priority=90;parse(t,r,i){const l=f=>f===0?7:f;switch(r){case"i":case"ii":return wn(r.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return Tn(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),l);case"iiiii":return Tn(i.day(t,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Tn(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Tn(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),l)}}validate(t,r){return r>=1&&r<=7}set(t,r,i){return t=ER(t,i),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class CR extends Nt{priority=80;parse(t,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,i){return t.setHours(tv(i),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class TR extends Nt{priority=80;parse(t,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,i){return t.setHours(tv(i),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class OR extends Nt{priority=80;parse(t,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,i){return t.setHours(tv(i),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class RR extends Nt{priority=70;parse(t,r,i){switch(r){case"h":return yn(Cn.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return wn(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,i){const l=t.getHours()>=12;return l&&i<12?t.setHours(i+12,0,0,0):!l&&i===12?t.setHours(0,0,0,0):t.setHours(i,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class DR extends Nt{priority=70;parse(t,r,i){switch(r){case"H":return yn(Cn.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return wn(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,i){return t.setHours(i,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class MR extends Nt{priority=70;parse(t,r,i){switch(r){case"K":return yn(Cn.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return wn(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class kR extends Nt{priority=70;parse(t,r,i){switch(r){case"k":return yn(Cn.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return wn(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,i){const l=i<=24?i%24:i;return t.setHours(l,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class NR extends Nt{priority=60;parse(t,r,i){switch(r){case"m":return yn(Cn.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return wn(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,i){return t.setMinutes(i,0,0),t}incompatibleTokens=["t","T"]}class IR extends Nt{priority=50;parse(t,r,i){switch(r){case"s":return yn(Cn.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return wn(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,i){return t.setSeconds(i,0),t}incompatibleTokens=["t","T"]}class LR extends Nt{priority=30;parse(t,r){const i=l=>Math.trunc(l*Math.pow(10,-r.length+3));return Tn(wn(r.length,t),i)}set(t,r,i){return t.setMilliseconds(i),t}incompatibleTokens=["t","T"]}class zR extends Nt{priority=10;parse(t,r){switch(r){case"X":return Di(Ri.basicOptionalMinutes,t);case"XX":return Di(Ri.basic,t);case"XXXX":return Di(Ri.basicOptionalSeconds,t);case"XXXXX":return Di(Ri.extendedOptionalSeconds,t);case"XXX":default:return Di(Ri.extended,t)}}set(t,r,i){return r.timestampIsSet?t:fn(t,t.getTime()-wm(t)-i)}incompatibleTokens=["t","T","x"]}class PR extends Nt{priority=10;parse(t,r){switch(r){case"x":return Di(Ri.basicOptionalMinutes,t);case"xx":return Di(Ri.basic,t);case"xxxx":return Di(Ri.basicOptionalSeconds,t);case"xxxxx":return Di(Ri.extendedOptionalSeconds,t);case"xxx":default:return Di(Ri.extended,t)}}set(t,r,i){return r.timestampIsSet?t:fn(t,t.getTime()-wm(t)-i)}incompatibleTokens=["t","T","X"]}class jR extends Nt{priority=40;parse(t){return iS(t)}set(t,r,i){return[fn(t,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class UR extends Nt{priority=20;parse(t){return iS(t)}set(t,r,i){return[fn(t,i),{timestampIsSet:!0}]}incompatibleTokens="*"}const HR={G:new rR,y:new iR,Y:new oR,R:new sR,u:new lR,Q:new uR,q:new cR,M:new fR,L:new dR,w:new pR,I:new gR,d:new bR,D:new xR,E:new wR,e:new _R,c:new SR,i:new AR,a:new CR,b:new TR,B:new OR,h:new RR,H:new DR,K:new MR,k:new kR,m:new NR,s:new IR,S:new LR,X:new zR,x:new PR,t:new jR,T:new UR},BR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,FR=/^'([^]*?)'?$/,YR=/''/g,GR=/\S/,VR=/[a-zA-Z]/;function $R(e,t,r,i){const l=()=>fn(r,NaN),f=X5(),h=f.locale??Z_,m=f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,y=f.weekStartsOn??f.locale?.options?.weekStartsOn??0,b={firstWeekContainsDate:m,weekStartsOn:y,locale:h},x=[new aR(i?.in,r)],S=t.match(qR).map(D=>{const B=D[0];if(B in Ky){const F=Ky[B];return F(D,h.formatLong)}return D}).join("").match(BR),T=[];for(let D of S){aS(D)&&Jy(D,t,e),nS(D)&&Jy(D,t,e);const B=D[0],F=HR[B];if(F){const{incompatibleTokens:re}=F;if(Array.isArray(re)){const ne=T.find(se=>re.includes(se.token)||se.token===B);if(ne)throw new RangeError(`The format string mustn't contain \`${ne.fullToken}\` and \`${D}\` at the same time`)}else if(F.incompatibleTokens==="*"&&T.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);T.push({token:B,fullToken:D});const Y=F.run(e,D,h.match,b);if(!Y)return l();x.push(Y.setter),e=Y.rest}else{if(B.match(VR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");if(D==="''"?D="'":B==="'"&&(D=ZR(D)),e.indexOf(D)===0)e=e.slice(D.length);else return l()}}if(e.length>0&&GR.test(e))return l();const N=x.map(D=>D.priority).sort((D,B)=>B-D).filter((D,B,F)=>F.indexOf(D)===B).map(D=>x.filter(B=>B.priority===D).sort((B,F)=>F.subPriority-B.subPriority)).map(D=>D[0]);let j=nn(r,i?.in);if(isNaN(+j))return l();const M={};for(const D of N){if(!D.validate(j,b))return l();const B=D.set(j,M,b);Array.isArray(B)?(j=B[0],Object.assign(M,B[1])):j=B}return j}function ZR(e){return e.match(FR)[1].replace(YR,"'")}function QR(e,t,r){return us(e,-t,r)}function WR(e,t,r){return $y(e,-t,r)}function lS(e,t,r){const{years:i=0,months:l=0,weeks:f=0,days:h=0,hours:m=0,minutes:y=0,seconds:b=0}=t,x=WR(e,l+i*12,r),S=QR(x,h+f*7,r),T=y+m*60,j=(b+T*60)*1e3;return fn(e,+S-j)}yt({departureAirportIATA:k().min(3).max(3).toUpperCase()});const XR=yt({airportIATA:k().min(3).max(3).toUpperCase(),city:k().min(2).max(100),state:k().min(2).max(2),country:k().min(2).max(2),stops:nt().min(0).max(1).optional(),airlineCodes:oa(k()).optional(),routeStart:Zu([k(),Fy()]).optional().transform(e=>{if(e)return e instanceof Date?e:new Date(e)})}),KR=oa(XR),JR=yt({success:qt(!0),data:KR}),e6=yt({success:qt(!1),error:k().min(1)}),t6=Nd("success",[JR,e6]),uS=yt({fs:k().optional(),iata:k().optional(),icao:k().optional(),name:k().optional(),city:k().optional(),cityCode:k().optional(),stateCode:k().optional(),countryCode:k().optional(),countryName:k().optional(),regionName:k().optional(),timeZoneRegionName:k().optional(),localTime:k().optional(),utcOffsetHours:nt().optional(),latitude:nt().optional(),longitude:nt().optional(),elevationFeet:nt().optional(),classification:nt().optional(),active:lt().optional(),distance:nt().optional()}),Em=yt({fs:k().optional(),iata:k().optional(),icao:k().optional(),name:k().optional(),phoneNumber:k().optional(),active:lt().optional(),category:k().optional()}),n6=yt({iata:k().optional(),name:k().optional(),turboProp:lt().optional(),jet:lt().optional(),widebody:lt().optional(),regional:lt().optional()}),a6=yt({carrierFsCode:k().optional(),carrier:Em.optional(),flightNumber:k().optional(),serviceType:k().optional(),serviceClasses:oa(k()).optional(),trafficRestrictions:oa(k()).optional(),referenceCode:nt().optional()}),r6=yt({carrierFsCode:k().optional(),carrier:Em.optional(),flightNumber:k().optional(),serviceType:k().optional(),serviceClasses:oa(k()).optional(),trafficRestrictions:oa(k()).optional(),referenceCode:nt().optional()}),i6=yt({carrierFsCode:k().optional(),carrier:Em.optional(),flightNumber:k().optional(),brand:k().optional(),departureAirportFsCode:k().optional(),departureAirport:uS.optional(),arrivalAirportFsCode:k().optional(),arrivalAirport:uS.optional(),departureTime:k().optional(),arrivalTime:k().optional(),stops:nt().optional(),departureTerminal:k().optional(),arrivalTerminal:k().optional(),flightEquipmentIataCode:k().optional(),flightEquipment:n6.optional(),isCodeshare:lt().optional(),isWetlease:lt().optional(),serviceType:k().optional(),serviceClasses:oa(k()).optional(),trafficRestrictions:oa(k()).optional(),codeshares:oa(a6).optional(),operator:r6.optional(),wetleaseOperator:Em.optional(),wetleaseOperatorFsCode:k().optional(),referenceCode:k().optional(),elapsedTime:nt().optional(),effectiveDate:k().optional(),discontinueDate:k().optional(),isOperatingMonday:lt().optional(),isOperatingTuesday:lt().optional(),isOperatingWednesday:lt().optional(),isOperatingThursday:lt().optional(),isOperatingFriday:lt().optional(),isOperatingSaturday:lt().optional(),isOperatingSunday:lt().optional(),departureCountryCodeIata:k().optional(),departureRegionCodeIata:k().optional(),departureStateProvinceCodeIata:k().optional(),departureCityCodeIata:k().optional(),passengerDepartureTime:k().optional(),aircraftDepartureTime:k().optional(),departureUtcVariance:k().optional(),arrivalStationCodeIata:k().optional(),arrivalCountryCodeIata:k().optional(),arrivalRegionCodeIata:k().optional(),arrivalStateProvinceCodeIata:k().optional(),arrivalCityCodeIata:k().optional(),passengerArrivalTime:k().optional(),aircraftArrivalTime:k().optional(),arrivalUtcVariance:k().optional(),equipmentSubtypeCodeIata:k().optional(),equipmentGroupCodeIata:k().optional(),bookingClasses:k().optional(),arrivalDayIndicator:nt().optional(),numberOfIntermediateStops:nt().optional(),intermediateStopStationCodesIata:k().optional(),intermediateStopRestrictions:k().optional(),isEquipmentChange:lt().optional(),equipmentCodesAcrossSector:k().optional(),mealCodes:k().optional(),flightDurationLessLayover:nt().optional(),flightDistance:nt().optional(),flightDistanceThroughIndividualLegs:nt().optional(),layoverTime:nt().optional(),itineraryVariationIdentifier:nt().optional(),firstLegNumber:nt().optional(),inflightServiceCodes:k().optional(),codeshareInfo:k().optional(),aircraftOwnerInformation:k().optional(),operationalSuffix:k().optional(),firstClassSeats:nt().optional(),businessClassSeats:nt().optional(),premiumEconomySeats:nt().optional(),economyClassSeats:nt().optional(),totalSeats:nt().optional(),aircraftTonnage:nt().optional(),aircraftConfigurationVersion:k().optional(),equipmentChangeStops:k().optional(),mctIndicator:k().optional(),intermediateStopArrivalTime:k().optional(),intermediateStopDepartureTime:k().optional(),intermediateStopNextDayIndicator:k().optional(),logicalToPhysicalLegKey:k().optional(),releaseSellDate:k().optional(),secureFlightIndicator:k().optional(),aircraftOwner:k().optional(),cockpitCrewEmployer:k().optional(),cabinCrewEmployer:k().optional(),onwardFlight:k().optional(),automatedCheckIn:k().optional(),dateVariation:k().optional(),dei011:k().optional(),dei201:lt().optional(),dei299:k().optional(),dei501:k().optional(),dei502:k().optional(),dei503:k().optional(),dei505:k().optional(),physicalSectorizedIdKey:k().optional(),sectorizedId:nt().optional(),publishDate:k().optional(),carrierName:k().optional(),carrierShortName:k().optional(),carrierCategoryTypeIata:k().optional(),reservationPhoneNumber:k().optional(),carrierUrl:k().optional(),equipmentCodeIcao:k().optional(),equipmentDescription:k().optional(),equipmentAircraftName:k().optional(),equipmentMaxAirspeed:nt().optional(),equipmentAircraftType:k().optional(),equipmentIsWidebodyFuselage:lt().optional(),departureStationCityCodeIata:k().optional(),departureStationCodeIcao:k().optional(),departureStationName:k().optional(),departureStationCityName:k().optional(),departureStationCityCodeIcao:k().optional(),departureStationRegionCodeIata:k().optional(),departureStationCountryCodeIata:k().optional(),departureStationLatitude:k().optional(),departureStationLongitude:k().optional(),departureStationTimeZoneCodeIata:k().optional(),departureStationTypeIata:k().optional(),arrivalStationCityCodeIata:k().optional(),arrivalStationCodeIcao:k().optional(),arrivalStationName:k().optional(),arrivalStationCityName:k().optional(),arrivalStationCityCodeIcao:k().optional(),arrivalStationRegionCodeIata:k().optional(),arrivalStationCountryCodeIata:k().optional(),arrivalStationLatitude:k().optional(),arrivalStationLongitude:k().optional(),arrivalStationTimeZoneCodeIata:k().optional(),arrivalStationTypeIata:k().optional(),departureMetroCodeIata:k().optional(),departureMetroName:k().optional(),departureMetroCountryCodeIata:k().optional(),departureMetroStateProvinceCodeIata:k().optional(),arrivalMetroCodeIata:k().optional(),arrivalMetroName:k().optional(),arrivalMetroCountryCodeIata:k().optional(),arrivalMetroStateProvinceCodeIata:k().optional(),departureCountryNameIata:k().optional(),arrivalCountryNameIata:k().optional(),departureWorldAreaCodeIata:k().optional(),arrivalWorldAreaCodeIata:k().optional(),daysOfOperation:k().optional(),totalFrequency:nt().optional(),weeklyFrequency:nt().optional(),totalSeatMiles:nt().optional(),totalSeatKm:nt().optional()});yt({elapsedTime:nt().optional(),score:nt().optional(),scheduledFlight:oa(i6).optional()}),yt({hour:nt().int().optional(),minute:nt().int().optional(),second:nt().int().optional(),nano:nt().int().optional()});const av=qt("UNDEF"),cS=Zu([qt("FMA"),qt("EMB")]),o6=Zu([qt("HOME"),qt("CARS"),qt("FLIGHTS"),qt("PACK"),qt("DEST"),qt("HOTELS"),qt("EXPLORE"),qt("CAMP")]),s6=Zu([qt("SEARCH"),qt("DEAL"),qt("WLPACK"),qt("WLHOTEL"),qt("WLCARS"),qt("WLFLIGHTS"),qt("WLEXPLORE")]),fS=k().min(1).max(10).regex(/^[A-Z0-9]+$/).optional().default(av.value),l6=yt({airport:k(),channel:cS,page:o6.optional(),userDefinedPage:fS,action:s6,originIATA:k().optional().default(av.value),destinationIATA:k().optional().default(av.value)});function u6(e){const{action:t,airport:r,channel:i,destinationIATA:l,originIATA:f,page:h,userDefinedPage:m}=l6.parse(e);return`${r}_${i}_${h||m}_${t}_${f}_${l}`}var Am=(e=>(e[e.Flights=13]="Flights",e[e.AirportPackages=17]="AirportPackages",e[e.PackagesHotels=50]="PackagesHotels",e[e.HotelMultiType=58]="HotelMultiType",e[e.Cars=81]="Cars",e[e.Hotels=58]="Hotels",e[e.AirMultiTypeCG=59]="AirMultiTypeCG",e[e.MultiCar=85]="MultiCar",e))(Am||{}),zd={exports:{}};/**
|
|
618
|
+
*/var Q_;function cT(){return Q_||(Q_=1,(function(t){(function(){var n={}.hasOwnProperty;function r(){for(var f="",h=0;h<arguments.length;h++){var g=arguments[h];g&&(f=l(f,i(g)))}return f}function i(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return r.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var h="";for(var g in f)n.call(f,g)&&f[g]&&(h=l(h,g));return h}function l(f,h){return h?f?f+" "+h:f+h:f}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(tv)),tv.exports}var fT=cT();const Gt=sc(fT);var Et;(function(t){t.assertEqual=l=>{};function n(l){}t.assertIs=n;function r(l){throw new Error}t.assertNever=r,t.arrayToEnum=l=>{const f={};for(const h of l)f[h]=h;return f},t.getValidEnumValues=l=>{const f=t.objectKeys(l).filter(g=>typeof l[l[g]]!="number"),h={};for(const g of f)h[g]=l[g];return t.objectValues(h)},t.objectValues=l=>t.objectKeys(l).map(function(f){return l[f]}),t.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const f=[];for(const h in l)Object.prototype.hasOwnProperty.call(l,h)&&f.push(h);return f},t.find=(l,f)=>{for(const h of l)if(f(h))return h},t.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function i(l,f=" | "){return l.map(h=>typeof h=="string"?`'${h}'`:h).join(f)}t.joinValues=i,t.jsonStringifyReplacer=(l,f)=>typeof f=="bigint"?f.toString():f})(Et||(Et={}));var nv;(function(t){t.mergeShapes=(n,r)=>({...n,...r})})(nv||(nv={}));const Ie=Et.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Co=t=>{switch(typeof t){case"undefined":return Ie.undefined;case"string":return Ie.string;case"number":return Number.isNaN(t)?Ie.nan:Ie.number;case"boolean":return Ie.boolean;case"function":return Ie.function;case"bigint":return Ie.bigint;case"symbol":return Ie.symbol;case"object":return Array.isArray(t)?Ie.array:t===null?Ie.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Ie.promise:typeof Map<"u"&&t instanceof Map?Ie.map:typeof Set<"u"&&t instanceof Set?Ie.set:typeof Date<"u"&&t instanceof Date?Ie.date:Ie.object;default:return Ie.unknown}},Se=Et.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),dT=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class lr extends Error{get errors(){return this.issues}constructor(n){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=n}format(n){const r=n||function(f){return f.message},i={_errors:[]},l=f=>{for(const h of f.issues)if(h.code==="invalid_union")h.unionErrors.map(l);else if(h.code==="invalid_return_type")l(h.returnTypeError);else if(h.code==="invalid_arguments")l(h.argumentsError);else if(h.path.length===0)i._errors.push(r(h));else{let g=i,y=0;for(;y<h.path.length;){const b=h.path[y];y===h.path.length-1?(g[b]=g[b]||{_errors:[]},g[b]._errors.push(r(h))):g[b]=g[b]||{_errors:[]},g=g[b],y++}}};return l(this),i}static assert(n){if(!(n instanceof lr))throw new Error(`Not a ZodError: ${n}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Et.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=r=>r.message){const r={},i=[];for(const l of this.issues)if(l.path.length>0){const f=l.path[0];r[f]=r[f]||[],r[f].push(n(l))}else i.push(n(l));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}}lr.create=t=>new lr(t);const dc=(t,n)=>{let r;switch(t.code){case Se.invalid_type:t.received===Ie.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case Se.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Et.jsonStringifyReplacer)}`;break;case Se.unrecognized_keys:r=`Unrecognized key(s) in object: ${Et.joinValues(t.keys,", ")}`;break;case Se.invalid_union:r="Invalid input";break;case Se.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Et.joinValues(t.options)}`;break;case Se.invalid_enum_value:r=`Invalid enum value. Expected ${Et.joinValues(t.options)}, received '${t.received}'`;break;case Se.invalid_arguments:r="Invalid function arguments";break;case Se.invalid_return_type:r="Invalid function return type";break;case Se.invalid_date:r="Invalid date";break;case Se.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Et.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case Se.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case Se.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case Se.custom:r="Invalid input";break;case Se.invalid_intersection_types:r="Intersection results could not be merged";break;case Se.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case Se.not_finite:r="Number must be finite";break;default:r=n.defaultError,Et.assertNever(t)}return{message:r}};let W_=dc;function hT(t){W_=t}function Um(){return W_}const Hm=t=>{const{data:n,path:r,errorMaps:i,issueData:l}=t,f=[...r,...l.path||[]],h={...l,path:f};if(l.message!==void 0)return{...l,path:f,message:l.message};let g="";const y=i.filter(b=>!!b).slice().reverse();for(const b of y)g=b(h,{data:n,defaultError:g}).message;return{...l,path:f,message:g}},pT=[];function De(t,n){const r=Um(),i=Hm({issueData:n,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===dc?void 0:dc].filter(l=>!!l)});t.common.issues.push(i)}class da{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,r){const i=[];for(const l of r){if(l.status==="aborted")return Xe;l.status==="dirty"&&n.dirty(),i.push(l.value)}return{status:n.value,value:i}}static async mergeObjectAsync(n,r){const i=[];for(const l of r){const f=await l.key,h=await l.value;i.push({key:f,value:h})}return da.mergeObjectSync(n,i)}static mergeObjectSync(n,r){const i={};for(const l of r){const{key:f,value:h}=l;if(f.status==="aborted"||h.status==="aborted")return Xe;f.status==="dirty"&&n.dirty(),h.status==="dirty"&&n.dirty(),f.value!=="__proto__"&&(typeof h.value<"u"||l.alwaysSet)&&(i[f.value]=h.value)}return{status:n.value,value:i}}}const Xe=Object.freeze({status:"aborted"}),hc=t=>({status:"dirty",value:t}),Oa=t=>({status:"valid",value:t}),av=t=>t.status==="aborted",rv=t=>t.status==="dirty",Ll=t=>t.status==="valid",Ud=t=>typeof Promise<"u"&&t instanceof Promise;var qe;(function(t){t.errToObj=n=>typeof n=="string"?{message:n}:n||{},t.toString=n=>typeof n=="string"?n:n?.message})(qe||(qe={}));class Mi{constructor(n,r,i,l){this._cachedPath=[],this.parent=n,this.data=r,this._path=i,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const X_=(t,n)=>{if(Ll(n))return{success:!0,data:n.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new lr(t.common.issues);return this._error=r,this._error}}};function ct(t){if(!t)return{};const{errorMap:n,invalid_type_error:r,required_error:i,description:l}=t;if(n&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:l}:{errorMap:(h,g)=>{const{message:y}=t;return h.code==="invalid_enum_value"?{message:y??g.defaultError}:typeof g.data>"u"?{message:y??i??g.defaultError}:h.code!=="invalid_type"?{message:g.defaultError}:{message:y??r??g.defaultError}},description:l}}class dt{get description(){return this._def.description}_getType(n){return Co(n.data)}_getOrReturnCtx(n,r){return r||{common:n.parent.common,data:n.data,parsedType:Co(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new da,ctx:{common:n.parent.common,data:n.data,parsedType:Co(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const r=this._parse(n);if(Ud(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(n){const r=this._parse(n);return Promise.resolve(r)}parse(n,r){const i=this.safeParse(n,r);if(i.success)return i.data;throw i.error}safeParse(n,r){const i={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Co(n)},l=this._parseSync({data:n,path:i.path,parent:i});return X_(i,l)}"~validate"(n){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Co(n)};if(!this["~standard"].async)try{const i=this._parseSync({data:n,path:[],parent:r});return Ll(i)?{value:i.value}:{issues:r.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:n,path:[],parent:r}).then(i=>Ll(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(n,r){const i=await this.safeParseAsync(n,r);if(i.success)return i.data;throw i.error}async safeParseAsync(n,r){const i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Co(n)},l=this._parse({data:n,path:i.path,parent:i}),f=await(Ud(l)?l:Promise.resolve(l));return X_(i,f)}refine(n,r){const i=l=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(l):r;return this._refinement((l,f)=>{const h=n(l),g=()=>f.addIssue({code:Se.custom,...i(l)});return typeof Promise<"u"&&h instanceof Promise?h.then(y=>y?!0:(g(),!1)):h?!0:(g(),!1)})}refinement(n,r){return this._refinement((i,l)=>n(i)?!0:(l.addIssue(typeof r=="function"?r(i,l):r),!1))}_refinement(n){return new Xr({schema:this,typeName:tt.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return ki.create(this,this._def)}nullable(){return Es.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wr.create(this)}promise(){return yc.create(this,this._def)}or(n){return Fd.create([this,n],this._def)}and(n){return Yd.create(this,n,this._def)}transform(n){return new Xr({...ct(this._def),schema:this,typeName:tt.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const r=typeof n=="function"?n:()=>n;return new Qd({...ct(this._def),innerType:this,defaultValue:r,typeName:tt.ZodDefault})}brand(){return new sv({typeName:tt.ZodBranded,type:this,...ct(this._def)})}catch(n){const r=typeof n=="function"?n:()=>n;return new Wd({...ct(this._def),innerType:this,catchValue:r,typeName:tt.ZodCatch})}describe(n){const r=this.constructor;return new r({...this._def,description:n})}pipe(n){return Xd.create(this,n)}readonly(){return Kd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const mT=/^c[^\s-]{8,}$/i,gT=/^[0-9a-z]+$/,yT=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vT=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bT=/^[a-z0-9_-]{21}$/i,xT=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wT=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,_T=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ST="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let iv;const CT=/^(?:(?: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])$/,ET=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,AT=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,TT=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,OT=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,RT=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,K_="((\\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])))",MT=new RegExp(`^${K_}$`);function J_(t){let n="[0-5]\\d";t.precision?n=`${n}\\.\\d{${t.precision}}`:t.precision==null&&(n=`${n}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${n})${r}`}function DT(t){return new RegExp(`^${J_(t)}$`)}function eS(t){let n=`${K_}T${J_(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${r.join("|")})`,new RegExp(`^${n}$`)}function kT(t,n){return!!((n==="v4"||!n)&&CT.test(t)||(n==="v6"||!n)&&AT.test(t))}function NT(t,n){if(!xT.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),l=JSON.parse(atob(i));return!(typeof l!="object"||l===null||"typ"in l&&l?.typ!=="JWT"||!l.alg||n&&l.alg!==n)}catch{return!1}}function IT(t,n){return!!((n==="v4"||!n)&&ET.test(t)||(n==="v6"||!n)&&TT.test(t))}class Qr extends dt{_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==Ie.string){const f=this._getOrReturnCtx(n);return De(f,{code:Se.invalid_type,expected:Ie.string,received:f.parsedType}),Xe}const i=new da;let l;for(const f of this._def.checks)if(f.kind==="min")n.data.length<f.value&&(l=this._getOrReturnCtx(n,l),De(l,{code:Se.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),i.dirty());else if(f.kind==="max")n.data.length>f.value&&(l=this._getOrReturnCtx(n,l),De(l,{code:Se.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),i.dirty());else if(f.kind==="length"){const h=n.data.length>f.value,g=n.data.length<f.value;(h||g)&&(l=this._getOrReturnCtx(n,l),h?De(l,{code:Se.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):g&&De(l,{code:Se.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),i.dirty())}else if(f.kind==="email")_T.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"email",code:Se.invalid_string,message:f.message}),i.dirty());else if(f.kind==="emoji")iv||(iv=new RegExp(ST,"u")),iv.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"emoji",code:Se.invalid_string,message:f.message}),i.dirty());else if(f.kind==="uuid")vT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"uuid",code:Se.invalid_string,message:f.message}),i.dirty());else if(f.kind==="nanoid")bT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"nanoid",code:Se.invalid_string,message:f.message}),i.dirty());else if(f.kind==="cuid")mT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"cuid",code:Se.invalid_string,message:f.message}),i.dirty());else if(f.kind==="cuid2")gT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"cuid2",code:Se.invalid_string,message:f.message}),i.dirty());else if(f.kind==="ulid")yT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"ulid",code:Se.invalid_string,message:f.message}),i.dirty());else if(f.kind==="url")try{new URL(n.data)}catch{l=this._getOrReturnCtx(n,l),De(l,{validation:"url",code:Se.invalid_string,message:f.message}),i.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"regex",code:Se.invalid_string,message:f.message}),i.dirty())):f.kind==="trim"?n.data=n.data.trim():f.kind==="includes"?n.data.includes(f.value,f.position)||(l=this._getOrReturnCtx(n,l),De(l,{code:Se.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),i.dirty()):f.kind==="toLowerCase"?n.data=n.data.toLowerCase():f.kind==="toUpperCase"?n.data=n.data.toUpperCase():f.kind==="startsWith"?n.data.startsWith(f.value)||(l=this._getOrReturnCtx(n,l),De(l,{code:Se.invalid_string,validation:{startsWith:f.value},message:f.message}),i.dirty()):f.kind==="endsWith"?n.data.endsWith(f.value)||(l=this._getOrReturnCtx(n,l),De(l,{code:Se.invalid_string,validation:{endsWith:f.value},message:f.message}),i.dirty()):f.kind==="datetime"?eS(f).test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{code:Se.invalid_string,validation:"datetime",message:f.message}),i.dirty()):f.kind==="date"?MT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{code:Se.invalid_string,validation:"date",message:f.message}),i.dirty()):f.kind==="time"?DT(f).test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{code:Se.invalid_string,validation:"time",message:f.message}),i.dirty()):f.kind==="duration"?wT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"duration",code:Se.invalid_string,message:f.message}),i.dirty()):f.kind==="ip"?kT(n.data,f.version)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"ip",code:Se.invalid_string,message:f.message}),i.dirty()):f.kind==="jwt"?NT(n.data,f.alg)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"jwt",code:Se.invalid_string,message:f.message}),i.dirty()):f.kind==="cidr"?IT(n.data,f.version)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"cidr",code:Se.invalid_string,message:f.message}),i.dirty()):f.kind==="base64"?OT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"base64",code:Se.invalid_string,message:f.message}),i.dirty()):f.kind==="base64url"?RT.test(n.data)||(l=this._getOrReturnCtx(n,l),De(l,{validation:"base64url",code:Se.invalid_string,message:f.message}),i.dirty()):Et.assertNever(f);return{status:i.value,value:n.data}}_regex(n,r,i){return this.refinement(l=>n.test(l),{validation:r,code:Se.invalid_string,...qe.errToObj(i)})}_addCheck(n){return new Qr({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",...qe.errToObj(n)})}url(n){return this._addCheck({kind:"url",...qe.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",...qe.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",...qe.errToObj(n)})}nanoid(n){return this._addCheck({kind:"nanoid",...qe.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",...qe.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",...qe.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",...qe.errToObj(n)})}base64(n){return this._addCheck({kind:"base64",...qe.errToObj(n)})}base64url(n){return this._addCheck({kind:"base64url",...qe.errToObj(n)})}jwt(n){return this._addCheck({kind:"jwt",...qe.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",...qe.errToObj(n)})}cidr(n){return this._addCheck({kind:"cidr",...qe.errToObj(n)})}datetime(n){return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof n?.precision>"u"?null:n?.precision,offset:n?.offset??!1,local:n?.local??!1,...qe.errToObj(n?.message)})}date(n){return this._addCheck({kind:"date",message:n})}time(n){return typeof n=="string"?this._addCheck({kind:"time",precision:null,message:n}):this._addCheck({kind:"time",precision:typeof n?.precision>"u"?null:n?.precision,...qe.errToObj(n?.message)})}duration(n){return this._addCheck({kind:"duration",...qe.errToObj(n)})}regex(n,r){return this._addCheck({kind:"regex",regex:n,...qe.errToObj(r)})}includes(n,r){return this._addCheck({kind:"includes",value:n,position:r?.position,...qe.errToObj(r?.message)})}startsWith(n,r){return this._addCheck({kind:"startsWith",value:n,...qe.errToObj(r)})}endsWith(n,r){return this._addCheck({kind:"endsWith",value:n,...qe.errToObj(r)})}min(n,r){return this._addCheck({kind:"min",value:n,...qe.errToObj(r)})}max(n,r){return this._addCheck({kind:"max",value:n,...qe.errToObj(r)})}length(n,r){return this._addCheck({kind:"length",value:n,...qe.errToObj(r)})}nonempty(n){return this.min(1,qe.errToObj(n))}trim(){return new Qr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Qr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Qr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}get isDate(){return!!this._def.checks.find(n=>n.kind==="date")}get isTime(){return!!this._def.checks.find(n=>n.kind==="time")}get isDuration(){return!!this._def.checks.find(n=>n.kind==="duration")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(n=>n.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get isCIDR(){return!!this._def.checks.find(n=>n.kind==="cidr")}get isBase64(){return!!this._def.checks.find(n=>n.kind==="base64")}get isBase64url(){return!!this._def.checks.find(n=>n.kind==="base64url")}get minLength(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxLength(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}Qr.create=t=>new Qr({checks:[],typeName:tt.ZodString,coerce:t?.coerce??!1,...ct(t)});function LT(t,n){const r=(t.toString().split(".")[1]||"").length,i=(n.toString().split(".")[1]||"").length,l=r>i?r:i,f=Number.parseInt(t.toFixed(l).replace(".","")),h=Number.parseInt(n.toFixed(l).replace(".",""));return f%h/10**l}class _s extends dt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==Ie.number){const f=this._getOrReturnCtx(n);return De(f,{code:Se.invalid_type,expected:Ie.number,received:f.parsedType}),Xe}let i;const l=new da;for(const f of this._def.checks)f.kind==="int"?Et.isInteger(n.data)||(i=this._getOrReturnCtx(n,i),De(i,{code:Se.invalid_type,expected:"integer",received:"float",message:f.message}),l.dirty()):f.kind==="min"?(f.inclusive?n.data<f.value:n.data<=f.value)&&(i=this._getOrReturnCtx(n,i),De(i,{code:Se.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),l.dirty()):f.kind==="max"?(f.inclusive?n.data>f.value:n.data>=f.value)&&(i=this._getOrReturnCtx(n,i),De(i,{code:Se.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),l.dirty()):f.kind==="multipleOf"?LT(n.data,f.value)!==0&&(i=this._getOrReturnCtx(n,i),De(i,{code:Se.not_multiple_of,multipleOf:f.value,message:f.message}),l.dirty()):f.kind==="finite"?Number.isFinite(n.data)||(i=this._getOrReturnCtx(n,i),De(i,{code:Se.not_finite,message:f.message}),l.dirty()):Et.assertNever(f);return{status:l.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,qe.toString(r))}gt(n,r){return this.setLimit("min",n,!1,qe.toString(r))}lte(n,r){return this.setLimit("max",n,!0,qe.toString(r))}lt(n,r){return this.setLimit("max",n,!1,qe.toString(r))}setLimit(n,r,i,l){return new _s({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:i,message:qe.toString(l)}]})}_addCheck(n){return new _s({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:qe.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:qe.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:qe.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:qe.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:qe.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:qe.toString(r)})}finite(n){return this._addCheck({kind:"finite",message:qe.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:qe.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:qe.toString(n)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&Et.isInteger(n.value))}get isFinite(){let n=null,r=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(n===null||i.value<n)&&(n=i.value)}return Number.isFinite(r)&&Number.isFinite(n)}}_s.create=t=>new _s({checks:[],typeName:tt.ZodNumber,coerce:t?.coerce||!1,...ct(t)});class Ss extends dt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce)try{n.data=BigInt(n.data)}catch{return this._getInvalidInput(n)}if(this._getType(n)!==Ie.bigint)return this._getInvalidInput(n);let i;const l=new da;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?n.data<f.value:n.data<=f.value)&&(i=this._getOrReturnCtx(n,i),De(i,{code:Se.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),l.dirty()):f.kind==="max"?(f.inclusive?n.data>f.value:n.data>=f.value)&&(i=this._getOrReturnCtx(n,i),De(i,{code:Se.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),l.dirty()):f.kind==="multipleOf"?n.data%f.value!==BigInt(0)&&(i=this._getOrReturnCtx(n,i),De(i,{code:Se.not_multiple_of,multipleOf:f.value,message:f.message}),l.dirty()):Et.assertNever(f);return{status:l.value,value:n.data}}_getInvalidInput(n){const r=this._getOrReturnCtx(n);return De(r,{code:Se.invalid_type,expected:Ie.bigint,received:r.parsedType}),Xe}gte(n,r){return this.setLimit("min",n,!0,qe.toString(r))}gt(n,r){return this.setLimit("min",n,!1,qe.toString(r))}lte(n,r){return this.setLimit("max",n,!0,qe.toString(r))}lt(n,r){return this.setLimit("max",n,!1,qe.toString(r))}setLimit(n,r,i,l){return new Ss({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:i,message:qe.toString(l)}]})}_addCheck(n){return new Ss({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:qe.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:qe.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:qe.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:qe.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:qe.toString(r)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}Ss.create=t=>new Ss({checks:[],typeName:tt.ZodBigInt,coerce:t?.coerce??!1,...ct(t)});class Hd extends dt{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==Ie.boolean){const i=this._getOrReturnCtx(n);return De(i,{code:Se.invalid_type,expected:Ie.boolean,received:i.parsedType}),Xe}return Oa(n.data)}}Hd.create=t=>new Hd({typeName:tt.ZodBoolean,coerce:t?.coerce||!1,...ct(t)});class zl extends dt{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==Ie.date){const f=this._getOrReturnCtx(n);return De(f,{code:Se.invalid_type,expected:Ie.date,received:f.parsedType}),Xe}if(Number.isNaN(n.data.getTime())){const f=this._getOrReturnCtx(n);return De(f,{code:Se.invalid_date}),Xe}const i=new da;let l;for(const f of this._def.checks)f.kind==="min"?n.data.getTime()<f.value&&(l=this._getOrReturnCtx(n,l),De(l,{code:Se.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),i.dirty()):f.kind==="max"?n.data.getTime()>f.value&&(l=this._getOrReturnCtx(n,l),De(l,{code:Se.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),i.dirty()):Et.assertNever(f);return{status:i.value,value:new Date(n.data.getTime())}}_addCheck(n){return new zl({...this._def,checks:[...this._def.checks,n]})}min(n,r){return this._addCheck({kind:"min",value:n.getTime(),message:qe.toString(r)})}max(n,r){return this._addCheck({kind:"max",value:n.getTime(),message:qe.toString(r)})}get minDate(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n!=null?new Date(n):null}}zl.create=t=>new zl({checks:[],coerce:t?.coerce||!1,typeName:tt.ZodDate,...ct(t)});class Bm extends dt{_parse(n){if(this._getType(n)!==Ie.symbol){const i=this._getOrReturnCtx(n);return De(i,{code:Se.invalid_type,expected:Ie.symbol,received:i.parsedType}),Xe}return Oa(n.data)}}Bm.create=t=>new Bm({typeName:tt.ZodSymbol,...ct(t)});class Bd extends dt{_parse(n){if(this._getType(n)!==Ie.undefined){const i=this._getOrReturnCtx(n);return De(i,{code:Se.invalid_type,expected:Ie.undefined,received:i.parsedType}),Xe}return Oa(n.data)}}Bd.create=t=>new Bd({typeName:tt.ZodUndefined,...ct(t)});class qd extends dt{_parse(n){if(this._getType(n)!==Ie.null){const i=this._getOrReturnCtx(n);return De(i,{code:Se.invalid_type,expected:Ie.null,received:i.parsedType}),Xe}return Oa(n.data)}}qd.create=t=>new qd({typeName:tt.ZodNull,...ct(t)});class pc extends dt{constructor(){super(...arguments),this._any=!0}_parse(n){return Oa(n.data)}}pc.create=t=>new pc({typeName:tt.ZodAny,...ct(t)});class jl extends dt{constructor(){super(...arguments),this._unknown=!0}_parse(n){return Oa(n.data)}}jl.create=t=>new jl({typeName:tt.ZodUnknown,...ct(t)});class Eo extends dt{_parse(n){const r=this._getOrReturnCtx(n);return De(r,{code:Se.invalid_type,expected:Ie.never,received:r.parsedType}),Xe}}Eo.create=t=>new Eo({typeName:tt.ZodNever,...ct(t)});class qm extends dt{_parse(n){if(this._getType(n)!==Ie.undefined){const i=this._getOrReturnCtx(n);return De(i,{code:Se.invalid_type,expected:Ie.void,received:i.parsedType}),Xe}return Oa(n.data)}}qm.create=t=>new qm({typeName:tt.ZodVoid,...ct(t)});class Wr extends dt{_parse(n){const{ctx:r,status:i}=this._processInputParams(n),l=this._def;if(r.parsedType!==Ie.array)return De(r,{code:Se.invalid_type,expected:Ie.array,received:r.parsedType}),Xe;if(l.exactLength!==null){const h=r.data.length>l.exactLength.value,g=r.data.length<l.exactLength.value;(h||g)&&(De(r,{code:h?Se.too_big:Se.too_small,minimum:g?l.exactLength.value:void 0,maximum:h?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),i.dirty())}if(l.minLength!==null&&r.data.length<l.minLength.value&&(De(r,{code:Se.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),i.dirty()),l.maxLength!==null&&r.data.length>l.maxLength.value&&(De(r,{code:Se.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((h,g)=>l.type._parseAsync(new Mi(r,h,r.path,g)))).then(h=>da.mergeArray(i,h));const f=[...r.data].map((h,g)=>l.type._parseSync(new Mi(r,h,r.path,g)));return da.mergeArray(i,f)}get element(){return this._def.type}min(n,r){return new Wr({...this._def,minLength:{value:n,message:qe.toString(r)}})}max(n,r){return new Wr({...this._def,maxLength:{value:n,message:qe.toString(r)}})}length(n,r){return new Wr({...this._def,exactLength:{value:n,message:qe.toString(r)}})}nonempty(n){return this.min(1,n)}}Wr.create=(t,n)=>new Wr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:tt.ZodArray,...ct(n)});function mc(t){if(t instanceof gn){const n={};for(const r in t.shape){const i=t.shape[r];n[r]=ki.create(mc(i))}return new gn({...t._def,shape:()=>n})}else return t instanceof Wr?new Wr({...t._def,type:mc(t.element)}):t instanceof ki?ki.create(mc(t.unwrap())):t instanceof Es?Es.create(mc(t.unwrap())):t instanceof Di?Di.create(t.items.map(n=>mc(n))):t}class gn extends dt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const n=this._def.shape(),r=Et.objectKeys(n);return this._cached={shape:n,keys:r},this._cached}_parse(n){if(this._getType(n)!==Ie.object){const b=this._getOrReturnCtx(n);return De(b,{code:Se.invalid_type,expected:Ie.object,received:b.parsedType}),Xe}const{status:i,ctx:l}=this._processInputParams(n),{shape:f,keys:h}=this._getCached(),g=[];if(!(this._def.catchall instanceof Eo&&this._def.unknownKeys==="strip"))for(const b in l.data)h.includes(b)||g.push(b);const y=[];for(const b of h){const w=f[b],E=l.data[b];y.push({key:{status:"valid",value:b},value:w._parse(new Mi(l,E,l.path,b)),alwaysSet:b in l.data})}if(this._def.catchall instanceof Eo){const b=this._def.unknownKeys;if(b==="passthrough")for(const w of g)y.push({key:{status:"valid",value:w},value:{status:"valid",value:l.data[w]}});else if(b==="strict")g.length>0&&(De(l,{code:Se.unrecognized_keys,keys:g}),i.dirty());else if(b!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const b=this._def.catchall;for(const w of g){const E=l.data[w];y.push({key:{status:"valid",value:w},value:b._parse(new Mi(l,E,l.path,w)),alwaysSet:w in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const b=[];for(const w of y){const E=await w.key,A=await w.value;b.push({key:E,value:A,alwaysSet:w.alwaysSet})}return b}).then(b=>da.mergeObjectSync(i,b)):da.mergeObjectSync(i,y)}get shape(){return this._def.shape()}strict(n){return qe.errToObj,new gn({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(r,i)=>{const l=this._def.errorMap?.(r,i).message??i.defaultError;return r.code==="unrecognized_keys"?{message:qe.errToObj(n).message??l}:{message:l}}}:{}})}strip(){return new gn({...this._def,unknownKeys:"strip"})}passthrough(){return new gn({...this._def,unknownKeys:"passthrough"})}extend(n){return new gn({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new gn({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:tt.ZodObject})}setKey(n,r){return this.augment({[n]:r})}catchall(n){return new gn({...this._def,catchall:n})}pick(n){const r={};for(const i of Et.objectKeys(n))n[i]&&this.shape[i]&&(r[i]=this.shape[i]);return new gn({...this._def,shape:()=>r})}omit(n){const r={};for(const i of Et.objectKeys(this.shape))n[i]||(r[i]=this.shape[i]);return new gn({...this._def,shape:()=>r})}deepPartial(){return mc(this)}partial(n){const r={};for(const i of Et.objectKeys(this.shape)){const l=this.shape[i];n&&!n[i]?r[i]=l:r[i]=l.optional()}return new gn({...this._def,shape:()=>r})}required(n){const r={};for(const i of Et.objectKeys(this.shape))if(n&&!n[i])r[i]=this.shape[i];else{let f=this.shape[i];for(;f instanceof ki;)f=f._def.innerType;r[i]=f}return new gn({...this._def,shape:()=>r})}keyof(){return tS(Et.objectKeys(this.shape))}}gn.create=(t,n)=>new gn({shape:()=>t,unknownKeys:"strip",catchall:Eo.create(),typeName:tt.ZodObject,...ct(n)}),gn.strictCreate=(t,n)=>new gn({shape:()=>t,unknownKeys:"strict",catchall:Eo.create(),typeName:tt.ZodObject,...ct(n)}),gn.lazycreate=(t,n)=>new gn({shape:t,unknownKeys:"strip",catchall:Eo.create(),typeName:tt.ZodObject,...ct(n)});class Fd extends dt{_parse(n){const{ctx:r}=this._processInputParams(n),i=this._def.options;function l(f){for(const g of f)if(g.result.status==="valid")return g.result;for(const g of f)if(g.result.status==="dirty")return r.common.issues.push(...g.ctx.common.issues),g.result;const h=f.map(g=>new lr(g.ctx.common.issues));return De(r,{code:Se.invalid_union,unionErrors:h}),Xe}if(r.common.async)return Promise.all(i.map(async f=>{const h={...r,common:{...r.common,issues:[]},parent:null};return{result:await f._parseAsync({data:r.data,path:r.path,parent:h}),ctx:h}})).then(l);{let f;const h=[];for(const y of i){const b={...r,common:{...r.common,issues:[]},parent:null},w=y._parseSync({data:r.data,path:r.path,parent:b});if(w.status==="valid")return w;w.status==="dirty"&&!f&&(f={result:w,ctx:b}),b.common.issues.length&&h.push(b.common.issues)}if(f)return r.common.issues.push(...f.ctx.common.issues),f.result;const g=h.map(y=>new lr(y));return De(r,{code:Se.invalid_union,unionErrors:g}),Xe}}get options(){return this._def.options}}Fd.create=(t,n)=>new Fd({options:t,typeName:tt.ZodUnion,...ct(n)});const Ao=t=>t instanceof Vd?Ao(t.schema):t instanceof Xr?Ao(t.innerType()):t instanceof $d?[t.value]:t instanceof Cs?t.options:t instanceof Zd?Et.objectValues(t.enum):t instanceof Qd?Ao(t._def.innerType):t instanceof Bd?[void 0]:t instanceof qd?[null]:t instanceof ki?[void 0,...Ao(t.unwrap())]:t instanceof Es?[null,...Ao(t.unwrap())]:t instanceof sv||t instanceof Kd?Ao(t.unwrap()):t instanceof Wd?Ao(t._def.innerType):[];class Fm extends dt{_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==Ie.object)return De(r,{code:Se.invalid_type,expected:Ie.object,received:r.parsedType}),Xe;const i=this.discriminator,l=r.data[i],f=this.optionsMap.get(l);return f?r.common.async?f._parseAsync({data:r.data,path:r.path,parent:r}):f._parseSync({data:r.data,path:r.path,parent:r}):(De(r,{code:Se.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Xe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(n,r,i){const l=new Map;for(const f of r){const h=Ao(f.shape[n]);if(!h.length)throw new Error(`A discriminator value for key \`${n}\` could not be extracted from all schema options`);for(const g of h){if(l.has(g))throw new Error(`Discriminator property ${String(n)} has duplicate value ${String(g)}`);l.set(g,f)}}return new Fm({typeName:tt.ZodDiscriminatedUnion,discriminator:n,options:r,optionsMap:l,...ct(i)})}}function ov(t,n){const r=Co(t),i=Co(n);if(t===n)return{valid:!0,data:t};if(r===Ie.object&&i===Ie.object){const l=Et.objectKeys(n),f=Et.objectKeys(t).filter(g=>l.indexOf(g)!==-1),h={...t,...n};for(const g of f){const y=ov(t[g],n[g]);if(!y.valid)return{valid:!1};h[g]=y.data}return{valid:!0,data:h}}else if(r===Ie.array&&i===Ie.array){if(t.length!==n.length)return{valid:!1};const l=[];for(let f=0;f<t.length;f++){const h=t[f],g=n[f],y=ov(h,g);if(!y.valid)return{valid:!1};l.push(y.data)}return{valid:!0,data:l}}else return r===Ie.date&&i===Ie.date&&+t==+n?{valid:!0,data:t}:{valid:!1}}class Yd extends dt{_parse(n){const{status:r,ctx:i}=this._processInputParams(n),l=(f,h)=>{if(av(f)||av(h))return Xe;const g=ov(f.value,h.value);return g.valid?((rv(f)||rv(h))&&r.dirty(),{status:r.value,value:g.data}):(De(i,{code:Se.invalid_intersection_types}),Xe)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([f,h])=>l(f,h)):l(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Yd.create=(t,n,r)=>new Yd({left:t,right:n,typeName:tt.ZodIntersection,...ct(r)});class Di extends dt{_parse(n){const{status:r,ctx:i}=this._processInputParams(n);if(i.parsedType!==Ie.array)return De(i,{code:Se.invalid_type,expected:Ie.array,received:i.parsedType}),Xe;if(i.data.length<this._def.items.length)return De(i,{code:Se.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Xe;!this._def.rest&&i.data.length>this._def.items.length&&(De(i,{code:Se.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const f=[...i.data].map((h,g)=>{const y=this._def.items[g]||this._def.rest;return y?y._parse(new Mi(i,h,i.path,g)):null}).filter(h=>!!h);return i.common.async?Promise.all(f).then(h=>da.mergeArray(r,h)):da.mergeArray(r,f)}get items(){return this._def.items}rest(n){return new Di({...this._def,rest:n})}}Di.create=(t,n)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Di({items:t,typeName:tt.ZodTuple,rest:null,...ct(n)})};class Gd extends dt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:r,ctx:i}=this._processInputParams(n);if(i.parsedType!==Ie.object)return De(i,{code:Se.invalid_type,expected:Ie.object,received:i.parsedType}),Xe;const l=[],f=this._def.keyType,h=this._def.valueType;for(const g in i.data)l.push({key:f._parse(new Mi(i,g,i.path,g)),value:h._parse(new Mi(i,i.data[g],i.path,g)),alwaysSet:g in i.data});return i.common.async?da.mergeObjectAsync(r,l):da.mergeObjectSync(r,l)}get element(){return this._def.valueType}static create(n,r,i){return r instanceof dt?new Gd({keyType:n,valueType:r,typeName:tt.ZodRecord,...ct(i)}):new Gd({keyType:Qr.create(),valueType:n,typeName:tt.ZodRecord,...ct(r)})}}class Ym extends dt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:r,ctx:i}=this._processInputParams(n);if(i.parsedType!==Ie.map)return De(i,{code:Se.invalid_type,expected:Ie.map,received:i.parsedType}),Xe;const l=this._def.keyType,f=this._def.valueType,h=[...i.data.entries()].map(([g,y],b)=>({key:l._parse(new Mi(i,g,i.path,[b,"key"])),value:f._parse(new Mi(i,y,i.path,[b,"value"]))}));if(i.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const y of h){const b=await y.key,w=await y.value;if(b.status==="aborted"||w.status==="aborted")return Xe;(b.status==="dirty"||w.status==="dirty")&&r.dirty(),g.set(b.value,w.value)}return{status:r.value,value:g}})}else{const g=new Map;for(const y of h){const b=y.key,w=y.value;if(b.status==="aborted"||w.status==="aborted")return Xe;(b.status==="dirty"||w.status==="dirty")&&r.dirty(),g.set(b.value,w.value)}return{status:r.value,value:g}}}}Ym.create=(t,n,r)=>new Ym({valueType:n,keyType:t,typeName:tt.ZodMap,...ct(r)});class Pl extends dt{_parse(n){const{status:r,ctx:i}=this._processInputParams(n);if(i.parsedType!==Ie.set)return De(i,{code:Se.invalid_type,expected:Ie.set,received:i.parsedType}),Xe;const l=this._def;l.minSize!==null&&i.data.size<l.minSize.value&&(De(i,{code:Se.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),r.dirty()),l.maxSize!==null&&i.data.size>l.maxSize.value&&(De(i,{code:Se.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),r.dirty());const f=this._def.valueType;function h(y){const b=new Set;for(const w of y){if(w.status==="aborted")return Xe;w.status==="dirty"&&r.dirty(),b.add(w.value)}return{status:r.value,value:b}}const g=[...i.data.values()].map((y,b)=>f._parse(new Mi(i,y,i.path,b)));return i.common.async?Promise.all(g).then(y=>h(y)):h(g)}min(n,r){return new Pl({...this._def,minSize:{value:n,message:qe.toString(r)}})}max(n,r){return new Pl({...this._def,maxSize:{value:n,message:qe.toString(r)}})}size(n,r){return this.min(n,r).max(n,r)}nonempty(n){return this.min(1,n)}}Pl.create=(t,n)=>new Pl({valueType:t,minSize:null,maxSize:null,typeName:tt.ZodSet,...ct(n)});class gc extends dt{constructor(){super(...arguments),this.validate=this.implement}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==Ie.function)return De(r,{code:Se.invalid_type,expected:Ie.function,received:r.parsedType}),Xe;function i(g,y){return Hm({data:g,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Um(),dc].filter(b=>!!b),issueData:{code:Se.invalid_arguments,argumentsError:y}})}function l(g,y){return Hm({data:g,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Um(),dc].filter(b=>!!b),issueData:{code:Se.invalid_return_type,returnTypeError:y}})}const f={errorMap:r.common.contextualErrorMap},h=r.data;if(this._def.returns instanceof yc){const g=this;return Oa(async function(...y){const b=new lr([]),w=await g._def.args.parseAsync(y,f).catch(I=>{throw b.addIssue(i(y,I)),b}),E=await Reflect.apply(h,this,w);return await g._def.returns._def.type.parseAsync(E,f).catch(I=>{throw b.addIssue(l(E,I)),b})})}else{const g=this;return Oa(function(...y){const b=g._def.args.safeParse(y,f);if(!b.success)throw new lr([i(y,b.error)]);const w=Reflect.apply(h,this,b.data),E=g._def.returns.safeParse(w,f);if(!E.success)throw new lr([l(w,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...n){return new gc({...this._def,args:Di.create(n).rest(jl.create())})}returns(n){return new gc({...this._def,returns:n})}implement(n){return this.parse(n)}strictImplement(n){return this.parse(n)}static create(n,r,i){return new gc({args:n||Di.create([]).rest(jl.create()),returns:r||jl.create(),typeName:tt.ZodFunction,...ct(i)})}}class Vd extends dt{get schema(){return this._def.getter()}_parse(n){const{ctx:r}=this._processInputParams(n);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Vd.create=(t,n)=>new Vd({getter:t,typeName:tt.ZodLazy,...ct(n)});class $d extends dt{_parse(n){if(n.data!==this._def.value){const r=this._getOrReturnCtx(n);return De(r,{received:r.data,code:Se.invalid_literal,expected:this._def.value}),Xe}return{status:"valid",value:n.data}}get value(){return this._def.value}}$d.create=(t,n)=>new $d({value:t,typeName:tt.ZodLiteral,...ct(n)});function tS(t,n){return new Cs({values:t,typeName:tt.ZodEnum,...ct(n)})}class Cs extends dt{_parse(n){if(typeof n.data!="string"){const r=this._getOrReturnCtx(n),i=this._def.values;return De(r,{expected:Et.joinValues(i),received:r.parsedType,code:Se.invalid_type}),Xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(n.data)){const r=this._getOrReturnCtx(n),i=this._def.values;return De(r,{received:r.data,code:Se.invalid_enum_value,options:i}),Xe}return Oa(n.data)}get options(){return this._def.values}get enum(){const n={};for(const r of this._def.values)n[r]=r;return n}get Values(){const n={};for(const r of this._def.values)n[r]=r;return n}get Enum(){const n={};for(const r of this._def.values)n[r]=r;return n}extract(n,r=this._def){return Cs.create(n,{...this._def,...r})}exclude(n,r=this._def){return Cs.create(this.options.filter(i=>!n.includes(i)),{...this._def,...r})}}Cs.create=tS;class Zd extends dt{_parse(n){const r=Et.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(n);if(i.parsedType!==Ie.string&&i.parsedType!==Ie.number){const l=Et.objectValues(r);return De(i,{expected:Et.joinValues(l),received:i.parsedType,code:Se.invalid_type}),Xe}if(this._cache||(this._cache=new Set(Et.getValidEnumValues(this._def.values))),!this._cache.has(n.data)){const l=Et.objectValues(r);return De(i,{received:i.data,code:Se.invalid_enum_value,options:l}),Xe}return Oa(n.data)}get enum(){return this._def.values}}Zd.create=(t,n)=>new Zd({values:t,typeName:tt.ZodNativeEnum,...ct(n)});class yc extends dt{unwrap(){return this._def.type}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==Ie.promise&&r.common.async===!1)return De(r,{code:Se.invalid_type,expected:Ie.promise,received:r.parsedType}),Xe;const i=r.parsedType===Ie.promise?r.data:Promise.resolve(r.data);return Oa(i.then(l=>this._def.type.parseAsync(l,{path:r.path,errorMap:r.common.contextualErrorMap})))}}yc.create=(t,n)=>new yc({type:t,typeName:tt.ZodPromise,...ct(n)});class Xr extends dt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:r,ctx:i}=this._processInputParams(n),l=this._def.effect||null,f={addIssue:h=>{De(i,h),h.fatal?r.abort():r.dirty()},get path(){return i.path}};if(f.addIssue=f.addIssue.bind(f),l.type==="preprocess"){const h=l.transform(i.data,f);if(i.common.async)return Promise.resolve(h).then(async g=>{if(r.value==="aborted")return Xe;const y=await this._def.schema._parseAsync({data:g,path:i.path,parent:i});return y.status==="aborted"?Xe:y.status==="dirty"||r.value==="dirty"?hc(y.value):y});{if(r.value==="aborted")return Xe;const g=this._def.schema._parseSync({data:h,path:i.path,parent:i});return g.status==="aborted"?Xe:g.status==="dirty"||r.value==="dirty"?hc(g.value):g}}if(l.type==="refinement"){const h=g=>{const y=l.refinement(g,f);if(i.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(i.common.async===!1){const g=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return g.status==="aborted"?Xe:(g.status==="dirty"&&r.dirty(),h(g.value),{status:r.value,value:g.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(g=>g.status==="aborted"?Xe:(g.status==="dirty"&&r.dirty(),h(g.value).then(()=>({status:r.value,value:g.value}))))}if(l.type==="transform")if(i.common.async===!1){const h=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Ll(h))return Xe;const g=l.transform(h.value,f);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:g}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(h=>Ll(h)?Promise.resolve(l.transform(h.value,f)).then(g=>({status:r.value,value:g})):Xe);Et.assertNever(l)}}Xr.create=(t,n,r)=>new Xr({schema:t,typeName:tt.ZodEffects,effect:n,...ct(r)}),Xr.createWithPreprocess=(t,n,r)=>new Xr({schema:n,effect:{type:"preprocess",transform:t},typeName:tt.ZodEffects,...ct(r)});class ki extends dt{_parse(n){return this._getType(n)===Ie.undefined?Oa(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}ki.create=(t,n)=>new ki({innerType:t,typeName:tt.ZodOptional,...ct(n)});class Es extends dt{_parse(n){return this._getType(n)===Ie.null?Oa(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Es.create=(t,n)=>new Es({innerType:t,typeName:tt.ZodNullable,...ct(n)});class Qd extends dt{_parse(n){const{ctx:r}=this._processInputParams(n);let i=r.data;return r.parsedType===Ie.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Qd.create=(t,n)=>new Qd({innerType:t,typeName:tt.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...ct(n)});class Wd extends dt{_parse(n){const{ctx:r}=this._processInputParams(n),i={...r,common:{...r.common,issues:[]}},l=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ud(l)?l.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new lr(i.common.issues)},input:i.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new lr(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Wd.create=(t,n)=>new Wd({innerType:t,typeName:tt.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...ct(n)});class Gm extends dt{_parse(n){if(this._getType(n)!==Ie.nan){const i=this._getOrReturnCtx(n);return De(i,{code:Se.invalid_type,expected:Ie.nan,received:i.parsedType}),Xe}return{status:"valid",value:n.data}}}Gm.create=t=>new Gm({typeName:tt.ZodNaN,...ct(t)});const zT=Symbol("zod_brand");class sv extends dt{_parse(n){const{ctx:r}=this._processInputParams(n),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}}class Xd extends dt{_parse(n){const{status:r,ctx:i}=this._processInputParams(n);if(i.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return f.status==="aborted"?Xe:f.status==="dirty"?(r.dirty(),hc(f.value)):this._def.out._parseAsync({data:f.value,path:i.path,parent:i})})();{const l=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?Xe:l.status==="dirty"?(r.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:i.path,parent:i})}}static create(n,r){return new Xd({in:n,out:r,typeName:tt.ZodPipeline})}}class Kd extends dt{_parse(n){const r=this._def.innerType._parse(n),i=l=>(Ll(l)&&(l.value=Object.freeze(l.value)),l);return Ud(r)?r.then(l=>i(l)):i(r)}unwrap(){return this._def.innerType}}Kd.create=(t,n)=>new Kd({innerType:t,typeName:tt.ZodReadonly,...ct(n)});function nS(t,n){const r=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function lv(t,n={},r){return t?pc.create().superRefine((i,l)=>{const f=t(i);if(f instanceof Promise)return f.then(h=>{if(!h){const g=nS(n,i),y=g.fatal??r??!0;l.addIssue({code:"custom",...g,fatal:y})}});if(!f){const h=nS(n,i),g=h.fatal??r??!0;l.addIssue({code:"custom",...h,fatal:g})}}):pc.create()}const jT={object:gn.lazycreate};var tt;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(tt||(tt={}));const PT=(t,n={message:`Input not instance of ${t.name}`})=>lv(r=>r instanceof t,n),N=Qr.create,nt=_s.create,UT=Gm.create,HT=Ss.create,ft=Hd.create,uv=zl.create,BT=Bm.create,qT=Bd.create,FT=qd.create,YT=pc.create,GT=jl.create,VT=Eo.create,cv=qm.create,aa=Wr.create,mt=gn.create,$T=gn.strictCreate,vc=Fd.create,Jd=Fm.create,ZT=Yd.create,QT=Di.create,fv=Gd.create,WT=Ym.create,XT=Pl.create,dv=gc.create,KT=Vd.create,Vt=$d.create,bc=Cs.create,JT=Zd.create,eO=yc.create,aS=Xr.create,tO=ki.create,nO=Es.create,aO=Xr.createWithPreprocess,rO=Xd.create,xc=Object.freeze(Object.defineProperty({__proto__:null,BRAND:zT,DIRTY:hc,EMPTY_PATH:pT,INVALID:Xe,NEVER:Xe,OK:Oa,ParseStatus:da,Schema:dt,ZodAny:pc,ZodArray:Wr,ZodBigInt:Ss,ZodBoolean:Hd,ZodBranded:sv,ZodCatch:Wd,ZodDate:zl,ZodDefault:Qd,ZodDiscriminatedUnion:Fm,ZodEffects:Xr,ZodEnum:Cs,ZodError:lr,get ZodFirstPartyTypeKind(){return tt},ZodFunction:gc,ZodIntersection:Yd,ZodIssueCode:Se,ZodLazy:Vd,ZodLiteral:$d,ZodMap:Ym,ZodNaN:Gm,ZodNativeEnum:Zd,ZodNever:Eo,ZodNull:qd,ZodNullable:Es,ZodNumber:_s,ZodObject:gn,ZodOptional:ki,ZodParsedType:Ie,ZodPipeline:Xd,ZodPromise:yc,ZodReadonly:Kd,ZodRecord:Gd,ZodSchema:dt,ZodSet:Pl,ZodString:Qr,ZodSymbol:Bm,ZodTransformer:Xr,ZodTuple:Di,ZodType:dt,ZodUndefined:Bd,ZodUnion:Fd,ZodUnknown:jl,ZodVoid:qm,addIssueToContext:De,any:YT,array:aa,bigint:HT,boolean:ft,coerce:{string:(t=>Qr.create({...t,coerce:!0})),number:(t=>_s.create({...t,coerce:!0})),boolean:(t=>Hd.create({...t,coerce:!0})),bigint:(t=>Ss.create({...t,coerce:!0})),date:(t=>zl.create({...t,coerce:!0}))},custom:lv,date:uv,datetimeRegex:eS,defaultErrorMap:dc,discriminatedUnion:Jd,effect:aS,enum:bc,function:dv,getErrorMap:Um,getParsedType:Co,instanceof:PT,intersection:ZT,isAborted:av,isAsync:Ud,isDirty:rv,isValid:Ll,late:jT,lazy:KT,literal:Vt,makeIssue:Hm,map:WT,nan:UT,nativeEnum:JT,never:VT,null:FT,nullable:nO,number:nt,object:mt,get objectUtil(){return nv},oboolean:()=>ft().optional(),onumber:()=>nt().optional(),optional:tO,ostring:()=>N().optional(),pipeline:rO,preprocess:aO,promise:eO,quotelessJson:dT,record:fv,set:XT,setErrorMap:hT,strictObject:$T,string:N,symbol:BT,transformer:aS,tuple:QT,undefined:qT,union:vc,unknown:GT,get util(){return Et},void:cv},Symbol.toStringTag,{value:"Module"})),iO={iata:xc.string(),primaryColor:xc.string(),secondaryColor:xc.string(),defaultDestinations:xc.array(xc.string())};xc.object(iO);const oO=mt({Code:N(),Name:N(),"Logo URL":N().url().optional()}),rS="LAS,MCO,SFB,ORL,PIE,FLL,PGD,RSW,TPA,SRQ,PHX,DEN,BNA,MIA,AZA,DFW,ATL",iS={type:vc([Vt("airtable"),Vt("full")]).default("full"),Name:N(),"Menu Bar & Button Color":N(),"Button Hover Color":N(),"Preferred Airport Naming Convention":N(),"Airport Website URL":N(),"Mapping Address (from Mapping Address)":N(),"Mapping - Address Line 1":N().optional(),"Mapping - Address Line 2":N().optional(),"Mapping - City":N().optional(),"Mapping - State":N().optional(),"Mapping - Zip/Postal Code":N().optional(),"Mapping - Country":N().optional(),"Hosted Logo Url":N().optional(),"Hosted Logo Url White":N().optional(),"Kayak Car Rental Code":N(),"Default Nearby Dates for Lower Fares":ft().optional(),"Kayak Search Override":N().optional(),Airlines:aa(N()).default([]),Facebook:N().url().optional(),Instagram:N().url().optional(),LinkedIn:N().url().optional(),Twitter:N().url().optional(),TikTok:N().url().optional(),Threads:N().url().optional(),YouTube:N().url().optional(),Vimeo:N().url().optional(),Pinterest:N().url().optional(),IATA_blacklist:N().optional(),Promoted_IATAs:N().transform(t=>t==null||t.trim()===""?rS:t).default(rS),"Kayak Provider Filter":N().optional(),Search_AutoComplete_Type:bc(["kayak","schedule_data"]).default("kayak")};Jd("type",[mt({...iS,type:Vt("airtable")}),mt({...iS,Airlines:aa(oO),type:Vt("full")})]),mt({Name:N(),URL:N().url().optional(),Latitude:nt().optional(),Longitude:nt().optional(),City:N().optional(),"Destination Overview":N().optional()}),mt({Name:N(),Destination:N(),url:N(),"Start Date":N(),"End Date":N(),excluded_airport_iatas:N().optional()}),mt({Name:N().default(""),"Segment Write Key":N().default("nqwOz3T8HLmWRDiyjqIY0I3aT81UrgMo")}),mt({iata:N(),name:N(),imageUrl:N(),directFlight:ft(),airlineCodes:aa(N()),scheduleStartDate:uv().nullish(),fliesSunday:ft(),fliesMonday:ft(),fliesTuesday:ft(),fliesWednesday:ft(),fliesThursday:ft(),fliesFriday:ft(),fliesSaturday:ft(),stops:nt(),country:N(),region:N(),searchRegion:N(),municipality:N().nullish(),latitude:nt(),longitude:nt()}),mt({query:N().min(0).max(255),departureAirportIATA:N().min(3).max(3).toUpperCase(),marketingCarrierCodeIATA:N().min(2).max(2).toUpperCase()});const sO=mt({airportIATA:N().min(3).max(3).toUpperCase(),city:N().min(2).max(100),state:N().min(2).max(2),country:N().min(2).max(2)}),lO=aa(sO),uO=mt({success:Vt(!0),data:lO}),cO=mt({success:Vt(!1),error:N().min(1).max(255)}),fO=Jd("success",[uO,cO]);mt({departureAirport:N(),arrivalAirport:N(),departureDate:N(),arrivalDate:N().optional().nullable()}),fv(N(),mt({date:N(),stops:nt().optional().nullable()})),mt({from_iata:N().min(3).max(3).toUpperCase(),promoted_iatas:aa(N().min(3).max(3).toUpperCase()).optional()});const dO=mt({iata:N().min(3).max(3).toUpperCase(),name:N(),price:nt(),departureDate:N(),returnDate:N()}),hO=aa(dO),pO=mt({origin:mt({iata:N().min(3).max(3).toUpperCase()}),destinations:hO}),mO=mt({success:Vt(!0),data:pO}),gO=mt({success:Vt(!1),error:N().min(1).max(255)});Jd("success",[mO,gO]);const oS=6048e5,yO=864e5,vO=6e4,bO=36e5,xO=1e3,sS=Symbol.for("constructDateFrom");function hn(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&sS in t?t[sS](n):t instanceof Date?new t.constructor(n):new Date(n)}function en(t,n){return hn(n||t,t)}function As(t,n,r){const i=en(t,r?.in);return isNaN(n)?hn(r?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function hv(t,n,r){const i=en(t,r?.in);if(isNaN(n))return hn(t,NaN);if(!n)return i;const l=i.getDate(),f=hn(t,i.getTime());f.setMonth(i.getMonth()+n+1,0);const h=f.getDate();return l>=h?f:(i.setFullYear(f.getFullYear(),f.getMonth(),l),i)}function lS(t,n,r){const{years:i=0,months:l=0,weeks:f=0,days:h=0,hours:g=0,minutes:y=0,seconds:b=0}=n,w=en(t,r?.in),E=l||i?hv(w,l+i*12):w,A=h||f?As(E,h+f*7):E,I=y+g*60,D=(b+I*60)*1e3;return hn(t,+A+D)}let wO={};function wc(){return wO}function Ni(t,n){const r=wc(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=en(t,n?.in),f=l.getDay(),h=(f<i?7:0)+f-i;return l.setDate(l.getDate()-h),l.setHours(0,0,0,0),l}function _c(t,n){return Ni(t,{...n,weekStartsOn:1})}function uS(t,n){const r=en(t,n?.in),i=r.getFullYear(),l=hn(r,0);l.setFullYear(i+1,0,4),l.setHours(0,0,0,0);const f=_c(l),h=hn(r,0);h.setFullYear(i,0,4),h.setHours(0,0,0,0);const g=_c(h);return r.getTime()>=f.getTime()?i+1:r.getTime()>=g.getTime()?i:i-1}function Vm(t){const n=en(t),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+t-+r}function cS(t,...n){const r=hn.bind(null,n.find(i=>typeof i=="object"));return n.map(r)}function Lr(t,n){const r=en(t,n?.in);return r.setHours(0,0,0,0),r}function _O(t,n,r){const[i,l]=cS(r?.in,t,n),f=Lr(i),h=Lr(l),g=+f-Vm(f),y=+h-Vm(h);return Math.round((g-y)/yO)}function SO(t,n){const r=uS(t,n),i=hn(t,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),_c(i)}function CO(t,n){let r,i=n?.in;return t.forEach(l=>{!i&&typeof l=="object"&&(i=hn.bind(null,l));const f=en(l,i);(!r||r<f||isNaN(+f))&&(r=f)}),hn(i,r||NaN)}function Sc(t,n,r){const[i,l]=cS(r?.in,t,n);return+Lr(i)==+Lr(l)}function EO(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function pv(t){return!(!EO(t)&&typeof t!="number"||isNaN(+en(t)))}function mv(t,n){const r=en(t,n?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function AO(t,n){const r=en(t,n?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const TO={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"}},OO=(t,n,r)=>{let i;const l=TO[t];return typeof l=="string"?i=l:n===1?i=l.one:i=l.other.replace("{{count}}",n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function gv(t){return(n={})=>{const r=n.width?String(n.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const RO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},MO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},DO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kO={date:gv({formats:RO,defaultWidth:"full"}),time:gv({formats:MO,defaultWidth:"full"}),dateTime:gv({formats:DO,defaultWidth:"full"})},NO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},IO=(t,n,r,i)=>NO[t];function eh(t){return(n,r)=>{const i=r?.context?String(r.context):"standalone";let l;if(i==="formatting"&&t.formattingValues){const h=t.defaultFormattingWidth||t.defaultWidth,g=r?.width?String(r.width):h;l=t.formattingValues[g]||t.formattingValues[h]}else{const h=t.defaultWidth,g=r?.width?String(r.width):t.defaultWidth;l=t.values[g]||t.values[h]}const f=t.argumentCallback?t.argumentCallback(n):n;return l[f]}}const LO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jO={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"]},PO={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"]},UO={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"}},HO={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"}},BO={ordinalNumber:(t,n)=>{const r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:eh({values:LO,defaultWidth:"wide"}),quarter:eh({values:zO,defaultWidth:"wide",argumentCallback:t=>t-1}),month:eh({values:jO,defaultWidth:"wide"}),day:eh({values:PO,defaultWidth:"wide"}),dayPeriod:eh({values:UO,defaultWidth:"wide",formattingValues:HO,defaultFormattingWidth:"wide"})};function th(t){return(n,r={})=>{const i=r.width,l=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],f=n.match(l);if(!f)return null;const h=f[0],g=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],y=Array.isArray(g)?FO(g,E=>E.test(h)):qO(g,E=>E.test(h));let b;b=t.valueCallback?t.valueCallback(y):y,b=r.valueCallback?r.valueCallback(b):b;const w=n.slice(h.length);return{value:b,rest:w}}}function qO(t,n){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n(t[r]))return r}function FO(t,n){for(let r=0;r<t.length;r++)if(n(t[r]))return r}function YO(t){return(n,r={})=>{const i=n.match(t.matchPattern);if(!i)return null;const l=i[0],f=n.match(t.parsePattern);if(!f)return null;let h=t.valueCallback?t.valueCallback(f[0]):f[0];h=r.valueCallback?r.valueCallback(h):h;const g=n.slice(l.length);return{value:h,rest:g}}}const GO=/^(\d+)(th|st|nd|rd)?/i,VO=/\d+/i,$O={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},ZO={any:[/^b/i,/^(a|c)/i]},QO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},WO={any:[/1/i,/2/i,/3/i,/4/i]},XO={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},KO={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]},JO={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},e6={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]},t6={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},n6={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}},a6={ordinalNumber:YO({matchPattern:GO,parsePattern:VO,valueCallback:t=>parseInt(t,10)}),era:th({matchPatterns:$O,defaultMatchWidth:"wide",parsePatterns:ZO,defaultParseWidth:"any"}),quarter:th({matchPatterns:QO,defaultMatchWidth:"wide",parsePatterns:WO,defaultParseWidth:"any",valueCallback:t=>t+1}),month:th({matchPatterns:XO,defaultMatchWidth:"wide",parsePatterns:KO,defaultParseWidth:"any"}),day:th({matchPatterns:JO,defaultMatchWidth:"wide",parsePatterns:e6,defaultParseWidth:"any"}),dayPeriod:th({matchPatterns:t6,defaultMatchWidth:"any",parsePatterns:n6,defaultParseWidth:"any"})},fS={code:"en-US",formatDistance:OO,formatLong:kO,formatRelative:IO,localize:BO,match:a6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function r6(t,n){const r=en(t,n?.in);return _O(r,AO(r))+1}function dS(t,n){const r=en(t,n?.in),i=+_c(r)-+SO(r);return Math.round(i/oS)+1}function yv(t,n){const r=en(t,n?.in),i=r.getFullYear(),l=wc(),f=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,h=hn(n?.in||t,0);h.setFullYear(i+1,0,f),h.setHours(0,0,0,0);const g=Ni(h,n),y=hn(n?.in||t,0);y.setFullYear(i,0,f),y.setHours(0,0,0,0);const b=Ni(y,n);return+r>=+g?i+1:+r>=+b?i:i-1}function i6(t,n){const r=wc(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,l=yv(t,n),f=hn(n?.in||t,0);return f.setFullYear(l,0,i),f.setHours(0,0,0,0),Ni(f,n)}function hS(t,n){const r=en(t,n?.in),i=+Ni(r,n)-+i6(r,n);return Math.round(i/oS)+1}function $t(t,n){const r=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return r+i}const Ts={y(t,n){const r=t.getFullYear(),i=r>0?r:1-r;return $t(n==="yy"?i%100:i,n.length)},M(t,n){const r=t.getMonth();return n==="M"?String(r+1):$t(r+1,2)},d(t,n){return $t(t.getDate(),n.length)},a(t,n){const r=t.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(t,n){return $t(t.getHours()%12||12,n.length)},H(t,n){return $t(t.getHours(),n.length)},m(t,n){return $t(t.getMinutes(),n.length)},s(t,n){return $t(t.getSeconds(),n.length)},S(t,n){const r=n.length,i=t.getMilliseconds(),l=Math.trunc(i*Math.pow(10,r-3));return $t(l,n.length)}},Cc={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pS={G:function(t,n,r){const i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){const i=t.getFullYear(),l=i>0?i:1-i;return r.ordinalNumber(l,{unit:"year"})}return Ts.y(t,n)},Y:function(t,n,r,i){const l=yv(t,i),f=l>0?l:1-l;if(n==="YY"){const h=f%100;return $t(h,2)}return n==="Yo"?r.ordinalNumber(f,{unit:"year"}):$t(f,n.length)},R:function(t,n){const r=uS(t);return $t(r,n.length)},u:function(t,n){const r=t.getFullYear();return $t(r,n.length)},Q:function(t,n,r){const i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return $t(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){const i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return $t(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){const i=t.getMonth();switch(n){case"M":case"MM":return Ts.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){const i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return $t(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){const l=hS(t,i);return n==="wo"?r.ordinalNumber(l,{unit:"week"}):$t(l,n.length)},I:function(t,n,r){const i=dS(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):$t(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Ts.d(t,n)},D:function(t,n,r){const i=r6(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):$t(i,n.length)},E:function(t,n,r){const i=t.getDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){const l=t.getDay(),f=(l-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(f);case"ee":return $t(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(l,{width:"short",context:"formatting"});case"eeee":default:return r.day(l,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){const l=t.getDay(),f=(l-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(f);case"cc":return $t(f,n.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(l,{width:"narrow",context:"standalone"});case"cccccc":return r.day(l,{width:"short",context:"standalone"});case"cccc":default:return r.day(l,{width:"wide",context:"standalone"})}},i:function(t,n,r){const i=t.getDay(),l=i===0?7:i;switch(n){case"i":return String(l);case"ii":return $t(l,n.length);case"io":return r.ordinalNumber(l,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){const l=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(t,n,r){const i=t.getHours();let l;switch(i===12?l=Cc.noon:i===0?l=Cc.midnight:l=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(t,n,r){const i=t.getHours();let l;switch(i>=17?l=Cc.evening:i>=12?l=Cc.afternoon:i>=4?l=Cc.morning:l=Cc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Ts.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Ts.H(t,n)},K:function(t,n,r){const i=t.getHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):$t(i,n.length)},k:function(t,n,r){let i=t.getHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):$t(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ts.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Ts.s(t,n)},S:function(t,n){return Ts.S(t,n)},X:function(t,n,r){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return gS(i);case"XXXX":case"XX":return Ul(i);case"XXXXX":case"XXX":default:return Ul(i,":")}},x:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"x":return gS(i);case"xxxx":case"xx":return Ul(i);case"xxxxx":case"xxx":default:return Ul(i,":")}},O:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+mS(i,":");case"OOOO":default:return"GMT"+Ul(i,":")}},z:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+mS(i,":");case"zzzz":default:return"GMT"+Ul(i,":")}},t:function(t,n,r){const i=Math.trunc(+t/1e3);return $t(i,n.length)},T:function(t,n,r){return $t(+t,n.length)}};function mS(t,n=""){const r=t>0?"-":"+",i=Math.abs(t),l=Math.trunc(i/60),f=i%60;return f===0?r+String(l):r+String(l)+n+$t(f,2)}function gS(t,n){return t%60===0?(t>0?"-":"+")+$t(Math.abs(t)/60,2):Ul(t,n)}function Ul(t,n=""){const r=t>0?"-":"+",i=Math.abs(t),l=$t(Math.trunc(i/60),2),f=$t(i%60,2);return r+l+n+f}const yS=(t,n)=>{switch(t){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"})}},vS=(t,n)=>{switch(t){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"})}},vv={p:vS,P:(t,n)=>{const r=t.match(/(P+)(p+)?/)||[],i=r[1],l=r[2];if(!l)return yS(t,n);let f;switch(i){case"P":f=n.dateTime({width:"short"});break;case"PP":f=n.dateTime({width:"medium"});break;case"PPP":f=n.dateTime({width:"long"});break;case"PPPP":default:f=n.dateTime({width:"full"});break}return f.replace("{{date}}",yS(i,n)).replace("{{time}}",vS(l,n))}},o6=/^D+$/,s6=/^Y+$/,l6=["D","DD","YY","YYYY"];function bS(t){return o6.test(t)}function xS(t){return s6.test(t)}function bv(t,n,r){const i=u6(t,n,r);if(console.warn(i),l6.includes(t))throw new RangeError(i)}function u6(t,n,r){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const c6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,f6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d6=/^'([^]*?)'?$/,h6=/''/g,p6=/[a-zA-Z]/;function $m(t,n,r){const i=wc(),l=i.locale??fS,f=i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,h=i.weekStartsOn??i.locale?.options?.weekStartsOn??0,g=en(t,r?.in);if(!pv(g))throw new RangeError("Invalid time value");let y=n.match(f6).map(w=>{const E=w[0];if(E==="p"||E==="P"){const A=vv[E];return A(w,l.formatLong)}return w}).join("").match(c6).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const E=w[0];if(E==="'")return{isToken:!1,value:m6(w)};if(pS[E])return{isToken:!0,value:w};if(E.match(p6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:w}});l.localize.preprocessor&&(y=l.localize.preprocessor(g,y));const b={firstWeekContainsDate:f,weekStartsOn:h,locale:l};return y.map(w=>{if(!w.isToken)return w.value;const E=w.value;(xS(E)||bS(E))&&bv(E,n,String(t));const A=pS[E[0]];return A(g,E,l.localize,b)}).join("")}function m6(t){const n=t.match(d6);return n?n[1].replace(h6,"'"):t}function g6(){return Object.assign({},wc())}function y6(t,n){const r=en(t,n?.in).getDay();return r===0?7:r}function xv(t,n){return+en(t)>+en(n)}function Ii(t,n){return+en(t)<+en(n)}function v6(t,n){const r=b6(n)?new n(0):hn(n,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}function b6(t){return typeof t=="function"&&t.prototype?.constructor===t}const x6=10;class wS{subPriority=0;validate(n,r){return!0}}class w6 extends wS{constructor(n,r,i,l,f){super(),this.value=n,this.validateValue=r,this.setValue=i,this.priority=l,f&&(this.subPriority=f)}validate(n,r){return this.validateValue(n,this.value,r)}set(n,r,i){return this.setValue(n,r,this.value,i)}}class _6 extends wS{priority=x6;subPriority=-1;constructor(n,r){super(),this.context=n||(i=>hn(r,i))}set(n,r){return r.timestampIsSet?n:hn(n,v6(n,this.context))}}class Lt{run(n,r,i,l){const f=this.parse(n,r,i,l);return f?{setter:new w6(f.value,this.validate,this.set,this.priority,this.subPriority),rest:f.rest}:null}validate(n,r,i){return!0}}class S6 extends Lt{priority=140;parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]}const Tn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Li={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function On(t,n){return t&&{value:n(t.value),rest:t.rest}}function yn(t,n){const r=n.match(t);return r?{value:parseInt(r[0],10),rest:n.slice(r[0].length)}:null}function zi(t,n){const r=n.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:n.slice(1)};const i=r[1]==="+"?1:-1,l=r[2]?parseInt(r[2],10):0,f=r[3]?parseInt(r[3],10):0,h=r[5]?parseInt(r[5],10):0;return{value:i*(l*bO+f*vO+h*xO),rest:n.slice(r[0].length)}}function _S(t){return yn(Tn.anyDigitsSigned,t)}function En(t,n){switch(t){case 1:return yn(Tn.singleDigit,n);case 2:return yn(Tn.twoDigits,n);case 3:return yn(Tn.threeDigits,n);case 4:return yn(Tn.fourDigits,n);default:return yn(new RegExp("^\\d{1,"+t+"}"),n)}}function Zm(t,n){switch(t){case 1:return yn(Tn.singleDigitSigned,n);case 2:return yn(Tn.twoDigitsSigned,n);case 3:return yn(Tn.threeDigitsSigned,n);case 4:return yn(Tn.fourDigitsSigned,n);default:return yn(new RegExp("^-?\\d{1,"+t+"}"),n)}}function wv(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function SS(t,n){const r=n>0,i=r?n:1-n;let l;if(i<=50)l=t||100;else{const f=i+50,h=Math.trunc(f/100)*100,g=t>=f%100;l=t+h-(g?100:0)}return r?l:1-l}function CS(t){return t%400===0||t%4===0&&t%100!==0}class C6 extends Lt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,r,i){const l=f=>({year:f,isTwoDigitYear:r==="yy"});switch(r){case"y":return On(En(4,n),l);case"yo":return On(i.ordinalNumber(n,{unit:"year"}),l);default:return On(En(r.length,n),l)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const l=n.getFullYear();if(i.isTwoDigitYear){const h=SS(i.year,l);return n.setFullYear(h,0,1),n.setHours(0,0,0,0),n}const f=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(f,0,1),n.setHours(0,0,0,0),n}}class E6 extends Lt{priority=130;parse(n,r,i){const l=f=>({year:f,isTwoDigitYear:r==="YY"});switch(r){case"Y":return On(En(4,n),l);case"Yo":return On(i.ordinalNumber(n,{unit:"year"}),l);default:return On(En(r.length,n),l)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,l){const f=yv(n,l);if(i.isTwoDigitYear){const g=SS(i.year,f);return n.setFullYear(g,0,l.firstWeekContainsDate),n.setHours(0,0,0,0),Ni(n,l)}const h=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(h,0,l.firstWeekContainsDate),n.setHours(0,0,0,0),Ni(n,l)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class A6 extends Lt{priority=130;parse(n,r){return Zm(r==="R"?4:r.length,n)}set(n,r,i){const l=hn(n,0);return l.setFullYear(i,0,4),l.setHours(0,0,0,0),_c(l)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class T6 extends Lt{priority=130;parse(n,r){return Zm(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class O6 extends Lt{priority=120;parse(n,r,i){switch(r){case"Q":case"QQ":return En(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class R6 extends Lt{priority=120;parse(n,r,i){switch(r){case"q":case"qq":return En(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class M6 extends Lt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,r,i){const l=f=>f-1;switch(r){case"M":return On(yn(Tn.month,n),l);case"MM":return On(En(2,n),l);case"Mo":return On(i.ordinalNumber(n,{unit:"month"}),l);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class D6 extends Lt{priority=110;parse(n,r,i){const l=f=>f-1;switch(r){case"L":return On(yn(Tn.month,n),l);case"LL":return On(En(2,n),l);case"Lo":return On(i.ordinalNumber(n,{unit:"month"}),l);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function k6(t,n,r){const i=en(t,r?.in),l=hS(i,r)-n;return i.setDate(i.getDate()-l*7),en(i,r?.in)}class N6 extends Lt{priority=100;parse(n,r,i){switch(r){case"w":return yn(Tn.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return En(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,l){return Ni(k6(n,i,l),l)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function I6(t,n,r){const i=en(t,r?.in),l=dS(i,r)-n;return i.setDate(i.getDate()-l*7),i}class L6 extends Lt{priority=100;parse(n,r,i){switch(r){case"I":return yn(Tn.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return En(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return _c(I6(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const z6=[31,28,31,30,31,30,31,31,30,31,30,31],j6=[31,29,31,30,31,30,31,31,30,31,30,31];class P6 extends Lt{priority=90;subPriority=1;parse(n,r,i){switch(r){case"d":return yn(Tn.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return En(r.length,n)}}validate(n,r){const i=n.getFullYear(),l=CS(i),f=n.getMonth();return l?r>=1&&r<=j6[f]:r>=1&&r<=z6[f]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class U6 extends Lt{priority=90;subpriority=1;parse(n,r,i){switch(r){case"D":case"DD":return yn(Tn.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return En(r.length,n)}}validate(n,r){const i=n.getFullYear();return CS(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function _v(t,n,r){const i=wc(),l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,f=en(t,r?.in),h=f.getDay(),y=(n%7+7)%7,b=7-l,w=n<0||n>6?n-(h+b)%7:(y+b)%7-(h+b)%7;return As(f,w,r)}class H6 extends Lt{priority=90;parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,l){return n=_v(n,i,l),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]}class B6 extends Lt{priority=90;parse(n,r,i,l){const f=h=>{const g=Math.floor((h-1)/7)*7;return(h+l.weekStartsOn+6)%7+g};switch(r){case"e":case"ee":return On(En(r.length,n),f);case"eo":return On(i.ordinalNumber(n,{unit:"day"}),f);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,l){return n=_v(n,i,l),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class q6 extends Lt{priority=90;parse(n,r,i,l){const f=h=>{const g=Math.floor((h-1)/7)*7;return(h+l.weekStartsOn+6)%7+g};switch(r){case"c":case"cc":return On(En(r.length,n),f);case"co":return On(i.ordinalNumber(n,{unit:"day"}),f);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,l){return n=_v(n,i,l),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function F6(t,n,r){const i=en(t,r?.in),l=y6(i,r),f=n-l;return As(i,f,r)}class Y6 extends Lt{priority=90;parse(n,r,i){const l=f=>f===0?7:f;switch(r){case"i":case"ii":return En(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return On(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l);case"iiiii":return On(i.day(n,{width:"narrow",context:"formatting"}),l);case"iiiiii":return On(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l);case"iiii":default:return On(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=F6(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class G6 extends Lt{priority=80;parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(wv(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]}class V6 extends Lt{priority=80;parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(wv(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]}class $6 extends Lt{priority=80;parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(wv(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]}class Z6 extends Lt{priority=70;parse(n,r,i){switch(r){case"h":return yn(Tn.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return En(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const l=n.getHours()>=12;return l&&i<12?n.setHours(i+12,0,0,0):!l&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]}class Q6 extends Lt{priority=70;parse(n,r,i){switch(r){case"H":return yn(Tn.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return En(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]}class W6 extends Lt{priority=70;parse(n,r,i){switch(r){case"K":return yn(Tn.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return En(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]}class X6 extends Lt{priority=70;parse(n,r,i){switch(r){case"k":return yn(Tn.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return En(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const l=i<=24?i%24:i;return n.setHours(l,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]}class K6 extends Lt{priority=60;parse(n,r,i){switch(r){case"m":return yn(Tn.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return En(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]}class J6 extends Lt{priority=50;parse(n,r,i){switch(r){case"s":return yn(Tn.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return En(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]}class e2 extends Lt{priority=30;parse(n,r){const i=l=>Math.trunc(l*Math.pow(10,-r.length+3));return On(En(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]}class t2 extends Lt{priority=10;parse(n,r){switch(r){case"X":return zi(Li.basicOptionalMinutes,n);case"XX":return zi(Li.basic,n);case"XXXX":return zi(Li.basicOptionalSeconds,n);case"XXXXX":return zi(Li.extendedOptionalSeconds,n);case"XXX":default:return zi(Li.extended,n)}}set(n,r,i){return r.timestampIsSet?n:hn(n,n.getTime()-Vm(n)-i)}incompatibleTokens=["t","T","x"]}class n2 extends Lt{priority=10;parse(n,r){switch(r){case"x":return zi(Li.basicOptionalMinutes,n);case"xx":return zi(Li.basic,n);case"xxxx":return zi(Li.basicOptionalSeconds,n);case"xxxxx":return zi(Li.extendedOptionalSeconds,n);case"xxx":default:return zi(Li.extended,n)}}set(n,r,i){return r.timestampIsSet?n:hn(n,n.getTime()-Vm(n)-i)}incompatibleTokens=["t","T","X"]}class a2 extends Lt{priority=40;parse(n){return _S(n)}set(n,r,i){return[hn(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class r2 extends Lt{priority=20;parse(n){return _S(n)}set(n,r,i){return[hn(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"}const i2={G:new S6,y:new C6,Y:new E6,R:new A6,u:new T6,Q:new O6,q:new R6,M:new M6,L:new D6,w:new N6,I:new L6,d:new P6,D:new U6,E:new H6,e:new B6,c:new q6,i:new Y6,a:new G6,b:new V6,B:new $6,h:new Z6,H:new Q6,K:new W6,k:new X6,m:new K6,s:new J6,S:new e2,X:new t2,x:new n2,t:new a2,T:new r2},o2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,s2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l2=/^'([^]*?)'?$/,u2=/''/g,c2=/\S/,f2=/[a-zA-Z]/;function d2(t,n,r,i){const l=()=>hn(r,NaN),f=g6(),h=f.locale??fS,g=f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,y=f.weekStartsOn??f.locale?.options?.weekStartsOn??0,b={firstWeekContainsDate:g,weekStartsOn:y,locale:h},w=[new _6(i?.in,r)],E=n.match(s2).map(R=>{const q=R[0];if(q in vv){const Y=vv[q];return Y(R,h.formatLong)}return R}).join("").match(o2),A=[];for(let R of E){xS(R)&&bv(R,n,t),bS(R)&&bv(R,n,t);const q=R[0],Y=i2[q];if(Y){const{incompatibleTokens:re}=Y;if(Array.isArray(re)){const te=A.find(ye=>re.includes(ye.token)||ye.token===q);if(te)throw new RangeError(`The format string mustn't contain \`${te.fullToken}\` and \`${R}\` at the same time`)}else if(Y.incompatibleTokens==="*"&&A.length>0)throw new RangeError(`The format string mustn't contain \`${R}\` and any other token at the same time`);A.push({token:q,fullToken:R});const G=Y.run(t,R,h.match,b);if(!G)return l();w.push(G.setter),t=G.rest}else{if(q.match(f2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+q+"`");if(R==="''"?R="'":q==="'"&&(R=h2(R)),t.indexOf(R)===0)t=t.slice(R.length);else return l()}}if(t.length>0&&c2.test(t))return l();const I=w.map(R=>R.priority).sort((R,q)=>q-R).filter((R,q,Y)=>Y.indexOf(R)===q).map(R=>w.filter(q=>q.priority===R).sort((q,Y)=>Y.subPriority-q.subPriority)).map(R=>R[0]);let j=en(r,i?.in);if(isNaN(+j))return l();const D={};for(const R of I){if(!R.validate(j,b))return l();const q=R.set(j,D,b);Array.isArray(q)?(j=q[0],Object.assign(D,q[1])):j=q}return j}function h2(t){return t.match(l2)[1].replace(u2,"'")}function p2(t,n,r){return As(t,-n,r)}function m2(t,n,r){return hv(t,-n,r)}function ES(t,n,r){const{years:i=0,months:l=0,weeks:f=0,days:h=0,hours:g=0,minutes:y=0,seconds:b=0}=n,w=m2(t,l+i*12,r),E=p2(w,h+f*7,r),A=y+g*60,j=(b+A*60)*1e3;return hn(t,+E-j)}mt({departureAirportIATA:N().min(3).max(3).toUpperCase()});const g2=mt({airportIATA:N().min(3).max(3).toUpperCase(),city:N().min(2).max(100),state:N().min(2).max(2),country:N().min(2).max(2),stops:nt().min(0).max(1).optional(),airlineCodes:aa(N()).optional(),routeStart:vc([N(),uv()]).optional().transform(t=>{if(t)return t instanceof Date?t:new Date(t)})}),y2=aa(g2),v2=mt({success:Vt(!0),data:y2}),b2=mt({success:Vt(!1),error:N().min(1)}),x2=Jd("success",[v2,b2]),AS=mt({fs:N().optional(),iata:N().optional(),icao:N().optional(),name:N().optional(),city:N().optional(),cityCode:N().optional(),stateCode:N().optional(),countryCode:N().optional(),countryName:N().optional(),regionName:N().optional(),timeZoneRegionName:N().optional(),localTime:N().optional(),utcOffsetHours:nt().optional(),latitude:nt().optional(),longitude:nt().optional(),elevationFeet:nt().optional(),classification:nt().optional(),active:ft().optional(),distance:nt().optional()}),Qm=mt({fs:N().optional(),iata:N().optional(),icao:N().optional(),name:N().optional(),phoneNumber:N().optional(),active:ft().optional(),category:N().optional()}),w2=mt({iata:N().optional(),name:N().optional(),turboProp:ft().optional(),jet:ft().optional(),widebody:ft().optional(),regional:ft().optional()}),_2=mt({carrierFsCode:N().optional(),carrier:Qm.optional(),flightNumber:N().optional(),serviceType:N().optional(),serviceClasses:aa(N()).optional(),trafficRestrictions:aa(N()).optional(),referenceCode:nt().optional()}),S2=mt({carrierFsCode:N().optional(),carrier:Qm.optional(),flightNumber:N().optional(),serviceType:N().optional(),serviceClasses:aa(N()).optional(),trafficRestrictions:aa(N()).optional(),referenceCode:nt().optional()}),C2=mt({carrierFsCode:N().optional(),carrier:Qm.optional(),flightNumber:N().optional(),brand:N().optional(),departureAirportFsCode:N().optional(),departureAirport:AS.optional(),arrivalAirportFsCode:N().optional(),arrivalAirport:AS.optional(),departureTime:N().optional(),arrivalTime:N().optional(),stops:nt().optional(),departureTerminal:N().optional(),arrivalTerminal:N().optional(),flightEquipmentIataCode:N().optional(),flightEquipment:w2.optional(),isCodeshare:ft().optional(),isWetlease:ft().optional(),serviceType:N().optional(),serviceClasses:aa(N()).optional(),trafficRestrictions:aa(N()).optional(),codeshares:aa(_2).optional(),operator:S2.optional(),wetleaseOperator:Qm.optional(),wetleaseOperatorFsCode:N().optional(),referenceCode:N().optional(),elapsedTime:nt().optional(),effectiveDate:N().optional(),discontinueDate:N().optional(),isOperatingMonday:ft().optional(),isOperatingTuesday:ft().optional(),isOperatingWednesday:ft().optional(),isOperatingThursday:ft().optional(),isOperatingFriday:ft().optional(),isOperatingSaturday:ft().optional(),isOperatingSunday:ft().optional(),departureCountryCodeIata:N().optional(),departureRegionCodeIata:N().optional(),departureStateProvinceCodeIata:N().optional(),departureCityCodeIata:N().optional(),passengerDepartureTime:N().optional(),aircraftDepartureTime:N().optional(),departureUtcVariance:N().optional(),arrivalStationCodeIata:N().optional(),arrivalCountryCodeIata:N().optional(),arrivalRegionCodeIata:N().optional(),arrivalStateProvinceCodeIata:N().optional(),arrivalCityCodeIata:N().optional(),passengerArrivalTime:N().optional(),aircraftArrivalTime:N().optional(),arrivalUtcVariance:N().optional(),equipmentSubtypeCodeIata:N().optional(),equipmentGroupCodeIata:N().optional(),bookingClasses:N().optional(),arrivalDayIndicator:nt().optional(),numberOfIntermediateStops:nt().optional(),intermediateStopStationCodesIata:N().optional(),intermediateStopRestrictions:N().optional(),isEquipmentChange:ft().optional(),equipmentCodesAcrossSector:N().optional(),mealCodes:N().optional(),flightDurationLessLayover:nt().optional(),flightDistance:nt().optional(),flightDistanceThroughIndividualLegs:nt().optional(),layoverTime:nt().optional(),itineraryVariationIdentifier:nt().optional(),firstLegNumber:nt().optional(),inflightServiceCodes:N().optional(),codeshareInfo:N().optional(),aircraftOwnerInformation:N().optional(),operationalSuffix:N().optional(),firstClassSeats:nt().optional(),businessClassSeats:nt().optional(),premiumEconomySeats:nt().optional(),economyClassSeats:nt().optional(),totalSeats:nt().optional(),aircraftTonnage:nt().optional(),aircraftConfigurationVersion:N().optional(),equipmentChangeStops:N().optional(),mctIndicator:N().optional(),intermediateStopArrivalTime:N().optional(),intermediateStopDepartureTime:N().optional(),intermediateStopNextDayIndicator:N().optional(),logicalToPhysicalLegKey:N().optional(),releaseSellDate:N().optional(),secureFlightIndicator:N().optional(),aircraftOwner:N().optional(),cockpitCrewEmployer:N().optional(),cabinCrewEmployer:N().optional(),onwardFlight:N().optional(),automatedCheckIn:N().optional(),dateVariation:N().optional(),dei011:N().optional(),dei201:ft().optional(),dei299:N().optional(),dei501:N().optional(),dei502:N().optional(),dei503:N().optional(),dei505:N().optional(),physicalSectorizedIdKey:N().optional(),sectorizedId:nt().optional(),publishDate:N().optional(),carrierName:N().optional(),carrierShortName:N().optional(),carrierCategoryTypeIata:N().optional(),reservationPhoneNumber:N().optional(),carrierUrl:N().optional(),equipmentCodeIcao:N().optional(),equipmentDescription:N().optional(),equipmentAircraftName:N().optional(),equipmentMaxAirspeed:nt().optional(),equipmentAircraftType:N().optional(),equipmentIsWidebodyFuselage:ft().optional(),departureStationCityCodeIata:N().optional(),departureStationCodeIcao:N().optional(),departureStationName:N().optional(),departureStationCityName:N().optional(),departureStationCityCodeIcao:N().optional(),departureStationRegionCodeIata:N().optional(),departureStationCountryCodeIata:N().optional(),departureStationLatitude:N().optional(),departureStationLongitude:N().optional(),departureStationTimeZoneCodeIata:N().optional(),departureStationTypeIata:N().optional(),arrivalStationCityCodeIata:N().optional(),arrivalStationCodeIcao:N().optional(),arrivalStationName:N().optional(),arrivalStationCityName:N().optional(),arrivalStationCityCodeIcao:N().optional(),arrivalStationRegionCodeIata:N().optional(),arrivalStationCountryCodeIata:N().optional(),arrivalStationLatitude:N().optional(),arrivalStationLongitude:N().optional(),arrivalStationTimeZoneCodeIata:N().optional(),arrivalStationTypeIata:N().optional(),departureMetroCodeIata:N().optional(),departureMetroName:N().optional(),departureMetroCountryCodeIata:N().optional(),departureMetroStateProvinceCodeIata:N().optional(),arrivalMetroCodeIata:N().optional(),arrivalMetroName:N().optional(),arrivalMetroCountryCodeIata:N().optional(),arrivalMetroStateProvinceCodeIata:N().optional(),departureCountryNameIata:N().optional(),arrivalCountryNameIata:N().optional(),departureWorldAreaCodeIata:N().optional(),arrivalWorldAreaCodeIata:N().optional(),daysOfOperation:N().optional(),totalFrequency:nt().optional(),weeklyFrequency:nt().optional(),totalSeatMiles:nt().optional(),totalSeatKm:nt().optional()});mt({elapsedTime:nt().optional(),score:nt().optional(),scheduledFlight:aa(C2).optional()}),mt({hour:nt().int().optional(),minute:nt().int().optional(),second:nt().int().optional(),nano:nt().int().optional()});const Sv=Vt("UNDEF"),TS=vc([Vt("FMA"),Vt("EMB")]),E2=vc([Vt("HOME"),Vt("CARS"),Vt("FLIGHTS"),Vt("PACK"),Vt("DEST"),Vt("HOTELS"),Vt("EXPLORE"),Vt("CAMP")]),A2=vc([Vt("SEARCH"),Vt("DEAL"),Vt("WLPACK"),Vt("WLHOTEL"),Vt("WLCARS"),Vt("WLFLIGHTS"),Vt("WLEXPLORE")]),OS=N().min(1).max(10).regex(/^[A-Z0-9]+$/).optional().default(Sv.value),T2=mt({airport:N(),channel:TS,page:E2.optional(),userDefinedPage:OS,action:A2,originIATA:N().optional().default(Sv.value),destinationIATA:N().optional().default(Sv.value)});function O2(t){const{action:n,airport:r,channel:i,destinationIATA:l,originIATA:f,page:h,userDefinedPage:g}=T2.parse(t);return`${r}_${i}_${h||g}_${n}_${f}_${l}`}var Wm=(t=>(t[t.Flights=13]="Flights",t[t.AirportPackages=17]="AirportPackages",t[t.PackagesHotels=50]="PackagesHotels",t[t.HotelMultiType=58]="HotelMultiType",t[t.Cars=81]="Cars",t[t.Hotels=58]="Hotels",t[t.AirMultiTypeCG=59]="AirMultiTypeCG",t[t.MultiCar=85]="MultiCar",t))(Wm||{}),nh={exports:{}};/**
|
|
619
619
|
* @license
|
|
620
620
|
* Lodash <https://lodash.com/>
|
|
621
621
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
622
622
|
* Released under MIT license <https://lodash.com/license>
|
|
623
623
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
624
624
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
625
|
-
*/var c6=zd.exports,dS;function f6(){return dS||(dS=1,(function(e,t){(function(){var r,i="4.17.21",l=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",m="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",b=500,x="__lodash_placeholder__",S=1,T=2,N=4,j=1,M=2,D=1,B=2,F=4,re=8,Y=16,ne=32,se=64,fe=128,ie=256,we=512,Ce=30,De="...",_e=800,le=16,ue=1,he=2,Q=3,U=1/0,z=9007199254740991,ve=17976931348623157e292,Oe=NaN,P=4294967295,$=P-1,ee=P>>>1,K=[["ary",fe],["bind",D],["bindKey",B],["curry",re],["curryRight",Y],["flip",we],["partial",ne],["partialRight",se],["rearg",ie]],me="[object Arguments]",Re="[object Array]",be="[object AsyncFunction]",Be="[object Boolean]",qe="[object Date]",ft="[object DOMException]",at="[object Error]",Dt="[object Function]",bn="[object GeneratorFunction]",Yt="[object Map]",sa="[object Number]",Fn="[object Null]",On="[object Object]",dn="[object Promise]",br="[object Proxy]",Ve="[object RegExp]",Ue="[object Set]",Yn="[object String]",la="[object Symbol]",Xa="[object Undefined]",ta="[object WeakMap]",xr="[object WeakSet]",Da="[object ArrayBuffer]",Qt="[object DataView]",ba="[object Float32Array]",Gn="[object Float64Array]",bl="[object Int8Array]",xl="[object Int16Array]",wl="[object Int32Array]",zi="[object Uint8Array]",Pi="[object Uint8ClampedArray]",wr="[object Uint16Array]",ji="[object Uint32Array]",Ui=/\b__p \+= '';/g,xc=/\b(__p \+=) '' \+/g,wc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,Le=/[&<>"']/g,bt=RegExp(xe.source),Wt=RegExp(Le.source),Rn=/<%-([\s\S]+?)%>/g,Hi=/<%([\s\S]+?)%>/g,Ro=/<%=([\s\S]+?)%>/g,_l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sl=/^\w*$/,_c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ka=/[\\^$.*+?()[\]{}|]/g,Ln=RegExp(Ka.source),Vn=/^\s+/,Kr=/\s/,ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Db=/\{\n\/\* \[wrapped with (.+)\] \*/,Mb=/,? & /,dg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,El=/[()=,{}\[\]\/\s]/,Xd=/\\(\\)?/g,vs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Do=/\w*$/,Al=/^[-+]0x[0-9a-f]+$/i,bs=/^0b[01]+$/i,zn=/^\[object .+?Constructor\]$/,hg=/^0o[0-7]+$/i,pg=/^(?:0|[1-9]\d*)$/,Mo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jr=/($^)/,kb=/['\n\r\u2028\u2029\\]/g,Cl="\\ud800-\\udfff",mg="\\u0300-\\u036f",Nb="\\ufe20-\\ufe2f",Sc="\\u20d0-\\u20ff",Tl=mg+Nb+Sc,zr="\\u2700-\\u27bf",Ec="a-z\\xdf-\\xf6\\xf8-\\xff",gg="\\xac\\xb1\\xd7\\xf7",xs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Kd="\\u2000-\\u206f",Jd=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yg="A-Z\\xc0-\\xd6\\xd8-\\xde",eh="\\ufe0e\\ufe0f",Ma=gg+xs+Kd+Jd,Ac="['’]",Ib="["+Cl+"]",Ol="["+Ma+"]",Rl="["+Tl+"]",Dl="\\d+",Lb="["+zr+"]",ka="["+Ec+"]",Cc="[^"+Cl+Ma+Dl+zr+Ec+yg+"]",Tc="\\ud83c[\\udffb-\\udfff]",th="(?:"+Rl+"|"+Tc+")",ko="[^"+Cl+"]",Oc="(?:\\ud83c[\\udde6-\\uddff]){2}",Rc="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+yg+"]",vg="\\u200d",nh="(?:"+ka+"|"+Cc+")",bg="(?:"+_r+"|"+Cc+")",Dc="(?:"+Ac+"(?:d|ll|m|re|s|t|ve))?",xg="(?:"+Ac+"(?:D|LL|M|RE|S|T|VE))?",wg=th+"?",Ml="["+eh+"]?",ah="(?:"+vg+"(?:"+[ko,Oc,Rc].join("|")+")"+Ml+wg+")*",rh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ws="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",No=Ml+wg+ah,_g="(?:"+[Lb,Oc,Rc].join("|")+")"+No,ih="(?:"+[ko+Rl+"?",Rl,Oc,Rc,Ib].join("|")+")",Sg=RegExp(Ac,"g"),kl=RegExp(Rl,"g"),Sr=RegExp(Tc+"(?="+Tc+")|"+ih+No,"g"),oh=RegExp([_r+"?"+ka+"+"+Dc+"(?="+[Ol,_r,"$"].join("|")+")",bg+"+"+xg+"(?="+[Ol,_r+nh,"$"].join("|")+")",_r+"?"+nh+"+"+Dc,_r+"+"+xg,ws,rh,Dl,_g].join("|"),"g"),Nl=RegExp("["+vg+Cl+Tl+eh+"]"),Bi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mc=-1,Xt={};Xt[ba]=Xt[Gn]=Xt[bl]=Xt[xl]=Xt[wl]=Xt[zi]=Xt[Pi]=Xt[wr]=Xt[ji]=!0,Xt[me]=Xt[Re]=Xt[Da]=Xt[Be]=Xt[Qt]=Xt[qe]=Xt[at]=Xt[Dt]=Xt[Yt]=Xt[sa]=Xt[On]=Xt[Ve]=Xt[Ue]=Xt[Yn]=Xt[ta]=!1;var It={};It[me]=It[Re]=It[Da]=It[Qt]=It[Be]=It[qe]=It[ba]=It[Gn]=It[bl]=It[xl]=It[wl]=It[Yt]=It[sa]=It[On]=It[Ve]=It[Ue]=It[Yn]=It[la]=It[zi]=It[Pi]=It[wr]=It[ji]=!0,It[at]=It[Dt]=It[ta]=!1;var kc={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Eg={"&":"&","<":"<",">":">",'"':""","'":"'"},xa={"&":"&","<":"<",">":">",""":'"',"'":"'"},Io={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nc=parseFloat,Il=parseInt,Ag=typeof Jp=="object"&&Jp&&Jp.Object===Object&&Jp,lh=typeof self=="object"&&self&&self.Object===Object&&self,Dn=Ag||lh||Function("return this")(),Lo=t&&!t.nodeType&&t,Pr=Lo&&!0&&e&&!e.nodeType&&e,uh=Pr&&Pr.exports===Lo,ch=uh&&Ag.process,Ja=(function(){try{var G=Pr&&Pr.require&&Pr.require("util").types;return G||ch&&ch.binding&&ch.binding("util")}catch{}})(),Cg=Ja&&Ja.isArrayBuffer,Ic=Ja&&Ja.isDate,Tg=Ja&&Ja.isMap,Og=Ja&&Ja.isRegExp,Rg=Ja&&Ja.isSet,Dg=Ja&&Ja.isTypedArray;function Na(G,oe,ae){switch(ae.length){case 0:return G.call(oe);case 1:return G.call(oe,ae[0]);case 2:return G.call(oe,ae[0],ae[1]);case 3:return G.call(oe,ae[0],ae[1],ae[2])}return G.apply(oe,ae)}function Mg(G,oe,ae,Ne){for(var Qe=-1,_t=G==null?0:G.length;++Qe<_t;){var xn=G[Qe];oe(Ne,xn,ae(xn),G)}return Ne}function er(G,oe){for(var ae=-1,Ne=G==null?0:G.length;++ae<Ne&&oe(G[ae],ae,G)!==!1;);return G}function zb(G,oe){for(var ae=G==null?0:G.length;ae--&&oe(G[ae],ae,G)!==!1;);return G}function kg(G,oe){for(var ae=-1,Ne=G==null?0:G.length;++ae<Ne;)if(!oe(G[ae],ae,G))return!1;return!0}function qi(G,oe){for(var ae=-1,Ne=G==null?0:G.length,Qe=0,_t=[];++ae<Ne;){var xn=G[ae];oe(xn,ae,G)&&(_t[Qe++]=xn)}return _t}function _s(G,oe){var ae=G==null?0:G.length;return!!ae&&Ss(G,oe,0)>-1}function fh(G,oe,ae){for(var Ne=-1,Qe=G==null?0:G.length;++Ne<Qe;)if(ae(oe,G[Ne]))return!0;return!1}function an(G,oe){for(var ae=-1,Ne=G==null?0:G.length,Qe=Array(Ne);++ae<Ne;)Qe[ae]=oe(G[ae],ae,G);return Qe}function Fi(G,oe){for(var ae=-1,Ne=oe.length,Qe=G.length;++ae<Ne;)G[Qe+ae]=oe[ae];return G}function Lc(G,oe,ae,Ne){var Qe=-1,_t=G==null?0:G.length;for(Ne&&_t&&(ae=G[++Qe]);++Qe<_t;)ae=oe(ae,G[Qe],Qe,G);return ae}function Pb(G,oe,ae,Ne){var Qe=G==null?0:G.length;for(Ne&&Qe&&(ae=G[--Qe]);Qe--;)ae=oe(ae,G[Qe],Qe,G);return ae}function dh(G,oe){for(var ae=-1,Ne=G==null?0:G.length;++ae<Ne;)if(oe(G[ae],ae,G))return!0;return!1}var jb=hh("length");function Ub(G){return G.split("")}function Hb(G){return G.match(dg)||[]}function Ng(G,oe,ae){var Ne;return ae(G,function(Qe,_t,xn){if(oe(Qe,_t,xn))return Ne=_t,!1}),Ne}function zc(G,oe,ae,Ne){for(var Qe=G.length,_t=ae+(Ne?1:-1);Ne?_t--:++_t<Qe;)if(oe(G[_t],_t,G))return _t;return-1}function Ss(G,oe,ae){return oe===oe?Yb(G,oe,ae):zc(G,Pc,ae)}function Bb(G,oe,ae,Ne){for(var Qe=ae-1,_t=G.length;++Qe<_t;)if(Ne(G[Qe],oe))return Qe;return-1}function Pc(G){return G!==G}function Es(G,oe){var ae=G==null?0:G.length;return ae?Uc(G,oe)/ae:Oe}function hh(G){return function(oe){return oe==null?r:oe[G]}}function jc(G){return function(oe){return G==null?r:G[oe]}}function ph(G,oe,ae,Ne,Qe){return Qe(G,function(_t,xn,jt){ae=Ne?(Ne=!1,_t):oe(ae,_t,xn,jt)}),ae}function Ig(G,oe){var ae=G.length;for(G.sort(oe);ae--;)G[ae]=G[ae].value;return G}function Uc(G,oe){for(var ae,Ne=-1,Qe=G.length;++Ne<Qe;){var _t=oe(G[Ne]);_t!==r&&(ae=ae===r?_t:ae+_t)}return ae}function Hc(G,oe){for(var ae=-1,Ne=Array(G);++ae<G;)Ne[ae]=oe(ae);return Ne}function As(G,oe){return an(oe,function(ae){return[ae,G[ae]]})}function Lg(G){return G&&G.slice(0,bh(G)+1).replace(Vn,"")}function Ia(G){return function(oe){return G(oe)}}function mh(G,oe){return an(oe,function(ae){return G[ae]})}function Cs(G,oe){return G.has(oe)}function gh(G,oe){for(var ae=-1,Ne=G.length;++ae<Ne&&Ss(oe,G[ae],0)>-1;);return ae}function Ts(G,oe){for(var ae=G.length;ae--&&Ss(oe,G[ae],0)>-1;);return ae}function Ll(G,oe){for(var ae=G.length,Ne=0;ae--;)G[ae]===oe&&++Ne;return Ne}var qb=jc(kc),Bc=jc(Eg);function zg(G){return"\\"+Io[G]}function Pg(G,oe){return G==null?r:G[oe]}function Yi(G){return Nl.test(G)}function yh(G){return Bi.test(G)}function jg(G){for(var oe,ae=[];!(oe=G.next()).done;)ae.push(oe.value);return ae}function qc(G){var oe=-1,ae=Array(G.size);return G.forEach(function(Ne,Qe){ae[++oe]=[Qe,Ne]}),ae}function vh(G,oe){return function(ae){return G(oe(ae))}}function Gi(G,oe){for(var ae=-1,Ne=G.length,Qe=0,_t=[];++ae<Ne;){var xn=G[ae];(xn===oe||xn===x)&&(G[ae]=x,_t[Qe++]=ae)}return _t}function Fc(G){var oe=-1,ae=Array(G.size);return G.forEach(function(Ne){ae[++oe]=Ne}),ae}function Fb(G){var oe=-1,ae=Array(G.size);return G.forEach(function(Ne){ae[++oe]=[Ne,Ne]}),ae}function Yb(G,oe,ae){for(var Ne=ae-1,Qe=G.length;++Ne<Qe;)if(G[Ne]===oe)return Ne;return-1}function Gb(G,oe,ae){for(var Ne=ae+1;Ne--;)if(G[Ne]===oe)return Ne;return Ne}function Pn(G){return Yi(G)?Hg(G):jb(G)}function ua(G){return Yi(G)?Bg(G):Ub(G)}function bh(G){for(var oe=G.length;oe--&&Kr.test(G.charAt(oe)););return oe}var Ug=jc(xa);function Hg(G){for(var oe=Sr.lastIndex=0;Sr.test(G);)++oe;return oe}function Bg(G){return G.match(Sr)||[]}function xh(G){return G.match(oh)||[]}var Vb=(function G(oe){oe=oe==null?Dn:Er.defaults(Dn.Object(),oe,Er.pick(Dn,sh));var ae=oe.Array,Ne=oe.Date,Qe=oe.Error,_t=oe.Function,xn=oe.Math,jt=oe.Object,ei=oe.RegExp,qg=oe.String,La=oe.TypeError,zl=ae.prototype,$b=_t.prototype,Os=jt.prototype,Yc=oe["__core-js_shared__"],Pl=$b.toString,Mt=Os.hasOwnProperty,wh=0,tr=(function(){var s=/[^.]+$/.exec(Yc&&Yc.keys&&Yc.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})(),jl=Os.toString,nr=Pl.call(jt),ar=Dn._,Rs=ei("^"+Pl.call(Mt).replace(Ka,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ds=uh?oe.Buffer:r,Ar=oe.Symbol,zo=oe.Uint8Array,Gc=Ds?Ds.allocUnsafe:r,ti=vh(jt.getPrototypeOf,jt),_h=jt.create,Ul=Os.propertyIsEnumerable,ni=zl.splice,Fg=Ar?Ar.isConcatSpreadable:r,$n=Ar?Ar.iterator:r,ai=Ar?Ar.toStringTag:r,rr=(function(){try{var s=eo(jt,"defineProperty");return s({},"",{}),s}catch{}})(),Yg=oe.clearTimeout!==Dn.clearTimeout&&oe.clearTimeout,Vc=Ne&&Ne.now!==Dn.Date.now&&Ne.now,Po=oe.setTimeout!==Dn.setTimeout&&oe.setTimeout,Ms=xn.ceil,ks=xn.floor,Vi=jt.getOwnPropertySymbols,Ns=Ds?Ds.isBuffer:r,Hl=oe.isFinite,$c=zl.join,ir=vh(jt.keys,jt),kt=xn.max,hn=xn.min,ri=Ne.now,ii=oe.parseInt,$i=xn.random,Gg=zl.reverse,Bl=eo(oe,"DataView"),jo=eo(oe,"Map"),Zn=eo(oe,"Promise"),Gt=eo(oe,"Set"),St=eo(oe,"WeakMap"),Cr=eo(jt,"create"),za=St&&new St,Zi={},Uo=Vt(Bl),Vg=Vt(jo),$g=Vt(Zn),ql=Vt(Gt),Fl=Vt(St),Yl=Ar?Ar.prototype:r,oi=Yl?Yl.valueOf:r,Zc=Yl?Yl.toString:r;function E(s){if(cn(s)&&!rt(s)&&!(s instanceof pt)){if(s instanceof _n)return s;if(Mt.call(s,"__wrapped__"))return vp(s)}return new _n(s)}var wa=(function(){function s(){}return function(u){if(!tn(u))return{};if(_h)return _h(u);s.prototype=u;var p=new s;return s.prototype=r,p}})();function Tr(){}function _n(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=r}E.templateSettings={escape:Rn,evaluate:Hi,interpolate:Ro,variable:"",imports:{_:E}},E.prototype=Tr.prototype,E.prototype.constructor=E,_n.prototype=wa(Tr.prototype),_n.prototype.constructor=_n;function pt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=P,this.__views__=[]}function Sh(){var s=new pt(this.__wrapped__);return s.__actions__=Ea(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ea(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ea(this.__views__),s}function Gl(){if(this.__filtered__){var s=new pt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function Qc(){var s=this.__wrapped__.value(),u=this.__dir__,p=rt(s),v=u<0,_=p?s.length:0,O=cp(0,_,this.__views__),I=O.start,H=O.end,Z=H-I,pe=v?H:I-1,ye=this.__iteratees__,Se=ye.length,ke=0,Fe=hn(Z,this.__takeCount__);if(!p||!v&&_==Z&&Fe==Z)return Qh(s,this.__actions__);var Je=[];e:for(;Z--&&ke<Fe;){pe+=u;for(var gt=-1,et=s[pe];++gt<Se;){var At=ye[gt],Tt=At.iteratee,kr=At.type,$a=Tt(et);if(kr==he)et=$a;else if(!$a){if(kr==ue)continue e;break e}}Je[ke++]=et}return Je}pt.prototype=wa(Tr.prototype),pt.prototype.constructor=pt;function Pa(s){var u=-1,p=s==null?0:s.length;for(this.clear();++u<p;){var v=s[u];this.set(v[0],v[1])}}function na(){this.__data__=Cr?Cr(null):{},this.size=0}function Wc(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function Zg(s){var u=this.__data__;if(Cr){var p=u[s];return p===y?r:p}return Mt.call(u,s)?u[s]:r}function Zb(s){var u=this.__data__;return Cr?u[s]!==r:Mt.call(u,s)}function Qb(s,u){var p=this.__data__;return this.size+=this.has(s)?0:1,p[s]=Cr&&u===r?y:u,this}Pa.prototype.clear=na,Pa.prototype.delete=Wc,Pa.prototype.get=Zg,Pa.prototype.has=Zb,Pa.prototype.set=Qb;function si(s){var u=-1,p=s==null?0:s.length;for(this.clear();++u<p;){var v=s[u];this.set(v[0],v[1])}}function Mn(){this.__data__=[],this.size=0}function Eh(s){var u=this.__data__,p=Ls(u,s);if(p<0)return!1;var v=u.length-1;return p==v?u.pop():ni.call(u,p,1),--this.size,!0}function Vl(s){var u=this.__data__,p=Ls(u,s);return p<0?r:u[p][1]}function $l(s){return Ls(this.__data__,s)>-1}function Ah(s,u){var p=this.__data__,v=Ls(p,s);return v<0?(++this.size,p.push([s,u])):p[v][1]=u,this}si.prototype.clear=Mn,si.prototype.delete=Eh,si.prototype.get=Vl,si.prototype.has=$l,si.prototype.set=Ah;function _a(s){var u=-1,p=s==null?0:s.length;for(this.clear();++u<p;){var v=s[u];this.set(v[0],v[1])}}function Is(){this.size=0,this.__data__={hash:new Pa,map:new(jo||si),string:new Pa}}function Wb(s){var u=Go(this,s).delete(s);return this.size-=u?1:0,u}function Qg(s){return Go(this,s).get(s)}function Xb(s){return Go(this,s).has(s)}function Wg(s,u){var p=Go(this,s),v=p.size;return p.set(s,u),this.size+=p.size==v?0:1,this}_a.prototype.clear=Is,_a.prototype.delete=Wb,_a.prototype.get=Qg,_a.prototype.has=Xb,_a.prototype.set=Wg;function ja(s){var u=-1,p=s==null?0:s.length;for(this.__data__=new _a;++u<p;)this.add(s[u])}function Ch(s){return this.__data__.set(s,y),this}function Xc(s){return this.__data__.has(s)}ja.prototype.add=ja.prototype.push=Ch,ja.prototype.has=Xc;function or(s){var u=this.__data__=new si(s);this.size=u.size}function Zl(){this.__data__=new si,this.size=0}function Xg(s){var u=this.__data__,p=u.delete(s);return this.size=u.size,p}function Kc(s){return this.__data__.get(s)}function Th(s){return this.__data__.has(s)}function Kg(s,u){var p=this.__data__;if(p instanceof si){var v=p.__data__;if(!jo||v.length<l-1)return v.push([s,u]),this.size=++p.size,this;p=this.__data__=new _a(v)}return p.set(s,u),this.size=p.size,this}or.prototype.clear=Zl,or.prototype.delete=Xg,or.prototype.get=Kc,or.prototype.has=Th,or.prototype.set=Kg;function Ql(s,u){var p=rt(s),v=!p&&co(s),_=!p&&!v&&fo(s),O=!p&&!v&&!_&&ho(s),I=p||v||_||O,H=I?Hc(s.length,qg):[],Z=H.length;for(var pe in s)(u||Mt.call(s,pe))&&!(I&&(pe=="length"||_&&(pe=="offset"||pe=="parent")||O&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Wn(pe,Z)))&&H.push(pe);return H}function Oh(s){var u=s.length;return u?s[uf(0,u-1)]:r}function Wl(s,u){return $o(Ea(s),ui(u,0,s.length))}function Jg(s){return $o(Ea(s))}function Jc(s,u,p){(p!==r&&!Ga(s[u],p)||p===r&&!(u in s))&&Ua(s,u,p)}function sr(s,u,p){var v=s[u];(!(Mt.call(s,u)&&Ga(v,p))||p===r&&!(u in s))&&Ua(s,u,p)}function Ls(s,u){for(var p=s.length;p--;)if(Ga(s[p][0],u))return p;return-1}function Rh(s,u,p,v){return Or(s,function(_,O,I){u(v,_,p(_),I)}),v}function li(s,u){return s&&ha(u,Bn(u),s)}function Qi(s,u){return s&&ha(u,pa(u),s)}function Ua(s,u,p){u=="__proto__"&&rr?rr(s,u,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[u]=p}function Xl(s,u){for(var p=-1,v=u.length,_=ae(v),O=s==null;++p<v;)_[p]=O?r:nl(s,u[p]);return _}function ui(s,u,p){return s===s&&(p!==r&&(s=s<=p?s:p),u!==r&&(s=s>=u?s:u)),s}function aa(s,u,p,v,_,O){var I,H=u&S,Z=u&T,pe=u&N;if(p&&(I=_?p(s,v,_,O):p(s)),I!==r)return I;if(!tn(s))return s;var ye=rt(s);if(ye){if(I=Rf(s),!H)return Ea(s,I)}else{var Se=jn(s),ke=Se==Dt||Se==bn;if(fo(s))return c1(s,H);if(Se==On||Se==me||ke&&!_){if(I=Z||ke?{}:Df(s),!H)return Z?wf(s,Qi(I,s)):iu(s,li(I,s))}else{if(!It[Se])return _?s:{};I=y1(s,Se,H)}}O||(O=new or);var Fe=O.get(s);if(Fe)return Fe;O.set(s,I),$f(s)?s.forEach(function(et){I.add(aa(et,u,p,et,s,O))}):Up(s)&&s.forEach(function(et,At){I.set(At,aa(et,u,p,At,s,O))});var Je=pe?Z?Ef:kn:Z?pa:Bn,gt=ye?r:Je(s);return er(gt||s,function(et,At){gt&&(At=et,et=s[At]),sr(I,At,aa(et,u,p,At,s,O))}),I}function Kl(s){var u=Bn(s);return function(p){return Dh(p,s,u)}}function Dh(s,u,p){var v=p.length;if(s==null)return!v;for(s=jt(s);v--;){var _=p[v],O=u[_],I=s[_];if(I===r&&!(_ in s)||!O(I))return!1}return!0}function Mh(s,u,p){if(typeof s!="function")throw new La(h);return Vo(function(){s.apply(r,p)},u)}function jr(s,u,p,v){var _=-1,O=_s,I=!0,H=s.length,Z=[],pe=u.length;if(!H)return Z;p&&(u=an(u,Ia(p))),v?(O=fh,I=!1):u.length>=l&&(O=Cs,I=!1,u=new ja(u));e:for(;++_<H;){var ye=s[_],Se=p==null?ye:p(ye);if(ye=v||ye!==0?ye:0,I&&Se===Se){for(var ke=pe;ke--;)if(u[ke]===Se)continue e;Z.push(ye)}else O(u,Se,v)||Z.push(ye)}return Z}var Or=np(ca),kh=np(ci,!0);function Nh(s,u){var p=!0;return Or(s,function(v,_,O){return p=!!u(v,_,O),p}),p}function zs(s,u,p){for(var v=-1,_=s.length;++v<_;){var O=s[v],I=u(O);if(I!=null&&(H===r?I===I&&!Va(I):p(I,H)))var H=I,Z=O}return Z}function Wi(s,u,p,v){var _=s.length;for(p=ot(p),p<0&&(p=-p>_?0:_+p),v=v===r||v>_?_:ot(v),v<0&&(v+=_),v=p>v?0:Tu(v);p<v;)s[p++]=u;return s}function ut(s,u){var p=[];return Or(s,function(v,_,O){u(v,_,O)&&p.push(v)}),p}function it(s,u,p,v,_){var O=-1,I=s.length;for(p||(p=v1),_||(_=[]);++O<I;){var H=s[O];u>0&&p(H)?u>1?it(H,u-1,p,v,_):Fi(_,H):v||(_[_.length]=H)}return _}var pn=ap(),Jl=ap(!0);function ca(s,u){return s&&pn(s,u,Bn)}function ci(s,u){return s&&Jl(s,u,Bn)}function Ho(s,u){return qi(u,function(p){return bi(s[p])})}function Rr(s,u){u=Ur(u,s);for(var p=0,v=u.length;s!=null&&p<v;)s=s[Un(u[p++])];return p&&p==v?s:r}function Bo(s,u,p){var v=u(s);return rt(s)?v:Fi(v,p(s))}function fa(s){return s==null?s===r?Xa:Fn:ai&&ai in jt(s)?m1(s):to(s)}function un(s,u){return s>u}function Ih(s,u){return s!=null&&Mt.call(s,u)}function Lh(s,u){return s!=null&&u in jt(s)}function e1(s,u,p){return s>=hn(u,p)&&s<kt(u,p)}function ef(s,u,p){for(var v=p?fh:_s,_=s[0].length,O=s.length,I=O,H=ae(O),Z=1/0,pe=[];I--;){var ye=s[I];I&&u&&(ye=an(ye,Ia(u))),Z=hn(ye.length,Z),H[I]=!p&&(u||_>=120&&ye.length>=120)?new ja(I&&ye):r}ye=s[0];var Se=-1,ke=H[0];e:for(;++Se<_&&pe.length<Z;){var Fe=ye[Se],Je=u?u(Fe):Fe;if(Fe=p||Fe!==0?Fe:0,!(ke?Cs(ke,Je):v(pe,Je,p))){for(I=O;--I;){var gt=H[I];if(!(gt?Cs(gt,Je):v(s[I],Je,p)))continue e}ke&&ke.push(Je),pe.push(Fe)}}return pe}function Kb(s,u,p,v){return ca(s,function(_,O,I){u(v,p(_),O,I)}),v}function qo(s,u,p){u=Ur(u,s),s=pp(s,u);var v=s==null?s:s[Un(ra(u))];return v==null?r:Na(v,s,p)}function tf(s){return cn(s)&&fa(s)==me}function zh(s){return cn(s)&&fa(s)==Da}function Sa(s){return cn(s)&&fa(s)==qe}function rn(s,u,p,v,_){return s===u?!0:s==null||u==null||!cn(s)&&!cn(u)?s!==s&&u!==u:Ph(s,u,p,v,rn,_)}function Ph(s,u,p,v,_,O){var I=rt(s),H=rt(u),Z=I?Re:jn(s),pe=H?Re:jn(u);Z=Z==me?On:Z,pe=pe==me?On:pe;var ye=Z==On,Se=pe==On,ke=Z==pe;if(ke&&fo(s)){if(!fo(u))return!1;I=!0,ye=!1}if(ke&&!ye)return O||(O=new or),I||ho(s)?up(s,u,p,v,_,O):Jb(s,u,Z,p,v,_,O);if(!(p&j)){var Fe=ye&&Mt.call(s,"__wrapped__"),Je=Se&&Mt.call(u,"__wrapped__");if(Fe||Je){var gt=Fe?s.value():s,et=Je?u.value():u;return O||(O=new or),_(gt,et,p,v,O)}}return ke?(O||(O=new or),p1(s,u,p,v,_,O)):!1}function eu(s){return cn(s)&&jn(s)==Yt}function Ps(s,u,p,v){var _=p.length,O=_,I=!v;if(s==null)return!O;for(s=jt(s);_--;){var H=p[_];if(I&&H[2]?H[1]!==s[H[0]]:!(H[0]in s))return!1}for(;++_<O;){H=p[_];var Z=H[0],pe=s[Z],ye=H[1];if(I&&H[2]){if(pe===r&&!(Z in s))return!1}else{var Se=new or;if(v)var ke=v(pe,ye,Z,s,u,Se);if(!(ke===r?rn(ye,pe,j|M,v,Se):ke))return!1}}return!0}function nf(s){if(!tn(s)||x1(s))return!1;var u=bi(s)?Rs:zn;return u.test(Vt(s))}function fi(s){return cn(s)&&fa(s)==Ve}function af(s){return cn(s)&&jn(s)==Ue}function jh(s){return cn(s)&&Ks(s.length)&&!!Xt[fa(s)]}function rf(s){return typeof s=="function"?s:s==null?W:typeof s=="object"?rt(s)?Bh(s[0],s[1]):Hh(s):Nn(s)}function of(s){if(!gi(s))return ir(s);var u=[];for(var p in jt(s))Mt.call(s,p)&&p!="constructor"&&u.push(p);return u}function t1(s){if(!tn(s))return cu(s);var u=gi(s),p=[];for(var v in s)v=="constructor"&&(u||!Mt.call(s,v))||p.push(v);return p}function sf(s,u){return s<u}function Uh(s,u){var p=-1,v=Jn(s)?ae(s.length):[];return Or(s,function(_,O,I){v[++p]=u(_,O,I)}),v}function Hh(s){var u=uu(s);return u.length==1&&u[0][2]?w1(u[0][0],u[0][1]):function(p){return p===s||Ps(p,s,u)}}function Bh(s,u){return dp(s)&&on(u)?w1(Un(s),u):function(p){var v=nl(p,s);return v===r&&v===u?Du(p,s):rn(u,v,j|M)}}function js(s,u,p,v,_){s!==u&&pn(u,function(O,I){if(_||(_=new or),tn(O))n1(s,u,I,p,js,v,_);else{var H=v?v(cr(s,I),O,I+"",s,u,_):r;H===r&&(H=O),Jc(s,I,H)}},pa)}function n1(s,u,p,v,_,O,I){var H=cr(s,p),Z=cr(u,p),pe=I.get(Z);if(pe){Jc(s,p,pe);return}var ye=O?O(H,Z,p+"",s,u,I):r,Se=ye===r;if(Se){var ke=rt(Z),Fe=!ke&&fo(Z),Je=!ke&&!Fe&&ho(Z);ye=Z,ke||Fe||Je?rt(H)?ye=H:en(H)?ye=Ea(H):Fe?(Se=!1,ye=c1(Z,!0)):Je?(Se=!1,ye=Kh(Z,!0)):ye=[]:Cu(Z)||co(Z)?(ye=H,co(H)?ye=d0(H):(!tn(H)||bi(H))&&(ye=Df(Z))):Se=!1}Se&&(I.set(Z,ye),_(ye,Z,v,O,I),I.delete(Z)),Jc(s,p,ye)}function a1(s,u){var p=s.length;if(p)return u+=u<0?p:0,Wn(u,p)?s[u]:r}function qh(s,u,p){u.length?u=an(u,function(O){return rt(O)?function(I){return Rr(I,O.length===1?O[0]:O)}:O}):u=[W];var v=-1;u=an(u,Ia($e()));var _=Uh(s,function(O,I,H){var Z=an(u,function(pe){return pe(O)});return{criteria:Z,index:++v,value:O}});return Ig(_,function(O,I){return xf(O,I,p)})}function r1(s,u){return Fh(s,u,function(p,v){return Du(s,v)})}function Fh(s,u,p){for(var v=-1,_=u.length,O={};++v<_;){var I=u[v],H=Rr(s,I);p(H,I)&&Xi(O,Ur(I,s),H)}return O}function Yh(s){return function(u){return Rr(u,s)}}function lf(s,u,p,v){var _=v?Bb:Ss,O=-1,I=u.length,H=s;for(s===u&&(u=Ea(u)),p&&(H=an(s,Ia(p)));++O<I;)for(var Z=0,pe=u[O],ye=p?p(pe):pe;(Z=_(H,ye,Z,v))>-1;)H!==s&&ni.call(H,Z,1),ni.call(s,Z,1);return s}function Gh(s,u){for(var p=s?u.length:0,v=p-1;p--;){var _=u[p];if(p==v||_!==O){var O=_;Wn(_)?ni.call(s,_,1):hf(s,_)}}return s}function uf(s,u){return s+ks($i()*(u-s+1))}function i1(s,u,p,v){for(var _=-1,O=kt(Ms((u-s)/(p||1)),0),I=ae(O);O--;)I[v?O:++_]=s,s+=p;return I}function cf(s,u){var p="";if(!s||u<1||u>z)return p;do u%2&&(p+=s),u=ks(u/2),u&&(s+=s);while(u);return p}function dt(s,u){return kf(hp(s,u,W),s+"")}function o1(s){return Oh(al(s))}function Us(s,u){var p=al(s);return $o(p,ui(u,0,p.length))}function Xi(s,u,p,v){if(!tn(s))return s;u=Ur(u,s);for(var _=-1,O=u.length,I=O-1,H=s;H!=null&&++_<O;){var Z=Un(u[_]),pe=p;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return s;if(_!=I){var ye=H[Z];pe=v?v(ye,Z,H):r,pe===r&&(pe=tn(ye)?ye:Wn(u[_+1])?[]:{})}sr(H,Z,pe),H=H[Z]}return s}var Vh=za?function(s,u){return za.set(s,u),s}:W,ff=rr?function(s,u){return rr(s,"toString",{configurable:!0,enumerable:!1,value:L(u),writable:!0})}:W;function tu(s){return $o(al(s))}function Ha(s,u,p){var v=-1,_=s.length;u<0&&(u=-u>_?0:_+u),p=p>_?_:p,p<0&&(p+=_),_=u>p?0:p-u>>>0,u>>>=0;for(var O=ae(_);++v<_;)O[v]=s[v+u];return O}function s1(s,u){var p;return Or(s,function(v,_,O){return p=u(v,_,O),!p}),!!p}function nu(s,u,p){var v=0,_=s==null?v:s.length;if(typeof u=="number"&&u===u&&_<=ee){for(;v<_;){var O=v+_>>>1,I=s[O];I!==null&&!Va(I)&&(p?I<=u:I<u)?v=O+1:_=O}return _}return df(s,u,W,p)}function df(s,u,p,v){var _=0,O=s==null?0:s.length;if(O===0)return 0;u=p(u);for(var I=u!==u,H=u===null,Z=Va(u),pe=u===r;_<O;){var ye=ks((_+O)/2),Se=p(s[ye]),ke=Se!==r,Fe=Se===null,Je=Se===Se,gt=Va(Se);if(I)var et=v||Je;else pe?et=Je&&(v||ke):H?et=Je&&ke&&(v||!Fe):Z?et=Je&&ke&&!Fe&&(v||!gt):Fe||gt?et=!1:et=v?Se<=u:Se<u;et?_=ye+1:O=ye}return hn(O,$)}function $h(s,u){for(var p=-1,v=s.length,_=0,O=[];++p<v;){var I=s[p],H=u?u(I):I;if(!p||!Ga(H,Z)){var Z=H;O[_++]=I===0?0:I}}return O}function Zh(s){return typeof s=="number"?s:Va(s)?Oe:+s}function da(s){if(typeof s=="string")return s;if(rt(s))return an(s,da)+"";if(Va(s))return Zc?Zc.call(s):"";var u=s+"";return u=="0"&&1/s==-U?"-0":u}function di(s,u,p){var v=-1,_=_s,O=s.length,I=!0,H=[],Z=H;if(p)I=!1,_=fh;else if(O>=l){var pe=u?null:d1(s);if(pe)return Fc(pe);I=!1,_=Cs,Z=new ja}else Z=u?[]:H;e:for(;++v<O;){var ye=s[v],Se=u?u(ye):ye;if(ye=p||ye!==0?ye:0,I&&Se===Se){for(var ke=Z.length;ke--;)if(Z[ke]===Se)continue e;u&&Z.push(Se),H.push(ye)}else _(Z,Se,p)||(Z!==H&&Z.push(Se),H.push(ye))}return H}function hf(s,u){return u=Ur(u,s),s=pp(s,u),s==null||delete s[Un(ra(u))]}function pf(s,u,p,v){return Xi(s,u,p(Rr(s,u)),v)}function au(s,u,p,v){for(var _=s.length,O=v?_:-1;(v?O--:++O<_)&&u(s[O],O,s););return p?Ha(s,v?0:O,v?O+1:_):Ha(s,v?O+1:0,v?_:O)}function Qh(s,u){var p=s;return p instanceof pt&&(p=p.value()),Lc(u,function(v,_){return _.func.apply(_.thisArg,Fi([v],_.args))},p)}function Wh(s,u,p){var v=s.length;if(v<2)return v?di(s[0]):[];for(var _=-1,O=ae(v);++_<v;)for(var I=s[_],H=-1;++H<v;)H!=_&&(O[_]=jr(O[_]||I,s[H],u,p));return di(it(O,1),u,p)}function mf(s,u,p){for(var v=-1,_=s.length,O=u.length,I={};++v<_;){var H=v<O?u[v]:r;p(I,s[v],H)}return I}function gf(s){return en(s)?s:[]}function yf(s){return typeof s=="function"?s:W}function Ur(s,u){return rt(s)?s:dp(s,u)?[s]:gp(Et(s))}var l1=dt;function hi(s,u,p){var v=s.length;return p=p===r?v:p,!u&&p>=v?s:Ha(s,u,p)}var u1=Yg||function(s){return Dn.clearTimeout(s)};function c1(s,u){if(u)return s.slice();var p=s.length,v=Gc?Gc(p):new s.constructor(p);return s.copy(v),v}function vf(s){var u=new s.constructor(s.byteLength);return new zo(u).set(new zo(s)),u}function ru(s,u){var p=u?vf(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function Xh(s){var u=new s.constructor(s.source,Do.exec(s));return u.lastIndex=s.lastIndex,u}function bf(s){return oi?jt(oi.call(s)):{}}function Kh(s,u){var p=u?vf(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function Jh(s,u){if(s!==u){var p=s!==r,v=s===null,_=s===s,O=Va(s),I=u!==r,H=u===null,Z=u===u,pe=Va(u);if(!H&&!pe&&!O&&s>u||O&&I&&Z&&!H&&!pe||v&&I&&Z||!p&&Z||!_)return 1;if(!v&&!O&&!pe&&s<u||pe&&p&&_&&!v&&!O||H&&p&&_||!I&&_||!Z)return-1}return 0}function xf(s,u,p){for(var v=-1,_=s.criteria,O=u.criteria,I=_.length,H=p.length;++v<I;){var Z=Jh(_[v],O[v]);if(Z){if(v>=H)return Z;var pe=p[v];return Z*(pe=="desc"?-1:1)}}return s.index-u.index}function ep(s,u,p,v){for(var _=-1,O=s.length,I=p.length,H=-1,Z=u.length,pe=kt(O-I,0),ye=ae(Z+pe),Se=!v;++H<Z;)ye[H]=u[H];for(;++_<I;)(Se||_<O)&&(ye[p[_]]=s[_]);for(;pe--;)ye[H++]=s[_++];return ye}function tp(s,u,p,v){for(var _=-1,O=s.length,I=-1,H=p.length,Z=-1,pe=u.length,ye=kt(O-H,0),Se=ae(ye+pe),ke=!v;++_<ye;)Se[_]=s[_];for(var Fe=_;++Z<pe;)Se[Fe+Z]=u[Z];for(;++I<H;)(ke||_<O)&&(Se[Fe+p[I]]=s[_++]);return Se}function Ea(s,u){var p=-1,v=s.length;for(u||(u=ae(v));++p<v;)u[p]=s[p];return u}function ha(s,u,p,v){var _=!p;p||(p={});for(var O=-1,I=u.length;++O<I;){var H=u[O],Z=v?v(p[H],s[H],H,p,s):r;Z===r&&(Z=s[H]),_?Ua(p,H,Z):sr(p,H,Z)}return p}function iu(s,u){return ha(s,Cf(s),u)}function wf(s,u){return ha(s,Tf(s),u)}function Ki(s,u){return function(p,v){var _=rt(p)?Mg:Rh,O=u?u():{};return _(p,s,$e(v,2),O)}}function pi(s){return dt(function(u,p){var v=-1,_=p.length,O=_>1?p[_-1]:r,I=_>2?p[2]:r;for(O=s.length>3&&typeof O=="function"?(_--,O):r,I&&Xn(p[0],p[1],I)&&(O=_<3?r:O,_=1),u=jt(u);++v<_;){var H=p[v];H&&s(u,H,v,O)}return u})}function np(s,u){return function(p,v){if(p==null)return p;if(!Jn(p))return s(p,v);for(var _=p.length,O=u?_:-1,I=jt(p);(u?O--:++O<_)&&v(I[O],O,I)!==!1;);return p}}function ap(s){return function(u,p,v){for(var _=-1,O=jt(u),I=v(u),H=I.length;H--;){var Z=I[s?H:++_];if(p(O[Z],Z,O)===!1)break}return u}}function Hs(s,u,p){var v=u&D,_=Aa(s);function O(){var I=this&&this!==Dn&&this instanceof O?_:s;return I.apply(v?p:this,arguments)}return O}function rp(s){return function(u){u=Et(u);var p=Yi(u)?ua(u):r,v=p?p[0]:u.charAt(0),_=p?hi(p,1).join(""):u.slice(1);return v[s]()+_}}function Qn(s){return function(u){return Lc(c(td(u).replace(Sg,"")),s,"")}}function Aa(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var p=wa(s.prototype),v=s.apply(p,u);return tn(v)?v:p}}function Ji(s,u,p){var v=Aa(s);function _(){for(var O=arguments.length,I=ae(O),H=O,Z=Yo(_);H--;)I[H]=arguments[H];var pe=O<3&&I[0]!==Z&&I[O-1]!==Z?[]:Gi(I,Z);if(O-=pe.length,O<p)return su(s,u,lr,_.placeholder,r,I,pe,r,r,p-O);var ye=this&&this!==Dn&&this instanceof _?v:s;return Na(ye,this,I)}return _}function ip(s){return function(u,p,v){var _=jt(u);if(!Jn(u)){var O=$e(p,3);u=Bn(u),p=function(H){return O(_[H],H,_)}}var I=s(u,p,v);return I>-1?_[O?u[I]:I]:r}}function mi(s){return Kt(function(u){var p=u.length,v=p,_=_n.prototype.thru;for(s&&u.reverse();v--;){var O=u[v];if(typeof O!="function")throw new La(h);if(_&&!I&&lu(O)=="wrapper")var I=new _n([],!0)}for(v=I?v:p;++v<p;){O=u[v];var H=lu(O),Z=H=="wrapper"?Af(O):r;Z&&Dr(Z[0])&&Z[1]==(fe|re|ne|ie)&&!Z[4].length&&Z[9]==1?I=I[lu(Z[0])].apply(I,Z[3]):I=O.length==1&&Dr(O)?I[H]():I.thru(O)}return function(){var pe=arguments,ye=pe[0];if(I&&pe.length==1&&rt(ye))return I.plant(ye).value();for(var Se=0,ke=p?u[Se].apply(this,pe):ye;++Se<p;)ke=u[Se].call(this,ke);return ke}})}function lr(s,u,p,v,_,O,I,H,Z,pe){var ye=u&fe,Se=u&D,ke=u&B,Fe=u&(re|Y),Je=u&we,gt=ke?r:Aa(s);function et(){for(var At=arguments.length,Tt=ae(At),kr=At;kr--;)Tt[kr]=arguments[kr];if(Fe)var $a=Yo(et),Nr=Ll(Tt,$a);if(v&&(Tt=ep(Tt,v,_,Fe)),O&&(Tt=tp(Tt,O,I,Fe)),At-=Nr,Fe&&At<pe){var In=Gi(Tt,$a);return su(s,u,lr,et.placeholder,p,Tt,In,H,Z,pe-At)}var xi=Se?p:this,Xo=ke?xi[s]:s;return At=Tt.length,H?Tt=fu(Tt,H):Je&&At>1&&Tt.reverse(),ye&&Z<At&&(Tt.length=Z),this&&this!==Dn&&this instanceof et&&(Xo=gt||Aa(Xo)),Xo.apply(xi,Tt)}return et}function Sn(s,u){return function(p,v){return Kb(p,s,u(v),{})}}function Fo(s,u){return function(p,v){var _;if(p===r&&v===r)return u;if(p!==r&&(_=p),v!==r){if(_===r)return v;typeof p=="string"||typeof v=="string"?(p=da(p),v=da(v)):(p=Zh(p),v=Zh(v)),_=s(p,v)}return _}}function ou(s){return Kt(function(u){return u=an(u,Ia($e())),dt(function(p){var v=this;return s(u,function(_){return Na(_,v,p)})})})}function Bs(s,u){u=u===r?" ":da(u);var p=u.length;if(p<2)return p?cf(u,s):u;var v=cf(u,Ms(s/Pn(u)));return Yi(u)?hi(ua(v),0,s).join(""):v.slice(0,s)}function f1(s,u,p,v){var _=u&D,O=Aa(s);function I(){for(var H=-1,Z=arguments.length,pe=-1,ye=v.length,Se=ae(ye+Z),ke=this&&this!==Dn&&this instanceof I?O:s;++pe<ye;)Se[pe]=v[pe];for(;Z--;)Se[pe++]=arguments[++H];return Na(ke,_?p:this,Se)}return I}function op(s){return function(u,p,v){return v&&typeof v!="number"&&Xn(u,p,v)&&(p=v=r),u=En(u),p===r?(p=u,u=0):p=En(p),v=v===r?u<p?1:-1:En(v),i1(u,p,v,s)}}function Hr(s){return function(u,p){return typeof u=="string"&&typeof p=="string"||(u=An(u),p=An(p)),s(u,p)}}function su(s,u,p,v,_,O,I,H,Z,pe){var ye=u&re,Se=ye?I:r,ke=ye?r:I,Fe=ye?O:r,Je=ye?r:O;u|=ye?ne:se,u&=~(ye?se:ne),u&F||(u&=-4);var gt=[s,u,_,Fe,Se,Je,ke,H,Z,pe],et=p.apply(r,gt);return Dr(s)&&mp(et,gt),et.placeholder=v,Nf(et,s,u)}function _f(s){var u=xn[s];return function(p,v){if(p=An(p),v=v==null?0:hn(ot(v),292),v&&Hl(p)){var _=(Et(p)+"e").split("e"),O=u(_[0]+"e"+(+_[1]+v));return _=(Et(O)+"e").split("e"),+(_[0]+"e"+(+_[1]-v))}return u(p)}}var d1=Gt&&1/Fc(new Gt([,-0]))[1]==U?function(s){return new Gt(s)}:de;function sp(s){return function(u){var p=jn(u);return p==Yt?qc(u):p==Ue?Fb(u):As(u,s(u))}}function ur(s,u,p,v,_,O,I,H){var Z=u&B;if(!Z&&typeof s!="function")throw new La(h);var pe=v?v.length:0;if(pe||(u&=-97,v=_=r),I=I===r?I:kt(ot(I),0),H=H===r?H:ot(H),pe-=_?_.length:0,u&se){var ye=v,Se=_;v=_=r}var ke=Z?r:Af(s),Fe=[s,u,p,v,_,ye,Se,O,I,H];if(ke&&_1(Fe,ke),s=Fe[0],u=Fe[1],p=Fe[2],v=Fe[3],_=Fe[4],H=Fe[9]=Fe[9]===r?Z?0:s.length:kt(Fe[9]-pe,0),!H&&u&(re|Y)&&(u&=-25),!u||u==D)var Je=Hs(s,u,p);else u==re||u==Y?Je=Ji(s,u,H):(u==ne||u==(D|ne))&&!_.length?Je=f1(s,u,p,v):Je=lr.apply(r,Fe);var gt=ke?Vh:mp;return Nf(gt(Je,Fe),s,u)}function lp(s,u,p,v){return s===r||Ga(s,Os[p])&&!Mt.call(v,p)?u:s}function Sf(s,u,p,v,_,O){return tn(s)&&tn(u)&&(O.set(u,s),js(s,u,r,Sf,O),O.delete(u)),s}function h1(s){return Cu(s)?r:s}function up(s,u,p,v,_,O){var I=p&j,H=s.length,Z=u.length;if(H!=Z&&!(I&&Z>H))return!1;var pe=O.get(s),ye=O.get(u);if(pe&&ye)return pe==u&&ye==s;var Se=-1,ke=!0,Fe=p&M?new ja:r;for(O.set(s,u),O.set(u,s);++Se<H;){var Je=s[Se],gt=u[Se];if(v)var et=I?v(gt,Je,Se,u,s,O):v(Je,gt,Se,s,u,O);if(et!==r){if(et)continue;ke=!1;break}if(Fe){if(!dh(u,function(At,Tt){if(!Cs(Fe,Tt)&&(Je===At||_(Je,At,p,v,O)))return Fe.push(Tt)})){ke=!1;break}}else if(!(Je===gt||_(Je,gt,p,v,O))){ke=!1;break}}return O.delete(s),O.delete(u),ke}function Jb(s,u,p,v,_,O,I){switch(p){case Qt:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case Da:return!(s.byteLength!=u.byteLength||!O(new zo(s),new zo(u)));case Be:case qe:case sa:return Ga(+s,+u);case at:return s.name==u.name&&s.message==u.message;case Ve:case Yn:return s==u+"";case Yt:var H=qc;case Ue:var Z=v&j;if(H||(H=Fc),s.size!=u.size&&!Z)return!1;var pe=I.get(s);if(pe)return pe==u;v|=M,I.set(s,u);var ye=up(H(s),H(u),v,_,O,I);return I.delete(s),ye;case la:if(oi)return oi.call(s)==oi.call(u)}return!1}function p1(s,u,p,v,_,O){var I=p&j,H=kn(s),Z=H.length,pe=kn(u),ye=pe.length;if(Z!=ye&&!I)return!1;for(var Se=Z;Se--;){var ke=H[Se];if(!(I?ke in u:Mt.call(u,ke)))return!1}var Fe=O.get(s),Je=O.get(u);if(Fe&&Je)return Fe==u&&Je==s;var gt=!0;O.set(s,u),O.set(u,s);for(var et=I;++Se<Z;){ke=H[Se];var At=s[ke],Tt=u[ke];if(v)var kr=I?v(Tt,At,ke,u,s,O):v(At,Tt,ke,s,u,O);if(!(kr===r?At===Tt||_(At,Tt,p,v,O):kr)){gt=!1;break}et||(et=ke=="constructor")}if(gt&&!et){var $a=s.constructor,Nr=u.constructor;$a!=Nr&&"constructor"in s&&"constructor"in u&&!(typeof $a=="function"&&$a instanceof $a&&typeof Nr=="function"&&Nr instanceof Nr)&&(gt=!1)}return O.delete(s),O.delete(u),gt}function Kt(s){return kf(hp(s,r,xp),s+"")}function kn(s){return Bo(s,Bn,Cf)}function Ef(s){return Bo(s,pa,Tf)}var Af=za?function(s){return za.get(s)}:de;function lu(s){for(var u=s.name+"",p=Zi[u],v=Mt.call(Zi,u)?p.length:0;v--;){var _=p[v],O=_.func;if(O==null||O==s)return _.name}return u}function Yo(s){var u=Mt.call(E,"placeholder")?E:s;return u.placeholder}function $e(){var s=E.iteratee||te;return s=s===te?rf:s,arguments.length?s(arguments[0],arguments[1]):s}function Go(s,u){var p=s.__data__;return b1(u)?p[typeof u=="string"?"string":"hash"]:p.map}function uu(s){for(var u=Bn(s),p=u.length;p--;){var v=u[p],_=s[v];u[p]=[v,_,on(_)]}return u}function eo(s,u){var p=Pg(s,u);return nf(p)?p:r}function m1(s){var u=Mt.call(s,ai),p=s[ai];try{s[ai]=r;var v=!0}catch{}var _=jl.call(s);return v&&(u?s[ai]=p:delete s[ai]),_}var Cf=Vi?function(s){return s==null?[]:(s=jt(s),qi(Vi(s),function(u){return Ul.call(s,u)}))}:kx,Tf=Vi?function(s){for(var u=[];s;)Fi(u,Cf(s)),s=ti(s);return u}:kx,jn=fa;(Bl&&jn(new Bl(new ArrayBuffer(1)))!=Qt||jo&&jn(new jo)!=Yt||Zn&&jn(Zn.resolve())!=dn||Gt&&jn(new Gt)!=Ue||St&&jn(new St)!=ta)&&(jn=function(s){var u=fa(s),p=u==On?s.constructor:r,v=p?Vt(p):"";if(v)switch(v){case Uo:return Qt;case Vg:return Yt;case $g:return dn;case ql:return Ue;case Fl:return ta}return u});function cp(s,u,p){for(var v=-1,_=p.length;++v<_;){var O=p[v],I=O.size;switch(O.type){case"drop":s+=I;break;case"dropRight":u-=I;break;case"take":u=hn(u,s+I);break;case"takeRight":s=kt(s,u-I);break}}return{start:s,end:u}}function g1(s){var u=s.match(Db);return u?u[1].split(Mb):[]}function Of(s,u,p){u=Ur(u,s);for(var v=-1,_=u.length,O=!1;++v<_;){var I=Un(u[v]);if(!(O=s!=null&&p(s,I)))break;s=s[I]}return O||++v!=_?O:(_=s==null?0:s.length,!!_&&Ks(_)&&Wn(I,_)&&(rt(s)||co(s)))}function Rf(s){var u=s.length,p=new s.constructor(u);return u&&typeof s[0]=="string"&&Mt.call(s,"index")&&(p.index=s.index,p.input=s.input),p}function Df(s){return typeof s.constructor=="function"&&!gi(s)?wa(ti(s)):{}}function y1(s,u,p){var v=s.constructor;switch(u){case Da:return vf(s);case Be:case qe:return new v(+s);case Qt:return ru(s,p);case ba:case Gn:case bl:case xl:case wl:case zi:case Pi:case wr:case ji:return Kh(s,p);case Yt:return new v;case sa:case Yn:return new v(s);case Ve:return Xh(s);case Ue:return new v;case la:return bf(s)}}function fp(s,u){var p=u.length;if(!p)return s;var v=p-1;return u[v]=(p>1?"& ":"")+u[v],u=u.join(p>2?", ":" "),s.replace(ys,`{
|
|
626
|
-
/* [wrapped with `+
|
|
627
|
-
`)}function v1(s){return rt(s)||co(s)||!!(Fg&&s&&s[Fg])}function Wn(s,u){var p=typeof s;return u=u??z,!!u&&(p=="number"||p!="symbol"&&pg.test(s))&&s>-1&&s%1==0&&s<u}function Xn(s,u,p){if(!tn(p))return!1;var v=typeof u;return(v=="number"?Jn(p)&&Wn(u,p.length):v=="string"&&u in p)?Ga(p[u],s):!1}function dp(s,u){if(rt(s))return!1;var p=typeof s;return p=="number"||p=="symbol"||p=="boolean"||s==null||Va(s)?!0:Sl.test(s)||!_l.test(s)||u!=null&&s in jt(u)}function b1(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function Dr(s){var u=lu(s),p=E[u];if(typeof p!="function"||!(u in pt.prototype))return!1;if(s===p)return!0;var v=Af(p);return!!v&&s===v[0]}function x1(s){return!!tr&&tr in s}var Mf=Yc?bi:Nx;function gi(s){var u=s&&s.constructor,p=typeof u=="function"&&u.prototype||Os;return s===p}function on(s){return s===s&&!tn(s)}function w1(s,u){return function(p){return p==null?!1:p[s]===u&&(u!==r||s in jt(p))}}function ex(s){var u=qf(s,function(v){return p.size===b&&p.clear(),v}),p=u.cache;return u}function _1(s,u){var p=s[1],v=u[1],_=p|v,O=_<(D|B|fe),I=v==fe&&p==re||v==fe&&p==ie&&s[7].length<=u[8]||v==(fe|ie)&&u[7].length<=u[8]&&p==re;if(!(O||I))return s;v&D&&(s[2]=u[2],_|=p&D?0:F);var H=u[3];if(H){var Z=s[3];s[3]=Z?ep(Z,H,u[4]):H,s[4]=Z?Gi(s[3],x):u[4]}return H=u[5],H&&(Z=s[5],s[5]=Z?tp(Z,H,u[6]):H,s[6]=Z?Gi(s[5],x):u[6]),H=u[7],H&&(s[7]=H),v&fe&&(s[8]=s[8]==null?u[8]:hn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=_,s}function cu(s){var u=[];if(s!=null)for(var p in jt(s))u.push(p);return u}function to(s){return jl.call(s)}function hp(s,u,p){return u=kt(u===r?s.length-1:u,0),function(){for(var v=arguments,_=-1,O=kt(v.length-u,0),I=ae(O);++_<O;)I[_]=v[u+_];_=-1;for(var H=ae(u+1);++_<u;)H[_]=v[_];return H[u]=p(I),Na(s,this,H)}}function pp(s,u){return u.length<2?s:Rr(s,Ha(u,0,-1))}function fu(s,u){for(var p=s.length,v=hn(u.length,p),_=Ea(s);v--;){var O=u[v];s[v]=Wn(O,p)?_[O]:r}return s}function cr(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var mp=If(Vh),Vo=Po||function(s,u){return Dn.setTimeout(s,u)},kf=If(ff);function Nf(s,u,p){var v=u+"";return kf(s,fp(v,yp(g1(v),p)))}function If(s){var u=0,p=0;return function(){var v=ri(),_=le-(v-p);if(p=v,_>0){if(++u>=_e)return arguments[0]}else u=0;return s.apply(r,arguments)}}function $o(s,u){var p=-1,v=s.length,_=v-1;for(u=u===r?v:u;++p<u;){var O=uf(p,_),I=s[O];s[O]=s[p],s[p]=I}return s.length=u,s}var gp=ex(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(_c,function(p,v,_,O){u.push(_?O.replace(Xd,"$1"):v||p)}),u});function Un(s){if(typeof s=="string"||Va(s))return s;var u=s+"";return u=="0"&&1/s==-U?"-0":u}function Vt(s){if(s!=null){try{return Pl.call(s)}catch{}try{return s+""}catch{}}return""}function yp(s,u){return er(K,function(p){var v="_."+p[0];u&p[1]&&!_s(s,v)&&s.push(v)}),s.sort()}function vp(s){if(s instanceof pt)return s.clone();var u=new _n(s.__wrapped__,s.__chain__);return u.__actions__=Ea(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function Hn(s,u,p){(p?Xn(s,u,p):u===r)?u=1:u=kt(ot(u),0);var v=s==null?0:s.length;if(!v||u<1)return[];for(var _=0,O=0,I=ae(Ms(v/u));_<v;)I[O++]=Ha(s,_,_+=u);return I}function tx(s){for(var u=-1,p=s==null?0:s.length,v=0,_=[];++u<p;){var O=s[u];O&&(_[v++]=O)}return _}function S1(){var s=arguments.length;if(!s)return[];for(var u=ae(s-1),p=arguments[0],v=s;v--;)u[v-1]=arguments[v];return Fi(rt(p)?Ea(p):[p],it(u,1))}var E1=dt(function(s,u){return en(s)?jr(s,it(u,1,en,!0)):[]}),sn=dt(function(s,u){var p=ra(u);return en(p)&&(p=r),en(s)?jr(s,it(u,1,en,!0),$e(p,2)):[]}),Ca=dt(function(s,u){var p=ra(u);return en(p)&&(p=r),en(s)?jr(s,it(u,1,en,!0),r,p):[]});function yi(s,u,p){var v=s==null?0:s.length;return v?(u=p||u===r?1:ot(u),Ha(s,u<0?0:u,v)):[]}function A1(s,u,p){var v=s==null?0:s.length;return v?(u=p||u===r?1:ot(u),u=v-u,Ha(s,0,u<0?0:u)):[]}function C1(s,u){return s&&s.length?au(s,$e(u,3),!0,!0):[]}function nx(s,u){return s&&s.length?au(s,$e(u,3),!0):[]}function bp(s,u,p,v){var _=s==null?0:s.length;return _?(p&&typeof p!="number"&&Xn(s,u,p)&&(p=0,v=_),Wi(s,u,p,v)):[]}function Ta(s,u,p){var v=s==null?0:s.length;if(!v)return-1;var _=p==null?0:ot(p);return _<0&&(_=kt(v+_,0)),zc(s,$e(u,3),_)}function fr(s,u,p){var v=s==null?0:s.length;if(!v)return-1;var _=v-1;return p!==r&&(_=ot(p),_=p<0?kt(v+_,0):hn(_,v-1)),zc(s,$e(u,3),_,!0)}function xp(s){var u=s==null?0:s.length;return u?it(s,1):[]}function Ba(s){var u=s==null?0:s.length;return u?it(s,U):[]}function T1(s,u){var p=s==null?0:s.length;return p?(u=u===r?1:ot(u),it(s,u)):[]}function no(s){for(var u=-1,p=s==null?0:s.length,v={};++u<p;){var _=s[u];v[_[0]]=_[1]}return v}function ao(s){return s&&s.length?s[0]:r}function ro(s,u,p){var v=s==null?0:s.length;if(!v)return-1;var _=p==null?0:ot(p);return _<0&&(_=kt(v+_,0)),Ss(s,u,_)}function wp(s){var u=s==null?0:s.length;return u?Ha(s,0,-1):[]}var _p=dt(function(s){var u=an(s,gf);return u.length&&u[0]===s[0]?ef(u):[]}),Br=dt(function(s){var u=ra(s),p=an(s,gf);return u===ra(p)?u=r:p.pop(),p.length&&p[0]===s[0]?ef(p,$e(u,2)):[]}),O1=dt(function(s){var u=ra(s),p=an(s,gf);return u=typeof u=="function"?u:r,u&&p.pop(),p.length&&p[0]===s[0]?ef(p,r,u):[]});function qs(s,u){return s==null?"":$c.call(s,u)}function ra(s){var u=s==null?0:s.length;return u?s[u-1]:r}function du(s,u,p){var v=s==null?0:s.length;if(!v)return-1;var _=v;return p!==r&&(_=ot(p),_=_<0?kt(v+_,0):hn(_,v-1)),u===u?Gb(s,u,_):zc(s,Pc,_,!0)}function Fs(s,u){return s&&s.length?a1(s,ot(u)):r}var R1=dt(Sp);function Sp(s,u){return s&&s.length&&u&&u.length?lf(s,u):s}function hu(s,u,p){return s&&s.length&&u&&u.length?lf(s,u,$e(p,2)):s}function D1(s,u,p){return s&&s.length&&u&&u.length?lf(s,u,r,p):s}var Lf=Kt(function(s,u){var p=s==null?0:s.length,v=Xl(s,u);return Gh(s,an(u,function(_){return Wn(_,p)?+_:_}).sort(Jh)),v});function M1(s,u){var p=[];if(!(s&&s.length))return p;var v=-1,_=[],O=s.length;for(u=$e(u,3);++v<O;){var I=s[v];u(I,v,s)&&(p.push(I),_.push(v))}return Gh(s,_),p}function Ep(s){return s==null?s:Gg.call(s)}function ax(s,u,p){var v=s==null?0:s.length;return v?(p&&typeof p!="number"&&Xn(s,u,p)?(u=0,p=v):(u=u==null?0:ot(u),p=p===r?v:ot(p)),Ha(s,u,p)):[]}function Lt(s,u){return nu(s,u)}function Jt(s,u,p){return df(s,u,$e(p,2))}function xt(s,u){var p=s==null?0:s.length;if(p){var v=nu(s,u);if(v<p&&Ga(s[v],u))return v}return-1}function Ct(s,u){return nu(s,u,!0)}function zt(s,u,p){return df(s,u,$e(p,2),!0)}function qa(s,u){var p=s==null?0:s.length;if(p){var v=nu(s,u,!0)-1;if(Ga(s[v],u))return v}return-1}function io(s){return s&&s.length?$h(s):[]}function Ys(s,u){return s&&s.length?$h(s,$e(u,2)):[]}function Ap(s){var u=s==null?0:s.length;return u?Ha(s,1,u):[]}function vi(s,u,p){return s&&s.length?(u=p||u===r?1:ot(u),Ha(s,0,u<0?0:u)):[]}function mn(s,u,p){var v=s==null?0:s.length;return v?(u=p||u===r?1:ot(u),u=v-u,Ha(s,u<0?0:u,v)):[]}function oo(s,u){return s&&s.length?au(s,$e(u,3),!1,!0):[]}function Zo(s,u){return s&&s.length?au(s,$e(u,3)):[]}var Cp=dt(function(s){return di(it(s,1,en,!0))}),dr=dt(function(s){var u=ra(s);return en(u)&&(u=r),di(it(s,1,en,!0),$e(u,2))}),Gs=dt(function(s){var u=ra(s);return u=typeof u=="function"?u:r,di(it(s,1,en,!0),r,u)});function pu(s){return s&&s.length?di(s):[]}function Oa(s,u){return s&&s.length?di(s,$e(u,2)):[]}function Tp(s,u){return u=typeof u=="function"?u:r,s&&s.length?di(s,r,u):[]}function mu(s){if(!(s&&s.length))return[];var u=0;return s=qi(s,function(p){if(en(p))return u=kt(p.length,u),!0}),Hc(u,function(p){return an(s,hh(p))})}function gu(s,u){if(!(s&&s.length))return[];var p=mu(s);return u==null?p:an(p,function(v){return Na(u,r,v)})}var zf=dt(function(s,u){return en(s)?jr(s,u):[]}),so=dt(function(s){return Wh(qi(s,en))}),Kn=dt(function(s){var u=ra(s);return en(u)&&(u=r),Wh(qi(s,en),$e(u,2))}),lo=dt(function(s){var u=ra(s);return u=typeof u=="function"?u:r,Wh(qi(s,en),r,u)}),Vs=dt(mu);function $s(s,u){return mf(s||[],u||[],sr)}function Op(s,u){return mf(s||[],u||[],Xi)}var Rp=dt(function(s){var u=s.length,p=u>1?s[u-1]:r;return p=typeof p=="function"?(s.pop(),p):r,gu(s,p)});function Dp(s){var u=E(s);return u.__chain__=!0,u}function yu(s,u){return u(s),s}function Zs(s,u){return u(s)}var Fa=Kt(function(s){var u=s.length,p=u?s[0]:0,v=this.__wrapped__,_=function(O){return Xl(O,s)};return u>1||this.__actions__.length||!(v instanceof pt)||!Wn(p)?this.thru(_):(v=v.slice(p,+p+(u?1:0)),v.__actions__.push({func:Zs,args:[_],thisArg:r}),new _n(v,this.__chain__).thru(function(O){return u&&!O.length&&O.push(r),O}))});function k1(){return Dp(this)}function Ya(){return new _n(this.value(),this.__chain__)}function N1(){this.__values__===r&&(this.__values__=Js(this.value()));var s=this.__index__>=this.__values__.length,u=s?r:this.__values__[this.__index__++];return{done:s,value:u}}function I1(){return this}function rx(s){for(var u,p=this;p instanceof Tr;){var v=vp(p);v.__index__=0,v.__values__=r,u?_.__wrapped__=v:u=v;var _=v;p=p.__wrapped__}return _.__wrapped__=s,u}function uo(){var s=this.__wrapped__;if(s instanceof pt){var u=s;return this.__actions__.length&&(u=new pt(this)),u=u.reverse(),u.__actions__.push({func:Zs,args:[Ep],thisArg:r}),new _n(u,this.__chain__)}return this.thru(Ep)}function Pf(){return Qh(this.__wrapped__,this.__actions__)}var Mp=Ki(function(s,u,p){Mt.call(s,p)?++s[p]:Ua(s,p,1)});function Qs(s,u,p){var v=rt(s)?kg:Nh;return p&&Xn(s,u,p)&&(u=r),v(s,$e(u,3))}function L1(s,u){var p=rt(s)?qi:ut;return p(s,$e(u,3))}var z1=ip(Ta),P1=ip(fr);function kp(s,u){return it(vu(s,u),1)}function Np(s,u){return it(vu(s,u),U)}function ix(s,u,p){return p=p===r?1:ot(p),it(vu(s,u),p)}function j1(s,u){var p=rt(s)?er:Or;return p(s,$e(u,3))}function U1(s,u){var p=rt(s)?zb:kh;return p(s,$e(u,3))}var H1=Ki(function(s,u,p){Mt.call(s,p)?s[p].push(u):Ua(s,p,[u])});function B1(s,u,p,v){s=Jn(s)?s:al(s),p=p&&!v?ot(p):0;var _=s.length;return p<0&&(p=kt(_+p,0)),Zf(s)?p<=_&&s.indexOf(u,p)>-1:!!_&&Ss(s,u,p)>-1}var Ws=dt(function(s,u,p){var v=-1,_=typeof u=="function",O=Jn(s)?ae(s.length):[];return Or(s,function(I){O[++v]=_?Na(u,I,p):qo(I,u,p)}),O}),jf=Ki(function(s,u,p){Ua(s,p,u)});function vu(s,u){var p=rt(s)?an:Uh;return p(s,$e(u,3))}function q1(s,u,p,v){return s==null?[]:(rt(u)||(u=u==null?[]:[u]),p=v?r:p,rt(p)||(p=p==null?[]:[p]),qh(s,u,p))}var F1=Ki(function(s,u,p){s[p?0:1].push(u)},function(){return[[],[]]});function Y1(s,u,p){var v=rt(s)?Lc:ph,_=arguments.length<3;return v(s,$e(u,4),p,_,Or)}function G1(s,u,p){var v=rt(s)?Pb:ph,_=arguments.length<3;return v(s,$e(u,4),p,_,kh)}function V1(s,u){var p=rt(s)?qi:ut;return p(s,_u($e(u,3)))}function Uf(s){var u=rt(s)?Oh:o1;return u(s)}function $1(s,u,p){(p?Xn(s,u,p):u===r)?u=1:u=ot(u);var v=rt(s)?Wl:Us;return v(s,u)}function Z1(s){var u=rt(s)?Jg:tu;return u(s)}function $t(s){if(s==null)return 0;if(Jn(s))return Zf(s)?Pn(s):s.length;var u=jn(s);return u==Yt||u==Ue?s.size:of(s).length}function Ip(s,u,p){var v=rt(s)?dh:s1;return p&&Xn(s,u,p)&&(u=r),v(s,$e(u,3))}var ox=dt(function(s,u){if(s==null)return[];var p=u.length;return p>1&&Xn(s,u[0],u[1])?u=[]:p>2&&Xn(u[0],u[1],u[2])&&(u=[u[0]]),qh(s,it(u,1),[])}),bu=Vc||function(){return Dn.Date.now()};function sx(s,u){if(typeof u!="function")throw new La(h);return s=ot(s),function(){if(--s<1)return u.apply(this,arguments)}}function Q1(s,u,p){return u=p?r:u,u=s&&u==null?s.length:u,ur(s,fe,r,r,r,r,u)}function W1(s,u){var p;if(typeof u!="function")throw new La(h);return s=ot(s),function(){return--s>0&&(p=u.apply(this,arguments)),s<=1&&(u=r),p}}var Xs=dt(function(s,u,p){var v=D;if(p.length){var _=Gi(p,Yo(Xs));v|=ne}return ur(s,v,u,p,_)}),Qo=dt(function(s,u,p){var v=D|B;if(p.length){var _=Gi(p,Yo(Qo));v|=ne}return ur(u,v,s,p,_)});function Hf(s,u,p){u=p?r:u;var v=ur(s,re,r,r,r,r,r,u);return v.placeholder=Hf.placeholder,v}function xu(s,u,p){u=p?r:u;var v=ur(s,Y,r,r,r,r,r,u);return v.placeholder=xu.placeholder,v}function Bf(s,u,p){var v,_,O,I,H,Z,pe=0,ye=!1,Se=!1,ke=!0;if(typeof s!="function")throw new La(h);u=An(u)||0,tn(p)&&(ye=!!p.leading,Se="maxWait"in p,O=Se?kt(An(p.maxWait)||0,u):O,ke="trailing"in p?!!p.trailing:ke);function Fe(In){var xi=v,Xo=_;return v=_=r,pe=In,I=s.apply(Xo,xi),I}function Je(In){return pe=In,H=Vo(At,u),ye?Fe(In):I}function gt(In){var xi=In-Z,Xo=In-pe,EC=u-xi;return Se?hn(EC,O-Xo):EC}function et(In){var xi=In-Z,Xo=In-pe;return Z===r||xi>=u||xi<0||Se&&Xo>=O}function At(){var In=bu();if(et(In))return Tt(In);H=Vo(At,gt(In))}function Tt(In){return H=r,ke&&v?Fe(In):(v=_=r,I)}function kr(){H!==r&&u1(H),pe=0,v=Z=_=H=r}function $a(){return H===r?I:Tt(bu())}function Nr(){var In=bu(),xi=et(In);if(v=arguments,_=this,Z=In,xi){if(H===r)return Je(Z);if(Se)return u1(H),H=Vo(At,u),Fe(Z)}return H===r&&(H=Vo(At,u)),I}return Nr.cancel=kr,Nr.flush=$a,Nr}var Wo=dt(function(s,u){return Mh(s,1,u)}),qr=dt(function(s,u,p){return Mh(s,An(u)||0,p)});function wu(s){return ur(s,we)}function qf(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new La(h);var p=function(){var v=arguments,_=u?u.apply(this,v):v[0],O=p.cache;if(O.has(_))return O.get(_);var I=s.apply(this,v);return p.cache=O.set(_,I)||O,I};return p.cache=new(qf.Cache||_a),p}qf.Cache=_a;function _u(s){if(typeof s!="function")throw new La(h);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function X1(s){return W1(2,s)}var K1=l1(function(s,u){u=u.length==1&&rt(u[0])?an(u[0],Ia($e())):an(it(u,1),Ia($e()));var p=u.length;return dt(function(v){for(var _=-1,O=hn(v.length,p);++_<O;)v[_]=u[_].call(this,v[_]);return Na(s,this,v)})}),Ff=dt(function(s,u){var p=Gi(u,Yo(Ff));return ur(s,ne,r,u,p)}),J1=dt(function(s,u){var p=Gi(u,Yo(J1));return ur(s,se,r,u,p)}),Lp=Kt(function(s,u){return ur(s,ie,r,r,r,u)});function e0(s,u){if(typeof s!="function")throw new La(h);return u=u===r?u:ot(u),dt(s,u)}function t0(s,u){if(typeof s!="function")throw new La(h);return u=u==null?0:kt(ot(u),0),dt(function(p){var v=p[u],_=hi(p,0,u);return v&&Fi(_,v),Na(s,this,_)})}function lx(s,u,p){var v=!0,_=!0;if(typeof s!="function")throw new La(h);return tn(p)&&(v="leading"in p?!!p.leading:v,_="trailing"in p?!!p.trailing:_),Bf(s,u,{leading:v,maxWait:u,trailing:_})}function zp(s){return Q1(s,1)}function Pp(s,u){return Ff(yf(u),s)}function ux(){if(!arguments.length)return[];var s=arguments[0];return rt(s)?s:[s]}function cx(s){return aa(s,N)}function Su(s,u){return u=typeof u=="function"?u:r,aa(s,N,u)}function fx(s){return aa(s,S|N)}function n0(s,u){return u=typeof u=="function"?u:r,aa(s,S|N,u)}function wt(s,u){return u==null||Dh(s,u,Bn(u))}function Ga(s,u){return s===u||s!==s&&u!==u}var Yf=Hr(un),jp=Hr(function(s,u){return s>=u}),co=tf((function(){return arguments})())?tf:function(s){return cn(s)&&Mt.call(s,"callee")&&!Ul.call(s,"callee")},rt=ae.isArray,Eu=Cg?Ia(Cg):zh;function Jn(s){return s!=null&&Ks(s.length)&&!bi(s)}function en(s){return cn(s)&&Jn(s)}function a0(s){return s===!0||s===!1||cn(s)&&fa(s)==Be}var fo=Ns||Nx,dx=Ic?Ia(Ic):Sa;function r0(s){return cn(s)&&s.nodeType===1&&!Cu(s)}function i0(s){if(s==null)return!0;if(Jn(s)&&(rt(s)||typeof s=="string"||typeof s.splice=="function"||fo(s)||ho(s)||co(s)))return!s.length;var u=jn(s);if(u==Yt||u==Ue)return!s.size;if(gi(s))return!of(s).length;for(var p in s)if(Mt.call(s,p))return!1;return!0}function Gf(s,u){return rn(s,u)}function Ut(s,u,p){p=typeof p=="function"?p:r;var v=p?p(s,u):r;return v===r?rn(s,u,r,p):!!v}function Au(s){if(!cn(s))return!1;var u=fa(s);return u==at||u==ft||typeof s.message=="string"&&typeof s.name=="string"&&!Cu(s)}function ea(s){return typeof s=="number"&&Hl(s)}function bi(s){if(!tn(s))return!1;var u=fa(s);return u==Dt||u==bn||u==be||u==br}function Vf(s){return typeof s=="number"&&s==ot(s)}function Ks(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=z}function tn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function cn(s){return s!=null&&typeof s=="object"}var Up=Tg?Ia(Tg):eu;function Hp(s,u){return s===u||Ps(s,u,uu(u))}function Bp(s,u,p){return p=typeof p=="function"?p:r,Ps(s,u,uu(u),p)}function hx(s){return l0(s)&&s!=+s}function o0(s){if(Mf(s))throw new Qe(f);return nf(s)}function px(s){return s===null}function s0(s){return s==null}function l0(s){return typeof s=="number"||cn(s)&&fa(s)==sa}function Cu(s){if(!cn(s)||fa(s)!=On)return!1;var u=ti(s);if(u===null)return!0;var p=Mt.call(u,"constructor")&&u.constructor;return typeof p=="function"&&p instanceof p&&Pl.call(p)==nr}var Fr=Og?Ia(Og):fi;function u0(s){return Vf(s)&&s>=-z&&s<=z}var $f=Rg?Ia(Rg):af;function Zf(s){return typeof s=="string"||!rt(s)&&cn(s)&&fa(s)==Yn}function Va(s){return typeof s=="symbol"||cn(s)&&fa(s)==la}var ho=Dg?Ia(Dg):jh;function mx(s){return s===r}function Mr(s){return cn(s)&&jn(s)==ta}function qp(s){return cn(s)&&fa(s)==xr}var c0=Hr(sf),f0=Hr(function(s,u){return s<=u});function Js(s){if(!s)return[];if(Jn(s))return Zf(s)?ua(s):Ea(s);if($n&&s[$n])return jg(s[$n]());var u=jn(s),p=u==Yt?qc:u==Ue?Fc:al;return p(s)}function En(s){if(!s)return s===0?s:0;if(s=An(s),s===U||s===-U){var u=s<0?-1:1;return u*ve}return s===s?s:0}function ot(s){var u=En(s),p=u%1;return u===u?p?u-p:u:0}function Tu(s){return s?ui(ot(s),0,P):0}function An(s){if(typeof s=="number")return s;if(Va(s))return Oe;if(tn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=tn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Lg(s);var p=bs.test(s);return p||hg.test(s)?Il(s.slice(2),p?2:8):Al.test(s)?Oe:+s}function d0(s){return ha(s,pa(s))}function gx(s){return s?ui(ot(s),-z,z):s===0?s:0}function Et(s){return s==null?"":da(s)}var h0=pi(function(s,u){if(gi(u)||Jn(u)){ha(u,Bn(u),s);return}for(var p in u)Mt.call(u,p)&&sr(s,p,u[p])}),p0=pi(function(s,u){ha(u,pa(u),s)}),Qf=pi(function(s,u,p,v){ha(u,pa(u),s,v)}),yx=pi(function(s,u,p,v){ha(u,Bn(u),s,v)}),vx=Kt(Xl);function bx(s,u){var p=wa(s);return u==null?p:li(p,u)}var xx=dt(function(s,u){s=jt(s);var p=-1,v=u.length,_=v>2?u[2]:r;for(_&&Xn(u[0],u[1],_)&&(v=1);++p<v;)for(var O=u[p],I=pa(O),H=-1,Z=I.length;++H<Z;){var pe=I[H],ye=s[pe];(ye===r||Ga(ye,Os[pe])&&!Mt.call(s,pe))&&(s[pe]=O[pe])}return s}),wx=dt(function(s){return s.push(r,Sf),Na(x0,r,s)});function m0(s,u){return Ng(s,$e(u,3),ca)}function el(s,u){return Ng(s,$e(u,3),ci)}function Ou(s,u){return s==null?s:pn(s,$e(u,3),pa)}function g0(s,u){return s==null?s:Jl(s,$e(u,3),pa)}function _x(s,u){return s&&ca(s,$e(u,3))}function tl(s,u){return s&&ci(s,$e(u,3))}function Ru(s){return s==null?[]:Ho(s,Bn(s))}function y0(s){return s==null?[]:Ho(s,pa(s))}function nl(s,u,p){var v=s==null?r:Rr(s,u);return v===r?p:v}function Fp(s,u){return s!=null&&Of(s,u,Ih)}function Du(s,u){return s!=null&&Of(s,u,Lh)}var Wf=Sn(function(s,u,p){u!=null&&typeof u.toString!="function"&&(u=jl.call(u)),s[u]=p},L(W)),v0=Sn(function(s,u,p){u!=null&&typeof u.toString!="function"&&(u=jl.call(u)),Mt.call(s,u)?s[u].push(p):s[u]=[p]},$e),b0=dt(qo);function Bn(s){return Jn(s)?Ql(s):of(s)}function pa(s){return Jn(s)?Ql(s,!0):t1(s)}function Mu(s,u){var p={};return u=$e(u,3),ca(s,function(v,_,O){Ua(p,u(v,_,O),v)}),p}function Sx(s,u){var p={};return u=$e(u,3),ca(s,function(v,_,O){Ua(p,_,u(v,_,O))}),p}var Ex=pi(function(s,u,p){js(s,u,p)}),x0=pi(function(s,u,p,v){js(s,u,p,v)}),Xf=Kt(function(s,u){var p={};if(s==null)return p;var v=!1;u=an(u,function(O){return O=Ur(O,s),v||(v=O.length>1),O}),ha(s,Ef(s),p),v&&(p=aa(p,S|T|N,h1));for(var _=u.length;_--;)hf(p,u[_]);return p});function Kf(s,u){return w0(s,_u($e(u)))}var Yp=Kt(function(s,u){return s==null?{}:r1(s,u)});function w0(s,u){if(s==null)return{};var p=an(Ef(s),function(v){return[v]});return u=$e(u),Fh(s,p,function(v,_){return u(v,_[0])})}function ku(s,u,p){u=Ur(u,s);var v=-1,_=u.length;for(_||(_=1,s=r);++v<_;){var O=s==null?r:s[Un(u[v])];O===r&&(v=_,O=p),s=bi(O)?O.call(s):O}return s}function Ax(s,u,p){return s==null?s:Xi(s,u,p)}function _0(s,u,p,v){return v=typeof v=="function"?v:r,s==null?s:Xi(s,u,p,v)}var Gp=sp(Bn),Vp=sp(pa);function S0(s,u,p){var v=rt(s),_=v||fo(s)||ho(s);if(u=$e(u,4),p==null){var O=s&&s.constructor;_?p=v?new O:[]:tn(s)?p=bi(O)?wa(ti(s)):{}:p={}}return(_?er:ca)(s,function(I,H,Z){return u(p,I,H,Z)}),p}function $p(s,u){return s==null?!0:hf(s,u)}function E0(s,u,p){return s==null?s:pf(s,u,yf(p))}function Jf(s,u,p,v){return v=typeof v=="function"?v:r,s==null?s:pf(s,u,yf(p),v)}function al(s){return s==null?[]:mh(s,Bn(s))}function Cx(s){return s==null?[]:mh(s,pa(s))}function Zp(s,u,p){return p===r&&(p=u,u=r),p!==r&&(p=An(p),p=p===p?p:0),u!==r&&(u=An(u),u=u===u?u:0),ui(An(s),u,p)}function Qp(s,u,p){return u=En(u),p===r?(p=u,u=0):p=En(p),s=An(s),e1(s,u,p)}function ed(s,u,p){if(p&&typeof p!="boolean"&&Xn(s,u,p)&&(u=p=r),p===r&&(typeof u=="boolean"?(p=u,u=r):typeof s=="boolean"&&(p=s,s=r)),s===r&&u===r?(s=0,u=1):(s=En(s),u===r?(u=s,s=0):u=En(u)),s>u){var v=s;s=u,u=v}if(p||s%1||u%1){var _=$i();return hn(s+_*(u-s+Nc("1e-"+((_+"").length-1))),u)}return uf(s,u)}var Wp=Qn(function(s,u,p){return u=u.toLowerCase(),s+(p?Xp(u):u)});function Xp(s){return o(Et(s).toLowerCase())}function td(s){return s=Et(s),s&&s.replace(Mo,qb).replace(kl,"")}function po(s,u,p){s=Et(s),u=da(u);var v=s.length;p=p===r?v:ui(ot(p),0,v);var _=p;return p-=u.length,p>=0&&s.slice(p,_)==u}function mo(s){return s=Et(s),s&&Wt.test(s)?s.replace(Le,Bc):s}function go(s){return s=Et(s),s&&Ln.test(s)?s.replace(Ka,"\\$&"):s}var Nu=Qn(function(s,u,p){return s+(p?"-":"")+u.toLowerCase()}),Iu=Qn(function(s,u,p){return s+(p?" ":"")+u.toLowerCase()}),yo=rp("toLowerCase");function Tx(s,u,p){s=Et(s),u=ot(u);var v=u?Pn(s):0;if(!u||v>=u)return s;var _=(u-v)/2;return Bs(ks(_),p)+s+Bs(Ms(_),p)}function A0(s,u,p){s=Et(s),u=ot(u);var v=u?Pn(s):0;return u&&v<u?s+Bs(u-v,p):s}function Lu(s,u,p){s=Et(s),u=ot(u);var v=u?Pn(s):0;return u&&v<u?Bs(u-v,p)+s:s}function Ox(s,u,p){return p||u==null?u=0:u&&(u=+u),ii(Et(s).replace(Vn,""),u||0)}function C0(s,u,p){return(p?Xn(s,u,p):u===r)?u=1:u=ot(u),cf(Et(s),u)}function nd(){var s=arguments,u=Et(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var T0=Qn(function(s,u,p){return s+(p?"_":"")+u.toLowerCase()});function Rx(s,u,p){return p&&typeof p!="number"&&Xn(s,u,p)&&(u=p=r),p=p===r?P:p>>>0,p?(s=Et(s),s&&(typeof u=="string"||u!=null&&!Fr(u))&&(u=da(u),!u&&Yi(s))?hi(ua(s),0,p):s.split(u,p)):[]}var ad=Qn(function(s,u,p){return s+(p?" ":"")+o(u)});function rd(s,u,p){return s=Et(s),p=p==null?0:ui(ot(p),0,s.length),u=da(u),s.slice(p,p+u.length)==u}function O0(s,u,p){var v=E.templateSettings;p&&Xn(s,u,p)&&(u=r),s=Et(s),u=Qf({},u,v,lp);var _=Qf({},u.imports,v.imports,lp),O=Bn(_),I=mh(_,O),H,Z,pe=0,ye=u.interpolate||Jr,Se="__p += '",ke=ei((u.escape||Jr).source+"|"+ye.source+"|"+(ye===Ro?vs:Jr).source+"|"+(u.evaluate||Jr).source+"|$","g"),Fe="//# sourceURL="+(Mt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mc+"]")+`
|
|
628
|
-
`;s.replace(ke,function(et,
|
|
629
|
-
__e(`+
|
|
630
|
-
'`)
|
|
631
|
-
|
|
632
|
-
__p += '`),
|
|
633
|
-
((__t = (`+
|
|
634
|
-
'`),pe=Nr+et.length,et}),
|
|
635
|
-
`;var Je=
|
|
636
|
-
`+
|
|
637
|
-
}
|
|
638
|
-
`;else if(
|
|
625
|
+
*/var R2=nh.exports,RS;function M2(){return RS||(RS=1,(function(t,n){(function(){var r,i="4.17.21",l=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",g="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",b=500,w="__lodash_placeholder__",E=1,A=2,I=4,j=1,D=2,R=1,q=2,Y=4,re=8,G=16,te=32,ye=64,ce=128,X=256,ve=512,Ee=30,Re="...",be=800,le=16,se=1,de=2,Q=3,U=1/0,z=9007199254740991,xe=17976931348623157e292,Oe=NaN,Ve=4294967295,k=Ve-1,F=Ve>>>1,W=[["ary",ce],["bind",R],["bindKey",q],["curry",re],["curryRight",G],["flip",ve],["partial",te],["partialRight",ye],["rearg",X]],ue="[object Arguments]",Te="[object Array]",_e="[object AsyncFunction]",Me="[object Boolean]",We="[object Date]",Ze="[object DOMException]",Ke="[object Error]",kt="[object Function]",bn="[object GeneratorFunction]",Xt="[object Map]",Mn="[object Number]",Dn="[object Null]",xn="[object Object]",Ra="[object Promise]",Va="[object Proxy]",Ge="[object RegExp]",He="[object Set]",Xn="[object String]",ra="[object Symbol]",hr="[object Undefined]",Bt="[object WeakMap]",pr="[object WeakSet]",zr="[object ArrayBuffer]",ia="[object DataView]",jr="[object Float32Array]",Yl="[object Float64Array]",Is="[object Int8Array]",Gl="[object Int16Array]",Vl="[object Int32Array]",ai="[object Uint8Array]",Gn="[object Uint8ClampedArray]",$a="[object Uint16Array]",Vn="[object Uint32Array]",Yc=/\b__p \+= '';/g,Gc=/\b(__p \+=) '' \+/g,gh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ge=/&(?:amp|lt|gt|quot|#39);/g,ze=/[&<>"']/g,bt=RegExp(ge.source),At=RegExp(ze.source),wn=/<%-([\s\S]+?)%>/g,mr=/<%([\s\S]+?)%>/g,$l=/<%=([\s\S]+?)%>/g,Vc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ls=/^\w*$/,qi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zl=/[\\^$.*+?()[\]{}|]/g,$c=RegExp(Zl.source),Ql=/^\s+/,Wl=/\s/,zs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yh=/\{\n\/\* \[wrapped with (.+)\] \*/,jg=/,? & /,Pg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fi=/[()=,{}\[\]\/\s]/,$n=/\\(\\)?/g,ha=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Do=/\w*$/,vh=/^[-+]0x[0-9a-f]+$/i,Xb=/^0b[01]+$/i,Kb=/^\[object .+?Constructor\]$/,Ug=/^0o[0-7]+$/i,Xl=/^(?:0|[1-9]\d*)$/,bh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ri=/($^)/,js=/['\n\r\u2028\u2029\\]/g,Yi="\\ud800-\\udfff",Ps="\\u0300-\\u036f",Un="\\ufe20-\\ufe2f",Hg="\\u20d0-\\u20ff",xh=Ps+Un+Hg,Gi="\\u2700-\\u27bf",ko="a-z\\xdf-\\xf6\\xf8-\\xff",Jb="\\xac\\xb1\\xd7\\xf7",Bg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qg="\\u2000-\\u206f",ex=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Kl="A-Z\\xc0-\\xd6\\xd8-\\xde",Jl="\\ufe0e\\ufe0f",Pr=Jb+Bg+qg+ex,pa="['’]",Fg="["+Yi+"]",Yg="["+Pr+"]",Us="["+xh+"]",wh="\\d+",Zc="["+Gi+"]",Gg="["+ko+"]",Ma="[^"+Yi+Pr+wh+Gi+ko+Kl+"]",eu="\\ud83c[\\udffb-\\udfff]",Vg="(?:"+Us+"|"+eu+")",Qc="[^"+Yi+"]",Vi="(?:\\ud83c[\\udde6-\\uddff]){2}",Wc="[\\ud800-\\udbff][\\udc00-\\udfff]",No="["+Kl+"]",Io="\\u200d",$g="(?:"+Gg+"|"+Ma+")",Zg="(?:"+No+"|"+Ma+")",_h="(?:"+pa+"(?:d|ll|m|re|s|t|ve))?",Xc="(?:"+pa+"(?:D|LL|M|RE|S|T|VE))?",Qg=Vg+"?",Wg="["+Jl+"]?",Kc="(?:"+Io+"(?:"+[Qc,Vi,Wc].join("|")+")"+Wg+Qg+")*",ii="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jc=Wg+Qg+Kc,Hs="(?:"+[Zc,Vi,Wc].join("|")+")"+Jc,Bs="(?:"+[Qc+Us+"?",Us,Vi,Wc,Fg].join("|")+")",Xg=RegExp(pa,"g"),Ch=RegExp(Us,"g"),ef=RegExp(eu+"(?="+eu+")|"+Bs+Jc,"g"),tu=RegExp([No+"?"+Gg+"+"+_h+"(?="+[Yg,No,"$"].join("|")+")",Zg+"+"+Xc+"(?="+[Yg,No+$g,"$"].join("|")+")",No+"?"+$g+"+"+_h,No+"+"+Xc,Sh,ii,wh,Hs].join("|"),"g"),oi=RegExp("["+Io+Yi+xh+Jl+"]"),Eh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$i=-1,Zt={};Zt[jr]=Zt[Yl]=Zt[Is]=Zt[Gl]=Zt[Vl]=Zt[ai]=Zt[Gn]=Zt[$a]=Zt[Vn]=!0,Zt[ue]=Zt[Te]=Zt[zr]=Zt[Me]=Zt[ia]=Zt[We]=Zt[Ke]=Zt[kt]=Zt[Xt]=Zt[Mn]=Zt[xn]=Zt[Ge]=Zt[He]=Zt[Xn]=Zt[Bt]=!1;var zt={};zt[ue]=zt[Te]=zt[zr]=zt[ia]=zt[Me]=zt[We]=zt[jr]=zt[Yl]=zt[Is]=zt[Gl]=zt[Vl]=zt[Xt]=zt[Mn]=zt[xn]=zt[Ge]=zt[He]=zt[Xn]=zt[ra]=zt[ai]=zt[Gn]=zt[$a]=zt[Vn]=!0,zt[Ke]=zt[kt]=zt[Bt]=!1;var Kg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tf={"&":"&","<":"<",">":">",'"':""","'":"'"},nf={"&":"&","<":"<",">":">",""":'"',"'":"'"},Jg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ma=parseFloat,Lo=parseInt,au=typeof Cm=="object"&&Cm&&Cm.Object===Object&&Cm,ru=typeof self=="object"&&self&&self.Object===Object&&self,Zn=au||ru||Function("return this")(),iu=n&&!n.nodeType&&n,si=iu&&!0&&t&&!t.nodeType&&t,qs=si&&si.exports===iu,Fs=qs&&au.process,Da=(function(){try{var V=si&&si.require&&si.require("util").types;return V||Fs&&Fs.binding&&Fs.binding("util")}catch{}})(),e1=Da&&Da.isArrayBuffer,t1=Da&&Da.isDate,n1=Da&&Da.isMap,af=Da&&Da.isRegExp,a1=Da&&Da.isSet,r1=Da&&Da.isTypedArray;function ka(V,ie,ne){switch(ne.length){case 0:return V.call(ie);case 1:return V.call(ie,ne[0]);case 2:return V.call(ie,ne[0],ne[1]);case 3:return V.call(ie,ne[0],ne[1],ne[2])}return V.apply(ie,ne)}function tx(V,ie,ne,Ne){for(var rt=-1,Tt=V==null?0:V.length;++rt<Tt;){var tn=V[rt];ie(Ne,tn,ne(tn),V)}return Ne}function Za(V,ie){for(var ne=-1,Ne=V==null?0:V.length;++ne<Ne&&ie(V[ne],ne,V)!==!1;);return V}function i1(V,ie){for(var ne=V==null?0:V.length;ne--&&ie(V[ne],ne,V)!==!1;);return V}function o1(V,ie){for(var ne=-1,Ne=V==null?0:V.length;++ne<Ne;)if(!ie(V[ne],ne,V))return!1;return!0}function Zi(V,ie){for(var ne=-1,Ne=V==null?0:V.length,rt=0,Tt=[];++ne<Ne;){var tn=V[ne];ie(tn,ne,V)&&(Tt[rt++]=tn)}return Tt}function rf(V,ie){var ne=V==null?0:V.length;return!!ne&&Ys(V,ie,0)>-1}function Ah(V,ie,ne){for(var Ne=-1,rt=V==null?0:V.length;++Ne<rt;)if(ne(ie,V[Ne]))return!0;return!1}function Kt(V,ie){for(var ne=-1,Ne=V==null?0:V.length,rt=Array(Ne);++ne<Ne;)rt[ne]=ie(V[ne],ne,V);return rt}function Qi(V,ie){for(var ne=-1,Ne=ie.length,rt=V.length;++ne<Ne;)V[rt+ne]=ie[ne];return V}function Th(V,ie,ne,Ne){var rt=-1,Tt=V==null?0:V.length;for(Ne&&Tt&&(ne=V[++rt]);++rt<Tt;)ne=ie(ne,V[rt],rt,V);return ne}function nx(V,ie,ne,Ne){var rt=V==null?0:V.length;for(Ne&&rt&&(ne=V[--rt]);rt--;)ne=ie(ne,V[rt],rt,V);return ne}function of(V,ie){for(var ne=-1,Ne=V==null?0:V.length;++ne<Ne;)if(ie(V[ne],ne,V))return!0;return!1}var ax=ou("length");function rx(V){return V.split("")}function ix(V){return V.match(Pg)||[]}function s1(V,ie,ne){var Ne;return ne(V,function(rt,Tt,tn){if(ie(rt,Tt,tn))return Ne=Tt,!1}),Ne}function sf(V,ie,ne,Ne){for(var rt=V.length,Tt=ne+(Ne?1:-1);Ne?Tt--:++Tt<rt;)if(ie(V[Tt],Tt,V))return Tt;return-1}function Ys(V,ie,ne){return ie===ie?ux(V,ie,ne):sf(V,l1,ne)}function ox(V,ie,ne,Ne){for(var rt=ne-1,Tt=V.length;++rt<Tt;)if(Ne(V[rt],ie))return rt;return-1}function l1(V){return V!==V}function u1(V,ie){var ne=V==null?0:V.length;return ne?lf(V,ie)/ne:Oe}function ou(V){return function(ie){return ie==null?r:ie[V]}}function zo(V){return function(ie){return V==null?r:V[ie]}}function c1(V,ie,ne,Ne,rt){return rt(V,function(Tt,tn,Ot){ne=Ne?(Ne=!1,Tt):ie(ne,Tt,tn,Ot)}),ne}function f1(V,ie){var ne=V.length;for(V.sort(ie);ne--;)V[ne]=V[ne].value;return V}function lf(V,ie){for(var ne,Ne=-1,rt=V.length;++Ne<rt;){var Tt=ie(V[Ne]);Tt!==r&&(ne=ne===r?Tt:ne+Tt)}return ne}function uf(V,ie){for(var ne=-1,Ne=Array(V);++ne<V;)Ne[ne]=ie(ne);return Ne}function d1(V,ie){return Kt(ie,function(ne){return[ne,V[ne]]})}function Oh(V){return V&&V.slice(0,ga(V)+1).replace(Ql,"")}function Hn(V){return function(ie){return V(ie)}}function Rh(V,ie){return Kt(ie,function(ne){return V[ne]})}function su(V,ie){return V.has(ie)}function h1(V,ie){for(var ne=-1,Ne=V.length;++ne<Ne&&Ys(ie,V[ne],0)>-1;);return ne}function Mh(V,ie){for(var ne=V.length;ne--&&Ys(ie,V[ne],0)>-1;);return ne}function p1(V,ie){for(var ne=V.length,Ne=0;ne--;)V[ne]===ie&&++Ne;return Ne}var lu=zo(Kg),uu=zo(tf);function sx(V){return"\\"+Jg[V]}function cf(V,ie){return V==null?r:V[ie]}function jo(V){return oi.test(V)}function m1(V){return Eh.test(V)}function Dh(V){for(var ie,ne=[];!(ie=V.next()).done;)ne.push(ie.value);return ne}function cu(V){var ie=-1,ne=Array(V.size);return V.forEach(function(Ne,rt){ne[++ie]=[rt,Ne]}),ne}function kh(V,ie){return function(ne){return V(ie(ne))}}function li(V,ie){for(var ne=-1,Ne=V.length,rt=0,Tt=[];++ne<Ne;){var tn=V[ne];(tn===ie||tn===w)&&(V[ne]=w,Tt[rt++]=ne)}return Tt}function fu(V){var ie=-1,ne=Array(V.size);return V.forEach(function(Ne){ne[++ie]=Ne}),ne}function lx(V){var ie=-1,ne=Array(V.size);return V.forEach(function(Ne){ne[++ie]=[Ne,Ne]}),ne}function ux(V,ie,ne){for(var Ne=ne-1,rt=V.length;++Ne<rt;)if(V[Ne]===ie)return Ne;return-1}function cx(V,ie,ne){for(var Ne=ne+1;Ne--;)if(V[Ne]===ie)return Ne;return Ne}function Gs(V){return jo(V)?g1(V):ax(V)}function gr(V){return jo(V)?y1(V):rx(V)}function ga(V){for(var ie=V.length;ie--&&Wl.test(V.charAt(ie)););return ie}var du=zo(nf);function g1(V){for(var ie=ef.lastIndex=0;ef.test(V);)++ie;return ie}function y1(V){return V.match(ef)||[]}function v1(V){return V.match(tu)||[]}var b1=(function V(ie){ie=ie==null?Zn:Wi.defaults(Zn.Object(),ie,Wi.pick(Zn,nu));var ne=ie.Array,Ne=ie.Date,rt=ie.Error,Tt=ie.Function,tn=ie.Math,Ot=ie.Object,hu=ie.RegExp,x1=ie.String,Bn=ie.TypeError,pu=ne.prototype,w1=Tt.prototype,Po=Ot.prototype,ff=ie["__core-js_shared__"],df=w1.toString,jt=Po.hasOwnProperty,_1=0,Nh=(function(){var s=/[^.]+$/.exec(ff&&ff.keys&&ff.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})(),Vs=Po.toString,yr=df.call(Ot),hf=Zn._,Qa=hu("^"+df.call(jt).replace(Zl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ui=qs?ie.Buffer:r,Ur=ie.Symbol,Uo=ie.Uint8Array,mu=ui?ui.allocUnsafe:r,$s=kh(Ot.getPrototypeOf,Ot),Xi=Ot.create,Ih=Po.propertyIsEnumerable,Ho=pu.splice,Bo=Ur?Ur.isConcatSpreadable:r,gu=Ur?Ur.iterator:r,kn=Ur?Ur.toStringTag:r,Zs=(function(){try{var s=oo(Ot,"defineProperty");return s({},"",{}),s}catch{}})(),ci=ie.clearTimeout!==Zn.clearTimeout&&ie.clearTimeout,S1=Ne&&Ne.now!==Zn.Date.now&&Ne.now,pf=ie.setTimeout!==Zn.setTimeout&&ie.setTimeout,Hr=tn.ceil,Qs=tn.floor,mf=Ot.getOwnPropertySymbols,Lh=ui?ui.isBuffer:r,zh=ie.isFinite,Wa=pu.join,Ws=kh(Ot.keys,Ot),on=tn.max,Nn=tn.min,yu=Ne.now,Xa=ie.parseInt,Na=tn.random,Ki=pu.reverse,Ka=oo(ie,"DataView"),ya=oo(ie,"Map"),vr=oo(ie,"Promise"),qo=oo(ie,"Set"),Fo=oo(ie,"WeakMap"),Yo=oo(Ot,"create"),vu=Fo&&new Fo,pn={},nn=Tr(Ka),_t=Tr(ya),Ji=Tr(vr),Ja=Tr(qo),jh=Tr(Fo),br=Ur?Ur.prototype:r,Xs=br?br.valueOf:r,Ph=br?br.toString:r;function C(s){if(dn(s)&&!it(s)&&!(s instanceof ht)){if(s instanceof Kn)return s;if(jt.call(s,"__wrapped__"))return Rp(s)}return new Kn(s)}var er=(function(){function s(){}return function(c){if(!fn(c))return{};if(Xi)return Xi(c);s.prototype=c;var p=new s;return s.prototype=r,p}})();function Ks(){}function Kn(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=r}C.templateSettings={escape:wn,evaluate:mr,interpolate:$l,variable:"",imports:{_:C}},C.prototype=Ks.prototype,C.prototype.constructor=C,Kn.prototype=er(Ks.prototype),Kn.prototype.constructor=Kn;function ht(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ve,this.__views__=[]}function Go(){var s=new ht(this.__wrapped__);return s.__actions__=ua(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=ua(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=ua(this.__views__),s}function fi(){if(this.__filtered__){var s=new ht(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function eo(){var s=this.__wrapped__.value(),c=this.__dir__,p=it(s),v=c<0,_=p?s.length:0,O=F1(0,_,this.__views__),L=O.start,H=O.end,Z=H-L,pe=v?H:L-1,me=this.__iteratees__,we=me.length,ke=0,Fe=Nn(Z,this.__takeCount__);if(!p||!v&&_==Z&&Fe==Z)return ep(s,this.__actions__);var Je=[];e:for(;Z--&&ke<Fe;){pe+=c;for(var pt=-1,et=s[pe];++pt<we;){var St=me[pt],Ct=St.iteratee,kr=St.type,qa=Ct(et);if(kr==de)et=qa;else if(!qa){if(kr==se)continue e;break e}}Je[ke++]=et}return Je}ht.prototype=er(Ks.prototype),ht.prototype.constructor=ht;function oa(s){var c=-1,p=s==null?0:s.length;for(this.clear();++c<p;){var v=s[c];this.set(v[0],v[1])}}function Uh(){this.__data__=Yo?Yo(null):{},this.size=0}function Hh(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function Js(s){var c=this.__data__;if(Yo){var p=c[s];return p===y?r:p}return jt.call(c,s)?c[s]:r}function gf(s){var c=this.__data__;return Yo?c[s]!==r:jt.call(c,s)}function Vo(s,c){var p=this.__data__;return this.size+=this.has(s)?0:1,p[s]=Yo&&c===r?y:c,this}oa.prototype.clear=Uh,oa.prototype.delete=Hh,oa.prototype.get=Js,oa.prototype.has=gf,oa.prototype.set=Vo;function an(s){var c=-1,p=s==null?0:s.length;for(this.clear();++c<p;){var v=s[c];this.set(v[0],v[1])}}function yf(){this.__data__=[],this.size=0}function C1(s){var c=this.__data__,p=Br(c,s);if(p<0)return!1;var v=c.length-1;return p==v?c.pop():Ho.call(c,p,1),--this.size,!0}function fx(s){var c=this.__data__,p=Br(c,s);return p<0?r:c[p][1]}function dx(s){return Br(this.__data__,s)>-1}function hx(s,c){var p=this.__data__,v=Br(p,s);return v<0?(++this.size,p.push([s,c])):p[v][1]=c,this}an.prototype.clear=yf,an.prototype.delete=C1,an.prototype.get=fx,an.prototype.has=dx,an.prototype.set=hx;function qt(s){var c=-1,p=s==null?0:s.length;for(this.clear();++c<p;){var v=s[c];this.set(v[0],v[1])}}function Bh(){this.size=0,this.__data__={hash:new oa,map:new(ya||an),string:new oa}}function bu(s){var c=Pu(this,s).delete(s);return this.size-=c?1:0,c}function xu(s){return Pu(this,s).get(s)}function qh(s){return Pu(this,s).has(s)}function el(s,c){var p=Pu(this,s),v=p.size;return p.set(s,c),this.size+=p.size==v?0:1,this}qt.prototype.clear=Bh,qt.prototype.delete=bu,qt.prototype.get=xu,qt.prototype.has=qh,qt.prototype.set=el;function tr(s){var c=-1,p=s==null?0:s.length;for(this.__data__=new qt;++c<p;)this.add(s[c])}function px(s){return this.__data__.set(s,y),this}function E1(s){return this.__data__.has(s)}tr.prototype.add=tr.prototype.push=px,tr.prototype.has=E1;function xr(s){var c=this.__data__=new an(s);this.size=c.size}function A1(){this.__data__=new an,this.size=0}function $o(s){var c=this.__data__,p=c.delete(s);return this.size=c.size,p}function Fh(s){return this.__data__.get(s)}function vf(s){return this.__data__.has(s)}function T1(s,c){var p=this.__data__;if(p instanceof an){var v=p.__data__;if(!ya||v.length<l-1)return v.push([s,c]),this.size=++p.size,this;p=this.__data__=new qt(v)}return p.set(s,c),this.size=p.size,this}xr.prototype.clear=A1,xr.prototype.delete=$o,xr.prototype.get=Fh,xr.prototype.has=vf,xr.prototype.set=T1;function Zo(s,c){var p=it(s),v=!p&&mo(s),_=!p&&!v&&rr(s),O=!p&&!v&&!_&&cs(s),L=p||v||_||O,H=L?uf(s.length,x1):[],Z=H.length;for(var pe in s)(c||jt.call(s,pe))&&!(L&&(pe=="length"||_&&(pe=="offset"||pe=="parent")||O&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Cr(pe,Z)))&&H.push(pe);return H}function bf(s){var c=s.length;return c?s[Jo(0,c-1)]:r}function xf(s,c){return Er(ua(s),qr(c,0,s.length))}function wf(s){return Er(ua(s))}function _f(s,c,p){(p!==r&&!Mr(s[c],p)||p===r&&!(c in s))&&va(s,c,p)}function tl(s,c,p){var v=s[c];(!(jt.call(s,c)&&Mr(v,p))||p===r&&!(c in s))&&va(s,c,p)}function Br(s,c){for(var p=s.length;p--;)if(Mr(s[p][0],c))return p;return-1}function Qo(s,c,p,v){return sa(s,function(_,O,L){c(v,_,p(_),L)}),v}function Yh(s,c){return s&&_r(c,Fn(c),s)}function O1(s,c){return s&&_r(c,Ta(c),s)}function va(s,c,p){c=="__proto__"&&Zs?Zs(s,c,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[c]=p}function Wo(s,c){for(var p=-1,v=c.length,_=ne(v),O=s==null;++p<v;)_[p]=O?r:mm(s,c[p]);return _}function qr(s,c,p){return s===s&&(p!==r&&(s=s<=p?s:p),c!==r&&(s=s>=c?s:c)),s}function Jn(s,c,p,v,_,O){var L,H=c&E,Z=c&A,pe=c&I;if(p&&(L=_?p(s,v,_,O):p(s)),L!==r)return L;if(!fn(s))return s;var me=it(s);if(me){if(L=vp(s),!H)return ua(s,L)}else{var we=Ln(s),ke=we==kt||we==bn;if(rr(s))return Nu(s,H);if(we==xn||we==ue||ke&&!_){if(L=Z||ke?{}:bp(s),!H)return Z?j1(s,O1(L,s)):sp(s,Yh(L,s))}else{if(!zt[we])return _?s:{};L=Y1(s,we,H)}}O||(O=new xr);var Fe=O.get(s);if(Fe)return Fe;O.set(s,L),cd(s)?s.forEach(function(et){L.add(Jn(et,c,p,et,s,O))}):S0(s)&&s.forEach(function(et,St){L.set(St,Jn(et,c,p,St,s,O))});var Je=pe?Z?Gf:Yf:Z?Ta:Fn,pt=me?r:Je(s);return Za(pt||s,function(et,St){pt&&(St=et,et=s[St]),tl(L,St,Jn(et,c,p,St,s,O))}),L}function Sf(s){var c=Fn(s);return function(p){return Gh(p,s,c)}}function Gh(s,c,p){var v=p.length;if(s==null)return!v;for(s=Ot(s);v--;){var _=p[v],O=c[_],L=s[_];if(L===r&&!(_ in s)||!O(L))return!1}return!0}function to(s,c,p){if(typeof s!="function")throw new Bn(h);return Hu(function(){s.apply(r,p)},c)}function nl(s,c,p,v){var _=-1,O=rf,L=!0,H=s.length,Z=[],pe=c.length;if(!H)return Z;p&&(c=Kt(c,Hn(p))),v?(O=Ah,L=!1):c.length>=l&&(O=su,L=!1,c=new tr(c));e:for(;++_<H;){var me=s[_],we=p==null?me:p(me);if(me=v||me!==0?me:0,L&&we===we){for(var ke=pe;ke--;)if(c[ke]===we)continue e;Z.push(me)}else O(c,we,v)||Z.push(me)}return Z}var sa=Uf(ba),Cf=Uf(Ef,!0);function Vh(s,c){var p=!0;return sa(s,function(v,_,O){return p=!!c(v,_,O),p}),p}function wr(s,c,p){for(var v=-1,_=s.length;++v<_;){var O=s[v],L=c(O);if(L!=null&&(H===r?L===L&&!Aa(L):p(L,H)))var H=L,Z=O}return Z}function no(s,c,p,v){var _=s.length;for(p=lt(p),p<0&&(p=-p>_?0:_+p),v=v===r||v>_?_:lt(v),v<0&&(v+=_),v=p>v?0:Ci(v);p<v;)s[p++]=c;return s}function al(s,c){var p=[];return sa(s,function(v,_,O){c(v,_,O)&&p.push(v)}),p}function In(s,c,p,v,_){var O=-1,L=s.length;for(p||(p=xp),_||(_=[]);++O<L;){var H=s[O];c>0&&p(H)?c>1?In(H,c-1,p,v,_):Qi(_,H):v||(_[_.length]=H)}return _}var wu=lp(),rl=lp(!0);function ba(s,c){return s&&wu(s,c,Fn)}function Ef(s,c){return s&&rl(s,c,Fn)}function _u(s,c){return Zi(c,function(p){return Dr(s[p])})}function nr(s,c){c=mi(c,s);for(var p=0,v=c.length;s!=null&&p<v;)s=s[Ar(c[p++])];return p&&p==v?s:r}function Su(s,c,p){var v=c(s);return it(s)?v:Qi(v,p(s))}function ea(s){return s==null?s===r?hr:Dn:kn&&kn in Ot(s)?q1(s):yi(s)}function Cu(s,c){return s>c}function $h(s,c){return s!=null&&jt.call(s,c)}function Ia(s,c){return s!=null&&c in Ot(s)}function ar(s,c,p){return s>=Nn(c,p)&&s<on(c,p)}function Fr(s,c,p){for(var v=p?Ah:rf,_=s[0].length,O=s.length,L=O,H=ne(O),Z=1/0,pe=[];L--;){var me=s[L];L&&c&&(me=Kt(me,Hn(c))),Z=Nn(me.length,Z),H[L]=!p&&(c||_>=120&&me.length>=120)?new tr(L&&me):r}me=s[0];var we=-1,ke=H[0];e:for(;++we<_&&pe.length<Z;){var Fe=me[we],Je=c?c(Fe):Fe;if(Fe=p||Fe!==0?Fe:0,!(ke?su(ke,Je):v(pe,Je,p))){for(L=O;--L;){var pt=H[L];if(!(pt?su(pt,Je):v(s[L],Je,p)))continue e}ke&&ke.push(Je),pe.push(Fe)}}return pe}function Zh(s,c,p,v){return ba(s,function(_,O,L){c(v,p(_),O,L)}),v}function il(s,c,p){c=mi(c,s),s=Ep(s,c);var v=s==null?s:s[Ar(ja(c))];return v==null?r:ka(v,s,p)}function di(s){return dn(s)&&ea(s)==ue}function La(s){return dn(s)&&ea(s)==zr}function _n(s){return dn(s)&&ea(s)==We}function ao(s,c,p,v,_){return s===c?!0:s==null||c==null||!dn(s)&&!dn(c)?s!==s&&c!==c:hi(s,c,p,v,ao,_)}function hi(s,c,p,v,_,O){var L=it(s),H=it(c),Z=L?Te:Ln(s),pe=H?Te:Ln(c);Z=Z==ue?xn:Z,pe=pe==ue?xn:pe;var me=Z==xn,we=pe==xn,ke=Z==pe;if(ke&&rr(s)){if(!rr(c))return!1;L=!0,me=!1}if(ke&&!me)return O||(O=new xr),L||cs(s)?mp(s,c,p,v,_,O):Ff(s,c,Z,p,v,_,O);if(!(p&j)){var Fe=me&&jt.call(s,"__wrapped__"),Je=we&&jt.call(c,"__wrapped__");if(Fe||Je){var pt=Fe?s.value():s,et=Je?c.value():c;return O||(O=new xr),_(pt,et,p,v,O)}}return ke?(O||(O=new xr),B1(s,c,p,v,_,O)):!1}function st(s){return dn(s)&&Ln(s)==Xt}function Nt(s,c,p,v){var _=p.length,O=_,L=!v;if(s==null)return!O;for(s=Ot(s);_--;){var H=p[_];if(L&&H[2]?H[1]!==s[H[0]]:!(H[0]in s))return!1}for(;++_<O;){H=p[_];var Z=H[0],pe=s[Z],me=H[1];if(L&&H[2]){if(pe===r&&!(Z in s))return!1}else{var we=new xr;if(v)var ke=v(pe,me,Z,s,c,we);if(!(ke===r?ao(me,pe,j|D,v,we):ke))return!1}}return!0}function Sn(s){if(!fn(s)||_p(s))return!1;var c=Dr(s)?Qa:Kb;return c.test(Tr(s))}function Af(s){return dn(s)&&ea(s)==Ge}function ol(s){return dn(s)&&Ln(s)==He}function Xo(s){return dn(s)&&ls(s.length)&&!!Zt[ea(s)]}function Eu(s){return typeof s=="function"?s:s==null?jn:typeof s=="object"?it(s)?Of(s[0],s[1]):Tf(s):x(s)}function Ko(s){if(!rs(s))return Ws(s);var c=[];for(var p in Ot(s))jt.call(s,p)&&p!="constructor"&&c.push(p);return c}function sl(s){if(!fn(s))return $1(s);var c=rs(s),p=[];for(var v in s)v=="constructor"&&(c||!jt.call(s,v))||p.push(v);return p}function Qh(s,c){return s<c}function un(s,c){var p=-1,v=ta(s)?ne(s.length):[];return sa(s,function(_,O,L){v[++p]=c(_,O,L)}),v}function Tf(s){var c=Vf(s);return c.length==1&&c[0][2]?Gr(c[0][0],c[0][1]):function(p){return p===s||Nt(p,s,c)}}function Of(s,c){return $f(s)&&Sp(c)?Gr(Ar(s),c):function(p){var v=mm(p,s);return v===r&&v===c?dd(p,s):ao(c,v,j|D)}}function Au(s,c,p,v,_){s!==c&&wu(c,function(O,L){if(_||(_=new xr),fn(O))R1(s,c,L,p,Au,v,_);else{var H=v?v(is(s,L),O,L+"",s,c,_):r;H===r&&(H=O),_f(s,L,H)}},Ta)}function R1(s,c,p,v,_,O,L){var H=is(s,p),Z=is(c,p),pe=L.get(Z);if(pe){_f(s,p,pe);return}var me=O?O(H,Z,p+"",s,c,L):r,we=me===r;if(we){var ke=it(Z),Fe=!ke&&rr(Z),Je=!ke&&!Fe&&cs(Z);me=Z,ke||Fe||Je?it(H)?me=H:Cn(H)?me=ua(H):Fe?(we=!1,me=Nu(Z,!0)):Je?(we=!1,me=rp(Z,!0)):me=[]:Cl(Z)||mo(Z)?(me=H,mo(H)?me=cm(H):(!fn(H)||Dr(H))&&(me=bp(Z))):we=!1}we&&(L.set(Z,me),_(me,Z,v,O,L),L.delete(Z)),_f(s,p,me)}function M1(s,c){var p=s.length;if(p)return c+=c<0?p:0,Cr(c,p)?s[c]:r}function Rf(s,c,p){c.length?c=Kt(c,function(O){return it(O)?function(L){return nr(L,O.length===1?O[0]:O)}:O}):c=[jn];var v=-1;c=Kt(c,Hn(Le()));var _=un(s,function(O,L,H){var Z=Kt(c,function(pe){return pe(O)});return{criteria:Z,index:++v,value:O}});return f1(_,function(O,L){return z1(O,L,p)})}function Wh(s,c){return Mf(s,c,function(p,v){return dd(s,v)})}function Mf(s,c,p){for(var v=-1,_=c.length,O={};++v<_;){var L=c[v],H=nr(s,L);p(H,L)&&es(O,mi(L,s),H)}return O}function la(s){return function(c){return nr(c,s)}}function cn(s,c,p,v){var _=v?ox:Ys,O=-1,L=c.length,H=s;for(s===c&&(c=ua(c)),p&&(H=Kt(s,Hn(p)));++O<L;)for(var Z=0,pe=c[O],me=p?p(pe):pe;(Z=_(H,me,Z,v))>-1;)H!==s&&Ho.call(H,Z,1),Ho.call(s,Z,1);return s}function Tu(s,c){for(var p=s?c.length:0,v=p-1;p--;){var _=c[p];if(p==v||_!==O){var O=_;Cr(_)?Ho.call(s,_,1):Nf(s,_)}}return s}function Jo(s,c){return s+Qs(Na()*(c-s+1))}function Df(s,c,p,v){for(var _=-1,O=on(Hr((c-s)/(p||1)),0),L=ne(O);O--;)L[v?O:++_]=s,s+=p;return L}function Ou(s,c){var p="";if(!s||c<1||c>z)return p;do c%2&&(p+=s),c=Qs(c/2),c&&(s+=s);while(c);return p}function at(s,c){return Ap(Zf(s,c,jn),s+"")}function kf(s){return bf(hs(s))}function Xh(s,c){var p=hs(s);return Er(p,qr(c,0,p.length))}function es(s,c,p,v){if(!fn(s))return s;c=mi(c,s);for(var _=-1,O=c.length,L=O-1,H=s;H!=null&&++_<O;){var Z=Ar(c[_]),pe=p;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return s;if(_!=L){var me=H[Z];pe=v?v(me,Z,H):r,pe===r&&(pe=fn(me)?me:Cr(c[_+1])?[]:{})}tl(H,Z,pe),H=H[Z]}return s}var Kh=vu?function(s,c){return vu.set(s,c),s}:jn,D1=Zs?function(s,c){return Zs(s,"toString",{configurable:!0,enumerable:!1,value:_m(c),writable:!0})}:jn;function k1(s){return Er(hs(s))}function za(s,c,p){var v=-1,_=s.length;c<0&&(c=-c>_?0:_+c),p=p>_?_:p,p<0&&(p+=_),_=c>p?0:p-c>>>0,c>>>=0;for(var O=ne(_);++v<_;)O[v]=s[v+c];return O}function N1(s,c){var p;return sa(s,function(v,_,O){return p=c(v,_,O),!p}),!!p}function Ru(s,c,p){var v=0,_=s==null?v:s.length;if(typeof c=="number"&&c===c&&_<=F){for(;v<_;){var O=v+_>>>1,L=s[O];L!==null&&!Aa(L)&&(p?L<=c:L<c)?v=O+1:_=O}return _}return Mu(s,c,jn,p)}function Mu(s,c,p,v){var _=0,O=s==null?0:s.length;if(O===0)return 0;c=p(c);for(var L=c!==c,H=c===null,Z=Aa(c),pe=c===r;_<O;){var me=Qs((_+O)/2),we=p(s[me]),ke=we!==r,Fe=we===null,Je=we===we,pt=Aa(we);if(L)var et=v||Je;else pe?et=Je&&(v||ke):H?et=Je&&ke&&(v||!Fe):Z?et=Je&&ke&&!Fe&&(v||!pt):Fe||pt?et=!1:et=v?we<=c:we<c;et?_=me+1:O=me}return Nn(O,k)}function Jh(s,c){for(var p=-1,v=s.length,_=0,O=[];++p<v;){var L=s[p],H=c?c(L):L;if(!p||!Mr(H,Z)){var Z=H;O[_++]=L===0?0:L}}return O}function I1(s){return typeof s=="number"?s:Aa(s)?Oe:+s}function xa(s){if(typeof s=="string")return s;if(it(s))return Kt(s,xa)+"";if(Aa(s))return Ph?Ph.call(s):"";var c=s+"";return c=="0"&&1/s==-U?"-0":c}function pi(s,c,p){var v=-1,_=rf,O=s.length,L=!0,H=[],Z=H;if(p)L=!1,_=Ah;else if(O>=l){var pe=c?null:dp(s);if(pe)return fu(pe);L=!1,_=su,Z=new tr}else Z=c?[]:H;e:for(;++v<O;){var me=s[v],we=c?c(me):me;if(me=p||me!==0?me:0,L&&we===we){for(var ke=Z.length;ke--;)if(Z[ke]===we)continue e;c&&Z.push(we),H.push(me)}else _(Z,we,p)||(Z!==H&&Z.push(we),H.push(me))}return H}function Nf(s,c){return c=mi(c,s),s=Ep(s,c),s==null||delete s[Ar(ja(c))]}function If(s,c,p,v){return es(s,c,p(nr(s,c)),v)}function Du(s,c,p,v){for(var _=s.length,O=v?_:-1;(v?O--:++O<_)&&c(s[O],O,s););return p?za(s,v?0:O,v?O+1:_):za(s,v?O+1:0,v?_:O)}function ep(s,c){var p=s;return p instanceof ht&&(p=p.value()),Th(c,function(v,_){return _.func.apply(_.thisArg,Qi([v],_.args))},p)}function Lf(s,c,p){var v=s.length;if(v<2)return v?pi(s[0]):[];for(var _=-1,O=ne(v);++_<v;)for(var L=s[_],H=-1;++H<v;)H!=_&&(O[_]=nl(O[_]||L,s[H],c,p));return pi(In(O,1),c,p)}function tp(s,c,p){for(var v=-1,_=s.length,O=c.length,L={};++v<_;){var H=v<O?c[v]:r;p(L,s[v],H)}return L}function zf(s){return Cn(s)?s:[]}function np(s){return typeof s=="function"?s:jn}function mi(s,c){return it(s)?s:$f(s,c)?[s]:Op(It(s))}var ll=at;function gi(s,c,p){var v=s.length;return p=p===r?v:p,!c&&p>=v?s:za(s,c,p)}var ku=ci||function(s){return Zn.clearTimeout(s)};function Nu(s,c){if(c)return s.slice();var p=s.length,v=mu?mu(p):new s.constructor(p);return s.copy(v),v}function jf(s){var c=new s.constructor(s.byteLength);return new Uo(c).set(new Uo(s)),c}function ap(s,c){var p=c?jf(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function mx(s){var c=new s.constructor(s.source,Do.exec(s));return c.lastIndex=s.lastIndex,c}function L1(s){return Xs?Ot(Xs.call(s)):{}}function rp(s,c){var p=c?jf(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function ip(s,c){if(s!==c){var p=s!==r,v=s===null,_=s===s,O=Aa(s),L=c!==r,H=c===null,Z=c===c,pe=Aa(c);if(!H&&!pe&&!O&&s>c||O&&L&&Z&&!H&&!pe||v&&L&&Z||!p&&Z||!_)return 1;if(!v&&!O&&!pe&&s<c||pe&&p&&_&&!v&&!O||H&&p&&_||!L&&_||!Z)return-1}return 0}function z1(s,c,p){for(var v=-1,_=s.criteria,O=c.criteria,L=_.length,H=p.length;++v<L;){var Z=ip(_[v],O[v]);if(Z){if(v>=H)return Z;var pe=p[v];return Z*(pe=="desc"?-1:1)}}return s.index-c.index}function op(s,c,p,v){for(var _=-1,O=s.length,L=p.length,H=-1,Z=c.length,pe=on(O-L,0),me=ne(Z+pe),we=!v;++H<Z;)me[H]=c[H];for(;++_<L;)(we||_<O)&&(me[p[_]]=s[_]);for(;pe--;)me[H++]=s[_++];return me}function Pf(s,c,p,v){for(var _=-1,O=s.length,L=-1,H=p.length,Z=-1,pe=c.length,me=on(O-H,0),we=ne(me+pe),ke=!v;++_<me;)we[_]=s[_];for(var Fe=_;++Z<pe;)we[Fe+Z]=c[Z];for(;++L<H;)(ke||_<O)&&(we[Fe+p[L]]=s[_++]);return we}function ua(s,c){var p=-1,v=s.length;for(c||(c=ne(v));++p<v;)c[p]=s[p];return c}function _r(s,c,p,v){var _=!p;p||(p={});for(var O=-1,L=c.length;++O<L;){var H=c[O],Z=v?v(p[H],s[H],H,p,s):r;Z===r&&(Z=s[H]),_?va(p,H,Z):tl(p,H,Z)}return p}function sp(s,c){return _r(s,as(s),c)}function j1(s,c){return _r(s,yp(s),c)}function Iu(s,c){return function(p,v){var _=it(p)?tx:Qo,O=c?c():{};return _(p,s,Le(v,2),O)}}function ul(s){return at(function(c,p){var v=-1,_=p.length,O=_>1?p[_-1]:r,L=_>2?p[2]:r;for(O=s.length>3&&typeof O=="function"?(_--,O):r,L&&Qn(p[0],p[1],L)&&(O=_<3?r:O,_=1),c=Ot(c);++v<_;){var H=p[v];H&&s(c,H,v,O)}return c})}function Uf(s,c){return function(p,v){if(p==null)return p;if(!ta(p))return s(p,v);for(var _=p.length,O=c?_:-1,L=Ot(p);(c?O--:++O<_)&&v(L[O],O,L)!==!1;);return p}}function lp(s){return function(c,p,v){for(var _=-1,O=Ot(c),L=v(c),H=L.length;H--;){var Z=L[s?H:++_];if(p(O[Z],Z,O)===!1)break}return c}}function P1(s,c,p){var v=c&R,_=cl(s);function O(){var L=this&&this!==Zn&&this instanceof O?_:s;return L.apply(v?p:this,arguments)}return O}function Hf(s){return function(c){c=It(c);var p=jo(c)?gr(c):r,v=p?p[0]:c.charAt(0),_=p?gi(p,1).join(""):c.slice(1);return v[s]()+_}}function ts(s){return function(c){return Th(Tl(j0(c).replace(Xg,"")),s,"")}}function cl(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var p=er(s.prototype),v=s.apply(p,c);return fn(v)?v:p}}function gx(s,c,p){var v=cl(s);function _(){for(var O=arguments.length,L=ne(O),H=O,Z=rn(_);H--;)L[H]=arguments[H];var pe=O<3&&L[0]!==Z&&L[O-1]!==Z?[]:li(L,Z);if(O-=pe.length,O<p)return fp(s,c,ro,_.placeholder,r,L,pe,r,r,p-O);var me=this&&this!==Zn&&this instanceof _?v:s;return ka(me,this,L)}return _}function U1(s){return function(c,p,v){var _=Ot(c);if(!ta(c)){var O=Le(p,3);c=Fn(c),p=function(H){return O(_[H],H,_)}}var L=s(c,p,v);return L>-1?_[O?c[L]:L]:r}}function up(s){return Sr(function(c){var p=c.length,v=p,_=Kn.prototype.thru;for(s&&c.reverse();v--;){var O=c[v];if(typeof O!="function")throw new Bn(h);if(_&&!L&&dl(O)=="wrapper")var L=new Kn([],!0)}for(v=L?v:p;++v<p;){O=c[v];var H=dl(O),Z=H=="wrapper"?gp(O):r;Z&&hl(Z[0])&&Z[1]==(ce|re|te|X)&&!Z[4].length&&Z[9]==1?L=L[dl(Z[0])].apply(L,Z[3]):L=O.length==1&&hl(O)?L[H]():L.thru(O)}return function(){var pe=arguments,me=pe[0];if(L&&pe.length==1&&it(me))return L.plant(me).value();for(var we=0,ke=p?c[we].apply(this,pe):me;++we<p;)ke=c[we].call(this,ke);return ke}})}function ro(s,c,p,v,_,O,L,H,Z,pe){var me=c&ce,we=c&R,ke=c&q,Fe=c&(re|G),Je=c&ve,pt=ke?r:cl(s);function et(){for(var St=arguments.length,Ct=ne(St),kr=St;kr--;)Ct[kr]=arguments[kr];if(Fe)var qa=rn(et),Nr=p1(Ct,qa);if(v&&(Ct=op(Ct,v,_,Fe)),O&&(Ct=Pf(Ct,O,L,Fe)),St-=Nr,Fe&&St<pe){var Pn=li(Ct,qa);return fp(s,c,ro,et.placeholder,p,Ct,Pn,H,Z,pe-St)}var Ai=we?p:this,ps=ke?Ai[s]:s;return St=Ct.length,H?Ct=Qf(Ct,H):Je&&St>1&&Ct.reverse(),me&&Z<St&&(Ct.length=Z),this&&this!==Zn&&this instanceof et&&(ps=pt||cl(ps)),ps.apply(Ai,Ct)}return et}function Bf(s,c){return function(p,v){return Zh(p,s,c(v),{})}}function ns(s,c){return function(p,v){var _;if(p===r&&v===r)return c;if(p!==r&&(_=p),v!==r){if(_===r)return v;typeof p=="string"||typeof v=="string"?(p=xa(p),v=xa(v)):(p=I1(p),v=I1(v)),_=s(p,v)}return _}}function qf(s){return Sr(function(c){return c=Kt(c,Hn(Le())),at(function(p){var v=this;return s(c,function(_){return ka(_,v,p)})})})}function Lu(s,c){c=c===r?" ":xa(c);var p=c.length;if(p<2)return p?Ou(c,s):c;var v=Ou(c,Hr(s/Gs(c)));return jo(c)?gi(gr(v),0,s).join(""):v.slice(0,s)}function zu(s,c,p,v){var _=c&R,O=cl(s);function L(){for(var H=-1,Z=arguments.length,pe=-1,me=v.length,we=ne(me+Z),ke=this&&this!==Zn&&this instanceof L?O:s;++pe<me;)we[pe]=v[pe];for(;Z--;)we[pe++]=arguments[++H];return ka(ke,_?p:this,we)}return L}function cp(s){return function(c,p,v){return v&&typeof v!="number"&&Qn(c,p,v)&&(p=v=r),c=Si(c),p===r?(p=c,c=0):p=Si(p),v=v===r?c<p?1:-1:Si(v),Df(c,p,v,s)}}function fl(s){return function(c,p){return typeof c=="string"&&typeof p=="string"||(c=Ba(c),p=Ba(p)),s(c,p)}}function fp(s,c,p,v,_,O,L,H,Z,pe){var me=c&re,we=me?L:r,ke=me?r:L,Fe=me?O:r,Je=me?r:O;c|=me?te:ye,c&=~(me?ye:te),c&Y||(c&=-4);var pt=[s,c,_,Fe,we,Je,ke,H,Z,pe],et=p.apply(r,pt);return hl(s)&&Jt(et,pt),et.placeholder=v,Tp(et,s,c)}function ju(s){var c=tn[s];return function(p,v){if(p=Ba(p),v=v==null?0:Nn(lt(v),292),v&&zh(p)){var _=(It(p)+"e").split("e"),O=c(_[0]+"e"+(+_[1]+v));return _=(It(O)+"e").split("e"),+(_[0]+"e"+(+_[1]-v))}return c(p)}}var dp=qo&&1/fu(new qo([,-0]))[1]==U?function(s){return new qo(s)}:a;function hp(s){return function(c){var p=Ln(c);return p==Xt?cu(c):p==He?lx(c):d1(c,s(c))}}function Yr(s,c,p,v,_,O,L,H){var Z=c&q;if(!Z&&typeof s!="function")throw new Bn(h);var pe=v?v.length:0;if(pe||(c&=-97,v=_=r),L=L===r?L:on(lt(L),0),H=H===r?H:lt(H),pe-=_?_.length:0,c&ye){var me=v,we=_;v=_=r}var ke=Z?r:gp(s),Fe=[s,c,p,v,_,me,we,O,L,H];if(ke&&vx(Fe,ke),s=Fe[0],c=Fe[1],p=Fe[2],v=Fe[3],_=Fe[4],H=Fe[9]=Fe[9]===r?Z?0:s.length:on(Fe[9]-pe,0),!H&&c&(re|G)&&(c&=-25),!c||c==R)var Je=P1(s,c,p);else c==re||c==G?Je=gx(s,c,H):(c==te||c==(R|te))&&!_.length?Je=zu(s,c,p,v):Je=ro.apply(r,Fe);var pt=ke?Kh:Jt;return Tp(pt(Je,Fe),s,c)}function io(s,c,p,v){return s===r||Mr(s,Po[p])&&!jt.call(v,p)?c:s}function pp(s,c,p,v,_,O){return fn(s)&&fn(c)&&(O.set(c,s),Au(s,c,r,pp,O),O.delete(c)),s}function H1(s){return Cl(s)?r:s}function mp(s,c,p,v,_,O){var L=p&j,H=s.length,Z=c.length;if(H!=Z&&!(L&&Z>H))return!1;var pe=O.get(s),me=O.get(c);if(pe&&me)return pe==c&&me==s;var we=-1,ke=!0,Fe=p&D?new tr:r;for(O.set(s,c),O.set(c,s);++we<H;){var Je=s[we],pt=c[we];if(v)var et=L?v(pt,Je,we,c,s,O):v(Je,pt,we,s,c,O);if(et!==r){if(et)continue;ke=!1;break}if(Fe){if(!of(c,function(St,Ct){if(!su(Fe,Ct)&&(Je===St||_(Je,St,p,v,O)))return Fe.push(Ct)})){ke=!1;break}}else if(!(Je===pt||_(Je,pt,p,v,O))){ke=!1;break}}return O.delete(s),O.delete(c),ke}function Ff(s,c,p,v,_,O,L){switch(p){case ia:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case zr:return!(s.byteLength!=c.byteLength||!O(new Uo(s),new Uo(c)));case Me:case We:case Mn:return Mr(+s,+c);case Ke:return s.name==c.name&&s.message==c.message;case Ge:case Xn:return s==c+"";case Xt:var H=cu;case He:var Z=v&j;if(H||(H=fu),s.size!=c.size&&!Z)return!1;var pe=L.get(s);if(pe)return pe==c;v|=D,L.set(s,c);var me=mp(H(s),H(c),v,_,O,L);return L.delete(s),me;case ra:if(Xs)return Xs.call(s)==Xs.call(c)}return!1}function B1(s,c,p,v,_,O){var L=p&j,H=Yf(s),Z=H.length,pe=Yf(c),me=pe.length;if(Z!=me&&!L)return!1;for(var we=Z;we--;){var ke=H[we];if(!(L?ke in c:jt.call(c,ke)))return!1}var Fe=O.get(s),Je=O.get(c);if(Fe&&Je)return Fe==c&&Je==s;var pt=!0;O.set(s,c),O.set(c,s);for(var et=L;++we<Z;){ke=H[we];var St=s[ke],Ct=c[ke];if(v)var kr=L?v(Ct,St,ke,c,s,O):v(St,Ct,ke,s,c,O);if(!(kr===r?St===Ct||_(St,Ct,p,v,O):kr)){pt=!1;break}et||(et=ke=="constructor")}if(pt&&!et){var qa=s.constructor,Nr=c.constructor;qa!=Nr&&"constructor"in s&&"constructor"in c&&!(typeof qa=="function"&&qa instanceof qa&&typeof Nr=="function"&&Nr instanceof Nr)&&(pt=!1)}return O.delete(s),O.delete(c),pt}function Sr(s){return Ap(Zf(s,r,Lp),s+"")}function Yf(s){return Su(s,Fn,as)}function Gf(s){return Su(s,Ta,yp)}var gp=vu?function(s){return vu.get(s)}:a;function dl(s){for(var c=s.name+"",p=pn[c],v=jt.call(pn,c)?p.length:0;v--;){var _=p[v],O=_.func;if(O==null||O==s)return _.name}return c}function rn(s){var c=jt.call(C,"placeholder")?C:s;return c.placeholder}function Le(){var s=C.iteratee||Ed;return s=s===Ed?Eu:s,arguments.length?s(arguments[0],arguments[1]):s}function Pu(s,c){var p=s.__data__;return wp(c)?p[typeof c=="string"?"string":"hash"]:p.map}function Vf(s){for(var c=Fn(s),p=c.length;p--;){var v=c[p],_=s[v];c[p]=[v,_,Sp(_)]}return c}function oo(s,c){var p=cf(s,c);return Sn(p)?p:r}function q1(s){var c=jt.call(s,kn),p=s[kn];try{s[kn]=r;var v=!0}catch{}var _=Vs.call(s);return v&&(c?s[kn]=p:delete s[kn]),_}var as=mf?function(s){return s==null?[]:(s=Ot(s),Zi(mf(s),function(c){return Ih.call(s,c)}))}:oe,yp=mf?function(s){for(var c=[];s;)Qi(c,as(s)),s=$s(s);return c}:oe,Ln=ea;(Ka&&Ln(new Ka(new ArrayBuffer(1)))!=ia||ya&&Ln(new ya)!=Xt||vr&&Ln(vr.resolve())!=Ra||qo&&Ln(new qo)!=He||Fo&&Ln(new Fo)!=Bt)&&(Ln=function(s){var c=ea(s),p=c==xn?s.constructor:r,v=p?Tr(p):"";if(v)switch(v){case nn:return ia;case _t:return Xt;case Ji:return Ra;case Ja:return He;case jh:return Bt}return c});function F1(s,c,p){for(var v=-1,_=p.length;++v<_;){var O=p[v],L=O.size;switch(O.type){case"drop":s+=L;break;case"dropRight":c-=L;break;case"take":c=Nn(c,s+L);break;case"takeRight":s=on(s,c-L);break}}return{start:s,end:c}}function yx(s){var c=s.match(yh);return c?c[1].split(jg):[]}function Uu(s,c,p){c=mi(c,s);for(var v=-1,_=c.length,O=!1;++v<_;){var L=Ar(c[v]);if(!(O=s!=null&&p(s,L)))break;s=s[L]}return O||++v!=_?O:(_=s==null?0:s.length,!!_&&ls(_)&&Cr(L,_)&&(it(s)||mo(s)))}function vp(s){var c=s.length,p=new s.constructor(c);return c&&typeof s[0]=="string"&&jt.call(s,"index")&&(p.index=s.index,p.input=s.input),p}function bp(s){return typeof s.constructor=="function"&&!rs(s)?er($s(s)):{}}function Y1(s,c,p){var v=s.constructor;switch(c){case zr:return jf(s);case Me:case We:return new v(+s);case ia:return ap(s,p);case jr:case Yl:case Is:case Gl:case Vl:case ai:case Gn:case $a:case Vn:return rp(s,p);case Xt:return new v;case Mn:case Xn:return new v(s);case Ge:return mx(s);case He:return new v;case ra:return L1(s)}}function G1(s,c){var p=c.length;if(!p)return s;var v=p-1;return c[v]=(p>1?"& ":"")+c[v],c=c.join(p>2?", ":" "),s.replace(zs,`{
|
|
626
|
+
/* [wrapped with `+c+`] */
|
|
627
|
+
`)}function xp(s){return it(s)||mo(s)||!!(Bo&&s&&s[Bo])}function Cr(s,c){var p=typeof s;return c=c??z,!!c&&(p=="number"||p!="symbol"&&Xl.test(s))&&s>-1&&s%1==0&&s<c}function Qn(s,c,p){if(!fn(p))return!1;var v=typeof c;return(v=="number"?ta(p)&&Cr(c,p.length):v=="string"&&c in p)?Mr(p[c],s):!1}function $f(s,c){if(it(s))return!1;var p=typeof s;return p=="number"||p=="symbol"||p=="boolean"||s==null||Aa(s)?!0:Ls.test(s)||!Vc.test(s)||c!=null&&s in Ot(c)}function wp(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function hl(s){var c=dl(s),p=C[c];if(typeof p!="function"||!(c in ht.prototype))return!1;if(s===p)return!0;var v=gp(p);return!!v&&s===v[0]}function _p(s){return!!Nh&&Nh in s}var V1=ff?Dr:he;function rs(s){var c=s&&s.constructor,p=typeof c=="function"&&c.prototype||Po;return s===p}function Sp(s){return s===s&&!fn(s)}function Gr(s,c){return function(p){return p==null?!1:p[s]===c&&(c!==r||s in Ot(p))}}function Cp(s){var c=sd(s,function(v){return p.size===b&&p.clear(),v}),p=c.cache;return c}function vx(s,c){var p=s[1],v=c[1],_=p|v,O=_<(R|q|ce),L=v==ce&&p==re||v==ce&&p==X&&s[7].length<=c[8]||v==(ce|X)&&c[7].length<=c[8]&&p==re;if(!(O||L))return s;v&R&&(s[2]=c[2],_|=p&R?0:Y);var H=c[3];if(H){var Z=s[3];s[3]=Z?op(Z,H,c[4]):H,s[4]=Z?li(s[3],w):c[4]}return H=c[5],H&&(Z=s[5],s[5]=Z?Pf(Z,H,c[6]):H,s[6]=Z?li(s[5],w):c[6]),H=c[7],H&&(s[7]=H),v&ce&&(s[8]=s[8]==null?c[8]:Nn(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=_,s}function $1(s){var c=[];if(s!=null)for(var p in Ot(s))c.push(p);return c}function yi(s){return Vs.call(s)}function Zf(s,c,p){return c=on(c===r?s.length-1:c,0),function(){for(var v=arguments,_=-1,O=on(v.length-c,0),L=ne(O);++_<O;)L[_]=v[c+_];_=-1;for(var H=ne(c+1);++_<c;)H[_]=v[_];return H[c]=p(L),ka(s,this,H)}}function Ep(s,c){return c.length<2?s:nr(s,za(c,0,-1))}function Qf(s,c){for(var p=s.length,v=Nn(c.length,p),_=ua(s);v--;){var O=c[v];s[v]=Cr(O,p)?_[O]:r}return s}function is(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var Jt=pl(Kh),Hu=pf||function(s,c){return Zn.setTimeout(s,c)},Ap=pl(D1);function Tp(s,c,p){var v=c+"";return Ap(s,G1(v,Vr(yx(v),p)))}function pl(s){var c=0,p=0;return function(){var v=yu(),_=le-(v-p);if(p=v,_>0){if(++c>=be)return arguments[0]}else c=0;return s.apply(r,arguments)}}function Er(s,c){var p=-1,v=s.length,_=v-1;for(c=c===r?v:c;++p<c;){var O=Jo(p,_),L=s[O];s[O]=s[p],s[p]=L}return s.length=c,s}var Op=Cp(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(qi,function(p,v,_,O){c.push(_?O.replace($n,"$1"):v||p)}),c});function Ar(s){if(typeof s=="string"||Aa(s))return s;var c=s+"";return c=="0"&&1/s==-U?"-0":c}function Tr(s){if(s!=null){try{return df.call(s)}catch{}try{return s+""}catch{}}return""}function Vr(s,c){return Za(W,function(p){var v="_."+p[0];c&p[1]&&!rf(s,v)&&s.push(v)}),s.sort()}function Rp(s){if(s instanceof ht)return s.clone();var c=new Kn(s.__wrapped__,s.__chain__);return c.__actions__=ua(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function Mp(s,c,p){(p?Qn(s,c,p):c===r)?c=1:c=on(lt(c),0);var v=s==null?0:s.length;if(!v||c<1)return[];for(var _=0,O=0,L=ne(Hr(v/c));_<v;)L[O++]=za(s,_,_+=c);return L}function Z1(s){for(var c=-1,p=s==null?0:s.length,v=0,_=[];++c<p;){var O=s[c];O&&(_[v++]=O)}return _}function Dp(){var s=arguments.length;if(!s)return[];for(var c=ne(s-1),p=arguments[0],v=s;v--;)c[v-1]=arguments[v];return Qi(it(p)?ua(p):[p],In(c,1))}var kp=at(function(s,c){return Cn(s)?nl(s,In(c,1,Cn,!0)):[]}),Wf=at(function(s,c){var p=ja(c);return Cn(p)&&(p=r),Cn(s)?nl(s,In(c,1,Cn,!0),Le(p,2)):[]}),Q1=at(function(s,c){var p=ja(c);return Cn(p)&&(p=r),Cn(s)?nl(s,In(c,1,Cn,!0),r,p):[]});function vi(s,c,p){var v=s==null?0:s.length;return v?(c=p||c===r?1:lt(c),za(s,c<0?0:c,v)):[]}function An(s,c,p){var v=s==null?0:s.length;return v?(c=p||c===r?1:lt(c),c=v-c,za(s,0,c<0?0:c)):[]}function Np(s,c){return s&&s.length?Du(s,Le(c,3),!0,!0):[]}function W1(s,c){return s&&s.length?Du(s,Le(c,3),!0):[]}function qn(s,c,p,v){var _=s==null?0:s.length;return _?(p&&typeof p!="number"&&Qn(s,c,p)&&(p=0,v=_),no(s,c,p,v)):[]}function X1(s,c,p){var v=s==null?0:s.length;if(!v)return-1;var _=p==null?0:lt(p);return _<0&&(_=on(v+_,0)),sf(s,Le(c,3),_)}function Ip(s,c,p){var v=s==null?0:s.length;if(!v)return-1;var _=v-1;return p!==r&&(_=lt(p),_=p<0?on(v+_,0):Nn(_,v-1)),sf(s,Le(c,3),_,!0)}function Lp(s){var c=s==null?0:s.length;return c?In(s,1):[]}function sn(s){var c=s==null?0:s.length;return c?In(s,U):[]}function wa(s,c){var p=s==null?0:s.length;return p?(c=c===r?1:lt(c),In(s,c)):[]}function bi(s){for(var c=-1,p=s==null?0:s.length,v={};++c<p;){var _=s[c];v[_[0]]=_[1]}return v}function zp(s){return s&&s.length?s[0]:r}function K1(s,c,p){var v=s==null?0:s.length;if(!v)return-1;var _=p==null?0:lt(p);return _<0&&(_=on(v+_,0)),Ys(s,c,_)}function J1(s){var c=s==null?0:s.length;return c?za(s,0,-1):[]}var bx=at(function(s){var c=Kt(s,zf);return c.length&&c[0]===s[0]?Fr(c):[]}),Xf=at(function(s){var c=ja(s),p=Kt(s,zf);return c===ja(p)?c=r:p.pop(),p.length&&p[0]===s[0]?Fr(p,Le(c,2)):[]}),_a=at(function(s){var c=ja(s),p=Kt(s,zf);return c=typeof c=="function"?c:r,c&&p.pop(),p.length&&p[0]===s[0]?Fr(p,r,c):[]});function Or(s,c){return s==null?"":Wa.call(s,c)}function ja(s){var c=s==null?0:s.length;return c?s[c-1]:r}function Sa(s,c,p){var v=s==null?0:s.length;if(!v)return-1;var _=v;return p!==r&&(_=lt(p),_=_<0?on(v+_,0):Nn(_,v-1)),c===c?cx(s,c,_):sf(s,l1,_,!0)}function e0(s,c){return s&&s.length?M1(s,lt(c)):r}var xi=at(so);function so(s,c){return s&&s.length&&c&&c.length?cn(s,c):s}function wi(s,c,p){return s&&s.length&&c&&c.length?cn(s,c,Le(p,2)):s}function jp(s,c,p){return s&&s.length&&c&&c.length?cn(s,c,r,p):s}var Pp=Sr(function(s,c){var p=s==null?0:s.length,v=Wo(s,c);return Tu(s,Kt(c,function(_){return Cr(_,p)?+_:_}).sort(ip)),v});function Rr(s,c){var p=[];if(!(s&&s.length))return p;var v=-1,_=[],O=s.length;for(c=Le(c,3);++v<O;){var L=s[v];c(L,v,s)&&(p.push(L),_.push(v))}return Tu(s,_),p}function Kf(s){return s==null?s:Ki.call(s)}function ml(s,c,p){var v=s==null?0:s.length;return v?(p&&typeof p!="number"&&Qn(s,c,p)?(c=0,p=v):(c=c==null?0:lt(c),p=p===r?v:lt(p)),za(s,c,p)):[]}function Bu(s,c){return Ru(s,c)}function qu(s,c,p){return Mu(s,c,Le(p,2))}function gl(s,c){var p=s==null?0:s.length;if(p){var v=Ru(s,c);if(v<p&&Mr(s[v],c))return v}return-1}function t0(s,c){return Ru(s,c,!0)}function n0(s,c,p){return Mu(s,c,Le(p,2),!0)}function Fu(s,c){var p=s==null?0:s.length;if(p){var v=Ru(s,c,!0)-1;if(Mr(s[v],c))return v}return-1}function a0(s){return s&&s.length?Jh(s):[]}function Jf(s,c){return s&&s.length?Jh(s,Le(c,2)):[]}function r0(s){var c=s==null?0:s.length;return c?za(s,1,c):[]}function xx(s,c,p){return s&&s.length?(c=p||c===r?1:lt(c),za(s,0,c<0?0:c)):[]}function wx(s,c,p){var v=s==null?0:s.length;return v?(c=p||c===r?1:lt(c),c=v-c,za(s,c<0?0:c,v)):[]}function Dt(s,c){return s&&s.length?Du(s,Le(c,3),!1,!0):[]}function Qt(s,c){return s&&s.length?Du(s,Le(c,3)):[]}var yt=at(function(s){return pi(In(s,1,Cn,!0))}),xt=at(function(s){var c=ja(s);return Cn(c)&&(c=r),pi(In(s,1,Cn,!0),Le(c,2))}),Pt=at(function(s){var c=ja(s);return c=typeof c=="function"?c:r,pi(In(s,1,Cn,!0),r,c)});function Pa(s){return s&&s.length?pi(s):[]}function lo(s,c){return s&&s.length?pi(s,Le(c,2)):[]}function yl(s,c){return c=typeof c=="function"?c:r,s&&s.length?pi(s,r,c):[]}function Yu(s){if(!(s&&s.length))return[];var c=0;return s=Zi(s,function(p){if(Cn(p))return c=on(p.length,c),!0}),uf(c,function(p){return Kt(s,ou(p))})}function $r(s,c){if(!(s&&s.length))return[];var p=Yu(s);return c==null?p:Kt(p,function(v){return ka(c,r,v)})}var mn=at(function(s,c){return Cn(s)?nl(s,c):[]}),uo=at(function(s){return Lf(Zi(s,Cn))}),os=at(function(s){var c=ja(s);return Cn(c)&&(c=r),Lf(Zi(s,Cn),Le(c,2))}),Up=at(function(s){var c=ja(s);return c=typeof c=="function"?c:r,Lf(Zi(s,Cn),r,c)}),Ua=at(Yu);function vl(s,c){return tp(s||[],c||[],tl)}function Gu(s,c){return tp(s||[],c||[],es)}var Ca=at(function(s){var c=s.length,p=c>1?s[c-1]:r;return p=typeof p=="function"?(s.pop(),p):r,$r(s,p)});function ed(s){var c=C(s);return c.__chain__=!0,c}function td(s,c){return c(s),s}function Vu(s,c){return c(s)}var nd=Sr(function(s){var c=s.length,p=c?s[0]:0,v=this.__wrapped__,_=function(O){return Wo(O,s)};return c>1||this.__actions__.length||!(v instanceof ht)||!Cr(p)?this.thru(_):(v=v.slice(p,+p+(c?1:0)),v.__actions__.push({func:Vu,args:[_],thisArg:r}),new Kn(v,this.__chain__).thru(function(O){return c&&!O.length&&O.push(r),O}))});function ad(){return ed(this)}function co(){return new Kn(this.value(),this.__chain__)}function zn(){this.__values__===r&&(this.__values__=um(this.value()));var s=this.__index__>=this.__values__.length,c=s?r:this.__values__[this.__index__++];return{done:s,value:c}}function fo(){return this}function bl(s){for(var c,p=this;p instanceof Ks;){var v=Rp(p);v.__index__=0,v.__values__=r,c?_.__wrapped__=v:c=v;var _=v;p=p.__wrapped__}return _.__wrapped__=s,c}function _i(){var s=this.__wrapped__;if(s instanceof ht){var c=s;return this.__actions__.length&&(c=new ht(this)),c=c.reverse(),c.__actions__.push({func:Vu,args:[Kf],thisArg:r}),new Kn(c,this.__chain__)}return this.thru(Kf)}function Hp(){return ep(this.__wrapped__,this.__actions__)}var Bp=Iu(function(s,c,p){jt.call(s,p)?++s[p]:va(s,p,1)});function i0(s,c,p){var v=it(s)?o1:Vh;return p&&Qn(s,c,p)&&(c=r),v(s,Le(c,3))}function $u(s,c){var p=it(s)?Zi:al;return p(s,Le(c,3))}var qp=U1(X1),Ha=U1(Ip);function o0(s,c){return In(Zu(s,c),1)}function Ea(s,c){return In(Zu(s,c),U)}function s0(s,c,p){return p=p===r?1:lt(p),In(Zu(s,c),p)}function Fp(s,c){var p=it(s)?Za:sa;return p(s,Le(c,3))}function l0(s,c){var p=it(s)?i1:Cf;return p(s,Le(c,3))}var ho=Iu(function(s,c,p){jt.call(s,p)?s[p].push(c):va(s,p,[c])});function rd(s,c,p,v){s=ta(s)?s:hs(s),p=p&&!v?lt(p):0;var _=s.length;return p<0&&(p=on(_+p,0)),us(s)?p<=_&&s.indexOf(c,p)>-1:!!_&&Ys(s,c,p)>-1}var Yp=at(function(s,c,p){var v=-1,_=typeof c=="function",O=ta(s)?ne(s.length):[];return sa(s,function(L){O[++v]=_?ka(c,L,p):il(L,c,p)}),O}),xl=Iu(function(s,c,p){va(s,p,c)});function Zu(s,c){var p=it(s)?Kt:un;return p(s,Le(c,3))}function u0(s,c,p,v){return s==null?[]:(it(c)||(c=c==null?[]:[c]),p=v?r:p,it(p)||(p=p==null?[]:[p]),Rf(s,c,p))}var c0=Iu(function(s,c,p){s[p?0:1].push(c)},function(){return[[],[]]});function f0(s,c,p){var v=it(s)?Th:c1,_=arguments.length<3;return v(s,Le(c,4),p,_,sa)}function id(s,c,p){var v=it(s)?nx:c1,_=arguments.length<3;return v(s,Le(c,4),p,_,Cf)}function Gp(s,c){var p=it(s)?Zi:al;return p(s,Wu(Le(c,3)))}function _x(s){var c=it(s)?bf:kf;return c(s)}function Sx(s,c,p){(p?Qn(s,c,p):c===r)?c=1:c=lt(c);var v=it(s)?xf:Xh;return v(s,c)}function Cx(s){var c=it(s)?wf:k1;return c(s)}function d0(s){if(s==null)return 0;if(ta(s))return us(s)?Gs(s):s.length;var c=Ln(s);return c==Xt||c==He?s.size:Ko(s).length}function h0(s,c,p){var v=it(s)?of:N1;return p&&Qn(s,c,p)&&(c=r),v(s,Le(c,3))}var wl=at(function(s,c){if(s==null)return[];var p=c.length;return p>1&&Qn(s,c[0],c[1])?c=[]:p>2&&Qn(c[0],c[1],c[2])&&(c=[c[0]]),Rf(s,In(c,1),[])}),ss=S1||function(){return Zn.Date.now()};function p0(s,c){if(typeof c!="function")throw new Bn(h);return s=lt(s),function(){if(--s<1)return c.apply(this,arguments)}}function Vp(s,c,p){return c=p?r:c,c=s&&c==null?s.length:c,Yr(s,ce,r,r,r,r,c)}function $p(s,c){var p;if(typeof c!="function")throw new Bn(h);return s=lt(s),function(){return--s>0&&(p=c.apply(this,arguments)),s<=1&&(c=r),p}}var od=at(function(s,c,p){var v=R;if(p.length){var _=li(p,rn(od));v|=te}return Yr(s,v,c,p,_)}),Zp=at(function(s,c,p){var v=R|q;if(p.length){var _=li(p,rn(Zp));v|=te}return Yr(c,v,s,p,_)});function Qp(s,c,p){c=p?r:c;var v=Yr(s,re,r,r,r,r,r,c);return v.placeholder=Qp.placeholder,v}function Qu(s,c,p){c=p?r:c;var v=Yr(s,G,r,r,r,r,r,c);return v.placeholder=Qu.placeholder,v}function Wp(s,c,p){var v,_,O,L,H,Z,pe=0,me=!1,we=!1,ke=!0;if(typeof s!="function")throw new Bn(h);c=Ba(c)||0,fn(p)&&(me=!!p.leading,we="maxWait"in p,O=we?on(Ba(p.maxWait)||0,c):O,ke="trailing"in p?!!p.trailing:ke);function Fe(Pn){var Ai=v,ps=_;return v=_=r,pe=Pn,L=s.apply(ps,Ai),L}function Je(Pn){return pe=Pn,H=Hu(St,c),me?Fe(Pn):L}function pt(Pn){var Ai=Pn-Z,ps=Pn-pe,FA=c-Ai;return we?Nn(FA,O-ps):FA}function et(Pn){var Ai=Pn-Z,ps=Pn-pe;return Z===r||Ai>=c||Ai<0||we&&ps>=O}function St(){var Pn=ss();if(et(Pn))return Ct(Pn);H=Hu(St,pt(Pn))}function Ct(Pn){return H=r,ke&&v?Fe(Pn):(v=_=r,L)}function kr(){H!==r&&ku(H),pe=0,v=Z=_=H=r}function qa(){return H===r?L:Ct(ss())}function Nr(){var Pn=ss(),Ai=et(Pn);if(v=arguments,_=this,Z=Pn,Ai){if(H===r)return Je(Z);if(we)return ku(H),H=Hu(St,c),Fe(Z)}return H===r&&(H=Hu(St,c)),L}return Nr.cancel=kr,Nr.flush=qa,Nr}var m0=at(function(s,c){return to(s,1,c)}),Ut=at(function(s,c,p){return to(s,Ba(c)||0,p)});function Xp(s){return Yr(s,ve)}function sd(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Bn(h);var p=function(){var v=arguments,_=c?c.apply(this,v):v[0],O=p.cache;if(O.has(_))return O.get(_);var L=s.apply(this,v);return p.cache=O.set(_,L)||O,L};return p.cache=new(sd.Cache||qt),p}sd.Cache=qt;function Wu(s){if(typeof s!="function")throw new Bn(h);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function Ex(s){return $p(2,s)}var Ax=ll(function(s,c){c=c.length==1&&it(c[0])?Kt(c[0],Hn(Le())):Kt(In(c,1),Hn(Le()));var p=c.length;return at(function(v){for(var _=-1,O=Nn(v.length,p);++_<O;)v[_]=c[_].call(this,v[_]);return ka(s,this,v)})}),Kp=at(function(s,c){var p=li(c,rn(Kp));return Yr(s,te,r,c,p)}),Xu=at(function(s,c){var p=li(c,rn(Xu));return Yr(s,ye,r,c,p)}),_l=Sr(function(s,c){return Yr(s,X,r,r,r,c)});function Jp(s,c){if(typeof s!="function")throw new Bn(h);return c=c===r?c:lt(c),at(s,c)}function ld(s,c){if(typeof s!="function")throw new Bn(h);return c=c==null?0:on(lt(c),0),at(function(p){var v=p[c],_=gi(p,0,c);return v&&Qi(_,v),ka(s,this,_)})}function em(s,c,p){var v=!0,_=!0;if(typeof s!="function")throw new Bn(h);return fn(p)&&(v="leading"in p?!!p.leading:v,_="trailing"in p?!!p.trailing:_),Wp(s,c,{leading:v,maxWait:c,trailing:_})}function po(s){return Vp(s,1)}function Zr(s,c){return Kp(np(c),s)}function Ku(){if(!arguments.length)return[];var s=arguments[0];return it(s)?s:[s]}function Tx(s){return Jn(s,I)}function g0(s,c){return c=typeof c=="function"?c:r,Jn(s,I,c)}function y0(s){return Jn(s,E|I)}function v0(s,c){return c=typeof c=="function"?c:r,Jn(s,E|I,c)}function b0(s,c){return c==null||Gh(s,c,Fn(c))}function Mr(s,c){return s===c||s!==s&&c!==c}var tm=fl(Cu),x0=fl(function(s,c){return s>=c}),mo=di((function(){return arguments})())?di:function(s){return dn(s)&&jt.call(s,"callee")&&!Ih.call(s,"callee")},it=ne.isArray,nm=e1?Hn(e1):La;function ta(s){return s!=null&&ls(s.length)&&!Dr(s)}function Cn(s){return dn(s)&&ta(s)}function Ox(s){return s===!0||s===!1||dn(s)&&ea(s)==Me}var rr=Lh||he,Rx=t1?Hn(t1):_n;function w0(s){return dn(s)&&s.nodeType===1&&!Cl(s)}function vt(s){if(s==null)return!0;if(ta(s)&&(it(s)||typeof s=="string"||typeof s.splice=="function"||rr(s)||cs(s)||mo(s)))return!s.length;var c=Ln(s);if(c==Xt||c==He)return!s.size;if(rs(s))return!Ko(s).length;for(var p in s)if(jt.call(s,p))return!1;return!0}function am(s,c){return ao(s,c)}function ud(s,c,p){p=typeof p=="function"?p:r;var v=p?p(s,c):r;return v===r?ao(s,c,r,p):!!v}function Ju(s){if(!dn(s))return!1;var c=ea(s);return c==Ke||c==Ze||typeof s.message=="string"&&typeof s.name=="string"&&!Cl(s)}function _0(s){return typeof s=="number"&&zh(s)}function Dr(s){if(!fn(s))return!1;var c=ea(s);return c==kt||c==bn||c==_e||c==Va}function Sl(s){return typeof s=="number"&&s==lt(s)}function ls(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=z}function fn(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function dn(s){return s!=null&&typeof s=="object"}var S0=n1?Hn(n1):st;function Mx(s,c){return s===c||Nt(s,c,Vf(c))}function C0(s,c,p){return p=typeof p=="function"?p:r,Nt(s,c,Vf(c),p)}function E0(s){return A0(s)&&s!=+s}function Ft(s){if(V1(s))throw new rt(f);return Sn(s)}function rm(s){return s===null}function Wn(s){return s==null}function A0(s){return typeof s=="number"||dn(s)&&ea(s)==Mn}function Cl(s){if(!dn(s)||ea(s)!=xn)return!1;var c=$s(s);if(c===null)return!0;var p=jt.call(c,"constructor")&&c.constructor;return typeof p=="function"&&p instanceof p&&df.call(p)==yr}var im=af?Hn(af):Af;function om(s){return Sl(s)&&s>=-z&&s<=z}var cd=a1?Hn(a1):ol;function us(s){return typeof s=="string"||!it(s)&&dn(s)&&ea(s)==Xn}function Aa(s){return typeof s=="symbol"||dn(s)&&ea(s)==ra}var cs=r1?Hn(r1):Xo;function sm(s){return s===r}function lm(s){return dn(s)&&Ln(s)==Bt}function Dx(s){return dn(s)&&ea(s)==pr}var T0=fl(Qh),kx=fl(function(s,c){return s<=c});function um(s){if(!s)return[];if(ta(s))return us(s)?gr(s):ua(s);if(gu&&s[gu])return Dh(s[gu]());var c=Ln(s),p=c==Xt?cu:c==He?fu:hs;return p(s)}function Si(s){if(!s)return s===0?s:0;if(s=Ba(s),s===U||s===-U){var c=s<0?-1:1;return c*xe}return s===s?s:0}function lt(s){var c=Si(s),p=c%1;return c===c?p?c-p:c:0}function Ci(s){return s?qr(lt(s),0,Ve):0}function Ba(s){if(typeof s=="number")return s;if(Aa(s))return Oe;if(fn(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=fn(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=Oh(s);var p=Xb.test(s);return p||Ug.test(s)?Lo(s.slice(2),p?2:8):vh.test(s)?Oe:+s}function cm(s){return _r(s,Ta(s))}function fm(s){return s?qr(lt(s),-z,z):s===0?s:0}function It(s){return s==null?"":xa(s)}var Nx=ul(function(s,c){if(rs(c)||ta(c)){_r(c,Fn(c),s);return}for(var p in c)jt.call(c,p)&&tl(s,p,c[p])}),dm=ul(function(s,c){_r(c,Ta(c),s)}),El=ul(function(s,c,p,v){_r(c,Ta(c),s,v)}),hm=ul(function(s,c,p,v){_r(c,Fn(c),s,v)}),Ix=Sr(Wo);function ir(s,c){var p=er(s);return c==null?p:Yh(p,c)}var pm=at(function(s,c){s=Ot(s);var p=-1,v=c.length,_=v>2?c[2]:r;for(_&&Qn(c[0],c[1],_)&&(v=1);++p<v;)for(var O=c[p],L=Ta(O),H=-1,Z=L.length;++H<Z;){var pe=L[H],me=s[pe];(me===r||Mr(me,Po[pe])&&!jt.call(s,pe))&&(s[pe]=O[pe])}return s}),O0=at(function(s){return s.push(r,pp),ka(fs,r,s)});function R0(s,c){return s1(s,Le(c,3),ba)}function M0(s,c){return s1(s,Le(c,3),Ef)}function ec(s,c){return s==null?s:wu(s,Le(c,3),Ta)}function or(s,c){return s==null?s:rl(s,Le(c,3),Ta)}function D0(s,c){return s&&ba(s,Le(c,3))}function fd(s,c){return s&&Ef(s,Le(c,3))}function Ei(s){return s==null?[]:_u(s,Fn(s))}function Lx(s){return s==null?[]:_u(s,Ta(s))}function mm(s,c,p){var v=s==null?r:nr(s,c);return v===r?p:v}function Al(s,c){return s!=null&&Uu(s,c,$h)}function dd(s,c){return s!=null&&Uu(s,c,Ia)}var zx=Bf(function(s,c,p){c!=null&&typeof c.toString!="function"&&(c=Vs.call(c)),s[c]=p},_m(jn)),jx=Bf(function(s,c,p){c!=null&&typeof c.toString!="function"&&(c=Vs.call(c)),jt.call(s,c)?s[c].push(p):s[c]=[p]},Le),Px=at(il);function Fn(s){return ta(s)?Zo(s):Ko(s)}function Ta(s){return ta(s)?Zo(s,!0):sl(s)}function Ux(s,c){var p={};return c=Le(c,3),ba(s,function(v,_,O){va(p,c(v,_,O),v)}),p}function Hx(s,c){var p={};return c=Le(c,3),ba(s,function(v,_,O){va(p,_,c(v,_,O))}),p}var k0=ul(function(s,c,p){Au(s,c,p)}),fs=ul(function(s,c,p,v){Au(s,c,p,v)}),tc=Sr(function(s,c){var p={};if(s==null)return p;var v=!1;c=Kt(c,function(O){return O=mi(O,s),v||(v=O.length>1),O}),_r(s,Gf(s),p),v&&(p=Jn(p,E|A|I,H1));for(var _=c.length;_--;)Nf(p,c[_]);return p});function N0(s,c){return ds(s,Wu(Le(c)))}var Bx=Sr(function(s,c){return s==null?{}:Wh(s,c)});function ds(s,c){if(s==null)return{};var p=Kt(Gf(s),function(v){return[v]});return c=Le(c),Mf(s,p,function(v,_){return c(v,_[0])})}function nc(s,c,p){c=mi(c,s);var v=-1,_=c.length;for(_||(_=1,s=r);++v<_;){var O=s==null?r:s[Ar(c[v])];O===r&&(v=_,O=p),s=Dr(O)?O.call(s):O}return s}function I0(s,c,p){return s==null?s:es(s,c,p)}function hd(s,c,p,v){return v=typeof v=="function"?v:r,s==null?s:es(s,c,p,v)}var pd=hp(Fn),md=hp(Ta);function gd(s,c,p){var v=it(s),_=v||rr(s)||cs(s);if(c=Le(c,4),p==null){var O=s&&s.constructor;_?p=v?new O:[]:fn(s)?p=Dr(O)?er($s(s)):{}:p={}}return(_?Za:ba)(s,function(L,H,Z){return c(p,L,H,Z)}),p}function L0(s,c){return s==null?!0:Nf(s,c)}function z0(s,c,p){return s==null?s:If(s,c,np(p))}function qx(s,c,p,v){return v=typeof v=="function"?v:r,s==null?s:If(s,c,np(p),v)}function hs(s){return s==null?[]:Rh(s,Fn(s))}function Fx(s){return s==null?[]:Rh(s,Ta(s))}function gm(s,c,p){return p===r&&(p=c,c=r),p!==r&&(p=Ba(p),p=p===p?p:0),c!==r&&(c=Ba(c),c=c===c?c:0),qr(Ba(s),c,p)}function Yx(s,c,p){return c=Si(c),p===r?(p=c,c=0):p=Si(p),s=Ba(s),ar(s,c,p)}function yd(s,c,p){if(p&&typeof p!="boolean"&&Qn(s,c,p)&&(c=p=r),p===r&&(typeof c=="boolean"?(p=c,c=r):typeof s=="boolean"&&(p=s,s=r)),s===r&&c===r?(s=0,c=1):(s=Si(s),c===r?(c=s,s=0):c=Si(c)),s>c){var v=s;s=c,c=v}if(p||s%1||c%1){var _=Na();return Nn(s+_*(c-s+ma("1e-"+((_+"").length-1))),c)}return Jo(s,c)}var vd=ts(function(s,c,p){return c=c.toLowerCase(),s+(p?ac(c):c)});function ac(s){return wd(It(s).toLowerCase())}function j0(s){return s=It(s),s&&s.replace(bh,lu).replace(Ch,"")}function rc(s,c,p){s=It(s),c=xa(c);var v=s.length;p=p===r?v:qr(lt(p),0,v);var _=p;return p-=c.length,p>=0&&s.slice(p,_)==c}function Gx(s){return s=It(s),s&&At.test(s)?s.replace(ze,uu):s}function P0(s){return s=It(s),s&&$c.test(s)?s.replace(Zl,"\\$&"):s}var U0=ts(function(s,c,p){return s+(p?"-":"")+c.toLowerCase()}),H0=ts(function(s,c,p){return s+(p?" ":"")+c.toLowerCase()}),B0=Hf("toLowerCase");function ym(s,c,p){s=It(s),c=lt(c);var v=c?Gs(s):0;if(!c||v>=c)return s;var _=(c-v)/2;return Lu(Qs(_),p)+s+Lu(Hr(_),p)}function q0(s,c,p){s=It(s),c=lt(c);var v=c?Gs(s):0;return c&&v<c?s+Lu(c-v,p):s}function F0(s,c,p){s=It(s),c=lt(c);var v=c?Gs(s):0;return c&&v<c?Lu(c-v,p)+s:s}function bd(s,c,p){return p||c==null?c=0:c&&(c=+c),Xa(It(s).replace(Ql,""),c||0)}function Vx(s,c,p){return(p?Qn(s,c,p):c===r)?c=1:c=lt(c),Ou(It(s),c)}function $x(){var s=arguments,c=It(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var vm=ts(function(s,c,p){return s+(p?"_":"")+c.toLowerCase()});function bm(s,c,p){return p&&typeof p!="number"&&Qn(s,c,p)&&(c=p=r),p=p===r?Ve:p>>>0,p?(s=It(s),s&&(typeof c=="string"||c!=null&&!im(c))&&(c=xa(c),!c&&jo(s))?gi(gr(s),0,p):s.split(c,p)):[]}var xd=ts(function(s,c,p){return s+(p?" ":"")+wd(c)});function xm(s,c,p){return s=It(s),p=p==null?0:qr(lt(p),0,s.length),c=xa(c),s.slice(p,p+c.length)==c}function Y0(s,c,p){var v=C.templateSettings;p&&Qn(s,c,p)&&(c=r),s=It(s),c=El({},c,v,io);var _=El({},c.imports,v.imports,io),O=Fn(_),L=Rh(_,O),H,Z,pe=0,me=c.interpolate||ri,we="__p += '",ke=hu((c.escape||ri).source+"|"+me.source+"|"+(me===$l?ha:ri).source+"|"+(c.evaluate||ri).source+"|$","g"),Fe="//# sourceURL="+(jt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$i+"]")+`
|
|
628
|
+
`;s.replace(ke,function(et,St,Ct,kr,qa,Nr){return Ct||(Ct=kr),we+=s.slice(pe,Nr).replace(js,sx),St&&(H=!0,we+=`' +
|
|
629
|
+
__e(`+St+`) +
|
|
630
|
+
'`),qa&&(Z=!0,we+=`';
|
|
631
|
+
`+qa+`;
|
|
632
|
+
__p += '`),Ct&&(we+=`' +
|
|
633
|
+
((__t = (`+Ct+`)) == null ? '' : __t) +
|
|
634
|
+
'`),pe=Nr+et.length,et}),we+=`';
|
|
635
|
+
`;var Je=jt.call(c,"variable")&&c.variable;if(!Je)we=`with (obj) {
|
|
636
|
+
`+we+`
|
|
637
|
+
}
|
|
638
|
+
`;else if(Fi.test(Je))throw new rt(g);we=(Z?we.replace(Yc,""):we).replace(Gc,"$1").replace(gh,"$1;"),we="function("+(Je||"obj")+`) {
|
|
639
639
|
`+(Je?"":`obj || (obj = {});
|
|
640
640
|
`)+"var __t, __p = ''"+(H?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join;
|
|
641
641
|
function print() { __p += __j.call(arguments, '') }
|
|
642
642
|
`:`;
|
|
643
|
-
`)+
|
|
644
|
-
}`;var gt=d(function(){return _t(O,Fe+"return "+Se).apply(r,I)});if(gt.source=Se,Au(gt))throw gt;return gt}function zu(s){return Et(s).toLowerCase()}function Kp(s){return Et(s).toUpperCase()}function id(s,u,p){if(s=Et(s),s&&(p||u===r))return Lg(s);if(!s||!(u=da(u)))return s;var v=ua(s),_=ua(u),O=gh(v,_),I=Ts(v,_)+1;return hi(v,O,I).join("")}function R0(s,u,p){if(s=Et(s),s&&(p||u===r))return s.slice(0,bh(s)+1);if(!s||!(u=da(u)))return s;var v=ua(s),_=Ts(v,ua(u))+1;return hi(v,0,_).join("")}function Dx(s,u,p){if(s=Et(s),s&&(p||u===r))return s.replace(Vn,"");if(!s||!(u=da(u)))return s;var v=ua(s),_=gh(v,ua(u));return hi(v,_).join("")}function od(s,u){var p=Ce,v=De;if(tn(u)){var _="separator"in u?u.separator:_;p="length"in u?ot(u.length):p,v="omission"in u?da(u.omission):v}s=Et(s);var O=s.length;if(Yi(s)){var I=ua(s);O=I.length}if(p>=O)return s;var H=p-Pn(v);if(H<1)return v;var Z=I?hi(I,0,H).join(""):s.slice(0,H);if(_===r)return Z+v;if(I&&(H+=Z.length-H),Fr(_)){if(s.slice(H).search(_)){var pe,ye=Z;for(_.global||(_=ei(_.source,Et(Do.exec(_))+"g")),_.lastIndex=0;pe=_.exec(ye);)var Se=pe.index;Z=Z.slice(0,Se===r?H:Se)}}else if(s.indexOf(da(_),H)!=H){var ke=Z.lastIndexOf(_);ke>-1&&(Z=Z.slice(0,ke))}return Z+v}function n(s){return s=Et(s),s&&bt.test(s)?s.replace(xe,Ug):s}var a=Qn(function(s,u,p){return s+(p?" ":"")+u.toUpperCase()}),o=rp("toUpperCase");function c(s,u,p){return s=Et(s),u=p?r:u,u===r?yh(s)?xh(s):Hb(s):s.match(u)||[]}var d=dt(function(s,u){try{return Na(s,r,u)}catch(p){return Au(p)?p:new Qe(p)}}),g=Kt(function(s,u){return er(u,function(p){p=Un(p),Ua(s,p,Xs(s[p],s))}),s});function w(s){var u=s==null?0:s.length,p=$e();return s=u?an(s,function(v){if(typeof v[1]!="function")throw new La(h);return[p(v[0]),v[1]]}):[],dt(function(v){for(var _=-1;++_<u;){var O=s[_];if(Na(O[0],this,v))return Na(O[1],this,v)}})}function A(s){return Kl(aa(s,S))}function L(s){return function(){return s}}function J(s,u){return s==null||s!==s?u:s}var ce=mi(),ge=mi(!0);function W(s){return s}function te(s){return rf(typeof s=="function"?s:aa(s,S))}function Ke(s){return Hh(aa(s,S))}function Ze(s,u){return Bh(s,aa(u,S))}var Ht=dt(function(s,u){return function(p){return qo(p,s,u)}}),V=dt(function(s,u){return function(p){return qo(s,p,u)}});function q(s,u,p){var v=Bn(u),_=Ho(u,v);p==null&&!(tn(u)&&(_.length||!v.length))&&(p=u,u=s,s=this,_=Ho(u,Bn(u)));var O=!(tn(p)&&"chain"in p)||!!p.chain,I=bi(s);return er(_,function(H){var Z=u[H];s[H]=Z,I&&(s.prototype[H]=function(){var pe=this.__chain__;if(O||pe){var ye=s(this.__wrapped__),Se=ye.__actions__=Ea(this.__actions__);return Se.push({func:Z,args:arguments,thisArg:s}),ye.__chain__=pe,ye}return Z.apply(s,Fi([this.value()],arguments))})}),s}function X(){return Dn._===this&&(Dn._=ar),this}function de(){}function ze(s){return s=ot(s),dt(function(u){return a1(u,s)})}var mt=ou(an),Ye=ou(kg),We=ou(dh);function Nn(s){return dp(s)?hh(Un(s)):Yh(s)}function Rt(s){return function(u){return s==null?r:Rr(s,u)}}var vo=op(),Mx=op(!0);function kx(){return[]}function Nx(){return!1}function D8(){return{}}function M8(){return""}function k8(){return!0}function N8(s,u){if(s=ot(s),s<1||s>z)return[];var p=P,v=hn(s,P);u=$e(u),s-=P;for(var _=Hc(v,u);++p<s;)u(p);return _}function I8(s){return rt(s)?an(s,Un):Va(s)?[s]:Ea(gp(Et(s)))}function L8(s){var u=++wh;return Et(s)+u}var z8=Fo(function(s,u){return s+u},0),P8=_f("ceil"),j8=Fo(function(s,u){return s/u},1),U8=_f("floor");function H8(s){return s&&s.length?zs(s,W,un):r}function B8(s,u){return s&&s.length?zs(s,$e(u,2),un):r}function q8(s){return Es(s,W)}function F8(s,u){return Es(s,$e(u,2))}function Y8(s){return s&&s.length?zs(s,W,sf):r}function G8(s,u){return s&&s.length?zs(s,$e(u,2),sf):r}var V8=Fo(function(s,u){return s*u},1),$8=_f("round"),Z8=Fo(function(s,u){return s-u},0);function Q8(s){return s&&s.length?Uc(s,W):0}function W8(s,u){return s&&s.length?Uc(s,$e(u,2)):0}return E.after=sx,E.ary=Q1,E.assign=h0,E.assignIn=p0,E.assignInWith=Qf,E.assignWith=yx,E.at=vx,E.before=W1,E.bind=Xs,E.bindAll=g,E.bindKey=Qo,E.castArray=ux,E.chain=Dp,E.chunk=Hn,E.compact=tx,E.concat=S1,E.cond=w,E.conforms=A,E.constant=L,E.countBy=Mp,E.create=bx,E.curry=Hf,E.curryRight=xu,E.debounce=Bf,E.defaults=xx,E.defaultsDeep=wx,E.defer=Wo,E.delay=qr,E.difference=E1,E.differenceBy=sn,E.differenceWith=Ca,E.drop=yi,E.dropRight=A1,E.dropRightWhile=C1,E.dropWhile=nx,E.fill=bp,E.filter=L1,E.flatMap=kp,E.flatMapDeep=Np,E.flatMapDepth=ix,E.flatten=xp,E.flattenDeep=Ba,E.flattenDepth=T1,E.flip=wu,E.flow=ce,E.flowRight=ge,E.fromPairs=no,E.functions=Ru,E.functionsIn=y0,E.groupBy=H1,E.initial=wp,E.intersection=_p,E.intersectionBy=Br,E.intersectionWith=O1,E.invert=Wf,E.invertBy=v0,E.invokeMap=Ws,E.iteratee=te,E.keyBy=jf,E.keys=Bn,E.keysIn=pa,E.map=vu,E.mapKeys=Mu,E.mapValues=Sx,E.matches=Ke,E.matchesProperty=Ze,E.memoize=qf,E.merge=Ex,E.mergeWith=x0,E.method=Ht,E.methodOf=V,E.mixin=q,E.negate=_u,E.nthArg=ze,E.omit=Xf,E.omitBy=Kf,E.once=X1,E.orderBy=q1,E.over=mt,E.overArgs=K1,E.overEvery=Ye,E.overSome=We,E.partial=Ff,E.partialRight=J1,E.partition=F1,E.pick=Yp,E.pickBy=w0,E.property=Nn,E.propertyOf=Rt,E.pull=R1,E.pullAll=Sp,E.pullAllBy=hu,E.pullAllWith=D1,E.pullAt=Lf,E.range=vo,E.rangeRight=Mx,E.rearg=Lp,E.reject=V1,E.remove=M1,E.rest=e0,E.reverse=Ep,E.sampleSize=$1,E.set=Ax,E.setWith=_0,E.shuffle=Z1,E.slice=ax,E.sortBy=ox,E.sortedUniq=io,E.sortedUniqBy=Ys,E.split=Rx,E.spread=t0,E.tail=Ap,E.take=vi,E.takeRight=mn,E.takeRightWhile=oo,E.takeWhile=Zo,E.tap=yu,E.throttle=lx,E.thru=Zs,E.toArray=Js,E.toPairs=Gp,E.toPairsIn=Vp,E.toPath=I8,E.toPlainObject=d0,E.transform=S0,E.unary=zp,E.union=Cp,E.unionBy=dr,E.unionWith=Gs,E.uniq=pu,E.uniqBy=Oa,E.uniqWith=Tp,E.unset=$p,E.unzip=mu,E.unzipWith=gu,E.update=E0,E.updateWith=Jf,E.values=al,E.valuesIn=Cx,E.without=zf,E.words=c,E.wrap=Pp,E.xor=so,E.xorBy=Kn,E.xorWith=lo,E.zip=Vs,E.zipObject=$s,E.zipObjectDeep=Op,E.zipWith=Rp,E.entries=Gp,E.entriesIn=Vp,E.extend=p0,E.extendWith=Qf,q(E,E),E.add=z8,E.attempt=d,E.camelCase=Wp,E.capitalize=Xp,E.ceil=P8,E.clamp=Zp,E.clone=cx,E.cloneDeep=fx,E.cloneDeepWith=n0,E.cloneWith=Su,E.conformsTo=wt,E.deburr=td,E.defaultTo=J,E.divide=j8,E.endsWith=po,E.eq=Ga,E.escape=mo,E.escapeRegExp=go,E.every=Qs,E.find=z1,E.findIndex=Ta,E.findKey=m0,E.findLast=P1,E.findLastIndex=fr,E.findLastKey=el,E.floor=U8,E.forEach=j1,E.forEachRight=U1,E.forIn=Ou,E.forInRight=g0,E.forOwn=_x,E.forOwnRight=tl,E.get=nl,E.gt=Yf,E.gte=jp,E.has=Fp,E.hasIn=Du,E.head=ao,E.identity=W,E.includes=B1,E.indexOf=ro,E.inRange=Qp,E.invoke=b0,E.isArguments=co,E.isArray=rt,E.isArrayBuffer=Eu,E.isArrayLike=Jn,E.isArrayLikeObject=en,E.isBoolean=a0,E.isBuffer=fo,E.isDate=dx,E.isElement=r0,E.isEmpty=i0,E.isEqual=Gf,E.isEqualWith=Ut,E.isError=Au,E.isFinite=ea,E.isFunction=bi,E.isInteger=Vf,E.isLength=Ks,E.isMap=Up,E.isMatch=Hp,E.isMatchWith=Bp,E.isNaN=hx,E.isNative=o0,E.isNil=s0,E.isNull=px,E.isNumber=l0,E.isObject=tn,E.isObjectLike=cn,E.isPlainObject=Cu,E.isRegExp=Fr,E.isSafeInteger=u0,E.isSet=$f,E.isString=Zf,E.isSymbol=Va,E.isTypedArray=ho,E.isUndefined=mx,E.isWeakMap=Mr,E.isWeakSet=qp,E.join=qs,E.kebabCase=Nu,E.last=ra,E.lastIndexOf=du,E.lowerCase=Iu,E.lowerFirst=yo,E.lt=c0,E.lte=f0,E.max=H8,E.maxBy=B8,E.mean=q8,E.meanBy=F8,E.min=Y8,E.minBy=G8,E.stubArray=kx,E.stubFalse=Nx,E.stubObject=D8,E.stubString=M8,E.stubTrue=k8,E.multiply=V8,E.nth=Fs,E.noConflict=X,E.noop=de,E.now=bu,E.pad=Tx,E.padEnd=A0,E.padStart=Lu,E.parseInt=Ox,E.random=ed,E.reduce=Y1,E.reduceRight=G1,E.repeat=C0,E.replace=nd,E.result=ku,E.round=$8,E.runInContext=G,E.sample=Uf,E.size=$t,E.snakeCase=T0,E.some=Ip,E.sortedIndex=Lt,E.sortedIndexBy=Jt,E.sortedIndexOf=xt,E.sortedLastIndex=Ct,E.sortedLastIndexBy=zt,E.sortedLastIndexOf=qa,E.startCase=ad,E.startsWith=rd,E.subtract=Z8,E.sum=Q8,E.sumBy=W8,E.template=O0,E.times=N8,E.toFinite=En,E.toInteger=ot,E.toLength=Tu,E.toLower=zu,E.toNumber=An,E.toSafeInteger=gx,E.toString=Et,E.toUpper=Kp,E.trim=id,E.trimEnd=R0,E.trimStart=Dx,E.truncate=od,E.unescape=n,E.uniqueId=L8,E.upperCase=a,E.upperFirst=o,E.each=j1,E.eachRight=U1,E.first=ao,q(E,(function(){var s={};return ca(E,function(u,p){Mt.call(E.prototype,p)||(s[p]=u)}),s})(),{chain:!1}),E.VERSION=i,er(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){E[s].placeholder=E}),er(["drop","take"],function(s,u){pt.prototype[s]=function(p){p=p===r?1:kt(ot(p),0);var v=this.__filtered__&&!u?new pt(this):this.clone();return v.__filtered__?v.__takeCount__=hn(p,v.__takeCount__):v.__views__.push({size:hn(p,P),type:s+(v.__dir__<0?"Right":"")}),v},pt.prototype[s+"Right"]=function(p){return this.reverse()[s](p).reverse()}}),er(["filter","map","takeWhile"],function(s,u){var p=u+1,v=p==ue||p==Q;pt.prototype[s]=function(_){var O=this.clone();return O.__iteratees__.push({iteratee:$e(_,3),type:p}),O.__filtered__=O.__filtered__||v,O}}),er(["head","last"],function(s,u){var p="take"+(u?"Right":"");pt.prototype[s]=function(){return this[p](1).value()[0]}}),er(["initial","tail"],function(s,u){var p="drop"+(u?"":"Right");pt.prototype[s]=function(){return this.__filtered__?new pt(this):this[p](1)}}),pt.prototype.compact=function(){return this.filter(W)},pt.prototype.find=function(s){return this.filter(s).head()},pt.prototype.findLast=function(s){return this.reverse().find(s)},pt.prototype.invokeMap=dt(function(s,u){return typeof s=="function"?new pt(this):this.map(function(p){return qo(p,s,u)})}),pt.prototype.reject=function(s){return this.filter(_u($e(s)))},pt.prototype.slice=function(s,u){s=ot(s);var p=this;return p.__filtered__&&(s>0||u<0)?new pt(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),u!==r&&(u=ot(u),p=u<0?p.dropRight(-u):p.take(u-s)),p)},pt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},pt.prototype.toArray=function(){return this.take(P)},ca(pt.prototype,function(s,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),v=/^(?:head|last)$/.test(u),_=E[v?"take"+(u=="last"?"Right":""):u],O=v||/^find/.test(u);_&&(E.prototype[u]=function(){var I=this.__wrapped__,H=v?[1]:arguments,Z=I instanceof pt,pe=H[0],ye=Z||rt(I),Se=function(At){var Tt=_.apply(E,Fi([At],H));return v&&ke?Tt[0]:Tt};ye&&p&&typeof pe=="function"&&pe.length!=1&&(Z=ye=!1);var ke=this.__chain__,Fe=!!this.__actions__.length,Je=O&&!ke,gt=Z&&!Fe;if(!O&&ye){I=gt?I:new pt(this);var et=s.apply(I,H);return et.__actions__.push({func:Zs,args:[Se],thisArg:r}),new _n(et,ke)}return Je&>?s.apply(this,H):(et=this.thru(Se),Je?v?et.value()[0]:et.value():et)})}),er(["pop","push","shift","sort","splice","unshift"],function(s){var u=zl[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",v=/^(?:pop|shift)$/.test(s);E.prototype[s]=function(){var _=arguments;if(v&&!this.__chain__){var O=this.value();return u.apply(rt(O)?O:[],_)}return this[p](function(I){return u.apply(rt(I)?I:[],_)})}}),ca(pt.prototype,function(s,u){var p=E[u];if(p){var v=p.name+"";Mt.call(Zi,v)||(Zi[v]=[]),Zi[v].push({name:u,func:p})}}),Zi[lr(r,B).name]=[{name:"wrapper",func:r}],pt.prototype.clone=Sh,pt.prototype.reverse=Gl,pt.prototype.value=Qc,E.prototype.at=Fa,E.prototype.chain=k1,E.prototype.commit=Ya,E.prototype.next=N1,E.prototype.plant=rx,E.prototype.reverse=uo,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=Pf,E.prototype.first=E.prototype.head,$n&&(E.prototype[$n]=I1),E}),Er=Vb();Pr?((Pr.exports=Er)._=Er,Lo._=Er):Dn._=Er}).call(c6)})(zd,zd.exports)),zd.exports}var rv=f6();const d6=yt({departureAirport:k(),arrivalAirport:k(),startDate:k().date(),endDate:k().date().optional().nullable()}),h6=Gy(k(),yt({date:k(),stops:nt().optional().nullable(),flightsState:nt()}));function p6(e,t=500){const[r,i]=C.useState(e),l=C.useRef(e);return C.useEffect(()=>{if(l.current===e)return;const f=e,h=setTimeout(()=>{l.current!==f&&(l.current=f,i(f))},t);return()=>clearTimeout(h)},[e,t]),r}async function m6(e,t){const r=`${e}/api/calendar-v2`,i=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!i.ok)throw new Error("Unable to get flight calendar");const l=await i.json();return h6.parse(l)}function hS({apiDomain:e,params:t,debounceTime:r=500}){const i=p6(t,r),l=typeof i.origin=="string"&&i.origin.trim().length>0,f=typeof i.destination=="string"&&i.destination.trim().length>0,h=!!i.startDate&&l&&f,{data:m,status:y}=ow({queryKey:["flight-calendar",i.origin,i.destination,i.startDate?.toISOString(),i.endDate?.toISOString()],enabled:h,queryFn:()=>{const b=i.startDate.toISOString().slice(0,10),x=i.endDate?i.endDate.toISOString().slice(0,10):void 0,S=d6.safeParse({departureAirport:i.origin.split(",")[0]??"",arrivalAirport:i.destination.split(",")[0]??"",startDate:b,endDate:x});if(!S.success)throw new Error("Invalid flight-calendar parameters");return m6(e,S.data)},refetchOnWindowFocus:!1,refetchOnMount:!1,staleTime:1e3*60*1});return{data:m,status:y}}async function g6({query:e,departureAirport:t,marketingCarrierCodeIATA:r,apiDomain:i}){const l={query:e,departureAirportIATA:t,marketingCarrierCodeIATA:r},f=new URLSearchParams(l).toString(),h=await fetch(`${i}/api/iata-directs?${f}`);if(!h.ok)throw console.error("Unable to fetch airport suggestions",{departureAirport:t,apiDomain:i,status:h.status,statusText:h.statusText}),new Error("Unable to fetch airport suggestions");const m=await h.json();return VO.parse(m)}async function y6(e,t,r,i){if(!t)return[];const l=await g6({query:e,departureAirport:t,marketingCarrierCodeIATA:r,apiDomain:i});return l.success?l.data.map(m=>({iata_code:m.airportIATA,city:m.city,lat:0,lng:0,country_code:m.country,name:m.airportIATA+" ("+m.city+")",geometry:{location:{lat:0,lng:0}},formatted_address:"",cid:m.airportIATA,types:["airport"],nearbyAirports:[{name:m.airportIATA+" ("+m.city+")",iata_code:m.airportIATA,city:m.city,country_code:m.country,lat:0,lng:0}]})):[]}async function v6({departureAirport:e,apiDomain:t}){const r={departureAirportIATA:e},i=new URLSearchParams(r).toString(),l=await fetch(`${t}/api/iata-auto-complete?${i}`);if(!l.ok)throw console.error("Unable to fetch airport suggestions",{departureAirport:e,apiDomain:t,status:l.status,statusText:l.statusText}),new Error("Unable to fetch airport suggestions");const f=await l.json();return t6.parse(f)}async function b6(e,t,r){if(!t)return[];const i=await v6({departureAirport:t,apiDomain:r});return i.success?i.data.map(h=>({iata_code:h.airportIATA,city:h.city,state:h.state,country:h.country,stops:h.stops||0,airlineCodes:h.airlineCodes||[],name:h.city+" ("+h.airportIATA+")",type:"airport",lat:0,lng:0,country_code:h.country||"",geometry:{location:{lat:0,lng:0}},formatted_address:"",cid:h.airportIATA,types:["airport"],nearbyAirports:[{name:h.airportIATA+" ("+h.city+")",iata_code:h.airportIATA,city:h.city,country_code:h.country,stops:h.stops||0,airlineCodes:h.airlineCodes||[],routeStart:h.routeStart,lat:0,lng:0}]})).map(h=>{const m={...h,airlineCodes:h.airlineCodes?.map(y=>y==="DWI"?"DW":y)};return m.nearbyAirports=h.nearbyAirports.map(y=>({...y,airlineCodes:y.airlineCodes?.map(b=>b==="DWI"?"DW":b)})),m}).sort((h,m)=>!h.city||!m.city?0:h.city.localeCompare(m.city)):[]}function Cm(e){return e*(Math.PI/180)}function x6(e){return e*.621371}function w6(e,t,r,i){const f=Cm(r-e),h=Cm(i-t),m=Math.sin(f/2)*Math.sin(f/2)+Math.cos(Cm(e))*Math.cos(Cm(r))*Math.sin(h/2)*Math.sin(h/2);return 6371*(2*Math.atan2(Math.sqrt(m),Math.sqrt(1-m)))}async function iv({query:e,searchType:t}){const r=await fetch(`https://www.kayak.com/mv/marvel?f=j&s=${t}&v=v1&where=${e}&lc=en&lc_cc=US`);if(!r.ok)throw new Error("Unable to get kayak suggestions");return await r.json()}async function _6(e,t=Am.Hotels){return e?.length?e.length<3?[]:(await iv({query:e,searchType:t})).reduce((l,f)=>{if(f.isMetroOnly)l.push({nearbyAirports:[],iata_code:f.displayType.type!=="country"?f.id:void 0,formatted_address:f.cityname,geometry:{location:{lat:f.lat,lng:f.lng}},name:f.cityonly,cid:f.cid,types:["place"]});else if(f.displayType.type==="country")l.push({nearbyAirports:[],formatted_address:f.displayname,geometry:{location:{lat:f.lat,lng:f.lng}},name:f.displayname,cid:f.cid,types:["place"]});else if(f.displayType.type==="state")l.push({nearbyAirports:[],formatted_address:f.displayname,geometry:{location:{lat:f.lat,lng:f.lng}},name:f.displayname,cid:f.cid,types:["place"]});else if(f.displayType.type==="airport"){const h=f.cid,m=l.findIndex(b=>b.cid===h&&Array.isArray(b.types)&&b.types.includes("place")),y={iata_code:f.id,city:f.cityonly,lat:f.lat,lng:f.lng,country_code:f.cc,name:f.displayname};if(m>-1){const{lat:b,lng:x}=l[m].geometry.location,S=w6(b,x,f.lat,f.lng);y.distance=x6(S),l[m].nearbyAirports.push(y)}else l.push({nearbyAirports:[y],formatted_address:f.cityname,geometry:{location:{lat:f.lat,lng:f.lng}},name:f.name,rid:f.rid,types:["airport"]})}return l},[]):[]}function pS({key:e,apiDomain:t,airportIATA:r,providersArr:i,airlinesArr:l,debounceTime:f=500,autocompleteType:h="kayak"}){const[m,y]=C.useState(""),b=C.useMemo(()=>rv.debounce(y,f),[f]),{data:x,status:S}=ow({queryKey:[e,r,i,l,m,h].flat(),queryFn:()=>h==="schedule_data"&&r?.length&&r?.length===3?b6(m,r,t):r?.length&&r?.length===3&&(i?.length||0)>0&&(l?.length||0)>0&&i?.every(T=>T==="G4")&&l?.every(T=>T==="G4")?y6(m,r,l[0],t):_6(m)});return{data:x,status:S,setQuery:b}}function S6(){return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",className:"a1-w-6 a1-h-6",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})}function E6(){return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,className:"a1-w-6 a1-h-6 a1-stroke-gray-500 dark:a1-stroke-gray-100",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})})}function Tm({name:e,properties:t}){A6(e,t)||C6(e,t)}function A6(e,t){let r=null;try{r=new URL(window.location.href).searchParams.get("gclid")||null}catch{}const{consentedAnalytics:i,analytics:l}=window,f=i??l;return f?.track?.(e,{...t,gclid:r}),typeof f?.track=="function"}function C6(e,t){window.dataLayer?.push({event:e,...t})}var Om={exports:{}},T6=Om.exports,mS;function O6(){return mS||(mS=1,(function(e,t){(function(r,i){e.exports=i()})(T6,(function(){var r=function(f,h){if(h=h||{},typeof f!="function")throw new l("fetch must be a function");if(typeof h!="object")throw new l("defaults must be an object");if(h.retries!==void 0&&!i(h.retries))throw new l("retries must be a positive integer");if(h.retryDelay!==void 0&&!i(h.retryDelay)&&typeof h.retryDelay!="function")throw new l("retryDelay must be a positive integer or a function returning a positive integer");if(h.retryOn!==void 0&&!Array.isArray(h.retryOn)&&typeof h.retryOn!="function")throw new l("retryOn property expects an array or function");var m={retries:3,retryDelay:1e3,retryOn:[]};return h=Object.assign(m,h),function(b,x){var S=h.retries,T=h.retryDelay,N=h.retryOn;if(x&&x.retries!==void 0)if(i(x.retries))S=x.retries;else throw new l("retries must be a positive integer");if(x&&x.retryDelay!==void 0)if(i(x.retryDelay)||typeof x.retryDelay=="function")T=x.retryDelay;else throw new l("retryDelay must be a positive integer or a function returning a positive integer");if(x&&x.retryOn)if(Array.isArray(x.retryOn)||typeof x.retryOn=="function")N=x.retryOn;else throw new l("retryOn property expects an array or function");return new Promise(function(j,M){var D=function(F){var re=typeof Request<"u"&&b instanceof Request?b.clone():b;f(re,x).then(function(Y){if(Array.isArray(N)&&N.indexOf(Y.status)===-1)j(Y);else if(typeof N=="function")try{return Promise.resolve(N(F,null,Y)).then(function(ne){ne?B(F,null,Y):j(Y)}).catch(M)}catch(ne){M(ne)}else F<S?B(F,null,Y):j(Y)}).catch(function(Y){if(typeof N=="function")try{Promise.resolve(N(F,Y,null)).then(function(ne){ne?B(F,Y,null):M(Y)}).catch(function(ne){M(ne)})}catch(ne){M(ne)}else F<S?B(F,Y,null):M(Y)})};function B(F,re,Y){var ne=typeof T=="function"?T(F,re,Y):T;setTimeout(function(){D(++F)},ne)}D(0)})}};function i(f){return Number.isInteger(f)&&f>=0}function l(f){this.name="ArgumentError",this.message=f}return r}))})(Om)),Om.exports}var R6=O6();const D6=Pu(R6),M6="X-RateLimit-Scope",k6="X-RateLimit-Limit",N6="X-RateLimit-Remaining",I6="X-RateLimit-Reset",L6="X-QueryLimit-Limit",z6="X-QueryLimit-Remaining",P6="X-QueryLimit-Reset",j6="X-IngestLimit-Limit",U6="X-IngestLimit-Remaining",H6="X-IngestLimit-Reset";var Pd;(function(e){e.unknown="unknown",e.user="user",e.organization="organization",e.anonymous="anonymous"})(Pd||(Pd={}));var ml;(function(e){e.api="api",e.query="query",e.ingest="ingest"})(ml||(ml={}));class B6{scope;type;value;remaining;reset;constructor(t=Pd.unknown,r=ml.api,i=0,l=-1,f=new Date){this.scope=t,this.type=r,this.value=i,this.remaining=l,this.reset=f}}function q6(e){let t;return e.url?.endsWith("/ingest")?(t=ov(e,"",j6,U6,H6),t.type=ml.ingest):e.url?.endsWith("/query")||e.url?.endsWith("/_apl")?(t=ov(e,"",L6,z6,P6),t.type=ml.query):(t=ov(e,M6,k6,N6,I6),t.type=ml.api),t}function ov(e,t,r,i,l){let f=new B6;const h=e.headers.get(t.toLowerCase())||Pd.unknown;f.scope=Pd[h];const m=e.headers.get(r.toLowerCase())||"",y=parseInt(m,10);isNaN(y)||(f.value=y);const b=e.headers.get(i.toLowerCase())||"",x=parseInt(b,10);isNaN(x)||(f.remaining=x);const S=e.headers.get(l.toLowerCase())||"",T=parseInt(S,10);return isNaN(T)||(f.reset=new Date(T*1e3)),f}class F6{config;constructor(t){this.config=t}async doReq(t,r,i={},l={},f=this.config.timeout){let h=`${this.config.baseUrl}${t}`;const m=this._prepareSearchParams(l);m&&(h+=`?${m.toString()}`);const y={...this.config.headers,...i.headers},b=await D6(fetch)(h,{retries:1,retryDelay:function(x,S,T){return Math.pow(2,x)*1e3},retryOn:[503,502,504,500],headers:y,method:r,body:i.body?i.body:void 0,signal:AbortSignal.timeout(f),cache:"no-store"});if(b.status===204)return b;if(b.status==429){const x=q6(b);return Promise.reject(new Rm(x))}else{if(b.status===401)return Promise.reject(new Error("Forbidden"));if(b.status>=400){const x=await b.json();return Promise.reject(new Error(x.message))}}return await b.json()}post(t,r={},i={},l=this.config.timeout){return this.doReq(t,"POST",r,i,l)}get(t,r={},i={},l=this.config.timeout){return this.doReq(t,"GET",r,i,l)}put(t,r={},i={},l=this.config.timeout){return this.doReq(t,"PUT",r,i,l)}delete(t,r={},i={},l=this.config.timeout){return this.doReq(t,"DELETE",r,i,l)}_prepareSearchParams=t=>{const r=new URLSearchParams;let i=!1;return Object.keys(t).forEach(l=>{t[l]&&(r.append(l,t[l]),i=!0)}),i?r:null}}class Rm extends Error{limit;shortcircuit;message="";constructor(t,r=!1){super(),this.limit=t,this.shortcircuit=r,Object.setPrototypeOf(this,Rm.prototype);const i=Rm.timeUntilReset(t);this.message=`${t.type} limit exceeded, try again in ${i.minutes}m${i.seconds}s`,t.type==ml.api&&(this.message=`${t.scope} `+this.message)}static timeUntilReset(t){const r=t.reset.getTime()-new Date().getTime(),i=Math.floor(r/1e3%60),l=Math.floor(r/1e3/60%60);return{total:r,minutes:l,seconds:i}}}const Y6="1.3.1",G6="https://api.axiom.co";class sv{client;constructor({orgId:t="",token:r,url:i}){r||console.warn("Missing Axiom token");const l=i??G6,f={Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+r};typeof window>"u"&&(f["User-Agent"]="axiom-js/"+Y6),t&&(f["X-Axiom-Org-Id"]=t),this.client=new F6({baseUrl:l,headers:f,timeout:2e4})}}var gS;(function(e){e.TimestampField="_time";class t extends sv{localPath="/v1/datasets";list=()=>this.client.get(this.localPath);get=i=>this.client.get(this.localPath+"/"+i);create=(i,l)=>{const f=new URLSearchParams;f.set("referrer",l?.referrer??"");let h=`/v2/datasets?${f.toString()}`;return this.client.post(h,{body:JSON.stringify(i)})};update=(i,l)=>this.client.put(this.localPath+"/"+i,{body:JSON.stringify(l)});delete=i=>this.client.delete(this.localPath+"/"+i);trim=(i,l)=>{const f={maxDuration:l};return this.client.post(this.localPath+"/"+i+"/trim",{body:JSON.stringify(f)})}}e.Service=t})(gS||(gS={}));var yS;(function(e){class t extends sv{current=()=>this.client.get("/v1/user")}e.Service=t})(yS||(yS={})),BigInt.prototype.toJSON=function(){return this.toString()};var vS;(function(e){e.JSON="application/json",e.NDJSON="application/x-ndjson",e.CSV="text/csv"})(vS||(vS={}));var bS;(function(e){e.Identity="",e.GZIP="gzip"})(bS||(bS={}));var xS;(function(e){e.Count="count",e.Distinct="distinct",e.Sum="sum",e.Avg="avg",e.Min="min",e.Max="max",e.Topk="topk",e.Percentiles="percentiles",e.Histogram="histogram",e.Variance="variance",e.Stdev="stdev",e.ArgMin="argmin",e.ArgMax="argmax",e.MakeSet="makeset",e.MakeSetIf="makesetif",e.CountIf="countif",e.CountDistinctIf="distinctif"})(xS||(xS={}));var wS;(function(e){e.And="and",e.Or="or",e.Not="not",e.Equal="==",e.NotEqual="!=",e.Exists="exists",e.NotExists="not-exists",e.GreaterThan=">",e.GreaterThanOrEqualTo=">=",e.LessThan="<",e.LessThanOrEqualTo="<=",e.Gt="gt",e.Gte="gte",e.Lt="lt",e.Lte="lte",e.StartsWith="starts-with",e.NotStartsWith="not-starts-with",e.EndsWith="ends-with",e.NotEndsWith="not-ends-with",e.Contains="contains",e.NotContains="not-contains",e.Regexp="regexp",e.NotRegexp="not-regexp"})(wS||(wS={}));var _S;(function(e){class t extends sv{localPath="/v2/annotations";list=i=>this.client.get(this.localPath,{},i);get=i=>this.client.get(this.localPath+"/"+i);create=i=>this.client.post(this.localPath,{body:JSON.stringify(i)});update=(i,l)=>this.client.put(this.localPath+"/"+i,{body:JSON.stringify(l)});delete=i=>this.client.delete(this.localPath+"/"+i)}e.Service=t})(_S||(_S={}));var jd={env:{NODE_ENV:"production"}};const V6=jd.env.NEXT_PUBLIC_VERCEL||jd.env.VERCEL,$6=jd.env.NETLIFY=="true",lv=jd.env.NODE_ENV,Z6=jd.env.REGION||void 0,Q6="0.1.4",W6=typeof self<"u"&&typeof globalThis.WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,uv=typeof window<"u"||W6,SS=!!globalThis.EdgeRuntime;var va={env:{}};const X6=[e=>{if(V6){const r=e;return r.vercel={environment:va.env.VERCEL_ENV??lv,region:va.env.VERCEL_REGION,deploymentId:va.env.VERCEL_DEPLOYMENT_ID,deploymentUrl:va.env.NEXT_PUBLIC_VERCEL_URL,project:va.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL,source:e.source},r.git={commit:va.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,repo:va.env.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,ref:va.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF},r}if($6){const r=e;return r.netlify={environment:lv,region:SS?va.env.DENO_REGION:va.env.AWS_REGION,siteId:va.env.SITE_ID,buildId:va.env.BUILD_ID,context:va.env.CONTEXT,deploymentUrl:va.env.DEPLOYMENT_URL,deploymentId:SS?va.env.DENO_DEPLOYMENT_ID:va.env.NETLIFY_DEPLOYMENT_ID,source:e.source},r}const t=e;return t.platform={environment:lv,region:Z6,source:e.source},t}];var K6=Object.defineProperty,J6=(e,t,r)=>t in e?K6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$r=(e,t,r)=>(J6(e,typeof t!="symbol"?t+"":t,r),r);const eD="info",tc=Symbol.for("logging.event"),Ud={debug:0,info:1,warn:2,error:3,off:100},Mi={debug:"debug",info:"info",warn:"warn",error:"error",off:"off"};class cv{constructor(t){$r(this,"children",[]),$r(this,"logLevel",Ud.debug),$r(this,"config"),$r(this,"debug",(r,i={})=>{this.log(Mi.debug,r,i)}),$r(this,"info",(r,i={})=>{this.log(Mi.info,r,i)}),$r(this,"warn",(r,i={})=>{this.log(Mi.warn,r,i)}),$r(this,"error",(r,i={})=>{this.log(Mi.error,r,i)}),$r(this,"with",r=>{const{[tc]:i,...l}=this.config.args??{},{[tc]:f,...h}=r,m={...i??{},...f??{}},y={...this.config,args:{...l,...h,[tc]:m}},b=new cv(y);return this.children.push(b),b}),$r(this,"_transformEvent",(r,i,l={})=>{let f={},h=this.config.args??{};if(this.config.args&&tc in this.config.args){const{[tc]:y,...b}=this.config.args??{};f={...y??{}},h=b}const m={level:Mi[r].toString(),message:i,_time:new Date(Date.now()).toISOString(),fields:h,"@app":{"axiom-logging-version":Q6},source:uv?"browser-log":"server-log"};if(f&&typeof f=="object"&&Object.assign(m,f),l instanceof Error&&(m.fields={...m.fields,message:l.message,stack:l.stack,name:l.name}),typeof l=="object"&&l!==null){const{[tc]:y,...b}=l,x=JSON.parse(JSON.stringify(b,tD));y&&typeof y=="object"&&y!==null&&Object.assign(m,y),Object.keys(x).length>0&&(m.fields={...m.fields,...x})}else Array.isArray(l)&&(m.fields={...m.fields,args:l});return this.config.formatters&&this.config.formatters.length>0?this.config.formatters.reduce((y,b)=>b(y),m):m}),$r(this,"log",(r,i,l={})=>{this.config.transports.forEach(f=>f.log([this._transformEvent(r,i,l)]))}),$r(this,"flush",async()=>{const r=[...this.config.transports.map(i=>i.flush()),...this.children.map(i=>i.flush())];await Promise.allSettled(r)}),this.initConfig=t,this.initConfig.logLevel!=null?this.logLevel=Ud[this.initConfig.logLevel]:this.logLevel=Ud[eD],this.config={...t},this.config.overrideDefaultFormatters||(this.config.formatters=[...X6,...this.config.formatters??[]])}raw(t){this.config.transports.forEach(r=>r.log([t]))}}function tD(e,t){return t instanceof Error?{...t,name:t.name,message:t.message,stack:t.stack}:t}var nD=Object.defineProperty,aD=(e,t,r)=>t in e?nD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ES=(e,t,r)=>(aD(e,typeof t!="symbol"?t+"":t,r),r);const Dm={info:{terminal:"32",browser:"lightgreen"},debug:{terminal:"36",browser:"lightblue"},warn:{terminal:"33",browser:"yellow"},error:{terminal:"31",browser:"red"}};class rD{constructor(t){ES(this,"config"),ES(this,"log",r=>{r.forEach(i=>{Ud[i.level??Mi.info]>=Ud[this.config.logLevel??Mi.info]&&this.prettyPrint(i)})}),this.config={...t}}isStandardLogEvent(t){return typeof t=="object"&&t!==null&&"level"in t&&"message"in t&&"fields"in t}prettyPrint(t){const r=t.fields&&Object.keys(t.fields).length>0;if(!this.config.prettyPrint){if(!this.isStandardLogEvent(t)){console.log(t);return}let f=`${t.level} - ${t.message}`;r&&(f+=" "+JSON.stringify(t.fields)),console.log(f);return}if(!this.isStandardLogEvent(t)){uv?console.log("%c%s",`color: ${Dm[Mi.info].browser};`,t):console.log(`\x1B[${Dm[Mi.info].terminal}m%s\x1B[0m`,t);return}let i="",l=[t.level,t.message];uv?(i="%c%s - %s",l=[`color: ${Dm[t.level].browser};`,...l]):i=`\x1B[${Dm[t.level].terminal}m%s\x1B[0m - %s`,r&&(i+=" %o",l.push(t.fields)),console.log.apply(console,[i,...l])}flush(){}}var iD={env:{NODE_ENV:"production"}};let fv=null;function oD(){return fv||(fv=new cv({transports:[new rD({prettyPrint:iD.env.NODE_ENV==="development",logLevel:Mi.info})]})),fv}oD();const sD="fma.anon.userId",lD="fma-anon-override-id",Mm="fma.anon.userId";function uD(){return typeof window>"u"?void 0:new URLSearchParams(window.location.search).get(lD)??void 0}async function cD(e){const{consentedAnalytics:t}=window;if(!t)return null;e&&console.log("Using override ID from query string",{overrideId:e});const r=await t.user(),i=e?r?.anonymousId(e)?.toString():r?.anonymousId()?.toString();return i&&e&&i!==e&&console.log("Segment override ID from query string failed to set, overrideId, id",{overrideId:e,id:i}),i??null}function fD(e){let t=localStorage.getItem(Mm);return e?(console.log("Using override ID from query string to set local storage",{overrideId:e}),localStorage.setItem(Mm,e)):!t&&typeof window.crypto?.randomUUID=="function"&&(t=window.crypto.randomUUID(),localStorage.setItem(Mm,t)),e??t}async function dD(e){try{return await cD(e||void 0)}catch(t){console.error({e:t})}return null}function hD(){const[e,t]=C.useState(null),[r,i]=C.useState(!1),l=uD(),f=C.useCallback(async(h=0)=>{let m=await dD(l);if(!m&&h<5){const y=2**h*1e3;setTimeout(()=>f(h+1),y);return}if(m||(m=fD(l)),m){t(`s_${m}`),localStorage.setItem(Mm,m);const y=typeof window<"u"&&window.location.protocol==="https:";document.cookie=`${sD}=${encodeURIComponent(m)}; Path=/; SameSite=Lax; Max-Age=31536000${y?"; Secure":""}`}i(!0)},[l]);return C.useEffect(()=>{f(0)},[f]),{clickId:e,loaded:r}}const Hd=Qu(["economy","premium","business","first"]),AS=Qu(["1adult","2adults","3adults","4adults","5adults","6adults","7adults","8adults","9adults"]),pD=yt({providers:k().optional(),airlines:k().optional(),stops:nt().optional()}),mD=yt({enc_lid:k().max(50).regex(/[a-z|A-Z|\d|_]/).optional(),enc_cid:k().optional(),from_url:k().optional(),consent_data_sharing:lt().optional(),consent_analytics:lt().optional(),consent_advertising:lt().optional(),consent_functional:lt().optional()}),gD=yt({worker_domain:k().url().default("https://worker.flymyairport.com"),airport_iata:k(),dep_iata:k(),arr_iata:k(),departDate:k(),returnDate:k().optional().default("undef"),cabin:Hd.default("economy"),pax:AS.default("1adult"),filterState:pD.optional(),params:mD.optional()});function yD(e){const t=gD.parse(e),{worker_domain:r,airport_iata:i,dep_iata:l,arr_iata:f,departDate:h,returnDate:m,cabin:y,pax:b,filterState:x}=t,{params:S}=t,T=Object.entries(x??{}).filter(([,D])=>D!=null&&D!=="").map(([D,B])=>`${D}=${B}`).join(";"),N={...S??{},fs:T},j=Object.entries(N).filter(([,D])=>D!=null&&D!=="").map(([D,B])=>`${D}=${B}`).join("&"),M=`/fma/${i}/${l}-${f}/${h}/${m}/${y}/${b}/`;return`${r}${M}${j?`?${j}`:""}`}function vD({className:e,regMarkClassName:t}){return R.jsxs("span",{className:e,children:["Fly",R.jsx("strong",{children:"MyAirport"}),R.jsx("sup",{"aria-hidden":"true",className:t||"a1-text-[0.5em] a1-ml-0.5 a1-leading-none",children:"®"}),R.jsx("span",{className:"a1-sr-only",children:" Registered"})]})}function bD(e){const[t,r]=C.useState(()=>typeof window<"u"?window.matchMedia(e).matches:!1);return C.useEffect(()=>{if(typeof window>"u")return;const i=window.matchMedia(e);i.matches!==t&&r(i.matches);const l=()=>r(i.matches);return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[t,e]),t}function xD(){return bD("(max-width: 768px)")}function mr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e?.(l),r===!1||!l.defaultPrevented)return t?.(l)}}function CS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function TS(...e){return t=>{let r=!1;const i=e.map(l=>{const f=CS(l,t);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let l=0;l<i.length;l++){const f=i[l];typeof f=="function"?f():CS(e[l],null)}}}}function Zr(...e){return C.useCallback(TS(...e),e)}function wD(e,t){const r=C.createContext(t),i=f=>{const{children:h,...m}=f,y=C.useMemo(()=>m,Object.values(m));return R.jsx(r.Provider,{value:y,children:h})};i.displayName=e+"Provider";function l(f){const h=C.useContext(r);if(h)return h;if(t!==void 0)return t;throw new Error(`\`${f}\` must be used within \`${e}\``)}return[i,l]}function dv(e,t=[]){let r=[];function i(f,h){const m=C.createContext(h),y=r.length;r=[...r,h];const b=S=>{const{scope:T,children:N,...j}=S,M=T?.[e]?.[y]||m,D=C.useMemo(()=>j,Object.values(j));return R.jsx(M.Provider,{value:D,children:N})};b.displayName=f+"Provider";function x(S,T){const N=T?.[e]?.[y]||m,j=C.useContext(N);if(j)return j;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[b,x]}const l=()=>{const f=r.map(h=>C.createContext(h));return function(m){const y=m?.[e]||f;return C.useMemo(()=>({[`__scope${e}`]:{...m,[e]:y}}),[m,y])}};return l.scopeName=e,[i,_D(l,...t)]}function _D(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(f){const h=i.reduce((m,{useScope:y,scopeName:b})=>{const S=y(f)[`__scope${b}`];return{...m,...S}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:h}),[h])}};return r.scopeName=t.scopeName,r}var fs=globalThis?.document?C.useLayoutEffect:()=>{},SD=tw[" useId ".trim().toString()]||(()=>{}),ED=0;function km(e){const[t,r]=C.useState(SD());return fs(()=>{r(i=>i??String(ED++))},[e]),e||(t?`radix-${t}`:"")}var AD=tw[" useInsertionEffect ".trim().toString()]||fs;function OS({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[l,f,h]=CD({defaultProp:t,onChange:r}),m=e!==void 0,y=m?e:l;{const x=C.useRef(e!==void 0);C.useEffect(()=>{const S=x.current;S!==m&&console.warn(`${i} is changing from ${S?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,i])}const b=C.useCallback(x=>{if(m){const S=TD(x)?x(e):x;S!==e&&h.current?.(S)}else f(x)},[m,e,f,h]);return[y,b]}function CD({defaultProp:e,onChange:t}){const[r,i]=C.useState(e),l=C.useRef(r),f=C.useRef(t);return AD(()=>{f.current=t},[t]),C.useEffect(()=>{l.current!==r&&(f.current?.(r),l.current=r)},[r,l]),[r,i,f]}function TD(e){return typeof e=="function"}var hv=fw();const OD=Pu(hv);function pv(e){const t=RD(e),r=C.forwardRef((i,l)=>{const{children:f,...h}=i,m=C.Children.toArray(f),y=m.find(MD);if(y){const b=y.props.children,x=m.map(S=>S===y?C.Children.count(b)>1?C.Children.only(null):C.isValidElement(b)?b.props.children:null:S);return R.jsx(t,{...h,ref:l,children:C.isValidElement(b)?C.cloneElement(b,void 0,x):null})}return R.jsx(t,{...h,ref:l,children:f})});return r.displayName=`${e}.Slot`,r}function RD(e){const t=C.forwardRef((r,i)=>{const{children:l,...f}=r;if(C.isValidElement(l)){const h=ND(l),m=kD(f,l.props);return l.type!==C.Fragment&&(m.ref=i?TS(i,h):h),C.cloneElement(l,m)}return C.Children.count(l)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var DD=Symbol("radix.slottable");function MD(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===DD}function kD(e,t){const r={...t};for(const i in t){const l=e[i],f=t[i];/^on[A-Z]/.test(i)?l&&f?r[i]=(...m)=>{const y=f(...m);return l(...m),y}:l&&(r[i]=l):i==="style"?r[i]={...l,...f}:i==="className"&&(r[i]=[l,f].filter(Boolean).join(" "))}return{...e,...r}}function ND(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ID=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qa=ID.reduce((e,t)=>{const r=pv(`Primitive.${t}`),i=C.forwardRef((l,f)=>{const{asChild:h,...m}=l,y=h?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(y,{...m,ref:f})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function LD(e,t){e&&hv.flushSync(()=>e.dispatchEvent(t))}function nc(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>t.current?.(...r),[])}function zD(e,t=globalThis?.document){const r=nc(e);C.useEffect(()=>{const i=l=>{l.key==="Escape"&&r(l)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[r,t])}var PD="DismissableLayer",mv="dismissableLayer.update",jD="dismissableLayer.pointerDownOutside",UD="dismissableLayer.focusOutside",RS,DS=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gv=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...y}=e,b=C.useContext(DS),[x,S]=C.useState(null),T=x?.ownerDocument??globalThis?.document,[,N]=C.useState({}),j=Zr(t,fe=>S(fe)),M=Array.from(b.layers),[D]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),B=M.indexOf(D),F=x?M.indexOf(x):-1,re=b.layersWithOutsidePointerEventsDisabled.size>0,Y=F>=B,ne=qD(fe=>{const ie=fe.target,we=[...b.branches].some(Ce=>Ce.contains(ie));!Y||we||(l?.(fe),h?.(fe),fe.defaultPrevented||m?.())},T),se=FD(fe=>{const ie=fe.target;[...b.branches].some(Ce=>Ce.contains(ie))||(f?.(fe),h?.(fe),fe.defaultPrevented||m?.())},T);return zD(fe=>{F===b.layers.size-1&&(i?.(fe),!fe.defaultPrevented&&m&&(fe.preventDefault(),m()))},T),C.useEffect(()=>{if(x)return r&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(RS=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(x)),b.layers.add(x),MS(),()=>{r&&b.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=RS)}},[x,T,r,b]),C.useEffect(()=>()=>{x&&(b.layers.delete(x),b.layersWithOutsidePointerEventsDisabled.delete(x),MS())},[x,b]),C.useEffect(()=>{const fe=()=>N({});return document.addEventListener(mv,fe),()=>document.removeEventListener(mv,fe)},[]),R.jsx(Qa.div,{...y,ref:j,style:{pointerEvents:re?Y?"auto":"none":void 0,...e.style},onFocusCapture:mr(e.onFocusCapture,se.onFocusCapture),onBlurCapture:mr(e.onBlurCapture,se.onBlurCapture),onPointerDownCapture:mr(e.onPointerDownCapture,ne.onPointerDownCapture)})});gv.displayName=PD;var HD="DismissableLayerBranch",BD=C.forwardRef((e,t)=>{const r=C.useContext(DS),i=C.useRef(null),l=Zr(t,i);return C.useEffect(()=>{const f=i.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),R.jsx(Qa.div,{...e,ref:l})});BD.displayName=HD;function qD(e,t=globalThis?.document){const r=nc(e),i=C.useRef(!1),l=C.useRef(()=>{});return C.useEffect(()=>{const f=m=>{if(m.target&&!i.current){let y=function(){kS(jD,r,b,{discrete:!0})};const b={originalEvent:m};m.pointerType==="touch"?(t.removeEventListener("click",l.current),l.current=y,t.addEventListener("click",l.current,{once:!0})):y()}else t.removeEventListener("click",l.current);i.current=!1},h=window.setTimeout(()=>{t.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),t.removeEventListener("pointerdown",f),t.removeEventListener("click",l.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}function FD(e,t=globalThis?.document){const r=nc(e),i=C.useRef(!1);return C.useEffect(()=>{const l=f=>{f.target&&!i.current&&kS(UD,r,{originalEvent:f},{discrete:!1})};return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function MS(){const e=new CustomEvent(mv);document.dispatchEvent(e)}function kS(e,t,r,{discrete:i}){const l=r.originalEvent.target,f=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&l.addEventListener(e,t,{once:!0}),i?LD(l,f):l.dispatchEvent(f)}var yv="focusScope.autoFocusOnMount",vv="focusScope.autoFocusOnUnmount",NS={bubbles:!1,cancelable:!0},YD="FocusScope",bv=C.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:f,...h}=e,[m,y]=C.useState(null),b=nc(l),x=nc(f),S=C.useRef(null),T=Zr(t,M=>y(M)),N=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(i){let M=function(re){if(N.paused||!m)return;const Y=re.target;m.contains(Y)?S.current=Y:ds(S.current,{select:!0})},D=function(re){if(N.paused||!m)return;const Y=re.relatedTarget;Y!==null&&(m.contains(Y)||ds(S.current,{select:!0}))},B=function(re){if(document.activeElement===document.body)for(const ne of re)ne.removedNodes.length>0&&ds(m)};document.addEventListener("focusin",M),document.addEventListener("focusout",D);const F=new MutationObserver(B);return m&&F.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",M),document.removeEventListener("focusout",D),F.disconnect()}}},[i,m,N.paused]),C.useEffect(()=>{if(m){zS.add(N);const M=document.activeElement;if(!m.contains(M)){const B=new CustomEvent(yv,NS);m.addEventListener(yv,b),m.dispatchEvent(B),B.defaultPrevented||(GD(WD(IS(m)),{select:!0}),document.activeElement===M&&ds(m))}return()=>{m.removeEventListener(yv,b),setTimeout(()=>{const B=new CustomEvent(vv,NS);m.addEventListener(vv,x),m.dispatchEvent(B),B.defaultPrevented||ds(M??document.body,{select:!0}),m.removeEventListener(vv,x),zS.remove(N)},0)}}},[m,b,x,N]);const j=C.useCallback(M=>{if(!r&&!i||N.paused)return;const D=M.key==="Tab"&&!M.altKey&&!M.ctrlKey&&!M.metaKey,B=document.activeElement;if(D&&B){const F=M.currentTarget,[re,Y]=VD(F);re&&Y?!M.shiftKey&&B===Y?(M.preventDefault(),r&&ds(re,{select:!0})):M.shiftKey&&B===re&&(M.preventDefault(),r&&ds(Y,{select:!0})):B===F&&M.preventDefault()}},[r,i,N.paused]);return R.jsx(Qa.div,{tabIndex:-1,...h,ref:T,onKeyDown:j})});bv.displayName=YD;function GD(e,{select:t=!1}={}){const r=document.activeElement;for(const i of e)if(ds(i,{select:t}),document.activeElement!==r)return}function VD(e){const t=IS(e),r=LS(t,e),i=LS(t.reverse(),e);return[r,i]}function IS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function LS(e,t){for(const r of e)if(!$D(r,{upTo:t}))return r}function $D(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ZD(e){return e instanceof HTMLInputElement&&"select"in e}function ds(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ZD(e)&&t&&e.select()}}var zS=QD();function QD(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=PS(e,t),e.unshift(t)},remove(t){e=PS(e,t),e[0]?.resume()}}}function PS(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function WD(e){return e.filter(t=>t.tagName!=="A")}var XD="Portal",xv=C.forwardRef((e,t)=>{const{container:r,...i}=e,[l,f]=C.useState(!1);fs(()=>f(!0),[]);const h=r||l&&globalThis?.document?.body;return h?OD.createPortal(R.jsx(Qa.div,{...i,ref:t}),h):null});xv.displayName=XD;function KD(e,t){return C.useReducer((r,i)=>t[r][i]??r,e)}var ac=e=>{const{present:t,children:r}=e,i=JD(t),l=typeof r=="function"?r({present:i.isPresent}):C.Children.only(r),f=Zr(i.ref,e2(l));return typeof r=="function"||i.isPresent?C.cloneElement(l,{ref:f}):null};ac.displayName="Presence";function JD(e){const[t,r]=C.useState(),i=C.useRef(null),l=C.useRef(e),f=C.useRef("none"),h=e?"mounted":"unmounted",[m,y]=KD(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const b=Nm(i.current);f.current=m==="mounted"?b:"none"},[m]),fs(()=>{const b=i.current,x=l.current;if(x!==e){const T=f.current,N=Nm(b);e?y("MOUNT"):N==="none"||b?.display==="none"?y("UNMOUNT"):y(x&&T!==N?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,y]),fs(()=>{if(t){let b;const x=t.ownerDocument.defaultView??window,S=N=>{const M=Nm(i.current).includes(CSS.escape(N.animationName));if(N.target===t&&M&&(y("ANIMATION_END"),!l.current)){const D=t.style.animationFillMode;t.style.animationFillMode="forwards",b=x.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=D)})}},T=N=>{N.target===t&&(f.current=Nm(i.current))};return t.addEventListener("animationstart",T),t.addEventListener("animationcancel",S),t.addEventListener("animationend",S),()=>{x.clearTimeout(b),t.removeEventListener("animationstart",T),t.removeEventListener("animationcancel",S),t.removeEventListener("animationend",S)}}else y("ANIMATION_END")},[t,y]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:C.useCallback(b=>{i.current=b?getComputedStyle(b):null,r(b)},[])}}function Nm(e){return e?.animationName||"none"}function e2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var wv=0;function jS(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??US()),document.body.insertAdjacentElement("beforeend",e[1]??US()),wv++,()=>{wv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wv--}},[])}function US(){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 Wa=function(){return Wa=Object.assign||function(t){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(t[f]=r[f])}return t},Wa.apply(this,arguments)};function HS(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)t.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(r[i[l]]=e[i[l]]);return r}function t2(e,t,r){if(r||arguments.length===2)for(var i=0,l=t.length,f;i<l;i++)(f||!(i in t))&&(f||(f=Array.prototype.slice.call(t,0,i)),f[i]=t[i]);return e.concat(f||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Im="right-scroll-bar-position",Lm="width-before-scroll-bar",n2="with-scroll-bars-hidden",a2="--removed-body-scroll-bar-size";function _v(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function r2(e,t){var r=C.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var l=r.value;l!==i&&(r.value=i,r.callback(i,l))}}}})[0];return r.callback=t,r.facade}var i2=typeof window<"u"?C.useLayoutEffect:C.useEffect,BS=new WeakMap;function o2(e,t){var r=r2(null,function(i){return e.forEach(function(l){return _v(l,i)})});return i2(function(){var i=BS.get(r);if(i){var l=new Set(i),f=new Set(e),h=r.current;l.forEach(function(m){f.has(m)||_v(m,null)}),f.forEach(function(m){l.has(m)||_v(m,h)})}BS.set(r,e)},[e]),r}function s2(e){return e}function l2(e,t){t===void 0&&(t=s2);var r=[],i=!1,l={read:function(){if(i)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(f){var h=t(f,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(i=!0;r.length;){var h=r;r=[],h.forEach(f)}r={push:function(m){return f(m)},filter:function(){return r}}},assignMedium:function(f){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(f),h=r}var y=function(){var x=h;h=[],x.forEach(f)},b=function(){return Promise.resolve().then(y)};b(),r={push:function(x){h.push(x),b()},filter:function(x){return h=h.filter(x),r}}}};return l}function u2(e){e===void 0&&(e={});var t=l2(null);return t.options=Wa({async:!0,ssr:!1},e),t}var qS=function(e){var t=e.sideCar,r=HS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C.createElement(i,Wa({},r))};qS.isSideCarExport=!0;function c2(e,t){return e.useMedium(t),qS}var FS=u2(),Sv=function(){},zm=C.forwardRef(function(e,t){var r=C.useRef(null),i=C.useState({onScrollCapture:Sv,onWheelCapture:Sv,onTouchMoveCapture:Sv}),l=i[0],f=i[1],h=e.forwardProps,m=e.children,y=e.className,b=e.removeScrollBar,x=e.enabled,S=e.shards,T=e.sideCar,N=e.noRelative,j=e.noIsolation,M=e.inert,D=e.allowPinchZoom,B=e.as,F=B===void 0?"div":B,re=e.gapMode,Y=HS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ne=T,se=o2([r,t]),fe=Wa(Wa({},Y),l);return C.createElement(C.Fragment,null,x&&C.createElement(ne,{sideCar:FS,removeScrollBar:b,shards:S,noRelative:N,noIsolation:j,inert:M,setCallbacks:f,allowPinchZoom:!!D,lockRef:r,gapMode:re}),h?C.cloneElement(C.Children.only(m),Wa(Wa({},fe),{ref:se})):C.createElement(F,Wa({},fe,{className:y,ref:se}),m))});zm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zm.classNames={fullWidth:Lm,zeroRight:Im};var f2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function d2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=f2();return t&&e.setAttribute("nonce",t),e}function h2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function p2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var m2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=d2())&&(h2(t,r),p2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g2=function(){var e=m2();return function(t,r){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},YS=function(){var e=g2(),t=function(r){var i=r.styles,l=r.dynamic;return e(i,l),null};return t},y2={left:0,top:0,right:0,gap:0},Ev=function(e){return parseInt(e||"",10)||0},v2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],l=t[e==="padding"?"paddingRight":"marginRight"];return[Ev(r),Ev(i),Ev(l)]},b2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return y2;var t=v2(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},x2=YS(),rc="data-scroll-locked",w2=function(e,t,r,i){var l=e.left,f=e.top,h=e.right,m=e.gap;return r===void 0&&(r="margin"),`
|
|
645
|
-
.`.concat(
|
|
643
|
+
`)+we+`return __p
|
|
644
|
+
}`;var pt=G0(function(){return Tt(O,Fe+"return "+we).apply(r,L)});if(pt.source=we,Ju(pt))throw pt;return pt}function wm(s){return It(s).toLowerCase()}function go(s){return It(s).toUpperCase()}function yo(s,c,p){if(s=It(s),s&&(p||c===r))return Oh(s);if(!s||!(c=xa(c)))return s;var v=gr(s),_=gr(c),O=h1(v,_),L=Mh(v,_)+1;return gi(v,O,L).join("")}function vo(s,c,p){if(s=It(s),s&&(p||c===r))return s.slice(0,ga(s)+1);if(!s||!(c=xa(c)))return s;var v=gr(s),_=Mh(v,gr(c))+1;return gi(v,0,_).join("")}function ic(s,c,p){if(s=It(s),s&&(p||c===r))return s.replace(Ql,"");if(!s||!(c=xa(c)))return s;var v=gr(s),_=h1(v,gr(c));return gi(v,_).join("")}function oc(s,c){var p=Ee,v=Re;if(fn(c)){var _="separator"in c?c.separator:_;p="length"in c?lt(c.length):p,v="omission"in c?xa(c.omission):v}s=It(s);var O=s.length;if(jo(s)){var L=gr(s);O=L.length}if(p>=O)return s;var H=p-Gs(v);if(H<1)return v;var Z=L?gi(L,0,H).join(""):s.slice(0,H);if(_===r)return Z+v;if(L&&(H+=Z.length-H),im(_)){if(s.slice(H).search(_)){var pe,me=Z;for(_.global||(_=hu(_.source,It(Do.exec(_))+"g")),_.lastIndex=0;pe=_.exec(me);)var we=pe.index;Z=Z.slice(0,we===r?H:we)}}else if(s.indexOf(xa(_),H)!=H){var ke=Z.lastIndexOf(_);ke>-1&&(Z=Z.slice(0,ke))}return Z+v}function bo(s){return s=It(s),s&&bt.test(s)?s.replace(ge,du):s}var Zx=ts(function(s,c,p){return s+(p?" ":"")+c.toUpperCase()}),wd=Hf("toUpperCase");function Tl(s,c,p){return s=It(s),c=p?r:c,c===r?m1(s)?v1(s):ix(s):s.match(c)||[]}var G0=at(function(s,c){try{return ka(s,r,c)}catch(p){return Ju(p)?p:new rt(p)}}),V0=Sr(function(s,c){return Za(c,function(p){p=Ar(p),va(s,p,od(s[p],s))}),s});function _d(s){var c=s==null?0:s.length,p=Le();return s=c?Kt(s,function(v){if(typeof v[1]!="function")throw new Bn(h);return[p(v[0]),v[1]]}):[],at(function(v){for(var _=-1;++_<c;){var O=s[_];if(ka(O[0],this,v))return ka(O[1],this,v)}})}function $0(s){return Sf(Jn(s,E))}function _m(s){return function(){return s}}function Sd(s,c){return s==null||s!==s?c:s}var Cd=up(),Z0=up(!0);function jn(s){return s}function Ed(s){return Eu(typeof s=="function"?s:Jn(s,E))}function Sm(s){return Tf(Jn(s,E))}function Ad(s,c){return Of(s,Jn(c,E))}var Q0=at(function(s,c){return function(p){return il(p,s,c)}}),Qx=at(function(s,c){return function(p){return il(s,p,c)}});function Ol(s,c,p){var v=Fn(c),_=_u(c,v);p==null&&!(fn(c)&&(_.length||!v.length))&&(p=c,c=s,s=this,_=_u(c,Fn(c)));var O=!(fn(p)&&"chain"in p)||!!p.chain,L=Dr(s);return Za(_,function(H){var Z=c[H];s[H]=Z,L&&(s.prototype[H]=function(){var pe=this.__chain__;if(O||pe){var me=s(this.__wrapped__),we=me.__actions__=ua(this.__actions__);return we.push({func:Z,args:arguments,thisArg:s}),me.__chain__=pe,me}return Z.apply(s,Qi([this.value()],arguments))})}),s}function e(){return Zn._===this&&(Zn._=hf),this}function a(){}function o(s){return s=lt(s),at(function(c){return M1(c,s)})}var u=qf(Kt),d=qf(o1),m=qf(of);function x(s){return $f(s)?ou(Ar(s)):la(s)}function S(s){return function(c){return s==null?r:nr(s,c)}}var P=cp(),J=cp(!0);function oe(){return[]}function he(){return!1}function ee(){return{}}function ae(){return""}function je(){return!0}function Qe(s,c){if(s=lt(s),s<1||s>z)return[];var p=Ve,v=Nn(s,Ve);c=Le(c),s-=Ve;for(var _=uf(v,c);++p<s;)c(p);return _}function Yt(s){return it(s)?Kt(s,Ar):Aa(s)?[s]:ua(Op(It(s)))}function $(s){var c=++_1;return It(s)+c}var B=ns(function(s,c){return s+c},0),K=ju("ceil"),fe=ns(function(s,c){return s/c},1),$e=ju("floor");function Rt(s){return s&&s.length?wr(s,jn,Cu):r}function Be(s,c){return s&&s.length?wr(s,Le(c,2),Cu):r}function ut(s){return u1(s,jn)}function wt(s,c){return u1(s,Le(c,2))}function Mt(s){return s&&s.length?wr(s,jn,Qh):r}function xo(s,c){return s&&s.length?wr(s,Le(c,2),Qh):r}var Wx=ns(function(s,c){return s*c},1),Z8=ju("round"),Q8=ns(function(s,c){return s-c},0);function W8(s){return s&&s.length?lf(s,jn):0}function X8(s,c){return s&&s.length?lf(s,Le(c,2)):0}return C.after=p0,C.ary=Vp,C.assign=Nx,C.assignIn=dm,C.assignInWith=El,C.assignWith=hm,C.at=Ix,C.before=$p,C.bind=od,C.bindAll=V0,C.bindKey=Zp,C.castArray=Ku,C.chain=ed,C.chunk=Mp,C.compact=Z1,C.concat=Dp,C.cond=_d,C.conforms=$0,C.constant=_m,C.countBy=Bp,C.create=ir,C.curry=Qp,C.curryRight=Qu,C.debounce=Wp,C.defaults=pm,C.defaultsDeep=O0,C.defer=m0,C.delay=Ut,C.difference=kp,C.differenceBy=Wf,C.differenceWith=Q1,C.drop=vi,C.dropRight=An,C.dropRightWhile=Np,C.dropWhile=W1,C.fill=qn,C.filter=$u,C.flatMap=o0,C.flatMapDeep=Ea,C.flatMapDepth=s0,C.flatten=Lp,C.flattenDeep=sn,C.flattenDepth=wa,C.flip=Xp,C.flow=Cd,C.flowRight=Z0,C.fromPairs=bi,C.functions=Ei,C.functionsIn=Lx,C.groupBy=ho,C.initial=J1,C.intersection=bx,C.intersectionBy=Xf,C.intersectionWith=_a,C.invert=zx,C.invertBy=jx,C.invokeMap=Yp,C.iteratee=Ed,C.keyBy=xl,C.keys=Fn,C.keysIn=Ta,C.map=Zu,C.mapKeys=Ux,C.mapValues=Hx,C.matches=Sm,C.matchesProperty=Ad,C.memoize=sd,C.merge=k0,C.mergeWith=fs,C.method=Q0,C.methodOf=Qx,C.mixin=Ol,C.negate=Wu,C.nthArg=o,C.omit=tc,C.omitBy=N0,C.once=Ex,C.orderBy=u0,C.over=u,C.overArgs=Ax,C.overEvery=d,C.overSome=m,C.partial=Kp,C.partialRight=Xu,C.partition=c0,C.pick=Bx,C.pickBy=ds,C.property=x,C.propertyOf=S,C.pull=xi,C.pullAll=so,C.pullAllBy=wi,C.pullAllWith=jp,C.pullAt=Pp,C.range=P,C.rangeRight=J,C.rearg=_l,C.reject=Gp,C.remove=Rr,C.rest=Jp,C.reverse=Kf,C.sampleSize=Sx,C.set=I0,C.setWith=hd,C.shuffle=Cx,C.slice=ml,C.sortBy=wl,C.sortedUniq=a0,C.sortedUniqBy=Jf,C.split=bm,C.spread=ld,C.tail=r0,C.take=xx,C.takeRight=wx,C.takeRightWhile=Dt,C.takeWhile=Qt,C.tap=td,C.throttle=em,C.thru=Vu,C.toArray=um,C.toPairs=pd,C.toPairsIn=md,C.toPath=Yt,C.toPlainObject=cm,C.transform=gd,C.unary=po,C.union=yt,C.unionBy=xt,C.unionWith=Pt,C.uniq=Pa,C.uniqBy=lo,C.uniqWith=yl,C.unset=L0,C.unzip=Yu,C.unzipWith=$r,C.update=z0,C.updateWith=qx,C.values=hs,C.valuesIn=Fx,C.without=mn,C.words=Tl,C.wrap=Zr,C.xor=uo,C.xorBy=os,C.xorWith=Up,C.zip=Ua,C.zipObject=vl,C.zipObjectDeep=Gu,C.zipWith=Ca,C.entries=pd,C.entriesIn=md,C.extend=dm,C.extendWith=El,Ol(C,C),C.add=B,C.attempt=G0,C.camelCase=vd,C.capitalize=ac,C.ceil=K,C.clamp=gm,C.clone=Tx,C.cloneDeep=y0,C.cloneDeepWith=v0,C.cloneWith=g0,C.conformsTo=b0,C.deburr=j0,C.defaultTo=Sd,C.divide=fe,C.endsWith=rc,C.eq=Mr,C.escape=Gx,C.escapeRegExp=P0,C.every=i0,C.find=qp,C.findIndex=X1,C.findKey=R0,C.findLast=Ha,C.findLastIndex=Ip,C.findLastKey=M0,C.floor=$e,C.forEach=Fp,C.forEachRight=l0,C.forIn=ec,C.forInRight=or,C.forOwn=D0,C.forOwnRight=fd,C.get=mm,C.gt=tm,C.gte=x0,C.has=Al,C.hasIn=dd,C.head=zp,C.identity=jn,C.includes=rd,C.indexOf=K1,C.inRange=Yx,C.invoke=Px,C.isArguments=mo,C.isArray=it,C.isArrayBuffer=nm,C.isArrayLike=ta,C.isArrayLikeObject=Cn,C.isBoolean=Ox,C.isBuffer=rr,C.isDate=Rx,C.isElement=w0,C.isEmpty=vt,C.isEqual=am,C.isEqualWith=ud,C.isError=Ju,C.isFinite=_0,C.isFunction=Dr,C.isInteger=Sl,C.isLength=ls,C.isMap=S0,C.isMatch=Mx,C.isMatchWith=C0,C.isNaN=E0,C.isNative=Ft,C.isNil=Wn,C.isNull=rm,C.isNumber=A0,C.isObject=fn,C.isObjectLike=dn,C.isPlainObject=Cl,C.isRegExp=im,C.isSafeInteger=om,C.isSet=cd,C.isString=us,C.isSymbol=Aa,C.isTypedArray=cs,C.isUndefined=sm,C.isWeakMap=lm,C.isWeakSet=Dx,C.join=Or,C.kebabCase=U0,C.last=ja,C.lastIndexOf=Sa,C.lowerCase=H0,C.lowerFirst=B0,C.lt=T0,C.lte=kx,C.max=Rt,C.maxBy=Be,C.mean=ut,C.meanBy=wt,C.min=Mt,C.minBy=xo,C.stubArray=oe,C.stubFalse=he,C.stubObject=ee,C.stubString=ae,C.stubTrue=je,C.multiply=Wx,C.nth=e0,C.noConflict=e,C.noop=a,C.now=ss,C.pad=ym,C.padEnd=q0,C.padStart=F0,C.parseInt=bd,C.random=yd,C.reduce=f0,C.reduceRight=id,C.repeat=Vx,C.replace=$x,C.result=nc,C.round=Z8,C.runInContext=V,C.sample=_x,C.size=d0,C.snakeCase=vm,C.some=h0,C.sortedIndex=Bu,C.sortedIndexBy=qu,C.sortedIndexOf=gl,C.sortedLastIndex=t0,C.sortedLastIndexBy=n0,C.sortedLastIndexOf=Fu,C.startCase=xd,C.startsWith=xm,C.subtract=Q8,C.sum=W8,C.sumBy=X8,C.template=Y0,C.times=Qe,C.toFinite=Si,C.toInteger=lt,C.toLength=Ci,C.toLower=wm,C.toNumber=Ba,C.toSafeInteger=fm,C.toString=It,C.toUpper=go,C.trim=yo,C.trimEnd=vo,C.trimStart=ic,C.truncate=oc,C.unescape=bo,C.uniqueId=$,C.upperCase=Zx,C.upperFirst=wd,C.each=Fp,C.eachRight=l0,C.first=zp,Ol(C,(function(){var s={};return ba(C,function(c,p){jt.call(C.prototype,p)||(s[p]=c)}),s})(),{chain:!1}),C.VERSION=i,Za(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){C[s].placeholder=C}),Za(["drop","take"],function(s,c){ht.prototype[s]=function(p){p=p===r?1:on(lt(p),0);var v=this.__filtered__&&!c?new ht(this):this.clone();return v.__filtered__?v.__takeCount__=Nn(p,v.__takeCount__):v.__views__.push({size:Nn(p,Ve),type:s+(v.__dir__<0?"Right":"")}),v},ht.prototype[s+"Right"]=function(p){return this.reverse()[s](p).reverse()}}),Za(["filter","map","takeWhile"],function(s,c){var p=c+1,v=p==se||p==Q;ht.prototype[s]=function(_){var O=this.clone();return O.__iteratees__.push({iteratee:Le(_,3),type:p}),O.__filtered__=O.__filtered__||v,O}}),Za(["head","last"],function(s,c){var p="take"+(c?"Right":"");ht.prototype[s]=function(){return this[p](1).value()[0]}}),Za(["initial","tail"],function(s,c){var p="drop"+(c?"":"Right");ht.prototype[s]=function(){return this.__filtered__?new ht(this):this[p](1)}}),ht.prototype.compact=function(){return this.filter(jn)},ht.prototype.find=function(s){return this.filter(s).head()},ht.prototype.findLast=function(s){return this.reverse().find(s)},ht.prototype.invokeMap=at(function(s,c){return typeof s=="function"?new ht(this):this.map(function(p){return il(p,s,c)})}),ht.prototype.reject=function(s){return this.filter(Wu(Le(s)))},ht.prototype.slice=function(s,c){s=lt(s);var p=this;return p.__filtered__&&(s>0||c<0)?new ht(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),c!==r&&(c=lt(c),p=c<0?p.dropRight(-c):p.take(c-s)),p)},ht.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ht.prototype.toArray=function(){return this.take(Ve)},ba(ht.prototype,function(s,c){var p=/^(?:filter|find|map|reject)|While$/.test(c),v=/^(?:head|last)$/.test(c),_=C[v?"take"+(c=="last"?"Right":""):c],O=v||/^find/.test(c);_&&(C.prototype[c]=function(){var L=this.__wrapped__,H=v?[1]:arguments,Z=L instanceof ht,pe=H[0],me=Z||it(L),we=function(St){var Ct=_.apply(C,Qi([St],H));return v&&ke?Ct[0]:Ct};me&&p&&typeof pe=="function"&&pe.length!=1&&(Z=me=!1);var ke=this.__chain__,Fe=!!this.__actions__.length,Je=O&&!ke,pt=Z&&!Fe;if(!O&&me){L=pt?L:new ht(this);var et=s.apply(L,H);return et.__actions__.push({func:Vu,args:[we],thisArg:r}),new Kn(et,ke)}return Je&&pt?s.apply(this,H):(et=this.thru(we),Je?v?et.value()[0]:et.value():et)})}),Za(["pop","push","shift","sort","splice","unshift"],function(s){var c=pu[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",v=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var _=arguments;if(v&&!this.__chain__){var O=this.value();return c.apply(it(O)?O:[],_)}return this[p](function(L){return c.apply(it(L)?L:[],_)})}}),ba(ht.prototype,function(s,c){var p=C[c];if(p){var v=p.name+"";jt.call(pn,v)||(pn[v]=[]),pn[v].push({name:c,func:p})}}),pn[ro(r,q).name]=[{name:"wrapper",func:r}],ht.prototype.clone=Go,ht.prototype.reverse=fi,ht.prototype.value=eo,C.prototype.at=nd,C.prototype.chain=ad,C.prototype.commit=co,C.prototype.next=zn,C.prototype.plant=bl,C.prototype.reverse=_i,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=Hp,C.prototype.first=C.prototype.head,gu&&(C.prototype[gu]=fo),C}),Wi=b1();si?((si.exports=Wi)._=Wi,iu._=Wi):Zn._=Wi}).call(R2)})(nh,nh.exports)),nh.exports}var Cv=M2();const D2=mt({departureAirport:N(),arrivalAirport:N(),startDate:N().date(),endDate:N().date().optional().nullable()}),k2=fv(N(),mt({date:N(),stops:nt().optional().nullable(),flightsState:nt()}));function N2(t,n=500){const[r,i]=T.useState(t),l=T.useRef(t);return T.useEffect(()=>{if(l.current===t)return;const f=t,h=setTimeout(()=>{l.current!==f&&(l.current=f,i(f))},n);return()=>clearTimeout(h)},[t,n]),r}async function I2(t,n){const r=`${t}/api/calendar-v2`,i=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw new Error("Unable to get flight calendar");const l=await i.json();return k2.parse(l)}function MS({apiDomain:t,params:n,debounceTime:r=500}){const i=N2(n,r),l=typeof i.origin=="string"&&i.origin.trim().length>0,f=typeof i.destination=="string"&&i.destination.trim().length>0,h=!!i.startDate&&l&&f,{data:g,status:y}=Sw({queryKey:["flight-calendar",i.origin,i.destination,i.startDate?.toISOString(),i.endDate?.toISOString()],enabled:h,queryFn:()=>{const b=i.startDate.toISOString().slice(0,10),w=i.endDate?i.endDate.toISOString().slice(0,10):void 0,E=D2.safeParse({departureAirport:i.origin.split(",")[0]??"",arrivalAirport:i.destination.split(",")[0]??"",startDate:b,endDate:w});if(!E.success)throw new Error("Invalid flight-calendar parameters");return I2(t,E.data)},refetchOnWindowFocus:!1,refetchOnMount:!1,staleTime:1e3*60*1});return{data:g,status:y}}async function L2({query:t,departureAirport:n,marketingCarrierCodeIATA:r,apiDomain:i}){const l={query:t,departureAirportIATA:n,marketingCarrierCodeIATA:r},f=new URLSearchParams(l).toString(),h=await fetch(`${i}/api/iata-directs?${f}`);if(!h.ok)throw console.error("Unable to fetch airport suggestions",{departureAirport:n,apiDomain:i,status:h.status,statusText:h.statusText}),new Error("Unable to fetch airport suggestions");const g=await h.json();return fO.parse(g)}async function z2(t,n,r,i){if(!n)return[];const l=await L2({query:t,departureAirport:n,marketingCarrierCodeIATA:r,apiDomain:i});return l.success?l.data.map(g=>({iata_code:g.airportIATA,city:g.city,lat:0,lng:0,country_code:g.country,name:g.airportIATA+" ("+g.city+")",geometry:{location:{lat:0,lng:0}},formatted_address:"",cid:g.airportIATA,types:["airport"],nearbyAirports:[{name:g.airportIATA+" ("+g.city+")",iata_code:g.airportIATA,city:g.city,country_code:g.country,lat:0,lng:0}]})):[]}async function j2({departureAirport:t,apiDomain:n}){const r={departureAirportIATA:t},i=new URLSearchParams(r).toString(),l=await fetch(`${n}/api/iata-auto-complete?${i}`);if(!l.ok)throw console.error("Unable to fetch airport suggestions",{departureAirport:t,apiDomain:n,status:l.status,statusText:l.statusText}),new Error("Unable to fetch airport suggestions");const f=await l.json();return x2.parse(f)}async function P2(t,n,r){if(!n)return[];const i=await j2({departureAirport:n,apiDomain:r});return i.success?i.data.map(h=>({iata_code:h.airportIATA,city:h.city,state:h.state,country:h.country,stops:h.stops||0,airlineCodes:h.airlineCodes||[],name:h.city+" ("+h.airportIATA+")",type:"airport",lat:0,lng:0,country_code:h.country||"",geometry:{location:{lat:0,lng:0}},formatted_address:"",cid:h.airportIATA,types:["airport"],nearbyAirports:[{name:h.airportIATA+" ("+h.city+")",iata_code:h.airportIATA,city:h.city,country_code:h.country,stops:h.stops||0,airlineCodes:h.airlineCodes||[],routeStart:h.routeStart,lat:0,lng:0}]})).map(h=>{const g={...h,airlineCodes:h.airlineCodes?.map(y=>y==="DWI"?"DW":y)};return g.nearbyAirports=h.nearbyAirports.map(y=>({...y,airlineCodes:y.airlineCodes?.map(b=>b==="DWI"?"DW":b)})),g}).sort((h,g)=>!h.city||!g.city?0:h.city.localeCompare(g.city)):[]}function Xm(t){return t*(Math.PI/180)}function U2(t){return t*.621371}function H2(t,n,r,i){const f=Xm(r-t),h=Xm(i-n),g=Math.sin(f/2)*Math.sin(f/2)+Math.cos(Xm(t))*Math.cos(Xm(r))*Math.sin(h/2)*Math.sin(h/2);return 6371*(2*Math.atan2(Math.sqrt(g),Math.sqrt(1-g)))}async function Ev({query:t,searchType:n}){const r=await fetch(`https://www.kayak.com/mv/marvel?f=j&s=${n}&v=v1&where=${t}&lc=en&lc_cc=US`);if(!r.ok)throw new Error("Unable to get kayak suggestions");return await r.json()}async function B2(t,n=Wm.Hotels){return t?.length?t.length<3?[]:(await Ev({query:t,searchType:n})).reduce((l,f)=>{if(f.isMetroOnly)l.push({nearbyAirports:[],iata_code:f.displayType.type!=="country"?f.id:void 0,formatted_address:f.cityname,geometry:{location:{lat:f.lat,lng:f.lng}},name:f.cityonly,cid:f.cid,types:["place"]});else if(f.displayType.type==="country")l.push({nearbyAirports:[],formatted_address:f.displayname,geometry:{location:{lat:f.lat,lng:f.lng}},name:f.displayname,cid:f.cid,types:["place"]});else if(f.displayType.type==="state")l.push({nearbyAirports:[],formatted_address:f.displayname,geometry:{location:{lat:f.lat,lng:f.lng}},name:f.displayname,cid:f.cid,types:["place"]});else if(f.displayType.type==="airport"){const h=f.cid,g=l.findIndex(b=>b.cid===h&&Array.isArray(b.types)&&b.types.includes("place")),y={iata_code:f.id,city:f.cityonly,lat:f.lat,lng:f.lng,country_code:f.cc,name:f.displayname};if(g>-1){const{lat:b,lng:w}=l[g].geometry.location,E=H2(b,w,f.lat,f.lng);y.distance=U2(E),l[g].nearbyAirports.push(y)}else l.push({nearbyAirports:[y],formatted_address:f.cityname,geometry:{location:{lat:f.lat,lng:f.lng}},name:f.name,rid:f.rid,types:["airport"]})}return l},[]):[]}function DS({key:t,apiDomain:n,airportIATA:r,providersArr:i,airlinesArr:l,debounceTime:f=500,autocompleteType:h="kayak"}){const[g,y]=T.useState(""),b=T.useMemo(()=>Cv.debounce(y,f),[f]),{data:w,status:E}=Sw({queryKey:[t,r,i,l,g,h].flat(),queryFn:()=>h==="schedule_data"&&r?.length&&r?.length===3?P2(g,r,n):r?.length&&r?.length===3&&(i?.length||0)>0&&(l?.length||0)>0&&i?.every(A=>A==="G4")&&l?.every(A=>A==="G4")?z2(g,r,l[0],n):B2(g)});return{data:w,status:E,setQuery:b}}function q2(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",className:"a1-w-6 a1-h-6",children:M.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})}function F2(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,className:"a1-w-6 a1-h-6 a1-stroke-gray-500 dark:a1-stroke-gray-100",children:M.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})})}function Km({name:t,properties:n}){Y2(t,n)||G2(t,n)}function Y2(t,n){let r=null;try{r=new URL(window.location.href).searchParams.get("gclid")||null}catch{}const{consentedAnalytics:i,analytics:l}=window,f=i??l;return f?.track?.(t,{...n,gclid:r}),typeof f?.track=="function"}function G2(t,n){window.dataLayer?.push({event:t,...n})}var Jm={exports:{}},V2=Jm.exports,kS;function $2(){return kS||(kS=1,(function(t,n){(function(r,i){t.exports=i()})(V2,(function(){var r=function(f,h){if(h=h||{},typeof f!="function")throw new l("fetch must be a function");if(typeof h!="object")throw new l("defaults must be an object");if(h.retries!==void 0&&!i(h.retries))throw new l("retries must be a positive integer");if(h.retryDelay!==void 0&&!i(h.retryDelay)&&typeof h.retryDelay!="function")throw new l("retryDelay must be a positive integer or a function returning a positive integer");if(h.retryOn!==void 0&&!Array.isArray(h.retryOn)&&typeof h.retryOn!="function")throw new l("retryOn property expects an array or function");var g={retries:3,retryDelay:1e3,retryOn:[]};return h=Object.assign(g,h),function(b,w){var E=h.retries,A=h.retryDelay,I=h.retryOn;if(w&&w.retries!==void 0)if(i(w.retries))E=w.retries;else throw new l("retries must be a positive integer");if(w&&w.retryDelay!==void 0)if(i(w.retryDelay)||typeof w.retryDelay=="function")A=w.retryDelay;else throw new l("retryDelay must be a positive integer or a function returning a positive integer");if(w&&w.retryOn)if(Array.isArray(w.retryOn)||typeof w.retryOn=="function")I=w.retryOn;else throw new l("retryOn property expects an array or function");return new Promise(function(j,D){var R=function(Y){var re=typeof Request<"u"&&b instanceof Request?b.clone():b;f(re,w).then(function(G){if(Array.isArray(I)&&I.indexOf(G.status)===-1)j(G);else if(typeof I=="function")try{return Promise.resolve(I(Y,null,G)).then(function(te){te?q(Y,null,G):j(G)}).catch(D)}catch(te){D(te)}else Y<E?q(Y,null,G):j(G)}).catch(function(G){if(typeof I=="function")try{Promise.resolve(I(Y,G,null)).then(function(te){te?q(Y,G,null):D(G)}).catch(function(te){D(te)})}catch(te){D(te)}else Y<E?q(Y,G,null):D(G)})};function q(Y,re,G){var te=typeof A=="function"?A(Y,re,G):A;setTimeout(function(){R(++Y)},te)}R(0)})}};function i(f){return Number.isInteger(f)&&f>=0}function l(f){this.name="ArgumentError",this.message=f}return r}))})(Jm)),Jm.exports}var Z2=$2();const Q2=sc(Z2),W2="X-RateLimit-Scope",X2="X-RateLimit-Limit",K2="X-RateLimit-Remaining",J2="X-RateLimit-Reset",eR="X-QueryLimit-Limit",tR="X-QueryLimit-Remaining",nR="X-QueryLimit-Reset",aR="X-IngestLimit-Limit",rR="X-IngestLimit-Remaining",iR="X-IngestLimit-Reset";var ah;(function(t){t.unknown="unknown",t.user="user",t.organization="organization",t.anonymous="anonymous"})(ah||(ah={}));var Hl;(function(t){t.api="api",t.query="query",t.ingest="ingest"})(Hl||(Hl={}));class oR{scope;type;value;remaining;reset;constructor(n=ah.unknown,r=Hl.api,i=0,l=-1,f=new Date){this.scope=n,this.type=r,this.value=i,this.remaining=l,this.reset=f}}function sR(t){let n;return t.url?.endsWith("/ingest")?(n=Av(t,"",aR,rR,iR),n.type=Hl.ingest):t.url?.endsWith("/query")||t.url?.endsWith("/_apl")?(n=Av(t,"",eR,tR,nR),n.type=Hl.query):(n=Av(t,W2,X2,K2,J2),n.type=Hl.api),n}function Av(t,n,r,i,l){let f=new oR;const h=t.headers.get(n.toLowerCase())||ah.unknown;f.scope=ah[h];const g=t.headers.get(r.toLowerCase())||"",y=parseInt(g,10);isNaN(y)||(f.value=y);const b=t.headers.get(i.toLowerCase())||"",w=parseInt(b,10);isNaN(w)||(f.remaining=w);const E=t.headers.get(l.toLowerCase())||"",A=parseInt(E,10);return isNaN(A)||(f.reset=new Date(A*1e3)),f}class lR{config;constructor(n){this.config=n}async doReq(n,r,i={},l={},f=this.config.timeout){let h=`${this.config.baseUrl}${n}`;const g=this._prepareSearchParams(l);g&&(h+=`?${g.toString()}`);const y={...this.config.headers,...i.headers},b=await Q2(fetch)(h,{retries:1,retryDelay:function(w,E,A){return Math.pow(2,w)*1e3},retryOn:[503,502,504,500],headers:y,method:r,body:i.body?i.body:void 0,signal:AbortSignal.timeout(f),cache:"no-store"});if(b.status===204)return b;if(b.status==429){const w=sR(b);return Promise.reject(new eg(w))}else{if(b.status===401)return Promise.reject(new Error("Forbidden"));if(b.status>=400){const w=await b.json();return Promise.reject(new Error(w.message))}}return await b.json()}post(n,r={},i={},l=this.config.timeout){return this.doReq(n,"POST",r,i,l)}get(n,r={},i={},l=this.config.timeout){return this.doReq(n,"GET",r,i,l)}put(n,r={},i={},l=this.config.timeout){return this.doReq(n,"PUT",r,i,l)}delete(n,r={},i={},l=this.config.timeout){return this.doReq(n,"DELETE",r,i,l)}_prepareSearchParams=n=>{const r=new URLSearchParams;let i=!1;return Object.keys(n).forEach(l=>{n[l]&&(r.append(l,n[l]),i=!0)}),i?r:null}}class eg extends Error{limit;shortcircuit;message="";constructor(n,r=!1){super(),this.limit=n,this.shortcircuit=r,Object.setPrototypeOf(this,eg.prototype);const i=eg.timeUntilReset(n);this.message=`${n.type} limit exceeded, try again in ${i.minutes}m${i.seconds}s`,n.type==Hl.api&&(this.message=`${n.scope} `+this.message)}static timeUntilReset(n){const r=n.reset.getTime()-new Date().getTime(),i=Math.floor(r/1e3%60),l=Math.floor(r/1e3/60%60);return{total:r,minutes:l,seconds:i}}}const uR="1.3.1",cR="https://api.axiom.co";class Tv{client;constructor({orgId:n="",token:r,url:i}){r||console.warn("Missing Axiom token");const l=i??cR,f={Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+r};typeof window>"u"&&(f["User-Agent"]="axiom-js/"+uR),n&&(f["X-Axiom-Org-Id"]=n),this.client=new lR({baseUrl:l,headers:f,timeout:2e4})}}var NS;(function(t){t.TimestampField="_time";class n extends Tv{localPath="/v1/datasets";list=()=>this.client.get(this.localPath);get=i=>this.client.get(this.localPath+"/"+i);create=(i,l)=>{const f=new URLSearchParams;f.set("referrer",l?.referrer??"");let h=`/v2/datasets?${f.toString()}`;return this.client.post(h,{body:JSON.stringify(i)})};update=(i,l)=>this.client.put(this.localPath+"/"+i,{body:JSON.stringify(l)});delete=i=>this.client.delete(this.localPath+"/"+i);trim=(i,l)=>{const f={maxDuration:l};return this.client.post(this.localPath+"/"+i+"/trim",{body:JSON.stringify(f)})}}t.Service=n})(NS||(NS={}));var IS;(function(t){class n extends Tv{current=()=>this.client.get("/v1/user")}t.Service=n})(IS||(IS={})),BigInt.prototype.toJSON=function(){return this.toString()};var LS;(function(t){t.JSON="application/json",t.NDJSON="application/x-ndjson",t.CSV="text/csv"})(LS||(LS={}));var zS;(function(t){t.Identity="",t.GZIP="gzip"})(zS||(zS={}));var jS;(function(t){t.Count="count",t.Distinct="distinct",t.Sum="sum",t.Avg="avg",t.Min="min",t.Max="max",t.Topk="topk",t.Percentiles="percentiles",t.Histogram="histogram",t.Variance="variance",t.Stdev="stdev",t.ArgMin="argmin",t.ArgMax="argmax",t.MakeSet="makeset",t.MakeSetIf="makesetif",t.CountIf="countif",t.CountDistinctIf="distinctif"})(jS||(jS={}));var PS;(function(t){t.And="and",t.Or="or",t.Not="not",t.Equal="==",t.NotEqual="!=",t.Exists="exists",t.NotExists="not-exists",t.GreaterThan=">",t.GreaterThanOrEqualTo=">=",t.LessThan="<",t.LessThanOrEqualTo="<=",t.Gt="gt",t.Gte="gte",t.Lt="lt",t.Lte="lte",t.StartsWith="starts-with",t.NotStartsWith="not-starts-with",t.EndsWith="ends-with",t.NotEndsWith="not-ends-with",t.Contains="contains",t.NotContains="not-contains",t.Regexp="regexp",t.NotRegexp="not-regexp"})(PS||(PS={}));var US;(function(t){class n extends Tv{localPath="/v2/annotations";list=i=>this.client.get(this.localPath,{},i);get=i=>this.client.get(this.localPath+"/"+i);create=i=>this.client.post(this.localPath,{body:JSON.stringify(i)});update=(i,l)=>this.client.put(this.localPath+"/"+i,{body:JSON.stringify(l)});delete=i=>this.client.delete(this.localPath+"/"+i)}t.Service=n})(US||(US={}));const Rn=t=>"process"in globalThis?globalThis.process.env[t]:void 0,fR=Rn("NEXT_PUBLIC_VERCEL")||Rn("VERCEL"),dR=Rn("NETLIFY")=="true",Ov=Rn("NODE_ENV"),hR=Rn("REGION")||void 0,pR="0.1.5",mR=typeof self<"u"&&typeof globalThis.WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Rv=typeof window<"u"||mR,HS=!!globalThis.EdgeRuntime,gR=[t=>{if(fR){const r=t;return r.vercel={environment:Rn("VERCEL_ENV")??Ov,region:Rn("VERCEL_REGION"),deploymentId:Rn("VERCEL_DEPLOYMENT_ID"),deploymentUrl:Rn("NEXT_PUBLIC_VERCEL_URL"),project:Rn("NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL"),source:t.source},r.git={commit:Rn("NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA"),repo:Rn("NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG"),ref:Rn("NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF")},r}if(dR){const r=t;return r.netlify={environment:Ov,region:Rn(HS?"DENO_REGION":"AWS_REGION"),siteId:Rn("SITE_ID"),buildId:Rn("BUILD_ID"),context:Rn("CONTEXT"),deploymentUrl:Rn("DEPLOYMENT_URL"),deploymentId:Rn(HS?"DENO_DEPLOYMENT_ID":"NETLIFY_DEPLOYMENT_ID"),source:t.source},r}const n=t;return n.platform={environment:Ov,region:hR,source:t.source},n}];var yR=Object.defineProperty,vR=(t,n,r)=>n in t?yR(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Kr=(t,n,r)=>(vR(t,typeof n!="symbol"?n+"":n,r),r);const bR="info",Ec=Symbol.for("logging.event"),rh={debug:0,info:1,warn:2,error:3,off:100},ji={debug:"debug",info:"info",warn:"warn",error:"error",off:"off"};class Mv{constructor(n){Kr(this,"children",[]),Kr(this,"logLevel",rh.debug),Kr(this,"config"),Kr(this,"debug",(r,i={})=>{this.log(ji.debug,r,i)}),Kr(this,"info",(r,i={})=>{this.log(ji.info,r,i)}),Kr(this,"warn",(r,i={})=>{this.log(ji.warn,r,i)}),Kr(this,"error",(r,i={})=>{this.log(ji.error,r,i)}),Kr(this,"with",r=>{const{[Ec]:i,...l}=this.config.args??{},{[Ec]:f,...h}=r,g={...i??{},...f??{}},y={...this.config,args:{...l,...h,[Ec]:g}},b=new Mv(y);return this.children.push(b),b}),Kr(this,"_transformEvent",(r,i,l={})=>{let f={},h=this.config.args??{};if(this.config.args&&Ec in this.config.args){const{[Ec]:y,...b}=this.config.args??{};f={...y??{}},h=b}const g={level:ji[r].toString(),message:i,_time:new Date(Date.now()).toISOString(),fields:h,"@app":{"axiom-logging-version":pR},source:Rv?"browser-log":"server-log"};if(f&&typeof f=="object"&&Object.assign(g,f),l instanceof Error&&(g.fields={...g.fields,message:l.message,stack:l.stack,name:l.name}),typeof l=="object"&&l!==null){const{[Ec]:y,...b}=l,w=JSON.parse(JSON.stringify(b,xR));y&&typeof y=="object"&&y!==null&&Object.assign(g,y),Object.keys(w).length>0&&(g.fields={...g.fields,...w})}else Array.isArray(l)&&(g.fields={...g.fields,args:l});return this.config.formatters&&this.config.formatters.length>0?this.config.formatters.reduce((y,b)=>b(y),g):g}),Kr(this,"log",(r,i,l={})=>{this.config.transports.forEach(f=>f.log([this._transformEvent(r,i,l)]))}),Kr(this,"flush",async()=>{const r=[...this.config.transports.map(i=>i.flush()),...this.children.map(i=>i.flush())];await Promise.allSettled(r)}),this.initConfig=n,this.initConfig.logLevel!=null?this.logLevel=rh[this.initConfig.logLevel]:this.logLevel=rh[bR],this.config={...n},this.config.overrideDefaultFormatters||(this.config.formatters=[...gR,...this.config.formatters??[]])}raw(n){this.config.transports.forEach(r=>r.log([n]))}}function xR(t,n){return n instanceof Error?{...n,name:n.name,message:n.message,stack:n.stack}:n}var wR=Object.defineProperty,_R=(t,n,r)=>n in t?wR(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,BS=(t,n,r)=>(_R(t,typeof n!="symbol"?n+"":n,r),r);const tg={info:{terminal:"32",browser:"lightgreen"},debug:{terminal:"36",browser:"lightblue"},warn:{terminal:"33",browser:"yellow"},error:{terminal:"31",browser:"red"}};class SR{constructor(n){BS(this,"config"),BS(this,"log",r=>{r.forEach(i=>{rh[i.level??ji.info]>=rh[this.config.logLevel??ji.info]&&this.prettyPrint(i)})}),this.config={...n}}isStandardLogEvent(n){return typeof n=="object"&&n!==null&&"level"in n&&"message"in n&&"fields"in n}prettyPrint(n){const r=n.fields&&Object.keys(n.fields).length>0;if(!this.config.prettyPrint){if(!this.isStandardLogEvent(n)){console.log(n);return}let f=`${n.level} - ${n.message}`;r&&(f+=" "+JSON.stringify(n.fields)),console.log(f);return}if(!this.isStandardLogEvent(n)){Rv?console.log("%c%s",`color: ${tg[ji.info].browser};`,n):console.log(`\x1B[${tg[ji.info].terminal}m%s\x1B[0m`,n);return}let i="",l=[n.level,n.message];Rv?(i="%c%s - %s",l=[`color: ${tg[n.level].browser};`,...l]):i=`\x1B[${tg[n.level].terminal}m%s\x1B[0m - %s`,r&&(i+=" %o",l.push(n.fields)),console.log.apply(console,[i,...l])}flush(){}}var CR={env:{NODE_ENV:"production"}};let Dv=null;function ER(){return Dv||(Dv=new Mv({transports:[new SR({prettyPrint:CR.env.NODE_ENV==="development",logLevel:ji.info})]})),Dv}ER();const AR="fma.anon.userId",TR="fma-anon-override-id",ng="fma.anon.userId";function OR(){return typeof window>"u"?void 0:new URLSearchParams(window.location.search).get(TR)??void 0}async function RR(t){const{consentedAnalytics:n}=window;if(!n)return null;t&&console.log("Using override ID from query string",{overrideId:t});const r=await n.user(),i=t?r?.anonymousId(t)?.toString():r?.anonymousId()?.toString();return i&&t&&i!==t&&console.log("Segment override ID from query string failed to set, overrideId, id",{overrideId:t,id:i}),i??null}function MR(t){let n=localStorage.getItem(ng);return t?(console.log("Using override ID from query string to set local storage",{overrideId:t}),localStorage.setItem(ng,t)):!n&&typeof window.crypto?.randomUUID=="function"&&(n=window.crypto.randomUUID(),localStorage.setItem(ng,n)),t??n}async function DR(t){try{return await RR(t||void 0)}catch(n){console.error({e:n})}return null}function kR(){const[t,n]=T.useState(null),[r,i]=T.useState(!1),l=OR(),f=T.useCallback(async(h=0)=>{let g=await DR(l);if(!g&&h<5){const y=2**h*1e3;setTimeout(()=>f(h+1),y);return}if(g||(g=MR(l)),g){n(`s_${g}`),localStorage.setItem(ng,g);const y=typeof window<"u"&&window.location.protocol==="https:";document.cookie=`${AR}=${encodeURIComponent(g)}; Path=/; SameSite=Lax; Max-Age=31536000${y?"; Secure":""}`}i(!0)},[l]);return T.useEffect(()=>{f(0)},[f]),{clickId:t,loaded:r}}const ih=bc(["economy","premium","business","first"]),qS=bc(["1adult","2adults","3adults","4adults","5adults","6adults","7adults","8adults","9adults"]),NR=mt({providers:N().optional(),airlines:N().optional(),stops:nt().optional()}),IR=mt({enc_lid:N().max(50).regex(/[a-z|A-Z|\d|_]/).optional(),enc_cid:N().optional(),from_url:N().optional(),consent_data_sharing:ft().optional(),consent_analytics:ft().optional(),consent_advertising:ft().optional(),consent_functional:ft().optional()}),LR=mt({worker_domain:N().url().default("https://worker.flymyairport.com"),airport_iata:N(),dep_iata:N(),arr_iata:N(),departDate:N(),returnDate:N().optional().default("undef"),cabin:ih.default("economy"),pax:qS.default("1adult"),filterState:NR.optional(),params:IR.optional()});function zR(t){const n=LR.parse(t),{worker_domain:r,airport_iata:i,dep_iata:l,arr_iata:f,departDate:h,returnDate:g,cabin:y,pax:b,filterState:w}=n,{params:E}=n,A=Object.entries(w??{}).filter(([,R])=>R!=null&&R!=="").map(([R,q])=>`${R}=${q}`).join(";"),I={...E??{},fs:A},j=Object.entries(I).filter(([,R])=>R!=null&&R!=="").map(([R,q])=>`${R}=${q}`).join("&"),D=`/fma/${i}/${l}-${f}/${h}/${g}/${y}/${b}/`;return`${r}${D}${j?`?${j}`:""}`}function jR({className:t,regMarkClassName:n}){return M.jsxs("span",{className:t,children:["Fly",M.jsx("strong",{children:"MyAirport"}),M.jsx("sup",{"aria-hidden":"true",className:n||"a1-text-[0.5em] a1-ml-0.5 a1-leading-none",children:"®"}),M.jsx("span",{className:"a1-sr-only",children:" Registered"})]})}function ur(t,n,{checkForDefaultPrevented:r=!0}={}){return function(l){if(t?.(l),r===!1||!l.defaultPrevented)return n?.(l)}}function FS(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function YS(...t){return n=>{let r=!1;const i=t.map(l=>{const f=FS(l,n);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let l=0;l<i.length;l++){const f=i[l];typeof f=="function"?f():FS(t[l],null)}}}}function Jr(...t){return T.useCallback(YS(...t),t)}function PR(t,n){const r=T.createContext(n),i=f=>{const{children:h,...g}=f,y=T.useMemo(()=>g,Object.values(g));return M.jsx(r.Provider,{value:y,children:h})};i.displayName=t+"Provider";function l(f){const h=T.useContext(r);if(h)return h;if(n!==void 0)return n;throw new Error(`\`${f}\` must be used within \`${t}\``)}return[i,l]}function kv(t,n=[]){let r=[];function i(f,h){const g=T.createContext(h),y=r.length;r=[...r,h];const b=E=>{const{scope:A,children:I,...j}=E,D=A?.[t]?.[y]||g,R=T.useMemo(()=>j,Object.values(j));return M.jsx(D.Provider,{value:R,children:I})};b.displayName=f+"Provider";function w(E,A){const I=A?.[t]?.[y]||g,j=T.useContext(I);if(j)return j;if(h!==void 0)return h;throw new Error(`\`${E}\` must be used within \`${f}\``)}return[b,w]}const l=()=>{const f=r.map(h=>T.createContext(h));return function(g){const y=g?.[t]||f;return T.useMemo(()=>({[`__scope${t}`]:{...g,[t]:y}}),[g,y])}};return l.scopeName=t,[i,UR(l,...n)]}function UR(...t){const n=t[0];if(t.length===1)return n;const r=()=>{const i=t.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(f){const h=i.reduce((g,{useScope:y,scopeName:b})=>{const E=y(f)[`__scope${b}`];return{...g,...E}},{});return T.useMemo(()=>({[`__scope${n.scopeName}`]:h}),[h])}};return r.scopeName=n.scopeName,r}var Os=globalThis?.document?T.useLayoutEffect:()=>{},HR=vw[" useId ".trim().toString()]||(()=>{}),BR=0;function ag(t){const[n,r]=T.useState(HR());return Os(()=>{r(i=>i??String(BR++))},[t]),t||(n?`radix-${n}`:"")}var qR=vw[" useInsertionEffect ".trim().toString()]||Os;function GS({prop:t,defaultProp:n,onChange:r=()=>{},caller:i}){const[l,f,h]=FR({defaultProp:n,onChange:r}),g=t!==void 0,y=g?t:l;{const w=T.useRef(t!==void 0);T.useEffect(()=>{const E=w.current;E!==g&&console.warn(`${i} is changing from ${E?"controlled":"uncontrolled"} to ${g?"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.`),w.current=g},[g,i])}const b=T.useCallback(w=>{if(g){const E=YR(w)?w(t):w;E!==t&&h.current?.(E)}else f(w)},[g,t,f,h]);return[y,b]}function FR({defaultProp:t,onChange:n}){const[r,i]=T.useState(t),l=T.useRef(r),f=T.useRef(n);return qR(()=>{f.current=n},[n]),T.useEffect(()=>{l.current!==r&&(f.current?.(r),l.current=r)},[r,l]),[r,i,f]}function YR(t){return typeof t=="function"}var Nv=Ow();const GR=sc(Nv);function Iv(t){const n=VR(t),r=T.forwardRef((i,l)=>{const{children:f,...h}=i,g=T.Children.toArray(f),y=g.find(ZR);if(y){const b=y.props.children,w=g.map(E=>E===y?T.Children.count(b)>1?T.Children.only(null):T.isValidElement(b)?b.props.children:null:E);return M.jsx(n,{...h,ref:l,children:T.isValidElement(b)?T.cloneElement(b,void 0,w):null})}return M.jsx(n,{...h,ref:l,children:f})});return r.displayName=`${t}.Slot`,r}function VR(t){const n=T.forwardRef((r,i)=>{const{children:l,...f}=r;if(T.isValidElement(l)){const h=WR(l),g=QR(f,l.props);return l.type!==T.Fragment&&(g.ref=i?YS(i,h):h),T.cloneElement(l,g)}return T.Children.count(l)>1?T.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var $R=Symbol("radix.slottable");function ZR(t){return T.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===$R}function QR(t,n){const r={...n};for(const i in n){const l=t[i],f=n[i];/^on[A-Z]/.test(i)?l&&f?r[i]=(...g)=>{const y=f(...g);return l(...g),y}:l&&(r[i]=l):i==="style"?r[i]={...l,...f}:i==="className"&&(r[i]=[l,f].filter(Boolean).join(" "))}return{...t,...r}}function WR(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var XR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ya=XR.reduce((t,n)=>{const r=Iv(`Primitive.${n}`),i=T.forwardRef((l,f)=>{const{asChild:h,...g}=l,y=h?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(y,{...g,ref:f})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{});function KR(t,n){t&&Nv.flushSync(()=>t.dispatchEvent(n))}function Ac(t){const n=T.useRef(t);return T.useEffect(()=>{n.current=t}),T.useMemo(()=>(...r)=>n.current?.(...r),[])}function JR(t,n=globalThis?.document){const r=Ac(t);T.useEffect(()=>{const i=l=>{l.key==="Escape"&&r(l)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var eM="DismissableLayer",Lv="dismissableLayer.update",tM="dismissableLayer.pointerDownOutside",nM="dismissableLayer.focusOutside",VS,$S=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zv=T.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:h,onDismiss:g,...y}=t,b=T.useContext($S),[w,E]=T.useState(null),A=w?.ownerDocument??globalThis?.document,[,I]=T.useState({}),j=Jr(n,ce=>E(ce)),D=Array.from(b.layers),[R]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),q=D.indexOf(R),Y=w?D.indexOf(w):-1,re=b.layersWithOutsidePointerEventsDisabled.size>0,G=Y>=q,te=iM(ce=>{const X=ce.target,ve=[...b.branches].some(Ee=>Ee.contains(X));!G||ve||(l?.(ce),h?.(ce),ce.defaultPrevented||g?.())},A),ye=oM(ce=>{const X=ce.target;[...b.branches].some(Ee=>Ee.contains(X))||(f?.(ce),h?.(ce),ce.defaultPrevented||g?.())},A);return JR(ce=>{Y===b.layers.size-1&&(i?.(ce),!ce.defaultPrevented&&g&&(ce.preventDefault(),g()))},A),T.useEffect(()=>{if(w)return r&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(VS=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),ZS(),()=>{r&&b.layersWithOutsidePointerEventsDisabled.size===1&&(A.body.style.pointerEvents=VS)}},[w,A,r,b]),T.useEffect(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),ZS())},[w,b]),T.useEffect(()=>{const ce=()=>I({});return document.addEventListener(Lv,ce),()=>document.removeEventListener(Lv,ce)},[]),M.jsx(Ya.div,{...y,ref:j,style:{pointerEvents:re?G?"auto":"none":void 0,...t.style},onFocusCapture:ur(t.onFocusCapture,ye.onFocusCapture),onBlurCapture:ur(t.onBlurCapture,ye.onBlurCapture),onPointerDownCapture:ur(t.onPointerDownCapture,te.onPointerDownCapture)})});zv.displayName=eM;var aM="DismissableLayerBranch",rM=T.forwardRef((t,n)=>{const r=T.useContext($S),i=T.useRef(null),l=Jr(n,i);return T.useEffect(()=>{const f=i.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),M.jsx(Ya.div,{...t,ref:l})});rM.displayName=aM;function iM(t,n=globalThis?.document){const r=Ac(t),i=T.useRef(!1),l=T.useRef(()=>{});return T.useEffect(()=>{const f=g=>{if(g.target&&!i.current){let y=function(){QS(tM,r,b,{discrete:!0})};const b={originalEvent:g};g.pointerType==="touch"?(n.removeEventListener("click",l.current),l.current=y,n.addEventListener("click",l.current,{once:!0})):y()}else n.removeEventListener("click",l.current);i.current=!1},h=window.setTimeout(()=>{n.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),n.removeEventListener("pointerdown",f),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function oM(t,n=globalThis?.document){const r=Ac(t),i=T.useRef(!1);return T.useEffect(()=>{const l=f=>{f.target&&!i.current&&QS(nM,r,{originalEvent:f},{discrete:!1})};return n.addEventListener("focusin",l),()=>n.removeEventListener("focusin",l)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function ZS(){const t=new CustomEvent(Lv);document.dispatchEvent(t)}function QS(t,n,r,{discrete:i}){const l=r.originalEvent.target,f=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});n&&l.addEventListener(t,n,{once:!0}),i?KR(l,f):l.dispatchEvent(f)}var jv="focusScope.autoFocusOnMount",Pv="focusScope.autoFocusOnUnmount",WS={bubbles:!1,cancelable:!0},sM="FocusScope",Uv=T.forwardRef((t,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:f,...h}=t,[g,y]=T.useState(null),b=Ac(l),w=Ac(f),E=T.useRef(null),A=Jr(n,D=>y(D)),I=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(i){let D=function(re){if(I.paused||!g)return;const G=re.target;g.contains(G)?E.current=G:Rs(E.current,{select:!0})},R=function(re){if(I.paused||!g)return;const G=re.relatedTarget;G!==null&&(g.contains(G)||Rs(E.current,{select:!0}))},q=function(re){if(document.activeElement===document.body)for(const te of re)te.removedNodes.length>0&&Rs(g)};document.addEventListener("focusin",D),document.addEventListener("focusout",R);const Y=new MutationObserver(q);return g&&Y.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",R),Y.disconnect()}}},[i,g,I.paused]),T.useEffect(()=>{if(g){JS.add(I);const D=document.activeElement;if(!g.contains(D)){const q=new CustomEvent(jv,WS);g.addEventListener(jv,b),g.dispatchEvent(q),q.defaultPrevented||(lM(hM(XS(g)),{select:!0}),document.activeElement===D&&Rs(g))}return()=>{g.removeEventListener(jv,b),setTimeout(()=>{const q=new CustomEvent(Pv,WS);g.addEventListener(Pv,w),g.dispatchEvent(q),q.defaultPrevented||Rs(D??document.body,{select:!0}),g.removeEventListener(Pv,w),JS.remove(I)},0)}}},[g,b,w,I]);const j=T.useCallback(D=>{if(!r&&!i||I.paused)return;const R=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,q=document.activeElement;if(R&&q){const Y=D.currentTarget,[re,G]=uM(Y);re&&G?!D.shiftKey&&q===G?(D.preventDefault(),r&&Rs(re,{select:!0})):D.shiftKey&&q===re&&(D.preventDefault(),r&&Rs(G,{select:!0})):q===Y&&D.preventDefault()}},[r,i,I.paused]);return M.jsx(Ya.div,{tabIndex:-1,...h,ref:A,onKeyDown:j})});Uv.displayName=sM;function lM(t,{select:n=!1}={}){const r=document.activeElement;for(const i of t)if(Rs(i,{select:n}),document.activeElement!==r)return}function uM(t){const n=XS(t),r=KS(n,t),i=KS(n.reverse(),t);return[r,i]}function XS(t){const n=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function KS(t,n){for(const r of t)if(!cM(r,{upTo:n}))return r}function cM(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function fM(t){return t instanceof HTMLInputElement&&"select"in t}function Rs(t,{select:n=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&fM(t)&&n&&t.select()}}var JS=dM();function dM(){let t=[];return{add(n){const r=t[0];n!==r&&r?.pause(),t=eC(t,n),t.unshift(n)},remove(n){t=eC(t,n),t[0]?.resume()}}}function eC(t,n){const r=[...t],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function hM(t){return t.filter(n=>n.tagName!=="A")}var pM="Portal",Hv=T.forwardRef((t,n)=>{const{container:r,...i}=t,[l,f]=T.useState(!1);Os(()=>f(!0),[]);const h=r||l&&globalThis?.document?.body;return h?GR.createPortal(M.jsx(Ya.div,{...i,ref:n}),h):null});Hv.displayName=pM;function mM(t,n){return T.useReducer((r,i)=>n[r][i]??r,t)}var Tc=t=>{const{present:n,children:r}=t,i=gM(n),l=typeof r=="function"?r({present:i.isPresent}):T.Children.only(r),f=Jr(i.ref,yM(l));return typeof r=="function"||i.isPresent?T.cloneElement(l,{ref:f}):null};Tc.displayName="Presence";function gM(t){const[n,r]=T.useState(),i=T.useRef(null),l=T.useRef(t),f=T.useRef("none"),h=t?"mounted":"unmounted",[g,y]=mM(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const b=rg(i.current);f.current=g==="mounted"?b:"none"},[g]),Os(()=>{const b=i.current,w=l.current;if(w!==t){const A=f.current,I=rg(b);t?y("MOUNT"):I==="none"||b?.display==="none"?y("UNMOUNT"):y(w&&A!==I?"ANIMATION_OUT":"UNMOUNT"),l.current=t}},[t,y]),Os(()=>{if(n){let b;const w=n.ownerDocument.defaultView??window,E=I=>{const D=rg(i.current).includes(CSS.escape(I.animationName));if(I.target===n&&D&&(y("ANIMATION_END"),!l.current)){const R=n.style.animationFillMode;n.style.animationFillMode="forwards",b=w.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=R)})}},A=I=>{I.target===n&&(f.current=rg(i.current))};return n.addEventListener("animationstart",A),n.addEventListener("animationcancel",E),n.addEventListener("animationend",E),()=>{w.clearTimeout(b),n.removeEventListener("animationstart",A),n.removeEventListener("animationcancel",E),n.removeEventListener("animationend",E)}}else y("ANIMATION_END")},[n,y]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:T.useCallback(b=>{i.current=b?getComputedStyle(b):null,r(b)},[])}}function rg(t){return t?.animationName||"none"}function yM(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Bv=0;function tC(){T.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??nC()),document.body.insertAdjacentElement("beforeend",t[1]??nC()),Bv++,()=>{Bv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Bv--}},[])}function nC(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Ga=function(){return Ga=Object.assign||function(n){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(n[f]=r[f])}return n},Ga.apply(this,arguments)};function aC(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(t);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(t,i[l])&&(r[i[l]]=t[i[l]]);return r}function vM(t,n,r){if(r||arguments.length===2)for(var i=0,l=n.length,f;i<l;i++)(f||!(i in n))&&(f||(f=Array.prototype.slice.call(n,0,i)),f[i]=n[i]);return t.concat(f||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var ig="right-scroll-bar-position",og="width-before-scroll-bar",bM="with-scroll-bars-hidden",xM="--removed-body-scroll-bar-size";function qv(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function wM(t,n){var r=T.useState(function(){return{value:t,callback:n,facade:{get current(){return r.value},set current(i){var l=r.value;l!==i&&(r.value=i,r.callback(i,l))}}}})[0];return r.callback=n,r.facade}var _M=typeof window<"u"?T.useLayoutEffect:T.useEffect,rC=new WeakMap;function SM(t,n){var r=wM(null,function(i){return t.forEach(function(l){return qv(l,i)})});return _M(function(){var i=rC.get(r);if(i){var l=new Set(i),f=new Set(t),h=r.current;l.forEach(function(g){f.has(g)||qv(g,null)}),f.forEach(function(g){l.has(g)||qv(g,h)})}rC.set(r,t)},[t]),r}function CM(t){return t}function EM(t,n){n===void 0&&(n=CM);var r=[],i=!1,l={read:function(){if(i)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]:t},useMedium:function(f){var h=n(f,i);return r.push(h),function(){r=r.filter(function(g){return g!==h})}},assignSyncMedium:function(f){for(i=!0;r.length;){var h=r;r=[],h.forEach(f)}r={push:function(g){return f(g)},filter:function(){return r}}},assignMedium:function(f){i=!0;var h=[];if(r.length){var g=r;r=[],g.forEach(f),h=r}var y=function(){var w=h;h=[],w.forEach(f)},b=function(){return Promise.resolve().then(y)};b(),r={push:function(w){h.push(w),b()},filter:function(w){return h=h.filter(w),r}}}};return l}function AM(t){t===void 0&&(t={});var n=EM(null);return n.options=Ga({async:!0,ssr:!1},t),n}var iC=function(t){var n=t.sideCar,r=aC(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return T.createElement(i,Ga({},r))};iC.isSideCarExport=!0;function TM(t,n){return t.useMedium(n),iC}var oC=AM(),Fv=function(){},sg=T.forwardRef(function(t,n){var r=T.useRef(null),i=T.useState({onScrollCapture:Fv,onWheelCapture:Fv,onTouchMoveCapture:Fv}),l=i[0],f=i[1],h=t.forwardProps,g=t.children,y=t.className,b=t.removeScrollBar,w=t.enabled,E=t.shards,A=t.sideCar,I=t.noRelative,j=t.noIsolation,D=t.inert,R=t.allowPinchZoom,q=t.as,Y=q===void 0?"div":q,re=t.gapMode,G=aC(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),te=A,ye=SM([r,n]),ce=Ga(Ga({},G),l);return T.createElement(T.Fragment,null,w&&T.createElement(te,{sideCar:oC,removeScrollBar:b,shards:E,noRelative:I,noIsolation:j,inert:D,setCallbacks:f,allowPinchZoom:!!R,lockRef:r,gapMode:re}),h?T.cloneElement(T.Children.only(g),Ga(Ga({},ce),{ref:ye})):T.createElement(Y,Ga({},ce,{className:y,ref:ye}),g))});sg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},sg.classNames={fullWidth:og,zeroRight:ig};var OM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RM(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=OM();return n&&t.setAttribute("nonce",n),t}function MM(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function DM(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var kM=function(){var t=0,n=null;return{add:function(r){t==0&&(n=RM())&&(MM(n,r),DM(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},NM=function(){var t=kM();return function(n,r){T.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])}},sC=function(){var t=NM(),n=function(r){var i=r.styles,l=r.dynamic;return t(i,l),null};return n},IM={left:0,top:0,right:0,gap:0},Yv=function(t){return parseInt(t||"",10)||0},LM=function(t){var n=window.getComputedStyle(document.body),r=n[t==="padding"?"paddingLeft":"marginLeft"],i=n[t==="padding"?"paddingTop":"marginTop"],l=n[t==="padding"?"paddingRight":"marginRight"];return[Yv(r),Yv(i),Yv(l)]},zM=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return IM;var n=LM(t),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},jM=sC(),Oc="data-scroll-locked",PM=function(t,n,r,i){var l=t.left,f=t.top,h=t.right,g=t.gap;return r===void 0&&(r="margin"),`
|
|
645
|
+
.`.concat(bM,` {
|
|
646
646
|
overflow: hidden `).concat(i,`;
|
|
647
|
-
padding-right: `).concat(
|
|
647
|
+
padding-right: `).concat(g,"px ").concat(i,`;
|
|
648
648
|
}
|
|
649
|
-
body[`).concat(
|
|
649
|
+
body[`).concat(Oc,`] {
|
|
650
650
|
overflow: hidden `).concat(i,`;
|
|
651
651
|
overscroll-behavior: contain;
|
|
652
|
-
`).concat([
|
|
652
|
+
`).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
653
653
|
padding-left: `.concat(l,`px;
|
|
654
654
|
padding-top: `).concat(f,`px;
|
|
655
655
|
padding-right: `).concat(h,`px;
|
|
656
656
|
margin-left:0;
|
|
657
657
|
margin-top:0;
|
|
658
|
-
margin-right: `).concat(
|
|
659
|
-
`),r==="padding"&&"padding-right: ".concat(
|
|
658
|
+
margin-right: `).concat(g,"px ").concat(i,`;
|
|
659
|
+
`),r==="padding"&&"padding-right: ".concat(g,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
-
.`).concat(
|
|
663
|
-
right: `).concat(
|
|
662
|
+
.`).concat(ig,` {
|
|
663
|
+
right: `).concat(g,"px ").concat(i,`;
|
|
664
664
|
}
|
|
665
665
|
|
|
666
|
-
.`).concat(
|
|
667
|
-
margin-right: `).concat(
|
|
666
|
+
.`).concat(og,` {
|
|
667
|
+
margin-right: `).concat(g,"px ").concat(i,`;
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
.`).concat(
|
|
670
|
+
.`).concat(ig," .").concat(ig,` {
|
|
671
671
|
right: 0 `).concat(i,`;
|
|
672
672
|
}
|
|
673
673
|
|
|
674
|
-
.`).concat(
|
|
674
|
+
.`).concat(og," .").concat(og,` {
|
|
675
675
|
margin-right: 0 `).concat(i,`;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
|
-
body[`).concat(
|
|
679
|
-
`).concat(
|
|
678
|
+
body[`).concat(Oc,`] {
|
|
679
|
+
`).concat(xM,": ").concat(g,`px;
|
|
680
680
|
}
|
|
681
|
-
`)},
|
|
682
|
-
.block-interactivity-`.concat(
|
|
683
|
-
.allow-interactivity-`).concat(
|
|
684
|
-
`)},
|
|
681
|
+
`)},lC=function(){var t=parseInt(document.body.getAttribute(Oc)||"0",10);return isFinite(t)?t:0},UM=function(){T.useEffect(function(){return document.body.setAttribute(Oc,(lC()+1).toString()),function(){var t=lC()-1;t<=0?document.body.removeAttribute(Oc):document.body.setAttribute(Oc,t.toString())}},[])},HM=function(t){var n=t.noRelative,r=t.noImportant,i=t.gapMode,l=i===void 0?"margin":i;UM();var f=T.useMemo(function(){return zM(l)},[l]);return T.createElement(jM,{styles:PM(f,!n,l,r?"":"!important")})},Gv=!1;if(typeof window<"u")try{var lg=Object.defineProperty({},"passive",{get:function(){return Gv=!0,!0}});window.addEventListener("test",lg,lg),window.removeEventListener("test",lg,lg)}catch{Gv=!1}var Rc=Gv?{passive:!1}:!1,BM=function(t){return t.tagName==="TEXTAREA"},uC=function(t,n){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!BM(t)&&r[n]==="visible")},qM=function(t){return uC(t,"overflowY")},FM=function(t){return uC(t,"overflowX")},cC=function(t,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var l=fC(t,i);if(l){var f=dC(t,i),h=f[1],g=f[2];if(h>g)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},YM=function(t){var n=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[n,r,i]},GM=function(t){var n=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[n,r,i]},fC=function(t,n){return t==="v"?qM(n):FM(n)},dC=function(t,n){return t==="v"?YM(n):GM(n)},VM=function(t,n){return t==="h"&&n==="rtl"?-1:1},$M=function(t,n,r,i,l){var f=VM(t,window.getComputedStyle(n).direction),h=f*i,g=r.target,y=n.contains(g),b=!1,w=h>0,E=0,A=0;do{if(!g)break;var I=dC(t,g),j=I[0],D=I[1],R=I[2],q=D-R-f*j;(j||q)&&fC(t,g)&&(E+=q,A+=j);var Y=g.parentNode;g=Y&&Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Y.host:Y}while(!y&&g!==document.body||y&&(n.contains(g)||n===g));return(w&&Math.abs(E)<1||!w&&Math.abs(A)<1)&&(b=!0),b},ug=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},hC=function(t){return[t.deltaX,t.deltaY]},pC=function(t){return t&&"current"in t?t.current:t},ZM=function(t,n){return t[0]===n[0]&&t[1]===n[1]},QM=function(t){return`
|
|
682
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
683
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
684
|
+
`)},WM=0,Mc=[];function XM(t){var n=T.useRef([]),r=T.useRef([0,0]),i=T.useRef(),l=T.useState(WM++)[0],f=T.useState(sC)[0],h=T.useRef(t);T.useEffect(function(){h.current=t},[t]),T.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(l));var D=vM([t.lockRef.current],(t.shards||[]).map(pC),!0).filter(Boolean);return D.forEach(function(R){return R.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),D.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(l))})}}},[t.inert,t.lockRef.current,t.shards]);var g=T.useCallback(function(D,R){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!h.current.allowPinchZoom;var q=ug(D),Y=r.current,re="deltaX"in D?D.deltaX:Y[0]-q[0],G="deltaY"in D?D.deltaY:Y[1]-q[1],te,ye=D.target,ce=Math.abs(re)>Math.abs(G)?"h":"v";if("touches"in D&&ce==="h"&&ye.type==="range")return!1;var X=cC(ce,ye);if(!X)return!0;if(X?te=ce:(te=ce==="v"?"h":"v",X=cC(ce,ye)),!X)return!1;if(!i.current&&"changedTouches"in D&&(re||G)&&(i.current=te),!te)return!0;var ve=i.current||te;return $M(ve,R,D,ve==="h"?re:G)},[]),y=T.useCallback(function(D){var R=D;if(!(!Mc.length||Mc[Mc.length-1]!==f)){var q="deltaY"in R?hC(R):ug(R),Y=n.current.filter(function(te){return te.name===R.type&&(te.target===R.target||R.target===te.shadowParent)&&ZM(te.delta,q)})[0];if(Y&&Y.should){R.cancelable&&R.preventDefault();return}if(!Y){var re=(h.current.shards||[]).map(pC).filter(Boolean).filter(function(te){return te.contains(R.target)}),G=re.length>0?g(R,re[0]):!h.current.noIsolation;G&&R.cancelable&&R.preventDefault()}}},[]),b=T.useCallback(function(D,R,q,Y){var re={name:D,delta:R,target:q,should:Y,shadowParent:KM(q)};n.current.push(re),setTimeout(function(){n.current=n.current.filter(function(G){return G!==re})},1)},[]),w=T.useCallback(function(D){r.current=ug(D),i.current=void 0},[]),E=T.useCallback(function(D){b(D.type,hC(D),D.target,g(D,t.lockRef.current))},[]),A=T.useCallback(function(D){b(D.type,ug(D),D.target,g(D,t.lockRef.current))},[]);T.useEffect(function(){return Mc.push(f),t.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:A}),document.addEventListener("wheel",y,Rc),document.addEventListener("touchmove",y,Rc),document.addEventListener("touchstart",w,Rc),function(){Mc=Mc.filter(function(D){return D!==f}),document.removeEventListener("wheel",y,Rc),document.removeEventListener("touchmove",y,Rc),document.removeEventListener("touchstart",w,Rc)}},[]);var I=t.removeScrollBar,j=t.inert;return T.createElement(T.Fragment,null,j?T.createElement(f,{styles:QM(l)}):null,I?T.createElement(HM,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function KM(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const JM=TM(oC,XM);var Vv=T.forwardRef(function(t,n){return T.createElement(sg,Ga({},t,{ref:n,sideCar:JM}))});Vv.classNames=sg.classNames;var eD=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},Dc=new WeakMap,cg=new WeakMap,fg={},$v=0,mC=function(t){return t&&(t.host||mC(t.parentNode))},tD=function(t,n){return n.map(function(r){if(t.contains(r))return r;var i=mC(r);return i&&t.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},nD=function(t,n,r,i){var l=tD(n,Array.isArray(t)?t:[t]);fg[r]||(fg[r]=new WeakMap);var f=fg[r],h=[],g=new Set,y=new Set(l),b=function(E){!E||g.has(E)||(g.add(E),b(E.parentNode))};l.forEach(b);var w=function(E){!E||y.has(E)||Array.prototype.forEach.call(E.children,function(A){if(g.has(A))w(A);else try{var I=A.getAttribute(i),j=I!==null&&I!=="false",D=(Dc.get(A)||0)+1,R=(f.get(A)||0)+1;Dc.set(A,D),f.set(A,R),h.push(A),D===1&&j&&cg.set(A,!0),R===1&&A.setAttribute(r,"true"),j||A.setAttribute(i,"true")}catch(q){console.error("aria-hidden: cannot operate on ",A,q)}})};return w(n),g.clear(),$v++,function(){h.forEach(function(E){var A=Dc.get(E)-1,I=f.get(E)-1;Dc.set(E,A),f.set(E,I),A||(cg.has(E)||E.removeAttribute(i),cg.delete(E)),I||E.removeAttribute(r)}),$v--,$v||(Dc=new WeakMap,Dc=new WeakMap,cg=new WeakMap,fg={})}},gC=function(t,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),l=eD(t);return l?(i.push.apply(i,Array.from(l.querySelectorAll("[aria-live], script"))),nD(i,l,r,"aria-hidden")):function(){return null}},dg="Dialog",[yC]=kv(dg),[aD,ei]=yC(dg),vC=t=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:l,onOpenChange:f,modal:h=!0}=t,g=T.useRef(null),y=T.useRef(null),[b,w]=GS({prop:i,defaultProp:l??!1,onChange:f,caller:dg});return M.jsx(aD,{scope:n,triggerRef:g,contentRef:y,contentId:ag(),titleId:ag(),descriptionId:ag(),open:b,onOpenChange:w,onOpenToggle:T.useCallback(()=>w(E=>!E),[w]),modal:h,children:r})};vC.displayName=dg;var bC="DialogTrigger",xC=T.forwardRef((t,n)=>{const{__scopeDialog:r,...i}=t,l=ei(bC,r),f=Jr(n,l.triggerRef);return M.jsx(Ya.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":Wv(l.open),...i,ref:f,onClick:ur(t.onClick,l.onOpenToggle)})});xC.displayName=bC;var Zv="DialogPortal",[rD,wC]=yC(Zv,{forceMount:void 0}),_C=t=>{const{__scopeDialog:n,forceMount:r,children:i,container:l}=t,f=ei(Zv,n);return M.jsx(rD,{scope:n,forceMount:r,children:T.Children.map(i,h=>M.jsx(Tc,{present:r||f.open,children:M.jsx(Hv,{asChild:!0,container:l,children:h})}))})};_C.displayName=Zv;var hg="DialogOverlay",SC=T.forwardRef((t,n)=>{const r=wC(hg,t.__scopeDialog),{forceMount:i=r.forceMount,...l}=t,f=ei(hg,t.__scopeDialog);return f.modal?M.jsx(Tc,{present:i||f.open,children:M.jsx(oD,{...l,ref:n})}):null});SC.displayName=hg;var iD=Iv("DialogOverlay.RemoveScroll"),oD=T.forwardRef((t,n)=>{const{__scopeDialog:r,...i}=t,l=ei(hg,r);return M.jsx(Vv,{as:iD,allowPinchZoom:!0,shards:[l.contentRef],children:M.jsx(Ya.div,{"data-state":Wv(l.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),Bl="DialogContent",CC=T.forwardRef((t,n)=>{const r=wC(Bl,t.__scopeDialog),{forceMount:i=r.forceMount,...l}=t,f=ei(Bl,t.__scopeDialog);return M.jsx(Tc,{present:i||f.open,children:f.modal?M.jsx(sD,{...l,ref:n}):M.jsx(lD,{...l,ref:n})})});CC.displayName=Bl;var sD=T.forwardRef((t,n)=>{const r=ei(Bl,t.__scopeDialog),i=T.useRef(null),l=Jr(n,r.contentRef,i);return T.useEffect(()=>{const f=i.current;if(f)return gC(f)},[]),M.jsx(EC,{...t,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ur(t.onCloseAutoFocus,f=>{f.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ur(t.onPointerDownOutside,f=>{const h=f.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0;(h.button===2||g)&&f.preventDefault()}),onFocusOutside:ur(t.onFocusOutside,f=>f.preventDefault())})}),lD=T.forwardRef((t,n)=>{const r=ei(Bl,t.__scopeDialog),i=T.useRef(!1),l=T.useRef(!1);return M.jsx(EC,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{t.onCloseAutoFocus?.(f),f.defaultPrevented||(i.current||r.triggerRef.current?.focus(),f.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:f=>{t.onInteractOutside?.(f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const h=f.target;r.triggerRef.current?.contains(h)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&l.current&&f.preventDefault()}})}),EC=T.forwardRef((t,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:f,...h}=t,g=ei(Bl,r),y=T.useRef(null),b=Jr(n,y);return tC(),M.jsxs(M.Fragment,{children:[M.jsx(Uv,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:f,children:M.jsx(zv,{role:"dialog",id:g.contentId,"aria-describedby":g.descriptionId,"aria-labelledby":g.titleId,"data-state":Wv(g.open),...h,ref:b,onDismiss:()=>g.onOpenChange(!1)})}),M.jsxs(M.Fragment,{children:[M.jsx(uD,{titleId:g.titleId}),M.jsx(fD,{contentRef:y,descriptionId:g.descriptionId})]})]})}),Qv="DialogTitle",AC=T.forwardRef((t,n)=>{const{__scopeDialog:r,...i}=t,l=ei(Qv,r);return M.jsx(Ya.h2,{id:l.titleId,...i,ref:n})});AC.displayName=Qv;var TC="DialogDescription",OC=T.forwardRef((t,n)=>{const{__scopeDialog:r,...i}=t,l=ei(TC,r);return M.jsx(Ya.p,{id:l.descriptionId,...i,ref:n})});OC.displayName=TC;var RC="DialogClose",MC=T.forwardRef((t,n)=>{const{__scopeDialog:r,...i}=t,l=ei(RC,r);return M.jsx(Ya.button,{type:"button",...i,ref:n,onClick:ur(t.onClick,()=>l.onOpenChange(!1))})});MC.displayName=RC;function Wv(t){return t?"open":"closed"}var DC="DialogTitleWarning",[u9,kC]=PR(DC,{contentName:Bl,titleName:Qv,docsSlug:"dialog"}),uD=({titleId:t})=>{const n=kC(DC),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
685
685
|
|
|
686
|
-
If you want to hide the \`${
|
|
686
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
687
687
|
|
|
688
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${
|
|
688
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return T.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},cD="DialogDescriptionWarning",fD=({contentRef:t,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${kC(cD).contentName}}.`;return T.useEffect(()=>{const l=t.current?.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(i))},[i,t,n]),null},dD=vC,hD=xC,pD=_C,NC=SC,IC=CC,LC=AC,zC=OC,jC=MC;/**
|
|
689
689
|
* @license lucide-react v0.510.0 - ISC
|
|
690
690
|
*
|
|
691
691
|
* This source code is licensed under the ISC license.
|
|
692
692
|
* See the LICENSE file in the root directory of this source tree.
|
|
693
|
-
*/const
|
|
693
|
+
*/const mD=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gD=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase()),PC=t=>{const n=gD(t);return n.charAt(0).toUpperCase()+n.slice(1)},UC=(...t)=>t.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim(),yD=t=>{for(const n in t)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
694
694
|
* @license lucide-react v0.510.0 - ISC
|
|
695
695
|
*
|
|
696
696
|
* This source code is licensed under the ISC license.
|
|
697
697
|
* See the LICENSE file in the root directory of this source tree.
|
|
698
|
-
*/var
|
|
698
|
+
*/var vD={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"};/**
|
|
699
699
|
* @license lucide-react v0.510.0 - ISC
|
|
700
700
|
*
|
|
701
701
|
* This source code is licensed under the ISC license.
|
|
702
702
|
* See the LICENSE file in the root directory of this source tree.
|
|
703
|
-
*/const
|
|
703
|
+
*/const bD=T.forwardRef(({color:t="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:f,iconNode:h,...g},y)=>T.createElement("svg",{ref:y,...vD,width:n,height:n,stroke:t,strokeWidth:i?Number(r)*24/Number(n):r,className:UC("lucide",l),...!f&&!yD(g)&&{"aria-hidden":"true"},...g},[...h.map(([b,w])=>T.createElement(b,w)),...Array.isArray(f)?f:[f]]));/**
|
|
704
704
|
* @license lucide-react v0.510.0 - ISC
|
|
705
705
|
*
|
|
706
706
|
* This source code is licensed under the ISC license.
|
|
707
707
|
* See the LICENSE file in the root directory of this source tree.
|
|
708
|
-
*/const
|
|
708
|
+
*/const xD=(t,n)=>{const r=T.forwardRef(({className:i,...l},f)=>T.createElement(bD,{ref:f,iconNode:n,className:UC(`lucide-${mD(PC(t))}`,`lucide-${t}`,i),...l}));return r.displayName=PC(t),r};/**
|
|
709
709
|
* @license lucide-react v0.510.0 - ISC
|
|
710
710
|
*
|
|
711
711
|
* This source code is licensed under the ISC license.
|
|
712
712
|
* See the LICENSE file in the root directory of this source tree.
|
|
713
|
-
*/const rM=aM("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function SE(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=SE(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function iM(){for(var e,t,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=SE(e))&&(i&&(i+=" "),i+=t);return i}const Mv="-",oM=e=>{const t=lM(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:h=>{const m=h.split(Mv);return m[0]===""&&m.length!==1&&m.shift(),EE(m,t)||sM(h)},getConflictingClassGroupIds:(h,m)=>{const y=r[h]||[];return m&&i[h]?[...y,...i[h]]:y}}},EE=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),l=i?EE(e.slice(1),i):void 0;if(l)return l;if(t.validators.length===0)return;const f=e.join(Mv);return t.validators.find(({validator:h})=>h(f))?.classGroupId},AE=/^\[(.+)\]$/,sM=e=>{if(AE.test(e)){const t=AE.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},lM=e=>{const{theme:t,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const l in r)kv(r[l],i,l,t);return i},kv=(e,t,r,i)=>{e.forEach(l=>{if(typeof l=="string"){const f=l===""?t:CE(t,l);f.classGroupId=r;return}if(typeof l=="function"){if(uM(l)){kv(l(i),t,r,i);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([f,h])=>{kv(h,CE(t,f),r,i)})})},CE=(e,t)=>{let r=e;return t.split(Mv).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},uM=e=>e.isThemeGetter,cM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,i=new Map;const l=(f,h)=>{r.set(f,h),t++,t>e&&(t=0,i=r,r=new Map)};return{get(f){let h=r.get(f);if(h!==void 0)return h;if((h=i.get(f))!==void 0)return l(f,h),h},set(f,h){r.has(f)?r.set(f,h):l(f,h)}}},Nv="!",Iv=":",fM=Iv.length,dM=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=l=>{const f=[];let h=0,m=0,y=0,b;for(let j=0;j<l.length;j++){let M=l[j];if(h===0&&m===0){if(M===Iv){f.push(l.slice(y,j)),y=j+fM;continue}if(M==="/"){b=j;continue}}M==="["?h++:M==="]"?h--:M==="("?m++:M===")"&&m--}const x=f.length===0?l:l.substring(y),S=hM(x),T=S!==x,N=b&&b>y?b-y:void 0;return{modifiers:f,hasImportantModifier:T,baseClassName:S,maybePostfixModifierPosition:N}};if(t){const l=t+Iv,f=i;i=h=>h.startsWith(l)?f(h.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const l=i;i=f=>r({className:f,parseClassName:l})}return i},hM=e=>e.endsWith(Nv)?e.substring(0,e.length-1):e.startsWith(Nv)?e.substring(1):e,pM=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const l=[];let f=[];return i.forEach(h=>{h[0]==="["||t[h]?(l.push(...f.sort(),h),f=[]):f.push(h)}),l.push(...f.sort()),l}},mM=e=>({cache:cM(e.cacheSize),parseClassName:dM(e),sortModifiers:pM(e),...oM(e)}),gM=/\s+/,yM=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:f}=t,h=[],m=e.trim().split(gM);let y="";for(let b=m.length-1;b>=0;b-=1){const x=m[b],{isExternal:S,modifiers:T,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:M}=r(x);if(S){y=x+(y.length>0?" "+y:y);continue}let D=!!M,B=i(D?j.substring(0,M):j);if(!B){if(!D){y=x+(y.length>0?" "+y:y);continue}if(B=i(j),!B){y=x+(y.length>0?" "+y:y);continue}D=!1}const F=f(T).join(":"),re=N?F+Nv:F,Y=re+B;if(h.includes(Y))continue;h.push(Y);const ne=l(B,D);for(let se=0;se<ne.length;++se){const fe=ne[se];h.push(re+fe)}y=x+(y.length>0?" "+y:y)}return y};function vM(){let e=0,t,r,i="";for(;e<arguments.length;)(t=arguments[e++])&&(r=TE(t))&&(i&&(i+=" "),i+=r);return i}const TE=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=TE(e[i]))&&(r&&(r+=" "),r+=t);return r};function OE(e,...t){let r,i,l,f=h;function h(y){const b=t.reduce((x,S)=>S(x),e());return r=mM(b),i=r.cache.get,l=r.cache.set,f=m,m(y)}function m(y){const b=i(y);if(b)return b;const x=yM(y,r);return l(y,x),x}return function(){return f(vM.apply(null,arguments))}}const qn=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},RE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,DE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bM=/^\d+\/\d+$/,xM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wM=/\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$/,_M=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,SM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lc=e=>bM.test(e),vt=e=>!!e&&!Number.isNaN(Number(e)),hs=e=>!!e&&Number.isInteger(Number(e)),Lv=e=>e.endsWith("%")&&vt(e.slice(0,-1)),Ao=e=>xM.test(e),AM=()=>!0,CM=e=>wM.test(e)&&!_M.test(e),ME=()=>!1,TM=e=>SM.test(e),OM=e=>EM.test(e),RM=e=>!Pe(e)&&!je(e),DM=e=>uc(e,zE,ME),Pe=e=>RE.test(e),yl=e=>uc(e,PE,CM),zv=e=>uc(e,LM,vt),kE=e=>uc(e,IE,ME),MM=e=>uc(e,LE,OM),Fm=e=>uc(e,jE,TM),je=e=>DE.test(e),Bd=e=>cc(e,PE),kM=e=>cc(e,zM),NE=e=>cc(e,IE),NM=e=>cc(e,zE),IM=e=>cc(e,LE),Ym=e=>cc(e,jE,!0),uc=(e,t,r)=>{const i=RE.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},cc=(e,t,r=!1)=>{const i=DE.exec(e);return i?i[1]?t(i[1]):r:!1},IE=e=>e==="position"||e==="percentage",LE=e=>e==="image"||e==="url",zE=e=>e==="length"||e==="size"||e==="bg-size",PE=e=>e==="length",LM=e=>e==="number",zM=e=>e==="family-name",jE=e=>e==="shadow",UE=()=>{const e=qn("color"),t=qn("font"),r=qn("text"),i=qn("font-weight"),l=qn("tracking"),f=qn("leading"),h=qn("breakpoint"),m=qn("container"),y=qn("spacing"),b=qn("radius"),x=qn("shadow"),S=qn("inset-shadow"),T=qn("text-shadow"),N=qn("drop-shadow"),j=qn("blur"),M=qn("perspective"),D=qn("aspect"),B=qn("ease"),F=qn("animate"),re=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ne=()=>[...Y(),je,Pe],se=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto","contain","none"],ie=()=>[je,Pe,y],we=()=>[lc,"full","auto",...ie()],Ce=()=>[hs,"none","subgrid",je,Pe],De=()=>["auto",{span:["full",hs,je,Pe]},hs,je,Pe],_e=()=>[hs,"auto",je,Pe],le=()=>["auto","min","max","fr",je,Pe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...ie()],U=()=>[lc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ie()],z=()=>[e,je,Pe],ve=()=>[...Y(),NE,kE,{position:[je,Pe]}],Oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",NM,DM,{size:[je,Pe]}],$=()=>[Lv,Bd,yl],ee=()=>["","none","full",b,je,Pe],K=()=>["",vt,Bd,yl],me=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[vt,Lv,NE,kE],Be=()=>["","none",j,je,Pe],qe=()=>["none",vt,je,Pe],ft=()=>["none",vt,je,Pe],at=()=>[vt,je,Pe],Dt=()=>[lc,"full",...ie()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ao],breakpoint:[Ao],color:[AM],container:[Ao],"drop-shadow":[Ao],ease:["in","out","in-out"],font:[RM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ao],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ao],shadow:[Ao],spacing:["px",vt],text:[Ao],"text-shadow":[Ao],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lc,Pe,je,D]}],container:["container"],columns:[{columns:[vt,Pe,je,m]}],"break-after":[{"break-after":re()}],"break-before":[{"break-before":re()}],"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:ne()}],overflow:[{overflow:se()}],"overflow-x":[{"overflow-x":se()}],"overflow-y":[{"overflow-y":se()}],overscroll:[{overscroll:fe()}],"overscroll-x":[{"overscroll-x":fe()}],"overscroll-y":[{"overscroll-y":fe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:we()}],"inset-x":[{"inset-x":we()}],"inset-y":[{"inset-y":we()}],start:[{start:we()}],end:[{end:we()}],top:[{top:we()}],right:[{right:we()}],bottom:[{bottom:we()}],left:[{left:we()}],visibility:["visible","invisible","collapse"],z:[{z:[hs,"auto",je,Pe]}],basis:[{basis:[lc,"full","auto",m,...ie()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[vt,lc,"auto","initial","none",Pe]}],grow:[{grow:["",vt,je,Pe]}],shrink:[{shrink:["",vt,je,Pe]}],order:[{order:[hs,"first","last","none",je,Pe]}],"grid-cols":[{"grid-cols":Ce()}],"col-start-end":[{col:De()}],"col-start":[{"col-start":_e()}],"col-end":[{"col-end":_e()}],"grid-rows":[{"grid-rows":Ce()}],"row-start-end":[{row:De()}],"row-start":[{"row-start":_e()}],"row-end":[{"row-end":_e()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:ie()}],"gap-x":[{"gap-x":ie()}],"gap-y":[{"gap-y":ie()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:ie()}],px:[{px:ie()}],py:[{py:ie()}],ps:[{ps:ie()}],pe:[{pe:ie()}],pt:[{pt:ie()}],pr:[{pr:ie()}],pb:[{pb:ie()}],pl:[{pl:ie()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":ie()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ie()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[m,"screen",...U()]}],"min-w":[{"min-w":[m,"screen","none",...U()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",r,Bd,yl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,je,zv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lv,Pe]}],"font-family":[{font:[kM,Pe,t]}],"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:[l,je,Pe]}],"line-clamp":[{"line-clamp":[vt,"none",je,zv]}],leading:[{leading:[f,...ie()]}],"list-image":[{"list-image":["none",je,Pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",je,Pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[vt,"from-font","auto",je,yl]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[vt,"auto",je,Pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je,Pe]}],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",je,Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:Oe()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hs,je,Pe],radial:["",je,Pe],conic:[hs,je,Pe]},IM,MM]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[vt,je,Pe]}],"outline-w":[{outline:["",vt,Bd,yl]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",x,Ym,Fm]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",S,Ym,Fm]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[vt,yl]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",T,Ym,Fm]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[vt,je,Pe]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"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":[vt]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[je,Pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Y()}],"mask-image-conic-pos":[{"mask-conic":[vt]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:Oe()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",je,Pe]}],filter:[{filter:["","none",je,Pe]}],blur:[{blur:Be()}],brightness:[{brightness:[vt,je,Pe]}],contrast:[{contrast:[vt,je,Pe]}],"drop-shadow":[{"drop-shadow":["","none",N,Ym,Fm]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",vt,je,Pe]}],"hue-rotate":[{"hue-rotate":[vt,je,Pe]}],invert:[{invert:["",vt,je,Pe]}],saturate:[{saturate:[vt,je,Pe]}],sepia:[{sepia:["",vt,je,Pe]}],"backdrop-filter":[{"backdrop-filter":["","none",je,Pe]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[vt,je,Pe]}],"backdrop-contrast":[{"backdrop-contrast":[vt,je,Pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",vt,je,Pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vt,je,Pe]}],"backdrop-invert":[{"backdrop-invert":["",vt,je,Pe]}],"backdrop-opacity":[{"backdrop-opacity":[vt,je,Pe]}],"backdrop-saturate":[{"backdrop-saturate":[vt,je,Pe]}],"backdrop-sepia":[{"backdrop-sepia":["",vt,je,Pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ie()}],"border-spacing-x":[{"border-spacing-x":ie()}],"border-spacing-y":[{"border-spacing-y":ie()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",je,Pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[vt,"initial",je,Pe]}],ease:[{ease:["linear","initial",B,je,Pe]}],delay:[{delay:[vt,je,Pe]}],animate:[{animate:["none",F,je,Pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,je,Pe]}],"perspective-origin":[{"perspective-origin":ne()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:ft()}],"scale-x":[{"scale-x":ft()}],"scale-y":[{"scale-y":ft()}],"scale-z":[{"scale-z":ft()}],"scale-3d":["scale-3d"],skew:[{skew:at()}],"skew-x":[{"skew-x":at()}],"skew-y":[{"skew-y":at()}],transform:[{transform:[je,Pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ne()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Dt()}],"translate-x":[{"translate-x":Dt()}],"translate-y":[{"translate-y":Dt()}],"translate-z":[{"translate-z":Dt()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",je,Pe]}],"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":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"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",je,Pe]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[vt,Bd,yl,zv]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},PM=(e,{cacheSize:t,prefix:r,experimentalParseClassName:i,extend:l={},override:f={}})=>(qd(e,"cacheSize",t),qd(e,"prefix",r),qd(e,"experimentalParseClassName",i),Gm(e.theme,f.theme),Gm(e.classGroups,f.classGroups),Gm(e.conflictingClassGroups,f.conflictingClassGroups),Gm(e.conflictingClassGroupModifiers,f.conflictingClassGroupModifiers),qd(e,"orderSensitiveModifiers",f.orderSensitiveModifiers),Vm(e.theme,l.theme),Vm(e.classGroups,l.classGroups),Vm(e.conflictingClassGroups,l.conflictingClassGroups),Vm(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),HE(e,l,"orderSensitiveModifiers"),e),qd=(e,t,r)=>{r!==void 0&&(e[t]=r)},Gm=(e,t)=>{if(t)for(const r in t)qd(e,r,t[r])},Vm=(e,t)=>{if(t)for(const r in t)HE(e,t,r)},HE=(e,t,r)=>{const i=t[r];i!==void 0&&(e[r]=e[r]?e[r].concat(i):i)},jM=((e,...t)=>typeof e=="function"?OE(UE,e,...t):OE(()=>PM(UE(),e),...t))({prefix:"a1-"});function Fd(...e){return jM(iM(e))}const UM=Q2,HM=W2,BM=X2,qM=xE,BE=C.forwardRef(({open:e,onOpenChange:t,children:r,title:i,className:l},f)=>{const h=C.useRef(null);return C.useImperativeHandle(f,()=>h.current),C.useEffect(()=>{const m=h.current;if(!m)return;e&&!m.open&&m.showModal(),!e&&m.open&&m.close();const y=()=>document.documentElement.style.overflow="hidden",b=()=>document.documentElement.style.removeProperty("overflow");e?y():b();const x=()=>{b(),t(!1)},S=T=>{T.preventDefault(),t(!1)};return m.addEventListener("close",x),m.addEventListener("cancel",S),()=>{m.removeEventListener("close",x),m.removeEventListener("cancel",S),b()}},[e,t]),R.jsxs("dialog",{ref:h,className:`ao-dialog ${l||""}`,"aria-labelledby":"ao-title",children:[i&&R.jsx("h2",{id:"ao-title",className:"a1-text-lg a1-font-semibold",children:i}),R.jsx("div",{className:"ao-dialog__body",children:r})]})});BE.displayName="TopLayerDialog";const qE=C.forwardRef(({className:e,...t},r)=>R.jsx(gE,{ref:r,className:Fd("a1-fixed a1-inset-0 a1-z-100 a1-bg-black/80",e),...t}));qE.displayName=gE.displayName;const FM=C.forwardRef(({className:e,children:t,container:r,...i},l)=>R.jsxs(BM,{container:r??void 0,children:[R.jsx(qE,{}),R.jsxs(yE,{ref:l,className:Fd("a1-fixed a1-left-[50%] a1-top-[50%] a1-z-100 a1-max-w-lg a1-translate-x-[-50%] a1-translate-y-[-50%] a1-border a1-bg-background a1-p-6 a1-shadow-lg a1-rounded-lg",e),"aria-describedby":i["aria-describedby"]||"dialog-content",...i,children:[R.jsx(Pv,{className:"a1-sr-only",children:i.title}),R.jsx(FE,{className:"a1-sr-only"}),t,R.jsxs(xE,{className:"a1-absolute a1-right-4 a1-top-4 a1-rounded-sm a1-opacity-70 a1-ring-offset-background a1-transition-opacity a1-hover:opacity-100 a1-focus:outline-none a1-focus:ring-2 a1-focus:ring-ring a1-focus:ring-offset-2 a1-disabled:pointer-events-none",children:[R.jsx(rM,{className:"a1-h-4 a1-w-4"}),R.jsx("span",{className:"a1-sr-only",children:"Close"})]})]})]}));FM.displayName=yE.displayName;const Pv=C.forwardRef(({className:e,...t},r)=>R.jsx(vE,{ref:r,className:Fd("a1-text-lg a1-font-semibold a1-leading-none a1-tracking-tight",e),...t}));Pv.displayName=vE.displayName;const FE=C.forwardRef(({className:e,...t},r)=>R.jsx(bE,{ref:r,className:Fd("a1-text-sm a1-text-muted-foreground",e),...t}));FE.displayName=bE.displayName;const YM=["top","right","bottom","left"],ps=Math.min,gr=Math.max,$m=Math.round,Zm=Math.floor,ki=e=>({x:e,y:e}),GM={left:"right",right:"left",bottom:"top",top:"bottom"},VM={start:"end",end:"start"};function jv(e,t,r){return gr(e,ps(t,r))}function Co(e,t){return typeof e=="function"?e(t):e}function To(e){return e.split("-")[0]}function fc(e){return e.split("-")[1]}function Uv(e){return e==="x"?"y":"x"}function Hv(e){return e==="y"?"height":"width"}const $M=new Set(["top","bottom"]);function Ni(e){return $M.has(To(e))?"y":"x"}function Bv(e){return Uv(Ni(e))}function ZM(e,t,r){r===void 0&&(r=!1);const i=fc(e),l=Bv(e),f=Hv(l);let h=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[f]>t.floating[f]&&(h=Qm(h)),[h,Qm(h)]}function QM(e){const t=Qm(e);return[qv(e),t,qv(t)]}function qv(e){return e.replace(/start|end/g,t=>VM[t])}const YE=["left","right"],GE=["right","left"],WM=["top","bottom"],XM=["bottom","top"];function KM(e,t,r){switch(e){case"top":case"bottom":return r?t?GE:YE:t?YE:GE;case"left":case"right":return t?WM:XM;default:return[]}}function JM(e,t,r,i){const l=fc(e);let f=KM(To(e),r==="start",i);return l&&(f=f.map(h=>h+"-"+l),t&&(f=f.concat(f.map(qv)))),f}function Qm(e){return e.replace(/left|right|bottom|top/g,t=>GM[t])}function ek(e){return{top:0,right:0,bottom:0,left:0,...e}}function VE(e){return typeof e!="number"?ek(e):{top:e,right:e,bottom:e,left:e}}function Wm(e){const{x:t,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:t,right:t+i,bottom:r+l,x:t,y:r}}function $E(e,t,r){let{reference:i,floating:l}=e;const f=Ni(t),h=Bv(t),m=Hv(h),y=To(t),b=f==="y",x=i.x+i.width/2-l.width/2,S=i.y+i.height/2-l.height/2,T=i[m]/2-l[m]/2;let N;switch(y){case"top":N={x,y:i.y-l.height};break;case"bottom":N={x,y:i.y+i.height};break;case"right":N={x:i.x+i.width,y:S};break;case"left":N={x:i.x-l.width,y:S};break;default:N={x:i.x,y:i.y}}switch(fc(t)){case"start":N[h]-=T*(r&&b?-1:1);break;case"end":N[h]+=T*(r&&b?-1:1);break}return N}const tk=async(e,t,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:f=[],platform:h}=r,m=f.filter(Boolean),y=await(h.isRTL==null?void 0:h.isRTL(t));let b=await h.getElementRects({reference:e,floating:t,strategy:l}),{x,y:S}=$E(b,i,y),T=i,N={},j=0;for(let M=0;M<m.length;M++){const{name:D,fn:B}=m[M],{x:F,y:re,data:Y,reset:ne}=await B({x,y:S,initialPlacement:i,placement:T,strategy:l,middlewareData:N,rects:b,platform:h,elements:{reference:e,floating:t}});x=F??x,S=re??S,N={...N,[D]:{...N[D],...Y}},ne&&j<=50&&(j++,typeof ne=="object"&&(ne.placement&&(T=ne.placement),ne.rects&&(b=ne.rects===!0?await h.getElementRects({reference:e,floating:t,strategy:l}):ne.rects),{x,y:S}=$E(b,T,y)),M=-1)}return{x,y:S,placement:T,strategy:l,middlewareData:N}};async function Yd(e,t){var r;t===void 0&&(t={});const{x:i,y:l,platform:f,rects:h,elements:m,strategy:y}=e,{boundary:b="clippingAncestors",rootBoundary:x="viewport",elementContext:S="floating",altBoundary:T=!1,padding:N=0}=Co(t,e),j=VE(N),D=m[T?S==="floating"?"reference":"floating":S],B=Wm(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(D)))==null||r?D:D.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:b,rootBoundary:x,strategy:y})),F=S==="floating"?{x:i,y:l,width:h.floating.width,height:h.floating.height}:h.reference,re=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),Y=await(f.isElement==null?void 0:f.isElement(re))?await(f.getScale==null?void 0:f.getScale(re))||{x:1,y:1}:{x:1,y:1},ne=Wm(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:re,strategy:y}):F);return{top:(B.top-ne.top+j.top)/Y.y,bottom:(ne.bottom-B.bottom+j.bottom)/Y.y,left:(B.left-ne.left+j.left)/Y.x,right:(ne.right-B.right+j.right)/Y.x}}const nk=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:i,placement:l,rects:f,platform:h,elements:m,middlewareData:y}=t,{element:b,padding:x=0}=Co(e,t)||{};if(b==null)return{};const S=VE(x),T={x:r,y:i},N=Bv(l),j=Hv(N),M=await h.getDimensions(b),D=N==="y",B=D?"top":"left",F=D?"bottom":"right",re=D?"clientHeight":"clientWidth",Y=f.reference[j]+f.reference[N]-T[N]-f.floating[j],ne=T[N]-f.reference[N],se=await(h.getOffsetParent==null?void 0:h.getOffsetParent(b));let fe=se?se[re]:0;(!fe||!await(h.isElement==null?void 0:h.isElement(se)))&&(fe=m.floating[re]||f.floating[j]);const ie=Y/2-ne/2,we=fe/2-M[j]/2-1,Ce=ps(S[B],we),De=ps(S[F],we),_e=Ce,le=fe-M[j]-De,ue=fe/2-M[j]/2+ie,he=jv(_e,ue,le),Q=!y.arrow&&fc(l)!=null&&ue!==he&&f.reference[j]/2-(ue<_e?Ce:De)-M[j]/2<0,U=Q?ue<_e?ue-_e:ue-le:0;return{[N]:T[N]+U,data:{[N]:he,centerOffset:ue-he-U,...Q&&{alignmentOffset:U}},reset:Q}}}),ak=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;const{placement:l,middlewareData:f,rects:h,initialPlacement:m,platform:y,elements:b}=t,{mainAxis:x=!0,crossAxis:S=!0,fallbackPlacements:T,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:M=!0,...D}=Co(e,t);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const B=To(l),F=Ni(m),re=To(m)===m,Y=await(y.isRTL==null?void 0:y.isRTL(b.floating)),ne=T||(re||!M?[Qm(m)]:QM(m)),se=j!=="none";!T&&se&&ne.push(...JM(m,M,j,Y));const fe=[m,...ne],ie=await Yd(t,D),we=[];let Ce=((i=f.flip)==null?void 0:i.overflows)||[];if(x&&we.push(ie[B]),S){const ue=ZM(l,h,Y);we.push(ie[ue[0]],ie[ue[1]])}if(Ce=[...Ce,{placement:l,overflows:we}],!we.every(ue=>ue<=0)){var De,_e;const ue=(((De=f.flip)==null?void 0:De.index)||0)+1,he=fe[ue];if(he&&(!(S==="alignment"?F!==Ni(he):!1)||Ce.every(z=>Ni(z.placement)===F?z.overflows[0]>0:!0)))return{data:{index:ue,overflows:Ce},reset:{placement:he}};let Q=(_e=Ce.filter(U=>U.overflows[0]<=0).sort((U,z)=>U.overflows[1]-z.overflows[1])[0])==null?void 0:_e.placement;if(!Q)switch(N){case"bestFit":{var le;const U=(le=Ce.filter(z=>{if(se){const ve=Ni(z.placement);return ve===F||ve==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(ve=>ve>0).reduce((ve,Oe)=>ve+Oe,0)]).sort((z,ve)=>z[1]-ve[1])[0])==null?void 0:le[0];U&&(Q=U);break}case"initialPlacement":Q=m;break}if(l!==Q)return{reset:{placement:Q}}}return{}}}};function ZE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function QE(e){return YM.some(t=>e[t]>=0)}const rk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:i="referenceHidden",...l}=Co(e,t);switch(i){case"referenceHidden":{const f=await Yd(t,{...l,elementContext:"reference"}),h=ZE(f,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:QE(h)}}}case"escaped":{const f=await Yd(t,{...l,altBoundary:!0}),h=ZE(f,r.floating);return{data:{escapedOffsets:h,escaped:QE(h)}}}default:return{}}}}},WE=new Set(["left","top"]);async function ik(e,t){const{placement:r,platform:i,elements:l}=e,f=await(i.isRTL==null?void 0:i.isRTL(l.floating)),h=To(r),m=fc(r),y=Ni(r)==="y",b=WE.has(h)?-1:1,x=f&&y?-1:1,S=Co(t,e);let{mainAxis:T,crossAxis:N,alignmentAxis:j}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return m&&typeof j=="number"&&(N=m==="end"?j*-1:j),y?{x:N*x,y:T*b}:{x:T*b,y:N*x}}const ok=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;const{x:l,y:f,placement:h,middlewareData:m}=t,y=await ik(t,e);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:l+y.x,y:f+y.y,data:{...y,placement:h}}}}},sk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:l}=t,{mainAxis:f=!0,crossAxis:h=!1,limiter:m={fn:D=>{let{x:B,y:F}=D;return{x:B,y:F}}},...y}=Co(e,t),b={x:r,y:i},x=await Yd(t,y),S=Ni(To(l)),T=Uv(S);let N=b[T],j=b[S];if(f){const D=T==="y"?"top":"left",B=T==="y"?"bottom":"right",F=N+x[D],re=N-x[B];N=jv(F,N,re)}if(h){const D=S==="y"?"top":"left",B=S==="y"?"bottom":"right",F=j+x[D],re=j-x[B];j=jv(F,j,re)}const M=m.fn({...t,[T]:N,[S]:j});return{...M,data:{x:M.x-r,y:M.y-i,enabled:{[T]:f,[S]:h}}}}}},lk=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:i,placement:l,rects:f,middlewareData:h}=t,{offset:m=0,mainAxis:y=!0,crossAxis:b=!0}=Co(e,t),x={x:r,y:i},S=Ni(l),T=Uv(S);let N=x[T],j=x[S];const M=Co(m,t),D=typeof M=="number"?{mainAxis:M,crossAxis:0}:{mainAxis:0,crossAxis:0,...M};if(y){const re=T==="y"?"height":"width",Y=f.reference[T]-f.floating[re]+D.mainAxis,ne=f.reference[T]+f.reference[re]-D.mainAxis;N<Y?N=Y:N>ne&&(N=ne)}if(b){var B,F;const re=T==="y"?"width":"height",Y=WE.has(To(l)),ne=f.reference[S]-f.floating[re]+(Y&&((B=h.offset)==null?void 0:B[S])||0)+(Y?0:D.crossAxis),se=f.reference[S]+f.reference[re]+(Y?0:((F=h.offset)==null?void 0:F[S])||0)-(Y?D.crossAxis:0);j<ne?j=ne:j>se&&(j=se)}return{[T]:N,[S]:j}}}},uk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,i;const{placement:l,rects:f,platform:h,elements:m}=t,{apply:y=()=>{},...b}=Co(e,t),x=await Yd(t,b),S=To(l),T=fc(l),N=Ni(l)==="y",{width:j,height:M}=f.floating;let D,B;S==="top"||S==="bottom"?(D=S,B=T===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(B=S,D=T==="end"?"top":"bottom");const F=M-x.top-x.bottom,re=j-x.left-x.right,Y=ps(M-x[D],F),ne=ps(j-x[B],re),se=!t.middlewareData.shift;let fe=Y,ie=ne;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(ie=re),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(fe=F),se&&!T){const Ce=gr(x.left,0),De=gr(x.right,0),_e=gr(x.top,0),le=gr(x.bottom,0);N?ie=j-2*(Ce!==0||De!==0?Ce+De:gr(x.left,x.right)):fe=M-2*(_e!==0||le!==0?_e+le:gr(x.top,x.bottom))}await y({...t,availableWidth:ie,availableHeight:fe});const we=await h.getDimensions(m.floating);return j!==we.width||M!==we.height?{reset:{rects:!0}}:{}}}};function Xm(){return typeof window<"u"}function dc(e){return XE(e)?(e.nodeName||"").toLowerCase():"#document"}function yr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ii(e){var t;return(t=(XE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function XE(e){return Xm()?e instanceof Node||e instanceof yr(e).Node:!1}function Wr(e){return Xm()?e instanceof Element||e instanceof yr(e).Element:!1}function Li(e){return Xm()?e instanceof HTMLElement||e instanceof yr(e).HTMLElement:!1}function KE(e){return!Xm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yr(e).ShadowRoot}const ck=new Set(["inline","contents"]);function Gd(e){const{overflow:t,overflowX:r,overflowY:i,display:l}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!ck.has(l)}const fk=new Set(["table","td","th"]);function dk(e){return fk.has(dc(e))}const hk=[":popover-open",":modal"];function Km(e){return hk.some(t=>{try{return e.matches(t)}catch{return!1}})}const pk=["transform","translate","scale","rotate","perspective"],mk=["transform","translate","scale","rotate","perspective","filter"],gk=["paint","layout","strict","content"];function Fv(e){const t=Yv(),r=Wr(e)?Xr(e):e;return pk.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||mk.some(i=>(r.willChange||"").includes(i))||gk.some(i=>(r.contain||"").includes(i))}function yk(e){let t=ms(e);for(;Li(t)&&!hc(t);){if(Fv(t))return t;if(Km(t))return null;t=ms(t)}return null}function Yv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vk=new Set(["html","body","#document"]);function hc(e){return vk.has(dc(e))}function Xr(e){return yr(e).getComputedStyle(e)}function Jm(e){return Wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ms(e){if(dc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||KE(e)&&e.host||Ii(e);return KE(t)?t.host:t}function JE(e){const t=ms(e);return hc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Li(t)&&Gd(t)?t:JE(t)}function Vd(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const l=JE(e),f=l===((i=e.ownerDocument)==null?void 0:i.body),h=yr(l);if(f){const m=Gv(h);return t.concat(h,h.visualViewport||[],Gd(l)?l:[],m&&r?Vd(m):[])}return t.concat(l,Vd(l,[],r))}function Gv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eA(e){const t=Xr(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const l=Li(e),f=l?e.offsetWidth:r,h=l?e.offsetHeight:i,m=$m(r)!==f||$m(i)!==h;return m&&(r=f,i=h),{width:r,height:i,$:m}}function Vv(e){return Wr(e)?e:e.contextElement}function pc(e){const t=Vv(e);if(!Li(t))return ki(1);const r=t.getBoundingClientRect(),{width:i,height:l,$:f}=eA(t);let h=(f?$m(r.width):r.width)/i,m=(f?$m(r.height):r.height)/l;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const bk=ki(0);function tA(e){const t=yr(e);return!Yv()||!t.visualViewport?bk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xk(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==yr(e)?!1:t}function vl(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),f=Vv(e);let h=ki(1);t&&(i?Wr(i)&&(h=pc(i)):h=pc(e));const m=xk(f,r,i)?tA(f):ki(0);let y=(l.left+m.x)/h.x,b=(l.top+m.y)/h.y,x=l.width/h.x,S=l.height/h.y;if(f){const T=yr(f),N=i&&Wr(i)?yr(i):i;let j=T,M=Gv(j);for(;M&&i&&N!==j;){const D=pc(M),B=M.getBoundingClientRect(),F=Xr(M),re=B.left+(M.clientLeft+parseFloat(F.paddingLeft))*D.x,Y=B.top+(M.clientTop+parseFloat(F.paddingTop))*D.y;y*=D.x,b*=D.y,x*=D.x,S*=D.y,y+=re,b+=Y,j=yr(M),M=Gv(j)}}return Wm({width:x,height:S,x:y,y:b})}function eg(e,t){const r=Jm(e).scrollLeft;return t?t.left+r:vl(Ii(e)).left+r}function nA(e,t){const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-eg(e,r),l=r.top+t.scrollTop;return{x:i,y:l}}function wk(e){let{elements:t,rect:r,offsetParent:i,strategy:l}=e;const f=l==="fixed",h=Ii(i),m=t?Km(t.floating):!1;if(i===h||m&&f)return r;let y={scrollLeft:0,scrollTop:0},b=ki(1);const x=ki(0),S=Li(i);if((S||!S&&!f)&&((dc(i)!=="body"||Gd(h))&&(y=Jm(i)),Li(i))){const N=vl(i);b=pc(i),x.x=N.x+i.clientLeft,x.y=N.y+i.clientTop}const T=h&&!S&&!f?nA(h,y):ki(0);return{width:r.width*b.x,height:r.height*b.y,x:r.x*b.x-y.scrollLeft*b.x+x.x+T.x,y:r.y*b.y-y.scrollTop*b.y+x.y+T.y}}function _k(e){return Array.from(e.getClientRects())}function Sk(e){const t=Ii(e),r=Jm(e),i=e.ownerDocument.body,l=gr(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),f=gr(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+eg(e);const m=-r.scrollTop;return Xr(i).direction==="rtl"&&(h+=gr(t.clientWidth,i.clientWidth)-l),{width:l,height:f,x:h,y:m}}const aA=25;function Ek(e,t){const r=yr(e),i=Ii(e),l=r.visualViewport;let f=i.clientWidth,h=i.clientHeight,m=0,y=0;if(l){f=l.width,h=l.height;const x=Yv();(!x||x&&t==="fixed")&&(m=l.offsetLeft,y=l.offsetTop)}const b=eg(i);if(b<=0){const x=i.ownerDocument,S=x.body,T=getComputedStyle(S),N=x.compatMode==="CSS1Compat"&&parseFloat(T.marginLeft)+parseFloat(T.marginRight)||0,j=Math.abs(i.clientWidth-S.clientWidth-N);j<=aA&&(f-=j)}else b<=aA&&(f+=b);return{width:f,height:h,x:m,y}}const Ak=new Set(["absolute","fixed"]);function Ck(e,t){const r=vl(e,!0,t==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,f=Li(e)?pc(e):ki(1),h=e.clientWidth*f.x,m=e.clientHeight*f.y,y=l*f.x,b=i*f.y;return{width:h,height:m,x:y,y:b}}function rA(e,t,r){let i;if(t==="viewport")i=Ek(e,r);else if(t==="document")i=Sk(Ii(e));else if(Wr(t))i=Ck(t,r);else{const l=tA(e);i={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Wm(i)}function iA(e,t){const r=ms(e);return r===t||!Wr(r)||hc(r)?!1:Xr(r).position==="fixed"||iA(r,t)}function Tk(e,t){const r=t.get(e);if(r)return r;let i=Vd(e,[],!1).filter(m=>Wr(m)&&dc(m)!=="body"),l=null;const f=Xr(e).position==="fixed";let h=f?ms(e):e;for(;Wr(h)&&!hc(h);){const m=Xr(h),y=Fv(h);!y&&m.position==="fixed"&&(l=null),(f?!y&&!l:!y&&m.position==="static"&&!!l&&Ak.has(l.position)||Gd(h)&&!y&&iA(e,h))?i=i.filter(x=>x!==h):l=m,h=ms(h)}return t.set(e,i),i}function Ok(e){let{element:t,boundary:r,rootBoundary:i,strategy:l}=e;const h=[...r==="clippingAncestors"?Km(t)?[]:Tk(t,this._c):[].concat(r),i],m=h[0],y=h.reduce((b,x)=>{const S=rA(t,x,l);return b.top=gr(S.top,b.top),b.right=ps(S.right,b.right),b.bottom=ps(S.bottom,b.bottom),b.left=gr(S.left,b.left),b},rA(t,m,l));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Rk(e){const{width:t,height:r}=eA(e);return{width:t,height:r}}function Dk(e,t,r){const i=Li(t),l=Ii(t),f=r==="fixed",h=vl(e,!0,f,t);let m={scrollLeft:0,scrollTop:0};const y=ki(0);function b(){y.x=eg(l)}if(i||!i&&!f)if((dc(t)!=="body"||Gd(l))&&(m=Jm(t)),i){const N=vl(t,!0,f,t);y.x=N.x+t.clientLeft,y.y=N.y+t.clientTop}else l&&b();f&&!i&&l&&b();const x=l&&!i&&!f?nA(l,m):ki(0),S=h.left+m.scrollLeft-y.x-x.x,T=h.top+m.scrollTop-y.y-x.y;return{x:S,y:T,width:h.width,height:h.height}}function $v(e){return Xr(e).position==="static"}function oA(e,t){if(!Li(e)||Xr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ii(e)===r&&(r=r.ownerDocument.body),r}function sA(e,t){const r=yr(e);if(Km(e))return r;if(!Li(e)){let l=ms(e);for(;l&&!hc(l);){if(Wr(l)&&!$v(l))return l;l=ms(l)}return r}let i=oA(e,t);for(;i&&dk(i)&&$v(i);)i=oA(i,t);return i&&hc(i)&&$v(i)&&!Fv(i)?r:i||yk(e)||r}const Mk=async function(e){const t=this.getOffsetParent||sA,r=this.getDimensions,i=await r(e.floating);return{reference:Dk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function kk(e){return Xr(e).direction==="rtl"}const Nk={convertOffsetParentRelativeRectToViewportRelativeRect:wk,getDocumentElement:Ii,getClippingRect:Ok,getOffsetParent:sA,getElementRects:Mk,getClientRects:_k,getDimensions:Rk,getScale:pc,isElement:Wr,isRTL:kk};function lA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ik(e,t){let r=null,i;const l=Ii(e);function f(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function h(m,y){m===void 0&&(m=!1),y===void 0&&(y=1),f();const b=e.getBoundingClientRect(),{left:x,top:S,width:T,height:N}=b;if(m||t(),!T||!N)return;const j=Zm(S),M=Zm(l.clientWidth-(x+T)),D=Zm(l.clientHeight-(S+N)),B=Zm(x),re={rootMargin:-j+"px "+-M+"px "+-D+"px "+-B+"px",threshold:gr(0,ps(1,y))||1};let Y=!0;function ne(se){const fe=se[0].intersectionRatio;if(fe!==y){if(!Y)return h();fe?h(!1,fe):i=setTimeout(()=>{h(!1,1e-7)},1e3)}fe===1&&!lA(b,e.getBoundingClientRect())&&h(),Y=!1}try{r=new IntersectionObserver(ne,{...re,root:l.ownerDocument})}catch{r=new IntersectionObserver(ne,re)}r.observe(e)}return h(!0),f}function Lk(e,t,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,b=Vv(e),x=l||f?[...b?Vd(b):[],...Vd(t)]:[];x.forEach(B=>{l&&B.addEventListener("scroll",r,{passive:!0}),f&&B.addEventListener("resize",r)});const S=b&&m?Ik(b,r):null;let T=-1,N=null;h&&(N=new ResizeObserver(B=>{let[F]=B;F&&F.target===b&&N&&(N.unobserve(t),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var re;(re=N)==null||re.observe(t)})),r()}),b&&!y&&N.observe(b),N.observe(t));let j,M=y?vl(e):null;y&&D();function D(){const B=vl(e);M&&!lA(M,B)&&r(),M=B,j=requestAnimationFrame(D)}return r(),()=>{var B;x.forEach(F=>{l&&F.removeEventListener("scroll",r),f&&F.removeEventListener("resize",r)}),S?.(),(B=N)==null||B.disconnect(),N=null,y&&cancelAnimationFrame(j)}}const zk=ok,Pk=sk,jk=ak,Uk=uk,Hk=rk,uA=nk,Bk=lk,qk=(e,t,r)=>{const i=new Map,l={platform:Nk,...r},f={...l.platform,_c:i};return tk(e,t,{...l,platform:f})};var Fk=typeof document<"u",Yk=function(){},tg=Fk?C.useLayoutEffect:Yk;function ng(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,i,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(i=r;i--!==0;)if(!ng(e[i],t[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(t,l[i]))return!1;for(i=r;i--!==0;){const f=l[i];if(!(f==="_owner"&&e.$$typeof)&&!ng(e[f],t[f]))return!1}return!0}return e!==e&&t!==t}function cA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fA(e,t){const r=cA(e);return Math.round(t*r)/r}function Zv(e){const t=C.useRef(e);return tg(()=>{t.current=e}),t}function Gk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:f,floating:h}={},transform:m=!0,whileElementsMounted:y,open:b}=e,[x,S]=C.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[T,N]=C.useState(i);ng(T,i)||N(i);const[j,M]=C.useState(null),[D,B]=C.useState(null),F=C.useCallback(z=>{z!==se.current&&(se.current=z,M(z))},[]),re=C.useCallback(z=>{z!==fe.current&&(fe.current=z,B(z))},[]),Y=f||j,ne=h||D,se=C.useRef(null),fe=C.useRef(null),ie=C.useRef(x),we=y!=null,Ce=Zv(y),De=Zv(l),_e=Zv(b),le=C.useCallback(()=>{if(!se.current||!fe.current)return;const z={placement:t,strategy:r,middleware:T};De.current&&(z.platform=De.current),qk(se.current,fe.current,z).then(ve=>{const Oe={...ve,isPositioned:_e.current!==!1};ue.current&&!ng(ie.current,Oe)&&(ie.current=Oe,hv.flushSync(()=>{S(Oe)}))})},[T,t,r,De,_e]);tg(()=>{b===!1&&ie.current.isPositioned&&(ie.current.isPositioned=!1,S(z=>({...z,isPositioned:!1})))},[b]);const ue=C.useRef(!1);tg(()=>(ue.current=!0,()=>{ue.current=!1}),[]),tg(()=>{if(Y&&(se.current=Y),ne&&(fe.current=ne),Y&&ne){if(Ce.current)return Ce.current(Y,ne,le);le()}},[Y,ne,le,Ce,we]);const he=C.useMemo(()=>({reference:se,floating:fe,setReference:F,setFloating:re}),[F,re]),Q=C.useMemo(()=>({reference:Y,floating:ne}),[Y,ne]),U=C.useMemo(()=>{const z={position:r,left:0,top:0};if(!Q.floating)return z;const ve=fA(Q.floating,x.x),Oe=fA(Q.floating,x.y);return m?{...z,transform:"translate("+ve+"px, "+Oe+"px)",...cA(Q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ve,top:Oe}},[r,m,Q.floating,x.x,x.y]);return C.useMemo(()=>({...x,update:le,refs:he,elements:Q,floatingStyles:U}),[x,le,he,Q,U])}const Vk=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&t(i)?i.current!=null?uA({element:i.current,padding:l}).fn(r):{}:i?uA({element:i,padding:l}).fn(r):{}}}},$k=(e,t)=>({...zk(e),options:[e,t]}),Zk=(e,t)=>({...Pk(e),options:[e,t]}),Qk=(e,t)=>({...Bk(e),options:[e,t]}),Wk=(e,t)=>({...jk(e),options:[e,t]}),Xk=(e,t)=>({...Uk(e),options:[e,t]}),Kk=(e,t)=>({...Hk(e),options:[e,t]}),Jk=(e,t)=>({...Vk(e),options:[e,t]});var eN="Arrow",dA=C.forwardRef((e,t)=>{const{children:r,width:i=10,height:l=5,...f}=e;return R.jsx(Qa.svg,{...f,ref:t,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});dA.displayName=eN;var tN=dA;function nN(e){const[t,r]=C.useState(void 0);return fs(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const f=l[0];let h,m;if("borderBoxSize"in f){const y=f.borderBoxSize,b=Array.isArray(y)?y[0]:y;h=b.inlineSize,m=b.blockSize}else h=e.offsetWidth,m=e.offsetHeight;r({width:h,height:m})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var Qv="Popper",[hA,pA]=dv(Qv),[aN,mA]=hA(Qv),gA=e=>{const{__scopePopper:t,children:r}=e,[i,l]=C.useState(null);return R.jsx(aN,{scope:t,anchor:i,onAnchorChange:l,children:r})};gA.displayName=Qv;var yA="PopperAnchor",vA=C.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...l}=e,f=mA(yA,r),h=C.useRef(null),m=Zr(t,h),y=C.useRef(null);return C.useEffect(()=>{const b=y.current;y.current=i?.current||h.current,b!==y.current&&f.onAnchorChange(y.current)}),i?null:R.jsx(Qa.div,{...l,ref:m})});vA.displayName=yA;var Wv="PopperContent",[rN,iN]=hA(Wv),bA=C.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:f="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:x=0,sticky:S="partial",hideWhenDetached:T=!1,updatePositionStrategy:N="optimized",onPlaced:j,...M}=e,D=mA(Wv,r),[B,F]=C.useState(null),re=Zr(t,be=>F(be)),[Y,ne]=C.useState(null),se=nN(Y),fe=se?.width??0,ie=se?.height??0,we=i+(f!=="center"?"-"+f:""),Ce=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},De=Array.isArray(b)?b:[b],_e=De.length>0,le={padding:Ce,boundary:De.filter(sN),altBoundary:_e},{refs:ue,floatingStyles:he,placement:Q,isPositioned:U,middlewareData:z}=Gk({strategy:"fixed",placement:we,whileElementsMounted:(...be)=>Lk(...be,{animationFrame:N==="always"}),elements:{reference:D.anchor},middleware:[$k({mainAxis:l+ie,alignmentAxis:h}),y&&Zk({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?Qk():void 0,...le}),y&&Wk({...le}),Xk({...le,apply:({elements:be,rects:Be,availableWidth:qe,availableHeight:ft})=>{const{width:at,height:Dt}=Be.reference,bn=be.floating.style;bn.setProperty("--radix-popper-available-width",`${qe}px`),bn.setProperty("--radix-popper-available-height",`${ft}px`),bn.setProperty("--radix-popper-anchor-width",`${at}px`),bn.setProperty("--radix-popper-anchor-height",`${Dt}px`)}}),Y&&Jk({element:Y,padding:m}),lN({arrowWidth:fe,arrowHeight:ie}),T&&Kk({strategy:"referenceHidden",...le})]}),[ve,Oe]=_A(Q),P=nc(j);fs(()=>{U&&P?.()},[U,P]);const $=z.arrow?.x,ee=z.arrow?.y,K=z.arrow?.centerOffset!==0,[me,Re]=C.useState();return fs(()=>{B&&Re(window.getComputedStyle(B).zIndex)},[B]),R.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:U?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:R.jsx(rN,{scope:r,placedSide:ve,onArrowChange:ne,arrowX:$,arrowY:ee,shouldHideArrow:K,children:R.jsx(Qa.div,{"data-side":ve,"data-align":Oe,...M,ref:re,style:{...M.style,animation:U?void 0:"none"}})})})});bA.displayName=Wv;var xA="PopperArrow",oN={top:"bottom",right:"left",bottom:"top",left:"right"},wA=C.forwardRef(function(t,r){const{__scopePopper:i,...l}=t,f=iN(xA,i),h=oN[f.placedSide];return R.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:R.jsx(tN,{...l,ref:r,style:{...l.style,display:"block"}})})});wA.displayName=xA;function sN(e){return e!==null}var lN=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:i,middlewareData:l}=t,h=l.arrow?.centerOffset!==0,m=h?0:e.arrowWidth,y=h?0:e.arrowHeight,[b,x]=_A(r),S={start:"0%",center:"50%",end:"100%"}[x],T=(l.arrow?.x??0)+m/2,N=(l.arrow?.y??0)+y/2;let j="",M="";return b==="bottom"?(j=h?S:`${T}px`,M=`${-y}px`):b==="top"?(j=h?S:`${T}px`,M=`${i.floating.height+y}px`):b==="right"?(j=`${-y}px`,M=h?S:`${N}px`):b==="left"&&(j=`${i.floating.width+y}px`,M=h?S:`${N}px`),{data:{x:j,y:M}}}});function _A(e){const[t,r="center"]=e.split("-");return[t,r]}var uN=gA,SA=vA,cN=bA,fN=wA,ag="Popover",[EA]=dv(ag,[pA]),$d=pA(),[dN,gs]=EA(ag),AA=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:l,onOpenChange:f,modal:h=!1}=e,m=$d(t),y=C.useRef(null),[b,x]=C.useState(!1),[S,T]=OS({prop:i,defaultProp:l??!1,onChange:f,caller:ag});return R.jsx(uN,{...m,children:R.jsx(dN,{scope:t,contentId:km(),triggerRef:y,open:S,onOpenChange:T,onOpenToggle:C.useCallback(()=>T(N=>!N),[T]),hasCustomAnchor:b,onCustomAnchorAdd:C.useCallback(()=>x(!0),[]),onCustomAnchorRemove:C.useCallback(()=>x(!1),[]),modal:h,children:r})})};AA.displayName=ag;var CA="PopoverAnchor",hN=C.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,l=gs(CA,r),f=$d(r),{onCustomAnchorAdd:h,onCustomAnchorRemove:m}=l;return C.useEffect(()=>(h(),()=>m()),[h,m]),R.jsx(SA,{...f,...i,ref:t})});hN.displayName=CA;var TA="PopoverTrigger",OA=C.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,l=gs(TA,r),f=$d(r),h=Zr(t,l.triggerRef),m=R.jsx(Qa.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":NA(l.open),...i,ref:h,onClick:mr(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?m:R.jsx(SA,{asChild:!0,...f,children:m})});OA.displayName=TA;var Xv="PopoverPortal",[pN,mN]=EA(Xv,{forceMount:void 0}),RA=e=>{const{__scopePopover:t,forceMount:r,children:i,container:l}=e,f=gs(Xv,t);return R.jsx(pN,{scope:t,forceMount:r,children:R.jsx(ac,{present:r||f.open,children:R.jsx(xv,{asChild:!0,container:l,children:i})})})};RA.displayName=Xv;var mc="PopoverContent",DA=C.forwardRef((e,t)=>{const r=mN(mc,e.__scopePopover),{forceMount:i=r.forceMount,...l}=e,f=gs(mc,e.__scopePopover);return R.jsx(ac,{present:i||f.open,children:f.modal?R.jsx(yN,{...l,ref:t}):R.jsx(vN,{...l,ref:t})})});DA.displayName=mc;var gN=pv("PopoverContent.RemoveScroll"),yN=C.forwardRef((e,t)=>{const r=gs(mc,e.__scopePopover),i=C.useRef(null),l=Zr(t,i),f=C.useRef(!1);return C.useEffect(()=>{const h=i.current;if(h)return JS(h)},[]),R.jsx(Cv,{as:gN,allowPinchZoom:!0,children:R.jsx(MA,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mr(e.onCloseAutoFocus,h=>{h.preventDefault(),f.current||r.triggerRef.current?.focus()}),onPointerDownOutside:mr(e.onPointerDownOutside,h=>{const m=h.detail.originalEvent,y=m.button===0&&m.ctrlKey===!0,b=m.button===2||y;f.current=b},{checkForDefaultPrevented:!1}),onFocusOutside:mr(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})})})}),vN=C.forwardRef((e,t)=>{const r=gs(mc,e.__scopePopover),i=C.useRef(!1),l=C.useRef(!1);return R.jsx(MA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{e.onCloseAutoFocus?.(f),f.defaultPrevented||(i.current||r.triggerRef.current?.focus(),f.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:f=>{e.onInteractOutside?.(f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const h=f.target;r.triggerRef.current?.contains(h)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&l.current&&f.preventDefault()}})}),MA=C.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:f,disableOutsidePointerEvents:h,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:x,...S}=e,T=gs(mc,r),N=$d(r);return jS(),R.jsx(bv,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:f,children:R.jsx(gv,{asChild:!0,disableOutsidePointerEvents:h,onInteractOutside:x,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:b,onDismiss:()=>T.onOpenChange(!1),children:R.jsx(cN,{"data-state":NA(T.open),role:"dialog",id:T.contentId,...N,...S,ref:t,style:{...S.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)"}})})})}),kA="PopoverClose",bN=C.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,l=gs(kA,r);return R.jsx(Qa.button,{type:"button",...i,ref:t,onClick:mr(e.onClick,()=>l.onOpenChange(!1))})});bN.displayName=kA;var xN="PopoverArrow",wN=C.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,l=$d(r);return R.jsx(fN,{...l,...i,ref:t})});wN.displayName=xN;function NA(e){return e?"open":"closed"}var _N=AA,SN=OA,EN=RA,IA=DA;const AN=_N,CN=SN,LA=C.forwardRef(({className:e,align:t="center",sideOffset:r=4,portalContainer:i,...l},f)=>R.jsx(EN,{container:i??void 0,children:R.jsx(IA,{ref:f,align:t,sideOffset:r,className:Fd("a1-z-[100] a1-rounded-md a1-border a1-bg-popover a1-p-1 md:a1-p-4 a1-text-popover-foreground a1-shadow-md a1-outline-none a1-data-[state=open]:animate-in a1-data-[state=closed]:animate-out a1-data-[state=closed]:fade-out-0 a1-data-[state=open]:fade-in-0 a1-data-[state=closed]:zoom-out-95 a1-data-[state=open]:zoom-in-95 a1-data-[side=bottom]:slide-in-from-top-2 a1-data-[side=left]:slide-in-from-right-2 a1-data-[side=right]:slide-in-from-left-2 a1-data-[side=top]:slide-in-from-bottom-2 a1-origin-[--radix-popover-content-transform-origin]",e),...l})}));LA.displayName=IA.displayName;function zA(){return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,className:"a1-w-6 a1-h-6 a1-stroke-black","aria-hidden":"true",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z"})})}function TN(){return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6","aria-hidden":"true",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}function ON(){return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6","aria-hidden":"true",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})}function RN(){return R.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25.75 8.6",width:"35",height:"10","aria-hidden":"true",children:[R.jsx("path",{d:"M2.26,6.38v-3.55c-.66.51-1.11.76-1.34.76-.11,0-.21-.04-.29-.13s-.13-.19-.13-.3c0-.13.04-.23.12-.29s.23-.14.44-.24c.31-.15.57-.3.76-.47s.36-.35.5-.55.24-.33.29-.38.13-.07.25-.07c.14,0,.25.05.33.16s.12.25.12.44v4.47c0,.52-.18.79-.54.79-.16,0-.29-.05-.38-.16s-.14-.26-.14-.47Z"}),R.jsx("path",{d:"M12.13,5.19c0,.35-.09.66-.27.93s-.44.49-.78.65-.75.23-1.22.23c-.56,0-1.03-.11-1.4-.32-.26-.15-.47-.36-.63-.62s-.24-.51-.24-.75c0-.14.05-.26.15-.36s.22-.15.37-.15c.12,0,.23.04.31.12s.16.19.22.35c.07.18.15.33.24.46.08.12.2.22.36.3s.36.12.61.12c.34,0,.62-.08.84-.24s.32-.36.32-.6c0-.19-.06-.34-.17-.46s-.27-.21-.45-.27-.43-.13-.74-.2c-.41-.1-.76-.21-1.03-.34s-.5-.3-.66-.53-.24-.5-.24-.83.09-.6.26-.84.42-.43.75-.56.71-.2,1.15-.2c.35,0,.66.04.91.13s.47.2.64.35.29.3.37.46.12.31.12.46c0,.14-.05.26-.15.37s-.22.17-.37.17c-.13,0-.23-.03-.3-.1s-.14-.18-.22-.33c-.1-.22-.23-.38-.38-.51s-.38-.18-.7-.18c-.3,0-.54.07-.72.2s-.28.29-.28.47c0,.11.03.21.09.3s.15.15.26.21.22.11.33.14.3.08.55.15c.32.08.62.16.88.25s.48.2.67.33.33.29.43.49.15.44.15.73Z"}),R.jsx("path",{d:"M13.3,2.77h.12v-.64c0-.17,0-.31.01-.4s.03-.18.08-.25c.04-.07.1-.13.18-.18s.17-.07.26-.07c.14,0,.26.05.37.15.07.07.12.15.14.25s.03.24.03.42v.73h.39c.15,0,.27.04.35.11s.12.16.12.28c0,.14-.06.24-.17.3s-.28.09-.49.09h-.2v1.96c0,.17,0,.29.02.38s.04.16.09.22.13.08.25.08c.06,0,.15-.01.25-.03s.19-.03.25-.03c.09,0,.16.03.23.1s.1.15.1.26c0,.17-.09.3-.28.39s-.46.14-.81.14c-.33,0-.59-.06-.76-.17s-.28-.27-.34-.46-.08-.46-.08-.79v-2.05h-.14c-.15,0-.27-.04-.35-.11s-.12-.17-.12-.28.04-.2.13-.28.21-.11.37-.11Z"}),R.jsx("path",{d:"M20.26,4.84c0,.32-.05.61-.15.88-.1.27-.24.5-.43.69s-.41.34-.67.44-.55.15-.88.15-.61-.05-.87-.16-.48-.25-.67-.45-.33-.42-.43-.69c-.1-.26-.15-.56-.15-.88s.05-.62.15-.89.24-.5.43-.69.41-.34.67-.44.55-.15.87-.15.62.05.88.16.49.25.68.45.33.42.43.69.15.56.15.88ZM19.19,4.84c0-.44-.1-.77-.29-1.02s-.45-.36-.77-.36c-.21,0-.39.05-.55.16s-.28.27-.37.48-.13.46-.13.74.04.52.13.73.21.37.36.48.34.17.56.17c.32,0,.58-.12.77-.37.19-.24.29-.58.29-1.01Z"}),R.jsx("path",{d:"M22.29,3.27v.13c.2-.25.41-.43.62-.54s.46-.17.73-.17c.33,0,.63.08.91.25s.49.42.65.74.24.71.24,1.16c0,.33-.05.63-.14.9-.09.27-.22.5-.38.69s-.35.33-.57.43-.46.15-.71.15c-.3,0-.56-.06-.77-.18s-.4-.3-.59-.54v1.6c0,.47-.17.7-.51.7-.2,0-.33-.06-.4-.18s-.1-.3-.1-.53V3.28c0-.2.04-.35.13-.46s.21-.15.36-.15.27.05.37.15.14.25.14.44ZM24.38,4.82c0-.28-.04-.52-.13-.72s-.21-.36-.36-.46-.32-.16-.51-.16c-.29,0-.54.12-.74.35s-.3.57-.3,1.02c0,.42.1.75.3.99.2.24.45.35.75.35.18,0,.34-.05.49-.15s.27-.26.36-.46.14-.45.14-.75Z"})]})}function DN(){return R.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24.89 8.6",width:"35",height:"10","aria-hidden":"true",children:[R.jsx("defs",{children:R.jsx("style",{children:`.cls-1 {
|
|
713
|
+
*/const wD=xD("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function HC(t){var n,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(n=0;n<l;n++)t[n]&&(r=HC(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function _D(){for(var t,n,r=0,i="",l=arguments.length;r<l;r++)(t=arguments[r])&&(n=HC(t))&&(i&&(i+=" "),i+=n);return i}const Xv="-",SD=t=>{const n=ED(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:h=>{const g=h.split(Xv);return g[0]===""&&g.length!==1&&g.shift(),BC(g,n)||CD(h)},getConflictingClassGroupIds:(h,g)=>{const y=r[h]||[];return g&&i[h]?[...y,...i[h]]:y}}},BC=(t,n)=>{if(t.length===0)return n.classGroupId;const r=t[0],i=n.nextPart.get(r),l=i?BC(t.slice(1),i):void 0;if(l)return l;if(n.validators.length===0)return;const f=t.join(Xv);return n.validators.find(({validator:h})=>h(f))?.classGroupId},qC=/^\[(.+)\]$/,CD=t=>{if(qC.test(t)){const n=qC.exec(t)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},ED=t=>{const{theme:n,classGroups:r}=t,i={nextPart:new Map,validators:[]};for(const l in r)Kv(r[l],i,l,n);return i},Kv=(t,n,r,i)=>{t.forEach(l=>{if(typeof l=="string"){const f=l===""?n:FC(n,l);f.classGroupId=r;return}if(typeof l=="function"){if(AD(l)){Kv(l(i),n,r,i);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([f,h])=>{Kv(h,FC(n,f),r,i)})})},FC=(t,n)=>{let r=t;return n.split(Xv).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},AD=t=>t.isThemeGetter,TD=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const l=(f,h)=>{r.set(f,h),n++,n>t&&(n=0,i=r,r=new Map)};return{get(f){let h=r.get(f);if(h!==void 0)return h;if((h=i.get(f))!==void 0)return l(f,h),h},set(f,h){r.has(f)?r.set(f,h):l(f,h)}}},Jv="!",eb=":",OD=eb.length,RD=t=>{const{prefix:n,experimentalParseClassName:r}=t;let i=l=>{const f=[];let h=0,g=0,y=0,b;for(let j=0;j<l.length;j++){let D=l[j];if(h===0&&g===0){if(D===eb){f.push(l.slice(y,j)),y=j+OD;continue}if(D==="/"){b=j;continue}}D==="["?h++:D==="]"?h--:D==="("?g++:D===")"&&g--}const w=f.length===0?l:l.substring(y),E=MD(w),A=E!==w,I=b&&b>y?b-y:void 0;return{modifiers:f,hasImportantModifier:A,baseClassName:E,maybePostfixModifierPosition:I}};if(n){const l=n+eb,f=i;i=h=>h.startsWith(l)?f(h.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const l=i;i=f=>r({className:f,parseClassName:l})}return i},MD=t=>t.endsWith(Jv)?t.substring(0,t.length-1):t.startsWith(Jv)?t.substring(1):t,DD=t=>{const n=Object.fromEntries(t.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const l=[];let f=[];return i.forEach(h=>{h[0]==="["||n[h]?(l.push(...f.sort(),h),f=[]):f.push(h)}),l.push(...f.sort()),l}},kD=t=>({cache:TD(t.cacheSize),parseClassName:RD(t),sortModifiers:DD(t),...SD(t)}),ND=/\s+/,ID=(t,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:f}=n,h=[],g=t.trim().split(ND);let y="";for(let b=g.length-1;b>=0;b-=1){const w=g[b],{isExternal:E,modifiers:A,hasImportantModifier:I,baseClassName:j,maybePostfixModifierPosition:D}=r(w);if(E){y=w+(y.length>0?" "+y:y);continue}let R=!!D,q=i(R?j.substring(0,D):j);if(!q){if(!R){y=w+(y.length>0?" "+y:y);continue}if(q=i(j),!q){y=w+(y.length>0?" "+y:y);continue}R=!1}const Y=f(A).join(":"),re=I?Y+Jv:Y,G=re+q;if(h.includes(G))continue;h.push(G);const te=l(q,R);for(let ye=0;ye<te.length;++ye){const ce=te[ye];h.push(re+ce)}y=w+(y.length>0?" "+y:y)}return y};function LD(){let t=0,n,r,i="";for(;t<arguments.length;)(n=arguments[t++])&&(r=YC(n))&&(i&&(i+=" "),i+=r);return i}const YC=t=>{if(typeof t=="string")return t;let n,r="";for(let i=0;i<t.length;i++)t[i]&&(n=YC(t[i]))&&(r&&(r+=" "),r+=n);return r};function GC(t,...n){let r,i,l,f=h;function h(y){const b=n.reduce((w,E)=>E(w),t());return r=kD(b),i=r.cache.get,l=r.cache.set,f=g,g(y)}function g(y){const b=i(y);if(b)return b;const w=ID(y,r);return l(y,w),w}return function(){return f(LD.apply(null,arguments))}}const Yn=t=>{const n=r=>r[t]||[];return n.isThemeGetter=!0,n},VC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$C=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zD=/^\d+\/\d+$/,jD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PD=/\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$/,UD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,HD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,BD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kc=t=>zD.test(t),gt=t=>!!t&&!Number.isNaN(Number(t)),Ms=t=>!!t&&Number.isInteger(Number(t)),tb=t=>t.endsWith("%")&>(t.slice(0,-1)),To=t=>jD.test(t),qD=()=>!0,FD=t=>PD.test(t)&&!UD.test(t),ZC=()=>!1,YD=t=>HD.test(t),GD=t=>BD.test(t),VD=t=>!Pe(t)&&!Ue(t),$D=t=>Nc(t,JC,ZC),Pe=t=>VC.test(t),ql=t=>Nc(t,eE,FD),nb=t=>Nc(t,KD,gt),QC=t=>Nc(t,XC,ZC),ZD=t=>Nc(t,KC,GD),pg=t=>Nc(t,tE,YD),Ue=t=>$C.test(t),oh=t=>Ic(t,eE),QD=t=>Ic(t,JD),WC=t=>Ic(t,XC),WD=t=>Ic(t,JC),XD=t=>Ic(t,KC),mg=t=>Ic(t,tE,!0),Nc=(t,n,r)=>{const i=VC.exec(t);return i?i[1]?n(i[1]):r(i[2]):!1},Ic=(t,n,r=!1)=>{const i=$C.exec(t);return i?i[1]?n(i[1]):r:!1},XC=t=>t==="position"||t==="percentage",KC=t=>t==="image"||t==="url",JC=t=>t==="length"||t==="size"||t==="bg-size",eE=t=>t==="length",KD=t=>t==="number",JD=t=>t==="family-name",tE=t=>t==="shadow",nE=()=>{const t=Yn("color"),n=Yn("font"),r=Yn("text"),i=Yn("font-weight"),l=Yn("tracking"),f=Yn("leading"),h=Yn("breakpoint"),g=Yn("container"),y=Yn("spacing"),b=Yn("radius"),w=Yn("shadow"),E=Yn("inset-shadow"),A=Yn("text-shadow"),I=Yn("drop-shadow"),j=Yn("blur"),D=Yn("perspective"),R=Yn("aspect"),q=Yn("ease"),Y=Yn("animate"),re=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],te=()=>[...G(),Ue,Pe],ye=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto","contain","none"],X=()=>[Ue,Pe,y],ve=()=>[kc,"full","auto",...X()],Ee=()=>[Ms,"none","subgrid",Ue,Pe],Re=()=>["auto",{span:["full",Ms,Ue,Pe]},Ms,Ue,Pe],be=()=>[Ms,"auto",Ue,Pe],le=()=>["auto","min","max","fr",Ue,Pe],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...X()],U=()=>[kc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...X()],z=()=>[t,Ue,Pe],xe=()=>[...G(),WC,QC,{position:[Ue,Pe]}],Oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ve=()=>["auto","cover","contain",WD,$D,{size:[Ue,Pe]}],k=()=>[tb,oh,ql],F=()=>["","none","full",b,Ue,Pe],W=()=>["",gt,oh,ql],ue=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[gt,tb,WC,QC],Me=()=>["","none",j,Ue,Pe],We=()=>["none",gt,Ue,Pe],Ze=()=>["none",gt,Ue,Pe],Ke=()=>[gt,Ue,Pe],kt=()=>[kc,"full",...X()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[To],breakpoint:[To],color:[qD],container:[To],"drop-shadow":[To],ease:["in","out","in-out"],font:[VD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[To],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[To],shadow:[To],spacing:["px",gt],text:[To],"text-shadow":[To],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",kc,Pe,Ue,R]}],container:["container"],columns:[{columns:[gt,Pe,Ue,g]}],"break-after":[{"break-after":re()}],"break-before":[{"break-before":re()}],"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:te()}],overflow:[{overflow:ye()}],"overflow-x":[{"overflow-x":ye()}],"overflow-y":[{"overflow-y":ye()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ve()}],"inset-x":[{"inset-x":ve()}],"inset-y":[{"inset-y":ve()}],start:[{start:ve()}],end:[{end:ve()}],top:[{top:ve()}],right:[{right:ve()}],bottom:[{bottom:ve()}],left:[{left:ve()}],visibility:["visible","invisible","collapse"],z:[{z:[Ms,"auto",Ue,Pe]}],basis:[{basis:[kc,"full","auto",g,...X()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[gt,kc,"auto","initial","none",Pe]}],grow:[{grow:["",gt,Ue,Pe]}],shrink:[{shrink:["",gt,Ue,Pe]}],order:[{order:[Ms,"first","last","none",Ue,Pe]}],"grid-cols":[{"grid-cols":Ee()}],"col-start-end":[{col:Re()}],"col-start":[{"col-start":be()}],"col-end":[{"col-end":be()}],"grid-rows":[{"grid-rows":Ee()}],"row-start-end":[{row:Re()}],"row-start":[{"row-start":be()}],"row-end":[{"row-end":be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:X()}],"gap-x":[{"gap-x":X()}],"gap-y":[{"gap-y":X()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:X()}],px:[{px:X()}],py:[{py:X()}],ps:[{ps:X()}],pe:[{pe:X()}],pt:[{pt:X()}],pr:[{pr:X()}],pb:[{pb:X()}],pl:[{pl:X()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":X()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":X()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[g,"screen",...U()]}],"min-w":[{"min-w":[g,"screen","none",...U()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[h]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",r,oh,ql]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ue,nb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tb,Pe]}],"font-family":[{font:[QD,Pe,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:[l,Ue,Pe]}],"line-clamp":[{"line-clamp":[gt,"none",Ue,nb]}],leading:[{leading:[f,...X()]}],"list-image":[{"list-image":["none",Ue,Pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ue,Pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[gt,"from-font","auto",Ue,ql]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[gt,"auto",Ue,Pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ue,Pe]}],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",Ue,Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:xe()}],"bg-repeat":[{bg:Oe()}],"bg-size":[{bg:Ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ms,Ue,Pe],radial:["",Ue,Pe],conic:[Ms,Ue,Pe]},XD,ZD]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[gt,Ue,Pe]}],"outline-w":[{outline:["",gt,oh,ql]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",w,mg,pg]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",E,mg,pg]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[gt,ql]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",A,mg,pg]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[gt,Ue,Pe]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"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":[gt]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[Ue,Pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[gt]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:xe()}],"mask-repeat":[{mask:Oe()}],"mask-size":[{mask:Ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ue,Pe]}],filter:[{filter:["","none",Ue,Pe]}],blur:[{blur:Me()}],brightness:[{brightness:[gt,Ue,Pe]}],contrast:[{contrast:[gt,Ue,Pe]}],"drop-shadow":[{"drop-shadow":["","none",I,mg,pg]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",gt,Ue,Pe]}],"hue-rotate":[{"hue-rotate":[gt,Ue,Pe]}],invert:[{invert:["",gt,Ue,Pe]}],saturate:[{saturate:[gt,Ue,Pe]}],sepia:[{sepia:["",gt,Ue,Pe]}],"backdrop-filter":[{"backdrop-filter":["","none",Ue,Pe]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[gt,Ue,Pe]}],"backdrop-contrast":[{"backdrop-contrast":[gt,Ue,Pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",gt,Ue,Pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[gt,Ue,Pe]}],"backdrop-invert":[{"backdrop-invert":["",gt,Ue,Pe]}],"backdrop-opacity":[{"backdrop-opacity":[gt,Ue,Pe]}],"backdrop-saturate":[{"backdrop-saturate":[gt,Ue,Pe]}],"backdrop-sepia":[{"backdrop-sepia":["",gt,Ue,Pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":X()}],"border-spacing-x":[{"border-spacing-x":X()}],"border-spacing-y":[{"border-spacing-y":X()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ue,Pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[gt,"initial",Ue,Pe]}],ease:[{ease:["linear","initial",q,Ue,Pe]}],delay:[{delay:[gt,Ue,Pe]}],animate:[{animate:["none",Y,Ue,Pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,Ue,Pe]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:We()}],"rotate-x":[{"rotate-x":We()}],"rotate-y":[{"rotate-y":We()}],"rotate-z":[{"rotate-z":We()}],scale:[{scale:Ze()}],"scale-x":[{"scale-x":Ze()}],"scale-y":[{"scale-y":Ze()}],"scale-z":[{"scale-z":Ze()}],"scale-3d":["scale-3d"],skew:[{skew:Ke()}],"skew-x":[{"skew-x":Ke()}],"skew-y":[{"skew-y":Ke()}],transform:[{transform:[Ue,Pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:kt()}],"translate-x":[{"translate-x":kt()}],"translate-y":[{"translate-y":kt()}],"translate-z":[{"translate-z":kt()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ue,Pe]}],"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":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"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",Ue,Pe]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[gt,oh,ql,nb]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ek=(t,{cacheSize:n,prefix:r,experimentalParseClassName:i,extend:l={},override:f={}})=>(sh(t,"cacheSize",n),sh(t,"prefix",r),sh(t,"experimentalParseClassName",i),gg(t.theme,f.theme),gg(t.classGroups,f.classGroups),gg(t.conflictingClassGroups,f.conflictingClassGroups),gg(t.conflictingClassGroupModifiers,f.conflictingClassGroupModifiers),sh(t,"orderSensitiveModifiers",f.orderSensitiveModifiers),yg(t.theme,l.theme),yg(t.classGroups,l.classGroups),yg(t.conflictingClassGroups,l.conflictingClassGroups),yg(t.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),aE(t,l,"orderSensitiveModifiers"),t),sh=(t,n,r)=>{r!==void 0&&(t[n]=r)},gg=(t,n)=>{if(n)for(const r in n)sh(t,r,n[r])},yg=(t,n)=>{if(n)for(const r in n)aE(t,n,r)},aE=(t,n,r)=>{const i=n[r];i!==void 0&&(t[r]=t[r]?t[r].concat(i):i)},tk=((t,...n)=>typeof t=="function"?GC(nE,t,...n):GC(()=>ek(nE(),t),...n))({prefix:"a1-"});function lh(...t){return tk(_D(t))}const nk=dD,ak=hD,rk=pD,ik=jC,rE=T.forwardRef(({open:t,onOpenChange:n,children:r,title:i,className:l},f)=>{const h=T.useRef(null);return T.useImperativeHandle(f,()=>h.current),T.useEffect(()=>{const g=h.current;if(!g)return;t&&!g.open&&g.showModal(),!t&&g.open&&g.close();const y=()=>document.documentElement.style.overflow="hidden",b=()=>document.documentElement.style.removeProperty("overflow");t?y():b();const w=()=>{b(),n(!1)},E=A=>{A.preventDefault(),n(!1)};return g.addEventListener("close",w),g.addEventListener("cancel",E),()=>{g.removeEventListener("close",w),g.removeEventListener("cancel",E),b()}},[t,n]),M.jsxs("dialog",{ref:h,className:`ao-dialog ${l||""}`,"aria-labelledby":"ao-title",children:[i&&M.jsx("h2",{id:"ao-title",className:"a1-text-lg a1-font-semibold",children:i}),M.jsx("div",{className:"ao-dialog__body",children:r})]})});rE.displayName="TopLayerDialog";const iE=T.forwardRef(({className:t,...n},r)=>M.jsx(NC,{ref:r,className:lh("a1-fixed a1-inset-0 a1-z-100 a1-bg-black/80",t),...n}));iE.displayName=NC.displayName;const ok=T.forwardRef(({className:t,children:n,container:r,...i},l)=>M.jsxs(rk,{container:r??void 0,children:[M.jsx(iE,{}),M.jsxs(IC,{ref:l,className:lh("a1-fixed a1-left-[50%] a1-top-[50%] a1-z-100 a1-max-w-lg a1-translate-x-[-50%] a1-translate-y-[-50%] a1-border a1-bg-background a1-p-6 a1-shadow-lg a1-rounded-lg",t),"aria-describedby":i["aria-describedby"]||"dialog-content",...i,children:[M.jsx(ab,{className:"a1-sr-only",children:i.title}),M.jsx(oE,{className:"a1-sr-only"}),n,M.jsxs(jC,{className:"a1-absolute a1-right-4 a1-top-4 a1-rounded-sm a1-opacity-70 a1-ring-offset-background a1-transition-opacity a1-hover:opacity-100 a1-focus:outline-none a1-focus:ring-2 a1-focus:ring-ring a1-focus:ring-offset-2 a1-disabled:pointer-events-none",children:[M.jsx(wD,{className:"a1-h-4 a1-w-4"}),M.jsx("span",{className:"a1-sr-only",children:"Close"})]})]})]}));ok.displayName=IC.displayName;const ab=T.forwardRef(({className:t,...n},r)=>M.jsx(LC,{ref:r,className:lh("a1-text-lg a1-font-semibold a1-leading-none a1-tracking-tight",t),...n}));ab.displayName=LC.displayName;const oE=T.forwardRef(({className:t,...n},r)=>M.jsx(zC,{ref:r,className:lh("a1-text-sm a1-text-muted-foreground",t),...n}));oE.displayName=zC.displayName;const sk=["top","right","bottom","left"],Ds=Math.min,cr=Math.max,vg=Math.round,bg=Math.floor,Pi=t=>({x:t,y:t}),lk={left:"right",right:"left",bottom:"top",top:"bottom"},uk={start:"end",end:"start"};function rb(t,n,r){return cr(t,Ds(n,r))}function Oo(t,n){return typeof t=="function"?t(n):t}function Ro(t){return t.split("-")[0]}function Lc(t){return t.split("-")[1]}function ib(t){return t==="x"?"y":"x"}function ob(t){return t==="y"?"height":"width"}const ck=new Set(["top","bottom"]);function Ui(t){return ck.has(Ro(t))?"y":"x"}function sb(t){return ib(Ui(t))}function fk(t,n,r){r===void 0&&(r=!1);const i=Lc(t),l=sb(t),f=ob(l);let h=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[f]>n.floating[f]&&(h=xg(h)),[h,xg(h)]}function dk(t){const n=xg(t);return[lb(t),n,lb(n)]}function lb(t){return t.replace(/start|end/g,n=>uk[n])}const sE=["left","right"],lE=["right","left"],hk=["top","bottom"],pk=["bottom","top"];function mk(t,n,r){switch(t){case"top":case"bottom":return r?n?lE:sE:n?sE:lE;case"left":case"right":return n?hk:pk;default:return[]}}function gk(t,n,r,i){const l=Lc(t);let f=mk(Ro(t),r==="start",i);return l&&(f=f.map(h=>h+"-"+l),n&&(f=f.concat(f.map(lb)))),f}function xg(t){return t.replace(/left|right|bottom|top/g,n=>lk[n])}function yk(t){return{top:0,right:0,bottom:0,left:0,...t}}function uE(t){return typeof t!="number"?yk(t):{top:t,right:t,bottom:t,left:t}}function wg(t){const{x:n,y:r,width:i,height:l}=t;return{width:i,height:l,top:r,left:n,right:n+i,bottom:r+l,x:n,y:r}}function cE(t,n,r){let{reference:i,floating:l}=t;const f=Ui(n),h=sb(n),g=ob(h),y=Ro(n),b=f==="y",w=i.x+i.width/2-l.width/2,E=i.y+i.height/2-l.height/2,A=i[g]/2-l[g]/2;let I;switch(y){case"top":I={x:w,y:i.y-l.height};break;case"bottom":I={x:w,y:i.y+i.height};break;case"right":I={x:i.x+i.width,y:E};break;case"left":I={x:i.x-l.width,y:E};break;default:I={x:i.x,y:i.y}}switch(Lc(n)){case"start":I[h]-=A*(r&&b?-1:1);break;case"end":I[h]+=A*(r&&b?-1:1);break}return I}const vk=async(t,n,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:f=[],platform:h}=r,g=f.filter(Boolean),y=await(h.isRTL==null?void 0:h.isRTL(n));let b=await h.getElementRects({reference:t,floating:n,strategy:l}),{x:w,y:E}=cE(b,i,y),A=i,I={},j=0;for(let D=0;D<g.length;D++){const{name:R,fn:q}=g[D],{x:Y,y:re,data:G,reset:te}=await q({x:w,y:E,initialPlacement:i,placement:A,strategy:l,middlewareData:I,rects:b,platform:h,elements:{reference:t,floating:n}});w=Y??w,E=re??E,I={...I,[R]:{...I[R],...G}},te&&j<=50&&(j++,typeof te=="object"&&(te.placement&&(A=te.placement),te.rects&&(b=te.rects===!0?await h.getElementRects({reference:t,floating:n,strategy:l}):te.rects),{x:w,y:E}=cE(b,A,y)),D=-1)}return{x:w,y:E,placement:A,strategy:l,middlewareData:I}};async function uh(t,n){var r;n===void 0&&(n={});const{x:i,y:l,platform:f,rects:h,elements:g,strategy:y}=t,{boundary:b="clippingAncestors",rootBoundary:w="viewport",elementContext:E="floating",altBoundary:A=!1,padding:I=0}=Oo(n,t),j=uE(I),R=g[A?E==="floating"?"reference":"floating":E],q=wg(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(R)))==null||r?R:R.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(g.floating)),boundary:b,rootBoundary:w,strategy:y})),Y=E==="floating"?{x:i,y:l,width:h.floating.width,height:h.floating.height}:h.reference,re=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g.floating)),G=await(f.isElement==null?void 0:f.isElement(re))?await(f.getScale==null?void 0:f.getScale(re))||{x:1,y:1}:{x:1,y:1},te=wg(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:Y,offsetParent:re,strategy:y}):Y);return{top:(q.top-te.top+j.top)/G.y,bottom:(te.bottom-q.bottom+j.bottom)/G.y,left:(q.left-te.left+j.left)/G.x,right:(te.right-q.right+j.right)/G.x}}const bk=t=>({name:"arrow",options:t,async fn(n){const{x:r,y:i,placement:l,rects:f,platform:h,elements:g,middlewareData:y}=n,{element:b,padding:w=0}=Oo(t,n)||{};if(b==null)return{};const E=uE(w),A={x:r,y:i},I=sb(l),j=ob(I),D=await h.getDimensions(b),R=I==="y",q=R?"top":"left",Y=R?"bottom":"right",re=R?"clientHeight":"clientWidth",G=f.reference[j]+f.reference[I]-A[I]-f.floating[j],te=A[I]-f.reference[I],ye=await(h.getOffsetParent==null?void 0:h.getOffsetParent(b));let ce=ye?ye[re]:0;(!ce||!await(h.isElement==null?void 0:h.isElement(ye)))&&(ce=g.floating[re]||f.floating[j]);const X=G/2-te/2,ve=ce/2-D[j]/2-1,Ee=Ds(E[q],ve),Re=Ds(E[Y],ve),be=Ee,le=ce-D[j]-Re,se=ce/2-D[j]/2+X,de=rb(be,se,le),Q=!y.arrow&&Lc(l)!=null&&se!==de&&f.reference[j]/2-(se<be?Ee:Re)-D[j]/2<0,U=Q?se<be?se-be:se-le:0;return{[I]:A[I]+U,data:{[I]:de,centerOffset:se-de-U,...Q&&{alignmentOffset:U}},reset:Q}}}),xk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,i;const{placement:l,middlewareData:f,rects:h,initialPlacement:g,platform:y,elements:b}=n,{mainAxis:w=!0,crossAxis:E=!0,fallbackPlacements:A,fallbackStrategy:I="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:D=!0,...R}=Oo(t,n);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const q=Ro(l),Y=Ui(g),re=Ro(g)===g,G=await(y.isRTL==null?void 0:y.isRTL(b.floating)),te=A||(re||!D?[xg(g)]:dk(g)),ye=j!=="none";!A&&ye&&te.push(...gk(g,D,j,G));const ce=[g,...te],X=await uh(n,R),ve=[];let Ee=((i=f.flip)==null?void 0:i.overflows)||[];if(w&&ve.push(X[q]),E){const se=fk(l,h,G);ve.push(X[se[0]],X[se[1]])}if(Ee=[...Ee,{placement:l,overflows:ve}],!ve.every(se=>se<=0)){var Re,be;const se=(((Re=f.flip)==null?void 0:Re.index)||0)+1,de=ce[se];if(de&&(!(E==="alignment"?Y!==Ui(de):!1)||Ee.every(z=>Ui(z.placement)===Y?z.overflows[0]>0:!0)))return{data:{index:se,overflows:Ee},reset:{placement:de}};let Q=(be=Ee.filter(U=>U.overflows[0]<=0).sort((U,z)=>U.overflows[1]-z.overflows[1])[0])==null?void 0:be.placement;if(!Q)switch(I){case"bestFit":{var le;const U=(le=Ee.filter(z=>{if(ye){const xe=Ui(z.placement);return xe===Y||xe==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(xe=>xe>0).reduce((xe,Oe)=>xe+Oe,0)]).sort((z,xe)=>z[1]-xe[1])[0])==null?void 0:le[0];U&&(Q=U);break}case"initialPlacement":Q=g;break}if(l!==Q)return{reset:{placement:Q}}}return{}}}};function fE(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function dE(t){return sk.some(n=>t[n]>=0)}const wk=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...l}=Oo(t,n);switch(i){case"referenceHidden":{const f=await uh(n,{...l,elementContext:"reference"}),h=fE(f,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:dE(h)}}}case"escaped":{const f=await uh(n,{...l,altBoundary:!0}),h=fE(f,r.floating);return{data:{escapedOffsets:h,escaped:dE(h)}}}default:return{}}}}},hE=new Set(["left","top"]);async function _k(t,n){const{placement:r,platform:i,elements:l}=t,f=await(i.isRTL==null?void 0:i.isRTL(l.floating)),h=Ro(r),g=Lc(r),y=Ui(r)==="y",b=hE.has(h)?-1:1,w=f&&y?-1:1,E=Oo(n,t);let{mainAxis:A,crossAxis:I,alignmentAxis:j}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return g&&typeof j=="number"&&(I=g==="end"?j*-1:j),y?{x:I*w,y:A*b}:{x:A*b,y:I*w}}const Sk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var r,i;const{x:l,y:f,placement:h,middlewareData:g}=n,y=await _k(n,t);return h===((r=g.offset)==null?void 0:r.placement)&&(i=g.arrow)!=null&&i.alignmentOffset?{}:{x:l+y.x,y:f+y.y,data:{...y,placement:h}}}}},Ck=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:i,placement:l}=n,{mainAxis:f=!0,crossAxis:h=!1,limiter:g={fn:R=>{let{x:q,y:Y}=R;return{x:q,y:Y}}},...y}=Oo(t,n),b={x:r,y:i},w=await uh(n,y),E=Ui(Ro(l)),A=ib(E);let I=b[A],j=b[E];if(f){const R=A==="y"?"top":"left",q=A==="y"?"bottom":"right",Y=I+w[R],re=I-w[q];I=rb(Y,I,re)}if(h){const R=E==="y"?"top":"left",q=E==="y"?"bottom":"right",Y=j+w[R],re=j-w[q];j=rb(Y,j,re)}const D=g.fn({...n,[A]:I,[E]:j});return{...D,data:{x:D.x-r,y:D.y-i,enabled:{[A]:f,[E]:h}}}}}},Ek=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:i,placement:l,rects:f,middlewareData:h}=n,{offset:g=0,mainAxis:y=!0,crossAxis:b=!0}=Oo(t,n),w={x:r,y:i},E=Ui(l),A=ib(E);let I=w[A],j=w[E];const D=Oo(g,n),R=typeof D=="number"?{mainAxis:D,crossAxis:0}:{mainAxis:0,crossAxis:0,...D};if(y){const re=A==="y"?"height":"width",G=f.reference[A]-f.floating[re]+R.mainAxis,te=f.reference[A]+f.reference[re]-R.mainAxis;I<G?I=G:I>te&&(I=te)}if(b){var q,Y;const re=A==="y"?"width":"height",G=hE.has(Ro(l)),te=f.reference[E]-f.floating[re]+(G&&((q=h.offset)==null?void 0:q[E])||0)+(G?0:R.crossAxis),ye=f.reference[E]+f.reference[re]+(G?0:((Y=h.offset)==null?void 0:Y[E])||0)-(G?R.crossAxis:0);j<te?j=te:j>ye&&(j=ye)}return{[A]:I,[E]:j}}}},Ak=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r,i;const{placement:l,rects:f,platform:h,elements:g}=n,{apply:y=()=>{},...b}=Oo(t,n),w=await uh(n,b),E=Ro(l),A=Lc(l),I=Ui(l)==="y",{width:j,height:D}=f.floating;let R,q;E==="top"||E==="bottom"?(R=E,q=A===(await(h.isRTL==null?void 0:h.isRTL(g.floating))?"start":"end")?"left":"right"):(q=E,R=A==="end"?"top":"bottom");const Y=D-w.top-w.bottom,re=j-w.left-w.right,G=Ds(D-w[R],Y),te=Ds(j-w[q],re),ye=!n.middlewareData.shift;let ce=G,X=te;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(X=re),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(ce=Y),ye&&!A){const Ee=cr(w.left,0),Re=cr(w.right,0),be=cr(w.top,0),le=cr(w.bottom,0);I?X=j-2*(Ee!==0||Re!==0?Ee+Re:cr(w.left,w.right)):ce=D-2*(be!==0||le!==0?be+le:cr(w.top,w.bottom))}await y({...n,availableWidth:X,availableHeight:ce});const ve=await h.getDimensions(g.floating);return j!==ve.width||D!==ve.height?{reset:{rects:!0}}:{}}}};function _g(){return typeof window<"u"}function zc(t){return pE(t)?(t.nodeName||"").toLowerCase():"#document"}function fr(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Hi(t){var n;return(n=(pE(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function pE(t){return _g()?t instanceof Node||t instanceof fr(t).Node:!1}function ti(t){return _g()?t instanceof Element||t instanceof fr(t).Element:!1}function Bi(t){return _g()?t instanceof HTMLElement||t instanceof fr(t).HTMLElement:!1}function mE(t){return!_g()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof fr(t).ShadowRoot}const Tk=new Set(["inline","contents"]);function ch(t){const{overflow:n,overflowX:r,overflowY:i,display:l}=ni(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!Tk.has(l)}const Ok=new Set(["table","td","th"]);function Rk(t){return Ok.has(zc(t))}const Mk=[":popover-open",":modal"];function Sg(t){return Mk.some(n=>{try{return t.matches(n)}catch{return!1}})}const Dk=["transform","translate","scale","rotate","perspective"],kk=["transform","translate","scale","rotate","perspective","filter"],Nk=["paint","layout","strict","content"];function ub(t){const n=cb(),r=ti(t)?ni(t):t;return Dk.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||kk.some(i=>(r.willChange||"").includes(i))||Nk.some(i=>(r.contain||"").includes(i))}function Ik(t){let n=ks(t);for(;Bi(n)&&!jc(n);){if(ub(n))return n;if(Sg(n))return null;n=ks(n)}return null}function cb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Lk=new Set(["html","body","#document"]);function jc(t){return Lk.has(zc(t))}function ni(t){return fr(t).getComputedStyle(t)}function Cg(t){return ti(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ks(t){if(zc(t)==="html")return t;const n=t.assignedSlot||t.parentNode||mE(t)&&t.host||Hi(t);return mE(n)?n.host:n}function gE(t){const n=ks(t);return jc(n)?t.ownerDocument?t.ownerDocument.body:t.body:Bi(n)&&ch(n)?n:gE(n)}function fh(t,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const l=gE(t),f=l===((i=t.ownerDocument)==null?void 0:i.body),h=fr(l);if(f){const g=fb(h);return n.concat(h,h.visualViewport||[],ch(l)?l:[],g&&r?fh(g):[])}return n.concat(l,fh(l,[],r))}function fb(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yE(t){const n=ni(t);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const l=Bi(t),f=l?t.offsetWidth:r,h=l?t.offsetHeight:i,g=vg(r)!==f||vg(i)!==h;return g&&(r=f,i=h),{width:r,height:i,$:g}}function db(t){return ti(t)?t:t.contextElement}function Pc(t){const n=db(t);if(!Bi(n))return Pi(1);const r=n.getBoundingClientRect(),{width:i,height:l,$:f}=yE(n);let h=(f?vg(r.width):r.width)/i,g=(f?vg(r.height):r.height)/l;return(!h||!Number.isFinite(h))&&(h=1),(!g||!Number.isFinite(g))&&(g=1),{x:h,y:g}}const zk=Pi(0);function vE(t){const n=fr(t);return!cb()||!n.visualViewport?zk:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function jk(t,n,r){return n===void 0&&(n=!1),!r||n&&r!==fr(t)?!1:n}function Fl(t,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const l=t.getBoundingClientRect(),f=db(t);let h=Pi(1);n&&(i?ti(i)&&(h=Pc(i)):h=Pc(t));const g=jk(f,r,i)?vE(f):Pi(0);let y=(l.left+g.x)/h.x,b=(l.top+g.y)/h.y,w=l.width/h.x,E=l.height/h.y;if(f){const A=fr(f),I=i&&ti(i)?fr(i):i;let j=A,D=fb(j);for(;D&&i&&I!==j;){const R=Pc(D),q=D.getBoundingClientRect(),Y=ni(D),re=q.left+(D.clientLeft+parseFloat(Y.paddingLeft))*R.x,G=q.top+(D.clientTop+parseFloat(Y.paddingTop))*R.y;y*=R.x,b*=R.y,w*=R.x,E*=R.y,y+=re,b+=G,j=fr(D),D=fb(j)}}return wg({width:w,height:E,x:y,y:b})}function Eg(t,n){const r=Cg(t).scrollLeft;return n?n.left+r:Fl(Hi(t)).left+r}function bE(t,n){const r=t.getBoundingClientRect(),i=r.left+n.scrollLeft-Eg(t,r),l=r.top+n.scrollTop;return{x:i,y:l}}function Pk(t){let{elements:n,rect:r,offsetParent:i,strategy:l}=t;const f=l==="fixed",h=Hi(i),g=n?Sg(n.floating):!1;if(i===h||g&&f)return r;let y={scrollLeft:0,scrollTop:0},b=Pi(1);const w=Pi(0),E=Bi(i);if((E||!E&&!f)&&((zc(i)!=="body"||ch(h))&&(y=Cg(i)),Bi(i))){const I=Fl(i);b=Pc(i),w.x=I.x+i.clientLeft,w.y=I.y+i.clientTop}const A=h&&!E&&!f?bE(h,y):Pi(0);return{width:r.width*b.x,height:r.height*b.y,x:r.x*b.x-y.scrollLeft*b.x+w.x+A.x,y:r.y*b.y-y.scrollTop*b.y+w.y+A.y}}function Uk(t){return Array.from(t.getClientRects())}function Hk(t){const n=Hi(t),r=Cg(t),i=t.ownerDocument.body,l=cr(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),f=cr(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Eg(t);const g=-r.scrollTop;return ni(i).direction==="rtl"&&(h+=cr(n.clientWidth,i.clientWidth)-l),{width:l,height:f,x:h,y:g}}const xE=25;function Bk(t,n){const r=fr(t),i=Hi(t),l=r.visualViewport;let f=i.clientWidth,h=i.clientHeight,g=0,y=0;if(l){f=l.width,h=l.height;const w=cb();(!w||w&&n==="fixed")&&(g=l.offsetLeft,y=l.offsetTop)}const b=Eg(i);if(b<=0){const w=i.ownerDocument,E=w.body,A=getComputedStyle(E),I=w.compatMode==="CSS1Compat"&&parseFloat(A.marginLeft)+parseFloat(A.marginRight)||0,j=Math.abs(i.clientWidth-E.clientWidth-I);j<=xE&&(f-=j)}else b<=xE&&(f+=b);return{width:f,height:h,x:g,y}}const qk=new Set(["absolute","fixed"]);function Fk(t,n){const r=Fl(t,!0,n==="fixed"),i=r.top+t.clientTop,l=r.left+t.clientLeft,f=Bi(t)?Pc(t):Pi(1),h=t.clientWidth*f.x,g=t.clientHeight*f.y,y=l*f.x,b=i*f.y;return{width:h,height:g,x:y,y:b}}function wE(t,n,r){let i;if(n==="viewport")i=Bk(t,r);else if(n==="document")i=Hk(Hi(t));else if(ti(n))i=Fk(n,r);else{const l=vE(t);i={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return wg(i)}function _E(t,n){const r=ks(t);return r===n||!ti(r)||jc(r)?!1:ni(r).position==="fixed"||_E(r,n)}function Yk(t,n){const r=n.get(t);if(r)return r;let i=fh(t,[],!1).filter(g=>ti(g)&&zc(g)!=="body"),l=null;const f=ni(t).position==="fixed";let h=f?ks(t):t;for(;ti(h)&&!jc(h);){const g=ni(h),y=ub(h);!y&&g.position==="fixed"&&(l=null),(f?!y&&!l:!y&&g.position==="static"&&!!l&&qk.has(l.position)||ch(h)&&!y&&_E(t,h))?i=i.filter(w=>w!==h):l=g,h=ks(h)}return n.set(t,i),i}function Gk(t){let{element:n,boundary:r,rootBoundary:i,strategy:l}=t;const h=[...r==="clippingAncestors"?Sg(n)?[]:Yk(n,this._c):[].concat(r),i],g=h[0],y=h.reduce((b,w)=>{const E=wE(n,w,l);return b.top=cr(E.top,b.top),b.right=Ds(E.right,b.right),b.bottom=Ds(E.bottom,b.bottom),b.left=cr(E.left,b.left),b},wE(n,g,l));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Vk(t){const{width:n,height:r}=yE(t);return{width:n,height:r}}function $k(t,n,r){const i=Bi(n),l=Hi(n),f=r==="fixed",h=Fl(t,!0,f,n);let g={scrollLeft:0,scrollTop:0};const y=Pi(0);function b(){y.x=Eg(l)}if(i||!i&&!f)if((zc(n)!=="body"||ch(l))&&(g=Cg(n)),i){const I=Fl(n,!0,f,n);y.x=I.x+n.clientLeft,y.y=I.y+n.clientTop}else l&&b();f&&!i&&l&&b();const w=l&&!i&&!f?bE(l,g):Pi(0),E=h.left+g.scrollLeft-y.x-w.x,A=h.top+g.scrollTop-y.y-w.y;return{x:E,y:A,width:h.width,height:h.height}}function hb(t){return ni(t).position==="static"}function SE(t,n){if(!Bi(t)||ni(t).position==="fixed")return null;if(n)return n(t);let r=t.offsetParent;return Hi(t)===r&&(r=r.ownerDocument.body),r}function CE(t,n){const r=fr(t);if(Sg(t))return r;if(!Bi(t)){let l=ks(t);for(;l&&!jc(l);){if(ti(l)&&!hb(l))return l;l=ks(l)}return r}let i=SE(t,n);for(;i&&Rk(i)&&hb(i);)i=SE(i,n);return i&&jc(i)&&hb(i)&&!ub(i)?r:i||Ik(t)||r}const Zk=async function(t){const n=this.getOffsetParent||CE,r=this.getDimensions,i=await r(t.floating);return{reference:$k(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Qk(t){return ni(t).direction==="rtl"}const Wk={convertOffsetParentRelativeRectToViewportRelativeRect:Pk,getDocumentElement:Hi,getClippingRect:Gk,getOffsetParent:CE,getElementRects:Zk,getClientRects:Uk,getDimensions:Vk,getScale:Pc,isElement:ti,isRTL:Qk};function EE(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function Xk(t,n){let r=null,i;const l=Hi(t);function f(){var g;clearTimeout(i),(g=r)==null||g.disconnect(),r=null}function h(g,y){g===void 0&&(g=!1),y===void 0&&(y=1),f();const b=t.getBoundingClientRect(),{left:w,top:E,width:A,height:I}=b;if(g||n(),!A||!I)return;const j=bg(E),D=bg(l.clientWidth-(w+A)),R=bg(l.clientHeight-(E+I)),q=bg(w),re={rootMargin:-j+"px "+-D+"px "+-R+"px "+-q+"px",threshold:cr(0,Ds(1,y))||1};let G=!0;function te(ye){const ce=ye[0].intersectionRatio;if(ce!==y){if(!G)return h();ce?h(!1,ce):i=setTimeout(()=>{h(!1,1e-7)},1e3)}ce===1&&!EE(b,t.getBoundingClientRect())&&h(),G=!1}try{r=new IntersectionObserver(te,{...re,root:l.ownerDocument})}catch{r=new IntersectionObserver(te,re)}r.observe(t)}return h(!0),f}function Kk(t,n,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,b=db(t),w=l||f?[...b?fh(b):[],...fh(n)]:[];w.forEach(q=>{l&&q.addEventListener("scroll",r,{passive:!0}),f&&q.addEventListener("resize",r)});const E=b&&g?Xk(b,r):null;let A=-1,I=null;h&&(I=new ResizeObserver(q=>{let[Y]=q;Y&&Y.target===b&&I&&(I.unobserve(n),cancelAnimationFrame(A),A=requestAnimationFrame(()=>{var re;(re=I)==null||re.observe(n)})),r()}),b&&!y&&I.observe(b),I.observe(n));let j,D=y?Fl(t):null;y&&R();function R(){const q=Fl(t);D&&!EE(D,q)&&r(),D=q,j=requestAnimationFrame(R)}return r(),()=>{var q;w.forEach(Y=>{l&&Y.removeEventListener("scroll",r),f&&Y.removeEventListener("resize",r)}),E?.(),(q=I)==null||q.disconnect(),I=null,y&&cancelAnimationFrame(j)}}const Jk=Sk,eN=Ck,tN=xk,nN=Ak,aN=wk,AE=bk,rN=Ek,iN=(t,n,r)=>{const i=new Map,l={platform:Wk,...r},f={...l.platform,_c:i};return vk(t,n,{...l,platform:f})};var oN=typeof document<"u",sN=function(){},Ag=oN?T.useLayoutEffect:sN;function Tg(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let r,i,l;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!Tg(t[i],n[i]))return!1;return!0}if(l=Object.keys(t),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){const f=l[i];if(!(f==="_owner"&&t.$$typeof)&&!Tg(t[f],n[f]))return!1}return!0}return t!==t&&n!==n}function TE(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function OE(t,n){const r=TE(t);return Math.round(n*r)/r}function pb(t){const n=T.useRef(t);return Ag(()=>{n.current=t}),n}function lN(t){t===void 0&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:f,floating:h}={},transform:g=!0,whileElementsMounted:y,open:b}=t,[w,E]=T.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[A,I]=T.useState(i);Tg(A,i)||I(i);const[j,D]=T.useState(null),[R,q]=T.useState(null),Y=T.useCallback(z=>{z!==ye.current&&(ye.current=z,D(z))},[]),re=T.useCallback(z=>{z!==ce.current&&(ce.current=z,q(z))},[]),G=f||j,te=h||R,ye=T.useRef(null),ce=T.useRef(null),X=T.useRef(w),ve=y!=null,Ee=pb(y),Re=pb(l),be=pb(b),le=T.useCallback(()=>{if(!ye.current||!ce.current)return;const z={placement:n,strategy:r,middleware:A};Re.current&&(z.platform=Re.current),iN(ye.current,ce.current,z).then(xe=>{const Oe={...xe,isPositioned:be.current!==!1};se.current&&!Tg(X.current,Oe)&&(X.current=Oe,Nv.flushSync(()=>{E(Oe)}))})},[A,n,r,Re,be]);Ag(()=>{b===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,E(z=>({...z,isPositioned:!1})))},[b]);const se=T.useRef(!1);Ag(()=>(se.current=!0,()=>{se.current=!1}),[]),Ag(()=>{if(G&&(ye.current=G),te&&(ce.current=te),G&&te){if(Ee.current)return Ee.current(G,te,le);le()}},[G,te,le,Ee,ve]);const de=T.useMemo(()=>({reference:ye,floating:ce,setReference:Y,setFloating:re}),[Y,re]),Q=T.useMemo(()=>({reference:G,floating:te}),[G,te]),U=T.useMemo(()=>{const z={position:r,left:0,top:0};if(!Q.floating)return z;const xe=OE(Q.floating,w.x),Oe=OE(Q.floating,w.y);return g?{...z,transform:"translate("+xe+"px, "+Oe+"px)",...TE(Q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:xe,top:Oe}},[r,g,Q.floating,w.x,w.y]);return T.useMemo(()=>({...w,update:le,refs:de,elements:Q,floatingStyles:U}),[w,le,de,Q,U])}const uN=t=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:i,padding:l}=typeof t=="function"?t(r):t;return i&&n(i)?i.current!=null?AE({element:i.current,padding:l}).fn(r):{}:i?AE({element:i,padding:l}).fn(r):{}}}},cN=(t,n)=>({...Jk(t),options:[t,n]}),fN=(t,n)=>({...eN(t),options:[t,n]}),dN=(t,n)=>({...rN(t),options:[t,n]}),hN=(t,n)=>({...tN(t),options:[t,n]}),pN=(t,n)=>({...nN(t),options:[t,n]}),mN=(t,n)=>({...aN(t),options:[t,n]}),gN=(t,n)=>({...uN(t),options:[t,n]});var yN="Arrow",RE=T.forwardRef((t,n)=>{const{children:r,width:i=10,height:l=5,...f}=t;return M.jsx(Ya.svg,{...f,ref:n,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:M.jsx("polygon",{points:"0,0 30,0 15,10"})})});RE.displayName=yN;var vN=RE;function bN(t){const[n,r]=T.useState(void 0);return Os(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const f=l[0];let h,g;if("borderBoxSize"in f){const y=f.borderBoxSize,b=Array.isArray(y)?y[0]:y;h=b.inlineSize,g=b.blockSize}else h=t.offsetWidth,g=t.offsetHeight;r({width:h,height:g})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),n}var mb="Popper",[ME,DE]=kv(mb),[xN,kE]=ME(mb),NE=t=>{const{__scopePopper:n,children:r}=t,[i,l]=T.useState(null);return M.jsx(xN,{scope:n,anchor:i,onAnchorChange:l,children:r})};NE.displayName=mb;var IE="PopperAnchor",LE=T.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:i,...l}=t,f=kE(IE,r),h=T.useRef(null),g=Jr(n,h),y=T.useRef(null);return T.useEffect(()=>{const b=y.current;y.current=i?.current||h.current,b!==y.current&&f.onAnchorChange(y.current)}),i?null:M.jsx(Ya.div,{...l,ref:g})});LE.displayName=IE;var gb="PopperContent",[wN,_N]=ME(gb),zE=T.forwardRef((t,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:f="center",alignOffset:h=0,arrowPadding:g=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:w=0,sticky:E="partial",hideWhenDetached:A=!1,updatePositionStrategy:I="optimized",onPlaced:j,...D}=t,R=kE(gb,r),[q,Y]=T.useState(null),re=Jr(n,_e=>Y(_e)),[G,te]=T.useState(null),ye=bN(G),ce=ye?.width??0,X=ye?.height??0,ve=i+(f!=="center"?"-"+f:""),Ee=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},Re=Array.isArray(b)?b:[b],be=Re.length>0,le={padding:Ee,boundary:Re.filter(CN),altBoundary:be},{refs:se,floatingStyles:de,placement:Q,isPositioned:U,middlewareData:z}=lN({strategy:"fixed",placement:ve,whileElementsMounted:(..._e)=>Kk(..._e,{animationFrame:I==="always"}),elements:{reference:R.anchor},middleware:[cN({mainAxis:l+X,alignmentAxis:h}),y&&fN({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?dN():void 0,...le}),y&&hN({...le}),pN({...le,apply:({elements:_e,rects:Me,availableWidth:We,availableHeight:Ze})=>{const{width:Ke,height:kt}=Me.reference,bn=_e.floating.style;bn.setProperty("--radix-popper-available-width",`${We}px`),bn.setProperty("--radix-popper-available-height",`${Ze}px`),bn.setProperty("--radix-popper-anchor-width",`${Ke}px`),bn.setProperty("--radix-popper-anchor-height",`${kt}px`)}}),G&&gN({element:G,padding:g}),EN({arrowWidth:ce,arrowHeight:X}),A&&mN({strategy:"referenceHidden",...le})]}),[xe,Oe]=UE(Q),Ve=Ac(j);Os(()=>{U&&Ve?.()},[U,Ve]);const k=z.arrow?.x,F=z.arrow?.y,W=z.arrow?.centerOffset!==0,[ue,Te]=T.useState();return Os(()=>{q&&Te(window.getComputedStyle(q).zIndex)},[q]),M.jsx("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:U?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:M.jsx(wN,{scope:r,placedSide:xe,onArrowChange:te,arrowX:k,arrowY:F,shouldHideArrow:W,children:M.jsx(Ya.div,{"data-side":xe,"data-align":Oe,...D,ref:re,style:{...D.style,animation:U?void 0:"none"}})})})});zE.displayName=gb;var jE="PopperArrow",SN={top:"bottom",right:"left",bottom:"top",left:"right"},PE=T.forwardRef(function(n,r){const{__scopePopper:i,...l}=n,f=_N(jE,i),h=SN[f.placedSide];return M.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:M.jsx(vN,{...l,ref:r,style:{...l.style,display:"block"}})})});PE.displayName=jE;function CN(t){return t!==null}var EN=t=>({name:"transformOrigin",options:t,fn(n){const{placement:r,rects:i,middlewareData:l}=n,h=l.arrow?.centerOffset!==0,g=h?0:t.arrowWidth,y=h?0:t.arrowHeight,[b,w]=UE(r),E={start:"0%",center:"50%",end:"100%"}[w],A=(l.arrow?.x??0)+g/2,I=(l.arrow?.y??0)+y/2;let j="",D="";return b==="bottom"?(j=h?E:`${A}px`,D=`${-y}px`):b==="top"?(j=h?E:`${A}px`,D=`${i.floating.height+y}px`):b==="right"?(j=`${-y}px`,D=h?E:`${I}px`):b==="left"&&(j=`${i.floating.width+y}px`,D=h?E:`${I}px`),{data:{x:j,y:D}}}});function UE(t){const[n,r="center"]=t.split("-");return[n,r]}var AN=NE,HE=LE,TN=zE,ON=PE,Og="Popover",[BE]=kv(Og,[DE]),dh=DE(),[RN,Ns]=BE(Og),qE=t=>{const{__scopePopover:n,children:r,open:i,defaultOpen:l,onOpenChange:f,modal:h=!1}=t,g=dh(n),y=T.useRef(null),[b,w]=T.useState(!1),[E,A]=GS({prop:i,defaultProp:l??!1,onChange:f,caller:Og});return M.jsx(AN,{...g,children:M.jsx(RN,{scope:n,contentId:ag(),triggerRef:y,open:E,onOpenChange:A,onOpenToggle:T.useCallback(()=>A(I=>!I),[A]),hasCustomAnchor:b,onCustomAnchorAdd:T.useCallback(()=>w(!0),[]),onCustomAnchorRemove:T.useCallback(()=>w(!1),[]),modal:h,children:r})})};qE.displayName=Og;var FE="PopoverAnchor",MN=T.forwardRef((t,n)=>{const{__scopePopover:r,...i}=t,l=Ns(FE,r),f=dh(r),{onCustomAnchorAdd:h,onCustomAnchorRemove:g}=l;return T.useEffect(()=>(h(),()=>g()),[h,g]),M.jsx(HE,{...f,...i,ref:n})});MN.displayName=FE;var YE="PopoverTrigger",GE=T.forwardRef((t,n)=>{const{__scopePopover:r,...i}=t,l=Ns(YE,r),f=dh(r),h=Jr(n,l.triggerRef),g=M.jsx(Ya.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":WE(l.open),...i,ref:h,onClick:ur(t.onClick,l.onOpenToggle)});return l.hasCustomAnchor?g:M.jsx(HE,{asChild:!0,...f,children:g})});GE.displayName=YE;var yb="PopoverPortal",[DN,kN]=BE(yb,{forceMount:void 0}),VE=t=>{const{__scopePopover:n,forceMount:r,children:i,container:l}=t,f=Ns(yb,n);return M.jsx(DN,{scope:n,forceMount:r,children:M.jsx(Tc,{present:r||f.open,children:M.jsx(Hv,{asChild:!0,container:l,children:i})})})};VE.displayName=yb;var Uc="PopoverContent",$E=T.forwardRef((t,n)=>{const r=kN(Uc,t.__scopePopover),{forceMount:i=r.forceMount,...l}=t,f=Ns(Uc,t.__scopePopover);return M.jsx(Tc,{present:i||f.open,children:f.modal?M.jsx(IN,{...l,ref:n}):M.jsx(LN,{...l,ref:n})})});$E.displayName=Uc;var NN=Iv("PopoverContent.RemoveScroll"),IN=T.forwardRef((t,n)=>{const r=Ns(Uc,t.__scopePopover),i=T.useRef(null),l=Jr(n,i),f=T.useRef(!1);return T.useEffect(()=>{const h=i.current;if(h)return gC(h)},[]),M.jsx(Vv,{as:NN,allowPinchZoom:!0,children:M.jsx(ZE,{...t,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ur(t.onCloseAutoFocus,h=>{h.preventDefault(),f.current||r.triggerRef.current?.focus()}),onPointerDownOutside:ur(t.onPointerDownOutside,h=>{const g=h.detail.originalEvent,y=g.button===0&&g.ctrlKey===!0,b=g.button===2||y;f.current=b},{checkForDefaultPrevented:!1}),onFocusOutside:ur(t.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})})})}),LN=T.forwardRef((t,n)=>{const r=Ns(Uc,t.__scopePopover),i=T.useRef(!1),l=T.useRef(!1);return M.jsx(ZE,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{t.onCloseAutoFocus?.(f),f.defaultPrevented||(i.current||r.triggerRef.current?.focus(),f.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:f=>{t.onInteractOutside?.(f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const h=f.target;r.triggerRef.current?.contains(h)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&l.current&&f.preventDefault()}})}),ZE=T.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:f,disableOutsidePointerEvents:h,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,...E}=t,A=Ns(Uc,r),I=dh(r);return tC(),M.jsx(Uv,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:f,children:M.jsx(zv,{asChild:!0,disableOutsidePointerEvents:h,onInteractOutside:w,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onDismiss:()=>A.onOpenChange(!1),children:M.jsx(TN,{"data-state":WE(A.open),role:"dialog",id:A.contentId,...I,...E,ref:n,style:{...E.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)"}})})})}),QE="PopoverClose",zN=T.forwardRef((t,n)=>{const{__scopePopover:r,...i}=t,l=Ns(QE,r);return M.jsx(Ya.button,{type:"button",...i,ref:n,onClick:ur(t.onClick,()=>l.onOpenChange(!1))})});zN.displayName=QE;var jN="PopoverArrow",PN=T.forwardRef((t,n)=>{const{__scopePopover:r,...i}=t,l=dh(r);return M.jsx(ON,{...l,...i,ref:n})});PN.displayName=jN;function WE(t){return t?"open":"closed"}var UN=qE,HN=GE,BN=VE,XE=$E;const qN=UN,FN=HN,KE=T.forwardRef(({className:t,align:n="center",sideOffset:r=4,portalContainer:i,...l},f)=>M.jsx(BN,{container:i??void 0,children:M.jsx(XE,{ref:f,align:n,sideOffset:r,className:lh("a1-z-[100] a1-rounded-md a1-border a1-bg-popover a1-p-1 md:a1-p-4 a1-text-popover-foreground a1-shadow-md a1-outline-none a1-data-[state=open]:animate-in a1-data-[state=closed]:animate-out a1-data-[state=closed]:fade-out-0 a1-data-[state=open]:fade-in-0 a1-data-[state=closed]:zoom-out-95 a1-data-[state=open]:zoom-in-95 a1-data-[side=bottom]:slide-in-from-top-2 a1-data-[side=left]:slide-in-from-right-2 a1-data-[side=right]:slide-in-from-left-2 a1-data-[side=top]:slide-in-from-bottom-2 a1-origin-[--radix-popover-content-transform-origin]",t),...l})}));KE.displayName=XE.displayName;const vb=768;function YN(){const[t,n]=T.useState(void 0);return T.useEffect(()=>{const r=window.matchMedia(`(max-width: ${vb-1}px)`),i=()=>{n(window.innerWidth<vb)};return r.addEventListener("change",i),n(window.innerWidth<vb),()=>r.removeEventListener("change",i)},[]),!!t}function JE(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,className:"a1-w-6 a1-h-6 a1-stroke-black","aria-hidden":"true",children:M.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z"})})}function GN(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6","aria-hidden":"true",children:M.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}function VN(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6","aria-hidden":"true",children:M.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})}function $N(){return M.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25.75 8.6",width:"35",height:"10","aria-hidden":"true",children:[M.jsx("path",{d:"M2.26,6.38v-3.55c-.66.51-1.11.76-1.34.76-.11,0-.21-.04-.29-.13s-.13-.19-.13-.3c0-.13.04-.23.12-.29s.23-.14.44-.24c.31-.15.57-.3.76-.47s.36-.35.5-.55.24-.33.29-.38.13-.07.25-.07c.14,0,.25.05.33.16s.12.25.12.44v4.47c0,.52-.18.79-.54.79-.16,0-.29-.05-.38-.16s-.14-.26-.14-.47Z"}),M.jsx("path",{d:"M12.13,5.19c0,.35-.09.66-.27.93s-.44.49-.78.65-.75.23-1.22.23c-.56,0-1.03-.11-1.4-.32-.26-.15-.47-.36-.63-.62s-.24-.51-.24-.75c0-.14.05-.26.15-.36s.22-.15.37-.15c.12,0,.23.04.31.12s.16.19.22.35c.07.18.15.33.24.46.08.12.2.22.36.3s.36.12.61.12c.34,0,.62-.08.84-.24s.32-.36.32-.6c0-.19-.06-.34-.17-.46s-.27-.21-.45-.27-.43-.13-.74-.2c-.41-.1-.76-.21-1.03-.34s-.5-.3-.66-.53-.24-.5-.24-.83.09-.6.26-.84.42-.43.75-.56.71-.2,1.15-.2c.35,0,.66.04.91.13s.47.2.64.35.29.3.37.46.12.31.12.46c0,.14-.05.26-.15.37s-.22.17-.37.17c-.13,0-.23-.03-.3-.1s-.14-.18-.22-.33c-.1-.22-.23-.38-.38-.51s-.38-.18-.7-.18c-.3,0-.54.07-.72.2s-.28.29-.28.47c0,.11.03.21.09.3s.15.15.26.21.22.11.33.14.3.08.55.15c.32.08.62.16.88.25s.48.2.67.33.33.29.43.49.15.44.15.73Z"}),M.jsx("path",{d:"M13.3,2.77h.12v-.64c0-.17,0-.31.01-.4s.03-.18.08-.25c.04-.07.1-.13.18-.18s.17-.07.26-.07c.14,0,.26.05.37.15.07.07.12.15.14.25s.03.24.03.42v.73h.39c.15,0,.27.04.35.11s.12.16.12.28c0,.14-.06.24-.17.3s-.28.09-.49.09h-.2v1.96c0,.17,0,.29.02.38s.04.16.09.22.13.08.25.08c.06,0,.15-.01.25-.03s.19-.03.25-.03c.09,0,.16.03.23.1s.1.15.1.26c0,.17-.09.3-.28.39s-.46.14-.81.14c-.33,0-.59-.06-.76-.17s-.28-.27-.34-.46-.08-.46-.08-.79v-2.05h-.14c-.15,0-.27-.04-.35-.11s-.12-.17-.12-.28.04-.2.13-.28.21-.11.37-.11Z"}),M.jsx("path",{d:"M20.26,4.84c0,.32-.05.61-.15.88-.1.27-.24.5-.43.69s-.41.34-.67.44-.55.15-.88.15-.61-.05-.87-.16-.48-.25-.67-.45-.33-.42-.43-.69c-.1-.26-.15-.56-.15-.88s.05-.62.15-.89.24-.5.43-.69.41-.34.67-.44.55-.15.87-.15.62.05.88.16.49.25.68.45.33.42.43.69.15.56.15.88ZM19.19,4.84c0-.44-.1-.77-.29-1.02s-.45-.36-.77-.36c-.21,0-.39.05-.55.16s-.28.27-.37.48-.13.46-.13.74.04.52.13.73.21.37.36.48.34.17.56.17c.32,0,.58-.12.77-.37.19-.24.29-.58.29-1.01Z"}),M.jsx("path",{d:"M22.29,3.27v.13c.2-.25.41-.43.62-.54s.46-.17.73-.17c.33,0,.63.08.91.25s.49.42.65.74.24.71.24,1.16c0,.33-.05.63-.14.9-.09.27-.22.5-.38.69s-.35.33-.57.43-.46.15-.71.15c-.3,0-.56-.06-.77-.18s-.4-.3-.59-.54v1.6c0,.47-.17.7-.51.7-.2,0-.33-.06-.4-.18s-.1-.3-.1-.53V3.28c0-.2.04-.35.13-.46s.21-.15.36-.15.27.05.37.15.14.25.14.44ZM24.38,4.82c0-.28-.04-.52-.13-.72s-.21-.36-.36-.46-.32-.16-.51-.16c-.29,0-.54.12-.74.35s-.3.57-.3,1.02c0,.42.1.75.3.99.2.24.45.35.75.35.18,0,.34-.05.49-.15s.27-.26.36-.46.14-.45.14-.75Z"})]})}function ZN(){return M.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24.89 8.6",width:"35",height:"10","aria-hidden":"true",children:[M.jsx("defs",{children:M.jsx("style",{children:`.cls-1 {
|
|
714
714
|
fill: #0c8542;
|
|
715
|
-
}`})}),R.jsx("path",{className:"cls-1",d:"M1.34,1.19h1.51c.39,0,.73.04,1.01.11s.54.21.77.41c.6.51.89,1.29.89,2.33,0,.34-.03.66-.09.94s-.15.54-.28.77-.29.43-.48.61c-.15.14-.32.25-.5.33s-.38.14-.59.18-.45.05-.71.05h-1.51c-.21,0-.37-.03-.48-.1s-.18-.15-.21-.27-.05-.27-.05-.45V1.9c0-.25.06-.43.17-.54s.29-.17.54-.17ZM1.79,2.1v3.89h.88c.19,0,.34,0,.45-.02s.22-.04.34-.08.22-.1.3-.18c.39-.33.58-.89.58-1.7,0-.56-.09-.99-.26-1.27s-.38-.46-.63-.54-.55-.12-.91-.12h-.77Z"}),R.jsx("path",{className:"cls-1",d:"M7.21,2.18c-.15,0-.28-.05-.38-.14s-.16-.22-.16-.39c0-.15.05-.28.16-.37s.23-.15.38-.15.26.04.37.13.16.22.16.39-.05.29-.16.38-.23.14-.37.14ZM7.74,3.28v3.08c0,.21-.05.38-.15.48s-.23.16-.39.16-.28-.06-.38-.17-.15-.27-.15-.48v-3.05c0-.21.05-.37.15-.48s.22-.16.38-.16.29.05.39.16.15.26.15.45Z"}),R.jsx("path",{className:"cls-1",d:"M10.1,5.47v.89c0,.22-.05.38-.15.49s-.23.16-.39.16-.28-.05-.38-.16-.15-.27-.15-.48v-2.97c0-.48.17-.72.52-.72.18,0,.3.06.38.17s.12.28.13.5c.13-.22.26-.38.39-.5s.31-.17.54-.17.44.06.65.17.32.26.32.45c0,.13-.04.24-.13.32s-.19.13-.29.13c-.04,0-.13-.02-.28-.07s-.28-.07-.4-.07c-.16,0-.28.04-.38.12s-.18.2-.23.37-.09.35-.11.58-.03.49-.03.81Z"}),R.jsx("path",{className:"cls-1",d:"M15.52,5.1h-2.09c0,.24.05.46.15.64s.22.32.38.42.33.14.52.14c.13,0,.24-.02.35-.04s.21-.08.31-.14.19-.13.27-.21.19-.17.32-.3c.05-.05.13-.07.23-.07.11,0,.2.03.27.09s.1.14.1.25c0,.1-.04.21-.11.34s-.19.25-.34.37-.34.22-.57.29-.5.12-.79.12c-.69,0-1.22-.2-1.6-.59s-.57-.92-.57-1.59c0-.31.05-.61.14-.88s.23-.5.41-.69.4-.34.66-.44.55-.15.88-.15c.42,0,.77.09,1.07.26s.52.4.67.68.22.56.22.85c0,.27-.08.44-.23.52s-.37.12-.65.12ZM13.44,4.5h1.93c-.03-.36-.12-.64-.29-.82s-.4-.27-.67-.27-.48.09-.65.28-.27.46-.31.81Z"}),R.jsx("path",{className:"cls-1",d:"M21.32,5.69c0,.13-.04.27-.12.43s-.2.29-.36.43-.37.25-.62.33-.53.12-.84.12c-.66,0-1.17-.19-1.54-.58s-.55-.9-.55-1.54c0-.44.08-.82.25-1.16s.41-.6.73-.78.7-.28,1.15-.28c.28,0,.53.04.76.12s.43.19.59.31.28.26.37.41.13.28.13.4-.05.24-.14.32-.21.13-.35.13c-.09,0-.16-.02-.22-.07s-.12-.12-.2-.22c-.13-.2-.27-.35-.41-.45s-.32-.15-.54-.15c-.31,0-.57.12-.76.37s-.29.58-.29,1.01c0,.2.02.38.07.55s.12.31.21.43.21.21.34.27.28.09.44.09c.21,0,.4-.05.55-.15s.29-.25.4-.45c.06-.12.14-.21.21-.28s.17-.1.28-.1c.13,0,.24.05.32.15s.13.2.13.32Z"}),R.jsx("path",{className:"cls-1",d:"M22.51,2.77h.12v-.64c0-.17,0-.31.01-.4s.03-.18.08-.25c.04-.07.1-.13.18-.18s.17-.07.26-.07c.14,0,.26.05.37.15.07.07.12.15.14.25s.03.24.03.42v.73h.39c.15,0,.27.04.35.11s.12.16.12.28c0,.14-.06.24-.17.3s-.28.09-.49.09h-.2v1.96c0,.17,0,.29.02.38s.04.16.09.22.13.08.25.08c.06,0,.15-.01.25-.03s.19-.03.25-.03c.09,0,.16.03.23.1s.1.15.1.26c0,.17-.09.3-.28.39s-.46.14-.81.14c-.33,0-.59-.06-.76-.17s-.28-.27-.34-.46-.08-.46-.08-.79v-2.05h-.14c-.15,0-.27-.04-.35-.11s-.12-.17-.12-.28.04-.2.13-.28.21-.11.37-.11Z"})]})}function MN({date:e,startDate:t,endDate:r,onChange:i,onHover:l,stops:f,onlyDirects:h,previewDate:m,referenceDates:y,minDate:b}){const x=Lr(new Date),S=b||x,T=t?Ju(e,t):!1,N=t&&r?ev(e,Lr(t))&&Oi(e,r):!1,j=r?Ju(e,r):!1,M=Oi(e,S),D=m&&!T&&!j?Ju(e,m):!1,B=y?.filter(Y=>Ju(Lr(e),Lr(Y.date)))||[];let F=!1;h&&f!==0&&(F=!0,f=null);const re=()=>{const Y=e.toLocaleDateString("en-US",{weekday:"long"}),ne=e.toLocaleDateString("en-US",{month:"long"}),se=e.getDate(),fe=e.getFullYear();let ie=`${Y}, ${ne} ${se}, ${fe}`;if(T?ie+=", selected as start date":j?ie+=", selected as end date":N?ie+=", within selected date range":D&&(ie+=", preview date"),M?ie+=", not available (before minimum date)":F&&(ie+=", not available (no direct flights)"),f===0?ie+=", direct flights available":f===1&&(ie+=", one-stop flights available"),B.length>0){const we=B.map(Ce=>Ce.label).join(", ");ie+=`, reference dates: ${we}`}return ie};return R.jsx("div",{className:Bt({"a1-w-10 a1-h-12 md:a1-w-12 md:a1-h-12 a1-flex a1-flex-col a1-items-center a1-justify-start a1-cursor-pointer":!0,"a1-text-white":T||j,"a1-bg-gray-200":N&&!!t&&!!r,"a1-text-[#565656]":!T&&!j,"a1-ring-2 a1-ring-primary":D,"a1-ring-2 a1-ring-blue-500 a1-ring-opacity-75 a1-bg-blue-50":B.length>0&&!T&&!j,"a1-cursor-not-allowed":M||F,"a1-relative hover:after:a1-z-10 hover:after:a1-left-0 hover:after:a1-right-0 hover:after:a1-absolute hover:after:a1-w-full hover:after:a1-h-full hover:after:a1-rounded-sm hover:after:a1-ring-2 hover:before:a1-ring-primary":!M&&!F,"a1-relative after:a1-absolute after:a1-bg-gray-600 after:a1-top-0 after:a1-bottom-0 after:a1-left-0 after:a1-right-0 after:a1-rounded-sm":T,"before:a1-absolute before:a1-left-1/2 before:a1-right-0 before:a1-top-0 before:a1-bottom-0 before:a1-bg-gray-200":T&&!!r,"a1-rounded-none":N,"a1-relative after:a1-absolute after:a1-bg-gray-600 after:a1-top-0 after:a1-bottom-0 after:a1-left-0 after:a1-right-0 after:a1-rounded-sm before:a1-absolute before:a1-left-0 before:a1-right-1/2 before:a1-top-0 before:a1-bottom-0 before:a1-bg-gray-200":j}),role:"gridcell",tabIndex:!M&&!F?0:-1,"aria-label":re(),"aria-selected":T||j||N,"aria-disabled":M||F,"data-preview":D?"true":void 0,onClick:()=>{!M&&!F&&i(new Date(e))},onMouseOver:()=>{!M&&!F&&l(new Date(e))},onKeyDown:Y=>{(Y.key==="Enter"||Y.key===" ")&&!M&&!F&&(Y.preventDefault(),i(new Date(e)))},children:R.jsxs("span",{className:Bt({"a1-relative a1-z-20 a1-font-semibold a1-leading-[16px] a1-flex a1-flex-col a1-justify-start a1-items-center a1-gap-1 a1-pt-2":!0,"a1-opacity-50":M||F}),children:[R.jsx("span",{children:e.getDate()}),f===0&&R.jsx("div",{className:Bt({"a1-text-[8px] a1-font-light a1-tracking-[.1em]":!0,"a1-text-green-700":!T&&!j}),"aria-label":"Direct flights available",children:R.jsx(DN,{})}),f===1&&R.jsx("div",{className:Bt({"a1-text-[8px] a1-font-extralight":!0,"a1-text-[#838383]":!T&&!j}),"aria-label":"One-stop flights available",children:R.jsx(RN,{})}),B.map((Y,ne)=>R.jsx("div",{className:Bt({"a1-text-[10px] a1-font-light a1-text-blue-700 a1-leading-tight a1-bg-blue-100 a1-px-1 a1-rounded a1-whitespace-nowrap":!0}),"aria-label":`Reference date: ${Y.label}`,children:Y.label},`${Y.label}-${ne}`))]})})}function PA({origin:e,previewDate:t,initialDate:r,startDate:i,endDate:l,oneWay:f,onlyDirects:h,onMonthViewChange:m,onChange:y,flightCalendar:b,referenceDates:x,minDate:S}){const[T,N]=C.useState(Qy(r)),j=_m(T,"MMMM yyyy"),M=Ti(T),[D,B]=C.useState(null);C.useEffect(()=>{f||B(l)},[i,l,f]),C.useEffect(()=>{i&&N(Qy(i))},[i]),C.useEffect(()=>{t&&N(Qy(t))},[t]),C.useEffect(()=>{const Y=Ti(T);m(Y,us(Y,42))},[T,m]);const F=["S","M","T","W","T","F","S"],re=new Array(42).fill(0).map((Y,ne)=>us(M,ne));return R.jsxs("div",{className:"a1-w-max a1-text-[14px]",role:"application","aria-label":"Calendar",children:[R.jsx("div",{className:"a1-px-4 md:a1-py-2 a1-flex a1-gap-4",children:R.jsxs("div",{className:"a1-flex a1-flex-grow a1-justify-between a1-items-center a1-text-gray-700",children:[R.jsx("button",{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>N(lS(T,{months:1})),"aria-label":`Previous month, go to ${_m(lS(T,{months:1}),"MMMM yyyy")}`,"data-testid":"calendar-previous-month-button",children:R.jsx(TN,{})}),R.jsx("div",{className:"a1-text-base a1-font-bold mx-2","aria-live":"polite","aria-label":`Current month: ${j}`,children:j}),R.jsx("button",{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>N(G_(T,{months:1})),"aria-label":`Next month, go to ${_m(G_(T,{months:1}),"MMMM yyyy")}`,"data-testid":"calendar-next-month-button",children:R.jsx(ON,{})})]})}),R.jsx("div",{className:"a1-grid a1-grid-cols-7 a1-border-b",role:"rowgroup","aria-label":"Weekday headers",children:F.map((Y,ne)=>R.jsx("div",{className:"a1-w-10 a1-h-8 a1-flex a1-items-center a1-justify-center a1-text-black a1-font-bold a1-text-[#5b5b5b] md:a1-text-[16px]","aria-hidden":"true",children:Y},`${Y}-${ne}`))}),R.jsx("div",{className:"a1-grid a1-grid-cols-7 a1-grid-rows-6 a1-pt-2 md:a1-pb-2",role:"grid","aria-label":`Calendar for ${j}`,children:re.map(Y=>{const ne=_m(Y,"yyyy-MM-dd"),se=b?.[ne];return R.jsx(MN,{date:Y,startDate:i,endDate:D,previewDate:t,onChange:y,onHover:()=>{},origin:e,onlyDirects:h,stops:se?.stops,flightState:se?.flightsState,referenceDates:x,minDate:S},Y.toISOString())})})]})}function jA({message:e,className:t}){const r=C.useId(),[i,l]=C.useState(!1);return R.jsxs("span",{className:Bt("",t),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[R.jsx(rs,{className:"a1-text-red-500 a1-cursor-pointer","data-testid":"error-icon","aria-describedby":r,tabIndex:0,onClick:()=>l(f=>!f),onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l(h=>!h))},icon:w3}),i&&R.jsx("div",{id:r,role:"tooltip",className:"a1-absolute a1-z-20 a1-top-full a1-left-1/2 a1--translate-x-1/2 a1-mt-2 a1-bg-red-600 a1-text-white a1-text-xs a1-rounded a1-px-2 a1-py-1 a1-whitespace-nowrap",children:e})]})}const UA=e=>{const t=e.match(/\d+/g)??[];if(t.length===0)return null;const r=parseInt(t[0].slice(0,2),10);if(Number.isNaN(r)||r<1||r>12)return null;const i=t[1]?.slice(0,2);let l=Number(i??"1");(Number.isNaN(l)||l<1||l>31)&&(l=1);const f=new Date().getFullYear(),h=t[2];let m=f;if(h){const b=parseInt(h,10);m=h.length<=2?2e3+b:b}const y=new Date(m,r-1,l);return Zy(y)?Lr(y):null},kN=/^\d{2}\/\d{2}\/\d{2}$/,Kv=e=>e.toLocaleDateString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit"}),HA=(e,t="")=>{const r=e.length<t.length,i=e.replace(/\D/g,"").slice(0,8);if(!r&&e.endsWith("/")){const m=e.slice(0,-1).split("/");if(m.length===1){const y=m[0];if(y&&y.length===1)return`0${y}/`}if(m.length===2){const y=m[0],b=m[1];if(b&&b.length===1){const x=(y??"").padStart(2,"0"),S=`0${b}`;return`${x}/${S}/`}}}if(i.length===1&&t===""&&!r&&parseInt(i,10)>=3)return`0${i}/`;if(e.indexOf("/")===1&&i.length>=1){const h=i.slice(0,1).padStart(2,"0"),m=i.slice(1);switch(m.length){case 0:return r?h:`${h}/`;case 1:return`${h}/${m}`;case 2:return r?`${h}/${m}`:`${h}/${m}/`;default:{const y=m.slice(0,2),x=m.slice(2).slice(-2).padStart(2,"0");return`${h}/${y}/${x}`}}}switch(i.length){case 0:return"";case 1:return i;case 2:return r?e:`${i}/`;case 3:{const h=i.slice(0,2),m=i.slice(2);return!r&&t.replace(/\D/g,"").length===2&&/^\d{2}\/$/.test(t)&&parseInt(m,10)>=4?`${h}/0${m}/`:`${h}/${m}`}case 4:{const h=i.slice(0,2),m=i.slice(2,4);return r?`${h}/${m}`:`${h}/${m}/`}default:{const h=i.slice(0,2),m=i.slice(2,4),b=i.slice(4).slice(-2);return`${h}/${m}/${b}`}}},BA=e=>{const t=e.trim();if(t==="")return"";const r=(t.match(/\d+/g)??[]).slice(0,3);if(r.length===0)return"";const i=r[0].slice(-2).padStart(2,"0");if(r.length===1)return i;const l=r[1].slice(-2).padStart(2,"0");if(r.length===2)return`${i}/${l}`;const f=r[2].slice(-2).padStart(2,"0");return`${i}/${l}/${f}`},qA=e=>{if(!kN.test(e))return null;const t=$R(e,"MM/dd/yy",new Date);return Zy(t)&&Kv(Lr(t))===e?Lr(t):null};function NN({origin:e,destination:t,onChange:r,onMonthViewChange:i,oneWay:l,className:f,primaryColor:h,secondaryColor:m,startDateLabel:y="Start Date",endDateLabel:b="End Date",flightCalendar:x,flightCalendarStatus:S,onlyDirects:T,initialStartDate:N,initialEndDate:j,referenceDates:M,minDate:D,showButtons:B=!0}){const F=C.useRef(null),[re,Y]=C.useState(null);C.useLayoutEffect(()=>{if(!F.current)return;const Ve=F.current.getRootNode();if(!(Ve instanceof ShadowRoot))return;const Ue=document.createElement("div");return Ve.appendChild(Ue),Y(Ue),()=>{Ue.parentNode&&Ue.parentNode.removeChild(Ue)}},[]);const[ne,se]=C.useState(""),[fe,ie]=C.useState(""),[we,Ce]=C.useState(null),[De,_e]=C.useState(null),[le,ue]=C.useState(N||null),[he,Q]=C.useState(j||null),[U,z]=C.useState(!1),[ve,Oe]=C.useState(N||null),[P,$]=C.useState(!1),[ee,K]=C.useState(!1),me=C.useRef(N||new Date),Re=C.useRef(r);C.useEffect(()=>{Re.current=r},[r]),C.useEffect(()=>{l&&(Q(null),ie(""),_e(null))},[l]),C.useEffect(()=>{!le&&N&&ue(N),!he&&j&&Q(j)},[N,j,le,he]);const be=Lr(new Date),Be=$y(be,6),qe=Ve=>{se(Ve);const Ue=qA(Ve);if(Ve===""||!Ve){Ce(null),ue(null);return}if(!Ue){Ce("Enter a date in MM/DD/YY format"),ue(null);return}if(Oi(Ue,be)){Ce("Date cannot be in the past"),ue(null);return}if(ev(Ue,Be)){Ce("Date must be within 6 months"),ue(null);return}if(D&&Oi(Ue,D)){Ce("Date must be no earlier than "+D.toLocaleDateString()),ue(null);return}Ce(null),ue(Ue),Oe(Ue),he&&Oi(he,Ue)&&(Q(null),ie(""))},ft=Ve=>{if(l)return;ie(Ve);const Ue=qA(Ve);if(Ve===""||!Ve){_e(null),Q(null);return}if(!Ue){_e("Enter a date in MM/DD/YY format"),Q(null);return}if(Oi(Ue,be)){_e("Date cannot be in the past"),Q(null);return}if(ev(Ue,Be)){_e("Date must be within 6 months"),Q(null);return}if(!le){_e("Enter departure date first"),Q(null);return}if(Oi(Ue,le)){_e("Return date must be after departure"),Q(null);return}if(D&&Oi(Ue,D)){_e("Date must be no earlier than "+D.toLocaleDateString()),Q(null);return}_e(null),Q(Ue),Oe(Ue)},at=()=>qe(ne),Dt=()=>ft(fe),bn=Ve=>{const Ue=Ve.getTime()<(le?.getTime()||0);le?!he&&Ue?ue(Ve):he?le&&he&&(Ju(Ve,le)&&Ju(Ve,he)?(ue(Ve),Q(null)):Oi(Ve,he)&&Oi(Ve,us(le,3))?ue(Ve):Q(Ve)):l?ue(Ve):Q(Ve):ue(Ve)},Yt=()=>{ue(null),Q(null),se(""),ie(""),Ce(null),_e(null),Oe(null),Re.current(null,null)};C.useEffect(()=>{Re.current(le,he)},[le,he]),C.useEffect(()=>{le?(se(Kv(le)),Ce(null)):we||se("")},[le]),C.useEffect(()=>{he?(ie(Kv(he)),_e(null)):De||ie("")},[he]);const sa="a1-absolute a1-left-2 a1-right-2 a1-top-1/2 @2xl:a1-top-2 @2xl:a1-bottom-2 @2xl:a1-left-1/2 a1-rounded-lg a1-h-[2px] @2xl:a1-h-[initial] @2xl:a1-w-[2px] a1-bg-gray-200",Fn={};h&&(Fn["--color-primary"]=h),m&&(Fn["--color-secondary"]=m);const On=xD(),dn=C.useId(),br=R.jsxs("div",{role:"button",tabIndex:0,"aria-haspopup":On?"dialog":"grid","aria-expanded":U,"aria-label":`${l?"Departure date":"Date range"} picker`,"aria-describedby":"date-picker-instructions",className:Bt("a1-relative a1-h-full a1-flex a1-flex-col a1-gap-4 a1-px-3 a1-py-2 a1-rounded-lg a1-bg-white a1-cursor-pointer","@2xl:a1-flex-row @2xl:a1-items-center",{"a1-border-2 a1-border-primary":U,"a1-border-2 a1-border-gray-200":!U}),children:[R.jsxs("fieldset",{className:"a1-border-0 a1-p-0 a1-m-0",children:[R.jsx("legend",{className:"a1-sr-only",children:"Date range selection"}),R.jsxs("div",{className:"a1-flex a1-grow a1-items-center",children:[R.jsx("span",{children:R.jsx(zA,{})}),R.jsxs("div",{className:"a1-relative a1-flex-grow",children:[R.jsx("input",{type:"text",name:"start-date",value:ne,"aria-label":y,"aria-invalid":we?"true":void 0,placeholder:P?"mm/dd/yy":y,autoComplete:"off",className:Bt("a1-ml-2 a1-all-initial focus:a1-outline-none disabled:a1-bg-white a1-text-black a1-text-base a1-w-full a1-pr-4",{"a1-text-red-500 ":!!we}),onChange:Ve=>{const Ue=HA(Ve.target.value,ne);se(Ue),Ce(null),Oe(UA(Ue)),Re.current(null,he)},onFocus:()=>$(!0),onBlur:Ve=>{const Ue=BA(Ve.target.value);se(Ue),qe(Ue),$(!1)},onKeyDown:Ve=>{Ve.key==="Enter"&&(Ve.preventDefault(),at(),Ve.target.blur())}}),we&&R.jsx("span",{className:"a1-absolute a1-right-2 a1-top-1/2 a1--translate-y-1/2",children:R.jsx(jA,{message:we})})]})]})]}),!l&&R.jsxs(R.Fragment,{children:[R.jsx("div",{className:sa}),R.jsxs("fieldset",{className:"a1-border-0 a1-p-0 a1-m-0",children:[R.jsx("legend",{className:"a1-sr-only",children:"Return date selection"}),R.jsxs("div",{className:"a1-flex a1-grow a1-items-center",children:[R.jsx("span",{className:"@2xl:a1-hidden",children:R.jsx(zA,{})}),R.jsxs("div",{className:"a1-relative a1-flex-grow",children:[R.jsx("input",{type:"text",name:"end-date",value:fe,"aria-label":b,"aria-invalid":De?"true":void 0,placeholder:ee?"mm/dd/yy":b,autoComplete:"off",className:Bt("a1-ml-2 focus:a1-outline-none disabled:a1-bg-white a1-text-black a1-text-base a1-w-full a1-pr-7",{"a1-text-red-500":!!De}),onChange:Ve=>{const Ue=HA(Ve.target.value,fe);ie(Ue),_e(null),Oe(UA(Ue)),Re.current(le,null)},onFocus:()=>K(!0),onBlur:Ve=>{const Ue=BA(Ve.target.value);ie(Ue),ft(Ue),K(!1)},onKeyDown:Ve=>{Ve.key==="Enter"&&(Ve.preventDefault(),Dt(),Ve.target.blur())}}),De&&R.jsx("span",{className:"a1-absolute a1-right-2 a1-top-1/2 a1--translate-y-1/2",children:R.jsx(jA,{message:De})})]})]})]})]})]});return R.jsxs("div",{id:"A1-DateRangePicker",ref:F,className:f,style:Fn,role:"group","aria-label":"Date range picker","aria-describedby":`${dn}-description`,children:[On?R.jsxs(UM,{open:U,onOpenChange:z,children:[R.jsx(HM,{asChild:!0,children:br}),R.jsxs(BE,{open:U,onOpenChange:z,"aria-labelledby":dn,"aria-describedby":void 0,children:[R.jsx(Pv,{className:"a1-sr-only",children:"Filter Options"}),R.jsx(PA,{origin:e,destination:t,initialDate:me.current,startDate:le,endDate:he,previewDate:ve,onChange:bn,onMonthViewChange:i,flightCalendar:x,flightCalendarStatus:S,onlyDirects:T,referenceDates:M,minDate:D},me.current.toISOString()),B&&R.jsxs("div",{className:"a1-mt-2 a1-flex a1-justify-between a1-items-center a1-pt-0 a1-pb-2 md:a1-pb-4 a1-px-1",children:[R.jsx("button",{type:"button",className:"a1-bg-slate-400 a1-text-white a1-text-[14px] a1-rounded-lg a1-px-2 a1-py-0.5 a1-ring-slate-500",onClick:Yt,"data-testid":"date-range-picker-reset-button",children:"Reset"}),R.jsx(qM,{asChild:!0,children:R.jsx("button",{type:"button",className:"a1-bg-primary a1-text-primary-foreground a1-text-[14px] a1-rounded-lg a1-px-2 a1-py-0.5 a1-ring-primary","data-testid":"date-range-picker-done-button",children:"Done"})})]})]})]}):R.jsxs(AN,{open:U,onOpenChange:z,children:[R.jsx(CN,{asChild:!0,children:br}),R.jsxs(LA,{side:"bottom",align:"center",sticky:"always",avoidCollisions:!1,sideOffset:4,portalContainer:re,role:"dialog","aria-label":"Calendar for date selection","aria-describedby":"calendar-instructions",className:"a1-p-0 a1-bg-white a1-border a1-border-gray-300 a1-rounded-xl a1-shadow-lg md:a1-mt-2 a1-pb-2",children:[R.jsx("div",{id:"calendar-instructions",className:"a1-sr-only",children:"Use arrow keys to navigate dates. Press Enter or Space to select a date. Press Escape to close the calendar."}),R.jsx(PA,{origin:e,destination:t,initialDate:me.current,startDate:le,endDate:he,previewDate:ve,onChange:bn,onMonthViewChange:i,flightCalendar:x,flightCalendarStatus:S,onlyDirects:T,referenceDates:M,minDate:D},me.current.toISOString()),B&&R.jsxs("div",{className:"a1-flex a1-justify-between a1-items-center a1-pt-0 a1-pb-2 md:a1-pb-4 a1-px-5",children:[R.jsx("button",{type:"button",className:"a1-bg-slate-400 a1-text-white a1-text-[14px] a1-rounded-lg a1-px-2 a1-py-0.5 a1-ring-slate-500",onClick:Yt,"data-testid":"date-range-picker-popover-reset-button",children:"Reset"}),R.jsx("button",{type:"button",className:"a1-bg-primary a1-text-primary-foreground a1-text-[14px] a1-rounded-lg a1-px-2 a1-py-0.5 a1-ring-primary",onClick:()=>z(!1),"data-testid":"date-range-picker-popover-done-button",children:"Done"})]})]})]}),R.jsx("div",{id:"date-picker-instructions",className:"a1-sr-only",children:l?"Select departure date. Use arrow keys to navigate the calendar or type directly in the input field.":"Select departure and return dates. Use arrow keys to navigate the calendar or type directly in the input fields."})]})}function gc(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Zt.apply(null,arguments)}var Jv={exports:{}},Pt={};/**
|
|
715
|
+
}`})}),M.jsx("path",{className:"cls-1",d:"M1.34,1.19h1.51c.39,0,.73.04,1.01.11s.54.21.77.41c.6.51.89,1.29.89,2.33,0,.34-.03.66-.09.94s-.15.54-.28.77-.29.43-.48.61c-.15.14-.32.25-.5.33s-.38.14-.59.18-.45.05-.71.05h-1.51c-.21,0-.37-.03-.48-.1s-.18-.15-.21-.27-.05-.27-.05-.45V1.9c0-.25.06-.43.17-.54s.29-.17.54-.17ZM1.79,2.1v3.89h.88c.19,0,.34,0,.45-.02s.22-.04.34-.08.22-.1.3-.18c.39-.33.58-.89.58-1.7,0-.56-.09-.99-.26-1.27s-.38-.46-.63-.54-.55-.12-.91-.12h-.77Z"}),M.jsx("path",{className:"cls-1",d:"M7.21,2.18c-.15,0-.28-.05-.38-.14s-.16-.22-.16-.39c0-.15.05-.28.16-.37s.23-.15.38-.15.26.04.37.13.16.22.16.39-.05.29-.16.38-.23.14-.37.14ZM7.74,3.28v3.08c0,.21-.05.38-.15.48s-.23.16-.39.16-.28-.06-.38-.17-.15-.27-.15-.48v-3.05c0-.21.05-.37.15-.48s.22-.16.38-.16.29.05.39.16.15.26.15.45Z"}),M.jsx("path",{className:"cls-1",d:"M10.1,5.47v.89c0,.22-.05.38-.15.49s-.23.16-.39.16-.28-.05-.38-.16-.15-.27-.15-.48v-2.97c0-.48.17-.72.52-.72.18,0,.3.06.38.17s.12.28.13.5c.13-.22.26-.38.39-.5s.31-.17.54-.17.44.06.65.17.32.26.32.45c0,.13-.04.24-.13.32s-.19.13-.29.13c-.04,0-.13-.02-.28-.07s-.28-.07-.4-.07c-.16,0-.28.04-.38.12s-.18.2-.23.37-.09.35-.11.58-.03.49-.03.81Z"}),M.jsx("path",{className:"cls-1",d:"M15.52,5.1h-2.09c0,.24.05.46.15.64s.22.32.38.42.33.14.52.14c.13,0,.24-.02.35-.04s.21-.08.31-.14.19-.13.27-.21.19-.17.32-.3c.05-.05.13-.07.23-.07.11,0,.2.03.27.09s.1.14.1.25c0,.1-.04.21-.11.34s-.19.25-.34.37-.34.22-.57.29-.5.12-.79.12c-.69,0-1.22-.2-1.6-.59s-.57-.92-.57-1.59c0-.31.05-.61.14-.88s.23-.5.41-.69.4-.34.66-.44.55-.15.88-.15c.42,0,.77.09,1.07.26s.52.4.67.68.22.56.22.85c0,.27-.08.44-.23.52s-.37.12-.65.12ZM13.44,4.5h1.93c-.03-.36-.12-.64-.29-.82s-.4-.27-.67-.27-.48.09-.65.28-.27.46-.31.81Z"}),M.jsx("path",{className:"cls-1",d:"M21.32,5.69c0,.13-.04.27-.12.43s-.2.29-.36.43-.37.25-.62.33-.53.12-.84.12c-.66,0-1.17-.19-1.54-.58s-.55-.9-.55-1.54c0-.44.08-.82.25-1.16s.41-.6.73-.78.7-.28,1.15-.28c.28,0,.53.04.76.12s.43.19.59.31.28.26.37.41.13.28.13.4-.05.24-.14.32-.21.13-.35.13c-.09,0-.16-.02-.22-.07s-.12-.12-.2-.22c-.13-.2-.27-.35-.41-.45s-.32-.15-.54-.15c-.31,0-.57.12-.76.37s-.29.58-.29,1.01c0,.2.02.38.07.55s.12.31.21.43.21.21.34.27.28.09.44.09c.21,0,.4-.05.55-.15s.29-.25.4-.45c.06-.12.14-.21.21-.28s.17-.1.28-.1c.13,0,.24.05.32.15s.13.2.13.32Z"}),M.jsx("path",{className:"cls-1",d:"M22.51,2.77h.12v-.64c0-.17,0-.31.01-.4s.03-.18.08-.25c.04-.07.1-.13.18-.18s.17-.07.26-.07c.14,0,.26.05.37.15.07.07.12.15.14.25s.03.24.03.42v.73h.39c.15,0,.27.04.35.11s.12.16.12.28c0,.14-.06.24-.17.3s-.28.09-.49.09h-.2v1.96c0,.17,0,.29.02.38s.04.16.09.22.13.08.25.08c.06,0,.15-.01.25-.03s.19-.03.25-.03c.09,0,.16.03.23.1s.1.15.1.26c0,.17-.09.3-.28.39s-.46.14-.81.14c-.33,0-.59-.06-.76-.17s-.28-.27-.34-.46-.08-.46-.08-.79v-2.05h-.14c-.15,0-.27-.04-.35-.11s-.12-.17-.12-.28.04-.2.13-.28.21-.11.37-.11Z"})]})}function QN({date:t,startDate:n,endDate:r,onChange:i,onHover:l,stops:f,onlyDirects:h,previewDate:g,referenceDates:y,minDate:b}){const w=Lr(new Date),E=b||w,A=n?Sc(t,n):!1,I=n&&r?xv(t,Lr(n))&&Ii(t,r):!1,j=r?Sc(t,r):!1,D=Ii(t,E),R=g&&!A&&!j?Sc(t,g):!1,q=y?.filter(G=>Sc(Lr(t),Lr(G.date)))||[];let Y=!1;h&&f!==0&&(Y=!0,f=null);const re=()=>{const G=t.toLocaleDateString("en-US",{weekday:"long"}),te=t.toLocaleDateString("en-US",{month:"long"}),ye=t.getDate(),ce=t.getFullYear();let X=`${G}, ${te} ${ye}, ${ce}`;if(A?X+=", selected as start date":j?X+=", selected as end date":I?X+=", within selected date range":R&&(X+=", preview date"),D?X+=", not available (before minimum date)":Y&&(X+=", not available (no direct flights)"),f===0?X+=", direct flights available":f===1&&(X+=", one-stop flights available"),q.length>0){const ve=q.map(Ee=>Ee.label).join(", ");X+=`, reference dates: ${ve}`}return X};return M.jsx("div",{className:Gt({"a1-w-10 a1-h-12 md:a1-w-12 md:a1-h-12 a1-flex a1-flex-col a1-items-center a1-justify-start a1-cursor-pointer":!0,"a1-text-white":A||j,"a1-bg-gray-200":I&&!!n&&!!r,"a1-text-[#565656]":!A&&!j,"a1-ring-2 a1-ring-primary":R,"a1-ring-2 a1-ring-blue-500 a1-ring-opacity-75 a1-bg-blue-50":q.length>0&&!A&&!j,"a1-cursor-not-allowed":D||Y,"a1-relative hover:after:a1-z-10 hover:after:a1-left-0 hover:after:a1-right-0 hover:after:a1-absolute hover:after:a1-w-full hover:after:a1-h-full hover:after:a1-rounded-sm hover:after:a1-ring-2 hover:before:a1-ring-primary":!D&&!Y,"a1-relative after:a1-absolute after:a1-bg-gray-600 after:a1-top-0 after:a1-bottom-0 after:a1-left-0 after:a1-right-0 after:a1-rounded-sm":A,"before:a1-absolute before:a1-left-1/2 before:a1-right-0 before:a1-top-0 before:a1-bottom-0 before:a1-bg-gray-200":A&&!!r,"a1-rounded-none":I,"a1-relative after:a1-absolute after:a1-bg-gray-600 after:a1-top-0 after:a1-bottom-0 after:a1-left-0 after:a1-right-0 after:a1-rounded-sm before:a1-absolute before:a1-left-0 before:a1-right-1/2 before:a1-top-0 before:a1-bottom-0 before:a1-bg-gray-200":j}),role:"gridcell",tabIndex:!D&&!Y?0:-1,"aria-label":re(),"aria-selected":A||j||I,"aria-disabled":D||Y,"data-preview":R?"true":void 0,onClick:()=>{!D&&!Y&&i(new Date(t))},onMouseOver:()=>{!D&&!Y&&l(new Date(t))},onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&!D&&!Y&&(G.preventDefault(),i(new Date(t)))},children:M.jsxs("span",{className:Gt({"a1-relative a1-z-20 a1-font-semibold a1-leading-[16px] a1-flex a1-flex-col a1-justify-start a1-items-center a1-gap-1 a1-pt-2":!0,"a1-opacity-50":D||Y}),children:[M.jsx("span",{children:t.getDate()}),f===0&&M.jsx("div",{className:Gt({"a1-text-[8px] a1-font-light a1-tracking-[.1em]":!0,"a1-text-green-700":!A&&!j}),"aria-label":"Direct flights available",children:M.jsx(ZN,{})}),f===1&&M.jsx("div",{className:Gt({"a1-text-[8px] a1-font-extralight":!0,"a1-text-[#838383]":!A&&!j}),"aria-label":"One-stop flights available",children:M.jsx($N,{})}),q.map((G,te)=>M.jsx("div",{className:Gt({"a1-text-[10px] a1-font-light a1-text-blue-700 a1-leading-tight a1-bg-blue-100 a1-px-1 a1-rounded a1-whitespace-nowrap":!0}),"aria-label":`Reference date: ${G.label}`,children:G.label},`${G.label}-${te}`))]})})}function eA({origin:t,previewDate:n,initialDate:r,startDate:i,endDate:l,oneWay:f,onlyDirects:h,onMonthViewChange:g,onChange:y,flightCalendar:b,referenceDates:w,minDate:E}){const[A,I]=T.useState(mv(r)),j=$m(A,"MMMM yyyy"),D=Ni(A),[R,q]=T.useState(null);T.useEffect(()=>{f||q(l)},[i,l,f]),T.useEffect(()=>{i&&I(mv(i))},[i]),T.useEffect(()=>{n&&I(mv(n))},[n]),T.useEffect(()=>{const G=Ni(A);g(G,As(G,42))},[A,g]);const Y=["S","M","T","W","T","F","S"],re=new Array(42).fill(0).map((G,te)=>As(D,te));return M.jsxs("div",{className:"a1-w-max a1-text-[14px]",role:"application","aria-label":"Calendar",children:[M.jsx("div",{className:"a1-px-4 md:a1-py-2 a1-flex a1-gap-4",children:M.jsxs("div",{className:"a1-flex a1-flex-grow a1-justify-between a1-items-center a1-text-gray-700",children:[M.jsx("button",{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>I(ES(A,{months:1})),"aria-label":`Previous month, go to ${$m(ES(A,{months:1}),"MMMM yyyy")}`,"data-testid":"calendar-previous-month-button",children:M.jsx(GN,{})}),M.jsx("div",{className:"a1-text-base a1-font-bold mx-2","aria-live":"polite","aria-label":`Current month: ${j}`,children:j}),M.jsx("button",{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>I(lS(A,{months:1})),"aria-label":`Next month, go to ${$m(lS(A,{months:1}),"MMMM yyyy")}`,"data-testid":"calendar-next-month-button",children:M.jsx(VN,{})})]})}),M.jsx("div",{className:"a1-grid a1-grid-cols-7 a1-border-b",role:"rowgroup","aria-label":"Weekday headers",children:Y.map((G,te)=>M.jsx("div",{className:"a1-w-10 a1-h-8 a1-flex a1-items-center a1-justify-center a1-text-black a1-font-bold a1-text-[#5b5b5b] md:a1-text-[16px]","aria-hidden":"true",children:G},`${G}-${te}`))}),M.jsx("div",{className:"a1-grid a1-grid-cols-7 a1-grid-rows-6 a1-pt-2 md:a1-pb-2",role:"grid","aria-label":`Calendar for ${j}`,children:re.map(G=>{const te=$m(G,"yyyy-MM-dd"),ye=b?.[te];return M.jsx(QN,{date:G,startDate:i,endDate:R,previewDate:n,onChange:y,onHover:()=>{},origin:t,onlyDirects:h,stops:ye?.stops,flightState:ye?.flightsState,referenceDates:w,minDate:E},G.toISOString())})})]})}function tA({message:t,className:n}){const r=T.useId(),[i,l]=T.useState(!1);return M.jsxs("span",{className:Gt("",n),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[M.jsx(ws,{className:"a1-text-red-500 a1-cursor-pointer","data-testid":"error-icon","aria-describedby":r,tabIndex:0,onClick:()=>l(f=>!f),onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l(h=>!h))},icon:H5}),i&&M.jsx("div",{id:r,role:"tooltip",className:"a1-absolute a1-z-20 a1-top-full a1-left-1/2 a1--translate-x-1/2 a1-mt-2 a1-bg-red-600 a1-text-white a1-text-xs a1-rounded a1-px-2 a1-py-1 a1-whitespace-nowrap",children:t})]})}const nA=t=>{const n=t.match(/\d+/g)??[];if(n.length===0)return null;const r=parseInt(n[0].slice(0,2),10);if(Number.isNaN(r)||r<1||r>12)return null;const i=n[1]?.slice(0,2);let l=Number(i??"1");(Number.isNaN(l)||l<1||l>31)&&(l=1);const f=new Date().getFullYear(),h=n[2];let g=f;if(h){const b=parseInt(h,10);g=h.length<=2?2e3+b:b}const y=new Date(g,r-1,l);return pv(y)?Lr(y):null},WN=/^\d{2}\/\d{2}\/\d{2}$/,bb=t=>t.toLocaleDateString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit"}),aA=(t,n="")=>{const r=t.length<n.length,i=t.replace(/\D/g,"").slice(0,8);if(!r&&t.endsWith("/")){const g=t.slice(0,-1).split("/");if(g.length===1){const y=g[0];if(y&&y.length===1)return`0${y}/`}if(g.length===2){const y=g[0],b=g[1];if(b&&b.length===1){const w=(y??"").padStart(2,"0"),E=`0${b}`;return`${w}/${E}/`}}}if(i.length===1&&n===""&&!r&&parseInt(i,10)>=3)return`0${i}/`;if(t.indexOf("/")===1&&i.length>=1){const h=i.slice(0,1).padStart(2,"0"),g=i.slice(1);switch(g.length){case 0:return r?h:`${h}/`;case 1:return`${h}/${g}`;case 2:return r?`${h}/${g}`:`${h}/${g}/`;default:{const y=g.slice(0,2),w=g.slice(2).slice(-2).padStart(2,"0");return`${h}/${y}/${w}`}}}switch(i.length){case 0:return"";case 1:return i;case 2:return r?t:`${i}/`;case 3:{const h=i.slice(0,2),g=i.slice(2);return!r&&n.replace(/\D/g,"").length===2&&/^\d{2}\/$/.test(n)&&parseInt(g,10)>=4?`${h}/0${g}/`:`${h}/${g}`}case 4:{const h=i.slice(0,2),g=i.slice(2,4);return r?`${h}/${g}`:`${h}/${g}/`}default:{const h=i.slice(0,2),g=i.slice(2,4),b=i.slice(4).slice(-2);return`${h}/${g}/${b}`}}},rA=t=>{const n=t.trim();if(n==="")return"";const r=(n.match(/\d+/g)??[]).slice(0,3);if(r.length===0)return"";const i=r[0].slice(-2).padStart(2,"0");if(r.length===1)return i;const l=r[1].slice(-2).padStart(2,"0");if(r.length===2)return`${i}/${l}`;const f=r[2].slice(-2).padStart(2,"0");return`${i}/${l}/${f}`},iA=t=>{if(!WN.test(t))return null;const n=d2(t,"MM/dd/yy",new Date);return pv(n)&&bb(Lr(n))===t?Lr(n):null};function XN({origin:t,destination:n,onChange:r,onMonthViewChange:i,oneWay:l,className:f,primaryColor:h,secondaryColor:g,startDateLabel:y="Start Date",endDateLabel:b="End Date",flightCalendar:w,flightCalendarStatus:E,onlyDirects:A,initialStartDate:I,initialEndDate:j,referenceDates:D,minDate:R,showButtons:q=!0}){const Y=T.useRef(null),[re,G]=T.useState(null);T.useLayoutEffect(()=>{if(!Y.current)return;const Ge=Y.current.getRootNode();if(!(Ge instanceof ShadowRoot))return;const He=document.createElement("div");return Ge.appendChild(He),G(He),()=>{He.parentNode&&He.parentNode.removeChild(He)}},[]);const[te,ye]=T.useState(""),[ce,X]=T.useState(""),[ve,Ee]=T.useState(null),[Re,be]=T.useState(null),[le,se]=T.useState(I||null),[de,Q]=T.useState(j||null),[U,z]=T.useState(!1),[xe,Oe]=T.useState(I||null),[Ve,k]=T.useState(!1),[F,W]=T.useState(!1),ue=T.useRef(I||new Date),Te=T.useRef(r);T.useEffect(()=>{Te.current=r},[r]),T.useEffect(()=>{l&&(Q(null),X(""),be(null))},[l]),T.useEffect(()=>{!le&&I&&se(I),!de&&j&&Q(j)},[I,j,le,de]);const _e=Lr(new Date),Me=hv(_e,6),We=Ge=>{ye(Ge);const He=iA(Ge);if(Ge===""||!Ge){Ee(null),se(null);return}if(!He){Ee("Enter a date in MM/DD/YY format"),se(null);return}if(Ii(He,_e)){Ee("Date cannot be in the past"),se(null);return}if(xv(He,Me)){Ee("Date must be within 6 months"),se(null);return}if(R&&Ii(He,R)){Ee("Date must be no earlier than "+R.toLocaleDateString()),se(null);return}Ee(null),se(He),Oe(He),de&&Ii(de,He)&&(Q(null),X(""))},Ze=Ge=>{if(l)return;X(Ge);const He=iA(Ge);if(Ge===""||!Ge){be(null),Q(null);return}if(!He){be("Enter a date in MM/DD/YY format"),Q(null);return}if(Ii(He,_e)){be("Date cannot be in the past"),Q(null);return}if(xv(He,Me)){be("Date must be within 6 months"),Q(null);return}if(!le){be("Enter departure date first"),Q(null);return}if(Ii(He,le)){be("Return date must be after departure"),Q(null);return}if(R&&Ii(He,R)){be("Date must be no earlier than "+R.toLocaleDateString()),Q(null);return}be(null),Q(He),Oe(He)},Ke=()=>We(te),kt=()=>Ze(ce),bn=Ge=>{const He=Ge.getTime()<(le?.getTime()||0);le?!de&&He?se(Ge):de?le&&de&&(Sc(Ge,le)&&Sc(Ge,de)?(se(Ge),Q(null)):Ii(Ge,de)&&Ii(Ge,As(le,3))?se(Ge):Q(Ge)):l?se(Ge):Q(Ge):se(Ge)},Xt=()=>{se(null),Q(null),ye(""),X(""),Ee(null),be(null),Oe(null),Te.current(null,null)};T.useEffect(()=>{Te.current(le,de)},[le,de]),T.useEffect(()=>{le?(ye(bb(le)),Ee(null)):ve||ye("")},[le]),T.useEffect(()=>{de?(X(bb(de)),be(null)):Re||X("")},[de]);const Mn="a1-absolute a1-left-2 a1-right-2 a1-top-1/2 @2xl:a1-top-2 @2xl:a1-bottom-2 @2xl:a1-left-1/2 a1-rounded-lg a1-h-[2px] @2xl:a1-h-[initial] @2xl:a1-w-[2px] a1-bg-gray-200",Dn={};h&&(Dn["--color-primary"]=h),g&&(Dn["--color-secondary"]=g);const xn=YN(),Ra=T.useId(),Va=M.jsxs("div",{role:"button",tabIndex:0,"aria-haspopup":xn?"dialog":"grid","aria-expanded":U,"aria-label":`${l?"Departure date":"Date range"} picker`,"aria-describedby":"date-picker-instructions",className:Gt("a1-relative a1-h-full a1-flex a1-flex-col a1-gap-4 a1-px-3 a1-py-2 a1-rounded-lg a1-bg-white a1-cursor-pointer","@2xl:a1-flex-row @2xl:a1-items-center",{"a1-border-2 a1-border-primary":U,"a1-border-2 a1-border-gray-200":!U}),children:[M.jsxs("fieldset",{className:"a1-border-0 a1-p-0 a1-m-0",children:[M.jsx("legend",{className:"a1-sr-only",children:"Date range selection"}),M.jsxs("div",{className:"a1-flex a1-grow a1-items-center",children:[M.jsx("span",{children:M.jsx(JE,{})}),M.jsxs("div",{className:"a1-relative a1-flex-grow",children:[M.jsx("input",{type:"text",name:"start-date",value:te,"aria-label":y,"aria-invalid":ve?"true":void 0,placeholder:Ve?"mm/dd/yy":y,autoComplete:"off",className:Gt("a1-ml-2 a1-all-initial focus:a1-outline-none disabled:a1-bg-white a1-text-black a1-text-base a1-w-full a1-pr-4",{"a1-text-red-500 ":!!ve}),onChange:Ge=>{const He=aA(Ge.target.value,te);ye(He),Ee(null),Oe(nA(He)),Te.current(null,de)},onFocus:()=>k(!0),onBlur:Ge=>{const He=rA(Ge.target.value);ye(He),We(He),k(!1)},onKeyDown:Ge=>{Ge.key==="Enter"&&(Ge.preventDefault(),Ke(),Ge.target.blur())}}),ve&&M.jsx("span",{className:"a1-absolute a1-right-2 a1-top-1/2 a1--translate-y-1/2",children:M.jsx(tA,{message:ve})})]})]})]}),!l&&M.jsxs(M.Fragment,{children:[M.jsx("div",{className:Mn}),M.jsxs("fieldset",{className:"a1-border-0 a1-p-0 a1-m-0",children:[M.jsx("legend",{className:"a1-sr-only",children:"Return date selection"}),M.jsxs("div",{className:"a1-flex a1-grow a1-items-center",children:[M.jsx("span",{className:"@2xl:a1-hidden",children:M.jsx(JE,{})}),M.jsxs("div",{className:"a1-relative a1-flex-grow",children:[M.jsx("input",{type:"text",name:"end-date",value:ce,"aria-label":b,"aria-invalid":Re?"true":void 0,placeholder:F?"mm/dd/yy":b,autoComplete:"off",className:Gt("a1-ml-2 focus:a1-outline-none disabled:a1-bg-white a1-text-black a1-text-base a1-w-full a1-pr-7",{"a1-text-red-500":!!Re}),onChange:Ge=>{const He=aA(Ge.target.value,ce);X(He),be(null),Oe(nA(He)),Te.current(le,null)},onFocus:()=>W(!0),onBlur:Ge=>{const He=rA(Ge.target.value);X(He),Ze(He),W(!1)},onKeyDown:Ge=>{Ge.key==="Enter"&&(Ge.preventDefault(),kt(),Ge.target.blur())}}),Re&&M.jsx("span",{className:"a1-absolute a1-right-2 a1-top-1/2 a1--translate-y-1/2",children:M.jsx(tA,{message:Re})})]})]})]})]})]});return M.jsxs("div",{id:"A1-DateRangePicker",ref:Y,className:f,style:Dn,role:"group","aria-label":"Date range picker","aria-describedby":`${Ra}-description`,children:[xn?M.jsxs(nk,{open:U,onOpenChange:z,children:[M.jsx(ak,{asChild:!0,children:Va}),M.jsxs(rE,{open:U,onOpenChange:z,"aria-labelledby":Ra,"aria-describedby":void 0,children:[M.jsx(ab,{className:"a1-sr-only",children:"Filter Options"}),M.jsx(eA,{origin:t,destination:n,initialDate:ue.current,startDate:le,endDate:de,previewDate:xe,onChange:bn,onMonthViewChange:i,flightCalendar:w,flightCalendarStatus:E,onlyDirects:A,referenceDates:D,minDate:R},ue.current.toISOString()),q&&M.jsxs("div",{className:"a1-mt-2 a1-flex a1-justify-between a1-items-center a1-pt-0 a1-pb-2 md:a1-pb-4 a1-px-1",children:[M.jsx("button",{type:"button",className:"a1-bg-slate-400 a1-text-white a1-text-[14px] a1-rounded-lg a1-px-2 a1-py-0.5 a1-ring-slate-500",onClick:Xt,"data-testid":"date-range-picker-reset-button",children:"Reset"}),M.jsx(ik,{asChild:!0,children:M.jsx("button",{type:"button",className:"a1-bg-primary a1-text-white a1-text-[14px] a1-rounded-lg a1-px-2 a1-py-0.5 a1-ring-primary","data-testid":"date-range-picker-done-button",children:"Done"})})]})]})]}):M.jsxs(qN,{open:U,onOpenChange:z,children:[M.jsx(FN,{asChild:!0,children:Va}),M.jsxs(KE,{side:"bottom",align:"center",sticky:"always",avoidCollisions:!1,sideOffset:4,portalContainer:re,role:"dialog","aria-label":"Calendar for date selection","aria-describedby":"calendar-instructions",className:"a1-p-0 a1-bg-white a1-border a1-border-gray-300 a1-rounded-xl a1-shadow-lg md:a1-mt-2 a1-pb-2",children:[M.jsx("div",{id:"calendar-instructions",className:"a1-sr-only",children:"Use arrow keys to navigate dates. Press Enter or Space to select a date. Press Escape to close the calendar."}),M.jsx(eA,{origin:t,destination:n,initialDate:ue.current,startDate:le,endDate:de,previewDate:xe,onChange:bn,onMonthViewChange:i,flightCalendar:w,flightCalendarStatus:E,onlyDirects:A,referenceDates:D,minDate:R},ue.current.toISOString()),q&&M.jsxs("div",{className:"a1-flex a1-justify-between a1-items-center a1-pt-0 a1-pb-2 md:a1-pb-4 a1-px-5",children:[M.jsx("button",{type:"button",className:"a1-bg-slate-400 a1-text-white a1-text-[14px] a1-rounded-lg a1-px-2 a1-py-0.5 a1-ring-slate-500",onClick:Xt,"data-testid":"date-range-picker-popover-reset-button",children:"Reset"}),M.jsx("button",{type:"button",className:"a1-bg-primary a1-text-white a1-text-[14px] a1-rounded-lg a1-px-2 a1-py-0.5 a1-ring-primary",onClick:()=>z(!1),"data-testid":"date-range-picker-popover-done-button",children:"Done"})]})]})]}),M.jsx("div",{id:"date-picker-instructions",className:"a1-sr-only",children:l?"Select departure date. Use arrow keys to navigate the calendar or type directly in the input field.":"Select departure and return dates. Use arrow keys to navigate the calendar or type directly in the input fields."})]})}function Hc(t,n){if(t==null)return{};var r={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(n.indexOf(i)!==-1)continue;r[i]=t[i]}return r}function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)({}).hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Wt.apply(null,arguments)}var xb={exports:{}},Ht={};/**
|
|
716
716
|
* @license React
|
|
717
717
|
* react-is.production.min.js
|
|
718
718
|
*
|
|
@@ -720,4 +720,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
720
720
|
*
|
|
721
721
|
* This source code is licensed under the MIT license found in the
|
|
722
722
|
* LICENSE file in the root directory of this source tree.
|
|
723
|
-
*/var FA;function IN(){if(FA)return Pt;FA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),h=Symbol.for("react.context"),m=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),j;j=Symbol.for("react.module.reference");function M(D){if(typeof D=="object"&&D!==null){var B=D.$$typeof;switch(B){case e:switch(D=D.type,D){case r:case l:case i:case b:case x:return D;default:switch(D=D&&D.$$typeof,D){case m:case h:case y:case T:case S:case f:return D;default:return B}}case t:return B}}}return Pt.ContextConsumer=h,Pt.ContextProvider=f,Pt.Element=e,Pt.ForwardRef=y,Pt.Fragment=r,Pt.Lazy=T,Pt.Memo=S,Pt.Portal=t,Pt.Profiler=l,Pt.StrictMode=i,Pt.Suspense=b,Pt.SuspenseList=x,Pt.isAsyncMode=function(){return!1},Pt.isConcurrentMode=function(){return!1},Pt.isContextConsumer=function(D){return M(D)===h},Pt.isContextProvider=function(D){return M(D)===f},Pt.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===e},Pt.isForwardRef=function(D){return M(D)===y},Pt.isFragment=function(D){return M(D)===r},Pt.isLazy=function(D){return M(D)===T},Pt.isMemo=function(D){return M(D)===S},Pt.isPortal=function(D){return M(D)===t},Pt.isProfiler=function(D){return M(D)===l},Pt.isStrictMode=function(D){return M(D)===i},Pt.isSuspense=function(D){return M(D)===b},Pt.isSuspenseList=function(D){return M(D)===x},Pt.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===r||D===l||D===i||D===b||D===x||D===N||typeof D=="object"&&D!==null&&(D.$$typeof===T||D.$$typeof===S||D.$$typeof===f||D.$$typeof===h||D.$$typeof===y||D.$$typeof===j||D.getModuleId!==void 0)},Pt.typeOf=M,Pt}var YA;function LN(){return YA||(YA=1,Jv.exports=IN()),Jv.exports}LN();const GA=e=>typeof e=="object"&&e!=null&&e.nodeType===1,VA=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",rg=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return VA(r.overflowY,t)||VA(r.overflowX,t)||(i=>{const l=(f=>{if(!f.ownerDocument||!f.ownerDocument.defaultView)return null;try{return f.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!l&&(l.clientHeight<i.scrollHeight||l.clientWidth<i.scrollWidth)})(e)}return!1},ig=(e,t,r,i,l,f,h,m)=>f<e&&h>t||f>e&&h<t?0:f<=e&&m<=r||h>=t&&m>=r?f-e-i:h>t&&m<r||f<e&&m>r?h-t+l:0,zN=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},PN=(e,t)=>{var r,i,l,f;if(typeof document>"u")return[];const{inline:h,boundary:m,skipOverflowHiddenElements:y}=t,b=typeof m=="function"?m:le=>le!==m;if(!GA(e))throw new TypeError("Invalid target");const x=document.scrollingElement||document.documentElement,S=[];let T=e;for(;GA(T)&&b(T);){if(T=zN(T),T===x){S.push(T);break}T!=null&&T===document.body&&rg(T)&&!rg(document.documentElement)||T!=null&&rg(T,y)&&S.push(T)}const N=(i=(r=window.visualViewport)==null?void 0:r.width)!=null?i:innerWidth,j=(f=(l=window.visualViewport)==null?void 0:l.height)!=null?f:innerHeight,{scrollX:M,scrollY:D}=window,{height:B,width:F,top:re,right:Y,bottom:ne,left:se}=e.getBoundingClientRect(),{top:fe,right:ie,left:we}=(le=>{const ue=window.getComputedStyle(le);return{top:parseFloat(ue.scrollMarginTop)||0,right:parseFloat(ue.scrollMarginRight)||0,bottom:parseFloat(ue.scrollMarginBottom)||0,left:parseFloat(ue.scrollMarginLeft)||0}})(e);let Ce=re-fe,De=h==="center"?se+F/2-we+ie:h==="end"?Y+ie:se-we;const _e=[];for(let le=0;le<S.length;le++){const ue=S[le],{height:he,width:Q,top:U,right:z,bottom:ve,left:Oe}=ue.getBoundingClientRect();if(re>=0&&se>=0&&ne<=j&&Y<=N&&(ue===x&&!rg(ue)||re>=U&&ne<=ve&&se>=Oe&&Y<=z))return _e;const P=getComputedStyle(ue),$=parseInt(P.borderLeftWidth,10),ee=parseInt(P.borderTopWidth,10),K=parseInt(P.borderRightWidth,10),me=parseInt(P.borderBottomWidth,10);let Re=0,be=0;const Be="offsetWidth"in ue?ue.offsetWidth-ue.clientWidth-$-K:0,qe="offsetHeight"in ue?ue.offsetHeight-ue.clientHeight-ee-me:0,ft="offsetWidth"in ue?ue.offsetWidth===0?0:Q/ue.offsetWidth:0,at="offsetHeight"in ue?ue.offsetHeight===0?0:he/ue.offsetHeight:0;if(x===ue)Re=ig(D,D+j,j,ee,me,D+Ce,D+Ce+B,B),be=h==="start"?De:h==="center"?De-N/2:h==="end"?De-N:ig(M,M+N,N,$,K,M+De,M+De+F,F),Re=Math.max(0,Re+D),be=Math.max(0,be+M);else{Re=ig(U,ve,he,ee,me+qe,Ce,Ce+B,B),be=h==="start"?De-Oe-$:h==="center"?De-(Oe+Q/2)+Be/2:h==="end"?De-z+K+Be:ig(Oe,z,Q,$,K+Be,De,De+F,F);const{scrollLeft:Dt,scrollTop:bn}=ue;Re=at===0?0:Math.max(0,Math.min(bn+Re/at,ue.scrollHeight-he/at+qe)),be=ft===0?0:Math.max(0,Math.min(Dt+be/ft,ue.scrollWidth-Q/ft+Be)),Ce+=bn-Re,De+=Dt-be}_e.push({el:ue,top:Re,left:be})}return _e};var jN=0;function $A(){}function UN(e,t){if(e){var r=PN(e,{boundary:t});r.forEach(function(i){var l=i.el,f=i.top,h=i.left;l.scrollTop=f,l.scrollLeft=h})}}function ZA(e,t,r){var i=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return i}function QA(e,t){var r;function i(){r&&clearTimeout(r)}function l(){for(var f=arguments.length,h=new Array(f),m=0;m<f;m++)h[m]=arguments[m];i(),r=setTimeout(function(){r=null,e.apply(void 0,h)},t)}return l.cancel=i,l}function vr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){for(var l=arguments.length,f=new Array(l>1?l-1:0),h=1;h<l;h++)f[h-1]=arguments[h];return t.some(function(m){return m&&m.apply(void 0,[i].concat(f)),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault})}}function yc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){t.forEach(function(l){typeof l=="function"?l(i):l&&(l.current=i)})}}function HN(){return String(jN++)}function og(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,i){return r[i]=WA(t,i)?t[i]:e[i],r},{})}function WA(e,t){return e[t]!==void 0}function eb(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function sg(e,t,r,i,l){var f=r.length;if(f===0)return-1;var h=f-1;(typeof e!="number"||e<0||e>h)&&(e=t>0?-1:h+1);var m=e+t;m<0?m=h:m>h&&(m=0);var y=lg(m,t<0,r,i,l);return y===-1?e>=f?-1:e:y}function lg(e,t,r,i,l){l===void 0&&(l=!1);var f=r.length;if(t){for(var h=e;h>=0;h--)if(!i(r[h],h))return h}else for(var m=e;m<f;m++)if(!i(r[m],m))return m;return l?lg(t?f-1:0,t,r,i):-1}function XA(e,t,r,i){return i===void 0&&(i=!0),r&&t.some(function(l){return l&&(ZA(l,e,r)||i&&ZA(l,r.document.activeElement,r))})}var BN=QA(function(e){KA(e).textContent=""},500);function KA(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function qN(e,t){if(!(!e||!t)){var r=KA(t);r.textContent=e,BN(t)}}function FN(e){var t=e?.getElementById("a11y-status-message");t&&t.remove()}var JA={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function YN(e,t,r){var i=e.props,l=e.type,f={};Object.keys(t).forEach(function(h){GN(h,e,t,r),r[h]!==t[h]&&(f[h]=r[h])}),i.onStateChange&&Object.keys(f).length&&i.onStateChange(Zt({type:l},f))}function GN(e,t,r,i){var l=t.props,f=t.type,h="on"+tb(e)+"Change";l[h]&&i[e]!==void 0&&i[e]!==r[e]&&l[h](Zt({type:f},i))}function VN(e,t){return t.changes}var eC=QA(function(e,t){qN(e,t)},200),$N=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect,ZN="useId"in ol?function(t){var r=t.id,i=t.labelId,l=t.menuId,f=t.getItemId,h=t.toggleButtonId,m=t.inputId,y="downshift-"+ol.useId();r||(r=y);var b=C.useRef({labelId:i||r+"-label",menuId:l||r+"-menu",getItemId:f||function(x){return r+"-item-"+x},toggleButtonId:h||r+"-toggle-button",inputId:m||r+"-input"});return b.current}:function(t){var r=t.id,i=r===void 0?"downshift-"+HN():r,l=t.labelId,f=t.menuId,h=t.getItemId,m=t.toggleButtonId,y=t.inputId,b=C.useRef({labelId:l||i+"-label",menuId:f||i+"-menu",getItemId:h||function(x){return i+"-item-"+x},toggleButtonId:m||i+"-toggle-button",inputId:y||i+"-input"});return b.current};function tC(e,t,r,i){var l,f;if(e===void 0){if(t===void 0)throw new Error(i);l=r[t],f=t}else f=t===void 0?r.indexOf(e):t,l=e;return[l,f]}function tb(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function nb(e){var t=C.useRef(e);return t.current=e,t}function nC(e,t,r,i){var l=C.useRef(),f=C.useRef(),h=C.useCallback(function(N,j){f.current=j,N=og(N,j.props);var M=e(N,j),D=j.props.stateReducer(N,Zt({},j,{changes:M}));return D},[e]),m=C.useReducer(h,t,r),y=m[0],b=m[1],x=nb(t),S=C.useCallback(function(N){return b(Zt({props:x.current},N))},[x]),T=f.current;return C.useEffect(function(){var N=og(l.current,T?.props),j=T&&l.current&&!i(N,y);j&&YN(T,N,y),l.current=y},[y,T,i]),[y,S]}function QN(e,t,r,i){var l=nC(e,t,r,i),f=l[0],h=l[1];return[og(f,t),h]}var Zd={itemToString:function(t){return t?String(t):""},itemToKey:function(t){return t},stateReducer:VN,scrollIntoView:UN,environment:typeof window>"u"?void 0:window};function Oo(e,t,r){r===void 0&&(r=JA);var i=e["default"+tb(t)];return i!==void 0?i:r[t]}function vc(e,t,r){r===void 0&&(r=JA);var i=e[t];if(i!==void 0)return i;var l=e["initial"+tb(t)];return l!==void 0?l:Oo(e,t,r)}function WN(e){var t=vc(e,"selectedItem"),r=vc(e,"isOpen"),i=e8(e),l=vc(e,"inputValue");return{highlightedIndex:i<0&&t&&r?e.items.findIndex(function(f){return e.itemToKey(f)===e.itemToKey(t)}):i,isOpen:r,selectedItem:t,inputValue:l}}function Qd(e,t,r){var i=e.items,l=e.initialHighlightedIndex,f=e.defaultHighlightedIndex,h=e.isItemDisabled,m=e.itemToKey,y=t.selectedItem,b=t.highlightedIndex;return i.length===0?-1:l!==void 0&&b===l&&!h(i[l],l)?l:f!==void 0&&!h(i[f],f)?f:y?i.findIndex(function(x){return m(y)===m(x)}):r<0&&!h(i[i.length-1],i.length-1)?i.length-1:r>0&&!h(i[0],0)?0:-1}function XN(e,t,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return C.useEffect(function(){if(!e)return $A;var l=r.map(function(x){return x.current});function f(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function h(x){i.current.isMouseDown=!1,XA(x.target,l,e)||t()}function m(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function y(){i.current.isTouchMove=!0}function b(x){i.current.isTouchEnd=!0,!i.current.isTouchMove&&!XA(x.target,l,e,!1)&&t()}return e.addEventListener("mousedown",f),e.addEventListener("mouseup",h),e.addEventListener("touchstart",m),e.addEventListener("touchmove",y),e.addEventListener("touchend",b),function(){e.removeEventListener("mousedown",f),e.removeEventListener("mouseup",h),e.removeEventListener("touchstart",m),e.removeEventListener("touchmove",y),e.removeEventListener("touchend",b)}},[r,e,t]),i.current}var aC=function(){return $A};function rC(e,t,r,i){i===void 0&&(i={});var l=i.document,f=ug();C.useEffect(function(){if(!(!e||f||!l)){var h=e(t);eC(h,l)}},r),C.useEffect(function(){return function(){eC.cancel(),FN(l)}},[l])}function KN(e){var t=e.highlightedIndex,r=e.isOpen,i=e.itemRefs,l=e.getItemNodeFromIndex,f=e.menuElement,h=e.scrollIntoView,m=C.useRef(!0);return $N(function(){t<0||!r||!Object.keys(i.current).length||(m.current===!1?m.current=!0:h(l(t),f))},[t]),m}function iC(e,t,r){var i;r===void 0&&(r=!0);var l=((i=e.items)==null?void 0:i.length)&&t>=0;return Zt({isOpen:!1,highlightedIndex:-1},l&&Zt({selectedItem:e.items[t],isOpen:Oo(e,"isOpen"),highlightedIndex:Oo(e,"highlightedIndex")},r&&{inputValue:e.itemToString(e.items[t])}))}function JN(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function ug(){var e=ol.useRef(!0);return ol.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function ab(e){var t=Oo(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function e8(e){var t=vc(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var cg={environment:Te.shape({addEventListener:Te.func.isRequired,removeEventListener:Te.func.isRequired,document:Te.shape({createElement:Te.func.isRequired,getElementById:Te.func.isRequired,activeElement:Te.any.isRequired,body:Te.any.isRequired}).isRequired,Node:Te.func.isRequired}),itemToString:Te.func,itemToKey:Te.func,stateReducer:Te.func},oC=Zt({},cg,{getA11yStatusMessage:Te.func,highlightedIndex:Te.number,defaultHighlightedIndex:Te.number,initialHighlightedIndex:Te.number,isOpen:Te.bool,defaultIsOpen:Te.bool,initialIsOpen:Te.bool,selectedItem:Te.any,initialSelectedItem:Te.any,defaultSelectedItem:Te.any,id:Te.string,labelId:Te.string,menuId:Te.string,getItemId:Te.func,toggleButtonId:Te.string,onSelectedItemChange:Te.func,onHighlightedIndexChange:Te.func,onStateChange:Te.func,onIsOpenChange:Te.func,scrollIntoView:Te.func});function t8(e,t,r){var i=t.type,l=t.props,f;switch(i){case r.ItemMouseMove:f={highlightedIndex:t.disabled?-1:t.index};break;case r.MenuMouseLeave:f={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:f={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Qd(l,e,0)};break;case r.FunctionOpenMenu:f={isOpen:!0,highlightedIndex:Qd(l,e,0)};break;case r.FunctionCloseMenu:f={isOpen:!1};break;case r.FunctionSetHighlightedIndex:f={highlightedIndex:l.isItemDisabled(l.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case r.FunctionSetInputValue:f={inputValue:t.inputValue};break;case r.FunctionReset:f={highlightedIndex:ab(l),isOpen:Oo(l,"isOpen"),selectedItem:Oo(l,"selectedItem"),inputValue:Oo(l,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Zt({},e,f)}Wa(Wa({},oC),{items:Te.array.isRequired,isItemDisabled:Te.func}),Wa(Wa({},Zd),{isItemDisabled:function(){return!1}});var rb=0,ib=1,ob=2,sb=3,lb=4,ub=5,cb=6,fb=7,db=8,fg=9,hb=10,sC=11,lC=12,pb=13,uC=14,cC=15,fC=16,dC=17,hC=18,mb=19,pC=20,mC=21,gb=22,gC=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:gb,FunctionCloseMenu:dC,FunctionOpenMenu:fC,FunctionReset:mC,FunctionSelectItem:mb,FunctionSetHighlightedIndex:hC,FunctionSetInputValue:pC,FunctionToggleMenu:cC,InputBlur:fg,InputChange:db,InputClick:hb,InputKeyDownArrowDown:rb,InputKeyDownArrowUp:ib,InputKeyDownEnd:lb,InputKeyDownEnter:fb,InputKeyDownEscape:ob,InputKeyDownHome:sb,InputKeyDownPageDown:cb,InputKeyDownPageUp:ub,ItemClick:pb,ItemMouseMove:lC,MenuMouseLeave:sC,ToggleButtonClick:uC});function n8(e){var t=WN(e),r=t.selectedItem,i=t.inputValue;return i===""&&r&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(i=e.itemToString(r)),Zt({},t,{inputValue:i})}Zt({},oC,{items:Te.array.isRequired,isItemDisabled:Te.func,inputValue:Te.string,defaultInputValue:Te.string,initialInputValue:Te.string,inputId:Te.string,onInputValueChange:Te.func});function a8(e,t,r,i){var l=C.useRef(),f=nC(e,t,r,i),h=f[0],m=f[1],y=ug();return C.useEffect(function(){if(WA(t,"selectedItem")){if(!y){var b=t.itemToKey(t.selectedItem)!==t.itemToKey(l.current);b&&m({type:gb,inputValue:t.itemToString(t.selectedItem)})}l.current=h.selectedItem===l.current?t.selectedItem:h.selectedItem}},[h.selectedItem,t.selectedItem]),[og(h,t),m]}var r8=Zt({},Zd,{isItemDisabled:function(){return!1}});function i8(e,t){var r,i=t.type,l=t.props,f=t.altKey,h;switch(i){case pb:h={isOpen:Oo(l,"isOpen"),highlightedIndex:ab(l),selectedItem:l.items[t.index],inputValue:l.itemToString(l.items[t.index])};break;case rb:e.isOpen?h={highlightedIndex:sg(e.highlightedIndex,1,l.items,l.isItemDisabled,!0)}:h={highlightedIndex:f&&e.selectedItem==null?-1:Qd(l,e,1),isOpen:l.items.length>=0};break;case ib:e.isOpen?f?h=iC(l,e.highlightedIndex):h={highlightedIndex:sg(e.highlightedIndex,-1,l.items,l.isItemDisabled,!0)}:h={highlightedIndex:Qd(l,e,-1),isOpen:l.items.length>=0};break;case fb:h=iC(l,e.highlightedIndex);break;case ob:h=Zt({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case ub:h={highlightedIndex:sg(e.highlightedIndex,-10,l.items,l.isItemDisabled,!0)};break;case cb:h={highlightedIndex:sg(e.highlightedIndex,10,l.items,l.isItemDisabled,!0)};break;case sb:h={highlightedIndex:lg(0,!1,l.items,l.isItemDisabled)};break;case lb:h={highlightedIndex:lg(l.items.length-1,!0,l.items,l.isItemDisabled)};break;case fg:h=Zt({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((r=l.items)==null?void 0:r.length)&&t.selectItem&&{selectedItem:l.items[e.highlightedIndex],inputValue:l.itemToString(l.items[e.highlightedIndex])});break;case db:h={isOpen:!0,highlightedIndex:ab(l),inputValue:t.inputValue};break;case hb:h={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Qd(l,e,0)};break;case mb:h={selectedItem:t.selectedItem,inputValue:l.itemToString(t.selectedItem)};break;case gb:h={inputValue:t.inputValue};break;default:return t8(e,t,gC)}return Zt({},e,h)}var o8=["onMouseLeave","refKey","ref"],s8=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],l8=["onClick","onPress","refKey","ref"],u8=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];vn.stateChangeTypes=gC;function vn(e){e===void 0&&(e={});var t=Zt({},r8,e),r=t.items,i=t.scrollIntoView,l=t.environment,f=t.getA11yStatusMessage,h=a8(i8,t,n8,JN),m=h[0],y=h[1],b=m.isOpen,x=m.highlightedIndex,S=m.selectedItem,T=m.inputValue,N=C.useRef(null),j=C.useRef({}),M=C.useRef(null),D=C.useRef(null),B=ug(),F=ZN(t),re=C.useRef(),Y=nb({state:m,props:t}),ne=C.useCallback(function($){return j.current[F.getItemId($)]},[F]);rC(f,m,[b,x,S,T],l);var se=KN({menuElement:N.current,highlightedIndex:x,isOpen:b,itemRefs:j,scrollIntoView:i,getItemNodeFromIndex:ne});C.useEffect(function(){var $=vc(t,"isOpen");$&&M.current&&M.current.focus()},[]),C.useEffect(function(){B||(re.current=r.length)});var fe=XN(l,C.useCallback(function(){Y.current.state.isOpen&&y({type:fg,selectItem:!1})},[y,Y]),C.useMemo(function(){return[N,D,M]},[N.current,D.current,M.current])),ie=aC();C.useEffect(function(){b||(j.current={})},[b]),C.useEffect(function(){var $;!b||!(l!=null&&l.document)||!(M!=null&&($=M.current)!=null&&$.focus)||l.document.activeElement!==M.current&&M.current.focus()},[b,l]);var we=C.useMemo(function(){return{ArrowDown:function(ee){ee.preventDefault(),y({type:rb,altKey:ee.altKey})},ArrowUp:function(ee){ee.preventDefault(),y({type:ib,altKey:ee.altKey})},Home:function(ee){Y.current.state.isOpen&&(ee.preventDefault(),y({type:sb}))},End:function(ee){Y.current.state.isOpen&&(ee.preventDefault(),y({type:lb}))},Escape:function(ee){var K=Y.current.state;(K.isOpen||K.inputValue||K.selectedItem||K.highlightedIndex>-1)&&(ee.preventDefault(),y({type:ob}))},Enter:function(ee){var K=Y.current.state;!K.isOpen||ee.which===229||(ee.preventDefault(),y({type:fb}))},PageUp:function(ee){Y.current.state.isOpen&&(ee.preventDefault(),y({type:ub}))},PageDown:function(ee){Y.current.state.isOpen&&(ee.preventDefault(),y({type:cb}))}}},[y,Y]),Ce=C.useCallback(function($){return Zt({id:F.labelId,htmlFor:F.inputId},$)},[F]),De=C.useCallback(function($,ee){var K,me=$===void 0?{}:$,Re=me.onMouseLeave,be=me.refKey,Be=be===void 0?"ref":be,qe=me.ref,ft=gc(me,o8),at=ee===void 0?{}:ee;return at.suppressRefError,Zt((K={},K[Be]=yc(qe,function(Dt){N.current=Dt}),K.id=F.menuId,K.role="listbox",K["aria-labelledby"]=ft&&ft["aria-label"]?void 0:""+F.labelId,K.onMouseLeave=vr(Re,function(){y({type:sC})}),K),ft)},[y,ie,F]),_e=C.useCallback(function($){var ee,K,me=$===void 0?{}:$,Re=me.item,be=me.index,Be=me.refKey,qe=Be===void 0?"ref":Be,ft=me.ref,at=me.onMouseMove,Dt=me.onMouseDown,bn=me.onClick;me.onPress;var Yt=me.disabled,sa=gc(me,s8);Yt!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var Fn=Y.current,On=Fn.props,dn=Fn.state,br=tC(Re,be,On.items,"Pass either item or index to getItemProps!"),Ve=br[0],Ue=br[1],Yn=On.isItemDisabled(Ve,Ue),la="onClick",Xa=bn,ta=function(){fe.isTouchEnd||Ue===dn.highlightedIndex||(se.current=!1,y({type:lC,index:Ue,disabled:Yn}))},xr=function(){y({type:pb,index:Ue})},Da=function(ba){return ba.preventDefault()};return Zt((ee={},ee[qe]=yc(ft,function(Qt){Qt&&(j.current[F.getItemId(Ue)]=Qt)}),ee["aria-disabled"]=Yn,ee["aria-selected"]=Ue===dn.highlightedIndex,ee.id=F.getItemId(Ue),ee.role="option",ee),!Yn&&(K={},K[la]=vr(Xa,xr),K),{onMouseMove:vr(at,ta),onMouseDown:vr(Dt,Da)},sa)},[y,F,Y,fe,se]),le=C.useCallback(function($){var ee,K=$===void 0?{}:$,me=K.onClick;K.onPress;var Re=K.refKey,be=Re===void 0?"ref":Re,Be=K.ref,qe=gc(K,l8),ft=Y.current.state,at=function(){y({type:uC})};return Zt((ee={},ee[be]=yc(Be,function(Dt){D.current=Dt}),ee["aria-controls"]=F.menuId,ee["aria-expanded"]=ft.isOpen,ee.id=F.toggleButtonId,ee.tabIndex=-1,ee),!qe.disabled&&Zt({},{onClick:vr(me,at)}),qe)},[y,Y,F]),ue=C.useCallback(function($,ee){var K,me=$===void 0?{}:$,Re=me.onKeyDown,be=me.onChange,Be=me.onInput,qe=me.onBlur;me.onChangeText;var ft=me.onClick,at=me.refKey,Dt=at===void 0?"ref":at,bn=me.ref,Yt=gc(me,u8),sa=ee===void 0?{}:ee;sa.suppressRefError;var Fn=Y.current.state,On=function(ta){var xr=eb(ta);xr&&we[xr]&&we[xr](ta)},dn=function(ta){y({type:db,inputValue:ta.target.value})},br=function(ta){if(l!=null&&l.document&&Fn.isOpen&&!fe.isMouseDown){var xr=ta.relatedTarget===null&&l.document.activeElement!==l.document.body;y({type:fg,selectItem:!xr})}},Ve=function(){y({type:hb})},Ue="onChange",Yn={};if(!Yt.disabled){var la;Yn=(la={},la[Ue]=vr(be,Be,dn),la.onKeyDown=vr(Re,On),la.onBlur=vr(qe,br),la.onClick=vr(ft,Ve),la)}return Zt((K={},K[Dt]=yc(bn,function(Xa){M.current=Xa}),K["aria-activedescendant"]=Fn.isOpen&&Fn.highlightedIndex>-1?F.getItemId(Fn.highlightedIndex):"",K["aria-autocomplete"]="list",K["aria-controls"]=F.menuId,K["aria-expanded"]=Fn.isOpen,K["aria-labelledby"]=Yt&&Yt["aria-label"]?void 0:F.labelId,K.autoComplete="off",K.id=F.inputId,K.role="combobox",K.value=Fn.inputValue,K),Yn,Yt)},[y,F,l,we,Y,fe,ie]),he=C.useCallback(function(){y({type:cC})},[y]),Q=C.useCallback(function(){y({type:dC})},[y]),U=C.useCallback(function(){y({type:fC})},[y]),z=C.useCallback(function($){y({type:hC,highlightedIndex:$})},[y]),ve=C.useCallback(function($){y({type:mb,selectedItem:$})},[y]),Oe=C.useCallback(function($){y({type:pC,inputValue:$})},[y]),P=C.useCallback(function(){y({type:mC})},[y]);return{getItemProps:_e,getLabelProps:Ce,getMenuProps:De,getInputProps:ue,getToggleButtonProps:le,toggleMenu:he,openMenu:U,closeMenu:Q,setHighlightedIndex:z,setInputValue:Oe,selectItem:ve,reset:P,highlightedIndex:x,isOpen:b,selectedItem:S,inputValue:T}}var yC={activeIndex:-1,selectedItems:[]};function vC(e,t){return vc(e,t,yC)}function bC(e,t){return Oo(e,t,yC)}function c8(e){var t=vC(e,"activeIndex"),r=vC(e,"selectedItems");return{activeIndex:t,selectedItems:r}}function xC(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0))}function f8(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}cg.stateReducer,cg.itemToKey,cg.environment,Te.array,Te.array,Te.array,Te.func,Te.number,Te.number,Te.number,Te.func,Te.func,Te.string,Te.string;var d8={itemToKey:Zd.itemToKey,stateReducer:Zd.stateReducer,environment:Zd.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},yb=0,vb=1,bb=2,xb=3,wb=4,_b=5,Sb=6,Eb=7,Ab=8,Cb=9,Tb=10,Ob=11,Rb=12,h8=Object.freeze({__proto__:null,DropdownClick:Eb,DropdownKeyDownBackspace:Sb,DropdownKeyDownNavigationPrevious:_b,FunctionAddSelectedItem:Ab,FunctionRemoveSelectedItem:Cb,FunctionReset:Rb,FunctionSetActiveIndex:Ob,FunctionSetSelectedItems:Tb,SelectedItemClick:yb,SelectedItemKeyDownBackspace:bb,SelectedItemKeyDownDelete:vb,SelectedItemKeyDownNavigationNext:xb,SelectedItemKeyDownNavigationPrevious:wb});function p8(e,t){var r=t.type,i=t.index,l=t.props,f=t.selectedItem,h=e.activeIndex,m=e.selectedItems,y;switch(r){case yb:y={activeIndex:i};break;case wb:y={activeIndex:h-1<0?0:h-1};break;case xb:y={activeIndex:h+1>=m.length?-1:h+1};break;case bb:case vb:{if(h<0)break;var b=h;m.length===1?b=-1:h===m.length-1&&(b=m.length-2),y=Zt({selectedItems:[].concat(m.slice(0,h),m.slice(h+1))},{activeIndex:b});break}case _b:y={activeIndex:m.length-1};break;case Sb:y={selectedItems:m.slice(0,m.length-1)};break;case Ab:y={selectedItems:[].concat(m,[f])};break;case Eb:y={activeIndex:-1};break;case Cb:{var x=h,S=m.findIndex(function(j){return l.itemToKey(j)===l.itemToKey(f)});if(S<0)break;m.length===1?x=-1:S===m.length-1&&(x=m.length-2),y={selectedItems:[].concat(m.slice(0,S),m.slice(S+1)),activeIndex:x};break}case Tb:{var T=t.selectedItems;y={selectedItems:T};break}case Ob:{var N=t.activeIndex;y={activeIndex:N};break}case Rb:y={activeIndex:bC(l,"activeIndex"),selectedItems:bC(l,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Zt({},e,y)}var m8=["refKey","ref","onClick","onKeyDown","selectedItem","index"],g8=["refKey","ref","onKeyDown","onClick","preventKeyAction"];Wd.stateChangeTypes=h8;function Wd(e){e===void 0&&(e={});var t=Zt({},d8,e),r=t.getA11yStatusMessage,i=t.environment,l=t.keyNavigationNext,f=t.keyNavigationPrevious,h=QN(p8,t,c8,f8),m=h[0],y=h[1],b=m.activeIndex,x=m.selectedItems,S=ug(),T=C.useRef(null),N=C.useRef();N.current=[];var j=nb({state:m,props:t});rC(r,m,[b,x],i),C.useEffect(function(){S||(b===-1&&T.current?T.current.focus():N.current[b]&&N.current[b].focus())},[b]);var M=aC(),D=C.useMemo(function(){var we;return we={},we[f]=function(){y({type:wb})},we[l]=function(){y({type:xb})},we.Delete=function(){y({type:vb})},we.Backspace=function(){y({type:bb})},we},[y,l,f]),B=C.useMemo(function(){var we;return we={},we[f]=function(Ce){xC(Ce)&&y({type:_b})},we.Backspace=function(De){xC(De)&&y({type:Sb})},we},[y,f]),F=C.useCallback(function(we){var Ce,De=we===void 0?{}:we,_e=De.refKey,le=_e===void 0?"ref":_e,ue=De.ref,he=De.onClick,Q=De.onKeyDown,U=De.selectedItem,z=De.index,ve=gc(De,m8),Oe=j.current.state,P=tC(U,z,Oe.selectedItems,"Pass either item or index to getSelectedItemProps!"),$=P[1],ee=$>-1&&$===Oe.activeIndex,K=function(){y({type:yb,index:$})},me=function(be){var Be=eb(be);Be&&D[Be]&&D[Be](be)};return Zt((Ce={},Ce[le]=yc(ue,function(Re){Re&&N.current.push(Re)}),Ce.tabIndex=ee?0:-1,Ce.onClick=vr(he,K),Ce.onKeyDown=vr(Q,me),Ce),ve)},[y,j,D]),re=C.useCallback(function(we,Ce){var De,_e=we===void 0?{}:we,le=_e.refKey,ue=le===void 0?"ref":le,he=_e.ref,Q=_e.onKeyDown,U=_e.onClick,z=_e.preventKeyAction,ve=z===void 0?!1:z,Oe=gc(_e,g8),P=Ce===void 0?{}:Ce;P.suppressRefError;var $=function(me){var Re=eb(me);Re&&B[Re]&&B[Re](me)},ee=function(){y({type:Eb})};return Zt((De={},De[ue]=yc(he,function(K){K&&(T.current=K)}),De),!ve&&{onKeyDown:vr(Q,$),onClick:vr(U,ee)},Oe)},[y,B,M]),Y=C.useCallback(function(we){y({type:Ab,selectedItem:we})},[y]),ne=C.useCallback(function(we){y({type:Cb,selectedItem:we})},[y]),se=C.useCallback(function(we){y({type:Tb,selectedItems:we})},[y]),fe=C.useCallback(function(we){y({type:Ob,activeIndex:we})},[y]),ie=C.useCallback(function(){y({type:Rb})},[y]);return{getSelectedItemProps:F,getDropdownProps:re,addSelectedItem:Y,removeSelectedItem:ne,setSelectedItems:se,setActiveIndex:fe,reset:ie,selectedItems:x,activeIndex:b}}function y8({items:e,selectedItems:t,onInputChange:r,onSelectedItemsChange:i,placeholder:l,icon:f,disabled:h,shadowRoot:m,dataTestId:y}){const[b,x]=C.useState(""),S=C.useRef(null),T=C.useId(),N=C.useId(),j=C.useId(),M=C.useMemo(()=>{let le=0;const ue=9;return e.filter(he=>he.type==="airport"||he.type==="place").reduce((he,Q)=>Q.type==="airport"&&Q?.iata_code?.toLowerCase()===b.toLowerCase()?[{...Q,sectionIndex:-1},...he,...Q.sectionIndex>-1?[Q]:[]]:[...he,Q],[]).filter(he=>(he.type==="airport"&&(le+=1),he.type==="place"?le<ue:le<=ue))},[b,e]);function D(le){if(le.type==="airport"){const ue=le;return t?.length>1?ue.iata_code:ue.country_code==="US"?`${ue.city} (${ue.iata_code})`:`${ue.city}, ${ue.country_code} (${ue.iata_code})`}if(le.type==="place"){const ue=le;return ue.formatted_address?.length<20?ue.formatted_address:ue.name}return""}const B=typeof Proxy=="function"&&!Object.isSealed(new Proxy({},{}));function F(le){const ue=le.ownerDocument,he={document:ue,addEventListener:ue.addEventListener.bind(le),removeEventListener:ue.removeEventListener.bind(le),Node:window.Node,Element:window.Element,HTMLElement:window.HTMLElement,SVGElement:window.SVGElement};return B?new Proxy(he,{get(Q,U){return Q[U]}}):he}const{getSelectedItemProps:re,getDropdownProps:Y,removeSelectedItem:ne}=Wd({selectedItems:t,onStateChange({selectedItems:le,type:ue}){ue===Wd.stateChangeTypes.FunctionRemoveSelectedItem&&i(le)}}),{isOpen:se,getMenuProps:fe,getInputProps:ie,getItemProps:we,highlightedIndex:Ce}=vn({environment:m?F(m):void 0,items:M,itemToString(le){return le?le.type==="airport"?D(le):le.name??"":""},defaultHighlightedIndex:0,selectedItem:null,inputValue:b,stateReducer(le,ue){const{changes:he,type:Q}=ue;switch(Q){case vn.stateChangeTypes.InputKeyDownEnter:case vn.stateChangeTypes.ItemClick:return he;case vn.stateChangeTypes.InputKeyDownArrowDown:case vn.stateChangeTypes.InputKeyDownArrowUp:return he;case vn.stateChangeTypes.InputBlur:return he;case vn.stateChangeTypes.FunctionCloseMenu:return{...he,isOpen:!0};case vn.stateChangeTypes.InputKeyDownEscape:return he;default:return he}},onStateChange({inputValue:le,type:ue,selectedItem:he}){switch(ue){case vn.stateChangeTypes.InputKeyDownEnter:case vn.stateChangeTypes.ItemClick:{he&&(i([he]),x(""));break}case vn.stateChangeTypes.InputChange:{const Q=le??"";x(Q),r(Q);break}case vn.stateChangeTypes.MenuMouseLeave:case vn.stateChangeTypes.ItemMouseMove:break;case vn.stateChangeTypes.InputKeyDownArrowDown:case vn.stateChangeTypes.InputKeyDownArrowUp:break;case vn.stateChangeTypes.InputBlur:break;case vn.stateChangeTypes.ControlledPropUpdatedSelectedItem:break;default:le===""&&!he&&(x(""),r(""))}}});C.useEffect(()=>{h&&x("")},[h]);const De=!!h;function _e(){const le=ie({...Y(),id:j,role:"combobox","aria-autocomplete":"list","aria-expanded":se,"aria-controls":se?N:void 0,"aria-activedescendant":se&&Ce!=null&&Ce>-1?`${N}-${Ce}`:void 0,"aria-label":"Search airports and places",onKeyDown:ue=>{if(ue.key==="Backspace"&&!b&&t.length>0&&!h){const he=t[t.length-1];ne(he)}}});return R.jsx("input",{className:Bt("a1-outline-none disabled:a1-bg-transparent a1-text-base",{"a1-min-w-[120px] a1-max-w-[200px]":t.length>0,"a1-w-full":t.length===0}),placeholder:!De&&t.length===0?l:"",...le,"aria-describedby":h?T:void 0,disabled:De})}return R.jsxs("div",{className:"a1-w-full a1-h-full a1-relative a1-z-10","data-testid":y,role:"group","aria-disabled":h?!0:void 0,children:[R.jsxs("div",{className:Bt({"a1-bg-white a1-rounded-lg a1-gap-2 a1-items-center a1-py-2 a1-px-3 a1-h-full a1-w-full a1-overflow-hidden":!0,"a1-grid":!0,"a1-grid-cols-[24px_1fr]":t.length===0,"a1-grid-cols-[24px_auto_1fr]":t.length===1,"a1-grid-cols-[24px_auto_auto_1fr]":t.length===2,"a1-grid-cols-[24px_auto_auto_auto_1fr]":t.length===3,"a1-ring-2 a1-ring-gray-200 focus-within:a1-ring-primary":!0,"a1-opacity-60 a1-cursor-not-allowed":!!h}),children:[f,t.map((le,ue)=>R.jsxs("span",{...re({selectedItem:le,index:ue}),className:Bt({"a1-bg-gray-200 a1-rounded a1-px-1 focus:a1-bg-gray-400 a1-whitespace-nowrap a1-text-ellipsis a1-shrink-0":!0,"a1-text-xs":t.length>0,"a1-flex a1-items-center":!0}),children:[R.jsx("span",{className:"a1-overflow-hidden a1-grow a1-font-bold",children:D(le)}),!le.disabled&&R.jsx("button",{type:"button",disabled:!!h||!!le.disabled,className:Bt("a1-ml-2 a1-text-base a1-leading-[20px] a1-rounded a1-px-1 a1-transition-colors",{"hover:a1-bg-gray-300 focus-visible:a1-outline-none focus-visible:a1-ring-2 focus-visible:a1-ring-offset-2 focus-visible:a1-ring-gray-400":!h&&!le.disabled,"a1-cursor-not-allowed a1-opacity-60":!!h}),"data-testid":"autocomplete-remove-item-button","aria-label":`Remove ${D(le)}`,onClick:he=>{he.stopPropagation(),!h&&ne(le)},children:"×"})]},ue)),h&&R.jsx("span",{id:T,className:"a1-sr-only",children:"Field is locked"}),_e()]}),se&&M.length>0&&R.jsx("div",{className:"a1-absolute a1-w-inherit a1-bg-white a1-mt-2 a1-rounded-lg a1-overflow-hidden a1-shadow-md a1-p-0 a1-z-10",children:R.jsx("ul",{ref:S,...fe(),id:N,role:"listbox","aria-label":"Search results",tabIndex:-1,className:"a1-overflow-y-auto a1-overflow-x-hidden focus:a1-outline-none focus:a1-ring-2 focus:a1-ring-blue-500 focus:a1-ring-offset-2",children:M.map((le,ue)=>{if(le.type==="airport"){const he=le,Q=(he.distance||0)*.621371,U=Ce===ue;return R.jsxs("li",{...we({item:le,index:ue}),id:`${N}-${ue}`,role:"option",tabIndex:-1,"aria-selected":U,"aria-label":`${he.name}, ${he.city}, ${he.country_code}, ${he.iata_code}${le.sectionIndex>-1?`, ${Q.toFixed(Q<1?1:0)} miles away`:""}`,className:Bt({"hover:a1-bg-blue-100":!0,"a1-font-bold":U,"a1-shadow-sm a1-py-2 a1-px-2 a1-cursor-pointer":!0,"a1-pl-5 a1-border-l-4 a1-border-gray-500":le.sectionIndex>-1,"a1-grid a1-grid-cols-[26px_1fr_30px] a1-gap-1 a1-justify-start a1-items-center":!0,"focus:a1-outline-none focus:a1-ring-2 focus:a1-ring-blue-500 focus:a1-ring-offset-2":!0}),children:[R.jsx(rs,{className:"a1-w-6 a1-h-6 -a1-rotate-45",icon:pw}),R.jsxs("div",{className:"a1-flex a1-flex-col a1-grow a1-gap-1 a1-overflow-hidden",children:[R.jsxs("div",{className:"a1-gap-2 a1-flex a1-items-end",children:[R.jsx("span",{className:"a1-font-medium a1-text-base a1-whitespace-nowrap a1-overflow-hidden a1-text-ellipsis a1-shrink",children:he.name}),R.jsx("span",{className:"a1-text-sm a1-uppercase a1-shrink-0 a1-text-gray-500",children:he.iata_code})]}),R.jsxs("span",{className:"a1-text-sm a1-text-gray-500",children:[he.city,", ",he.country_code,le.sectionIndex>-1&&R.jsxs(R.Fragment,{children:[" • ",Q.toFixed(Q<1?1:0),"mi"]})]})]}),R.jsx("div",{className:"a1-flex a1-justify-end a1-pl-2",children:R.jsx("input",{type:"checkbox",defaultChecked:!!t.find(z=>z.key===le.key),readOnly:!0})})]},`${le.key}-${ue}`)}if(le.type==="place"){const he=le,Q=Ce===ue;return R.jsxs("li",{...we({item:le,index:ue}),id:`${N}-${ue}`,role:"option",tabIndex:-1,"aria-selected":Q,"aria-label":`${he.name}, ${he.formatted_address}`,className:Bt({"hover:a1-bg-blue-100":!0,"a1-font-bold":Q,"a1-shadow-sm a1-py-2 a1-px-2 a1-cursor-pointer":!0,"a1-grid a1-grid-cols-[26px_1fr_30px] a1-gap-1 a1-justify-start a1-items-center":!0,"focus:a1-outline-none focus:a1-ring-2 focus:a1-ring-blue-500 focus:a1-ring-offset-2":!0}),children:[R.jsx(rs,{className:"a1-w-6 a1-h-6",icon:x3}),R.jsxs("div",{className:"a1-flex a1-flex-col a1-grow a1-gap-1 a1-overflow-hidden",children:[R.jsx("div",{className:"a1-gap-2 a1-flex a1-items-end",children:R.jsx("span",{className:"a1-font-medium a1-text-base a1-whitespace-nowrap a1-overflow-hidden a1-text-ellipsis a1-shrink",children:he.name})}),R.jsx("span",{className:"a1-text-sm a1-shrink-0 a1-text-gray-500",children:he.formatted_address})]}),R.jsx("div",{className:"a1-flex a1-justify-end a1-pl-2",children:R.jsx("input",{type:"checkbox",defaultChecked:!!t.find(U=>U.key===le.key),readOnly:!0})})]},`${le.key}-${ue}`)}})})})]})}function v8({hideByDefault:e=!0}){return R.jsx("div",{className:Bt({"a1-pb-0.5 a1-flex-col a1-items-center @2xl:a1-items-end @2xl:a1-w-[175px]":!0,"a1-hidden @2xl:a1-flex":e,"a1-flex":!e}),children:R.jsxs("div",{children:[R.jsx("p",{className:"a1-text-center a1-text-[12px] a1-text-black dark:a1-text-white",children:"Powered by"}),R.jsx("div",{className:"a1-flex a1-justify-center a1-max-w-[95px]",children:R.jsx("img",{src:"https://content.r9cdn.net/res/images/horizon/common/promo/a1-powered-kayak-logo.png?v=5845dc09c6b1c19380844fe6157a3b640856624b&cluster=4",alt:"Kayak",width:95,height:21})})]})})}const b8=100;function x8({items:e,selectedItems:t,onInputChange:r,onSelectedItemsChange:i,placeholder:l,icon:f,disabled:h,shadowRoot:m}){const[y,b]=C.useState(""),[x,S]=C.useState(!1),T=C.useRef(null),N=C.useId(),j=C.useMemo(()=>{let U;return z=>{clearTimeout(U),z.trim()&&S(!0),U=setTimeout(()=>{r(z),S(!1)},300)}},[r]),M=C.useMemo(()=>{if(console.log("Autocomplete results:",{items:e?.length,inputValue:y,hasInput:!!y?.trim()}),!e||e.length===0)return[];const U=new Date,z=new Date(U.getTime()+720*60*60*1e3),ve=new Set;let Oe=e.reduce(($,ee)=>{if(ve.has(ee.key))return $;const me="routeStart"in ee&&ee.routeStart&&ee.routeStart>z?{...ee,isNewRoute:!0}:ee;return ve.add(ee.key),[...$,me]},[]);if(y?.trim()){const $=y.toLowerCase().trim();Oe=Oe.filter(ee=>{const K=ee;return!!(K.iata_code?.toLowerCase().includes($)||K.city?.toLowerCase().includes($)||K.name?.toLowerCase().includes($)||K.country_code?.toLowerCase().includes($)||K.state?.toLowerCase().includes($))}),Oe.sort((ee,K)=>{const me=ee,Re=K,be=me.iata_code?.toLowerCase()||"",Be=Re.iata_code?.toLowerCase()||"",qe=me.city?.toLowerCase()||"",ft=Re.city?.toLowerCase()||"",at=$.toLowerCase();return be===at&&Be!==at?-1:Be===at&&be!==at?1:be.startsWith(at)&&!Be.startsWith(at)?-1:Be.startsWith(at)&&!be.startsWith(at)?1:qe.startsWith(at)&&!ft.startsWith(at)?-1:ft.startsWith(at)&&!qe.startsWith(at)?1:be.includes(at)&&!Be.includes(at)?-1:Be.includes(at)&&!be.includes(at)?1:0})}else Oe=Oe.slice(0,50);Oe.sort(($,ee)=>{const K=$,me=ee,Re=K.city?.toLowerCase()||"",be=me.city?.toLowerCase()||"";if(Re===be){const Be=K.iata_code?.toLowerCase()||"",qe=me.iata_code?.toLowerCase()||"";return Be.localeCompare(qe)}return Re.localeCompare(be)});const P=Oe.slice(0,b8);return console.log("Typeahead filtering results:",{originalCount:e.length,filteredCount:Oe.length,finalCount:P.length,inputValue:y,hasInput:!!y?.trim()}),P},[y,e]),D=C.useMemo(()=>{const U={};return M.forEach((z,ve)=>{if(z.type==="airport"){const P=z.city?.charAt(0).toUpperCase();P&&!U[P]&&(U[P]=ve)}}),U},[M]),B=U=>{const z=D[U];if(z===void 0||!T.current)return;const ve=T.current.querySelector("ul");if(!ve)return;const Oe=ve.children[z];if(!Oe)return;const P=ve.getBoundingClientRect(),$=Oe.getBoundingClientRect(),ee=ve.scrollTop,K=$.top-P.top+ee;ve.scrollTo({top:K,behavior:"smooth"})},F=C.useMemo(()=>Array.from({length:26},(U,z)=>String.fromCharCode(65+z)),[]),re=(U,z)=>{U.preventDefault(),U.stopPropagation(),B(z)},Y=U=>{const z=U;if(t.length>1)return z.iata_code||"";const ve=z.state?`, ${z.state}`:z.country==="US"?"":z.country?`, ${z.country}`:"";return`${z.city}${ve} (${z.iata_code})`},ne=U=>{const z=U.ownerDocument,ve=typeof Proxy=="function"&&!Object.isSealed(new Proxy({},{})),Oe={document:z,addEventListener:z.addEventListener.bind(U),removeEventListener:z.removeEventListener.bind(U),Node:window.Node,Element:window.Element,HTMLElement:window.HTMLElement,SVGElement:window.SVGElement};return ve?new Proxy(Oe,{get(P,$){return P[$]}}):Oe},{getSelectedItemProps:se,getDropdownProps:fe,removeSelectedItem:ie}=Wd({selectedItems:t,onStateChange({selectedItems:U,type:z}){z===Wd.stateChangeTypes.FunctionRemoveSelectedItem&&i(U)}}),{isOpen:we,getMenuProps:Ce,getInputProps:De,getItemProps:_e,selectedItem:le}=vn({environment:m?ne(m):void 0,items:M,itemToString:U=>U?Y(U):"",defaultHighlightedIndex:0,selectedItem:null,inputValue:y,onStateChange({inputValue:U,type:z,selectedItem:ve}){switch(z){case vn.stateChangeTypes.InputKeyDownEnter:case vn.stateChangeTypes.ItemClick:ve&&(i([ve]),b(""));break;case vn.stateChangeTypes.InputChange:{const Oe=U??"";b(Oe),j(Oe);break}case vn.stateChangeTypes.InputBlur:break}}}),ue=!!h,he=t.length>0,Q=(we||y.trim()&&M.length>0)&&M.length>10&&Object.keys(D).length>3;return R.jsxs("div",{className:"a1-w-full a1-h-full a1-relative a1-z-10",role:"group","aria-disabled":h?!0:void 0,children:[R.jsxs("div",{className:Bt({"a1-bg-white a1-rounded-lg a1-gap-2 a1-items-center a1-py-2 a1-px-3 a1-h-full a1-w-full a1-overflow-hidden a1-grid":!0,"a1-grid-cols-[24px_1fr]":t.length===0,"a1-grid-cols-[24px_auto_1fr]":t.length===1,"a1-grid-cols-[24px_auto_auto_1fr]":t.length===2,"a1-grid-cols-[24px_auto_auto_auto_1fr]":t.length===3,"a1-ring-2 a1-ring-gray-200 focus-within:a1-ring-primary":!0,"a1-opacity-60 a1-cursor-not-allowed":!!h}),children:[f,t.map((U,z)=>R.jsxs("span",{...se({selectedItem:U,index:z}),className:"a1-bg-gray-200 a1-rounded a1-px-1 focus:a1-bg-gray-400 a1-whitespace-nowrap a1-text-ellipsis a1-shrink-0 a1-text-xs a1-flex a1-items-center",children:[R.jsx("span",{className:"a1-overflow-hidden a1-grow",children:Y(U)}),!U.disabled&&R.jsx("button",{type:"button",disabled:!!h||!!U.disabled,className:Bt("a1-ml-2 a1-text-base a1-leading-[20px] a1-rounded a1-px-1 a1-transition-colors",{"hover:a1-bg-gray-300 focus-visible:a1-outline-none focus-visible:a1-ring-2 focus-visible:a1-ring-offset-2 focus-visible:a1-ring-gray-400":!h&&!U.disabled,"a1-cursor-not-allowed a1-opacity-60":!!h}),"aria-label":`Remove ${Y(U)}`,"data-testid":"schedule-autocomplete-remove-item-button",onClick:ve=>{ve.stopPropagation(),!h&&ie(U)},children:"×"})]},z)),h&&R.jsx("span",{id:N,className:"a1-sr-only",children:"Field is locked"}),(()=>{const U=De({...fe({preventKeyAction:we}),onKeyDown:z=>{if(z.key==="Backspace"&&!y&&t.length>0&&!h){const ve=t[t.length-1];ie(ve)}}});return R.jsx("input",{"aria-label":"autocomplete",className:"a1-outline-none disabled:a1-bg-transparent a1-text-base",placeholder:ue?"":l,...U,"aria-describedby":h?N:void 0,readOnly:he,disabled:ue})})()]}),(we||y.trim()&&M.length>0)&&R.jsx("div",{className:"a1-absolute a1-w-full a1-min-w-full a1-bg-white a1-mt-2 a1-rounded-lg a1-shadow-md a1-p-0 a1-z-10",children:R.jsxs("div",{className:"a1-flex a1-w-full",children:[Q&&R.jsx("div",{className:"a1-flex a1-flex-col a1-rounded-lg a1-bg-gray-50 a1-border-r a1-border-gray-200 a1-px-2.5 a1-py-2.5 a1-min-w-[32px] a1-shrink-0",children:F.map(U=>{const z=D[U]!==void 0;return R.jsx("button",{onClick:ve=>z?re(ve,U):void 0,className:Bt({"a1-text-xs a1-font-medium a1-px-1.5 a1-py-0.5 a1-rounded a1-transition-colors a1-cursor-pointer a1-text-center a1-shrink-0 a1-mb-0.5":!0,"a1-text-gray-600 hover:a1-text-blue-600 hover:a1-bg-blue-50":z,"a1-text-gray-300 a1-cursor-default":!z}),"data-testid":`schedule-autocomplete-letter-${U.toLowerCase()}`,title:z?`Jump to ${U}`:`No results for ${U}`,disabled:!z,children:U},U)})}),R.jsx("div",{className:"a1-flex-1 a1-min-w-0",ref:T,children:R.jsxs("ul",{...Ce(),className:"a1-max-h-[600px] a1-overflow-y-auto a1-overflow-x-hidden a1-w-full",children:[x&&R.jsx("li",{className:"a1-py-4 a1-px-3 a1-text-center a1-text-gray-500",children:R.jsxs("div",{className:"a1-flex a1-items-center a1-justify-center a1-gap-2",children:[R.jsx("div",{className:"a1-animate-spin a1-rounded-full a1-h-4 a1-w-4 a1-border-b-2 a1-border-primary"}),R.jsx("span",{children:"Searching airports..."})]})}),!x&&M.length>0&&M.map((U,z)=>{const ve=U;return R.jsxs("li",{..._e({item:U,index:z}),className:Bt({"a1-shadow-sm a1-py-2 a1-pl-3 a1-pr-2 a1-cursor-pointer a1-grid a1-grid-cols-[26px_1fr_40px] a1-gap-2 a1-justify-start a1-items-center a1-relative":!0,"a1-font-bold":le===U}),children:[R.jsx("div",{className:"a1-w-6 a1-h-6 a1-flex a1-items-center a1-gap-1",children:ve.airlineCodes&&ve.airlineCodes.length>0&&ve.airlineCodes.map(Oe=>R.jsx("img",{src:`https://content.r9cdn.net/rimg/provider-logos/airlines/v/${Oe}.png`,alt:Oe},Oe))}),R.jsxs("div",{className:"a1-flex a1-flex-col a1-grow a1-gap-1 a1-overflow-hidden",children:[R.jsx("div",{className:"a1-gap-2 a1-flex a1-items-end",children:R.jsxs("span",{className:Bt({"a1-font-medium a1-text-sm a1-whitespace-nowrap a1-overflow-hidden a1-text-ellipsis a1-shrink":!0}),children:[ve.city,ve.state?`, ${ve.state}`:ve.country_code?`, ${ve.country_code}`:""]})}),R.jsxs("span",{className:Bt({"a1-text-sm a1-text-gray-500":!0}),children:[ve.iata_code," -"," ",ve.stops===0?"Direct Flight":"One Stop","routeStart"in ve&&ve.routeStart&&R.jsxs(R.Fragment,{children:[R.jsx("br",{}),R.jsx("span",{className:Bt({"a1-text-xs a1-font-bold a1-text-green-600 a1-whitespace-nowrap":!0}),children:U.isNewRoute?"Route Starts "+ve.routeStart.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"}):""})]})]})]}),R.jsx("div",{className:"a1-flex a1-justify-end a1-pl-4",children:R.jsx("input",{type:"checkbox",defaultChecked:!!t.find(Oe=>Oe.key===U.key)})})]},`${U.key}-${z}`)}),!x&&M.length===0&&y.trim()&&R.jsx("li",{className:"a1-py-4 a1-px-3 a1-text-center a1-text-gray-500",children:R.jsxs("div",{className:"a1-flex a1-flex-col a1-items-center a1-justify-center a1-gap-2",children:[R.jsx(rs,{icon:pw,className:"a1-text-gray-300 a1-text-xl"}),R.jsxs("span",{children:["No airports found for ",y]}),R.jsx("span",{className:"a1-text-xs",children:"Try a different search term"})]})})]})})]})})]})}function wC(){return R.jsx("div",{"aria-label":"Loading...",role:"status",children:R.jsxs("svg",{className:"a1-h-6 a1-w-6 a1-animate-spin",viewBox:"3 3 18 18",children:[R.jsx("path",{className:"a1-fill-indigo-200",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),R.jsx("path",{className:"a1-fill-indigo-800",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})}const w8=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,_8=yt({apiDomain:k(),locationId:k().optional(),origin:k().nullable().optional(),destination:k().nullable().optional(),destinations:k().optional(),primaryColor:k().optional(),secondaryColor:k().optional(),airlines:k().nullable().optional(),providers:k().nullable().optional(),workerUrl:k().optional(),theme:Qu(["dark","light"]).optional(),defaultNearbyDatesForLowerFares:lt().optional(),shadowRoot:qy(w8).optional(),subscribingAirport:k().optional(),consentDataSharing:lt().optional(),consentAnalytics:lt().optional(),consentAdvertising:lt().optional(),consentFunctional:lt().optional(),onOriginChange:Vy().args(k()).returns(Yy()).optional(),onDestinationChange:Vy().args(k()).returns(Yy()).optional(),fmaDomain:k().optional(),hideBranding:lt().optional(),hideCarButton:lt().optional(),disableOrigins:lt().optional(),disableDestinations:lt().optional(),experimentId:k().optional(),autocompleteType:Qu(["kayak","schedule_data"]).optional(),arrivalAirportLabel:k().optional(),departureAirportLabel:k().optional(),departureDateLabel:k().optional(),returnDateLabel:k().optional(),channel:cS.optional()}),S8=new ew;function _C(e){let t="";for(let r=0;r<e.length;++r){const i=e[r];if(i){if(i.type==="place"){const l=i;l.iata_code?t+=l.iata_code:l.nearbyAirports&&l.nearbyAirports.length>0&&(t+=l.nearbyAirports[0].iata_code+",nearby")}i.type==="airport"&&(t+=i.iata_code),r<e.length-1&&e.length>1&&(t+=",")}}return t}function E8({apiDomain:e,origin:t,destination:r,airlines:i,providers:l,destinations:f,locationId:h,experimentId:m,departureDateLabel:y="Departure Date",returnDateLabel:b="Return Date",workerUrl:x="https://worker.flymyairport.com",theme:S="light",channel:T,defaultNearbyDatesForLowerFares:N,shadowRoot:j,subscribingAirport:M,consentDataSharing:D=!0,consentAnalytics:B=!0,consentAdvertising:F=!0,consentFunctional:re=!0,onOriginChange:Y=()=>{},onDestinationChange:ne=()=>{},fmaDomain:se="https://flymyairport.com",hideBranding:fe=!1,hideCarButton:ie=!1,disableOrigins:we=!0,disableDestinations:Ce=!0,autocompleteType:De="kayak"}){const[_e,le]=C.useState({origins:[],destinations:[],startDate:null,endDate:null,oneWay:!1,defaultNearbyDatesForLowerFares:!!N}),{clickId:ue}=hD(),he=C.useMemo(()=>{const xe=_C(_e.origins);return Y(xe),xe},[_e.origins,Y]),Q=C.useMemo(()=>{const xe=_C(_e.destinations);return ne(xe),xe},[_e.destinations,ne]);if(!fS.safeParse(h).success)throw new Error("Unable to parse location id");if(m&&m!=="0"&&m!=="1")throw new Error("experimentId must be 0 or 1");t=t?.toLocaleUpperCase(),r=r?.toLocaleUpperCase();const U=i?.split(",").map(xe=>xe.toLocaleUpperCase().trim()).filter(xe=>xe!==""),z=l?.split(",").map(xe=>xe.toLocaleUpperCase().trim()).filter(xe=>xe!==""),ve=l===i&&l?.length===2&&i?.length===2,[Oe,P]=C.useState(!!t),[$,ee]=C.useState(!!r),[K,me]=C.useState(null),[Re,be]=C.useState(null),Be=C.useMemo(()=>_e.origins?.length&&_e.destinations?.length&&_e.startDate?_e.endDate&&_e.oneWay===!1?!0:!(!_e.endDate&&_e.oneWay===!1):!1,[_e]),qe=xe=>De==="schedule_data"?R.jsx(x8,{shadowRoot:j,icon:xe.icon,placeholder:xe.placeholder,disabled:xe.disabled,items:xe.items,selectedItems:xe.selectedItems,onInputChange:xe.onInputChange,onSelectedItemsChange:xe.onSelectedItemsChange}):R.jsx(y8,{dataTestId:xe.dataTestId,shadowRoot:j,icon:xe.icon,placeholder:xe.placeholder,disabled:xe.disabled,items:xe.items,selectedItems:xe.selectedItems,onInputChange:xe.onInputChange,onSelectedItemsChange:xe.onSelectedItemsChange}),{data:ft,status:at,setQuery:Dt}=pS({key:"origin-suggest",apiDomain:e,airportIATA:Q,providersArr:z,airlinesArr:U,autocompleteType:De}),bn=C.useMemo(()=>De==="schedule_data"?ft?.map((xe,Le)=>({...xe,sectionIndex:Le,type:"airport",key:xe.iata_code||`airport-${Le}`}))||[]:rv.uniqBy(ft?.filter(xe=>xe.nearbyAirports?.length).map(xe=>{const Le=xe.types.includes("airport");return[{...xe,sectionIndex:0,type:Le?"airport-place":"place",key:xe.formatted_address},...xe.nearbyAirports.map((bt,Wt)=>({...bt,sectionIndex:Le?-1:Wt,type:"airport",key:`${bt.iata_code}`}))]}).flat(),xe=>xe.key).filter((xe,Le,bt)=>{if(xe.type==="place"){const Wt=bt.at(Le+1);if(Wt){if(Wt.type!=="airport")return!1}else return!1}return!0}),[ft,De]),{data:Yt,status:sa,setQuery:Fn}=pS({key:"destination-suggest",apiDomain:e,airportIATA:he,providersArr:z||[],airlinesArr:U||[],autocompleteType:De}),On=C.useMemo(()=>De==="schedule_data"?Yt?.map((xe,Le)=>({...xe,sectionIndex:Le,type:"airport",key:xe.iata_code||`airport-${Le}`}))||[]:rv.uniqBy(Yt?.filter(xe=>xe.nearbyAirports?.length).map(xe=>{const Le=xe.types.includes("airport");return[{...xe,sectionIndex:0,type:Le?"airport-place":"place",key:xe.formatted_address},...xe.nearbyAirports.map((bt,Wt)=>({...bt,sectionIndex:Le?-1:Wt,type:"airport",key:`${bt.iata_code}`}))]}).flat(),xe=>xe.key).filter((xe,Le,bt)=>{if(xe.type==="place"){const Wt=bt.at(Le+1);if(Wt){if(Wt.type!=="airport")return!1}else return!1}return!0}),[Yt,De]),[dn,br]=C.useState(null),[Ve,Ue]=C.useState(null);C.useEffect(()=>{br(K?i5([K,new Date]):null)},[K]),C.useEffect(()=>{Ue(_e.startDate?us(_e.startDate,1):null)},[_e.startDate]);const Yn=C.useMemo(()=>({origin:he,destination:Q,startDate:dn||void 0,endDate:Re||void 0}),[he,Q,dn,Re]),la=C.useMemo(()=>({origin:Q,destination:he,startDate:Ve||void 0,endDate:Re||void 0}),[Q,he,Ve,Re]),{data:Xa,status:ta}=hS({apiDomain:e,params:Yn}),{data:xr,status:Da}=hS({apiDomain:e,params:la});C.useEffect(()=>{if(t&&iv({query:t,searchType:Am.Flights}).then(xe=>{const Le=xe.find(bt=>bt.id.toLowerCase()===t?.toLowerCase());if(Le){const bt={iata_code:Le.id,city:Le.cityonly,lat:Le.lat,lng:Le.lng,country_code:Le.cc,name:Le.displayname};le(Wt=>({...Wt,origins:[{...bt,type:"airport",key:Le.id,sectionIndex:-1,disabled:we}]}))}}),r){const Le=r.split(",").map(bt=>iv({query:bt,searchType:Am.Flights}).then(Wt=>{const Rn=Wt.find(Hi=>Hi.id.toLowerCase()===bt?.toLowerCase());return Rn?{iata_code:Rn.id,city:Rn.cityonly,lat:Rn.lat,lng:Rn.lng,country_code:Rn.cc,name:Rn.displayname,type:"airport",key:Rn.id,sectionIndex:-1,disabled:Ce}:null}));Promise.all(Le).then(bt=>{const Wt=bt.filter(Rn=>Rn!==null);Wt.length>0&&le(Rn=>({...Rn,destinations:Wt}))})}P(!!t),ee(!!r)},[t,r,we,Ce]);const Qt=C.useCallback((xe,Le)=>{le({..._e,startDate:xe,endDate:Le}),(xe||Le)&&Tm({name:"Flight Search - Date Range Change",properties:{airport_iata:t||"",origin:he,desination:Q,departure_date:xe?.toISOString(),return_date:Le?.toISOString()}})},[_e,t,he,Q]),ba=C.useCallback((xe,Le)=>{me(xe),be(Le)},[]),Gn=()=>{const{origins:xe,destinations:Le}=_e;P($),ee(Oe),le({..._e,origins:Le,destinations:xe})},bl=xe=>{xe.preventDefault();const Le=new FormData(xe.currentTarget),bt=Object.fromEntries(Le.entries()),Wt=he,Rn=Q,Hi=_e.startDate,Ro=_e.endDate,_l=_e.oneWay;if(!Wt||!Rn||!Hi||!Ro&&!_l)throw new Error("All fields must be filled out");let Sl=Hi.toISOString().split("T")[0],_c=Ro?.toISOString().split("T")[0];if(bt["flexible-dates"]&&!ve){const ys="-flexible-3days";Sl+=ys,_c+=ys}const Ka=bt.cabin,Ln=bt.pax,Kr=yD({worker_domain:x,airport_iata:M||t||Wt,dep_iata:Wt||"",arr_iata:Rn+""||"",departDate:Sl||"",returnDate:_c||"",cabin:Ka||void 0,pax:Ln||void 0,filterState:{providers:z?.join(","),airlines:U?.join(",")},params:{enc_cid:ue||"",enc_lid:u6({airport:M||t||Wt,channel:T||"EMB",action:"SEARCH",userDefinedPage:h||"UNDEF",originIATA:Wt,destinationIATA:Rn}),consent_data_sharing:D,consent_analytics:B,consent_advertising:F,consent_functional:re,from_url:encodeURIComponent(window?.location.href)}});console.log({link:Kr,clickId:ue}),Tm({name:"Flight Search - Search Button Clicked",properties:{airport_iata:t||"",origin:he,desination:Q,departure_date:Hi?.toISOString(),return_date:_e.endDate?.toISOString()}}),window.open(Kr,"_blank")},xl=[{display:"Roundtrip",value:"roundtrip"},{display:"One-way",value:"one-way"}],wl=[{display:"Economy",value:Hd.Enum.economy},{display:"Premium Economy",value:Hd.Enum.premium},{display:"Business",value:Hd.Enum.business},{display:"First",value:Hd.Enum.first}],zi=new Array(9).fill(0).map((xe,Le)=>{const bt=Le+1,Wt=bt>1;return{value:AS.options[Le],display:`${bt} Traveler${Wt?"s":""}`}}),Pi=["Flights",...ie?[]:["Cars"]],wr=C.useMemo(()=>M&&r?.includes(M)?"to":"from",[M,r]),ji=Pi.map((xe,Le)=>R.jsx(C.Fragment,{children:R.jsx("a",{href:Le>0?`${se}/${wr}/${M}/${xe.toLowerCase()}`:"#",onClick:bt=>{Le===0&&bt.preventDefault()},target:"_blank",className:Bt({"a1-text-black a1-border a1-border-1 dark:a1-text-white a1-text-base a1-h-[27px] a1-w-[84px] a1-px-4":!0,"a1-border @xl:hover:a1-bg-secondary a1-grow-0":Le>=1," a1-bg-transparent a1-rounded-lg a1-text-center @xl:hover:a1-text-white":Le>=1,"a1-bg-primary a1-text-white a1-grow-0 a1-rounded-lg":Le===0,"a1-justify-center a1-items-center":Le===0}),children:xe})},Le)),Ui=R.jsx("div",{className:"a1-flex a1-rounded-md a1-items-center a1-justify-center a1-gap-2",children:ji}),xc=R.jsx(v8,{hideByDefault:!0}),wc=R.jsxs("div",{className:"@2xl:a1-flex @2xl:a1-flex-row a1-pb-1 a1-items-center a1-justify-between",children:[R.jsx("div",{className:"a1-flex a1-flex-col @2xl:a1-flex-row a1-items-center @2xl:a1-gap-2 a1-mb-2 @2xl:a1-mb-0",children:R.jsx("div",{role:"heading","aria-level":2,className:"a1-flex a1-justify-center @2xl:a1-justify-start a1-text-[35px] a1-text-black dark:a1-text-white",children:R.jsx(vD,{regMarkClassName:"a1-text-[16px] a1-ml-0.5 a1-leading-none"})})}),R.jsx("div",{className:Bt({"a1-hidden":!0,"@2xl:a1-justify-start @2xl:a1-flex @2xl:a1-w-[175px]":se!==""}),children:Ui}),R.jsx("div",{className:"a1-block @2xl:a1-hidden",children:Ui}),R.jsx("div",{className:Bt({"a1-pb-0.5":!0,"a1-hidden @2xl:a1-flex a1-flex-col a1-items-center @2xl:a1-items-end @2xl:a1-w-[175px]":!0}),children:U&&U.length>0?null:R.jsx("div",{children:xc})})]});return R.jsxs(aw,{client:S8,children:[R.jsx("div",{"data-mode":S,className:"a1-w-full a1-@container a1-relative",children:R.jsxs("form",{className:"a1-flex a1-flex-col a1-gap-2",onSubmit:bl,children:[!fe&&wc,R.jsxs("div",{className:"a1-flex a1-flex-wrap a1-justify-between a1-gap-4 a1-max-w-full a1-w-full",children:[R.jsxs("div",{className:Bt({"a1-flex a1-gap-1 @2xl:a1-gap-4":!0}),children:[R.jsx("select",{"aria-label":"trip-option",name:"trip-option",className:"a1-text-black dark:a1-text-white a1-text-base a1-bg-transparent a1-truncate a1-min-w-0 a1-w-full",onChange:xe=>{le(Le=>({...Le,oneWay:xe.target.value==="one-way"}))},children:xl.map((xe,Le)=>R.jsx("option",{className:"dark:a1-bg-black dark:a1-text-white a1-text-base",value:xe.value,children:xe.display},`${xe.value}-${Le}`))}),R.jsx("select",{name:"pax","aria-label":"pax",className:"a1-text-black dark:a1-text-white a1-text-base a1-bg-transparent a1-truncate a1-min-w-0 a1-w-full",children:zi.map((xe,Le)=>R.jsx("option",{className:"dark:a1-bg-black dark:a1-text-white a1-text-base",value:xe.value,children:xe.display},`${xe.value}-${Le}`))}),R.jsx("select",{name:"cabin","aria-label":"cabin",className:"a1-text-black dark:a1-text-white a1-text-base a1-bg-transparent a1-truncate a1-min-w-0 a1-w-full",children:wl.map((xe,Le)=>R.jsx("option",{className:"dark:a1-bg-black dark:a1-text-white a1-text-base",value:xe.value,children:xe.display},`${xe.value}-${Le}`))})]}),!ve&&R.jsxs("label",{className:"a1-hidden @5xl:a1-block a1-text-black dark:a1-text-white a1-flex a1-items-center a1-text-base",children:[R.jsx("input",{type:"checkbox",name:"flexible-dates",defaultChecked:N})," Show nearby dates for lower fares"]})]}),R.jsxs("div",{className:Bt({"a1-flex a1-flex-col a1-gap-6":!0,"@5xl:a1-grid @5xl:a1-grid-cols-2":!_e.oneWay,"@5xl:a1-grid @5xl:a1-grid-cols-[3fr_400px]":_e.oneWay}),children:[R.jsxs("div",{className:"a1-flex a1-flex-col a1-items-center @xl:a1-grid @xl:a1-grid-cols-[calc(50%-20px)_24px_calc(50%-20px)] a1-w-full a1-gap-2",children:[R.jsx("div",{className:"a1-flex a1-items-center a1-w-full a1-relative a1-z-[100]",children:qe({dataTestId:"flight-search-form-origin",icon:at!=="pending"?R.jsx(rs,{className:"a1-w-6 a1-h-6",icon:v3}):R.jsx(wC,{}),placeholder:"From?",disabled:Oe,items:bn||[],selectedItems:_e.origins,onInputChange:xe=>Dt(xe),onSelectedItemsChange:xe=>{const Le=we?xe?.slice(0,1):xe;Tm({name:"Flight Search - Origin Changed",properties:{airport_iata:t||"",origin:he,desination:Q,departure_date:_e.startDate?.toISOString(),return_date:_e.endDate?.toISOString()}}),le(bt=>({...bt,origins:Le||[]}))}})}),R.jsx("button",{type:"button",className:"a1-w-6 a1-text-gray-500 a1-rotate-90 @xl:a1-rotate-0",onClick:Gn,"aria-label":"Switch Origin and Destination","data-testid":"flight-search-switch-airports-button",children:R.jsx(E6,{})}),R.jsx("div",{className:"a1-flex a1-items-center a1-w-full",children:qe({dataTestId:"flight-search-form-destination-autocomplete",icon:sa!=="pending"?R.jsx(rs,{className:"a1-w-6 a1-h-6",icon:b3}):R.jsx(wC,{}),placeholder:"To?",disabled:$,items:On||[],selectedItems:_e.destinations,onInputChange:xe=>Fn(xe),onSelectedItemsChange:xe=>{const Le=Ce?xe?.slice(0,1):xe;Tm({name:"Flight Search - Destination Changed",properties:{airport_iata:t||"",origin:he,desination:Q,departure_date:_e.startDate?.toISOString(),return_date:_e.endDate?.toISOString()}}),le(bt=>({...bt,destinations:Le||[]}))}})})]}),R.jsxs("div",{className:Bt({"a1-flex a1-flex-col a1-items-center a1-gap-4":!0,"@5xl:a1-flex-row @5xl:a1-items-end @5xl:a1-gap-4":!0,"a1-grow":!0}),children:[R.jsx("div",{className:"a1-w-full @5xl:a1-flex-1 @5xl:a1-min-w-0",children:R.jsx(NN,{origin:he,destination:Q,startDateLabel:y,endDateLabel:b,onChange:Qt,onMonthViewChange:ba,oneWay:_e.oneWay,shadowRoot:j,onlyDirects:z&&U&&z?.length>0&&U?.length>0,flightCalendar:!_e.startDate||_e.oneWay?Xa:xr,flightCalendarStatus:!_e.startDate||_e.oneWay?ta:Da})}),R.jsxs("div",{className:"a1-flex a1-flex-col a1-gap-6 a1-items-center a1-justify-center @5xl:a1-flex-shrink-0",children:[!ve&&R.jsxs("label",{className:"a1-text-black a1-text-base dark:a1-text-white a1-flex a1-items-center @5xl:a1-hidden a1-gap-3",children:[R.jsx("input",{type:"checkbox",name:"flexible-dates",defaultChecked:N}),R.jsx("span",{children:"Show nearby dates for lower fares"})]}),R.jsxs("button",{"aria-label":Be?"Search flights":"Search flights - Please complete all required fields","aria-disabled":!Be,tabIndex:0,type:"submit","data-testid":"flight-search-submit-button",onClick:xe=>{Be||xe.preventDefault()},className:`a1-h-[44px] a1-w-auto a1-min-w-[100px] a1-max-w-[200px] a1-rounded-lg a1-flex a1-align-center a1-items-center a1-gap-1 a1-px-4 focus-visible:a1:outline-none focus-visible:a1-ring-2 focus-visible:a1-ring-offset-2 focus-visible:a1-ring-offset-white dark:focus-visible:a1-ring-offset-black ${Be?"a1-bg-green-500 a1-text-white hover:a1-bg-green-700 active:a1-bg-green-700 focus-visible:a1-ring-green-700 dark:a1-bg-green-600 dark:hover:a1-bg-green-800 dark:active:a1-bg-green-800 dark:focus-visible:a1-ring-green-600":"a1-bg-gray-300 a1-text-gray-700 a1-cursor-not-allowed dark:a1-bg-gray-600 dark:a1-text-gray-300"}`,children:[R.jsx(S6,{}),R.jsx("span",{className:"a1-text-base",children:"Search"})]})]})]})]})]})}),R.jsx("div",{className:"a1-visible @2xl:a1-hidden",children:!fe&&xc})]})}const A8='@tailwind base;@tailwind components;@tailwind utilities;.ao-dialog{background:transparent;border:none;inset:0;margin:10dvh auto 0;max-height:100vh;max-width:100vw;overflow:auto;padding:0;position:fixed;z-index:1000}.ao-dialog::backdrop{background:#000c}.ao-dialog__body{background:#fff;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;margin:2rem auto;max-height:90vh;max-width:32rem;overflow:auto;padding:1.5rem;position:relative}.dark .ao-dialog__body{background:#1f2937;color:#fff}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:host,:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:0 0% 9%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--radius:.5rem}.dark{--background:0 0% 3.9%;--foreground:0 0% 98%;--card:0 0% 3.9%;--card-foreground:0 0% 98%;--popover:0 0% 3.9%;--popover-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:0 0% 9%;--secondary:0 0% 14.9%;--secondary-foreground:0 0% 98%;--muted:0 0% 14.9%;--muted-foreground:0 0% 63.9%;--accent:0 0% 14.9%;--accent-foreground:0 0% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:0 0% 98%;--border:0 0% 14.9%;--input:0 0% 14.9%;--ring:0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}flight-search-form{--color-primary:#1d4ed8;--color-secondary:#bfdbfe}.a1-sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.a1-pointer-events-none{pointer-events:none}.a1-visible{visibility:visible}.a1-fixed{position:fixed}.a1-absolute{position:absolute}.a1-relative{position:relative}.a1-inset-0{inset:0}.a1-inset-x-0{left:0;right:0}.a1-bottom-0{bottom:0}.a1-bottom-12{bottom:3rem}.a1-left-1\\/2{left:50%}.a1-left-2{left:.5rem}.a1-left-4{left:1rem}.a1-left-\\[50\\%\\]{left:50%}.a1-right-2{right:.5rem}.a1-right-4{right:1rem}.a1-top-0{top:0}.a1-top-1\\/2{top:50%}.a1-top-12{top:3rem}.a1-top-4{top:1rem}.a1-top-\\[50\\%\\]{top:50%}.a1-top-full{top:100%}.a1-z-10{z-index:10}.a1-z-100{z-index:100}.a1-z-20{z-index:20}.a1-z-50{z-index:50}.a1-z-\\[100\\]{z-index:100}.a1-m-0{margin:0}.a1-mx-auto{margin-left:auto;margin-right:auto}.a1-mb-0\\.5{margin-bottom:2px}.a1-mb-2{margin-bottom:8px}.a1-ml-0\\.5{margin-left:2px}.a1-ml-2{margin-left:8px}.a1-mt-1{margin-top:4px}.a1-mt-2{margin-top:8px}.a1-mt-4{margin-top:16px}.a1-mt-auto{margin-top:auto}.a1-block{display:block}.a1-flex{display:flex}.a1-inline-flex{display:inline-flex}.a1-grid{display:grid}.a1-hidden{display:none}.a1-h-10{height:40px}.a1-h-11{height:44px}.a1-h-12{height:48px}.a1-h-2{height:8px}.a1-h-4{height:16px}.a1-h-5{height:20px}.a1-h-6{height:24px}.a1-h-8{height:32px}.a1-h-9{height:36px}.a1-h-\\[27px\\]{height:27px}.a1-h-\\[2px\\]{height:2px}.a1-h-\\[44px\\]{height:44px}.a1-h-full{height:100%}.a1-max-h-72{max-height:18rem}.a1-max-h-\\[600px\\]{max-height:600px}.a1-w-1\\/2{width:50%}.a1-w-10{width:40px}.a1-w-11{width:44px}.a1-w-4{width:16px}.a1-w-5{width:20px}.a1-w-6{width:24px}.a1-w-64{width:16rem}.a1-w-8{width:32px}.a1-w-\\[100px\\]{width:100px}.a1-w-\\[300px\\]{width:300px}.a1-w-\\[84px\\]{width:84px}.a1-w-auto{width:auto}.a1-w-full{width:100%}.a1-w-max{width:-moz-max-content;width:max-content}.a1-min-w-0{min-width:0}.a1-min-w-\\[100px\\]{min-width:100px}.a1-min-w-\\[120px\\]{min-width:120px}.a1-min-w-\\[150px\\]{min-width:150px}.a1-min-w-\\[32px\\]{min-width:32px}.a1-min-w-full{min-width:100%}.a1-max-w-\\[200px\\]{max-width:200px}.a1-max-w-\\[95px\\]{max-width:95px}.a1-max-w-full{max-width:100%}.a1-max-w-lg{max-width:32rem}.a1-flex-1{flex:1 1 0%}.a1-shrink{flex-shrink:1}.a1-shrink-0{flex-shrink:0}.a1-flex-grow,.a1-grow{flex-grow:1}.a1-grow-0{flex-grow:0}.a1-basis-full{flex-basis:100%}.a1-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.a1-origin-\\[--radix-tooltip-content-transform-origin\\]{transform-origin:var(--radix-tooltip-content-transform-origin)}.a1--translate-x-1\\/2{--tw-translate-x:-50%}.a1--translate-x-1\\/2,.a1--translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1--translate-y-1\\/2{--tw-translate-y:-50%}.a1-translate-x-1\\/2{--tw-translate-x:50%}.a1-translate-x-1\\/2,.a1-translate-x-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.a1-translate-y-1\\/2{--tw-translate-y:50%}.a1-translate-y-1\\/2,.a1-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.-a1-rotate-45{--tw-rotate:-45deg}.-a1-rotate-45,.a1-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-rotate-90{--tw-rotate:90deg}@keyframes a1-spin{to{transform:rotate(1turn)}}.a1-animate-spin{animation:a1-spin 1s linear infinite}.a1-cursor-default{cursor:default}.a1-cursor-not-allowed{cursor:not-allowed}.a1-cursor-pointer{cursor:pointer}.a1-touch-none{touch-action:none}.a1-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.a1-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.a1-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.a1-grid-cols-\\[24px_1fr\\]{grid-template-columns:24px 1fr}.a1-grid-cols-\\[24px_auto_1fr\\]{grid-template-columns:24px auto 1fr}.a1-grid-cols-\\[24px_auto_auto_1fr\\]{grid-template-columns:24px auto auto 1fr}.a1-grid-cols-\\[24px_auto_auto_auto_1fr\\]{grid-template-columns:24px auto auto auto 1fr}.a1-grid-cols-\\[26px_1fr_30px\\]{grid-template-columns:26px 1fr 30px}.a1-grid-cols-\\[26px_1fr_40px\\]{grid-template-columns:26px 1fr 40px}.a1-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.a1-flex-col{flex-direction:column}.a1-flex-col-reverse{flex-direction:column-reverse}.a1-flex-wrap{flex-wrap:wrap}.a1-items-end{align-items:flex-end}.a1-items-center{align-items:center}.a1-justify-start{justify-content:flex-start}.a1-justify-end{justify-content:flex-end}.a1-justify-center{justify-content:center}.a1-justify-between{justify-content:space-between}.a1-gap-1{gap:4px}.a1-gap-1\\.5{gap:6px}.a1-gap-2{gap:8px}.a1-gap-3{gap:12px}.a1-gap-4{gap:16px}.a1-gap-6{gap:24px}.a1-space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.a1-overflow-hidden{overflow:hidden}.a1-overflow-y-auto{overflow-y:auto}.a1-overflow-x-hidden{overflow-x:hidden}.a1-truncate{overflow:hidden;white-space:nowrap}.a1-text-ellipsis,.a1-truncate{text-overflow:ellipsis}.a1-whitespace-nowrap{white-space:nowrap}.a1-rounded{border-radius:.25rem}.a1-rounded-full{border-radius:9999px}.a1-rounded-lg{border-radius:var(--radius)}.a1-rounded-md{border-radius:calc(var(--radius) - 2px)}.a1-rounded-none{border-radius:0}.a1-rounded-sm{border-radius:calc(var(--radius) - 4px)}.a1-rounded-xl{border-radius:.75rem}.a1-rounded-b-lg{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}.a1-rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.a1-rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.a1-border{border-width:1px}.a1-border-0{border-width:0}.a1-border-2,.a1-border-\\[2px\\]{border-width:2px}.a1-border-b{border-bottom-width:1px}.a1-border-b-0{border-bottom-width:0}.a1-border-b-2{border-bottom-width:2px}.a1-border-l-4{border-left-width:4px}.a1-border-r{border-right-width:1px}.a1-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.a1-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.a1-border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity,1))}.a1-border-input{border-color:hsl(var(--input))}.a1-border-primary{border-color:hsl(var(--primary))}.a1-border-transparent{border-color:transparent}.a1-bg-background{background-color:hsl(var(--background))}.a1-bg-black\\/40{background-color:#0006}.a1-bg-black\\/80{background-color:#000c}.a1-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.a1-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.a1-bg-card{background-color:hsl(var(--card))}.a1-bg-destructive{background-color:hsl(var(--destructive))}.a1-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.a1-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.a1-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.a1-bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.a1-bg-muted{background-color:hsl(var(--muted))}.a1-bg-popover{background-color:hsl(var(--popover))}.a1-bg-primary{background-color:hsl(var(--primary))}.a1-bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.a1-bg-secondary{background-color:hsl(var(--secondary))}.a1-bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity,1))}.a1-bg-transparent{background-color:transparent}.a1-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.a1-fill-indigo-200{fill:#c7d2fe}.a1-fill-indigo-800{fill:#3730a3}.a1-stroke-black{stroke:#000}.a1-stroke-gray-500{stroke:#6b7280}.a1-p-0{padding:0}.a1-p-1{padding:4px}.a1-p-2{padding:8px}.a1-p-4{padding:16px}.a1-p-6{padding:24px}.a1-px-1{padding-left:4px;padding-right:4px}.a1-px-1\\.5{padding-left:6px;padding-right:6px}.a1-px-2{padding-left:8px;padding-right:8px}.a1-px-2\\.5{padding-left:10px;padding-right:10px}.a1-px-3{padding-left:12px;padding-right:12px}.a1-px-4{padding-left:16px;padding-right:16px}.a1-px-5{padding-left:20px;padding-right:20px}.a1-px-8{padding-left:32px;padding-right:32px}.a1-px-\\[4px\\]{padding-left:4px;padding-right:4px}.a1-py-0\\.5{padding-bottom:2px;padding-top:2px}.a1-py-1{padding-bottom:4px;padding-top:4px}.a1-py-1\\.5{padding-bottom:6px;padding-top:6px}.a1-py-2{padding-bottom:8px;padding-top:8px}.a1-py-2\\.5{padding-bottom:10px;padding-top:10px}.a1-py-3{padding-bottom:12px;padding-top:12px}.a1-py-4{padding-bottom:16px;padding-top:16px}.a1-py-\\[2px\\]{padding-top:2px}.a1-pb-0\\.5,.a1-py-\\[2px\\]{padding-bottom:2px}.a1-pb-1{padding-bottom:4px}.a1-pb-2{padding-bottom:8px}.a1-pb-\\[4px\\]{padding-bottom:4px}.a1-pl-0{padding-left:0}.a1-pl-2{padding-left:8px}.a1-pl-3{padding-left:12px}.a1-pl-4{padding-left:16px}.a1-pl-5{padding-left:20px}.a1-pr-2{padding-right:8px}.a1-pr-4{padding-right:16px}.a1-pr-7{padding-right:28px}.a1-pt-0{padding-top:0}.a1-pt-2{padding-top:8px}.a1-pt-\\[2px\\]{padding-top:2px}.a1-text-left{text-align:left}.a1-text-center{text-align:center}.a1-text-2xl{font-size:1.5rem;line-height:2rem}.a1-text-\\[0\\.5em\\]{font-size:.5em}.a1-text-\\[10px\\]{font-size:10px}.a1-text-\\[12px\\]{font-size:12px}.a1-text-\\[14px\\]{font-size:14px}.a1-text-\\[16px\\]{font-size:16px}.a1-text-\\[35px\\]{font-size:35px}.a1-text-\\[8px\\]{font-size:8px}.a1-text-base{font-size:16px}.a1-text-lg{font-size:18px}.a1-text-sm{font-size:14px}.a1-text-xl{font-size:20px}.a1-text-xs{font-size:12px}.a1-font-bold{font-weight:700}.a1-font-extralight{font-weight:200}.a1-font-light{font-weight:300}.a1-font-medium{font-weight:500}.a1-font-semibold{font-weight:600}.a1-uppercase{text-transform:uppercase}.a1-leading-\\[16px\\]{line-height:16px}.a1-leading-\\[20px\\]{line-height:20px}.a1-leading-none{line-height:1}.a1-leading-tight{line-height:1.25}.a1-tracking-\\[\\.1em\\]{letter-spacing:.1em}.a1-tracking-tight{letter-spacing:-.025em}.a1-text-\\[\\#565656\\]{--tw-text-opacity:1;color:rgb(86 86 86/var(--tw-text-opacity,1))}.a1-text-\\[\\#5b5b5b\\]{--tw-text-opacity:1;color:rgb(91 91 91/var(--tw-text-opacity,1))}.a1-text-\\[\\#838383\\]{--tw-text-opacity:1;color:rgb(131 131 131/var(--tw-text-opacity,1))}.a1-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.a1-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.a1-text-card-foreground{color:hsl(var(--card-foreground))}.a1-text-destructive-foreground{color:hsl(var(--destructive-foreground))}.a1-text-foreground{color:hsl(var(--foreground))}.a1-text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.a1-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.a1-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.a1-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.a1-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.a1-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.a1-text-muted-foreground{color:hsl(var(--muted-foreground))}.a1-text-popover-foreground{color:hsl(var(--popover-foreground))}.a1-text-primary{color:hsl(var(--primary))}.a1-text-primary-foreground{color:hsl(var(--primary-foreground))}.a1-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.a1-text-secondary-foreground{color:hsl(var(--secondary-foreground))}.a1-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.a1-underline-offset-4{text-underline-offset:4px}.a1-opacity-50{opacity:.5}.a1-opacity-60{opacity:.6}.a1-opacity-70{opacity:.7}.a1-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.a1-shadow,.a1-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.a1-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.a1-shadow-md,.a1-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.a1-outline-none{outline:2px solid transparent;outline-offset:2px}.a1-ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.a1-ring-0,.a1-ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.a1-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.a1-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.a1-ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity,1))}.a1-ring-primary{--tw-ring-color:hsl(var(--primary))}.a1-ring-slate-500{--tw-ring-opacity:1;--tw-ring-color:rgb(100 116 139/var(--tw-ring-opacity,1))}.a1-ring-opacity-75{--tw-ring-opacity:.75}.a1-ring-offset-2{--tw-ring-offset-width:2px}.a1-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.a1-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-\\@container{container-type:inline-size}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.a1-animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-duration:.15s;animation-name:enter}.a1-fade-in-0{--tw-enter-opacity:0}.a1-zoom-in-95{--tw-enter-scale:.95}:host{font-family:inherit;font-style:normal;font-weight:300}.before\\:a1-absolute:before{content:var(--tw-content);position:absolute}.before\\:a1-bottom-0:before{bottom:0;content:var(--tw-content)}.before\\:a1-left-0:before{content:var(--tw-content);left:0}.before\\:a1-left-1\\/2:before{content:var(--tw-content);left:50%}.before\\:a1-right-0:before{content:var(--tw-content);right:0}.before\\:a1-right-1\\/2:before{content:var(--tw-content);right:50%}.before\\:a1-top-0:before{content:var(--tw-content);top:0}.before\\:a1-bg-gray-200:before{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:a1-absolute:after{content:var(--tw-content);position:absolute}.after\\:a1-bottom-0:after{bottom:0;content:var(--tw-content)}.after\\:a1-left-0:after{content:var(--tw-content);left:0}.after\\:a1-right-0:after{content:var(--tw-content);right:0}.after\\:a1-top-0:after{content:var(--tw-content);top:0}.after\\:a1-rounded-sm:after{border-radius:calc(var(--radius) - 4px);content:var(--tw-content)}.after\\:a1-bg-gray-600:after{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1));content:var(--tw-content)}.focus-within\\:a1-ring-primary:focus-within{--tw-ring-color:hsl(var(--primary))}.hover\\:a1-bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:a1-bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.hover\\:a1-bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.hover\\:a1-bg-destructive\\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\\:a1-bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\\:a1-bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.hover\\:a1-bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:a1-bg-primary:hover{background-color:hsl(var(--primary))}.hover\\:a1-bg-primary\\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\\:a1-bg-secondary\\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\\:a1-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:a1-text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\\:a1-text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\\:a1-underline:hover{text-decoration-line:underline}.hover\\:before\\:a1-ring-primary:hover:before{--tw-ring-color:hsl(var(--primary));content:var(--tw-content)}.hover\\:after\\:a1-absolute:hover:after{content:var(--tw-content);position:absolute}.hover\\:after\\:a1-left-0:hover:after{content:var(--tw-content);left:0}.hover\\:after\\:a1-right-0:hover:after{content:var(--tw-content);right:0}.hover\\:after\\:a1-z-10:hover:after{content:var(--tw-content);z-index:10}.hover\\:after\\:a1-h-full:hover:after{content:var(--tw-content);height:100%}.hover\\:after\\:a1-w-full:hover:after{content:var(--tw-content);width:100%}.hover\\:after\\:a1-rounded-sm:hover:after{border-radius:calc(var(--radius) - 4px);content:var(--tw-content)}.hover\\:after\\:a1-ring-2:hover:after{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);content:var(--tw-content)}.focus\\:a1-bg-gray-400:focus{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.focus\\:a1-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:a1-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:a1-ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\\:a1-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:a1-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:a1-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:a1-ring-gray-400:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(156 163 175/var(--tw-ring-opacity,1))}.focus-visible\\:a1-ring-green-700:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(21 128 61/var(--tw-ring-opacity,1))}.focus-visible\\:a1-ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\\:a1-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\\:a1-ring-offset-white:focus-visible{--tw-ring-offset-color:#fff}.active\\:a1-bg-green-700:active{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.disabled\\:a1-pointer-events-none:disabled{pointer-events:none}.disabled\\:a1-bg-transparent:disabled{background-color:transparent}.disabled\\:a1-bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.disabled\\:a1-opacity-50:disabled{opacity:.5}.data-\\[state\\=active\\]\\:a1-bg-secondary[data-state=active]{background-color:hsl(var(--secondary))}.data-\\[state\\=active\\]\\:a1-text-white[data-state=active]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:a1-shadow-sm[data-state=active]{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}@container (min-width: 576px){.\\@xl\\:a1-grid{display:grid}.\\@xl\\:a1-rotate-0{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\@xl\\:a1-grid-cols-\\[calc\\(50\\%-20px\\)_24px_calc\\(50\\%-20px\\)\\]{grid-template-columns:calc(50% - 20px) 24px calc(50% - 20px)}.\\@xl\\:hover\\:a1-bg-secondary:hover{background-color:hsl(var(--secondary))}.\\@xl\\:hover\\:a1-text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}}@container (min-width: 672px){.\\@2xl\\:a1-bottom-2{bottom:.5rem}.\\@2xl\\:a1-left-1\\/2{left:50%}.\\@2xl\\:a1-top-2{top:.5rem}.\\@2xl\\:a1-mb-0{margin-bottom:0}.\\@2xl\\:a1-flex{display:flex}.\\@2xl\\:a1-hidden{display:none}.\\@2xl\\:a1-h-\\[initial\\]{height:auto}.\\@2xl\\:a1-w-\\[175px\\]{width:175px}.\\@2xl\\:a1-w-\\[2px\\]{width:2px}.\\@2xl\\:a1-flex-row{flex-direction:row}.\\@2xl\\:a1-items-end{align-items:flex-end}.\\@2xl\\:a1-items-center{align-items:center}.\\@2xl\\:a1-justify-start{justify-content:flex-start}.\\@2xl\\:a1-gap-2{gap:8px}.\\@2xl\\:a1-gap-4{gap:16px}}@container (min-width: 1024px){.\\@5xl\\:a1-block{display:block}.\\@5xl\\:a1-grid{display:grid}.\\@5xl\\:a1-hidden{display:none}.\\@5xl\\:a1-min-w-0{min-width:0}.\\@5xl\\:a1-flex-1{flex:1 1 0%}.\\@5xl\\:a1-flex-shrink-0{flex-shrink:0}.\\@5xl\\:a1-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@5xl\\:a1-grid-cols-\\[3fr_400px\\]{grid-template-columns:3fr 400px}.\\@5xl\\:a1-flex-row{flex-direction:row}.\\@5xl\\:a1-items-end{align-items:flex-end}.\\@5xl\\:a1-gap-4{gap:16px}}.dark\\:a1-border-gray-600:is([data-mode=dark] *){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.dark\\:a1-bg-black:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.dark\\:a1-bg-gray-600:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.dark\\:a1-bg-gray-800:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:a1-bg-green-600:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.dark\\:a1-stroke-gray-100:is([data-mode=dark] *){stroke:#f3f4f6}.dark\\:a1-text-gray-300:is([data-mode=dark] *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.dark\\:a1-text-white:is([data-mode=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:a1-bg-green-800:hover:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity,1))}.dark\\:focus-visible\\:a1-ring-green-600:focus-visible:is([data-mode=dark] *){--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity,1))}.dark\\:focus-visible\\:a1-ring-offset-black:focus-visible:is([data-mode=dark] *){--tw-ring-offset-color:#000}.dark\\:active\\:a1-bg-green-800:active:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity,1))}@media (min-width:768px){.md\\:a1-left-10{left:2.5rem}.md\\:a1-right-10{right:2.5rem}.md\\:a1-mr-1{margin-right:4px}.md\\:a1-mt-2{margin-top:8px}.md\\:a1-h-12{height:48px}.md\\:a1-w-12{width:48px}.md\\:a1-w-\\[150px\\]{width:150px}.md\\:a1-w-auto{width:auto}.md\\:a1-min-w-\\[325px\\]{min-width:325px}.md\\:a1-flex-1{flex:1 1 0%}.md\\:a1-p-4{padding:16px}.md\\:a1-py-2{padding-top:8px}.md\\:a1-pb-2,.md\\:a1-py-2{padding-bottom:8px}.md\\:a1-pb-4{padding-bottom:16px}.md\\:a1-text-\\[16px\\]{font-size:16px}}';function C8(e){const t=e.trim();return/^(?:\d+\.?\d*|\.\d+)$/.test(t)?`${t.endsWith(".")?t.slice(0,-1):t}px`:t}function bc(e,t){if(e===void 0)return t;const r=e.trim().toLowerCase();return t?r!=="false":r==="true"}const T8=new ew,O8=Object.keys(_8.shape);function R8(e){return R.jsxs(aw,{client:T8,children:[R.jsx("style",{children:A8}),R.jsx(E8,{...e})]})}class SC extends HTMLElement{connectedCallback(){this.style.position="relative",this.style.zIndex="10",this.style.lineHeight="1.5",this.style.display="flex",this.style.flexDirection="column";const t=document.createElement("span"),r=this.attachShadow({mode:"closed"});r.appendChild(t);const i=O8.reduce((N,j)=>{const M=this.getAttribute(j.toLocaleLowerCase());return M!=null&&(N[j]=M),N},{});typeof i.defaultNearbyDatesForLowerFares=="string"&&(i.defaultNearbyDatesForLowerFares=bc(i.defaultNearbyDatesForLowerFares,!1)),typeof i.consentDataSharing=="string"&&(i.consentDataSharing=bc(i.consentDataSharing,!0)),typeof i.consentFunctional=="string"&&(i.consentFunctional=bc(i.consentFunctional,!0)),typeof i.consentAnalytics=="string"&&(i.consentAnalytics=bc(i.consentAnalytics,!0)),typeof i.consentAdvertising=="string"&&(i.consentAdvertising=bc(i.consentAdvertising,!0)),typeof i.hideCarButton=="string"&&(i.hideCarButton=bc(i.hideCarButton,!1));const l=typeof i.primaryColor=="string"&&i.primaryColor.trim()!==""?i.primaryColor:"#0B89FF",f=typeof i.secondaryColor=="string"&&i.secondaryColor.trim()!==""?i.secondaryColor:"#0B89FF",h=this,m=getComputedStyle(h),y=m.getPropertyValue("--color-primary").trim(),b=m.getPropertyValue("--color-secondary").trim(),x=m.getPropertyValue("--radius").trim();(typeof i.primaryColor=="string"&&i.primaryColor.trim()!==""||!y)&&h.style.setProperty("--color-primary",l),(typeof i.secondaryColor=="string"&&i.secondaryColor.trim()!==""||!b)&&h.style.setProperty("--color-secondary",f);const S=this.getAttribute("borderradius");if(typeof S=="string"&&S.trim()!==""||!x){const N=typeof S=="string"&&S.trim()!==""?C8(S):"0.5rem";h.style.setProperty("--radius",N)}y3.createRoot(t).render(R.jsx(R8,{apiDomain:"https://flymyairport.vercel.app",shadowRoot:r,...i}))}}return customElements.define("flight-search-form",SC),SC})();
|
|
723
|
+
*/var oA;function KN(){if(oA)return Ht;oA=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),j;j=Symbol.for("react.module.reference");function D(R){if(typeof R=="object"&&R!==null){var q=R.$$typeof;switch(q){case t:switch(R=R.type,R){case r:case l:case i:case b:case w:return R;default:switch(R=R&&R.$$typeof,R){case g:case h:case y:case A:case E:case f:return R;default:return q}}case n:return q}}}return Ht.ContextConsumer=h,Ht.ContextProvider=f,Ht.Element=t,Ht.ForwardRef=y,Ht.Fragment=r,Ht.Lazy=A,Ht.Memo=E,Ht.Portal=n,Ht.Profiler=l,Ht.StrictMode=i,Ht.Suspense=b,Ht.SuspenseList=w,Ht.isAsyncMode=function(){return!1},Ht.isConcurrentMode=function(){return!1},Ht.isContextConsumer=function(R){return D(R)===h},Ht.isContextProvider=function(R){return D(R)===f},Ht.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},Ht.isForwardRef=function(R){return D(R)===y},Ht.isFragment=function(R){return D(R)===r},Ht.isLazy=function(R){return D(R)===A},Ht.isMemo=function(R){return D(R)===E},Ht.isPortal=function(R){return D(R)===n},Ht.isProfiler=function(R){return D(R)===l},Ht.isStrictMode=function(R){return D(R)===i},Ht.isSuspense=function(R){return D(R)===b},Ht.isSuspenseList=function(R){return D(R)===w},Ht.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===i||R===b||R===w||R===I||typeof R=="object"&&R!==null&&(R.$$typeof===A||R.$$typeof===E||R.$$typeof===f||R.$$typeof===h||R.$$typeof===y||R.$$typeof===j||R.getModuleId!==void 0)},Ht.typeOf=D,Ht}var sA;function JN(){return sA||(sA=1,xb.exports=KN()),xb.exports}JN();const lA=t=>typeof t=="object"&&t!=null&&t.nodeType===1,uA=(t,n)=>(!n||t!=="hidden")&&t!=="visible"&&t!=="clip",Rg=(t,n)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const r=getComputedStyle(t,null);return uA(r.overflowY,n)||uA(r.overflowX,n)||(i=>{const l=(f=>{if(!f.ownerDocument||!f.ownerDocument.defaultView)return null;try{return f.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!l&&(l.clientHeight<i.scrollHeight||l.clientWidth<i.scrollWidth)})(t)}return!1},Mg=(t,n,r,i,l,f,h,g)=>f<t&&h>n||f>t&&h<n?0:f<=t&&g<=r||h>=n&&g>=r?f-t-i:h>n&&g<r||f<t&&g>r?h-n+l:0,e8=t=>{const n=t.parentElement;return n??(t.getRootNode().host||null)},t8=(t,n)=>{var r,i,l,f;if(typeof document>"u")return[];const{inline:h,boundary:g,skipOverflowHiddenElements:y}=n,b=typeof g=="function"?g:le=>le!==g;if(!lA(t))throw new TypeError("Invalid target");const w=document.scrollingElement||document.documentElement,E=[];let A=t;for(;lA(A)&&b(A);){if(A=e8(A),A===w){E.push(A);break}A!=null&&A===document.body&&Rg(A)&&!Rg(document.documentElement)||A!=null&&Rg(A,y)&&E.push(A)}const I=(i=(r=window.visualViewport)==null?void 0:r.width)!=null?i:innerWidth,j=(f=(l=window.visualViewport)==null?void 0:l.height)!=null?f:innerHeight,{scrollX:D,scrollY:R}=window,{height:q,width:Y,top:re,right:G,bottom:te,left:ye}=t.getBoundingClientRect(),{top:ce,right:X,left:ve}=(le=>{const se=window.getComputedStyle(le);return{top:parseFloat(se.scrollMarginTop)||0,right:parseFloat(se.scrollMarginRight)||0,bottom:parseFloat(se.scrollMarginBottom)||0,left:parseFloat(se.scrollMarginLeft)||0}})(t);let Ee=re-ce,Re=h==="center"?ye+Y/2-ve+X:h==="end"?G+X:ye-ve;const be=[];for(let le=0;le<E.length;le++){const se=E[le],{height:de,width:Q,top:U,right:z,bottom:xe,left:Oe}=se.getBoundingClientRect();if(re>=0&&ye>=0&&te<=j&&G<=I&&(se===w&&!Rg(se)||re>=U&&te<=xe&&ye>=Oe&&G<=z))return be;const Ve=getComputedStyle(se),k=parseInt(Ve.borderLeftWidth,10),F=parseInt(Ve.borderTopWidth,10),W=parseInt(Ve.borderRightWidth,10),ue=parseInt(Ve.borderBottomWidth,10);let Te=0,_e=0;const Me="offsetWidth"in se?se.offsetWidth-se.clientWidth-k-W:0,We="offsetHeight"in se?se.offsetHeight-se.clientHeight-F-ue:0,Ze="offsetWidth"in se?se.offsetWidth===0?0:Q/se.offsetWidth:0,Ke="offsetHeight"in se?se.offsetHeight===0?0:de/se.offsetHeight:0;if(w===se)Te=Mg(R,R+j,j,F,ue,R+Ee,R+Ee+q,q),_e=h==="start"?Re:h==="center"?Re-I/2:h==="end"?Re-I:Mg(D,D+I,I,k,W,D+Re,D+Re+Y,Y),Te=Math.max(0,Te+R),_e=Math.max(0,_e+D);else{Te=Mg(U,xe,de,F,ue+We,Ee,Ee+q,q),_e=h==="start"?Re-Oe-k:h==="center"?Re-(Oe+Q/2)+Me/2:h==="end"?Re-z+W+Me:Mg(Oe,z,Q,k,W+Me,Re,Re+Y,Y);const{scrollLeft:kt,scrollTop:bn}=se;Te=Ke===0?0:Math.max(0,Math.min(bn+Te/Ke,se.scrollHeight-de/Ke+We)),_e=Ze===0?0:Math.max(0,Math.min(kt+_e/Ze,se.scrollWidth-Q/Ze+Me)),Ee+=bn-Te,Re+=kt-_e}be.push({el:se,top:Te,left:_e})}return be};var n8=0;function cA(){}function a8(t,n){if(t){var r=t8(t,{boundary:n});r.forEach(function(i){var l=i.el,f=i.top,h=i.left;l.scrollTop=f,l.scrollLeft=h})}}function fA(t,n,r){var i=t===n||n instanceof r.Node&&t.contains&&t.contains(n);return i}function dA(t,n){var r;function i(){r&&clearTimeout(r)}function l(){for(var f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];i(),r=setTimeout(function(){r=null,t.apply(void 0,h)},n)}return l.cancel=i,l}function dr(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){for(var l=arguments.length,f=new Array(l>1?l-1:0),h=1;h<l;h++)f[h-1]=arguments[h];return n.some(function(g){return g&&g.apply(void 0,[i].concat(f)),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault})}}function Bc(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){n.forEach(function(l){typeof l=="function"?l(i):l&&(l.current=i)})}}function r8(){return String(n8++)}function Dg(t,n){return!t||!n?t:Object.keys(t).reduce(function(r,i){return r[i]=hA(n,i)?n[i]:t[i],r},{})}function hA(t,n){return t[n]!==void 0}function wb(t){var n=t.key,r=t.keyCode;return r>=37&&r<=40&&n.indexOf("Arrow")!==0?"Arrow"+n:n}function kg(t,n,r,i,l){var f=r.length;if(f===0)return-1;var h=f-1;(typeof t!="number"||t<0||t>h)&&(t=n>0?-1:h+1);var g=t+n;g<0?g=h:g>h&&(g=0);var y=Ng(g,n<0,r,i,l);return y===-1?t>=f?-1:t:y}function Ng(t,n,r,i,l){l===void 0&&(l=!1);var f=r.length;if(n){for(var h=t;h>=0;h--)if(!i(r[h],h))return h}else for(var g=t;g<f;g++)if(!i(r[g],g))return g;return l?Ng(n?f-1:0,n,r,i):-1}function pA(t,n,r,i){return i===void 0&&(i=!0),r&&n.some(function(l){return l&&(fA(l,t,r)||i&&fA(l,r.document.activeElement,r))})}var i8=dA(function(t){mA(t).textContent=""},500);function mA(t){var n=t.getElementById("a11y-status-message");return n||(n=t.createElement("div"),n.setAttribute("id","a11y-status-message"),n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-relevant","additions text"),Object.assign(n.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),t.body.appendChild(n),n)}function o8(t,n){if(!(!t||!n)){var r=mA(n);r.textContent=t,i8(n)}}function s8(t){var n=t?.getElementById("a11y-status-message");n&&n.remove()}var gA={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function l8(t,n,r){var i=t.props,l=t.type,f={};Object.keys(n).forEach(function(h){u8(h,t,n,r),r[h]!==n[h]&&(f[h]=r[h])}),i.onStateChange&&Object.keys(f).length&&i.onStateChange(Wt({type:l},f))}function u8(t,n,r,i){var l=n.props,f=n.type,h="on"+_b(t)+"Change";l[h]&&i[t]!==void 0&&i[t]!==r[t]&&l[h](Wt({type:f},i))}function c8(t,n){return n.changes}var yA=dA(function(t,n){o8(t,n)},200),f8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect,d8="useId"in Dl?function(n){var r=n.id,i=n.labelId,l=n.menuId,f=n.getItemId,h=n.toggleButtonId,g=n.inputId,y="downshift-"+Dl.useId();r||(r=y);var b=T.useRef({labelId:i||r+"-label",menuId:l||r+"-menu",getItemId:f||function(w){return r+"-item-"+w},toggleButtonId:h||r+"-toggle-button",inputId:g||r+"-input"});return b.current}:function(n){var r=n.id,i=r===void 0?"downshift-"+r8():r,l=n.labelId,f=n.menuId,h=n.getItemId,g=n.toggleButtonId,y=n.inputId,b=T.useRef({labelId:l||i+"-label",menuId:f||i+"-menu",getItemId:h||function(w){return i+"-item-"+w},toggleButtonId:g||i+"-toggle-button",inputId:y||i+"-input"});return b.current};function vA(t,n,r,i){var l,f;if(t===void 0){if(n===void 0)throw new Error(i);l=r[n],f=n}else f=n===void 0?r.indexOf(t):n,l=t;return[l,f]}function _b(t){return""+t.slice(0,1).toUpperCase()+t.slice(1)}function Sb(t){var n=T.useRef(t);return n.current=t,n}function bA(t,n,r,i){var l=T.useRef(),f=T.useRef(),h=T.useCallback(function(I,j){f.current=j,I=Dg(I,j.props);var D=t(I,j),R=j.props.stateReducer(I,Wt({},j,{changes:D}));return R},[t]),g=T.useReducer(h,n,r),y=g[0],b=g[1],w=Sb(n),E=T.useCallback(function(I){return b(Wt({props:w.current},I))},[w]),A=f.current;return T.useEffect(function(){var I=Dg(l.current,A?.props),j=A&&l.current&&!i(I,y);j&&l8(A,I,y),l.current=y},[y,A,i]),[y,E]}function h8(t,n,r,i){var l=bA(t,n,r,i),f=l[0],h=l[1];return[Dg(f,n),h]}var hh={itemToString:function(n){return n?String(n):""},itemToKey:function(n){return n},stateReducer:c8,scrollIntoView:a8,environment:typeof window>"u"?void 0:window};function Mo(t,n,r){r===void 0&&(r=gA);var i=t["default"+_b(n)];return i!==void 0?i:r[n]}function qc(t,n,r){r===void 0&&(r=gA);var i=t[n];if(i!==void 0)return i;var l=t["initial"+_b(n)];return l!==void 0?l:Mo(t,n,r)}function p8(t){var n=qc(t,"selectedItem"),r=qc(t,"isOpen"),i=v8(t),l=qc(t,"inputValue");return{highlightedIndex:i<0&&n&&r?t.items.findIndex(function(f){return t.itemToKey(f)===t.itemToKey(n)}):i,isOpen:r,selectedItem:n,inputValue:l}}function ph(t,n,r){var i=t.items,l=t.initialHighlightedIndex,f=t.defaultHighlightedIndex,h=t.isItemDisabled,g=t.itemToKey,y=n.selectedItem,b=n.highlightedIndex;return i.length===0?-1:l!==void 0&&b===l&&!h(i[l],l)?l:f!==void 0&&!h(i[f],f)?f:y?i.findIndex(function(w){return g(y)===g(w)}):r<0&&!h(i[i.length-1],i.length-1)?i.length-1:r>0&&!h(i[0],0)?0:-1}function m8(t,n,r){var i=T.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return T.useEffect(function(){if(!t)return cA;var l=r.map(function(w){return w.current});function f(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function h(w){i.current.isMouseDown=!1,pA(w.target,l,t)||n()}function g(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function y(){i.current.isTouchMove=!0}function b(w){i.current.isTouchEnd=!0,!i.current.isTouchMove&&!pA(w.target,l,t,!1)&&n()}return t.addEventListener("mousedown",f),t.addEventListener("mouseup",h),t.addEventListener("touchstart",g),t.addEventListener("touchmove",y),t.addEventListener("touchend",b),function(){t.removeEventListener("mousedown",f),t.removeEventListener("mouseup",h),t.removeEventListener("touchstart",g),t.removeEventListener("touchmove",y),t.removeEventListener("touchend",b)}},[r,t,n]),i.current}var xA=function(){return cA};function wA(t,n,r,i){i===void 0&&(i={});var l=i.document,f=Ig();T.useEffect(function(){if(!(!t||f||!l)){var h=t(n);yA(h,l)}},r),T.useEffect(function(){return function(){yA.cancel(),s8(l)}},[l])}function g8(t){var n=t.highlightedIndex,r=t.isOpen,i=t.itemRefs,l=t.getItemNodeFromIndex,f=t.menuElement,h=t.scrollIntoView,g=T.useRef(!0);return f8(function(){n<0||!r||!Object.keys(i.current).length||(g.current===!1?g.current=!0:h(l(n),f))},[n]),g}function _A(t,n,r){var i;r===void 0&&(r=!0);var l=((i=t.items)==null?void 0:i.length)&&n>=0;return Wt({isOpen:!1,highlightedIndex:-1},l&&Wt({selectedItem:t.items[n],isOpen:Mo(t,"isOpen"),highlightedIndex:Mo(t,"highlightedIndex")},r&&{inputValue:t.itemToString(t.items[n])}))}function y8(t,n){return t.isOpen===n.isOpen&&t.inputValue===n.inputValue&&t.highlightedIndex===n.highlightedIndex&&t.selectedItem===n.selectedItem}function Ig(){var t=Dl.useRef(!0);return Dl.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),t.current}function Cb(t){var n=Mo(t,"highlightedIndex");return n>-1&&t.isItemDisabled(t.items[n],n)?-1:n}function v8(t){var n=qc(t,"highlightedIndex");return n>-1&&t.isItemDisabled(t.items[n],n)?-1:n}var Lg={environment:Ae.shape({addEventListener:Ae.func.isRequired,removeEventListener:Ae.func.isRequired,document:Ae.shape({createElement:Ae.func.isRequired,getElementById:Ae.func.isRequired,activeElement:Ae.any.isRequired,body:Ae.any.isRequired}).isRequired,Node:Ae.func.isRequired}),itemToString:Ae.func,itemToKey:Ae.func,stateReducer:Ae.func},SA=Wt({},Lg,{getA11yStatusMessage:Ae.func,highlightedIndex:Ae.number,defaultHighlightedIndex:Ae.number,initialHighlightedIndex:Ae.number,isOpen:Ae.bool,defaultIsOpen:Ae.bool,initialIsOpen:Ae.bool,selectedItem:Ae.any,initialSelectedItem:Ae.any,defaultSelectedItem:Ae.any,id:Ae.string,labelId:Ae.string,menuId:Ae.string,getItemId:Ae.func,toggleButtonId:Ae.string,onSelectedItemChange:Ae.func,onHighlightedIndexChange:Ae.func,onStateChange:Ae.func,onIsOpenChange:Ae.func,scrollIntoView:Ae.func});function b8(t,n,r){var i=n.type,l=n.props,f;switch(i){case r.ItemMouseMove:f={highlightedIndex:n.disabled?-1:n.index};break;case r.MenuMouseLeave:f={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:f={isOpen:!t.isOpen,highlightedIndex:t.isOpen?-1:ph(l,t,0)};break;case r.FunctionOpenMenu:f={isOpen:!0,highlightedIndex:ph(l,t,0)};break;case r.FunctionCloseMenu:f={isOpen:!1};break;case r.FunctionSetHighlightedIndex:f={highlightedIndex:l.isItemDisabled(l.items[n.highlightedIndex],n.highlightedIndex)?-1:n.highlightedIndex};break;case r.FunctionSetInputValue:f={inputValue:n.inputValue};break;case r.FunctionReset:f={highlightedIndex:Cb(l),isOpen:Mo(l,"isOpen"),selectedItem:Mo(l,"selectedItem"),inputValue:Mo(l,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Wt({},t,f)}Ga(Ga({},SA),{items:Ae.array.isRequired,isItemDisabled:Ae.func}),Ga(Ga({},hh),{isItemDisabled:function(){return!1}});var Eb=0,Ab=1,Tb=2,Ob=3,Rb=4,Mb=5,Db=6,kb=7,Nb=8,zg=9,Ib=10,CA=11,EA=12,Lb=13,AA=14,TA=15,OA=16,RA=17,MA=18,zb=19,DA=20,kA=21,jb=22,NA=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:jb,FunctionCloseMenu:RA,FunctionOpenMenu:OA,FunctionReset:kA,FunctionSelectItem:zb,FunctionSetHighlightedIndex:MA,FunctionSetInputValue:DA,FunctionToggleMenu:TA,InputBlur:zg,InputChange:Nb,InputClick:Ib,InputKeyDownArrowDown:Eb,InputKeyDownArrowUp:Ab,InputKeyDownEnd:Rb,InputKeyDownEnter:kb,InputKeyDownEscape:Tb,InputKeyDownHome:Ob,InputKeyDownPageDown:Db,InputKeyDownPageUp:Mb,ItemClick:Lb,ItemMouseMove:EA,MenuMouseLeave:CA,ToggleButtonClick:AA});function x8(t){var n=p8(t),r=n.selectedItem,i=n.inputValue;return i===""&&r&&t.defaultInputValue===void 0&&t.initialInputValue===void 0&&t.inputValue===void 0&&(i=t.itemToString(r)),Wt({},n,{inputValue:i})}Wt({},SA,{items:Ae.array.isRequired,isItemDisabled:Ae.func,inputValue:Ae.string,defaultInputValue:Ae.string,initialInputValue:Ae.string,inputId:Ae.string,onInputValueChange:Ae.func});function w8(t,n,r,i){var l=T.useRef(),f=bA(t,n,r,i),h=f[0],g=f[1],y=Ig();return T.useEffect(function(){if(hA(n,"selectedItem")){if(!y){var b=n.itemToKey(n.selectedItem)!==n.itemToKey(l.current);b&&g({type:jb,inputValue:n.itemToString(n.selectedItem)})}l.current=h.selectedItem===l.current?n.selectedItem:h.selectedItem}},[h.selectedItem,n.selectedItem]),[Dg(h,n),g]}var _8=Wt({},hh,{isItemDisabled:function(){return!1}});function S8(t,n){var r,i=n.type,l=n.props,f=n.altKey,h;switch(i){case Lb:h={isOpen:Mo(l,"isOpen"),highlightedIndex:Cb(l),selectedItem:l.items[n.index],inputValue:l.itemToString(l.items[n.index])};break;case Eb:t.isOpen?h={highlightedIndex:kg(t.highlightedIndex,1,l.items,l.isItemDisabled,!0)}:h={highlightedIndex:f&&t.selectedItem==null?-1:ph(l,t,1),isOpen:l.items.length>=0};break;case Ab:t.isOpen?f?h=_A(l,t.highlightedIndex):h={highlightedIndex:kg(t.highlightedIndex,-1,l.items,l.isItemDisabled,!0)}:h={highlightedIndex:ph(l,t,-1),isOpen:l.items.length>=0};break;case kb:h=_A(l,t.highlightedIndex);break;case Tb:h=Wt({isOpen:!1,highlightedIndex:-1},!t.isOpen&&{selectedItem:null,inputValue:""});break;case Mb:h={highlightedIndex:kg(t.highlightedIndex,-10,l.items,l.isItemDisabled,!0)};break;case Db:h={highlightedIndex:kg(t.highlightedIndex,10,l.items,l.isItemDisabled,!0)};break;case Ob:h={highlightedIndex:Ng(0,!1,l.items,l.isItemDisabled)};break;case Rb:h={highlightedIndex:Ng(l.items.length-1,!0,l.items,l.isItemDisabled)};break;case zg:h=Wt({isOpen:!1,highlightedIndex:-1},t.highlightedIndex>=0&&((r=l.items)==null?void 0:r.length)&&n.selectItem&&{selectedItem:l.items[t.highlightedIndex],inputValue:l.itemToString(l.items[t.highlightedIndex])});break;case Nb:h={isOpen:!0,highlightedIndex:Cb(l),inputValue:n.inputValue};break;case Ib:h={isOpen:!t.isOpen,highlightedIndex:t.isOpen?-1:ph(l,t,0)};break;case zb:h={selectedItem:n.selectedItem,inputValue:l.itemToString(n.selectedItem)};break;case jb:h={inputValue:n.inputValue};break;default:return b8(t,n,NA)}return Wt({},t,h)}var C8=["onMouseLeave","refKey","ref"],E8=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],A8=["onClick","onPress","refKey","ref"],T8=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];vn.stateChangeTypes=NA;function vn(t){t===void 0&&(t={});var n=Wt({},_8,t),r=n.items,i=n.scrollIntoView,l=n.environment,f=n.getA11yStatusMessage,h=w8(S8,n,x8,y8),g=h[0],y=h[1],b=g.isOpen,w=g.highlightedIndex,E=g.selectedItem,A=g.inputValue,I=T.useRef(null),j=T.useRef({}),D=T.useRef(null),R=T.useRef(null),q=Ig(),Y=d8(n),re=T.useRef(),G=Sb({state:g,props:n}),te=T.useCallback(function(k){return j.current[Y.getItemId(k)]},[Y]);wA(f,g,[b,w,E,A],l);var ye=g8({menuElement:I.current,highlightedIndex:w,isOpen:b,itemRefs:j,scrollIntoView:i,getItemNodeFromIndex:te});T.useEffect(function(){var k=qc(n,"isOpen");k&&D.current&&D.current.focus()},[]),T.useEffect(function(){q||(re.current=r.length)});var ce=m8(l,T.useCallback(function(){G.current.state.isOpen&&y({type:zg,selectItem:!1})},[y,G]),T.useMemo(function(){return[I,R,D]},[I.current,R.current,D.current])),X=xA();T.useEffect(function(){b||(j.current={})},[b]),T.useEffect(function(){var k;!b||!(l!=null&&l.document)||!(D!=null&&(k=D.current)!=null&&k.focus)||l.document.activeElement!==D.current&&D.current.focus()},[b,l]);var ve=T.useMemo(function(){return{ArrowDown:function(F){F.preventDefault(),y({type:Eb,altKey:F.altKey})},ArrowUp:function(F){F.preventDefault(),y({type:Ab,altKey:F.altKey})},Home:function(F){G.current.state.isOpen&&(F.preventDefault(),y({type:Ob}))},End:function(F){G.current.state.isOpen&&(F.preventDefault(),y({type:Rb}))},Escape:function(F){var W=G.current.state;(W.isOpen||W.inputValue||W.selectedItem||W.highlightedIndex>-1)&&(F.preventDefault(),y({type:Tb}))},Enter:function(F){var W=G.current.state;!W.isOpen||F.which===229||(F.preventDefault(),y({type:kb}))},PageUp:function(F){G.current.state.isOpen&&(F.preventDefault(),y({type:Mb}))},PageDown:function(F){G.current.state.isOpen&&(F.preventDefault(),y({type:Db}))}}},[y,G]),Ee=T.useCallback(function(k){return Wt({id:Y.labelId,htmlFor:Y.inputId},k)},[Y]),Re=T.useCallback(function(k,F){var W,ue=k===void 0?{}:k,Te=ue.onMouseLeave,_e=ue.refKey,Me=_e===void 0?"ref":_e,We=ue.ref,Ze=Hc(ue,C8),Ke=F===void 0?{}:F;return Ke.suppressRefError,Wt((W={},W[Me]=Bc(We,function(kt){I.current=kt}),W.id=Y.menuId,W.role="listbox",W["aria-labelledby"]=Ze&&Ze["aria-label"]?void 0:""+Y.labelId,W.onMouseLeave=dr(Te,function(){y({type:CA})}),W),Ze)},[y,X,Y]),be=T.useCallback(function(k){var F,W,ue=k===void 0?{}:k,Te=ue.item,_e=ue.index,Me=ue.refKey,We=Me===void 0?"ref":Me,Ze=ue.ref,Ke=ue.onMouseMove,kt=ue.onMouseDown,bn=ue.onClick;ue.onPress;var Xt=ue.disabled,Mn=Hc(ue,E8);Xt!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var Dn=G.current,xn=Dn.props,Ra=Dn.state,Va=vA(Te,_e,xn.items,"Pass either item or index to getItemProps!"),Ge=Va[0],He=Va[1],Xn=xn.isItemDisabled(Ge,He),ra="onClick",hr=bn,Bt=function(){ce.isTouchEnd||He===Ra.highlightedIndex||(ye.current=!1,y({type:EA,index:He,disabled:Xn}))},pr=function(){y({type:Lb,index:He})},zr=function(jr){return jr.preventDefault()};return Wt((F={},F[We]=Bc(Ze,function(ia){ia&&(j.current[Y.getItemId(He)]=ia)}),F["aria-disabled"]=Xn,F["aria-selected"]=He===Ra.highlightedIndex,F.id=Y.getItemId(He),F.role="option",F),!Xn&&(W={},W[ra]=dr(hr,pr),W),{onMouseMove:dr(Ke,Bt),onMouseDown:dr(kt,zr)},Mn)},[y,Y,G,ce,ye]),le=T.useCallback(function(k){var F,W=k===void 0?{}:k,ue=W.onClick;W.onPress;var Te=W.refKey,_e=Te===void 0?"ref":Te,Me=W.ref,We=Hc(W,A8),Ze=G.current.state,Ke=function(){y({type:AA})};return Wt((F={},F[_e]=Bc(Me,function(kt){R.current=kt}),F["aria-controls"]=Y.menuId,F["aria-expanded"]=Ze.isOpen,F.id=Y.toggleButtonId,F.tabIndex=-1,F),!We.disabled&&Wt({},{onClick:dr(ue,Ke)}),We)},[y,G,Y]),se=T.useCallback(function(k,F){var W,ue=k===void 0?{}:k,Te=ue.onKeyDown,_e=ue.onChange,Me=ue.onInput,We=ue.onBlur;ue.onChangeText;var Ze=ue.onClick,Ke=ue.refKey,kt=Ke===void 0?"ref":Ke,bn=ue.ref,Xt=Hc(ue,T8),Mn=F===void 0?{}:F;Mn.suppressRefError;var Dn=G.current.state,xn=function(Bt){var pr=wb(Bt);pr&&ve[pr]&&ve[pr](Bt)},Ra=function(Bt){y({type:Nb,inputValue:Bt.target.value})},Va=function(Bt){if(l!=null&&l.document&&Dn.isOpen&&!ce.isMouseDown){var pr=Bt.relatedTarget===null&&l.document.activeElement!==l.document.body;y({type:zg,selectItem:!pr})}},Ge=function(){y({type:Ib})},He="onChange",Xn={};if(!Xt.disabled){var ra;Xn=(ra={},ra[He]=dr(_e,Me,Ra),ra.onKeyDown=dr(Te,xn),ra.onBlur=dr(We,Va),ra.onClick=dr(Ze,Ge),ra)}return Wt((W={},W[kt]=Bc(bn,function(hr){D.current=hr}),W["aria-activedescendant"]=Dn.isOpen&&Dn.highlightedIndex>-1?Y.getItemId(Dn.highlightedIndex):"",W["aria-autocomplete"]="list",W["aria-controls"]=Y.menuId,W["aria-expanded"]=Dn.isOpen,W["aria-labelledby"]=Xt&&Xt["aria-label"]?void 0:Y.labelId,W.autoComplete="off",W.id=Y.inputId,W.role="combobox",W.value=Dn.inputValue,W),Xn,Xt)},[y,Y,l,ve,G,ce,X]),de=T.useCallback(function(){y({type:TA})},[y]),Q=T.useCallback(function(){y({type:RA})},[y]),U=T.useCallback(function(){y({type:OA})},[y]),z=T.useCallback(function(k){y({type:MA,highlightedIndex:k})},[y]),xe=T.useCallback(function(k){y({type:zb,selectedItem:k})},[y]),Oe=T.useCallback(function(k){y({type:DA,inputValue:k})},[y]),Ve=T.useCallback(function(){y({type:kA})},[y]);return{getItemProps:be,getLabelProps:Ee,getMenuProps:Re,getInputProps:se,getToggleButtonProps:le,toggleMenu:de,openMenu:U,closeMenu:Q,setHighlightedIndex:z,setInputValue:Oe,selectItem:xe,reset:Ve,highlightedIndex:w,isOpen:b,selectedItem:E,inputValue:A}}var IA={activeIndex:-1,selectedItems:[]};function LA(t,n){return qc(t,n,IA)}function zA(t,n){return Mo(t,n,IA)}function O8(t){var n=LA(t,"activeIndex"),r=LA(t,"selectedItems");return{activeIndex:n,selectedItems:r}}function jA(t){if(t.shiftKey||t.metaKey||t.ctrlKey||t.altKey)return!1;var n=t.target;return!(n instanceof HTMLInputElement&&n.value!==""&&(n.selectionStart!==0||n.selectionEnd!==0))}function R8(t,n){return t.selectedItems===n.selectedItems&&t.activeIndex===n.activeIndex}Lg.stateReducer,Lg.itemToKey,Lg.environment,Ae.array,Ae.array,Ae.array,Ae.func,Ae.number,Ae.number,Ae.number,Ae.func,Ae.func,Ae.string,Ae.string;var M8={itemToKey:hh.itemToKey,stateReducer:hh.stateReducer,environment:hh.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Pb=0,Ub=1,Hb=2,Bb=3,qb=4,Fb=5,Yb=6,Gb=7,Vb=8,$b=9,Zb=10,Qb=11,Wb=12,D8=Object.freeze({__proto__:null,DropdownClick:Gb,DropdownKeyDownBackspace:Yb,DropdownKeyDownNavigationPrevious:Fb,FunctionAddSelectedItem:Vb,FunctionRemoveSelectedItem:$b,FunctionReset:Wb,FunctionSetActiveIndex:Qb,FunctionSetSelectedItems:Zb,SelectedItemClick:Pb,SelectedItemKeyDownBackspace:Hb,SelectedItemKeyDownDelete:Ub,SelectedItemKeyDownNavigationNext:Bb,SelectedItemKeyDownNavigationPrevious:qb});function k8(t,n){var r=n.type,i=n.index,l=n.props,f=n.selectedItem,h=t.activeIndex,g=t.selectedItems,y;switch(r){case Pb:y={activeIndex:i};break;case qb:y={activeIndex:h-1<0?0:h-1};break;case Bb:y={activeIndex:h+1>=g.length?-1:h+1};break;case Hb:case Ub:{if(h<0)break;var b=h;g.length===1?b=-1:h===g.length-1&&(b=g.length-2),y=Wt({selectedItems:[].concat(g.slice(0,h),g.slice(h+1))},{activeIndex:b});break}case Fb:y={activeIndex:g.length-1};break;case Yb:y={selectedItems:g.slice(0,g.length-1)};break;case Vb:y={selectedItems:[].concat(g,[f])};break;case Gb:y={activeIndex:-1};break;case $b:{var w=h,E=g.findIndex(function(j){return l.itemToKey(j)===l.itemToKey(f)});if(E<0)break;g.length===1?w=-1:E===g.length-1&&(w=g.length-2),y={selectedItems:[].concat(g.slice(0,E),g.slice(E+1)),activeIndex:w};break}case Zb:{var A=n.selectedItems;y={selectedItems:A};break}case Qb:{var I=n.activeIndex;y={activeIndex:I};break}case Wb:y={activeIndex:zA(l,"activeIndex"),selectedItems:zA(l,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Wt({},t,y)}var N8=["refKey","ref","onClick","onKeyDown","selectedItem","index"],I8=["refKey","ref","onKeyDown","onClick","preventKeyAction"];mh.stateChangeTypes=D8;function mh(t){t===void 0&&(t={});var n=Wt({},M8,t),r=n.getA11yStatusMessage,i=n.environment,l=n.keyNavigationNext,f=n.keyNavigationPrevious,h=h8(k8,n,O8,R8),g=h[0],y=h[1],b=g.activeIndex,w=g.selectedItems,E=Ig(),A=T.useRef(null),I=T.useRef();I.current=[];var j=Sb({state:g,props:n});wA(r,g,[b,w],i),T.useEffect(function(){E||(b===-1&&A.current?A.current.focus():I.current[b]&&I.current[b].focus())},[b]);var D=xA(),R=T.useMemo(function(){var ve;return ve={},ve[f]=function(){y({type:qb})},ve[l]=function(){y({type:Bb})},ve.Delete=function(){y({type:Ub})},ve.Backspace=function(){y({type:Hb})},ve},[y,l,f]),q=T.useMemo(function(){var ve;return ve={},ve[f]=function(Ee){jA(Ee)&&y({type:Fb})},ve.Backspace=function(Re){jA(Re)&&y({type:Yb})},ve},[y,f]),Y=T.useCallback(function(ve){var Ee,Re=ve===void 0?{}:ve,be=Re.refKey,le=be===void 0?"ref":be,se=Re.ref,de=Re.onClick,Q=Re.onKeyDown,U=Re.selectedItem,z=Re.index,xe=Hc(Re,N8),Oe=j.current.state,Ve=vA(U,z,Oe.selectedItems,"Pass either item or index to getSelectedItemProps!"),k=Ve[1],F=k>-1&&k===Oe.activeIndex,W=function(){y({type:Pb,index:k})},ue=function(_e){var Me=wb(_e);Me&&R[Me]&&R[Me](_e)};return Wt((Ee={},Ee[le]=Bc(se,function(Te){Te&&I.current.push(Te)}),Ee.tabIndex=F?0:-1,Ee.onClick=dr(de,W),Ee.onKeyDown=dr(Q,ue),Ee),xe)},[y,j,R]),re=T.useCallback(function(ve,Ee){var Re,be=ve===void 0?{}:ve,le=be.refKey,se=le===void 0?"ref":le,de=be.ref,Q=be.onKeyDown,U=be.onClick,z=be.preventKeyAction,xe=z===void 0?!1:z,Oe=Hc(be,I8),Ve=Ee===void 0?{}:Ee;Ve.suppressRefError;var k=function(ue){var Te=wb(ue);Te&&q[Te]&&q[Te](ue)},F=function(){y({type:Gb})};return Wt((Re={},Re[se]=Bc(de,function(W){W&&(A.current=W)}),Re),!xe&&{onKeyDown:dr(Q,k),onClick:dr(U,F)},Oe)},[y,q,D]),G=T.useCallback(function(ve){y({type:Vb,selectedItem:ve})},[y]),te=T.useCallback(function(ve){y({type:$b,selectedItem:ve})},[y]),ye=T.useCallback(function(ve){y({type:Zb,selectedItems:ve})},[y]),ce=T.useCallback(function(ve){y({type:Qb,activeIndex:ve})},[y]),X=T.useCallback(function(){y({type:Wb})},[y]);return{getSelectedItemProps:Y,getDropdownProps:re,addSelectedItem:G,removeSelectedItem:te,setSelectedItems:ye,setActiveIndex:ce,reset:X,selectedItems:w,activeIndex:b}}function L8({items:t,selectedItems:n,onInputChange:r,onSelectedItemsChange:i,placeholder:l,icon:f,disabled:h,shadowRoot:g,dataTestId:y}){const[b,w]=T.useState(""),E=T.useRef(null),A=T.useId(),I=T.useId(),j=T.useId(),D=T.useMemo(()=>{let le=0;const se=9;return t.filter(de=>de.type==="airport"||de.type==="place").reduce((de,Q)=>Q.type==="airport"&&Q?.iata_code?.toLowerCase()===b.toLowerCase()?[{...Q,sectionIndex:-1},...de,...Q.sectionIndex>-1?[Q]:[]]:[...de,Q],[]).filter(de=>(de.type==="airport"&&(le+=1),de.type==="place"?le<se:le<=se))},[b,t]);function R(le){if(le.type==="airport"){const se=le;return n?.length>1?se.iata_code:se.country_code==="US"?`${se.city} (${se.iata_code})`:`${se.city}, ${se.country_code} (${se.iata_code})`}if(le.type==="place"){const se=le;return se.formatted_address?.length<20?se.formatted_address:se.name}return""}const q=typeof Proxy=="function"&&!Object.isSealed(new Proxy({},{}));function Y(le){const se=le.ownerDocument,de={document:se,addEventListener:se.addEventListener.bind(le),removeEventListener:se.removeEventListener.bind(le),Node:window.Node,Element:window.Element,HTMLElement:window.HTMLElement,SVGElement:window.SVGElement};return q?new Proxy(de,{get(Q,U){return Q[U]}}):de}const{getSelectedItemProps:re,getDropdownProps:G,removeSelectedItem:te}=mh({selectedItems:n,onStateChange({selectedItems:le,type:se}){se===mh.stateChangeTypes.FunctionRemoveSelectedItem&&i(le)}}),{isOpen:ye,getMenuProps:ce,getInputProps:X,getItemProps:ve,highlightedIndex:Ee}=vn({environment:g?Y(g):void 0,items:D,itemToString(le){return le?le.type==="airport"?R(le):le.name??"":""},defaultHighlightedIndex:0,selectedItem:null,inputValue:b,stateReducer(le,se){const{changes:de,type:Q}=se;switch(Q){case vn.stateChangeTypes.InputKeyDownEnter:case vn.stateChangeTypes.ItemClick:return de;case vn.stateChangeTypes.InputKeyDownArrowDown:case vn.stateChangeTypes.InputKeyDownArrowUp:return de;case vn.stateChangeTypes.InputBlur:return de;case vn.stateChangeTypes.FunctionCloseMenu:return{...de,isOpen:!0};case vn.stateChangeTypes.InputKeyDownEscape:return de;default:return de}},onStateChange({inputValue:le,type:se,selectedItem:de}){switch(se){case vn.stateChangeTypes.InputKeyDownEnter:case vn.stateChangeTypes.ItemClick:{de&&(i([de]),w(""));break}case vn.stateChangeTypes.InputChange:{const Q=le??"";w(Q),r(Q);break}case vn.stateChangeTypes.MenuMouseLeave:case vn.stateChangeTypes.ItemMouseMove:break;case vn.stateChangeTypes.InputKeyDownArrowDown:case vn.stateChangeTypes.InputKeyDownArrowUp:break;case vn.stateChangeTypes.InputBlur:break;case vn.stateChangeTypes.ControlledPropUpdatedSelectedItem:break;default:le===""&&!de&&(w(""),r(""))}}});T.useEffect(()=>{h&&w("")},[h]);const Re=!!h;function be(){const le=X({...G(),id:j,role:"combobox","aria-autocomplete":"list","aria-expanded":ye,"aria-controls":ye?I:void 0,"aria-activedescendant":ye&&Ee!=null&&Ee>-1?`${I}-${Ee}`:void 0,"aria-label":"Search airports and places",onKeyDown:se=>{if(se.key==="Backspace"&&!b&&n.length>0&&!h){const de=n[n.length-1];te(de)}}});return M.jsx("input",{className:Gt("a1-outline-none disabled:a1-bg-transparent a1-text-base",{"a1-min-w-[120px] a1-max-w-[200px]":n.length>0,"a1-w-full":n.length===0}),placeholder:!Re&&n.length===0?l:"",...le,"aria-describedby":h?A:void 0,disabled:Re})}return M.jsxs("div",{className:"a1-w-full a1-h-full a1-relative a1-z-10","data-testid":y,role:"group","aria-disabled":h?!0:void 0,children:[M.jsxs("div",{className:Gt({"a1-bg-white a1-rounded-lg a1-gap-2 a1-items-center a1-py-2 a1-px-3 a1-h-full a1-w-full a1-overflow-hidden":!0,"a1-grid":!0,"a1-grid-cols-[24px_1fr]":n.length===0,"a1-grid-cols-[24px_auto_1fr]":n.length===1,"a1-grid-cols-[24px_auto_auto_1fr]":n.length===2,"a1-grid-cols-[24px_auto_auto_auto_1fr]":n.length===3,"a1-ring-2 a1-ring-gray-200 focus-within:a1-ring-primary":!0,"a1-opacity-60 a1-cursor-not-allowed":!!h}),children:[f,n.map((le,se)=>M.jsxs("span",{...re({selectedItem:le,index:se}),className:Gt({"a1-bg-gray-200 a1-rounded a1-px-1 focus:a1-bg-gray-400 a1-whitespace-nowrap a1-text-ellipsis a1-shrink-0":!0,"a1-text-xs":n.length>0,"a1-flex a1-items-center":!0}),children:[M.jsx("span",{className:"a1-overflow-hidden a1-grow a1-font-bold",children:R(le)}),!le.disabled&&M.jsx("button",{type:"button",disabled:!!h||!!le.disabled,className:Gt("a1-ml-2 a1-text-base a1-leading-[20px] a1-rounded a1-px-1 a1-transition-colors",{"hover:a1-bg-gray-300 focus-visible:a1-outline-none focus-visible:a1-ring-2 focus-visible:a1-ring-offset-2 focus-visible:a1-ring-gray-400":!h&&!le.disabled,"a1-cursor-not-allowed a1-opacity-60":!!h}),"data-testid":"autocomplete-remove-item-button","aria-label":`Remove ${R(le)}`,onClick:de=>{de.stopPropagation(),!h&&te(le)},children:"×"})]},se)),h&&M.jsx("span",{id:A,className:"a1-sr-only",children:"Field is locked"}),be()]}),ye&&D.length>0&&M.jsx("div",{className:"a1-absolute a1-w-inherit a1-bg-white a1-mt-2 a1-rounded-lg a1-overflow-hidden a1-shadow-md a1-p-0 a1-z-10",children:M.jsx("ul",{ref:E,...ce(),id:I,role:"listbox","aria-label":"Search results",tabIndex:-1,className:"a1-overflow-y-auto a1-overflow-x-hidden focus:a1-outline-none focus:a1-ring-2 focus:a1-ring-blue-500 focus:a1-ring-offset-2",children:D.map((le,se)=>{if(le.type==="airport"){const de=le,Q=(de.distance||0)*.621371,U=Ee===se;return M.jsxs("li",{...ve({item:le,index:se}),id:`${I}-${se}`,role:"option",tabIndex:-1,"aria-selected":U,"aria-label":`${de.name}, ${de.city}, ${de.country_code}, ${de.iata_code}${le.sectionIndex>-1?`, ${Q.toFixed(Q<1?1:0)} miles away`:""}`,className:Gt({"hover:a1-bg-blue-100":!0,"a1-font-bold":U,"a1-shadow-sm a1-py-2 a1-px-2 a1-cursor-pointer":!0,"a1-pl-5 a1-border-l-4 a1-border-gray-500":le.sectionIndex>-1,"a1-grid a1-grid-cols-[26px_1fr_30px] a1-gap-1 a1-justify-start a1-items-center":!0,"focus:a1-outline-none focus:a1-ring-2 focus:a1-ring-blue-500 focus:a1-ring-offset-2":!0}),children:[M.jsx(ws,{className:"a1-w-6 a1-h-6 -a1-rotate-45",icon:Dw}),M.jsxs("div",{className:"a1-flex a1-flex-col a1-grow a1-gap-1 a1-overflow-hidden",children:[M.jsxs("div",{className:"a1-gap-2 a1-flex a1-items-end",children:[M.jsx("span",{className:"a1-font-medium a1-text-base a1-whitespace-nowrap a1-overflow-hidden a1-text-ellipsis a1-shrink",children:de.name}),M.jsx("span",{className:"a1-text-sm a1-uppercase a1-shrink-0 a1-text-gray-500",children:de.iata_code})]}),M.jsxs("span",{className:"a1-text-sm a1-text-gray-500",children:[de.city,", ",de.country_code,le.sectionIndex>-1&&M.jsxs(M.Fragment,{children:[" • ",Q.toFixed(Q<1?1:0),"mi"]})]})]}),M.jsx("div",{className:"a1-flex a1-justify-end a1-pl-2",children:M.jsx("input",{type:"checkbox",defaultChecked:!!n.find(z=>z.key===le.key),readOnly:!0})})]},`${le.key}-${se}`)}if(le.type==="place"){const de=le,Q=Ee===se;return M.jsxs("li",{...ve({item:le,index:se}),id:`${I}-${se}`,role:"option",tabIndex:-1,"aria-selected":Q,"aria-label":`${de.name}, ${de.formatted_address}`,className:Gt({"hover:a1-bg-blue-100":!0,"a1-font-bold":Q,"a1-shadow-sm a1-py-2 a1-px-2 a1-cursor-pointer":!0,"a1-grid a1-grid-cols-[26px_1fr_30px] a1-gap-1 a1-justify-start a1-items-center":!0,"focus:a1-outline-none focus:a1-ring-2 focus:a1-ring-blue-500 focus:a1-ring-offset-2":!0}),children:[M.jsx(ws,{className:"a1-w-6 a1-h-6",icon:U5}),M.jsxs("div",{className:"a1-flex a1-flex-col a1-grow a1-gap-1 a1-overflow-hidden",children:[M.jsx("div",{className:"a1-gap-2 a1-flex a1-items-end",children:M.jsx("span",{className:"a1-font-medium a1-text-base a1-whitespace-nowrap a1-overflow-hidden a1-text-ellipsis a1-shrink",children:de.name})}),M.jsx("span",{className:"a1-text-sm a1-shrink-0 a1-text-gray-500",children:de.formatted_address})]}),M.jsx("div",{className:"a1-flex a1-justify-end a1-pl-2",children:M.jsx("input",{type:"checkbox",defaultChecked:!!n.find(U=>U.key===le.key),readOnly:!0})})]},`${le.key}-${se}`)}})})})]})}function z8({hideByDefault:t=!0}){return M.jsx("div",{className:Gt({"a1-pb-0.5 a1-flex-col a1-items-center @2xl:a1-items-end @2xl:a1-w-[175px]":!0,"a1-hidden @2xl:a1-flex":t,"a1-flex":!t}),children:M.jsxs("div",{children:[M.jsx("p",{className:"a1-text-center a1-text-[12px] a1-text-black dark:a1-text-white",children:"Powered by"}),M.jsx("div",{className:"a1-flex a1-justify-center a1-max-w-[95px]",children:M.jsx("img",{src:"https://content.r9cdn.net/res/images/horizon/common/promo/a1-powered-kayak-logo.png?v=5845dc09c6b1c19380844fe6157a3b640856624b&cluster=4",alt:"Kayak",width:95,height:21})})]})})}const j8=100;function P8({items:t,selectedItems:n,onInputChange:r,onSelectedItemsChange:i,placeholder:l,icon:f,disabled:h,shadowRoot:g}){const[y,b]=T.useState(""),[w,E]=T.useState(!1),A=T.useRef(null),I=T.useId(),j=T.useMemo(()=>{let U;return z=>{clearTimeout(U),z.trim()&&E(!0),U=setTimeout(()=>{r(z),E(!1)},300)}},[r]),D=T.useMemo(()=>{if(console.log("Autocomplete results:",{items:t?.length,inputValue:y,hasInput:!!y?.trim()}),!t||t.length===0)return[];const U=new Date,z=new Date(U.getTime()+720*60*60*1e3),xe=new Set;let Oe=t.reduce((k,F)=>{if(xe.has(F.key))return k;const ue="routeStart"in F&&F.routeStart&&F.routeStart>z?{...F,isNewRoute:!0}:F;return xe.add(F.key),[...k,ue]},[]);if(y?.trim()){const k=y.toLowerCase().trim();Oe=Oe.filter(F=>{const W=F;return!!(W.iata_code?.toLowerCase().includes(k)||W.city?.toLowerCase().includes(k)||W.name?.toLowerCase().includes(k)||W.country_code?.toLowerCase().includes(k)||W.state?.toLowerCase().includes(k))}),Oe.sort((F,W)=>{const ue=F,Te=W,_e=ue.iata_code?.toLowerCase()||"",Me=Te.iata_code?.toLowerCase()||"",We=ue.city?.toLowerCase()||"",Ze=Te.city?.toLowerCase()||"",Ke=k.toLowerCase();return _e===Ke&&Me!==Ke?-1:Me===Ke&&_e!==Ke?1:_e.startsWith(Ke)&&!Me.startsWith(Ke)?-1:Me.startsWith(Ke)&&!_e.startsWith(Ke)?1:We.startsWith(Ke)&&!Ze.startsWith(Ke)?-1:Ze.startsWith(Ke)&&!We.startsWith(Ke)?1:_e.includes(Ke)&&!Me.includes(Ke)?-1:Me.includes(Ke)&&!_e.includes(Ke)?1:0})}else Oe=Oe.slice(0,250);Oe.sort((k,F)=>{const W=k,ue=F,Te=W.city?.toLowerCase()||"",_e=ue.city?.toLowerCase()||"";if(Te===_e){const Me=W.iata_code?.toLowerCase()||"",We=ue.iata_code?.toLowerCase()||"";return Me.localeCompare(We)}return Te.localeCompare(_e)});const Ve=Oe.slice(0,j8);return console.log("Typeahead filtering results:",{originalCount:t.length,filteredCount:Oe.length,finalCount:Ve.length,inputValue:y,hasInput:!!y?.trim()}),Ve},[y,t]),R=T.useMemo(()=>{const U={};return D.forEach((z,xe)=>{if(z.type==="airport"){const Ve=z.city?.charAt(0).toUpperCase();Ve&&!U[Ve]&&(U[Ve]=xe)}}),U},[D]),q=U=>{const z=R[U];if(z===void 0||!A.current)return;const xe=A.current.querySelector("ul");if(!xe)return;const Oe=xe.children[z];if(!Oe)return;const Ve=xe.getBoundingClientRect(),k=Oe.getBoundingClientRect(),F=xe.scrollTop,W=k.top-Ve.top+F;xe.scrollTo({top:W,behavior:"smooth"})},Y=T.useMemo(()=>Array.from({length:26},(U,z)=>String.fromCharCode(65+z)),[]),re=(U,z)=>{U.preventDefault(),U.stopPropagation(),q(z)},G=U=>{const z=U;if(n.length>1)return z.iata_code||"";const xe=z.country==="US"&&z.state?`, ${z.state}`:"";return`${z.city}${xe} (${z.iata_code})`},te=U=>{const z=U.ownerDocument,xe=typeof Proxy=="function"&&!Object.isSealed(new Proxy({},{})),Oe={document:z,addEventListener:z.addEventListener.bind(U),removeEventListener:z.removeEventListener.bind(U),Node:window.Node,Element:window.Element,HTMLElement:window.HTMLElement,SVGElement:window.SVGElement};return xe?new Proxy(Oe,{get(Ve,k){return Ve[k]}}):Oe},{getSelectedItemProps:ye,getDropdownProps:ce,removeSelectedItem:X}=mh({selectedItems:n,onStateChange({selectedItems:U,type:z}){z===mh.stateChangeTypes.FunctionRemoveSelectedItem&&i(U)}}),{isOpen:ve,getMenuProps:Ee,getInputProps:Re,getItemProps:be,selectedItem:le}=vn({environment:g?te(g):void 0,items:D,itemToString:U=>U?G(U):"",defaultHighlightedIndex:0,selectedItem:null,inputValue:y,onStateChange({inputValue:U,type:z,selectedItem:xe}){switch(z){case vn.stateChangeTypes.InputKeyDownEnter:case vn.stateChangeTypes.ItemClick:xe&&(i([xe]),b(""));break;case vn.stateChangeTypes.InputChange:{const Oe=U??"";b(Oe),j(Oe);break}case vn.stateChangeTypes.InputBlur:break}}}),se=!!h,de=n.length>0,Q=(ve||y.trim()&&D.length>0)&&D.length>10&&Object.keys(R).length>3;return M.jsxs("div",{className:"a1-w-full a1-h-full a1-relative a1-z-10",role:"group","aria-disabled":h?!0:void 0,children:[M.jsxs("div",{className:Gt({"a1-bg-white a1-rounded-lg a1-gap-2 a1-items-center a1-py-2 a1-px-3 a1-h-full a1-w-full a1-overflow-hidden a1-grid":!0,"a1-grid-cols-[24px_1fr]":n.length===0,"a1-grid-cols-[24px_auto_1fr]":n.length===1,"a1-grid-cols-[24px_auto_auto_1fr]":n.length===2,"a1-grid-cols-[24px_auto_auto_auto_1fr]":n.length===3,"a1-ring-2 a1-ring-gray-200 focus-within:a1-ring-primary":!0,"a1-opacity-60 a1-cursor-not-allowed":!!h}),children:[f,n.map((U,z)=>M.jsxs("span",{...ye({selectedItem:U,index:z}),className:"a1-bg-gray-200 a1-rounded a1-px-1 focus:a1-bg-gray-400 a1-whitespace-nowrap a1-text-ellipsis a1-shrink-0 a1-text-xs a1-flex a1-items-center",children:[M.jsx("span",{className:"a1-overflow-hidden a1-grow",children:G(U)}),!U.disabled&&M.jsx("button",{type:"button",disabled:!!h||!!U.disabled,className:Gt("a1-ml-2 a1-text-base a1-leading-[20px] a1-rounded a1-px-1 a1-transition-colors",{"hover:a1-bg-gray-300 focus-visible:a1-outline-none focus-visible:a1-ring-2 focus-visible:a1-ring-offset-2 focus-visible:a1-ring-gray-400":!h&&!U.disabled,"a1-cursor-not-allowed a1-opacity-60":!!h}),"aria-label":`Remove ${G(U)}`,"data-testid":"schedule-autocomplete-remove-item-button",onClick:xe=>{xe.stopPropagation(),!h&&X(U)},children:"×"})]},z)),h&&M.jsx("span",{id:I,className:"a1-sr-only",children:"Field is locked"}),(()=>{const U=Re({...ce({preventKeyAction:ve}),onKeyDown:z=>{if(z.key==="Backspace"&&!y&&n.length>0&&!h){const xe=n[n.length-1];X(xe)}}});return M.jsx("input",{"aria-label":"autocomplete",className:"a1-outline-none disabled:a1-bg-transparent a1-text-base",placeholder:se?"":l,...U,"aria-describedby":h?I:void 0,readOnly:de,disabled:se})})()]}),(ve||y.trim()&&D.length>0)&&M.jsx("div",{className:"a1-absolute a1-w-full a1-min-w-full a1-bg-white a1-mt-2 a1-rounded-lg a1-shadow-md a1-p-0 a1-z-10",children:M.jsxs("div",{className:"a1-flex a1-w-full",children:[Q&&M.jsx("div",{className:"a1-flex a1-flex-col a1-rounded-lg a1-bg-gray-50 a1-border-r a1-border-gray-200 a1-px-2.5 a1-py-2.5 a1-min-w-[32px] a1-shrink-0",children:Y.map(U=>{const z=R[U]!==void 0;return M.jsx("button",{onClick:xe=>z?re(xe,U):void 0,className:Gt({"a1-text-xs a1-font-medium a1-px-1.5 a1-py-0.5 a1-rounded a1-transition-colors a1-cursor-pointer a1-text-center a1-shrink-0 a1-mb-0.5":!0,"a1-text-gray-600 hover:a1-text-blue-600 hover:a1-bg-blue-50":z,"a1-text-gray-300 a1-cursor-default":!z}),"data-testid":`schedule-autocomplete-letter-${U.toLowerCase()}`,title:z?`Jump to ${U}`:`No results for ${U}`,disabled:!z,children:U},U)})}),M.jsx("div",{className:"a1-flex-1 a1-min-w-0",ref:A,children:M.jsxs("ul",{...Ee(),className:"a1-max-h-[600px] a1-overflow-y-auto a1-overflow-x-hidden a1-w-full",children:[w&&M.jsx("li",{className:"a1-py-4 a1-px-3 a1-text-center a1-text-gray-500",children:M.jsxs("div",{className:"a1-flex a1-items-center a1-justify-center a1-gap-2",children:[M.jsx("div",{className:"a1-animate-spin a1-rounded-full a1-h-4 a1-w-4 a1-border-b-2 a1-border-primary"}),M.jsx("span",{children:"Searching airports..."})]})}),!w&&D.length>0&&D.map((U,z)=>{const xe=U;return M.jsxs("li",{...be({item:U,index:z}),className:Gt({"a1-shadow-sm a1-py-2 a1-pl-3 a1-pr-2 a1-cursor-pointer a1-grid a1-grid-cols-[26px_1fr_40px] a1-gap-2 a1-justify-start a1-items-center a1-relative":!0,"a1-font-bold":le===U}),children:[M.jsx("div",{className:"a1-w-6 a1-h-6 a1-flex a1-items-center a1-gap-1",children:xe.airlineCodes&&xe.airlineCodes.length>0&&xe.airlineCodes.map(Oe=>M.jsx("img",{src:`https://content.r9cdn.net/rimg/provider-logos/airlines/v/${Oe}.png`,alt:Oe},Oe))}),M.jsxs("div",{className:"a1-flex a1-flex-col a1-grow a1-gap-1 a1-overflow-hidden",children:[M.jsx("div",{className:"a1-gap-2 a1-flex a1-items-end",children:M.jsxs("span",{className:Gt({"a1-font-medium a1-text-sm a1-whitespace-nowrap a1-overflow-hidden a1-text-ellipsis a1-shrink":!0}),children:[xe.city,xe.country_code==="US"&&xe.state?`, ${xe.state}`:""]})}),M.jsxs("span",{className:Gt({"a1-text-sm a1-text-gray-500":!0}),children:[xe.iata_code," -"," ",xe.stops===0?"Direct Flight":"One Stop","routeStart"in xe&&xe.routeStart&&M.jsxs(M.Fragment,{children:[M.jsx("br",{}),M.jsx("span",{className:Gt({"a1-text-xs a1-font-bold a1-text-green-600 a1-whitespace-nowrap":!0}),children:U.isNewRoute?"Route Starts "+xe.routeStart.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"}):""})]})]})]}),M.jsx("div",{className:"a1-flex a1-justify-end a1-pl-4",children:M.jsx("input",{type:"checkbox",defaultChecked:!!n.find(Oe=>Oe.key===U.key)})})]},`${U.key}-${z}`)}),!w&&D.length===0&&y.trim()&&M.jsx("li",{className:"a1-py-4 a1-px-3 a1-text-center a1-text-gray-500",children:M.jsxs("div",{className:"a1-flex a1-flex-col a1-items-center a1-justify-center a1-gap-2",children:[M.jsx(ws,{icon:Dw,className:"a1-text-gray-300 a1-text-xl"}),M.jsxs("span",{children:["No airports found for ",y]}),M.jsx("span",{className:"a1-text-xs",children:"Try a different search term"})]})})]})})]})})]})}function PA(){return M.jsx("div",{"aria-label":"Loading...",role:"status",children:M.jsxs("svg",{className:"a1-h-6 a1-w-6 a1-animate-spin",viewBox:"3 3 18 18",children:[M.jsx("path",{className:"a1-fill-indigo-200",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),M.jsx("path",{className:"a1-fill-indigo-800",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})}const U8=t=>typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot,H8=mt({apiDomain:N(),locationId:N().optional(),origin:N().nullable().optional(),destination:N().nullable().optional(),destinations:N().optional(),primaryColor:N().optional(),secondaryColor:N().optional(),airlines:N().nullable().optional(),providers:N().nullable().optional(),workerUrl:N().optional(),theme:bc(["dark","light"]).optional(),defaultNearbyDatesForLowerFares:ft().optional(),shadowRoot:lv(U8).optional(),subscribingAirport:N().optional(),consentDataSharing:ft().optional(),consentAnalytics:ft().optional(),consentAdvertising:ft().optional(),consentFunctional:ft().optional(),onOriginChange:dv().args(N()).returns(cv()).optional(),onDestinationChange:dv().args(N()).returns(cv()).optional(),fmaDomain:N().optional(),hideBranding:ft().optional(),hideCarButton:ft().optional(),disableOrigins:ft().optional(),disableDestinations:ft().optional(),experimentId:N().optional(),autocompleteType:bc(["kayak","schedule_data"]).optional(),arrivalAirportLabel:N().optional(),departureAirportLabel:N().optional(),departureDateLabel:N().optional(),returnDateLabel:N().optional(),channel:TS.optional()}),B8=new yw;function UA(t){let n="";for(let r=0;r<t.length;++r){const i=t[r];if(i){if(i.type==="place"){const l=i;l.iata_code?n+=l.iata_code:l.nearbyAirports&&l.nearbyAirports.length>0&&(n+=l.nearbyAirports[0].iata_code+",nearby")}i.type==="airport"&&(n+=i.iata_code),r<t.length-1&&t.length>1&&(n+=",")}}return n}function q8({apiDomain:t,origin:n,destination:r,airlines:i,providers:l,destinations:f,locationId:h,experimentId:g,departureDateLabel:y="Departure Date",returnDateLabel:b="Return Date",workerUrl:w="https://worker.flymyairport.com",theme:E="light",channel:A,defaultNearbyDatesForLowerFares:I,shadowRoot:j,subscribingAirport:D,consentDataSharing:R=!0,consentAnalytics:q=!0,consentAdvertising:Y=!0,consentFunctional:re=!0,onOriginChange:G=()=>{},onDestinationChange:te=()=>{},fmaDomain:ye="https://flymyairport.com",hideBranding:ce=!1,hideCarButton:X=!1,disableOrigins:ve=!0,disableDestinations:Ee=!0,autocompleteType:Re="kayak"}){const[be,le]=T.useState({origins:[],destinations:[],startDate:null,endDate:null,oneWay:!1,defaultNearbyDatesForLowerFares:!!I}),{clickId:se}=kR(),de=T.useMemo(()=>{const ge=UA(be.origins);return G(ge),ge},[be.origins,G]),Q=T.useMemo(()=>{const ge=UA(be.destinations);return te(ge),ge},[be.destinations,te]);if(!OS.safeParse(h).success)throw new Error("Unable to parse location id");if(g&&g!=="0"&&g!=="1")throw new Error("experimentId must be 0 or 1");n=n?.toLocaleUpperCase(),r=r?.toLocaleUpperCase();const U=i?.split(",").map(ge=>ge.toLocaleUpperCase().trim()).filter(ge=>ge!==""),z=l?.split(",").map(ge=>ge.toLocaleUpperCase().trim()).filter(ge=>ge!==""),xe=l===i&&l?.length===2&&i?.length===2,[Oe,Ve]=T.useState(!!n),[k,F]=T.useState(!!r),[W,ue]=T.useState(null),[Te,_e]=T.useState(null),Me=T.useMemo(()=>be.origins?.length&&be.destinations?.length&&be.startDate?be.endDate&&be.oneWay===!1?!0:!(!be.endDate&&be.oneWay===!1):!1,[be]),We=ge=>Re==="schedule_data"?M.jsx(P8,{shadowRoot:j,icon:ge.icon,placeholder:ge.placeholder,disabled:ge.disabled,items:ge.items,selectedItems:ge.selectedItems,onInputChange:ge.onInputChange,onSelectedItemsChange:ge.onSelectedItemsChange}):M.jsx(L8,{dataTestId:ge.dataTestId,shadowRoot:j,icon:ge.icon,placeholder:ge.placeholder,disabled:ge.disabled,items:ge.items,selectedItems:ge.selectedItems,onInputChange:ge.onInputChange,onSelectedItemsChange:ge.onSelectedItemsChange}),{data:Ze,status:Ke,setQuery:kt}=DS({key:"origin-suggest",apiDomain:t,airportIATA:Q,providersArr:z,airlinesArr:U,autocompleteType:Re}),bn=T.useMemo(()=>Re==="schedule_data"?Ze?.map((ge,ze)=>({...ge,sectionIndex:ze,type:"airport",key:ge.iata_code||`airport-${ze}`}))||[]:Cv.uniqBy(Ze?.filter(ge=>ge.nearbyAirports?.length).map(ge=>{const ze=ge.types.includes("airport");return[{...ge,sectionIndex:0,type:ze?"airport-place":"place",key:ge.formatted_address},...ge.nearbyAirports.map((bt,At)=>({...bt,sectionIndex:ze?-1:At,type:"airport",key:`${bt.iata_code}`}))]}).flat(),ge=>ge.key).filter((ge,ze,bt)=>{if(ge.type==="place"){const At=bt.at(ze+1);if(At){if(At.type!=="airport")return!1}else return!1}return!0}),[Ze,Re]),{data:Xt,status:Mn,setQuery:Dn}=DS({key:"destination-suggest",apiDomain:t,airportIATA:de,providersArr:z||[],airlinesArr:U||[],autocompleteType:Re}),xn=T.useMemo(()=>Re==="schedule_data"?Xt?.map((ge,ze)=>({...ge,sectionIndex:ze,type:"airport",key:ge.iata_code||`airport-${ze}`}))||[]:Cv.uniqBy(Xt?.filter(ge=>ge.nearbyAirports?.length).map(ge=>{const ze=ge.types.includes("airport");return[{...ge,sectionIndex:0,type:ze?"airport-place":"place",key:ge.formatted_address},...ge.nearbyAirports.map((bt,At)=>({...bt,sectionIndex:ze?-1:At,type:"airport",key:`${bt.iata_code}`}))]}).flat(),ge=>ge.key).filter((ge,ze,bt)=>{if(ge.type==="place"){const At=bt.at(ze+1);if(At){if(At.type!=="airport")return!1}else return!1}return!0}),[Xt,Re]),[Ra,Va]=T.useState(null),[Ge,He]=T.useState(null);T.useEffect(()=>{Va(W?CO([W,new Date]):null)},[W]),T.useEffect(()=>{He(be.startDate?As(be.startDate,1):null)},[be.startDate]);const Xn=T.useMemo(()=>({origin:de,destination:Q,startDate:Ra||void 0,endDate:Te||void 0}),[de,Q,Ra,Te]),ra=T.useMemo(()=>({origin:Q,destination:de,startDate:Ge||void 0,endDate:Te||void 0}),[Q,de,Ge,Te]),{data:hr,status:Bt}=MS({apiDomain:t,params:Xn}),{data:pr,status:zr}=MS({apiDomain:t,params:ra});T.useEffect(()=>{if(n&&Ev({query:n,searchType:Wm.Flights}).then(ge=>{const ze=ge.find(bt=>bt.id.toLowerCase()===n?.toLowerCase());if(ze){const bt={iata_code:ze.id,city:ze.cityonly,lat:ze.lat,lng:ze.lng,country_code:ze.cc,name:ze.displayname};le(At=>({...At,origins:[{...bt,type:"airport",key:ze.id,sectionIndex:-1,disabled:ve}]}))}}),r){const ze=r.split(",").map(bt=>Ev({query:bt,searchType:Wm.Flights}).then(At=>{const wn=At.find(mr=>mr.id.toLowerCase()===bt?.toLowerCase());return wn?{iata_code:wn.id,city:wn.cityonly,lat:wn.lat,lng:wn.lng,country_code:wn.cc,name:wn.displayname,type:"airport",key:wn.id,sectionIndex:-1,disabled:Ee}:null}));Promise.all(ze).then(bt=>{const At=bt.filter(wn=>wn!==null);At.length>0&&le(wn=>({...wn,destinations:At}))})}Ve(!!n),F(!!r)},[n,r,ve,Ee]);const ia=T.useCallback((ge,ze)=>{le({...be,startDate:ge,endDate:ze}),(ge||ze)&&Km({name:"Flight Search - Date Range Change",properties:{airport_iata:n||"",origin:de,desination:Q,departure_date:ge?.toISOString(),return_date:ze?.toISOString()}})},[be,n,de,Q]),jr=T.useCallback((ge,ze)=>{ue(ge),_e(ze)},[]),Yl=()=>{const{origins:ge,destinations:ze}=be;Ve(k),F(Oe),le({...be,origins:ze,destinations:ge})},Is=ge=>{ge.preventDefault();const ze=new FormData(ge.currentTarget),bt=Object.fromEntries(ze.entries()),At=de,wn=Q,mr=be.startDate,$l=be.endDate,Vc=be.oneWay;if(!At||!wn||!mr||!$l&&!Vc)throw new Error("All fields must be filled out");let Ls=mr.toISOString().split("T")[0],qi=$l?.toISOString().split("T")[0];if(bt["flexible-dates"]&&!xe){const zs="-flexible-3days";Ls+=zs,qi+=zs}const Zl=bt.cabin,$c=bt.pax,Wl=zR({worker_domain:w,airport_iata:D||n||At,dep_iata:At||"",arr_iata:wn+""||"",departDate:Ls||"",returnDate:qi||"",cabin:Zl||void 0,pax:$c||void 0,filterState:{providers:z?.join(","),airlines:U?.join(",")},params:{enc_cid:se||"",enc_lid:O2({airport:D||n||At,channel:A||"EMB",action:"SEARCH",userDefinedPage:h||"UNDEF",originIATA:At,destinationIATA:wn}),consent_data_sharing:R,consent_analytics:q,consent_advertising:Y,consent_functional:re,from_url:encodeURIComponent(window?.location.href)}});console.log({link:Wl,clickId:se}),Km({name:"Flight Search - Search Button Clicked",properties:{airport_iata:n||"",origin:de,desination:Q,departure_date:mr?.toISOString(),return_date:be.endDate?.toISOString()}}),window.open(Wl,"_blank")},Gl=[{display:"Roundtrip",value:"roundtrip"},{display:"One-way",value:"one-way"}],Vl=[{display:"Economy",value:ih.Enum.economy},{display:"Premium Economy",value:ih.Enum.premium},{display:"Business",value:ih.Enum.business},{display:"First",value:ih.Enum.first}],ai=new Array(9).fill(0).map((ge,ze)=>{const bt=ze+1,At=bt>1;return{value:qS.options[ze],display:`${bt} Traveler${At?"s":""}`}}),Gn=["Flights",...X?[]:["Cars"]],$a=T.useMemo(()=>D&&r?.includes(D)?"to":"from",[D,r]),Vn=Gn.map((ge,ze)=>M.jsx(T.Fragment,{children:M.jsx("a",{href:ze>0?`${ye}/${$a}/${D}/${ge.toLowerCase()}`:"#",onClick:bt=>{ze===0&&bt.preventDefault()},target:"_blank",className:Gt({"a1-text-black a1-border a1-border-1 dark:a1-text-white a1-text-base a1-h-[27px] a1-w-[84px] a1-px-4":!0,"a1-border @xl:hover:a1-bg-secondary a1-grow-0":ze>=1," a1-bg-transparent a1-rounded-lg a1-text-center @xl:hover:a1-text-black dark:@xl:hover:a1-text-white":ze>=1,"a1-bg-primary a1-text-white a1-grow-0 a1-rounded-lg":ze===0,"a1-justify-center a1-items-center":ze===0}),children:ge})},ze)),Yc=M.jsx("div",{className:"a1-flex a1-rounded-md a1-items-center a1-justify-center a1-gap-2",children:Vn}),Gc=M.jsx(z8,{hideByDefault:!0}),gh=M.jsxs("div",{className:"@2xl:a1-flex @2xl:a1-flex-row a1-pb-1 a1-items-center a1-justify-between",children:[M.jsx("div",{className:"a1-flex a1-flex-col @2xl:a1-flex-row a1-items-center @2xl:a1-gap-2 a1-mb-2 @2xl:a1-mb-0",children:M.jsx("div",{role:"heading","aria-level":2,className:"a1-flex a1-justify-center @2xl:a1-justify-start a1-text-[35px] a1-text-black dark:a1-text-white",children:M.jsx(jR,{regMarkClassName:"a1-text-[16px] a1-ml-0.5 a1-leading-none"})})}),M.jsx("div",{className:Gt({"a1-hidden":!0,"@2xl:a1-justify-start @2xl:a1-flex @2xl:a1-w-[175px]":ye!==""}),children:Yc}),M.jsx("div",{className:"a1-block @2xl:a1-hidden",children:Yc}),M.jsx("div",{className:Gt({"a1-pb-0.5":!0,"a1-hidden @2xl:a1-flex a1-flex-col a1-items-center @2xl:a1-items-end @2xl:a1-w-[175px]":!0}),children:U&&U.length>0?null:M.jsx("div",{children:Gc})})]});return M.jsxs(xw,{client:B8,children:[M.jsx("div",{"data-mode":E,className:"a1-w-full a1-@container a1-relative",children:M.jsxs("form",{className:"a1-flex a1-flex-col a1-gap-2",onSubmit:Is,children:[!ce&&gh,M.jsxs("div",{className:"a1-flex a1-flex-wrap a1-justify-between a1-gap-4 a1-max-w-full a1-w-full",children:[M.jsxs("div",{className:Gt({"a1-flex a1-gap-1 @2xl:a1-gap-4":!0}),children:[M.jsx("select",{"aria-label":"trip-option",name:"trip-option",className:"a1-text-black dark:a1-text-white a1-text-base a1-bg-transparent a1-truncate a1-min-w-0 a1-w-full",onChange:ge=>{le(ze=>({...ze,oneWay:ge.target.value==="one-way"}))},children:Gl.map((ge,ze)=>M.jsx("option",{className:"dark:a1-bg-black dark:a1-text-white a1-text-base",value:ge.value,children:ge.display},`${ge.value}-${ze}`))}),M.jsx("select",{name:"pax","aria-label":"pax",className:"a1-text-black dark:a1-text-white a1-text-base a1-bg-transparent a1-truncate a1-min-w-0 a1-w-full",children:ai.map((ge,ze)=>M.jsx("option",{className:"dark:a1-bg-black dark:a1-text-white a1-text-base",value:ge.value,children:ge.display},`${ge.value}-${ze}`))}),M.jsx("select",{name:"cabin","aria-label":"cabin",className:"a1-text-black dark:a1-text-white a1-text-base a1-bg-transparent a1-truncate a1-min-w-0 a1-w-full",children:Vl.map((ge,ze)=>M.jsx("option",{className:"dark:a1-bg-black dark:a1-text-white a1-text-base",value:ge.value,children:ge.display},`${ge.value}-${ze}`))})]}),!xe&&M.jsxs("label",{className:"a1-hidden @5xl:a1-block a1-text-black dark:a1-text-white a1-flex a1-items-center a1-text-base",children:[M.jsx("input",{type:"checkbox",name:"flexible-dates",defaultChecked:I})," Show nearby dates for lower fares"]})]}),M.jsxs("div",{className:Gt({"a1-flex a1-flex-col a1-gap-6":!0,"@5xl:a1-grid @5xl:a1-grid-cols-2":!be.oneWay,"@5xl:a1-grid @5xl:a1-grid-cols-[3fr_400px]":be.oneWay}),children:[M.jsxs("div",{className:"a1-flex a1-flex-col a1-items-center @xl:a1-grid @xl:a1-grid-cols-[calc(50%-20px)_24px_calc(50%-20px)] a1-w-full a1-gap-2",children:[M.jsx("div",{className:"a1-flex a1-items-center a1-w-full a1-relative a1-z-[100]",children:We({dataTestId:"flight-search-form-origin",icon:Ke!=="pending"?M.jsx(ws,{className:"a1-w-6 a1-h-6",icon:j5}):M.jsx(PA,{}),placeholder:"From?",disabled:Oe,items:bn||[],selectedItems:be.origins,onInputChange:ge=>kt(ge),onSelectedItemsChange:ge=>{const ze=ve?ge?.slice(0,1):ge;Km({name:"Flight Search - Origin Changed",properties:{airport_iata:n||"",origin:de,desination:Q,departure_date:be.startDate?.toISOString(),return_date:be.endDate?.toISOString()}}),le(bt=>({...bt,origins:ze||[]}))}})}),M.jsx("button",{type:"button",className:"a1-w-6 a1-text-gray-500 a1-rotate-90 @xl:a1-rotate-0",onClick:Yl,"aria-label":"Switch Origin and Destination","data-testid":"flight-search-switch-airports-button",children:M.jsx(F2,{})}),M.jsx("div",{className:"a1-flex a1-items-center a1-w-full",children:We({dataTestId:"flight-search-form-destination-autocomplete",icon:Mn!=="pending"?M.jsx(ws,{className:"a1-w-6 a1-h-6",icon:P5}):M.jsx(PA,{}),placeholder:"To?",disabled:k,items:xn||[],selectedItems:be.destinations,onInputChange:ge=>Dn(ge),onSelectedItemsChange:ge=>{const ze=Ee?ge?.slice(0,1):ge;Km({name:"Flight Search - Destination Changed",properties:{airport_iata:n||"",origin:de,desination:Q,departure_date:be.startDate?.toISOString(),return_date:be.endDate?.toISOString()}}),le(bt=>({...bt,destinations:ze||[]}))}})})]}),M.jsxs("div",{className:Gt({"a1-flex a1-flex-col a1-items-center a1-gap-4":!0,"@5xl:a1-flex-row @5xl:a1-items-end @5xl:a1-gap-4":!0,"a1-grow":!0}),children:[M.jsx("div",{className:"a1-w-full @5xl:a1-flex-1 @5xl:a1-min-w-0",children:M.jsx(XN,{origin:de,destination:Q,startDateLabel:y,endDateLabel:b,onChange:ia,onMonthViewChange:jr,oneWay:be.oneWay,shadowRoot:j,onlyDirects:z&&U&&z?.length>0&&U?.length>0,flightCalendar:!be.startDate||be.oneWay?hr:pr,flightCalendarStatus:!be.startDate||be.oneWay?Bt:zr})}),M.jsxs("div",{className:"a1-flex a1-flex-col a1-gap-6 a1-items-center a1-justify-center @5xl:a1-flex-shrink-0",children:[!xe&&M.jsxs("label",{className:"a1-text-black a1-text-base dark:a1-text-white a1-flex a1-items-center @5xl:a1-hidden a1-gap-3",children:[M.jsx("input",{type:"checkbox",name:"flexible-dates",defaultChecked:I}),M.jsx("span",{children:"Show nearby dates for lower fares"})]}),M.jsxs("button",{"aria-label":Me?"Search flights":"Search flights - Please complete all required fields","aria-disabled":!Me,tabIndex:0,type:"submit","data-testid":"flight-search-submit-button",onClick:ge=>{Me||ge.preventDefault()},className:`a1-h-[44px] a1-w-auto a1-min-w-[100px] a1-max-w-[200px] a1-rounded-lg a1-flex a1-align-center a1-items-center a1-gap-1 a1-px-4 focus-visible:a1:outline-none focus-visible:a1-ring-2 focus-visible:a1-ring-offset-2 focus-visible:a1-ring-offset-white dark:focus-visible:a1-ring-offset-black ${Me?"a1-bg-green-500 a1-text-white hover:a1-bg-green-700 active:a1-bg-green-700 focus-visible:a1-ring-green-700 dark:a1-bg-green-600 dark:hover:a1-bg-green-800 dark:active:a1-bg-green-800 dark:focus-visible:a1-ring-green-600":"a1-bg-gray-300 a1-text-gray-700 a1-cursor-not-allowed dark:a1-bg-gray-600 dark:a1-text-gray-300"}`,children:[M.jsx(q2,{}),M.jsx("span",{className:"a1-text-base",children:"Search"})]})]})]})]})]})}),M.jsx("div",{className:"a1-visible @2xl:a1-hidden",children:!ce&&Gc})]})}const F8='@tailwind base;@tailwind components;@tailwind utilities;.ao-dialog{background:transparent;border:none;inset:0;margin:10dvh auto 0;max-height:100vh;max-width:100vw;overflow:auto;padding:0;position:fixed;z-index:1000}.ao-dialog::backdrop{background:#000c}.ao-dialog__body{background:#fff;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;margin:2rem auto;max-height:90vh;max-width:32rem;overflow:auto;padding:1.5rem;position:relative}.dark .ao-dialog__body{background:#1f2937;color:#fff}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:host,:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:0 0% 9%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--radius:.5rem}.dark{--background:0 0% 3.9%;--foreground:0 0% 98%;--card:0 0% 3.9%;--card-foreground:0 0% 98%;--popover:0 0% 3.9%;--popover-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:0 0% 9%;--secondary:0 0% 14.9%;--secondary-foreground:0 0% 98%;--muted:0 0% 14.9%;--muted-foreground:0 0% 63.9%;--accent:0 0% 14.9%;--accent-foreground:0 0% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:0 0% 98%;--border:0 0% 14.9%;--input:0 0% 14.9%;--ring:0 0% 83.1%;--sidebar-background:240 5.9% 10%;--sidebar-foreground:240 4.8% 95.9%;--sidebar-primary:224.3 76.3% 48%;--sidebar-primary-foreground:0 0% 100%;--sidebar-accent:240 3.7% 15.9%;--sidebar-accent-foreground:240 4.8% 95.9%;--sidebar-border:240 3.7% 15.9%;--sidebar-ring:217.2 91.2% 59.8%}:root{--sidebar-background:0 0% 98%;--sidebar-foreground:240 5.3% 26.1%;--sidebar-primary:240 5.9% 10%;--sidebar-primary-foreground:0 0% 98%;--sidebar-accent:240 4.8% 95.9%;--sidebar-accent-foreground:240 5.9% 10%;--sidebar-border:220 13% 91%;--sidebar-ring:217.2 91.2% 59.8%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}flight-search-form{--color-primary:#1d4ed8;--color-secondary:#bfdbfe}.a1-sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.a1-pointer-events-none{pointer-events:none}.a1-visible{visibility:visible}.a1-fixed{position:fixed}.a1-absolute{position:absolute}.a1-relative{position:relative}.a1-inset-0{inset:0}.a1-inset-x-0{left:0;right:0}.a1-inset-y-0{bottom:0;top:0}.a1-bottom-0{bottom:0}.a1-bottom-12{bottom:3rem}.a1-left-0{left:0}.a1-left-1\\/2{left:50%}.a1-left-2{left:.5rem}.a1-left-4{left:1rem}.a1-left-\\[50\\%\\]{left:50%}.a1-right-0{right:0}.a1-right-1{right:.25rem}.a1-right-2{right:.5rem}.a1-right-3{right:.75rem}.a1-right-4{right:1rem}.a1-top-0{top:0}.a1-top-1\\.5{top:.375rem}.a1-top-1\\/2{top:50%}.a1-top-12{top:3rem}.a1-top-3\\.5{top:.875rem}.a1-top-4{top:1rem}.a1-top-\\[50\\%\\]{top:50%}.a1-top-full{top:100%}.a1-z-10{z-index:10}.a1-z-100{z-index:100}.a1-z-20{z-index:20}.a1-z-50{z-index:50}.a1-z-\\[100\\]{z-index:100}.a1-m-0{margin:0}.a1--mx-1{margin-left:-4px;margin-right:-4px}.a1-mx-2{margin-left:8px;margin-right:8px}.a1-mx-3\\.5{margin-left:14px;margin-right:14px}.a1-mx-auto{margin-left:auto;margin-right:auto}.a1-my-1{margin-bottom:4px;margin-top:4px}.a1-mb-0\\.5{margin-bottom:2px}.a1-mb-2{margin-bottom:8px}.a1-ml-0\\.5{margin-left:2px}.a1-ml-2{margin-left:8px}.a1-ml-auto{margin-left:auto}.a1-mt-1{margin-top:4px}.a1-mt-2{margin-top:8px}.a1-mt-4{margin-top:16px}.a1-mt-auto{margin-top:auto}.a1-block{display:block}.a1-flex{display:flex}.a1-inline-flex{display:inline-flex}.a1-grid{display:grid}.a1-hidden{display:none}.a1-aspect-square{aspect-ratio:1/1}.a1-size-4{height:1rem;width:1rem}.a1-h-10{height:40px}.a1-h-11{height:44px}.a1-h-12{height:48px}.a1-h-2{height:8px}.a1-h-3\\.5{height:14px}.a1-h-4{height:16px}.a1-h-5{height:20px}.a1-h-6{height:24px}.a1-h-7{height:28px}.a1-h-8{height:32px}.a1-h-9{height:36px}.a1-h-\\[1px\\]{height:1px}.a1-h-\\[27px\\]{height:27px}.a1-h-\\[2px\\]{height:2px}.a1-h-\\[44px\\]{height:44px}.a1-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.a1-h-full{height:100%}.a1-h-px{height:1px}.a1-h-svh{height:100svh}.a1-max-h-72{max-height:18rem}.a1-max-h-\\[--radix-select-content-available-height\\]{max-height:var(--radix-select-content-available-height)}.a1-max-h-\\[600px\\]{max-height:600px}.a1-max-h-\\[var\\(--radix-dropdown-menu-content-available-height\\)\\]{max-height:var(--radix-dropdown-menu-content-available-height)}.a1-min-h-0{min-height:0}.a1-min-h-svh{min-height:100svh}.a1-w-1\\/2{width:50%}.a1-w-10{width:40px}.a1-w-11{width:44px}.a1-w-2{width:8px}.a1-w-3\\.5{width:14px}.a1-w-3\\/4{width:75%}.a1-w-4{width:16px}.a1-w-5{width:20px}.a1-w-6{width:24px}.a1-w-64{width:16rem}.a1-w-7{width:28px}.a1-w-8{width:32px}.a1-w-9{width:36px}.a1-w-\\[--sidebar-width\\]{width:var(--sidebar-width)}.a1-w-\\[100px\\]{width:100px}.a1-w-\\[1px\\]{width:1px}.a1-w-\\[300px\\]{width:300px}.a1-w-\\[84px\\]{width:84px}.a1-w-auto{width:auto}.a1-w-full{width:100%}.a1-w-max{width:-moz-max-content;width:max-content}.a1-min-w-0{min-width:0}.a1-min-w-5{min-width:1.25rem}.a1-min-w-\\[100px\\]{min-width:100px}.a1-min-w-\\[120px\\]{min-width:120px}.a1-min-w-\\[150px\\]{min-width:150px}.a1-min-w-\\[32px\\]{min-width:32px}.a1-min-w-\\[8rem\\]{min-width:8rem}.a1-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.a1-min-w-full{min-width:100%}.a1-max-w-\\[--skeleton-width\\]{max-width:var(--skeleton-width)}.a1-max-w-\\[200px\\]{max-width:200px}.a1-max-w-\\[95px\\]{max-width:95px}.a1-max-w-full{max-width:100%}.a1-max-w-lg{max-width:32rem}.a1-flex-1{flex:1 1 0%}.a1-shrink{flex-shrink:1}.a1-shrink-0{flex-shrink:0}.a1-flex-grow,.a1-grow{flex-grow:1}.a1-grow-0{flex-grow:0}.a1-basis-full{flex-basis:100%}.a1-origin-\\[--radix-dropdown-menu-content-transform-origin\\]{transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.a1-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.a1-origin-\\[--radix-select-content-transform-origin\\]{transform-origin:var(--radix-select-content-transform-origin)}.a1-origin-\\[--radix-tooltip-content-transform-origin\\]{transform-origin:var(--radix-tooltip-content-transform-origin)}.a1--translate-x-1\\/2{--tw-translate-x:-50%}.a1--translate-x-1\\/2,.a1--translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1--translate-x-px{--tw-translate-x:-1px}.a1--translate-y-1\\/2{--tw-translate-y:-50%}.a1--translate-y-1\\/2,.a1-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-translate-x-1\\/2{--tw-translate-x:50%}.a1-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.a1-translate-x-\\[-50\\%\\],.a1-translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-translate-x-px{--tw-translate-x:1px}.a1-translate-y-1\\/2{--tw-translate-y:50%}.a1-translate-y-1\\/2,.a1-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.-a1-rotate-45{--tw-rotate:-45deg}.-a1-rotate-45,.a1-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-rotate-90{--tw-rotate:90deg}@keyframes a1-pulse{50%{opacity:.5}}.a1-animate-pulse{animation:a1-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes a1-spin{to{transform:rotate(1turn)}}.a1-animate-spin{animation:a1-spin 1s linear infinite}.a1-cursor-default{cursor:default}.a1-cursor-not-allowed{cursor:not-allowed}.a1-cursor-pointer{cursor:pointer}.a1-touch-none{touch-action:none}.a1-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.a1-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.a1-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.a1-grid-cols-\\[24px_1fr\\]{grid-template-columns:24px 1fr}.a1-grid-cols-\\[24px_auto_1fr\\]{grid-template-columns:24px auto 1fr}.a1-grid-cols-\\[24px_auto_auto_1fr\\]{grid-template-columns:24px auto auto 1fr}.a1-grid-cols-\\[24px_auto_auto_auto_1fr\\]{grid-template-columns:24px auto auto auto 1fr}.a1-grid-cols-\\[26px_1fr_30px\\]{grid-template-columns:26px 1fr 30px}.a1-grid-cols-\\[26px_1fr_40px\\]{grid-template-columns:26px 1fr 40px}.a1-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.a1-flex-col{flex-direction:column}.a1-flex-col-reverse{flex-direction:column-reverse}.a1-flex-wrap{flex-wrap:wrap}.a1-items-end{align-items:flex-end}.a1-items-center{align-items:center}.a1-justify-start{justify-content:flex-start}.a1-justify-end{justify-content:flex-end}.a1-justify-center{justify-content:center}.a1-justify-between{justify-content:space-between}.a1-gap-1{gap:4px}.a1-gap-1\\.5{gap:6px}.a1-gap-2{gap:8px}.a1-gap-3{gap:12px}.a1-gap-4{gap:16px}.a1-gap-6{gap:24px}.a1-space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.a1-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.a1-overflow-auto{overflow:auto}.a1-overflow-hidden{overflow:hidden}.a1-overflow-y-auto{overflow-y:auto}.a1-overflow-x-hidden{overflow-x:hidden}.a1-truncate{overflow:hidden;white-space:nowrap}.a1-text-ellipsis,.a1-truncate{text-overflow:ellipsis}.a1-whitespace-nowrap{white-space:nowrap}.a1-break-words{overflow-wrap:break-word}.a1-rounded{border-radius:.25rem}.a1-rounded-full{border-radius:9999px}.a1-rounded-lg{border-radius:var(--radius)}.a1-rounded-md{border-radius:calc(var(--radius) - 2px)}.a1-rounded-none{border-radius:0}.a1-rounded-sm{border-radius:calc(var(--radius) - 4px)}.a1-rounded-xl{border-radius:.75rem}.a1-rounded-b-lg{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}.a1-rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.a1-rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.a1-border{border-width:1px}.a1-border-0{border-width:0}.a1-border-2,.a1-border-\\[2px\\]{border-width:2px}.a1-border-b{border-bottom-width:1px}.a1-border-b-0{border-bottom-width:0}.a1-border-b-2{border-bottom-width:2px}.a1-border-l{border-left-width:1px}.a1-border-l-4{border-left-width:4px}.a1-border-r{border-right-width:1px}.a1-border-t{border-top-width:1px}.a1-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.a1-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.a1-border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity,1))}.a1-border-input{border-color:hsl(var(--input))}.a1-border-primary{border-color:var(--color-primary)}.a1-border-sidebar-border{border-color:hsl(var(--sidebar-border))}.a1-border-transparent{border-color:transparent}.a1-bg-background{background-color:hsl(var(--background))}.a1-bg-black\\/40{background-color:#0006}.a1-bg-black\\/80{background-color:#000c}.a1-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.a1-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.a1-bg-border{background-color:hsl(var(--border))}.a1-bg-card{background-color:hsl(var(--card))}.a1-bg-destructive{background-color:hsl(var(--destructive))}.a1-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.a1-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.a1-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.a1-bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.a1-bg-muted{background-color:hsl(var(--muted))}.a1-bg-popover{background-color:hsl(var(--popover))}.a1-bg-primary{background-color:var(--color-primary)}.a1-bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.a1-bg-secondary{background-color:var(--color-secondary)}.a1-bg-sidebar{background-color:hsl(var(--sidebar-background))}.a1-bg-sidebar-border{background-color:hsl(var(--sidebar-border))}.a1-bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity,1))}.a1-bg-transparent{background-color:transparent}.a1-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.a1-fill-current{fill:currentColor}.a1-fill-indigo-200{fill:#c7d2fe}.a1-fill-indigo-800{fill:#3730a3}.a1-stroke-black{stroke:#000}.a1-stroke-gray-500{stroke:#6b7280}.a1-p-0{padding:0}.a1-p-1{padding:4px}.a1-p-2{padding:8px}.a1-p-4{padding:16px}.a1-p-6{padding:24px}.a1-px-1{padding-left:4px;padding-right:4px}.a1-px-1\\.5{padding-left:6px;padding-right:6px}.a1-px-2{padding-left:8px;padding-right:8px}.a1-px-2\\.5{padding-left:10px;padding-right:10px}.a1-px-3{padding-left:12px;padding-right:12px}.a1-px-4{padding-left:16px;padding-right:16px}.a1-px-5{padding-left:20px;padding-right:20px}.a1-px-8{padding-left:32px;padding-right:32px}.a1-px-\\[4px\\]{padding-left:4px;padding-right:4px}.a1-py-0\\.5{padding-bottom:2px;padding-top:2px}.a1-py-1{padding-bottom:4px;padding-top:4px}.a1-py-1\\.5{padding-bottom:6px;padding-top:6px}.a1-py-2{padding-bottom:8px;padding-top:8px}.a1-py-2\\.5{padding-bottom:10px;padding-top:10px}.a1-py-3{padding-bottom:12px;padding-top:12px}.a1-py-4{padding-bottom:16px;padding-top:16px}.a1-py-\\[2px\\]{padding-top:2px}.a1-pb-0\\.5,.a1-py-\\[2px\\]{padding-bottom:2px}.a1-pb-1{padding-bottom:4px}.a1-pb-2{padding-bottom:8px}.a1-pb-\\[4px\\]{padding-bottom:4px}.a1-pl-0{padding-left:0}.a1-pl-2{padding-left:8px}.a1-pl-3{padding-left:12px}.a1-pl-4{padding-left:16px}.a1-pl-5{padding-left:20px}.a1-pl-8{padding-left:32px}.a1-pr-2{padding-right:8px}.a1-pr-4{padding-right:16px}.a1-pr-7{padding-right:28px}.a1-pr-8{padding-right:32px}.a1-pt-0{padding-top:0}.a1-pt-2{padding-top:8px}.a1-pt-\\[2px\\]{padding-top:2px}.a1-text-left{text-align:left}.a1-text-center{text-align:center}.a1-text-2xl{font-size:1.5rem;line-height:2rem}.a1-text-\\[0\\.5em\\]{font-size:.5em}.a1-text-\\[10px\\]{font-size:10px}.a1-text-\\[12px\\]{font-size:12px}.a1-text-\\[14px\\]{font-size:14px}.a1-text-\\[16px\\]{font-size:16px}.a1-text-\\[35px\\]{font-size:35px}.a1-text-\\[8px\\]{font-size:8px}.a1-text-base{font-size:16px}.a1-text-lg{font-size:18px}.a1-text-sm{font-size:14px}.a1-text-xl{font-size:20px}.a1-text-xs{font-size:12px}.a1-font-bold{font-weight:700}.a1-font-extralight{font-weight:200}.a1-font-light{font-weight:300}.a1-font-medium{font-weight:500}.a1-font-normal{font-weight:400}.a1-font-semibold{font-weight:600}.a1-uppercase{text-transform:uppercase}.a1-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.a1-leading-\\[16px\\]{line-height:16px}.a1-leading-\\[20px\\]{line-height:20px}.a1-leading-none{line-height:1}.a1-leading-tight{line-height:1.25}.a1-tracking-\\[\\.1em\\]{letter-spacing:.1em}.a1-tracking-tight{letter-spacing:-.025em}.a1-tracking-widest{letter-spacing:.1em}.a1-text-\\[\\#565656\\]{--tw-text-opacity:1;color:rgb(86 86 86/var(--tw-text-opacity,1))}.a1-text-\\[\\#5b5b5b\\]{--tw-text-opacity:1;color:rgb(91 91 91/var(--tw-text-opacity,1))}.a1-text-\\[\\#838383\\]{--tw-text-opacity:1;color:rgb(131 131 131/var(--tw-text-opacity,1))}.a1-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.a1-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.a1-text-card-foreground{color:hsl(var(--card-foreground))}.a1-text-destructive-foreground{color:hsl(var(--destructive-foreground))}.a1-text-foreground{color:hsl(var(--foreground))}.a1-text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.a1-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.a1-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.a1-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.a1-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.a1-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.a1-text-muted-foreground{color:hsl(var(--muted-foreground))}.a1-text-popover-foreground{color:hsl(var(--popover-foreground))}.a1-text-primary{color:var(--color-primary)}.a1-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.a1-text-sidebar-foreground{color:hsl(var(--sidebar-foreground))}.a1-text-sidebar-foreground\\/70{color:hsl(var(--sidebar-foreground)/.7)}.a1-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.a1-underline-offset-4{text-underline-offset:4px}.a1-opacity-50{opacity:.5}.a1-opacity-60{opacity:.6}.a1-opacity-70{opacity:.7}.a1-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.a1-shadow,.a1-shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-border\\)\\)\\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-border\\)\\)\\]{--tw-shadow:0 0 0 1px hsl(var(--sidebar-border));--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color)}.a1-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.a1-shadow-lg,.a1-shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.a1-shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.a1-shadow-none,.a1-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.a1-outline-none{outline:2px solid transparent;outline-offset:2px}.a1-ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.a1-ring-0,.a1-ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.a1-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.a1-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.a1-ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity,1))}.a1-ring-primary{--tw-ring-color:var(--color-primary)}.a1-ring-sidebar-ring{--tw-ring-color:hsl(var(--sidebar-ring))}.a1-ring-slate-500{--tw-ring-opacity:1;--tw-ring-color:rgb(100 116 139/var(--tw-ring-opacity,1))}.a1-ring-opacity-75{--tw-ring-opacity:.75}.a1-ring-offset-2{--tw-ring-offset-width:2px}.a1-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.a1-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-\\[left\\,right\\,width\\]{transition-duration:.15s;transition-property:left,right,width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-\\[margin\\,opacity\\]{transition-duration:.15s;transition-property:margin,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-\\[width\\,height\\,padding\\]{transition-duration:.15s;transition-property:width,height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-\\[width\\]{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-duration-200{transition-duration:.2s}.a1-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-ease-linear{transition-timing-function:linear}.a1-\\@container{container-type:inline-size}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.a1-animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-duration:.15s;animation-name:enter}.a1-fade-in-0{--tw-enter-opacity:0}.a1-zoom-in-95{--tw-enter-scale:.95}.a1-duration-200{animation-duration:.2s}.a1-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.a1-ease-linear{animation-timing-function:linear}:host{font-family:inherit;font-style:normal;font-weight:300}.before\\:a1-absolute:before{content:var(--tw-content);position:absolute}.before\\:a1-bottom-0:before{bottom:0;content:var(--tw-content)}.before\\:a1-left-0:before{content:var(--tw-content);left:0}.before\\:a1-left-1\\/2:before{content:var(--tw-content);left:50%}.before\\:a1-right-0:before{content:var(--tw-content);right:0}.before\\:a1-right-1\\/2:before{content:var(--tw-content);right:50%}.before\\:a1-top-0:before{content:var(--tw-content);top:0}.before\\:a1-bg-gray-200:before{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:a1-absolute:after{content:var(--tw-content);position:absolute}.after\\:a1-bottom-0:after{bottom:0;content:var(--tw-content)}.after\\:a1-left-0:after{content:var(--tw-content);left:0}.after\\:a1-right-0:after{content:var(--tw-content);right:0}.after\\:a1-top-0:after{content:var(--tw-content);top:0}.after\\:a1-rounded-sm:after{border-radius:calc(var(--radius) - 4px);content:var(--tw-content)}.after\\:a1-bg-gray-600:after{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1));content:var(--tw-content)}.focus-within\\:a1-ring-primary:focus-within{--tw-ring-color:var(--color-primary)}.hover\\:a1-bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:a1-bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.hover\\:a1-bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.hover\\:a1-bg-destructive\\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\\:a1-bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\\:a1-bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.hover\\:a1-bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:a1-bg-primary:hover{background-color:var(--color-primary)}.hover\\:a1-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:a1-text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\\:a1-text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\\:a1-underline:hover{text-decoration-line:underline}.hover\\:before\\:a1-ring-primary:hover:before{--tw-ring-color:var(--color-primary);content:var(--tw-content)}.hover\\:after\\:a1-absolute:hover:after{content:var(--tw-content);position:absolute}.hover\\:after\\:a1-left-0:hover:after{content:var(--tw-content);left:0}.hover\\:after\\:a1-right-0:hover:after{content:var(--tw-content);right:0}.hover\\:after\\:a1-z-10:hover:after{content:var(--tw-content);z-index:10}.hover\\:after\\:a1-h-full:hover:after{content:var(--tw-content);height:100%}.hover\\:after\\:a1-w-full:hover:after{content:var(--tw-content);width:100%}.hover\\:after\\:a1-rounded-sm:hover:after{border-radius:calc(var(--radius) - 4px);content:var(--tw-content)}.hover\\:after\\:a1-ring-2:hover:after{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);content:var(--tw-content)}.focus\\:a1-bg-gray-400:focus{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.focus\\:a1-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:a1-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:a1-ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\\:a1-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:a1-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:a1-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:a1-ring-gray-400:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(156 163 175/var(--tw-ring-opacity,1))}.focus-visible\\:a1-ring-green-700:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(21 128 61/var(--tw-ring-opacity,1))}.focus-visible\\:a1-ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\\:a1-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\\:a1-ring-offset-white:focus-visible{--tw-ring-offset-color:#fff}.active\\:a1-bg-green-700:active{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.disabled\\:a1-pointer-events-none:disabled{pointer-events:none}.disabled\\:a1-bg-transparent:disabled{background-color:transparent}.disabled\\:a1-bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.disabled\\:a1-opacity-50:disabled{opacity:.5}.data-\\[state\\=active\\]\\:a1-bg-secondary[data-state=active]{background-color:var(--color-secondary)}.data-\\[state\\=active\\]\\:a1-text-white[data-state=active]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:a1-shadow-sm[data-state=active]{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:a1-left-\\[calc\\(var\\(--sidebar-width\\)\\*-1\\)\\]{left:calc(var(--sidebar-width)*-1)}.a1-group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:a1-right-\\[calc\\(var\\(--sidebar-width\\)\\*-1\\)\\]{right:calc(var(--sidebar-width)*-1)}.a1-group[data-side=left] .group-data-\\[side\\=left\\]\\:a1--right-4{right:-1rem}.a1-group[data-side=right] .group-data-\\[side\\=right\\]\\:a1-left-0{left:0}.a1-group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:a1--mt-8{margin-top:-2rem}.a1-group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:a1-hidden{display:none}.a1-group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:a1-w-\\[--sidebar-width-icon\\]{width:var(--sidebar-width-icon)}.a1-group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:a1-w-\\[calc\\(var\\(--sidebar-width-icon\\)_\\+_theme\\(spacing\\.4\\)\\)\\]{width:calc(var(--sidebar-width-icon) + 1rem)}.a1-group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:a1-w-\\[calc\\(var\\(--sidebar-width-icon\\)_\\+_theme\\(spacing\\.4\\)_\\+2px\\)\\]{width:calc(var(--sidebar-width-icon) + 1rem + 2px)}.a1-group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:a1-w-0{width:0}.a1-group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:a1-translate-x-0{--tw-translate-x:0px}.a1-group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:a1-translate-x-0,.a1-group[data-side=right] .group-data-\\[side\\=right\\]\\:a1-rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-group[data-side=right] .group-data-\\[side\\=right\\]\\:a1-rotate-180{--tw-rotate:180deg}.a1-group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:a1-overflow-hidden{overflow:hidden}.a1-group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:a1-rounded-lg{border-radius:var(--radius)}.a1-group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:a1-border{border-width:1px}.a1-group[data-side=left] .group-data-\\[side\\=left\\]\\:a1-border-r{border-right-width:1px}.a1-group[data-side=right] .group-data-\\[side\\=right\\]\\:a1-border-l{border-left-width:1px}.a1-group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:a1-border-sidebar-border{border-color:hsl(var(--sidebar-border))}.a1-group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:a1-opacity-0{opacity:0}.a1-group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:a1-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:hover\\:a1-bg-sidebar:hover{background-color:hsl(var(--sidebar-background))}@container (min-width: 576px){.\\@xl\\:a1-grid{display:grid}.\\@xl\\:a1-rotate-0{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\@xl\\:a1-grid-cols-\\[calc\\(50\\%-20px\\)_24px_calc\\(50\\%-20px\\)\\]{grid-template-columns:calc(50% - 20px) 24px calc(50% - 20px)}.\\@xl\\:hover\\:a1-bg-secondary:hover{background-color:var(--color-secondary)}.\\@xl\\:hover\\:a1-text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}}@container (min-width: 672px){.\\@2xl\\:a1-bottom-2{bottom:.5rem}.\\@2xl\\:a1-left-1\\/2{left:50%}.\\@2xl\\:a1-top-2{top:.5rem}.\\@2xl\\:a1-mb-0{margin-bottom:0}.\\@2xl\\:a1-flex{display:flex}.\\@2xl\\:a1-hidden{display:none}.\\@2xl\\:a1-h-\\[initial\\]{height:auto}.\\@2xl\\:a1-w-\\[175px\\]{width:175px}.\\@2xl\\:a1-w-\\[2px\\]{width:2px}.\\@2xl\\:a1-flex-row{flex-direction:row}.\\@2xl\\:a1-items-end{align-items:flex-end}.\\@2xl\\:a1-items-center{align-items:center}.\\@2xl\\:a1-justify-start{justify-content:flex-start}.\\@2xl\\:a1-gap-2{gap:8px}.\\@2xl\\:a1-gap-4{gap:16px}}@container (min-width: 1024px){.\\@5xl\\:a1-block{display:block}.\\@5xl\\:a1-grid{display:grid}.\\@5xl\\:a1-hidden{display:none}.\\@5xl\\:a1-min-w-0{min-width:0}.\\@5xl\\:a1-flex-1{flex:1 1 0%}.\\@5xl\\:a1-flex-shrink-0{flex-shrink:0}.\\@5xl\\:a1-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@5xl\\:a1-grid-cols-\\[3fr_400px\\]{grid-template-columns:3fr 400px}.\\@5xl\\:a1-flex-row{flex-direction:row}.\\@5xl\\:a1-items-end{align-items:flex-end}.\\@5xl\\:a1-gap-4{gap:16px}}.dark\\:a1-border-gray-600:is([data-mode=dark] *){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.dark\\:a1-bg-black:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.dark\\:a1-bg-gray-600:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.dark\\:a1-bg-gray-800:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:a1-bg-green-600:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.dark\\:a1-stroke-gray-100:is([data-mode=dark] *){stroke:#f3f4f6}.dark\\:a1-text-gray-300:is([data-mode=dark] *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.dark\\:a1-text-white:is([data-mode=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:a1-bg-green-800:hover:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity,1))}.dark\\:focus-visible\\:a1-ring-green-600:focus-visible:is([data-mode=dark] *){--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity,1))}.dark\\:focus-visible\\:a1-ring-offset-black:focus-visible:is([data-mode=dark] *){--tw-ring-offset-color:#000}.dark\\:active\\:a1-bg-green-800:active:is([data-mode=dark] *){--tw-bg-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity,1))}@container (min-width: 576px){.dark\\:\\@xl\\:hover\\:a1-text-white:hover:is([data-mode=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}}@media(min-width:640px){.sm\\:a1-flex{display:flex}.sm\\:a1-max-w-sm{max-width:24rem}.sm\\:a1-flex-row{flex-direction:row}.sm\\:a1-justify-end{justify-content:flex-end}.sm\\:a1-gap-2\\.5{gap:10px}.sm\\:a1-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:a1-text-left{text-align:left}}@media(min-width:768px){.md\\:a1-left-10{left:2.5rem}.md\\:a1-right-10{right:2.5rem}.md\\:a1-mr-1{margin-right:4px}.md\\:a1-mt-2{margin-top:8px}.md\\:a1-block{display:block}.md\\:a1-flex{display:flex}.md\\:a1-hidden{display:none}.md\\:a1-h-12{height:48px}.md\\:a1-w-12{width:48px}.md\\:a1-w-\\[150px\\]{width:150px}.md\\:a1-w-auto{width:auto}.md\\:a1-min-w-\\[325px\\]{min-width:325px}.md\\:a1-flex-1{flex:1 1 0%}.md\\:a1-p-4{padding:16px}.md\\:a1-py-2{padding-top:8px}.md\\:a1-pb-2,.md\\:a1-py-2{padding-bottom:8px}.md\\:a1-pb-4{padding-bottom:16px}.md\\:a1-text-\\[16px\\]{font-size:16px}.md\\:a1-text-sm{font-size:14px}.md\\:a1-opacity-0{opacity:0}}';function HA(t){const n=t.trim().toLowerCase();if(/^\d+\s+\d+%\s+\d+%$/.test(n))return n;const r=n.match(/^hsl\(\s*([\d.]+)\s*[ ,]\s*([\d.]+)%\s*[ ,]\s*([\d.]+)%\s*\)$/);if(r){const f=Math.round(parseFloat(r[1])),h=Math.round(parseFloat(r[2])),g=Math.round(parseFloat(r[3]));return`${f} ${h}% ${g}%`}const i=n.match(/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)$/);if(i){const f=parseFloat(i[1]),h=parseFloat(i[2]),g=parseFloat(i[3]);return BA(f,h,g)}const l=n.match(/^#([\da-f]{3}|[\da-f]{6})$/);if(l){const f=l[1],[h,g,y]=f.length===3?[parseInt(f.charAt(0)+f.charAt(0),16),parseInt(f.charAt(1)+f.charAt(1),16),parseInt(f.charAt(2)+f.charAt(2),16)]:[parseInt(f.slice(0,2),16),parseInt(f.slice(2,4),16),parseInt(f.slice(4,6),16)];return BA(h,g,y)}return n}function BA(t,n,r){const i=t/255,l=n/255,f=r/255,h=Math.max(i,l,f),g=Math.min(i,l,f);let y=0,b=0;const w=(h+g)/2;if(h!==g){const j=h-g;switch(b=w>.5?j/(2-h-g):j/(h+g),h){case i:y=(l-f)/j+(l<f?6:0);break;case l:y=(f-i)/j+2;break;default:y=(i-l)/j+4}y/=6}const E=Math.round(y*360),A=Math.round(b*100),I=Math.round(w*100);return`${E} ${A}% ${I}%`}function Y8(t){const n=t.trim();return/^(?:\d+\.?\d*|\.\d+)$/.test(n)?`${n.endsWith(".")?n.slice(0,-1):n}px`:n}function Fc(t,n){if(t===void 0)return n;const r=t.trim().toLowerCase();return n?r!=="false":r==="true"}const G8=new yw,V8=Object.keys(H8.shape);function $8(t){return M.jsxs(xw,{client:G8,children:[M.jsx("style",{children:F8}),M.jsx(q8,{...t})]})}class qA extends HTMLElement{connectedCallback(){this.style.position="relative",this.style.zIndex="10",this.style.lineHeight="1.5",this.style.display="flex",this.style.flexDirection="column";const n=document.createElement("span"),r=this.attachShadow({mode:"closed"});r.appendChild(n);const i=V8.reduce((I,j)=>{const D=this.getAttribute(j.toLocaleLowerCase());return D!=null&&(I[j]=D),I},{});typeof i.defaultNearbyDatesForLowerFares=="string"&&(i.defaultNearbyDatesForLowerFares=Fc(i.defaultNearbyDatesForLowerFares,!1)),typeof i.consentDataSharing=="string"&&(i.consentDataSharing=Fc(i.consentDataSharing,!0)),typeof i.consentFunctional=="string"&&(i.consentFunctional=Fc(i.consentFunctional,!0)),typeof i.consentAnalytics=="string"&&(i.consentAnalytics=Fc(i.consentAnalytics,!0)),typeof i.consentAdvertising=="string"&&(i.consentAdvertising=Fc(i.consentAdvertising,!0)),typeof i.hideCarButton=="string"&&(i.hideCarButton=Fc(i.hideCarButton,!1));const l=typeof i.primaryColor=="string"&&i.primaryColor.trim()!==""?i.primaryColor:"#0B89FF",f=typeof i.secondaryColor=="string"&&i.secondaryColor.trim()!==""?i.secondaryColor:"#0B89FF",h=this,g=getComputedStyle(h),y=g.getPropertyValue("--color-primary").trim(),b=g.getPropertyValue("--color-secondary").trim(),w=g.getPropertyValue("--radius").trim();(typeof i.primaryColor=="string"&&i.primaryColor.trim()!==""||!y)&&(h.style.setProperty("--color-primary",l),h.style.setProperty("--primary",HA(l))),(typeof i.secondaryColor=="string"&&i.secondaryColor.trim()!==""||!b)&&(h.style.setProperty("--color-secondary",f),h.style.setProperty("--secondary",HA(f)));const E=this.getAttribute("borderradius");if(typeof E=="string"&&E.trim()!==""||!w){const I=typeof E=="string"&&E.trim()!==""?Y8(E):"0.5rem";h.style.setProperty("--radius",I)}z5.createRoot(n).render(M.jsx($8,{apiDomain:"https://flymyairport.vercel.app",shadowRoot:r,...i}))}}return customElements.define("flight-search-form",qA),qA})();
|