/home/awneajlw/.trash/assets.13/index-DkLFqUad.js
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function a(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=a(o);fetch(o.href,c)}})();var _n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yj(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var a=function s(){var o=!1;try{o=this instanceof s}catch{}return o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(a,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),a}var Nf={exports:{}},Yi={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Iy;function Wj(){if(Iy)return Yi;Iy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(s,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var f in o)f!=="key"&&(c[f]=o[f])}else c=o;return o=c.ref,{$$typeof:e,type:s,key:d,ref:o!==void 0?o:null,props:c}}return Yi.Fragment=n,Yi.jsx=a,Yi.jsxs=a,Yi}var Gy;function Xj(){return Gy||(Gy=1,Nf.exports=Wj()),Nf.exports}var u=Xj(),kf={exports:{}},Ve={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qy;function Kj(){if(qy)return Ve;qy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.iterator;function b(v){return v===null||typeof v!="object"?null:(v=x&&v[x]||v["@@iterator"],typeof v=="function"?v:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function E(v,O,F){this.props=v,this.context=O,this.refs=S,this.updater=F||A}E.prototype.isReactComponent={},E.prototype.setState=function(v,O){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,O,"setState")},E.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function T(){}T.prototype=E.prototype;function C(v,O,F){this.props=v,this.context=O,this.refs=S,this.updater=F||A}var L=C.prototype=new T;L.constructor=C,k(L,E.prototype),L.isPureReactComponent=!0;var G=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function B(v,O,F,J,Q,ne){return F=ne.ref,{$$typeof:e,type:v,key:O,ref:F!==void 0?F:null,props:ne}}function H(v,O){return B(v.type,O,void 0,void 0,void 0,v.props)}function M(v){return typeof v=="object"&&v!==null&&v.$$typeof===e}function R(v){var O={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(F){return O[F]})}var Z=/\/+/g;function P(v,O){return typeof v=="object"&&v!==null&&v.key!=null?R(""+v.key):O.toString(36)}function V(){}function j(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(V,V):(v.status="pending",v.then(function(O){v.status==="pending"&&(v.status="fulfilled",v.value=O)},function(O){v.status==="pending"&&(v.status="rejected",v.reason=O)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function K(v,O,F,J,Q){var ne=typeof v;(ne==="undefined"||ne==="boolean")&&(v=null);var ie=!1;if(v===null)ie=!0;else switch(ne){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(v.$$typeof){case e:case n:ie=!0;break;case g:return ie=v._init,K(ie(v._payload),O,F,J,Q)}}if(ie)return Q=Q(v),ie=J===""?"."+P(v,0):J,G(Q)?(F="",ie!=null&&(F=ie.replace(Z,"$&/")+"/"),K(Q,O,F,"",function(Ae){return Ae})):Q!=null&&(M(Q)&&(Q=H(Q,F+(Q.key==null||v&&v.key===Q.key?"":(""+Q.key).replace(Z,"$&/")+"/")+ie)),O.push(Q)),1;ie=0;var be=J===""?".":J+":";if(G(v))for(var Se=0;Se<v.length;Se++)J=v[Se],ne=be+P(J,Se),ie+=K(J,O,F,ne,Q);else if(Se=b(v),typeof Se=="function")for(v=Se.call(v),Se=0;!(J=v.next()).done;)J=J.value,ne=be+P(J,Se++),ie+=K(J,O,F,ne,Q);else if(ne==="object"){if(typeof v.then=="function")return K(j(v),O,F,J,Q);throw O=String(v),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return ie}function X(v,O,F){if(v==null)return v;var J=[],Q=0;return K(v,J,"","",function(ne){return O.call(F,ne,Q++)}),J}function w(v){if(v._status===-1){var O=v._result;O=O(),O.then(function(F){(v._status===0||v._status===-1)&&(v._status=1,v._result=F)},function(F){(v._status===0||v._status===-1)&&(v._status=2,v._result=F)}),v._status===-1&&(v._status=0,v._result=O)}if(v._status===1)return v._result.default;throw v._result}var ue=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)};function I(){}return Ve.Children={map:X,forEach:function(v,O,F){X(v,function(){O.apply(this,arguments)},F)},count:function(v){var O=0;return X(v,function(){O++}),O},toArray:function(v){return X(v,function(O){return O})||[]},only:function(v){if(!M(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},Ve.Component=E,Ve.Fragment=a,Ve.Profiler=o,Ve.PureComponent=C,Ve.StrictMode=s,Ve.Suspense=h,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(v){return N.H.useMemoCache(v)}},Ve.cache=function(v){return function(){return v.apply(null,arguments)}},Ve.cloneElement=function(v,O,F){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var J=k({},v.props),Q=v.key,ne=void 0;if(O!=null)for(ie in O.ref!==void 0&&(ne=void 0),O.key!==void 0&&(Q=""+O.key),O)!z.call(O,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&O.ref===void 0||(J[ie]=O[ie]);var ie=arguments.length-2;if(ie===1)J.children=F;else if(1<ie){for(var be=Array(ie),Se=0;Se<ie;Se++)be[Se]=arguments[Se+2];J.children=be}return B(v.type,Q,void 0,void 0,ne,J)},Ve.createContext=function(v){return v={$$typeof:d,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:c,_context:v},v},Ve.createElement=function(v,O,F){var J,Q={},ne=null;if(O!=null)for(J in O.key!==void 0&&(ne=""+O.key),O)z.call(O,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(Q[J]=O[J]);var ie=arguments.length-2;if(ie===1)Q.children=F;else if(1<ie){for(var be=Array(ie),Se=0;Se<ie;Se++)be[Se]=arguments[Se+2];Q.children=be}if(v&&v.defaultProps)for(J in ie=v.defaultProps,ie)Q[J]===void 0&&(Q[J]=ie[J]);return B(v,ne,void 0,void 0,null,Q)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(v){return{$$typeof:f,render:v}},Ve.isValidElement=M,Ve.lazy=function(v){return{$$typeof:g,_payload:{_status:-1,_result:v},_init:w}},Ve.memo=function(v,O){return{$$typeof:m,type:v,compare:O===void 0?null:O}},Ve.startTransition=function(v){var O=N.T,F={};N.T=F;try{var J=v(),Q=N.S;Q!==null&&Q(F,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,ue)}catch(ne){ue(ne)}finally{N.T=O}},Ve.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ve.use=function(v){return N.H.use(v)},Ve.useActionState=function(v,O,F){return N.H.useActionState(v,O,F)},Ve.useCallback=function(v,O){return N.H.useCallback(v,O)},Ve.useContext=function(v){return N.H.useContext(v)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(v,O){return N.H.useDeferredValue(v,O)},Ve.useEffect=function(v,O,F){var J=N.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(v,O)},Ve.useId=function(){return N.H.useId()},Ve.useImperativeHandle=function(v,O,F){return N.H.useImperativeHandle(v,O,F)},Ve.useInsertionEffect=function(v,O){return N.H.useInsertionEffect(v,O)},Ve.useLayoutEffect=function(v,O){return N.H.useLayoutEffect(v,O)},Ve.useMemo=function(v,O){return N.H.useMemo(v,O)},Ve.useOptimistic=function(v,O){return N.H.useOptimistic(v,O)},Ve.useReducer=function(v,O,F){return N.H.useReducer(v,O,F)},Ve.useRef=function(v){return N.H.useRef(v)},Ve.useState=function(v){return N.H.useState(v)},Ve.useSyncExternalStore=function(v,O,F){return N.H.useSyncExternalStore(v,O,F)},Ve.useTransition=function(){return N.H.useTransition()},Ve.version="19.1.0",Ve}var Yy;function Dn(){return Yy||(Yy=1,kf.exports=Kj()),kf.exports}var W=Dn();const Da=Gc(W);var _f={exports:{}},Wi={},Of={exports:{}},Rf={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wy;function Zj(){return Wy||(Wy=1,function(e){function n(X,w){var ue=X.length;X.push(w);e:for(;0<ue;){var I=ue-1>>>1,v=X[I];if(0<o(v,w))X[I]=w,X[ue]=v,ue=I;else break e}}function a(X){return X.length===0?null:X[0]}function s(X){if(X.length===0)return null;var w=X[0],ue=X.pop();if(ue!==w){X[0]=ue;e:for(var I=0,v=X.length,O=v>>>1;I<O;){var F=2*(I+1)-1,J=X[F],Q=F+1,ne=X[Q];if(0>o(J,ue))Q<v&&0>o(ne,J)?(X[I]=ne,X[Q]=ue,I=Q):(X[I]=J,X[F]=ue,I=F);else if(Q<v&&0>o(ne,ue))X[I]=ne,X[Q]=ue,I=Q;else break e}}return w}function o(X,w){var ue=X.sortIndex-w.sortIndex;return ue!==0?ue:X.id-w.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var h=[],m=[],g=1,x=null,b=3,A=!1,k=!1,S=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(X){for(var w=a(m);w!==null;){if(w.callback===null)s(m);else if(w.startTime<=X)s(m),w.sortIndex=w.expirationTime,n(h,w);else break;w=a(m)}}function N(X){if(S=!1,G(X),!k)if(a(h)!==null)k=!0,z||(z=!0,P());else{var w=a(m);w!==null&&K(N,w.startTime-X)}}var z=!1,B=-1,H=5,M=-1;function R(){return E?!0:!(e.unstable_now()-M<H)}function Z(){if(E=!1,z){var X=e.unstable_now();M=X;var w=!0;try{e:{k=!1,S&&(S=!1,C(B),B=-1),A=!0;var ue=b;try{t:{for(G(X),x=a(h);x!==null&&!(x.expirationTime>X&&R());){var I=x.callback;if(typeof I=="function"){x.callback=null,b=x.priorityLevel;var v=I(x.expirationTime<=X);if(X=e.unstable_now(),typeof v=="function"){x.callback=v,G(X),w=!0;break t}x===a(h)&&s(h),G(X)}else s(h);x=a(h)}if(x!==null)w=!0;else{var O=a(m);O!==null&&K(N,O.startTime-X),w=!1}}break e}finally{x=null,b=ue,A=!1}w=void 0}}finally{w?P():z=!1}}}var P;if(typeof L=="function")P=function(){L(Z)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,j=V.port2;V.port1.onmessage=Z,P=function(){j.postMessage(null)}}else P=function(){T(Z,0)};function K(X,w){B=T(function(){X(e.unstable_now())},w)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(X){switch(b){case 1:case 2:case 3:var w=3;break;default:w=b}var ue=b;b=w;try{return X()}finally{b=ue}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(X,w){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var ue=b;b=X;try{return w()}finally{b=ue}},e.unstable_scheduleCallback=function(X,w,ue){var I=e.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?I+ue:I):ue=I,X){case 1:var v=-1;break;case 2:v=250;break;case 5:v=1073741823;break;case 4:v=1e4;break;default:v=5e3}return v=ue+v,X={id:g++,callback:w,priorityLevel:X,startTime:ue,expirationTime:v,sortIndex:-1},ue>I?(X.sortIndex=ue,n(m,X),a(h)===null&&X===a(m)&&(S?(C(B),B=-1):S=!0,K(N,ue-I))):(X.sortIndex=v,n(h,X),k||A||(k=!0,z||(z=!0,P()))),X},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(X){var w=b;return function(){var ue=b;b=w;try{return X.apply(this,arguments)}finally{b=ue}}}}(Rf)),Rf}var Xy;function $j(){return Xy||(Xy=1,Of.exports=Zj()),Of.exports}var Cf={exports:{}},Vt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ky;function Qj(){if(Ky)return Vt;Ky=1;var e=Dn();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,m,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:h,containerInfo:m,implementation:g}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vt.createPortal=function(h,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return c(h,m,null,g)},Vt.flushSync=function(h){var m=d.T,g=s.p;try{if(d.T=null,s.p=2,h)return h()}finally{d.T=m,s.p=g,s.d.f()}},Vt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},Vt.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Vt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,x=f(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,A=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:A}):g==="script"&&s.d.X(h,{crossOrigin:x,integrity:b,fetchPriority:A,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Vt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=f(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},Vt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,x=f(g,m.crossOrigin);s.d.L(h,g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Vt.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=f(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},Vt.requestFormReset=function(h){s.d.r(h)},Vt.unstable_batchedUpdates=function(h,m){return h(m)},Vt.useFormState=function(h,m,g){return d.H.useFormState(h,m,g)},Vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Vt.version="19.1.0",Vt}var Zy;function Jj(){if(Zy)return Cf.exports;Zy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Cf.exports=Qj(),Cf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $y;function eA(){if($y)return Wi;$y=1;var e=$j(),n=Dn(),a=Jj();function s(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function d(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(c(t)!==t)throw Error(s(188))}function h(t){var r=t.alternate;if(!r){if(r=c(t),r===null)throw Error(s(188));return r!==t?null:t}for(var i=t,l=r;;){var p=i.return;if(p===null)break;var y=p.alternate;if(y===null){if(l=p.return,l!==null){i=l;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===i)return f(p),t;if(y===l)return f(p),r;y=y.sibling}throw Error(s(188))}if(i.return!==l.return)i=p,l=y;else{for(var D=!1,U=p.child;U;){if(U===i){D=!0,i=p,l=y;break}if(U===l){D=!0,l=p,i=y;break}U=U.sibling}if(!D){for(U=y.child;U;){if(U===i){D=!0,i=y,l=p;break}if(U===l){D=!0,l=y,i=p;break}U=U.sibling}if(!D)throw Error(s(189))}}if(i.alternate!==l)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:r}function m(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=m(t),r!==null)return r;t=t.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),L=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function P(t){return t===null||typeof t!="object"?null:(t=Z&&t[Z]||t["@@iterator"],typeof t=="function"?t:null)}var V=Symbol.for("react.client.reference");function j(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===V?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case k:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case z:return"SuspenseList";case M:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case L:return(t.displayName||"Context")+".Provider";case C:return(t._context.displayName||"Context")+".Consumer";case G:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case B:return r=t.displayName||null,r!==null?r:j(t.type)||"Memo";case H:r=t._payload,t=t._init;try{return j(t(r))}catch{}}return null}var K=Array.isArray,X=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},I=[],v=-1;function O(t){return{current:t}}function F(t){0>v||(t.current=I[v],I[v]=null,v--)}function J(t,r){v++,I[v]=t.current,t.current=r}var Q=O(null),ne=O(null),ie=O(null),be=O(null);function Se(t,r){switch(J(ie,r),J(ne,t),J(Q,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?yy(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=yy(r),t=xy(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}F(Q),J(Q,t)}function Ae(){F(Q),F(ne),F(ie)}function Ne(t){t.memoizedState!==null&&J(be,t);var r=Q.current,i=xy(r,t.type);r!==i&&(J(ne,t),J(Q,i))}function Oe(t){ne.current===t&&(F(Q),F(ne)),be.current===t&&(F(be),Vi._currentValue=ue)}var Le=Object.prototype.hasOwnProperty,Re=e.unstable_scheduleCallback,_=e.unstable_cancelCallback,de=e.unstable_shouldYield,ce=e.unstable_requestPaint,q=e.unstable_now,Y=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,oe=e.unstable_LowPriority,je=e.unstable_IdlePriority,Te=e.log,ee=e.unstable_setDisableYieldValue,xe=null,ke=null;function Ce(t){if(typeof Te=="function"&&ee(t),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(xe,t)}catch{}}var He=Math.clz32?Math.clz32:yn,an=Math.log,ht=Math.LN2;function yn(t){return t>>>=0,t===0?32:31-(an(t)/ht|0)|0}var at=256,ar=4194304;function Pn(t){var r=t&42;if(r!==0)return r;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Kt(t,r,i){var l=t.pendingLanes;if(l===0)return 0;var p=0,y=t.suspendedLanes,D=t.pingedLanes;t=t.warmLanes;var U=l&134217727;return U!==0?(l=U&~y,l!==0?p=Pn(l):(D&=U,D!==0?p=Pn(D):i||(i=U&~t,i!==0&&(p=Pn(i))))):(U=l&~y,U!==0?p=Pn(U):D!==0?p=Pn(D):i||(i=l&~t,i!==0&&(p=Pn(i)))),p===0?0:r!==0&&r!==p&&(r&y)===0&&(y=p&-p,i=r&-r,y>=i||y===32&&(i&4194048)!==0)?r:p}function _r(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function pu(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Uo(){var t=at;return at<<=1,(at&4194048)===0&&(at=256),t}function Bo(){var t=ar;return ar<<=1,(ar&62914560)===0&&(ar=4194304),t}function Va(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function zn(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ha(t,r,i,l,p,y){var D=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var U=t.entanglements,$=t.expirationTimes,le=t.hiddenUpdates;for(i=D&~i;0<i;){var ge=31-He(i),we=1<<ge;U[ge]=0,$[ge]=-1;var fe=le[ge];if(fe!==null)for(le[ge]=null,ge=0;ge<fe.length;ge++){var he=fe[ge];he!==null&&(he.lane&=-536870913)}i&=~we}l!==0&&np(t,l,0),y!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=y&~(D&~r))}function np(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var l=31-He(r);t.entangledLanes|=r,t.entanglements[l]=t.entanglements[l]|1073741824|i&4194090}function rp(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var l=31-He(i),p=1<<l;p&r|t[l]&r&&(t[l]|=r),i&=~p}}function gu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function yu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ap(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:zy(t.type))}function L2(t,r){var i=w.p;try{return w.p=t,r()}finally{w.p=i}}var Or=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Or,Zt="__reactProps$"+Or,Ia="__reactContainer$"+Or,xu="__reactEvents$"+Or,P2="__reactListeners$"+Or,z2="__reactHandles$"+Or,sp="__reactResources$"+Or,Qs="__reactMarker$"+Or;function vu(t){delete t[Ut],delete t[Zt],delete t[xu],delete t[P2],delete t[z2]}function Ga(t){var r=t[Ut];if(r)return r;for(var i=t.parentNode;i;){if(r=i[Ia]||i[Ut]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=Sy(t);t!==null;){if(i=t[Ut])return i;t=Sy(t)}return r}t=i,i=t.parentNode}return null}function qa(t){if(t=t[Ut]||t[Ia]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function Js(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(s(33))}function Ya(t){var r=t[sp];return r||(r=t[sp]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ot(t){t[Qs]=!0}var ip=new Set,op={};function la(t,r){Wa(t,r),Wa(t+"Capture",r)}function Wa(t,r){for(op[t]=r,t=0;t<r.length;t++)ip.add(r[t])}var F2=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lp={},cp={};function U2(t){return Le.call(cp,t)?!0:Le.call(lp,t)?!1:F2.test(t)?cp[t]=!0:(lp[t]=!0,!1)}function Vo(t,r,i){if(U2(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function Ho(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function sr(t,r,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+l)}}var bu,up;function Xa(t){if(bu===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);bu=r&&r[1]||"",up=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+bu+t+up}var wu=!1;function Su(t,r){if(!t||wu)return"";wu=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(he){var fe=he}Reflect.construct(t,[],we)}else{try{we.call()}catch(he){fe=he}t.call(we.prototype)}}else{try{throw Error()}catch(he){fe=he}(we=t())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(he){if(he&&fe&&typeof he.stack=="string")return[he.stack,fe.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=l.DetermineComponentFrameRoot(),D=y[0],U=y[1];if(D&&U){var $=D.split(`
`),le=U.split(`
`);for(p=l=0;l<$.length&&!$[l].includes("DetermineComponentFrameRoot");)l++;for(;p<le.length&&!le[p].includes("DetermineComponentFrameRoot");)p++;if(l===$.length||p===le.length)for(l=$.length-1,p=le.length-1;1<=l&&0<=p&&$[l]!==le[p];)p--;for(;1<=l&&0<=p;l--,p--)if($[l]!==le[p]){if(l!==1||p!==1)do if(l--,p--,0>p||$[l]!==le[p]){var ge=`
`+$[l].replace(" at new "," at ");return t.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",t.displayName)),ge}while(1<=l&&0<=p);break}}}finally{wu=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Xa(i):""}function B2(t){switch(t.tag){case 26:case 27:case 5:return Xa(t.type);case 16:return Xa("Lazy");case 13:return Xa("Suspense");case 19:return Xa("SuspenseList");case 0:case 15:return Su(t.type,!1);case 11:return Su(t.type.render,!1);case 1:return Su(t.type,!0);case 31:return Xa("Activity");default:return""}}function dp(t){try{var r="";do r+=B2(t),t=t.return;while(t);return r}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function xn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function fp(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function V2(t){var r=fp(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var p=i.get,y=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(D){l=""+D,y.call(this,D)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(D){l=""+D},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Io(t){t._valueTracker||(t._valueTracker=V2(t))}function hp(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),l="";return t&&(l=fp(t)?t.checked?"true":"false":t.value),t=l,t!==i?(r.setValue(t),!0):!1}function Go(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var H2=/[\n"\\]/g;function vn(t){return t.replace(H2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ju(t,r,i,l,p,y,D,U){t.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?t.type=D:t.removeAttribute("type"),r!=null?D==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+xn(r)):t.value!==""+xn(r)&&(t.value=""+xn(r)):D!=="submit"&&D!=="reset"||t.removeAttribute("value"),r!=null?Au(t,D,xn(r)):i!=null?Au(t,D,xn(i)):l!=null&&t.removeAttribute("value"),p==null&&y!=null&&(t.defaultChecked=!!y),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?t.name=""+xn(U):t.removeAttribute("name")}function mp(t,r,i,l,p,y,D,U){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.type=y),r!=null||i!=null){if(!(y!=="submit"&&y!=="reset"||r!=null))return;i=i!=null?""+xn(i):"",r=r!=null?""+xn(r):i,U||r===t.value||(t.value=r),t.defaultValue=r}l=l??p,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=U?t.checked:!!l,t.defaultChecked=!!l,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(t.name=D)}function Au(t,r,i){r==="number"&&Go(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ka(t,r,i,l){if(t=t.options,r){r={};for(var p=0;p<i.length;p++)r["$"+i[p]]=!0;for(i=0;i<t.length;i++)p=r.hasOwnProperty("$"+t[i].value),t[i].selected!==p&&(t[i].selected=p),p&&l&&(t[i].defaultSelected=!0)}else{for(i=""+xn(i),r=null,p=0;p<t.length;p++){if(t[p].value===i){t[p].selected=!0,l&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function pp(t,r,i){if(r!=null&&(r=""+xn(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+xn(i):""}function gp(t,r,i,l){if(r==null){if(l!=null){if(i!=null)throw Error(s(92));if(K(l)){if(1<l.length)throw Error(s(93));l=l[0]}i=l}i==null&&(i=""),r=i}i=xn(r),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l)}function Za(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var I2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yp(t,r,i){var l=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":l?t.setProperty(r,i):typeof i!="number"||i===0||I2.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function xp(t,r,i){if(r!=null&&typeof r!="object")throw Error(s(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var p in r)l=r[p],r.hasOwnProperty(p)&&i[p]!==l&&yp(t,p,l)}else for(var y in r)r.hasOwnProperty(y)&&yp(t,y,r[y])}function Tu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var G2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),q2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qo(t){return q2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Eu=null;function Nu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var $a=null,Qa=null;function vp(t){var r=qa(t);if(r&&(t=r.stateNode)){var i=t[Zt]||null;e:switch(t=r.stateNode,r.type){case"input":if(ju(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+vn(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var l=i[r];if(l!==t&&l.form===t.form){var p=l[Zt]||null;if(!p)throw Error(s(90));ju(l,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<i.length;r++)l=i[r],l.form===t.form&&hp(l)}break e;case"textarea":pp(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Ka(t,!!i.multiple,r,!1)}}}var ku=!1;function bp(t,r,i){if(ku)return t(r,i);ku=!0;try{var l=t(r);return l}finally{if(ku=!1,($a!==null||Qa!==null)&&(Ol(),$a&&(r=$a,t=Qa,Qa=$a=null,vp(r),t)))for(r=0;r<t.length;r++)vp(t[r])}}function ei(t,r){var i=t.stateNode;if(i===null)return null;var l=i[Zt]||null;if(l===null)return null;i=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,r,typeof i));return i}var ir=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_u=!1;if(ir)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){_u=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{_u=!1}var Rr=null,Ou=null,Yo=null;function wp(){if(Yo)return Yo;var t,r=Ou,i=r.length,l,p="value"in Rr?Rr.value:Rr.textContent,y=p.length;for(t=0;t<i&&r[t]===p[t];t++);var D=i-t;for(l=1;l<=D&&r[i-l]===p[y-l];l++);return Yo=p.slice(t,1<l?1-l:void 0)}function Wo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Xo(){return!0}function Sp(){return!1}function $t(t){function r(i,l,p,y,D){this._reactName=i,this._targetInst=p,this.type=l,this.nativeEvent=y,this.target=D,this.currentTarget=null;for(var U in t)t.hasOwnProperty(U)&&(i=t[U],this[U]=i?i(y):y[U]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Xo:Sp,this.isPropagationStopped=Sp,this}return g(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Xo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Xo)},persist:function(){},isPersistent:Xo}),r}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ko=$t(ca),ni=g({},ca,{view:0,detail:0}),Y2=$t(ni),Ru,Cu,ri,Zo=g({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ri&&(ri&&t.type==="mousemove"?(Ru=t.screenX-ri.screenX,Cu=t.screenY-ri.screenY):Cu=Ru=0,ri=t),Ru)},movementY:function(t){return"movementY"in t?t.movementY:Cu}}),jp=$t(Zo),W2=g({},Zo,{dataTransfer:0}),X2=$t(W2),K2=g({},ni,{relatedTarget:0}),Du=$t(K2),Z2=g({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),$2=$t(Z2),Q2=g({},ca,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),J2=$t(Q2),eS=g({},ca,{data:0}),Ap=$t(eS),tS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nS={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"},rS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aS(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=rS[t])?!!r[t]:!1}function Mu(){return aS}var sS=g({},ni,{key:function(t){if(t.key){var r=tS[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Wo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?nS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(t){return t.type==="keypress"?Wo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Wo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),iS=$t(sS),oS=g({},Zo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tp=$t(oS),lS=g({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),cS=$t(lS),uS=g({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),dS=$t(uS),fS=g({},Zo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),hS=$t(fS),mS=g({},ca,{newState:0,oldState:0}),pS=$t(mS),gS=[9,13,27,32],Lu=ir&&"CompositionEvent"in window,ai=null;ir&&"documentMode"in document&&(ai=document.documentMode);var yS=ir&&"TextEvent"in window&&!ai,Ep=ir&&(!Lu||ai&&8<ai&&11>=ai),Np=" ",kp=!1;function _p(t,r){switch(t){case"keyup":return gS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Op(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ja=!1;function xS(t,r){switch(t){case"compositionend":return Op(r);case"keypress":return r.which!==32?null:(kp=!0,Np);case"textInput":return t=r.data,t===Np&&kp?null:t;default:return null}}function vS(t,r){if(Ja)return t==="compositionend"||!Lu&&_p(t,r)?(t=wp(),Yo=Ou=Rr=null,Ja=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Ep&&r.locale!=="ko"?null:r.data;default:return null}}var bS={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 Rp(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!bS[t.type]:r==="textarea"}function Cp(t,r,i,l){$a?Qa?Qa.push(l):Qa=[l]:$a=l,r=Pl(r,"onChange"),0<r.length&&(i=new Ko("onChange","change",null,i,l),t.push({event:i,listeners:r}))}var si=null,ii=null;function wS(t){fy(t,0)}function $o(t){var r=Js(t);if(hp(r))return t}function Dp(t,r){if(t==="change")return r}var Mp=!1;if(ir){var Pu;if(ir){var zu="oninput"in document;if(!zu){var Lp=document.createElement("div");Lp.setAttribute("oninput","return;"),zu=typeof Lp.oninput=="function"}Pu=zu}else Pu=!1;Mp=Pu&&(!document.documentMode||9<document.documentMode)}function Pp(){si&&(si.detachEvent("onpropertychange",zp),ii=si=null)}function zp(t){if(t.propertyName==="value"&&$o(ii)){var r=[];Cp(r,ii,t,Nu(t)),bp(wS,r)}}function SS(t,r,i){t==="focusin"?(Pp(),si=r,ii=i,si.attachEvent("onpropertychange",zp)):t==="focusout"&&Pp()}function jS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return $o(ii)}function AS(t,r){if(t==="click")return $o(r)}function TS(t,r){if(t==="input"||t==="change")return $o(r)}function ES(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var sn=typeof Object.is=="function"?Object.is:ES;function oi(t,r){if(sn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),l=Object.keys(r);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var p=i[l];if(!Le.call(r,p)||!sn(t[p],r[p]))return!1}return!0}function Fp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Up(t,r){var i=Fp(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=r&&l>=r)return{node:i,offset:r-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Fp(i)}}function Bp(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Bp(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Vp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Go(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Go(t.document)}return r}function Fu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var NS=ir&&"documentMode"in document&&11>=document.documentMode,es=null,Uu=null,li=null,Bu=!1;function Hp(t,r,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Bu||es==null||es!==Go(l)||(l=es,"selectionStart"in l&&Fu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),li&&oi(li,l)||(li=l,l=Pl(Uu,"onSelect"),0<l.length&&(r=new Ko("onSelect","select",null,r,i),t.push({event:r,listeners:l}),r.target=es)))}function ua(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var ts={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},Vu={},Ip={};ir&&(Ip=document.createElement("div").style,"AnimationEvent"in window||(delete ts.animationend.animation,delete ts.animationiteration.animation,delete ts.animationstart.animation),"TransitionEvent"in window||delete ts.transitionend.transition);function da(t){if(Vu[t])return Vu[t];if(!ts[t])return t;var r=ts[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in Ip)return Vu[t]=r[i];return t}var Gp=da("animationend"),qp=da("animationiteration"),Yp=da("animationstart"),kS=da("transitionrun"),_S=da("transitionstart"),OS=da("transitioncancel"),Wp=da("transitionend"),Xp=new Map,Hu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hu.push("scrollEnd");function Fn(t,r){Xp.set(t,r),la(r,[t])}var Kp=new WeakMap;function bn(t,r){if(typeof t=="object"&&t!==null){var i=Kp.get(t);return i!==void 0?i:(r={value:t,source:r,stack:dp(r)},Kp.set(t,r),r)}return{value:t,source:r,stack:dp(r)}}var wn=[],ns=0,Iu=0;function Qo(){for(var t=ns,r=Iu=ns=0;r<t;){var i=wn[r];wn[r++]=null;var l=wn[r];wn[r++]=null;var p=wn[r];wn[r++]=null;var y=wn[r];if(wn[r++]=null,l!==null&&p!==null){var D=l.pending;D===null?p.next=p:(p.next=D.next,D.next=p),l.pending=p}y!==0&&Zp(i,p,y)}}function Jo(t,r,i,l){wn[ns++]=t,wn[ns++]=r,wn[ns++]=i,wn[ns++]=l,Iu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Gu(t,r,i,l){return Jo(t,r,i,l),el(t)}function rs(t,r){return Jo(t,null,null,r),el(t)}function Zp(t,r,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var p=!1,y=t.return;y!==null;)y.childLanes|=i,l=y.alternate,l!==null&&(l.childLanes|=i),y.tag===22&&(t=y.stateNode,t===null||t._visibility&1||(p=!0)),t=y,y=y.return;return t.tag===3?(y=t.stateNode,p&&r!==null&&(p=31-He(i),t=y.hiddenUpdates,l=t[p],l===null?t[p]=[r]:l.push(r),r.lane=i|536870912),y):null}function el(t){if(50<Di)throw Di=0,Zd=null,Error(s(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var as={};function RS(t,r,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(t,r,i,l){return new RS(t,r,i,l)}function qu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function or(t,r){var i=t.alternate;return i===null?(i=on(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function $p(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function tl(t,r,i,l,p,y){var D=0;if(l=t,typeof t=="function")qu(t)&&(D=1);else if(typeof t=="string")D=Dj(t,i,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case M:return t=on(31,i,r,p),t.elementType=M,t.lanes=y,t;case k:return fa(i.children,p,y,r);case S:D=8,p|=24;break;case E:return t=on(12,i,r,p|2),t.elementType=E,t.lanes=y,t;case N:return t=on(13,i,r,p),t.elementType=N,t.lanes=y,t;case z:return t=on(19,i,r,p),t.elementType=z,t.lanes=y,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case T:case L:D=10;break e;case C:D=9;break e;case G:D=11;break e;case B:D=14;break e;case H:D=16,l=null;break e}D=29,i=Error(s(130,t===null?"null":typeof t,"")),l=null}return r=on(D,i,r,p),r.elementType=t,r.type=l,r.lanes=y,r}function fa(t,r,i,l){return t=on(7,t,l,r),t.lanes=i,t}function Yu(t,r,i){return t=on(6,t,null,r),t.lanes=i,t}function Wu(t,r,i){return r=on(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var ss=[],is=0,nl=null,rl=0,Sn=[],jn=0,ha=null,lr=1,cr="";function ma(t,r){ss[is++]=rl,ss[is++]=nl,nl=t,rl=r}function Qp(t,r,i){Sn[jn++]=lr,Sn[jn++]=cr,Sn[jn++]=ha,ha=t;var l=lr;t=cr;var p=32-He(l)-1;l&=~(1<<p),i+=1;var y=32-He(r)+p;if(30<y){var D=p-p%5;y=(l&(1<<D)-1).toString(32),l>>=D,p-=D,lr=1<<32-He(r)+p|i<<p|l,cr=y+t}else lr=1<<y|i<<p|l,cr=t}function Xu(t){t.return!==null&&(ma(t,1),Qp(t,1,0))}function Ku(t){for(;t===nl;)nl=ss[--is],ss[is]=null,rl=ss[--is],ss[is]=null;for(;t===ha;)ha=Sn[--jn],Sn[jn]=null,cr=Sn[--jn],Sn[jn]=null,lr=Sn[--jn],Sn[jn]=null}var qt=null,yt=null,Ze=!1,pa=null,Kn=!1,Zu=Error(s(519));function ga(t){var r=Error(s(418,""));throw di(bn(r,t)),Zu}function Jp(t){var r=t.stateNode,i=t.type,l=t.memoizedProps;switch(r[Ut]=t,r[Zt]=l,i){case"dialog":Ye("cancel",r),Ye("close",r);break;case"iframe":case"object":case"embed":Ye("load",r);break;case"video":case"audio":for(i=0;i<Li.length;i++)Ye(Li[i],r);break;case"source":Ye("error",r);break;case"img":case"image":case"link":Ye("error",r),Ye("load",r);break;case"details":Ye("toggle",r);break;case"input":Ye("invalid",r),mp(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Io(r);break;case"select":Ye("invalid",r);break;case"textarea":Ye("invalid",r),gp(r,l.value,l.defaultValue,l.children),Io(r)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||l.suppressHydrationWarning===!0||gy(r.textContent,i)?(l.popover!=null&&(Ye("beforetoggle",r),Ye("toggle",r)),l.onScroll!=null&&Ye("scroll",r),l.onScrollEnd!=null&&Ye("scrollend",r),l.onClick!=null&&(r.onclick=zl),r=!0):r=!1,r||ga(t)}function eg(t){for(qt=t.return;qt;)switch(qt.tag){case 5:case 13:Kn=!1;return;case 27:case 3:Kn=!0;return;default:qt=qt.return}}function ci(t){if(t!==qt)return!1;if(!Ze)return eg(t),Ze=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||hf(t.type,t.memoizedProps)),i=!i),i&&yt&&ga(t),eg(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(r===0){yt=Bn(t.nextSibling);break e}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++;t=t.nextSibling}yt=null}}else r===27?(r=yt,Wr(t.type)?(t=yf,yf=null,yt=t):yt=r):yt=qt?Bn(t.stateNode.nextSibling):null;return!0}function ui(){yt=qt=null,Ze=!1}function tg(){var t=pa;return t!==null&&(en===null?en=t:en.push.apply(en,t),pa=null),t}function di(t){pa===null?pa=[t]:pa.push(t)}var $u=O(null),ya=null,ur=null;function Cr(t,r,i){J($u,r._currentValue),r._currentValue=i}function dr(t){t._currentValue=$u.current,F($u)}function Qu(t,r,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===i)break;t=t.return}}function Ju(t,r,i,l){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var y=p.dependencies;if(y!==null){var D=p.child;y=y.firstContext;e:for(;y!==null;){var U=y;y=p;for(var $=0;$<r.length;$++)if(U.context===r[$]){y.lanes|=i,U=y.alternate,U!==null&&(U.lanes|=i),Qu(y.return,i,t),l||(D=null);break e}y=U.next}}else if(p.tag===18){if(D=p.return,D===null)throw Error(s(341));D.lanes|=i,y=D.alternate,y!==null&&(y.lanes|=i),Qu(D,i,t),D=null}else D=p.child;if(D!==null)D.return=p;else for(D=p;D!==null;){if(D===t){D=null;break}if(p=D.sibling,p!==null){p.return=D.return,D=p;break}D=D.return}p=D}}function fi(t,r,i,l){t=null;for(var p=r,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var D=p.alternate;if(D===null)throw Error(s(387));if(D=D.memoizedProps,D!==null){var U=p.type;sn(p.pendingProps.value,D.value)||(t!==null?t.push(U):t=[U])}}else if(p===be.current){if(D=p.alternate,D===null)throw Error(s(387));D.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Vi):t=[Vi])}p=p.return}t!==null&&Ju(r,t,i,l),r.flags|=262144}function al(t){for(t=t.firstContext;t!==null;){if(!sn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function xa(t){ya=t,ur=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Bt(t){return ng(ya,t)}function sl(t,r){return ya===null&&xa(t),ng(t,r)}function ng(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},ur===null){if(t===null)throw Error(s(308));ur=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else ur=ur.next=r;return i}var CS=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},DS=e.unstable_scheduleCallback,MS=e.unstable_NormalPriority,kt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ed(){return{controller:new CS,data:new Map,refCount:0}}function hi(t){t.refCount--,t.refCount===0&&DS(MS,function(){t.controller.abort()})}var mi=null,td=0,os=0,ls=null;function LS(t,r){if(mi===null){var i=mi=[];td=0,os=rf(),ls={status:"pending",value:void 0,then:function(l){i.push(l)}}}return td++,r.then(rg,rg),r}function rg(){if(--td===0&&mi!==null){ls!==null&&(ls.status="fulfilled");var t=mi;mi=null,os=0,ls=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function PS(t,r){var i=[],l={status:"pending",value:null,reason:null,then:function(p){i.push(p)}};return t.then(function(){l.status="fulfilled",l.value=r;for(var p=0;p<i.length;p++)(0,i[p])(r)},function(p){for(l.status="rejected",l.reason=p,p=0;p<i.length;p++)(0,i[p])(void 0)}),l}var ag=X.S;X.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&LS(t,r),ag!==null&&ag(t,r)};var va=O(null);function nd(){var t=va.current;return t!==null?t:st.pooledCache}function il(t,r){r===null?J(va,va.current):J(va,r.pool)}function sg(){var t=nd();return t===null?null:{parent:kt._currentValue,pool:t}}var pi=Error(s(460)),ig=Error(s(474)),ol=Error(s(542)),rd={then:function(){}};function og(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ll(){}function lg(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(ll,ll),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,ug(t),t;default:if(typeof r.status=="string")r.then(ll,ll);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=r,t.status="pending",t.then(function(l){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=l}},function(l){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,ug(t),t}throw gi=r,pi}}var gi=null;function cg(){if(gi===null)throw Error(s(459));var t=gi;return gi=null,t}function ug(t){if(t===pi||t===ol)throw Error(s(483))}var Dr=!1;function ad(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sd(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Mr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Lr(t,r,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,($e&2)!==0){var p=l.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),l.pending=r,r=el(t),Zp(t,null,i),r}return Jo(t,l,r,i),el(t)}function yi(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,rp(t,i)}}function id(t,r){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var p=null,y=null;if(i=i.firstBaseUpdate,i!==null){do{var D={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};y===null?p=y=D:y=y.next=D,i=i.next}while(i!==null);y===null?p=y=r:y=y.next=r}else p=y=r;i={baseState:l.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var od=!1;function xi(){if(od){var t=ls;if(t!==null)throw t}}function vi(t,r,i,l){od=!1;var p=t.updateQueue;Dr=!1;var y=p.firstBaseUpdate,D=p.lastBaseUpdate,U=p.shared.pending;if(U!==null){p.shared.pending=null;var $=U,le=$.next;$.next=null,D===null?y=le:D.next=le,D=$;var ge=t.alternate;ge!==null&&(ge=ge.updateQueue,U=ge.lastBaseUpdate,U!==D&&(U===null?ge.firstBaseUpdate=le:U.next=le,ge.lastBaseUpdate=$))}if(y!==null){var we=p.baseState;D=0,ge=le=$=null,U=y;do{var fe=U.lane&-536870913,he=fe!==U.lane;if(he?(Xe&fe)===fe:(l&fe)===fe){fe!==0&&fe===os&&(od=!0),ge!==null&&(ge=ge.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var ze=t,Me=U;fe=r;var tt=i;switch(Me.tag){case 1:if(ze=Me.payload,typeof ze=="function"){we=ze.call(tt,we,fe);break e}we=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Me.payload,fe=typeof ze=="function"?ze.call(tt,we,fe):ze,fe==null)break e;we=g({},we,fe);break e;case 2:Dr=!0}}fe=U.callback,fe!==null&&(t.flags|=64,he&&(t.flags|=8192),he=p.callbacks,he===null?p.callbacks=[fe]:he.push(fe))}else he={lane:fe,tag:U.tag,payload:U.payload,callback:U.callback,next:null},ge===null?(le=ge=he,$=we):ge=ge.next=he,D|=fe;if(U=U.next,U===null){if(U=p.shared.pending,U===null)break;he=U,U=he.next,he.next=null,p.lastBaseUpdate=he,p.shared.pending=null}}while(!0);ge===null&&($=we),p.baseState=$,p.firstBaseUpdate=le,p.lastBaseUpdate=ge,y===null&&(p.shared.lanes=0),Ir|=D,t.lanes=D,t.memoizedState=we}}function dg(t,r){if(typeof t!="function")throw Error(s(191,t));t.call(r)}function fg(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)dg(i[t],r)}var cs=O(null),cl=O(0);function hg(t,r){t=xr,J(cl,t),J(cs,r),xr=t|r.baseLanes}function ld(){J(cl,xr),J(cs,cs.current)}function cd(){xr=cl.current,F(cs),F(cl)}var Pr=0,Ie=null,Je=null,jt=null,ul=!1,us=!1,ba=!1,dl=0,bi=0,ds=null,zS=0;function bt(){throw Error(s(321))}function ud(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!sn(t[i],r[i]))return!1;return!0}function dd(t,r,i,l,p,y){return Pr=y,Ie=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,X.H=t===null||t.memoizedState===null?Zg:$g,ba=!1,y=i(l,p),ba=!1,us&&(y=pg(r,i,l,p)),mg(t),y}function mg(t){X.H=yl;var r=Je!==null&&Je.next!==null;if(Pr=0,jt=Je=Ie=null,ul=!1,bi=0,ds=null,r)throw Error(s(300));t===null||Rt||(t=t.dependencies,t!==null&&al(t)&&(Rt=!0))}function pg(t,r,i,l){Ie=t;var p=0;do{if(us&&(ds=null),bi=0,us=!1,25<=p)throw Error(s(301));if(p+=1,jt=Je=null,t.updateQueue!=null){var y=t.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}X.H=GS,y=r(i,l)}while(us);return y}function FS(){var t=X.H,r=t.useState()[0];return r=typeof r.then=="function"?wi(r):r,t=t.useState()[0],(Je!==null?Je.memoizedState:null)!==t&&(Ie.flags|=1024),r}function fd(){var t=dl!==0;return dl=0,t}function hd(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function md(t){if(ul){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}ul=!1}Pr=0,jt=Je=Ie=null,us=!1,bi=dl=0,ds=null}function Qt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Ie.memoizedState=jt=t:jt=jt.next=t,jt}function At(){if(Je===null){var t=Ie.alternate;t=t!==null?t.memoizedState:null}else t=Je.next;var r=jt===null?Ie.memoizedState:jt.next;if(r!==null)jt=r,Je=t;else{if(t===null)throw Ie.alternate===null?Error(s(467)):Error(s(310));Je=t,t={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},jt===null?Ie.memoizedState=jt=t:jt=jt.next=t}return jt}function pd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wi(t){var r=bi;return bi+=1,ds===null&&(ds=[]),t=lg(ds,t,r),r=Ie,(jt===null?r.memoizedState:jt.next)===null&&(r=r.alternate,X.H=r===null||r.memoizedState===null?Zg:$g),t}function fl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return wi(t);if(t.$$typeof===L)return Bt(t)}throw Error(s(438,String(t)))}function gd(t){var r=null,i=Ie.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var l=Ie.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=pd(),Ie.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),l=0;l<t;l++)i[l]=R;return r.index++,i}function fr(t,r){return typeof r=="function"?r(t):r}function hl(t){var r=At();return yd(r,Je,t)}function yd(t,r,i){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=i;var p=t.baseQueue,y=l.pending;if(y!==null){if(p!==null){var D=p.next;p.next=y.next,y.next=D}r.baseQueue=p=y,l.pending=null}if(y=t.baseState,p===null)t.memoizedState=y;else{r=p.next;var U=D=null,$=null,le=r,ge=!1;do{var we=le.lane&-536870913;if(we!==le.lane?(Xe&we)===we:(Pr&we)===we){var fe=le.revertLane;if(fe===0)$!==null&&($=$.next={lane:0,revertLane:0,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),we===os&&(ge=!0);else if((Pr&fe)===fe){le=le.next,fe===os&&(ge=!0);continue}else we={lane:0,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},$===null?(U=$=we,D=y):$=$.next=we,Ie.lanes|=fe,Ir|=fe;we=le.action,ba&&i(y,we),y=le.hasEagerState?le.eagerState:i(y,we)}else fe={lane:we,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},$===null?(U=$=fe,D=y):$=$.next=fe,Ie.lanes|=we,Ir|=we;le=le.next}while(le!==null&&le!==r);if($===null?D=y:$.next=U,!sn(y,t.memoizedState)&&(Rt=!0,ge&&(i=ls,i!==null)))throw i;t.memoizedState=y,t.baseState=D,t.baseQueue=$,l.lastRenderedState=y}return p===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function xd(t){var r=At(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var l=i.dispatch,p=i.pending,y=r.memoizedState;if(p!==null){i.pending=null;var D=p=p.next;do y=t(y,D.action),D=D.next;while(D!==p);sn(y,r.memoizedState)||(Rt=!0),r.memoizedState=y,r.baseQueue===null&&(r.baseState=y),i.lastRenderedState=y}return[y,l]}function gg(t,r,i){var l=Ie,p=At(),y=Ze;if(y){if(i===void 0)throw Error(s(407));i=i()}else i=r();var D=!sn((Je||p).memoizedState,i);D&&(p.memoizedState=i,Rt=!0),p=p.queue;var U=vg.bind(null,l,p,t);if(Si(2048,8,U,[t]),p.getSnapshot!==r||D||jt!==null&&jt.memoizedState.tag&1){if(l.flags|=2048,fs(9,ml(),xg.bind(null,l,p,i,r),null),st===null)throw Error(s(349));y||(Pr&124)!==0||yg(l,r,i)}return i}function yg(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=Ie.updateQueue,r===null?(r=pd(),Ie.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function xg(t,r,i,l){r.value=i,r.getSnapshot=l,bg(r)&&wg(t)}function vg(t,r,i){return i(function(){bg(r)&&wg(t)})}function bg(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!sn(t,i)}catch{return!0}}function wg(t){var r=rs(t,2);r!==null&&fn(r,t,2)}function vd(t){var r=Qt();if(typeof t=="function"){var i=t;if(t=i(),ba){Ce(!0);try{i()}finally{Ce(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fr,lastRenderedState:t},r}function Sg(t,r,i,l){return t.baseState=i,yd(t,Je,typeof l=="function"?l:fr)}function US(t,r,i,l,p){if(gl(t))throw Error(s(485));if(t=r.action,t!==null){var y={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){y.listeners.push(D)}};X.T!==null?i(!0):y.isTransition=!1,l(y),i=r.pending,i===null?(y.next=r.pending=y,jg(r,y)):(y.next=i.next,r.pending=i.next=y)}}function jg(t,r){var i=r.action,l=r.payload,p=t.state;if(r.isTransition){var y=X.T,D={};X.T=D;try{var U=i(p,l),$=X.S;$!==null&&$(D,U),Ag(t,r,U)}catch(le){bd(t,r,le)}finally{X.T=y}}else try{y=i(p,l),Ag(t,r,y)}catch(le){bd(t,r,le)}}function Ag(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Tg(t,r,l)},function(l){return bd(t,r,l)}):Tg(t,r,i)}function Tg(t,r,i){r.status="fulfilled",r.value=i,Eg(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,jg(t,i)))}function bd(t,r,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=i,Eg(r),r=r.next;while(r!==l)}t.action=null}function Eg(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Ng(t,r){return r}function kg(t,r){if(Ze){var i=st.formState;if(i!==null){e:{var l=Ie;if(Ze){if(yt){t:{for(var p=yt,y=Kn;p.nodeType!==8;){if(!y){p=null;break t}if(p=Bn(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){yt=Bn(p.nextSibling),l=p.data==="F!";break e}}ga(l)}l=!1}l&&(r=i[0])}}return i=Qt(),i.memoizedState=i.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ng,lastRenderedState:r},i.queue=l,i=Wg.bind(null,Ie,l),l.dispatch=i,l=vd(!1),y=Td.bind(null,Ie,!1,l.queue),l=Qt(),p={state:r,dispatch:null,action:t,pending:null},l.queue=p,i=US.bind(null,Ie,p,y,i),p.dispatch=i,l.memoizedState=t,[r,i,!1]}function _g(t){var r=At();return Og(r,Je,t)}function Og(t,r,i){if(r=yd(t,r,Ng)[0],t=hl(fr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var l=wi(r)}catch(D){throw D===pi?ol:D}else l=r;r=At();var p=r.queue,y=p.dispatch;return i!==r.memoizedState&&(Ie.flags|=2048,fs(9,ml(),BS.bind(null,p,i),null)),[l,y,t]}function BS(t,r){t.action=r}function Rg(t){var r=At(),i=Je;if(i!==null)return Og(r,i,t);At(),r=r.memoizedState,i=At();var l=i.queue.dispatch;return i.memoizedState=t,[r,l,!1]}function fs(t,r,i,l){return t={tag:t,create:i,deps:l,inst:r,next:null},r=Ie.updateQueue,r===null&&(r=pd(),Ie.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,r.lastEffect=t),t}function ml(){return{destroy:void 0,resource:void 0}}function Cg(){return At().memoizedState}function pl(t,r,i,l){var p=Qt();l=l===void 0?null:l,Ie.flags|=t,p.memoizedState=fs(1|r,ml(),i,l)}function Si(t,r,i,l){var p=At();l=l===void 0?null:l;var y=p.memoizedState.inst;Je!==null&&l!==null&&ud(l,Je.memoizedState.deps)?p.memoizedState=fs(r,y,i,l):(Ie.flags|=t,p.memoizedState=fs(1|r,y,i,l))}function Dg(t,r){pl(8390656,8,t,r)}function Mg(t,r){Si(2048,8,t,r)}function Lg(t,r){return Si(4,2,t,r)}function Pg(t,r){return Si(4,4,t,r)}function zg(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Fg(t,r,i){i=i!=null?i.concat([t]):null,Si(4,4,zg.bind(null,r,t),i)}function wd(){}function Ug(t,r){var i=At();r=r===void 0?null:r;var l=i.memoizedState;return r!==null&&ud(r,l[1])?l[0]:(i.memoizedState=[t,r],t)}function Bg(t,r){var i=At();r=r===void 0?null:r;var l=i.memoizedState;if(r!==null&&ud(r,l[1]))return l[0];if(l=t(),ba){Ce(!0);try{t()}finally{Ce(!1)}}return i.memoizedState=[l,r],l}function Sd(t,r,i){return i===void 0||(Pr&1073741824)!==0?t.memoizedState=r:(t.memoizedState=i,t=I0(),Ie.lanes|=t,Ir|=t,i)}function Vg(t,r,i,l){return sn(i,r)?i:cs.current!==null?(t=Sd(t,i,l),sn(t,r)||(Rt=!0),t):(Pr&42)===0?(Rt=!0,t.memoizedState=i):(t=I0(),Ie.lanes|=t,Ir|=t,r)}function Hg(t,r,i,l,p){var y=w.p;w.p=y!==0&&8>y?y:8;var D=X.T,U={};X.T=U,Td(t,!1,r,i);try{var $=p(),le=X.S;if(le!==null&&le(U,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){var ge=PS($,l);ji(t,r,ge,dn(t))}else ji(t,r,l,dn(t))}catch(we){ji(t,r,{then:function(){},status:"rejected",reason:we},dn())}finally{w.p=y,X.T=D}}function VS(){}function jd(t,r,i,l){if(t.tag!==5)throw Error(s(476));var p=Ig(t).queue;Hg(t,p,r,ue,i===null?VS:function(){return Gg(t),i(l)})}function Ig(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fr,lastRenderedState:ue},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fr,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Gg(t){var r=Ig(t).next.queue;ji(t,r,{},dn())}function Ad(){return Bt(Vi)}function qg(){return At().memoizedState}function Yg(){return At().memoizedState}function HS(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=dn();t=Mr(i);var l=Lr(r,t,i);l!==null&&(fn(l,r,i),yi(l,r,i)),r={cache:ed()},t.payload=r;return}r=r.return}}function IS(t,r,i){var l=dn();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},gl(t)?Xg(r,i):(i=Gu(t,r,i,l),i!==null&&(fn(i,t,l),Kg(i,r,l)))}function Wg(t,r,i){var l=dn();ji(t,r,i,l)}function ji(t,r,i,l){var p={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(gl(t))Xg(r,p);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var D=r.lastRenderedState,U=y(D,i);if(p.hasEagerState=!0,p.eagerState=U,sn(U,D))return Jo(t,r,p,0),st===null&&Qo(),!1}catch{}finally{}if(i=Gu(t,r,p,l),i!==null)return fn(i,t,l),Kg(i,r,l),!0}return!1}function Td(t,r,i,l){if(l={lane:2,revertLane:rf(),action:l,hasEagerState:!1,eagerState:null,next:null},gl(t)){if(r)throw Error(s(479))}else r=Gu(t,i,l,2),r!==null&&fn(r,t,2)}function gl(t){var r=t.alternate;return t===Ie||r!==null&&r===Ie}function Xg(t,r){us=ul=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Kg(t,r,i){if((i&4194048)!==0){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,rp(t,i)}}var yl={readContext:Bt,use:fl,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt},Zg={readContext:Bt,use:fl,useCallback:function(t,r){return Qt().memoizedState=[t,r===void 0?null:r],t},useContext:Bt,useEffect:Dg,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,pl(4194308,4,zg.bind(null,r,t),i)},useLayoutEffect:function(t,r){return pl(4194308,4,t,r)},useInsertionEffect:function(t,r){pl(4,2,t,r)},useMemo:function(t,r){var i=Qt();r=r===void 0?null:r;var l=t();if(ba){Ce(!0);try{t()}finally{Ce(!1)}}return i.memoizedState=[l,r],l},useReducer:function(t,r,i){var l=Qt();if(i!==void 0){var p=i(r);if(ba){Ce(!0);try{i(r)}finally{Ce(!1)}}}else p=r;return l.memoizedState=l.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},l.queue=t,t=t.dispatch=IS.bind(null,Ie,t),[l.memoizedState,t]},useRef:function(t){var r=Qt();return t={current:t},r.memoizedState=t},useState:function(t){t=vd(t);var r=t.queue,i=Wg.bind(null,Ie,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:wd,useDeferredValue:function(t,r){var i=Qt();return Sd(i,t,r)},useTransition:function(){var t=vd(!1);return t=Hg.bind(null,Ie,t.queue,!0,!1),Qt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var l=Ie,p=Qt();if(Ze){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),st===null)throw Error(s(349));(Xe&124)!==0||yg(l,r,i)}p.memoizedState=i;var y={value:i,getSnapshot:r};return p.queue=y,Dg(vg.bind(null,l,y,t),[t]),l.flags|=2048,fs(9,ml(),xg.bind(null,l,y,i,r),null),i},useId:function(){var t=Qt(),r=st.identifierPrefix;if(Ze){var i=cr,l=lr;i=(l&~(1<<32-He(l)-1)).toString(32)+i,r="«"+r+"R"+i,i=dl++,0<i&&(r+="H"+i.toString(32)),r+="»"}else i=zS++,r="«"+r+"r"+i.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:Ad,useFormState:kg,useActionState:kg,useOptimistic:function(t){var r=Qt();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Td.bind(null,Ie,!0,i),i.dispatch=r,[t,r]},useMemoCache:gd,useCacheRefresh:function(){return Qt().memoizedState=HS.bind(null,Ie)}},$g={readContext:Bt,use:fl,useCallback:Ug,useContext:Bt,useEffect:Mg,useImperativeHandle:Fg,useInsertionEffect:Lg,useLayoutEffect:Pg,useMemo:Bg,useReducer:hl,useRef:Cg,useState:function(){return hl(fr)},useDebugValue:wd,useDeferredValue:function(t,r){var i=At();return Vg(i,Je.memoizedState,t,r)},useTransition:function(){var t=hl(fr)[0],r=At().memoizedState;return[typeof t=="boolean"?t:wi(t),r]},useSyncExternalStore:gg,useId:qg,useHostTransitionStatus:Ad,useFormState:_g,useActionState:_g,useOptimistic:function(t,r){var i=At();return Sg(i,Je,t,r)},useMemoCache:gd,useCacheRefresh:Yg},GS={readContext:Bt,use:fl,useCallback:Ug,useContext:Bt,useEffect:Mg,useImperativeHandle:Fg,useInsertionEffect:Lg,useLayoutEffect:Pg,useMemo:Bg,useReducer:xd,useRef:Cg,useState:function(){return xd(fr)},useDebugValue:wd,useDeferredValue:function(t,r){var i=At();return Je===null?Sd(i,t,r):Vg(i,Je.memoizedState,t,r)},useTransition:function(){var t=xd(fr)[0],r=At().memoizedState;return[typeof t=="boolean"?t:wi(t),r]},useSyncExternalStore:gg,useId:qg,useHostTransitionStatus:Ad,useFormState:Rg,useActionState:Rg,useOptimistic:function(t,r){var i=At();return Je!==null?Sg(i,Je,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:gd,useCacheRefresh:Yg},hs=null,Ai=0;function xl(t){var r=Ai;return Ai+=1,hs===null&&(hs=[]),lg(hs,t,r)}function Ti(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function vl(t,r){throw r.$$typeof===x?Error(s(525)):(t=Object.prototype.toString.call(r),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function Qg(t){var r=t._init;return r(t._payload)}function Jg(t){function r(ae,re){if(t){var se=ae.deletions;se===null?(ae.deletions=[re],ae.flags|=16):se.push(re)}}function i(ae,re){if(!t)return null;for(;re!==null;)r(ae,re),re=re.sibling;return null}function l(ae){for(var re=new Map;ae!==null;)ae.key!==null?re.set(ae.key,ae):re.set(ae.index,ae),ae=ae.sibling;return re}function p(ae,re){return ae=or(ae,re),ae.index=0,ae.sibling=null,ae}function y(ae,re,se){return ae.index=se,t?(se=ae.alternate,se!==null?(se=se.index,se<re?(ae.flags|=67108866,re):se):(ae.flags|=67108866,re)):(ae.flags|=1048576,re)}function D(ae){return t&&ae.alternate===null&&(ae.flags|=67108866),ae}function U(ae,re,se,ve){return re===null||re.tag!==6?(re=Yu(se,ae.mode,ve),re.return=ae,re):(re=p(re,se),re.return=ae,re)}function $(ae,re,se,ve){var _e=se.type;return _e===k?ge(ae,re,se.props.children,ve,se.key):re!==null&&(re.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===H&&Qg(_e)===re.type)?(re=p(re,se.props),Ti(re,se),re.return=ae,re):(re=tl(se.type,se.key,se.props,null,ae.mode,ve),Ti(re,se),re.return=ae,re)}function le(ae,re,se,ve){return re===null||re.tag!==4||re.stateNode.containerInfo!==se.containerInfo||re.stateNode.implementation!==se.implementation?(re=Wu(se,ae.mode,ve),re.return=ae,re):(re=p(re,se.children||[]),re.return=ae,re)}function ge(ae,re,se,ve,_e){return re===null||re.tag!==7?(re=fa(se,ae.mode,ve,_e),re.return=ae,re):(re=p(re,se),re.return=ae,re)}function we(ae,re,se){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Yu(""+re,ae.mode,se),re.return=ae,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case b:return se=tl(re.type,re.key,re.props,null,ae.mode,se),Ti(se,re),se.return=ae,se;case A:return re=Wu(re,ae.mode,se),re.return=ae,re;case H:var ve=re._init;return re=ve(re._payload),we(ae,re,se)}if(K(re)||P(re))return re=fa(re,ae.mode,se,null),re.return=ae,re;if(typeof re.then=="function")return we(ae,xl(re),se);if(re.$$typeof===L)return we(ae,sl(ae,re),se);vl(ae,re)}return null}function fe(ae,re,se,ve){var _e=re!==null?re.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return _e!==null?null:U(ae,re,""+se,ve);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case b:return se.key===_e?$(ae,re,se,ve):null;case A:return se.key===_e?le(ae,re,se,ve):null;case H:return _e=se._init,se=_e(se._payload),fe(ae,re,se,ve)}if(K(se)||P(se))return _e!==null?null:ge(ae,re,se,ve,null);if(typeof se.then=="function")return fe(ae,re,xl(se),ve);if(se.$$typeof===L)return fe(ae,re,sl(ae,se),ve);vl(ae,se)}return null}function he(ae,re,se,ve,_e){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return ae=ae.get(se)||null,U(re,ae,""+ve,_e);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case b:return ae=ae.get(ve.key===null?se:ve.key)||null,$(re,ae,ve,_e);case A:return ae=ae.get(ve.key===null?se:ve.key)||null,le(re,ae,ve,_e);case H:var Ge=ve._init;return ve=Ge(ve._payload),he(ae,re,se,ve,_e)}if(K(ve)||P(ve))return ae=ae.get(se)||null,ge(re,ae,ve,_e,null);if(typeof ve.then=="function")return he(ae,re,se,xl(ve),_e);if(ve.$$typeof===L)return he(ae,re,se,sl(re,ve),_e);vl(re,ve)}return null}function ze(ae,re,se,ve){for(var _e=null,Ge=null,De=re,Pe=re=0,Dt=null;De!==null&&Pe<se.length;Pe++){De.index>Pe?(Dt=De,De=null):Dt=De.sibling;var Ke=fe(ae,De,se[Pe],ve);if(Ke===null){De===null&&(De=Dt);break}t&&De&&Ke.alternate===null&&r(ae,De),re=y(Ke,re,Pe),Ge===null?_e=Ke:Ge.sibling=Ke,Ge=Ke,De=Dt}if(Pe===se.length)return i(ae,De),Ze&&ma(ae,Pe),_e;if(De===null){for(;Pe<se.length;Pe++)De=we(ae,se[Pe],ve),De!==null&&(re=y(De,re,Pe),Ge===null?_e=De:Ge.sibling=De,Ge=De);return Ze&&ma(ae,Pe),_e}for(De=l(De);Pe<se.length;Pe++)Dt=he(De,ae,Pe,se[Pe],ve),Dt!==null&&(t&&Dt.alternate!==null&&De.delete(Dt.key===null?Pe:Dt.key),re=y(Dt,re,Pe),Ge===null?_e=Dt:Ge.sibling=Dt,Ge=Dt);return t&&De.forEach(function(Qr){return r(ae,Qr)}),Ze&&ma(ae,Pe),_e}function Me(ae,re,se,ve){if(se==null)throw Error(s(151));for(var _e=null,Ge=null,De=re,Pe=re=0,Dt=null,Ke=se.next();De!==null&&!Ke.done;Pe++,Ke=se.next()){De.index>Pe?(Dt=De,De=null):Dt=De.sibling;var Qr=fe(ae,De,Ke.value,ve);if(Qr===null){De===null&&(De=Dt);break}t&&De&&Qr.alternate===null&&r(ae,De),re=y(Qr,re,Pe),Ge===null?_e=Qr:Ge.sibling=Qr,Ge=Qr,De=Dt}if(Ke.done)return i(ae,De),Ze&&ma(ae,Pe),_e;if(De===null){for(;!Ke.done;Pe++,Ke=se.next())Ke=we(ae,Ke.value,ve),Ke!==null&&(re=y(Ke,re,Pe),Ge===null?_e=Ke:Ge.sibling=Ke,Ge=Ke);return Ze&&ma(ae,Pe),_e}for(De=l(De);!Ke.done;Pe++,Ke=se.next())Ke=he(De,ae,Pe,Ke.value,ve),Ke!==null&&(t&&Ke.alternate!==null&&De.delete(Ke.key===null?Pe:Ke.key),re=y(Ke,re,Pe),Ge===null?_e=Ke:Ge.sibling=Ke,Ge=Ke);return t&&De.forEach(function(qj){return r(ae,qj)}),Ze&&ma(ae,Pe),_e}function tt(ae,re,se,ve){if(typeof se=="object"&&se!==null&&se.type===k&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case b:e:{for(var _e=se.key;re!==null;){if(re.key===_e){if(_e=se.type,_e===k){if(re.tag===7){i(ae,re.sibling),ve=p(re,se.props.children),ve.return=ae,ae=ve;break e}}else if(re.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===H&&Qg(_e)===re.type){i(ae,re.sibling),ve=p(re,se.props),Ti(ve,se),ve.return=ae,ae=ve;break e}i(ae,re);break}else r(ae,re);re=re.sibling}se.type===k?(ve=fa(se.props.children,ae.mode,ve,se.key),ve.return=ae,ae=ve):(ve=tl(se.type,se.key,se.props,null,ae.mode,ve),Ti(ve,se),ve.return=ae,ae=ve)}return D(ae);case A:e:{for(_e=se.key;re!==null;){if(re.key===_e)if(re.tag===4&&re.stateNode.containerInfo===se.containerInfo&&re.stateNode.implementation===se.implementation){i(ae,re.sibling),ve=p(re,se.children||[]),ve.return=ae,ae=ve;break e}else{i(ae,re);break}else r(ae,re);re=re.sibling}ve=Wu(se,ae.mode,ve),ve.return=ae,ae=ve}return D(ae);case H:return _e=se._init,se=_e(se._payload),tt(ae,re,se,ve)}if(K(se))return ze(ae,re,se,ve);if(P(se)){if(_e=P(se),typeof _e!="function")throw Error(s(150));return se=_e.call(se),Me(ae,re,se,ve)}if(typeof se.then=="function")return tt(ae,re,xl(se),ve);if(se.$$typeof===L)return tt(ae,re,sl(ae,se),ve);vl(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,re!==null&&re.tag===6?(i(ae,re.sibling),ve=p(re,se),ve.return=ae,ae=ve):(i(ae,re),ve=Yu(se,ae.mode,ve),ve.return=ae,ae=ve),D(ae)):i(ae,re)}return function(ae,re,se,ve){try{Ai=0;var _e=tt(ae,re,se,ve);return hs=null,_e}catch(De){if(De===pi||De===ol)throw De;var Ge=on(29,De,null,ae.mode);return Ge.lanes=ve,Ge.return=ae,Ge}finally{}}}var ms=Jg(!0),e0=Jg(!1),An=O(null),Zn=null;function zr(t){var r=t.alternate;J(_t,_t.current&1),J(An,t),Zn===null&&(r===null||cs.current!==null||r.memoizedState!==null)&&(Zn=t)}function t0(t){if(t.tag===22){if(J(_t,_t.current),J(An,t),Zn===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(Zn=t)}}else Fr()}function Fr(){J(_t,_t.current),J(An,An.current)}function hr(t){F(An),Zn===t&&(Zn=null),F(_t)}var _t=O(0);function bl(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||gf(i)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Ed(t,r,i,l){r=t.memoizedState,i=i(l,r),i=i==null?r:g({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Nd={enqueueSetState:function(t,r,i){t=t._reactInternals;var l=dn(),p=Mr(l);p.payload=r,i!=null&&(p.callback=i),r=Lr(t,p,l),r!==null&&(fn(r,t,l),yi(r,t,l))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var l=dn(),p=Mr(l);p.tag=1,p.payload=r,i!=null&&(p.callback=i),r=Lr(t,p,l),r!==null&&(fn(r,t,l),yi(r,t,l))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=dn(),l=Mr(i);l.tag=2,r!=null&&(l.callback=r),r=Lr(t,l,i),r!==null&&(fn(r,t,i),yi(r,t,i))}};function n0(t,r,i,l,p,y,D){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,y,D):r.prototype&&r.prototype.isPureReactComponent?!oi(i,l)||!oi(p,y):!0}function r0(t,r,i,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,l),r.state!==t&&Nd.enqueueReplaceState(r,r.state,null)}function wa(t,r){var i=r;if("ref"in r){i={};for(var l in r)l!=="ref"&&(i[l]=r[l])}if(t=t.defaultProps){i===r&&(i=g({},i));for(var p in t)i[p]===void 0&&(i[p]=t[p])}return i}var wl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function a0(t){wl(t)}function s0(t){console.error(t)}function i0(t){wl(t)}function Sl(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function o0(t,r,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function kd(t,r,i){return i=Mr(i),i.tag=3,i.payload={element:null},i.callback=function(){Sl(t,r)},i}function l0(t){return t=Mr(t),t.tag=3,t}function c0(t,r,i,l){var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var y=l.value;t.payload=function(){return p(y)},t.callback=function(){o0(r,i,l)}}var D=i.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(t.callback=function(){o0(r,i,l),typeof p!="function"&&(Gr===null?Gr=new Set([this]):Gr.add(this));var U=l.stack;this.componentDidCatch(l.value,{componentStack:U!==null?U:""})})}function qS(t,r,i,l,p){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=i.alternate,r!==null&&fi(r,i,p,!0),i=An.current,i!==null){switch(i.tag){case 13:return Zn===null?Qd():i.alternate===null&&xt===0&&(xt=3),i.flags&=-257,i.flags|=65536,i.lanes=p,l===rd?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([l]):r.add(l),ef(t,l,p)),!1;case 22:return i.flags|=65536,l===rd?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([l]):i.add(l)),ef(t,l,p)),!1}throw Error(s(435,i.tag))}return ef(t,l,p),Qd(),!1}if(Ze)return r=An.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,l!==Zu&&(t=Error(s(422),{cause:l}),di(bn(t,i)))):(l!==Zu&&(r=Error(s(423),{cause:l}),di(bn(r,i))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,l=bn(l,i),p=kd(t.stateNode,l,p),id(t,p),xt!==4&&(xt=2)),!1;var y=Error(s(520),{cause:l});if(y=bn(y,i),Ci===null?Ci=[y]:Ci.push(y),xt!==4&&(xt=2),r===null)return!0;l=bn(l,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=p&-p,i.lanes|=t,t=kd(i.stateNode,l,t),id(i,t),!1;case 1:if(r=i.type,y=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Gr===null||!Gr.has(y))))return i.flags|=65536,p&=-p,i.lanes|=p,p=l0(p),c0(p,t,i,l),id(i,p),!1}i=i.return}while(i!==null);return!1}var u0=Error(s(461)),Rt=!1;function Mt(t,r,i,l){r.child=t===null?e0(r,null,i,l):ms(r,t.child,i,l)}function d0(t,r,i,l,p){i=i.render;var y=r.ref;if("ref"in l){var D={};for(var U in l)U!=="ref"&&(D[U]=l[U])}else D=l;return xa(r),l=dd(t,r,i,D,y,p),U=fd(),t!==null&&!Rt?(hd(t,r,p),mr(t,r,p)):(Ze&&U&&Xu(r),r.flags|=1,Mt(t,r,l,p),r.child)}function f0(t,r,i,l,p){if(t===null){var y=i.type;return typeof y=="function"&&!qu(y)&&y.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=y,h0(t,r,y,l,p)):(t=tl(i.type,null,l,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(y=t.child,!Pd(t,p)){var D=y.memoizedProps;if(i=i.compare,i=i!==null?i:oi,i(D,l)&&t.ref===r.ref)return mr(t,r,p)}return r.flags|=1,t=or(y,l),t.ref=r.ref,t.return=r,r.child=t}function h0(t,r,i,l,p){if(t!==null){var y=t.memoizedProps;if(oi(y,l)&&t.ref===r.ref)if(Rt=!1,r.pendingProps=l=y,Pd(t,p))(t.flags&131072)!==0&&(Rt=!0);else return r.lanes=t.lanes,mr(t,r,p)}return _d(t,r,i,l,p)}function m0(t,r,i){var l=r.pendingProps,p=l.children,y=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((r.flags&128)!==0){if(l=y!==null?y.baseLanes|i:i,t!==null){for(p=r.child=t.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;r.childLanes=y&~l}else r.childLanes=0,r.child=null;return p0(t,r,l,i)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&il(r,y!==null?y.cachePool:null),y!==null?hg(r,y):ld(),t0(r);else return r.lanes=r.childLanes=536870912,p0(t,r,y!==null?y.baseLanes|i:i,i)}else y!==null?(il(r,y.cachePool),hg(r,y),Fr(),r.memoizedState=null):(t!==null&&il(r,null),ld(),Fr());return Mt(t,r,p,i),r.child}function p0(t,r,i,l){var p=nd();return p=p===null?null:{parent:kt._currentValue,pool:p},r.memoizedState={baseLanes:i,cachePool:p},t!==null&&il(r,null),ld(),t0(r),t!==null&&fi(t,r,l,!0),null}function jl(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function _d(t,r,i,l,p){return xa(r),i=dd(t,r,i,l,void 0,p),l=fd(),t!==null&&!Rt?(hd(t,r,p),mr(t,r,p)):(Ze&&l&&Xu(r),r.flags|=1,Mt(t,r,i,p),r.child)}function g0(t,r,i,l,p,y){return xa(r),r.updateQueue=null,i=pg(r,l,i,p),mg(t),l=fd(),t!==null&&!Rt?(hd(t,r,y),mr(t,r,y)):(Ze&&l&&Xu(r),r.flags|=1,Mt(t,r,i,y),r.child)}function y0(t,r,i,l,p){if(xa(r),r.stateNode===null){var y=as,D=i.contextType;typeof D=="object"&&D!==null&&(y=Bt(D)),y=new i(l,y),r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Nd,r.stateNode=y,y._reactInternals=r,y=r.stateNode,y.props=l,y.state=r.memoizedState,y.refs={},ad(r),D=i.contextType,y.context=typeof D=="object"&&D!==null?Bt(D):as,y.state=r.memoizedState,D=i.getDerivedStateFromProps,typeof D=="function"&&(Ed(r,i,D,l),y.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(D=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),D!==y.state&&Nd.enqueueReplaceState(y,y.state,null),vi(r,l,y,p),xi(),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(t===null){y=r.stateNode;var U=r.memoizedProps,$=wa(i,U);y.props=$;var le=y.context,ge=i.contextType;D=as,typeof ge=="object"&&ge!==null&&(D=Bt(ge));var we=i.getDerivedStateFromProps;ge=typeof we=="function"||typeof y.getSnapshotBeforeUpdate=="function",U=r.pendingProps!==U,ge||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(U||le!==D)&&r0(r,y,l,D),Dr=!1;var fe=r.memoizedState;y.state=fe,vi(r,l,y,p),xi(),le=r.memoizedState,U||fe!==le||Dr?(typeof we=="function"&&(Ed(r,i,we,l),le=r.memoizedState),($=Dr||n0(r,i,$,l,fe,le,D))?(ge||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=le),y.props=l,y.state=le,y.context=D,l=$):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{y=r.stateNode,sd(t,r),D=r.memoizedProps,ge=wa(i,D),y.props=ge,we=r.pendingProps,fe=y.context,le=i.contextType,$=as,typeof le=="object"&&le!==null&&($=Bt(le)),U=i.getDerivedStateFromProps,(le=typeof U=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(D!==we||fe!==$)&&r0(r,y,l,$),Dr=!1,fe=r.memoizedState,y.state=fe,vi(r,l,y,p),xi();var he=r.memoizedState;D!==we||fe!==he||Dr||t!==null&&t.dependencies!==null&&al(t.dependencies)?(typeof U=="function"&&(Ed(r,i,U,l),he=r.memoizedState),(ge=Dr||n0(r,i,ge,l,fe,he,$)||t!==null&&t.dependencies!==null&&al(t.dependencies))?(le||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,he,$),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,he,$)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=he),y.props=l,y.state=he,y.context=$,l=ge):(typeof y.componentDidUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=1024),l=!1)}return y=l,jl(t,r),l=(r.flags&128)!==0,y||l?(y=r.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:y.render(),r.flags|=1,t!==null&&l?(r.child=ms(r,t.child,null,p),r.child=ms(r,null,i,p)):Mt(t,r,i,p),r.memoizedState=y.state,t=r.child):t=mr(t,r,p),t}function x0(t,r,i,l){return ui(),r.flags|=256,Mt(t,r,i,l),r.child}var Od={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rd(t){return{baseLanes:t,cachePool:sg()}}function Cd(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=Tn),t}function v0(t,r,i){var l=r.pendingProps,p=!1,y=(r.flags&128)!==0,D;if((D=y)||(D=t!==null&&t.memoizedState===null?!1:(_t.current&2)!==0),D&&(p=!0,r.flags&=-129),D=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ze){if(p?zr(r):Fr(),Ze){var U=yt,$;if($=U){e:{for($=U,U=Kn;$.nodeType!==8;){if(!U){U=null;break e}if($=Bn($.nextSibling),$===null){U=null;break e}}U=$}U!==null?(r.memoizedState={dehydrated:U,treeContext:ha!==null?{id:lr,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},$=on(18,null,null,0),$.stateNode=U,$.return=r,r.child=$,qt=r,yt=null,$=!0):$=!1}$||ga(r)}if(U=r.memoizedState,U!==null&&(U=U.dehydrated,U!==null))return gf(U)?r.lanes=32:r.lanes=536870912,null;hr(r)}return U=l.children,l=l.fallback,p?(Fr(),p=r.mode,U=Al({mode:"hidden",children:U},p),l=fa(l,p,i,null),U.return=r,l.return=r,U.sibling=l,r.child=U,p=r.child,p.memoizedState=Rd(i),p.childLanes=Cd(t,D,i),r.memoizedState=Od,l):(zr(r),Dd(r,U))}if($=t.memoizedState,$!==null&&(U=$.dehydrated,U!==null)){if(y)r.flags&256?(zr(r),r.flags&=-257,r=Md(t,r,i)):r.memoizedState!==null?(Fr(),r.child=t.child,r.flags|=128,r=null):(Fr(),p=l.fallback,U=r.mode,l=Al({mode:"visible",children:l.children},U),p=fa(p,U,i,null),p.flags|=2,l.return=r,p.return=r,l.sibling=p,r.child=l,ms(r,t.child,null,i),l=r.child,l.memoizedState=Rd(i),l.childLanes=Cd(t,D,i),r.memoizedState=Od,r=p);else if(zr(r),gf(U)){if(D=U.nextSibling&&U.nextSibling.dataset,D)var le=D.dgst;D=le,l=Error(s(419)),l.stack="",l.digest=D,di({value:l,source:null,stack:null}),r=Md(t,r,i)}else if(Rt||fi(t,r,i,!1),D=(i&t.childLanes)!==0,Rt||D){if(D=st,D!==null&&(l=i&-i,l=(l&42)!==0?1:gu(l),l=(l&(D.suspendedLanes|i))!==0?0:l,l!==0&&l!==$.retryLane))throw $.retryLane=l,rs(t,l),fn(D,t,l),u0;U.data==="$?"||Qd(),r=Md(t,r,i)}else U.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=$.treeContext,yt=Bn(U.nextSibling),qt=r,Ze=!0,pa=null,Kn=!1,t!==null&&(Sn[jn++]=lr,Sn[jn++]=cr,Sn[jn++]=ha,lr=t.id,cr=t.overflow,ha=r),r=Dd(r,l.children),r.flags|=4096);return r}return p?(Fr(),p=l.fallback,U=r.mode,$=t.child,le=$.sibling,l=or($,{mode:"hidden",children:l.children}),l.subtreeFlags=$.subtreeFlags&65011712,le!==null?p=or(le,p):(p=fa(p,U,i,null),p.flags|=2),p.return=r,l.return=r,l.sibling=p,r.child=l,l=p,p=r.child,U=t.child.memoizedState,U===null?U=Rd(i):($=U.cachePool,$!==null?(le=kt._currentValue,$=$.parent!==le?{parent:le,pool:le}:$):$=sg(),U={baseLanes:U.baseLanes|i,cachePool:$}),p.memoizedState=U,p.childLanes=Cd(t,D,i),r.memoizedState=Od,l):(zr(r),i=t.child,t=i.sibling,i=or(i,{mode:"visible",children:l.children}),i.return=r,i.sibling=null,t!==null&&(D=r.deletions,D===null?(r.deletions=[t],r.flags|=16):D.push(t)),r.child=i,r.memoizedState=null,i)}function Dd(t,r){return r=Al({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Al(t,r){return t=on(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Md(t,r,i){return ms(r,t.child,null,i),t=Dd(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function b0(t,r,i){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),Qu(t.return,r,i)}function Ld(t,r,i,l,p){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:p}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=i,y.tailMode=p)}function w0(t,r,i){var l=r.pendingProps,p=l.revealOrder,y=l.tail;if(Mt(t,r,l.children,i),l=_t.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&b0(t,i,r);else if(t.tag===19)b0(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(J(_t,l),p){case"forwards":for(i=r.child,p=null;i!==null;)t=i.alternate,t!==null&&bl(t)===null&&(p=i),i=i.sibling;i=p,i===null?(p=r.child,r.child=null):(p=i.sibling,i.sibling=null),Ld(r,!1,p,i,y);break;case"backwards":for(i=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&bl(t)===null){r.child=p;break}t=p.sibling,p.sibling=i,i=p,p=t}Ld(r,!0,i,null,y);break;case"together":Ld(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function mr(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),Ir|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(fi(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(s(153));if(r.child!==null){for(t=r.child,i=or(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=or(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function Pd(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&al(t)))}function YS(t,r,i){switch(r.tag){case 3:Se(r,r.stateNode.containerInfo),Cr(r,kt,t.memoizedState.cache),ui();break;case 27:case 5:Ne(r);break;case 4:Se(r,r.stateNode.containerInfo);break;case 10:Cr(r,r.type,r.memoizedProps.value);break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(zr(r),r.flags|=128,null):(i&r.child.childLanes)!==0?v0(t,r,i):(zr(r),t=mr(t,r,i),t!==null?t.sibling:null);zr(r);break;case 19:var p=(t.flags&128)!==0;if(l=(i&r.childLanes)!==0,l||(fi(t,r,i,!1),l=(i&r.childLanes)!==0),p){if(l)return w0(t,r,i);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),J(_t,_t.current),l)break;return null;case 22:case 23:return r.lanes=0,m0(t,r,i);case 24:Cr(r,kt,t.memoizedState.cache)}return mr(t,r,i)}function S0(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)Rt=!0;else{if(!Pd(t,i)&&(r.flags&128)===0)return Rt=!1,YS(t,r,i);Rt=(t.flags&131072)!==0}else Rt=!1,Ze&&(r.flags&1048576)!==0&&Qp(r,rl,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var l=r.elementType,p=l._init;if(l=p(l._payload),r.type=l,typeof l=="function")qu(l)?(t=wa(l,t),r.tag=1,r=y0(null,r,l,t,i)):(r.tag=0,r=_d(null,r,l,t,i));else{if(l!=null){if(p=l.$$typeof,p===G){r.tag=11,r=d0(null,r,l,t,i);break e}else if(p===B){r.tag=14,r=f0(null,r,l,t,i);break e}}throw r=j(l)||l,Error(s(306,r,""))}}return r;case 0:return _d(t,r,r.type,r.pendingProps,i);case 1:return l=r.type,p=wa(l,r.pendingProps),y0(t,r,l,p,i);case 3:e:{if(Se(r,r.stateNode.containerInfo),t===null)throw Error(s(387));l=r.pendingProps;var y=r.memoizedState;p=y.element,sd(t,r),vi(r,l,null,i);var D=r.memoizedState;if(l=D.cache,Cr(r,kt,l),l!==y.cache&&Ju(r,[kt],i,!0),xi(),l=D.element,y.isDehydrated)if(y={element:l,isDehydrated:!1,cache:D.cache},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){r=x0(t,r,l,i);break e}else if(l!==p){p=bn(Error(s(424)),r),di(p),r=x0(t,r,l,i);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(yt=Bn(t.firstChild),qt=r,Ze=!0,pa=null,Kn=!0,i=e0(r,null,l,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ui(),l===p){r=mr(t,r,i);break e}Mt(t,r,l,i)}r=r.child}return r;case 26:return jl(t,r),t===null?(i=Ey(r.type,null,r.pendingProps,null))?r.memoizedState=i:Ze||(i=r.type,t=r.pendingProps,l=Fl(ie.current).createElement(i),l[Ut]=r,l[Zt]=t,Pt(l,i,t),Ot(l),r.stateNode=l):r.memoizedState=Ey(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ne(r),t===null&&Ze&&(l=r.stateNode=jy(r.type,r.pendingProps,ie.current),qt=r,Kn=!0,p=yt,Wr(r.type)?(yf=p,yt=Bn(l.firstChild)):yt=p),Mt(t,r,r.pendingProps.children,i),jl(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ze&&((p=l=yt)&&(l=bj(l,r.type,r.pendingProps,Kn),l!==null?(r.stateNode=l,qt=r,yt=Bn(l.firstChild),Kn=!1,p=!0):p=!1),p||ga(r)),Ne(r),p=r.type,y=r.pendingProps,D=t!==null?t.memoizedProps:null,l=y.children,hf(p,y)?l=null:D!==null&&hf(p,D)&&(r.flags|=32),r.memoizedState!==null&&(p=dd(t,r,FS,null,null,i),Vi._currentValue=p),jl(t,r),Mt(t,r,l,i),r.child;case 6:return t===null&&Ze&&((t=i=yt)&&(i=wj(i,r.pendingProps,Kn),i!==null?(r.stateNode=i,qt=r,yt=null,t=!0):t=!1),t||ga(r)),null;case 13:return v0(t,r,i);case 4:return Se(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=ms(r,null,l,i):Mt(t,r,l,i),r.child;case 11:return d0(t,r,r.type,r.pendingProps,i);case 7:return Mt(t,r,r.pendingProps,i),r.child;case 8:return Mt(t,r,r.pendingProps.children,i),r.child;case 12:return Mt(t,r,r.pendingProps.children,i),r.child;case 10:return l=r.pendingProps,Cr(r,r.type,l.value),Mt(t,r,l.children,i),r.child;case 9:return p=r.type._context,l=r.pendingProps.children,xa(r),p=Bt(p),l=l(p),r.flags|=1,Mt(t,r,l,i),r.child;case 14:return f0(t,r,r.type,r.pendingProps,i);case 15:return h0(t,r,r.type,r.pendingProps,i);case 19:return w0(t,r,i);case 31:return l=r.pendingProps,i=r.mode,l={mode:l.mode,children:l.children},t===null?(i=Al(l,i),i.ref=r.ref,r.child=i,i.return=r,r=i):(i=or(t.child,l),i.ref=r.ref,r.child=i,i.return=r,r=i),r;case 22:return m0(t,r,i);case 24:return xa(r),l=Bt(kt),t===null?(p=nd(),p===null&&(p=st,y=ed(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=i),p=y),r.memoizedState={parent:l,cache:p},ad(r),Cr(r,kt,p)):((t.lanes&i)!==0&&(sd(t,r),vi(r,null,null,i),xi()),p=t.memoizedState,y=r.memoizedState,p.parent!==l?(p={parent:l,cache:l},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),Cr(r,kt,l)):(l=y.cache,Cr(r,kt,l),l!==p.cache&&Ju(r,[kt],i,!0))),Mt(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function pr(t){t.flags|=4}function j0(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ry(r)){if(r=An.current,r!==null&&((Xe&4194048)===Xe?Zn!==null:(Xe&62914560)!==Xe&&(Xe&536870912)===0||r!==Zn))throw gi=rd,ig;t.flags|=8192}}function Tl(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Bo():536870912,t.lanes|=r,xs|=r)}function Ei(t,r){if(!Ze)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function mt(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(r)for(var p=t.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags&65011712,l|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags,l|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=l,t.childLanes=i,r}function WS(t,r,i){var l=r.pendingProps;switch(Ku(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(r),null;case 1:return mt(r),null;case 3:return i=r.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),dr(kt),Ae(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ci(r)?pr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,tg())),mt(r),null;case 26:return i=r.memoizedState,t===null?(pr(r),i!==null?(mt(r),j0(r,i)):(mt(r),r.flags&=-16777217)):i?i!==t.memoizedState?(pr(r),mt(r),j0(r,i)):(mt(r),r.flags&=-16777217):(t.memoizedProps!==l&&pr(r),mt(r),r.flags&=-16777217),null;case 27:Oe(r),i=ie.current;var p=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==l&&pr(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return mt(r),null}t=Q.current,ci(r)?Jp(r):(t=jy(p,l,i),r.stateNode=t,pr(r))}return mt(r),null;case 5:if(Oe(r),i=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==l&&pr(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return mt(r),null}if(t=Q.current,ci(r))Jp(r);else{switch(p=Fl(ie.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?p.createElement(i,{is:l.is}):p.createElement(i)}}t[Ut]=r,t[Zt]=l;e:for(p=r.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)break e;for(;p.sibling===null;){if(p.return===null||p.return===r)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r.stateNode=t;e:switch(Pt(t,i,l),i){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&pr(r)}}return mt(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==l&&pr(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(t=ie.current,ci(r)){if(t=r.stateNode,i=r.memoizedProps,l=null,p=qt,p!==null)switch(p.tag){case 27:case 5:l=p.memoizedProps}t[Ut]=r,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||gy(t.nodeValue,i)),t||ga(r)}else t=Fl(t).createTextNode(l),t[Ut]=r,r.stateNode=t}return mt(r),null;case 13:if(l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=ci(r),l!==null&&l.dehydrated!==null){if(t===null){if(!p)throw Error(s(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(s(317));p[Ut]=r}else ui(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;mt(r),p=!1}else p=tg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(hr(r),r):(hr(r),null)}if(hr(r),(r.flags&128)!==0)return r.lanes=i,r;if(i=l!==null,t=t!==null&&t.memoizedState!==null,i){l=r.child,p=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(p=l.alternate.memoizedState.cachePool.pool);var y=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(y=l.memoizedState.cachePool.pool),y!==p&&(l.flags|=2048)}return i!==t&&i&&(r.child.flags|=8192),Tl(r,r.updateQueue),mt(r),null;case 4:return Ae(),t===null&&lf(r.stateNode.containerInfo),mt(r),null;case 10:return dr(r.type),mt(r),null;case 19:if(F(_t),p=r.memoizedState,p===null)return mt(r),null;if(l=(r.flags&128)!==0,y=p.rendering,y===null)if(l)Ei(p,!1);else{if(xt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=bl(t),y!==null){for(r.flags|=128,Ei(p,!1),t=y.updateQueue,r.updateQueue=t,Tl(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)$p(i,t),i=i.sibling;return J(_t,_t.current&1|2),r.child}t=t.sibling}p.tail!==null&&q()>kl&&(r.flags|=128,l=!0,Ei(p,!1),r.lanes=4194304)}else{if(!l)if(t=bl(y),t!==null){if(r.flags|=128,l=!0,t=t.updateQueue,r.updateQueue=t,Tl(r,t),Ei(p,!0),p.tail===null&&p.tailMode==="hidden"&&!y.alternate&&!Ze)return mt(r),null}else 2*q()-p.renderingStartTime>kl&&i!==536870912&&(r.flags|=128,l=!0,Ei(p,!1),r.lanes=4194304);p.isBackwards?(y.sibling=r.child,r.child=y):(t=p.last,t!==null?t.sibling=y:r.child=y,p.last=y)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=q(),r.sibling=null,t=_t.current,J(_t,l?t&1|2:t&1),r):(mt(r),null);case 22:case 23:return hr(r),cd(),l=r.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?(i&536870912)!==0&&(r.flags&128)===0&&(mt(r),r.subtreeFlags&6&&(r.flags|=8192)):mt(r),i=r.updateQueue,i!==null&&Tl(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==i&&(r.flags|=2048),t!==null&&F(va),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),dr(kt),mt(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function XS(t,r){switch(Ku(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return dr(kt),Ae(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Oe(r),null;case 13:if(hr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));ui()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return F(_t),null;case 4:return Ae(),null;case 10:return dr(r.type),null;case 22:case 23:return hr(r),cd(),t!==null&&F(va),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return dr(kt),null;case 25:return null;default:return null}}function A0(t,r){switch(Ku(r),r.tag){case 3:dr(kt),Ae();break;case 26:case 27:case 5:Oe(r);break;case 4:Ae();break;case 13:hr(r);break;case 19:F(_t);break;case 10:dr(r.type);break;case 22:case 23:hr(r),cd(),t!==null&&F(va);break;case 24:dr(kt)}}function Ni(t,r){try{var i=r.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var p=l.next;i=p;do{if((i.tag&t)===t){l=void 0;var y=i.create,D=i.inst;l=y(),D.destroy=l}i=i.next}while(i!==p)}}catch(U){nt(r,r.return,U)}}function Ur(t,r,i){try{var l=r.updateQueue,p=l!==null?l.lastEffect:null;if(p!==null){var y=p.next;l=y;do{if((l.tag&t)===t){var D=l.inst,U=D.destroy;if(U!==void 0){D.destroy=void 0,p=r;var $=i,le=U;try{le()}catch(ge){nt(p,$,ge)}}}l=l.next}while(l!==y)}}catch(ge){nt(r,r.return,ge)}}function T0(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{fg(r,i)}catch(l){nt(t,t.return,l)}}}function E0(t,r,i){i.props=wa(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){nt(t,r,l)}}function ki(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(p){nt(t,r,p)}}function $n(t,r){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(p){nt(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(p){nt(t,r,p)}else i.current=null}function N0(t){var r=t.type,i=t.memoizedProps,l=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(p){nt(t,t.return,p)}}function zd(t,r,i){try{var l=t.stateNode;pj(l,t.type,i,r),l[Zt]=r}catch(p){nt(t,t.return,p)}}function k0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Wr(t.type)||t.tag===4}function Fd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||k0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Wr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ud(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=zl));else if(l!==4&&(l===27&&Wr(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(Ud(t,r,i),t=t.sibling;t!==null;)Ud(t,r,i),t=t.sibling}function El(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(l!==4&&(l===27&&Wr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(El(t,r,i),t=t.sibling;t!==null;)El(t,r,i),t=t.sibling}function _0(t){var r=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Pt(r,l,i),r[Ut]=t,r[Zt]=i}catch(y){nt(t,t.return,y)}}var gr=!1,wt=!1,Bd=!1,O0=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function KS(t,r){if(t=t.containerInfo,df=Gl,t=Vp(t),Fu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var p=l.anchorOffset,y=l.focusNode;l=l.focusOffset;try{i.nodeType,y.nodeType}catch{i=null;break e}var D=0,U=-1,$=-1,le=0,ge=0,we=t,fe=null;t:for(;;){for(var he;we!==i||p!==0&&we.nodeType!==3||(U=D+p),we!==y||l!==0&&we.nodeType!==3||($=D+l),we.nodeType===3&&(D+=we.nodeValue.length),(he=we.firstChild)!==null;)fe=we,we=he;for(;;){if(we===t)break t;if(fe===i&&++le===p&&(U=D),fe===y&&++ge===l&&($=D),(he=we.nextSibling)!==null)break;we=fe,fe=we.parentNode}we=he}i=U===-1||$===-1?null:{start:U,end:$}}else i=null}i=i||{start:0,end:0}}else i=null;for(ff={focusedElem:t,selectionRange:i},Gl=!1,Ct=r;Ct!==null;)if(r=Ct,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,Ct=t;else for(;Ct!==null;){switch(r=Ct,y=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&y!==null){t=void 0,i=r,p=y.memoizedProps,y=y.memoizedState,l=i.stateNode;try{var ze=wa(i.type,p,i.elementType===i.type);t=l.getSnapshotBeforeUpdate(ze,y),l.__reactInternalSnapshotBeforeUpdate=t}catch(Me){nt(i,i.return,Me)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)pf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":pf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=r.sibling,t!==null){t.return=r.return,Ct=t;break}Ct=r.return}}function R0(t,r,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Br(t,i),l&4&&Ni(5,i);break;case 1:if(Br(t,i),l&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(D){nt(i,i.return,D)}else{var p=wa(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(D){nt(i,i.return,D)}}l&64&&T0(i),l&512&&ki(i,i.return);break;case 3:if(Br(t,i),l&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{fg(t,r)}catch(D){nt(i,i.return,D)}}break;case 27:r===null&&l&4&&_0(i);case 26:case 5:Br(t,i),r===null&&l&4&&N0(i),l&512&&ki(i,i.return);break;case 12:Br(t,i);break;case 13:Br(t,i),l&4&&M0(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=aj.bind(null,i),Sj(t,i))));break;case 22:if(l=i.memoizedState!==null||gr,!l){r=r!==null&&r.memoizedState!==null||wt,p=gr;var y=wt;gr=l,(wt=r)&&!y?Vr(t,i,(i.subtreeFlags&8772)!==0):Br(t,i),gr=p,wt=y}break;case 30:break;default:Br(t,i)}}function C0(t){var r=t.alternate;r!==null&&(t.alternate=null,C0(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&vu(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ut=null,Jt=!1;function yr(t,r,i){for(i=i.child;i!==null;)D0(t,r,i),i=i.sibling}function D0(t,r,i){if(ke&&typeof ke.onCommitFiberUnmount=="function")try{ke.onCommitFiberUnmount(xe,i)}catch{}switch(i.tag){case 26:wt||$n(i,r),yr(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:wt||$n(i,r);var l=ut,p=Jt;Wr(i.type)&&(ut=i.stateNode,Jt=!1),yr(t,r,i),zi(i.stateNode),ut=l,Jt=p;break;case 5:wt||$n(i,r);case 6:if(l=ut,p=Jt,ut=null,yr(t,r,i),ut=l,Jt=p,ut!==null)if(Jt)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(i.stateNode)}catch(y){nt(i,r,y)}else try{ut.removeChild(i.stateNode)}catch(y){nt(i,r,y)}break;case 18:ut!==null&&(Jt?(t=ut,wy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),qi(t)):wy(ut,i.stateNode));break;case 4:l=ut,p=Jt,ut=i.stateNode.containerInfo,Jt=!0,yr(t,r,i),ut=l,Jt=p;break;case 0:case 11:case 14:case 15:wt||Ur(2,i,r),wt||Ur(4,i,r),yr(t,r,i);break;case 1:wt||($n(i,r),l=i.stateNode,typeof l.componentWillUnmount=="function"&&E0(i,r,l)),yr(t,r,i);break;case 21:yr(t,r,i);break;case 22:wt=(l=wt)||i.memoizedState!==null,yr(t,r,i),wt=l;break;default:yr(t,r,i)}}function M0(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{qi(t)}catch(i){nt(r,r.return,i)}}function ZS(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new O0),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new O0),r;default:throw Error(s(435,t.tag))}}function Vd(t,r){var i=ZS(t);r.forEach(function(l){var p=sj.bind(null,t,l);i.has(l)||(i.add(l),l.then(p,p))})}function ln(t,r){var i=r.deletions;if(i!==null)for(var l=0;l<i.length;l++){var p=i[l],y=t,D=r,U=D;e:for(;U!==null;){switch(U.tag){case 27:if(Wr(U.type)){ut=U.stateNode,Jt=!1;break e}break;case 5:ut=U.stateNode,Jt=!1;break e;case 3:case 4:ut=U.stateNode.containerInfo,Jt=!0;break e}U=U.return}if(ut===null)throw Error(s(160));D0(y,D,p),ut=null,Jt=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)L0(r,t),r=r.sibling}var Un=null;function L0(t,r){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ln(r,t),cn(t),l&4&&(Ur(3,t,t.return),Ni(3,t),Ur(5,t,t.return));break;case 1:ln(r,t),cn(t),l&512&&(wt||i===null||$n(i,i.return)),l&64&&gr&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var p=Un;if(ln(r,t),cn(t),l&512&&(wt||i===null||$n(i,i.return)),l&4){var y=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){e:{l=t.type,i=t.memoizedProps,p=p.ownerDocument||p;t:switch(l){case"title":y=p.getElementsByTagName("title")[0],(!y||y[Qs]||y[Ut]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(l),p.head.insertBefore(y,p.querySelector("head > title"))),Pt(y,l,i),y[Ut]=t,Ot(y),l=y;break e;case"link":var D=_y("link","href",p).get(l+(i.href||""));if(D){for(var U=0;U<D.length;U++)if(y=D[U],y.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&y.getAttribute("rel")===(i.rel==null?null:i.rel)&&y.getAttribute("title")===(i.title==null?null:i.title)&&y.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){D.splice(U,1);break t}}y=p.createElement(l),Pt(y,l,i),p.head.appendChild(y);break;case"meta":if(D=_y("meta","content",p).get(l+(i.content||""))){for(U=0;U<D.length;U++)if(y=D[U],y.getAttribute("content")===(i.content==null?null:""+i.content)&&y.getAttribute("name")===(i.name==null?null:i.name)&&y.getAttribute("property")===(i.property==null?null:i.property)&&y.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&y.getAttribute("charset")===(i.charSet==null?null:i.charSet)){D.splice(U,1);break t}}y=p.createElement(l),Pt(y,l,i),p.head.appendChild(y);break;default:throw Error(s(468,l))}y[Ut]=t,Ot(y),l=y}t.stateNode=l}else Oy(p,t.type,t.stateNode);else t.stateNode=ky(p,l,t.memoizedProps);else y!==l?(y===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):y.count--,l===null?Oy(p,t.type,t.stateNode):ky(p,l,t.memoizedProps)):l===null&&t.stateNode!==null&&zd(t,t.memoizedProps,i.memoizedProps)}break;case 27:ln(r,t),cn(t),l&512&&(wt||i===null||$n(i,i.return)),i!==null&&l&4&&zd(t,t.memoizedProps,i.memoizedProps);break;case 5:if(ln(r,t),cn(t),l&512&&(wt||i===null||$n(i,i.return)),t.flags&32){p=t.stateNode;try{Za(p,"")}catch(he){nt(t,t.return,he)}}l&4&&t.stateNode!=null&&(p=t.memoizedProps,zd(t,p,i!==null?i.memoizedProps:p)),l&1024&&(Bd=!0);break;case 6:if(ln(r,t),cn(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(he){nt(t,t.return,he)}}break;case 3:if(Vl=null,p=Un,Un=Ul(r.containerInfo),ln(r,t),Un=p,cn(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{qi(r.containerInfo)}catch(he){nt(t,t.return,he)}Bd&&(Bd=!1,P0(t));break;case 4:l=Un,Un=Ul(t.stateNode.containerInfo),ln(r,t),cn(t),Un=l;break;case 12:ln(r,t),cn(t);break;case 13:ln(r,t),cn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Wd=q()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vd(t,l)));break;case 22:p=t.memoizedState!==null;var $=i!==null&&i.memoizedState!==null,le=gr,ge=wt;if(gr=le||p,wt=ge||$,ln(r,t),wt=ge,gr=le,cn(t),l&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(i===null||$||gr||wt||Sa(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){$=i=r;try{if(y=$.stateNode,p)D=y.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{U=$.stateNode;var we=$.memoizedProps.style,fe=we!=null&&we.hasOwnProperty("display")?we.display:null;U.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(he){nt($,$.return,he)}}}else if(r.tag===6){if(i===null){$=r;try{$.stateNode.nodeValue=p?"":$.memoizedProps}catch(he){nt($,$.return,he)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Vd(t,i))));break;case 19:ln(r,t),cn(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vd(t,l)));break;case 30:break;case 21:break;default:ln(r,t),cn(t)}}function cn(t){var r=t.flags;if(r&2){try{for(var i,l=t.return;l!==null;){if(k0(l)){i=l;break}l=l.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var p=i.stateNode,y=Fd(t);El(t,y,p);break;case 5:var D=i.stateNode;i.flags&32&&(Za(D,""),i.flags&=-33);var U=Fd(t);El(t,U,D);break;case 3:case 4:var $=i.stateNode.containerInfo,le=Fd(t);Ud(t,le,$);break;default:throw Error(s(161))}}catch(ge){nt(t,t.return,ge)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function P0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;P0(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Br(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)R0(t,r.alternate,r),r=r.sibling}function Sa(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Ur(4,r,r.return),Sa(r);break;case 1:$n(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&E0(r,r.return,i),Sa(r);break;case 27:zi(r.stateNode);case 26:case 5:$n(r,r.return),Sa(r);break;case 22:r.memoizedState===null&&Sa(r);break;case 30:Sa(r);break;default:Sa(r)}t=t.sibling}}function Vr(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,p=t,y=r,D=y.flags;switch(y.tag){case 0:case 11:case 15:Vr(p,y,i),Ni(4,y);break;case 1:if(Vr(p,y,i),l=y,p=l.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(le){nt(l,l.return,le)}if(l=y,p=l.updateQueue,p!==null){var U=l.stateNode;try{var $=p.shared.hiddenCallbacks;if($!==null)for(p.shared.hiddenCallbacks=null,p=0;p<$.length;p++)dg($[p],U)}catch(le){nt(l,l.return,le)}}i&&D&64&&T0(y),ki(y,y.return);break;case 27:_0(y);case 26:case 5:Vr(p,y,i),i&&l===null&&D&4&&N0(y),ki(y,y.return);break;case 12:Vr(p,y,i);break;case 13:Vr(p,y,i),i&&D&4&&M0(p,y);break;case 22:y.memoizedState===null&&Vr(p,y,i),ki(y,y.return);break;case 30:break;default:Vr(p,y,i)}r=r.sibling}}function Hd(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&hi(i))}function Id(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&hi(t))}function Qn(t,r,i,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)z0(t,r,i,l),r=r.sibling}function z0(t,r,i,l){var p=r.flags;switch(r.tag){case 0:case 11:case 15:Qn(t,r,i,l),p&2048&&Ni(9,r);break;case 1:Qn(t,r,i,l);break;case 3:Qn(t,r,i,l),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&hi(t)));break;case 12:if(p&2048){Qn(t,r,i,l),t=r.stateNode;try{var y=r.memoizedProps,D=y.id,U=y.onPostCommit;typeof U=="function"&&U(D,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch($){nt(r,r.return,$)}}else Qn(t,r,i,l);break;case 13:Qn(t,r,i,l);break;case 23:break;case 22:y=r.stateNode,D=r.alternate,r.memoizedState!==null?y._visibility&2?Qn(t,r,i,l):_i(t,r):y._visibility&2?Qn(t,r,i,l):(y._visibility|=2,ps(t,r,i,l,(r.subtreeFlags&10256)!==0)),p&2048&&Hd(D,r);break;case 24:Qn(t,r,i,l),p&2048&&Id(r.alternate,r);break;default:Qn(t,r,i,l)}}function ps(t,r,i,l,p){for(p=p&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var y=t,D=r,U=i,$=l,le=D.flags;switch(D.tag){case 0:case 11:case 15:ps(y,D,U,$,p),Ni(8,D);break;case 23:break;case 22:var ge=D.stateNode;D.memoizedState!==null?ge._visibility&2?ps(y,D,U,$,p):_i(y,D):(ge._visibility|=2,ps(y,D,U,$,p)),p&&le&2048&&Hd(D.alternate,D);break;case 24:ps(y,D,U,$,p),p&&le&2048&&Id(D.alternate,D);break;default:ps(y,D,U,$,p)}r=r.sibling}}function _i(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,l=r,p=l.flags;switch(l.tag){case 22:_i(i,l),p&2048&&Hd(l.alternate,l);break;case 24:_i(i,l),p&2048&&Id(l.alternate,l);break;default:_i(i,l)}r=r.sibling}}var Oi=8192;function gs(t){if(t.subtreeFlags&Oi)for(t=t.child;t!==null;)F0(t),t=t.sibling}function F0(t){switch(t.tag){case 26:gs(t),t.flags&Oi&&t.memoizedState!==null&&Lj(Un,t.memoizedState,t.memoizedProps);break;case 5:gs(t);break;case 3:case 4:var r=Un;Un=Ul(t.stateNode.containerInfo),gs(t),Un=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=Oi,Oi=16777216,gs(t),Oi=r):gs(t));break;default:gs(t)}}function U0(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Ri(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var l=r[i];Ct=l,V0(l,t)}U0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)B0(t),t=t.sibling}function B0(t){switch(t.tag){case 0:case 11:case 15:Ri(t),t.flags&2048&&Ur(9,t,t.return);break;case 3:Ri(t);break;case 12:Ri(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Nl(t)):Ri(t);break;default:Ri(t)}}function Nl(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var l=r[i];Ct=l,V0(l,t)}U0(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Ur(8,r,r.return),Nl(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,Nl(r));break;default:Nl(r)}t=t.sibling}}function V0(t,r){for(;Ct!==null;){var i=Ct;switch(i.tag){case 0:case 11:case 15:Ur(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:hi(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Ct=l;else e:for(i=t;Ct!==null;){l=Ct;var p=l.sibling,y=l.return;if(C0(l),l===i){Ct=null;break e}if(p!==null){p.return=y,Ct=p;break e}Ct=y}}}var $S={getCacheForType:function(t){var r=Bt(kt),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i}},QS=typeof WeakMap=="function"?WeakMap:Map,$e=0,st=null,qe=null,Xe=0,Qe=0,un=null,Hr=!1,ys=!1,Gd=!1,xr=0,xt=0,Ir=0,ja=0,qd=0,Tn=0,xs=0,Ci=null,en=null,Yd=!1,Wd=0,kl=1/0,_l=null,Gr=null,Lt=0,qr=null,vs=null,bs=0,Xd=0,Kd=null,H0=null,Di=0,Zd=null;function dn(){if(($e&2)!==0&&Xe!==0)return Xe&-Xe;if(X.T!==null){var t=os;return t!==0?t:rf()}return ap()}function I0(){Tn===0&&(Tn=(Xe&536870912)===0||Ze?Uo():536870912);var t=An.current;return t!==null&&(t.flags|=32),Tn}function fn(t,r,i){(t===st&&(Qe===2||Qe===9)||t.cancelPendingCommit!==null)&&(ws(t,0),Yr(t,Xe,Tn,!1)),zn(t,i),(($e&2)===0||t!==st)&&(t===st&&(($e&2)===0&&(ja|=i),xt===4&&Yr(t,Xe,Tn,!1)),Jn(t))}function G0(t,r,i){if(($e&6)!==0)throw Error(s(327));var l=!i&&(r&124)===0&&(r&t.expiredLanes)===0||_r(t,r),p=l?tj(t,r):Jd(t,r,!0),y=l;do{if(p===0){ys&&!l&&Yr(t,r,0,!1);break}else{if(i=t.current.alternate,y&&!JS(i)){p=Jd(t,r,!1),y=!1;continue}if(p===2){if(y=r,t.errorRecoveryDisabledLanes&y)var D=0;else D=t.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){r=D;e:{var U=t;p=Ci;var $=U.current.memoizedState.isDehydrated;if($&&(ws(U,D).flags|=256),D=Jd(U,D,!1),D!==2){if(Gd&&!$){U.errorRecoveryDisabledLanes|=y,ja|=y,p=4;break e}y=en,en=p,y!==null&&(en===null?en=y:en.push.apply(en,y))}p=D}if(y=!1,p!==2)continue}}if(p===1){ws(t,0),Yr(t,r,0,!0);break}e:{switch(l=t,y=p,y){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Yr(l,r,Tn,!Hr);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(p=Wd+300-q(),10<p)){if(Yr(l,r,Tn,!Hr),Kt(l,0,!0)!==0)break e;l.timeoutHandle=vy(q0.bind(null,l,i,en,_l,Yd,r,Tn,ja,xs,Hr,y,2,-0,0),p);break e}q0(l,i,en,_l,Yd,r,Tn,ja,xs,Hr,y,0,-0,0)}}break}while(!0);Jn(t)}function q0(t,r,i,l,p,y,D,U,$,le,ge,we,fe,he){if(t.timeoutHandle=-1,we=r.subtreeFlags,(we&8192||(we&16785408)===16785408)&&(Bi={stylesheets:null,count:0,unsuspend:Mj},F0(r),we=Pj(),we!==null)){t.cancelPendingCommit=we(Q0.bind(null,t,r,y,i,l,p,D,U,$,ge,1,fe,he)),Yr(t,y,D,!le);return}Q0(t,r,y,i,l,p,D,U,$)}function JS(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var p=i[l],y=p.getSnapshot;p=p.value;try{if(!sn(y(),p))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Yr(t,r,i,l){r&=~qd,r&=~ja,t.suspendedLanes|=r,t.pingedLanes&=~r,l&&(t.warmLanes|=r),l=t.expirationTimes;for(var p=r;0<p;){var y=31-He(p),D=1<<y;l[y]=-1,p&=~D}i!==0&&np(t,i,r)}function Ol(){return($e&6)===0?(Mi(0),!1):!0}function $d(){if(qe!==null){if(Qe===0)var t=qe.return;else t=qe,ur=ya=null,md(t),hs=null,Ai=0,t=qe;for(;t!==null;)A0(t.alternate,t),t=t.return;qe=null}}function ws(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,yj(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),$d(),st=t,qe=i=or(t.current,null),Xe=r,Qe=0,un=null,Hr=!1,ys=_r(t,r),Gd=!1,xs=Tn=qd=ja=Ir=xt=0,en=Ci=null,Yd=!1,(r&8)!==0&&(r|=r&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=r;0<l;){var p=31-He(l),y=1<<p;r|=t[p],l&=~y}return xr=r,Qo(),i}function Y0(t,r){Ie=null,X.H=yl,r===pi||r===ol?(r=cg(),Qe=3):r===ig?(r=cg(),Qe=4):Qe=r===u0?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,un=r,qe===null&&(xt=1,Sl(t,bn(r,t.current)))}function W0(){var t=X.H;return X.H=yl,t===null?yl:t}function X0(){var t=X.A;return X.A=$S,t}function Qd(){xt=4,Hr||(Xe&4194048)!==Xe&&An.current!==null||(ys=!0),(Ir&134217727)===0&&(ja&134217727)===0||st===null||Yr(st,Xe,Tn,!1)}function Jd(t,r,i){var l=$e;$e|=2;var p=W0(),y=X0();(st!==t||Xe!==r)&&(_l=null,ws(t,r)),r=!1;var D=xt;e:do try{if(Qe!==0&&qe!==null){var U=qe,$=un;switch(Qe){case 8:$d(),D=6;break e;case 3:case 2:case 9:case 6:An.current===null&&(r=!0);var le=Qe;if(Qe=0,un=null,Ss(t,U,$,le),i&&ys){D=0;break e}break;default:le=Qe,Qe=0,un=null,Ss(t,U,$,le)}}ej(),D=xt;break}catch(ge){Y0(t,ge)}while(!0);return r&&t.shellSuspendCounter++,ur=ya=null,$e=l,X.H=p,X.A=y,qe===null&&(st=null,Xe=0,Qo()),D}function ej(){for(;qe!==null;)K0(qe)}function tj(t,r){var i=$e;$e|=2;var l=W0(),p=X0();st!==t||Xe!==r?(_l=null,kl=q()+500,ws(t,r)):ys=_r(t,r);e:do try{if(Qe!==0&&qe!==null){r=qe;var y=un;t:switch(Qe){case 1:Qe=0,un=null,Ss(t,r,y,1);break;case 2:case 9:if(og(y)){Qe=0,un=null,Z0(r);break}r=function(){Qe!==2&&Qe!==9||st!==t||(Qe=7),Jn(t)},y.then(r,r);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:og(y)?(Qe=0,un=null,Z0(r)):(Qe=0,un=null,Ss(t,r,y,7));break;case 5:var D=null;switch(qe.tag){case 26:D=qe.memoizedState;case 5:case 27:var U=qe;if(!D||Ry(D)){Qe=0,un=null;var $=U.sibling;if($!==null)qe=$;else{var le=U.return;le!==null?(qe=le,Rl(le)):qe=null}break t}}Qe=0,un=null,Ss(t,r,y,5);break;case 6:Qe=0,un=null,Ss(t,r,y,6);break;case 8:$d(),xt=6;break e;default:throw Error(s(462))}}nj();break}catch(ge){Y0(t,ge)}while(!0);return ur=ya=null,X.H=l,X.A=p,$e=i,qe!==null?0:(st=null,Xe=0,Qo(),xt)}function nj(){for(;qe!==null&&!de();)K0(qe)}function K0(t){var r=S0(t.alternate,t,xr);t.memoizedProps=t.pendingProps,r===null?Rl(t):qe=r}function Z0(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=g0(i,r,r.pendingProps,r.type,void 0,Xe);break;case 11:r=g0(i,r,r.pendingProps,r.type.render,r.ref,Xe);break;case 5:md(r);default:A0(i,r),r=qe=$p(r,xr),r=S0(i,r,xr)}t.memoizedProps=t.pendingProps,r===null?Rl(t):qe=r}function Ss(t,r,i,l){ur=ya=null,md(r),hs=null,Ai=0;var p=r.return;try{if(qS(t,p,r,i,Xe)){xt=1,Sl(t,bn(i,t.current)),qe=null;return}}catch(y){if(p!==null)throw qe=p,y;xt=1,Sl(t,bn(i,t.current)),qe=null;return}r.flags&32768?(Ze||l===1?t=!0:ys||(Xe&536870912)!==0?t=!1:(Hr=t=!0,(l===2||l===9||l===3||l===6)&&(l=An.current,l!==null&&l.tag===13&&(l.flags|=16384))),$0(r,t)):Rl(r)}function Rl(t){var r=t;do{if((r.flags&32768)!==0){$0(r,Hr);return}t=r.return;var i=WS(r.alternate,r,xr);if(i!==null){qe=i;return}if(r=r.sibling,r!==null){qe=r;return}qe=r=t}while(r!==null);xt===0&&(xt=5)}function $0(t,r){do{var i=XS(t.alternate,t);if(i!==null){i.flags&=32767,qe=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){qe=t;return}qe=t=i}while(t!==null);xt=6,qe=null}function Q0(t,r,i,l,p,y,D,U,$){t.cancelPendingCommit=null;do Cl();while(Lt!==0);if(($e&6)!==0)throw Error(s(327));if(r!==null){if(r===t.current)throw Error(s(177));if(y=r.lanes|r.childLanes,y|=Iu,Ha(t,i,y,D,U,$),t===st&&(qe=st=null,Xe=0),vs=r,qr=t,bs=i,Xd=y,Kd=p,H0=l,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ij(ye,function(){return ry(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||l){l=X.T,X.T=null,p=w.p,w.p=2,D=$e,$e|=4;try{KS(t,r,i)}finally{$e=D,w.p=p,X.T=l}}Lt=1,J0(),ey(),ty()}}function J0(){if(Lt===1){Lt=0;var t=qr,r=vs,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=X.T,X.T=null;var l=w.p;w.p=2;var p=$e;$e|=4;try{L0(r,t);var y=ff,D=Vp(t.containerInfo),U=y.focusedElem,$=y.selectionRange;if(D!==U&&U&&U.ownerDocument&&Bp(U.ownerDocument.documentElement,U)){if($!==null&&Fu(U)){var le=$.start,ge=$.end;if(ge===void 0&&(ge=le),"selectionStart"in U)U.selectionStart=le,U.selectionEnd=Math.min(ge,U.value.length);else{var we=U.ownerDocument||document,fe=we&&we.defaultView||window;if(fe.getSelection){var he=fe.getSelection(),ze=U.textContent.length,Me=Math.min($.start,ze),tt=$.end===void 0?Me:Math.min($.end,ze);!he.extend&&Me>tt&&(D=tt,tt=Me,Me=D);var ae=Up(U,Me),re=Up(U,tt);if(ae&&re&&(he.rangeCount!==1||he.anchorNode!==ae.node||he.anchorOffset!==ae.offset||he.focusNode!==re.node||he.focusOffset!==re.offset)){var se=we.createRange();se.setStart(ae.node,ae.offset),he.removeAllRanges(),Me>tt?(he.addRange(se),he.extend(re.node,re.offset)):(se.setEnd(re.node,re.offset),he.addRange(se))}}}}for(we=[],he=U;he=he.parentNode;)he.nodeType===1&&we.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<we.length;U++){var ve=we[U];ve.element.scrollLeft=ve.left,ve.element.scrollTop=ve.top}}Gl=!!df,ff=df=null}finally{$e=p,w.p=l,X.T=i}}t.current=r,Lt=2}}function ey(){if(Lt===2){Lt=0;var t=qr,r=vs,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=X.T,X.T=null;var l=w.p;w.p=2;var p=$e;$e|=4;try{R0(t,r.alternate,r)}finally{$e=p,w.p=l,X.T=i}}Lt=3}}function ty(){if(Lt===4||Lt===3){Lt=0,ce();var t=qr,r=vs,i=bs,l=H0;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Lt=5:(Lt=0,vs=qr=null,ny(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Gr=null),yu(i),r=r.stateNode,ke&&typeof ke.onCommitFiberRoot=="function")try{ke.onCommitFiberRoot(xe,r,void 0,(r.current.flags&128)===128)}catch{}if(l!==null){r=X.T,p=w.p,w.p=2,X.T=null;try{for(var y=t.onRecoverableError,D=0;D<l.length;D++){var U=l[D];y(U.value,{componentStack:U.stack})}}finally{X.T=r,w.p=p}}(bs&3)!==0&&Cl(),Jn(t),p=t.pendingLanes,(i&4194090)!==0&&(p&42)!==0?t===Zd?Di++:(Di=0,Zd=t):Di=0,Mi(0)}}function ny(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,hi(r)))}function Cl(t){return J0(),ey(),ty(),ry()}function ry(){if(Lt!==5)return!1;var t=qr,r=Xd;Xd=0;var i=yu(bs),l=X.T,p=w.p;try{w.p=32>i?32:i,X.T=null,i=Kd,Kd=null;var y=qr,D=bs;if(Lt=0,vs=qr=null,bs=0,($e&6)!==0)throw Error(s(331));var U=$e;if($e|=4,B0(y.current),z0(y,y.current,D,i),$e=U,Mi(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(xe,y)}catch{}return!0}finally{w.p=p,X.T=l,ny(t,r)}}function ay(t,r,i){r=bn(i,r),r=kd(t.stateNode,r,2),t=Lr(t,r,2),t!==null&&(zn(t,2),Jn(t))}function nt(t,r,i){if(t.tag===3)ay(t,t,i);else for(;r!==null;){if(r.tag===3){ay(r,t,i);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Gr===null||!Gr.has(l))){t=bn(i,t),i=l0(2),l=Lr(r,i,2),l!==null&&(c0(i,l,r,t),zn(l,2),Jn(l));break}}r=r.return}}function ef(t,r,i){var l=t.pingCache;if(l===null){l=t.pingCache=new QS;var p=new Set;l.set(r,p)}else p=l.get(r),p===void 0&&(p=new Set,l.set(r,p));p.has(i)||(Gd=!0,p.add(i),t=rj.bind(null,t,r,i),r.then(t,t))}function rj(t,r,i){var l=t.pingCache;l!==null&&l.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,st===t&&(Xe&i)===i&&(xt===4||xt===3&&(Xe&62914560)===Xe&&300>q()-Wd?($e&2)===0&&ws(t,0):qd|=i,xs===Xe&&(xs=0)),Jn(t)}function sy(t,r){r===0&&(r=Bo()),t=rs(t,r),t!==null&&(zn(t,r),Jn(t))}function aj(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),sy(t,i)}function sj(t,r){var i=0;switch(t.tag){case 13:var l=t.stateNode,p=t.memoizedState;p!==null&&(i=p.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(r),sy(t,i)}function ij(t,r){return Re(t,r)}var Dl=null,js=null,tf=!1,Ml=!1,nf=!1,Aa=0;function Jn(t){t!==js&&t.next===null&&(js===null?Dl=js=t:js=js.next=t),Ml=!0,tf||(tf=!0,lj())}function Mi(t,r){if(!nf&&Ml){nf=!0;do for(var i=!1,l=Dl;l!==null;){if(t!==0){var p=l.pendingLanes;if(p===0)var y=0;else{var D=l.suspendedLanes,U=l.pingedLanes;y=(1<<31-He(42|t)+1)-1,y&=p&~(D&~U),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(i=!0,cy(l,y))}else y=Xe,y=Kt(l,l===st?y:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(y&3)===0||_r(l,y)||(i=!0,cy(l,y));l=l.next}while(i);nf=!1}}function oj(){iy()}function iy(){Ml=tf=!1;var t=0;Aa!==0&&(gj()&&(t=Aa),Aa=0);for(var r=q(),i=null,l=Dl;l!==null;){var p=l.next,y=oy(l,r);y===0?(l.next=null,i===null?Dl=p:i.next=p,p===null&&(js=i)):(i=l,(t!==0||(y&3)!==0)&&(Ml=!0)),l=p}Mi(t)}function oy(t,r){for(var i=t.suspendedLanes,l=t.pingedLanes,p=t.expirationTimes,y=t.pendingLanes&-62914561;0<y;){var D=31-He(y),U=1<<D,$=p[D];$===-1?((U&i)===0||(U&l)!==0)&&(p[D]=pu(U,r)):$<=r&&(t.expiredLanes|=U),y&=~U}if(r=st,i=Xe,i=Kt(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===r&&(Qe===2||Qe===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&_(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||_r(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(l!==null&&_(l),yu(i)){case 2:case 8:i=pe;break;case 32:i=ye;break;case 268435456:i=je;break;default:i=ye}return l=ly.bind(null,t),i=Re(i,l),t.callbackPriority=r,t.callbackNode=i,r}return l!==null&&l!==null&&_(l),t.callbackPriority=2,t.callbackNode=null,2}function ly(t,r){if(Lt!==0&&Lt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Cl()&&t.callbackNode!==i)return null;var l=Xe;return l=Kt(t,t===st?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(G0(t,l,r),oy(t,q()),t.callbackNode!=null&&t.callbackNode===i?ly.bind(null,t):null)}function cy(t,r){if(Cl())return null;G0(t,r,!0)}function lj(){xj(function(){($e&6)!==0?Re(te,oj):iy()})}function rf(){return Aa===0&&(Aa=Uo()),Aa}function uy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:qo(""+t)}function dy(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function cj(t,r,i,l,p){if(r==="submit"&&i&&i.stateNode===p){var y=uy((p[Zt]||null).action),D=l.submitter;D&&(r=(r=D[Zt]||null)?uy(r.formAction):D.getAttribute("formAction"),r!==null&&(y=r,D=null));var U=new Ko("action","action",null,l,p);t.push({event:U,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Aa!==0){var $=D?dy(p,D):new FormData(p);jd(i,{pending:!0,data:$,method:p.method,action:y},null,$)}}else typeof y=="function"&&(U.preventDefault(),$=D?dy(p,D):new FormData(p),jd(i,{pending:!0,data:$,method:p.method,action:y},y,$))},currentTarget:p}]})}}for(var af=0;af<Hu.length;af++){var sf=Hu[af],uj=sf.toLowerCase(),dj=sf[0].toUpperCase()+sf.slice(1);Fn(uj,"on"+dj)}Fn(Gp,"onAnimationEnd"),Fn(qp,"onAnimationIteration"),Fn(Yp,"onAnimationStart"),Fn("dblclick","onDoubleClick"),Fn("focusin","onFocus"),Fn("focusout","onBlur"),Fn(kS,"onTransitionRun"),Fn(_S,"onTransitionStart"),Fn(OS,"onTransitionCancel"),Fn(Wp,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="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(" "),fj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Li));function fy(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],p=l.event;l=l.listeners;e:{var y=void 0;if(r)for(var D=l.length-1;0<=D;D--){var U=l[D],$=U.instance,le=U.currentTarget;if(U=U.listener,$!==y&&p.isPropagationStopped())break e;y=U,p.currentTarget=le;try{y(p)}catch(ge){wl(ge)}p.currentTarget=null,y=$}else for(D=0;D<l.length;D++){if(U=l[D],$=U.instance,le=U.currentTarget,U=U.listener,$!==y&&p.isPropagationStopped())break e;y=U,p.currentTarget=le;try{y(p)}catch(ge){wl(ge)}p.currentTarget=null,y=$}}}}function Ye(t,r){var i=r[xu];i===void 0&&(i=r[xu]=new Set);var l=t+"__bubble";i.has(l)||(hy(r,t,2,!1),i.add(l))}function of(t,r,i){var l=0;r&&(l|=4),hy(i,t,l,r)}var Ll="_reactListening"+Math.random().toString(36).slice(2);function lf(t){if(!t[Ll]){t[Ll]=!0,ip.forEach(function(i){i!=="selectionchange"&&(fj.has(i)||of(i,!1,t),of(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Ll]||(r[Ll]=!0,of("selectionchange",!1,r))}}function hy(t,r,i,l){switch(zy(r)){case 2:var p=Uj;break;case 8:p=Bj;break;default:p=Sf}i=p.bind(null,r,i,t),p=void 0,!_u||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),l?p!==void 0?t.addEventListener(r,i,{capture:!0,passive:p}):t.addEventListener(r,i,!0):p!==void 0?t.addEventListener(r,i,{passive:p}):t.addEventListener(r,i,!1)}function cf(t,r,i,l,p){var y=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var D=l.tag;if(D===3||D===4){var U=l.stateNode.containerInfo;if(U===p)break;if(D===4)for(D=l.return;D!==null;){var $=D.tag;if(($===3||$===4)&&D.stateNode.containerInfo===p)return;D=D.return}for(;U!==null;){if(D=Ga(U),D===null)return;if($=D.tag,$===5||$===6||$===26||$===27){l=y=D;continue e}U=U.parentNode}}l=l.return}bp(function(){var le=y,ge=Nu(i),we=[];e:{var fe=Xp.get(t);if(fe!==void 0){var he=Ko,ze=t;switch(t){case"keypress":if(Wo(i)===0)break e;case"keydown":case"keyup":he=iS;break;case"focusin":ze="focus",he=Du;break;case"focusout":ze="blur",he=Du;break;case"beforeblur":case"afterblur":he=Du;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=jp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=X2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=cS;break;case Gp:case qp:case Yp:he=$2;break;case Wp:he=dS;break;case"scroll":case"scrollend":he=Y2;break;case"wheel":he=hS;break;case"copy":case"cut":case"paste":he=J2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=Tp;break;case"toggle":case"beforetoggle":he=pS}var Me=(r&4)!==0,tt=!Me&&(t==="scroll"||t==="scrollend"),ae=Me?fe!==null?fe+"Capture":null:fe;Me=[];for(var re=le,se;re!==null;){var ve=re;if(se=ve.stateNode,ve=ve.tag,ve!==5&&ve!==26&&ve!==27||se===null||ae===null||(ve=ei(re,ae),ve!=null&&Me.push(Pi(re,ve,se))),tt)break;re=re.return}0<Me.length&&(fe=new he(fe,ze,null,i,ge),we.push({event:fe,listeners:Me}))}}if((r&7)===0){e:{if(fe=t==="mouseover"||t==="pointerover",he=t==="mouseout"||t==="pointerout",fe&&i!==Eu&&(ze=i.relatedTarget||i.fromElement)&&(Ga(ze)||ze[Ia]))break e;if((he||fe)&&(fe=ge.window===ge?ge:(fe=ge.ownerDocument)?fe.defaultView||fe.parentWindow:window,he?(ze=i.relatedTarget||i.toElement,he=le,ze=ze?Ga(ze):null,ze!==null&&(tt=c(ze),Me=ze.tag,ze!==tt||Me!==5&&Me!==27&&Me!==6)&&(ze=null)):(he=null,ze=le),he!==ze)){if(Me=jp,ve="onMouseLeave",ae="onMouseEnter",re="mouse",(t==="pointerout"||t==="pointerover")&&(Me=Tp,ve="onPointerLeave",ae="onPointerEnter",re="pointer"),tt=he==null?fe:Js(he),se=ze==null?fe:Js(ze),fe=new Me(ve,re+"leave",he,i,ge),fe.target=tt,fe.relatedTarget=se,ve=null,Ga(ge)===le&&(Me=new Me(ae,re+"enter",ze,i,ge),Me.target=se,Me.relatedTarget=tt,ve=Me),tt=ve,he&&ze)t:{for(Me=he,ae=ze,re=0,se=Me;se;se=As(se))re++;for(se=0,ve=ae;ve;ve=As(ve))se++;for(;0<re-se;)Me=As(Me),re--;for(;0<se-re;)ae=As(ae),se--;for(;re--;){if(Me===ae||ae!==null&&Me===ae.alternate)break t;Me=As(Me),ae=As(ae)}Me=null}else Me=null;he!==null&&my(we,fe,he,Me,!1),ze!==null&&tt!==null&&my(we,tt,ze,Me,!0)}}e:{if(fe=le?Js(le):window,he=fe.nodeName&&fe.nodeName.toLowerCase(),he==="select"||he==="input"&&fe.type==="file")var _e=Dp;else if(Rp(fe))if(Mp)_e=TS;else{_e=jS;var Ge=SS}else he=fe.nodeName,!he||he.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?le&&Tu(le.elementType)&&(_e=Dp):_e=AS;if(_e&&(_e=_e(t,le))){Cp(we,_e,i,ge);break e}Ge&&Ge(t,fe,le),t==="focusout"&&le&&fe.type==="number"&&le.memoizedProps.value!=null&&Au(fe,"number",fe.value)}switch(Ge=le?Js(le):window,t){case"focusin":(Rp(Ge)||Ge.contentEditable==="true")&&(es=Ge,Uu=le,li=null);break;case"focusout":li=Uu=es=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Hp(we,i,ge);break;case"selectionchange":if(NS)break;case"keydown":case"keyup":Hp(we,i,ge)}var De;if(Lu)e:{switch(t){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else Ja?_p(t,i)&&(Pe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Pe="onCompositionStart");Pe&&(Ep&&i.locale!=="ko"&&(Ja||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&Ja&&(De=wp()):(Rr=ge,Ou="value"in Rr?Rr.value:Rr.textContent,Ja=!0)),Ge=Pl(le,Pe),0<Ge.length&&(Pe=new Ap(Pe,t,null,i,ge),we.push({event:Pe,listeners:Ge}),De?Pe.data=De:(De=Op(i),De!==null&&(Pe.data=De)))),(De=yS?xS(t,i):vS(t,i))&&(Pe=Pl(le,"onBeforeInput"),0<Pe.length&&(Ge=new Ap("onBeforeInput","beforeinput",null,i,ge),we.push({event:Ge,listeners:Pe}),Ge.data=De)),cj(we,t,le,i,ge)}fy(we,r)})}function Pi(t,r,i){return{instance:t,listener:r,currentTarget:i}}function Pl(t,r){for(var i=r+"Capture",l=[];t!==null;){var p=t,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=ei(t,i),p!=null&&l.unshift(Pi(t,p,y)),p=ei(t,r),p!=null&&l.push(Pi(t,p,y))),t.tag===3)return l;t=t.return}return[]}function As(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function my(t,r,i,l,p){for(var y=r._reactName,D=[];i!==null&&i!==l;){var U=i,$=U.alternate,le=U.stateNode;if(U=U.tag,$!==null&&$===l)break;U!==5&&U!==26&&U!==27||le===null||($=le,p?(le=ei(i,y),le!=null&&D.unshift(Pi(i,le,$))):p||(le=ei(i,y),le!=null&&D.push(Pi(i,le,$)))),i=i.return}D.length!==0&&t.push({event:r,listeners:D})}var hj=/\r\n?/g,mj=/\u0000|\uFFFD/g;function py(t){return(typeof t=="string"?t:""+t).replace(hj,`
`).replace(mj,"")}function gy(t,r){return r=py(r),py(t)===r}function zl(){}function et(t,r,i,l,p,y){switch(i){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||Za(t,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&Za(t,""+l);break;case"className":Ho(t,"class",l);break;case"tabIndex":Ho(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ho(t,i,l);break;case"style":xp(t,l,y);break;case"data":if(r!=="object"){Ho(t,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=qo(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(i==="formAction"?(r!=="input"&&et(t,r,"name",p.name,p,null),et(t,r,"formEncType",p.formEncType,p,null),et(t,r,"formMethod",p.formMethod,p,null),et(t,r,"formTarget",p.formTarget,p,null)):(et(t,r,"encType",p.encType,p,null),et(t,r,"method",p.method,p,null),et(t,r,"target",p.target,p,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=qo(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=zl);break;case"onScroll":l!=null&&Ye("scroll",t);break;case"onScrollEnd":l!=null&&Ye("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(p.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=qo(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":Ye("beforetoggle",t),Ye("toggle",t),Vo(t,"popover",l);break;case"xlinkActuate":sr(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sr(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sr(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sr(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sr(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sr(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sr(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vo(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=G2.get(i)||i,Vo(t,i,l))}}function uf(t,r,i,l,p,y){switch(i){case"style":xp(t,l,y);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(p.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof l=="string"?Za(t,l):(typeof l=="number"||typeof l=="bigint")&&Za(t,""+l);break;case"onScroll":l!=null&&Ye("scroll",t);break;case"onScrollEnd":l!=null&&Ye("scrollend",t);break;case"onClick":l!=null&&(t.onclick=zl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!op.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(p=i.endsWith("Capture"),r=i.slice(2,p?i.length-7:void 0),y=t[Zt]||null,y=y!=null?y[i]:null,typeof y=="function"&&t.removeEventListener(r,y,p),typeof l=="function")){typeof y!="function"&&y!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,l,p);break e}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Vo(t,i,l)}}}function Pt(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",t),Ye("load",t);var l=!1,p=!1,y;for(y in i)if(i.hasOwnProperty(y)){var D=i[y];if(D!=null)switch(y){case"src":l=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:et(t,r,y,D,i,null)}}p&&et(t,r,"srcSet",i.srcSet,i,null),l&&et(t,r,"src",i.src,i,null);return;case"input":Ye("invalid",t);var U=y=D=p=null,$=null,le=null;for(l in i)if(i.hasOwnProperty(l)){var ge=i[l];if(ge!=null)switch(l){case"name":p=ge;break;case"type":D=ge;break;case"checked":$=ge;break;case"defaultChecked":le=ge;break;case"value":y=ge;break;case"defaultValue":U=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(s(137,r));break;default:et(t,r,l,ge,i,null)}}mp(t,y,U,$,le,D,p,!1),Io(t);return;case"select":Ye("invalid",t),l=D=y=null;for(p in i)if(i.hasOwnProperty(p)&&(U=i[p],U!=null))switch(p){case"value":y=U;break;case"defaultValue":D=U;break;case"multiple":l=U;default:et(t,r,p,U,i,null)}r=y,i=D,t.multiple=!!l,r!=null?Ka(t,!!l,r,!1):i!=null&&Ka(t,!!l,i,!0);return;case"textarea":Ye("invalid",t),y=p=l=null;for(D in i)if(i.hasOwnProperty(D)&&(U=i[D],U!=null))switch(D){case"value":l=U;break;case"defaultValue":p=U;break;case"children":y=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(91));break;default:et(t,r,D,U,i,null)}gp(t,l,p,y),Io(t);return;case"option":for($ in i)if(i.hasOwnProperty($)&&(l=i[$],l!=null))switch($){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:et(t,r,$,l,i,null)}return;case"dialog":Ye("beforetoggle",t),Ye("toggle",t),Ye("cancel",t),Ye("close",t);break;case"iframe":case"object":Ye("load",t);break;case"video":case"audio":for(l=0;l<Li.length;l++)Ye(Li[l],t);break;case"image":Ye("error",t),Ye("load",t);break;case"details":Ye("toggle",t);break;case"embed":case"source":case"link":Ye("error",t),Ye("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in i)if(i.hasOwnProperty(le)&&(l=i[le],l!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:et(t,r,le,l,i,null)}return;default:if(Tu(r)){for(ge in i)i.hasOwnProperty(ge)&&(l=i[ge],l!==void 0&&uf(t,r,ge,l,i,void 0));return}}for(U in i)i.hasOwnProperty(U)&&(l=i[U],l!=null&&et(t,r,U,l,i,null))}function pj(t,r,i,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,D=null,U=null,$=null,le=null,ge=null;for(he in i){var we=i[he];if(i.hasOwnProperty(he)&&we!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":$=we;default:l.hasOwnProperty(he)||et(t,r,he,null,l,we)}}for(var fe in l){var he=l[fe];if(we=i[fe],l.hasOwnProperty(fe)&&(he!=null||we!=null))switch(fe){case"type":y=he;break;case"name":p=he;break;case"checked":le=he;break;case"defaultChecked":ge=he;break;case"value":D=he;break;case"defaultValue":U=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(s(137,r));break;default:he!==we&&et(t,r,fe,he,l,we)}}ju(t,D,U,$,le,ge,y,p);return;case"select":he=D=U=fe=null;for(y in i)if($=i[y],i.hasOwnProperty(y)&&$!=null)switch(y){case"value":break;case"multiple":he=$;default:l.hasOwnProperty(y)||et(t,r,y,null,l,$)}for(p in l)if(y=l[p],$=i[p],l.hasOwnProperty(p)&&(y!=null||$!=null))switch(p){case"value":fe=y;break;case"defaultValue":U=y;break;case"multiple":D=y;default:y!==$&&et(t,r,p,y,l,$)}r=U,i=D,l=he,fe!=null?Ka(t,!!i,fe,!1):!!l!=!!i&&(r!=null?Ka(t,!!i,r,!0):Ka(t,!!i,i?[]:"",!1));return;case"textarea":he=fe=null;for(U in i)if(p=i[U],i.hasOwnProperty(U)&&p!=null&&!l.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:et(t,r,U,null,l,p)}for(D in l)if(p=l[D],y=i[D],l.hasOwnProperty(D)&&(p!=null||y!=null))switch(D){case"value":fe=p;break;case"defaultValue":he=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:p!==y&&et(t,r,D,p,l,y)}pp(t,fe,he);return;case"option":for(var ze in i)if(fe=i[ze],i.hasOwnProperty(ze)&&fe!=null&&!l.hasOwnProperty(ze))switch(ze){case"selected":t.selected=!1;break;default:et(t,r,ze,null,l,fe)}for($ in l)if(fe=l[$],he=i[$],l.hasOwnProperty($)&&fe!==he&&(fe!=null||he!=null))switch($){case"selected":t.selected=fe&&typeof fe!="function"&&typeof fe!="symbol";break;default:et(t,r,$,fe,l,he)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Me in i)fe=i[Me],i.hasOwnProperty(Me)&&fe!=null&&!l.hasOwnProperty(Me)&&et(t,r,Me,null,l,fe);for(le in l)if(fe=l[le],he=i[le],l.hasOwnProperty(le)&&fe!==he&&(fe!=null||he!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(s(137,r));break;default:et(t,r,le,fe,l,he)}return;default:if(Tu(r)){for(var tt in i)fe=i[tt],i.hasOwnProperty(tt)&&fe!==void 0&&!l.hasOwnProperty(tt)&&uf(t,r,tt,void 0,l,fe);for(ge in l)fe=l[ge],he=i[ge],!l.hasOwnProperty(ge)||fe===he||fe===void 0&&he===void 0||uf(t,r,ge,fe,l,he);return}}for(var ae in i)fe=i[ae],i.hasOwnProperty(ae)&&fe!=null&&!l.hasOwnProperty(ae)&&et(t,r,ae,null,l,fe);for(we in l)fe=l[we],he=i[we],!l.hasOwnProperty(we)||fe===he||fe==null&&he==null||et(t,r,we,fe,l,he)}var df=null,ff=null;function Fl(t){return t.nodeType===9?t:t.ownerDocument}function yy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xy(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function hf(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var mf=null;function gj(){var t=window.event;return t&&t.type==="popstate"?t===mf?!1:(mf=t,!0):(mf=null,!1)}var vy=typeof setTimeout=="function"?setTimeout:void 0,yj=typeof clearTimeout=="function"?clearTimeout:void 0,by=typeof Promise=="function"?Promise:void 0,xj=typeof queueMicrotask=="function"?queueMicrotask:typeof by<"u"?function(t){return by.resolve(null).then(t).catch(vj)}:vy;function vj(t){setTimeout(function(){throw t})}function Wr(t){return t==="head"}function wy(t,r){var i=r,l=0,p=0;do{var y=i.nextSibling;if(t.removeChild(i),y&&y.nodeType===8)if(i=y.data,i==="/$"){if(0<l&&8>l){i=l;var D=t.ownerDocument;if(i&1&&zi(D.documentElement),i&2&&zi(D.body),i&4)for(i=D.head,zi(i),D=i.firstChild;D;){var U=D.nextSibling,$=D.nodeName;D[Qs]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&D.rel.toLowerCase()==="stylesheet"||i.removeChild(D),D=U}}if(p===0){t.removeChild(y),qi(r);return}p--}else i==="$"||i==="$?"||i==="$!"?p++:l=i.charCodeAt(0)-48;else l=0;i=y}while(i);qi(r)}function pf(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":pf(i),vu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function bj(t,r,i,l){for(;t.nodeType===1;){var p=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Qs])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(y=t.getAttribute("rel"),y==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(y!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(y=t.getAttribute("src"),(y!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===y)return t}else return t;if(t=Bn(t.nextSibling),t===null)break}return null}function wj(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Bn(t.nextSibling),t===null))return null;return t}function gf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function Sj(t,r){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")r();else{var l=function(){r(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Bn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var yf=null;function Sy(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(r===0)return t;r--}else i==="/$"&&r++}t=t.previousSibling}return null}function jy(t,r,i){switch(r=Fl(i),t){case"html":if(t=r.documentElement,!t)throw Error(s(452));return t;case"head":if(t=r.head,!t)throw Error(s(453));return t;case"body":if(t=r.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function zi(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);vu(t)}var En=new Map,Ay=new Set;function Ul(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vr=w.d;w.d={f:jj,r:Aj,D:Tj,C:Ej,L:Nj,m:kj,X:Oj,S:_j,M:Rj};function jj(){var t=vr.f(),r=Ol();return t||r}function Aj(t){var r=qa(t);r!==null&&r.tag===5&&r.type==="form"?Gg(r):vr.r(t)}var Ts=typeof document>"u"?null:document;function Ty(t,r,i){var l=Ts;if(l&&typeof r=="string"&&r){var p=vn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof i=="string"&&(p+='[crossorigin="'+i+'"]'),Ay.has(p)||(Ay.add(p),t={rel:t,crossOrigin:i,href:r},l.querySelector(p)===null&&(r=l.createElement("link"),Pt(r,"link",t),Ot(r),l.head.appendChild(r)))}}function Tj(t){vr.D(t),Ty("dns-prefetch",t,null)}function Ej(t,r){vr.C(t,r),Ty("preconnect",t,r)}function Nj(t,r,i){vr.L(t,r,i);var l=Ts;if(l&&t&&r){var p='link[rel="preload"][as="'+vn(r)+'"]';r==="image"&&i&&i.imageSrcSet?(p+='[imagesrcset="'+vn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(p+='[imagesizes="'+vn(i.imageSizes)+'"]')):p+='[href="'+vn(t)+'"]';var y=p;switch(r){case"style":y=Es(t);break;case"script":y=Ns(t)}En.has(y)||(t=g({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),En.set(y,t),l.querySelector(p)!==null||r==="style"&&l.querySelector(Fi(y))||r==="script"&&l.querySelector(Ui(y))||(r=l.createElement("link"),Pt(r,"link",t),Ot(r),l.head.appendChild(r)))}}function kj(t,r){vr.m(t,r);var i=Ts;if(i&&t){var l=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+vn(l)+'"][href="'+vn(t)+'"]',y=p;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ns(t)}if(!En.has(y)&&(t=g({rel:"modulepreload",href:t},r),En.set(y,t),i.querySelector(p)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ui(y)))return}l=i.createElement("link"),Pt(l,"link",t),Ot(l),i.head.appendChild(l)}}}function _j(t,r,i){vr.S(t,r,i);var l=Ts;if(l&&t){var p=Ya(l).hoistableStyles,y=Es(t);r=r||"default";var D=p.get(y);if(!D){var U={loading:0,preload:null};if(D=l.querySelector(Fi(y)))U.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":r},i),(i=En.get(y))&&xf(t,i);var $=D=l.createElement("link");Ot($),Pt($,"link",t),$._p=new Promise(function(le,ge){$.onload=le,$.onerror=ge}),$.addEventListener("load",function(){U.loading|=1}),$.addEventListener("error",function(){U.loading|=2}),U.loading|=4,Bl(D,r,l)}D={type:"stylesheet",instance:D,count:1,state:U},p.set(y,D)}}}function Oj(t,r){vr.X(t,r);var i=Ts;if(i&&t){var l=Ya(i).hoistableScripts,p=Ns(t),y=l.get(p);y||(y=i.querySelector(Ui(p)),y||(t=g({src:t,async:!0},r),(r=En.get(p))&&vf(t,r),y=i.createElement("script"),Ot(y),Pt(y,"link",t),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},l.set(p,y))}}function Rj(t,r){vr.M(t,r);var i=Ts;if(i&&t){var l=Ya(i).hoistableScripts,p=Ns(t),y=l.get(p);y||(y=i.querySelector(Ui(p)),y||(t=g({src:t,async:!0,type:"module"},r),(r=En.get(p))&&vf(t,r),y=i.createElement("script"),Ot(y),Pt(y,"link",t),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},l.set(p,y))}}function Ey(t,r,i,l){var p=(p=ie.current)?Ul(p):null;if(!p)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=Es(i.href),i=Ya(p).hoistableStyles,l=i.get(r),l||(l={type:"style",instance:null,count:0,state:null},i.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Es(i.href);var y=Ya(p).hoistableStyles,D=y.get(t);if(D||(p=p.ownerDocument||p,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(t,D),(y=p.querySelector(Fi(t)))&&!y._p&&(D.instance=y,D.state.loading=5),En.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},En.set(t,i),y||Cj(p,t,i,D.state))),r&&l===null)throw Error(s(528,""));return D}if(r&&l!==null)throw Error(s(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Ns(i),i=Ya(p).hoistableScripts,l=i.get(r),l||(l={type:"script",instance:null,count:0,state:null},i.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Es(t){return'href="'+vn(t)+'"'}function Fi(t){return'link[rel="stylesheet"]['+t+"]"}function Ny(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function Cj(t,r,i,l){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=t.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),Pt(r,"link",i),Ot(r),t.head.appendChild(r))}function Ns(t){return'[src="'+vn(t)+'"]'}function Ui(t){return"script[async]"+t}function ky(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var l=t.querySelector('style[data-href~="'+vn(i.href)+'"]');if(l)return r.instance=l,Ot(l),l;var p=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Ot(l),Pt(l,"style",p),Bl(l,i.precedence,t),r.instance=l;case"stylesheet":p=Es(i.href);var y=t.querySelector(Fi(p));if(y)return r.state.loading|=4,r.instance=y,Ot(y),y;l=Ny(i),(p=En.get(p))&&xf(l,p),y=(t.ownerDocument||t).createElement("link"),Ot(y);var D=y;return D._p=new Promise(function(U,$){D.onload=U,D.onerror=$}),Pt(y,"link",l),r.state.loading|=4,Bl(y,i.precedence,t),r.instance=y;case"script":return y=Ns(i.src),(p=t.querySelector(Ui(y)))?(r.instance=p,Ot(p),p):(l=i,(p=En.get(y))&&(l=g({},i),vf(l,p)),t=t.ownerDocument||t,p=t.createElement("script"),Ot(p),Pt(p,"link",l),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,Bl(l,i.precedence,t));return r.instance}function Bl(t,r,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=l.length?l[l.length-1]:null,y=p,D=0;D<l.length;D++){var U=l[D];if(U.dataset.precedence===r)y=U;else if(y!==p)break}y?y.parentNode.insertBefore(t,y.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function xf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function vf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Vl=null;function _y(t,r,i){if(Vl===null){var l=new Map,p=Vl=new Map;p.set(i,l)}else p=Vl,l=p.get(i),l||(l=new Map,p.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),p=0;p<i.length;p++){var y=i[p];if(!(y[Qs]||y[Ut]||t==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var D=y.getAttribute(r)||"";D=t+D;var U=l.get(D);U?U.push(y):l.set(D,[y])}}return l}function Oy(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function Dj(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Ry(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Bi=null;function Mj(){}function Lj(t,r,i){if(Bi===null)throw Error(s(475));var l=Bi;if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var p=Es(i.href),y=t.querySelector(Fi(p));if(y){t=y._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Hl.bind(l),t.then(l,l)),r.state.loading|=4,r.instance=y,Ot(y);return}y=t.ownerDocument||t,i=Ny(i),(p=En.get(p))&&xf(i,p),y=y.createElement("link"),Ot(y);var D=y;D._p=new Promise(function(U,$){D.onload=U,D.onerror=$}),Pt(y,"link",i),r.instance=y}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(l.count++,r=Hl.bind(l),t.addEventListener("load",r),t.addEventListener("error",r))}}function Pj(){if(Bi===null)throw Error(s(475));var t=Bi;return t.stylesheets&&t.count===0&&bf(t,t.stylesheets),0<t.count?function(r){var i=setTimeout(function(){if(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(i)}}:null}function Hl(){if(this.count--,this.count===0){if(this.stylesheets)bf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Il=null;function bf(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Il=new Map,r.forEach(zj,t),Il=null,Hl.call(t))}function zj(t,r){if(!(r.state.loading&4)){var i=Il.get(t);if(i)var l=i.get(null);else{i=new Map,Il.set(t,i);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var D=p[y];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(i.set(D.dataset.precedence,D),l=D)}l&&i.set(null,l)}p=r.instance,D=p.getAttribute("data-precedence"),y=i.get(D)||l,y===l&&i.set(null,p),i.set(D,p),this.count++,l=Hl.bind(this),p.addEventListener("load",l),p.addEventListener("error",l),y?y.parentNode.insertBefore(p,y.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var Vi={$$typeof:L,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function Fj(t,r,i,l,p,y,D,U){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Va(0),this.hiddenUpdates=Va(null),this.identifierPrefix=l,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function Cy(t,r,i,l,p,y,D,U,$,le,ge,we){return t=new Fj(t,r,i,D,U,$,le,we),r=1,y===!0&&(r|=24),y=on(3,null,null,r),t.current=y,y.stateNode=t,r=ed(),r.refCount++,t.pooledCache=r,r.refCount++,y.memoizedState={element:l,isDehydrated:i,cache:r},ad(y),t}function Dy(t){return t?(t=as,t):as}function My(t,r,i,l,p,y){p=Dy(p),l.context===null?l.context=p:l.pendingContext=p,l=Mr(r),l.payload={element:i},y=y===void 0?null:y,y!==null&&(l.callback=y),i=Lr(t,l,r),i!==null&&(fn(i,t,r),yi(i,t,r))}function Ly(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function wf(t,r){Ly(t,r),(t=t.alternate)&&Ly(t,r)}function Py(t){if(t.tag===13){var r=rs(t,67108864);r!==null&&fn(r,t,67108864),wf(t,67108864)}}var Gl=!0;function Uj(t,r,i,l){var p=X.T;X.T=null;var y=w.p;try{w.p=2,Sf(t,r,i,l)}finally{w.p=y,X.T=p}}function Bj(t,r,i,l){var p=X.T;X.T=null;var y=w.p;try{w.p=8,Sf(t,r,i,l)}finally{w.p=y,X.T=p}}function Sf(t,r,i,l){if(Gl){var p=jf(l);if(p===null)cf(t,r,l,ql,i),Fy(t,l);else if(Hj(p,t,r,i,l))l.stopPropagation();else if(Fy(t,l),r&4&&-1<Vj.indexOf(t)){for(;p!==null;){var y=qa(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var D=Pn(y.pendingLanes);if(D!==0){var U=y;for(U.pendingLanes|=2,U.entangledLanes|=2;D;){var $=1<<31-He(D);U.entanglements[1]|=$,D&=~$}Jn(y),($e&6)===0&&(kl=q()+500,Mi(0))}}break;case 13:U=rs(y,2),U!==null&&fn(U,y,2),Ol(),wf(y,2)}if(y=jf(l),y===null&&cf(t,r,l,ql,i),y===p)break;p=y}p!==null&&l.stopPropagation()}else cf(t,r,l,null,i)}}function jf(t){return t=Nu(t),Af(t)}var ql=null;function Af(t){if(ql=null,t=Ga(t),t!==null){var r=c(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=d(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return ql=t,null}function zy(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Y()){case te:return 2;case pe:return 8;case ye:case oe:return 32;case je:return 268435456;default:return 32}default:return 32}}var Tf=!1,Xr=null,Kr=null,Zr=null,Hi=new Map,Ii=new Map,$r=[],Vj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fy(t,r){switch(t){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Kr=null;break;case"mouseover":case"mouseout":Zr=null;break;case"pointerover":case"pointerout":Hi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(r.pointerId)}}function Gi(t,r,i,l,p,y){return t===null||t.nativeEvent!==y?(t={blockedOn:r,domEventName:i,eventSystemFlags:l,nativeEvent:y,targetContainers:[p]},r!==null&&(r=qa(r),r!==null&&Py(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function Hj(t,r,i,l,p){switch(r){case"focusin":return Xr=Gi(Xr,t,r,i,l,p),!0;case"dragenter":return Kr=Gi(Kr,t,r,i,l,p),!0;case"mouseover":return Zr=Gi(Zr,t,r,i,l,p),!0;case"pointerover":var y=p.pointerId;return Hi.set(y,Gi(Hi.get(y)||null,t,r,i,l,p)),!0;case"gotpointercapture":return y=p.pointerId,Ii.set(y,Gi(Ii.get(y)||null,t,r,i,l,p)),!0}return!1}function Uy(t){var r=Ga(t.target);if(r!==null){var i=c(r);if(i!==null){if(r=i.tag,r===13){if(r=d(i),r!==null){t.blockedOn=r,L2(t.priority,function(){if(i.tag===13){var l=dn();l=gu(l);var p=rs(i,l);p!==null&&fn(p,i,l),wf(i,l)}});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Yl(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=jf(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Eu=l,i.target.dispatchEvent(l),Eu=null}else return r=qa(i),r!==null&&Py(r),t.blockedOn=i,!1;r.shift()}return!0}function By(t,r,i){Yl(t)&&i.delete(r)}function Ij(){Tf=!1,Xr!==null&&Yl(Xr)&&(Xr=null),Kr!==null&&Yl(Kr)&&(Kr=null),Zr!==null&&Yl(Zr)&&(Zr=null),Hi.forEach(By),Ii.forEach(By)}function Wl(t,r){t.blockedOn===r&&(t.blockedOn=null,Tf||(Tf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ij)))}var Xl=null;function Vy(t){Xl!==t&&(Xl=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Xl===t&&(Xl=null);for(var r=0;r<t.length;r+=3){var i=t[r],l=t[r+1],p=t[r+2];if(typeof l!="function"){if(Af(l||i)===null)continue;break}var y=qa(i);y!==null&&(t.splice(r,3),r-=3,jd(y,{pending:!0,data:p,method:i.method,action:l},l,p))}}))}function qi(t){function r($){return Wl($,t)}Xr!==null&&Wl(Xr,t),Kr!==null&&Wl(Kr,t),Zr!==null&&Wl(Zr,t),Hi.forEach(r),Ii.forEach(r);for(var i=0;i<$r.length;i++){var l=$r[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<$r.length&&(i=$r[0],i.blockedOn===null);)Uy(i),i.blockedOn===null&&$r.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var p=i[l],y=i[l+1],D=p[Zt]||null;if(typeof y=="function")D||Vy(i);else if(D){var U=null;if(y&&y.hasAttribute("formAction")){if(p=y,D=y[Zt]||null)U=D.formAction;else if(Af(p)!==null)continue}else U=D.action;typeof U=="function"?i[l+1]=U:(i.splice(l,3),l-=3),Vy(i)}}}function Ef(t){this._internalRoot=t}Kl.prototype.render=Ef.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current,l=dn();My(i,l,t,r,null,null)},Kl.prototype.unmount=Ef.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;My(t.current,2,null,t,null,null),Ol(),r[Ia]=null}};function Kl(t){this._internalRoot=t}Kl.prototype.unstable_scheduleHydration=function(t){if(t){var r=ap();t={blockedOn:null,target:t,priority:r};for(var i=0;i<$r.length&&r!==0&&r<$r[i].priority;i++);$r.splice(i,0,t),i===0&&Uy(t)}};var Hy=n.version;if(Hy!=="19.1.0")throw Error(s(527,Hy,"19.1.0"));w.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=h(r),t=t!==null?m(t):null,t=t===null?null:t.stateNode,t};var Gj={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zl.isDisabled&&Zl.supportsFiber)try{xe=Zl.inject(Gj),ke=Zl}catch{}}return Wi.createRoot=function(t,r){if(!o(t))throw Error(s(299));var i=!1,l="",p=a0,y=s0,D=i0,U=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(D=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(U=r.unstable_transitionCallbacks)),r=Cy(t,1,!1,null,null,i,l,p,y,D,U,null),t[Ia]=r.current,lf(t),new Ef(r)},Wi.hydrateRoot=function(t,r,i){if(!o(t))throw Error(s(299));var l=!1,p="",y=a0,D=s0,U=i0,$=null,le=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(y=i.onUncaughtError),i.onCaughtError!==void 0&&(D=i.onCaughtError),i.onRecoverableError!==void 0&&(U=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&($=i.unstable_transitionCallbacks),i.formState!==void 0&&(le=i.formState)),r=Cy(t,1,!0,r,i??null,l,p,y,D,U,$,le),r.context=Dy(null),i=r.current,l=dn(),l=gu(l),p=Mr(l),p.callback=null,Lr(i,p,l),i=l,r.current.lanes=i,zn(r,i),Jn(r),t[Ia]=r.current,lf(t),new Kl(r)},Wi.version="19.1.0",Wi}var Qy;function tA(){if(Qy)return _f.exports;Qy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),_f.exports=eA(),_f.exports}var nA=tA(),Df={exports:{}},Mf={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Jy;function rA(){if(Jy)return Mf;Jy=1;var e=Dn();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var a=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,o=e.useRef,c=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Mf.useSyncExternalStoreWithSelector=function(h,m,g,x,b){var A=o(null);if(A.current===null){var k={hasValue:!1,value:null};A.current=k}else k=A.current;A=d(function(){function E(N){if(!T){if(T=!0,C=N,N=x(N),b!==void 0&&k.hasValue){var z=k.value;if(b(z,N))return L=z}return L=N}if(z=L,a(C,N))return z;var B=x(N);return b!==void 0&&b(z,B)?(C=N,z):(C=N,L=B)}var T=!1,C,L,G=g===void 0?null:g;return[function(){return E(m())},G===null?void 0:function(){return E(G())}]},[m,g,x,b]);var S=s(h,A[0],A[1]);return c(function(){k.hasValue=!0,k.value=S},[S]),f(S),S},Mf}var ex;function aA(){return ex||(ex=1,Df.exports=rA()),Df.exports}var sA=aA();function iA(e){e()}function oA(){let e=null,n=null;return{clear(){e=null,n=null},notify(){iA(()=>{let a=e;for(;a;)a.callback(),a=a.next})},get(){const a=[];let s=e;for(;s;)a.push(s),s=s.next;return a},subscribe(a){let s=!0;const o=n={callback:a,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){!s||e===null||(s=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var tx={notify(){},get:()=>[]};function lA(e,n){let a,s=tx,o=0,c=!1;function d(S){g();const E=s.subscribe(S);let T=!1;return()=>{T||(T=!0,E(),x())}}function f(){s.notify()}function h(){k.onStateChange&&k.onStateChange()}function m(){return c}function g(){o++,a||(a=e.subscribe(h),s=oA())}function x(){o--,a&&o===0&&(a(),a=void 0,s.clear(),s=tx)}function b(){c||(c=!0,g())}function A(){c&&(c=!1,x())}const k={addNestedSub:d,notifyNestedSubs:f,handleChangeWrapper:h,isSubscribed:m,trySubscribe:b,tryUnsubscribe:A,getListeners:()=>s};return k}var cA=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uA=cA(),dA=()=>typeof navigator<"u"&&navigator.product==="ReactNative",fA=dA(),hA=()=>uA||fA?W.useLayoutEffect:W.useEffect,mA=hA(),pA=Symbol.for("react-redux-context"),gA=typeof globalThis<"u"?globalThis:{};function yA(){if(!W.createContext)return{};const e=gA[pA]??=new Map;let n=e.get(W.createContext);return n||(n=W.createContext(null),e.set(W.createContext,n)),n}var ta=yA();function xA(e){const{children:n,context:a,serverState:s,store:o}=e,c=W.useMemo(()=>{const h=lA(o);return{store:o,subscription:h,getServerState:s?()=>s:void 0}},[o,s]),d=W.useMemo(()=>o.getState(),[o]);mA(()=>{const{subscription:h}=c;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[c,d]);const f=a||ta;return W.createElement(f.Provider,{value:c},n)}var vA=xA;function cm(e=ta){return function(){return W.useContext(e)}}var bb=cm();function wb(e=ta){const n=e===ta?bb:cm(e),a=()=>{const{store:s}=n();return s};return Object.assign(a,{withTypes:()=>a}),a}var bA=wb();function wA(e=ta){const n=e===ta?bA:wb(e),a=()=>n().dispatch;return Object.assign(a,{withTypes:()=>a}),a}var Gn=wA(),SA=(e,n)=>e===n;function jA(e=ta){const n=e===ta?bb:cm(e),a=(s,o={})=>{const{equalityFn:c=SA}=typeof o=="function"?{equalityFn:o}:o,d=n(),{store:f,subscription:h,getServerState:m}=d;W.useRef(!0);const g=W.useCallback({[s.name](b){return s(b)}}[s.name],[s]),x=sA.useSyncExternalStoreWithSelector(h.addNestedSub,f.getState,m||f.getState,g,c);return W.useDebugValue(x),x};return Object.assign(a,{withTypes:()=>a}),a}var We=jA();let AA={data:""},TA=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||AA,EA=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,NA=/\/\*[^]*?\*\/|  +/g,nx=/\n+/g,ea=(e,n)=>{let a="",s="",o="";for(let c in e){let d=e[c];c[0]=="@"?c[1]=="i"?a=c+" "+d+";":s+=c[1]=="f"?ea(d,c):c+"{"+ea(d,c[1]=="k"?"":n)+"}":typeof d=="object"?s+=ea(d,n?n.replace(/([^,])+/g,f=>c.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,f):f?f+" "+h:h)):c):d!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ea.p?ea.p(c,d):c+":"+d+";")}return a+(n&&o?n+"{"+o+"}":o)+s},br={},Sb=e=>{if(typeof e=="object"){let n="";for(let a in e)n+=a+Sb(e[a]);return n}return e},kA=(e,n,a,s,o)=>{let c=Sb(e),d=br[c]||(br[c]=(h=>{let m=0,g=11;for(;m<h.length;)g=101*g+h.charCodeAt(m++)>>>0;return"go"+g})(c));if(!br[d]){let h=c!==e?e:(m=>{let g,x,b=[{}];for(;g=EA.exec(m.replace(NA,""));)g[4]?b.shift():g[3]?(x=g[3].replace(nx," ").trim(),b.unshift(b[0][x]=b[0][x]||{})):b[0][g[1]]=g[2].replace(nx," ").trim();return b[0]})(e);br[d]=ea(o?{["@keyframes "+d]:h}:h,a?"":"."+d)}let f=a&&br.g?br.g:null;return a&&(br.g=br[d]),((h,m,g,x)=>{x?m.data=m.data.replace(x,h):m.data.indexOf(h)===-1&&(m.data=g?h+m.data:m.data+h)})(br[d],n,s,f),d},_A=(e,n,a)=>e.reduce((s,o,c)=>{let d=n[c];if(d&&d.call){let f=d(a),h=f&&f.props&&f.props.className||/^go/.test(f)&&f;d=h?"."+h:f&&typeof f=="object"?f.props?"":ea(f,""):f===!1?"":f}return s+o+(d??"")},"");function qc(e){let n=this||{},a=e.call?e(n.p):e;return kA(a.unshift?a.raw?_A(a,[].slice.call(arguments,1),n.p):a.reduce((s,o)=>Object.assign(s,o&&o.call?o(n.p):o),{}):a,TA(n.target),n.g,n.o,n.k)}let jb,wh,Sh;qc.bind({g:1});let jr=qc.bind({k:1});function OA(e,n,a,s){ea.p=n,jb=e,wh=a,Sh=s}function sa(e,n){let a=this||{};return function(){let s=arguments;function o(c,d){let f=Object.assign({},c),h=f.className||o.className;a.p=Object.assign({theme:wh&&wh()},f),a.o=/ *go\d+/.test(h),f.className=qc.apply(a,s)+(h?" "+h:"");let m=e;return e[0]&&(m=f.as||e,delete f.as),Sh&&m[0]&&Sh(f),jb(m,f)}return o}}var RA=e=>typeof e=="function",Ec=(e,n)=>RA(e)?e(n):e,CA=(()=>{let e=0;return()=>(++e).toString()})(),Ab=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),DA=20,Tb=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,DA)};case 1:return{...e,toasts:e.toasts.map(c=>c.id===n.toast.id?{...c,...n.toast}:c)};case 2:let{toast:a}=n;return Tb(e,{type:e.toasts.find(c=>c.id===a.id)?1:0,toast:a});case 3:let{toastId:s}=n;return{...e,toasts:e.toasts.map(c=>c.id===s||s===void 0?{...c,dismissed:!0,visible:!1}:c)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let o=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+o}))}}},oc=[],_a={toasts:[],pausedAt:void 0},Ba=e=>{_a=Tb(_a,e),oc.forEach(n=>{n(_a)})},MA={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},LA=(e={})=>{let[n,a]=W.useState(_a),s=W.useRef(_a);W.useEffect(()=>(s.current!==_a&&a(_a),oc.push(a),()=>{let c=oc.indexOf(a);c>-1&&oc.splice(c,1)}),[]);let o=n.toasts.map(c=>{var d,f,h;return{...e,...e[c.type],...c,removeDelay:c.removeDelay||((d=e[c.type])==null?void 0:d.removeDelay)||e?.removeDelay,duration:c.duration||((f=e[c.type])==null?void 0:f.duration)||e?.duration||MA[c.type],style:{...e.style,...(h=e[c.type])==null?void 0:h.style,...c.style}}});return{...n,toasts:o}},PA=(e,n="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:a?.id||CA()}),Eo=e=>(n,a)=>{let s=PA(n,e,a);return Ba({type:2,toast:s}),s.id},Yt=(e,n)=>Eo("blank")(e,n);Yt.error=Eo("error");Yt.success=Eo("success");Yt.loading=Eo("loading");Yt.custom=Eo("custom");Yt.dismiss=e=>{Ba({type:3,toastId:e})};Yt.remove=e=>Ba({type:4,toastId:e});Yt.promise=(e,n,a)=>{let s=Yt.loading(n.loading,{...a,...a?.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let c=n.success?Ec(n.success,o):void 0;return c?Yt.success(c,{id:s,...a,...a?.success}):Yt.dismiss(s),o}).catch(o=>{let c=n.error?Ec(n.error,o):void 0;c?Yt.error(c,{id:s,...a,...a?.error}):Yt.dismiss(s)}),e};var zA=(e,n)=>{Ba({type:1,toast:{id:e,height:n}})},FA=()=>{Ba({type:5,time:Date.now()})},so=new Map,UA=1e3,BA=(e,n=UA)=>{if(so.has(e))return;let a=setTimeout(()=>{so.delete(e),Ba({type:4,toastId:e})},n);so.set(e,a)},VA=e=>{let{toasts:n,pausedAt:a}=LA(e);W.useEffect(()=>{if(a)return;let c=Date.now(),d=n.map(f=>{if(f.duration===1/0)return;let h=(f.duration||0)+f.pauseDuration-(c-f.createdAt);if(h<0){f.visible&&Yt.dismiss(f.id);return}return setTimeout(()=>Yt.dismiss(f.id),h)});return()=>{d.forEach(f=>f&&clearTimeout(f))}},[n,a]);let s=W.useCallback(()=>{a&&Ba({type:6,time:Date.now()})},[a]),o=W.useCallback((c,d)=>{let{reverseOrder:f=!1,gutter:h=8,defaultPosition:m}=d||{},g=n.filter(A=>(A.position||m)===(c.position||m)&&A.height),x=g.findIndex(A=>A.id===c.id),b=g.filter((A,k)=>k<x&&A.visible).length;return g.filter(A=>A.visible).slice(...f?[b+1]:[0,b]).reduce((A,k)=>A+(k.height||0)+h,0)},[n]);return W.useEffect(()=>{n.forEach(c=>{if(c.dismissed)BA(c.id,c.removeDelay);else{let d=so.get(c.id);d&&(clearTimeout(d),so.delete(c.id))}})},[n]),{toasts:n,handlers:{updateHeight:zA,startPause:FA,endPause:s,calculateOffset:o}}},HA=jr`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,IA=jr`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,GA=jr`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,qA=sa("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${HA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${IA} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${GA} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,YA=jr`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,WA=sa("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${YA} 1s linear infinite;
`,XA=jr`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,KA=jr`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,ZA=sa("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${XA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${KA} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,$A=sa("div")`
  position: absolute;
`,QA=sa("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,JA=jr`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,e3=sa("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${JA} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,t3=({toast:e})=>{let{icon:n,type:a,iconTheme:s}=e;return n!==void 0?typeof n=="string"?W.createElement(e3,null,n):n:a==="blank"?null:W.createElement(QA,null,W.createElement(WA,{...s}),a!=="loading"&&W.createElement($A,null,a==="error"?W.createElement(qA,{...s}):W.createElement(ZA,{...s})))},n3=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,r3=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,a3="0%{opacity:0;} 100%{opacity:1;}",s3="0%{opacity:1;} 100%{opacity:0;}",i3=sa("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,o3=sa("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,l3=(e,n)=>{let a=e.includes("top")?1:-1,[s,o]=Ab()?[a3,s3]:[n3(a),r3(a)];return{animation:n?`${jr(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${jr(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},c3=W.memo(({toast:e,position:n,style:a,children:s})=>{let o=e.height?l3(e.position||n||"top-center",e.visible):{opacity:0},c=W.createElement(t3,{toast:e}),d=W.createElement(o3,{...e.ariaProps},Ec(e.message,e));return W.createElement(i3,{className:e.className,style:{...o,...a,...e.style}},typeof s=="function"?s({icon:c,message:d}):W.createElement(W.Fragment,null,c,d))});OA(W.createElement);var u3=({id:e,className:n,style:a,onHeightUpdate:s,children:o})=>{let c=W.useCallback(d=>{if(d){let f=()=>{let h=d.getBoundingClientRect().height;s(e,h)};f(),new MutationObserver(f).observe(d,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return W.createElement("div",{ref:c,className:n,style:a},o)},d3=(e,n)=>{let a=e.includes("top"),s=a?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ab()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(a?1:-1)}px)`,...s,...o}},f3=qc`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,$l=16,h3=({reverseOrder:e,position:n="top-center",toastOptions:a,gutter:s,children:o,containerStyle:c,containerClassName:d})=>{let{toasts:f,handlers:h}=VA(a);return W.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:$l,left:$l,right:$l,bottom:$l,pointerEvents:"none",...c},className:d,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(m=>{let g=m.position||n,x=h.calculateOffset(m,{reverseOrder:e,gutter:s,defaultPosition:n}),b=d3(g,x);return W.createElement(u3,{id:m.id,key:m.id,onHeightUpdate:h.updateHeight,className:m.visible?f3:"",style:b},m.type==="custom"?Ec(m.message,m):o?o(m):W.createElement(c3,{toast:m,position:g}))}))},Yc=Yt;function zt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var m3=typeof Symbol=="function"&&Symbol.observable||"@@observable",rx=m3,Lf=()=>Math.random().toString(36).substring(7).split("").join("."),p3={INIT:`@@redux/INIT${Lf()}`,REPLACE:`@@redux/REPLACE${Lf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Lf()}`},Nc=p3;function um(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function Eb(e,n,a){if(typeof e!="function")throw new Error(zt(2));if(typeof n=="function"&&typeof a=="function"||typeof a=="function"&&typeof arguments[3]=="function")throw new Error(zt(0));if(typeof n=="function"&&typeof a>"u"&&(a=n,n=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(zt(1));return a(Eb)(e,n)}let s=e,o=n,c=new Map,d=c,f=0,h=!1;function m(){d===c&&(d=new Map,c.forEach((E,T)=>{d.set(T,E)}))}function g(){if(h)throw new Error(zt(3));return o}function x(E){if(typeof E!="function")throw new Error(zt(4));if(h)throw new Error(zt(5));let T=!0;m();const C=f++;return d.set(C,E),function(){if(T){if(h)throw new Error(zt(6));T=!1,m(),d.delete(C),c=null}}}function b(E){if(!um(E))throw new Error(zt(7));if(typeof E.type>"u")throw new Error(zt(8));if(typeof E.type!="string")throw new Error(zt(17));if(h)throw new Error(zt(9));try{h=!0,o=s(o,E)}finally{h=!1}return(c=d).forEach(C=>{C()}),E}function A(E){if(typeof E!="function")throw new Error(zt(10));s=E,b({type:Nc.REPLACE})}function k(){const E=x;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(zt(11));function C(){const G=T;G.next&&G.next(g())}return C(),{unsubscribe:E(C)}},[rx](){return this}}}return b({type:Nc.INIT}),{dispatch:b,subscribe:x,getState:g,replaceReducer:A,[rx]:k}}function g3(e){Object.keys(e).forEach(n=>{const a=e[n];if(typeof a(void 0,{type:Nc.INIT})>"u")throw new Error(zt(12));if(typeof a(void 0,{type:Nc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(zt(13))})}function y3(e){const n=Object.keys(e),a={};for(let c=0;c<n.length;c++){const d=n[c];typeof e[d]=="function"&&(a[d]=e[d])}const s=Object.keys(a);let o;try{g3(a)}catch(c){o=c}return function(d={},f){if(o)throw o;let h=!1;const m={};for(let g=0;g<s.length;g++){const x=s[g],b=a[x],A=d[x],k=b(A,f);if(typeof k>"u")throw f&&f.type,new Error(zt(14));m[x]=k,h=h||k!==A}return h=h||s.length!==Object.keys(d).length,h?m:d}}function kc(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,a)=>(...s)=>n(a(...s)))}function x3(...e){return n=>(a,s)=>{const o=n(a,s);let c=()=>{throw new Error(zt(15))};const d={getState:o.getState,dispatch:(h,...m)=>c(h,...m)},f=e.map(h=>h(d));return c=kc(...f)(o.dispatch),{...o,dispatch:c}}}function v3(e){return um(e)&&"type"in e&&typeof e.type=="string"}var Nb=Symbol.for("immer-nothing"),ax=Symbol.for("immer-draftable"),pn=Symbol.for("immer-state");function In(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Us=Object.getPrototypeOf;function za(e){return!!e&&!!e[pn]}function Ar(e){return e?kb(e)||Array.isArray(e)||!!e[ax]||!!e.constructor?.[ax]||Xc(e)||Kc(e):!1}var b3=Object.prototype.constructor.toString();function kb(e){if(!e||typeof e!="object")return!1;const n=Us(e);if(n===null)return!0;const a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object?!0:typeof a=="function"&&Function.toString.call(a)===b3}function _c(e,n){Wc(e)===0?Reflect.ownKeys(e).forEach(a=>{n(a,e[a],e)}):e.forEach((a,s)=>n(s,a,e))}function Wc(e){const n=e[pn];return n?n.type_:Array.isArray(e)?1:Xc(e)?2:Kc(e)?3:0}function jh(e,n){return Wc(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function _b(e,n,a){const s=Wc(e);s===2?e.set(n,a):s===3?e.add(a):e[n]=a}function w3(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function Xc(e){return e instanceof Map}function Kc(e){return e instanceof Set}function Na(e){return e.copy_||e.base_}function Ah(e,n){if(Xc(e))return new Map(e);if(Kc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const a=kb(e);if(n===!0||n==="class_only"&&!a){const s=Object.getOwnPropertyDescriptors(e);delete s[pn];let o=Reflect.ownKeys(s);for(let c=0;c<o.length;c++){const d=o[c],f=s[d];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(s[d]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[d]})}return Object.create(Us(e),s)}else{const s=Us(e);if(s!==null&&a)return{...e};const o=Object.create(s);return Object.assign(o,e)}}function dm(e,n=!1){return Zc(e)||za(e)||!Ar(e)||(Wc(e)>1&&(e.set=e.add=e.clear=e.delete=S3),Object.freeze(e),n&&Object.entries(e).forEach(([a,s])=>dm(s,!0))),e}function S3(){In(2)}function Zc(e){return Object.isFrozen(e)}var j3={};function Fa(e){const n=j3[e];return n||In(0,e),n}var mo;function Ob(){return mo}function A3(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sx(e,n){n&&(Fa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Th(e){Eh(e),e.drafts_.forEach(T3),e.drafts_=null}function Eh(e){e===mo&&(mo=e.parent_)}function ix(e){return mo=A3(mo,e)}function T3(e){const n=e[pn];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function ox(e,n){n.unfinalizedDrafts_=n.drafts_.length;const a=n.drafts_[0];return e!==void 0&&e!==a?(a[pn].modified_&&(Th(n),In(4)),Ar(e)&&(e=Oc(n,e),n.parent_||Rc(n,e)),n.patches_&&Fa("Patches").generateReplacementPatches_(a[pn].base_,e,n.patches_,n.inversePatches_)):e=Oc(n,a,[]),Th(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==Nb?e:void 0}function Oc(e,n,a){if(Zc(n))return n;const s=n[pn];if(!s)return _c(n,(o,c)=>lx(e,s,n,o,c,a)),n;if(s.scope_!==e)return n;if(!s.modified_)return Rc(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let c=o,d=!1;s.type_===3&&(c=new Set(o),o.clear(),d=!0),_c(c,(f,h)=>lx(e,s,o,f,h,a,d)),Rc(e,o,!1),a&&e.patches_&&Fa("Patches").generatePatches_(s,a,e.patches_,e.inversePatches_)}return s.copy_}function lx(e,n,a,s,o,c,d){if(za(o)){const f=c&&n&&n.type_!==3&&!jh(n.assigned_,s)?c.concat(s):void 0,h=Oc(e,o,f);if(_b(a,s,h),za(h))e.canAutoFreeze_=!1;else return}else d&&a.add(o);if(Ar(o)&&!Zc(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Oc(e,o),(!n||!n.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(a,s)&&Rc(e,o)}}function Rc(e,n,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&dm(n,a)}function E3(e,n){const a=Array.isArray(e),s={type_:a?1:0,scope_:n?n.scope_:Ob(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,c=fm;a&&(o=[s],c=po);const{revoke:d,proxy:f}=Proxy.revocable(o,c);return s.draft_=f,s.revoke_=d,f}var fm={get(e,n){if(n===pn)return e;const a=Na(e);if(!jh(a,n))return N3(e,a,n);const s=a[n];return e.finalized_||!Ar(s)?s:s===Pf(e.base_,n)?(zf(e),e.copy_[n]=kh(s,e)):s},has(e,n){return n in Na(e)},ownKeys(e){return Reflect.ownKeys(Na(e))},set(e,n,a){const s=Rb(Na(e),n);if(s?.set)return s.set.call(e.draft_,a),!0;if(!e.modified_){const o=Pf(Na(e),n),c=o?.[pn];if(c&&c.base_===a)return e.copy_[n]=a,e.assigned_[n]=!1,!0;if(w3(a,o)&&(a!==void 0||jh(e.base_,n)))return!0;zf(e),Nh(e)}return e.copy_[n]===a&&(a!==void 0||n in e.copy_)||Number.isNaN(a)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=a,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Pf(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,zf(e),Nh(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const a=Na(e),s=Reflect.getOwnPropertyDescriptor(a,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:a[n]}},defineProperty(){In(11)},getPrototypeOf(e){return Us(e.base_)},setPrototypeOf(){In(12)}},po={};_c(fm,(e,n)=>{po[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});po.deleteProperty=function(e,n){return po.set.call(this,e,n,void 0)};po.set=function(e,n,a){return fm.set.call(this,e[0],n,a,e[0])};function Pf(e,n){const a=e[pn];return(a?Na(a):e)[n]}function N3(e,n,a){const s=Rb(n,a);return s?"value"in s?s.value:s.get?.call(e.draft_):void 0}function Rb(e,n){if(!(n in e))return;let a=Us(e);for(;a;){const s=Object.getOwnPropertyDescriptor(a,n);if(s)return s;a=Us(a)}}function Nh(e){e.modified_||(e.modified_=!0,e.parent_&&Nh(e.parent_))}function zf(e){e.copy_||(e.copy_=Ah(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var k3=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,a,s)=>{if(typeof n=="function"&&typeof a!="function"){const c=a;a=n;const d=this;return function(h=c,...m){return d.produce(h,g=>a.call(this,g,...m))}}typeof a!="function"&&In(6),s!==void 0&&typeof s!="function"&&In(7);let o;if(Ar(n)){const c=ix(this),d=kh(n,void 0);let f=!0;try{o=a(d),f=!1}finally{f?Th(c):Eh(c)}return sx(c,s),ox(o,c)}else if(!n||typeof n!="object"){if(o=a(n),o===void 0&&(o=n),o===Nb&&(o=void 0),this.autoFreeze_&&dm(o,!0),s){const c=[],d=[];Fa("Patches").generateReplacementPatches_(n,o,c,d),s(c,d)}return o}else In(1,n)},this.produceWithPatches=(n,a)=>{if(typeof n=="function")return(d,...f)=>this.produceWithPatches(d,h=>n(h,...f));let s,o;return[this.produce(n,a,(d,f)=>{s=d,o=f}),s,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ar(e)||In(8),za(e)&&(e=_3(e));const n=ix(this),a=kh(e,void 0);return a[pn].isManual_=!0,Eh(n),a}finishDraft(e,n){const a=e&&e[pn];(!a||!a.isManual_)&&In(9);const{scope_:s}=a;return sx(s,n),ox(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let a;for(a=n.length-1;a>=0;a--){const o=n[a];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}a>-1&&(n=n.slice(a+1));const s=Fa("Patches").applyPatches_;return za(e)?s(e,n):this.produce(e,o=>s(o,n))}};function kh(e,n){const a=Xc(e)?Fa("MapSet").proxyMap_(e,n):Kc(e)?Fa("MapSet").proxySet_(e,n):E3(e,n);return(n?n.scope_:Ob()).drafts_.push(a),a}function _3(e){return za(e)||In(10,e),Cb(e)}function Cb(e){if(!Ar(e)||Zc(e))return e;const n=e[pn];let a;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,a=Ah(e,n.scope_.immer_.useStrictShallowCopy_)}else a=Ah(e,!0);return _c(a,(s,o)=>{_b(a,s,Cb(o))}),n&&(n.finalized_=!1),a}var gn=new k3,Db=gn.produce;gn.produceWithPatches.bind(gn);gn.setAutoFreeze.bind(gn);gn.setUseStrictShallowCopy.bind(gn);gn.applyPatches.bind(gn);gn.createDraft.bind(gn);gn.finishDraft.bind(gn);function Mb(e){return({dispatch:a,getState:s})=>o=>c=>typeof c=="function"?c(a,s,e):o(c)}var O3=Mb(),R3=Mb,C3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?kc:kc.apply(null,arguments)},D3=e=>e&&typeof e.match=="function";function io(e,n){function a(...s){if(n){let o=n(...s);if(!o)throw new Error(wr(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:s[0]}}return a.toString=()=>`${e}`,a.type=e,a.match=s=>v3(s)&&s.type===e,a}var Lb=class to extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,to.prototype)}static get[Symbol.species](){return to}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new to(...n[0].concat(this)):new to(...n.concat(this))}};function cx(e){return Ar(e)?Db(e,()=>{}):e}function Ql(e,n,a){return e.has(n)?e.get(n):e.set(n,a(n)).get(n)}function M3(e){return typeof e=="boolean"}var L3=()=>function(n){const{thunk:a=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:c=!0}=n??{};let d=new Lb;return a&&(M3(a)?d.push(O3):d.push(R3(a.extraArgument))),d},P3="RTK_autoBatch",ux=e=>n=>{setTimeout(n,e)},z3=(e={type:"raf"})=>n=>(...a)=>{const s=n(...a);let o=!0,c=!1,d=!1;const f=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ux(10):e.type==="callback"?e.queueNotification:ux(e.timeout),m=()=>{d=!1,c&&(c=!1,f.forEach(g=>g()))};return Object.assign({},s,{subscribe(g){const x=()=>o&&g(),b=s.subscribe(x);return f.add(g),()=>{b(),f.delete(g)}},dispatch(g){try{return o=!g?.meta?.[P3],c=!o,c&&(d||(d=!0,h(m))),s.dispatch(g)}finally{o=!0}}})},F3=e=>function(a){const{autoBatch:s=!0}=a??{};let o=new Lb(e);return s&&o.push(z3(typeof s=="object"?s:void 0)),o};function U3(e){const n=L3(),{reducer:a=void 0,middleware:s,devTools:o=!0,preloadedState:c=void 0,enhancers:d=void 0}=e||{};let f;if(typeof a=="function")f=a;else if(um(a))f=y3(a);else throw new Error(wr(1));let h;typeof s=="function"?h=s(n):h=n();let m=kc;o&&(m=C3({trace:!1,...typeof o=="object"&&o}));const g=x3(...h),x=F3(g);let b=typeof d=="function"?d(x):x();const A=m(...b);return Eb(f,c,A)}function Pb(e){const n={},a=[];let s;const o={addCase(c,d){const f=typeof c=="string"?c:c.type;if(!f)throw new Error(wr(28));if(f in n)throw new Error(wr(29));return n[f]=d,o},addMatcher(c,d){return a.push({matcher:c,reducer:d}),o},addDefaultCase(c){return s=c,o}};return e(o),[n,a,s]}function B3(e){return typeof e=="function"}function V3(e,n){let[a,s,o]=Pb(n),c;if(B3(e))c=()=>cx(e());else{const f=cx(e);c=()=>f}function d(f=c(),h){let m=[a[h.type],...s.filter(({matcher:g})=>g(h)).map(({reducer:g})=>g)];return m.filter(g=>!!g).length===0&&(m=[o]),m.reduce((g,x)=>{if(x)if(za(g)){const A=x(g,h);return A===void 0?g:A}else{if(Ar(g))return Db(g,b=>x(b,h));{const b=x(g,h);if(b===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return g},f)}return d.getInitialState=c,d}var H3=(e,n)=>D3(e)?e.match(n):e(n);function I3(...e){return n=>e.some(a=>H3(a,n))}var G3="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",q3=(e=21)=>{let n="",a=e;for(;a--;)n+=G3[Math.random()*64|0];return n},Y3=["name","message","stack","code"],Ff=class{constructor(e,n){this.payload=e,this.meta=n}_type},dx=class{constructor(e,n){this.payload=e,this.meta=n}_type},W3=e=>{if(typeof e=="object"&&e!==null){const n={};for(const a of Y3)typeof e[a]=="string"&&(n[a]=e[a]);return n}return{message:String(e)}},fx="External signal was aborted",Mn=(()=>{function e(n,a,s){const o=io(n+"/fulfilled",(h,m,g,x)=>({payload:h,meta:{...x||{},arg:g,requestId:m,requestStatus:"fulfilled"}})),c=io(n+"/pending",(h,m,g)=>({payload:void 0,meta:{...g||{},arg:m,requestId:h,requestStatus:"pending"}})),d=io(n+"/rejected",(h,m,g,x,b)=>({payload:x,error:(s&&s.serializeError||W3)(h||"Rejected"),meta:{...b||{},arg:g,requestId:m,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"}}));function f(h,{signal:m}={}){return(g,x,b)=>{const A=s?.idGenerator?s.idGenerator(h):q3(),k=new AbortController;let S,E;function T(L){E=L,k.abort()}m&&(m.aborted?T(fx):m.addEventListener("abort",()=>T(fx),{once:!0}));const C=async function(){let L;try{let N=s?.condition?.(h,{getState:x,extra:b});if(K3(N)&&(N=await N),N===!1||k.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((B,H)=>{S=()=>{H({name:"AbortError",message:E||"Aborted"})},k.signal.addEventListener("abort",S)});g(c(A,h,s?.getPendingMeta?.({requestId:A,arg:h},{getState:x,extra:b}))),L=await Promise.race([z,Promise.resolve(a(h,{dispatch:g,getState:x,extra:b,requestId:A,signal:k.signal,abort:T,rejectWithValue:(B,H)=>new Ff(B,H),fulfillWithValue:(B,H)=>new dx(B,H)})).then(B=>{if(B instanceof Ff)throw B;return B instanceof dx?o(B.payload,A,h,B.meta):o(B,A,h)})])}catch(N){L=N instanceof Ff?d(null,A,h,N.payload,N.meta):d(N,A,h)}finally{S&&k.signal.removeEventListener("abort",S)}return s&&!s.dispatchConditionRejection&&d.match(L)&&L.meta.condition||g(L),L}();return Object.assign(C,{abort:T,requestId:A,arg:h,unwrap(){return C.then(X3)}})}}return Object.assign(f,{pending:c,rejected:d,fulfilled:o,settled:I3(d,o),typePrefix:n})}return e.withTypes=()=>e,e})();function X3(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function K3(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Z3=Symbol.for("rtk-slice-createasyncthunk");function $3(e,n){return`${e}/${n}`}function Q3({creators:e}={}){const n=e?.asyncThunk?.[Z3];return function(s){const{name:o,reducerPath:c=o}=s;if(!o)throw new Error(wr(11));const d=(typeof s.reducers=="function"?s.reducers(e4()):s.reducers)||{},f=Object.keys(d),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(L,G){const N=typeof L=="string"?L:L.type;if(!N)throw new Error(wr(12));if(N in h.sliceCaseReducersByType)throw new Error(wr(13));return h.sliceCaseReducersByType[N]=G,m},addMatcher(L,G){return h.sliceMatchers.push({matcher:L,reducer:G}),m},exposeAction(L,G){return h.actionCreators[L]=G,m},exposeCaseReducer(L,G){return h.sliceCaseReducersByName[L]=G,m}};f.forEach(L=>{const G=d[L],N={reducerName:L,type:$3(o,L),createNotation:typeof s.reducers=="function"};n4(G)?a4(N,G,m,n):t4(N,G,m)});function g(){const[L={},G=[],N=void 0]=typeof s.extraReducers=="function"?Pb(s.extraReducers):[s.extraReducers],z={...L,...h.sliceCaseReducersByType};return V3(s.initialState,B=>{for(let H in z)B.addCase(H,z[H]);for(let H of h.sliceMatchers)B.addMatcher(H.matcher,H.reducer);for(let H of G)B.addMatcher(H.matcher,H.reducer);N&&B.addDefaultCase(N)})}const x=L=>L,b=new Map,A=new WeakMap;let k;function S(L,G){return k||(k=g()),k(L,G)}function E(){return k||(k=g()),k.getInitialState()}function T(L,G=!1){function N(B){let H=B[L];return typeof H>"u"&&G&&(H=Ql(A,N,E)),H}function z(B=x){const H=Ql(b,G,()=>new WeakMap);return Ql(H,B,()=>{const M={};for(const[R,Z]of Object.entries(s.selectors??{}))M[R]=J3(Z,B,()=>Ql(A,B,E),G);return M})}return{reducerPath:L,getSelectors:z,get selectors(){return z(N)},selectSlice:N}}const C={name:o,reducer:S,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:E,...T(c),injectInto(L,{reducerPath:G,...N}={}){const z=G??c;return L.inject({reducerPath:z,reducer:S},N),{...C,...T(z,!0)}}};return C}}function J3(e,n,a,s){function o(c,...d){let f=n(c);return typeof f>"u"&&s&&(f=a()),e(f,...d)}return o.unwrapped=e,o}var $c=Q3();function e4(){function e(n,a){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...a}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...a){return n(...a)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,a){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:a}},asyncThunk:e}}function t4({type:e,reducerName:n,createNotation:a},s,o){let c,d;if("reducer"in s){if(a&&!r4(s))throw new Error(wr(17));c=s.reducer,d=s.prepare}else c=s;o.addCase(e,c).exposeCaseReducer(n,c).exposeAction(n,d?io(e,d):io(e))}function n4(e){return e._reducerDefinitionType==="asyncThunk"}function r4(e){return e._reducerDefinitionType==="reducerWithPrepare"}function a4({type:e,reducerName:n},a,s,o){if(!o)throw new Error(wr(18));const{payloadCreator:c,fulfilled:d,pending:f,rejected:h,settled:m,options:g}=a,x=o(e,c,g);s.exposeAction(n,x),d&&s.addCase(x.fulfilled,d),f&&s.addCase(x.pending,f),h&&s.addCase(x.rejected,h),m&&s.addMatcher(x.settled,m),s.exposeCaseReducer(n,{fulfilled:d||Jl,pending:f||Jl,rejected:h||Jl,settled:m||Jl})}function Jl(){}function wr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const na=e=>{Yc.success(e,{duration:3e3,style:{background:"#10b981",color:"#fff",fontWeight:"500"}})},it=e=>{Yc.error(e,{duration:4e3,style:{background:"#ef4444",color:"#fff",fontWeight:"500"}})},qn=(e="Loading...")=>Yc.loading(e,{style:{background:"#6b7280",color:"#fff",fontWeight:"500"}}),ot=e=>{Yc.dismiss(e)},zb=e=>{typeof e=="string"&&it(e)};function Fb(e,n){return function(){return e.apply(n,arguments)}}const{toString:s4}=Object.prototype,{getPrototypeOf:hm}=Object,{iterator:Qc,toStringTag:Ub}=Symbol,Jc=(e=>n=>{const a=s4.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Yn=e=>(e=e.toLowerCase(),n=>Jc(n)===e),eu=e=>n=>typeof n===e,{isArray:Gs}=Array,go=eu("undefined");function No(e){return e!==null&&!go(e)&&e.constructor!==null&&!go(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bb=Yn("ArrayBuffer");function i4(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Bb(e.buffer),n}const o4=eu("string"),nn=eu("function"),Vb=eu("number"),ko=e=>e!==null&&typeof e=="object",l4=e=>e===!0||e===!1,lc=e=>{if(Jc(e)!=="object")return!1;const n=hm(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Ub in e)&&!(Qc in e)},c4=e=>{if(!ko(e)||No(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},u4=Yn("Date"),d4=Yn("File"),f4=Yn("Blob"),h4=Yn("FileList"),m4=e=>ko(e)&&nn(e.pipe),p4=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||nn(e.append)&&((n=Jc(e))==="formdata"||n==="object"&&nn(e.toString)&&e.toString()==="[object FormData]"))},g4=Yn("URLSearchParams"),[y4,x4,v4,b4]=["ReadableStream","Request","Response","Headers"].map(Yn),w4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _o(e,n,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Gs(e))for(s=0,o=e.length;s<o;s++)n.call(null,e[s],s,e);else{if(No(e))return;const c=a?Object.getOwnPropertyNames(e):Object.keys(e),d=c.length;let f;for(s=0;s<d;s++)f=c[s],n.call(null,e[f],f,e)}}function Hb(e,n){if(No(e))return null;n=n.toLowerCase();const a=Object.keys(e);let s=a.length,o;for(;s-- >0;)if(o=a[s],n===o.toLowerCase())return o;return null}const Oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ib=e=>!go(e)&&e!==Oa;function _h(){const{caseless:e}=Ib(this)&&this||{},n={},a=(s,o)=>{const c=e&&Hb(n,o)||o;lc(n[c])&&lc(s)?n[c]=_h(n[c],s):lc(s)?n[c]=_h({},s):Gs(s)?n[c]=s.slice():n[c]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&_o(arguments[s],a);return n}const S4=(e,n,a,{allOwnKeys:s}={})=>(_o(n,(o,c)=>{a&&nn(o)?e[c]=Fb(o,a):e[c]=o},{allOwnKeys:s}),e),j4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),A4=(e,n,a,s)=>{e.prototype=Object.create(n.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),a&&Object.assign(e.prototype,a)},T4=(e,n,a,s)=>{let o,c,d;const f={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),c=o.length;c-- >0;)d=o[c],(!s||s(d,e,n))&&!f[d]&&(n[d]=e[d],f[d]=!0);e=a!==!1&&hm(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},E4=(e,n,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=n.length;const s=e.indexOf(n,a);return s!==-1&&s===a},N4=e=>{if(!e)return null;if(Gs(e))return e;let n=e.length;if(!Vb(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},k4=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&hm(Uint8Array)),_4=(e,n)=>{const s=(e&&e[Qc]).call(e);let o;for(;(o=s.next())&&!o.done;){const c=o.value;n.call(e,c[0],c[1])}},O4=(e,n)=>{let a;const s=[];for(;(a=e.exec(n))!==null;)s.push(a);return s},R4=Yn("HTMLFormElement"),C4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,s,o){return s.toUpperCase()+o}),hx=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),D4=Yn("RegExp"),Gb=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),s={};_o(a,(o,c)=>{let d;(d=n(o,c,e))!==!1&&(s[c]=d||o)}),Object.defineProperties(e,s)},M4=e=>{Gb(e,(n,a)=>{if(nn(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const s=e[a];if(nn(s)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},L4=(e,n)=>{const a={},s=o=>{o.forEach(c=>{a[c]=!0})};return Gs(e)?s(e):s(String(e).split(n)),a},P4=()=>{},z4=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function F4(e){return!!(e&&nn(e.append)&&e[Ub]==="FormData"&&e[Qc])}const U4=e=>{const n=new Array(10),a=(s,o)=>{if(ko(s)){if(n.indexOf(s)>=0)return;if(No(s))return s;if(!("toJSON"in s)){n[o]=s;const c=Gs(s)?[]:{};return _o(s,(d,f)=>{const h=a(d,o+1);!go(h)&&(c[f]=h)}),n[o]=void 0,c}}return s};return a(e,0)},B4=Yn("AsyncFunction"),V4=e=>e&&(ko(e)||nn(e))&&nn(e.then)&&nn(e.catch),qb=((e,n)=>e?setImmediate:n?((a,s)=>(Oa.addEventListener("message",({source:o,data:c})=>{o===Oa&&c===a&&s.length&&s.shift()()},!1),o=>{s.push(o),Oa.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",nn(Oa.postMessage)),H4=typeof queueMicrotask<"u"?queueMicrotask.bind(Oa):typeof process<"u"&&process.nextTick||qb,I4=e=>e!=null&&nn(e[Qc]),me={isArray:Gs,isArrayBuffer:Bb,isBuffer:No,isFormData:p4,isArrayBufferView:i4,isString:o4,isNumber:Vb,isBoolean:l4,isObject:ko,isPlainObject:lc,isEmptyObject:c4,isReadableStream:y4,isRequest:x4,isResponse:v4,isHeaders:b4,isUndefined:go,isDate:u4,isFile:d4,isBlob:f4,isRegExp:D4,isFunction:nn,isStream:m4,isURLSearchParams:g4,isTypedArray:k4,isFileList:h4,forEach:_o,merge:_h,extend:S4,trim:w4,stripBOM:j4,inherits:A4,toFlatObject:T4,kindOf:Jc,kindOfTest:Yn,endsWith:E4,toArray:N4,forEachEntry:_4,matchAll:O4,isHTMLForm:R4,hasOwnProperty:hx,hasOwnProp:hx,reduceDescriptors:Gb,freezeMethods:M4,toObjectSet:L4,toCamelCase:C4,noop:P4,toFiniteNumber:z4,findKey:Hb,global:Oa,isContextDefined:Ib,isSpecCompliantForm:F4,toJSONObject:U4,isAsyncFn:B4,isThenable:V4,setImmediate:qb,asap:H4,isIterable:I4};function Be(e,n,a,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}me.inherits(Be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:me.toJSONObject(this.config),code:this.code,status:this.status}}});const Yb=Be.prototype,Wb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wb[e]={value:e}});Object.defineProperties(Be,Wb);Object.defineProperty(Yb,"isAxiosError",{value:!0});Be.from=(e,n,a,s,o,c)=>{const d=Object.create(Yb);return me.toFlatObject(e,d,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),Be.call(d,e.message,n,a,s,o),d.cause=e,d.name=e.name,c&&Object.assign(d,c),d};const G4=null;function Oh(e){return me.isPlainObject(e)||me.isArray(e)}function Xb(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function mx(e,n,a){return e?e.concat(n).map(function(o,c){return o=Xb(o),!a&&c?"["+o+"]":o}).join(a?".":""):n}function q4(e){return me.isArray(e)&&!e.some(Oh)}const Y4=me.toFlatObject(me,{},null,function(n){return/^is[A-Z]/.test(n)});function tu(e,n,a){if(!me.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,a=me.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,E){return!me.isUndefined(E[S])});const s=a.metaTokens,o=a.visitor||g,c=a.dots,d=a.indexes,h=(a.Blob||typeof Blob<"u"&&Blob)&&me.isSpecCompliantForm(n);if(!me.isFunction(o))throw new TypeError("visitor must be a function");function m(k){if(k===null)return"";if(me.isDate(k))return k.toISOString();if(me.isBoolean(k))return k.toString();if(!h&&me.isBlob(k))throw new Be("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(k)||me.isTypedArray(k)?h&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function g(k,S,E){let T=k;if(k&&!E&&typeof k=="object"){if(me.endsWith(S,"{}"))S=s?S:S.slice(0,-2),k=JSON.stringify(k);else if(me.isArray(k)&&q4(k)||(me.isFileList(k)||me.endsWith(S,"[]"))&&(T=me.toArray(k)))return S=Xb(S),T.forEach(function(L,G){!(me.isUndefined(L)||L===null)&&n.append(d===!0?mx([S],G,c):d===null?S:S+"[]",m(L))}),!1}return Oh(k)?!0:(n.append(mx(E,S,c),m(k)),!1)}const x=[],b=Object.assign(Y4,{defaultVisitor:g,convertValue:m,isVisitable:Oh});function A(k,S){if(!me.isUndefined(k)){if(x.indexOf(k)!==-1)throw Error("Circular reference detected in "+S.join("."));x.push(k),me.forEach(k,function(T,C){(!(me.isUndefined(T)||T===null)&&o.call(n,T,me.isString(C)?C.trim():C,S,b))===!0&&A(T,S?S.concat(C):[C])}),x.pop()}}if(!me.isObject(e))throw new TypeError("data must be an object");return A(e),n}function px(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function mm(e,n){this._pairs=[],e&&tu(e,this,n)}const Kb=mm.prototype;Kb.append=function(n,a){this._pairs.push([n,a])};Kb.toString=function(n){const a=n?function(s){return n.call(this,s,px)}:px;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function W4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zb(e,n,a){if(!n)return e;const s=a&&a.encode||W4;me.isFunction(a)&&(a={serialize:a});const o=a&&a.serialize;let c;if(o?c=o(n,a):c=me.isURLSearchParams(n)?n.toString():new mm(n,a).toString(s),c){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class gx{constructor(){this.handlers=[]}use(n,a,s){return this.handlers.push({fulfilled:n,rejected:a,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){me.forEach(this.handlers,function(s){s!==null&&n(s)})}}const $b={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},X4=typeof URLSearchParams<"u"?URLSearchParams:mm,K4=typeof FormData<"u"?FormData:null,Z4=typeof Blob<"u"?Blob:null,$4={isBrowser:!0,classes:{URLSearchParams:X4,FormData:K4,Blob:Z4},protocols:["http","https","file","blob","url","data"]},pm=typeof window<"u"&&typeof document<"u",Rh=typeof navigator=="object"&&navigator||void 0,Q4=pm&&(!Rh||["ReactNative","NativeScript","NS"].indexOf(Rh.product)<0),J4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eT=pm&&window.location.href||"http://localhost",tT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pm,hasStandardBrowserEnv:Q4,hasStandardBrowserWebWorkerEnv:J4,navigator:Rh,origin:eT},Symbol.toStringTag,{value:"Module"})),It={...tT,...$4};function nT(e,n){return tu(e,new It.classes.URLSearchParams,{visitor:function(a,s,o,c){return It.isNode&&me.isBuffer(a)?(this.append(s,a.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...n})}function rT(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function aT(e){const n={},a=Object.keys(e);let s;const o=a.length;let c;for(s=0;s<o;s++)c=a[s],n[c]=e[c];return n}function Qb(e){function n(a,s,o,c){let d=a[c++];if(d==="__proto__")return!0;const f=Number.isFinite(+d),h=c>=a.length;return d=!d&&me.isArray(o)?o.length:d,h?(me.hasOwnProp(o,d)?o[d]=[o[d],s]:o[d]=s,!f):((!o[d]||!me.isObject(o[d]))&&(o[d]=[]),n(a,s,o[d],c)&&me.isArray(o[d])&&(o[d]=aT(o[d])),!f)}if(me.isFormData(e)&&me.isFunction(e.entries)){const a={};return me.forEachEntry(e,(s,o)=>{n(rT(s),o,a,0)}),a}return null}function sT(e,n,a){if(me.isString(e))try{return(n||JSON.parse)(e),me.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(a||JSON.stringify)(e)}const Oo={transitional:$b,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const s=a.getContentType()||"",o=s.indexOf("application/json")>-1,c=me.isObject(n);if(c&&me.isHTMLForm(n)&&(n=new FormData(n)),me.isFormData(n))return o?JSON.stringify(Qb(n)):n;if(me.isArrayBuffer(n)||me.isBuffer(n)||me.isStream(n)||me.isFile(n)||me.isBlob(n)||me.isReadableStream(n))return n;if(me.isArrayBufferView(n))return n.buffer;if(me.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(c){if(s.indexOf("application/x-www-form-urlencoded")>-1)return nT(n,this.formSerializer).toString();if((f=me.isFileList(n))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return tu(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return c||o?(a.setContentType("application/json",!1),sT(n)):n}],transformResponse:[function(n){const a=this.transitional||Oo.transitional,s=a&&a.forcedJSONParsing,o=this.responseType==="json";if(me.isResponse(n)||me.isReadableStream(n))return n;if(n&&me.isString(n)&&(s&&!this.responseType||o)){const d=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(f){if(d)throw f.name==="SyntaxError"?Be.from(f,Be.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],e=>{Oo.headers[e]={}});const iT=me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oT=e=>{const n={};let a,s,o;return e&&e.split(`
`).forEach(function(d){o=d.indexOf(":"),a=d.substring(0,o).trim().toLowerCase(),s=d.substring(o+1).trim(),!(!a||n[a]&&iT[a])&&(a==="set-cookie"?n[a]?n[a].push(s):n[a]=[s]:n[a]=n[a]?n[a]+", "+s:s)}),n},yx=Symbol("internals");function Xi(e){return e&&String(e).trim().toLowerCase()}function cc(e){return e===!1||e==null?e:me.isArray(e)?e.map(cc):String(e)}function lT(e){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=a.exec(e);)n[s[1]]=s[2];return n}const cT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Uf(e,n,a,s,o){if(me.isFunction(s))return s.call(this,n,a);if(o&&(n=a),!!me.isString(n)){if(me.isString(s))return n.indexOf(s)!==-1;if(me.isRegExp(s))return s.test(n)}}function uT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,s)=>a.toUpperCase()+s)}function dT(e,n){const a=me.toCamelCase(" "+n);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+a,{value:function(o,c,d){return this[s].call(this,n,o,c,d)},configurable:!0})})}let rn=class{constructor(n){n&&this.set(n)}set(n,a,s){const o=this;function c(f,h,m){const g=Xi(h);if(!g)throw new Error("header name must be a non-empty string");const x=me.findKey(o,g);(!x||o[x]===void 0||m===!0||m===void 0&&o[x]!==!1)&&(o[x||h]=cc(f))}const d=(f,h)=>me.forEach(f,(m,g)=>c(m,g,h));if(me.isPlainObject(n)||n instanceof this.constructor)d(n,a);else if(me.isString(n)&&(n=n.trim())&&!cT(n))d(oT(n),a);else if(me.isObject(n)&&me.isIterable(n)){let f={},h,m;for(const g of n){if(!me.isArray(g))throw TypeError("Object iterator must return a key-value pair");f[m=g[0]]=(h=f[m])?me.isArray(h)?[...h,g[1]]:[h,g[1]]:g[1]}d(f,a)}else n!=null&&c(a,n,s);return this}get(n,a){if(n=Xi(n),n){const s=me.findKey(this,n);if(s){const o=this[s];if(!a)return o;if(a===!0)return lT(o);if(me.isFunction(a))return a.call(this,o,s);if(me.isRegExp(a))return a.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=Xi(n),n){const s=me.findKey(this,n);return!!(s&&this[s]!==void 0&&(!a||Uf(this,this[s],s,a)))}return!1}delete(n,a){const s=this;let o=!1;function c(d){if(d=Xi(d),d){const f=me.findKey(s,d);f&&(!a||Uf(s,s[f],f,a))&&(delete s[f],o=!0)}}return me.isArray(n)?n.forEach(c):c(n),o}clear(n){const a=Object.keys(this);let s=a.length,o=!1;for(;s--;){const c=a[s];(!n||Uf(this,this[c],c,n,!0))&&(delete this[c],o=!0)}return o}normalize(n){const a=this,s={};return me.forEach(this,(o,c)=>{const d=me.findKey(s,c);if(d){a[d]=cc(o),delete a[c];return}const f=n?uT(c):String(c).trim();f!==c&&delete a[c],a[f]=cc(o),s[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return me.forEach(this,(s,o)=>{s!=null&&s!==!1&&(a[o]=n&&me.isArray(s)?s.join(", "):s)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const s=new this(n);return a.forEach(o=>s.set(o)),s}static accessor(n){const s=(this[yx]=this[yx]={accessors:{}}).accessors,o=this.prototype;function c(d){const f=Xi(d);s[f]||(dT(o,d),s[f]=!0)}return me.isArray(n)?n.forEach(c):c(n),this}};rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(rn.prototype,({value:e},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(s){this[a]=s}}});me.freezeMethods(rn);function Bf(e,n){const a=this||Oo,s=n||a,o=rn.from(s.headers);let c=s.data;return me.forEach(e,function(f){c=f.call(a,c,o.normalize(),n?n.status:void 0)}),o.normalize(),c}function Jb(e){return!!(e&&e.__CANCEL__)}function qs(e,n,a){Be.call(this,e??"canceled",Be.ERR_CANCELED,n,a),this.name="CanceledError"}me.inherits(qs,Be,{__CANCEL__:!0});function e1(e,n,a){const s=a.config.validateStatus;!a.status||!s||s(a.status)?e(a):n(new Be("Request failed with status code "+a.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function fT(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function hT(e,n){e=e||10;const a=new Array(e),s=new Array(e);let o=0,c=0,d;return n=n!==void 0?n:1e3,function(h){const m=Date.now(),g=s[c];d||(d=m),a[o]=h,s[o]=m;let x=c,b=0;for(;x!==o;)b+=a[x++],x=x%e;if(o=(o+1)%e,o===c&&(c=(c+1)%e),m-d<n)return;const A=g&&m-g;return A?Math.round(b*1e3/A):void 0}}function mT(e,n){let a=0,s=1e3/n,o,c;const d=(m,g=Date.now())=>{a=g,o=null,c&&(clearTimeout(c),c=null),e(...m)};return[(...m)=>{const g=Date.now(),x=g-a;x>=s?d(m,g):(o=m,c||(c=setTimeout(()=>{c=null,d(o)},s-x)))},()=>o&&d(o)]}const Cc=(e,n,a=3)=>{let s=0;const o=hT(50,250);return mT(c=>{const d=c.loaded,f=c.lengthComputable?c.total:void 0,h=d-s,m=o(h),g=d<=f;s=d;const x={loaded:d,total:f,progress:f?d/f:void 0,bytes:h,rate:m||void 0,estimated:m&&f&&g?(f-d)/m:void 0,event:c,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(x)},a)},xx=(e,n)=>{const a=e!=null;return[s=>n[0]({lengthComputable:a,total:e,loaded:s}),n[1]]},vx=e=>(...n)=>me.asap(()=>e(...n)),pT=It.hasStandardBrowserEnv?((e,n)=>a=>(a=new URL(a,It.origin),e.protocol===a.protocol&&e.host===a.host&&(n||e.port===a.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,gT=It.hasStandardBrowserEnv?{write(e,n,a,s,o,c){const d=[e+"="+encodeURIComponent(n)];me.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),me.isString(s)&&d.push("path="+s),me.isString(o)&&d.push("domain="+o),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xT(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function t1(e,n,a){let s=!yT(n);return e&&(s||a==!1)?xT(e,n):n}const bx=e=>e instanceof rn?{...e}:e;function Ua(e,n){n=n||{};const a={};function s(m,g,x,b){return me.isPlainObject(m)&&me.isPlainObject(g)?me.merge.call({caseless:b},m,g):me.isPlainObject(g)?me.merge({},g):me.isArray(g)?g.slice():g}function o(m,g,x,b){if(me.isUndefined(g)){if(!me.isUndefined(m))return s(void 0,m,x,b)}else return s(m,g,x,b)}function c(m,g){if(!me.isUndefined(g))return s(void 0,g)}function d(m,g){if(me.isUndefined(g)){if(!me.isUndefined(m))return s(void 0,m)}else return s(void 0,g)}function f(m,g,x){if(x in n)return s(m,g);if(x in e)return s(void 0,m)}const h={url:c,method:c,data:c,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:f,headers:(m,g,x)=>o(bx(m),bx(g),x,!0)};return me.forEach(Object.keys({...e,...n}),function(g){const x=h[g]||o,b=x(e[g],n[g],g);me.isUndefined(b)&&x!==f||(a[g]=b)}),a}const n1=e=>{const n=Ua({},e);let{data:a,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:c,headers:d,auth:f}=n;n.headers=d=rn.from(d),n.url=Zb(t1(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&d.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let h;if(me.isFormData(a)){if(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((h=d.getContentType())!==!1){const[m,...g]=h?h.split(";").map(x=>x.trim()).filter(Boolean):[];d.setContentType([m||"multipart/form-data",...g].join("; "))}}if(It.hasStandardBrowserEnv&&(s&&me.isFunction(s)&&(s=s(n)),s||s!==!1&&pT(n.url))){const m=o&&c&&gT.read(c);m&&d.set(o,m)}return n},vT=typeof XMLHttpRequest<"u",bT=vT&&function(e){return new Promise(function(a,s){const o=n1(e);let c=o.data;const d=rn.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:m}=o,g,x,b,A,k;function S(){A&&A(),k&&k(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function T(){if(!E)return;const L=rn.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),N={data:!f||f==="text"||f==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:L,config:e,request:E};e1(function(B){a(B),S()},function(B){s(B),S()},N),E=null}"onloadend"in E?E.onloadend=T:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(T)},E.onabort=function(){E&&(s(new Be("Request aborted",Be.ECONNABORTED,e,E)),E=null)},E.onerror=function(){s(new Be("Network Error",Be.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let G=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const N=o.transitional||$b;o.timeoutErrorMessage&&(G=o.timeoutErrorMessage),s(new Be(G,N.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,e,E)),E=null},c===void 0&&d.setContentType(null),"setRequestHeader"in E&&me.forEach(d.toJSON(),function(G,N){E.setRequestHeader(N,G)}),me.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),f&&f!=="json"&&(E.responseType=o.responseType),m&&([b,k]=Cc(m,!0),E.addEventListener("progress",b)),h&&E.upload&&([x,A]=Cc(h),E.upload.addEventListener("progress",x),E.upload.addEventListener("loadend",A)),(o.cancelToken||o.signal)&&(g=L=>{E&&(s(!L||L.type?new qs(null,e,E):L),E.abort(),E=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const C=fT(o.url);if(C&&It.protocols.indexOf(C)===-1){s(new Be("Unsupported protocol "+C+":",Be.ERR_BAD_REQUEST,e));return}E.send(c||null)})},wT=(e,n)=>{const{length:a}=e=e?e.filter(Boolean):[];if(n||a){let s=new AbortController,o;const c=function(m){if(!o){o=!0,f();const g=m instanceof Error?m:this.reason;s.abort(g instanceof Be?g:new qs(g instanceof Error?g.message:g))}};let d=n&&setTimeout(()=>{d=null,c(new Be(`timeout ${n} of ms exceeded`,Be.ETIMEDOUT))},n);const f=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(c):m.removeEventListener("abort",c)}),e=null)};e.forEach(m=>m.addEventListener("abort",c));const{signal:h}=s;return h.unsubscribe=()=>me.asap(f),h}},ST=function*(e,n){let a=e.byteLength;if(a<n){yield e;return}let s=0,o;for(;s<a;)o=s+n,yield e.slice(s,o),s=o},jT=async function*(e,n){for await(const a of AT(e))yield*ST(a,n)},AT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:a,value:s}=await n.read();if(a)break;yield s}}finally{await n.cancel()}},wx=(e,n,a,s)=>{const o=jT(e,n);let c=0,d,f=h=>{d||(d=!0,s&&s(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await o.next();if(m){f(),h.close();return}let x=g.byteLength;if(a){let b=c+=x;a(b)}h.enqueue(new Uint8Array(g))}catch(m){throw f(m),m}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},nu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",r1=nu&&typeof ReadableStream=="function",TT=nu&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),a1=(e,...n)=>{try{return!!e(...n)}catch{return!1}},ET=r1&&a1(()=>{let e=!1;const n=new Request(It.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),Sx=64*1024,Ch=r1&&a1(()=>me.isReadableStream(new Response("").body)),Dc={stream:Ch&&(e=>e.body)};nu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Dc[n]&&(Dc[n]=me.isFunction(e[n])?a=>a[n]():(a,s)=>{throw new Be(`Response type '${n}' is not supported`,Be.ERR_NOT_SUPPORT,s)})})})(new Response);const NT=async e=>{if(e==null)return 0;if(me.isBlob(e))return e.size;if(me.isSpecCompliantForm(e))return(await new Request(It.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(me.isArrayBufferView(e)||me.isArrayBuffer(e))return e.byteLength;if(me.isURLSearchParams(e)&&(e=e+""),me.isString(e))return(await TT(e)).byteLength},kT=async(e,n)=>{const a=me.toFiniteNumber(e.getContentLength());return a??NT(n)},_T=nu&&(async e=>{let{url:n,method:a,data:s,signal:o,cancelToken:c,timeout:d,onDownloadProgress:f,onUploadProgress:h,responseType:m,headers:g,withCredentials:x="same-origin",fetchOptions:b}=n1(e);m=m?(m+"").toLowerCase():"text";let A=wT([o,c&&c.toAbortSignal()],d),k;const S=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let E;try{if(h&&ET&&a!=="get"&&a!=="head"&&(E=await kT(g,s))!==0){let N=new Request(n,{method:"POST",body:s,duplex:"half"}),z;if(me.isFormData(s)&&(z=N.headers.get("content-type"))&&g.setContentType(z),N.body){const[B,H]=xx(E,Cc(vx(h)));s=wx(N.body,Sx,B,H)}}me.isString(x)||(x=x?"include":"omit");const T="credentials"in Request.prototype;k=new Request(n,{...b,signal:A,method:a.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:T?x:void 0});let C=await fetch(k,b);const L=Ch&&(m==="stream"||m==="response");if(Ch&&(f||L&&S)){const N={};["status","statusText","headers"].forEach(M=>{N[M]=C[M]});const z=me.toFiniteNumber(C.headers.get("content-length")),[B,H]=f&&xx(z,Cc(vx(f),!0))||[];C=new Response(wx(C.body,Sx,B,()=>{H&&H(),S&&S()}),N)}m=m||"text";let G=await Dc[me.findKey(Dc,m)||"text"](C,e);return!L&&S&&S(),await new Promise((N,z)=>{e1(N,z,{data:G,headers:rn.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:k})})}catch(T){throw S&&S(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new Be("Network Error",Be.ERR_NETWORK,e,k),{cause:T.cause||T}):Be.from(T,T&&T.code,e,k)}}),Dh={http:G4,xhr:bT,fetch:_T};me.forEach(Dh,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const jx=e=>`- ${e}`,OT=e=>me.isFunction(e)||e===null||e===!1,s1={getAdapter:e=>{e=me.isArray(e)?e:[e];const{length:n}=e;let a,s;const o={};for(let c=0;c<n;c++){a=e[c];let d;if(s=a,!OT(a)&&(s=Dh[(d=String(a)).toLowerCase()],s===void 0))throw new Be(`Unknown adapter '${d}'`);if(s)break;o[d||"#"+c]=s}if(!s){const c=Object.entries(o).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let d=n?c.length>1?`since :
`+c.map(jx).join(`
`):" "+jx(c[0]):"as no adapter specified";throw new Be("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return s},adapters:Dh};function Vf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qs(null,e)}function Ax(e){return Vf(e),e.headers=rn.from(e.headers),e.data=Bf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),s1.getAdapter(e.adapter||Oo.adapter)(e).then(function(s){return Vf(e),s.data=Bf.call(e,e.transformResponse,s),s.headers=rn.from(s.headers),s},function(s){return Jb(s)||(Vf(e),s&&s.response&&(s.response.data=Bf.call(e,e.transformResponse,s.response),s.response.headers=rn.from(s.response.headers))),Promise.reject(s)})}const i1="1.11.0",ru={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{ru[e]=function(s){return typeof s===e||"a"+(n<1?"n ":" ")+e}});const Tx={};ru.transitional=function(n,a,s){function o(c,d){return"[Axios v"+i1+"] Transitional option '"+c+"'"+d+(s?". "+s:"")}return(c,d,f)=>{if(n===!1)throw new Be(o(d," has been removed"+(a?" in "+a:"")),Be.ERR_DEPRECATED);return a&&!Tx[d]&&(Tx[d]=!0,console.warn(o(d," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(c,d,f):!0}};ru.spelling=function(n){return(a,s)=>(console.warn(`${s} is likely a misspelling of ${n}`),!0)};function RT(e,n,a){if(typeof e!="object")throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const c=s[o],d=n[c];if(d){const f=e[c],h=f===void 0||d(f,c,e);if(h!==!0)throw new Be("option "+c+" must be "+h,Be.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Be("Unknown option "+c,Be.ERR_BAD_OPTION)}}const uc={assertOptions:RT,validators:ru},er=uc.validators;let Ma=class{constructor(n){this.defaults=n||{},this.interceptors={request:new gx,response:new gx}}async request(n,a){try{return await this._request(n,a)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const c=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?c&&!String(s.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+c):s.stack=c}catch{}}throw s}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=Ua(this.defaults,a);const{transitional:s,paramsSerializer:o,headers:c}=a;s!==void 0&&uc.assertOptions(s,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),o!=null&&(me.isFunction(o)?a.paramsSerializer={serialize:o}:uc.assertOptions(o,{encode:er.function,serialize:er.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),uc.assertOptions(a,{baseUrl:er.spelling("baseURL"),withXsrfToken:er.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let d=c&&me.merge(c.common,c[a.method]);c&&me.forEach(["delete","get","head","post","put","patch","common"],k=>{delete c[k]}),a.headers=rn.concat(d,c);const f=[];let h=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(a)===!1||(h=h&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const m=[];this.interceptors.response.forEach(function(S){m.push(S.fulfilled,S.rejected)});let g,x=0,b;if(!h){const k=[Ax.bind(this),void 0];for(k.unshift(...f),k.push(...m),b=k.length,g=Promise.resolve(a);x<b;)g=g.then(k[x++],k[x++]);return g}b=f.length;let A=a;for(x=0;x<b;){const k=f[x++],S=f[x++];try{A=k(A)}catch(E){S.call(this,E);break}}try{g=Ax.call(this,A)}catch(k){return Promise.reject(k)}for(x=0,b=m.length;x<b;)g=g.then(m[x++],m[x++]);return g}getUri(n){n=Ua(this.defaults,n);const a=t1(n.baseURL,n.url,n.allowAbsoluteUrls);return Zb(a,n.params,n.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(n){Ma.prototype[n]=function(a,s){return this.request(Ua(s||{},{method:n,url:a,data:(s||{}).data}))}});me.forEach(["post","put","patch"],function(n){function a(s){return function(c,d,f){return this.request(Ua(f||{},{method:n,headers:s?{"Content-Type":"multipart/form-data"}:{},url:c,data:d}))}}Ma.prototype[n]=a(),Ma.prototype[n+"Form"]=a(!0)});let CT=class o1{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const s=this;this.promise.then(o=>{if(!s._listeners)return;let c=s._listeners.length;for(;c-- >0;)s._listeners[c](o);s._listeners=null}),this.promise.then=o=>{let c;const d=new Promise(f=>{s.subscribe(f),c=f}).then(o);return d.cancel=function(){s.unsubscribe(c)},d},n(function(c,d,f){s.reason||(s.reason=new qs(c,d,f),a(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=s=>{n.abort(s)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new o1(function(o){n=o}),cancel:n}}};function DT(e){return function(a){return e.apply(null,a)}}function MT(e){return me.isObject(e)&&e.isAxiosError===!0}const Mh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mh).forEach(([e,n])=>{Mh[n]=e});function l1(e){const n=new Ma(e),a=Fb(Ma.prototype.request,n);return me.extend(a,Ma.prototype,n,{allOwnKeys:!0}),me.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return l1(Ua(e,o))},a}const gt=l1(Oo);gt.Axios=Ma;gt.CanceledError=qs;gt.CancelToken=CT;gt.isCancel=Jb;gt.VERSION=i1;gt.toFormData=tu;gt.AxiosError=Be;gt.Cancel=gt.CanceledError;gt.all=function(n){return Promise.all(n)};gt.spread=DT;gt.isAxiosError=MT;gt.mergeConfig=Ua;gt.AxiosHeaders=rn;gt.formToJSON=e=>Qb(me.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=s1.getAdapter;gt.HttpStatusCode=Mh;gt.default=gt;const{Axios:mD,AxiosError:pD,CanceledError:gD,isCancel:yD,CancelToken:xD,VERSION:vD,all:bD,Cancel:wD,isAxiosError:SD,spread:jD,toFormData:AD,AxiosHeaders:TD,HttpStatusCode:ED,formToJSON:ND,getAdapter:kD,mergeConfig:_D}=gt,On="https://aaogobackend.xyz/api",ks="https://aaogobackend.xyz/",rt={SIGNUP:"/user/signup",LOGIN:"/user/login",VERIFY_OTP:"/user/verify-otp",GET_CURRENT_USER:"/drivers/get-current-user",LOGOUT:"/user/logout",FORGOT_PASSWORD:"/user/forgot-password",RESET_PASSWORD:"/user/reset-password",REFERRAL_TREE:"/user/referral-tree",GET_USER_BY_ID:"/user/referral-tree",RESEND_OTP:"/user/resend-otp",REFERRAL_LINK:"/user/referral-link",GET_USER_BY_USERNAME:"/user/by-username",SEND_EMAIL_OTP:"/email-verification/send-otp",MLM_USER_DASHBOARD:"/mlm/user-dashboard",DDR_LEADERBOARD:"/mlm/ddr/leaderboard",CRR_RANK_TRACKING:"/mlm/crr/rank-tracking",CRR_LEADERBOARD:"/mlm/crr/leaderboard",BBR_PAST_WINS:"/mlm/bbr/past-wins",HLR_PROGRESS:"/mlm/hlr/progress",HLR_LEADERBOARD:"/mlm/hlr/leaderboard",REGIONAL_PROGRESS:"/mlm/regional/progress",REGIONAL_LEADERBOARD:"/mlm/regional/leaderboard",REGIONAL_GLOBAL_AMBASSADORS:"/mlm/regional/global-ambassadors",REGIONAL_COUNTRY_UPDATE:"/mlm/regional/country-update-request"},LT={TIMEOUT:1e4},au=e=>{if(!e)return null;let n=e.trim();return n=n.replace(/^["']|["']$/g,""),n.split(".").length!==3?(console.warn("Token does not appear to be in valid JWT format"),null):n},c1=e=>{if(!e)return!1;const n=au(e);if(!n)return!1;const a=n.split(".");return a.length!==3?!1:a.every(s=>s&&s.length>0)};/*! js-cookie v3.0.5 | MIT */function ec(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)e[s]=a[s]}return e}var PT={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Lh(e,n){function a(o,c,d){if(!(typeof document>"u")){d=ec({},n,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var h in d)d[h]&&(f+="; "+h,d[h]!==!0&&(f+="="+d[h].split(";")[0]));return document.cookie=o+"="+e.write(c,o)+f}}function s(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var c=document.cookie?document.cookie.split("; "):[],d={},f=0;f<c.length;f++){var h=c[f].split("="),m=h.slice(1).join("=");try{var g=decodeURIComponent(h[0]);if(d[g]=e.read(m,g),o===g)break}catch{}}return o?d[o]:d}}return Object.create({set:a,get:s,remove:function(o,c){a(o,"",ec({},c,{expires:-1}))},withAttributes:function(o){return Lh(this.converter,ec({},this.attributes,o))},withConverter:function(o){return Lh(ec({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var no=Lh(PT,{path:"/"});const Ht={TOKEN:"auth_token",USER:"auth_user",SIGNUP_EMAIL:"signup_email",SESSION_ID:"session_id"},zT={expires:7,secure:!0,sameSite:"strict"};class FT{constructor(){this.sessionId=this.generateSessionId(),this.initializeSession()}generateSessionId(){const n="session_"+Date.now()+"_"+Math.random().toString(36).substr(2,9);return console.log("SessionManager - Generated sessionId:",n),n}initializeSession(){const n=this.getSessionId();n?(this.sessionId=n,console.log("SessionManager - Using existing sessionId:",this.sessionId)):this.setSessionId(this.sessionId)}getSessionId(){const n=localStorage.getItem(Ht.SESSION_ID);return console.log("SessionManager - getSessionId:",n),n}setSessionId(n){localStorage.setItem(Ht.SESSION_ID,n),console.log("SessionManager - setSessionId:",n)}getToken(){const n=no.get(Ht.TOKEN),a=localStorage.getItem(Ht.TOKEN);return console.log("SessionManager - getToken - Cookie token:",n?"exists":"none"),console.log("SessionManager - getToken - LocalStorage token:",a?"exists":"none"),n||a}setToken(n){if(!n)return console.warn("SessionManager - setToken - Empty token provided"),!1;try{return no.set(Ht.TOKEN,n,zT),localStorage.setItem(Ht.TOKEN,n),console.log("SessionManager - setToken - Token stored successfully"),console.log("SessionManager - setToken - Token in cookies:",!!no.get(Ht.TOKEN)),console.log("SessionManager - setToken - Token in localStorage:",!!localStorage.getItem(Ht.TOKEN)),!0}catch(a){return console.error("SessionManager - setToken - Error:",a),!1}}removeToken(){try{return no.remove(Ht.TOKEN),localStorage.removeItem(Ht.TOKEN),console.log("SessionManager - removeToken - Token removed successfully"),!0}catch(n){return console.error("SessionManager - removeToken - Error:",n),!1}}getUser(){try{const n=localStorage.getItem(Ht.USER),a=n?JSON.parse(n):null;return console.log("SessionManager - getUser - Retrieved user:",a),a}catch(n){return console.error("SessionManager - getUser - Error parsing user data:",n),null}}setUser(n){if(!n)return console.warn("SessionManager - setUser - Empty user data provided"),!1;try{return localStorage.setItem(Ht.USER,JSON.stringify(n)),console.log("SessionManager - setUser - Stored user:",n),!0}catch(a){return console.error("SessionManager - setUser - Error storing user data:",a),!1}}removeUser(){try{return localStorage.removeItem(Ht.USER),console.log("SessionManager - removeUser - User data removed successfully"),!0}catch(n){return console.error("SessionManager - removeUser - Error:",n),!1}}getSignupEmail(){const n=localStorage.getItem(Ht.SIGNUP_EMAIL);return console.log("SessionManager - getSignupEmail:",n),n}setSignupEmail(n){n&&(localStorage.setItem(Ht.SIGNUP_EMAIL,n),console.log("SessionManager - setSignupEmail:",n))}removeSignupEmail(){localStorage.removeItem(Ht.SIGNUP_EMAIL),console.log("SessionManager - removeSignupEmail - Signup email removed")}isAuthenticated(){const n=this.getToken(),a=this.getUser(),s=!!(n&&a);return console.log("SessionManager - isAuthenticated:",{hasToken:!!n,hasUser:!!a,isAuthenticated:s}),s}createSession(n,a){console.log("SessionManager - createSession - Token:",n),console.log("SessionManager - createSession - User:",a);const s=this.setToken(n),o=this.setUser(a);return s&&o?(console.log("SessionManager - createSession - Session created successfully"),!0):(console.error("SessionManager - createSession - Failed"),!1)}clearSession(){console.log("SessionManager - clearSession"),this.removeToken(),this.removeUser(),this.removeSignupEmail(),console.log("SessionManager - clearSession - Session cleared successfully")}refreshSession(n,a){return console.log("SessionManager - refreshSession - Token:",n),console.log("SessionManager - refreshSession - User:",a),n&&a?this.createSession(n,a):(console.warn("SessionManager - refreshSession - Empty data provided"),!1)}getSessionInfo(){const n={sessionId:this.getSessionId(),hasToken:!!this.getToken(),hasUser:!!this.getUser(),isAuthenticated:this.isAuthenticated(),signupEmail:this.getSignupEmail(),tokenLength:this.getToken()?.length||0};return console.log("SessionManager - getSessionInfo:",n),n}validateTokenFormat(n){if(!n)return console.warn("SessionManager - validateTokenFormat - No token provided"),!1;const a=n.split("."),s=a.length===3&&a.every(o=>o&&o.length>0);return console.log("SessionManager - validateTokenFormat - Token valid:",s),s}}const Ue=new FT,Tt=gt.create({baseURL:On,headers:{"Content-Type":"application/json"},timeout:LT.TIMEOUT});Tt.interceptors.request.use(e=>{const n=Ue.getToken();if(console.log("API Request - URL:",e.url,"Method:",e.method,"Data:",JSON.stringify(e.data,null,2),"Headers:",e.headers),n){const a=au(n);c1(a)?e.headers.Authorization=`Bearer ${a}`:(console.warn("Invalid token format, proceeding with request"),e.headers.Authorization=`Bearer ${a}`)}return e},e=>(console.error("API Request - Interceptor error:",e),Promise.reject(e)));Tt.interceptors.response.use(e=>(console.log("API Response - Success:","Status:",e.status,"URL:",e.config.url,"Data:",JSON.stringify(e.data,null,2),"Headers:",e.headers),e),e=>(console.error("API Response - Error:","Status:",e.response?.status,"Message:",e.response?.data?.message,"URL:",e.config?.url,"Error Data:",JSON.stringify(e.response?.data,null,2),"Headers:",e.response?.headers),e.code==="ECONNABORTED"?(console.log("API Request - Timeout error"),Promise.reject({message:"Request timed out. Please try again."})):(e.response?.status===401&&(e.config?.url?.includes("/login")||e.config?.url?.includes("/signup")||e.config?.url?.includes("/logout")||e.config?.url?.includes("/verify-otp")||e.config?.url?.includes("/forgot-password")||e.config?.url?.includes("/reset-password")||(console.log("API Response - 401 Unauthorized, clearing session"),Ue.clearSession(),window.dispatchEvent(new CustomEvent("sessionCleared",{detail:{reason:"401_unauthorized",endpoint:e.config?.url}})))),Promise.reject(e))));const hn={signup:e=>(console.log("authAPI.signup - Sending request with data:",JSON.stringify(e,null,2)),Tt.post(rt.SIGNUP,e)),sendEmailOTP:e=>(console.log("authAPI.sendEmailOTP - Sending request with data:",JSON.stringify(e,null,2)),Tt.post(rt.SEND_EMAIL_OTP,e)),verifyOTP:e=>(console.log("authAPI.verifyOTP - Sending request with data:",JSON.stringify(e,null,2)),Tt.post(rt.VERIFY_OTP,e).then(n=>(console.log("authAPI.verifyOTP - Response received:",JSON.stringify(n.data,null,2)),n))),login:e=>(console.log("authAPI.login - Sending request with data:",JSON.stringify(e,null,2)),Tt.post(rt.LOGIN,e)),getCurrentUser:()=>(console.log("authAPI.getCurrentUser - Sending request"),Tt.get(rt.GET_CURRENT_USER)),logout:()=>(console.log("authAPI.logout - Sending request"),Tt.post(rt.LOGOUT)),forgotPassword:e=>(console.log("authAPI.forgotPassword - Sending request with data:",JSON.stringify(e,null,2)),Tt.post(rt.FORGOT_PASSWORD,e)),resetPassword:e=>(console.log("authAPI.resetPassword - Sending request with data:",JSON.stringify(e,null,2)),Tt.post(rt.RESET_PASSWORD,e)),getReferralTree:e=>(console.log("authAPI.getReferralTree - Sending request with userId:",e),Tt.get(e?`${rt.REFERRAL_TREE}?userId=${e}`:rt.REFERRAL_TREE)),getUserById:e=>(console.log("authAPI.getUserById - Sending request with userId:",e),Tt.get(`${rt.GET_USER_BY_ID}?userId=${e}`)),resendOTP:e=>(console.log("authAPI.resendOTP - Sending request with data:",JSON.stringify(e,null,2)),Tt.post(rt.RESEND_OTP,e)),getReferralLink:()=>(console.log("authAPI.getReferralLink - Sending request"),Tt.get(rt.REFERRAL_LINK)),getUserByUsername:e=>(console.log("authAPI.getUserByUsername - Sending request with username:",e),Tt.get(`${rt.GET_USER_BY_USERNAME}?username=${e}`)),getMlmDashboard:e=>(console.log("authAPI.getMlmDashboard - Sending request with userId:",e),Tt.get(`${rt.MLM_USER_DASHBOARD}/${e}`))},su={user:null,token:Ue.getToken(),isAuthenticated:Ue.isAuthenticated(),loading:!1,error:null,signupEmail:Ue.getSignupEmail(),referralTree:null,referralTreeLoading:!1,referralTreeError:null,referralTreeAttempted:!1};console.log("=== REDUX INITIAL STATE ===");console.log("Session info:",Ue.getSessionInfo());console.log("Initial state user:",su.user);console.log("Initial state token:",su.token);console.log("Initial state isAuthenticated:",su.isAuthenticated);console.log("==========================");const dc=Mn("user/login",async(e,{dispatch:n,rejectWithValue:a})=>{console.log("loginUser - Attempting login with credentials:",e);const s=qn("Logging in...");try{const o=await hn.login(e);ot(s);const{user:c,token:d}=o.data;if(!Ue.createSession(d,c))throw new Error("Failed to create user session");return console.log("loginUser - Success, user:",c),na("Login successful!"),{user:c,token:d}}catch(o){ot(s);const c=o.response?.data||{message:o.message||"Login failed"};return console.log("loginUser - Error:",c),it(c.message||"Login failed"),a(c.message||"Login failed")}}),fc=Mn("user/signup",async(e,{rejectWithValue:n})=>{const a=qn("Creating account...");try{const s=await hn.signup(e);return ot(a),s.data.token&&s.data.user?na(s.data.message||"Registration completed successfully"):na(s.data.message||"Account created successfully"),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Signup failed"};return console.log("signupUser - Error:",o),it(o.message||"Signup failed"),n(o)}}),hc=Mn("user/forgotPassword",async(e,{rejectWithValue:n})=>{const a=qn("Sending password reset OTP...");try{const s=await hn.forgotPassword(e);return ot(a),Ue.setSignupEmail(e.email),s.data.userId&&localStorage.setItem("signupUserId",s.data.userId),na(s.data.message||"Reset OTP sent to email."),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to send reset OTP"};return it(o.message||"Failed to send reset OTP"),n(o.message||"Failed to send reset OTP")}}),mc=Mn("user/resetPassword",async(e,{rejectWithValue:n})=>{const a=qn("Resetting password...");try{const s=await hn.resetPassword(e);return ot(a),Ue.removeSignupEmail(),localStorage.removeItem("signupUserId"),na(s.data.message||"Password reset successful."),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Password reset failed"};return it(o.message||"Password reset failed"),n(o.message||"Password reset failed")}}),pc=Mn("user/logout",async(e,{rejectWithValue:n})=>{const a=qn("Logging out...");try{return Ue.clearSession(),ot(a),na("Logged out successfully"),{message:"Logged out successfully"}}catch(s){ot(a);const o=s.message||"Logout failed";return it(o),n(o)}}),Ms=Mn("user/checkCurrentUser",async(e,{rejectWithValue:n})=>{try{const a=await hn.getCurrentUser();console.log("checkCurrentUser - Raw response:",a.data);const{user:s,token:o}=a.data;if(!s||!o)throw new Error("Invalid response: user or token missing");if(!Ue.createSession(o,s))throw new Error("Failed to create session");return console.log("checkCurrentUser - User data:",s),console.log("checkCurrentUser - Token:",o),{user:s,token:o}}catch(a){console.error("checkCurrentUser - Error:",a);const s=a.response?.data||{message:a.message||"Failed to get user data"};return a.response?.status===401&&(console.log("checkCurrentUser - 401 Unauthorized, clearing session"),Ue.clearSession()),n(s.message||"Failed to get user data")}}),Hf=Mn("user/resendOTP",async(e,{rejectWithValue:n})=>{const a=qn("Resending OTP...");try{const s=await hn.resendOTP({email:e});return ot(a),na(s.data.message||"OTP resent successfully!"),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to resend OTP"};return it(o.message||"Failed to resend OTP"),n(o.message||"Failed to resend OTP")}}),Ls=Mn("user/fetchReferralTree",async(e,{rejectWithValue:n,getState:a})=>{const s=a();if(s.user.referralTreeAttempted&&s.user.referralTreeError)return console.log("fetchReferralTree - Already attempted and failed, skipping"),n("Referral tree fetch already attempted");const o=Ue.getToken(),c=Ue.getUser(),d=Ue.isAuthenticated();if(!o||!c||!d)return console.log("fetchReferralTree - No valid session"),n("No valid session");const f=qn("Loading referral tree...");try{const h=await hn.getReferralTree();return ot(f),console.log("fetchReferralTree - Success:",h.data),h.data}catch{console.log("fetchReferralTree - API call failed, trying fetch directly");try{const m=Ue.getToken().replace(/['"]/g,""),g=await fetch(`${On}/user/referral-tree`,{method:"GET",headers:{Authorization:`Bearer ${m}`,"Content-Type":"application/json"}});if(g.ok){const x=await g.json();return ot(f),console.log("fetchReferralTree - Fetch call succeeded:",x),x}else{const x=await g.json();return console.log("fetchReferralTree - Fetch call failed:",g.status,x),ot(f),it(x.message||"Failed to load referral tree"),n(x.message||"Failed to load referral tree")}}catch(m){return console.log("fetchReferralTree - Fetch call also failed:",m),ot(f),it(m.message||"Failed to load referral tree"),n(m.message||"Failed to load referral tree")}}}),u1=$c({name:"user",initialState:su,reducers:{setUser:(e,n)=>{e.user=n.payload,e.isAuthenticated=!0,Ue.setUser(n.payload),console.log("setUser - Updated user:",n.payload)},setToken:(e,n)=>{e.token=n.payload,e.isAuthenticated=!0,Ue.setToken(n.payload),console.log("setToken - Updated token:",n.payload)},logout:e=>{e.user=null,e.token=null,e.isAuthenticated=!1,e.error=null,e.signupEmail=null,e.referralTree=null,e.referralTreeError=null,e.referralTreeAttempted=!1,Ue.clearSession(),console.log("logout - Session cleared"),na("Logged out successfully")},clearError:e=>{e.error=null},setLoading:(e,n)=>{e.loading=n.payload},clearSignupEmail:e=>{e.signupEmail=null,Ue.removeSignupEmail()},clearReferralTree:e=>{e.referralTree=null,e.referralTreeError=null,e.referralTreeAttempted=!1},syncWithSession:e=>{const n=Ue.getUser(),a=Ue.getToken();e.user=n,e.token=a,e.isAuthenticated=Ue.isAuthenticated(),e.signupEmail=Ue.getSignupEmail(),console.log("syncWithSession - Synced state:",{user:e.user,token:e.token,isAuthenticated:e.isAuthenticated,signupEmail:e.signupEmail})},resetReferralTreeAttempt:e=>{e.referralTreeAttempted=!1,e.referralTreeError=null}},extraReducers:e=>{e.addCase(dc.pending,n=>{n.loading=!0,n.error=null,console.log("loginUser - Pending")}).addCase(dc.fulfilled,(n,a)=>{n.loading=!1,n.user=a.payload.user,n.token=a.payload.token,n.isAuthenticated=!0,n.error=null,console.log("loginUser - Fulfilled, user:",a.payload.user)}).addCase(dc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("loginUser - Rejected:",a.payload)}).addCase(fc.pending,n=>{n.loading=!0,n.error=null,console.log("signupUser - Pending")}).addCase(fc.fulfilled,(n,a)=>{n.loading=!1,n.signupData=a.payload,n.signupEmail=Ue.getSignupEmail(),n.error=null,console.log("signupUser - Fulfilled, signupEmail:",n.signupEmail)}).addCase(fc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("signupUser - Rejected:",a.payload)}).addCase(hc.pending,n=>{n.loading=!0,n.error=null,console.log("forgotPassword - Pending")}).addCase(hc.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=Ue.getSignupEmail(),n.error=null,console.log("forgotPassword - Fulfilled, signupEmail:",n.signupEmail)}).addCase(hc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("forgotPassword - Rejected:",a.payload)}).addCase(mc.pending,n=>{n.loading=!0,n.error=null,console.log("resetPassword - Pending")}).addCase(mc.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=null,n.error=null,console.log("resetPassword - Fulfilled")}).addCase(mc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resetPassword - Rejected:",a.payload)}).addCase(pc.pending,n=>{n.loading=!0,n.error=null,console.log("logoutUser - Pending")}).addCase(pc.fulfilled,n=>{n.loading=!1,n.user=null,n.token=null,n.isAuthenticated=!1,n.error=null,n.signupEmail=null,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,console.log("logoutUser - Fulfilled")}).addCase(pc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,n.user=null,n.token=null,n.isAuthenticated=!1,n.signupEmail=null,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,Ue.clearSession(),console.log("logoutUser - Rejected:",a.payload)}).addCase(Ms.pending,n=>{n.loading=!0,n.error=null,console.log("checkCurrentUser - Pending")}).addCase(Ms.fulfilled,(n,a)=>{n.loading=!1,n.user=a.payload.user,n.token=a.payload.token,n.isAuthenticated=!0,n.error=null,console.log("checkCurrentUser - Fulfilled, user:",a.payload.user)}).addCase(Ms.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,a.payload?.includes("401")||a.payload?.includes("Unauthorized")?(n.user=null,n.token=null,n.isAuthenticated=!1,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,Ue.clearSession(),console.log("checkCurrentUser - Rejected: 401 Unauthorized, session cleared")):console.log("checkCurrentUser - Rejected, keeping session:",a.payload)}).addCase(Ls.pending,n=>{n.referralTreeLoading=!0,n.referralTreeError=null,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Pending")}).addCase(Ls.fulfilled,(n,a)=>{n.referralTreeLoading=!1,n.referralTree=a.payload.referralTree,n.referralTreeError=null,console.log("fetchReferralTree - Fulfilled")}).addCase(Ls.rejected,(n,a)=>{n.referralTreeLoading=!1,n.referralTreeError=a.payload,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Rejected:",a.payload)}).addCase(Hf.pending,n=>{n.loading=!0,n.error=null,console.log("resendOTP - Pending")}).addCase(Hf.fulfilled,(n,a)=>{n.loading=!1,n.error=null,console.log("resendOTP - Fulfilled")}).addCase(Hf.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resendOTP - Rejected:",a.payload)})}}),{setUser:OD,setToken:RD,logout:CD,clearError:Bs,setLoading:If,clearSignupEmail:DD,clearReferralTree:MD,syncWithSession:Ex,resetReferralTreeAttempt:UT}=u1.actions,kr=e=>e.user.user,d1=e=>e.user.token,gm=e=>e.user.isAuthenticated,Ro=e=>e.user.loading,iu=e=>e.user.error,BT=e=>e.user.signupEmail,VT=e=>e.user.referralTree,HT=e=>e.user.referralTreeLoading,IT=e=>e.user.referralTreeError,GT=u1.reducer,qT={mlmDashboard:null,loading:!1,error:null},oo=Mn("mlm/fetchDashboard",async(e,{rejectWithValue:n,getState:a})=>{const s=qn("Loading MLM dashboard...");try{const o=Ue.getUser();if(console.log("User from session:",o),!o||!o._id)return ot(s),n("User not authenticated");console.log("Making API call to:",`${rt.MLM_USER_DASHBOARD}/${o._id}`);const c=await Tt.get(`${rt.MLM_USER_DASHBOARD}/${o._id}`);return ot(s),c.data}catch(o){ot(s);const c=o.response?.data||{message:o.message||"Failed to load MLM dashboard"};return it(c.message||"Failed to load MLM dashboard"),n(c.message||"Failed to load MLM dashboard")}}),f1=$c({name:"mlm",initialState:qT,reducers:{clearMlmDashboard:e=>{e.mlmDashboard=null,e.error=null},setLoading:(e,n)=>{e.loading=n.payload}},extraReducers:e=>{e.addCase(oo.pending,n=>{n.loading=!0,n.error=null,console.log("fetchMlmDashboard - Pending")}).addCase(oo.fulfilled,(n,a)=>{n.loading=!1,n.mlmDashboard=a.payload.data,n.error=null,console.log("fetchMlmDashboard - Fulfilled",a.payload)}).addCase(oo.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("fetchMlmDashboard - Rejected:",a.payload)})}}),{clearMlmDashboard:LD,setLoading:PD}=f1.actions,h1=e=>e.mlm.mlmDashboard,m1=e=>e.mlm.loading,YT=f1.reducer,WT={leaderboard:[],leaderboardLoading:!1,leaderboardError:null},gc=Mn("ddr/fetchLeaderboard",async(e,{rejectWithValue:n})=>{const a=qn("Loading DDR leaderboard...");try{const s=await Tt.get(rt.DDR_LEADERBOARD);return ot(a),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to load DDR leaderboard"};return it(o.message||"Failed to load DDR leaderboard"),n(o.message||"Failed to load DDR leaderboard")}}),p1=$c({name:"ddr",initialState:WT,reducers:{clearLeaderboard:e=>{e.leaderboard=[],e.leaderboardError=null}},extraReducers:e=>{e.addCase(gc.pending,n=>{n.leaderboardLoading=!0,n.leaderboardError=null,console.log("fetchDdrLeaderboard - Pending")}).addCase(gc.fulfilled,(n,a)=>{n.leaderboardLoading=!1,n.leaderboard=a.payload.data.leaderboard,n.leaderboardError=null,console.log("fetchDdrLeaderboard - Fulfilled",a.payload)}).addCase(gc.rejected,(n,a)=>{n.leaderboardLoading=!1,n.leaderboardError=a.payload,console.log("fetchDdrLeaderboard - Rejected:",a.payload)})}}),{clearLeaderboard:zD}=p1.actions,XT=e=>e.ddr.leaderboard,KT=e=>e.ddr.leaderboardLoading,ZT=p1.reducer,$T={rankTracking:null,rankTrackingLoading:!1,rankTrackingError:null,leaderboard:null,leaderboardLoading:!1,leaderboardError:null},yc=Mn("crr/fetchRankTracking",async(e,{rejectWithValue:n})=>{const a=qn("Loading CRR rank tracking...");try{const s=Ue.getUser();if(!s||!s._id)return ot(a),n("User not authenticated");const o=await Tt.get(`/mlm/crr/rank-tracking/${s._id}`);return ot(a),o.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to load CRR rank tracking"};return it(o.message||"Failed to load CRR rank tracking"),n(o.message||"Failed to load CRR rank tracking")}}),xc=Mn("crr/fetchLeaderboard",async(e,{rejectWithValue:n})=>{const a=qn("Loading CRR leaderboard...");try{const s=await Tt.get(rt.CRR_LEADERBOARD);return ot(a),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to load CRR leaderboard"};return it(o.message||"Failed to load CRR leaderboard"),n(o.message||"Failed to load CRR leaderboard")}}),g1=$c({name:"crr",initialState:$T,reducers:{clearRankTracking:e=>{e.rankTracking=null,e.rankTrackingError=null},clearLeaderboard:e=>{e.leaderboard=null,e.leaderboardError=null}},extraReducers:e=>{e.addCase(yc.pending,n=>{n.rankTrackingLoading=!0,n.rankTrackingError=null,console.log("fetchCrrRankTracking - Pending")}).addCase(yc.fulfilled,(n,a)=>{n.rankTrackingLoading=!1,n.rankTracking=a.payload.data,n.rankTrackingError=null,console.log("fetchCrrRankTracking - Fulfilled",a.payload)}).addCase(yc.rejected,(n,a)=>{n.rankTrackingLoading=!1,n.rankTrackingError=a.payload,console.log("fetchCrrRankTracking - Rejected:",a.payload)}).addCase(xc.pending,n=>{n.leaderboardLoading=!0,n.leaderboardError=null,console.log("fetchCrrLeaderboard - Pending")}).addCase(xc.fulfilled,(n,a)=>{n.leaderboardLoading=!1,n.leaderboard=a.payload.data.leaderboard,n.leaderboardError=null,console.log("fetchCrrLeaderboard - Fulfilled",a.payload)}).addCase(xc.rejected,(n,a)=>{n.leaderboardLoading=!1,n.leaderboardError=a.payload,console.log("fetchCrrLeaderboard - Rejected:",a.payload)})}}),{clearRankTracking:FD,clearLeaderboard:UD}=g1.actions,QT=e=>e.crr.rankTracking,JT=e=>e.crr.rankTrackingLoading,eE=e=>e.crr.leaderboard,tE=e=>e.crr.leaderboardLoading,nE=g1.reducer,rE=U3({reducer:{user:GT,mlm:YT,ddr:ZT,crr:nE},middleware:e=>e({serializableCheck:{ignoredActions:["user/setUser","user/logout"]}})});/**
 * react-router v7.7.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var Nx="popstate";function aE(e={}){function n(s,o){let{pathname:c,search:d,hash:f}=s.location;return Ph("",{pathname:c,search:d,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(s,o){return typeof o=="string"?o:yo(o)}return iE(n,a,null,e)}function ft(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Cn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function sE(){return Math.random().toString(36).substring(2,10)}function kx(e,n){return{usr:e.state,key:e.key,idx:n}}function Ph(e,n,a=null,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ys(n):n,state:a,key:n&&n.key||s||sE()}}function yo({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Ys(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let s=e.indexOf("?");s>=0&&(n.search=e.substring(s),e=e.substring(0,s)),e&&(n.pathname=e)}return n}function iE(e,n,a,s={}){let{window:o=document.defaultView,v5Compat:c=!1}=s,d=o.history,f="POP",h=null,m=g();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function g(){return(d.state||{idx:null}).idx}function x(){f="POP";let E=g(),T=E==null?null:E-m;m=E,h&&h({action:f,location:S.location,delta:T})}function b(E,T){f="PUSH";let C=Ph(S.location,E,T);m=g()+1;let L=kx(C,m),G=S.createHref(C);try{d.pushState(L,"",G)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(G)}c&&h&&h({action:f,location:S.location,delta:1})}function A(E,T){f="REPLACE";let C=Ph(S.location,E,T);m=g();let L=kx(C,m),G=S.createHref(C);d.replaceState(L,"",G),c&&h&&h({action:f,location:S.location,delta:0})}function k(E){return oE(E)}let S={get action(){return f},get location(){return e(o,d)},listen(E){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Nx,x),h=E,()=>{o.removeEventListener(Nx,x),h=null}},createHref(E){return n(o,E)},createURL:k,encodeLocation(E){let T=k(E);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:A,go(E){return d.go(E)}};return S}function oE(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ft(a,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:yo(e);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=a+s),new URL(s,a)}function y1(e,n,a="/"){return lE(e,n,a,!1)}function lE(e,n,a,s){let o=typeof n=="string"?Ys(n):n,c=Tr(o.pathname||"/",a);if(c==null)return null;let d=x1(e);cE(d);let f=null;for(let h=0;f==null&&h<d.length;++h){let m=bE(c);f=xE(d[h],m,s)}return f}function x1(e,n=[],a=[],s=""){let o=(c,d,f)=>{let h={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};h.relativePath.startsWith("/")&&(ft(h.relativePath.startsWith(s),`Absolute route path "${h.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(s.length));let m=Sr([s,h.relativePath]),g=a.concat(h);c.children&&c.children.length>0&&(ft(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),x1(c.children,n,g,m)),!(c.path==null&&!c.index)&&n.push({path:m,score:gE(m,c.index),routesMeta:g})};return e.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))o(c,d);else for(let f of v1(c.path))o(c,d,f)}),n}function v1(e){let n=e.split("/");if(n.length===0)return[];let[a,...s]=n,o=a.endsWith("?"),c=a.replace(/\?$/,"");if(s.length===0)return o?[c,""]:[c];let d=v1(s.join("/")),f=[];return f.push(...d.map(h=>h===""?c:[c,h].join("/"))),o&&f.push(...d),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function cE(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:yE(n.routesMeta.map(s=>s.childrenIndex),a.routesMeta.map(s=>s.childrenIndex)))}var uE=/^:[\w-]+$/,dE=3,fE=2,hE=1,mE=10,pE=-2,_x=e=>e==="*";function gE(e,n){let a=e.split("/"),s=a.length;return a.some(_x)&&(s+=pE),n&&(s+=fE),a.filter(o=>!_x(o)).reduce((o,c)=>o+(uE.test(c)?dE:c===""?hE:mE),s)}function yE(e,n){return e.length===n.length&&e.slice(0,-1).every((s,o)=>s===n[o])?e[e.length-1]-n[n.length-1]:0}function xE(e,n,a=!1){let{routesMeta:s}=e,o={},c="/",d=[];for(let f=0;f<s.length;++f){let h=s[f],m=f===s.length-1,g=c==="/"?n:n.slice(c.length)||"/",x=Mc({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),b=h.route;if(!x&&m&&a&&!s[s.length-1].route.index&&(x=Mc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!x)return null;Object.assign(o,x.params),d.push({params:o,pathname:Sr([c,x.pathname]),pathnameBase:AE(Sr([c,x.pathnameBase])),route:b}),x.pathnameBase!=="/"&&(c=Sr([c,x.pathnameBase]))}return d}function Mc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,s]=vE(e.path,e.caseSensitive,e.end),o=n.match(a);if(!o)return null;let c=o[0],d=c.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:s.reduce((m,{paramName:g,isOptional:x},b)=>{if(g==="*"){let k=f[b]||"";d=c.slice(0,c.length-k.length).replace(/(.)\/+$/,"$1")}const A=f[b];return x&&!A?m[g]=void 0:m[g]=(A||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:e}}function vE(e,n=!1,a=!0){Cn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,h)=>(s.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function bE(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Cn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Tr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,s=e.charAt(a);return s&&s!=="/"?null:e.slice(a)||"/"}function wE(e,n="/"){let{pathname:a,search:s="",hash:o=""}=typeof e=="string"?Ys(e):e;return{pathname:a?a.startsWith("/")?a:SE(a,n):n,search:TE(s),hash:EE(o)}}function SE(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Gf(e,n,a,s){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jE(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function ym(e){let n=jE(e);return n.map((a,s)=>s===n.length-1?a.pathname:a.pathnameBase)}function xm(e,n,a,s=!1){let o;typeof e=="string"?o=Ys(e):(o={...e},ft(!o.pathname||!o.pathname.includes("?"),Gf("?","pathname","search",o)),ft(!o.pathname||!o.pathname.includes("#"),Gf("#","pathname","hash",o)),ft(!o.search||!o.search.includes("#"),Gf("#","search","hash",o)));let c=e===""||o.pathname==="",d=c?"/":o.pathname,f;if(d==null)f=a;else{let x=n.length-1;if(!s&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),x-=1;o.pathname=b.join("/")}f=x>=0?n[x]:"/"}let h=wE(o,f),m=d&&d!=="/"&&d.endsWith("/"),g=(c||d===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}var Sr=e=>e.join("/").replace(/\/\/+/g,"/"),AE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,EE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function NE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var b1=["POST","PUT","PATCH","DELETE"];new Set(b1);var kE=["GET",...b1];new Set(kE);var Ws=W.createContext(null);Ws.displayName="DataRouter";var ou=W.createContext(null);ou.displayName="DataRouterState";W.createContext(!1);var w1=W.createContext({isTransitioning:!1});w1.displayName="ViewTransition";var _E=W.createContext(new Map);_E.displayName="Fetchers";var OE=W.createContext(null);OE.displayName="Await";var Wn=W.createContext(null);Wn.displayName="Navigation";var Co=W.createContext(null);Co.displayName="Location";var Xn=W.createContext({outlet:null,matches:[],isDataRoute:!1});Xn.displayName="Route";var vm=W.createContext(null);vm.displayName="RouteError";function RE(e,{relative:n}={}){ft(Xs(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:s}=W.useContext(Wn),{hash:o,pathname:c,search:d}=Do(e,{relative:n}),f=c;return a!=="/"&&(f=c==="/"?a:Sr([a,c])),s.createHref({pathname:f,search:d,hash:o})}function Xs(){return W.useContext(Co)!=null}function Ln(){return ft(Xs(),"useLocation() may be used only in the context of a <Router> component."),W.useContext(Co).location}var S1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function j1(e){W.useContext(Wn).static||W.useLayoutEffect(e)}function Xt(){let{isDataRoute:e}=W.useContext(Xn);return e?qE():CE()}function CE(){ft(Xs(),"useNavigate() may be used only in the context of a <Router> component.");let e=W.useContext(Ws),{basename:n,navigator:a}=W.useContext(Wn),{matches:s}=W.useContext(Xn),{pathname:o}=Ln(),c=JSON.stringify(ym(s)),d=W.useRef(!1);return j1(()=>{d.current=!0}),W.useCallback((h,m={})=>{if(Cn(d.current,S1),!d.current)return;if(typeof h=="number"){a.go(h);return}let g=xm(h,JSON.parse(c),o,m.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:Sr([n,g.pathname])),(m.replace?a.replace:a.push)(g,m.state,m)},[n,a,c,o,e])}W.createContext(null);function DE(){let{matches:e}=W.useContext(Xn),n=e[e.length-1];return n?n.params:{}}function Do(e,{relative:n}={}){let{matches:a}=W.useContext(Xn),{pathname:s}=Ln(),o=JSON.stringify(ym(a));return W.useMemo(()=>xm(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function ME(e,n){return A1(e,n)}function A1(e,n,a,s){ft(Xs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=W.useContext(Wn),{matches:c}=W.useContext(Xn),d=c[c.length-1],f=d?d.params:{},h=d?d.pathname:"/",m=d?d.pathnameBase:"/",g=d&&d.route;{let T=g&&g.path||"";T1(h,!g||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let x=Ln(),b;if(n){let T=typeof n=="string"?Ys(n):n;ft(m==="/"||T.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${T.pathname}" was given in the \`location\` prop.`),b=T}else b=x;let A=b.pathname||"/",k=A;if(m!=="/"){let T=m.replace(/^\//,"").split("/");k="/"+A.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=y1(e,{pathname:k});Cn(g||S!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Cn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=UE(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:Sr([m,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?m:Sr([m,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),c,a,s);return n&&E?W.createElement(Co.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},E):E}function LE(){let e=GE(),n=NE(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",e),d=W.createElement(W.Fragment,null,W.createElement("p",null,"💿 Hey developer 👋"),W.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",W.createElement("code",{style:c},"ErrorBoundary")," or"," ",W.createElement("code",{style:c},"errorElement")," prop on your route.")),W.createElement(W.Fragment,null,W.createElement("h2",null,"Unexpected Application Error!"),W.createElement("h3",{style:{fontStyle:"italic"}},n),a?W.createElement("pre",{style:o},a):null,d)}var PE=W.createElement(LE,null),zE=class extends W.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?W.createElement(Xn.Provider,{value:this.props.routeContext},W.createElement(vm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function FE({routeContext:e,match:n,children:a}){let s=W.useContext(Ws);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),W.createElement(Xn.Provider,{value:e},a)}function UE(e,n=[],a=null,s=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,c=a?.errors;if(c!=null){let h=o.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);ft(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let d=!1,f=-1;if(a)for(let h=0;h<o.length;h++){let m=o[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=h),m.route.id){let{loaderData:g,errors:x}=a,b=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!x||x[m.route.id]===void 0);if(m.route.lazy||b){d=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((h,m,g)=>{let x,b=!1,A=null,k=null;a&&(x=c&&m.route.id?c[m.route.id]:void 0,A=m.route.errorElement||PE,d&&(f<0&&g===0?(T1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,k=null):f===g&&(b=!0,k=m.route.hydrateFallbackElement||null)));let S=n.concat(o.slice(0,g+1)),E=()=>{let T;return x?T=A:b?T=k:m.route.Component?T=W.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=h,W.createElement(FE,{match:m,routeContext:{outlet:h,matches:S,isDataRoute:a!=null},children:T})};return a&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?W.createElement(zE,{location:a.location,revalidation:a.revalidation,component:A,error:x,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):E()},null)}function bm(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function BE(e){let n=W.useContext(Ws);return ft(n,bm(e)),n}function VE(e){let n=W.useContext(ou);return ft(n,bm(e)),n}function HE(e){let n=W.useContext(Xn);return ft(n,bm(e)),n}function wm(e){let n=HE(e),a=n.matches[n.matches.length-1];return ft(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function IE(){return wm("useRouteId")}function GE(){let e=W.useContext(vm),n=VE("useRouteError"),a=wm("useRouteError");return e!==void 0?e:n.errors?.[a]}function qE(){let{router:e}=BE("useNavigate"),n=wm("useNavigate"),a=W.useRef(!1);return j1(()=>{a.current=!0}),W.useCallback(async(o,c={})=>{Cn(a.current,S1),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...c}))},[e,n])}var Ox={};function T1(e,n,a){!n&&!Ox[e]&&(Ox[e]=!0,Cn(!1,a))}W.memo(YE);function YE({routes:e,future:n,state:a}){return A1(e,void 0,a,n)}function Vn({to:e,replace:n,state:a,relative:s}){ft(Xs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=W.useContext(Wn);Cn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=W.useContext(Xn),{pathname:d}=Ln(),f=Xt(),h=xm(e,ym(c),d,s==="path"),m=JSON.stringify(h);return W.useEffect(()=>{f(JSON.parse(m),{replace:n,state:a,relative:s})},[f,m,s,n,a]),null}function lt(e){ft(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function WE({basename:e="/",children:n=null,location:a,navigationType:s="POP",navigator:o,static:c=!1}){ft(!Xs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),f=W.useMemo(()=>({basename:d,navigator:o,static:c,future:{}}),[d,o,c]);typeof a=="string"&&(a=Ys(a));let{pathname:h="/",search:m="",hash:g="",state:x=null,key:b="default"}=a,A=W.useMemo(()=>{let k=Tr(h,d);return k==null?null:{location:{pathname:k,search:m,hash:g,state:x,key:b},navigationType:s}},[d,h,m,g,x,b,s]);return Cn(A!=null,`<Router basename="${d}"> is not able to match the URL "${h}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:W.createElement(Wn.Provider,{value:f},W.createElement(Co.Provider,{children:n,value:A}))}function XE({children:e,location:n}){return ME(zh(e),n)}function zh(e,n=[]){let a=[];return W.Children.forEach(e,(s,o)=>{if(!W.isValidElement(s))return;let c=[...n,o];if(s.type===W.Fragment){a.push.apply(a,zh(s.props.children,c));return}ft(s.type===lt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ft(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=zh(s.props.children,c)),a.push(d)}),a}var vc="get",bc="application/x-www-form-urlencoded";function lu(e){return e!=null&&typeof e.tagName=="string"}function KE(e){return lu(e)&&e.tagName.toLowerCase()==="button"}function ZE(e){return lu(e)&&e.tagName.toLowerCase()==="form"}function $E(e){return lu(e)&&e.tagName.toLowerCase()==="input"}function QE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JE(e,n){return e.button===0&&(!n||n==="_self")&&!QE(e)}function Fh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,a)=>{let s=e[a];return n.concat(Array.isArray(s)?s.map(o=>[a,o]):[[a,s]])},[]))}function eN(e,n){let a=Fh(e);return n&&n.forEach((s,o)=>{a.has(o)||n.getAll(o).forEach(c=>{a.append(o,c)})}),a}var tc=null;function tN(){if(tc===null)try{new FormData(document.createElement("form"),0),tc=!1}catch{tc=!0}return tc}var nN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qf(e){return e!=null&&!nN.has(e)?(Cn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bc}"`),null):e}function rN(e,n){let a,s,o,c,d;if(ZE(e)){let f=e.getAttribute("action");s=f?Tr(f,n):null,a=e.getAttribute("method")||vc,o=qf(e.getAttribute("enctype"))||bc,c=new FormData(e)}else if(KE(e)||$E(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(s=h?Tr(h,n):null,a=e.getAttribute("formmethod")||f.getAttribute("method")||vc,o=qf(e.getAttribute("formenctype"))||qf(f.getAttribute("enctype"))||bc,c=new FormData(f,e),!tN()){let{name:m,type:g,value:x}=e;if(g==="image"){let b=m?`${m}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else m&&c.append(m,x)}}else{if(lu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=vc,s=null,o=bc,d=e}return c&&o==="text/plain"&&(d=c,c=void 0),{action:s,method:a.toLowerCase(),encType:o,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function aN(e,n,a){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return s.pathname==="/"?s.pathname=`_root.${a}`:n&&Tr(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function sN(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function iN(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function oN(e,n,a){let s=await Promise.all(e.map(async o=>{let c=n.routes[o.route.id];if(c){let d=await sN(c,a);return d.links?d.links():[]}return[]}));return dN(s.flat(1).filter(iN).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Rx(e,n,a,s,o,c){let d=(h,m)=>a[m]?h.route.id!==a[m].route.id:!0,f=(h,m)=>a[m].pathname!==h.pathname||a[m].route.path?.endsWith("*")&&a[m].params["*"]!==h.params["*"];return c==="assets"?n.filter((h,m)=>d(h,m)||f(h,m)):c==="data"?n.filter((h,m)=>{let g=s.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(d(h,m)||f(h,m))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function lN(e,n,{includeHydrateFallback:a}={}){return cN(e.map(s=>{let o=n.routes[s.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function cN(e){return[...new Set(e)]}function uN(e){let n={},a=Object.keys(e).sort();for(let s of a)n[s]=e[s];return n}function dN(e,n){let a=new Set;return new Set(n),e.reduce((s,o)=>{let c=JSON.stringify(uN(o));return a.has(c)||(a.add(c),s.push({key:c,link:o})),s},[])}function E1(){let e=W.useContext(Ws);return Sm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fN(){let e=W.useContext(ou);return Sm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var jm=W.createContext(void 0);jm.displayName="FrameworkContext";function N1(){let e=W.useContext(jm);return Sm(e,"You must render this element inside a <HydratedRouter> element"),e}function hN(e,n){let a=W.useContext(jm),[s,o]=W.useState(!1),[c,d]=W.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:m,onMouseLeave:g,onTouchStart:x}=n,b=W.useRef(null);W.useEffect(()=>{if(e==="render"&&d(!0),e==="viewport"){let S=T=>{T.forEach(C=>{d(C.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return b.current&&E.observe(b.current),()=>{E.disconnect()}}},[e]),W.useEffect(()=>{if(s){let S=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(S)}}},[s]);let A=()=>{o(!0)},k=()=>{o(!1),d(!1)};return a?e!=="intent"?[c,b,{}]:[c,b,{onFocus:Ki(f,A),onBlur:Ki(h,k),onMouseEnter:Ki(m,A),onMouseLeave:Ki(g,k),onTouchStart:Ki(x,A)}]:[!1,b,{}]}function Ki(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function mN({page:e,...n}){let{router:a}=E1(),s=W.useMemo(()=>y1(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?W.createElement(gN,{page:e,matches:s,...n}):null}function pN(e){let{manifest:n,routeModules:a}=N1(),[s,o]=W.useState([]);return W.useEffect(()=>{let c=!1;return oN(e,n,a).then(d=>{c||o(d)}),()=>{c=!0}},[e,n,a]),s}function gN({page:e,matches:n,...a}){let s=Ln(),{manifest:o,routeModules:c}=N1(),{basename:d}=E1(),{loaderData:f,matches:h}=fN(),m=W.useMemo(()=>Rx(e,n,h,o,s,"data"),[e,n,h,o,s]),g=W.useMemo(()=>Rx(e,n,h,o,s,"assets"),[e,n,h,o,s]),x=W.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let k=new Set,S=!1;if(n.forEach(T=>{let C=o.routes[T.route.id];!C||!C.hasLoader||(!m.some(L=>L.route.id===T.route.id)&&T.route.id in f&&c[T.route.id]?.shouldRevalidate||C.hasClientLoader?S=!0:k.add(T.route.id))}),k.size===0)return[];let E=aN(e,d,"data");return S&&k.size>0&&E.searchParams.set("_routes",n.filter(T=>k.has(T.route.id)).map(T=>T.route.id).join(",")),[E.pathname+E.search]},[d,f,s,o,m,n,e,c]),b=W.useMemo(()=>lN(g,o),[g,o]),A=pN(g);return W.createElement(W.Fragment,null,x.map(k=>W.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...a})),b.map(k=>W.createElement("link",{key:k,rel:"modulepreload",href:k,...a})),A.map(({key:k,link:S})=>W.createElement("link",{key:k,...S})))}function yN(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var k1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{k1&&(window.__reactRouterVersion="7.7.0")}catch{}function xN({basename:e,children:n,window:a}){let s=W.useRef();s.current==null&&(s.current=aE({window:a,v5Compat:!0}));let o=s.current,[c,d]=W.useState({action:o.action,location:o.location}),f=W.useCallback(h=>{W.startTransition(()=>d(h))},[d]);return W.useLayoutEffect(()=>o.listen(f),[o,f]),W.createElement(WE,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:o})}var _1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nt=W.forwardRef(function({onClick:n,discover:a="render",prefetch:s="none",relative:o,reloadDocument:c,replace:d,state:f,target:h,to:m,preventScrollReset:g,viewTransition:x,...b},A){let{basename:k}=W.useContext(Wn),S=typeof m=="string"&&_1.test(m),E,T=!1;if(typeof m=="string"&&S&&(E=m,k1))try{let M=new URL(window.location.href),R=m.startsWith("//")?new URL(M.protocol+m):new URL(m),Z=Tr(R.pathname,k);R.origin===M.origin&&Z!=null?m=Z+R.search+R.hash:T=!0}catch{Cn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=RE(m,{relative:o}),[L,G,N]=hN(s,b),z=wN(m,{replace:d,state:f,target:h,preventScrollReset:g,relative:o,viewTransition:x});function B(M){n&&n(M),M.defaultPrevented||z(M)}let H=W.createElement("a",{...b,...N,href:E||C,onClick:T||c?n:B,ref:yN(A,G),target:h,"data-discover":!S&&a==="render"?"true":void 0});return L&&!S?W.createElement(W.Fragment,null,H,W.createElement(mN,{page:C})):H});Nt.displayName="Link";var Uh=W.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:s="",end:o=!1,style:c,to:d,viewTransition:f,children:h,...m},g){let x=Do(d,{relative:m.relative}),b=Ln(),A=W.useContext(ou),{navigator:k,basename:S}=W.useContext(Wn),E=A!=null&&NN(x)&&f===!0,T=k.encodeLocation?k.encodeLocation(x).pathname:x.pathname,C=b.pathname,L=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;a||(C=C.toLowerCase(),L=L?L.toLowerCase():null,T=T.toLowerCase()),L&&S&&(L=Tr(L,S)||L);const G=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let N=C===T||!o&&C.startsWith(T)&&C.charAt(G)==="/",z=L!=null&&(L===T||!o&&L.startsWith(T)&&L.charAt(T.length)==="/"),B={isActive:N,isPending:z,isTransitioning:E},H=N?n:void 0,M;typeof s=="function"?M=s(B):M=[s,N?"active":null,z?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let R=typeof c=="function"?c(B):c;return W.createElement(Nt,{...m,"aria-current":H,className:M,ref:g,style:R,to:d,viewTransition:f},typeof h=="function"?h(B):h)});Uh.displayName="NavLink";var vN=W.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:s,replace:o,state:c,method:d=vc,action:f,onSubmit:h,relative:m,preventScrollReset:g,viewTransition:x,...b},A)=>{let k=TN(),S=EN(f,{relative:m}),E=d.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&_1.test(f),C=L=>{if(h&&h(L),L.defaultPrevented)return;L.preventDefault();let G=L.nativeEvent.submitter,N=G?.getAttribute("formmethod")||d;k(G||L.currentTarget,{fetcherKey:n,method:N,navigate:a,replace:o,state:c,relative:m,preventScrollReset:g,viewTransition:x})};return W.createElement("form",{ref:A,method:E,action:S,onSubmit:s?h:C,...b,"data-discover":!T&&e==="render"?"true":void 0})});vN.displayName="Form";function bN(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function O1(e){let n=W.useContext(Ws);return ft(n,bN(e)),n}function wN(e,{target:n,replace:a,state:s,preventScrollReset:o,relative:c,viewTransition:d}={}){let f=Xt(),h=Ln(),m=Do(e,{relative:c});return W.useCallback(g=>{if(JE(g,n)){g.preventDefault();let x=a!==void 0?a:yo(h)===yo(m);f(e,{replace:x,state:s,preventScrollReset:o,relative:c,viewTransition:d})}},[h,f,m,a,s,n,e,o,c,d])}function SN(e){Cn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=W.useRef(Fh(e)),a=W.useRef(!1),s=Ln(),o=W.useMemo(()=>eN(s.search,a.current?null:n.current),[s.search]),c=Xt(),d=W.useCallback((f,h)=>{const m=Fh(typeof f=="function"?f(new URLSearchParams(o)):f);a.current=!0,c("?"+m,h)},[c,o]);return[o,d]}var jN=0,AN=()=>`__${String(++jN)}__`;function TN(){let{router:e}=O1("useSubmit"),{basename:n}=W.useContext(Wn),a=IE();return W.useCallback(async(s,o={})=>{let{action:c,method:d,encType:f,formData:h,body:m}=rN(s,n);if(o.navigate===!1){let g=o.fetcherKey||AN();await e.fetch(g,a,o.action||c,{preventScrollReset:o.preventScrollReset,formData:h,body:m,formMethod:o.method||d,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:h,body:m,formMethod:o.method||d,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:a,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,a])}function EN(e,{relative:n}={}){let{basename:a}=W.useContext(Wn),s=W.useContext(Xn);ft(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),c={...Do(e||".",{relative:n})},d=Ln();if(e==null){c.search=d.search;let f=new URLSearchParams(c.search),h=f.getAll("index");if(h.some(g=>g==="")){f.delete("index"),h.filter(x=>x).forEach(x=>f.append("index",x));let g=f.toString();c.search=g?`?${g}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:Sr([a,c.pathname])),yo(c)}function NN(e,n={}){let a=W.useContext(w1);ft(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=O1("useViewTransitionState"),o=Do(e,{relative:n.relative});if(!a.isTransitioning)return!1;let c=Tr(a.currentLocation.pathname,s)||a.currentLocation.pathname,d=Tr(a.nextLocation.pathname,s)||a.nextLocation.pathname;return Mc(o.pathname,d)!=null||Mc(o.pathname,c)!=null}const R1=W.createContext(),kN=({children:e})=>{const[n,a]=W.useState(()=>localStorage.getItem("theme")||"light");W.useEffect(()=>{n==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",n)},[n]);const s=()=>{a(o=>o==="light"?"dark":"light")};return u.jsx(R1.Provider,{value:{theme:n,toggleTheme:s},children:e})},ia=()=>W.useContext(R1),_N="/assets/logo-C1IfLRO8.png";var C1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Cx=Da.createContext&&Da.createContext(C1),ON=["attr","size","title"];function RN(e,n){if(e==null)return{};var a=CN(e,n),s,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)s=c[o],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}function CN(e,n){if(e==null)return{};var a={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(n.indexOf(s)>=0)continue;a[s]=e[s]}return a}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Lc.apply(this,arguments)}function Dx(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,s)}return a}function Pc(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Dx(Object(a),!0).forEach(function(s){DN(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Dx(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function DN(e,n,a){return n=MN(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function MN(e){var n=LN(e,"string");return typeof n=="symbol"?n:n+""}function LN(e,n){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function D1(e){return e&&e.map((n,a)=>Da.createElement(n.tag,Pc({key:a},n.attr),D1(n.child)))}function ct(e){return n=>Da.createElement(PN,Lc({attr:Pc({},e.attr)},n),D1(e.child))}function PN(e){var n=a=>{var{attr:s,size:o,title:c}=e,d=RN(e,ON),f=o||a.size||"1em",h;return a.className&&(h=a.className),e.className&&(h=(h?h+" ":"")+e.className),Da.createElement("svg",Lc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,s,d,{className:h,style:Pc(Pc({color:e.color||a.color},a.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),c&&Da.createElement("title",null,c),e.children)};return Cx!==void 0?Da.createElement(Cx.Consumer,null,a=>n(a)):n(C1)}function zN(e){return ct({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"},child:[]}]})(e)}function FN(e){return ct({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}const UN=()=>{const e=Ln(),n=Gn(),a=We(gm),s=We(kr),{theme:o,toggleTheme:c}=ia(),[d,f]=W.useState(!1),h=()=>f(!d),m=()=>n(pc()),g=()=>window.scrollTo(0,0),x=[{name:"Home",path:"/"},{name:"About",path:"/about"},{name:"Services",path:"/services"},{name:"Team",path:"/team"},{name:"FAQs",path:"/faqs"},{name:"Contact",path:"/contact"}];return u.jsxs("nav",{className:"w-full px-6 py-3 bg-white dark:bg-gray-800 text-gray-900 dark:text-white shadow-md fixed top-0 left-0 z-50 max-lg:px-4 transition-colors duration-300",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("div",{className:"flex items-center gap-2",children:u.jsx(Nt,{to:"/",onClick:g,children:u.jsx("img",{src:_N,alt:"Logo",className:"w-12 h-12 sm:w-14 sm:h-14 cursor-pointer hover:opacity-80 transition-opacity"})})}),u.jsx("ul",{className:"flex gap-6 text-base font-medium mr-4 max-lg:hidden",children:x.map(b=>u.jsx("li",{children:u.jsx(Nt,{to:b.path,onClick:g,className:`transition-colors ${e.pathname===b.path?"text-[#FFB800] font-semibold":"text-gray-900 dark:text-white hover:text-[#FFB800] dark:hover:text-[#FFB800]"}`,children:b.name})},b.name))}),u.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[a?u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Nt,{to:"/profile",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Profile"}),u.jsx("button",{onClick:m,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-red-600 text-white hover:bg-red-700 transition-all shadow-sm hover:scale-105",children:"Logout"})]}):u.jsxs(u.Fragment,{children:[u.jsx(Nt,{to:"/login",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Login"}),u.jsx(Nt,{to:"/signup",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Signup"})]}),u.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[u.jsx("input",{className:"sr-only peer",type:"checkbox",onChange:c,checked:o==="dark"}),u.jsx("div",{className:`w-14 h-6 rounded-full peer duration-300 bg-gray-200 dark:bg-gray-600 relative \r
              before:content-['☀️'] before:absolute before:left-1 before:top-1/2 before:-translate-y-1/2 \r
              before:w-4 before:h-4 before:flex before:items-center before:justify-center \r
              before:transition-all peer-checked:before:opacity-0 \r
              after:content-['🌑'] after:absolute after:right-1 after:top-1/2 after:-translate-y-1/2 \r
              after:w-4 after:h-4 after:flex after:items-center after:justify-center \r
              after:opacity-0 peer-checked:after:opacity-100`})]})]}),u.jsx("button",{onClick:h,className:"md:hidden text-2xl text-gray-900 dark:text-white",children:d?u.jsx(FN,{}):u.jsx(zN,{})})]}),d&&u.jsxs("div",{className:"md:hidden flex flex-col px-4 py-3 items-start space-y-2 bg-white dark:bg-gray-800 w-full absolute left-0 top-full shadow-md transition-all duration-300 ease-in-out origin-top animate-slide-down mb-4 rounded-b-lg",children:[x.map(b=>u.jsx(Nt,{to:b.path,onClick:()=>{f(!1),g()},className:`w-full px-2 py-1.5 rounded-md text-sm font-medium text-center shadow-sm transition-all hover:scale-105 ${e.pathname===b.path?"bg-[#FFB800] text-white":"bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white hover:bg-[#FFB800] hover:text-white"}`,children:b.name},b.name)),a&&u.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[u.jsx(Nt,{to:"/profile",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Profile"}),u.jsx("button",{onClick:()=>{m(),f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-red-600 text-white hover:bg-red-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Logout"}),u.jsxs("div",{className:"text-xs text-gray-600 dark:text-gray-300 text-center mt-1",children:["Welcome, ",s?.firstName||"User"]})]}),!a&&u.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[u.jsx(Nt,{to:"/login",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Login"}),u.jsx(Nt,{to:"/signup",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Signup"})]}),u.jsx("div",{className:"py-2 w-full flex justify-center",children:u.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[u.jsx("input",{className:"sr-only peer",type:"checkbox",onChange:c,checked:o==="dark"}),u.jsx("div",{className:`w-12 h-5 rounded-full peer duration-300 bg-gray-200 dark:bg-gray-600 relative \r
                before:content-['☀️'] before:absolute before:left-1 before:top-1/2 before:-translate-y-1/2 \r
                before:w-4 before:h-4 before:flex before:items-center before:justify-center \r
                before:transition-all peer-checked:before:opacity-0 \r
                after:content-['🌑'] after:absolute after:right-1 after:top-1/2 after:-translate-y-1/2 \r
                after:w-4 after:h-4 after:flex after:items-center after:justify-center \r
                after:opacity-0 peer-checked:after:opacity-100`})]})})]})]})};function cu(e){return ct({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},child:[]}]})(e)}function M1(e){return ct({attr:{viewBox:"0 0 488 512"},child:[{tag:"path",attr:{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},child:[]}]})(e)}function L1(e){return ct({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function P1(e){return ct({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(e)}function z1(e){return ct({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},child:[]}]})(e)}function F1(e){return ct({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"},child:[]}]})(e)}function BN(e){return ct({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"},child:[]}]})(e)}function Ps(e){return ct({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function VN(e){return ct({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function HN(e){return ct({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(e)}function IN(e){return ct({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"},child:[]}]})(e)}function GN(e){return ct({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function xo(e){return ct({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function vo(e){return ct({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function qN(e){return ct({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"},child:[]}]})(e)}function YN(e){return ct({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(e)}function U1(e){return ct({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"},child:[]}]})(e)}function WN(e){return ct({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"},child:[]}]})(e)}function B1(e){return ct({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"},child:[]}]})(e)}function XN(e){return ct({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function KN(e){return ct({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M144 208c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},child:[]}]})(e)}function ZN(e){return ct({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M16 2L21 7V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918C3 2.44405 3.44495 2 3.9934 2H16ZM13 12V8H11V12H8L12 16L16 12H13Z"},child:[]}]})(e)}function V1(e){return ct({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M10.4883 14.651L15.25 21H22.25L14.3917 10.5223L20.9308 3H18.2808L13.1643 8.88578L8.75 3H1.75L9.26086 13.0145L2.31915 21H4.96917L10.4883 14.651ZM16.25 19L5.75 5H7.75L18.25 19H16.25Z"},child:[]}]})(e)}const $N="/assets/taxi2-mmWUoSgX.png",QN="/assets/powered-BnbR5ccL.png",JN=()=>{const{theme:e}=ia(),n=()=>{window.scrollTo({top:0,behavior:"smooth"})},a=[{icon:cu,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:L1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:V1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:F1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:z1,url:"https://t.me/aaaogointl"}];return u.jsxs("footer",{className:`px-6 py-10 w-[95%] mx-auto rounded-3xl transition-colors duration-300 ${e==="dark"?"bg-gray-900 text-gray-200":"bg-[#083A06] text-white"}`,children:[u.jsxs("div",{className:"mx-auto grid grid-cols-1 md:grid-cols-4 gap-10",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-4",children:"Contact"}),u.jsxs("a",{href:"tel:+19174260742",className:"flex items-center gap-2 mb-2 hover:text-yellow-400 transition-colors",children:[u.jsx(U1,{className:e==="dark"?"text-yellow-400":"text-green-400"}),"+1 (917) 426-0742"]}),u.jsxs("a",{href:"mailto:support@aaaogo.com",className:"flex items-center gap-2 mb-4 hover:text-yellow-400 transition-colors",children:[u.jsx(GN,{className:e==="dark"?"text-yellow-400":"text-green-400"}),"support@aaaogo.com"]}),u.jsx("h4",{className:"text-lg font-semibold mb-2",children:"Social Accounts"}),u.jsx("div",{className:"flex gap-3",children:a.map(({icon:s,url:o},c)=>u.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:`p-2 rounded-full transition-colors ${e==="dark"?"bg-gray-700 hover:bg-yellow-500":"bg-green-800 hover:bg-green-600"}`,children:u.jsx(s,{className:e==="dark"?"text-yellow-400":"text-white"})},c))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-4",children:"Quick Links"}),u.jsx("ul",{className:"space-y-2",children:[{name:"Home",path:"/"},{name:"About",path:"/about"},{name:"Services",path:"/services"},{name:"Team",path:"/team"},{name:"FAQS",path:"/faqs"},{name:"Contact",path:"/contact"}].map(s=>u.jsx("li",{children:u.jsx(Uh,{to:s.path,onClick:n,className:({isActive:o})=>`transition-colors duration-200 ${o?e==="dark"?"text-yellow-400 font-semibold":"text-green-400 font-semibold":e==="dark"?"text-gray-200 hover:text-yellow-400":"text-white hover:text-green-400"}`,children:s.name})},s.name))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-4",children:"Support"}),u.jsx("ul",{className:"space-y-2",children:[{name:"Terms And Conditions",path:"/terms"},{name:"Privacy Policy",path:"/privacypolicy"},{name:"Refer A Friend",path:"/referafriend"},{name:"Become A Member",path:"/becomeamember"}].map(s=>u.jsx("li",{children:u.jsx(Uh,{to:s.path,onClick:n,className:({isActive:o})=>`transition-colors duration-200 ${o?e==="dark"?"text-yellow-400 font-semibold":"text-green-400 font-semibold":e==="dark"?"text-gray-200 hover:text-yellow-400":"text-white hover:text-green-400"}`,children:s.name})},s.name))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-4",children:"Our Office"}),u.jsx("p",{children:"Office Address: Alabraj"}),u.jsx("p",{children:"Street Business Bay Dubai"}),u.jsx("p",{children:"UAE"})]})]}),u.jsx("div",{className:"relative w-full mt-10 h-16 overflow-hidden",children:u.jsx("img",{src:$N,alt:"taxi",className:"w-16 h-16 absolute top-0 animate-moveTaxiMobile sm:animate-moveTaxiDesktop"})}),u.jsx("div",{className:`border-t pt-4 text-center text-sm flex flex-col items-center gap-2 ${e==="dark"?"border-gray-700":"border-white"}`,children:u.jsxs("p",{className:`flex gap-2 items-center ${e==="dark"?"text-gray-200":"text-white"}`,children:["POWERED BY ",u.jsx("span",{className:"font-bold",children:"I AM AAAO"}),u.jsx("img",{src:QN,className:"w-5 rounded-full",alt:"powered"})]})})]})};var Zi={},ro={exports:{}},ek=ro.exports,Mx;function tk(){return Mx||(Mx=1,function(e,n){(function(a,s){s(n)})(ek,function(a){var s=function(){return s=Object.assign||function(c){for(var d,f=1,h=arguments.length;f<h;f++)for(var m in d=arguments[f])Object.prototype.hasOwnProperty.call(d,m)&&(c[m]=d[m]);return c},s.apply(this,arguments)},o=function(){function c(d,f,h){var m=this;this.endVal=f,this.options=h,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(g){m.startTime||(m.startTime=g);var x=g-m.startTime;m.remaining=m.duration-x,m.useEasing?m.countDown?m.frameVal=m.startVal-m.easingFn(x,0,m.startVal-m.endVal,m.duration):m.frameVal=m.easingFn(x,m.startVal,m.endVal-m.startVal,m.duration):m.frameVal=m.startVal+(m.endVal-m.startVal)*(x/m.duration);var b=m.countDown?m.frameVal<m.endVal:m.frameVal>m.endVal;m.frameVal=b?m.endVal:m.frameVal,m.frameVal=Number(m.frameVal.toFixed(m.options.decimalPlaces)),m.printValue(m.frameVal),x<m.duration?m.rAF=requestAnimationFrame(m.count):m.finalEndVal!==null?m.update(m.finalEndVal):m.options.onCompleteCallback&&m.options.onCompleteCallback()},this.formatNumber=function(g){var x,b,A,k,S=g<0?"-":"";x=Math.abs(g).toFixed(m.options.decimalPlaces);var E=(x+="").split(".");if(b=E[0],A=E.length>1?m.options.decimal+E[1]:"",m.options.useGrouping){k="";for(var T=3,C=0,L=0,G=b.length;L<G;++L)m.options.useIndianSeparators&&L===4&&(T=2,C=1),L!==0&&C%T==0&&(k=m.options.separator+k),C++,k=b[G-L-1]+k;b=k}return m.options.numerals&&m.options.numerals.length&&(b=b.replace(/[0-9]/g,function(N){return m.options.numerals[+N]}),A=A.replace(/[0-9]/g,function(N){return m.options.numerals[+N]})),S+m.options.prefix+b+A+m.options.suffix},this.easeOutExpo=function(g,x,b,A){return b*(1-Math.pow(2,-10*g/A))*1024/1023+x},this.options=s(s({},this.defaults),h),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el=typeof d=="string"?document.getElementById(d):d,f=f??this.parse(this.el.innerHTML),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(f),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,d):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return m.handleScroll(m)}),window.onscroll=function(){window.onScrollFns.forEach(function(g){return g()})},this.handleScroll(this)))}return c.prototype.handleScroll=function(d){if(d&&window&&!d.once){var f=window.innerHeight+window.scrollY,h=d.el.getBoundingClientRect(),m=h.top+window.pageYOffset,g=h.top+h.height+window.pageYOffset;g<f&&g>window.scrollY&&d.paused?(d.paused=!1,setTimeout(function(){return d.start()},d.options.scrollSpyDelay),d.options.scrollSpyOnce&&(d.once=!0)):(window.scrollY>g||m>f)&&!d.paused&&d.reset()}},c.prototype.determineDirectionAndSmartEasing=function(){var d=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>d;var f=d-this.startVal;if(Math.abs(f)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=d;var h=this.countDown?1:-1;this.endVal=d+h*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=d,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},c.prototype.start=function(d){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),d&&(this.options.onCompleteCallback=d),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},c.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},c.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},c.prototype.update=function(d){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(d),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},c.prototype.printValue=function(d){var f;if(this.el){var h=this.formattingFn(d);!((f=this.options.plugin)===null||f===void 0)&&f.render?this.options.plugin.render(this.el,h):this.el.tagName==="INPUT"?this.el.value=h:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=h:this.el.innerHTML=h}},c.prototype.ensureNumber=function(d){return typeof d=="number"&&!isNaN(d)},c.prototype.validateValue=function(d){var f=Number(d);return this.ensureNumber(f)?f:(this.error="[CountUp] invalid start or end value: ".concat(d),null)},c.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},c.prototype.parse=function(d){var f=function(x){return x.replace(/([.,'  ])/g,"\\$1")},h=f(this.options.separator),m=f(this.options.decimal),g=d.replace(new RegExp(h,"g"),"").replace(new RegExp(m,"g"),".");return parseFloat(g)},c}();a.CountUp=o})}(ro,ro.exports)),ro.exports}var Lx;function nk(){if(Lx)return Zi;Lx=1,Object.defineProperty(Zi,"__esModule",{value:!0});var e=Dn(),n=tk();function a(H,M){var R=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(R!=null){var Z,P,V,j,K=[],X=!0,w=!1;try{if(V=(R=R.call(H)).next,M!==0)for(;!(X=(Z=V.call(R)).done)&&(K.push(Z.value),K.length!==M);X=!0);}catch(ue){w=!0,P=ue}finally{try{if(!X&&R.return!=null&&(j=R.return(),Object(j)!==j))return}finally{if(w)throw P}}return K}}function s(H,M){var R=Object.keys(H);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(H);M&&(Z=Z.filter(function(P){return Object.getOwnPropertyDescriptor(H,P).enumerable})),R.push.apply(R,Z)}return R}function o(H){for(var M=1;M<arguments.length;M++){var R=arguments[M]!=null?arguments[M]:{};M%2?s(Object(R),!0).forEach(function(Z){f(H,Z,R[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(Z){Object.defineProperty(H,Z,Object.getOwnPropertyDescriptor(R,Z))})}return H}function c(H,M){if(typeof H!="object"||!H)return H;var R=H[Symbol.toPrimitive];if(R!==void 0){var Z=R.call(H,M);if(typeof Z!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(H)}function d(H){var M=c(H,"string");return typeof M=="symbol"?M:String(M)}function f(H,M,R){return M=d(M),M in H?Object.defineProperty(H,M,{value:R,enumerable:!0,configurable:!0,writable:!0}):H[M]=R,H}function h(){return h=Object.assign?Object.assign.bind():function(H){for(var M=1;M<arguments.length;M++){var R=arguments[M];for(var Z in R)Object.prototype.hasOwnProperty.call(R,Z)&&(H[Z]=R[Z])}return H},h.apply(this,arguments)}function m(H,M){if(H==null)return{};var R={},Z=Object.keys(H),P,V;for(V=0;V<Z.length;V++)P=Z[V],!(M.indexOf(P)>=0)&&(R[P]=H[P]);return R}function g(H,M){if(H==null)return{};var R=m(H,M),Z,P;if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(H);for(P=0;P<V.length;P++)Z=V[P],!(M.indexOf(Z)>=0)&&Object.prototype.propertyIsEnumerable.call(H,Z)&&(R[Z]=H[Z])}return R}function x(H,M){return b(H)||a(H,M)||A(H,M)||S()}function b(H){if(Array.isArray(H))return H}function A(H,M){if(H){if(typeof H=="string")return k(H,M);var R=Object.prototype.toString.call(H).slice(8,-1);if(R==="Object"&&H.constructor&&(R=H.constructor.name),R==="Map"||R==="Set")return Array.from(H);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return k(H,M)}}function k(H,M){(M==null||M>H.length)&&(M=H.length);for(var R=0,Z=new Array(M);R<M;R++)Z[R]=H[R];return Z}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?e.useLayoutEffect:e.useEffect;function T(H){var M=e.useRef(H);return E(function(){M.current=H}),e.useCallback(function(){for(var R=arguments.length,Z=new Array(R),P=0;P<R;P++)Z[P]=arguments[P];return M.current.apply(void 0,Z)},[])}var C=function(M,R){var Z=R.decimal,P=R.decimals,V=R.duration,j=R.easingFn,K=R.end,X=R.formattingFn,w=R.numerals,ue=R.prefix,I=R.separator,v=R.start,O=R.suffix,F=R.useEasing,J=R.useGrouping,Q=R.useIndianSeparators,ne=R.enableScrollSpy,ie=R.scrollSpyDelay,be=R.scrollSpyOnce,Se=R.plugin;return new n.CountUp(M,K,{startVal:v,duration:V,decimal:Z,decimalPlaces:P,easingFn:j,formattingFn:X,numerals:w,separator:I,prefix:ue,suffix:O,plugin:Se,useEasing:F,useIndianSeparators:Q,useGrouping:J,enableScrollSpy:ne,scrollSpyDelay:ie,scrollSpyOnce:be})},L=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],G={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},N=function(M){var R=Object.fromEntries(Object.entries(M).filter(function(Re){var _=x(Re,2),de=_[1];return de!==void 0})),Z=e.useMemo(function(){return o(o({},G),R)},[M]),P=Z.ref,V=Z.startOnMount,j=Z.enableReinitialize,K=Z.delay,X=Z.onEnd,w=Z.onStart,ue=Z.onPauseResume,I=Z.onReset,v=Z.onUpdate,O=g(Z,L),F=e.useRef(),J=e.useRef(),Q=e.useRef(!1),ne=T(function(){return C(typeof P=="string"?P:P.current,O)}),ie=T(function(Re){var _=F.current;if(_&&!Re)return _;var de=ne();return F.current=de,de}),be=T(function(){var Re=function(){return ie(!0).start(function(){X?.({pauseResume:Se,reset:Ae,start:Oe,update:Ne})})};K&&K>0?J.current=setTimeout(Re,K*1e3):Re(),w?.({pauseResume:Se,reset:Ae,update:Ne})}),Se=T(function(){ie().pauseResume(),ue?.({reset:Ae,start:Oe,update:Ne})}),Ae=T(function(){ie().el&&(J.current&&clearTimeout(J.current),ie().reset(),I?.({pauseResume:Se,start:Oe,update:Ne}))}),Ne=T(function(Re){ie().update(Re),v?.({pauseResume:Se,reset:Ae,start:Oe})}),Oe=T(function(){Ae(),be()}),Le=T(function(Re){V&&(Re&&Ae(),be())});return e.useEffect(function(){Q.current?j&&Le(!0):(Q.current=!0,Le())},[j,Q,Le,K,M.start,M.suffix,M.prefix,M.duration,M.separator,M.decimals,M.decimal,M.formattingFn]),e.useEffect(function(){return function(){Ae()}},[Ae]),{start:Oe,pauseResume:Se,reset:Ae,update:Ne,getCountUp:ie}},z=["className","redraw","containerProps","children","style"],B=function(M){var R=M.className,Z=M.redraw,P=M.containerProps,V=M.children,j=M.style,K=g(M,z),X=e.useRef(null),w=e.useRef(!1),ue=N(o(o({},K),{},{ref:X,startOnMount:typeof V!="function"||M.delay===0,enableReinitialize:!1})),I=ue.start,v=ue.reset,O=ue.update,F=ue.pauseResume,J=ue.getCountUp,Q=T(function(){I()}),ne=T(function(Se){M.preserveValue||v(),O(Se)}),ie=T(function(){if(typeof M.children=="function"&&!(X.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}J()});e.useEffect(function(){ie()},[ie]),e.useEffect(function(){w.current&&ne(M.end)},[M.end,ne]);var be=Z&&M;return e.useEffect(function(){Z&&w.current&&Q()},[Q,Z,be]),e.useEffect(function(){!Z&&w.current&&Q()},[Q,Z,M.start,M.suffix,M.prefix,M.duration,M.separator,M.decimals,M.decimal,M.className,M.formattingFn]),e.useEffect(function(){w.current=!0},[]),typeof V=="function"?V({countUpRef:X,start:I,reset:v,update:O,pauseResume:F,getCountUp:J}):e.createElement("span",h({className:R,ref:X,style:j},P),typeof M.start<"u"?J().formattingFn(M.start):"")};return Zi.default=B,Zi.useCountUp=N,Zi}var rk=nk();const zs=Gc(rk);var Bh=new Map,nc=new WeakMap,Px=0,ak=void 0;function sk(e){return e?(nc.has(e)||(Px+=1,nc.set(e,Px.toString())),nc.get(e)):"0"}function ik(e){return Object.keys(e).sort().filter(n=>e[n]!==void 0).map(n=>`${n}_${n==="root"?sk(e.root):e[n]}`).toString()}function ok(e){const n=ik(e);let a=Bh.get(n);if(!a){const s=new Map;let o;const c=new IntersectionObserver(d=>{d.forEach(f=>{var h;const m=f.isIntersecting&&o.some(g=>f.intersectionRatio>=g);e.trackVisibility&&typeof f.isVisible>"u"&&(f.isVisible=m),(h=s.get(f.target))==null||h.forEach(g=>{g(m,f)})})},e);o=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:n,observer:c,elements:s},Bh.set(n,a)}return a}function lk(e,n,a={},s=ak){if(typeof window.IntersectionObserver>"u"&&s!==void 0){const h=e.getBoundingClientRect();return n(s,{isIntersecting:s,target:e,intersectionRatio:typeof a.threshold=="number"?a.threshold:0,time:0,boundingClientRect:h,intersectionRect:h,rootBounds:h}),()=>{}}const{id:o,observer:c,elements:d}=ok(a),f=d.get(e)||[];return d.has(e)||d.set(e,f),f.push(n),c.observe(e),function(){f.splice(f.indexOf(n),1),f.length===0&&(d.delete(e),c.unobserve(e)),d.size===0&&(c.disconnect(),Bh.delete(o))}}function H1({threshold:e,delay:n,trackVisibility:a,rootMargin:s,root:o,triggerOnce:c,skip:d,initialInView:f,fallbackInView:h,onChange:m}={}){var g;const[x,b]=W.useState(null),A=W.useRef(m),[k,S]=W.useState({inView:!!f,entry:void 0});A.current=m,W.useEffect(()=>{if(d||!x)return;let L;return L=lk(x,(G,N)=>{S({inView:G,entry:N}),A.current&&A.current(G,N),N.isIntersecting&&c&&L&&(L(),L=void 0)},{root:o,rootMargin:s,threshold:e,trackVisibility:a,delay:n},h),()=>{L&&L()}},[Array.isArray(e)?e.toString():e,x,o,s,c,d,a,h,n]);const E=(g=k.entry)==null?void 0:g.target,T=W.useRef(void 0);!x&&E&&!c&&!d&&T.current!==E&&(T.current=E,S({inView:!!f,entry:void 0}));const C=[b,k.inView,k.entry];return C.ref=C[0],C.inView=C[1],C.entry=C[2],C}function rc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Yf={exports:{}};/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/var zx;function ck(){return zx||(zx=1,function(e,n){(function(a){e.exports=a()})(function(){return function a(s,o,c){function d(m,g){if(!o[m]){if(!s[m]){var x=typeof rc=="function"&&rc;if(!g&&x)return x(m,!0);if(f)return f(m,!0);var b=new Error("Cannot find module '"+m+"'");throw b.code="MODULE_NOT_FOUND",b}var A=o[m]={exports:{}};s[m][0].call(A.exports,function(k){var S=s[m][1][k];return d(S||k)},A,A.exports,a,s,o,c)}return o[m].exports}for(var f=typeof rc=="function"&&rc,h=0;h<c.length;h++)d(c[h]);return d}({1:[function(a,s,o){var c=a("./utils"),d=a("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(h){for(var m,g,x,b,A,k,S,E=[],T=0,C=h.length,L=C,G=c.getTypeOf(h)!=="string";T<h.length;)L=C-T,x=G?(m=h[T++],g=T<C?h[T++]:0,T<C?h[T++]:0):(m=h.charCodeAt(T++),g=T<C?h.charCodeAt(T++):0,T<C?h.charCodeAt(T++):0),b=m>>2,A=(3&m)<<4|g>>4,k=1<L?(15&g)<<2|x>>6:64,S=2<L?63&x:64,E.push(f.charAt(b)+f.charAt(A)+f.charAt(k)+f.charAt(S));return E.join("")},o.decode=function(h){var m,g,x,b,A,k,S=0,E=0,T="data:";if(h.substr(0,T.length)===T)throw new Error("Invalid base64 input, it looks like a data url.");var C,L=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===f.charAt(64)&&L--,h.charAt(h.length-2)===f.charAt(64)&&L--,L%1!=0)throw new Error("Invalid base64 input, bad content length.");for(C=d.uint8array?new Uint8Array(0|L):new Array(0|L);S<h.length;)m=f.indexOf(h.charAt(S++))<<2|(b=f.indexOf(h.charAt(S++)))>>4,g=(15&b)<<4|(A=f.indexOf(h.charAt(S++)))>>2,x=(3&A)<<6|(k=f.indexOf(h.charAt(S++))),C[E++]=m,A!==64&&(C[E++]=g),k!==64&&(C[E++]=x);return C}},{"./support":30,"./utils":32}],2:[function(a,s,o){var c=a("./external"),d=a("./stream/DataWorker"),f=a("./stream/Crc32Probe"),h=a("./stream/DataLengthProbe");function m(g,x,b,A,k){this.compressedSize=g,this.uncompressedSize=x,this.crc32=b,this.compression=A,this.compressedContent=k}m.prototype={getContentWorker:function(){var g=new d(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),x=this;return g.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),g},getCompressedWorker:function(){return new d(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},m.createWorkerFrom=function(g,x,b){return g.pipe(new f).pipe(new h("uncompressedSize")).pipe(x.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression",x)},s.exports=m},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,s,o){var c=a("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},o.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,s,o){var c=a("./utils"),d=function(){for(var f,h=[],m=0;m<256;m++){f=m;for(var g=0;g<8;g++)f=1&f?3988292384^f>>>1:f>>>1;h[m]=f}return h}();s.exports=function(f,h){return f!==void 0&&f.length?c.getTypeOf(f)!=="string"?function(m,g,x,b){var A=d,k=b+x;m^=-1;for(var S=b;S<k;S++)m=m>>>8^A[255&(m^g[S])];return-1^m}(0|h,f,f.length,0):function(m,g,x,b){var A=d,k=b+x;m^=-1;for(var S=b;S<k;S++)m=m>>>8^A[255&(m^g.charCodeAt(S))];return-1^m}(0|h,f,f.length,0):0}},{"./utils":32}],5:[function(a,s,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(a,s,o){var c=null;c=typeof Promise<"u"?Promise:a("lie"),s.exports={Promise:c}},{lie:37}],7:[function(a,s,o){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",d=a("pako"),f=a("./utils"),h=a("./stream/GenericWorker"),m=c?"uint8array":"array";function g(x,b){h.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=b,this.meta={}}o.magic="\b\0",f.inherits(g,h),g.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(f.transformTo(m,x.data),!1)},g.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},g.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},g.prototype._createPako=function(){this._pako=new d[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(b){x.push({data:b,meta:x.meta})}},o.compressWorker=function(x){return new g("Deflate",x)},o.uncompressWorker=function(){return new g("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,s,o){function c(A,k){var S,E="";for(S=0;S<k;S++)E+=String.fromCharCode(255&A),A>>>=8;return E}function d(A,k,S,E,T,C){var L,G,N=A.file,z=A.compression,B=C!==m.utf8encode,H=f.transformTo("string",C(N.name)),M=f.transformTo("string",m.utf8encode(N.name)),R=N.comment,Z=f.transformTo("string",C(R)),P=f.transformTo("string",m.utf8encode(R)),V=M.length!==N.name.length,j=P.length!==R.length,K="",X="",w="",ue=N.dir,I=N.date,v={crc32:0,compressedSize:0,uncompressedSize:0};k&&!S||(v.crc32=A.crc32,v.compressedSize=A.compressedSize,v.uncompressedSize=A.uncompressedSize);var O=0;k&&(O|=8),B||!V&&!j||(O|=2048);var F=0,J=0;ue&&(F|=16),T==="UNIX"?(J=798,F|=function(ne,ie){var be=ne;return ne||(be=ie?16893:33204),(65535&be)<<16}(N.unixPermissions,ue)):(J=20,F|=function(ne){return 63&(ne||0)}(N.dosPermissions)),L=I.getUTCHours(),L<<=6,L|=I.getUTCMinutes(),L<<=5,L|=I.getUTCSeconds()/2,G=I.getUTCFullYear()-1980,G<<=4,G|=I.getUTCMonth()+1,G<<=5,G|=I.getUTCDate(),V&&(X=c(1,1)+c(g(H),4)+M,K+="up"+c(X.length,2)+X),j&&(w=c(1,1)+c(g(Z),4)+P,K+="uc"+c(w.length,2)+w);var Q="";return Q+=`
\0`,Q+=c(O,2),Q+=z.magic,Q+=c(L,2),Q+=c(G,2),Q+=c(v.crc32,4),Q+=c(v.compressedSize,4),Q+=c(v.uncompressedSize,4),Q+=c(H.length,2),Q+=c(K.length,2),{fileRecord:x.LOCAL_FILE_HEADER+Q+H+K,dirRecord:x.CENTRAL_FILE_HEADER+c(J,2)+Q+c(Z.length,2)+"\0\0\0\0"+c(F,4)+c(E,4)+H+K+Z}}var f=a("../utils"),h=a("../stream/GenericWorker"),m=a("../utf8"),g=a("../crc32"),x=a("../signature");function b(A,k,S,E){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=k,this.zipPlatform=S,this.encodeFileName=E,this.streamFiles=A,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(b,h),b.prototype.push=function(A){var k=A.meta.percent||0,S=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(A):(this.bytesWritten+=A.data.length,h.prototype.push.call(this,{data:A.data,meta:{currentFile:this.currentFile,percent:S?(k+100*(S-E-1))/S:100}}))},b.prototype.openedSource=function(A){this.currentSourceOffset=this.bytesWritten,this.currentFile=A.file.name;var k=this.streamFiles&&!A.file.dir;if(k){var S=d(A,k,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(A){this.accumulate=!1;var k=this.streamFiles&&!A.file.dir,S=d(A,k,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(S.dirRecord),k)this.push({data:function(E){return x.DATA_DESCRIPTOR+c(E.crc32,4)+c(E.compressedSize,4)+c(E.uncompressedSize,4)}(A),meta:{percent:100}});else for(this.push({data:S.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var A=this.bytesWritten,k=0;k<this.dirRecords.length;k++)this.push({data:this.dirRecords[k],meta:{percent:100}});var S=this.bytesWritten-A,E=function(T,C,L,G,N){var z=f.transformTo("string",N(G));return x.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(T,2)+c(T,2)+c(C,4)+c(L,4)+c(z.length,2)+z}(this.dirRecords.length,S,A,this.zipComment,this.encodeFileName);this.push({data:E,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(A){this._sources.push(A);var k=this;return A.on("data",function(S){k.processChunk(S)}),A.on("end",function(){k.closedSource(k.previous.streamInfo),k._sources.length?k.prepareNextSource():k.end()}),A.on("error",function(S){k.error(S)}),this},b.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(A){var k=this._sources;if(!h.prototype.error.call(this,A))return!1;for(var S=0;S<k.length;S++)try{k[S].error(A)}catch{}return!0},b.prototype.lock=function(){h.prototype.lock.call(this);for(var A=this._sources,k=0;k<A.length;k++)A[k].lock()},s.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,s,o){var c=a("../compressions"),d=a("./ZipFileWorker");o.generateWorker=function(f,h,m){var g=new d(h.streamFiles,m,h.platform,h.encodeFileName),x=0;try{f.forEach(function(b,A){x++;var k=function(C,L){var G=C||L,N=c[G];if(!N)throw new Error(G+" is not a valid compression method !");return N}(A.options.compression,h.compression),S=A.options.compressionOptions||h.compressionOptions||{},E=A.dir,T=A.date;A._compressWorker(k,S).withStreamInfo("file",{name:b,dir:E,date:T,comment:A.comment||"",unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions}).pipe(g)}),g.entriesCount=x}catch(b){g.error(b)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,s,o){function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var d=new c;for(var f in this)typeof this[f]!="function"&&(d[f]=this[f]);return d}}(c.prototype=a("./object")).loadAsync=a("./load"),c.support=a("./support"),c.defaults=a("./defaults"),c.version="3.10.1",c.loadAsync=function(d,f){return new c().loadAsync(d,f)},c.external=a("./external"),s.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,s,o){var c=a("./utils"),d=a("./external"),f=a("./utf8"),h=a("./zipEntries"),m=a("./stream/Crc32Probe"),g=a("./nodejsUtils");function x(b){return new d.Promise(function(A,k){var S=b.decompressed.getContentWorker().pipe(new m);S.on("error",function(E){k(E)}).on("end",function(){S.streamInfo.crc32!==b.decompressed.crc32?k(new Error("Corrupted zip : CRC32 mismatch")):A()}).resume()})}s.exports=function(b,A){var k=this;return A=c.extend(A||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),g.isNode&&g.isStream(b)?d.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",b,!0,A.optimizedBinaryString,A.base64).then(function(S){var E=new h(A);return E.load(S),E}).then(function(S){var E=[d.Promise.resolve(S)],T=S.files;if(A.checkCRC32)for(var C=0;C<T.length;C++)E.push(x(T[C]));return d.Promise.all(E)}).then(function(S){for(var E=S.shift(),T=E.files,C=0;C<T.length;C++){var L=T[C],G=L.fileNameStr,N=c.resolve(L.fileNameStr);k.file(N,L.decompressed,{binary:!0,optimizedBinaryString:!0,date:L.date,dir:L.dir,comment:L.fileCommentStr.length?L.fileCommentStr:null,unixPermissions:L.unixPermissions,dosPermissions:L.dosPermissions,createFolders:A.createFolders}),L.dir||(k.file(N).unsafeOriginalName=G)}return E.zipComment.length&&(k.comment=E.zipComment),k})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,s,o){var c=a("../utils"),d=a("../stream/GenericWorker");function f(h,m){d.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(m)}c.inherits(f,d),f.prototype._bindStream=function(h){var m=this;(this._stream=h).pause(),h.on("data",function(g){m.push({data:g,meta:{percent:0}})}).on("error",function(g){m.isPaused?this.generatedError=g:m.error(g)}).on("end",function(){m.isPaused?m._upstreamEnded=!0:m.end()})},f.prototype.pause=function(){return!!d.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=f},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,s,o){var c=a("readable-stream").Readable;function d(f,h,m){c.call(this,h),this._helper=f;var g=this;f.on("data",function(x,b){g.push(x)||g._helper.pause(),m&&m(b)}).on("error",function(x){g.emit("error",x)}).on("end",function(){g.push(null)})}a("../utils").inherits(d,c),d.prototype._read=function(){this._helper.resume()},s.exports=d},{"../utils":32,"readable-stream":16}],14:[function(a,s,o){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(c,d){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,d);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new Buffer(c,d)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var d=new Buffer(c);return d.fill(0),d},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(a,s,o){function c(N,z,B){var H,M=f.getTypeOf(z),R=f.extend(B||{},g);R.date=R.date||new Date,R.compression!==null&&(R.compression=R.compression.toUpperCase()),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&16384&R.unixPermissions&&(R.dir=!0),R.dosPermissions&&16&R.dosPermissions&&(R.dir=!0),R.dir&&(N=T(N)),R.createFolders&&(H=E(N))&&C.call(this,H,!0);var Z=M==="string"&&R.binary===!1&&R.base64===!1;B&&B.binary!==void 0||(R.binary=!Z),(z instanceof x&&z.uncompressedSize===0||R.dir||!z||z.length===0)&&(R.base64=!1,R.binary=!0,z="",R.compression="STORE",M="string");var P=null;P=z instanceof x||z instanceof h?z:k.isNode&&k.isStream(z)?new S(N,z):f.prepareContent(N,z,R.binary,R.optimizedBinaryString,R.base64);var V=new b(N,P,R);this.files[N]=V}var d=a("./utf8"),f=a("./utils"),h=a("./stream/GenericWorker"),m=a("./stream/StreamHelper"),g=a("./defaults"),x=a("./compressedObject"),b=a("./zipObject"),A=a("./generate"),k=a("./nodejsUtils"),S=a("./nodejs/NodejsStreamInputAdapter"),E=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var z=N.lastIndexOf("/");return 0<z?N.substring(0,z):""},T=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},C=function(N,z){return z=z!==void 0?z:g.createFolders,N=T(N),this.files[N]||c.call(this,N,null,{dir:!0,createFolders:z}),this.files[N]};function L(N){return Object.prototype.toString.call(N)==="[object RegExp]"}var G={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(N){var z,B,H;for(z in this.files)H=this.files[z],(B=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&N(B,H)},filter:function(N){var z=[];return this.forEach(function(B,H){N(B,H)&&z.push(H)}),z},file:function(N,z,B){if(arguments.length!==1)return N=this.root+N,c.call(this,N,z,B),this;if(L(N)){var H=N;return this.filter(function(R,Z){return!Z.dir&&H.test(R)})}var M=this.files[this.root+N];return M&&!M.dir?M:null},folder:function(N){if(!N)return this;if(L(N))return this.filter(function(M,R){return R.dir&&N.test(M)});var z=this.root+N,B=C.call(this,z),H=this.clone();return H.root=B.name,H},remove:function(N){N=this.root+N;var z=this.files[N];if(z||(N.slice(-1)!=="/"&&(N+="/"),z=this.files[N]),z&&!z.dir)delete this.files[N];else for(var B=this.filter(function(M,R){return R.name.slice(0,N.length)===N}),H=0;H<B.length;H++)delete this.files[B[H].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var z,B={};try{if((B=f.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode})).type=B.type.toLowerCase(),B.compression=B.compression.toUpperCase(),B.type==="binarystring"&&(B.type="string"),!B.type)throw new Error("No output type specified.");f.checkSupport(B.type),B.platform!=="darwin"&&B.platform!=="freebsd"&&B.platform!=="linux"&&B.platform!=="sunos"||(B.platform="UNIX"),B.platform==="win32"&&(B.platform="DOS");var H=B.comment||this.comment||"";z=A.generateWorker(this,B,H)}catch(M){(z=new h("error")).error(M)}return new m(z,B.type||"string",B.mimeType)},generateAsync:function(N,z){return this.generateInternalStream(N).accumulate(z)},generateNodeStream:function(N,z){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(z)}};s.exports=G},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(a,s,o){s.exports=a("stream")},{stream:void 0}],17:[function(a,s,o){var c=a("./DataReader");function d(f){c.call(this,f);for(var h=0;h<this.data.length;h++)f[h]=255&f[h]}a("../utils").inherits(d,c),d.prototype.byteAt=function(f){return this.data[this.zero+f]},d.prototype.lastIndexOfSignature=function(f){for(var h=f.charCodeAt(0),m=f.charCodeAt(1),g=f.charCodeAt(2),x=f.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===h&&this.data[b+1]===m&&this.data[b+2]===g&&this.data[b+3]===x)return b-this.zero;return-1},d.prototype.readAndCheckSignature=function(f){var h=f.charCodeAt(0),m=f.charCodeAt(1),g=f.charCodeAt(2),x=f.charCodeAt(3),b=this.readData(4);return h===b[0]&&m===b[1]&&g===b[2]&&x===b[3]},d.prototype.readData=function(f){if(this.checkOffset(f),f===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=d},{"../utils":32,"./DataReader":18}],18:[function(a,s,o){var c=a("../utils");function d(f){this.data=f,this.length=f.length,this.index=0,this.zero=0}d.prototype={checkOffset:function(f){this.checkIndex(this.index+f)},checkIndex:function(f){if(this.length<this.zero+f||f<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+f+"). Corrupted zip ?")},setIndex:function(f){this.checkIndex(f),this.index=f},skip:function(f){this.setIndex(this.index+f)},byteAt:function(){},readInt:function(f){var h,m=0;for(this.checkOffset(f),h=this.index+f-1;h>=this.index;h--)m=(m<<8)+this.byteAt(h);return this.index+=f,m},readString:function(f){return c.transformTo("string",this.readData(f))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var f=this.readInt(4);return new Date(Date.UTC(1980+(f>>25&127),(f>>21&15)-1,f>>16&31,f>>11&31,f>>5&63,(31&f)<<1))}},s.exports=d},{"../utils":32}],19:[function(a,s,o){var c=a("./Uint8ArrayReader");function d(f){c.call(this,f)}a("../utils").inherits(d,c),d.prototype.readData=function(f){this.checkOffset(f);var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=d},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,s,o){var c=a("./DataReader");function d(f){c.call(this,f)}a("../utils").inherits(d,c),d.prototype.byteAt=function(f){return this.data.charCodeAt(this.zero+f)},d.prototype.lastIndexOfSignature=function(f){return this.data.lastIndexOf(f)-this.zero},d.prototype.readAndCheckSignature=function(f){return f===this.readData(4)},d.prototype.readData=function(f){this.checkOffset(f);var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=d},{"../utils":32,"./DataReader":18}],21:[function(a,s,o){var c=a("./ArrayReader");function d(f){c.call(this,f)}a("../utils").inherits(d,c),d.prototype.readData=function(f){if(this.checkOffset(f),f===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=d},{"../utils":32,"./ArrayReader":17}],22:[function(a,s,o){var c=a("../utils"),d=a("../support"),f=a("./ArrayReader"),h=a("./StringReader"),m=a("./NodeBufferReader"),g=a("./Uint8ArrayReader");s.exports=function(x){var b=c.getTypeOf(x);return c.checkSupport(b),b!=="string"||d.uint8array?b==="nodebuffer"?new m(x):d.uint8array?new g(c.transformTo("uint8array",x)):new f(c.transformTo("array",x)):new h(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,s,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,s,o){var c=a("./GenericWorker"),d=a("../utils");function f(h){c.call(this,"ConvertWorker to "+h),this.destType=h}d.inherits(f,c),f.prototype.processChunk=function(h){this.push({data:d.transformTo(this.destType,h.data),meta:h.meta})},s.exports=f},{"../utils":32,"./GenericWorker":28}],25:[function(a,s,o){var c=a("./GenericWorker"),d=a("../crc32");function f(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(f,c),f.prototype.processChunk=function(h){this.streamInfo.crc32=d(h.data,this.streamInfo.crc32||0),this.push(h)},s.exports=f},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,s,o){var c=a("../utils"),d=a("./GenericWorker");function f(h){d.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}c.inherits(f,d),f.prototype.processChunk=function(h){if(h){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+h.data.length}d.prototype.processChunk.call(this,h)},s.exports=f},{"../utils":32,"./GenericWorker":28}],27:[function(a,s,o){var c=a("../utils"),d=a("./GenericWorker");function f(h){d.call(this,"DataWorker");var m=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(g){m.dataIsReady=!0,m.data=g,m.max=g&&g.length||0,m.type=c.getTypeOf(g),m.isPaused||m._tickAndRepeat()},function(g){m.error(g)})}c.inherits(f,d),f.prototype.cleanUp=function(){d.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,m=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,m);break;case"uint8array":h=this.data.subarray(this.index,m);break;case"array":case"nodebuffer":h=this.data.slice(this.index,m)}return this.index=m,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=f},{"../utils":32,"./GenericWorker":28}],28:[function(a,s,o){function c(d){this.name=d||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(d){this.emit("data",d)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(d){this.emit("error",d)}return!0},error:function(d){return!this.isFinished&&(this.isPaused?this.generatedError=d:(this.isFinished=!0,this.emit("error",d),this.previous&&this.previous.error(d),this.cleanUp()),!0)},on:function(d,f){return this._listeners[d].push(f),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(d,f){if(this._listeners[d])for(var h=0;h<this._listeners[d].length;h++)this._listeners[d][h].call(this,f)},pipe:function(d){return d.registerPrevious(this)},registerPrevious:function(d){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=d.streamInfo,this.mergeStreamInfo(),this.previous=d;var f=this;return d.on("data",function(h){f.processChunk(h)}),d.on("end",function(){f.end()}),d.on("error",function(h){f.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var d=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),d=!0),this.previous&&this.previous.resume(),!d},flush:function(){},processChunk:function(d){this.push(d)},withStreamInfo:function(d,f){return this.extraStreamInfo[d]=f,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var d in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,d)&&(this.streamInfo[d]=this.extraStreamInfo[d])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var d="Worker "+this.name;return this.previous?this.previous+" -> "+d:d}},s.exports=c},{}],29:[function(a,s,o){var c=a("../utils"),d=a("./ConvertWorker"),f=a("./GenericWorker"),h=a("../base64"),m=a("../support"),g=a("../external"),x=null;if(m.nodestream)try{x=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(k,S){return new g.Promise(function(E,T){var C=[],L=k._internalType,G=k._outputType,N=k._mimeType;k.on("data",function(z,B){C.push(z),S&&S(B)}).on("error",function(z){C=[],T(z)}).on("end",function(){try{var z=function(B,H,M){switch(B){case"blob":return c.newBlob(c.transformTo("arraybuffer",H),M);case"base64":return h.encode(H);default:return c.transformTo(B,H)}}(G,function(B,H){var M,R=0,Z=null,P=0;for(M=0;M<H.length;M++)P+=H[M].length;switch(B){case"string":return H.join("");case"array":return Array.prototype.concat.apply([],H);case"uint8array":for(Z=new Uint8Array(P),M=0;M<H.length;M++)Z.set(H[M],R),R+=H[M].length;return Z;case"nodebuffer":return Buffer.concat(H);default:throw new Error("concat : unsupported type '"+B+"'")}}(L,C),N);E(z)}catch(B){T(B)}C=[]}).resume()})}function A(k,S,E){var T=S;switch(S){case"blob":case"arraybuffer":T="uint8array";break;case"base64":T="string"}try{this._internalType=T,this._outputType=S,this._mimeType=E,c.checkSupport(T),this._worker=k.pipe(new d(T)),k.lock()}catch(C){this._worker=new f("error"),this._worker.error(C)}}A.prototype={accumulate:function(k){return b(this,k)},on:function(k,S){var E=this;return k==="data"?this._worker.on(k,function(T){S.call(E,T.data,T.meta)}):this._worker.on(k,function(){c.delay(S,arguments,E)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(k){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new x(this,{objectMode:this._outputType!=="nodebuffer"},k)}},s.exports=A},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,s,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var c=new ArrayBuffer(0);try{o.blob=new Blob([c],{type:"application/zip"}).size===0}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);d.append(c),o.blob=d.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!a("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(a,s,o){for(var c=a("./utils"),d=a("./support"),f=a("./nodejsUtils"),h=a("./stream/GenericWorker"),m=new Array(256),g=0;g<256;g++)m[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;m[254]=m[254]=1;function x(){h.call(this,"utf-8 decode"),this.leftOver=null}function b(){h.call(this,"utf-8 encode")}o.utf8encode=function(A){return d.nodebuffer?f.newBufferFrom(A,"utf-8"):function(k){var S,E,T,C,L,G=k.length,N=0;for(C=0;C<G;C++)(64512&(E=k.charCodeAt(C)))==55296&&C+1<G&&(64512&(T=k.charCodeAt(C+1)))==56320&&(E=65536+(E-55296<<10)+(T-56320),C++),N+=E<128?1:E<2048?2:E<65536?3:4;for(S=d.uint8array?new Uint8Array(N):new Array(N),C=L=0;L<N;C++)(64512&(E=k.charCodeAt(C)))==55296&&C+1<G&&(64512&(T=k.charCodeAt(C+1)))==56320&&(E=65536+(E-55296<<10)+(T-56320),C++),E<128?S[L++]=E:(E<2048?S[L++]=192|E>>>6:(E<65536?S[L++]=224|E>>>12:(S[L++]=240|E>>>18,S[L++]=128|E>>>12&63),S[L++]=128|E>>>6&63),S[L++]=128|63&E);return S}(A)},o.utf8decode=function(A){return d.nodebuffer?c.transformTo("nodebuffer",A).toString("utf-8"):function(k){var S,E,T,C,L=k.length,G=new Array(2*L);for(S=E=0;S<L;)if((T=k[S++])<128)G[E++]=T;else if(4<(C=m[T]))G[E++]=65533,S+=C-1;else{for(T&=C===2?31:C===3?15:7;1<C&&S<L;)T=T<<6|63&k[S++],C--;1<C?G[E++]=65533:T<65536?G[E++]=T:(T-=65536,G[E++]=55296|T>>10&1023,G[E++]=56320|1023&T)}return G.length!==E&&(G.subarray?G=G.subarray(0,E):G.length=E),c.applyFromCharCode(G)}(A=c.transformTo(d.uint8array?"uint8array":"array",A))},c.inherits(x,h),x.prototype.processChunk=function(A){var k=c.transformTo(d.uint8array?"uint8array":"array",A.data);if(this.leftOver&&this.leftOver.length){if(d.uint8array){var S=k;(k=new Uint8Array(S.length+this.leftOver.length)).set(this.leftOver,0),k.set(S,this.leftOver.length)}else k=this.leftOver.concat(k);this.leftOver=null}var E=function(C,L){var G;for((L=L||C.length)>C.length&&(L=C.length),G=L-1;0<=G&&(192&C[G])==128;)G--;return G<0||G===0?L:G+m[C[G]]>L?G:L}(k),T=k;E!==k.length&&(d.uint8array?(T=k.subarray(0,E),this.leftOver=k.subarray(E,k.length)):(T=k.slice(0,E),this.leftOver=k.slice(E,k.length))),this.push({data:o.utf8decode(T),meta:A.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=x,c.inherits(b,h),b.prototype.processChunk=function(A){this.push({data:o.utf8encode(A.data),meta:A.meta})},o.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,s,o){var c=a("./support"),d=a("./base64"),f=a("./nodejsUtils"),h=a("./external");function m(S){return S}function g(S,E){for(var T=0;T<S.length;++T)E[T]=255&S.charCodeAt(T);return E}a("setimmediate"),o.newBlob=function(S,E){o.checkSupport("blob");try{return new Blob([S],{type:E})}catch{try{var T=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return T.append(S),T.getBlob(E)}catch{throw new Error("Bug : can't construct the Blob.")}}};var x={stringifyByChunk:function(S,E,T){var C=[],L=0,G=S.length;if(G<=T)return String.fromCharCode.apply(null,S);for(;L<G;)E==="array"||E==="nodebuffer"?C.push(String.fromCharCode.apply(null,S.slice(L,Math.min(L+T,G)))):C.push(String.fromCharCode.apply(null,S.subarray(L,Math.min(L+T,G)))),L+=T;return C.join("")},stringifyByChar:function(S){for(var E="",T=0;T<S.length;T++)E+=String.fromCharCode(S[T]);return E},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,f.allocBuffer(1)).length===1}catch{return!1}}()}};function b(S){var E=65536,T=o.getTypeOf(S),C=!0;if(T==="uint8array"?C=x.applyCanBeUsed.uint8array:T==="nodebuffer"&&(C=x.applyCanBeUsed.nodebuffer),C)for(;1<E;)try{return x.stringifyByChunk(S,T,E)}catch{E=Math.floor(E/2)}return x.stringifyByChar(S)}function A(S,E){for(var T=0;T<S.length;T++)E[T]=S[T];return E}o.applyFromCharCode=b;var k={};k.string={string:m,array:function(S){return g(S,new Array(S.length))},arraybuffer:function(S){return k.string.uint8array(S).buffer},uint8array:function(S){return g(S,new Uint8Array(S.length))},nodebuffer:function(S){return g(S,f.allocBuffer(S.length))}},k.array={string:b,array:m,arraybuffer:function(S){return new Uint8Array(S).buffer},uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return f.newBufferFrom(S)}},k.arraybuffer={string:function(S){return b(new Uint8Array(S))},array:function(S){return A(new Uint8Array(S),new Array(S.byteLength))},arraybuffer:m,uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return f.newBufferFrom(new Uint8Array(S))}},k.uint8array={string:b,array:function(S){return A(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:m,nodebuffer:function(S){return f.newBufferFrom(S)}},k.nodebuffer={string:b,array:function(S){return A(S,new Array(S.length))},arraybuffer:function(S){return k.nodebuffer.uint8array(S).buffer},uint8array:function(S){return A(S,new Uint8Array(S.length))},nodebuffer:m},o.transformTo=function(S,E){if(E=E||"",!S)return E;o.checkSupport(S);var T=o.getTypeOf(E);return k[T][S](E)},o.resolve=function(S){for(var E=S.split("/"),T=[],C=0;C<E.length;C++){var L=E[C];L==="."||L===""&&C!==0&&C!==E.length-1||(L===".."?T.pop():T.push(L))}return T.join("/")},o.getTypeOf=function(S){return typeof S=="string"?"string":Object.prototype.toString.call(S)==="[object Array]"?"array":c.nodebuffer&&f.isBuffer(S)?"nodebuffer":c.uint8array&&S instanceof Uint8Array?"uint8array":c.arraybuffer&&S instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(S){if(!c[S.toLowerCase()])throw new Error(S+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(S){var E,T,C="";for(T=0;T<(S||"").length;T++)C+="\\x"+((E=S.charCodeAt(T))<16?"0":"")+E.toString(16).toUpperCase();return C},o.delay=function(S,E,T){setImmediate(function(){S.apply(T||null,E||[])})},o.inherits=function(S,E){function T(){}T.prototype=E.prototype,S.prototype=new T},o.extend=function(){var S,E,T={};for(S=0;S<arguments.length;S++)for(E in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],E)&&T[E]===void 0&&(T[E]=arguments[S][E]);return T},o.prepareContent=function(S,E,T,C,L){return h.Promise.resolve(E).then(function(G){return c.blob&&(G instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(G))!==-1)&&typeof FileReader<"u"?new h.Promise(function(N,z){var B=new FileReader;B.onload=function(H){N(H.target.result)},B.onerror=function(H){z(H.target.error)},B.readAsArrayBuffer(G)}):G}).then(function(G){var N=o.getTypeOf(G);return N?(N==="arraybuffer"?G=o.transformTo("uint8array",G):N==="string"&&(L?G=d.decode(G):T&&C!==!0&&(G=function(z){return g(z,c.uint8array?new Uint8Array(z.length):new Array(z.length))}(G))),G):h.Promise.reject(new Error("Can't read the data of '"+S+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(a,s,o){var c=a("./reader/readerFor"),d=a("./utils"),f=a("./signature"),h=a("./zipEntry"),m=a("./support");function g(x){this.files=[],this.loadOptions=x}g.prototype={checkSignature:function(x){if(!this.reader.readAndCheckSignature(x)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+d.pretty(b)+", expected "+d.pretty(x)+")")}},isSignature:function(x,b){var A=this.reader.index;this.reader.setIndex(x);var k=this.reader.readString(4)===b;return this.reader.setIndex(A),k},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var x=this.reader.readData(this.zipCommentLength),b=m.uint8array?"uint8array":"array",A=d.transformTo(b,x);this.zipComment=this.loadOptions.decodeFileName(A)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var x,b,A,k=this.zip64EndOfCentralSize-44;0<k;)x=this.reader.readInt(2),b=this.reader.readInt(4),A=this.reader.readData(b),this.zip64ExtensibleData[x]={id:x,length:b,value:A}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var x,b;for(x=0;x<this.files.length;x++)b=this.files[x],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var x;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(x=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(x);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var x=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(x<0)throw this.isSignature(0,f.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(x);var b=x;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===d.MAX_VALUE_16BITS||this.diskWithCentralDirStart===d.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===d.MAX_VALUE_16BITS||this.centralDirRecords===d.MAX_VALUE_16BITS||this.centralDirSize===d.MAX_VALUE_32BITS||this.centralDirOffset===d.MAX_VALUE_32BITS){if(this.zip64=!0,(x=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(x),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var A=this.centralDirOffset+this.centralDirSize;this.zip64&&(A+=20,A+=12+this.zip64EndOfCentralSize);var k=b-A;if(0<k)this.isSignature(b,f.CENTRAL_FILE_HEADER)||(this.reader.zero=k);else if(k<0)throw new Error("Corrupted zip: missing "+Math.abs(k)+" bytes.")},prepareReader:function(x){this.reader=c(x)},load:function(x){this.prepareReader(x),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=g},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(a,s,o){var c=a("./reader/readerFor"),d=a("./utils"),f=a("./compressedObject"),h=a("./crc32"),m=a("./utf8"),g=a("./compressions"),x=a("./support");function b(A,k){this.options=A,this.loadOptions=k}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(A){var k,S;if(A.skip(22),this.fileNameLength=A.readInt(2),S=A.readInt(2),this.fileName=A.readData(this.fileNameLength),A.skip(S),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((k=function(E){for(var T in g)if(Object.prototype.hasOwnProperty.call(g,T)&&g[T].magic===E)return g[T];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+d.pretty(this.compressionMethod)+" unknown (inner file : "+d.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,k,A.readData(this.compressedSize))},readCentralPart:function(A){this.versionMadeBy=A.readInt(2),A.skip(2),this.bitFlag=A.readInt(2),this.compressionMethod=A.readString(2),this.date=A.readDate(),this.crc32=A.readInt(4),this.compressedSize=A.readInt(4),this.uncompressedSize=A.readInt(4);var k=A.readInt(2);if(this.extraFieldsLength=A.readInt(2),this.fileCommentLength=A.readInt(2),this.diskNumberStart=A.readInt(2),this.internalFileAttributes=A.readInt(2),this.externalFileAttributes=A.readInt(4),this.localHeaderOffset=A.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");A.skip(k),this.readExtraFields(A),this.parseZIP64ExtraField(A),this.fileComment=A.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var A=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),A==0&&(this.dosPermissions=63&this.externalFileAttributes),A==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var A=c(this.extraFields[1].value);this.uncompressedSize===d.MAX_VALUE_32BITS&&(this.uncompressedSize=A.readInt(8)),this.compressedSize===d.MAX_VALUE_32BITS&&(this.compressedSize=A.readInt(8)),this.localHeaderOffset===d.MAX_VALUE_32BITS&&(this.localHeaderOffset=A.readInt(8)),this.diskNumberStart===d.MAX_VALUE_32BITS&&(this.diskNumberStart=A.readInt(4))}},readExtraFields:function(A){var k,S,E,T=A.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});A.index+4<T;)k=A.readInt(2),S=A.readInt(2),E=A.readData(S),this.extraFields[k]={id:k,length:S,value:E};A.setIndex(T)},handleUTF8:function(){var A=x.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=m.utf8decode(this.fileName),this.fileCommentStr=m.utf8decode(this.fileComment);else{var k=this.findExtraFieldUnicodePath();if(k!==null)this.fileNameStr=k;else{var S=d.transformTo(A,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var E=this.findExtraFieldUnicodeComment();if(E!==null)this.fileCommentStr=E;else{var T=d.transformTo(A,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(T)}}},findExtraFieldUnicodePath:function(){var A=this.extraFields[28789];if(A){var k=c(A.value);return k.readInt(1)!==1||h(this.fileName)!==k.readInt(4)?null:m.utf8decode(k.readData(A.length-5))}return null},findExtraFieldUnicodeComment:function(){var A=this.extraFields[25461];if(A){var k=c(A.value);return k.readInt(1)!==1||h(this.fileComment)!==k.readInt(4)?null:m.utf8decode(k.readData(A.length-5))}return null}},s.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,s,o){function c(k,S,E){this.name=k,this.dir=E.dir,this.date=E.date,this.comment=E.comment,this.unixPermissions=E.unixPermissions,this.dosPermissions=E.dosPermissions,this._data=S,this._dataBinary=E.binary,this.options={compression:E.compression,compressionOptions:E.compressionOptions}}var d=a("./stream/StreamHelper"),f=a("./stream/DataWorker"),h=a("./utf8"),m=a("./compressedObject"),g=a("./stream/GenericWorker");c.prototype={internalStream:function(k){var S=null,E="string";try{if(!k)throw new Error("No output type specified.");var T=(E=k.toLowerCase())==="string"||E==="text";E!=="binarystring"&&E!=="text"||(E="string"),S=this._decompressWorker();var C=!this._dataBinary;C&&!T&&(S=S.pipe(new h.Utf8EncodeWorker)),!C&&T&&(S=S.pipe(new h.Utf8DecodeWorker))}catch(L){(S=new g("error")).error(L)}return new d(S,E,"")},async:function(k,S){return this.internalStream(k).accumulate(S)},nodeStream:function(k,S){return this.internalStream(k||"nodebuffer").toNodejsStream(S)},_compressWorker:function(k,S){if(this._data instanceof m&&this._data.compression.magic===k.magic)return this._data.getCompressedWorker();var E=this._decompressWorker();return this._dataBinary||(E=E.pipe(new h.Utf8EncodeWorker)),m.createWorkerFrom(E,k,S)},_decompressWorker:function(){return this._data instanceof m?this._data.getContentWorker():this._data instanceof g?this._data:new f(this._data)}};for(var x=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},A=0;A<x.length;A++)c.prototype[x[A]]=b;s.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,s,o){(function(c){var d,f,h=c.MutationObserver||c.WebKitMutationObserver;if(h){var m=0,g=new h(k),x=c.document.createTextNode("");g.observe(x,{characterData:!0}),d=function(){x.data=m=++m%2}}else if(c.setImmediate||c.MessageChannel===void 0)d="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var S=c.document.createElement("script");S.onreadystatechange=function(){k(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},c.document.documentElement.appendChild(S)}:function(){setTimeout(k,0)};else{var b=new c.MessageChannel;b.port1.onmessage=k,d=function(){b.port2.postMessage(0)}}var A=[];function k(){var S,E;f=!0;for(var T=A.length;T;){for(E=A,A=[],S=-1;++S<T;)E[S]();T=A.length}f=!1}s.exports=function(S){A.push(S)!==1||f||d()}}).call(this,typeof _n<"u"?_n:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(a,s,o){var c=a("immediate");function d(){}var f={},h=["REJECTED"],m=["FULFILLED"],g=["PENDING"];function x(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,T!==d&&S(this,T)}function b(T,C,L){this.promise=T,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}function A(T,C,L){c(function(){var G;try{G=C(L)}catch(N){return f.reject(T,N)}G===T?f.reject(T,new TypeError("Cannot resolve promise with itself")):f.resolve(T,G)})}function k(T){var C=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof C=="function")return function(){C.apply(T,arguments)}}function S(T,C){var L=!1;function G(B){L||(L=!0,f.reject(T,B))}function N(B){L||(L=!0,f.resolve(T,B))}var z=E(function(){C(N,G)});z.status==="error"&&G(z.value)}function E(T,C){var L={};try{L.value=T(C),L.status="success"}catch(G){L.status="error",L.value=G}return L}(s.exports=x).prototype.finally=function(T){if(typeof T!="function")return this;var C=this.constructor;return this.then(function(L){return C.resolve(T()).then(function(){return L})},function(L){return C.resolve(T()).then(function(){throw L})})},x.prototype.catch=function(T){return this.then(null,T)},x.prototype.then=function(T,C){if(typeof T!="function"&&this.state===m||typeof C!="function"&&this.state===h)return this;var L=new this.constructor(d);return this.state!==g?A(L,this.state===m?T:C,this.outcome):this.queue.push(new b(L,T,C)),L},b.prototype.callFulfilled=function(T){f.resolve(this.promise,T)},b.prototype.otherCallFulfilled=function(T){A(this.promise,this.onFulfilled,T)},b.prototype.callRejected=function(T){f.reject(this.promise,T)},b.prototype.otherCallRejected=function(T){A(this.promise,this.onRejected,T)},f.resolve=function(T,C){var L=E(k,C);if(L.status==="error")return f.reject(T,L.value);var G=L.value;if(G)S(T,G);else{T.state=m,T.outcome=C;for(var N=-1,z=T.queue.length;++N<z;)T.queue[N].callFulfilled(C)}return T},f.reject=function(T,C){T.state=h,T.outcome=C;for(var L=-1,G=T.queue.length;++L<G;)T.queue[L].callRejected(C);return T},x.resolve=function(T){return T instanceof this?T:f.resolve(new this(d),T)},x.reject=function(T){var C=new this(d);return f.reject(C,T)},x.all=function(T){var C=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=T.length,G=!1;if(!L)return this.resolve([]);for(var N=new Array(L),z=0,B=-1,H=new this(d);++B<L;)M(T[B],B);return H;function M(R,Z){C.resolve(R).then(function(P){N[Z]=P,++z!==L||G||(G=!0,f.resolve(H,N))},function(P){G||(G=!0,f.reject(H,P))})}},x.race=function(T){var C=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=T.length,G=!1;if(!L)return this.resolve([]);for(var N=-1,z=new this(d);++N<L;)B=T[N],C.resolve(B).then(function(H){G||(G=!0,f.resolve(z,H))},function(H){G||(G=!0,f.reject(z,H))});var B;return z}},{immediate:36}],38:[function(a,s,o){var c={};(0,a("./lib/utils/common").assign)(c,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),s.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,s,o){var c=a("./zlib/deflate"),d=a("./utils/common"),f=a("./utils/strings"),h=a("./zlib/messages"),m=a("./zlib/zstream"),g=Object.prototype.toString,x=0,b=-1,A=0,k=8;function S(T){if(!(this instanceof S))return new S(T);this.options=d.assign({level:b,method:k,chunkSize:16384,windowBits:15,memLevel:8,strategy:A,to:""},T||{});var C=this.options;C.raw&&0<C.windowBits?C.windowBits=-C.windowBits:C.gzip&&0<C.windowBits&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var L=c.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(L!==x)throw new Error(h[L]);if(C.header&&c.deflateSetHeader(this.strm,C.header),C.dictionary){var G;if(G=typeof C.dictionary=="string"?f.string2buf(C.dictionary):g.call(C.dictionary)==="[object ArrayBuffer]"?new Uint8Array(C.dictionary):C.dictionary,(L=c.deflateSetDictionary(this.strm,G))!==x)throw new Error(h[L]);this._dict_set=!0}}function E(T,C){var L=new S(C);if(L.push(T,!0),L.err)throw L.msg||h[L.err];return L.result}S.prototype.push=function(T,C){var L,G,N=this.strm,z=this.options.chunkSize;if(this.ended)return!1;G=C===~~C?C:C===!0?4:0,typeof T=="string"?N.input=f.string2buf(T):g.call(T)==="[object ArrayBuffer]"?N.input=new Uint8Array(T):N.input=T,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new d.Buf8(z),N.next_out=0,N.avail_out=z),(L=c.deflate(N,G))!==1&&L!==x)return this.onEnd(L),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||G!==4&&G!==2)||(this.options.to==="string"?this.onData(f.buf2binstring(d.shrinkBuf(N.output,N.next_out))):this.onData(d.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&L!==1);return G===4?(L=c.deflateEnd(this.strm),this.onEnd(L),this.ended=!0,L===x):G!==2||(this.onEnd(x),!(N.avail_out=0))},S.prototype.onData=function(T){this.chunks.push(T)},S.prototype.onEnd=function(T){T===x&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg},o.Deflate=S,o.deflate=E,o.deflateRaw=function(T,C){return(C=C||{}).raw=!0,E(T,C)},o.gzip=function(T,C){return(C=C||{}).gzip=!0,E(T,C)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,s,o){var c=a("./zlib/inflate"),d=a("./utils/common"),f=a("./utils/strings"),h=a("./zlib/constants"),m=a("./zlib/messages"),g=a("./zlib/zstream"),x=a("./zlib/gzheader"),b=Object.prototype.toString;function A(S){if(!(this instanceof A))return new A(S);this.options=d.assign({chunkSize:16384,windowBits:0,to:""},S||{});var E=this.options;E.raw&&0<=E.windowBits&&E.windowBits<16&&(E.windowBits=-E.windowBits,E.windowBits===0&&(E.windowBits=-15)),!(0<=E.windowBits&&E.windowBits<16)||S&&S.windowBits||(E.windowBits+=32),15<E.windowBits&&E.windowBits<48&&(15&E.windowBits)==0&&(E.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var T=c.inflateInit2(this.strm,E.windowBits);if(T!==h.Z_OK)throw new Error(m[T]);this.header=new x,c.inflateGetHeader(this.strm,this.header)}function k(S,E){var T=new A(E);if(T.push(S,!0),T.err)throw T.msg||m[T.err];return T.result}A.prototype.push=function(S,E){var T,C,L,G,N,z,B=this.strm,H=this.options.chunkSize,M=this.options.dictionary,R=!1;if(this.ended)return!1;C=E===~~E?E:E===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof S=="string"?B.input=f.binstring2buf(S):b.call(S)==="[object ArrayBuffer]"?B.input=new Uint8Array(S):B.input=S,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new d.Buf8(H),B.next_out=0,B.avail_out=H),(T=c.inflate(B,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&M&&(z=typeof M=="string"?f.string2buf(M):b.call(M)==="[object ArrayBuffer]"?new Uint8Array(M):M,T=c.inflateSetDictionary(this.strm,z)),T===h.Z_BUF_ERROR&&R===!0&&(T=h.Z_OK,R=!1),T!==h.Z_STREAM_END&&T!==h.Z_OK)return this.onEnd(T),!(this.ended=!0);B.next_out&&(B.avail_out!==0&&T!==h.Z_STREAM_END&&(B.avail_in!==0||C!==h.Z_FINISH&&C!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(L=f.utf8border(B.output,B.next_out),G=B.next_out-L,N=f.buf2string(B.output,L),B.next_out=G,B.avail_out=H-G,G&&d.arraySet(B.output,B.output,L,G,0),this.onData(N)):this.onData(d.shrinkBuf(B.output,B.next_out)))),B.avail_in===0&&B.avail_out===0&&(R=!0)}while((0<B.avail_in||B.avail_out===0)&&T!==h.Z_STREAM_END);return T===h.Z_STREAM_END&&(C=h.Z_FINISH),C===h.Z_FINISH?(T=c.inflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===h.Z_OK):C!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(B.avail_out=0))},A.prototype.onData=function(S){this.chunks.push(S)},A.prototype.onEnd=function(S){S===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},o.Inflate=A,o.inflate=k,o.inflateRaw=function(S,E){return(E=E||{}).raw=!0,k(S,E)},o.ungzip=k},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(a,s,o){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(h){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var g=m.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])}}return h},o.shrinkBuf=function(h,m){return h.length===m?h:h.subarray?h.subarray(0,m):(h.length=m,h)};var d={arraySet:function(h,m,g,x,b){if(m.subarray&&h.subarray)h.set(m.subarray(g,g+x),b);else for(var A=0;A<x;A++)h[b+A]=m[g+A]},flattenChunks:function(h){var m,g,x,b,A,k;for(m=x=0,g=h.length;m<g;m++)x+=h[m].length;for(k=new Uint8Array(x),m=b=0,g=h.length;m<g;m++)A=h[m],k.set(A,b),b+=A.length;return k}},f={arraySet:function(h,m,g,x,b){for(var A=0;A<x;A++)h[b+A]=m[g+A]},flattenChunks:function(h){return[].concat.apply([],h)}};o.setTyped=function(h){h?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,d)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,f))},o.setTyped(c)},{}],42:[function(a,s,o){var c=a("./common"),d=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch{d=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{f=!1}for(var h=new c.Buf8(256),m=0;m<256;m++)h[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;function g(x,b){if(b<65537&&(x.subarray&&f||!x.subarray&&d))return String.fromCharCode.apply(null,c.shrinkBuf(x,b));for(var A="",k=0;k<b;k++)A+=String.fromCharCode(x[k]);return A}h[254]=h[254]=1,o.string2buf=function(x){var b,A,k,S,E,T=x.length,C=0;for(S=0;S<T;S++)(64512&(A=x.charCodeAt(S)))==55296&&S+1<T&&(64512&(k=x.charCodeAt(S+1)))==56320&&(A=65536+(A-55296<<10)+(k-56320),S++),C+=A<128?1:A<2048?2:A<65536?3:4;for(b=new c.Buf8(C),S=E=0;E<C;S++)(64512&(A=x.charCodeAt(S)))==55296&&S+1<T&&(64512&(k=x.charCodeAt(S+1)))==56320&&(A=65536+(A-55296<<10)+(k-56320),S++),A<128?b[E++]=A:(A<2048?b[E++]=192|A>>>6:(A<65536?b[E++]=224|A>>>12:(b[E++]=240|A>>>18,b[E++]=128|A>>>12&63),b[E++]=128|A>>>6&63),b[E++]=128|63&A);return b},o.buf2binstring=function(x){return g(x,x.length)},o.binstring2buf=function(x){for(var b=new c.Buf8(x.length),A=0,k=b.length;A<k;A++)b[A]=x.charCodeAt(A);return b},o.buf2string=function(x,b){var A,k,S,E,T=b||x.length,C=new Array(2*T);for(A=k=0;A<T;)if((S=x[A++])<128)C[k++]=S;else if(4<(E=h[S]))C[k++]=65533,A+=E-1;else{for(S&=E===2?31:E===3?15:7;1<E&&A<T;)S=S<<6|63&x[A++],E--;1<E?C[k++]=65533:S<65536?C[k++]=S:(S-=65536,C[k++]=55296|S>>10&1023,C[k++]=56320|1023&S)}return g(C,k)},o.utf8border=function(x,b){var A;for((b=b||x.length)>x.length&&(b=x.length),A=b-1;0<=A&&(192&x[A])==128;)A--;return A<0||A===0?b:A+h[x[A]]>b?A:b}},{"./common":41}],43:[function(a,s,o){s.exports=function(c,d,f,h){for(var m=65535&c|0,g=c>>>16&65535|0,x=0;f!==0;){for(f-=x=2e3<f?2e3:f;g=g+(m=m+d[h++]|0)|0,--x;);m%=65521,g%=65521}return m|g<<16|0}},{}],44:[function(a,s,o){s.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(a,s,o){var c=function(){for(var d,f=[],h=0;h<256;h++){d=h;for(var m=0;m<8;m++)d=1&d?3988292384^d>>>1:d>>>1;f[h]=d}return f}();s.exports=function(d,f,h,m){var g=c,x=m+h;d^=-1;for(var b=m;b<x;b++)d=d>>>8^g[255&(d^f[b])];return-1^d}},{}],46:[function(a,s,o){var c,d=a("../utils/common"),f=a("./trees"),h=a("./adler32"),m=a("./crc32"),g=a("./messages"),x=0,b=4,A=0,k=-2,S=-1,E=4,T=2,C=8,L=9,G=286,N=30,z=19,B=2*G+1,H=15,M=3,R=258,Z=R+M+1,P=42,V=113,j=1,K=2,X=3,w=4;function ue(_,de){return _.msg=g[de],de}function I(_){return(_<<1)-(4<_?9:0)}function v(_){for(var de=_.length;0<=--de;)_[de]=0}function O(_){var de=_.state,ce=de.pending;ce>_.avail_out&&(ce=_.avail_out),ce!==0&&(d.arraySet(_.output,de.pending_buf,de.pending_out,ce,_.next_out),_.next_out+=ce,de.pending_out+=ce,_.total_out+=ce,_.avail_out-=ce,de.pending-=ce,de.pending===0&&(de.pending_out=0))}function F(_,de){f._tr_flush_block(_,0<=_.block_start?_.block_start:-1,_.strstart-_.block_start,de),_.block_start=_.strstart,O(_.strm)}function J(_,de){_.pending_buf[_.pending++]=de}function Q(_,de){_.pending_buf[_.pending++]=de>>>8&255,_.pending_buf[_.pending++]=255&de}function ne(_,de){var ce,q,Y=_.max_chain_length,te=_.strstart,pe=_.prev_length,ye=_.nice_match,oe=_.strstart>_.w_size-Z?_.strstart-(_.w_size-Z):0,je=_.window,Te=_.w_mask,ee=_.prev,xe=_.strstart+R,ke=je[te+pe-1],Ce=je[te+pe];_.prev_length>=_.good_match&&(Y>>=2),ye>_.lookahead&&(ye=_.lookahead);do if(je[(ce=de)+pe]===Ce&&je[ce+pe-1]===ke&&je[ce]===je[te]&&je[++ce]===je[te+1]){te+=2,ce++;do;while(je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&te<xe);if(q=R-(xe-te),te=xe-R,pe<q){if(_.match_start=de,ye<=(pe=q))break;ke=je[te+pe-1],Ce=je[te+pe]}}while((de=ee[de&Te])>oe&&--Y!=0);return pe<=_.lookahead?pe:_.lookahead}function ie(_){var de,ce,q,Y,te,pe,ye,oe,je,Te,ee=_.w_size;do{if(Y=_.window_size-_.lookahead-_.strstart,_.strstart>=ee+(ee-Z)){for(d.arraySet(_.window,_.window,ee,ee,0),_.match_start-=ee,_.strstart-=ee,_.block_start-=ee,de=ce=_.hash_size;q=_.head[--de],_.head[de]=ee<=q?q-ee:0,--ce;);for(de=ce=ee;q=_.prev[--de],_.prev[de]=ee<=q?q-ee:0,--ce;);Y+=ee}if(_.strm.avail_in===0)break;if(pe=_.strm,ye=_.window,oe=_.strstart+_.lookahead,je=Y,Te=void 0,Te=pe.avail_in,je<Te&&(Te=je),ce=Te===0?0:(pe.avail_in-=Te,d.arraySet(ye,pe.input,pe.next_in,Te,oe),pe.state.wrap===1?pe.adler=h(pe.adler,ye,Te,oe):pe.state.wrap===2&&(pe.adler=m(pe.adler,ye,Te,oe)),pe.next_in+=Te,pe.total_in+=Te,Te),_.lookahead+=ce,_.lookahead+_.insert>=M)for(te=_.strstart-_.insert,_.ins_h=_.window[te],_.ins_h=(_.ins_h<<_.hash_shift^_.window[te+1])&_.hash_mask;_.insert&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[te+M-1])&_.hash_mask,_.prev[te&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=te,te++,_.insert--,!(_.lookahead+_.insert<M)););}while(_.lookahead<Z&&_.strm.avail_in!==0)}function be(_,de){for(var ce,q;;){if(_.lookahead<Z){if(ie(_),_.lookahead<Z&&de===x)return j;if(_.lookahead===0)break}if(ce=0,_.lookahead>=M&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+M-1])&_.hash_mask,ce=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),ce!==0&&_.strstart-ce<=_.w_size-Z&&(_.match_length=ne(_,ce)),_.match_length>=M)if(q=f._tr_tally(_,_.strstart-_.match_start,_.match_length-M),_.lookahead-=_.match_length,_.match_length<=_.max_lazy_match&&_.lookahead>=M){for(_.match_length--;_.strstart++,_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+M-1])&_.hash_mask,ce=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart,--_.match_length!=0;);_.strstart++}else _.strstart+=_.match_length,_.match_length=0,_.ins_h=_.window[_.strstart],_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+1])&_.hash_mask;else q=f._tr_tally(_,0,_.window[_.strstart]),_.lookahead--,_.strstart++;if(q&&(F(_,!1),_.strm.avail_out===0))return j}return _.insert=_.strstart<M-1?_.strstart:M-1,de===b?(F(_,!0),_.strm.avail_out===0?X:w):_.last_lit&&(F(_,!1),_.strm.avail_out===0)?j:K}function Se(_,de){for(var ce,q,Y;;){if(_.lookahead<Z){if(ie(_),_.lookahead<Z&&de===x)return j;if(_.lookahead===0)break}if(ce=0,_.lookahead>=M&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+M-1])&_.hash_mask,ce=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),_.prev_length=_.match_length,_.prev_match=_.match_start,_.match_length=M-1,ce!==0&&_.prev_length<_.max_lazy_match&&_.strstart-ce<=_.w_size-Z&&(_.match_length=ne(_,ce),_.match_length<=5&&(_.strategy===1||_.match_length===M&&4096<_.strstart-_.match_start)&&(_.match_length=M-1)),_.prev_length>=M&&_.match_length<=_.prev_length){for(Y=_.strstart+_.lookahead-M,q=f._tr_tally(_,_.strstart-1-_.prev_match,_.prev_length-M),_.lookahead-=_.prev_length-1,_.prev_length-=2;++_.strstart<=Y&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+M-1])&_.hash_mask,ce=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),--_.prev_length!=0;);if(_.match_available=0,_.match_length=M-1,_.strstart++,q&&(F(_,!1),_.strm.avail_out===0))return j}else if(_.match_available){if((q=f._tr_tally(_,0,_.window[_.strstart-1]))&&F(_,!1),_.strstart++,_.lookahead--,_.strm.avail_out===0)return j}else _.match_available=1,_.strstart++,_.lookahead--}return _.match_available&&(q=f._tr_tally(_,0,_.window[_.strstart-1]),_.match_available=0),_.insert=_.strstart<M-1?_.strstart:M-1,de===b?(F(_,!0),_.strm.avail_out===0?X:w):_.last_lit&&(F(_,!1),_.strm.avail_out===0)?j:K}function Ae(_,de,ce,q,Y){this.good_length=_,this.max_lazy=de,this.nice_length=ce,this.max_chain=q,this.func=Y}function Ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new d.Buf16(2*B),this.dyn_dtree=new d.Buf16(2*(2*N+1)),this.bl_tree=new d.Buf16(2*(2*z+1)),v(this.dyn_ltree),v(this.dyn_dtree),v(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(H+1),this.heap=new d.Buf16(2*G+1),v(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(2*G+1),v(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Oe(_){var de;return _&&_.state?(_.total_in=_.total_out=0,_.data_type=T,(de=_.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?P:V,_.adler=de.wrap===2?0:1,de.last_flush=x,f._tr_init(de),A):ue(_,k)}function Le(_){var de=Oe(_);return de===A&&function(ce){ce.window_size=2*ce.w_size,v(ce.head),ce.max_lazy_match=c[ce.level].max_lazy,ce.good_match=c[ce.level].good_length,ce.nice_match=c[ce.level].nice_length,ce.max_chain_length=c[ce.level].max_chain,ce.strstart=0,ce.block_start=0,ce.lookahead=0,ce.insert=0,ce.match_length=ce.prev_length=M-1,ce.match_available=0,ce.ins_h=0}(_.state),de}function Re(_,de,ce,q,Y,te){if(!_)return k;var pe=1;if(de===S&&(de=6),q<0?(pe=0,q=-q):15<q&&(pe=2,q-=16),Y<1||L<Y||ce!==C||q<8||15<q||de<0||9<de||te<0||E<te)return ue(_,k);q===8&&(q=9);var ye=new Ne;return(_.state=ye).strm=_,ye.wrap=pe,ye.gzhead=null,ye.w_bits=q,ye.w_size=1<<ye.w_bits,ye.w_mask=ye.w_size-1,ye.hash_bits=Y+7,ye.hash_size=1<<ye.hash_bits,ye.hash_mask=ye.hash_size-1,ye.hash_shift=~~((ye.hash_bits+M-1)/M),ye.window=new d.Buf8(2*ye.w_size),ye.head=new d.Buf16(ye.hash_size),ye.prev=new d.Buf16(ye.w_size),ye.lit_bufsize=1<<Y+6,ye.pending_buf_size=4*ye.lit_bufsize,ye.pending_buf=new d.Buf8(ye.pending_buf_size),ye.d_buf=1*ye.lit_bufsize,ye.l_buf=3*ye.lit_bufsize,ye.level=de,ye.strategy=te,ye.method=ce,Le(_)}c=[new Ae(0,0,0,0,function(_,de){var ce=65535;for(ce>_.pending_buf_size-5&&(ce=_.pending_buf_size-5);;){if(_.lookahead<=1){if(ie(_),_.lookahead===0&&de===x)return j;if(_.lookahead===0)break}_.strstart+=_.lookahead,_.lookahead=0;var q=_.block_start+ce;if((_.strstart===0||_.strstart>=q)&&(_.lookahead=_.strstart-q,_.strstart=q,F(_,!1),_.strm.avail_out===0)||_.strstart-_.block_start>=_.w_size-Z&&(F(_,!1),_.strm.avail_out===0))return j}return _.insert=0,de===b?(F(_,!0),_.strm.avail_out===0?X:w):(_.strstart>_.block_start&&(F(_,!1),_.strm.avail_out),j)}),new Ae(4,4,8,4,be),new Ae(4,5,16,8,be),new Ae(4,6,32,32,be),new Ae(4,4,16,16,Se),new Ae(8,16,32,32,Se),new Ae(8,16,128,128,Se),new Ae(8,32,128,256,Se),new Ae(32,128,258,1024,Se),new Ae(32,258,258,4096,Se)],o.deflateInit=function(_,de){return Re(_,de,C,15,8,0)},o.deflateInit2=Re,o.deflateReset=Le,o.deflateResetKeep=Oe,o.deflateSetHeader=function(_,de){return _&&_.state?_.state.wrap!==2?k:(_.state.gzhead=de,A):k},o.deflate=function(_,de){var ce,q,Y,te;if(!_||!_.state||5<de||de<0)return _?ue(_,k):k;if(q=_.state,!_.output||!_.input&&_.avail_in!==0||q.status===666&&de!==b)return ue(_,_.avail_out===0?-5:k);if(q.strm=_,ce=q.last_flush,q.last_flush=de,q.status===P)if(q.wrap===2)_.adler=0,J(q,31),J(q,139),J(q,8),q.gzhead?(J(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(q.gzhead.extra?4:0)+(q.gzhead.name?8:0)+(q.gzhead.comment?16:0)),J(q,255&q.gzhead.time),J(q,q.gzhead.time>>8&255),J(q,q.gzhead.time>>16&255),J(q,q.gzhead.time>>24&255),J(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),J(q,255&q.gzhead.os),q.gzhead.extra&&q.gzhead.extra.length&&(J(q,255&q.gzhead.extra.length),J(q,q.gzhead.extra.length>>8&255)),q.gzhead.hcrc&&(_.adler=m(_.adler,q.pending_buf,q.pending,0)),q.gzindex=0,q.status=69):(J(q,0),J(q,0),J(q,0),J(q,0),J(q,0),J(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),J(q,3),q.status=V);else{var pe=C+(q.w_bits-8<<4)<<8;pe|=(2<=q.strategy||q.level<2?0:q.level<6?1:q.level===6?2:3)<<6,q.strstart!==0&&(pe|=32),pe+=31-pe%31,q.status=V,Q(q,pe),q.strstart!==0&&(Q(q,_.adler>>>16),Q(q,65535&_.adler)),_.adler=1}if(q.status===69)if(q.gzhead.extra){for(Y=q.pending;q.gzindex<(65535&q.gzhead.extra.length)&&(q.pending!==q.pending_buf_size||(q.gzhead.hcrc&&q.pending>Y&&(_.adler=m(_.adler,q.pending_buf,q.pending-Y,Y)),O(_),Y=q.pending,q.pending!==q.pending_buf_size));)J(q,255&q.gzhead.extra[q.gzindex]),q.gzindex++;q.gzhead.hcrc&&q.pending>Y&&(_.adler=m(_.adler,q.pending_buf,q.pending-Y,Y)),q.gzindex===q.gzhead.extra.length&&(q.gzindex=0,q.status=73)}else q.status=73;if(q.status===73)if(q.gzhead.name){Y=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>Y&&(_.adler=m(_.adler,q.pending_buf,q.pending-Y,Y)),O(_),Y=q.pending,q.pending===q.pending_buf_size)){te=1;break}te=q.gzindex<q.gzhead.name.length?255&q.gzhead.name.charCodeAt(q.gzindex++):0,J(q,te)}while(te!==0);q.gzhead.hcrc&&q.pending>Y&&(_.adler=m(_.adler,q.pending_buf,q.pending-Y,Y)),te===0&&(q.gzindex=0,q.status=91)}else q.status=91;if(q.status===91)if(q.gzhead.comment){Y=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>Y&&(_.adler=m(_.adler,q.pending_buf,q.pending-Y,Y)),O(_),Y=q.pending,q.pending===q.pending_buf_size)){te=1;break}te=q.gzindex<q.gzhead.comment.length?255&q.gzhead.comment.charCodeAt(q.gzindex++):0,J(q,te)}while(te!==0);q.gzhead.hcrc&&q.pending>Y&&(_.adler=m(_.adler,q.pending_buf,q.pending-Y,Y)),te===0&&(q.status=103)}else q.status=103;if(q.status===103&&(q.gzhead.hcrc?(q.pending+2>q.pending_buf_size&&O(_),q.pending+2<=q.pending_buf_size&&(J(q,255&_.adler),J(q,_.adler>>8&255),_.adler=0,q.status=V)):q.status=V),q.pending!==0){if(O(_),_.avail_out===0)return q.last_flush=-1,A}else if(_.avail_in===0&&I(de)<=I(ce)&&de!==b)return ue(_,-5);if(q.status===666&&_.avail_in!==0)return ue(_,-5);if(_.avail_in!==0||q.lookahead!==0||de!==x&&q.status!==666){var ye=q.strategy===2?function(oe,je){for(var Te;;){if(oe.lookahead===0&&(ie(oe),oe.lookahead===0)){if(je===x)return j;break}if(oe.match_length=0,Te=f._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,Te&&(F(oe,!1),oe.strm.avail_out===0))return j}return oe.insert=0,je===b?(F(oe,!0),oe.strm.avail_out===0?X:w):oe.last_lit&&(F(oe,!1),oe.strm.avail_out===0)?j:K}(q,de):q.strategy===3?function(oe,je){for(var Te,ee,xe,ke,Ce=oe.window;;){if(oe.lookahead<=R){if(ie(oe),oe.lookahead<=R&&je===x)return j;if(oe.lookahead===0)break}if(oe.match_length=0,oe.lookahead>=M&&0<oe.strstart&&(ee=Ce[xe=oe.strstart-1])===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]){ke=oe.strstart+R;do;while(ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&xe<ke);oe.match_length=R-(ke-xe),oe.match_length>oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=M?(Te=f._tr_tally(oe,1,oe.match_length-M),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(Te=f._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),Te&&(F(oe,!1),oe.strm.avail_out===0))return j}return oe.insert=0,je===b?(F(oe,!0),oe.strm.avail_out===0?X:w):oe.last_lit&&(F(oe,!1),oe.strm.avail_out===0)?j:K}(q,de):c[q.level].func(q,de);if(ye!==X&&ye!==w||(q.status=666),ye===j||ye===X)return _.avail_out===0&&(q.last_flush=-1),A;if(ye===K&&(de===1?f._tr_align(q):de!==5&&(f._tr_stored_block(q,0,0,!1),de===3&&(v(q.head),q.lookahead===0&&(q.strstart=0,q.block_start=0,q.insert=0))),O(_),_.avail_out===0))return q.last_flush=-1,A}return de!==b?A:q.wrap<=0?1:(q.wrap===2?(J(q,255&_.adler),J(q,_.adler>>8&255),J(q,_.adler>>16&255),J(q,_.adler>>24&255),J(q,255&_.total_in),J(q,_.total_in>>8&255),J(q,_.total_in>>16&255),J(q,_.total_in>>24&255)):(Q(q,_.adler>>>16),Q(q,65535&_.adler)),O(_),0<q.wrap&&(q.wrap=-q.wrap),q.pending!==0?A:1)},o.deflateEnd=function(_){var de;return _&&_.state?(de=_.state.status)!==P&&de!==69&&de!==73&&de!==91&&de!==103&&de!==V&&de!==666?ue(_,k):(_.state=null,de===V?ue(_,-3):A):k},o.deflateSetDictionary=function(_,de){var ce,q,Y,te,pe,ye,oe,je,Te=de.length;if(!_||!_.state||(te=(ce=_.state).wrap)===2||te===1&&ce.status!==P||ce.lookahead)return k;for(te===1&&(_.adler=h(_.adler,de,Te,0)),ce.wrap=0,Te>=ce.w_size&&(te===0&&(v(ce.head),ce.strstart=0,ce.block_start=0,ce.insert=0),je=new d.Buf8(ce.w_size),d.arraySet(je,de,Te-ce.w_size,ce.w_size,0),de=je,Te=ce.w_size),pe=_.avail_in,ye=_.next_in,oe=_.input,_.avail_in=Te,_.next_in=0,_.input=de,ie(ce);ce.lookahead>=M;){for(q=ce.strstart,Y=ce.lookahead-(M-1);ce.ins_h=(ce.ins_h<<ce.hash_shift^ce.window[q+M-1])&ce.hash_mask,ce.prev[q&ce.w_mask]=ce.head[ce.ins_h],ce.head[ce.ins_h]=q,q++,--Y;);ce.strstart=q,ce.lookahead=M-1,ie(ce)}return ce.strstart+=ce.lookahead,ce.block_start=ce.strstart,ce.insert=ce.lookahead,ce.lookahead=0,ce.match_length=ce.prev_length=M-1,ce.match_available=0,_.next_in=ye,_.input=oe,_.avail_in=pe,ce.wrap=te,A},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(a,s,o){s.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(a,s,o){s.exports=function(c,d){var f,h,m,g,x,b,A,k,S,E,T,C,L,G,N,z,B,H,M,R,Z,P,V,j,K;f=c.state,h=c.next_in,j=c.input,m=h+(c.avail_in-5),g=c.next_out,K=c.output,x=g-(d-c.avail_out),b=g+(c.avail_out-257),A=f.dmax,k=f.wsize,S=f.whave,E=f.wnext,T=f.window,C=f.hold,L=f.bits,G=f.lencode,N=f.distcode,z=(1<<f.lenbits)-1,B=(1<<f.distbits)-1;e:do{L<15&&(C+=j[h++]<<L,L+=8,C+=j[h++]<<L,L+=8),H=G[C&z];t:for(;;){if(C>>>=M=H>>>24,L-=M,(M=H>>>16&255)===0)K[g++]=65535&H;else{if(!(16&M)){if((64&M)==0){H=G[(65535&H)+(C&(1<<M)-1)];continue t}if(32&M){f.mode=12;break e}c.msg="invalid literal/length code",f.mode=30;break e}R=65535&H,(M&=15)&&(L<M&&(C+=j[h++]<<L,L+=8),R+=C&(1<<M)-1,C>>>=M,L-=M),L<15&&(C+=j[h++]<<L,L+=8,C+=j[h++]<<L,L+=8),H=N[C&B];n:for(;;){if(C>>>=M=H>>>24,L-=M,!(16&(M=H>>>16&255))){if((64&M)==0){H=N[(65535&H)+(C&(1<<M)-1)];continue n}c.msg="invalid distance code",f.mode=30;break e}if(Z=65535&H,L<(M&=15)&&(C+=j[h++]<<L,(L+=8)<M&&(C+=j[h++]<<L,L+=8)),A<(Z+=C&(1<<M)-1)){c.msg="invalid distance too far back",f.mode=30;break e}if(C>>>=M,L-=M,(M=g-x)<Z){if(S<(M=Z-M)&&f.sane){c.msg="invalid distance too far back",f.mode=30;break e}if(V=T,(P=0)===E){if(P+=k-M,M<R){for(R-=M;K[g++]=T[P++],--M;);P=g-Z,V=K}}else if(E<M){if(P+=k+E-M,(M-=E)<R){for(R-=M;K[g++]=T[P++],--M;);if(P=0,E<R){for(R-=M=E;K[g++]=T[P++],--M;);P=g-Z,V=K}}}else if(P+=E-M,M<R){for(R-=M;K[g++]=T[P++],--M;);P=g-Z,V=K}for(;2<R;)K[g++]=V[P++],K[g++]=V[P++],K[g++]=V[P++],R-=3;R&&(K[g++]=V[P++],1<R&&(K[g++]=V[P++]))}else{for(P=g-Z;K[g++]=K[P++],K[g++]=K[P++],K[g++]=K[P++],2<(R-=3););R&&(K[g++]=K[P++],1<R&&(K[g++]=K[P++]))}break}}break}}while(h<m&&g<b);h-=R=L>>3,C&=(1<<(L-=R<<3))-1,c.next_in=h,c.next_out=g,c.avail_in=h<m?m-h+5:5-(h-m),c.avail_out=g<b?b-g+257:257-(g-b),f.hold=C,f.bits=L}},{}],49:[function(a,s,o){var c=a("../utils/common"),d=a("./adler32"),f=a("./crc32"),h=a("./inffast"),m=a("./inftrees"),g=1,x=2,b=0,A=-2,k=1,S=852,E=592;function T(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function C(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(P){var V;return P&&P.state?(V=P.state,P.total_in=P.total_out=V.total=0,P.msg="",V.wrap&&(P.adler=1&V.wrap),V.mode=k,V.last=0,V.havedict=0,V.dmax=32768,V.head=null,V.hold=0,V.bits=0,V.lencode=V.lendyn=new c.Buf32(S),V.distcode=V.distdyn=new c.Buf32(E),V.sane=1,V.back=-1,b):A}function G(P){var V;return P&&P.state?((V=P.state).wsize=0,V.whave=0,V.wnext=0,L(P)):A}function N(P,V){var j,K;return P&&P.state?(K=P.state,V<0?(j=0,V=-V):(j=1+(V>>4),V<48&&(V&=15)),V&&(V<8||15<V)?A:(K.window!==null&&K.wbits!==V&&(K.window=null),K.wrap=j,K.wbits=V,G(P))):A}function z(P,V){var j,K;return P?(K=new C,(P.state=K).window=null,(j=N(P,V))!==b&&(P.state=null),j):A}var B,H,M=!0;function R(P){if(M){var V;for(B=new c.Buf32(512),H=new c.Buf32(32),V=0;V<144;)P.lens[V++]=8;for(;V<256;)P.lens[V++]=9;for(;V<280;)P.lens[V++]=7;for(;V<288;)P.lens[V++]=8;for(m(g,P.lens,0,288,B,0,P.work,{bits:9}),V=0;V<32;)P.lens[V++]=5;m(x,P.lens,0,32,H,0,P.work,{bits:5}),M=!1}P.lencode=B,P.lenbits=9,P.distcode=H,P.distbits=5}function Z(P,V,j,K){var X,w=P.state;return w.window===null&&(w.wsize=1<<w.wbits,w.wnext=0,w.whave=0,w.window=new c.Buf8(w.wsize)),K>=w.wsize?(c.arraySet(w.window,V,j-w.wsize,w.wsize,0),w.wnext=0,w.whave=w.wsize):(K<(X=w.wsize-w.wnext)&&(X=K),c.arraySet(w.window,V,j-K,X,w.wnext),(K-=X)?(c.arraySet(w.window,V,j-K,K,0),w.wnext=K,w.whave=w.wsize):(w.wnext+=X,w.wnext===w.wsize&&(w.wnext=0),w.whave<w.wsize&&(w.whave+=X))),0}o.inflateReset=G,o.inflateReset2=N,o.inflateResetKeep=L,o.inflateInit=function(P){return z(P,15)},o.inflateInit2=z,o.inflate=function(P,V){var j,K,X,w,ue,I,v,O,F,J,Q,ne,ie,be,Se,Ae,Ne,Oe,Le,Re,_,de,ce,q,Y=0,te=new c.Buf8(4),pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return A;(j=P.state).mode===12&&(j.mode=13),ue=P.next_out,X=P.output,v=P.avail_out,w=P.next_in,K=P.input,I=P.avail_in,O=j.hold,F=j.bits,J=I,Q=v,de=b;e:for(;;)switch(j.mode){case k:if(j.wrap===0){j.mode=13;break}for(;F<16;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if(2&j.wrap&&O===35615){te[j.check=0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0),F=O=0,j.mode=2;break}if(j.flags=0,j.head&&(j.head.done=!1),!(1&j.wrap)||(((255&O)<<8)+(O>>8))%31){P.msg="incorrect header check",j.mode=30;break}if((15&O)!=8){P.msg="unknown compression method",j.mode=30;break}if(F-=4,_=8+(15&(O>>>=4)),j.wbits===0)j.wbits=_;else if(_>j.wbits){P.msg="invalid window size",j.mode=30;break}j.dmax=1<<_,P.adler=j.check=1,j.mode=512&O?10:12,F=O=0;break;case 2:for(;F<16;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if(j.flags=O,(255&j.flags)!=8){P.msg="unknown compression method",j.mode=30;break}if(57344&j.flags){P.msg="unknown header flags set",j.mode=30;break}j.head&&(j.head.text=O>>8&1),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),F=O=0,j.mode=3;case 3:for(;F<32;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}j.head&&(j.head.time=O),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,te[2]=O>>>16&255,te[3]=O>>>24&255,j.check=f(j.check,te,4,0)),F=O=0,j.mode=4;case 4:for(;F<16;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}j.head&&(j.head.xflags=255&O,j.head.os=O>>8),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),F=O=0,j.mode=5;case 5:if(1024&j.flags){for(;F<16;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}j.length=O,j.head&&(j.head.extra_len=O),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),F=O=0}else j.head&&(j.head.extra=null);j.mode=6;case 6:if(1024&j.flags&&(I<(ne=j.length)&&(ne=I),ne&&(j.head&&(_=j.head.extra_len-j.length,j.head.extra||(j.head.extra=new Array(j.head.extra_len)),c.arraySet(j.head.extra,K,w,ne,_)),512&j.flags&&(j.check=f(j.check,K,ne,w)),I-=ne,w+=ne,j.length-=ne),j.length))break e;j.length=0,j.mode=7;case 7:if(2048&j.flags){if(I===0)break e;for(ne=0;_=K[w+ne++],j.head&&_&&j.length<65536&&(j.head.name+=String.fromCharCode(_)),_&&ne<I;);if(512&j.flags&&(j.check=f(j.check,K,ne,w)),I-=ne,w+=ne,_)break e}else j.head&&(j.head.name=null);j.length=0,j.mode=8;case 8:if(4096&j.flags){if(I===0)break e;for(ne=0;_=K[w+ne++],j.head&&_&&j.length<65536&&(j.head.comment+=String.fromCharCode(_)),_&&ne<I;);if(512&j.flags&&(j.check=f(j.check,K,ne,w)),I-=ne,w+=ne,_)break e}else j.head&&(j.head.comment=null);j.mode=9;case 9:if(512&j.flags){for(;F<16;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if(O!==(65535&j.check)){P.msg="header crc mismatch",j.mode=30;break}F=O=0}j.head&&(j.head.hcrc=j.flags>>9&1,j.head.done=!0),P.adler=j.check=0,j.mode=12;break;case 10:for(;F<32;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}P.adler=j.check=T(O),F=O=0,j.mode=11;case 11:if(j.havedict===0)return P.next_out=ue,P.avail_out=v,P.next_in=w,P.avail_in=I,j.hold=O,j.bits=F,2;P.adler=j.check=1,j.mode=12;case 12:if(V===5||V===6)break e;case 13:if(j.last){O>>>=7&F,F-=7&F,j.mode=27;break}for(;F<3;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}switch(j.last=1&O,F-=1,3&(O>>>=1)){case 0:j.mode=14;break;case 1:if(R(j),j.mode=20,V!==6)break;O>>>=2,F-=2;break e;case 2:j.mode=17;break;case 3:P.msg="invalid block type",j.mode=30}O>>>=2,F-=2;break;case 14:for(O>>>=7&F,F-=7&F;F<32;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if((65535&O)!=(O>>>16^65535)){P.msg="invalid stored block lengths",j.mode=30;break}if(j.length=65535&O,F=O=0,j.mode=15,V===6)break e;case 15:j.mode=16;case 16:if(ne=j.length){if(I<ne&&(ne=I),v<ne&&(ne=v),ne===0)break e;c.arraySet(X,K,w,ne,ue),I-=ne,w+=ne,v-=ne,ue+=ne,j.length-=ne;break}j.mode=12;break;case 17:for(;F<14;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if(j.nlen=257+(31&O),O>>>=5,F-=5,j.ndist=1+(31&O),O>>>=5,F-=5,j.ncode=4+(15&O),O>>>=4,F-=4,286<j.nlen||30<j.ndist){P.msg="too many length or distance symbols",j.mode=30;break}j.have=0,j.mode=18;case 18:for(;j.have<j.ncode;){for(;F<3;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}j.lens[pe[j.have++]]=7&O,O>>>=3,F-=3}for(;j.have<19;)j.lens[pe[j.have++]]=0;if(j.lencode=j.lendyn,j.lenbits=7,ce={bits:j.lenbits},de=m(0,j.lens,0,19,j.lencode,0,j.work,ce),j.lenbits=ce.bits,de){P.msg="invalid code lengths set",j.mode=30;break}j.have=0,j.mode=19;case 19:for(;j.have<j.nlen+j.ndist;){for(;Ae=(Y=j.lencode[O&(1<<j.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=F);){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if(Ne<16)O>>>=Se,F-=Se,j.lens[j.have++]=Ne;else{if(Ne===16){for(q=Se+2;F<q;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if(O>>>=Se,F-=Se,j.have===0){P.msg="invalid bit length repeat",j.mode=30;break}_=j.lens[j.have-1],ne=3+(3&O),O>>>=2,F-=2}else if(Ne===17){for(q=Se+3;F<q;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}F-=Se,_=0,ne=3+(7&(O>>>=Se)),O>>>=3,F-=3}else{for(q=Se+7;F<q;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}F-=Se,_=0,ne=11+(127&(O>>>=Se)),O>>>=7,F-=7}if(j.have+ne>j.nlen+j.ndist){P.msg="invalid bit length repeat",j.mode=30;break}for(;ne--;)j.lens[j.have++]=_}}if(j.mode===30)break;if(j.lens[256]===0){P.msg="invalid code -- missing end-of-block",j.mode=30;break}if(j.lenbits=9,ce={bits:j.lenbits},de=m(g,j.lens,0,j.nlen,j.lencode,0,j.work,ce),j.lenbits=ce.bits,de){P.msg="invalid literal/lengths set",j.mode=30;break}if(j.distbits=6,j.distcode=j.distdyn,ce={bits:j.distbits},de=m(x,j.lens,j.nlen,j.ndist,j.distcode,0,j.work,ce),j.distbits=ce.bits,de){P.msg="invalid distances set",j.mode=30;break}if(j.mode=20,V===6)break e;case 20:j.mode=21;case 21:if(6<=I&&258<=v){P.next_out=ue,P.avail_out=v,P.next_in=w,P.avail_in=I,j.hold=O,j.bits=F,h(P,Q),ue=P.next_out,X=P.output,v=P.avail_out,w=P.next_in,K=P.input,I=P.avail_in,O=j.hold,F=j.bits,j.mode===12&&(j.back=-1);break}for(j.back=0;Ae=(Y=j.lencode[O&(1<<j.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=F);){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if(Ae&&(240&Ae)==0){for(Oe=Se,Le=Ae,Re=Ne;Ae=(Y=j.lencode[Re+((O&(1<<Oe+Le)-1)>>Oe)])>>>16&255,Ne=65535&Y,!(Oe+(Se=Y>>>24)<=F);){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}O>>>=Oe,F-=Oe,j.back+=Oe}if(O>>>=Se,F-=Se,j.back+=Se,j.length=Ne,Ae===0){j.mode=26;break}if(32&Ae){j.back=-1,j.mode=12;break}if(64&Ae){P.msg="invalid literal/length code",j.mode=30;break}j.extra=15&Ae,j.mode=22;case 22:if(j.extra){for(q=j.extra;F<q;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}j.length+=O&(1<<j.extra)-1,O>>>=j.extra,F-=j.extra,j.back+=j.extra}j.was=j.length,j.mode=23;case 23:for(;Ae=(Y=j.distcode[O&(1<<j.distbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=F);){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if((240&Ae)==0){for(Oe=Se,Le=Ae,Re=Ne;Ae=(Y=j.distcode[Re+((O&(1<<Oe+Le)-1)>>Oe)])>>>16&255,Ne=65535&Y,!(Oe+(Se=Y>>>24)<=F);){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}O>>>=Oe,F-=Oe,j.back+=Oe}if(O>>>=Se,F-=Se,j.back+=Se,64&Ae){P.msg="invalid distance code",j.mode=30;break}j.offset=Ne,j.extra=15&Ae,j.mode=24;case 24:if(j.extra){for(q=j.extra;F<q;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}j.offset+=O&(1<<j.extra)-1,O>>>=j.extra,F-=j.extra,j.back+=j.extra}if(j.offset>j.dmax){P.msg="invalid distance too far back",j.mode=30;break}j.mode=25;case 25:if(v===0)break e;if(ne=Q-v,j.offset>ne){if((ne=j.offset-ne)>j.whave&&j.sane){P.msg="invalid distance too far back",j.mode=30;break}ie=ne>j.wnext?(ne-=j.wnext,j.wsize-ne):j.wnext-ne,ne>j.length&&(ne=j.length),be=j.window}else be=X,ie=ue-j.offset,ne=j.length;for(v<ne&&(ne=v),v-=ne,j.length-=ne;X[ue++]=be[ie++],--ne;);j.length===0&&(j.mode=21);break;case 26:if(v===0)break e;X[ue++]=j.length,v--,j.mode=21;break;case 27:if(j.wrap){for(;F<32;){if(I===0)break e;I--,O|=K[w++]<<F,F+=8}if(Q-=v,P.total_out+=Q,j.total+=Q,Q&&(P.adler=j.check=j.flags?f(j.check,X,Q,ue-Q):d(j.check,X,Q,ue-Q)),Q=v,(j.flags?O:T(O))!==j.check){P.msg="incorrect data check",j.mode=30;break}F=O=0}j.mode=28;case 28:if(j.wrap&&j.flags){for(;F<32;){if(I===0)break e;I--,O+=K[w++]<<F,F+=8}if(O!==(4294967295&j.total)){P.msg="incorrect length check",j.mode=30;break}F=O=0}j.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;case 32:default:return A}return P.next_out=ue,P.avail_out=v,P.next_in=w,P.avail_in=I,j.hold=O,j.bits=F,(j.wsize||Q!==P.avail_out&&j.mode<30&&(j.mode<27||V!==4))&&Z(P,P.output,P.next_out,Q-P.avail_out)?(j.mode=31,-4):(J-=P.avail_in,Q-=P.avail_out,P.total_in+=J,P.total_out+=Q,j.total+=Q,j.wrap&&Q&&(P.adler=j.check=j.flags?f(j.check,X,Q,P.next_out-Q):d(j.check,X,Q,P.next_out-Q)),P.data_type=j.bits+(j.last?64:0)+(j.mode===12?128:0)+(j.mode===20||j.mode===15?256:0),(J==0&&Q===0||V===4)&&de===b&&(de=-5),de)},o.inflateEnd=function(P){if(!P||!P.state)return A;var V=P.state;return V.window&&(V.window=null),P.state=null,b},o.inflateGetHeader=function(P,V){var j;return P&&P.state?(2&(j=P.state).wrap)==0?A:((j.head=V).done=!1,b):A},o.inflateSetDictionary=function(P,V){var j,K=V.length;return P&&P.state?(j=P.state).wrap!==0&&j.mode!==11?A:j.mode===11&&d(1,V,K,0)!==j.check?-3:Z(P,V,K,K)?(j.mode=31,-4):(j.havedict=1,b):A},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,s,o){var c=a("../utils/common"),d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];s.exports=function(g,x,b,A,k,S,E,T){var C,L,G,N,z,B,H,M,R,Z=T.bits,P=0,V=0,j=0,K=0,X=0,w=0,ue=0,I=0,v=0,O=0,F=null,J=0,Q=new c.Buf16(16),ne=new c.Buf16(16),ie=null,be=0;for(P=0;P<=15;P++)Q[P]=0;for(V=0;V<A;V++)Q[x[b+V]]++;for(X=Z,K=15;1<=K&&Q[K]===0;K--);if(K<X&&(X=K),K===0)return k[S++]=20971520,k[S++]=20971520,T.bits=1,0;for(j=1;j<K&&Q[j]===0;j++);for(X<j&&(X=j),P=I=1;P<=15;P++)if(I<<=1,(I-=Q[P])<0)return-1;if(0<I&&(g===0||K!==1))return-1;for(ne[1]=0,P=1;P<15;P++)ne[P+1]=ne[P]+Q[P];for(V=0;V<A;V++)x[b+V]!==0&&(E[ne[x[b+V]]++]=V);if(B=g===0?(F=ie=E,19):g===1?(F=d,J-=257,ie=f,be-=257,256):(F=h,ie=m,-1),P=j,z=S,ue=V=O=0,G=-1,N=(v=1<<(w=X))-1,g===1&&852<v||g===2&&592<v)return 1;for(;;){for(H=P-ue,R=E[V]<B?(M=0,E[V]):E[V]>B?(M=ie[be+E[V]],F[J+E[V]]):(M=96,0),C=1<<P-ue,j=L=1<<w;k[z+(O>>ue)+(L-=C)]=H<<24|M<<16|R|0,L!==0;);for(C=1<<P-1;O&C;)C>>=1;if(C!==0?(O&=C-1,O+=C):O=0,V++,--Q[P]==0){if(P===K)break;P=x[b+E[V]]}if(X<P&&(O&N)!==G){for(ue===0&&(ue=X),z+=j,I=1<<(w=P-ue);w+ue<K&&!((I-=Q[w+ue])<=0);)w++,I<<=1;if(v+=1<<w,g===1&&852<v||g===2&&592<v)return 1;k[G=O&N]=X<<24|w<<16|z-S|0}}return O!==0&&(k[z+O]=P-ue<<24|64<<16|0),T.bits=X,0}},{"../utils/common":41}],51:[function(a,s,o){s.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(a,s,o){var c=a("../utils/common"),d=0,f=1;function h(Y){for(var te=Y.length;0<=--te;)Y[te]=0}var m=0,g=29,x=256,b=x+1+g,A=30,k=19,S=2*b+1,E=15,T=16,C=7,L=256,G=16,N=17,z=18,B=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],H=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Z=new Array(2*(b+2));h(Z);var P=new Array(2*A);h(P);var V=new Array(512);h(V);var j=new Array(256);h(j);var K=new Array(g);h(K);var X,w,ue,I=new Array(A);function v(Y,te,pe,ye,oe){this.static_tree=Y,this.extra_bits=te,this.extra_base=pe,this.elems=ye,this.max_length=oe,this.has_stree=Y&&Y.length}function O(Y,te){this.dyn_tree=Y,this.max_code=0,this.stat_desc=te}function F(Y){return Y<256?V[Y]:V[256+(Y>>>7)]}function J(Y,te){Y.pending_buf[Y.pending++]=255&te,Y.pending_buf[Y.pending++]=te>>>8&255}function Q(Y,te,pe){Y.bi_valid>T-pe?(Y.bi_buf|=te<<Y.bi_valid&65535,J(Y,Y.bi_buf),Y.bi_buf=te>>T-Y.bi_valid,Y.bi_valid+=pe-T):(Y.bi_buf|=te<<Y.bi_valid&65535,Y.bi_valid+=pe)}function ne(Y,te,pe){Q(Y,pe[2*te],pe[2*te+1])}function ie(Y,te){for(var pe=0;pe|=1&Y,Y>>>=1,pe<<=1,0<--te;);return pe>>>1}function be(Y,te,pe){var ye,oe,je=new Array(E+1),Te=0;for(ye=1;ye<=E;ye++)je[ye]=Te=Te+pe[ye-1]<<1;for(oe=0;oe<=te;oe++){var ee=Y[2*oe+1];ee!==0&&(Y[2*oe]=ie(je[ee]++,ee))}}function Se(Y){var te;for(te=0;te<b;te++)Y.dyn_ltree[2*te]=0;for(te=0;te<A;te++)Y.dyn_dtree[2*te]=0;for(te=0;te<k;te++)Y.bl_tree[2*te]=0;Y.dyn_ltree[2*L]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Ae(Y){8<Y.bi_valid?J(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Ne(Y,te,pe,ye){var oe=2*te,je=2*pe;return Y[oe]<Y[je]||Y[oe]===Y[je]&&ye[te]<=ye[pe]}function Oe(Y,te,pe){for(var ye=Y.heap[pe],oe=pe<<1;oe<=Y.heap_len&&(oe<Y.heap_len&&Ne(te,Y.heap[oe+1],Y.heap[oe],Y.depth)&&oe++,!Ne(te,ye,Y.heap[oe],Y.depth));)Y.heap[pe]=Y.heap[oe],pe=oe,oe<<=1;Y.heap[pe]=ye}function Le(Y,te,pe){var ye,oe,je,Te,ee=0;if(Y.last_lit!==0)for(;ye=Y.pending_buf[Y.d_buf+2*ee]<<8|Y.pending_buf[Y.d_buf+2*ee+1],oe=Y.pending_buf[Y.l_buf+ee],ee++,ye===0?ne(Y,oe,te):(ne(Y,(je=j[oe])+x+1,te),(Te=B[je])!==0&&Q(Y,oe-=K[je],Te),ne(Y,je=F(--ye),pe),(Te=H[je])!==0&&Q(Y,ye-=I[je],Te)),ee<Y.last_lit;);ne(Y,L,te)}function Re(Y,te){var pe,ye,oe,je=te.dyn_tree,Te=te.stat_desc.static_tree,ee=te.stat_desc.has_stree,xe=te.stat_desc.elems,ke=-1;for(Y.heap_len=0,Y.heap_max=S,pe=0;pe<xe;pe++)je[2*pe]!==0?(Y.heap[++Y.heap_len]=ke=pe,Y.depth[pe]=0):je[2*pe+1]=0;for(;Y.heap_len<2;)je[2*(oe=Y.heap[++Y.heap_len]=ke<2?++ke:0)]=1,Y.depth[oe]=0,Y.opt_len--,ee&&(Y.static_len-=Te[2*oe+1]);for(te.max_code=ke,pe=Y.heap_len>>1;1<=pe;pe--)Oe(Y,je,pe);for(oe=xe;pe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Oe(Y,je,1),ye=Y.heap[1],Y.heap[--Y.heap_max]=pe,Y.heap[--Y.heap_max]=ye,je[2*oe]=je[2*pe]+je[2*ye],Y.depth[oe]=(Y.depth[pe]>=Y.depth[ye]?Y.depth[pe]:Y.depth[ye])+1,je[2*pe+1]=je[2*ye+1]=oe,Y.heap[1]=oe++,Oe(Y,je,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(Ce,He){var an,ht,yn,at,ar,Pn,Kt=He.dyn_tree,_r=He.max_code,pu=He.stat_desc.static_tree,Uo=He.stat_desc.has_stree,Bo=He.stat_desc.extra_bits,Va=He.stat_desc.extra_base,zn=He.stat_desc.max_length,Ha=0;for(at=0;at<=E;at++)Ce.bl_count[at]=0;for(Kt[2*Ce.heap[Ce.heap_max]+1]=0,an=Ce.heap_max+1;an<S;an++)zn<(at=Kt[2*Kt[2*(ht=Ce.heap[an])+1]+1]+1)&&(at=zn,Ha++),Kt[2*ht+1]=at,_r<ht||(Ce.bl_count[at]++,ar=0,Va<=ht&&(ar=Bo[ht-Va]),Pn=Kt[2*ht],Ce.opt_len+=Pn*(at+ar),Uo&&(Ce.static_len+=Pn*(pu[2*ht+1]+ar)));if(Ha!==0){do{for(at=zn-1;Ce.bl_count[at]===0;)at--;Ce.bl_count[at]--,Ce.bl_count[at+1]+=2,Ce.bl_count[zn]--,Ha-=2}while(0<Ha);for(at=zn;at!==0;at--)for(ht=Ce.bl_count[at];ht!==0;)_r<(yn=Ce.heap[--an])||(Kt[2*yn+1]!==at&&(Ce.opt_len+=(at-Kt[2*yn+1])*Kt[2*yn],Kt[2*yn+1]=at),ht--)}}(Y,te),be(je,ke,Y.bl_count)}function _(Y,te,pe){var ye,oe,je=-1,Te=te[1],ee=0,xe=7,ke=4;for(Te===0&&(xe=138,ke=3),te[2*(pe+1)+1]=65535,ye=0;ye<=pe;ye++)oe=Te,Te=te[2*(ye+1)+1],++ee<xe&&oe===Te||(ee<ke?Y.bl_tree[2*oe]+=ee:oe!==0?(oe!==je&&Y.bl_tree[2*oe]++,Y.bl_tree[2*G]++):ee<=10?Y.bl_tree[2*N]++:Y.bl_tree[2*z]++,je=oe,ke=(ee=0)===Te?(xe=138,3):oe===Te?(xe=6,3):(xe=7,4))}function de(Y,te,pe){var ye,oe,je=-1,Te=te[1],ee=0,xe=7,ke=4;for(Te===0&&(xe=138,ke=3),ye=0;ye<=pe;ye++)if(oe=Te,Te=te[2*(ye+1)+1],!(++ee<xe&&oe===Te)){if(ee<ke)for(;ne(Y,oe,Y.bl_tree),--ee!=0;);else oe!==0?(oe!==je&&(ne(Y,oe,Y.bl_tree),ee--),ne(Y,G,Y.bl_tree),Q(Y,ee-3,2)):ee<=10?(ne(Y,N,Y.bl_tree),Q(Y,ee-3,3)):(ne(Y,z,Y.bl_tree),Q(Y,ee-11,7));je=oe,ke=(ee=0)===Te?(xe=138,3):oe===Te?(xe=6,3):(xe=7,4)}}h(I);var ce=!1;function q(Y,te,pe,ye){Q(Y,(m<<1)+(ye?1:0),3),function(oe,je,Te,ee){Ae(oe),J(oe,Te),J(oe,~Te),c.arraySet(oe.pending_buf,oe.window,je,Te,oe.pending),oe.pending+=Te}(Y,te,pe)}o._tr_init=function(Y){ce||(function(){var te,pe,ye,oe,je,Te=new Array(E+1);for(oe=ye=0;oe<g-1;oe++)for(K[oe]=ye,te=0;te<1<<B[oe];te++)j[ye++]=oe;for(j[ye-1]=oe,oe=je=0;oe<16;oe++)for(I[oe]=je,te=0;te<1<<H[oe];te++)V[je++]=oe;for(je>>=7;oe<A;oe++)for(I[oe]=je<<7,te=0;te<1<<H[oe]-7;te++)V[256+je++]=oe;for(pe=0;pe<=E;pe++)Te[pe]=0;for(te=0;te<=143;)Z[2*te+1]=8,te++,Te[8]++;for(;te<=255;)Z[2*te+1]=9,te++,Te[9]++;for(;te<=279;)Z[2*te+1]=7,te++,Te[7]++;for(;te<=287;)Z[2*te+1]=8,te++,Te[8]++;for(be(Z,b+1,Te),te=0;te<A;te++)P[2*te+1]=5,P[2*te]=ie(te,5);X=new v(Z,B,x+1,b,E),w=new v(P,H,0,A,E),ue=new v(new Array(0),M,0,k,C)}(),ce=!0),Y.l_desc=new O(Y.dyn_ltree,X),Y.d_desc=new O(Y.dyn_dtree,w),Y.bl_desc=new O(Y.bl_tree,ue),Y.bi_buf=0,Y.bi_valid=0,Se(Y)},o._tr_stored_block=q,o._tr_flush_block=function(Y,te,pe,ye){var oe,je,Te=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(ee){var xe,ke=4093624447;for(xe=0;xe<=31;xe++,ke>>>=1)if(1&ke&&ee.dyn_ltree[2*xe]!==0)return d;if(ee.dyn_ltree[18]!==0||ee.dyn_ltree[20]!==0||ee.dyn_ltree[26]!==0)return f;for(xe=32;xe<x;xe++)if(ee.dyn_ltree[2*xe]!==0)return f;return d}(Y)),Re(Y,Y.l_desc),Re(Y,Y.d_desc),Te=function(ee){var xe;for(_(ee,ee.dyn_ltree,ee.l_desc.max_code),_(ee,ee.dyn_dtree,ee.d_desc.max_code),Re(ee,ee.bl_desc),xe=k-1;3<=xe&&ee.bl_tree[2*R[xe]+1]===0;xe--);return ee.opt_len+=3*(xe+1)+5+5+4,xe}(Y),oe=Y.opt_len+3+7>>>3,(je=Y.static_len+3+7>>>3)<=oe&&(oe=je)):oe=je=pe+5,pe+4<=oe&&te!==-1?q(Y,te,pe,ye):Y.strategy===4||je===oe?(Q(Y,2+(ye?1:0),3),Le(Y,Z,P)):(Q(Y,4+(ye?1:0),3),function(ee,xe,ke,Ce){var He;for(Q(ee,xe-257,5),Q(ee,ke-1,5),Q(ee,Ce-4,4),He=0;He<Ce;He++)Q(ee,ee.bl_tree[2*R[He]+1],3);de(ee,ee.dyn_ltree,xe-1),de(ee,ee.dyn_dtree,ke-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,Te+1),Le(Y,Y.dyn_ltree,Y.dyn_dtree)),Se(Y),ye&&Ae(Y)},o._tr_tally=function(Y,te,pe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=te>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&te,Y.pending_buf[Y.l_buf+Y.last_lit]=255&pe,Y.last_lit++,te===0?Y.dyn_ltree[2*pe]++:(Y.matches++,te--,Y.dyn_ltree[2*(j[pe]+x+1)]++,Y.dyn_dtree[2*F(te)]++),Y.last_lit===Y.lit_bufsize-1},o._tr_align=function(Y){Q(Y,2,3),ne(Y,L,Z),function(te){te.bi_valid===16?(J(te,te.bi_buf),te.bi_buf=0,te.bi_valid=0):8<=te.bi_valid&&(te.pending_buf[te.pending++]=255&te.bi_buf,te.bi_buf>>=8,te.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(a,s,o){s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(a,s,o){(function(c){(function(d,f){if(!d.setImmediate){var h,m,g,x,b=1,A={},k=!1,S=d.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(d);E=E&&E.setTimeout?E:d,h={}.toString.call(d.process)==="[object process]"?function(G){process.nextTick(function(){C(G)})}:function(){if(d.postMessage&&!d.importScripts){var G=!0,N=d.onmessage;return d.onmessage=function(){G=!1},d.postMessage("","*"),d.onmessage=N,G}}()?(x="setImmediate$"+Math.random()+"$",d.addEventListener?d.addEventListener("message",L,!1):d.attachEvent("onmessage",L),function(G){d.postMessage(x+G,"*")}):d.MessageChannel?((g=new MessageChannel).port1.onmessage=function(G){C(G.data)},function(G){g.port2.postMessage(G)}):S&&"onreadystatechange"in S.createElement("script")?(m=S.documentElement,function(G){var N=S.createElement("script");N.onreadystatechange=function(){C(G),N.onreadystatechange=null,m.removeChild(N),N=null},m.appendChild(N)}):function(G){setTimeout(C,0,G)},E.setImmediate=function(G){typeof G!="function"&&(G=new Function(""+G));for(var N=new Array(arguments.length-1),z=0;z<N.length;z++)N[z]=arguments[z+1];var B={callback:G,args:N};return A[b]=B,h(b),b++},E.clearImmediate=T}function T(G){delete A[G]}function C(G){if(k)setTimeout(C,0,G);else{var N=A[G];if(N){k=!0;try{(function(z){var B=z.callback,H=z.args;switch(H.length){case 0:B();break;case 1:B(H[0]);break;case 2:B(H[0],H[1]);break;case 3:B(H[0],H[1],H[2]);break;default:B.apply(f,H)}})(N)}finally{T(G),k=!1}}}}function L(G){G.source===d&&typeof G.data=="string"&&G.data.indexOf(x)===0&&C(+G.data.slice(x.length))}})(typeof self>"u"?c===void 0?this:c:self)}).call(this,typeof _n<"u"?_n:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Yf)),Yf.exports}var uk=ck();const dk=Gc(uk);var wc={exports:{}},fk=wc.exports,Fx;function hk(){return Fx||(Fx=1,function(e,n){(function(a,s){s()})(fk,function(){function a(m,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(m.type)?new Blob(["\uFEFF",m],{type:m.type}):m}function s(m,g,x){var b=new XMLHttpRequest;b.open("GET",m),b.responseType="blob",b.onload=function(){h(b.response,g,x)},b.onerror=function(){console.error("could not download file")},b.send()}function o(m){var g=new XMLHttpRequest;g.open("HEAD",m,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function c(m){try{m.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),m.dispatchEvent(g)}}var d=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof _n=="object"&&_n.global===_n?_n:void 0,f=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=d.saveAs||(typeof window!="object"||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(m,g,x){var b=d.URL||d.webkitURL,A=document.createElement("a");g=g||m.name||"download",A.download=g,A.rel="noopener",typeof m=="string"?(A.href=m,A.origin===location.origin?c(A):o(A.href)?s(m,g,x):c(A,A.target="_blank")):(A.href=b.createObjectURL(m),setTimeout(function(){b.revokeObjectURL(A.href)},4e4),setTimeout(function(){c(A)},0))}:"msSaveOrOpenBlob"in navigator?function(m,g,x){if(g=g||m.name||"download",typeof m!="string")navigator.msSaveOrOpenBlob(a(m,x),g);else if(o(m))s(m,g,x);else{var b=document.createElement("a");b.href=m,b.target="_blank",setTimeout(function(){c(b)})}}:function(m,g,x,b){if(b=b||open("","_blank"),b&&(b.document.title=b.document.body.innerText="downloading..."),typeof m=="string")return s(m,g,x);var A=m.type==="application/octet-stream",k=/constructor/i.test(d.HTMLElement)||d.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||A&&k||f)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var L=E.result;L=S?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=L:location=L,b=null},E.readAsDataURL(m)}else{var T=d.URL||d.webkitURL,C=T.createObjectURL(m);b?b.location=C:location.href=C,b=null,setTimeout(function(){T.revokeObjectURL(C)},4e4)}});d.saveAs=h.saveAs=h,e.exports=h})}(wc)),wc.exports}var mk=hk();const pk="/assets/bg-CTZfS44-.jpg",gk="/assets/mobile-DVtmHUcA.png",yk="/assets/wherego-CxrpFa6S.jpeg",xk="/assets/futuresee-vF3riMDq.jpeg",vk="/assets/map-DfwT83pC.png",I1="/assets/direction-DvSXpJ92.png",bk="/assets/rides-DHFaS9Zp.png",wk="/assets/connectors-DxMTDBst.png",Sk="/assets/recoveries-CVwWHeuA.png",jk="/assets/delivery-D2UlqJpG.png",Ak="/assets/shifting-DYqoMp4y.png",Tk="/assets/tourism-Dr_CLv8Q.png",G1="/assets/bg2-C1RXNloV.png",q1="/assets/book-DZfcrvd8.png",Y1="/assets/booklady-CV6x7ftQ.jpg",W1="/assets/playbutton-BmD_M-Vz.png",X1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAABYCAYAAAAJD2m8AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA7ZSURBVHgB7Z3tuQ3LEsfHvff7IQJEgAgQASIgA0SACBABIkAEiAAR4JtviGDf9Vvn/J1WqmZ6Zk3PzNrq9zz17LXX6qnp6ZeafqnuPtN13UmXJEni8J8uSZIkIA1EkiQhaSCSJAlJA5EkSUgaiCRJQtJAJEkSkgYiSZKQNBBJkoSkgUiSJCQNRJIkIWkgkiQJSQORJElIGogkSULSQCRJEpIGIkmSkDQQSZKEpIFIkiTkvzt52CV/PA8fPuyuXbvWvX37tluTO3fudDdv3uw+f/7cff/+vTsWSDviTpy/fv3anSZOjll2GXPy5MmTkzdv3ix6X+756dOnX+T9+/f7eOwq28mFCxcWjc+hItaOB+kH5OvacbFy9uzZfb7y1/5GnsPOSGwu3ofI/7ojhbfM48ePu12GdWuwKyThvXmb3L17t7t371734sWLLjkdXL58udsZsH0r6/r1692fwNGNQVAxnz171r18+fKXCvrhw4duDR49etSdOXNmL+fOndsXnFevXu3j+fz5872xSJJj5ahaEFQ6rPelS5d+++3Lly/d2tD/JH4IxuH27dvdgwcPfuvX8xy0MHgj8ZnrXr9+vb9G0EK6cePG/nsMjtB1T58+/cUoch8M5v379/f6dL1aMFyne3Ft7VhDTVzLsPTDr169uv8M3D8KW+rlGae0tjDAPKvKBGMXGG3+lpTpo7ThvlF4C61B4groYcyGtNh1NX8LSziejXBD6UU4vURq47I0R9Mf2iXyScTSfT/Fhb6n9zv9VFGOR/CZ8QqPXcvoZzj64PY7RNcyBmLvxW/6Tn3iXTfMvZft43tjELVxVRzKsOVnb3xoZ9x+06kxHC9+nuwq10nEzjj/ElZ6ibfl27dv7riCl+4lXnrzF32WnYEJ05bw5TU27ivLZiLSKxiAiDKjlpIhA4FQ4GH3xvrtul0X6Weh3L1xfhYWFSR+U8HRtYTzntkzJiqwQNppgE33t5VWlN8RR+AaL66lUVb+lM9VVoKywvOMegZ9T1illw3vCeG9yqfntpVeBsLeU/Hry0eF1TOii/9Lw1+mN/FRemPIvTLq3ZdyojwfMlgLyiYiMShl4bFY67yE1BgIFUpVJBVqCoCd5VAlLyuurldYVSzdW4VIhbM0RPrOvukVB1tghQ1XG9dIVEFKY6K8tK0+GcUaAxE9X5luZbmweSFRpff0WOl77ig+ZUuyRo+XXmvKUYxB0KdT/8/y8eNHtx+4RTSoytiB7WdqPKEc1KTvyv8IfVj6zYTT+AZ9aT7T5y91lJA+JbX927FxFXzHtbreC6O8LMdWgP4694ry2tNBGlmUbt5YlX2Wufv7dixMz1QOqJefGcsoUZzXmp2zHIWBiGYCSHgqyVZRJqsQ9mW65xSkgUQMgGZENMBIeH1PZfEqcqR3StyHdBKeKcDyGblWg5Uenp7a+P7111+j9G4JpRH55pWJoXRbkqOY5vQSkbfPlStXNjfiKxjN1yi2KrrevF7m6xnLwk14/lcrAvTW5S2JcdQswLt377o5UTy8t7kXV6ae+R4DxnQv074XL17c/x/p9tKhtmLoTd2Xlj9+/Oi2iMoseUkaecKsyRY4CgOhQqDKhq/BrVu3NvumoDIzrQbl1J3ch703B90HsN0EDAFh5cYrY8NfTZOBba4filoptXFVGE3/CXV/SnSdrQToqOlelDroaln03dpu4xGKFwbeGjien7yuTYclWH0gxI4IW2HkPPqd7xn0QQi31OhvORvAABUil2/BVJ6NjwazGCRkIIp474zJz2vKgcau+3X2ZmcE3MGvcqbD3scb7KoZpOyKAbMorqS3wuq5+Z3vCVtOsXozHkAYwjKgyH1qBynLaVUGBglP2mnmxT5fNH0aTSdH5VDprfSw6e0NWiueXnyIL3oox6SBnn9DrvrL35SHpyDZmQkShwQbGsHV+otojh696GiZyH0+GTwHBSUyVqp49hpvNqY0BDZdVMhKw2EL7CEGgnt7z+nFtZz+FPwvvwMbj3JaUJAuul+NH4R3T93X5v0cBqLUY9NwrIEgbb2ZORmfQ8rmnHLmnw+LQHOKGQevWWihOU5TjCY6f2l+ygNujPsyTV680+ZGo/UWDRYOdX/KcQXCMtgYXaOmKOlQjrkoDtzTdk0082OvAXVXym4J34Hn8VcbV+KiOHFP9Kvb4MWj7DoRf8Loei98hMZiQJ6s3jN4eklXrR6t7ZJIV5mGSm8vL5R/Q2mrNNta13kRS4Sl9jzMlgBLvaEmW0rKMUn7m9A3XBuMxIa801JSjkKaz2LQFGMKbG1o/o3pmiRJ8jdNLVA0kLg0a7hjp6ScAmmnvG+B1ZKctl1+UlIWlHbKt9B6GFqll5KSEkuzaU76+/jmrwnTRritLg1TWtYTTm7Tyb9ogxkWKMllHEgnBPdxpv3W2i0s+ZsmlsdzhFmatboWnnNRtmT+FWaT8KCsnfbW/gvH9IynSNooLj3O1mKtaU2va8U06xpx2ZpE3o814H17TM96SqSN4rXHH5beBl/SNzC7xa3cl5S+LexAxwf0tSz6ZqP4jXyXlGtFUiZLG8VrU+7ZuKSwLmJrcdqKaCFVCRUZw2lbe1TuaB1I1N2w4f90gzyTtFG8Nmv0+ct9EsFuRuqtuvxTpNxPc0wecZ1tUUSGNg3E/NLEk3Iru+EsjfXUZIv1cgSedPlTvTntczPDZLdb8yD97KYzNYv9knloYiC2MJ13/vz5bmlswdVq1L4wh1Lu/7hlvXba1+6V2Yfdc7TvVLM50ArUcup1DhTvmrgr7NxxmEKTpslaKzfF0s15273QIGm5U7PiVTO7QvO4HHArN5LRbxa+q9lLo4XeIbHNf28PiymiTXoQW+Z0zoakr0vD83k6pIf7DE21sqeE7sV4i9Vd4qUn5YKZmmiPC/SvMN3bRvEWvCiX7INav4+yANiBy5p1IXY2RPq8g18sfX4Dnl4K5qF6aypySd9g4xgZM53ubQpDHGp1RJv6eGVem8lE6WoNBIcA1b5UF57ubaO4b8elpVhyqtMaxLLwa9eiMfHyKnJ0SpZHtLy9ld6xzwOkmd1ib6wcYiCGpl0jogpqDUS5PZ+lNBB94SLIs7nLcCBtFOuQl7VZohUxZABsNwOGKpmtUOVRdejijUwY0jkyxl4haqV3SLw0EBgd7jclr7iOio/Yyk4zX78h9q3tGQfyDp0YLoQ08MJ5cS3D2RksfiM+SNm18/ZKUZcOA8YsDmE8Q7iQp3AbxbbSrMVcTdk+sRXJyzgbZmiKL3K4ogJ7xiV6G9qwrfTWVuaa/FIlHWswxkxzem/tqMJ5aeAd9xiNHfTFw17TVy5sN3ahcbZ2ytceqBTeJqZzSl/3QjK2m+FV5KGNVbmvTXNb4FrprZWxa3TGDM6NMRBjKmaUBla/Z0T64m1bDzXu+LYlsUALuZ3yLYxDiFa7BdtM7hudHypgpXgVuaaS2ApoDVErvWNkzMBgCV2bvpZLrYGwxrr2TWwHWqOT18VQeZvi2GXL2wLeue2Ub6WbUTL3wGVN9yIqYEPTbiW1i708b84+vbXpMaR3iugsiDHGom+QtLbC2a5O7ZSrLc/Rid1iaC2I3fZ+Sj60XgTY9GxO7YGwJc/KMQ46Q/Bc1vGp74QrftNJWMDnGm9CqD1aT1vuK83lcBNtIV+bHmP11urECUqOUHhb4hjUd7QBv3NqGV6qU7GOSrX7TdhwQw5PQ3pL5zHSdsr+Ka3rVlMDwUPjJqtj6LbAnCeB24ODed7dKHVXi1yva85jGOOdOsYot9I7BZ1pQR7pvArKjq2IHNnHWSdTPXbtM9QaOe9+6JoSDxuHqW74LT1Kofnp3mQ2b8ottCI4uGTOw35t62FKJlMJWp8heYxrY3RAj8SmNenmHUSzNHMZiK3S3EBsqRUx5wlbOkXqUCj49sBbjzEFyobt032I3qWgxUC3o7z/nG/OQ55r6gvHXkcecSD11mhuIGALrYi5Ww/WOGgfxRrKwq1Wx9Dp3OzbWKt7TBO6ld4Sb4/OMa0mHc0310pYG+/aNLDPcOiiRDums9V9S0+WkDU9K1v4QYyd0irFjtp7Mwl2tqF2kdfQ7EcrvX1ip+Zq71mKHfH3ZoBqZzG8+EwpwzbfbJkYWw42un/FcjebMvc9B3P7P3ibn4wxQJ4vQo3HY42Lsy2kdq7e01vj9DSkt0/KE8rHPIvETu2BV5msgYjWeXhu3zWVc+ilMNZADBmcSIirZIFt9bqTpWTq4phDGFOQa8UWxLG+FV4BtasEI5fo3ZhFqNdbOWgL/lx6xxZM7+VQsyrR2+TWc3P28qUv761PylAr06aBF36sgfDKQV8+INZFfIH1GN3JkrKk8xQZ1mJn60O6F1FhrvF4FBRW0pECinj7DUC5J8GceqcY3SjfSUvugyFQXnFvwkeeuFF6e91YWire29ZznS7jogoc7ZHhtbrGGgjEcz33XMu9eLReQtCtYSCGCulctEo8r6BPuc+QHptG0arCsc/fSu/UyjAW4jsmTUtquls1RC3GKQYCseMrAgPWt8v3Ua/mHJKhQUstPaYfqTcaBYBE8XZHLmlpWefaGclrXpZvJVt4+a22i4beqAvg6a09q4Iwh/Z5DzESNesO+tb/eC0fyuGYRYWUvahVOtVAoG/M+NzQxjUzS3eyllDgywzVUl+MwlDXgGspMKX1JYMogK0OzPEq9SFW3NtlSb95FdlLM3v90MrHVnoPyfchtDV+rX6e0XsrR12jmvi8MdvzeTLVQJTx7jPUemkuue1cs7M5x3KoX/9SWAedQ+LM3HfkW8CZlbsC/fN7nLzKdRvyLVB8uK5mHr2V3iloU1b8G9hkWGnBPX/8+LG/L/4hh7hUl+lbk1fERRvLyrcFn42aa+cqG0p/+Z6gp2U+DHGSsj2J3vRb1ZtyOqXJtvdJkpwO0kAkSRKSBiJJkpA0EEmShCyymjMZD6PW5X4HtbseraU3OZ1sZpozSZLtkV2MJElC0kAkSRKSBiJJkpA0EEmShKSBSJIkJA1EkiQhaSCSJAlJA5EkSUgaiCRJQtJAJEkSkgYiSZKQNBBJkoSkgUiSJOT/mUlQwvIYn3YAAAAASUVORK5CYII=",Ek="/assets/countless1-CVck5bx4.jpg",Nk="/assets/countless2-b-eUsns6.png",kk="/assets/countless3-DjmIYyMw.png",_k="/assets/brochure-C8xBBGg_.pdf",Ok="/assets/document1-49tq_C5-.pdf",Rk="/assets/guide-DwMDUa26.pdf";var Wf={},Xf={},$i={},Kf={},Ux;function Ck(){return Ux||(Ux=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=n}(Kf)),Kf}var Zf,Bx;function Dk(){if(Bx)return Zf;Bx=1;var e="Expected a function",n=NaN,a="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=typeof _n=="object"&&_n&&_n.Object===Object&&_n,m=typeof self=="object"&&self&&self.Object===Object&&self,g=h||m||Function("return this")(),x=Object.prototype,b=x.toString,A=Math.max,k=Math.min,S=function(){return g.Date.now()};function E(N,z,B){var H,M,R,Z,P,V,j=0,K=!1,X=!1,w=!0;if(typeof N!="function")throw new TypeError(e);z=G(z)||0,T(B)&&(K=!!B.leading,X="maxWait"in B,R=X?A(G(B.maxWait)||0,z):R,w="trailing"in B?!!B.trailing:w);function ue(be){var Se=H,Ae=M;return H=M=void 0,j=be,Z=N.apply(Ae,Se),Z}function I(be){return j=be,P=setTimeout(F,z),K?ue(be):Z}function v(be){var Se=be-V,Ae=be-j,Ne=z-Se;return X?k(Ne,R-Ae):Ne}function O(be){var Se=be-V,Ae=be-j;return V===void 0||Se>=z||Se<0||X&&Ae>=R}function F(){var be=S();if(O(be))return J(be);P=setTimeout(F,v(be))}function J(be){return P=void 0,w&&H?ue(be):(H=M=void 0,Z)}function Q(){P!==void 0&&clearTimeout(P),j=0,H=V=M=P=void 0}function ne(){return P===void 0?Z:J(S())}function ie(){var be=S(),Se=O(be);if(H=arguments,M=this,V=be,Se){if(P===void 0)return I(V);if(X)return P=setTimeout(F,z),ue(V)}return P===void 0&&(P=setTimeout(F,z)),Z}return ie.cancel=Q,ie.flush=ne,ie}function T(N){var z=typeof N;return!!N&&(z=="object"||z=="function")}function C(N){return!!N&&typeof N=="object"}function L(N){return typeof N=="symbol"||C(N)&&b.call(N)==a}function G(N){if(typeof N=="number")return N;if(L(N))return n;if(T(N)){var z=typeof N.valueOf=="function"?N.valueOf():N;N=T(z)?z+"":z}if(typeof N!="string")return N===0?N:+N;N=N.replace(s,"");var B=c.test(N);return B||d.test(N)?f(N.slice(2),B?2:8):o.test(N)?n:+N}return Zf=E,Zf}var $f={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var Vx;function uu(){return Vx||(Vx=1,function(e){(function(){var n={}.hasOwnProperty;function a(){for(var c="",d=0;d<arguments.length;d++){var f=arguments[d];f&&(c=o(c,s(f)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return a.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var f in c)n.call(c,f)&&c[f]&&(d=o(d,f));return d}function o(c,d){return d?c?c+" "+d:c+d:c}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}($f)),$f.exports}var Ee={},Qf={},Hx;function K1(){return Hx||(Hx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(Dn());function a(o){return o&&o.__esModule?o:{default:o}}var s={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(c){return n.default.createElement("ul",{style:{display:"block"}},c)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(c){return n.default.createElement("button",null,c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=s}(Qf)),Qf}var Ix;function Mo(){if(Ix)return Ee;Ix=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.checkSpecKeys=Ee.checkNavigable=Ee.changeSlide=Ee.canUseDOM=Ee.canGoNext=void 0,Ee.clamp=m,Ee.extractObject=void 0,Ee.filterSettings=ue,Ee.validSettings=Ee.swipeStart=Ee.swipeMove=Ee.swipeEnd=Ee.slidesOnRight=Ee.slidesOnLeft=Ee.slideHandler=Ee.siblingDirection=Ee.safePreventDefault=Ee.lazyStartIndex=Ee.lazySlidesOnRight=Ee.lazySlidesOnLeft=Ee.lazyEndIndex=Ee.keyHandler=Ee.initializedState=Ee.getWidth=Ee.getTrackLeft=Ee.getTrackCSS=Ee.getTrackAnimateCSS=Ee.getTotalSlides=Ee.getSwipeDirection=Ee.getSlideCount=Ee.getRequiredLazySlides=Ee.getPreClones=Ee.getPostClones=Ee.getOnDemandLazySlides=Ee.getNavigableIndexes=Ee.getHeight=void 0;var e=a(Dn()),n=a(K1());function a(I){return I&&I.__esModule?I:{default:I}}function s(I){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},s(I)}function o(I,v){var O=Object.keys(I);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(I);v&&(F=F.filter(function(J){return Object.getOwnPropertyDescriptor(I,J).enumerable})),O.push.apply(O,F)}return O}function c(I){for(var v=1;v<arguments.length;v++){var O=arguments[v]!=null?arguments[v]:{};v%2?o(Object(O),!0).forEach(function(F){d(I,F,O[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(O)):o(Object(O)).forEach(function(F){Object.defineProperty(I,F,Object.getOwnPropertyDescriptor(O,F))})}return I}function d(I,v,O){return v=f(v),v in I?Object.defineProperty(I,v,{value:O,enumerable:!0,configurable:!0,writable:!0}):I[v]=O,I}function f(I){var v=h(I,"string");return s(v)=="symbol"?v:String(v)}function h(I,v){if(s(I)!="object"||!I)return I;var O=I[Symbol.toPrimitive];if(O!==void 0){var F=O.call(I,v);if(s(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(I)}function m(I,v,O){return Math.max(v,Math.min(I,O))}var g=Ee.safePreventDefault=function(v){var O=["onTouchStart","onTouchMove","onWheel"];O.includes(v._reactName)||v.preventDefault()},x=Ee.getOnDemandLazySlides=function(v){for(var O=[],F=b(v),J=A(v),Q=F;Q<J;Q++)v.lazyLoadedList.indexOf(Q)<0&&O.push(Q);return O};Ee.getRequiredLazySlides=function(v){for(var O=[],F=b(v),J=A(v),Q=F;Q<J;Q++)O.push(Q);return O};var b=Ee.lazyStartIndex=function(v){return v.currentSlide-k(v)},A=Ee.lazyEndIndex=function(v){return v.currentSlide+S(v)},k=Ee.lazySlidesOnLeft=function(v){return v.centerMode?Math.floor(v.slidesToShow/2)+(parseInt(v.centerPadding)>0?1:0):0},S=Ee.lazySlidesOnRight=function(v){return v.centerMode?Math.floor((v.slidesToShow-1)/2)+1+(parseInt(v.centerPadding)>0?1:0):v.slidesToShow},E=Ee.getWidth=function(v){return v&&v.offsetWidth||0},T=Ee.getHeight=function(v){return v&&v.offsetHeight||0},C=Ee.getSwipeDirection=function(v){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,F,J,Q,ne;return F=v.startX-v.curX,J=v.startY-v.curY,Q=Math.atan2(J,F),ne=Math.round(Q*180/Math.PI),ne<0&&(ne=360-Math.abs(ne)),ne<=45&&ne>=0||ne<=360&&ne>=315?"left":ne>=135&&ne<=225?"right":O===!0?ne>=35&&ne<=135?"up":"down":"vertical"},L=Ee.canGoNext=function(v){var O=!0;return v.infinite||(v.centerMode&&v.currentSlide>=v.slideCount-1||v.slideCount<=v.slidesToShow||v.currentSlide>=v.slideCount-v.slidesToShow)&&(O=!1),O};Ee.extractObject=function(v,O){var F={};return O.forEach(function(J){return F[J]=v[J]}),F},Ee.initializedState=function(v){var O=e.default.Children.count(v.children),F=v.listRef,J=Math.ceil(E(F)),Q=v.trackRef&&v.trackRef.node,ne=Math.ceil(E(Q)),ie;if(v.vertical)ie=J;else{var be=v.centerMode&&parseInt(v.centerPadding)*2;typeof v.centerPadding=="string"&&v.centerPadding.slice(-1)==="%"&&(be*=J/100),ie=Math.ceil((J-be)/v.slidesToShow)}var Se=F&&T(F.querySelector('[data-index="0"]')),Ae=Se*v.slidesToShow,Ne=v.currentSlide===void 0?v.initialSlide:v.currentSlide;v.rtl&&v.currentSlide===void 0&&(Ne=O-1-v.initialSlide);var Oe=v.lazyLoadedList||[],Le=x(c(c({},v),{},{currentSlide:Ne,lazyLoadedList:Oe}));Oe=Oe.concat(Le);var Re={slideCount:O,slideWidth:ie,listWidth:J,trackWidth:ne,currentSlide:Ne,slideHeight:Se,listHeight:Ae,lazyLoadedList:Oe};return v.autoplaying===null&&v.autoplay&&(Re.autoplaying="playing"),Re},Ee.slideHandler=function(v){var O=v.waitForAnimate,F=v.animating,J=v.fade,Q=v.infinite,ne=v.index,ie=v.slideCount,be=v.lazyLoad,Se=v.currentSlide,Ae=v.centerMode,Ne=v.slidesToScroll,Oe=v.slidesToShow,Le=v.useCSS,Re=v.lazyLoadedList;if(O&&F)return{};var _=ne,de,ce,q,Y={},te={},pe=Q?ne:m(ne,0,ie-1);if(J){if(!Q&&(ne<0||ne>=ie))return{};ne<0?_=ne+ie:ne>=ie&&(_=ne-ie),be&&Re.indexOf(_)<0&&(Re=Re.concat(_)),Y={animating:!0,currentSlide:_,lazyLoadedList:Re,targetSlide:_},te={animating:!1,targetSlide:_}}else de=_,_<0?(de=_+ie,Q?ie%Ne!==0&&(de=ie-ie%Ne):de=0):!L(v)&&_>Se?_=de=Se:Ae&&_>=ie?(_=Q?ie:ie-1,de=Q?0:ie-1):_>=ie&&(de=_-ie,Q?ie%Ne!==0&&(de=0):de=ie-Oe),!Q&&_+Oe>=ie&&(de=ie-Oe),ce=R(c(c({},v),{},{slideIndex:_})),q=R(c(c({},v),{},{slideIndex:de})),Q||(ce===q&&(_=de),ce=q),be&&(Re=Re.concat(x(c(c({},v),{},{currentSlide:_})))),Le?(Y={animating:!0,currentSlide:de,trackStyle:M(c(c({},v),{},{left:ce})),lazyLoadedList:Re,targetSlide:pe},te={animating:!1,currentSlide:de,trackStyle:H(c(c({},v),{},{left:q})),swipeLeft:null,targetSlide:pe}):Y={currentSlide:de,trackStyle:H(c(c({},v),{},{left:q})),lazyLoadedList:Re,targetSlide:pe};return{state:Y,nextState:te}},Ee.changeSlide=function(v,O){var F,J,Q,ne,ie,be=v.slidesToScroll,Se=v.slidesToShow,Ae=v.slideCount,Ne=v.currentSlide,Oe=v.targetSlide,Le=v.lazyLoad,Re=v.infinite;if(ne=Ae%be!==0,F=ne?0:(Ae-Ne)%be,O.message==="previous")Q=F===0?be:Se-F,ie=Ne-Q,Le&&!Re&&(J=Ne-Q,ie=J===-1?Ae-1:J),Re||(ie=Oe-be);else if(O.message==="next")Q=F===0?be:F,ie=Ne+Q,Le&&!Re&&(ie=(Ne+be)%Ae+F),Re||(ie=Oe+be);else if(O.message==="dots")ie=O.index*O.slidesToScroll;else if(O.message==="children"){if(ie=O.index,Re){var _=j(c(c({},v),{},{targetSlide:ie}));ie>O.currentSlide&&_==="left"?ie=ie-Ae:ie<O.currentSlide&&_==="right"&&(ie=ie+Ae)}}else O.message==="index"&&(ie=Number(O.index));return ie},Ee.keyHandler=function(v,O,F){return v.target.tagName.match("TEXTAREA|INPUT|SELECT")||!O?"":v.keyCode===37?F?"next":"previous":v.keyCode===39?F?"previous":"next":""},Ee.swipeStart=function(v,O,F){return v.target.tagName==="IMG"&&g(v),!O||!F&&v.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:v.touches?v.touches[0].pageX:v.clientX,startY:v.touches?v.touches[0].pageY:v.clientY,curX:v.touches?v.touches[0].pageX:v.clientX,curY:v.touches?v.touches[0].pageY:v.clientY}}},Ee.swipeMove=function(v,O){var F=O.scrolling,J=O.animating,Q=O.vertical,ne=O.swipeToSlide,ie=O.verticalSwiping,be=O.rtl,Se=O.currentSlide,Ae=O.edgeFriction,Ne=O.edgeDragged,Oe=O.onEdge,Le=O.swiped,Re=O.swiping,_=O.slideCount,de=O.slidesToScroll,ce=O.infinite,q=O.touchObject,Y=O.swipeEvent,te=O.listHeight,pe=O.listWidth;if(!F){if(J)return g(v);Q&&ne&&ie&&g(v);var ye,oe={},je=R(O);q.curX=v.touches?v.touches[0].pageX:v.clientX,q.curY=v.touches?v.touches[0].pageY:v.clientY,q.swipeLength=Math.round(Math.sqrt(Math.pow(q.curX-q.startX,2)));var Te=Math.round(Math.sqrt(Math.pow(q.curY-q.startY,2)));if(!ie&&!Re&&Te>10)return{scrolling:!0};ie&&(q.swipeLength=Te);var ee=(be?-1:1)*(q.curX>q.startX?1:-1);ie&&(ee=q.curY>q.startY?1:-1);var xe=Math.ceil(_/de),ke=C(O.touchObject,ie),Ce=q.swipeLength;return ce||(Se===0&&(ke==="right"||ke==="down")||Se+1>=xe&&(ke==="left"||ke==="up")||!L(O)&&(ke==="left"||ke==="up"))&&(Ce=q.swipeLength*Ae,Ne===!1&&Oe&&(Oe(ke),oe.edgeDragged=!0)),!Le&&Y&&(Y(ke),oe.swiped=!0),Q?ye=je+Ce*(te/pe)*ee:be?ye=je-Ce*ee:ye=je+Ce*ee,ie&&(ye=je+Ce*ee),oe=c(c({},oe),{},{touchObject:q,swipeLeft:ye,trackStyle:H(c(c({},O),{},{left:ye}))}),Math.abs(q.curX-q.startX)<Math.abs(q.curY-q.startY)*.8||q.swipeLength>10&&(oe.swiping=!0,g(v)),oe}},Ee.swipeEnd=function(v,O){var F=O.dragging,J=O.swipe,Q=O.touchObject,ne=O.listWidth,ie=O.touchThreshold,be=O.verticalSwiping,Se=O.listHeight,Ae=O.swipeToSlide,Ne=O.scrolling,Oe=O.onSwipe,Le=O.targetSlide,Re=O.currentSlide,_=O.infinite;if(!F)return J&&g(v),{};var de=be?Se/ie:ne/ie,ce=C(Q,be),q={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ne||!Q.swipeLength)return q;if(Q.swipeLength>de){g(v),Oe&&Oe(ce);var Y,te,pe=_?Re:Le;switch(ce){case"left":case"up":te=pe+z(O),Y=Ae?N(O,te):te,q.currentDirection=0;break;case"right":case"down":te=pe-z(O),Y=Ae?N(O,te):te,q.currentDirection=1;break;default:Y=pe}q.triggerSlideHandler=Y}else{var ye=R(O);q.trackStyle=M(c(c({},O),{},{left:ye}))}return q};var G=Ee.getNavigableIndexes=function(v){for(var O=v.infinite?v.slideCount*2:v.slideCount,F=v.infinite?v.slidesToShow*-1:0,J=v.infinite?v.slidesToShow*-1:0,Q=[];F<O;)Q.push(F),F=J+v.slidesToScroll,J+=Math.min(v.slidesToScroll,v.slidesToShow);return Q},N=Ee.checkNavigable=function(v,O){var F=G(v),J=0;if(O>F[F.length-1])O=F[F.length-1];else for(var Q in F){if(O<F[Q]){O=J;break}J=F[Q]}return O},z=Ee.getSlideCount=function(v){var O=v.centerMode?v.slideWidth*Math.floor(v.slidesToShow/2):0;if(v.swipeToSlide){var F,J=v.listRef,Q=J.querySelectorAll&&J.querySelectorAll(".slick-slide")||[];if(Array.from(Q).every(function(be){if(v.vertical){if(be.offsetTop+T(be)/2>v.swipeLeft*-1)return F=be,!1}else if(be.offsetLeft-O+E(be)/2>v.swipeLeft*-1)return F=be,!1;return!0}),!F)return 0;var ne=v.rtl===!0?v.slideCount-v.currentSlide:v.currentSlide,ie=Math.abs(F.dataset.index-ne)||1;return ie}else return v.slidesToScroll},B=Ee.checkSpecKeys=function(v,O){return O.reduce(function(F,J){return F&&v.hasOwnProperty(J)},!0)?null:console.error("Keys Missing:",v)},H=Ee.getTrackCSS=function(v){B(v,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var O,F,J=v.slideCount+2*v.slidesToShow;v.vertical?F=J*v.slideHeight:O=V(v)*v.slideWidth;var Q={opacity:1,transition:"",WebkitTransition:""};if(v.useTransform){var ne=v.vertical?"translate3d(0px, "+v.left+"px, 0px)":"translate3d("+v.left+"px, 0px, 0px)",ie=v.vertical?"translate3d(0px, "+v.left+"px, 0px)":"translate3d("+v.left+"px, 0px, 0px)",be=v.vertical?"translateY("+v.left+"px)":"translateX("+v.left+"px)";Q=c(c({},Q),{},{WebkitTransform:ne,transform:ie,msTransform:be})}else v.vertical?Q.top=v.left:Q.left=v.left;return v.fade&&(Q={opacity:1}),O&&(Q.width=O),F&&(Q.height=F),window&&!window.addEventListener&&window.attachEvent&&(v.vertical?Q.marginTop=v.left+"px":Q.marginLeft=v.left+"px"),Q},M=Ee.getTrackAnimateCSS=function(v){B(v,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var O=H(v);return v.useTransform?(O.WebkitTransition="-webkit-transform "+v.speed+"ms "+v.cssEase,O.transition="transform "+v.speed+"ms "+v.cssEase):v.vertical?O.transition="top "+v.speed+"ms "+v.cssEase:O.transition="left "+v.speed+"ms "+v.cssEase,O},R=Ee.getTrackLeft=function(v){if(v.unslick)return 0;B(v,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var O=v.slideIndex,F=v.trackRef,J=v.infinite,Q=v.centerMode,ne=v.slideCount,ie=v.slidesToShow,be=v.slidesToScroll,Se=v.slideWidth,Ae=v.listWidth,Ne=v.variableWidth,Oe=v.slideHeight,Le=v.fade,Re=v.vertical,_=0,de,ce,q=0;if(Le||v.slideCount===1)return 0;var Y=0;if(J?(Y=-Z(v),ne%be!==0&&O+be>ne&&(Y=-(O>ne?ie-(O-ne):ne%be)),Q&&(Y+=parseInt(ie/2))):(ne%be!==0&&O+be>ne&&(Y=ie-ne%be),Q&&(Y=parseInt(ie/2))),_=Y*Se,q=Y*Oe,Re?de=O*Oe*-1+q:de=O*Se*-1+_,Ne===!0){var te,pe=F&&F.node;if(te=O+Z(v),ce=pe&&pe.childNodes[te],de=ce?ce.offsetLeft*-1:0,Q===!0){te=J?O+Z(v):O,ce=pe&&pe.children[te],de=0;for(var ye=0;ye<te;ye++)de-=pe&&pe.children[ye]&&pe.children[ye].offsetWidth;de-=parseInt(v.centerPadding),de+=ce&&(Ae-ce.offsetWidth)/2}}return de},Z=Ee.getPreClones=function(v){return v.unslick||!v.infinite?0:v.variableWidth?v.slideCount:v.slidesToShow+(v.centerMode?1:0)},P=Ee.getPostClones=function(v){return v.unslick||!v.infinite?0:v.slideCount},V=Ee.getTotalSlides=function(v){return v.slideCount===1?1:Z(v)+v.slideCount+P(v)},j=Ee.siblingDirection=function(v){return v.targetSlide>v.currentSlide?v.targetSlide>v.currentSlide+K(v)?"left":"right":v.targetSlide<v.currentSlide-X(v)?"right":"left"},K=Ee.slidesOnRight=function(v){var O=v.slidesToShow,F=v.centerMode,J=v.rtl,Q=v.centerPadding;if(F){var ne=(O-1)/2+1;return parseInt(Q)>0&&(ne+=1),J&&O%2===0&&(ne+=1),ne}return J?0:O-1},X=Ee.slidesOnLeft=function(v){var O=v.slidesToShow,F=v.centerMode,J=v.rtl,Q=v.centerPadding;if(F){var ne=(O-1)/2+1;return parseInt(Q)>0&&(ne+=1),!J&&O%2===0&&(ne+=1),ne}return J?O-1:0};Ee.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var w=Ee.validSettings=Object.keys(n.default);function ue(I){return w.reduce(function(v,O){return I.hasOwnProperty(O)&&(v[O]=I[O]),v},{})}return Ee}var Qi={},Gx;function Mk(){if(Gx)return Qi;Gx=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.Track=void 0;var e=s(Dn()),n=s(uu()),a=Mo();function s(M){return M&&M.__esModule?M:{default:M}}function o(M){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},o(M)}function c(){return c=Object.assign?Object.assign.bind():function(M){for(var R=1;R<arguments.length;R++){var Z=arguments[R];for(var P in Z)Object.prototype.hasOwnProperty.call(Z,P)&&(M[P]=Z[P])}return M},c.apply(this,arguments)}function d(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}function f(M,R){for(var Z=0;Z<R.length;Z++){var P=R[Z];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,L(P.key),P)}}function h(M,R,Z){return R&&f(M.prototype,R),Object.defineProperty(M,"prototype",{writable:!1}),M}function m(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(R&&R.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),R&&g(M,R)}function g(M,R){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,V){return P.__proto__=V,P},g(M,R)}function x(M){var R=k();return function(){var P=S(M),V;if(R){var j=S(this).constructor;V=Reflect.construct(P,arguments,j)}else V=P.apply(this,arguments);return b(this,V)}}function b(M,R){if(R&&(o(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(M)}function A(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function k(){try{var M=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k=function(){return!!M})()}function S(M){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},S(M)}function E(M,R){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);R&&(P=P.filter(function(V){return Object.getOwnPropertyDescriptor(M,V).enumerable})),Z.push.apply(Z,P)}return Z}function T(M){for(var R=1;R<arguments.length;R++){var Z=arguments[R]!=null?arguments[R]:{};R%2?E(Object(Z),!0).forEach(function(P){C(M,P,Z[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(Z)):E(Object(Z)).forEach(function(P){Object.defineProperty(M,P,Object.getOwnPropertyDescriptor(Z,P))})}return M}function C(M,R,Z){return R=L(R),R in M?Object.defineProperty(M,R,{value:Z,enumerable:!0,configurable:!0,writable:!0}):M[R]=Z,M}function L(M){var R=G(M,"string");return o(R)=="symbol"?R:String(R)}function G(M,R){if(o(M)!="object"||!M)return M;var Z=M[Symbol.toPrimitive];if(Z!==void 0){var P=Z.call(M,R);if(o(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(M)}var N=function(R){var Z,P,V,j,K;R.rtl?K=R.slideCount-1-R.index:K=R.index,V=K<0||K>=R.slideCount,R.centerMode?(j=Math.floor(R.slidesToShow/2),P=(K-R.currentSlide)%R.slideCount===0,K>R.currentSlide-j-1&&K<=R.currentSlide+j&&(Z=!0)):Z=R.currentSlide<=K&&K<R.currentSlide+R.slidesToShow;var X;R.targetSlide<0?X=R.targetSlide+R.slideCount:R.targetSlide>=R.slideCount?X=R.targetSlide-R.slideCount:X=R.targetSlide;var w=K===X;return{"slick-slide":!0,"slick-active":Z,"slick-center":P,"slick-cloned":V,"slick-current":w}},z=function(R){var Z={};return(R.variableWidth===void 0||R.variableWidth===!1)&&(Z.width=R.slideWidth),R.fade&&(Z.position="relative",R.vertical?Z.top=-R.index*parseInt(R.slideHeight):Z.left=-R.index*parseInt(R.slideWidth),Z.opacity=R.currentSlide===R.index?1:0,Z.zIndex=R.currentSlide===R.index?999:998,R.useCSS&&(Z.transition="opacity "+R.speed+"ms "+R.cssEase+", visibility "+R.speed+"ms "+R.cssEase)),Z},B=function(R,Z){return R.key||Z},H=function(R){var Z,P=[],V=[],j=[],K=e.default.Children.count(R.children),X=(0,a.lazyStartIndex)(R),w=(0,a.lazyEndIndex)(R);return e.default.Children.forEach(R.children,function(ue,I){var v,O={message:"children",index:I,slidesToScroll:R.slidesToScroll,currentSlide:R.currentSlide};!R.lazyLoad||R.lazyLoad&&R.lazyLoadedList.indexOf(I)>=0?v=ue:v=e.default.createElement("div",null);var F=z(T(T({},R),{},{index:I})),J=v.props.className||"",Q=N(T(T({},R),{},{index:I}));if(P.push(e.default.cloneElement(v,{key:"original"+B(v,I),"data-index":I,className:(0,n.default)(Q,J),tabIndex:"-1","aria-hidden":!Q["slick-active"],style:T(T({outline:"none"},v.props.style||{}),F),onClick:function(be){v.props&&v.props.onClick&&v.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}})),R.infinite&&R.fade===!1){var ne=K-I;ne<=(0,a.getPreClones)(R)&&(Z=-ne,Z>=X&&(v=ue),Q=N(T(T({},R),{},{index:Z})),V.push(e.default.cloneElement(v,{key:"precloned"+B(v,Z),"data-index":Z,tabIndex:"-1",className:(0,n.default)(Q,J),"aria-hidden":!Q["slick-active"],style:T(T({},v.props.style||{}),F),onClick:function(be){v.props&&v.props.onClick&&v.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}}))),Z=K+I,Z<w&&(v=ue),Q=N(T(T({},R),{},{index:Z})),j.push(e.default.cloneElement(v,{key:"postcloned"+B(v,Z),"data-index":Z,tabIndex:"-1",className:(0,n.default)(Q,J),"aria-hidden":!Q["slick-active"],style:T(T({},v.props.style||{}),F),onClick:function(be){v.props&&v.props.onClick&&v.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}}))}}),R.rtl?V.concat(P,j).reverse():V.concat(P,j)};return Qi.Track=function(M){m(Z,M);var R=x(Z);function Z(){var P;d(this,Z);for(var V=arguments.length,j=new Array(V),K=0;K<V;K++)j[K]=arguments[K];return P=R.call.apply(R,[this].concat(j)),C(A(P),"node",null),C(A(P),"handleRef",function(X){P.node=X}),P}return h(Z,[{key:"render",value:function(){var V=H(this.props),j=this.props,K=j.onMouseEnter,X=j.onMouseOver,w=j.onMouseLeave,ue={onMouseEnter:K,onMouseOver:X,onMouseLeave:w};return e.default.createElement("div",c({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ue),V)}}]),Z}(e.default.PureComponent),Qi}var Ji={},qx;function Lk(){if(qx)return Ji;qx=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},e(N)}Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.Dots=void 0;var n=o(Dn()),a=o(uu()),s=Mo();function o(N){return N&&N.__esModule?N:{default:N}}function c(N,z){var B=Object.keys(N);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);z&&(H=H.filter(function(M){return Object.getOwnPropertyDescriptor(N,M).enumerable})),B.push.apply(B,H)}return B}function d(N){for(var z=1;z<arguments.length;z++){var B=arguments[z]!=null?arguments[z]:{};z%2?c(Object(B),!0).forEach(function(H){f(N,H,B[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(B)):c(Object(B)).forEach(function(H){Object.defineProperty(N,H,Object.getOwnPropertyDescriptor(B,H))})}return N}function f(N,z,B){return z=x(z),z in N?Object.defineProperty(N,z,{value:B,enumerable:!0,configurable:!0,writable:!0}):N[z]=B,N}function h(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}function m(N,z){for(var B=0;B<z.length;B++){var H=z[B];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,x(H.key),H)}}function g(N,z,B){return z&&m(N.prototype,z),Object.defineProperty(N,"prototype",{writable:!1}),N}function x(N){var z=b(N,"string");return e(z)=="symbol"?z:String(z)}function b(N,z){if(e(N)!="object"||!N)return N;var B=N[Symbol.toPrimitive];if(B!==void 0){var H=B.call(N,z);if(e(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function A(N,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(z&&z.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),z&&k(N,z)}function k(N,z){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,M){return H.__proto__=M,H},k(N,z)}function S(N){var z=C();return function(){var H=L(N),M;if(z){var R=L(this).constructor;M=Reflect.construct(H,arguments,R)}else M=H.apply(this,arguments);return E(this,M)}}function E(N,z){if(z&&(e(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(N)}function T(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function C(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C=function(){return!!N})()}function L(N){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},L(N)}var G=function(z){var B;return z.infinite?B=Math.ceil(z.slideCount/z.slidesToScroll):B=Math.ceil((z.slideCount-z.slidesToShow)/z.slidesToScroll)+1,B};return Ji.Dots=function(N){A(B,N);var z=S(B);function B(){return h(this,B),z.apply(this,arguments)}return g(B,[{key:"clickHandler",value:function(M,R){R.preventDefault(),this.props.clickHandler(M)}},{key:"render",value:function(){for(var M=this.props,R=M.onMouseEnter,Z=M.onMouseOver,P=M.onMouseLeave,V=M.infinite,j=M.slidesToScroll,K=M.slidesToShow,X=M.slideCount,w=M.currentSlide,ue=G({slideCount:X,slidesToScroll:j,slidesToShow:K,infinite:V}),I={onMouseEnter:R,onMouseOver:Z,onMouseLeave:P},v=[],O=0;O<ue;O++){var F=(O+1)*j-1,J=V?F:(0,s.clamp)(F,0,X-1),Q=J-(j-1),ne=V?Q:(0,s.clamp)(Q,0,X-1),ie=(0,a.default)({"slick-active":V?w>=ne&&w<=J:w===ne}),be={message:"dots",index:O,slidesToScroll:j,currentSlide:w},Se=this.clickHandler.bind(this,be);v=v.concat(n.default.createElement("li",{key:O,className:ie},n.default.cloneElement(this.props.customPaging(O),{onClick:Se})))}return n.default.cloneElement(this.props.appendDots(v),d({className:this.props.dotsClass},I))}}]),B}(n.default.PureComponent),Ji}var Ta={},Yx;function Pk(){if(Yx)return Ta;Yx=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},e(N)}Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.PrevArrow=Ta.NextArrow=void 0;var n=o(Dn()),a=o(uu()),s=Mo();function o(N){return N&&N.__esModule?N:{default:N}}function c(){return c=Object.assign?Object.assign.bind():function(N){for(var z=1;z<arguments.length;z++){var B=arguments[z];for(var H in B)Object.prototype.hasOwnProperty.call(B,H)&&(N[H]=B[H])}return N},c.apply(this,arguments)}function d(N,z){var B=Object.keys(N);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);z&&(H=H.filter(function(M){return Object.getOwnPropertyDescriptor(N,M).enumerable})),B.push.apply(B,H)}return B}function f(N){for(var z=1;z<arguments.length;z++){var B=arguments[z]!=null?arguments[z]:{};z%2?d(Object(B),!0).forEach(function(H){h(N,H,B[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(B)):d(Object(B)).forEach(function(H){Object.defineProperty(N,H,Object.getOwnPropertyDescriptor(B,H))})}return N}function h(N,z,B){return z=b(z),z in N?Object.defineProperty(N,z,{value:B,enumerable:!0,configurable:!0,writable:!0}):N[z]=B,N}function m(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}function g(N,z){for(var B=0;B<z.length;B++){var H=z[B];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,b(H.key),H)}}function x(N,z,B){return z&&g(N.prototype,z),Object.defineProperty(N,"prototype",{writable:!1}),N}function b(N){var z=A(N,"string");return e(z)=="symbol"?z:String(z)}function A(N,z){if(e(N)!="object"||!N)return N;var B=N[Symbol.toPrimitive];if(B!==void 0){var H=B.call(N,z);if(e(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function k(N,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(z&&z.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),z&&S(N,z)}function S(N,z){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,M){return H.__proto__=M,H},S(N,z)}function E(N){var z=L();return function(){var H=G(N),M;if(z){var R=G(this).constructor;M=Reflect.construct(H,arguments,R)}else M=H.apply(this,arguments);return T(this,M)}}function T(N,z){if(z&&(e(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(N)}function C(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function L(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!N})()}function G(N){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},G(N)}return Ta.PrevArrow=function(N){k(B,N);var z=E(B);function B(){return m(this,B),z.apply(this,arguments)}return x(B,[{key:"clickHandler",value:function(M,R){R&&R.preventDefault(),this.props.clickHandler(M,R)}},{key:"render",value:function(){var M={"slick-arrow":!0,"slick-prev":!0},R=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(M["slick-disabled"]=!0,R=null);var Z={key:"0","data-role":"none",className:(0,a.default)(M),style:{display:"block"},onClick:R},P={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},V;return this.props.prevArrow?V=n.default.cloneElement(this.props.prevArrow,f(f({},Z),P)):V=n.default.createElement("button",c({key:"0",type:"button"},Z)," ","Previous"),V}}]),B}(n.default.PureComponent),Ta.NextArrow=function(N){k(B,N);var z=E(B);function B(){return m(this,B),z.apply(this,arguments)}return x(B,[{key:"clickHandler",value:function(M,R){R&&R.preventDefault(),this.props.clickHandler(M,R)}},{key:"render",value:function(){var M={"slick-arrow":!0,"slick-next":!0},R=this.clickHandler.bind(this,{message:"next"});(0,s.canGoNext)(this.props)||(M["slick-disabled"]=!0,R=null);var Z={key:"1","data-role":"none",className:(0,a.default)(M),style:{display:"block"},onClick:R},P={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},V;return this.props.nextArrow?V=n.default.cloneElement(this.props.nextArrow,f(f({},Z),P)):V=n.default.createElement("button",c({key:"1",type:"button"},Z)," ","Next"),V}}]),B}(n.default.PureComponent),Ta}var Z1=function(){if(typeof Map<"u")return Map;function e(n,a){var s=-1;return n.some(function(o,c){return o[0]===a?(s=c,!0):!1}),s}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(a){var s=e(this.__entries__,a),o=this.__entries__[s];return o&&o[1]},n.prototype.set=function(a,s){var o=e(this.__entries__,a);~o?this.__entries__[o][1]=s:this.__entries__.push([a,s])},n.prototype.delete=function(a){var s=this.__entries__,o=e(s,a);~o&&s.splice(o,1)},n.prototype.has=function(a){return!!~e(this.__entries__,a)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(a,s){s===void 0&&(s=null);for(var o=0,c=this.__entries__;o<c.length;o++){var d=c[o];a.call(s,d[1],d[0])}},n}()}(),Vh=typeof window<"u"&&typeof document<"u"&&window.document===document,zc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),zk=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(zc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Fk=2;function Uk(e,n){var a=!1,s=!1,o=0;function c(){a&&(a=!1,e()),s&&f()}function d(){zk(c)}function f(){var h=Date.now();if(a){if(h-o<Fk)return;s=!0}else a=!0,s=!1,setTimeout(d,n);o=h}return f}var Bk=20,Vk=["top","right","bottom","left","width","height","size","weight"],Hk=typeof MutationObserver<"u",Ik=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Uk(this.refresh.bind(this),Bk)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var a=this.observers_,s=a.indexOf(n);~s&&a.splice(s,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return n.forEach(function(a){return a.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!Vh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Hk?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Vh||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var a=n.propertyName,s=a===void 0?"":a,o=Vk.some(function(c){return!!~s.indexOf(c)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$1=function(e,n){for(var a=0,s=Object.keys(n);a<s.length;a++){var o=s[a];Object.defineProperty(e,o,{value:n[o],enumerable:!1,writable:!1,configurable:!0})}return e},Vs=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||zc},Q1=du(0,0,0,0);function Fc(e){return parseFloat(e)||0}function Wx(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(s,o){var c=e["border-"+o+"-width"];return s+Fc(c)},0)}function Gk(e){for(var n=["top","right","bottom","left"],a={},s=0,o=n;s<o.length;s++){var c=o[s],d=e["padding-"+c];a[c]=Fc(d)}return a}function qk(e){var n=e.getBBox();return du(0,0,n.width,n.height)}function Yk(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return Q1;var s=Vs(e).getComputedStyle(e),o=Gk(s),c=o.left+o.right,d=o.top+o.bottom,f=Fc(s.width),h=Fc(s.height);if(s.boxSizing==="border-box"&&(Math.round(f+c)!==n&&(f-=Wx(s,"left","right")+c),Math.round(h+d)!==a&&(h-=Wx(s,"top","bottom")+d)),!Xk(e)){var m=Math.round(f+c)-n,g=Math.round(h+d)-a;Math.abs(m)!==1&&(f-=m),Math.abs(g)!==1&&(h-=g)}return du(o.left,o.top,f,h)}var Wk=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Vs(e).SVGGraphicsElement}:function(e){return e instanceof Vs(e).SVGElement&&typeof e.getBBox=="function"}}();function Xk(e){return e===Vs(e).document.documentElement}function Kk(e){return Vh?Wk(e)?qk(e):Yk(e):Q1}function Zk(e){var n=e.x,a=e.y,s=e.width,o=e.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(c.prototype);return $1(d,{x:n,y:a,width:s,height:o,top:a,right:n+s,bottom:o+a,left:n}),d}function du(e,n,a,s){return{x:e,y:n,width:a,height:s}}var $k=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=du(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=Kk(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),Qk=function(){function e(n,a){var s=Zk(a);$1(this,{target:n,contentRect:s})}return e}(),Jk=function(){function e(n,a,s){if(this.activeObservations_=[],this.observations_=new Z1,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=a,this.callbackCtx_=s}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Vs(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new $k(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Vs(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)&&(a.delete(n),a.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&n.activeObservations_.push(a)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,a=this.activeObservations_.map(function(s){return new Qk(s.target,s.broadcastRect())});this.callback_.call(n,a,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),J1=typeof WeakMap<"u"?new WeakMap:new Z1,ew=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=Ik.getInstance(),s=new Jk(n,a,this);J1.set(this,s)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ew.prototype[e]=function(){var n;return(n=J1.get(this))[e].apply(n,arguments)}});var e_=function(){return typeof zc.ResizeObserver<"u"?zc.ResizeObserver:ew}();const t_=Object.freeze(Object.defineProperty({__proto__:null,default:e_},Symbol.toStringTag,{value:"Module"})),n_=Yj(t_);var Xx;function r_(){if(Xx)return $i;Xx=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.InnerSlider=void 0;var e=m(Dn()),n=m(Ck()),a=m(Dk()),s=m(uu()),o=Mo(),c=Mk(),d=Lk(),f=Pk(),h=m(n_);function m(V){return V&&V.__esModule?V:{default:V}}function g(V){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},g(V)}function x(){return x=Object.assign?Object.assign.bind():function(V){for(var j=1;j<arguments.length;j++){var K=arguments[j];for(var X in K)Object.prototype.hasOwnProperty.call(K,X)&&(V[X]=K[X])}return V},x.apply(this,arguments)}function b(V,j){if(V==null)return{};var K=A(V,j),X,w;if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(V);for(w=0;w<ue.length;w++)X=ue[w],!(j.indexOf(X)>=0)&&Object.prototype.propertyIsEnumerable.call(V,X)&&(K[X]=V[X])}return K}function A(V,j){if(V==null)return{};var K={},X=Object.keys(V),w,ue;for(ue=0;ue<X.length;ue++)w=X[ue],!(j.indexOf(w)>=0)&&(K[w]=V[w]);return K}function k(V,j){var K=Object.keys(V);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(V);j&&(X=X.filter(function(w){return Object.getOwnPropertyDescriptor(V,w).enumerable})),K.push.apply(K,X)}return K}function S(V){for(var j=1;j<arguments.length;j++){var K=arguments[j]!=null?arguments[j]:{};j%2?k(Object(K),!0).forEach(function(X){R(V,X,K[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(K)):k(Object(K)).forEach(function(X){Object.defineProperty(V,X,Object.getOwnPropertyDescriptor(K,X))})}return V}function E(V,j){if(!(V instanceof j))throw new TypeError("Cannot call a class as a function")}function T(V,j){for(var K=0;K<j.length;K++){var X=j[K];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(V,Z(X.key),X)}}function C(V,j,K){return j&&T(V.prototype,j),Object.defineProperty(V,"prototype",{writable:!1}),V}function L(V,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(j&&j.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),j&&G(V,j)}function G(V,j){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,w){return X.__proto__=w,X},G(V,j)}function N(V){var j=H();return function(){var X=M(V),w;if(j){var ue=M(this).constructor;w=Reflect.construct(X,arguments,ue)}else w=X.apply(this,arguments);return z(this,w)}}function z(V,j){if(j&&(g(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(V)}function B(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function H(){try{var V=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H=function(){return!!V})()}function M(V){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},M(V)}function R(V,j,K){return j=Z(j),j in V?Object.defineProperty(V,j,{value:K,enumerable:!0,configurable:!0,writable:!0}):V[j]=K,V}function Z(V){var j=P(V,"string");return g(j)=="symbol"?j:String(j)}function P(V,j){if(g(V)!="object"||!V)return V;var K=V[Symbol.toPrimitive];if(K!==void 0){var X=K.call(V,j);if(g(X)!="object")return X;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(V)}return $i.InnerSlider=function(V){L(K,V);var j=N(K);function K(X){var w;E(this,K),w=j.call(this,X),R(B(w),"listRefHandler",function(I){return w.list=I}),R(B(w),"trackRefHandler",function(I){return w.track=I}),R(B(w),"adaptHeight",function(){if(w.props.adaptiveHeight&&w.list){var I=w.list.querySelector('[data-index="'.concat(w.state.currentSlide,'"]'));w.list.style.height=(0,o.getHeight)(I)+"px"}}),R(B(w),"componentDidMount",function(){if(w.props.onInit&&w.props.onInit(),w.props.lazyLoad){var I=(0,o.getOnDemandLazySlides)(S(S({},w.props),w.state));I.length>0&&(w.setState(function(O){return{lazyLoadedList:O.lazyLoadedList.concat(I)}}),w.props.onLazyLoad&&w.props.onLazyLoad(I))}var v=S({listRef:w.list,trackRef:w.track},w.props);w.updateState(v,!0,function(){w.adaptHeight(),w.props.autoplay&&w.autoPlay("update")}),w.props.lazyLoad==="progressive"&&(w.lazyLoadTimer=setInterval(w.progressiveLazyLoad,1e3)),w.ro=new h.default(function(){w.state.animating?(w.onWindowResized(!1),w.callbackTimers.push(setTimeout(function(){return w.onWindowResized()},w.props.speed))):w.onWindowResized()}),w.ro.observe(w.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(O){O.onfocus=w.props.pauseOnFocus?w.onSlideFocus:null,O.onblur=w.props.pauseOnFocus?w.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",w.onWindowResized):window.attachEvent("onresize",w.onWindowResized)}),R(B(w),"componentWillUnmount",function(){w.animationEndCallback&&clearTimeout(w.animationEndCallback),w.lazyLoadTimer&&clearInterval(w.lazyLoadTimer),w.callbackTimers.length&&(w.callbackTimers.forEach(function(I){return clearTimeout(I)}),w.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",w.onWindowResized):window.detachEvent("onresize",w.onWindowResized),w.autoplayTimer&&clearInterval(w.autoplayTimer),w.ro.disconnect()}),R(B(w),"componentDidUpdate",function(I){if(w.checkImagesLoad(),w.props.onReInit&&w.props.onReInit(),w.props.lazyLoad){var v=(0,o.getOnDemandLazySlides)(S(S({},w.props),w.state));v.length>0&&(w.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(v)}}),w.props.onLazyLoad&&w.props.onLazyLoad(v))}w.adaptHeight();var O=S(S({listRef:w.list,trackRef:w.track},w.props),w.state),F=w.didPropsChange(I);F&&w.updateState(O,F,function(){w.state.currentSlide>=e.default.Children.count(w.props.children)&&w.changeSlide({message:"index",index:e.default.Children.count(w.props.children)-w.props.slidesToShow,currentSlide:w.state.currentSlide}),w.props.autoplay?w.autoPlay("update"):w.pause("paused")})}),R(B(w),"onWindowResized",function(I){w.debouncedResize&&w.debouncedResize.cancel(),w.debouncedResize=(0,a.default)(function(){return w.resizeWindow(I)},50),w.debouncedResize()}),R(B(w),"resizeWindow",function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=!!(w.track&&w.track.node);if(v){var O=S(S({listRef:w.list,trackRef:w.track},w.props),w.state);w.updateState(O,I,function(){w.props.autoplay?w.autoPlay("update"):w.pause("paused")}),w.setState({animating:!1}),clearTimeout(w.animationEndCallback),delete w.animationEndCallback}}),R(B(w),"updateState",function(I,v,O){var F=(0,o.initializedState)(I);I=S(S(S({},I),F),{},{slideIndex:F.currentSlide});var J=(0,o.getTrackLeft)(I);I=S(S({},I),{},{left:J});var Q=(0,o.getTrackCSS)(I);(v||e.default.Children.count(w.props.children)!==e.default.Children.count(I.children))&&(F.trackStyle=Q),w.setState(F,O)}),R(B(w),"ssrInit",function(){if(w.props.variableWidth){var I=0,v=0,O=[],F=(0,o.getPreClones)(S(S(S({},w.props),w.state),{},{slideCount:w.props.children.length})),J=(0,o.getPostClones)(S(S(S({},w.props),w.state),{},{slideCount:w.props.children.length}));w.props.children.forEach(function(ce){O.push(ce.props.style.width),I+=ce.props.style.width});for(var Q=0;Q<F;Q++)v+=O[O.length-1-Q],I+=O[O.length-1-Q];for(var ne=0;ne<J;ne++)I+=O[ne];for(var ie=0;ie<w.state.currentSlide;ie++)v+=O[ie];var be={width:I+"px",left:-v+"px"};if(w.props.centerMode){var Se="".concat(O[w.state.currentSlide],"px");be.left="calc(".concat(be.left," + (100% - ").concat(Se,") / 2 ) ")}return{trackStyle:be}}var Ae=e.default.Children.count(w.props.children),Ne=S(S(S({},w.props),w.state),{},{slideCount:Ae}),Oe=(0,o.getPreClones)(Ne)+(0,o.getPostClones)(Ne)+Ae,Le=100/w.props.slidesToShow*Oe,Re=100/Oe,_=-Re*((0,o.getPreClones)(Ne)+w.state.currentSlide)*Le/100;w.props.centerMode&&(_+=(100-Re*Le/100)/2);var de={width:Le+"%",left:_+"%"};return{slideWidth:Re+"%",trackStyle:de}}),R(B(w),"checkImagesLoad",function(){var I=w.list&&w.list.querySelectorAll&&w.list.querySelectorAll(".slick-slide img")||[],v=I.length,O=0;Array.prototype.forEach.call(I,function(F){var J=function(){return++O&&O>=v&&w.onWindowResized()};if(!F.onclick)F.onclick=function(){return F.parentNode.focus()};else{var Q=F.onclick;F.onclick=function(ne){Q(ne),F.parentNode.focus()}}F.onload||(w.props.lazyLoad?F.onload=function(){w.adaptHeight(),w.callbackTimers.push(setTimeout(w.onWindowResized,w.props.speed))}:(F.onload=J,F.onerror=function(){J(),w.props.onLazyLoadError&&w.props.onLazyLoadError()}))})}),R(B(w),"progressiveLazyLoad",function(){for(var I=[],v=S(S({},w.props),w.state),O=w.state.currentSlide;O<w.state.slideCount+(0,o.getPostClones)(v);O++)if(w.state.lazyLoadedList.indexOf(O)<0){I.push(O);break}for(var F=w.state.currentSlide-1;F>=-(0,o.getPreClones)(v);F--)if(w.state.lazyLoadedList.indexOf(F)<0){I.push(F);break}I.length>0?(w.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(I)}}),w.props.onLazyLoad&&w.props.onLazyLoad(I)):w.lazyLoadTimer&&(clearInterval(w.lazyLoadTimer),delete w.lazyLoadTimer)}),R(B(w),"slideHandler",function(I){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=w.props,F=O.asNavFor,J=O.beforeChange,Q=O.onLazyLoad,ne=O.speed,ie=O.afterChange,be=w.state.currentSlide,Se=(0,o.slideHandler)(S(S(S({index:I},w.props),w.state),{},{trackRef:w.track,useCSS:w.props.useCSS&&!v})),Ae=Se.state,Ne=Se.nextState;if(Ae){J&&J(be,Ae.currentSlide);var Oe=Ae.lazyLoadedList.filter(function(Le){return w.state.lazyLoadedList.indexOf(Le)<0});Q&&Oe.length>0&&Q(Oe),!w.props.waitForAnimate&&w.animationEndCallback&&(clearTimeout(w.animationEndCallback),ie&&ie(be),delete w.animationEndCallback),w.setState(Ae,function(){F&&w.asNavForIndex!==I&&(w.asNavForIndex=I,F.innerSlider.slideHandler(I)),Ne&&(w.animationEndCallback=setTimeout(function(){var Le=Ne.animating,Re=b(Ne,["animating"]);w.setState(Re,function(){w.callbackTimers.push(setTimeout(function(){return w.setState({animating:Le})},10)),ie&&ie(Ae.currentSlide),delete w.animationEndCallback})},ne))})}}),R(B(w),"changeSlide",function(I){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=S(S({},w.props),w.state),F=(0,o.changeSlide)(O,I);if(!(F!==0&&!F)&&(v===!0?w.slideHandler(F,v):w.slideHandler(F),w.props.autoplay&&w.autoPlay("update"),w.props.focusOnSelect)){var J=w.list.querySelectorAll(".slick-current");J[0]&&J[0].focus()}}),R(B(w),"clickHandler",function(I){w.clickable===!1&&(I.stopPropagation(),I.preventDefault()),w.clickable=!0}),R(B(w),"keyHandler",function(I){var v=(0,o.keyHandler)(I,w.props.accessibility,w.props.rtl);v!==""&&w.changeSlide({message:v})}),R(B(w),"selectHandler",function(I){w.changeSlide(I)}),R(B(w),"disableBodyScroll",function(){var I=function(O){O=O||window.event,O.preventDefault&&O.preventDefault(),O.returnValue=!1};window.ontouchmove=I}),R(B(w),"enableBodyScroll",function(){window.ontouchmove=null}),R(B(w),"swipeStart",function(I){w.props.verticalSwiping&&w.disableBodyScroll();var v=(0,o.swipeStart)(I,w.props.swipe,w.props.draggable);v!==""&&w.setState(v)}),R(B(w),"swipeMove",function(I){var v=(0,o.swipeMove)(I,S(S(S({},w.props),w.state),{},{trackRef:w.track,listRef:w.list,slideIndex:w.state.currentSlide}));v&&(v.swiping&&(w.clickable=!1),w.setState(v))}),R(B(w),"swipeEnd",function(I){var v=(0,o.swipeEnd)(I,S(S(S({},w.props),w.state),{},{trackRef:w.track,listRef:w.list,slideIndex:w.state.currentSlide}));if(v){var O=v.triggerSlideHandler;delete v.triggerSlideHandler,w.setState(v),O!==void 0&&(w.slideHandler(O),w.props.verticalSwiping&&w.enableBodyScroll())}}),R(B(w),"touchEnd",function(I){w.swipeEnd(I),w.clickable=!0}),R(B(w),"slickPrev",function(){w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"previous"})},0))}),R(B(w),"slickNext",function(){w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"next"})},0))}),R(B(w),"slickGoTo",function(I){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I=Number(I),isNaN(I))return"";w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"index",index:I,currentSlide:w.state.currentSlide},v)},0))}),R(B(w),"play",function(){var I;if(w.props.rtl)I=w.state.currentSlide-w.props.slidesToScroll;else if((0,o.canGoNext)(S(S({},w.props),w.state)))I=w.state.currentSlide+w.props.slidesToScroll;else return!1;w.slideHandler(I)}),R(B(w),"autoPlay",function(I){w.autoplayTimer&&clearInterval(w.autoplayTimer);var v=w.state.autoplaying;if(I==="update"){if(v==="hovered"||v==="focused"||v==="paused")return}else if(I==="leave"){if(v==="paused"||v==="focused")return}else if(I==="blur"&&(v==="paused"||v==="hovered"))return;w.autoplayTimer=setInterval(w.play,w.props.autoplaySpeed+50),w.setState({autoplaying:"playing"})}),R(B(w),"pause",function(I){w.autoplayTimer&&(clearInterval(w.autoplayTimer),w.autoplayTimer=null);var v=w.state.autoplaying;I==="paused"?w.setState({autoplaying:"paused"}):I==="focused"?(v==="hovered"||v==="playing")&&w.setState({autoplaying:"focused"}):v==="playing"&&w.setState({autoplaying:"hovered"})}),R(B(w),"onDotsOver",function(){return w.props.autoplay&&w.pause("hovered")}),R(B(w),"onDotsLeave",function(){return w.props.autoplay&&w.state.autoplaying==="hovered"&&w.autoPlay("leave")}),R(B(w),"onTrackOver",function(){return w.props.autoplay&&w.pause("hovered")}),R(B(w),"onTrackLeave",function(){return w.props.autoplay&&w.state.autoplaying==="hovered"&&w.autoPlay("leave")}),R(B(w),"onSlideFocus",function(){return w.props.autoplay&&w.pause("focused")}),R(B(w),"onSlideBlur",function(){return w.props.autoplay&&w.state.autoplaying==="focused"&&w.autoPlay("blur")}),R(B(w),"render",function(){var I=(0,s.default)("slick-slider",w.props.className,{"slick-vertical":w.props.vertical,"slick-initialized":!0}),v=S(S({},w.props),w.state),O=(0,o.extractObject)(v,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),F=w.props.pauseOnHover;O=S(S({},O),{},{onMouseEnter:F?w.onTrackOver:null,onMouseLeave:F?w.onTrackLeave:null,onMouseOver:F?w.onTrackOver:null,focusOnSelect:w.props.focusOnSelect&&w.clickable?w.selectHandler:null});var J;if(w.props.dots===!0&&w.state.slideCount>=w.props.slidesToShow){var Q=(0,o.extractObject)(v,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),ne=w.props.pauseOnDotsHover;Q=S(S({},Q),{},{clickHandler:w.changeSlide,onMouseEnter:ne?w.onDotsLeave:null,onMouseOver:ne?w.onDotsOver:null,onMouseLeave:ne?w.onDotsLeave:null}),J=e.default.createElement(d.Dots,Q)}var ie,be,Se=(0,o.extractObject)(v,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Se.clickHandler=w.changeSlide,w.props.arrows&&(ie=e.default.createElement(f.PrevArrow,Se),be=e.default.createElement(f.NextArrow,Se));var Ae=null;w.props.vertical&&(Ae={height:w.state.listHeight});var Ne=null;w.props.vertical===!1?w.props.centerMode===!0&&(Ne={padding:"0px "+w.props.centerPadding}):w.props.centerMode===!0&&(Ne={padding:w.props.centerPadding+" 0px"});var Oe=S(S({},Ae),Ne),Le=w.props.touchMove,Re={className:"slick-list",style:Oe,onClick:w.clickHandler,onMouseDown:Le?w.swipeStart:null,onMouseMove:w.state.dragging&&Le?w.swipeMove:null,onMouseUp:Le?w.swipeEnd:null,onMouseLeave:w.state.dragging&&Le?w.swipeEnd:null,onTouchStart:Le?w.swipeStart:null,onTouchMove:w.state.dragging&&Le?w.swipeMove:null,onTouchEnd:Le?w.touchEnd:null,onTouchCancel:w.state.dragging&&Le?w.swipeEnd:null,onKeyDown:w.props.accessibility?w.keyHandler:null},_={className:I,dir:"ltr",style:w.props.style};return w.props.unslick&&(Re={className:"slick-list"},_={className:I}),e.default.createElement("div",_,w.props.unslick?"":ie,e.default.createElement("div",x({ref:w.listRefHandler},Re),e.default.createElement(c.Track,x({ref:w.trackRefHandler},O),w.props.children)),w.props.unslick?"":be,w.props.unslick?"":J)}),w.list=null,w.track=null,w.state=S(S({},n.default),{},{currentSlide:w.props.initialSlide,targetSlide:w.props.initialSlide?w.props.initialSlide:0,slideCount:e.default.Children.count(w.props.children)}),w.callbackTimers=[],w.clickable=!0,w.debouncedResize=null;var ue=w.ssrInit();return w.state=S(S({},w.state),ue),w}return C(K,[{key:"didPropsChange",value:function(w){for(var ue=!1,I=0,v=Object.keys(this.props);I<v.length;I++){var O=v[I];if(!w.hasOwnProperty(O)){ue=!0;break}if(!(g(w[O])==="object"||typeof w[O]=="function"||isNaN(w[O]))&&w[O]!==this.props[O]){ue=!0;break}}return ue||e.default.Children.count(this.props.children)!==e.default.Children.count(w.children)}}]),K}(e.default.Component),$i}var Jf,Kx;function a_(){if(Kx)return Jf;Kx=1;var e=function(n){return n.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return Jf=e,Jf}var eh,Zx;function s_(){if(Zx)return eh;Zx=1;var e=a_(),n=function(o){var c=/[height|width]$/;return c.test(o)},a=function(o){var c="",d=Object.keys(o);return d.forEach(function(f,h){var m=o[f];f=e(f),n(f)&&typeof m=="number"&&(m=m+"px"),m===!0?c+=f:m===!1?c+="not "+f:c+="("+f+": "+m+")",h<d.length-1&&(c+=" and ")}),c},s=function(o){var c="";return typeof o=="string"?o:o instanceof Array?(o.forEach(function(d,f){c+=a(d),f<o.length-1&&(c+=", ")}),c):a(o)};return eh=s,eh}var th,$x;function i_(){if($x)return th;$x=1;function e(n){this.options=n,!n.deferSetup&&this.setup()}return e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(n){return this.options===n||this.options.match===n}},th=e,th}var nh,Qx;function tw(){if(Qx)return nh;Qx=1;function e(s,o){var c=0,d=s.length,f;for(c;c<d&&(f=o(s[c],c),f!==!1);c++);}function n(s){return Object.prototype.toString.apply(s)==="[object Array]"}function a(s){return typeof s=="function"}return nh={isFunction:a,isArray:n,each:e},nh}var rh,Jx;function o_(){if(Jx)return rh;Jx=1;var e=i_(),n=tw().each;function a(s,o){this.query=s,this.isUnconditional=o,this.handlers=[],this.mql=window.matchMedia(s);var c=this;this.listener=function(d){c.mql=d.currentTarget||d,c.assess()},this.mql.addListener(this.listener)}return a.prototype={constuctor:a,addHandler:function(s){var o=new e(s);this.handlers.push(o),this.matches()&&o.on()},removeHandler:function(s){var o=this.handlers;n(o,function(c,d){if(c.equals(s))return c.destroy(),!o.splice(d,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){n(this.handlers,function(s){s.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var s=this.matches()?"on":"off";n(this.handlers,function(o){o[s]()})}},rh=a,rh}var ah,ev;function l_(){if(ev)return ah;ev=1;var e=o_(),n=tw(),a=n.each,s=n.isFunction,o=n.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return c.prototype={constructor:c,register:function(d,f,h){var m=this.queries,g=h&&this.browserIsIncapable;return m[d]||(m[d]=new e(d,g)),s(f)&&(f={match:f}),o(f)||(f=[f]),a(f,function(x){s(x)&&(x={match:x}),m[d].addHandler(x)}),this},unregister:function(d,f){var h=this.queries[d];return h&&(f?h.removeHandler(f):(h.clear(),delete this.queries[d])),this}},ah=c,ah}var sh,tv;function c_(){if(tv)return sh;tv=1;var e=l_();return sh=new e,sh}var nv;function u_(){return nv||(nv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=d(Dn()),a=r_(),s=d(s_()),o=d(K1()),c=Mo();function d(M){return M&&M.__esModule?M:{default:M}}function f(M){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(M)}function h(){return h=Object.assign?Object.assign.bind():function(M){for(var R=1;R<arguments.length;R++){var Z=arguments[R];for(var P in Z)Object.prototype.hasOwnProperty.call(Z,P)&&(M[P]=Z[P])}return M},h.apply(this,arguments)}function m(M,R){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);R&&(P=P.filter(function(V){return Object.getOwnPropertyDescriptor(M,V).enumerable})),Z.push.apply(Z,P)}return Z}function g(M){for(var R=1;R<arguments.length;R++){var Z=arguments[R]!=null?arguments[R]:{};R%2?m(Object(Z),!0).forEach(function(P){N(M,P,Z[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(Z)):m(Object(Z)).forEach(function(P){Object.defineProperty(M,P,Object.getOwnPropertyDescriptor(Z,P))})}return M}function x(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}function b(M,R){for(var Z=0;Z<R.length;Z++){var P=R[Z];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,z(P.key),P)}}function A(M,R,Z){return R&&b(M.prototype,R),Object.defineProperty(M,"prototype",{writable:!1}),M}function k(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(R&&R.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),R&&S(M,R)}function S(M,R){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,V){return P.__proto__=V,P},S(M,R)}function E(M){var R=L();return function(){var P=G(M),V;if(R){var j=G(this).constructor;V=Reflect.construct(P,arguments,j)}else V=P.apply(this,arguments);return T(this,V)}}function T(M,R){if(R&&(f(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(M)}function C(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function L(){try{var M=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!M})()}function G(M){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},G(M)}function N(M,R,Z){return R=z(R),R in M?Object.defineProperty(M,R,{value:Z,enumerable:!0,configurable:!0,writable:!0}):M[R]=Z,M}function z(M){var R=B(M,"string");return f(R)=="symbol"?R:String(R)}function B(M,R){if(f(M)!="object"||!M)return M;var Z=M[Symbol.toPrimitive];if(Z!==void 0){var P=Z.call(M,R);if(f(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(M)}var H=(0,c.canUseDOM)()&&c_();e.default=function(M){k(Z,M);var R=E(Z);function Z(P){var V;return x(this,Z),V=R.call(this,P),N(C(V),"innerSliderRefHandler",function(j){return V.innerSlider=j}),N(C(V),"slickPrev",function(){return V.innerSlider.slickPrev()}),N(C(V),"slickNext",function(){return V.innerSlider.slickNext()}),N(C(V),"slickGoTo",function(j){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return V.innerSlider.slickGoTo(j,K)}),N(C(V),"slickPause",function(){return V.innerSlider.pause("paused")}),N(C(V),"slickPlay",function(){return V.innerSlider.autoPlay("play")}),V.state={breakpoint:null},V._responsiveMediaHandlers=[],V}return A(Z,[{key:"media",value:function(V,j){H.register(V,j),this._responsiveMediaHandlers.push({query:V,handler:j})}},{key:"componentDidMount",value:function(){var V=this;if(this.props.responsive){var j=this.props.responsive.map(function(X){return X.breakpoint});j.sort(function(X,w){return X-w}),j.forEach(function(X,w){var ue;w===0?ue=(0,s.default)({minWidth:0,maxWidth:X}):ue=(0,s.default)({minWidth:j[w-1]+1,maxWidth:X}),(0,c.canUseDOM)()&&V.media(ue,function(){V.setState({breakpoint:X})})});var K=(0,s.default)({minWidth:j.slice(-1)[0]});(0,c.canUseDOM)()&&this.media(K,function(){V.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(V){H.unregister(V.query,V.handler)})}},{key:"render",value:function(){var V=this,j,K;this.state.breakpoint?(K=this.props.responsive.filter(function(ne){return ne.breakpoint===V.state.breakpoint}),j=K[0].settings==="unslick"?"unslick":g(g(g({},o.default),this.props),K[0].settings)):j=g(g({},o.default),this.props),j.centerMode&&(j.slidesToScroll>1,j.slidesToScroll=1),j.fade&&(j.slidesToShow>1,j.slidesToScroll>1,j.slidesToShow=1,j.slidesToScroll=1);var X=n.default.Children.toArray(this.props.children);X=X.filter(function(ne){return typeof ne=="string"?!!ne.trim():!!ne}),j.variableWidth&&(j.rows>1||j.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),j.variableWidth=!1);for(var w=[],ue=null,I=0;I<X.length;I+=j.rows*j.slidesPerRow){for(var v=[],O=I;O<I+j.rows*j.slidesPerRow;O+=j.slidesPerRow){for(var F=[],J=O;J<O+j.slidesPerRow&&(j.variableWidth&&X[J].props.style&&(ue=X[J].props.style.width),!(J>=X.length));J+=1)F.push(n.default.cloneElement(X[J],{key:100*I+10*O+J,tabIndex:-1,style:{width:"".concat(100/j.slidesPerRow,"%"),display:"inline-block"}}));v.push(n.default.createElement("div",{key:10*I+O},F))}j.variableWidth?w.push(n.default.createElement("div",{key:I,style:{width:ue}},v)):w.push(n.default.createElement("div",{key:I},v))}if(j==="unslick"){var Q="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:Q},X)}else w.length<=j.slidesToShow&&!j.infinite&&(j.unslick=!0);return n.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,c.filterSettings)(j)),w)}}]),Z}(n.default.Component)}(Xf)),Xf}var rv;function d_(){return rv||(rv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(u_());function a(s){return s&&s.__esModule?s:{default:s}}e.default=n.default}(Wf)),Wf}var f_=d_();const h_=Gc(f_),m_=[{name:"Sarah Harvey",review:"Cabsy commitment to excellence is evident, prioritize customer satisfaction, making them the best choice for reliable and enjoyable rides.",rating:4.5},{name:"James Wright",review:"The drivers are always punctual and polite. The app is intuitive and booking is seamless. I never have to worry about my daily commute anymore!",rating:5},{name:"Emily Johnson",review:"Great service every time! I love how clean the vehicles are and how safe I feel. Definitely recommend AAAO GO to friends.",rating:4},{name:"Amir Qureshi",review:"Fantastic experience! The driver was professional and arrived on time. The whole journey was smooth and safe.",rating:5},{name:"Linda Carter",review:"Highly impressed with the service quality. From booking to drop-off, the whole process was fast and reliable.",rating:4.5}],p_=[{title:"Regional Rides",description:"Smooth and reliable rides within your city – whenever, wherever.",Image:bk},{title:"City Connectors",description:"Connecting cities with affordable, comfortable, and safe travel.",Image:wk},{title:"Car Recoveries",description:"Stuck on the road? We recover your car quickly and safely.",Image:Sk},{title:"Courier Delivery",description:"Fast, secure, and on-time courier delivery across your city.",Image:jk},{title:"Shifting Movers (Home & Office Shifting)",description:"Hassle-free home and office shifting, handled with care.",Image:Ak},{title:"Tourism Discovery",description:"Discover breathtaking destinations with guided local travel.",Image:Tk}],av=[{title:"Airport Transfers",description:"Swift rides to or from the airport – on time, every time",icon:"🛫"},{title:"Hourly Rentals",description:"Ride on your time. Rent by the hour with full flexibility.",icon:"⏱️"},{title:"Ride-Sharing",description:"Split the ride, save the cost—go greener together.",icon:"👥"},{title:"Move Your Car (Car Recovery)",description:"Stranded? We'll move your car—fast, safe, and reliable.",icon:"🚗"},{title:"Package Delivery",description:"From parcels to full house moves—labour, fixer, and vehicle included.",icon:"📦"},{title:"Custom Delivery",description:"Sed adipisci velit, sed quia non numquam eius modi tempora",icon:"📨"},{title:"Scheduled Rides",description:"Plan ahead. Book now, ride later—your time, your way.",icon:"📅"},{title:"Corporate Accounts",description:"Business travel made easy with centralized billing & control.",icon:"💳"}],g_=()=>{const e={dots:!1,infinite:!0,speed:600,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,arrows:!1},[n,a]=H1({triggerOnce:!0,threshold:.3});let s=[],o=0,c=[3,2,3],d=0;for(;o<av.length;){const m=c[d%c.length];s.push(av.slice(o,o+m)),o+=m,d++}const f=[{name:"brochure.pdf",file:_k},{name:"document1.pdf",file:Ok},{name:"guide.pdf",file:Rk}],h=async()=>{try{const m=new dk;for(const x of f){const A=await(await fetch(x.file)).blob();m.file(x.name,A)}const g=await m.generateAsync({type:"blob"});mk.saveAs(g,"assets_pdfs.zip")}catch(m){console.error("Error downloading PDFs:",m),alert("Failed to download PDFs. Please try again.")}};return u.jsxs("div",{className:"bg-white p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[u.jsxs("div",{className:"relative mt-20 w-[95%] my-7 rounded-3xl mx-auto h-[120vh] max-lg:h-auto max-lg:py-10 max-lg:px-2 max-lg:gap-10 bg-cover bg-center flex flex-row-reverse max-lg:flex-col-reverse items-center justify-center",style:{backgroundImage:`url(${pk})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black opacity-50 rounded-3xl"}),u.jsxs("div",{className:"relative z-10 w-[60%] max-lg:w-[100%] text-white text-center px-4 max-w-4xl",children:[u.jsx("div",{className:"inline-block bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-md px-8 py-2 rounded-full mb-4",children:"The Perfect Ride Awaits"}),u.jsx("h1",{className:"text-[2.5rem] font-semibold mb-4",children:"AAAO GO – WHEREVER YOU GO"}),u.jsx("p",{className:"text-lg md:text-xl mb-6",children:"A revolutionary ride-hailing platform designed for drivers, customers, and service providers. We are building not just a business, but a community that grows together."}),u.jsxs("div",{className:"flex justify-center gap-4",children:[u.jsx("button",{className:"bg-[#319A64] hover:bg-green-700 dark:hover:bg-green-700 text-white px-6 py-3 rounded-lg text-lg font-semibold",children:"Download App"}),u.jsxs("button",{onClick:h,className:"bg-[#319A64] hover:bg-green-800 dark:hover:bg-green-800 text-white flex gap-2 items-center px-6 py-3 rounded-lg text-lg font-semibold",children:[u.jsx(ZN,{})," Download PDFs"]})]})]}),u.jsx("div",{className:"flex gap-4 w-[30%] max-lg:w-[70%] z-10",children:u.jsx("img",{src:gk,alt:"Phone 1",className:"w-full rounded-xl shadow-lg"})})]}),u.jsxs("div",{className:"px-4 relative py-12 max-lg:py-6 mb-20 max-lg:mb-0 max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between",children:[u.jsxs("div",{className:"w-[45%] max-lg:w-[100%]",children:[u.jsx("h2",{className:"text-5xl font-bold text-[#0B996F] mb-4 max-lg:text-4xl",children:"Who We Are?"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-10",children:"Driven by Purpose—Powered by People"}),u.jsxs("div",{className:"mb-10 pl-5",children:[u.jsxs("p",{className:"text-xl font-semibold flex items-center gap-2",children:["🚀 ",u.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-xl font-bold",children:"Our Mission :"})]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"To revolutionize transportation by putting fairness, transparency, and driver empowerment at the heart of everything we do."})]}),u.jsxs("div",{className:"mb-10 pl-5",children:[u.jsxs("p",{className:"text-xl font-semibold flex items-center gap-2",children:["🔄 ",u.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-xl font-bold",children:"More Than Just Rides:"})]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"We offer ride-hailing, car recovery services, and will expand into mobility support and lifestyle logistics — all under one unified platform."})]}),u.jsxs("div",{className:"mb-10 pl-5 max-lg:mb-0",children:[u.jsxs("p",{className:"text-xl font-semibold flex items-center gap-2",children:["🤝 ",u.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-xl font-bold",children:"A Community-First Approach:"})]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"Built under the I AM AAO empire, AAO Go is committed to creating a profitable, people-centered ecosystem where every rider, driver, and user can grow and thrive together."})]}),u.jsxs("div",{className:"mb-10 pl-5 max-lg:mb-0",children:[u.jsxs("p",{className:"text-xl font-semibold flex items-center gap-2",children:["🧭 ",u.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-xl font-bold",children:"Our Movement :"})]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"AAAO Go is more than just a ride-hailing app—it’s a movement toward freedom, fairness, and future-forward innovation."})]})]}),u.jsx("img",{src:vk,alt:"",className:"w-[20%] absolute left-[45%] right-0 -bottom-14 max-lg:hidden"}),u.jsx("div",{className:"w-[45%] flex justify-center mt-10 max-lg:w-[100%]",children:u.jsx("img",{src:yk,alt:"Driver and woman",className:"rounded-2xl w-full object-cover"})})]}),u.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative mb-32 max-lg:mb-0 py-12 flex flex-col-reverse md:flex-row items-center gap-10",children:[u.jsx("div",{className:"w-[50%] max-lg:w-[100%]",children:u.jsx("img",{src:xk,alt:"Driver with customer",className:"rounded-3xl w-full object-cover"})}),u.jsxs("div",{className:"w-[50%] max-lg:w-[100%]",children:[u.jsx("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] mb-4",children:"The Future We See"}),u.jsxs("ul",{className:"space-y-3 mb-6 text-gray-700 dark:text-gray-300",children:[u.jsxs("li",{className:"flex items-start gap-2",children:[u.jsx(Ps,{className:"text-[#0B996F] mt-1"}),"A global ride-hailing network that empowers drivers & customers."]}),u.jsxs("li",{className:"flex items-start gap-2",children:[u.jsx(Ps,{className:"text-[#0B996F] mt-1"}),"Creating financial freedom and opportunities."]}),u.jsxs("li",{className:"flex items-start gap-2",children:[u.jsx(Ps,{className:"text-[#0B996F] mt-1"}),"Sustainable & innovative mobility solutions."]})]}),u.jsxs("p",{className:"mb-6",children:[u.jsx("span",{className:"font-bold",children:"Our vision is simple"})," – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."]}),u.jsxs("div",{className:"flex items-start gap-3 p-2 rounded-lg",children:[u.jsx("div",{className:"bg-green-200 dark:bg-green-800 p-3 rounded-full",children:u.jsx(B1,{className:"text-[#0B996F] text-2xl"})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-bold text-[#0B996F] text-lg",children:"Safety Measures"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm",children:"Verified drivers, real-time tracking & No Male Companion rides for ladies and families – your peace of mind comes first."})]})]})]}),u.jsx("img",{src:I1,alt:"",className:"absolute max-lg:hidden left-[22%] w-[40%] -bottom-28"})]}),u.jsxs("div",{ref:n,className:"bg-[#e8f9f1] dark:bg-gray-800 text-center py-16 px-4 mb-12 max-lg:py-8",children:[u.jsxs("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] mb-12",children:["Breaking Barriers, Building a Fairer Future",u.jsx("br",{}),"for One Billion People"]}),u.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-36 max-lg:gap-10",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&u.jsx(zs,{end:5,duration:2})}),u.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"countries"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&u.jsx(zs,{end:144,duration:2})}),u.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"cities"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&u.jsx(zs,{end:1500,duration:2.5,separator:","})}),u.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"Registered Members"})]})]})]}),u.jsxs("div",{className:"bg-white dark:bg-gray-900 px-4 mb-12",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsx("button",{className:"bg-[#1E784B] text-white text-sm font-semibold px-8 py-3 rounded-full mb-4",children:"The Perfect Ride Awaits"}),u.jsx("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F]",children:"One App, Unlimited Possibilities"})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:p_.map((m,g)=>u.jsxs("div",{className:"bg-[#e8f9f1] dark:bg-gray-800 rounded-lg p-6 flex flex-col items-center text-center shadow-md hover:shadow-2xl transition-shadow duration-300",children:[u.jsx("img",{src:m.Image,alt:"",className:"w-32"}),u.jsx("h3",{className:"text-2xl font-bold text-[#0A4624] dark:text-white mb-2",children:m.title}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:m.description})]},g))})]}),u.jsxs("div",{className:"bg-white dark:bg-gray-900 py-16 px-4",children:[u.jsxs("div",{className:"flex justify-between items-end w-[100%] pb-10 gap-5 max-lg:flex-col",children:[u.jsx("p",{className:"w-[55%] max-lg:w-[100%] text-5xl font-bold max-lg:text-4xl text-[#0B996F]",children:"Beyond Rides — The Ultimates Experience awaits"}),u.jsx("p",{className:"w-[42%] max-lg:w-[100%] text-lg text-gray-700 dark:text-gray-300",children:"Get ready for the ultimate taxi experience — reliable rides, friendly drivers, and seamless journeys, all at your fingertips"})]}),u.jsx("div",{className:"max-w-7xl mx-auto",children:s.map((m,g)=>u.jsx("div",{className:`grid gap-6 ${m.length===3?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 justify-center"} mb-10`,children:m.map((x,b)=>u.jsxs("div",{className:"rounded-3xl p-6 py-10 bg-white dark:bg-gray-800 text-gray-900 dark:text-white border border-gray-200 dark:border-gray-700 shadow-md transition-all duration-300 hover:bg-[#0B996F] hover:text-white hover:shadow-lg group cursor-pointer",children:[u.jsx("div",{className:"w-16 h-16 rounded-full flex items-center justify-center mb-4 bg-[#e8f9f1] dark:bg-gray-700 text-[#0B996F] group-hover:bg-white group-hover:text-[#0ea36e] transition-all duration-300 text-2xl",children:x.icon}),u.jsx("h3",{className:"text-2xl font-bold mb-2",children:x.title}),u.jsx("p",{className:"text-base",children:x.description})]},b))},g))})]}),u.jsxs("div",{className:"bg-[#e8f7f0] dark:bg-gray-800 relative py-20 mb-5 px-6 h-[130vh] max-lg:h-auto items-center flex w-[95%] rounded-3xl mx-auto",style:{backgroundImage:`url(${G1})`},children:[u.jsx("div",{className:"absolute inset-0 bg-[#E2F4EA] dark:bg-gray-900/50 opacity-50 rounded-3xl"}),u.jsxs("div",{className:"w-full px-3 z-10 mx-auto flex flex-col md:flex-row items-center justify-between gap-16",children:[u.jsxs("div",{className:"text-center md:text-left max-w-xl",children:[u.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-[#0B996F] mb-4",children:["The Easiest Way to Book ",u.jsx("br",{}),"Your Ride Register Now for ",u.jsx("br",{}),"Instant Access"]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-lg mb-6",children:"Book your ride quickly and effortlessly with just a few taps on our app"}),u.jsxs("div",{className:"flex flex-wrap justify-center md:justify-start gap-4",children:[u.jsx("a",{href:"#",children:u.jsx("img",{src:W1,alt:"Google Play",className:"h-12 rounded-lg"})}),u.jsx("a",{href:"#",children:u.jsx("img",{src:X1,alt:"App Store",className:"h-12 rounded-lg"})})]})]}),u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:Y1,alt:"Happy user",className:"w-full max-w-md h-[100vh] max-lg:h-auto object-cover rounded-2xl"}),u.jsx("img",{src:q1,alt:"App Screenshot",className:"absolute top-32 -left-28 max-lg:-left-10 max-lg:w-20 max-lg:top-5 md:w-60 drop-shadow-xl"})]})]})]}),u.jsx("div",{className:"py-20 px-6 bg-white dark:bg-gray-900",children:u.jsxs("div",{className:"max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[u.jsxs("div",{children:[u.jsxs("h2",{className:"text-4xl font-bold text-[#0B996F] mb-4 leading-tight",children:["Bringing Countless ",u.jsx("br",{})," Smiles with Every Ride"]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-8",children:"At AAAO Go, we turn every ride into a reason to smile — with punctual drivers, premium service, and comfort that feels like home."}),u.jsxs("div",{className:"flex gap-12 mb-10",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-3xl font-bold text-green-600",children:"97%"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm",children:"Satisfaction Rate"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-3xl font-bold text-green-600",children:"50+"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm",children:"years of combined experience"})]})]}),u.jsx("img",{src:kk,alt:"Path",className:"h-48"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx("div",{className:"col-span-2 bg-green-100 dark:bg-gray-800 p-6 rounded-2xl shadow-md",children:u.jsx(h_,{...e,children:m_.map((m,g)=>u.jsx("div",{className:"px-2",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-green-600 text-lg mb-2",children:"★★★★★"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-4 text-sm",children:m.review}),u.jsxs("p",{className:"font-semibold text-green-800 dark:text-green-300",children:["— ",m.name]})]})},g))})}),u.jsx("img",{src:Ek,alt:"Man with tablet",className:"w-full h-full object-cover rounded-2xl"}),u.jsx("img",{src:Nk,alt:"Woman in car",className:"w-full h-full object-cover rounded-2xl"})]})]})})]})},nw="/assets/bg-BbOJe-ta.jpeg",y_="/assets/enjoy-CVNWmoEC.jpg",x_="/assets/map-DfwT83pC.png",v_="/assets/whyjoin-B-Bkqsbz.jpg",b_="/assets/aim-DEi6q9Iw.jpg",w_="/assets/direction-DvSXpJ92.png",S_=()=>u.jsxs("div",{className:"bg-white p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[u.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto text-white",children:u.jsxs("div",{className:"relative mt-20 bg-cover bg-center h-[500px] rounded-3xl overflow-hidden flex items-center justify-center",style:{backgroundImage:`url(${nw})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50"}),u.jsx("div",{className:"relative z-10 text-center px-4",children:u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Our Story of Service and ",u.jsx("br",{className:"max-lg:hidden"})," ","Excellence"]})})]})}),u.jsxs("div",{className:"w-full relative px-6 py-12 md:px-20 flex flex-col md:flex-row justify-between gap-10",children:[u.jsxs("div",{className:"md:w-1/2",children:[u.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-[#0B996F] leading-tight mb-6",children:["Enjoy Seamless Travel –",u.jsx("br",{}),"Comfort, Clarity & Control at",u.jsx("br",{}),"Every Step"]}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-10",children:"We take the stress out of travel by managing the details for you. With AAAO Go, your ride is more than just a destination — it’s a smooth, relaxing experience from start to finish."}),u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{children:[u.jsx("h4",{className:"text-xl font-semibold text-green-900 dark:text-green-300",children:"🌟 Easy-to-Use Mobile App"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"📱 Book, track, and manage your rides in seconds."})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-xl font-semibold text-green-900 dark:text-green-300",children:"🌟 Professional Drivers"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"🚗 Trusted and trained to deliver safety and reliability."})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-xl font-semibold text-green-900 dark:text-green-300",children:"🌟 Transparent, Honest Pricing"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"💳 No surprises — what you see is exactly what you pay."})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-xl font-semibold text-green-900 dark:text-green-300",children:"🌟 A Vehicle for Every Need"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"🚌 Whether solo or group, budget or luxury — we've got it."})]}),u.jsxs("div",{className:"flex gap-10",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsxs("p",{className:"text-4xl font-medium",children:["50",u.jsx("span",{className:"text-[#0B996F]",children:"+"})]}),u.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Years of combine Experience"})]}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsxs("p",{className:"text-4xl font-medium",children:["1,297 ",u.jsx("span",{className:"text-[#0B996F]",children:"+"})]}),u.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Professional Drivers"})]})]})]})]}),u.jsx("img",{src:x_,alt:"",className:"absolute left-[50%] w-60 top-72 max-lg:hidden"}),u.jsx("div",{className:"md:w-1/2 flex h-[25rem] max-lg:h-auto justify-center",children:u.jsx("img",{src:y_,alt:"Travel",className:"rounded-2xl shadow-lg w-full object-cover h-auto max-w-md"})})]}),u.jsxs("div",{className:"w-full px-6 py-12 md:px-20 flex flex-col md:flex-row items-center justify-between gap-10",children:[u.jsx("div",{className:"md:w-1/2 h-[33rem] max-lg:h-auto",children:u.jsx("img",{src:v_,alt:"Why Join AAAO Go",className:"rounded-2xl shadow-lg object-cover w-full h-full max-lg:h-auto max-w-md"})}),u.jsxs("div",{className:"md:w-1/2",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0B996F] mb-4",children:"Why Join AAAO Go?"}),u.jsx("h3",{className:"text-lg font-semibold text-[#0B996F] mb-6",children:"A Life-Changing Opportunity"}),u.jsxs("ul",{className:"space-y-3 mb-6 text-gray-700 dark:text-gray-300",children:[u.jsxs("li",{className:"flex items-center gap-2",children:["✅ ",u.jsx("span",{children:"Higher Earnings & Fair Commission"})]}),u.jsxs("li",{className:"flex items-center gap-2",children:["✅ ",u.jsx("span",{children:"Transparent Policies & Support System"})]}),u.jsxs("li",{className:"flex items-center gap-2",children:["✅ ",u.jsx("span",{children:"Higher Earnings & Fair Commission"})]})]}),u.jsxs("div",{className:"space-y-5 text-gray-700 dark:text-gray-300",children:[u.jsxs("p",{children:["💡 ",u.jsx("strong",{children:"AAAO Go is different"}),". We believe in fair earnings, driver empowerment, and long-term financial growth for everyone in our community."]}),u.jsxs("p",{children:["💸 ",u.jsx("strong",{children:"Earn even while you sleep"})," through our multi-level referral rewards and service team usage — because your effort today builds income for tomorrow."]}),u.jsxs("p",{children:["🏔️ ",u.jsx("strong",{children:"Retire with dignity"})," — Enjoy long-term benefits including Retirement Support and Tribute Assistance to protect your loved ones in times of need."]})]})]})]}),u.jsxs("div",{className:"w-full relative px-6 py-12 md:px-20 flex flex-col md:flex-row items-center justify-between gap-10",children:[u.jsxs("div",{className:"md:w-1/2",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0B996F] mb-4",children:"What We Aim to Achieve"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-6",children:"Driven by Vision – Powered by You"}),u.jsxs("ul",{className:"space-y-5 text-gray-800 dark:text-gray-200 text-base",children:[u.jsxs("li",{children:[u.jsxs("span",{className:"text-xl",children:["🚀 ",u.jsx("strong",{children:"Short-Term"}),":"]})," ","Expand rapidly into key cities and markets by onboarding drivers, customers, and service providers across our service range."]}),u.jsxs("li",{children:[u.jsxs("span",{className:"text-xl",children:["🤝 ",u.jsx("strong",{children:"Mid-Term"}),":"]})," ","Establish a community-powered ride-hailing network where earnings, opportunities, and loyalty grow together."]}),u.jsxs("li",{children:[u.jsxs("span",{className:"text-xl",children:["🌍 ",u.jsx("strong",{children:"Long-Term"}),":"]})," ","Lead the way in global mobility innovation, introducing smart tech, international operations, and sustainable solutions."]}),u.jsxs("li",{children:[u.jsxs("span",{className:"text-xl",children:["💬 ",u.jsx("strong",{children:'"We’re not just launching an app"'}),":"]})," ","— we’re shaping the future of transportation with YOU at the center of it."]})]})]}),u.jsx("img",{src:w_,alt:"",className:"absolute left-[45%] w-[25rem] max-lg:hidden"}),u.jsx("div",{className:"md:w-1/2 flex justify-center",children:u.jsx("img",{src:b_,alt:"Vision Goals",className:"rounded-2xl shadow-xl w-full h-auto max-w-md"})})]}),u.jsx("div",{className:"w-[95%] bg-green-100 dark:bg-gray-800 m-auto mb-10 py-12 px-6 md:px-20 rounded-[2rem]",children:u.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-center justify-center",children:[u.jsxs("div",{className:"bg-[#DDF3EB] dark:bg-gray-700 hover:bg-[#079B72] hover:text-white text-gray-900 dark:text-white rounded-3xl p-8 w-full md:w-1/2 shadow-lg",children:[u.jsxs("div",{className:"flex items-center mb-4",children:[u.jsx("div",{className:"bg-white dark:bg-gray-600 text-[#079B72] rounded-full p-3 mr-4",children:u.jsx(IN,{size:24})}),u.jsx("h2",{className:"text-2xl font-semibold text-green-800 dark:text-green-300 hover:text-white",children:"Our Vision"})]}),u.jsx("p",{className:"text-base leading-relaxed",children:'"Our vision is simple – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."'})]}),u.jsxs("div",{className:"bg-[#DDF3EB] dark:bg-gray-700 hover:bg-[#079B72] hover:text-white border border-[#B2E2D2] dark:border-gray-600 text-gray-800 dark:text-white rounded-3xl p-8 w-full md:w-1/2 shadow-md",children:[u.jsxs("div",{className:"flex items-center mb-4",children:[u.jsx("div",{className:"bg-white dark:bg-gray-600 text-[#079B72] rounded-full p-3 mr-4",children:u.jsx(qN,{size:24})}),u.jsx("h2",{className:"text-2xl font-semibold text-green-800 dark:text-green-300 hover:text-white",children:"Our Mission"})]}),u.jsx("p",{className:"text-base leading-relaxed",children:"AAAO Go is a dynamic and innovative ride-hailing platform designed to redefine urban mobility. We connect riders with reliable drivers through a seamless, technology-driven experience, ensuring safety, affordability, and convenience. Our commitment goes beyond transportation—we empower individuals with flexible earning opportunities while enhancing everyday travel. Whether it’s daily commutes, business trips, or on-demand rides, AAAO Go is your trusted partner in moving smarter, faster, and better."})]})]})})]}),j_="/assets/bg-6SAdu_b3.jpg",A_="/assets/future--MMH-1BG.jpg",T_="/assets/card1-CngeeMsl.png",E_="/assets/card2-o4McaAYV.png",N_="/assets/card3-BdCC1t9j.png",k_="/assets/card4-DwGgvalC.png",__="/assets/card5-BRuLiB6I.png",O_="/assets/card6-DhonLssf.png",R_="/assets/card7-BtLXKe8h.png",C_="/assets/card8-D0qhdoR6.png",D_="/assets/card9-CP2MyyTJ.png",M_="/assets/recovery-BXEv-XSB.jpeg",L_="/assets/rides-Bkxyhe-g.jpeg",P_="/assets/shifting--UhfRry8.jpeg",z_="/assets/autofix-j6AEHwbR.jpeg",F_="/assets/tyrezone-BB2vwwox.jpeg",U_="/assets/keyassist-Usw68JbA.jpeg",B_="/assets/autohub-BicU1udc.jpeg",V_="/assets/tourism-CEey8P9M.jpeg",H_="/assets/wash-CvccX4aW.jpeg",I_=[{title:"Car Recovery Services",icon:"🚨",image:T_,need:"Why You Might Need Car Recovery:",cardimg:M_,span1:"🔋 Dead Battery",p1:" – Vehicle won’t start? We’ll recharge or tow.",span2:"🛠️ Engine Failure",p2:" – Sudden breakdowns require expert towing.",span3:"🚧 Accidents or Collisions",p3:" – Reliable recovery after any incident.",span4:"🚗 Overheating or Mechanical Trouble",p4:" – Prevent further damage.",span5:"⚫ Flat Tires or Wheel Problems",p5:" – Fast recovery when you're stuck.",span6:"⛺ Stuck in Desert/Sand",p6:" – Special recovery vehicles for off-road issues.",span7:"🌙 Night-Time Emergencies",p7:" – Round-the-clock assistance.",span8:"📑 Pre-Registration Transport",p8:" – Move for registration/testing.",span9:"🚛 Car Export/Import",p9:" – Support for port transfers.",span10:"🏙️ Car Transfer Between Cities",p10:" – Safe city-to-city vehicle movement.",description:"Get back on the road — safely and swiftly. AAAO Go offers 24/7 car recovery support across the UAE. Whether it’s an unexpected breakdown or a scheduled vehicle movement, our trained team ensures smooth, secure transport — anytime, anywhere."},{title:"AAAO rides / cab services",icon:"🚖",image:E_,need:"Why Choose AAAO Go Cabs?",cardimg:L_,span1:"📱 Instant Booking via App",p1:" – Book a ride within seconds.",span2:"⏱️ On-Time Pickups",p2:" – Real-time tracking & punctual arrivals.",span3:"🚗 Wide Range of Vehicles",p3:" – From economy to luxury.",span4:"💳 Transparent Pricing",p4:" – No hidden fees. No surprises.",span5:"🕒 Time-Based or Hourly Fares",p5:" – Book by trip or by the hour — perfect for city tours or meetings.",span6:"✈️ Airport Transfers",p6:" – Fast, professional airport pick-ups & drop-offs.",span7:"👩‍👧 PINK RIDES /Family-Friendly Options",p7:" – No male companion rides available for women & families (optional filter).",span8:"👨‍✈️ Professional Drivers",p8:" – Verified, trained, and polite.",span9:"🌙 24/7 Availability",p9:" – Day or night, we’re always on the move.",description:"Your ride, your way –with AAAO Go. We provide fast, comfortable, and affordable cab services across the UAE, tailored to your lifestyle. Whether it’s a short ride or an all-day booking, AAAO Go gets you there – safely and on time."},{title:"Packers & Shifting Movers",icon:"📦",image:N_,need:"Why Choose AAAO Go Movers?",cardimg:P_,span1:"🪑 Furniture & Luggage Shifting",p1:" - From delicate items to heavy furniture, we move your belongings with care and precision.",span2:"🔧 Fixing Experts (On-Demand)",p2:" - Need help assembling or disassembling? Our skilled technicians are available on request to handle installations and setups.",span3:"🧳 Helpers for Lifting & Loading",p3:" - Professional helpers can be booked along with your move to assist in loading, unloading, and organizing items — saving your time and effort.",description:"Hassle-free moving services tailored to your needs — whether it's a single item or a full house."},{title:"AAAO AutoFix – Trusted Repairing Services",icon:"🛠️",image:k_,cardimg:z_,span1:"🚗 Verified Workshops",p1:" - We list only registered workshops that meet our quality and service standards.",span2:"📊 Performance-Based Suggestions",p2:" - Our smart system recommends workshops based on customer ratings, service history, and pricing – ensuring you get the best value every time.",span3:"📍 Nearby & Transparent",p3:" - Easily find nearby workshops with real-time tracking, price monitoring, and honest customer reviews – all within the AAAO Go app.",description:"AAAO AutoFix connects you with the top-rated workshops registered on our platform, offering reliable, affordable, and fast repair services."},{title:"AAAO TyreZone – Smart Tyre Solutions",icon:"⚙️",image:__,cardimg:F_,span1:"✅ Verified Tyre Shops",p1:" - All listed tyre vendors are registered and meet our quality and service benchmarks.",span2:"📈 Rating-Based Recommendations",p2:" - Our system suggests the best tyre shops using real-time customer reviews, service quality history, and competitive pricing.",span3:"📍 Nearby & Honest",p3:" - Get quick access to the nearest tyre shop with live tracking, price comparisons, and service guarantees, all within the AAAO Go platform.",description:"AAAO TyreZone helps you find top-rated tyre shops near you, offering a wide range of services from tyre replacement to wheel balancing, all based on customer satisfaction and pricing transparency."},{title:"AAAO KeyAssist – Fast & Reliable Unlocking & Road Help",icon:"🔑",image:O_,cardimg:U_,span1:"✅ Certified Locksmiths & Road Experts",p1:" - All service providers are licensed, background-checked, and trained to deliver fast, damage-free solutions with professional care.",span2:"📍 Nearby & On-Demand",p2:" - Instantly locate the closest expert for unlocking or roadside help, with real-time tracking, upfront pricing, and service guarantees.",span3:"🔧 Comprehensive Road Assistance",p3:" - From jump-starting your battery to helping with flat tyres, fuel delivery, or minor mechanical issues — AAAO KeyAssist has your back.",span4:"🔐 Safe, Transparent, & Stress-Free",p4:" - Forget the panic. AAAO Go ensures you get reliable help with live support, secure payments, and complete peace of mind.",description:"AAAO KeyAssist is your trusted companion for emergency key unlocking and roadside assistance. Whether you're locked out of your car, home, or office — or facing minor breakdowns on the road — help is just a tap away inside the AAAO Go platform"},{title:"AAAO AutoHub – Verified Showrooms & Car Dealers",icon:"🚘",image:R_,cardimg:B_,span1:"✅Verified Dealers Only",p1:" - We list only officially registered showrooms and dealers who meet our quality, service, and trust standards.",span2:"📈 Rating-Based Listings",p2:" - Dealers are ranked using customer reviews, service history, pricing fairness, and after-sale support.",span3:"🚗 New & Pre-Owned Options",p3:" - Browse a wide variety of vehicles — from brand-new cars to inspected and certified pre-owned models.",span4:"💼 Smart Filters & Deals",p4:" - Search by brand, price range, location, or car type. Get access to exclusive AAAO Go deals and showroom offers.",span5:"📍 Nearby & Contact",p5:"- Free Booking -Find the nearest dealer, book a test drive, or schedule a visit — all within the AAAO Go platform.",description:"AAAO AutoHub connects you with trusted car showrooms and licensed vehicle dealers near you — offering a wide selection of new and used vehicles, financing options, and transparent dealer ratings, all inside the AAAO Go ecosystem."},{title:"AAAO Explore – Complete Tourism, Events & Local Experience Hub",icon:"🌍",image:C_,cardimg:V_,span1:"✅ Expert Tour Guides & Custom Tours",p1:" - Hire trusted local guides for hourly or daily trips — from city walks to desert safaris — with transparent, fixed pricing.",span2:"🏨 Verified Hotels & Guest Houses",p2:" - Book AAAO-approved accommodations with real reviews, clear amenities, and best-price guarantees — no hidden costs.",span3:"🍽️ Top-Rated Local Restaurants",p3:" - Dine smart with budget-friendly, highly-rated eateries near you — searchable by cuisine, price, and open status.",span4:"🎉 Event Planning & Management",p4:" - Plan birthdays, weddings, corporate retreats, or travel events with ease. AAAO connects you with certified event planners, venues, and services that match your style and budget.",span5:"📍 All Nearby, All in One Place",p5:" - Use AAAO Go to instantly locate and book all services — tours, stays, meals, and events — with real-time tracking and 24/7 support.",description:"AAAO Explore is your smart gateway to discover, book, and enjoy unforgettable experiences — combining guided tours, verified hotels, affordable dining, and event planning into one powerful platform."},{title:"AAAO ShineZone – Trusted Car Wash & Detailing Near You",icon:"🚿",image:D_,cardimg:H_,span1:"✅ Verified Wash Centers & Mobile Teams",p1:" - Only AAAO-approved providers offering quality, eco-friendly, and reliable service.",span2:"🚗 From Quick Wash to Full Detailing",p2:" - Choose from basic exterior wash, interior vacuuming, waxing, or full premium detailing packages.",span3:"💵 Transparent & Affordable Rates",p3:" - No overcharging — get fixed, visible pricing for every service, including packages for daily, weekly, or monthly care.",span4:"📍 Nearby & On-Demand",p4:" - Find the closest wash station or book a mobile car wash at your home or office via the AAAO Go app.",span5:"🕒 Real-Time Availability",p5:" - Book instantly, view service hours, and track your service live — all from your phone.",description:"AAAO ShineZone connects you with verified car wash professionals offering on-site or drive-in services — from basic cleaning to premium detailing, all at fair, upfront prices."}],G_=()=>{const[e,n]=H1({triggerOnce:!0,threshold:.3}),[a,s]=W.useState(null),o=()=>{window.scrollTo({top:0,behavior:"smooth"})};return u.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-5",children:[u.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto bg-black dark:bg-gray-900 text-white dark:text-white",children:u.jsxs("div",{className:"relative mt-20 bg-cover bg-center h-[500px] rounded-3xl overflow-hidden flex items-center justify-center dark:bg-gray-900",style:{backgroundImage:`url(${j_})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black dark:bg-gray-900 bg-opacity-60 dark:bg-opacity-80"}),u.jsxs("div",{className:"relative z-10 text-center px-4",children:[u.jsxs("nav",{className:"text-sm text-white dark:text-gray-200 mb-4 flex items-center justify-center",children:[u.jsx(Nt,{to:"/",onClick:o,className:"hover:underline text-white dark:text-gray-200 hover:text-yellow-400 dark:hover:text-yellow-400",children:"Home"}),u.jsx("span",{className:"mx-2 text-[#387B55] dark:text-yellow-400 text-2xl -mt-1",children:"›"}),u.jsx("span",{className:"text-white dark:text-gray-200",children:"Services"})]}),u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold text-white dark:text-white leading-tight",children:["Experience Convenience Our Service"," ",u.jsx("br",{className:"max-lg:hidden"})," Offerings"]})]})]})}),u.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative mb-32 max-lg:mb-0 py-12 flex flex-col-reverse md:flex-row items-center gap-10",children:[u.jsx("div",{className:"w-[50%] max-lg:w-[100%]",children:u.jsx("img",{src:A_,alt:"Driver with customer",className:"rounded-3xl w-full object-cover"})}),u.jsxs("div",{className:"w-[50%] max-lg:w-[100%]",children:[u.jsx("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] dark:text-yellow-400 mb-4",children:"The Future We See"}),u.jsxs("ul",{className:"space-y-3 mb-6 text-gray-700 dark:text-gray-200",children:[u.jsxs("li",{className:"flex items-start gap-2",children:[u.jsx(Ps,{className:"text-[#0B996F] dark:text-yellow-400 mt-1"}),"A global ride-hailing network that empowers drivers & customers."]}),u.jsxs("li",{className:"flex items-start gap-2",children:[u.jsx(Ps,{className:"text-[#0B996F] dark:text-yellow-400 mt-1"}),"Creating financial freedom and opportunities."]}),u.jsxs("li",{className:"flex items-start gap-2",children:[u.jsx(Ps,{className:"text-[#0B996F] dark:text-yellow-400 mt-1"}),"Sustainable & innovative mobility solutions."]})]}),u.jsxs("p",{className:"mb-6 text-gray-700 dark:text-gray-200",children:[u.jsx("span",{className:"font-bold",children:"Our vision is simple"})," – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."]}),u.jsxs("div",{className:"flex items-start gap-3 p-2 rounded-lg",children:[u.jsx("div",{className:"bg-green-200 dark:bg-gray-700 p-3 rounded-full",children:u.jsx(B1,{className:"text-[#0B996F] dark:text-yellow-400 text-2xl"})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-bold text-[#0B996F] dark:text-yellow-400 text-lg",children:"Safety Measures"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-200 text-sm",children:"Verified drivers, real-time tracking & No Male Companion rides for ladies and families – your peace of mind comes first."})]})]})]}),u.jsx("img",{src:I1,alt:"",className:"absolute max-lg:hidden left-[22%] w-[40%] -bottom-28"})]}),u.jsxs("div",{className:"text-center mb-12",children:[u.jsx("button",{className:"bg-[#1E784B] dark:bg-yellow-500 dark:text-gray-900 text-white text-sm font-semibold px-8 py-3 rounded-full mb-4 hover:bg-green-700 dark:hover:bg-yellow-400 transition-colors duration-300",children:"The Perfect Ride Awaits"}),u.jsx("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] dark:text-yellow-400",children:"One App, Unlimited Possibilities"})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 py-6 px-20 max-lg:px-4 bg-white dark:bg-gray-800",children:I_.map((c,d)=>u.jsxs("div",{className:"bg-[#E2F4EA] dark:bg-gray-700 rounded-lg shadow px-5 py-3 flex flex-col justify-between",children:[u.jsx("img",{src:c.image,alt:c.title,className:"h-32 w-full rounded-2xl object-cover"}),u.jsxs("h3",{className:"text-xl font-semibold mt-4 text-gray-900 dark:text-white",children:[u.jsx("span",{className:"mr-2 text-sm",children:c.icon}),c.title]}),u.jsx("p",{className:"text-xs text-gray-700 dark:text-gray-200 mt-2 flex-grow",children:c.description}),u.jsx("button",{onClick:()=>s(c),className:"bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-2 py-1 mt-4 rounded hover:bg-green-700 dark:hover:bg-yellow-400 w-fit transition-colors duration-300",children:"View Details"})]},d))}),a&&u.jsx("div",{className:"fixed inset-0 bg-black dark:bg-gray-900 bg-opacity-60 z-50 flex justify-center items-center px-4",children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-6 lg:gap-10 rounded-xl bg-white dark:bg-gray-800 p-6 max-w-5xl w-full relative overflow-y-auto max-h-[90vh]",children:[u.jsx("button",{onClick:()=>s(null),className:"absolute top-2 right-2 text-gray-600 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-400 text-2xl",children:"×"}),u.jsx("img",{src:a.cardimg,alt:a.title,className:"w-full lg:w-[40%] object-cover rounded-xl max-h-[500px]"}),u.jsxs("div",{className:"w-full lg:w-[60%] overflow-y-auto",children:[u.jsx("h3",{className:"text-2xl font-semibold mb-2 text-gray-800 dark:text-white",children:a.title}),u.jsx("p",{className:"text-sm text-gray-700 dark:text-gray-200 mb-4",children:a.description}),u.jsx("h4",{className:"font-semibold text-base mb-2 text-gray-800 dark:text-white",children:a.need}),u.jsxs("ul",{className:"text-sm text-gray-700 dark:text-gray-200 list-disc ml-5 space-y-3",children:[a.span1&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span1})," ",a.p1]}),a.span2&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span2})," ",a.p2]}),a.span3&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span3})," ",a.p3]}),a.span4&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span4})," ",a.p4]}),a.span5&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span5})," ",a.p5]}),a.span6&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span6})," ",a.p6]}),a.span7&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span7})," ",a.p7]}),a.span8&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span8})," ",a.p8]}),a.span9&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span9})," ",a.p9]}),a.span10&&u.jsxs("li",{className:"list-none",children:[u.jsx("span",{className:"font-bold",children:a.span10})," ",a.p10]})]})]})]})}),u.jsxs("div",{ref:e,className:"bg-[#e8f9f1] dark:bg-gray-800 text-center py-16 px-4 mb-12 max-lg:py-8",children:[u.jsxs("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] dark:text-yellow-400 mb-12",children:["Breaking Barriers, Building a Fairer Future",u.jsx("br",{}),"for One Billion People"]}),u.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-36 max-lg:gap-10",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-white",children:n&&u.jsx(zs,{end:5,duration:2})}),u.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"countries"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-white",children:n&&u.jsx(zs,{end:144,duration:2})}),u.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"cities"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-white",children:n&&u.jsx(zs,{end:1500,duration:2.5,separator:","})}),u.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"Registered Members"})]})]})]})]})},q_="/assets/team-B2G7j71p.webp",Y_="/assets/ceo-pov2ltjX.webp",W_="/assets/tahir-nVzPZBOR.webp",X_="/assets/wardag-BCdJGmKz.webp",K_="/assets/samad-kLWTUiYE.jpeg",Z_=()=>{const[e,n]=W.useState(null),a=()=>{window.scrollTo({top:0,behavior:"smooth"})},s=[{name:"Mr Tahir Zaman",role:"COO",title:"Chief Operation Officer (COO)",image:W_,description:"Tahir is an experienced professional with a diverse background spanning over a decade in various industries. Since 2011, he has demonstrated exceptional skills in team management and leadership, as well as expertise in human resources across multiple companies. Tahir brings a wealth of knowledge and a proven track record of driving operational excellence and fostering team collaboration. He is committed to elevating the company's position to the highest level by leveraging his strategic vision and adaptability in challenging situations"},{name:"Mr RAFIULLAH WARDAG",role:"CMO",title:"Chief Marketing Officer",image:X_,description:"Rafi is a certified entrepreneur and a business tycoon with expertise across multiple industries. A mastermind in creative leadership, he is driven by a bold vision—to connect people worldwide on a single, unified platform. With his innovative approach and strategic thinking, he is reshaping industries and pioneering solutions that bridge global communities, making connectivity seamless and accessible for all."},{name:"Sardar Muhammad Abdul Samad Khan",role:"CTO",image:K_,title:"Chief Technology Officer",description:"Meet our CTO officer, his name is Sardar Muhammad Abdul Samad Khan. He has a Master’s degree in Software Engineering. He has 10 years of experience in mobile application and website development. He has his own software house in which 100 employees work and he is the CEO of their company. He has received the Best Developer Award from the Government of Pakistan in 2018."}];return u.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-5",children:[u.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto bg-black dark:bg-gray-900 text-white dark:text-white",children:u.jsxs("div",{className:"relative bg-cover bg-center mt-20 h-[500px] rounded-3xl overflow-hidden flex items-center justify-center dark:bg-gray-900",style:{backgroundImage:`url(${nw})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black dark:bg-gray-900 bg-opacity-50 dark:bg-opacity-80"}),u.jsxs("div",{className:"relative z-10 text-center px-4",children:[u.jsxs("nav",{className:"text-sm text-white dark:text-gray-200 mb-4 flex items-center justify-center",children:[u.jsx(Nt,{to:"/",onClick:a,className:"hover:underline text-white dark:text-gray-200 hover:text-yellow-400 dark:hover:text-yellow-400",children:"Home"}),u.jsx("span",{className:"mx-2 text-[#387B55] dark:text-yellow-400 text-2xl -mt-1",children:"›"}),u.jsx("span",{className:"text-white dark:text-gray-200",children:"Our Team"})]}),u.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white dark:text-white leading-tight",children:"Meet Our Team"})]})]})}),u.jsxs("div",{className:"px-6 py-10 md:px-10 flex flex-col md:flex-row items-start gap-10",children:[u.jsx("div",{className:"flex-shrink-0 w-full md:w-[50%]",children:u.jsx("img",{src:q_,alt:"Team",className:"w-full h-[450px] rounded-md object-cover"})}),u.jsxs("div",{className:"flex flex-col w-full md:w-[55%]",children:[u.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-black dark:text-white mb-4",children:"Meet the AAAO Core Team – Driven by Experience, Powered by Vision"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-[.9rem] leading-relaxed mb-6",children:"Behind AAAO Go is a strategic team of experts with deep-rooted experience in technology, transportation, tourism, hospitality, finance, retail, and smart services."}),u.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[u.jsx("div",{className:"bg-green-700 dark:bg-yellow-500 dark:text-gray-900 text-white p-3 rounded-full",children:u.jsx(BN,{className:"text-lg"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-semibold text-green-800 dark:text-yellow-400",children:"Combined Experience of 50+ Years"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 mt-1 text-sm leading-relaxed",children:"Our leadership team holds over 50 years of combined industry experience, ensuring AAAO Go is built with insight, integrity, and future-focused strategy."})]})]}),u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"bg-green-700 dark:bg-yellow-500 dark:text-gray-900 text-white p-3 rounded-full",children:u.jsx(WN,{className:"text-lg"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-semibold text-green-800 dark:text-yellow-400",children:"Built to Scale, Structured to Lead"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 mt-1 text-sm leading-relaxed",children:"This team is architecting the AAAO Empire with clarity and commitment."})]})]})]})]}),u.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between px-8 py-12",children:[u.jsxs("div",{className:"md:w-1/2 space-y-4",children:[u.jsx("h2",{className:"text-3xl font-bold text-black dark:text-white",children:"MEET OUR FOUNDER"}),u.jsx("h3",{className:"text-xl font-semibold text-black dark:text-white",children:"A VISIONARY ARCHITECT OF INNOVATION"}),u.jsx("div",{className:"bg-black dark:bg-gray-700 text-white dark:text-gray-200 px-4 py-2 inline-block font-semibold tracking-wider",children:"MR MI KHAN BUDDA KHEL"}),u.jsx("h4",{className:"font-bold text-lg text-black dark:text-white mt-2",children:"(CEO)"}),u.jsx("p",{className:"text-gray-800 dark:text-gray-200 text-justify mb-5",children:"Starting as a laborer and rising to global leadership, Founder is a true embodiment of resilience and ambition. With 10 years of experience... driving innovation and inspiring change."}),u.jsx("button",{className:"bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-6 py-2 rounded hover:bg-green-700 dark:hover:bg-yellow-400 mt-5 transition-colors duration-300",children:u.jsx("a",{href:"https://digitalcontacts.info/mikhanbuddakhel",target:"_blank",rel:"noopener noreferrer",children:"Visit Profile"})})]}),u.jsx("div",{className:"md:w-[40%] mt-8 md:mt-0 flex justify-center",children:u.jsx("img",{src:Y_,alt:"Founder",className:"max-w-full h-auto object-cover rounded-lg shadow-lg"})})]}),u.jsxs("div",{className:"px-4 py-12 text-center bg-white dark:bg-gray-800",children:[u.jsx("h2",{className:"text-3xl font-bold text-black dark:text-white mb-8",children:"MEET OUR TEAM"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:s.map((o,c)=>u.jsxs("div",{className:"bg-gray-100 dark:bg-gray-700 rounded-lg overflow-hidden p-4 flex flex-col items-center",style:{boxShadow:"1px 1px 10px #585858"},children:[u.jsx("img",{src:o.image,alt:o.name,className:"w-full h-60 object-cover rounded"}),u.jsx("h3",{className:"mt-4 text-lg whitespace-nowrap font-semibold text-black dark:text-white",children:o.name}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200",children:o.role}),u.jsxs("button",{onClick:()=>n(o),className:"mt-4 bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-4 py-2 rounded hover:bg-green-700 dark:hover:bg-yellow-400 transition-colors duration-300 flex items-center gap-1",children:["Read More ",u.jsx("span",{children:"→"})]})]},c))})]}),e&&u.jsx("div",{className:"fixed inset-0 bg-black dark:bg-gray-900 bg-opacity-60 flex justify-center items-center z-50",children:u.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg max-w-4xl w-full p-6 relative shadow-lg",children:[u.jsx("button",{onClick:()=>n(null),className:"absolute top-2 right-2 text-gray-600 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-400",children:u.jsx(XN,{size:20})}),u.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[u.jsx("img",{src:e.image,alt:e.name,className:"w-full md:w-[40%] h-60 object-cover rounded"}),u.jsxs("div",{className:"md:w-[60%] max-h-60 overflow-y-auto pr-2",children:[u.jsx("p",{className:"text-red-700 dark:text-yellow-400 font-semibold mb-2",children:e.title}),u.jsx("h3",{className:"text-xl font-bold text-black dark:text-white mb-2",children:e.name}),u.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-sm leading-relaxed whitespace-pre-line",children:e.description})]})]})]})})]})},$_="/assets/bg-4H183NQt.jpg",Q_=()=>{const e=[{icon:cu,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:L1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:V1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:F1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:z1,url:"https://t.me/aaaogointl"}];return u.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-5",children:[u.jsx("div",{className:"h-[500px]  rounded-3xl my-7 w-[95%] mx-auto bg-black text-white",children:u.jsxs("div",{className:"relative mt-20 bg-cover  bg-center h-[500px] rounded-3xl overflow-hidden flex items-center justify-center",style:{backgroundImage:`url(${$_})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50"}),u.jsxs("div",{className:"relative z-10 text-center px-4",children:[u.jsxs("nav",{className:"text-sm text-white/80 mb-4 flex items-center justify-center",children:[u.jsx(Nt,{to:"/",className:"hover:underline text-white",children:"Home"}),u.jsx("span",{className:"mx-2 text-[#387B55] text-2xl -mt-1",children:"›"}),u.jsx("span",{children:"Contact"})]}),u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Connect with Us for Any Questions ",u.jsx("br",{className:"max-lg:hidden"})," or Concerns"]})]})]})}),u.jsxs("div",{className:"w-[95%] mx-auto text-green-800 dark:text-green-300 px-6 py-10 md:flex md:justify-between md:items-start gap-10",children:[u.jsxs("div",{className:"md:w-1/2 space-y-6",children:[u.jsx("h2",{className:"text-3xl font-bold",children:"Get In Touch With Us"}),u.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:"Get in Touch – Your Ride is Just a Call Away!"}),u.jsxs("div",{className:"flex gap-8 max-lg:flex-col",children:[u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"bg-green-100 dark:bg-gray-700 p-3 rounded-full",children:u.jsx(YN,{className:"text-green-600 dark:text-green-300 text-xl"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold",children:"Our Office"}),u.jsxs("p",{className:"text-gray-600 dark:text-gray-300",children:["Office Address: Alabraj Street",u.jsx("br",{}),"Business Bay Dubai UAE"]})]})]}),u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"bg-green-100 dark:bg-gray-700 p-3 rounded-full",children:u.jsx(U1,{className:"text-green-600 dark:text-green-300 text-xl"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold",children:"Contact Info"}),u.jsxs("p",{className:"text-gray-600 dark:text-gray-300",children:["+1 (917) 426-0742",u.jsx("br",{}),"support@aaaogo.com"]})]})]})]}),u.jsx("hr",{className:"border-gray-300 dark:border-gray-600"}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold",children:"Our Social Media :"}),u.jsx("div",{className:"flex gap-4 mt-2",children:e.map(({icon:n,url:a},s)=>u.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-full hover:bg-green-100 dark:hover:bg-gray-700 transition",children:u.jsx(n,{className:"text-gray-900 dark:text-white"})},s))})]})]}),u.jsxs("div",{className:"md:w-1/2 mt-10 md:mt-0 bg-green-100 dark:bg-gray-800 p-6 rounded-2xl",children:[u.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Leave Us A Message"}),u.jsxs("form",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block mb-1",children:"Name"}),u.jsx("input",{type:"text",placeholder:"Name",className:"w-full p-2 rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block mb-1",children:"Email"}),u.jsx("input",{type:"email",placeholder:"Email",className:"w-full p-2 rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block mb-1",children:"Message"}),u.jsx("textarea",{rows:"5",placeholder:"Message",className:"w-full p-2 rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400"})]}),u.jsx("button",{type:"submit",className:"w-full bg-green-600 text-white font-semibold py-2 rounded hover:bg-green-700 dark:hover:bg-green-700 transition",children:"Send"})]})]})]})]})},J_="/assets/bg-CMsJHjiS.jpg",e5=[{title:"PASSIVE EARNING SYSTEM",content:"Unlike traditional ride-hailing services, AAAO Go offers a unique team-based earnings model. You can build a network, and even while you sleep, you earn bonuses from the rides and activities of your team."},{title:"MULTIPLE PAYMENT OPTIONS",content:"AAAO Go supports crypto, bank transfers, and mobile wallets, giving drivers and customers full flexibility in managing their earnings."},{title:"NO REGISTRATION FEES",content:"Most platforms charge drivers to join, but AAAO Go has zero registration fees, allowing more drivers to start earning without upfront costs."},{title:"INSTANT WITHDRAWALS",content:"Drivers don’t have to wait for weekly payments—they can withdraw their earnings anytime in crypto, to their bank, or mobile wallets."},{title:"ACCOUNT TRANSFER AFTER DEATH",content:"Unlike other ride-hailing apps, AAAO Go ensures that earnings and accounts can be legally transferred to family members in case of unforeseen circumstances."},{title:"MORE THAN JUST RIDES",content:"AAAO Go isn’t just for ride-hailing—it also supports services like car recovery, moving, delivery, and other on-demand services, creating more earning opportunities for drivers and service providers."}],t5=[{title:"WHAT IS AAAO GO ?",content:"AAAO Go is an online ride-hailing platform that connects passengers with drivers, offering safe, reliable, and affordable transportation services."},{title:"HOW IS AAAO GO DIFFERENT FROM OTHER RIDE-HAILING SERVICES ?",content:"AAAO Go offers flexible payment options, multiple service categories (including car recovery and delivery), and a seamless experience for both riders and drivers."},{title:"WHERE IS AAAO GO AVAILABLE ?",content:"Currently, AAAO Go is launching in the UAE, with plans for expansion to other regions."},{title:"IS THERE A REGISTRATION FEE FOR DRIVERS OR CUSTOMERS ?",content:"No, AAAO Go does not charge any registration fees for drivers or customers."}],n5=[{title:"HOW DO I BOOK A RIDE ON AAAO GO ?",content:"Simply download the AAAO Go app, sign up, enter your destination, choose your ride type, and confirm your booking."},{title:"WHAT PAYMENT METHODS DOES AAAO GO ACCEPT ?",content:"We accept cash, credit/debit cards, mobile wallets, and cryptocurrency payments for ride bookings."},{title:"CAN I SCHEDULE A RIDE IN ADVANCE ?",content:"Yes, AAAO Go allows you to schedule rides for a future time and date."},{title:"HOW CAN I TRACK MY RIDE ?",content:"You can track your ride in real time through the app after booking."},{title:"WHAT IF I FORGET SOMETHING IN THE CAR ?",content:"You can report lost items through the app, and we will assist in retrieving them."}],r5=[{title:"HOW CAN I BECOME A DRIVER WITH AAAO GO ?",content:"You can sign up as a driver through the app or website by providing the required documents and completing the verification process."},{title:"HOW DO DRIVERS GET PAID ?",content:"Drivers can withdraw their earnings anytime through crypto, bank transfers, or mobile wallets."},{title:"WHAT TYPE OF CAR CAN BE USED FOR AAAO GO ?",content:"AAAO Go accepts various car types depending on the service category. Details are available in the driver registration section."},{title:"IS THERE A DRIVER SUPPORT CENTER ?",content:"Yes, we have dedicated customer support for drivers to assist with any issues."}],a5=[{title:"HOW DO CUSTOMERS AND DRIVERS WITHDRAW MONEY ?",content:"Both customers and drivers can withdraw their AAAO Go balance anytime via bank transfers, mobile wallets, or cryptocurrency."},{title:"WHAT HAPPEN TO MY AAAO GO ACCOUNT IF I PASS AWAY ?",content:"AAAO Go allows account transfers to legal heirs after verification, ensuring continuity of earnings or service."}],s5=[{title:"IS AAAO GO SAFE FOR RIDERS AND DRIVERS ?",content:"Yes, we have strict safety measures, including driver verification, real-time tracking, and emergency contact features."},{title:"Can I share my ride details with family or friends?",content:"Yes, AAAO Go allows you to share your live ride location with trusted contacts."}],i5=[{title:"How can I contact AAAO Go for support ?",content:"You can reach our support team through the app’s help center, email, or customer service hotline."}],o5=()=>{const[e,n]=W.useState({general:null,questions:null,riders:null,drivers:null,payments:null,safety:null,contact:null}),a=(o,c)=>{n(d=>({...d,[o]:d[o]===c?null:c}))},s=(o,c,d)=>u.jsx("div",{className:"px-6 py-10 text-green-800 dark:text-green-300 md:flex md:gap-10",children:u.jsxs("div",{className:"w-[100%]",children:[u.jsx("h2",{className:"text-3xl font-bold mb-4",children:o}),d.map((f,h)=>u.jsxs("div",{className:"border-b border-green-300 dark:border-gray-600 py-4 cursor-pointer",children:[u.jsxs("div",{onClick:()=>a(c,h),className:"flex justify-between items-center",children:[u.jsx("h3",{className:`font-bold text-sm ${e[c]===h?"text-[#0B996F]":"text-[#0A4624] dark:text-green-300"}`,children:f.title}),e[c]===h?u.jsx(HN,{className:"text-[#0B996F]"}):u.jsx(VN,{className:"text-[#0B996F]"})]}),e[c]===h&&f.content&&u.jsx("p",{className:"mt-2 text-gray-700 dark:text-gray-300 text-sm",children:f.content})]},h))]})});return u.jsxs("div",{className:"bg-white p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[u.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto bg-black text-white",children:u.jsxs("div",{className:"relative bg-cover bg-center h-[500px] rounded-3xl overflow-hidden flex items-center mt-20 justify-center",style:{backgroundImage:`url(${J_})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-70"}),u.jsxs("div",{className:"relative z-10 text-center px-4",children:[u.jsxs("nav",{className:"text-sm text-white/80 mb-4 flex items-center justify-center",children:[u.jsx(Nt,{to:"/",className:"hover:underline text-white",children:"Home"}),u.jsx("span",{className:"mx-2 text-[#387B55] text-2xl -mt-1",children:"›"}),u.jsx("span",{children:"FAQ"})]}),u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Answers to Common Questions about Our"," ",u.jsx("br",{className:"max-lg:hidden"})," Services and Policies"]})]})]})}),u.jsxs("div",{className:"flex w-[100%] max-lg:flex-col",children:[u.jsxs("div",{className:"w-[100%]",children:[s("FAQS!","general",e5),s("General Questions","questions",t5),s("For Riders","riders",n5),s("For Drivers","drivers",r5),s("Payments & Account Transfer","payments",a5),s("Safety & Security","safety",s5),s("Support & Contact","contact",i5)]}),u.jsx("div",{className:"px-6 pb-16 text-green-800 dark:text-green-300 md:flex md:gap-10 h-[20rem] mt-28 max-lg:mt-0",children:u.jsxs("div",{className:"mt-8 md:mt-0 bg-green-50 dark:bg-gray-800 rounded-2xl p-6 shadow-sm",children:[u.jsx("div",{className:"bg-white dark:bg-gray-700 w-12 h-12 flex items-center justify-center rounded-full mb-4 shadow",children:u.jsx(KN,{className:"text-green-600 dark:text-green-300 text-xl"})}),u.jsx("h3",{className:"text-xl font-semibold text-green-700 dark:text-green-300",children:"You have a different question?"}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 mt-2 mb-4",children:"Reach out to our customer support team for prompt and personalized assistance."}),u.jsx(Nt,{to:"/contact",className:"inline-block bg-[#0B996F] text-white font-semibold py-2 px-4 rounded hover:bg-green-700 dark:hover:bg-green-700 transition",children:"Contact Us"})]})})]}),u.jsxs("div",{className:"bg-[#e8f7f0] dark:bg-gray-800 relative py-20 mb-5 px-6 h-[130vh] max-lg:h-auto items-center flex w-[95%] rounded-3xl mx-auto",style:{backgroundImage:`url(${G1})`},children:[u.jsx("div",{className:"absolute inset-0 bg-[#E2F4EA] dark:bg-gray-900/50 opacity-50 rounded-3xl"}),u.jsxs("div",{className:"w-full px-3 z-10 mx-auto flex flex-col md:flex-row items-center justify-between gap-16",children:[u.jsxs("div",{className:"text-center md:text-left max-w-xl",children:[u.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-[#0B996F] mb-4",children:["The Easiest Way to Book ",u.jsx("br",{}),"Your Ride Register Now for ",u.jsx("br",{}),"Instant Access"]}),u.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-lg mb-6",children:"Book your ride quickly and effortlessly with just a few taps on our app"}),u.jsxs("div",{className:"flex flex-wrap justify-center md:justify-start gap-4",children:[u.jsx("a",{href:"#",children:u.jsx("img",{src:W1,alt:"Google Play",className:"h-12 rounded-lg"})}),u.jsx("a",{href:"#",children:u.jsx("img",{src:X1,alt:"App Store",className:"h-12 rounded-lg"})})]})]}),u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:Y1,alt:"Happy user",className:"w-full max-w-md h-[100vh] max-lg:h-auto object-cover rounded-2xl"}),u.jsx("img",{src:q1,alt:"App Screenshot",className:"absolute top-32 -left-28 max-lg:-left-10 max-lg:w-20 max-lg:top-5 md:w-60 drop-shadow-xl"})]})]})]})]})},rw="/assets/logo-C1IfLRO8.png",l5=()=>{const e=Gn(),n=Xt(),a=We(Ro),s=We(iu),{theme:o}=ia(),[c,d]=W.useState({identifier:"",password:""}),[f,h]=W.useState(!1),[m,g]=W.useState({}),x=S=>{const{name:E,value:T}=S.target;d(C=>({...C,[E]:T})),g(C=>({...C,[E]:"",form:""}))},b=S=>/\S+@\S+\.\S+/.test(S)?{email:S,phoneNumber:"",username:""}:/^\+?\d{10,15}$/.test(S.replace(/\s/g,""))?{email:"",phoneNumber:S,username:""}:{email:"",phoneNumber:"",username:S},A=()=>{const S={};return c.identifier.trim()||(S.identifier="Email, phone number, or username is required"),c.password||(S.password="Password is required"),g(S),Object.keys(S).length===0};W.useEffect(()=>{s&&(g({form:typeof s=="string"?s:s.message||"An error occurred"}),e(Bs()))},[s,e]);const k=async S=>{if(S.preventDefault(),g({}),e(Bs()),!A())return;const E={...b(c.identifier),password:c.password};try{const T=await e(dc(E)).unwrap();console.log("Login successful:",T),n("/profile")}catch(T){console.error("Login failed:",T)}};return u.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-8 transition-colors duration-300 ${o==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gray-100"}`,children:u.jsxs("div",{className:`shadow-lg rounded-2xl flex flex-col md:flex-row w-full max-w-6xl my-8 sm:my-12 overflow-hidden transition-colors duration-300 ${o==="dark"?"bg-gray-800":"bg-white"}`,children:[u.jsxs("div",{className:"w-full md:w-1/2 flex flex-col justify-center items-center p-6 sm:p-10",children:[u.jsx("h2",{className:`text-2xl sm:text-3xl font-semibold mb-4 text-center ${o==="dark"?"text-yellow-400":"text-[#013220]"}`,children:"Sign in to Your Account"}),m.form&&u.jsx("p",{className:`text-sm mb-4 text-center ${o==="dark"?"text-red-400":"text-red-600"}`,children:m.form}),u.jsx("div",{className:"flex space-x-3 mb-5",children:[cu,M1,P1].map((S,E)=>u.jsx("button",{className:`border rounded-full p-2 w-10 h-10 flex items-center justify-center transition-colors duration-300 ${o==="dark"?"border-gray-500 hover:bg-gray-600":"border-gray-300 hover:bg-gray-100"}`,disabled:a,children:u.jsx(S,{className:o==="dark"?"text-gray-300":"text-gray-600"})},E))}),u.jsxs("form",{onSubmit:k,className:"w-full max-w-sm space-y-4",children:[u.jsxs("div",{children:[m.identifier&&u.jsx("p",{className:`text-sm mb-1 ${o==="dark"?"text-red-400":"text-red-600"}`,children:m.identifier}),u.jsx("input",{type:"text",name:"identifier",value:c.identifier,onChange:x,placeholder:"Email, Phone, or Username",disabled:a,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${o==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${m.identifier?"!border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${m.identifier?"!border-red-600":""}`}`})]}),u.jsxs("div",{children:[m.password&&u.jsx("p",{className:`text-sm mb-1 ${o==="dark"?"text-red-400":"text-red-600"}`,children:m.password}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:f?"text":"password",name:"password",value:c.password,onChange:x,placeholder:"Password",disabled:a,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${o==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${m.password?"!border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${m.password?"!border-red-600":""}`}`}),u.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${o==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>h(!f),children:f?u.jsx(xo,{}):u.jsx(vo,{})})]})]}),u.jsxs("div",{className:`flex justify-between items-center text-sm ${o==="dark"?"text-gray-300":"text-gray-600"}`,children:[u.jsxs("label",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"checkbox",className:`w-4 h-4 ${o==="dark"?"text-yellow-400":"text-[#013220]"}`}),"Remember me"]}),u.jsx(Nt,{to:"/forgot-password",className:`hover:underline ${o==="dark"?"text-teal-400":"text-teal-600"}`,children:"Forgot password?"})]}),u.jsx("button",{type:"submit",disabled:a,className:`w-full p-3 font-semibold rounded-full transition-colors duration-300 disabled:opacity-50 disabled:cursor-not-allowed ${o==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400"}`,children:a?"Signing in...":"Sign In"})]})]}),u.jsxs("div",{className:`w-full md:w-1/2 flex flex-col justify-center items-center p-8 transition-colors duration-300 ${o==="dark"?"bg-gradient-to-b from-gray-900 to-gray-700 text-yellow-400":"bg-gradient-to-b from-green-900 to-green-700 text-yellow-400"}`,children:[u.jsxs("div",{className:"flex flex-col items-center mb-6",children:[u.jsx("img",{src:rw,alt:"Aao Go Logo",className:"w-20 h-20 object-contain mb-2"}),u.jsx("h2",{className:"text-xl font-semibold text-yellow-400",children:"Welcome to Aao Go"})]}),u.jsx("p",{className:"mt-2 text-sm sm:text-base text-center text-yellow-400",children:"Sign in and continue your journey with us."}),u.jsx("p",{className:"text-center max-w-xs mb-6 z-10 text-sm text-yellow-400",children:"Don’t have an account? Sign up now!"}),u.jsx(Nt,{to:"/signup",className:`border px-6 py-2 rounded-full transition text-sm ${o==="dark"?"border-yellow-400 hover:bg-yellow-400 hover:text-gray-900":"border-yellow-400 hover:bg-yellow-400 hover:text-green-900"}`,children:"Sign Up"})]})]})})},c5=[{code:"+1",label:"US (+1)"},{code:"+44",label:"UK (+44)"},{code:"+92",label:"Pakistan (+92)"},{code:"+91",label:"India (+91)"},{code:"+971",label:"UAE (+971)"},{code:"+61",label:"Australia (+61)"},{code:"+81",label:"Japan (+81)"},{code:"+86",label:"China (+86)"}],u5=()=>{const e=Gn(),n=Xt(),[a]=SN(),s=We(Ro),o=We(iu),{theme:c}=ia(),[d,f]=W.useState({username:"",firstName:"",lastName:"",email:"",countryCode:"+92",phoneNumber:"",password:"",confirmPassword:"",sponsorBy:"",gender:"",otp:""}),[h,m]=W.useState({}),[g,x]=W.useState(!1),[b,A]=W.useState(!1),[k,S]=W.useState(""),[E,T]=W.useState(""),[C,L]=W.useState(!1),[G,N]=W.useState(0),[z,B]=W.useState(!0),[H,M]=W.useState(!1);W.useEffect(()=>{const j=a.get("ref");j&&f(K=>({...K,sponsorBy:j}))},[a]),W.useEffect(()=>{let j;return G>0&&(j=setInterval(()=>{N(K=>K<=1?(B(!0),0):K-1)},1e3)),()=>{j&&clearInterval(j)}},[G]),W.useEffect(()=>{const K=setTimeout(async()=>{if(d.sponsorBy.trim())try{const w=(await gt.get(`${On}${rt.GET_USER_BY_USERNAME}?username=${d.sponsorBy}`,{headers:{"Content-Type":"application/json"}})).data.user;w&&w.firstName&&w.lastName?(S(`${w.firstName} ${w.lastName}`),T("")):(S(""),T("Sponsor not found"))}catch(X){console.error("Error fetching sponsor name:",X),S(""),T(X.response?.status===404?"Invalid sponsor username":"Error fetching sponsor details")}else S(""),T("")},500);return()=>clearTimeout(K)},[d.sponsorBy]),W.useEffect(()=>{if(o){const j={};typeof o=="string"?j.form=o:o.errors?Object.entries(o.errors).forEach(([K,X])=>{j[K]=X}):o.message&&(j.form=o.message),m(j),e(Bs())}},[o,e]);const R=j=>{const{name:K,value:X}=j.target;f(w=>({...w,[K]:X})),m(w=>({...w,[K]:"",form:""}))},Z=()=>{let j=!0;const K={};return d.username.trim()?/^[a-zA-Z0-9_]{3,30}$/.test(d.username)||(K.username="Username must be 3-30 characters and contain only letters, numbers, or underscores",j=!1):(K.username="Username is required",j=!1),d.firstName.trim()||(K.firstName="First name is required",j=!1),d.email.trim()?/^\S+@\S+\.\S+$/.test(d.email)||(K.email="Email is invalid",j=!1):(K.email="Email is required",j=!1),d.phoneNumber.trim()?/^\d{10}$/.test(d.phoneNumber)||(K.phoneNumber="Phone number must be 10 digits",j=!1):(K.phoneNumber="Phone number is required",j=!1),d.password?d.password.length<8?(K.password="Password must be at least 8 characters",j=!1):(!/[A-Z]/.test(d.password)||!/[0-9]/.test(d.password))&&(K.password="Password must contain at least one uppercase letter and one number",j=!1):(K.password="Password is required",j=!1),d.confirmPassword?d.password!==d.confirmPassword&&(K.confirmPassword="Passwords do not match",j=!1):(K.confirmPassword="Confirm password is required",j=!1),d.gender||(K.gender="Gender is required",j=!1),C&&!d.otp.trim()?(K.otp="OTP is required",j=!1):C&&d.otp.length!==6&&(K.otp="OTP must be 6 digits",j=!1),m(K),j},P=async()=>{const j={};if(d.email.trim()){if(!/\S+@\S+\.\S+/.test(d.email)){j.email="Email is invalid",m(j);return}}else{j.email="Email is required",m(j);return}try{M(!0);const K=await gt.post(`${On}/email-verification/send-otp`,{email:d.email.trim()});console.log("OTP sent successfully:",K.data),L(!0),B(!1),N(60)}catch(K){console.error("Failed to send OTP:",K),m(X=>({...X,email:K.response?.data?.message||"Failed to send OTP"}))}finally{M(!1)}},V=async j=>{if(j.preventDefault(),m({}),e(Bs()),!!Z())try{const K=`${d.countryCode}${d.phoneNumber}`,X={...d,phoneNumber:K},w=await e(fc(X)).unwrap();console.log("Signup successful:",w),Ue.createSession(w.token,w.user),n("/")}catch(K){console.error("Signup failed:",K)}};return u.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-8 transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gray-100"}`,children:u.jsxs("div",{className:`shadow-lg rounded-2xl flex flex-col md:flex-row w-full max-w-6xl my-8 sm:my-12 overflow-hidden transition-colors duration-300 ${c==="dark"?"bg-gray-800":"bg-white"}`,children:[u.jsxs("div",{className:"w-full md:w-1/2 flex flex-col justify-center items-center p-6 sm:p-10",children:[u.jsx("h2",{className:`text-2xl sm:text-3xl font-semibold mb-4 text-center ${c==="dark"?"text-yellow-400":"text-[#013220]"}`,children:"Create Your Account"}),h.form&&u.jsx("p",{className:`text-sm mb-4 text-center ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.form}),u.jsx("div",{className:"flex space-x-3 mb-5",children:[cu,M1,P1].map((j,K)=>u.jsx("button",{className:`border rounded-full p-2 w-10 h-10 flex items-center justify-center transition-colors duration-300 ${c==="dark"?"border-gray-500 hover:bg-gray-600":"border-gray-300 hover:bg-gray-100"}`,disabled:s,children:u.jsx(j,{className:c==="dark"?"text-gray-300":"text-gray-600"})},K))}),u.jsxs("form",{onSubmit:V,className:"w-full max-w-sm space-y-4",children:[u.jsxs("div",{children:[h.username&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.username}),u.jsx("input",{type:"text",name:"username",value:d.username,onChange:R,placeholder:"Username *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.username?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.username?"border-red-600":""}`}`})]}),u.jsxs("div",{className:"flex gap-3",children:[u.jsxs("div",{className:"w-1/2",children:[h.firstName&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.firstName}),u.jsx("input",{type:"text",name:"firstName",value:d.firstName,onChange:R,placeholder:"First Name *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.firstName?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.firstName?"border-red-600":""}`}`})]}),u.jsxs("div",{className:"w-1/2",children:[h.lastName&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.lastName}),u.jsx("input",{type:"text",name:"lastName",value:d.lastName,onChange:R,placeholder:"Last Name",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.lastName?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.lastName?"border-red-600":""}`}`})]})]}),u.jsxs("div",{children:[h.email&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.email}),u.jsx("input",{type:"email",name:"email",value:d.email,onChange:R,placeholder:"Email *",disabled:s||C,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.email?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.email?"border-red-600":""}`}`})]}),u.jsxs("div",{children:[h.otp&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.otp}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",name:"otp",value:d.otp,onChange:R,placeholder:"Enter 6-digit OTP *",maxLength:6,disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.otp?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.otp?"border-red-600":""}`}`}),u.jsx("button",{type:"button",onClick:P,disabled:s||H||!C&&!d.email||C&&!z,className:`px-3 py-2 font-semibold rounded-lg transition-colors duration-300 whitespace-nowrap ${c==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400 disabled:bg-gray-600 disabled:text-gray-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400 disabled:bg-gray-300 disabled:text-gray-600"} disabled:opacity-50 disabled:cursor-not-allowed`,children:H?"Sending...":C?z?"Resend":`Resend (${G}s)`:"Send OTP"})]})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("div",{className:"w-1/3",children:u.jsxs("select",{name:"countryCode",value:d.countryCode,onChange:R,disabled:s,className:`w-full rounded-lg px-2 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none text-sm sm:text-base transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white ${h.phoneNumber?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 ${h.phoneNumber?"border-red-600":""}`}`,children:[u.jsx("option",{value:"",disabled:!0,children:"Select Code *"}),c5.map(j=>u.jsx("option",{value:j.code,children:j.label},j.code))]})}),u.jsxs("div",{className:"w-2/3",children:[h.phoneNumber&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.phoneNumber}),u.jsx("input",{type:"tel",name:"phoneNumber",value:d.phoneNumber,onChange:R,placeholder:"Phone Number *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.phoneNumber?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.phoneNumber?"border-red-600":""}`}`})]})]}),u.jsxs("div",{children:[h.gender&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.gender}),u.jsxs("select",{name:"gender",value:d.gender,onChange:R,disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white ${h.gender?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 ${h.gender?"border-red-600":""}`}`,children:[u.jsx("option",{value:"",children:"Select Gender *"}),u.jsx("option",{value:"Male",children:"Male"}),u.jsx("option",{value:"Female",children:"Female"}),u.jsx("option",{value:"Other",children:"Other"})]})]}),u.jsxs("div",{children:[E&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:E}),u.jsx("input",{type:"text",name:"sponsorBy",value:d.sponsorBy,onChange:R,placeholder:"Sponsor Code (Optional)",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${E?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${E?"border-red-600":""}`}`}),k&&u.jsxs("p",{className:`text-sm mt-1 ${c==="dark"?"text-gray-300":"text-gray-600"}`,children:["Sponsor: ",k]})]}),u.jsxs("div",{children:[h.password&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.password}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:g?"text":"password",name:"password",value:d.password,onChange:R,placeholder:"Password *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.password?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.password?"border-red-600":""}`}`}),u.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>x(!g),children:g?u.jsx(xo,{}):u.jsx(vo,{})})]})]}),u.jsxs("div",{children:[h.confirmPassword&&u.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.confirmPassword}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:b?"text":"password",name:"confirmPassword",value:d.confirmPassword,onChange:R,placeholder:"Confirm Password *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.confirmPassword?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.confirmPassword?"border-red-600":""}`}`}),u.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>A(!b),children:b?u.jsx(xo,{}):u.jsx(vo,{})})]})]}),u.jsx("button",{type:"submit",disabled:s,className:`w-full p-3 font-semibold rounded-full transition-colors duration-300 disabled:opacity-50 disabled:cursor-not-allowed ${c==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400"}`,children:s?"Creating Account...":"Sign Up"})]})]}),u.jsxs("div",{className:`w-full md:w-1/2 flex flex-col justify-center items-center p-8 transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-900 to-gray-700":"bg-gradient-to-b from-green-900 to-green-700"} text-yellow-400`,children:[u.jsx("img",{src:rw,alt:"AAO GO Logo",className:"w-28 sm:w-36 md:w-44 mb-4"}),u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center",children:"Welcome to AAO GO"}),u.jsx("p",{className:"mt-2 text-sm sm:text-base text-center text-yellow-200",children:"Sign up and start your journey with us."}),u.jsx("p",{className:"text-center max-w-xs mb-6 z-10 text-sm text-yellow-400",children:"Already have an account? Sign in to continue!"}),u.jsx(Nt,{to:"/login",className:`border px-6 py-2 rounded-full transition text-sm ${c==="dark"?"border-yellow-400 hover:bg-yellow-400 hover:text-gray-900":"border-yellow-400 hover:bg-yellow-400 hover:text-green-900"}`,children:"Sign In"})]})]})})},d5=()=>{const e=Gn(),n=Xt(),a=We(Ro),s=We(iu),[o,c]=W.useState({email:""}),[d,f]=W.useState({}),h=x=>{const{name:b,value:A}=x.target;c(k=>({...k,[b]:A})),d[b]&&f(k=>({...k,[b]:""}))},m=()=>{const x={};return o.email.trim()?/\S+@\S+\.\S+/.test(o.email)||(x.email="Email is invalid"):x.email="Email is required",f(x),Object.keys(x).length===0},g=async x=>{if(x.preventDefault(),e(Bs()),!m()){zb(d);return}try{console.log("ForgotPassword - Starting password reset for email:",o.email);const b=await e(hc({email:o.email})).unwrap();if(console.log("ForgotPassword - OTP sent, result:",b),!b.userId){console.error("ForgotPassword - No userId in response, received:",b),it("Failed to initiate password reset. Please try again.");return}console.log("ForgotPassword - Navigating to reset-password with state:",{userId:b.userId,email:o.email,token:b.token}),n("/reset-password",{state:{userId:b.userId,email:o.email}})}catch(b){console.error("ForgotPassword failed:",b),it(b||"Failed to send OTP. Please try again.")}};return u.jsx("div",{className:"min-h-screen flex items-center justify-center rounded-xl bg-gradient-to-b from-green-200 to-green-300 dark:from-gray-800 dark:to-gray-900",children:u.jsxs("div",{className:"bg-[#E4E4E4] dark:bg-gray-800 rounded-2xl shadow-md dark:shadow-gray-700 w-[90%] max-w-md p-6 md:p-8",children:[u.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-gray-900 dark:text-white",children:"Forgot Password"}),s&&u.jsx("div",{className:"bg-red-500 bg-opacity-20 text-red-500 dark:text-red-400 p-3 rounded-lg mb-4 text-center",children:s}),u.jsxs("form",{onSubmit:g,className:"space-y-5",children:[u.jsxs("div",{children:[u.jsxs("label",{className:"block text-sm font-semibold text-[#0A4624] dark:text-gray-200 mb-1",children:["Email ",u.jsx("span",{className:"text-red-500 dark:text-red-400",children:"*"})]}),u.jsx("input",{type:"email",name:"email",value:o.email,onChange:h,className:"w-full bg-white dark:bg-gray-700 text-gray-900 dark:text-white border border-gray-300 dark:border-gray-600 rounded px-4 py-1 outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 placeholder-gray-400 dark:placeholder-gray-400",placeholder:"Enter your email"}),d.email&&u.jsx("p",{className:"text-red-500 dark:text-red-400 text-xs mt-1",children:d.email})]}),u.jsx("button",{type:"submit",disabled:a,className:"w-full bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-500 disabled:opacity-50 disabled:cursor-not-allowed transition",children:a?"Sending OTP...":"Send OTP"})]})]})})},f5=()=>{const e=Gn(),n=Xt(),a=Ln(),s=We(Ro),o=We(iu),{theme:c}=ia(),{userId:d,email:f}=a.state||{},h=d||localStorage.getItem("signupUserId"),m=f||localStorage.getItem("signupEmail");console.log("ResetPassword - location.state:",{stateUserId:d,stateEmail:f}),console.log("ResetPassword - localStorage:",{userId:h,email:m}),d&&f&&(localStorage.setItem("signupUserId",d),localStorage.setItem("signupEmail",f));const[g,x]=W.useState({resetOtp:"",password:"",confirmPassword:""}),[b,A]=W.useState(!1),[k,S]=W.useState(!1),[E,T]=W.useState({}),C=N=>{const{name:z,value:B}=N.target;x(H=>({...H,[z]:B})),E[z]&&T(H=>({...H,[z]:""}))},L=()=>{const N={};return g.resetOtp.trim()||(N.resetOtp="OTP is required"),g.password?g.password.length<8&&(N.password="Password must be at least 8 characters"):N.password="Password is required",g.password!==g.confirmPassword&&(N.confirmPassword="Passwords do not match"),T(N),Object.keys(N).length===0},G=async N=>{if(N.preventDefault(),e(Bs()),!L()){zb(E),e(If(!1));return}if(!h){it("Cannot reset password: User ID is missing."),e(If(!1));return}try{console.log("ResetPassword - Starting password reset for userId:",h);const z={userId:h,resetOtp:g.resetOtp,password:g.password},B=await e(mc(z)).unwrap();console.log("ResetPassword - Password reset successful, result:",B),localStorage.removeItem("signupUserId"),localStorage.removeItem("signupEmail"),n("/login",{replace:!0})}catch(z){console.error("ResetPassword failed:",z),e(If(!1)),it(z.message||"Failed to reset password.")}};return u.jsx("div",{className:`min-h-screen flex items-center justify-center transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gradient-to-b from-green-200 to-green-300"}`,children:u.jsxs("div",{className:`rounded-2xl shadow-md w-[90%] max-w-md p-6 md:p-8 transition-colors duration-300 ${c==="dark"?"bg-gray-700 text-white":"bg-[#E4E4E4] text-gray-900"}`,children:[u.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Reset Password"}),o&&u.jsx("div",{className:`bg-red-500 bg-opacity-20 p-3 rounded-lg mb-4 text-center ${c==="dark"?"text-red-300":"text-red-500"}`,children:o}),u.jsxs("form",{onSubmit:G,className:"space-y-5",children:[u.jsxs("div",{children:[u.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["OTP ",u.jsx("span",{className:"text-red-500",children:"*"})]}),u.jsx("input",{type:"text",name:"resetOtp",value:g.resetOtp,onChange:C,className:`w-full border rounded px-4 py-1 outline-none transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Enter the OTP sent to your email",disabled:s}),E.resetOtp&&u.jsx("p",{className:"text-red-500 text-xs mt-1",children:E.resetOtp})]}),u.jsxs("div",{className:"relative",children:[u.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["New Password ",u.jsx("span",{className:"text-red-500",children:"*"})]}),u.jsx("input",{type:b?"text":"password",name:"password",value:g.password,onChange:C,className:`w-full border rounded px-4 py-1 outline-none pr-10 transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Enter your new password",disabled:s}),u.jsx("div",{className:`absolute right-3 top-9 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>A(!b),children:b?u.jsx(xo,{}):u.jsx(vo,{})}),E.password&&u.jsx("p",{className:"text-red-500 text-xs mt-1",children:E.password})]}),u.jsxs("div",{className:"relative",children:[u.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["Confirm Password ",u.jsx("span",{className:"text-red-500",children:"*"})]}),u.jsx("input",{type:k?"text":"password",name:"confirmPassword",value:g.confirmPassword,onChange:C,className:`w-full border rounded px-4 py-1 outline-none pr-10 transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Confirm your new password",disabled:s}),u.jsx("div",{className:`absolute right-3 top-9 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>S(!k),children:k?u.jsx(xo,{}):u.jsx(vo,{})}),E.confirmPassword&&u.jsx("p",{className:"text-red-500 text-xs mt-1",children:E.confirmPassword})]}),u.jsx("button",{type:"submit",disabled:s,className:`w-full px-6 py-2 rounded text-white font-medium transition-all duration-300 shadow-sm hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed ${c==="dark"?"bg-blue-600 hover:bg-blue-700":"bg-blue-500 hover:bg-blue-600"}`,children:s?"Resetting...":"Reset Password"})]})]})})},h5=({label:e,amount:n,link:a})=>u.jsxs(Nt,{to:a,className:"shadow rounded-xl p-4 flex flex-col items-center w-36 cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #013220, #083A06)",border:"1px solid #FFD700",color:"#FFD700",textDecoration:"none"},children:[u.jsx("span",{className:"font-medium text-center",children:e}),u.jsxs("span",{className:"text-lg font-bold",children:["AED ",n.toFixed(2)]})]});function m5(){const e=Xt(),n=Gn(),a=We(h1),s=We(m1);We(kr),W.useEffect(()=>{n(oo())},[n]);const o=a?.summary||{totalEarnings:{ddr:0,crr:0,bbr:0,hlr:0,countryAmbassador:0}},c=a?.wallet||{currentBalance:0,totalEarned:0},d=[{label:"DDR",amount:o.totalEarnings.ddr||0,link:"/ddr"},{label:"CRR",amount:o.totalEarnings.crr||0,link:"/crr"},{label:"BBR",amount:o.totalEarnings.bbr||0,link:"/bbr"},{label:"HLR",amount:o.totalEarnings.hlr||0,link:"/hlr"},{label:"COUNTRY Ambassador",amount:o.totalEarnings.countryAmbassador||0,link:"/RegionalAmbassador"}];return u.jsxs("div",{className:"min-h-screen mb-10 flex flex-col items-center p-6 mt-20 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-lg mb-4",children:u.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("h1",{className:"text-2xl font-bold mb-6",children:"MLM Bonuses"}),u.jsxs("div",{className:"grid grid-cols-2 gap-6 rounded-2xl p-6 w-full max-w-lg mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Total Earned (Lifetime)"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",c.totalEarned.toFixed(2)]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Available Balance"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",c.currentBalance.toFixed(2)]})]})]}),a?.user&&u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-lg mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"User Information"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Username"}),u.jsx("p",{className:"font-bold",children:a.user.username})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Name"}),u.jsxs("p",{className:"font-bold",children:[a.user.firstName," ",a.user.lastName]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Sponsor ID"}),u.jsx("p",{className:"font-bold",children:a.user.sponsorId})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Joined"}),u.jsx("p",{className:"font-bold",children:new Date(a.user.joinedAt).toLocaleDateString()})]})]})]}),s&&u.jsx("div",{className:"text-center py-8",children:u.jsx("p",{className:"text-xl",children:"Loading MLM dashboard data..."})}),u.jsx("div",{className:"flex gap-4 flex-wrap justify-center mb-6",children:d.map((f,h)=>u.jsx(h5,{label:f.label,amount:f.amount,link:f.link},h))})]})}const sv=()=>{const e=Gn(),n=Xt(),{userId:a}=DE(),s=We(VT),o=We(HT),c=We(IT),d=We(kr),f=We(d1),h=We(gm),[m,g]=W.useState(null),[x,b]=W.useState(!0),[A,k]=W.useState(1),[S,E]=W.useState(null),[T,C]=W.useState(!1),[L,G]=W.useState(null),[N,z]=W.useState([]),[B,H]=W.useState(!1),[M,R]=W.useState(""),[Z,P]=W.useState(!1),[V,j]=W.useState(!1),[K,X]=W.useState(null),[w,ue]=W.useState(null),[I,v]=W.useState([]),[O,F]=W.useState({}),[J,Q]=W.useState(!1),[ne,ie]=W.useState(null),be=()=>{const ee=Ue.getToken(),xe=Ue.getUser(),ke=Ue.isAuthenticated(),Ce=!!(ee&&xe&&ke);return b(Ce),console.log("MLMTree - Session validity check:",{sessionToken:!!ee,sessionUser:!!xe,sessionIsAuth:ke,isValid:Ce}),Ce},Se=async ee=>{try{H(!0),G(null),console.log("Loading specific user tree for:",ee);const xe=await hn.getReferralTree(ee);console.log("Specific user tree response:",xe.data),console.log("Response structure:",{hasReferralTree:!!xe.data.referralTree,hasUser:!!xe.data.user,referralTreeUser:xe.data.referralTree?.user,directUser:xe.data.user}),E(xe.data);const ke=xe.data.referralTree?.user||xe.data.user;if(console.log("Setting selectedMember to:",ke),g(ke),(xe.data.referralTree?.user||xe.data.user)&&(!(window.location.pathname===`/user-tree/${ee}`)||N.length===0)){const He=[...N,{member:xe.data.referralTree?.user||xe.data.user}];z(He),sessionStorage.setItem("treeHistory",JSON.stringify(He))}}catch(xe){console.error("Error loading specific user tree:",xe),G(xe.response?.data?.message||"Failed to load user tree")}finally{H(!1)}},Ae=async()=>{try{const ee=await hn.getReferralLink();return R(ee.data.referralLink),ee.data.referralLink}catch(ee){return console.error("Error fetching referral link:",ee),P(!1),alert("Failed to fetch referral link. Please try again."),null}},Ne=async()=>{try{const ee=M||await Ae();ee&&(await navigator.clipboard.writeText(ee),P(!0),setTimeout(()=>P(!1),2e3))}catch(ee){console.error("Error copying referral link:",ee),P(!1),alert("Failed to copy referral link. Please try again.")}},Oe=async ee=>{try{return(await hn.getUserById(ee)).data.user}catch(xe){return console.error(`Error fetching details for user ${ee}:`,xe),null}},Le=async ee=>{Q(!0),ie(null);try{const xe=ee.map(async He=>{if(O[He.id])return{id:He.id,details:O[He.id]};const an=await Oe(He.id);return{id:He.id,details:an}}),Ce=(await Promise.all(xe)).reduce((He,{id:an,details:ht})=>(ht&&(He[an]=ht),He),{...O});F(Ce)}catch(xe){console.error("Error fetching level members details:",xe),ie("Failed to load member details")}finally{Q(!1)}},Re=async ee=>{try{X(ee),j(!0);const xe=await hn.getUserById(ee.id);ue(xe.data.user);const ke=await hn.getReferralTree(ee.id),Ce=ke.data.referralTree?.members||ke.data.referralTree?.levels?.members||ke.data.members||{},He=Object.keys(Ce).filter(ht=>ht.startsWith("level")).reduce((ht,yn)=>[...ht,...Ce[yn]],[]),an=await Promise.all(He.map(async ht=>{try{return(await hn.getUserById(ht.id)).data.user}catch(yn){return console.error(`Error fetching details for user ${ht.id}:`,yn),{...ht,selfieImage:null}}}));v(an)}catch(xe){console.error("Error fetching member details:",xe),ue(null),v([]),alert("Failed to load member details. Please try again.")}},_=ee=>{console.log("=== handleNavigateToMemberTree DEBUG ==="),console.log("Full member object:",ee),console.log("Member ID:",ee.id),console.log("Member _id:",ee._id),console.log("Member userId:",ee.userId),console.log("All member keys:",Object.keys(ee)),console.log("Navigating to:",`/user-tree/${ee.id}`),console.log("=== END DEBUG ===");const xe=[...N,{member:ee}];z(xe),sessionStorage.setItem("treeHistory",JSON.stringify(xe)),n(`/user-tree/${ee.id}`)},de=ee=>{const xe=N[ee];if(xe){const ke=N.slice(0,ee+1);z(ke),sessionStorage.setItem("treeHistory",JSON.stringify(ke)),n(`/user-tree/${xe.member.id}`)}},ce=()=>{z([]),sessionStorage.removeItem("treeHistory"),n("/tree")};W.useEffect(()=>{console.log("=== TreeView useEffect triggered ==="),console.log("MLMTree component mounted"),console.log("Current token:",f),console.log("Current user:",d),console.log("Is authenticated:",h),console.log("URL userId:",a),console.log("URL pathname:",window.location.pathname),console.log("useParams userId:",a);const ee=be();console.log("Session valid:",ee),ee?a?(console.log("=== LOADING SPECIFIC USER TREE ==="),console.log("Target userId:",a),console.log("Loading specific user tree from URL"),E(null),g(null),Se(a)):(console.log("=== LOADING MAIN TREE ==="),console.log("Dispatching fetchReferralTree with valid session"),E(null),g(null),e(Ls()),Ae()):console.log("No valid session found, skipping API call"),console.log("=== End of useEffect ===")},[e,f,d,h,a]),W.useEffect(()=>{const ee=xe=>{console.log("MLMTree - Session cleared event received:",xe.detail),b(!1),e(UT())};return window.addEventListener("sessionCleared",ee),()=>window.removeEventListener("sessionCleared",ee)},[e]),W.useEffect(()=>{const ee=sessionStorage.getItem("treeHistory");if(ee)try{z(JSON.parse(ee))}catch(xe){console.error("Error parsing tree history:",xe),sessionStorage.removeItem("treeHistory")}},[]),W.useEffect(()=>{const xe=!!a?S:s,Ce=(xe?.referralTree?.members||xe?.referralTree?.levels?.members||xe?.members||{})[`level${A}`]||[];Ce.length>0?Le(Ce):F({})},[A,S,s]);const q=ee=>ee?new Date(ee).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}):"N/A";if(!x||!h||!d)return u.jsx("div",{className:"min-h-screen mt-18",style:{backgroundColor:"#083A06"},children:u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"Authentication Required"}),u.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:x?"Please log in to view your referral tree.":"Your session has expired. Please log in again."}),u.jsx("button",{onClick:()=>n("/login"),className:"px-8 py-3 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Go to Login"})]})})});if(o||B||J)return u.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 mx-auto mb-4",style:{borderColor:"#FFD700"}}),u.jsx("p",{className:"text-xl",style:{color:"#FFD700"},children:a?"Loading user tree...":J?"Loading member details...":"Loading your referral tree..."})]})})});if(c||L||ne)return u.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"Error Loading Referral Tree"}),u.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:L||c||ne}),u.jsxs("div",{className:"flex gap-4 justify-center",children:[u.jsx("button",{onClick:()=>{a?Se(a):e(Ls())},className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Try Again"}),u.jsx("button",{onClick:ce,className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#013220",color:"#FFD700",border:"1px solid #FFD700"},children:"Back to Main Tree"})]})]})})});const Y=!!a,te=Y?S:s,pe=te?.referralTree?.members||te?.referralTree?.levels?.members||te?.members||{},ye=te?.referralTree?.counts||te?.referralTree?.levels?.counts||te?.counts||{},oe=Object.keys(pe).filter(ee=>ee.startsWith("level")).map(ee=>parseInt(ee.replace("level",""),10)).sort((ee,xe)=>ee-xe),je=pe[`level${A}`]||[],Te=Y?S?.referralTree?.user||m:s?.referralTree?.user||s?.user||d;return console.log("Display logic:",{isViewingSpecificUser:Y,userId:a,selectedMember:m,displayUser:Te,memberTreeDataUser:S?.referralTree?.user,memberTreeData:!!S}),!te||!te.referralTree&&!te.members?u.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"No Referral Tree Data"}),u.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:a?"This user's referral tree data is not available.":"Your referral tree data is not available."}),u.jsx("button",{onClick:()=>{a?Se(a):e(Ls())},className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Refresh"})]})})}):u.jsx("div",{className:"min-h-screen mt-20 mb-10",style:{backgroundColor:"#083A06"},children:u.jsxs("div",{className:"container mx-auto px-2 sm:px-4 py-4 sm:py-8",children:[!a&&u.jsx("div",{className:"mb-4 sm:mb-6",children:u.jsx("button",{onClick:()=>n(-1),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"← Back"})}),a&&u.jsxs("div",{className:"mb-4 sm:mb-6 flex flex-col sm:flex-row gap-2",children:[u.jsx("button",{onClick:()=>{if(N.length>0){const ee=N[N.length-1],xe=N.slice(0,-1);z(xe),sessionStorage.setItem("treeHistory",JSON.stringify(xe)),n(`/user-tree/${ee.member.id}`)}else ce()},className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Back"}),u.jsx("button",{onClick:ce,className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Back to Main Tree"}),N.length>0&&u.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[u.jsx("span",{style:{color:"#FFD700"},children:"History:"}),N.map((ee,xe)=>u.jsxs("button",{onClick:()=>de(xe),className:"text-yellow-400 hover:text-yellow-300 text-sm",children:[ee.member.name||ee.member.username," ",">"]},xe))]})]}),u.jsx("div",{className:"bg-white bg-opacity-10 rounded-lg p-4 sm:p-6 mb-6 sm:mb-8 backdrop-blur-sm",style:{border:"1px solid #FFD700"},children:u.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4 sm:gap-6",children:[Te?.selfieImage?u.jsx("img",{src:`${ks}${Te.selfieImage}`,alt:"Selfie",className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full object-cover",style:{border:"2px solid #FFD700"}}):u.jsx("div",{className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"2px solid #FFD700"},children:u.jsx("span",{className:"text-2xl sm:text-3xl",style:{color:"#FFD700"},children:Te?.name?.charAt(0)||Te?.firstName?.charAt(0)||Te?.username?.charAt(0)||"U"})}),u.jsxs("div",{className:"flex-1 w-full",children:[u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2 sm:gap-4",children:[u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Name:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:Te?.name||(Te?.firstName&&Te?.lastName?`${Te.firstName} ${Te.lastName}`:"N/A")})]}),u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Username:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:Te?.username||"N/A"})]}),u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Team Members:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:ye?.totalReferrals||0})]}),u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["KYC Status:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:Te?.kycStatus||"N/A"})]}),u.jsxs("div",{children:[u.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Country:"," "]}),u.jsx("span",{style:{color:"#FFD700"},children:Te?.country||"N/A"})]})]}),u.jsx("div",{className:"mt-4",children:u.jsx("button",{onClick:Ne,className:`px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base ${Z?"bg-green-500":"bg-yellow-400"}`,style:{color:"#013220"},children:Z?"Link Copied!":"Share Referral Link"})})]})]})}),u.jsx("div",{className:"flex flex-nowrap gap-1 sm:gap-2 md:gap-4 mb-6 sm:mb-8 justify-center overflow-x-auto",children:oe.map(ee=>u.jsxs("button",{onClick:()=>k(ee),className:`px-2 sm:px-4 md:px-8 py-2 sm:py-3 rounded-lg font-semibold transition-colors text-xs sm:text-sm md:text-base whitespace-nowrap flex-shrink-0 ${A===ee?"text-green-900":"text-yellow-400"}`,style:{backgroundColor:A===ee?"#FFD700":"transparent",border:A===ee?"none":"1px solid #FFD700"},children:["Level ",ee," (",ye?.[`level${ee}`]||0,")"]},ee))}),u.jsxs("div",{className:"bg-white bg-opacity-10 rounded-lg overflow-hidden backdrop-blur-sm",style:{border:"1px solid #FFD700"},children:[u.jsx("div",{className:"block sm:hidden",children:je.length>0?u.jsx("div",{className:"p-4 space-y-3",children:je.map((ee,xe)=>u.jsxs("div",{className:"bg-white bg-opacity-5 rounded-lg p-3 border border-yellow-400 border-opacity-30",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[O[ee.id]?.selfieImage?u.jsx("img",{src:`${ks}${O[ee.id].selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):u.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:u.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})}),u.jsx("span",{style:{color:"#FFD700"},children:ee.name||ee.username||"N/A"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"ID:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:String(xe+1).padStart(3,"0")})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Rank:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:ee.crrRank?.current||"None"})]}),u.jsxs("div",{className:"col-span-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Name:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:ee.username||"N/A"})]}),u.jsxs("div",{className:"col-span-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Username:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:ee.name||(ee.firstName&&ee.lastName?`${ee.firstName} ${ee.lastName}`:ee.firstName||ee.lastName||"N/A")})]}),u.jsxs("div",{className:"col-span-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Created At:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:q(ee.joinedDate)})]}),u.jsxs("div",{className:"col-span-2 flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"TGP:"})," ",u.jsxs("div",{className:"flex items-center justify-center",children:[u.jsx("div",{className:"mb-1 text-[#FFD700]",children:ee.qualificationPoints?.tgp?.monthly||0}),u.jsx("img",{className:"w-[7%] h-[7%]",src:"/images.png",alt:""})]})]}),u.jsxs("div",{className:"col-span-2 flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"PGP:"})," ",u.jsxs("div",{className:"flex items-center justify-center",children:[u.jsx("div",{className:"mb-1 text-[#FFD700]",children:ee.qualificationPoints?.pgp?.monthly||0}),u.jsx("img",{className:"w-[7%] h-[7%]",src:"/images.png",alt:""})]})]}),u.jsxs("div",{className:"col-span-2",children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Total Amount:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:"AED 0"})]}),u.jsxs("div",{className:"col-span-2 flex gap-2",children:[u.jsx("button",{onClick:()=>Re(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs",children:"View Detail"}),u.jsx("button",{onClick:()=>_(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs",children:"View Tree"})]})]})]},ee.id||xe))}):u.jsxs("div",{className:"p-4 text-center text-xs",style:{color:"#FFD700"},children:["No members found in Level ",A]})}),u.jsx("div",{className:"hidden sm:block overflow-x-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-transparent",children:u.jsxs("table",{className:"w-full min-w-[1200px]",children:[u.jsx("thead",{children:u.jsxs("tr",{style:{backgroundColor:"#013220",borderBottom:"1px solid #FFD700"},children:[u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:"Image"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:"ID"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:"Name"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:"Username"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-20",style:{color:"#FFD700"},children:"Rank"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"TGP"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"PGP"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"Created At"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"Total Amount"}),u.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-24 sm:w-32",style:{color:"#FFD700"},children:"Actions"})]})}),u.jsx("tbody",{children:je.length>0?je.map((ee,xe)=>u.jsxs("tr",{className:"hover:bg-opacity-20 hover:bg-yellow-400 transition-colors",style:{borderBottom:"1px solid #FFD700"},children:[u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:O[ee.id]?.selfieImage?u.jsx("img",{src:`${ks}${O[ee.id].selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):u.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:u.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})})}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:String(xe+1).padStart(3,"0")}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:ee.name||(ee.firstName&&ee.lastName?`${ee.firstName} ${ee.lastName}`:ee.firstName||ee.lastName||"N/A")}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:ee.username||"N/A"}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-20",style:{color:"#FFD700"},children:ee.crrRank?.current||"None"}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:u.jsxs("div",{className:"flex items-center justify-center",children:[u.jsx("div",{className:"mb-1",children:ee.qualificationPoints?.tgp?.monthly||0}),u.jsx("img",{className:"w-[25%] h-[25%]",src:"/images.png",alt:""})]})}),u.jsxs("td",{className:"px-1 mt-3 flex items-center justify-center sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:[u.jsx("div",{className:"mb-1",children:ee.qualificationPoints?.pgp?.monthly||0}),u.jsx("img",{width:"50%",src:"/images.png",alt:""})]}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:q(ee.joinedDate)}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"AED 0"}),u.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 w-24 sm:w-32",children:u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>Re(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs sm:text-sm md:text-base",children:"View Detail"}),u.jsx("button",{onClick:()=>_(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs sm:text-sm md:text-base",children:"View Tree"})]})})]},ee.id||xe)):u.jsx("tr",{children:u.jsxs("td",{colSpan:"10",className:"px-2 sm:px-3 md:px-6 py-4 sm:py-6 md:py-8 text-center text-xs sm:text-sm md:text-base",style:{color:"#FFD700"},children:["No members found in Level ",A]})})})]})})]}),V&&K&&u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:u.jsxs("div",{className:"bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur-sm max-w-md w-full",style:{border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4 text-center",style:{color:"#FFD700"},children:"Member Details"}),u.jsxs("div",{className:"grid grid-cols-1 gap-3 text-sm",children:[w?.selfieImage?u.jsx("div",{className:"flex justify-center mb-4",children:u.jsx("img",{src:`${ks}${w.selfieImage}`,alt:"Selfie",className:"w-32 h-32 rounded-full object-cover",style:{border:"2px solid #FFD700"}})}):u.jsx("div",{className:"flex justify-center mb-4 w-32 h-32 rounded-full items-center",style:{backgroundColor:"#013220",border:"2px solid #FFD700"},children:u.jsx("span",{className:"text-2xl",style:{color:"#FFD700"},children:K?.name?.charAt(0)||K?.username?.charAt(0)||"U"})}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Level:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:K.level||0})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Name:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:K.name||"N/A"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Username:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:K.username||"N/A"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Email:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:K.email||"N/A"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"KYC Status:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:K.kycStatus||"N/A"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Created At:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:q(K.joinedDate)})]}),u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Total Amount:"})," ",u.jsx("span",{style:{color:"#FFD700"},children:"AED 0"})]}),I.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Referral Levels:"}),u.jsx("div",{className:"mt-2 max-h-40 overflow-y-auto",children:I.map((ee,xe)=>u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[ee.selfieImage?u.jsx("img",{src:`${ks}${ee.selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):u.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:u.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"#FFD700"},children:ee.name||ee.username||"Unknown"}),u.jsxs("span",{className:"text-xs ml-2",style:{color:"#FFD700"},children:["(Level ",ee.level||"N/A",")"]})]})]},ee.id||xe))})]})]}),u.jsxs("div",{className:"mt-6 flex justify-center gap-4",children:[u.jsx("button",{onClick:()=>_(K),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"View Tree"}),u.jsx("button",{onClick:()=>j(!1),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Close"})]})]})})]})})},p5=()=>{const e=Xt(),n=Gn(),a=We(kr),s=We(Ro);if(W.useEffect(()=>{n(Ms())},[]),W.useEffect(()=>{!a&&!s&&n(Ms())},[n,a,s]),s||!a)return u.jsx("div",{className:"text-center mt-24",style:{color:"#FFD700",backgroundColor:"#083A06",minHeight:"100vh"},children:"Loading..."});const o=a?.firstName&&a?.lastName?`${a.firstName} ${a.lastName}`:a?.username||"N/A",c=a?.createdAt?new Date(a.createdAt).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"Not available",d=a?.selfieImage?`${ks}/${a.selfieImage}`:null;return u.jsx("div",{className:"min-h-screen flex flex-col mb-10 items-center justify-center p-6",style:{backgroundColor:"#083A06",color:"#FFD700"},children:u.jsxs("div",{className:"relative max-w-md w-full rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.8)",border:"1px solid #FFD700"},children:[u.jsx("div",{className:"flex justify-center",children:d?u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:d,alt:"User",className:"w-28 h-28 rounded-full border-2 shadow-md",style:{borderColor:"#FFD700"},onError:f=>f.target.style.display="none"}),u.jsx("div",{className:"absolute inset-0 rounded-full ring-2 ring-yellow-400 blur-sm"})]}):u.jsx("div",{className:"w-28 h-28 rounded-full flex items-center justify-center text-lg font-semibold",style:{backgroundColor:"#013220",color:"#FFD700"},children:"No Img"})}),u.jsx("h1",{className:"text-center text-2xl font-bold mt-4",children:o}),u.jsxs("p",{className:"text-center text-sm mt-1",style:{color:"#FFD700"},children:["Joining Date: ",c]}),u.jsx("div",{className:"mt-4 flex justify-center",children:u.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-lg",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:[u.jsx("span",{className:"text-lg",children:"👑"}),u.jsx("span",{className:"font-semibold text-yellow-400",children:"Tycoon Starter"})]})}),u.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-4",children:[u.jsxs("div",{onClick:()=>e("/mlm"),className:"p-4 rounded-xl cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #013220, #083A06)",border:"1px solid #FFD700",color:"#FFD700"},children:[u.jsx("h2",{className:"font-bold text-lg",children:"My Wallet"}),u.jsx("p",{className:"text-sm mt-1",children:"Check Balance, Transactions, Withdrawals"})]}),u.jsxs("div",{onClick:()=>e("/tree"),className:"p-4 rounded-xl cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #FFD700, #b8860b)",color:"#013220"},children:[u.jsx("h2",{className:"font-bold text-lg",children:"My Team"}),u.jsx("p",{className:"text-sm mt-1",children:"View Directs, Team Stack Growth"})]})]})]})})};function g5(){const e=Gn(),n=Xt(),a=We(h1),s=We(m1),o=We(kr),c=We(XT),d=We(KT),[f,h]=W.useState(null);W.useEffect(()=>{a||e(oo()),e(gc())},[e,a]);const m=a?.ddr?.earnings?.total||0,g=a?.wallet?.currentBalance||0,x=a?.user?.joinedAt?new Date(a.user.joinedAt).toISOString().split("T")[0]:"",b=[{level:"L1",amount:a?.ddr?.earnings?.level1||0,history:[]},{level:"L2",amount:a?.ddr?.earnings?.level2||0,history:[]},{level:"L3",amount:a?.ddr?.earnings?.level3||0,history:[]},{level:"L4",amount:a?.ddr?.earnings?.level4||0,history:[]}],A=c?.topEarners&&c.topEarners.length>0?c.topEarners.map(E=>({rank:E.rank,name:E.name,username:E.username?`@${E.username}`:"",amount:E.earnings,isCurrentUser:E.isCurrentUser||!1,levelBreakdown:E.levelBreakdown})):[{rank:1,name:"Ali Khan",username:"@ali",amount:15200},{rank:2,name:"Maria Sohail",username:"@maria",amount:14750},{rank:3,name:"Zain Malik",username:"@zain",amount:13900},{rank:4,name:"Fatima Noor",username:"@fatima",amount:13200},{rank:5,name:"John Smith",username:"@john",amount:12800},{rank:6,name:o?.firstName?`${o.firstName} ${o.lastName||""}`:"You",username:o?.username?`@${o.username}`:"@you",amount:m,isCurrentUser:!0}],k=c?.title||"Leaderboard",S=c?.tip||'💡 "Active L1–L4 growth boosts all levels and increases your DDR income!"';return s?u.jsx("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-10 flex flex-col items-center justify-center p-6 mt-20",style:{backgroundColor:"#083A06",color:"#FFD700"},children:u.jsx("div",{className:"text-2xl font-bold",children:"Loading DDR data..."})}):u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-10 flex flex-col items-center p-6 mt-20 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-4xl mb-4",children:u.jsx("button",{onClick:()=>n(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsxs("h1",{className:"text-2xl font-bold my-6",children:[" ","🌙 DREAM DIVIDEND REWARDS (DDR)"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-6 rounded-2xl p-6 w-full max-w-4xl mb-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Total Earned (Lifetime)"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",m.toFixed(2)]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Available Balance"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",g.toFixed(2)]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Joining Date"}),u.jsx("p",{className:"text-3xl font-bold text-yellow-400",children:x})]})]}),u.jsxs("div",{className:"w-full max-w-4xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Level Earnings"}),b.map((E,T)=>u.jsxs("div",{className:"mb-3 p-4 rounded-lg shadow-lg cursor-pointer",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},onClick:()=>h(f===T?null:T),children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsxs("span",{children:[E.level," Earned"]}),u.jsxs("span",{className:"font-bold",children:["AED ",E.amount]})]}),f===T&&u.jsx("div",{className:"mt-3 max-h-40 overflow-y-auto text-sm",children:E.history.length>0?E.history.map((C,L)=>u.jsxs("div",{className:"flex justify-between py-1 border-b border-yellow-700",children:[u.jsx("span",{children:C.date}),u.jsx("span",{children:C.source}),u.jsxs("span",{className:"font-bold",children:["AED ",C.amount]})]},L)):u.jsx("p",{className:"text-gray-300",children:"No history available."})})]},T))]}),u.jsxs("div",{className:"w-full max-w-4xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:k}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d?u.jsx("div",{className:"flex justify-center items-center p-6",children:u.jsx("p",{children:"Loading leaderboard data..."})}):A.length>0?A.map(E=>u.jsxs("div",{className:`flex justify-between px-4 py-2 ${E.isCurrentUser?"bg-yellow-900 font-bold sticky top-0":""}`,children:[u.jsx("span",{children:E.rank}),u.jsxs("span",{children:[E.name," ",u.jsx("small",{className:"text-gray-300",children:E.username})]}),u.jsxs("span",{children:["AED ",E.amount.toFixed(2)]})]},E.rank)):u.jsx("div",{className:"flex justify-center items-center p-6",children:u.jsx("p",{children:"No leaderboard data available"})})})]}),u.jsx("div",{className:"rounded-xl p-4 text-center max-w-2xl shadow-lg mb-4",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsx("p",{className:"italic",children:S})})]})}const iv=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return u.jsxs("div",{className:"mb-4",children:[u.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[u.jsx("span",{children:e}),u.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),u.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:u.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function y5(){const e=Gn(),n=Xt(),a=We(kr),s=We(QT),o=We(JT),c=We(eE),d=We(tE),[f,h]=W.useState(!1),[m,g]=W.useState(null),[x,b]=W.useState(!1),A=async()=>{if(a?._id){b(!0);try{const V=Ue.getToken(),j=await fetch(`${On}mlm/user-dashboard/${a._id}`,{method:"GET",headers:{Authorization:`Bearer ${V}`,"Content-Type":"application/json"}});if(j.ok){const K=await j.json();K.success&&g(K.data)}else console.error("Failed to fetch user dashboard:",j.statusText)}catch(V){console.error("Error fetching user dashboard:",V),it("Failed to load user dashboard")}finally{b(!1)}}};W.useEffect(()=>{e(yc()),e(xc()),A()},[e,a?._id]);const k=[{name:"Challenger",bonus:1e3,icon:"🥇",achieved:!1},{name:"Warrior",bonus:5e3,icon:"🥈",achieved:!1},{name:"Tycoon",bonus:2e4,icon:"🥉",achieved:!1},{name:"Champion",bonus:5e4,icon:"🏅",achieved:!1},{name:"Boss",bonus:2e5,icon:"🎖️",achieved:!1}],S="Challenger",E={value:0,max:2500},T={value:0,max:5e4},C=30,L=m?.crr?.earnings?.totalEarnings||0,G=m?.wallet?.currentBalance||0,N=m?.crr?.earnings?.totalEarnings||0,z=s?.rankTracking?.map(V=>({name:V.rank,bonus:V.reward,icon:V.icon,achieved:V.isAchieved}))||k,B=s?.rankTracking?.find(V=>!V.isAchieved&&!V.isLocked),H=B?.rank||S,M={value:m?.crr?.qualificationPoints?.pgp?.monthly||B?.currentPoints?.pgp||E.value,max:B?.requirements?.pgp||E.max},R={value:m?.crr?.qualificationPoints?.tgp?.monthly||B?.currentPoints?.tgp||T.value,max:B?.requirements?.tgp||T.max},Z=C,P=c?.topEarners?.map(V=>({rank:V.position,name:V.name,username:`@${V.username||""}`,userRank:V.rank,rankIcon:V.rankIcon,earnings:V.earnings,isCurrentUser:a&&a.name===V.name}))||[{rank:1,name:"Ali Khan",username:"@ali",userRank:3,earnings:2e3},{rank:2,name:"Maria Sohail",username:"@maria",userRank:4,earnings:3500},{rank:3,name:"Zain Malik",username:"@zain",userRank:2,earnings:1200},{rank:4,name:"Fatima Noor",username:"@fatima",userRank:3,earnings:2e3},{rank:5,name:"John Smith",username:"@john",userRank:5,earnings:5e3},{rank:6,name:"You",username:"@you",userRank:2,earnings:1800}];return u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 transition-colors duration-300 mb-10",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-5xl mb-4",children:u.jsx("button",{onClick:()=>n(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("h1",{className:"text-2xl font-bold my-6",children:"🏆 CRR – Championship Rank Rewards"}),x?u.jsxs("div",{className:"text-center py-4 mb-6",children:[u.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-yellow-400 mx-auto"}),u.jsx("p",{className:"mt-2",children:"Loading user data..."})]}):m?.user?u.jsx("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 text-center",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-300",children:"Name"}),u.jsxs("p",{className:"text-lg font-semibold text-yellow-400",children:[m.user.firstName," ",m.user.lastName]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-300",children:"Username"}),u.jsxs("p",{className:"text-lg font-semibold text-yellow-400",children:["@",m.user.username]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-300",children:"Current Rank"}),u.jsx("p",{className:"text-lg font-semibold text-yellow-400",children:m.crr?.earnings?.currentRank||"None"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-300",children:"Joined Date"}),u.jsx("p",{className:"text-lg font-semibold text-yellow-400",children:new Date(m.user.joinedAt).toLocaleDateString()})]})]})}):null,u.jsxs("div",{className:"grid grid-cols-3 gap-6 rounded-2xl p-6 w-full max-w-5xl mb-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Total Earned"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",L.toLocaleString()]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"Available Balance"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",G.toLocaleString()]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm",children:"💰 CRR Wallet"}),u.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",N.toLocaleString()]})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Ranks Progress"}),o?u.jsx("div",{className:"text-center py-4",children:"Loading rank data..."}):u.jsx("div",{className:"flex justify-between items-center",children:z.map((V,j)=>u.jsxs("div",{className:"flex flex-col items-center text-center",children:[u.jsx("div",{className:`w-12 h-12 flex items-center justify-center rounded-full mb-2 shadow-lg ${V.achieved?"bg-yellow-400 text-black font-bold":"bg-yellow-900 text-yellow-300"}`,children:V.achieved?"✓":"⭕"}),u.jsxs("span",{className:"text-sm",children:[V.icon," ",V.name]}),u.jsxs("span",{className:"text-xs",children:["AED ",V.bonus.toLocaleString()]}),u.jsx("span",{className:"text-xs italic",children:V.achieved?"Achieved":"Locked"})]},j))})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-10 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsxs("h2",{className:"text-xl font-bold mb-4",children:["Your Journey To Achieve Next Rank: (",H,")"]}),o?u.jsx("div",{className:"text-center py-4",children:"Loading progress data..."}):u.jsxs(u.Fragment,{children:[u.jsx(iv,{label:"PGP Progress",value:M.value,max:M.max}),u.jsx(iv,{label:"TGP Progress",value:R.value,max:R.max}),u.jsxs("p",{className:"mt-2",children:["⏳ ",Z," days left"]})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:c?.title||"Leaderboard – Rank Achievers"}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d?u.jsx("div",{className:"text-center py-4",children:"Loading leaderboard data..."}):P.length>0?(f?P:P.slice(0,5)).map(V=>u.jsxs("div",{className:`flex justify-between px-4 py-2 ${V.isCurrentUser?"bg-yellow-900 font-bold sticky top-0":""}`,children:[u.jsx("span",{children:V.rank}),u.jsxs("span",{children:[V.name," ",u.jsx("small",{className:"text-gray-300",children:V.username})]}),u.jsxs("span",{children:[V.rankIcon," ",V.userRank]}),u.jsxs("span",{children:["AED ",V.earnings.toLocaleString()]})]},V.rank)):u.jsx("div",{className:"text-center py-4",children:"No leaderboard data available"})}),P.length>5&&u.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>h(!f),children:f?"Show Less":"View All"})]}),u.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg mb-5",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsxs("p",{className:"italic ",children:["💡 ",c?.tip||"Tip: Progress is updated hourly or in real-time. Stay consistent!"]})})]})}const aw=W.createContext({});function x5(e){const n=W.useRef(null);return n.current===null&&(n.current=e()),n.current}const Am=typeof window<"u",v5=Am?W.useLayoutEffect:W.useEffect,Tm=W.createContext(null);function Em(e,n){e.indexOf(n)===-1&&e.push(n)}function Nm(e,n){const a=e.indexOf(n);a>-1&&e.splice(a,1)}const Er=(e,n,a)=>a>n?n:a<e?e:a;let km=()=>{};const Nr={},sw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function iw(e){return typeof e=="object"&&e!==null}const ow=e=>/^0[^.\s]+$/u.test(e);function _m(e){let n;return()=>(n===void 0&&(n=e()),n)}const Rn=e=>e,b5=(e,n)=>a=>n(e(a)),Lo=(...e)=>e.reduce(b5),bo=(e,n,a)=>{const s=n-e;return s===0?1:(a-e)/s};class Om{constructor(){this.subscriptions=[]}add(n){return Em(this.subscriptions,n),()=>Nm(this.subscriptions,n)}notify(n,a,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](n,a,s);else for(let c=0;c<o;c++){const d=this.subscriptions[c];d&&d(n,a,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const tr=e=>e*1e3,nr=e=>e/1e3;function lw(e,n){return n?e*(1e3/n):0}const cw=(e,n,a)=>(((1-3*a+3*n)*e+(3*a-6*n))*e+3*n)*e,w5=1e-7,S5=12;function j5(e,n,a,s,o){let c,d,f=0;do d=n+(a-n)/2,c=cw(d,s,o)-e,c>0?a=d:n=d;while(Math.abs(c)>w5&&++f<S5);return d}function Po(e,n,a,s){if(e===n&&a===s)return Rn;const o=c=>j5(c,0,1,e,a);return c=>c===0||c===1?c:cw(o(c),n,s)}const uw=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,dw=e=>n=>1-e(1-n),fw=Po(.33,1.53,.69,.99),Rm=dw(fw),hw=uw(Rm),mw=e=>(e*=2)<1?.5*Rm(e):.5*(2-Math.pow(2,-10*(e-1))),Cm=e=>1-Math.sin(Math.acos(e)),pw=dw(Cm),gw=uw(Cm),A5=Po(.42,0,1,1),T5=Po(0,0,.58,1),yw=Po(.42,0,.58,1),E5=e=>Array.isArray(e)&&typeof e[0]!="number",xw=e=>Array.isArray(e)&&typeof e[0]=="number",N5={linear:Rn,easeIn:A5,easeInOut:yw,easeOut:T5,circIn:Cm,circInOut:gw,circOut:pw,backIn:Rm,backInOut:hw,backOut:fw,anticipate:mw},k5=e=>typeof e=="string",ov=e=>{if(xw(e)){km(e.length===4);const[n,a,s,o]=e;return Po(n,a,s,o)}else if(k5(e))return N5[e];return e},ac=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _5(e,n){let a=new Set,s=new Set,o=!1,c=!1;const d=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(g){d.has(g)&&(m.schedule(g),e()),g(f)}const m={schedule:(g,x=!1,b=!1)=>{const k=b&&o?a:s;return x&&d.add(g),k.has(g)||k.add(g),g},cancel:g=>{s.delete(g),d.delete(g)},process:g=>{if(f=g,o){c=!0;return}o=!0,[a,s]=[s,a],a.forEach(h),a.clear(),o=!1,c&&(c=!1,m.process(g))}};return m}const O5=40;function vw(e,n){let a=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,d=ac.reduce((L,G)=>(L[G]=_5(c),L),{}),{setup:f,read:h,resolveKeyframes:m,preUpdate:g,update:x,preRender:b,render:A,postRender:k}=d,S=()=>{const L=Nr.useManualTiming?o.timestamp:performance.now();a=!1,Nr.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(L-o.timestamp,O5),1)),o.timestamp=L,o.isProcessing=!0,f.process(o),h.process(o),m.process(o),g.process(o),x.process(o),b.process(o),A.process(o),k.process(o),o.isProcessing=!1,a&&n&&(s=!1,e(S))},E=()=>{a=!0,s=!0,o.isProcessing||e(S)};return{schedule:ac.reduce((L,G)=>{const N=d[G];return L[G]=(z,B=!1,H=!1)=>(a||E(),N.schedule(z,B,H)),L},{}),cancel:L=>{for(let G=0;G<ac.length;G++)d[ac[G]].cancel(L)},state:o,steps:d}}const{schedule:dt,cancel:ra,state:Ft,steps:ih}=vw(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rn,!0);let Sc;function R5(){Sc=void 0}const tn={now:()=>(Sc===void 0&&tn.set(Ft.isProcessing||Nr.useManualTiming?Ft.timestamp:performance.now()),Sc),set:e=>{Sc=e,queueMicrotask(R5)}},bw=e=>n=>typeof n=="string"&&n.startsWith(e),Dm=bw("--"),C5=bw("var(--"),Mm=e=>C5(e)?D5.test(e.split("/*")[0].trim()):!1,D5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ks={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wo={...Ks,transform:e=>Er(0,1,e)},sc={...Ks,default:1},lo=e=>Math.round(e*1e5)/1e5,Lm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function M5(e){return e==null}const L5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pm=(e,n)=>a=>!!(typeof a=="string"&&L5.test(a)&&a.startsWith(e)||n&&!M5(a)&&Object.prototype.hasOwnProperty.call(a,n)),ww=(e,n,a)=>s=>{if(typeof s!="string")return s;const[o,c,d,f]=s.match(Lm);return{[e]:parseFloat(o),[n]:parseFloat(c),[a]:parseFloat(d),alpha:f!==void 0?parseFloat(f):1}},P5=e=>Er(0,255,e),oh={...Ks,transform:e=>Math.round(P5(e))},Ra={test:Pm("rgb","red"),parse:ww("red","green","blue"),transform:({red:e,green:n,blue:a,alpha:s=1})=>"rgba("+oh.transform(e)+", "+oh.transform(n)+", "+oh.transform(a)+", "+lo(wo.transform(s))+")"};function z5(e){let n="",a="",s="",o="";return e.length>5?(n=e.substring(1,3),a=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(n=e.substring(1,2),a=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),n+=n,a+=a,s+=s,o+=o),{red:parseInt(n,16),green:parseInt(a,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const Hh={test:Pm("#"),parse:z5,transform:Ra.transform},zo=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Jr=zo("deg"),rr=zo("%"),Fe=zo("px"),F5=zo("vh"),U5=zo("vw"),lv={...rr,parse:e=>rr.parse(e)/100,transform:e=>rr.transform(e*100)},_s={test:Pm("hsl","hue"),parse:ww("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:a,alpha:s=1})=>"hsla("+Math.round(e)+", "+rr.transform(lo(n))+", "+rr.transform(lo(a))+", "+lo(wo.transform(s))+")"},Et={test:e=>Ra.test(e)||Hh.test(e)||_s.test(e),parse:e=>Ra.test(e)?Ra.parse(e):_s.test(e)?_s.parse(e):Hh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ra.transform(e):_s.transform(e),getAnimatableNone:e=>{const n=Et.parse(e);return n.alpha=0,Et.transform(n)}},B5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function V5(e){return isNaN(e)&&typeof e=="string"&&(e.match(Lm)?.length||0)+(e.match(B5)?.length||0)>0}const Sw="number",jw="color",H5="var",I5="var(",cv="${}",G5=/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 So(e){const n=e.toString(),a=[],s={color:[],number:[],var:[]},o=[];let c=0;const f=n.replace(G5,h=>(Et.test(h)?(s.color.push(c),o.push(jw),a.push(Et.parse(h))):h.startsWith(I5)?(s.var.push(c),o.push(H5),a.push(h)):(s.number.push(c),o.push(Sw),a.push(parseFloat(h))),++c,cv)).split(cv);return{values:a,split:f,indexes:s,types:o}}function Aw(e){return So(e).values}function Tw(e){const{split:n,types:a}=So(e),s=n.length;return o=>{let c="";for(let d=0;d<s;d++)if(c+=n[d],o[d]!==void 0){const f=a[d];f===Sw?c+=lo(o[d]):f===jw?c+=Et.transform(o[d]):c+=o[d]}return c}}const q5=e=>typeof e=="number"?0:Et.test(e)?Et.getAnimatableNone(e):e;function Y5(e){const n=Aw(e);return Tw(e)(n.map(q5))}const aa={test:V5,parse:Aw,createTransformer:Tw,getAnimatableNone:Y5};function lh(e,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(n-e)*6*a:a<1/2?n:a<2/3?e+(n-e)*(2/3-a)*6:e}function W5({hue:e,saturation:n,lightness:a,alpha:s}){e/=360,n/=100,a/=100;let o=0,c=0,d=0;if(!n)o=c=d=a;else{const f=a<.5?a*(1+n):a+n-a*n,h=2*a-f;o=lh(h,f,e+1/3),c=lh(h,f,e),d=lh(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(d*255),alpha:s}}function Uc(e,n){return a=>a>0?n:e}const pt=(e,n,a)=>e+(n-e)*a,ch=(e,n,a)=>{const s=e*e,o=a*(n*n-s)+s;return o<0?0:Math.sqrt(o)},X5=[Hh,Ra,_s],K5=e=>X5.find(n=>n.test(e));function uv(e){const n=K5(e);if(!n)return!1;let a=n.parse(e);return n===_s&&(a=W5(a)),a}const dv=(e,n)=>{const a=uv(e),s=uv(n);if(!a||!s)return Uc(e,n);const o={...a};return c=>(o.red=ch(a.red,s.red,c),o.green=ch(a.green,s.green,c),o.blue=ch(a.blue,s.blue,c),o.alpha=pt(a.alpha,s.alpha,c),Ra.transform(o))},Ih=new Set(["none","hidden"]);function Z5(e,n){return Ih.has(e)?a=>a<=0?e:n:a=>a>=1?n:e}function $5(e,n){return a=>pt(e,n,a)}function zm(e){return typeof e=="number"?$5:typeof e=="string"?Mm(e)?Uc:Et.test(e)?dv:eO:Array.isArray(e)?Ew:typeof e=="object"?Et.test(e)?dv:Q5:Uc}function Ew(e,n){const a=[...e],s=a.length,o=e.map((c,d)=>zm(c)(c,n[d]));return c=>{for(let d=0;d<s;d++)a[d]=o[d](c);return a}}function Q5(e,n){const a={...e,...n},s={};for(const o in a)e[o]!==void 0&&n[o]!==void 0&&(s[o]=zm(e[o])(e[o],n[o]));return o=>{for(const c in s)a[c]=s[c](o);return a}}function J5(e,n){const a=[],s={color:0,var:0,number:0};for(let o=0;o<n.values.length;o++){const c=n.types[o],d=e.indexes[c][s[c]],f=e.values[d]??0;a[o]=f,s[c]++}return a}const eO=(e,n)=>{const a=aa.createTransformer(n),s=So(e),o=So(n);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Ih.has(e)&&!o.values.length||Ih.has(n)&&!s.values.length?Z5(e,n):Lo(Ew(J5(s,o),o.values),a):Uc(e,n)};function Nw(e,n,a){return typeof e=="number"&&typeof n=="number"&&typeof a=="number"?pt(e,n,a):zm(e)(e,n)}const tO=e=>{const n=({timestamp:a})=>e(a);return{start:(a=!0)=>dt.update(n,a),stop:()=>ra(n),now:()=>Ft.isProcessing?Ft.timestamp:tn.now()}},kw=(e,n,a=10)=>{let s="";const o=Math.max(Math.round(n/a),2);for(let c=0;c<o;c++)s+=Math.round(e(c/(o-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Bc=2e4;function Fm(e){let n=0;const a=50;let s=e.next(n);for(;!s.done&&n<Bc;)n+=a,s=e.next(n);return n>=Bc?1/0:n}function nO(e,n=100,a){const s=a({...e,keyframes:[0,n]}),o=Math.min(Fm(s),Bc);return{type:"keyframes",ease:c=>s.next(o*c).value/n,duration:nr(o)}}const rO=5;function _w(e,n,a){const s=Math.max(n-rO,0);return lw(a-e(s),n-s)}const vt={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},uh=.001;function aO({duration:e=vt.duration,bounce:n=vt.bounce,velocity:a=vt.velocity,mass:s=vt.mass}){let o,c,d=1-n;d=Er(vt.minDamping,vt.maxDamping,d),e=Er(vt.minDuration,vt.maxDuration,nr(e)),d<1?(o=m=>{const g=m*d,x=g*e,b=g-a,A=Gh(m,d),k=Math.exp(-x);return uh-b/A*k},c=m=>{const x=m*d*e,b=x*a+a,A=Math.pow(d,2)*Math.pow(m,2)*e,k=Math.exp(-x),S=Gh(Math.pow(m,2),d);return(-o(m)+uh>0?-1:1)*((b-A)*k)/S}):(o=m=>{const g=Math.exp(-m*e),x=(m-a)*e+1;return-uh+g*x},c=m=>{const g=Math.exp(-m*e),x=(a-m)*(e*e);return g*x});const f=5/e,h=iO(o,c,f);if(e=tr(e),isNaN(h))return{stiffness:vt.stiffness,damping:vt.damping,duration:e};{const m=Math.pow(h,2)*s;return{stiffness:m,damping:d*2*Math.sqrt(s*m),duration:e}}}const sO=12;function iO(e,n,a){let s=a;for(let o=1;o<sO;o++)s=s-e(s)/n(s);return s}function Gh(e,n){return e*Math.sqrt(1-n*n)}const oO=["duration","bounce"],lO=["stiffness","damping","mass"];function fv(e,n){return n.some(a=>e[a]!==void 0)}function cO(e){let n={velocity:vt.velocity,stiffness:vt.stiffness,damping:vt.damping,mass:vt.mass,isResolvedFromDuration:!1,...e};if(!fv(e,lO)&&fv(e,oO))if(e.visualDuration){const a=e.visualDuration,s=2*Math.PI/(a*1.2),o=s*s,c=2*Er(.05,1,1-(e.bounce||0))*Math.sqrt(o);n={...n,mass:vt.mass,stiffness:o,damping:c}}else{const a=aO(e);n={...n,...a,mass:vt.mass},n.isResolvedFromDuration=!0}return n}function Vc(e=vt.visualDuration,n=vt.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:o}=a;const c=a.keyframes[0],d=a.keyframes[a.keyframes.length-1],f={done:!1,value:c},{stiffness:h,damping:m,mass:g,duration:x,velocity:b,isResolvedFromDuration:A}=cO({...a,velocity:-nr(a.velocity||0)}),k=b||0,S=m/(2*Math.sqrt(h*g)),E=d-c,T=nr(Math.sqrt(h/g)),C=Math.abs(E)<5;s||(s=C?vt.restSpeed.granular:vt.restSpeed.default),o||(o=C?vt.restDelta.granular:vt.restDelta.default);let L;if(S<1){const N=Gh(T,S);L=z=>{const B=Math.exp(-S*T*z);return d-B*((k+S*T*E)/N*Math.sin(N*z)+E*Math.cos(N*z))}}else if(S===1)L=N=>d-Math.exp(-T*N)*(E+(k+T*E)*N);else{const N=T*Math.sqrt(S*S-1);L=z=>{const B=Math.exp(-S*T*z),H=Math.min(N*z,300);return d-B*((k+S*T*E)*Math.sinh(H)+N*E*Math.cosh(H))/N}}const G={calculatedDuration:A&&x||null,next:N=>{const z=L(N);if(A)f.done=N>=x;else{let B=N===0?k:0;S<1&&(B=N===0?tr(k):_w(L,N,z));const H=Math.abs(B)<=s,M=Math.abs(d-z)<=o;f.done=H&&M}return f.value=f.done?d:z,f},toString:()=>{const N=Math.min(Fm(G),Bc),z=kw(B=>G.next(N*B).value,N,30);return N+"ms "+z},toTransition:()=>{}};return G}Vc.applyToOptions=e=>{const n=nO(e,100,Vc);return e.ease=n.ease,e.duration=tr(n.duration),e.type="keyframes",e};function qh({keyframes:e,velocity:n=0,power:a=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:d,min:f,max:h,restDelta:m=.5,restSpeed:g}){const x=e[0],b={done:!1,value:x},A=H=>f!==void 0&&H<f||h!==void 0&&H>h,k=H=>f===void 0?h:h===void 0||Math.abs(f-H)<Math.abs(h-H)?f:h;let S=a*n;const E=x+S,T=d===void 0?E:d(E);T!==E&&(S=T-x);const C=H=>-S*Math.exp(-H/s),L=H=>T+C(H),G=H=>{const M=C(H),R=L(H);b.done=Math.abs(M)<=m,b.value=b.done?T:R};let N,z;const B=H=>{A(b.value)&&(N=H,z=Vc({keyframes:[b.value,k(b.value)],velocity:_w(L,H,b.value),damping:o,stiffness:c,restDelta:m,restSpeed:g}))};return B(0),{calculatedDuration:null,next:H=>{let M=!1;return!z&&N===void 0&&(M=!0,G(H),B(H)),N!==void 0&&H>=N?z.next(H-N):(!M&&G(H),b)}}}function uO(e,n,a){const s=[],o=a||Nr.mix||Nw,c=e.length-1;for(let d=0;d<c;d++){let f=o(e[d],e[d+1]);if(n){const h=Array.isArray(n)?n[d]||Rn:n;f=Lo(h,f)}s.push(f)}return s}function dO(e,n,{clamp:a=!0,ease:s,mixer:o}={}){const c=e.length;if(km(c===n.length),c===1)return()=>n[0];if(c===2&&n[0]===n[1])return()=>n[1];const d=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),n=[...n].reverse());const f=uO(n,s,o),h=f.length,m=g=>{if(d&&g<e[0])return n[0];let x=0;if(h>1)for(;x<e.length-2&&!(g<e[x+1]);x++);const b=bo(e[x],e[x+1],g);return f[x](b)};return a?g=>m(Er(e[0],e[c-1],g)):m}function fO(e,n){const a=e[e.length-1];for(let s=1;s<=n;s++){const o=bo(0,n,s);e.push(pt(a,1,o))}}function hO(e){const n=[0];return fO(n,e.length-1),n}function mO(e,n){return e.map(a=>a*n)}function pO(e,n){return e.map(()=>n||yw).splice(0,e.length-1)}function co({duration:e=300,keyframes:n,times:a,ease:s="easeInOut"}){const o=E5(s)?s.map(ov):ov(s),c={done:!1,value:n[0]},d=mO(a&&a.length===n.length?a:hO(n),e),f=dO(d,n,{ease:Array.isArray(o)?o:pO(n,o)});return{calculatedDuration:e,next:h=>(c.value=f(h),c.done=h>=e,c)}}const gO=e=>e!==null;function Um(e,{repeat:n,repeatType:a="loop"},s,o=1){const c=e.filter(gO),f=o<0||n&&a!=="loop"&&n%2===1?0:c.length-1;return!f||s===void 0?c[f]:s}const yO={decay:qh,inertia:qh,tween:co,keyframes:co,spring:Vc};function Ow(e){typeof e.type=="string"&&(e.type=yO[e.type])}class Bm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,a){return this.finished.then(n,a)}}const xO=e=>e/100;class Vm extends Bm{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;Ow(n);const{type:a=co,repeat:s=0,repeatDelay:o=0,repeatType:c,velocity:d=0}=n;let{keyframes:f}=n;const h=a||co;h!==co&&typeof f[0]!="number"&&(this.mixKeyframes=Lo(xO,Nw(f[0],f[1])),f=[0,100]);const m=h({...n,keyframes:f});c==="mirror"&&(this.mirroredGenerator=h({...n,keyframes:[...f].reverse(),velocity:-d})),m.calculatedDuration===null&&(m.calculatedDuration=Fm(m));const{calculatedDuration:g}=m;this.calculatedDuration=g,this.resolvedDuration=g+o,this.totalDuration=this.resolvedDuration*(s+1)-o,this.generator=m}updateTime(n){const a=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(n,a=!1){const{generator:s,totalDuration:o,mixKeyframes:c,mirroredGenerator:d,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return s.next(0);const{delay:m=0,keyframes:g,repeat:x,repeatType:b,repeatDelay:A,type:k,onUpdate:S,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-o/this.speed,this.startTime)),a?this.currentTime=n:this.updateTime(n);const T=this.currentTime-m*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?T<0:T>o;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let L=this.currentTime,G=s;if(x){const H=Math.min(this.currentTime,o)/f;let M=Math.floor(H),R=H%1;!R&&H>=1&&(R=1),R===1&&M--,M=Math.min(M,x+1),!!(M%2)&&(b==="reverse"?(R=1-R,A&&(R-=A/f)):b==="mirror"&&(G=d)),L=Er(0,1,R)*f}const N=C?{done:!1,value:g[0]}:G.next(L);c&&(N.value=c(N.value));let{done:z}=N;!C&&h!==null&&(z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return B&&k!==qh&&(N.value=Um(g,this.options,E,this.speed)),S&&S(N.value),B&&this.finish(),N}then(n,a){return this.finished.then(n,a)}get duration(){return nr(this.calculatedDuration)}get time(){return nr(this.currentTime)}set time(n){n=tr(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(tn.now());const a=this.playbackSpeed!==n;this.playbackSpeed=n,a&&(this.time=nr(this.currentTime))}play(){if(this.isStopped)return;const{driver:n=tO,startTime:a}=this.options;this.driver||(this.driver=n(o=>this.tick(o))),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=a??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(tn.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(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),n.observe(this)}}function vO(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const Ca=e=>e*180/Math.PI,Yh=e=>{const n=Ca(Math.atan2(e[1],e[0]));return Wh(n)},bO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yh,rotateZ:Yh,skewX:e=>Ca(Math.atan(e[1])),skewY:e=>Ca(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wh=e=>(e=e%360,e<0&&(e+=360),e),hv=Yh,mv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),pv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),wO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mv,scaleY:pv,scale:e=>(mv(e)+pv(e))/2,rotateX:e=>Wh(Ca(Math.atan2(e[6],e[5]))),rotateY:e=>Wh(Ca(Math.atan2(-e[2],e[0]))),rotateZ:hv,rotate:hv,skewX:e=>Ca(Math.atan(e[4])),skewY:e=>Ca(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Xh(e){return e.includes("scale")?1:0}function Kh(e,n){if(!e||e==="none")return Xh(n);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(a)s=wO,o=a;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=bO,o=f}if(!o)return Xh(n);const c=s[n],d=o[1].split(",").map(jO);return typeof c=="function"?c(d):d[c]}const SO=(e,n)=>{const{transform:a="none"}=getComputedStyle(e);return Kh(a,n)};function jO(e){return parseFloat(e.trim())}const Zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$s=new Set(Zs),gv=e=>e===Ks||e===Fe,AO=new Set(["x","y","z"]),TO=Zs.filter(e=>!AO.has(e));function EO(e){const n=[];return TO.forEach(a=>{const s=e.getValue(a);s!==void 0&&(n.push([a,s.get()]),s.set(a.startsWith("scale")?1:0))}),n}const La={width:({x:e},{paddingLeft:n="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),height:({y:e},{paddingTop:n="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>Kh(n,"x"),y:(e,{transform:n})=>Kh(n,"y")};La.translateX=La.x;La.translateY=La.y;const Pa=new Set;let Zh=!1,$h=!1,Qh=!1;function Rw(){if($h){const e=Array.from(Pa).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),a=new Map;n.forEach(s=>{const o=EO(s);o.length&&(a.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const o=a.get(s);o&&o.forEach(([c,d])=>{s.getValue(c)?.set(d)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}$h=!1,Zh=!1,Pa.forEach(e=>e.complete(Qh)),Pa.clear()}function Cw(){Pa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($h=!0)})}function NO(){Qh=!0,Cw(),Rw(),Qh=!1}class Hm{constructor(n,a,s,o,c,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=a,this.name=s,this.motionValue=o,this.element=c,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Pa.add(this),Zh||(Zh=!0,dt.read(Cw),dt.resolveKeyframes(Rw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:a,element:s,motionValue:o}=this;if(n[0]===null){const c=o?.get(),d=n[n.length-1];if(c!==void 0)n[0]=c;else if(s&&a){const f=s.readValue(a,d);f!=null&&(n[0]=f)}n[0]===void 0&&(n[0]=d),o&&c===void 0&&o.set(n[0])}vO(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),Pa.delete(this)}cancel(){this.state==="scheduled"&&(Pa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kO=e=>e.startsWith("--");function _O(e,n,a){kO(n)?e.style.setProperty(n,a):e.style[n]=a}const OO=_m(()=>window.ScrollTimeline!==void 0),RO={};function CO(e,n){const a=_m(e);return()=>RO[n]??a()}const Dw=CO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ao=([e,n,a,s])=>`cubic-bezier(${e}, ${n}, ${a}, ${s})`,yv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ao([0,.65,.55,1]),circOut:ao([.55,0,1,.45]),backIn:ao([.31,.01,.66,-.59]),backOut:ao([.33,1.53,.69,.99])};function Mw(e,n){if(e)return typeof e=="function"?Dw()?kw(e,n):"ease-out":xw(e)?ao(e):Array.isArray(e)?e.map(a=>Mw(a,n)||yv.easeOut):yv[e]}function DO(e,n,a,{delay:s=0,duration:o=300,repeat:c=0,repeatType:d="loop",ease:f="easeOut",times:h}={},m=void 0){const g={[n]:a};h&&(g.offset=h);const x=Mw(f,o);Array.isArray(x)&&(g.easing=x);const b={delay:s,duration:o,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:c+1,direction:d==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),e.animate(g,b)}function Lw(e){return typeof e=="function"&&"applyToOptions"in e}function MO({type:e,...n}){return Lw(e)&&Dw()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class LO extends Bm{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,!n)return;const{element:a,name:s,keyframes:o,pseudoElement:c,allowFlatten:d=!1,finalKeyframe:f,onComplete:h}=n;this.isPseudoElement=!!c,this.allowFlatten=d,this.options=n,km(typeof n.type!="string");const m=MO(n);this.animation=DO(a,s,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const g=Um(o,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(g):_O(a,s,g),this.animation.cancel()}h?.(),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:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const n=this.animation.effect?.getComputedTiming?.().duration||0;return nr(Number(n))}get time(){return nr(Number(this.animation.currentTime)||0)}set time(n){this.finishedTime=null,this.animation.currentTime=tr(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(n){this.animation.startTime=n}attachTimeline({timeline:n,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,n&&OO()?(this.animation.timeline=n,Rn):a(this)}}const Pw={anticipate:mw,backInOut:hw,circInOut:gw};function PO(e){return e in Pw}function zO(e){typeof e.ease=="string"&&PO(e.ease)&&(e.ease=Pw[e.ease])}const xv=10;class FO extends LO{constructor(n){zO(n),Ow(n),super(n),n.startTime&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:a,onUpdate:s,onComplete:o,element:c,...d}=this.options;if(!a)return;if(n!==void 0){a.set(n);return}const f=new Vm({...d,autoplay:!1}),h=tr(this.finishedTime??this.time);a.setWithVelocity(f.sample(h-xv).value,f.sample(h).value,xv),f.stop()}}const vv=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(aa.test(e)||e==="0")&&!e.startsWith("url("));function UO(e){const n=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==n)return!0}function BO(e,n,a,s){const o=e[0];if(o===null)return!1;if(n==="display"||n==="visibility")return!0;const c=e[e.length-1],d=vv(o,n),f=vv(c,n);return!d||!f?!1:UO(e)||(a==="spring"||Lw(a))&&s}function Jh(e){e.duration=0,e.type}const VO=new Set(["opacity","clipPath","filter","transform"]),HO=_m(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function IO(e){const{motionValue:n,name:a,repeatDelay:s,repeatType:o,damping:c,type:d}=e;if(!(n?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=n.owner.getProps();return HO()&&a&&VO.has(a)&&(a!=="transform"||!m)&&!h&&!s&&o!=="mirror"&&c!==0&&d!=="inertia"}const GO=40;class qO extends Bm{constructor({autoplay:n=!0,delay:a=0,type:s="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:d="loop",keyframes:f,name:h,motionValue:m,element:g,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const b={autoplay:n,delay:a,type:s,repeat:o,repeatDelay:c,repeatType:d,name:h,motionValue:m,element:g,...x},A=g?.KeyframeResolver||Hm;this.keyframeResolver=new A(f,(k,S,E)=>this.onKeyframesResolved(k,S,b,!E),h,m,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,a,s,o){this.keyframeResolver=void 0;const{name:c,type:d,velocity:f,delay:h,isHandoff:m,onUpdate:g}=s;this.resolvedAt=tn.now(),BO(n,c,d,f)||((Nr.instantAnimations||!h)&&g?.(Um(n,s,a)),n[0]=n[n.length-1],Jh(s),s.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>GO?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...s,keyframes:n},A=!m&&IO(b)?new FO({...b,element:b.motionValue.owner.current}):new Vm(b);A.finished.then(()=>this.notifyFinished()).catch(Rn),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(n,a){return this.finished.finally(n).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),NO()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const YO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WO(e){const n=YO.exec(e);if(!n)return[,];const[,a,s,o]=n;return[`--${a??s}`,o]}function zw(e,n,a=1){const[s,o]=WO(e);if(!s)return;const c=window.getComputedStyle(n).getPropertyValue(s);if(c){const d=c.trim();return sw(d)?parseFloat(d):d}return Mm(o)?zw(o,n,a+1):o}function Im(e,n){return e?.[n]??e?.default??e}const Fw=new Set(["width","height","top","left","right","bottom",...Zs]),XO={test:e=>e==="auto",parse:e=>e},Uw=e=>n=>n.test(e),Bw=[Ks,Fe,rr,Jr,U5,F5,XO],bv=e=>Bw.find(Uw(e));function KO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ow(e):!0}const ZO=new Set(["brightness","contrast","saturate","opacity"]);function $O(e){const[n,a]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=a.match(Lm)||[];if(!s)return e;const o=a.replace(s,"");let c=ZO.has(n)?1:0;return s!==a&&(c*=100),n+"("+c+o+")"}const QO=/\b([a-z-]*)\(.*?\)/gu,em={...aa,getAnimatableNone:e=>{const n=e.match(QO);return n?n.map($O).join(" "):e}},wv={...Ks,transform:Math.round},JO={rotate:Jr,rotateX:Jr,rotateY:Jr,rotateZ:Jr,scale:sc,scaleX:sc,scaleY:sc,scaleZ:sc,skew:Jr,skewX:Jr,skewY:Jr,distance:Fe,translateX:Fe,translateY:Fe,translateZ:Fe,x:Fe,y:Fe,z:Fe,perspective:Fe,transformPerspective:Fe,opacity:wo,originX:lv,originY:lv,originZ:Fe},Gm={borderWidth:Fe,borderTopWidth:Fe,borderRightWidth:Fe,borderBottomWidth:Fe,borderLeftWidth:Fe,borderRadius:Fe,radius:Fe,borderTopLeftRadius:Fe,borderTopRightRadius:Fe,borderBottomRightRadius:Fe,borderBottomLeftRadius:Fe,width:Fe,maxWidth:Fe,height:Fe,maxHeight:Fe,top:Fe,right:Fe,bottom:Fe,left:Fe,padding:Fe,paddingTop:Fe,paddingRight:Fe,paddingBottom:Fe,paddingLeft:Fe,margin:Fe,marginTop:Fe,marginRight:Fe,marginBottom:Fe,marginLeft:Fe,backgroundPositionX:Fe,backgroundPositionY:Fe,...JO,zIndex:wv,fillOpacity:wo,strokeOpacity:wo,numOctaves:wv},eR={...Gm,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:em,WebkitFilter:em},Vw=e=>eR[e];function Hw(e,n){let a=Vw(e);return a!==em&&(a=aa),a.getAnimatableNone?a.getAnimatableNone(n):void 0}const tR=new Set(["auto","none","0"]);function nR(e,n,a){let s=0,o;for(;s<e.length&&!o;){const c=e[s];typeof c=="string"&&!tR.has(c)&&So(c).values.length&&(o=e[s]),s++}if(o&&a)for(const c of n)e[c]=Hw(a,o)}class rR extends Hm{constructor(n,a,s,o,c){super(n,a,s,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:a,name:s}=this;if(!a||!a.current)return;super.readKeyframes();for(let h=0;h<n.length;h++){let m=n[h];if(typeof m=="string"&&(m=m.trim(),Mm(m))){const g=zw(m,a.current);g!==void 0&&(n[h]=g),h===n.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Fw.has(s)||n.length!==2)return;const[o,c]=n,d=bv(o),f=bv(c);if(d!==f)if(gv(d)&&gv(f))for(let h=0;h<n.length;h++){const m=n[h];typeof m=="string"&&(n[h]=parseFloat(m))}else La[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:a}=this,s=[];for(let o=0;o<n.length;o++)(n[o]===null||KO(n[o]))&&s.push(o);s.length&&nR(n,s,a)}measureInitialState(){const{element:n,unresolvedKeyframes:a,name:s}=this;if(!n||!n.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=La[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a[0]=this.measuredOrigin;const o=a[a.length-1];o!==void 0&&n.getValue(s,o).jump(o,!1)}measureEndState(){const{element:n,name:a,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(a);o&&o.jump(this.measuredOrigin,!1);const c=s.length-1,d=s[c];s[c]=La[a](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function aR(e,n,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=a?.[e]??s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Iw=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function sR(e){return iw(e)&&"offsetHeight"in e}const Sv=30,iR=e=>!isNaN(parseFloat(e));class oR{constructor(n,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const o=tn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=a.owner}setCurrent(n){this.current=n,this.updatedAt=tn.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=iR(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,a){this.events[n]||(this.events[n]=new Om);const s=this.events[n].add(a);return n==="change"?()=>{s(),dt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,a){this.passiveEffect=n,this.stopPassiveEffect=a}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,a,s){this.set(a),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,a=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>Sv)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,Sv);return lw(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(n){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=n(a),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 Hs(e,n){return new oR(e,n)}const{schedule:qm}=vw(queueMicrotask,!1),Hn={x:!1,y:!1};function Gw(){return Hn.x||Hn.y}function lR(e){return e==="x"||e==="y"?Hn[e]?null:(Hn[e]=!0,()=>{Hn[e]=!1}):Hn.x||Hn.y?null:(Hn.x=Hn.y=!0,()=>{Hn.x=Hn.y=!1})}function qw(e,n){const a=aR(e),s=new AbortController,o={passive:!0,...n,signal:s.signal};return[a,o,()=>s.abort()]}function jv(e){return!(e.pointerType==="touch"||Gw())}function cR(e,n,a={}){const[s,o,c]=qw(e,a),d=f=>{if(!jv(f))return;const{target:h}=f,m=n(h,f);if(typeof m!="function"||!h)return;const g=x=>{jv(x)&&(m(x),h.removeEventListener("pointerleave",g))};h.addEventListener("pointerleave",g,o)};return s.forEach(f=>{f.addEventListener("pointerenter",d,o)}),c}const Yw=(e,n)=>n?e===n?!0:Yw(e,n.parentElement):!1,Ym=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,uR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dR(e){return uR.has(e.tagName)||e.tabIndex!==-1}const jc=new WeakSet;function Av(e){return n=>{n.key==="Enter"&&e(n)}}function dh(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const fR=(e,n)=>{const a=e.currentTarget;if(!a)return;const s=Av(()=>{if(jc.has(a))return;dh(a,"down");const o=Av(()=>{dh(a,"up")}),c=()=>dh(a,"cancel");a.addEventListener("keyup",o,n),a.addEventListener("blur",c,n)});a.addEventListener("keydown",s,n),a.addEventListener("blur",()=>a.removeEventListener("keydown",s),n)};function Tv(e){return Ym(e)&&!Gw()}function hR(e,n,a={}){const[s,o,c]=qw(e,a),d=f=>{const h=f.currentTarget;if(!Tv(f))return;jc.add(h);const m=n(h,f),g=(A,k)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",b),jc.has(h)&&jc.delete(h),Tv(A)&&typeof m=="function"&&m(A,{success:k})},x=A=>{g(A,h===window||h===document||a.useGlobalTarget||Yw(h,A.target))},b=A=>{g(A,!1)};window.addEventListener("pointerup",x,o),window.addEventListener("pointercancel",b,o)};return s.forEach(f=>{(a.useGlobalTarget?window:f).addEventListener("pointerdown",d,o),sR(f)&&(f.addEventListener("focus",m=>fR(m,o)),!dR(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),c}function Ww(e){return iw(e)&&"ownerSVGElement"in e}function mR(e){return Ww(e)&&e.tagName==="svg"}const Gt=e=>!!(e&&e.getVelocity),pR=[...Bw,Et,aa],gR=e=>pR.find(Uw(e)),Xw=W.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yR(e=!0){const n=W.useContext(Tm);if(n===null)return[!0,null];const{isPresent:a,onExitComplete:s,register:o}=n,c=W.useId();W.useEffect(()=>{if(e)return o(c)},[e]);const d=W.useCallback(()=>e&&s&&s(c),[c,s,e]);return!a&&s?[!1,d]:[!0]}const Kw=W.createContext({strict:!1}),Ev={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"]},Is={};for(const e in Ev)Is[e]={isEnabled:n=>Ev[e].some(a=>!!n[a])};function xR(e){for(const n in e)Is[n]={...Is[n],...e[n]}}const vR=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 Hc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||vR.has(e)}let Zw=e=>!Hc(e);function bR(e){typeof e=="function"&&(Zw=n=>n.startsWith("on")?!Hc(n):e(n))}try{bR(require("@emotion/is-prop-valid").default)}catch{}function wR(e,n,a){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(Zw(o)||a===!0&&Hc(o)||!n&&!Hc(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const fu=W.createContext({});function hu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function jo(e){return typeof e=="string"||Array.isArray(e)}const Wm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xm=["initial",...Wm];function mu(e){return hu(e.animate)||Xm.some(n=>jo(e[n]))}function $w(e){return!!(mu(e)||e.variants)}function SR(e,n){if(mu(e)){const{initial:a,animate:s}=e;return{initial:a===!1||jo(a)?a:void 0,animate:jo(s)?s:void 0}}return e.inherit!==!1?n:{}}function jR(e){const{initial:n,animate:a}=SR(e,W.useContext(fu));return W.useMemo(()=>({initial:n,animate:a}),[Nv(n),Nv(a)])}function Nv(e){return Array.isArray(e)?e.join(" "):e}const Ao={};function AR(e){for(const n in e)Ao[n]=e[n],Dm(n)&&(Ao[n].isCSSVariable=!0)}function Qw(e,{layout:n,layoutId:a}){return $s.has(e)||e.startsWith("origin")||(n||a!==void 0)&&(!!Ao[e]||e==="opacity")}const TR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ER=Zs.length;function NR(e,n,a){let s="",o=!0;for(let c=0;c<ER;c++){const d=Zs[c],f=e[d];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(d.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||a){const m=Iw(f,Gm[d]);if(!h){o=!1;const g=TR[d]||d;s+=`${g}(${m}) `}a&&(n[d]=m)}}return s=s.trim(),a?s=a(n,o?"":s):o&&(s="none"),s}function Km(e,n,a){const{style:s,vars:o,transformOrigin:c}=e;let d=!1,f=!1;for(const h in n){const m=n[h];if($s.has(h)){d=!0;continue}else if(Dm(h)){o[h]=m;continue}else{const g=Iw(m,Gm[h]);h.startsWith("origin")?(f=!0,c[h]=g):s[h]=g}}if(n.transform||(d||a?s.transform=NR(n,e.transform,a):s.transform&&(s.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:g=0}=c;s.transformOrigin=`${h} ${m} ${g}`}}const Zm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Jw(e,n,a){for(const s in n)!Gt(n[s])&&!Qw(s,a)&&(e[s]=n[s])}function kR({transformTemplate:e},n){return W.useMemo(()=>{const a=Zm();return Km(a,n,e),Object.assign({},a.vars,a.style)},[n])}function _R(e,n){const a=e.style||{},s={};return Jw(s,a,e),Object.assign(s,kR(e,n)),s}function OR(e,n){const a={},s=_R(e,n);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=s,a}const RR={offset:"stroke-dashoffset",array:"stroke-dasharray"},CR={offset:"strokeDashoffset",array:"strokeDasharray"};function DR(e,n,a=1,s=0,o=!0){e.pathLength=1;const c=o?RR:CR;e[c.offset]=Fe.transform(-s);const d=Fe.transform(n),f=Fe.transform(a);e[c.array]=`${d} ${f}`}function e2(e,{attrX:n,attrY:a,attrScale:s,pathLength:o,pathSpacing:c=1,pathOffset:d=0,...f},h,m,g){if(Km(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:b}=e;x.transform&&(b.transform=x.transform,delete x.transform),(b.transform||x.transformOrigin)&&(b.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),b.transform&&(b.transformBox=g?.transformBox??"fill-box",delete x.transformBox),n!==void 0&&(x.x=n),a!==void 0&&(x.y=a),s!==void 0&&(x.scale=s),o!==void 0&&DR(x,o,c,d,!1)}const t2=()=>({...Zm(),attrs:{}}),n2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function MR(e,n,a,s){const o=W.useMemo(()=>{const c=t2();return e2(c,n,n2(s),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[n]);if(e.style){const c={};Jw(c,e.style,e),o.style={...c,...o.style}}return o}const LR=["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 $m(e){return typeof e!="string"||e.includes("-")?!1:!!(LR.indexOf(e)>-1||/[A-Z]/u.test(e))}function PR(e,n,a,{latestValues:s},o,c=!1){const f=($m(e)?MR:OR)(n,s,o,e),h=wR(n,typeof e=="string",c),m=e!==W.Fragment?{...h,...f,ref:a}:{},{children:g}=n,x=W.useMemo(()=>Gt(g)?g.get():g,[g]);return W.createElement(e,{...m,children:x})}function kv(e){const n=[{},{}];return e?.values.forEach((a,s)=>{n[0][s]=a.get(),n[1][s]=a.getVelocity()}),n}function Qm(e,n,a,s){if(typeof n=="function"){const[o,c]=kv(s);n=n(a!==void 0?a:e.custom,o,c)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[o,c]=kv(s);n=n(a!==void 0?a:e.custom,o,c)}return n}function Ac(e){return Gt(e)?e.get():e}function zR({scrapeMotionValuesFromProps:e,createRenderState:n},a,s,o){return{latestValues:FR(a,s,o,e),renderState:n()}}function FR(e,n,a,s){const o={},c=s(e,{});for(const b in c)o[b]=Ac(c[b]);let{initial:d,animate:f}=e;const h=mu(e),m=$w(e);n&&m&&!h&&e.inherit!==!1&&(d===void 0&&(d=n.initial),f===void 0&&(f=n.animate));let g=a?a.initial===!1:!1;g=g||d===!1;const x=g?f:d;if(x&&typeof x!="boolean"&&!hu(x)){const b=Array.isArray(x)?x:[x];for(let A=0;A<b.length;A++){const k=Qm(e,b[A]);if(k){const{transitionEnd:S,transition:E,...T}=k;for(const C in T){let L=T[C];if(Array.isArray(L)){const G=g?L.length-1:0;L=L[G]}L!==null&&(o[C]=L)}for(const C in S)o[C]=S[C]}}}return o}const r2=e=>(n,a)=>{const s=W.useContext(fu),o=W.useContext(Tm),c=()=>zR(e,n,s,o);return a?c():x5(c)};function Jm(e,n,a){const{style:s}=e,o={};for(const c in s)(Gt(s[c])||n.style&&Gt(n.style[c])||Qw(c,e)||a?.getValue(c)?.liveStyle!==void 0)&&(o[c]=s[c]);return o}const UR=r2({scrapeMotionValuesFromProps:Jm,createRenderState:Zm});function a2(e,n,a){const s=Jm(e,n,a);for(const o in e)if(Gt(e[o])||Gt(n[o])){const c=Zs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[c]=e[o]}return s}const BR=r2({scrapeMotionValuesFromProps:a2,createRenderState:t2}),VR=Symbol.for("motionComponentSymbol");function Os(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function HR(e,n,a){return W.useCallback(s=>{s&&e.onMount&&e.onMount(s),n&&(s?n.mount(s):n.unmount()),a&&(typeof a=="function"?a(s):Os(a)&&(a.current=s))},[n])}const ep=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),IR="framerAppearId",s2="data-"+ep(IR),i2=W.createContext({});function GR(e,n,a,s,o){const{visualElement:c}=W.useContext(fu),d=W.useContext(Kw),f=W.useContext(Tm),h=W.useContext(Xw).reducedMotion,m=W.useRef(null);s=s||d.renderer,!m.current&&s&&(m.current=s(e,{visualState:n,parent:c,props:a,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,x=W.useContext(i2);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&qR(m.current,a,o,x);const b=W.useRef(!1);W.useInsertionEffect(()=>{g&&b.current&&g.update(a,f)});const A=a[s2],k=W.useRef(!!A&&!window.MotionHandoffIsComplete?.(A)&&window.MotionHasOptimisedAnimation?.(A));return v5(()=>{g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),k.current&&g.animationState&&g.animationState.animateChanges())}),W.useEffect(()=>{g&&(!k.current&&g.animationState&&g.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(A)}),k.current=!1),g.enteringChildren=void 0)}),g}function qR(e,n,a,s){const{layoutId:o,layout:c,drag:d,dragConstraints:f,layoutScroll:h,layoutRoot:m,layoutCrossfade:g}=n;e.projection=new a(e.latestValues,n["data-framer-portal-id"]?void 0:o2(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!d||f&&Os(f),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:h,layoutRoot:m})}function o2(e){if(e)return e.options.allowProjection!==!1?e.projection:o2(e.parent)}function fh(e,{forwardMotionProps:n=!1}={},a,s){a&&xR(a);const o=$m(e)?BR:UR;function c(f,h){let m;const g={...W.useContext(Xw),...f,layoutId:YR(f)},{isStatic:x}=g,b=jR(f),A=o(f,x);if(!x&&Am){WR();const k=XR(g);m=k.MeasureLayout,b.visualElement=GR(e,A,g,s,k.ProjectionNode)}return u.jsxs(fu.Provider,{value:b,children:[m&&b.visualElement?u.jsx(m,{visualElement:b.visualElement,...g}):null,PR(e,f,HR(A,b.visualElement,h),A,x,n)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const d=W.forwardRef(c);return d[VR]=e,d}function YR({layoutId:e}){const n=W.useContext(aw).id;return n&&e!==void 0?n+"-"+e:e}function WR(e,n){W.useContext(Kw).strict}function XR(e){const{drag:n,layout:a}=Is;if(!n&&!a)return{};const s={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function KR(e,n){if(typeof Proxy>"u")return fh;const a=new Map,s=(c,d)=>fh(c,d,e,n),o=(c,d)=>s(c,d);return new Proxy(o,{get:(c,d)=>d==="create"?s:(a.has(d)||a.set(d,fh(d,void 0,e,n)),a.get(d))})}function l2({top:e,left:n,right:a,bottom:s}){return{x:{min:n,max:a},y:{min:e,max:s}}}function ZR({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function $R(e,n){if(!n)return e;const a=n({x:e.left,y:e.top}),s=n({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}function hh(e){return e===void 0||e===1}function tm({scale:e,scaleX:n,scaleY:a}){return!hh(e)||!hh(n)||!hh(a)}function ka(e){return tm(e)||c2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function c2(e){return _v(e.x)||_v(e.y)}function _v(e){return e&&e!=="0%"}function Ic(e,n,a){const s=e-a,o=n*s;return a+o}function Ov(e,n,a,s,o){return o!==void 0&&(e=Ic(e,o,s)),Ic(e,a,s)+n}function nm(e,n=0,a=1,s,o){e.min=Ov(e.min,n,a,s,o),e.max=Ov(e.max,n,a,s,o)}function u2(e,{x:n,y:a}){nm(e.x,n.translate,n.scale,n.originPoint),nm(e.y,a.translate,a.scale,a.originPoint)}const Rv=.999999999999,Cv=1.0000000000001;function QR(e,n,a,s=!1){const o=a.length;if(!o)return;n.x=n.y=1;let c,d;for(let f=0;f<o;f++){c=a[f],d=c.projectionDelta;const{visualElement:h}=c.options;h&&h.props.style&&h.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Cs(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),d&&(n.x*=d.x.scale,n.y*=d.y.scale,u2(e,d)),s&&ka(c.latestValues)&&Cs(e,c.latestValues))}n.x<Cv&&n.x>Rv&&(n.x=1),n.y<Cv&&n.y>Rv&&(n.y=1)}function Rs(e,n){e.min=e.min+n,e.max=e.max+n}function Dv(e,n,a,s,o=.5){const c=pt(e.min,e.max,o);nm(e,n,a,c,s)}function Cs(e,n){Dv(e.x,n.x,n.scaleX,n.scale,n.originX),Dv(e.y,n.y,n.scaleY,n.scale,n.originY)}function d2(e,n){return l2($R(e.getBoundingClientRect(),n))}function JR(e,n,a){const s=d2(e,a),{scroll:o}=n;return o&&(Rs(s.x,o.offset.x),Rs(s.y,o.offset.y)),s}const Mv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ds=()=>({x:Mv(),y:Mv()}),Lv=()=>({min:0,max:0}),St=()=>({x:Lv(),y:Lv()}),rm={current:null},f2={current:!1};function eC(){if(f2.current=!0,!!Am)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>rm.current=e.matches;e.addEventListener("change",n),n()}else rm.current=!1}const tC=new WeakMap;function nC(e,n,a){for(const s in n){const o=n[s],c=a[s];if(Gt(o))e.addValue(s,o);else if(Gt(c))e.addValue(s,Hs(o,{owner:e}));else if(c!==o)if(e.hasValue(s)){const d=e.getValue(s);d.liveStyle===!0?d.jump(o):d.hasAnimated||d.set(o)}else{const d=e.getStaticValue(s);e.addValue(s,Hs(d!==void 0?d:o,{owner:e}))}}for(const s in a)n[s]===void 0&&e.removeValue(s);return n}const Pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rC{scrapeMotionValuesFromProps(n,a,s){return{}}constructor({parent:n,props:a,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:c,visualState:d},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hm,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 b=tn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,dt.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=d;this.latestValues=h,this.baseTarget={...h},this.initialValues=a.initial?{...h}:{},this.renderState=m,this.parent=n,this.props=a,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=mu(a),this.isVariantNode=$w(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(a,{},this);for(const b in x){const A=x[b];h[b]!==void 0&&Gt(A)&&A.set(h[b])}}mount(n){this.current=n,tC.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,s)=>this.bindToMotionValue(s,a)),f2.current||eC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:rm.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ra(this.notifyUpdate),ra(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const a=this.features[n];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,a){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const s=$s.has(n);s&&this.onBindTransform&&this.onBindTransform();const o=a.on("change",d=>{this.latestValues[n]=d,this.props.onUpdate&&dt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,a)),this.valueSubscriptions.set(n,()=>{o(),c&&c(),a.owner&&a.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in Is){const a=Is[n];if(!a)continue;const{isEnabled:s,Feature:o}=a;if(!this.features[n]&&o&&s(this.props)&&(this.features[n]=new o(this)),this.features[n]){const c=this.features[n];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):St()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,a){this.latestValues[n]=a}update(n,a){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let s=0;s<Pv.length;s++){const o=Pv[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,d=n[c];d&&(this.propEventSubscriptions[o]=this.on(o,d))}this.prevMotionValues=nC(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]: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(n){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(n),()=>a.variantChildren.delete(n)}addValue(n,a){const s=this.values.get(n);a!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,a),this.values.set(n,a),this.latestValues[n]=a.get())}removeValue(n){this.values.delete(n);const a=this.valueSubscriptions.get(n);a&&(a(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,a){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&a!==void 0&&(s=Hs(a===null?void 0:a,{owner:this}),this.addValue(n,s)),s}readValue(n,a){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(sw(s)||ow(s))?s=parseFloat(s):!gR(s)&&aa.test(a)&&(s=Hw(n,a)),this.setBaseTarget(n,Gt(s)?s.get():s)),Gt(s)?s.get():s}setBaseTarget(n,a){this.baseTarget[n]=a}getBaseTarget(n){const{initial:a}=this.props;let s;if(typeof a=="string"||typeof a=="object"){const c=Qm(this.props,a,this.presenceContext?.custom);c&&(s=c[n])}if(a&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,n);return o!==void 0&&!Gt(o)?o:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,a){return this.events[n]||(this.events[n]=new Om),this.events[n].add(a)}notify(n,...a){this.events[n]&&this.events[n].notify(...a)}scheduleRenderMicrotask(){qm.render(this.render)}}class h2 extends rC{constructor(){super(...arguments),this.KeyframeResolver=rR}sortInstanceNodePosition(n,a){return n.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(n,a){return n.style?n.style[a]:void 0}removeValueFromRenderState(n,{vars:a,style:s}){delete a[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;Gt(n)&&(this.childSubscription=n.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function m2(e,{style:n,vars:a},s,o){const c=e.style;let d;for(d in n)c[d]=n[d];o?.applyProjectionStyles(c,s);for(d in a)c.setProperty(d,a[d])}function aC(e){return window.getComputedStyle(e)}class sC extends h2{constructor(){super(...arguments),this.type="html",this.renderInstance=m2}readValueFromInstance(n,a){if($s.has(a))return this.projection?.isProjecting?Xh(a):SO(n,a);{const s=aC(n),o=(Dm(a)?s.getPropertyValue(a):s[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(n,{transformPagePoint:a}){return d2(n,a)}build(n,a,s){Km(n,a,s.transformTemplate)}scrapeMotionValuesFromProps(n,a,s){return Jm(n,a,s)}}const p2=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 iC(e,n,a,s){m2(e,n,void 0,s);for(const o in n.attrs)e.setAttribute(p2.has(o)?o:ep(o),n.attrs[o])}class oC extends h2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=St}getBaseTargetFromProps(n,a){return n[a]}readValueFromInstance(n,a){if($s.has(a)){const s=Vw(a);return s&&s.default||0}return a=p2.has(a)?a:ep(a),n.getAttribute(a)}scrapeMotionValuesFromProps(n,a,s){return a2(n,a,s)}build(n,a,s){e2(n,a,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,a,s,o){iC(n,a,s,o)}mount(n){this.isSVGTag=n2(n.tagName),super.mount(n)}}const lC=(e,n)=>$m(e)?new oC(n):new sC(n,{allowProjection:e!==W.Fragment});function Fs(e,n,a){const s=e.getProps();return Qm(s,n,a!==void 0?a:s.custom,e)}const am=e=>Array.isArray(e);function cC(e,n,a){e.hasValue(n)?e.getValue(n).set(a):e.addValue(n,Hs(a))}function uC(e){return am(e)?e[e.length-1]||0:e}function dC(e,n){const a=Fs(e,n);let{transitionEnd:s={},transition:o={},...c}=a||{};c={...c,...s};for(const d in c){const f=uC(c[d]);cC(e,d,f)}}function fC(e){return!!(Gt(e)&&e.add)}function sm(e,n){const a=e.getValue("willChange");if(fC(a))return a.add(n);if(!a&&Nr.WillChange){const s=new Nr.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function g2(e){return e.props[s2]}const hC=e=>e!==null;function mC(e,{repeat:n,repeatType:a="loop"},s){const o=e.filter(hC),c=n&&a!=="loop"&&n%2===1?0:o.length-1;return o[c]}const pC={type:"spring",stiffness:500,damping:25,restSpeed:10},gC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yC={type:"keyframes",duration:.8},xC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vC=(e,{keyframes:n})=>n.length>2?yC:$s.has(e)?e.startsWith("scale")?gC(n[1]):pC:xC;function bC({when:e,delay:n,delayChildren:a,staggerChildren:s,staggerDirection:o,repeat:c,repeatType:d,repeatDelay:f,from:h,elapsed:m,...g}){return!!Object.keys(g).length}const tp=(e,n,a,s={},o,c)=>d=>{const f=Im(s,e)||{},h=f.delay||s.delay||0;let{elapsed:m=0}=s;m=m-tr(h);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-m,onUpdate:b=>{n.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{d(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:c?void 0:o};bC(f)||Object.assign(g,vC(e,g)),g.duration&&(g.duration=tr(g.duration)),g.repeatDelay&&(g.repeatDelay=tr(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Jh(g),g.delay===0&&(x=!0)),(Nr.instantAnimations||Nr.skipAnimations)&&(x=!0,Jh(g),g.delay=0),g.allowFlatten=!f.type&&!f.ease,x&&!c&&n.get()!==void 0){const b=mC(g.keyframes,f);if(b!==void 0){dt.update(()=>{g.onUpdate(b),g.onComplete()});return}}return f.isSync?new Vm(g):new qO(g)};function wC({protectedKeys:e,needsAnimating:n},a){const s=e.hasOwnProperty(a)&&n[a]!==!0;return n[a]=!1,s}function y2(e,n,{delay:a=0,transitionOverride:s,type:o}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:d,...f}=n;s&&(c=s);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const x=e.getValue(g,e.latestValues[g]??null),b=f[g];if(b===void 0||m&&wC(m,g))continue;const A={delay:a,...Im(c||{},g)},k=x.get();if(k!==void 0&&!x.isAnimating&&!Array.isArray(b)&&b===k&&!A.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const T=g2(e);if(T){const C=window.MotionHandoffAnimation(T,g,dt);C!==null&&(A.startTime=C,S=!0)}}sm(e,g),x.start(tp(g,x,b,e.shouldReduceMotion&&Fw.has(g)?{type:!1}:A,e,S));const E=x.animation;E&&h.push(E)}return d&&Promise.all(h).then(()=>{dt.update(()=>{d&&dC(e,d)})}),h}function x2(e,n,a,s=0,o=1){const c=Array.from(e).sort((m,g)=>m.sortNodePosition(g)).indexOf(n),d=e.size,f=(d-1)*s;return typeof a=="function"?a(c,d):o===1?c*s:f-c*s}function im(e,n,a={}){const s=Fs(e,n,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(o=a.transitionOverride);const c=s?()=>Promise.all(y2(e,s,a)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:x}=o;return SC(e,n,h,m,g,x,a)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[c,d]:[d,c];return h().then(()=>m())}else return Promise.all([c(),d(a.delay)])}function SC(e,n,a=0,s=0,o=0,c=1,d){const f=[];for(const h of e.variantChildren)h.notify("AnimationStart",n),f.push(im(h,n,{...d,delay:a+(typeof s=="function"?0:s)+x2(e.variantChildren,h,s,o,c)}).then(()=>h.notify("AnimationComplete",n)));return Promise.all(f)}function jC(e,n,a={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const o=n.map(c=>im(e,c,a));s=Promise.all(o)}else if(typeof n=="string")s=im(e,n,a);else{const o=typeof n=="function"?Fs(e,n,a.custom):n;s=Promise.all(y2(e,o,a))}return s.then(()=>{e.notify("AnimationComplete",n)})}function v2(e,n){if(!Array.isArray(n))return!1;const a=n.length;if(a!==e.length)return!1;for(let s=0;s<a;s++)if(n[s]!==e[s])return!1;return!0}const AC=Xm.length;function b2(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?b2(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const n={};for(let a=0;a<AC;a++){const s=Xm[a],o=e.props[s];(jo(o)||o===!1)&&(n[s]=o)}return n}const TC=[...Wm].reverse(),EC=Wm.length;function NC(e){return n=>Promise.all(n.map(({animation:a,options:s})=>jC(e,a,s)))}function kC(e){let n=NC(e),a=zv(),s=!0;const o=h=>(m,g)=>{const x=Fs(e,g,h==="exit"?e.presenceContext?.custom:void 0);if(x){const{transition:b,transitionEnd:A,...k}=x;m={...m,...k,...A}}return m};function c(h){n=h(e)}function d(h){const{props:m}=e,g=b2(e.parent)||{},x=[],b=new Set;let A={},k=1/0;for(let E=0;E<EC;E++){const T=TC[E],C=a[T],L=m[T]!==void 0?m[T]:g[T],G=jo(L),N=T===h?C.isActive:null;N===!1&&(k=E);let z=L===g[T]&&L!==m[T]&&G;if(z&&s&&e.manuallyAnimateOnMount&&(z=!1),C.protectedKeys={...A},!C.isActive&&N===null||!L&&!C.prevProp||hu(L)||typeof L=="boolean")continue;const B=_C(C.prevProp,L);let H=B||T===h&&C.isActive&&!z&&G||E>k&&G,M=!1;const R=Array.isArray(L)?L:[L];let Z=R.reduce(o(T),{});N===!1&&(Z={});const{prevResolvedValues:P={}}=C,V={...P,...Z},j=w=>{H=!0,b.has(w)&&(M=!0,b.delete(w)),C.needsAnimating[w]=!0;const ue=e.getValue(w);ue&&(ue.liveStyle=!1)};for(const w in V){const ue=Z[w],I=P[w];if(A.hasOwnProperty(w))continue;let v=!1;am(ue)&&am(I)?v=!v2(ue,I):v=ue!==I,v?ue!=null?j(w):b.add(w):ue!==void 0&&b.has(w)?j(w):C.protectedKeys[w]=!0}C.prevProp=L,C.prevResolvedValues=Z,C.isActive&&(A={...A,...Z}),s&&e.blockInitialAnimation&&(H=!1);const K=z&&B;H&&(!K||M)&&x.push(...R.map(w=>{const ue={type:T};if(typeof w=="string"&&s&&!K&&e.manuallyAnimateOnMount&&e.parent){const{parent:I}=e,v=Fs(I,w);if(I.enteringChildren&&v){const{delayChildren:O}=v.transition||{};ue.delay=x2(I.enteringChildren,e,O)}}return{animation:w,options:ue}}))}if(b.size){const E={};if(typeof m.initial!="boolean"){const T=Fs(e,Array.isArray(m.initial)?m.initial[0]:m.initial);T&&T.transition&&(E.transition=T.transition)}b.forEach(T=>{const C=e.getBaseTarget(T),L=e.getValue(T);L&&(L.liveStyle=!0),E[T]=C??null}),x.push({animation:E})}let S=!!x.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?n(x):Promise.resolve()}function f(h,m){if(a[h].isActive===m)return Promise.resolve();e.variantChildren?.forEach(x=>x.animationState?.setActive(h,m)),a[h].isActive=m;const g=d(h);for(const x in a)a[x].protectedKeys={};return g}return{animateChanges:d,setActive:f,setAnimateFunction:c,getState:()=>a,reset:()=>{a=zv(),s=!0}}}function _C(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!v2(n,e):!1}function Ea(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zv(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}class oa{constructor(n){this.isMounted=!1,this.node=n}update(){}}class OC extends oa{constructor(n){super(n),n.animationState||(n.animationState=kC(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();hu(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:a}=this.node.prevProps||{};n!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let RC=0;class CC extends oa{constructor(){super(...arguments),this.id=RC++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:a}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;const o=this.node.animationState.setActive("exit",!n);a&&!n&&o.then(()=>{a(this.id)})}mount(){const{register:n,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const DC={animation:{Feature:OC},exit:{Feature:CC}};function To(e,n,a,s={passive:!0}){return e.addEventListener(n,a,s),()=>e.removeEventListener(n,a)}function Fo(e){return{point:{x:e.pageX,y:e.pageY}}}const MC=e=>n=>Ym(n)&&e(n,Fo(n));function uo(e,n,a,s){return To(e,n,MC(a),s)}const w2=1e-4,LC=1-w2,PC=1+w2,S2=.01,zC=0-S2,FC=0+S2;function Wt(e){return e.max-e.min}function UC(e,n,a){return Math.abs(e-n)<=a}function Fv(e,n,a,s=.5){e.origin=s,e.originPoint=pt(n.min,n.max,e.origin),e.scale=Wt(a)/Wt(n),e.translate=pt(a.min,a.max,e.origin)-e.originPoint,(e.scale>=LC&&e.scale<=PC||isNaN(e.scale))&&(e.scale=1),(e.translate>=zC&&e.translate<=FC||isNaN(e.translate))&&(e.translate=0)}function fo(e,n,a,s){Fv(e.x,n.x,a.x,s?s.originX:void 0),Fv(e.y,n.y,a.y,s?s.originY:void 0)}function Uv(e,n,a){e.min=a.min+n.min,e.max=e.min+Wt(n)}function BC(e,n,a){Uv(e.x,n.x,a.x),Uv(e.y,n.y,a.y)}function Bv(e,n,a){e.min=n.min-a.min,e.max=e.min+Wt(n)}function ho(e,n,a){Bv(e.x,n.x,a.x),Bv(e.y,n.y,a.y)}function kn(e){return[e("x"),e("y")]}const j2=({current:e})=>e?e.ownerDocument.defaultView:null,Vv=(e,n)=>Math.abs(e-n);function VC(e,n){const a=Vv(e.x,n.x),s=Vv(e.y,n.y);return Math.sqrt(a**2+s**2)}class A2{constructor(n,a,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:d=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 b=ph(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,k=VC(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!k)return;const{point:S}=b,{timestamp:E}=Ft;this.history.push({...S,timestamp:E});const{onStart:T,onMove:C}=this.handlers;A||(T&&T(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,b)},this.handlePointerMove=(b,A)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=mh(A,this.transformPagePoint),dt.update(this.updatePoint,!0)},this.handlePointerUp=(b,A)=>{this.end();const{onEnd:k,onSessionEnd:S,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=ph(b.type==="pointercancel"?this.lastMoveEventInfo:mh(A,this.transformPagePoint),this.history);this.startEvent&&k&&k(b,T),S&&S(b,T)},!Ym(n))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=s,this.distanceThreshold=d,this.contextWindow=o||window;const f=Fo(n),h=mh(f,this.transformPagePoint),{point:m}=h,{timestamp:g}=Ft;this.history=[{...m,timestamp:g}];const{onSessionStart:x}=a;x&&x(n,ph(h,this.history)),this.removeListeners=Lo(uo(this.contextWindow,"pointermove",this.handlePointerMove),uo(this.contextWindow,"pointerup",this.handlePointerUp),uo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),ra(this.updatePoint)}}function mh(e,n){return n?{point:n(e.point)}:e}function Hv(e,n){return{x:e.x-n.x,y:e.y-n.y}}function ph({point:e},n){return{point:e,delta:Hv(e,T2(n)),offset:Hv(e,HC(n)),velocity:IC(n,.1)}}function HC(e){return e[0]}function T2(e){return e[e.length-1]}function IC(e,n){if(e.length<2)return{x:0,y:0};let a=e.length-1,s=null;const o=T2(e);for(;a>=0&&(s=e[a],!(o.timestamp-s.timestamp>tr(n)));)a--;if(!s)return{x:0,y:0};const c=nr(o.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const d={x:(o.x-s.x)/c,y:(o.y-s.y)/c};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function GC(e,{min:n,max:a},s){return n!==void 0&&e<n?e=s?pt(n,e,s.min):Math.max(e,n):a!==void 0&&e>a&&(e=s?pt(a,e,s.max):Math.min(e,a)),e}function Iv(e,n,a){return{min:n!==void 0?e.min+n:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function qC(e,{top:n,left:a,bottom:s,right:o}){return{x:Iv(e.x,a,o),y:Iv(e.y,n,s)}}function Gv(e,n){let a=n.min-e.min,s=n.max-e.max;return n.max-n.min<e.max-e.min&&([a,s]=[s,a]),{min:a,max:s}}function YC(e,n){return{x:Gv(e.x,n.x),y:Gv(e.y,n.y)}}function WC(e,n){let a=.5;const s=Wt(e),o=Wt(n);return o>s?a=bo(n.min,n.max-s,e.min):s>o&&(a=bo(e.min,e.max-o,n.min)),Er(0,1,a)}function XC(e,n){const a={};return n.min!==void 0&&(a.min=n.min-e.min),n.max!==void 0&&(a.max=n.max-e.min),a}const om=.35;function KC(e=om){return e===!1?e=0:e===!0&&(e=om),{x:qv(e,"left","right"),y:qv(e,"top","bottom")}}function qv(e,n,a){return{min:Yv(e,n),max:Yv(e,a)}}function Yv(e,n){return typeof e=="number"?e:e[n]||0}const ZC=new WeakMap;class $C{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=St(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:a=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=x=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Fo(x).point)},d=(x,b)=>{const{drag:A,dragPropagation:k,onDragStart:S}=this.getProps();if(A&&!k&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lR(A),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kn(T=>{let C=this.getAxisMotionValue(T).get()||0;if(rr.test(C)){const{projection:L}=this.visualElement;if(L&&L.layout){const G=L.layout.layoutBox[T];G&&(C=Wt(G)*(parseFloat(C)/100))}}this.originPoint[T]=C}),S&&dt.postRender(()=>S(x,b)),sm(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},f=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b;const{dragPropagation:A,dragDirectionLock:k,onDirectionLock:S,onDrag:E}=this.getProps();if(!A&&!this.openDragLock)return;const{offset:T}=b;if(k&&this.currentDirection===null){this.currentDirection=QC(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",b.point,T),this.updateAxis("y",b.point,T),this.visualElement.render(),E&&E(x,b)},h=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b,this.stop(x,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>kn(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new A2(n,{onSessionStart:c,onStart:d,onMove:f,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:j2(this.visualElement)})}stop(n,a){const s=n||this.latestPointerEvent,o=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!s)return;const{velocity:d}=o;this.startAnimation(d);const{onDragEnd:f}=this.getProps();f&&dt.postRender(()=>f(s,o))}cancel(){this.isDragging=!1;const{projection:n,animationState:a}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(n,a,s){const{drag:o}=this.getProps();if(!s||!ic(n,o,this.currentDirection))return;const c=this.getAxisMotionValue(n);let d=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(d=GC(d,this.constraints[n],this.elastic[n])),c.set(d)}resolveConstraints(){const{dragConstraints:n,dragElastic:a}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;n&&Os(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=qC(s.layoutBox,n):this.constraints=!1,this.elastic=KC(a),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&kn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=XC(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:a}=this.getProps();if(!n||!Os(n))return!1;const s=n.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=JR(s,o.root,this.visualElement.getTransformPagePoint());let d=YC(o.layout.layoutBox,c);if(a){const f=a(ZR(d));this.hasMutatedConstraints=!!f,f&&(d=l2(f))}return d}startAnimation(n){const{drag:a,dragMomentum:s,dragElastic:o,dragTransition:c,dragSnapToOrigin:d,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=kn(g=>{if(!ic(g,a,this.currentDirection))return;let x=h&&h[g]||{};d&&(x={min:0,max:0});const b=o?200:1e6,A=o?40:1e7,k={type:"inertia",velocity:s?n[g]:0,bounceStiffness:b,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...c,...x};return this.startAxisValueAnimation(g,k)});return Promise.all(m).then(f)}startAxisValueAnimation(n,a){const s=this.getAxisMotionValue(n);return sm(this.visualElement,n),s.start(tp(n,s,0,a,this.visualElement,!1))}stopAnimation(){kn(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){kn(n=>this.getAxisMotionValue(n).animation?.pause())}getAnimationState(n){return this.getAxisMotionValue(n).animation?.state}getAxisMotionValue(n){const a=`_drag${n.toUpperCase()}`,s=this.visualElement.getProps(),o=s[a];return o||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){kn(a=>{const{drag:s}=this.getProps();if(!ic(a,s,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(a);if(o&&o.layout){const{min:d,max:f}=o.layout.layoutBox[a];c.set(n[a]-pt(d,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:a}=this.getProps(),{projection:s}=this.visualElement;if(!Os(a)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};kn(d=>{const f=this.getAxisMotionValue(d);if(f&&this.constraints!==!1){const h=f.get();o[d]=WC({min:h,max:h},this.constraints[d])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),kn(d=>{if(!ic(d,n,null))return;const f=this.getAxisMotionValue(d),{min:h,max:m}=this.constraints[d];f.set(pt(h,m,o[d]))})}addListeners(){if(!this.visualElement.current)return;ZC.set(this.visualElement,this);const n=this.visualElement.current,a=uo(n,"pointerdown",h=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();Os(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),dt.read(s);const d=To(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(kn(g=>{const x=this.getAxisMotionValue(g);x&&(this.originPoint[g]+=h[g].translate,x.set(x.get()+h[g].translate))}),this.visualElement.render())});return()=>{d(),a(),c(),f&&f()}}getProps(){const n=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:d=om,dragMomentum:f=!0}=n;return{...n,drag:a,dragDirectionLock:s,dragPropagation:o,dragConstraints:c,dragElastic:d,dragMomentum:f}}}function ic(e,n,a){return(n===!0||n===e)&&(a===null||a===e)}function QC(e,n=10){let a=null;return Math.abs(e.y)>n?a="y":Math.abs(e.x)>n&&(a="x"),a}class JC extends oa{constructor(n){super(n),this.removeGroupControls=Rn,this.removeListeners=Rn,this.controls=new $C(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Wv=e=>(n,a)=>{e&&dt.postRender(()=>e(n,a))};class e6 extends oa{constructor(){super(...arguments),this.removePointerDownListener=Rn}onPointerDown(n){this.session=new A2(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:j2(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:a,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:Wv(n),onStart:Wv(a),onMove:s,onEnd:(c,d)=>{delete this.session,o&&dt.postRender(()=>o(c,d))}}}mount(){this.removePointerDownListener=uo(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xv(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const eo={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(Fe.test(e))e=parseFloat(e);else return e;const a=Xv(e,n.target.x),s=Xv(e,n.target.y);return`${a}% ${s}%`}},t6={correct:(e,{treeScale:n,projectionDelta:a})=>{const s=e,o=aa.parse(e);if(o.length>5)return s;const c=aa.createTransformer(e),d=typeof o[0]!="number"?1:0,f=a.x.scale*n.x,h=a.y.scale*n.y;o[0+d]/=f,o[1+d]/=h;const m=pt(f,h,.5);return typeof o[2+d]=="number"&&(o[2+d]/=m),typeof o[3+d]=="number"&&(o[3+d]/=m),c(o)}};let gh=!1;class n6 extends W.Component{componentDidMount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s,layoutId:o}=this.props,{projection:c}=n;AR(r6),c&&(a.group&&a.group.add(c),s&&s.register&&o&&s.register(c),gh&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:a,visualElement:s,drag:o,isPresent:c}=this.props,{projection:d}=s;return d&&(d.isPresent=c,gh=!0,o||n.layoutDependency!==a||a===void 0||n.isPresent!==c?d.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?d.promote():d.relegate()||dt.postRender(()=>{const f=d.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),qm.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s}=this.props,{projection:o}=n;gh=!0,o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function E2(e){const[n,a]=yR(),s=W.useContext(aw);return u.jsx(n6,{...e,layoutGroup:s,switchLayoutGroup:W.useContext(i2),isPresent:n,safeToRemove:a})}const r6={borderRadius:{...eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomLeftRadius:eo,borderBottomRightRadius:eo,boxShadow:t6};function a6(e,n,a){const s=Gt(e)?e:Hs(e);return s.start(tp("",s,n,a)),s.animation}const s6=(e,n)=>e.depth-n.depth;class i6{constructor(){this.children=[],this.isDirty=!1}add(n){Em(this.children,n),this.isDirty=!0}remove(n){Nm(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(s6),this.isDirty=!1,this.children.forEach(n)}}function o6(e,n){const a=tn.now(),s=({timestamp:o})=>{const c=o-a;c>=n&&(ra(s),e(c-n))};return dt.setup(s,!0),()=>ra(s)}const N2=["TopLeft","TopRight","BottomLeft","BottomRight"],l6=N2.length,Kv=e=>typeof e=="string"?parseFloat(e):e,Zv=e=>typeof e=="number"||Fe.test(e);function c6(e,n,a,s,o,c){o?(e.opacity=pt(0,a.opacity??1,u6(s)),e.opacityExit=pt(n.opacity??1,0,d6(s))):c&&(e.opacity=pt(n.opacity??1,a.opacity??1,s));for(let d=0;d<l6;d++){const f=`border${N2[d]}Radius`;let h=$v(n,f),m=$v(a,f);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||Zv(h)===Zv(m)?(e[f]=Math.max(pt(Kv(h),Kv(m),s),0),(rr.test(m)||rr.test(h))&&(e[f]+="%")):e[f]=m}(n.rotate||a.rotate)&&(e.rotate=pt(n.rotate||0,a.rotate||0,s))}function $v(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const u6=k2(0,.5,pw),d6=k2(.5,.95,Rn);function k2(e,n,a){return s=>s<e?0:s>n?1:a(bo(e,n,s))}function Qv(e,n){e.min=n.min,e.max=n.max}function Nn(e,n){Qv(e.x,n.x),Qv(e.y,n.y)}function Jv(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function eb(e,n,a,s,o){return e-=n,e=Ic(e,1/a,s),o!==void 0&&(e=Ic(e,1/o,s)),e}function f6(e,n=0,a=1,s=.5,o,c=e,d=e){if(rr.test(n)&&(n=parseFloat(n),n=pt(d.min,d.max,n/100)-d.min),typeof n!="number")return;let f=pt(c.min,c.max,s);e===c&&(f-=n),e.min=eb(e.min,n,a,f,o),e.max=eb(e.max,n,a,f,o)}function tb(e,n,[a,s,o],c,d){f6(e,n[a],n[s],n[o],n.scale,c,d)}const h6=["x","scaleX","originX"],m6=["y","scaleY","originY"];function nb(e,n,a,s){tb(e.x,n,h6,a?a.x:void 0,s?s.x:void 0),tb(e.y,n,m6,a?a.y:void 0,s?s.y:void 0)}function rb(e){return e.translate===0&&e.scale===1}function _2(e){return rb(e.x)&&rb(e.y)}function ab(e,n){return e.min===n.min&&e.max===n.max}function p6(e,n){return ab(e.x,n.x)&&ab(e.y,n.y)}function sb(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function O2(e,n){return sb(e.x,n.x)&&sb(e.y,n.y)}function ib(e){return Wt(e.x)/Wt(e.y)}function ob(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class g6{constructor(){this.members=[]}add(n){Em(this.members,n),n.scheduleRender()}remove(n){if(Nm(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(n){const a=this.members.findIndex(o=>n===o);if(a===0)return!1;let s;for(let o=a;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){s=c;break}}return s?(this.promote(s),!0):!1}promote(n,a){const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.instance&&s.scheduleRender(),n.scheduleRender(),n.resumeFrom=s,a&&(n.resumeFrom.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:o}=n.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:a,resumingFrom:s}=n;a.onExitComplete&&a.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function y6(e,n,a){let s="";const o=e.x.translate/n.x,c=e.y.translate/n.y,d=a?.z||0;if((o||c||d)&&(s=`translate3d(${o}px, ${c}px, ${d}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),a){const{transformPerspective:m,rotate:g,rotateX:x,rotateY:b,skewX:A,skewY:k}=a;m&&(s=`perspective(${m}px) ${s}`),g&&(s+=`rotate(${g}deg) `),x&&(s+=`rotateX(${x}deg) `),b&&(s+=`rotateY(${b}deg) `),A&&(s+=`skewX(${A}deg) `),k&&(s+=`skewY(${k}deg) `)}const f=e.x.scale*n.x,h=e.y.scale*n.y;return(f!==1||h!==1)&&(s+=`scale(${f}, ${h})`),s||"none"}const yh=["","X","Y","Z"],x6=1e3;let v6=0;function xh(e,n,a,s){const{latestValues:o}=n;o[e]&&(a[e]=o[e],n.setStaticValue(e,0),s&&(s[e]=0))}function R2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const a=g2(n);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",dt,!(o||c))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&R2(s)}function C2({attachResizeListener:e,defaultParent:n,measureScroll:a,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(d={},f=n?.()){this.id=v6++,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(S6),this.nodes.forEach(E6),this.nodes.forEach(N6),this.nodes.forEach(j6)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new i6)}addEventListener(d,f){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Om),this.eventHandlers.get(d).add(f)}notifyListeners(d,...f){const h=this.eventHandlers.get(d);h&&h.notify(...f)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Ww(d)&&!mR(d),this.instance=d;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||f)&&(this.isLayoutDirty=!0),e){let g,x=0;const b=()=>this.root.updateBlockedByResize=!1;dt.read(()=>{x=window.innerWidth}),e(d,()=>{const A=window.innerWidth;A!==x&&(x=A,this.root.updateBlockedByResize=!0,g&&g(),g=o6(b,250),Tc.hasAnimatedSinceResize&&(Tc.hasAnimatedSinceResize=!1,this.nodes.forEach(ub)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:b,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||m.getDefaultTransition()||C6,{onLayoutAnimationStart:S,onLayoutAnimationComplete:E}=m.getProps(),T=!this.targetLayout||!O2(this.targetLayout,A),C=!x&&b;if(this.options.layoutRoot||this.resumeFrom||C||x&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...Im(k,"layout"),onPlay:S,onComplete:E};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(g,C)}else x||ub(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ra(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(k6),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&R2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(lb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(cb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(T6),this.nodes.forEach(b6),this.nodes.forEach(w6)):this.nodes.forEach(cb),this.clearAllSnapshots();const f=tn.now();Ft.delta=Er(0,1e3/60,f-Ft.timestamp),Ft.timestamp=f,Ft.isProcessing=!0,ih.update.process(Ft),ih.preRender.process(Ft),ih.render.process(Ft),Ft.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(A6),this.sharedNodes.forEach(_6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Wt(this.snapshot.measuredBox.x)&&!Wt(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 h=0;h<this.path.length;h++)this.path[h].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=St(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(f=!1),f&&this.instance){const h=s(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:h,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!_2(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;d&&this.instance&&(f||ka(this.latestValues)||g)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return d&&(h=this.removeTransform(h)),D6(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return St();const f=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(M6))){const{scroll:m}=this.root;m&&(Rs(f.x,m.offset.x),Rs(f.y,m.offset.y))}return f}removeElementScroll(d){const f=St();if(Nn(f,d),this.scroll?.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:x}=m;m!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&Nn(f,d),Rs(f.x,g.offset.x),Rs(f.y,g.offset.y))}return f}applyTransform(d,f=!1){const h=St();Nn(h,d);for(let m=0;m<this.path.length;m++){const g=this.path[m];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Cs(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ka(g.latestValues)&&Cs(h,g.latestValues)}return ka(this.latestValues)&&Cs(h,this.latestValues),h}removeTransform(d){const f=St();Nn(f,d);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!ka(m.latestValues))continue;tm(m.latestValues)&&m.updateSnapshot();const g=St(),x=m.measurePageBox();Nn(g,x),nb(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return ka(this.latestValues)&&nb(f,this.latestValues),f}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==Ft.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(d||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=Ft.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=St(),this.relativeTargetOrigin=St(),ho(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=St(),this.targetWithTransforms=St()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),BC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Nn(this.target,this.layout.layoutBox),u2(this.target,this.targetDelta)):Nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=St(),this.relativeTargetOrigin=St(),ho(this.relativeTargetOrigin,this.target,b.target),Nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||tm(this.parent.latestValues)||c2(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 d=this.getLead(),f=!!this.resumingFrom||this!==d;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Ft.timestamp&&(h=!1),h)return;const{layout:m,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||g))return;Nn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;QR(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=St());const{target:A}=d;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jv(this.prevProjectionDelta.x,this.projectionDelta.x),Jv(this.prevProjectionDelta.y,this.projectionDelta.y)),fo(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!ob(this.projectionDelta.x,this.prevProjectionDelta.x)||!ob(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ds(),this.projectionDelta=Ds(),this.projectionDeltaWithTransform=Ds()}setAnimationOrigin(d,f=!1){const h=this.snapshot,m=h?h.latestValues:{},g={...this.latestValues},x=Ds();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=St(),A=h?h.source:void 0,k=this.layout?this.layout.source:void 0,S=A!==k,E=this.getStack(),T=!E||E.members.length<=1,C=!!(S&&!T&&this.options.crossfade===!0&&!this.path.some(R6));this.animationProgress=0;let L;this.mixTargetDelta=G=>{const N=G/1e3;db(x.x,d.x,N),db(x.y,d.y,N),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ho(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),O6(this.relativeTarget,this.relativeTargetOrigin,b,N),L&&p6(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=St()),Nn(L,this.relativeTarget)),S&&(this.animationValues=g,c6(g,m,this.latestValues,N,C,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ra(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dt.update(()=>{Tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Hs(0)),this.currentAnimation=a6(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),d.onUpdate&&d.onUpdate(f)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(x6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:g}=d;if(!(!f||!h||!m)){if(this!==d&&this.layout&&m&&D2(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||St();const x=Wt(this.layout.layoutBox.x);h.x.min=d.target.x.min,h.x.max=h.x.min+x;const b=Wt(this.layout.layoutBox.y);h.y.min=d.target.y.min,h.y.max=h.y.min+b}Nn(f,h),Cs(f,g),fo(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(d,f){this.sharedNodes.has(d)||this.sharedNodes.set(d,new g6),this.sharedNodes.get(d).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),d&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let f=!1;const{latestValues:h}=d;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const m={};h.z&&xh("z",d,m,this.animationValues);for(let g=0;g<yh.length;g++)xh(`rotate${yh[g]}`,d,m,this.animationValues),xh(`skew${yh[g]}`,d,m,this.animationValues);d.render();for(const g in m)d.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);d.scheduleRender()}applyProjectionStyles(d,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Ac(f?.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Ac(f?.pointerEvents)||""),this.hasProjected&&!ka(this.latestValues)&&(d.transform=h?h({},""):"none",this.hasProjected=!1);return}d.visibility="";const g=m.animationValues||m.latestValues;this.applyTransformsToTarget();let x=y6(this.projectionDeltaWithTransform,this.treeScale,g);h&&(x=h(g,x)),d.transform=x;const{x:b,y:A}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${A.origin*100}% 0`,m.animationValues?d.opacity=m===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const k in Ao){if(g[k]===void 0)continue;const{correct:S,applyTo:E,isCSSVariable:T}=Ao[k],C=x==="none"?g[k]:S(g[k],m);if(E){const L=E.length;for(let G=0;G<L;G++)d[E[G]]=C}else T?this.options.visualElement.renderState.vars[k]=C:d[k]=C}this.options.layoutId&&(d.pointerEvents=m===this?Ac(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(lb),this.root.sharedNodes.clear()}}}function b6(e){e.updateLayout()}function w6(e){const n=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:s}=e.layout,{animationType:o}=e.options,c=n.source!==e.layout.source;o==="size"?kn(g=>{const x=c?n.measuredBox[g]:n.layoutBox[g],b=Wt(x);x.min=a[g].min,x.max=x.min+b}):D2(o,n.layoutBox,a)&&kn(g=>{const x=c?n.measuredBox[g]:n.layoutBox[g],b=Wt(a[g]);x.max=x.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const d=Ds();fo(d,a,n.layoutBox);const f=Ds();c?fo(f,e.applyTransform(s,!0),n.measuredBox):fo(f,a,n.layoutBox);const h=!_2(d);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:b}=g;if(x&&b){const A=St();ho(A,n.layoutBox,x.layoutBox);const k=St();ho(k,a,b.layoutBox),O2(A,k)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=A,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function S6(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function j6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function A6(e){e.clearSnapshot()}function lb(e){e.clearMeasurements()}function cb(e){e.isLayoutDirty=!1}function T6(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function ub(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function E6(e){e.resolveTargetDelta()}function N6(e){e.calcProjection()}function k6(e){e.resetSkewAndRotation()}function _6(e){e.removeLeadSnapshot()}function db(e,n,a){e.translate=pt(n.translate,0,a),e.scale=pt(n.scale,1,a),e.origin=n.origin,e.originPoint=n.originPoint}function fb(e,n,a,s){e.min=pt(n.min,a.min,s),e.max=pt(n.max,a.max,s)}function O6(e,n,a,s){fb(e.x,n.x,a.x,s),fb(e.y,n.y,a.y,s)}function R6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const C6={duration:.45,ease:[.4,0,.1,1]},hb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mb=hb("applewebkit/")&&!hb("chrome/")?Math.round:Rn;function pb(e){e.min=mb(e.min),e.max=mb(e.max)}function D6(e){pb(e.x),pb(e.y)}function D2(e,n,a){return e==="position"||e==="preserve-aspect"&&!UC(ib(n),ib(a),.2)}function M6(e){return e!==e.root&&e.scroll?.wasRoot}const L6=C2({attachResizeListener:(e,n)=>To(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vh={current:void 0},M2=C2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vh.current){const e=new L6({});e.mount(window),e.setOptions({layoutScroll:!0}),vh.current=e}return vh.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),P6={pan:{Feature:e6},drag:{Feature:JC,ProjectionNode:M2,MeasureLayout:E2}};function gb(e,n,a){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",a==="Start");const o="onHover"+a,c=s[o];c&&dt.postRender(()=>c(n,Fo(n)))}class z6 extends oa{mount(){const{current:n}=this.node;n&&(this.unmount=cR(n,(a,s)=>(gb(this.node,s,"Start"),o=>gb(this.node,o,"End"))))}unmount(){}}class F6 extends oa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=Lo(To(this.node.current,"focus",()=>this.onFocus()),To(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yb(e,n,a){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",a==="Start");const o="onTap"+(a==="End"?"":a),c=s[o];c&&dt.postRender(()=>c(n,Fo(n)))}class U6 extends oa{mount(){const{current:n}=this.node;n&&(this.unmount=hR(n,(a,s)=>(yb(this.node,s,"Start"),(o,{success:c})=>yb(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const lm=new WeakMap,bh=new WeakMap,B6=e=>{const n=lm.get(e.target);n&&n(e)},V6=e=>{e.forEach(B6)};function H6({root:e,...n}){const a=e||document;bh.has(a)||bh.set(a,{});const s=bh.get(a),o=JSON.stringify(n);return s[o]||(s[o]=new IntersectionObserver(V6,{root:e,...n})),s[o]}function I6(e,n,a){const s=H6(n);return lm.set(e,a),s.observe(e),()=>{lm.delete(e),s.unobserve(e)}}const G6={some:0,all:1};class q6 extends oa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:a,margin:s,amount:o="some",once:c}=n,d={root:a?a.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:G6[o]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,c&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),b=m?g:x;b&&b(h)};return I6(this.node.current,d,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:a}=this.node;["amount","margin","root"].some(Y6(n,a))&&this.startObserver()}unmount(){}}function Y6({viewport:e={}},{viewport:n={}}={}){return a=>e[a]!==n[a]}const W6={inView:{Feature:q6},tap:{Feature:U6},focus:{Feature:F6},hover:{Feature:z6}},X6={layout:{ProjectionNode:M2,MeasureLayout:E2}},K6={...DC,...W6,...P6,...X6},mn=KR(K6,lC),Z6=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return u.jsxs("div",{className:"mb-4",children:[u.jsxs("div",{className:"flex justify-between mb-1 text-sm text-yellow-400",children:[u.jsx("span",{children:e}),u.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),u.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:u.jsx(mn.div,{initial:{width:0},animate:{width:`${s}%`},transition:{duration:1.2},className:"h-full bg-yellow-400"})})]})};function $6(){const e=Xt(),[n,a]=W.useState("3 Days 4 Hours"),[s,o]=W.useState([]),[c,d]=W.useState(!1),f=We(kr),h=async()=>{if(f?._id){d(!0);try{const x=Ue.getToken(),b=await fetch(`${On}${rt.BBR_PAST_WINS}/${f._id}`,{method:"GET",headers:{Authorization:`Bearer ${x}`,"Content-Type":"application/json"}});if(b.ok){const A=await b.json();A.success&&A.data.pastWins&&o(A.data.pastWins)}else console.error("Failed to fetch past wins:",b.statusText)}catch(x){console.error("Error fetching past wins:",x),it("Failed to load past wins")}finally{d(!1)}}};W.useEffect(()=>{const x=setInterval(()=>{a("3 Days 3 Hours 59 Min")},6e4);return()=>clearInterval(x)},[]),W.useEffect(()=>{h()},[f?._id]);const m=[{name:"Ali Khan",rides:100,reward:"50 AED",status:"Achieved"},{name:"Maria Sohail",rides:90,reward:"50 AED",status:"Locked"},{name:"Zain Malik",rides:85,reward:"50 AED",status:"Locked"},{name:"You",rides:62,reward:"50 AED",status:"Locked",highlight:!0}],g=x=>new Date(x).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-5 flex flex-col items-center p-6 pt-20 pb-12 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-5xl mb-4",children:u.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("div",{className:"w-full md:mt-24 max-w-5xl mb-8  p-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)"},children:u.jsx("h2",{className:"text-3xl font-extrabold flex items-center justify-center gap-2",children:"🚀 Bonus Booster Rewards (BBR)"})}),u.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📢 Current Campaign"}),u.jsxs("ul",{className:"space-y-2 text-yellow-300",children:[u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Name:"})," Weekly Turbo Booster"]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Requirement:"})," 100 Rides"]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Duration:"})," 7 Days"]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Period:"})," 14 Aug – 21 Aug"]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-semibold",children:"Type:"})," Solo or Team (Newbie rides count only)"]})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📊 Progress Tracker"}),u.jsx(Z6,{label:"Total Rides",value:62,max:100}),u.jsxs("div",{className:"text-yellow-300 space-y-2",children:[u.jsx("p",{children:"• You Alone: 45 Rides"}),u.jsx("p",{children:"• Newbie Team: 17 Rides"}),u.jsxs("p",{className:"text-sm",children:["⏳ Time Left: ",n]})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"🔥 Motivation Zone"}),u.jsxs("div",{className:"text-yellow-300 space-y-2",children:[u.jsxs("p",{children:["• You need ",u.jsx("span",{className:"font-semibold",children:"13 more rides/day"})," ","to win!"]}),u.jsx("p",{children:"• 3 of your newbie team members are active — motivate them!"})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"🏅 Reward Preview"}),u.jsx("p",{className:"text-yellow-300 font-semibold",children:"🎁 AED 550 Bonus + Priority Rides (1 Week)"}),u.jsx("p",{className:"text-red-400 font-semibold mt-2",children:"🔒 Locked until 100 rides achieved"})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8",children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📈 Leaderboard"}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-64 overflow-y-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-[#013220]",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsxs("table",{className:"w-full text-left text-yellow-400",children:[u.jsx("thead",{className:"sticky top-0 bg-[rgba(1,50,32,1)]",children:u.jsxs("tr",{className:"border-b border-yellow-600",children:[u.jsx("th",{className:"p-4",children:"Rank"}),u.jsx("th",{className:"p-4",children:"Name"}),u.jsx("th",{className:"p-4",children:"Rides"}),u.jsx("th",{className:"p-4",children:"Reward"}),u.jsx("th",{className:"p-4",children:"Status"})]})}),u.jsx("tbody",{children:m.map((x,b)=>u.jsxs("tr",{className:`border-b border-yellow-700/50 hover:bg-yellow-900/20 ${x.highlight?"bg-yellow-900/50 font-bold":""}`,children:[u.jsx("td",{className:"p-4",children:b+1}),u.jsx("td",{className:"p-4",children:x.name}),u.jsxs("td",{className:"p-4",children:[x.rides," rides"]}),u.jsx("td",{className:"p-4",children:x.reward}),u.jsx("td",{className:"p-4",children:x.status})]},b))})]})})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-8",children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📜 Past Booster Wins"}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-64 overflow-y-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-[#013220]",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsxs("table",{className:"w-full text-left text-yellow-400",children:[u.jsx("thead",{className:"sticky top-0 bg-[rgba(1,50,32,1)]",children:u.jsxs("tr",{className:"border-b border-yellow-600",children:[u.jsx("th",{className:"p-4",children:"Campaign"}),u.jsx("th",{className:"p-4",children:"Reward"}),u.jsx("th",{className:"p-4",children:"Date"}),u.jsx("th",{className:"p-4",children:"Status"})]})}),u.jsx("tbody",{children:c?u.jsx("tr",{children:u.jsx("td",{colSpan:"4",className:"p-4 text-center text-yellow-300",children:"Loading past wins..."})}):s.length>0?s.map((x,b)=>u.jsxs("tr",{className:"border-b border-yellow-700/50 hover:bg-yellow-900/20",children:[u.jsx("td",{className:"p-4",children:x.name}),u.jsxs("td",{className:"p-4",children:["AED ",x.reward]}),u.jsx("td",{className:"p-4",children:g(x.date)}),u.jsx("td",{className:"p-4 text-green-400",children:x.status})]},b)):u.jsx("tr",{children:u.jsx("td",{colSpan:"4",className:"p-4 text-center text-yellow-300",children:"No past wins found"})})})]})})]}),u.jsxs("div",{className:"rounded-xl p-6 mb-4 text-center max-w-3xl shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center justify-center gap-2 text-yellow-400",children:"💡 Tips"}),u.jsxs("ul",{className:"list-disc list-inside text-yellow-300 space-y-2",children:[u.jsx("li",{children:"✔ Focus on peak hours to get more rides"}),u.jsx("li",{children:"✔ Encourage newbie team to stay active"})]})]}),u.jsx("style",{children:`
        .scrollbar-thin::-webkit-scrollbar {
          width: 8px;
        }
        .scrollbar-thin::-webkit-scrollbar-thumb {
          background-color: #ffd700;
          border-radius: 4px;
        }
        .scrollbar-thin::-webkit-scrollbar-track {
          background-color: #013220;
        }
      `})]})}const xb=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return u.jsxs("div",{className:"mb-4",children:[u.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[u.jsx("span",{children:e}),u.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),u.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:u.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function Q6(){const e=Xt(),[n,a]=W.useState(!1),[s,o]=W.useState(null),[c,d]=W.useState([]),[f,h]=W.useState(!1),[m,g]=W.useState(!1),x=We(kr),b=async()=>{if(x?._id){h(!0);try{const E=Ue.getToken(),T=await fetch(`${On}${rt.HLR_PROGRESS}/${x._id}`,{method:"GET",headers:{Authorization:`Bearer ${E}`,"Content-Type":"application/json"}});if(T.ok){const C=await T.json();C.success&&o(C.data)}else console.error("Failed to fetch HLR progress:",T.statusText)}catch(E){console.error("Error fetching HLR progress:",E),it("Failed to load HLR progress")}finally{h(!1)}}},A=async()=>{g(!0);try{const E=Ue.getToken(),T=await fetch(`${On}${rt.HLR_LEADERBOARD}?page=1&limit=20`,{method:"GET",headers:{Authorization:`Bearer ${E}`,"Content-Type":"application/json"}});if(T.ok){const C=await T.json();C.success&&C.data.leaderboard&&d(C.data.leaderboard)}else console.error("Failed to fetch HLR leaderboard:",T.statusText)}catch(E){console.error("Error fetching HLR leaderboard:",E),it("Failed to load HLR leaderboard")}finally{g(!1)}};W.useEffect(()=>{b(),A()},[x?._id]);const k=s?{value:s.progress.currentPGP,max:s.requirements.requiredPGP}:{value:0,max:2e5},S=s?{value:s.progress.currentTGP,max:s.requirements.requiredTGP}:{value:0,max:6e6};return u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 transition-colors duration-300 mb-10",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-5xl mb-4",children:u.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("h1",{className:"text-2xl font-bold my-6 text-center",children:"🏆 HonorPay Loyalty Rewards (HLR)"}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg text-left",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-3",children:"🎯 Reward Conditions"}),u.jsxs("ul",{className:"list-disc ml-6 text-sm leading-6",children:[u.jsxs("li",{children:["One-time reward given at retirement (Age ",s?.requirements?.retirementAge||55,")."]}),u.jsx("li",{children:"Or instantly if qualified and passed away."}),u.jsxs("li",{children:["Required PGP: ",u.jsx("b",{children:s?.requirements?.requiredPGP?.toLocaleString()||"200,000"})]}),u.jsxs("li",{children:["Required TGP: ",u.jsx("b",{children:s?.requirements?.requiredTGP?.toLocaleString()||"6,000,000"})]}),u.jsxs("li",{children:["Reward Amount: ",u.jsxs("b",{children:["AED ",s?.requirements?.rewardAmount?.toLocaleString()||"60,000"]})]})]})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"📊 Your Progress"}),f?u.jsx("div",{className:"text-center text-yellow-300 py-4",children:"Loading progress data..."}):u.jsxs(u.Fragment,{children:[u.jsx(xb,{label:"PGP Progress",value:k.value,max:k.max}),u.jsx(xb,{label:"TGP Progress",value:S.value,max:S.max}),u.jsxs("p",{className:"mt-2 italic text-sm text-gray-200",children:["▓▓▓▓▓▓▓▓░░░░"," ",s?.progress?.overallProgress?(s.progress.overallProgress*100).toFixed(0):((k.value/k.max+S.value/S.max)/2*100).toFixed(0),"% Complete"]}),s?.qualification&&u.jsx("div",{className:"mt-4 p-3 rounded-lg bg-yellow-900/30",children:u.jsxs("p",{className:"text-sm",children:[u.jsx("span",{className:s.qualification.isQualified?"text-green-400":"text-red-400",children:s.qualification.isQualified?"✅ Qualified":"❌ Not Qualified"}),s.qualification.isRetirementEligible&&u.jsx("span",{className:"ml-4 text-green-400",children:"🎂 Retirement Eligible"})]})})]})]}),u.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"🏅 Leaderboard – Qualified Members"}),u.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:m?u.jsx("div",{className:"text-center text-yellow-300 py-4",children:"Loading leaderboard..."}):c.length>0?(n?c:c.slice(0,5)).map(E=>u.jsxs("div",{className:"flex justify-between px-4 py-2 border-b border-yellow-900",children:[u.jsxs("span",{children:[E.rank,"."]}),u.jsxs("span",{children:[E.name," – ",E.flag," ",E.country]}),u.jsx("span",{className:E.isQualified?"text-green-400":"text-yellow-400",children:E.rewardClaimed?`AED ${E.totalPoints?.toLocaleString()||0}`:E.status})]},E.rank)):u.jsx("div",{className:"text-center text-yellow-300 py-4",children:"No leaderboard data available"})}),u.jsxs("p",{className:"mt-2 text-sm italic",children:["Total Qualified: ",u.jsxs("b",{children:[c.filter(E=>E.isQualified).length," Members"]})]}),c.length>5&&u.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>a(!n),children:n?"Show Less":"View All"})]}),u.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg mb-5",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsx("p",{className:"italic",children:"💡 Tip: Boost your TGP by mentoring active leaders in your team."})})]})}const J6=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return u.jsxs("div",{className:"mb-4",children:[u.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[u.jsx("span",{children:e}),u.jsxs("span",{children:[s.toFixed(0),"% Achieved"]})]}),u.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:u.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function eD(){const e=Xt(),n=We(kr),[a,s]=W.useState(null),[o,c]=W.useState([]),[d,f]=W.useState([]),[h,m]=W.useState(!0),[g,x]=W.useState(!0),[b,A]=W.useState(!0),k=async()=>{try{const C=Ue.getToken();if(!C||!n?._id)return;const L=await fetch(`${On}${rt.REGIONAL_PROGRESS}/${n._id}`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const G=await L.json();G.success&&s(G.data)}}catch(C){console.error("Error fetching progress data:",C),it("Failed to load progress data")}finally{m(!1)}},S=async()=>{try{const C=Ue.getToken();if(!C)return;const L=await fetch(`${On}${rt.REGIONAL_LEADERBOARD}?page=1&limit=20`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const G=await L.json();G.success&&c(G.data.leaderboard||[])}}catch(C){console.error("Error fetching leaderboard data:",C),it("Failed to load leaderboard data")}finally{x(!1)}},E=async()=>{try{const C=Ue.getToken();if(!C)return;const L=await fetch(`${On}${rt.REGIONAL_GLOBAL_AMBASSADORS}?page=1&limit=20`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const G=await L.json();G.success&&f(G.data.ambassadors||[])}}catch(C){console.error("Error fetching global ambassadors:",C),it("Failed to load global ambassadors")}finally{A(!1)}};W.useEffect(()=>{n?._id&&(k(),S(),E())},[n?._id]);const T=async()=>{const C=prompt("Enter your new country:");if(!(!C||!n?._id))try{const L=Ue.getToken();if(!L)return;(await fetch(`${On}${rt.REGIONAL_COUNTRY_UPDATE}`,{method:"POST",headers:{Authorization:`Bearer ${L}`,"Content-Type":"application/json"},body:JSON.stringify({userId:n._id,newCountry:C})})).ok?alert("Country update request sent to admin for verification."):it("Failed to send country update request")}catch(L){console.error("Error updating country:",L),it("Failed to send country update request")}};return u.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 mb-10 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsx("div",{className:"w-full max-w-5xl mb-4",children:u.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),u.jsx("h1",{className:"text-2xl font-bold my-6",children:"🏆 Regional Ambassador Program"}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Total Earnings"}),h?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),u.jsx("p",{className:"mt-2",children:"Loading earnings..."})]}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-lg",children:["Regional Shares: ",u.jsxs("span",{className:"font-bold",children:["$",a?.totalEarnings?.regionalShares||"0.00"]})]}),u.jsxs("div",{className:"flex items-center mt-4",children:[u.jsx("img",{src:"https://placehold.co/40x40",alt:"Title Holder",className:"w-10 h-10 rounded-full mr-3"}),u.jsxs("div",{className:"flex items-center",children:[u.jsx("span",{className:"text-2xl mr-2",children:a?.titleHolder?.flag||"🌍"}),u.jsxs("div",{children:[u.jsxs("p",{className:"font-bold",children:["Title Holder: ",a?.titleHolder?.name||"N/A"]}),u.jsx("p",{className:"text-sm text-gray-300",children:"Global"})]})]}),u.jsx("button",{className:"ml-4 text-sm bg-yellow-700 text-yellow-300 px-2 py-1 rounded-full",onClick:()=>alert("Total Earnings Info: Regional shares based on performance metrics."),children:"ℹ Info"})]})]})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"👤 Your Progress"}),h?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),u.jsx("p",{className:"mt-2",children:"Loading progress..."})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center mb-2",children:[u.jsxs("p",{className:"text-lg flex items-center",children:["Your Current Rank: ",a?.yourProgress?.currentRank?.name||"N/A"," (Level ",a?.yourProgress?.currentRank?.level||"N/A",")"," ",u.jsx("span",{className:"text-2xl ml-2",children:"🌍"})]}),u.jsx("button",{className:"ml-4 text-sm bg-yellow-700 text-yellow-300 px-2 py-1 rounded-full",onClick:T,children:"🔄 Update Country"})]}),u.jsxs("p",{className:"text-lg mb-2",children:["Victory Rank: ",a?.yourProgress?.victoryRank||"N/A"]}),u.jsx(J6,{label:`Progress (${a?.yourProgress?.progress?.achieved||"0% Achieved"})`,value:a?.yourProgress?.progress?.percentage||0,max:100}),a?.yourProgress?.nextRank&&u.jsxs("p",{className:"text-sm text-gray-300 mt-2",children:["Next Rank: ",a.yourProgress.nextRank.name," (Requirement: ",a.yourProgress.nextRank.requirement,")"]})]})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"🏁 Regional Race Leaderboard"}),g?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),u.jsx("p",{className:"mt-2",children:"Loading leaderboard..."})]}):u.jsx(u.Fragment,{children:u.jsx("div",{className:"overflow-x-auto",children:u.jsxs("table",{className:"w-full text-left",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-yellow-700",children:[u.jsx("th",{className:"py-2 px-4",children:"#"}),u.jsx("th",{className:"py-2 px-4",children:"Name"}),u.jsx("th",{className:"py-2 px-4",children:"Username"}),u.jsx("th",{className:"py-2 px-4",children:"Rank"}),u.jsx("th",{className:"py-2 px-4",children:"Points"})]})}),u.jsx("tbody",{children:o.length>0?o.map((C,L)=>u.jsxs("tr",{className:"border-b border-yellow-700 last:border-none",children:[u.jsx("td",{className:"py-2 px-4",children:C.rank}),u.jsxs("td",{className:"py-2 px-4 flex items-center",children:[u.jsx("img",{src:"https://placehold.co/40x40",alt:C.name,className:"w-8 h-8 rounded-full mr-2"}),C.name," ",u.jsx("span",{className:"text-xl ml-2",children:C.flag})]}),u.jsx("td",{className:"py-2 px-4",children:C.username}),u.jsxs("td",{className:"py-2 px-4 flex items-center",children:[u.jsx("span",{className:"mr-1",children:C.rankIcon}),C.crrRank]}),u.jsx("td",{className:"py-2 px-4",children:C.totalPoints})]},L)):u.jsx("tr",{children:u.jsx("td",{colSpan:"5",className:"py-4 text-center text-gray-400",children:"No leaderboard data available"})})})]})})})]}),u.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"🌍 Global Ambassadors"}),b?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),u.jsx("p",{className:"mt-2",children:"Loading ambassadors..."})]}):u.jsx("div",{className:"overflow-x-auto",children:u.jsx("div",{className:"flex space-x-4 pb-4",children:d.length>0?d.map((C,L)=>u.jsxs("div",{className:"flex-none w-64 p-4 rounded-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.9)"},children:[u.jsx("img",{src:C.profilePicture||"https://placehold.co/40x40",alt:C.name,className:"w-10 h-10 rounded-full mb-2"}),u.jsx("p",{className:"font-bold",children:C.name}),u.jsxs("p",{className:"text-sm text-gray-400",children:["@",C.username]}),u.jsxs("div",{className:"flex items-center mt-1",children:[u.jsx("span",{className:"text-lg mr-2",children:C.flag}),u.jsx("p",{className:"text-sm text-gray-300",children:C.country||"Global"})]}),u.jsxs("div",{className:"flex items-center mt-1",children:[u.jsx("span",{className:"mr-1",children:C.rankIcon}),u.jsx("p",{className:"text-sm",children:C.rank})]}),u.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:["Earnings: $",C.totalEarnings||0]}),C.isPermanent&&u.jsx("span",{className:"inline-block bg-yellow-600 text-yellow-200 text-xs px-2 py-1 rounded mt-2",children:"Permanent"})]},L)):u.jsx("div",{className:"w-full text-center py-8 text-gray-400",children:"No global ambassadors available"})})})]}),u.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u.jsx("p",{className:"italic",children:"💡 Tip: Ambassadors play a key role in expanding our network. Keep pushing to climb the ranks!"})})]})}const tD=()=>{const{theme:e}=ia();return u.jsxs("div",{className:`min-h-screen mt-20 py-12 px-6 transition-colors duration-300 ${e==="dark"?"bg-gray-900 text-white":"bg-[#083A06] text-[#FFD700]"}`,children:[u.jsxs(mn.div,{initial:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-4xl mx-auto mb-12",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold mb-4 tracking-wide",children:"📑 AAAO Go – Terms & Conditions"}),u.jsxs("p",{className:`text-lg font-medium ${e==="dark"?"text-yellow-400":"text-yellow-300"}`,children:["Effective Date: [Insert Date] | Website:"," ",u.jsx("a",{href:"https://www.aaaogo.com",className:"underline hover:text-yellow-400",target:"_blank",rel:"noopener noreferrer",children:"www.aaaogo.com"})]}),u.jsx("p",{className:`mt-4 text-base ${e==="dark"?"text-gray-200":"text-yellow-200"}`,children:"These Terms and Conditions (“Terms”) govern your access and use of the AAAO Go (“Platform”), including the website, mobile applications, and services offered under the AAAO Go brand."})]}),u.jsx("div",{className:"max-w-5xl mx-auto space-y-8",children:[{title:"1. Company & Service Structure",content:`AAAO Go operates as a technology platform under the umbrella of I AM AAAO. 
            We connect customers with licensed, registered, and verified service providers, including:
            - Rides / Captains (Car, Bike, Taxi) 
            - Car Recovery & Roadside Assistance 
            - Tyre, Key, Auto Repair, Car Wash Services 
            - Tourism & Hospitality Services 
            - Packers & Movers, and other approved categories
            AAAO Go itself does not own vehicles or workshops; all services are provided through partner operators and captains who are responsible for legal compliance.`},{title:"2. User Eligibility & Registration",content:"Users must be 18 years or older to register. All members (customers, captains, partners) must complete KYC verification and provide valid identification. Each user is responsible for keeping login details safe and accurate."},{title:"3. Data Protection & Security",content:"AAAO Go collects only necessary data (name, mobile number, location, ID verification, payment details) for account security, fraud prevention, and smooth service operation. All data is encrypted and securely stored in compliance with global standards. Users may request data removal in line with the Privacy Policy."},{title:"4. Payments & Fee Structure",content:"Payments are processed digitally through the AAAO Go app. A platform fee is deducted from each completed service, which is distributed across MRM Bonuses, BOD Pool, and operational costs. Captains/service providers receive earnings minus the platform fee. Fraudulent transactions may result in suspension or legal action."},{title:"5. MRM Rewards & Commitments",content:"AAAO Go operates a Multi-Reward Model (MRM) that ensures fair distribution of bonuses and commissions. Misuse such as cross-recruiting, fake accounts, or fraudulent referrals leads to disqualification."},{title:"6. User & Partner Responsibilities",content:"Users must provide accurate booking details, respect captains and staff, and not misuse services. Partners must maintain legal licenses, provide professional and safe services, and follow AAAO Go’s guidelines."},{title:"7. Cancellations & Refunds",content:"Users may cancel bookings subject to applicable fees. Refunds are processed based on service type and company discretion."},{title:"8. Limitation of Liability",content:"AAAO Go acts as a mediator and is not directly liable for accidents, damages, or losses caused by third-party partners. Liability is limited to the value of the service дни fee."},{title:"9. Account Termination",content:"AAAO Go may suspend or terminate accounts for misuse, fraud, or non-compliance. Users may voluntarily close accounts with a written request."},{title:"10. Intellectual Property",content:"All logos, trademarks, and brand names (“AAAO Go” & “I AM AAAO”) are the sole property of the company. Unauthorized use is prohibited."},{title:"11. Amendments",content:"We reserve the right to update these Terms anytime. Continued use after changes implies acceptance."},{title:"12. Governing Law & Jurisdiction",content:"These Terms are governed by UAE law, and disputes will be resolved under UAE court jurisdiction."}].map((n,a)=>u.jsxs(mn.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.6,delay:a*.1},className:`p-6 rounded-xl shadow-lg border ${e==="dark"?"bg-gray-800 border-gray-700":"bg-[#013220]/85 border-[#FFD700]"}`,children:[u.jsx("h2",{className:"text-2xl font-bold mb-3",children:n.title}),u.jsx("p",{className:`leading-relaxed whitespace-pre-line ${e==="dark"?"text-gray-200":"text-yellow-200"}`,children:n.content})]},a))}),u.jsxs(mn.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1.2},className:`max-w-5xl mx-auto mt-12 p-6 rounded-xl shadow-lg border text-center ${e==="dark"?"bg-gray-800 text-white border-gray-700":"bg-gradient-to-r from-[#FFD700] to-[#b8860b] text-[#013220] border-[#FFD700]"}`,children:[u.jsx("h2",{className:"text-xl font-bold mb-2",children:"✅ Final Declaration"}),u.jsx("p",{className:"leading-relaxed font-medium",children:"By using AAAO Go, you confirm that you understand and agree to abide by these Terms & Conditions. The company commits to operating transparently, legally, and fairly with all users, partners, and stakeholders."})]}),u.jsxs("footer",{className:`text-center m-12 text-sm ${e==="dark"?"text-gray-200":"text-yellow-300"}`,children:["© ",new Date().getFullYear()," AAAO Go – All Rights Reserved"]})]})},nD=()=>{const{theme:e}=ia();return u.jsxs("div",{className:`min-h-screen py-12 px-6 mt-20 mb-20 transition-colors duration-300 ${e==="dark"?"bg-gray-900 text-white":"bg-[#083A06] text-[#FFD700]"}`,children:[u.jsxs(mn.div,{initial:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-4xl mx-auto mb-12",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold mb-4 tracking-wide",children:"📑 AAAO Go – Privacy Policy"}),u.jsxs("p",{className:`text-lg font-medium ${e==="dark"?"text-yellow-400":"text-yellow-300"}`,children:["Effective Date: [Insert Date] | Website:"," ",u.jsx("a",{href:"https://www.aaaogo.com",className:"underline hover:text-yellow-400",target:"_blank",rel:"noopener noreferrer",children:"www.aaaogo.com"})]}),u.jsx("p",{className:`mt-4 text-base ${e==="dark"?"text-gray-200":"text-yellow-200"}`,children:"At AAAO Go, your privacy and security are our highest priority. This Privacy Policy explains how we collect, use, store, and protect your information when you use our website, mobile app, or services."})]}),u.jsx("div",{className:"max-w-5xl mx-auto space-y-8",children:[{title:"1. Information We Collect",content:`We only collect information necessary for smooth operations, security, and legal compliance, including:
- Personal details: name, email, mobile number, address.
- Identification & verification details: ID card, license, KYC verification (for captains/partners).
- Payment details: mobile wallet, bank account, or card information (secured &

 encrypted).
- Location data: to provide rides, roadside services, and accurate pickup/delivery.
- Referral details: when you refer a friend through AAAO Go.`},{title:"2. How We Use Your Data",content:`Your information is used strictly for:
- Account creation, login, and verification.
- Providing rides, roadside, and partner services.
- Processing secure payments and withdrawals.
- Delivering MRM bonuses, referral rewards, and corporate pool payouts.
- Fraud prevention, safety monitoring, and dispute resolution.
- Sending service updates, offers, and promotions (only with consent).`},{title:"3. Our Commitment – No Misuse of Data",content:`AAAO Go never sells, misuses, or shares your data with unauthorized third parties. 
We may share limited data only with licensed captains, service providers, and payment partners to complete your service. 
Data verification is for security purposes only – preventing fraud and ensuring safe transactions.`},{title:"4. Data Security Measures",content:`We use advanced security systems to protect your personal data:
- Encrypted storage & secure servers.
- Limited access for authorized staff only.
- Regular monitoring against hacking, fraud, or unauthorized access.`},{title:"5. Cookies & Tracking",content:`Our website/app uses cookies to enhance your experience. 
Cookies help us remember preferences, speed up logins, and improve services. 
You can disable cookies, but some features may not work properly.`},{title:"6. User Rights",content:`As a user of AAAO Go, you have the right to:
- Request a copy of the personal data we hold about you.
- Update or correct your information.
- Request deletion of your data (subject to financial/legal record requirements).
- Opt-out of promotional messages anytime.`},{title:"7. Data Retention",content:`We retain your data only as long as necessary to provide services, comply with legal obligations, and ensure payout of MRM bonuses and commissions. 
Once retention is no longer required, data is securely deleted.`},{title:"8. Third-Party Sharing",content:`We only share data with:
- Captains/Partners (limited booking details for service delivery).
- Payment gateways (to process secure transactions).
- Regulatory authorities, if required by law.
No other third party has access to your private information.`},{title:"9. Children’s Privacy",content:"AAAO Go does not knowingly collect data from individuals under 18."},{title:"10. Updates to Privacy Policy",content:"AAAO Go may update this Privacy Policy when necessary. Users will be notified of any major changes via app notification or website update."}].map((n,a)=>u.jsxs(mn.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.6,delay:a*.1},className:`p-6 rounded-xl shadow-lg border ${e==="dark"?"bg-gray-800 border-gray-700":"bg-[#013220]/85 border-[#FFD700]"}`,children:[u.jsx("h2",{className:"text-2xl font-bold mb-3",children:n.title}),u.jsx("p",{className:`leading-relaxed whitespace-pre-line ${e==="dark"?"text-gray-200":"text-yellow-200"}`,children:n.content})]},a))}),u.jsxs(mn.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1.2},className:`max-w-5xl mx-auto mt-12 p-6 rounded-xl shadow-lg border text-center ${e==="dark"?"bg-gray-800 text-white border-gray-700":"bg-gradient-to-r from-[#FFD700] to-[#b8860b] text-[#013220] border-[#FFD700]"}`,children:[u.jsx("h2",{className:"text-xl font-bold mb-2",children:"✅ Final Declaration"}),u.jsx("p",{className:"leading-relaxed font-medium",children:"AAAO Go is committed to secure, transparent, and fair handling of your personal information. Your trust is our asset, and your data will only be used for the purposes stated here."})]}),u.jsxs("footer",{className:`text-center mt-12 text-sm ${e==="dark"?"text-gray-200":"text-yellow-300"}`,children:["© ",new Date().getFullYear()," AAAO Go – All Rights Reserved"]})]})},rD=()=>{const{theme:e}=ia();return u.jsxs("div",{className:`min-h-screen py-12 px-6 mt-20 mb-20 transition-colors duration-300 ${e==="dark"?"bg-gray-900 text-white":"bg-[#083A06] text-[#FFD700]"}`,children:[u.jsxs(mn.div,{initial:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-4xl mx-auto mb-12",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold mb-4 tracking-wide",children:"📑 AAAO Go – Refer A Friend"}),u.jsxs("p",{className:`mt-4 text-base ${e==="dark"?"text-gray-200":"text-yellow-200"}`,children:["At AAAO Go, we believe growth should be shared. That’s why we have a",u.jsx("span",{className:"font-semibold",children:" Refer A Friend Program"})," – rewarding members who introduce others to the AAAO Go platform."]})]}),u.jsx("div",{className:"max-w-5xl mx-auto space-y-8",children:[{title:"1. How It Works",content:`Each member receives a unique referral link available in their Login Dashboard → My Network Section.
- Share this link with friends, family, and your network.
- When a new customer signs up for the first time using your referral link, they are permanently registered as your lifetime customer.`},{title:"2. Lifetime Customer Rule",content:`A first-time signup using your referral link automatically binds that customer as your lifetime referral.
You will continue to earn from every activity they perform on AAAO Go, including:
- Ride bookings
- Roadside assistance
- Tourism & hospitality bookings
- Movers, car services, or other AAAO Go categories
✅ Earnings are generated every time your referral uses AAAO Go – for life.`},{title:"3. Earnings & Bonuses",content:`- Earnings are credited directly into your AAAO Go account wallet.
- Bonus amounts are calculated transparently and can be withdrawn according to company policies.
- Referral bonuses are part of the MRM Rewards system, ensuring timely payout.`},{title:"4. Program Rules",content:`1. Only genuine, first-time customers are eligible as lifetime referrals.
2. One customer can only be registered under one referrer (the first member whose link they used).
3. Fake accounts, duplicate registrations, or fraudulent referrals are strictly prohibited.
4. Cross-recruiting or attempting to move a referral from one network to another is not allowed.
5. AAAO Go reserves the right to investigate and remove fraudulent referrals without payout.`},{title:"5. Transparency & Tracking",content:`- All referrals and earnings are fully trackable inside the My Network dashboard.
- Members can view their referral tree, activity, and earnings in real-time.
- AAAO Go ensures 100% transparency in referral linking and bonus distribution.`},{title:"6. Termination of Participation",content:`- Members violating referral rules will lose their referral rights and bonuses.
- Genuine members will always remain protected and continue to earn from their network.`}].map((n,a)=>u.jsxs(mn.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.6,delay:a*.1},className:`p-6 rounded-xl shadow-lg border ${e==="dark"?"bg-gray-800 border-gray-700":"bg-[#013220]/85 border-[#FFD700]"}`,children:[u.jsx("h2",{className:"text-2xl font-bold mb-3",children:n.title}),u.jsx("p",{className:`leading-relaxed whitespace-pre-line ${e==="dark"?"text-gray-200":"text-yellow-200"}`,children:n.content})]},a))}),u.jsxs(mn.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1.2},className:`max-w-5xl mx-auto mt-12 p-6 rounded-xl shadow-lg border text-center ${e==="dark"?"bg-gray-800 text-white border-gray-700":"bg-gradient-to-r from-[#FFD700] to-[#b8860b] text-[#013220] border-[#FFD700]"}`,children:[u.jsx("h2",{className:"text-xl font-bold mb-2",children:"🎁 Share & Earn for Life"}),u.jsx("p",{className:"leading-relaxed font-medium",children:"With AAAO Go’s Refer A Friend Program, every connection you make adds lifetime value. Grow your network, earn rewards, and be part of a shared journey of success."})]}),u.jsxs("footer",{className:`text-center mt-12 text-sm ${e==="dark"?"text-gray-200":"text-yellow-300"}`,children:["© ",new Date().getFullYear()," AAAO Go – All Rights Reserved"]})]})},aD=()=>u.jsxs("div",{className:"min-h-screen py-12 px-6 mt-20 mb-20",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[u.jsxs(mn.div,{initial:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-4xl mx-auto mb-12",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold mb-4 tracking-wide",children:"📑 Become A Member"}),u.jsxs("p",{className:"mt-4 text-base text-yellow-200",children:["Joining AAAO Go means becoming part of a"," ",u.jsx("span",{className:"font-semibold",children:"growing global community"})," that connects people with licensed services, creates earning opportunities, and shares success through our"," ",u.jsx("span",{className:"font-semibold",children:"MRM Rewards model"}),"."]})]}),u.jsx("div",{className:"max-w-5xl mx-auto space-y-8",children:[{title:"1. Who Can Become a Member",content:`- Any individual above 18 years of age.
- Must provide valid details & complete KYC verification.
- Can join as:
   • Customer Member – enjoy rides & services.
   • Captain/Service Provider Member – offer services through AAAO Go (licensed).
   • Referral/Network Member – build your network and earn through referrals.`},{title:"2. Membership Benefits",content:`✅ Access to All Services – rides, roadside help, movers, tourism, and more.
✅ Lifetime Referral Rights – every customer you invite stays your lifetime referral.
✅ MRM Bonuses – referral & network rewards, guaranteed payout.
✅ Priority Support – faster assistance for active members.
✅ Transparency Dashboard – real-time tracking of rides, earnings, and bonuses.
✅ Exclusive Offers & Discounts – only for AAAO Go members.`},{title:"3. Earning Opportunities",content:`1. Use & Earn – customers enjoy services while their referrers earn.
2. Drive & Earn – captains/service providers earn for every service completed.
3. Refer & Earn – lifetime referral bonuses from all customer activities.
4. Network Growth – build a downline network and share long-term income.`},{title:"4. Membership Rules",content:`- One person can hold only one account.
- Cross-recruiting or transferring referrals between networks is strictly prohibited.
- Members must respect customers, captains, and partners.
- Misuse of the AAAO Go name, brand, or system may lead to termination.
- All members must comply with UAE laws and local regulations in their operating country.`},{title:"5. AAAO Go’s Commitments to Members",content:`- We only provide services through registered & licensed partners.
- All member data is kept secure and used only for verification, payouts, and safety.
- We are legally bound to pay MRM bonuses, referral rewards, and corporate pool shares as per company policy.
- All transactions are transparent & trackable in your dashboard.
- Disputes and complaints are handled fairly through our support system.`},{title:"6. How to Become a Member",content:`1. Sign up on the AAAO Go app or website.
2. Verify your account through KYC.
3. Activate your membership by starting your first ride/service, referral, or captain service.
4. Start enjoying the full benefits of AAAO Go membership.`}].map((e,n)=>u.jsxs(mn.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.6,delay:n*.1},className:"p-6 rounded-xl shadow-lg border",style:{background:"rgba(1, 50, 32, 0.85)",borderColor:"#FFD700"},children:[u.jsx("h2",{className:"text-2xl font-bold mb-3",children:e.title}),u.jsx("p",{className:"text-yellow-200 leading-relaxed whitespace-pre-line",children:e.content})]},n))}),u.jsxs(mn.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1.2},className:"max-w-5xl mx-auto mt-12 p-6 rounded-xl shadow-lg border text-center",style:{background:"linear-gradient(135deg, #FFD700, #b8860b)",color:"#013220",borderColor:"#FFD700"},children:[u.jsx("h2",{className:"text-xl font-bold mb-2",children:"🌍 Join The Movement"}),u.jsx("p",{className:"leading-relaxed font-medium",children:"Becoming a member of AAAO Go is more than just signing up. It’s about being part of a community that values trust, opportunity, and shared success. Start today and unlock a lifetime of benefits and rewards."})]}),u.jsxs("footer",{className:"text-center mt-12 text-sm text-yellow-300",children:["© ",new Date().getFullYear()," AAAO Go – All Rights Reserved"]})]}),vb=["/login","/signup","/forgot-password","/reset-password"];function sD(){const e=Gn(),n=Ln(),a=We(d1),s=We(gm),o=We(BT),c=vb.includes(n.pathname);return W.useEffect(()=>{console.log("App - Initializing session sync"),e(Ex()),console.log("App - Session info:",Ue.getSessionInfo())},[e]),W.useEffect(()=>{a&&!s?(console.log("App - Token exists but not authenticated, checking current user"),e(Ms())):console.log(a&&s?"App - User is already authenticated":"App - No token found, user not authenticated")},[e,a,s]),W.useEffect(()=>{const d=f=>{console.log("App - Session cleared event received:",f.detail),e(Ex()),s&&!vb.includes(n.pathname)&&(console.log("App - Redirecting to login due to session clear"),window.location.href="/login")};return window.addEventListener("sessionCleared",d),()=>window.removeEventListener("sessionCleared",d)},[e,s,n.pathname]),W.useEffect(()=>{console.log("App - Route changed to:",n.pathname),console.log("App - Should hide navbar/footer:",c),console.log("App - signupEmail in Redux:",o),console.log("App - signupEmail in localStorage:",localStorage.getItem("signup_email"))},[n.pathname,c,o]),u.jsxs("div",{className:"App bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[!c&&u.jsx(UN,{}),u.jsxs(XE,{children:[u.jsx(lt,{path:"/",element:u.jsx(g_,{})})," ",u.jsx(lt,{path:"/about",element:u.jsx(S_,{})}),u.jsx(lt,{path:"/services",element:u.jsx(G_,{})}),u.jsx(lt,{path:"/team",element:u.jsx(Z_,{})}),u.jsx(lt,{path:"/contact",element:u.jsx(Q_,{})}),u.jsx(lt,{path:"/faqs",element:u.jsx(o5,{})}),u.jsx(lt,{path:"/login",element:u.jsx(l5,{})}),u.jsx(lt,{path:"/signup",element:u.jsx(u5,{})}),u.jsx(lt,{path:"/terms",element:u.jsx(tD,{})}),u.jsx(lt,{path:"/privacypolicy",element:u.jsx(nD,{})}),u.jsx(lt,{path:"/referafriend",element:u.jsx(rD,{})}),u.jsx(lt,{path:"/becomeamember",element:u.jsx(aD,{})}),u.jsx(lt,{path:"/forgot-password",element:o||localStorage.getItem("signup_email")?u.jsx(Vn,{to:"/reset-password",replace:!0}):u.jsx(d5,{})}),u.jsx(lt,{path:"/reset-password",element:u.jsx(f5,{})}),u.jsx(lt,{path:"/mlm",element:s?u.jsx(m5,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"/ddr",element:s?u.jsx(g5,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"/crr",element:s?u.jsx(y5,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"/bbr",element:s?u.jsx($6,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"/hlr",element:s?u.jsx(Q6,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"/RegionalAmbassador",element:s?u.jsx(eD,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"/tree",element:s?u.jsx(sv,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"/user-tree/:userId",element:s?u.jsx(sv,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"/profile",element:s?u.jsx(p5,{}):u.jsx(Vn,{to:"/login",replace:!0})}),u.jsx(lt,{path:"*",element:u.jsx(Vn,{to:"/",replace:!0})})]}),!c&&u.jsx(JN,{})]})}function iD(){return u.jsx(xN,{children:u.jsx(kN,{children:u.jsx(sD,{})})})}const oD=()=>{const e=no.get("auth_token"),n=localStorage.getItem("auth_token"),a=Ue.getToken();if(console.log("=== TOKEN DEBUG INFO ==="),console.log("Cookie token:",e?"exists":"none"),console.log("LocalStorage token:",n?"exists":"none"),console.log("SessionManager token:",a?"exists":"none"),a){const s=au(a),o=c1(s);console.log("Token length:",a.length),console.log("Token starts with:",a.substring(0,20)+"..."),console.log("Cleaned token:",s),console.log("Token is valid:",o);try{const c=s.split(".");if(console.log("JWT parts:",c.length),c.length===3){const d=JSON.parse(atob(c[0].replace(/-/g,"+").replace(/_/g,"/"))),f=JSON.parse(atob(c[1].replace(/-/g,"+").replace(/_/g,"/")));console.log("JWT Header:",d),console.log("JWT Payload:",f),console.log("Token expires at:",new Date(f.exp*1e3)),console.log("Token issued at:",new Date(f.iat*1e3)),console.log("Token is expired:",Date.now()>f.exp*1e3)}}catch(c){console.log("Error decoding JWT:",c.message)}}console.log("========================")},lD=()=>{const e=Ue.getToken();console.log("=== LOGOUT REQUEST TEST ==="),console.log("Token to send:",e),console.log("Authorization header:",`Bearer ${e}`),console.log("===========================")},cD=async()=>{const e=Ue.getToken();console.log("=== CURRENT USER ENDPOINT TEST ===");try{const n=await fetch("https://api.aaogobackend.xyz/api/drivers/get-current-user",{method:"GET",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}});console.log("Response status:",n.status),console.log("Response headers:",Object.fromEntries(n.headers.entries()));const a=await n.json();return console.log("Response data:",a),{status:n.status,data:a}}catch(n){return console.error("Fetch error:",n),{error:n.message}}},uD=async()=>{const e=Ue.getToken();console.log("=== REFERRAL TREE ENDPOINT TEST ===");try{const n=au(e),a=await fetch("https://api.aaogobackend.xyz/api/user/referral-tree",{method:"GET",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}});console.log("Response status:",a.status),console.log("Response headers:",Object.fromEntries(a.headers.entries()));const s=await a.json();return console.log("Response data:",s),{status:a.status,data:s}}catch(n){return console.error("Fetch error:",n),{error:n.message}}},dD=()=>{console.log("=== MANUAL LOGOUT ==="),Ue.clearSession(),console.log("Session cleared"),window.location.reload()};typeof window<"u"&&(window.debugTokenStatus=oD,window.testLogoutRequest=lD,window.testCurrentUserEndpoint=cD,window.testReferralTreeEndpoint=uD,window.manualLogout=dD);nA.createRoot(document.getElementById("root")).render(u.jsx(W.StrictMode,{children:u.jsxs(vA,{store:rE,children:[u.jsx(iD,{}),u.jsx(h3,{position:"top-right",toastOptions:{duration:4e3,style:{background:"#363636",color:"#fff"},success:{duration:3e3,iconTheme:{primary:"#4ade80",secondary:"#fff"}},error:{duration:4e3,iconTheme:{primary:"#ef4444",secondary:"#fff"}}}})]})}));