259 lines
436 KiB
JavaScript
259 lines
436 KiB
JavaScript
function n1(t,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in t)){const u=Object.getOwnPropertyDescriptor(s,l);u&&Object.defineProperty(t,l,u.get?u:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function i(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(l){if(l.ep)return;l.ep=!0;const u=i(l);fetch(l.href,u)}})();function Wg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vc={exports:{}},xo={},Fc={exports:{}},Ne={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Fh;function r1(){if(Fh)return Ne;Fh=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,k={};function N(R,B,oe){this.props=R,this.context=B,this.refs=k,this.updater=oe||b}N.prototype.isReactComponent={},N.prototype.setState=function(R,B){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,B,"setState")},N.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function P(){}P.prototype=N.prototype;function A(R,B,oe){this.props=R,this.context=B,this.refs=k,this.updater=oe||b}var M=A.prototype=new P;M.constructor=A,T(M,N.prototype),M.isPureReactComponent=!0;var O=Array.isArray,V=Object.prototype.hasOwnProperty,U={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function F(R,B,oe){var ae,Se={},be=null,G=null;if(B!=null)for(ae in B.ref!==void 0&&(G=B.ref),B.key!==void 0&&(be=""+B.key),B)V.call(B,ae)&&!z.hasOwnProperty(ae)&&(Se[ae]=B[ae]);var ue=arguments.length-2;if(ue===1)Se.children=oe;else if(1<ue){for(var ve=Array(ue),ke=0;ke<ue;ke++)ve[ke]=arguments[ke+2];Se.children=ve}if(R&&R.defaultProps)for(ae in ue=R.defaultProps,ue)Se[ae]===void 0&&(Se[ae]=ue[ae]);return{$$typeof:t,type:R,key:be,ref:G,props:Se,_owner:U.current}}function J(R,B){return{$$typeof:t,type:R.type,key:B,ref:R.ref,props:R.props,_owner:R._owner}}function ce(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function ye(R){var B={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(oe){return B[oe]})}var xe=/\/+/g;function me(R,B){return typeof R=="object"&&R!==null&&R.key!=null?ye(""+R.key):B.toString(36)}function pe(R,B,oe,ae,Se){var be=typeof R;(be==="undefined"||be==="boolean")&&(R=null);var G=!1;if(R===null)G=!0;else switch(be){case"string":case"number":G=!0;break;case"object":switch(R.$$typeof){case t:case r:G=!0}}if(G)return G=R,Se=Se(G),R=ae===""?"."+me(G,0):ae,O(Se)?(oe="",R!=null&&(oe=R.replace(xe,"$&/")+"/"),pe(Se,B,oe,"",function(ke){return ke})):Se!=null&&(ce(Se)&&(Se=J(Se,oe+(!Se.key||G&&G.key===Se.key?"":(""+Se.key).replace(xe,"$&/")+"/")+R)),B.push(Se)),1;if(G=0,ae=ae===""?".":ae+":",O(R))for(var ue=0;ue<R.length;ue++){be=R[ue];var ve=ae+me(be,ue);G+=pe(be,B,oe,ve,Se)}else if(ve=w(R),typeof ve=="function")for(R=ve.call(R),ue=0;!(be=R.next()).done;)be=be.value,ve=ae+me(be,ue++),G+=pe(be,B,oe,ve,Se);else if(be==="object")throw B=String(R),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return G}function we(R,B,oe){if(R==null)return R;var ae=[],Se=0;return pe(R,ae,"","",function(be){return B.call(oe,be,Se++)}),ae}function se(R){if(R._status===-1){var B=R._result;B=B(),B.then(function(oe){(R._status===0||R._status===-1)&&(R._status=1,R._result=oe)},function(oe){(R._status===0||R._status===-1)&&(R._status=2,R._result=oe)}),R._status===-1&&(R._status=0,R._result=B)}if(R._status===1)return R._result.default;throw R._result}var q={current:null},I={transition:null},Q={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:I,ReactCurrentOwner:U};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Ne.Children={map:we,forEach:function(R,B,oe){we(R,function(){B.apply(this,arguments)},oe)},count:function(R){var B=0;return we(R,function(){B++}),B},toArray:function(R){return we(R,function(B){return B})||[]},only:function(R){if(!ce(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Ne.Component=N,Ne.Fragment=i,Ne.Profiler=l,Ne.PureComponent=A,Ne.StrictMode=s,Ne.Suspense=m,Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,Ne.act=Y,Ne.cloneElement=function(R,B,oe){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ae=T({},R.props),Se=R.key,be=R.ref,G=R._owner;if(B!=null){if(B.ref!==void 0&&(be=B.ref,G=U.current),B.key!==void 0&&(Se=""+B.key),R.type&&R.type.defaultProps)var ue=R.type.defaultProps;for(ve in B)V.call(B,ve)&&!z.hasOwnProperty(ve)&&(ae[ve]=B[ve]===void 0&&ue!==void 0?ue[ve]:B[ve])}var ve=arguments.length-2;if(ve===1)ae.children=oe;else if(1<ve){ue=Array(ve);for(var ke=0;ke<ve;ke++)ue[ke]=arguments[ke+2];ae.children=ue}return{$$typeof:t,type:R.type,key:Se,ref:be,props:ae,_owner:G}},Ne.createContext=function(R){return R={$$typeof:c,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:u,_context:R},R.Consumer=R},Ne.createElement=F,Ne.createFactory=function(R){var B=F.bind(null,R);return B.type=R,B},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:p,render:R}},Ne.isValidElement=ce,Ne.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:se}},Ne.memo=function(R,B){return{$$typeof:g,type:R,compare:B===void 0?null:B}},Ne.startTransition=function(R){var B=I.transition;I.transition={};try{R()}finally{I.transition=B}},Ne.unstable_act=Y,Ne.useCallback=function(R,B){return q.current.useCallback(R,B)},Ne.useContext=function(R){return q.current.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R){return q.current.useDeferredValue(R)},Ne.useEffect=function(R,B){return q.current.useEffect(R,B)},Ne.useId=function(){return q.current.useId()},Ne.useImperativeHandle=function(R,B,oe){return q.current.useImperativeHandle(R,B,oe)},Ne.useInsertionEffect=function(R,B){return q.current.useInsertionEffect(R,B)},Ne.useLayoutEffect=function(R,B){return q.current.useLayoutEffect(R,B)},Ne.useMemo=function(R,B){return q.current.useMemo(R,B)},Ne.useReducer=function(R,B,oe){return q.current.useReducer(R,B,oe)},Ne.useRef=function(R){return q.current.useRef(R)},Ne.useState=function(R){return q.current.useState(R)},Ne.useSyncExternalStore=function(R,B,oe){return q.current.useSyncExternalStore(R,B,oe)},Ne.useTransition=function(){return q.current.useTransition()},Ne.version="18.3.1",Ne}var zh;function Zu(){return zh||(zh=1,Fc.exports=r1()),Fc.exports}/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Bh;function i1(){if(Bh)return xo;Bh=1;var t=Zu(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(p,m,g){var y,v={},w=null,b=null;g!==void 0&&(w=""+g),m.key!==void 0&&(w=""+m.key),m.ref!==void 0&&(b=m.ref);for(y in m)s.call(m,y)&&!u.hasOwnProperty(y)&&(v[y]=m[y]);if(p&&p.defaultProps)for(y in m=p.defaultProps,m)v[y]===void 0&&(v[y]=m[y]);return{$$typeof:r,type:p,key:w,ref:b,props:v,_owner:l.current}}return xo.Fragment=i,xo.jsx=c,xo.jsxs=c,xo}var Hh;function o1(){return Hh||(Hh=1,Vc.exports=i1()),Vc.exports}var f=o1(),ra={},zc={exports:{}},kt={},Bc={exports:{}},Hc={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Uh;function s1(){return Uh||(Uh=1,(function(t){function r(I,Q){var Y=I.length;I.push(Q);e:for(;0<Y;){var R=Y-1>>>1,B=I[R];if(0<l(B,Q))I[R]=Q,I[Y]=B,Y=R;else break e}}function i(I){return I.length===0?null:I[0]}function s(I){if(I.length===0)return null;var Q=I[0],Y=I.pop();if(Y!==Q){I[0]=Y;e:for(var R=0,B=I.length,oe=B>>>1;R<oe;){var ae=2*(R+1)-1,Se=I[ae],be=ae+1,G=I[be];if(0>l(Se,Y))be<B&&0>l(G,Se)?(I[R]=G,I[be]=Y,R=be):(I[R]=Se,I[ae]=Y,R=ae);else if(be<B&&0>l(G,Y))I[R]=G,I[be]=Y,R=be;else break e}}return Q}function l(I,Q){var Y=I.sortIndex-Q.sortIndex;return Y!==0?Y:I.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,p=c.now();t.unstable_now=function(){return c.now()-p}}var m=[],g=[],y=1,v=null,w=3,b=!1,T=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(I){for(var Q=i(g);Q!==null;){if(Q.callback===null)s(g);else if(Q.startTime<=I)s(g),Q.sortIndex=Q.expirationTime,r(m,Q);else break;Q=i(g)}}function O(I){if(k=!1,M(I),!T)if(i(m)!==null)T=!0,se(V);else{var Q=i(g);Q!==null&&q(O,Q.startTime-I)}}function V(I,Q){T=!1,k&&(k=!1,P(F),F=-1),b=!0;var Y=w;try{for(M(Q),v=i(m);v!==null&&(!(v.expirationTime>Q)||I&&!ye());){var R=v.callback;if(typeof R=="function"){v.callback=null,w=v.priorityLevel;var B=R(v.expirationTime<=Q);Q=t.unstable_now(),typeof B=="function"?v.callback=B:v===i(m)&&s(m),M(Q)}else s(m);v=i(m)}if(v!==null)var oe=!0;else{var ae=i(g);ae!==null&&q(O,ae.startTime-Q),oe=!1}return oe}finally{v=null,w=Y,b=!1}}var U=!1,z=null,F=-1,J=5,ce=-1;function ye(){return!(t.unstable_now()-ce<J)}function xe(){if(z!==null){var I=t.unstable_now();ce=I;var Q=!0;try{Q=z(!0,I)}finally{Q?me():(U=!1,z=null)}}else U=!1}var me;if(typeof A=="function")me=function(){A(xe)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,we=pe.port2;pe.port1.onmessage=xe,me=function(){we.postMessage(null)}}else me=function(){N(xe,0)};function se(I){z=I,U||(U=!0,me())}function q(I,Q){F=N(function(){I(t.unstable_now())},Q)}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(I){I.callback=null},t.unstable_continueExecution=function(){T||b||(T=!0,se(V))},t.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<I?Math.floor(1e3/I):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return i(m)},t.unstable_next=function(I){switch(w){case 1:case 2:case 3:var Q=3;break;default:Q=w}var Y=w;w=Q;try{return I()}finally{w=Y}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(I,Q){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var Y=w;w=I;try{return Q()}finally{w=Y}},t.unstable_scheduleCallback=function(I,Q,Y){var R=t.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?R+Y:R):Y=R,I){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=Y+B,I={id:y++,callback:Q,priorityLevel:I,startTime:Y,expirationTime:B,sortIndex:-1},Y>R?(I.sortIndex=Y,r(g,I),i(m)===null&&I===i(g)&&(k?(P(F),F=-1):k=!0,q(O,Y-R))):(I.sortIndex=B,r(m,I),T||b||(T=!0,se(V))),I},t.unstable_shouldYield=ye,t.unstable_wrapCallback=function(I){var Q=w;return function(){var Y=w;w=Q;try{return I.apply(this,arguments)}finally{w=Y}}}})(Hc)),Hc}var Wh;function a1(){return Wh||(Wh=1,Bc.exports=s1()),Bc.exports}/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var $h;function l1(){if($h)return kt;$h=1;var t=Zu(),r=a1();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(e,n){c(e,n),c(e+"Capture",n)}function c(e,n){for(l[e]=n,e=0;e<n.length;e++)s.add(n[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,y={},v={};function w(e){return m.call(v,e)?!0:m.call(y,e)?!1:g.test(e)?v[e]=!0:(y[e]=!0,!1)}function b(e,n,o,a){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function T(e,n,o,a){if(n===null||typeof n>"u"||b(e,n,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function k(e,n,o,a,d,h,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=d,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=h,this.removeEmptyString=x}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];N[n]=new k(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new k(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){N[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(P,A);N[n]=new k(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(P,A);N[n]=new k(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(P,A);N[n]=new k(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,n,o,a){var d=N.hasOwnProperty(n)?N[n]:null;(d!==null?d.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(T(n,o,d,a)&&(o=null),a||d===null?w(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):d.mustUseProperty?e[d.propertyName]=o===null?d.type===3?!1:"":o:(n=d.attributeName,a=d.attributeNamespace,o===null?e.removeAttribute(n):(d=d.type,o=d===3||d===4&&o===!0?"":""+o,a?e.setAttributeNS(a,n,o):e.setAttribute(n,o))))}var O=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),U=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),ye=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),we=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen"),I=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=I&&e[I]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,R;function B(e){if(R===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);R=n&&n[1]||""}return`
|
||
`+R+e}var oe=!1;function ae(e,n){if(!e||oe)return"";oe=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(_){var a=_}Reflect.construct(e,[],n)}else{try{n.call()}catch(_){a=_}e.call(n.prototype)}else{try{throw Error()}catch(_){a=_}e()}}catch(_){if(_&&a&&typeof _.stack=="string"){for(var d=_.stack.split(`
|
||
`),h=a.stack.split(`
|
||
`),x=d.length-1,C=h.length-1;1<=x&&0<=C&&d[x]!==h[C];)C--;for(;1<=x&&0<=C;x--,C--)if(d[x]!==h[C]){if(x!==1||C!==1)do if(x--,C--,0>C||d[x]!==h[C]){var j=`
|
||
`+d[x].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=x&&0<=C);break}}}finally{oe=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?B(e):""}function Se(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=ae(e.type,!1),e;case 11:return e=ae(e.type.render,!1),e;case 1:return e=ae(e.type,!0),e;default:return""}}function be(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case U:return"Portal";case J:return"Profiler";case F:return"StrictMode";case me:return"Suspense";case pe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ye:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case xe:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case we:return n=e.displayName||null,n!==null?n:be(e.type)||"Memo";case se:n=e._payload,e=e._init;try{return be(e(n))}catch{}}return null}function G(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return be(n);case 8:return n===F?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ve(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ke(e){var n=ve(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),a=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,h=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(x){a=""+x,h.call(this,x)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Te(e){e._valueTracker||(e._valueTracker=ke(e))}function Re(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),a="";return e&&(a=ve(e)?e.checked?"true":"false":e.value),e=a,e!==o?(n.setValue(e),!0):!1}function nt(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}}function Wt(e,n){var o=n.checked;return Y({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Ir(e,n){var o=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;o=ue(n.value!=null?n.value:o),e._wrapperState={initialChecked:a,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Dr(e,n){n=n.checked,n!=null&&M(e,"checked",n,!1)}function ar(e,n){Dr(e,n);var o=ue(n.value),a=n.type;if(o!=null)a==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ga(e,n.type,o):n.hasOwnProperty("defaultValue")&&Ga(e,n.type,ue(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Gd(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function Ga(e,n,o){(n!=="number"||nt(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Ii=Array.isArray;function Lr(e,n,o,a){if(e=e.options,n){n={};for(var d=0;d<o.length;d++)n["$"+o[d]]=!0;for(o=0;o<e.length;o++)d=n.hasOwnProperty("$"+e[o].value),e[o].selected!==d&&(e[o].selected=d),d&&a&&(e[o].defaultSelected=!0)}else{for(o=""+ue(o),n=null,d=0;d<e.length;d++){if(e[d].value===o){e[d].selected=!0,a&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function Ya(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return Y({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yd(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(Ii(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:ue(o)}}function Xd(e,n){var o=ue(n.value),a=ue(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),a!=null&&(e.defaultValue=""+a)}function Qd(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function qd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xa(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?qd(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xo,Zd=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,a,d){MSApp.execUnsafeLocalFunction(function(){return e(n,o,a,d)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Xo=Xo||document.createElement("div"),Xo.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Di(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Li={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sx=["Webkit","ms","Moz","O"];Object.keys(Li).forEach(function(e){sx.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Li[n]=Li[e]})});function Jd(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Li.hasOwnProperty(e)&&Li[e]?(""+n).trim():n+"px"}function ef(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var a=o.indexOf("--")===0,d=Jd(o,n[o],a);o==="float"&&(o="cssFloat"),a?e.setProperty(o,d):e[o]=d}}var ax=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qa(e,n){if(n){if(ax[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function qa(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";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 Za=null;function Ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var el=null,_r=null,Or=null;function tf(e){if(e=ro(e)){if(typeof el!="function")throw Error(i(280));var n=e.stateNode;n&&(n=vs(n),el(e.stateNode,e.type,n))}}function nf(e){_r?Or?Or.push(e):Or=[e]:_r=e}function rf(){if(_r){var e=_r,n=Or;if(Or=_r=null,tf(e),n)for(e=0;e<n.length;e++)tf(n[e])}}function of(e,n){return e(n)}function sf(){}var tl=!1;function af(e,n,o){if(tl)return e(n,o);tl=!0;try{return of(e,n,o)}finally{tl=!1,(_r!==null||Or!==null)&&(sf(),rf())}}function _i(e,n){var o=e.stateNode;if(o===null)return null;var a=vs(o);if(a===null)return null;o=a[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var nl=!1;if(p)try{var Oi={};Object.defineProperty(Oi,"passive",{get:function(){nl=!0}}),window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{nl=!1}function lx(e,n,o,a,d,h,x,C,j){var _=Array.prototype.slice.call(arguments,3);try{n.apply(o,_)}catch($){this.onError($)}}var Vi=!1,Qo=null,qo=!1,rl=null,cx={onError:function(e){Vi=!0,Qo=e}};function ux(e,n,o,a,d,h,x,C,j){Vi=!1,Qo=null,lx.apply(cx,arguments)}function dx(e,n,o,a,d,h,x,C,j){if(ux.apply(this,arguments),Vi){if(Vi){var _=Qo;Vi=!1,Qo=null}else throw Error(i(198));qo||(qo=!0,rl=_)}}function lr(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function lf(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function cf(e){if(lr(e)!==e)throw Error(i(188))}function fx(e){var n=e.alternate;if(!n){if(n=lr(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,a=n;;){var d=o.return;if(d===null)break;var h=d.alternate;if(h===null){if(a=d.return,a!==null){o=a;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===o)return cf(d),e;if(h===a)return cf(d),n;h=h.sibling}throw Error(i(188))}if(o.return!==a.return)o=d,a=h;else{for(var x=!1,C=d.child;C;){if(C===o){x=!0,o=d,a=h;break}if(C===a){x=!0,a=d,o=h;break}C=C.sibling}if(!x){for(C=h.child;C;){if(C===o){x=!0,o=h,a=d;break}if(C===a){x=!0,a=h,o=d;break}C=C.sibling}if(!x)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function uf(e){return e=fx(e),e!==null?df(e):null}function df(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=df(e);if(n!==null)return n;e=e.sibling}return null}var ff=r.unstable_scheduleCallback,pf=r.unstable_cancelCallback,px=r.unstable_shouldYield,hx=r.unstable_requestPaint,Ue=r.unstable_now,mx=r.unstable_getCurrentPriorityLevel,il=r.unstable_ImmediatePriority,hf=r.unstable_UserBlockingPriority,Zo=r.unstable_NormalPriority,gx=r.unstable_LowPriority,mf=r.unstable_IdlePriority,Jo=null,nn=null;function yx(e){if(nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(Jo,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:wx,vx=Math.log,xx=Math.LN2;function wx(e){return e>>>=0,e===0?32:31-(vx(e)/xx|0)|0}var es=64,ts=4194304;function Fi(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ns(e,n){var o=e.pendingLanes;if(o===0)return 0;var a=0,d=e.suspendedLanes,h=e.pingedLanes,x=o&268435455;if(x!==0){var C=x&~d;C!==0?a=Fi(C):(h&=x,h!==0&&(a=Fi(h)))}else x=o&~d,x!==0?a=Fi(x):h!==0&&(a=Fi(h));if(a===0)return 0;if(n!==0&&n!==a&&(n&d)===0&&(d=a&-a,h=n&-n,d>=h||d===16&&(h&4194240)!==0))return n;if((a&4)!==0&&(a|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=a;0<n;)o=31-$t(n),d=1<<o,a|=e[o],n&=~d;return a}function Sx(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kx(e,n){for(var o=e.suspendedLanes,a=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes;0<h;){var x=31-$t(h),C=1<<x,j=d[x];j===-1?((C&o)===0||(C&a)!==0)&&(d[x]=Sx(C,n)):j<=n&&(e.expiredLanes|=C),h&=~C}}function ol(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gf(){var e=es;return es<<=1,(es&4194240)===0&&(es=64),e}function sl(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function zi(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-$t(n),e[n]=o}function bx(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<o;){var d=31-$t(o),h=1<<d;n[d]=0,a[d]=-1,e[d]=-1,o&=~h}}function al(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var a=31-$t(o),d=1<<a;d&n|e[a]&n&&(e[a]|=n),o&=~d}}var Ae=0;function yf(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var vf,ll,xf,wf,Sf,cl=!1,rs=[],En=null,An=null,Rn=null,Bi=new Map,Hi=new Map,Mn=[],Cx="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 submit".split(" ");function kf(e,n){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":Bi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(n.pointerId)}}function Ui(e,n,o,a,d,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:o,eventSystemFlags:a,nativeEvent:h,targetContainers:[d]},n!==null&&(n=ro(n),n!==null&&ll(n)),e):(e.eventSystemFlags|=a,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function Nx(e,n,o,a,d){switch(n){case"focusin":return En=Ui(En,e,n,o,a,d),!0;case"dragenter":return An=Ui(An,e,n,o,a,d),!0;case"mouseover":return Rn=Ui(Rn,e,n,o,a,d),!0;case"pointerover":var h=d.pointerId;return Bi.set(h,Ui(Bi.get(h)||null,e,n,o,a,d)),!0;case"gotpointercapture":return h=d.pointerId,Hi.set(h,Ui(Hi.get(h)||null,e,n,o,a,d)),!0}return!1}function bf(e){var n=cr(e.target);if(n!==null){var o=lr(n);if(o!==null){if(n=o.tag,n===13){if(n=lf(o),n!==null){e.blockedOn=n,Sf(e.priority,function(){xf(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function is(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=dl(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var a=new o.constructor(o.type,o);Za=a,o.target.dispatchEvent(a),Za=null}else return n=ro(o),n!==null&&ll(n),e.blockedOn=o,!1;n.shift()}return!0}function Cf(e,n,o){is(e)&&o.delete(n)}function Tx(){cl=!1,En!==null&&is(En)&&(En=null),An!==null&&is(An)&&(An=null),Rn!==null&&is(Rn)&&(Rn=null),Bi.forEach(Cf),Hi.forEach(Cf)}function Wi(e,n){e.blockedOn===n&&(e.blockedOn=null,cl||(cl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Tx)))}function $i(e){function n(d){return Wi(d,e)}if(0<rs.length){Wi(rs[0],e);for(var o=1;o<rs.length;o++){var a=rs[o];a.blockedOn===e&&(a.blockedOn=null)}}for(En!==null&&Wi(En,e),An!==null&&Wi(An,e),Rn!==null&&Wi(Rn,e),Bi.forEach(n),Hi.forEach(n),o=0;o<Mn.length;o++)a=Mn[o],a.blockedOn===e&&(a.blockedOn=null);for(;0<Mn.length&&(o=Mn[0],o.blockedOn===null);)bf(o),o.blockedOn===null&&Mn.shift()}var Vr=O.ReactCurrentBatchConfig,os=!0;function jx(e,n,o,a){var d=Ae,h=Vr.transition;Vr.transition=null;try{Ae=1,ul(e,n,o,a)}finally{Ae=d,Vr.transition=h}}function Px(e,n,o,a){var d=Ae,h=Vr.transition;Vr.transition=null;try{Ae=4,ul(e,n,o,a)}finally{Ae=d,Vr.transition=h}}function ul(e,n,o,a){if(os){var d=dl(e,n,o,a);if(d===null)Pl(e,n,a,ss,o),kf(e,a);else if(Nx(d,e,n,o,a))a.stopPropagation();else if(kf(e,a),n&4&&-1<Cx.indexOf(e)){for(;d!==null;){var h=ro(d);if(h!==null&&vf(h),h=dl(e,n,o,a),h===null&&Pl(e,n,a,ss,o),h===d)break;d=h}d!==null&&a.stopPropagation()}else Pl(e,n,a,null,o)}}var ss=null;function dl(e,n,o,a){if(ss=null,e=Ja(a),e=cr(e),e!==null)if(n=lr(e),n===null)e=null;else if(o=n.tag,o===13){if(e=lf(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return ss=e,null}function Nf(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mx()){case il:return 1;case hf:return 4;case Zo:case gx:return 16;case mf:return 536870912;default:return 16}default:return 16}}var In=null,fl=null,as=null;function Tf(){if(as)return as;var e,n=fl,o=n.length,a,d="value"in In?In.value:In.textContent,h=d.length;for(e=0;e<o&&n[e]===d[e];e++);var x=o-e;for(a=1;a<=x&&n[o-a]===d[h-a];a++);return as=d.slice(e,1<a?1-a:void 0)}function ls(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function cs(){return!0}function jf(){return!1}function Tt(e){function n(o,a,d,h,x){this._reactName=o,this._targetInst=d,this.type=a,this.nativeEvent=h,this.target=x,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(o=e[C],this[C]=o?o(h):h[C]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?cs:jf,this.isPropagationStopped=jf,this}return Y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),n}var Fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Tt(Fr),Ki=Y({},Fr,{view:0,detail:0}),Ex=Tt(Ki),hl,ml,Gi,us=Y({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yl,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!==Gi&&(Gi&&e.type==="mousemove"?(hl=e.screenX-Gi.screenX,ml=e.screenY-Gi.screenY):ml=hl=0,Gi=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:ml}}),Pf=Tt(us),Ax=Y({},us,{dataTransfer:0}),Rx=Tt(Ax),Mx=Y({},Ki,{relatedTarget:0}),gl=Tt(Mx),Ix=Y({},Fr,{animationName:0,elapsedTime:0,pseudoElement:0}),Dx=Tt(Ix),Lx=Y({},Fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_x=Tt(Lx),Ox=Y({},Fr,{data:0}),Ef=Tt(Ox),Vx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fx={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"},zx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bx(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=zx[e])?!!n[e]:!1}function yl(){return Bx}var Hx=Y({},Ki,{key:function(e){if(e.key){var n=Vx[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yl,charCode:function(e){return e.type==="keypress"?ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ux=Tt(Hx),Wx=Y({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Af=Tt(Wx),$x=Y({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yl}),Kx=Tt($x),Gx=Y({},Fr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yx=Tt(Gx),Xx=Y({},us,{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}),Qx=Tt(Xx),qx=[9,13,27,32],vl=p&&"CompositionEvent"in window,Yi=null;p&&"documentMode"in document&&(Yi=document.documentMode);var Zx=p&&"TextEvent"in window&&!Yi,Rf=p&&(!vl||Yi&&8<Yi&&11>=Yi),Mf=" ",If=!1;function Df(e,n){switch(e){case"keyup":return qx.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zr=!1;function Jx(e,n){switch(e){case"compositionend":return Lf(n);case"keypress":return n.which!==32?null:(If=!0,Mf);case"textInput":return e=n.data,e===Mf&&If?null:e;default:return null}}function ew(e,n){if(zr)return e==="compositionend"||!vl&&Df(e,n)?(e=Tf(),as=fl=In=null,zr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Rf&&n.locale!=="ko"?null:n.data;default:return null}}var tw={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 _f(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!tw[e.type]:n==="textarea"}function Of(e,n,o,a){nf(a),n=ms(n,"onChange"),0<n.length&&(o=new pl("onChange","change",null,o,a),e.push({event:o,listeners:n}))}var Xi=null,Qi=null;function nw(e){tp(e,0)}function ds(e){var n=$r(e);if(Re(n))return e}function rw(e,n){if(e==="change")return n}var Vf=!1;if(p){var xl;if(p){var wl="oninput"in document;if(!wl){var Ff=document.createElement("div");Ff.setAttribute("oninput","return;"),wl=typeof Ff.oninput=="function"}xl=wl}else xl=!1;Vf=xl&&(!document.documentMode||9<document.documentMode)}function zf(){Xi&&(Xi.detachEvent("onpropertychange",Bf),Qi=Xi=null)}function Bf(e){if(e.propertyName==="value"&&ds(Qi)){var n=[];Of(n,Qi,e,Ja(e)),af(nw,n)}}function iw(e,n,o){e==="focusin"?(zf(),Xi=n,Qi=o,Xi.attachEvent("onpropertychange",Bf)):e==="focusout"&&zf()}function ow(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ds(Qi)}function sw(e,n){if(e==="click")return ds(n)}function aw(e,n){if(e==="input"||e==="change")return ds(n)}function lw(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Kt=typeof Object.is=="function"?Object.is:lw;function qi(e,n){if(Kt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),a=Object.keys(n);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var d=o[a];if(!m.call(n,d)||!Kt(e[d],n[d]))return!1}return!0}function Hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uf(e,n){var o=Hf(e);e=0;for(var a;o;){if(o.nodeType===3){if(a=e+o.textContent.length,e<=n&&a>=n)return{node:o,offset:n-e};e=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Hf(o)}}function Wf(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Wf(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function $f(){for(var e=window,n=nt();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=nt(e.document)}return n}function Sl(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function cw(e){var n=$f(),o=e.focusedElem,a=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Wf(o.ownerDocument.documentElement,o)){if(a!==null&&Sl(o)){if(n=a.start,e=a.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=o.textContent.length,h=Math.min(a.start,d);a=a.end===void 0?h:Math.min(a.end,d),!e.extend&&h>a&&(d=a,a=h,h=d),d=Uf(o,h);var x=Uf(o,a);d&&x&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),h>a?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var uw=p&&"documentMode"in document&&11>=document.documentMode,Br=null,kl=null,Zi=null,bl=!1;function Kf(e,n,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;bl||Br==null||Br!==nt(a)||(a=Br,"selectionStart"in a&&Sl(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Zi&&qi(Zi,a)||(Zi=a,a=ms(kl,"onSelect"),0<a.length&&(n=new pl("onSelect","select",null,n,o),e.push({event:n,listeners:a}),n.target=Br)))}function fs(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Hr={animationend:fs("Animation","AnimationEnd"),animationiteration:fs("Animation","AnimationIteration"),animationstart:fs("Animation","AnimationStart"),transitionend:fs("Transition","TransitionEnd")},Cl={},Gf={};p&&(Gf=document.createElement("div").style,"AnimationEvent"in window||(delete Hr.animationend.animation,delete Hr.animationiteration.animation,delete Hr.animationstart.animation),"TransitionEvent"in window||delete Hr.transitionend.transition);function ps(e){if(Cl[e])return Cl[e];if(!Hr[e])return e;var n=Hr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in Gf)return Cl[e]=n[o];return e}var Yf=ps("animationend"),Xf=ps("animationiteration"),Qf=ps("animationstart"),qf=ps("transitionend"),Zf=new Map,Jf="abort auxClick 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(" ");function Dn(e,n){Zf.set(e,n),u(n,[e])}for(var Nl=0;Nl<Jf.length;Nl++){var Tl=Jf[Nl],dw=Tl.toLowerCase(),fw=Tl[0].toUpperCase()+Tl.slice(1);Dn(dw,"on"+fw)}Dn(Yf,"onAnimationEnd"),Dn(Xf,"onAnimationIteration"),Dn(Qf,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(qf,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="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(" "),pw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ji));function ep(e,n,o){var a=e.type||"unknown-event";e.currentTarget=o,dx(a,n,void 0,e),e.currentTarget=null}function tp(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var a=e[o],d=a.event;a=a.listeners;e:{var h=void 0;if(n)for(var x=a.length-1;0<=x;x--){var C=a[x],j=C.instance,_=C.currentTarget;if(C=C.listener,j!==h&&d.isPropagationStopped())break e;ep(d,C,_),h=j}else for(x=0;x<a.length;x++){if(C=a[x],j=C.instance,_=C.currentTarget,C=C.listener,j!==h&&d.isPropagationStopped())break e;ep(d,C,_),h=j}}}if(qo)throw e=rl,qo=!1,rl=null,e}function Ie(e,n){var o=n[Dl];o===void 0&&(o=n[Dl]=new Set);var a=e+"__bubble";o.has(a)||(np(n,e,2,!1),o.add(a))}function jl(e,n,o){var a=0;n&&(a|=4),np(o,e,a,n)}var hs="_reactListening"+Math.random().toString(36).slice(2);function eo(e){if(!e[hs]){e[hs]=!0,s.forEach(function(o){o!=="selectionchange"&&(pw.has(o)||jl(o,!1,e),jl(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[hs]||(n[hs]=!0,jl("selectionchange",!1,n))}}function np(e,n,o,a){switch(Nf(n)){case 1:var d=jx;break;case 4:d=Px;break;default:d=ul}o=d.bind(null,n,o,e),d=void 0,!nl||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),a?d!==void 0?e.addEventListener(n,o,{capture:!0,passive:d}):e.addEventListener(n,o,!0):d!==void 0?e.addEventListener(n,o,{passive:d}):e.addEventListener(n,o,!1)}function Pl(e,n,o,a,d){var h=a;if((n&1)===0&&(n&2)===0&&a!==null)e:for(;;){if(a===null)return;var x=a.tag;if(x===3||x===4){var C=a.stateNode.containerInfo;if(C===d||C.nodeType===8&&C.parentNode===d)break;if(x===4)for(x=a.return;x!==null;){var j=x.tag;if((j===3||j===4)&&(j=x.stateNode.containerInfo,j===d||j.nodeType===8&&j.parentNode===d))return;x=x.return}for(;C!==null;){if(x=cr(C),x===null)return;if(j=x.tag,j===5||j===6){a=h=x;continue e}C=C.parentNode}}a=a.return}af(function(){var _=h,$=Ja(o),K=[];e:{var W=Zf.get(e);if(W!==void 0){var Z=pl,te=e;switch(e){case"keypress":if(ls(o)===0)break e;case"keydown":case"keyup":Z=Ux;break;case"focusin":te="focus",Z=gl;break;case"focusout":te="blur",Z=gl;break;case"beforeblur":case"afterblur":Z=gl;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":Z=Pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Rx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Kx;break;case Yf:case Xf:case Qf:Z=Dx;break;case qf:Z=Yx;break;case"scroll":Z=Ex;break;case"wheel":Z=Qx;break;case"copy":case"cut":case"paste":Z=_x;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Af}var ie=(n&4)!==0,We=!ie&&e==="scroll",D=ie?W!==null?W+"Capture":null:W;ie=[];for(var E=_,L;E!==null;){L=E;var X=L.stateNode;if(L.tag===5&&X!==null&&(L=X,D!==null&&(X=_i(E,D),X!=null&&ie.push(to(E,X,L)))),We)break;E=E.return}0<ie.length&&(W=new Z(W,te,null,o,$),K.push({event:W,listeners:ie}))}}if((n&7)===0){e:{if(W=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",W&&o!==Za&&(te=o.relatedTarget||o.fromElement)&&(cr(te)||te[gn]))break e;if((Z||W)&&(W=$.window===$?$:(W=$.ownerDocument)?W.defaultView||W.parentWindow:window,Z?(te=o.relatedTarget||o.toElement,Z=_,te=te?cr(te):null,te!==null&&(We=lr(te),te!==We||te.tag!==5&&te.tag!==6)&&(te=null)):(Z=null,te=_),Z!==te)){if(ie=Pf,X="onMouseLeave",D="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Af,X="onPointerLeave",D="onPointerEnter",E="pointer"),We=Z==null?W:$r(Z),L=te==null?W:$r(te),W=new ie(X,E+"leave",Z,o,$),W.target=We,W.relatedTarget=L,X=null,cr($)===_&&(ie=new ie(D,E+"enter",te,o,$),ie.target=L,ie.relatedTarget=We,X=ie),We=X,Z&&te)t:{for(ie=Z,D=te,E=0,L=ie;L;L=Ur(L))E++;for(L=0,X=D;X;X=Ur(X))L++;for(;0<E-L;)ie=Ur(ie),E--;for(;0<L-E;)D=Ur(D),L--;for(;E--;){if(ie===D||D!==null&&ie===D.alternate)break t;ie=Ur(ie),D=Ur(D)}ie=null}else ie=null;Z!==null&&rp(K,W,Z,ie,!1),te!==null&&We!==null&&rp(K,We,te,ie,!0)}}e:{if(W=_?$r(_):window,Z=W.nodeName&&W.nodeName.toLowerCase(),Z==="select"||Z==="input"&&W.type==="file")var le=rw;else if(_f(W))if(Vf)le=aw;else{le=ow;var de=iw}else(Z=W.nodeName)&&Z.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(le=sw);if(le&&(le=le(e,_))){Of(K,le,o,$);break e}de&&de(e,W,_),e==="focusout"&&(de=W._wrapperState)&&de.controlled&&W.type==="number"&&Ga(W,"number",W.value)}switch(de=_?$r(_):window,e){case"focusin":(_f(de)||de.contentEditable==="true")&&(Br=de,kl=_,Zi=null);break;case"focusout":Zi=kl=Br=null;break;case"mousedown":bl=!0;break;case"contextmenu":case"mouseup":case"dragend":bl=!1,Kf(K,o,$);break;case"selectionchange":if(uw)break;case"keydown":case"keyup":Kf(K,o,$)}var fe;if(vl)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else zr?Df(e,o)&&(ge="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ge="onCompositionStart");ge&&(Rf&&o.locale!=="ko"&&(zr||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&zr&&(fe=Tf()):(In=$,fl="value"in In?In.value:In.textContent,zr=!0)),de=ms(_,ge),0<de.length&&(ge=new Ef(ge,e,null,o,$),K.push({event:ge,listeners:de}),fe?ge.data=fe:(fe=Lf(o),fe!==null&&(ge.data=fe)))),(fe=Zx?Jx(e,o):ew(e,o))&&(_=ms(_,"onBeforeInput"),0<_.length&&($=new Ef("onBeforeInput","beforeinput",null,o,$),K.push({event:$,listeners:_}),$.data=fe))}tp(K,n)})}function to(e,n,o){return{instance:e,listener:n,currentTarget:o}}function ms(e,n){for(var o=n+"Capture",a=[];e!==null;){var d=e,h=d.stateNode;d.tag===5&&h!==null&&(d=h,h=_i(e,o),h!=null&&a.unshift(to(e,h,d)),h=_i(e,n),h!=null&&a.push(to(e,h,d))),e=e.return}return a}function Ur(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function rp(e,n,o,a,d){for(var h=n._reactName,x=[];o!==null&&o!==a;){var C=o,j=C.alternate,_=C.stateNode;if(j!==null&&j===a)break;C.tag===5&&_!==null&&(C=_,d?(j=_i(o,h),j!=null&&x.unshift(to(o,j,C))):d||(j=_i(o,h),j!=null&&x.push(to(o,j,C)))),o=o.return}x.length!==0&&e.push({event:n,listeners:x})}var hw=/\r\n?/g,mw=/\u0000|\uFFFD/g;function ip(e){return(typeof e=="string"?e:""+e).replace(hw,`
|
||
`).replace(mw,"")}function gs(e,n,o){if(n=ip(n),ip(e)!==n&&o)throw Error(i(425))}function ys(){}var El=null,Al=null;function Rl(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ml=typeof setTimeout=="function"?setTimeout:void 0,gw=typeof clearTimeout=="function"?clearTimeout:void 0,op=typeof Promise=="function"?Promise:void 0,yw=typeof queueMicrotask=="function"?queueMicrotask:typeof op<"u"?function(e){return op.resolve(null).then(e).catch(vw)}:Ml;function vw(e){setTimeout(function(){throw e})}function Il(e,n){var o=n,a=0;do{var d=o.nextSibling;if(e.removeChild(o),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(a===0){e.removeChild(d),$i(n);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=d}while(o);$i(n)}function Ln(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function sp(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var Wr=Math.random().toString(36).slice(2),rn="__reactFiber$"+Wr,no="__reactProps$"+Wr,gn="__reactContainer$"+Wr,Dl="__reactEvents$"+Wr,xw="__reactListeners$"+Wr,ww="__reactHandles$"+Wr;function cr(e){var n=e[rn];if(n)return n;for(var o=e.parentNode;o;){if(n=o[gn]||o[rn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=sp(e);e!==null;){if(o=e[rn])return o;e=sp(e)}return n}e=o,o=e.parentNode}return null}function ro(e){return e=e[rn]||e[gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $r(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function vs(e){return e[no]||null}var Ll=[],Kr=-1;function _n(e){return{current:e}}function De(e){0>Kr||(e.current=Ll[Kr],Ll[Kr]=null,Kr--)}function Me(e,n){Kr++,Ll[Kr]=e.current,e.current=n}var On={},at=_n(On),yt=_n(!1),ur=On;function Gr(e,n){var o=e.type.contextTypes;if(!o)return On;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var d={},h;for(h in o)d[h]=n[h];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function vt(e){return e=e.childContextTypes,e!=null}function xs(){De(yt),De(at)}function ap(e,n,o){if(at.current!==On)throw Error(i(168));Me(at,n),Me(yt,o)}function lp(e,n,o){var a=e.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var d in a)if(!(d in n))throw Error(i(108,G(e)||"Unknown",d));return Y({},o,a)}function ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,ur=at.current,Me(at,e),Me(yt,yt.current),!0}function cp(e,n,o){var a=e.stateNode;if(!a)throw Error(i(169));o?(e=lp(e,n,ur),a.__reactInternalMemoizedMergedChildContext=e,De(yt),De(at),Me(at,e)):De(yt),Me(yt,o)}var yn=null,Ss=!1,_l=!1;function up(e){yn===null?yn=[e]:yn.push(e)}function Sw(e){Ss=!0,up(e)}function Vn(){if(!_l&&yn!==null){_l=!0;var e=0,n=Ae;try{var o=yn;for(Ae=1;e<o.length;e++){var a=o[e];do a=a(!0);while(a!==null)}yn=null,Ss=!1}catch(d){throw yn!==null&&(yn=yn.slice(e+1)),ff(il,Vn),d}finally{Ae=n,_l=!1}}return null}var Yr=[],Xr=0,ks=null,bs=0,Dt=[],Lt=0,dr=null,vn=1,xn="";function fr(e,n){Yr[Xr++]=bs,Yr[Xr++]=ks,ks=e,bs=n}function dp(e,n,o){Dt[Lt++]=vn,Dt[Lt++]=xn,Dt[Lt++]=dr,dr=e;var a=vn;e=xn;var d=32-$t(a)-1;a&=~(1<<d),o+=1;var h=32-$t(n)+d;if(30<h){var x=d-d%5;h=(a&(1<<x)-1).toString(32),a>>=x,d-=x,vn=1<<32-$t(n)+d|o<<d|a,xn=h+e}else vn=1<<h|o<<d|a,xn=e}function Ol(e){e.return!==null&&(fr(e,1),dp(e,1,0))}function Vl(e){for(;e===ks;)ks=Yr[--Xr],Yr[Xr]=null,bs=Yr[--Xr],Yr[Xr]=null;for(;e===dr;)dr=Dt[--Lt],Dt[Lt]=null,xn=Dt[--Lt],Dt[Lt]=null,vn=Dt[--Lt],Dt[Lt]=null}var jt=null,Pt=null,Le=!1,Gt=null;function fp(e,n){var o=Ft(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function pp(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,jt=e,Pt=Ln(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,jt=e,Pt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=dr!==null?{id:vn,overflow:xn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Ft(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,jt=e,Pt=null,!0):!1;default:return!1}}function Fl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zl(e){if(Le){var n=Pt;if(n){var o=n;if(!pp(e,n)){if(Fl(e))throw Error(i(418));n=Ln(o.nextSibling);var a=jt;n&&pp(e,n)?fp(a,o):(e.flags=e.flags&-4097|2,Le=!1,jt=e)}}else{if(Fl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Le=!1,jt=e}}}function hp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;jt=e}function Cs(e){if(e!==jt)return!1;if(!Le)return hp(e),Le=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Rl(e.type,e.memoizedProps)),n&&(n=Pt)){if(Fl(e))throw mp(),Error(i(418));for(;n;)fp(e,n),n=Ln(n.nextSibling)}if(hp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){Pt=Ln(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Pt=null}}else Pt=jt?Ln(e.stateNode.nextSibling):null;return!0}function mp(){for(var e=Pt;e;)e=Ln(e.nextSibling)}function Qr(){Pt=jt=null,Le=!1}function Bl(e){Gt===null?Gt=[e]:Gt.push(e)}var kw=O.ReactCurrentBatchConfig;function io(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,e));var d=a,h=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===h?n.ref:(n=function(x){var C=d.refs;x===null?delete C[h]:C[h]=x},n._stringRef=h,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function Ns(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function gp(e){var n=e._init;return n(e._payload)}function yp(e){function n(D,E){if(e){var L=D.deletions;L===null?(D.deletions=[E],D.flags|=16):L.push(E)}}function o(D,E){if(!e)return null;for(;E!==null;)n(D,E),E=E.sibling;return null}function a(D,E){for(D=new Map;E!==null;)E.key!==null?D.set(E.key,E):D.set(E.index,E),E=E.sibling;return D}function d(D,E){return D=Kn(D,E),D.index=0,D.sibling=null,D}function h(D,E,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<E?(D.flags|=2,E):L):(D.flags|=2,E)):(D.flags|=1048576,E)}function x(D){return e&&D.alternate===null&&(D.flags|=2),D}function C(D,E,L,X){return E===null||E.tag!==6?(E=Mc(L,D.mode,X),E.return=D,E):(E=d(E,L),E.return=D,E)}function j(D,E,L,X){var le=L.type;return le===z?$(D,E,L.props.children,X,L.key):E!==null&&(E.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===se&&gp(le)===E.type)?(X=d(E,L.props),X.ref=io(D,E,L),X.return=D,X):(X=Xs(L.type,L.key,L.props,null,D.mode,X),X.ref=io(D,E,L),X.return=D,X)}function _(D,E,L,X){return E===null||E.tag!==4||E.stateNode.containerInfo!==L.containerInfo||E.stateNode.implementation!==L.implementation?(E=Ic(L,D.mode,X),E.return=D,E):(E=d(E,L.children||[]),E.return=D,E)}function $(D,E,L,X,le){return E===null||E.tag!==7?(E=wr(L,D.mode,X,le),E.return=D,E):(E=d(E,L),E.return=D,E)}function K(D,E,L){if(typeof E=="string"&&E!==""||typeof E=="number")return E=Mc(""+E,D.mode,L),E.return=D,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case V:return L=Xs(E.type,E.key,E.props,null,D.mode,L),L.ref=io(D,null,E),L.return=D,L;case U:return E=Ic(E,D.mode,L),E.return=D,E;case se:var X=E._init;return K(D,X(E._payload),L)}if(Ii(E)||Q(E))return E=wr(E,D.mode,L,null),E.return=D,E;Ns(D,E)}return null}function W(D,E,L,X){var le=E!==null?E.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return le!==null?null:C(D,E,""+L,X);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case V:return L.key===le?j(D,E,L,X):null;case U:return L.key===le?_(D,E,L,X):null;case se:return le=L._init,W(D,E,le(L._payload),X)}if(Ii(L)||Q(L))return le!==null?null:$(D,E,L,X,null);Ns(D,L)}return null}function Z(D,E,L,X,le){if(typeof X=="string"&&X!==""||typeof X=="number")return D=D.get(L)||null,C(E,D,""+X,le);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case V:return D=D.get(X.key===null?L:X.key)||null,j(E,D,X,le);case U:return D=D.get(X.key===null?L:X.key)||null,_(E,D,X,le);case se:var de=X._init;return Z(D,E,L,de(X._payload),le)}if(Ii(X)||Q(X))return D=D.get(L)||null,$(E,D,X,le,null);Ns(E,X)}return null}function te(D,E,L,X){for(var le=null,de=null,fe=E,ge=E=0,tt=null;fe!==null&&ge<L.length;ge++){fe.index>ge?(tt=fe,fe=null):tt=fe.sibling;var Pe=W(D,fe,L[ge],X);if(Pe===null){fe===null&&(fe=tt);break}e&&fe&&Pe.alternate===null&&n(D,fe),E=h(Pe,E,ge),de===null?le=Pe:de.sibling=Pe,de=Pe,fe=tt}if(ge===L.length)return o(D,fe),Le&&fr(D,ge),le;if(fe===null){for(;ge<L.length;ge++)fe=K(D,L[ge],X),fe!==null&&(E=h(fe,E,ge),de===null?le=fe:de.sibling=fe,de=fe);return Le&&fr(D,ge),le}for(fe=a(D,fe);ge<L.length;ge++)tt=Z(fe,D,ge,L[ge],X),tt!==null&&(e&&tt.alternate!==null&&fe.delete(tt.key===null?ge:tt.key),E=h(tt,E,ge),de===null?le=tt:de.sibling=tt,de=tt);return e&&fe.forEach(function(Gn){return n(D,Gn)}),Le&&fr(D,ge),le}function ie(D,E,L,X){var le=Q(L);if(typeof le!="function")throw Error(i(150));if(L=le.call(L),L==null)throw Error(i(151));for(var de=le=null,fe=E,ge=E=0,tt=null,Pe=L.next();fe!==null&&!Pe.done;ge++,Pe=L.next()){fe.index>ge?(tt=fe,fe=null):tt=fe.sibling;var Gn=W(D,fe,Pe.value,X);if(Gn===null){fe===null&&(fe=tt);break}e&&fe&&Gn.alternate===null&&n(D,fe),E=h(Gn,E,ge),de===null?le=Gn:de.sibling=Gn,de=Gn,fe=tt}if(Pe.done)return o(D,fe),Le&&fr(D,ge),le;if(fe===null){for(;!Pe.done;ge++,Pe=L.next())Pe=K(D,Pe.value,X),Pe!==null&&(E=h(Pe,E,ge),de===null?le=Pe:de.sibling=Pe,de=Pe);return Le&&fr(D,ge),le}for(fe=a(D,fe);!Pe.done;ge++,Pe=L.next())Pe=Z(fe,D,ge,Pe.value,X),Pe!==null&&(e&&Pe.alternate!==null&&fe.delete(Pe.key===null?ge:Pe.key),E=h(Pe,E,ge),de===null?le=Pe:de.sibling=Pe,de=Pe);return e&&fe.forEach(function(t1){return n(D,t1)}),Le&&fr(D,ge),le}function We(D,E,L,X){if(typeof L=="object"&&L!==null&&L.type===z&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case V:e:{for(var le=L.key,de=E;de!==null;){if(de.key===le){if(le=L.type,le===z){if(de.tag===7){o(D,de.sibling),E=d(de,L.props.children),E.return=D,D=E;break e}}else if(de.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===se&&gp(le)===de.type){o(D,de.sibling),E=d(de,L.props),E.ref=io(D,de,L),E.return=D,D=E;break e}o(D,de);break}else n(D,de);de=de.sibling}L.type===z?(E=wr(L.props.children,D.mode,X,L.key),E.return=D,D=E):(X=Xs(L.type,L.key,L.props,null,D.mode,X),X.ref=io(D,E,L),X.return=D,D=X)}return x(D);case U:e:{for(de=L.key;E!==null;){if(E.key===de)if(E.tag===4&&E.stateNode.containerInfo===L.containerInfo&&E.stateNode.implementation===L.implementation){o(D,E.sibling),E=d(E,L.children||[]),E.return=D,D=E;break e}else{o(D,E);break}else n(D,E);E=E.sibling}E=Ic(L,D.mode,X),E.return=D,D=E}return x(D);case se:return de=L._init,We(D,E,de(L._payload),X)}if(Ii(L))return te(D,E,L,X);if(Q(L))return ie(D,E,L,X);Ns(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,E!==null&&E.tag===6?(o(D,E.sibling),E=d(E,L),E.return=D,D=E):(o(D,E),E=Mc(L,D.mode,X),E.return=D,D=E),x(D)):o(D,E)}return We}var qr=yp(!0),vp=yp(!1),Ts=_n(null),js=null,Zr=null,Hl=null;function Ul(){Hl=Zr=js=null}function Wl(e){var n=Ts.current;De(Ts),e._currentValue=n}function $l(e,n,o){for(;e!==null;){var a=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),e===o)break;e=e.return}}function Jr(e,n){js=e,Hl=Zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(xt=!0),e.firstContext=null)}function _t(e){var n=e._currentValue;if(Hl!==e)if(e={context:e,memoizedValue:n,next:null},Zr===null){if(js===null)throw Error(i(308));Zr=e,js.dependencies={lanes:0,firstContext:e}}else Zr=Zr.next=e;return n}var pr=null;function Kl(e){pr===null?pr=[e]:pr.push(e)}function xp(e,n,o,a){var d=n.interleaved;return d===null?(o.next=o,Kl(n)):(o.next=d.next,d.next=o),n.interleaved=o,wn(e,a)}function wn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Fn=!1;function Gl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Sn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function zn(e,n,o){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var d=a.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),a.pending=n,wn(e,o)}return d=a.interleaved,d===null?(n.next=n,Kl(a)):(n.next=d.next,d.next=n),a.interleaved=n,wn(e,o)}function Ps(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var a=n.lanes;a&=e.pendingLanes,o|=a,n.lanes=o,al(e,o)}}function Sp(e,n){var o=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var d=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var x={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?d=h=x:h=h.next=x,o=o.next}while(o!==null);h===null?d=h=n:h=h.next=n}else d=h=n;o={baseState:a.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:a.shared,effects:a.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function Es(e,n,o,a){var d=e.updateQueue;Fn=!1;var h=d.firstBaseUpdate,x=d.lastBaseUpdate,C=d.shared.pending;if(C!==null){d.shared.pending=null;var j=C,_=j.next;j.next=null,x===null?h=_:x.next=_,x=j;var $=e.alternate;$!==null&&($=$.updateQueue,C=$.lastBaseUpdate,C!==x&&(C===null?$.firstBaseUpdate=_:C.next=_,$.lastBaseUpdate=j))}if(h!==null){var K=d.baseState;x=0,$=_=j=null,C=h;do{var W=C.lane,Z=C.eventTime;if((a&W)===W){$!==null&&($=$.next={eventTime:Z,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var te=e,ie=C;switch(W=n,Z=o,ie.tag){case 1:if(te=ie.payload,typeof te=="function"){K=te.call(Z,K,W);break e}K=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ie.payload,W=typeof te=="function"?te.call(Z,K,W):te,W==null)break e;K=Y({},K,W);break e;case 2:Fn=!0}}C.callback!==null&&C.lane!==0&&(e.flags|=64,W=d.effects,W===null?d.effects=[C]:W.push(C))}else Z={eventTime:Z,lane:W,tag:C.tag,payload:C.payload,callback:C.callback,next:null},$===null?(_=$=Z,j=K):$=$.next=Z,x|=W;if(C=C.next,C===null){if(C=d.shared.pending,C===null)break;W=C,C=W.next,W.next=null,d.lastBaseUpdate=W,d.shared.pending=null}}while(!0);if($===null&&(j=K),d.baseState=j,d.firstBaseUpdate=_,d.lastBaseUpdate=$,n=d.shared.interleaved,n!==null){d=n;do x|=d.lane,d=d.next;while(d!==n)}else h===null&&(d.shared.lanes=0);gr|=x,e.lanes=x,e.memoizedState=K}}function kp(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var a=e[n],d=a.callback;if(d!==null){if(a.callback=null,a=o,typeof d!="function")throw Error(i(191,d));d.call(a)}}}var oo={},on=_n(oo),so=_n(oo),ao=_n(oo);function hr(e){if(e===oo)throw Error(i(174));return e}function Yl(e,n){switch(Me(ao,n),Me(so,e),Me(on,oo),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Xa(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Xa(n,e)}De(on),Me(on,n)}function ei(){De(on),De(so),De(ao)}function bp(e){hr(ao.current);var n=hr(on.current),o=Xa(n,e.type);n!==o&&(Me(so,e),Me(on,o))}function Xl(e){so.current===e&&(De(on),De(so))}var Oe=_n(0);function As(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ql=[];function ql(){for(var e=0;e<Ql.length;e++)Ql[e]._workInProgressVersionPrimary=null;Ql.length=0}var Rs=O.ReactCurrentDispatcher,Zl=O.ReactCurrentBatchConfig,mr=0,Ve=null,Qe=null,Je=null,Ms=!1,lo=!1,co=0,bw=0;function lt(){throw Error(i(321))}function Jl(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Kt(e[o],n[o]))return!1;return!0}function ec(e,n,o,a,d,h){if(mr=h,Ve=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Rs.current=e===null||e.memoizedState===null?jw:Pw,e=o(a,d),lo){h=0;do{if(lo=!1,co=0,25<=h)throw Error(i(301));h+=1,Je=Qe=null,n.updateQueue=null,Rs.current=Ew,e=o(a,d)}while(lo)}if(Rs.current=Ls,n=Qe!==null&&Qe.next!==null,mr=0,Je=Qe=Ve=null,Ms=!1,n)throw Error(i(300));return e}function tc(){var e=co!==0;return co=0,e}function sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ve.memoizedState=Je=e:Je=Je.next=e,Je}function Ot(){if(Qe===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=Je===null?Ve.memoizedState:Je.next;if(n!==null)Je=n,Qe=e;else{if(e===null)throw Error(i(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},Je===null?Ve.memoizedState=Je=e:Je=Je.next=e}return Je}function uo(e,n){return typeof n=="function"?n(e):n}function nc(e){var n=Ot(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var a=Qe,d=a.baseQueue,h=o.pending;if(h!==null){if(d!==null){var x=d.next;d.next=h.next,h.next=x}a.baseQueue=d=h,o.pending=null}if(d!==null){h=d.next,a=a.baseState;var C=x=null,j=null,_=h;do{var $=_.lane;if((mr&$)===$)j!==null&&(j=j.next={lane:0,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),a=_.hasEagerState?_.eagerState:e(a,_.action);else{var K={lane:$,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null};j===null?(C=j=K,x=a):j=j.next=K,Ve.lanes|=$,gr|=$}_=_.next}while(_!==null&&_!==h);j===null?x=a:j.next=C,Kt(a,n.memoizedState)||(xt=!0),n.memoizedState=a,n.baseState=x,n.baseQueue=j,o.lastRenderedState=a}if(e=o.interleaved,e!==null){d=e;do h=d.lane,Ve.lanes|=h,gr|=h,d=d.next;while(d!==e)}else d===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function rc(e){var n=Ot(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var a=o.dispatch,d=o.pending,h=n.memoizedState;if(d!==null){o.pending=null;var x=d=d.next;do h=e(h,x.action),x=x.next;while(x!==d);Kt(h,n.memoizedState)||(xt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),o.lastRenderedState=h}return[h,a]}function Cp(){}function Np(e,n){var o=Ve,a=Ot(),d=n(),h=!Kt(a.memoizedState,d);if(h&&(a.memoizedState=d,xt=!0),a=a.queue,ic(Pp.bind(null,o,a,e),[e]),a.getSnapshot!==n||h||Je!==null&&Je.memoizedState.tag&1){if(o.flags|=2048,fo(9,jp.bind(null,o,a,d,n),void 0,null),et===null)throw Error(i(349));(mr&30)!==0||Tp(o,n,d)}return d}function Tp(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ve.updateQueue,n===null?(n={lastEffect:null,stores:null},Ve.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function jp(e,n,o,a){n.value=o,n.getSnapshot=a,Ep(n)&&Ap(e)}function Pp(e,n,o){return o(function(){Ep(n)&&Ap(e)})}function Ep(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Kt(e,o)}catch{return!0}}function Ap(e){var n=wn(e,1);n!==null&&qt(n,e,1,-1)}function Rp(e){var n=sn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:e},n.queue=e,e=e.dispatch=Tw.bind(null,Ve,e),[n.memoizedState,e]}function fo(e,n,o,a){return e={tag:e,create:n,destroy:o,deps:a,next:null},n=Ve.updateQueue,n===null?(n={lastEffect:null,stores:null},Ve.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(a=o.next,o.next=e,e.next=a,n.lastEffect=e)),e}function Mp(){return Ot().memoizedState}function Is(e,n,o,a){var d=sn();Ve.flags|=e,d.memoizedState=fo(1|n,o,void 0,a===void 0?null:a)}function Ds(e,n,o,a){var d=Ot();a=a===void 0?null:a;var h=void 0;if(Qe!==null){var x=Qe.memoizedState;if(h=x.destroy,a!==null&&Jl(a,x.deps)){d.memoizedState=fo(n,o,h,a);return}}Ve.flags|=e,d.memoizedState=fo(1|n,o,h,a)}function Ip(e,n){return Is(8390656,8,e,n)}function ic(e,n){return Ds(2048,8,e,n)}function Dp(e,n){return Ds(4,2,e,n)}function Lp(e,n){return Ds(4,4,e,n)}function _p(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Op(e,n,o){return o=o!=null?o.concat([e]):null,Ds(4,4,_p.bind(null,n,e),o)}function oc(){}function Vp(e,n){var o=Ot();n=n===void 0?null:n;var a=o.memoizedState;return a!==null&&n!==null&&Jl(n,a[1])?a[0]:(o.memoizedState=[e,n],e)}function Fp(e,n){var o=Ot();n=n===void 0?null:n;var a=o.memoizedState;return a!==null&&n!==null&&Jl(n,a[1])?a[0]:(e=e(),o.memoizedState=[e,n],e)}function zp(e,n,o){return(mr&21)===0?(e.baseState&&(e.baseState=!1,xt=!0),e.memoizedState=o):(Kt(o,n)||(o=gf(),Ve.lanes|=o,gr|=o,e.baseState=!0),n)}function Cw(e,n){var o=Ae;Ae=o!==0&&4>o?o:4,e(!0);var a=Zl.transition;Zl.transition={};try{e(!1),n()}finally{Ae=o,Zl.transition=a}}function Bp(){return Ot().memoizedState}function Nw(e,n,o){var a=Wn(e);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Hp(e))Up(n,o);else if(o=xp(e,n,o,a),o!==null){var d=mt();qt(o,e,a,d),Wp(o,n,a)}}function Tw(e,n,o){var a=Wn(e),d={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Hp(e))Up(n,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var x=n.lastRenderedState,C=h(x,o);if(d.hasEagerState=!0,d.eagerState=C,Kt(C,x)){var j=n.interleaved;j===null?(d.next=d,Kl(n)):(d.next=j.next,j.next=d),n.interleaved=d;return}}catch{}finally{}o=xp(e,n,d,a),o!==null&&(d=mt(),qt(o,e,a,d),Wp(o,n,a))}}function Hp(e){var n=e.alternate;return e===Ve||n!==null&&n===Ve}function Up(e,n){lo=Ms=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Wp(e,n,o){if((o&4194240)!==0){var a=n.lanes;a&=e.pendingLanes,o|=a,n.lanes=o,al(e,o)}}var Ls={readContext:_t,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},jw={readContext:_t,useCallback:function(e,n){return sn().memoizedState=[e,n===void 0?null:n],e},useContext:_t,useEffect:Ip,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Is(4194308,4,_p.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Is(4194308,4,e,n)},useInsertionEffect:function(e,n){return Is(4,2,e,n)},useMemo:function(e,n){var o=sn();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var a=sn();return n=o!==void 0?o(n):n,a.memoizedState=a.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Nw.bind(null,Ve,e),[a.memoizedState,e]},useRef:function(e){var n=sn();return e={current:e},n.memoizedState=e},useState:Rp,useDebugValue:oc,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=Rp(!1),n=e[0];return e=Cw.bind(null,e[1]),sn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var a=Ve,d=sn();if(Le){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),et===null)throw Error(i(349));(mr&30)!==0||Tp(a,n,o)}d.memoizedState=o;var h={value:o,getSnapshot:n};return d.queue=h,Ip(Pp.bind(null,a,h,e),[e]),a.flags|=2048,fo(9,jp.bind(null,a,h,o,n),void 0,null),o},useId:function(){var e=sn(),n=et.identifierPrefix;if(Le){var o=xn,a=vn;o=(a&~(1<<32-$t(a)-1)).toString(32)+o,n=":"+n+"R"+o,o=co++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=bw++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Pw={readContext:_t,useCallback:Vp,useContext:_t,useEffect:ic,useImperativeHandle:Op,useInsertionEffect:Dp,useLayoutEffect:Lp,useMemo:Fp,useReducer:nc,useRef:Mp,useState:function(){return nc(uo)},useDebugValue:oc,useDeferredValue:function(e){var n=Ot();return zp(n,Qe.memoizedState,e)},useTransition:function(){var e=nc(uo)[0],n=Ot().memoizedState;return[e,n]},useMutableSource:Cp,useSyncExternalStore:Np,useId:Bp,unstable_isNewReconciler:!1},Ew={readContext:_t,useCallback:Vp,useContext:_t,useEffect:ic,useImperativeHandle:Op,useInsertionEffect:Dp,useLayoutEffect:Lp,useMemo:Fp,useReducer:rc,useRef:Mp,useState:function(){return rc(uo)},useDebugValue:oc,useDeferredValue:function(e){var n=Ot();return Qe===null?n.memoizedState=e:zp(n,Qe.memoizedState,e)},useTransition:function(){var e=rc(uo)[0],n=Ot().memoizedState;return[e,n]},useMutableSource:Cp,useSyncExternalStore:Np,useId:Bp,unstable_isNewReconciler:!1};function Yt(e,n){if(e&&e.defaultProps){n=Y({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function sc(e,n,o,a){n=e.memoizedState,o=o(a,n),o=o==null?n:Y({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var _s={isMounted:function(e){return(e=e._reactInternals)?lr(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var a=mt(),d=Wn(e),h=Sn(a,d);h.payload=n,o!=null&&(h.callback=o),n=zn(e,h,d),n!==null&&(qt(n,e,d,a),Ps(n,e,d))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var a=mt(),d=Wn(e),h=Sn(a,d);h.tag=1,h.payload=n,o!=null&&(h.callback=o),n=zn(e,h,d),n!==null&&(qt(n,e,d,a),Ps(n,e,d))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=mt(),a=Wn(e),d=Sn(o,a);d.tag=2,n!=null&&(d.callback=n),n=zn(e,d,a),n!==null&&(qt(n,e,a,o),Ps(n,e,a))}};function $p(e,n,o,a,d,h,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,x):n.prototype&&n.prototype.isPureReactComponent?!qi(o,a)||!qi(d,h):!0}function Kp(e,n,o){var a=!1,d=On,h=n.contextType;return typeof h=="object"&&h!==null?h=_t(h):(d=vt(n)?ur:at.current,a=n.contextTypes,h=(a=a!=null)?Gr(e,d):On),n=new n(o,h),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=_s,e.stateNode=n,n._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=h),n}function Gp(e,n,o,a){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,a),n.state!==e&&_s.enqueueReplaceState(n,n.state,null)}function ac(e,n,o,a){var d=e.stateNode;d.props=o,d.state=e.memoizedState,d.refs={},Gl(e);var h=n.contextType;typeof h=="object"&&h!==null?d.context=_t(h):(h=vt(n)?ur:at.current,d.context=Gr(e,h)),d.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(sc(e,n,h,o),d.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(n=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),n!==d.state&&_s.enqueueReplaceState(d,d.state,null),Es(e,o,d,a),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function ti(e,n){try{var o="",a=n;do o+=Se(a),a=a.return;while(a);var d=o}catch(h){d=`
|
||
Error generating stack: `+h.message+`
|
||
`+h.stack}return{value:e,source:n,stack:d,digest:null}}function lc(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function cc(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var Aw=typeof WeakMap=="function"?WeakMap:Map;function Yp(e,n,o){o=Sn(-1,o),o.tag=3,o.payload={element:null};var a=n.value;return o.callback=function(){Us||(Us=!0,Cc=a),cc(e,n)},o}function Xp(e,n,o){o=Sn(-1,o),o.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var d=n.value;o.payload=function(){return a(d)},o.callback=function(){cc(e,n)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){cc(e,n),typeof a!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),o}function Qp(e,n,o){var a=e.pingCache;if(a===null){a=e.pingCache=new Aw;var d=new Set;a.set(n,d)}else d=a.get(n),d===void 0&&(d=new Set,a.set(n,d));d.has(o)||(d.add(o),e=Ww.bind(null,e,n,o),n.then(e,e))}function qp(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Zp(e,n,o,a,d){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=Sn(-1,1),n.tag=2,zn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=d,e)}var Rw=O.ReactCurrentOwner,xt=!1;function ht(e,n,o,a){n.child=e===null?vp(n,null,o,a):qr(n,e.child,o,a)}function Jp(e,n,o,a,d){o=o.render;var h=n.ref;return Jr(n,d),a=ec(e,n,o,a,h,d),o=tc(),e!==null&&!xt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,kn(e,n,d)):(Le&&o&&Ol(n),n.flags|=1,ht(e,n,a,d),n.child)}function eh(e,n,o,a,d){if(e===null){var h=o.type;return typeof h=="function"&&!Rc(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=h,th(e,n,h,a,d)):(e=Xs(o.type,null,a,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,(e.lanes&d)===0){var x=h.memoizedProps;if(o=o.compare,o=o!==null?o:qi,o(x,a)&&e.ref===n.ref)return kn(e,n,d)}return n.flags|=1,e=Kn(h,a),e.ref=n.ref,e.return=n,n.child=e}function th(e,n,o,a,d){if(e!==null){var h=e.memoizedProps;if(qi(h,a)&&e.ref===n.ref)if(xt=!1,n.pendingProps=a=h,(e.lanes&d)!==0)(e.flags&131072)!==0&&(xt=!0);else return n.lanes=e.lanes,kn(e,n,d)}return uc(e,n,o,a,d)}function nh(e,n,o){var a=n.pendingProps,d=a.children,h=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Me(ri,Et),Et|=o;else{if((o&1073741824)===0)return e=h!==null?h.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Me(ri,Et),Et|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=h!==null?h.baseLanes:o,Me(ri,Et),Et|=a}else h!==null?(a=h.baseLanes|o,n.memoizedState=null):a=o,Me(ri,Et),Et|=a;return ht(e,n,d,o),n.child}function rh(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function uc(e,n,o,a,d){var h=vt(o)?ur:at.current;return h=Gr(n,h),Jr(n,d),o=ec(e,n,o,a,h,d),a=tc(),e!==null&&!xt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,kn(e,n,d)):(Le&&a&&Ol(n),n.flags|=1,ht(e,n,o,d),n.child)}function ih(e,n,o,a,d){if(vt(o)){var h=!0;ws(n)}else h=!1;if(Jr(n,d),n.stateNode===null)Vs(e,n),Kp(n,o,a),ac(n,o,a,d),a=!0;else if(e===null){var x=n.stateNode,C=n.memoizedProps;x.props=C;var j=x.context,_=o.contextType;typeof _=="object"&&_!==null?_=_t(_):(_=vt(o)?ur:at.current,_=Gr(n,_));var $=o.getDerivedStateFromProps,K=typeof $=="function"||typeof x.getSnapshotBeforeUpdate=="function";K||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==a||j!==_)&&Gp(n,x,a,_),Fn=!1;var W=n.memoizedState;x.state=W,Es(n,a,x,d),j=n.memoizedState,C!==a||W!==j||yt.current||Fn?(typeof $=="function"&&(sc(n,o,$,a),j=n.memoizedState),(C=Fn||$p(n,o,C,a,W,j,_))?(K||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=j),x.props=a,x.state=j,x.context=_,a=C):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{x=n.stateNode,wp(e,n),C=n.memoizedProps,_=n.type===n.elementType?C:Yt(n.type,C),x.props=_,K=n.pendingProps,W=x.context,j=o.contextType,typeof j=="object"&&j!==null?j=_t(j):(j=vt(o)?ur:at.current,j=Gr(n,j));var Z=o.getDerivedStateFromProps;($=typeof Z=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==K||W!==j)&&Gp(n,x,a,j),Fn=!1,W=n.memoizedState,x.state=W,Es(n,a,x,d);var te=n.memoizedState;C!==K||W!==te||yt.current||Fn?(typeof Z=="function"&&(sc(n,o,Z,a),te=n.memoizedState),(_=Fn||$p(n,o,_,a,W,te,j)||!1)?($||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(a,te,j),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(a,te,j)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||C===e.memoizedProps&&W===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&W===e.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=te),x.props=a,x.state=te,x.context=j,a=_):(typeof x.componentDidUpdate!="function"||C===e.memoizedProps&&W===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&W===e.memoizedState||(n.flags|=1024),a=!1)}return dc(e,n,o,a,h,d)}function dc(e,n,o,a,d,h){rh(e,n);var x=(n.flags&128)!==0;if(!a&&!x)return d&&cp(n,o,!1),kn(e,n,h);a=n.stateNode,Rw.current=n;var C=x&&typeof o.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,e!==null&&x?(n.child=qr(n,e.child,null,h),n.child=qr(n,null,C,h)):ht(e,n,C,h),n.memoizedState=a.state,d&&cp(n,o,!0),n.child}function oh(e){var n=e.stateNode;n.pendingContext?ap(e,n.pendingContext,n.pendingContext!==n.context):n.context&&ap(e,n.context,!1),Yl(e,n.containerInfo)}function sh(e,n,o,a,d){return Qr(),Bl(d),n.flags|=256,ht(e,n,o,a),n.child}var fc={dehydrated:null,treeContext:null,retryLane:0};function pc(e){return{baseLanes:e,cachePool:null,transitions:null}}function ah(e,n,o){var a=n.pendingProps,d=Oe.current,h=!1,x=(n.flags&128)!==0,C;if((C=x)||(C=e!==null&&e.memoizedState===null?!1:(d&2)!==0),C?(h=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),Me(Oe,d&1),e===null)return zl(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=a.children,e=a.fallback,h?(a=n.mode,h=n.child,x={mode:"hidden",children:x},(a&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=x):h=Qs(x,a,0,null),e=wr(e,a,o,null),h.return=n,e.return=n,h.sibling=e,n.child=h,n.child.memoizedState=pc(o),n.memoizedState=fc,e):hc(n,x));if(d=e.memoizedState,d!==null&&(C=d.dehydrated,C!==null))return Mw(e,n,x,a,C,d,o);if(h){h=a.fallback,x=n.mode,d=e.child,C=d.sibling;var j={mode:"hidden",children:a.children};return(x&1)===0&&n.child!==d?(a=n.child,a.childLanes=0,a.pendingProps=j,n.deletions=null):(a=Kn(d,j),a.subtreeFlags=d.subtreeFlags&14680064),C!==null?h=Kn(C,h):(h=wr(h,x,o,null),h.flags|=2),h.return=n,a.return=n,a.sibling=h,n.child=a,a=h,h=n.child,x=e.child.memoizedState,x=x===null?pc(o):{baseLanes:x.baseLanes|o,cachePool:null,transitions:x.transitions},h.memoizedState=x,h.childLanes=e.childLanes&~o,n.memoizedState=fc,a}return h=e.child,e=h.sibling,a=Kn(h,{mode:"visible",children:a.children}),(n.mode&1)===0&&(a.lanes=o),a.return=n,a.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=a,n.memoizedState=null,a}function hc(e,n){return n=Qs({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Os(e,n,o,a){return a!==null&&Bl(a),qr(n,e.child,null,o),e=hc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Mw(e,n,o,a,d,h,x){if(o)return n.flags&256?(n.flags&=-257,a=lc(Error(i(422))),Os(e,n,x,a)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(h=a.fallback,d=n.mode,a=Qs({mode:"visible",children:a.children},d,0,null),h=wr(h,d,x,null),h.flags|=2,a.return=n,h.return=n,a.sibling=h,n.child=a,(n.mode&1)!==0&&qr(n,e.child,null,x),n.child.memoizedState=pc(x),n.memoizedState=fc,h);if((n.mode&1)===0)return Os(e,n,x,null);if(d.data==="$!"){if(a=d.nextSibling&&d.nextSibling.dataset,a)var C=a.dgst;return a=C,h=Error(i(419)),a=lc(h,a,void 0),Os(e,n,x,a)}if(C=(x&e.childLanes)!==0,xt||C){if(a=et,a!==null){switch(x&-x){case 4:d=2;break;case 16:d=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(a.suspendedLanes|x))!==0?0:d,d!==0&&d!==h.retryLane&&(h.retryLane=d,wn(e,d),qt(a,e,d,-1))}return Ac(),a=lc(Error(i(421))),Os(e,n,x,a)}return d.data==="$?"?(n.flags|=128,n.child=e.child,n=$w.bind(null,e),d._reactRetry=n,null):(e=h.treeContext,Pt=Ln(d.nextSibling),jt=n,Le=!0,Gt=null,e!==null&&(Dt[Lt++]=vn,Dt[Lt++]=xn,Dt[Lt++]=dr,vn=e.id,xn=e.overflow,dr=n),n=hc(n,a.children),n.flags|=4096,n)}function lh(e,n,o){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n),$l(e.return,n,o)}function mc(e,n,o,a,d){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:d}:(h.isBackwards=n,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=o,h.tailMode=d)}function ch(e,n,o){var a=n.pendingProps,d=a.revealOrder,h=a.tail;if(ht(e,n,a.children,o),a=Oe.current,(a&2)!==0)a=a&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lh(e,o,n);else if(e.tag===19)lh(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Me(Oe,a),(n.mode&1)===0)n.memoizedState=null;else switch(d){case"forwards":for(o=n.child,d=null;o!==null;)e=o.alternate,e!==null&&As(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=n.child,n.child=null):(d=o.sibling,o.sibling=null),mc(n,!1,d,o,h);break;case"backwards":for(o=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&As(e)===null){n.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}mc(n,!0,o,null,h);break;case"together":mc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Vs(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function kn(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),gr|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=Kn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=Kn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function Iw(e,n,o){switch(n.tag){case 3:oh(n),Qr();break;case 5:bp(n);break;case 1:vt(n.type)&&ws(n);break;case 4:Yl(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,d=n.memoizedProps.value;Me(Ts,a._currentValue),a._currentValue=d;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(Me(Oe,Oe.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?ah(e,n,o):(Me(Oe,Oe.current&1),e=kn(e,n,o),e!==null?e.sibling:null);Me(Oe,Oe.current&1);break;case 19:if(a=(o&n.childLanes)!==0,(e.flags&128)!==0){if(a)return ch(e,n,o);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Me(Oe,Oe.current),a)break;return null;case 22:case 23:return n.lanes=0,nh(e,n,o)}return kn(e,n,o)}var uh,gc,dh,fh;uh=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},gc=function(){},dh=function(e,n,o,a){var d=e.memoizedProps;if(d!==a){e=n.stateNode,hr(on.current);var h=null;switch(o){case"input":d=Wt(e,d),a=Wt(e,a),h=[];break;case"select":d=Y({},d,{value:void 0}),a=Y({},a,{value:void 0}),h=[];break;case"textarea":d=Ya(e,d),a=Ya(e,a),h=[];break;default:typeof d.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=ys)}Qa(o,a);var x;o=null;for(_ in d)if(!a.hasOwnProperty(_)&&d.hasOwnProperty(_)&&d[_]!=null)if(_==="style"){var C=d[_];for(x in C)C.hasOwnProperty(x)&&(o||(o={}),o[x]="")}else _!=="dangerouslySetInnerHTML"&&_!=="children"&&_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(l.hasOwnProperty(_)?h||(h=[]):(h=h||[]).push(_,null));for(_ in a){var j=a[_];if(C=d?.[_],a.hasOwnProperty(_)&&j!==C&&(j!=null||C!=null))if(_==="style")if(C){for(x in C)!C.hasOwnProperty(x)||j&&j.hasOwnProperty(x)||(o||(o={}),o[x]="");for(x in j)j.hasOwnProperty(x)&&C[x]!==j[x]&&(o||(o={}),o[x]=j[x])}else o||(h||(h=[]),h.push(_,o)),o=j;else _==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,C=C?C.__html:void 0,j!=null&&C!==j&&(h=h||[]).push(_,j)):_==="children"?typeof j!="string"&&typeof j!="number"||(h=h||[]).push(_,""+j):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&(l.hasOwnProperty(_)?(j!=null&&_==="onScroll"&&Ie("scroll",e),h||C===j||(h=[])):(h=h||[]).push(_,j))}o&&(h=h||[]).push("style",o);var _=h;(n.updateQueue=_)&&(n.flags|=4)}},fh=function(e,n,o,a){o!==a&&(n.flags|=4)};function po(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ct(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,a=0;if(n)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,a|=d.subtreeFlags&14680064,a|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,a|=d.subtreeFlags,a|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=a,e.childLanes=o,n}function Dw(e,n,o){var a=n.pendingProps;switch(Vl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(n),null;case 1:return vt(n.type)&&xs(),ct(n),null;case 3:return a=n.stateNode,ei(),De(yt),De(at),ql(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Cs(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Gt!==null&&(jc(Gt),Gt=null))),gc(e,n),ct(n),null;case 5:Xl(n);var d=hr(ao.current);if(o=n.type,e!==null&&n.stateNode!=null)dh(e,n,o,a,d),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(i(166));return ct(n),null}if(e=hr(on.current),Cs(n)){a=n.stateNode,o=n.type;var h=n.memoizedProps;switch(a[rn]=n,a[no]=h,e=(n.mode&1)!==0,o){case"dialog":Ie("cancel",a),Ie("close",a);break;case"iframe":case"object":case"embed":Ie("load",a);break;case"video":case"audio":for(d=0;d<Ji.length;d++)Ie(Ji[d],a);break;case"source":Ie("error",a);break;case"img":case"image":case"link":Ie("error",a),Ie("load",a);break;case"details":Ie("toggle",a);break;case"input":Ir(a,h),Ie("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!h.multiple},Ie("invalid",a);break;case"textarea":Yd(a,h),Ie("invalid",a)}Qa(o,h),d=null;for(var x in h)if(h.hasOwnProperty(x)){var C=h[x];x==="children"?typeof C=="string"?a.textContent!==C&&(h.suppressHydrationWarning!==!0&&gs(a.textContent,C,e),d=["children",C]):typeof C=="number"&&a.textContent!==""+C&&(h.suppressHydrationWarning!==!0&&gs(a.textContent,C,e),d=["children",""+C]):l.hasOwnProperty(x)&&C!=null&&x==="onScroll"&&Ie("scroll",a)}switch(o){case"input":Te(a),Gd(a,h,!0);break;case"textarea":Te(a),Qd(a);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(a.onclick=ys)}a=d,n.updateQueue=a,a!==null&&(n.flags|=4)}else{x=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qd(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=x.createElement(o,{is:a.is}):(e=x.createElement(o),o==="select"&&(x=e,a.multiple?x.multiple=!0:a.size&&(x.size=a.size))):e=x.createElementNS(e,o),e[rn]=n,e[no]=a,uh(e,n,!1,!1),n.stateNode=e;e:{switch(x=qa(o,a),o){case"dialog":Ie("cancel",e),Ie("close",e),d=a;break;case"iframe":case"object":case"embed":Ie("load",e),d=a;break;case"video":case"audio":for(d=0;d<Ji.length;d++)Ie(Ji[d],e);d=a;break;case"source":Ie("error",e),d=a;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),d=a;break;case"details":Ie("toggle",e),d=a;break;case"input":Ir(e,a),d=Wt(e,a),Ie("invalid",e);break;case"option":d=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},d=Y({},a,{value:void 0}),Ie("invalid",e);break;case"textarea":Yd(e,a),d=Ya(e,a),Ie("invalid",e);break;default:d=a}Qa(o,d),C=d;for(h in C)if(C.hasOwnProperty(h)){var j=C[h];h==="style"?ef(e,j):h==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&Zd(e,j)):h==="children"?typeof j=="string"?(o!=="textarea"||j!=="")&&Di(e,j):typeof j=="number"&&Di(e,""+j):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(l.hasOwnProperty(h)?j!=null&&h==="onScroll"&&Ie("scroll",e):j!=null&&M(e,h,j,x))}switch(o){case"input":Te(e),Gd(e,a,!1);break;case"textarea":Te(e),Qd(e);break;case"option":a.value!=null&&e.setAttribute("value",""+ue(a.value));break;case"select":e.multiple=!!a.multiple,h=a.value,h!=null?Lr(e,!!a.multiple,h,!1):a.defaultValue!=null&&Lr(e,!!a.multiple,a.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=ys)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return ct(n),null;case 6:if(e&&n.stateNode!=null)fh(e,n,e.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(i(166));if(o=hr(ao.current),hr(on.current),Cs(n)){if(a=n.stateNode,o=n.memoizedProps,a[rn]=n,(h=a.nodeValue!==o)&&(e=jt,e!==null))switch(e.tag){case 3:gs(a.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gs(a.nodeValue,o,(e.mode&1)!==0)}h&&(n.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[rn]=n,n.stateNode=a}return ct(n),null;case 13:if(De(Oe),a=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Le&&Pt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)mp(),Qr(),n.flags|=98560,h=!1;else if(h=Cs(n),a!==null&&a.dehydrated!==null){if(e===null){if(!h)throw Error(i(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[rn]=n}else Qr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ct(n),h=!1}else Gt!==null&&(jc(Gt),Gt=null),h=!0;if(!h)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Oe.current&1)!==0?qe===0&&(qe=3):Ac())),n.updateQueue!==null&&(n.flags|=4),ct(n),null);case 4:return ei(),gc(e,n),e===null&&eo(n.stateNode.containerInfo),ct(n),null;case 10:return Wl(n.type._context),ct(n),null;case 17:return vt(n.type)&&xs(),ct(n),null;case 19:if(De(Oe),h=n.memoizedState,h===null)return ct(n),null;if(a=(n.flags&128)!==0,x=h.rendering,x===null)if(a)po(h,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(x=As(e),x!==null){for(n.flags|=128,po(h,!1),a=x.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=o,o=n.child;o!==null;)h=o,e=a,h.flags&=14680066,x=h.alternate,x===null?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=x.childLanes,h.lanes=x.lanes,h.child=x.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=x.memoizedProps,h.memoizedState=x.memoizedState,h.updateQueue=x.updateQueue,h.type=x.type,e=x.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Me(Oe,Oe.current&1|2),n.child}e=e.sibling}h.tail!==null&&Ue()>ii&&(n.flags|=128,a=!0,po(h,!1),n.lanes=4194304)}else{if(!a)if(e=As(x),e!==null){if(n.flags|=128,a=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),po(h,!0),h.tail===null&&h.tailMode==="hidden"&&!x.alternate&&!Le)return ct(n),null}else 2*Ue()-h.renderingStartTime>ii&&o!==1073741824&&(n.flags|=128,a=!0,po(h,!1),n.lanes=4194304);h.isBackwards?(x.sibling=n.child,n.child=x):(o=h.last,o!==null?o.sibling=x:n.child=x,h.last=x)}return h.tail!==null?(n=h.tail,h.rendering=n,h.tail=n.sibling,h.renderingStartTime=Ue(),n.sibling=null,o=Oe.current,Me(Oe,a?o&1|2:o&1),n):(ct(n),null);case 22:case 23:return Ec(),a=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(Et&1073741824)!==0&&(ct(n),n.subtreeFlags&6&&(n.flags|=8192)):ct(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Lw(e,n){switch(Vl(n),n.tag){case 1:return vt(n.type)&&xs(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ei(),De(yt),De(at),ql(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Xl(n),null;case 13:if(De(Oe),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Qr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return De(Oe),null;case 4:return ei(),null;case 10:return Wl(n.type._context),null;case 22:case 23:return Ec(),null;case 24:return null;default:return null}}var Fs=!1,ut=!1,_w=typeof WeakSet=="function"?WeakSet:Set,ee=null;function ni(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){Be(e,n,a)}else o.current=null}function yc(e,n,o){try{o()}catch(a){Be(e,n,a)}}var ph=!1;function Ow(e,n){if(El=os,e=$f(),Sl(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var d=a.anchorOffset,h=a.focusNode;a=a.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var x=0,C=-1,j=-1,_=0,$=0,K=e,W=null;t:for(;;){for(var Z;K!==o||d!==0&&K.nodeType!==3||(C=x+d),K!==h||a!==0&&K.nodeType!==3||(j=x+a),K.nodeType===3&&(x+=K.nodeValue.length),(Z=K.firstChild)!==null;)W=K,K=Z;for(;;){if(K===e)break t;if(W===o&&++_===d&&(C=x),W===h&&++$===a&&(j=x),(Z=K.nextSibling)!==null)break;K=W,W=K.parentNode}K=Z}o=C===-1||j===-1?null:{start:C,end:j}}else o=null}o=o||{start:0,end:0}}else o=null;for(Al={focusedElem:e,selectionRange:o},os=!1,ee=n;ee!==null;)if(n=ee,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ee=e;else for(;ee!==null;){n=ee;try{var te=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var ie=te.memoizedProps,We=te.memoizedState,D=n.stateNode,E=D.getSnapshotBeforeUpdate(n.elementType===n.type?ie:Yt(n.type,ie),We);D.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var L=n.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(X){Be(n,n.return,X)}if(e=n.sibling,e!==null){e.return=n.return,ee=e;break}ee=n.return}return te=ph,ph=!1,te}function ho(e,n,o){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&e)===e){var h=d.destroy;d.destroy=void 0,h!==void 0&&yc(n,o,h)}d=d.next}while(d!==a)}}function zs(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.create;o.destroy=a()}o=o.next}while(o!==n)}}function vc(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function hh(e){var n=e.alternate;n!==null&&(e.alternate=null,hh(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[rn],delete n[no],delete n[Dl],delete n[xw],delete n[ww])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mh(e){return e.tag===5||e.tag===3||e.tag===4}function gh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mh(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.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 xc(e,n,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=ys));else if(a!==4&&(e=e.child,e!==null))for(xc(e,n,o),e=e.sibling;e!==null;)xc(e,n,o),e=e.sibling}function wc(e,n,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(wc(e,n,o),e=e.sibling;e!==null;)wc(e,n,o),e=e.sibling}var rt=null,Xt=!1;function Bn(e,n,o){for(o=o.child;o!==null;)yh(e,n,o),o=o.sibling}function yh(e,n,o){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Jo,o)}catch{}switch(o.tag){case 5:ut||ni(o,n);case 6:var a=rt,d=Xt;rt=null,Bn(e,n,o),rt=a,Xt=d,rt!==null&&(Xt?(e=rt,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):rt.removeChild(o.stateNode));break;case 18:rt!==null&&(Xt?(e=rt,o=o.stateNode,e.nodeType===8?Il(e.parentNode,o):e.nodeType===1&&Il(e,o),$i(e)):Il(rt,o.stateNode));break;case 4:a=rt,d=Xt,rt=o.stateNode.containerInfo,Xt=!0,Bn(e,n,o),rt=a,Xt=d;break;case 0:case 11:case 14:case 15:if(!ut&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){d=a=a.next;do{var h=d,x=h.destroy;h=h.tag,x!==void 0&&((h&2)!==0||(h&4)!==0)&&yc(o,n,x),d=d.next}while(d!==a)}Bn(e,n,o);break;case 1:if(!ut&&(ni(o,n),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(C){Be(o,n,C)}Bn(e,n,o);break;case 21:Bn(e,n,o);break;case 22:o.mode&1?(ut=(a=ut)||o.memoizedState!==null,Bn(e,n,o),ut=a):Bn(e,n,o);break;default:Bn(e,n,o)}}function vh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new _w),n.forEach(function(a){var d=Kw.bind(null,e,a);o.has(a)||(o.add(a),a.then(d,d))})}}function Qt(e,n){var o=n.deletions;if(o!==null)for(var a=0;a<o.length;a++){var d=o[a];try{var h=e,x=n,C=x;e:for(;C!==null;){switch(C.tag){case 5:rt=C.stateNode,Xt=!1;break e;case 3:rt=C.stateNode.containerInfo,Xt=!0;break e;case 4:rt=C.stateNode.containerInfo,Xt=!0;break e}C=C.return}if(rt===null)throw Error(i(160));yh(h,x,d),rt=null,Xt=!1;var j=d.alternate;j!==null&&(j.return=null),d.return=null}catch(_){Be(d,n,_)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)xh(n,e),n=n.sibling}function xh(e,n){var o=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(n,e),an(e),a&4){try{ho(3,e,e.return),zs(3,e)}catch(ie){Be(e,e.return,ie)}try{ho(5,e,e.return)}catch(ie){Be(e,e.return,ie)}}break;case 1:Qt(n,e),an(e),a&512&&o!==null&&ni(o,o.return);break;case 5:if(Qt(n,e),an(e),a&512&&o!==null&&ni(o,o.return),e.flags&32){var d=e.stateNode;try{Di(d,"")}catch(ie){Be(e,e.return,ie)}}if(a&4&&(d=e.stateNode,d!=null)){var h=e.memoizedProps,x=o!==null?o.memoizedProps:h,C=e.type,j=e.updateQueue;if(e.updateQueue=null,j!==null)try{C==="input"&&h.type==="radio"&&h.name!=null&&Dr(d,h),qa(C,x);var _=qa(C,h);for(x=0;x<j.length;x+=2){var $=j[x],K=j[x+1];$==="style"?ef(d,K):$==="dangerouslySetInnerHTML"?Zd(d,K):$==="children"?Di(d,K):M(d,$,K,_)}switch(C){case"input":ar(d,h);break;case"textarea":Xd(d,h);break;case"select":var W=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!h.multiple;var Z=h.value;Z!=null?Lr(d,!!h.multiple,Z,!1):W!==!!h.multiple&&(h.defaultValue!=null?Lr(d,!!h.multiple,h.defaultValue,!0):Lr(d,!!h.multiple,h.multiple?[]:"",!1))}d[no]=h}catch(ie){Be(e,e.return,ie)}}break;case 6:if(Qt(n,e),an(e),a&4){if(e.stateNode===null)throw Error(i(162));d=e.stateNode,h=e.memoizedProps;try{d.nodeValue=h}catch(ie){Be(e,e.return,ie)}}break;case 3:if(Qt(n,e),an(e),a&4&&o!==null&&o.memoizedState.isDehydrated)try{$i(n.containerInfo)}catch(ie){Be(e,e.return,ie)}break;case 4:Qt(n,e),an(e);break;case 13:Qt(n,e),an(e),d=e.child,d.flags&8192&&(h=d.memoizedState!==null,d.stateNode.isHidden=h,!h||d.alternate!==null&&d.alternate.memoizedState!==null||(bc=Ue())),a&4&&vh(e);break;case 22:if($=o!==null&&o.memoizedState!==null,e.mode&1?(ut=(_=ut)||$,Qt(n,e),ut=_):Qt(n,e),an(e),a&8192){if(_=e.memoizedState!==null,(e.stateNode.isHidden=_)&&!$&&(e.mode&1)!==0)for(ee=e,$=e.child;$!==null;){for(K=ee=$;ee!==null;){switch(W=ee,Z=W.child,W.tag){case 0:case 11:case 14:case 15:ho(4,W,W.return);break;case 1:ni(W,W.return);var te=W.stateNode;if(typeof te.componentWillUnmount=="function"){a=W,o=W.return;try{n=a,te.props=n.memoizedProps,te.state=n.memoizedState,te.componentWillUnmount()}catch(ie){Be(a,o,ie)}}break;case 5:ni(W,W.return);break;case 22:if(W.memoizedState!==null){kh(K);continue}}Z!==null?(Z.return=W,ee=Z):kh(K)}$=$.sibling}e:for($=null,K=e;;){if(K.tag===5){if($===null){$=K;try{d=K.stateNode,_?(h=d.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(C=K.stateNode,j=K.memoizedProps.style,x=j!=null&&j.hasOwnProperty("display")?j.display:null,C.style.display=Jd("display",x))}catch(ie){Be(e,e.return,ie)}}}else if(K.tag===6){if($===null)try{K.stateNode.nodeValue=_?"":K.memoizedProps}catch(ie){Be(e,e.return,ie)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===e)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===e)break e;for(;K.sibling===null;){if(K.return===null||K.return===e)break e;$===K&&($=null),K=K.return}$===K&&($=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:Qt(n,e),an(e),a&4&&vh(e);break;case 21:break;default:Qt(n,e),an(e)}}function an(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(mh(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var d=a.stateNode;a.flags&32&&(Di(d,""),a.flags&=-33);var h=gh(e);wc(e,h,d);break;case 3:case 4:var x=a.stateNode.containerInfo,C=gh(e);xc(e,C,x);break;default:throw Error(i(161))}}catch(j){Be(e,e.return,j)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Vw(e,n,o){ee=e,wh(e)}function wh(e,n,o){for(var a=(e.mode&1)!==0;ee!==null;){var d=ee,h=d.child;if(d.tag===22&&a){var x=d.memoizedState!==null||Fs;if(!x){var C=d.alternate,j=C!==null&&C.memoizedState!==null||ut;C=Fs;var _=ut;if(Fs=x,(ut=j)&&!_)for(ee=d;ee!==null;)x=ee,j=x.child,x.tag===22&&x.memoizedState!==null?bh(d):j!==null?(j.return=x,ee=j):bh(d);for(;h!==null;)ee=h,wh(h),h=h.sibling;ee=d,Fs=C,ut=_}Sh(e)}else(d.subtreeFlags&8772)!==0&&h!==null?(h.return=d,ee=h):Sh(e)}}function Sh(e){for(;ee!==null;){var n=ee;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:ut||zs(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!ut)if(o===null)a.componentDidMount();else{var d=n.elementType===n.type?o.memoizedProps:Yt(n.type,o.memoizedProps);a.componentDidUpdate(d,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var h=n.updateQueue;h!==null&&kp(n,h,a);break;case 3:var x=n.updateQueue;if(x!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}kp(n,x,o)}break;case 5:var C=n.stateNode;if(o===null&&n.flags&4){o=C;var j=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&o.focus();break;case"img":j.src&&(o.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var _=n.alternate;if(_!==null){var $=_.memoizedState;if($!==null){var K=$.dehydrated;K!==null&&$i(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||n.flags&512&&vc(n)}catch(W){Be(n,n.return,W)}}if(n===e){ee=null;break}if(o=n.sibling,o!==null){o.return=n.return,ee=o;break}ee=n.return}}function kh(e){for(;ee!==null;){var n=ee;if(n===e){ee=null;break}var o=n.sibling;if(o!==null){o.return=n.return,ee=o;break}ee=n.return}}function bh(e){for(;ee!==null;){var n=ee;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{zs(4,n)}catch(j){Be(n,o,j)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var d=n.return;try{a.componentDidMount()}catch(j){Be(n,d,j)}}var h=n.return;try{vc(n)}catch(j){Be(n,h,j)}break;case 5:var x=n.return;try{vc(n)}catch(j){Be(n,x,j)}}}catch(j){Be(n,n.return,j)}if(n===e){ee=null;break}var C=n.sibling;if(C!==null){C.return=n.return,ee=C;break}ee=n.return}}var Fw=Math.ceil,Bs=O.ReactCurrentDispatcher,Sc=O.ReactCurrentOwner,Vt=O.ReactCurrentBatchConfig,je=0,et=null,Ke=null,it=0,Et=0,ri=_n(0),qe=0,mo=null,gr=0,Hs=0,kc=0,go=null,wt=null,bc=0,ii=1/0,bn=null,Us=!1,Cc=null,Hn=null,Ws=!1,Un=null,$s=0,yo=0,Nc=null,Ks=-1,Gs=0;function mt(){return(je&6)!==0?Ue():Ks!==-1?Ks:Ks=Ue()}function Wn(e){return(e.mode&1)===0?1:(je&2)!==0&&it!==0?it&-it:kw.transition!==null?(Gs===0&&(Gs=gf()),Gs):(e=Ae,e!==0||(e=window.event,e=e===void 0?16:Nf(e.type)),e)}function qt(e,n,o,a){if(50<yo)throw yo=0,Nc=null,Error(i(185));zi(e,o,a),((je&2)===0||e!==et)&&(e===et&&((je&2)===0&&(Hs|=o),qe===4&&$n(e,it)),St(e,a),o===1&&je===0&&(n.mode&1)===0&&(ii=Ue()+500,Ss&&Vn()))}function St(e,n){var o=e.callbackNode;kx(e,n);var a=ns(e,e===et?it:0);if(a===0)o!==null&&pf(o),e.callbackNode=null,e.callbackPriority=0;else if(n=a&-a,e.callbackPriority!==n){if(o!=null&&pf(o),n===1)e.tag===0?Sw(Nh.bind(null,e)):up(Nh.bind(null,e)),yw(function(){(je&6)===0&&Vn()}),o=null;else{switch(yf(a)){case 1:o=il;break;case 4:o=hf;break;case 16:o=Zo;break;case 536870912:o=mf;break;default:o=Zo}o=Ih(o,Ch.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Ch(e,n){if(Ks=-1,Gs=0,(je&6)!==0)throw Error(i(327));var o=e.callbackNode;if(oi()&&e.callbackNode!==o)return null;var a=ns(e,e===et?it:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||n)n=Ys(e,a);else{n=a;var d=je;je|=2;var h=jh();(et!==e||it!==n)&&(bn=null,ii=Ue()+500,vr(e,n));do try{Hw();break}catch(C){Th(e,C)}while(!0);Ul(),Bs.current=h,je=d,Ke!==null?n=0:(et=null,it=0,n=qe)}if(n!==0){if(n===2&&(d=ol(e),d!==0&&(a=d,n=Tc(e,d))),n===1)throw o=mo,vr(e,0),$n(e,a),St(e,Ue()),o;if(n===6)$n(e,a);else{if(d=e.current.alternate,(a&30)===0&&!zw(d)&&(n=Ys(e,a),n===2&&(h=ol(e),h!==0&&(a=h,n=Tc(e,h))),n===1))throw o=mo,vr(e,0),$n(e,a),St(e,Ue()),o;switch(e.finishedWork=d,e.finishedLanes=a,n){case 0:case 1:throw Error(i(345));case 2:xr(e,wt,bn);break;case 3:if($n(e,a),(a&130023424)===a&&(n=bc+500-Ue(),10<n)){if(ns(e,0)!==0)break;if(d=e.suspendedLanes,(d&a)!==a){mt(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=Ml(xr.bind(null,e,wt,bn),n);break}xr(e,wt,bn);break;case 4:if($n(e,a),(a&4194240)===a)break;for(n=e.eventTimes,d=-1;0<a;){var x=31-$t(a);h=1<<x,x=n[x],x>d&&(d=x),a&=~h}if(a=d,a=Ue()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Fw(a/1960))-a,10<a){e.timeoutHandle=Ml(xr.bind(null,e,wt,bn),a);break}xr(e,wt,bn);break;case 5:xr(e,wt,bn);break;default:throw Error(i(329))}}}return St(e,Ue()),e.callbackNode===o?Ch.bind(null,e):null}function Tc(e,n){var o=go;return e.current.memoizedState.isDehydrated&&(vr(e,n).flags|=256),e=Ys(e,n),e!==2&&(n=wt,wt=o,n!==null&&jc(n)),e}function jc(e){wt===null?wt=e:wt.push.apply(wt,e)}function zw(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var d=o[a],h=d.getSnapshot;d=d.value;try{if(!Kt(h(),d))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function $n(e,n){for(n&=~kc,n&=~Hs,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-$t(n),a=1<<o;e[o]=-1,n&=~a}}function Nh(e){if((je&6)!==0)throw Error(i(327));oi();var n=ns(e,0);if((n&1)===0)return St(e,Ue()),null;var o=Ys(e,n);if(e.tag!==0&&o===2){var a=ol(e);a!==0&&(n=a,o=Tc(e,a))}if(o===1)throw o=mo,vr(e,0),$n(e,n),St(e,Ue()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,xr(e,wt,bn),St(e,Ue()),null}function Pc(e,n){var o=je;je|=1;try{return e(n)}finally{je=o,je===0&&(ii=Ue()+500,Ss&&Vn())}}function yr(e){Un!==null&&Un.tag===0&&(je&6)===0&&oi();var n=je;je|=1;var o=Vt.transition,a=Ae;try{if(Vt.transition=null,Ae=1,e)return e()}finally{Ae=a,Vt.transition=o,je=n,(je&6)===0&&Vn()}}function Ec(){Et=ri.current,De(ri)}function vr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,gw(o)),Ke!==null)for(o=Ke.return;o!==null;){var a=o;switch(Vl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&xs();break;case 3:ei(),De(yt),De(at),ql();break;case 5:Xl(a);break;case 4:ei();break;case 13:De(Oe);break;case 19:De(Oe);break;case 10:Wl(a.type._context);break;case 22:case 23:Ec()}o=o.return}if(et=e,Ke=e=Kn(e.current,null),it=Et=n,qe=0,mo=null,kc=Hs=gr=0,wt=go=null,pr!==null){for(n=0;n<pr.length;n++)if(o=pr[n],a=o.interleaved,a!==null){o.interleaved=null;var d=a.next,h=o.pending;if(h!==null){var x=h.next;h.next=d,a.next=x}o.pending=a}pr=null}return e}function Th(e,n){do{var o=Ke;try{if(Ul(),Rs.current=Ls,Ms){for(var a=Ve.memoizedState;a!==null;){var d=a.queue;d!==null&&(d.pending=null),a=a.next}Ms=!1}if(mr=0,Je=Qe=Ve=null,lo=!1,co=0,Sc.current=null,o===null||o.return===null){qe=1,mo=n,Ke=null;break}e:{var h=e,x=o.return,C=o,j=n;if(n=it,C.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var _=j,$=C,K=$.tag;if(($.mode&1)===0&&(K===0||K===11||K===15)){var W=$.alternate;W?($.updateQueue=W.updateQueue,$.memoizedState=W.memoizedState,$.lanes=W.lanes):($.updateQueue=null,$.memoizedState=null)}var Z=qp(x);if(Z!==null){Z.flags&=-257,Zp(Z,x,C,h,n),Z.mode&1&&Qp(h,_,n),n=Z,j=_;var te=n.updateQueue;if(te===null){var ie=new Set;ie.add(j),n.updateQueue=ie}else te.add(j);break e}else{if((n&1)===0){Qp(h,_,n),Ac();break e}j=Error(i(426))}}else if(Le&&C.mode&1){var We=qp(x);if(We!==null){(We.flags&65536)===0&&(We.flags|=256),Zp(We,x,C,h,n),Bl(ti(j,C));break e}}h=j=ti(j,C),qe!==4&&(qe=2),go===null?go=[h]:go.push(h),h=x;do{switch(h.tag){case 3:h.flags|=65536,n&=-n,h.lanes|=n;var D=Yp(h,j,n);Sp(h,D);break e;case 1:C=j;var E=h.type,L=h.stateNode;if((h.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Hn===null||!Hn.has(L)))){h.flags|=65536,n&=-n,h.lanes|=n;var X=Xp(h,C,n);Sp(h,X);break e}}h=h.return}while(h!==null)}Eh(o)}catch(le){n=le,Ke===o&&o!==null&&(Ke=o=o.return);continue}break}while(!0)}function jh(){var e=Bs.current;return Bs.current=Ls,e===null?Ls:e}function Ac(){(qe===0||qe===3||qe===2)&&(qe=4),et===null||(gr&268435455)===0&&(Hs&268435455)===0||$n(et,it)}function Ys(e,n){var o=je;je|=2;var a=jh();(et!==e||it!==n)&&(bn=null,vr(e,n));do try{Bw();break}catch(d){Th(e,d)}while(!0);if(Ul(),je=o,Bs.current=a,Ke!==null)throw Error(i(261));return et=null,it=0,qe}function Bw(){for(;Ke!==null;)Ph(Ke)}function Hw(){for(;Ke!==null&&!px();)Ph(Ke)}function Ph(e){var n=Mh(e.alternate,e,Et);e.memoizedProps=e.pendingProps,n===null?Eh(e):Ke=n,Sc.current=null}function Eh(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=Dw(o,n,Et),o!==null){Ke=o;return}}else{if(o=Lw(o,n),o!==null){o.flags&=32767,Ke=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qe=6,Ke=null;return}}if(n=n.sibling,n!==null){Ke=n;return}Ke=n=e}while(n!==null);qe===0&&(qe=5)}function xr(e,n,o){var a=Ae,d=Vt.transition;try{Vt.transition=null,Ae=1,Uw(e,n,o,a)}finally{Vt.transition=d,Ae=a}return null}function Uw(e,n,o,a){do oi();while(Un!==null);if((je&6)!==0)throw Error(i(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var h=o.lanes|o.childLanes;if(bx(e,h),e===et&&(Ke=et=null,it=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ws||(Ws=!0,Ih(Zo,function(){return oi(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=Vt.transition,Vt.transition=null;var x=Ae;Ae=1;var C=je;je|=4,Sc.current=null,Ow(e,o),xh(o,e),cw(Al),os=!!El,Al=El=null,e.current=o,Vw(o),hx(),je=C,Ae=x,Vt.transition=h}else e.current=o;if(Ws&&(Ws=!1,Un=e,$s=d),h=e.pendingLanes,h===0&&(Hn=null),yx(o.stateNode),St(e,Ue()),n!==null)for(a=e.onRecoverableError,o=0;o<n.length;o++)d=n[o],a(d.value,{componentStack:d.stack,digest:d.digest});if(Us)throw Us=!1,e=Cc,Cc=null,e;return($s&1)!==0&&e.tag!==0&&oi(),h=e.pendingLanes,(h&1)!==0?e===Nc?yo++:(yo=0,Nc=e):yo=0,Vn(),null}function oi(){if(Un!==null){var e=yf($s),n=Vt.transition,o=Ae;try{if(Vt.transition=null,Ae=16>e?16:e,Un===null)var a=!1;else{if(e=Un,Un=null,$s=0,(je&6)!==0)throw Error(i(331));var d=je;for(je|=4,ee=e.current;ee!==null;){var h=ee,x=h.child;if((ee.flags&16)!==0){var C=h.deletions;if(C!==null){for(var j=0;j<C.length;j++){var _=C[j];for(ee=_;ee!==null;){var $=ee;switch($.tag){case 0:case 11:case 15:ho(8,$,h)}var K=$.child;if(K!==null)K.return=$,ee=K;else for(;ee!==null;){$=ee;var W=$.sibling,Z=$.return;if(hh($),$===_){ee=null;break}if(W!==null){W.return=Z,ee=W;break}ee=Z}}}var te=h.alternate;if(te!==null){var ie=te.child;if(ie!==null){te.child=null;do{var We=ie.sibling;ie.sibling=null,ie=We}while(ie!==null)}}ee=h}}if((h.subtreeFlags&2064)!==0&&x!==null)x.return=h,ee=x;else e:for(;ee!==null;){if(h=ee,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:ho(9,h,h.return)}var D=h.sibling;if(D!==null){D.return=h.return,ee=D;break e}ee=h.return}}var E=e.current;for(ee=E;ee!==null;){x=ee;var L=x.child;if((x.subtreeFlags&2064)!==0&&L!==null)L.return=x,ee=L;else e:for(x=E;ee!==null;){if(C=ee,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:zs(9,C)}}catch(le){Be(C,C.return,le)}if(C===x){ee=null;break e}var X=C.sibling;if(X!==null){X.return=C.return,ee=X;break e}ee=C.return}}if(je=d,Vn(),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Jo,e)}catch{}a=!0}return a}finally{Ae=o,Vt.transition=n}}return!1}function Ah(e,n,o){n=ti(o,n),n=Yp(e,n,1),e=zn(e,n,1),n=mt(),e!==null&&(zi(e,1,n),St(e,n))}function Be(e,n,o){if(e.tag===3)Ah(e,e,o);else for(;n!==null;){if(n.tag===3){Ah(n,e,o);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hn===null||!Hn.has(a))){e=ti(o,e),e=Xp(n,e,1),n=zn(n,e,1),e=mt(),n!==null&&(zi(n,1,e),St(n,e));break}}n=n.return}}function Ww(e,n,o){var a=e.pingCache;a!==null&&a.delete(n),n=mt(),e.pingedLanes|=e.suspendedLanes&o,et===e&&(it&o)===o&&(qe===4||qe===3&&(it&130023424)===it&&500>Ue()-bc?vr(e,0):kc|=o),St(e,n)}function Rh(e,n){n===0&&((e.mode&1)===0?n=1:(n=ts,ts<<=1,(ts&130023424)===0&&(ts=4194304)));var o=mt();e=wn(e,n),e!==null&&(zi(e,n,o),St(e,o))}function $w(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Rh(e,o)}function Kw(e,n){var o=0;switch(e.tag){case 13:var a=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(n),Rh(e,o)}var Mh;Mh=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||yt.current)xt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return xt=!1,Iw(e,n,o);xt=(e.flags&131072)!==0}else xt=!1,Le&&(n.flags&1048576)!==0&&dp(n,bs,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;Vs(e,n),e=n.pendingProps;var d=Gr(n,at.current);Jr(n,o),d=ec(null,n,a,e,d,o);var h=tc();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,vt(a)?(h=!0,ws(n)):h=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Gl(n),d.updater=_s,n.stateNode=d,d._reactInternals=n,ac(n,a,e,o),n=dc(null,n,a,!0,h,o)):(n.tag=0,Le&&h&&Ol(n),ht(null,n,d,o),n=n.child),n;case 16:a=n.elementType;e:{switch(Vs(e,n),e=n.pendingProps,d=a._init,a=d(a._payload),n.type=a,d=n.tag=Yw(a),e=Yt(a,e),d){case 0:n=uc(null,n,a,e,o);break e;case 1:n=ih(null,n,a,e,o);break e;case 11:n=Jp(null,n,a,e,o);break e;case 14:n=eh(null,n,a,Yt(a.type,e),o);break e}throw Error(i(306,a,""))}return n;case 0:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Yt(a,d),uc(e,n,a,d,o);case 1:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Yt(a,d),ih(e,n,a,d,o);case 3:e:{if(oh(n),e===null)throw Error(i(387));a=n.pendingProps,h=n.memoizedState,d=h.element,wp(e,n),Es(n,a,null,o);var x=n.memoizedState;if(a=x.element,h.isDehydrated)if(h={element:a,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){d=ti(Error(i(423)),n),n=sh(e,n,a,o,d);break e}else if(a!==d){d=ti(Error(i(424)),n),n=sh(e,n,a,o,d);break e}else for(Pt=Ln(n.stateNode.containerInfo.firstChild),jt=n,Le=!0,Gt=null,o=vp(n,null,a,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Qr(),a===d){n=kn(e,n,o);break e}ht(e,n,a,o)}n=n.child}return n;case 5:return bp(n),e===null&&zl(n),a=n.type,d=n.pendingProps,h=e!==null?e.memoizedProps:null,x=d.children,Rl(a,d)?x=null:h!==null&&Rl(a,h)&&(n.flags|=32),rh(e,n),ht(e,n,x,o),n.child;case 6:return e===null&&zl(n),null;case 13:return ah(e,n,o);case 4:return Yl(n,n.stateNode.containerInfo),a=n.pendingProps,e===null?n.child=qr(n,null,a,o):ht(e,n,a,o),n.child;case 11:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Yt(a,d),Jp(e,n,a,d,o);case 7:return ht(e,n,n.pendingProps,o),n.child;case 8:return ht(e,n,n.pendingProps.children,o),n.child;case 12:return ht(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(a=n.type._context,d=n.pendingProps,h=n.memoizedProps,x=d.value,Me(Ts,a._currentValue),a._currentValue=x,h!==null)if(Kt(h.value,x)){if(h.children===d.children&&!yt.current){n=kn(e,n,o);break e}}else for(h=n.child,h!==null&&(h.return=n);h!==null;){var C=h.dependencies;if(C!==null){x=h.child;for(var j=C.firstContext;j!==null;){if(j.context===a){if(h.tag===1){j=Sn(-1,o&-o),j.tag=2;var _=h.updateQueue;if(_!==null){_=_.shared;var $=_.pending;$===null?j.next=j:(j.next=$.next,$.next=j),_.pending=j}}h.lanes|=o,j=h.alternate,j!==null&&(j.lanes|=o),$l(h.return,o,n),C.lanes|=o;break}j=j.next}}else if(h.tag===10)x=h.type===n.type?null:h.child;else if(h.tag===18){if(x=h.return,x===null)throw Error(i(341));x.lanes|=o,C=x.alternate,C!==null&&(C.lanes|=o),$l(x,o,n),x=h.sibling}else x=h.child;if(x!==null)x.return=h;else for(x=h;x!==null;){if(x===n){x=null;break}if(h=x.sibling,h!==null){h.return=x.return,x=h;break}x=x.return}h=x}ht(e,n,d.children,o),n=n.child}return n;case 9:return d=n.type,a=n.pendingProps.children,Jr(n,o),d=_t(d),a=a(d),n.flags|=1,ht(e,n,a,o),n.child;case 14:return a=n.type,d=Yt(a,n.pendingProps),d=Yt(a.type,d),eh(e,n,a,d,o);case 15:return th(e,n,n.type,n.pendingProps,o);case 17:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Yt(a,d),Vs(e,n),n.tag=1,vt(a)?(e=!0,ws(n)):e=!1,Jr(n,o),Kp(n,a,d),ac(n,a,d,o),dc(null,n,a,!0,e,o);case 19:return ch(e,n,o);case 22:return nh(e,n,o)}throw Error(i(156,n.tag))};function Ih(e,n){return ff(e,n)}function Gw(e,n,o,a){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,n,o,a){return new Gw(e,n,o,a)}function Rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yw(e){if(typeof e=="function")return Rc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xe)return 11;if(e===we)return 14}return 2}function Kn(e,n){var o=e.alternate;return o===null?(o=Ft(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Xs(e,n,o,a,d,h){var x=2;if(a=e,typeof e=="function")Rc(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case z:return wr(o.children,d,h,n);case F:x=8,d|=8;break;case J:return e=Ft(12,o,n,d|2),e.elementType=J,e.lanes=h,e;case me:return e=Ft(13,o,n,d),e.elementType=me,e.lanes=h,e;case pe:return e=Ft(19,o,n,d),e.elementType=pe,e.lanes=h,e;case q:return Qs(o,d,h,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:x=10;break e;case ye:x=9;break e;case xe:x=11;break e;case we:x=14;break e;case se:x=16,a=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Ft(x,o,n,d),n.elementType=e,n.type=a,n.lanes=h,n}function wr(e,n,o,a){return e=Ft(7,e,a,n),e.lanes=o,e}function Qs(e,n,o,a){return e=Ft(22,e,a,n),e.elementType=q,e.lanes=o,e.stateNode={isHidden:!1},e}function Mc(e,n,o){return e=Ft(6,e,null,n),e.lanes=o,e}function Ic(e,n,o){return n=Ft(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Xw(e,n,o,a,d){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sl(0),this.expirationTimes=sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sl(0),this.identifierPrefix=a,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Dc(e,n,o,a,d,h,x,C,j){return e=new Xw(e,n,o,C,j),n===1?(n=1,h===!0&&(n|=8)):n=0,h=Ft(3,null,null,n),e.current=h,h.stateNode=e,h.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gl(h),e}function Qw(e,n,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:a==null?null:""+a,children:e,containerInfo:n,implementation:o}}function Dh(e){if(!e)return On;e=e._reactInternals;e:{if(lr(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(vt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(vt(o))return lp(e,o,n)}return n}function Lh(e,n,o,a,d,h,x,C,j){return e=Dc(o,a,!0,e,d,h,x,C,j),e.context=Dh(null),o=e.current,a=mt(),d=Wn(o),h=Sn(a,d),h.callback=n??null,zn(o,h,d),e.current.lanes=d,zi(e,d,a),St(e,a),e}function qs(e,n,o,a){var d=n.current,h=mt(),x=Wn(d);return o=Dh(o),n.context===null?n.context=o:n.pendingContext=o,n=Sn(h,x),n.payload={element:e},a=a===void 0?null:a,a!==null&&(n.callback=a),e=zn(d,n,x),e!==null&&(qt(e,d,x,h),Ps(e,d,x)),x}function Zs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function _h(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function Lc(e,n){_h(e,n),(e=e.alternate)&&_h(e,n)}function qw(){return null}var Oh=typeof reportError=="function"?reportError:function(e){console.error(e)};function _c(e){this._internalRoot=e}Js.prototype.render=_c.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));qs(e,n,null,null)},Js.prototype.unmount=_c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;yr(function(){qs(null,e,null,null)}),n[gn]=null}};function Js(e){this._internalRoot=e}Js.prototype.unstable_scheduleHydration=function(e){if(e){var n=wf();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Mn.length&&n!==0&&n<Mn[o].priority;o++);Mn.splice(o,0,e),o===0&&bf(e)}};function Oc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ea(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vh(){}function Zw(e,n,o,a,d){if(d){if(typeof a=="function"){var h=a;a=function(){var _=Zs(x);h.call(_)}}var x=Lh(n,a,e,0,null,!1,!1,"",Vh);return e._reactRootContainer=x,e[gn]=x.current,eo(e.nodeType===8?e.parentNode:e),yr(),x}for(;d=e.lastChild;)e.removeChild(d);if(typeof a=="function"){var C=a;a=function(){var _=Zs(j);C.call(_)}}var j=Dc(e,0,!1,null,null,!1,!1,"",Vh);return e._reactRootContainer=j,e[gn]=j.current,eo(e.nodeType===8?e.parentNode:e),yr(function(){qs(n,j,o,a)}),j}function ta(e,n,o,a,d){var h=o._reactRootContainer;if(h){var x=h;if(typeof d=="function"){var C=d;d=function(){var j=Zs(x);C.call(j)}}qs(n,x,e,d)}else x=Zw(o,n,e,d,a);return Zs(x)}vf=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Fi(n.pendingLanes);o!==0&&(al(n,o|1),St(n,Ue()),(je&6)===0&&(ii=Ue()+500,Vn()))}break;case 13:yr(function(){var a=wn(e,1);if(a!==null){var d=mt();qt(a,e,1,d)}}),Lc(e,1)}},ll=function(e){if(e.tag===13){var n=wn(e,134217728);if(n!==null){var o=mt();qt(n,e,134217728,o)}Lc(e,134217728)}},xf=function(e){if(e.tag===13){var n=Wn(e),o=wn(e,n);if(o!==null){var a=mt();qt(o,e,n,a)}Lc(e,n)}},wf=function(){return Ae},Sf=function(e,n){var o=Ae;try{return Ae=e,n()}finally{Ae=o}},el=function(e,n,o){switch(n){case"input":if(ar(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var a=o[n];if(a!==e&&a.form===e.form){var d=vs(a);if(!d)throw Error(i(90));Re(a),ar(a,d)}}}break;case"textarea":Xd(e,o);break;case"select":n=o.value,n!=null&&Lr(e,!!o.multiple,n,!1)}},of=Pc,sf=yr;var Jw={usingClientEntryPoint:!1,Events:[ro,$r,vs,nf,rf,Pc]},vo={findFiberByHostInstance:cr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},e1={bundleType:vo.bundleType,version:vo.version,rendererPackageName:vo.rendererPackageName,rendererConfig:vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=uf(e),e===null?null:e.stateNode},findFiberByHostInstance:vo.findFiberByHostInstance||qw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!na.isDisabled&&na.supportsFiber)try{Jo=na.inject(e1),nn=na}catch{}}return kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jw,kt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Oc(n))throw Error(i(200));return Qw(e,n,null,o)},kt.createRoot=function(e,n){if(!Oc(e))throw Error(i(299));var o=!1,a="",d=Oh;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=Dc(e,1,!1,null,null,o,!1,a,d),e[gn]=n.current,eo(e.nodeType===8?e.parentNode:e),new _c(n)},kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=uf(n),e=e===null?null:e.stateNode,e},kt.flushSync=function(e){return yr(e)},kt.hydrate=function(e,n,o){if(!ea(n))throw Error(i(200));return ta(null,e,n,!0,o)},kt.hydrateRoot=function(e,n,o){if(!Oc(e))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,d=!1,h="",x=Oh;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),n=Lh(n,null,e,1,o??null,d,!1,h,x),e[gn]=n.current,eo(e),a)for(e=0;e<a.length;e++)o=a[e],d=o._getVersion,d=d(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,d]:n.mutableSourceEagerHydrationData.push(o,d);return new Js(n)},kt.render=function(e,n,o){if(!ea(n))throw Error(i(200));return ta(null,e,n,!1,o)},kt.unmountComponentAtNode=function(e){if(!ea(e))throw Error(i(40));return e._reactRootContainer?(yr(function(){ta(null,null,e,!1,function(){e._reactRootContainer=null,e[gn]=null})}),!0):!1},kt.unstable_batchedUpdates=Pc,kt.unstable_renderSubtreeIntoContainer=function(e,n,o,a){if(!ea(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return ta(e,n,o,!1,a)},kt.version="18.3.1-next-f1338f8080-20240426",kt}var Kh;function $g(){if(Kh)return zc.exports;Kh=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(r){console.error(r)}}return t(),zc.exports=l1(),zc.exports}var Gh;function c1(){if(Gh)return ra;Gh=1;var t=$g();return ra.createRoot=t.createRoot,ra.hydrateRoot=t.hydrateRoot,ra}var u1=c1(),S=Zu();const Xn=Wg(S),Kg=n1({__proto__:null,default:Xn},[S]),Ju=S.createContext({});function ed(t){const r=S.useRef(null);return r.current===null&&(r.current=t()),r.current}const td=typeof window<"u",Gg=td?S.useLayoutEffect:S.useEffect,Ia=S.createContext(null);function nd(t,r){t.indexOf(r)===-1&&t.push(r)}function rd(t,r){const i=t.indexOf(r);i>-1&&t.splice(i,1)}const Nn=(t,r,i)=>i>r?r:i<t?t:i;let id=()=>{};const Tn={},Yg=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Xg(t){return typeof t=="object"&&t!==null}const Qg=t=>/^0[^.\s]+$/u.test(t);function od(t){let r;return()=>(r===void 0&&(r=t()),r)}const Ut=t=>t,d1=(t,r)=>i=>r(t(i)),Uo=(...t)=>t.reduce(d1),Io=(t,r,i)=>{const s=r-t;return s===0?1:(i-t)/s};class sd{constructor(){this.subscriptions=[]}add(r){return nd(this.subscriptions,r),()=>rd(this.subscriptions,r)}notify(r,i,s){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](r,i,s);else for(let u=0;u<l;u++){const c=this.subscriptions[u];c&&c(r,i,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const un=t=>t*1e3,Ht=t=>t/1e3;function qg(t,r){return r?t*(1e3/r):0}const Zg=(t,r,i)=>(((1-3*i+3*r)*t+(3*i-6*r))*t+3*r)*t,f1=1e-7,p1=12;function h1(t,r,i,s,l){let u,c,p=0;do c=r+(i-r)/2,u=Zg(c,s,l)-t,u>0?i=c:r=c;while(Math.abs(u)>f1&&++p<p1);return c}function Wo(t,r,i,s){if(t===r&&i===s)return Ut;const l=u=>h1(u,0,1,t,i);return u=>u===0||u===1?u:Zg(l(u),r,s)}const Jg=t=>r=>r<=.5?t(2*r)/2:(2-t(2*(1-r)))/2,ey=t=>r=>1-t(1-r),ty=Wo(.33,1.53,.69,.99),ad=ey(ty),ny=Jg(ad),ry=t=>(t*=2)<1?.5*ad(t):.5*(2-Math.pow(2,-10*(t-1))),ld=t=>1-Math.sin(Math.acos(t)),iy=ey(ld),oy=Jg(ld),m1=Wo(.42,0,1,1),g1=Wo(0,0,.58,1),sy=Wo(.42,0,.58,1),y1=t=>Array.isArray(t)&&typeof t[0]!="number",ay=t=>Array.isArray(t)&&typeof t[0]=="number",v1={linear:Ut,easeIn:m1,easeInOut:sy,easeOut:g1,circIn:ld,circInOut:oy,circOut:iy,backIn:ad,backInOut:ny,backOut:ty,anticipate:ry},x1=t=>typeof t=="string",Yh=t=>{if(ay(t)){id(t.length===4);const[r,i,s,l]=t;return Wo(r,i,s,l)}else if(x1(t))return v1[t];return t},ia=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function w1(t,r){let i=new Set,s=new Set,l=!1,u=!1;const c=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function m(y){c.has(y)&&(g.schedule(y),t()),y(p)}const g={schedule:(y,v=!1,w=!1)=>{const T=w&&l?i:s;return v&&c.add(y),T.has(y)||T.add(y),y},cancel:y=>{s.delete(y),c.delete(y)},process:y=>{if(p=y,l){u=!0;return}l=!0,[i,s]=[s,i],i.forEach(m),i.clear(),l=!1,u&&(u=!1,g.process(y))}};return g}const S1=40;function ly(t,r){let i=!1,s=!0;const l={delta:0,timestamp:0,isProcessing:!1},u=()=>i=!0,c=ia.reduce((M,O)=>(M[O]=w1(u),M),{}),{setup:p,read:m,resolveKeyframes:g,preUpdate:y,update:v,preRender:w,render:b,postRender:T}=c,k=()=>{const M=Tn.useManualTiming?l.timestamp:performance.now();i=!1,Tn.useManualTiming||(l.delta=s?1e3/60:Math.max(Math.min(M-l.timestamp,S1),1)),l.timestamp=M,l.isProcessing=!0,p.process(l),m.process(l),g.process(l),y.process(l),v.process(l),w.process(l),b.process(l),T.process(l),l.isProcessing=!1,i&&r&&(s=!1,t(k))},N=()=>{i=!0,s=!0,l.isProcessing||t(k)};return{schedule:ia.reduce((M,O)=>{const V=c[O];return M[O]=(U,z=!1,F=!1)=>(i||N(),V.schedule(U,z,F)),M},{}),cancel:M=>{for(let O=0;O<ia.length;O++)c[ia[O]].cancel(M)},state:l,steps:c}}const{schedule:_e,cancel:Jn,state:ot,steps:Uc}=ly(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ut,!0);let ga;function k1(){ga=void 0}const Ct={now:()=>(ga===void 0&&Ct.set(ot.isProcessing||Tn.useManualTiming?ot.timestamp:performance.now()),ga),set:t=>{ga=t,queueMicrotask(k1)}},cy=t=>r=>typeof r=="string"&&r.startsWith(t),cd=cy("--"),b1=cy("var(--"),ud=t=>b1(t)?C1.test(t.split("/*")[0].trim()):!1,C1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Do={...bi,transform:t=>Nn(0,1,t)},oa={...bi,default:1},Po=t=>Math.round(t*1e5)/1e5,dd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function N1(t){return t==null}const T1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fd=(t,r)=>i=>!!(typeof i=="string"&&T1.test(i)&&i.startsWith(t)||r&&!N1(i)&&Object.prototype.hasOwnProperty.call(i,r)),uy=(t,r,i)=>s=>{if(typeof s!="string")return s;const[l,u,c,p]=s.match(dd);return{[t]:parseFloat(l),[r]:parseFloat(u),[i]:parseFloat(c),alpha:p!==void 0?parseFloat(p):1}},j1=t=>Nn(0,255,t),Wc={...bi,transform:t=>Math.round(j1(t))},Cr={test:fd("rgb","red"),parse:uy("red","green","blue"),transform:({red:t,green:r,blue:i,alpha:s=1})=>"rgba("+Wc.transform(t)+", "+Wc.transform(r)+", "+Wc.transform(i)+", "+Po(Do.transform(s))+")"};function P1(t){let r="",i="",s="",l="";return t.length>5?(r=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),l=t.substring(7,9)):(r=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),l=t.substring(4,5),r+=r,i+=i,s+=s,l+=l),{red:parseInt(r,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const mu={test:fd("#"),parse:P1,transform:Cr.transform},$o=t=>({test:r=>typeof r=="string"&&r.endsWith(t)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${t}`}),Qn=$o("deg"),dn=$o("%"),he=$o("px"),E1=$o("vh"),A1=$o("vw"),Xh={...dn,parse:t=>dn.parse(t)/100,transform:t=>dn.transform(t*100)},ui={test:fd("hsl","hue"),parse:uy("hue","saturation","lightness"),transform:({hue:t,saturation:r,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+dn.transform(Po(r))+", "+dn.transform(Po(i))+", "+Po(Do.transform(s))+")"},Ye={test:t=>Cr.test(t)||mu.test(t)||ui.test(t),parse:t=>Cr.test(t)?Cr.parse(t):ui.test(t)?ui.parse(t):mu.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Cr.transform(t):ui.transform(t),getAnimatableNone:t=>{const r=Ye.parse(t);return r.alpha=0,Ye.transform(r)}},R1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M1(t){return isNaN(t)&&typeof t=="string"&&(t.match(dd)?.length||0)+(t.match(R1)?.length||0)>0}const dy="number",fy="color",I1="var",D1="var(",Qh="${}",L1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lo(t){const r=t.toString(),i=[],s={color:[],number:[],var:[]},l=[];let u=0;const p=r.replace(L1,m=>(Ye.test(m)?(s.color.push(u),l.push(fy),i.push(Ye.parse(m))):m.startsWith(D1)?(s.var.push(u),l.push(I1),i.push(m)):(s.number.push(u),l.push(dy),i.push(parseFloat(m))),++u,Qh)).split(Qh);return{values:i,split:p,indexes:s,types:l}}function py(t){return Lo(t).values}function hy(t){const{split:r,types:i}=Lo(t),s=r.length;return l=>{let u="";for(let c=0;c<s;c++)if(u+=r[c],l[c]!==void 0){const p=i[c];p===dy?u+=Po(l[c]):p===fy?u+=Ye.transform(l[c]):u+=l[c]}return u}}const _1=t=>typeof t=="number"?0:Ye.test(t)?Ye.getAnimatableNone(t):t;function O1(t){const r=py(t);return hy(t)(r.map(_1))}const er={test:M1,parse:py,createTransformer:hy,getAnimatableNone:O1};function $c(t,r,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(r-t)*6*i:i<1/2?r:i<2/3?t+(r-t)*(2/3-i)*6:t}function V1({hue:t,saturation:r,lightness:i,alpha:s}){t/=360,r/=100,i/=100;let l=0,u=0,c=0;if(!r)l=u=c=i;else{const p=i<.5?i*(1+r):i+r-i*r,m=2*i-p;l=$c(m,p,t+1/3),u=$c(m,p,t),c=$c(m,p,t-1/3)}return{red:Math.round(l*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:s}}function ba(t,r){return i=>i>0?r:t}const Fe=(t,r,i)=>t+(r-t)*i,Kc=(t,r,i)=>{const s=t*t,l=i*(r*r-s)+s;return l<0?0:Math.sqrt(l)},F1=[mu,Cr,ui],z1=t=>F1.find(r=>r.test(t));function qh(t){const r=z1(t);if(!r)return!1;let i=r.parse(t);return r===ui&&(i=V1(i)),i}const Zh=(t,r)=>{const i=qh(t),s=qh(r);if(!i||!s)return ba(t,r);const l={...i};return u=>(l.red=Kc(i.red,s.red,u),l.green=Kc(i.green,s.green,u),l.blue=Kc(i.blue,s.blue,u),l.alpha=Fe(i.alpha,s.alpha,u),Cr.transform(l))},gu=new Set(["none","hidden"]);function B1(t,r){return gu.has(t)?i=>i<=0?t:r:i=>i>=1?r:t}function H1(t,r){return i=>Fe(t,r,i)}function pd(t){return typeof t=="number"?H1:typeof t=="string"?ud(t)?ba:Ye.test(t)?Zh:$1:Array.isArray(t)?my:typeof t=="object"?Ye.test(t)?Zh:U1:ba}function my(t,r){const i=[...t],s=i.length,l=t.map((u,c)=>pd(u)(u,r[c]));return u=>{for(let c=0;c<s;c++)i[c]=l[c](u);return i}}function U1(t,r){const i={...t,...r},s={};for(const l in i)t[l]!==void 0&&r[l]!==void 0&&(s[l]=pd(t[l])(t[l],r[l]));return l=>{for(const u in s)i[u]=s[u](l);return i}}function W1(t,r){const i=[],s={color:0,var:0,number:0};for(let l=0;l<r.values.length;l++){const u=r.types[l],c=t.indexes[u][s[u]],p=t.values[c]??0;i[l]=p,s[u]++}return i}const $1=(t,r)=>{const i=er.createTransformer(r),s=Lo(t),l=Lo(r);return s.indexes.var.length===l.indexes.var.length&&s.indexes.color.length===l.indexes.color.length&&s.indexes.number.length>=l.indexes.number.length?gu.has(t)&&!l.values.length||gu.has(r)&&!s.values.length?B1(t,r):Uo(my(W1(s,l),l.values),i):ba(t,r)};function gy(t,r,i){return typeof t=="number"&&typeof r=="number"&&typeof i=="number"?Fe(t,r,i):pd(t)(t,r)}const K1=t=>{const r=({timestamp:i})=>t(i);return{start:(i=!0)=>_e.update(r,i),stop:()=>Jn(r),now:()=>ot.isProcessing?ot.timestamp:Ct.now()}},yy=(t,r,i=10)=>{let s="";const l=Math.max(Math.round(r/i),2);for(let u=0;u<l;u++)s+=Math.round(t(u/(l-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Ca=2e4;function hd(t){let r=0;const i=50;let s=t.next(r);for(;!s.done&&r<Ca;)r+=i,s=t.next(r);return r>=Ca?1/0:r}function G1(t,r=100,i){const s=i({...t,keyframes:[0,r]}),l=Math.min(hd(s),Ca);return{type:"keyframes",ease:u=>s.next(l*u).value/r,duration:Ht(l)}}const Y1=5;function vy(t,r,i){const s=Math.max(r-Y1,0);return qg(i-t(s),r-s)}const He={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Gc=.001;function X1({duration:t=He.duration,bounce:r=He.bounce,velocity:i=He.velocity,mass:s=He.mass}){let l,u,c=1-r;c=Nn(He.minDamping,He.maxDamping,c),t=Nn(He.minDuration,He.maxDuration,Ht(t)),c<1?(l=g=>{const y=g*c,v=y*t,w=y-i,b=yu(g,c),T=Math.exp(-v);return Gc-w/b*T},u=g=>{const v=g*c*t,w=v*i+i,b=Math.pow(c,2)*Math.pow(g,2)*t,T=Math.exp(-v),k=yu(Math.pow(g,2),c);return(-l(g)+Gc>0?-1:1)*((w-b)*T)/k}):(l=g=>{const y=Math.exp(-g*t),v=(g-i)*t+1;return-Gc+y*v},u=g=>{const y=Math.exp(-g*t),v=(i-g)*(t*t);return y*v});const p=5/t,m=q1(l,u,p);if(t=un(t),isNaN(m))return{stiffness:He.stiffness,damping:He.damping,duration:t};{const g=Math.pow(m,2)*s;return{stiffness:g,damping:c*2*Math.sqrt(s*g),duration:t}}}const Q1=12;function q1(t,r,i){let s=i;for(let l=1;l<Q1;l++)s=s-t(s)/r(s);return s}function yu(t,r){return t*Math.sqrt(1-r*r)}const Z1=["duration","bounce"],J1=["stiffness","damping","mass"];function Jh(t,r){return r.some(i=>t[i]!==void 0)}function eS(t){let r={velocity:He.velocity,stiffness:He.stiffness,damping:He.damping,mass:He.mass,isResolvedFromDuration:!1,...t};if(!Jh(t,J1)&&Jh(t,Z1))if(t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),l=s*s,u=2*Nn(.05,1,1-(t.bounce||0))*Math.sqrt(l);r={...r,mass:He.mass,stiffness:l,damping:u}}else{const i=X1(t);r={...r,...i,mass:He.mass},r.isResolvedFromDuration=!0}return r}function Na(t=He.visualDuration,r=He.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:r}:t;let{restSpeed:s,restDelta:l}=i;const u=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],p={done:!1,value:u},{stiffness:m,damping:g,mass:y,duration:v,velocity:w,isResolvedFromDuration:b}=eS({...i,velocity:-Ht(i.velocity||0)}),T=w||0,k=g/(2*Math.sqrt(m*y)),N=c-u,P=Ht(Math.sqrt(m/y)),A=Math.abs(N)<5;s||(s=A?He.restSpeed.granular:He.restSpeed.default),l||(l=A?He.restDelta.granular:He.restDelta.default);let M;if(k<1){const V=yu(P,k);M=U=>{const z=Math.exp(-k*P*U);return c-z*((T+k*P*N)/V*Math.sin(V*U)+N*Math.cos(V*U))}}else if(k===1)M=V=>c-Math.exp(-P*V)*(N+(T+P*N)*V);else{const V=P*Math.sqrt(k*k-1);M=U=>{const z=Math.exp(-k*P*U),F=Math.min(V*U,300);return c-z*((T+k*P*N)*Math.sinh(F)+V*N*Math.cosh(F))/V}}const O={calculatedDuration:b&&v||null,next:V=>{const U=M(V);if(b)p.done=V>=v;else{let z=V===0?T:0;k<1&&(z=V===0?un(T):vy(M,V,U));const F=Math.abs(z)<=s,J=Math.abs(c-U)<=l;p.done=F&&J}return p.value=p.done?c:U,p},toString:()=>{const V=Math.min(hd(O),Ca),U=yy(z=>O.next(V*z).value,V,30);return V+"ms "+U},toTransition:()=>{}};return O}Na.applyToOptions=t=>{const r=G1(t,100,Na);return t.ease=r.ease,t.duration=un(r.duration),t.type="keyframes",t};function vu({keyframes:t,velocity:r=0,power:i=.8,timeConstant:s=325,bounceDamping:l=10,bounceStiffness:u=500,modifyTarget:c,min:p,max:m,restDelta:g=.5,restSpeed:y}){const v=t[0],w={done:!1,value:v},b=F=>p!==void 0&&F<p||m!==void 0&&F>m,T=F=>p===void 0?m:m===void 0||Math.abs(p-F)<Math.abs(m-F)?p:m;let k=i*r;const N=v+k,P=c===void 0?N:c(N);P!==N&&(k=P-v);const A=F=>-k*Math.exp(-F/s),M=F=>P+A(F),O=F=>{const J=A(F),ce=M(F);w.done=Math.abs(J)<=g,w.value=w.done?P:ce};let V,U;const z=F=>{b(w.value)&&(V=F,U=Na({keyframes:[w.value,T(w.value)],velocity:vy(M,F,w.value),damping:l,stiffness:u,restDelta:g,restSpeed:y}))};return z(0),{calculatedDuration:null,next:F=>{let J=!1;return!U&&V===void 0&&(J=!0,O(F),z(F)),V!==void 0&&F>=V?U.next(F-V):(!J&&O(F),w)}}}function tS(t,r,i){const s=[],l=i||Tn.mix||gy,u=t.length-1;for(let c=0;c<u;c++){let p=l(t[c],t[c+1]);if(r){const m=Array.isArray(r)?r[c]||Ut:r;p=Uo(m,p)}s.push(p)}return s}function nS(t,r,{clamp:i=!0,ease:s,mixer:l}={}){const u=t.length;if(id(u===r.length),u===1)return()=>r[0];if(u===2&&r[0]===r[1])return()=>r[1];const c=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),r=[...r].reverse());const p=tS(r,s,l),m=p.length,g=y=>{if(c&&y<t[0])return r[0];let v=0;if(m>1)for(;v<t.length-2&&!(y<t[v+1]);v++);const w=Io(t[v],t[v+1],y);return p[v](w)};return i?y=>g(Nn(t[0],t[u-1],y)):g}function rS(t,r){const i=t[t.length-1];for(let s=1;s<=r;s++){const l=Io(0,r,s);t.push(Fe(i,1,l))}}function iS(t){const r=[0];return rS(r,t.length-1),r}function oS(t,r){return t.map(i=>i*r)}function sS(t,r){return t.map(()=>r||sy).splice(0,t.length-1)}function Eo({duration:t=300,keyframes:r,times:i,ease:s="easeInOut"}){const l=y1(s)?s.map(Yh):Yh(s),u={done:!1,value:r[0]},c=oS(i&&i.length===r.length?i:iS(r),t),p=nS(c,r,{ease:Array.isArray(l)?l:sS(r,l)});return{calculatedDuration:t,next:m=>(u.value=p(m),u.done=m>=t,u)}}const aS=t=>t!==null;function md(t,{repeat:r,repeatType:i="loop"},s,l=1){const u=t.filter(aS),p=l<0||r&&i!=="loop"&&r%2===1?0:u.length-1;return!p||s===void 0?u[p]:s}const lS={decay:vu,inertia:vu,tween:Eo,keyframes:Eo,spring:Na};function xy(t){typeof t.type=="string"&&(t.type=lS[t.type])}class gd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,i){return this.finished.then(r,i)}}const cS=t=>t/100;class yd extends gd{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==Ct.now()&&this.tick(Ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;xy(r);const{type:i=Eo,repeat:s=0,repeatDelay:l=0,repeatType:u,velocity:c=0}=r;let{keyframes:p}=r;const m=i||Eo;m!==Eo&&typeof p[0]!="number"&&(this.mixKeyframes=Uo(cS,gy(p[0],p[1])),p=[0,100]);const g=m({...r,keyframes:p});u==="mirror"&&(this.mirroredGenerator=m({...r,keyframes:[...p].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=hd(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+l,this.totalDuration=this.resolvedDuration*(s+1)-l,this.generator=g}updateTime(r){const i=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(r,i=!1){const{generator:s,totalDuration:l,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:p,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:g=0,keyframes:y,repeat:v,repeatType:w,repeatDelay:b,type:T,onUpdate:k,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-l/this.speed,this.startTime)),i?this.currentTime=r:this.updateTime(r);const P=this.currentTime-g*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?P<0:P>l;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let M=this.currentTime,O=s;if(v){const F=Math.min(this.currentTime,l)/p;let J=Math.floor(F),ce=F%1;!ce&&F>=1&&(ce=1),ce===1&&J--,J=Math.min(J,v+1),!!(J%2)&&(w==="reverse"?(ce=1-ce,b&&(ce-=b/p)):w==="mirror"&&(O=c)),M=Nn(0,1,ce)*p}const V=A?{done:!1,value:y[0]}:O.next(M);u&&(V.value=u(V.value));let{done:U}=V;!A&&m!==null&&(U=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return z&&T!==vu&&(V.value=md(y,this.options,N,this.speed)),k&&k(V.value),z&&this.finish(),V}then(r,i){return this.finished.then(r,i)}get duration(){return Ht(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Ht(r)}get time(){return Ht(this.currentTime)}set time(r){r=un(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(Ct.now());const i=this.playbackSpeed!==r;this.playbackSpeed=r,i&&(this.time=Ht(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=K1,startTime:i}=this.options;this.driver||(this.driver=r(l=>this.tick(l))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ct.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function uS(t){for(let r=1;r<t.length;r++)t[r]??(t[r]=t[r-1])}const Nr=t=>t*180/Math.PI,xu=t=>{const r=Nr(Math.atan2(t[1],t[0]));return wu(r)},dS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:xu,rotateZ:xu,skewX:t=>Nr(Math.atan(t[1])),skewY:t=>Nr(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},wu=t=>(t=t%360,t<0&&(t+=360),t),em=xu,tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),nm=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),fS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:nm,scale:t=>(tm(t)+nm(t))/2,rotateX:t=>wu(Nr(Math.atan2(t[6],t[5]))),rotateY:t=>wu(Nr(Math.atan2(-t[2],t[0]))),rotateZ:em,rotate:em,skewX:t=>Nr(Math.atan(t[4])),skewY:t=>Nr(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Su(t){return t.includes("scale")?1:0}function ku(t,r){if(!t||t==="none")return Su(r);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,l;if(i)s=fS,l=i;else{const p=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=dS,l=p}if(!l)return Su(r);const u=s[r],c=l[1].split(",").map(hS);return typeof u=="function"?u(c):c[u]}const pS=(t,r)=>{const{transform:i="none"}=getComputedStyle(t);return ku(i,r)};function hS(t){return parseFloat(t.trim())}const Ci=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ni=new Set(Ci),rm=t=>t===bi||t===he,mS=new Set(["x","y","z"]),gS=Ci.filter(t=>!mS.has(t));function yS(t){const r=[];return gS.forEach(i=>{const s=t.getValue(i);s!==void 0&&(r.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),r}const Tr={width:({x:t},{paddingLeft:r="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(r)-parseFloat(i),height:({y:t},{paddingTop:r="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(r)-parseFloat(i),top:(t,{top:r})=>parseFloat(r),left:(t,{left:r})=>parseFloat(r),bottom:({y:t},{top:r})=>parseFloat(r)+(t.max-t.min),right:({x:t},{left:r})=>parseFloat(r)+(t.max-t.min),x:(t,{transform:r})=>ku(r,"x"),y:(t,{transform:r})=>ku(r,"y")};Tr.translateX=Tr.x;Tr.translateY=Tr.y;const jr=new Set;let bu=!1,Cu=!1,Nu=!1;function wy(){if(Cu){const t=Array.from(jr).filter(s=>s.needsMeasurement),r=new Set(t.map(s=>s.element)),i=new Map;r.forEach(s=>{const l=yS(s);l.length&&(i.set(s,l),s.render())}),t.forEach(s=>s.measureInitialState()),r.forEach(s=>{s.render();const l=i.get(s);l&&l.forEach(([u,c])=>{s.getValue(u)?.set(c)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Cu=!1,bu=!1,jr.forEach(t=>t.complete(Nu)),jr.clear()}function Sy(){jr.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Cu=!0)})}function vS(){Nu=!0,Sy(),wy(),Nu=!1}class vd{constructor(r,i,s,l,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=i,this.name=s,this.motionValue=l,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(jr.add(this),bu||(bu=!0,_e.read(Sy),_e.resolveKeyframes(wy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:i,element:s,motionValue:l}=this;if(r[0]===null){const u=l?.get(),c=r[r.length-1];if(u!==void 0)r[0]=u;else if(s&&i){const p=s.readValue(i,c);p!=null&&(r[0]=p)}r[0]===void 0&&(r[0]=c),l&&u===void 0&&l.set(r[0])}uS(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),jr.delete(this)}cancel(){this.state==="scheduled"&&(jr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const xS=t=>t.startsWith("--");function wS(t,r,i){xS(r)?t.style.setProperty(r,i):t.style[r]=i}const SS=od(()=>window.ScrollTimeline!==void 0),kS={};function bS(t,r){const i=od(t);return()=>kS[r]??i()}const ky=bS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ko=([t,r,i,s])=>`cubic-bezier(${t}, ${r}, ${i}, ${s})`,im={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ko([0,.65,.55,1]),circOut:ko([.55,0,1,.45]),backIn:ko([.31,.01,.66,-.59]),backOut:ko([.33,1.53,.69,.99])};function by(t,r){if(t)return typeof t=="function"?ky()?yy(t,r):"ease-out":ay(t)?ko(t):Array.isArray(t)?t.map(i=>by(i,r)||im.easeOut):im[t]}function CS(t,r,i,{delay:s=0,duration:l=300,repeat:u=0,repeatType:c="loop",ease:p="easeOut",times:m}={},g=void 0){const y={[r]:i};m&&(y.offset=m);const v=by(p,l);Array.isArray(v)&&(y.easing=v);const w={delay:s,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return g&&(w.pseudoElement=g),t.animate(y,w)}function Cy(t){return typeof t=="function"&&"applyToOptions"in t}function NS({type:t,...r}){return Cy(t)&&ky()?t.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class TS extends gd{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:i,name:s,keyframes:l,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:p,onComplete:m}=r;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=r,id(typeof r.type!="string");const g=NS(r);this.animation=CS(i,s,l,g,u),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const y=md(l,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(y):wS(i,s,y),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return Ht(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Ht(r)}get time(){return Ht(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=un(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&SS()?(this.animation.timeline=r,Ut):i(this)}}const Ny={anticipate:ry,backInOut:ny,circInOut:oy};function jS(t){return t in Ny}function PS(t){typeof t.ease=="string"&&jS(t.ease)&&(t.ease=Ny[t.ease])}const om=10;class ES extends TS{constructor(r){PS(r),xy(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:i,onUpdate:s,onComplete:l,element:u,...c}=this.options;if(!i)return;if(r!==void 0){i.set(r);return}const p=new yd({...c,autoplay:!1}),m=un(this.finishedTime??this.time);i.setWithVelocity(p.sample(m-om).value,p.sample(m).value,om),p.stop()}}const sm=(t,r)=>r==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(er.test(t)||t==="0")&&!t.startsWith("url("));function AS(t){const r=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==r)return!0}function RS(t,r,i,s){const l=t[0];if(l===null)return!1;if(r==="display"||r==="visibility")return!0;const u=t[t.length-1],c=sm(l,r),p=sm(u,r);return!c||!p?!1:AS(t)||(i==="spring"||Cy(i))&&s}function Tu(t){t.duration=0,t.type="keyframes"}const MS=new Set(["opacity","clipPath","filter","transform"]),IS=od(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function DS(t){const{motionValue:r,name:i,repeatDelay:s,repeatType:l,damping:u,type:c}=t;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=r.owner.getProps();return IS()&&i&&MS.has(i)&&(i!=="transform"||!g)&&!m&&!s&&l!=="mirror"&&u!==0&&c!=="inertia"}const LS=40;class _S extends gd{constructor({autoplay:r=!0,delay:i=0,type:s="keyframes",repeat:l=0,repeatDelay:u=0,repeatType:c="loop",keyframes:p,name:m,motionValue:g,element:y,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ct.now();const w={autoplay:r,delay:i,type:s,repeat:l,repeatDelay:u,repeatType:c,name:m,motionValue:g,element:y,...v},b=y?.KeyframeResolver||vd;this.keyframeResolver=new b(p,(T,k,N)=>this.onKeyframesResolved(T,k,w,!N),m,g,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,i,s,l){this.keyframeResolver=void 0;const{name:u,type:c,velocity:p,delay:m,isHandoff:g,onUpdate:y}=s;this.resolvedAt=Ct.now(),RS(r,u,c,p)||((Tn.instantAnimations||!m)&&y?.(md(r,s,i)),r[0]=r[r.length-1],Tu(s),s.repeat=0);const w={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>LS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:r},b=!g&&DS(w)?new ES({...w,element:w.motionValue.owner.current}):new yd(w);b.finished.then(()=>this.notifyFinished()).catch(Ut),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(r,i){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),vS()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const OS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function VS(t){const r=OS.exec(t);if(!r)return[,];const[,i,s,l]=r;return[`--${i??s}`,l]}function Ty(t,r,i=1){const[s,l]=VS(t);if(!s)return;const u=window.getComputedStyle(r).getPropertyValue(s);if(u){const c=u.trim();return Yg(c)?parseFloat(c):c}return ud(l)?Ty(l,r,i+1):l}function xd(t,r){return t?.[r]??t?.default??t}const jy=new Set(["width","height","top","left","right","bottom",...Ci]),FS={test:t=>t==="auto",parse:t=>t},Py=t=>r=>r.test(t),Ey=[bi,he,dn,Qn,A1,E1,FS],am=t=>Ey.find(Py(t));function zS(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Qg(t):!0}const BS=new Set(["brightness","contrast","saturate","opacity"]);function HS(t){const[r,i]=t.slice(0,-1).split("(");if(r==="drop-shadow")return t;const[s]=i.match(dd)||[];if(!s)return t;const l=i.replace(s,"");let u=BS.has(r)?1:0;return s!==i&&(u*=100),r+"("+u+l+")"}const US=/\b([a-z-]*)\(.*?\)/gu,ju={...er,getAnimatableNone:t=>{const r=t.match(US);return r?r.map(HS).join(" "):t}},lm={...bi,transform:Math.round},WS={rotate:Qn,rotateX:Qn,rotateY:Qn,rotateZ:Qn,scale:oa,scaleX:oa,scaleY:oa,scaleZ:oa,skew:Qn,skewX:Qn,skewY:Qn,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Do,originX:Xh,originY:Xh,originZ:he},wd={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,radius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,backgroundPositionX:he,backgroundPositionY:he,...WS,zIndex:lm,fillOpacity:Do,strokeOpacity:Do,numOctaves:lm},$S={...wd,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:ju,WebkitFilter:ju},Ay=t=>$S[t];function Ry(t,r){let i=Ay(t);return i!==ju&&(i=er),i.getAnimatableNone?i.getAnimatableNone(r):void 0}const KS=new Set(["auto","none","0"]);function GS(t,r,i){let s=0,l;for(;s<t.length&&!l;){const u=t[s];typeof u=="string"&&!KS.has(u)&&Lo(u).values.length&&(l=t[s]),s++}if(l&&i)for(const u of r)t[u]=Ry(i,l)}class YS extends vd{constructor(r,i,s,l,u){super(r,i,s,l,u,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let m=0;m<r.length;m++){let g=r[m];if(typeof g=="string"&&(g=g.trim(),ud(g))){const y=Ty(g,i.current);y!==void 0&&(r[m]=y),m===r.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!jy.has(s)||r.length!==2)return;const[l,u]=r,c=am(l),p=am(u);if(c!==p)if(rm(c)&&rm(p))for(let m=0;m<r.length;m++){const g=r[m];typeof g=="string"&&(r[m]=parseFloat(g))}else Tr[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:i}=this,s=[];for(let l=0;l<r.length;l++)(r[l]===null||zS(r[l]))&&s.push(l);s.length&&GS(r,s,i)}measureInitialState(){const{element:r,unresolvedKeyframes:i,name:s}=this;if(!r||!r.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Tr[s](r.measureViewportBox(),window.getComputedStyle(r.current)),i[0]=this.measuredOrigin;const l=i[i.length-1];l!==void 0&&r.getValue(s,l).jump(l,!1)}measureEndState(){const{element:r,name:i,unresolvedKeyframes:s}=this;if(!r||!r.current)return;const l=r.getValue(i);l&&l.jump(this.measuredOrigin,!1);const u=s.length-1,c=s[u];s[u]=Tr[i](r.measureViewportBox(),window.getComputedStyle(r.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,m])=>{r.getValue(p).set(m)}),this.resolveNoneKeyframes()}}function XS(t,r,i){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const l=i?.[t]??s.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}const My=(t,r)=>r&&typeof t=="number"?r.transform(t):t;function Iy(t){return Xg(t)&&"offsetHeight"in t}const cm=30,QS=t=>!isNaN(parseFloat(t));class qS{constructor(r,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const l=Ct.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=i.owner}setCurrent(r){this.current=r,this.updatedAt=Ct.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=QS(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,i){this.events[r]||(this.events[r]=new sd);const s=this.events[r].add(i);return r==="change"?()=>{s(),_e.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,i){this.passiveEffect=r,this.stopPassiveEffect=i}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-s}jump(r,i=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=Ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>cm)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,cm);return qg(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(r){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=r(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wi(t,r){return new qS(t,r)}const{schedule:Sd}=ly(queueMicrotask,!1),Zt={x:!1,y:!1};function Dy(){return Zt.x||Zt.y}function ZS(t){return t==="x"||t==="y"?Zt[t]?null:(Zt[t]=!0,()=>{Zt[t]=!1}):Zt.x||Zt.y?null:(Zt.x=Zt.y=!0,()=>{Zt.x=Zt.y=!1})}function Ly(t,r){const i=XS(t),s=new AbortController,l={passive:!0,...r,signal:s.signal};return[i,l,()=>s.abort()]}function um(t){return!(t.pointerType==="touch"||Dy())}function JS(t,r,i={}){const[s,l,u]=Ly(t,i),c=p=>{if(!um(p))return;const{target:m}=p,g=r(m,p);if(typeof g!="function"||!m)return;const y=v=>{um(v)&&(g(v),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,l)};return s.forEach(p=>{p.addEventListener("pointerenter",c,l)}),u}const _y=(t,r)=>r?t===r?!0:_y(t,r.parentElement):!1,kd=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ek=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tk(t){return ek.has(t.tagName)||t.tabIndex!==-1}const ya=new WeakSet;function dm(t){return r=>{r.key==="Enter"&&t(r)}}function Yc(t,r){t.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const nk=(t,r)=>{const i=t.currentTarget;if(!i)return;const s=dm(()=>{if(ya.has(i))return;Yc(i,"down");const l=dm(()=>{Yc(i,"up")}),u=()=>Yc(i,"cancel");i.addEventListener("keyup",l,r),i.addEventListener("blur",u,r)});i.addEventListener("keydown",s,r),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),r)};function fm(t){return kd(t)&&!Dy()}function rk(t,r,i={}){const[s,l,u]=Ly(t,i),c=p=>{const m=p.currentTarget;if(!fm(p))return;ya.add(m);const g=r(m,p),y=(b,T)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",w),ya.has(m)&&ya.delete(m),fm(b)&&typeof g=="function"&&g(b,{success:T})},v=b=>{y(b,m===window||m===document||i.useGlobalTarget||_y(m,b.target))},w=b=>{y(b,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",w,l)};return s.forEach(p=>{(i.useGlobalTarget?window:p).addEventListener("pointerdown",c,l),Iy(p)&&(p.addEventListener("focus",g=>nk(g,l)),!tk(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),u}function Oy(t){return Xg(t)&&"ownerSVGElement"in t}function ik(t){return Oy(t)&&t.tagName==="svg"}const dt=t=>!!(t&&t.getVelocity),ok=[...Ey,Ye,er],sk=t=>ok.find(Py(t)),bd=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function pm(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function ak(...t){return r=>{let i=!1;const s=t.map(l=>{const u=pm(l,r);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let l=0;l<s.length;l++){const u=s[l];typeof u=="function"?u():pm(t[l],null)}}}}function lk(...t){return S.useCallback(ak(...t),t)}class ck extends S.Component{getSnapshotBeforeUpdate(r){const i=this.props.childRef.current;if(i&&r.isPresent&&!this.props.isPresent){const s=i.offsetParent,l=Iy(s)&&s.offsetWidth||0,u=this.props.sizeRef.current;u.height=i.offsetHeight||0,u.width=i.offsetWidth||0,u.top=i.offsetTop,u.left=i.offsetLeft,u.right=l-u.width-u.left}return null}componentDidUpdate(){}render(){return this.props.children}}function uk({children:t,isPresent:r,anchorX:i,root:s}){const l=S.useId(),u=S.useRef(null),c=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=S.useContext(bd),m=lk(u,t?.ref);return S.useInsertionEffect(()=>{const{width:g,height:y,top:v,left:w,right:b}=c.current;if(r||!u.current||!g||!y)return;const T=i==="left"?`left: ${w}`:`right: ${b}`;u.current.dataset.motionPopId=l;const k=document.createElement("style");p&&(k.nonce=p);const N=s??document.head;return N.appendChild(k),k.sheet&&k.sheet.insertRule(`
|
||
[data-motion-pop-id="${l}"] {
|
||
position: absolute !important;
|
||
width: ${g}px !important;
|
||
height: ${y}px !important;
|
||
${T}px !important;
|
||
top: ${v}px !important;
|
||
}
|
||
`),()=>{N.contains(k)&&N.removeChild(k)}},[r]),f.jsx(ck,{isPresent:r,childRef:u,sizeRef:c,children:S.cloneElement(t,{ref:m})})}const dk=({children:t,initial:r,isPresent:i,onExitComplete:s,custom:l,presenceAffectsLayout:u,mode:c,anchorX:p,root:m})=>{const g=ed(fk),y=S.useId();let v=!0,w=S.useMemo(()=>(v=!1,{id:y,initial:r,isPresent:i,custom:l,onExitComplete:b=>{g.set(b,!0);for(const T of g.values())if(!T)return;s&&s()},register:b=>(g.set(b,!1),()=>g.delete(b))}),[i,g,s]);return u&&v&&(w={...w}),S.useMemo(()=>{g.forEach((b,T)=>g.set(T,!1))},[i]),S.useEffect(()=>{!i&&!g.size&&s&&s()},[i]),c==="popLayout"&&(t=f.jsx(uk,{isPresent:i,anchorX:p,root:m,children:t})),f.jsx(Ia.Provider,{value:w,children:t})};function fk(){return new Map}function Vy(t=!0){const r=S.useContext(Ia);if(r===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:l}=r,u=S.useId();S.useEffect(()=>{if(t)return l(u)},[t]);const c=S.useCallback(()=>t&&s&&s(u),[u,s,t]);return!i&&s?[!1,c]:[!0]}const sa=t=>t.key||"";function hm(t){const r=[];return S.Children.forEach(t,i=>{S.isValidElement(i)&&r.push(i)}),r}const Pu=({children:t,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:u="sync",propagate:c=!1,anchorX:p="left",root:m})=>{const[g,y]=Vy(c),v=S.useMemo(()=>hm(t),[t]),w=c&&!g?[]:v.map(sa),b=S.useRef(!0),T=S.useRef(v),k=ed(()=>new Map),[N,P]=S.useState(v),[A,M]=S.useState(v);Gg(()=>{b.current=!1,T.current=v;for(let U=0;U<A.length;U++){const z=sa(A[U]);w.includes(z)?k.delete(z):k.get(z)!==!0&&k.set(z,!1)}},[A,w.length,w.join("-")]);const O=[];if(v!==N){let U=[...v];for(let z=0;z<A.length;z++){const F=A[z],J=sa(F);w.includes(J)||(U.splice(z,0,F),O.push(F))}return u==="wait"&&O.length&&(U=O),M(hm(U)),P(v),null}const{forceRender:V}=S.useContext(Ju);return f.jsx(f.Fragment,{children:A.map(U=>{const z=sa(U),F=c&&!g?!1:v===A||w.includes(z),J=()=>{if(k.has(z))k.set(z,!0);else return;let ce=!0;k.forEach(ye=>{ye||(ce=!1)}),ce&&(V?.(),M(T.current),c&&y?.(),s&&s())};return f.jsx(dk,{isPresent:F,initial:!b.current||i?void 0:!1,custom:r,presenceAffectsLayout:l,mode:u,root:m,onExitComplete:F?void 0:J,anchorX:p,children:U},z)})})},Fy=S.createContext({strict:!1}),mm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Si={};for(const t in mm)Si[t]={isEnabled:r=>mm[t].some(i=>!!r[i])};function pk(t){for(const r in t)Si[r]={...Si[r],...t[r]}}const hk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ta(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||hk.has(t)}let zy=t=>!Ta(t);function mk(t){typeof t=="function"&&(zy=r=>r.startsWith("on")?!Ta(r):t(r))}try{mk(require("@emotion/is-prop-valid").default)}catch{}function gk(t,r,i){const s={};for(const l in t)l==="values"&&typeof t.values=="object"||(zy(l)||i===!0&&Ta(l)||!r&&!Ta(l)||t.draggable&&l.startsWith("onDrag"))&&(s[l]=t[l]);return s}const Da=S.createContext({});function La(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function _o(t){return typeof t=="string"||Array.isArray(t)}const Cd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nd=["initial",...Cd];function _a(t){return La(t.animate)||Nd.some(r=>_o(t[r]))}function By(t){return!!(_a(t)||t.variants)}function yk(t,r){if(_a(t)){const{initial:i,animate:s}=t;return{initial:i===!1||_o(i)?i:void 0,animate:_o(s)?s:void 0}}return t.inherit!==!1?r:{}}function vk(t){const{initial:r,animate:i}=yk(t,S.useContext(Da));return S.useMemo(()=>({initial:r,animate:i}),[gm(r),gm(i)])}function gm(t){return Array.isArray(t)?t.join(" "):t}const Oo={};function xk(t){for(const r in t)Oo[r]=t[r],cd(r)&&(Oo[r].isCSSVariable=!0)}function Hy(t,{layout:r,layoutId:i}){return Ni.has(t)||t.startsWith("origin")||(r||i!==void 0)&&(!!Oo[t]||t==="opacity")}const wk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sk=Ci.length;function kk(t,r,i){let s="",l=!0;for(let u=0;u<Sk;u++){const c=Ci[u],p=t[c];if(p===void 0)continue;let m=!0;if(typeof p=="number"?m=p===(c.startsWith("scale")?1:0):m=parseFloat(p)===0,!m||i){const g=My(p,wd[c]);if(!m){l=!1;const y=wk[c]||c;s+=`${y}(${g}) `}i&&(r[c]=g)}}return s=s.trim(),i?s=i(r,l?"":s):l&&(s="none"),s}function Td(t,r,i){const{style:s,vars:l,transformOrigin:u}=t;let c=!1,p=!1;for(const m in r){const g=r[m];if(Ni.has(m)){c=!0;continue}else if(cd(m)){l[m]=g;continue}else{const y=My(g,wd[m]);m.startsWith("origin")?(p=!0,u[m]=y):s[m]=y}}if(r.transform||(c||i?s.transform=kk(r,t.transform,i):s.transform&&(s.transform="none")),p){const{originX:m="50%",originY:g="50%",originZ:y=0}=u;s.transformOrigin=`${m} ${g} ${y}`}}const jd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uy(t,r,i){for(const s in r)!dt(r[s])&&!Hy(s,i)&&(t[s]=r[s])}function bk({transformTemplate:t},r){return S.useMemo(()=>{const i=jd();return Td(i,r,t),Object.assign({},i.vars,i.style)},[r])}function Ck(t,r){const i=t.style||{},s={};return Uy(s,i,t),Object.assign(s,bk(t,r)),s}function Nk(t,r){const i={},s=Ck(t,r);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const Tk={offset:"stroke-dashoffset",array:"stroke-dasharray"},jk={offset:"strokeDashoffset",array:"strokeDasharray"};function Pk(t,r,i=1,s=0,l=!0){t.pathLength=1;const u=l?Tk:jk;t[u.offset]=he.transform(-s);const c=he.transform(r),p=he.transform(i);t[u.array]=`${c} ${p}`}function Wy(t,{attrX:r,attrY:i,attrScale:s,pathLength:l,pathSpacing:u=1,pathOffset:c=0,...p},m,g,y){if(Td(t,p,g),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:w}=t;v.transform&&(w.transform=v.transform,delete v.transform),(w.transform||v.transformOrigin)&&(w.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),w.transform&&(w.transformBox=y?.transformBox??"fill-box",delete v.transformBox),r!==void 0&&(v.x=r),i!==void 0&&(v.y=i),s!==void 0&&(v.scale=s),l!==void 0&&Pk(v,l,u,c,!1)}const $y=()=>({...jd(),attrs:{}}),Ky=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ek(t,r,i,s){const l=S.useMemo(()=>{const u=$y();return Wy(u,r,Ky(s),t.transformTemplate,t.style),{...u.attrs,style:{...u.style}}},[r]);if(t.style){const u={};Uy(u,t.style,t),l.style={...u,...l.style}}return l}const Ak=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Pd(t){return typeof t!="string"||t.includes("-")?!1:!!(Ak.indexOf(t)>-1||/[A-Z]/u.test(t))}function Rk(t,r,i,{latestValues:s},l,u=!1){const p=(Pd(t)?Ek:Nk)(r,s,l,t),m=gk(r,typeof t=="string",u),g=t!==S.Fragment?{...m,...p,ref:i}:{},{children:y}=r,v=S.useMemo(()=>dt(y)?y.get():y,[y]);return S.createElement(t,{...g,children:v})}function ym(t){const r=[{},{}];return t?.values.forEach((i,s)=>{r[0][s]=i.get(),r[1][s]=i.getVelocity()}),r}function Ed(t,r,i,s){if(typeof r=="function"){const[l,u]=ym(s);r=r(i!==void 0?i:t.custom,l,u)}if(typeof r=="string"&&(r=t.variants&&t.variants[r]),typeof r=="function"){const[l,u]=ym(s);r=r(i!==void 0?i:t.custom,l,u)}return r}function va(t){return dt(t)?t.get():t}function Mk({scrapeMotionValuesFromProps:t,createRenderState:r},i,s,l){return{latestValues:Ik(i,s,l,t),renderState:r()}}function Ik(t,r,i,s){const l={},u=s(t,{});for(const w in u)l[w]=va(u[w]);let{initial:c,animate:p}=t;const m=_a(t),g=By(t);r&&g&&!m&&t.inherit!==!1&&(c===void 0&&(c=r.initial),p===void 0&&(p=r.animate));let y=i?i.initial===!1:!1;y=y||c===!1;const v=y?p:c;if(v&&typeof v!="boolean"&&!La(v)){const w=Array.isArray(v)?v:[v];for(let b=0;b<w.length;b++){const T=Ed(t,w[b]);if(T){const{transitionEnd:k,transition:N,...P}=T;for(const A in P){let M=P[A];if(Array.isArray(M)){const O=y?M.length-1:0;M=M[O]}M!==null&&(l[A]=M)}for(const A in k)l[A]=k[A]}}}return l}const Gy=t=>(r,i)=>{const s=S.useContext(Da),l=S.useContext(Ia),u=()=>Mk(t,r,s,l);return i?u():ed(u)};function Ad(t,r,i){const{style:s}=t,l={};for(const u in s)(dt(s[u])||r.style&&dt(r.style[u])||Hy(u,t)||i?.getValue(u)?.liveStyle!==void 0)&&(l[u]=s[u]);return l}const Dk=Gy({scrapeMotionValuesFromProps:Ad,createRenderState:jd});function Yy(t,r,i){const s=Ad(t,r,i);for(const l in t)if(dt(t[l])||dt(r[l])){const u=Ci.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;s[u]=t[l]}return s}const Lk=Gy({scrapeMotionValuesFromProps:Yy,createRenderState:$y}),_k=Symbol.for("motionComponentSymbol");function di(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ok(t,r,i){return S.useCallback(s=>{s&&t.onMount&&t.onMount(s),r&&(s?r.mount(s):r.unmount()),i&&(typeof i=="function"?i(s):di(i)&&(i.current=s))},[r])}const Rd=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vk="framerAppearId",Xy="data-"+Rd(Vk),Qy=S.createContext({});function Fk(t,r,i,s,l){const{visualElement:u}=S.useContext(Da),c=S.useContext(Fy),p=S.useContext(Ia),m=S.useContext(bd).reducedMotion,g=S.useRef(null);s=s||c.renderer,!g.current&&s&&(g.current=s(t,{visualState:r,parent:u,props:i,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:m}));const y=g.current,v=S.useContext(Qy);y&&!y.projection&&l&&(y.type==="html"||y.type==="svg")&&zk(g.current,i,l,v);const w=S.useRef(!1);S.useInsertionEffect(()=>{y&&w.current&&y.update(i,p)});const b=i[Xy],T=S.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return Gg(()=>{y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),T.current&&y.animationState&&y.animationState.animateChanges())}),S.useEffect(()=>{y&&(!T.current&&y.animationState&&y.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),T.current=!1),y.enteringChildren=void 0)}),y}function zk(t,r,i,s){const{layoutId:l,layout:u,drag:c,dragConstraints:p,layoutScroll:m,layoutRoot:g,layoutCrossfade:y}=r;t.projection=new i(t.latestValues,r["data-framer-portal-id"]?void 0:qy(t.parent)),t.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||p&&di(p),visualElement:t,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:y,layoutScroll:m,layoutRoot:g})}function qy(t){if(t)return t.options.allowProjection!==!1?t.projection:qy(t.parent)}function Xc(t,{forwardMotionProps:r=!1}={},i,s){i&&pk(i);const l=Pd(t)?Lk:Dk;function u(p,m){let g;const y={...S.useContext(bd),...p,layoutId:Bk(p)},{isStatic:v}=y,w=vk(p),b=l(p,v);if(!v&&td){Hk();const T=Uk(y);g=T.MeasureLayout,w.visualElement=Fk(t,b,y,s,T.ProjectionNode)}return f.jsxs(Da.Provider,{value:w,children:[g&&w.visualElement?f.jsx(g,{visualElement:w.visualElement,...y}):null,Rk(t,p,Ok(b,w.visualElement,m),b,v,r)]})}u.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=S.forwardRef(u);return c[_k]=t,c}function Bk({layoutId:t}){const r=S.useContext(Ju).id;return r&&t!==void 0?r+"-"+t:t}function Hk(t,r){S.useContext(Fy).strict}function Uk(t){const{drag:r,layout:i}=Si;if(!r&&!i)return{};const s={...r,...i};return{MeasureLayout:r?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Wk(t,r){if(typeof Proxy>"u")return Xc;const i=new Map,s=(u,c)=>Xc(u,c,t,r),l=(u,c)=>s(u,c);return new Proxy(l,{get:(u,c)=>c==="create"?s:(i.has(c)||i.set(c,Xc(c,void 0,t,r)),i.get(c))})}function Zy({top:t,left:r,right:i,bottom:s}){return{x:{min:r,max:i},y:{min:t,max:s}}}function $k({x:t,y:r}){return{top:r.min,right:t.max,bottom:r.max,left:t.min}}function Kk(t,r){if(!r)return t;const i=r({x:t.left,y:t.top}),s=r({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Qc(t){return t===void 0||t===1}function Eu({scale:t,scaleX:r,scaleY:i}){return!Qc(t)||!Qc(r)||!Qc(i)}function br(t){return Eu(t)||Jy(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Jy(t){return vm(t.x)||vm(t.y)}function vm(t){return t&&t!=="0%"}function ja(t,r,i){const s=t-i,l=r*s;return i+l}function xm(t,r,i,s,l){return l!==void 0&&(t=ja(t,l,s)),ja(t,i,s)+r}function Au(t,r=0,i=1,s,l){t.min=xm(t.min,r,i,s,l),t.max=xm(t.max,r,i,s,l)}function ev(t,{x:r,y:i}){Au(t.x,r.translate,r.scale,r.originPoint),Au(t.y,i.translate,i.scale,i.originPoint)}const wm=.999999999999,Sm=1.0000000000001;function Gk(t,r,i,s=!1){const l=i.length;if(!l)return;r.x=r.y=1;let u,c;for(let p=0;p<l;p++){u=i[p],c=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&pi(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(r.x*=c.x.scale,r.y*=c.y.scale,ev(t,c)),s&&br(u.latestValues)&&pi(t,u.latestValues))}r.x<Sm&&r.x>wm&&(r.x=1),r.y<Sm&&r.y>wm&&(r.y=1)}function fi(t,r){t.min=t.min+r,t.max=t.max+r}function km(t,r,i,s,l=.5){const u=Fe(t.min,t.max,l);Au(t,r,i,u,s)}function pi(t,r){km(t.x,r.x,r.scaleX,r.scale,r.originX),km(t.y,r.y,r.scaleY,r.scale,r.originY)}function tv(t,r){return Zy(Kk(t.getBoundingClientRect(),r))}function Yk(t,r,i){const s=tv(t,i),{scroll:l}=r;return l&&(fi(s.x,l.offset.x),fi(s.y,l.offset.y)),s}const bm=()=>({translate:0,scale:1,origin:0,originPoint:0}),hi=()=>({x:bm(),y:bm()}),Cm=()=>({min:0,max:0}),$e=()=>({x:Cm(),y:Cm()}),Ru={current:null},nv={current:!1};function Xk(){if(nv.current=!0,!!td)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),r=()=>Ru.current=t.matches;t.addEventListener("change",r),r()}else Ru.current=!1}const Qk=new WeakMap;function qk(t,r,i){for(const s in r){const l=r[s],u=i[s];if(dt(l))t.addValue(s,l);else if(dt(u))t.addValue(s,wi(l,{owner:t}));else if(u!==l)if(t.hasValue(s)){const c=t.getValue(s);c.liveStyle===!0?c.jump(l):c.hasAnimated||c.set(l)}else{const c=t.getStaticValue(s);t.addValue(s,wi(c!==void 0?c:l,{owner:t}))}}for(const s in i)r[s]===void 0&&t.removeValue(s);return r}const Nm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Zk{scrapeMotionValuesFromProps(r,i,s){return{}}constructor({parent:r,props:i,presenceContext:s,reducedMotionConfig:l,blockInitialAnimation:u,visualState:c},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Ct.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,_e.render(this.render,!1,!0))};const{latestValues:m,renderState:g}=c;this.latestValues=m,this.baseTarget={...m},this.initialValues=i.initial?{...m}:{},this.renderState=g,this.parent=r,this.props=i,this.presenceContext=s,this.depth=r?r.depth+1:0,this.reducedMotionConfig=l,this.options=p,this.blockInitialAnimation=!!u,this.isControllingVariants=_a(i),this.isVariantNode=By(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(i,{},this);for(const w in v){const b=v[w];m[w]!==void 0&&dt(b)&&b.set(m[w])}}mount(r){this.current=r,Qk.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),nv.current||Xk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ru.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Jn(this.notifyUpdate),Jn(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const i=this.features[r];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,i){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const s=Ni.has(r);s&&this.onBindTransform&&this.onBindTransform();const l=i.on("change",c=>{this.latestValues[r]=c,this.props.onUpdate&&_e.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,r,i)),this.valueSubscriptions.set(r,()=>{l(),u&&u(),i.owner&&i.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in Si){const i=Si[r];if(!i)continue;const{isEnabled:s,Feature:l}=i;if(!this.features[r]&&l&&s(this.props)&&(this.features[r]=new l(this)),this.features[r]){const u=this.features[r];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$e()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,i){this.latestValues[r]=i}update(r,i){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<Nm.length;s++){const l=Nm[s];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const u="on"+l,c=r[u];c&&(this.propEventSubscriptions[l]=this.on(l,c))}this.prevMotionValues=qk(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(r),()=>i.variantChildren.delete(r)}addValue(r,i){const s=this.values.get(r);i!==s&&(s&&this.removeValue(r),this.bindToMotionValue(r,i),this.values.set(r,i),this.latestValues[r]=i.get())}removeValue(r){this.values.delete(r);const i=this.valueSubscriptions.get(r);i&&(i(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,i){if(this.props.values&&this.props.values[r])return this.props.values[r];let s=this.values.get(r);return s===void 0&&i!==void 0&&(s=wi(i===null?void 0:i,{owner:this}),this.addValue(r,s)),s}readValue(r,i){let s=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return s!=null&&(typeof s=="string"&&(Yg(s)||Qg(s))?s=parseFloat(s):!sk(s)&&er.test(i)&&(s=Ry(r,i)),this.setBaseTarget(r,dt(s)?s.get():s)),dt(s)?s.get():s}setBaseTarget(r,i){this.baseTarget[r]=i}getBaseTarget(r){const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const u=Ed(this.props,i,this.presenceContext?.custom);u&&(s=u[r])}if(i&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,r);return l!==void 0&&!dt(l)?l:this.initialValues[r]!==void 0&&s===void 0?void 0:this.baseTarget[r]}on(r,i){return this.events[r]||(this.events[r]=new sd),this.events[r].add(i)}notify(r,...i){this.events[r]&&this.events[r].notify(...i)}scheduleRenderMicrotask(){Sd.render(this.render)}}class rv extends Zk{constructor(){super(...arguments),this.KeyframeResolver=YS}sortInstanceNodePosition(r,i){return r.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(r,i){return r.style?r.style[i]:void 0}removeValueFromRenderState(r,{vars:i,style:s}){delete i[r],delete s[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;dt(r)&&(this.childSubscription=r.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function iv(t,{style:r,vars:i},s,l){const u=t.style;let c;for(c in r)u[c]=r[c];l?.applyProjectionStyles(u,s);for(c in i)u.setProperty(c,i[c])}function Jk(t){return window.getComputedStyle(t)}class eb extends rv{constructor(){super(...arguments),this.type="html",this.renderInstance=iv}readValueFromInstance(r,i){if(Ni.has(i))return this.projection?.isProjecting?Su(i):pS(r,i);{const s=Jk(r),l=(cd(i)?s.getPropertyValue(i):s[i])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(r,{transformPagePoint:i}){return tv(r,i)}build(r,i,s){Td(r,i,s.transformTemplate)}scrapeMotionValuesFromProps(r,i,s){return Ad(r,i,s)}}const ov=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tb(t,r,i,s){iv(t,r,void 0,s);for(const l in r.attrs)t.setAttribute(ov.has(l)?l:Rd(l),r.attrs[l])}class nb extends rv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$e}getBaseTargetFromProps(r,i){return r[i]}readValueFromInstance(r,i){if(Ni.has(i)){const s=Ay(i);return s&&s.default||0}return i=ov.has(i)?i:Rd(i),r.getAttribute(i)}scrapeMotionValuesFromProps(r,i,s){return Yy(r,i,s)}build(r,i,s){Wy(r,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(r,i,s,l){tb(r,i,s,l)}mount(r){this.isSVGTag=Ky(r.tagName),super.mount(r)}}const rb=(t,r)=>Pd(t)?new nb(r):new eb(r,{allowProjection:t!==S.Fragment});function mi(t,r,i){const s=t.getProps();return Ed(s,r,i!==void 0?i:s.custom,t)}const Mu=t=>Array.isArray(t);function ib(t,r,i){t.hasValue(r)?t.getValue(r).set(i):t.addValue(r,wi(i))}function ob(t){return Mu(t)?t[t.length-1]||0:t}function sb(t,r){const i=mi(t,r);let{transitionEnd:s={},transition:l={},...u}=i||{};u={...u,...s};for(const c in u){const p=ob(u[c]);ib(t,c,p)}}function ab(t){return!!(dt(t)&&t.add)}function Iu(t,r){const i=t.getValue("willChange");if(ab(i))return i.add(r);if(!i&&Tn.WillChange){const s=new Tn.WillChange("auto");t.addValue("willChange",s),s.add(r)}}function sv(t){return t.props[Xy]}const lb=t=>t!==null;function cb(t,{repeat:r,repeatType:i="loop"},s){const l=t.filter(lb),u=r&&i!=="loop"&&r%2===1?0:l.length-1;return l[u]}const ub={type:"spring",stiffness:500,damping:25,restSpeed:10},db=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),fb={type:"keyframes",duration:.8},pb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hb=(t,{keyframes:r})=>r.length>2?fb:Ni.has(t)?t.startsWith("scale")?db(r[1]):ub:pb;function mb({when:t,delay:r,delayChildren:i,staggerChildren:s,staggerDirection:l,repeat:u,repeatType:c,repeatDelay:p,from:m,elapsed:g,...y}){return!!Object.keys(y).length}const Md=(t,r,i,s={},l,u)=>c=>{const p=xd(s,t)||{},m=p.delay||s.delay||0;let{elapsed:g=0}=s;g=g-un(m);const y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:r.getVelocity(),...p,delay:-g,onUpdate:w=>{r.set(w),p.onUpdate&&p.onUpdate(w)},onComplete:()=>{c(),p.onComplete&&p.onComplete()},name:t,motionValue:r,element:u?void 0:l};mb(p)||Object.assign(y,hb(t,y)),y.duration&&(y.duration=un(y.duration)),y.repeatDelay&&(y.repeatDelay=un(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Tu(y),y.delay===0&&(v=!0)),(Tn.instantAnimations||Tn.skipAnimations)&&(v=!0,Tu(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,v&&!u&&r.get()!==void 0){const w=cb(y.keyframes,p);if(w!==void 0){_e.update(()=>{y.onUpdate(w),y.onComplete()});return}}return p.isSync?new yd(y):new _S(y)};function gb({protectedKeys:t,needsAnimating:r},i){const s=t.hasOwnProperty(i)&&r[i]!==!0;return r[i]=!1,s}function av(t,r,{delay:i=0,transitionOverride:s,type:l}={}){let{transition:u=t.getDefaultTransition(),transitionEnd:c,...p}=r;s&&(u=s);const m=[],g=l&&t.animationState&&t.animationState.getState()[l];for(const y in p){const v=t.getValue(y,t.latestValues[y]??null),w=p[y];if(w===void 0||g&&gb(g,y))continue;const b={delay:i,...xd(u||{},y)},T=v.get();if(T!==void 0&&!v.isAnimating&&!Array.isArray(w)&&w===T&&!b.velocity)continue;let k=!1;if(window.MotionHandoffAnimation){const P=sv(t);if(P){const A=window.MotionHandoffAnimation(P,y,_e);A!==null&&(b.startTime=A,k=!0)}}Iu(t,y),v.start(Md(y,v,w,t.shouldReduceMotion&&jy.has(y)?{type:!1}:b,t,k));const N=v.animation;N&&m.push(N)}return c&&Promise.all(m).then(()=>{_e.update(()=>{c&&sb(t,c)})}),m}function lv(t,r,i,s=0,l=1){const u=Array.from(t).sort((g,y)=>g.sortNodePosition(y)).indexOf(r),c=t.size,p=(c-1)*s;return typeof i=="function"?i(u,c):l===1?u*s:p-u*s}function Du(t,r,i={}){const s=mi(t,r,i.type==="exit"?t.presenceContext?.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(l=i.transitionOverride);const u=s?()=>Promise.all(av(t,s,i)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:v}=l;return yb(t,r,m,g,y,v,i)}:()=>Promise.resolve(),{when:p}=l;if(p){const[m,g]=p==="beforeChildren"?[u,c]:[c,u];return m().then(()=>g())}else return Promise.all([u(),c(i.delay)])}function yb(t,r,i=0,s=0,l=0,u=1,c){const p=[];for(const m of t.variantChildren)m.notify("AnimationStart",r),p.push(Du(m,r,{...c,delay:i+(typeof s=="function"?0:s)+lv(t.variantChildren,m,s,l,u)}).then(()=>m.notify("AnimationComplete",r)));return Promise.all(p)}function vb(t,r,i={}){t.notify("AnimationStart",r);let s;if(Array.isArray(r)){const l=r.map(u=>Du(t,u,i));s=Promise.all(l)}else if(typeof r=="string")s=Du(t,r,i);else{const l=typeof r=="function"?mi(t,r,i.custom):r;s=Promise.all(av(t,l,i))}return s.then(()=>{t.notify("AnimationComplete",r)})}function cv(t,r){if(!Array.isArray(r))return!1;const i=r.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(r[s]!==t[s])return!1;return!0}const xb=Nd.length;function uv(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?uv(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const r={};for(let i=0;i<xb;i++){const s=Nd[i],l=t.props[s];(_o(l)||l===!1)&&(r[s]=l)}return r}const wb=[...Cd].reverse(),Sb=Cd.length;function kb(t){return r=>Promise.all(r.map(({animation:i,options:s})=>vb(t,i,s)))}function bb(t){let r=kb(t),i=Tm(),s=!0;const l=m=>(g,y)=>{const v=mi(t,y,m==="exit"?t.presenceContext?.custom:void 0);if(v){const{transition:w,transitionEnd:b,...T}=v;g={...g,...T,...b}}return g};function u(m){r=m(t)}function c(m){const{props:g}=t,y=uv(t.parent)||{},v=[],w=new Set;let b={},T=1/0;for(let N=0;N<Sb;N++){const P=wb[N],A=i[P],M=g[P]!==void 0?g[P]:y[P],O=_o(M),V=P===m?A.isActive:null;V===!1&&(T=N);let U=M===y[P]&&M!==g[P]&&O;if(U&&s&&t.manuallyAnimateOnMount&&(U=!1),A.protectedKeys={...b},!A.isActive&&V===null||!M&&!A.prevProp||La(M)||typeof M=="boolean")continue;const z=Cb(A.prevProp,M);let F=z||P===m&&A.isActive&&!U&&O||N>T&&O,J=!1;const ce=Array.isArray(M)?M:[M];let ye=ce.reduce(l(P),{});V===!1&&(ye={});const{prevResolvedValues:xe={}}=A,me={...xe,...ye},pe=q=>{F=!0,w.has(q)&&(J=!0,w.delete(q)),A.needsAnimating[q]=!0;const I=t.getValue(q);I&&(I.liveStyle=!1)};for(const q in me){const I=ye[q],Q=xe[q];if(b.hasOwnProperty(q))continue;let Y=!1;Mu(I)&&Mu(Q)?Y=!cv(I,Q):Y=I!==Q,Y?I!=null?pe(q):w.add(q):I!==void 0&&w.has(q)?pe(q):A.protectedKeys[q]=!0}A.prevProp=M,A.prevResolvedValues=ye,A.isActive&&(b={...b,...ye}),s&&t.blockInitialAnimation&&(F=!1);const we=U&&z;F&&(!we||J)&&v.push(...ce.map(q=>{const I={type:P};if(typeof q=="string"&&s&&!we&&t.manuallyAnimateOnMount&&t.parent){const{parent:Q}=t,Y=mi(Q,q);if(Q.enteringChildren&&Y){const{delayChildren:R}=Y.transition||{};I.delay=lv(Q.enteringChildren,t,R)}}return{animation:q,options:I}}))}if(w.size){const N={};if(typeof g.initial!="boolean"){const P=mi(t,Array.isArray(g.initial)?g.initial[0]:g.initial);P&&P.transition&&(N.transition=P.transition)}w.forEach(P=>{const A=t.getBaseTarget(P),M=t.getValue(P);M&&(M.liveStyle=!0),N[P]=A??null}),v.push({animation:N})}let k=!!v.length;return s&&(g.initial===!1||g.initial===g.animate)&&!t.manuallyAnimateOnMount&&(k=!1),s=!1,k?r(v):Promise.resolve()}function p(m,g){if(i[m].isActive===g)return Promise.resolve();t.variantChildren?.forEach(v=>v.animationState?.setActive(m,g)),i[m].isActive=g;const y=c(m);for(const v in i)i[v].protectedKeys={};return y}return{animateChanges:c,setActive:p,setAnimateFunction:u,getState:()=>i,reset:()=>{i=Tm(),s=!0}}}function Cb(t,r){return typeof r=="string"?r!==t:Array.isArray(r)?!cv(r,t):!1}function Sr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tm(){return{animate:Sr(!0),whileInView:Sr(),whileHover:Sr(),whileTap:Sr(),whileDrag:Sr(),whileFocus:Sr(),exit:Sr()}}class ir{constructor(r){this.isMounted=!1,this.node=r}update(){}}class Nb extends ir{constructor(r){super(r),r.animationState||(r.animationState=bb(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();La(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:i}=this.node.prevProps||{};r!==i&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Tb=0;class jb extends ir{constructor(){super(...arguments),this.id=Tb++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===s)return;const l=this.node.animationState.setActive("exit",!r);i&&!r&&l.then(()=>{i(this.id)})}mount(){const{register:r,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const Pb={animation:{Feature:Nb},exit:{Feature:jb}};function Vo(t,r,i,s={passive:!0}){return t.addEventListener(r,i,s),()=>t.removeEventListener(r,i)}function Ko(t){return{point:{x:t.pageX,y:t.pageY}}}const Eb=t=>r=>kd(r)&&t(r,Ko(r));function Ao(t,r,i,s){return Vo(t,r,Eb(i),s)}const dv=1e-4,Ab=1-dv,Rb=1+dv,fv=.01,Mb=0-fv,Ib=0+fv;function gt(t){return t.max-t.min}function Db(t,r,i){return Math.abs(t-r)<=i}function jm(t,r,i,s=.5){t.origin=s,t.originPoint=Fe(r.min,r.max,t.origin),t.scale=gt(i)/gt(r),t.translate=Fe(i.min,i.max,t.origin)-t.originPoint,(t.scale>=Ab&&t.scale<=Rb||isNaN(t.scale))&&(t.scale=1),(t.translate>=Mb&&t.translate<=Ib||isNaN(t.translate))&&(t.translate=0)}function Ro(t,r,i,s){jm(t.x,r.x,i.x,s?s.originX:void 0),jm(t.y,r.y,i.y,s?s.originY:void 0)}function Pm(t,r,i){t.min=i.min+r.min,t.max=t.min+gt(r)}function Lb(t,r,i){Pm(t.x,r.x,i.x),Pm(t.y,r.y,i.y)}function Em(t,r,i){t.min=r.min-i.min,t.max=t.min+gt(r)}function Mo(t,r,i){Em(t.x,r.x,i.x),Em(t.y,r.y,i.y)}function Bt(t){return[t("x"),t("y")]}const pv=({current:t})=>t?t.ownerDocument.defaultView:null,Am=(t,r)=>Math.abs(t-r);function _b(t,r){const i=Am(t.x,r.x),s=Am(t.y,r.y);return Math.sqrt(i**2+s**2)}class hv{constructor(r,i,{transformPagePoint:s,contextWindow:l=window,dragSnapToOrigin:u=!1,distanceThreshold:c=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Zc(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,T=_b(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!T)return;const{point:k}=w,{timestamp:N}=ot;this.history.push({...k,timestamp:N});const{onStart:P,onMove:A}=this.handlers;b||(P&&P(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,w)},this.handlePointerMove=(w,b)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=qc(b,this.transformPagePoint),_e.update(this.updatePoint,!0)},this.handlePointerUp=(w,b)=>{this.end();const{onEnd:T,onSessionEnd:k,resumeAnimation:N}=this.handlers;if(this.dragSnapToOrigin&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Zc(w.type==="pointercancel"?this.lastMoveEventInfo:qc(b,this.transformPagePoint),this.history);this.startEvent&&T&&T(w,P),k&&k(w,P)},!kd(r))return;this.dragSnapToOrigin=u,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=l||window;const p=Ko(r),m=qc(p,this.transformPagePoint),{point:g}=m,{timestamp:y}=ot;this.history=[{...g,timestamp:y}];const{onSessionStart:v}=i;v&&v(r,Zc(m,this.history)),this.removeListeners=Uo(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),Jn(this.updatePoint)}}function qc(t,r){return r?{point:r(t.point)}:t}function Rm(t,r){return{x:t.x-r.x,y:t.y-r.y}}function Zc({point:t},r){return{point:t,delta:Rm(t,mv(r)),offset:Rm(t,Ob(r)),velocity:Vb(r,.1)}}function Ob(t){return t[0]}function mv(t){return t[t.length-1]}function Vb(t,r){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const l=mv(t);for(;i>=0&&(s=t[i],!(l.timestamp-s.timestamp>un(r)));)i--;if(!s)return{x:0,y:0};const u=Ht(l.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const c={x:(l.x-s.x)/u,y:(l.y-s.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Fb(t,{min:r,max:i},s){return r!==void 0&&t<r?t=s?Fe(r,t,s.min):Math.max(t,r):i!==void 0&&t>i&&(t=s?Fe(i,t,s.max):Math.min(t,i)),t}function Mm(t,r,i){return{min:r!==void 0?t.min+r:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function zb(t,{top:r,left:i,bottom:s,right:l}){return{x:Mm(t.x,i,l),y:Mm(t.y,r,s)}}function Im(t,r){let i=r.min-t.min,s=r.max-t.max;return r.max-r.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function Bb(t,r){return{x:Im(t.x,r.x),y:Im(t.y,r.y)}}function Hb(t,r){let i=.5;const s=gt(t),l=gt(r);return l>s?i=Io(r.min,r.max-s,t.min):s>l&&(i=Io(t.min,t.max-l,r.min)),Nn(0,1,i)}function Ub(t,r){const i={};return r.min!==void 0&&(i.min=r.min-t.min),r.max!==void 0&&(i.max=r.max-t.min),i}const Lu=.35;function Wb(t=Lu){return t===!1?t=0:t===!0&&(t=Lu),{x:Dm(t,"left","right"),y:Dm(t,"top","bottom")}}function Dm(t,r,i){return{min:Lm(t,r),max:Lm(t,i)}}function Lm(t,r){return typeof t=="number"?t:t[r]||0}const $b=new WeakMap;class Kb{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$e(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const u=v=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(Ko(v).point)},c=(v,w)=>{const{drag:b,dragPropagation:T,onDragStart:k}=this.getProps();if(b&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZS(b),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bt(P=>{let A=this.getAxisMotionValue(P).get()||0;if(dn.test(A)){const{projection:M}=this.visualElement;if(M&&M.layout){const O=M.layout.layoutBox[P];O&&(A=gt(O)*(parseFloat(A)/100))}}this.originPoint[P]=A}),k&&_e.postRender(()=>k(v,w)),Iu(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},p=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w;const{dragPropagation:b,dragDirectionLock:T,onDirectionLock:k,onDrag:N}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:P}=w;if(T&&this.currentDirection===null){this.currentDirection=Gb(P),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",w.point,P),this.updateAxis("y",w.point,P),this.visualElement.render(),N&&N(v,w)},m=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w,this.stop(v,w),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>Bt(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new hv(r,{onSessionStart:u,onStart:c,onMove:p,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:s,contextWindow:pv(this.visualElement)})}stop(r,i){const s=r||this.latestPointerEvent,l=i||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!l||!s)return;const{velocity:c}=l;this.startAnimation(c);const{onDragEnd:p}=this.getProps();p&&_e.postRender(()=>p(s,l))}cancel(){this.isDragging=!1;const{projection:r,animationState:i}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(r,i,s){const{drag:l}=this.getProps();if(!s||!aa(r,l,this.currentDirection))return;const u=this.getAxisMotionValue(r);let c=this.originPoint[r]+s[r];this.constraints&&this.constraints[r]&&(c=Fb(c,this.constraints[r],this.elastic[r])),u.set(c)}resolveConstraints(){const{dragConstraints:r,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;r&&di(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&s?this.constraints=zb(s.layoutBox,r):this.constraints=!1,this.elastic=Wb(i),l!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Bt(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=Ub(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:i}=this.getProps();if(!r||!di(r))return!1;const s=r.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const u=Yk(s,l.root,this.visualElement.getTransformPagePoint());let c=Bb(l.layout.layoutBox,u);if(i){const p=i($k(c));this.hasMutatedConstraints=!!p,p&&(c=Zy(p))}return c}startAnimation(r){const{drag:i,dragMomentum:s,dragElastic:l,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=Bt(y=>{if(!aa(y,i,this.currentDirection))return;let v=m&&m[y]||{};c&&(v={min:0,max:0});const w=l?200:1e6,b=l?40:1e7,T={type:"inertia",velocity:s?r[y]:0,bounceStiffness:w,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(y,T)});return Promise.all(g).then(p)}startAxisValueAnimation(r,i){const s=this.getAxisMotionValue(r);return Iu(this.visualElement,r),s.start(Md(r,s,0,i,this.visualElement,!1))}stopAnimation(){Bt(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){Bt(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const i=`_drag${r.toUpperCase()}`,s=this.visualElement.getProps(),l=s[i];return l||this.visualElement.getValue(r,(s.initial?s.initial[r]:void 0)||0)}snapToCursor(r){Bt(i=>{const{drag:s}=this.getProps();if(!aa(i,s,this.currentDirection))return;const{projection:l}=this.visualElement,u=this.getAxisMotionValue(i);if(l&&l.layout){const{min:c,max:p}=l.layout.layoutBox[i];u.set(r[i]-Fe(c,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!di(i)||!s||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};Bt(c=>{const p=this.getAxisMotionValue(c);if(p&&this.constraints!==!1){const m=p.get();l[c]=Hb({min:m,max:m},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Bt(c=>{if(!aa(c,r,null))return;const p=this.getAxisMotionValue(c),{min:m,max:g}=this.constraints[c];p.set(Fe(m,g,l[c]))})}addListeners(){if(!this.visualElement.current)return;$b.set(this.visualElement,this);const r=this.visualElement.current,i=Ao(r,"pointerdown",m=>{const{drag:g,dragListener:y=!0}=this.getProps();g&&y&&this.start(m)}),s=()=>{const{dragConstraints:m}=this.getProps();di(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,u=l.addEventListener("measure",s);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),_e.read(s);const c=Vo(window,"resize",()=>this.scalePositionWithinConstraints()),p=l.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(Bt(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=m[y].translate,v.set(v.get()+m[y].translate))}),this.visualElement.render())}));return()=>{c(),i(),u(),p&&p()}}getProps(){const r=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:l=!1,dragConstraints:u=!1,dragElastic:c=Lu,dragMomentum:p=!0}=r;return{...r,drag:i,dragDirectionLock:s,dragPropagation:l,dragConstraints:u,dragElastic:c,dragMomentum:p}}}function aa(t,r,i){return(r===!0||r===t)&&(i===null||i===t)}function Gb(t,r=10){let i=null;return Math.abs(t.y)>r?i="y":Math.abs(t.x)>r&&(i="x"),i}class Yb extends ir{constructor(r){super(r),this.removeGroupControls=Ut,this.removeListeners=Ut,this.controls=new Kb(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const _m=t=>(r,i)=>{t&&_e.postRender(()=>t(r,i))};class Xb extends ir{constructor(){super(...arguments),this.removePointerDownListener=Ut}onPointerDown(r){this.session=new hv(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pv(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:i,onPan:s,onPanEnd:l}=this.node.getProps();return{onSessionStart:_m(r),onStart:_m(i),onMove:s,onEnd:(u,c)=>{delete this.session,l&&_e.postRender(()=>l(u,c))}}}mount(){this.removePointerDownListener=Ao(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Om(t,r){return r.max===r.min?0:t/(r.max-r.min)*100}const wo={correct:(t,r)=>{if(!r.target)return t;if(typeof t=="string")if(he.test(t))t=parseFloat(t);else return t;const i=Om(t,r.target.x),s=Om(t,r.target.y);return`${i}% ${s}%`}},Qb={correct:(t,{treeScale:r,projectionDelta:i})=>{const s=t,l=er.parse(t);if(l.length>5)return s;const u=er.createTransformer(t),c=typeof l[0]!="number"?1:0,p=i.x.scale*r.x,m=i.y.scale*r.y;l[0+c]/=p,l[1+c]/=m;const g=Fe(p,m,.5);return typeof l[2+c]=="number"&&(l[2+c]/=g),typeof l[3+c]=="number"&&(l[3+c]/=g),u(l)}};let Jc=!1;class qb extends S.Component{componentDidMount(){const{visualElement:r,layoutGroup:i,switchLayoutGroup:s,layoutId:l}=this.props,{projection:u}=r;xk(Zb),u&&(i.group&&i.group.add(u),s&&s.register&&l&&s.register(u),Jc&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),xa.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:i,visualElement:s,drag:l,isPresent:u}=this.props,{projection:c}=s;return c&&(c.isPresent=u,Jc=!0,l||r.layoutDependency!==i||i===void 0||r.isPresent!==u?c.willUpdate():this.safeToRemove(),r.isPresent!==u&&(u?c.promote():c.relegate()||_e.postRender(()=>{const p=c.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),Sd.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:l}=r;Jc=!0,l&&(l.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(l),s&&s.deregister&&s.deregister(l))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function gv(t){const[r,i]=Vy(),s=S.useContext(Ju);return f.jsx(qb,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Qy),isPresent:r,safeToRemove:i})}const Zb={borderRadius:{...wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wo,borderTopRightRadius:wo,borderBottomLeftRadius:wo,borderBottomRightRadius:wo,boxShadow:Qb};function Jb(t,r,i){const s=dt(t)?t:wi(t);return s.start(Md("",s,r,i)),s.animation}const eC=(t,r)=>t.depth-r.depth;class tC{constructor(){this.children=[],this.isDirty=!1}add(r){nd(this.children,r),this.isDirty=!0}remove(r){rd(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(eC),this.isDirty=!1,this.children.forEach(r)}}function nC(t,r){const i=Ct.now(),s=({timestamp:l})=>{const u=l-i;u>=r&&(Jn(s),t(u-r))};return _e.setup(s,!0),()=>Jn(s)}const yv=["TopLeft","TopRight","BottomLeft","BottomRight"],rC=yv.length,Vm=t=>typeof t=="string"?parseFloat(t):t,Fm=t=>typeof t=="number"||he.test(t);function iC(t,r,i,s,l,u){l?(t.opacity=Fe(0,i.opacity??1,oC(s)),t.opacityExit=Fe(r.opacity??1,0,sC(s))):u&&(t.opacity=Fe(r.opacity??1,i.opacity??1,s));for(let c=0;c<rC;c++){const p=`border${yv[c]}Radius`;let m=zm(r,p),g=zm(i,p);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||Fm(m)===Fm(g)?(t[p]=Math.max(Fe(Vm(m),Vm(g),s),0),(dn.test(g)||dn.test(m))&&(t[p]+="%")):t[p]=g}(r.rotate||i.rotate)&&(t.rotate=Fe(r.rotate||0,i.rotate||0,s))}function zm(t,r){return t[r]!==void 0?t[r]:t.borderRadius}const oC=vv(0,.5,iy),sC=vv(.5,.95,Ut);function vv(t,r,i){return s=>s<t?0:s>r?1:i(Io(t,r,s))}function Bm(t,r){t.min=r.min,t.max=r.max}function zt(t,r){Bm(t.x,r.x),Bm(t.y,r.y)}function Hm(t,r){t.translate=r.translate,t.scale=r.scale,t.originPoint=r.originPoint,t.origin=r.origin}function Um(t,r,i,s,l){return t-=r,t=ja(t,1/i,s),l!==void 0&&(t=ja(t,1/l,s)),t}function aC(t,r=0,i=1,s=.5,l,u=t,c=t){if(dn.test(r)&&(r=parseFloat(r),r=Fe(c.min,c.max,r/100)-c.min),typeof r!="number")return;let p=Fe(u.min,u.max,s);t===u&&(p-=r),t.min=Um(t.min,r,i,p,l),t.max=Um(t.max,r,i,p,l)}function Wm(t,r,[i,s,l],u,c){aC(t,r[i],r[s],r[l],r.scale,u,c)}const lC=["x","scaleX","originX"],cC=["y","scaleY","originY"];function $m(t,r,i,s){Wm(t.x,r,lC,i?i.x:void 0,s?s.x:void 0),Wm(t.y,r,cC,i?i.y:void 0,s?s.y:void 0)}function Km(t){return t.translate===0&&t.scale===1}function xv(t){return Km(t.x)&&Km(t.y)}function Gm(t,r){return t.min===r.min&&t.max===r.max}function uC(t,r){return Gm(t.x,r.x)&&Gm(t.y,r.y)}function Ym(t,r){return Math.round(t.min)===Math.round(r.min)&&Math.round(t.max)===Math.round(r.max)}function wv(t,r){return Ym(t.x,r.x)&&Ym(t.y,r.y)}function Xm(t){return gt(t.x)/gt(t.y)}function Qm(t,r){return t.translate===r.translate&&t.scale===r.scale&&t.originPoint===r.originPoint}class dC{constructor(){this.members=[]}add(r){nd(this.members,r),r.scheduleRender()}remove(r){if(rd(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(r){const i=this.members.findIndex(l=>r===l);if(i===0)return!1;let s;for(let l=i;l>=0;l--){const u=this.members[l];if(u.isPresent!==!1){s=u;break}}return s?(this.promote(s),!0):!1}promote(r,i){const s=this.lead;if(r!==s&&(this.prevLead=s,this.lead=r,r.show(),s)){s.instance&&s.scheduleRender(),r.scheduleRender(),r.resumeFrom=s,i&&(r.resumeFrom.preserveOpacity=!0),s.snapshot&&(r.snapshot=s.snapshot,r.snapshot.latestValues=s.animationValues||s.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:l}=r.options;l===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:i,resumingFrom:s}=r;i.onExitComplete&&i.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fC(t,r,i){let s="";const l=t.x.translate/r.x,u=t.y.translate/r.y,c=i?.z||0;if((l||u||c)&&(s=`translate3d(${l}px, ${u}px, ${c}px) `),(r.x!==1||r.y!==1)&&(s+=`scale(${1/r.x}, ${1/r.y}) `),i){const{transformPerspective:g,rotate:y,rotateX:v,rotateY:w,skewX:b,skewY:T}=i;g&&(s=`perspective(${g}px) ${s}`),y&&(s+=`rotate(${y}deg) `),v&&(s+=`rotateX(${v}deg) `),w&&(s+=`rotateY(${w}deg) `),b&&(s+=`skewX(${b}deg) `),T&&(s+=`skewY(${T}deg) `)}const p=t.x.scale*r.x,m=t.y.scale*r.y;return(p!==1||m!==1)&&(s+=`scale(${p}, ${m})`),s||"none"}const eu=["","X","Y","Z"],pC=1e3;let hC=0;function tu(t,r,i,s){const{latestValues:l}=r;l[t]&&(i[t]=l[t],r.setStaticValue(t,0),s&&(s[t]=0))}function Sv(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:r}=t.options;if(!r)return;const i=sv(r);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:l,layoutId:u}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",_e,!(l||u))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Sv(s)}function kv({attachResizeListener:t,defaultParent:r,measureScroll:i,checkIsScrollRoot:s,resetTransform:l}){return class{constructor(c={},p=r?.()){this.id=hC++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(yC),this.nodes.forEach(SC),this.nodes.forEach(kC),this.nodes.forEach(vC)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new tC)}addEventListener(c,p){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new sd),this.eventHandlers.get(c).add(p)}notifyListeners(c,...p){const m=this.eventHandlers.get(c);m&&m.notify(...p)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=Oy(c)&&!ik(c),this.instance=c;const{layoutId:p,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||p)&&(this.isLayoutDirty=!0),t){let y,v=0;const w=()=>this.root.updateBlockedByResize=!1;_e.read(()=>{v=window.innerWidth}),t(c,()=>{const b=window.innerWidth;b!==v&&(v=b,this.root.updateBlockedByResize=!0,y&&y(),y=nC(w,250),xa.hasAnimatedSinceResize&&(xa.hasAnimatedSinceResize=!1,this.nodes.forEach(Jm)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:w,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=this.options.transition||g.getDefaultTransition()||jC,{onLayoutAnimationStart:k,onLayoutAnimationComplete:N}=g.getProps(),P=!this.targetLayout||!wv(this.targetLayout,b),A=!v&&w;if(this.options.layoutRoot||this.resumeFrom||A||v&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...xd(T,"layout"),onPlay:k,onComplete:N};(g.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(y,A)}else v||Jm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Jn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bC),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Sv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:p,layout:m}=this.options;if(p===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qm);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zm);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wC),this.nodes.forEach(mC),this.nodes.forEach(gC)):this.nodes.forEach(Zm),this.clearAllSnapshots();const p=Ct.now();ot.delta=Nn(0,1e3/60,p-ot.timestamp),ot.timestamp=p,ot.isProcessing=!0,Uc.update.process(ot),Uc.preRender.process(ot),Uc.render.process(ot),ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xC),this.sharedNodes.forEach(CC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gt(this.snapshot.measuredBox.x)&&!gt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$e(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(p=!1),p&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:m,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!xv(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;c&&this.instance&&(p||br(this.latestValues)||y)&&(l(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const p=this.measurePageBox();let m=this.removeElementScroll(p);return c&&(m=this.removeTransform(m)),PC(m),{animationId:this.root.animationId,measuredBox:p,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return $e();const p=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(EC))){const{scroll:g}=this.root;g&&(fi(p.x,g.offset.x),fi(p.y,g.offset.y))}return p}removeElementScroll(c){const p=$e();if(zt(p,c),this.scroll?.wasRoot)return p;for(let m=0;m<this.path.length;m++){const g=this.path[m],{scroll:y,options:v}=g;g!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&zt(p,c),fi(p.x,y.offset.x),fi(p.y,y.offset.y))}return p}applyTransform(c,p=!1){const m=$e();zt(m,c);for(let g=0;g<this.path.length;g++){const y=this.path[g];!p&&y.options.layoutScroll&&y.scroll&&y!==y.root&&pi(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),br(y.latestValues)&&pi(m,y.latestValues)}return br(this.latestValues)&&pi(m,this.latestValues),m}removeTransform(c){const p=$e();zt(p,c);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!br(g.latestValues))continue;Eu(g.latestValues)&&g.updateSnapshot();const y=$e(),v=g.measurePageBox();zt(y,v),$m(p,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,y)}return br(this.latestValues)&&$m(p,this.latestValues),p}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==p;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!(!this.layout||!(y||v))){if(this.resolvedRelativeTargetAt=ot.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),zt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$e(),this.targetWithTransforms=$e()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Lb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):zt(this.target,this.layout.layoutBox),ev(this.target,this.targetDelta)):zt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),Mo(this.relativeTargetOrigin,this.target,w.target),zt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Eu(this.parent.latestValues)||Jy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const c=this.getLead(),p=!!this.resumingFrom||this!==c;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ot.timestamp&&(m=!1),m)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;zt(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,w=this.treeScale.y;Gk(this.layoutCorrected,this.treeScale,this.path,p),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=$e());const{target:b}=c;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hm(this.prevProjectionDelta.x,this.projectionDelta.x),Hm(this.prevProjectionDelta.y,this.projectionDelta.y)),Ro(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==w||!Qm(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hi(),this.projectionDelta=hi(),this.projectionDeltaWithTransform=hi()}setAnimationOrigin(c,p=!1){const m=this.snapshot,g=m?m.latestValues:{},y={...this.latestValues},v=hi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const w=$e(),b=m?m.source:void 0,T=this.layout?this.layout.source:void 0,k=b!==T,N=this.getStack(),P=!N||N.members.length<=1,A=!!(k&&!P&&this.options.crossfade===!0&&!this.path.some(TC));this.animationProgress=0;let M;this.mixTargetDelta=O=>{const V=O/1e3;eg(v.x,c.x,V),eg(v.y,c.y,V),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),NC(this.relativeTarget,this.relativeTargetOrigin,w,V),M&&uC(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=$e()),zt(M,this.relativeTarget)),k&&(this.animationValues=y,iC(y,g,this.latestValues,V,A,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Jn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_e.update(()=>{xa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wi(0)),this.currentAnimation=Jb(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),c.onUpdate&&c.onUpdate(p)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:y}=c;if(!(!p||!m||!g)){if(this!==c&&this.layout&&g&&bv(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||$e();const v=gt(this.layout.layoutBox.x);m.x.min=c.target.x.min,m.x.max=m.x.min+v;const w=gt(this.layout.layoutBox.y);m.y.min=c.target.y.min,m.y.max=m.y.min+w}zt(p,m),pi(p,y),Ro(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(c,p){this.sharedNodes.has(c)||this.sharedNodes.set(c,new dC),this.sharedNodes.get(c).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),c&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let p=!1;const{latestValues:m}=c;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&tu("z",c,g,this.animationValues);for(let y=0;y<eu.length;y++)tu(`rotate${eu[y]}`,c,g,this.animationValues),tu(`skew${eu[y]}`,c,g,this.animationValues);c.render();for(const y in g)c.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);c.scheduleRender()}applyProjectionStyles(c,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=va(p?.pointerEvents)||"",c.transform=m?m(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=va(p?.pointerEvents)||""),this.hasProjected&&!br(this.latestValues)&&(c.transform=m?m({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let v=fC(this.projectionDeltaWithTransform,this.treeScale,y);m&&(v=m(y,v)),c.transform=v;const{x:w,y:b}=this.projectionDelta;c.transformOrigin=`${w.origin*100}% ${b.origin*100}% 0`,g.animationValues?c.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const T in Oo){if(y[T]===void 0)continue;const{correct:k,applyTo:N,isCSSVariable:P}=Oo[T],A=v==="none"?y[T]:k(y[T],g);if(N){const M=N.length;for(let O=0;O<M;O++)c[N[O]]=A}else P?this.options.visualElement.renderState.vars[T]=A:c[T]=A}this.options.layoutId&&(c.pointerEvents=g===this?va(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(qm),this.root.sharedNodes.clear()}}}function mC(t){t.updateLayout()}function gC(t){const r=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:l}=t.options,u=r.source!==t.layout.source;l==="size"?Bt(y=>{const v=u?r.measuredBox[y]:r.layoutBox[y],w=gt(v);v.min=i[y].min,v.max=v.min+w}):bv(l,r.layoutBox,i)&&Bt(y=>{const v=u?r.measuredBox[y]:r.layoutBox[y],w=gt(i[y]);v.max=v.min+w,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+w)});const c=hi();Ro(c,i,r.layoutBox);const p=hi();u?Ro(p,t.applyTransform(s,!0),r.measuredBox):Ro(p,i,r.layoutBox);const m=!xv(c);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:w}=y;if(v&&w){const b=$e();Mo(b,r.layoutBox,v.layoutBox);const T=$e();Mo(T,i,w.layoutBox),wv(b,T)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=T,t.relativeTargetOrigin=b,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:p,layoutDelta:c,hasLayoutChanged:m,hasRelativeLayoutChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function yC(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function vC(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function xC(t){t.clearSnapshot()}function qm(t){t.clearMeasurements()}function Zm(t){t.isLayoutDirty=!1}function wC(t){const{visualElement:r}=t.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),t.resetTransform()}function Jm(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function SC(t){t.resolveTargetDelta()}function kC(t){t.calcProjection()}function bC(t){t.resetSkewAndRotation()}function CC(t){t.removeLeadSnapshot()}function eg(t,r,i){t.translate=Fe(r.translate,0,i),t.scale=Fe(r.scale,1,i),t.origin=r.origin,t.originPoint=r.originPoint}function tg(t,r,i,s){t.min=Fe(r.min,i.min,s),t.max=Fe(r.max,i.max,s)}function NC(t,r,i,s){tg(t.x,r.x,i.x,s),tg(t.y,r.y,i.y,s)}function TC(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const jC={duration:.45,ease:[.4,0,.1,1]},ng=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rg=ng("applewebkit/")&&!ng("chrome/")?Math.round:Ut;function ig(t){t.min=rg(t.min),t.max=rg(t.max)}function PC(t){ig(t.x),ig(t.y)}function bv(t,r,i){return t==="position"||t==="preserve-aspect"&&!Db(Xm(r),Xm(i),.2)}function EC(t){return t!==t.root&&t.scroll?.wasRoot}const AC=kv({attachResizeListener:(t,r)=>Vo(t,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nu={current:void 0},Cv=kv({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nu.current){const t=new AC({});t.mount(window),t.setOptions({layoutScroll:!0}),nu.current=t}return nu.current},resetTransform:(t,r)=>{t.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),RC={pan:{Feature:Xb},drag:{Feature:Yb,ProjectionNode:Cv,MeasureLayout:gv}};function og(t,r,i){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",i==="Start");const l="onHover"+i,u=s[l];u&&_e.postRender(()=>u(r,Ko(r)))}class MC extends ir{mount(){const{current:r}=this.node;r&&(this.unmount=JS(r,(i,s)=>(og(this.node,s,"Start"),l=>og(this.node,l,"End"))))}unmount(){}}class IC extends ir{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Uo(Vo(this.node.current,"focus",()=>this.onFocus()),Vo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sg(t,r,i){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",i==="Start");const l="onTap"+(i==="End"?"":i),u=s[l];u&&_e.postRender(()=>u(r,Ko(r)))}class DC extends ir{mount(){const{current:r}=this.node;r&&(this.unmount=rk(r,(i,s)=>(sg(this.node,s,"Start"),(l,{success:u})=>sg(this.node,l,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _u=new WeakMap,ru=new WeakMap,LC=t=>{const r=_u.get(t.target);r&&r(t)},_C=t=>{t.forEach(LC)};function OC({root:t,...r}){const i=t||document;ru.has(i)||ru.set(i,{});const s=ru.get(i),l=JSON.stringify(r);return s[l]||(s[l]=new IntersectionObserver(_C,{root:t,...r})),s[l]}function VC(t,r,i){const s=OC(r);return _u.set(t,i),s.observe(t),()=>{_u.delete(t),s.unobserve(t)}}const FC={some:0,all:1};class zC extends ir{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:i,margin:s,amount:l="some",once:u}=r,c={root:i?i.current:void 0,rootMargin:s,threshold:typeof l=="number"?l:FC[l]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,u&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),w=g?y:v;w&&w(m)};return VC(this.node.current,c,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:i}=this.node;["amount","margin","root"].some(BC(r,i))&&this.startObserver()}unmount(){}}function BC({viewport:t={}},{viewport:r={}}={}){return i=>t[i]!==r[i]}const HC={inView:{Feature:zC},tap:{Feature:DC},focus:{Feature:IC},hover:{Feature:MC}},UC={layout:{ProjectionNode:Cv,MeasureLayout:gv}},WC={...Pb,...HC,...RC,...UC},H=Wk(WC,rb);function ag(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function Nv(...t){return r=>{let i=!1;const s=t.map(l=>{const u=ag(l,r);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let l=0;l<s.length;l++){const u=s[l];typeof u=="function"?u():ag(t[l],null)}}}}function st(...t){return S.useCallback(Nv(...t),t)}function Fo(t){const r=$C(t),i=S.forwardRef((s,l)=>{const{children:u,...c}=s,p=S.Children.toArray(u),m=p.find(GC);if(m){const g=m.props.children,y=p.map(v=>v===m?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:v);return f.jsx(r,{...c,ref:l,children:S.isValidElement(g)?S.cloneElement(g,void 0,y):null})}return f.jsx(r,{...c,ref:l,children:u})});return i.displayName=`${t}.Slot`,i}var Tv=Fo("Slot");function $C(t){const r=S.forwardRef((i,s)=>{const{children:l,...u}=i;if(S.isValidElement(l)){const c=XC(l),p=YC(u,l.props);return l.type!==S.Fragment&&(p.ref=s?Nv(s,c):c),S.cloneElement(l,p)}return S.Children.count(l)>1?S.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var KC=Symbol("radix.slottable");function GC(t){return S.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===KC}function YC(t,r){const i={...r};for(const s in r){const l=t[s],u=r[s];/^on[A-Z]/.test(s)?l&&u?i[s]=(...p)=>{const m=u(...p);return l(...p),m}:l&&(i[s]=l):s==="style"?i[s]={...l,...u}:s==="className"&&(i[s]=[l,u].filter(Boolean).join(" "))}return{...t,...i}}function XC(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}function jv(t){var r,i,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(r=0;r<l;r++)t[r]&&(i=jv(t[r]))&&(s&&(s+=" "),s+=i)}else for(i in t)t[i]&&(s&&(s+=" "),s+=i);return s}function Pv(){for(var t,r,i=0,s="",l=arguments.length;i<l;i++)(t=arguments[i])&&(r=jv(t))&&(s&&(s+=" "),s+=r);return s}const lg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,cg=Pv,Ev=(t,r)=>i=>{var s;if(r?.variants==null)return cg(t,i?.class,i?.className);const{variants:l,defaultVariants:u}=r,c=Object.keys(l).map(g=>{const y=i?.[g],v=u?.[g];if(y===null)return null;const w=lg(y)||lg(v);return l[g][w]}),p=i&&Object.entries(i).reduce((g,y)=>{let[v,w]=y;return w===void 0||(g[v]=w),g},{}),m=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,y)=>{let{class:v,className:w,...b}=y;return Object.entries(b).every(T=>{let[k,N]=T;return Array.isArray(N)?N.includes({...u,...p}[k]):{...u,...p}[k]===N})?[...g,v,w]:g},[]);return cg(t,c,m,i?.class,i?.className)},Id="-",QC=t=>{const r=ZC(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:c=>{const p=c.split(Id);return p[0]===""&&p.length!==1&&p.shift(),Av(p,r)||qC(c)},getConflictingClassGroupIds:(c,p)=>{const m=i[c]||[];return p&&s[c]?[...m,...s[c]]:m}}},Av=(t,r)=>{if(t.length===0)return r.classGroupId;const i=t[0],s=r.nextPart.get(i),l=s?Av(t.slice(1),s):void 0;if(l)return l;if(r.validators.length===0)return;const u=t.join(Id);return r.validators.find(({validator:c})=>c(u))?.classGroupId},ug=/^\[(.+)\]$/,qC=t=>{if(ug.test(t)){const r=ug.exec(t)[1],i=r?.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},ZC=t=>{const{theme:r,classGroups:i}=t,s={nextPart:new Map,validators:[]};for(const l in i)Ou(i[l],s,l,r);return s},Ou=(t,r,i,s)=>{t.forEach(l=>{if(typeof l=="string"){const u=l===""?r:dg(r,l);u.classGroupId=i;return}if(typeof l=="function"){if(JC(l)){Ou(l(s),r,i,s);return}r.validators.push({validator:l,classGroupId:i});return}Object.entries(l).forEach(([u,c])=>{Ou(c,dg(r,u),i,s)})})},dg=(t,r)=>{let i=t;return r.split(Id).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},JC=t=>t.isThemeGetter,e2=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,s=new Map;const l=(u,c)=>{i.set(u,c),r++,r>t&&(r=0,s=i,i=new Map)};return{get(u){let c=i.get(u);if(c!==void 0)return c;if((c=s.get(u))!==void 0)return l(u,c),c},set(u,c){i.has(u)?i.set(u,c):l(u,c)}}},Vu="!",Fu=":",t2=Fu.length,n2=t=>{const{prefix:r,experimentalParseClassName:i}=t;let s=l=>{const u=[];let c=0,p=0,m=0,g;for(let T=0;T<l.length;T++){let k=l[T];if(c===0&&p===0){if(k===Fu){u.push(l.slice(m,T)),m=T+t2;continue}if(k==="/"){g=T;continue}}k==="["?c++:k==="]"?c--:k==="("?p++:k===")"&&p--}const y=u.length===0?l:l.substring(m),v=r2(y),w=v!==y,b=g&&g>m?g-m:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:b}};if(r){const l=r+Fu,u=s;s=c=>c.startsWith(l)?u(c.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(i){const l=s;s=u=>i({className:u,parseClassName:l})}return s},r2=t=>t.endsWith(Vu)?t.substring(0,t.length-1):t.startsWith(Vu)?t.substring(1):t,i2=t=>{const r=Object.fromEntries(t.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const l=[];let u=[];return s.forEach(c=>{c[0]==="["||r[c]?(l.push(...u.sort(),c),u=[]):u.push(c)}),l.push(...u.sort()),l}},o2=t=>({cache:e2(t.cacheSize),parseClassName:n2(t),sortModifiers:i2(t),...QC(t)}),s2=/\s+/,a2=(t,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:u}=r,c=[],p=t.trim().split(s2);let m="";for(let g=p.length-1;g>=0;g-=1){const y=p[g],{isExternal:v,modifiers:w,hasImportantModifier:b,baseClassName:T,maybePostfixModifierPosition:k}=i(y);if(v){m=y+(m.length>0?" "+m:m);continue}let N=!!k,P=s(N?T.substring(0,k):T);if(!P){if(!N){m=y+(m.length>0?" "+m:m);continue}if(P=s(T),!P){m=y+(m.length>0?" "+m:m);continue}N=!1}const A=u(w).join(":"),M=b?A+Vu:A,O=M+P;if(c.includes(O))continue;c.push(O);const V=l(P,N);for(let U=0;U<V.length;++U){const z=V[U];c.push(M+z)}m=y+(m.length>0?" "+m:m)}return m};function l2(){let t=0,r,i,s="";for(;t<arguments.length;)(r=arguments[t++])&&(i=Rv(r))&&(s&&(s+=" "),s+=i);return s}const Rv=t=>{if(typeof t=="string")return t;let r,i="";for(let s=0;s<t.length;s++)t[s]&&(r=Rv(t[s]))&&(i&&(i+=" "),i+=r);return i};function c2(t,...r){let i,s,l,u=c;function c(m){const g=r.reduce((y,v)=>v(y),t());return i=o2(g),s=i.cache.get,l=i.cache.set,u=p,p(m)}function p(m){const g=s(m);if(g)return g;const y=a2(m,i);return l(m,y),y}return function(){return u(l2.apply(null,arguments))}}const Ze=t=>{const r=i=>i[t]||[];return r.isThemeGetter=!0,r},Mv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Iv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,u2=/^\d+\/\d+$/,d2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f2=/\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$/,p2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,h2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,si=t=>u2.test(t),Ce=t=>!!t&&!Number.isNaN(Number(t)),Yn=t=>!!t&&Number.isInteger(Number(t)),iu=t=>t.endsWith("%")&&Ce(t.slice(0,-1)),Cn=t=>d2.test(t),g2=()=>!0,y2=t=>f2.test(t)&&!p2.test(t),Dv=()=>!1,v2=t=>h2.test(t),x2=t=>m2.test(t),w2=t=>!ne(t)&&!re(t),S2=t=>Ti(t,Ov,Dv),ne=t=>Mv.test(t),kr=t=>Ti(t,Vv,y2),ou=t=>Ti(t,T2,Ce),fg=t=>Ti(t,Lv,Dv),k2=t=>Ti(t,_v,x2),la=t=>Ti(t,Fv,v2),re=t=>Iv.test(t),So=t=>ji(t,Vv),b2=t=>ji(t,j2),pg=t=>ji(t,Lv),C2=t=>ji(t,Ov),N2=t=>ji(t,_v),ca=t=>ji(t,Fv,!0),Ti=(t,r,i)=>{const s=Mv.exec(t);return s?s[1]?r(s[1]):i(s[2]):!1},ji=(t,r,i=!1)=>{const s=Iv.exec(t);return s?s[1]?r(s[1]):i:!1},Lv=t=>t==="position"||t==="percentage",_v=t=>t==="image"||t==="url",Ov=t=>t==="length"||t==="size"||t==="bg-size",Vv=t=>t==="length",T2=t=>t==="number",j2=t=>t==="family-name",Fv=t=>t==="shadow",P2=()=>{const t=Ze("color"),r=Ze("font"),i=Ze("text"),s=Ze("font-weight"),l=Ze("tracking"),u=Ze("leading"),c=Ze("breakpoint"),p=Ze("container"),m=Ze("spacing"),g=Ze("radius"),y=Ze("shadow"),v=Ze("inset-shadow"),w=Ze("text-shadow"),b=Ze("drop-shadow"),T=Ze("blur"),k=Ze("perspective"),N=Ze("aspect"),P=Ze("ease"),A=Ze("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...O(),re,ne],U=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],F=()=>[re,ne,m],J=()=>[si,"full","auto",...F()],ce=()=>[Yn,"none","subgrid",re,ne],ye=()=>["auto",{span:["full",Yn,re,ne]},Yn,re,ne],xe=()=>[Yn,"auto",re,ne],me=()=>["auto","min","max","fr",re,ne],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],we=()=>["start","end","center","stretch","center-safe","end-safe"],se=()=>["auto",...F()],q=()=>[si,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],I=()=>[t,re,ne],Q=()=>[...O(),pg,fg,{position:[re,ne]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",C2,S2,{size:[re,ne]}],B=()=>[iu,So,kr],oe=()=>["","none","full",g,re,ne],ae=()=>["",Ce,So,kr],Se=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[Ce,iu,pg,fg],ue=()=>["","none",T,re,ne],ve=()=>["none",Ce,re,ne],ke=()=>["none",Ce,re,ne],Te=()=>[Ce,re,ne],Re=()=>[si,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Cn],breakpoint:[Cn],color:[g2],container:[Cn],"drop-shadow":[Cn],ease:["in","out","in-out"],font:[w2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Cn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Cn],shadow:[Cn],spacing:["px",Ce],text:[Cn],"text-shadow":[Cn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",si,ne,re,N]}],container:["container"],columns:[{columns:[Ce,ne,re,p]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[Yn,"auto",re,ne]}],basis:[{basis:[si,"full","auto",p,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,si,"auto","initial","none",ne]}],grow:[{grow:["",Ce,re,ne]}],shrink:[{shrink:["",Ce,re,ne]}],order:[{order:[Yn,"first","last","none",re,ne]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:ye()}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ye()}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...we(),"normal"]}],"justify-self":[{"justify-self":["auto",...we()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...we(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...we(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...we(),"baseline"]}],"place-self":[{"place-self":["auto",...we()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[p,"screen",...q()]}],"min-w":[{"min-w":[p,"screen","none",...q()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[c]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",i,So,kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,re,ou]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",iu,ne]}],"font-family":[{font:[b2,ne,r]}],"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,re,ne]}],"line-clamp":[{"line-clamp":[Ce,"none",re,ou]}],leading:[{leading:[u,...F()]}],"list-image":[{"list-image":["none",re,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",re,kr]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Ce,"auto",re,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,ne]}],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",re,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yn,re,ne],radial:["",re,ne],conic:[Yn,re,ne]},N2,k2]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,re,ne]}],"outline-w":[{outline:["",Ce,So,kr]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",y,ca,la]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",v,ca,la]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Ce,kr]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,ca,la]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Ce,re,ne]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[re,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,ne]}],filter:[{filter:["","none",re,ne]}],blur:[{blur:ue()}],brightness:[{brightness:[Ce,re,ne]}],contrast:[{contrast:[Ce,re,ne]}],"drop-shadow":[{"drop-shadow":["","none",b,ca,la]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Ce,re,ne]}],"hue-rotate":[{"hue-rotate":[Ce,re,ne]}],invert:[{invert:["",Ce,re,ne]}],saturate:[{saturate:[Ce,re,ne]}],sepia:[{sepia:["",Ce,re,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",re,ne]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,re,ne]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,re,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,re,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,re,ne]}],"backdrop-invert":[{"backdrop-invert":["",Ce,re,ne]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,re,ne]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,re,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,re,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",re,ne]}],ease:[{ease:["linear","initial",P,re,ne]}],delay:[{delay:[Ce,re,ne]}],animate:[{animate:["none",A,re,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,re,ne]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[re,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Re()}],"translate-x":[{"translate-x":Re()}],"translate-y":[{"translate-y":Re()}],"translate-z":[{"translate-z":Re()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",re,ne]}],"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":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",re,ne]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Ce,So,kr,ou]}],stroke:[{stroke:["none",...I()]}],"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"]}},E2=c2(P2);function pt(...t){return E2(Pv(t))}const A2=Ev("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});function ft({className:t,variant:r,size:i,asChild:s=!1,...l}){const u=s?Tv:"button";return f.jsx(u,{"data-slot":"button",className:pt(A2({variant:r,size:i,className:t})),...l})}/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const R2=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M2=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,s)=>s?s.toUpperCase():i.toLowerCase()),hg=t=>{const r=M2(t);return r.charAt(0).toUpperCase()+r.slice(1)},zv=(...t)=>t.filter((r,i,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===i).join(" ").trim();/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var I2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const D2=S.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:l="",children:u,iconNode:c,...p},m)=>S.createElement("svg",{ref:m,...I2,width:r,height:r,stroke:t,strokeWidth:s?Number(i)*24/Number(r):i,className:zv("lucide",l),...p},[...c.map(([g,y])=>S.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ee=(t,r)=>{const i=S.forwardRef(({className:s,...l},u)=>S.createElement(D2,{ref:u,iconNode:r,className:zv(`lucide-${R2(hg(t))}`,`lucide-${t}`,s),...l}));return i.displayName=hg(t),i};/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const L2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Bv=Ee("arrow-left",L2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _2=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],O2=Ee("award",_2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const V2=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],F2=Ee("building",V2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const z2=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Hv=Ee("calendar",z2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const B2=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Pi=Ee("car",B2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const H2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],U2=Ee("check",H2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const W2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Uv=Ee("chevron-down",W2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],K2=Ee("chevron-up",$2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const G2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Wv=Ee("circle-check-big",G2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Y2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],X2=Ee("circle-check",Y2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Q2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Mr=Ee("clock",Q2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const q2=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Z2=Ee("facebook",q2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const J2=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],eN=Ee("gift",J2);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tN=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],nN=Ee("instagram",tN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rN=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],iN=Ee("linkedin",rN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const oN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sN=Ee("loader-circle",oN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aN=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Oa=Ee("mail",aN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lN=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],tr=Ee("map-pin",lN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cN=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],uN=Ee("menu",cN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dN=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],pn=Ee("phone",dN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fN=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],pN=Ee("plane",fN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hN=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],mg=Ee("send",hN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mN=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Dd=Ee("shield",mN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gN=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Va=Ee("star",gN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yN=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],vN=Ee("truck",yN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xN=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],wN=Ee("twitter",xN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const SN=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],$v=Ee("user",SN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kN=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Ei=Ee("users",kN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gg=Ee("x",bN);/**
|
||
* @license lucide-react v0.487.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const CN=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],NN=Ee("zap",CN);function TN({onClick:t}){return f.jsx(H.button,{onClick:t,className:"flex items-center hover:opacity-80 transition-opacity",whileHover:{scale:1.05},whileTap:{scale:.95},initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.6,ease:"easeOut"},children:f.jsx(H.img,{alt:"Sangwari Taxi Logo",className:"h-10 w-auto object-contain",animate:{scale:[1,1.02,1]},transition:{duration:3,repeat:1/0,ease:"easeInOut"}})})}function jN({currentPage:t,onNavigate:r}){const[i,s]=S.useState(!1),l=[{id:"home",label:"Home"},{id:"services",label:"Services"},{id:"about",label:"About"},{id:"contact",label:"Contact"}],u=c=>{r(c),s(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(H.header,{className:"border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50",initial:{y:-100},animate:{y:0},transition:{duration:.6,ease:"easeOut"},children:f.jsxs("div",{className:"container mx-auto px-4 h-14 sm:h-16 flex items-center justify-between",children:[f.jsx(TN,{onClick:()=>u("home")}),f.jsx("nav",{className:"hidden md:flex items-center gap-4 lg:gap-6",children:l.map((c,p)=>f.jsxs(H.button,{onClick:()=>u(c.id),className:`relative transition-colors text-sm lg:text-base ${t===c.id?"text-foreground font-medium":"text-muted-foreground hover:text-foreground"}`,whileHover:{y:-2},whileTap:{y:0},initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:p*.1+.3},children:[c.label,t===c.id&&f.jsx(H.div,{className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-primary rounded-full",layoutId:"activeTab",transition:{duration:.3}})]},c.id))}),f.jsxs(H.div,{className:"flex items-center gap-2",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},children:[f.jsx(H.div,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"hidden sm:block",children:f.jsxs(ft,{variant:"outline",size:"sm",className:"bg-primary/5 border-primary/20 hover:bg-primary hover:text-primary-foreground text-xs lg:text-sm px-2 lg:px-3",onClick:()=>window.open("tel:+91-7477247488","_self"),children:[f.jsx(pn,{className:"h-3 w-3 lg:h-4 lg:w-4 mr-1 lg:mr-2"}),f.jsx("span",{className:"hidden lg:inline",children:"7477247488"}),f.jsx("span",{className:"lg:hidden",children:"Call"})]})}),f.jsx(H.div,{whileHover:{scale:1.1},whileTap:{scale:.9},children:f.jsx(ft,{variant:"ghost",size:"sm",className:"md:hidden p-2",onClick:()=>s(!i),children:i?f.jsx(gg,{className:"h-4 w-4"}):f.jsx(uN,{className:"h-4 w-4"})})})]})]})}),f.jsx(Pu,{children:i&&f.jsxs(H.div,{className:"fixed inset-0 z-50 md:hidden",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[f.jsx(H.div,{className:"absolute inset-0 bg-black/50",onClick:()=>s(!1)}),f.jsx(H.div,{className:"absolute top-0 right-0 h-full w-72 max-w-[80vw] bg-background border-l shadow-xl",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:300},children:f.jsxs("div",{className:"p-6",children:[f.jsxs("div",{className:"flex items-center justify-between mb-8",children:[f.jsx("h2",{className:"text-lg font-semibold",children:"Menu"}),f.jsx(ft,{variant:"ghost",size:"sm",onClick:()=>s(!1),className:"p-2",children:f.jsx(gg,{className:"h-4 w-4"})})]}),f.jsx("nav",{className:"space-y-4",children:l.map((c,p)=>f.jsx(H.button,{onClick:()=>u(c.id),className:`block w-full text-left py-3 px-4 rounded-lg transition-colors ${t===c.id?"bg-primary text-primary-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-muted"}`,initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:p*.1},children:c.label},c.id))}),f.jsx(H.div,{className:"mt-8 pt-6 border-t",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:f.jsxs(ft,{className:"w-full bg-gradient-to-r from-green-500 to-green-600 hover:from-green-600 hover:to-green-700 text-white",onClick:()=>{window.open("tel:+91-7477247488","_self"),s(!1)},children:[f.jsx(pn,{className:"h-4 w-4 mr-2"}),"Call Sangwari Taxi"]})})]})})]})})]})}var Go=$g();const PN=Wg(Go);var EN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=EN.reduce((t,r)=>{const i=Fo(`Primitive.${r}`),s=S.forwardRef((l,u)=>{const{asChild:c,...p}=l,m=c?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(m,{...p,ref:u})});return s.displayName=`Primitive.${r}`,{...t,[r]:s}},{});function AN(t,r){t&&Go.flushSync(()=>t.dispatchEvent(r))}var RN="Separator",yg="horizontal",MN=["horizontal","vertical"],Kv=S.forwardRef((t,r)=>{const{decorative:i,orientation:s=yg,...l}=t,u=IN(s)?s:yg,p=i?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return f.jsx(ze.div,{"data-orientation":u,...p,...l,ref:r})});Kv.displayName=RN;function IN(t){return MN.includes(t)}var DN=Kv;function zu({className:t,orientation:r="horizontal",decorative:i=!0,...s}){return f.jsx(DN,{"data-slot":"separator-root",decorative:i,orientation:r,className:pt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...s})}function LN({onNavigate:t}){const r=new Date().getFullYear(),i={company:[{label:"About Us",action:()=>t("about")},{label:"Services",action:()=>t("services")},{label:"Contact",action:()=>t("contact")},{label:"Careers",action:()=>{}}],support:[{label:"Help Center",action:()=>{}},{label:"Safety",action:()=>{}},{label:"Terms of Service",action:()=>{}},{label:"Privacy Policy",action:()=>{}}],services:[{label:"City Rides",action:()=>t("services")},{label:"Airport Taxi",action:()=>t("services")},{label:"Corporate Services",action:()=>t("services")}]},s=[{icon:Z2,href:"#",label:"Facebook"},{icon:wN,href:"#",label:"Twitter"},{icon:nN,href:"#",label:"Instagram"},{icon:iN,href:"#",label:"LinkedIn"}];return f.jsxs("footer",{className:"bg-muted/30 border-t",children:[f.jsx("div",{className:"bg-primary text-primary-foreground",children:f.jsx("div",{className:"container mx-auto px-4 py-6 sm:py-8",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h3",{className:"text-xl sm:text-2xl font-semibold mb-2",children:"Need a Ride Right Now?"}),f.jsx("p",{className:"text-sm sm:text-base text-primary-foreground/80 mb-4 px-4",children:"Call us directly for immediate booking and assistance"}),f.jsxs(ft,{size:"lg",variant:"secondary",className:"bg-white text-primary hover:bg-white/90 h-11 sm:h-12 text-sm sm:text-base",onClick:()=>window.open("tel:+91-7477247488","_self"),children:[f.jsx(pn,{className:"mr-2 h-4 w-4 sm:h-5 sm:w-5"}),"Call Sangwari Taxi"]})]})})}),f.jsxs("div",{className:"container mx-auto px-4 py-8 sm:py-12",children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-6 sm:gap-8",children:[f.jsxs("div",{className:"lg:col-span-2 sm:col-span-2",children:[f.jsx("div",{className:"flex items-center mb-4",children:f.jsx("img",{alt:"Sangwari Taxi Logo",className:"h-6 sm:h-8 w-auto object-contain"})}),f.jsx("p",{className:"text-muted-foreground mb-4 sm:mb-6 max-w-md text-sm sm:text-base",children:"Your trusted transportation partner. Safe, reliable, and convenient rides available 24/7 in over 25 cities."}),f.jsxs("div",{className:"space-y-2 mb-4 sm:mb-6",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs sm:text-sm",children:[f.jsx(pn,{className:"h-3 w-3 sm:h-4 sm:w-4 text-primary flex-shrink-0"}),f.jsx("button",{onClick:()=>window.open("tel:+91-7477247488","_self"),className:"hover:text-primary transition-colors",children:"7477247488"})]}),f.jsxs("div",{className:"flex items-center gap-2 text-xs sm:text-sm",children:[f.jsx(Oa,{className:"h-3 w-3 sm:h-4 sm:w-4 text-primary flex-shrink-0"}),f.jsx("span",{className:"break-all",children:"bookme@sangwaritaxi.com"})]}),f.jsxs("div",{className:"flex items-start gap-2 text-xs sm:text-sm",children:[f.jsx(tr,{className:"h-3 w-3 sm:h-4 sm:w-4 text-primary flex-shrink-0 mt-0.5"}),f.jsx("span",{className:"leading-tight",children:"Commercial complex second floor Nehru Nagar east Bhilai beside state bank Pin 490020"})]})]}),f.jsx("div",{className:"flex gap-1 sm:gap-2",children:s.map((l,u)=>f.jsxs(ft,{variant:"ghost",size:"sm",className:"p-1.5 sm:p-2",children:[f.jsx(l.icon,{className:"h-3 w-3 sm:h-4 sm:w-4"}),f.jsx("span",{className:"sr-only",children:l.label})]},u))})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-medium mb-3 sm:mb-4 text-sm sm:text-base",children:"Company"}),f.jsx("ul",{className:"space-y-1.5 sm:space-y-2",children:i.company.map((l,u)=>f.jsx("li",{children:f.jsx("button",{onClick:l.action,className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors text-left",children:l.label})},u))})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-medium mb-3 sm:mb-4 text-sm sm:text-base",children:"Support"}),f.jsx("ul",{className:"space-y-1.5 sm:space-y-2",children:i.support.map((l,u)=>f.jsx("li",{children:f.jsx("button",{onClick:l.action,className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors text-left",children:l.label})},u))})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-medium mb-3 sm:mb-4 text-sm sm:text-base",children:"Services"}),f.jsx("ul",{className:"space-y-1.5 sm:space-y-2",children:i.services.map((l,u)=>f.jsx("li",{children:f.jsx("button",{onClick:l.action,className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors text-left",children:l.label})},u))})]})]}),f.jsx(zu,{className:"my-6 sm:my-8"}),f.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-center gap-3 sm:gap-4",children:[f.jsxs("p",{className:"text-xs sm:text-sm text-muted-foreground text-center sm:text-left",children:["© ",r," Sangwari Taxi. All rights reserved."]}),f.jsxs("div",{className:"flex gap-4 sm:gap-6",children:[f.jsx("button",{className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Terms"}),f.jsx("button",{className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Privacy"}),f.jsx("button",{className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Cookies"})]})]})]})]})}function _N(){return f.jsx(H.div,{className:"fixed bottom-4 right-4 sm:bottom-6 sm:right-6 z-50",initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{delay:1,type:"spring",stiffness:200,damping:20},whileHover:{scale:1.05},whileTap:{scale:.95},children:f.jsxs("div",{className:"relative bg-gradient-to-r from-green-500 to-green-600 rounded-full shadow-xl border-2 sm:border-4 border-white/30",children:[f.jsxs(ft,{size:"lg",className:"bg-transparent hover:bg-white/10 border-0 px-3 py-2 sm:px-4 sm:py-2 h-auto rounded-full",onClick:()=>window.open("tel:+91-7477247488","_self"),children:[f.jsx("div",{className:"mr-1 sm:mr-2",children:f.jsx(pn,{className:"h-4 w-4 sm:h-5 sm:w-5 text-white"})}),f.jsxs("div",{className:"text-white",children:[f.jsx("div",{className:"text-xs sm:text-sm font-bold",children:"Call to Book"}),f.jsx("div",{className:"text-xs opacity-90",children:"7477247488"})]})]}),f.jsx(H.div,{className:"absolute inset-0 rounded-full bg-green-400/50",animate:{scale:[1,1.5,1],opacity:[.7,0,.7]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}})]})})}function Rt({className:t,...r}){return f.jsx("div",{"data-slot":"card",className:pt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border",t),...r})}function gi({className:t,...r}){return f.jsx("div",{"data-slot":"card-header",className:pt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function yi({className:t,...r}){return f.jsx("h4",{"data-slot":"card-title",className:pt("leading-none",t),...r})}function Mt({className:t,...r}){return f.jsx("div",{"data-slot":"card-content",className:pt("px-6 [&:last-child]:pb-6",t),...r})}const ON=Ev("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function zo({className:t,variant:r,asChild:i=!1,...s}){const l=i?Tv:"span";return f.jsx(l,{"data-slot":"badge",className:pt(ON({variant:r}),t),...s})}const VN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";function Ld(t){const[r,i]=S.useState(!1),s=()=>{i(!0)},{src:l,alt:u,style:c,className:p,...m}=t;return r?f.jsx("div",{className:`inline-block bg-gray-100 text-center align-middle ${p??""}`,style:c,children:f.jsx("div",{className:"flex items-center justify-center w-full h-full",children:f.jsx("img",{src:VN,alt:"Error loading image",...m,"data-original-url":l})})}):f.jsx("img",{src:l,alt:u,className:p,style:c,...m,onError:s})}const FN=[{icon:Pi,title:"City Rides",description:"Quick and reliable transportation within the city. Perfect for daily commutes, shopping trips, and short-distance travel.",features:["24/7 availability","Real-time tracking","Customize price"],price:"Customize Price",image:"https://images.unsplash.com/photo-1675258333361-939f49c707c3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjaXR5JTIwdGF4aSUyMHVyYmFuJTIwdHJhbnNwb3J0fGVufDF8fHx8MTc1NTYwMDc5OXww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Yellow taxi in busy city street"},{icon:pN,title:"Airport Taxi",description:"Comfortable and punctual airport taxi services. Never miss a flight with our dedicated airport service.",features:["Flight monitoring","Meet & greet service","Fixed rate ₹1099"],price:"₹1099",image:"https://images.unsplash.com/photo-1733222012917-e9e74636080c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxhaXJwb3J0JTIwdHJhbnNmZXIlMjBjYXIlMjBzZXJ2aWNlfGVufDF8fHx8MTc1NTYwMDgwM3ww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Premium car at airport terminal"},{icon:tr,title:"Outstation",description:"Long-distance travel services for intercity trips. Comfortable rides for outstation journeys across India.",features:["All India coverage","Experienced drivers","Customize price"],price:"Customize Price",image:"https://images.unsplash.com/photo-1677475718181-dc19b4e12c5a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxvdXRzdGF0aW9uJTIwdHJhdmVsJTIwY2FyJTIwaGlnaHdheXxlbnwxfHx8fDE3NTY1Mzc1NjN8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Car on highway for outstation travel"},{icon:vN,title:"Mover and Packer",description:"Professional moving and packing services. Safe and secure transportation of your belongings with expert handling.",features:["Professional packing","Safe transportation","Customize price"],price:"Customize Price",image:"https://images.unsplash.com/photo-1707407087163-7ab35bca9ffc?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxtb3ZpbmclMjB0cnVjayUyMHBhY2tlciUyMHNlcnZpY2V8ZW58MXx8fHwxNzU2NTM3NTY2fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Moving truck and packing services"},{icon:F2,title:"Corporate Services",description:"Professional transportation solutions for businesses. Reliable service for meetings, events, and client visits.",features:["Corporate accounts","Invoicing","Customize price"],price:"Customize Price",image:"https://images.unsplash.com/photo-1748493536747-9af61d8b440a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjb3Jwb3JhdGUlMjBidXNpbmVzcyUyMGNhciUyMGV4ZWN1dGl2ZXxlbnwxfHx8fDE3NTU2MDA4MDZ8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Executive business car for corporate services"}],zN=[{icon:Mr,title:"Scheduled Rides",description:"Book your rides in advance for important appointments and events."},{icon:Dd,title:"Premium Protection",description:"Enhanced safety features and insurance coverage for peace of mind."}],BN={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},HN={hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}};function Gv(){return f.jsx("div",{className:"py-8 sm:py-12 lg:py-16",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs(H.div,{className:"text-center mb-8 sm:mb-10 lg:mb-12",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[f.jsx("h1",{className:"mb-3 sm:mb-4 text-2xl sm:text-3xl lg:text-4xl font-normal font-bold",children:"Our Services"}),f.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-muted-foreground max-w-3xl mx-auto px-4",children:"From daily commutes to special occasions, we provide reliable transportation solutions tailored to your needs with professional drivers and well-maintained vehicles."})]}),f.jsx(H.div,{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4 sm:gap-6 lg:gap-8 mb-8 sm:mb-10 lg:mb-12",variants:BN,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:FN.map((t,r)=>f.jsx(H.div,{variants:HN,whileHover:{y:-8,transition:{duration:.3}},children:f.jsxs(Rt,{className:"h-full overflow-hidden group hover:shadow-xl transition-all duration-300",children:[f.jsxs("div",{className:"relative h-40 sm:h-44 lg:h-48 overflow-hidden",children:[f.jsx(H.div,{className:"absolute inset-0",whileHover:{scale:1.1},transition:{duration:.4},children:f.jsx(Ld,{src:t.image,alt:t.imageAlt,className:"w-full h-full object-cover"})}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),f.jsx(H.div,{className:"absolute bottom-4 left-4",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},viewport:{once:!0},transition:{delay:r*.2+.5},children:f.jsx("div",{className:"w-12 h-12 bg-white/90 backdrop-blur-sm rounded-lg flex items-center justify-center",children:f.jsx(H.div,{animate:{rotate:[0,10,-10,0],scale:[1,1.1,1]},transition:{duration:4,repeat:1/0,ease:"easeInOut"},children:f.jsx(t.icon,{className:"h-6 w-6 text-primary"})})})}),f.jsx(H.div,{className:"absolute top-4 right-4",initial:{x:50,opacity:0},whileInView:{x:0,opacity:1},viewport:{once:!0},transition:{delay:r*.2+.3},children:f.jsx(zo,{className:"bg-white/90 text-foreground backdrop-blur-sm",children:t.price})})]}),f.jsx(gi,{children:f.jsx(H.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.2+.4},children:f.jsx(yi,{className:"group-hover:text-primary transition-colors font-bold",children:t.title})})}),f.jsxs(Mt,{className:"pt-0 px-4 sm:px-6",children:[f.jsx(H.p,{className:"text-muted-foreground mb-3 sm:mb-4 text-sm sm:text-base",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{delay:r*.2+.5},children:t.description}),f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.2+.6},children:[f.jsx("h4",{children:"Features:"}),f.jsx("ul",{className:"space-y-1",children:t.features.map((i,s)=>f.jsxs(H.li,{className:"flex items-center gap-2 text-sm text-muted-foreground",initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:r*.2+.7+s*.1},children:[f.jsx(H.div,{className:"w-1.5 h-1.5 bg-primary rounded-full",animate:{scale:[1,1.5,1],opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0,delay:s*.3}}),i]},s))})]})]})]})},r))}),f.jsxs(H.div,{className:"bg-muted/50 rounded-lg p-8",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:[f.jsx(H.h2,{className:"mb-6 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},children:"Additional Services"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:zN.map((t,r)=>f.jsxs(H.div,{className:"flex items-center gap-4 p-4 rounded-lg hover:bg-background/50 transition-colors group",initial:{opacity:0,x:r%2===0?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.4+r*.1},whileHover:{x:5},children:[f.jsx(H.div,{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0 group-hover:bg-primary/20 transition-colors",animate:{rotate:[0,360]},transition:{duration:20,repeat:1/0,ease:"linear"},children:f.jsx(t.icon,{className:"h-5 w-5 text-primary"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"mb-1 group-hover:text-primary transition-colors",children:t.title}),f.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]})]},r))})]}),f.jsxs(H.div,{className:"mt-12 text-center",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},children:[f.jsx(H.h2,{className:"mb-6",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.5},children:"Service Areas"}),f.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 max-w-2xl mx-auto",children:["Downtown","Airport","Suburbs","Business District","Universities","Shopping Centers","Hotels","Event Venues"].map((t,r)=>f.jsx(H.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.6+r*.05},whileHover:{scale:1.05,transition:{duration:.2}},children:f.jsx(zo,{variant:"outline",className:"py-2 justify-center hover:bg-primary hover:text-primary-foreground transition-colors",children:t})},r))})]})]})})}const UN=[{icon:Ei,number:"50,000+",label:"Happy Customers"},{icon:O2,number:"4.8/5",label:"Average Rating"},{icon:tr,number:"25+",label:"Cities Served"},{icon:Mr,number:"24/7",label:"Service Available"}],WN=[{title:"Safety First",description:"All our drivers undergo thorough background checks and vehicle inspections are conducted regularly."},{title:"Reliability",description:"We pride ourselves on punctuality and dependable service, ensuring you reach your destination on time."},{title:"Customer Focus",description:"Your comfort and satisfaction are our top priorities. We continuously improve based on your feedback."},{title:"Technology",description:"Using cutting-edge technology to provide seamless booking, tracking, and payment experiences."}],$N=[{name:"Sarah Johnson",role:"CEO & Founder",description:"15+ years in transportation industry"},{name:"Michael Chen",role:"Head of Operations",description:"Expert in logistics and fleet management"},{name:"Emily Davis",role:"Customer Success Manager",description:"Dedicated to exceptional customer experience"}];function KN(){return f.jsx("div",{className:"py-16",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs("div",{className:"text-center mb-16",children:[f.jsx("h1",{className:"mb-6 font-bold text-[40px]",children:"About Sangwari Taxi"}),f.jsx("div",{className:"max-w-4xl mx-auto mb-8",children:f.jsx("p",{className:"text-xl text-muted-foreground mb-6",children:"Welcome to Sangwari Taxi, where your safety, comfort, and convenience are our top priorities. Whether it’s a quick city ride, an outstation trip, or an airport transfer, we make every journey smooth, reliable, and stress-free."})}),f.jsx("div",{className:"relative h-64 md:h-96 rounded-lg overflow-hidden mb-8",children:f.jsx(Ld,{src:"https://images.unsplash.com/photo-1556075798-4825dfaaf498?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjb21wYW55JTIwdGVhbSUyMG9mZmljZXxlbnwxfHx8fDE3NTU1OTk5NTV8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",alt:"Sangwari Taxi team",className:"w-full h-full object-cover"})})]}),f.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-16",children:UN.map((t,r)=>f.jsx(Rt,{className:"text-center",children:f.jsxs(Mt,{className:"p-6",children:[f.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mx-auto mb-3",children:f.jsx(t.icon,{className:"h-6 w-6 text-primary"})}),f.jsx("div",{className:"text-2xl font-semibold mb-1",children:t.number}),f.jsx("p",{className:"text-sm text-muted-foreground",children:t.label})]})},r))}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:[f.jsx(Rt,{children:f.jsxs(Mt,{className:"p-8",children:[f.jsx("h2",{className:"mb-4",children:"Our Mission"}),f.jsx("p",{className:"text-muted-foreground",children:"To provide safe, reliable, and affordable transportation solutions that connect communities and enhance quality of life. We strive to make every journey comfortable, secure, and convenient for our customers."})]})}),f.jsx(Rt,{children:f.jsxs(Mt,{className:"p-8",children:[f.jsx("h2",{className:"mb-4",children:"Our Vision"}),f.jsx("p",{className:"text-muted-foreground",children:"To be the leading transportation platform that transforms how people move around cities. We envision a future where getting from point A to point B is seamless, sustainable, and accessible to everyone."})]})})]}),f.jsxs("div",{className:"mb-16",children:[f.jsx("h2",{className:"text-center mb-8",children:"Our Values"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:WN.map((t,r)=>f.jsxs("div",{className:"flex gap-4",children:[f.jsx("div",{className:"w-2 h-2 bg-primary rounded-full mt-3 flex-shrink-0"}),f.jsxs("div",{children:[f.jsx("h3",{className:"mb-2",children:t.title}),f.jsx("p",{className:"text-muted-foreground",children:t.description})]})]},r))})]}),f.jsxs("div",{className:"text-center",children:[f.jsx("h2",{className:"mb-8",children:"Leadership Team"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:$N.map((t,r)=>f.jsx(Rt,{children:f.jsxs(Mt,{className:"p-6 text-center",children:[f.jsx("div",{className:"w-20 h-20 bg-muted rounded-full mx-auto mb-4 flex items-center justify-center",children:f.jsx(Ei,{className:"h-10 w-10 text-muted-foreground"})}),f.jsx("h3",{className:"mb-1",children:t.name}),f.jsx(zo,{variant:"secondary",className:"mb-3",children:t.role}),f.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]})},r))})]})]})})}function Zn({className:t,type:r,...i}){return f.jsx("input",{type:r,"data-slot":"input",className:pt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...i})}var GN="Label",Yv=S.forwardRef((t,r)=>f.jsx(ze.label,{...t,ref:r,onMouseDown:i=>{i.target.closest("button, input, select, textarea")||(t.onMouseDown?.(i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));Yv.displayName=GN;var YN=Yv;function bt({className:t,...r}){return f.jsx(YN,{"data-slot":"label",className:pt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}function XN({className:t,...r}){return f.jsx("textarea",{"data-slot":"textarea",className:pt("resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-input-background px-3 py-2 text-base transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...r})}function vg(t,[r,i]){return Math.min(i,Math.max(r,t))}function Xe(t,r,{checkForDefaultPrevented:i=!0}={}){return function(l){if(t?.(l),i===!1||!l.defaultPrevented)return r?.(l)}}function _d(t,r=[]){let i=[];function s(u,c){const p=S.createContext(c),m=i.length;i=[...i,c];const g=v=>{const{scope:w,children:b,...T}=v,k=w?.[t]?.[m]||p,N=S.useMemo(()=>T,Object.values(T));return f.jsx(k.Provider,{value:N,children:b})};g.displayName=u+"Provider";function y(v,w){const b=w?.[t]?.[m]||p,T=S.useContext(b);if(T)return T;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${u}\``)}return[g,y]}const l=()=>{const u=i.map(c=>S.createContext(c));return function(p){const m=p?.[t]||u;return S.useMemo(()=>({[`__scope${t}`]:{...p,[t]:m}}),[p,m])}};return l.scopeName=t,[s,QN(l,...r)]}function QN(...t){const r=t[0];if(t.length===1)return r;const i=()=>{const s=t.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(u){const c=s.reduce((p,{useScope:m,scopeName:g})=>{const v=m(u)[`__scope${g}`];return{...p,...v}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:c}),[c])}};return i.scopeName=r.scopeName,i}function qN(t){const r=t+"CollectionProvider",[i,s]=_d(r),[l,u]=i(r,{collectionRef:{current:null},itemMap:new Map}),c=k=>{const{scope:N,children:P}=k,A=Xn.useRef(null),M=Xn.useRef(new Map).current;return f.jsx(l,{scope:N,itemMap:M,collectionRef:A,children:P})};c.displayName=r;const p=t+"CollectionSlot",m=Fo(p),g=Xn.forwardRef((k,N)=>{const{scope:P,children:A}=k,M=u(p,P),O=st(N,M.collectionRef);return f.jsx(m,{ref:O,children:A})});g.displayName=p;const y=t+"CollectionItemSlot",v="data-radix-collection-item",w=Fo(y),b=Xn.forwardRef((k,N)=>{const{scope:P,children:A,...M}=k,O=Xn.useRef(null),V=st(N,O),U=u(y,P);return Xn.useEffect(()=>(U.itemMap.set(O,{ref:O,...M}),()=>void U.itemMap.delete(O))),f.jsx(w,{[v]:"",ref:V,children:A})});b.displayName=y;function T(k){const N=u(t+"CollectionConsumer",k);return Xn.useCallback(()=>{const A=N.collectionRef.current;if(!A)return[];const M=Array.from(A.querySelectorAll(`[${v}]`));return Array.from(N.itemMap.values()).sort((U,z)=>M.indexOf(U.ref.current)-M.indexOf(z.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:c,Slot:g,ItemSlot:b},T,s]}var ZN=S.createContext(void 0);function JN(t){const r=S.useContext(ZN);return t||r||"ltr"}function Pr(t){const r=S.useRef(t);return S.useEffect(()=>{r.current=t}),S.useMemo(()=>(...i)=>r.current?.(...i),[])}function eT(t,r=globalThis?.document){const i=Pr(t);S.useEffect(()=>{const s=l=>{l.key==="Escape"&&i(l)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[i,r])}var tT="DismissableLayer",Bu="dismissableLayer.update",nT="dismissableLayer.pointerDownOutside",rT="dismissableLayer.focusOutside",xg,Xv=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qv=S.forwardRef((t,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,onDismiss:p,...m}=t,g=S.useContext(Xv),[y,v]=S.useState(null),w=y?.ownerDocument??globalThis?.document,[,b]=S.useState({}),T=st(r,z=>v(z)),k=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),P=k.indexOf(N),A=y?k.indexOf(y):-1,M=g.layersWithOutsidePointerEventsDisabled.size>0,O=A>=P,V=sT(z=>{const F=z.target,J=[...g.branches].some(ce=>ce.contains(F));!O||J||(l?.(z),c?.(z),z.defaultPrevented||p?.())},w),U=aT(z=>{const F=z.target;[...g.branches].some(ce=>ce.contains(F))||(u?.(z),c?.(z),z.defaultPrevented||p?.())},w);return eT(z=>{A===g.layers.size-1&&(s?.(z),!z.defaultPrevented&&p&&(z.preventDefault(),p()))},w),S.useEffect(()=>{if(y)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(xg=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),wg(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=xg)}},[y,w,i,g]),S.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),wg())},[y,g]),S.useEffect(()=>{const z=()=>b({});return document.addEventListener(Bu,z),()=>document.removeEventListener(Bu,z)},[]),f.jsx(ze.div,{...m,ref:T,style:{pointerEvents:M?O?"auto":"none":void 0,...t.style},onFocusCapture:Xe(t.onFocusCapture,U.onFocusCapture),onBlurCapture:Xe(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Xe(t.onPointerDownCapture,V.onPointerDownCapture)})});Qv.displayName=tT;var iT="DismissableLayerBranch",oT=S.forwardRef((t,r)=>{const i=S.useContext(Xv),s=S.useRef(null),l=st(r,s);return S.useEffect(()=>{const u=s.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),f.jsx(ze.div,{...t,ref:l})});oT.displayName=iT;function sT(t,r=globalThis?.document){const i=Pr(t),s=S.useRef(!1),l=S.useRef(()=>{});return S.useEffect(()=>{const u=p=>{if(p.target&&!s.current){let m=function(){qv(nT,i,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(r.removeEventListener("click",l.current),l.current=m,r.addEventListener("click",l.current,{once:!0})):m()}else r.removeEventListener("click",l.current);s.current=!1},c=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),r.removeEventListener("pointerdown",u),r.removeEventListener("click",l.current)}},[r,i]),{onPointerDownCapture:()=>s.current=!0}}function aT(t,r=globalThis?.document){const i=Pr(t),s=S.useRef(!1);return S.useEffect(()=>{const l=u=>{u.target&&!s.current&&qv(rT,i,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",l),()=>r.removeEventListener("focusin",l)},[r,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function wg(){const t=new CustomEvent(Bu);document.dispatchEvent(t)}function qv(t,r,i,{discrete:s}){const l=i.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});r&&l.addEventListener(t,r,{once:!0}),s?AN(l,u):l.dispatchEvent(u)}var su=0;function lT(){S.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Sg()),document.body.insertAdjacentElement("beforeend",t[1]??Sg()),su++,()=>{su===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),su--}},[])}function Sg(){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 au="focusScope.autoFocusOnMount",lu="focusScope.autoFocusOnUnmount",kg={bubbles:!1,cancelable:!0},cT="FocusScope",Zv=S.forwardRef((t,r)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...c}=t,[p,m]=S.useState(null),g=Pr(l),y=Pr(u),v=S.useRef(null),w=st(r,k=>m(k)),b=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(s){let k=function(M){if(b.paused||!p)return;const O=M.target;p.contains(O)?v.current=O:qn(v.current,{select:!0})},N=function(M){if(b.paused||!p)return;const O=M.relatedTarget;O!==null&&(p.contains(O)||qn(v.current,{select:!0}))},P=function(M){if(document.activeElement===document.body)for(const V of M)V.removedNodes.length>0&&qn(p)};document.addEventListener("focusin",k),document.addEventListener("focusout",N);const A=new MutationObserver(P);return p&&A.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",N),A.disconnect()}}},[s,p,b.paused]),S.useEffect(()=>{if(p){Cg.add(b);const k=document.activeElement;if(!p.contains(k)){const P=new CustomEvent(au,kg);p.addEventListener(au,g),p.dispatchEvent(P),P.defaultPrevented||(uT(mT(Jv(p)),{select:!0}),document.activeElement===k&&qn(p))}return()=>{p.removeEventListener(au,g),setTimeout(()=>{const P=new CustomEvent(lu,kg);p.addEventListener(lu,y),p.dispatchEvent(P),P.defaultPrevented||qn(k??document.body,{select:!0}),p.removeEventListener(lu,y),Cg.remove(b)},0)}}},[p,g,y,b]);const T=S.useCallback(k=>{if(!i&&!s||b.paused)return;const N=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,P=document.activeElement;if(N&&P){const A=k.currentTarget,[M,O]=dT(A);M&&O?!k.shiftKey&&P===O?(k.preventDefault(),i&&qn(M,{select:!0})):k.shiftKey&&P===M&&(k.preventDefault(),i&&qn(O,{select:!0})):P===A&&k.preventDefault()}},[i,s,b.paused]);return f.jsx(ze.div,{tabIndex:-1,...c,ref:w,onKeyDown:T})});Zv.displayName=cT;function uT(t,{select:r=!1}={}){const i=document.activeElement;for(const s of t)if(qn(s,{select:r}),document.activeElement!==i)return}function dT(t){const r=Jv(t),i=bg(r,t),s=bg(r.reverse(),t);return[i,s]}function Jv(t){const r=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)r.push(i.currentNode);return r}function bg(t,r){for(const i of t)if(!fT(i,{upTo:r}))return i}function fT(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function pT(t){return t instanceof HTMLInputElement&&"select"in t}function qn(t,{select:r=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&pT(t)&&r&&t.select()}}var Cg=hT();function hT(){let t=[];return{add(r){const i=t[0];r!==i&&i?.pause(),t=Ng(t,r),t.unshift(r)},remove(r){t=Ng(t,r),t[0]?.resume()}}}function Ng(t,r){const i=[...t],s=i.indexOf(r);return s!==-1&&i.splice(s,1),i}function mT(t){return t.filter(r=>r.tagName!=="A")}var Nt=globalThis?.document?S.useLayoutEffect:()=>{},gT=Kg[" useId ".trim().toString()]||(()=>{}),yT=0;function Od(t){const[r,i]=S.useState(gT());return Nt(()=>{i(s=>s??String(yT++))},[t]),t||(r?`radix-${r}`:"")}const vT=["top","right","bottom","left"],nr=Math.min,At=Math.max,Pa=Math.round,ua=Math.floor,fn=t=>({x:t,y:t}),xT={left:"right",right:"left",bottom:"top",top:"bottom"},wT={start:"end",end:"start"};function Hu(t,r,i){return At(t,nr(r,i))}function jn(t,r){return typeof t=="function"?t(r):t}function Pn(t){return t.split("-")[0]}function Ai(t){return t.split("-")[1]}function Vd(t){return t==="x"?"y":"x"}function Fd(t){return t==="y"?"height":"width"}const ST=new Set(["top","bottom"]);function cn(t){return ST.has(Pn(t))?"y":"x"}function zd(t){return Vd(cn(t))}function kT(t,r,i){i===void 0&&(i=!1);const s=Ai(t),l=zd(t),u=Fd(l);let c=l==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=Ea(c)),[c,Ea(c)]}function bT(t){const r=Ea(t);return[Uu(t),r,Uu(r)]}function Uu(t){return t.replace(/start|end/g,r=>wT[r])}const Tg=["left","right"],jg=["right","left"],CT=["top","bottom"],NT=["bottom","top"];function TT(t,r,i){switch(t){case"top":case"bottom":return i?r?jg:Tg:r?Tg:jg;case"left":case"right":return r?CT:NT;default:return[]}}function jT(t,r,i,s){const l=Ai(t);let u=TT(Pn(t),i==="start",s);return l&&(u=u.map(c=>c+"-"+l),r&&(u=u.concat(u.map(Uu)))),u}function Ea(t){return t.replace(/left|right|bottom|top/g,r=>xT[r])}function PT(t){return{top:0,right:0,bottom:0,left:0,...t}}function e0(t){return typeof t!="number"?PT(t):{top:t,right:t,bottom:t,left:t}}function Aa(t){const{x:r,y:i,width:s,height:l}=t;return{width:s,height:l,top:i,left:r,right:r+s,bottom:i+l,x:r,y:i}}function Pg(t,r,i){let{reference:s,floating:l}=t;const u=cn(r),c=zd(r),p=Fd(c),m=Pn(r),g=u==="y",y=s.x+s.width/2-l.width/2,v=s.y+s.height/2-l.height/2,w=s[p]/2-l[p]/2;let b;switch(m){case"top":b={x:y,y:s.y-l.height};break;case"bottom":b={x:y,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:v};break;case"left":b={x:s.x-l.width,y:v};break;default:b={x:s.x,y:s.y}}switch(Ai(r)){case"start":b[c]-=w*(i&&g?-1:1);break;case"end":b[c]+=w*(i&&g?-1:1);break}return b}const ET=async(t,r,i)=>{const{placement:s="bottom",strategy:l="absolute",middleware:u=[],platform:c}=i,p=u.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(r));let g=await c.getElementRects({reference:t,floating:r,strategy:l}),{x:y,y:v}=Pg(g,s,m),w=s,b={},T=0;for(let k=0;k<p.length;k++){const{name:N,fn:P}=p[k],{x:A,y:M,data:O,reset:V}=await P({x:y,y:v,initialPlacement:s,placement:w,strategy:l,middlewareData:b,rects:g,platform:c,elements:{reference:t,floating:r}});y=A??y,v=M??v,b={...b,[N]:{...b[N],...O}},V&&T<=50&&(T++,typeof V=="object"&&(V.placement&&(w=V.placement),V.rects&&(g=V.rects===!0?await c.getElementRects({reference:t,floating:r,strategy:l}):V.rects),{x:y,y:v}=Pg(g,w,m)),k=-1)}return{x:y,y:v,placement:w,strategy:l,middlewareData:b}};async function Bo(t,r){var i;r===void 0&&(r={});const{x:s,y:l,platform:u,rects:c,elements:p,strategy:m}=t,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:w=!1,padding:b=0}=jn(r,t),T=e0(b),N=p[w?v==="floating"?"reference":"floating":v],P=Aa(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(N)))==null||i?N:N.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(p.floating)),boundary:g,rootBoundary:y,strategy:m})),A=v==="floating"?{x:s,y:l,width:c.floating.width,height:c.floating.height}:c.reference,M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),O=await(u.isElement==null?void 0:u.isElement(M))?await(u.getScale==null?void 0:u.getScale(M))||{x:1,y:1}:{x:1,y:1},V=Aa(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:A,offsetParent:M,strategy:m}):A);return{top:(P.top-V.top+T.top)/O.y,bottom:(V.bottom-P.bottom+T.bottom)/O.y,left:(P.left-V.left+T.left)/O.x,right:(V.right-P.right+T.right)/O.x}}const AT=t=>({name:"arrow",options:t,async fn(r){const{x:i,y:s,placement:l,rects:u,platform:c,elements:p,middlewareData:m}=r,{element:g,padding:y=0}=jn(t,r)||{};if(g==null)return{};const v=e0(y),w={x:i,y:s},b=zd(l),T=Fd(b),k=await c.getDimensions(g),N=b==="y",P=N?"top":"left",A=N?"bottom":"right",M=N?"clientHeight":"clientWidth",O=u.reference[T]+u.reference[b]-w[b]-u.floating[T],V=w[b]-u.reference[b],U=await(c.getOffsetParent==null?void 0:c.getOffsetParent(g));let z=U?U[M]:0;(!z||!await(c.isElement==null?void 0:c.isElement(U)))&&(z=p.floating[M]||u.floating[T]);const F=O/2-V/2,J=z/2-k[T]/2-1,ce=nr(v[P],J),ye=nr(v[A],J),xe=ce,me=z-k[T]-ye,pe=z/2-k[T]/2+F,we=Hu(xe,pe,me),se=!m.arrow&&Ai(l)!=null&&pe!==we&&u.reference[T]/2-(pe<xe?ce:ye)-k[T]/2<0,q=se?pe<xe?pe-xe:pe-me:0;return{[b]:w[b]+q,data:{[b]:we,centerOffset:pe-we-q,...se&&{alignmentOffset:q}},reset:se}}}),RT=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var i,s;const{placement:l,middlewareData:u,rects:c,initialPlacement:p,platform:m,elements:g}=r,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:k=!0,...N}=jn(t,r);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const P=Pn(l),A=cn(p),M=Pn(p)===p,O=await(m.isRTL==null?void 0:m.isRTL(g.floating)),V=w||(M||!k?[Ea(p)]:bT(p)),U=T!=="none";!w&&U&&V.push(...jT(p,k,T,O));const z=[p,...V],F=await Bo(r,N),J=[];let ce=((s=u.flip)==null?void 0:s.overflows)||[];if(y&&J.push(F[P]),v){const pe=kT(l,c,O);J.push(F[pe[0]],F[pe[1]])}if(ce=[...ce,{placement:l,overflows:J}],!J.every(pe=>pe<=0)){var ye,xe;const pe=(((ye=u.flip)==null?void 0:ye.index)||0)+1,we=z[pe];if(we&&(!(v==="alignment"?A!==cn(we):!1)||ce.every(I=>cn(I.placement)===A?I.overflows[0]>0:!0)))return{data:{index:pe,overflows:ce},reset:{placement:we}};let se=(xe=ce.filter(q=>q.overflows[0]<=0).sort((q,I)=>q.overflows[1]-I.overflows[1])[0])==null?void 0:xe.placement;if(!se)switch(b){case"bestFit":{var me;const q=(me=ce.filter(I=>{if(U){const Q=cn(I.placement);return Q===A||Q==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(Q=>Q>0).reduce((Q,Y)=>Q+Y,0)]).sort((I,Q)=>I[1]-Q[1])[0])==null?void 0:me[0];q&&(se=q);break}case"initialPlacement":se=p;break}if(l!==se)return{reset:{placement:se}}}return{}}}};function Eg(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function Ag(t){return vT.some(r=>t[r]>=0)}const MT=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:i}=r,{strategy:s="referenceHidden",...l}=jn(t,r);switch(s){case"referenceHidden":{const u=await Bo(r,{...l,elementContext:"reference"}),c=Eg(u,i.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Ag(c)}}}case"escaped":{const u=await Bo(r,{...l,altBoundary:!0}),c=Eg(u,i.floating);return{data:{escapedOffsets:c,escaped:Ag(c)}}}default:return{}}}}},t0=new Set(["left","top"]);async function IT(t,r){const{placement:i,platform:s,elements:l}=t,u=await(s.isRTL==null?void 0:s.isRTL(l.floating)),c=Pn(i),p=Ai(i),m=cn(i)==="y",g=t0.has(c)?-1:1,y=u&&m?-1:1,v=jn(r,t);let{mainAxis:w,crossAxis:b,alignmentAxis:T}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return p&&typeof T=="number"&&(b=p==="end"?T*-1:T),m?{x:b*y,y:w*g}:{x:w*g,y:b*y}}const DT=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var i,s;const{x:l,y:u,placement:c,middlewareData:p}=r,m=await IT(r,t);return c===((i=p.offset)==null?void 0:i.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:l+m.x,y:u+m.y,data:{...m,placement:c}}}}},LT=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:i,y:s,placement:l}=r,{mainAxis:u=!0,crossAxis:c=!1,limiter:p={fn:N=>{let{x:P,y:A}=N;return{x:P,y:A}}},...m}=jn(t,r),g={x:i,y:s},y=await Bo(r,m),v=cn(Pn(l)),w=Vd(v);let b=g[w],T=g[v];if(u){const N=w==="y"?"top":"left",P=w==="y"?"bottom":"right",A=b+y[N],M=b-y[P];b=Hu(A,b,M)}if(c){const N=v==="y"?"top":"left",P=v==="y"?"bottom":"right",A=T+y[N],M=T-y[P];T=Hu(A,T,M)}const k=p.fn({...r,[w]:b,[v]:T});return{...k,data:{x:k.x-i,y:k.y-s,enabled:{[w]:u,[v]:c}}}}}},_T=function(t){return t===void 0&&(t={}),{options:t,fn(r){const{x:i,y:s,placement:l,rects:u,middlewareData:c}=r,{offset:p=0,mainAxis:m=!0,crossAxis:g=!0}=jn(t,r),y={x:i,y:s},v=cn(l),w=Vd(v);let b=y[w],T=y[v];const k=jn(p,r),N=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(m){const M=w==="y"?"height":"width",O=u.reference[w]-u.floating[M]+N.mainAxis,V=u.reference[w]+u.reference[M]-N.mainAxis;b<O?b=O:b>V&&(b=V)}if(g){var P,A;const M=w==="y"?"width":"height",O=t0.has(Pn(l)),V=u.reference[v]-u.floating[M]+(O&&((P=c.offset)==null?void 0:P[v])||0)+(O?0:N.crossAxis),U=u.reference[v]+u.reference[M]+(O?0:((A=c.offset)==null?void 0:A[v])||0)-(O?N.crossAxis:0);T<V?T=V:T>U&&(T=U)}return{[w]:b,[v]:T}}}},OT=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var i,s;const{placement:l,rects:u,platform:c,elements:p}=r,{apply:m=()=>{},...g}=jn(t,r),y=await Bo(r,g),v=Pn(l),w=Ai(l),b=cn(l)==="y",{width:T,height:k}=u.floating;let N,P;v==="top"||v==="bottom"?(N=v,P=w===(await(c.isRTL==null?void 0:c.isRTL(p.floating))?"start":"end")?"left":"right"):(P=v,N=w==="end"?"top":"bottom");const A=k-y.top-y.bottom,M=T-y.left-y.right,O=nr(k-y[N],A),V=nr(T-y[P],M),U=!r.middlewareData.shift;let z=O,F=V;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(F=M),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(z=A),U&&!w){const ce=At(y.left,0),ye=At(y.right,0),xe=At(y.top,0),me=At(y.bottom,0);b?F=T-2*(ce!==0||ye!==0?ce+ye:At(y.left,y.right)):z=k-2*(xe!==0||me!==0?xe+me:At(y.top,y.bottom))}await m({...r,availableWidth:F,availableHeight:z});const J=await c.getDimensions(p.floating);return T!==J.width||k!==J.height?{reset:{rects:!0}}:{}}}};function Fa(){return typeof window<"u"}function Ri(t){return n0(t)?(t.nodeName||"").toLowerCase():"#document"}function It(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function mn(t){var r;return(r=(n0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function n0(t){return Fa()?t instanceof Node||t instanceof It(t).Node:!1}function en(t){return Fa()?t instanceof Element||t instanceof It(t).Element:!1}function hn(t){return Fa()?t instanceof HTMLElement||t instanceof It(t).HTMLElement:!1}function Rg(t){return!Fa()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof It(t).ShadowRoot}const VT=new Set(["inline","contents"]);function Yo(t){const{overflow:r,overflowX:i,overflowY:s,display:l}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(r+s+i)&&!VT.has(l)}const FT=new Set(["table","td","th"]);function zT(t){return FT.has(Ri(t))}const BT=[":popover-open",":modal"];function za(t){return BT.some(r=>{try{return t.matches(r)}catch{return!1}})}const HT=["transform","translate","scale","rotate","perspective"],UT=["transform","translate","scale","rotate","perspective","filter"],WT=["paint","layout","strict","content"];function Bd(t){const r=Hd(),i=en(t)?tn(t):t;return HT.some(s=>i[s]?i[s]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!r&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!r&&(i.filter?i.filter!=="none":!1)||UT.some(s=>(i.willChange||"").includes(s))||WT.some(s=>(i.contain||"").includes(s))}function $T(t){let r=rr(t);for(;hn(r)&&!ki(r);){if(Bd(r))return r;if(za(r))return null;r=rr(r)}return null}function Hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const KT=new Set(["html","body","#document"]);function ki(t){return KT.has(Ri(t))}function tn(t){return It(t).getComputedStyle(t)}function Ba(t){return en(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function rr(t){if(Ri(t)==="html")return t;const r=t.assignedSlot||t.parentNode||Rg(t)&&t.host||mn(t);return Rg(r)?r.host:r}function r0(t){const r=rr(t);return ki(r)?t.ownerDocument?t.ownerDocument.body:t.body:hn(r)&&Yo(r)?r:r0(r)}function Ho(t,r,i){var s;r===void 0&&(r=[]),i===void 0&&(i=!0);const l=r0(t),u=l===((s=t.ownerDocument)==null?void 0:s.body),c=It(l);if(u){const p=Wu(c);return r.concat(c,c.visualViewport||[],Yo(l)?l:[],p&&i?Ho(p):[])}return r.concat(l,Ho(l,[],i))}function Wu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function i0(t){const r=tn(t);let i=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const l=hn(t),u=l?t.offsetWidth:i,c=l?t.offsetHeight:s,p=Pa(i)!==u||Pa(s)!==c;return p&&(i=u,s=c),{width:i,height:s,$:p}}function Ud(t){return en(t)?t:t.contextElement}function vi(t){const r=Ud(t);if(!hn(r))return fn(1);const i=r.getBoundingClientRect(),{width:s,height:l,$:u}=i0(r);let c=(u?Pa(i.width):i.width)/s,p=(u?Pa(i.height):i.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!p||!Number.isFinite(p))&&(p=1),{x:c,y:p}}const GT=fn(0);function o0(t){const r=It(t);return!Hd()||!r.visualViewport?GT:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function YT(t,r,i){return r===void 0&&(r=!1),!i||r&&i!==It(t)?!1:r}function Er(t,r,i,s){r===void 0&&(r=!1),i===void 0&&(i=!1);const l=t.getBoundingClientRect(),u=Ud(t);let c=fn(1);r&&(s?en(s)&&(c=vi(s)):c=vi(t));const p=YT(u,i,s)?o0(u):fn(0);let m=(l.left+p.x)/c.x,g=(l.top+p.y)/c.y,y=l.width/c.x,v=l.height/c.y;if(u){const w=It(u),b=s&&en(s)?It(s):s;let T=w,k=Wu(T);for(;k&&s&&b!==T;){const N=vi(k),P=k.getBoundingClientRect(),A=tn(k),M=P.left+(k.clientLeft+parseFloat(A.paddingLeft))*N.x,O=P.top+(k.clientTop+parseFloat(A.paddingTop))*N.y;m*=N.x,g*=N.y,y*=N.x,v*=N.y,m+=M,g+=O,T=It(k),k=Wu(T)}}return Aa({width:y,height:v,x:m,y:g})}function Ha(t,r){const i=Ba(t).scrollLeft;return r?r.left+i:Er(mn(t)).left+i}function s0(t,r){const i=t.getBoundingClientRect(),s=i.left+r.scrollLeft-Ha(t,i),l=i.top+r.scrollTop;return{x:s,y:l}}function XT(t){let{elements:r,rect:i,offsetParent:s,strategy:l}=t;const u=l==="fixed",c=mn(s),p=r?za(r.floating):!1;if(s===c||p&&u)return i;let m={scrollLeft:0,scrollTop:0},g=fn(1);const y=fn(0),v=hn(s);if((v||!v&&!u)&&((Ri(s)!=="body"||Yo(c))&&(m=Ba(s)),hn(s))){const b=Er(s);g=vi(s),y.x=b.x+s.clientLeft,y.y=b.y+s.clientTop}const w=c&&!v&&!u?s0(c,m):fn(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-m.scrollLeft*g.x+y.x+w.x,y:i.y*g.y-m.scrollTop*g.y+y.y+w.y}}function QT(t){return Array.from(t.getClientRects())}function qT(t){const r=mn(t),i=Ba(t),s=t.ownerDocument.body,l=At(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=At(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let c=-i.scrollLeft+Ha(t);const p=-i.scrollTop;return tn(s).direction==="rtl"&&(c+=At(r.clientWidth,s.clientWidth)-l),{width:l,height:u,x:c,y:p}}const Mg=25;function ZT(t,r){const i=It(t),s=mn(t),l=i.visualViewport;let u=s.clientWidth,c=s.clientHeight,p=0,m=0;if(l){u=l.width,c=l.height;const y=Hd();(!y||y&&r==="fixed")&&(p=l.offsetLeft,m=l.offsetTop)}const g=Ha(s);if(g<=0){const y=s.ownerDocument,v=y.body,w=getComputedStyle(v),b=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,T=Math.abs(s.clientWidth-v.clientWidth-b);T<=Mg&&(u-=T)}else g<=Mg&&(u+=g);return{width:u,height:c,x:p,y:m}}const JT=new Set(["absolute","fixed"]);function ej(t,r){const i=Er(t,!0,r==="fixed"),s=i.top+t.clientTop,l=i.left+t.clientLeft,u=hn(t)?vi(t):fn(1),c=t.clientWidth*u.x,p=t.clientHeight*u.y,m=l*u.x,g=s*u.y;return{width:c,height:p,x:m,y:g}}function Ig(t,r,i){let s;if(r==="viewport")s=ZT(t,i);else if(r==="document")s=qT(mn(t));else if(en(r))s=ej(r,i);else{const l=o0(t);s={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return Aa(s)}function a0(t,r){const i=rr(t);return i===r||!en(i)||ki(i)?!1:tn(i).position==="fixed"||a0(i,r)}function tj(t,r){const i=r.get(t);if(i)return i;let s=Ho(t,[],!1).filter(p=>en(p)&&Ri(p)!=="body"),l=null;const u=tn(t).position==="fixed";let c=u?rr(t):t;for(;en(c)&&!ki(c);){const p=tn(c),m=Bd(c);!m&&p.position==="fixed"&&(l=null),(u?!m&&!l:!m&&p.position==="static"&&!!l&&JT.has(l.position)||Yo(c)&&!m&&a0(t,c))?s=s.filter(y=>y!==c):l=p,c=rr(c)}return r.set(t,s),s}function nj(t){let{element:r,boundary:i,rootBoundary:s,strategy:l}=t;const c=[...i==="clippingAncestors"?za(r)?[]:tj(r,this._c):[].concat(i),s],p=c[0],m=c.reduce((g,y)=>{const v=Ig(r,y,l);return g.top=At(v.top,g.top),g.right=nr(v.right,g.right),g.bottom=nr(v.bottom,g.bottom),g.left=At(v.left,g.left),g},Ig(r,p,l));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function rj(t){const{width:r,height:i}=i0(t);return{width:r,height:i}}function ij(t,r,i){const s=hn(r),l=mn(r),u=i==="fixed",c=Er(t,!0,u,r);let p={scrollLeft:0,scrollTop:0};const m=fn(0);function g(){m.x=Ha(l)}if(s||!s&&!u)if((Ri(r)!=="body"||Yo(l))&&(p=Ba(r)),s){const b=Er(r,!0,u,r);m.x=b.x+r.clientLeft,m.y=b.y+r.clientTop}else l&&g();u&&!s&&l&&g();const y=l&&!s&&!u?s0(l,p):fn(0),v=c.left+p.scrollLeft-m.x-y.x,w=c.top+p.scrollTop-m.y-y.y;return{x:v,y:w,width:c.width,height:c.height}}function cu(t){return tn(t).position==="static"}function Dg(t,r){if(!hn(t)||tn(t).position==="fixed")return null;if(r)return r(t);let i=t.offsetParent;return mn(t)===i&&(i=i.ownerDocument.body),i}function l0(t,r){const i=It(t);if(za(t))return i;if(!hn(t)){let l=rr(t);for(;l&&!ki(l);){if(en(l)&&!cu(l))return l;l=rr(l)}return i}let s=Dg(t,r);for(;s&&zT(s)&&cu(s);)s=Dg(s,r);return s&&ki(s)&&cu(s)&&!Bd(s)?i:s||$T(t)||i}const oj=async function(t){const r=this.getOffsetParent||l0,i=this.getDimensions,s=await i(t.floating);return{reference:ij(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function sj(t){return tn(t).direction==="rtl"}const aj={convertOffsetParentRelativeRectToViewportRelativeRect:XT,getDocumentElement:mn,getClippingRect:nj,getOffsetParent:l0,getElementRects:oj,getClientRects:QT,getDimensions:rj,getScale:vi,isElement:en,isRTL:sj};function c0(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function lj(t,r){let i=null,s;const l=mn(t);function u(){var p;clearTimeout(s),(p=i)==null||p.disconnect(),i=null}function c(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),u();const g=t.getBoundingClientRect(),{left:y,top:v,width:w,height:b}=g;if(p||r(),!w||!b)return;const T=ua(v),k=ua(l.clientWidth-(y+w)),N=ua(l.clientHeight-(v+b)),P=ua(y),M={rootMargin:-T+"px "+-k+"px "+-N+"px "+-P+"px",threshold:At(0,nr(1,m))||1};let O=!0;function V(U){const z=U[0].intersectionRatio;if(z!==m){if(!O)return c();z?c(!1,z):s=setTimeout(()=>{c(!1,1e-7)},1e3)}z===1&&!c0(g,t.getBoundingClientRect())&&c(),O=!1}try{i=new IntersectionObserver(V,{...M,root:l.ownerDocument})}catch{i=new IntersectionObserver(V,M)}i.observe(t)}return c(!0),u}function cj(t,r,i,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:m=!1}=s,g=Ud(t),y=l||u?[...g?Ho(g):[],...Ho(r)]:[];y.forEach(P=>{l&&P.addEventListener("scroll",i,{passive:!0}),u&&P.addEventListener("resize",i)});const v=g&&p?lj(g,i):null;let w=-1,b=null;c&&(b=new ResizeObserver(P=>{let[A]=P;A&&A.target===g&&b&&(b.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=b)==null||M.observe(r)})),i()}),g&&!m&&b.observe(g),b.observe(r));let T,k=m?Er(t):null;m&&N();function N(){const P=Er(t);k&&!c0(k,P)&&i(),k=P,T=requestAnimationFrame(N)}return i(),()=>{var P;y.forEach(A=>{l&&A.removeEventListener("scroll",i),u&&A.removeEventListener("resize",i)}),v?.(),(P=b)==null||P.disconnect(),b=null,m&&cancelAnimationFrame(T)}}const uj=DT,dj=LT,fj=RT,pj=OT,hj=MT,Lg=AT,mj=_T,gj=(t,r,i)=>{const s=new Map,l={platform:aj,...i},u={...l.platform,_c:s};return ET(t,r,{...l,platform:u})};var yj=typeof document<"u",vj=function(){},wa=yj?S.useLayoutEffect:vj;function Ra(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let i,s,l;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(i=t.length,i!==r.length)return!1;for(s=i;s--!==0;)if(!Ra(t[s],r[s]))return!1;return!0}if(l=Object.keys(t),i=l.length,i!==Object.keys(r).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(r,l[s]))return!1;for(s=i;s--!==0;){const u=l[s];if(!(u==="_owner"&&t.$$typeof)&&!Ra(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}function u0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function _g(t,r){const i=u0(t);return Math.round(r*i)/i}function uu(t){const r=S.useRef(t);return wa(()=>{r.current=t}),r}function xj(t){t===void 0&&(t={});const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l,elements:{reference:u,floating:c}={},transform:p=!0,whileElementsMounted:m,open:g}=t,[y,v]=S.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),[w,b]=S.useState(s);Ra(w,s)||b(s);const[T,k]=S.useState(null),[N,P]=S.useState(null),A=S.useCallback(I=>{I!==U.current&&(U.current=I,k(I))},[]),M=S.useCallback(I=>{I!==z.current&&(z.current=I,P(I))},[]),O=u||T,V=c||N,U=S.useRef(null),z=S.useRef(null),F=S.useRef(y),J=m!=null,ce=uu(m),ye=uu(l),xe=uu(g),me=S.useCallback(()=>{if(!U.current||!z.current)return;const I={placement:r,strategy:i,middleware:w};ye.current&&(I.platform=ye.current),gj(U.current,z.current,I).then(Q=>{const Y={...Q,isPositioned:xe.current!==!1};pe.current&&!Ra(F.current,Y)&&(F.current=Y,Go.flushSync(()=>{v(Y)}))})},[w,r,i,ye,xe]);wa(()=>{g===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,v(I=>({...I,isPositioned:!1})))},[g]);const pe=S.useRef(!1);wa(()=>(pe.current=!0,()=>{pe.current=!1}),[]),wa(()=>{if(O&&(U.current=O),V&&(z.current=V),O&&V){if(ce.current)return ce.current(O,V,me);me()}},[O,V,me,ce,J]);const we=S.useMemo(()=>({reference:U,floating:z,setReference:A,setFloating:M}),[A,M]),se=S.useMemo(()=>({reference:O,floating:V}),[O,V]),q=S.useMemo(()=>{const I={position:i,left:0,top:0};if(!se.floating)return I;const Q=_g(se.floating,y.x),Y=_g(se.floating,y.y);return p?{...I,transform:"translate("+Q+"px, "+Y+"px)",...u0(se.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:Q,top:Y}},[i,p,se.floating,y.x,y.y]);return S.useMemo(()=>({...y,update:me,refs:we,elements:se,floatingStyles:q}),[y,me,we,se,q])}const wj=t=>{function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){const{element:s,padding:l}=typeof t=="function"?t(i):t;return s&&r(s)?s.current!=null?Lg({element:s.current,padding:l}).fn(i):{}:s?Lg({element:s,padding:l}).fn(i):{}}}},Sj=(t,r)=>({...uj(t),options:[t,r]}),kj=(t,r)=>({...dj(t),options:[t,r]}),bj=(t,r)=>({...mj(t),options:[t,r]}),Cj=(t,r)=>({...fj(t),options:[t,r]}),Nj=(t,r)=>({...pj(t),options:[t,r]}),Tj=(t,r)=>({...hj(t),options:[t,r]}),jj=(t,r)=>({...wj(t),options:[t,r]});var Pj="Arrow",d0=S.forwardRef((t,r)=>{const{children:i,width:s=10,height:l=5,...u}=t;return f.jsx(ze.svg,{...u,ref:r,width:s,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?i:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});d0.displayName=Pj;var Ej=d0;function Aj(t){const[r,i]=S.useState(void 0);return Nt(()=>{if(t){i({width:t.offsetWidth,height:t.offsetHeight});const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let c,p;if("borderBoxSize"in u){const m=u.borderBoxSize,g=Array.isArray(m)?m[0]:m;c=g.inlineSize,p=g.blockSize}else c=t.offsetWidth,p=t.offsetHeight;i({width:c,height:p})});return s.observe(t,{box:"border-box"}),()=>s.unobserve(t)}else i(void 0)},[t]),r}var Wd="Popper",[f0,p0]=_d(Wd),[Rj,h0]=f0(Wd),m0=t=>{const{__scopePopper:r,children:i}=t,[s,l]=S.useState(null);return f.jsx(Rj,{scope:r,anchor:s,onAnchorChange:l,children:i})};m0.displayName=Wd;var g0="PopperAnchor",y0=S.forwardRef((t,r)=>{const{__scopePopper:i,virtualRef:s,...l}=t,u=h0(g0,i),c=S.useRef(null),p=st(r,c),m=S.useRef(null);return S.useEffect(()=>{const g=m.current;m.current=s?.current||c.current,g!==m.current&&u.onAnchorChange(m.current)}),s?null:f.jsx(ze.div,{...l,ref:p})});y0.displayName=g0;var $d="PopperContent",[Mj,Ij]=f0($d),v0=S.forwardRef((t,r)=>{const{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:c=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:w=!1,updatePositionStrategy:b="optimized",onPlaced:T,...k}=t,N=h0($d,i),[P,A]=S.useState(null),M=st(r,G=>A(G)),[O,V]=S.useState(null),U=Aj(O),z=U?.width??0,F=U?.height??0,J=s+(u!=="center"?"-"+u:""),ce=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ye=Array.isArray(g)?g:[g],xe=ye.length>0,me={padding:ce,boundary:ye.filter(Lj),altBoundary:xe},{refs:pe,floatingStyles:we,placement:se,isPositioned:q,middlewareData:I}=xj({strategy:"fixed",placement:J,whileElementsMounted:(...G)=>cj(...G,{animationFrame:b==="always"}),elements:{reference:N.anchor},middleware:[Sj({mainAxis:l+F,alignmentAxis:c}),m&&kj({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?bj():void 0,...me}),m&&Cj({...me}),Nj({...me,apply:({elements:G,rects:ue,availableWidth:ve,availableHeight:ke})=>{const{width:Te,height:Re}=ue.reference,nt=G.floating.style;nt.setProperty("--radix-popper-available-width",`${ve}px`),nt.setProperty("--radix-popper-available-height",`${ke}px`),nt.setProperty("--radix-popper-anchor-width",`${Te}px`),nt.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),O&&jj({element:O,padding:p}),_j({arrowWidth:z,arrowHeight:F}),w&&Tj({strategy:"referenceHidden",...me})]}),[Q,Y]=S0(se),R=Pr(T);Nt(()=>{q&&R?.()},[q,R]);const B=I.arrow?.x,oe=I.arrow?.y,ae=I.arrow?.centerOffset!==0,[Se,be]=S.useState();return Nt(()=>{P&&be(window.getComputedStyle(P).zIndex)},[P]),f.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...we,transform:q?we.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:f.jsx(Mj,{scope:i,placedSide:Q,onArrowChange:V,arrowX:B,arrowY:oe,shouldHideArrow:ae,children:f.jsx(ze.div,{"data-side":Q,"data-align":Y,...k,ref:M,style:{...k.style,animation:q?void 0:"none"}})})})});v0.displayName=$d;var x0="PopperArrow",Dj={top:"bottom",right:"left",bottom:"top",left:"right"},w0=S.forwardRef(function(r,i){const{__scopePopper:s,...l}=r,u=Ij(x0,s),c=Dj[u.placedSide];return f.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:f.jsx(Ej,{...l,ref:i,style:{...l.style,display:"block"}})})});w0.displayName=x0;function Lj(t){return t!==null}var _j=t=>({name:"transformOrigin",options:t,fn(r){const{placement:i,rects:s,middlewareData:l}=r,c=l.arrow?.centerOffset!==0,p=c?0:t.arrowWidth,m=c?0:t.arrowHeight,[g,y]=S0(i),v={start:"0%",center:"50%",end:"100%"}[y],w=(l.arrow?.x??0)+p/2,b=(l.arrow?.y??0)+m/2;let T="",k="";return g==="bottom"?(T=c?v:`${w}px`,k=`${-m}px`):g==="top"?(T=c?v:`${w}px`,k=`${s.floating.height+m}px`):g==="right"?(T=`${-m}px`,k=c?v:`${b}px`):g==="left"&&(T=`${s.floating.width+m}px`,k=c?v:`${b}px`),{data:{x:T,y:k}}}});function S0(t){const[r,i="center"]=t.split("-");return[r,i]}var Oj=m0,Vj=y0,Fj=v0,zj=w0,Bj="Portal",k0=S.forwardRef((t,r)=>{const{container:i,...s}=t,[l,u]=S.useState(!1);Nt(()=>u(!0),[]);const c=i||l&&globalThis?.document?.body;return c?PN.createPortal(f.jsx(ze.div,{...s,ref:r}),c):null});k0.displayName=Bj;var Hj=Kg[" useInsertionEffect ".trim().toString()]||Nt;function Og({prop:t,defaultProp:r,onChange:i=()=>{},caller:s}){const[l,u,c]=Uj({defaultProp:r,onChange:i}),p=t!==void 0,m=p?t:l;{const y=S.useRef(t!==void 0);S.useEffect(()=>{const v=y.current;v!==p&&console.warn(`${s} is changing from ${v?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=p},[p,s])}const g=S.useCallback(y=>{if(p){const v=Wj(y)?y(t):y;v!==t&&c.current?.(v)}else u(y)},[p,t,u,c]);return[m,g]}function Uj({defaultProp:t,onChange:r}){const[i,s]=S.useState(t),l=S.useRef(i),u=S.useRef(r);return Hj(()=>{u.current=r},[r]),S.useEffect(()=>{l.current!==i&&(u.current?.(i),l.current=i)},[i,l]),[i,s,u]}function Wj(t){return typeof t=="function"}function $j(t){const r=S.useRef({value:t,previous:t});return S.useMemo(()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous),[t])}var b0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Kj="VisuallyHidden",Gj=S.forwardRef((t,r)=>f.jsx(ze.span,{...t,ref:r,style:{...b0,...t.style}}));Gj.displayName=Kj;var Yj=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},ai=new WeakMap,da=new WeakMap,fa={},du=0,C0=function(t){return t&&(t.host||C0(t.parentNode))},Xj=function(t,r){return r.map(function(i){if(t.contains(i))return i;var s=C0(i);return s&&t.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},Qj=function(t,r,i,s){var l=Xj(r,Array.isArray(t)?t:[t]);fa[i]||(fa[i]=new WeakMap);var u=fa[i],c=[],p=new Set,m=new Set(l),g=function(v){!v||p.has(v)||(p.add(v),g(v.parentNode))};l.forEach(g);var y=function(v){!v||m.has(v)||Array.prototype.forEach.call(v.children,function(w){if(p.has(w))y(w);else try{var b=w.getAttribute(s),T=b!==null&&b!=="false",k=(ai.get(w)||0)+1,N=(u.get(w)||0)+1;ai.set(w,k),u.set(w,N),c.push(w),k===1&&T&&da.set(w,!0),N===1&&w.setAttribute(i,"true"),T||w.setAttribute(s,"true")}catch(P){console.error("aria-hidden: cannot operate on ",w,P)}})};return y(r),p.clear(),du++,function(){c.forEach(function(v){var w=ai.get(v)-1,b=u.get(v)-1;ai.set(v,w),u.set(v,b),w||(da.has(v)||v.removeAttribute(s),da.delete(v)),b||v.removeAttribute(i)}),du--,du||(ai=new WeakMap,ai=new WeakMap,da=new WeakMap,fa={})}},qj=function(t,r,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),l=Yj(t);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),Qj(s,l,i,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(r){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},ln.apply(this,arguments)};function N0(t,r){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(t);l<s.length;l++)r.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(t,s[l])&&(i[s[l]]=t[s[l]]);return i}function Zj(t,r,i){if(i||arguments.length===2)for(var s=0,l=r.length,u;s<l;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return t.concat(u||Array.prototype.slice.call(r))}var Sa="right-scroll-bar-position",ka="width-before-scroll-bar",Jj="with-scroll-bars-hidden",eP="--removed-body-scroll-bar-size";function fu(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function tP(t,r){var i=S.useState(function(){return{value:t,callback:r,facade:{get current(){return i.value},set current(s){var l=i.value;l!==s&&(i.value=s,i.callback(s,l))}}}})[0];return i.callback=r,i.facade}var nP=typeof window<"u"?S.useLayoutEffect:S.useEffect,Vg=new WeakMap;function rP(t,r){var i=tP(null,function(s){return t.forEach(function(l){return fu(l,s)})});return nP(function(){var s=Vg.get(i);if(s){var l=new Set(s),u=new Set(t),c=i.current;l.forEach(function(p){u.has(p)||fu(p,null)}),u.forEach(function(p){l.has(p)||fu(p,c)})}Vg.set(i,t)},[t]),i}function iP(t){return t}function oP(t,r){r===void 0&&(r=iP);var i=[],s=!1,l={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(u){var c=r(u,s);return i.push(c),function(){i=i.filter(function(p){return p!==c})}},assignSyncMedium:function(u){for(s=!0;i.length;){var c=i;i=[],c.forEach(u)}i={push:function(p){return u(p)},filter:function(){return i}}},assignMedium:function(u){s=!0;var c=[];if(i.length){var p=i;i=[],p.forEach(u),c=i}var m=function(){var y=c;c=[],y.forEach(u)},g=function(){return Promise.resolve().then(m)};g(),i={push:function(y){c.push(y),g()},filter:function(y){return c=c.filter(y),i}}}};return l}function sP(t){t===void 0&&(t={});var r=oP(null);return r.options=ln({async:!0,ssr:!1},t),r}var T0=function(t){var r=t.sideCar,i=N0(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return S.createElement(s,ln({},i))};T0.isSideCarExport=!0;function aP(t,r){return t.useMedium(r),T0}var j0=sP(),pu=function(){},Ua=S.forwardRef(function(t,r){var i=S.useRef(null),s=S.useState({onScrollCapture:pu,onWheelCapture:pu,onTouchMoveCapture:pu}),l=s[0],u=s[1],c=t.forwardProps,p=t.children,m=t.className,g=t.removeScrollBar,y=t.enabled,v=t.shards,w=t.sideCar,b=t.noRelative,T=t.noIsolation,k=t.inert,N=t.allowPinchZoom,P=t.as,A=P===void 0?"div":P,M=t.gapMode,O=N0(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=w,U=rP([i,r]),z=ln(ln({},O),l);return S.createElement(S.Fragment,null,y&&S.createElement(V,{sideCar:j0,removeScrollBar:g,shards:v,noRelative:b,noIsolation:T,inert:k,setCallbacks:u,allowPinchZoom:!!N,lockRef:i,gapMode:M}),c?S.cloneElement(S.Children.only(p),ln(ln({},z),{ref:U})):S.createElement(A,ln({},z,{className:m,ref:U}),p))});Ua.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ua.classNames={fullWidth:ka,zeroRight:Sa};var lP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cP(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=lP();return r&&t.setAttribute("nonce",r),t}function uP(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function dP(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var fP=function(){var t=0,r=null;return{add:function(i){t==0&&(r=cP())&&(uP(r,i),dP(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},pP=function(){var t=fP();return function(r,i){S.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&i])}},P0=function(){var t=pP(),r=function(i){var s=i.styles,l=i.dynamic;return t(s,l),null};return r},hP={left:0,top:0,right:0,gap:0},hu=function(t){return parseInt(t||"",10)||0},mP=function(t){var r=window.getComputedStyle(document.body),i=r[t==="padding"?"paddingLeft":"marginLeft"],s=r[t==="padding"?"paddingTop":"marginTop"],l=r[t==="padding"?"paddingRight":"marginRight"];return[hu(i),hu(s),hu(l)]},gP=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return hP;var r=mP(t),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-i+r[2]-r[0])}},yP=P0(),xi="data-scroll-locked",vP=function(t,r,i,s){var l=t.left,u=t.top,c=t.right,p=t.gap;return i===void 0&&(i="margin"),`
|
||
.`.concat(Jj,` {
|
||
overflow: hidden `).concat(s,`;
|
||
padding-right: `).concat(p,"px ").concat(s,`;
|
||
}
|
||
body[`).concat(xi,`] {
|
||
overflow: hidden `).concat(s,`;
|
||
overscroll-behavior: contain;
|
||
`).concat([r&&"position: relative ".concat(s,";"),i==="margin"&&`
|
||
padding-left: `.concat(l,`px;
|
||
padding-top: `).concat(u,`px;
|
||
padding-right: `).concat(c,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(p,"px ").concat(s,`;
|
||
`),i==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(Sa,` {
|
||
right: `).concat(p,"px ").concat(s,`;
|
||
}
|
||
|
||
.`).concat(ka,` {
|
||
margin-right: `).concat(p,"px ").concat(s,`;
|
||
}
|
||
|
||
.`).concat(Sa," .").concat(Sa,` {
|
||
right: 0 `).concat(s,`;
|
||
}
|
||
|
||
.`).concat(ka," .").concat(ka,` {
|
||
margin-right: 0 `).concat(s,`;
|
||
}
|
||
|
||
body[`).concat(xi,`] {
|
||
`).concat(eP,": ").concat(p,`px;
|
||
}
|
||
`)},Fg=function(){var t=parseInt(document.body.getAttribute(xi)||"0",10);return isFinite(t)?t:0},xP=function(){S.useEffect(function(){return document.body.setAttribute(xi,(Fg()+1).toString()),function(){var t=Fg()-1;t<=0?document.body.removeAttribute(xi):document.body.setAttribute(xi,t.toString())}},[])},wP=function(t){var r=t.noRelative,i=t.noImportant,s=t.gapMode,l=s===void 0?"margin":s;xP();var u=S.useMemo(function(){return gP(l)},[l]);return S.createElement(yP,{styles:vP(u,!r,l,i?"":"!important")})},$u=!1;if(typeof window<"u")try{var pa=Object.defineProperty({},"passive",{get:function(){return $u=!0,!0}});window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{$u=!1}var li=$u?{passive:!1}:!1,SP=function(t){return t.tagName==="TEXTAREA"},E0=function(t,r){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!SP(t)&&i[r]==="visible")},kP=function(t){return E0(t,"overflowY")},bP=function(t){return E0(t,"overflowX")},zg=function(t,r){var i=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=A0(t,s);if(l){var u=R0(t,s),c=u[1],p=u[2];if(c>p)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},CP=function(t){var r=t.scrollTop,i=t.scrollHeight,s=t.clientHeight;return[r,i,s]},NP=function(t){var r=t.scrollLeft,i=t.scrollWidth,s=t.clientWidth;return[r,i,s]},A0=function(t,r){return t==="v"?kP(r):bP(r)},R0=function(t,r){return t==="v"?CP(r):NP(r)},TP=function(t,r){return t==="h"&&r==="rtl"?-1:1},jP=function(t,r,i,s,l){var u=TP(t,window.getComputedStyle(r).direction),c=u*s,p=i.target,m=r.contains(p),g=!1,y=c>0,v=0,w=0;do{if(!p)break;var b=R0(t,p),T=b[0],k=b[1],N=b[2],P=k-N-u*T;(T||P)&&A0(t,p)&&(v+=P,w+=T);var A=p.parentNode;p=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!m&&p!==document.body||m&&(r.contains(p)||r===p));return(y&&Math.abs(v)<1||!y&&Math.abs(w)<1)&&(g=!0),g},ha=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Bg=function(t){return[t.deltaX,t.deltaY]},Hg=function(t){return t&&"current"in t?t.current:t},PP=function(t,r){return t[0]===r[0]&&t[1]===r[1]},EP=function(t){return`
|
||
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
||
`)},AP=0,ci=[];function RP(t){var r=S.useRef([]),i=S.useRef([0,0]),s=S.useRef(),l=S.useState(AP++)[0],u=S.useState(P0)[0],c=S.useRef(t);S.useEffect(function(){c.current=t},[t]),S.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(l));var k=Zj([t.lockRef.current],(t.shards||[]).map(Hg),!0).filter(Boolean);return k.forEach(function(N){return N.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),k.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(l))})}}},[t.inert,t.lockRef.current,t.shards]);var p=S.useCallback(function(k,N){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!c.current.allowPinchZoom;var P=ha(k),A=i.current,M="deltaX"in k?k.deltaX:A[0]-P[0],O="deltaY"in k?k.deltaY:A[1]-P[1],V,U=k.target,z=Math.abs(M)>Math.abs(O)?"h":"v";if("touches"in k&&z==="h"&&U.type==="range")return!1;var F=zg(z,U);if(!F)return!0;if(F?V=z:(V=z==="v"?"h":"v",F=zg(z,U)),!F)return!1;if(!s.current&&"changedTouches"in k&&(M||O)&&(s.current=V),!V)return!0;var J=s.current||V;return jP(J,N,k,J==="h"?M:O)},[]),m=S.useCallback(function(k){var N=k;if(!(!ci.length||ci[ci.length-1]!==u)){var P="deltaY"in N?Bg(N):ha(N),A=r.current.filter(function(V){return V.name===N.type&&(V.target===N.target||N.target===V.shadowParent)&&PP(V.delta,P)})[0];if(A&&A.should){N.cancelable&&N.preventDefault();return}if(!A){var M=(c.current.shards||[]).map(Hg).filter(Boolean).filter(function(V){return V.contains(N.target)}),O=M.length>0?p(N,M[0]):!c.current.noIsolation;O&&N.cancelable&&N.preventDefault()}}},[]),g=S.useCallback(function(k,N,P,A){var M={name:k,delta:N,target:P,should:A,shadowParent:MP(P)};r.current.push(M),setTimeout(function(){r.current=r.current.filter(function(O){return O!==M})},1)},[]),y=S.useCallback(function(k){i.current=ha(k),s.current=void 0},[]),v=S.useCallback(function(k){g(k.type,Bg(k),k.target,p(k,t.lockRef.current))},[]),w=S.useCallback(function(k){g(k.type,ha(k),k.target,p(k,t.lockRef.current))},[]);S.useEffect(function(){return ci.push(u),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:w}),document.addEventListener("wheel",m,li),document.addEventListener("touchmove",m,li),document.addEventListener("touchstart",y,li),function(){ci=ci.filter(function(k){return k!==u}),document.removeEventListener("wheel",m,li),document.removeEventListener("touchmove",m,li),document.removeEventListener("touchstart",y,li)}},[]);var b=t.removeScrollBar,T=t.inert;return S.createElement(S.Fragment,null,T?S.createElement(u,{styles:EP(l)}):null,b?S.createElement(wP,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function MP(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const IP=aP(j0,RP);var M0=S.forwardRef(function(t,r){return S.createElement(Ua,ln({},t,{ref:r,sideCar:IP}))});M0.classNames=Ua.classNames;var DP=[" ","Enter","ArrowUp","ArrowDown"],LP=[" ","Enter"],Ar="Select",[Wa,$a,_P]=qN(Ar),[Mi]=_d(Ar,[_P,p0]),Ka=p0(),[OP,or]=Mi(Ar),[VP,FP]=Mi(Ar),I0=t=>{const{__scopeSelect:r,children:i,open:s,defaultOpen:l,onOpenChange:u,value:c,defaultValue:p,onValueChange:m,dir:g,name:y,autoComplete:v,disabled:w,required:b,form:T}=t,k=Ka(r),[N,P]=S.useState(null),[A,M]=S.useState(null),[O,V]=S.useState(!1),U=JN(g),[z,F]=Og({prop:s,defaultProp:l??!1,onChange:u,caller:Ar}),[J,ce]=Og({prop:c,defaultProp:p,onChange:m,caller:Ar}),ye=S.useRef(null),xe=N?T||!!N.closest("form"):!0,[me,pe]=S.useState(new Set),we=Array.from(me).map(se=>se.props.value).join(";");return f.jsx(Oj,{...k,children:f.jsxs(OP,{required:b,scope:r,trigger:N,onTriggerChange:P,valueNode:A,onValueNodeChange:M,valueNodeHasChildren:O,onValueNodeHasChildrenChange:V,contentId:Od(),value:J,onValueChange:ce,open:z,onOpenChange:F,dir:U,triggerPointerDownPosRef:ye,disabled:w,children:[f.jsx(Wa.Provider,{scope:r,children:f.jsx(VP,{scope:t.__scopeSelect,onNativeOptionAdd:S.useCallback(se=>{pe(q=>new Set(q).add(se))},[]),onNativeOptionRemove:S.useCallback(se=>{pe(q=>{const I=new Set(q);return I.delete(se),I})},[]),children:i})}),xe?f.jsxs(tx,{"aria-hidden":!0,required:b,tabIndex:-1,name:y,autoComplete:v,value:J,onChange:se=>ce(se.target.value),disabled:w,form:T,children:[J===void 0?f.jsx("option",{value:""}):null,Array.from(me)]},we):null]})})};I0.displayName=Ar;var D0="SelectTrigger",L0=S.forwardRef((t,r)=>{const{__scopeSelect:i,disabled:s=!1,...l}=t,u=Ka(i),c=or(D0,i),p=c.disabled||s,m=st(r,c.onTriggerChange),g=$a(i),y=S.useRef("touch"),[v,w,b]=rx(k=>{const N=g().filter(M=>!M.disabled),P=N.find(M=>M.value===c.value),A=ix(N,k,P);A!==void 0&&c.onValueChange(A.value)}),T=k=>{p||(c.onOpenChange(!0),b()),k&&(c.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})};return f.jsx(Vj,{asChild:!0,...u,children:f.jsx(ze.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":nx(c.value)?"":void 0,...l,ref:m,onClick:Xe(l.onClick,k=>{k.currentTarget.focus(),y.current!=="mouse"&&T(k)}),onPointerDown:Xe(l.onPointerDown,k=>{y.current=k.pointerType;const N=k.target;N.hasPointerCapture(k.pointerId)&&N.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(T(k),k.preventDefault())}),onKeyDown:Xe(l.onKeyDown,k=>{const N=v.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&w(k.key),!(N&&k.key===" ")&&DP.includes(k.key)&&(T(),k.preventDefault())})})})});L0.displayName=D0;var _0="SelectValue",O0=S.forwardRef((t,r)=>{const{__scopeSelect:i,className:s,style:l,children:u,placeholder:c="",...p}=t,m=or(_0,i),{onValueNodeHasChildrenChange:g}=m,y=u!==void 0,v=st(r,m.onValueNodeChange);return Nt(()=>{g(y)},[g,y]),f.jsx(ze.span,{...p,ref:v,style:{pointerEvents:"none"},children:nx(m.value)?f.jsx(f.Fragment,{children:c}):u})});O0.displayName=_0;var zP="SelectIcon",V0=S.forwardRef((t,r)=>{const{__scopeSelect:i,children:s,...l}=t;return f.jsx(ze.span,{"aria-hidden":!0,...l,ref:r,children:s||"▼"})});V0.displayName=zP;var BP="SelectPortal",F0=t=>f.jsx(k0,{asChild:!0,...t});F0.displayName=BP;var Rr="SelectContent",z0=S.forwardRef((t,r)=>{const i=or(Rr,t.__scopeSelect),[s,l]=S.useState();if(Nt(()=>{l(new DocumentFragment)},[]),!i.open){const u=s;return u?Go.createPortal(f.jsx(B0,{scope:t.__scopeSelect,children:f.jsx(Wa.Slot,{scope:t.__scopeSelect,children:f.jsx("div",{children:t.children})})}),u):null}return f.jsx(H0,{...t,ref:r})});z0.displayName=Rr;var Jt=10,[B0,sr]=Mi(Rr),HP="SelectContentImpl",UP=Fo("SelectContent.RemoveScroll"),H0=S.forwardRef((t,r)=>{const{__scopeSelect:i,position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,side:p,sideOffset:m,align:g,alignOffset:y,arrowPadding:v,collisionBoundary:w,collisionPadding:b,sticky:T,hideWhenDetached:k,avoidCollisions:N,...P}=t,A=or(Rr,i),[M,O]=S.useState(null),[V,U]=S.useState(null),z=st(r,G=>O(G)),[F,J]=S.useState(null),[ce,ye]=S.useState(null),xe=$a(i),[me,pe]=S.useState(!1),we=S.useRef(!1);S.useEffect(()=>{if(M)return qj(M)},[M]),lT();const se=S.useCallback(G=>{const[ue,...ve]=xe().map(Re=>Re.ref.current),[ke]=ve.slice(-1),Te=document.activeElement;for(const Re of G)if(Re===Te||(Re?.scrollIntoView({block:"nearest"}),Re===ue&&V&&(V.scrollTop=0),Re===ke&&V&&(V.scrollTop=V.scrollHeight),Re?.focus(),document.activeElement!==Te))return},[xe,V]),q=S.useCallback(()=>se([F,M]),[se,F,M]);S.useEffect(()=>{me&&q()},[me,q]);const{onOpenChange:I,triggerPointerDownPosRef:Q}=A;S.useEffect(()=>{if(M){let G={x:0,y:0};const ue=ke=>{G={x:Math.abs(Math.round(ke.pageX)-(Q.current?.x??0)),y:Math.abs(Math.round(ke.pageY)-(Q.current?.y??0))}},ve=ke=>{G.x<=10&&G.y<=10?ke.preventDefault():M.contains(ke.target)||I(!1),document.removeEventListener("pointermove",ue),Q.current=null};return Q.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",ve,{capture:!0})}}},[M,I,Q]),S.useEffect(()=>{const G=()=>I(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[I]);const[Y,R]=rx(G=>{const ue=xe().filter(Te=>!Te.disabled),ve=ue.find(Te=>Te.ref.current===document.activeElement),ke=ix(ue,G,ve);ke&&setTimeout(()=>ke.ref.current.focus())}),B=S.useCallback((G,ue,ve)=>{const ke=!we.current&&!ve;(A.value!==void 0&&A.value===ue||ke)&&(J(G),ke&&(we.current=!0))},[A.value]),oe=S.useCallback(()=>M?.focus(),[M]),ae=S.useCallback((G,ue,ve)=>{const ke=!we.current&&!ve;(A.value!==void 0&&A.value===ue||ke)&&ye(G)},[A.value]),Se=s==="popper"?Ku:U0,be=Se===Ku?{side:p,sideOffset:m,align:g,alignOffset:y,arrowPadding:v,collisionBoundary:w,collisionPadding:b,sticky:T,hideWhenDetached:k,avoidCollisions:N}:{};return f.jsx(B0,{scope:i,content:M,viewport:V,onViewportChange:U,itemRefCallback:B,selectedItem:F,onItemLeave:oe,itemTextRefCallback:ae,focusSelectedItem:q,selectedItemText:ce,position:s,isPositioned:me,searchRef:Y,children:f.jsx(M0,{as:UP,allowPinchZoom:!0,children:f.jsx(Zv,{asChild:!0,trapped:A.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:Xe(l,G=>{A.trigger?.focus({preventScroll:!0}),G.preventDefault()}),children:f.jsx(Qv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:f.jsx(Se,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:G=>G.preventDefault(),...P,...be,onPlaced:()=>pe(!0),ref:z,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:Xe(P.onKeyDown,G=>{const ue=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ue&&G.key.length===1&&R(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let ke=xe().filter(Te=>!Te.disabled).map(Te=>Te.ref.current);if(["ArrowUp","End"].includes(G.key)&&(ke=ke.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const Te=G.target,Re=ke.indexOf(Te);ke=ke.slice(Re+1)}setTimeout(()=>se(ke)),G.preventDefault()}})})})})})})});H0.displayName=HP;var WP="SelectItemAlignedPosition",U0=S.forwardRef((t,r)=>{const{__scopeSelect:i,onPlaced:s,...l}=t,u=or(Rr,i),c=sr(Rr,i),[p,m]=S.useState(null),[g,y]=S.useState(null),v=st(r,z=>y(z)),w=$a(i),b=S.useRef(!1),T=S.useRef(!0),{viewport:k,selectedItem:N,selectedItemText:P,focusSelectedItem:A}=c,M=S.useCallback(()=>{if(u.trigger&&u.valueNode&&p&&g&&k&&N&&P){const z=u.trigger.getBoundingClientRect(),F=g.getBoundingClientRect(),J=u.valueNode.getBoundingClientRect(),ce=P.getBoundingClientRect();if(u.dir!=="rtl"){const Te=ce.left-F.left,Re=J.left-Te,nt=z.left-Re,Wt=z.width+nt,Ir=Math.max(Wt,F.width),Dr=window.innerWidth-Jt,ar=vg(Re,[Jt,Math.max(Jt,Dr-Ir)]);p.style.minWidth=Wt+"px",p.style.left=ar+"px"}else{const Te=F.right-ce.right,Re=window.innerWidth-J.right-Te,nt=window.innerWidth-z.right-Re,Wt=z.width+nt,Ir=Math.max(Wt,F.width),Dr=window.innerWidth-Jt,ar=vg(Re,[Jt,Math.max(Jt,Dr-Ir)]);p.style.minWidth=Wt+"px",p.style.right=ar+"px"}const ye=w(),xe=window.innerHeight-Jt*2,me=k.scrollHeight,pe=window.getComputedStyle(g),we=parseInt(pe.borderTopWidth,10),se=parseInt(pe.paddingTop,10),q=parseInt(pe.borderBottomWidth,10),I=parseInt(pe.paddingBottom,10),Q=we+se+me+I+q,Y=Math.min(N.offsetHeight*5,Q),R=window.getComputedStyle(k),B=parseInt(R.paddingTop,10),oe=parseInt(R.paddingBottom,10),ae=z.top+z.height/2-Jt,Se=xe-ae,be=N.offsetHeight/2,G=N.offsetTop+be,ue=we+se+G,ve=Q-ue;if(ue<=ae){const Te=ye.length>0&&N===ye[ye.length-1].ref.current;p.style.bottom="0px";const Re=g.clientHeight-k.offsetTop-k.offsetHeight,nt=Math.max(Se,be+(Te?oe:0)+Re+q),Wt=ue+nt;p.style.height=Wt+"px"}else{const Te=ye.length>0&&N===ye[0].ref.current;p.style.top="0px";const nt=Math.max(ae,we+k.offsetTop+(Te?B:0)+be)+ve;p.style.height=nt+"px",k.scrollTop=ue-ae+k.offsetTop}p.style.margin=`${Jt}px 0`,p.style.minHeight=Y+"px",p.style.maxHeight=xe+"px",s?.(),requestAnimationFrame(()=>b.current=!0)}},[w,u.trigger,u.valueNode,p,g,k,N,P,u.dir,s]);Nt(()=>M(),[M]);const[O,V]=S.useState();Nt(()=>{g&&V(window.getComputedStyle(g).zIndex)},[g]);const U=S.useCallback(z=>{z&&T.current===!0&&(M(),A?.(),T.current=!1)},[M,A]);return f.jsx(KP,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:b,onScrollButtonChange:U,children:f.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:f.jsx(ze.div,{...l,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});U0.displayName=WP;var $P="SelectPopperPosition",Ku=S.forwardRef((t,r)=>{const{__scopeSelect:i,align:s="start",collisionPadding:l=Jt,...u}=t,c=Ka(i);return f.jsx(Fj,{...c,...u,ref:r,align:s,collisionPadding:l,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ku.displayName=$P;var[KP,Kd]=Mi(Rr,{}),Gu="SelectViewport",W0=S.forwardRef((t,r)=>{const{__scopeSelect:i,nonce:s,...l}=t,u=sr(Gu,i),c=Kd(Gu,i),p=st(r,u.onViewportChange),m=S.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),f.jsx(Wa.Slot,{scope:i,children:f.jsx(ze.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Xe(l.onScroll,g=>{const y=g.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:w}=c;if(w?.current&&v){const b=Math.abs(m.current-y.scrollTop);if(b>0){const T=window.innerHeight-Jt*2,k=parseFloat(v.style.minHeight),N=parseFloat(v.style.height),P=Math.max(k,N);if(P<T){const A=P+b,M=Math.min(T,A),O=A-M;v.style.height=M+"px",v.style.bottom==="0px"&&(y.scrollTop=O>0?O:0,v.style.justifyContent="flex-end")}}}m.current=y.scrollTop})})})]})});W0.displayName=Gu;var $0="SelectGroup",[GP,YP]=Mi($0),XP=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t,l=Od();return f.jsx(GP,{scope:i,id:l,children:f.jsx(ze.div,{role:"group","aria-labelledby":l,...s,ref:r})})});XP.displayName=$0;var K0="SelectLabel",QP=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t,l=YP(K0,i);return f.jsx(ze.div,{id:l.id,...s,ref:r})});QP.displayName=K0;var Ma="SelectItem",[qP,G0]=Mi(Ma),Y0=S.forwardRef((t,r)=>{const{__scopeSelect:i,value:s,disabled:l=!1,textValue:u,...c}=t,p=or(Ma,i),m=sr(Ma,i),g=p.value===s,[y,v]=S.useState(u??""),[w,b]=S.useState(!1),T=st(r,A=>m.itemRefCallback?.(A,s,l)),k=Od(),N=S.useRef("touch"),P=()=>{l||(p.onValueChange(s),p.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(qP,{scope:i,value:s,disabled:l,textId:k,isSelected:g,onItemTextChange:S.useCallback(A=>{v(M=>M||(A?.textContent??"").trim())},[]),children:f.jsx(Wa.ItemSlot,{scope:i,value:s,disabled:l,textValue:y,children:f.jsx(ze.div,{role:"option","aria-labelledby":k,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:T,onFocus:Xe(c.onFocus,()=>b(!0)),onBlur:Xe(c.onBlur,()=>b(!1)),onClick:Xe(c.onClick,()=>{N.current!=="mouse"&&P()}),onPointerUp:Xe(c.onPointerUp,()=>{N.current==="mouse"&&P()}),onPointerDown:Xe(c.onPointerDown,A=>{N.current=A.pointerType}),onPointerMove:Xe(c.onPointerMove,A=>{N.current=A.pointerType,l?m.onItemLeave?.():N.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xe(c.onPointerLeave,A=>{A.currentTarget===document.activeElement&&m.onItemLeave?.()}),onKeyDown:Xe(c.onKeyDown,A=>{m.searchRef?.current!==""&&A.key===" "||(LP.includes(A.key)&&P(),A.key===" "&&A.preventDefault())})})})})});Y0.displayName=Ma;var bo="SelectItemText",X0=S.forwardRef((t,r)=>{const{__scopeSelect:i,className:s,style:l,...u}=t,c=or(bo,i),p=sr(bo,i),m=G0(bo,i),g=FP(bo,i),[y,v]=S.useState(null),w=st(r,P=>v(P),m.onItemTextChange,P=>p.itemTextRefCallback?.(P,m.value,m.disabled)),b=y?.textContent,T=S.useMemo(()=>f.jsx("option",{value:m.value,disabled:m.disabled,children:b},m.value),[m.disabled,m.value,b]),{onNativeOptionAdd:k,onNativeOptionRemove:N}=g;return Nt(()=>(k(T),()=>N(T)),[k,N,T]),f.jsxs(f.Fragment,{children:[f.jsx(ze.span,{id:m.textId,...u,ref:w}),m.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Go.createPortal(u.children,c.valueNode):null]})});X0.displayName=bo;var Q0="SelectItemIndicator",q0=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t;return G0(Q0,i).isSelected?f.jsx(ze.span,{"aria-hidden":!0,...s,ref:r}):null});q0.displayName=Q0;var Yu="SelectScrollUpButton",Z0=S.forwardRef((t,r)=>{const i=sr(Yu,t.__scopeSelect),s=Kd(Yu,t.__scopeSelect),[l,u]=S.useState(!1),c=st(r,s.onScrollButtonChange);return Nt(()=>{if(i.viewport&&i.isPositioned){let p=function(){const g=m.scrollTop>0;u(g)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?f.jsx(ex,{...t,ref:c,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop-m.offsetHeight)}}):null});Z0.displayName=Yu;var Xu="SelectScrollDownButton",J0=S.forwardRef((t,r)=>{const i=sr(Xu,t.__scopeSelect),s=Kd(Xu,t.__scopeSelect),[l,u]=S.useState(!1),c=st(r,s.onScrollButtonChange);return Nt(()=>{if(i.viewport&&i.isPositioned){let p=function(){const g=m.scrollHeight-m.clientHeight,y=Math.ceil(m.scrollTop)<g;u(y)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?f.jsx(ex,{...t,ref:c,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop+m.offsetHeight)}}):null});J0.displayName=Xu;var ex=S.forwardRef((t,r)=>{const{__scopeSelect:i,onAutoScroll:s,...l}=t,u=sr("SelectScrollButton",i),c=S.useRef(null),p=$a(i),m=S.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return S.useEffect(()=>()=>m(),[m]),Nt(()=>{p().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),f.jsx(ze.div,{"aria-hidden":!0,...l,ref:r,style:{flexShrink:0,...l.style},onPointerDown:Xe(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Xe(l.onPointerMove,()=>{u.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Xe(l.onPointerLeave,()=>{m()})})}),ZP="SelectSeparator",JP=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t;return f.jsx(ze.div,{"aria-hidden":!0,...s,ref:r})});JP.displayName=ZP;var Qu="SelectArrow",eE=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t,l=Ka(i),u=or(Qu,i),c=sr(Qu,i);return u.open&&c.position==="popper"?f.jsx(zj,{...l,...s,ref:r}):null});eE.displayName=Qu;var tE="SelectBubbleInput",tx=S.forwardRef(({__scopeSelect:t,value:r,...i},s)=>{const l=S.useRef(null),u=st(s,l),c=$j(r);return S.useEffect(()=>{const p=l.current;if(!p)return;const m=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(m,"value").set;if(c!==r&&y){const v=new Event("change",{bubbles:!0});y.call(p,r),p.dispatchEvent(v)}},[c,r]),f.jsx(ze.select,{...i,style:{...b0,...i.style},ref:u,defaultValue:r})});tx.displayName=tE;function nx(t){return t===""||t===void 0}function rx(t){const r=Pr(t),i=S.useRef(""),s=S.useRef(0),l=S.useCallback(c=>{const p=i.current+c;r(p),(function m(g){i.current=g,window.clearTimeout(s.current),g!==""&&(s.current=window.setTimeout(()=>m(""),1e3))})(p)},[r]),u=S.useCallback(()=>{i.current="",window.clearTimeout(s.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(s.current),[]),[i,l,u]}function ix(t,r,i){const l=r.length>1&&Array.from(r).every(g=>g===r[0])?r[0]:r,u=i?t.indexOf(i):-1;let c=nE(t,Math.max(u,0));l.length===1&&(c=c.filter(g=>g!==i));const m=c.find(g=>g.textValue.toLowerCase().startsWith(l.toLowerCase()));return m!==i?m:void 0}function nE(t,r){return t.map((i,s)=>t[(r+s)%t.length])}var rE=I0,iE=L0,oE=O0,sE=V0,aE=F0,lE=z0,cE=W0,uE=Y0,dE=X0,fE=q0,pE=Z0,hE=J0;function Co({...t}){return f.jsx(rE,{"data-slot":"select",...t})}function No({...t}){return f.jsx(oE,{"data-slot":"select-value",...t})}function To({className:t,size:r="default",children:i,...s}){return f.jsxs(iE,{"data-slot":"select-trigger","data-size":r,className:pt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-input-background px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[i,f.jsx(sE,{asChild:!0,children:f.jsx(Uv,{className:"size-4 opacity-50"})})]})}function jo({className:t,children:r,position:i="popper",...s}){return f.jsx(aE,{children:f.jsxs(lE,{"data-slot":"select-content",className:pt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:i,...s,children:[f.jsx(mE,{}),f.jsx(cE,{className:pt("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),f.jsx(gE,{})]})})}function Ge({className:t,children:r,...i}){return f.jsxs(uE,{"data-slot":"select-item",className:pt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...i,children:[f.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:f.jsx(fE,{children:f.jsx(U2,{className:"size-4"})})}),f.jsx(dE,{children:r})]})}function mE({className:t,...r}){return f.jsx(pE,{"data-slot":"select-scroll-up-button",className:pt("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(K2,{className:"size-4"})})}function gE({className:t,...r}){return f.jsx(hE,{"data-slot":"select-scroll-down-button",className:pt("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(Uv,{className:"size-4"})})}const yE=[{icon:pn,title:"Phone",details:["+91 7477247488","+91 7477247489"],description:"Available 24/7 for bookings and support"},{icon:Oa,title:"Email",details:["bookme@sangwaritaxi.com","support@sangwaritaxi.com"],description:"We respond within 24 hours"},{icon:tr,title:"Address",details:["Commercial complex second floor","Nehru Nagar east Bhilai beside state bank","Pin 490020"],description:"Visit our office during business hours"},{icon:Mr,title:"Business Hours",details:["Mon-Fri: 8:00 AM - 6:00 PM","Sat-Sun: 9:00 AM - 5:00 PM"],description:"Ride service available 24/7"}];function vE(){const[t,r]=S.useState({name:"",email:"",phone:"",subject:"",message:""}),[i,s]=S.useState(!1),[l,u]=S.useState(!1),c=(m,g)=>{r(y=>({...y,[m]:g}))},p=async m=>{m.preventDefault(),s(!0),await new Promise(g=>setTimeout(g,1e3)),s(!1),u(!0),setTimeout(()=>{u(!1),r({name:"",email:"",phone:"",subject:"",message:""})},3e3)};return f.jsx("div",{className:"py-8 sm:py-12 lg:py-16",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs("div",{className:"text-center mb-8 sm:mb-10 lg:mb-12",children:[f.jsx("h1",{className:"mb-3 sm:mb-4 text-2xl sm:text-3xl lg:text-4xl",children:"Contact Us"}),f.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-muted-foreground max-w-2xl mx-auto px-4",children:"Get in touch with us for any questions, feedback, or support. We're here to help make your ride experience exceptional."})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 sm:gap-8 lg:gap-12",children:[f.jsxs(Rt,{children:[f.jsx(gi,{children:f.jsx(yi,{children:"Send us a Message"})}),f.jsx(Mt,{children:l?f.jsxs(H.div,{className:"text-center py-8",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.6},children:[f.jsx(H.div,{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},children:f.jsx(X2,{className:"h-8 w-8 text-green-600"})}),f.jsx(H.h3,{className:"mb-2",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4},children:"Message Sent Successfully!"}),f.jsx(H.p,{className:"text-muted-foreground",initial:{opacity:0},animate:{opacity:1},transition:{delay:.6},children:"Thank you for contacting us. We'll get back to you within 24 hours."})]}):f.jsxs(H.form,{onSubmit:p,className:"space-y-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1},children:[f.jsx(bt,{htmlFor:"name",children:"Full Name"}),f.jsx(Zn,{id:"name",placeholder:"John Doe",value:t.name,onChange:m=>c("name",m.target.value),required:!0})]}),f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.2},children:[f.jsx(bt,{htmlFor:"email",children:"Email"}),f.jsx(Zn,{id:"email",type:"email",placeholder:"john@example.com",value:t.email,onChange:m=>c("email",m.target.value),required:!0})]})]}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.3},children:[f.jsx(bt,{htmlFor:"phone",children:"Phone Number"}),f.jsx(Zn,{id:"phone",type:"tel",placeholder:"+1 (555) 123-4567",value:t.phone,onChange:m=>c("phone",m.target.value)})]}),f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.4},children:[f.jsx(bt,{children:"Subject"}),f.jsxs(Co,{value:t.subject,onValueChange:m=>c("subject",m),required:!0,children:[f.jsx(To,{children:f.jsx(No,{placeholder:"Select a subject"})}),f.jsxs(jo,{children:[f.jsx(Ge,{value:"booking",children:"Booking Inquiry"}),f.jsx(Ge,{value:"support",children:"Technical Support"}),f.jsx(Ge,{value:"feedback",children:"Feedback"}),f.jsx(Ge,{value:"partnership",children:"Partnership"}),f.jsx(Ge,{value:"complaint",children:"Complaint"}),f.jsx(Ge,{value:"other",children:"Other"})]})]})]})]}),f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:[f.jsx(bt,{htmlFor:"message",children:"Message"}),f.jsx(XN,{id:"message",placeholder:"Please describe your inquiry or feedback...",rows:5,value:t.message,onChange:m=>c("message",m.target.value),required:!0})]}),f.jsx(H.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},whileHover:{scale:1.02},whileTap:{scale:.98},children:f.jsx(ft,{type:"submit",className:"w-full",disabled:i,children:i?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(mg,{className:"h-4 w-4"}),"Sending..."]}):f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(mg,{className:"h-4 w-4"}),"Send Message"]})})})]})})]}),f.jsxs("div",{className:"space-y-6",children:[f.jsxs(Rt,{children:[f.jsx(gi,{children:f.jsx(yi,{children:"Get in Touch"})}),f.jsx(Mt,{className:"space-y-6",children:yE.map((m,g)=>f.jsxs("div",{className:"flex gap-4",children:[f.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0",children:f.jsx(m.icon,{className:"h-6 w-6 text-primary"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"mb-1",children:m.title}),m.details.map((y,v)=>f.jsx("p",{className:"text-muted-foreground",children:y},v)),f.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:m.description})]})]},g))})]}),f.jsxs(Rt,{children:[f.jsx(gi,{children:f.jsx(yi,{children:"Frequently Asked Questions"})}),f.jsxs(Mt,{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("h4",{className:"mb-1",children:"How do I book a ride?"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"You can book through our website, mobile app, or call our 24/7 hotline."})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"mb-1",children:"What payment methods do you accept?"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"We accept credit cards, debit cards, digital wallets, and cash payments."})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"mb-1",children:"Can I cancel my booking?"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Yes, you can cancel up to 5 minutes before pickup without any charges."})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"mb-1",children:"Are your vehicles wheelchair accessible?"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Yes, we have wheelchair accessible vehicles. Please specify when booking."})]})]})]})]})]})]})})}const xE=[{icon:tr,delay:0,x:100,y:-50,color:"text-blue-300"},{icon:Mr,delay:.5,x:-80,y:-30,color:"text-green-300"},{icon:Dd,delay:1,x:120,y:50,color:"text-yellow-300"},{icon:Va,delay:1.5,x:-100,y:60,color:"text-purple-300"}];function wE({children:t}){return f.jsxs("section",{className:"relative min-h-[500px] sm:min-h-[600px] lg:min-h-[700px] flex items-center justify-center overflow-hidden",children:[f.jsxs("div",{className:"absolute inset-0 z-0",children:[f.jsx(H.div,{initial:{scale:1.1},animate:{scale:1},transition:{duration:1.5,ease:"easeOut"},children:f.jsx(Ld,{src:"https://images.unsplash.com/flagged/photo-1573763683412-ceb49038903c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjaXR5JTIwc2t5bGluZSUyMHRyYW5zcG9ydGF0aW9ufGVufDF8fHx8MTc1NTU5OTk1NXww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",alt:"City skyline",className:"w-full h-full object-cover"})}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-black/40 to-black/60"})]}),xE.map((r,i)=>f.jsx(H.div,{className:"absolute z-5 hidden lg:block",style:{left:`calc(50% + ${r.x}px)`,top:`calc(50% + ${r.y}px)`},initial:{opacity:0,scale:0},animate:{opacity:.3,scale:1,y:[0,-10,0]},transition:{delay:r.delay+.5,duration:1,y:{duration:3,repeat:1/0,ease:"easeInOut"}},children:f.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur-sm rounded-full flex items-center justify-center",children:f.jsx(r.icon,{className:`h-8 w-8 ${r.color}`})})},i)),f.jsxs("div",{className:"relative z-10 container mx-auto px-4 text-center text-white py-8 sm:py-12",children:[f.jsxs("div",{className:"max-w-4xl mx-auto space-y-4 sm:space-y-6 mb-6 sm:mb-8",children:[f.jsxs(H.h1,{className:"text-2xl sm:text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:[f.jsx(H.span,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"block text-white",children:"Durg/Bhilai-Raipur Airport Drop(Oneway)"}),f.jsx(H.span,{className:"block text-yellow-400 text-xl sm:text-3xl md:text-4xl lg:text-5xl",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},children:"₹1099"})]}),f.jsx(H.p,{className:"text-base sm:text-lg md:text-xl lg:text-2xl text-white/90 max-w-3xl mx-auto px-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},children:"Book a reliable ride in minutes. Available 24/7 with professional drivers."})]}),f.jsx(H.div,{className:"flex justify-center px-2 sm:px-4",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:1},children:t})]})]})}const qu=["New Delhi","Gurgaon","Noida","Faridabad","Ghaziabad","Mumbai","Pune","Nashik","Aurangabad","Chandigarh","Ludhiana","Amritsar","Jalandhar","Patiala","Mohali","Bathinda","Jaipur","Jodhpur","Udaipur","Ajmer","Kota","Bikaner","Alwar","Lucknow","Kanpur","Agra","Varanasi","Allahabad","Meerut","Bareilly","Aligarh","Dehradun","Haridwar","Rishikesh","Mussoorie","Nainital","Shimla","Manali","Dharamshala","Kolkata","Howrah","Durgapur","Asansol","Siliguri","Darjeeling","Bhubaneswar","Cuttack","Rourkela","Puri","Patna","Gaya","Muzaffarpur","Bhagalpur","Darbhanga","Guwahati","Silchar","Dibrugarh","Jorhat","Tezpur","Ahmedabad","Surat","Vadodara","Rajkot","Bhavnagar","Jamnagar","Gandhinagar","Thane","Navi Mumbai","Kalyan","Vasai-Virar","Solapur","Nagpur","Kolhapur","Bangalore","Mysore","Mangalore","Hubli","Belgaum","Gulbarga","Davangere","Chennai","Coimbatore","Madurai","Tiruchirappalli","Salem","Tirunelveli","Erode","Tiruppur","Vellore","Hyderabad","Secunderabad","Warangal","Nizamabad","Karimnagar","Khammam","Ramagundam","Kochi","Thiruvananthapuram","Kozhikode","Kollam","Thrissur","Alappuzha","Palakkad","Kannur","Indore","Bhopal","Jabalpur","Gwalior","Ujjain","Sagar","Dewas","Satna","Raipur","Bhilai","Bilaspur","Korba","Durg","Rajnandgaon","Pondicherry","Port Blair","Panaji","Margao","Vasco da Gama","Daman","Silvassa"],ox=["City Ride - Customize Price","Airport Taxi - ₹1099","Outstation - Customize Price","Mover and Packer - Customize Price","Corporate Services - Customize Price"];[...qu.map(t=>({value:t.toLowerCase().replace(/\s+/g,"-"),label:t,type:"location"})),...ox.map(t=>({value:t.toLowerCase().replace(/\s+/g,"-"),label:t,type:"service"}))];function SE({onSubmit:t}){const[r,i]=S.useState({pickup:"",dropoff:"",date:"",time:"",passengers:"1",vehicleType:"",contactNumber:"",contactName:""}),s=c=>{c.preventDefault(),t(r)},l=(c,p)=>{i(m=>({...m,[c]:p}))},u=new Date().toISOString().split("T")[0];return new Date().toTimeString().slice(0,5),f.jsx(H.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.6},className:"w-full max-w-2xl mx-auto",children:f.jsxs(Rt,{className:"w-full bg-white border-0 shadow-none",children:[f.jsxs(gi,{className:"text-center pb-4 sm:pb-6 lg:pb-8 bg-transparent px-4 sm:px-6 rounded-[0px]",children:[f.jsx(H.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},children:f.jsxs(yi,{className:"flex flex-col sm:flex-row items-center justify-center gap-2 text-center text-lg sm:text-xl lg:text-2xl bg-gradient-to-r from-primary to-primary/80 bg-clip-text text-transparent",children:[f.jsx("div",{className:"mb-1 sm:mb-0",children:f.jsx(tr,{className:"h-5 w-5 sm:h-6 sm:w-6 text-primary"})}),f.jsx("span",{className:"font-bold leading-tight text-[32px]",children:"Book Your Airport Taxi Now"})]})}),f.jsx(H.div,{className:"w-16 sm:w-20 lg:w-24 h-1 bg-gradient-to-r from-primary/30 via-primary to-primary/30 mx-auto mt-2 sm:mt-3 lg:mt-4 rounded-full",initial:{scaleX:0},animate:{scaleX:1},transition:{delay:.3,duration:.8}})]}),f.jsx(Mt,{className:"bg-transparent px-4 sm:px-6 pt-[0px] pr-[21px] pb-[21px] pl-[21px]",children:f.jsxs("form",{onSubmit:s,className:"space-y-4 sm:space-y-6",children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx(bt,{htmlFor:"pickup",className:"text-sm sm:text-base",children:"Pickup Location"}),f.jsxs(Co,{value:r.pickup,onValueChange:c=>l("pickup",c),required:!0,children:[f.jsx(To,{className:"h-10 sm:h-11",children:f.jsx(No,{placeholder:"Select pickup city"})}),f.jsx(jo,{className:"max-h-48",children:qu.map(c=>f.jsx(Ge,{value:c,children:c},c))})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(bt,{htmlFor:"dropoff",className:"text-sm sm:text-base",children:"Drop-off Location / Service"}),f.jsxs(Co,{value:r.dropoff,onValueChange:c=>l("dropoff",c),required:!0,children:[f.jsx(To,{className:"h-10 sm:h-11",children:f.jsx(No,{placeholder:"Select destination or service"})}),f.jsxs(jo,{className:"max-h-48",children:[f.jsx("div",{className:"px-2 py-1 text-xs text-muted-foreground border-b",children:"Services"}),ox.map(c=>f.jsx(Ge,{value:c,children:c},c)),f.jsx("div",{className:"px-2 py-1 text-xs text-muted-foreground border-b",children:"All India Locations"}),qu.map(c=>f.jsx(Ge,{value:c,children:c},c))]})]})]})]}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"date",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(Hv,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Date"]}),f.jsx(Zn,{id:"date",type:"date",min:u,value:r.date,onChange:c=>l("date",c.target.value),className:"h-10 sm:h-11",required:!0})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"time",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(Mr,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Time"]}),f.jsx(Zn,{id:"time",type:"time",value:r.time,onChange:c=>l("time",c.target.value),className:"h-10 sm:h-11",required:!0})]})]}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"contactName",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx($v,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Contact Name"]}),f.jsx(Zn,{id:"contactName",type:"text",placeholder:"Enter your name",value:r.contactName,onChange:c=>l("contactName",c.target.value),className:"h-10 sm:h-11",required:!0})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"contactNumber",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(pn,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Contact Number"]}),f.jsx(Zn,{id:"contactNumber",type:"tel",placeholder:"Enter your contact number",value:r.contactNumber,onChange:c=>l("contactNumber",c.target.value),className:"h-10 sm:h-11",required:!0})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"customerEmail",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(Oa,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Email Address ",f.jsx("span",{className:"text-xs text-muted-foreground",children:"(For booking confirmation)"})]}),f.jsx(Zn,{id:"customerEmail",type:"email",placeholder:"Enter your email address",value:r.customerEmail,onChange:c=>l("customerEmail",c.target.value),className:"h-10 sm:h-11"})]}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(Ei,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Passengers"]}),f.jsxs(Co,{value:r.passengers,onValueChange:c=>l("passengers",c),children:[f.jsx(To,{className:"h-10 sm:h-11",children:f.jsx(No,{})}),f.jsxs(jo,{children:[f.jsx(Ge,{value:"1",children:"1 Passenger"}),f.jsx(Ge,{value:"2",children:"2 Passengers"}),f.jsx(Ge,{value:"3",children:"3 Passengers"}),f.jsx(Ge,{value:"4",children:"4 Passengers"}),f.jsx(Ge,{value:"5",children:"5 Passengers"}),f.jsx(Ge,{value:"6",children:"6 Passengers"}),f.jsx(Ge,{value:"7",children:"7 Passengers"}),f.jsx(Ge,{value:"8",children:"8+ Passengers"})]})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(bt,{className:"text-sm sm:text-base",children:"Vehicle Type"}),f.jsxs(Co,{value:r.vehicleType,onValueChange:c=>l("vehicleType",c),required:!0,children:[f.jsx(To,{className:"h-10 sm:h-11",children:f.jsx(No,{placeholder:"Select vehicle"})}),f.jsxs(jo,{children:[f.jsx(Ge,{value:"5-seater",children:f.jsx("span",{className:"text-xs sm:text-sm",children:"5 Seater - Airport Taxi "})}),f.jsx(Ge,{value:"7-seater",children:f.jsx("span",{className:"text-xs sm:text-sm",children:"7 Seater (Ertiga) - Airport Taxi "})}),f.jsx(Ge,{value:"innova",children:f.jsx("span",{className:"text-xs sm:text-sm",children:"Innova - Airport Taxi "})})]})]})]})]}),f.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[f.jsx(H.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:f.jsx(ft,{type:"submit",className:"w-full h-11 sm:h-12 text-sm sm:text-base shadow-lg hover:shadow-xl transition-all duration-300 rounded-[8px]",children:f.jsx("span",{className:"font-semibold",children:"Book Your Airport Taxi"})})}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"h-px bg-border flex-1"}),f.jsx("span",{className:"text-xs text-muted-foreground px-2",children:"OR"}),f.jsx("div",{className:"h-px bg-border flex-1"})]}),f.jsxs(H.div,{whileHover:{scale:1.02},whileTap:{scale:.98},className:"relative",children:[f.jsx(H.div,{className:"absolute inset-0 bg-gradient-to-r from-green-400 to-green-600 rounded-lg",animate:{opacity:[.8,1,.8],scale:[1,1.02,1]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}}),f.jsxs(ft,{type:"button",className:"w-full h-11 sm:h-12 relative z-10 bg-gradient-to-r from-green-500 to-green-600 hover:from-green-600 hover:to-green-700 text-white border-0 shadow-lg",onClick:()=>window.open("tel:+91-7477247488","_self"),children:[f.jsx(pn,{className:"h-3 w-3 sm:h-4 sm:w-4 mr-2"}),f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"font-semibold text-sm sm:text-base",children:"Call to Book Taxi"}),f.jsx("div",{className:"text-xs opacity-90",children:"7477247488"})]})]})]})]})]})})]})})}const kE={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},bE={hidden:{opacity:0,x:-20},visible:{opacity:1,x:0,transition:{duration:.5,ease:"easeOut"}}};function CE({vehicles:t,onSelect:r}){return f.jsxs("div",{className:"space-y-4",children:[f.jsx(H.h2,{className:"mb-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:"Choose Your Vehicle"}),f.jsx(H.div,{className:"grid gap-4",variants:kE,initial:"hidden",animate:"visible",children:t.map((i,s)=>f.jsx(H.div,{variants:bE,whileHover:{scale:1.02,transition:{duration:.2}},whileTap:{scale:.98},children:f.jsx(Rt,{className:"hover:shadow-lg transition-all duration-300 cursor-pointer border-2 hover:border-primary/20 group",children:f.jsx(Mt,{className:"p-6",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs(H.div,{className:"w-16 h-16 bg-gradient-to-br from-primary/10 to-primary/20 rounded-lg flex items-center justify-center relative overflow-hidden",whileHover:{rotate:[0,-5,5,0]},transition:{duration:.5},children:[f.jsx(H.div,{animate:{y:[0,-2,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:f.jsx(Pi,{className:"h-8 w-8 text-primary"})}),f.jsx(H.div,{className:"absolute top-1 right-1",animate:{opacity:[0,1,0],scale:[.5,1,.5]},transition:{duration:2,repeat:1/0,delay:s*.3},children:f.jsx(NN,{className:"h-3 w-3 text-yellow-400"})})]}),f.jsxs("div",{className:"space-y-1",children:[f.jsx(H.h3,{className:"font-medium group-hover:text-primary transition-colors",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:i.name}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[f.jsx(H.div,{animate:{rotate:[0,360]},transition:{duration:20,repeat:1/0,ease:"linear"},children:f.jsx(Ei,{className:"h-4 w-4"})}),f.jsxs("span",{children:[i.capacity," passengers"]}),f.jsx("span",{children:"•"}),f.jsx(Va,{className:"h-4 w-4 fill-yellow-400 text-yellow-400"}),f.jsx(H.span,{animate:{scale:[1,1.1,1]},transition:{duration:2,repeat:1/0},children:i.rating})]}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[f.jsx(H.div,{animate:{rotate:[0,360]},transition:{duration:60,repeat:1/0,ease:"linear"},children:f.jsx(Mr,{className:"h-4 w-4"})}),f.jsx("span",{children:i.estimatedTime})]}),f.jsx(H.div,{className:"flex gap-1 mt-2",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},children:i.features.map((l,u)=>f.jsx(H.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.4+u*.1},whileHover:{scale:1.1},children:f.jsx(zo,{variant:"secondary",className:"text-xs",children:l})},u))})]})]}),f.jsxs("div",{className:"text-right space-y-2",children:[f.jsx(H.div,{className:"text-right",initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.2},whileHover:{scale:1.1},children:f.jsxs("div",{className:"text-2xl font-semibold text-primary",children:["₹",i.price]})}),f.jsx(H.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:f.jsx(ft,{onClick:()=>r(i),className:"w-full group-hover:shadow-lg transition-shadow",children:f.jsx(H.span,{animate:{x:[0,2,0]},transition:{duration:2,repeat:1/0},children:"Select"})})})]})]})})})},i.id))})]})}function NE({availableVehicles:t,bookingData:r,onVehicleSelect:i,onBack:s}){return f.jsx(H.div,{className:"container mx-auto px-4 py-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs(H.div,{className:"flex items-center gap-4 mb-6",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2},children:[f.jsx(H.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:f.jsxs(ft,{variant:"ghost",onClick:s,children:[f.jsx(Bv,{className:"h-4 w-4 mr-2"}),"Back"]})}),f.jsxs("div",{children:[f.jsx(H.h1,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},children:"Available Vehicles"}),f.jsxs(H.p,{className:"text-muted-foreground",initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},children:["From ",r.pickup," to ",r.dropoff]})]})]}),f.jsx(H.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:f.jsx(CE,{vehicles:t,onSelect:i})})]})})}function TE({bookingData:t,selectedVehicle:r,onConfirm:i,onEdit:s}){return r.price,f.jsxs(Rt,{className:"w-full max-w-2xl",children:[f.jsx(gi,{children:f.jsxs(yi,{className:"flex items-center gap-2",children:[f.jsx(Wv,{className:"h-5 w-5 text-green-500"}),"Confirm Your Booking"]})}),f.jsxs(Mt,{className:"space-y-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{children:"Trip Details"}),f.jsxs("div",{className:"grid gap-3",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(tr,{className:"h-4 w-4 text-green-500"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Pickup"}),f.jsx("div",{children:t.pickup})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(tr,{className:"h-4 w-4 text-red-500"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Drop-off"}),f.jsx("div",{children:t.dropoff})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Hv,{className:"h-4 w-4"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Date & Time"}),f.jsxs("div",{children:[new Date(t.date).toLocaleDateString()," at ",t.time]})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Ei,{className:"h-4 w-4"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Passengers"}),f.jsx("div",{children:t.passengers})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx($v,{className:"h-4 w-4"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Contact Name"}),f.jsx("div",{children:t.contactName})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(pn,{className:"h-4 w-4"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Contact Number"}),f.jsx("div",{children:t.contactNumber})]})]})]})]}),f.jsx(zu,{}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{children:"Selected Vehicle"}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-lg flex items-center justify-center",children:f.jsx(Pi,{className:"h-6 w-6 text-gray-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("div",{className:"font-medium",children:r.name}),f.jsxs("div",{className:"text-sm text-muted-foreground",children:[r.capacity," passengers • ",r.estimatedTime]}),f.jsx("div",{className:"flex gap-1 mt-1",children:r.features.map((l,u)=>f.jsx(zo,{variant:"secondary",className:"text-xs",children:l},u))})]})]})]}),f.jsx(zu,{}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{children:"Booking Information"}),f.jsxs("div",{className:"flex justify-between items-center p-4 bg-green-50 rounded-lg",children:[f.jsx("span",{className:"font-medium",children:t.dropoff.includes("Airport Taxi")?"Airport Taxi Fee":"Customize Price"}),f.jsx("span",{className:"text-xl font-semibold text-green-600",children:t.dropoff.includes("Airport Taxi")?"₹1099":"Call for Quote"})]}),f.jsx("div",{className:"text-sm text-muted-foreground text-center",children:t.dropoff.includes("Airport Taxi")?`₹1099 fixed rate for airport taxi. Driver will contact you at ${t.contactNumber} for pickup details.`:`Driver will contact you at ${t.contactNumber} for final pricing and trip details.`})]}),f.jsxs("div",{className:"flex gap-3 pt-4",children:[f.jsx(ft,{variant:"outline",onClick:s,className:"flex-1",children:"Edit Booking"}),f.jsx(ft,{onClick:i,className:"flex-1 bg-green-600 hover:bg-green-700",children:"Book Now"})]})]})]})}function jE({bookingData:t,selectedVehicle:r,onConfirm:i,onEdit:s,onBack:l}){return f.jsx("div",{className:"container mx-auto px-4 py-8",children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[f.jsxs(ft,{variant:"ghost",onClick:l,children:[f.jsx(Bv,{className:"h-4 w-4 mr-2"}),"Back"]}),f.jsx("h1",{children:"Review Your Booking"})]}),f.jsx("div",{className:"flex justify-center",children:f.jsx(TE,{bookingData:t,selectedVehicle:r,onConfirm:i,onEdit:s})})]})})}function PE(){const t=S.useRef(null);return{playSuccessSound:S.useCallback(()=>{try{t.current||(t.current=new(window.AudioContext||window.webkitAudioContext));const i=t.current;i.state==="suspended"&&i.resume();const s=i.currentTime,l=[523.25,659.25,783.99],u=.15,c=.05;l.forEach((p,m)=>{const g=i.createOscillator(),y=i.createGain();g.connect(y),y.connect(i.destination),g.type="sine",g.frequency.setValueAtTime(p,s);const v=s+m*(u+c);y.gain.setValueAtTime(0,v),y.gain.linearRampToValueAtTime(.3,v+.02),y.gain.exponentialRampToValueAtTime(.01,v+u),g.start(v),g.stop(v+u)}),setTimeout(()=>{const p=i.createOscillator(),m=i.createGain();p.connect(m),m.connect(i.destination),p.type="triangle",p.frequency.setValueAtTime(1046.5,i.currentTime),m.gain.setValueAtTime(0,i.currentTime),m.gain.linearRampToValueAtTime(.2,i.currentTime+.01),m.gain.exponentialRampToValueAtTime(.001,i.currentTime+.4),p.start(),p.stop(i.currentTime+.4)},500)}catch(i){console.warn("Audio playback failed:",i)}},[])}}const EE=Array.from({length:20},(t,r)=>({id:r,x:Math.random()*100,delay:Math.random()*2,duration:3+Math.random()*2}));function AE({selectedVehicle:t,onBookAnother:r}){const{playSuccessSound:i}=PE();return S.useEffect(()=>{const s=setTimeout(()=>{i()},600);return()=>clearTimeout(s)},[i]),f.jsxs(H.div,{className:"container mx-auto px-4 py-8 relative overflow-hidden",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},children:[EE.map(s=>f.jsx(H.div,{className:"absolute w-2 h-2 bg-primary rounded-full",style:{left:`${s.x}%`,top:"-10px"},animate:{y:[0,window.innerHeight+20],rotate:[0,360],opacity:[1,0]},transition:{duration:s.duration,delay:s.delay,ease:"easeOut"}},s.id)),f.jsx("div",{className:"max-w-2xl mx-auto relative z-10",children:f.jsx(H.div,{initial:{scale:.8,opacity:0,y:20},animate:{scale:1,opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:f.jsx(Rt,{className:"text-center shadow-xl border-green-200",children:f.jsxs(Mt,{className:"p-8",children:[f.jsxs(H.div,{className:"relative mx-auto mb-6",initial:{scale:0},animate:{scale:1},transition:{delay:.3,duration:.6,type:"spring",stiffness:200},children:[f.jsx(H.div,{animate:{rotate:[0,360],scale:[1,1.1,1]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:f.jsx(Wv,{className:"h-16 w-16 text-green-500 mx-auto"})}),[0,45,90,135,180,225,270,315].map((s,l)=>f.jsx(H.div,{className:"absolute w-1 h-1 bg-yellow-400 rounded-full",style:{top:"50%",left:"50%",transformOrigin:"0 0",transform:`rotate(${s}deg) translate(40px, -1px)`},animate:{opacity:[0,1,0],scale:[0,1,0]},transition:{duration:1.5,repeat:1/0,delay:l*.2}},s))]}),f.jsx(H.h1,{className:"mb-4 text-green-600",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:"Booking Confirmed!"}),f.jsx(H.p,{className:"text-muted-foreground mb-6",initial:{opacity:0},animate:{opacity:1},transition:{delay:.6},children:"Your ride has been booked successfully. Confirmation emails have been sent to both you and Sangwari Taxi."}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs(H.div,{className:"bg-gradient-to-r from-muted to-muted/50 p-4 rounded-lg relative overflow-hidden",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.7},children:[f.jsx(H.div,{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-green-400 to-green-600",initial:{width:0},animate:{width:"100%"},transition:{delay:.8,duration:1}}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(eN,{className:"h-5 w-5 text-primary"}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium",children:"Booking Reference"}),f.jsxs(H.p,{className:"text-muted-foreground font-mono",animate:{color:["#666","#22c55e","#666"]},transition:{duration:2,repeat:1/0},children:["#RN",Date.now().toString().slice(-6)]})]})]})]}),f.jsx(H.div,{className:"bg-gradient-to-r from-blue-50 to-blue-100 p-4 rounded-lg relative",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.75},children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(H.div,{animate:{rotate:[0,10,-10,0]},transition:{duration:2,repeat:1/0},children:f.jsx(Oa,{className:"h-5 w-5 text-blue-600"})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium",children:"Booking Confirmed"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"You will be contacted at bookme@sangwaritaxi.com"})]})]})}),f.jsx(H.div,{className:"bg-gradient-to-r from-primary/5 to-primary/10 p-4 rounded-lg relative",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.8},children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(H.div,{animate:{x:[0,3,0]},transition:{duration:2,repeat:1/0},children:f.jsx(Pi,{className:"h-5 w-5 text-primary"})}),f.jsx("div",{children:f.jsx(H.p,{className:"text-lg font-semibold text-primary",animate:{scale:[1,1.02,1]},transition:{duration:1.5,repeat:1/0},children:t.estimatedTime})})]})})]}),f.jsx(H.div,{className:"mt-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},children:f.jsx(H.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:f.jsxs(ft,{variant:"outline",onClick:r,className:"w-full",children:[f.jsx(Va,{className:"h-4 w-4 mr-2"}),"Book Another Ride"]})})})]})})})})]})}const RE=[{icon:Mr,title:"24/7 Availability",description:"Book a ride anytime, anywhere. Our drivers are always ready to serve you.",color:"text-blue-500",bgColor:"bg-blue-50 dark:bg-blue-500/10"},{icon:Dd,title:"Safe & Secure",description:"All our drivers are verified and vehicles are regularly inspected for your safety.",color:"text-green-500",bgColor:"bg-green-50 dark:bg-green-500/10"},{icon:Va,title:"Top Rated Drivers",description:"Experienced and professional drivers with excellent customer ratings.",color:"text-yellow-500",bgColor:"bg-yellow-50 dark:bg-yellow-500/10"},{icon:Pi,title:"Well-Maintained Fleet",description:"Our vehicles undergo regular maintenance and cleaning for your comfort.",color:"text-purple-500",bgColor:"bg-purple-50 dark:bg-purple-500/10"},{icon:Ei,title:"Trusted by Thousands",description:"Join thousands of satisfied customers who trust Sangwari Taxi for their journeys.",color:"text-red-500",bgColor:"bg-red-50 dark:bg-red-500/10"},{icon:pn,title:"24/7 Support",description:"Our customer support team is available round the clock to assist you.",color:"text-indigo-500",bgColor:"bg-indigo-50 dark:bg-indigo-500/10"}],ME={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},IE={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.5,ease:"easeOut"}}};function DE(){return f.jsx("section",{className:"py-8 sm:py-12 lg:py-16 bg-muted/50",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs(H.div,{className:"text-center mb-8 sm:mb-10 lg:mb-12",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[f.jsx("h2",{className:"mb-3 sm:mb-4 text-2xl sm:text-3xl lg:text-4xl",children:"Why Choose Sangwari Taxi?"}),f.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-muted-foreground max-w-2xl mx-auto px-4",children:"Experience the best transportation service with our commitment to quality, safety, and convenience."})]}),f.jsx(H.div,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",variants:ME,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:RE.map((t,r)=>f.jsx(H.div,{variants:IE,whileHover:{y:-4},transition:{duration:.2},children:f.jsx(Rt,{className:"text-center h-full hover:shadow-lg transition-shadow duration-300",children:f.jsxs(Mt,{className:"p-6",children:[f.jsx("div",{className:`w-12 h-12 ${t.bgColor} rounded-lg flex items-center justify-center mx-auto mb-4`,children:f.jsx(t.icon,{className:`h-6 w-6 ${t.color}`})}),f.jsx("h3",{className:"mb-3",children:t.title}),f.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]})})},r))})]})})}function LE({currentStep:t,bookingData:r,selectedVehicle:i,availableVehicles:s,onSubmit:l,onVehicleSelect:u,onConfirm:c,onBackToForm:p,onBackToVehicles:m}){switch(t){case"form":return f.jsxs(f.Fragment,{children:[f.jsx(wE,{children:f.jsx(SE,{onSubmit:l})}),f.jsx(DE,{}),f.jsx(Gv,{})]});case"vehicles":return f.jsx(NE,{availableVehicles:s,bookingData:r,onVehicleSelect:u,onBack:p});case"confirmation":return f.jsx(jE,{bookingData:r,selectedVehicle:i,onConfirm:c,onEdit:p,onBack:m});case"success":return f.jsx(AE,{selectedVehicle:i,onBookAnother:p});default:return null}}function Ug({message:t="Loading...",showCar:r=!1}){return f.jsxs("div",{className:"flex flex-col items-center justify-center py-12 px-4",children:[f.jsx("div",{className:"relative mb-4",children:r?f.jsxs(H.div,{className:"relative",animate:{x:[-20,20,-20],rotate:[0,2,-2,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:[f.jsx(Pi,{className:"h-12 w-12 text-primary"}),f.jsx(H.div,{className:"absolute -right-1 -top-1 w-3 h-3 bg-primary/30 rounded-full",animate:{scale:[.5,1.2,.5],opacity:[.3,.8,.3]},transition:{duration:1,repeat:1/0,ease:"easeInOut"}}),f.jsx(H.div,{className:"absolute -left-2 bottom-0 w-2 h-2 bg-primary/20 rounded-full",animate:{scale:[.3,.8,.3],opacity:[.2,.6,.2]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut",delay:.3}})]}):f.jsx(H.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:f.jsx(sN,{className:"h-8 w-8 text-primary"})})}),f.jsx(H.p,{className:"text-muted-foreground text-center max-w-xs",animate:{opacity:[.6,1,.6]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:t}),f.jsx("div",{className:"flex gap-1 mt-2",children:[0,1,2].map(i=>f.jsx(H.div,{className:"w-2 h-2 bg-primary rounded-full",animate:{scale:[.5,1,.5],opacity:[.3,1,.3]},transition:{duration:1.5,repeat:1/0,delay:i*.2}},i))})]})}const _E={form:"Setting up your booking...",vehicles:"Finding available vehicles...",confirmation:"Preparing your booking details...",success:"Sending confirmation emails..."},OE=300,VE=1e3,FE=500;function zE({currentPage:t,currentStep:r,bookingData:i,selectedVehicle:s,availableVehicles:l,isLoading:u,onSubmit:c,onVehicleSelect:p,onConfirm:m,onBackToForm:g,onBackToVehicles:y}){const v=()=>u?f.jsx(Ug,{message:_E[r]||"Loading...",showCar:!0}):f.jsx(Pu,{mode:"wait",children:f.jsx(H.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4},children:f.jsx(LE,{currentStep:r,bookingData:i,selectedVehicle:s,availableVehicles:l,onSubmit:c,onVehicleSelect:p,onConfirm:m,onBackToForm:g,onBackToVehicles:y})},r)});return u&&t!=="home"?f.jsx(Ug,{message:"Loading page...",showCar:!1}):f.jsx(Pu,{mode:"wait",children:f.jsx(H.div,{initial:{opacity:0,x:t==="home"?0:30},animate:{opacity:1,x:0},exit:{opacity:0,x:t==="home"?0:-30},transition:{duration:.4},children:(()=>{switch(t){case"home":return v();case"services":return f.jsx(Gv,{});case"about":return f.jsx(KN,{});case"contact":return f.jsx(vE,{});default:return v()}})()},t)})}const ma=[{id:"1",type:"5-seater",name:"5 Seater",price:1099,capacity:5,rating:4.5,estimatedTime:"Rider will contact you soon",features:["AC","Music System","Comfortable","Airport Taxi ₹1099"],image:""},{id:"2",type:"7-seater",name:"7 Seater (Ertiga)",price:1600,capacity:7,rating:4.6,estimatedTime:"Rider will contact you soon",features:["AC","Spacious","Family Car","Airport Taxi ₹1600"],image:""},{id:"3",type:"innova",name:"Innova",price:2e3,capacity:8,rating:4.8,estimatedTime:"Rider will contact you soon",features:["AC","Premium","Spacious","Comfortable","Airport Taxi ₹2000"],image:""}];function BE(t){const r=parseInt(t.passengers);let i=ma;if(t.vehicleType&&t.vehicleType!==""){const s=t.vehicleType;i=ma.filter(l=>l.type===s||l.capacity>=r)}else i=ma.filter(s=>s.capacity>=r);return i.length===0&&(i=ma),i}const HE=async(t,r)=>{await new Promise(s=>setTimeout(s,1e3));const i=`SNG${Date.now().toString().slice(-6)}`;if(console.log("Booking Details:",{bookingId:i,customer:{name:t.contactName,pickup:t.pickup,dropoff:t.dropoff,date:t.date,time:t.time},vehicle:{type:r.type,price:r.price,estimatedTime:r.estimatedTime}}),Math.random()>.05)return{success:!0,bookingId:i};throw new Error("Mock email service unavailable")};async function UE(t,r){try{const i=await HE(t,r);return i.success?(console.log("Booking confirmed successfully:",i.bookingId),{success:!0,bookingId:i.bookingId}):{success:!1,error:"SERVICE_ERROR",message:"Booking service temporarily unavailable"}}catch(i){return console.error("Error confirming booking:",i),{success:!1,error:"NETWORK_ERROR",message:`Network error: ${i instanceof Error?i.message:"Unknown error"}`}}}function WE(t){alert(t==="SERVICE_ERROR"?"Booking saved! However, the booking service is temporarily unavailable. You will be contacted directly at your provided phone number.":t==="NETWORK_ERROR"?"Booking confirmed! There was a minor network issue, but your booking is saved and you will be contacted directly.":"Booking confirmed! Your booking has been processed and you will be contacted directly.")}function $E(){const[t,r]=S.useState("form"),[i,s]=S.useState(null),[l,u]=S.useState(null),[c,p]=S.useState([]),[m,g]=S.useState(!1);return{currentStep:t,bookingData:i,selectedVehicle:l,availableVehicles:c,isLoading:m,handleBookingSubmit:N=>{g(!0),setTimeout(()=>{s(N);const P=BE(N);p(P),r("vehicles"),g(!1)},VE)},handleVehicleSelect:N=>{g(!0),setTimeout(()=>{u(N),r("confirmation"),g(!1)},FE)},handleConfirmBooking:async()=>{if(!i||!l)return;g(!0);const N=await UE(i,l);N.success||WE(N.error),r("success"),g(!1)},handleBackToForm:()=>{r("form"),s(null),u(null)},handleBackToVehicles:()=>{r("vehicles"),u(null)},resetBookingFlow:()=>{r("form"),s(null),u(null)}}}function KE(){const[t,r]=S.useState("home"),[i,s]=S.useState(!1);return{currentPage:t,isLoading:i,handleNavigate:(u,c)=>{s(!0),setTimeout(()=>{r(u),u!=="home"&&c&&c(),s(!1)},OE)}}}function GE(){const{currentStep:t,bookingData:r,selectedVehicle:i,availableVehicles:s,isLoading:l,handleBookingSubmit:u,handleVehicleSelect:c,handleConfirmBooking:p,handleBackToForm:m,handleBackToVehicles:g,resetBookingFlow:y}=$E(),{currentPage:v,isLoading:w,handleNavigate:b}=KE(),T=l||w,k=N=>{b(N,()=>{N!=="home"&&y()})};return f.jsxs("div",{className:"min-h-screen bg-background flex flex-col overflow-x-hidden",children:[f.jsx(jN,{currentPage:v,onNavigate:k}),f.jsx("main",{className:"flex-1 overflow-x-hidden",children:f.jsx(zE,{currentPage:v,currentStep:t,bookingData:r,selectedVehicle:i,availableVehicles:s,isLoading:T,onSubmit:u,onVehicleSelect:c,onConfirm:p,onBackToForm:m,onBackToVehicles:g})}),f.jsx(LN,{onNavigate:k}),f.jsx(_N,{})]})}u1.createRoot(document.getElementById("root")).render(f.jsx(GE,{}));
|