(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function s(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(h){if(h.ep)return;h.ep=!0;const m=s(h);fetch(h.href,m)}})();var um=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tp(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var i0={exports:{}},bd={};/**
 * @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 vp;function ny(){if(vp)return bd;vp=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,h,m){var p=null;if(m!==void 0&&(p=""+m),h.key!==void 0&&(p=""+h.key),"key"in h){m={};for(var x in h)x!=="key"&&(m[x]=h[x])}else m=h;return h=m.ref,{$$typeof:l,type:o,key:p,ref:h!==void 0?h:null,props:m}}return bd.Fragment=u,bd.jsx=s,bd.jsxs=s,bd}var mp;function ry(){return mp||(mp=1,i0.exports=ny()),i0.exports}var J=ry(),l0={exports:{}},Je={};/**
 * @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 gp;function ay(){if(gp)return Je;gp=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),R=Symbol.iterator;function V(O){return O===null||typeof O!="object"?null:(O=R&&O[R]||O["@@iterator"],typeof O=="function"?O:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,j={};function W(O,K,oe){this.props=O,this.context=K,this.refs=j,this.updater=oe||Q}W.prototype.isReactComponent={},W.prototype.setState=function(O,K){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,K,"setState")},W.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function se(){}se.prototype=W.prototype;function ge(O,K,oe){this.props=O,this.context=K,this.refs=j,this.updater=oe||Q}var be=ge.prototype=new se;be.constructor=ge,k(be,W.prototype),be.isPureReactComponent=!0;var he=Array.isArray,F={H:null,A:null,T:null,S:null,V:null},le=Object.prototype.hasOwnProperty;function ue(O,K,oe,ee,ve,Ce){return oe=Ce.ref,{$$typeof:l,type:O,key:K,ref:oe!==void 0?oe:null,props:Ce}}function ce(O,K){return ue(O.type,K,void 0,void 0,void 0,O.props)}function we(O){return typeof O=="object"&&O!==null&&O.$$typeof===l}function He(O){var K={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(oe){return K[oe]})}var Se=/\/+/g;function Ue(O,K){return typeof O=="object"&&O!==null&&O.key!=null?He(""+O.key):K.toString(36)}function Ke(){}function Ae(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Ke,Ke):(O.status="pending",O.then(function(K){O.status==="pending"&&(O.status="fulfilled",O.value=K)},function(K){O.status==="pending"&&(O.status="rejected",O.reason=K)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ie(O,K,oe,ee,ve){var Ce=typeof O;(Ce==="undefined"||Ce==="boolean")&&(O=null);var Oe=!1;if(O===null)Oe=!0;else switch(Ce){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(O.$$typeof){case l:case u:Oe=!0;break;case w:return Oe=O._init,ie(Oe(O._payload),K,oe,ee,ve)}}if(Oe)return ve=ve(O),Oe=ee===""?"."+Ue(O,0):ee,he(ve)?(oe="",Oe!=null&&(oe=Oe.replace(Se,"$&/")+"/"),ie(ve,K,oe,"",function(pt){return pt})):ve!=null&&(we(ve)&&(ve=ce(ve,oe+(ve.key==null||O&&O.key===ve.key?"":(""+ve.key).replace(Se,"$&/")+"/")+Oe)),K.push(ve)),1;Oe=0;var Ve=ee===""?".":ee+":";if(he(O))for(var Qe=0;Qe<O.length;Qe++)ee=O[Qe],Ce=Ve+Ue(ee,Qe),Oe+=ie(ee,K,oe,Ce,ve);else if(Qe=V(O),typeof Qe=="function")for(O=Qe.call(O),Qe=0;!(ee=O.next()).done;)ee=ee.value,Ce=Ve+Ue(ee,Qe++),Oe+=ie(ee,K,oe,Ce,ve);else if(Ce==="object"){if(typeof O.then=="function")return ie(Ae(O),K,oe,ee,ve);throw K=String(O),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function C(O,K,oe){if(O==null)return O;var ee=[],ve=0;return ie(O,ee,"","",function(Ce){return K.call(oe,Ce,ve++)}),ee}function X(O){if(O._status===-1){var K=O._result;K=K(),K.then(function(oe){(O._status===0||O._status===-1)&&(O._status=1,O._result=oe)},function(oe){(O._status===0||O._status===-1)&&(O._status=2,O._result=oe)}),O._status===-1&&(O._status=0,O._result=K)}if(O._status===1)return O._result.default;throw O._result}var B=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function pe(){}return Je.Children={map:C,forEach:function(O,K,oe){C(O,function(){K.apply(this,arguments)},oe)},count:function(O){var K=0;return C(O,function(){K++}),K},toArray:function(O){return C(O,function(K){return K})||[]},only:function(O){if(!we(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Je.Component=W,Je.Fragment=s,Je.Profiler=h,Je.PureComponent=ge,Je.StrictMode=o,Je.Suspense=_,Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Je.__COMPILER_RUNTIME={__proto__:null,c:function(O){return F.H.useMemoCache(O)}},Je.cache=function(O){return function(){return O.apply(null,arguments)}},Je.cloneElement=function(O,K,oe){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ee=k({},O.props),ve=O.key,Ce=void 0;if(K!=null)for(Oe in K.ref!==void 0&&(Ce=void 0),K.key!==void 0&&(ve=""+K.key),K)!le.call(K,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&K.ref===void 0||(ee[Oe]=K[Oe]);var Oe=arguments.length-2;if(Oe===1)ee.children=oe;else if(1<Oe){for(var Ve=Array(Oe),Qe=0;Qe<Oe;Qe++)Ve[Qe]=arguments[Qe+2];ee.children=Ve}return ue(O.type,ve,void 0,void 0,Ce,ee)},Je.createContext=function(O){return O={$$typeof:p,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:m,_context:O},O},Je.createElement=function(O,K,oe){var ee,ve={},Ce=null;if(K!=null)for(ee in K.key!==void 0&&(Ce=""+K.key),K)le.call(K,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ve[ee]=K[ee]);var Oe=arguments.length-2;if(Oe===1)ve.children=oe;else if(1<Oe){for(var Ve=Array(Oe),Qe=0;Qe<Oe;Qe++)Ve[Qe]=arguments[Qe+2];ve.children=Ve}if(O&&O.defaultProps)for(ee in Oe=O.defaultProps,Oe)ve[ee]===void 0&&(ve[ee]=Oe[ee]);return ue(O,Ce,void 0,void 0,null,ve)},Je.createRef=function(){return{current:null}},Je.forwardRef=function(O){return{$$typeof:x,render:O}},Je.isValidElement=we,Je.lazy=function(O){return{$$typeof:w,_payload:{_status:-1,_result:O},_init:X}},Je.memo=function(O,K){return{$$typeof:E,type:O,compare:K===void 0?null:K}},Je.startTransition=function(O){var K=F.T,oe={};F.T=oe;try{var ee=O(),ve=F.S;ve!==null&&ve(oe,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(pe,B)}catch(Ce){B(Ce)}finally{F.T=K}},Je.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},Je.use=function(O){return F.H.use(O)},Je.useActionState=function(O,K,oe){return F.H.useActionState(O,K,oe)},Je.useCallback=function(O,K){return F.H.useCallback(O,K)},Je.useContext=function(O){return F.H.useContext(O)},Je.useDebugValue=function(){},Je.useDeferredValue=function(O,K){return F.H.useDeferredValue(O,K)},Je.useEffect=function(O,K,oe){var ee=F.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ee.useEffect(O,K)},Je.useId=function(){return F.H.useId()},Je.useImperativeHandle=function(O,K,oe){return F.H.useImperativeHandle(O,K,oe)},Je.useInsertionEffect=function(O,K){return F.H.useInsertionEffect(O,K)},Je.useLayoutEffect=function(O,K){return F.H.useLayoutEffect(O,K)},Je.useMemo=function(O,K){return F.H.useMemo(O,K)},Je.useOptimistic=function(O,K){return F.H.useOptimistic(O,K)},Je.useReducer=function(O,K,oe){return F.H.useReducer(O,K,oe)},Je.useRef=function(O){return F.H.useRef(O)},Je.useState=function(O){return F.H.useState(O)},Je.useSyncExternalStore=function(O,K,oe){return F.H.useSyncExternalStore(O,K,oe)},Je.useTransition=function(){return F.H.useTransition()},Je.version="19.1.1",Je}var pp;function Um(){return pp||(pp=1,l0.exports=ay()),l0.exports}var de=Um();const me=tp(de);var u0={exports:{}},yd={},s0={exports:{}},o0={};/**
 * @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 bp;function iy(){return bp||(bp=1,(function(l){function u(C,X){var B=C.length;C.push(X);e:for(;0<B;){var pe=B-1>>>1,O=C[pe];if(0<h(O,X))C[pe]=X,C[B]=O,B=pe;else break e}}function s(C){return C.length===0?null:C[0]}function o(C){if(C.length===0)return null;var X=C[0],B=C.pop();if(B!==X){C[0]=B;e:for(var pe=0,O=C.length,K=O>>>1;pe<K;){var oe=2*(pe+1)-1,ee=C[oe],ve=oe+1,Ce=C[ve];if(0>h(ee,B))ve<O&&0>h(Ce,ee)?(C[pe]=Ce,C[ve]=B,pe=ve):(C[pe]=ee,C[oe]=B,pe=oe);else if(ve<O&&0>h(Ce,B))C[pe]=Ce,C[ve]=B,pe=ve;else break e}}return X}function h(C,X){var B=C.sortIndex-X.sortIndex;return B!==0?B:C.id-X.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var p=Date,x=p.now();l.unstable_now=function(){return p.now()-x}}var _=[],E=[],w=1,R=null,V=3,Q=!1,k=!1,j=!1,W=!1,se=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate<"u"?setImmediate:null;function he(C){for(var X=s(E);X!==null;){if(X.callback===null)o(E);else if(X.startTime<=C)o(E),X.sortIndex=X.expirationTime,u(_,X);else break;X=s(E)}}function F(C){if(j=!1,he(C),!k)if(s(_)!==null)k=!0,le||(le=!0,Ue());else{var X=s(E);X!==null&&ie(F,X.startTime-C)}}var le=!1,ue=-1,ce=5,we=-1;function He(){return W?!0:!(l.unstable_now()-we<ce)}function Se(){if(W=!1,le){var C=l.unstable_now();we=C;var X=!0;try{e:{k=!1,j&&(j=!1,ge(ue),ue=-1),Q=!0;var B=V;try{t:{for(he(C),R=s(_);R!==null&&!(R.expirationTime>C&&He());){var pe=R.callback;if(typeof pe=="function"){R.callback=null,V=R.priorityLevel;var O=pe(R.expirationTime<=C);if(C=l.unstable_now(),typeof O=="function"){R.callback=O,he(C),X=!0;break t}R===s(_)&&o(_),he(C)}else o(_);R=s(_)}if(R!==null)X=!0;else{var K=s(E);K!==null&&ie(F,K.startTime-C),X=!1}}break e}finally{R=null,V=B,Q=!1}X=void 0}}finally{X?Ue():le=!1}}}var Ue;if(typeof be=="function")Ue=function(){be(Se)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,Ae=Ke.port2;Ke.port1.onmessage=Se,Ue=function(){Ae.postMessage(null)}}else Ue=function(){se(Se,0)};function ie(C,X){ue=se(function(){C(l.unstable_now())},X)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(C){C.callback=null},l.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<C?Math.floor(1e3/C):5},l.unstable_getCurrentPriorityLevel=function(){return V},l.unstable_next=function(C){switch(V){case 1:case 2:case 3:var X=3;break;default:X=V}var B=V;V=X;try{return C()}finally{V=B}},l.unstable_requestPaint=function(){W=!0},l.unstable_runWithPriority=function(C,X){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var B=V;V=C;try{return X()}finally{V=B}},l.unstable_scheduleCallback=function(C,X,B){var pe=l.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?pe+B:pe):B=pe,C){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=B+O,C={id:w++,callback:X,priorityLevel:C,startTime:B,expirationTime:O,sortIndex:-1},B>pe?(C.sortIndex=B,u(E,C),s(_)===null&&C===s(E)&&(j?(ge(ue),ue=-1):j=!0,ie(F,B-pe))):(C.sortIndex=O,u(_,C),k||Q||(k=!0,le||(le=!0,Ue()))),C},l.unstable_shouldYield=He,l.unstable_wrapCallback=function(C){var X=V;return function(){var B=V;V=X;try{return C.apply(this,arguments)}finally{V=B}}}})(o0)),o0}var yp;function ly(){return yp||(yp=1,s0.exports=iy()),s0.exports}var c0={exports:{}},Kn={};/**
 * @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 Ap;function uy(){if(Ap)return Kn;Ap=1;var l=Um();function u(_){var E="https://react.dev/errors/"+_;if(1<arguments.length){E+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)E+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+_+"; visit "+E+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},h=Symbol.for("react.portal");function m(_,E,w){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:R==null?null:""+R,children:_,containerInfo:E,implementation:w}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(_,E){if(_==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}return Kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Kn.createPortal=function(_,E){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error(u(299));return m(_,E,null,w)},Kn.flushSync=function(_){var E=p.T,w=o.p;try{if(p.T=null,o.p=2,_)return _()}finally{p.T=E,o.p=w,o.d.f()}},Kn.preconnect=function(_,E){typeof _=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,o.d.C(_,E))},Kn.prefetchDNS=function(_){typeof _=="string"&&o.d.D(_)},Kn.preinit=function(_,E){if(typeof _=="string"&&E&&typeof E.as=="string"){var w=E.as,R=x(w,E.crossOrigin),V=typeof E.integrity=="string"?E.integrity:void 0,Q=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;w==="style"?o.d.S(_,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:R,integrity:V,fetchPriority:Q}):w==="script"&&o.d.X(_,{crossOrigin:R,integrity:V,fetchPriority:Q,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},Kn.preinitModule=function(_,E){if(typeof _=="string")if(typeof E=="object"&&E!==null){if(E.as==null||E.as==="script"){var w=x(E.as,E.crossOrigin);o.d.M(_,{crossOrigin:w,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})}}else E==null&&o.d.M(_)},Kn.preload=function(_,E){if(typeof _=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){var w=E.as,R=x(w,E.crossOrigin);o.d.L(_,w,{crossOrigin:R,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},Kn.preloadModule=function(_,E){if(typeof _=="string")if(E){var w=x(E.as,E.crossOrigin);o.d.m(_,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:w,integrity:typeof E.integrity=="string"?E.integrity:void 0})}else o.d.m(_)},Kn.requestFormReset=function(_){o.d.r(_)},Kn.unstable_batchedUpdates=function(_,E){return _(E)},Kn.useFormState=function(_,E,w){return p.H.useFormState(_,E,w)},Kn.useFormStatus=function(){return p.H.useHostTransitionStatus()},Kn.version="19.1.1",Kn}var _p;function d1(){if(_p)return c0.exports;_p=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),c0.exports=uy(),c0.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 xp;function sy(){if(xp)return yd;xp=1;var l=ly(),u=Um(),s=d1();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(m(e)!==e)throw Error(o(188))}function _(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var c=n.return;if(c===null)break;var d=c.alternate;if(d===null){if(i=c.return,i!==null){n=i;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===n)return x(c),e;if(d===i)return x(c),t;d=d.sibling}throw Error(o(188))}if(n.return!==i.return)n=c,i=d;else{for(var g=!1,A=c.child;A;){if(A===n){g=!0,n=c,i=d;break}if(A===i){g=!0,i=c,n=d;break}A=A.sibling}if(!g){for(A=d.child;A;){if(A===n){g=!0,n=d,i=c;break}if(A===i){g=!0,i=d,n=c;break}A=A.sibling}if(!g)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,R=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),ge=Symbol.for("react.consumer"),be=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),we=Symbol.for("react.activity"),He=Symbol.for("react.memo_cache_sentinel"),Se=Symbol.iterator;function Ue(e){return e===null||typeof e!="object"?null:(e=Se&&e[Se]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Symbol.for("react.client.reference");function Ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case W:return"Profiler";case j:return"StrictMode";case F:return"Suspense";case le:return"SuspenseList";case we:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case be:return(e.displayName||"Context")+".Provider";case ge:return(e._context.displayName||"Context")+".Consumer";case he:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ue:return t=e.displayName||null,t!==null?t:Ae(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return Ae(e(t))}catch{}}return null}var ie=Array.isArray,C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},pe=[],O=-1;function K(e){return{current:e}}function oe(e){0>O||(e.current=pe[O],pe[O]=null,O--)}function ee(e,t){O++,pe[O]=e.current,e.current=t}var ve=K(null),Ce=K(null),Oe=K(null),Ve=K(null);function Qe(e,t){switch(ee(Oe,t),ee(Ce,e),ee(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jt(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jt(t),e=kt(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}oe(ve),ee(ve,e)}function pt(){oe(ve),oe(Ce),oe(Oe)}function vt(e){e.memoizedState!==null&&ee(Ve,e);var t=ve.current,n=kt(t,e.type);t!==n&&(ee(Ce,e),ee(ve,n))}function Dt(e){Ce.current===e&&(oe(ve),oe(Ce)),Ve.current===e&&(oe(Ve),Wl._currentValue=B)}var Kt=Object.prototype.hasOwnProperty,Sn=l.unstable_scheduleCallback,Gt=l.unstable_cancelCallback,_r=l.unstable_shouldYield,nu=l.unstable_requestPaint,Mt=l.unstable_now,vn=l.unstable_getCurrentPriorityLevel,un=l.unstable_ImmediatePriority,Ur=l.unstable_UserBlockingPriority,Zt=l.unstable_NormalPriority,Nn=l.unstable_LowPriority,Ra=l.unstable_IdlePriority,ws=l.log,qt=l.unstable_setDisableYieldValue,mi=null,Ft=null;function mn(e){if(typeof ws=="function"&&qt(e),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(mi,e)}catch{}}var En=Math.clz32?Math.clz32:xc,Ac=Math.log,_c=Math.LN2;function xc(e){return e>>>=0,e===0?32:31-(Ac(e)/_c|0)|0}var Pi=256,Fi=4194304;function ra(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $i(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var c=0,d=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var A=i&134217727;return A!==0?(i=A&~d,i!==0?c=ra(i):(g&=A,g!==0?c=ra(g):n||(n=A&~e,n!==0&&(c=ra(n))))):(A=i&~d,A!==0?c=ra(A):g!==0?c=ra(g):n||(n=i&~e,n!==0&&(c=ra(n)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,n=t&-t,d>=n||d===32&&(n&4194048)!==0)?t:c}function gi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Jm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ld(){var e=Pi;return Pi<<=1,(Pi&4194048)===0&&(Pi=256),e}function Ud(){var e=Fi;return Fi<<=1,(Fi&62914560)===0&&(Fi=4194304),e}function Ts(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function el(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Wm(e,t,n,i,c,d){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var A=e.entanglements,M=e.expirationTimes,G=e.hiddenUpdates;for(n=g&~n;0<n;){var $=31-En(n),re=1<<$;A[$]=0,M[$]=-1;var Z=G[$];if(Z!==null)for(G[$]=null,$=0;$<Z.length;$++){var q=Z[$];q!==null&&(q.lane&=-536870913)}n&=~re}i!==0&&jd(e,i,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(g&~t))}function jd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-En(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function Hd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-En(n),c=1<<i;c&t|e[i]&t&&(e[i]|=t),n&=~c}}function Sc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ms(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function kd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:tm(e.type))}function Pm(e,t){var n=X.p;try{return X.p=e,t()}finally{X.p=n}}var Na=Math.random().toString(36).slice(2),sn="__reactFiber$"+Na,Dn="__reactProps$"+Na,Da="__reactContainer$"+Na,Ec="__reactEvents$"+Na,Fm="__reactListeners$"+Na,$m="__reactHandles$"+Na,Gd="__reactResources$"+Na,ru="__reactMarker$"+Na;function Oc(e){delete e[sn],delete e[Dn],delete e[Ec],delete e[Fm],delete e[$m]}function tl(e){var t=e[sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Da]||n[sn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vv(e);e!==null;){if(n=e[sn])return n;e=Vv(e)}return t}e=n,n=e.parentNode}return null}function nl(e){if(e=e[sn]||e[Da]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function rl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function al(e){var t=e[Gd];return t||(t=e[Gd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function on(e){e[ru]=!0}var qd=new Set,Yd={};function pi(e,t){il(e,t),il(e+"Capture",t)}function il(e,t){for(Yd[e]=t,e=0;e<t.length;e++)qd.add(t[e])}var Cs=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]*$"),Vd={},au={};function eg(e){return Kt.call(au,e)?!0:Kt.call(Vd,e)?!1:Cs.test(e)?au[e]=!0:(Vd[e]=!0,!1)}function Rs(e,t,n){if(eg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ns(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function jr(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var Ds,wc;function ll(e){if(Ds===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ds=t&&t[1]||"",wc=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ds+e+wc}var Tc=!1;function Mc(e,t){if(!e||Tc)return"";Tc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(q){var Z=q}Reflect.construct(e,[],re)}else{try{re.call()}catch(q){Z=q}e.call(re.prototype)}}else{try{throw Error()}catch(q){Z=q}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(q){if(q&&Z&&typeof q.stack=="string")return[q.stack,Z.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=i.DetermineComponentFrameRoot(),g=d[0],A=d[1];if(g&&A){var M=g.split(`
`),G=A.split(`
`);for(c=i=0;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;for(;c<G.length&&!G[c].includes("DetermineComponentFrameRoot");)c++;if(i===M.length||c===G.length)for(i=M.length-1,c=G.length-1;1<=i&&0<=c&&M[i]!==G[c];)c--;for(;1<=i&&0<=c;i--,c--)if(M[i]!==G[c]){if(i!==1||c!==1)do if(i--,c--,0>c||M[i]!==G[c]){var $=`
`+M[i].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=i&&0<=c);break}}}finally{Tc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ll(n):""}function tg(e){switch(e.tag){case 26:case 27:case 5:return ll(e.type);case 16:return ll("Lazy");case 13:return ll("Suspense");case 19:return ll("SuspenseList");case 0:case 15:return Mc(e.type,!1);case 11:return Mc(e.type.render,!1);case 1:return Mc(e.type,!0);case 31:return ll("Activity");default:return""}}function Cc(e){try{var t="";do t+=tg(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function Zn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nc(e){var t=Rc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var c=n.get,d=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){i=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){e._valueTracker||(e._valueTracker=Nc(e))}function Dc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Rc(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Qd=/[\n"\\]/g;function lr(e){return e.replace(Qd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Bs(e,t,n,i,c,d,g,A){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Zn(t)):e.value!==""+Zn(t)&&(e.value=""+Zn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?iu(e,g,Zn(t)):n!=null?iu(e,g,Zn(n)):i!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+Zn(A):e.removeAttribute("name")}function zc(e,t,n,i,c,d,g,A){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||n!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;n=n!=null?""+Zn(n):"",t=t!=null?""+Zn(t):n,A||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=A?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function iu(e,t,n){t==="number"&&bi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ul(e,t,n,i){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Zn(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Bc(e,t,n){if(t!=null&&(t=""+Zn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Zn(n):""}function Ls(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(o(92));if(ie(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Zn(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function za(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var sl=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 Lc(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||sl.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Uc(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&n[c]!==i&&Lc(e,c,i)}else for(var d in t)t.hasOwnProperty(d)&&Lc(e,d,t[d])}function jc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xd=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"]]),Kd=/^[\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 lu(e){return Kd.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Us=null;function Hc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ol=null,cl=null;function kc(e){var t=nl(e);if(t&&(e=t.stateNode)){var n=e[Dn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+lr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var c=i[Dn]||null;if(!c)throw Error(o(90));Bs(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Dc(i)}break e;case"textarea":Bc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ul(e,!!n.multiple,t,!1)}}}var Gc=!1;function Zd(e,t,n){if(Gc)return e(t,n);Gc=!0;try{var i=e(t);return i}finally{if(Gc=!1,(ol!==null||cl!==null)&&(jo(),ol&&(t=ol,e=cl,cl=ol=null,kc(t),e)))for(t=0;t<e.length;t++)kc(e[t])}}function uu(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Dn]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),su=!1;if(aa)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){su=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{su=!1}var Ba=null,qc=null,js=null;function Id(){if(js)return js;var e,t=qc,n=t.length,i,c="value"in Ba?Ba.value:Ba.textContent,d=c.length;for(e=0;e<n&&t[e]===c[e];e++);var g=n-e;for(i=1;i<=g&&t[n-i]===c[d-i];i++);return js=c.slice(e,1<i?1-i:void 0)}function xt(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bt(){return!0}function Jd(){return!1}function zn(e){function t(n,i,c,d,g){this._reactName=n,this._targetInst=c,this.type=i,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(n=e[A],this[A]=n?n(d):d[A]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?bt:Jd,this.isPropagationStopped=Jd,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bt)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bt)},persist:function(){},isPersistent:bt}),t}var yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hs=zn(yi),cu=w({},yi,{view:0,detail:0}),ng=zn(cu),ks,Yc,It,fl=w({},cu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==It&&(It&&e.type==="mousemove"?(ks=e.screenX-It.screenX,Yc=e.screenY-It.screenY):Yc=ks=0,It=e),ks)},movementY:function(e){return"movementY"in e?e.movementY:Yc}}),La=zn(fl),Wd=w({},fl,{dataTransfer:0}),Vc=zn(Wd),ur=w({},cu,{relatedTarget:0}),Gs=zn(ur),Pd=w({},yi,{animationName:0,elapsedTime:0,pseudoElement:0}),Fd=zn(Pd),$d=w({},yi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eh=zn($d),th=w({},yi,{data:0}),Bn=zn(th),rg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sr={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"},ag={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ag[e])?!!t[e]:!1}function Hr(){return nh}var qs=w({},cu,{key:function(e){if(e.key){var t=rg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xt(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hr,charCode:function(e){return e.type==="keypress"?xt(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xt(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qc=zn(qs),zt=w({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ia=zn(zt),Xc=w({},cu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hr}),ig=zn(Xc),Kc=w({},yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),lg=zn(Kc),ug=w({},fl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sg=zn(ug),rh=w({},yi,{newState:0,oldState:0}),Ys=zn(rh),dl=[9,13,27,32],Zc=aa&&"CompositionEvent"in window,hl=null;aa&&"documentMode"in document&&(hl=document.documentMode);var ah=aa&&"TextEvent"in window&&!hl,Vs=aa&&(!Zc||hl&&8<hl&&11>=hl),Qs=" ",Ic=!1;function ih(e,t){switch(e){case"keyup":return dl.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ua=!1;function og(e,t){switch(e){case"compositionend":return Xs(t);case"keypress":return t.which!==32?null:(Ic=!0,Qs);case"textInput":return e=t.data,e===Qs&&Ic?null:e;default:return null}}function lh(e,t){if(Ua)return e==="compositionend"||!Zc&&ih(e,t)?(e=Id(),js=qc=Ba=null,Ua=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vs&&t.locale!=="ko"?null:t.data;default:return null}}var In={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 Ks(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!In[e.type]:t==="textarea"}function vl(e,t,n,i){ol?cl?cl.push(i):cl=[i]:ol=i,t=Qo(t,"onChange"),0<t.length&&(n=new Hs("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var ml=null,gl=null;function cg(e){Lv(e,0)}function Zs(e){var t=rl(e);if(Dc(t))return e}function uh(e,t){if(e==="change")return t}var sh=!1;if(aa){var Jc;if(aa){var ja="oninput"in document;if(!ja){var oh=document.createElement("div");oh.setAttribute("oninput","return;"),ja=typeof oh.oninput=="function"}Jc=ja}else Jc=!1;sh=Jc&&(!document.documentMode||9<document.documentMode)}function ch(){ml&&(ml.detachEvent("onpropertychange",Is),gl=ml=null)}function Is(e){if(e.propertyName==="value"&&Zs(gl)){var t=[];vl(t,gl,e,Hc(e)),Zd(cg,t)}}function fh(e,t,n){e==="focusin"?(ch(),ml=t,gl=n,ml.attachEvent("onpropertychange",Is)):e==="focusout"&&ch()}function Ha(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zs(gl)}function Js(e,t){if(e==="click")return Zs(t)}function fg(e,t){if(e==="input"||e==="change")return Zs(t)}function dg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:dg;function kr(e,t){if(Jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var c=n[i];if(!Kt.call(t,c)||!Jn(e[c],t[c]))return!1}return!0}function or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wc(e,t){var n=or(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=or(n)}}function dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bi(e.document)}return t}function Pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var hg=aa&&"documentMode"in document&&11>=document.documentMode,pl=null,ka=null,z=null,P=!1;function I(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;P||pl==null||pl!==bi(i)||(i=pl,"selectionStart"in i&&Pc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),z&&kr(z,i)||(z=i,i=Qo(ka,"onSelect"),0<i.length&&(t=new Hs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=pl)))}function _e(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var je={animationend:_e("Animation","AnimationEnd"),animationiteration:_e("Animation","AnimationIteration"),animationstart:_e("Animation","AnimationStart"),transitionrun:_e("Transition","TransitionRun"),transitionstart:_e("Transition","TransitionStart"),transitioncancel:_e("Transition","TransitionCancel"),transitionend:_e("Transition","TransitionEnd")},ut={},Jt={};aa&&(Jt=document.createElement("div").style,"AnimationEvent"in window||(delete je.animationend.animation,delete je.animationiteration.animation,delete je.animationstart.animation),"TransitionEvent"in window||delete je.transitionend.transition);function st(e){if(ut[e])return ut[e];if(!je[e])return e;var t=je[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jt)return ut[e]=t[n];return e}var Ws=st("animationend"),vh=st("animationiteration"),Wn=st("animationstart"),Ps=st("transitionrun"),vg=st("transitionstart"),bl=st("transitioncancel"),fu=st("transitionend"),du=new Map,ft="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(" ");ft.push("scrollEnd");function xr(e,t){du.set(e,t),pi(t,[e])}var Fc=new WeakMap;function On(e,t){if(typeof e=="object"&&e!==null){var n=Fc.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Cc(t)},Fc.set(e,t),t)}return{value:e,source:t,stack:Cc(t)}}var cr=[],yl=0,$c=0;function Ai(){for(var e=yl,t=$c=yl=0;t<e;){var n=cr[t];cr[t++]=null;var i=cr[t];cr[t++]=null;var c=cr[t];cr[t++]=null;var d=cr[t];if(cr[t++]=null,i!==null&&c!==null){var g=i.pending;g===null?c.next=c:(c.next=g.next,g.next=c),i.pending=c}d!==0&&hu(n,c,d)}}function Sr(e,t,n,i){cr[yl++]=e,cr[yl++]=t,cr[yl++]=n,cr[yl++]=i,$c|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Al(e,t,n,i){return Sr(e,t,n,i),vu(e)}function _i(e,t){return Sr(e,null,null,t),vu(e)}function hu(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var c=!1,d=e.return;d!==null;)d.childLanes|=n,i=d.alternate,i!==null&&(i.childLanes|=n),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-En(n),e=d.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=n|536870912),d):null}function vu(e){if(50<Yl)throw Yl=0,If=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var xi={};function Fs(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(e,t,n,i){return new Fs(e,t,n,i)}function Si(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wn(e,t){var n=e.alternate;return n===null?(n=Ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function mu(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $s(e,t,n,i,c,d){var g=0;if(i=e,typeof e=="function")Si(e)&&(g=1);else if(typeof e=="string")g=Xg(e,n,ve.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case we:return e=Ln(31,n,t,c),e.elementType=we,e.lanes=d,e;case k:return Ei(n.children,c,d,t);case j:g=8,c|=24;break;case W:return e=Ln(12,n,t,c|2),e.elementType=W,e.lanes=d,e;case F:return e=Ln(13,n,t,c),e.elementType=F,e.lanes=d,e;case le:return e=Ln(19,n,t,c),e.elementType=le,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:case be:g=10;break e;case ge:g=9;break e;case he:g=11;break e;case ue:g=14;break e;case ce:g=16,i=null;break e}g=29,n=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=Ln(g,n,t,c),t.elementType=e,t.type=i,t.lanes=d,t}function Ei(e,t,n,i){return e=Ln(7,e,i,t),e.lanes=n,e}function ef(e,t,n){return e=Ln(6,e,null,t),e.lanes=n,e}function _l(e,t,n){return t=Ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var la=[],Ga=0,eo=null,gu=0,fr=[],dr=0,Rt=null,Bt=1,ua="";function Oi(e,t){la[Ga++]=gu,la[Ga++]=eo,eo=e,gu=t}function tf(e,t,n){fr[dr++]=Bt,fr[dr++]=ua,fr[dr++]=Rt,Rt=e;var i=Bt;e=ua;var c=32-En(i)-1;i&=~(1<<c),n+=1;var d=32-En(t)+c;if(30<d){var g=c-c%5;d=(i&(1<<g)-1).toString(32),i>>=g,c-=g,Bt=1<<32-En(t)+c|n<<c|i,ua=d+e}else Bt=1<<d|n<<c|i,ua=e}function nf(e){e.return!==null&&(Oi(e,1),tf(e,1,0))}function pu(e){for(;e===eo;)eo=la[--Ga],la[Ga]=null,gu=la[--Ga],la[Ga]=null;for(;e===Rt;)Rt=fr[--dr],fr[dr]=null,ua=fr[--dr],fr[dr]=null,Bt=fr[--dr],fr[dr]=null}var $t=null,Lt=null,nt=!1,Er=null,Un=!1,xl=Error(o(519));function hr(e){var t=Error(o(418,""));throw qa(On(t,e)),xl}function mh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[sn]=e,t[Dn]=i,n){case"dialog":et("cancel",t),et("close",t);break;case"iframe":case"object":case"embed":et("load",t);break;case"video":case"audio":for(n=0;n<is.length;n++)et(is[n],t);break;case"source":et("error",t);break;case"img":case"image":case"link":et("error",t),et("load",t);break;case"details":et("toggle",t);break;case"input":et("invalid",t),zc(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),zs(t);break;case"select":et("invalid",t);break;case"textarea":et("invalid",t),Ls(t,i.value,i.defaultValue,i.children),zs(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Hv(t.textContent,n)?(i.popover!=null&&(et("beforetoggle",t),et("toggle",t)),i.onScroll!=null&&et("scroll",t),i.onScrollEnd!=null&&et("scrollend",t),i.onClick!=null&&(t.onclick=Xo),t=!0):t=!1,t||hr(e)}function gh(e){for($t=e.return;$t;)switch($t.tag){case 5:case 13:Un=!1;return;case 27:case 3:Un=!0;return;default:$t=$t.return}}function bu(e){if(e!==$t)return!1;if(!nt)return gh(e),nt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Zo(e.type,e.memoizedProps)),n=!n),n&&Lt&&hr(e),gh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Lt=Rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Lt=null}}else t===27?(t=Lt,yr(e.type)?(e=sd,sd=null,Lt=e):Lt=t):Lt=$t?Rr(e.stateNode.nextSibling):null;return!0}function yu(){Lt=$t=null,nt=!1}function ph(){var e=Er;return e!==null&&(Qn===null?Qn=e:Qn.push.apply(Qn,e),Er=null),e}function qa(e){Er===null?Er=[e]:Er.push(e)}var wi=K(null),Ya=null,y=null;function Pn(e,t,n){ee(wi,t._currentValue),t._currentValue=n}function vr(e){e._currentValue=wi.current,oe(wi)}function jn(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function We(e,t,n,i){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var g=c.child;d=d.firstContext;e:for(;d!==null;){var A=d;d=c;for(var M=0;M<t.length;M++)if(A.context===t[M]){d.lanes|=n,A=d.alternate,A!==null&&(A.lanes|=n),jn(d.return,n,e),i||(g=null);break e}d=A.next}}else if(c.tag===18){if(g=c.return,g===null)throw Error(o(341));g.lanes|=n,d=g.alternate,d!==null&&(d.lanes|=n),jn(g,n,e),g=null}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===e){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}}function Au(e,t,n,i){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var g=c.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var A=c.type;Jn(c.pendingProps.value,g.value)||(e!==null?e.push(A):e=[A])}}else if(c===Ve.current){if(g=c.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Wl):e=[Wl])}c=c.return}e!==null&&We(t,e,n,i),t.flags|=262144}function to(e){for(e=e.firstContext;e!==null;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ti(e){Ya=e,y=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yt(e){return bh(Ya,e)}function no(e,t){return Ya===null&&Ti(e),bh(e,t)}function bh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},y===null){if(e===null)throw Error(o(308));y=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else y=y.next=t;return n}var mg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},gg=l.unstable_scheduleCallback,pg=l.unstable_NormalPriority,Ot={$$typeof:be,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rf(){return{controller:new mg,data:new Map,refCount:0}}function _u(e){e.refCount--,e.refCount===0&&gg(pg,function(){e.controller.abort()})}var xu=null,af=0,Sl=0,Hn=null;function bg(e,t){if(xu===null){var n=xu=[];af=0,Sl=Vo(),Hn={status:"pending",value:void 0,then:function(i){n.push(i)}}}return af++,t.then(yh,yh),t}function yh(){if(--af===0&&xu!==null){Hn!==null&&(Hn.status="fulfilled");var e=xu;xu=null,Sl=0,Hn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yg(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),i}var Ah=C.S;C.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&bg(e,t),Ah!==null&&Ah(e,t)};var Mi=K(null);function sa(){var e=Mi.current;return e!==null?e:Ct.pooledCache}function ro(e,t){t===null?ee(Mi,Mi.current):ee(Mi,t.pool)}function _h(){var e=sa();return e===null?null:{parent:Ot._currentValue,pool:e}}var Tn=Error(o(460)),xh=Error(o(474)),ao=Error(o(542)),lf={then:function(){}};function Sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function io(){}function uf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(io,io),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Oh(e),e;default:if(typeof t.status=="string")t.then(io,io);else{if(e=Ct,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Oh(e),e}throw El=t,Tn}}var El=null;function Eh(){if(El===null)throw Error(o(459));var e=El;return El=null,e}function Oh(e){if(e===Tn||e===ao)throw Error(o(483))}var Gr=!1;function Ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ol(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function oa(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(At&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=vu(e),hu(e,null,n),t}return Sr(e,i,t,n),vu(e)}function Su(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Hd(e,n)}}function Or(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var c=null,d=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};d===null?c=d=g:d=d.next=g,n=n.next}while(n!==null);d===null?c=d=t:d=d.next=t}else c=d=t;n={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Eu=!1;function wr(){if(Eu){var e=Hn;if(e!==null)throw e}}function bn(e,t,n,i){Eu=!1;var c=e.updateQueue;Gr=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,A=c.shared.pending;if(A!==null){c.shared.pending=null;var M=A,G=M.next;M.next=null,g===null?d=G:g.next=G,g=M;var $=e.alternate;$!==null&&($=$.updateQueue,A=$.lastBaseUpdate,A!==g&&(A===null?$.firstBaseUpdate=G:A.next=G,$.lastBaseUpdate=M))}if(d!==null){var re=c.baseState;g=0,$=G=M=null,A=d;do{var Z=A.lane&-536870913,q=Z!==A.lane;if(q?(lt&Z)===Z:(i&Z)===Z){Z!==0&&Z===Sl&&(Eu=!0),$!==null&&($=$.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Be=e,ze=A;Z=t;var Et=n;switch(ze.tag){case 1:if(Be=ze.payload,typeof Be=="function"){re=Be.call(Et,re,Z);break e}re=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=ze.payload,Z=typeof Be=="function"?Be.call(Et,re,Z):Be,Z==null)break e;re=w({},re,Z);break e;case 2:Gr=!0}}Z=A.callback,Z!==null&&(e.flags|=64,q&&(e.flags|=8192),q=c.callbacks,q===null?c.callbacks=[Z]:q.push(Z))}else q={lane:Z,tag:A.tag,payload:A.payload,callback:A.callback,next:null},$===null?(G=$=q,M=re):$=$.next=q,g|=Z;if(A=A.next,A===null){if(A=c.shared.pending,A===null)break;q=A,A=q.next,q.next=null,c.lastBaseUpdate=q,c.shared.pending=null}}while(!0);$===null&&(M=re),c.baseState=M,c.firstBaseUpdate=G,c.lastBaseUpdate=$,d===null&&(c.shared.lanes=0),Fa|=g,e.lanes=g,e.memoizedState=re}}function wh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function sf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)wh(n[e],t)}var Ri=K(null),Qa=K(0);function ca(e,t){e=ya,ee(Qa,e),ee(Ri,t),ya=e|t.baseLanes}function lo(){ee(Qa,ya),ee(Ri,Ri.current)}function of(){ya=Qa.current,oe(Ri),oe(Qa)}var Tr=0,Ie=null,yt=null,rt=null,wl=!1,Ni=!1,yn=!1,Tl=0,Xa=0,mr=null,Th=0;function at(){throw Error(o(321))}function Ou(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function cf(e,t,n,i,c,d){return Tr=d,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?Gh:Mf,yn=!1,d=n(i,c),yn=!1,Ni&&(d=Ch(t,n,i,c)),Mh(e),d}function Mh(e){C.H=Uu;var t=yt!==null&&yt.next!==null;if(Tr=0,rt=yt=Ie=null,wl=!1,Xa=0,mr=null,t)throw Error(o(300));e===null||cn||(e=e.dependencies,e!==null&&to(e)&&(cn=!0))}function Ch(e,t,n,i){Ie=e;var c=0;do{if(Ni&&(mr=null),Xa=0,Ni=!1,25<=c)throw Error(o(301));if(c+=1,rt=yt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}C.H=qh,d=t(n,i)}while(Ni);return d}function ff(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?wu(t):t,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(Ie.flags|=1024),t}function df(){var e=Tl!==0;return Tl=0,e}function Di(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function uo(e){if(wl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wl=!1}Tr=0,rt=yt=Ie=null,Ni=!1,Xa=Tl=0,mr=null}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Ie.memoizedState=rt=e:rt=rt.next=e,rt}function Wt(){if(yt===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=rt===null?Ie.memoizedState:rt.next;if(t!==null)rt=t,yt=e;else{if(e===null)throw Ie.alternate===null?Error(o(467)):Error(o(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},rt===null?Ie.memoizedState=rt=e:rt=rt.next=e}return rt}function zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wu(e){var t=Xa;return Xa+=1,mr===null&&(mr=[]),e=uf(mr,e,t),t=Ie,(rt===null?t.memoizedState:rt.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?Gh:Mf),e}function so(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wu(e);if(e.$$typeof===be)return Yt(e)}throw Error(o(438,String(e)))}function Tu(e){var t=null,n=Ie.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ie.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=zi(),Ie.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=He;return t.index++,n}function qr(e,t){return typeof t=="function"?t(e):t}function oo(e){var t=Wt();return hf(t,yt,e)}function hf(e,t,n){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var c=e.baseQueue,d=i.pending;if(d!==null){if(c!==null){var g=c.next;c.next=d.next,d.next=g}t.baseQueue=c=d,i.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var A=g=null,M=null,G=t,$=!1;do{var re=G.lane&-536870913;if(re!==G.lane?(lt&re)===re:(Tr&re)===re){var Z=G.revertLane;if(Z===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),re===Sl&&($=!0);else if((Tr&Z)===Z){G=G.next,Z===Sl&&($=!0);continue}else re={lane:0,revertLane:G.revertLane,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},M===null?(A=M=re,g=d):M=M.next=re,Ie.lanes|=Z,Fa|=Z;re=G.action,yn&&n(d,re),d=G.hasEagerState?G.eagerState:n(d,re)}else Z={lane:re,revertLane:G.revertLane,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},M===null?(A=M=Z,g=d):M=M.next=Z,Ie.lanes|=re,Fa|=re;G=G.next}while(G!==null&&G!==t);if(M===null?g=d:M.next=A,!Jn(d,e.memoizedState)&&(cn=!0,$&&(n=Hn,n!==null)))throw n;e.memoizedState=d,e.baseState=g,e.baseQueue=M,i.lastRenderedState=d}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function vf(e){var t=Wt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,c=n.pending,d=t.memoizedState;if(c!==null){n.pending=null;var g=c=c.next;do d=e(d,g.action),g=g.next;while(g!==c);Jn(d,t.memoizedState)||(cn=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),n.lastRenderedState=d}return[d,i]}function mf(e,t,n){var i=Ie,c=Wt(),d=nt;if(d){if(n===void 0)throw Error(o(407));n=n()}else n=t();var g=!Jn((yt||c).memoizedState,n);g&&(c.memoizedState=n,cn=!0),c=c.queue;var A=fo.bind(null,i,c,e);if(Ru(2048,8,A,[e]),c.getSnapshot!==t||g||rt!==null&&rt.memoizedState.tag&1){if(i.flags|=2048,Ml(9,po(),Rh.bind(null,i,c,n,t),null),Ct===null)throw Error(o(349));d||(Tr&124)!==0||co(i,t,n)}return n}function co(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t=zi(),Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Rh(e,t,n,i){t.value=n,t.getSnapshot=i,gf(t)&&pf(e)}function fo(e,t,n){return n(function(){gf(t)&&pf(e)})}function gf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function pf(e){var t=_i(e,2);t!==null&&nr(t,e,2)}function ho(e){var t=kn();if(typeof e=="function"){var n=e;if(e=n(),yn){mn(!0);try{n()}finally{mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:e},t}function Mu(e,t,n,i){return e.baseState=n,hf(e,yt,typeof i=="function"?i:qr)}function Ag(e,t,n,i,c){if(_o(e))throw Error(o(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){d.listeners.push(g)}};C.T!==null?n(!0):d.isTransition=!1,i(d),n=t.pending,n===null?(d.next=t.pending=d,bf(t,d)):(d.next=n.next,t.pending=n.next=d)}}function bf(e,t){var n=t.action,i=t.payload,c=e.state;if(t.isTransition){var d=C.T,g={};C.T=g;try{var A=n(c,i),M=C.S;M!==null&&M(g,A),yf(e,t,A)}catch(G){vo(e,t,G)}finally{C.T=d}}else try{d=n(c,i),yf(e,t,d)}catch(G){vo(e,t,G)}}function yf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Nh(e,t,i)},function(i){return vo(e,t,i)}):Nh(e,t,n)}function Nh(e,t,n){t.status="fulfilled",t.value=n,Dh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,bf(e,n)))}function vo(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Dh(t),t=t.next;while(t!==i)}e.action=null}function Dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mo(e,t){return t}function Af(e,t){if(nt){var n=Ct.formState;if(n!==null){e:{var i=Ie;if(nt){if(Lt){t:{for(var c=Lt,d=Un;c.nodeType!==8;){if(!d){c=null;break t}if(c=Rr(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Lt=Rr(c.nextSibling),i=c.data==="F!";break e}}hr(i)}i=!1}i&&(t=n[0])}}return n=kn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mo,lastRenderedState:t},n.queue=i,n=Of.bind(null,Ie,i),i.dispatch=n,i=ho(!1),d=wf.bind(null,Ie,!1,i.queue),i=kn(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,n=Ag.bind(null,Ie,c,d,n),c.dispatch=n,i.memoizedState=e,[t,n,!1]}function go(e){var t=Wt();return zh(t,yt,e)}function zh(e,t,n){if(t=hf(e,t,mo)[0],e=oo(qr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=wu(t)}catch(g){throw g===Tn?ao:g}else i=t;t=Wt();var c=t.queue,d=c.dispatch;return n!==t.memoizedState&&(Ie.flags|=2048,Ml(9,po(),_f.bind(null,c,n),null)),[i,d,e]}function _f(e,t){e.action=t}function Ze(e){var t=Wt(),n=yt;if(n!==null)return zh(t,n,e);Wt(),t=t.memoizedState,n=Wt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Ml(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ie.updateQueue,t===null&&(t=zi(),Ie.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function po(){return{destroy:void 0,resource:void 0}}function Cl(){return Wt().memoizedState}function Cu(e,t,n,i){var c=kn();i=i===void 0?null:i,Ie.flags|=e,c.memoizedState=Ml(1|t,po(),n,i)}function Ru(e,t,n,i){var c=Wt();i=i===void 0?null:i;var d=c.memoizedState.inst;yt!==null&&i!==null&&Ou(i,yt.memoizedState.deps)?c.memoizedState=Ml(t,d,n,i):(Ie.flags|=e,c.memoizedState=Ml(1|t,d,n,i))}function Bh(e,t){Cu(8390656,8,e,t)}function Fn(e,t){Ru(2048,8,e,t)}function Lh(e,t){return Ru(4,2,e,t)}function Nu(e,t){return Ru(4,4,e,t)}function bo(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xf(e,t,n){n=n!=null?n.concat([e]):null,Ru(4,4,bo.bind(null,t,e),n)}function yo(){}function Gn(e,t){var n=Wt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Ou(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function fa(e,t){var n=Wt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Ou(t,i[1]))return i[0];if(i=e(),yn){mn(!0);try{e()}finally{mn(!1)}}return n.memoizedState=[i,t],i}function Du(e,t,n){return n===void 0||(Tr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=vv(),Ie.lanes|=e,Fa|=e,n)}function Sf(e,t,n,i){return Jn(n,t)?n:Ri.current!==null?(e=Du(e,n,i),Jn(e,t)||(cn=!0),e):(Tr&42)===0?(cn=!0,e.memoizedState=n):(e=vv(),Ie.lanes|=e,Fa|=e,t)}function zu(e,t,n,i,c){var d=X.p;X.p=d!==0&&8>d?d:8;var g=C.T,A={};C.T=A,wf(e,!1,t,n);try{var M=c(),G=C.S;if(G!==null&&G(A,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var $=yg(M,i);Bi(e,t,$,_n(e))}else Bi(e,t,i,_n(e))}catch(re){Bi(e,t,{then:function(){},status:"rejected",reason:re},_n())}finally{X.p=d,C.T=g}}function Uh(){}function Bu(e,t,n,i){if(e.tag!==5)throw Error(o(476));var c=Ef(e).queue;zu(e,c,t,B,n===null?Uh:function(){return Ao(e),n(i)})}function Ef(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:B},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ao(e){var t=Ef(e).next.queue;Bi(e,t,{},_n())}function Lu(){return Yt(Wl)}function da(){return Wt().memoizedState}function jh(){return Wt().memoizedState}function Ka(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_n();e=Va(n);var i=oa(t,e,n);i!==null&&(nr(i,t,n),Su(i,t,n)),t={cache:rf()},e.payload=t;return}t=t.return}}function Hh(e,t,n){var i=_n();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},_o(e)?kh(t,n):(n=Al(e,t,n,i),n!==null&&(nr(n,e,i),Tf(n,t,i)))}function Of(e,t,n){var i=_n();Bi(e,t,n,i)}function Bi(e,t,n,i){var c={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(_o(e))kh(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,A=d(g,n);if(c.hasEagerState=!0,c.eagerState=A,Jn(A,g))return Sr(e,t,c,0),Ct===null&&Ai(),!1}catch{}finally{}if(n=Al(e,t,c,i),n!==null)return nr(n,e,i),Tf(n,t,i),!0}return!1}function wf(e,t,n,i){if(i={lane:2,revertLane:Vo(),action:i,hasEagerState:!1,eagerState:null,next:null},_o(e)){if(t)throw Error(o(479))}else t=Al(e,n,i,2),t!==null&&nr(t,e,2)}function _o(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function kh(e,t){Ni=wl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tf(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Hd(e,n)}}var Uu={readContext:Yt,use:so,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at},Gh={readContext:Yt,use:so,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:Yt,useEffect:Bh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Cu(4194308,4,bo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cu(4194308,4,e,t)},useInsertionEffect:function(e,t){Cu(4,2,e,t)},useMemo:function(e,t){var n=kn();t=t===void 0?null:t;var i=e();if(yn){mn(!0);try{e()}finally{mn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=kn();if(n!==void 0){var c=n(t);if(yn){mn(!0);try{n(t)}finally{mn(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=Hh.bind(null,Ie,e),[i.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:function(e){e=ho(e);var t=e.queue,n=Of.bind(null,Ie,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yo,useDeferredValue:function(e,t){var n=kn();return Du(n,e,t)},useTransition:function(){var e=ho(!1);return e=zu.bind(null,Ie,e.queue,!0,!1),kn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ie,c=kn();if(nt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ct===null)throw Error(o(349));(lt&124)!==0||co(i,t,n)}c.memoizedState=n;var d={value:n,getSnapshot:t};return c.queue=d,Bh(fo.bind(null,i,d,e),[e]),i.flags|=2048,Ml(9,po(),Rh.bind(null,i,d,n,t),null),n},useId:function(){var e=kn(),t=Ct.identifierPrefix;if(nt){var n=ua,i=Bt;n=(i&~(1<<32-En(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=Tl++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Th++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Lu,useFormState:Af,useActionState:Af,useOptimistic:function(e){var t=kn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=wf.bind(null,Ie,!0,n),n.dispatch=t,[e,t]},useMemoCache:Tu,useCacheRefresh:function(){return kn().memoizedState=Ka.bind(null,Ie)}},Mf={readContext:Yt,use:so,useCallback:Gn,useContext:Yt,useEffect:Fn,useImperativeHandle:xf,useInsertionEffect:Lh,useLayoutEffect:Nu,useMemo:fa,useReducer:oo,useRef:Cl,useState:function(){return oo(qr)},useDebugValue:yo,useDeferredValue:function(e,t){var n=Wt();return Sf(n,yt.memoizedState,e,t)},useTransition:function(){var e=oo(qr)[0],t=Wt().memoizedState;return[typeof e=="boolean"?e:wu(e),t]},useSyncExternalStore:mf,useId:da,useHostTransitionStatus:Lu,useFormState:go,useActionState:go,useOptimistic:function(e,t){var n=Wt();return Mu(n,yt,e,t)},useMemoCache:Tu,useCacheRefresh:jh},qh={readContext:Yt,use:so,useCallback:Gn,useContext:Yt,useEffect:Fn,useImperativeHandle:xf,useInsertionEffect:Lh,useLayoutEffect:Nu,useMemo:fa,useReducer:vf,useRef:Cl,useState:function(){return vf(qr)},useDebugValue:yo,useDeferredValue:function(e,t){var n=Wt();return yt===null?Du(n,e,t):Sf(n,yt.memoizedState,e,t)},useTransition:function(){var e=vf(qr)[0],t=Wt().memoizedState;return[typeof e=="boolean"?e:wu(e),t]},useSyncExternalStore:mf,useId:da,useHostTransitionStatus:Lu,useFormState:Ze,useActionState:Ze,useOptimistic:function(e,t){var n=Wt();return yt!==null?Mu(n,yt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Tu,useCacheRefresh:jh},en=null,qn=0;function xo(e){var t=qn;return qn+=1,en===null&&(en=[]),uf(en,e,t)}function ju(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Li(e,t){throw t.$$typeof===R?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ui(e){var t=e._init;return t(e._payload)}function Cf(e){function t(L,D){if(e){var H=L.deletions;H===null?(L.deletions=[D],L.flags|=16):H.push(D)}}function n(L,D){if(!e)return null;for(;D!==null;)t(L,D),D=D.sibling;return null}function i(L){for(var D=new Map;L!==null;)L.key!==null?D.set(L.key,L):D.set(L.index,L),L=L.sibling;return D}function c(L,D){return L=wn(L,D),L.index=0,L.sibling=null,L}function d(L,D,H){return L.index=H,e?(H=L.alternate,H!==null?(H=H.index,H<D?(L.flags|=67108866,D):H):(L.flags|=67108866,D)):(L.flags|=1048576,D)}function g(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function A(L,D,H,te){return D===null||D.tag!==6?(D=ef(H,L.mode,te),D.return=L,D):(D=c(D,H),D.return=L,D)}function M(L,D,H,te){var Ee=H.type;return Ee===k?$(L,D,H.props.children,te,H.key):D!==null&&(D.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===ce&&Ui(Ee)===D.type)?(D=c(D,H.props),ju(D,H),D.return=L,D):(D=$s(H.type,H.key,H.props,null,L.mode,te),ju(D,H),D.return=L,D)}function G(L,D,H,te){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=_l(H,L.mode,te),D.return=L,D):(D=c(D,H.children||[]),D.return=L,D)}function $(L,D,H,te,Ee){return D===null||D.tag!==7?(D=Ei(H,L.mode,te,Ee),D.return=L,D):(D=c(D,H),D.return=L,D)}function re(L,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=ef(""+D,L.mode,H),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return H=$s(D.type,D.key,D.props,null,L.mode,H),ju(H,D),H.return=L,H;case Q:return D=_l(D,L.mode,H),D.return=L,D;case ce:var te=D._init;return D=te(D._payload),re(L,D,H)}if(ie(D)||Ue(D))return D=Ei(D,L.mode,H,null),D.return=L,D;if(typeof D.then=="function")return re(L,xo(D),H);if(D.$$typeof===be)return re(L,no(L,D),H);Li(L,D)}return null}function Z(L,D,H,te){var Ee=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return Ee!==null?null:A(L,D,""+H,te);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case V:return H.key===Ee?M(L,D,H,te):null;case Q:return H.key===Ee?G(L,D,H,te):null;case ce:return Ee=H._init,H=Ee(H._payload),Z(L,D,H,te)}if(ie(H)||Ue(H))return Ee!==null?null:$(L,D,H,te,null);if(typeof H.then=="function")return Z(L,D,xo(H),te);if(H.$$typeof===be)return Z(L,D,no(L,H),te);Li(L,H)}return null}function q(L,D,H,te,Ee){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return L=L.get(H)||null,A(D,L,""+te,Ee);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case V:return L=L.get(te.key===null?H:te.key)||null,M(D,L,te,Ee);case Q:return L=L.get(te.key===null?H:te.key)||null,G(D,L,te,Ee);case ce:var Pe=te._init;return te=Pe(te._payload),q(L,D,H,te,Ee)}if(ie(te)||Ue(te))return L=L.get(H)||null,$(D,L,te,Ee,null);if(typeof te.then=="function")return q(L,D,H,xo(te),Ee);if(te.$$typeof===be)return q(L,D,H,no(D,te),Ee);Li(D,te)}return null}function Be(L,D,H,te){for(var Ee=null,Pe=null,Ne=D,Le=D=0,hn=null;Ne!==null&&Le<H.length;Le++){Ne.index>Le?(hn=Ne,Ne=null):hn=Ne.sibling;var ot=Z(L,Ne,H[Le],te);if(ot===null){Ne===null&&(Ne=hn);break}e&&Ne&&ot.alternate===null&&t(L,Ne),D=d(ot,D,Le),Pe===null?Ee=ot:Pe.sibling=ot,Pe=ot,Ne=hn}if(Le===H.length)return n(L,Ne),nt&&Oi(L,Le),Ee;if(Ne===null){for(;Le<H.length;Le++)Ne=re(L,H[Le],te),Ne!==null&&(D=d(Ne,D,Le),Pe===null?Ee=Ne:Pe.sibling=Ne,Pe=Ne);return nt&&Oi(L,Le),Ee}for(Ne=i(Ne);Le<H.length;Le++)hn=q(Ne,L,Le,H[Le],te),hn!==null&&(e&&hn.alternate!==null&&Ne.delete(hn.key===null?Le:hn.key),D=d(hn,D,Le),Pe===null?Ee=hn:Pe.sibling=hn,Pe=hn);return e&&Ne.forEach(function(si){return t(L,si)}),nt&&Oi(L,Le),Ee}function ze(L,D,H,te){if(H==null)throw Error(o(151));for(var Ee=null,Pe=null,Ne=D,Le=D=0,hn=null,ot=H.next();Ne!==null&&!ot.done;Le++,ot=H.next()){Ne.index>Le?(hn=Ne,Ne=null):hn=Ne.sibling;var si=Z(L,Ne,ot.value,te);if(si===null){Ne===null&&(Ne=hn);break}e&&Ne&&si.alternate===null&&t(L,Ne),D=d(si,D,Le),Pe===null?Ee=si:Pe.sibling=si,Pe=si,Ne=hn}if(ot.done)return n(L,Ne),nt&&Oi(L,Le),Ee;if(Ne===null){for(;!ot.done;Le++,ot=H.next())ot=re(L,ot.value,te),ot!==null&&(D=d(ot,D,Le),Pe===null?Ee=ot:Pe.sibling=ot,Pe=ot);return nt&&Oi(L,Le),Ee}for(Ne=i(Ne);!ot.done;Le++,ot=H.next())ot=q(Ne,L,Le,ot.value,te),ot!==null&&(e&&ot.alternate!==null&&Ne.delete(ot.key===null?Le:ot.key),D=d(ot,D,Le),Pe===null?Ee=ot:Pe.sibling=ot,Pe=ot);return e&&Ne.forEach(function(n0){return t(L,n0)}),nt&&Oi(L,Le),Ee}function Et(L,D,H,te){if(typeof H=="object"&&H!==null&&H.type===k&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case V:e:{for(var Ee=H.key;D!==null;){if(D.key===Ee){if(Ee=H.type,Ee===k){if(D.tag===7){n(L,D.sibling),te=c(D,H.props.children),te.return=L,L=te;break e}}else if(D.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===ce&&Ui(Ee)===D.type){n(L,D.sibling),te=c(D,H.props),ju(te,H),te.return=L,L=te;break e}n(L,D);break}else t(L,D);D=D.sibling}H.type===k?(te=Ei(H.props.children,L.mode,te,H.key),te.return=L,L=te):(te=$s(H.type,H.key,H.props,null,L.mode,te),ju(te,H),te.return=L,L=te)}return g(L);case Q:e:{for(Ee=H.key;D!==null;){if(D.key===Ee)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){n(L,D.sibling),te=c(D,H.children||[]),te.return=L,L=te;break e}else{n(L,D);break}else t(L,D);D=D.sibling}te=_l(H,L.mode,te),te.return=L,L=te}return g(L);case ce:return Ee=H._init,H=Ee(H._payload),Et(L,D,H,te)}if(ie(H))return Be(L,D,H,te);if(Ue(H)){if(Ee=Ue(H),typeof Ee!="function")throw Error(o(150));return H=Ee.call(H),ze(L,D,H,te)}if(typeof H.then=="function")return Et(L,D,xo(H),te);if(H.$$typeof===be)return Et(L,D,no(L,H),te);Li(L,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(n(L,D.sibling),te=c(D,H),te.return=L,L=te):(n(L,D),te=ef(H,L.mode,te),te.return=L,L=te),g(L)):n(L,D)}return function(L,D,H,te){try{qn=0;var Ee=Et(L,D,H,te);return en=null,Ee}catch(Ne){if(Ne===Tn||Ne===ao)throw Ne;var Pe=Ln(29,Ne,null,L.mode);return Pe.lanes=te,Pe.return=L,Pe}finally{}}}var ji=Cf(!0),Yh=Cf(!1),$n=K(null),Mn=null;function gr(e){var t=e.alternate;ee(Vt,Vt.current&1),ee($n,e),Mn===null&&(t===null||Ri.current!==null||t.memoizedState!==null)&&(Mn=e)}function Vh(e){if(e.tag===22){if(ee(Vt,Vt.current),ee($n,e),Mn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Mn=e)}}else ha()}function ha(){ee(Vt,Vt.current),ee($n,$n.current)}function Yr(e){oe($n),Mn===e&&(Mn=null),oe(Vt)}var Vt=K(0);function Hu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Rn(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Rl(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ku={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=_n(),c=Va(i);c.payload=t,n!=null&&(c.callback=n),t=oa(e,c,i),t!==null&&(nr(t,e,i),Su(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=_n(),c=Va(i);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=oa(e,c,i),t!==null&&(nr(t,e,i),Su(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_n(),i=Va(n);i.tag=2,t!=null&&(i.callback=t),t=oa(e,i,n),t!==null&&(nr(t,e,n),Su(t,e,n))}};function Gu(e,t,n,i,c,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,g):t.prototype&&t.prototype.isPureReactComponent?!kr(n,i)||!kr(c,d):!0}function Qh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&ku.enqueueReplaceState(t,t.state,null)}function Za(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=w({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}var Hi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Rf(e){Hi(e)}function So(e){console.error(e)}function Xh(e){Hi(e)}function qu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Vr(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Eo(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){qu(e,t)},n}function Nf(e){return e=Va(e),e.tag=3,e}function Kh(e,t,n,i){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var d=i.value;e.payload=function(){return c(d)},e.callback=function(){Vr(t,n,i)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Vr(t,n,i),typeof c!="function"&&($a===null?$a=new Set([this]):$a.add(this));var A=i.stack;this.componentDidCatch(i.value,{componentStack:A!==null?A:""})})}function Zh(e,t,n,i,c){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Au(t,n,c,!0),n=$n.current,n!==null){switch(n.tag){case 13:return Mn===null?Wf():n.alternate===null&&Qt===0&&(Qt=3),n.flags&=-257,n.flags|=65536,n.lanes=c,i===lf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),$f(e,i,c)),!1;case 22:return n.flags|=65536,i===lf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),$f(e,i,c)),!1}throw Error(o(435,n.tag))}return $f(e,i,c),Wf(),!1}if(nt)return t=$n.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==xl&&(e=Error(o(422),{cause:i}),qa(On(e,n)))):(i!==xl&&(t=Error(o(423),{cause:i}),qa(On(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=On(i,n),c=Eo(e.stateNode,i,c),Or(e,c),Qt!==4&&(Qt=2)),!1;var d=Error(o(520),{cause:i});if(d=On(d,n),Pu===null?Pu=[d]:Pu.push(d),Qt!==4&&(Qt=2),t===null)return!0;i=On(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Eo(n.stateNode,i,e),Or(n,e),!1;case 1:if(t=n.type,d=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&($a===null||!$a.has(d))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Nf(c),Kh(c,e,n,i),Or(n,c),!1}n=n.return}while(n!==null);return!1}var Ih=Error(o(461)),cn=!1;function Nt(e,t,n,i){t.child=e===null?Yh(t,null,n,i):ji(t,e.child,n,i)}function Oo(e,t,n,i,c){n=n.render;var d=t.ref;if("ref"in i){var g={};for(var A in i)A!=="ref"&&(g[A]=i[A])}else g=i;return Ti(t),i=cf(e,t,n,g,d,c),A=df(),e!==null&&!cn?(Di(e,t,c),va(e,t,c)):(nt&&A&&nf(t),t.flags|=1,Nt(e,t,i,c),t.child)}function wo(e,t,n,i,c){if(e===null){var d=n.type;return typeof d=="function"&&!Si(d)&&d.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=d,To(e,t,d,i,c)):(e=$s(n.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Mr(e,c)){var g=d.memoizedProps;if(n=n.compare,n=n!==null?n:kr,n(g,i)&&e.ref===t.ref)return va(e,t,c)}return t.flags|=1,e=wn(d,i),e.ref=t.ref,e.return=t,t.child=e}function To(e,t,n,i,c){if(e!==null){var d=e.memoizedProps;if(kr(d,i)&&e.ref===t.ref)if(cn=!1,t.pendingProps=i=d,Mr(e,c))(e.flags&131072)!==0&&(cn=!0);else return t.lanes=e.lanes,va(e,t,c)}return Nl(e,t,n,i,c)}function Yu(e,t,n){var i=t.pendingProps,c=i.children,d=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=d!==null?d.baseLanes|n:n,e!==null){for(c=t.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;t.childLanes=d&~i}else t.childLanes=0,t.child=null;return ki(e,t,i,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ro(t,d!==null?d.cachePool:null),d!==null?ca(t,d):lo(),Vh(t);else return t.lanes=t.childLanes=536870912,ki(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(ro(t,d.cachePool),ca(t,d),ha(),t.memoizedState=null):(e!==null&&ro(t,null),lo(),ha());return Nt(e,t,c,n),t.child}function ki(e,t,n,i){var c=sa();return c=c===null?null:{parent:Ot._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ro(t,null),lo(),Vh(t),e!==null&&Au(e,t,i,!0),null}function De(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Nl(e,t,n,i,c){return Ti(t),n=cf(e,t,n,i,void 0,c),i=df(),e!==null&&!cn?(Di(e,t,c),va(e,t,c)):(nt&&i&&nf(t),t.flags|=1,Nt(e,t,n,c),t.child)}function Mo(e,t,n,i,c,d){return Ti(t),t.updateQueue=null,n=Ch(t,i,n,c),Mh(e),i=df(),e!==null&&!cn?(Di(e,t,d),va(e,t,d)):(nt&&i&&nf(t),t.flags|=1,Nt(e,t,n,d),t.child)}function Ia(e,t,n,i,c){if(Ti(t),t.stateNode===null){var d=xi,g=n.contextType;typeof g=="object"&&g!==null&&(d=Yt(g)),d=new n(i,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=ku,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},Ci(t),g=n.contextType,d.context=typeof g=="object"&&g!==null?Yt(g):xi,d.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Rl(t,n,g,i),d.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&ku.enqueueReplaceState(d,d.state,null),bn(t,i,d,c),wr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){d=t.stateNode;var A=t.memoizedProps,M=Za(n,A);d.props=M;var G=d.context,$=n.contextType;g=xi,typeof $=="object"&&$!==null&&(g=Yt($));var re=n.getDerivedStateFromProps;$=typeof re=="function"||typeof d.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,$||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(A||G!==g)&&Qh(t,d,i,g),Gr=!1;var Z=t.memoizedState;d.state=Z,bn(t,i,d,c),wr(),G=t.memoizedState,A||Z!==G||Gr?(typeof re=="function"&&(Rl(t,n,re,i),G=t.memoizedState),(M=Gr||Gu(t,n,M,i,Z,G,g))?($||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=G),d.props=i,d.state=G,d.context=g,i=M):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{d=t.stateNode,Ol(e,t),g=t.memoizedProps,$=Za(n,g),d.props=$,re=t.pendingProps,Z=d.context,G=n.contextType,M=xi,typeof G=="object"&&G!==null&&(M=Yt(G)),A=n.getDerivedStateFromProps,(G=typeof A=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==re||Z!==M)&&Qh(t,d,i,M),Gr=!1,Z=t.memoizedState,d.state=Z,bn(t,i,d,c),wr();var q=t.memoizedState;g!==re||Z!==q||Gr||e!==null&&e.dependencies!==null&&to(e.dependencies)?(typeof A=="function"&&(Rl(t,n,A,i),q=t.memoizedState),($=Gr||Gu(t,n,$,i,Z,q,M)||e!==null&&e.dependencies!==null&&to(e.dependencies))?(G||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,q,M),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,q,M)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),d.props=i,d.state=q,d.context=M,i=$):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),i=!1)}return d=i,De(e,t),i=(t.flags&128)!==0,d||i?(d=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&i?(t.child=ji(t,e.child,null,c),t.child=ji(t,null,n,c)):Nt(e,t,n,c),t.memoizedState=d.state,e=t.child):e=va(e,t,c),e}function Jh(e,t,n,i){return yu(),t.flags|=256,Nt(e,t,n,i),t.child}var Vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Co(e){return{baseLanes:e,cachePool:_h()}}function fn(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=br),e}function Wh(e,t,n){var i=t.pendingProps,c=!1,d=(t.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(Vt.current&2)!==0),g&&(c=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(nt){if(c?gr(t):ha(),nt){var A=Lt,M;if(M=A){e:{for(M=A,A=Un;M.nodeType!==8;){if(!A){A=null;break e}if(M=Rr(M.nextSibling),M===null){A=null;break e}}A=M}A!==null?(t.memoizedState={dehydrated:A,treeContext:Rt!==null?{id:Bt,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},M=Ln(18,null,null,0),M.stateNode=A,M.return=t,t.child=M,$t=t,Lt=null,M=!0):M=!1}M||hr(t)}if(A=t.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return Rn(A)?t.lanes=32:t.lanes=536870912,null;Yr(t)}return A=i.children,i=i.fallback,c?(ha(),c=t.mode,A=Qu({mode:"hidden",children:A},c),i=Ei(i,c,n,null),A.return=t,i.return=t,A.sibling=i,t.child=A,c=t.child,c.memoizedState=Co(n),c.childLanes=fn(e,g,n),t.memoizedState=Vu,i):(gr(t),Df(t,A))}if(M=e.memoizedState,M!==null&&(A=M.dehydrated,A!==null)){if(d)t.flags&256?(gr(t),t.flags&=-257,t=zf(e,t,n)):t.memoizedState!==null?(ha(),t.child=e.child,t.flags|=128,t=null):(ha(),c=i.fallback,A=t.mode,i=Qu({mode:"visible",children:i.children},A),c=Ei(c,A,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,ji(t,e.child,null,n),i=t.child,i.memoizedState=Co(n),i.childLanes=fn(e,g,n),t.memoizedState=Vu,t=c);else if(gr(t),Rn(A)){if(g=A.nextSibling&&A.nextSibling.dataset,g)var G=g.dgst;g=G,i=Error(o(419)),i.stack="",i.digest=g,qa({value:i,source:null,stack:null}),t=zf(e,t,n)}else if(cn||Au(e,t,n,!1),g=(n&e.childLanes)!==0,cn||g){if(g=Ct,g!==null&&(i=n&-n,i=(i&42)!==0?1:Sc(i),i=(i&(g.suspendedLanes|n))!==0?0:i,i!==0&&i!==M.retryLane))throw M.retryLane=i,_i(e,i),nr(g,e,i),Ih;A.data==="$?"||Wf(),t=zf(e,t,n)}else A.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Lt=Rr(A.nextSibling),$t=t,nt=!0,Er=null,Un=!1,e!==null&&(fr[dr++]=Bt,fr[dr++]=ua,fr[dr++]=Rt,Bt=e.id,ua=e.overflow,Rt=t),t=Df(t,i.children),t.flags|=4096);return t}return c?(ha(),c=i.fallback,A=t.mode,M=e.child,G=M.sibling,i=wn(M,{mode:"hidden",children:i.children}),i.subtreeFlags=M.subtreeFlags&65011712,G!==null?c=wn(G,c):(c=Ei(c,A,n,null),c.flags|=2),c.return=t,i.return=t,i.sibling=c,t.child=i,i=c,c=t.child,A=e.child.memoizedState,A===null?A=Co(n):(M=A.cachePool,M!==null?(G=Ot._currentValue,M=M.parent!==G?{parent:G,pool:G}:M):M=_h(),A={baseLanes:A.baseLanes|n,cachePool:M}),c.memoizedState=A,c.childLanes=fn(e,g,n),t.memoizedState=Vu,i):(gr(t),n=e.child,e=n.sibling,n=wn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function Df(e,t){return t=Qu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qu(e,t){return e=Ln(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function zf(e,t,n){return ji(t,e.child,null,n),e=Df(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bf(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),jn(e.return,t,n)}function Lf(e,t,n,i,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=n,d.tailMode=c)}function Ph(e,t,n){var i=t.pendingProps,c=i.revealOrder,d=i.tail;if(Nt(e,t,i.children,n),i=Vt.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bf(e,n,t);else if(e.tag===19)Bf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(ee(Vt,i),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Hu(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Lf(t,!1,c,n,d);break;case"backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Hu(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Lf(t,!0,n,null,d);break;case"together":Lf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function va(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Au(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&to(e)))}function Cn(e,t,n){switch(t.tag){case 3:Qe(t,t.stateNode.containerInfo),Pn(t,Ot,e.memoizedState.cache),yu();break;case 27:case 5:vt(t);break;case 4:Qe(t,t.stateNode.containerInfo);break;case 10:Pn(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(gr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Wh(e,t,n):(gr(t),e=va(e,t,n),e!==null?e.sibling:null);gr(t);break;case 19:var c=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Au(e,t,n,!1),i=(n&t.childLanes)!==0),c){if(i)return Ph(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ee(Vt,Vt.current),i)break;return null;case 22:case 23:return t.lanes=0,Yu(e,t,n);case 24:Pn(t,Ot,e.memoizedState.cache)}return va(e,t,n)}function Ro(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)cn=!0;else{if(!Mr(e,n)&&(t.flags&128)===0)return cn=!1,Cn(e,t,n);cn=(e.flags&131072)!==0}else cn=!1,nt&&(t.flags&1048576)!==0&&tf(t,gu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,c=i._init;if(i=c(i._payload),t.type=i,typeof i=="function")Si(i)?(e=Za(i,e),t.tag=1,t=Ia(null,t,i,e,n)):(t.tag=0,t=Nl(null,t,i,e,n));else{if(i!=null){if(c=i.$$typeof,c===he){t.tag=11,t=Oo(null,t,i,e,n);break e}else if(c===ue){t.tag=14,t=wo(null,t,i,e,n);break e}}throw t=Ae(i)||i,Error(o(306,t,""))}}return t;case 0:return Nl(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,c=Za(i,t.pendingProps),Ia(e,t,i,c,n);case 3:e:{if(Qe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var d=t.memoizedState;c=d.element,Ol(e,t),bn(t,i,null,n);var g=t.memoizedState;if(i=g.cache,Pn(t,Ot,i),i!==d.cache&&We(t,[Ot],n,!0),wr(),i=g.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Jh(e,t,i,n);break e}else if(i!==c){c=On(Error(o(424)),t),qa(c),t=Jh(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Lt=Rr(e.firstChild),$t=t,nt=!0,Er=null,Un=!0,n=Yh(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(yu(),i===c){t=va(e,t,n);break e}Nt(e,t,i,n)}t=t.child}return t;case 26:return De(e,t),e===null?(n=Zv(t.type,null,t.pendingProps,null))?t.memoizedState=n:nt||(n=t.type,e=t.pendingProps,i=Yi(Oe.current).createElement(n),i[sn]=t,i[Dn]=e,rn(i,n,e),on(i),t.stateNode=i):t.memoizedState=Zv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return vt(t),e===null&&nt&&(i=t.stateNode=Qv(t.type,t.pendingProps,Oe.current),$t=t,Un=!0,c=Lt,yr(t.type)?(sd=c,Lt=Rr(i.firstChild)):Lt=c),Nt(e,t,t.pendingProps.children,n),De(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&nt&&((c=i=Lt)&&(i=Yv(i,t.type,t.pendingProps,Un),i!==null?(t.stateNode=i,$t=t,Lt=Rr(i.firstChild),Un=!1,c=!0):c=!1),c||hr(t)),vt(t),c=t.type,d=t.pendingProps,g=e!==null?e.memoizedProps:null,i=d.children,Zo(c,d)?i=null:g!==null&&Zo(c,g)&&(t.flags|=32),t.memoizedState!==null&&(c=cf(e,t,ff,null,null,n),Wl._currentValue=c),De(e,t),Nt(e,t,i,n),t.child;case 6:return e===null&&nt&&((e=n=Lt)&&(n=Jo(n,t.pendingProps,Un),n!==null?(t.stateNode=n,$t=t,Lt=null,e=!0):e=!1),e||hr(t)),null;case 13:return Wh(e,t,n);case 4:return Qe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ji(t,null,i,n):Nt(e,t,i,n),t.child;case 11:return Oo(e,t,t.type,t.pendingProps,n);case 7:return Nt(e,t,t.pendingProps,n),t.child;case 8:return Nt(e,t,t.pendingProps.children,n),t.child;case 12:return Nt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Pn(t,t.type,i.value),Nt(e,t,i.children,n),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,Ti(t),c=Yt(c),i=i(c),t.flags|=1,Nt(e,t,i,n),t.child;case 14:return wo(e,t,t.type,t.pendingProps,n);case 15:return To(e,t,t.type,t.pendingProps,n);case 19:return Ph(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=Qu(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=wn(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Yu(e,t,n);case 24:return Ti(t),i=Yt(Ot),e===null?(c=sa(),c===null&&(c=Ct,d=rf(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=n),c=d),t.memoizedState={parent:i,cache:c},Ci(t),Pn(t,Ot,c)):((e.lanes&n)!==0&&(Ol(e,t),bn(t,null,null,n),wr()),c=e.memoizedState,d=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Pn(t,Ot,i)):(i=d.cache,Pn(t,Ot,i),i!==c.cache&&We(t,[Ot],n,!0))),Nt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ma(e){e.flags|=4}function No(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!an(t)){if(t=$n.current,t!==null&&((lt&4194048)===lt?Mn!==null:(lt&62914560)!==lt&&(lt&536870912)===0||t!==Mn))throw El=lf,xh;e.flags|=8192}}function Do(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ud():536870912,e.lanes|=t,Hl|=t)}function Xu(e,t){if(!nt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Fh(e,t,n){var i=t.pendingProps;switch(pu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return wt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),vr(Ot),pt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(bu(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ph())),wt(t),null;case 26:return n=t.memoizedState,e===null?(ma(t),n!==null?(wt(t),No(t,n)):(wt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ma(t),wt(t),No(t,n)):(wt(t),t.flags&=-16777217):(e.memoizedProps!==i&&ma(t),wt(t),t.flags&=-16777217),null;case 27:Dt(t),n=Oe.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ma(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return wt(t),null}e=ve.current,bu(t)?mh(t):(e=Qv(c,i,n),t.stateNode=e,ma(t))}return wt(t),null;case 5:if(Dt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ma(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return wt(t),null}if(e=ve.current,bu(t))mh(t);else{switch(c=Yi(Oe.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?c.createElement(n,{is:i.is}):c.createElement(n)}}e[sn]=t,e[Dn]=i;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch(rn(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ma(t)}}return wt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ma(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=Oe.current,bu(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,c=$t,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[sn]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Hv(e.nodeValue,n)),e||hr(t)}else e=Yi(e).createTextNode(i),e[sn]=t,t.stateNode=e}return wt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=bu(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[sn]=t}else yu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),c=!1}else c=ph(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Yr(t),t):(Yr(t),null)}if(Yr(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool);var d=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==c&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Do(t,t.updateQueue),wt(t),null;case 4:return pt(),e===null&&ad(t.stateNode.containerInfo),wt(t),null;case 10:return vr(t.type),wt(t),null;case 19:if(oe(Vt),c=t.memoizedState,c===null)return wt(t),null;if(i=(t.flags&128)!==0,d=c.rendering,d===null)if(i)Xu(c,!1);else{if(Qt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Hu(e),d!==null){for(t.flags|=128,Xu(c,!1),e=d.updateQueue,t.updateQueue=e,Do(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mu(n,e),n=n.sibling;return ee(Vt,Vt.current&1|2),t.child}e=e.sibling}c.tail!==null&&Mt()>kl&&(t.flags|=128,i=!0,Xu(c,!1),t.lanes=4194304)}else{if(!i)if(e=Hu(d),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Do(t,e),Xu(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!nt)return wt(t),null}else 2*Mt()-c.renderingStartTime>kl&&n!==536870912&&(t.flags|=128,i=!0,Xu(c,!1),t.lanes=4194304);c.isBackwards?(d.sibling=t.child,t.child=d):(e=c.last,e!==null?e.sibling=d:t.child=d,c.last=d)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Mt(),t.sibling=null,e=Vt.current,ee(Vt,i?e&1|2:e&1),t):(wt(t),null);case 22:case 23:return Yr(t),of(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),n=t.updateQueue,n!==null&&Do(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&oe(Mi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vr(Ot),wt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function $h(e,t){switch(pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(Ot),pt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Dt(t),null;case 13:if(Yr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));yu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(Vt),null;case 4:return pt(),null;case 10:return vr(t.type),null;case 22:case 23:return Yr(t),of(),e!==null&&oe(Mi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vr(Ot),null;case 25:return null;default:return null}}function ev(e,t){switch(pu(t),t.tag){case 3:vr(Ot),pt();break;case 26:case 27:case 5:Dt(t);break;case 4:pt();break;case 13:Yr(t);break;case 19:oe(Vt);break;case 10:vr(t.type);break;case 22:case 23:Yr(t),of(),e!==null&&oe(Mi);break;case 24:vr(Ot)}}function Ku(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next;n=c;do{if((n.tag&e)===e){i=void 0;var d=n.create,g=n.inst;i=d(),g.destroy=i}n=n.next}while(n!==c)}}catch(A){Tt(t,t.return,A)}}function Ja(e,t,n){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var d=c.next;i=d;do{if((i.tag&e)===e){var g=i.inst,A=g.destroy;if(A!==void 0){g.destroy=void 0,c=t;var M=n,G=A;try{G()}catch($){Tt(c,M,$)}}}i=i.next}while(i!==d)}}catch($){Tt(t,t.return,$)}}function tv(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{sf(t,n)}catch(i){Tt(e,e.return,i)}}}function Uf(e,t,n){n.props=Za(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Tt(e,t,i)}}function Dl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(c){Tt(e,t,c)}}function Qr(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(c){Tt(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Tt(e,t,c)}else n.current=null}function zo(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(c){Tt(e,e.return,c)}}function Bo(e,t,n){try{var i=e.stateNode;Lg(i,e.type,n,t),i[Dn]=t}catch(c){Tt(e,e.return,c)}}function zl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&yr(e.type)||e.tag===4}function Zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&yr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lo(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xo));else if(i!==4&&(i===27&&yr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Lo(e,t,n),e=e.sibling;e!==null;)Lo(e,t,n),e=e.sibling}function Iu(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&yr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}function Ju(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);rn(t,i,n),t[sn]=e,t[Dn]=n}catch(d){Tt(e,e.return,d)}}var Xr=!1,mt=!1,ga=!1,nv=typeof WeakSet=="function"?WeakSet:Set,tn=null;function _g(e,t){if(e=e.containerInfo,Cr=$o,e=hh(e),Pc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var c=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var g=0,A=-1,M=-1,G=0,$=0,re=e,Z=null;t:for(;;){for(var q;re!==n||c!==0&&re.nodeType!==3||(A=g+c),re!==d||i!==0&&re.nodeType!==3||(M=g+i),re.nodeType===3&&(g+=re.nodeValue.length),(q=re.firstChild)!==null;)Z=re,re=q;for(;;){if(re===e)break t;if(Z===n&&++G===c&&(A=g),Z===d&&++$===i&&(M=g),(q=re.nextSibling)!==null)break;re=Z,Z=re.parentNode}re=q}n=A===-1||M===-1?null:{start:A,end:M}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ko={focusedElem:e,selectionRange:n},$o=!1,tn=t;tn!==null;)if(t=tn,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,tn=e;else for(;tn!==null;){switch(t=tn,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,n=t,c=d.memoizedProps,d=d.memoizedState,i=n.stateNode;try{var Be=Za(n.type,c,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(Be,d),i.__reactInternalSnapshotBeforeUpdate=e}catch(ze){Tt(n,n.return,ze)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ud(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ud(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,tn=e;break}tn=t.return}}function rv(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Wa(e,n),i&4&&Ku(5,n);break;case 1:if(Wa(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Tt(n,n.return,g)}else{var c=Za(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Tt(n,n.return,g)}}i&64&&tv(n),i&512&&Dl(n,n.return);break;case 3:if(Wa(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{sf(e,t)}catch(g){Tt(n,n.return,g)}}break;case 27:t===null&&i&4&&Ju(n);case 26:case 5:Wa(e,n),t===null&&i&4&&zo(n),i&512&&Dl(n,n.return);break;case 12:Wa(e,n);break;case 13:Wa(e,n),i&4&&lv(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Go.bind(null,n),Xl(e,n))));break;case 22:if(i=n.memoizedState!==null||Xr,!i){t=t!==null&&t.memoizedState!==null||mt,c=Xr;var d=mt;Xr=i,(mt=t)&&!d?ba(e,n,(n.subtreeFlags&8772)!==0):Wa(e,n),Xr=c,mt=d}break;case 30:break;default:Wa(e,n)}}function av(e){var t=e.alternate;t!==null&&(e.alternate=null,av(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Oc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ut=null,Yn=!1;function pa(e,t,n){for(n=n.child;n!==null;)iv(e,t,n),n=n.sibling}function iv(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(mi,n)}catch{}switch(n.tag){case 26:mt||Qr(n,t),pa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:mt||Qr(n,t);var i=Ut,c=Yn;yr(n.type)&&(Ut=n.stateNode,Yn=!1),pa(e,t,n),ls(n.stateNode),Ut=i,Yn=c;break;case 5:mt||Qr(n,t);case 6:if(i=Ut,c=Yn,Ut=null,pa(e,t,n),Ut=i,Yn=c,Ut!==null)if(Yn)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(d){Tt(n,t,d)}else try{Ut.removeChild(n.stateNode)}catch(d){Tt(n,t,d)}break;case 18:Ut!==null&&(Yn?(e=Ut,Io(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),vs(e)):Io(Ut,n.stateNode));break;case 4:i=Ut,c=Yn,Ut=n.stateNode.containerInfo,Yn=!0,pa(e,t,n),Ut=i,Yn=c;break;case 0:case 11:case 14:case 15:mt||Ja(2,n,t),mt||Ja(4,n,t),pa(e,t,n);break;case 1:mt||(Qr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Uf(n,t,i)),pa(e,t,n);break;case 21:pa(e,t,n);break;case 22:mt=(i=mt)||n.memoizedState!==null,pa(e,t,n),mt=i;break;default:pa(e,t,n)}}function lv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vs(e)}catch(n){Tt(t,t.return,n)}}function xg(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nv),t;default:throw Error(o(435,e.tag))}}function jf(e,t){var n=xg(e);t.forEach(function(i){var c=Mg.bind(null,e,i);n.has(i)||(n.add(i),i.then(c,c))})}function er(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var c=n[i],d=e,g=t,A=g;e:for(;A!==null;){switch(A.tag){case 27:if(yr(A.type)){Ut=A.stateNode,Yn=!1;break e}break;case 5:Ut=A.stateNode,Yn=!1;break e;case 3:case 4:Ut=A.stateNode.containerInfo,Yn=!0;break e}A=A.return}if(Ut===null)throw Error(o(160));iv(d,g,c),Ut=null,Yn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Hf(t,e),t=t.sibling}var pr=null;function Hf(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:er(t,e),Vn(e),i&4&&(Ja(3,e,e.return),Ku(3,e),Ja(5,e,e.return));break;case 1:er(t,e),Vn(e),i&512&&(mt||n===null||Qr(n,n.return)),i&64&&Xr&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var c=pr;if(er(t,e),Vn(e),i&512&&(mt||n===null||Qr(n,n.return)),i&4){var d=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){case"title":d=c.getElementsByTagName("title")[0],(!d||d[ru]||d[sn]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(i),c.head.insertBefore(d,c.querySelector("head > title"))),rn(d,i,n),d[sn]=e,on(d),i=d;break e;case"link":var g=Wv("link","href",c).get(i+(n.href||""));if(g){for(var A=0;A<g.length;A++)if(d=g[A],d.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&d.getAttribute("rel")===(n.rel==null?null:n.rel)&&d.getAttribute("title")===(n.title==null?null:n.title)&&d.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(A,1);break t}}d=c.createElement(i),rn(d,i,n),c.head.appendChild(d);break;case"meta":if(g=Wv("meta","content",c).get(i+(n.content||""))){for(A=0;A<g.length;A++)if(d=g[A],d.getAttribute("content")===(n.content==null?null:""+n.content)&&d.getAttribute("name")===(n.name==null?null:n.name)&&d.getAttribute("property")===(n.property==null?null:n.property)&&d.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&d.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(A,1);break t}}d=c.createElement(i),rn(d,i,n),c.head.appendChild(d);break;default:throw Error(o(468,i))}d[sn]=e,on(d),i=d}e.stateNode=i}else Pv(c,e.type,e.stateNode);else e.stateNode=Jv(c,i,e.memoizedProps);else d!==i?(d===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):d.count--,i===null?Pv(c,e.type,e.stateNode):Jv(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Bo(e,e.memoizedProps,n.memoizedProps)}break;case 27:er(t,e),Vn(e),i&512&&(mt||n===null||Qr(n,n.return)),n!==null&&i&4&&Bo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(er(t,e),Vn(e),i&512&&(mt||n===null||Qr(n,n.return)),e.flags&32){c=e.stateNode;try{za(c,"")}catch(q){Tt(e,e.return,q)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,Bo(e,c,n!==null?n.memoizedProps:c)),i&1024&&(ga=!0);break;case 6:if(er(t,e),Vn(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(q){Tt(e,e.return,q)}}break;case 3:if(Jl=null,c=pr,pr=Xe(t.containerInfo),er(t,e),pr=c,Vn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{vs(t.containerInfo)}catch(q){Tt(e,e.return,q)}ga&&(ga=!1,uv(e));break;case 4:i=pr,pr=Xe(e.stateNode.containerInfo),er(t,e),Vn(e),pr=i;break;case 12:er(t,e),Vn(e);break;case 13:er(t,e),Vn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xf=Mt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,jf(e,i)));break;case 22:c=e.memoizedState!==null;var M=n!==null&&n.memoizedState!==null,G=Xr,$=mt;if(Xr=G||c,mt=$||M,er(t,e),mt=$,Xr=G,Vn(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||M||Xr||mt||Gi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){M=n=t;try{if(d=M.stateNode,c)g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{A=M.stateNode;var re=M.memoizedProps.style,Z=re!=null&&re.hasOwnProperty("display")?re.display:null;A.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(q){Tt(M,M.return,q)}}}else if(t.tag===6){if(n===null){M=t;try{M.stateNode.nodeValue=c?"":M.memoizedProps}catch(q){Tt(M,M.return,q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,jf(e,n))));break;case 19:er(t,e),Vn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,jf(e,i)));break;case 30:break;case 21:break;default:er(t,e),Vn(e)}}function Vn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(zl(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,d=Zu(e);Iu(e,d,c);break;case 5:var g=n.stateNode;n.flags&32&&(za(g,""),n.flags&=-33);var A=Zu(e);Iu(e,A,g);break;case 3:case 4:var M=n.stateNode.containerInfo,G=Zu(e);Lo(e,G,M);break;default:throw Error(o(161))}}catch($){Tt(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;uv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rv(e,t.alternate,t),t=t.sibling}function Gi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ja(4,t,t.return),Gi(t);break;case 1:Qr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Uf(t,t.return,n),Gi(t);break;case 27:ls(t.stateNode);case 26:case 5:Qr(t,t.return),Gi(t);break;case 22:t.memoizedState===null&&Gi(t);break;case 30:Gi(t);break;default:Gi(t)}e=e.sibling}}function ba(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,d=t,g=d.flags;switch(d.tag){case 0:case 11:case 15:ba(c,d,n),Ku(4,d);break;case 1:if(ba(c,d,n),i=d,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(G){Tt(i,i.return,G)}if(i=d,c=i.updateQueue,c!==null){var A=i.stateNode;try{var M=c.shared.hiddenCallbacks;if(M!==null)for(c.shared.hiddenCallbacks=null,c=0;c<M.length;c++)wh(M[c],A)}catch(G){Tt(i,i.return,G)}}n&&g&64&&tv(d),Dl(d,d.return);break;case 27:Ju(d);case 26:case 5:ba(c,d,n),n&&i===null&&g&4&&zo(d),Dl(d,d.return);break;case 12:ba(c,d,n);break;case 13:ba(c,d,n),n&&g&4&&lv(c,d);break;case 22:d.memoizedState===null&&ba(c,d,n),Dl(d,d.return);break;case 30:break;default:ba(c,d,n)}t=t.sibling}}function kf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&_u(n))}function Gf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_u(e))}function Kr(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sv(e,t,n,i),t=t.sibling}function sv(e,t,n,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Kr(e,t,n,i),c&2048&&Ku(9,t);break;case 1:Kr(e,t,n,i);break;case 3:Kr(e,t,n,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_u(e)));break;case 12:if(c&2048){Kr(e,t,n,i),e=t.stateNode;try{var d=t.memoizedProps,g=d.id,A=d.onPostCommit;typeof A=="function"&&A(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Tt(t,t.return,M)}}else Kr(e,t,n,i);break;case 13:Kr(e,t,n,i);break;case 23:break;case 22:d=t.stateNode,g=t.alternate,t.memoizedState!==null?d._visibility&2?Kr(e,t,n,i):Wu(e,t):d._visibility&2?Kr(e,t,n,i):(d._visibility|=2,Bl(e,t,n,i,(t.subtreeFlags&10256)!==0)),c&2048&&kf(g,t);break;case 24:Kr(e,t,n,i),c&2048&&Gf(t.alternate,t);break;default:Kr(e,t,n,i)}}function Bl(e,t,n,i,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,g=t,A=n,M=i,G=g.flags;switch(g.tag){case 0:case 11:case 15:Bl(d,g,A,M,c),Ku(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?Bl(d,g,A,M,c):Wu(d,g):($._visibility|=2,Bl(d,g,A,M,c)),c&&G&2048&&kf(g.alternate,g);break;case 24:Bl(d,g,A,M,c),c&&G&2048&&Gf(g.alternate,g);break;default:Bl(d,g,A,M,c)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,c=i.flags;switch(i.tag){case 22:Wu(n,i),c&2048&&kf(i.alternate,i);break;case 24:Wu(n,i),c&2048&&Gf(i.alternate,i);break;default:Wu(n,i)}t=t.sibling}}var An=8192;function Ll(e){if(e.subtreeFlags&An)for(e=e.child;e!==null;)ov(e),e=e.sibling}function ov(e){switch(e.tag){case 26:Ll(e),e.flags&An&&e.memoizedState!==null&&Zg(pr,e.memoizedState,e.memoizedProps);break;case 5:Ll(e);break;case 3:case 4:var t=pr;pr=Xe(e.stateNode.containerInfo),Ll(e),pr=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=An,An=16777216,Ll(e),An=t):Ll(e));break;default:Ll(e)}}function cv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ul(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];tn=i,dv(i,e)}cv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fv(e),e=e.sibling}function fv(e){switch(e.tag){case 0:case 11:case 15:Ul(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:Ul(e);break;case 12:Ul(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Uo(e)):Ul(e);break;default:Ul(e)}}function Uo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];tn=i,dv(i,e)}cv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ja(8,t,t.return),Uo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Uo(t));break;default:Uo(t)}e=e.sibling}}function dv(e,t){for(;tn!==null;){var n=tn;switch(n.tag){case 0:case 11:case 15:Ja(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:_u(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,tn=i;else e:for(n=e;tn!==null;){i=tn;var c=i.sibling,d=i.return;if(av(i),i===n){tn=null;break e}if(c!==null){c.return=d,tn=c;break e}tn=d}}}var Sg={getCacheForType:function(e){var t=Yt(Ot),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},qf=typeof WeakMap=="function"?WeakMap:Map,At=0,Ct=null,$e=null,lt=0,_t=0,tr=null,Pa=!1,jl=!1,Yf=!1,ya=0,Qt=0,Fa=0,qi=0,Vf=0,br=0,Hl=0,Pu=null,Qn=null,Qf=!1,Xf=0,kl=1/0,Fu=null,$a=null,gn=0,ei=null,Gl=null,ql=0,Kf=0,Zf=null,hv=null,Yl=0,If=null;function _n(){if((At&2)!==0&&lt!==0)return lt&-lt;if(C.T!==null){var e=Sl;return e!==0?e:Vo()}return kd()}function vv(){br===0&&(br=(lt&536870912)===0||nt?Ld():536870912);var e=$n.current;return e!==null&&(e.flags|=32),br}function nr(e,t,n){(e===Ct&&(_t===2||_t===9)||e.cancelPendingCommit!==null)&&(Vl(e,0),ti(e,lt,br,!1)),el(e,n),((At&2)===0||e!==Ct)&&(e===Ct&&((At&2)===0&&(qi|=n),Qt===4&&ti(e,lt,br,!1)),Zr(e))}function mv(e,t,n){if((At&6)!==0)throw Error(o(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||gi(e,t),c=i?wg(e,t):Pf(e,t,!0),d=i;do{if(c===0){jl&&!i&&ti(e,t,0,!1);break}else{if(n=e.current.alternate,d&&!Eg(n)){c=Pf(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var A=e;c=Pu;var M=A.current.memoizedState.isDehydrated;if(M&&(Vl(A,g).flags|=256),g=Pf(A,g,!1),g!==2){if(Yf&&!M){A.errorRecoveryDisabledLanes|=d,qi|=d,c=4;break e}d=Qn,Qn=c,d!==null&&(Qn===null?Qn=d:Qn.push.apply(Qn,d))}c=g}if(d=!1,c!==2)continue}}if(c===1){Vl(e,0),ti(e,t,0,!0);break}e:{switch(i=e,d=c,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ti(i,t,br,!Pa);break e;case 2:Qn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=Xf+300-Mt(),10<c)){if(ti(i,t,br,!Pa),$i(i,0,!0)!==0)break e;i.timeoutHandle=kv(gv.bind(null,i,n,Qn,Fu,Qf,t,br,qi,Hl,Pa,d,2,-0,0),c);break e}gv(i,n,Qn,Fu,Qf,t,br,qi,Hl,Pa,d,0,-0,0)}}break}while(!0);Zr(e)}function gv(e,t,n,i,c,d,g,A,M,G,$,re,Z,q){if(e.timeoutHandle=-1,re=t.subtreeFlags,(re&8192||(re&16785408)===16785408)&&(dn={stylesheets:null,count:0,unsuspend:Kg},ov(t),re=Ig(),re!==null)){e.cancelPendingCommit=re($u.bind(null,e,t,d,n,i,c,g,A,M,$,1,Z,q)),ti(e,d,g,!G);return}$u(e,t,d,n,i,c,g,A,M)}function Eg(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var c=n[i],d=c.getSnapshot;c=c.value;try{if(!Jn(d(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ti(e,t,n,i){t&=~Vf,t&=~qi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var d=31-En(c),g=1<<d;i[d]=-1,c&=~g}n!==0&&jd(e,n,t)}function jo(){return(At&6)===0?(ns(0),!1):!0}function Jf(){if($e!==null){if(_t===0)var e=$e.return;else e=$e,y=Ya=null,uo(e),en=null,qn=0,e=$e;for(;e!==null;)ev(e.alternate,e),e=e.return;$e=null}}function Vl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,jg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Jf(),Ct=e,$e=n=wn(e.current,null),lt=t,_t=0,tr=null,Pa=!1,jl=gi(e,t),Yf=!1,Hl=br=Vf=qi=Fa=Qt=0,Qn=Pu=null,Qf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-En(i),d=1<<c;t|=e[c],i&=~d}return ya=t,Ai(),n}function pv(e,t){Ie=null,C.H=Uu,t===Tn||t===ao?(t=Eh(),_t=3):t===xh?(t=Eh(),_t=4):_t=t===Ih?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tr=t,$e===null&&(Qt=1,qu(e,On(t,e.current)))}function bv(){var e=C.H;return C.H=Uu,e===null?Uu:e}function yv(){var e=C.A;return C.A=Sg,e}function Wf(){Qt=4,Pa||(lt&4194048)!==lt&&$n.current!==null||(jl=!0),(Fa&134217727)===0&&(qi&134217727)===0||Ct===null||ti(Ct,lt,br,!1)}function Pf(e,t,n){var i=At;At|=2;var c=bv(),d=yv();(Ct!==e||lt!==t)&&(Fu=null,Vl(e,t)),t=!1;var g=Qt;e:do try{if(_t!==0&&$e!==null){var A=$e,M=tr;switch(_t){case 8:Jf(),g=6;break e;case 3:case 2:case 9:case 6:$n.current===null&&(t=!0);var G=_t;if(_t=0,tr=null,Ql(e,A,M,G),n&&jl){g=0;break e}break;default:G=_t,_t=0,tr=null,Ql(e,A,M,G)}}Og(),g=Qt;break}catch($){pv(e,$)}while(!0);return t&&e.shellSuspendCounter++,y=Ya=null,At=i,C.H=c,C.A=d,$e===null&&(Ct=null,lt=0,Ai()),g}function Og(){for(;$e!==null;)Ff($e)}function wg(e,t){var n=At;At|=2;var i=bv(),c=yv();Ct!==e||lt!==t?(Fu=null,kl=Mt()+500,Vl(e,t)):jl=gi(e,t);e:do try{if(_t!==0&&$e!==null){t=$e;var d=tr;t:switch(_t){case 1:_t=0,tr=null,Ql(e,t,d,1);break;case 2:case 9:if(Sh(d)){_t=0,tr=null,_v(t);break}t=function(){_t!==2&&_t!==9||Ct!==e||(_t=7),Zr(e)},d.then(t,t);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:Sh(d)?(_t=0,tr=null,_v(t)):(_t=0,tr=null,Ql(e,t,d,7));break;case 5:var g=null;switch($e.tag){case 26:g=$e.memoizedState;case 5:case 27:var A=$e;if(!g||an(g)){_t=0,tr=null;var M=A.sibling;if(M!==null)$e=M;else{var G=A.return;G!==null?($e=G,Ho(G)):$e=null}break t}}_t=0,tr=null,Ql(e,t,d,5);break;case 6:_t=0,tr=null,Ql(e,t,d,6);break;case 8:Jf(),Qt=6;break e;default:throw Error(o(462))}}Av();break}catch($){pv(e,$)}while(!0);return y=Ya=null,C.H=i,C.A=c,At=n,$e!==null?0:(Ct=null,lt=0,Ai(),Qt)}function Av(){for(;$e!==null&&!_r();)Ff($e)}function Ff(e){var t=Ro(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?Ho(e):$e=t}function _v(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Mo(n,t,t.pendingProps,t.type,void 0,lt);break;case 11:t=Mo(n,t,t.pendingProps,t.type.render,t.ref,lt);break;case 5:uo(t);default:ev(n,t),t=$e=mu(t,ya),t=Ro(n,t,ya)}e.memoizedProps=e.pendingProps,t===null?Ho(e):$e=t}function Ql(e,t,n,i){y=Ya=null,uo(t),en=null,qn=0;var c=t.return;try{if(Zh(e,c,t,n,lt)){Qt=1,qu(e,On(n,e.current)),$e=null;return}}catch(d){if(c!==null)throw $e=c,d;Qt=1,qu(e,On(n,e.current)),$e=null;return}t.flags&32768?(nt||i===1?e=!0:jl||(lt&536870912)!==0?e=!1:(Pa=e=!0,(i===2||i===9||i===3||i===6)&&(i=$n.current,i!==null&&i.tag===13&&(i.flags|=16384))),xv(t,e)):Ho(t)}function Ho(e){var t=e;do{if((t.flags&32768)!==0){xv(t,Pa);return}e=t.return;var n=Fh(t.alternate,t,ya);if(n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Qt===0&&(Qt=5)}function xv(e,t){do{var n=$h(e.alternate,e);if(n!==null){n.flags&=32767,$e=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){$e=e;return}$e=e=n}while(e!==null);Qt=6,$e=null}function $u(e,t,n,i,c,d,g,A,M){e.cancelPendingCommit=null;do ko();while(gn!==0);if((At&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=$c,Wm(e,n,d,g,A,M),e===Ct&&($e=Ct=null,lt=0),Gl=t,ei=e,ql=n,Kf=d,Zf=c,hv=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Rv(Zt,function(){return Tv(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=C.T,C.T=null,c=X.p,X.p=2,g=At,At|=4;try{_g(e,t,n)}finally{At=g,X.p=c,C.T=i}}gn=1,Sv(),Ev(),Ov()}}function Sv(){if(gn===1){gn=0;var e=ei,t=Gl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=C.T,C.T=null;var i=X.p;X.p=2;var c=At;At|=4;try{Hf(t,e);var d=Ko,g=hh(e.containerInfo),A=d.focusedElem,M=d.selectionRange;if(g!==A&&A&&A.ownerDocument&&dh(A.ownerDocument.documentElement,A)){if(M!==null&&Pc(A)){var G=M.start,$=M.end;if($===void 0&&($=G),"selectionStart"in A)A.selectionStart=G,A.selectionEnd=Math.min($,A.value.length);else{var re=A.ownerDocument||document,Z=re&&re.defaultView||window;if(Z.getSelection){var q=Z.getSelection(),Be=A.textContent.length,ze=Math.min(M.start,Be),Et=M.end===void 0?ze:Math.min(M.end,Be);!q.extend&&ze>Et&&(g=Et,Et=ze,ze=g);var L=Wc(A,ze),D=Wc(A,Et);if(L&&D&&(q.rangeCount!==1||q.anchorNode!==L.node||q.anchorOffset!==L.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var H=re.createRange();H.setStart(L.node,L.offset),q.removeAllRanges(),ze>Et?(q.addRange(H),q.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),q.addRange(H))}}}}for(re=[],q=A;q=q.parentNode;)q.nodeType===1&&re.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<re.length;A++){var te=re[A];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}$o=!!Cr,Ko=Cr=null}finally{At=c,X.p=i,C.T=n}}e.current=t,gn=2}}function Ev(){if(gn===2){gn=0;var e=ei,t=Gl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=C.T,C.T=null;var i=X.p;X.p=2;var c=At;At|=4;try{rv(e,t.alternate,t)}finally{At=c,X.p=i,C.T=n}}gn=3}}function Ov(){if(gn===4||gn===3){gn=0,nu();var e=ei,t=Gl,n=ql,i=hv;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?gn=5:(gn=0,Gl=ei=null,wv(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&($a=null),Ms(n),t=t.stateNode,Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(mi,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=C.T,c=X.p,X.p=2,C.T=null;try{for(var d=e.onRecoverableError,g=0;g<i.length;g++){var A=i[g];d(A.value,{componentStack:A.stack})}}finally{C.T=t,X.p=c}}(ql&3)!==0&&ko(),Zr(e),c=e.pendingLanes,(n&4194090)!==0&&(c&42)!==0?e===If?Yl++:(Yl=0,If=e):Yl=0,ns(0)}}function wv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_u(t)))}function ko(e){return Sv(),Ev(),Ov(),Tv()}function Tv(){if(gn!==5)return!1;var e=ei,t=Kf;Kf=0;var n=Ms(ql),i=C.T,c=X.p;try{X.p=32>n?32:n,C.T=null,n=Zf,Zf=null;var d=ei,g=ql;if(gn=0,Gl=ei=null,ql=0,(At&6)!==0)throw Error(o(331));var A=At;if(At|=4,fv(d.current),sv(d,d.current,g,n),At=A,ns(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(mi,d)}catch{}return!0}finally{X.p=c,C.T=i,wv(e,t)}}function Mv(e,t,n){t=On(n,t),t=Eo(e.stateNode,t,2),e=oa(e,t,2),e!==null&&(el(e,2),Zr(e))}function Tt(e,t,n){if(e.tag===3)Mv(e,e,n);else for(;t!==null;){if(t.tag===3){Mv(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&($a===null||!$a.has(i))){e=On(n,e),n=Nf(2),i=oa(t,n,2),i!==null&&(Kh(n,i,t,e),el(i,2),Zr(i));break}}t=t.return}}function $f(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new qf;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(n)||(Yf=!0,c.add(n),e=Tg.bind(null,e,t,n),t.then(e,e))}function Tg(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ct===e&&(lt&n)===n&&(Qt===4||Qt===3&&(lt&62914560)===lt&&300>Mt()-Xf?(At&2)===0&&Vl(e,0):Vf|=n,Hl===lt&&(Hl=0)),Zr(e)}function Cv(e,t){t===0&&(t=Ud()),e=_i(e,t),e!==null&&(el(e,t),Zr(e))}function Go(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cv(e,n)}function Mg(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),Cv(e,n)}function Rv(e,t){return Sn(e,t)}var es=null,ni=null,qo=!1,ts=!1,Yo=!1,ri=0;function Zr(e){e!==ni&&e.next===null&&(ni===null?es=ni=e:ni=ni.next=e),ts=!0,qo||(qo=!0,ed())}function ns(e,t){if(!Yo&&ts){Yo=!0;do for(var n=!1,i=es;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var d=0;else{var g=i.suspendedLanes,A=i.pingedLanes;d=(1<<31-En(42|e)+1)-1,d&=c&~(g&~A),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(n=!0,Dv(i,d))}else d=lt,d=$i(i,i===Ct?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||gi(i,d)||(n=!0,Dv(i,d));i=i.next}while(n);Yo=!1}}function Cg(){rs()}function rs(){ts=qo=!1;var e=0;ri!==0&&(Ug()&&(e=ri),ri=0);for(var t=Mt(),n=null,i=es;i!==null;){var c=i.next,d=as(i,t);d===0?(i.next=null,n===null?es=c:n.next=c,c===null&&(ni=n)):(n=i,(e!==0||(d&3)!==0)&&(ts=!0)),i=c}ns(e)}function as(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var g=31-En(d),A=1<<g,M=c[g];M===-1?((A&n)===0||(A&i)!==0)&&(c[g]=Jm(A,t)):M<=t&&(e.expiredLanes|=A),d&=~A}if(t=Ct,n=lt,n=$i(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(_t===2||_t===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Gt(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||gi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Gt(i),Ms(n)){case 2:case 8:n=Ur;break;case 32:n=Zt;break;case 268435456:n=Ra;break;default:n=Zt}return i=Nv.bind(null,e),n=Sn(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Gt(i),e.callbackPriority=2,e.callbackNode=null,2}function Nv(e,t){if(gn!==0&&gn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ko()&&e.callbackNode!==n)return null;var i=lt;return i=$i(e,e===Ct?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(mv(e,i,t),as(e,Mt()),e.callbackNode!=null&&e.callbackNode===n?Nv.bind(null,e):null)}function Dv(e,t){if(ko())return null;mv(e,t,!0)}function ed(){Hg(function(){(At&6)!==0?Sn(un,Cg):rs()})}function Vo(){return ri===0&&(ri=Ld()),ri}function zv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(""+e)}function Bv(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Rg(e,t,n,i,c){if(t==="submit"&&n&&n.stateNode===c){var d=zv((c[Dn]||null).action),g=i.submitter;g&&(t=(t=g[Dn]||null)?zv(t.formAction):g.getAttribute("formAction"),t!==null&&(d=t,g=null));var A=new Hs("action","action",null,i,c);e.push({event:A,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ri!==0){var M=g?Bv(c,g):new FormData(c);Bu(n,{pending:!0,data:M,method:c.method,action:d},null,M)}}else typeof d=="function"&&(A.preventDefault(),M=g?Bv(c,g):new FormData(c),Bu(n,{pending:!0,data:M,method:c.method,action:d},d,M))},currentTarget:c}]})}}for(var td=0;td<ft.length;td++){var nd=ft[td],Ng=nd.toLowerCase(),Dg=nd[0].toUpperCase()+nd.slice(1);xr(Ng,"on"+Dg)}xr(Ws,"onAnimationEnd"),xr(vh,"onAnimationIteration"),xr(Wn,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(Ps,"onTransitionRun"),xr(vg,"onTransitionStart"),xr(bl,"onTransitionCancel"),xr(fu,"onTransitionEnd"),il("onMouseEnter",["mouseout","mouseover"]),il("onMouseLeave",["mouseout","mouseover"]),il("onPointerEnter",["pointerout","pointerover"]),il("onPointerLeave",["pointerout","pointerover"]),pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pi("onBeforeInput",["compositionend","keypress","textInput","paste"]),pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var is="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(" "),zg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(is));function Lv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],c=i.event;i=i.listeners;e:{var d=void 0;if(t)for(var g=i.length-1;0<=g;g--){var A=i[g],M=A.instance,G=A.currentTarget;if(A=A.listener,M!==d&&c.isPropagationStopped())break e;d=A,c.currentTarget=G;try{d(c)}catch($){Hi($)}c.currentTarget=null,d=M}else for(g=0;g<i.length;g++){if(A=i[g],M=A.instance,G=A.currentTarget,A=A.listener,M!==d&&c.isPropagationStopped())break e;d=A,c.currentTarget=G;try{d(c)}catch($){Hi($)}c.currentTarget=null,d=M}}}}function et(e,t){var n=t[Ec];n===void 0&&(n=t[Ec]=new Set);var i=e+"__bubble";n.has(i)||(Uv(t,e,2,!1),n.add(i))}function rd(e,t,n){var i=0;t&&(i|=4),Uv(n,e,i,t)}var Xn="_reactListening"+Math.random().toString(36).slice(2);function ad(e){if(!e[Xn]){e[Xn]=!0,qd.forEach(function(n){n!=="selectionchange"&&(zg.has(n)||rd(n,!1,e),rd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xn]||(t[Xn]=!0,rd("selectionchange",!1,t))}}function Uv(e,t,n,i){switch(tm(t)){case 2:var c=Pg;break;case 8:c=Pl;break;default:c=vd}n=c.bind(null,t,n,e),c=void 0,!su||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Aa(e,t,n,i,c){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var A=i.stateNode.containerInfo;if(A===c)break;if(g===4)for(g=i.return;g!==null;){var M=g.tag;if((M===3||M===4)&&g.stateNode.containerInfo===c)return;g=g.return}for(;A!==null;){if(g=tl(A),g===null)return;if(M=g.tag,M===5||M===6||M===26||M===27){i=d=g;continue e}A=A.parentNode}}i=i.return}Zd(function(){var G=d,$=Hc(n),re=[];e:{var Z=du.get(e);if(Z!==void 0){var q=Hs,Be=e;switch(e){case"keypress":if(xt(n)===0)break e;case"keydown":case"keyup":q=Qc;break;case"focusin":Be="focus",q=Gs;break;case"focusout":Be="blur",q=Gs;break;case"beforeblur":case"afterblur":q=Gs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=La;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Vc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=ig;break;case Ws:case vh:case Wn:q=Fd;break;case fu:q=lg;break;case"scroll":case"scrollend":q=ng;break;case"wheel":q=sg;break;case"copy":case"cut":case"paste":q=eh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=ia;break;case"toggle":case"beforetoggle":q=Ys}var ze=(t&4)!==0,Et=!ze&&(e==="scroll"||e==="scrollend"),L=ze?Z!==null?Z+"Capture":null:Z;ze=[];for(var D=G,H;D!==null;){var te=D;if(H=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||H===null||L===null||(te=uu(D,L),te!=null&&ze.push(qe(D,te,H))),Et)break;D=D.return}0<ze.length&&(Z=new q(Z,Be,null,n,$),re.push({event:Z,listeners:ze}))}}if((t&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",Z&&n!==Us&&(Be=n.relatedTarget||n.fromElement)&&(tl(Be)||Be[Da]))break e;if((q||Z)&&(Z=$.window===$?$:(Z=$.ownerDocument)?Z.defaultView||Z.parentWindow:window,q?(Be=n.relatedTarget||n.toElement,q=G,Be=Be?tl(Be):null,Be!==null&&(Et=m(Be),ze=Be.tag,Be!==Et||ze!==5&&ze!==27&&ze!==6)&&(Be=null)):(q=null,Be=G),q!==Be)){if(ze=La,te="onMouseLeave",L="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(ze=ia,te="onPointerLeave",L="onPointerEnter",D="pointer"),Et=q==null?Z:rl(q),H=Be==null?Z:rl(Be),Z=new ze(te,D+"leave",q,n,$),Z.target=Et,Z.relatedTarget=H,te=null,tl($)===G&&(ze=new ze(L,D+"enter",Be,n,$),ze.target=H,ze.relatedTarget=Et,te=ze),Et=te,q&&Be)t:{for(ze=q,L=Be,D=0,H=ze;H;H=nn(H))D++;for(H=0,te=L;te;te=nn(te))H++;for(;0<D-H;)ze=nn(ze),D--;for(;0<H-D;)L=nn(L),H--;for(;D--;){if(ze===L||L!==null&&ze===L.alternate)break t;ze=nn(ze),L=nn(L)}ze=null}else ze=null;q!==null&&Xt(re,Z,q,ze,!1),Be!==null&&Et!==null&&Xt(re,Et,Be,ze,!0)}}e:{if(Z=G?rl(G):window,q=Z.nodeName&&Z.nodeName.toLowerCase(),q==="select"||q==="input"&&Z.type==="file")var Ee=uh;else if(Ks(Z))if(sh)Ee=fg;else{Ee=Ha;var Pe=fh}else q=Z.nodeName,!q||q.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?G&&jc(G.elementType)&&(Ee=uh):Ee=Js;if(Ee&&(Ee=Ee(e,G))){vl(re,Ee,n,$);break e}Pe&&Pe(e,Z,G),e==="focusout"&&G&&Z.type==="number"&&G.memoizedProps.value!=null&&iu(Z,"number",Z.value)}switch(Pe=G?rl(G):window,e){case"focusin":(Ks(Pe)||Pe.contentEditable==="true")&&(pl=Pe,ka=G,z=null);break;case"focusout":z=ka=pl=null;break;case"mousedown":P=!0;break;case"contextmenu":case"mouseup":case"dragend":P=!1,I(re,n,$);break;case"selectionchange":if(hg)break;case"keydown":case"keyup":I(re,n,$)}var Ne;if(Zc)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Ua?ih(e,n)&&(Le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Le="onCompositionStart");Le&&(Vs&&n.locale!=="ko"&&(Ua||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Ua&&(Ne=Id()):(Ba=$,qc="value"in Ba?Ba.value:Ba.textContent,Ua=!0)),Pe=Qo(G,Le),0<Pe.length&&(Le=new Bn(Le,e,null,n,$),re.push({event:Le,listeners:Pe}),Ne?Le.data=Ne:(Ne=Xs(n),Ne!==null&&(Le.data=Ne)))),(Ne=ah?og(e,n):lh(e,n))&&(Le=Qo(G,"onBeforeInput"),0<Le.length&&(Pe=new Bn("onBeforeInput","beforeinput",null,n,$),re.push({event:Pe,listeners:Le}),Pe.data=Ne)),Rg(re,e,G,n,$)}Lv(re,t)})}function qe(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qo(e,t){for(var n=t+"Capture",i=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=uu(e,n),c!=null&&i.unshift(qe(e,c,d)),c=uu(e,t),c!=null&&i.push(qe(e,c,d))),e.tag===3)return i;e=e.return}return[]}function nn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xt(e,t,n,i,c){for(var d=t._reactName,g=[];n!==null&&n!==i;){var A=n,M=A.alternate,G=A.stateNode;if(A=A.tag,M!==null&&M===i)break;A!==5&&A!==26&&A!==27||G===null||(M=G,c?(G=uu(n,d),G!=null&&g.unshift(qe(n,G,M))):c||(G=uu(n,d),G!=null&&g.push(qe(n,G,M)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var Bg=/\r\n?/g,ai=/\u0000|\uFFFD/g;function jv(e){return(typeof e=="string"?e:""+e).replace(Bg,`
`).replace(ai,"")}function Hv(e,t){return t=jv(t),jv(e)===t}function Xo(){}function St(e,t,n,i,c,d){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||za(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&za(e,""+i);break;case"className":Ns(e,"class",i);break;case"tabIndex":Ns(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ns(e,n,i);break;case"style":Uc(e,i,d);break;case"data":if(t!=="object"){Ns(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=lu(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(n==="formAction"?(t!=="input"&&St(e,t,"name",c.name,c,null),St(e,t,"formEncType",c.formEncType,c,null),St(e,t,"formMethod",c.formMethod,c,null),St(e,t,"formTarget",c.formTarget,c,null)):(St(e,t,"encType",c.encType,c,null),St(e,t,"method",c.method,c,null),St(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=lu(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Xo);break;case"onScroll":i!=null&&et("scroll",e);break;case"onScrollEnd":i!=null&&et("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=lu(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":et("beforetoggle",e),et("toggle",e),Rs(e,"popover",i);break;case"xlinkActuate":jr(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":jr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":jr(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":jr(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":jr(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":jr(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":jr(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":jr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":jr(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Rs(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Xd.get(n)||n,Rs(e,n,i))}}function id(e,t,n,i,c,d){switch(n){case"style":Uc(e,i,d);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof i=="string"?za(e,i):(typeof i=="number"||typeof i=="bigint")&&za(e,""+i);break;case"onScroll":i!=null&&et("scroll",e);break;case"onScrollEnd":i!=null&&et("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Xo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),d=e[Dn]||null,d=d!=null?d[n]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof i=="function")){typeof d!="function"&&d!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,c);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Rs(e,n,i)}}}function rn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",e),et("load",e);var i=!1,c=!1,d;for(d in n)if(n.hasOwnProperty(d)){var g=n[d];if(g!=null)switch(d){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:St(e,t,d,g,n,null)}}c&&St(e,t,"srcSet",n.srcSet,n,null),i&&St(e,t,"src",n.src,n,null);return;case"input":et("invalid",e);var A=d=g=c=null,M=null,G=null;for(i in n)if(n.hasOwnProperty(i)){var $=n[i];if($!=null)switch(i){case"name":c=$;break;case"type":g=$;break;case"checked":M=$;break;case"defaultChecked":G=$;break;case"value":d=$;break;case"defaultValue":A=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(o(137,t));break;default:St(e,t,i,$,n,null)}}zc(e,d,A,M,G,g,c,!1),zs(e);return;case"select":et("invalid",e),i=g=d=null;for(c in n)if(n.hasOwnProperty(c)&&(A=n[c],A!=null))switch(c){case"value":d=A;break;case"defaultValue":g=A;break;case"multiple":i=A;default:St(e,t,c,A,n,null)}t=d,n=g,e.multiple=!!i,t!=null?ul(e,!!i,t,!1):n!=null&&ul(e,!!i,n,!0);return;case"textarea":et("invalid",e),d=c=i=null;for(g in n)if(n.hasOwnProperty(g)&&(A=n[g],A!=null))switch(g){case"value":i=A;break;case"defaultValue":c=A;break;case"children":d=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(91));break;default:St(e,t,g,A,n,null)}Ls(e,i,c,d),zs(e);return;case"option":for(M in n)if(n.hasOwnProperty(M)&&(i=n[M],i!=null))switch(M){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:St(e,t,M,i,n,null)}return;case"dialog":et("beforetoggle",e),et("toggle",e),et("cancel",e),et("close",e);break;case"iframe":case"object":et("load",e);break;case"video":case"audio":for(i=0;i<is.length;i++)et(is[i],e);break;case"image":et("error",e),et("load",e);break;case"details":et("toggle",e);break;case"embed":case"source":case"link":et("error",e),et("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in n)if(n.hasOwnProperty(G)&&(i=n[G],i!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:St(e,t,G,i,n,null)}return;default:if(jc(t)){for($ in n)n.hasOwnProperty($)&&(i=n[$],i!==void 0&&id(e,t,$,i,n,void 0));return}}for(A in n)n.hasOwnProperty(A)&&(i=n[A],i!=null&&St(e,t,A,i,n,null))}function Lg(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,g=null,A=null,M=null,G=null,$=null;for(q in n){var re=n[q];if(n.hasOwnProperty(q)&&re!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":M=re;default:i.hasOwnProperty(q)||St(e,t,q,null,i,re)}}for(var Z in i){var q=i[Z];if(re=n[Z],i.hasOwnProperty(Z)&&(q!=null||re!=null))switch(Z){case"type":d=q;break;case"name":c=q;break;case"checked":G=q;break;case"defaultChecked":$=q;break;case"value":g=q;break;case"defaultValue":A=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,t));break;default:q!==re&&St(e,t,Z,q,i,re)}}Bs(e,g,A,M,G,$,d,c);return;case"select":q=g=A=Z=null;for(d in n)if(M=n[d],n.hasOwnProperty(d)&&M!=null)switch(d){case"value":break;case"multiple":q=M;default:i.hasOwnProperty(d)||St(e,t,d,null,i,M)}for(c in i)if(d=i[c],M=n[c],i.hasOwnProperty(c)&&(d!=null||M!=null))switch(c){case"value":Z=d;break;case"defaultValue":A=d;break;case"multiple":g=d;default:d!==M&&St(e,t,c,d,i,M)}t=A,n=g,i=q,Z!=null?ul(e,!!n,Z,!1):!!i!=!!n&&(t!=null?ul(e,!!n,t,!0):ul(e,!!n,n?[]:"",!1));return;case"textarea":q=Z=null;for(A in n)if(c=n[A],n.hasOwnProperty(A)&&c!=null&&!i.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:St(e,t,A,null,i,c)}for(g in i)if(c=i[g],d=n[g],i.hasOwnProperty(g)&&(c!=null||d!=null))switch(g){case"value":Z=c;break;case"defaultValue":q=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==d&&St(e,t,g,c,i,d)}Bc(e,Z,q);return;case"option":for(var Be in n)if(Z=n[Be],n.hasOwnProperty(Be)&&Z!=null&&!i.hasOwnProperty(Be))switch(Be){case"selected":e.selected=!1;break;default:St(e,t,Be,null,i,Z)}for(M in i)if(Z=i[M],q=n[M],i.hasOwnProperty(M)&&Z!==q&&(Z!=null||q!=null))switch(M){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:St(e,t,M,Z,i,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ze in n)Z=n[ze],n.hasOwnProperty(ze)&&Z!=null&&!i.hasOwnProperty(ze)&&St(e,t,ze,null,i,Z);for(G in i)if(Z=i[G],q=n[G],i.hasOwnProperty(G)&&Z!==q&&(Z!=null||q!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,t));break;default:St(e,t,G,Z,i,q)}return;default:if(jc(t)){for(var Et in n)Z=n[Et],n.hasOwnProperty(Et)&&Z!==void 0&&!i.hasOwnProperty(Et)&&id(e,t,Et,void 0,i,Z);for($ in i)Z=i[$],q=n[$],!i.hasOwnProperty($)||Z===q||Z===void 0&&q===void 0||id(e,t,$,Z,i,q);return}}for(var L in n)Z=n[L],n.hasOwnProperty(L)&&Z!=null&&!i.hasOwnProperty(L)&&St(e,t,L,null,i,Z);for(re in i)Z=i[re],q=n[re],!i.hasOwnProperty(re)||Z===q||Z==null&&q==null||St(e,t,re,Z,i,q)}var Cr=null,Ko=null;function Yi(e){return e.nodeType===9?e:e.ownerDocument}function jt(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kt(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Zo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ld=null;function Ug(){var e=window.event;return e&&e.type==="popstate"?e===ld?!1:(ld=e,!0):(ld=null,!1)}var kv=typeof setTimeout=="function"?setTimeout:void 0,jg=typeof clearTimeout=="function"?clearTimeout:void 0,Gv=typeof Promise=="function"?Promise:void 0,Hg=typeof queueMicrotask=="function"?queueMicrotask:typeof Gv<"u"?function(e){return Gv.resolve(null).then(e).catch(qv)}:kv;function qv(e){setTimeout(function(){throw e})}function yr(e){return e==="head"}function Io(e,t){var n=t,i=0,c=0;do{var d=n.nextSibling;if(e.removeChild(n),d&&d.nodeType===8)if(n=d.data,n==="/$"){if(0<i&&8>i){n=i;var g=e.ownerDocument;if(n&1&&ls(g.documentElement),n&2&&ls(g.body),n&4)for(n=g.head,ls(n),g=n.firstChild;g;){var A=g.nextSibling,M=g.nodeName;g[ru]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&g.rel.toLowerCase()==="stylesheet"||n.removeChild(g),g=A}}if(c===0){e.removeChild(d),vs(t);return}c--}else n==="$"||n==="$?"||n==="$!"?c++:i=n.charCodeAt(0)-48;else i=0;n=d}while(n);vs(t)}function ud(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ud(n),Oc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Yv(e,t,n,i){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ru])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Rr(e.nextSibling),e===null)break}return null}function Jo(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Rr(e.nextSibling),e===null))return null;return e}function Rn(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Xl(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Rr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var sd=null;function Vv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Qv(e,t,n){switch(t=Yi(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ls(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Oc(e)}var rr=new Map,Ir=new Set;function Xe(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Jr=X.d;X.d={f:Ar,r:Xv,D:kg,C:Kv,L:Wo,m:Gg,X:Yg,S:qg,M:Vg};function Ar(){var e=Jr.f(),t=jo();return e||t}function Xv(e){var t=nl(e);t!==null&&t.tag===5&&t.type==="form"?Ao(t):Jr.r(e)}var Kl=typeof document>"u"?null:document;function dt(e,t,n){var i=Kl;if(i&&typeof t=="string"&&t){var c=lr(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Ir.has(c)||(Ir.add(c),e={rel:e,crossOrigin:n,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),rn(t,"link",e),on(t),i.head.appendChild(t)))}}function kg(e){Jr.D(e),dt("dns-prefetch",e,null)}function Kv(e,t){Jr.C(e,t),dt("preconnect",e,t)}function Wo(e,t,n){Jr.L(e,t,n);var i=Kl;if(i&&e&&t){var c='link[rel="preload"][as="'+lr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+lr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+lr(n.imageSizes)+'"]')):c+='[href="'+lr(e)+'"]';var d=c;switch(t){case"style":d=Zl(e);break;case"script":d=Il(e)}rr.has(d)||(e=w({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),rr.set(d,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(us(d))||t==="script"&&i.querySelector(ss(d))||(t=i.createElement("link"),rn(t,"link",e),on(t),i.head.appendChild(t)))}}function Gg(e,t){Jr.m(e,t);var n=Kl;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+lr(i)+'"][href="'+lr(e)+'"]',d=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Il(e)}if(!rr.has(d)&&(e=w({rel:"modulepreload",href:e},t),rr.set(d,e),n.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ss(d)))return}i=n.createElement("link"),rn(i,"link",e),on(i),n.head.appendChild(i)}}}function qg(e,t,n){Jr.S(e,t,n);var i=Kl;if(i&&e){var c=al(i).hoistableStyles,d=Zl(e);t=t||"default";var g=c.get(d);if(!g){var A={loading:0,preload:null};if(g=i.querySelector(us(d)))A.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},n),(n=rr.get(d))&&os(e,n);var M=g=i.createElement("link");on(M),rn(M,"link",e),M._p=new Promise(function(G,$){M.onload=G,M.onerror=$}),M.addEventListener("load",function(){A.loading|=1}),M.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Po(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:A},c.set(d,g)}}}function Yg(e,t){Jr.X(e,t);var n=Kl;if(n&&e){var i=al(n).hoistableScripts,c=Il(e),d=i.get(c);d||(d=n.querySelector(ss(c)),d||(e=w({src:e,async:!0},t),(t=rr.get(c))&&od(e,t),d=n.createElement("script"),on(d),rn(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function Vg(e,t){Jr.M(e,t);var n=Kl;if(n&&e){var i=al(n).hoistableScripts,c=Il(e),d=i.get(c);d||(d=n.querySelector(ss(c)),d||(e=w({src:e,async:!0,type:"module"},t),(t=rr.get(c))&&od(e,t),d=n.createElement("script"),on(d),rn(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function Zv(e,t,n,i){var c=(c=Oe.current)?Xe(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Zl(n.href),n=al(c).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Zl(n.href);var d=al(c).hoistableStyles,g=d.get(e);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,g),(d=c.querySelector(us(e)))&&!d._p&&(g.instance=d,g.state.loading=5),rr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},rr.set(e,n),d||Qg(c,e,n,g.state))),t&&i===null)throw Error(o(528,""));return g}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Il(n),n=al(c).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Zl(e){return'href="'+lr(e)+'"'}function us(e){return'link[rel="stylesheet"]['+e+"]"}function Iv(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Qg(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),rn(t,"link",n),on(t),e.head.appendChild(t))}function Il(e){return'[src="'+lr(e)+'"]'}function ss(e){return"script[async]"+e}function Jv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+lr(n.href)+'"]');if(i)return t.instance=i,on(i),i;var c=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),on(i),rn(i,"style",c),Po(i,n.precedence,e),t.instance=i;case"stylesheet":c=Zl(n.href);var d=e.querySelector(us(c));if(d)return t.state.loading|=4,t.instance=d,on(d),d;i=Iv(n),(c=rr.get(c))&&os(i,c),d=(e.ownerDocument||e).createElement("link"),on(d);var g=d;return g._p=new Promise(function(A,M){g.onload=A,g.onerror=M}),rn(d,"link",i),t.state.loading|=4,Po(d,n.precedence,e),t.instance=d;case"script":return d=Il(n.src),(c=e.querySelector(ss(d)))?(t.instance=c,on(c),c):(i=n,(c=rr.get(d))&&(i=w({},n),od(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),on(c),rn(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Po(i,n.precedence,e));return t.instance}function Po(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,d=c,g=0;g<i.length;g++){var A=i[g];if(A.dataset.precedence===t)d=A;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function od(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Jl=null;function Wv(e,t,n){if(Jl===null){var i=new Map,c=Jl=new Map;c.set(n,i)}else c=Jl,i=c.get(n),i||(i=new Map,c.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var d=n[c];if(!(d[ru]||d[sn]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var g=d.getAttribute(t)||"";g=e+g;var A=i.get(g);A?A.push(d):i.set(g,[d])}}return i}function Pv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Xg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function an(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var dn=null;function Kg(){}function Zg(e,t,n){if(dn===null)throw Error(o(475));var i=dn;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=Zl(n.href),d=e.querySelector(us(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=cs.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=d,on(d);return}d=e.ownerDocument||e,n=Iv(n),(c=rr.get(c))&&os(n,c),d=d.createElement("link"),on(d);var g=d;g._p=new Promise(function(A,M){g.onload=A,g.onerror=M}),rn(d,"link",n),t.instance=d}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(i.count++,t=cs.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function Ig(){if(dn===null)throw Error(o(475));var e=dn;return e.stylesheets&&e.count===0&&cd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&cd(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function cs(){if(this.count--,this.count===0){if(this.stylesheets)cd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fo=null;function cd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fo=new Map,t.forEach(Jg,e),Fo=null,cs.call(e))}function Jg(e,t){if(!(t.state.loading&4)){var n=Fo.get(e);if(n)var i=n.get(null);else{n=new Map,Fo.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var g=c[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),i=g)}i&&n.set(null,i)}c=t.instance,g=c.getAttribute("data-precedence"),d=n.get(g)||i,d===i&&n.set(null,c),n.set(g,c),this.count++,i=cs.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Wl={$$typeof:be,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function Wg(e,t,n,i,c,d,g,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ts(0),this.hiddenUpdates=Ts(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Fv(e,t,n,i,c,d,g,A,M,G,$,re){return e=new Wg(e,t,n,g,A,M,G,re),t=1,d===!0&&(t|=24),d=Ln(3,null,null,t),e.current=d,d.stateNode=e,t=rf(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:i,isDehydrated:n,cache:t},Ci(d),e}function $v(e){return e?(e=xi,e):xi}function fd(e,t,n,i,c,d){c=$v(c),i.context===null?i.context=c:i.pendingContext=c,i=Va(t),i.payload={element:n},d=d===void 0?null:d,d!==null&&(i.callback=d),n=oa(e,i,t),n!==null&&(nr(n,e,t),Su(n,e,t))}function dd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hd(e,t){dd(e,t),(e=e.alternate)&&dd(e,t)}function em(e){if(e.tag===13){var t=_i(e,67108864);t!==null&&nr(t,e,67108864),hd(e,67108864)}}var $o=!0;function Pg(e,t,n,i){var c=C.T;C.T=null;var d=X.p;try{X.p=2,vd(e,t,n,i)}finally{X.p=d,C.T=c}}function Pl(e,t,n,i){var c=C.T;C.T=null;var d=X.p;try{X.p=8,vd(e,t,n,i)}finally{X.p=d,C.T=c}}function vd(e,t,n,i){if($o){var c=md(i);if(c===null)Aa(e,t,i,ec,n),nm(e,i);else if($g(c,e,t,n,i))i.stopPropagation();else if(nm(e,i),t&4&&-1<Fg.indexOf(e)){for(;c!==null;){var d=nl(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=ra(d.pendingLanes);if(g!==0){var A=d;for(A.pendingLanes|=2,A.entangledLanes|=2;g;){var M=1<<31-En(g);A.entanglements[1]|=M,g&=~M}Zr(d),(At&6)===0&&(kl=Mt()+500,ns(0))}}break;case 13:A=_i(d,2),A!==null&&nr(A,d,2),jo(),hd(d,2)}if(d=md(i),d===null&&Aa(e,t,i,ec,n),d===c)break;c=d}c!==null&&i.stopPropagation()}else Aa(e,t,i,null,n)}}function md(e){return e=Hc(e),gd(e)}var ec=null;function gd(e){if(ec=null,e=tl(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ec=e,null}function tm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(vn()){case un:return 2;case Ur:return 8;case Zt:case Nn:return 32;case Ra:return 268435456;default:return 32}default:return 32}}var tc=!1,_a=null,ii=null,li=null,fs=new Map,ds=new Map,ui=[],Fg="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 nm(e,t){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":ii=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ds.delete(t.pointerId)}}function hs(e,t,n,i,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:d,targetContainers:[c]},t!==null&&(t=nl(t),t!==null&&em(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function $g(e,t,n,i,c){switch(t){case"focusin":return _a=hs(_a,e,t,n,i,c),!0;case"dragenter":return ii=hs(ii,e,t,n,i,c),!0;case"mouseover":return li=hs(li,e,t,n,i,c),!0;case"pointerover":var d=c.pointerId;return fs.set(d,hs(fs.get(d)||null,e,t,n,i,c)),!0;case"gotpointercapture":return d=c.pointerId,ds.set(d,hs(ds.get(d)||null,e,t,n,i,c)),!0}return!1}function rm(e){var t=tl(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Pm(e.priority,function(){if(n.tag===13){var i=_n();i=Sc(i);var c=_i(n,i);c!==null&&nr(c,n,i),hd(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=md(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Us=i,n.target.dispatchEvent(i),Us=null}else return t=nl(n),t!==null&&em(t),e.blockedOn=n,!1;t.shift()}return!0}function am(e,t,n){nc(e)&&n.delete(t)}function e0(){tc=!1,_a!==null&&nc(_a)&&(_a=null),ii!==null&&nc(ii)&&(ii=null),li!==null&&nc(li)&&(li=null),fs.forEach(am),ds.forEach(am)}function rc(e,t){e.blockedOn===t&&(e.blockedOn=null,tc||(tc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,e0)))}var ac=null;function im(e){ac!==e&&(ac=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){ac===e&&(ac=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(gd(i||n)===null)continue;break}var d=nl(n);d!==null&&(e.splice(t,3),t-=3,Bu(d,{pending:!0,data:c,method:n.method,action:i},i,c))}}))}function vs(e){function t(M){return rc(M,e)}_a!==null&&rc(_a,e),ii!==null&&rc(ii,e),li!==null&&rc(li,e),fs.forEach(t),ds.forEach(t);for(var n=0;n<ui.length;n++){var i=ui[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ui.length&&(n=ui[0],n.blockedOn===null);)rm(n),n.blockedOn===null&&ui.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var c=n[i],d=n[i+1],g=c[Dn]||null;if(typeof d=="function")g||im(n);else if(g){var A=null;if(d&&d.hasAttribute("formAction")){if(c=d,g=d[Dn]||null)A=g.formAction;else if(gd(c)!==null)continue}else A=g.action;typeof A=="function"?n[i+1]=A:(n.splice(i,3),i-=3),im(n)}}}function pd(e){this._internalRoot=e}ic.prototype.render=pd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,i=_n();fd(n,i,e,t,null,null)},ic.prototype.unmount=pd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fd(e.current,2,null,e,null,null),jo(),t[Da]=null}};function ic(e){this._internalRoot=e}ic.prototype.unstable_scheduleHydration=function(e){if(e){var t=kd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ui.length&&t!==0&&t<ui[n].priority;n++);ui.splice(n,0,e),n===0&&rm(e)}};var lm=u.version;if(lm!=="19.1.1")throw Error(o(527,lm,"19.1.1"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=_(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var t0={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{mi=lc.inject(t0),Ft=lc}catch{}}return yd.createRoot=function(e,t){if(!h(e))throw Error(o(299));var n=!1,i="",c=Rf,d=So,g=Xh,A=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(A=t.unstable_transitionCallbacks)),t=Fv(e,1,!1,null,null,n,i,c,d,g,A,null),e[Da]=t.current,ad(e),new pd(t)},yd.hydrateRoot=function(e,t,n){if(!h(e))throw Error(o(299));var i=!1,c="",d=Rf,g=So,A=Xh,M=null,G=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(A=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(M=n.unstable_transitionCallbacks),n.formState!==void 0&&(G=n.formState)),t=Fv(e,1,!0,t,n??null,i,c,d,g,A,M,G),t.context=$v(null),n=t.current,i=_n(),i=Sc(i),c=Va(i),c.callback=null,oa(n,c,i),n=i,t.current.lanes=n,el(t,n),Zr(t),e[Da]=t.current,ad(e),new ic(t)},yd.version="19.1.1",yd}var Sp;function oy(){if(Sp)return u0.exports;Sp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),u0.exports=sy(),u0.exports}var cy=oy(),vm={exports:{}},mm={exports:{}},fy=mm.exports,Ep;function h1(){return Ep||(Ep=1,(function(l,u){(function(s,o){l.exports=o()})(fy,(function(){var s=1e3,o=6e4,h=36e5,m="millisecond",p="second",x="minute",_="hour",E="day",w="week",R="month",V="quarter",Q="year",k="date",j="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ge={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ae){var ie=["th","st","nd","rd"],C=Ae%100;return"["+Ae+(ie[(C-20)%10]||ie[C]||ie[0])+"]"}},be=function(Ae,ie,C){var X=String(Ae);return!X||X.length>=ie?Ae:""+Array(ie+1-X.length).join(C)+Ae},he={s:be,z:function(Ae){var ie=-Ae.utcOffset(),C=Math.abs(ie),X=Math.floor(C/60),B=C%60;return(ie<=0?"+":"-")+be(X,2,"0")+":"+be(B,2,"0")},m:function Ae(ie,C){if(ie.date()<C.date())return-Ae(C,ie);var X=12*(C.year()-ie.year())+(C.month()-ie.month()),B=ie.clone().add(X,R),pe=C-B<0,O=ie.clone().add(X+(pe?-1:1),R);return+(-(X+(C-B)/(pe?B-O:O-B))||0)},a:function(Ae){return Ae<0?Math.ceil(Ae)||0:Math.floor(Ae)},p:function(Ae){return{M:R,y:Q,w,d:E,D:k,h:_,m:x,s:p,ms:m,Q:V}[Ae]||String(Ae||"").toLowerCase().replace(/s$/,"")},u:function(Ae){return Ae===void 0}},F="en",le={};le[F]=ge;var ue="$isDayjsObject",ce=function(Ae){return Ae instanceof Ue||!(!Ae||!Ae[ue])},we=function Ae(ie,C,X){var B;if(!ie)return F;if(typeof ie=="string"){var pe=ie.toLowerCase();le[pe]&&(B=pe),C&&(le[pe]=C,B=pe);var O=ie.split("-");if(!B&&O.length>1)return Ae(O[0])}else{var K=ie.name;le[K]=ie,B=K}return!X&&B&&(F=B),B||!X&&F},He=function(Ae,ie){if(ce(Ae))return Ae.clone();var C=typeof ie=="object"?ie:{};return C.date=Ae,C.args=arguments,new Ue(C)},Se=he;Se.l=we,Se.i=ce,Se.w=function(Ae,ie){return He(Ae,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var Ue=(function(){function Ae(C){this.$L=we(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[ue]=!0}var ie=Ae.prototype;return ie.parse=function(C){this.$d=(function(X){var B=X.date,pe=X.utc;if(B===null)return new Date(NaN);if(Se.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var O=B.match(W);if(O){var K=O[2]-1||0,oe=(O[7]||"0").substring(0,3);return pe?new Date(Date.UTC(O[1],K,O[3]||1,O[4]||0,O[5]||0,O[6]||0,oe)):new Date(O[1],K,O[3]||1,O[4]||0,O[5]||0,O[6]||0,oe)}}return new Date(B)})(C),this.init()},ie.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},ie.$utils=function(){return Se},ie.isValid=function(){return this.$d.toString()!==j},ie.isSame=function(C,X){var B=He(C);return this.startOf(X)<=B&&B<=this.endOf(X)},ie.isAfter=function(C,X){return He(C)<this.startOf(X)},ie.isBefore=function(C,X){return this.endOf(X)<He(C)},ie.$g=function(C,X,B){return Se.u(C)?this[X]:this.set(B,C)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(C,X){var B=this,pe=!!Se.u(X)||X,O=Se.p(C),K=function(pt,vt){var Dt=Se.w(B.$u?Date.UTC(B.$y,vt,pt):new Date(B.$y,vt,pt),B);return pe?Dt:Dt.endOf(E)},oe=function(pt,vt){return Se.w(B.toDate()[pt].apply(B.toDate("s"),(pe?[0,0,0,0]:[23,59,59,999]).slice(vt)),B)},ee=this.$W,ve=this.$M,Ce=this.$D,Oe="set"+(this.$u?"UTC":"");switch(O){case Q:return pe?K(1,0):K(31,11);case R:return pe?K(1,ve):K(0,ve+1);case w:var Ve=this.$locale().weekStart||0,Qe=(ee<Ve?ee+7:ee)-Ve;return K(pe?Ce-Qe:Ce+(6-Qe),ve);case E:case k:return oe(Oe+"Hours",0);case _:return oe(Oe+"Minutes",1);case x:return oe(Oe+"Seconds",2);case p:return oe(Oe+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(C){return this.startOf(C,!1)},ie.$set=function(C,X){var B,pe=Se.p(C),O="set"+(this.$u?"UTC":""),K=(B={},B[E]=O+"Date",B[k]=O+"Date",B[R]=O+"Month",B[Q]=O+"FullYear",B[_]=O+"Hours",B[x]=O+"Minutes",B[p]=O+"Seconds",B[m]=O+"Milliseconds",B)[pe],oe=pe===E?this.$D+(X-this.$W):X;if(pe===R||pe===Q){var ee=this.clone().set(k,1);ee.$d[K](oe),ee.init(),this.$d=ee.set(k,Math.min(this.$D,ee.daysInMonth())).$d}else K&&this.$d[K](oe);return this.init(),this},ie.set=function(C,X){return this.clone().$set(C,X)},ie.get=function(C){return this[Se.p(C)]()},ie.add=function(C,X){var B,pe=this;C=Number(C);var O=Se.p(X),K=function(ve){var Ce=He(pe);return Se.w(Ce.date(Ce.date()+Math.round(ve*C)),pe)};if(O===R)return this.set(R,this.$M+C);if(O===Q)return this.set(Q,this.$y+C);if(O===E)return K(1);if(O===w)return K(7);var oe=(B={},B[x]=o,B[_]=h,B[p]=s,B)[O]||1,ee=this.$d.getTime()+C*oe;return Se.w(ee,this)},ie.subtract=function(C,X){return this.add(-1*C,X)},ie.format=function(C){var X=this,B=this.$locale();if(!this.isValid())return B.invalidDate||j;var pe=C||"YYYY-MM-DDTHH:mm:ssZ",O=Se.z(this),K=this.$H,oe=this.$m,ee=this.$M,ve=B.weekdays,Ce=B.months,Oe=B.meridiem,Ve=function(vt,Dt,Kt,Sn){return vt&&(vt[Dt]||vt(X,pe))||Kt[Dt].slice(0,Sn)},Qe=function(vt){return Se.s(K%12||12,vt,"0")},pt=Oe||function(vt,Dt,Kt){var Sn=vt<12?"AM":"PM";return Kt?Sn.toLowerCase():Sn};return pe.replace(se,(function(vt,Dt){return Dt||(function(Kt){switch(Kt){case"YY":return String(X.$y).slice(-2);case"YYYY":return Se.s(X.$y,4,"0");case"M":return ee+1;case"MM":return Se.s(ee+1,2,"0");case"MMM":return Ve(B.monthsShort,ee,Ce,3);case"MMMM":return Ve(Ce,ee);case"D":return X.$D;case"DD":return Se.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return Ve(B.weekdaysMin,X.$W,ve,2);case"ddd":return Ve(B.weekdaysShort,X.$W,ve,3);case"dddd":return ve[X.$W];case"H":return String(K);case"HH":return Se.s(K,2,"0");case"h":return Qe(1);case"hh":return Qe(2);case"a":return pt(K,oe,!0);case"A":return pt(K,oe,!1);case"m":return String(oe);case"mm":return Se.s(oe,2,"0");case"s":return String(X.$s);case"ss":return Se.s(X.$s,2,"0");case"SSS":return Se.s(X.$ms,3,"0");case"Z":return O}return null})(vt)||O.replace(":","")}))},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(C,X,B){var pe,O=this,K=Se.p(X),oe=He(C),ee=(oe.utcOffset()-this.utcOffset())*o,ve=this-oe,Ce=function(){return Se.m(O,oe)};switch(K){case Q:pe=Ce()/12;break;case R:pe=Ce();break;case V:pe=Ce()/3;break;case w:pe=(ve-ee)/6048e5;break;case E:pe=(ve-ee)/864e5;break;case _:pe=ve/h;break;case x:pe=ve/o;break;case p:pe=ve/s;break;default:pe=ve}return B?pe:Se.a(pe)},ie.daysInMonth=function(){return this.endOf(R).$D},ie.$locale=function(){return le[this.$L]},ie.locale=function(C,X){if(!C)return this.$L;var B=this.clone(),pe=we(C,X,!0);return pe&&(B.$L=pe),B},ie.clone=function(){return Se.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},Ae})(),Ke=Ue.prototype;return He.prototype=Ke,[["$ms",m],["$s",p],["$m",x],["$H",_],["$W",E],["$M",R],["$y",Q],["$D",k]].forEach((function(Ae){Ke[Ae[1]]=function(ie){return this.$g(ie,Ae[0],Ae[1])}})),He.extend=function(Ae,ie){return Ae.$i||(Ae(ie,Ue,He),Ae.$i=!0),He},He.locale=we,He.isDayjs=ce,He.unix=function(Ae){return He(1e3*Ae)},He.en=le[F],He.Ls=le,He.p={},He}))})(mm)),mm.exports}var dy=vm.exports,Op;function hy(){return Op||(Op=1,(function(l,u){(function(s,o){l.exports=o(h1())})(dy,(function(s){function o(k){return k&&typeof k=="object"&&"default"in k?k:{default:k}}var h=o(s),m="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),p="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),x="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),_="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),E=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function w(k,j,W){var se,ge;return W==="m"?j?"минута":"минуту":k+" "+(se=+k,ge={mm:j?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[W].split("_"),se%10==1&&se%100!=11?ge[0]:se%10>=2&&se%10<=4&&(se%100<10||se%100>=20)?ge[1]:ge[2])}var R=function(k,j){return E.test(j)?m[k.month()]:p[k.month()]};R.s=p,R.f=m;var V=function(k,j){return E.test(j)?x[k.month()]:_[k.month()]};V.s=_,V.f=x;var Q={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:R,monthsShort:V,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:w,mm:w,h:"час",hh:w,d:"день",dd:w,M:"месяц",MM:w,y:"год",yy:w},ordinal:function(k){return k},meridiem:function(k){return k<4?"ночи":k<12?"утра":k<17?"дня":"вечера"}};return h.default.locale(Q,null,!0),Q}))})(vm)),vm.exports}hy();var vy=h1();const _s=tp(vy),mc=me.createContext({theme:"material",dark:!0,materialTouchRipple:!0,iosHoverHighlight:!0});function my(l,u){return typeof window>"u"?de.useEffect(l,u):de.useLayoutEffect(l,u)}const v1=(l,u=!0)=>{const[s,o]=de.useState(l);return my(()=>{if(u){if(l==="ios"||l==="material")s!==l&&o(l);else if(s==="parent"&&typeof window<"u"&&typeof document<"u"){const h=document.documentElement;h&&(h.classList.contains("ios")?o("ios"):(h.classList.contains("md")||h.classList.contains("material"))&&o("material"))}}},[l]),u?s:l},gy=l=>{const{theme:u,dark:s,materialTouchRipple:o=!0,iosHoverHighlight:h=!0,autoThemeDetection:m=!0,children:p}=l,x=v1(u,m);return me.createElement(mc.Provider,{value:{theme:x,dark:s,materialTouchRipple:o,iosHoverHighlight:h}},p)},np="-",py=l=>{const u=yy(l),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=l;return{getClassGroupId:p=>{const x=p.split(np);return x[0]===""&&x.length!==1&&x.shift(),m1(x,u)||by(p)},getConflictingClassGroupIds:(p,x)=>{const _=s[p]||[];return x&&o[p]?[..._,...o[p]]:_}}},m1=(l,u)=>{if(l.length===0)return u.classGroupId;const s=l[0],o=u.nextPart.get(s),h=o?m1(l.slice(1),o):void 0;if(h)return h;if(u.validators.length===0)return;const m=l.join(np);return u.validators.find(({validator:p})=>p(m))?.classGroupId},wp=/^\[(.+)\]$/,by=l=>{if(wp.test(l)){const u=wp.exec(l)[1],s=u?.substring(0,u.indexOf(":"));if(s)return"arbitrary.."+s}},yy=l=>{const{theme:u,classGroups:s}=l,o={nextPart:new Map,validators:[]};for(const h in s)x0(s[h],o,h,u);return o},x0=(l,u,s,o)=>{l.forEach(h=>{if(typeof h=="string"){const m=h===""?u:Tp(u,h);m.classGroupId=s;return}if(typeof h=="function"){if(Ay(h)){x0(h(o),u,s,o);return}u.validators.push({validator:h,classGroupId:s});return}Object.entries(h).forEach(([m,p])=>{x0(p,Tp(u,m),s,o)})})},Tp=(l,u)=>{let s=l;return u.split(np).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},Ay=l=>l.isThemeGetter,_y=l=>{if(l<1)return{get:()=>{},set:()=>{}};let u=0,s=new Map,o=new Map;const h=(m,p)=>{s.set(m,p),u++,u>l&&(u=0,o=s,s=new Map)};return{get(m){let p=s.get(m);if(p!==void 0)return p;if((p=o.get(m))!==void 0)return h(m,p),p},set(m,p){s.has(m)?s.set(m,p):h(m,p)}}},S0="!",E0=":",xy=E0.length,Sy=l=>{const{prefix:u,experimentalParseClassName:s}=l;let o=h=>{const m=[];let p=0,x=0,_=0,E;for(let k=0;k<h.length;k++){let j=h[k];if(p===0&&x===0){if(j===E0){m.push(h.slice(_,k)),_=k+xy;continue}if(j==="/"){E=k;continue}}j==="["?p++:j==="]"?p--:j==="("?x++:j===")"&&x--}const w=m.length===0?h:h.substring(_),R=Ey(w),V=R!==w,Q=E&&E>_?E-_:void 0;return{modifiers:m,hasImportantModifier:V,baseClassName:R,maybePostfixModifierPosition:Q}};if(u){const h=u+E0,m=o;o=p=>p.startsWith(h)?m(p.substring(h.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(s){const h=o;o=m=>s({className:m,parseClassName:h})}return o},Ey=l=>l.endsWith(S0)?l.substring(0,l.length-1):l.startsWith(S0)?l.substring(1):l,Oy=l=>{const u=Object.fromEntries(l.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const h=[];let m=[];return o.forEach(p=>{p[0]==="["||u[p]?(h.push(...m.sort(),p),m=[]):m.push(p)}),h.push(...m.sort()),h}},wy=l=>({cache:_y(l.cacheSize),parseClassName:Sy(l),sortModifiers:Oy(l),...py(l)}),Ty=/\s+/,My=(l,u)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:h,sortModifiers:m}=u,p=[],x=l.trim().split(Ty);let _="";for(let E=x.length-1;E>=0;E-=1){const w=x[E],{isExternal:R,modifiers:V,hasImportantModifier:Q,baseClassName:k,maybePostfixModifierPosition:j}=s(w);if(R){_=w+(_.length>0?" "+_:_);continue}let W=!!j,se=o(W?k.substring(0,j):k);if(!se){if(!W){_=w+(_.length>0?" "+_:_);continue}if(se=o(k),!se){_=w+(_.length>0?" "+_:_);continue}W=!1}const ge=m(V).join(":"),be=Q?ge+S0:ge,he=be+se;if(p.includes(he))continue;p.push(he);const F=h(se,W);for(let le=0;le<F.length;++le){const ue=F[le];p.push(be+ue)}_=w+(_.length>0?" "+_:_)}return _};function Cy(){let l=0,u,s,o="";for(;l<arguments.length;)(u=arguments[l++])&&(s=g1(u))&&(o&&(o+=" "),o+=s);return o}const g1=l=>{if(typeof l=="string")return l;let u,s="";for(let o=0;o<l.length;o++)l[o]&&(u=g1(l[o]))&&(s&&(s+=" "),s+=u);return s};function Ry(l,...u){let s,o,h,m=p;function p(_){const E=u.reduce((w,R)=>R(w),l());return s=wy(E),o=s.cache.get,h=s.cache.set,m=x,x(_)}function x(_){const E=o(_);if(E)return E;const w=My(_,s);return h(_,w),w}return function(){return m(Cy.apply(null,arguments))}}const pn=l=>{const u=s=>s[l]||[];return u.isThemeGetter=!0,u},p1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,b1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ny=/^\d+\/\d+$/,Dy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zy=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,By=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ly=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,uc=l=>Ny.test(l),tt=l=>!!l&&!Number.isNaN(Number(l)),Fl=l=>!!l&&Number.isInteger(Number(l)),f0=l=>l.endsWith("%")&&tt(l.slice(0,-1)),Qi=l=>Dy.test(l),jy=()=>!0,Hy=l=>zy.test(l)&&!By.test(l),y1=()=>!1,ky=l=>Ly.test(l),Gy=l=>Uy.test(l),qy=l=>!Te(l)&&!Me(l),Yy=l=>gc(l,x1,y1),Te=l=>p1.test(l),ms=l=>gc(l,S1,Hy),d0=l=>gc(l,Zy,tt),Mp=l=>gc(l,A1,y1),Vy=l=>gc(l,_1,Gy),sm=l=>gc(l,E1,ky),Me=l=>b1.test(l),Ad=l=>pc(l,S1),Qy=l=>pc(l,Iy),Cp=l=>pc(l,A1),Xy=l=>pc(l,x1),Ky=l=>pc(l,_1),om=l=>pc(l,E1,!0),gc=(l,u,s)=>{const o=p1.exec(l);return o?o[1]?u(o[1]):s(o[2]):!1},pc=(l,u,s=!1)=>{const o=b1.exec(l);return o?o[1]?u(o[1]):s:!1},A1=l=>l==="position"||l==="percentage",_1=l=>l==="image"||l==="url",x1=l=>l==="length"||l==="size"||l==="bg-size",S1=l=>l==="length",Zy=l=>l==="number",Iy=l=>l==="family-name",E1=l=>l==="shadow",Jy=()=>{const l=pn("color"),u=pn("font"),s=pn("text"),o=pn("font-weight"),h=pn("tracking"),m=pn("leading"),p=pn("breakpoint"),x=pn("container"),_=pn("spacing"),E=pn("radius"),w=pn("shadow"),R=pn("inset-shadow"),V=pn("text-shadow"),Q=pn("drop-shadow"),k=pn("blur"),j=pn("perspective"),W=pn("aspect"),se=pn("ease"),ge=pn("animate"),be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...he(),Me,Te],le=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto","contain","none"],ce=()=>[Me,Te,_],we=()=>[uc,"full","auto",...ce()],He=()=>[Fl,"none","subgrid",Me,Te],Se=()=>["auto",{span:["full",Fl,Me,Te]},Fl,Me,Te],Ue=()=>[Fl,"auto",Me,Te],Ke=()=>["auto","min","max","fr",Me,Te],Ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...ce()],X=()=>[uc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ce()],B=()=>[l,Me,Te],pe=()=>[...he(),Cp,Mp,{position:[Me,Te]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",Xy,Yy,{size:[Me,Te]}],oe=()=>[f0,Ad,ms],ee=()=>["","none","full",E,Me,Te],ve=()=>["",tt,Ad,ms],Ce=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ve=()=>[tt,f0,Cp,Mp],Qe=()=>["","none",k,Me,Te],pt=()=>["none",tt,Me,Te],vt=()=>["none",tt,Me,Te],Dt=()=>[tt,Me,Te],Kt=()=>[uc,"full",...ce()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qi],breakpoint:[Qi],color:[jy],container:[Qi],"drop-shadow":[Qi],ease:["in","out","in-out"],font:[qy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qi],shadow:[Qi],spacing:["px",tt],text:[Qi],"text-shadow":[Qi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",uc,Te,Me,W]}],container:["container"],columns:[{columns:[tt,Te,Me,x]}],"break-after":[{"break-after":be()}],"break-before":[{"break-before":be()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:le()}],"overflow-x":[{"overflow-x":le()}],"overflow-y":[{"overflow-y":le()}],overscroll:[{overscroll:ue()}],"overscroll-x":[{"overscroll-x":ue()}],"overscroll-y":[{"overscroll-y":ue()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:we()}],"inset-x":[{"inset-x":we()}],"inset-y":[{"inset-y":we()}],start:[{start:we()}],end:[{end:we()}],top:[{top:we()}],right:[{right:we()}],bottom:[{bottom:we()}],left:[{left:we()}],visibility:["visible","invisible","collapse"],z:[{z:[Fl,"auto",Me,Te]}],basis:[{basis:[uc,"full","auto",x,...ce()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[tt,uc,"auto","initial","none",Te]}],grow:[{grow:["",tt,Me,Te]}],shrink:[{shrink:["",tt,Me,Te]}],order:[{order:[Fl,"first","last","none",Me,Te]}],"grid-cols":[{"grid-cols":He()}],"col-start-end":[{col:Se()}],"col-start":[{"col-start":Ue()}],"col-end":[{"col-end":Ue()}],"grid-rows":[{"grid-rows":He()}],"row-start-end":[{row:Se()}],"row-start":[{"row-start":Ue()}],"row-end":[{"row-end":Ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ke()}],"auto-rows":[{"auto-rows":Ke()}],gap:[{gap:ce()}],"gap-x":[{"gap-x":ce()}],"gap-y":[{"gap-y":ce()}],"justify-content":[{justify:[...Ae(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...Ae()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ae()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:ce()}],px:[{px:ce()}],py:[{py:ce()}],ps:[{ps:ce()}],pe:[{pe:ce()}],pt:[{pt:ce()}],pr:[{pr:ce()}],pb:[{pb:ce()}],pl:[{pl:ce()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":ce()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ce()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[x,"screen",...X()]}],"min-w":[{"min-w":[x,"screen","none",...X()]}],"max-w":[{"max-w":[x,"screen","none","prose",{screen:[p]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",s,Ad,ms]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Me,d0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",f0,Te]}],"font-family":[{font:[Qy,Te,u]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[h,Me,Te]}],"line-clamp":[{"line-clamp":[tt,"none",Me,d0]}],leading:[{leading:[m,...ce()]}],"list-image":[{"list-image":["none",Me,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Me,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[tt,"from-font","auto",Me,ms]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[tt,"auto",Me,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ce()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Me,Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Me,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fl,Me,Te],radial:["",Me,Te],conic:[Fl,Me,Te]},Ky,Vy]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[tt,Me,Te]}],"outline-w":[{outline:["",tt,Ad,ms]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",w,om,sm]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",R,om,sm]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[tt,ms]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",V,om,sm]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[tt,Me,Te]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[tt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ve()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":Ve()}],"mask-image-t-to-pos":[{"mask-t-to":Ve()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":Ve()}],"mask-image-r-to-pos":[{"mask-r-to":Ve()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":Ve()}],"mask-image-b-to-pos":[{"mask-b-to":Ve()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":Ve()}],"mask-image-l-to-pos":[{"mask-l-to":Ve()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":Ve()}],"mask-image-x-to-pos":[{"mask-x-to":Ve()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":Ve()}],"mask-image-y-to-pos":[{"mask-y-to":Ve()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[Me,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ve()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":he()}],"mask-image-conic-pos":[{"mask-conic":[tt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ve()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Me,Te]}],filter:[{filter:["","none",Me,Te]}],blur:[{blur:Qe()}],brightness:[{brightness:[tt,Me,Te]}],contrast:[{contrast:[tt,Me,Te]}],"drop-shadow":[{"drop-shadow":["","none",Q,om,sm]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",tt,Me,Te]}],"hue-rotate":[{"hue-rotate":[tt,Me,Te]}],invert:[{invert:["",tt,Me,Te]}],saturate:[{saturate:[tt,Me,Te]}],sepia:[{sepia:["",tt,Me,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Me,Te]}],"backdrop-blur":[{"backdrop-blur":Qe()}],"backdrop-brightness":[{"backdrop-brightness":[tt,Me,Te]}],"backdrop-contrast":[{"backdrop-contrast":[tt,Me,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",tt,Me,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[tt,Me,Te]}],"backdrop-invert":[{"backdrop-invert":["",tt,Me,Te]}],"backdrop-opacity":[{"backdrop-opacity":[tt,Me,Te]}],"backdrop-saturate":[{"backdrop-saturate":[tt,Me,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",tt,Me,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ce()}],"border-spacing-x":[{"border-spacing-x":ce()}],"border-spacing-y":[{"border-spacing-y":ce()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Me,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[tt,"initial",Me,Te]}],ease:[{ease:["linear","initial",se,Me,Te]}],delay:[{delay:[tt,Me,Te]}],animate:[{animate:["none",ge,Me,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,Me,Te]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:pt()}],"rotate-x":[{"rotate-x":pt()}],"rotate-y":[{"rotate-y":pt()}],"rotate-z":[{"rotate-z":pt()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:Dt()}],"skew-x":[{"skew-x":Dt()}],"skew-y":[{"skew-y":Dt()}],transform:[{transform:[Me,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Kt()}],"translate-x":[{"translate-x":Kt()}],"translate-y":[{"translate-y":Kt()}],"translate-z":[{"translate-z":Kt()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Me,Te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ce()}],"scroll-mx":[{"scroll-mx":ce()}],"scroll-my":[{"scroll-my":ce()}],"scroll-ms":[{"scroll-ms":ce()}],"scroll-me":[{"scroll-me":ce()}],"scroll-mt":[{"scroll-mt":ce()}],"scroll-mr":[{"scroll-mr":ce()}],"scroll-mb":[{"scroll-mb":ce()}],"scroll-ml":[{"scroll-ml":ce()}],"scroll-p":[{"scroll-p":ce()}],"scroll-px":[{"scroll-px":ce()}],"scroll-py":[{"scroll-py":ce()}],"scroll-ps":[{"scroll-ps":ce()}],"scroll-pe":[{"scroll-pe":ce()}],"scroll-pt":[{"scroll-pt":ce()}],"scroll-pr":[{"scroll-pr":ce()}],"scroll-pb":[{"scroll-pb":ce()}],"scroll-pl":[{"scroll-pl":ce()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Me,Te]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[tt,Ad,ms,d0]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wy=Ry(Jy);function Py(...l){const u=[];l.forEach(o=>{typeof o=="object"&&o.constructor===Object?Object.keys(o).forEach(h=>{o[h]&&u.push(h)}):Array.isArray(o)?u.push(...o):typeof o=="function"?u.push(o()):o&&o.value?u.push(o.value):o&&u.push(o)});const s=[];return u.forEach(o=>{s.indexOf(o)<0&&s.push(o)}),s.filter(o=>!!o).join(" ")}function Y(...l){return Wy(Py(...l))}const Fy=(l,u,s)=>{const{safeAreas:o}=l;return Y(u==="ios"&&"k-ios",u==="material"&&"k-material","k-app w-full h-full min-h-screen relative",o&&"safe-areas",s)};function O0(){return O0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},O0.apply(null,arguments)}const O1=l=>{const{component:u="div",className:s,theme:o="material",dark:h=!0,materialTouchRipple:m=!0,iosHoverHighlight:p=!0,safeAreas:x=!0,ref:_,children:E,...w}=l,R=de.useRef(null),V=u,Q={...w},k=v1(o),j=Fy({...l,safeAreas:x},k,s);return me.createElement(gy,{theme:k,dark:h,materialTouchRipple:m,iosHoverHighlight:p,autoThemeDetection:!1},me.createElement(V,O0({ref:W=>{R.current=W,_&&typeof _=="function"?_(W):_&&(_.current=W)},className:j},Q),E))};O1.displayName="App";const h0=(l,u,s)=>{if(typeof l=="string")return l;const o=[l[u],l.common];return s&&l[s]&&(typeof l[s]=="string"?o.push(l[s]):o.push(l[s].common,l[s][u])),o},$y=(l,u,s)=>{const o={},h=["common","ios","material"];return Object.keys(l).forEach(m=>{const p=m==="base"?s:"";if(!(typeof l[m]!="string"&&Object.keys(l[m]).filter(E=>!h.includes(E)).length>0)){o[m]=Y(h0(l[m],u),p);return}o[m]={};const _=h0(l[m],u);o[m].default=Y(_,p),Object.keys(l[m]).filter(E=>!h.includes(E)).forEach(E=>{o[m][E]=Y(_,h0(l[m],u,E),p)})}),o},na=({ios:l,material:u}={})=>{let o=de.useContext(mc).theme||"ios";return l&&(o="ios"),u&&(o="material"),(h,m)=>$y(h,o,m)},eA=(l,u)=>({base:{common:"",ios:Y("bg-ios-light-glass shadow-ios-light-glass backdrop-blur-lg touch-none",u("dark:bg-ios-dark-glass dark:shadow-ios-dark-glass")),material:""}}),Wi=({ios:l,material:u}={})=>{let o=de.useContext(mc).theme||"ios";return l&&(o="ios"),u&&(o="material"),o},Ta=()=>{const l=de.useContext(mc);return u=>l.dark?u:""},tA=l=>{requestAnimationFrame(()=>{requestAnimationFrame(l)})},nA=({getEl:l,zIndex:u=10,opacity:s=1,offset:o=1,enabled:h=!0,data:m={}})=>{const p=()=>typeof h=="function"?h():h,x=()=>{const k=l();if(k&&m.elScale){m.elScale=!1,k.style.scale="";const j=()=>{k.style.transitionDuration="",k.style.transitionTimingFunction="",k.removeEventListener("transitionend",j)};k.addEventListener("transitionend",j)}if(m.lightElWrap){const j=m.lightElWrap;j.style.opacity==="0"?j.remove():(j.addEventListener("transitionend",()=>{j.remove()}),j.style.opacity=0)}},_=k=>{if(m.lightEl){const{x:j,y:W}=k,se=j-m.rect.x,ge=W-m.rect.y;m.lightEl.style.transform=`translate3d(${se}px, ${ge}px, 0)`}},E=k=>{if(!p())return;const j=m,W=l();j.rect=W.getBoundingClientRect();const se=document.createElement("span");se.className="rounded-[inherit]",se.style=`left: ${o}px; top: ${o}px; right: ${o}px; bottom: ${o}px;transition-duration: 300ms; opacity: 0; position: absolute; overflow: hidden; pointer-events: none`;const ge=document.createElement("span"),{width:be,height:he}=j.rect,F=(be**2+he**2)**.5;ge.style.position="absolute",ge.style.zIndex=u,ge.style.width=`${F*2}px`,ge.style.left=`${-F}px`,ge.style.height=`${F*2}px`,ge.style.top=`${-F}px`,ge.style.borderRadius="50%";const le="var(--color-ios-hover-highlight)";if(ge.style.backgroundImage=`radial-gradient(circle at center, color-mix(in oklab, ${le} ${s*100}%, transparent), transparent 50%)`,ge.style.pointerEvents="none",j.lightEl=ge,j.lightElWrap=se,_(k),se.append(ge),W.append(se),k.pointerType!=="mouse"&&k.pointerType!=="mouse"){j.elScale=!0;let ue=1.25;(j.rect.width>60||j.rect.height>60)&&(ue=1.05),W.style.scale=ue,W.style.transitionDuration="300ms",W.style.transitionTimingFunction="ease-in-out"}tA(()=>{se.style.opacity=1})},w=k=>{p()&&_(k)},R=k=>{x()};return{removeHoverHighlight:x,attachEvents:()=>{const k=l();k&&(k.addEventListener("pointerenter",E),k.addEventListener("pointermove",w),k.addEventListener("pointerleave",R))},detachEvents:()=>{const k=l();k&&(k.removeEventListener("pointerenter",E),k.removeEventListener("pointermove",w),k.removeEventListener("pointerleave",R))}}};function w0(){return w0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},w0.apply(null,arguments)}const ym=l=>{const{component:u="div",className:s,highlight:o=!0,ios:h,material:m,children:p,ref:x,..._}=l,E=de.useRef(null),w=u,R={..._},V=Wi(),Q=na({ios:h,material:m}),k=Ta(),{iosHoverHighlight:j}=de.useContext(mc),W=de.useRef({}),{attachEvents:se,detachEvents:ge}=nA({getEl:()=>E.current,enabled:o&&V==="ios"&&j,data:W.current}),be=Q(eA({...l},k),s);return de.useEffect(()=>(se(),()=>ge())),me.createElement(w,w0({ref:he=>{x&&typeof x=="function"?x(he):x&&(x.current=he),E.current=he},className:be.base},R),p)};ym.displayName="Glass";function Ma(l){if(!l||typeof l!="object")return{};const u={};return Object.keys(l).forEach(s=>{l[s]!=null&&(u[s]=l[s])}),u}class rA{constructor(u,s,o){const h=this;if(!u)return;h.el=u;const{left:m,top:p,width:x,height:_}=u.getBoundingClientRect(),E={x:s-m,y:o-p};let w=Math.max((_**2+x**2)**.5,48);const R=u.classList.contains("k-touch-ripple-inset");R&&(w=Math.max(Math.min(x,_),48));const V=typeof window<"u"&&window.getComputedStyle(u,null).getPropertyValue("overflow")==="hidden";if(!R&&V){const k=((E.x-x/2)**2+(E.y-_/2)**2)**.5,j=(w/2+k)/(w/2);h.rippleTransform=`translate3d(0px, 0px, 0) scale(${j})`}else h.rippleTransform=`translate3d(${-E.x+x/2}px, ${-E.y+_/2}px, 0) scale(1)`;h.rippleWaveEl=document.createElement("span"),h.rippleWaveEl.classList.add("k-touch-ripple-wave"),h.rippleWaveEl.style=`
      width: ${w}px;
      height: ${w}px;
      margin-top:-${w/2}px;
      margin-left:-${w/2}px;
      left:${E.x}px;
      top:${E.y}px; --k-ripple-transform: ${h.rippleTransform}`,u.insertAdjacentElement("afterbegin",h.rippleWaveEl);const Q=()=>{h.rippleWaveEl.removeEventListener("animationend",Q),h.rippleWaveEl&&(h.rippleWaveEl.classList.contains("k-touch-ripple-wave-out")||(h.rippleWaveEl.classList.add("k-touch-ripple-wave-in"),h.shouldBeRemoved&&h.out()))};return h.rippleWaveEl.addEventListener("animationend",Q),h}destroy(){}out(){const u=this,{rippleWaveEl:s}=this;clearTimeout(u.removeTimeout),s.classList.add("k-touch-ripple-wave-out"),u.removeTimeout=setTimeout(()=>{u.destroy()},300);const o=()=>{u.rippleWaveEl.removeEventListener("animationend",o),clearTimeout(u.removeTimeout),u.destroy()};u.rippleWaveEl.addEventListener("animationend",o)}remove(){const u=this;u.shouldBeRemoved||(u.removeTimeout=setTimeout(()=>{u.destroy()},400),u.shouldBeRemoved=!0,u.rippleWaveEl.classList.contains("k-touch-ripple-wave-in")&&u.out())}}const w1=(l,u,s)=>{const o=de.useContext(mc);s||(s=l);const h=de.useRef(null),m=()=>{h.current&&h.current.remove(),h.current=null},p=Q=>{h.current=new rA(l.current,Q.pageX,Q.pageY)},x=()=>{m()},_=()=>{m()},E=()=>{if(!o.materialTouchRipple)return;const Q=s.current;Q.addEventListener("pointerdown",p),Q.addEventListener("pointermove",x),Q.addEventListener("pointerup",_),Q.addEventListener("pointercancel",_),Q.addEventListener("contextmenu",_)},w=()=>{const Q=s.current;Q.removeEventListener("pointerdown",p),Q.removeEventListener("pointermove",x),Q.removeEventListener("pointerup",_),Q.removeEventListener("pointercancel",_),Q.removeEventListener("contextmenu",_)},R=()=>{!s||!s.current||!u||E()},V=()=>{!s||!s.current||!u||w()};de.useEffect(()=>(R(),()=>V()))},aA=(l,u)=>({base:{common:`k-badge ${u.text} ${u.bg} inline-flex items-center justify-center rounded-full leading-none`,ios:"font-semibold",material:"font-medium",sm:"text-2xs min-w-4 min-h-4 px-0.5",md:"text-xs min-w-5 min-h-5 px-1.5 py-0.5"}}),iA=(l={})=>({bg:"bg-primary",text:"text-white",...Ma(l)});function T0(){return T0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},T0.apply(null,arguments)}const T1=l=>{const{component:u="span",className:s,colors:o,small:h,ios:m,material:p,children:x,ref:_,...E}=l,w=de.useRef(null),R=u,V={...E},Q=na({ios:m,material:p}),k=iA(o),j=h?"sm":"md",W=Q(aA(l,k),s);return me.createElement(R,T0({ref:se=>{w.current=se,_&&typeof _=="function"?_(se):_&&(_.current=se)},className:W.base[j]},V),x)};T1.displayName="Badge";const lA=(l,u,s)=>{const o={};return Object.keys(u).forEach(h=>{o[h]=typeof u[h]>"u"?l==="ios"?s[`${h}Ios`]:s[`${h}Material`]:u[h]}),o};function M0(){return M0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},M0.apply(null,arguments)}const uA=l=>me.createElement("svg",M0({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"14",viewBox:"0 0 12 20",fill:"currentcolor"},l),me.createElement("path",{d:"M11.518406,10.5648622 C11.4831857,10.6163453 11.4426714,10.6653692 11.3968592,10.7111814 L2.5584348,19.5496058 C1.9753444,20.1326962 1.03186648,20.1345946 0.44199608,19.5447242 C-0.14379032,18.9589377 -0.14922592,18.0146258 0.43711448,17.4282854 L7.87507783,9.9903221 L0.4431923,2.5584366 C-0.1398981,1.9753462 -0.1417965,1.0318683 0.448074,0.4419979 C1.0338604,-0.1437886 1.9781723,-0.1492241 2.56451268,0.4371163 L11.4029371,9.2755407 C11.7556117,9.6282153 11.7969345,10.1725307 11.518406,10.5648622 Z"})),sA=(l,u)=>({base:{common:"k-chip text-sm inline-flex items-center justify-center align-middle rounded-full px-3",ios:"rounded-full h-7",material:"rounded-lg h-8 font-medium",fill:{ios:Y(u.fillBg||u.fillBgIos,u.fillText||u.fillTextIos),material:Y(u.fillBg||u.fillBgMaterial,u.fillText||u.fillTextMaterial)},outline:{common:"border",ios:Y(u.outlineText||u.outlineTextIos,u.outlineBorder||u.outlineBorderIos),material:Y(u.outlineText||u.outlineTextMaterial,u.outlineBorder||u.outlineBorderMaterial)}},media:{common:"-my-1 me-1 select-none",ios:"-ms-3",material:"-ms-2"},deleteButton:"-me-2 -my-1 ms-1 h-full flex items-center justify-center w-6 cursor-pointer opacity-50 active:opacity-100 select-none"}),oA=(l={},u)=>({fillTextIos:"text-current",fillTextMaterial:Y("text-md-light-on-secondary-container",u("dark:text-md-dark-on-secondary-container")),fillBgIos:Y("bg-black/10",u("dark:bg-white/10")),fillBgMaterial:Y("bg-md-light-secondary-container",u("dark:bg-md-dark-secondary-container")),outlineTextIos:Y("text-current"),outlineTextMaterial:Y("text-md-light-on-surface",u("dark:text-md-dark-on-surface")),outlineBorderIos:Y("border-black/20",u("dark:border-white/20")),outlineBorderMaterial:Y("border-md-light-outline",u("dark:border-md-dark-outline")),...Ma(l)});function Am(){return Am=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},Am.apply(null,arguments)}const cA=({theme:l,...u})=>l==="ios"?me.createElement("svg",Am({xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentcolor"},u),me.createElement("path",{d:"M14,0 C21.7319865,0 28,6.2680135 28,14 C28,21.7319865 21.7319865,28 14,28 C6.2680135,28 0,21.7319865 0,14 C0,6.2680135 6.2680135,0 14,0 Z M18.9393398,6.93933983 L14,11.8786797 L9.06066017,6.93933983 L6.93933983,9.06066017 L11.8786797,14 L6.93933983,18.9393398 L9.06066017,21.0606602 L14,16.1213203 L18.9393398,21.0606602 L21.0606602,18.9393398 L16.1213203,14 L21.0606602,9.06066017 L18.9393398,6.93933983 Z"})):me.createElement("svg",Am({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),me.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 10.59L15.59 7L17 8.41L13.41 12L17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59Z",fill:"currentcolor"}));function C0(){return C0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},C0.apply(null,arguments)}const Od=l=>{const{component:u="div",className:s,colors:o,media:h,deleteButton:m,onDelete:p,ios:x,material:_,outline:E,children:w,ref:R,...V}=l,Q=de.useRef(null),k=u,j={...V},W=na({ios:x,material:_}),se=Wi({ios:x,material:_}),ge=Ta(),be=E?"outline":"fill",he=oA(o,ge),F=W(sA(l,he),s);return me.createElement(k,C0({ref:le=>{Q.current=le,R&&typeof R=="function"?R(le):R&&(R.current=le)},className:F.base[be]},j),h&&me.createElement("div",{className:F.media},h),w,m&&me.createElement("div",{className:F.deleteButton,role:"button",tabIndex:"0",onClick:p},me.createElement(cA,{theme:se,className:"h-4 w-4"})))};Od.displayName="Chip";const fA=(l,{textColor:u,needsTouchRipple:s})=>{const{iconOnly:o,tabbar:h,tabbarLabels:m,tabbarIcons:p}=l;return{base:{common:Y("k-link",!h&&u,"inline-flex gap-1 justify-center items-center cursor-pointer select-none",s&&"touch-ripple-primary relative z-10"),ios:Y(!h&&"active:opacity-50 duration-300"),material:!h&&Y(s?"":"active:opacity-55")},tabbar:{common:Y("w-full h-full duration-300 transition-colors relative"),ios:Y("px-4 truncate",!p&&m&&"md:px-8",p&&m&&"md:min-w-24",p&&!m&&"md:min-w-12"),material:"font-medium text-sm z-10",active:"k-tabbar-link-active",inactive:""},toolbar:{common:Y("h-full",o&&"k-touch-ripple-inset"),ios:Y(!o&&"px-4 truncate",o&&"aspect-square"),material:"px-3 text-sm font-medium max-h-12"},navbar:{common:Y("h-full max-h-12",o&&"k-touch-ripple-inset"),ios:Y(!o&&"px-4",o&&"aspect-square"),material:"px-3"}}},dA=(l={},u)=>({textIos:"text-primary",textMaterial:Y("text-md-light-primary",u("dark:text-md-dark-primary")),navbarTextIos:"",navbarTextMaterial:"",toolbarTextIos:"",toolbarTextMaterial:Y("text-md-light-primary",u("dark:text-md-dark-primary")),...Ma(l)}),M1=de.createContext({tabbarLabels:!0,tabbarIcons:!0,tabbar:!1,toolbar:!1}),hA=()=>de.useContext(M1),C1=de.createContext({navbar:!1}),vA=()=>de.useContext(C1);function R0(){return R0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},R0.apply(null,arguments)}const R1=l=>{const{component:u="a",className:s,colors:o,iconOnly:h,linkProps:m={},tabbarActive:p,ios:x,material:_,onClick:E,children:w,ref:R,...V}=l,{navbar:Q}=vA(),{toolbar:k,tabbar:j,tabbarLabels:W,tabbarIcons:se}=hA(),ge=de.useRef(null),be=u,he={...m,...V},F=Wi({ios:x,material:_}),le=na({ios:x,material:_}),ue=Ta(),ce=F==="material"&&(k||j||Q);w1(ge,ce);const we=dA(o,ue),He=Q?F==="material"?we.navbarTextMaterial:we.navbarTextIos:k?F==="material"?we.toolbarTextMaterial:we.toolbarTextIos:F==="material"?we.textMaterial:we.textIos,Se=j&&!p?we.tabbarInactive:He,Ue=p?"active":"inactive",Ke=le(fA({...l,tabbarLabels:W,tabbarIcons:se,tabbar:j},{textColor:Se,needsTouchRipple:ce})),Ae=Y(Ke.base,k&&Ke.toolbar,Q&&Ke.navbar,j&&Ke.tabbar[Ue],s);return me.createElement(be,R0({ref:ie=>{ge.current=ie,R&&typeof R=="function"?R(ie):R&&(R.current=ie)},className:Ae},he,{role:"link",tabIndex:"0",onClick:E}),w)};R1.displayName="Link";const mA=(l,u)=>{const{nested:s,inset:o,strong:h,outline:m}=l;return{base:{common:Y("k-list",!s&&"my-8",!o&&!s&&m&&"hairline-t hairline-b",o&&m&&"border","z-10 relative"),ios:Y(h&&u.strongBgIos,o&&m&&u.outlineIos),material:Y(h&&u.strongBgMaterial,o&&m&&u.outlineMaterial)},ul:{common:Y(o&&"no-safe-areas","last-child-hairline-b-none")},inset:{common:"ml-safe-4 mr-safe-4 overflow-hidden",ios:"rounded-3xl",material:"rounded-2xl"},menuList:{common:"py-1"}}},gA=(l={},u)=>({outlineIos:Y("border-black/20",u("dark:border-white/15")),outlineMaterial:Y("border-md-light-outline",u("border-md-dark-outline")),strongBgIos:Y("bg-ios-light-surface-1",u("dark:bg-ios-dark-surface-1")),strongBgMaterial:Y("bg-md-light-surface-1",u("dark:bg-md-dark-surface-1")),...Ma(l)}),N1=me.createContext({dividers:!1,nested:!1});function N0(){return N0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},N0.apply(null,arguments)}const rp=l=>{const{component:u="div",className:s,colors:o,nested:h,menuList:m,dividers:p,dividersIos:x=!0,dividersMaterial:_=!1,inset:E,insetIos:w,insetMaterial:R,strong:V,strongIos:Q,strongMaterial:k,outline:j,outlineIos:W,outlineMaterial:se,ios:ge,material:be,children:he,ref:F,...le}=l,ue=de.useRef(null),ce=u,we={...le},He=Wi(),Se=na({ios:ge,material:be}),Ue=Ta(),{strong:Ke,outline:Ae,inset:ie,dividers:C}=lA(He,{strong:V,outline:j,inset:E,dividers:p},{strongIos:Q,strongMaterial:k,outlineIos:W,outlineMaterial:se,insetIos:w,insetMaterial:R,dividersIos:x,dividersMaterial:_,...l}),X=gA(o,Ue),B=Se(mA({...l,inset:ie,strong:Ke,outline:Ae},X)),pe=Y(B.base,ie&&B.inset,m&&B.menuList,s);return me.createElement(N1.Provider,{value:{nested:h,dividers:C}},me.createElement(ce,N0({ref:O=>{ue.current=O,F&&typeof F=="function"?F(O):F&&(F.current=O)},className:pe},we),me.createElement("ul",{className:B.ul},he)))};rp.displayName="List";const pA=()=>de.useContext(N1),bA=(l,u,{isMediaItem:s,theme:o,textColor:h,needsTouchRipple:m,isMenuListItemActive:p,autoStrongTitle:x,nested:_},E)=>{const{menuListItem:w,dividers:R,mediaClassName:V="",mediaClass:Q="",innerClassName:k="",innerClass:j="",contentClassName:W="",contentClass:se="",titleWrapClassName:ge="",titleWrapClass:be="",titleFontSizeIos:he,titleFontSizeMaterial:F,strongTitle:le,contacts:ue}=l;return{base:{common:Y("k-list-item",w?`${h} py-1`:"",E),material:ue&&"[&:nth-child(2)]:-mt-12"},itemContent:{common:Y(`flex items-center ${W||se}`),ios:Y(!w&&Y(u.primaryTextIos,_?"ps-4":"ps-safe-4"),w&&"rounded-2xl ml-safe-2 mr-safe-2 ps-2"),material:Y(!w&&Y(u.primaryTextMaterial,s?"ml-safe-2 mr-safe-2 rounded-2xl ps-2":"ps-safe-4",ue&&"ml-10"),w&&"rounded-full min-h-[3.5rem] ml-safe-4 mr-safe-4 ps-4"),link:Y("duration-300 active:duration-0 cursor-pointer select-none",R&&o==="ios"&&"active:hairline-transparent",m&&Y("relative overflow-hidden z-10",u.touchRipple),Y(p?o==="ios"?u.menuListItemActiveBgIos:u.menuListItemActiveBgMaterial:w?o==="ios"?u.menuListItemBgIos:u.menuListItemBgMaterial:o==="ios"?u.activeBgIos:u.activeBgMaterial))},media:{common:`shrink-0 flex ${V||Q}`,ios:"py-2 me-4",material:Y("py-3",w?"me-3":"me-4")},inner:{common:Y("w-full relative",!w&&R&&"hairline-b",k||j),ios:Y("py-3 pe-safe-4"),material:Y("py-3",s&&!w?"pe-2":"pe-safe-4")},titleWrap:{common:Y(`flex justify-between items-center ${ge||be}`),ios:Y(!w&&he,!w&&"min-h-7"),material:Y(!w&&F)},title:{common:"shrink",menuListItem:Y("text-sm",le===!0||x?"font-semibold":"font-medium"),strong:{common:"",ios:"font-semibold",material:"font-medium"}},after:{common:Y("shrink-0 ms-auto ps-1 flex items-center gap-1"),ios:u.secondaryTextIos,material:Y(u.secondaryTextMaterial,"text-sm")},chevron:"opacity-20 shrink-0 ms-3 rtl:rotate-180",subtitle:"text-sm",text:{common:Y("text-sm line-clamp-2"),ios:u.secondaryTextIos,material:u.secondaryTextMaterial},header:{common:"text-xs mb-0.5",ios:u.secondaryTextIos,material:u.secondaryTextMaterial},footer:{common:Y("text-xs mt-0.5"),ios:u.secondaryTextIos,material:u.secondaryTextMaterial},groupTitle:{common:Y("pl-safe-4 pr-safe-4 py-1 flex items-center z-20"),ios:`h-8${R?" hairline-t":""} -mt-px ${he} ${u.secondaryTextIos} ${u.groupTitleBgIos} ${ue&&Y("font-semibold top-safe-15 sticky",u.groupTitleContactsTextIos,u.groupTitleContactsBgIos)}`,material:`h-12 ${F} ${u.secondaryTextMaterial} ${u.groupTitleBgMaterial} ${ue&&Y("pointer-events-none overflow-visible h-12 box-border text-xl font-medium flex max-w-full items-center px-4 top-safe-16 sticky",u.groupTitleContactsTextMaterial,u.groupTitleContactsBgMaterial)}`}}},yA=(l={},u)=>({primaryTextIos:Y("text-black",u("dark:text-white")),primaryTextMaterial:Y("text-md-light-on-surface",u("dark:text-md-dark-on-surface")),secondaryTextIos:Y("text-black/55",u("dark:text-white/55")),secondaryTextMaterial:Y("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant")),activeBgIos:Y("active:not-[:has(.k-toggle:active)]:bg-black/10",u("dark:active:not-[:has(.k-toggle:active)]:bg-white/10")),activeBgMaterial:"",groupTitleBgIos:Y("bg-ios-light-surface-variant",u("dark:bg-ios-dark-surface-variant")),groupTitleBgMaterial:Y("bg-md-light-surface-2",u("dark:bg-md-dark-surface-2")),menuListItemTextIos:Y("text-black",u("dark:text-white")),menuListItemTextMaterial:Y("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant")),menuListItemBgIos:Y("active:bg-black/10",u("dark:active:bg-white/10")),menuListItemBgMaterial:Y("bg-md-light-surface-1",u("dark:bg-md-dark-surface-1")),menuListItemActiveTextIos:Y("text-primary",u("dark:text-white")),menuListItemActiveTextMaterial:Y("text-md-light-on-secondary-container",u("dark:text-md-dark-on-secondary-container")),menuListItemActiveBgIos:Y("bg-primary/15",u("dark:bg-primary")),menuListItemActiveBgMaterial:Y("bg-md-light-secondary-container",u("dark:bg-md-dark-secondary-container")),touchRipple:Y("touch-ripple-black",u("dark:touch-ripple-white")),groupTitleContactsTextIos:Y("text-black/90",u("dark:text-white/90")),groupTitleContactsTextMaterial:Y("text-md-light-primary",u("dark:text-md-dark-primary")),groupTitleContactsBgIos:Y(u("dark:bg-[#323234]")),groupTitleContactsBgMaterial:Y("bg-transparent",u("dark:bg-transparent")),...Ma(l)});function _m(){return _m=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},_m.apply(null,arguments)}const xd=l=>{const{component:u="li",colors:s,className:o,mediaClassName:h="",innerClassName:m="",innerChildren:p,contentClassName:x="",contentChildren:_,titleWrapClassName:E="",titleFontSizeIos:w="text-[17px]",titleFontSizeMaterial:R="text-[16px]",title:V,subtitle:Q,text:k,after:j,media:W,header:se,footer:ge,menuListItem:be,menuListItemActive:he,groupTitle:F,strongTitle:le="auto",label:ue,chevron:ce=void 0,chevronIos:we=!0,chevronMaterial:He=!0,chevronIcon:Se,href:Ue,target:Ke,link:Ae,linkComponent:ie="a",linkProps:C={},dividers:X,contacts:B,ios:pe,material:O,children:K,ref:oe,...ee}=l,ve=de.useRef(null),Ce=de.useRef(null),Oe=u,Ve={...ee},Qe=pA(),pt=typeof X>"u"?Qe?.dividers:X,vt=Wi({ios:pe,material:O}),Dt=na({ios:pe,material:O}),Kt=Ta(),Sn=typeof ce>"u"?vt==="ios"?we:He:ce,Gt=yA(s,Kt),_r=be&&he,nu=Gt[`${_r?"menuListItemActiveText":be?"menuListItemText":"text"}${vt==="ios"?"Ios":"Material"}`],Mt=!!Ue||Ue===""||be||Ae,vn=!!ue,un=vt==="material"&&(vn||Mt);w1(ve,un);const Ur=Ue===!0||Ue===!1||typeof Ue>"u"?void 0:Ue||"",Zt=Mt?ie:vn?"label":"div",Nn=Mt?{href:Ur,target:Ke,...C}:{},Ra=V&&(Q||k),ws=le==="auto"&&Ra,qt=Dt(bA({...l,titleFontSizeIos:w,titleFontSizeMaterial:R,dividers:pt,strongTitle:le,mediaClassName:h,innerClassName:m,contentClassName:x,titleWrapClassName:E},Gt,{isMediaItem:Ra,theme:vt,textColor:nu,needsTouchRipple:un,isMenuListItemActive:_r,autoStrongTitle:ws,nested:Qe?.nested}),o),mi=Mt||vn?qt.itemContent.link:qt.itemContent.default,Ft=be?qt.title.menuListItem:le===!0||ws?qt.title.strong:qt.title.default;return F?me.createElement(Oe,{className:Y(qt.groupTitle,o)},V,K):me.createElement(Oe,_m({ref:mn=>{Ce.current=mn,oe&&typeof oe=="function"?oe(mn):oe&&(oe.current=mn)},className:qt.base},Ve),me.createElement(Zt,_m({ref:ve,className:mi},Nn),W&&me.createElement("div",{className:qt.media},W),me.createElement("div",{className:qt.inner},se&&me.createElement("div",{className:qt.header},se),(V||j)&&me.createElement("div",{className:qt.titleWrap},V&&me.createElement("div",{className:Ft},V),j&&me.createElement("div",{className:qt.after},j),Mt&&Sn&&!be&&(Se||me.createElement(uA,{className:qt.chevron}))),Q&&me.createElement("div",{className:qt.subtitle},Q),k&&me.createElement("div",{className:qt.text},k),ge&&me.createElement("div",{className:qt.footer},ge),p),_),K)};xd.displayName="ListItem";const AA=(l,u,s)=>{const{type:o}=l;return{message:{common:Y("k-message max-w-[70%] box-border flex relative z-1 transform translate-z-0 mb-2 first:mt-2",s)},messageSent:{common:Y("self-end",u.messageSent)},messageReceived:{common:u.messageReceived},messageName:{common:"text-xs",ios:Y("mb-0.5 ms-4",u.messageNameIos),material:Y("ms-4 mb-0.5",u.messageNameMd)},messageHeader:{common:"text-xs",ios:Y("mb-0.5 ms-4",u.messageNameIos),material:Y("ms-4 mb-0.5",u.messageNameMd)},messageFooter:{common:"text-xs",ios:Y("mb-0.5 ms-4",u.messageNameIos),material:Y("ms-4 mb-0.5",u.messageNameMd)},messageAvatar:{common:Y("rounded-full relative bg-cover self-end shrink-0 me-1.5 w-8 h-8")},messageContent:{common:"flex flex-col"},messageBubble:{...o==="sent"&&{ios:Y("rounded-3xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",u.bubbleSentIos),material:Y("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4",u.bubbleSentMd)},...o==="received"&&{ios:Y("rounded-2xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",u.bubbleReceivedIos),material:Y("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4 ",u.bubbleReceivedMd)}},messageTextHeader:{common:"w-full text-left leading-tight text-sm opacity-80"},messageTextFooter:{common:"w-full text-left leading-tight text-sm opacity-80"},messageText:{common:"w-full text-left leading-tight"}}},_A=(l={},u)=>({messageSent:"text-white",messageReceived:"text-inherit",messageNameIos:Y("text-black/45",u("dark:text-white/45")),messageNameMd:Y("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant")),bubbleSentIos:Y("bg-primary"),bubbleSentMd:Y("bg-md-light-primary",u("dark:bg-md-dark-primary dark:text-md-dark-on-primary")),bubbleReceivedIos:Y("bg-[#e5e5ea]",u("dark:bg-[#252525]")),bubbleReceivedMd:Y(u("dark:bg-md-dark-surface-variant"),"bg-[#e5e5ea]"),...Ma(l)});function D0(){return D0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},D0.apply(null,arguments)}const D1=l=>{const{component:u="div",className:s,colors:o,ref:h,id:m,text:p,name:x,type:_="sent",header:E,footer:w,textHeader:R,textFooter:V,avatar:Q,ios:k,material:j,children:W,...se}=l,ge=de.useRef(null),be=na({ios:k,material:j}),he=Ta(),F=_A(o,he),le=be(AA({...l},F,s)),ue=u,ce={...se},we=Y(le.message,{[le.messageSent]:_==="sent",[le.messageReceived]:_==="received"});return me.createElement(ue,D0({id:m,ref:ge,className:we},ce),Q&&me.createElement("div",{className:le.messageAvatar},Q),me.createElement("div",{className:le.messageContent},x&&me.createElement("div",{className:le.messageName},x),E&&me.createElement("div",{className:le.messageHeader},E),me.createElement("div",{className:le.messageBubble},R&&me.createElement("div",{className:le.messageTextHeader},R),p&&me.createElement("div",{className:le.messageText},p),V&&me.createElement("div",{className:le.messageTextFooter},V)),w&&me.createElement("div",{className:le.messageFooter},w)))};D1.displayName="Message";const xA=(l,u,s)=>{const{bgClassName:o="",bgClass:h="",outline:m,innerClassName:p="",innerClass:x="",tabbar:_,tabbarIcons:E,tabbarLabels:w,top:R}=l;return{base:{common:Y("k-toolbar w-full z-20 relative",s),ios:Y(!R&&"pb-safe-4","px-safe-4 flex justify-center"),material:Y(!R&&"pb-safe")},bgBlur:{ios:!R&&Y(Y(E&&w?"h-[calc(var(--k-safe-area-bottom)_+16px_+_64px_+_16px)]":"h-[calc(var(--k-safe-area-bottom)_+16px_+_48px_+_16px)]"),"backdrop-blur-[2px] absolute left-0 bottom-0 w-full mask-t-from-50% mask-t-to-100% pointer-events-none")},bg:{common:Y(o||h),ios:!R&&Y(u.bgIos,"bottom-0 absolute w-full left-0 pointer-events-none",E&&w?"h-[calc(var(--k-safe-area-bottom)_+16px_+_64px_+_16px)]":"h-[calc(var(--k-safe-area-bottom)_+16px_+_48px_+_16px)]"),material:Y(u.bgMaterial,"h-full top-0 absolute w-full left-0",m&&(R?"hairline-b":"hairline-t"))},inner:{common:Y("flex relative justify-between",p||x),ios:Y("gap-4 items-stretch",E&&w?"h-16":"h-12",_?"w-full md:w-auto":"w-auto"),material:Y("w-full overflow-hidden items-center",_?"":"pl-safe-2 pr-safe-2",E?"h-20":"h-14")},highlight:{common:Y(R?"bottom-0":"top-0","absolute left-0 w-full h-0.5 duration-200 pointer-events-none transition-transform"),ios:u.tabbarHighlightBgIos,material:u.tabbarHighlightBgMaterial}}},SA=(l={},u)=>({bgIos:Y("bg-gradient-to-t from-ios-light-surface to-transparent",u("dark:from-ios-dark-surface/50")),bgMaterial:Y("bg-md-light-surface-2",u("dark:bg-md-dark-surface-2")),tabbarHighlightBgIos:"",tabbarHighlightBgMaterial:Y("bg-md-light-primary",u("dark:bg-md-dark-primary")),...Ma(l)});function z0(){return z0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},z0.apply(null,arguments)}const ap=l=>{const{component:u="div",className:s,colors:o,bgClassName:h="",innerClassName:m="",outline:p,tabbar:x,tabbarIcons:_,tabbarLabels:E,top:w,ios:R,material:V,children:Q,ref:k,...j}=l,W=de.useRef(null),se=de.useRef(null),ge=u,[be,he]=de.useState({transform:"",width:""}),F=Wi({ios:R,material:V}),le=na({ios:R,material:V}),ue=Ta(),ce={...j},we=SA(o,ue),Se=le(xA({...l,outline:typeof p>"u"?F==="ios":p,bgClassName:h,innerClassName:m},we),s),Ue=F==="material"&&x&&!_;return de.useEffect(()=>{if(Ue&&W.current){const Ke=W.current.previousElementSibling,Ae=1/Ke.children.length*100,ie=[...Ke.children].indexOf(Ke.querySelector(".k-tabbar-link-active"));he({...be,width:`${Ae}%`,transform:`translateX(${ie*100}%)`})}},[Q]),me.createElement(ge,z0({ref:Ke=>{se.current=Ke,k&&typeof k=="function"?k(Ke):k&&(k.current=Ke)},className:Se.base},ce),me.createElement(M1.Provider,{value:{toolbar:!0,tabbarLabels:E,tabbarIcons:_,tabbar:x}},F==="ios"&&!w&&me.createElement("div",{className:Se.bgBlur}),(F==="material"||!w)&&me.createElement("div",{className:Se.bg}),me.createElement("div",{className:Se.inner},Q),Ue&&me.createElement("span",{className:Se.highlight,style:be,ref:W})))};ap.displayName="Toolbar";const EA=(l,u,s)=>{const{outline:o,large:h,medium:m,transparent:p,left:x,right:_,subnavbar:E,fontSizeIos:w,fontSizeMaterial:R,titleFontSizeIos:V,titleFontSizeMaterial:Q,titleLargeFontSizeIos:k,titleLargeFontSizeMaterial:j,titleMediumFontSizeIos:W,titleMediumFontSizeMaterial:se,bgClassName:ge="",bgClass:be="",subnavbarClassName:he="",subnavbarClass:F="",innerClassName:le="",innerClass:ue="",leftClassName:ce="",leftClass:we="",titleClassName:He="",titleClass:Se="",subtitleClassName:Ue="",subtitleClass:Ke="",rightClassName:Ae="",rightClass:ie="",centerTitle:C}=l;return{base:{common:Y("k-navbar w-full z-20 top-0 sticky",(h||m)&&"pointer-events-none",s),ios:Y("pt-[max(16px,var(--k-safe-area-top))]",w,u.textIos),material:Y("pt-safe",R,u.textMaterial)},bgBlur:{ios:Y("backdrop-blur-[2px] absolute left-0 top-0 w-full  mask-b-to-100% pointer-events-none mask-b-from-50%",E?"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+70px_+_16px)]":"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+_16px)]")},bg:{common:Y("absolute w-full left-0 top-0",ge||be),ios:Y(u.bgIos,"pointer-events-none",E?"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+70px_+_16px)]":"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+_16px)]"),material:Y("h-full",u.bgMaterial,o&&"hairline-b")},subnavbar:{common:Y("relative flex items-center",he||F,(h||m)&&"pointer-events-auto"),ios:"h-14 pl-safe-4 pr-safe-4",material:"h-14 pl-safe-4 pr-safe-4"},inner:{common:Y("flex relative items-center w-full",le||ue,(h||m)&&"pointer-events-auto z-10"),ios:Y("pl-safe-4 pr-safe-4 h-11",!x&&_?"justify-end":"justify-between"),material:"justify-start h-16 pl-safe pr-safe overflow-hidden"},titleContainer:{common:Y("flex items-center px-safe-4 relative",(h||m)&&"pointer-events-auto"),ios:Y(m&&Y(W,"h-11 font-semibold"),h&&Y(k,"h-13 font-bold")),material:Y(m&&Y(se,"h-12 pb-4"),h&&Y(j,"h-[5.5rem]"))},left:{common:Y("flex justify-center items-center h-full",ce||we),ios:"me-2 transform transform-gpu rounded-full",material:"mx-1"},title:{common:Y("whitespace-nowrap leading-tight",He||Se,(h||m||p)&&"opacity-0",C?"absolute top-1/2 left-1/2 transform-gpu -translate-x-1/2 -translate-y-1/2 text-center":"text-start"),ios:Y(`${V} font-semibold`,!C&&"first:mx-2"),material:Y(`${Q} font-normal`,!C&&"first:mx-4")},subtitle:{common:Y("leading-none",Ue||Ke),ios:"text-sm opacity-75 font-medium",material:"text-sm opacity-85 font-normal"},right:{common:Y("flex justify-center items-center h-full",Ae||ie),ios:Y("transform transform-gpu rounded-full",C?"ms-2":"ms-auto"),material:"ms-auto me-1"}}},OA=(l,u)=>({bgIos:Y("bg-gradient-to-b from-ios-light-surface to-transparent",u("dark:from-ios-dark-surface/50")),bgMaterial:Y("bg-md-light-surface-2",u("dark:bg-md-dark-surface-2")),textIos:Y("text-black",u("dark:text-white")),textMaterial:Y("text-md-light-on-surface",u("dark:text-md-dark-on-surface")),...Ma(l)});function B0(){return B0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},B0.apply(null,arguments)}const xm=l=>{const{component:u="div",className:s,bgClassName:o="",innerClassName:h="",leftClassName:m="",titleClassName:p="",subtitleClassName:x="",rightClassName:_="",subnavbarClassName:E="",centerTitle:w,colors:R,outline:V,medium:Q,large:k,transparent:j,fontSizeIos:W="text-[17px]",fontSizeMaterial:se="text-[16px]",titleFontSizeIos:ge="text-[17px]",titleFontSizeMaterial:be="text-[22px]",titleMediumFontSizeIos:he="text-[24px]",titleMediumFontSizeMaterial:F="text-[24px]",titleLargeFontSizeIos:le="text-[34px]",titleLargeFontSizeMaterial:ue="text-[28px]",scrollEl:ce,left:we,title:He,subtitle:Se,right:Ue,subnavbar:Ke,ios:Ae,material:ie,children:C,ref:X,...B}=l,pe=de.useRef(null),O=de.useRef(0),K=de.useRef(null),oe=de.useRef(null),ee=de.useRef(null),ve=de.useRef(null),Ce=de.useRef(null),Oe=de.useRef(null),Ve=u,Qe=Wi({ios:Ae,material:ie}),pt=na({ios:Ae,material:ie}),vt=Ta(),Dt={...B},Kt=OA(R,vt),Sn=j,Gt=un=>{const{scrollTop:Ur}=un.target;if(!Sn&&!k&&!Q){Oe.current&&(ve.current&&(ve.current.style.opacity=""),K.current&&(K.current.style.opacity=""));return}const Zt=O.current,Nn=Math.max(Math.min(Ur/Zt,1),0);Qe==="material"&&(K.current.style.opacity=Sn?-.5+Nn*1.5:"",(Q||k)&&(K.current.style.transform=`translateY(-${Nn*Zt}px)`)),ee.current&&(ee.current.style.transform=`translateY(-${Nn*Zt}px)`,ee.current.style.opacity=1-Nn*2),ve.current&&(ve.current.style.opacity=-.5+Nn*1.5),(Q||k)&&Ce.current&&(Ce.current.style.transform=`translateY(-${Nn*Zt}px)`)},_r=()=>typeof ce>"u"?pe.current&&pe.current.parentNode:ce.current||ce,nu=()=>{if(!k&&!Q&&!Sn){Oe.current&&(Gt({target:{scrollTop:0}}),Oe.current=!1);return}Oe.current=!0,ee.current?O.current=ee.current.offsetHeight:O.current=oe.current.offsetHeight;const un=_r();un?(un.addEventListener("scroll",Gt),Gt({target:un})):Gt({target:{scrollTop:0}})},Mt=()=>{const un=_r();un&&un.removeEventListener("scroll",Gt)};de.useEffect(()=>(nu(),Mt));const vn=pt(EA({...l,centerTitle:typeof w>"u"?Qe==="ios":w,outline:V,fontSizeIos:W,fontSizeMaterial:se,titleFontSizeIos:ge,titleFontSizeMaterial:be,titleMediumFontSizeIos:he,titleMediumFontSizeMaterial:F,titleLargeFontSizeIos:le,titleLargeFontSizeMaterial:ue,bgClassName:o,innerClassName:h,leftClassName:m,titleClassName:p,subtitleClassName:x,rightClassName:_,subnavbarClassName:E},Kt),s);return me.createElement(Ve,B0({ref:un=>{pe.current=un,X&&typeof X=="function"?X(un):X&&(X.current=un)},className:vn.base},Dt),me.createElement(C1.Provider,{value:{navbar:!0}},Qe==="ios"&&me.createElement("div",{className:vn.bgBlur}),me.createElement("div",{className:vn.bg,ref:K}),me.createElement("div",{className:vn.inner,ref:oe},we&&me.createElement(ym,{className:vn.left},we),(He||Se)&&me.createElement("div",{className:vn.title,ref:ve},He,Se&&me.createElement("div",{className:vn.subtitle},Se)),Ue&&me.createElement(ym,{className:vn.right},Ue),C),(k||Q)&&me.createElement("div",{className:vn.titleContainer,ref:ee},He),Ke&&me.createElement("div",{className:vn.subnavbar,ref:Ce},Ke)))};xm.displayName="Navbar";const wA=(l,u,s)=>({base:{common:Y("k-page h-full w-full left-0 top-0 overflow-auto absolute",s),ios:u.bgIos,material:u.bgMaterial}}),TA=(l={},u)=>({bgIos:Y("bg-ios-light-surface",u("dark:bg-ios-dark-surface")),bgMaterial:Y("bg-md-light-surface",u("dark:bg-md-dark-surface")),...Ma(l)});function L0(){return L0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},L0.apply(null,arguments)}const Sm=l=>{const{component:u="div",className:s,colors:o,ios:h,material:m,children:p,ref:x,..._}=l,E=de.useRef(null),w=u,R={..._},V=na({ios:h,material:m}),Q=Ta(),k=TA(o,Q),j=V(wA(l,k,s));return me.createElement(w,L0({ref:W=>{E.current=W,x&&typeof x=="function"?x(W):x&&(x.current=W)},className:j.base},R),p)};Sm.displayName="Page";const MA=({popoverEl:l,targetEl:u,angleEl:s,needsAngle:o,targetX:h,targetY:m,targetWidth:p=0,targetHeight:x=0,theme:_})=>{u.current?u=u.current:u.value?u=u.value:u.el?u=u.el:u.$el&&(u=u.$el),typeof u=="string"&&(u=document.querySelector(u));let E=document.body.offsetWidth,w=document.body.offsetHeight;E===0&&(E=window.innerWidth),w===0&&(w=window.innerHeight);const[R,V]=[l.offsetWidth,l.offsetHeight];let Q=0,k,j,W="";o&&(Q=s.offsetWidth/2);let se,ge;const be=window.getComputedStyle(u);let he=parseInt(be.getPropertyValue("--k-safe-area-top"),10)||0,F=parseInt(be.getPropertyValue("--k-safe-area-left"),10)||0,le=parseInt(be.getPropertyValue("--k-safe-area-right"),10)||0;if(Number.isNaN(he)&&(he=0),Number.isNaN(F)&&(F=0),Number.isNaN(le)&&(le=0),u){p=u.offsetWidth,x=u.offsetHeight;const Ae=u.getBoundingClientRect();se=Ae.left,ge=Ae.top}else typeof h<"u"&&m!=="undefined"&&(se=h,ge=m);let[ue,ce,we]=[0,0,0];const He=_==="ios"?13:23;let Se="top";V+Q<ge-he?ce=ge-V-Q:V+Q<w-ge-x?(Se="bottom",ce=ge+x+Q):(Se="middle",ce=x/2+ge-V/2,we=ce,ce=Math.max(5,Math.min(ce,w-V-5)),we-=ce),Se==="top"||Se==="bottom"?(ue=p/2+se-R/2,we=ue,ue=Math.max(5,Math.min(ue,E-R-5)),F&&(ue=Math.max(ue,F)),le&&ue+R>E-5-le&&(ue=E-5-le-R),Se==="top"&&(W="bottom"),Se==="bottom"&&(W="top"),we-=ue,k=R/2-Q+we,k=Math.max(Math.min(k,R-Q*2-He),He)):Se==="middle"&&(ue=se-R-Q,W="right",(ue<5||ue+R+le>E||ue<F)&&(ue<5&&(ue=se+p+Q),ue+R+le>E&&(ue=E-R-5-le),ue<F&&(ue=F),W="left"),j=V/2-Q+we,j=Math.max(Math.min(j,V-Q*2-He),He));const Ue=Se,Ke=ue<se?"left":"right";return{set:!0,angleTop:typeof j>"u"?void 0:`${j}px`,angleLeft:typeof k>"u"?void 0:`${k}px`,anglePosition:W,popoverTop:`${ce}px`,popoverLeft:`${ue}px`,popoverPosition:`${Ue}-${Ke}`}},CA=(l,u,s)=>{const{angleClassName:o,angleClass:h}=l;return{base:{common:Y("k-popover transition-(--transition-transform-opacity) z-40 w-60 no-safe-areas fixed translate-3d transform-gpu duration-400"),ios:"",material:"ease-material-in",opened:{common:"",ios:"ease-[cubic-bezier(0,1,0.2,1.05)]"},closed:{common:"pointer-events-none",ios:"scale-0",material:"scale-x-90 scale-y-75 opacity-0"}},inner:{common:Y("overflow-hidden relative"),ios:Y("rounded-4xl duration-600",u.bgIos),material:Y("rounded-[1.75rem]",u.bgMaterial),opened:{common:"",ios:"ease-[cubic-bezier(0,1,0.2,1.05)]",material:""},closed:{common:"",ios:"-translate-y-20 opacity-0",material:""}},angleWrap:{common:Y(o||h||"","pointer-events-none"),ios:Y("absolute w-6.5 h-6.5 z-50 overflow-hidden"),material:Y("absolute w-6.5 h-6.5 z-50 overflow-hidden"),bottom:"top-full",top:"bottom-full",left:"right-full",right:"left-full"},angleArrow:{common:Y("absolute rounded w-full h-full transform rotate-45"),ios:Y("bg-ios-light-glass backdrop-blur-lg",s("dark:bg-ios-dark-glass")),material:u.bgMaterial,bottom:"-top-4.75",top:"top-4.75",left:"left-4.75",right:"-left-4.75"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black/50 duration-300",opened:"",closed:"opacity-0 pointer-events-none"}}},RA=(l={},u)=>({bgIos:"",bgMaterial:Y("bg-md-light-surface-3",u("dark:bg-md-dark-surface-3")),...Ma(l)});function U0(){return U0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},U0.apply(null,arguments)}const z1=l=>{const{component:u="div",className:s,angle:o=!1,angleClassName:h="",colors:m,opened:p,backdrop:x=!0,onBackdropClick:_,target:E,targetX:w,targetY:R,targetWidth:V,targetHeight:Q,ios:k,material:j,children:W,style:se={},ref:ge,...be}=l,he=de.useRef(null),F=de.useRef(null),[le,ue]=de.useState({set:!1,angleTop:0,angleLeft:0,anglePosition:"bottom",popoverTop:0,popoverLeft:0,popoverPosition:"top-left"}),ce=p?"opened":"closed",we=u,He={...be},Se=Wi({ios:k,material:j}),Ue=na({ios:k,material:j}),Ke=Ta(),Ae=RA(m,Ke),ie=Ue(CA({...l,angleClassName:h},Ae,Ke),s),C=()=>{!E||!he.current||!p||ue(MA({popoverEl:he.current,targetEl:E,angleEl:F.current,needsAngle:o,targetX:w,targetY:R,targetHeight:Q,targetWidth:V,theme:Se}))},X=()=>{typeof window>"u"||window.addEventListener("resize",C)},B=()=>{typeof window>"u"||window.removeEventListener("resize",C)};de.useEffect(()=>(X(),()=>B())),de.useEffect(()=>{C()},[p]);const pe=le.set?{...se||{},left:le.popoverLeft,top:le.popoverTop}:se,O=le.set?{left:le.angleLeft,top:le.angleTop}:void 0,K={"top-right":"origin-bottom-left","top-left":"origin-bottom-right","middle-left":"origin-right","middle-right":"origin-left","bottom-right":"origin-top-left","bottom-left":"origin-top-right"},oe=Y(ie.base[ce],K[le.popoverPosition]);return me.createElement(me.Fragment,null,x&&me.createElement("div",{className:ie.backdrop[ce],onClick:_}),me.createElement(we,U0({ref:ee=>{he.current=ee,ge&&typeof ge=="function"?ge(ee):ge&&(ge.current=ee)},className:oe,style:pe},He),o&&me.createElement("div",{ref:F,style:O,className:ie.angleWrap[le.anglePosition]},me.createElement("div",{className:ie.angleArrow[le.anglePosition]})),me.createElement(ym,{className:ie.inner[ce]},W)))};z1.displayName="Popover";function j0(){return j0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},j0.apply(null,arguments)}const NA=l=>me.createElement("svg",j0({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},l),me.createElement("path",{d:"M10,0 C10.5522847,0 11,0.44771525 11,1 L11,6 C11,6.55228475 10.5522847,7 10,7 C9.44771525,7 9,6.55228475 9,6 L9,1 C9,0.44771525 9.44771525,0 10,0 Z"}),me.createElement("path",{d:"M10,13 C10.5522847,13 11,13.4477153 11,14 L11,19 C11,19.5522847 10.5522847,20 10,20 C9.44771525,20 9,19.5522847 9,19 L9,14 C9,13.4477153 9.44771525,13 10,13 Z",opacity:".64"}),me.createElement("path",{d:"M13,10 C13,9.44771525 13.4477153,9 14,9 L19,9 C19.5522847,9 20,9.44771525 20,10 C20,10.5522847 19.5522847,11 19,11 L14,11 C13.4477153,11 13,10.5522847 13,10 Z",opacity:".82"}),me.createElement("path",{d:"M-3.8285687e-16,10 C-3.8285687e-16,9.44771525 0.44771525,9 1,9 L6,9 C6.55228475,9 7,9.44771525 7,10 C7,10.5522847 6.55228475,11 6,11 L1,11 C0.44771525,11 -3.8285687e-16,10.5522847 -3.8285687e-16,10 Z",opacity:".46"}),me.createElement("path",{d:"M2.92912627,2.92912627 C3.31965056,2.53860197 3.95281554,2.53860197 4.34333983,2.92912627 L7.87887373,6.46466017 C8.26939803,6.85518446 8.26939803,7.48834944 7.87887373,7.87887373 C7.48834944,8.26939803 6.85518446,8.26939803 6.46466017,7.87887373 L2.92912627,4.34333983 C2.53860197,3.95281554 2.53860197,3.31965056 2.92912627,2.92912627 Z",opacity:".37"}),me.createElement("path",{d:"M12.1211263,12.1211263 C12.5116506,11.730602 13.1448155,11.730602 13.5353398,12.1211263 L17.0708737,15.6566602 C17.461398,16.0471845 17.461398,16.6803494 17.0708737,17.0708737 C16.6803494,17.461398 16.0471845,17.461398 15.6566602,17.0708737 L12.1211263,13.5353398 C11.730602,13.1448155 11.730602,12.5116506 12.1211263,12.1211263 Z",opacity:".73"}),me.createElement("path",{d:"M12.1211263,7.87887373 C11.730602,7.48834944 11.730602,6.85518446 12.1211263,6.46466017 L15.6566602,2.92912627 C16.0471845,2.53860197 16.6803494,2.53860197 17.0708737,2.92912627 C17.461398,3.31965056 17.461398,3.95281554 17.0708737,4.34333983 L13.5353398,7.87887373 C13.1448155,8.26939803 12.5116506,8.26939803 12.1211263,7.87887373 Z",opacity:".91"}),me.createElement("path",{d:"M2.92912627,17.0708737 C2.53860197,16.6803494 2.53860197,16.0471845 2.92912627,15.6566602 L6.46466017,12.1211263 C6.85518446,11.730602 7.48834944,11.730602 7.87887373,12.1211263 C8.26939803,12.5116506 8.26939803,13.1448155 7.87887373,13.5353398 L4.34333983,17.0708737 C3.95281554,17.461398 3.31965056,17.461398 2.92912627,17.0708737 Z",opacity:".55"}));function H0(){return H0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},H0.apply(null,arguments)}const DA=l=>me.createElement("svg",H0({viewBox:"0 0 36 36"},l,{fill:"none",stroke:"currentcolor"}),me.createElement("circle",{cx:"18",cy:"18",r:"16"})),zA=(l,u,s,o)=>({base:{common:Y("k-preloader",s==="ios"?"k-ios-preloader":"k-material-preloader","inline-block w-8 h-8",o),ios:u.iconIos,material:`stroke-4 ${u.iconMaterial}`},inner:{common:"block w-full h-full"}}),BA=(l={},u)=>({iconIos:"text-primary",iconMaterial:Y("text-md-light-primary",u("dark:text-md-dark-primary")),...Ma(l)});function k0(){return k0=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},k0.apply(null,arguments)}const B1=l=>{const{component:u="span",className:s,colors:o,ios:h,material:m,children:p,ref:x,..._}=l,E=de.useRef(null),w=u,R={..._},V=Wi({ios:h,material:m}),Q=na({ios:h,material:m}),k=Ta(),j=BA(o,k),W=V==="ios"?NA:DA,se=Q(zA(l,j,V,s));return me.createElement(w,k0({ref:ge=>{E.current=ge,x&&typeof x=="function"?x(ge):x&&(x.current=ge)},className:se.base},R),me.createElement("span",{className:se.inner},me.createElement(W,{className:"w-full h-full"})),p)};B1.displayName="Preloader";function ht(l){for(var u=arguments.length,s=new Array(u>1?u-1:0),o=1;o<u;o++)s[o-1]=arguments[o];throw new Error(typeof l=="number"?"[MobX] minified error nr: "+l+(s.length?" "+s.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+l)}var LA={};function jm(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:LA}var L1=Object.assign,Em=Object.getOwnPropertyDescriptor,fi=Object.defineProperty,Hm=Object.prototype,G0=[];Object.freeze(G0);var U1={};Object.freeze(U1);var UA=typeof Proxy<"u",jA=Object.toString();function j1(){UA||ht("Proxy not available")}function H1(l){var u=!1;return function(){if(!u)return u=!0,l.apply(this,arguments)}}var oc=function(){};function Oa(l){return typeof l=="function"}function ps(l){var u=typeof l;switch(u){case"string":case"symbol":case"number":return!0}return!1}function km(l){return l!==null&&typeof l=="object"}function Ji(l){if(!km(l))return!1;var u=Object.getPrototypeOf(l);if(u==null)return!0;var s=Object.hasOwnProperty.call(u,"constructor")&&u.constructor;return typeof s=="function"&&s.toString()===jA}function k1(l){var u=l?.constructor;return u?u.name==="GeneratorFunction"||u.displayName==="GeneratorFunction":!1}function Cd(l,u,s){fi(l,u,{enumerable:!1,writable:!0,configurable:!0,value:s})}function G1(l,u,s){fi(l,u,{enumerable:!1,writable:!1,configurable:!0,value:s})}function xs(l,u){var s="isMobX"+l;return u.prototype[s]=!0,function(o){return km(o)&&o[s]===!0}}function bc(l){return l!=null&&Object.prototype.toString.call(l)==="[object Map]"}function HA(l){var u=Object.getPrototypeOf(l),s=Object.getPrototypeOf(u),o=Object.getPrototypeOf(s);return o===null}function Xi(l){return l!=null&&Object.prototype.toString.call(l)==="[object Set]"}var q1=typeof Object.getOwnPropertySymbols<"u";function kA(l){var u=Object.keys(l);if(!q1)return u;var s=Object.getOwnPropertySymbols(l);return s.length?[].concat(u,s.filter(function(o){return Hm.propertyIsEnumerable.call(l,o)})):u}var dc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:q1?function(l){return Object.getOwnPropertyNames(l).concat(Object.getOwnPropertySymbols(l))}:Object.getOwnPropertyNames;function Y1(l){return l===null?null:typeof l=="object"?""+l:l}function Zi(l,u){return Hm.hasOwnProperty.call(l,u)}var GA=Object.getOwnPropertyDescriptors||function(u){var s={};return dc(u).forEach(function(o){s[o]=Em(u,o)}),s};function zr(l,u){return!!(l&u)}function Br(l,u,s){return s?l|=u:l&=~u,l}function Rp(l,u){(u==null||u>l.length)&&(u=l.length);for(var s=0,o=Array(u);s<u;s++)o[s]=l[s];return o}function qA(l,u){for(var s=0;s<u.length;s++){var o=u[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,VA(o.key),o)}}function yc(l,u,s){return u&&qA(l.prototype,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function cc(l,u){var s=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(s)return(s=s.call(l)).next.bind(s);if(Array.isArray(l)||(s=QA(l))||u){s&&(l=s);var o=0;return function(){return o>=l.length?{done:!0}:{done:!1,value:l[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bs(){return bs=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},bs.apply(null,arguments)}function V1(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,q0(l,u)}function q0(l,u){return q0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},q0(l,u)}function YA(l,u){if(typeof l!="object"||!l)return l;var s=l[Symbol.toPrimitive];if(s!==void 0){var o=s.call(l,u);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}function VA(l){var u=YA(l,"string");return typeof u=="symbol"?u:u+""}function QA(l,u){if(l){if(typeof l=="string")return Rp(l,u);var s={}.toString.call(l).slice(8,-1);return s==="Object"&&l.constructor&&(s=l.constructor.name),s==="Map"||s==="Set"?Array.from(l):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Rp(l,u):void 0}}var ci=Symbol("mobx-stored-annotations");function di(l){function u(s,o){if(Nd(o))return l.decorate_20223_(s,o);Rd(s,o,l)}return Object.assign(u,l)}function Rd(l,u,s){Zi(l,ci)||Cd(l,ci,bs({},l[ci])),PA(s)||(l[ci][u]=s)}function XA(l){return Zi(l,ci)||Cd(l,ci,bs({},l[ci])),l[ci]}function Nd(l){return typeof l=="object"&&typeof l.kind=="string"}var Ye=Symbol("mobx administration"),eu=(function(){function l(s){s===void 0&&(s="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=gt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=s}var u=l.prototype;return u.onBO=function(){this.onBOL&&this.onBOL.forEach(function(o){return o()})},u.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(o){return o()})},u.reportObserved=function(){return ib(this)},u.reportChanged=function(){ea(),lb(this),ta()},u.toString=function(){return this.name_},yc(l,[{key:"isBeingObserved",get:function(){return zr(this.flags_,l.isBeingObservedMask_)},set:function(o){this.flags_=Br(this.flags_,l.isBeingObservedMask_,o)}},{key:"isPendingUnobservation",get:function(){return zr(this.flags_,l.isPendingUnobservationMask_)},set:function(o){this.flags_=Br(this.flags_,l.isPendingUnobservationMask_,o)}},{key:"diffValue",get:function(){return zr(this.flags_,l.diffValueMask_)?1:0},set:function(o){this.flags_=Br(this.flags_,l.diffValueMask_,o===1)}}])})();eu.isBeingObservedMask_=1;eu.isPendingUnobservationMask_=2;eu.diffValueMask_=4;var ip=xs("Atom",eu);function Q1(l,u,s){u===void 0&&(u=oc),s===void 0&&(s=oc);var o=new eu(l);return u!==oc&&n2(o,u),s!==oc&&fb(o,s),o}function KA(l,u){return Eb(l,u)}function ZA(l,u){return Object.is?Object.is(l,u):l===u?l!==0||1/l===1/u:l!==l&&u!==u}var Om={structural:KA,default:ZA};function ys(l,u,s){return gb(l)?l:Array.isArray(l)?xn.array(l,{name:s}):Ji(l)?xn.object(l,void 0,{name:s}):bc(l)?xn.map(l,{name:s}):Xi(l)?xn.set(l,{name:s}):typeof l=="function"&&!hc(l)&&!Td(l)?k1(l)?vc(l):wd(s,l):l}function IA(l,u,s){if(l==null||Zm(l)||Km(l)||Es(l)||oi(l))return l;if(Array.isArray(l))return xn.array(l,{name:s,deep:!1});if(Ji(l))return xn.object(l,void 0,{name:s,deep:!1});if(bc(l))return xn.map(l,{name:s,deep:!1});if(Xi(l))return xn.set(l,{name:s,deep:!1})}function Gm(l){return l}function JA(l,u){return Eb(l,u)?u:l}var WA="override";function PA(l){return l.annotationType_===WA}function Dd(l,u){return{annotationType_:l,options_:u,make_:FA,extend_:$A,decorate_20223_:e_}}function FA(l,u,s,o){var h;if((h=this.options_)!=null&&h.bound)return this.extend_(l,u,s,!1)===null?0:1;if(o===l.target_)return this.extend_(l,u,s,!1)===null?0:2;if(hc(s.value))return 1;var m=X1(l,this,u,s,!1);return fi(o,u,m),2}function $A(l,u,s,o){var h=X1(l,this,u,s);return l.defineProperty_(u,h,o)}function e_(l,u){var s=u.kind,o=u.name,h=u.addInitializer,m=this,p=function(E){var w,R,V,Q;return As((w=(R=m.options_)==null?void 0:R.name)!=null?w:o.toString(),E,(V=(Q=m.options_)==null?void 0:Q.autoAction)!=null?V:!1)};if(s=="field")return function(_){var E,w=_;return hc(w)||(w=p(w)),(E=m.options_)!=null&&E.bound&&(w=w.bind(this),w.isMobxAction=!0),w};if(s=="method"){var x;return hc(l)||(l=p(l)),(x=this.options_)!=null&&x.bound&&h(function(){var _=this,E=_[o].bind(_);E.isMobxAction=!0,_[o]=E}),l}ht("Cannot apply '"+m.annotationType_+"' to '"+String(o)+"' (kind: "+s+"):"+(`
'`+m.annotationType_+"' can only be used on properties with a function value."))}function t_(l,u,s,o){u.annotationType_,o.value}function X1(l,u,s,o,h){var m,p,x,_,E,w,R;h===void 0&&(h=ye.safeDescriptors),t_(l,u,s,o);var V=o.value;if((m=u.options_)!=null&&m.bound){var Q;V=V.bind((Q=l.proxy_)!=null?Q:l.target_)}return{value:As((p=(x=u.options_)==null?void 0:x.name)!=null?p:s.toString(),V,(_=(E=u.options_)==null?void 0:E.autoAction)!=null?_:!1,(w=u.options_)!=null&&w.bound?(R=l.proxy_)!=null?R:l.target_:void 0),configurable:h?l.isPlainObject_:!0,enumerable:!1,writable:!h}}function K1(l,u){return{annotationType_:l,options_:u,make_:n_,extend_:r_,decorate_20223_:a_}}function n_(l,u,s,o){var h;if(o===l.target_)return this.extend_(l,u,s,!1)===null?0:2;if((h=this.options_)!=null&&h.bound&&(!Zi(l.target_,u)||!Td(l.target_[u]))&&this.extend_(l,u,s,!1)===null)return 0;if(Td(s.value))return 1;var m=Z1(l,this,u,s,!1,!1);return fi(o,u,m),2}function r_(l,u,s,o){var h,m=Z1(l,this,u,s,(h=this.options_)==null?void 0:h.bound);return l.defineProperty_(u,m,o)}function a_(l,u){var s,o=u.name,h=u.addInitializer;return Td(l)||(l=vc(l)),(s=this.options_)!=null&&s.bound&&h(function(){var m=this,p=m[o].bind(m);p.isMobXFlow=!0,m[o]=p}),l}function i_(l,u,s,o){u.annotationType_,o.value}function Z1(l,u,s,o,h,m){m===void 0&&(m=ye.safeDescriptors),i_(l,u,s,o);var p=o.value;if(Td(p)||(p=vc(p)),h){var x;p=p.bind((x=l.proxy_)!=null?x:l.target_),p.isMobXFlow=!0}return{value:p,configurable:m?l.isPlainObject_:!0,enumerable:!1,writable:!m}}function lp(l,u){return{annotationType_:l,options_:u,make_:l_,extend_:u_,decorate_20223_:s_}}function l_(l,u,s){return this.extend_(l,u,s,!1)===null?0:1}function u_(l,u,s,o){return o_(l,this,u,s),l.defineComputedProperty_(u,bs({},this.options_,{get:s.get,set:s.set}),o)}function s_(l,u){var s=this,o=u.name,h=u.addInitializer;return h(function(){var m=Os(this)[Ye],p=bs({},s.options_,{get:l,context:this});p.name||(p.name="ObservableObject."+o.toString()),m.values_.set(o,new wa(p))}),function(){return this[Ye].getObservablePropValue_(o)}}function o_(l,u,s,o){u.annotationType_,o.get}function qm(l,u){return{annotationType_:l,options_:u,make_:c_,extend_:f_,decorate_20223_:d_}}function c_(l,u,s){return this.extend_(l,u,s,!1)===null?0:1}function f_(l,u,s,o){var h,m;return h_(l,this),l.defineObservableProperty_(u,s.value,(h=(m=this.options_)==null?void 0:m.enhancer)!=null?h:ys,o)}function d_(l,u){var s=this,o=u.kind,h=u.name,m=new WeakSet;function p(x,_){var E,w,R=Os(x)[Ye],V=new gs(_,(E=(w=s.options_)==null?void 0:w.enhancer)!=null?E:ys,"ObservableObject."+h.toString(),!1);R.values_.set(h,V),m.add(x)}if(o=="accessor")return{get:function(){return m.has(this)||p(this,l.get.call(this)),this[Ye].getObservablePropValue_(h)},set:function(_){return m.has(this)||p(this,_),this[Ye].setObservablePropValue_(h,_)},init:function(_){return m.has(this)||p(this,_),_}}}function h_(l,u,s,o){u.annotationType_}var v_="true",m_=I1();function I1(l){return{annotationType_:v_,options_:l,make_:g_,extend_:p_,decorate_20223_:b_}}function g_(l,u,s,o){var h,m;if(s.get)return Ym.make_(l,u,s,o);if(s.set){var p=hc(s.set)?s.set:As(u.toString(),s.set);return o===l.target_?l.defineProperty_(u,{configurable:ye.safeDescriptors?l.isPlainObject_:!0,set:p})===null?0:2:(fi(o,u,{configurable:!0,set:p}),2)}if(o!==l.target_&&typeof s.value=="function"){var x;if(k1(s.value)){var _,E=(_=this.options_)!=null&&_.autoBind?vc.bound:vc;return E.make_(l,u,s,o)}var w=(x=this.options_)!=null&&x.autoBind?wd.bound:wd;return w.make_(l,u,s,o)}var R=((h=this.options_)==null?void 0:h.deep)===!1?xn.ref:xn;if(typeof s.value=="function"&&(m=this.options_)!=null&&m.autoBind){var V;s.value=s.value.bind((V=l.proxy_)!=null?V:l.target_)}return R.make_(l,u,s,o)}function p_(l,u,s,o){var h,m;if(s.get)return Ym.extend_(l,u,s,o);if(s.set)return l.defineProperty_(u,{configurable:ye.safeDescriptors?l.isPlainObject_:!0,set:As(u.toString(),s.set)},o);if(typeof s.value=="function"&&(h=this.options_)!=null&&h.autoBind){var p;s.value=s.value.bind((p=l.proxy_)!=null?p:l.target_)}var x=((m=this.options_)==null?void 0:m.deep)===!1?xn.ref:xn;return x.extend_(l,u,s,o)}function b_(l,u){ht("'"+this.annotationType_+"' cannot be used as a decorator")}var y_="observable",A_="observable.ref",__="observable.shallow",x_="observable.struct",J1={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(J1);function cm(l){return l||J1}var Y0=qm(y_),S_=qm(A_,{enhancer:Gm}),E_=qm(__,{enhancer:IA}),O_=qm(x_,{enhancer:JA}),W1=di(Y0);function fm(l){return l.deep===!0?ys:l.deep===!1?Gm:T_(l.defaultDecorator)}function w_(l){var u;return l?(u=l.defaultDecorator)!=null?u:I1(l):void 0}function T_(l){var u,s;return l&&(u=(s=l.options_)==null?void 0:s.enhancer)!=null?u:ys}function P1(l,u,s){if(Nd(u))return Y0.decorate_20223_(l,u);if(ps(u)){Rd(l,u,Y0);return}return gb(l)?l:Ji(l)?xn.object(l,u,s):Array.isArray(l)?xn.array(l,u):bc(l)?xn.map(l,u):Xi(l)?xn.set(l,u):typeof l=="object"&&l!==null?l:xn.box(l,u)}L1(P1,W1);var M_={box:function(u,s){var o=cm(s);return new gs(u,fm(o),o.name,!0,o.equals)},array:function(u,s){var o=cm(s);return(ye.useProxies===!1||o.proxy===!1?T2:p2)(u,fm(o),o.name)},map:function(u,s){var o=cm(s);return new bb(u,fm(o),o.name)},set:function(u,s){var o=cm(s);return new yb(u,fm(o),o.name)},object:function(u,s,o){return tu(function(){return hb(ye.useProxies===!1||o?.proxy===!1?Os({},o):d2({},o),u,s)})},ref:di(S_),shallow:di(E_),deep:W1,struct:di(O_)},xn=L1(P1,M_),F1="computed",C_="computed.struct",V0=lp(F1),R_=lp(C_,{equals:Om.structural}),Ym=function(u,s){if(Nd(s))return V0.decorate_20223_(u,s);if(ps(s))return Rd(u,s,V0);if(Ji(u))return di(lp(F1,u));var o=Ji(s)?s:{};return o.get=u,o.name||(o.name=u.name||""),new wa(o)};Object.assign(Ym,V0);Ym.struct=di(R_);var Np,Dp,wm=0,N_=1,D_=(Np=(Dp=Em(function(){},"name"))==null?void 0:Dp.configurable)!=null?Np:!1,zp={value:"action",configurable:!0,writable:!1,enumerable:!1};function As(l,u,s,o){s===void 0&&(s=!1);function h(){return z_(l,s,u,o||this,arguments)}return h.isMobxAction=!0,h.toString=function(){return u.toString()},D_&&(zp.value=l,fi(h,"name",zp)),h}function z_(l,u,s,o,h){var m=B_(l,u);try{return s.apply(o,h)}catch(p){throw m.error_=p,p}finally{L_(m)}}function B_(l,u,s,o){var h=!1,m=0,p=ye.trackingDerivation,x=!u||!p;ea();var _=ye.allowStateChanges;x&&(Ss(),_=Vm(!0));var E=up(!0),w={runAsAction_:x,prevDerivation_:p,prevAllowStateChanges_:_,prevAllowStateReads_:E,notifySpy_:h,startTime_:m,actionId_:N_++,parentActionId_:wm};return wm=w.actionId_,w}function L_(l){wm!==l.actionId_&&ht(30),wm=l.parentActionId_,l.error_!==void 0&&(ye.suppressReactionErrors=!0),Qm(l.prevAllowStateChanges_),Sd(l.prevAllowStateReads_),ta(),l.runAsAction_&&Ii(l.prevDerivation_),ye.suppressReactionErrors=!1}function U_(l,u){var s=Vm(l);try{return u()}finally{Qm(s)}}function Vm(l){var u=ye.allowStateChanges;return ye.allowStateChanges=l,u}function Qm(l){ye.allowStateChanges=l}var gs=(function(l){function u(o,h,m,p,x){var _;return m===void 0&&(m="ObservableValue"),x===void 0&&(x=Om.default),_=l.call(this,m)||this,_.enhancer=void 0,_.name_=void 0,_.equals=void 0,_.hasUnreportedChange_=!1,_.interceptors_=void 0,_.changeListeners_=void 0,_.value_=void 0,_.dehancer=void 0,_.enhancer=h,_.name_=m,_.equals=x,_.value_=h(o,void 0,m),_}V1(u,l);var s=u.prototype;return s.dehanceValue=function(h){return this.dehancer!==void 0?this.dehancer(h):h},s.set=function(h){this.value_,h=this.prepareNewValue_(h),h!==ye.UNCHANGED&&this.setNewValue_(h)},s.prepareNewValue_=function(h){if(Pr(this)){var m=Fr(this,{object:this,type:hi,newValue:h});if(!m)return ye.UNCHANGED;h=m.newValue}return h=this.enhancer(h,this.value_,this.name_),this.equals(this.value_,h)?ye.UNCHANGED:h},s.setNewValue_=function(h){var m=this.value_;this.value_=h,this.reportChanged(),Sa(this)&&Ea(this,{type:hi,object:this,newValue:h,oldValue:m})},s.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},s.intercept_=function(h){return zd(this,h)},s.observe_=function(h,m){return m&&h({observableKind:"value",debugObjectName:this.name_,object:this,type:hi,newValue:this.value_,oldValue:void 0}),Bd(this,h)},s.raw=function(){return this.value_},s.toJSON=function(){return this.get()},s.toString=function(){return this.name_+"["+this.value_+"]"},s.valueOf=function(){return Y1(this.get())},s[Symbol.toPrimitive]=function(){return this.valueOf()},u})(eu),wa=(function(){function l(s){this.dependenciesState_=gt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=gt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Mm(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Tm.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,s.get||ht(31),this.derivation=s.get,this.name_=s.name||"ComputedValue",s.set&&(this.setter_=As("ComputedValue-setter",s.set)),this.equals_=s.equals||(s.compareStructural||s.struct?Om.structural:Om.default),this.scope_=s.context,this.requiresReaction_=s.requiresReaction,this.keepAlive_=!!s.keepAlive}var u=l.prototype;return u.onBecomeStale_=function(){q_(this)},u.onBO=function(){this.onBOL&&this.onBOL.forEach(function(o){return o()})},u.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(o){return o()})},u.get=function(){if(this.isComputing&&ht(32,this.name_,this.derivation),ye.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Q0(this)&&(this.warnAboutUntrackedRead_(),ea(),this.value_=this.computeValue_(!1),ta());else if(ib(this),Q0(this)){var o=ye.trackingContext;this.keepAlive_&&!o&&(ye.trackingContext=this),this.trackAndCompute()&&G_(this),ye.trackingContext=o}var h=this.value_;if(gm(h))throw h.cause;return h},u.set=function(o){if(this.setter_){this.isRunningSetter&&ht(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,o)}finally{this.isRunningSetter=!1}}else ht(34,this.name_)},u.trackAndCompute=function(){var o=this.value_,h=this.dependenciesState_===gt.NOT_TRACKING_,m=this.computeValue_(!0),p=h||gm(o)||gm(m)||!this.equals_(o,m);return p&&(this.value_=m),p},u.computeValue_=function(o){this.isComputing=!0;var h=Vm(!1),m;if(o)m=$1(this,this.derivation,this.scope_);else if(ye.disableErrorBoundaries===!0)m=this.derivation.call(this.scope_);else try{m=this.derivation.call(this.scope_)}catch(p){m=new Mm(p)}return Qm(h),this.isComputing=!1,m},u.suspend_=function(){this.keepAlive_||(X0(this),this.value_=void 0)},u.observe_=function(o,h){var m=this,p=!0,x=void 0;return P_(function(){var _=m.get();if(!p||h){var E=Ss();o({observableKind:"computed",debugObjectName:m.name_,type:hi,object:m,newValue:_,oldValue:x}),Ii(E)}p=!1,x=_})},u.warnAboutUntrackedRead_=function(){},u.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},u.valueOf=function(){return Y1(this.get())},u[Symbol.toPrimitive]=function(){return this.valueOf()},yc(l,[{key:"isComputing",get:function(){return zr(this.flags_,l.isComputingMask_)},set:function(o){this.flags_=Br(this.flags_,l.isComputingMask_,o)}},{key:"isRunningSetter",get:function(){return zr(this.flags_,l.isRunningSetterMask_)},set:function(o){this.flags_=Br(this.flags_,l.isRunningSetterMask_,o)}},{key:"isBeingObserved",get:function(){return zr(this.flags_,l.isBeingObservedMask_)},set:function(o){this.flags_=Br(this.flags_,l.isBeingObservedMask_,o)}},{key:"isPendingUnobservation",get:function(){return zr(this.flags_,l.isPendingUnobservationMask_)},set:function(o){this.flags_=Br(this.flags_,l.isPendingUnobservationMask_,o)}},{key:"diffValue",get:function(){return zr(this.flags_,l.diffValueMask_)?1:0},set:function(o){this.flags_=Br(this.flags_,l.diffValueMask_,o===1)}}])})();wa.isComputingMask_=1;wa.isRunningSetterMask_=2;wa.isBeingObservedMask_=4;wa.isPendingUnobservationMask_=8;wa.diffValueMask_=16;var Xm=xs("ComputedValue",wa),gt;(function(l){l[l.NOT_TRACKING_=-1]="NOT_TRACKING_",l[l.UP_TO_DATE_=0]="UP_TO_DATE_",l[l.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",l[l.STALE_=2]="STALE_"})(gt||(gt={}));var Tm;(function(l){l[l.NONE=0]="NONE",l[l.LOG=1]="LOG",l[l.BREAK=2]="BREAK"})(Tm||(Tm={}));var Mm=function(u){this.cause=void 0,this.cause=u};function gm(l){return l instanceof Mm}function Q0(l){switch(l.dependenciesState_){case gt.UP_TO_DATE_:return!1;case gt.NOT_TRACKING_:case gt.STALE_:return!0;case gt.POSSIBLY_STALE_:{for(var u=up(!0),s=Ss(),o=l.observing_,h=o.length,m=0;m<h;m++){var p=o[m];if(Xm(p)){if(ye.disableErrorBoundaries)p.get();else try{p.get()}catch{return Ii(s),Sd(u),!0}if(l.dependenciesState_===gt.STALE_)return Ii(s),Sd(u),!0}}return tb(l),Ii(s),Sd(u),!1}}}function $1(l,u,s){var o=up(!0);tb(l),l.newObserving_=new Array(l.runId_===0?100:l.observing_.length),l.unboundDepsCount_=0,l.runId_=++ye.runId;var h=ye.trackingDerivation;ye.trackingDerivation=l,ye.inBatch++;var m;if(ye.disableErrorBoundaries===!0)m=u.call(s);else try{m=u.call(s)}catch(p){m=new Mm(p)}return ye.inBatch--,ye.trackingDerivation=h,j_(l),Sd(o),m}function j_(l){for(var u=l.observing_,s=l.observing_=l.newObserving_,o=gt.UP_TO_DATE_,h=0,m=l.unboundDepsCount_,p=0;p<m;p++){var x=s[p];x.diffValue===0&&(x.diffValue=1,h!==p&&(s[h]=x),h++),x.dependenciesState_>o&&(o=x.dependenciesState_)}for(s.length=h,l.newObserving_=null,m=u.length;m--;){var _=u[m];_.diffValue===0&&rb(_,l),_.diffValue=0}for(;h--;){var E=s[h];E.diffValue===1&&(E.diffValue=0,k_(E,l))}o!==gt.UP_TO_DATE_&&(l.dependenciesState_=o,l.onBecomeStale_())}function X0(l){var u=l.observing_;l.observing_=[];for(var s=u.length;s--;)rb(u[s],l);l.dependenciesState_=gt.NOT_TRACKING_}function eb(l){var u=Ss();try{return l()}finally{Ii(u)}}function Ss(){var l=ye.trackingDerivation;return ye.trackingDerivation=null,l}function Ii(l){ye.trackingDerivation=l}function up(l){var u=ye.allowStateReads;return ye.allowStateReads=l,u}function Sd(l){ye.allowStateReads=l}function tb(l){if(l.dependenciesState_!==gt.UP_TO_DATE_){l.dependenciesState_=gt.UP_TO_DATE_;for(var u=l.observing_,s=u.length;s--;)u[s].lowestObserverState_=gt.UP_TO_DATE_}}var pm=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},bm=!0,nb=!1,ye=(function(){var l=jm();return l.__mobxInstanceCount>0&&!l.__mobxGlobals&&(bm=!1),l.__mobxGlobals&&l.__mobxGlobals.version!==new pm().version&&(bm=!1),bm?l.__mobxGlobals?(l.__mobxInstanceCount+=1,l.__mobxGlobals.UNCHANGED||(l.__mobxGlobals.UNCHANGED={}),l.__mobxGlobals):(l.__mobxInstanceCount=1,l.__mobxGlobals=new pm):(setTimeout(function(){nb||ht(35)},1),new pm)})();function H_(){if((ye.pendingReactions.length||ye.inBatch||ye.isRunningReactions)&&ht(36),nb=!0,bm){var l=jm();--l.__mobxInstanceCount===0&&(l.__mobxGlobals=void 0),ye=new pm}}function k_(l,u){l.observers_.add(u),l.lowestObserverState_>u.dependenciesState_&&(l.lowestObserverState_=u.dependenciesState_)}function rb(l,u){l.observers_.delete(u),l.observers_.size===0&&ab(l)}function ab(l){l.isPendingUnobservation===!1&&(l.isPendingUnobservation=!0,ye.pendingUnobservations.push(l))}function ea(){ye.inBatch++}function ta(){if(--ye.inBatch===0){ub();for(var l=ye.pendingUnobservations,u=0;u<l.length;u++){var s=l[u];s.isPendingUnobservation=!1,s.observers_.size===0&&(s.isBeingObserved&&(s.isBeingObserved=!1,s.onBUO()),s instanceof wa&&s.suspend_())}ye.pendingUnobservations=[]}}function ib(l){var u=ye.trackingDerivation;return u!==null?(u.runId_!==l.lastAccessedBy_&&(l.lastAccessedBy_=u.runId_,u.newObserving_[u.unboundDepsCount_++]=l,!l.isBeingObserved&&ye.trackingContext&&(l.isBeingObserved=!0,l.onBO())),l.isBeingObserved):(l.observers_.size===0&&ye.inBatch>0&&ab(l),!1)}function lb(l){l.lowestObserverState_!==gt.STALE_&&(l.lowestObserverState_=gt.STALE_,l.observers_.forEach(function(u){u.dependenciesState_===gt.UP_TO_DATE_&&u.onBecomeStale_(),u.dependenciesState_=gt.STALE_}))}function G_(l){l.lowestObserverState_!==gt.STALE_&&(l.lowestObserverState_=gt.STALE_,l.observers_.forEach(function(u){u.dependenciesState_===gt.POSSIBLY_STALE_?u.dependenciesState_=gt.STALE_:u.dependenciesState_===gt.UP_TO_DATE_&&(l.lowestObserverState_=gt.UP_TO_DATE_)}))}function q_(l){l.lowestObserverState_===gt.UP_TO_DATE_&&(l.lowestObserverState_=gt.POSSIBLY_STALE_,l.observers_.forEach(function(u){u.dependenciesState_===gt.UP_TO_DATE_&&(u.dependenciesState_=gt.POSSIBLY_STALE_,u.onBecomeStale_())}))}var vi=(function(){function l(s,o,h,m){s===void 0&&(s="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=gt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Tm.NONE,this.name_=s,this.onInvalidate_=o,this.errorHandler_=h,this.requiresObservable_=m}var u=l.prototype;return u.onBecomeStale_=function(){this.schedule_()},u.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ye.pendingReactions.push(this),ub())},u.runReaction_=function(){if(!this.isDisposed){ea(),this.isScheduled=!1;var o=ye.trackingContext;if(ye.trackingContext=this,Q0(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(h){this.reportExceptionInDerivation_(h)}}ye.trackingContext=o,ta()}},u.track=function(o){if(!this.isDisposed){ea(),this.isRunning=!0;var h=ye.trackingContext;ye.trackingContext=this;var m=$1(this,o,void 0);ye.trackingContext=h,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&X0(this),gm(m)&&this.reportExceptionInDerivation_(m.cause),ta()}},u.reportExceptionInDerivation_=function(o){var h=this;if(this.errorHandler_){this.errorHandler_(o,this);return}if(ye.disableErrorBoundaries)throw o;var m="[mobx] uncaught error in '"+this+"'";ye.suppressReactionErrors||console.error(m,o),ye.globalReactionErrorHandlers.forEach(function(p){return p(o,h)})},u.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(ea(),X0(this),ta()))},u.getDisposer_=function(o){var h=this,m=function p(){h.dispose(),o==null||o.removeEventListener==null||o.removeEventListener("abort",p)};return o==null||o.addEventListener==null||o.addEventListener("abort",m),m[Ye]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(m[Symbol.dispose]=m),m},u.toString=function(){return"Reaction["+this.name_+"]"},u.trace=function(o){},yc(l,[{key:"isDisposed",get:function(){return zr(this.flags_,l.isDisposedMask_)},set:function(o){this.flags_=Br(this.flags_,l.isDisposedMask_,o)}},{key:"isScheduled",get:function(){return zr(this.flags_,l.isScheduledMask_)},set:function(o){this.flags_=Br(this.flags_,l.isScheduledMask_,o)}},{key:"isTrackPending",get:function(){return zr(this.flags_,l.isTrackPendingMask_)},set:function(o){this.flags_=Br(this.flags_,l.isTrackPendingMask_,o)}},{key:"isRunning",get:function(){return zr(this.flags_,l.isRunningMask_)},set:function(o){this.flags_=Br(this.flags_,l.isRunningMask_,o)}},{key:"diffValue",get:function(){return zr(this.flags_,l.diffValueMask_)?1:0},set:function(o){this.flags_=Br(this.flags_,l.diffValueMask_,o===1)}}])})();vi.isDisposedMask_=1;vi.isScheduledMask_=2;vi.isTrackPendingMask_=4;vi.isRunningMask_=8;vi.diffValueMask_=16;var Y_=100,K0=function(u){return u()};function ub(){ye.inBatch>0||ye.isRunningReactions||K0(V_)}function V_(){ye.isRunningReactions=!0;for(var l=ye.pendingReactions,u=0;l.length>0;){++u===Y_&&(console.error("[mobx] cycle in reaction: "+l[0]),l.splice(0));for(var s=l.splice(0),o=0,h=s.length;o<h;o++)s[o].runReaction_()}ye.isRunningReactions=!1}var Cm=xs("Reaction",vi);function Q_(l){var u=K0;K0=function(o){return l(function(){return u(o)})}}function Ed(){return!1}function X_(l){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var sb="action",K_="action.bound",ob="autoAction",Z_="autoAction.bound",I_="<unnamed action>",Z0=Dd(sb),J_=Dd(K_,{bound:!0}),I0=Dd(ob,{autoAction:!0}),W_=Dd(Z_,{autoAction:!0,bound:!0});function cb(l){var u=function(o,h){if(Oa(o))return As(o.name||I_,o,l);if(Oa(h))return As(o,h,l);if(Nd(h))return(l?I0:Z0).decorate_20223_(o,h);if(ps(h))return Rd(o,h,l?I0:Z0);if(ps(o))return di(Dd(l?ob:sb,{name:o,autoAction:l}))};return u}var fc=cb(!1);Object.assign(fc,Z0);var wd=cb(!0);Object.assign(wd,I0);fc.bound=di(J_);wd.bound=di(W_);function hc(l){return Oa(l)&&l.isMobxAction===!0}function P_(l,u){var s,o,h,m;u===void 0&&(u=U1);var p=(s=(o=u)==null?void 0:o.name)!=null?s:"Autorun",x=!u.scheduler&&!u.delay,_;if(x)_=new vi(p,function(){this.track(R)},u.onError,u.requiresObservable);else{var E=$_(u),w=!1;_=new vi(p,function(){w||(w=!0,E(function(){w=!1,_.isDisposed||_.track(R)}))},u.onError,u.requiresObservable)}function R(){l(_)}return(h=u)!=null&&(h=h.signal)!=null&&h.aborted||_.schedule_(),_.getDisposer_((m=u)==null?void 0:m.signal)}var F_=function(u){return u()};function $_(l){return l.scheduler?l.scheduler:l.delay?function(u){return setTimeout(u,l.delay)}:F_}var e2="onBO",t2="onBUO";function n2(l,u,s){return db(e2,l,u,s)}function fb(l,u,s){return db(t2,l,u,s)}function db(l,u,s,o){var h=Dm(u),m=Oa(o)?o:s,p=l+"L";return h[p]?h[p].add(m):h[p]=new Set([m]),function(){var x=h[p];x&&(x.delete(m),x.size===0&&delete h[p])}}var r2="never",dm="always",a2="observed";function i2(l){l.isolateGlobalState===!0&&H_();var u=l.useProxies,s=l.enforceActions;if(u!==void 0&&(ye.useProxies=u===dm?!0:u===r2?!1:typeof Proxy<"u"),u==="ifavailable"&&(ye.verifyProxies=!0),s!==void 0){var o=s===dm?dm:s===a2;ye.enforceActions=o,ye.allowStateChanges=!(o===!0||o===dm)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(h){h in l&&(ye[h]=!!l[h])}),ye.allowStateReads=!ye.observableRequiresReaction,l.reactionScheduler&&Q_(l.reactionScheduler)}function hb(l,u,s,o){var h=GA(u);return tu(function(){var m=Os(l,o)[Ye];dc(h).forEach(function(p){m.extend_(p,h[p],s&&p in s?s[p]:!0)})}),l}function l2(l,u){return vb(Dm(l,u))}function vb(l){var u={name:l.name_};return l.observing_&&l.observing_.length>0&&(u.dependencies=u2(l.observing_).map(vb)),u}function u2(l){return Array.from(new Set(l))}var s2=0;function mb(){this.message="FLOW_CANCELLED"}mb.prototype=Object.create(Error.prototype);var v0=K1("flow"),o2=K1("flow.bound",{bound:!0}),vc=Object.assign(function(u,s){if(Nd(s))return v0.decorate_20223_(u,s);if(ps(s))return Rd(u,s,v0);var o=u,h=o.name||"<unnamed flow>",m=function(){var x=this,_=arguments,E=++s2,w=fc(h+" - runid: "+E+" - init",o).apply(x,_),R,V=void 0,Q=new Promise(function(k,j){var W=0;R=j;function se(he){V=void 0;var F;try{F=fc(h+" - runid: "+E+" - yield "+W++,w.next).call(w,he)}catch(le){return j(le)}be(F)}function ge(he){V=void 0;var F;try{F=fc(h+" - runid: "+E+" - yield "+W++,w.throw).call(w,he)}catch(le){return j(le)}be(F)}function be(he){if(Oa(he?.then)){he.then(be,j);return}return he.done?k(he.value):(V=Promise.resolve(he.value),V.then(se,ge))}se(void 0)});return Q.cancel=fc(h+" - runid: "+E+" - cancel",function(){try{V&&Bp(V);var k=w.return(void 0),j=Promise.resolve(k.value);j.then(oc,oc),Bp(j),R(new mb)}catch(W){R(W)}}),Q};return m.isMobXFlow=!0,m},v0);vc.bound=di(o2);function Bp(l){Oa(l.cancel)&&l.cancel()}function Td(l){return l?.isMobXFlow===!0}function c2(l,u){return l?Zm(l)||!!l[Ye]||ip(l)||Cm(l)||Xm(l):!1}function gb(l){return c2(l)}function Ki(l,u){u===void 0&&(u=void 0),ea();try{return l.apply(u)}finally{ta()}}function sc(l){return l[Ye]}var f2={has:function(u,s){return sc(u).has_(s)},get:function(u,s){return sc(u).get_(s)},set:function(u,s,o){var h;return ps(s)?(h=sc(u).set_(s,o,!0))!=null?h:!0:!1},deleteProperty:function(u,s){var o;return ps(s)?(o=sc(u).delete_(s,!0))!=null?o:!0:!1},defineProperty:function(u,s,o){var h;return(h=sc(u).defineProperty_(s,o))!=null?h:!0},ownKeys:function(u){return sc(u).ownKeys_()},preventExtensions:function(u){ht(13)}};function d2(l,u){var s,o;return j1(),l=Os(l,u),(o=(s=l[Ye]).proxy_)!=null?o:s.proxy_=new Proxy(l,f2)}function Pr(l){return l.interceptors_!==void 0&&l.interceptors_.length>0}function zd(l,u){var s=l.interceptors_||(l.interceptors_=[]);return s.push(u),H1(function(){var o=s.indexOf(u);o!==-1&&s.splice(o,1)})}function Fr(l,u){var s=Ss();try{for(var o=[].concat(l.interceptors_||[]),h=0,m=o.length;h<m&&(u=o[h](u),u&&!u.type&&ht(14),!!u);h++);return u}finally{Ii(s)}}function Sa(l){return l.changeListeners_!==void 0&&l.changeListeners_.length>0}function Bd(l,u){var s=l.changeListeners_||(l.changeListeners_=[]);return s.push(u),H1(function(){var o=s.indexOf(u);o!==-1&&s.splice(o,1)})}function Ea(l,u){var s=Ss(),o=l.changeListeners_;if(o){o=o.slice();for(var h=0,m=o.length;h<m;h++)o[h](u);Ii(s)}}function h2(l,u,s){return tu(function(){var o,h=Os(l,s)[Ye];(o=u)!=null||(u=XA(l)),dc(u).forEach(function(m){return h.make_(m,u[m])})}),l}var m0=Symbol("mobx-keys");function v2(l,u,s){return Ji(l)?hb(l,l,u,s):(tu(function(){var o=Os(l,s)[Ye];if(!l[m0]){var h=Object.getPrototypeOf(l),m=new Set([].concat(dc(l),dc(h)));m.delete("constructor"),m.delete(Ye),Cd(h,m0,m)}l[m0].forEach(function(p){return o.make_(p,u&&p in u?u[p]:!0)})}),l)}var Lp="splice",hi="update",m2=1e4,g2={get:function(u,s){var o=u[Ye];return s===Ye?o:s==="length"?o.getArrayLength_():typeof s=="string"&&!isNaN(s)?o.get_(parseInt(s)):Zi(Rm,s)?Rm[s]:u[s]},set:function(u,s,o){var h=u[Ye];return s==="length"&&h.setArrayLength_(o),typeof s=="symbol"||isNaN(s)?u[s]=o:h.set_(parseInt(s),o),!0},preventExtensions:function(){ht(15)}},sp=(function(){function l(s,o,h,m){s===void 0&&(s="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=h,this.legacyMode_=m,this.atom_=new eu(s),this.enhancer_=function(p,x){return o(p,x,"ObservableArray[..]")}}var u=l.prototype;return u.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},u.dehanceValues_=function(o){return this.dehancer!==void 0&&o.length>0?o.map(this.dehancer):o},u.intercept_=function(o){return zd(this,o)},u.observe_=function(o,h){return h===void 0&&(h=!1),h&&o({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Bd(this,o)},u.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},u.setArrayLength_=function(o){(typeof o!="number"||isNaN(o)||o<0)&&ht("Out of range: "+o);var h=this.values_.length;if(o!==h)if(o>h){for(var m=new Array(o-h),p=0;p<o-h;p++)m[p]=void 0;this.spliceWithArray_(h,0,m)}else this.spliceWithArray_(o,h-o)},u.updateArrayLength_=function(o,h){o!==this.lastKnownLength_&&ht(16),this.lastKnownLength_+=h,this.legacyMode_&&h>0&&Sb(o+h+1)},u.spliceWithArray_=function(o,h,m){var p=this;this.atom_;var x=this.values_.length;if(o===void 0?o=0:o>x?o=x:o<0&&(o=Math.max(0,x+o)),arguments.length===1?h=x-o:h==null?h=0:h=Math.max(0,Math.min(h,x-o)),m===void 0&&(m=G0),Pr(this)){var _=Fr(this,{object:this.proxy_,type:Lp,index:o,removedCount:h,added:m});if(!_)return G0;h=_.removedCount,m=_.added}if(m=m.length===0?m:m.map(function(R){return p.enhancer_(R,void 0)}),this.legacyMode_){var E=m.length-h;this.updateArrayLength_(x,E)}var w=this.spliceItemsIntoValues_(o,h,m);return(h!==0||m.length!==0)&&this.notifyArraySplice_(o,m,w),this.dehanceValues_(w)},u.spliceItemsIntoValues_=function(o,h,m){if(m.length<m2){var p;return(p=this.values_).splice.apply(p,[o,h].concat(m))}else{var x=this.values_.slice(o,o+h),_=this.values_.slice(o+h);this.values_.length+=m.length-h;for(var E=0;E<m.length;E++)this.values_[o+E]=m[E];for(var w=0;w<_.length;w++)this.values_[o+m.length+w]=_[w];return x}},u.notifyArrayChildUpdate_=function(o,h,m){var p=!this.owned_&&Ed(),x=Sa(this),_=x||p?{observableKind:"array",object:this.proxy_,type:hi,debugObjectName:this.atom_.name_,index:o,newValue:h,oldValue:m}:null;this.atom_.reportChanged(),x&&Ea(this,_)},u.notifyArraySplice_=function(o,h,m){var p=!this.owned_&&Ed(),x=Sa(this),_=x||p?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Lp,index:o,removed:m,added:h,removedCount:m.length,addedCount:h.length}:null;this.atom_.reportChanged(),x&&Ea(this,_)},u.get_=function(o){if(this.legacyMode_&&o>=this.values_.length){console.warn("[mobx] Out of bounds read: "+o);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[o])},u.set_=function(o,h){var m=this.values_;if(this.legacyMode_&&o>m.length&&ht(17,o,m.length),o<m.length){this.atom_;var p=m[o];if(Pr(this)){var x=Fr(this,{type:hi,object:this.proxy_,index:o,newValue:h});if(!x)return;h=x.newValue}h=this.enhancer_(h,p);var _=h!==p;_&&(m[o]=h,this.notifyArrayChildUpdate_(o,h,p))}else{for(var E=new Array(o+1-m.length),w=0;w<E.length-1;w++)E[w]=void 0;E[E.length-1]=h,this.spliceWithArray_(m.length,0,E)}},l})();function p2(l,u,s,o){return s===void 0&&(s="ObservableArray"),o===void 0&&(o=!1),j1(),tu(function(){var h=new sp(s,u,o,!1);G1(h.values_,Ye,h);var m=new Proxy(h.values_,g2);return h.proxy_=m,l&&l.length&&h.spliceWithArray_(0,0,l),m})}var Rm={clear:function(){return this.splice(0)},replace:function(u){var s=this[Ye];return s.spliceWithArray_(0,s.values_.length,u)},toJSON:function(){return this.slice()},splice:function(u,s){for(var o=arguments.length,h=new Array(o>2?o-2:0),m=2;m<o;m++)h[m-2]=arguments[m];var p=this[Ye];switch(arguments.length){case 0:return[];case 1:return p.spliceWithArray_(u);case 2:return p.spliceWithArray_(u,s)}return p.spliceWithArray_(u,s,h)},spliceWithArray:function(u,s,o){return this[Ye].spliceWithArray_(u,s,o)},push:function(){for(var u=this[Ye],s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];return u.spliceWithArray_(u.values_.length,0,o),u.values_.length},pop:function(){return this.splice(Math.max(this[Ye].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var u=this[Ye],s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];return u.spliceWithArray_(0,0,o),u.values_.length},reverse:function(){return ye.trackingDerivation&&ht(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ye.trackingDerivation&&ht(37,"sort");var u=this.slice();return u.sort.apply(u,arguments),this.replace(u),this},remove:function(u){var s=this[Ye],o=s.dehanceValues_(s.values_).indexOf(u);return o>-1?(this.splice(o,1),!0):!1}};Ht("at",Lr);Ht("concat",Lr);Ht("flat",Lr);Ht("includes",Lr);Ht("indexOf",Lr);Ht("join",Lr);Ht("lastIndexOf",Lr);Ht("slice",Lr);Ht("toString",Lr);Ht("toLocaleString",Lr);Ht("toSorted",Lr);Ht("toSpliced",Lr);Ht("with",Lr);Ht("every",Ca);Ht("filter",Ca);Ht("find",Ca);Ht("findIndex",Ca);Ht("findLast",Ca);Ht("findLastIndex",Ca);Ht("flatMap",Ca);Ht("forEach",Ca);Ht("map",Ca);Ht("some",Ca);Ht("toReversed",Ca);Ht("reduce",pb);Ht("reduceRight",pb);function Ht(l,u){typeof Array.prototype[l]=="function"&&(Rm[l]=u(l))}function Lr(l){return function(){var u=this[Ye];u.atom_.reportObserved();var s=u.dehanceValues_(u.values_);return s[l].apply(s,arguments)}}function Ca(l){return function(u,s){var o=this,h=this[Ye];h.atom_.reportObserved();var m=h.dehanceValues_(h.values_);return m[l](function(p,x){return u.call(s,p,x,o)})}}function pb(l){return function(){var u=this,s=this[Ye];s.atom_.reportObserved();var o=s.dehanceValues_(s.values_),h=arguments[0];return arguments[0]=function(m,p,x){return h(m,p,x,u)},o[l].apply(o,arguments)}}var b2=xs("ObservableArrayAdministration",sp);function Km(l){return km(l)&&b2(l[Ye])}var y2={},$l="add",Nm="delete",bb=(function(){function l(s,o,h){var m=this;o===void 0&&(o=ys),h===void 0&&(h="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Ye]=y2,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=o,this.name_=h,Oa(Map)||ht(18),tu(function(){m.keysAtom_=Q1("ObservableMap.keys()"),m.data_=new Map,m.hasMap_=new Map,s&&m.merge(s)})}var u=l.prototype;return u.has_=function(o){return this.data_.has(o)},u.has=function(o){var h=this;if(!ye.trackingDerivation)return this.has_(o);var m=this.hasMap_.get(o);if(!m){var p=m=new gs(this.has_(o),Gm,"ObservableMap.key?",!1);this.hasMap_.set(o,p),fb(p,function(){return h.hasMap_.delete(o)})}return m.get()},u.set=function(o,h){var m=this.has_(o);if(Pr(this)){var p=Fr(this,{type:m?hi:$l,object:this,newValue:h,name:o});if(!p)return this;h=p.newValue}return m?this.updateValue_(o,h):this.addValue_(o,h),this},u.delete=function(o){var h=this;if(this.keysAtom_,Pr(this)){var m=Fr(this,{type:Nm,object:this,name:o});if(!m)return!1}if(this.has_(o)){var p=Ed(),x=Sa(this),_=x||p?{observableKind:"map",debugObjectName:this.name_,type:Nm,object:this,oldValue:this.data_.get(o).value_,name:o}:null;return Ki(function(){var E;h.keysAtom_.reportChanged(),(E=h.hasMap_.get(o))==null||E.setNewValue_(!1);var w=h.data_.get(o);w.setNewValue_(void 0),h.data_.delete(o)}),x&&Ea(this,_),!0}return!1},u.updateValue_=function(o,h){var m=this.data_.get(o);if(h=m.prepareNewValue_(h),h!==ye.UNCHANGED){var p=Ed(),x=Sa(this),_=x||p?{observableKind:"map",debugObjectName:this.name_,type:hi,object:this,oldValue:m.value_,name:o,newValue:h}:null;m.setNewValue_(h),x&&Ea(this,_)}},u.addValue_=function(o,h){var m=this;this.keysAtom_,Ki(function(){var E,w=new gs(h,m.enhancer_,"ObservableMap.key",!1);m.data_.set(o,w),h=w.value_,(E=m.hasMap_.get(o))==null||E.setNewValue_(!0),m.keysAtom_.reportChanged()});var p=Ed(),x=Sa(this),_=x||p?{observableKind:"map",debugObjectName:this.name_,type:$l,object:this,name:o,newValue:h}:null;x&&Ea(this,_)},u.get=function(o){return this.has(o)?this.dehanceValue_(this.data_.get(o).get()):this.dehanceValue_(void 0)},u.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},u.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},u.values=function(){var o=this,h=this.keys();return Up({next:function(){var p=h.next(),x=p.done,_=p.value;return{done:x,value:x?void 0:o.get(_)}}})},u.entries=function(){var o=this,h=this.keys();return Up({next:function(){var p=h.next(),x=p.done,_=p.value;return{done:x,value:x?void 0:[_,o.get(_)]}}})},u[Symbol.iterator]=function(){return this.entries()},u.forEach=function(o,h){for(var m=cc(this),p;!(p=m()).done;){var x=p.value,_=x[0],E=x[1];o.call(h,E,_,this)}},u.merge=function(o){var h=this;return Es(o)&&(o=new Map(o)),Ki(function(){Ji(o)?kA(o).forEach(function(m){return h.set(m,o[m])}):Array.isArray(o)?o.forEach(function(m){var p=m[0],x=m[1];return h.set(p,x)}):bc(o)?(HA(o)||ht(19,o),o.forEach(function(m,p){return h.set(p,m)})):o!=null&&ht(20,o)}),this},u.clear=function(){var o=this;Ki(function(){eb(function(){for(var h=cc(o.keys()),m;!(m=h()).done;){var p=m.value;o.delete(p)}})})},u.replace=function(o){var h=this;return Ki(function(){for(var m=A2(o),p=new Map,x=!1,_=cc(h.data_.keys()),E;!(E=_()).done;){var w=E.value;if(!m.has(w)){var R=h.delete(w);if(R)x=!0;else{var V=h.data_.get(w);p.set(w,V)}}}for(var Q=cc(m.entries()),k;!(k=Q()).done;){var j=k.value,W=j[0],se=j[1],ge=h.data_.has(W);if(h.set(W,se),h.data_.has(W)){var be=h.data_.get(W);p.set(W,be),ge||(x=!0)}}if(!x)if(h.data_.size!==p.size)h.keysAtom_.reportChanged();else for(var he=h.data_.keys(),F=p.keys(),le=he.next(),ue=F.next();!le.done;){if(le.value!==ue.value){h.keysAtom_.reportChanged();break}le=he.next(),ue=F.next()}h.data_=p}),this},u.toString=function(){return"[object ObservableMap]"},u.toJSON=function(){return Array.from(this)},u.observe_=function(o,h){return Bd(this,o)},u.intercept_=function(o){return zd(this,o)},yc(l,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),Es=xs("ObservableMap",bb);function Up(l){return l[Symbol.toStringTag]="MapIterator",cp(l)}function A2(l){if(bc(l)||Es(l))return l;if(Array.isArray(l))return new Map(l);if(Ji(l)){var u=new Map;for(var s in l)u.set(s,l[s]);return u}else return ht(21,l)}var _2={},yb=(function(){function l(s,o,h){var m=this;o===void 0&&(o=ys),h===void 0&&(h="ObservableSet"),this.name_=void 0,this[Ye]=_2,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=h,Oa(Set)||ht(22),this.enhancer_=function(p,x){return o(p,x,h)},tu(function(){m.atom_=Q1(m.name_),s&&m.replace(s)})}var u=l.prototype;return u.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},u.clear=function(){var o=this;Ki(function(){eb(function(){for(var h=cc(o.data_.values()),m;!(m=h()).done;){var p=m.value;o.delete(p)}})})},u.forEach=function(o,h){for(var m=cc(this),p;!(p=m()).done;){var x=p.value;o.call(h,x,x,this)}},u.add=function(o){var h=this;if(this.atom_,Pr(this)){var m=Fr(this,{type:$l,object:this,newValue:o});if(!m)return this;o=m.newValue}if(!this.has(o)){Ki(function(){h.data_.add(h.enhancer_(o,void 0)),h.atom_.reportChanged()});var p=!1,x=Sa(this),_=x||p?{observableKind:"set",debugObjectName:this.name_,type:$l,object:this,newValue:o}:null;x&&Ea(this,_)}return this},u.delete=function(o){var h=this;if(Pr(this)){var m=Fr(this,{type:Nm,object:this,oldValue:o});if(!m)return!1}if(this.has(o)){var p=!1,x=Sa(this),_=x||p?{observableKind:"set",debugObjectName:this.name_,type:Nm,object:this,oldValue:o}:null;return Ki(function(){h.atom_.reportChanged(),h.data_.delete(o)}),x&&Ea(this,_),!0}return!1},u.has=function(o){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(o))},u.entries=function(){var o=this.values();return jp({next:function(){var m=o.next(),p=m.value,x=m.done;return x?{value:void 0,done:x}:{value:[p,p],done:x}}})},u.keys=function(){return this.values()},u.values=function(){this.atom_.reportObserved();var o=this,h=this.data_.values();return jp({next:function(){var p=h.next(),x=p.value,_=p.done;return _?{value:void 0,done:_}:{value:o.dehanceValue_(x),done:_}}})},u.intersection=function(o){if(Xi(o)&&!oi(o))return o.intersection(this);var h=new Set(this);return h.intersection(o)},u.union=function(o){if(Xi(o)&&!oi(o))return o.union(this);var h=new Set(this);return h.union(o)},u.difference=function(o){return new Set(this).difference(o)},u.symmetricDifference=function(o){if(Xi(o)&&!oi(o))return o.symmetricDifference(this);var h=new Set(this);return h.symmetricDifference(o)},u.isSubsetOf=function(o){return new Set(this).isSubsetOf(o)},u.isSupersetOf=function(o){return new Set(this).isSupersetOf(o)},u.isDisjointFrom=function(o){if(Xi(o)&&!oi(o))return o.isDisjointFrom(this);var h=new Set(this);return h.isDisjointFrom(o)},u.replace=function(o){var h=this;return oi(o)&&(o=new Set(o)),Ki(function(){Array.isArray(o)?(h.clear(),o.forEach(function(m){return h.add(m)})):Xi(o)?(h.clear(),o.forEach(function(m){return h.add(m)})):o!=null&&ht("Cannot initialize set from "+o)}),this},u.observe_=function(o,h){return Bd(this,o)},u.intercept_=function(o){return zd(this,o)},u.toJSON=function(){return Array.from(this)},u.toString=function(){return"[object ObservableSet]"},u[Symbol.iterator]=function(){return this.values()},yc(l,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),oi=xs("ObservableSet",yb);function jp(l){return l[Symbol.toStringTag]="SetIterator",cp(l)}var Hp=Object.create(null),kp="remove",Ab=(function(){function l(s,o,h,m){o===void 0&&(o=new Map),m===void 0&&(m=m_),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=s,this.values_=o,this.name_=h,this.defaultAnnotation_=m,this.keysAtom_=new eu("ObservableObject.keys"),this.isPlainObject_=Ji(this.target_)}var u=l.prototype;return u.getObservablePropValue_=function(o){return this.values_.get(o).get()},u.setObservablePropValue_=function(o,h){var m=this.values_.get(o);if(m instanceof wa)return m.set(h),!0;if(Pr(this)){var p=Fr(this,{type:hi,object:this.proxy_||this.target_,name:o,newValue:h});if(!p)return null;h=p.newValue}if(h=m.prepareNewValue_(h),h!==ye.UNCHANGED){var x=Sa(this),_=!1,E=x||_?{type:hi,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:m.value_,name:o,newValue:h}:null;m.setNewValue_(h),x&&Ea(this,E)}return!0},u.get_=function(o){return ye.trackingDerivation&&!Zi(this.target_,o)&&this.has_(o),this.target_[o]},u.set_=function(o,h,m){return m===void 0&&(m=!1),Zi(this.target_,o)?this.values_.has(o)?this.setObservablePropValue_(o,h):m?Reflect.set(this.target_,o,h):(this.target_[o]=h,!0):this.extend_(o,{value:h,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,m)},u.has_=function(o){if(!ye.trackingDerivation)return o in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var h=this.pendingKeys_.get(o);return h||(h=new gs(o in this.target_,Gm,"ObservableObject.key?",!1),this.pendingKeys_.set(o,h)),h.get()},u.make_=function(o,h){if(h===!0&&(h=this.defaultAnnotation_),h!==!1){if(!(o in this.target_)){var m;if((m=this.target_[ci])!=null&&m[o])return;ht(1,h.annotationType_,this.name_+"."+o.toString())}for(var p=this.target_;p&&p!==Hm;){var x=Em(p,o);if(x){var _=h.make_(this,o,x,p);if(_===0)return;if(_===1)break}p=Object.getPrototypeOf(p)}qp(this,h,o)}},u.extend_=function(o,h,m,p){if(p===void 0&&(p=!1),m===!0&&(m=this.defaultAnnotation_),m===!1)return this.defineProperty_(o,h,p);var x=m.extend_(this,o,h,p);return x&&qp(this,m,o),x},u.defineProperty_=function(o,h,m){m===void 0&&(m=!1),this.keysAtom_;try{ea();var p=this.delete_(o);if(!p)return p;if(Pr(this)){var x=Fr(this,{object:this.proxy_||this.target_,name:o,type:$l,newValue:h.value});if(!x)return null;var _=x.newValue;h.value!==_&&(h=bs({},h,{value:_}))}if(m){if(!Reflect.defineProperty(this.target_,o,h))return!1}else fi(this.target_,o,h);this.notifyPropertyAddition_(o,h.value)}finally{ta()}return!0},u.defineObservableProperty_=function(o,h,m,p){p===void 0&&(p=!1),this.keysAtom_;try{ea();var x=this.delete_(o);if(!x)return x;if(Pr(this)){var _=Fr(this,{object:this.proxy_||this.target_,name:o,type:$l,newValue:h});if(!_)return null;h=_.newValue}var E=Gp(o),w={configurable:ye.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:E.get,set:E.set};if(p){if(!Reflect.defineProperty(this.target_,o,w))return!1}else fi(this.target_,o,w);var R=new gs(h,m,"ObservableObject.key",!1);this.values_.set(o,R),this.notifyPropertyAddition_(o,R.value_)}finally{ta()}return!0},u.defineComputedProperty_=function(o,h,m){m===void 0&&(m=!1),this.keysAtom_;try{ea();var p=this.delete_(o);if(!p)return p;if(Pr(this)){var x=Fr(this,{object:this.proxy_||this.target_,name:o,type:$l,newValue:void 0});if(!x)return null}h.name||(h.name="ObservableObject.key"),h.context=this.proxy_||this.target_;var _=Gp(o),E={configurable:ye.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:_.get,set:_.set};if(m){if(!Reflect.defineProperty(this.target_,o,E))return!1}else fi(this.target_,o,E);this.values_.set(o,new wa(h)),this.notifyPropertyAddition_(o,void 0)}finally{ta()}return!0},u.delete_=function(o,h){if(h===void 0&&(h=!1),this.keysAtom_,!Zi(this.target_,o))return!0;if(Pr(this)){var m=Fr(this,{object:this.proxy_||this.target_,name:o,type:kp});if(!m)return null}try{var p;ea();var x=Sa(this),_=!1,E=this.values_.get(o),w=void 0;if(!E&&(x||_)){var R;w=(R=Em(this.target_,o))==null?void 0:R.value}if(h){if(!Reflect.deleteProperty(this.target_,o))return!1}else delete this.target_[o];if(E&&(this.values_.delete(o),E instanceof gs&&(w=E.value_),lb(E)),this.keysAtom_.reportChanged(),(p=this.pendingKeys_)==null||(p=p.get(o))==null||p.set(o in this.target_),x||_){var V={type:kp,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:w,name:o};x&&Ea(this,V)}}finally{ta()}return!0},u.observe_=function(o,h){return Bd(this,o)},u.intercept_=function(o){return zd(this,o)},u.notifyPropertyAddition_=function(o,h){var m,p=Sa(this),x=!1;if(p||x){var _=p||x?{type:$l,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:o,newValue:h}:null;p&&Ea(this,_)}(m=this.pendingKeys_)==null||(m=m.get(o))==null||m.set(!0),this.keysAtom_.reportChanged()},u.ownKeys_=function(){return this.keysAtom_.reportObserved(),dc(this.target_)},u.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},l})();function Os(l,u){var s;if(Zi(l,Ye))return l;var o=(s=u?.name)!=null?s:"ObservableObject",h=new Ab(l,new Map,String(o),w_(u));return Cd(l,Ye,h),l}var x2=xs("ObservableObjectAdministration",Ab);function Gp(l){return Hp[l]||(Hp[l]={get:function(){return this[Ye].getObservablePropValue_(l)},set:function(s){return this[Ye].setObservablePropValue_(l,s)}})}function Zm(l){return km(l)?x2(l[Ye]):!1}function qp(l,u,s){var o;(o=l.target_[ci])==null||delete o[s]}var S2=xb(0),E2=(function(){var l=!1,u={};return Object.defineProperty(u,"0",{set:function(){l=!0}}),Object.create(u)[0]=1,l===!1})(),g0=0,_b=function(){};function O2(l,u){Object.setPrototypeOf?Object.setPrototypeOf(l.prototype,u):l.prototype.__proto__!==void 0?l.prototype.__proto__=u:l.prototype=u}O2(_b,Array.prototype);var op=(function(l){function u(o,h,m,p){var x;return m===void 0&&(m="ObservableArray"),p===void 0&&(p=!1),x=l.call(this)||this,tu(function(){var _=new sp(m,h,p,!0);_.proxy_=x,G1(x,Ye,_),o&&o.length&&x.spliceWithArray(0,0,o),E2&&Object.defineProperty(x,"0",S2)}),x}V1(u,l);var s=u.prototype;return s.concat=function(){this[Ye].atom_.reportObserved();for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];return Array.prototype.concat.apply(this.slice(),m.map(function(x){return Km(x)?x.slice():x}))},s[Symbol.iterator]=function(){var o=this,h=0;return cp({next:function(){return h<o.length?{value:o[h++],done:!1}:{done:!0,value:void 0}}})},yc(u,[{key:"length",get:function(){return this[Ye].getArrayLength_()},set:function(h){this[Ye].setArrayLength_(h)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(_b);Object.entries(Rm).forEach(function(l){var u=l[0],s=l[1];u!=="concat"&&Cd(op.prototype,u,s)});function xb(l){return{enumerable:!1,configurable:!0,get:function(){return this[Ye].get_(l)},set:function(s){this[Ye].set_(l,s)}}}function w2(l){fi(op.prototype,""+l,xb(l))}function Sb(l){if(l>g0){for(var u=g0;u<l+100;u++)w2(u);g0=l}}Sb(1e3);function T2(l,u,s){return new op(l,u,s)}function Dm(l,u){if(typeof l=="object"&&l!==null){if(Km(l))return u!==void 0&&ht(23),l[Ye].atom_;if(oi(l))return l.atom_;if(Es(l)){if(u===void 0)return l.keysAtom_;var s=l.data_.get(u)||l.hasMap_.get(u);return s||ht(25,u,J0(l)),s}if(Zm(l)){if(!u)return ht(26);var o=l[Ye].values_.get(u);return o||ht(27,u,J0(l)),o}if(ip(l)||Xm(l)||Cm(l))return l}else if(Oa(l)&&Cm(l[Ye]))return l[Ye];ht(28)}function M2(l,u){if(l||ht(29),ip(l)||Xm(l)||Cm(l)||Es(l)||oi(l))return l;if(l[Ye])return l[Ye];ht(24,l)}function J0(l,u){var s;if(u!==void 0)s=Dm(l,u);else{if(hc(l))return l.name;Zm(l)||Es(l)||oi(l)?s=M2(l):s=Dm(l)}return s.name_}function tu(l){var u=Ss(),s=Vm(!0);ea();try{return l()}finally{ta(),Qm(s),Ii(u)}}var Yp=Hm.toString;function Eb(l,u,s){return s===void 0&&(s=-1),W0(l,u,s)}function W0(l,u,s,o,h){if(l===u)return l!==0||1/l===1/u;if(l==null||u==null)return!1;if(l!==l)return u!==u;var m=typeof l;if(m!=="function"&&m!=="object"&&typeof u!="object")return!1;var p=Yp.call(l);if(p!==Yp.call(u))return!1;switch(p){case"[object RegExp]":case"[object String]":return""+l==""+u;case"[object Number]":return+l!=+l?+u!=+u:+l==0?1/+l===1/u:+l==+u;case"[object Date]":case"[object Boolean]":return+l==+u;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(l)===Symbol.valueOf.call(u);case"[object Map]":case"[object Set]":s>=0&&s++;break}l=Vp(l),u=Vp(u);var x=p==="[object Array]";if(!x){if(typeof l!="object"||typeof u!="object")return!1;var _=l.constructor,E=u.constructor;if(_!==E&&!(Oa(_)&&_ instanceof _&&Oa(E)&&E instanceof E)&&"constructor"in l&&"constructor"in u)return!1}if(s===0)return!1;s<0&&(s=-1),o=o||[],h=h||[];for(var w=o.length;w--;)if(o[w]===l)return h[w]===u;if(o.push(l),h.push(u),x){if(w=l.length,w!==u.length)return!1;for(;w--;)if(!W0(l[w],u[w],s-1,o,h))return!1}else{var R=Object.keys(l),V=R.length;if(Object.keys(u).length!==V)return!1;for(var Q=0;Q<V;Q++){var k=R[Q];if(!(Zi(u,k)&&W0(l[k],u[k],s-1,o,h)))return!1}}return o.pop(),h.pop(),!0}function Vp(l){return Km(l)?l.slice():bc(l)||Es(l)||Xi(l)||oi(l)?Array.from(l.entries()):l}var Qp,C2=((Qp=jm().Iterator)==null?void 0:Qp.prototype)||{};function cp(l){return l[Symbol.iterator]=R2,Object.assign(Object.create(C2),l)}function R2(){return this}["Symbol","Map","Set"].forEach(function(l){var u=jm();typeof u[l]>"u"&&ht("MobX requires global '"+l+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:X_,extras:{getDebugName:J0},$mobx:Ye});if(!de.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!h2)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var N2=d1();function D2(l){l()}function z2(l){l||(l=D2),i2({reactionScheduler:l})}function B2(l){return l2(l)}var L2=1e4,U2=1e4,j2=(function(){function l(u){var s=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:u}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(o){o===void 0&&(o=L2),clearTimeout(s.sweepTimeout),s.sweepTimeout=void 0;var h=Date.now();s.registrations.forEach(function(m,p){h-m.registeredAt>=o&&(s.finalize(m.value),s.registrations.delete(p))}),s.registrations.size>0&&s.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){s.sweep(0)}})}return Object.defineProperty(l.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(u,s,o){this.registrations.set(o,{value:s,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(l.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(u){this.registrations.delete(u)}}),Object.defineProperty(l.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,U2))}}),l})(),H2=typeof FinalizationRegistry<"u"?FinalizationRegistry:j2,Md=new H2(function(l){var u;(u=l.reaction)===null||u===void 0||u.dispose(),l.reaction=null}),p0={exports:{}},b0={};/**
 * @license React
 * use-sync-external-store-shim.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 Xp;function k2(){if(Xp)return b0;Xp=1;var l=Um();function u(R,V){return R===V&&(R!==0||1/R===1/V)||R!==R&&V!==V}var s=typeof Object.is=="function"?Object.is:u,o=l.useState,h=l.useEffect,m=l.useLayoutEffect,p=l.useDebugValue;function x(R,V){var Q=V(),k=o({inst:{value:Q,getSnapshot:V}}),j=k[0].inst,W=k[1];return m(function(){j.value=Q,j.getSnapshot=V,_(j)&&W({inst:j})},[R,Q,V]),h(function(){return _(j)&&W({inst:j}),R(function(){_(j)&&W({inst:j})})},[R]),p(Q),Q}function _(R){var V=R.getSnapshot;R=R.value;try{var Q=V();return!s(R,Q)}catch{return!0}}function E(R,V){return V()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E:x;return b0.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:w,b0}var Kp;function G2(){return Kp||(Kp=1,p0.exports=k2()),p0.exports}var q2=G2();function Zp(l){l.reaction=new vi("observer".concat(l.name),function(){var u;l.stateVersion=Symbol(),(u=l.onStoreChange)===null||u===void 0||u.call(l)})}function Y2(l,u){u===void 0&&(u="observed");var s=me.useRef(null);if(!s.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:u,subscribe:function(x){return Md.unregister(o),o.onStoreChange=x,o.reaction||(Zp(o),o.stateVersion=Symbol()),function(){var _;o.onStoreChange=null,(_=o.reaction)===null||_===void 0||_.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};s.current=o}var h=s.current;h.reaction||(Zp(h),Md.register(s,h,h)),me.useDebugValue(h.reaction,B2),q2.useSyncExternalStore(h.subscribe,h.getSnapshot,h.getSnapshot);var m,p;if(h.reaction.track(function(){try{m=l()}catch(x){p=x}}),p)throw p;return m}var y0,A0,Ob=typeof Symbol=="function"&&Symbol.for,V2=(A0=(y0=Object.getOwnPropertyDescriptor(function(){},"name"))===null||y0===void 0?void 0:y0.configurable)!==null&&A0!==void 0?A0:!1,Ip=Ob?Symbol.for("react.forward_ref"):typeof de.forwardRef=="function"&&de.forwardRef(function(l){return null}).$$typeof,Jp=Ob?Symbol.for("react.memo"):typeof de.memo=="function"&&de.memo(function(l){return null}).$$typeof;function Q2(l,u){var s;if(Jp&&l.$$typeof===Jp)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var o=(s=void 0)!==null&&s!==void 0?s:!1,h=l,m=l.displayName||l.name;if(Ip&&l.$$typeof===Ip&&(o=!0,h=l.render,typeof h!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var p=function(x,_){return Y2(function(){return h(x,_)},m)};return p.displayName=l.displayName,V2&&Object.defineProperty(p,"name",{value:l.name,writable:!0,configurable:!0}),l.contextTypes&&(p.contextTypes=l.contextTypes),o&&(p=de.forwardRef(p)),p=de.memo(p),K2(l,p),p}var X2={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function K2(l,u){Object.keys(l).forEach(function(s){X2[s]||Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(l,s))})}var _0;z2(N2.unstable_batchedUpdates);_0=Md.finalizeAllImmediately;function Z2(l,u){if(Wp(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var s=Object.keys(l),o=Object.keys(u);if(s.length!==o.length)return!1;for(var h=0;h<s.length;h++)if(!Object.hasOwnProperty.call(u,s[h])||!Wp(l[s[h]],u[s[h]]))return!1;return!0}function Wp(l,u){return l===u?l!==0||1/l===1/u:l!==l&&u!==u}var Pp=Symbol("patchMixins"),wb=Symbol("patchedDefinition");function I2(l,u){var s=l[Pp]=l[Pp]||{},o=s[u]=s[u]||{};return o.locks=o.locks||0,o.methods=o.methods||[],o}function Fp(l,u){for(var s=this,o=arguments.length,h=new Array(o>2?o-2:0),m=2;m<o;m++)h[m-2]=arguments[m];u.locks++;try{var p;return l!=null&&(p=l.apply(this,h)),p}finally{u.locks--,u.locks===0&&u.methods.forEach(function(x){x.apply(s,h)})}}function $p(l,u){var s=function(){for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];Fp.call.apply(Fp,[this,l,u].concat(m))};return s}function J2(l,u,s){var o=I2(l,u);o.methods.indexOf(s)<0&&o.methods.push(s);var h=Object.getOwnPropertyDescriptor(l,u);if(!(h&&h[wb])){var m=l[u],p=Tb(l,u,h?h.enumerable:void 0,o,m);Object.defineProperty(l,u,p)}}function Tb(l,u,s,o,h){var m,p=$p(h,o);return m={},m[wb]=!0,m.get=function(){return p},m.set=function(_){if(this===l)p=$p(_,o);else{var E=Tb(this,u,s,o,_);Object.defineProperty(this,u,E)}},m.configurable=!0,m.enumerable=s,m}var e1=Symbol("ObserverAdministration"),t1=Symbol("isMobXReactObserver");function P0(l){var u;return(u=l[e1])!=null?u:l[e1]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:F0(l.constructor),state:void 0,props:void 0,context:void 0}}function W2(l){var u=l.prototype;if(l[t1]){var s=F0(l);throw new Error("The provided component class ("+s+") has already been declared as an observer component.")}else l[t1]=!0;if(u.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(l.__proto__!==de.PureComponent){if(!u.shouldComponentUpdate)u.shouldComponentUpdate=n1;else if(u.shouldComponentUpdate!==n1)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}var o=u.render;if(typeof o!="function"){var h=F0(l);throw new Error("[mobx-react] class component ("+h+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}u.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:P2.call(this,o)}),this.render()};var m=u.componentDidMount;return u.componentDidMount=function(){var p=this,x=P0(this);return x.mounted=!0,Md.unregister(this),x.forceUpdate=function(){return p.forceUpdate()},(!x.reaction||x.reactionInvalidatedBeforeMount)&&x.forceUpdate(),m?.apply(this,arguments)},J2(u,"componentWillUnmount",function(){var p,x=P0(this);(p=x.reaction)==null||p.dispose(),x.reaction=null,x.forceUpdate=null,x.mounted=!1,x.reactionInvalidatedBeforeMount=!1}),l}function F0(l){return l.displayName||l.name||"<component>"}function P2(l){var u=l.bind(this),s=P0(this);function o(){s.reaction||(s.reaction=F2(s),s.mounted||Md.register(this,s,this));var h=void 0,m=void 0;if(s.reaction.track(function(){try{m=U_(!1,u)}catch(p){h=p}}),h)throw h;return m}return o}function F2(l){return new vi(l.name+".render()",function(){if(!l.mounted){l.reactionInvalidatedBeforeMount=!0;return}try{l.forceUpdate==null||l.forceUpdate()}catch{var u;(u=l.reaction)==null||u.dispose(),l.reaction=null}})}function n1(l,u){return this.state!==u?!0:!Z2(this.props,l)}function Im(l,u){return l.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(de.Component,l)||Object.prototype.isPrototypeOf.call(de.PureComponent,l)?W2(l):Q2(l)}me.version.split(".")[0];if(!de.Component)throw new Error("mobx-react requires React to be available");if(!xn)throw new Error("mobx-react requires mobx to be available");var _d={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var $2=_d.exports,r1;function ex(){return r1||(r1=1,(function(l,u){(function(){var s,o="4.17.21",h=200,m="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",x="Invalid `variable` option passed into `_.template`",_="__lodash_hash_undefined__",E=500,w="__lodash_placeholder__",R=1,V=2,Q=4,k=1,j=2,W=1,se=2,ge=4,be=8,he=16,F=32,le=64,ue=128,ce=256,we=512,He=30,Se="...",Ue=800,Ke=16,Ae=1,ie=2,C=3,X=1/0,B=9007199254740991,pe=17976931348623157e292,O=NaN,K=4294967295,oe=K-1,ee=K>>>1,ve=[["ary",ue],["bind",W],["bindKey",se],["curry",be],["curryRight",he],["flip",we],["partial",F],["partialRight",le],["rearg",ce]],Ce="[object Arguments]",Oe="[object Array]",Ve="[object AsyncFunction]",Qe="[object Boolean]",pt="[object Date]",vt="[object DOMException]",Dt="[object Error]",Kt="[object Function]",Sn="[object GeneratorFunction]",Gt="[object Map]",_r="[object Number]",nu="[object Null]",Mt="[object Object]",vn="[object Promise]",un="[object Proxy]",Ur="[object RegExp]",Zt="[object Set]",Nn="[object String]",Ra="[object Symbol]",ws="[object Undefined]",qt="[object WeakMap]",mi="[object WeakSet]",Ft="[object ArrayBuffer]",mn="[object DataView]",En="[object Float32Array]",Ac="[object Float64Array]",_c="[object Int8Array]",xc="[object Int16Array]",Pi="[object Int32Array]",Fi="[object Uint8Array]",ra="[object Uint8ClampedArray]",$i="[object Uint16Array]",gi="[object Uint32Array]",Jm=/\b__p \+= '';/g,Ld=/\b(__p \+=) '' \+/g,Ud=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ts=/&(?:amp|lt|gt|quot|#39);/g,el=/[&<>"']/g,Wm=RegExp(Ts.source),jd=RegExp(el.source),Hd=/<%-([\s\S]+?)%>/g,Sc=/<%([\s\S]+?)%>/g,Ms=/<%=([\s\S]+?)%>/g,kd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pm=/^\w*$/,Na=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sn=/[\\^$.*+?()[\]{}|]/g,Dn=RegExp(sn.source),Da=/^\s+/,Ec=/\s/,Fm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$m=/\{\n\/\* \[wrapped with (.+)\] \*/,Gd=/,? & /,ru=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Oc=/[()=,{}\[\]\/\s]/,tl=/\\(\\)?/g,nl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rl=/\w*$/,al=/^[-+]0x[0-9a-f]+$/i,on=/^0b[01]+$/i,qd=/^\[object .+?Constructor\]$/,Yd=/^0o[0-7]+$/i,pi=/^(?:0|[1-9]\d*)$/,il=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cs=/($^)/,Vd=/['\n\r\u2028\u2029\\]/g,au="\\ud800-\\udfff",eg="\\u0300-\\u036f",Rs="\\ufe20-\\ufe2f",Ns="\\u20d0-\\u20ff",jr=eg+Rs+Ns,Ds="\\u2700-\\u27bf",wc="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",Tc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mc="\\u2000-\\u206f",tg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cc="A-Z\\xc0-\\xd6\\xd8-\\xde",Zn="\\ufe0e\\ufe0f",Rc=ll+Tc+Mc+tg,Nc="['’]",zs="["+au+"]",Dc="["+Rc+"]",bi="["+jr+"]",Qd="\\d+",lr="["+Ds+"]",Bs="["+wc+"]",zc="[^"+au+Rc+Qd+Ds+wc+Cc+"]",iu="\\ud83c[\\udffb-\\udfff]",ul="(?:"+bi+"|"+iu+")",Bc="[^"+au+"]",Ls="(?:\\ud83c[\\udde6-\\uddff]){2}",za="[\\ud800-\\udbff][\\udc00-\\udfff]",sl="["+Cc+"]",Lc="\\u200d",Uc="(?:"+Bs+"|"+zc+")",jc="(?:"+sl+"|"+zc+")",Xd="(?:"+Nc+"(?:d|ll|m|re|s|t|ve))?",Kd="(?:"+Nc+"(?:D|LL|M|RE|S|T|VE))?",lu=ul+"?",Us="["+Zn+"]?",Hc="(?:"+Lc+"(?:"+[Bc,Ls,za].join("|")+")"+Us+lu+")*",ol="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kc=Us+lu+Hc,Gc="(?:"+[lr,Ls,za].join("|")+")"+kc,Zd="(?:"+[Bc+bi+"?",bi,Ls,za,zs].join("|")+")",uu=RegExp(Nc,"g"),aa=RegExp(bi,"g"),su=RegExp(iu+"(?="+iu+")|"+Zd+kc,"g"),ou=RegExp([sl+"?"+Bs+"+"+Xd+"(?="+[Dc,sl,"$"].join("|")+")",jc+"+"+Kd+"(?="+[Dc,sl+Uc,"$"].join("|")+")",sl+"?"+Uc+"+"+Xd,sl+"+"+Kd,cl,ol,Qd,Gc].join("|"),"g"),Ba=RegExp("["+Lc+au+jr+Zn+"]"),qc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,js=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Id=-1,xt={};xt[En]=xt[Ac]=xt[_c]=xt[xc]=xt[Pi]=xt[Fi]=xt[ra]=xt[$i]=xt[gi]=!0,xt[Ce]=xt[Oe]=xt[Ft]=xt[Qe]=xt[mn]=xt[pt]=xt[Dt]=xt[Kt]=xt[Gt]=xt[_r]=xt[Mt]=xt[Ur]=xt[Zt]=xt[Nn]=xt[qt]=!1;var bt={};bt[Ce]=bt[Oe]=bt[Ft]=bt[mn]=bt[Qe]=bt[pt]=bt[En]=bt[Ac]=bt[_c]=bt[xc]=bt[Pi]=bt[Gt]=bt[_r]=bt[Mt]=bt[Ur]=bt[Zt]=bt[Nn]=bt[Ra]=bt[Fi]=bt[ra]=bt[$i]=bt[gi]=!0,bt[Dt]=bt[Kt]=bt[qt]=!1;var Jd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},zn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Hs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cu=parseFloat,ng=parseInt,ks=typeof um=="object"&&um&&um.Object===Object&&um,Yc=typeof self=="object"&&self&&self.Object===Object&&self,It=ks||Yc||Function("return this")(),fl=u&&!u.nodeType&&u,La=fl&&!0&&l&&!l.nodeType&&l,Wd=La&&La.exports===fl,Vc=Wd&&ks.process,ur=(function(){try{var z=La&&La.require&&La.require("util").types;return z||Vc&&Vc.binding&&Vc.binding("util")}catch{}})(),Gs=ur&&ur.isArrayBuffer,Pd=ur&&ur.isDate,Fd=ur&&ur.isMap,$d=ur&&ur.isRegExp,eh=ur&&ur.isSet,th=ur&&ur.isTypedArray;function Bn(z,P,I){switch(I.length){case 0:return z.call(P);case 1:return z.call(P,I[0]);case 2:return z.call(P,I[0],I[1]);case 3:return z.call(P,I[0],I[1],I[2])}return z.apply(P,I)}function rg(z,P,I,_e){for(var je=-1,ut=z==null?0:z.length;++je<ut;){var Jt=z[je];P(_e,Jt,I(Jt),z)}return _e}function sr(z,P){for(var I=-1,_e=z==null?0:z.length;++I<_e&&P(z[I],I,z)!==!1;);return z}function ag(z,P){for(var I=z==null?0:z.length;I--&&P(z[I],I,z)!==!1;);return z}function nh(z,P){for(var I=-1,_e=z==null?0:z.length;++I<_e;)if(!P(z[I],I,z))return!1;return!0}function Hr(z,P){for(var I=-1,_e=z==null?0:z.length,je=0,ut=[];++I<_e;){var Jt=z[I];P(Jt,I,z)&&(ut[je++]=Jt)}return ut}function qs(z,P){var I=z==null?0:z.length;return!!I&&dl(z,P,0)>-1}function Qc(z,P,I){for(var _e=-1,je=z==null?0:z.length;++_e<je;)if(I(P,z[_e]))return!0;return!1}function zt(z,P){for(var I=-1,_e=z==null?0:z.length,je=Array(_e);++I<_e;)je[I]=P(z[I],I,z);return je}function ia(z,P){for(var I=-1,_e=P.length,je=z.length;++I<_e;)z[je+I]=P[I];return z}function Xc(z,P,I,_e){var je=-1,ut=z==null?0:z.length;for(_e&&ut&&(I=z[++je]);++je<ut;)I=P(I,z[je],je,z);return I}function ig(z,P,I,_e){var je=z==null?0:z.length;for(_e&&je&&(I=z[--je]);je--;)I=P(I,z[je],je,z);return I}function Kc(z,P){for(var I=-1,_e=z==null?0:z.length;++I<_e;)if(P(z[I],I,z))return!0;return!1}var lg=Vs("length");function ug(z){return z.split("")}function sg(z){return z.match(ru)||[]}function rh(z,P,I){var _e;return I(z,function(je,ut,Jt){if(P(je,ut,Jt))return _e=ut,!1}),_e}function Ys(z,P,I,_e){for(var je=z.length,ut=I+(_e?1:-1);_e?ut--:++ut<je;)if(P(z[ut],ut,z))return ut;return-1}function dl(z,P,I){return P===P?dg(z,P,I):Ys(z,hl,I)}function Zc(z,P,I,_e){for(var je=I-1,ut=z.length;++je<ut;)if(_e(z[je],P))return je;return-1}function hl(z){return z!==z}function ah(z,P){var I=z==null?0:z.length;return I?Xs(z,P)/I:O}function Vs(z){return function(P){return P==null?s:P[z]}}function Qs(z){return function(P){return z==null?s:z[P]}}function Ic(z,P,I,_e,je){return je(z,function(ut,Jt,st){I=_e?(_e=!1,ut):P(I,ut,Jt,st)}),I}function ih(z,P){var I=z.length;for(z.sort(P);I--;)z[I]=z[I].value;return z}function Xs(z,P){for(var I,_e=-1,je=z.length;++_e<je;){var ut=P(z[_e]);ut!==s&&(I=I===s?ut:I+ut)}return I}function Ua(z,P){for(var I=-1,_e=Array(z);++I<z;)_e[I]=P(I);return _e}function og(z,P){return zt(P,function(I){return[I,z[I]]})}function lh(z){return z&&z.slice(0,Wc(z)+1).replace(Da,"")}function In(z){return function(P){return z(P)}}function Ks(z,P){return zt(P,function(I){return z[I]})}function vl(z,P){return z.has(P)}function ml(z,P){for(var I=-1,_e=z.length;++I<_e&&dl(P,z[I],0)>-1;);return I}function gl(z,P){for(var I=z.length;I--&&dl(P,z[I],0)>-1;);return I}function cg(z,P){for(var I=z.length,_e=0;I--;)z[I]===P&&++_e;return _e}var Zs=Qs(Jd),uh=Qs(zn);function sh(z){return"\\"+Hs[z]}function Jc(z,P){return z==null?s:z[P]}function ja(z){return Ba.test(z)}function oh(z){return qc.test(z)}function ch(z){for(var P,I=[];!(P=z.next()).done;)I.push(P.value);return I}function Is(z){var P=-1,I=Array(z.size);return z.forEach(function(_e,je){I[++P]=[je,_e]}),I}function fh(z,P){return function(I){return z(P(I))}}function Ha(z,P){for(var I=-1,_e=z.length,je=0,ut=[];++I<_e;){var Jt=z[I];(Jt===P||Jt===w)&&(z[I]=w,ut[je++]=I)}return ut}function Js(z){var P=-1,I=Array(z.size);return z.forEach(function(_e){I[++P]=_e}),I}function fg(z){var P=-1,I=Array(z.size);return z.forEach(function(_e){I[++P]=[_e,_e]}),I}function dg(z,P,I){for(var _e=I-1,je=z.length;++_e<je;)if(z[_e]===P)return _e;return-1}function Jn(z,P,I){for(var _e=I+1;_e--;)if(z[_e]===P)return _e;return _e}function kr(z){return ja(z)?hh(z):lg(z)}function or(z){return ja(z)?Pc(z):ug(z)}function Wc(z){for(var P=z.length;P--&&Ec.test(z.charAt(P)););return P}var dh=Qs(yi);function hh(z){for(var P=su.lastIndex=0;su.test(z);)++P;return P}function Pc(z){return z.match(su)||[]}function hg(z){return z.match(ou)||[]}var pl=(function z(P){P=P==null?It:ka.defaults(It.Object(),P,ka.pick(It,js));var I=P.Array,_e=P.Date,je=P.Error,ut=P.Function,Jt=P.Math,st=P.Object,Ws=P.RegExp,vh=P.String,Wn=P.TypeError,Ps=I.prototype,vg=ut.prototype,bl=st.prototype,fu=P["__core-js_shared__"],du=vg.toString,ft=bl.hasOwnProperty,xr=0,Fc=(function(){var r=/[^.]+$/.exec(fu&&fu.keys&&fu.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})(),On=bl.toString,cr=du.call(st),yl=It._,$c=Ws("^"+du.call(ft).replace(sn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ai=Wd?P.Buffer:s,Sr=P.Symbol,Al=P.Uint8Array,_i=Ai?Ai.allocUnsafe:s,hu=fh(st.getPrototypeOf,st),vu=st.create,xi=bl.propertyIsEnumerable,Fs=Ps.splice,Ln=Sr?Sr.isConcatSpreadable:s,Si=Sr?Sr.iterator:s,wn=Sr?Sr.toStringTag:s,mu=(function(){try{var r=Ia(st,"defineProperty");return r({},"",{}),r}catch{}})(),$s=P.clearTimeout!==It.clearTimeout&&P.clearTimeout,Ei=_e&&_e.now!==It.Date.now&&_e.now,ef=P.setTimeout!==It.setTimeout&&P.setTimeout,_l=Jt.ceil,la=Jt.floor,Ga=st.getOwnPropertySymbols,eo=Ai?Ai.isBuffer:s,gu=P.isFinite,fr=Ps.join,dr=fh(st.keys,st),Rt=Jt.max,Bt=Jt.min,ua=_e.now,Oi=P.parseInt,tf=Jt.random,nf=Ps.reverse,pu=Ia(P,"DataView"),$t=Ia(P,"Map"),Lt=Ia(P,"Promise"),nt=Ia(P,"Set"),Er=Ia(P,"WeakMap"),Un=Ia(st,"create"),xl=Er&&new Er,hr={},mh=ga(pu),gh=ga($t),bu=ga(Lt),yu=ga(nt),ph=ga(Er),qa=Sr?Sr.prototype:s,wi=qa?qa.valueOf:s,Ya=qa?qa.toString:s;function y(r){if(kt(r)&&!qe(r)&&!(r instanceof We)){if(r instanceof jn)return r;if(ft.call(r,"__wrapped__"))return tn(r)}return new jn(r)}var Pn=(function(){function r(){}return function(a){if(!jt(a))return{};if(vu)return vu(a);r.prototype=a;var f=new r;return r.prototype=s,f}})();function vr(){}function jn(r,a){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=s}y.templateSettings={escape:Hd,evaluate:Sc,interpolate:Ms,variable:"",imports:{_:y}},y.prototype=vr.prototype,y.prototype.constructor=y,jn.prototype=Pn(vr.prototype),jn.prototype.constructor=jn;function We(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function Au(){var r=new We(this.__wrapped__);return r.__actions__=en(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=en(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=en(this.__views__),r}function to(){if(this.__filtered__){var r=new We(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Ti(){var r=this.__wrapped__.value(),a=this.__dir__,f=qe(r),v=a<0,b=f?r.length:0,S=Wh(0,b,this.__views__),T=S.start,N=S.end,U=N-T,ne=v?N:T-1,ae=this.__iteratees__,fe=ae.length,xe=0,Re=Bt(U,this.__takeCount__);if(!f||!v&&b==U&&Re==U)return Uh(r,this.__actions__);var ke=[];e:for(;U--&&xe<Re;){ne+=a;for(var Fe=-1,Ge=r[ne];++Fe<fe;){var it=ae[Fe],ct=it.iteratee,Nr=it.type,ar=ct(Ge);if(Nr==ie)Ge=ar;else if(!ar){if(Nr==Ae)continue e;break e}}ke[xe++]=Ge}return ke}We.prototype=Pn(vr.prototype),We.prototype.constructor=We;function Yt(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function no(){this.__data__=Un?Un(null):{},this.size=0}function bh(r){var a=this.has(r)&&delete this.__data__[r];return this.size-=a?1:0,a}function mg(r){var a=this.__data__;if(Un){var f=a[r];return f===_?s:f}return ft.call(a,r)?a[r]:s}function gg(r){var a=this.__data__;return Un?a[r]!==s:ft.call(a,r)}function pg(r,a){var f=this.__data__;return this.size+=this.has(r)?0:1,f[r]=Un&&a===s?_:a,this}Yt.prototype.clear=no,Yt.prototype.delete=bh,Yt.prototype.get=mg,Yt.prototype.has=gg,Yt.prototype.set=pg;function Ot(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function rf(){this.__data__=[],this.size=0}function _u(r){var a=this.__data__,f=Ol(a,r);if(f<0)return!1;var v=a.length-1;return f==v?a.pop():Fs.call(a,f,1),--this.size,!0}function xu(r){var a=this.__data__,f=Ol(a,r);return f<0?s:a[f][1]}function af(r){return Ol(this.__data__,r)>-1}function Sl(r,a){var f=this.__data__,v=Ol(f,r);return v<0?(++this.size,f.push([r,a])):f[v][1]=a,this}Ot.prototype.clear=rf,Ot.prototype.delete=_u,Ot.prototype.get=xu,Ot.prototype.has=af,Ot.prototype.set=Sl;function Hn(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function bg(){this.size=0,this.__data__={hash:new Yt,map:new($t||Ot),string:new Yt}}function yh(r){var a=Nl(this,r).delete(r);return this.size-=a?1:0,a}function yg(r){return Nl(this,r).get(r)}function Ah(r){return Nl(this,r).has(r)}function Mi(r,a){var f=Nl(this,r),v=f.size;return f.set(r,a),this.size+=f.size==v?0:1,this}Hn.prototype.clear=bg,Hn.prototype.delete=yh,Hn.prototype.get=yg,Hn.prototype.has=Ah,Hn.prototype.set=Mi;function sa(r){var a=-1,f=r==null?0:r.length;for(this.__data__=new Hn;++a<f;)this.add(r[a])}function ro(r){return this.__data__.set(r,_),this}function _h(r){return this.__data__.has(r)}sa.prototype.add=sa.prototype.push=ro,sa.prototype.has=_h;function Tn(r){var a=this.__data__=new Ot(r);this.size=a.size}function xh(){this.__data__=new Ot,this.size=0}function ao(r){var a=this.__data__,f=a.delete(r);return this.size=a.size,f}function lf(r){return this.__data__.get(r)}function Sh(r){return this.__data__.has(r)}function io(r,a){var f=this.__data__;if(f instanceof Ot){var v=f.__data__;if(!$t||v.length<h-1)return v.push([r,a]),this.size=++f.size,this;f=this.__data__=new Hn(v)}return f.set(r,a),this.size=f.size,this}Tn.prototype.clear=xh,Tn.prototype.delete=ao,Tn.prototype.get=lf,Tn.prototype.has=Sh,Tn.prototype.set=io;function uf(r,a){var f=qe(r),v=!f&&Aa(r),b=!f&&!v&&ai(r),S=!f&&!v&&!b&&Xl(r),T=f||v||b||S,N=T?Ua(r.length,vh):[],U=N.length;for(var ne in r)(a||ft.call(r,ne))&&!(T&&(ne=="length"||b&&(ne=="offset"||ne=="parent")||S&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||Mr(ne,U)))&&N.push(ne);return N}function El(r){var a=r.length;return a?r[go(0,a-1)]:s}function Eh(r,a){return Ju(en(r),wr(a,0,r.length))}function Oh(r){return Ju(en(r))}function Gr(r,a,f){(f!==s&&!Xn(r[a],f)||f===s&&!(a in r))&&Or(r,a,f)}function Ci(r,a,f){var v=r[a];(!(ft.call(r,a)&&Xn(v,f))||f===s&&!(a in r))&&Or(r,a,f)}function Ol(r,a){for(var f=r.length;f--;)if(Xn(r[f][0],a))return f;return-1}function Va(r,a,f,v){return ca(r,function(b,S,T){a(v,b,f(b),T)}),v}function oa(r,a){return r&&qn(a,an(a),r)}function Su(r,a){return r&&qn(a,dn(a),r)}function Or(r,a,f){a=="__proto__"&&mu?mu(r,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):r[a]=f}function Eu(r,a){for(var f=-1,v=a.length,b=I(v),S=r==null;++f<v;)b[f]=S?s:os(r,a[f]);return b}function wr(r,a,f){return r===r&&(f!==s&&(r=r<=f?r:f),a!==s&&(r=r>=a?r:a)),r}function bn(r,a,f,v,b,S){var T,N=a&R,U=a&V,ne=a&Q;if(f&&(T=b?f(r,v,b,S):f(r)),T!==s)return T;if(!jt(r))return r;var ae=qe(r);if(ae){if(T=zf(r),!N)return en(r,T)}else{var fe=fn(r),xe=fe==Kt||fe==Sn;if(ai(r))return Of(r,N);if(fe==Mt||fe==Ce||xe&&!b){if(T=U||xe?{}:Bf(r),!N)return U?ju(r,Su(T,r)):xo(r,oa(T,r))}else{if(!bt[fe])return b?r:{};T=Lf(r,fe,N)}}S||(S=new Tn);var Re=S.get(r);if(Re)return Re;S.set(r,T),Yv(r)?r.forEach(function(Ge){T.add(bn(Ge,a,f,Ge,r,S))}):Zo(r)&&r.forEach(function(Ge,it){T.set(it,bn(Ge,a,f,it,r,S))});var ke=ne?U?wo:Oo:U?dn:an,Fe=ae?s:ke(r);return sr(Fe||r,function(Ge,it){Fe&&(it=Ge,Ge=r[it]),Ci(T,it,bn(Ge,a,f,it,r,S))}),T}function wh(r){var a=an(r);return function(f){return sf(f,r,a)}}function sf(r,a,f){var v=f.length;if(r==null)return!v;for(r=st(r);v--;){var b=f[v],S=a[b],T=r[b];if(T===s&&!(b in r)||!S(T))return!1}return!0}function Ri(r,a,f){if(typeof r!="function")throw new Wn(p);return zl(function(){r.apply(s,f)},a)}function Qa(r,a,f,v){var b=-1,S=qs,T=!0,N=r.length,U=[],ne=a.length;if(!N)return U;f&&(a=zt(a,In(f))),v?(S=Qc,T=!1):a.length>=h&&(S=vl,T=!1,a=new sa(a));e:for(;++b<N;){var ae=r[b],fe=f==null?ae:f(ae);if(ae=v||ae!==0?ae:0,T&&fe===fe){for(var xe=ne;xe--;)if(a[xe]===fe)continue e;U.push(ae)}else S(a,fe,v)||U.push(ae)}return U}var ca=Cf(yn),lo=Cf(Tl,!0);function of(r,a){var f=!0;return ca(r,function(v,b,S){return f=!!a(v,b,S),f}),f}function Tr(r,a,f){for(var v=-1,b=r.length;++v<b;){var S=r[v],T=a(S);if(T!=null&&(N===s?T===T&&!Rn(T):f(T,N)))var N=T,U=S}return U}function Ie(r,a,f,v){var b=r.length;for(f=Xe(f),f<0&&(f=-f>b?0:b+f),v=v===s||v>b?b:Xe(v),v<0&&(v+=b),v=f>v?0:Jr(v);f<v;)r[f++]=a;return r}function yt(r,a){var f=[];return ca(r,function(v,b,S){a(v,b,S)&&f.push(v)}),f}function rt(r,a,f,v,b){var S=-1,T=r.length;for(f||(f=va),b||(b=[]);++S<T;){var N=r[S];a>0&&f(N)?a>1?rt(N,a-1,f,v,b):ia(b,N):v||(b[b.length]=N)}return b}var wl=ji(),Ni=ji(!0);function yn(r,a){return r&&wl(r,a,an)}function Tl(r,a){return r&&Ni(r,a,an)}function Xa(r,a){return Hr(a,function(f){return Cr(r[f])})}function mr(r,a){a=da(a,r);for(var f=0,v=a.length;r!=null&&f<v;)r=r[mt(a[f++])];return f&&f==v?r:s}function Th(r,a,f){var v=a(r);return qe(r)?v:ia(v,f(r))}function at(r){return r==null?r===s?ws:nu:wn&&wn in st(r)?Jh(r):tv(r)}function Ou(r,a){return r>a}function cf(r,a){return r!=null&&ft.call(r,a)}function Mh(r,a){return r!=null&&a in st(r)}function Ch(r,a,f){return r>=Bt(a,f)&&r<Rt(a,f)}function ff(r,a,f){for(var v=f?Qc:qs,b=r[0].length,S=r.length,T=S,N=I(S),U=1/0,ne=[];T--;){var ae=r[T];T&&a&&(ae=zt(ae,In(a))),U=Bt(ae.length,U),N[T]=!f&&(a||b>=120&&ae.length>=120)?new sa(T&&ae):s}ae=r[0];var fe=-1,xe=N[0];e:for(;++fe<b&&ne.length<U;){var Re=ae[fe],ke=a?a(Re):Re;if(Re=f||Re!==0?Re:0,!(xe?vl(xe,ke):v(ne,ke,f))){for(T=S;--T;){var Fe=N[T];if(!(Fe?vl(Fe,ke):v(r[T],ke,f)))continue e}xe&&xe.push(ke),ne.push(Re)}}return ne}function df(r,a,f,v){return yn(r,function(b,S,T){a(v,f(b),S,T)}),v}function Di(r,a,f){a=da(a,r),r=Dl(r,a);var v=r==null?r:r[mt(An(a))];return v==null?s:Bn(v,r,f)}function uo(r){return kt(r)&&at(r)==Ce}function kn(r){return kt(r)&&at(r)==Ft}function Wt(r){return kt(r)&&at(r)==pt}function zi(r,a,f,v,b){return r===a?!0:r==null||a==null||!kt(r)&&!kt(a)?r!==r&&a!==a:wu(r,a,f,v,zi,b)}function wu(r,a,f,v,b,S){var T=qe(r),N=qe(a),U=T?Oe:fn(r),ne=N?Oe:fn(a);U=U==Ce?Mt:U,ne=ne==Ce?Mt:ne;var ae=U==Mt,fe=ne==Mt,xe=U==ne;if(xe&&ai(r)){if(!ai(a))return!1;T=!0,ae=!1}if(xe&&!ae)return S||(S=new Tn),T||Xl(r)?Zh(r,a,f,v,b,S):Ih(r,a,U,f,v,b,S);if(!(f&k)){var Re=ae&&ft.call(r,"__wrapped__"),ke=fe&&ft.call(a,"__wrapped__");if(Re||ke){var Fe=Re?r.value():r,Ge=ke?a.value():a;return S||(S=new Tn),b(Fe,Ge,f,v,S)}}return xe?(S||(S=new Tn),cn(r,a,f,v,b,S)):!1}function so(r){return kt(r)&&fn(r)==Gt}function Tu(r,a,f,v){var b=f.length,S=b,T=!v;if(r==null)return!S;for(r=st(r);b--;){var N=f[b];if(T&&N[2]?N[1]!==r[N[0]]:!(N[0]in r))return!1}for(;++b<S;){N=f[b];var U=N[0],ne=r[U],ae=N[1];if(T&&N[2]){if(ne===s&&!(U in r))return!1}else{var fe=new Tn;if(v)var xe=v(ne,ae,U,r,a,fe);if(!(xe===s?zi(ae,ne,k|j,v,fe):xe))return!1}}return!0}function qr(r){if(!jt(r)||Do(r))return!1;var a=Cr(r)?$c:qd;return a.test(ga(r))}function oo(r){return kt(r)&&at(r)==Ur}function hf(r){return kt(r)&&fn(r)==Zt}function vf(r){return kt(r)&&Yi(r.length)&&!!xt[at(r)]}function mf(r){return typeof r=="function"?r:r==null?q:typeof r=="object"?qe(r)?ho(r[0],r[1]):pf(r):ot(r)}function co(r){if(!wt(r))return dr(r);var a=[];for(var f in st(r))ft.call(r,f)&&f!="constructor"&&a.push(f);return a}function Rh(r){if(!jt(r))return Ja(r);var a=wt(r),f=[];for(var v in r)v=="constructor"&&(a||!ft.call(r,v))||f.push(v);return f}function fo(r,a){return r<a}function gf(r,a){var f=-1,v=nn(r)?I(r.length):[];return ca(r,function(b,S,T){v[++f]=a(b,S,T)}),v}function pf(r){var a=Mo(r);return a.length==1&&a[0][2]?$h(a[0][0],a[0][1]):function(f){return f===r||Tu(f,r,a)}}function ho(r,a){return Ro(r)&&Fh(a)?$h(mt(r),a):function(f){var v=os(f,r);return v===s&&v===a?Jl(f,r):zi(a,v,k|j)}}function Mu(r,a,f,v,b){r!==a&&wl(a,function(S,T){if(b||(b=new Tn),jt(S))Ag(r,a,T,f,Mu,v,b);else{var N=v?v(zo(r,T),S,T+"",r,a,b):s;N===s&&(N=S),Gr(r,T,N)}},dn)}function Ag(r,a,f,v,b,S,T){var N=zo(r,f),U=zo(a,f),ne=T.get(U);if(ne){Gr(r,f,ne);return}var ae=S?S(N,U,f+"",r,a,T):s,fe=ae===s;if(fe){var xe=qe(U),Re=!xe&&ai(U),ke=!xe&&!Re&&Xl(U);ae=U,xe||Re||ke?qe(N)?ae=N:Xt(N)?ae=en(N):Re?(fe=!1,ae=Of(U,!0)):ke?(fe=!1,ae=Tf(U,!0)):ae=[]:yr(U)||Aa(U)?(ae=N,Aa(N)?ae=Xv(N):(!jt(N)||Cr(N))&&(ae=Bf(U))):fe=!1}fe&&(T.set(U,ae),b(ae,U,v,S,T),T.delete(U)),Gr(r,f,ae)}function bf(r,a){var f=r.length;if(f)return a+=a<0?f:0,Mr(a,f)?r[a]:s}function yf(r,a,f){a.length?a=zt(a,function(S){return qe(S)?function(T){return mr(T,S.length===1?S[0]:S)}:S}):a=[q];var v=-1;a=zt(a,In(De()));var b=gf(r,function(S,T,N){var U=zt(a,function(ne){return ne(S)});return{criteria:U,index:++v,value:S}});return ih(b,function(S,T){return Gh(S,T,f)})}function Nh(r,a){return vo(r,a,function(f,v){return Jl(r,v)})}function vo(r,a,f){for(var v=-1,b=a.length,S={};++v<b;){var T=a[v],N=mr(r,T);f(N,T)&&Cl(S,da(T,r),N)}return S}function Dh(r){return function(a){return mr(a,r)}}function mo(r,a,f,v){var b=v?Zc:dl,S=-1,T=a.length,N=r;for(r===a&&(a=en(a)),f&&(N=zt(r,In(f)));++S<T;)for(var U=0,ne=a[S],ae=f?f(ne):ne;(U=b(N,ae,U,v))>-1;)N!==r&&Fs.call(N,U,1),Fs.call(r,U,1);return r}function Af(r,a){for(var f=r?a.length:0,v=f-1;f--;){var b=a[f];if(f==v||b!==S){var S=b;Mr(b)?Fs.call(r,b,1):Du(r,b)}}return r}function go(r,a){return r+la(tf()*(a-r+1))}function zh(r,a,f,v){for(var b=-1,S=Rt(_l((a-r)/(f||1)),0),T=I(S);S--;)T[v?S:++b]=r,r+=f;return T}function _f(r,a){var f="";if(!r||a<1||a>B)return f;do a%2&&(f+=r),a=la(a/2),a&&(r+=r);while(a);return f}function Ze(r,a){return Zu(Uf(r,a,q),r+"")}function Ml(r){return El(Pl(r))}function po(r,a){var f=Pl(r);return Ju(f,wr(a,0,f.length))}function Cl(r,a,f,v){if(!jt(r))return r;a=da(a,r);for(var b=-1,S=a.length,T=S-1,N=r;N!=null&&++b<S;){var U=mt(a[b]),ne=f;if(U==="__proto__"||U==="constructor"||U==="prototype")return r;if(b!=T){var ae=N[U];ne=v?v(ae,U,N):s,ne===s&&(ne=jt(ae)?ae:Mr(a[b+1])?[]:{})}Ci(N,U,ne),N=N[U]}return r}var Cu=xl?function(r,a){return xl.set(r,a),r}:q,Ru=mu?function(r,a){return mu(r,"toString",{configurable:!0,enumerable:!1,value:G(a),writable:!0})}:q;function Bh(r){return Ju(Pl(r))}function Fn(r,a,f){var v=-1,b=r.length;a<0&&(a=-a>b?0:b+a),f=f>b?b:f,f<0&&(f+=b),b=a>f?0:f-a>>>0,a>>>=0;for(var S=I(b);++v<b;)S[v]=r[v+a];return S}function Lh(r,a){var f;return ca(r,function(v,b,S){return f=a(v,b,S),!f}),!!f}function Nu(r,a,f){var v=0,b=r==null?v:r.length;if(typeof a=="number"&&a===a&&b<=ee){for(;v<b;){var S=v+b>>>1,T=r[S];T!==null&&!Rn(T)&&(f?T<=a:T<a)?v=S+1:b=S}return b}return bo(r,a,q,f)}function bo(r,a,f,v){var b=0,S=r==null?0:r.length;if(S===0)return 0;a=f(a);for(var T=a!==a,N=a===null,U=Rn(a),ne=a===s;b<S;){var ae=la((b+S)/2),fe=f(r[ae]),xe=fe!==s,Re=fe===null,ke=fe===fe,Fe=Rn(fe);if(T)var Ge=v||ke;else ne?Ge=ke&&(v||xe):N?Ge=ke&&xe&&(v||!Re):U?Ge=ke&&xe&&!Re&&(v||!Fe):Re||Fe?Ge=!1:Ge=v?fe<=a:fe<a;Ge?b=ae+1:S=ae}return Bt(S,oe)}function xf(r,a){for(var f=-1,v=r.length,b=0,S=[];++f<v;){var T=r[f],N=a?a(T):T;if(!f||!Xn(N,U)){var U=N;S[b++]=T===0?0:T}}return S}function yo(r){return typeof r=="number"?r:Rn(r)?O:+r}function Gn(r){if(typeof r=="string")return r;if(qe(r))return zt(r,Gn)+"";if(Rn(r))return Ya?Ya.call(r):"";var a=r+"";return a=="0"&&1/r==-X?"-0":a}function fa(r,a,f){var v=-1,b=qs,S=r.length,T=!0,N=[],U=N;if(f)T=!1,b=Qc;else if(S>=h){var ne=a?null:Xh(r);if(ne)return Js(ne);T=!1,b=vl,U=new sa}else U=a?[]:N;e:for(;++v<S;){var ae=r[v],fe=a?a(ae):ae;if(ae=f||ae!==0?ae:0,T&&fe===fe){for(var xe=U.length;xe--;)if(U[xe]===fe)continue e;a&&U.push(fe),N.push(ae)}else b(U,fe,f)||(U!==N&&U.push(fe),N.push(ae))}return N}function Du(r,a){return a=da(a,r),r=Dl(r,a),r==null||delete r[mt(An(a))]}function Sf(r,a,f,v){return Cl(r,a,f(mr(r,a)),v)}function zu(r,a,f,v){for(var b=r.length,S=v?b:-1;(v?S--:++S<b)&&a(r[S],S,r););return f?Fn(r,v?0:S,v?S+1:b):Fn(r,v?S+1:0,v?b:S)}function Uh(r,a){var f=r;return f instanceof We&&(f=f.value()),Xc(a,function(v,b){return b.func.apply(b.thisArg,ia([v],b.args))},f)}function Bu(r,a,f){var v=r.length;if(v<2)return v?fa(r[0]):[];for(var b=-1,S=I(v);++b<v;)for(var T=r[b],N=-1;++N<v;)N!=b&&(S[b]=Qa(S[b]||T,r[N],a,f));return fa(rt(S,1),a,f)}function Ef(r,a,f){for(var v=-1,b=r.length,S=a.length,T={};++v<b;){var N=v<S?a[v]:s;f(T,r[v],N)}return T}function Ao(r){return Xt(r)?r:[]}function Lu(r){return typeof r=="function"?r:q}function da(r,a){return qe(r)?r:Ro(r,a)?[r]:Xr(dt(r))}var jh=Ze;function Ka(r,a,f){var v=r.length;return f=f===s?v:f,!a&&f>=v?r:Fn(r,a,f)}var Hh=$s||function(r){return It.clearTimeout(r)};function Of(r,a){if(a)return r.slice();var f=r.length,v=_i?_i(f):new r.constructor(f);return r.copy(v),v}function Bi(r){var a=new r.constructor(r.byteLength);return new Al(a).set(new Al(r)),a}function wf(r,a){var f=a?Bi(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.byteLength)}function _o(r){var a=new r.constructor(r.source,rl.exec(r));return a.lastIndex=r.lastIndex,a}function kh(r){return wi?st(wi.call(r)):{}}function Tf(r,a){var f=a?Bi(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}function Uu(r,a){if(r!==a){var f=r!==s,v=r===null,b=r===r,S=Rn(r),T=a!==s,N=a===null,U=a===a,ne=Rn(a);if(!N&&!ne&&!S&&r>a||S&&T&&U&&!N&&!ne||v&&T&&U||!f&&U||!b)return 1;if(!v&&!S&&!ne&&r<a||ne&&f&&b&&!v&&!S||N&&f&&b||!T&&b||!U)return-1}return 0}function Gh(r,a,f){for(var v=-1,b=r.criteria,S=a.criteria,T=b.length,N=f.length;++v<T;){var U=Uu(b[v],S[v]);if(U){if(v>=N)return U;var ne=f[v];return U*(ne=="desc"?-1:1)}}return r.index-a.index}function Mf(r,a,f,v){for(var b=-1,S=r.length,T=f.length,N=-1,U=a.length,ne=Rt(S-T,0),ae=I(U+ne),fe=!v;++N<U;)ae[N]=a[N];for(;++b<T;)(fe||b<S)&&(ae[f[b]]=r[b]);for(;ne--;)ae[N++]=r[b++];return ae}function qh(r,a,f,v){for(var b=-1,S=r.length,T=-1,N=f.length,U=-1,ne=a.length,ae=Rt(S-N,0),fe=I(ae+ne),xe=!v;++b<ae;)fe[b]=r[b];for(var Re=b;++U<ne;)fe[Re+U]=a[U];for(;++T<N;)(xe||b<S)&&(fe[Re+f[T]]=r[b++]);return fe}function en(r,a){var f=-1,v=r.length;for(a||(a=I(v));++f<v;)a[f]=r[f];return a}function qn(r,a,f,v){var b=!f;f||(f={});for(var S=-1,T=a.length;++S<T;){var N=a[S],U=v?v(f[N],r[N],N,f,r):s;U===s&&(U=r[N]),b?Or(f,N,U):Ci(f,N,U)}return f}function xo(r,a){return qn(r,Vu(r),a)}function ju(r,a){return qn(r,Co(r),a)}function Li(r,a){return function(f,v){var b=qe(f)?rg:Va,S=a?a():{};return b(f,r,De(v,2),S)}}function Ui(r){return Ze(function(a,f){var v=-1,b=f.length,S=b>1?f[b-1]:s,T=b>2?f[2]:s;for(S=r.length>3&&typeof S=="function"?(b--,S):s,T&&Cn(f[0],f[1],T)&&(S=b<3?s:S,b=1),a=st(a);++v<b;){var N=f[v];N&&r(a,N,v,S)}return a})}function Cf(r,a){return function(f,v){if(f==null)return f;if(!nn(f))return r(f,v);for(var b=f.length,S=a?b:-1,T=st(f);(a?S--:++S<b)&&v(T[S],S,T)!==!1;);return f}}function ji(r){return function(a,f,v){for(var b=-1,S=st(a),T=v(a),N=T.length;N--;){var U=T[r?N:++b];if(f(S[U],U,S)===!1)break}return a}}function Yh(r,a,f){var v=a&W,b=gr(r);function S(){var T=this&&this!==It&&this instanceof S?b:r;return T.apply(v?f:this,arguments)}return S}function $n(r){return function(a){a=dt(a);var f=ja(a)?or(a):s,v=f?f[0]:a.charAt(0),b=f?Ka(f,1).join(""):a.slice(1);return v[r]()+b}}function Mn(r){return function(a){return Xc(c(_a(a).replace(uu,"")),r,"")}}function gr(r){return function(){var a=arguments;switch(a.length){case 0:return new r;case 1:return new r(a[0]);case 2:return new r(a[0],a[1]);case 3:return new r(a[0],a[1],a[2]);case 4:return new r(a[0],a[1],a[2],a[3]);case 5:return new r(a[0],a[1],a[2],a[3],a[4]);case 6:return new r(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new r(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Pn(r.prototype),v=r.apply(f,a);return jt(v)?v:f}}function Vh(r,a,f){var v=gr(r);function b(){for(var S=arguments.length,T=I(S),N=S,U=ki(b);N--;)T[N]=arguments[N];var ne=S<3&&T[0]!==U&&T[S-1]!==U?[]:Ha(T,U);if(S-=ne.length,S<f)return Rf(r,a,Vt,b.placeholder,s,T,ne,s,s,f-S);var ae=this&&this!==It&&this instanceof b?v:r;return Bn(ae,this,T)}return b}function ha(r){return function(a,f,v){var b=st(a);if(!nn(a)){var S=De(f,3);a=an(a),f=function(N){return S(b[N],N,b)}}var T=r(a,f,v);return T>-1?b[S?a[T]:T]:s}}function Yr(r){return Nt(function(a){var f=a.length,v=f,b=jn.prototype.thru;for(r&&a.reverse();v--;){var S=a[v];if(typeof S!="function")throw new Wn(p);if(b&&!T&&Yu(S)=="wrapper")var T=new jn([],!0)}for(v=T?v:f;++v<f;){S=a[v];var N=Yu(S),U=N=="wrapper"?To(S):s;U&&No(U[0])&&U[1]==(ue|be|F|ce)&&!U[4].length&&U[9]==1?T=T[Yu(U[0])].apply(T,U[3]):T=S.length==1&&No(S)?T[N]():T.thru(S)}return function(){var ne=arguments,ae=ne[0];if(T&&ne.length==1&&qe(ae))return T.plant(ae).value();for(var fe=0,xe=f?a[fe].apply(this,ne):ae;++fe<f;)xe=a[fe].call(this,xe);return xe}})}function Vt(r,a,f,v,b,S,T,N,U,ne){var ae=a&ue,fe=a&W,xe=a&se,Re=a&(be|he),ke=a&we,Fe=xe?s:gr(r);function Ge(){for(var it=arguments.length,ct=I(it),Nr=it;Nr--;)ct[Nr]=arguments[Nr];if(Re)var ar=ki(Ge),Dr=cg(ct,ar);if(v&&(ct=Mf(ct,v,b,Re)),S&&(ct=qh(ct,S,T,Re)),it-=Dr,Re&&it<ne){var ln=Ha(ct,ar);return Rf(r,a,Vt,Ge.placeholder,f,ct,ln,N,U,ne-it)}var xa=fe?f:this,Vi=xe?xa[r]:r;return it=ct.length,N?ct=Qr(ct,N):ke&&it>1&&ct.reverse(),ae&&U<it&&(ct.length=U),this&&this!==It&&this instanceof Ge&&(Vi=Fe||gr(Vi)),Vi.apply(xa,ct)}return Ge}function Hu(r,a){return function(f,v){return df(f,r,a(v),{})}}function Rl(r,a){return function(f,v){var b;if(f===s&&v===s)return a;if(f!==s&&(b=f),v!==s){if(b===s)return v;typeof f=="string"||typeof v=="string"?(f=Gn(f),v=Gn(v)):(f=yo(f),v=yo(v)),b=r(f,v)}return b}}function ku(r){return Nt(function(a){return a=zt(a,In(De())),Ze(function(f){var v=this;return r(a,function(b){return Bn(b,v,f)})})})}function Gu(r,a){a=a===s?" ":Gn(a);var f=a.length;if(f<2)return f?_f(a,r):a;var v=_f(a,_l(r/kr(a)));return ja(a)?Ka(or(v),0,r).join(""):v.slice(0,r)}function Qh(r,a,f,v){var b=a&W,S=gr(r);function T(){for(var N=-1,U=arguments.length,ne=-1,ae=v.length,fe=I(ae+U),xe=this&&this!==It&&this instanceof T?S:r;++ne<ae;)fe[ne]=v[ne];for(;U--;)fe[ne++]=arguments[++N];return Bn(xe,b?f:this,fe)}return T}function Za(r){return function(a,f,v){return v&&typeof v!="number"&&Cn(a,f,v)&&(f=v=s),a=Ir(a),f===s?(f=a,a=0):f=Ir(f),v=v===s?a<f?1:-1:Ir(v),zh(a,f,v,r)}}function Hi(r){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Ar(a),f=Ar(f)),r(a,f)}}function Rf(r,a,f,v,b,S,T,N,U,ne){var ae=a&be,fe=ae?T:s,xe=ae?s:T,Re=ae?S:s,ke=ae?s:S;a|=ae?F:le,a&=~(ae?le:F),a&ge||(a&=-4);var Fe=[r,a,b,Re,fe,ke,xe,N,U,ne],Ge=f.apply(s,Fe);return No(r)&&Bo(Ge,Fe),Ge.placeholder=v,Lo(Ge,r,a)}function So(r){var a=Jt[r];return function(f,v){if(f=Ar(f),v=v==null?0:Bt(Xe(v),292),v&&gu(f)){var b=(dt(f)+"e").split("e"),S=a(b[0]+"e"+(+b[1]+v));return b=(dt(S)+"e").split("e"),+(b[0]+"e"+(+b[1]-v))}return a(f)}}var Xh=nt&&1/Js(new nt([,-0]))[1]==X?function(r){return new nt(r)}:Ee;function qu(r){return function(a){var f=fn(a);return f==Gt?Is(a):f==Zt?fg(a):og(a,r(a))}}function Vr(r,a,f,v,b,S,T,N){var U=a&se;if(!U&&typeof r!="function")throw new Wn(p);var ne=v?v.length:0;if(ne||(a&=-97,v=b=s),T=T===s?T:Rt(Xe(T),0),N=N===s?N:Xe(N),ne-=b?b.length:0,a&le){var ae=v,fe=b;v=b=s}var xe=U?s:To(r),Re=[r,a,f,v,b,ae,fe,S,T,N];if(xe&&Ku(Re,xe),r=Re[0],a=Re[1],f=Re[2],v=Re[3],b=Re[4],N=Re[9]=Re[9]===s?U?0:r.length:Rt(Re[9]-ne,0),!N&&a&(be|he)&&(a&=-25),!a||a==W)var ke=Yh(r,a,f);else a==be||a==he?ke=Vh(r,a,N):(a==F||a==(W|F))&&!b.length?ke=Qh(r,a,f,v):ke=Vt.apply(s,Re);var Fe=xe?Cu:Bo;return Lo(Fe(ke,Re),r,a)}function Eo(r,a,f,v){return r===s||Xn(r,bl[f])&&!ft.call(v,f)?a:r}function Nf(r,a,f,v,b,S){return jt(r)&&jt(a)&&(S.set(a,r),Mu(r,a,s,Nf,S),S.delete(a)),r}function Kh(r){return yr(r)?s:r}function Zh(r,a,f,v,b,S){var T=f&k,N=r.length,U=a.length;if(N!=U&&!(T&&U>N))return!1;var ne=S.get(r),ae=S.get(a);if(ne&&ae)return ne==a&&ae==r;var fe=-1,xe=!0,Re=f&j?new sa:s;for(S.set(r,a),S.set(a,r);++fe<N;){var ke=r[fe],Fe=a[fe];if(v)var Ge=T?v(Fe,ke,fe,a,r,S):v(ke,Fe,fe,r,a,S);if(Ge!==s){if(Ge)continue;xe=!1;break}if(Re){if(!Kc(a,function(it,ct){if(!vl(Re,ct)&&(ke===it||b(ke,it,f,v,S)))return Re.push(ct)})){xe=!1;break}}else if(!(ke===Fe||b(ke,Fe,f,v,S))){xe=!1;break}}return S.delete(r),S.delete(a),xe}function Ih(r,a,f,v,b,S,T){switch(f){case mn:if(r.byteLength!=a.byteLength||r.byteOffset!=a.byteOffset)return!1;r=r.buffer,a=a.buffer;case Ft:return!(r.byteLength!=a.byteLength||!S(new Al(r),new Al(a)));case Qe:case pt:case _r:return Xn(+r,+a);case Dt:return r.name==a.name&&r.message==a.message;case Ur:case Nn:return r==a+"";case Gt:var N=Is;case Zt:var U=v&k;if(N||(N=Js),r.size!=a.size&&!U)return!1;var ne=T.get(r);if(ne)return ne==a;v|=j,T.set(r,a);var ae=Zh(N(r),N(a),v,b,S,T);return T.delete(r),ae;case Ra:if(wi)return wi.call(r)==wi.call(a)}return!1}function cn(r,a,f,v,b,S){var T=f&k,N=Oo(r),U=N.length,ne=Oo(a),ae=ne.length;if(U!=ae&&!T)return!1;for(var fe=U;fe--;){var xe=N[fe];if(!(T?xe in a:ft.call(a,xe)))return!1}var Re=S.get(r),ke=S.get(a);if(Re&&ke)return Re==a&&ke==r;var Fe=!0;S.set(r,a),S.set(a,r);for(var Ge=T;++fe<U;){xe=N[fe];var it=r[xe],ct=a[xe];if(v)var Nr=T?v(ct,it,xe,a,r,S):v(it,ct,xe,r,a,S);if(!(Nr===s?it===ct||b(it,ct,f,v,S):Nr)){Fe=!1;break}Ge||(Ge=xe=="constructor")}if(Fe&&!Ge){var ar=r.constructor,Dr=a.constructor;ar!=Dr&&"constructor"in r&&"constructor"in a&&!(typeof ar=="function"&&ar instanceof ar&&typeof Dr=="function"&&Dr instanceof Dr)&&(Fe=!1)}return S.delete(r),S.delete(a),Fe}function Nt(r){return Zu(Uf(r,s,Vn),r+"")}function Oo(r){return Th(r,an,Vu)}function wo(r){return Th(r,dn,Co)}var To=xl?function(r){return xl.get(r)}:Ee;function Yu(r){for(var a=r.name+"",f=hr[a],v=ft.call(hr,a)?f.length:0;v--;){var b=f[v],S=b.func;if(S==null||S==r)return b.name}return a}function ki(r){var a=ft.call(y,"placeholder")?y:r;return a.placeholder}function De(){var r=y.iteratee||Be;return r=r===Be?mf:r,arguments.length?r(arguments[0],arguments[1]):r}function Nl(r,a){var f=r.__data__;return ma(a)?f[typeof a=="string"?"string":"hash"]:f.map}function Mo(r){for(var a=an(r),f=a.length;f--;){var v=a[f],b=r[v];a[f]=[v,b,Fh(b)]}return a}function Ia(r,a){var f=Jc(r,a);return qr(f)?f:s}function Jh(r){var a=ft.call(r,wn),f=r[wn];try{r[wn]=s;var v=!0}catch{}var b=On.call(r);return v&&(a?r[wn]=f:delete r[wn]),b}var Vu=Ga?function(r){return r==null?[]:(r=st(r),Hr(Ga(r),function(a){return xi.call(r,a)}))}:r0,Co=Ga?function(r){for(var a=[];r;)ia(a,Vu(r)),r=hu(r);return a}:r0,fn=at;(pu&&fn(new pu(new ArrayBuffer(1)))!=mn||$t&&fn(new $t)!=Gt||Lt&&fn(Lt.resolve())!=vn||nt&&fn(new nt)!=Zt||Er&&fn(new Er)!=qt)&&(fn=function(r){var a=at(r),f=a==Mt?r.constructor:s,v=f?ga(f):"";if(v)switch(v){case mh:return mn;case gh:return Gt;case bu:return vn;case yu:return Zt;case ph:return qt}return a});function Wh(r,a,f){for(var v=-1,b=f.length;++v<b;){var S=f[v],T=S.size;switch(S.type){case"drop":r+=T;break;case"dropRight":a-=T;break;case"take":a=Bt(a,r+T);break;case"takeRight":r=Rt(r,a-T);break}}return{start:r,end:a}}function Df(r){var a=r.match($m);return a?a[1].split(Gd):[]}function Qu(r,a,f){a=da(a,r);for(var v=-1,b=a.length,S=!1;++v<b;){var T=mt(a[v]);if(!(S=r!=null&&f(r,T)))break;r=r[T]}return S||++v!=b?S:(b=r==null?0:r.length,!!b&&Yi(b)&&Mr(T,b)&&(qe(r)||Aa(r)))}function zf(r){var a=r.length,f=new r.constructor(a);return a&&typeof r[0]=="string"&&ft.call(r,"index")&&(f.index=r.index,f.input=r.input),f}function Bf(r){return typeof r.constructor=="function"&&!wt(r)?Pn(hu(r)):{}}function Lf(r,a,f){var v=r.constructor;switch(a){case Ft:return Bi(r);case Qe:case pt:return new v(+r);case mn:return wf(r,f);case En:case Ac:case _c:case xc:case Pi:case Fi:case ra:case $i:case gi:return Tf(r,f);case Gt:return new v;case _r:case Nn:return new v(r);case Ur:return _o(r);case Zt:return new v;case Ra:return kh(r)}}function Ph(r,a){var f=a.length;if(!f)return r;var v=f-1;return a[v]=(f>1?"& ":"")+a[v],a=a.join(f>2?", ":" "),r.replace(Fm,`{
/* [wrapped with `+a+`] */
`)}function va(r){return qe(r)||Aa(r)||!!(Ln&&r&&r[Ln])}function Mr(r,a){var f=typeof r;return a=a??B,!!a&&(f=="number"||f!="symbol"&&pi.test(r))&&r>-1&&r%1==0&&r<a}function Cn(r,a,f){if(!jt(f))return!1;var v=typeof a;return(v=="number"?nn(f)&&Mr(a,f.length):v=="string"&&a in f)?Xn(f[a],r):!1}function Ro(r,a){if(qe(r))return!1;var f=typeof r;return f=="number"||f=="symbol"||f=="boolean"||r==null||Rn(r)?!0:Pm.test(r)||!kd.test(r)||a!=null&&r in st(a)}function ma(r){var a=typeof r;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?r!=="__proto__":r===null}function No(r){var a=Yu(r),f=y[a];if(typeof f!="function"||!(a in We.prototype))return!1;if(r===f)return!0;var v=To(f);return!!v&&r===v[0]}function Do(r){return!!Fc&&Fc in r}var Xu=fu?Cr:a0;function wt(r){var a=r&&r.constructor,f=typeof a=="function"&&a.prototype||bl;return r===f}function Fh(r){return r===r&&!jt(r)}function $h(r,a){return function(f){return f==null?!1:f[r]===a&&(a!==s||r in st(f))}}function ev(r){var a=rs(r,function(v){return f.size===E&&f.clear(),v}),f=a.cache;return a}function Ku(r,a){var f=r[1],v=a[1],b=f|v,S=b<(W|se|ue),T=v==ue&&f==be||v==ue&&f==ce&&r[7].length<=a[8]||v==(ue|ce)&&a[7].length<=a[8]&&f==be;if(!(S||T))return r;v&W&&(r[2]=a[2],b|=f&W?0:ge);var N=a[3];if(N){var U=r[3];r[3]=U?Mf(U,N,a[4]):N,r[4]=U?Ha(r[3],w):a[4]}return N=a[5],N&&(U=r[5],r[5]=U?qh(U,N,a[6]):N,r[6]=U?Ha(r[5],w):a[6]),N=a[7],N&&(r[7]=N),v&ue&&(r[8]=r[8]==null?a[8]:Bt(r[8],a[8])),r[9]==null&&(r[9]=a[9]),r[0]=a[0],r[1]=b,r}function Ja(r){var a=[];if(r!=null)for(var f in st(r))a.push(f);return a}function tv(r){return On.call(r)}function Uf(r,a,f){return a=Rt(a===s?r.length-1:a,0),function(){for(var v=arguments,b=-1,S=Rt(v.length-a,0),T=I(S);++b<S;)T[b]=v[a+b];b=-1;for(var N=I(a+1);++b<a;)N[b]=v[b];return N[a]=f(T),Bn(r,this,N)}}function Dl(r,a){return a.length<2?r:mr(r,Fn(a,0,-1))}function Qr(r,a){for(var f=r.length,v=Bt(a.length,f),b=en(r);v--;){var S=a[v];r[v]=Mr(S,f)?b[S]:s}return r}function zo(r,a){if(!(a==="constructor"&&typeof r[a]=="function")&&a!="__proto__")return r[a]}var Bo=Iu(Cu),zl=ef||function(r,a){return It.setTimeout(r,a)},Zu=Iu(Ru);function Lo(r,a,f){var v=a+"";return Zu(r,Ph(v,nv(Df(v),f)))}function Iu(r){var a=0,f=0;return function(){var v=ua(),b=Ke-(v-f);if(f=v,b>0){if(++a>=Ue)return arguments[0]}else a=0;return r.apply(s,arguments)}}function Ju(r,a){var f=-1,v=r.length,b=v-1;for(a=a===s?v:a;++f<a;){var S=go(f,b),T=r[S];r[S]=r[f],r[f]=T}return r.length=a,r}var Xr=ev(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(Na,function(f,v,b,S){a.push(b?S.replace(tl,"$1"):v||f)}),a});function mt(r){if(typeof r=="string"||Rn(r))return r;var a=r+"";return a=="0"&&1/r==-X?"-0":a}function ga(r){if(r!=null){try{return du.call(r)}catch{}try{return r+""}catch{}}return""}function nv(r,a){return sr(ve,function(f){var v="_."+f[0];a&f[1]&&!qs(r,v)&&r.push(v)}),r.sort()}function tn(r){if(r instanceof We)return r.clone();var a=new jn(r.__wrapped__,r.__chain__);return a.__actions__=en(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}function _g(r,a,f){(f?Cn(r,a,f):a===s)?a=1:a=Rt(Xe(a),0);var v=r==null?0:r.length;if(!v||a<1)return[];for(var b=0,S=0,T=I(_l(v/a));b<v;)T[S++]=Fn(r,b,b+=a);return T}function rv(r){for(var a=-1,f=r==null?0:r.length,v=0,b=[];++a<f;){var S=r[a];S&&(b[v++]=S)}return b}function av(){var r=arguments.length;if(!r)return[];for(var a=I(r-1),f=arguments[0],v=r;v--;)a[v-1]=arguments[v];return ia(qe(f)?en(f):[f],rt(a,1))}var Ut=Ze(function(r,a){return Xt(r)?Qa(r,rt(a,1,Xt,!0)):[]}),Yn=Ze(function(r,a){var f=An(a);return Xt(f)&&(f=s),Xt(r)?Qa(r,rt(a,1,Xt,!0),De(f,2)):[]}),pa=Ze(function(r,a){var f=An(a);return Xt(f)&&(f=s),Xt(r)?Qa(r,rt(a,1,Xt,!0),s,f):[]});function iv(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===s?1:Xe(a),Fn(r,a<0?0:a,v)):[]}function lv(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===s?1:Xe(a),a=v-a,Fn(r,0,a<0?0:a)):[]}function xg(r,a){return r&&r.length?zu(r,De(a,3),!0,!0):[]}function jf(r,a){return r&&r.length?zu(r,De(a,3),!0):[]}function er(r,a,f,v){var b=r==null?0:r.length;return b?(f&&typeof f!="number"&&Cn(r,a,f)&&(f=0,v=b),Ie(r,a,f,v)):[]}function pr(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var b=f==null?0:Xe(f);return b<0&&(b=Rt(v+b,0)),Ys(r,De(a,3),b)}function Hf(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var b=v-1;return f!==s&&(b=Xe(f),b=f<0?Rt(v+b,0):Bt(b,v-1)),Ys(r,De(a,3),b,!0)}function Vn(r){var a=r==null?0:r.length;return a?rt(r,1):[]}function uv(r){var a=r==null?0:r.length;return a?rt(r,X):[]}function Wa(r,a){var f=r==null?0:r.length;return f?(a=a===s?1:Xe(a),rt(r,a)):[]}function Gi(r){for(var a=-1,f=r==null?0:r.length,v={};++a<f;){var b=r[a];v[b[0]]=b[1]}return v}function ba(r){return r&&r.length?r[0]:s}function kf(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var b=f==null?0:Xe(f);return b<0&&(b=Rt(v+b,0)),dl(r,a,b)}function Gf(r){var a=r==null?0:r.length;return a?Fn(r,0,-1):[]}var Kr=Ze(function(r){var a=zt(r,Ao);return a.length&&a[0]===r[0]?ff(a):[]}),sv=Ze(function(r){var a=An(r),f=zt(r,Ao);return a===An(f)?a=s:f.pop(),f.length&&f[0]===r[0]?ff(f,De(a,2)):[]}),Bl=Ze(function(r){var a=An(r),f=zt(r,Ao);return a=typeof a=="function"?a:s,a&&f.pop(),f.length&&f[0]===r[0]?ff(f,s,a):[]});function Wu(r,a){return r==null?"":fr.call(r,a)}function An(r){var a=r==null?0:r.length;return a?r[a-1]:s}function Ll(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var b=v;return f!==s&&(b=Xe(f),b=b<0?Rt(v+b,0):Bt(b,v-1)),a===a?Jn(r,a,b):Ys(r,hl,b,!0)}function ov(r,a){return r&&r.length?bf(r,Xe(a)):s}var cv=Ze(Ul);function Ul(r,a){return r&&r.length&&a&&a.length?mo(r,a):r}function fv(r,a,f){return r&&r.length&&a&&a.length?mo(r,a,De(f,2)):r}function Uo(r,a,f){return r&&r.length&&a&&a.length?mo(r,a,s,f):r}var dv=Nt(function(r,a){var f=r==null?0:r.length,v=Eu(r,a);return Af(r,zt(a,function(b){return Mr(b,f)?+b:b}).sort(Uu)),v});function Sg(r,a){var f=[];if(!(r&&r.length))return f;var v=-1,b=[],S=r.length;for(a=De(a,3);++v<S;){var T=r[v];a(T,v,r)&&(f.push(T),b.push(v))}return Af(r,b),f}function qf(r){return r==null?r:nf.call(r)}function At(r,a,f){var v=r==null?0:r.length;return v?(f&&typeof f!="number"&&Cn(r,a,f)?(a=0,f=v):(a=a==null?0:Xe(a),f=f===s?v:Xe(f)),Fn(r,a,f)):[]}function Ct(r,a){return Nu(r,a)}function $e(r,a,f){return bo(r,a,De(f,2))}function lt(r,a){var f=r==null?0:r.length;if(f){var v=Nu(r,a);if(v<f&&Xn(r[v],a))return v}return-1}function _t(r,a){return Nu(r,a,!0)}function tr(r,a,f){return bo(r,a,De(f,2),!0)}function Pa(r,a){var f=r==null?0:r.length;if(f){var v=Nu(r,a,!0)-1;if(Xn(r[v],a))return v}return-1}function jl(r){return r&&r.length?xf(r):[]}function Yf(r,a){return r&&r.length?xf(r,De(a,2)):[]}function ya(r){var a=r==null?0:r.length;return a?Fn(r,1,a):[]}function Qt(r,a,f){return r&&r.length?(a=f||a===s?1:Xe(a),Fn(r,0,a<0?0:a)):[]}function Fa(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===s?1:Xe(a),a=v-a,Fn(r,a<0?0:a,v)):[]}function qi(r,a){return r&&r.length?zu(r,De(a,3),!1,!0):[]}function Vf(r,a){return r&&r.length?zu(r,De(a,3)):[]}var br=Ze(function(r){return fa(rt(r,1,Xt,!0))}),Hl=Ze(function(r){var a=An(r);return Xt(a)&&(a=s),fa(rt(r,1,Xt,!0),De(a,2))}),Pu=Ze(function(r){var a=An(r);return a=typeof a=="function"?a:s,fa(rt(r,1,Xt,!0),s,a)});function Qn(r){return r&&r.length?fa(r):[]}function Qf(r,a){return r&&r.length?fa(r,De(a,2)):[]}function Xf(r,a){return a=typeof a=="function"?a:s,r&&r.length?fa(r,s,a):[]}function kl(r){if(!(r&&r.length))return[];var a=0;return r=Hr(r,function(f){if(Xt(f))return a=Rt(f.length,a),!0}),Ua(a,function(f){return zt(r,Vs(f))})}function Fu(r,a){if(!(r&&r.length))return[];var f=kl(r);return a==null?f:zt(f,function(v){return Bn(a,s,v)})}var $a=Ze(function(r,a){return Xt(r)?Qa(r,a):[]}),gn=Ze(function(r){return Bu(Hr(r,Xt))}),ei=Ze(function(r){var a=An(r);return Xt(a)&&(a=s),Bu(Hr(r,Xt),De(a,2))}),Gl=Ze(function(r){var a=An(r);return a=typeof a=="function"?a:s,Bu(Hr(r,Xt),s,a)}),ql=Ze(kl);function Kf(r,a){return Ef(r||[],a||[],Ci)}function Zf(r,a){return Ef(r||[],a||[],Cl)}var hv=Ze(function(r){var a=r.length,f=a>1?r[a-1]:s;return f=typeof f=="function"?(r.pop(),f):s,Fu(r,f)});function Yl(r){var a=y(r);return a.__chain__=!0,a}function If(r,a){return a(r),r}function _n(r,a){return a(r)}var vv=Nt(function(r){var a=r.length,f=a?r[0]:0,v=this.__wrapped__,b=function(S){return Eu(S,r)};return a>1||this.__actions__.length||!(v instanceof We)||!Mr(f)?this.thru(b):(v=v.slice(f,+f+(a?1:0)),v.__actions__.push({func:_n,args:[b],thisArg:s}),new jn(v,this.__chain__).thru(function(S){return a&&!S.length&&S.push(s),S}))});function nr(){return Yl(this)}function mv(){return new jn(this.value(),this.__chain__)}function gv(){this.__values__===s&&(this.__values__=rr(this.value()));var r=this.__index__>=this.__values__.length,a=r?s:this.__values__[this.__index__++];return{done:r,value:a}}function Eg(){return this}function ti(r){for(var a,f=this;f instanceof vr;){var v=tn(f);v.__index__=0,v.__values__=s,a?b.__wrapped__=v:a=v;var b=v;f=f.__wrapped__}return b.__wrapped__=r,a}function jo(){var r=this.__wrapped__;if(r instanceof We){var a=r;return this.__actions__.length&&(a=new We(this)),a=a.reverse(),a.__actions__.push({func:_n,args:[qf],thisArg:s}),new jn(a,this.__chain__)}return this.thru(qf)}function Jf(){return Uh(this.__wrapped__,this.__actions__)}var Vl=Li(function(r,a,f){ft.call(r,f)?++r[f]:Or(r,f,1)});function pv(r,a,f){var v=qe(r)?nh:of;return f&&Cn(r,a,f)&&(a=s),v(r,De(a,3))}function bv(r,a){var f=qe(r)?Hr:yt;return f(r,De(a,3))}var yv=ha(pr),Wf=ha(Hf);function Pf(r,a){return rt($u(r,a),1)}function Og(r,a){return rt($u(r,a),X)}function wg(r,a,f){return f=f===s?1:Xe(f),rt($u(r,a),f)}function Av(r,a){var f=qe(r)?sr:ca;return f(r,De(a,3))}function Ff(r,a){var f=qe(r)?ag:lo;return f(r,De(a,3))}var _v=Li(function(r,a,f){ft.call(r,f)?r[f].push(a):Or(r,f,[a])});function Ql(r,a,f,v){r=nn(r)?r:Pl(r),f=f&&!v?Xe(f):0;var b=r.length;return f<0&&(f=Rt(b+f,0)),Jo(r)?f<=b&&r.indexOf(a,f)>-1:!!b&&dl(r,a,f)>-1}var Ho=Ze(function(r,a,f){var v=-1,b=typeof a=="function",S=nn(r)?I(r.length):[];return ca(r,function(T){S[++v]=b?Bn(a,T,f):Di(T,a,f)}),S}),xv=Li(function(r,a,f){Or(r,f,a)});function $u(r,a){var f=qe(r)?zt:gf;return f(r,De(a,3))}function Sv(r,a,f,v){return r==null?[]:(qe(a)||(a=a==null?[]:[a]),f=v?s:f,qe(f)||(f=f==null?[]:[f]),yf(r,a,f))}var Ev=Li(function(r,a,f){r[f?0:1].push(a)},function(){return[[],[]]});function Ov(r,a,f){var v=qe(r)?Xc:Ic,b=arguments.length<3;return v(r,De(a,4),f,b,ca)}function wv(r,a,f){var v=qe(r)?ig:Ic,b=arguments.length<3;return v(r,De(a,4),f,b,lo)}function ko(r,a){var f=qe(r)?Hr:yt;return f(r,as(De(a,3)))}function Tv(r){var a=qe(r)?El:Ml;return a(r)}function Mv(r,a,f){(f?Cn(r,a,f):a===s)?a=1:a=Xe(a);var v=qe(r)?Eh:po;return v(r,a)}function Tt(r){var a=qe(r)?Oh:Bh;return a(r)}function $f(r){if(r==null)return 0;if(nn(r))return Jo(r)?kr(r):r.length;var a=fn(r);return a==Gt||a==Zt?r.size:co(r).length}function Tg(r,a,f){var v=qe(r)?Kc:Lh;return f&&Cn(r,a,f)&&(a=s),v(r,De(a,3))}var Cv=Ze(function(r,a){if(r==null)return[];var f=a.length;return f>1&&Cn(r,a[0],a[1])?a=[]:f>2&&Cn(a[0],a[1],a[2])&&(a=[a[0]]),yf(r,rt(a,1),[])}),Go=Ei||function(){return It.Date.now()};function Mg(r,a){if(typeof a!="function")throw new Wn(p);return r=Xe(r),function(){if(--r<1)return a.apply(this,arguments)}}function Rv(r,a,f){return a=f?s:a,a=r&&a==null?r.length:a,Vr(r,ue,s,s,s,s,a)}function es(r,a){var f;if(typeof a!="function")throw new Wn(p);return r=Xe(r),function(){return--r>0&&(f=a.apply(this,arguments)),r<=1&&(a=s),f}}var ni=Ze(function(r,a,f){var v=W;if(f.length){var b=Ha(f,ki(ni));v|=F}return Vr(r,v,a,f,b)}),qo=Ze(function(r,a,f){var v=W|se;if(f.length){var b=Ha(f,ki(qo));v|=F}return Vr(a,v,r,f,b)});function ts(r,a,f){a=f?s:a;var v=Vr(r,be,s,s,s,s,s,a);return v.placeholder=ts.placeholder,v}function Yo(r,a,f){a=f?s:a;var v=Vr(r,he,s,s,s,s,s,a);return v.placeholder=Yo.placeholder,v}function ri(r,a,f){var v,b,S,T,N,U,ne=0,ae=!1,fe=!1,xe=!0;if(typeof r!="function")throw new Wn(p);a=Ar(a)||0,jt(f)&&(ae=!!f.leading,fe="maxWait"in f,S=fe?Rt(Ar(f.maxWait)||0,a):S,xe="trailing"in f?!!f.trailing:xe);function Re(ln){var xa=v,Vi=b;return v=b=s,ne=ln,T=r.apply(Vi,xa),T}function ke(ln){return ne=ln,N=zl(it,a),ae?Re(ln):T}function Fe(ln){var xa=ln-U,Vi=ln-ne,hp=a-xa;return fe?Bt(hp,S-Vi):hp}function Ge(ln){var xa=ln-U,Vi=ln-ne;return U===s||xa>=a||xa<0||fe&&Vi>=S}function it(){var ln=Go();if(Ge(ln))return ct(ln);N=zl(it,Fe(ln))}function ct(ln){return N=s,xe&&v?Re(ln):(v=b=s,T)}function Nr(){N!==s&&Hh(N),ne=0,v=U=b=N=s}function ar(){return N===s?T:ct(Go())}function Dr(){var ln=Go(),xa=Ge(ln);if(v=arguments,b=this,U=ln,xa){if(N===s)return ke(U);if(fe)return Hh(N),N=zl(it,a),Re(U)}return N===s&&(N=zl(it,a)),T}return Dr.cancel=Nr,Dr.flush=ar,Dr}var Zr=Ze(function(r,a){return Ri(r,1,a)}),ns=Ze(function(r,a,f){return Ri(r,Ar(a)||0,f)});function Cg(r){return Vr(r,we)}function rs(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new Wn(p);var f=function(){var v=arguments,b=a?a.apply(this,v):v[0],S=f.cache;if(S.has(b))return S.get(b);var T=r.apply(this,v);return f.cache=S.set(b,T)||S,T};return f.cache=new(rs.Cache||Hn),f}rs.Cache=Hn;function as(r){if(typeof r!="function")throw new Wn(p);return function(){var a=arguments;switch(a.length){case 0:return!r.call(this);case 1:return!r.call(this,a[0]);case 2:return!r.call(this,a[0],a[1]);case 3:return!r.call(this,a[0],a[1],a[2])}return!r.apply(this,a)}}function Nv(r){return es(2,r)}var Dv=jh(function(r,a){a=a.length==1&&qe(a[0])?zt(a[0],In(De())):zt(rt(a,1),In(De()));var f=a.length;return Ze(function(v){for(var b=-1,S=Bt(v.length,f);++b<S;)v[b]=a[b].call(this,v[b]);return Bn(r,this,v)})}),ed=Ze(function(r,a){var f=Ha(a,ki(ed));return Vr(r,F,s,a,f)}),Vo=Ze(function(r,a){var f=Ha(a,ki(Vo));return Vr(r,le,s,a,f)}),zv=Nt(function(r,a){return Vr(r,ce,s,s,s,a)});function Bv(r,a){if(typeof r!="function")throw new Wn(p);return a=a===s?a:Xe(a),Ze(r,a)}function Rg(r,a){if(typeof r!="function")throw new Wn(p);return a=a==null?0:Rt(Xe(a),0),Ze(function(f){var v=f[a],b=Ka(f,0,a);return v&&ia(b,v),Bn(r,this,b)})}function td(r,a,f){var v=!0,b=!0;if(typeof r!="function")throw new Wn(p);return jt(f)&&(v="leading"in f?!!f.leading:v,b="trailing"in f?!!f.trailing:b),ri(r,a,{leading:v,maxWait:a,trailing:b})}function nd(r){return Rv(r,1)}function Ng(r,a){return ed(Lu(a),r)}function Dg(){if(!arguments.length)return[];var r=arguments[0];return qe(r)?r:[r]}function is(r){return bn(r,Q)}function zg(r,a){return a=typeof a=="function"?a:s,bn(r,Q,a)}function Lv(r){return bn(r,R|Q)}function et(r,a){return a=typeof a=="function"?a:s,bn(r,R|Q,a)}function rd(r,a){return a==null||sf(r,a,an(a))}function Xn(r,a){return r===a||r!==r&&a!==a}var ad=Hi(Ou),Uv=Hi(function(r,a){return r>=a}),Aa=uo((function(){return arguments})())?uo:function(r){return kt(r)&&ft.call(r,"callee")&&!xi.call(r,"callee")},qe=I.isArray,Qo=Gs?In(Gs):kn;function nn(r){return r!=null&&Yi(r.length)&&!Cr(r)}function Xt(r){return kt(r)&&nn(r)}function Bg(r){return r===!0||r===!1||kt(r)&&at(r)==Qe}var ai=eo||a0,jv=Pd?In(Pd):Wt;function Hv(r){return kt(r)&&r.nodeType===1&&!yr(r)}function Xo(r){if(r==null)return!0;if(nn(r)&&(qe(r)||typeof r=="string"||typeof r.splice=="function"||ai(r)||Xl(r)||Aa(r)))return!r.length;var a=fn(r);if(a==Gt||a==Zt)return!r.size;if(wt(r))return!co(r).length;for(var f in r)if(ft.call(r,f))return!1;return!0}function St(r,a){return zi(r,a)}function id(r,a,f){f=typeof f=="function"?f:s;var v=f?f(r,a):s;return v===s?zi(r,a,s,f):!!v}function rn(r){if(!kt(r))return!1;var a=at(r);return a==Dt||a==vt||typeof r.message=="string"&&typeof r.name=="string"&&!yr(r)}function Lg(r){return typeof r=="number"&&gu(r)}function Cr(r){if(!jt(r))return!1;var a=at(r);return a==Kt||a==Sn||a==Ve||a==un}function Ko(r){return typeof r=="number"&&r==Xe(r)}function Yi(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=B}function jt(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}function kt(r){return r!=null&&typeof r=="object"}var Zo=Fd?In(Fd):so;function ld(r,a){return r===a||Tu(r,a,Mo(a))}function Ug(r,a,f){return f=typeof f=="function"?f:s,Tu(r,a,Mo(a),f)}function kv(r){return qv(r)&&r!=+r}function jg(r){if(Xu(r))throw new je(m);return qr(r)}function Gv(r){return r===null}function Hg(r){return r==null}function qv(r){return typeof r=="number"||kt(r)&&at(r)==_r}function yr(r){if(!kt(r)||at(r)!=Mt)return!1;var a=hu(r);if(a===null)return!0;var f=ft.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&du.call(f)==cr}var Io=$d?In($d):oo;function ud(r){return Ko(r)&&r>=-B&&r<=B}var Yv=eh?In(eh):hf;function Jo(r){return typeof r=="string"||!qe(r)&&kt(r)&&at(r)==Nn}function Rn(r){return typeof r=="symbol"||kt(r)&&at(r)==Ra}var Xl=th?In(th):vf;function Rr(r){return r===s}function sd(r){return kt(r)&&fn(r)==qt}function Vv(r){return kt(r)&&at(r)==mi}var Qv=Hi(fo),ls=Hi(function(r,a){return r<=a});function rr(r){if(!r)return[];if(nn(r))return Jo(r)?or(r):en(r);if(Si&&r[Si])return ch(r[Si]());var a=fn(r),f=a==Gt?Is:a==Zt?Js:Pl;return f(r)}function Ir(r){if(!r)return r===0?r:0;if(r=Ar(r),r===X||r===-X){var a=r<0?-1:1;return a*pe}return r===r?r:0}function Xe(r){var a=Ir(r),f=a%1;return a===a?f?a-f:a:0}function Jr(r){return r?wr(Xe(r),0,K):0}function Ar(r){if(typeof r=="number")return r;if(Rn(r))return O;if(jt(r)){var a=typeof r.valueOf=="function"?r.valueOf():r;r=jt(a)?a+"":a}if(typeof r!="string")return r===0?r:+r;r=lh(r);var f=on.test(r);return f||Yd.test(r)?ng(r.slice(2),f?2:8):al.test(r)?O:+r}function Xv(r){return qn(r,dn(r))}function Kl(r){return r?wr(Xe(r),-B,B):r===0?r:0}function dt(r){return r==null?"":Gn(r)}var kg=Ui(function(r,a){if(wt(a)||nn(a)){qn(a,an(a),r);return}for(var f in a)ft.call(a,f)&&Ci(r,f,a[f])}),Kv=Ui(function(r,a){qn(a,dn(a),r)}),Wo=Ui(function(r,a,f,v){qn(a,dn(a),r,v)}),Gg=Ui(function(r,a,f,v){qn(a,an(a),r,v)}),qg=Nt(Eu);function Yg(r,a){var f=Pn(r);return a==null?f:oa(f,a)}var Vg=Ze(function(r,a){r=st(r);var f=-1,v=a.length,b=v>2?a[2]:s;for(b&&Cn(a[0],a[1],b)&&(v=1);++f<v;)for(var S=a[f],T=dn(S),N=-1,U=T.length;++N<U;){var ne=T[N],ae=r[ne];(ae===s||Xn(ae,bl[ne])&&!ft.call(r,ne))&&(r[ne]=S[ne])}return r}),Zv=Ze(function(r){return r.push(s,Nf),Bn(cs,s,r)});function Zl(r,a){return rh(r,De(a,3),yn)}function us(r,a){return rh(r,De(a,3),Tl)}function Iv(r,a){return r==null?r:wl(r,De(a,3),dn)}function Qg(r,a){return r==null?r:Ni(r,De(a,3),dn)}function Il(r,a){return r&&yn(r,De(a,3))}function ss(r,a){return r&&Tl(r,De(a,3))}function Jv(r){return r==null?[]:Xa(r,an(r))}function Po(r){return r==null?[]:Xa(r,dn(r))}function os(r,a,f){var v=r==null?s:mr(r,a);return v===s?f:v}function od(r,a){return r!=null&&Qu(r,a,cf)}function Jl(r,a){return r!=null&&Qu(r,a,Mh)}var Wv=Hu(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=On.call(a)),r[a]=f},G(q)),Pv=Hu(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=On.call(a)),ft.call(r,a)?r[a].push(f):r[a]=[f]},De),Xg=Ze(Di);function an(r){return nn(r)?uf(r):co(r)}function dn(r){return nn(r)?uf(r,!0):Rh(r)}function Kg(r,a){var f={};return a=De(a,3),yn(r,function(v,b,S){Or(f,a(v,b,S),v)}),f}function Zg(r,a){var f={};return a=De(a,3),yn(r,function(v,b,S){Or(f,b,a(v,b,S))}),f}var Ig=Ui(function(r,a,f){Mu(r,a,f)}),cs=Ui(function(r,a,f,v){Mu(r,a,f,v)}),Fo=Nt(function(r,a){var f={};if(r==null)return f;var v=!1;a=zt(a,function(S){return S=da(S,r),v||(v=S.length>1),S}),qn(r,wo(r),f),v&&(f=bn(f,R|V|Q,Kh));for(var b=a.length;b--;)Du(f,a[b]);return f});function cd(r,a){return Wl(r,as(De(a)))}var Jg=Nt(function(r,a){return r==null?{}:Nh(r,a)});function Wl(r,a){if(r==null)return{};var f=zt(wo(r),function(v){return[v]});return a=De(a),vo(r,f,function(v,b){return a(v,b[0])})}function Wg(r,a,f){a=da(a,r);var v=-1,b=a.length;for(b||(b=1,r=s);++v<b;){var S=r==null?s:r[mt(a[v])];S===s&&(v=b,S=f),r=Cr(S)?S.call(r):S}return r}function Fv(r,a,f){return r==null?r:Cl(r,a,f)}function $v(r,a,f,v){return v=typeof v=="function"?v:s,r==null?r:Cl(r,a,f,v)}var fd=qu(an),dd=qu(dn);function hd(r,a,f){var v=qe(r),b=v||ai(r)||Xl(r);if(a=De(a,4),f==null){var S=r&&r.constructor;b?f=v?new S:[]:jt(r)?f=Cr(S)?Pn(hu(r)):{}:f={}}return(b?sr:yn)(r,function(T,N,U){return a(f,T,N,U)}),f}function em(r,a){return r==null?!0:Du(r,a)}function $o(r,a,f){return r==null?r:Sf(r,a,Lu(f))}function Pg(r,a,f,v){return v=typeof v=="function"?v:s,r==null?r:Sf(r,a,Lu(f),v)}function Pl(r){return r==null?[]:Ks(r,an(r))}function vd(r){return r==null?[]:Ks(r,dn(r))}function md(r,a,f){return f===s&&(f=a,a=s),f!==s&&(f=Ar(f),f=f===f?f:0),a!==s&&(a=Ar(a),a=a===a?a:0),wr(Ar(r),a,f)}function ec(r,a,f){return a=Ir(a),f===s?(f=a,a=0):f=Ir(f),r=Ar(r),Ch(r,a,f)}function gd(r,a,f){if(f&&typeof f!="boolean"&&Cn(r,a,f)&&(a=f=s),f===s&&(typeof a=="boolean"?(f=a,a=s):typeof r=="boolean"&&(f=r,r=s)),r===s&&a===s?(r=0,a=1):(r=Ir(r),a===s?(a=r,r=0):a=Ir(a)),r>a){var v=r;r=a,a=v}if(f||r%1||a%1){var b=tf();return Bt(r+b*(a-r+cu("1e-"+((b+"").length-1))),a)}return go(r,a)}var tm=Mn(function(r,a,f){return a=a.toLowerCase(),r+(f?tc(a):a)});function tc(r){return i(dt(r).toLowerCase())}function _a(r){return r=dt(r),r&&r.replace(il,Zs).replace(aa,"")}function ii(r,a,f){r=dt(r),a=Gn(a);var v=r.length;f=f===s?v:wr(Xe(f),0,v);var b=f;return f-=a.length,f>=0&&r.slice(f,b)==a}function li(r){return r=dt(r),r&&jd.test(r)?r.replace(el,uh):r}function fs(r){return r=dt(r),r&&Dn.test(r)?r.replace(sn,"\\$&"):r}var ds=Mn(function(r,a,f){return r+(f?"-":"")+a.toLowerCase()}),ui=Mn(function(r,a,f){return r+(f?" ":"")+a.toLowerCase()}),Fg=$n("toLowerCase");function nm(r,a,f){r=dt(r),a=Xe(a);var v=a?kr(r):0;if(!a||v>=a)return r;var b=(a-v)/2;return Gu(la(b),f)+r+Gu(_l(b),f)}function hs(r,a,f){r=dt(r),a=Xe(a);var v=a?kr(r):0;return a&&v<a?r+Gu(a-v,f):r}function $g(r,a,f){r=dt(r),a=Xe(a);var v=a?kr(r):0;return a&&v<a?Gu(a-v,f)+r:r}function rm(r,a,f){return f||a==null?a=0:a&&(a=+a),Oi(dt(r).replace(Da,""),a||0)}function nc(r,a,f){return(f?Cn(r,a,f):a===s)?a=1:a=Xe(a),_f(dt(r),a)}function am(){var r=arguments,a=dt(r[0]);return r.length<3?a:a.replace(r[1],r[2])}var e0=Mn(function(r,a,f){return r+(f?"_":"")+a.toLowerCase()});function rc(r,a,f){return f&&typeof f!="number"&&Cn(r,a,f)&&(a=f=s),f=f===s?K:f>>>0,f?(r=dt(r),r&&(typeof a=="string"||a!=null&&!Io(a))&&(a=Gn(a),!a&&ja(r))?Ka(or(r),0,f):r.split(a,f)):[]}var ac=Mn(function(r,a,f){return r+(f?" ":"")+i(a)});function im(r,a,f){return r=dt(r),f=f==null?0:wr(Xe(f),0,r.length),a=Gn(a),r.slice(f,f+a.length)==a}function vs(r,a,f){var v=y.templateSettings;f&&Cn(r,a,f)&&(a=s),r=dt(r),a=Wo({},a,v,Eo);var b=Wo({},a.imports,v.imports,Eo),S=an(b),T=Ks(b,S),N,U,ne=0,ae=a.interpolate||Cs,fe="__p += '",xe=Ws((a.escape||Cs).source+"|"+ae.source+"|"+(ae===Ms?nl:Cs).source+"|"+(a.evaluate||Cs).source+"|$","g"),Re="//# sourceURL="+(ft.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Id+"]")+`
`;r.replace(xe,function(Ge,it,ct,Nr,ar,Dr){return ct||(ct=Nr),fe+=r.slice(ne,Dr).replace(Vd,sh),it&&(N=!0,fe+=`' +
__e(`+it+`) +
'`),ar&&(U=!0,fe+=`';
`+ar+`;
__p += '`),ct&&(fe+=`' +
((__t = (`+ct+`)) == null ? '' : __t) +
'`),ne=Dr+Ge.length,Ge}),fe+=`';
`;var ke=ft.call(a,"variable")&&a.variable;if(!ke)fe=`with (obj) {
`+fe+`
}
`;else if(Oc.test(ke))throw new je(x);fe=(U?fe.replace(Jm,""):fe).replace(Ld,"$1").replace(Ud,"$1;"),fe="function("+(ke||"obj")+`) {
`+(ke?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(U?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+fe+`return __p
}`;var Fe=d(function(){return ut(S,Re+"return "+fe).apply(s,T)});if(Fe.source=fe,rn(Fe))throw Fe;return Fe}function pd(r){return dt(r).toLowerCase()}function ic(r){return dt(r).toUpperCase()}function lm(r,a,f){if(r=dt(r),r&&(f||a===s))return lh(r);if(!r||!(a=Gn(a)))return r;var v=or(r),b=or(a),S=ml(v,b),T=gl(v,b)+1;return Ka(v,S,T).join("")}function t0(r,a,f){if(r=dt(r),r&&(f||a===s))return r.slice(0,Wc(r)+1);if(!r||!(a=Gn(a)))return r;var v=or(r),b=gl(v,or(a))+1;return Ka(v,0,b).join("")}function lc(r,a,f){if(r=dt(r),r&&(f||a===s))return r.replace(Da,"");if(!r||!(a=Gn(a)))return r;var v=or(r),b=ml(v,or(a));return Ka(v,b).join("")}function e(r,a){var f=He,v=Se;if(jt(a)){var b="separator"in a?a.separator:b;f="length"in a?Xe(a.length):f,v="omission"in a?Gn(a.omission):v}r=dt(r);var S=r.length;if(ja(r)){var T=or(r);S=T.length}if(f>=S)return r;var N=f-kr(v);if(N<1)return v;var U=T?Ka(T,0,N).join(""):r.slice(0,N);if(b===s)return U+v;if(T&&(N+=U.length-N),Io(b)){if(r.slice(N).search(b)){var ne,ae=U;for(b.global||(b=Ws(b.source,dt(rl.exec(b))+"g")),b.lastIndex=0;ne=b.exec(ae);)var fe=ne.index;U=U.slice(0,fe===s?N:fe)}}else if(r.indexOf(Gn(b),N)!=N){var xe=U.lastIndexOf(b);xe>-1&&(U=U.slice(0,xe))}return U+v}function t(r){return r=dt(r),r&&Wm.test(r)?r.replace(Ts,dh):r}var n=Mn(function(r,a,f){return r+(f?" ":"")+a.toUpperCase()}),i=$n("toUpperCase");function c(r,a,f){return r=dt(r),a=f?s:a,a===s?oh(r)?hg(r):sg(r):r.match(a)||[]}var d=Ze(function(r,a){try{return Bn(r,s,a)}catch(f){return rn(f)?f:new je(f)}}),g=Nt(function(r,a){return sr(a,function(f){f=mt(f),Or(r,f,ni(r[f],r))}),r});function A(r){var a=r==null?0:r.length,f=De();return r=a?zt(r,function(v){if(typeof v[1]!="function")throw new Wn(p);return[f(v[0]),v[1]]}):[],Ze(function(v){for(var b=-1;++b<a;){var S=r[b];if(Bn(S[0],this,v))return Bn(S[1],this,v)}})}function M(r){return wh(bn(r,R))}function G(r){return function(){return r}}function $(r,a){return r==null||r!==r?a:r}var re=Yr(),Z=Yr(!0);function q(r){return r}function Be(r){return mf(typeof r=="function"?r:bn(r,R))}function ze(r){return pf(bn(r,R))}function Et(r,a){return ho(r,bn(a,R))}var L=Ze(function(r,a){return function(f){return Di(f,r,a)}}),D=Ze(function(r,a){return function(f){return Di(r,f,a)}});function H(r,a,f){var v=an(a),b=Xa(a,v);f==null&&!(jt(a)&&(b.length||!v.length))&&(f=a,a=r,r=this,b=Xa(a,an(a)));var S=!(jt(f)&&"chain"in f)||!!f.chain,T=Cr(r);return sr(b,function(N){var U=a[N];r[N]=U,T&&(r.prototype[N]=function(){var ne=this.__chain__;if(S||ne){var ae=r(this.__wrapped__),fe=ae.__actions__=en(this.__actions__);return fe.push({func:U,args:arguments,thisArg:r}),ae.__chain__=ne,ae}return U.apply(r,ia([this.value()],arguments))})}),r}function te(){return It._===this&&(It._=yl),this}function Ee(){}function Pe(r){return r=Xe(r),Ze(function(a){return bf(a,r)})}var Ne=ku(zt),Le=ku(nh),hn=ku(Kc);function ot(r){return Ro(r)?Vs(mt(r)):Dh(r)}function si(r){return function(a){return r==null?s:mr(r,a)}}var n0=Za(),Bb=Za(!0);function r0(){return[]}function a0(){return!1}function Lb(){return{}}function Ub(){return""}function jb(){return!0}function Hb(r,a){if(r=Xe(r),r<1||r>B)return[];var f=K,v=Bt(r,K);a=De(a),r-=K;for(var b=Ua(v,a);++f<r;)a(f);return b}function kb(r){return qe(r)?zt(r,mt):Rn(r)?[r]:en(Xr(dt(r)))}function Gb(r){var a=++xr;return dt(r)+a}var qb=Rl(function(r,a){return r+a},0),Yb=So("ceil"),Vb=Rl(function(r,a){return r/a},1),Qb=So("floor");function Xb(r){return r&&r.length?Tr(r,q,Ou):s}function Kb(r,a){return r&&r.length?Tr(r,De(a,2),Ou):s}function Zb(r){return ah(r,q)}function Ib(r,a){return ah(r,De(a,2))}function Jb(r){return r&&r.length?Tr(r,q,fo):s}function Wb(r,a){return r&&r.length?Tr(r,De(a,2),fo):s}var Pb=Rl(function(r,a){return r*a},1),Fb=So("round"),$b=Rl(function(r,a){return r-a},0);function ey(r){return r&&r.length?Xs(r,q):0}function ty(r,a){return r&&r.length?Xs(r,De(a,2)):0}return y.after=Mg,y.ary=Rv,y.assign=kg,y.assignIn=Kv,y.assignInWith=Wo,y.assignWith=Gg,y.at=qg,y.before=es,y.bind=ni,y.bindAll=g,y.bindKey=qo,y.castArray=Dg,y.chain=Yl,y.chunk=_g,y.compact=rv,y.concat=av,y.cond=A,y.conforms=M,y.constant=G,y.countBy=Vl,y.create=Yg,y.curry=ts,y.curryRight=Yo,y.debounce=ri,y.defaults=Vg,y.defaultsDeep=Zv,y.defer=Zr,y.delay=ns,y.difference=Ut,y.differenceBy=Yn,y.differenceWith=pa,y.drop=iv,y.dropRight=lv,y.dropRightWhile=xg,y.dropWhile=jf,y.fill=er,y.filter=bv,y.flatMap=Pf,y.flatMapDeep=Og,y.flatMapDepth=wg,y.flatten=Vn,y.flattenDeep=uv,y.flattenDepth=Wa,y.flip=Cg,y.flow=re,y.flowRight=Z,y.fromPairs=Gi,y.functions=Jv,y.functionsIn=Po,y.groupBy=_v,y.initial=Gf,y.intersection=Kr,y.intersectionBy=sv,y.intersectionWith=Bl,y.invert=Wv,y.invertBy=Pv,y.invokeMap=Ho,y.iteratee=Be,y.keyBy=xv,y.keys=an,y.keysIn=dn,y.map=$u,y.mapKeys=Kg,y.mapValues=Zg,y.matches=ze,y.matchesProperty=Et,y.memoize=rs,y.merge=Ig,y.mergeWith=cs,y.method=L,y.methodOf=D,y.mixin=H,y.negate=as,y.nthArg=Pe,y.omit=Fo,y.omitBy=cd,y.once=Nv,y.orderBy=Sv,y.over=Ne,y.overArgs=Dv,y.overEvery=Le,y.overSome=hn,y.partial=ed,y.partialRight=Vo,y.partition=Ev,y.pick=Jg,y.pickBy=Wl,y.property=ot,y.propertyOf=si,y.pull=cv,y.pullAll=Ul,y.pullAllBy=fv,y.pullAllWith=Uo,y.pullAt=dv,y.range=n0,y.rangeRight=Bb,y.rearg=zv,y.reject=ko,y.remove=Sg,y.rest=Bv,y.reverse=qf,y.sampleSize=Mv,y.set=Fv,y.setWith=$v,y.shuffle=Tt,y.slice=At,y.sortBy=Cv,y.sortedUniq=jl,y.sortedUniqBy=Yf,y.split=rc,y.spread=Rg,y.tail=ya,y.take=Qt,y.takeRight=Fa,y.takeRightWhile=qi,y.takeWhile=Vf,y.tap=If,y.throttle=td,y.thru=_n,y.toArray=rr,y.toPairs=fd,y.toPairsIn=dd,y.toPath=kb,y.toPlainObject=Xv,y.transform=hd,y.unary=nd,y.union=br,y.unionBy=Hl,y.unionWith=Pu,y.uniq=Qn,y.uniqBy=Qf,y.uniqWith=Xf,y.unset=em,y.unzip=kl,y.unzipWith=Fu,y.update=$o,y.updateWith=Pg,y.values=Pl,y.valuesIn=vd,y.without=$a,y.words=c,y.wrap=Ng,y.xor=gn,y.xorBy=ei,y.xorWith=Gl,y.zip=ql,y.zipObject=Kf,y.zipObjectDeep=Zf,y.zipWith=hv,y.entries=fd,y.entriesIn=dd,y.extend=Kv,y.extendWith=Wo,H(y,y),y.add=qb,y.attempt=d,y.camelCase=tm,y.capitalize=tc,y.ceil=Yb,y.clamp=md,y.clone=is,y.cloneDeep=Lv,y.cloneDeepWith=et,y.cloneWith=zg,y.conformsTo=rd,y.deburr=_a,y.defaultTo=$,y.divide=Vb,y.endsWith=ii,y.eq=Xn,y.escape=li,y.escapeRegExp=fs,y.every=pv,y.find=yv,y.findIndex=pr,y.findKey=Zl,y.findLast=Wf,y.findLastIndex=Hf,y.findLastKey=us,y.floor=Qb,y.forEach=Av,y.forEachRight=Ff,y.forIn=Iv,y.forInRight=Qg,y.forOwn=Il,y.forOwnRight=ss,y.get=os,y.gt=ad,y.gte=Uv,y.has=od,y.hasIn=Jl,y.head=ba,y.identity=q,y.includes=Ql,y.indexOf=kf,y.inRange=ec,y.invoke=Xg,y.isArguments=Aa,y.isArray=qe,y.isArrayBuffer=Qo,y.isArrayLike=nn,y.isArrayLikeObject=Xt,y.isBoolean=Bg,y.isBuffer=ai,y.isDate=jv,y.isElement=Hv,y.isEmpty=Xo,y.isEqual=St,y.isEqualWith=id,y.isError=rn,y.isFinite=Lg,y.isFunction=Cr,y.isInteger=Ko,y.isLength=Yi,y.isMap=Zo,y.isMatch=ld,y.isMatchWith=Ug,y.isNaN=kv,y.isNative=jg,y.isNil=Hg,y.isNull=Gv,y.isNumber=qv,y.isObject=jt,y.isObjectLike=kt,y.isPlainObject=yr,y.isRegExp=Io,y.isSafeInteger=ud,y.isSet=Yv,y.isString=Jo,y.isSymbol=Rn,y.isTypedArray=Xl,y.isUndefined=Rr,y.isWeakMap=sd,y.isWeakSet=Vv,y.join=Wu,y.kebabCase=ds,y.last=An,y.lastIndexOf=Ll,y.lowerCase=ui,y.lowerFirst=Fg,y.lt=Qv,y.lte=ls,y.max=Xb,y.maxBy=Kb,y.mean=Zb,y.meanBy=Ib,y.min=Jb,y.minBy=Wb,y.stubArray=r0,y.stubFalse=a0,y.stubObject=Lb,y.stubString=Ub,y.stubTrue=jb,y.multiply=Pb,y.nth=ov,y.noConflict=te,y.noop=Ee,y.now=Go,y.pad=nm,y.padEnd=hs,y.padStart=$g,y.parseInt=rm,y.random=gd,y.reduce=Ov,y.reduceRight=wv,y.repeat=nc,y.replace=am,y.result=Wg,y.round=Fb,y.runInContext=z,y.sample=Tv,y.size=$f,y.snakeCase=e0,y.some=Tg,y.sortedIndex=Ct,y.sortedIndexBy=$e,y.sortedIndexOf=lt,y.sortedLastIndex=_t,y.sortedLastIndexBy=tr,y.sortedLastIndexOf=Pa,y.startCase=ac,y.startsWith=im,y.subtract=$b,y.sum=ey,y.sumBy=ty,y.template=vs,y.times=Hb,y.toFinite=Ir,y.toInteger=Xe,y.toLength=Jr,y.toLower=pd,y.toNumber=Ar,y.toSafeInteger=Kl,y.toString=dt,y.toUpper=ic,y.trim=lm,y.trimEnd=t0,y.trimStart=lc,y.truncate=e,y.unescape=t,y.uniqueId=Gb,y.upperCase=n,y.upperFirst=i,y.each=Av,y.eachRight=Ff,y.first=ba,H(y,(function(){var r={};return yn(y,function(a,f){ft.call(y.prototype,f)||(r[f]=a)}),r})(),{chain:!1}),y.VERSION=o,sr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){y[r].placeholder=y}),sr(["drop","take"],function(r,a){We.prototype[r]=function(f){f=f===s?1:Rt(Xe(f),0);var v=this.__filtered__&&!a?new We(this):this.clone();return v.__filtered__?v.__takeCount__=Bt(f,v.__takeCount__):v.__views__.push({size:Bt(f,K),type:r+(v.__dir__<0?"Right":"")}),v},We.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),sr(["filter","map","takeWhile"],function(r,a){var f=a+1,v=f==Ae||f==C;We.prototype[r]=function(b){var S=this.clone();return S.__iteratees__.push({iteratee:De(b,3),type:f}),S.__filtered__=S.__filtered__||v,S}}),sr(["head","last"],function(r,a){var f="take"+(a?"Right":"");We.prototype[r]=function(){return this[f](1).value()[0]}}),sr(["initial","tail"],function(r,a){var f="drop"+(a?"":"Right");We.prototype[r]=function(){return this.__filtered__?new We(this):this[f](1)}}),We.prototype.compact=function(){return this.filter(q)},We.prototype.find=function(r){return this.filter(r).head()},We.prototype.findLast=function(r){return this.reverse().find(r)},We.prototype.invokeMap=Ze(function(r,a){return typeof r=="function"?new We(this):this.map(function(f){return Di(f,r,a)})}),We.prototype.reject=function(r){return this.filter(as(De(r)))},We.prototype.slice=function(r,a){r=Xe(r);var f=this;return f.__filtered__&&(r>0||a<0)?new We(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),a!==s&&(a=Xe(a),f=a<0?f.dropRight(-a):f.take(a-r)),f)},We.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},We.prototype.toArray=function(){return this.take(K)},yn(We.prototype,function(r,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),v=/^(?:head|last)$/.test(a),b=y[v?"take"+(a=="last"?"Right":""):a],S=v||/^find/.test(a);b&&(y.prototype[a]=function(){var T=this.__wrapped__,N=v?[1]:arguments,U=T instanceof We,ne=N[0],ae=U||qe(T),fe=function(it){var ct=b.apply(y,ia([it],N));return v&&xe?ct[0]:ct};ae&&f&&typeof ne=="function"&&ne.length!=1&&(U=ae=!1);var xe=this.__chain__,Re=!!this.__actions__.length,ke=S&&!xe,Fe=U&&!Re;if(!S&&ae){T=Fe?T:new We(this);var Ge=r.apply(T,N);return Ge.__actions__.push({func:_n,args:[fe],thisArg:s}),new jn(Ge,xe)}return ke&&Fe?r.apply(this,N):(Ge=this.thru(fe),ke?v?Ge.value()[0]:Ge.value():Ge)})}),sr(["pop","push","shift","sort","splice","unshift"],function(r){var a=Ps[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",v=/^(?:pop|shift)$/.test(r);y.prototype[r]=function(){var b=arguments;if(v&&!this.__chain__){var S=this.value();return a.apply(qe(S)?S:[],b)}return this[f](function(T){return a.apply(qe(T)?T:[],b)})}}),yn(We.prototype,function(r,a){var f=y[a];if(f){var v=f.name+"";ft.call(hr,v)||(hr[v]=[]),hr[v].push({name:a,func:f})}}),hr[Vt(s,se).name]=[{name:"wrapper",func:s}],We.prototype.clone=Au,We.prototype.reverse=to,We.prototype.value=Ti,y.prototype.at=vv,y.prototype.chain=nr,y.prototype.commit=mv,y.prototype.next=gv,y.prototype.plant=ti,y.prototype.reverse=jo,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Jf,y.prototype.first=y.prototype.head,Si&&(y.prototype[Si]=Eg),y}),ka=pl();La?((La.exports=ka)._=ka,fl._=ka):It._=ka}).call($2)})(_d,_d.exports)),_d.exports}var $0=ex();const a1=tp($0),$r={channelDeleteMessage:l=>Wr.call("channelDeleteMessage",l,[]),channelDocumentUpload:l=>Wr.callFormData("channelDocumentUpload",l),channelInfo:(l,u)=>Wr.call("channelInfo",l,u),channelList:(l,u)=>Wr.call("channelList",l,u),channelMessages:(l,u)=>Wr.call("channelMessages",l,u),channelReaction:l=>Wr.call("channelReaction",l,[]),channelSendMessage:(l,u)=>Wr.call("channelSendMessage",l,u),channelVoiceUpload:l=>Wr.callFormData("channelVoiceUpload",l),pinnedMessage:l=>Wr.call("pinnedMessage",l,[]),profileID:()=>Wr.call("profileID",{},[])},i1=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,l=>{const u=crypto.getRandomValues(new Uint8Array(1))[0]&15;return(l==="x"?u:u&3|8).toString(16)}),tx=(l,u)=>{const s=new TextEncoder().encode(l),o=new TextEncoder().encode(u),h=new Uint8Array(s.length);for(let m=0;m<s.length;m++)h[m]=s[m]^o[m%o.length];return btoa(String.fromCharCode(...Array.from(h)))},hm=(l,u)=>{const s=atob(l),o=new Uint8Array(s.length);for(let p=0;p<s.length;p++)o[p]=s.charCodeAt(p);const h=new TextEncoder().encode(u),m=new Uint8Array(o.length);for(let p=0;p<o.length;p++)m[p]=o[p]^h[p%h.length];return new TextDecoder().decode(m)};class Wr{static endpoints=[];static ENDPOINT_INDEX_KEY="rpcClient_endpointIndex";static currentEndpointIndex=0;static initialized=!1;static headers={};static tokenGetter=null;static tokenGetterAsync=null;static unauthorizedHandler=null;static networkErrorHandler=null;static toastHandler=null;static storage=null;static defaultExtensions=[];static setDefaultExtensions(u){this.defaultExtensions=u}static abortControllerTimeout=3e4;static setAbortControllerTimeout(u){this.abortControllerTimeout=u}static setStorage(u){this.storage=u}static useEncrypt=!1;static setUseEncrypt(u){this.useEncrypt=u}static setNetworkErrorHandler(u){this.networkErrorHandler=u}static async init(){if(!this.initialized){if(this.storage)try{const u=await this.storage.get(this.ENDPOINT_INDEX_KEY);if(u!==null){const s=parseInt(u,10);!isNaN(s)&&s>=0&&s<this.endpoints.length&&(this.currentEndpointIndex=s)}}catch(u){console.log("⚠️ Ошибка при загрузке индекса endpoint:",u)}else this.currentEndpointIndex=0;this.initialized=!0}}static async saveEndpointIndex(){if(this.storage)try{await this.storage.save(this.ENDPOINT_INDEX_KEY,this.currentEndpointIndex.toString())}catch(u){console.log("⚠️ Ошибка при сохранении индекса endpoint:",u)}}static switchToNextEndpoint(){this.endpoints.length<=1||(this.currentEndpointIndex=(this.currentEndpointIndex+1)%this.endpoints.length,this.saveEndpointIndex())}static async waitForEndpoints(){if(!(this.endpoints.length>0)&&(await new Promise(u=>setTimeout(u,1e3)),this.endpoints.length===0))throw new Error("Endpoints are not set")}static getCurrentEndpoint(){if(this.endpoints.length===0)throw new Error("Endpoints are not set");return this.endpoints[this.currentEndpointIndex]}static getCurrentEndpointDomain(){let u=this.getCurrentEndpoint().split("://")[0],o=this.getCurrentEndpoint().split("://")[1].split("/")[0];return`${u}://${o}`}static isNetworkError(u){return u.name==="AbortError"||u.name==="TimeoutError"||u.name==="TypeError"||u.message?.includes("Network request failed")||u.message?.includes("Failed to fetch")||u.message?.includes("NetworkError")}static setToken(u){this.tokenGetter=u}static setTokenAsync(u){this.tokenGetterAsync=u}static setUnauthorizedHandler(u){this.unauthorizedHandler=u}static setToast(u){this.toastHandler=u}static setEndpoints(u){this.endpoints=u,this.currentEndpointIndex=0,this.initialized=!1}static getToken(){return this.tokenGetter?this.tokenGetter():null}static async getTokenAsync(){return this.tokenGetter?this.tokenGetter():this.tokenGetterAsync?await this.tokenGetterAsync():null}static setHeaders(u){this.headers={...this.headers,...u}}static handleError(u){(u?.type==="UNAUTHORIZED"||u?.type==="UNAUTHENTICATED")&&this.unauthorizedHandler&&this.unauthorizedHandler(),u?.message&&this.toastHandler&&this.toastHandler(u.message)}static async callFormData(u,s){await this.waitForEndpoints();const o=this.getCurrentEndpoint();s.append("method",u);let h=await this.getTokenAsync();h&&s.append("token",h),s.append("timezone",Intl.DateTimeFormat().resolvedOptions().timeZone);const m=this.useEncrypt?i1():void 0;this.useEncrypt&&m&&s.append("context",m);const p={...this.headers};delete p["Content-Type"];const x=new AbortController,_=setTimeout(()=>{x.abort()},this.abortControllerTimeout);return fetch(o,{method:"POST",headers:p,body:s,signal:x.signal}).then(E=>E.json()).then(E=>{if(clearTimeout(_),this.useEncrypt&&m&&(E.result&&(E.result=JSON.parse(hm(E.result,m))),E.extensions&&(E.extensions=JSON.parse(hm(E.extensions,m)))),E?.error)throw this.handleError(E.error),E.error;return this.saveEndpointIndex(),E.result}).catch(E=>{throw clearTimeout(_),this.isNetworkError(E)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),E})}static async call(u,s,o){await this.waitForEndpoints();const h=this.getCurrentEndpoint(),m=this.useEncrypt?i1():void 0;let p=o??this.defaultExtensions;const x=await this.getTokenAsync(),_={method:u,extensions:p,context:m,token:x,params:s?m?tx(JSON.stringify(s??{}),m):s:void 0,id:Date.now().toString()};console.log("🚀🚀🚀 method: ",u," RPC Endpoint: ",h),console.log("🚀🚀🚀 method: ",u," RPC Body: ",JSON.stringify(_));const E=new AbortController,w=setTimeout(()=>{E.abort()},this.abortControllerTimeout);return fetch(h,{method:"POST",headers:{"Content-Type":"application/json",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,...this.headers},body:JSON.stringify(_),signal:E.signal}).then(R=>R.json()).then(R=>{if(clearTimeout(w),this.useEncrypt&&m&&(R.result&&(R.result=JSON.parse(hm(R.result,m))),R.extensions&&(R.extensions=JSON.parse(hm(R.extensions,m)))),console.log("🍪🍪🍪 method: ",u," RPC Response: ",JSON.stringify(R)),R?.error)throw this.handleError(R.error),R.error;return this.saveEndpointIndex(),R?.extensions&&zm.addToStore(R.extensions),R}).catch(R=>{throw clearTimeout(w),this.isNetworkError(R)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),console.log("🛑🛑🛑 RPC Error: ",JSON.stringify(_)),R})}}class zm{static storage=null;static setStorage(u){this.storage=u}static async loadFromStorage(){if(this.storage){const u=await this.storage.get("extensionsStore");if(u)try{let s=JSON.parse(u);$0.map(s,(o,h)=>{o&&(this.store?.[h]?this.store[h]={...this.store[h],...o}:this.store[h]=o)})}catch(s){console.error("⚠️ Ошибка при загрузке extensionsStore из storage:",s)}}}static saveToStorage=$0.debounce(()=>{this.storage&&this.storage.save("extensionsStore",JSON.stringify(this.store))},1e3);static store={shmChannelMessages:{},shmChannels:{},shmChannelMembers:{}};static addToStore(u){if(u?.shmChannelMessages&&u?.shmChannelMessages.length>0)for(const s of u?.shmChannelMessages)s?._id&&(this.store.shmChannelMessages[s._id]=s);if(u?.shmChannels&&u?.shmChannels.length>0)for(const s of u?.shmChannels)s?._id&&(this.store.shmChannels[s._id]=s);if(u?.shmChannelMembers&&u?.shmChannelMembers.length>0)for(const s of u?.shmChannelMembers)s?._id&&(this.store.shmChannelMembers[s._id]=s);this.saveToStorage()}static shmChannelMessagesByID(u){return u?this.store.shmChannelMessages?.[u]?this.store.shmChannelMessages[u]:(console.info("📕 Extension shmChannelMessages not found by ID: "+u),null):null}static shmChannelsByID(u){return u?this.store.shmChannels?.[u]?this.store.shmChannels[u]:(console.info("📕 Extension shmChannels not found by ID: "+u),null):null}static shmChannelMembersByID(u){return u?this.store.shmChannelMembers?.[u]?this.store.shmChannelMembers[u]:(console.info("📕 Extension shmChannelMembers not found by ID: "+u),null):null}static shmChannelMessagesByIDs(u){if(!u)return[];const s=[];for(const o of u)this.store.shmChannelMessages[o]&&s.push(this.store.shmChannelMessages[o]);return s.length===0&&console.info("📕 Extensions shmChannelMessages not found by IDs: "+u.join(", ")),s}static shmChannelsByIDs(u){if(!u)return[];const s=[];for(const o of u)this.store.shmChannels[o]&&s.push(this.store.shmChannels[o]);return s.length===0&&console.info("📕 Extensions shmChannels not found by IDs: "+u.join(", ")),s}static shmChannelMembersByIDs(u){if(!u)return[];const s=[];for(const o of u)this.store.shmChannelMembers[o]&&s.push(this.store.shmChannelMembers[o]);return s.length===0&&console.info("📕 Extensions shmChannelMembers not found by IDs: "+u.join(", ")),s}}const nx=window.location.hostname==="localhost"&&window.location.port!=="8888",rx=()=>{if(nx)return"http://localhost:8888/chat";let l=window.location.href;return l=l.split("#")[0],l=l.split("?")[0],l};var Mb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l1=me.createContext&&me.createContext(Mb),ax=["attr","size","title"];function ix(l,u){if(l==null)return{};var s=lx(l,u),o,h;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);for(h=0;h<m.length;h++)o=m[h],!(u.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(l,o)&&(s[o]=l[o])}return s}function lx(l,u){if(l==null)return{};var s={};for(var o in l)if(Object.prototype.hasOwnProperty.call(l,o)){if(u.indexOf(o)>=0)continue;s[o]=l[o]}return s}function Bm(){return Bm=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(l[o]=s[o])}return l},Bm.apply(this,arguments)}function u1(l,u){var s=Object.keys(l);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(l);u&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(l,h).enumerable})),s.push.apply(s,o)}return s}function Lm(l){for(var u=1;u<arguments.length;u++){var s=arguments[u]!=null?arguments[u]:{};u%2?u1(Object(s),!0).forEach(function(o){ux(l,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(s)):u1(Object(s)).forEach(function(o){Object.defineProperty(l,o,Object.getOwnPropertyDescriptor(s,o))})}return l}function ux(l,u,s){return u=sx(u),u in l?Object.defineProperty(l,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):l[u]=s,l}function sx(l){var u=ox(l,"string");return typeof u=="symbol"?u:u+""}function ox(l,u){if(typeof l!="object"||!l)return l;var s=l[Symbol.toPrimitive];if(s!==void 0){var o=s.call(l,u);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)}function Cb(l){return l&&l.map((u,s)=>me.createElement(u.tag,Lm({key:s},u.attr),Cb(u.child)))}function ir(l){return u=>me.createElement(cx,Bm({attr:Lm({},l.attr)},u),Cb(l.child))}function cx(l){var u=s=>{var{attr:o,size:h,title:m}=l,p=ix(l,ax),x=h||s.size||"1em",_;return s.className&&(_=s.className),l.className&&(_=(_?_+" ":"")+l.className),me.createElement("svg",Bm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,p,{className:_,style:Lm(Lm({color:l.color||s.color},s.style),l.style),height:x,width:x,xmlns:"http://www.w3.org/2000/svg"}),m&&me.createElement("title",null,m),l.children)};return l1!==void 0?me.createElement(l1.Consumer,null,s=>u(s)):u(Mb)}function fx(l){return ir({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"},child:[]}]})(l)}function dx(l){return ir({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"},child:[]}]})(l)}function fp(l){return ir({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(l)}const hx="data:image/jpeg;base64, ";class vx{constructor(){v2(this)}isFixedChannel=!1;setIsFixedChannel(u){this.isFixedChannel=u}selectChannelID=null;setSelectChannelID(u){this.selectChannelID=u}channelList=[];userID=null;loadUser(){$r.profileID().then(({result:u})=>{this.userID=u??null})}isMobile=()=>window.innerWidth<768||this.cap;cap=!1;setCap(u){this.cap=u}setChannelList(u){this.channelList=u}loadChannelList(){$r.channelList({},["shmChannelMessages"]).then(({result:u})=>{this.setChannelList(u?.data??[])})}}const Pt=new vx;function Rb(l){return ir({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 0 0 8a8 8 0 0 0 16 0m-7.5 3.5a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707z"},child:[]}]})(l)}function mx(l){return ir({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5M11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47M8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5"},child:[]}]})(l)}function gx(l){return ir({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(l)}const s1=new Map,px=l=>{const u=[];let h=25;for(let m=0;m<l;m++){const p=(Math.random()-.5)*10,x=Math.max(10,Math.min(50,h+p));u.push(Math.round(x)),h=x}return u},bx=({src:l,barsCount:u=30,cacheKey:s})=>{const o=de.useRef(null),[h,m]=de.useState(!1),[p,x]=de.useState(0),[_,E]=de.useState(0),[w,R]=de.useState([]);de.useEffect(()=>{const j=s??l,W=s1.get(j);if(W&&W.length===u){R(W);return}const se=px(u);s1.set(j,se),R(se)},[u,s,l]),de.useEffect(()=>{const j=o.current;if(!j)return;const W=()=>{j.duration&&x(j.currentTime/j.duration*100)},se=()=>{E(j.duration||0)};return j.addEventListener("timeupdate",W),j.addEventListener("loadedmetadata",se),j.addEventListener("ended",()=>m(!1)),()=>{j.removeEventListener("timeupdate",W),j.removeEventListener("loadedmetadata",se)}},[]);const V=()=>{const j=o.current;j&&(h?j.pause():j.play(),m(!h))},Q=j=>{const W=o.current;if(!W||!_)return;const se=j/w.length*_;W.currentTime=se},k=Math.floor(p/100*w.length);return J.jsxs("div",{className:"flex items-end  mt-4",onClick:j=>{j.preventDefault(),j.stopPropagation()},children:[J.jsx("audio",{ref:o,src:l,preload:"metadata"}),J.jsx("div",{children:J.jsx("div",{onClick:j=>{j.preventDefault(),j.stopPropagation(),V()},className:"mr-1",children:h?J.jsx(fx,{size:28}):J.jsx(dx,{size:28})})}),J.jsx("div",{className:"flex items-end space-x-1 flex-1  cursor-pointer overflow-hidden",children:w.map((j,W)=>J.jsx("div",{onClick:se=>{se.preventDefault(),se.stopPropagation(),Q(W)},className:`w-[2px] rounded-sm transition-colors duration-200 bg-black dark:bg-white ${W<=k?"opacity-100":"opacity-50"}`,style:{height:`${j}px`}},W))})]})};function yx(l){return ir({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z"},child:[]}]})(l)}function Ax(l){return ir({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8 8 0 0 1 12.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"},child:[]}]})(l)}function _x(l){return ir({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 0 1 5.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 0 1-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 0 1-1.12-.15 2.07 2.07 0 0 1-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 0 1-1.36 6.31 6.7 6.7 0 0 1-2.17 1.28z"},child:[]}]})(l)}function o1(l){return ir({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"},child:[]}]})(l)}function c1(l){return ir({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z"},child:[]}]})(l)}function xx(l){return ir({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z"},child:[]}]})(l)}const dp=({doc:l,size:u=40,className:s=""})=>{const o=l?.type;if(!o)return J.jsx(c1,{size:u,className:s});const h={image:Ax,audio:yx,video:xx,"application/pdf":_x,"application/zip":o1,"application/x-zip-compressed":o1};if(h[o]){const p=h[o];return J.jsx(p,{size:u,className:s})}const m=o.split("/")[0];if(m=="image")return J.jsx("img",{src:l.url,alt:l.name,style:{width:u,height:u},className:` object-cover ${s} rounded-xl bg-white`});if(h[m]){const p=h[m];return J.jsx(p,{size:u,className:s})}return J.jsx(c1,{size:u,className:s})},Nb=({msg:l,onClick:u})=>J.jsx("div",{className:"mb-2 mt-2 border-l-2 border-gray-500 pl-2",children:J.jsxs("div",{onClick:s=>{s.stopPropagation(),u()},id:`replay-msg-${l._id}`,children:[J.jsx("div",{children:l.text}),l.voice?.url&&J.jsx("div",{className:"text-sm ",children:"Аудио сообщение"}),l.attachments?.map(s=>J.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[J.jsx(dp,{doc:s}),J.jsx("div",{children:s.name})]}))]})});_s.locale("ru");const ep=[{name:"❤️",value:"heart"},{name:"👍",value:"like"},{name:"😂",value:"laugh"},{name:"😮",value:"wow"},{name:"😢",value:"sad"},{name:"😡",value:"angry"},{name:"👏",value:"clap"},{name:"🎉",value:"party"},{name:"💩",value:"poop"},{name:"🔥",value:"fire"}],Sx=l=>{const u=ep.find(s=>s.value===l);return u?u.name:""},Ex=({onReplayClick:l,msg:u,onClick:s,onChange:o})=>{const{userID:h}=Pt,m=w=>{$r.channelReaction({message:u._id,channel:u.channel,reaction:w}).then(()=>{o()})},p=()=>{if(!u.reactions||u.reactions.length==0)return null;const w=a1.groupBy(u.reactions,R=>R.type);return J.jsx("div",{className:"flex items-center space-x-1 mt-2",children:a1.map(w,(R,V)=>J.jsx(Od,{onClick:Q=>{Q.stopPropagation(),m(V)},media:J.jsx("div",{className:"ml-2",children:Sx(V)}),className:"m-1 cursor-pointer",children:J.jsx("span",{className:"font-medium",children:R.length})},V))})},x=zm.shmChannelMembersByID(u.member),_=zm.shmChannelMessagesByID(u.reply),E=!!u.deleted;return J.jsx(J.Fragment,{children:J.jsx(D1,{onClick:s,type:u.member!=h?"received":"sent",name:x?.name??"",text:E?J.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[J.jsx(mx,{className:"w-4 h-4"})," Сообщение удалено"]}):J.jsxs("div",{id:`msg-${u._id}`,children:[!!_&&J.jsx(Nb,{msg:_,onClick:()=>{_&&l(_)}}),J.jsx("div",{children:u.text}),u.voice?.url&&J.jsx(bx,{src:u.voice?.url,cacheKey:u._id}),u.attachments?.map(w=>J.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[J.jsx(dp,{doc:w}),J.jsx("div",{children:w.name}),J.jsx("div",{onClick:R=>{R.stopPropagation(),window.open(w.url,"_blank")},children:J.jsx(gx,{})})]})),J.jsx(p,{})]}),footer:J.jsx("div",{children:u.created_at&&_s.unix(u.created_at).format("DD.MM hh:mm")}),avatar:u.member!=h&&x?.avatar&&J.jsx("img",{alt:"avatar",src:x?.avatar,className:"w-8 h-8 rounded-full"})},u._id)})},Ox=({msg:l,onClick:u,onPin:s})=>J.jsxs("div",{className:"mb-2 mt-2 border-l-2 w-full border-gray-500 pl-2  flex justify-between items-center",children:[J.jsxs("div",{className:"active:opacity-50 cursor-pointer",onClick:o=>{o.stopPropagation(),u()},id:`pin-msg-${l._id}`,children:[J.jsx("div",{children:l.text}),l.voice?.url&&J.jsx("div",{className:"text-sm text-gray-500",children:"Аудио сообщение"}),l.attachments?.map(o=>J.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[J.jsx(dp,{doc:o}),J.jsx("div",{children:o.name})]}))]}),J.jsx("div",{className:"cursor-pointer active:opacity-50 p-2",onClick:o=>{o.stopPropagation(),s()},children:J.jsx(fp,{})})]}),wx=de.forwardRef((l,u)=>{const[s,o]=de.useState(null),h=de.useRef(null);de.useImperativeHandle(u,()=>({open:R=>{p(!0),o(R.msg),h.current=R}}));const[m,p]=de.useState(!1),x=()=>{p(!1)},_=R=>{x(),$r.channelReaction({channel:s?.channel,message:s?._id,reaction:R}).then(()=>{h.current?.onChange?.()})},E=()=>{const R=s?.reactions?.find(V=>V.user==Pt.userID);return J.jsxs("div",{className:" p-2",children:[J.jsx("div",{className:"flex  justify-around items-center",children:ep.map((V,Q)=>{if(Q<5)return J.jsx(Od,{outline:R?.type!=V.value,className:"m-1 cursor-pointer",onClick:()=>{_(V.value)},children:V.name},V.value)})}),J.jsx("div",{className:"flex  justify-around items-center",children:ep.map((V,Q)=>{if(Q>=5)return J.jsx(Od,{outline:R?.type!=V.value,className:"m-1 cursor-pointer",onClick:()=>{_(V.value)},children:V.name},V.value)})})]})},w=s?.member==Pt.userID;return!m||!s?._id?null:J.jsxs(z1,{opened:m&&!!s?._id,target:`#msg-${s?._id}`,onBackdropClick:x,className:"w-[300px]",children:[J.jsx(E,{}),J.jsxs(rp,{nested:!0,children:[J.jsx(xd,{title:"Ответить",link:!0,onClick:()=>{s&&(h.current?.onReply?.(s),x())}}),J.jsx(xd,{title:s?.pinned?.enabled?"Убрать закрепление":"Закрепить",link:!0,onClick:()=>{s&&(h.current?.onPinned?.(),x())}}),w&&J.jsx(xd,{title:J.jsx("span",{className:"text-red-500",children:"Удалить"}),link:!0,onClick:()=>{s&&(h.current?.onDelete?.(),x())}})]})]})});function Db(l){return ir({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M8,11 C8,14 9.790861,15 12,15 C14.209139,15 16,14 16,11 L16,5 C16,2 14.209139,1 12,1 C9.790861,1 8,2 8,5 L8,11 Z M4,9 L4,11 C4,16 7.581722,19 12,19 C16.418278,19 20,16 20,11 L20,9 M12,24 L12,19"},child:[]}]})(l)}function Tx(l){return ir({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.404 5.11l-1.015-1.014-5.075 5.074c-0.841 0.841-0.841 2.204 0 3.044s2.204 0.841 3.045 0l6.090-6.089c1.402-1.401 1.402-3.673 0-5.074s-3.674-1.402-5.075 0l-6.394 6.393c-0.005 0.005-0.010 0.009-0.014 0.013-1.955 1.955-1.955 5.123 0 7.077s5.123 1.954 7.078 0c0.004-0.004 0.008-0.009 0.013-0.014l0.001 0.001 4.365-4.364-1.015-1.014-4.365 4.363c-0.005 0.004-0.009 0.009-0.013 0.013-1.392 1.392-3.656 1.392-5.048 0s-1.392-3.655 0-5.047c0.005-0.005 0.009-0.009 0.014-0.013l-0.001-0.001 6.395-6.393c0.839-0.84 2.205-0.84 3.045 0s0.839 2.205 0 3.044l-6.090 6.089c-0.28 0.28-0.735 0.28-1.015 0s-0.28-0.735 0-1.014l5.075-5.075z"},child:[]}]})(l)}const Mx="data:audio/mpeg;base64,SUQzAwAAAAAATlRFTkMAAAATIAAAU291bmQgR3JpbmRlciA0LjAAQVBJQwAAAAQgAAAAAABUQ09QAAAAGSAAAENvcHlyaWdodCBBbGFuIE1jS2lubmV5AP/7mEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhpbmcAAAAPAAAABQAACNwAGxsbGxsbGxsbGxsbGxsbGxsbG2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dn1NTU1NTU1NTU1NTU1NTU1NTU1NTq6urq6urq6urq6urq6urq6urq6v//////////////////////////AAAADkxBTUUzLjEwMAN9AAAAAAAAAADUICQEQI0AAaQAAAjcsAR05wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/7KGgAAAAAAGkFAAAIAAANIKAAAQhQrTzY2gAAvZRnBw8gAAASAgQAAQPMCvxgyF4sQd/ihwagvwAkgHECAHF/8GwQTxBF//gWDi4Bmw48iBB///HeaF8rsmbu/5d5u//+n6f//pIIA9Sniwj4gAM8oC7/DlwJ2IAf4fOYk///GQL6BIG5p//5pDH/6P//+m///0H7kCAABTMwaYmZrIKWFdEGMo7hCh/GCA6h0i7AAYGkI//7iGgPCfasPNA/P4AAxOr55+fsAEWYTzK0HoAAfgkmAoPAAAAYLBgcCgYETEAhHhKYVHhmEhGRSCav2BmjgmjgEZbOBmMdAUKmMBuYoBYjCxhgOhwdBoKMIgpNkEAcwMAWSA0BF4XAL/JXPWkKwV6lTPzATEoGgFrsViTvSF0mJSJ9WuyGGnesxJ/qOUw7IYk7UZqNKV0rawWUOVD1SGoezjMZsPs71h9nen4Zd29DT/Xoah6/KYdvSqNXpVGugqAg4DQFDQNFg6JRgcBpZ0RKPAqIgeArv///2JCAArkkRuDFkVzNKhqEok0UJXRBjiO0QksK8S5KsJfYwcIRaMAFzKh0xgaNa4zLewOkzJjUyoVLyGHiQOFhwBMBAkuk0S4rZk5kwouraxKVtZcWgcpp0EsNh6IuTFYk/09KYdizgs5kL7O9RwzDvZmW3u5U1NXfZnTPwgBRuXtALi4TMtuWst4//////////////67+8f1l+WX7x5rL9ZfjjzLL8su1aXmVNytTZymHZhyou1qTwzDtSNWt0uW6XkJKbF/eMEPr/LrG5Vjjxr6EYMmEQHGLoeGPbFHb60AI+xoMSYDlQus9svzubpY1n//1r/+R/d6u4QSm4EAMw4DTEinOTJkWKCbLUX6nZ6wEUUWA9qOFIAMCtgsKAP/7qGgFgAcJZ1JuYqAAnUz6bcZQAA2A0UM8HgABXRnot4NQAEABjv1KqgyGPfaemuSGQK/bSG0H/hOZmLCM0BggNgUEwgwAwDF0UwAYIiCQGCRGCIdgZ4AxzYA4EABEALnxWgHE3uBow0g0IAGFxfV4GEgAFqwsfDzi2ht4GHRGA0vAGEmBjsZAYWF4RE3+JzIYVES8RAdhfAeFgMJgEAIUAYMAYGBQMBACgLAUG6n/upaZXMGTUaADAsMFBgkTsA0HAMKgMAYGBgkG8Qej//NE+7+zDkkwRcniKlIpF8nC6XjEx////9voJpIqUmyKR1ZoXyuaH//p/4t0hD4m0AIxuBiGAyAAh07YSQmmTwdBPQ+sdqxgLqBJF0MbBuz5F5fIUnQugI0AkvTbCysBRGIKEDA5D4DNjgmDCzjr8DHgQyQLTBAoxRBAcwTMYgoEcoj/8PUI8rmyJPkTMCNIgRMixFTIyN//stOtPdqKhtDsK6SKX/9//skv/Utf////ZttnSRUpNBFI6Ylwi5ByKF//6X/4Mg0DgSkAAGYAQrIhOITCGIWOP5Zdquy13OWrSAoCAwGIQOZJ4xs0+GWSEYgEJhQDiQJpKbOljMtzjMOy3WWcpjNqrS4/ll/5ZZfvn5U3NZd/+ayxx5//vGz3HHH8u/uVOE/Uuy7/xL/iL////aVDRmFbSAAEx4HcWecKlmFJ6K6i8Ty3KIrUWSOgDCCTAyAHwMIAkG4g24ZJaNJJKkkl0kmv+iijUlRRdFFutFJ/6nqdq1EyMqOEnTu3/2nf////xKdBUFf/UgAAJUH///XRzU2GoG+DnDQBQDAYoFYGS56BoYOAYTAYDwCAgEAYXAA+TBVVW71d2Z+////////4V//6f//1/9RgDA93//T/PKnl7dFhYeexIIxofMl6TXhoDDaGYgAAUNR2o0daTLEEOJvoCE8NvzIosscwg//7GEg6idH/N0qYNSpgKyKZpQQ7OINIUTs0CQAA35ClQoOwAIDIivmCBuXaCBhb9////+V/5twEaH+t/br24Kze9GpyIFRMJgIPABAOpGSFSagN7VJU3XysY9/PH+9/v85z+6se96BP7v6vE1UCAAAAAAEAAACgAD8v/2+UAm/AFD4mb1uZ+v//WHf////0hf/7GEgRgAFDEk5WBUAAMiNKDMCoAAAAAaQcAAAgAAA0g4AABEAkQqNisAIAAABAAGCACEGB/l8Pq3isUAHfghBdFyX/FUsTCsTkv5UyHQD/2L//XZ//+z///9i1TEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRBRwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/",Cx=({onCancel:l,onSend:u})=>{const[s,o]=de.useState(0),h=de.useRef(null),m=de.useRef(null),p=de.useRef(null),x=de.useRef(null),_=de.useRef([]),E=de.useRef(!1);de.useEffect(()=>E.current?void 0:(E.current=!0,(async()=>{try{const k=await navigator.mediaDevices.getUserMedia({audio:!0});p.current=k;const j=new MediaRecorder(k,{mimeType:"audio/webm"});j.ondataavailable=W=>_.current.push(W.data),j.onstop=()=>{const W=new Blob(_.current,{type:"audio/webm"});h.current=W,_.current=[]},j.start(),m.current=j,x.current=setInterval(()=>o(W=>W+1),1e3)}catch(k){console.error("🎙 Не удалось получить доступ к микрофону",k),l()}})(),()=>{x.current&&clearInterval(x.current)}),[]);const w=()=>{m?.current?.stop(),p.current?.getTracks().forEach(Q=>Q.stop()),x.current&&clearInterval(x.current),setTimeout(()=>{h.current&&u(h.current)},200)},R=()=>{m?.current?.stop(),p.current?.getTracks().forEach(Q=>Q.stop()),x.current&&clearInterval(x.current),l()},V=Q=>`${Math.floor(Q/60)}:${(Q%60).toString().padStart(2,"0")}`;return J.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-60 flex flex-col items-center justify-center z-50",children:J.jsxs("div",{className:"flex  items-start space-x-4 ",children:[J.jsx("div",{onClick:R,className:" bg-gray-600 text-white p-6 rounded-full",children:J.jsx(fp,{size:36})}),J.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[J.jsx("div",{className:"animate-pulse bg-red-600 p-6 rounded-full",children:J.jsx(Db,{className:"text-white",size:36})}),J.jsx("div",{className:"text-white text-xl",children:V(s)})]}),J.jsx("div",{className:" bg-green-600 text-white  p-6 rounded-full",onClick:w,children:J.jsx(Rb,{size:36})})]})})};async function Rx(){return new Promise(l=>{const u=document.createElement("input");u.type="file",u.style.display="none",u.addEventListener("change",()=>{const s=u.files?.[0]??null;if(u.remove(),s&&s.size>5242880){alert("❌ Файл слишком большой. Максимальный размер — 5MB."),l(null);return}l(s)}),document.body.appendChild(u),u.click()})}const Nx=new Audio(Mx),Dx=({onSended:l,replayMsg:u,removeReplay:s})=>{const{userID:o,channelList:h,loadChannelList:m,selectChannelID:p,setSelectChannelID:x}=Pt,_=()=>{E||Rx().then(he=>{he&&R(he)})},[E,w]=de.useState(!1),R=he=>{let F=new FormData;F.append("file",he),w(!0),$r.channelDocumentUpload(F).then(le=>{if(!le){w(!1);return}if(!p){w(!1);return}ge({attachments:[le],channel:p})}).catch(()=>{w(!1)})},[V,Q]=de.useState(""),k=de.useRef(null),j=de.useRef(null),[W,se]=de.useState(!1),ge=he=>{p&&(he.channel=p,u?._id&&(he.reply=u._id),w(!0),$r.channelSendMessage(he).then(()=>{l(),u&&s(),Nx.play(),he.text&&(Q(""),j.current&&(j.current.style.height="auto"))}).finally(()=>{w(!1)}))},be=()=>{if(!E)if(!V)se(!0);else{if(!p)return;ge({channel:p,text:V})}};return J.jsxs(J.Fragment,{children:[J.jsxs("div",{style:{height:"auto"},className:"left-0 z-10 bottom-0 absolute  w-full  p-2 bg-ios-light-surface-2 dark:bg-ios-dark-surface-2 ",children:[E&&J.jsx("div",{className:"flex items-center justify-center w-full  mb-2",children:J.jsx(B1,{className:"w-4 h-4 text-gray-800 dark:text-white"})}),u&&J.jsx(Nb,{onClick:()=>{E||s()},msg:u}),J.jsxs("div",{className:"w-full  flex",children:[J.jsx("div",{className:"flex items-end",children:J.jsx("div",{className:"p-2 flex items-center justify-center min-h-11",children:J.jsx("div",{onClick:()=>{_()},ref:k,children:J.jsx(Tx,{className:"text-gray-500",size:20})})})}),J.jsx("textarea",{ref:j,value:V,className:" p-2 w-full outline-none border-none text-base resize-none overflow-hidden bg-white  rounded-md dark:bg-gray-800",rows:1,onChange:he=>{if(E)return;const F=he.currentTarget;F.style.height="auto",F.style.height=`${F.scrollHeight}px`;let le=he.target?.value;le.trim()===""&&(le=""),Q(le)},placeholder:"Введите сообщение..."}),J.jsx("div",{className:"flex items-end w-10 ",children:J.jsx("div",{onClick:()=>{be()},className:"p-2 flex items-center justify-center min-h-11 relative",children:V?J.jsxs(J.Fragment,{children:[J.jsx("input",{onFocus:()=>{j.current?.focus()},className:"absolute opacity-0  right-0 left-0 top-0 bottom-0  cursor-pointer"}),J.jsx(Rb,{size:28,className:"w-6"})]}):J.jsx(Db,{size:28,className:"w-6"})})})]})]}),W&&J.jsx(Cx,{onCancel:()=>{se(!1)},onSend:he=>{let F=new FormData;F.append("file",he,"audio.webm"),w(!0),$r.channelVoiceUpload(F).then(le=>{le?._id&&p?ge({channel:p,voice:{_id:le._id}}):w(!1)}).catch(()=>{w(!1)}),se(!1)}})]})};_s.locale("ru");const zx=({noPage:l})=>{const{userID:u,channelList:s,loadChannelList:o,selectChannelID:h,setSelectChannelID:m}=Pt,[p,x]=de.useState(null),[_,E]=de.useState(null),w=de.useRef(null);de.useEffect(()=>{let ue=p?.filter(we=>we.pinned?.enabled);if(!ue)return;let ce=ue[ue?.length-1]??null;ce?._id!=_?._id&&E(ce??null)},[p]);const[R,V]=de.useState(null),Q=de.useRef(null),k=de.useRef(null),j=()=>{se?._id&&$r.channelMessages({channel:se._id,limit:50,offset:0},["shmChannelMembers","shmChannelMessages"]).then(({result:ue})=>{Q.current?(Q.current._id!=ue?.data?.[ue?.data.length-1]?._id&&F(),k.current=ue?.hash??null):F(),Q.current=ue?.data?.[ue?.data.length-1]??null,console.log(ue),x(ue?.data??[])})},W=de.useRef(null),[se,ge]=de.useState(null);de.useEffect(()=>{h&&$r.channelInfo({channel:h}).then(({result:ue})=>{ue&&ge(ue)})},[]),de.useEffect(()=>{if(se)return j(),W.current=setInterval(()=>{j()},5e3),()=>{W.current&&clearInterval(W.current)}},[se]);const be=ue=>{if(!ue){console.warn("Не указан ID сообщения для скрола");return}let we=document.getElementById(`msg-${ue}`)?.parentElement?.parentElement?.parentElement?.parentElement?.offsetTop;we?setTimeout(()=>{we&&he.current.scrollTo({top:we-100,behavior:"smooth"})},100):console.warn(`Не найден элемент с ID msg-${ue}`)},he=de.useRef(null),F=()=>{setTimeout(()=>{he.current.scrollTop=he.current.scrollHeight},100)},le=({children:ue})=>l?J.jsx("div",{className:"relative w-full h-full",children:ue}):J.jsx(Sm,{className:"ios:bg-white ios:dark:bg-black overflow-hidden",children:ue});return J.jsxs(le,{children:[!Pt.cap&&J.jsx(xm,{title:J.jsx("div",{className:"text-sm ml-3",children:se?.name}),right:J.jsx(J.Fragment,{children:J.jsx(R1,{onClick:()=>{ge(null),o()},children:J.jsx(fp,{size:24})})})}),!!_&&J.jsx(ap,{top:!0,children:J.jsx(Ox,{onPin:()=>{$r.pinnedMessage({message:_._id}).then(()=>{j()})},onClick:()=>{be(_._id)},msg:_})}),J.jsx(Dx,{removeReplay:()=>{V(null)},replayMsg:R,onSended:()=>{j()}}),J.jsxs("div",{ref:he,className:"overflow-y-scroll h-screen ",children:[J.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-20",style:{background:`url(${hx})`}}),J.jsx("div",{className:"flex flex-col relative z-1 px-4 mb-48",children:p?.map(ue=>J.jsx(Ex,{onReplayClick:ce=>{be(ce._id)},onClick:()=>{w.current?.open({msg:ue,onChange:()=>{j()},onPinned:()=>{$r.pinnedMessage({message:ue._id}).then(()=>{j()})},onDelete:()=>{$r.channelDeleteMessage({message:ue._id,channel:se?._id}).then(()=>{j()})},onReply:ce=>{V(ce)}})},onChange:()=>{j()},msg:ue},ue._id))})]}),J.jsx(wx,{ref:w})]})},zb=Im(zx);function Bx(l){return ir({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M431 320.6c-1-3.6 1.2-8.6 3.3-12.2a33.68 33.68 0 0 1 2.1-3.1A162 162 0 0 0 464 215c.3-92.2-77.5-167-173.7-167-83.9 0-153.9 57.1-170.3 132.9a160.7 160.7 0 0 0-3.7 34.2c0 92.3 74.8 169.1 171 169.1 15.3 0 35.9-4.6 47.2-7.7s22.5-7.2 25.4-8.3a26.44 26.44 0 0 1 9.3-1.7 26 26 0 0 1 10.1 2l56.7 20.1a13.52 13.52 0 0 0 3.9 1 8 8 0 0 0 8-8 12.85 12.85 0 0 0-.5-2.7z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M66.46 232a146.23 146.23 0 0 0 6.39 152.67c2.31 3.49 3.61 6.19 3.21 8s-11.93 61.87-11.93 61.87a8 8 0 0 0 2.71 7.68A8.17 8.17 0 0 0 72 464a7.26 7.26 0 0 0 2.91-.6l56.21-22a15.7 15.7 0 0 1 12 .2c18.94 7.38 39.88 12 60.83 12A159.21 159.21 0 0 0 284 432.11"},child:[]}]})(l)}_s.locale("ru");const Lx=({message:l})=>l?.deleted?"Удалено":l?l?.text?l?.text:l.attachments?.length?"Прикрепленные файлы":l?.voice?.url?"Аудио сообщение":"...":"...",Ux=()=>(de.useEffect(()=>{Pt.loadChannelList()},[]),J.jsx(rp,{strong:!0,outline:!0,children:Pt.channelList.map(l=>{const u=zm.shmChannelMessagesByID(l.lastMessage),s=l.unreadCounts?.[Pt.userID]??0;return J.jsx(xd,{after:s?J.jsx(T1,{children:s}):void 0,link:!0,onClick:()=>{l._id&&Pt.setSelectChannelID(l._id)},chevron:!1,title:l.name?l.name:"Без имени",text:J.jsx(Lx,{message:u}),footer:l.created_at?_s(l.created_at).format("DD.MM.YYYY HH:mm"):"",media:J.jsx("div",{className:"w-10 h-10 flex items-center justify-center text-2xl text-gray-500 bg-gray-100 rounded-full",children:J.jsx(Bx,{})})})})})),f1=Im(Ux);_s.locale("ru");const jx=()=>Pt.isMobile()?J.jsxs(Sm,{className:"ios:bg-white ios:dark:bg-black overflow-hidden",children:[!Pt.cap&&J.jsx(xm,{title:"Диалоги"}),J.jsx(f1,{})]}):J.jsx(Sm,{className:"ios:bg-white ios:dark:bg-black overflow-hidden flex items-center justify-center",children:J.jsxs("div",{className:"flex h-screen w-full overflow-hidden",children:[J.jsxs("div",{className:"w-[400px]  flex-shrink-0 overflow-hidden",children:[J.jsx(xm,{title:"Диалоги"}),J.jsx(ap,{top:!0,children:J.jsx("div",{className:"flex overflow-x-auto gap-2 p-2",children:["Все","Непрочитанные","Завершённые"].map((l,u)=>J.jsx(Od,{outline:!0,children:l}))})}),J.jsx(f1,{})]}),J.jsx("div",{className:"flex-1 ",children:Pt.selectChannelID&&J.jsx(zb,{noPage:!0})})]})}),Hx=Im(jx),kx=()=>/iPad|iPhone|iPod/.test(navigator.userAgent),Gx=l=>{let u="k-color-brand-primary";switch(l){case"primary":u="k-color-brand-primary";break;case"red":u="k-color-brand-red";break;case"green":u="k-color-brand-green";break;case"blue":u="k-color-brand-blue";break;case"pink":u="k-color-brand-pink";break;case"yellow":u="k-color-brand-yellow";break;case"orange":u="k-color-brand-orange";break;case"purple":u="k-color-brand-purple";break;case"deeppurple":u="k-color-brand-deeppurple";break;case"lightblue":u="k-color-brand-lightblue";break;case"teal":u="k-color-brand-teal";break;case"lime":u="k-color-brand-lime";break;case"deeporange":u="k-color-brand-deeporange";break}const s=document.documentElement;s.classList.forEach(o=>{o.includes("k-color")&&s.classList.remove(o)}),u&&s.classList.add(u)};_s.locale("ru");Wr.setEndpoints([rx()]);Wr.setToken(()=>new URLSearchParams(window.location.search).get("token")??null);const qx=()=>{const{userID:l,selectChannelID:u}=Pt;return de.useEffect(()=>{const s=new URLSearchParams(window.location.search);s.get("cap")?Pt.setCap(!0):Pt.setCap(!1);const h=s.get("channel");h?(Pt.setIsFixedChannel(!0),Pt.setSelectChannelID(h)):Pt.setIsFixedChannel(!1),s.get("dark")?document.body.classList.add("dark"):document.body.classList.remove("dark");let p=s.get("theme");p&&Gx(p),Pt.loadUser()},[]),J.jsx(O1,{theme:kx()?"ios":"material",safeAreas:!0,children:l?J.jsx(J.Fragment,{children:Pt.isMobile()&&u?J.jsx(zb,{}):Pt.isFixedChannel?J.jsx("div",{}):J.jsx(Hx,{})}):J.jsx("div",{})})},Yx=Im(qx);cy.createRoot(document.getElementById("root")).render(J.jsx(de.StrictMode,{children:J.jsx(Yx,{})}));
