(function($u){typeof define=="function"&&define.amd?define($u):$u()})((function(){"use strict";var Ife=Object.defineProperty;var Lfe=($u,pl,Fc)=>pl in $u?Ife($u,pl,{enumerable:!0,configurable:!0,writable:!0,value:Fc}):$u[pl]=Fc;var P=($u,pl,Fc)=>Lfe($u,typeof pl!="symbol"?pl+"":pl,Fc);function $u(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function pl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fc={exports:{}},av={};/**
 * @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 hC;function gV(){if(hC)return av;hC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:s}}return av.Fragment=t,av.jsx=n,av.jsxs=n,av}var ov={},z5={exports:{}},fn={};/**
 * @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 pC;function yV(){if(pC)return fn;pC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),T=Symbol.iterator;function w(F){return F===null||typeof F!="object"?null:(F=T&&F[T]||F["@@iterator"],typeof F=="function"?F:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,_={};function k(F,ee,Y){this.props=F,this.context=ee,this.refs=_,this.updater=Y||C}k.prototype.isReactComponent={},k.prototype.setState=function(F,ee){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,ee,"setState")},k.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function z(){}z.prototype=k.prototype;function L(F,ee,Y){this.props=F,this.context=ee,this.refs=_,this.updater=Y||C}var B=L.prototype=new z;B.constructor=L,M(B,k.prototype),B.isPureReactComponent=!0;var V=Array.isArray;function U(){}var X={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function ce(F,ee,Y){var Re=Y.ref;return{$$typeof:e,type:F,key:ee,ref:Re!==void 0?Re:null,props:Y}}function ie(F,ee){return ce(F.type,ee,F.props)}function ue(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function $(F){var ee={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(Y){return ee[Y]})}var le=/\/+/g;function Q(F,ee){return typeof F=="object"&&F!==null&&F.key!=null?$(""+F.key):ee.toString(36)}function oe(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(U,U):(F.status="pending",F.then(function(ee){F.status==="pending"&&(F.status="fulfilled",F.value=ee)},function(ee){F.status==="pending"&&(F.status="rejected",F.reason=ee)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function Z(F,ee,Y,Re,Se){var _e=typeof F;(_e==="undefined"||_e==="boolean")&&(F=null);var je=!1;if(F===null)je=!0;else switch(_e){case"bigint":case"string":case"number":je=!0;break;case"object":switch(F.$$typeof){case e:case t:je=!0;break;case b:return je=F._init,Z(je(F._payload),ee,Y,Re,Se)}}if(je)return Se=Se(F),je=Re===""?"."+Q(F,0):Re,V(Se)?(Y="",je!=null&&(Y=je.replace(le,"$&/")+"/"),Z(Se,ee,Y,"",function(Qe){return Qe})):Se!=null&&(ue(Se)&&(Se=ie(Se,Y+(Se.key==null||F&&F.key===Se.key?"":(""+Se.key).replace(le,"$&/")+"/")+je)),ee.push(Se)),1;je=0;var He=Re===""?".":Re+":";if(V(F))for(var Xe=0;Xe<F.length;Xe++)Re=F[Xe],_e=He+Q(Re,Xe),je+=Z(Re,ee,Y,_e,Se);else if(Xe=w(F),typeof Xe=="function")for(F=Xe.call(F),Xe=0;!(Re=F.next()).done;)Re=Re.value,_e=He+Q(Re,Xe++),je+=Z(Re,ee,Y,_e,Se);else if(_e==="object"){if(typeof F.then=="function")return Z(oe(F),ee,Y,Re,Se);throw ee=String(F),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return je}function ae(F,ee,Y){if(F==null)return F;var Re=[],Se=0;return Z(F,Re,"","",function(_e){return ee.call(Y,_e,Se++)}),Re}function de(F){if(F._status===-1){var ee=F._result;ee=ee(),ee.then(function(Y){(F._status===0||F._status===-1)&&(F._status=1,F._result=Y)},function(Y){(F._status===0||F._status===-1)&&(F._status=2,F._result=Y)}),F._status===-1&&(F._status=0,F._result=ee)}if(F._status===1)return F._result.default;throw F._result}var we=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)},te={map:ae,forEach:function(F,ee,Y){ae(F,function(){ee.apply(this,arguments)},Y)},count:function(F){var ee=0;return ae(F,function(){ee++}),ee},toArray:function(F){return ae(F,function(ee){return ee})||[]},only:function(F){if(!ue(F))throw Error("React.Children.only expected to receive a single React element child.");return F}};return fn.Activity=S,fn.Children=te,fn.Component=k,fn.Fragment=n,fn.Profiler=o,fn.PureComponent=L,fn.StrictMode=i,fn.Suspense=h,fn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,fn.__COMPILER_RUNTIME={__proto__:null,c:function(F){return X.H.useMemoCache(F)}},fn.cache=function(F){return function(){return F.apply(null,arguments)}},fn.cacheSignal=function(){return null},fn.cloneElement=function(F,ee,Y){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var Re=M({},F.props),Se=F.key;if(ee!=null)for(_e in ee.key!==void 0&&(Se=""+ee.key),ee)!se.call(ee,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&ee.ref===void 0||(Re[_e]=ee[_e]);var _e=arguments.length-2;if(_e===1)Re.children=Y;else if(1<_e){for(var je=Array(_e),He=0;He<_e;He++)je[He]=arguments[He+2];Re.children=je}return ce(F.type,Se,Re)},fn.createContext=function(F){return F={$$typeof:c,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:s,_context:F},F},fn.createElement=function(F,ee,Y){var Re,Se={},_e=null;if(ee!=null)for(Re in ee.key!==void 0&&(_e=""+ee.key),ee)se.call(ee,Re)&&Re!=="key"&&Re!=="__self"&&Re!=="__source"&&(Se[Re]=ee[Re]);var je=arguments.length-2;if(je===1)Se.children=Y;else if(1<je){for(var He=Array(je),Xe=0;Xe<je;Xe++)He[Xe]=arguments[Xe+2];Se.children=He}if(F&&F.defaultProps)for(Re in je=F.defaultProps,je)Se[Re]===void 0&&(Se[Re]=je[Re]);return ce(F,_e,Se)},fn.createRef=function(){return{current:null}},fn.forwardRef=function(F){return{$$typeof:d,render:F}},fn.isValidElement=ue,fn.lazy=function(F){return{$$typeof:b,_payload:{_status:-1,_result:F},_init:de}},fn.memo=function(F,ee){return{$$typeof:y,type:F,compare:ee===void 0?null:ee}},fn.startTransition=function(F){var ee=X.T,Y={};X.T=Y;try{var Re=F(),Se=X.S;Se!==null&&Se(Y,Re),typeof Re=="object"&&Re!==null&&typeof Re.then=="function"&&Re.then(U,we)}catch(_e){we(_e)}finally{ee!==null&&Y.types!==null&&(ee.types=Y.types),X.T=ee}},fn.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},fn.use=function(F){return X.H.use(F)},fn.useActionState=function(F,ee,Y){return X.H.useActionState(F,ee,Y)},fn.useCallback=function(F,ee){return X.H.useCallback(F,ee)},fn.useContext=function(F){return X.H.useContext(F)},fn.useDebugValue=function(){},fn.useDeferredValue=function(F,ee){return X.H.useDeferredValue(F,ee)},fn.useEffect=function(F,ee){return X.H.useEffect(F,ee)},fn.useEffectEvent=function(F){return X.H.useEffectEvent(F)},fn.useId=function(){return X.H.useId()},fn.useImperativeHandle=function(F,ee,Y){return X.H.useImperativeHandle(F,ee,Y)},fn.useInsertionEffect=function(F,ee){return X.H.useInsertionEffect(F,ee)},fn.useLayoutEffect=function(F,ee){return X.H.useLayoutEffect(F,ee)},fn.useMemo=function(F,ee){return X.H.useMemo(F,ee)},fn.useOptimistic=function(F,ee){return X.H.useOptimistic(F,ee)},fn.useReducer=function(F,ee,Y){return X.H.useReducer(F,ee,Y)},fn.useRef=function(F){return X.H.useRef(F)},fn.useState=function(F){return X.H.useState(F)},fn.useSyncExternalStore=function(F,ee,Y){return X.H.useSyncExternalStore(F,ee,Y)},fn.useTransition=function(){return X.H.useTransition()},fn.version="19.2.4",fn}var lv={exports:{}};lv.exports;var mC;function vV(){return mC||(mC=1,(function(e,t){var n={};/**
 * @license React
 * react.development.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.
 */n.NODE_ENV!=="production"&&(function(){function i(J,Oe){Object.defineProperty(c.prototype,J,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",Oe[0],Oe[1])}})}function o(J){return J===null||typeof J!="object"?null:(J=Me&&J[Me]||J["@@iterator"],typeof J=="function"?J:null)}function s(J,Oe){J=(J=J.constructor)&&(J.displayName||J.name)||"ReactClass";var tt=J+"."+Oe;st[tt]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Oe,J),st[tt]=!0)}function c(J,Oe,tt){this.props=J,this.context=Oe,this.refs=xt,this.updater=tt||Ot}function d(){}function h(J,Oe,tt){this.props=J,this.context=Oe,this.refs=xt,this.updater=tt||Ot}function y(){}function b(J){return""+J}function S(J){try{b(J);var Oe=!1}catch{Oe=!0}if(Oe){Oe=console;var tt=Oe.error,Ne=typeof Symbol=="function"&&Symbol.toStringTag&&J[Symbol.toStringTag]||J.constructor.name||"Object";return tt.call(Oe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ne),b(J)}}function T(J){if(J==null)return null;if(typeof J=="function")return J.$$typeof===mn?null:J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case ee:return"Fragment";case Re:return"Profiler";case Y:return"StrictMode";case He:return"Suspense";case Xe:return"SuspenseList";case Be:return"Activity"}if(typeof J=="object")switch(typeof J.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),J.$$typeof){case F:return"Portal";case _e:return J.displayName||"Context";case Se:return(J._context.displayName||"Context")+".Consumer";case je:var Oe=J.render;return J=J.displayName,J||(J=Oe.displayName||Oe.name||"",J=J!==""?"ForwardRef("+J+")":"ForwardRef"),J;case Qe:return Oe=J.displayName||null,Oe!==null?Oe:T(J.type)||"Memo";case et:Oe=J._payload,J=J._init;try{return T(J(Oe))}catch{}}return null}function w(J){if(J===ee)return"<>";if(typeof J=="object"&&J!==null&&J.$$typeof===et)return"<...>";try{var Oe=T(J);return Oe?"<"+Oe+">":"<...>"}catch{return"<...>"}}function C(){var J=at.A;return J===null?null:J.getOwner()}function M(){return Error("react-stack-top-frame")}function _(J){if(At.call(J,"key")){var Oe=Object.getOwnPropertyDescriptor(J,"key").get;if(Oe&&Oe.isReactWarning)return!1}return J.key!==void 0}function k(J,Oe){function tt(){Bt||(Bt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Oe))}tt.isReactWarning=!0,Object.defineProperty(J,"key",{get:tt,configurable:!0})}function z(){var J=T(this.type);return be[J]||(be[J]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),J=this.props.ref,J!==void 0?J:null}function L(J,Oe,tt,Ne,We,wt){var vt=tt.ref;return J={$$typeof:te,type:J,key:Oe,props:tt,_owner:Ne},(vt!==void 0?vt:null)!==null?Object.defineProperty(J,"ref",{enumerable:!1,get:z}):Object.defineProperty(J,"ref",{enumerable:!1,value:null}),J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(J,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(J,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:We}),Object.defineProperty(J,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:wt}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J}function B(J,Oe){return Oe=L(J.type,Oe,J.props,J._owner,J._debugStack,J._debugTask),J._store&&(Oe._store.validated=J._store.validated),Oe}function V(J){U(J)?J._store&&(J._store.validated=1):typeof J=="object"&&J!==null&&J.$$typeof===et&&(J._payload.status==="fulfilled"?U(J._payload.value)&&J._payload.value._store&&(J._payload.value._store.validated=1):J._store&&(J._store.validated=1))}function U(J){return typeof J=="object"&&J!==null&&J.$$typeof===te}function X(J){var Oe={"=":"=0",":":"=2"};return"$"+J.replace(/[=:]/g,function(tt){return Oe[tt]})}function se(J,Oe){return typeof J=="object"&&J!==null&&J.key!=null?(S(J.key),X(""+J.key)):Oe.toString(36)}function ce(J){switch(J.status){case"fulfilled":return J.value;case"rejected":throw J.reason;default:switch(typeof J.status=="string"?J.then(y,y):(J.status="pending",J.then(function(Oe){J.status==="pending"&&(J.status="fulfilled",J.value=Oe)},function(Oe){J.status==="pending"&&(J.status="rejected",J.reason=Oe)})),J.status){case"fulfilled":return J.value;case"rejected":throw J.reason}}throw J}function ie(J,Oe,tt,Ne,We){var wt=typeof J;(wt==="undefined"||wt==="boolean")&&(J=null);var vt=!1;if(J===null)vt=!0;else switch(wt){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(J.$$typeof){case te:case F:vt=!0;break;case et:return vt=J._init,ie(vt(J._payload),Oe,tt,Ne,We)}}if(vt){vt=J,We=We(vt);var Yt=Ne===""?"."+se(vt,0):Ne;return dn(We)?(tt="",Yt!=null&&(tt=Yt.replace(ut,"$&/")+"/"),ie(We,Oe,tt,"",function(Bn){return Bn})):We!=null&&(U(We)&&(We.key!=null&&(vt&&vt.key===We.key||S(We.key)),tt=B(We,tt+(We.key==null||vt&&vt.key===We.key?"":(""+We.key).replace(ut,"$&/")+"/")+Yt),Ne!==""&&vt!=null&&U(vt)&&vt.key==null&&vt._store&&!vt._store.validated&&(tt._store.validated=2),We=tt),Oe.push(We)),1}if(vt=0,Yt=Ne===""?".":Ne+":",dn(J))for(var ct=0;ct<J.length;ct++)Ne=J[ct],wt=Yt+se(Ne,ct),vt+=ie(Ne,Oe,tt,wt,We);else if(ct=o(J),typeof ct=="function")for(ct===J.entries&&(pt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pt=!0),J=ct.call(J),ct=0;!(Ne=J.next()).done;)Ne=Ne.value,wt=Yt+se(Ne,ct++),vt+=ie(Ne,Oe,tt,wt,We);else if(wt==="object"){if(typeof J.then=="function")return ie(ce(J),Oe,tt,Ne,We);throw Oe=String(J),Error("Objects are not valid as a React child (found: "+(Oe==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":Oe)+"). If you meant to render a collection of children, use an array instead.")}return vt}function ue(J,Oe,tt){if(J==null)return J;var Ne=[],We=0;return ie(J,Ne,"","",function(wt){return Oe.call(tt,wt,We++)}),Ne}function $(J){if(J._status===-1){var Oe=J._ioInfo;Oe!=null&&(Oe.start=Oe.end=performance.now()),Oe=J._result;var tt=Oe();if(tt.then(function(We){if(J._status===0||J._status===-1){J._status=1,J._result=We;var wt=J._ioInfo;wt!=null&&(wt.end=performance.now()),tt.status===void 0&&(tt.status="fulfilled",tt.value=We)}},function(We){if(J._status===0||J._status===-1){J._status=2,J._result=We;var wt=J._ioInfo;wt!=null&&(wt.end=performance.now()),tt.status===void 0&&(tt.status="rejected",tt.reason=We)}}),Oe=J._ioInfo,Oe!=null){Oe.value=tt;var Ne=tt.displayName;typeof Ne=="string"&&(Oe.name=Ne)}J._status===-1&&(J._status=0,J._result=tt)}if(J._status===1)return Oe=J._result,Oe===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s

Your code should look like: 
  const MyComponent = lazy(() => import('./MyComponent'))

Did you accidentally put curly braces around the import?`,Oe),"default"in Oe||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s

Your code should look like: 
  const MyComponent = lazy(() => import('./MyComponent'))`,Oe),Oe.default;throw J._result}function le(){var J=at.H;return J===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),J}function Q(){at.asyncTransitions--}function oe(J){if(Nt===null)try{var Oe=("require"+Math.random()).slice(0,7);Nt=(e&&e[Oe]).call(e,"timers").setImmediate}catch{Nt=function(Ne){gn===!1&&(gn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var We=new MessageChannel;We.port1.onmessage=Ne,We.port2.postMessage(void 0)}}return Nt(J)}function Z(J){return 1<J.length&&typeof AggregateError=="function"?new AggregateError(J):J[0]}function ae(J,Oe){Oe!==jt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),jt=Oe}function de(J,Oe,tt){var Ne=at.actQueue;if(Ne!==null)if(Ne.length!==0)try{we(Ne),oe(function(){return de(J,Oe,tt)});return}catch(We){at.thrownErrors.push(We)}else at.actQueue=null;0<at.thrownErrors.length?(Ne=Z(at.thrownErrors),at.thrownErrors.length=0,tt(Ne)):Oe(J)}function we(J){if(!bn){bn=!0;var Oe=0;try{for(;Oe<J.length;Oe++){var tt=J[Oe];do{at.didUsePromise=!1;var Ne=tt(!1);if(Ne!==null){if(at.didUsePromise){J[Oe]=tt,J.splice(0,Oe);return}tt=Ne}else break}while(!0)}J.length=0}catch(We){J.splice(0,Oe+1),at.thrownErrors.push(We)}finally{bn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var te=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Re=Symbol.for("react.profiler"),Se=Symbol.for("react.consumer"),_e=Symbol.for("react.context"),je=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),Qe=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),Me=Symbol.iterator,st={},Ot={isMounted:function(){return!1},enqueueForceUpdate:function(J){s(J,"forceUpdate")},enqueueReplaceState:function(J){s(J,"replaceState")},enqueueSetState:function(J){s(J,"setState")}},Kt=Object.assign,xt={};Object.freeze(xt),c.prototype.isReactComponent={},c.prototype.setState=function(J,Oe){if(typeof J!="object"&&typeof J!="function"&&J!=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,J,Oe,"setState")},c.prototype.forceUpdate=function(J){this.updater.enqueueForceUpdate(this,J,"forceUpdate")};var Ut={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(cr in Ut)Ut.hasOwnProperty(cr)&&i(cr,Ut[cr]);d.prototype=c.prototype,Ut=h.prototype=new d,Ut.constructor=h,Kt(Ut,c.prototype),Ut.isPureReactComponent=!0;var dn=Array.isArray,mn=Symbol.for("react.client.reference"),at={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},At=Object.prototype.hasOwnProperty,Mn=console.createTask?console.createTask:function(){return null};Ut={react_stack_bottom_frame:function(J){return J()}};var Bt,Ze,be={},Ve=Ut.react_stack_bottom_frame.bind(Ut,M)(),nt=Mn(w(M)),pt=!1,ut=/\/+/g,yt=typeof reportError=="function"?reportError:function(J){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J),error:J});if(!window.dispatchEvent(Oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",J);return}console.error(J)},gn=!1,Nt=null,jt=0,Fn=!1,bn=!1,Fr=typeof queueMicrotask=="function"?function(J){queueMicrotask(function(){return queueMicrotask(J)})}:oe;Ut=Object.freeze({__proto__:null,c:function(J){return le().useMemoCache(J)}});var cr={map:ue,forEach:function(J,Oe,tt){ue(J,function(){Oe.apply(this,arguments)},tt)},count:function(J){var Oe=0;return ue(J,function(){Oe++}),Oe},toArray:function(J){return ue(J,function(Oe){return Oe})||[]},only:function(J){if(!U(J))throw Error("React.Children.only expected to receive a single React element child.");return J}};t.Activity=Be,t.Children=cr,t.Component=c,t.Fragment=ee,t.Profiler=Re,t.PureComponent=h,t.StrictMode=Y,t.Suspense=He,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=at,t.__COMPILER_RUNTIME=Ut,t.act=function(J){var Oe=at.actQueue,tt=jt;jt++;var Ne=at.actQueue=Oe!==null?Oe:[],We=!1;try{var wt=J()}catch(ct){at.thrownErrors.push(ct)}if(0<at.thrownErrors.length)throw ae(Oe,tt),J=Z(at.thrownErrors),at.thrownErrors.length=0,J;if(wt!==null&&typeof wt=="object"&&typeof wt.then=="function"){var vt=wt;return Fr(function(){We||Fn||(Fn=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(ct,Bn){We=!0,vt.then(function(oi){if(ae(Oe,tt),tt===0){try{we(Ne),oe(function(){return de(oi,ct,Bn)})}catch(mf){at.thrownErrors.push(mf)}if(0<at.thrownErrors.length){var Bg=Z(at.thrownErrors);at.thrownErrors.length=0,Bn(Bg)}}else ct(oi)},function(oi){ae(Oe,tt),0<at.thrownErrors.length&&(oi=Z(at.thrownErrors),at.thrownErrors.length=0),Bn(oi)})}}}var Yt=wt;if(ae(Oe,tt),tt===0&&(we(Ne),Ne.length!==0&&Fr(function(){We||Fn||(Fn=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),at.actQueue=null),0<at.thrownErrors.length)throw J=Z(at.thrownErrors),at.thrownErrors.length=0,J;return{then:function(ct,Bn){We=!0,tt===0?(at.actQueue=Ne,oe(function(){return de(Yt,ct,Bn)})):ct(Yt)}}},t.cache=function(J){return function(){return J.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var J=at.getCurrentStack;return J===null?null:J()},t.cloneElement=function(J,Oe,tt){if(J==null)throw Error("The argument must be a React element, but you passed "+J+".");var Ne=Kt({},J.props),We=J.key,wt=J._owner;if(Oe!=null){var vt;e:{if(At.call(Oe,"ref")&&(vt=Object.getOwnPropertyDescriptor(Oe,"ref").get)&&vt.isReactWarning){vt=!1;break e}vt=Oe.ref!==void 0}vt&&(wt=C()),_(Oe)&&(S(Oe.key),We=""+Oe.key);for(Yt in Oe)!At.call(Oe,Yt)||Yt==="key"||Yt==="__self"||Yt==="__source"||Yt==="ref"&&Oe.ref===void 0||(Ne[Yt]=Oe[Yt])}var Yt=arguments.length-2;if(Yt===1)Ne.children=tt;else if(1<Yt){vt=Array(Yt);for(var ct=0;ct<Yt;ct++)vt[ct]=arguments[ct+2];Ne.children=vt}for(Ne=L(J.type,We,Ne,wt,J._debugStack,J._debugTask),We=2;We<arguments.length;We++)V(arguments[We]);return Ne},t.createContext=function(J){return J={$$typeof:_e,_currentValue:J,_currentValue2:J,_threadCount:0,Provider:null,Consumer:null},J.Provider=J,J.Consumer={$$typeof:Se,_context:J},J._currentRenderer=null,J._currentRenderer2=null,J},t.createElement=function(J,Oe,tt){for(var Ne=2;Ne<arguments.length;Ne++)V(arguments[Ne]);Ne={};var We=null;if(Oe!=null)for(ct in Ze||!("__self"in Oe)||"key"in Oe||(Ze=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),_(Oe)&&(S(Oe.key),We=""+Oe.key),Oe)At.call(Oe,ct)&&ct!=="key"&&ct!=="__self"&&ct!=="__source"&&(Ne[ct]=Oe[ct]);var wt=arguments.length-2;if(wt===1)Ne.children=tt;else if(1<wt){for(var vt=Array(wt),Yt=0;Yt<wt;Yt++)vt[Yt]=arguments[Yt+2];Object.freeze&&Object.freeze(vt),Ne.children=vt}if(J&&J.defaultProps)for(ct in wt=J.defaultProps,wt)Ne[ct]===void 0&&(Ne[ct]=wt[ct]);We&&k(Ne,typeof J=="function"?J.displayName||J.name||"Unknown":J);var ct=1e4>at.recentlyCreatedOwnerStacks++;return L(J,We,Ne,C(),ct?Error("react-stack-top-frame"):Ve,ct?Mn(w(J)):nt)},t.createRef=function(){var J={current:null};return Object.seal(J),J},t.forwardRef=function(J){J!=null&&J.$$typeof===Qe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof J!="function"?console.error("forwardRef requires a render function but was given %s.",J===null?"null":typeof J):J.length!==0&&J.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",J.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),J!=null&&J.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Oe={$$typeof:je,render:J},tt;return Object.defineProperty(Oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return tt},set:function(Ne){tt=Ne,J.name||J.displayName||(Object.defineProperty(J,"name",{value:Ne}),J.displayName=Ne)}}),Oe},t.isValidElement=U,t.lazy=function(J){J={_status:-1,_result:J};var Oe={$$typeof:et,_payload:J,_init:$},tt={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return J._ioInfo=tt,Oe._debugInfo=[{awaited:tt}],Oe},t.memo=function(J,Oe){J==null&&console.error("memo: The first argument must be a component. Instead received: %s",J===null?"null":typeof J),Oe={$$typeof:Qe,type:J,compare:Oe===void 0?null:Oe};var tt;return Object.defineProperty(Oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return tt},set:function(Ne){tt=Ne,J.name||J.displayName||(Object.defineProperty(J,"name",{value:Ne}),J.displayName=Ne)}}),Oe},t.startTransition=function(J){var Oe=at.T,tt={};tt._updatedFibers=new Set,at.T=tt;try{var Ne=J(),We=at.S;We!==null&&We(tt,Ne),typeof Ne=="object"&&Ne!==null&&typeof Ne.then=="function"&&(at.asyncTransitions++,Ne.then(Q,Q),Ne.then(y,yt))}catch(wt){yt(wt)}finally{Oe===null&&tt._updatedFibers&&(J=tt._updatedFibers.size,tt._updatedFibers.clear(),10<J&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),Oe!==null&&tt.types!==null&&(Oe.types!==null&&Oe.types!==tt.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),Oe.types=tt.types),at.T=Oe}},t.unstable_useCacheRefresh=function(){return le().useCacheRefresh()},t.use=function(J){return le().use(J)},t.useActionState=function(J,Oe,tt){return le().useActionState(J,Oe,tt)},t.useCallback=function(J,Oe){return le().useCallback(J,Oe)},t.useContext=function(J){var Oe=le();return J.$$typeof===Se&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),Oe.useContext(J)},t.useDebugValue=function(J,Oe){return le().useDebugValue(J,Oe)},t.useDeferredValue=function(J,Oe){return le().useDeferredValue(J,Oe)},t.useEffect=function(J,Oe){return J==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),le().useEffect(J,Oe)},t.useEffectEvent=function(J){return le().useEffectEvent(J)},t.useId=function(){return le().useId()},t.useImperativeHandle=function(J,Oe,tt){return le().useImperativeHandle(J,Oe,tt)},t.useInsertionEffect=function(J,Oe){return J==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),le().useInsertionEffect(J,Oe)},t.useLayoutEffect=function(J,Oe){return J==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),le().useLayoutEffect(J,Oe)},t.useMemo=function(J,Oe){return le().useMemo(J,Oe)},t.useOptimistic=function(J,Oe){return le().useOptimistic(J,Oe)},t.useReducer=function(J,Oe,tt){return le().useReducer(J,Oe,tt)},t.useRef=function(J){return le().useRef(J)},t.useState=function(J){return le().useState(J)},t.useSyncExternalStore=function(J,Oe,tt){return le().useSyncExternalStore(J,Oe,tt)},t.useTransition=function(){return le().useTransition()},t.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(lv,lv.exports)),lv.exports}var gC;function Ad(){if(gC)return z5.exports;gC=1;var e={};return e.NODE_ENV==="production"?z5.exports=yV():z5.exports=vV(),z5.exports}var yC;function bV(){if(yC)return ov;yC=1;var e={};/**
 * @license React
 * react-jsx-runtime.development.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.
 */return e.NODE_ENV!=="production"&&(function(){function t(ee){if(ee==null)return null;if(typeof ee=="function")return ee.$$typeof===$?null:ee.displayName||ee.name||null;if(typeof ee=="string")return ee;switch(ee){case k:return"Fragment";case L:return"Profiler";case z:return"StrictMode";case X:return"Suspense";case se:return"SuspenseList";case ue:return"Activity"}if(typeof ee=="object")switch(typeof ee.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),ee.$$typeof){case _:return"Portal";case V:return ee.displayName||"Context";case B:return(ee._context.displayName||"Context")+".Consumer";case U:var Y=ee.render;return ee=ee.displayName,ee||(ee=Y.displayName||Y.name||"",ee=ee!==""?"ForwardRef("+ee+")":"ForwardRef"),ee;case ce:return Y=ee.displayName||null,Y!==null?Y:t(ee.type)||"Memo";case ie:Y=ee._payload,ee=ee._init;try{return t(ee(Y))}catch{}}return null}function n(ee){return""+ee}function i(ee){try{n(ee);var Y=!1}catch{Y=!0}if(Y){Y=console;var Re=Y.error,Se=typeof Symbol=="function"&&Symbol.toStringTag&&ee[Symbol.toStringTag]||ee.constructor.name||"Object";return Re.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Se),n(ee)}}function o(ee){if(ee===k)return"<>";if(typeof ee=="object"&&ee!==null&&ee.$$typeof===ie)return"<...>";try{var Y=t(ee);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function s(){var ee=le.A;return ee===null?null:ee.getOwner()}function c(){return Error("react-stack-top-frame")}function d(ee){if(Q.call(ee,"key")){var Y=Object.getOwnPropertyDescriptor(ee,"key").get;if(Y&&Y.isReactWarning)return!1}return ee.key!==void 0}function h(ee,Y){function Re(){ae||(ae=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Y))}Re.isReactWarning=!0,Object.defineProperty(ee,"key",{get:Re,configurable:!0})}function y(){var ee=t(this.type);return de[ee]||(de[ee]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),ee=this.props.ref,ee!==void 0?ee:null}function b(ee,Y,Re,Se,_e,je){var He=Re.ref;return ee={$$typeof:M,type:ee,key:Y,props:Re,_owner:Se},(He!==void 0?He:null)!==null?Object.defineProperty(ee,"ref",{enumerable:!1,get:y}):Object.defineProperty(ee,"ref",{enumerable:!1,value:null}),ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ee,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ee,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_e}),Object.defineProperty(ee,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:je}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee}function S(ee,Y,Re,Se,_e,je){var He=Y.children;if(He!==void 0)if(Se)if(oe(He)){for(Se=0;Se<He.length;Se++)T(He[Se]);Object.freeze&&Object.freeze(He)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(He);if(Q.call(Y,"key")){He=t(ee);var Xe=Object.keys(Y).filter(function(et){return et!=="key"});Se=0<Xe.length?"{key: someKey, "+Xe.join(": ..., ")+": ...}":"{key: someKey}",F[He+Se]||(Xe=0<Xe.length?"{"+Xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
  let props = %s;
  <%s {...props} />
React keys must be passed directly to JSX without using spread:
  let props = %s;
  <%s key={someKey} {...props} />`,Se,He,Xe,He),F[He+Se]=!0)}if(He=null,Re!==void 0&&(i(Re),He=""+Re),d(Y)&&(i(Y.key),He=""+Y.key),"key"in Y){Re={};for(var Qe in Y)Qe!=="key"&&(Re[Qe]=Y[Qe])}else Re=Y;return He&&h(Re,typeof ee=="function"?ee.displayName||ee.name||"Unknown":ee),b(ee,He,Re,s(),_e,je)}function T(ee){w(ee)?ee._store&&(ee._store.validated=1):typeof ee=="object"&&ee!==null&&ee.$$typeof===ie&&(ee._payload.status==="fulfilled"?w(ee._payload.value)&&ee._payload.value._store&&(ee._payload.value._store.validated=1):ee._store&&(ee._store.validated=1))}function w(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===M}var C=Ad(),M=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),V=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),le=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,oe=Array.isArray,Z=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function(ee){return ee()}};var ae,de={},we=C.react_stack_bottom_frame.bind(C,c)(),te=Z(o(c)),F={};ov.Fragment=k,ov.jsx=function(ee,Y,Re){var Se=1e4>le.recentlyCreatedOwnerStacks++;return S(ee,Y,Re,!1,Se?Error("react-stack-top-frame"):we,Se?Z(o(ee)):te)},ov.jsxs=function(ee,Y,Re){var Se=1e4>le.recentlyCreatedOwnerStacks++;return S(ee,Y,Re,!0,Se?Error("react-stack-top-frame"):we,Se?Z(o(ee)):te)}})(),ov}var vC;function xV(){if(vC)return Fc.exports;vC=1;var e={};return e.NODE_ENV==="production"?Fc.exports=gV():Fc.exports=bV(),Fc.exports}var H=xV(),G=Ad();const nu=pl(G),Nw=$u({__proto__:null,default:nu},[G]);var I5={exports:{}},sv={},L5={exports:{}},kw={};/**
 * @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 bC;function SV(){return bC||(bC=1,(function(e){function t(Z,ae){var de=Z.length;Z.push(ae);e:for(;0<de;){var we=de-1>>>1,te=Z[we];if(0<o(te,ae))Z[we]=ae,Z[de]=te,de=we;else break e}}function n(Z){return Z.length===0?null:Z[0]}function i(Z){if(Z.length===0)return null;var ae=Z[0],de=Z.pop();if(de!==ae){Z[0]=de;e:for(var we=0,te=Z.length,F=te>>>1;we<F;){var ee=2*(we+1)-1,Y=Z[ee],Re=ee+1,Se=Z[Re];if(0>o(Y,de))Re<te&&0>o(Se,Y)?(Z[we]=Se,Z[Re]=de,we=Re):(Z[we]=Y,Z[ee]=de,we=ee);else if(Re<te&&0>o(Se,de))Z[we]=Se,Z[Re]=de,we=Re;else break e}}return ae}function o(Z,ae){var de=Z.sortIndex-ae.sortIndex;return de!==0?de:Z.id-ae.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],y=[],b=1,S=null,T=3,w=!1,C=!1,M=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function B(Z){for(var ae=n(y);ae!==null;){if(ae.callback===null)i(y);else if(ae.startTime<=Z)i(y),ae.sortIndex=ae.expirationTime,t(h,ae);else break;ae=n(y)}}function V(Z){if(M=!1,B(Z),!C)if(n(h)!==null)C=!0,U||(U=!0,$());else{var ae=n(y);ae!==null&&oe(V,ae.startTime-Z)}}var U=!1,X=-1,se=5,ce=-1;function ie(){return _?!0:!(e.unstable_now()-ce<se)}function ue(){if(_=!1,U){var Z=e.unstable_now();ce=Z;var ae=!0;try{e:{C=!1,M&&(M=!1,z(X),X=-1),w=!0;var de=T;try{t:{for(B(Z),S=n(h);S!==null&&!(S.expirationTime>Z&&ie());){var we=S.callback;if(typeof we=="function"){S.callback=null,T=S.priorityLevel;var te=we(S.expirationTime<=Z);if(Z=e.unstable_now(),typeof te=="function"){S.callback=te,B(Z),ae=!0;break t}S===n(h)&&i(h),B(Z)}else i(h);S=n(h)}if(S!==null)ae=!0;else{var F=n(y);F!==null&&oe(V,F.startTime-Z),ae=!1}}break e}finally{S=null,T=de,w=!1}ae=void 0}}finally{ae?$():U=!1}}}var $;if(typeof L=="function")$=function(){L(ue)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Q=le.port2;le.port1.onmessage=ue,$=function(){Q.postMessage(null)}}else $=function(){k(ue,0)};function oe(Z,ae){X=k(function(){Z(e.unstable_now())},ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(Z){switch(T){case 1:case 2:case 3:var ae=3;break;default:ae=T}var de=T;T=ae;try{return Z()}finally{T=de}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(Z,ae){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var de=T;T=Z;try{return ae()}finally{T=de}},e.unstable_scheduleCallback=function(Z,ae,de){var we=e.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?we+de:we):de=we,Z){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=de+te,Z={id:b++,callback:ae,priorityLevel:Z,startTime:de,expirationTime:te,sortIndex:-1},de>we?(Z.sortIndex=de,t(y,Z),n(h)===null&&Z===n(y)&&(M?(z(X),X=-1):M=!0,oe(V,de-we))):(Z.sortIndex=te,t(h,Z),C||w||(C=!0,U||(U=!0,$()))),Z},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(Z){var ae=T;return function(){var de=T;T=ae;try{return Z.apply(this,arguments)}finally{T=de}}}})(kw)),kw}var zw={},xC;function EV(){return xC||(xC=1,(function(e){var t={};/**
 * @license React
 * scheduler.development.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.
 */t.NODE_ENV!=="production"&&(function(){function n(){if(U=!1,ie){var ae=e.unstable_now();le=ae;var de=!0;try{e:{B=!1,V&&(V=!1,se(ue),ue=-1),L=!0;var we=z;try{t:{for(d(ae),k=o(C);k!==null&&!(k.expirationTime>ae&&y());){var te=k.callback;if(typeof te=="function"){k.callback=null,z=k.priorityLevel;var F=te(k.expirationTime<=ae);if(ae=e.unstable_now(),typeof F=="function"){k.callback=F,d(ae),de=!0;break t}k===o(C)&&s(C),d(ae)}else s(C);k=o(C)}if(k!==null)de=!0;else{var ee=o(M);ee!==null&&b(h,ee.startTime-ae),de=!1}}break e}finally{k=null,z=we,L=!1}de=void 0}}finally{de?Q():ie=!1}}}function i(ae,de){var we=ae.length;ae.push(de);e:for(;0<we;){var te=we-1>>>1,F=ae[te];if(0<c(F,de))ae[te]=de,ae[we]=F,we=te;else break e}}function o(ae){return ae.length===0?null:ae[0]}function s(ae){if(ae.length===0)return null;var de=ae[0],we=ae.pop();if(we!==de){ae[0]=we;e:for(var te=0,F=ae.length,ee=F>>>1;te<ee;){var Y=2*(te+1)-1,Re=ae[Y],Se=Y+1,_e=ae[Se];if(0>c(Re,we))Se<F&&0>c(_e,Re)?(ae[te]=_e,ae[Se]=we,te=Se):(ae[te]=Re,ae[Y]=we,te=Y);else if(Se<F&&0>c(_e,we))ae[te]=_e,ae[Se]=we,te=Se;else break e}}return de}function c(ae,de){var we=ae.sortIndex-de.sortIndex;return we!==0?we:ae.id-de.id}function d(ae){for(var de=o(M);de!==null;){if(de.callback===null)s(M);else if(de.startTime<=ae)s(M),de.sortIndex=de.expirationTime,i(C,de);else break;de=o(M)}}function h(ae){if(V=!1,d(ae),!B)if(o(C)!==null)B=!0,ie||(ie=!0,Q());else{var de=o(M);de!==null&&b(h,de.startTime-ae)}}function y(){return U?!0:!(e.unstable_now()-le<$)}function b(ae,de){ue=X(function(){ae(e.unstable_now())},de)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;e.unstable_now=function(){return S.now()}}else{var T=Date,w=T.now();e.unstable_now=function(){return T.now()-w}}var C=[],M=[],_=1,k=null,z=3,L=!1,B=!1,V=!1,U=!1,X=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null,ie=!1,ue=-1,$=5,le=-1;if(typeof ce=="function")var Q=function(){ce(n)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,Z=oe.port2;oe.port1.onmessage=n,Q=function(){Z.postMessage(null)}}else Q=function(){X(n,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ae){ae.callback=null},e.unstable_forceFrameRate=function(ae){0>ae||125<ae?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<ae?Math.floor(1e3/ae):5},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_next=function(ae){switch(z){case 1:case 2:case 3:var de=3;break;default:de=z}var we=z;z=de;try{return ae()}finally{z=we}},e.unstable_requestPaint=function(){U=!0},e.unstable_runWithPriority=function(ae,de){switch(ae){case 1:case 2:case 3:case 4:case 5:break;default:ae=3}var we=z;z=ae;try{return de()}finally{z=we}},e.unstable_scheduleCallback=function(ae,de,we){var te=e.unstable_now();switch(typeof we=="object"&&we!==null?(we=we.delay,we=typeof we=="number"&&0<we?te+we:te):we=te,ae){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=we+F,ae={id:_++,callback:de,priorityLevel:ae,startTime:we,expirationTime:F,sortIndex:-1},we>te?(ae.sortIndex=we,i(M,ae),o(C)===null&&ae===o(M)&&(V?(se(ue),ue=-1):V=!0,b(h,we-te))):(ae.sortIndex=F,i(C,ae),B||L||(B=!0,ie||(ie=!0,Q()))),ae},e.unstable_shouldYield=y,e.unstable_wrapCallback=function(ae){var de=z;return function(){var we=z;z=de;try{return ae.apply(this,arguments)}finally{z=we}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(zw)),zw}var SC;function EC(){if(SC)return L5.exports;SC=1;var e={};return e.NODE_ENV==="production"?L5.exports=SV():L5.exports=EV(),L5.exports}var V5={exports:{}},La={};/**
 * @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 wC;function wV(){if(wC)return La;wC=1;var e=Ad();function t(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(h,y,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:h,containerInfo:y,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return La.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,La.createPortal=function(h,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(t(299));return s(h,y,null,b)},La.flushSync=function(h){var y=c.T,b=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=y,i.p=b,i.d.f()}},La.preconnect=function(h,y){typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,i.d.C(h,y))},La.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},La.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var b=y.as,S=d(b,y.crossOrigin),T=typeof y.integrity=="string"?y.integrity:void 0,w=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?i.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:T,fetchPriority:w}):b==="script"&&i.d.X(h,{crossOrigin:S,integrity:T,fetchPriority:w,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},La.preinitModule=function(h,y){if(typeof h=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=d(y.as,y.crossOrigin);i.d.M(h,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&i.d.M(h)},La.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,S=d(b,y.crossOrigin);i.d.L(h,b,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},La.preloadModule=function(h,y){if(typeof h=="string")if(y){var b=d(y.as,y.crossOrigin);i.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else i.d.m(h)},La.requestFormReset=function(h){i.d.r(h)},La.unstable_batchedUpdates=function(h,y){return h(y)},La.useFormState=function(h,y,b){return c.H.useFormState(h,y,b)},La.useFormStatus=function(){return c.H.useHostTransitionStatus()},La.version="19.2.4",La}var Va={},TC;function TV(){if(TC)return Va;TC=1;var e={};/**
 * @license React
 * react-dom.development.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.
 */return e.NODE_ENV!=="production"&&(function(){function t(){}function n(T){return""+T}function i(T,w,C){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(M);var _=!1}catch{_=!0}return _&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object"),n(M)),{$$typeof:b,key:M==null?null:""+M,children:T,containerInfo:w,implementation:C}}function o(T,w){if(T==="font")return"";if(typeof w=="string")return w==="use-credentials"?w:""}function s(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function c(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T=="string"?JSON.stringify(T):typeof T=="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function d(){var T=S.H;return T===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h=Ad(),y={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},b=Symbol.for("react.portal"),S=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Va.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Va.createPortal=function(T,w){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)throw Error("Target container is not a DOM element.");return i(T,w,null,C)},Va.flushSync=function(T){var w=S.T,C=y.p;try{if(S.T=null,y.p=2,T)return T()}finally{S.T=w,y.p=C,y.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Va.preconnect=function(T,w){typeof T=="string"&&T?w!=null&&typeof w!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",c(w)):w!=null&&typeof w.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",s(w.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(T)),typeof T=="string"&&(w?(w=w.crossOrigin,w=typeof w=="string"?w==="use-credentials"?w:"":void 0):w=null,y.d.C(T,w))},Va.prefetchDNS=function(T){if(typeof T!="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(T));else if(1<arguments.length){var w=arguments[1];typeof w=="object"&&w.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",c(w)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",c(w))}typeof T=="string"&&y.d.D(T)},Va.preinit=function(T,w){if(typeof T=="string"&&T?w==null||typeof w!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",c(w)):w.as!=="style"&&w.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',c(w.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(T)),typeof T=="string"&&w&&typeof w.as=="string"){var C=w.as,M=o(C,w.crossOrigin),_=typeof w.integrity=="string"?w.integrity:void 0,k=typeof w.fetchPriority=="string"?w.fetchPriority:void 0;C==="style"?y.d.S(T,typeof w.precedence=="string"?w.precedence:void 0,{crossOrigin:M,integrity:_,fetchPriority:k}):C==="script"&&y.d.X(T,{crossOrigin:M,integrity:_,fetchPriority:k,nonce:typeof w.nonce=="string"?w.nonce:void 0})}},Va.preinitModule=function(T,w){var C="";if(typeof T=="string"&&T||(C+=" The `href` argument encountered was "+s(T)+"."),w!==void 0&&typeof w!="object"?C+=" The `options` argument encountered was "+s(w)+".":w&&"as"in w&&w.as!=="script"&&(C+=" The `as` option encountered was "+c(w.as)+"."),C)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",C);else switch(C=w&&typeof w.as=="string"?w.as:"script",C){case"script":break;default:C=c(C),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',C,T)}typeof T=="string"&&(typeof w=="object"&&w!==null?(w.as==null||w.as==="script")&&(C=o(w.as,w.crossOrigin),y.d.M(T,{crossOrigin:C,integrity:typeof w.integrity=="string"?w.integrity:void 0,nonce:typeof w.nonce=="string"?w.nonce:void 0})):w==null&&y.d.M(T))},Va.preload=function(T,w){var C="";if(typeof T=="string"&&T||(C+=" The `href` argument encountered was "+s(T)+"."),w==null||typeof w!="object"?C+=" The `options` argument encountered was "+s(w)+".":typeof w.as=="string"&&w.as||(C+=" The `as` option encountered was "+s(w.as)+"."),C&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',C),typeof T=="string"&&typeof w=="object"&&w!==null&&typeof w.as=="string"){C=w.as;var M=o(C,w.crossOrigin);y.d.L(T,C,{crossOrigin:M,integrity:typeof w.integrity=="string"?w.integrity:void 0,nonce:typeof w.nonce=="string"?w.nonce:void 0,type:typeof w.type=="string"?w.type:void 0,fetchPriority:typeof w.fetchPriority=="string"?w.fetchPriority:void 0,referrerPolicy:typeof w.referrerPolicy=="string"?w.referrerPolicy:void 0,imageSrcSet:typeof w.imageSrcSet=="string"?w.imageSrcSet:void 0,imageSizes:typeof w.imageSizes=="string"?w.imageSizes:void 0,media:typeof w.media=="string"?w.media:void 0})}},Va.preloadModule=function(T,w){var C="";typeof T=="string"&&T||(C+=" The `href` argument encountered was "+s(T)+"."),w!==void 0&&typeof w!="object"?C+=" The `options` argument encountered was "+s(w)+".":w&&"as"in w&&typeof w.as!="string"&&(C+=" The `as` option encountered was "+s(w.as)+"."),C&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',C),typeof T=="string"&&(w?(C=o(w.as,w.crossOrigin),y.d.m(T,{as:typeof w.as=="string"&&w.as!=="script"?w.as:void 0,crossOrigin:C,integrity:typeof w.integrity=="string"?w.integrity:void 0})):y.d.m(T))},Va.requestFormReset=function(T){y.d.r(T)},Va.unstable_batchedUpdates=function(T,w){return T(w)},Va.useFormState=function(T,w,C){return d().useFormState(T,w,C)},Va.useFormStatus=function(){return d().useHostTransitionStatus()},Va.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Va}var AC;function Iw(){if(AC)return V5.exports;AC=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return e.NODE_ENV==="production"?(t(),V5.exports=wV()):V5.exports=TV(),V5.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 CC;function AV(){if(CC)return sv;CC=1;var e=EC(),t=Ad(),n=Iw();function i(l){var f="https://react.dev/errors/"+l;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function s(l){var f=l,m=l;if(l.alternate)for(;f.return;)f=f.return;else{l=f;do f=l,(f.flags&4098)!==0&&(m=f.return),l=f.return;while(l)}return f.tag===3?m:null}function c(l){if(l.tag===13){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function d(l){if(l.tag===31){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function h(l){if(s(l)!==l)throw Error(i(188))}function y(l){var f=l.alternate;if(!f){if(f=s(l),f===null)throw Error(i(188));return f!==l?null:l}for(var m=l,v=f;;){var A=m.return;if(A===null)break;var O=A.alternate;if(O===null){if(v=A.return,v!==null){m=v;continue}break}if(A.child===O.child){for(O=A.child;O;){if(O===m)return h(A),l;if(O===v)return h(A),f;O=O.sibling}throw Error(i(188))}if(m.return!==v.return)m=A,v=O;else{for(var j=!1,ne=A.child;ne;){if(ne===m){j=!0,m=A,v=O;break}if(ne===v){j=!0,v=A,m=O;break}ne=ne.sibling}if(!j){for(ne=O.child;ne;){if(ne===m){j=!0,m=O,v=A;break}if(ne===v){j=!0,v=O,m=A;break}ne=ne.sibling}if(!j)throw Error(i(189))}}if(m.alternate!==v)throw Error(i(190))}if(m.tag!==3)throw Error(i(188));return m.stateNode.current===m?l:f}function b(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l;for(l=l.child;l!==null;){if(f=b(l),f!==null)return f;l=l.sibling}return null}var S=Object.assign,T=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),L=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function $(l){return l===null||typeof l!="object"?null:(l=ue&&l[ue]||l["@@iterator"],typeof l=="function"?l:null)}var le=Symbol.for("react.client.reference");function Q(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===le?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case M:return"Fragment";case k:return"Profiler";case _:return"StrictMode";case V:return"Suspense";case U:return"SuspenseList";case ce:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case C:return"Portal";case L:return l.displayName||"Context";case z:return(l._context.displayName||"Context")+".Consumer";case B:var f=l.render;return l=l.displayName,l||(l=f.displayName||f.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case X:return f=l.displayName||null,f!==null?f:Q(l.type)||"Memo";case se:f=l._payload,l=l._init;try{return Q(l(f))}catch{}}return null}var oe=Array.isArray,Z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},we=[],te=-1;function F(l){return{current:l}}function ee(l){0>te||(l.current=we[te],we[te]=null,te--)}function Y(l,f){te++,we[te]=l.current,l.current=f}var Re=F(null),Se=F(null),_e=F(null),je=F(null);function He(l,f){switch(Y(_e,f),Y(Se,l),Y(Re,null),f.nodeType){case 9:case 11:l=(l=f.documentElement)&&(l=l.namespaceURI)?_0(l):0;break;default:if(l=f.tagName,f=f.namespaceURI)f=_0(f),l=TE(f,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}ee(Re),Y(Re,l)}function Xe(){ee(Re),ee(Se),ee(_e)}function Qe(l){l.memoizedState!==null&&Y(je,l);var f=Re.current,m=TE(f,l.type);f!==m&&(Y(Se,l),Y(Re,m))}function et(l){Se.current===l&&(ee(Re),ee(Se)),je.current===l&&(ee(je),Jr._currentValue=de)}var Be,Me;function st(l){if(Be===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);Be=f&&f[1]||"",Me=-1<m.stack.indexOf(`
    at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Be+l+Me}var Ot=!1;function Kt(l,f){if(!l||Ot)return"";Ot=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(f){var Ke=function(){throw Error()};if(Object.defineProperty(Ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ke,[])}catch(Ue){var Ie=Ue}Reflect.construct(l,[],Ke)}else{try{Ke.call()}catch(Ue){Ie=Ue}l.call(Ke.prototype)}}else{try{throw Error()}catch(Ue){Ie=Ue}(Ke=l())&&typeof Ke.catch=="function"&&Ke.catch(function(){})}}catch(Ue){if(Ue&&Ie&&typeof Ue.stack=="string")return[Ue.stack,Ie.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var A=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");A&&A.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=v.DetermineComponentFrameRoot(),j=O[0],ne=O[1];if(j&&ne){var ve=j.split(`
`),ze=ne.split(`
`);for(A=v=0;v<ve.length&&!ve[v].includes("DetermineComponentFrameRoot");)v++;for(;A<ze.length&&!ze[A].includes("DetermineComponentFrameRoot");)A++;if(v===ve.length||A===ze.length)for(v=ve.length-1,A=ze.length-1;1<=v&&0<=A&&ve[v]!==ze[A];)A--;for(;1<=v&&0<=A;v--,A--)if(ve[v]!==ze[A]){if(v!==1||A!==1)do if(v--,A--,0>A||ve[v]!==ze[A]){var qe=`
`+ve[v].replace(" at new "," at ");return l.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",l.displayName)),qe}while(1<=v&&0<=A);break}}}finally{Ot=!1,Error.prepareStackTrace=m}return(m=l?l.displayName||l.name:"")?st(m):""}function xt(l,f){switch(l.tag){case 26:case 27:case 5:return st(l.type);case 16:return st("Lazy");case 13:return l.child!==f&&f!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return Kt(l.type,!1);case 11:return Kt(l.type.render,!1);case 1:return Kt(l.type,!0);case 31:return st("Activity");default:return""}}function Ut(l){try{var f="",m=null;do f+=xt(l,m),m=l,l=l.return;while(l);return f}catch(v){return`
Error generating stack: `+v.message+`
`+v.stack}}var dn=Object.prototype.hasOwnProperty,mn=e.unstable_scheduleCallback,at=e.unstable_cancelCallback,At=e.unstable_shouldYield,Mn=e.unstable_requestPaint,Bt=e.unstable_now,Ze=e.unstable_getCurrentPriorityLevel,be=e.unstable_ImmediatePriority,Ve=e.unstable_UserBlockingPriority,nt=e.unstable_NormalPriority,pt=e.unstable_LowPriority,ut=e.unstable_IdlePriority,yt=e.log,gn=e.unstable_setDisableYieldValue,Nt=null,jt=null;function Fn(l){if(typeof yt=="function"&&gn(l),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(Nt,l)}catch{}}var bn=Math.clz32?Math.clz32:J,Fr=Math.log,cr=Math.LN2;function J(l){return l>>>=0,l===0?32:31-(Fr(l)/cr|0)|0}var Oe=256,tt=262144,Ne=4194304;function We(l){var f=l&42;if(f!==0)return f;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function wt(l,f,m){var v=l.pendingLanes;if(v===0)return 0;var A=0,O=l.suspendedLanes,j=l.pingedLanes;l=l.warmLanes;var ne=v&134217727;return ne!==0?(v=ne&~O,v!==0?A=We(v):(j&=ne,j!==0?A=We(j):m||(m=ne&~l,m!==0&&(A=We(m))))):(ne=v&~O,ne!==0?A=We(ne):j!==0?A=We(j):m||(m=v&~l,m!==0&&(A=We(m)))),A===0?0:f!==0&&f!==A&&(f&O)===0&&(O=A&-A,m=f&-f,O>=m||O===32&&(m&4194048)!==0)?f:A}function vt(l,f){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&f)===0}function Yt(l,f){switch(l){case 1:case 2:case 4:case 8:case 64:return f+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 f+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 ct(){var l=Ne;return Ne<<=1,(Ne&62914560)===0&&(Ne=4194304),l}function Bn(l){for(var f=[],m=0;31>m;m++)f.push(l);return f}function oi(l,f){l.pendingLanes|=f,f!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Bg(l,f,m,v,A,O){var j=l.pendingLanes;l.pendingLanes=m,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=m,l.entangledLanes&=m,l.errorRecoveryDisabledLanes&=m,l.shellSuspendCounter=0;var ne=l.entanglements,ve=l.expirationTimes,ze=l.hiddenUpdates;for(m=j&~m;0<m;){var qe=31-bn(m),Ke=1<<qe;ne[qe]=0,ve[qe]=-1;var Ie=ze[qe];if(Ie!==null)for(ze[qe]=null,qe=0;qe<Ie.length;qe++){var Ue=Ie[qe];Ue!==null&&(Ue.lane&=-536870913)}m&=~Ke}v!==0&&mf(l,v,0),O!==0&&A===0&&l.tag!==0&&(l.suspendedLanes|=O&~(j&~f))}function mf(l,f,m){l.pendingLanes|=f,l.suspendedLanes&=~f;var v=31-bn(f);l.entangledLanes|=f,l.entanglements[v]=l.entanglements[v]|1073741824|m&261930}function zh(l,f){var m=l.entangledLanes|=f;for(l=l.entanglements;m;){var v=31-bn(m),A=1<<v;A&f|l[v]&f&&(l[v]|=f),m&=~A}}function is(l,f){var m=f&-f;return m=(m&42)!==0?1:Ga(m),(m&(l.suspendedLanes|f))!==0?0:m}function Ga(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function jg(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function E6(){var l=ae.p;return l!==0?l:(l=window.event,l===void 0?32:cm(l.type))}function Pg(l,f){var m=ae.p;try{return ae.p=l,f()}finally{ae.p=m}}var fu=Math.random().toString(36).slice(2),pi="__reactFiber$"+fu,Or="__reactProps$"+fu,gf="__reactContainer$"+fu,Ih="__reactEvents$"+fu,w6="__reactListeners$"+fu,Pb="__reactHandles$"+fu,Ub="__reactResources$"+fu,Fd="__reactMarker$"+fu;function dc(l){delete l[pi],delete l[Or],delete l[Ih],delete l[w6],delete l[Pb]}function yf(l){var f=l[pi];if(f)return f;for(var m=l.parentNode;m;){if(f=m[gf]||m[pi]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(l=hy(l);l!==null;){if(m=l[pi])return m;l=hy(l)}return f}l=m,m=l.parentNode}return null}function vf(l){if(l=l[pi]||l[gf]){var f=l.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return l}return null}function Yd(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l.stateNode;throw Error(i(33))}function bf(l){var f=l[Ub];return f||(f=l[Ub]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function Si(l){l[Fd]=!0}var Fa=new Set,xf={};function xo(l,f){Sf(l,f),Sf(l+"Capture",f)}function Sf(l,f){for(xf[l]=f,l=0;l<f.length;l++)Fa.add(f[l])}var Lh=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]*$"),Vh={},Ug={};function Bh(l){return dn.call(Ug,l)?!0:dn.call(Vh,l)?!1:Lh.test(l)?Ug[l]=!0:(Vh[l]=!0,!1)}function du(l,f,m){if(Bh(f))if(m===null)l.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":l.removeAttribute(f);return;case"boolean":var v=f.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){l.removeAttribute(f);return}}l.setAttribute(f,""+m)}}function Xd(l,f,m){if(m===null)l.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(f);return}l.setAttribute(f,""+m)}}function hu(l,f,m,v){if(v===null)l.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(m);return}l.setAttributeNS(f,m,""+v)}}function Yo(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function $b(l){var f=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function Hb(l,f,m){var v=Object.getOwnPropertyDescriptor(l.constructor.prototype,f);if(!l.hasOwnProperty(f)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var A=v.get,O=v.set;return Object.defineProperty(l,f,{configurable:!0,get:function(){return A.call(this)},set:function(j){m=""+j,O.call(this,j)}}),Object.defineProperty(l,f,{enumerable:v.enumerable}),{getValue:function(){return m},setValue:function(j){m=""+j},stopTracking:function(){l._valueTracker=null,delete l[f]}}}}function jh(l){if(!l._valueTracker){var f=$b(l)?"checked":"value";l._valueTracker=Hb(l,f,""+l[f])}}function qb(l){if(!l)return!1;var f=l._valueTracker;if(!f)return!0;var m=f.getValue(),v="";return l&&(v=$b(l)?l.checked?"true":"false":l.value),l=v,l!==m?(f.setValue(l),!0):!1}function Ph(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var T6=/[\n"\\]/g;function Xo(l){return l.replace(T6,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function $g(l,f,m,v,A,O,j,ne){l.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?l.type=j:l.removeAttribute("type"),f!=null?j==="number"?(f===0&&l.value===""||l.value!=f)&&(l.value=""+Yo(f)):l.value!==""+Yo(f)&&(l.value=""+Yo(f)):j!=="submit"&&j!=="reset"||l.removeAttribute("value"),f!=null?Wd(l,j,Yo(f)):m!=null?Wd(l,j,Yo(m)):v!=null&&l.removeAttribute("value"),A==null&&O!=null&&(l.defaultChecked=!!O),A!=null&&(l.checked=A&&typeof A!="function"&&typeof A!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?l.name=""+Yo(ne):l.removeAttribute("name")}function Hg(l,f,m,v,A,O,j,ne){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(l.type=O),f!=null||m!=null){if(!(O!=="submit"&&O!=="reset"||f!=null)){jh(l);return}m=m!=null?""+Yo(m):"",f=f!=null?""+Yo(f):m,ne||f===l.value||(l.value=f),l.defaultValue=f}v=v??A,v=typeof v!="function"&&typeof v!="symbol"&&!!v,l.checked=ne?l.checked:!!v,l.defaultChecked=!!v,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(l.name=j),jh(l)}function Wd(l,f,m){f==="number"&&Ph(l.ownerDocument)===l||l.defaultValue===""+m||(l.defaultValue=""+m)}function as(l,f,m,v){if(l=l.options,f){f={};for(var A=0;A<m.length;A++)f["$"+m[A]]=!0;for(m=0;m<l.length;m++)A=f.hasOwnProperty("$"+l[m].value),l[m].selected!==A&&(l[m].selected=A),A&&v&&(l[m].defaultSelected=!0)}else{for(m=""+Yo(m),f=null,A=0;A<l.length;A++){if(l[A].value===m){l[A].selected=!0,v&&(l[A].defaultSelected=!0);return}f!==null||l[A].disabled||(f=l[A])}f!==null&&(f.selected=!0)}}function A6(l,f,m){if(f!=null&&(f=""+Yo(f),f!==l.value&&(l.value=f),m==null)){l.defaultValue!==f&&(l.defaultValue=f);return}l.defaultValue=m!=null?""+Yo(m):""}function Gb(l,f,m,v){if(f==null){if(v!=null){if(m!=null)throw Error(i(92));if(oe(v)){if(1<v.length)throw Error(i(93));v=v[0]}m=v}m==null&&(m=""),f=m}m=Yo(f),l.defaultValue=m,v=l.textContent,v===m&&v!==""&&v!==null&&(l.value=v),jh(l)}function Ef(l,f){if(f){var m=l.firstChild;if(m&&m===l.lastChild&&m.nodeType===3){m.nodeValue=f;return}}l.textContent=f}var Uh=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 Fb(l,f,m){var v=f.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?v?l.setProperty(f,""):f==="float"?l.cssFloat="":l[f]="":v?l.setProperty(f,m):typeof m!="number"||m===0||Uh.has(f)?f==="float"?l.cssFloat=m:l[f]=(""+m).trim():l[f]=m+"px"}function C6(l,f,m){if(f!=null&&typeof f!="object")throw Error(i(62));if(l=l.style,m!=null){for(var v in m)!m.hasOwnProperty(v)||f!=null&&f.hasOwnProperty(v)||(v.indexOf("--")===0?l.setProperty(v,""):v==="float"?l.cssFloat="":l[v]="");for(var A in f)v=f[A],f.hasOwnProperty(A)&&m[A]!==v&&Fb(l,A,v)}else for(var O in f)f.hasOwnProperty(O)&&Fb(l,O,f[O])}function Yb(l){if(l.indexOf("-")===-1)return!1;switch(l){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 P8=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"]]),U8=/^[\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 hc(l){return U8.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Gi(){}var $h=null;function qg(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var wf=null,os=null;function Xb(l){var f=vf(l);if(f&&(l=f.stateNode)){var m=l[Or]||null;e:switch(l=f.stateNode,f.type){case"input":if($g(l,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),f=m.name,m.type==="radio"&&f!=null){for(m=l;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+Xo(""+f)+'"][type="radio"]'),f=0;f<m.length;f++){var v=m[f];if(v!==l&&v.form===l.form){var A=v[Or]||null;if(!A)throw Error(i(90));$g(v,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(f=0;f<m.length;f++)v=m[f],v.form===l.form&&qb(v)}break e;case"textarea":A6(l,m.value,m.defaultValue);break e;case"select":f=m.value,f!=null&&as(l,!!m.multiple,f,!1)}}}var Qd=!1;function Hh(l,f,m){if(Qd)return l(f,m);Qd=!0;try{var v=l(f);return v}finally{if(Qd=!1,(wf!==null||os!==null)&&(Fp(),wf&&(f=wf,l=os,os=wf=null,Xb(f),l)))for(f=0;f<l.length;f++)Xb(l[f])}}function Kd(l,f){var m=l.stateNode;if(m===null)return null;var v=m[Or]||null;if(v===null)return null;m=v[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(l=l.type,v=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!v;break e;default:l=!1}if(l)return null;if(m&&typeof m!="function")throw Error(i(231,f,typeof m));return m}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wb=!1;if(Yr)try{var Tf={};Object.defineProperty(Tf,"passive",{get:function(){Wb=!0}}),window.addEventListener("test",Tf,Tf),window.removeEventListener("test",Tf,Tf)}catch{Wb=!1}var pu=null,Gg=null,Fg=null;function O6(){if(Fg)return Fg;var l,f=Gg,m=f.length,v,A="value"in pu?pu.value:pu.textContent,O=A.length;for(l=0;l<m&&f[l]===A[l];l++);var j=m-l;for(v=1;v<=j&&f[m-v]===A[O-v];v++);return Fg=A.slice(l,1<v?1-v:void 0)}function qh(l){var f=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&f===13&&(l=13)):l=f,l===10&&(l=13),32<=l||l===13?l:0}function Yg(){return!0}function Qb(){return!1}function Ya(l){function f(m,v,A,O,j){this._reactName=m,this._targetInst=A,this.type=v,this.nativeEvent=O,this.target=j,this.currentTarget=null;for(var ne in l)l.hasOwnProperty(ne)&&(m=l[ne],this[ne]=m?m(O):O[ne]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Yg:Qb,this.isPropagationStopped=Qb,this}return S(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Yg)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Yg)},persist:function(){},isPersistent:Yg}),f}var ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gh=Ya(ls),Zd=S({},ls,{view:0,detail:0}),R6=Ya(Zd),Kb,Zb,Fh,Xg=S({},Zd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:So,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Fh&&(Fh&&l.type==="mousemove"?(Kb=l.screenX-Fh.screenX,Zb=l.screenY-Fh.screenY):Zb=Kb=0,Fh=l),Kb)},movementY:function(l){return"movementY"in l?l.movementY:Zb}}),M6=Ya(Xg),Yh=S({},Xg,{dataTransfer:0}),_6=Ya(Yh),D6=S({},Zd,{relatedTarget:0}),Wg=Ya(D6),N6=S({},ls,{animationName:0,elapsedTime:0,pseudoElement:0}),Jb=Ya(N6),k6=S({},ls,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Af=Ya(k6),Cf=S({},ls,{data:0}),Wo=Ya(Cf),$8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e4={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"},ss={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z6(l){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(l):(l=ss[l])?!!f[l]:!1}function So(){return z6}var us=S({},Zd,{key:function(l){if(l.key){var f=$8[l.key]||l.key;if(f!=="Unidentified")return f}return l.type==="keypress"?(l=qh(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?e4[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:So,charCode:function(l){return l.type==="keypress"?qh(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?qh(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Qg=Ya(us),Kg=S({},Xg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zg=Ya(Kg),cs=S({},Zd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:So}),H8=Ya(cs),I6=S({},ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),L6=Ya(I6),q8=S({},Xg,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),t4=Ya(q8),G8=S({},ls,{newState:0,oldState:0}),V6=Ya(G8),n4=[9,13,27,32],Jd=Yr&&"CompositionEvent"in window,pc=null;Yr&&"documentMode"in document&&(pc=document.documentMode);var r4=Yr&&"TextEvent"in window&&!pc,Fi=Yr&&(!Jd||pc&&8<pc&&11>=pc),i4=" ",Xh=!1;function mc(l,f){switch(l){case"keyup":return n4.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jg(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Of=!1;function B6(l,f){switch(l){case"compositionend":return Jg(f);case"keypress":return f.which!==32?null:(Xh=!0,i4);case"textInput":return l=f.data,l===i4&&Xh?null:l;default:return null}}function j6(l,f){if(Of)return l==="compositionend"||!Jd&&mc(l,f)?(l=O6(),Fg=Gg=pu=null,Of=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return Fi&&f.locale!=="ko"?null:f.data;default:return null}}var F8={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 e1(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f==="input"?!!F8[l.type]:f==="textarea"}function fs(l,f,m,v){wf?os?os.push(v):os=[v]:wf=v,f=oy(f,"onChange"),0<f.length&&(m=new Gh("onChange","change",null,m,v),l.push({event:m,listeners:f}))}var e0=null,Rf=null;function t1(l){Ex(l,0)}function ds(l){var f=Yd(l);if(qb(f))return l}function n1(l,f){if(l==="change")return f}var a4=!1;if(Yr){var Wh;if(Yr){var Ta="oninput"in document;if(!Ta){var hs=document.createElement("div");hs.setAttribute("oninput","return;"),Ta=typeof hs.oninput=="function"}Wh=Ta}else Wh=!1;a4=Wh&&(!document.documentMode||9<document.documentMode)}function o4(){e0&&(e0.detachEvent("onpropertychange",r1),Rf=e0=null)}function r1(l){if(l.propertyName==="value"&&ds(Rf)){var f=[];fs(f,Rf,l,qg(l)),Hh(t1,f)}}function l4(l,f,m){l==="focusin"?(o4(),e0=f,Rf=m,e0.attachEvent("onpropertychange",r1)):l==="focusout"&&o4()}function P6(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return ds(Rf)}function U6(l,f){if(l==="click")return ds(f)}function gc(l,f){if(l==="input"||l==="change")return ds(f)}function Mf(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var Xa=typeof Object.is=="function"?Object.is:Mf;function yc(l,f){if(Xa(l,f))return!0;if(typeof l!="object"||l===null||typeof f!="object"||f===null)return!1;var m=Object.keys(l),v=Object.keys(f);if(m.length!==v.length)return!1;for(v=0;v<m.length;v++){var A=m[v];if(!dn.call(f,A)||!Xa(l[A],f[A]))return!1}return!0}function mu(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function s4(l,f){var m=mu(l);l=0;for(var v;m;){if(m.nodeType===3){if(v=l+m.textContent.length,l<=f&&v>=f)return{node:m,offset:f-l};l=v}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=mu(m)}}function u4(l,f){return l&&f?l===f?!0:l&&l.nodeType===3?!1:f&&f.nodeType===3?u4(l,f.parentNode):"contains"in l?l.contains(f):l.compareDocumentPosition?!!(l.compareDocumentPosition(f)&16):!1:!1}function _f(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var f=Ph(l.document);f instanceof l.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)l=f.contentWindow;else break;f=Ph(l.document)}return f}function gu(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f&&(f==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||f==="textarea"||l.contentEditable==="true")}var c4=Yr&&"documentMode"in document&&11>=document.documentMode,ps=null,Qh=null,vc=null,ms=!1;function gs(l,f,m){var v=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;ms||ps==null||ps!==Ph(v)||(v=ps,"selectionStart"in v&&gu(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),vc&&yc(vc,v)||(vc=v,v=oy(Qh,"onSelect"),0<v.length&&(f=new Gh("onSelect","select",null,f,m),l.push({event:f,listeners:v}),f.target=ps)))}function yu(l,f){var m={};return m[l.toLowerCase()]=f.toLowerCase(),m["Webkit"+l]="webkit"+f,m["Moz"+l]="moz"+f,m}var bc={animationend:yu("Animation","AnimationEnd"),animationiteration:yu("Animation","AnimationIteration"),animationstart:yu("Animation","AnimationStart"),transitionrun:yu("Transition","TransitionRun"),transitionstart:yu("Transition","TransitionStart"),transitioncancel:yu("Transition","TransitionCancel"),transitionend:yu("Transition","TransitionEnd")},xc={},Kh={};Yr&&(Kh=document.createElement("div").style,"AnimationEvent"in window||(delete bc.animationend.animation,delete bc.animationiteration.animation,delete bc.animationstart.animation),"TransitionEvent"in window||delete bc.transitionend.transition);function Eo(l){if(xc[l])return xc[l];if(!bc[l])return l;var f=bc[l],m;for(m in f)if(f.hasOwnProperty(m)&&m in Kh)return xc[l]=f[m];return l}var br=Eo("animationend"),Zh=Eo("animationiteration"),f4=Eo("animationstart"),d4=Eo("transitionrun"),Df=Eo("transitionstart"),Jh=Eo("transitioncancel"),Cl=Eo("transitionend"),$6=new Map,Ol="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(" ");Ol.push("scrollEnd");function Wa(l,f){$6.set(l,f),xo(f,[l])}var Sc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Aa=[],zi=0,Ca=0;function wo(){for(var l=zi,f=Ca=zi=0;f<l;){var m=Aa[f];Aa[f++]=null;var v=Aa[f];Aa[f++]=null;var A=Aa[f];Aa[f++]=null;var O=Aa[f];if(Aa[f++]=null,v!==null&&A!==null){var j=v.pending;j===null?A.next=A:(A.next=j.next,j.next=A),v.pending=A}O!==0&&i1(m,A,O)}}function To(l,f,m,v){Aa[zi++]=l,Aa[zi++]=f,Aa[zi++]=m,Aa[zi++]=v,Ca|=v,l.lanes|=v,l=l.alternate,l!==null&&(l.lanes|=v)}function Qo(l,f,m,v){return To(l,f,m,v),t0(l)}function oa(l,f){return To(l,null,null,f),t0(l)}function i1(l,f,m){l.lanes|=m;var v=l.alternate;v!==null&&(v.lanes|=m);for(var A=!1,O=l.return;O!==null;)O.childLanes|=m,v=O.alternate,v!==null&&(v.childLanes|=m),O.tag===22&&(l=O.stateNode,l===null||l._visibility&1||(A=!0)),l=O,O=O.return;return l.tag===3?(O=l.stateNode,A&&f!==null&&(A=31-bn(m),l=O.hiddenUpdates,v=l[A],v===null?l[A]=[f]:v.push(f),f.lane=m|536870912),O):null}function t0(l){if(50<td)throw td=0,Y1=null,Error(i(185));for(var f=l.return;f!==null;)l=f,f=l.return;return l.tag===3?l.stateNode:null}var Nf={};function ys(l,f,m,v){this.tag=l,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qa(l,f,m,v){return new ys(l,f,m,v)}function Ko(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ao(l,f){var m=l.alternate;return m===null?(m=Qa(l.tag,f,l.key,l.mode),m.elementType=l.elementType,m.type=l.type,m.stateNode=l.stateNode,m.alternate=l,l.alternate=m):(m.pendingProps=f,m.type=l.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=l.flags&65011712,m.childLanes=l.childLanes,m.lanes=l.lanes,m.child=l.child,m.memoizedProps=l.memoizedProps,m.memoizedState=l.memoizedState,m.updateQueue=l.updateQueue,f=l.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=l.sibling,m.index=l.index,m.ref=l.ref,m.refCleanup=l.refCleanup,m}function H6(l,f){l.flags&=65011714;var m=l.alternate;return m===null?(l.childLanes=0,l.lanes=f,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=m.childLanes,l.lanes=m.lanes,l.child=m.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=m.memoizedProps,l.memoizedState=m.memoizedState,l.updateQueue=m.updateQueue,l.type=m.type,f=m.dependencies,l.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),l}function ep(l,f,m,v,A,O){var j=0;if(v=l,typeof l=="function")Ko(l)&&(j=1);else if(typeof l=="string")j=Bx(l,m,Re.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case ce:return l=Qa(31,m,f,A),l.elementType=ce,l.lanes=O,l;case M:return kf(m.children,A,O,f);case _:j=8,A|=24;break;case k:return l=Qa(12,m,f,A|2),l.elementType=k,l.lanes=O,l;case V:return l=Qa(13,m,f,A),l.elementType=V,l.lanes=O,l;case U:return l=Qa(19,m,f,A),l.elementType=U,l.lanes=O,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case L:j=10;break e;case z:j=9;break e;case B:j=11;break e;case X:j=14;break e;case se:j=16,v=null;break e}j=29,m=Error(i(130,l===null?"null":typeof l,"")),v=null}return f=Qa(j,m,f,A),f.elementType=l,f.type=v,f.lanes=O,f}function kf(l,f,m,v){return l=Qa(7,l,v,f),l.lanes=m,l}function tp(l,f,m){return l=Qa(6,l,null,f),l.lanes=m,l}function np(l){var f=Qa(18,null,null,0);return f.stateNode=l,f}function a1(l,f,m){return f=Qa(4,l.children!==null?l.children:[],l.key,f),f.lanes=m,f.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},f}var h4=new WeakMap;function Co(l,f){if(typeof l=="object"&&l!==null){var m=h4.get(l);return m!==void 0?m:(f={value:l,source:f,stack:Ut(f)},h4.set(l,f),f)}return{value:l,source:f,stack:Ut(f)}}var zf=[],Oo=0,rp=null,n0=0,fr=[],Ka=0,Rl=null,Ro=1,Za="";function vs(l,f){zf[Oo++]=n0,zf[Oo++]=rp,rp=l,n0=f}function ip(l,f,m){fr[Ka++]=Ro,fr[Ka++]=Za,fr[Ka++]=Rl,Rl=l;var v=Ro;l=Za;var A=32-bn(v)-1;v&=~(1<<A),m+=1;var O=32-bn(f)+A;if(30<O){var j=A-A%5;O=(v&(1<<j)-1).toString(32),v>>=j,A-=j,Ro=1<<32-bn(f)+A|m<<A|v,Za=O+l}else Ro=1<<O|m<<A|v,Za=l}function o1(l){l.return!==null&&(vs(l,1),ip(l,1,0))}function r0(l){for(;l===rp;)rp=zf[--Oo],zf[Oo]=null,n0=zf[--Oo],zf[Oo]=null;for(;l===Rl;)Rl=fr[--Ka],fr[Ka]=null,Za=fr[--Ka],fr[Ka]=null,Ro=fr[--Ka],fr[Ka]=null}function p4(l,f){fr[Ka++]=Ro,fr[Ka++]=Za,fr[Ka++]=Rl,Ro=f.id,Za=f.overflow,Rl=l}var mi=null,xr=null,kn=!1,bs=null,Ja=!1,xs=Error(i(519));function Oa(l){var f=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw op(Co(f,l)),xs}function i0(l){var f=l.stateNode,m=l.type,v=l.memoizedProps;switch(f[pi]=l,f[Or]=v,m){case"dialog":_n("cancel",f),_n("close",f);break;case"iframe":case"object":case"embed":_n("load",f);break;case"video":case"audio":for(m=0;m<id.length;m++)_n(id[m],f);break;case"source":_n("error",f);break;case"img":case"image":case"link":_n("error",f),_n("load",f);break;case"details":_n("toggle",f);break;case"input":_n("invalid",f),Hg(f,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0);break;case"select":_n("invalid",f);break;case"textarea":_n("invalid",f),Gb(f,v.value,v.defaultValue,v.children)}m=v.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||f.textContent===""+m||v.suppressHydrationWarning===!0||Cx(f.textContent,m)?(v.popover!=null&&(_n("beforetoggle",f),_n("toggle",f)),v.onScroll!=null&&_n("scroll",f),v.onScrollEnd!=null&&_n("scrollend",f),v.onClick!=null&&(f.onclick=Gi),f=!0):f=!1,f||Oa(l,!0)}function ap(l){for(mi=l.return;mi;)switch(mi.tag){case 5:case 31:case 13:Ja=!1;return;case 27:case 3:Ja=!0;return;default:mi=mi.return}}function Ss(l){if(l!==mi)return!1;if(!kn)return ap(l),kn=!0,!1;var f=l.tag,m;if((m=f!==3&&f!==27)&&((m=f===5)&&(m=l.type,m=!(m!=="form"&&m!=="button")||cy(l.type,l.memoizedProps)),m=!m),m&&xr&&Oa(l),ap(l),f===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=dy(l)}else if(f===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=dy(l)}else f===27?(f=xr,Ps(l.type)?(l=z0,z0=null,xr=l):xr=f):xr=mi?Ji(l.stateNode.nextSibling):null;return!0}function Ml(){xr=mi=null,kn=!1}function l1(){var l=bs;return l!==null&&(oo===null?oo=l:oo.push.apply(oo,l),bs=null),l}function op(l){bs===null?bs=[l]:bs.push(l)}var s1=F(null),Ec=null,_l=null;function Es(l,f,m){Y(s1,f._currentValue),f._currentValue=m}function la(l){l._currentValue=s1.current,ee(s1)}function lp(l,f,m){for(;l!==null;){var v=l.alternate;if((l.childLanes&f)!==f?(l.childLanes|=f,v!==null&&(v.childLanes|=f)):v!==null&&(v.childLanes&f)!==f&&(v.childLanes|=f),l===m)break;l=l.return}}function u1(l,f,m,v){var A=l.child;for(A!==null&&(A.return=l);A!==null;){var O=A.dependencies;if(O!==null){var j=A.child;O=O.firstContext;e:for(;O!==null;){var ne=O;O=A;for(var ve=0;ve<f.length;ve++)if(ne.context===f[ve]){O.lanes|=m,ne=O.alternate,ne!==null&&(ne.lanes|=m),lp(O.return,m,l),v||(j=null);break e}O=ne.next}}else if(A.tag===18){if(j=A.return,j===null)throw Error(i(341));j.lanes|=m,O=j.alternate,O!==null&&(O.lanes|=m),lp(j,m,l),j=null}else j=A.child;if(j!==null)j.return=A;else for(j=A;j!==null;){if(j===l){j=null;break}if(A=j.sibling,A!==null){A.return=j.return,j=A;break}j=j.return}A=j}}function Mo(l,f,m,v){l=null;for(var A=f,O=!1;A!==null;){if(!O){if((A.flags&524288)!==0)O=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var j=A.alternate;if(j===null)throw Error(i(387));if(j=j.memoizedProps,j!==null){var ne=A.type;Xa(A.pendingProps.value,j.value)||(l!==null?l.push(ne):l=[ne])}}else if(A===je.current){if(j=A.alternate,j===null)throw Error(i(387));j.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(l!==null?l.push(Jr):l=[Jr])}A=A.return}l!==null&&u1(f,l,m,v),f.flags|=262144}function sa(l){for(l=l.firstContext;l!==null;){if(!Xa(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function ws(l){Ec=l,_l=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Vt(l){return If(Ec,l)}function rt(l,f){return Ec===null&&ws(l),If(l,f)}function If(l,f){var m=f._currentValue;if(f={context:f,memoizedValue:m,next:null},_l===null){if(l===null)throw Error(i(308));_l=f,l.dependencies={lanes:0,firstContext:f},l.flags|=524288}else _l=_l.next=f;return m}var c1=typeof AbortController<"u"?AbortController:function(){var l=[],f=this.signal={aborted:!1,addEventListener:function(m,v){l.push(v)}};this.abort=function(){f.aborted=!0,l.forEach(function(m){return m()})}},Xr=e.unstable_scheduleCallback,m4=e.unstable_NormalPriority,Wr={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function f1(){return{controller:new c1,data:new Map,refCount:0}}function Lf(l){l.refCount--,l.refCount===0&&Xr(m4,function(){l.controller.abort()})}var sp=null,up=0,wc=0,Tc=null;function Ra(l,f){if(sp===null){var m=sp=[];up=0,wc=nd(),Tc={status:"pending",value:void 0,then:function(v){m.push(v)}}}return up++,f.then(Wn,Wn),f}function Wn(){if(--up===0&&sp!==null){Tc!==null&&(Tc.status="fulfilled");var l=sp;sp=null,wc=0,Tc=null;for(var f=0;f<l.length;f++)(0,l[f])()}}function d1(l,f){var m=[],v={status:"pending",value:null,reason:null,then:function(A){m.push(A)}};return l.then(function(){v.status="fulfilled",v.value=f;for(var A=0;A<m.length;A++)(0,m[A])(f)},function(A){for(v.status="rejected",v.reason=A,A=0;A<m.length;A++)(0,m[A])(void 0)}),v}var a0=Z.S;Z.S=function(l,f){Mu=Bt(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&Ra(l,f),a0!==null&&a0(l,f)};var eo=F(null);function vu(){var l=eo.current;return l!==null?l:dr.pooledCache}function to(l,f){f===null?Y(eo,eo.current):Y(eo,f.pool)}function h1(){var l=vu();return l===null?null:{parent:Wr._currentValue,pool:l}}var Dl=Error(i(460)),cp=Error(i(474)),Ac=Error(i(542)),o0={then:function(){}};function fp(l){return l=l.status,l==="fulfilled"||l==="rejected"}function g4(l,f,m){switch(m=l[m],m===void 0?l.push(f):m!==f&&(f.then(Gi,Gi),f=m),f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,v4(l),l;default:if(typeof f.status=="string")f.then(Gi,Gi);else{if(l=dr,l!==null&&100<l.shellSuspendCounter)throw Error(i(482));l=f,l.status="pending",l.then(function(v){if(f.status==="pending"){var A=f;A.status="fulfilled",A.value=v}},function(v){if(f.status==="pending"){var A=f;A.status="rejected",A.reason=v}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,v4(l),l}throw Oc=f,Dl}}function Cc(l){try{var f=l._init;return f(l._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(Oc=m,Dl):m}}var Oc=null;function y4(){if(Oc===null)throw Error(i(459));var l=Oc;return Oc=null,l}function v4(l){if(l===Dl||l===Ac)throw Error(i(483))}var Rc=null,Vf=0;function l0(l){var f=Vf;return Vf+=1,Rc===null&&(Rc=[]),g4(Rc,l,f)}function s0(l,f){f=f.props.ref,l.ref=f!==void 0?f:null}function dp(l,f){throw f.$$typeof===T?Error(i(525)):(l=Object.prototype.toString.call(f),Error(i(31,l==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":l)))}function b4(l){function f(De,Te){if(l){var ke=De.deletions;ke===null?(De.deletions=[Te],De.flags|=16):ke.push(Te)}}function m(De,Te){if(!l)return null;for(;Te!==null;)f(De,Te),Te=Te.sibling;return null}function v(De){for(var Te=new Map;De!==null;)De.key!==null?Te.set(De.key,De):Te.set(De.index,De),De=De.sibling;return Te}function A(De,Te){return De=Ao(De,Te),De.index=0,De.sibling=null,De}function O(De,Te,ke){return De.index=ke,l?(ke=De.alternate,ke!==null?(ke=ke.index,ke<Te?(De.flags|=67108866,Te):ke):(De.flags|=67108866,Te)):(De.flags|=1048576,Te)}function j(De){return l&&De.alternate===null&&(De.flags|=67108866),De}function ne(De,Te,ke,Ye){return Te===null||Te.tag!==6?(Te=tp(ke,De.mode,Ye),Te.return=De,Te):(Te=A(Te,ke),Te.return=De,Te)}function ve(De,Te,ke,Ye){var Lt=ke.type;return Lt===M?qe(De,Te,ke.props.children,Ye,ke.key):Te!==null&&(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===se&&Cc(Lt)===Te.type)?(Te=A(Te,ke.props),s0(Te,ke),Te.return=De,Te):(Te=ep(ke.type,ke.key,ke.props,null,De.mode,Ye),s0(Te,ke),Te.return=De,Te)}function ze(De,Te,ke,Ye){return Te===null||Te.tag!==4||Te.stateNode.containerInfo!==ke.containerInfo||Te.stateNode.implementation!==ke.implementation?(Te=a1(ke,De.mode,Ye),Te.return=De,Te):(Te=A(Te,ke.children||[]),Te.return=De,Te)}function qe(De,Te,ke,Ye,Lt){return Te===null||Te.tag!==7?(Te=kf(ke,De.mode,Ye,Lt),Te.return=De,Te):(Te=A(Te,ke),Te.return=De,Te)}function Ke(De,Te,ke){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Te=tp(""+Te,De.mode,ke),Te.return=De,Te;if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case w:return ke=ep(Te.type,Te.key,Te.props,null,De.mode,ke),s0(ke,Te),ke.return=De,ke;case C:return Te=a1(Te,De.mode,ke),Te.return=De,Te;case se:return Te=Cc(Te),Ke(De,Te,ke)}if(oe(Te)||$(Te))return Te=kf(Te,De.mode,ke,null),Te.return=De,Te;if(typeof Te.then=="function")return Ke(De,l0(Te),ke);if(Te.$$typeof===L)return Ke(De,rt(De,Te),ke);dp(De,Te)}return null}function Ie(De,Te,ke,Ye){var Lt=Te!==null?Te.key:null;if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return Lt!==null?null:ne(De,Te,""+ke,Ye);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case w:return ke.key===Lt?ve(De,Te,ke,Ye):null;case C:return ke.key===Lt?ze(De,Te,ke,Ye):null;case se:return ke=Cc(ke),Ie(De,Te,ke,Ye)}if(oe(ke)||$(ke))return Lt!==null?null:qe(De,Te,ke,Ye,null);if(typeof ke.then=="function")return Ie(De,Te,l0(ke),Ye);if(ke.$$typeof===L)return Ie(De,Te,rt(De,ke),Ye);dp(De,ke)}return null}function Ue(De,Te,ke,Ye,Lt){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number"||typeof Ye=="bigint")return De=De.get(ke)||null,ne(Te,De,""+Ye,Lt);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case w:return De=De.get(Ye.key===null?ke:Ye.key)||null,ve(Te,De,Ye,Lt);case C:return De=De.get(Ye.key===null?ke:Ye.key)||null,ze(Te,De,Ye,Lt);case se:return Ye=Cc(Ye),Ue(De,Te,ke,Ye,Lt)}if(oe(Ye)||$(Ye))return De=De.get(ke)||null,qe(Te,De,Ye,Lt,null);if(typeof Ye.then=="function")return Ue(De,Te,ke,l0(Ye),Lt);if(Ye.$$typeof===L)return Ue(De,Te,ke,rt(Te,Ye),Lt);dp(Te,Ye)}return null}function Rt(De,Te,ke,Ye){for(var Lt=null,qn=null,_t=Te,hn=Te=0,An=null;_t!==null&&hn<ke.length;hn++){_t.index>hn?(An=_t,_t=null):An=_t.sibling;var Dn=Ie(De,_t,ke[hn],Ye);if(Dn===null){_t===null&&(_t=An);break}l&&_t&&Dn.alternate===null&&f(De,_t),Te=O(Dn,Te,hn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn,_t=An}if(hn===ke.length)return m(De,_t),kn&&vs(De,hn),Lt;if(_t===null){for(;hn<ke.length;hn++)_t=Ke(De,ke[hn],Ye),_t!==null&&(Te=O(_t,Te,hn),qn===null?Lt=_t:qn.sibling=_t,qn=_t);return kn&&vs(De,hn),Lt}for(_t=v(_t);hn<ke.length;hn++)An=Ue(_t,De,hn,ke[hn],Ye),An!==null&&(l&&An.alternate!==null&&_t.delete(An.key===null?hn:An.key),Te=O(An,Te,hn),qn===null?Lt=An:qn.sibling=An,qn=An);return l&&_t.forEach(function(Pc){return f(De,Pc)}),kn&&vs(De,hn),Lt}function Ht(De,Te,ke,Ye){if(ke==null)throw Error(i(151));for(var Lt=null,qn=null,_t=Te,hn=Te=0,An=null,Dn=ke.next();_t!==null&&!Dn.done;hn++,Dn=ke.next()){_t.index>hn?(An=_t,_t=null):An=_t.sibling;var Pc=Ie(De,_t,Dn.value,Ye);if(Pc===null){_t===null&&(_t=An);break}l&&_t&&Pc.alternate===null&&f(De,_t),Te=O(Pc,Te,hn),qn===null?Lt=Pc:qn.sibling=Pc,qn=Pc,_t=An}if(Dn.done)return m(De,_t),kn&&vs(De,hn),Lt;if(_t===null){for(;!Dn.done;hn++,Dn=ke.next())Dn=Ke(De,Dn.value,Ye),Dn!==null&&(Te=O(Dn,Te,hn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn);return kn&&vs(De,hn),Lt}for(_t=v(_t);!Dn.done;hn++,Dn=ke.next())Dn=Ue(_t,De,hn,Dn.value,Ye),Dn!==null&&(l&&Dn.alternate!==null&&_t.delete(Dn.key===null?hn:Dn.key),Te=O(Dn,Te,hn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn);return l&&_t.forEach(function(Oy){return f(De,Oy)}),kn&&vs(De,hn),Lt}function hr(De,Te,ke,Ye){if(typeof ke=="object"&&ke!==null&&ke.type===M&&ke.key===null&&(ke=ke.props.children),typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case w:e:{for(var Lt=ke.key;Te!==null;){if(Te.key===Lt){if(Lt=ke.type,Lt===M){if(Te.tag===7){m(De,Te.sibling),Ye=A(Te,ke.props.children),Ye.return=De,De=Ye;break e}}else if(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===se&&Cc(Lt)===Te.type){m(De,Te.sibling),Ye=A(Te,ke.props),s0(Ye,ke),Ye.return=De,De=Ye;break e}m(De,Te);break}else f(De,Te);Te=Te.sibling}ke.type===M?(Ye=kf(ke.props.children,De.mode,Ye,ke.key),Ye.return=De,De=Ye):(Ye=ep(ke.type,ke.key,ke.props,null,De.mode,Ye),s0(Ye,ke),Ye.return=De,De=Ye)}return j(De);case C:e:{for(Lt=ke.key;Te!==null;){if(Te.key===Lt)if(Te.tag===4&&Te.stateNode.containerInfo===ke.containerInfo&&Te.stateNode.implementation===ke.implementation){m(De,Te.sibling),Ye=A(Te,ke.children||[]),Ye.return=De,De=Ye;break e}else{m(De,Te);break}else f(De,Te);Te=Te.sibling}Ye=a1(ke,De.mode,Ye),Ye.return=De,De=Ye}return j(De);case se:return ke=Cc(ke),hr(De,Te,ke,Ye)}if(oe(ke))return Rt(De,Te,ke,Ye);if($(ke)){if(Lt=$(ke),typeof Lt!="function")throw Error(i(150));return ke=Lt.call(ke),Ht(De,Te,ke,Ye)}if(typeof ke.then=="function")return hr(De,Te,l0(ke),Ye);if(ke.$$typeof===L)return hr(De,Te,rt(De,ke),Ye);dp(De,ke)}return typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint"?(ke=""+ke,Te!==null&&Te.tag===6?(m(De,Te.sibling),Ye=A(Te,ke),Ye.return=De,De=Ye):(m(De,Te),Ye=tp(ke,De.mode,Ye),Ye.return=De,De=Ye),j(De)):m(De,Te)}return function(De,Te,ke,Ye){try{Vf=0;var Lt=hr(De,Te,ke,Ye);return Rc=null,Lt}catch(_t){if(_t===Dl||_t===Ac)throw _t;var qn=Qa(29,_t,null,De.mode);return qn.lanes=Ye,qn.return=De,qn}finally{}}}var Bf=b4(!0),x4=b4(!1),bu=!1;function p1(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hp(l,f){l=l.updateQueue,f.updateQueue===l&&(f.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function xu(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Su(l,f,m){var v=l.updateQueue;if(v===null)return null;if(v=v.shared,(Hn&2)!==0){var A=v.pending;return A===null?f.next=f:(f.next=A.next,A.next=f),v.pending=f,f=t0(l),i1(l,null,m),f}return To(l,v,f,m),t0(l)}function Ts(l,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194048)!==0)){var v=f.lanes;v&=l.pendingLanes,m|=v,f.lanes=m,zh(l,m)}}function u0(l,f){var m=l.updateQueue,v=l.alternate;if(v!==null&&(v=v.updateQueue,m===v)){var A=null,O=null;if(m=m.firstBaseUpdate,m!==null){do{var j={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};O===null?A=O=j:O=O.next=j,m=m.next}while(m!==null);O===null?A=O=f:O=O.next=f}else A=O=f;m={baseState:v.baseState,firstBaseUpdate:A,lastBaseUpdate:O,shared:v.shared,callbacks:v.callbacks},l.updateQueue=m;return}l=m.lastBaseUpdate,l===null?m.firstBaseUpdate=f:l.next=f,m.lastBaseUpdate=f}var m1=!1;function pp(){if(m1){var l=Tc;if(l!==null)throw l}}function Mc(l,f,m,v){m1=!1;var A=l.updateQueue;bu=!1;var O=A.firstBaseUpdate,j=A.lastBaseUpdate,ne=A.shared.pending;if(ne!==null){A.shared.pending=null;var ve=ne,ze=ve.next;ve.next=null,j===null?O=ze:j.next=ze,j=ve;var qe=l.alternate;qe!==null&&(qe=qe.updateQueue,ne=qe.lastBaseUpdate,ne!==j&&(ne===null?qe.firstBaseUpdate=ze:ne.next=ze,qe.lastBaseUpdate=ve))}if(O!==null){var Ke=A.baseState;j=0,qe=ze=ve=null,ne=O;do{var Ie=ne.lane&-536870913,Ue=Ie!==ne.lane;if(Ue?(zn&Ie)===Ie:(v&Ie)===Ie){Ie!==0&&Ie===wc&&(m1=!0),qe!==null&&(qe=qe.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var Rt=l,Ht=ne;Ie=f;var hr=m;switch(Ht.tag){case 1:if(Rt=Ht.payload,typeof Rt=="function"){Ke=Rt.call(hr,Ke,Ie);break e}Ke=Rt;break e;case 3:Rt.flags=Rt.flags&-65537|128;case 0:if(Rt=Ht.payload,Ie=typeof Rt=="function"?Rt.call(hr,Ke,Ie):Rt,Ie==null)break e;Ke=S({},Ke,Ie);break e;case 2:bu=!0}}Ie=ne.callback,Ie!==null&&(l.flags|=64,Ue&&(l.flags|=8192),Ue=A.callbacks,Ue===null?A.callbacks=[Ie]:Ue.push(Ie))}else Ue={lane:Ie,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},qe===null?(ze=qe=Ue,ve=Ke):qe=qe.next=Ue,j|=Ie;if(ne=ne.next,ne===null){if(ne=A.shared.pending,ne===null)break;Ue=ne,ne=Ue.next,Ue.next=null,A.lastBaseUpdate=Ue,A.shared.pending=null}}while(!0);qe===null&&(ve=Ke),A.baseState=ve,A.firstBaseUpdate=ze,A.lastBaseUpdate=qe,O===null&&(A.shared.lanes=0),il|=j,l.lanes=j,l.memoizedState=Ke}}function jf(l,f){if(typeof l!="function")throw Error(i(191,l));l.call(f)}function g1(l,f){var m=l.callbacks;if(m!==null)for(l.callbacks=null,l=0;l<m.length;l++)jf(m[l],f)}var Zo=F(null),Yi=F(0);function mp(l,f){l=Vs,Y(Yi,l),Y(Zo,f),Vs=l|f.baseLanes}function S4(){Y(Yi,Vs),Y(Zo,Zo.current)}function gp(){Vs=Yi.current,ee(Zo),ee(Yi)}var ua=F(null),no=null;function Eu(l){var f=l.alternate;Y(Lr,Lr.current&1),Y(ua,l),no===null&&(f===null||Zo.current!==null||f.memoizedState!==null)&&(no=l)}function yp(l){Y(Lr,Lr.current),Y(ua,l),no===null&&(no=l)}function vp(l){l.tag===22?(Y(Lr,Lr.current),Y(ua,l),no===null&&(no=l)):As()}function As(){Y(Lr,Lr.current),Y(ua,ua.current)}function ca(l){ee(ua),no===l&&(no=null),ee(Lr)}var Lr=F(0);function Pf(l){for(var f=l;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Nx(m)||ol(m)))return f}else if(f.tag===19&&(f.memoizedProps.revealOrder==="forwards"||f.memoizedProps.revealOrder==="backwards"||f.memoizedProps.revealOrder==="unstable_legacy-backwards"||f.memoizedProps.revealOrder==="together")){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var Nl=0,cn=null,nr=null,Qr=null,bp=!1,wu=!1,_c=!1,c0=0,f0=0,Uf=null,E4=0;function Vr(){throw Error(i(321))}function y1(l,f){if(f===null)return!1;for(var m=0;m<f.length&&m<l.length;m++)if(!Xa(l[m],f[m]))return!1;return!0}function Tu(l,f,m,v,A,O){return Nl=O,cn=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,Z.H=l===null||l.memoizedState===null?Q6:B4,_c=!1,O=m(v,A),_c=!1,wu&&(O=b1(f,m,v,A)),v1(l),O}function v1(l){Z.H=y0;var f=nr!==null&&nr.next!==null;if(Nl=0,Qr=nr=cn=null,bp=!1,f0=0,Uf=null,f)throw Error(i(300));l===null||li||(l=l.dependencies,l!==null&&sa(l)&&(li=!0))}function b1(l,f,m,v){cn=l;var A=0;do{if(wu&&(Uf=null),f0=0,wu=!1,25<=A)throw Error(i(301));if(A+=1,Qr=nr=null,l.updateQueue!=null){var O=l.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}Z.H=j4,O=f(m,v)}while(wu);return O}function Y8(){var l=Z.H,f=l.useState()[0];return f=typeof f.then=="function"?d0(f):f,l=l.useState()[0],(nr!==null?nr.memoizedState:null)!==l&&(cn.flags|=1024),f}function w4(){var l=c0!==0;return c0=0,l}function x1(l,f,m){f.updateQueue=l.updateQueue,f.flags&=-2053,l.lanes&=~m}function $f(l){if(bp){for(l=l.memoizedState;l!==null;){var f=l.queue;f!==null&&(f.pending=null),l=l.next}bp=!1}Nl=0,Qr=nr=cn=null,wu=!1,f0=c0=0,Uf=null}function Xi(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qr===null?cn.memoizedState=Qr=l:Qr=Qr.next=l,Qr}function Dr(){if(nr===null){var l=cn.alternate;l=l!==null?l.memoizedState:null}else l=nr.next;var f=Qr===null?cn.memoizedState:Qr.next;if(f!==null)Qr=f,nr=l;else{if(l===null)throw cn.alternate===null?Error(i(467)):Error(i(310));nr=l,l={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},Qr===null?cn.memoizedState=Qr=l:Qr=Qr.next=l}return Qr}function xp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function d0(l){var f=f0;return f0+=1,Uf===null&&(Uf=[]),l=g4(Uf,l,f),f=cn,(Qr===null?f.memoizedState:Qr.next)===null&&(f=f.alternate,Z.H=f===null||f.memoizedState===null?Q6:B4),l}function h0(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return d0(l);if(l.$$typeof===L)return Vt(l)}throw Error(i(438,String(l)))}function Sp(l){var f=null,m=cn.updateQueue;if(m!==null&&(f=m.memoCache),f==null){var v=cn.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(f={data:v.data.map(function(A){return A.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),m===null&&(m=xp(),cn.updateQueue=m),m.memoCache=f,m=f.data[f.index],m===void 0)for(m=f.data[f.index]=Array(l),v=0;v<l;v++)m[v]=ie;return f.index++,m}function Cs(l,f){return typeof f=="function"?f(l):f}function Ep(l){var f=Dr();return Au(f,nr,l)}function Au(l,f,m){var v=l.queue;if(v===null)throw Error(i(311));v.lastRenderedReducer=m;var A=l.baseQueue,O=v.pending;if(O!==null){if(A!==null){var j=A.next;A.next=O.next,O.next=j}f.baseQueue=A=O,v.pending=null}if(O=l.baseState,A===null)l.memoizedState=O;else{f=A.next;var ne=j=null,ve=null,ze=f,qe=!1;do{var Ke=ze.lane&-536870913;if(Ke!==ze.lane?(zn&Ke)===Ke:(Nl&Ke)===Ke){var Ie=ze.revertLane;if(Ie===0)ve!==null&&(ve=ve.next={lane:0,revertLane:0,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null}),Ke===wc&&(qe=!0);else if((Nl&Ie)===Ie){ze=ze.next,Ie===wc&&(qe=!0);continue}else Ke={lane:0,revertLane:ze.revertLane,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},ve===null?(ne=ve=Ke,j=O):ve=ve.next=Ke,cn.lanes|=Ie,il|=Ie;Ke=ze.action,_c&&m(O,Ke),O=ze.hasEagerState?ze.eagerState:m(O,Ke)}else Ie={lane:Ke,revertLane:ze.revertLane,gesture:ze.gesture,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},ve===null?(ne=ve=Ie,j=O):ve=ve.next=Ie,cn.lanes|=Ke,il|=Ke;ze=ze.next}while(ze!==null&&ze!==f);if(ve===null?j=O:ve.next=ne,!Xa(O,l.memoizedState)&&(li=!0,qe&&(m=Tc,m!==null)))throw m;l.memoizedState=O,l.baseState=j,l.baseQueue=ve,v.lastRenderedState=O}return A===null&&(v.lanes=0),[l.memoizedState,v.dispatch]}function S1(l){var f=Dr(),m=f.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=l;var v=m.dispatch,A=m.pending,O=f.memoizedState;if(A!==null){m.pending=null;var j=A=A.next;do O=l(O,j.action),j=j.next;while(j!==A);Xa(O,f.memoizedState)||(li=!0),f.memoizedState=O,f.baseQueue===null&&(f.baseState=O),m.lastRenderedState=O}return[O,v]}function T4(l,f,m){var v=cn,A=Dr(),O=kn;if(O){if(m===void 0)throw Error(i(407));m=m()}else m=f();var j=!Xa((nr||A).memoizedState,m);if(j&&(A.memoizedState=m,li=!0),A=A.queue,Op(C4.bind(null,v,A,l),[l]),A.getSnapshot!==f||j||Qr!==null&&Qr.memoizedState.tag&1){if(v.flags|=2048,Hf(9,{destroy:void 0},wp.bind(null,v,A,m,f),null),dr===null)throw Error(i(349));O||(Nl&127)!==0||A4(v,f,m)}return m}function A4(l,f,m){l.flags|=16384,l={getSnapshot:f,value:m},f=cn.updateQueue,f===null?(f=xp(),cn.updateQueue=f,f.stores=[l]):(m=f.stores,m===null?f.stores=[l]:m.push(l))}function wp(l,f,m,v){f.value=m,f.getSnapshot=v,E1(f)&&w1(l)}function C4(l,f,m){return m(function(){E1(f)&&w1(l)})}function E1(l){var f=l.getSnapshot;l=l.value;try{var m=f();return!Xa(l,m)}catch{return!0}}function w1(l){var f=oa(l,2);f!==null&&so(f,l,2)}function Tp(l){var f=Xi();if(typeof l=="function"){var m=l;if(l=m(),_c){Fn(!0);try{m()}finally{Fn(!1)}}}return f.memoizedState=f.baseState=l,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:l},f}function q6(l,f,m,v){return l.baseState=m,Au(l,nr,typeof v=="function"?v:Cs)}function Wi(l,f,m,v,A){if(Cu(l))throw Error(i(485));if(l=f.action,l!==null){var O={payload:A,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){O.listeners.push(j)}};Z.T!==null?m(!0):O.isTransition=!1,v(O),m=f.pending,m===null?(O.next=f.pending=O,O4(f,O)):(O.next=m.next,f.pending=m.next=O)}}function O4(l,f){var m=f.action,v=f.payload,A=l.state;if(f.isTransition){var O=Z.T,j={};Z.T=j;try{var ne=m(A,v),ve=Z.S;ve!==null&&ve(j,ne),R4(l,f,ne)}catch(ze){T1(l,f,ze)}finally{O!==null&&j.types!==null&&(O.types=j.types),Z.T=O}}else try{O=m(A,v),R4(l,f,O)}catch(ze){T1(l,f,ze)}}function R4(l,f,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(v){M4(l,f,v)},function(v){return T1(l,f,v)}):M4(l,f,m)}function M4(l,f,m){f.status="fulfilled",f.value=m,p0(f),l.state=m,f=l.pending,f!==null&&(m=f.next,m===f?l.pending=null:(m=m.next,f.next=m,O4(l,m)))}function T1(l,f,m){var v=l.pending;if(l.pending=null,v!==null){v=v.next;do f.status="rejected",f.reason=m,p0(f),f=f.next;while(f!==v)}l.action=null}function p0(l){l=l.listeners;for(var f=0;f<l.length;f++)(0,l[f])()}function _4(l,f){return f}function Ap(l,f){if(kn){var m=dr.formState;if(m!==null){e:{var v=cn;if(kn){if(xr){t:{for(var A=xr,O=Ja;A.nodeType!==8;){if(!O){A=null;break t}if(A=Ji(A.nextSibling),A===null){A=null;break t}}O=A.data,A=O==="F!"||O==="F"?A:null}if(A){xr=Ji(A.nextSibling),v=A.data==="F!";break e}}Oa(v)}v=!1}v&&(f=m[0])}}return m=Xi(),m.memoizedState=m.baseState=f,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_4,lastRenderedState:f},m.queue=v,m=L4.bind(null,cn,v),v.dispatch=m,v=Tp(!1),O=Gf.bind(null,cn,!1,v.queue),v=Xi(),A={state:f,dispatch:null,action:l,pending:null},v.queue=A,m=Wi.bind(null,cn,A,O,m),A.dispatch=m,v.memoizedState=l,[f,m,!1]}function D4(l){var f=Dr();return G6(f,nr,l)}function G6(l,f,m){if(f=Au(l,f,_4)[0],l=Ep(Cs)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var v=d0(f)}catch(j){throw j===Dl?Ac:j}else v=f;f=Dr();var A=f.queue,O=A.dispatch;return m!==f.memoizedState&&(cn.flags|=2048,Hf(9,{destroy:void 0},A1.bind(null,A,m),null)),[v,O,l]}function A1(l,f){l.action=f}function C1(l){var f=Dr(),m=nr;if(m!==null)return G6(f,m,l);Dr(),f=f.memoizedState,m=Dr();var v=m.queue.dispatch;return m.memoizedState=l,[f,v,!1]}function Hf(l,f,m,v){return l={tag:l,create:m,deps:v,inst:f,next:null},f=cn.updateQueue,f===null&&(f=xp(),cn.updateQueue=f),m=f.lastEffect,m===null?f.lastEffect=l.next=l:(v=m.next,m.next=l,l.next=v,f.lastEffect=l),l}function N4(){return Dr().memoizedState}function Cp(l,f,m,v){var A=Xi();cn.flags|=l,A.memoizedState=Hf(1|f,{destroy:void 0},m,v===void 0?null:v)}function m0(l,f,m,v){var A=Dr();v=v===void 0?null:v;var O=A.memoizedState.inst;nr!==null&&v!==null&&y1(v,nr.memoizedState.deps)?A.memoizedState=Hf(f,O,m,v):(cn.flags|=l,A.memoizedState=Hf(1|f,O,m,v))}function O1(l,f){Cp(8390656,8,l,f)}function Op(l,f){m0(2048,8,l,f)}function F6(l){cn.flags|=4;var f=cn.updateQueue;if(f===null)f=xp(),cn.updateQueue=f,f.events=[l];else{var m=f.events;m===null?f.events=[l]:m.push(l)}}function R1(l){var f=Dr().memoizedState;return F6({ref:f,nextImpl:l}),function(){if((Hn&2)!==0)throw Error(i(440));return f.impl.apply(void 0,arguments)}}function Rp(l,f){return m0(4,2,l,f)}function M1(l,f){return m0(4,4,l,f)}function k4(l,f){if(typeof f=="function"){l=l();var m=f(l);return function(){typeof m=="function"?m():f(null)}}if(f!=null)return l=l(),f.current=l,function(){f.current=null}}function _1(l,f,m){m=m!=null?m.concat([l]):null,m0(4,4,k4.bind(null,f,l),m)}function D1(){}function Os(l,f){var m=Dr();f=f===void 0?null:f;var v=m.memoizedState;return f!==null&&y1(f,v[1])?v[0]:(m.memoizedState=[l,f],l)}function N1(l,f){var m=Dr();f=f===void 0?null:f;var v=m.memoizedState;if(f!==null&&y1(f,v[1]))return v[0];if(v=l(),_c){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[v,f],v}function z4(l,f,m){return m===void 0||(Nl&1073741824)!==0&&(zn&261930)===0?l.memoizedState=f:(l.memoizedState=m,l=dx(),cn.lanes|=l,il|=l,m)}function k1(l,f,m,v){return Xa(m,f)?m:Zo.current!==null?(l=z4(l,m,v),Xa(l,f)||(li=!0),l):(Nl&42)===0||(Nl&1073741824)!==0&&(zn&261930)===0?(li=!0,l.memoizedState=m):(l=dx(),cn.lanes|=l,il|=l,f)}function Rs(l,f,m,v,A){var O=ae.p;ae.p=O!==0&&8>O?O:8;var j=Z.T,ne={};Z.T=ne,Gf(l,!1,f,m);try{var ve=A(),ze=Z.S;if(ze!==null&&ze(ne,ve),ve!==null&&typeof ve=="object"&&typeof ve.then=="function"){var qe=d1(ve,v);qf(l,f,qe,ka(l))}else qf(l,f,v,ka(l))}catch(Ke){qf(l,f,{then:function(){},status:"rejected",reason:Ke},ka())}finally{ae.p=O,j!==null&&ne.types!==null&&(j.types=ne.types),Z.T=j}}function I4(){}function z1(l,f,m,v){if(l.tag!==5)throw Error(i(476));var A=Mp(l).queue;Rs(l,A,f,de,m===null?I4:function(){return g0(l),m(v)})}function Mp(l){var f=l.memoizedState;if(f!==null)return f;f={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:de},next:null};var m={};return f.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:m},next:null},l.memoizedState=f,l=l.alternate,l!==null&&(l.memoizedState=f),f}function g0(l){var f=Mp(l);f.next===null&&(f=l.alternate.memoizedState),qf(l,f.next.queue,{},ka())}function rr(){return Vt(Jr)}function Y6(){return Dr().memoizedState}function X6(){return Dr().memoizedState}function W6(l){for(var f=l.return;f!==null;){switch(f.tag){case 24:case 3:var m=ka();l=xu(m);var v=Su(f,l,m);v!==null&&(so(v,f,m),Ts(v,f,m)),f={cache:f1()},l.payload=f;return}f=f.return}}function Ms(l,f,m){var v=ka();m={lane:v,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Cu(l)?V4(f,m):(m=Qo(l,f,m,v),m!==null&&(so(m,l,v),I1(m,f,v)))}function L4(l,f,m){var v=ka();qf(l,f,m,v)}function qf(l,f,m,v){var A={lane:v,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Cu(l))V4(f,A);else{var O=l.alternate;if(l.lanes===0&&(O===null||O.lanes===0)&&(O=f.lastRenderedReducer,O!==null))try{var j=f.lastRenderedState,ne=O(j,m);if(A.hasEagerState=!0,A.eagerState=ne,Xa(ne,j))return To(l,f,A,0),dr===null&&wo(),!1}catch{}finally{}if(m=Qo(l,f,A,v),m!==null)return so(m,l,v),I1(m,f,v),!0}return!1}function Gf(l,f,m,v){if(v={lane:2,revertLane:nd(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},Cu(l)){if(f)throw Error(i(479))}else f=Qo(l,m,v,2),f!==null&&so(f,l,2)}function Cu(l){var f=l.alternate;return l===cn||f!==null&&f===cn}function V4(l,f){wu=bp=!0;var m=l.pending;m===null?f.next=f:(f.next=m.next,m.next=f),l.pending=f}function I1(l,f,m){if((m&4194048)!==0){var v=f.lanes;v&=l.pendingLanes,m|=v,f.lanes=m,zh(l,m)}}var y0={readContext:Vt,use:h0,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useLayoutEffect:Vr,useInsertionEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useSyncExternalStore:Vr,useId:Vr,useHostTransitionStatus:Vr,useFormState:Vr,useActionState:Vr,useOptimistic:Vr,useMemoCache:Vr,useCacheRefresh:Vr};y0.useEffectEvent=Vr;var Q6={readContext:Vt,use:h0,useCallback:function(l,f){return Xi().memoizedState=[l,f===void 0?null:f],l},useContext:Vt,useEffect:O1,useImperativeHandle:function(l,f,m){m=m!=null?m.concat([l]):null,Cp(4194308,4,k4.bind(null,f,l),m)},useLayoutEffect:function(l,f){return Cp(4194308,4,l,f)},useInsertionEffect:function(l,f){Cp(4,2,l,f)},useMemo:function(l,f){var m=Xi();f=f===void 0?null:f;var v=l();if(_c){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[v,f],v},useReducer:function(l,f,m){var v=Xi();if(m!==void 0){var A=m(f);if(_c){Fn(!0);try{m(f)}finally{Fn(!1)}}}else A=f;return v.memoizedState=v.baseState=A,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:A},v.queue=l,l=l.dispatch=Ms.bind(null,cn,l),[v.memoizedState,l]},useRef:function(l){var f=Xi();return l={current:l},f.memoizedState=l},useState:function(l){l=Tp(l);var f=l.queue,m=L4.bind(null,cn,f);return f.dispatch=m,[l.memoizedState,m]},useDebugValue:D1,useDeferredValue:function(l,f){var m=Xi();return z4(m,l,f)},useTransition:function(){var l=Tp(!1);return l=Rs.bind(null,cn,l.queue,!0,!1),Xi().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,f,m){var v=cn,A=Xi();if(kn){if(m===void 0)throw Error(i(407));m=m()}else{if(m=f(),dr===null)throw Error(i(349));(zn&127)!==0||A4(v,f,m)}A.memoizedState=m;var O={value:m,getSnapshot:f};return A.queue=O,O1(C4.bind(null,v,O,l),[l]),v.flags|=2048,Hf(9,{destroy:void 0},wp.bind(null,v,O,m,f),null),m},useId:function(){var l=Xi(),f=dr.identifierPrefix;if(kn){var m=Za,v=Ro;m=(v&~(1<<32-bn(v)-1)).toString(32)+m,f="_"+f+"R_"+m,m=c0++,0<m&&(f+="H"+m.toString(32)),f+="_"}else m=E4++,f="_"+f+"r_"+m.toString(32)+"_";return l.memoizedState=f},useHostTransitionStatus:rr,useFormState:Ap,useActionState:Ap,useOptimistic:function(l){var f=Xi();f.memoizedState=f.baseState=l;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=m,f=Gf.bind(null,cn,!0,m),m.dispatch=f,[l,f]},useMemoCache:Sp,useCacheRefresh:function(){return Xi().memoizedState=W6.bind(null,cn)},useEffectEvent:function(l){var f=Xi(),m={impl:l};return f.memoizedState=m,function(){if((Hn&2)!==0)throw Error(i(440));return m.impl.apply(void 0,arguments)}}},B4={readContext:Vt,use:h0,useCallback:Os,useContext:Vt,useEffect:Op,useImperativeHandle:_1,useInsertionEffect:Rp,useLayoutEffect:M1,useMemo:N1,useReducer:Ep,useRef:N4,useState:function(){return Ep(Cs)},useDebugValue:D1,useDeferredValue:function(l,f){var m=Dr();return k1(m,nr.memoizedState,l,f)},useTransition:function(){var l=Ep(Cs)[0],f=Dr().memoizedState;return[typeof l=="boolean"?l:d0(l),f]},useSyncExternalStore:T4,useId:Y6,useHostTransitionStatus:rr,useFormState:D4,useActionState:D4,useOptimistic:function(l,f){var m=Dr();return q6(m,nr,l,f)},useMemoCache:Sp,useCacheRefresh:X6};B4.useEffectEvent=R1;var j4={readContext:Vt,use:h0,useCallback:Os,useContext:Vt,useEffect:Op,useImperativeHandle:_1,useInsertionEffect:Rp,useLayoutEffect:M1,useMemo:N1,useReducer:S1,useRef:N4,useState:function(){return S1(Cs)},useDebugValue:D1,useDeferredValue:function(l,f){var m=Dr();return nr===null?z4(m,l,f):k1(m,nr.memoizedState,l,f)},useTransition:function(){var l=S1(Cs)[0],f=Dr().memoizedState;return[typeof l=="boolean"?l:d0(l),f]},useSyncExternalStore:T4,useId:Y6,useHostTransitionStatus:rr,useFormState:C1,useActionState:C1,useOptimistic:function(l,f){var m=Dr();return nr!==null?q6(m,nr,l,f):(m.baseState=l,[l,m.queue.dispatch])},useMemoCache:Sp,useCacheRefresh:X6};j4.useEffectEvent=R1;function P4(l,f,m,v){f=l.memoizedState,m=m(v,f),m=m==null?f:S({},f,m),l.memoizedState=m,l.lanes===0&&(l.updateQueue.baseState=m)}var Ff={enqueueSetState:function(l,f,m){l=l._reactInternals;var v=ka(),A=xu(v);A.payload=f,m!=null&&(A.callback=m),f=Su(l,A,v),f!==null&&(so(f,l,v),Ts(f,l,v))},enqueueReplaceState:function(l,f,m){l=l._reactInternals;var v=ka(),A=xu(v);A.tag=1,A.payload=f,m!=null&&(A.callback=m),f=Su(l,A,v),f!==null&&(so(f,l,v),Ts(f,l,v))},enqueueForceUpdate:function(l,f){l=l._reactInternals;var m=ka(),v=xu(m);v.tag=2,f!=null&&(v.callback=f),f=Su(l,v,m),f!==null&&(so(f,l,m),Ts(f,l,m))}};function kl(l,f,m,v,A,O,j){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(v,O,j):f.prototype&&f.prototype.isPureReactComponent?!yc(m,v)||!yc(A,O):!0}function U4(l,f,m,v){l=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,v),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,v),f.state!==l&&Ff.enqueueReplaceState(f,f.state,null)}function Yf(l,f){var m=f;if("ref"in f){m={};for(var v in f)v!=="ref"&&(m[v]=f[v])}if(l=l.defaultProps){m===f&&(m=S({},m));for(var A in l)m[A]===void 0&&(m[A]=l[A])}return m}function $4(l){Sc(l)}function L1(l){console.error(l)}function H4(l){Sc(l)}function v0(l,f){try{var m=l.onUncaughtError;m(f.value,{componentStack:f.stack})}catch(v){setTimeout(function(){throw v})}}function V1(l,f,m){try{var v=l.onCaughtError;v(m.value,{componentStack:m.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function b0(l,f,m){return m=xu(m),m.tag=3,m.payload={element:null},m.callback=function(){v0(l,f)},m}function K6(l){return l=xu(l),l.tag=3,l}function q4(l,f,m,v){var A=m.type.getDerivedStateFromError;if(typeof A=="function"){var O=v.value;l.payload=function(){return A(O)},l.callback=function(){V1(f,m,v)}}var j=m.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(l.callback=function(){V1(f,m,v),typeof A!="function"&&(js===null?js=new Set([this]):js.add(this));var ne=v.stack;this.componentDidCatch(v.value,{componentStack:ne!==null?ne:""})})}function Z6(l,f,m,v,A){if(m.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(f=m.alternate,f!==null&&Mo(f,m,A,!0),m=ua.current,m!==null){switch(m.tag){case 31:case 13:return no===null?W1():m.alternate===null&&Nr===0&&(Nr=3),m.flags&=-257,m.flags|=65536,m.lanes=A,v===o0?m.flags|=16384:(f=m.updateQueue,f===null?m.updateQueue=new Set([v]):f.add(v),Z1(l,v,A)),!1;case 22:return m.flags|=65536,v===o0?m.flags|=16384:(f=m.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([v])},m.updateQueue=f):(m=f.retryQueue,m===null?f.retryQueue=new Set([v]):m.add(v)),Z1(l,v,A)),!1}throw Error(i(435,m.tag))}return Z1(l,v,A),W1(),!1}if(kn)return f=ua.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=A,v!==xs&&(l=Error(i(422),{cause:v}),op(Co(l,m)))):(v!==xs&&(f=Error(i(423),{cause:v}),op(Co(f,m))),l=l.current.alternate,l.flags|=65536,A&=-A,l.lanes|=A,v=Co(v,m),A=b0(l.stateNode,v,A),u0(l,A),Nr!==4&&(Nr=2)),!1;var O=Error(i(520),{cause:v});if(O=Co(O,m),Kr===null?Kr=[O]:Kr.push(O),Nr!==4&&(Nr=2),f===null)return!0;v=Co(v,m),m=f;do{switch(m.tag){case 3:return m.flags|=65536,l=A&-A,m.lanes|=l,l=b0(m.stateNode,v,l),u0(m,l),!1;case 1:if(f=m.type,O=m.stateNode,(m.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(js===null||!js.has(O))))return m.flags|=65536,A&=-A,m.lanes|=A,A=K6(A),q4(A,l,m,v),u0(m,A),!1}m=m.return}while(m!==null);return!1}var G4=Error(i(461)),li=!1;function Ii(l,f,m,v){f.child=l===null?x4(f,null,m,v):Bf(f,l.child,m,v)}function _s(l,f,m,v,A){m=m.render;var O=f.ref;if("ref"in v){var j={};for(var ne in v)ne!=="ref"&&(j[ne]=v[ne])}else j=v;return ws(f),v=Tu(l,f,m,j,O,A),ne=w4(),l!==null&&!li?(x1(l,f,A),Ds(l,f,A)):(kn&&ne&&o1(f),f.flags|=1,Ii(l,f,v,A),f.child)}function F4(l,f,m,v,A){if(l===null){var O=m.type;return typeof O=="function"&&!Ko(O)&&O.defaultProps===void 0&&m.compare===null?(f.tag=15,f.type=O,Y4(l,f,O,v,A)):(l=ep(m.type,null,v,f,f.mode,A),l.ref=f.ref,l.return=f,f.child=l)}if(O=l.child,!Xf(l,A)){var j=O.memoizedProps;if(m=m.compare,m=m!==null?m:yc,m(j,v)&&l.ref===f.ref)return Ds(l,f,A)}return f.flags|=1,l=Ao(O,v),l.ref=f.ref,l.return=f,f.child=l}function Y4(l,f,m,v,A){if(l!==null){var O=l.memoizedProps;if(yc(O,v)&&l.ref===f.ref)if(li=!1,f.pendingProps=v=O,Xf(l,A))(l.flags&131072)!==0&&(li=!0);else return f.lanes=l.lanes,Ds(l,f,A)}return Jo(l,f,m,v,A)}function X4(l,f,m,v){var A=v.children,O=l!==null?l.memoizedState:null;if(l===null&&f.stateNode===null&&(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((f.flags&128)!==0){if(O=O!==null?O.baseLanes|m:m,l!==null){for(v=f.child=l.child,A=0;v!==null;)A=A|v.lanes|v.childLanes,v=v.sibling;v=A&~O}else v=0,f.child=null;return Dp(l,f,O,m,v)}if((m&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},l!==null&&to(f,O!==null?O.cachePool:null),O!==null?mp(f,O):S4(),vp(f);else return v=f.lanes=536870912,Dp(l,f,O!==null?O.baseLanes|m:m,m,v)}else O!==null?(to(f,O.cachePool),mp(f,O),As(),f.memoizedState=null):(l!==null&&to(f,null),S4(),As());return Ii(l,f,A,m),f.child}function _p(l,f){return l!==null&&l.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function Dp(l,f,m,v,A){var O=vu();return O=O===null?null:{parent:Wr._currentValue,pool:O},f.memoizedState={baseLanes:m,cachePool:O},l!==null&&to(f,null),S4(),vp(f),l!==null&&Mo(l,f,v,!0),f.childLanes=A,null}function Qi(l,f){return f=Ou({mode:f.mode,children:f.children},l.mode),f.ref=l.ref,l.child=f,f.return=l,f}function W4(l,f,m){return Bf(f,l.child,null,m),l=Qi(f,f.pendingProps),l.flags|=2,ca(f),f.memoizedState=null,l}function ro(l,f,m){var v=f.pendingProps,A=(f.flags&128)!==0;if(f.flags&=-129,l===null){if(kn){if(v.mode==="hidden")return l=Qi(f,v),f.lanes=536870912,_p(null,l);if(yp(f),(l=xr)?(l=yn(l,Ja),l=l!==null&&l.data==="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Rl!==null?{id:Ro,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},m=np(l),m.return=f,f.child=m,mi=f,xr=null)):l=null,l===null)throw Oa(f);return f.lanes=536870912,null}return Qi(f,v)}var O=l.memoizedState;if(O!==null){var j=O.dehydrated;if(yp(f),A)if(f.flags&256)f.flags&=-257,f=W4(l,f,m);else if(f.memoizedState!==null)f.child=l.child,f.flags|=128,f=null;else throw Error(i(558));else if(li||Mo(l,f,m,!1),A=(m&l.childLanes)!==0,li||A){if(v=dr,v!==null&&(j=is(v,m),j!==0&&j!==O.retryLane))throw O.retryLane=j,oa(l,j),so(v,l,j),G4;W1(),f=W4(l,f,m)}else l=O.treeContext,xr=Ji(j.nextSibling),mi=f,kn=!0,bs=null,Ja=!1,l!==null&&p4(f,l),f=Qi(f,v),f.flags|=4096;return f}return l=Ao(l.child,{mode:v.mode,children:v.children}),l.ref=f.ref,f.child=l,l.return=f,l}function Np(l,f){var m=f.ref;if(m===null)l!==null&&l.ref!==null&&(f.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(i(284));(l===null||l.ref!==m)&&(f.flags|=4194816)}}function Jo(l,f,m,v,A){return ws(f),m=Tu(l,f,m,v,void 0,A),v=w4(),l!==null&&!li?(x1(l,f,A),Ds(l,f,A)):(kn&&v&&o1(f),f.flags|=1,Ii(l,f,m,A),f.child)}function Q4(l,f,m,v,A,O){return ws(f),f.updateQueue=null,m=b1(f,v,m,A),v1(l),v=w4(),l!==null&&!li?(x1(l,f,O),Ds(l,f,O)):(kn&&v&&o1(f),f.flags|=1,Ii(l,f,m,O),f.child)}function Dc(l,f,m,v,A){if(ws(f),f.stateNode===null){var O=Nf,j=m.contextType;typeof j=="object"&&j!==null&&(O=Vt(j)),O=new m(v,O),f.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Ff,f.stateNode=O,O._reactInternals=f,O=f.stateNode,O.props=v,O.state=f.memoizedState,O.refs={},p1(f),j=m.contextType,O.context=typeof j=="object"&&j!==null?Vt(j):Nf,O.state=f.memoizedState,j=m.getDerivedStateFromProps,typeof j=="function"&&(P4(f,m,j,v),O.state=f.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(j=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),j!==O.state&&Ff.enqueueReplaceState(O,O.state,null),Mc(f,v,O,A),pp(),O.state=f.memoizedState),typeof O.componentDidMount=="function"&&(f.flags|=4194308),v=!0}else if(l===null){O=f.stateNode;var ne=f.memoizedProps,ve=Yf(m,ne);O.props=ve;var ze=O.context,qe=m.contextType;j=Nf,typeof qe=="object"&&qe!==null&&(j=Vt(qe));var Ke=m.getDerivedStateFromProps;qe=typeof Ke=="function"||typeof O.getSnapshotBeforeUpdate=="function",ne=f.pendingProps!==ne,qe||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(ne||ze!==j)&&U4(f,O,v,j),bu=!1;var Ie=f.memoizedState;O.state=Ie,Mc(f,v,O,A),pp(),ze=f.memoizedState,ne||Ie!==ze||bu?(typeof Ke=="function"&&(P4(f,m,Ke,v),ze=f.memoizedState),(ve=bu||kl(f,m,ve,v,Ie,ze,j))?(qe||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(f.flags|=4194308)):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=v,f.memoizedState=ze),O.props=v,O.state=ze,O.context=j,v=ve):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),v=!1)}else{O=f.stateNode,hp(l,f),j=f.memoizedProps,qe=Yf(m,j),O.props=qe,Ke=f.pendingProps,Ie=O.context,ze=m.contextType,ve=Nf,typeof ze=="object"&&ze!==null&&(ve=Vt(ze)),ne=m.getDerivedStateFromProps,(ze=typeof ne=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(j!==Ke||Ie!==ve)&&U4(f,O,v,ve),bu=!1,Ie=f.memoizedState,O.state=Ie,Mc(f,v,O,A),pp();var Ue=f.memoizedState;j!==Ke||Ie!==Ue||bu||l!==null&&l.dependencies!==null&&sa(l.dependencies)?(typeof ne=="function"&&(P4(f,m,ne,v),Ue=f.memoizedState),(qe=bu||kl(f,m,qe,v,Ie,Ue,ve)||l!==null&&l.dependencies!==null&&sa(l.dependencies))?(ze||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(v,Ue,ve),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(v,Ue,ve)),typeof O.componentDidUpdate=="function"&&(f.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=1024),f.memoizedProps=v,f.memoizedState=Ue),O.props=v,O.state=Ue,O.context=ve,v=qe):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=1024),v=!1)}return O=v,Np(l,f),v=(f.flags&128)!==0,O||v?(O=f.stateNode,m=v&&typeof m.getDerivedStateFromError!="function"?null:O.render(),f.flags|=1,l!==null&&v?(f.child=Bf(f,l.child,null,A),f.child=Bf(f,null,m,A)):Ii(l,f,m,A),f.memoizedState=O.state,l=f.child):l=Ds(l,f,A),l}function K4(l,f,m,v){return Ml(),f.flags|=256,Ii(l,f,m,v),f.child}var el={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kp(l){return{baseLanes:l,cachePool:h1()}}function zp(l,f,m){return l=l!==null?l.childLanes&~m:0,f&&(l|=ao),l}function tl(l,f,m){var v=f.pendingProps,A=!1,O=(f.flags&128)!==0,j;if((j=O)||(j=l!==null&&l.memoizedState===null?!1:(Lr.current&2)!==0),j&&(A=!0,f.flags&=-129),j=(f.flags&32)!==0,f.flags&=-33,l===null){if(kn){if(A?Eu(f):As(),(l=xr)?(l=yn(l,Ja),l=l!==null&&l.data!=="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Rl!==null?{id:Ro,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},m=np(l),m.return=f,f.child=m,mi=f,xr=null)):l=null,l===null)throw Oa(f);return ol(l)?f.lanes=32:f.lanes=536870912,null}var ne=v.children;return v=v.fallback,A?(As(),A=f.mode,ne=Ou({mode:"hidden",children:ne},A),v=kf(v,A,m,null),ne.return=f,v.return=f,ne.sibling=v,f.child=ne,v=f.child,v.memoizedState=kp(m),v.childLanes=zp(l,j,m),f.memoizedState=el,_p(null,v)):(Eu(f),B1(f,ne))}var ve=l.memoizedState;if(ve!==null&&(ne=ve.dehydrated,ne!==null)){if(O)f.flags&256?(Eu(f),f.flags&=-257,f=j1(l,f,m)):f.memoizedState!==null?(As(),f.child=l.child,f.flags|=128,f=null):(As(),ne=v.fallback,A=f.mode,v=Ou({mode:"visible",children:v.children},A),ne=kf(ne,A,m,null),ne.flags|=2,v.return=f,ne.return=f,v.sibling=ne,f.child=v,Bf(f,l.child,null,m),v=f.child,v.memoizedState=kp(m),v.childLanes=zp(l,j,m),f.memoizedState=el,f=_p(null,v));else if(Eu(f),ol(ne)){if(j=ne.nextSibling&&ne.nextSibling.dataset,j)var ze=j.dgst;j=ze,v=Error(i(419)),v.stack="",v.digest=j,op({value:v,source:null,stack:null}),f=j1(l,f,m)}else if(li||Mo(l,f,m,!1),j=(m&l.childLanes)!==0,li||j){if(j=dr,j!==null&&(v=is(j,m),v!==0&&v!==ve.retryLane))throw ve.retryLane=v,oa(l,v),so(j,l,v),G4;Nx(ne)||W1(),f=j1(l,f,m)}else Nx(ne)?(f.flags|=192,f.child=l.child,f=null):(l=ve.treeContext,xr=Ji(ne.nextSibling),mi=f,kn=!0,bs=null,Ja=!1,l!==null&&p4(f,l),f=B1(f,v.children),f.flags|=4096);return f}return A?(As(),ne=v.fallback,A=f.mode,ve=l.child,ze=ve.sibling,v=Ao(ve,{mode:"hidden",children:v.children}),v.subtreeFlags=ve.subtreeFlags&65011712,ze!==null?ne=Ao(ze,ne):(ne=kf(ne,A,m,null),ne.flags|=2),ne.return=f,v.return=f,v.sibling=ne,f.child=v,_p(null,v),v=f.child,ne=l.child.memoizedState,ne===null?ne=kp(m):(A=ne.cachePool,A!==null?(ve=Wr._currentValue,A=A.parent!==ve?{parent:ve,pool:ve}:A):A=h1(),ne={baseLanes:ne.baseLanes|m,cachePool:A}),v.memoizedState=ne,v.childLanes=zp(l,j,m),f.memoizedState=el,_p(l.child,v)):(Eu(f),m=l.child,l=m.sibling,m=Ao(m,{mode:"visible",children:v.children}),m.return=f,m.sibling=null,l!==null&&(j=f.deletions,j===null?(f.deletions=[l],f.flags|=16):j.push(l)),f.child=m,f.memoizedState=null,m)}function B1(l,f){return f=Ou({mode:"visible",children:f},l.mode),f.return=l,l.child=f}function Ou(l,f){return l=Qa(22,l,null,f),l.lanes=0,l}function j1(l,f,m){return Bf(f,l.child,null,m),l=B1(f,f.pendingProps.children),l.flags|=2,f.memoizedState=null,l}function x0(l,f,m){l.lanes|=f;var v=l.alternate;v!==null&&(v.lanes|=f),lp(l.return,f,m)}function Nc(l,f,m,v,A,O){var j=l.memoizedState;j===null?l.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:v,tail:m,tailMode:A,treeForkCount:O}:(j.isBackwards=f,j.rendering=null,j.renderingStartTime=0,j.last=v,j.tail=m,j.tailMode=A,j.treeForkCount=O)}function Z4(l,f,m){var v=f.pendingProps,A=v.revealOrder,O=v.tail;v=v.children;var j=Lr.current,ne=(j&2)!==0;if(ne?(j=j&1|2,f.flags|=128):j&=1,Y(Lr,j),Ii(l,f,v,m),v=kn?n0:0,!ne&&l!==null&&(l.flags&128)!==0)e:for(l=f.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&x0(l,m,f);else if(l.tag===19)x0(l,m,f);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===f)break e;for(;l.sibling===null;){if(l.return===null||l.return===f)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(A){case"forwards":for(m=f.child,A=null;m!==null;)l=m.alternate,l!==null&&Pf(l)===null&&(A=m),m=m.sibling;m=A,m===null?(A=f.child,f.child=null):(A=m.sibling,m.sibling=null),Nc(f,!1,A,m,O,v);break;case"backwards":case"unstable_legacy-backwards":for(m=null,A=f.child,f.child=null;A!==null;){if(l=A.alternate,l!==null&&Pf(l)===null){f.child=A;break}l=A.sibling,A.sibling=m,m=A,A=l}Nc(f,!0,m,null,O,v);break;case"together":Nc(f,!1,null,null,void 0,v);break;default:f.memoizedState=null}return f.child}function Ds(l,f,m){if(l!==null&&(f.dependencies=l.dependencies),il|=f.lanes,(m&f.childLanes)===0)if(l!==null){if(Mo(l,f,m,!1),(m&f.childLanes)===0)return null}else return null;if(l!==null&&f.child!==l.child)throw Error(i(153));if(f.child!==null){for(l=f.child,m=Ao(l,l.pendingProps),f.child=m,m.return=f;l.sibling!==null;)l=l.sibling,m=m.sibling=Ao(l,l.pendingProps),m.return=f;m.sibling=null}return f.child}function Xf(l,f){return(l.lanes&f)!==0?!0:(l=l.dependencies,!!(l!==null&&sa(l)))}function J6(l,f,m){switch(f.tag){case 3:He(f,f.stateNode.containerInfo),Es(f,Wr,l.memoizedState.cache),Ml();break;case 27:case 5:Qe(f);break;case 4:He(f,f.stateNode.containerInfo);break;case 10:Es(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,yp(f),null;break;case 13:var v=f.memoizedState;if(v!==null)return v.dehydrated!==null?(Eu(f),f.flags|=128,null):(m&f.child.childLanes)!==0?tl(l,f,m):(Eu(f),l=Ds(l,f,m),l!==null?l.sibling:null);Eu(f);break;case 19:var A=(l.flags&128)!==0;if(v=(m&f.childLanes)!==0,v||(Mo(l,f,m,!1),v=(m&f.childLanes)!==0),A){if(v)return Z4(l,f,m);f.flags|=128}if(A=f.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Y(Lr,Lr.current),v)break;return null;case 22:return f.lanes=0,X4(l,f,m,f.pendingProps);case 24:Es(f,Wr,l.memoizedState.cache)}return Ds(l,f,m)}function Ip(l,f,m){if(l!==null)if(l.memoizedProps!==f.pendingProps)li=!0;else{if(!Xf(l,m)&&(f.flags&128)===0)return li=!1,J6(l,f,m);li=(l.flags&131072)!==0}else li=!1,kn&&(f.flags&1048576)!==0&&ip(f,n0,f.index);switch(f.lanes=0,f.tag){case 16:e:{var v=f.pendingProps;if(l=Cc(f.elementType),f.type=l,typeof l=="function")Ko(l)?(v=Yf(l,v),f.tag=1,f=Dc(null,f,l,v,m)):(f.tag=0,f=Jo(null,f,l,v,m));else{if(l!=null){var A=l.$$typeof;if(A===B){f.tag=11,f=_s(null,f,l,v,m);break e}else if(A===X){f.tag=14,f=F4(null,f,l,v,m);break e}}throw f=Q(l)||l,Error(i(306,f,""))}}return f;case 0:return Jo(l,f,f.type,f.pendingProps,m);case 1:return v=f.type,A=Yf(v,f.pendingProps),Dc(l,f,v,A,m);case 3:e:{if(He(f,f.stateNode.containerInfo),l===null)throw Error(i(387));v=f.pendingProps;var O=f.memoizedState;A=O.element,hp(l,f),Mc(f,v,null,m);var j=f.memoizedState;if(v=j.cache,Es(f,Wr,v),v!==O.cache&&u1(f,[Wr],m,!0),pp(),v=j.element,O.isDehydrated)if(O={element:v,isDehydrated:!1,cache:j.cache},f.updateQueue.baseState=O,f.memoizedState=O,f.flags&256){f=K4(l,f,v,m);break e}else if(v!==A){A=Co(Error(i(424)),f),op(A),f=K4(l,f,v,m);break e}else{switch(l=f.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(xr=Ji(l.firstChild),mi=f,kn=!0,bs=null,Ja=!0,m=x4(f,null,v,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Ml(),v===A){f=Ds(l,f,m);break e}Ii(l,f,v,m)}f=f.child}return f;case 26:return Np(l,f),l===null?(m=zu(f.type,null,f.pendingProps,null))?f.memoizedState=m:kn||(m=f.type,l=f.pendingProps,v=rm(_e.current).createElement(m),v[pi]=f,v[Or]=l,Zi(v,m,l),Si(v),f.stateNode=v):f.memoizedState=zu(f.type,l.memoizedProps,f.pendingProps,l.memoizedState),null;case 27:return Qe(f),l===null&&kn&&(v=f.stateNode=Vl(f.type,f.pendingProps,_e.current),mi=f,Ja=!0,A=xr,Ps(f.type)?(z0=A,xr=Ji(v.firstChild)):xr=A),Ii(l,f,f.pendingProps.children,m),Np(l,f),l===null&&(f.flags|=4194304),f.child;case 5:return l===null&&kn&&((A=v=xr)&&(v=Dx(v,f.type,f.pendingProps,Ja),v!==null?(f.stateNode=v,mi=f,xr=Ji(v.firstChild),Ja=!1,A=!0):A=!1),A||Oa(f)),Qe(f),A=f.type,O=f.pendingProps,j=l!==null?l.memoizedProps:null,v=O.children,cy(A,O)?v=null:j!==null&&cy(A,j)&&(f.flags|=32),f.memoizedState!==null&&(A=Tu(l,f,Y8,null,null,m),Jr._currentValue=A),Np(l,f),Ii(l,f,v,m),f.child;case 6:return l===null&&kn&&((l=m=xr)&&(m=Z8(m,f.pendingProps,Ja),m!==null?(f.stateNode=m,mi=f,xr=null,l=!0):l=!1),l||Oa(f)),null;case 13:return tl(l,f,m);case 4:return He(f,f.stateNode.containerInfo),v=f.pendingProps,l===null?f.child=Bf(f,null,v,m):Ii(l,f,v,m),f.child;case 11:return _s(l,f,f.type,f.pendingProps,m);case 7:return Ii(l,f,f.pendingProps,m),f.child;case 8:return Ii(l,f,f.pendingProps.children,m),f.child;case 12:return Ii(l,f,f.pendingProps.children,m),f.child;case 10:return v=f.pendingProps,Es(f,f.type,v.value),Ii(l,f,v.children,m),f.child;case 9:return A=f.type._context,v=f.pendingProps.children,ws(f),A=Vt(A),v=v(A),f.flags|=1,Ii(l,f,v,m),f.child;case 14:return F4(l,f,f.type,f.pendingProps,m);case 15:return Y4(l,f,f.type,f.pendingProps,m);case 19:return Z4(l,f,m);case 31:return ro(l,f,m);case 22:return X4(l,f,m,f.pendingProps);case 24:return ws(f),v=Vt(Wr),l===null?(A=vu(),A===null&&(A=dr,O=f1(),A.pooledCache=O,O.refCount++,O!==null&&(A.pooledCacheLanes|=m),A=O),f.memoizedState={parent:v,cache:A},p1(f),Es(f,Wr,A)):((l.lanes&m)!==0&&(hp(l,f),Mc(f,null,null,m),pp()),A=l.memoizedState,O=f.memoizedState,A.parent!==v?(A={parent:v,cache:v},f.memoizedState=A,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=A),Es(f,Wr,v)):(v=O.cache,Es(f,Wr,v),v!==A.cache&&u1(f,[Wr],m,!0))),Ii(l,f,f.pendingProps.children,m),f.child;case 29:throw f.pendingProps}throw Error(i(156,f.tag))}function Ns(l){l.flags|=4}function P1(l,f,m,v,A){if((f=(l.mode&32)!==0)&&(f=!1),f){if(l.flags|=16777216,(A&335544128)===A)if(l.stateNode.complete)l.flags|=8192;else if(A0())l.flags|=8192;else throw Oc=o0,cp}else l.flags&=-16777217}function eE(l,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!vy(f))if(A0())l.flags|=8192;else throw Oc=o0,cp}function Lp(l,f){f!==null&&(l.flags|=4),l.flags&16384&&(f=l.tag!==22?ct():536870912,l.lanes|=f,Ic|=f)}function Ki(l,f){if(!kn)switch(l.tailMode){case"hidden":f=l.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?l.tail=null:m.sibling=null;break;case"collapsed":m=l.tail;for(var v=null;m!==null;)m.alternate!==null&&(v=m),m=m.sibling;v===null?f||l.tail===null?l.tail=null:l.tail.sibling=null:v.sibling=null}}function Sr(l){var f=l.alternate!==null&&l.alternate.child===l.child,m=0,v=0;if(f)for(var A=l.child;A!==null;)m|=A.lanes|A.childLanes,v|=A.subtreeFlags&65011712,v|=A.flags&65011712,A.return=l,A=A.sibling;else for(A=l.child;A!==null;)m|=A.lanes|A.childLanes,v|=A.subtreeFlags,v|=A.flags,A.return=l,A=A.sibling;return l.subtreeFlags|=v,l.childLanes=m,f}function Br(l,f,m){var v=f.pendingProps;switch(r0(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(f),null;case 1:return Sr(f),null;case 3:return m=f.stateNode,v=null,l!==null&&(v=l.memoizedState.cache),f.memoizedState.cache!==v&&(f.flags|=2048),la(Wr),Xe(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(l===null||l.child===null)&&(Ss(f)?Ns(f):l===null||l.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,l1())),Sr(f),null;case 26:var A=f.type,O=f.memoizedState;return l===null?(Ns(f),O!==null?(Sr(f),eE(f,O)):(Sr(f),P1(f,A,null,v,m))):O?O!==l.memoizedState?(Ns(f),Sr(f),eE(f,O)):(Sr(f),f.flags&=-16777217):(l=l.memoizedProps,l!==v&&Ns(f),Sr(f),P1(f,A,l,v,m)),null;case 27:if(et(f),m=_e.current,A=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==v&&Ns(f);else{if(!v){if(f.stateNode===null)throw Error(i(166));return Sr(f),null}l=Re.current,Ss(f)?i0(f):(l=Vl(A,v,m),f.stateNode=l,Ns(f))}return Sr(f),null;case 5:if(et(f),A=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==v&&Ns(f);else{if(!v){if(f.stateNode===null)throw Error(i(166));return Sr(f),null}if(O=Re.current,Ss(f))i0(f);else{var j=rm(_e.current);switch(O){case 1:O=j.createElementNS("http://www.w3.org/2000/svg",A);break;case 2:O=j.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;default:switch(A){case"svg":O=j.createElementNS("http://www.w3.org/2000/svg",A);break;case"math":O=j.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;case"script":O=j.createElement("div"),O.innerHTML="<script><\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof v.is=="string"?j.createElement("select",{is:v.is}):j.createElement("select"),v.multiple?O.multiple=!0:v.size&&(O.size=v.size);break;default:O=typeof v.is=="string"?j.createElement(A,{is:v.is}):j.createElement(A)}}O[pi]=f,O[Or]=v;e:for(j=f.child;j!==null;){if(j.tag===5||j.tag===6)O.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===f)break e;for(;j.sibling===null;){if(j.return===null||j.return===f)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}f.stateNode=O;e:switch(Zi(O,A,v),A){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&Ns(f)}}return Sr(f),P1(f,f.type,l===null?null:l.memoizedProps,f.pendingProps,m),null;case 6:if(l&&f.stateNode!=null)l.memoizedProps!==v&&Ns(f);else{if(typeof v!="string"&&f.stateNode===null)throw Error(i(166));if(l=_e.current,Ss(f)){if(l=f.stateNode,m=f.memoizedProps,v=null,A=mi,A!==null)switch(A.tag){case 27:case 5:v=A.memoizedProps}l[pi]=f,l=!!(l.nodeValue===m||v!==null&&v.suppressHydrationWarning===!0||Cx(l.nodeValue,m)),l||Oa(f,!0)}else l=rm(l).createTextNode(v),l[pi]=f,f.stateNode=l}return Sr(f),null;case 31:if(m=f.memoizedState,l===null||l.memoizedState!==null){if(v=Ss(f),m!==null){if(l===null){if(!v)throw Error(i(318));if(l=f.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(557));l[pi]=f}else Ml(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Sr(f),l=!1}else m=l1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=m),l=!0;if(!l)return f.flags&256?(ca(f),f):(ca(f),null);if((f.flags&128)!==0)throw Error(i(558))}return Sr(f),null;case 13:if(v=f.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(A=Ss(f),v!==null&&v.dehydrated!==null){if(l===null){if(!A)throw Error(i(318));if(A=f.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));A[pi]=f}else Ml(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Sr(f),A=!1}else A=l1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=A),A=!0;if(!A)return f.flags&256?(ca(f),f):(ca(f),null)}return ca(f),(f.flags&128)!==0?(f.lanes=m,f):(m=v!==null,l=l!==null&&l.memoizedState!==null,m&&(v=f.child,A=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(A=v.alternate.memoizedState.cachePool.pool),O=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(O=v.memoizedState.cachePool.pool),O!==A&&(v.flags|=2048)),m!==l&&m&&(f.child.flags|=8192),Lp(f,f.updateQueue),Sr(f),null);case 4:return Xe(),l===null&&wx(f.stateNode.containerInfo),Sr(f),null;case 10:return la(f.type),Sr(f),null;case 19:if(ee(Lr),v=f.memoizedState,v===null)return Sr(f),null;if(A=(f.flags&128)!==0,O=v.rendering,O===null)if(A)Ki(v,!1);else{if(Nr!==0||l!==null&&(l.flags&128)!==0)for(l=f.child;l!==null;){if(O=Pf(l),O!==null){for(f.flags|=128,Ki(v,!1),l=O.updateQueue,f.updateQueue=l,Lp(f,l),f.subtreeFlags=0,l=m,m=f.child;m!==null;)H6(m,l),m=m.sibling;return Y(Lr,Lr.current&1|2),kn&&vs(f,v.treeForkCount),f.child}l=l.sibling}v.tail!==null&&Bt()>Gp&&(f.flags|=128,A=!0,Ki(v,!1),f.lanes=4194304)}else{if(!A)if(l=Pf(O),l!==null){if(f.flags|=128,A=!0,l=l.updateQueue,f.updateQueue=l,Lp(f,l),Ki(v,!0),v.tail===null&&v.tailMode==="hidden"&&!O.alternate&&!kn)return Sr(f),null}else 2*Bt()-v.renderingStartTime>Gp&&m!==536870912&&(f.flags|=128,A=!0,Ki(v,!1),f.lanes=4194304);v.isBackwards?(O.sibling=f.child,f.child=O):(l=v.last,l!==null?l.sibling=O:f.child=O,v.last=O)}return v.tail!==null?(l=v.tail,v.rendering=l,v.tail=l.sibling,v.renderingStartTime=Bt(),l.sibling=null,m=Lr.current,Y(Lr,A?m&1|2:m&1),kn&&vs(f,v.treeForkCount),l):(Sr(f),null);case 22:case 23:return ca(f),gp(),v=f.memoizedState!==null,l!==null?l.memoizedState!==null!==v&&(f.flags|=8192):v&&(f.flags|=8192),v?(m&536870912)!==0&&(f.flags&128)===0&&(Sr(f),f.subtreeFlags&6&&(f.flags|=8192)):Sr(f),m=f.updateQueue,m!==null&&Lp(f,m.retryQueue),m=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),v=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==m&&(f.flags|=2048),l!==null&&ee(eo),null;case 24:return m=null,l!==null&&(m=l.memoizedState.cache),f.memoizedState.cache!==m&&(f.flags|=2048),la(Wr),Sr(f),null;case 25:return null;case 30:return null}throw Error(i(156,f.tag))}function tE(l,f){switch(r0(f),f.tag){case 1:return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 3:return la(Wr),Xe(),l=f.flags,(l&65536)!==0&&(l&128)===0?(f.flags=l&-65537|128,f):null;case 26:case 27:case 5:return et(f),null;case 31:if(f.memoizedState!==null){if(ca(f),f.alternate===null)throw Error(i(340));Ml()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 13:if(ca(f),l=f.memoizedState,l!==null&&l.dehydrated!==null){if(f.alternate===null)throw Error(i(340));Ml()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 19:return ee(Lr),null;case 4:return Xe(),null;case 10:return la(f.type),null;case 22:case 23:return ca(f),gp(),l!==null&&ee(eo),l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 24:return la(Wr),null;case 25:return null;default:return null}}function J4(l,f){switch(r0(f),f.tag){case 3:la(Wr),Xe();break;case 26:case 27:case 5:et(f);break;case 4:Xe();break;case 31:f.memoizedState!==null&&ca(f);break;case 13:ca(f);break;case 19:ee(Lr);break;case 10:la(f.type);break;case 22:case 23:ca(f),gp(),l!==null&&ee(eo);break;case 24:la(Wr)}}function Vp(l,f){try{var m=f.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var A=v.next;m=A;do{if((m.tag&l)===l){v=void 0;var O=m.create,j=m.inst;v=O(),j.destroy=v}m=m.next}while(m!==A)}}catch(ne){ir(f,f.return,ne)}}function Ma(l,f,m){try{var v=f.updateQueue,A=v!==null?v.lastEffect:null;if(A!==null){var O=A.next;v=O;do{if((v.tag&l)===l){var j=v.inst,ne=j.destroy;if(ne!==void 0){j.destroy=void 0,A=f;var ve=m,ze=ne;try{ze()}catch(qe){ir(A,ve,qe)}}}v=v.next}while(v!==O)}}catch(qe){ir(f,f.return,qe)}}function Wf(l){var f=l.updateQueue;if(f!==null){var m=l.stateNode;try{g1(f,m)}catch(v){ir(l,l.return,v)}}}function U1(l,f,m){m.props=Yf(l.type,l.memoizedProps),m.state=l.memoizedState;try{m.componentWillUnmount()}catch(v){ir(l,f,v)}}function zl(l,f){try{var m=l.ref;if(m!==null){switch(l.tag){case 26:case 27:case 5:var v=l.stateNode;break;case 30:v=l.stateNode;break;default:v=l.stateNode}typeof m=="function"?l.refCleanup=m(v):m.current=v}}catch(A){ir(l,f,A)}}function _a(l,f){var m=l.ref,v=l.refCleanup;if(m!==null)if(typeof v=="function")try{v()}catch(A){ir(l,f,A)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(A){ir(l,f,A)}else m.current=null}function ex(l){var f=l.type,m=l.memoizedProps,v=l.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":m.autoFocus&&v.focus();break e;case"img":m.src?v.src=m.src:m.srcSet&&(v.srcset=m.srcSet)}}catch(A){ir(l,l.return,A)}}function $1(l,f,m){try{var v=l.stateNode;K8(v,l.type,m,f),v[Or]=f}catch(A){ir(l,l.return,A)}}function tx(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Ps(l.type)||l.tag===4}function H1(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||tx(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Ps(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function S0(l,f,m){var v=l.tag;if(v===5||v===6)l=l.stateNode,f?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(l,f):(f=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,f.appendChild(l),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=Gi));else if(v!==4&&(v===27&&Ps(l.type)&&(m=l.stateNode,f=null),l=l.child,l!==null))for(S0(l,f,m),l=l.sibling;l!==null;)S0(l,f,m),l=l.sibling}function Qf(l,f,m){var v=l.tag;if(v===5||v===6)l=l.stateNode,f?m.insertBefore(l,f):m.appendChild(l);else if(v!==4&&(v===27&&Ps(l.type)&&(m=l.stateNode),l=l.child,l!==null))for(Qf(l,f,m),l=l.sibling;l!==null;)Qf(l,f,m),l=l.sibling}function q1(l){var f=l.stateNode,m=l.memoizedProps;try{for(var v=l.type,A=f.attributes;A.length;)f.removeAttributeNode(A[0]);Zi(f,v,m),f[pi]=l,f[Or]=m}catch(O){ir(l,l.return,O)}}var ks=!1,gi=!1,nx=!1,rx=typeof WeakSet=="function"?WeakSet:Set,Ei=null;function X8(l,f){if(l=l.containerInfo,nm=Iu,l=_f(l),gu(l)){if("selectionStart"in l)var m={start:l.selectionStart,end:l.selectionEnd};else e:{m=(m=l.ownerDocument)&&m.defaultView||window;var v=m.getSelection&&m.getSelection();if(v&&v.rangeCount!==0){m=v.anchorNode;var A=v.anchorOffset,O=v.focusNode;v=v.focusOffset;try{m.nodeType,O.nodeType}catch{m=null;break e}var j=0,ne=-1,ve=-1,ze=0,qe=0,Ke=l,Ie=null;t:for(;;){for(var Ue;Ke!==m||A!==0&&Ke.nodeType!==3||(ne=j+A),Ke!==O||v!==0&&Ke.nodeType!==3||(ve=j+v),Ke.nodeType===3&&(j+=Ke.nodeValue.length),(Ue=Ke.firstChild)!==null;)Ie=Ke,Ke=Ue;for(;;){if(Ke===l)break t;if(Ie===m&&++ze===A&&(ne=j),Ie===O&&++qe===v&&(ve=j),(Ue=Ke.nextSibling)!==null)break;Ke=Ie,Ie=Ke.parentNode}Ke=Ue}m=ne===-1||ve===-1?null:{start:ne,end:ve}}else m=null}m=m||{start:0,end:0}}else m=null;for(uy={focusedElem:l,selectionRange:m},Iu=!1,Ei=f;Ei!==null;)if(f=Ei,l=f.child,(f.subtreeFlags&1028)!==0&&l!==null)l.return=f,Ei=l;else for(;Ei!==null;){switch(f=Ei,O=f.alternate,l=f.flags,f.tag){case 0:if((l&4)!==0&&(l=f.updateQueue,l=l!==null?l.events:null,l!==null))for(m=0;m<l.length;m++)A=l[m],A.ref.impl=A.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&O!==null){l=void 0,m=f,A=O.memoizedProps,O=O.memoizedState,v=m.stateNode;try{var Rt=Yf(m.type,A);l=v.getSnapshotBeforeUpdate(Rt,O),v.__reactInternalSnapshotBeforeUpdate=l}catch(Ht){ir(m,m.return,Ht)}}break;case 3:if((l&1024)!==0){if(l=f.stateNode.containerInfo,m=l.nodeType,m===9)Zr(l);else if(m===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Zr(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(i(163))}if(l=f.sibling,l!==null){l.return=f.return,Ei=l;break}Ei=f.return}}function Kf(l,f,m){var v=m.flags;switch(m.tag){case 0:case 11:case 15:Is(l,m),v&4&&Vp(5,m);break;case 1:if(Is(l,m),v&4)if(l=m.stateNode,f===null)try{l.componentDidMount()}catch(j){ir(m,m.return,j)}else{var A=Yf(m.type,f.memoizedProps);f=f.memoizedState;try{l.componentDidUpdate(A,f,l.__reactInternalSnapshotBeforeUpdate)}catch(j){ir(m,m.return,j)}}v&64&&Wf(m),v&512&&zl(m,m.return);break;case 3:if(Is(l,m),v&64&&(l=m.updateQueue,l!==null)){if(f=null,m.child!==null)switch(m.child.tag){case 27:case 5:f=m.child.stateNode;break;case 1:f=m.child.stateNode}try{g1(l,f)}catch(j){ir(m,m.return,j)}}break;case 27:f===null&&v&4&&q1(m);case 26:case 5:Is(l,m),f===null&&v&4&&ex(m),v&512&&zl(m,m.return);break;case 12:Is(l,m);break;case 31:Is(l,m),v&4&&ax(l,m);break;case 13:Is(l,m),v&4&&nE(l,m),v&64&&(l=m.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(m=Q8.bind(null,m),k0(l,m))));break;case 22:if(v=m.memoizedState!==null||ks,!v){f=f!==null&&f.memoizedState!==null||gi,A=ks;var O=gi;ks=v,(gi=f)&&!O?Ru(l,m,(m.subtreeFlags&8772)!==0):Is(l,m),ks=A,gi=O}break;case 30:break;default:Is(l,m)}}function Bp(l){var f=l.alternate;f!==null&&(l.alternate=null,Bp(f)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(f=l.stateNode,f!==null&&dc(f)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var Rr=null,fa=!1;function zs(l,f,m){for(m=m.child;m!==null;)ix(l,f,m),m=m.sibling}function ix(l,f,m){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Nt,m)}catch{}switch(m.tag){case 26:gi||_a(m,f),zs(l,f,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:gi||_a(m,f);var v=Rr,A=fa;Ps(m.type)&&(Rr=m.stateNode,fa=!1),zs(l,f,m),Nu(m.stateNode),Rr=v,fa=A;break;case 5:gi||_a(m,f);case 6:if(v=Rr,A=fa,Rr=null,zs(l,f,m),Rr=v,fa=A,Rr!==null)if(fa)try{(Rr.nodeType===9?Rr.body:Rr.nodeName==="HTML"?Rr.ownerDocument.body:Rr).removeChild(m.stateNode)}catch(O){ir(m,f,O)}else try{Rr.removeChild(m.stateNode)}catch(O){ir(m,f,O)}break;case 18:Rr!==null&&(fa?(l=Rr,im(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,m.stateNode),B0(l)):im(Rr,m.stateNode));break;case 4:v=Rr,A=fa,Rr=m.stateNode.containerInfo,fa=!0,zs(l,f,m),Rr=v,fa=A;break;case 0:case 11:case 14:case 15:Ma(2,m,f),gi||Ma(4,m,f),zs(l,f,m);break;case 1:gi||(_a(m,f),v=m.stateNode,typeof v.componentWillUnmount=="function"&&U1(m,f,v)),zs(l,f,m);break;case 21:zs(l,f,m);break;case 22:gi=(v=gi)||m.memoizedState!==null,zs(l,f,m),gi=v;break;default:zs(l,f,m)}}function ax(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{B0(l)}catch(m){ir(f,f.return,m)}}}function nE(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{B0(l)}catch(m){ir(f,f.return,m)}}function rE(l){switch(l.tag){case 31:case 13:case 19:var f=l.stateNode;return f===null&&(f=l.stateNode=new rx),f;case 22:return l=l.stateNode,f=l._retryCache,f===null&&(f=l._retryCache=new rx),f;default:throw Error(i(435,l.tag))}}function kc(l,f){var m=rE(l);f.forEach(function(v){if(!m.has(v)){m.add(v);var A=_o.bind(null,l,v);v.then(A,A)}})}function Da(l,f){var m=f.deletions;if(m!==null)for(var v=0;v<m.length;v++){var A=m[v],O=l,j=f,ne=j;e:for(;ne!==null;){switch(ne.tag){case 27:if(Ps(ne.type)){Rr=ne.stateNode,fa=!1;break e}break;case 5:Rr=ne.stateNode,fa=!1;break e;case 3:case 4:Rr=ne.stateNode.containerInfo,fa=!0;break e}ne=ne.return}if(Rr===null)throw Error(i(160));ix(O,j,A),Rr=null,fa=!1,O=A.alternate,O!==null&&(O.return=null),A.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)Yn(f,l),f=f.sibling}var nl=null;function Yn(l,f){var m=l.alternate,v=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Da(f,l),da(l),v&4&&(Ma(3,l,l.return),Vp(3,l),Ma(5,l,l.return));break;case 1:Da(f,l),da(l),v&512&&(gi||m===null||_a(m,m.return)),v&64&&ks&&(l=l.updateQueue,l!==null&&(v=l.callbacks,v!==null&&(m=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=m===null?v:m.concat(v))));break;case 26:var A=nl;if(Da(f,l),da(l),v&512&&(gi||m===null||_a(m,m.return)),v&4){var O=m!==null?m.memoizedState:null;if(v=l.memoizedState,m===null)if(v===null)if(l.stateNode===null){e:{v=l.type,m=l.memoizedProps,A=A.ownerDocument||A;t:switch(v){case"title":O=A.getElementsByTagName("title")[0],(!O||O[Fd]||O[pi]||O.namespaceURI==="http://www.w3.org/2000/svg"||O.hasAttribute("itemprop"))&&(O=A.createElement(v),A.head.insertBefore(O,A.querySelector("head > title"))),Zi(O,v,m),O[pi]=l,Si(O),v=O;break e;case"link":var j=yy("link","href",A).get(v+(m.href||""));if(j){for(var ne=0;ne<j.length;ne++)if(O=j[ne],O.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&O.getAttribute("rel")===(m.rel==null?null:m.rel)&&O.getAttribute("title")===(m.title==null?null:m.title)&&O.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){j.splice(ne,1);break t}}O=A.createElement(v),Zi(O,v,m),A.head.appendChild(O);break;case"meta":if(j=yy("meta","content",A).get(v+(m.content||""))){for(ne=0;ne<j.length;ne++)if(O=j[ne],O.getAttribute("content")===(m.content==null?null:""+m.content)&&O.getAttribute("name")===(m.name==null?null:m.name)&&O.getAttribute("property")===(m.property==null?null:m.property)&&O.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&O.getAttribute("charset")===(m.charSet==null?null:m.charSet)){j.splice(ne,1);break t}}O=A.createElement(v),Zi(O,v,m),A.head.appendChild(O);break;default:throw Error(i(468,v))}O[pi]=l,Si(O),v=O}l.stateNode=v}else Vx(A,l.type,l.stateNode);else l.stateNode=Lx(A,v,l.memoizedProps);else O!==v?(O===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):O.count--,v===null?Vx(A,l.type,l.stateNode):Lx(A,v,l.memoizedProps)):v===null&&l.stateNode!==null&&$1(l,l.memoizedProps,m.memoizedProps)}break;case 27:Da(f,l),da(l),v&512&&(gi||m===null||_a(m,m.return)),m!==null&&v&4&&$1(l,l.memoizedProps,m.memoizedProps);break;case 5:if(Da(f,l),da(l),v&512&&(gi||m===null||_a(m,m.return)),l.flags&32){A=l.stateNode;try{Ef(A,"")}catch(Rt){ir(l,l.return,Rt)}}v&4&&l.stateNode!=null&&(A=l.memoizedProps,$1(l,A,m!==null?m.memoizedProps:A)),v&1024&&(nx=!0);break;case 6:if(Da(f,l),da(l),v&4){if(l.stateNode===null)throw Error(i(162));v=l.memoizedProps,m=l.stateNode;try{m.nodeValue=v}catch(Rt){ir(l,l.return,Rt)}}break;case 3:if(sm=null,A=nl,nl=ad(f.containerInfo),Da(f,l),nl=A,da(l),v&4&&m!==null&&m.memoizedState.isDehydrated)try{B0(f.containerInfo)}catch(Rt){ir(l,l.return,Rt)}nx&&(nx=!1,iE(l));break;case 4:v=nl,nl=ad(l.stateNode.containerInfo),Da(f,l),da(l),nl=v;break;case 12:Da(f,l),da(l);break;case 31:Da(f,l),da(l),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,kc(l,v)));break;case 13:Da(f,l),da(l),l.child.flags&8192&&l.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(qp=Bt()),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,kc(l,v)));break;case 22:A=l.memoizedState!==null;var ve=m!==null&&m.memoizedState!==null,ze=ks,qe=gi;if(ks=ze||A,gi=qe||ve,Da(f,l),gi=qe,ks=ze,da(l),v&8192)e:for(f=l.stateNode,f._visibility=A?f._visibility&-2:f._visibility|1,A&&(m===null||ve||ks||gi||Zf(l)),m=null,f=l;;){if(f.tag===5||f.tag===26){if(m===null){ve=m=f;try{if(O=ve.stateNode,A)j=O.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{ne=ve.stateNode;var Ke=ve.memoizedProps.style,Ie=Ke!=null&&Ke.hasOwnProperty("display")?Ke.display:null;ne.style.display=Ie==null||typeof Ie=="boolean"?"":(""+Ie).trim()}}catch(Rt){ir(ve,ve.return,Rt)}}}else if(f.tag===6){if(m===null){ve=f;try{ve.stateNode.nodeValue=A?"":ve.memoizedProps}catch(Rt){ir(ve,ve.return,Rt)}}}else if(f.tag===18){if(m===null){ve=f;try{var Ue=ve.stateNode;A?_x(Ue,!0):_x(ve.stateNode,!1)}catch(Rt){ir(ve,ve.return,Rt)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===l)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break e;for(;f.sibling===null;){if(f.return===null||f.return===l)break e;m===f&&(m=null),f=f.return}m===f&&(m=null),f.sibling.return=f.return,f=f.sibling}v&4&&(v=l.updateQueue,v!==null&&(m=v.retryQueue,m!==null&&(v.retryQueue=null,kc(l,m))));break;case 19:Da(f,l),da(l),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,kc(l,v)));break;case 30:break;case 21:break;default:Da(f,l),da(l)}}function da(l){var f=l.flags;if(f&2){try{for(var m,v=l.return;v!==null;){if(tx(v)){m=v;break}v=v.return}if(m==null)throw Error(i(160));switch(m.tag){case 27:var A=m.stateNode,O=H1(l);Qf(l,O,A);break;case 5:var j=m.stateNode;m.flags&32&&(Ef(j,""),m.flags&=-33);var ne=H1(l);Qf(l,ne,j);break;case 3:case 4:var ve=m.stateNode.containerInfo,ze=H1(l);S0(l,ze,ve);break;default:throw Error(i(161))}}catch(qe){ir(l,l.return,qe)}l.flags&=-3}f&4096&&(l.flags&=-4097)}function iE(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var f=l;iE(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),l=l.sibling}}function Is(l,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)Kf(l,f.alternate,f),f=f.sibling}function Zf(l){for(l=l.child;l!==null;){var f=l;switch(f.tag){case 0:case 11:case 14:case 15:Ma(4,f,f.return),Zf(f);break;case 1:_a(f,f.return);var m=f.stateNode;typeof m.componentWillUnmount=="function"&&U1(f,f.return,m),Zf(f);break;case 27:Nu(f.stateNode);case 26:case 5:_a(f,f.return),Zf(f);break;case 22:f.memoizedState===null&&Zf(f);break;case 30:Zf(f);break;default:Zf(f)}l=l.sibling}}function Ru(l,f,m){for(m=m&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var v=f.alternate,A=l,O=f,j=O.flags;switch(O.tag){case 0:case 11:case 15:Ru(A,O,m),Vp(4,O);break;case 1:if(Ru(A,O,m),v=O,A=v.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(ze){ir(v,v.return,ze)}if(v=O,A=v.updateQueue,A!==null){var ne=v.stateNode;try{var ve=A.shared.hiddenCallbacks;if(ve!==null)for(A.shared.hiddenCallbacks=null,A=0;A<ve.length;A++)jf(ve[A],ne)}catch(ze){ir(v,v.return,ze)}}m&&j&64&&Wf(O),zl(O,O.return);break;case 27:q1(O);case 26:case 5:Ru(A,O,m),m&&v===null&&j&4&&ex(O),zl(O,O.return);break;case 12:Ru(A,O,m);break;case 31:Ru(A,O,m),m&&j&4&&ax(A,O);break;case 13:Ru(A,O,m),m&&j&4&&nE(A,O);break;case 22:O.memoizedState===null&&Ru(A,O,m),zl(O,O.return);break;case 30:break;default:Ru(A,O,m)}f=f.sibling}}function jp(l,f){var m=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),l=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(l=f.memoizedState.cachePool.pool),l!==m&&(l!=null&&l.refCount++,m!=null&&Lf(m))}function G1(l,f){l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&Lf(l))}function rl(l,f,m,v){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)ox(l,f,m,v),f=f.sibling}function ox(l,f,m,v){var A=f.flags;switch(f.tag){case 0:case 11:case 15:rl(l,f,m,v),A&2048&&Vp(9,f);break;case 1:rl(l,f,m,v);break;case 3:rl(l,f,m,v),A&2048&&(l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&Lf(l)));break;case 12:if(A&2048){rl(l,f,m,v),l=f.stateNode;try{var O=f.memoizedProps,j=O.id,ne=O.onPostCommit;typeof ne=="function"&&ne(j,f.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(ve){ir(f,f.return,ve)}}else rl(l,f,m,v);break;case 31:rl(l,f,m,v);break;case 13:rl(l,f,m,v);break;case 23:break;case 22:O=f.stateNode,j=f.alternate,f.memoizedState!==null?O._visibility&2?rl(l,f,m,v):Pp(l,f):O._visibility&2?rl(l,f,m,v):(O._visibility|=2,Ls(l,f,m,v,(f.subtreeFlags&10256)!==0||!1)),A&2048&&jp(j,f);break;case 24:rl(l,f,m,v),A&2048&&G1(f.alternate,f);break;default:rl(l,f,m,v)}}function Ls(l,f,m,v,A){for(A=A&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var O=l,j=f,ne=m,ve=v,ze=j.flags;switch(j.tag){case 0:case 11:case 15:Ls(O,j,ne,ve,A),Vp(8,j);break;case 23:break;case 22:var qe=j.stateNode;j.memoizedState!==null?qe._visibility&2?Ls(O,j,ne,ve,A):Pp(O,j):(qe._visibility|=2,Ls(O,j,ne,ve,A)),A&&ze&2048&&jp(j.alternate,j);break;case 24:Ls(O,j,ne,ve,A),A&&ze&2048&&G1(j.alternate,j);break;default:Ls(O,j,ne,ve,A)}f=f.sibling}}function Pp(l,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var m=l,v=f,A=v.flags;switch(v.tag){case 22:Pp(m,v),A&2048&&jp(v.alternate,v);break;case 24:Pp(m,v),A&2048&&G1(v.alternate,v);break;default:Pp(m,v)}f=f.sibling}}var Up=8192;function Na(l,f,m){if(l.subtreeFlags&Up)for(l=l.child;l!==null;)E0(l,f,m),l=l.sibling}function E0(l,f,m){switch(l.tag){case 26:Na(l,f,m),l.flags&Up&&l.memoizedState!==null&&Do(m,nl,l.memoizedState,l.memoizedProps);break;case 5:Na(l,f,m);break;case 3:case 4:var v=nl;nl=ad(l.stateNode.containerInfo),Na(l,f,m),nl=v;break;case 22:l.memoizedState===null&&(v=l.alternate,v!==null&&v.memoizedState!==null?(v=Up,Up=16777216,Na(l,f,m),Up=v):Na(l,f,m));break;default:Na(l,f,m)}}function aE(l){var f=l.alternate;if(f!==null&&(l=f.child,l!==null)){f.child=null;do f=l.sibling,l.sibling=null,l=f;while(l!==null)}}function Jf(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var v=f[m];Ei=v,sx(v,l)}aE(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)lx(l),l=l.sibling}function lx(l){switch(l.tag){case 0:case 11:case 15:Jf(l),l.flags&2048&&Ma(9,l,l.return);break;case 3:Jf(l);break;case 12:Jf(l);break;case 22:var f=l.stateNode;l.memoizedState!==null&&f._visibility&2&&(l.return===null||l.return.tag!==13)?(f._visibility&=-3,$p(l)):Jf(l);break;default:Jf(l)}}function $p(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var v=f[m];Ei=v,sx(v,l)}aE(l)}for(l=l.child;l!==null;){switch(f=l,f.tag){case 0:case 11:case 15:Ma(8,f,f.return),$p(f);break;case 22:m=f.stateNode,m._visibility&2&&(m._visibility&=-3,$p(f));break;default:$p(f)}l=l.sibling}}function sx(l,f){for(;Ei!==null;){var m=Ei;switch(m.tag){case 0:case 11:case 15:Ma(8,m,f);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var v=m.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Lf(m.memoizedState.cache)}if(v=m.child,v!==null)v.return=m,Ei=v;else e:for(m=l;Ei!==null;){v=Ei;var A=v.sibling,O=v.return;if(Bp(v),v===m){Ei=null;break e}if(A!==null){A.return=O,Ei=A;break e}Ei=O}}}var ux={getCacheForType:function(l){var f=Vt(Wr),m=f.data.get(l);return m===void 0&&(m=l(),f.data.set(l,m)),m},cacheSignal:function(){return Vt(Wr).controller.signal}},oE=typeof WeakMap=="function"?WeakMap:Map,Hn=0,dr=null,On=null,zn=0,Xn=0,io=null,sn=!1,zc=!1,Hp=!1,Vs=0,Nr=0,il=0,Bs=0,cx=0,ao=0,Ic=0,Kr=null,oo=null,al=!1,qp=0,Mu=0,Gp=1/0,Qn=null,js=null,jn=0,Lc=null,ed=null,Il=0,F1=0,lo=null,fx=null,td=0,Y1=null;function ka(){return(Hn&2)!==0&&zn!==0?zn&-zn:Z.T!==null?nd():E6()}function dx(){if(ao===0)if((zn&536870912)===0||kn){var l=tt;tt<<=1,(tt&3932160)===0&&(tt=262144),ao=l}else ao=536870912;return l=ua.current,l!==null&&(l.flags|=32),ao}function so(l,f,m){(l===dr&&(Xn===2||Xn===9)||l.cancelPendingCommit!==null)&&(w0(l,0),_u(l,zn,ao,!1)),oi(l,m),((Hn&2)===0||l!==dr)&&(l===dr&&((Hn&2)===0&&(Bs|=m),Nr===4&&_u(l,zn,ao,!1)),Ll(l))}function hx(l,f,m){if((Hn&6)!==0)throw Error(i(327));var v=!m&&(f&127)===0&&(f&l.expiredLanes)===0||vt(l,f),A=v?W8(l,f):px(l,f,!0),O=v;do{if(A===0){zc&&!v&&_u(l,f,0,!1);break}else{if(m=l.current.alternate,O&&!X1(m)){A=px(l,f,!1),O=!1;continue}if(A===2){if(O=f,l.errorRecoveryDisabledLanes&O)var j=0;else j=l.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){f=j;e:{var ne=l;A=Kr;var ve=ne.current.memoizedState.isDehydrated;if(ve&&(w0(ne,j).flags|=256),j=px(ne,j,!1),j!==2){if(Hp&&!ve){ne.errorRecoveryDisabledLanes|=O,Bs|=O,A=4;break e}O=oo,oo=A,O!==null&&(oo===null?oo=O:oo.push.apply(oo,O))}A=j}if(O=!1,A!==2)continue}}if(A===1){w0(l,0),_u(l,f,0,!0);break}e:{switch(v=l,O=A,O){case 0:case 1:throw Error(i(345));case 4:if((f&4194048)!==f)break;case 6:_u(v,f,ao,!sn);break e;case 2:oo=null;break;case 3:case 5:break;default:throw Error(i(329))}if((f&62914560)===f&&(A=qp+300-Bt(),10<A)){if(_u(v,f,ao,!sn),wt(v,0,!0)!==0)break e;Il=f,v.timeoutHandle=CE(lE.bind(null,v,m,oo,Qn,al,f,ao,Bs,Ic,sn,O,"Throttled",-0,0),A);break e}lE(v,m,oo,Qn,al,f,ao,Bs,Ic,sn,O,null,-0,0)}}break}while(!0);Ll(l)}function lE(l,f,m,v,A,O,j,ne,ve,ze,qe,Ke,Ie,Ue){if(l.timeoutHandle=-1,Ke=f.subtreeFlags,Ke&8192||(Ke&16785408)===16785408){Ke={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gi},E0(f,O,Ke);var Rt=(O&62914560)===O?qp-Bt():(O&4194048)===O?Mu-Bt():0;if(Rt=Bl(Ke,Rt),Rt!==null){Il=O,l.cancelPendingCommit=Rt(hE.bind(null,l,f,O,m,v,A,j,ne,ve,qe,Ke,null,Ie,Ue)),_u(l,O,j,!ze);return}}hE(l,f,O,m,v,A,j,ne,ve)}function X1(l){for(var f=l;;){var m=f.tag;if((m===0||m===11||m===15)&&f.flags&16384&&(m=f.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var v=0;v<m.length;v++){var A=m[v],O=A.getSnapshot;A=A.value;try{if(!Xa(O(),A))return!1}catch{return!1}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function _u(l,f,m,v){f&=~cx,f&=~Bs,l.suspendedLanes|=f,l.pingedLanes&=~f,v&&(l.warmLanes|=f),v=l.expirationTimes;for(var A=f;0<A;){var O=31-bn(A),j=1<<O;v[O]=-1,A&=~j}m!==0&&mf(l,m,f)}function Fp(){return(Hn&6)===0?(Qp(0),!1):!0}function Yp(){if(On!==null){if(Xn===0)var l=On.return;else l=On,_l=Ec=null,$f(l),Rc=null,Vf=0,l=On;for(;l!==null;)J4(l.alternate,l),l=l.return;On=null}}function w0(l,f){var m=l.timeoutHandle;m!==-1&&(l.timeoutHandle=-1,fy(m)),m=l.cancelPendingCommit,m!==null&&(l.cancelPendingCommit=null,m()),Il=0,Yp(),dr=l,On=m=Ao(l.current,null),zn=f,Xn=0,io=null,sn=!1,zc=vt(l,f),Hp=!1,Ic=ao=cx=Bs=il=Nr=0,oo=Kr=null,al=!1,(f&8)!==0&&(f|=f&32);var v=l.entangledLanes;if(v!==0)for(l=l.entanglements,v&=f;0<v;){var A=31-bn(v),O=1<<A;f|=l[A],v&=~O}return Vs=f,wo(),m}function T0(l,f){cn=null,Z.H=y0,f===Dl||f===Ac?(f=y4(),Xn=3):f===cp?(f=y4(),Xn=4):Xn=f===G4?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,io=f,On===null&&(Nr=1,v0(l,Co(f,l.current)))}function A0(){var l=ua.current;return l===null?!0:(zn&4194048)===zn?no===null:(zn&62914560)===zn||(zn&536870912)!==0?l===no:!1}function sE(){var l=Z.H;return Z.H=y0,l===null?y0:l}function uE(){var l=Z.A;return Z.A=ux,l}function W1(){Nr=4,sn||(zn&4194048)!==zn&&ua.current!==null||(zc=!0),(il&134217727)===0&&(Bs&134217727)===0||dr===null||_u(dr,zn,ao,!1)}function px(l,f,m){var v=Hn;Hn|=2;var A=sE(),O=uE();(dr!==l||zn!==f)&&(Qn=null,w0(l,f)),f=!1;var j=Nr;e:do try{if(Xn!==0&&On!==null){var ne=On,ve=io;switch(Xn){case 8:Yp(),j=6;break e;case 3:case 2:case 9:case 6:ua.current===null&&(f=!0);var ze=Xn;if(Xn=0,io=null,C0(l,ne,ve,ze),m&&zc){j=0;break e}break;default:ze=Xn,Xn=0,io=null,C0(l,ne,ve,ze)}}cE(),j=Nr;break}catch(qe){T0(l,qe)}while(!0);return f&&l.shellSuspendCounter++,_l=Ec=null,Hn=v,Z.H=A,Z.A=O,On===null&&(dr=null,zn=0,wo()),j}function cE(){for(;On!==null;)Du(On)}function W8(l,f){var m=Hn;Hn|=2;var v=sE(),A=uE();dr!==l||zn!==f?(Qn=null,Gp=Bt()+500,w0(l,f)):zc=vt(l,f);e:do try{if(Xn!==0&&On!==null){f=On;var O=io;t:switch(Xn){case 1:Xn=0,io=null,C0(l,f,O,1);break;case 2:case 9:if(fp(O)){Xn=0,io=null,dE(f);break}f=function(){Xn!==2&&Xn!==9||dr!==l||(Xn=7),Ll(l)},O.then(f,f);break e;case 3:Xn=7;break e;case 4:Xn=5;break e;case 7:fp(O)?(Xn=0,io=null,dE(f)):(Xn=0,io=null,C0(l,f,O,7));break;case 5:var j=null;switch(On.tag){case 26:j=On.memoizedState;case 5:case 27:var ne=On;if(j?vy(j):ne.stateNode.complete){Xn=0,io=null;var ve=ne.sibling;if(ve!==null)On=ve;else{var ze=ne.return;ze!==null?(On=ze,Xp(ze)):On=null}break t}}Xn=0,io=null,C0(l,f,O,5);break;case 6:Xn=0,io=null,C0(l,f,O,6);break;case 8:Yp(),Nr=6;break e;default:throw Error(i(462))}}fE();break}catch(qe){T0(l,qe)}while(!0);return _l=Ec=null,Z.H=v,Z.A=A,Hn=m,On!==null?0:(dr=null,zn=0,wo(),Nr)}function fE(){for(;On!==null&&!At();)Du(On)}function Du(l){var f=Ip(l.alternate,l,Vs);l.memoizedProps=l.pendingProps,f===null?Xp(l):On=f}function dE(l){var f=l,m=f.alternate;switch(f.tag){case 15:case 0:f=Q4(m,f,f.pendingProps,f.type,void 0,zn);break;case 11:f=Q4(m,f,f.pendingProps,f.type.render,f.ref,zn);break;case 5:$f(f);default:J4(m,f),f=On=H6(f,Vs),f=Ip(m,f,Vs)}l.memoizedProps=l.pendingProps,f===null?Xp(l):On=f}function C0(l,f,m,v){_l=Ec=null,$f(f),Rc=null,Vf=0;var A=f.return;try{if(Z6(l,A,f,m,zn)){Nr=1,v0(l,Co(m,l.current)),On=null;return}}catch(O){if(A!==null)throw On=A,O;Nr=1,v0(l,Co(m,l.current)),On=null;return}f.flags&32768?(kn||v===1?l=!0:zc||(zn&536870912)!==0?l=!1:(sn=l=!0,(v===2||v===9||v===3||v===6)&&(v=ua.current,v!==null&&v.tag===13&&(v.flags|=16384))),mx(f,l)):Xp(f)}function Xp(l){var f=l;do{if((f.flags&32768)!==0){mx(f,sn);return}l=f.return;var m=Br(f.alternate,f,Vs);if(m!==null){On=m;return}if(f=f.sibling,f!==null){On=f;return}On=f=l}while(f!==null);Nr===0&&(Nr=5)}function mx(l,f){do{var m=tE(l.alternate,l);if(m!==null){m.flags&=32767,On=m;return}if(m=l.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!f&&(l=l.sibling,l!==null)){On=l;return}On=l=m}while(l!==null);Nr=6,On=null}function hE(l,f,m,v,A,O,j,ne,ve){l.cancelPendingCommit=null;do Q1();while(jn!==0);if((Hn&6)!==0)throw Error(i(327));if(f!==null){if(f===l.current)throw Error(i(177));if(O=f.lanes|f.childLanes,O|=Ca,Bg(l,m,O,j,ne,ve),l===dr&&(On=dr=null,zn=0),ed=f,Lc=l,Il=m,F1=O,lo=A,fx=v,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,bE(nt,function(){return K1(),null})):(l.callbackNode=null,l.callbackPriority=0),v=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||v){v=Z.T,Z.T=null,A=ae.p,ae.p=2,j=Hn,Hn|=4;try{X8(l,f,m)}finally{Hn=j,ae.p=A,Z.T=v}}jn=1,pE(),mE(),gE()}}function pE(){if(jn===1){jn=0;var l=Lc,f=ed,m=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||m){m=Z.T,Z.T=null;var v=ae.p;ae.p=2;var A=Hn;Hn|=4;try{Yn(f,l);var O=uy,j=_f(l.containerInfo),ne=O.focusedElem,ve=O.selectionRange;if(j!==ne&&ne&&ne.ownerDocument&&u4(ne.ownerDocument.documentElement,ne)){if(ve!==null&&gu(ne)){var ze=ve.start,qe=ve.end;if(qe===void 0&&(qe=ze),"selectionStart"in ne)ne.selectionStart=ze,ne.selectionEnd=Math.min(qe,ne.value.length);else{var Ke=ne.ownerDocument||document,Ie=Ke&&Ke.defaultView||window;if(Ie.getSelection){var Ue=Ie.getSelection(),Rt=ne.textContent.length,Ht=Math.min(ve.start,Rt),hr=ve.end===void 0?Ht:Math.min(ve.end,Rt);!Ue.extend&&Ht>hr&&(j=hr,hr=Ht,Ht=j);var De=s4(ne,Ht),Te=s4(ne,hr);if(De&&Te&&(Ue.rangeCount!==1||Ue.anchorNode!==De.node||Ue.anchorOffset!==De.offset||Ue.focusNode!==Te.node||Ue.focusOffset!==Te.offset)){var ke=Ke.createRange();ke.setStart(De.node,De.offset),Ue.removeAllRanges(),Ht>hr?(Ue.addRange(ke),Ue.extend(Te.node,Te.offset)):(ke.setEnd(Te.node,Te.offset),Ue.addRange(ke))}}}}for(Ke=[],Ue=ne;Ue=Ue.parentNode;)Ue.nodeType===1&&Ke.push({element:Ue,left:Ue.scrollLeft,top:Ue.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<Ke.length;ne++){var Ye=Ke[ne];Ye.element.scrollLeft=Ye.left,Ye.element.scrollTop=Ye.top}}Iu=!!nm,uy=nm=null}finally{Hn=A,ae.p=v,Z.T=m}}l.current=f,jn=2}}function mE(){if(jn===2){jn=0;var l=Lc,f=ed,m=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||m){m=Z.T,Z.T=null;var v=ae.p;ae.p=2;var A=Hn;Hn|=4;try{Kf(l,f.alternate,f)}finally{Hn=A,ae.p=v,Z.T=m}}jn=3}}function gE(){if(jn===4||jn===3){jn=0,Mn();var l=Lc,f=ed,m=Il,v=fx;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?jn=5:(jn=0,ed=Lc=null,yE(l,l.pendingLanes));var A=l.pendingLanes;if(A===0&&(js=null),jg(m),f=f.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(Nt,f,void 0,(f.current.flags&128)===128)}catch{}if(v!==null){f=Z.T,A=ae.p,ae.p=2,Z.T=null;try{for(var O=l.onRecoverableError,j=0;j<v.length;j++){var ne=v[j];O(ne.value,{componentStack:ne.stack})}}finally{Z.T=f,ae.p=A}}(Il&3)!==0&&Q1(),Ll(l),A=l.pendingLanes,(m&261930)!==0&&(A&42)!==0?l===Y1?td++:(td=0,Y1=l):td=0,Qp(0)}}function yE(l,f){(l.pooledCacheLanes&=f)===0&&(f=l.pooledCache,f!=null&&(l.pooledCache=null,Lf(f)))}function Q1(){return pE(),mE(),gE(),K1()}function K1(){if(jn!==5)return!1;var l=Lc,f=F1;F1=0;var m=jg(Il),v=Z.T,A=ae.p;try{ae.p=32>m?32:m,Z.T=null,m=lo,lo=null;var O=Lc,j=Il;if(jn=0,ed=Lc=null,Il=0,(Hn&6)!==0)throw Error(i(331));var ne=Hn;if(Hn|=4,lx(O.current),ox(O,O.current,j,m),Hn=ne,Qp(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(Nt,O)}catch{}return!0}finally{ae.p=A,Z.T=v,yE(l,f)}}function vE(l,f,m){f=Co(m,f),f=b0(l.stateNode,f,2),l=Su(l,f,2),l!==null&&(oi(l,2),Ll(l))}function ir(l,f,m){if(l.tag===3)vE(l,l,m);else for(;f!==null;){if(f.tag===3){vE(f,l,m);break}else if(f.tag===1){var v=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(js===null||!js.has(v))){l=Co(m,l),m=K6(2),v=Su(f,m,2),v!==null&&(q4(m,v,f,l),oi(v,2),Ll(v));break}}f=f.return}}function Z1(l,f,m){var v=l.pingCache;if(v===null){v=l.pingCache=new oE;var A=new Set;v.set(f,A)}else A=v.get(f),A===void 0&&(A=new Set,v.set(f,A));A.has(m)||(Hp=!0,A.add(m),l=gx.bind(null,l,f,m),f.then(l,l))}function gx(l,f,m){var v=l.pingCache;v!==null&&v.delete(f),l.pingedLanes|=l.suspendedLanes&m,l.warmLanes&=~m,dr===l&&(zn&m)===m&&(Nr===4||Nr===3&&(zn&62914560)===zn&&300>Bt()-qp?(Hn&2)===0&&w0(l,0):cx|=m,Ic===zn&&(Ic=0)),Ll(l)}function J1(l,f){f===0&&(f=ct()),l=oa(l,f),l!==null&&(oi(l,f),Ll(l))}function Q8(l){var f=l.memoizedState,m=0;f!==null&&(m=f.retryLane),J1(l,m)}function _o(l,f){var m=0;switch(l.tag){case 31:case 13:var v=l.stateNode,A=l.memoizedState;A!==null&&(m=A.retryLane);break;case 19:v=l.stateNode;break;case 22:v=l.stateNode._retryCache;break;default:throw Error(i(314))}v!==null&&v.delete(f),J1(l,m)}function bE(l,f){return mn(l,f)}var Wp=null,Vc=null,ey=!1,ty=!1,yx=!1,Bc=0;function Ll(l){l!==Vc&&l.next===null&&(Vc===null?Wp=Vc=l:Vc=Vc.next=l),ty=!0,ey||(ey=!0,O0())}function Qp(l,f){if(!yx&&ty){yx=!0;do for(var m=!1,v=Wp;v!==null;){if(l!==0){var A=v.pendingLanes;if(A===0)var O=0;else{var j=v.suspendedLanes,ne=v.pingedLanes;O=(1<<31-bn(42|l)+1)-1,O&=A&~(j&~ne),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(m=!0,Jp(v,O))}else O=zn,O=wt(v,v===dr?O:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(O&3)===0||vt(v,O)||(m=!0,Jp(v,O));v=v.next}while(m);yx=!1}}function Kp(){Zp()}function Zp(){ty=ey=!1;var l=0;Bc!==0&&AE()&&(l=Bc);for(var f=Bt(),m=null,v=Wp;v!==null;){var A=v.next,O=vx(v,f);O===0?(v.next=null,m===null?Wp=A:m.next=A,A===null&&(Vc=m)):(m=v,(l!==0||(O&3)!==0)&&(ty=!0)),v=A}jn!==0&&jn!==5||Qp(l),Bc!==0&&(Bc=0)}function vx(l,f){for(var m=l.suspendedLanes,v=l.pingedLanes,A=l.expirationTimes,O=l.pendingLanes&-62914561;0<O;){var j=31-bn(O),ne=1<<j,ve=A[j];ve===-1?((ne&m)===0||(ne&v)!==0)&&(A[j]=Yt(ne,f)):ve<=f&&(l.expiredLanes|=ne),O&=~ne}if(f=dr,m=zn,m=wt(l,l===f?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v=l.callbackNode,m===0||l===f&&(Xn===2||Xn===9)||l.cancelPendingCommit!==null)return v!==null&&v!==null&&at(v),l.callbackNode=null,l.callbackPriority=0;if((m&3)===0||vt(l,m)){if(f=m&-m,f===l.callbackPriority)return f;switch(v!==null&&at(v),jg(m)){case 2:case 8:m=Ve;break;case 32:m=nt;break;case 268435456:m=ut;break;default:m=nt}return v=bx.bind(null,l),m=mn(m,v),l.callbackPriority=f,l.callbackNode=m,f}return v!==null&&v!==null&&at(v),l.callbackPriority=2,l.callbackNode=null,2}function bx(l,f){if(jn!==0&&jn!==5)return l.callbackNode=null,l.callbackPriority=0,null;var m=l.callbackNode;if(Q1()&&l.callbackNode!==m)return null;var v=zn;return v=wt(l,l===dr?v:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v===0?null:(hx(l,v,f),vx(l,Bt()),l.callbackNode!=null&&l.callbackNode===m?bx.bind(null,l):null)}function Jp(l,f){if(Q1())return null;hx(l,f,!0)}function O0(){N0(function(){(Hn&6)!==0?mn(be,Kp):Zp()})}function nd(){if(Bc===0){var l=wc;l===0&&(l=Oe,Oe<<=1,(Oe&261888)===0&&(Oe=256)),Bc=l}return Bc}function xx(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:hc(""+l)}function xE(l,f){var m=f.ownerDocument.createElement("input");return m.name=f.name,m.value=f.value,l.id&&m.setAttribute("form",l.id),f.parentNode.insertBefore(m,f),l=new FormData(l),m.parentNode.removeChild(m),l}function R0(l,f,m,v,A){if(f==="submit"&&m&&m.stateNode===A){var O=xx((A[Or]||null).action),j=v.submitter;j&&(f=(f=j[Or]||null)?xx(f.formAction):j.getAttribute("formAction"),f!==null&&(O=f,j=null));var ne=new Gh("action","action",null,v,A);l.push({event:ne,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Bc!==0){var ve=j?xE(A,j):new FormData(A);z1(m,{pending:!0,data:ve,method:A.method,action:O},null,ve)}}else typeof O=="function"&&(ne.preventDefault(),ve=j?xE(A,j):new FormData(A),z1(m,{pending:!0,data:ve,method:A.method,action:O},O,ve))},currentTarget:A}]})}}for(var rd=0;rd<Ol.length;rd++){var ny=Ol[rd],ry=ny.toLowerCase(),Sx=ny[0].toUpperCase()+ny.slice(1);Wa(ry,"on"+Sx)}Wa(br,"onAnimationEnd"),Wa(Zh,"onAnimationIteration"),Wa(f4,"onAnimationStart"),Wa("dblclick","onDoubleClick"),Wa("focusin","onFocus"),Wa("focusout","onBlur"),Wa(d4,"onTransitionRun"),Wa(Df,"onTransitionStart"),Wa(Jh,"onTransitionCancel"),Wa(Cl,"onTransitionEnd"),Sf("onMouseEnter",["mouseout","mouseover"]),Sf("onMouseLeave",["mouseout","mouseover"]),Sf("onPointerEnter",["pointerout","pointerover"]),Sf("onPointerLeave",["pointerout","pointerover"]),xo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xo("onBeforeInput",["compositionend","keypress","textInput","paste"]),xo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var id="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(" "),SE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(id));function Ex(l,f){f=(f&4)!==0;for(var m=0;m<l.length;m++){var v=l[m],A=v.event;v=v.listeners;e:{var O=void 0;if(f)for(var j=v.length-1;0<=j;j--){var ne=v[j],ve=ne.instance,ze=ne.currentTarget;if(ne=ne.listener,ve!==O&&A.isPropagationStopped())break e;O=ne,A.currentTarget=ze;try{O(A)}catch(qe){Sc(qe)}A.currentTarget=null,O=ve}else for(j=0;j<v.length;j++){if(ne=v[j],ve=ne.instance,ze=ne.currentTarget,ne=ne.listener,ve!==O&&A.isPropagationStopped())break e;O=ne,A.currentTarget=ze;try{O(A)}catch(qe){Sc(qe)}A.currentTarget=null,O=ve}}}}function _n(l,f){var m=f[Ih];m===void 0&&(m=f[Ih]=new Set);var v=l+"__bubble";m.has(v)||(em(f,l,2,!1),m.add(v))}function iy(l,f,m){var v=0;f&&(v|=4),em(m,l,v,f)}var ay="_reactListening"+Math.random().toString(36).slice(2);function wx(l){if(!l[ay]){l[ay]=!0,Fa.forEach(function(m){m!=="selectionchange"&&(SE.has(m)||iy(m,!1,l),iy(m,!0,l))});var f=l.nodeType===9?l:l.ownerDocument;f===null||f[ay]||(f[ay]=!0,iy("selectionchange",!1,f))}}function em(l,f,m,v){switch(cm(f)){case 2:var A=ha;break;case 8:A=$s;break;default:A=ul}m=A.bind(null,f,m,l),A=void 0,!Wb||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(A=!0),v?A!==void 0?l.addEventListener(f,m,{capture:!0,passive:A}):l.addEventListener(f,m,!0):A!==void 0?l.addEventListener(f,m,{passive:A}):l.addEventListener(f,m,!1)}function M0(l,f,m,v,A){var O=v;if((f&1)===0&&(f&2)===0&&v!==null)e:for(;;){if(v===null)return;var j=v.tag;if(j===3||j===4){var ne=v.stateNode.containerInfo;if(ne===A)break;if(j===4)for(j=v.return;j!==null;){var ve=j.tag;if((ve===3||ve===4)&&j.stateNode.containerInfo===A)return;j=j.return}for(;ne!==null;){if(j=yf(ne),j===null)return;if(ve=j.tag,ve===5||ve===6||ve===26||ve===27){v=O=j;continue e}ne=ne.parentNode}}v=v.return}Hh(function(){var ze=O,qe=qg(m),Ke=[];e:{var Ie=$6.get(l);if(Ie!==void 0){var Ue=Gh,Rt=l;switch(l){case"keypress":if(qh(m)===0)break e;case"keydown":case"keyup":Ue=Qg;break;case"focusin":Rt="focus",Ue=Wg;break;case"focusout":Rt="blur",Ue=Wg;break;case"beforeblur":case"afterblur":Ue=Wg;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ue=M6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=_6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=H8;break;case br:case Zh:case f4:Ue=Jb;break;case Cl:Ue=L6;break;case"scroll":case"scrollend":Ue=R6;break;case"wheel":Ue=t4;break;case"copy":case"cut":case"paste":Ue=Af;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=Zg;break;case"toggle":case"beforetoggle":Ue=V6}var Ht=(f&4)!==0,hr=!Ht&&(l==="scroll"||l==="scrollend"),De=Ht?Ie!==null?Ie+"Capture":null:Ie;Ht=[];for(var Te=ze,ke;Te!==null;){var Ye=Te;if(ke=Ye.stateNode,Ye=Ye.tag,Ye!==5&&Ye!==26&&Ye!==27||ke===null||De===null||(Ye=Kd(Te,De),Ye!=null&&Ht.push(tm(Te,Ye,ke))),hr)break;Te=Te.return}0<Ht.length&&(Ie=new Ue(Ie,Rt,null,m,qe),Ke.push({event:Ie,listeners:Ht}))}}if((f&7)===0){e:{if(Ie=l==="mouseover"||l==="pointerover",Ue=l==="mouseout"||l==="pointerout",Ie&&m!==$h&&(Rt=m.relatedTarget||m.fromElement)&&(yf(Rt)||Rt[gf]))break e;if((Ue||Ie)&&(Ie=qe.window===qe?qe:(Ie=qe.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,Ue?(Rt=m.relatedTarget||m.toElement,Ue=ze,Rt=Rt?yf(Rt):null,Rt!==null&&(hr=s(Rt),Ht=Rt.tag,Rt!==hr||Ht!==5&&Ht!==27&&Ht!==6)&&(Rt=null)):(Ue=null,Rt=ze),Ue!==Rt)){if(Ht=M6,Ye="onMouseLeave",De="onMouseEnter",Te="mouse",(l==="pointerout"||l==="pointerover")&&(Ht=Zg,Ye="onPointerLeave",De="onPointerEnter",Te="pointer"),hr=Ue==null?Ie:Yd(Ue),ke=Rt==null?Ie:Yd(Rt),Ie=new Ht(Ye,Te+"leave",Ue,m,qe),Ie.target=hr,Ie.relatedTarget=ke,Ye=null,yf(qe)===ze&&(Ht=new Ht(De,Te+"enter",Rt,m,qe),Ht.target=ke,Ht.relatedTarget=hr,Ye=Ht),hr=Ye,Ue&&Rt)t:{for(Ht=EE,De=Ue,Te=Rt,ke=0,Ye=De;Ye;Ye=Ht(Ye))ke++;Ye=0;for(var Lt=Te;Lt;Lt=Ht(Lt))Ye++;for(;0<ke-Ye;)De=Ht(De),ke--;for(;0<Ye-ke;)Te=Ht(Te),Ye--;for(;ke--;){if(De===Te||Te!==null&&De===Te.alternate){Ht=De;break t}De=Ht(De),Te=Ht(Te)}Ht=null}else Ht=null;Ue!==null&&Tx(Ke,Ie,Ue,Ht,!1),Rt!==null&&hr!==null&&Tx(Ke,hr,Rt,Ht,!0)}}e:{if(Ie=ze?Yd(ze):window,Ue=Ie.nodeName&&Ie.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&Ie.type==="file")var qn=n1;else if(e1(Ie))if(a4)qn=gc;else{qn=P6;var _t=l4}else Ue=Ie.nodeName,!Ue||Ue.toLowerCase()!=="input"||Ie.type!=="checkbox"&&Ie.type!=="radio"?ze&&Yb(ze.elementType)&&(qn=n1):qn=U6;if(qn&&(qn=qn(l,ze))){fs(Ke,qn,m,qe);break e}_t&&_t(l,Ie,ze),l==="focusout"&&ze&&Ie.type==="number"&&ze.memoizedProps.value!=null&&Wd(Ie,"number",Ie.value)}switch(_t=ze?Yd(ze):window,l){case"focusin":(e1(_t)||_t.contentEditable==="true")&&(ps=_t,Qh=ze,vc=null);break;case"focusout":vc=Qh=ps=null;break;case"mousedown":ms=!0;break;case"contextmenu":case"mouseup":case"dragend":ms=!1,gs(Ke,m,qe);break;case"selectionchange":if(c4)break;case"keydown":case"keyup":gs(Ke,m,qe)}var hn;if(Jd)e:{switch(l){case"compositionstart":var An="onCompositionStart";break e;case"compositionend":An="onCompositionEnd";break e;case"compositionupdate":An="onCompositionUpdate";break e}An=void 0}else Of?mc(l,m)&&(An="onCompositionEnd"):l==="keydown"&&m.keyCode===229&&(An="onCompositionStart");An&&(Fi&&m.locale!=="ko"&&(Of||An!=="onCompositionStart"?An==="onCompositionEnd"&&Of&&(hn=O6()):(pu=qe,Gg="value"in pu?pu.value:pu.textContent,Of=!0)),_t=oy(ze,An),0<_t.length&&(An=new Wo(An,l,null,m,qe),Ke.push({event:An,listeners:_t}),hn?An.data=hn:(hn=Jg(m),hn!==null&&(An.data=hn)))),(hn=r4?B6(l,m):j6(l,m))&&(An=oy(ze,"onBeforeInput"),0<An.length&&(_t=new Wo("onBeforeInput","beforeinput",null,m,qe),Ke.push({event:_t,listeners:An}),_t.data=hn)),R0(Ke,l,ze,m,qe)}Ex(Ke,f)})}function tm(l,f,m){return{instance:l,listener:f,currentTarget:m}}function oy(l,f){for(var m=f+"Capture",v=[];l!==null;){var A=l,O=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||O===null||(A=Kd(l,m),A!=null&&v.unshift(tm(l,A,O)),A=Kd(l,f),A!=null&&v.push(tm(l,A,O))),l.tag===3)return v;l=l.return}return[]}function EE(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Tx(l,f,m,v,A){for(var O=f._reactName,j=[];m!==null&&m!==v;){var ne=m,ve=ne.alternate,ze=ne.stateNode;if(ne=ne.tag,ve!==null&&ve===v)break;ne!==5&&ne!==26&&ne!==27||ze===null||(ve=ze,A?(ze=Kd(m,O),ze!=null&&j.unshift(tm(m,ze,ve))):A||(ze=Kd(m,O),ze!=null&&j.push(tm(m,ze,ve)))),m=m.return}j.length!==0&&l.push({event:f,listeners:j})}var Ax=/\r\n?/g,wE=/\u0000|\uFFFD/g;function ly(l){return(typeof l=="string"?l:""+l).replace(Ax,`
`).replace(wE,"")}function Cx(l,f){return f=ly(f),ly(l)===f}function ar(l,f,m,v,A,O){switch(m){case"children":typeof v=="string"?f==="body"||f==="textarea"&&v===""||Ef(l,v):(typeof v=="number"||typeof v=="bigint")&&f!=="body"&&Ef(l,""+v);break;case"className":Xd(l,"class",v);break;case"tabIndex":Xd(l,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Xd(l,m,v);break;case"style":C6(l,v,O);break;case"data":if(f!=="object"){Xd(l,"data",v);break}case"src":case"href":if(v===""&&(f!=="a"||m!=="href")){l.removeAttribute(m);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){l.removeAttribute(m);break}v=hc(""+v),l.setAttribute(m,v);break;case"action":case"formAction":if(typeof v=="function"){l.setAttribute(m,"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 O=="function"&&(m==="formAction"?(f!=="input"&&ar(l,f,"name",A.name,A,null),ar(l,f,"formEncType",A.formEncType,A,null),ar(l,f,"formMethod",A.formMethod,A,null),ar(l,f,"formTarget",A.formTarget,A,null)):(ar(l,f,"encType",A.encType,A,null),ar(l,f,"method",A.method,A,null),ar(l,f,"target",A.target,A,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){l.removeAttribute(m);break}v=hc(""+v),l.setAttribute(m,v);break;case"onClick":v!=null&&(l.onclick=Gi);break;case"onScroll":v!=null&&_n("scroll",l);break;case"onScrollEnd":v!=null&&_n("scrollend",l);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(i(61));if(m=v.__html,m!=null){if(A.children!=null)throw Error(i(60));l.innerHTML=m}}break;case"multiple":l.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":l.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){l.removeAttribute("xlink:href");break}m=hc(""+v),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(m,""+v):l.removeAttribute(m);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":v&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(m,""):l.removeAttribute(m);break;case"capture":case"download":v===!0?l.setAttribute(m,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(m,v):l.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?l.setAttribute(m,v):l.removeAttribute(m);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?l.removeAttribute(m):l.setAttribute(m,v);break;case"popover":_n("beforetoggle",l),_n("toggle",l),du(l,"popover",v);break;case"xlinkActuate":hu(l,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":hu(l,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":hu(l,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":hu(l,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":hu(l,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":hu(l,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":hu(l,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":hu(l,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":hu(l,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":du(l,"is",v);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=P8.get(m)||m,du(l,m,v))}}function Ox(l,f,m,v,A,O){switch(m){case"style":C6(l,v,O);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(i(61));if(m=v.__html,m!=null){if(A.children!=null)throw Error(i(60));l.innerHTML=m}}break;case"children":typeof v=="string"?Ef(l,v):(typeof v=="number"||typeof v=="bigint")&&Ef(l,""+v);break;case"onScroll":v!=null&&_n("scroll",l);break;case"onScrollEnd":v!=null&&_n("scrollend",l);break;case"onClick":v!=null&&(l.onclick=Gi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xf.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(A=m.endsWith("Capture"),f=m.slice(2,A?m.length-7:void 0),O=l[Or]||null,O=O!=null?O[m]:null,typeof O=="function"&&l.removeEventListener(f,O,A),typeof v=="function")){typeof O!="function"&&O!==null&&(m in l?l[m]=null:l.hasAttribute(m)&&l.removeAttribute(m)),l.addEventListener(f,v,A);break e}m in l?l[m]=v:v===!0?l.setAttribute(m,""):du(l,m,v)}}}function Zi(l,f,m){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_n("error",l),_n("load",l);var v=!1,A=!1,O;for(O in m)if(m.hasOwnProperty(O)){var j=m[O];if(j!=null)switch(O){case"src":v=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,f));default:ar(l,f,O,j,m,null)}}A&&ar(l,f,"srcSet",m.srcSet,m,null),v&&ar(l,f,"src",m.src,m,null);return;case"input":_n("invalid",l);var ne=O=j=A=null,ve=null,ze=null;for(v in m)if(m.hasOwnProperty(v)){var qe=m[v];if(qe!=null)switch(v){case"name":A=qe;break;case"type":j=qe;break;case"checked":ve=qe;break;case"defaultChecked":ze=qe;break;case"value":O=qe;break;case"defaultValue":ne=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(i(137,f));break;default:ar(l,f,v,qe,m,null)}}Hg(l,O,ne,ve,ze,j,A,!1);return;case"select":_n("invalid",l),v=j=O=null;for(A in m)if(m.hasOwnProperty(A)&&(ne=m[A],ne!=null))switch(A){case"value":O=ne;break;case"defaultValue":j=ne;break;case"multiple":v=ne;default:ar(l,f,A,ne,m,null)}f=O,m=j,l.multiple=!!v,f!=null?as(l,!!v,f,!1):m!=null&&as(l,!!v,m,!0);return;case"textarea":_n("invalid",l),O=A=v=null;for(j in m)if(m.hasOwnProperty(j)&&(ne=m[j],ne!=null))switch(j){case"value":v=ne;break;case"defaultValue":A=ne;break;case"children":O=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(91));break;default:ar(l,f,j,ne,m,null)}Gb(l,v,A,O);return;case"option":for(ve in m)if(m.hasOwnProperty(ve)&&(v=m[ve],v!=null))switch(ve){case"selected":l.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ar(l,f,ve,v,m,null)}return;case"dialog":_n("beforetoggle",l),_n("toggle",l),_n("cancel",l),_n("close",l);break;case"iframe":case"object":_n("load",l);break;case"video":case"audio":for(v=0;v<id.length;v++)_n(id[v],l);break;case"image":_n("error",l),_n("load",l);break;case"details":_n("toggle",l);break;case"embed":case"source":case"link":_n("error",l),_n("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ze in m)if(m.hasOwnProperty(ze)&&(v=m[ze],v!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,f));default:ar(l,f,ze,v,m,null)}return;default:if(Yb(f)){for(qe in m)m.hasOwnProperty(qe)&&(v=m[qe],v!==void 0&&Ox(l,f,qe,v,m,void 0));return}}for(ne in m)m.hasOwnProperty(ne)&&(v=m[ne],v!=null&&ar(l,f,ne,v,m,null))}function K8(l,f,m,v){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,O=null,j=null,ne=null,ve=null,ze=null,qe=null;for(Ue in m){var Ke=m[Ue];if(m.hasOwnProperty(Ue)&&Ke!=null)switch(Ue){case"checked":break;case"value":break;case"defaultValue":ve=Ke;default:v.hasOwnProperty(Ue)||ar(l,f,Ue,null,v,Ke)}}for(var Ie in v){var Ue=v[Ie];if(Ke=m[Ie],v.hasOwnProperty(Ie)&&(Ue!=null||Ke!=null))switch(Ie){case"type":O=Ue;break;case"name":A=Ue;break;case"checked":ze=Ue;break;case"defaultChecked":qe=Ue;break;case"value":j=Ue;break;case"defaultValue":ne=Ue;break;case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(i(137,f));break;default:Ue!==Ke&&ar(l,f,Ie,Ue,v,Ke)}}$g(l,j,ne,ve,ze,qe,O,A);return;case"select":Ue=j=ne=Ie=null;for(O in m)if(ve=m[O],m.hasOwnProperty(O)&&ve!=null)switch(O){case"value":break;case"multiple":Ue=ve;default:v.hasOwnProperty(O)||ar(l,f,O,null,v,ve)}for(A in v)if(O=v[A],ve=m[A],v.hasOwnProperty(A)&&(O!=null||ve!=null))switch(A){case"value":Ie=O;break;case"defaultValue":ne=O;break;case"multiple":j=O;default:O!==ve&&ar(l,f,A,O,v,ve)}f=ne,m=j,v=Ue,Ie!=null?as(l,!!m,Ie,!1):!!v!=!!m&&(f!=null?as(l,!!m,f,!0):as(l,!!m,m?[]:"",!1));return;case"textarea":Ue=Ie=null;for(ne in m)if(A=m[ne],m.hasOwnProperty(ne)&&A!=null&&!v.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:ar(l,f,ne,null,v,A)}for(j in v)if(A=v[j],O=m[j],v.hasOwnProperty(j)&&(A!=null||O!=null))switch(j){case"value":Ie=A;break;case"defaultValue":Ue=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(i(91));break;default:A!==O&&ar(l,f,j,A,v,O)}A6(l,Ie,Ue);return;case"option":for(var Rt in m)if(Ie=m[Rt],m.hasOwnProperty(Rt)&&Ie!=null&&!v.hasOwnProperty(Rt))switch(Rt){case"selected":l.selected=!1;break;default:ar(l,f,Rt,null,v,Ie)}for(ve in v)if(Ie=v[ve],Ue=m[ve],v.hasOwnProperty(ve)&&Ie!==Ue&&(Ie!=null||Ue!=null))switch(ve){case"selected":l.selected=Ie&&typeof Ie!="function"&&typeof Ie!="symbol";break;default:ar(l,f,ve,Ie,v,Ue)}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 Ht in m)Ie=m[Ht],m.hasOwnProperty(Ht)&&Ie!=null&&!v.hasOwnProperty(Ht)&&ar(l,f,Ht,null,v,Ie);for(ze in v)if(Ie=v[ze],Ue=m[ze],v.hasOwnProperty(ze)&&Ie!==Ue&&(Ie!=null||Ue!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(i(137,f));break;default:ar(l,f,ze,Ie,v,Ue)}return;default:if(Yb(f)){for(var hr in m)Ie=m[hr],m.hasOwnProperty(hr)&&Ie!==void 0&&!v.hasOwnProperty(hr)&&Ox(l,f,hr,void 0,v,Ie);for(qe in v)Ie=v[qe],Ue=m[qe],!v.hasOwnProperty(qe)||Ie===Ue||Ie===void 0&&Ue===void 0||Ox(l,f,qe,Ie,v,Ue);return}}for(var De in m)Ie=m[De],m.hasOwnProperty(De)&&Ie!=null&&!v.hasOwnProperty(De)&&ar(l,f,De,null,v,Ie);for(Ke in v)Ie=v[Ke],Ue=m[Ke],!v.hasOwnProperty(Ke)||Ie===Ue||Ie==null&&Ue==null||ar(l,f,Ke,Ie,v,Ue)}function sy(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rx(){if(typeof performance.getEntriesByType=="function"){for(var l=0,f=0,m=performance.getEntriesByType("resource"),v=0;v<m.length;v++){var A=m[v],O=A.transferSize,j=A.initiatorType,ne=A.duration;if(O&&ne&&sy(j)){for(j=0,ne=A.responseEnd,v+=1;v<m.length;v++){var ve=m[v],ze=ve.startTime;if(ze>ne)break;var qe=ve.transferSize,Ke=ve.initiatorType;qe&&sy(Ke)&&(ve=ve.responseEnd,j+=qe*(ve<ne?1:(ne-ze)/(ve-ze)))}if(--v,f+=8*(O+j)/(A.duration/1e3),l++,10<l)break}}if(0<l)return f/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var nm=null,uy=null;function rm(l){return l.nodeType===9?l:l.ownerDocument}function _0(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function TE(l,f){if(l===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&f==="foreignObject"?0:l}function cy(l,f){return l==="textarea"||l==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var D0=null;function AE(){var l=window.event;return l&&l.type==="popstate"?l===D0?!1:(D0=l,!0):(D0=null,!1)}var CE=typeof setTimeout=="function"?setTimeout:void 0,fy=typeof clearTimeout=="function"?clearTimeout:void 0,Mx=typeof Promise=="function"?Promise:void 0,N0=typeof queueMicrotask=="function"?queueMicrotask:typeof Mx<"u"?function(l){return Mx.resolve(null).then(l).catch(OE)}:CE;function OE(l){setTimeout(function(){throw l})}function Ps(l){return l==="head"}function im(l,f){var m=f,v=0;do{var A=m.nextSibling;if(l.removeChild(m),A&&A.nodeType===8)if(m=A.data,m==="/$"||m==="/&"){if(v===0){l.removeChild(A),B0(f);return}v--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")v++;else if(m==="html")Nu(l.ownerDocument.documentElement);else if(m==="head"){m=l.ownerDocument.head,Nu(m);for(var O=m.firstChild;O;){var j=O.nextSibling,ne=O.nodeName;O[Fd]||ne==="SCRIPT"||ne==="STYLE"||ne==="LINK"&&O.rel.toLowerCase()==="stylesheet"||m.removeChild(O),O=j}}else m==="body"&&Nu(l.ownerDocument.body);m=A}while(m);B0(f)}function _x(l,f){var m=l;l=0;do{var v=m.nextSibling;if(m.nodeType===1?f?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(f?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),v&&v.nodeType===8)if(m=v.data,m==="/$"){if(l===0)break;l--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||l++;m=v}while(m)}function Zr(l){var f=l.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var m=f;switch(f=f.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":Zr(m),dc(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}l.removeChild(m)}}function Dx(l,f,m,v){for(;l.nodeType===1;){var A=m;if(l.nodeName.toLowerCase()!==f.toLowerCase()){if(!v&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(v){if(!l[Fd])switch(f){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(O=l.getAttribute("rel"),O==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(O!==A.rel||l.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||l.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||l.getAttribute("title")!==(A.title==null?null:A.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(O=l.getAttribute("src"),(O!==(A.src==null?null:A.src)||l.getAttribute("type")!==(A.type==null?null:A.type)||l.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&O&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(f==="input"&&l.type==="hidden"){var O=A.name==null?null:""+A.name;if(A.type==="hidden"&&l.getAttribute("name")===O)return l}else return l;if(l=Ji(l.nextSibling),l===null)break}return null}function Z8(l,f,m){if(f==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!m||(l=Ji(l.nextSibling),l===null))return null;return l}function yn(l,f){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!f||(l=Ji(l.nextSibling),l===null))return null;return l}function Nx(l){return l.data==="$?"||l.data==="$~"}function ol(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function k0(l,f){var m=l.ownerDocument;if(l.data==="$~")l._reactRetry=f;else if(l.data!=="$?"||m.readyState!=="loading")f();else{var v=function(){f(),m.removeEventListener("DOMContentLoaded",v)};m.addEventListener("DOMContentLoaded",v),l._reactRetry=v}}function Ji(l){for(;l!=null;l=l.nextSibling){var f=l.nodeType;if(f===1||f===3)break;if(f===8){if(f=l.data,f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"||f==="F!"||f==="F")break;if(f==="/$"||f==="/&")return null}}return l}var z0=null;function dy(l){l=l.nextSibling;for(var f=0;l;){if(l.nodeType===8){var m=l.data;if(m==="/$"||m==="/&"){if(f===0)return Ji(l.nextSibling);f--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||f++}l=l.nextSibling}return null}function hy(l){l=l.previousSibling;for(var f=0;l;){if(l.nodeType===8){var m=l.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(f===0)return l;f--}else m!=="/$"&&m!=="/&"||f++}l=l.previousSibling}return null}function Vl(l,f,m){switch(f=rm(m),l){case"html":if(l=f.documentElement,!l)throw Error(i(452));return l;case"head":if(l=f.head,!l)throw Error(i(453));return l;case"body":if(l=f.body,!l)throw Error(i(454));return l;default:throw Error(i(451))}}function Nu(l){for(var f=l.attributes;f.length;)l.removeAttributeNode(f[0]);dc(l)}var uo=new Map,py=new Set;function ad(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var si=ae.d;ae.d={f:kx,r:J8,D:wi,C:$e,L:Kn,m:eA,X:Ix,S:zx,M:ku};function kx(){var l=si.f(),f=Fp();return l||f}function J8(l){var f=vf(l);f!==null&&f.tag===5&&f.type==="form"?g0(f):si.r(l)}var od=typeof document>"u"?null:document;function RE(l,f,m){var v=od;if(v&&typeof f=="string"&&f){var A=Xo(f);A='link[rel="'+l+'"][href="'+A+'"]',typeof m=="string"&&(A+='[crossorigin="'+m+'"]'),py.has(A)||(py.add(A),l={rel:l,crossOrigin:m,href:f},v.querySelector(A)===null&&(f=v.createElement("link"),Zi(f,"link",l),Si(f),v.head.appendChild(f)))}}function wi(l){si.D(l),RE("dns-prefetch",l,null)}function $e(l,f){si.C(l,f),RE("preconnect",l,f)}function Kn(l,f,m){si.L(l,f,m);var v=od;if(v&&l&&f){var A='link[rel="preload"][as="'+Xo(f)+'"]';f==="image"&&m&&m.imageSrcSet?(A+='[imagesrcset="'+Xo(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(A+='[imagesizes="'+Xo(m.imageSizes)+'"]')):A+='[href="'+Xo(l)+'"]';var O=A;switch(f){case"style":O=Us(l);break;case"script":O=ld(l)}uo.has(O)||(l=S({rel:"preload",href:f==="image"&&m&&m.imageSrcSet?void 0:l,as:f},m),uo.set(O,l),v.querySelector(A)!==null||f==="style"&&v.querySelector(ll(O))||f==="script"&&v.querySelector(I0(O))||(f=v.createElement("link"),Zi(f,"link",l),Si(f),v.head.appendChild(f)))}}function eA(l,f){si.m(l,f);var m=od;if(m&&l){var v=f&&typeof f.as=="string"?f.as:"script",A='link[rel="modulepreload"][as="'+Xo(v)+'"][href="'+Xo(l)+'"]',O=A;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=ld(l)}if(!uo.has(O)&&(l=S({rel:"modulepreload",href:l},f),uo.set(O,l),m.querySelector(A)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(I0(O)))return}v=m.createElement("link"),Zi(v,"link",l),Si(v),m.head.appendChild(v)}}}function zx(l,f,m){si.S(l,f,m);var v=od;if(v&&l){var A=bf(v).hoistableStyles,O=Us(l);f=f||"default";var j=A.get(O);if(!j){var ne={loading:0,preload:null};if(j=v.querySelector(ll(O)))ne.loading=5;else{l=S({rel:"stylesheet",href:l,"data-precedence":f},m),(m=uo.get(O))&&my(l,m);var ve=j=v.createElement("link");Si(ve),Zi(ve,"link",l),ve._p=new Promise(function(ze,qe){ve.onload=ze,ve.onerror=qe}),ve.addEventListener("load",function(){ne.loading|=1}),ve.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,lm(j,f,v)}j={type:"stylesheet",instance:j,count:1,state:ne},A.set(O,j)}}}function Ix(l,f){si.X(l,f);var m=od;if(m&&l){var v=bf(m).hoistableScripts,A=ld(l),O=v.get(A);O||(O=m.querySelector(I0(A)),O||(l=S({src:l,async:!0},f),(f=uo.get(A))&&gy(l,f),O=m.createElement("script"),Si(O),Zi(O,"link",l),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},v.set(A,O))}}function ku(l,f){si.M(l,f);var m=od;if(m&&l){var v=bf(m).hoistableScripts,A=ld(l),O=v.get(A);O||(O=m.querySelector(I0(A)),O||(l=S({src:l,async:!0,type:"module"},f),(f=uo.get(A))&&gy(l,f),O=m.createElement("script"),Si(O),Zi(O,"link",l),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},v.set(A,O))}}function zu(l,f,m,v){var A=(A=_e.current)?ad(A):null;if(!A)throw Error(i(446));switch(l){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(f=Us(m.href),m=bf(A).hoistableStyles,v=m.get(f),v||(v={type:"style",instance:null,count:0,state:null},m.set(f,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){l=Us(m.href);var O=bf(A).hoistableStyles,j=O.get(l);if(j||(A=A.ownerDocument||A,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},O.set(l,j),(O=A.querySelector(ll(l)))&&!O._p&&(j.instance=O,j.state.loading=5),uo.has(l)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},uo.set(l,m),O||om(A,l,m,j.state))),f&&v===null)throw Error(i(528,""));return j}if(f&&v!==null)throw Error(i(529,""));return null;case"script":return f=m.async,m=m.src,typeof m=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=ld(m),m=bf(A).hoistableScripts,v=m.get(f),v||(v={type:"script",instance:null,count:0,state:null},m.set(f,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,l))}}function Us(l){return'href="'+Xo(l)+'"'}function ll(l){return'link[rel="stylesheet"]['+l+"]"}function am(l){return S({},l,{"data-precedence":l.precedence,precedence:null})}function om(l,f,m,v){l.querySelector('link[rel="preload"][as="style"]['+f+"]")?v.loading=1:(f=l.createElement("link"),v.preload=f,f.addEventListener("load",function(){return v.loading|=1}),f.addEventListener("error",function(){return v.loading|=2}),Zi(f,"link",m),Si(f),l.head.appendChild(f))}function ld(l){return'[src="'+Xo(l)+'"]'}function I0(l){return"script[async]"+l}function Lx(l,f,m){if(f.count++,f.instance===null)switch(f.type){case"style":var v=l.querySelector('style[data-href~="'+Xo(m.href)+'"]');if(v)return f.instance=v,Si(v),v;var A=S({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return v=(l.ownerDocument||l).createElement("style"),Si(v),Zi(v,"style",A),lm(v,m.precedence,l),f.instance=v;case"stylesheet":A=Us(m.href);var O=l.querySelector(ll(A));if(O)return f.state.loading|=4,f.instance=O,Si(O),O;v=am(m),(A=uo.get(A))&&my(v,A),O=(l.ownerDocument||l).createElement("link"),Si(O);var j=O;return j._p=new Promise(function(ne,ve){j.onload=ne,j.onerror=ve}),Zi(O,"link",v),f.state.loading|=4,lm(O,m.precedence,l),f.instance=O;case"script":return O=ld(m.src),(A=l.querySelector(I0(O)))?(f.instance=A,Si(A),A):(v=m,(A=uo.get(O))&&(v=S({},m),gy(v,A)),l=l.ownerDocument||l,A=l.createElement("script"),Si(A),Zi(A,"link",v),l.head.appendChild(A),f.instance=A);case"void":return null;default:throw Error(i(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(v=f.instance,f.state.loading|=4,lm(v,m.precedence,l));return f.instance}function lm(l,f,m){for(var v=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=v.length?v[v.length-1]:null,O=A,j=0;j<v.length;j++){var ne=v[j];if(ne.dataset.precedence===f)O=ne;else if(O!==A)break}O?O.parentNode.insertBefore(l,O.nextSibling):(f=m.nodeType===9?m.head:m,f.insertBefore(l,f.firstChild))}function my(l,f){l.crossOrigin==null&&(l.crossOrigin=f.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=f.referrerPolicy),l.title==null&&(l.title=f.title)}function gy(l,f){l.crossOrigin==null&&(l.crossOrigin=f.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=f.referrerPolicy),l.integrity==null&&(l.integrity=f.integrity)}var sm=null;function yy(l,f,m){if(sm===null){var v=new Map,A=sm=new Map;A.set(m,v)}else A=sm,v=A.get(m),v||(v=new Map,A.set(m,v));if(v.has(l))return v;for(v.set(l,null),m=m.getElementsByTagName(l),A=0;A<m.length;A++){var O=m[A];if(!(O[Fd]||O[pi]||l==="link"&&O.getAttribute("rel")==="stylesheet")&&O.namespaceURI!=="http://www.w3.org/2000/svg"){var j=O.getAttribute(f)||"";j=l+j;var ne=v.get(j);ne?ne.push(O):v.set(j,[O])}}return v}function Vx(l,f,m){l=l.ownerDocument||l,l.head.insertBefore(m,f==="title"?l.querySelector("head > title"):null)}function Bx(l,f,m){if(m===1||f.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return l=f.disabled,typeof f.precedence=="string"&&l==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function vy(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function Do(l,f,m,v){if(m.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var A=Us(v.href),O=f.querySelector(ll(A));if(O){f=O._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(l.count++,l=L0.bind(l),f.then(l,l)),m.state.loading|=4,m.instance=O,Si(O);return}O=f.ownerDocument||f,v=am(v),(A=uo.get(A))&&my(v,A),O=O.createElement("link"),Si(O);var j=O;j._p=new Promise(function(ne,ve){j.onload=ne,j.onerror=ve}),Zi(O,"link",v),m.instance=O}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(m,f),(f=m.state.preload)&&(m.state.loading&3)===0&&(l.count++,m=L0.bind(l),f.addEventListener("load",m),f.addEventListener("error",m))}}var sl=0;function Bl(l,f){return l.stylesheets&&l.count===0&&xy(l,l.stylesheets),0<l.count||0<l.imgCount?function(m){var v=setTimeout(function(){if(l.stylesheets&&xy(l,l.stylesheets),l.unsuspend){var O=l.unsuspend;l.unsuspend=null,O()}},6e4+f);0<l.imgBytes&&sl===0&&(sl=62500*Rx());var A=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&xy(l,l.stylesheets),l.unsuspend)){var O=l.unsuspend;l.unsuspend=null,O()}},(l.imgBytes>sl?50:800)+f);return l.unsuspend=m,function(){l.unsuspend=null,clearTimeout(v),clearTimeout(A)}}:null}function L0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xy(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var by=null;function xy(l,f){l.stylesheets=null,l.unsuspend!==null&&(l.count++,by=new Map,f.forEach(tA,l),by=null,L0.call(l))}function tA(l,f){if(!(f.state.loading&4)){var m=by.get(l);if(m)var v=m.get(null);else{m=new Map,by.set(l,m);for(var A=l.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O<A.length;O++){var j=A[O];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(m.set(j.dataset.precedence,j),v=j)}v&&m.set(null,v)}A=f.instance,j=A.getAttribute("data-precedence"),O=m.get(j)||v,O===v&&m.set(null,A),m.set(j,A),this.count++,v=L0.bind(this),A.addEventListener("load",v),A.addEventListener("error",v),O?O.parentNode.insertBefore(A,O.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(A,l.firstChild)),f.state.loading|=4}}var Jr={$$typeof:L,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function nA(l,f,m,v,A,O,j,ne,ve){this.tag=1,this.containerInfo=l,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=Bn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bn(0),this.hiddenUpdates=Bn(null),this.identifierPrefix=v,this.onUncaughtError=A,this.onCaughtError=O,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ve,this.incompleteTransitions=new Map}function Sy(l,f,m,v,A,O,j,ne,ve,ze,qe,Ke){return l=new nA(l,f,m,j,ve,ze,qe,Ke,ne),f=1,O===!0&&(f|=24),O=Qa(3,null,null,f),l.current=O,O.stateNode=l,f=f1(),f.refCount++,l.pooledCache=f,f.refCount++,O.memoizedState={element:v,isDehydrated:m,cache:f},p1(O),l}function Ey(l){return l?(l=Nf,l):Nf}function sd(l,f,m,v,A,O){A=Ey(A),v.context===null?v.context=A:v.pendingContext=A,v=xu(f),v.payload={element:m},O=O===void 0?null:O,O!==null&&(v.callback=O),m=Su(l,v,f),m!==null&&(so(m,l,f),Ts(m,l,f))}function ME(l,f){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var m=l.retryLane;l.retryLane=m!==0&&m<f?m:f}}function um(l,f){ME(l,f),(l=l.alternate)&&ME(l,f)}function _E(l){if(l.tag===13||l.tag===31){var f=oa(l,67108864);f!==null&&so(f,l,67108864),um(l,67108864)}}function DE(l){if(l.tag===13||l.tag===31){var f=ka();f=Ga(f);var m=oa(l,f);m!==null&&so(m,l,f),um(l,f)}}var Iu=!0;function ha(l,f,m,v){var A=Z.T;Z.T=null;var O=ae.p;try{ae.p=2,ul(l,f,m,v)}finally{ae.p=O,Z.T=A}}function $s(l,f,m,v){var A=Z.T;Z.T=null;var O=ae.p;try{ae.p=8,ul(l,f,m,v)}finally{ae.p=O,Z.T=A}}function ul(l,f,m,v){if(Iu){var A=ea(v);if(A===null)M0(l,f,v,wy,m),pa(l,v);else if(Px(A,l,f,m,v))v.stopPropagation();else if(pa(l,v),f&4&&-1<na.indexOf(l)){for(;A!==null;){var O=vf(A);if(O!==null)switch(O.tag){case 3:if(O=O.stateNode,O.current.memoizedState.isDehydrated){var j=We(O.pendingLanes);if(j!==0){var ne=O;for(ne.pendingLanes|=2,ne.entangledLanes|=2;j;){var ve=1<<31-bn(j);ne.entanglements[1]|=ve,j&=~ve}Ll(O),(Hn&6)===0&&(Gp=Bt()+500,Qp(0))}}break;case 31:case 13:ne=oa(O,2),ne!==null&&so(ne,O,2),Fp(),um(O,2)}if(O=ea(v),O===null&&M0(l,f,v,wy,m),O===A)break;A=O}A!==null&&v.stopPropagation()}else M0(l,f,v,null,m)}}function ea(l){return l=qg(l),jx(l)}var wy=null;function jx(l){if(wy=null,l=yf(l),l!==null){var f=s(l);if(f===null)l=null;else{var m=f.tag;if(m===13){if(l=c(f),l!==null)return l;l=null}else if(m===31){if(l=d(f),l!==null)return l;l=null}else if(m===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;l=null}else f!==l&&(l=null)}}return wy=l,null}function cm(l){switch(l){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(Ze()){case be:return 2;case Ve:return 8;case nt:case pt:return 32;case ut:return 268435456;default:return 32}default:return 32}}var V0=!1,jl=null,Ti=null,ta=null,No=new Map,jc=new Map,za=[],na="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 pa(l,f){switch(l){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":Ti=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":No.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(f.pointerId)}}function cl(l,f,m,v,A,O){return l===null||l.nativeEvent!==O?(l={blockedOn:f,domEventName:m,eventSystemFlags:v,nativeEvent:O,targetContainers:[A]},f!==null&&(f=vf(f),f!==null&&_E(f)),l):(l.eventSystemFlags|=v,f=l.targetContainers,A!==null&&f.indexOf(A)===-1&&f.push(A),l)}function Px(l,f,m,v,A){switch(f){case"focusin":return jl=cl(jl,l,f,m,v,A),!0;case"dragenter":return Ti=cl(Ti,l,f,m,v,A),!0;case"mouseover":return ta=cl(ta,l,f,m,v,A),!0;case"pointerover":var O=A.pointerId;return No.set(O,cl(No.get(O)||null,l,f,m,v,A)),!0;case"gotpointercapture":return O=A.pointerId,jc.set(O,cl(jc.get(O)||null,l,f,m,v,A)),!0}return!1}function NE(l){var f=yf(l.target);if(f!==null){var m=s(f);if(m!==null){if(f=m.tag,f===13){if(f=c(m),f!==null){l.blockedOn=f,Pg(l.priority,function(){DE(m)});return}}else if(f===31){if(f=d(m),f!==null){l.blockedOn=f,Pg(l.priority,function(){DE(m)});return}}else if(f===3&&m.stateNode.current.memoizedState.isDehydrated){l.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Ty(l){if(l.blockedOn!==null)return!1;for(var f=l.targetContainers;0<f.length;){var m=ea(l.nativeEvent);if(m===null){m=l.nativeEvent;var v=new m.constructor(m.type,m);$h=v,m.target.dispatchEvent(v),$h=null}else return f=vf(m),f!==null&&_E(f),l.blockedOn=m,!1;f.shift()}return!0}function Ux(l,f,m){Ty(l)&&m.delete(f)}function fm(){V0=!1,jl!==null&&Ty(jl)&&(jl=null),Ti!==null&&Ty(Ti)&&(Ti=null),ta!==null&&Ty(ta)&&(ta=null),No.forEach(Ux),jc.forEach(Ux)}function dm(l,f){l.blockedOn===f&&(l.blockedOn=null,V0||(V0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,fm)))}var Hs=null;function Ay(l){Hs!==l&&(Hs=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Hs===l&&(Hs=null);for(var f=0;f<l.length;f+=3){var m=l[f],v=l[f+1],A=l[f+2];if(typeof v!="function"){if(jx(v||m)===null)continue;break}var O=vf(m);O!==null&&(l.splice(f,3),f-=3,z1(O,{pending:!0,data:A,method:m.method,action:v},v,A))}}))}function B0(l){function f(ve){return dm(ve,l)}jl!==null&&dm(jl,l),Ti!==null&&dm(Ti,l),ta!==null&&dm(ta,l),No.forEach(f),jc.forEach(f);for(var m=0;m<za.length;m++){var v=za[m];v.blockedOn===l&&(v.blockedOn=null)}for(;0<za.length&&(m=za[0],m.blockedOn===null);)NE(m),m.blockedOn===null&&za.shift();if(m=(l.ownerDocument||l).$$reactFormReplay,m!=null)for(v=0;v<m.length;v+=3){var A=m[v],O=m[v+1],j=A[Or]||null;if(typeof O=="function")j||Ay(m);else if(j){var ne=null;if(O&&O.hasAttribute("formAction")){if(A=O,j=O[Or]||null)ne=j.formAction;else if(jx(A)!==null)continue}else ne=j.action;typeof ne=="function"?m[v+1]=ne:(m.splice(v,3),v-=3),Ay(m)}}}function kE(){function l(O){O.canIntercept&&O.info==="react-transition"&&O.intercept({handler:function(){return new Promise(function(j){return A=j})},focusReset:"manual",scroll:"manual"})}function f(){A!==null&&(A(),A=null),v||setTimeout(m,20)}function m(){if(!v&&!navigation.transition){var O=navigation.currentEntry;O&&O.url!=null&&navigation.navigate(O.url,{state:O.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var v=!1,A=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",f),navigation.addEventListener("navigateerror",f),setTimeout(m,100),function(){v=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",f),navigation.removeEventListener("navigateerror",f),A!==null&&(A(),A=null)}}}function Cy(l){this._internalRoot=l}hm.prototype.render=Cy.prototype.render=function(l){var f=this._internalRoot;if(f===null)throw Error(i(409));var m=f.current,v=ka();sd(m,v,l,f,null,null)},hm.prototype.unmount=Cy.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var f=l.containerInfo;sd(l.current,2,null,l,null,null),Fp(),f[gf]=null}};function hm(l){this._internalRoot=l}hm.prototype.unstable_scheduleHydration=function(l){if(l){var f=E6();l={blockedOn:null,target:l,priority:f};for(var m=0;m<za.length&&f!==0&&f<za[m].priority;m++);za.splice(m,0,l),m===0&&NE(l)}};var zE=t.version;if(zE!=="19.2.4")throw Error(i(527,zE,"19.2.4"));ae.findDOMNode=function(l){var f=l._reactInternals;if(f===void 0)throw typeof l.render=="function"?Error(i(188)):(l=Object.keys(l).join(","),Error(i(268,l)));return l=y(f),l=l!==null?b(l):null,l=l===null?null:l.stateNode,l};var IE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pm.isDisabled&&pm.supportsFiber)try{Nt=pm.inject(IE),jt=pm}catch{}}return sv.createRoot=function(l,f){if(!o(l))throw Error(i(299));var m=!1,v="",A=$4,O=L1,j=H4;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(v=f.identifierPrefix),f.onUncaughtError!==void 0&&(A=f.onUncaughtError),f.onCaughtError!==void 0&&(O=f.onCaughtError),f.onRecoverableError!==void 0&&(j=f.onRecoverableError)),f=Sy(l,1,!1,null,null,m,v,null,A,O,j,kE),l[gf]=f.current,wx(l),new Cy(f)},sv.hydrateRoot=function(l,f,m){if(!o(l))throw Error(i(299));var v=!1,A="",O=$4,j=L1,ne=H4,ve=null;return m!=null&&(m.unstable_strictMode===!0&&(v=!0),m.identifierPrefix!==void 0&&(A=m.identifierPrefix),m.onUncaughtError!==void 0&&(O=m.onUncaughtError),m.onCaughtError!==void 0&&(j=m.onCaughtError),m.onRecoverableError!==void 0&&(ne=m.onRecoverableError),m.formState!==void 0&&(ve=m.formState)),f=Sy(l,1,!0,f,m??null,v,A,ve,O,j,ne,kE),f.context=Ey(null),m=f.current,v=ka(),v=Ga(v),A=xu(v),A.callback=null,Su(m,A,v),m=v,f.current.lanes=m,oi(f,m),Ll(f),l[gf]=f.current,wx(l),new hm(f)},sv.version="19.2.4",sv}var uv={},OC;function CV(){if(OC)return uv;OC=1;var e={};/**
 * @license React
 * react-dom-client.development.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.
 */return e.NODE_ENV!=="production"&&(function(){function t(r,a){for(r=r.memoizedState;r!==null&&0<a;)r=r.next,a--;return r}function n(r,a,u,g){if(u>=a.length)return g;var x=a[u],E=wi(r)?r.slice():yn({},r);return E[x]=n(r[x],a,u+1,g),E}function i(r,a,u){if(a.length!==u.length)console.warn("copyWithRename() expects paths of the same length");else{for(var g=0;g<u.length-1;g++)if(a[g]!==u[g]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return o(r,a,u,0)}}function o(r,a,u,g){var x=a[g],E=wi(r)?r.slice():yn({},r);return g+1===a.length?(E[u[g]]=E[x],wi(E)?E.splice(x,1):delete E[x]):E[x]=o(r[x],a,u,g+1),E}function s(r,a,u){var g=a[u],x=wi(r)?r.slice():yn({},r);return u+1===a.length?(wi(x)?x.splice(g,1):delete x[g],x):(x[g]=s(r[g],a,u+1),x)}function c(){return!1}function d(){return null}function h(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function y(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function b(){}function S(){}function T(r){var a=[];return r.forEach(function(u){a.push(u)}),a.sort().join(", ")}function w(r,a,u,g){return new F8(r,a,u,g)}function C(r,a){r.context===$0&&(Ax(r.current,2,a,r,null,null),Wf())}function M(r,a){if(Fs!==null){var u=a.staleFamilies;a=a.updatedFamilies,kc(),j6(r.current,a,u),Wf()}}function _(r){Fs=r}function k(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function z(r){var a=r,u=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(u=a.return),r=a.return;while(r)}return a.tag===3?u:null}function L(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function B(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function V(r){if(z(r)!==r)throw Error("Unable to find node on an unmounted component.")}function U(r){var a=r.alternate;if(!a){if(a=z(r),a===null)throw Error("Unable to find node on an unmounted component.");return a!==r?null:r}for(var u=r,g=a;;){var x=u.return;if(x===null)break;var E=x.alternate;if(E===null){if(g=x.return,g!==null){u=g;continue}break}if(x.child===E.child){for(E=x.child;E;){if(E===u)return V(x),r;if(E===g)return V(x),a;E=E.sibling}throw Error("Unable to find node on an unmounted component.")}if(u.return!==g.return)u=x,g=E;else{for(var R=!1,D=x.child;D;){if(D===u){R=!0,u=x,g=E;break}if(D===g){R=!0,g=x,u=E;break}D=D.sibling}if(!R){for(D=E.child;D;){if(D===u){R=!0,u=E,g=x;break}if(D===g){R=!0,g=E,u=x;break}D=D.sibling}if(!R)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(u.alternate!==g)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(u.tag!==3)throw Error("Unable to find node on an unmounted component.");return u.stateNode.current===u?r:a}function X(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=X(r),a!==null)return a;r=r.sibling}return null}function se(r){return r===null||typeof r!="object"?null:(r=od&&r[od]||r["@@iterator"],typeof r=="function"?r:null)}function ce(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===RE?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Ji:return"Fragment";case dy:return"Profiler";case z0:return"StrictMode";case uo:return"Suspense";case py:return"SuspenseList";case kx:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case k0:return"Portal";case Vl:return r.displayName||"Context";case hy:return(r._context.displayName||"Context")+".Consumer";case Nu:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ad:return a=r.displayName||null,a!==null?a:ce(r.type)||"Memo";case si:a=r._payload,r=r._init;try{return ce(r(a))}catch{}}return null}function ie(r){return typeof r.tag=="number"?ue(r):typeof r.name=="string"?r.name:null}function ue(r){var a=r.type;switch(r.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(a._context.displayName||"Context")+".Consumer";case 10:return a.displayName||"Context";case 18:return"DehydratedFragment";case 11:return r=a.render,r=r.displayName||r.name||"",a.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(a);case 8:return a===z0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;break;case 29:if(a=r._debugInfo,a!=null){for(var u=a.length-1;0<=u;u--)if(typeof a[u].name=="string")return a[u].name}if(r.return!==null)return ue(r.return)}return null}function $(r){return{current:r}}function le(r,a){0>ku?console.error("Unexpected pop."):(a!==Ix[ku]&&console.error("Unexpected Fiber popped."),r.current=zx[ku],zx[ku]=null,Ix[ku]=null,ku--)}function Q(r,a,u){ku++,zx[ku]=r.current,Ix[ku]=u,r.current=a}function oe(r){return r===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),r}function Z(r,a){Q(ll,a,r),Q(Us,r,r),Q(zu,null,r);var u=a.nodeType;switch(u){case 9:case 11:u=u===9?"#document":"#fragment",a=(a=a.documentElement)&&(a=a.namespaceURI)?_u(a):Ed;break;default:if(u=a.tagName,a=a.namespaceURI)a=_u(a),a=Fp(a,u);else switch(u){case"svg":a=rv;break;case"math":a=Aw;break;default:a=Ed}}u=u.toLowerCase(),u=Ph(null,u),u={context:a,ancestorInfo:u},le(zu,r),Q(zu,u,r)}function ae(r){le(zu,r),le(Us,r),le(ll,r)}function de(){return oe(zu.current)}function we(r){r.memoizedState!==null&&Q(am,r,r);var a=oe(zu.current),u=r.type,g=Fp(a.context,u);u=Ph(a.ancestorInfo,u),g={context:g,ancestorInfo:u},a!==g&&(Q(Us,r,r),Q(zu,g,r))}function te(r){Us.current===r&&(le(zu,r),le(Us,r)),am.current===r&&(le(am,r),_5._currentValue=Vm)}function F(){}function ee(){if(om===0){ld=console.log,I0=console.info,Lx=console.warn,lm=console.error,my=console.group,gy=console.groupCollapsed,sm=console.groupEnd;var r={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}om++}function Y(){if(om--,om===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:yn({},r,{value:ld}),info:yn({},r,{value:I0}),warn:yn({},r,{value:Lx}),error:yn({},r,{value:lm}),group:yn({},r,{value:my}),groupCollapsed:yn({},r,{value:gy}),groupEnd:yn({},r,{value:sm})})}0>om&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Re(r){var a=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=a,r.startsWith(`Error: react-stack-top-frame
`)&&(r=r.slice(29)),a=r.indexOf(`
`),a!==-1&&(r=r.slice(a+1)),a=r.indexOf("react_stack_bottom_frame"),a!==-1&&(a=r.lastIndexOf(`
`,a)),a!==-1)r=r.slice(0,a);else return"";return r}function Se(r){if(yy===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);yy=a&&a[1]||"",Vx=-1<u.stack.indexOf(`
    at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
`+yy+r+Vx}function _e(r,a){if(!r||Bx)return"";var u=vy.get(r);if(u!==void 0)return u;Bx=!0,u=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var g=null;g=$e.H,$e.H=null,ee();try{var x={DetermineComponentFrameRoot:function(){try{if(a){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(mt){var Le=mt}Reflect.construct(r,[],ge)}else{try{ge.call()}catch(mt){Le=mt}r.call(ge.prototype)}}else{try{throw Error()}catch(mt){Le=mt}(ge=r())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(mt){if(mt&&Le&&typeof mt.stack=="string")return[mt.stack,Le.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=x.DetermineComponentFrameRoot(),D=R[0],q=R[1];if(D&&q){var K=D.split(`
`),Ee=q.split(`
`);for(R=E=0;E<K.length&&!K[E].includes("DetermineComponentFrameRoot");)E++;for(;R<Ee.length&&!Ee[R].includes("DetermineComponentFrameRoot");)R++;if(E===K.length||R===Ee.length)for(E=K.length-1,R=Ee.length-1;1<=E&&0<=R&&K[E]!==Ee[R];)R--;for(;1<=E&&0<=R;E--,R--)if(K[E]!==Ee[R]){if(E!==1||R!==1)do if(E--,R--,0>R||K[E]!==Ee[R]){var Ae=`
`+K[E].replace(" at new "," at ");return r.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",r.displayName)),typeof r=="function"&&vy.set(r,Ae),Ae}while(1<=E&&0<=R);break}}}finally{Bx=!1,$e.H=g,Y(),Error.prepareStackTrace=u}return K=(K=r?r.displayName||r.name:"")?Se(K):"",typeof r=="function"&&vy.set(r,K),K}function je(r,a){switch(r.tag){case 26:case 27:case 5:return Se(r.type);case 16:return Se("Lazy");case 13:return r.child!==a&&a!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return _e(r.type,!1);case 11:return _e(r.type.render,!1);case 1:return _e(r.type,!0);case 31:return Se("Activity");default:return""}}function He(r){try{var a="",u=null;do{a+=je(r,u);var g=r._debugInfo;if(g)for(var x=g.length-1;0<=x;x--){var E=g[x];if(typeof E.name=="string"){var R=a;e:{var D=E.name,q=E.env,K=E.debugLocation;if(K!=null){var Ee=Re(K),Ae=Ee.lastIndexOf(`
`),ge=Ae===-1?Ee:Ee.slice(Ae+1);if(ge.indexOf(D)!==-1){var Le=`
`+ge;break e}}Le=Se(D+(q?" ["+q+"]":""))}a=R+Le}}u=r,r=r.return}while(r);return a}catch(mt){return`
Error generating stack: `+mt.message+`
`+mt.stack}}function Xe(r){return(r=r?r.displayName||r.name:"")?Se(r):""}function Qe(){if(Do===null)return null;var r=Do._debugOwner;return r!=null?ie(r):null}function et(){if(Do===null)return"";var r=Do;try{var a="";switch(r.tag===6&&(r=r.return),r.tag){case 26:case 27:case 5:a+=Se(r.type);break;case 13:a+=Se("Suspense");break;case 19:a+=Se("SuspenseList");break;case 31:a+=Se("Activity");break;case 30:case 0:case 15:case 1:r._debugOwner||a!==""||(a+=Xe(r.type));break;case 11:r._debugOwner||a!==""||(a+=Xe(r.type.render))}for(;r;)if(typeof r.tag=="number"){var u=r;r=u._debugOwner;var g=u._debugStack;if(r&&g){var x=Re(g);x!==""&&(a+=`
`+x)}}else if(r.debugStack!=null){var E=r.debugStack;(r=r.owner)&&E&&(a+=`
`+Re(E))}else break;var R=a}catch(D){R=`
Error generating stack: `+D.message+`
`+D.stack}return R}function Be(r,a,u,g,x,E,R){var D=Do;Me(r);try{return r!==null&&r._debugTask?r._debugTask.run(a.bind(null,u,g,x,E,R)):a(u,g,x,E,R)}finally{Me(D)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Me(r){$e.getCurrentStack=r===null?null:et,sl=!1,Do=r}function st(r){return typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object"}function Ot(r){try{return Kt(r),!1}catch{return!0}}function Kt(r){return""+r}function xt(r,a){if(Ot(r))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",a,st(r)),Kt(r)}function Ut(r,a){if(Ot(r))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",a,st(r)),Kt(r)}function dn(r){if(Ot(r))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",st(r)),Kt(r)}function mn(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Iu=a.inject(r),ha=a}catch(u){console.error("React instrumentation encountered an error: %o.",u)}return!!a.checkDCE}function at(r){if(typeof _E=="function"&&DE(r),ha&&typeof ha.setStrictMode=="function")try{ha.setStrictMode(Iu,r)}catch(a){$s||($s=!0,console.error("React instrumentation encountered an error: %o",a))}}function At(r){return r>>>=0,r===0?32:31-(wy(r)/jx|0)|0}function Mn(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),r}}function Bt(r,a,u){var g=r.pendingLanes;if(g===0)return 0;var x=0,E=r.suspendedLanes,R=r.pingedLanes;r=r.warmLanes;var D=g&134217727;return D!==0?(g=D&~E,g!==0?x=Mn(g):(R&=D,R!==0?x=Mn(R):u||(u=D&~r,u!==0&&(x=Mn(u))))):(D=g&~E,D!==0?x=Mn(D):R!==0?x=Mn(R):u||(u=g&~r,u!==0&&(x=Mn(u)))),x===0?0:a!==0&&a!==x&&(a&E)===0&&(E=x&-x,u=a&-a,E>=u||E===32&&(u&4194048)!==0)?a:x}function Ze(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function be(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Ve(){var r=jl;return jl<<=1,(jl&62914560)===0&&(jl=4194304),r}function nt(r){for(var a=[],u=0;31>u;u++)a.push(r);return a}function pt(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ut(r,a,u,g,x,E){var R=r.pendingLanes;r.pendingLanes=u,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=u,r.entangledLanes&=u,r.errorRecoveryDisabledLanes&=u,r.shellSuspendCounter=0;var D=r.entanglements,q=r.expirationTimes,K=r.hiddenUpdates;for(u=R&~u;0<u;){var Ee=31-ea(u),Ae=1<<Ee;D[Ee]=0,q[Ee]=-1;var ge=K[Ee];if(ge!==null)for(K[Ee]=null,Ee=0;Ee<ge.length;Ee++){var Le=ge[Ee];Le!==null&&(Le.lane&=-536870913)}u&=~Ae}g!==0&&yt(r,g,0),E!==0&&x===0&&r.tag!==0&&(r.suspendedLanes|=E&~(R&~a))}function yt(r,a,u){r.pendingLanes|=a,r.suspendedLanes&=~a;var g=31-ea(a);r.entangledLanes|=a,r.entanglements[g]=r.entanglements[g]|1073741824|u&261930}function gn(r,a){var u=r.entangledLanes|=a;for(r=r.entanglements;u;){var g=31-ea(u),x=1<<g;x&a|r[g]&a&&(r[g]|=a),u&=~x}}function Nt(r,a){var u=a&-a;return u=(u&42)!==0?1:jt(u),(u&(r.suspendedLanes|a))!==0?0:u}function jt(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Fn(r,a,u){if(ul)for(r=r.pendingUpdatersLaneMap;0<u;){var g=31-ea(u),x=1<<g;r[g].add(a),u&=~x}}function bn(r,a){if(ul)for(var u=r.pendingUpdatersLaneMap,g=r.memoizedUpdaters;0<a;){var x=31-ea(a);r=1<<x,x=u[x],0<x.size&&(x.forEach(function(E){var R=E.alternate;R!==null&&g.has(R)||g.add(E)}),x.clear()),a&=~r}}function Fr(r){return r&=-r,Ti<r?ta<r?(r&134217727)!==0?No:jc:ta:Ti}function cr(){var r=Kn.p;return r!==0?r:(r=window.event,r===void 0?No:uy(r.type))}function J(r,a){var u=Kn.p;try{return Kn.p=r,a()}finally{Kn.p=u}}function Oe(r){delete r[na],delete r[pa],delete r[Px],delete r[NE],delete r[Ty]}function tt(r){var a=r[na];if(a)return a;for(var u=r.parentNode;u;){if(a=u[cl]||u[na]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(r=ey(r);r!==null;){if(u=r[na])return u;r=ey(r)}return a}r=u,u=r.parentNode}return null}function Ne(r){if(r=r[na]||r[cl]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function We(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function wt(r){var a=r[Ux];return a||(a=r[Ux]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function vt(r){r[fm]=!0}function Yt(r,a){ct(r,a),ct(r+"Capture",a)}function ct(r,a){Hs[r]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),Hs[r]=a;var u=r.toLowerCase();for(Ay[u]=r,r==="onDoubleClick"&&(Ay.ondblclick=r),r=0;r<a.length;r++)dm.add(a[r])}function Bn(r,a){B0[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||console.error(r==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function oi(r){return Bl.call(hm,r)?!0:Bl.call(Cy,r)?!1:kE.test(r)?hm[r]=!0:(Cy[r]=!0,console.error("Invalid attribute name: `%s`",r),!1)}function Bg(r,a,u){if(oi(a)){if(!r.hasAttribute(a)){switch(typeof u){case"symbol":case"object":return u;case"function":return u;case"boolean":if(u===!1)return u}return u===void 0?void 0:null}return r=r.getAttribute(a),r===""&&u===!0?!0:(xt(u,a),r===""+u?u:r)}}function mf(r,a,u){if(oi(a))if(u===null)r.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var g=a.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){r.removeAttribute(a);return}}xt(u,a),r.setAttribute(a,""+u)}}function zh(r,a,u){if(u===null)r.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}xt(u,a),r.setAttribute(a,""+u)}}function is(r,a,u,g){if(g===null)r.removeAttribute(u);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(u);return}xt(g,u),r.setAttributeNS(a,u,""+g)}}function Ga(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return dn(r),r;default:return""}}function jg(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function E6(r,a,u){var g=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var x=g.get,E=g.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return x.call(this)},set:function(R){dn(R),u=""+R,E.call(this,R)}}),Object.defineProperty(r,a,{enumerable:g.enumerable}),{getValue:function(){return u},setValue:function(R){dn(R),u=""+R},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Pg(r){if(!r._valueTracker){var a=jg(r)?"checked":"value";r._valueTracker=E6(r,a,""+r[a])}}function fu(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var u=a.getValue(),g="";return r&&(g=jg(r)?r.checked?"true":"false":r.value),r=g,r!==u?(a.setValue(r),!0):!1}function pi(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Or(r){return r.replace(zE,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function gf(r,a){a.checked===void 0||a.defaultChecked===void 0||pm||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Qe()||"A component",a.type),pm=!0),a.value===void 0||a.defaultValue===void 0||IE||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Qe()||"A component",a.type),IE=!0)}function Ih(r,a,u,g,x,E,R,D){r.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?(xt(R,"type"),r.type=R):r.removeAttribute("type"),a!=null?R==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Ga(a)):r.value!==""+Ga(a)&&(r.value=""+Ga(a)):R!=="submit"&&R!=="reset"||r.removeAttribute("value"),a!=null?Pb(r,R,Ga(a)):u!=null?Pb(r,R,Ga(u)):g!=null&&r.removeAttribute("value"),x==null&&E!=null&&(r.defaultChecked=!!E),x!=null&&(r.checked=x&&typeof x!="function"&&typeof x!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?(xt(D,"name"),r.name=""+Ga(D)):r.removeAttribute("name")}function w6(r,a,u,g,x,E,R,D){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(xt(E,"type"),r.type=E),a!=null||u!=null){if(!(E!=="submit"&&E!=="reset"||a!=null)){Pg(r);return}u=u!=null?""+Ga(u):"",a=a!=null?""+Ga(a):u,D||a===r.value||(r.value=a),r.defaultValue=a}g=g??x,g=typeof g!="function"&&typeof g!="symbol"&&!!g,r.checked=D?r.checked:!!g,r.defaultChecked=!!g,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(xt(R,"name"),r.name=R),Pg(r)}function Pb(r,a,u){a==="number"&&pi(r.ownerDocument)===r||r.defaultValue===""+u||(r.defaultValue=""+u)}function Ub(r,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?Dx.Children.forEach(a.children,function(u){u==null||typeof u=="string"||typeof u=="number"||typeof u=="bigint"||f||(f=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):a.dangerouslySetInnerHTML==null||m||(m=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),a.selected==null||l||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),l=!0)}function Fd(){var r=Qe();return r?`

Check the render method of \``+r+"`.":""}function dc(r,a,u,g){if(r=r.options,a){a={};for(var x=0;x<u.length;x++)a["$"+u[x]]=!0;for(u=0;u<r.length;u++)x=a.hasOwnProperty("$"+r[u].value),r[u].selected!==x&&(r[u].selected=x),x&&g&&(r[u].defaultSelected=!0)}else{for(u=""+Ga(u),a=null,x=0;x<r.length;x++){if(r[x].value===u){r[x].selected=!0,g&&(r[x].defaultSelected=!0);return}a!==null||r[x].disabled||(a=r[x])}a!==null&&(a.selected=!0)}}function yf(r,a){for(r=0;r<A.length;r++){var u=A[r];if(a[u]!=null){var g=wi(a[u]);a.multiple&&!g?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,Fd()):!a.multiple&&g&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,Fd())}}a.value===void 0||a.defaultValue===void 0||v||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),v=!0)}function vf(r,a){a.value===void 0||a.defaultValue===void 0||O||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Qe()||"A component"),O=!0),a.children!=null&&a.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Yd(r,a,u){if(a!=null&&(a=""+Ga(a),a!==r.value&&(r.value=a),u==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=u!=null?""+Ga(u):""}function bf(r,a,u,g){if(a==null){if(g!=null){if(u!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(wi(g)){if(1<g.length)throw Error("<textarea> can only have at most one child.");g=g[0]}u=g}u==null&&(u=""),a=u}u=Ga(a),r.defaultValue=u,g=r.textContent,g===u&&g!==""&&g!==null&&(r.value=g),Pg(r)}function Si(r,a){return r.serverProps===void 0&&r.serverTail.length===0&&r.children.length===1&&3<r.distanceFromLeaf&&r.distanceFromLeaf>15-a?Si(r.children[0],a):r}function Fa(r){return"  "+"  ".repeat(r)}function xf(r){return"+ "+"  ".repeat(r)}function xo(r){return"- "+"  ".repeat(r)}function Sf(r){switch(r.tag){case 26:case 27:case 5:return r.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return r=r.type,r.displayName||r.name||null;case 11:return r=r.type.render,r.displayName||r.name||null;case 1:return r=r.type,r.displayName||r.name||null;default:return null}}function Lh(r,a){return j.test(r)?(r=JSON.stringify(r),r.length>a-2?8>a?'{"..."}':"{"+r.slice(0,a-7)+'..."}':"{"+r+"}"):r.length>a?5>a?'{"..."}':r.slice(0,a-3)+"...":r}function Vh(r,a,u){var g=120-2*u;if(a===null)return xf(u)+Lh(r,g)+`
`;if(typeof a=="string"){for(var x=0;x<a.length&&x<r.length&&a.charCodeAt(x)===r.charCodeAt(x);x++);return x>g-8&&10<x&&(r="..."+r.slice(x-8),a="..."+a.slice(x-8)),xf(u)+Lh(r,g)+`
`+xo(u)+Lh(a,g)+`
`}return Fa(u)+Lh(r,g)+`
`}function Ug(r){return Object.prototype.toString.call(r).replace(/^\[object (.*)\]$/,function(a,u){return u})}function Bh(r,a){switch(typeof r){case"string":return r=JSON.stringify(r),r.length>a?5>a?'"..."':r.slice(0,a-4)+'..."':r;case"object":if(r===null)return"null";if(wi(r))return"[...]";if(r.$$typeof===ol)return(a=ce(r.type))?"<"+a+">":"<...>";var u=Ug(r);if(u==="Object"){u="",a-=2;for(var g in r)if(r.hasOwnProperty(g)){var x=JSON.stringify(g);if(x!=='"'+g+'"'&&(g=x),a-=g.length-2,x=Bh(r[g],15>a?a:15),a-=x.length,0>a){u+=u===""?"...":", ...";break}u+=(u===""?"":",")+g+":"+x}return"{"+u+"}"}return u;case"function":return(a=r.displayName||r.name)?"function "+a:"function";default:return String(r)}}function du(r,a){return typeof r!="string"||j.test(r)?"{"+Bh(r,a-2)+"}":r.length>a-2?5>a?'"..."':'"'+r.slice(0,a-5)+'..."':'"'+r+'"'}function Xd(r,a,u){var g=120-u.length-r.length,x=[],E;for(E in a)if(a.hasOwnProperty(E)&&E!=="children"){var R=du(a[E],120-u.length-E.length-1);g-=E.length+R.length+2,x.push(E+"="+R)}return x.length===0?u+"<"+r+`>
`:0<g?u+"<"+r+" "+x.join(" ")+`>
`:u+"<"+r+`
`+u+"  "+x.join(`
`+u+"  ")+`
`+u+`>
`}function hu(r,a,u){var g="",x=yn({},a),E;for(E in r)if(r.hasOwnProperty(E)){delete x[E];var R=120-2*u-E.length-2,D=Bh(r[E],R);a.hasOwnProperty(E)?(R=Bh(a[E],R),g+=xf(u)+E+": "+D+`
`,g+=xo(u)+E+": "+R+`
`):g+=xf(u)+E+": "+D+`
`}for(var q in x)x.hasOwnProperty(q)&&(r=Bh(x[q],120-2*u-q.length-2),g+=xo(u)+q+": "+r+`
`);return g}function Yo(r,a,u,g){var x="",E=new Map;for(K in u)u.hasOwnProperty(K)&&E.set(K.toLowerCase(),K);if(E.size===1&&E.has("children"))x+=Xd(r,a,Fa(g));else{for(var R in a)if(a.hasOwnProperty(R)&&R!=="children"){var D=120-2*(g+1)-R.length-1,q=E.get(R.toLowerCase());if(q!==void 0){E.delete(R.toLowerCase());var K=a[R];q=u[q];var Ee=du(K,D);D=du(q,D),typeof K=="object"&&K!==null&&typeof q=="object"&&q!==null&&Ug(K)==="Object"&&Ug(q)==="Object"&&(2<Object.keys(K).length||2<Object.keys(q).length||-1<Ee.indexOf("...")||-1<D.indexOf("..."))?x+=Fa(g+1)+R+`={{
`+hu(K,q,g+2)+Fa(g+1)+`}}
`:(x+=xf(g+1)+R+"="+Ee+`
`,x+=xo(g+1)+R+"="+D+`
`)}else x+=Fa(g+1)+R+"="+du(a[R],D)+`
`}E.forEach(function(Ae){if(Ae!=="children"){var ge=120-2*(g+1)-Ae.length-1;x+=xo(g+1)+Ae+"="+du(u[Ae],ge)+`
`}}),x=x===""?Fa(g)+"<"+r+`>
`:Fa(g)+"<"+r+`
`+x+Fa(g)+`>
`}return r=u.children,a=a.children,typeof r=="string"||typeof r=="number"||typeof r=="bigint"?(E="",(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(E=""+a),x+=Vh(E,""+r,g+1)):(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(x=r==null?x+Vh(""+a,null,g+1):x+Vh(""+a,void 0,g+1)),x}function $b(r,a){var u=Sf(r);if(u===null){for(u="",r=r.child;r;)u+=$b(r,a),r=r.sibling;return u}return Fa(a)+"<"+u+`>
`}function Hb(r,a){var u=Si(r,a);if(u!==r&&(r.children.length!==1||r.children[0]!==u))return Fa(a)+`...
`+Hb(u,a+1);u="";var g=r.fiber._debugInfo;if(g)for(var x=0;x<g.length;x++){var E=g[x].name;typeof E=="string"&&(u+=Fa(a)+"<"+E+`>
`,a++)}if(g="",x=r.fiber.pendingProps,r.fiber.tag===6)g=Vh(x,r.serverProps,a),a++;else if(E=Sf(r.fiber),E!==null)if(r.serverProps===void 0){g=a;var R=120-2*g-E.length-2,D="";for(K in x)if(x.hasOwnProperty(K)&&K!=="children"){var q=du(x[K],15);if(R-=K.length+q.length+2,0>R){D+=" ...";break}D+=" "+K+"="+q}g=Fa(g)+"<"+E+D+`>
`,a++}else r.serverProps===null?(g=Xd(E,x,xf(a)),a++):typeof r.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(g=Yo(E,x,r.serverProps,a),a++);var K="";for(x=r.fiber.child,E=0;x&&E<r.children.length;)R=r.children[E],R.fiber===x?(K+=Hb(R,a),E++):K+=$b(x,a),x=x.sibling;for(x&&0<r.children.length&&(K+=Fa(a)+`...
`),x=r.serverTail,r.serverProps===null&&a--,r=0;r<x.length;r++)E=x[r],K=typeof E=="string"?K+(xo(a)+Lh(E,120-2*a)+`
`):K+Xd(E.type,E.props,xo(a));return u+g+K}function jh(r){try{return`

`+Hb(r,0)}catch{return""}}function qb(r,a,u){for(var g=a,x=null,E=0;g;)g===r&&(E=0),x={fiber:g,children:x!==null?[x]:[],serverProps:g===a?u:g===r?null:void 0,serverTail:[],distanceFromLeaf:E},E++,g=g.return;return x!==null?jh(x).replaceAll(/^[+-]/gm,">"):""}function Ph(r,a){var u=yn({},r||Ke),g={tag:a};return ve.indexOf(a)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),ze.indexOf(a)!==-1&&(u.pTagInButtonScope=null),ne.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(u.listItemTagAutoclosing=null,u.dlItemTagAutoclosing=null),u.current=g,a==="form"&&(u.formTag=g),a==="a"&&(u.aTagInScope=g),a==="button"&&(u.buttonTagInScope=g),a==="nobr"&&(u.nobrTagInScope=g),a==="p"&&(u.pTagInButtonScope=g),a==="li"&&(u.listItemTagAutoclosing=g),(a==="dd"||a==="dt")&&(u.dlItemTagAutoclosing=g),a==="#document"||a==="html"?u.containerTagInScope=null:u.containerTagInScope||(u.containerTagInScope=g),r!==null||a!=="#document"&&a!=="html"&&a!=="body"?u.implicitRootScope===!0&&(u.implicitRootScope=!1):u.implicitRootScope=!0,u}function T6(r,a,u){switch(a){case"select":return r==="hr"||r==="option"||r==="optgroup"||r==="script"||r==="template"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":if(u)break;return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":if(!u)return r==="html"}switch(r){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return qe.indexOf(a)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null;case"head":return u||a===null;case"html":return u&&a==="#document"||a===null;case"body":return u&&(a==="#document"||a==="html")||a===null}return!0}function Xo(r,a){switch(r){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null}function $g(r,a){for(;r;){switch(r.tag){case 5:case 26:case 27:if(r.type===a)return r}r=r.return}return null}function Hg(r,a){a=a||Ke;var u=a.current;if(a=(u=T6(r,u&&u.tag,a.implicitRootScope)?null:u)?null:Xo(r,a),a=u||a,!a)return!0;var g=a.tag;if(a=String(!!u)+"|"+r+"|"+g,Ie[a])return!1;Ie[a]=!0;var x=(a=Do)?$g(a.return,g):null,E=a!==null&&x!==null?qb(x,a,null):"",R="<"+r+">";return u?(u="",g==="table"&&r==="tr"&&(u+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
This will cause a hydration error.%s`,R,g,u,E)):console.error(`In HTML, %s cannot be a descendant of <%s>.
This will cause a hydration error.%s`,R,g,E),a&&(r=a.return,x===null||r===null||x===r&&r._debugOwner===a._debugOwner||Be(x,function(){console.error(`<%s> cannot contain a nested %s.
See this log for the ancestor stack trace.`,g,R)})),!1}function Wd(r,a,u){if(u||T6("#text",a,!1))return!0;if(u="#text|"+a,Ie[u])return!1;Ie[u]=!0;var g=(u=Do)?$g(u,a):null;return u=u!==null&&g!==null?qb(g,u,u.tag!==6?{children:null}:null):"",/\S/.test(r)?console.error(`In HTML, text nodes cannot be a child of <%s>.
This will cause a hydration error.%s`,a,u):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
This will cause a hydration error.%s`,a,u),!1}function as(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=a;return}}r.textContent=a}function A6(r){return r.replace(Te,function(a,u){return u.toUpperCase()})}function Gb(r,a,u){var g=a.indexOf("--")===0;g||(-1<a.indexOf("-")?Ye.hasOwnProperty(a)&&Ye[a]||(Ye[a]=!0,console.error("Unsupported style property %s. Did you mean %s?",a,A6(a.replace(De,"ms-")))):hr.test(a)?Ye.hasOwnProperty(a)&&Ye[a]||(Ye[a]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1))):!ke.test(u)||Lt.hasOwnProperty(u)&&Lt[u]||(Lt[u]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,u.replace(ke,""))),typeof u=="number"&&(isNaN(u)?qn||(qn=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",a)):isFinite(u)||_t||(_t=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",a)))),u==null||typeof u=="boolean"||u===""?g?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":g?r.setProperty(a,u):typeof u!="number"||u===0||hn.has(a)?a==="float"?r.cssFloat=u:(Ut(u,a),r[a]=(""+u).trim()):r[a]=u+"px"}function Ef(r,a,u){if(a!=null&&typeof a!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(a&&Object.freeze(a),r=r.style,u!=null){if(a){var g={};if(u){for(var x in u)if(u.hasOwnProperty(x)&&!a.hasOwnProperty(x))for(var E=Ue[x]||[x],R=0;R<E.length;R++)g[E[R]]=x}for(var D in a)if(a.hasOwnProperty(D)&&(!u||u[D]!==a[D]))for(x=Ue[D]||[D],E=0;E<x.length;E++)g[x[E]]=D;D={};for(var q in a)for(x=Ue[q]||[q],E=0;E<x.length;E++)D[x[E]]=q;q={};for(var K in g)if(x=g[K],(E=D[K])&&x!==E&&(R=x+","+E,!q[R])){q[R]=!0,R=console;var Ee=a[x];R.error.call(R,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ee==null||typeof Ee=="boolean"||Ee===""?"Removing":"Updating",x,E)}}for(var Ae in u)!u.hasOwnProperty(Ae)||a!=null&&a.hasOwnProperty(Ae)||(Ae.indexOf("--")===0?r.setProperty(Ae,""):Ae==="float"?r.cssFloat="":r[Ae]="");for(var ge in a)K=a[ge],a.hasOwnProperty(ge)&&u[ge]!==K&&Gb(r,ge,K)}else for(g in a)a.hasOwnProperty(g)&&Gb(r,g,a[g])}function Uh(r){if(r.indexOf("-")===-1)return!1;switch(r){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}}function Fb(r){return Pc.get(r)||r}function C6(r,a){if(Bl.call(Ry,a)&&Ry[a])return!0;if(pce.test(a)){if(r="aria-"+a.slice(4).toLowerCase(),r=aI.hasOwnProperty(r)?r:null,r==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Ry[a]=!0;if(a!==r)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,r),Ry[a]=!0}if(hce.test(a)){if(r=a.toLowerCase(),r=aI.hasOwnProperty(r)?r:null,r==null)return Ry[a]=!0,!1;a!==r&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,r),Ry[a]=!0)}return!0}function Yb(r,a){var u=[],g;for(g in a)C6(r,g)||u.push(g);a=u.map(function(x){return"`"+x+"`"}).join(", "),u.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,r):1<u.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,r)}function P8(r,a,u,g){if(Bl.call(ko,a)&&ko[a])return!0;var x=a.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ko[a]=!0;if(typeof u=="function"&&(r==="form"&&a==="action"||r==="input"&&a==="formAction"||r==="button"&&a==="formAction"))return!0;if(g!=null){if(r=g.possibleRegistrationNames,g.registrationNameDependencies.hasOwnProperty(a))return!0;if(g=r.hasOwnProperty(x)?r[x]:null,g!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",a,g),ko[a]=!0;if(lI.test(a))return console.error("Unknown event handler property `%s`. It will be ignored.",a),ko[a]=!0}else if(lI.test(a))return mce.test(a)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),ko[a]=!0;if(gce.test(a)||yce.test(a))return!0;if(x==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ko[a]=!0;if(x==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ko[a]=!0;if(x==="is"&&u!==null&&u!==void 0&&typeof u!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),ko[a]=!0;if(typeof u=="number"&&isNaN(u))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),ko[a]=!0;if(Oy.hasOwnProperty(x)){if(x=Oy[x],x!==a)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",a,x),ko[a]=!0}else if(a!==x)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,x),ko[a]=!0;switch(a){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof u){case"boolean":switch(a){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return x=a.toLowerCase().slice(0,5),x==="data-"||x==="aria-"?!0:(u?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,a,a,u,a):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,a,a,u,a,a,a),ko[a]=!0)}case"function":case"symbol":return ko[a]=!0,!1;case"string":if(u==="false"||u==="true"){switch(a){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,a,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,u),ko[a]=!0}}return!0}function U8(r,a,u){var g=[],x;for(x in a)P8(r,x,a[x],u)||g.push(x);a=g.map(function(E){return"`"+E+"`"}).join(", "),g.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,r):1<g.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,r)}function hc(r){return vce.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Gi(){}function $h(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}function qg(r){var a=Ne(r);if(a&&(r=a.stateNode)){var u=r[pa]||null;e:switch(r=a.stateNode,a.type){case"input":if(Ih(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=r;u.parentNode;)u=u.parentNode;for(xt(a,"name"),u=u.querySelectorAll('input[name="'+Or(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var g=u[a];if(g!==r&&g.form===r.form){var x=g[pa]||null;if(!x)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ih(g,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(a=0;a<u.length;a++)g=u[a],g.form===r.form&&fu(g)}break e;case"textarea":Yd(r,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&dc(r,!!u.multiple,a,!1)}}}function wf(r,a,u){if(rA)return r(a,u);rA=!0;try{var g=r(a);return g}finally{if(rA=!1,(My!==null||_y!==null)&&(Wf(),My&&(a=My,r=_y,_y=My=null,qg(a),r)))for(a=0;a<r.length;a++)qg(r[a])}}function os(r,a){var u=r.stateNode;if(u===null)return null;var g=u[pa]||null;if(g===null)return null;u=g[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(r=r.type,g=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!g;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof u+"` type.");return u}function Xb(){if(LE)return LE;var r,a=aA,u=a.length,g,x="value"in j0?j0.value:j0.textContent,E=x.length;for(r=0;r<u&&a[r]===x[r];r++);var R=u-r;for(g=1;g<=R&&a[u-g]===x[E-g];g++);return LE=x.slice(r,1<g?1-g:void 0)}function Qd(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Hh(){return!0}function Kd(){return!1}function Yr(r){function a(u,g,x,E,R){this._reactName=u,this._targetInst=x,this.type=g,this.nativeEvent=E,this.target=R,this.currentTarget=null;for(var D in r)r.hasOwnProperty(D)&&(u=r[D],this[D]=u?u(E):E[D]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Hh:Kd,this.isPropagationStopped=Kd,this}return yn(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Hh)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Hh)},persist:function(){},isPersistent:Hh}),a}function Wb(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=Dce[r])?!!a[r]:!1}function Tf(){return Wb}function pu(r,a){switch(r){case"keyup":return Hce.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==fI;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}function Fg(r,a){switch(r){case"compositionend":return Gg(a);case"keypress":return a.which!==hI?null:(mI=!0,pI);case"textInput":return r=a.data,r===pI&&mI?null:r;default:return null}}function O6(r,a){if(Dy)return r==="compositionend"||!uA&&pu(r,a)?(r=Xb(),LE=aA=j0=null,Dy=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return dI&&a.locale!=="ko"?null:a.data;default:return null}}function qh(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!Gce[r.type]:a==="textarea"}function Yg(r){if(!Uc)return!1;r="on"+r;var a=r in document;return a||(a=document.createElement("div"),a.setAttribute(r,"return;"),a=typeof a[r]=="function"),a}function Qb(r,a,u,g){My?_y?_y.push(g):_y=[g]:My=g,a=Bs(a,"onChange"),0<a.length&&(u=new VE("onChange","change",null,u,g),r.push({event:u,listeners:a}))}function Ya(r){io(r,0)}function ls(r){var a=We(r);if(fu(a))return r}function Gh(r,a){if(r==="change")return a}function Zd(){Yx&&(Yx.detachEvent("onpropertychange",R6),Xx=Yx=null)}function R6(r){if(r.propertyName==="value"&&ls(Xx)){var a=[];Qb(a,Xx,r,$h(r)),wf(Ya,a)}}function Kb(r,a,u){r==="focusin"?(Zd(),Yx=a,Xx=u,Yx.attachEvent("onpropertychange",R6)):r==="focusout"&&Zd()}function Zb(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ls(Xx)}function Fh(r,a){if(r==="click")return ls(a)}function Xg(r,a){if(r==="input"||r==="change")return ls(a)}function M6(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}function Yh(r,a){if(zo(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var u=Object.keys(r),g=Object.keys(a);if(u.length!==g.length)return!1;for(g=0;g<u.length;g++){var x=u[g];if(!Bl.call(a,x)||!zo(r[x],a[x]))return!1}return!0}function _6(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function D6(r,a){var u=_6(r);r=0;for(var g;u;){if(u.nodeType===3){if(g=r+u.textContent.length,r<=a&&g>=a)return{node:u,offset:a-r};r=g}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=_6(u)}}function Wg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Wg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function N6(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=pi(r.document);a instanceof r.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)r=a.contentWindow;else break;a=pi(r.document)}return a}function Jb(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function k6(r,a,u){var g=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;fA||Ny==null||Ny!==pi(g)||(g=Ny,"selectionStart"in g&&Jb(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Wx&&Yh(Wx,g)||(Wx=g,g=Bs(cA,"onSelect"),0<g.length&&(a=new VE("onSelect","select",null,a,u),r.push({event:a,listeners:g}),a.target=Ny)))}function Af(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}function Cf(r){if(dA[r])return dA[r];if(!ky[r])return r;var a=ky[r],u;for(u in a)if(a.hasOwnProperty(u)&&u in yI)return dA[r]=a[u];return r}function Wo(r,a){EI.set(r,a),Yt(a,[r])}function $8(r){for(var a=jE,u=0;u<r.length;u++){var g=r[u];if(typeof g=="object"&&g!==null)if(wi(g)&&g.length===2&&typeof g[0]=="string"){if(a!==jE&&a!==yA)return mA;a=yA}else return mA;else{if(typeof g=="function"||typeof g=="string"&&50<g.length||a!==jE&&a!==gA)return mA;a=gA}}return a}function e4(r,a,u,g){for(var x in r)Bl.call(r,x)&&x[0]!=="_"&&ss(x,r[x],a,u,g)}function ss(r,a,u,g,x){switch(typeof a){case"object":if(a===null){a="null";break}else{if(a.$$typeof===ol){var E=ce(a.type)||"…",R=a.key;a=a.props;var D=Object.keys(a),q=D.length;if(R==null&&q===0){a="<"+E+" />";break}if(3>g||q===1&&D[0]==="children"&&R==null){a="<"+E+" … />";break}u.push([x+"  ".repeat(g)+r,"<"+E]),R!==null&&ss("key",R,u,g+1,x),r=!1;for(var K in a)K==="children"?a.children!=null&&(!wi(a.children)||0<a.children.length)&&(r=!0):Bl.call(a,K)&&K[0]!=="_"&&ss(K,a[K],u,g+1,x);u.push(["",r?">…</"+E+">":"/>"]);return}if(E=Object.prototype.toString.call(a),E=E.slice(8,E.length-1),E==="Array"){if(K=$8(a),K===gA||K===jE){a=JSON.stringify(a);break}else if(K===yA){for(u.push([x+"  ".repeat(g)+r,""]),r=0;r<a.length;r++)E=a[r],ss(E[0],E[1],u,g+1,x);return}}if(E==="Promise"){if(a.status==="fulfilled"){if(E=u.length,ss(r,a.value,u,g,x),u.length>E){u=u[E],u[1]="Promise<"+(u[1]||"Object")+">";return}}else if(a.status==="rejected"&&(E=u.length,ss(r,a.reason,u,g,x),u.length>E)){u=u[E],u[1]="Rejected Promise<"+u[1]+">";return}u.push(["  ".repeat(g)+r,"Promise"]);return}E==="Object"&&(K=Object.getPrototypeOf(a))&&typeof K.constructor=="function"&&(E=K.constructor.name),u.push([x+"  ".repeat(g)+r,E==="Object"?3>g?"":"…":E]),3>g&&e4(a,u,g+1,x);return}case"function":a=a.name===""?"() => {}":a.name+"() {}";break;case"string":a=a===Zce?"…":JSON.stringify(a);break;case"undefined":a="undefined";break;case"boolean":a=a?"true":"false";break;default:a=String(a)}u.push([x+"  ".repeat(g)+r,a])}function z6(r,a,u,g){var x=!0;for(R in r)R in a||(u.push([PE+"  ".repeat(g)+R,"…"]),x=!1);for(var E in a)if(E in r){var R=r[E],D=a[E];if(R!==D){if(g===0&&E==="children")x="  ".repeat(g)+E,u.push([PE+x,"…"],[UE+x,"…"]);else{if(!(3<=g)){if(typeof R=="object"&&typeof D=="object"&&R!==null&&D!==null&&R.$$typeof===D.$$typeof)if(D.$$typeof===ol){if(R.type===D.type&&R.key===D.key){R=ce(D.type)||"…",x="  ".repeat(g)+E,R="<"+R+" … />",u.push([PE+x,R],[UE+x,R]),x=!1;continue}}else{var q=Object.prototype.toString.call(R),K=Object.prototype.toString.call(D);if(q===K&&(K==="[object Object]"||K==="[object Array]")){q=[AI+"  ".repeat(g)+E,K==="[object Array]"?"Array":""],u.push(q),K=u.length,z6(R,D,u,g+1)?K===u.length&&(q[1]="Referentially unequal but deeply equal objects. Consider memoization."):x=!1;continue}}else if(typeof R=="function"&&typeof D=="function"&&R.name===D.name&&R.length===D.length&&(q=Function.prototype.toString.call(R),K=Function.prototype.toString.call(D),q===K)){R=D.name===""?"() => {}":D.name+"() {}",u.push([AI+"  ".repeat(g)+E,R+" Referentially unequal function closure. Consider memoization."]);continue}}ss(E,R,u,g,PE),ss(E,D,u,g,UE)}x=!1}}else u.push([UE+"  ".repeat(g)+E,"…"]),x=!1;return x}function So(r){$n=r&63?"Blocking":r&64?"Gesture":r&4194176?"Transition":r&62914560?"Suspense":r&2080374784?"Idle":"Other"}function us(r,a,u,g){kr&&(U0.start=a,U0.end=u,ud.color="warning",ud.tooltipText=g,ud.properties=null,(r=r._debugTask)?r.run(performance.measure.bind(performance,g,U0)):performance.measure(g,U0))}function Qg(r,a,u){us(r,a,u,"Reconnect")}function Kg(r,a,u,g,x){var E=ue(r);if(E!==null&&kr){var R=r.alternate,D=r.actualDuration;if(R===null||R.child!==r.child)for(var q=r.child;q!==null;q=q.sibling)D-=q.actualDuration;g=.5>D?g?"tertiary-light":"primary-light":10>D?g?"tertiary":"primary":100>D?g?"tertiary-dark":"primary-dark":"error";var K=r.memoizedProps;D=r._debugTask,K!==null&&R!==null&&R.memoizedProps!==K?(q=[Jce],K=z6(R.memoizedProps,K,q,0),1<q.length&&(K&&!P0&&(R.lanes&x)===0&&100<r.actualDuration?(P0=!0,q[0]=efe,ud.color="warning",ud.tooltipText=CI):(ud.color=g,ud.tooltipText=E),ud.properties=q,U0.start=a,U0.end=u,D!=null?D.run(performance.measure.bind(performance,"​"+E,U0)):performance.measure("​"+E,U0))):D!=null?D.run(console.timeStamp.bind(console,E,a,u,qs,void 0,g)):console.timeStamp(E,a,u,qs,void 0,g)}}function Zg(r,a,u,g){if(kr){var x=ue(r);if(x!==null){for(var E=null,R=[],D=0;D<g.length;D++){var q=g[D];E==null&&q.source!==null&&(E=q.source._debugTask),q=q.value,R.push(["Error",typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q)])}r.key!==null&&ss("key",r.key,R,0,""),r.memoizedProps!==null&&e4(r.memoizedProps,R,0,""),E==null&&(E=r._debugTask),r={start:a,end:u,detail:{devtools:{color:"error",track:qs,tooltipText:r.tag===13?"Hydration failed":"Error boundary caught an error",properties:R}}},E?E.run(performance.measure.bind(performance,"​"+x,r)):performance.measure("​"+x,r)}}}function cs(r,a,u,g,x){if(x!==null){if(kr){var E=ue(r);if(E!==null){g=[];for(var R=0;R<x.length;R++){var D=x[R].value;g.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r.key!==null&&ss("key",r.key,g,0,""),r.memoizedProps!==null&&e4(r.memoizedProps,g,0,""),a={start:a,end:u,detail:{devtools:{color:"error",track:qs,tooltipText:"A lifecycle or effect errored",properties:g}}},(r=r._debugTask)?r.run(performance.measure.bind(performance,"​"+E,a)):performance.measure("​"+E,a)}}}else E=ue(r),E!==null&&kr&&(x=1>g?"secondary-light":100>g?"secondary":500>g?"secondary-dark":"error",(r=r._debugTask)?r.run(console.timeStamp.bind(console,E,a,u,qs,void 0,x)):console.timeStamp(E,a,u,qs,void 0,x))}function H8(r,a,u,g){if(kr&&!(a<=r)){var x=(u&738197653)===u?"tertiary-dark":"primary-dark";u=(u&536870912)===u?"Prepared":(u&201326741)===u?"Hydrated":"Render",g?g.run(console.timeStamp.bind(console,u,r,a,$n,Pn,x)):console.timeStamp(u,r,a,$n,Pn,x)}}function I6(r,a,u,g){!kr||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Prewarm",r,a,$n,Pn,u)):console.timeStamp("Prewarm",r,a,$n,Pn,u))}function L6(r,a,u,g){!kr||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Suspended",r,a,$n,Pn,u)):console.timeStamp("Suspended",r,a,$n,Pn,u))}function q8(r,a,u,g,x,E){if(kr&&!(a<=r)){u=[];for(var R=0;R<g.length;R++){var D=g[R].value;u.push(["Recoverable Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r={start:r,end:a,detail:{devtools:{color:"primary-dark",track:$n,trackGroup:Pn,tooltipText:x?"Hydration Failed":"Recovered after Error",properties:u}}},E?E.run(performance.measure.bind(performance,"Recovered",r)):performance.measure("Recovered",r)}}function t4(r,a,u,g){!kr||a<=r||(g?g.run(console.timeStamp.bind(console,"Errored",r,a,$n,Pn,"error")):console.timeStamp("Errored",r,a,$n,Pn,"error"))}function G8(r,a,u,g){!kr||a<=r||(g?g.run(console.timeStamp.bind(console,u,r,a,$n,Pn,"secondary-light")):console.timeStamp(u,r,a,$n,Pn,"secondary-light"))}function V6(r,a,u,g,x){if(kr&&!(a<=r)){for(var E=[],R=0;R<u.length;R++){var D=u[R].value;E.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r={start:r,end:a,detail:{devtools:{color:"error",track:$n,trackGroup:Pn,tooltipText:g?"Remaining Effects Errored":"Commit Errored",properties:E}}},x?x.run(performance.measure.bind(performance,"Errored",r)):performance.measure("Errored",r)}}function n4(r,a,u){!kr||a<=r||console.timeStamp("Animating",r,a,$n,Pn,"secondary-dark")}function Jd(){for(var r=zy,a=vA=zy=0;a<r;){var u=Gs[a];Gs[a++]=null;var g=Gs[a];Gs[a++]=null;var x=Gs[a];Gs[a++]=null;var E=Gs[a];if(Gs[a++]=null,g!==null&&x!==null){var R=g.pending;R===null?x.next=x:(x.next=R.next,R.next=x),g.pending=x}E!==0&&i4(u,x,E)}}function pc(r,a,u,g){Gs[zy++]=r,Gs[zy++]=a,Gs[zy++]=u,Gs[zy++]=g,vA|=g,r.lanes|=g,r=r.alternate,r!==null&&(r.lanes|=g)}function r4(r,a,u,g){return pc(r,a,u,g),Xh(r)}function Fi(r,a){return pc(r,null,null,a),Xh(r)}function i4(r,a,u){r.lanes|=u;var g=r.alternate;g!==null&&(g.lanes|=u);for(var x=!1,E=r.return;E!==null;)E.childLanes|=u,g=E.alternate,g!==null&&(g.childLanes|=u),E.tag===22&&(r=E.stateNode,r===null||r._visibility&Qx||(x=!0)),r=E,E=E.return;return r.tag===3?(E=r.stateNode,x&&a!==null&&(x=31-ea(u),r=E.hiddenUpdates,g=r[x],g===null?r[x]=[a]:g.push(a),a.lane=u|536870912),E):null}function Xh(r){if(w5>gfe)throw Dm=w5=0,T5=KA=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Dm>yfe&&(Dm=0,T5=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),r.alternate===null&&(r.flags&4098)!==0&&ox(r);for(var a=r,u=a.return;u!==null;)a.alternate===null&&(a.flags&4098)!==0&&ox(r),a=u,u=a.return;return a.tag===3?a.stateNode:null}function mc(r){if(Fs===null)return r;var a=Fs(r);return a===void 0?r:a.current}function Jg(r){if(Fs===null)return r;var a=Fs(r);return a===void 0?r!=null&&typeof r.render=="function"&&(a=mc(r.render),r.render!==a)?(a={$$typeof:Nu,render:a},r.displayName!==void 0&&(a.displayName=r.displayName),a):r:a.current}function Of(r,a){if(Fs===null)return!1;var u=r.elementType;a=a.type;var g=!1,x=typeof a=="object"&&a!==null?a.$$typeof:null;switch(r.tag){case 1:typeof a=="function"&&(g=!0);break;case 0:(typeof a=="function"||x===si)&&(g=!0);break;case 11:(x===Nu||x===si)&&(g=!0);break;case 14:case 15:(x===ad||x===si)&&(g=!0);break;default:return!1}return!!(g&&(r=Fs(u),r!==void 0&&r===Fs(a)))}function B6(r){Fs!==null&&typeof WeakSet=="function"&&(Iy===null&&(Iy=new WeakSet),Iy.add(r))}function j6(r,a,u){do{var g=r,x=g.alternate,E=g.child,R=g.sibling,D=g.tag;g=g.type;var q=null;switch(D){case 0:case 15:case 1:q=g;break;case 11:q=g.render}if(Fs===null)throw Error("Expected resolveFamily to be set during hot reload.");var K=!1;if(g=!1,q!==null&&(q=Fs(q),q!==void 0&&(u.has(q)?g=!0:a.has(q)&&(D===1?g=!0:K=!0))),Iy!==null&&(Iy.has(r)||x!==null&&Iy.has(x))&&(g=!0),g&&(r._debugNeedsRemount=!0),(g||K)&&(x=Fi(r,2),x!==null&&Br(x,r,2)),E===null||g||j6(E,a,u),R===null)break;r=R}while(!0)}function F8(r,a,u,g){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,OI||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function e1(r){return r=r.prototype,!(!r||!r.isReactComponent)}function fs(r,a){var u=r.alternate;switch(u===null?(u=w(r.tag,a,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u._debugOwner=r._debugOwner,u._debugStack=r._debugStack,u._debugTask=r._debugTask,u._debugHookTypes=r._debugHookTypes,u.alternate=r,r.alternate=u):(u.pendingProps=a,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null,u.actualDuration=-0,u.actualStartTime=-1.1),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,a=r.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u.selfBaseDuration=r.selfBaseDuration,u.treeBaseDuration=r.treeBaseDuration,u._debugInfo=r._debugInfo,u._debugNeedsRemount=r._debugNeedsRemount,u.tag){case 0:case 15:u.type=mc(r.type);break;case 1:u.type=mc(r.type);break;case 11:u.type=Jg(r.type)}return u}function e0(r,a){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},r.selfBaseDuration=u.selfBaseDuration,r.treeBaseDuration=u.treeBaseDuration),r}function Rf(r,a,u,g,x,E){var R=0,D=r;if(typeof r=="function")e1(r)&&(R=1),D=mc(D);else if(typeof r=="string")R=de(),R=_n(r,u,R)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case kx:return a=w(31,u,a,x),a.elementType=kx,a.lanes=E,a;case Ji:return ds(u.children,x,E,a);case z0:R=8,x|=co,x|=Lu;break;case dy:return r=u,g=x,typeof r.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id),a=w(12,r,a,g|xn),a.elementType=dy,a.lanes=E,a.stateNode={effectDuration:0,passiveEffectDuration:0},a;case uo:return a=w(13,u,a,x),a.elementType=uo,a.lanes=E,a;case py:return a=w(19,u,a,x),a.elementType=py,a.lanes=E,a;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Vl:R=10;break e;case hy:R=9;break e;case Nu:R=11,D=Jg(D);break e;case ad:R=14;break e;case si:R=16,D=null;break e}D="",(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),r===null?u="null":wi(r)?u="array":r!==void 0&&r.$$typeof===ol?(u="<"+(ce(r.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):u=typeof r,(R=g?ie(g):null)&&(D+=`

Check the render method of \``+R+"`."),R=29,u=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(u+"."+D)),D=null}return a=w(R,u,a,x),a.elementType=r,a.type=D,a.lanes=E,a._debugOwner=g,a}function t1(r,a,u){return a=Rf(r.type,r.key,r.props,r._owner,a,u),a._debugOwner=r._owner,a._debugStack=r._debugStack,a._debugTask=r._debugTask,a}function ds(r,a,u,g){return r=w(7,r,g,a),r.lanes=u,r}function n1(r,a,u){return r=w(6,r,null,a),r.lanes=u,r}function a4(r){var a=w(18,null,null,Zt);return a.stateNode=r,a}function Wh(r,a,u){return a=w(4,r.children!==null?r.children:[],r.key,a),a.lanes=u,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}function Ta(r,a){if(typeof r=="object"&&r!==null){var u=bA.get(r);return u!==void 0?u:(a={value:r,source:a,stack:He(a)},bA.set(r,a),a)}return{value:r,source:a,stack:He(a)}}function hs(r,a){gc(),Ly[Vy++]=Kx,Ly[Vy++]=$E,$E=r,Kx=a}function o4(r,a,u){gc(),Ys[Xs++]=fd,Ys[Xs++]=dd,Ys[Xs++]=gm,gm=r;var g=fd;r=dd;var x=32-ea(g)-1;g&=~(1<<x),u+=1;var E=32-ea(a)+x;if(30<E){var R=x-x%5;E=(g&(1<<R)-1).toString(32),g>>=R,x-=R,fd=1<<32-ea(a)+x|u<<x|g,dd=E+r}else fd=1<<E|u<<x|g,dd=r}function r1(r){gc(),r.return!==null&&(hs(r,1),o4(r,1,0))}function l4(r){for(;r===$E;)$E=Ly[--Vy],Ly[Vy]=null,Kx=Ly[--Vy],Ly[Vy]=null;for(;r===gm;)gm=Ys[--Xs],Ys[Xs]=null,dd=Ys[--Xs],Ys[Xs]=null,fd=Ys[--Xs],Ys[Xs]=null}function P6(){return gc(),gm!==null?{id:fd,overflow:dd}:null}function U6(r,a){gc(),Ys[Xs++]=fd,Ys[Xs++]=dd,Ys[Xs++]=gm,fd=a.id,dd=a.overflow,gm=r}function gc(){In||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Mf(r,a){if(r.return===null){if(Pl===null)Pl={fiber:r,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a};else{if(Pl.fiber!==r)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Pl.distanceFromLeaf>a&&(Pl.distanceFromLeaf=a)}return Pl}var u=Mf(r.return,a+1).children;return 0<u.length&&u[u.length-1].fiber===r?(u=u[u.length-1],u.distanceFromLeaf>a&&(u.distanceFromLeaf=a),u):(a={fiber:r,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a},u.push(a),a)}function Xa(){In&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function yc(r,a){$c||(r=Mf(r,0),r.serverProps=null,a!==null&&(a=bE(a),r.serverTail.push(a)))}function mu(r){var a=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,u="",g=Pl;throw g!==null&&(Pl=null,u=jh(g)),ps(Ta(Error("Hydration failed because the server rendered "+(a?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:

- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.

It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.

https://react.dev/link/hydration-mismatch`+u),r)),xA}function s4(r){var a=r.stateNode,u=r.type,g=r.memoizedProps;switch(a[na]=r,a[pa]=g,Ic(u,g),u){case"dialog":sn("cancel",a),sn("close",a);break;case"iframe":case"object":case"embed":sn("load",a);break;case"video":case"audio":for(u=0;u<A5.length;u++)sn(A5[u],a);break;case"source":sn("error",a);break;case"img":case"image":case"link":sn("error",a),sn("load",a);break;case"details":sn("toggle",a);break;case"input":Bn("input",g),sn("invalid",a),gf(a,g),w6(a,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"option":Ub(a,g);break;case"select":Bn("select",g),sn("invalid",a),yf(a,g);break;case"textarea":Bn("textarea",g),sn("invalid",a),vf(a,g),bf(a,g.value,g.defaultValue,g.children)}u=g.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||g.suppressHydrationWarning===!0||Gp(a.textContent,u)?(g.popover!=null&&(sn("beforetoggle",a),sn("toggle",a)),g.onScroll!=null&&sn("scroll",a),g.onScrollEnd!=null&&sn("scrollend",a),g.onClick!=null&&(a.onclick=Gi),a=!0):a=!1,a||mu(r,!0)}function u4(r){for(Ia=r.return;Ia;)switch(Ia.tag){case 5:case 31:case 13:Ws=!1;return;case 27:case 3:Ws=!0;return;default:Ia=Ia.return}}function _f(r){if(r!==Ia)return!1;if(!In)return u4(r),In=!0,!1;var a=r.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=r.type,u=!(u!=="form"&&u!=="button")||Yp(r.type,r.memoizedProps)),u=!u),u&&zr){for(u=zr;u;){var g=Mf(r,0),x=bE(u);g.serverTail.push(x),u=x.type==="Suspense"?Vc(u):_o(u.nextSibling)}mu(r)}if(u4(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");zr=Vc(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");zr=Vc(r)}else a===27?(a=zr,Du(r.type)?(r=uC,uC=null,zr=r):zr=a):zr=Ia?_o(r.stateNode.nextSibling):null;return!0}function gu(){zr=Ia=null,$c=In=!1}function c4(){var r=H0;return r!==null&&(Bo===null?Bo=r:Bo.push.apply(Bo,r),H0=null),r}function ps(r){H0===null?H0=[r]:H0.push(r)}function Qh(){var r=Pl;if(r!==null){Pl=null;for(var a=jh(r);0<r.children.length;)r=r.children[0];Be(r.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:

- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.

It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.

%s%s`,"https://react.dev/link/hydration-mismatch",a)})}}function vc(){By=HE=null,jy=!1}function ms(r,a,u){Q(SA,a._currentValue,r),a._currentValue=u,Q(EA,a._currentRenderer,r),a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==MI&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=MI}function gs(r,a){r._currentValue=SA.current;var u=EA.current;le(EA,a),r._currentRenderer=u,le(SA,a)}function yu(r,a,u){for(;r!==null;){var g=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,g!==null&&(g.childLanes|=a)):g!==null&&(g.childLanes&a)!==a&&(g.childLanes|=a),r===u)break;r=r.return}r!==u&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function bc(r,a,u,g){var x=r.child;for(x!==null&&(x.return=r);x!==null;){var E=x.dependencies;if(E!==null){var R=x.child;E=E.firstContext;e:for(;E!==null;){var D=E;E=x;for(var q=0;q<a.length;q++)if(D.context===a[q]){E.lanes|=u,D=E.alternate,D!==null&&(D.lanes|=u),yu(E.return,u,r),g||(R=null);break e}E=D.next}}else if(x.tag===18){if(R=x.return,R===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");R.lanes|=u,E=R.alternate,E!==null&&(E.lanes|=u),yu(R,u,r),R=null}else R=x.child;if(R!==null)R.return=x;else for(R=x;R!==null;){if(R===r){R=null;break}if(x=R.sibling,x!==null){x.return=R.return,R=x;break}R=R.return}x=R}}function xc(r,a,u,g){r=null;for(var x=a,E=!1;x!==null;){if(!E){if((x.flags&524288)!==0)E=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var R=x.alternate;if(R===null)throw Error("Should have a current fiber. This is a bug in React.");if(R=R.memoizedProps,R!==null){var D=x.type;zo(x.pendingProps.value,R.value)||(r!==null?r.push(D):r=[D])}}else if(x===am.current){if(R=x.alternate,R===null)throw Error("Should have a current fiber. This is a bug in React.");R.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(r!==null?r.push(_5):r=[_5])}x=x.return}r!==null&&bc(a,r,u,g),a.flags|=262144}function Kh(r){for(r=r.firstContext;r!==null;){if(!zo(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Eo(r){HE=r,By=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function br(r){return jy&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),f4(HE,r)}function Zh(r,a){return HE===null&&Eo(r),f4(r,a)}function f4(r,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},By===null){if(r===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");By=a,r.dependencies={lanes:0,firstContext:a,_debugThenableState:null},r.flags|=524288}else By=By.next=a;return u}function d4(){return{controller:new rfe,data:new Map,refCount:0}}function Df(r){r.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),r.refCount++}function Jh(r){r.refCount--,0>r.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),r.refCount===0&&ife(afe,function(){r.controller.abort()})}function Cl(r,a,u){(r&127)!==0?0>Hc&&(Hc=Vi(),Jx=qE(a),wA=a,u!=null&&(TA=ue(u)),(Gn&(ia|Hl))!==ya&&(ui=!0,G0=Zx),r=A0(),a=T0(),r!==Py||a!==e5?Py=-1.1:a!==null&&(G0=Zx),bm=r,e5=a):(r&4194048)!==0&&0>Qs&&(Qs=Vi(),t5=qE(a),_I=a,u!=null&&(DI=ue(u)),0>gd)&&(r=A0(),a=T0(),(r!==Y0||a!==xm)&&(Y0=-1.1),F0=r,xm=a)}function $6(r){if(0>Hc){Hc=Vi(),Jx=r._debugTask!=null?r._debugTask:null,(Gn&(ia|Hl))!==ya&&(G0=Zx);var a=A0(),u=T0();a!==Py||u!==e5?Py=-1.1:u!==null&&(G0=Zx),bm=a,e5=u}0>Qs&&(Qs=Vi(),t5=r._debugTask!=null?r._debugTask:null,0>gd)&&(r=A0(),a=T0(),(r!==Y0||a!==xm)&&(Y0=-1.1),F0=r,xm=a)}function Ol(){var r=ym;return ym=0,r}function Wa(r){var a=ym;return ym=r,a}function Sc(r){var a=ym;return ym+=r,a}function Aa(){Xt=$t=-1.1}function zi(){var r=$t;return $t=-1.1,r}function Ca(r){0<=r&&($t=r)}function wo(){var r=ei;return ei=-0,r}function To(r){0<=r&&(ei=r)}function Qo(){var r=jr;return jr=null,r}function oa(){var r=ui;return ui=!1,r}function i1(r){Io=Vi(),0>r.actualStartTime&&(r.actualStartTime=Io)}function t0(r){if(0<=Io){var a=Vi()-Io;r.actualDuration+=a,r.selfBaseDuration=a,Io=-1}}function Nf(r){if(0<=Io){var a=Vi()-Io;r.actualDuration+=a,Io=-1}}function ys(){if(0<=Io){var r=Vi(),a=r-Io;Io=-1,ym+=a,ei+=a,Xt=r}}function Qa(r){jr===null&&(jr=[]),jr.push(r),pd===null&&(pd=[]),pd.push(r)}function Ko(){Io=Vi(),0>$t&&($t=Io)}function Ao(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function H6(r,a){if(r5===null){var u=r5=[];CA=0,Sm=Hn(),Uy={status:"pending",value:void 0,then:function(g){u.push(g)}}}return CA++,a.then(ep,ep),a}function ep(){if(--CA===0&&(-1<Qs||(gd=-1.1),r5!==null)){Uy!==null&&(Uy.status="fulfilled");var r=r5;r5=null,Sm=0,Uy=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function kf(r,a){var u=[],g={status:"pending",value:null,reason:null,then:function(x){u.push(x)}};return r.then(function(){g.status="fulfilled",g.value=a;for(var x=0;x<u.length;x++)(0,u[x])(a)},function(x){for(g.status="rejected",g.reason=x,x=0;x<u.length;x++)(0,u[x])(void 0)}),g}function tp(){var r=Em.current;return r!==null?r:wr.pooledCache}function np(r,a){a===null?Q(Em,Em.current,r):Q(Em,a.pool,r)}function a1(){var r=tp();return r===null?null:{parent:Li._currentValue,pool:r}}function h4(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Co(r){return r=r.status,r==="fulfilled"||r==="rejected"}function zf(r,a,u){$e.actQueue!==null&&($e.didUsePromise=!0);var g=r.thenables;if(u=g[u],u===void 0?g.push(a):u!==a&&(r.didWarnAboutUncachedPromise||(r.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),a.then(Gi,Gi),a=u),a._debugInfo===void 0){r=performance.now(),g=a.displayName;var x={name:typeof g=="string"?g:"Promise",start:r,end:r,value:a};a._debugInfo=[{awaited:x}],a.status!=="fulfilled"&&a.status!=="rejected"&&(r=function(){x.end=performance.now()},a.then(r,r))}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,n0(r),r;default:if(typeof a.status=="string")a.then(Gi,Gi);else{if(r=wr,r!==null&&100<r.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");r=a,r.status="pending",r.then(function(E){if(a.status==="pending"){var R=a;R.status="fulfilled",R.value=E}},function(E){if(a.status==="pending"){var R=a;R.status="rejected",R.reason=E}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,n0(r),r}throw Tm=a,c5=!0,$y}}function Oo(r){try{return cfe(r)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Tm=a,c5=!0,$y):a}}function rp(){if(Tm===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var r=Tm;return Tm=null,c5=!1,r}function n0(r){if(r===$y||r===ZE)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function fr(r){var a=Sn;return r!=null&&(Sn=a===null?r:a.concat(r)),a}function Ka(){var r=Sn;if(r!=null){for(var a=r.length-1;0<=a;a--)if(r[a].name!=null){var u=r[a].debugTask;if(u!=null)return u}}return null}function Rl(r,a,u){for(var g=Object.keys(r.props),x=0;x<g.length;x++){var E=g[x];if(E!=="children"&&E!=="key"){a===null&&(a=t1(r,u.mode,0),a._debugInfo=Sn,a.return=u),Be(a,function(R){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R)},E);break}}}function Ro(r){var a=f5;return f5+=1,Hy===null&&(Hy=h4()),zf(Hy,r,a)}function Za(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function vs(r,a){throw a.$$typeof===Nx?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
- Multiple copies of the "react" package is used.
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.`):(r=Object.prototype.toString.call(a),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead."))}function ip(r,a){var u=Ka();u!==null?u.run(vs.bind(null,r,a)):vs(r,a)}function o1(r,a){var u=ue(r)||"Component";KI[u]||(KI[u]=!0,a=a.displayName||a.name||"Component",r.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
  root.render(%s)`,a,a,a):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
  <%s>{%s}</%s>`,a,a,u,a,u))}function r0(r,a){var u=Ka();u!==null?u.run(o1.bind(null,r,a)):o1(r,a)}function p4(r,a){var u=ue(r)||"Component";ZI[u]||(ZI[u]=!0,a=String(a),r.tag===3?console.error(`Symbols are not valid as a React child.
  root.render(%s)`,a):console.error(`Symbols are not valid as a React child.
  <%s>%s</%s>`,u,a,u))}function mi(r,a){var u=Ka();u!==null?u.run(p4.bind(null,r,a)):p4(r,a)}function xr(r){function a(he,ye){if(r){var xe=he.deletions;xe===null?(he.deletions=[ye],he.flags|=16):xe.push(ye)}}function u(he,ye){if(!r)return null;for(;ye!==null;)a(he,ye),ye=ye.sibling;return null}function g(he){for(var ye=new Map;he!==null;)he.key!==null?ye.set(he.key,he):ye.set(he.index,he),he=he.sibling;return ye}function x(he,ye){return he=fs(he,ye),he.index=0,he.sibling=null,he}function E(he,ye,xe){return he.index=xe,r?(xe=he.alternate,xe!==null?(xe=xe.index,xe<ye?(he.flags|=67108866,ye):xe):(he.flags|=67108866,ye)):(he.flags|=1048576,ye)}function R(he){return r&&he.alternate===null&&(he.flags|=67108866),he}function D(he,ye,xe,Ge){return ye===null||ye.tag!==6?(ye=n1(xe,he.mode,Ge),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye):(ye=x(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function q(he,ye,xe,Ge){var bt=xe.type;return bt===Ji?(ye=Ee(he,ye,xe.props.children,Ge,xe.key),Rl(xe,ye,he),ye):ye!==null&&(ye.elementType===bt||Of(ye,xe)||typeof bt=="object"&&bt!==null&&bt.$$typeof===si&&Oo(bt)===ye.type)?(ye=x(ye,xe.props),Za(ye,xe),ye.return=he,ye._debugOwner=xe._owner,ye._debugInfo=Sn,ye):(ye=t1(xe,he.mode,Ge),Za(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function K(he,ye,xe,Ge){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==xe.containerInfo||ye.stateNode.implementation!==xe.implementation?(ye=Wh(xe,he.mode,Ge),ye.return=he,ye._debugInfo=Sn,ye):(ye=x(ye,xe.children||[]),ye.return=he,ye._debugInfo=Sn,ye)}function Ee(he,ye,xe,Ge,bt){return ye===null||ye.tag!==7?(ye=ds(xe,he.mode,Ge,bt),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye):(ye=x(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function Ae(he,ye,xe){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=n1(""+ye,he.mode,xe),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case ol:return xe=t1(ye,he.mode,xe),Za(xe,ye),xe.return=he,he=fr(ye._debugInfo),xe._debugInfo=Sn,Sn=he,xe;case k0:return ye=Wh(ye,he.mode,xe),ye.return=he,ye._debugInfo=Sn,ye;case si:var Ge=fr(ye._debugInfo);return ye=Oo(ye),he=Ae(he,ye,xe),Sn=Ge,he}if(wi(ye)||se(ye))return xe=ds(ye,he.mode,xe,null),xe.return=he,xe._debugOwner=he,xe._debugTask=he._debugTask,he=fr(ye._debugInfo),xe._debugInfo=Sn,Sn=he,xe;if(typeof ye.then=="function")return Ge=fr(ye._debugInfo),he=Ae(he,Ro(ye),xe),Sn=Ge,he;if(ye.$$typeof===Vl)return Ae(he,Zh(he,ye),xe);ip(he,ye)}return typeof ye=="function"&&r0(he,ye),typeof ye=="symbol"&&mi(he,ye),null}function ge(he,ye,xe,Ge){var bt=ye!==null?ye.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return bt!==null?null:D(he,ye,""+xe,Ge);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case ol:return xe.key===bt?(bt=fr(xe._debugInfo),he=q(he,ye,xe,Ge),Sn=bt,he):null;case k0:return xe.key===bt?K(he,ye,xe,Ge):null;case si:return bt=fr(xe._debugInfo),xe=Oo(xe),he=ge(he,ye,xe,Ge),Sn=bt,he}if(wi(xe)||se(xe))return bt!==null?null:(bt=fr(xe._debugInfo),he=Ee(he,ye,xe,Ge,null),Sn=bt,he);if(typeof xe.then=="function")return bt=fr(xe._debugInfo),he=ge(he,ye,Ro(xe),Ge),Sn=bt,he;if(xe.$$typeof===Vl)return ge(he,ye,Zh(he,xe),Ge);ip(he,xe)}return typeof xe=="function"&&r0(he,xe),typeof xe=="symbol"&&mi(he,xe),null}function Le(he,ye,xe,Ge,bt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return he=he.get(xe)||null,D(ye,he,""+Ge,bt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case ol:return xe=he.get(Ge.key===null?xe:Ge.key)||null,he=fr(Ge._debugInfo),ye=q(ye,xe,Ge,bt),Sn=he,ye;case k0:return he=he.get(Ge.key===null?xe:Ge.key)||null,K(ye,he,Ge,bt);case si:var on=fr(Ge._debugInfo);return Ge=Oo(Ge),ye=Le(he,ye,xe,Ge,bt),Sn=on,ye}if(wi(Ge)||se(Ge))return xe=he.get(xe)||null,he=fr(Ge._debugInfo),ye=Ee(ye,xe,Ge,bt,null),Sn=he,ye;if(typeof Ge.then=="function")return on=fr(Ge._debugInfo),ye=Le(he,ye,xe,Ro(Ge),bt),Sn=on,ye;if(Ge.$$typeof===Vl)return Le(he,ye,xe,Zh(ye,Ge),bt);ip(ye,Ge)}return typeof Ge=="function"&&r0(ye,Ge),typeof Ge=="symbol"&&mi(ye,Ge),null}function mt(he,ye,xe,Ge){if(typeof xe!="object"||xe===null)return Ge;switch(xe.$$typeof){case ol:case k0:S(he,ye,xe);var bt=xe.key;if(typeof bt!="string")break;if(Ge===null){Ge=new Set,Ge.add(bt);break}if(!Ge.has(bt)){Ge.add(bt);break}Be(ye,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",bt)});break;case si:xe=Oo(xe),mt(he,ye,xe,Ge)}return Ge}function Et(he,ye,xe,Ge){for(var bt=null,on=null,Pt=null,Dt=ye,vn=ye=0,Ir=null;Dt!==null&&vn<xe.length;vn++){Dt.index>vn?(Ir=Dt,Dt=null):Ir=Dt.sibling;var Ci=ge(he,Dt,xe[vn],Ge);if(Ci===null){Dt===null&&(Dt=Ir);break}bt=mt(he,Ci,xe[vn],bt),r&&Dt&&Ci.alternate===null&&a(he,Dt),ye=E(Ci,ye,vn),Pt===null?on=Ci:Pt.sibling=Ci,Pt=Ci,Dt=Ir}if(vn===xe.length)return u(he,Dt),In&&hs(he,vn),on;if(Dt===null){for(;vn<xe.length;vn++)Dt=Ae(he,xe[vn],Ge),Dt!==null&&(bt=mt(he,Dt,xe[vn],bt),ye=E(Dt,ye,vn),Pt===null?on=Dt:Pt.sibling=Dt,Pt=Dt);return In&&hs(he,vn),on}for(Dt=g(Dt);vn<xe.length;vn++)Ir=Le(Dt,he,vn,xe[vn],Ge),Ir!==null&&(bt=mt(he,Ir,xe[vn],bt),r&&Ir.alternate!==null&&Dt.delete(Ir.key===null?vn:Ir.key),ye=E(Ir,ye,vn),Pt===null?on=Ir:Pt.sibling=Ir,Pt=Ir);return r&&Dt.forEach(function(Td){return a(he,Td)}),In&&hs(he,vn),on}function Mr(he,ye,xe,Ge){if(xe==null)throw Error("An iterable object provided no iterator.");for(var bt=null,on=null,Pt=ye,Dt=ye=0,vn=null,Ir=null,Ci=xe.next();Pt!==null&&!Ci.done;Dt++,Ci=xe.next()){Pt.index>Dt?(vn=Pt,Pt=null):vn=Pt.sibling;var Td=ge(he,Pt,Ci.value,Ge);if(Td===null){Pt===null&&(Pt=vn);break}Ir=mt(he,Td,Ci.value,Ir),r&&Pt&&Td.alternate===null&&a(he,Pt),ye=E(Td,ye,Dt),on===null?bt=Td:on.sibling=Td,on=Td,Pt=vn}if(Ci.done)return u(he,Pt),In&&hs(he,Dt),bt;if(Pt===null){for(;!Ci.done;Dt++,Ci=xe.next())Pt=Ae(he,Ci.value,Ge),Pt!==null&&(Ir=mt(he,Pt,Ci.value,Ir),ye=E(Pt,ye,Dt),on===null?bt=Pt:on.sibling=Pt,on=Pt);return In&&hs(he,Dt),bt}for(Pt=g(Pt);!Ci.done;Dt++,Ci=xe.next())vn=Le(Pt,he,Dt,Ci.value,Ge),vn!==null&&(Ir=mt(he,vn,Ci.value,Ir),r&&vn.alternate!==null&&Pt.delete(vn.key===null?Dt:vn.key),ye=E(vn,ye,Dt),on===null?bt=vn:on.sibling=vn,on=vn);return r&&Pt.forEach(function(zfe){return a(he,zfe)}),In&&hs(he,Dt),bt}function Un(he,ye,xe,Ge){if(typeof xe=="object"&&xe!==null&&xe.type===Ji&&xe.key===null&&(Rl(xe,null,he),xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case ol:var bt=fr(xe._debugInfo);e:{for(var on=xe.key;ye!==null;){if(ye.key===on){if(on=xe.type,on===Ji){if(ye.tag===7){u(he,ye.sibling),Ge=x(ye,xe.props.children),Ge.return=he,Ge._debugOwner=xe._owner,Ge._debugInfo=Sn,Rl(xe,Ge,he),he=Ge;break e}}else if(ye.elementType===on||Of(ye,xe)||typeof on=="object"&&on!==null&&on.$$typeof===si&&Oo(on)===ye.type){u(he,ye.sibling),Ge=x(ye,xe.props),Za(Ge,xe),Ge.return=he,Ge._debugOwner=xe._owner,Ge._debugInfo=Sn,he=Ge;break e}u(he,ye);break}else a(he,ye);ye=ye.sibling}xe.type===Ji?(Ge=ds(xe.props.children,he.mode,Ge,xe.key),Ge.return=he,Ge._debugOwner=he,Ge._debugTask=he._debugTask,Ge._debugInfo=Sn,Rl(xe,Ge,he),he=Ge):(Ge=t1(xe,he.mode,Ge),Za(Ge,xe),Ge.return=he,Ge._debugInfo=Sn,he=Ge)}return he=R(he),Sn=bt,he;case k0:e:{for(bt=xe,xe=bt.key;ye!==null;){if(ye.key===xe)if(ye.tag===4&&ye.stateNode.containerInfo===bt.containerInfo&&ye.stateNode.implementation===bt.implementation){u(he,ye.sibling),Ge=x(ye,bt.children||[]),Ge.return=he,he=Ge;break e}else{u(he,ye);break}else a(he,ye);ye=ye.sibling}Ge=Wh(bt,he.mode,Ge),Ge.return=he,he=Ge}return R(he);case si:return bt=fr(xe._debugInfo),xe=Oo(xe),he=Un(he,ye,xe,Ge),Sn=bt,he}if(wi(xe))return bt=fr(xe._debugInfo),he=Et(he,ye,xe,Ge),Sn=bt,he;if(se(xe)){if(bt=fr(xe._debugInfo),on=se(xe),typeof on!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Pt=on.call(xe);return Pt===xe?(he.tag!==0||Object.prototype.toString.call(he.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Pt)!=="[object Generator]")&&(WI||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),WI=!0):xe.entries!==on||_A||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),_A=!0),he=Mr(he,ye,Pt,Ge),Sn=bt,he}if(typeof xe.then=="function")return bt=fr(xe._debugInfo),he=Un(he,ye,Ro(xe),Ge),Sn=bt,he;if(xe.$$typeof===Vl)return Un(he,ye,Zh(he,xe),Ge);ip(he,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(bt=""+xe,ye!==null&&ye.tag===6?(u(he,ye.sibling),Ge=x(ye,bt),Ge.return=he,he=Ge):(u(he,ye),Ge=n1(bt,he.mode,Ge),Ge.return=he,Ge._debugOwner=he,Ge._debugTask=he._debugTask,Ge._debugInfo=Sn,he=Ge),R(he)):(typeof xe=="function"&&r0(he,xe),typeof xe=="symbol"&&mi(he,xe),u(he,ye))}return function(he,ye,xe,Ge){var bt=Sn;Sn=null;try{f5=0;var on=Un(he,ye,xe,Ge);return Hy=null,on}catch(Ir){if(Ir===$y||Ir===ZE)throw Ir;var Pt=w(29,Ir,null,he.mode);Pt.lanes=Ge,Pt.return=he;var Dt=Pt._debugInfo=Sn;if(Pt._debugOwner=he._debugOwner,Pt._debugTask=he._debugTask,Dt!=null){for(var vn=Dt.length-1;0<=vn;vn--)if(typeof Dt[vn].stack=="string"){Pt._debugOwner=Dt[vn],Pt._debugTask=Dt[vn].debugTask;break}}return Pt}finally{Sn=bt}}}function kn(r,a){var u=wi(r);return r=!u&&typeof se(r)=="function",u||r?(u=u?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",u,a,u),!1):!0}function bs(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ja(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function xs(r){return{lane:r,tag:eL,payload:null,callback:null,next:null}}function Oa(r,a,u){var g=r.updateQueue;if(g===null)return null;if(g=g.shared,NA===g&&!rL){var x=ue(r);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.

Please update the following component: %s`,x),rL=!0}return(Gn&ia)!==ya?(x=g.pending,x===null?a.next=a:(a.next=x.next,x.next=a),g.pending=a,a=Xh(r),i4(r,null,u),a):(pc(r,g,a,u),Xh(r))}function i0(r,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var g=a.lanes;g&=r.pendingLanes,u|=g,a.lanes=u,gn(r,u)}}function ap(r,a){var u=r.updateQueue,g=r.alternate;if(g!==null&&(g=g.updateQueue,u===g)){var x=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var R={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?x=E=R:E=E.next=R,u=u.next}while(u!==null);E===null?x=E=a:E=E.next=a}else x=E=a;u={baseState:g.baseState,firstBaseUpdate:x,lastBaseUpdate:E,shared:g.shared,callbacks:g.callbacks},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=a:r.next=a,u.lastBaseUpdate=a}function Ss(){if(kA){var r=Uy;if(r!==null)throw r}}function Ml(r,a,u,g){kA=!1;var x=r.updateQueue;X0=!1,NA=x.shared;var E=x.firstBaseUpdate,R=x.lastBaseUpdate,D=x.shared.pending;if(D!==null){x.shared.pending=null;var q=D,K=q.next;q.next=null,R===null?E=K:R.next=K,R=q;var Ee=r.alternate;Ee!==null&&(Ee=Ee.updateQueue,D=Ee.lastBaseUpdate,D!==R&&(D===null?Ee.firstBaseUpdate=K:D.next=K,Ee.lastBaseUpdate=q))}if(E!==null){var Ae=x.baseState;R=0,Ee=K=q=null,D=E;do{var ge=D.lane&-536870913,Le=ge!==D.lane;if(Le?(En&ge)===ge:(g&ge)===ge){ge!==0&&ge===Sm&&(kA=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{ge=r;var mt=D,Et=a,Mr=u;switch(mt.tag){case tL:if(mt=mt.payload,typeof mt=="function"){jy=!0;var Un=mt.call(Mr,Ae,Et);if(ge.mode&co){at(!0);try{mt.call(Mr,Ae,Et)}finally{at(!1)}}jy=!1,Ae=Un;break e}Ae=mt;break e;case DA:ge.flags=ge.flags&-65537|128;case eL:if(Un=mt.payload,typeof Un=="function"){if(jy=!0,mt=Un.call(Mr,Ae,Et),ge.mode&co){at(!0);try{Un.call(Mr,Ae,Et)}finally{at(!1)}}jy=!1}else mt=Un;if(mt==null)break e;Ae=yn({},Ae,mt);break e;case nL:X0=!0}}ge=D.callback,ge!==null&&(r.flags|=64,Le&&(r.flags|=8192),Le=x.callbacks,Le===null?x.callbacks=[ge]:Le.push(ge))}else Le={lane:ge,tag:D.tag,payload:D.payload,callback:D.callback,next:null},Ee===null?(K=Ee=Le,q=Ae):Ee=Ee.next=Le,R|=ge;if(D=D.next,D===null){if(D=x.shared.pending,D===null)break;Le=D,D=Le.next,Le.next=null,x.lastBaseUpdate=Le,x.shared.pending=null}}while(!0);Ee===null&&(q=Ae),x.baseState=q,x.firstBaseUpdate=K,x.lastBaseUpdate=Ee,E===null&&(x.shared.lanes=0),K0|=R,r.lanes=R,r.memoizedState=Ae}NA=null}function l1(r,a){if(typeof r!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+r);r.call(a)}function op(r,a){var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)l1(u[r],a)}function s1(r,a){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)l1(u[r],a)}function Ec(r,a){var u=Gc;Q(ew,u,r),Q(qy,a,r),Gc=u|a.baseLanes}function _l(r){Q(ew,Gc,r),Q(qy,qy.current,r)}function Es(r){Gc=ew.current,le(qy,r),le(ew,r)}function la(r){var a=r.alternate;Q(Ai,Ai.current&Gy,r),Q(Ul,r,r),Ks===null&&(a===null||qy.current!==null||a.memoizedState!==null)&&(Ks=r)}function lp(r){Q(Ai,Ai.current,r),Q(Ul,r,r),Ks===null&&(Ks=r)}function u1(r){r.tag===22?(Q(Ai,Ai.current,r),Q(Ul,r,r),Ks===null&&(Ks=r)):Mo(r)}function Mo(r){Q(Ai,Ai.current,r),Q(Ul,Ul.current,r)}function sa(r){le(Ul,r),Ks===r&&(Ks=null),le(Ai,r)}function ws(r){for(var a=r;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||gx(u)||J1(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Vt(){var r=Pe;Js===null?Js=[r]:Js.push(r)}function rt(){var r=Pe;if(Js!==null&&(bd++,Js[bd]!==r)){var a=ue(an);if(!iL.has(a)&&(iL.add(a),Js!==null)){for(var u="",g=0;g<=bd;g++){var x=Js[g],E=g===bd?r:x;for(x=g+1+". "+x;30>x.length;)x+=" ";x+=E+`
`,u+=x}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks

   Previous render            Next render
   ------------------------------------------------------
%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,a,u)}}}function If(r){r==null||wi(r)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Pe,typeof r)}function c1(){var r=ue(an);oL.has(r)||(oL.add(r),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",r))}function Xr(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function m4(r,a){if(p5)return!1;if(a===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Pe),!1;r.length!==a.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.

Previous: %s
Incoming: %s`,Pe,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var u=0;u<a.length&&u<r.length;u++)if(!zo(r[u],a[u]))return!1;return!0}function Wr(r,a,u,g,x,E){yd=E,an=a,Js=r!==null?r._debugHookTypes:null,bd=-1,p5=r!==null&&r.type!==a.type,(Object.prototype.toString.call(u)==="[object AsyncFunction]"||Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]")&&(E=ue(an),zA.has(E)||(zA.add(E),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",E===null?"An unknown Component":"<"+E+">"))),a.memoizedState=null,a.updateQueue=null,a.lanes=0,$e.H=r!==null&&r.memoizedState!==null?LA:Js!==null?lL:IA,Cm=E=(a.mode&co)!==Zt;var R=OA(u,g,x);if(Cm=!1,Yy&&(R=Lf(a,u,g,x)),E){at(!0);try{R=Lf(a,u,g,x)}finally{at(!1)}}return f1(r,a),R}function f1(r,a){a._debugHookTypes=Js,a.dependencies===null?vd!==null&&(a.dependencies={lanes:0,firstContext:null,_debugThenableState:vd}):a.dependencies._debugThenableState=vd,$e.H=m5;var u=Er!==null&&Er.next!==null;if(yd=0,Js=Pe=Bi=Er=an=null,bd=-1,r!==null&&(r.flags&65011712)!==(a.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),nw=!1,h5=0,vd=null,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");r===null||ji||(r=r.dependencies,r!==null&&Kh(r)&&(ji=!0)),c5?(c5=!1,r=!0):r=!1,r&&(a=ue(a)||"Unknown",aL.has(a)||zA.has(a)||(aL.add(a),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Lf(r,a,u,g){an=r;var x=0;do{if(Yy&&(vd=null),h5=0,Yy=!1,x>=dfe)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(x+=1,p5=!1,Bi=Er=null,r.updateQueue!=null){var E=r.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}bd=-1,$e.H=sL,E=OA(a,u,g)}while(Yy);return E}function sp(){var r=$e.H,a=r.useState()[0];return a=typeof a.then=="function"?a0(a):a,r=r.useState()[0],(Er!==null?Er.memoizedState:null)!==r&&(an.flags|=1024),a}function up(){var r=rw!==0;return rw=0,r}function wc(r,a,u){a.updateQueue=r.updateQueue,a.flags=(a.mode&Lu)!==Zt?a.flags&-402655237:a.flags&-2053,r.lanes&=~u}function Tc(r){if(nw){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}nw=!1}yd=0,Js=Bi=Er=an=null,bd=-1,Pe=null,Yy=!1,h5=rw=0,vd=null}function Ra(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bi===null?an.memoizedState=Bi=r:Bi=Bi.next=r,Bi}function Wn(){if(Er===null){var r=an.alternate;r=r!==null?r.memoizedState:null}else r=Er.next;var a=Bi===null?an.memoizedState:Bi.next;if(a!==null)Bi=a,Er=r;else{if(r===null)throw an.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Er=r,r={memoizedState:Er.memoizedState,baseState:Er.baseState,baseQueue:Er.baseQueue,queue:Er.queue,next:null},Bi===null?an.memoizedState=Bi=r:Bi=Bi.next=r}return Bi}function d1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function a0(r){var a=h5;return h5+=1,vd===null&&(vd=h4()),r=zf(vd,r,a),a=an,(Bi===null?a.memoizedState:Bi.next)===null&&(a=a.alternate,$e.H=a!==null&&a.memoizedState!==null?LA:IA),r}function eo(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return a0(r);if(r.$$typeof===Vl)return br(r)}throw Error("An unsupported type was passed to use(): "+String(r))}function vu(r){var a=null,u=an.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var g=an.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(a={data:g.data.map(function(x){return x.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=d1(),an.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0||p5)for(u=a.data[a.index]=Array(r),g=0;g<r;g++)u[g]=J8;else u.length!==r&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",u.length,r);return a.index++,u}function to(r,a){return typeof a=="function"?a(r):a}function h1(r,a,u){var g=Ra();if(u!==void 0){var x=u(a);if(Cm){at(!0);try{u(a)}finally{at(!1)}}}else x=a;return g.memoizedState=g.baseState=x,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:x},g.queue=r,r=r.dispatch=w4.bind(null,an,r),[g.memoizedState,r]}function Dl(r){var a=Wn();return cp(a,Er,r)}function cp(r,a,u){var g=r.queue;if(g===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");g.lastRenderedReducer=u;var x=r.baseQueue,E=g.pending;if(E!==null){if(x!==null){var R=x.next;x.next=E.next,E.next=R}a.baseQueue!==x&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=x=E,g.pending=null}if(E=r.baseState,x===null)r.memoizedState=E;else{a=x.next;var D=R=null,q=null,K=a,Ee=!1;do{var Ae=K.lane&-536870913;if(Ae!==K.lane?(En&Ae)===Ae:(yd&Ae)===Ae){var ge=K.revertLane;if(ge===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),Ae===Sm&&(Ee=!0);else if((yd&ge)===ge){K=K.next,ge===Sm&&(Ee=!0);continue}else Ae={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},q===null?(D=q=Ae,R=E):q=q.next=Ae,an.lanes|=ge,K0|=ge;Ae=K.action,Cm&&u(E,Ae),E=K.hasEagerState?K.eagerState:u(E,Ae)}else ge={lane:Ae,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},q===null?(D=q=ge,R=E):q=q.next=ge,an.lanes|=Ae,K0|=Ae;K=K.next}while(K!==null&&K!==a);if(q===null?R=E:q.next=D,!zo(E,r.memoizedState)&&(ji=!0,Ee&&(u=Uy,u!==null)))throw u;r.memoizedState=E,r.baseState=R,r.baseQueue=q,g.lastRenderedState=E}return x===null&&(g.lanes=0),[r.memoizedState,g.dispatch]}function Ac(r){var a=Wn(),u=a.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=r;var g=u.dispatch,x=u.pending,E=a.memoizedState;if(x!==null){u.pending=null;var R=x=x.next;do E=r(E,R.action),R=R.next;while(R!==x);zo(E,a.memoizedState)||(ji=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),u.lastRenderedState=E}return[E,g]}function o0(r,a,u){var g=an,x=Ra();if(In){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var E=u();Fy||E===u()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Fy=!0)}else{if(E=a(),Fy||(u=a(),zo(E,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fy=!0)),wr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(En&127)!==0||g4(g,a,E)}return x.memoizedState=E,u={value:E,getSnapshot:a},x.queue=u,mp(Oc.bind(null,g,u,r),[r]),g.flags|=2048,jf(Zs|Vo,{destroy:void 0},Cc.bind(null,g,u,E,a),null),E}function fp(r,a,u){var g=an,x=Wn(),E=In;if(E){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");u=u()}else if(u=a(),!Fy){var R=a();zo(u,R)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fy=!0)}(R=!zo((Er||x).memoizedState,u))&&(x.memoizedState=u,ji=!0),x=x.queue;var D=Oc.bind(null,g,x,r);if(Yi(2048,Vo,D,[r]),x.getSnapshot!==a||R||Bi!==null&&Bi.memoizedState.tag&Zs){if(g.flags|=2048,jf(Zs|Vo,{destroy:void 0},Cc.bind(null,g,x,u,a),null),wr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");E||(yd&127)!==0||g4(g,a,u)}return u}function g4(r,a,u){r.flags|=16384,r={getSnapshot:a,value:u},a=an.updateQueue,a===null?(a=d1(),an.updateQueue=a,a.stores=[r]):(u=a.stores,u===null?a.stores=[r]:u.push(r))}function Cc(r,a,u,g){a.value=u,a.getSnapshot=g,y4(a)&&v4(r)}function Oc(r,a,u){return u(function(){y4(a)&&(Cl(2,"updateSyncExternalStore()",r),v4(r))})}function y4(r){var a=r.getSnapshot;r=r.value;try{var u=a();return!zo(r,u)}catch{return!0}}function v4(r){var a=Fi(r,2);a!==null&&Br(a,r,2)}function Rc(r){var a=Ra();if(typeof r=="function"){var u=r;if(r=u(),Cm){at(!0);try{u()}finally{at(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:r},a}function Vf(r){r=Rc(r);var a=r.queue,u=x1.bind(null,an,a);return a.dispatch=u,[r.memoizedState,u]}function l0(r){var a=Ra();a.memoizedState=a.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Xi.bind(null,an,!0,u),u.dispatch=a,[r,a]}function s0(r,a){var u=Wn();return dp(u,Er,r,a)}function dp(r,a,u,g){return r.baseState=u,cp(r,Er,typeof g=="function"?g:to)}function b4(r,a){var u=Wn();return Er!==null?dp(u,Er,r,a):(u.baseState=r,[r,u.queue.dispatch])}function Bf(r,a,u,g,x){if(Dr(r))throw Error("Cannot update form state while rendering.");if(r=a.action,r!==null){var E={payload:x,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){E.listeners.push(R)}};$e.T!==null?u(!0):E.isTransition=!1,g(E),u=a.pending,u===null?(E.next=a.pending=E,x4(a,E)):(E.next=u.next,a.pending=u.next=E)}}function x4(r,a){var u=a.action,g=a.payload,x=r.state;if(a.isTransition){var E=$e.T,R={};R._updatedFibers=new Set,$e.T=R;try{var D=u(x,g),q=$e.S;q!==null&&q(R,D),bu(r,a,D)}catch(K){hp(r,a,K)}finally{E!==null&&R.types!==null&&(E.types!==null&&E.types!==R.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),E.types=R.types),$e.T=E,E===null&&R._updatedFibers&&(r=R._updatedFibers.size,R._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{R=u(x,g),bu(r,a,R)}catch(K){hp(r,a,K)}}function bu(r,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?($e.asyncTransitions++,u.then(wu,wu),u.then(function(g){p1(r,a,g)},function(g){return hp(r,a,g)}),a.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):p1(r,a,u)}function p1(r,a,u){a.status="fulfilled",a.value=u,xu(a),r.state=u,a=r.pending,a!==null&&(u=a.next,u===a?r.pending=null:(u=u.next,a.next=u,x4(r,u)))}function hp(r,a,u){var g=r.pending;if(r.pending=null,g!==null){g=g.next;do a.status="rejected",a.reason=u,xu(a),a=a.next;while(a!==g)}r.action=null}function xu(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Su(r,a){return a}function Ts(r,a){if(In){var u=wr.formState;if(u!==null){e:{var g=an;if(In){if(zr){t:{for(var x=zr,E=Ws;x.nodeType!==8;){if(!E){x=null;break t}if(x=_o(x.nextSibling),x===null){x=null;break t}}E=x.data,x=E===aC||E===YL?x:null}if(x){zr=_o(x.nextSibling),g=x.data===aC;break e}}mu(g)}g=!1}g&&(a=u[0])}}return u=Ra(),u.memoizedState=u.baseState=a,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Su,lastRenderedState:a},u.queue=g,u=x1.bind(null,an,g),g.dispatch=u,g=Rc(!1),E=Xi.bind(null,an,!1,g.queue),g=Ra(),x={state:a,dispatch:null,action:r,pending:null},g.queue=x,u=Bf.bind(null,an,x,E,u),x.dispatch=u,g.memoizedState=r,[a,u,!1]}function u0(r){var a=Wn();return m1(a,Er,r)}function m1(r,a,u){if(a=cp(r,a,Su)[0],r=Dl(to)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var g=a0(a)}catch(R){throw R===$y?ZE:R}else g=a;a=Wn();var x=a.queue,E=x.dispatch;return u!==a.memoizedState&&(an.flags|=2048,jf(Zs|Vo,{destroy:void 0},pp.bind(null,x,u),null)),[g,E,r]}function pp(r,a){r.action=a}function Mc(r){var a=Wn(),u=Er;if(u!==null)return m1(a,u,r);Wn(),a=a.memoizedState,u=Wn();var g=u.queue.dispatch;return u.memoizedState=r,[a,g,!1]}function jf(r,a,u,g){return r={tag:r,create:u,deps:g,inst:a,next:null},a=an.updateQueue,a===null&&(a=d1(),an.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=r.next=r:(g=u.next,u.next=r,r.next=g,a.lastEffect=r),r}function g1(r){var a=Ra();return r={current:r},a.memoizedState=r}function Zo(r,a,u,g){var x=Ra();an.flags|=r,x.memoizedState=jf(Zs|a,{destroy:void 0},u,g===void 0?null:g)}function Yi(r,a,u,g){var x=Wn();g=g===void 0?null:g;var E=x.memoizedState.inst;Er!==null&&g!==null&&m4(g,Er.memoizedState.deps)?x.memoizedState=jf(a,E,u,g):(an.flags|=r,x.memoizedState=jf(Zs|a,E,u,g))}function mp(r,a){(an.mode&Lu)!==Zt?Zo(276826112,Vo,r,a):Zo(8390656,Vo,r,a)}function S4(r){an.flags|=4;var a=an.updateQueue;if(a===null)a=d1(),an.updateQueue=a,a.events=[r];else{var u=a.events;u===null?a.events=[r]:u.push(r)}}function gp(r){var a=Ra(),u={impl:r};return a.memoizedState=u,function(){if((Gn&ia)!==ya)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return u.impl.apply(void 0,arguments)}}function ua(r){var a=Wn().memoizedState;return S4({ref:a,nextImpl:r}),function(){if((Gn&ia)!==ya)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function no(r,a){var u=4194308;return(an.mode&Lu)!==Zt&&(u|=134217728),Zo(u,$l,r,a)}function Eu(r,a){if(typeof a=="function"){r=r();var u=a(r);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return a.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(a).join(", ")+"}"),r=r(),a.current=r,function(){a.current=null}}function yp(r,a,u){typeof a!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null"),u=u!=null?u.concat([r]):null;var g=4194308;(an.mode&Lu)!==Zt&&(g|=134217728),Zo(g,$l,Eu.bind(null,a,r),u)}function vp(r,a,u){typeof a!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null"),u=u!=null?u.concat([r]):null,Yi(4,$l,Eu.bind(null,a,r),u)}function As(r,a){return Ra().memoizedState=[r,a===void 0?null:a],r}function ca(r,a){var u=Wn();a=a===void 0?null:a;var g=u.memoizedState;return a!==null&&m4(a,g[1])?g[0]:(u.memoizedState=[r,a],r)}function Lr(r,a){var u=Ra();a=a===void 0?null:a;var g=r();if(Cm){at(!0);try{r()}finally{at(!1)}}return u.memoizedState=[g,a],g}function Pf(r,a){var u=Wn();a=a===void 0?null:a;var g=u.memoizedState;if(a!==null&&m4(a,g[1]))return g[0];if(g=r(),Cm){at(!0);try{r()}finally{at(!1)}}return u.memoizedState=[g,a],g}function Nl(r,a){var u=Ra();return Qr(u,r,a)}function cn(r,a){var u=Wn();return bp(u,Er.memoizedState,r,a)}function nr(r,a){var u=Wn();return Er===null?Qr(u,r,a):bp(u,Er.memoizedState,r,a)}function Qr(r,a,u){return u===void 0||(yd&1073741824)!==0&&(En&261930)===0?r.memoizedState=a:(r.memoizedState=u,r=Sr(),an.lanes|=r,K0|=r,u)}function bp(r,a,u,g){return zo(u,a)?u:qy.current!==null?(r=Qr(r,u,g),zo(r,a)||(ji=!0),r):(yd&42)===0||(yd&1073741824)!==0&&(En&261930)===0?(ji=!0,r.memoizedState=u):(r=Sr(),an.lanes|=r,K0|=r,a)}function wu(){$e.asyncTransitions--}function _c(r,a,u,g,x){var E=Kn.p;Kn.p=E!==0&&E<ta?E:ta;var R=$e.T,D={};D._updatedFibers=new Set,$e.T=D,Xi(r,!1,a,u);try{var q=x(),K=$e.S;if(K!==null&&K(D,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){$e.asyncTransitions++,q.then(wu,wu);var Ee=kf(q,g);$f(r,a,Ee,Ki(r))}else $f(r,a,g,Ki(r))}catch(Ae){$f(r,a,{then:function(){},status:"rejected",reason:Ae},Ki(r))}finally{Kn.p=E,R!==null&&D.types!==null&&(R.types!==null&&R.types!==D.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),R.types=D.types),$e.T=R,R===null&&D._updatedFibers&&(r=D._updatedFibers.size,D._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function c0(r,a,u,g){if(r.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var x=f0(r).queue;$6(r),_c(r,x,a,Vm,u===null?b:function(){return Uf(r),u(g)})}function f0(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:Vm,baseState:Vm,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:Vm},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:u},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Uf(r){$e.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var a=f0(r);a.next===null&&(a=r.alternate.memoizedState),$f(r,a.next.queue,{},Ki(r))}function E4(){var r=Rc(!1);return r=_c.bind(null,an,r.queue,!0,!1),Ra().memoizedState=r,[!1,r]}function Vr(){var r=Dl(to)[0],a=Wn().memoizedState;return[typeof r=="boolean"?r:a0(r),a]}function y1(){var r=Ac(to)[0],a=Wn().memoizedState;return[typeof r=="boolean"?r:a0(r),a]}function Tu(){return br(_5)}function v1(){var r=Ra(),a=wr.identifierPrefix;if(In){var u=dd,g=fd;u=(g&~(1<<32-ea(g)-1)).toString(32)+u,a="_"+a+"R_"+u,u=rw++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=ffe++,a="_"+a+"r_"+u.toString(32)+"_";return r.memoizedState=a}function b1(){return Ra().memoizedState=Y8.bind(null,an)}function Y8(r,a){for(var u=r.return;u!==null;){switch(u.tag){case 24:case 3:var g=Ki(u),x=xs(g),E=Oa(u,x,g);E!==null&&(Cl(g,"refresh()",r),Br(E,u,g),i0(E,u,g)),r=d4(),a!=null&&E!==null&&console.error("The seed argument is not enabled outside experimental channels."),x.payload={cache:r};return}u=u.return}}function w4(r,a,u){var g=arguments;typeof g[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),g=Ki(r);var x={lane:g,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};Dr(r)?xp(a,x):(x=r4(r,a,x,g),x!==null&&(Cl(g,"dispatch()",r),Br(x,r,g),d0(x,a,g)))}function x1(r,a,u){var g=arguments;typeof g[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),g=Ki(r),$f(r,a,u,g)&&Cl(g,"setState()",r)}function $f(r,a,u,g){var x={lane:g,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Dr(r))xp(a,x);else{var E=r.alternate;if(r.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null)){var R=$e.H;$e.H=Bu;try{var D=a.lastRenderedState,q=E(D,u);if(x.hasEagerState=!0,x.eagerState=q,zo(q,D))return pc(r,a,x,0),wr===null&&Jd(),!1}catch{}finally{$e.H=R}}if(u=r4(r,a,x,g),u!==null)return Br(u,r,g),d0(u,a,g),!0}return!1}function Xi(r,a,u,g){if($e.T===null&&Sm===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),g={lane:2,revertLane:Hn(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Dr(r)){if(a)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else a=r4(r,u,g,2),a!==null&&(Cl(2,"setOptimistic()",r),Br(a,r,2))}function Dr(r){var a=r.alternate;return r===an||a!==null&&a===an}function xp(r,a){Yy=nw=!0;var u=r.pending;u===null?a.next=a:(a.next=u.next,u.next=a),r.pending=a}function d0(r,a,u){if((u&4194048)!==0){var g=a.lanes;g&=r.pendingLanes,u|=g,a.lanes=u,gn(r,u)}}function h0(r){if(r!==null&&typeof r!="function"){var a=String(r);bL.has(a)||(bL.add(a),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r))}}function Sp(r,a,u,g){var x=r.memoizedState,E=u(g,x);if(r.mode&co){at(!0);try{E=u(g,x)}finally{at(!1)}}E===void 0&&(a=ce(a)||"Component",mL.has(a)||(mL.add(a),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))),x=E==null?x:yn({},x,E),r.memoizedState=x,r.lanes===0&&(r.updateQueue.baseState=x)}function Cs(r,a,u,g,x,E,R){var D=r.stateNode;if(typeof D.shouldComponentUpdate=="function"){if(u=D.shouldComponentUpdate(g,E,R),r.mode&co){at(!0);try{u=D.shouldComponentUpdate(g,E,R)}finally{at(!1)}}return u===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ce(a)||"Component"),u}return a.prototype&&a.prototype.isPureReactComponent?!Yh(u,g)||!Yh(x,E):!0}function Ep(r,a,u,g){var x=a.state;typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,g),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,g),a.state!==x&&(r=ue(r)||"Component",cL.has(r)||(cL.add(r),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",r)),VA.enqueueReplaceState(a,a.state,null))}function Au(r,a){var u=a;if("ref"in a){u={};for(var g in a)g!=="ref"&&(u[g]=a[g])}if(r=r.defaultProps){u===a&&(u=yn({},u));for(var x in r)u[x]===void 0&&(u[x]=r[x])}return u}function S1(r){pA(r),console.warn(`%s

%s
`,Xy?"An error occurred in the <"+Xy+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function T4(r){var a=Xy?"The above error occurred in the <"+Xy+"> component.":"The above error occurred in one of your React components.",u="React will try to recreate this component tree from scratch using the error boundary you provided, "+((BA||"Anonymous")+".");if(typeof r=="object"&&r!==null&&typeof r.environmentName=="string"){var g=r.environmentName;r=[`%o

%s

%s
`,r,a,u].slice(0),typeof r[0]=="string"?r.splice(0,1,tV+" "+r[0],nV,Rw+g+Rw,rV):r.splice(0,0,tV,nV,Rw+g+Rw,rV),r.unshift(console),g=Nfe.apply(console.error,r),g()}else console.error(`%o

%s

%s
`,r,a,u)}function A4(r){pA(r)}function wp(r,a){try{Xy=a.source?ue(a.source):null,BA=null;var u=a.value;if($e.actQueue!==null)$e.thrownErrors.push(u);else{var g=r.onUncaughtError;g(u,{componentStack:a.stack})}}catch(x){setTimeout(function(){throw x})}}function C4(r,a,u){try{Xy=u.source?ue(u.source):null,BA=ue(a);var g=r.onCaughtError;g(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function E1(r,a,u){return u=xs(u),u.tag=DA,u.payload={element:null},u.callback=function(){Be(a.source,wp,r,a)},u}function w1(r){return r=xs(r),r.tag=DA,r}function Tp(r,a,u,g){var x=u.type.getDerivedStateFromError;if(typeof x=="function"){var E=g.value;r.payload=function(){return x(E)},r.callback=function(){B6(u),Be(g.source,C4,a,u,g)}}var R=u.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(r.callback=function(){B6(u),Be(g.source,C4,a,u,g),typeof x!="function"&&(J0===null?J0=new Set([this]):J0.add(this)),lfe(this,g),typeof x=="function"||(u.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ue(u)||"Unknown")})}function q6(r,a,u,g,x){if(u.flags|=32768,ul&&Ls(r,x),g!==null&&typeof g=="object"&&typeof g.then=="function"){if(a=u.alternate,a!==null&&xc(a,u,x,!0),In&&($c=!0),u=Ul.current,u!==null){switch(u.tag){case 31:case 13:return Ks===null?Qf():u.alternate===null&&ti===Sd&&(ti=ow),u.flags&=-257,u.flags|=65536,u.lanes=x,g===JE?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([g]):a.add(g),da(r,g,x)),!1;case 22:return u.flags|=65536,g===JE?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([g])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([g]):u.add(g)),da(r,g,x)),!1}throw Error("Unexpected Suspense handler tag ("+u.tag+"). This is a bug in React.")}return da(r,g,x),Qf(),!1}if(In)return $c=!0,a=Ul.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=x,g!==xA&&ps(Ta(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:g}),u))):(g!==xA&&ps(Ta(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:g}),u)),r=r.current.alternate,r.flags|=65536,x&=-x,r.lanes|=x,g=Ta(g,u),x=E1(r.stateNode,g,x),ap(r,x),ti!==W0&&(ti=Om)),!1;var E=Ta(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:g}),u);if(S5===null?S5=[E]:S5.push(E),ti!==W0&&(ti=Om),a===null)return!0;g=Ta(g,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,r=x&-x,u.lanes|=r,r=E1(u.stateNode,g,r),ap(u,r),!1;case 1:if(a=u.type,E=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(J0===null||!J0.has(E))))return u.flags|=65536,x&=-x,u.lanes|=x,x=w1(x),Tp(x,r,u,g),ap(u,x),!1}u=u.return}while(u!==null);return!1}function Wi(r,a,u,g){a.child=r===null?JI(a,null,u,g):Am(a,r.child,u,g)}function O4(r,a,u,g,x){u=u.render;var E=a.ref;if("ref"in g){var R={};for(var D in g)D!=="ref"&&(R[D]=g[D])}else R=g;return Eo(a),g=Wr(r,a,u,R,E,x),D=up(),r!==null&&!ji?(wc(r,a,x),Os(r,a,x)):(In&&D&&r1(a),a.flags|=1,Wi(r,a,g,x),a.child)}function R4(r,a,u,g,x){if(r===null){var E=u.type;return typeof E=="function"&&!e1(E)&&E.defaultProps===void 0&&u.compare===null?(u=mc(E),a.tag=15,a.type=u,m0(a,E),M4(r,a,u,g,x)):(r=Rf(u.type,null,g,a,a.mode,x),r.ref=a.ref,r.return=a,a.child=r)}if(E=r.child,!N1(r,x)){var R=E.memoizedProps;if(u=u.compare,u=u!==null?u:Yh,u(R,g)&&r.ref===a.ref)return Os(r,a,x)}return a.flags|=1,r=fs(E,g),r.ref=a.ref,r.return=a,a.child=r}function M4(r,a,u,g,x){if(r!==null){var E=r.memoizedProps;if(Yh(E,g)&&r.ref===a.ref&&a.type===r.type)if(ji=!1,a.pendingProps=g=E,N1(r,x))(r.flags&131072)!==0&&(ji=!0);else return a.lanes=r.lanes,Os(r,a,x)}return C1(r,a,u,g,x)}function T1(r,a,u,g){var x=g.children,E=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:Qx,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((a.flags&128)!==0){if(E=E!==null?E.baseLanes|u:u,r!==null){for(g=a.child=r.child,x=0;g!==null;)x=x|g.lanes|g.childLanes,g=g.sibling;g=x&~E}else g=0,a.child=null;return _4(r,a,E,u,g)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&np(a,E!==null?E.cachePool:null),E!==null?Ec(a,E):_l(a),u1(a);else return g=a.lanes=536870912,_4(r,a,E!==null?E.baseLanes|u:u,u,g)}else E!==null?(np(a,E.cachePool),Ec(a,E),Mo(a),a.memoizedState=null):(r!==null&&np(a,null),_l(a),Mo(a));return Wi(r,a,x,u),a.child}function p0(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:Qx,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function _4(r,a,u,g,x){var E=tp();return E=E===null?null:{parent:Li._currentValue,pool:E},a.memoizedState={baseLanes:u,cachePool:E},r!==null&&np(a,null),_l(a),u1(a),r!==null&&xc(r,a,g,!0),a.childLanes=x,null}function Ap(r,a){var u=a.hidden;return u!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
- <Activity %s>
+ <Activity %s>`,u===!0?"hidden":u===!1?"hidden={false}":"hidden={...}",u?'mode="hidden"':'mode="visible"'),a=Rp({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function D4(r,a,u){return Am(a,r.child,null,u),r=Ap(a,a.pendingProps),r.flags|=2,sa(a),a.memoizedState=null,r}function G6(r,a,u){var g=a.pendingProps,x=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(In){if(g.mode==="hidden")return r=Ap(a,g),a.lanes=536870912,p0(null,r);if(lp(a),(r=zr)?(u=Z1(r,Ws),u=u!==null&&u.data===km?u:null,u!==null&&(g={dehydrated:u,treeContext:P6(),retryLane:536870912,hydrationErrors:null},a.memoizedState=g,g=a4(u),g.return=a,a.child=g,Ia=a,zr=null)):u=null,u===null)throw yc(a,r),mu(a);return a.lanes=536870912,null}return Ap(a,g)}var E=r.memoizedState;if(E!==null){var R=E.dehydrated;if(lp(a),x)if(a.flags&256)a.flags&=-257,a=D4(r,a,u);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Xa(),(u&536870912)!==0&&S0(a),ji||xc(r,a,u,!1),x=(u&r.childLanes)!==0,ji||x){if(g=wr,g!==null&&(R=Nt(g,u),R!==0&&R!==E.retryLane))throw E.retryLane=R,Fi(r,R),Br(g,r,R),jA;Qf(),a=D4(r,a,u)}else r=E.treeContext,zr=_o(R.nextSibling),Ia=a,In=!0,H0=null,$c=!1,Pl=null,Ws=!1,r!==null&&U6(a,r),a=Ap(a,g),a.flags|=4096;return a}return E=r.child,g={mode:g.mode,children:g.children},(u&536870912)!==0&&(u&r.lanes)!==0&&S0(a),r=fs(E,g),r.ref=a.ref,a.child=r,r.return=a,r}function A1(r,a){var u=a.ref;if(u===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(r===null||r.ref!==u)&&(a.flags|=4194816)}}function C1(r,a,u,g,x){if(u.prototype&&typeof u.prototype.render=="function"){var E=ce(u)||"Unknown";xL[E]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",E,E),xL[E]=!0)}return a.mode&co&&Vu.recordLegacyContextWarning(a,null),r===null&&(m0(a,a.type),u.contextTypes&&(E=ce(u)||"Unknown",EL[E]||(EL[E]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",E)))),Eo(a),u=Wr(r,a,u,g,void 0,x),g=up(),r!==null&&!ji?(wc(r,a,x),Os(r,a,x)):(In&&g&&r1(a),a.flags|=1,Wi(r,a,u,x),a.child)}function Hf(r,a,u,g,x,E){return Eo(a),bd=-1,p5=r!==null&&r.type!==a.type,a.updateQueue=null,u=Lf(a,g,u,x),f1(r,a),g=up(),r!==null&&!ji?(wc(r,a,E),Os(r,a,E)):(In&&g&&r1(a),a.flags|=1,Wi(r,a,u,E),a.child)}function N4(r,a,u,g,x){switch(d(a)){case!1:var E=a.stateNode,R=new a.type(a.memoizedProps,E.context).state;E.updater.enqueueSetState(E,R,null);break;case!0:a.flags|=128,a.flags|=65536,E=Error("Simulated error coming from DevTools");var D=x&-x;if(a.lanes|=D,R=wr,R===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");D=w1(D),Tp(D,R,a,Ta(E,a)),ap(a,D)}if(Eo(a),a.stateNode===null){if(R=$0,E=u.contextType,"contextType"in u&&E!==null&&(E===void 0||E.$$typeof!==Vl)&&!vL.has(u)&&(vL.add(u),D=E===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof E!="object"?" However, it is set to a "+typeof E+".":E.$$typeof===hy?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ce(u)||"Component",D)),typeof E=="object"&&E!==null&&(R=br(E)),E=new u(g,R),a.mode&co){at(!0);try{E=new u(g,R)}finally{at(!1)}}if(R=a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=VA,a.stateNode=E,E._reactInternals=a,E._reactInternalInstance=uL,typeof u.getDerivedStateFromProps=="function"&&R===null&&(R=ce(u)||"Component",fL.has(R)||(fL.add(R),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",R,E.state===null?"null":"undefined",R))),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"){var q=D=R=null;if(typeof E.componentWillMount=="function"&&E.componentWillMount.__suppressDeprecationWarning!==!0?R="componentWillMount":typeof E.UNSAFE_componentWillMount=="function"&&(R="UNSAFE_componentWillMount"),typeof E.componentWillReceiveProps=="function"&&E.componentWillReceiveProps.__suppressDeprecationWarning!==!0?D="componentWillReceiveProps":typeof E.UNSAFE_componentWillReceiveProps=="function"&&(D="UNSAFE_componentWillReceiveProps"),typeof E.componentWillUpdate=="function"&&E.componentWillUpdate.__suppressDeprecationWarning!==!0?q="componentWillUpdate":typeof E.UNSAFE_componentWillUpdate=="function"&&(q="UNSAFE_componentWillUpdate"),R!==null||D!==null||q!==null){E=ce(u)||"Component";var K=typeof u.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";hL.has(E)||(hL.add(E),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.

%s uses %s but also contains the following legacy lifecycles:%s%s%s

The above lifecycles should be removed. Learn more about this warning here:
https://react.dev/link/unsafe-component-lifecycles`,E,K,R!==null?`
  `+R:"",D!==null?`
  `+D:"",q!==null?`
  `+q:""))}}E=a.stateNode,R=ce(u)||"Component",E.render||(u.prototype&&typeof u.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",R):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",R)),!E.getInitialState||E.getInitialState.isReactClassApproved||E.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",R),E.getDefaultProps&&!E.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",R),E.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",R),u.childContextTypes&&!yL.has(u)&&(yL.add(u),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",R)),u.contextTypes&&!gL.has(u)&&(gL.add(u),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",R)),typeof E.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",R),u.prototype&&u.prototype.isPureReactComponent&&typeof E.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ce(u)||"A pure component"),typeof E.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",R),typeof E.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",R),typeof E.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",R),typeof E.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",R),D=E.props!==g,E.props!==void 0&&D&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",R),E.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",R,R),typeof E.getSnapshotBeforeUpdate!="function"||typeof E.componentDidUpdate=="function"||dL.has(u)||(dL.add(u),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ce(u))),typeof E.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",R),typeof E.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",R),typeof u.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",R),(D=E.state)&&(typeof D!="object"||wi(D))&&console.error("%s.state: must be set to an object or null",R),typeof E.getChildContext=="function"&&typeof u.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",R),E=a.stateNode,E.props=g,E.state=a.memoizedState,E.refs={},bs(a),R=u.contextType,E.context=typeof R=="object"&&R!==null?br(R):$0,E.state===g&&(R=ce(u)||"Component",pL.has(R)||(pL.add(R),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",R))),a.mode&co&&Vu.recordLegacyContextWarning(a,E),Vu.recordUnsafeLifecycleWarnings(a,E),E.state=a.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&(Sp(a,u,R,g),E.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(R=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),R!==E.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ue(a)||"Component"),VA.enqueueReplaceState(E,E.state,null)),Ml(a,g,E,x),Ss(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),E=!0}else if(r===null){E=a.stateNode;var Ee=a.memoizedProps;D=Au(u,Ee),E.props=D;var Ae=E.context;q=u.contextType,R=$0,typeof q=="object"&&q!==null&&(R=br(q)),K=u.getDerivedStateFromProps,q=typeof K=="function"||typeof E.getSnapshotBeforeUpdate=="function",Ee=a.pendingProps!==Ee,q||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(Ee||Ae!==R)&&Ep(a,E,g,R),X0=!1;var ge=a.memoizedState;E.state=ge,Ml(a,g,E,x),Ss(),Ae=a.memoizedState,Ee||ge!==Ae||X0?(typeof K=="function"&&(Sp(a,u,K,g),Ae=a.memoizedState),(D=X0||Cs(a,u,D,g,ge,Ae,R))?(q||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),a.memoizedProps=g,a.memoizedState=Ae),E.props=g,E.state=Ae,E.context=R,E=D):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),E=!1)}else{E=a.stateNode,Ja(r,a),R=a.memoizedProps,q=Au(u,R),E.props=q,K=a.pendingProps,ge=E.context,Ae=u.contextType,D=$0,typeof Ae=="object"&&Ae!==null&&(D=br(Ae)),Ee=u.getDerivedStateFromProps,(Ae=typeof Ee=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(R!==K||ge!==D)&&Ep(a,E,g,D),X0=!1,ge=a.memoizedState,E.state=ge,Ml(a,g,E,x),Ss();var Le=a.memoizedState;R!==K||ge!==Le||X0||r!==null&&r.dependencies!==null&&Kh(r.dependencies)?(typeof Ee=="function"&&(Sp(a,u,Ee,g),Le=a.memoizedState),(q=X0||Cs(a,u,q,g,ge,Le,D)||r!==null&&r.dependencies!==null&&Kh(r.dependencies))?(Ae||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(g,Le,D),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(g,Le,D)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||R===r.memoizedProps&&ge===r.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||R===r.memoizedProps&&ge===r.memoizedState||(a.flags|=1024),a.memoizedProps=g,a.memoizedState=Le),E.props=g,E.state=Le,E.context=D,E=q):(typeof E.componentDidUpdate!="function"||R===r.memoizedProps&&ge===r.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||R===r.memoizedProps&&ge===r.memoizedState||(a.flags|=1024),E=!1)}if(D=E,A1(r,a),R=(a.flags&128)!==0,D||R){if(D=a.stateNode,Me(a),R&&typeof u.getDerivedStateFromError!="function")u=null,Io=-1;else if(u=jI(D),a.mode&co){at(!0);try{jI(D)}finally{at(!1)}}a.flags|=1,r!==null&&R?(a.child=Am(a,r.child,null,x),a.child=Am(a,null,u,x)):Wi(r,a,u,x),a.memoizedState=D.state,r=a.child}else r=Os(r,a,x);return x=a.stateNode,E&&x.props!==g&&(Wy||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ue(a)||"a component"),Wy=!0),r}function Cp(r,a,u,g){return gu(),a.flags|=256,Wi(r,a,u,g),a.child}function m0(r,a){a&&a.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
  %s.childContextTypes = ...`,a.displayName||a.name||"Component"),typeof a.getDerivedStateFromProps=="function"&&(r=ce(a)||"Unknown",wL[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),wL[r]=!0)),typeof a.contextType=="object"&&a.contextType!==null&&(a=ce(a)||"Unknown",SL[a]||(console.error("%s: Function components do not support contextType.",a),SL[a]=!0))}function O1(r){return{baseLanes:r,cachePool:a1()}}function Op(r,a,u){return r=r!==null?r.childLanes&~u:0,a&&(r|=hl),r}function F6(r,a,u){var g,x=a.pendingProps;c(a)&&(a.flags|=128);var E=!1,R=(a.flags&128)!==0;if((g=R)||(g=r!==null&&r.memoizedState===null?!1:(Ai.current&d5)!==0),g&&(E=!0,a.flags&=-129),g=(a.flags&32)!==0,a.flags&=-33,r===null){if(In){if(E?la(a):Mo(a),(r=zr)?(u=Z1(r,Ws),u=u!==null&&u.data!==km?u:null,u!==null&&(g={dehydrated:u,treeContext:P6(),retryLane:536870912,hydrationErrors:null},a.memoizedState=g,g=a4(u),g.return=a,a.child=g,Ia=a,zr=null)):u=null,u===null)throw yc(a,r),mu(a);return J1(u)?a.lanes=32:a.lanes=536870912,null}var D=x.children;if(x=x.fallback,E){Mo(a);var q=a.mode;return D=Rp({mode:"hidden",children:D},q),x=ds(x,q,u,null),D.return=a,x.return=a,D.sibling=x,a.child=D,x=a.child,x.memoizedState=O1(u),x.childLanes=Op(r,g,u),a.memoizedState=PA,p0(null,x)}return la(a),R1(a,D)}var K=r.memoizedState;if(K!==null){var Ee=K.dehydrated;if(Ee!==null){if(R)a.flags&256?(la(a),a.flags&=-257,a=M1(r,a,u)):a.memoizedState!==null?(Mo(a),a.child=r.child,a.flags|=128,a=null):(Mo(a),D=x.fallback,q=a.mode,x=Rp({mode:"visible",children:x.children},q),D=ds(D,q,u,null),D.flags|=2,x.return=a,D.return=a,x.sibling=D,a.child=x,Am(a,r.child,null,u),x=a.child,x.memoizedState=O1(u),x.childLanes=Op(r,g,u),a.memoizedState=PA,a=p0(null,x));else if(la(a),Xa(),(u&536870912)!==0&&S0(a),J1(Ee)){if(g=Ee.nextSibling&&Ee.nextSibling.dataset,g){D=g.dgst;var Ae=g.msg;q=g.stck;var ge=g.cstck}E=Ae,g=D,x=q,Ee=ge,D=E,q=Ee,D=Error(D||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),D.stack=x||"",D.digest=g,g=q===void 0?null:q,x={value:D,source:null,stack:g},typeof g=="string"&&bA.set(D,x),ps(x),a=M1(r,a,u)}else if(ji||xc(r,a,u,!1),g=(u&r.childLanes)!==0,ji||g){if(g=wr,g!==null&&(x=Nt(g,u),x!==0&&x!==K.retryLane))throw K.retryLane=x,Fi(r,x),Br(g,r,x),jA;gx(Ee)||Qf(),a=M1(r,a,u)}else gx(Ee)?(a.flags|=192,a.child=r.child,a=null):(r=K.treeContext,zr=_o(Ee.nextSibling),Ia=a,In=!0,H0=null,$c=!1,Pl=null,Ws=!1,r!==null&&U6(a,r),a=R1(a,x.children),a.flags|=4096);return a}}return E?(Mo(a),D=x.fallback,q=a.mode,ge=r.child,Ee=ge.sibling,x=fs(ge,{mode:"hidden",children:x.children}),x.subtreeFlags=ge.subtreeFlags&65011712,Ee!==null?D=fs(Ee,D):(D=ds(D,q,u,null),D.flags|=2),D.return=a,x.return=a,x.sibling=D,a.child=x,p0(null,x),x=a.child,D=r.child.memoizedState,D===null?D=O1(u):(q=D.cachePool,q!==null?(ge=Li._currentValue,q=q.parent!==ge?{parent:ge,pool:ge}:q):q=a1(),D={baseLanes:D.baseLanes|u,cachePool:q}),x.memoizedState=D,x.childLanes=Op(r,g,u),a.memoizedState=PA,p0(r.child,x)):(K!==null&&(u&62914560)===u&&(u&r.lanes)!==0&&S0(a),la(a),u=r.child,r=u.sibling,u=fs(u,{mode:"visible",children:x.children}),u.return=a,u.sibling=null,r!==null&&(g=a.deletions,g===null?(a.deletions=[r],a.flags|=16):g.push(r)),a.child=u,a.memoizedState=null,u)}function R1(r,a){return a=Rp({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Rp(r,a){return r=w(22,r,null,a),r.lanes=0,r}function M1(r,a,u){return Am(a,r.child,null,u),r=R1(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function k4(r,a,u){r.lanes|=a;var g=r.alternate;g!==null&&(g.lanes|=a),yu(r.return,a,u)}function _1(r,a,u,g,x,E){var R=r.memoizedState;R===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:x,treeForkCount:E}:(R.isBackwards=a,R.rendering=null,R.renderingStartTime=0,R.last=g,R.tail=u,R.tailMode=x,R.treeForkCount=E)}function D1(r,a,u){var g=a.pendingProps,x=g.revealOrder,E=g.tail,R=g.children,D=Ai.current;if((g=(D&d5)!==0)?(D=D&Gy|d5,a.flags|=128):D&=Gy,Q(Ai,D,a),D=x??"null",x!=="forwards"&&x!=="unstable_legacy-backwards"&&x!=="together"&&x!=="independent"&&!TL[D])if(TL[D]=!0,x==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(x==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof x=="string")switch(x.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',x,x.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',x,x.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',x)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',x);D=E??"null",aw[D]||(E==null?(x==="forwards"||x==="backwards"||x==="unstable_legacy-backwards")&&(aw[D]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):E!=="visible"&&E!=="collapsed"&&E!=="hidden"?(aw[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',E)):x!=="forwards"&&x!=="backwards"&&x!=="unstable_legacy-backwards"&&(aw[D]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',E)));e:if((x==="forwards"||x==="backwards"||x==="unstable_legacy-backwards")&&R!==void 0&&R!==null&&R!==!1)if(wi(R)){for(D=0;D<R.length;D++)if(!kn(R[D],D))break e}else if(D=se(R),typeof D=="function"){if(D=D.call(R))for(var q=D.next(),K=0;!q.done;q=D.next()){if(!kn(q.value,K))break e;K++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',x);if(Wi(r,a,R,u),In?(gc(),R=Kx):R=0,!g&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&k4(r,u,a);else if(r.tag===19)k4(r,u,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(x){case"forwards":for(u=a.child,x=null;u!==null;)r=u.alternate,r!==null&&ws(r)===null&&(x=u),u=u.sibling;u=x,u===null?(x=a.child,a.child=null):(x=u.sibling,u.sibling=null),_1(a,!1,x,u,E,R);break;case"backwards":case"unstable_legacy-backwards":for(u=null,x=a.child,a.child=null;x!==null;){if(r=x.alternate,r!==null&&ws(r)===null){a.child=x;break}r=x.sibling,x.sibling=u,u=x,x=r}_1(a,!0,u,null,E,R);break;case"together":_1(a,!1,null,null,void 0,R);break;default:a.memoizedState=null}return a.child}function Os(r,a,u){if(r!==null&&(a.dependencies=r.dependencies),Io=-1,K0|=a.lanes,(u&a.childLanes)===0)if(r!==null){if(xc(r,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error("Resuming work not yet implemented.");if(a.child!==null){for(r=a.child,u=fs(r,r.pendingProps),a.child=u,u.return=a;r.sibling!==null;)r=r.sibling,u=u.sibling=fs(r,r.pendingProps),u.return=a;u.sibling=null}return a.child}function N1(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Kh(r)))}function z4(r,a,u){switch(a.tag){case 3:Z(a,a.stateNode.containerInfo),ms(a,Li,r.memoizedState.cache),gu();break;case 27:case 5:we(a);break;case 4:Z(a,a.stateNode.containerInfo);break;case 10:ms(a,a.type,a.memoizedProps.value);break;case 12:(u&a.childLanes)!==0&&(a.flags|=4),a.flags|=2048;var g=a.stateNode;g.effectDuration=-0,g.passiveEffectDuration=-0;break;case 31:if(a.memoizedState!==null)return a.flags|=128,lp(a),null;break;case 13:if(g=a.memoizedState,g!==null)return g.dehydrated!==null?(la(a),a.flags|=128,null):(u&a.child.childLanes)!==0?F6(r,a,u):(la(a),r=Os(r,a,u),r!==null?r.sibling:null);la(a);break;case 19:var x=(r.flags&128)!==0;if(g=(u&a.childLanes)!==0,g||(xc(r,a,u,!1),g=(u&a.childLanes)!==0),x){if(g)return D1(r,a,u);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Q(Ai,Ai.current,a),g)break;return null;case 22:return a.lanes=0,T1(r,a,u,a.pendingProps);case 24:ms(a,Li,r.memoizedState.cache)}return Os(r,a,u)}function k1(r,a,u){if(a._debugNeedsRemount&&r!==null){u=Rf(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes),u._debugStack=a._debugStack,u._debugTask=a._debugTask;var g=a.return;if(g===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,u.index=a.index,u.sibling=a.sibling,u.return=a.return,u.ref=a.ref,u._debugInfo=a._debugInfo,a===g.child)g.child=u;else{var x=g.child;if(x===null)throw Error("Expected parent to have a child.");for(;x.sibling!==a;)if(x=x.sibling,x===null)throw Error("Expected to find the previous sibling.");x.sibling=u}return a=g.deletions,a===null?(g.deletions=[r],g.flags|=16):a.push(r),u.flags|=2,u}if(r!==null)if(r.memoizedProps!==a.pendingProps||a.type!==r.type)ji=!0;else{if(!N1(r,u)&&(a.flags&128)===0)return ji=!1,z4(r,a,u);ji=(r.flags&131072)!==0}else ji=!1,(g=In)&&(gc(),g=(a.flags&1048576)!==0),g&&(g=a.index,gc(),o4(a,Kx,g));switch(a.lanes=0,a.tag){case 16:e:if(g=a.pendingProps,r=Oo(a.elementType),a.type=r,typeof r=="function")e1(r)?(g=Au(r,g),a.tag=1,a.type=r=mc(r),a=N4(null,a,r,g,u)):(a.tag=0,m0(a,r),a.type=r=mc(r),a=C1(null,a,r,g,u));else{if(r!=null){if(x=r.$$typeof,x===Nu){a.tag=11,a.type=r=Jg(r),a=O4(null,a,r,g,u);break e}else if(x===ad){a.tag=14,a=R4(null,a,r,g,u);break e}}throw a="",r!==null&&typeof r=="object"&&r.$$typeof===si&&(a=" Did you wrap a component in React.lazy() more than once?"),u=ce(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+u+". Lazy element type must resolve to a class or function."+a)}return a;case 0:return C1(r,a,a.type,a.pendingProps,u);case 1:return g=a.type,x=Au(g,a.pendingProps),N4(r,a,g,x,u);case 3:e:{if(Z(a,a.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");g=a.pendingProps;var E=a.memoizedState;x=E.element,Ja(r,a),Ml(a,g,null,u);var R=a.memoizedState;if(g=R.cache,ms(a,Li,g),g!==E.cache&&bc(a,[Li],u,!0),Ss(),g=R.element,E.isDehydrated)if(E={element:g,isDehydrated:!1,cache:R.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=Cp(r,a,g,u);break e}else if(g!==x){x=Ta(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a),ps(x),a=Cp(r,a,g,u);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(zr=_o(r.firstChild),Ia=a,In=!0,H0=null,$c=!1,Pl=null,Ws=!0,u=JI(a,null,g,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(gu(),g===x){a=Os(r,a,u);break e}Wi(r,a,g,u)}a=a.child}return a;case 26:return A1(r,a),r===null?(u=bx(a.type,null,a.pendingProps,null))?a.memoizedState=u:In||(u=a.type,r=a.pendingProps,g=oe(ll.current),g=X1(g).createElement(u),g[na]=a,g[pa]=r,jn(g,u,r),vt(g),a.stateNode=g):a.memoizedState=bx(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return we(a),r===null&&In&&(g=oe(ll.current),x=de(),g=a.stateNode=Ll(a.type,a.pendingProps,g,x,!1),$c||(x=dx(g,a.type,a.pendingProps,x),x!==null&&(Mf(a,0).serverProps=x)),Ia=a,Ws=!0,x=zr,Du(a.type)?(uC=x,zr=_o(g.firstChild)):zr=x),Wi(r,a,a.pendingProps.children,u),A1(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&In&&(E=de(),g=Hg(a.type,E.ancestorInfo),x=zr,(R=!x)||(R=vE(x,a.type,a.pendingProps,Ws),R!==null?(a.stateNode=R,$c||(E=dx(R,a.type,a.pendingProps,E),E!==null&&(Mf(a,0).serverProps=E)),Ia=a,zr=_o(R.firstChild),Ws=!1,E=!0):E=!1,R=!E),R&&(g&&yc(a,x),mu(a))),we(a),x=a.type,E=a.pendingProps,R=r!==null?r.memoizedProps:null,g=E.children,Yp(x,E)?g=null:R!==null&&Yp(x,R)&&(a.flags|=32),a.memoizedState!==null&&(x=Wr(r,a,sp,null,null,u),_5._currentValue=x),A1(r,a),Wi(r,a,g,u),a.child;case 6:return r===null&&In&&(u=a.pendingProps,r=de(),g=r.ancestorInfo.current,u=g!=null?Wd(u,g.tag,r.ancestorInfo.implicitRootScope):!0,r=zr,(g=!r)||(g=ir(r,a.pendingProps,Ws),g!==null?(a.stateNode=g,Ia=a,zr=null,g=!0):g=!1,g=!g),g&&(u&&yc(a,r),mu(a))),null;case 13:return F6(r,a,u);case 4:return Z(a,a.stateNode.containerInfo),g=a.pendingProps,r===null?a.child=Am(a,null,g,u):Wi(r,a,g,u),a.child;case 11:return O4(r,a,a.type,a.pendingProps,u);case 7:return Wi(r,a,a.pendingProps,u),a.child;case 8:return Wi(r,a,a.pendingProps.children,u),a.child;case 12:return a.flags|=4,a.flags|=2048,g=a.stateNode,g.effectDuration=-0,g.passiveEffectDuration=-0,Wi(r,a,a.pendingProps.children,u),a.child;case 10:return g=a.type,x=a.pendingProps,E=x.value,"value"in x||AL||(AL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ms(a,g,E),Wi(r,a,x.children,u),a.child;case 9:return x=a.type._context,g=a.pendingProps.children,typeof g!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Eo(a),x=br(x),g=OA(g,x,void 0),a.flags|=1,Wi(r,a,g,u),a.child;case 14:return R4(r,a,a.type,a.pendingProps,u);case 15:return M4(r,a,a.type,a.pendingProps,u);case 19:return D1(r,a,u);case 31:return G6(r,a,u);case 22:return T1(r,a,u,a.pendingProps);case 24:return Eo(a),g=br(Li),r===null?(x=tp(),x===null&&(x=wr,E=d4(),x.pooledCache=E,Df(E),E!==null&&(x.pooledCacheLanes|=u),x=E),a.memoizedState={parent:g,cache:x},bs(a),ms(a,Li,x)):((r.lanes&u)!==0&&(Ja(r,a),Ml(a,null,null,u),Ss()),x=r.memoizedState,E=a.memoizedState,x.parent!==g?(x={parent:g,cache:g},a.memoizedState=x,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=x),ms(a,Li,g)):(g=E.cache,ms(a,Li,g),g!==x.cache&&bc(a,[Li],u,!0))),Wi(r,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Rs(r){r.flags|=4}function I4(r,a,u,g,x){if((a=(r.mode&nfe)!==Zt)&&(a=!1),a){if(r.flags|=16777216,(x&335544128)===x)if(r.stateNode.complete)r.flags|=8192;else if($1())r.flags|=8192;else throw Tm=JE,MA}else r.flags&=-16777217}function z1(r,a){if(a.type!=="stylesheet"||(a.state.loading&eu)!==Lm)r.flags&=-16777217;else if(r.flags|=16777216,!iy(a))if($1())r.flags|=8192;else throw Tm=JE,MA}function Mp(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Ve():536870912,r.lanes|=a,_m|=a)}function g0(r,a){if(!In)switch(r.tailMode){case"hidden":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var g=null;u!==null;)u.alternate!==null&&(g=u),u=u.sibling;g===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:g.sibling=null}}function rr(r){var a=r.alternate!==null&&r.alternate.child===r.child,u=0,g=0;if(a)if((r.mode&xn)!==Zt){for(var x=r.selfBaseDuration,E=r.child;E!==null;)u|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,x+=E.treeBaseDuration,E=E.sibling;r.treeBaseDuration=x}else for(x=r.child;x!==null;)u|=x.lanes|x.childLanes,g|=x.subtreeFlags&65011712,g|=x.flags&65011712,x.return=r,x=x.sibling;else if((r.mode&xn)!==Zt){x=r.actualDuration,E=r.selfBaseDuration;for(var R=r.child;R!==null;)u|=R.lanes|R.childLanes,g|=R.subtreeFlags,g|=R.flags,x+=R.actualDuration,E+=R.treeBaseDuration,R=R.sibling;r.actualDuration=x,r.treeBaseDuration=E}else for(x=r.child;x!==null;)u|=x.lanes|x.childLanes,g|=x.subtreeFlags,g|=x.flags,x.return=r,x=x.sibling;return r.subtreeFlags|=g,r.childLanes=u,a}function Y6(r,a,u){var g=a.pendingProps;switch(l4(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rr(a),null;case 1:return rr(a),null;case 3:return u=a.stateNode,g=null,r!==null&&(g=r.memoizedState.cache),a.memoizedState.cache!==g&&(a.flags|=2048),gs(Li,a),ae(a),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(_f(a)?(Qh(),Rs(a)):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,c4())),rr(a),null;case 26:var x=a.type,E=a.memoizedState;return r===null?(Rs(a),E!==null?(rr(a),z1(a,E)):(rr(a),I4(a,x,null,g,u))):E?E!==r.memoizedState?(Rs(a),rr(a),z1(a,E)):(rr(a),a.flags&=-16777217):(r=r.memoizedProps,r!==g&&Rs(a),rr(a),I4(a,x,r,g,u)),null;case 27:if(te(a),u=oe(ll.current),x=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Rs(a);else{if(!g){if(a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return rr(a),null}r=de(),_f(a)?s4(a):(r=Ll(x,g,u,r,!0),a.stateNode=r,Rs(a))}return rr(a),null;case 5:if(te(a),x=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Rs(a);else{if(!g){if(a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return rr(a),null}var R=de();if(_f(a))s4(a);else{switch(E=oe(ll.current),Hg(x,R.ancestorInfo),R=R.context,E=X1(E),R){case rv:E=E.createElementNS(Dn,x);break;case Aw:E=E.createElementNS(An,x);break;default:switch(x){case"svg":E=E.createElementNS(Dn,x);break;case"math":E=E.createElementNS(An,x);break;case"script":E=E.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof g.is=="string"?E.createElement("select",{is:g.is}):E.createElement("select"),g.multiple?E.multiple=!0:g.size&&(E.size=g.size);break;default:E=typeof g.is=="string"?E.createElement(x,{is:g.is}):E.createElement(x),x.indexOf("-")===-1&&(x!==x.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",x),Object.prototype.toString.call(E)!=="[object HTMLUnknownElement]"||Bl.call(WL,x)||(WL[x]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",x)))}}E[na]=a,E[pa]=g;e:for(R=a.child;R!==null;){if(R.tag===5||R.tag===6)E.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===a)break e;for(;R.sibling===null;){if(R.return===null||R.return===a)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}a.stateNode=E;e:switch(jn(E,x,g),x){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&Rs(a)}}return rr(a),I4(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,u),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==g&&Rs(a);else{if(typeof g!="string"&&a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(r=oe(ll.current),u=de(),_f(a)){if(r=a.stateNode,u=a.memoizedProps,x=!$c,g=null,E=Ia,E!==null)switch(E.tag){case 3:x&&(x=Wp(r,u,g),x!==null&&(Mf(a,0).serverProps=x));break;case 27:case 5:g=E.memoizedProps,x&&(x=Wp(r,u,g),x!==null&&(Mf(a,0).serverProps=x))}r[na]=a,r=!!(r.nodeValue===u||g!==null&&g.suppressHydrationWarning===!0||Gp(r.nodeValue,u)),r||mu(a,!0)}else x=u.ancestorInfo.current,x!=null&&Wd(g,x.tag,u.ancestorInfo.implicitRootScope),r=X1(r).createTextNode(g),r[na]=a,a.stateNode=r}return rr(a),null;case 31:if(u=a.memoizedState,r===null||r.memoizedState!==null){if(g=_f(a),u!==null){if(r===null){if(!g)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");r[na]=a,rr(a),(a.mode&xn)!==Zt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration))}else Qh(),gu(),(a.flags&128)===0&&(u=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&xn)!==Zt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration));r=!1}else u=c4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return a.flags&256?(sa(a),a):(sa(a),null);if((a.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return rr(a),null;case 13:if(g=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(x=g,E=_f(a),x!==null&&x.dehydrated!==null){if(r===null){if(!E)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(E=a.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");E[na]=a,rr(a),(a.mode&xn)!==Zt&&x!==null&&(x=a.child,x!==null&&(a.treeBaseDuration-=x.treeBaseDuration))}else Qh(),gu(),(a.flags&128)===0&&(x=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&xn)!==Zt&&x!==null&&(x=a.child,x!==null&&(a.treeBaseDuration-=x.treeBaseDuration));x=!1}else x=c4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=x),x=!0;if(!x)return a.flags&256?(sa(a),a):(sa(a),null)}return sa(a),(a.flags&128)!==0?(a.lanes=u,(a.mode&xn)!==Zt&&Ao(a),a):(u=g!==null,r=r!==null&&r.memoizedState!==null,u&&(g=a.child,x=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(x=g.alternate.memoizedState.cachePool.pool),E=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(E=g.memoizedState.cachePool.pool),E!==x&&(g.flags|=2048)),u!==r&&u&&(a.child.flags|=8192),Mp(a,a.updateQueue),rr(a),(a.mode&xn)!==Zt&&u&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return ae(a),r===null&&Hp(a.stateNode.containerInfo),rr(a),null;case 10:return gs(a.type,a),rr(a),null;case 19:if(le(Ai,a),g=a.memoizedState,g===null)return rr(a),null;if(x=(a.flags&128)!==0,E=g.rendering,E===null)if(x)g0(g,!1);else{if(ti!==Sd||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(E=ws(r),E!==null){for(a.flags|=128,g0(g,!1),r=E.updateQueue,a.updateQueue=r,Mp(a,r),a.subtreeFlags=0,r=u,u=a.child;u!==null;)e0(u,r),u=u.sibling;return Q(Ai,Ai.current&Gy|d5,a),In&&hs(a,g.treeForkCount),a.child}r=r.sibling}g.tail!==null&&Jr()>dw&&(a.flags|=128,x=!0,g0(g,!1),a.lanes=4194304)}else{if(!x)if(r=ws(E),r!==null){if(a.flags|=128,x=!0,r=r.updateQueue,a.updateQueue=r,Mp(a,r),g0(g,!0),g.tail===null&&g.tailMode==="hidden"&&!E.alternate&&!In)return rr(a),null}else 2*Jr()-g.renderingStartTime>dw&&u!==536870912&&(a.flags|=128,x=!0,g0(g,!1),a.lanes=4194304);g.isBackwards?(E.sibling=a.child,a.child=E):(r=g.last,r!==null?r.sibling=E:a.child=E,g.last=E)}return g.tail!==null?(r=g.tail,g.rendering=r,g.tail=r.sibling,g.renderingStartTime=Jr(),r.sibling=null,u=Ai.current,u=x?u&Gy|d5:u&Gy,Q(Ai,u,a),In&&hs(a,g.treeForkCount),r):(rr(a),null);case 22:case 23:return sa(a),Es(a),g=a.memoizedState!==null,r!==null?r.memoizedState!==null!==g&&(a.flags|=8192):g&&(a.flags|=8192),g?(u&536870912)!==0&&(a.flags&128)===0&&(rr(a),a.subtreeFlags&6&&(a.flags|=8192)):rr(a),u=a.updateQueue,u!==null&&Mp(a,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),g=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),g!==u&&(a.flags|=2048),r!==null&&le(Em,a),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),gs(Li,a),rr(a),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function X6(r,a){switch(l4(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 3:return gs(Li,a),ae(a),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return te(a),null;case 31:if(a.memoizedState!==null){if(sa(a),a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 13:if(sa(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 19:return le(Ai,a),null;case 4:return ae(a),null;case 10:return gs(a.type,a),null;case 22:case 23:return sa(a),Es(a),r!==null&&le(Em,a),r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 24:return gs(Li,a),null;case 25:return null;default:return null}}function W6(r,a){switch(l4(a),a.tag){case 3:gs(Li,a),ae(a);break;case 26:case 27:case 5:te(a);break;case 4:ae(a);break;case 31:a.memoizedState!==null&&sa(a);break;case 13:sa(a);break;case 19:le(Ai,a);break;case 10:gs(a.type,a);break;case 22:case 23:sa(a),Es(a),r!==null&&le(Em,a);break;case 24:gs(Li,a)}}function Ms(r){return(r.mode&xn)!==Zt}function L4(r,a){Ms(r)?(Ko(),Gf(a,r),ys()):Gf(a,r)}function qf(r,a,u){Ms(r)?(Ko(),Cu(u,r,a),ys()):Cu(u,r,a)}function Gf(r,a){try{var u=a.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var x=g.next;u=x;do{if((u.tag&r)===r&&(g=void 0,(r&Lo)!==tw&&(ev=!0),g=Be(a,sfe,u),(r&Lo)!==tw&&(ev=!1),g!==void 0&&typeof g!="function")){var E=void 0;E=(u.tag&$l)!==0?"useLayoutEffect":(u.tag&Lo)!==0?"useInsertionEffect":"useEffect";var R=void 0;R=g===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof g.then=="function"?`

It looks like you wrote `+E+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:

`+E+`(() => {
  async function fetchData() {
    // You can await here
    const response = await MyAPI.getData(someId);
    // ...
  }
  fetchData();
}, [someId]); // Or [] if effect doesn't need props or state

Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+g,Be(a,function(D,q){console.error("%s must not return anything besides a function, which is used for clean-up.%s",D,q)},E,R)}u=u.next}while(u!==x)}}catch(D){Yn(a,a.return,D)}}function Cu(r,a,u){try{var g=a.updateQueue,x=g!==null?g.lastEffect:null;if(x!==null){var E=x.next;g=E;do{if((g.tag&r)===r){var R=g.inst,D=R.destroy;D!==void 0&&(R.destroy=void 0,(r&Lo)!==tw&&(ev=!0),x=a,Be(x,ufe,x,u,D),(r&Lo)!==tw&&(ev=!1))}g=g.next}while(g!==E)}}catch(q){Yn(a,a.return,q)}}function V4(r,a){Ms(r)?(Ko(),Gf(a,r),ys()):Gf(a,r)}function I1(r,a,u){Ms(r)?(Ko(),Cu(u,r,a),ys()):Cu(u,r,a)}function y0(r){var a=r.updateQueue;if(a!==null){var u=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||Wy||(u.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(r)||"instance"),u.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(r)||"instance"));try{Be(r,s1,a,u)}catch(g){Yn(r,r.return,g)}}}function Q6(r,a,u){return r.getSnapshotBeforeUpdate(a,u)}function B4(r,a){var u=a.memoizedProps,g=a.memoizedState;a=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||Wy||(a.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(r)||"instance"),a.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(r)||"instance"));try{var x=Au(r.type,u),E=Be(r,Q6,a,x,g);u=CL,E!==void 0||u.has(r.type)||(u.add(r.type),Be(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ue(r))})),a.__reactInternalSnapshotBeforeUpdate=E}catch(R){Yn(r,r.return,R)}}function j4(r,a,u){u.props=Au(r.type,r.memoizedProps),u.state=r.memoizedState,Ms(r)?(Ko(),Be(r,GI,r,a,u),ys()):Be(r,GI,r,a,u)}function P4(r){var a=r.ref;if(a!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}if(typeof a=="function")if(Ms(r))try{Ko(),r.refCleanup=a(u)}finally{ys()}else r.refCleanup=a(u);else typeof a=="string"?console.error("String refs are no longer supported."):a.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ue(r)),a.current=u}}function Ff(r,a){try{Be(r,P4,r)}catch(u){Yn(r,a,u)}}function kl(r,a){var u=r.ref,g=r.refCleanup;if(u!==null)if(typeof g=="function")try{if(Ms(r))try{Ko(),Be(r,g)}finally{ys(r)}else Be(r,g)}catch(x){Yn(r,a,x)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{if(Ms(r))try{Ko(),Be(r,u,null)}finally{ys(r)}else Be(r,u,null)}catch(x){Yn(r,a,x)}else u.current=null}function U4(r,a,u,g){var x=r.memoizedProps,E=x.id,R=x.onCommit;x=x.onRender,a=a===null?"mount":"update",WE&&(a="nested-update"),typeof x=="function"&&x(E,a,r.actualDuration,r.treeBaseDuration,r.actualStartTime,u),typeof R=="function"&&R(E,a,g,u)}function Yf(r,a,u,g){var x=r.memoizedProps;r=x.id,x=x.onPostCommit,a=a===null?"mount":"update",WE&&(a="nested-update"),typeof x=="function"&&x(r,a,g,u)}function $4(r){var a=r.type,u=r.memoizedProps,g=r.stateNode;try{Be(r,uE,g,a,u,r)}catch(x){Yn(r,r.return,x)}}function L1(r,a,u){try{Be(r,px,r.stateNode,r.type,u,a,r)}catch(g){Yn(r,r.return,g)}}function H4(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Du(r.type)||r.tag===4}function v0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||H4(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Du(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function V1(r,a,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?(fE(u),(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,a)):(fE(u),a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(r),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Gi));else if(g!==4&&(g===27&&Du(r.type)&&(u=r.stateNode,a=null),r=r.child,r!==null))for(V1(r,a,u),r=r.sibling;r!==null;)V1(r,a,u),r=r.sibling}function b0(r,a,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?u.insertBefore(r,a):u.appendChild(r);else if(g!==4&&(g===27&&Du(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(b0(r,a,u),r=r.sibling;r!==null;)b0(r,a,u),r=r.sibling}function K6(r){for(var a,u=r.return;u!==null;){if(H4(u)){a=u;break}u=u.return}if(a==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(a.tag){case 27:a=a.stateNode,u=v0(r),b0(r,u,a);break;case 5:u=a.stateNode,a.flags&32&&(cE(u),a.flags&=-33),a=v0(r),b0(r,a,u);break;case 3:case 4:a=a.stateNode.containerInfo,u=v0(r),V1(r,u,a);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function q4(r){var a=r.stateNode,u=r.memoizedProps;try{Be(r,Qp,r.type,u,a,r)}catch(g){Yn(r,r.return,g)}}function Z6(r,a){return a.tag===31?(a=a.memoizedState,r.memoizedState!==null&&a===null):a.tag===13?(r=r.memoizedState,a=a.memoizedState,r!==null&&r.dehydrated!==null&&(a===null||a.dehydrated===null)):a.tag===3?r.memoizedState.isDehydrated&&(a.flags&256)===0:!1}function G4(r,a){if(r=r.containerInfo,oC=Mw,r=N6(r),Jb(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var g=u.getSelection&&u.getSelection();if(g&&g.rangeCount!==0){u=g.anchorNode;var x=g.anchorOffset,E=g.focusNode;g=g.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var R=0,D=-1,q=-1,K=0,Ee=0,Ae=r,ge=null;t:for(;;){for(var Le;Ae!==u||x!==0&&Ae.nodeType!==3||(D=R+x),Ae!==E||g!==0&&Ae.nodeType!==3||(q=R+g),Ae.nodeType===3&&(R+=Ae.nodeValue.length),(Le=Ae.firstChild)!==null;)ge=Ae,Ae=Le;for(;;){if(Ae===r)break t;if(ge===u&&++K===x&&(D=R),ge===E&&++Ee===g&&(q=R),(Le=Ae.nextSibling)!==null)break;Ae=ge,ge=Ae.parentNode}Ae=Le}u=D===-1||q===-1?null:{start:D,end:q}}else u=null}u=u||{start:0,end:0}}else u=null;for(lC={focusedElem:r,selectionRange:u},Mw=!1,ga=a;ga!==null;)if(a=ga,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,ga=r;else for(;ga!==null;){switch(r=a=ga,u=r.alternate,x=r.flags,r.tag){case 0:if((x&4)!==0&&(r=r.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)x=r[u],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:(x&1024)!==0&&u!==null&&B4(r,u);break;case 3:if((x&1024)!==0){if(r=r.stateNode.containerInfo,u=r.nodeType,u===9)K1(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":K1(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((x&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(r=a.sibling,r!==null){r.return=a.return,ga=r;break}ga=a.return}}function li(r,a,u){var g=zi(),x=wo(),E=Qo(),R=oa(),D=u.flags;switch(u.tag){case 0:case 11:case 15:Jo(r,u),D&4&&L4(u,$l|Zs);break;case 1:if(Jo(r,u),D&4)if(r=u.stateNode,a===null)u.type.defaultProps||"ref"in u.memoizedProps||Wy||(r.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(u)||"instance"),r.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(u)||"instance")),Ms(u)?(Ko(),Be(u,RA,u,r),ys()):Be(u,RA,u,r);else{var q=Au(u.type,a.memoizedProps);a=a.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Wy||(r.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(u)||"instance"),r.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(u)||"instance")),Ms(u)?(Ko(),Be(u,$I,u,r,q,a,r.__reactInternalSnapshotBeforeUpdate),ys()):Be(u,$I,u,r,q,a,r.__reactInternalSnapshotBeforeUpdate)}D&64&&y0(u),D&512&&Ff(u,u.return);break;case 3:if(a=Ol(),Jo(r,u),D&64&&(D=u.updateQueue,D!==null)){if(q=null,u.child!==null)switch(u.child.tag){case 27:case 5:q=u.child.stateNode;break;case 1:q=u.child.stateNode}try{Be(u,s1,D,q)}catch(Ee){Yn(u,u.return,Ee)}}r.effectDuration+=Wa(a);break;case 27:a===null&&D&4&&q4(u);case 26:case 5:if(Jo(r,u),a===null){if(D&4)$4(u);else if(D&64){r=u.type,a=u.memoizedProps,q=u.stateNode;try{Be(u,W1,q,r,a,u)}catch(Ee){Yn(u,u.return,Ee)}}}D&512&&Ff(u,u.return);break;case 12:if(D&4){D=Ol(),Jo(r,u),r=u.stateNode,r.effectDuration+=Sc(D);try{Be(u,U4,u,a,q0,r.effectDuration)}catch(Ee){Yn(u,u.return,Ee)}}else Jo(r,u);break;case 31:Jo(r,u),D&4&&Y4(r,u);break;case 13:Jo(r,u),D&4&&X4(r,u),D&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(D=Zf.bind(null,u),Q8(r,D))));break;case 22:if(D=u.memoizedState!==null||xd,!D){a=a!==null&&a.memoizedState!==null||Pi,q=xd;var K=Pi;xd=D,(Pi=a)&&!K?(el(r,u,(u.subtreeFlags&8772)!==0),(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&Qg(u,$t,Xt)):Jo(r,u),xd=q,Pi=K}break;case 30:break;default:Jo(r,u)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(u,$t,Xt,ei,jr),u.alternate===null&&u.return!==null&&u.return.alternate!==null&&.05<Xt-$t&&(Z6(u.return.alternate,u.return)||us(u,$t,Xt,"Mount"))),Ca(g),To(x),jr=E,ui=R}function Ii(r){var a=r.alternate;a!==null&&(r.alternate=null,Ii(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Oe(a)),r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function _s(r,a,u){for(u=u.child;u!==null;)F4(r,a,u),u=u.sibling}function F4(r,a,u){if(ha&&typeof ha.onCommitFiberUnmount=="function")try{ha.onCommitFiberUnmount(Iu,u)}catch(K){$s||($s=!0,console.error("React instrumentation encountered an error: %o",K))}var g=zi(),x=wo(),E=Qo(),R=oa();switch(u.tag){case 26:Pi||kl(u,a),_s(r,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(r=u.stateNode,r.parentNode.removeChild(r));break;case 27:Pi||kl(u,a);var D=Ui,q=fl;Du(u.type)&&(Ui=u.stateNode,fl=!1),_s(r,a,u),Be(u,Kp,u.stateNode),Ui=D,fl=q;break;case 5:Pi||kl(u,a);case 6:if(D=Ui,q=fl,Ui=null,_s(r,a,u),Ui=D,fl=q,Ui!==null)if(fl)try{Be(u,C0,Ui,u.stateNode)}catch(K){Yn(u,a,K)}else try{Be(u,dE,Ui,u.stateNode)}catch(K){Yn(u,a,K)}break;case 18:Ui!==null&&(fl?(r=Ui,Xp(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),N0(r)):Xp(Ui,u.stateNode));break;case 4:D=Ui,q=fl,Ui=u.stateNode.containerInfo,fl=!0,_s(r,a,u),Ui=D,fl=q;break;case 0:case 11:case 14:case 15:Cu(Lo,u,a),Pi||qf(u,a,$l),_s(r,a,u);break;case 1:Pi||(kl(u,a),D=u.stateNode,typeof D.componentWillUnmount=="function"&&j4(u,a,D)),_s(r,a,u);break;case 21:_s(r,a,u);break;case 22:Pi=(D=Pi)||u.memoizedState!==null,_s(r,a,u),Pi=D;break;default:_s(r,a,u)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(u,$t,Xt,ei,jr),Ca(g),To(x),jr=E,ui=R}function Y4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Be(a,yx,r)}catch(u){Yn(a,a.return,u)}}}function X4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Be(a,Bc,r)}catch(u){Yn(a,a.return,u)}}function _p(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new OL),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new OL),a;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function Dp(r,a){var u=_p(r);a.forEach(function(g){if(!u.has(g)){if(u.add(g),ul)if(Qy!==null&&Ky!==null)Ls(Ky,Qy);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var x=Ru.bind(null,r,g);g.then(x,x)}})}function Qi(r,a){var u=a.deletions;if(u!==null)for(var g=0;g<u.length;g++){var x=r,E=a,R=u[g],D=zi(),q=E;e:for(;q!==null;){switch(q.tag){case 27:if(Du(q.type)){Ui=q.stateNode,fl=!1;break e}break;case 5:Ui=q.stateNode,fl=!1;break e;case 3:case 4:Ui=q.stateNode.containerInfo,fl=!0;break e}q=q.return}if(Ui===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");F4(x,E,R),Ui=null,fl=!1,(R.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(R,$t,Xt,"Unmount"),Ca(D),x=R,E=x.alternate,E!==null&&(E.return=null),x.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)W4(a,r),a=a.sibling}function W4(r,a){var u=zi(),g=wo(),x=Qo(),E=oa(),R=r.alternate,D=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Qi(a,r),ro(r),D&4&&(Cu(Lo|Zs,r,r.return),Gf(Lo|Zs,r),qf(r,r.return,$l|Zs));break;case 1:if(Qi(a,r),ro(r),D&512&&(Pi||R===null||kl(R,R.return)),D&64&&xd&&(D=r.updateQueue,D!==null&&(R=D.callbacks,R!==null))){var q=D.shared.hiddenCallbacks;D.shared.hiddenCallbacks=q===null?R:q.concat(R)}break;case 26:if(q=ju,Qi(a,r),ro(r),D&512&&(Pi||R===null||kl(R,R.return)),D&4){var K=R!==null?R.memoizedState:null;if(D=r.memoizedState,R===null)if(D===null)if(r.stateNode===null){e:{D=r.type,R=r.memoizedProps,q=q.ownerDocument||q;t:switch(D){case"title":K=q.getElementsByTagName("title")[0],(!K||K[fm]||K[na]||K.namespaceURI===Dn||K.hasAttribute("itemprop"))&&(K=q.createElement(D),q.head.insertBefore(K,q.querySelector("head > title"))),jn(K,D,R),K[na]=r,vt(K),D=K;break e;case"link":var Ee=SE("link","href",q).get(D+(R.href||""));if(Ee){for(var Ae=0;Ae<Ee.length;Ae++)if(K=Ee[Ae],K.getAttribute("href")===(R.href==null||R.href===""?null:R.href)&&K.getAttribute("rel")===(R.rel==null?null:R.rel)&&K.getAttribute("title")===(R.title==null?null:R.title)&&K.getAttribute("crossorigin")===(R.crossOrigin==null?null:R.crossOrigin)){Ee.splice(Ae,1);break t}}K=q.createElement(D),jn(K,D,R),q.head.appendChild(K);break;case"meta":if(Ee=SE("meta","content",q).get(D+(R.content||""))){for(Ae=0;Ae<Ee.length;Ae++)if(K=Ee[Ae],xt(R.content,"content"),K.getAttribute("content")===(R.content==null?null:""+R.content)&&K.getAttribute("name")===(R.name==null?null:R.name)&&K.getAttribute("property")===(R.property==null?null:R.property)&&K.getAttribute("http-equiv")===(R.httpEquiv==null?null:R.httpEquiv)&&K.getAttribute("charset")===(R.charSet==null?null:R.charSet)){Ee.splice(Ae,1);break t}}K=q.createElement(D),jn(K,D,R),q.head.appendChild(K);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+D+'". This is a bug in React.')}K[na]=r,vt(K),D=K}r.stateNode=D}else Ex(q,r.type,r.stateNode);else r.stateNode=ny(q,D,r.memoizedProps);else K!==D?(K===null?R.stateNode!==null&&(R=R.stateNode,R.parentNode.removeChild(R)):K.count--,D===null?Ex(q,r.type,r.stateNode):ny(q,D,r.memoizedProps)):D===null&&r.stateNode!==null&&L1(r,r.memoizedProps,R.memoizedProps)}break;case 27:Qi(a,r),ro(r),D&512&&(Pi||R===null||kl(R,R.return)),R!==null&&D&4&&L1(r,r.memoizedProps,R.memoizedProps);break;case 5:if(Qi(a,r),ro(r),D&512&&(Pi||R===null||kl(R,R.return)),r.flags&32){q=r.stateNode;try{Be(r,cE,q)}catch(Et){Yn(r,r.return,Et)}}D&4&&r.stateNode!=null&&(q=r.memoizedProps,L1(r,q,R!==null?R.memoizedProps:q)),D&1024&&(UA=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Qi(a,r),ro(r),D&4){if(r.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");D=r.memoizedProps,R=R!==null?R.memoizedProps:D,q=r.stateNode;try{Be(r,W8,q,R,D)}catch(Et){Yn(r,r.return,Et)}}break;case 3:if(q=Ol(),Cw=null,K=ju,ju=Zp(a.containerInfo),Qi(a,r),ju=K,ro(r),D&4&&R!==null&&R.memoizedState.isDehydrated)try{Be(r,ty,a.containerInfo)}catch(Et){Yn(r,r.return,Et)}UA&&(UA=!1,Np(r)),a.effectDuration+=Wa(q);break;case 4:D=ju,ju=Zp(r.stateNode.containerInfo),Qi(a,r),ro(r),ju=D;break;case 12:D=Ol(),Qi(a,r),ro(r),r.stateNode.effectDuration+=Sc(D);break;case 31:Qi(a,r),ro(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 13:Qi(a,r),ro(r),r.child.flags&8192&&r.memoizedState!==null!=(R!==null&&R.memoizedState!==null)&&(fw=Jr()),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 22:q=r.memoizedState!==null;var ge=R!==null&&R.memoizedState!==null,Le=xd,mt=Pi;if(xd=Le||q,Pi=mt||ge,Qi(a,r),Pi=mt,xd=Le,ge&&!q&&!Le&&!mt&&(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&Qg(r,$t,Xt),ro(r),D&8192)e:for(a=r.stateNode,a._visibility=q?a._visibility&~Qx:a._visibility|Qx,!q||R===null||ge||xd||Pi||(Dc(r),(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(r,$t,Xt,"Disconnect")),R=null,a=r;;){if(a.tag===5||a.tag===26){if(R===null){ge=R=a;try{K=ge.stateNode,q?Be(ge,pE,K):Be(ge,yE,ge.stateNode,ge.memoizedProps)}catch(Et){Yn(ge,ge.return,Et)}}}else if(a.tag===6){if(R===null){ge=a;try{Ee=ge.stateNode,q?Be(ge,mE,Ee):Be(ge,Q1,Ee,ge.memoizedProps)}catch(Et){Yn(ge,ge.return,Et)}}}else if(a.tag===18){if(R===null){ge=a;try{Ae=ge.stateNode,q?Be(ge,hE,Ae):Be(ge,gE,ge.stateNode)}catch(Et){Yn(ge,ge.return,Et)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;R===a&&(R=null),a=a.return}R===a&&(R=null),a.sibling.return=a.return,a=a.sibling}D&4&&(D=r.updateQueue,D!==null&&(R=D.retryQueue,R!==null&&(D.retryQueue=null,Dp(r,R))));break;case 19:Qi(a,r),ro(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 30:break;case 21:break;default:Qi(a,r),ro(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(r,$t,Xt,ei,jr),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<Xt-$t&&(Z6(r.return.alternate,r.return)||us(r,$t,Xt,"Mount"))),Ca(u),To(g),jr=x,ui=E}function ro(r){var a=r.flags;if(a&2){try{Be(r,K6,r)}catch(u){Yn(r,r.return,u)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Np(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Np(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Jo(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)li(r,a.alternate,a),a=a.sibling}function Q4(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 14:case 15:qf(r,r.return,$l),Dc(r);break;case 1:kl(r,r.return);var E=r.stateNode;typeof E.componentWillUnmount=="function"&&j4(r,r.return,E),Dc(r);break;case 27:Be(r,Kp,r.stateNode);case 26:case 5:kl(r,r.return),Dc(r);break;case 22:r.memoizedState===null&&Dc(r);break;case 30:Dc(r);break;default:Dc(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),jr=g,ui=x}function Dc(r){for(r=r.child;r!==null;)Q4(r),r=r.sibling}function K4(r,a,u,g){var x=zi(),E=wo(),R=Qo(),D=oa(),q=u.flags;switch(u.tag){case 0:case 11:case 15:el(r,u,g),L4(u,$l);break;case 1:if(el(r,u,g),a=u.stateNode,typeof a.componentDidMount=="function"&&Be(u,RA,u,a),a=u.updateQueue,a!==null){r=u.stateNode;try{Be(u,op,a,r)}catch(K){Yn(u,u.return,K)}}g&&q&64&&y0(u),Ff(u,u.return);break;case 27:q4(u);case 26:case 5:el(r,u,g),g&&a===null&&q&4&&$4(u),Ff(u,u.return);break;case 12:if(g&&q&4){q=Ol(),el(r,u,g),g=u.stateNode,g.effectDuration+=Sc(q);try{Be(u,U4,u,a,q0,g.effectDuration)}catch(K){Yn(u,u.return,K)}}else el(r,u,g);break;case 31:el(r,u,g),g&&q&4&&Y4(r,u);break;case 13:el(r,u,g),g&&q&4&&X4(r,u);break;case 22:u.memoizedState===null&&el(r,u,g),Ff(u,u.return);break;case 30:break;default:el(r,u,g)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(u,$t,Xt,ei,jr),Ca(x),To(E),jr=R,ui=D}function el(r,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;)K4(r,a.alternate,a,u),a=a.sibling}function kp(r,a){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(r!=null&&Df(r),u!=null&&Jh(u))}function zp(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(Df(a),r!=null&&Jh(r))}function tl(r,a,u,g,x){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(a=a.child;a!==null;){var E=a.sibling;B1(r,a,u,g,E!==null?E.actualStartTime:x),a=E}}function B1(r,a,u,g,x){var E=zi(),R=wo(),D=Qo(),q=oa(),K=P0,Ee=a.flags;switch(a.tag){case 0:case 11:case 15:(a.mode&xn)!==Zt&&0<a.actualStartTime&&(a.flags&1)!==0&&Kg(a,a.actualStartTime,x,ra,u),tl(r,a,u,g,x),Ee&2048&&V4(a,Vo|Zs);break;case 1:(a.mode&xn)!==Zt&&0<a.actualStartTime&&((a.flags&128)!==0?Zg(a,a.actualStartTime,x,[]):(a.flags&1)!==0&&Kg(a,a.actualStartTime,x,ra,u)),tl(r,a,u,g,x);break;case 3:var Ae=Ol(),ge=ra;ra=a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)===0,tl(r,a,u,g,x),ra=ge,Ee&2048&&(u=null,a.alternate!==null&&(u=a.alternate.memoizedState.cache),g=a.memoizedState.cache,g!==u&&(Df(g),u!=null&&Jh(u))),r.passiveEffectDuration+=Wa(Ae);break;case 12:if(Ee&2048){Ee=Ol(),tl(r,a,u,g,x),r=a.stateNode,r.passiveEffectDuration+=Sc(Ee);try{Be(a,Yf,a,a.alternate,q0,r.passiveEffectDuration)}catch(Le){Yn(a,a.return,Le)}}else tl(r,a,u,g,x);break;case 31:Ee=ra,Ae=a.alternate!==null?a.alternate.memoizedState:null,ge=a.memoizedState,Ae!==null&&ge===null?(ge=a.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(ra=!1,Ae=Ae.hydrationErrors,Ae!==null&&Zg(a,a.actualStartTime,x,Ae)):ra=!0):ra=!1,tl(r,a,u,g,x),ra=Ee;break;case 13:Ee=ra,Ae=a.alternate!==null?a.alternate.memoizedState:null,ge=a.memoizedState,Ae===null||Ae.dehydrated===null||ge!==null&&ge.dehydrated!==null?ra=!1:(ge=a.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(ra=!1,Ae=Ae.hydrationErrors,Ae!==null&&Zg(a,a.actualStartTime,x,Ae)):ra=!0),tl(r,a,u,g,x),ra=Ee;break;case 23:break;case 22:ge=a.stateNode,Ae=a.alternate,a.memoizedState!==null?ge._visibility&cd?tl(r,a,u,g,x):x0(r,a,u,g,x):ge._visibility&cd?tl(r,a,u,g,x):(ge._visibility|=cd,Ou(r,a,u,g,(a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child),x),(a.mode&xn)===Zt||ra||(r=a.actualStartTime,0<=r&&.05<x-r&&Qg(a,r,x),0<=$t&&0<=Xt&&.05<Xt-$t&&Qg(a,$t,Xt))),Ee&2048&&kp(Ae,a);break;case 24:tl(r,a,u,g,x),Ee&2048&&zp(a.alternate,a);break;default:tl(r,a,u,g,x)}(a.mode&xn)!==Zt&&((r=!ra&&a.alternate===null&&a.return!==null&&a.return.alternate!==null)&&(u=a.actualStartTime,0<=u&&.05<x-u&&us(a,u,x,"Mount")),0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(a,$t,Xt,ei,jr),r&&.05<Xt-$t&&us(a,$t,Xt,"Mount"))),Ca(E),To(R),jr=D,ui=q,P0=K}function Ou(r,a,u,g,x,E){for(x=x&&((a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child)),a=a.child;a!==null;){var R=a.sibling;j1(r,a,u,g,x,R!==null?R.actualStartTime:E),a=R}}function j1(r,a,u,g,x,E){var R=zi(),D=wo(),q=Qo(),K=oa(),Ee=P0;x&&(a.mode&xn)!==Zt&&0<a.actualStartTime&&(a.flags&1)!==0&&Kg(a,a.actualStartTime,E,ra,u);var Ae=a.flags;switch(a.tag){case 0:case 11:case 15:Ou(r,a,u,g,x,E),V4(a,Vo);break;case 23:break;case 22:var ge=a.stateNode;a.memoizedState!==null?ge._visibility&cd?Ou(r,a,u,g,x,E):x0(r,a,u,g,E):(ge._visibility|=cd,Ou(r,a,u,g,x,E)),x&&Ae&2048&&kp(a.alternate,a);break;case 24:Ou(r,a,u,g,x,E),x&&Ae&2048&&zp(a.alternate,a);break;default:Ou(r,a,u,g,x,E)}(a.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(a,$t,Xt,ei,jr),Ca(R),To(D),jr=q,ui=K,P0=Ee}function x0(r,a,u,g,x){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(var E=a.child;E!==null;){a=E.sibling;var R=r,D=u,q=g,K=a!==null?a.actualStartTime:x,Ee=P0;(E.mode&xn)!==Zt&&0<E.actualStartTime&&(E.flags&1)!==0&&Kg(E,E.actualStartTime,K,ra,D);var Ae=E.flags;switch(E.tag){case 22:x0(R,E,D,q,K),Ae&2048&&kp(E.alternate,E);break;case 24:x0(R,E,D,q,K),Ae&2048&&zp(E.alternate,E);break;default:x0(R,E,D,q,K)}P0=Ee,E=a}}function Nc(r,a,u){if(r.subtreeFlags&g5)for(r=r.child;r!==null;)Z4(r,a,u),r=r.sibling}function Z4(r,a,u){switch(r.tag){case 26:Nc(r,a,u),r.flags&g5&&r.memoizedState!==null&&ay(u,ju,r.memoizedState,r.memoizedProps);break;case 5:Nc(r,a,u);break;case 3:case 4:var g=ju;ju=Zp(r.stateNode.containerInfo),Nc(r,a,u),ju=g;break;case 22:r.memoizedState===null&&(g=r.alternate,g!==null&&g.memoizedState!==null?(g=g5,g5=16777216,Nc(r,a,u),g5=g):Nc(r,a,u));break;default:Nc(r,a,u)}}function Ds(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Xf(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var g=a[u],x=zi();ga=g,P1(g,r),(g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(g,$t,Xt,"Unmount"),Ca(x)}Ds(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)J6(r),r=r.sibling}function J6(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 15:Xf(r),r.flags&2048&&I1(r,r.return,Vo|Zs);break;case 3:var E=Ol();Xf(r),r.stateNode.passiveEffectDuration+=Wa(E);break;case 12:E=Ol(),Xf(r),r.stateNode.passiveEffectDuration+=Sc(E);break;case 22:E=r.stateNode,r.memoizedState!==null&&E._visibility&cd&&(r.return===null||r.return.tag!==13)?(E._visibility&=~cd,Ip(r),(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(r,$t,Xt,"Disconnect")):Xf(r);break;default:Xf(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),ui=x,jr=g}function Ip(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var g=a[u],x=zi();ga=g,P1(g,r),(g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(g,$t,Xt,"Unmount"),Ca(x)}Ds(r)}for(r=r.child;r!==null;)Ns(r),r=r.sibling}function Ns(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 15:I1(r,r.return,Vo),Ip(r);break;case 22:var E=r.stateNode;E._visibility&cd&&(E._visibility&=~cd,Ip(r));break;default:Ip(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),ui=x,jr=g}function P1(r,a){for(;ga!==null;){var u=ga,g=u,x=a,E=zi(),R=wo(),D=Qo(),q=oa();switch(g.tag){case 0:case 11:case 15:I1(g,x,Vo);break;case 23:case 22:g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(x=g.memoizedState.cachePool.pool,x!=null&&Df(x));break;case 24:Jh(g.memoizedState.cache)}if((g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(g,$t,Xt,ei,jr),Ca(E),To(R),ui=q,jr=D,g=u.child,g!==null)g.return=u,ga=g;else e:for(u=r;ga!==null;){if(g=ga,E=g.sibling,R=g.return,Ii(g),g===u){ga=null;break e}if(E!==null){E.return=R,ga=E;break e}ga=R}}}function eE(){pfe.forEach(function(r){return r()})}function Lp(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||$e.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function Ki(r){if((Gn&ia)!==ya&&En!==0)return En&-En;var a=$e.T;return a!==null?(a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(r),Hn()):cr()}function Sr(){if(hl===0)if((En&536870912)===0||In){var r=V0;V0<<=1,(V0&3932160)===0&&(V0=262144),hl=r}else hl=536870912;return r=Ul.current,r!==null&&(r.flags|=32),hl}function Br(r,a,u){if(ev&&console.error("useInsertionEffect must not schedule updates."),ZA&&(mw=!0),(r===wr&&(pr===Rm||pr===Mm)||r.cancelPendingCommit!==null)&&(_a(r,0),Ma(r,En,hl,!1)),pt(r,u),(Gn&ia)!==ya&&r===wr){if(sl)switch(a.tag){case 0:case 11:case 15:r=Cn&&ue(Cn)||"Unknown",$L.has(r)||($L.add(r),a=ue(a)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",a,r,r));break;case 1:UL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),UL=!0)}}else ul&&Fn(r,a,u),Up(a),r===wr&&((Gn&ia)===ya&&(Z0|=u),ti===W0&&Ma(r,En,hl,!1)),Na(r)}function tE(r,a,u){if((Gn&(ia|Hl))!==ya)throw Error("Should not already be working.");if(En!==0&&Cn!==null){var g=Cn,x=Jr();switch(zI){case b5:case Rm:var E=n5;kr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Suspended",E,x,qs,void 0,"primary-light")):console.timeStamp("Suspended",E,x,qs,void 0,"primary-light"));break;case Mm:E=n5,kr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Action",E,x,qs,void 0,"primary-light")):console.timeStamp("Action",E,x,qs,void 0,"primary-light"));break;default:kr&&(g=x-n5,3>g||console.timeStamp("Blocked",n5,x,qs,void 0,5>g?"primary-light":10>g?"primary":100>g?"primary-dark":"error"))}}E=(u=!u&&(a&127)===0&&(a&r.expiredLanes)===0||Ze(r,a))?gi(r,a):q1(r,a,!0);var R=u;do{if(E===Sd){Zy&&!u&&Ma(r,a,0,!1),a=pr,n5=Vi(),zI=a;break}else{if(g=Jr(),x=r.current.alternate,R&&!Vp(x)){So(a),x=ma,E=g,!kr||E<=x||(yi?yi.run(console.timeStamp.bind(console,"Teared Render",x,E,$n,Pn,"error")):console.timeStamp("Teared Render",x,E,$n,Pn,"error")),zl(a,g),E=q1(r,a,!1),R=!1;continue}if(E===Om){if(R=a,r.errorRecoveryDisabledLanes&R)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){So(a),t4(ma,g,a,yi),zl(a,g),a=D;e:{g=r,E=R,R=S5;var q=g.current.memoizedState.isDehydrated;if(q&&(_a(g,D).flags|=256),D=q1(g,D,!1),D!==Om){if(qA&&!q){g.errorRecoveryDisabledLanes|=E,Z0|=E,E=W0;break e}g=Bo,Bo=R,g!==null&&(Bo===null?Bo=g:Bo.push.apply(Bo,g))}E=D}if(R=!1,E!==Om)continue;g=Jr()}}if(E===v5){So(a),t4(ma,g,a,yi),zl(a,g),_a(r,0),Ma(r,a,0,!0);break}e:{switch(u=r,E){case Sd:case v5:throw Error("Root did not complete. This is a bug in React.");case W0:if((a&4194048)!==a)break;case lw:So(a),I6(ma,g,a,yi),zl(a,g),x=a,(x&127)!==0?FE=g:(x&4194048)!==0&&(YE=g),Ma(u,a,hl,!Q0);break e;case Om:Bo=null;break;case ow:case RL:break;default:throw Error("Unknown root exit status.")}if($e.actQueue!==null)fa(u,x,a,Bo,E5,cw,hl,Z0,_m,E,null,null,ma,g);else{if((a&62914560)===a&&(R=fw+DL-Jr(),10<R)){if(Ma(u,a,hl,!Q0),Bt(u,0,!0)!==0)break e;Pu=a,u.timeoutHandle=QL(J4.bind(null,u,x,Bo,E5,cw,a,hl,Z0,_m,Q0,E,"Throttled",ma,g),R);break e}J4(u,x,Bo,E5,cw,a,hl,Z0,_m,Q0,E,null,ma,g)}}}break}while(!0);Na(r)}function J4(r,a,u,g,x,E,R,D,q,K,Ee,Ae,ge,Le){r.timeoutHandle=Im;var mt=a.subtreeFlags,Et=null;if((mt&8192||(mt&16785408)===16785408)&&(Et={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gi},Z4(a,E,Et),mt=(E&62914560)===E?fw-Jr():(E&4194048)===E?_L-Jr():0,mt=wx(Et,mt),mt!==null)){Pu=E,r.cancelPendingCommit=mt(fa.bind(null,r,a,E,u,g,x,R,D,q,Ee,Et,Et.waitingForViewTransition?"Waiting for the previous Animation":0<Et.count?0<Et.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Et.imgCount===1?"Suspended on an Image":0<Et.imgCount?"Suspended on Images":null,ge,Le)),Ma(r,E,R,!K);return}fa(r,a,E,u,g,x,R,D,q,Ee,Et,Ae,ge,Le)}function Vp(r){for(var a=r;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var g=0;g<u.length;g++){var x=u[g],E=x.getSnapshot;x=x.value;try{if(!zo(E(),x))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ma(r,a,u,g){a&=~GA,a&=~Z0,r.suspendedLanes|=a,r.pingedLanes&=~a,g&&(r.warmLanes|=a),g=r.expirationTimes;for(var x=a;0<x;){var E=31-ea(x),R=1<<E;g[E]=-1,x&=~R}u!==0&&yt(r,u,a)}function Wf(){return(Gn&(ia|Hl))===ya?(E0(0),!1):!0}function U1(){if(Cn!==null){if(pr===dl)var r=Cn.return;else r=Cn,vc(),Tc(r),Hy=null,f5=0,r=Cn;for(;r!==null;)W6(r.alternate,r),r=r.return;Cn=null}}function zl(r,a){(r&127)!==0&&(vm=a),(r&4194048)!==0&&(md=a),(r&62914560)!==0&&(NI=a),(r&2080374784)!==0&&(kI=a)}function _a(r,a){kr&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Pn,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Pn,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Pn,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Pn,"primary-light"));var u=ma;if(ma=Vi(),En!==0&&0<u){if(So(En),ti===ow||ti===W0)I6(u,ma,a,yi);else{var g=ma,x=yi;if(kr&&!(g<=u)){var E=(a&738197653)===a?"tertiary-dark":"primary-dark",R=(a&536870912)===a?"Prewarm":(a&201326741)===a?"Interrupted Hydration":"Interrupted Render";x?x.run(console.timeStamp.bind(console,R,u,g,$n,Pn,E)):console.timeStamp(R,u,g,$n,Pn,E)}}zl(En,ma)}if(u=yi,yi=null,(a&127)!==0){yi=Jx,x=0<=Hc&&Hc<vm?vm:Hc,g=0<=bm&&bm<vm?vm:bm,E=0<=g?g:0<=x?x:ma,0<=FE?(So(2),L6(FE,E,a,u)):XE&127,u=x;var D=g,q=e5,K=0<Py,Ee=G0===Zx,Ae=G0===GE;if(x=ma,g=Jx,E=wA,R=TA,kr){if($n="Blocking",0<u?u>x&&(u=x):u=x,0<D?D>u&&(D=u):D=u,q!==null&&u>D){var ge=K?"secondary-light":"warning";g?g.run(console.timeStamp.bind(console,K?"Consecutive":"Event: "+q,D,u,$n,Pn,ge)):console.timeStamp(K?"Consecutive":"Event: "+q,D,u,$n,Pn,ge)}x>u&&(D=Ee?"error":(a&738197653)===a?"tertiary-light":"primary-light",Ee=Ae?"Promise Resolved":Ee?"Cascading Update":5<x-u?"Update Blocked":"Update",Ae=[],R!=null&&Ae.push(["Component name",R]),E!=null&&Ae.push(["Method name",E]),u={start:u,end:x,detail:{devtools:{properties:Ae,track:$n,trackGroup:Pn,color:D}}},g?g.run(performance.measure.bind(performance,Ee,u)):performance.measure(Ee,u))}Hc=-1.1,G0=0,TA=wA=null,FE=-1.1,Py=bm,bm=-1.1,vm=Vi()}if((a&4194048)!==0&&(yi=t5,x=0<=gd&&gd<md?md:gd,u=0<=Qs&&Qs<md?md:Qs,g=0<=F0&&F0<md?md:F0,E=0<=g?g:0<=u?u:ma,0<=YE?(So(256),L6(YE,E,a,yi)):XE&4194048,Ae=g,D=xm,q=0<Y0,K=AA===GE,E=ma,g=t5,R=_I,Ee=DI,kr&&($n="Transition",0<u?u>E&&(u=E):u=E,0<x?x>u&&(x=u):x=u,0<Ae?Ae>x&&(Ae=x):Ae=x,x>Ae&&D!==null&&(ge=q?"secondary-light":"warning",g?g.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+D,Ae,x,$n,Pn,ge)):console.timeStamp(q?"Consecutive":"Event: "+D,Ae,x,$n,Pn,ge)),u>x&&(g?g.run(console.timeStamp.bind(console,"Action",x,u,$n,Pn,"primary-dark")):console.timeStamp("Action",x,u,$n,Pn,"primary-dark")),E>u&&(x=K?"Promise Resolved":5<E-u?"Update Blocked":"Update",Ae=[],Ee!=null&&Ae.push(["Component name",Ee]),R!=null&&Ae.push(["Method name",R]),u={start:u,end:E,detail:{devtools:{properties:Ae,track:$n,trackGroup:Pn,color:"primary-light"}}},g?g.run(performance.measure.bind(performance,x,u)):performance.measure(x,u))),Qs=gd=-1.1,AA=0,YE=-1.1,Y0=F0,F0=-1.1,md=Vi()),(a&62914560)!==0&&(XE&62914560)!==0&&(So(4194304),n4(NI,ma)),(a&2080374784)!==0&&(XE&2080374784)!==0&&(So(268435456),n4(kI,ma)),u=r.timeoutHandle,u!==Im&&(r.timeoutHandle=Im,Ofe(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Pu=0,U1(),wr=r,Cn=u=fs(r.current,null),En=a,pr=dl,ql=null,Q0=!1,Zy=Ze(r,a),qA=!1,ti=Sd,_m=hl=GA=Z0=K0=0,Bo=S5=null,cw=!1,(a&8)!==0&&(a|=a&32),g=r.entangledLanes,g!==0)for(r=r.entanglements,g&=a;0<g;)x=31-ea(g),E=1<<x,a|=r[x],g&=~E;return Gc=a,Jd(),r=TI(),1e3<r-wI&&($e.recentlyCreatedOwnerStacks=0,wI=r),Vu.discardPendingWarnings(),u}function ex(r,a){an=null,$e.H=m5,$e.getCurrentStack=null,sl=!1,Do=null,a===$y||a===ZE?(a=rp(),pr=b5):a===MA?(a=rp(),pr=ML):pr=a===jA?HA:a!==null&&typeof a=="object"&&typeof a.then=="function"?x5:sw,ql=a;var u=Cn;u===null?(ti=v5,wp(r,Ta(a,r.current))):u.mode&xn&&t0(u)}function $1(){var r=Ul.current;return r===null?!0:(En&4194048)===En?Ks===null:(En&62914560)===En||(En&536870912)!==0?r===Ks:!1}function tx(){var r=$e.H;return $e.H=m5,r===null?m5:r}function H1(){var r=$e.A;return $e.A=hfe,r}function S0(r){yi===null&&(yi=r._debugTask==null?null:r._debugTask)}function Qf(){ti=W0,Q0||(En&4194048)!==En&&Ul.current!==null||(Zy=!0),(K0&134217727)===0&&(Z0&134217727)===0||wr===null||Ma(wr,En,hl,!1)}function q1(r,a,u){var g=Gn;Gn|=ia;var x=tx(),E=H1();if(wr!==r||En!==a){if(ul){var R=r.memoizedUpdaters;0<R.size&&(Ls(r,En),R.clear()),bn(r,a)}E5=null,_a(r,a)}a=!1,R=ti;e:do try{if(pr!==dl&&Cn!==null){var D=Cn,q=ql;switch(pr){case HA:U1(),R=lw;break e;case b5:case Rm:case Mm:case x5:Ul.current===null&&(a=!0);var K=pr;if(pr=dl,ql=null,Kf(r,D,q,K),u&&Zy){R=Sd;break e}break;default:K=pr,pr=dl,ql=null,Kf(r,D,q,K)}}ks(),R=ti;break}catch(Ee){ex(r,Ee)}while(!0);return a&&r.shellSuspendCounter++,vc(),Gn=g,$e.H=x,$e.A=E,Cn===null&&(wr=null,En=0,Jd()),R}function ks(){for(;Cn!==null;)rx(Cn)}function gi(r,a){var u=Gn;Gn|=ia;var g=tx(),x=H1();if(wr!==r||En!==a){if(ul){var E=r.memoizedUpdaters;0<E.size&&(Ls(r,En),E.clear()),bn(r,a)}E5=null,dw=Jr()+NL,_a(r,a)}else Zy=Ze(r,a);e:do try{if(pr!==dl&&Cn!==null)t:switch(a=Cn,E=ql,pr){case sw:pr=dl,ql=null,Kf(r,a,E,sw);break;case Rm:case Mm:if(Co(E)){pr=dl,ql=null,Ei(a);break}a=function(){pr!==Rm&&pr!==Mm||wr!==r||(pr=uw),Na(r)},E.then(a,a);break e;case b5:pr=uw;break e;case ML:pr=$A;break e;case uw:Co(E)?(pr=dl,ql=null,Ei(a)):(pr=dl,ql=null,Kf(r,a,E,uw));break;case $A:var R=null;switch(Cn.tag){case 26:R=Cn.memoizedState;case 5:case 27:var D=Cn;if(R?iy(R):D.stateNode.complete){pr=dl,ql=null;var q=D.sibling;if(q!==null)Cn=q;else{var K=D.return;K!==null?(Cn=K,Bp(K)):Cn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}pr=dl,ql=null,Kf(r,a,E,$A);break;case x5:pr=dl,ql=null,Kf(r,a,E,x5);break;case HA:U1(),ti=lw;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}$e.actQueue!==null?ks():nx();break}catch(Ee){ex(r,Ee)}while(!0);return vc(),$e.H=g,$e.A=x,Gn=u,Cn!==null?Sd:(wr=null,En=0,Jd(),ti)}function nx(){for(;Cn!==null&&!xy();)rx(Cn)}function rx(r){var a=r.alternate;(r.mode&xn)!==Zt?(i1(r),a=Be(r,k1,a,r,Gc),t0(r)):a=Be(r,k1,a,r,Gc),r.memoizedProps=r.pendingProps,a===null?Bp(r):Cn=a}function Ei(r){var a=Be(r,X8,r);r.memoizedProps=r.pendingProps,a===null?Bp(r):Cn=a}function X8(r){var a=r.alternate,u=(r.mode&xn)!==Zt;switch(u&&i1(r),r.tag){case 15:case 0:a=Hf(a,r,r.pendingProps,r.type,void 0,En);break;case 11:a=Hf(a,r,r.pendingProps,r.type.render,r.ref,En);break;case 5:Tc(r);default:W6(a,r),r=Cn=e0(r,Gc),a=k1(a,r,Gc)}return u&&t0(r),a}function Kf(r,a,u,g){vc(),Tc(a),Hy=null,f5=0;var x=a.return;try{if(q6(r,x,a,u,En)){ti=v5,wp(r,Ta(u,r.current)),Cn=null;return}}catch(E){if(x!==null)throw Cn=x,E;ti=v5,wp(r,Ta(u,r.current)),Cn=null;return}a.flags&32768?(In||g===sw?r=!0:Zy||(En&536870912)!==0?r=!1:(Q0=r=!0,(g===Rm||g===Mm||g===b5||g===x5)&&(g=Ul.current,g!==null&&g.tag===13&&(g.flags|=16384))),Rr(a,r)):Bp(a)}function Bp(r){var a=r;do{if((a.flags&32768)!==0){Rr(a,Q0);return}var u=a.alternate;if(r=a.return,i1(a),u=Be(a,Y6,u,a,Gc),(a.mode&xn)!==Zt&&Nf(a),u!==null){Cn=u;return}if(a=a.sibling,a!==null){Cn=a;return}Cn=a=r}while(a!==null);ti===Sd&&(ti=RL)}function Rr(r,a){do{var u=X6(r.alternate,r);if(u!==null){u.flags&=32767,Cn=u;return}if((r.mode&xn)!==Zt){Nf(r),u=r.actualDuration;for(var g=r.child;g!==null;)u+=g.actualDuration,g=g.sibling;r.actualDuration=u}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(r=r.sibling,r!==null)){Cn=r;return}Cn=r=u}while(r!==null);ti=lw,Cn=null}function fa(r,a,u,g,x,E,R,D,q,K,Ee,Ae,ge,Le){r.cancelPendingCommit=null;do kc();while($i!==eh);if(Vu.flushLegacyContextWarning(),Vu.flushPendingUnsafeLifecycleWarnings(),(Gn&(ia|Hl))!==ya)throw Error("Should not already be working.");if(So(u),K===Om?t4(ge,Le,u,yi):g!==null?q8(ge,Le,u,g,a!==null&&a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)!==0,yi):H8(ge,Le,u,yi),a!==null){if(u===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),a===r.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(E=a.lanes|a.childLanes,E|=vA,ut(r,u,E,R,D,q),r===wr&&(Cn=wr=null,En=0),Jy=a,th=r,Pu=u,XA=E,QA=x,BL=g,WA=Le,jL=Ae,Uu=hw,PL=null,a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Pp(sd,function(){return R5=window.event,Uu===hw&&(Uu=YA),Da(),null})):(r.callbackNode=null,r.callbackPriority=0),pd=null,q0=Vi(),Ae!==null&&G8(Le,q0,Ae,yi),g=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null,x=Kn.p,Kn.p=Ti,R=Gn,Gn|=Hl;try{G4(r,a,u)}finally{Gn=R,Kn.p=x,$e.T=g}}$i=zL,zs(),ix(),ax()}}function zs(){if($i===zL){$i=eh;var r=th,a=Jy,u=Pu,g=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null;var x=Kn.p;Kn.p=Ti;var E=Gn;Gn|=Hl;try{Qy=u,Ky=r,Aa(),W4(a,r),Ky=Qy=null,u=lC;var R=N6(r.containerInfo),D=u.focusedElem,q=u.selectionRange;if(R!==D&&D&&D.ownerDocument&&Wg(D.ownerDocument.documentElement,D)){if(q!==null&&Jb(D)){var K=q.start,Ee=q.end;if(Ee===void 0&&(Ee=K),"selectionStart"in D)D.selectionStart=K,D.selectionEnd=Math.min(Ee,D.value.length);else{var Ae=D.ownerDocument||document,ge=Ae&&Ae.defaultView||window;if(ge.getSelection){var Le=ge.getSelection(),mt=D.textContent.length,Et=Math.min(q.start,mt),Mr=q.end===void 0?Et:Math.min(q.end,mt);!Le.extend&&Et>Mr&&(R=Mr,Mr=Et,Et=R);var Un=D6(D,Et),he=D6(D,Mr);if(Un&&he&&(Le.rangeCount!==1||Le.anchorNode!==Un.node||Le.anchorOffset!==Un.offset||Le.focusNode!==he.node||Le.focusOffset!==he.offset)){var ye=Ae.createRange();ye.setStart(Un.node,Un.offset),Le.removeAllRanges(),Et>Mr?(Le.addRange(ye),Le.extend(he.node,he.offset)):(ye.setEnd(he.node,he.offset),Le.addRange(ye))}}}}for(Ae=[],Le=D;Le=Le.parentNode;)Le.nodeType===1&&Ae.push({element:Le,left:Le.scrollLeft,top:Le.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<Ae.length;D++){var xe=Ae[D];xe.element.scrollLeft=xe.left,xe.element.scrollTop=xe.top}}Mw=!!oC,lC=oC=null}finally{Gn=E,Kn.p=x,$e.T=g}}r.current=a,$i=IL}}function ix(){if($i===IL){$i=eh;var r=PL;if(r!==null){q0=Vi();var a=hd,u=q0;!kr||u<=a||console.timeStamp(r,a,u,$n,Pn,"secondary-light")}r=th,a=Jy,u=Pu;var g=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||g){g=$e.T,$e.T=null;var x=Kn.p;Kn.p=Ti;var E=Gn;Gn|=Hl;try{Qy=u,Ky=r,Aa(),li(r,a.alternate,a),Ky=Qy=null}finally{Gn=E,Kn.p=x,$e.T=g}}r=WA,a=jL,hd=Vi(),r=a===null?r:q0,a=hd,u=Uu===FA,g=yi,pd!==null?V6(r,a,pd,!1,g):!kr||a<=r||(g?g.run(console.timeStamp.bind(console,u?"Commit Interrupted View Transition":"Commit",r,a,$n,Pn,u?"error":"secondary-dark")):console.timeStamp(u?"Commit Interrupted View Transition":"Commit",r,a,$n,Pn,u?"error":"secondary-dark")),$i=LL}}function ax(){if($i===VL||$i===LL){if($i===VL){var r=hd;hd=Vi();var a=hd,u=Uu===FA;!kr||a<=r||console.timeStamp(u?"Interrupted View Transition":"Starting Animation",r,a,$n,Pn,u?" error":"secondary-light"),Uu!==FA&&(Uu=kL)}$i=eh,tA(),r=th;var g=Jy;a=Pu,u=BL;var x=g.actualDuration!==0||(g.subtreeFlags&10256)!==0||(g.flags&10256)!==0;x?$i=pw:($i=eh,Jy=th=null,rE(r,r.pendingLanes),Dm=0,T5=null);var E=r.pendingLanes;if(E===0&&(J0=null),x||rl(r),E=Fr(a),g=g.stateNode,ha&&typeof ha.onCommitFiberRoot=="function")try{var R=(g.current.flags&128)===128;switch(E){case Ti:var D=Sy;break;case ta:D=Ey;break;case No:D=sd;break;case jc:D=um;break;default:D=sd}ha.onCommitFiberRoot(Iu,g,D,R)}catch(Ae){$s||($s=!0,console.error("React instrumentation encountered an error: %o",Ae))}if(ul&&r.memoizedUpdaters.clear(),eE(),u!==null){R=$e.T,D=Kn.p,Kn.p=Ti,$e.T=null;try{var q=r.onRecoverableError;for(g=0;g<u.length;g++){var K=u[g],Ee=nE(K.stack);Be(K.source,q,K.value,Ee)}}finally{$e.T=R,Kn.p=D}}(Pu&3)!==0&&kc(),Na(r),E=r.pendingLanes,(a&261930)!==0&&(E&42)!==0?(QE=!0,r===KA?w5++:(w5=0,KA=r)):w5=0,x||zl(a,hd),E0(0)}}function nE(r){return r={componentStack:r},Object.defineProperty(r,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),r}function rE(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Jh(a)))}function kc(){return zs(),ix(),ax(),Da()}function Da(){if($i!==pw)return!1;var r=th,a=XA;XA=0;var u=Fr(Pu),g=No>u?No:u;u=$e.T;var x=Kn.p;try{Kn.p=g,$e.T=null;var E=QA;QA=null,g=th;var R=Pu;if($i=eh,Jy=th=null,Pu=0,(Gn&(ia|Hl))!==ya)throw Error("Cannot flush passive effects while already rendering.");So(R),ZA=!0,mw=!1;var D=0;if(pd=null,D=Jr(),Uu===kL)n4(hd,D,ofe);else{var q=hd,K=D,Ee=Uu===YA;!kr||K<=q||(yi?yi.run(console.timeStamp.bind(console,Ee?"Waiting for Paint":"Waiting",q,K,$n,Pn,"secondary-light")):console.timeStamp(Ee?"Waiting for Paint":"Waiting",q,K,$n,Pn,"secondary-light"))}q=Gn,Gn|=Hl;var Ae=g.current;Aa(),J6(Ae);var ge=g.current;Ae=WA,Aa(),B1(g,ge,R,E,Ae),rl(g),Gn=q;var Le=Jr();if(ge=D,Ae=yi,pd!==null?V6(ge,Le,pd,!0,Ae):!kr||Le<=ge||(Ae?Ae.run(console.timeStamp.bind(console,"Remaining Effects",ge,Le,$n,Pn,"secondary-dark")):console.timeStamp("Remaining Effects",ge,Le,$n,Pn,"secondary-dark")),zl(R,Le),E0(0,!1),mw?g===T5?Dm++:(Dm=0,T5=g):Dm=0,mw=ZA=!1,ha&&typeof ha.onPostCommitFiberRoot=="function")try{ha.onPostCommitFiberRoot(Iu,g)}catch(Et){$s||($s=!0,console.error("React instrumentation encountered an error: %o",Et))}var mt=g.current.stateNode;return mt.effectDuration=0,mt.passiveEffectDuration=0,!0}finally{Kn.p=x,$e.T=u,rE(r,a)}}function nl(r,a,u){a=Ta(u,a),Qa(a),a=E1(r.stateNode,a,2),r=Oa(r,a,2),r!==null&&(pt(r,2),Na(r))}function Yn(r,a,u){if(ev=!1,r.tag===3)nl(r,r,u);else{for(;a!==null;){if(a.tag===3){nl(a,r,u);return}if(a.tag===1){var g=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(J0===null||!J0.has(g))){r=Ta(u,r),Qa(r),u=w1(2),g=Oa(a,u,2),g!==null&&(Tp(u,g,a,r),pt(g,2),Na(g));return}}a=a.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.

Error message:

%s`,u)}}function da(r,a,u){var g=r.pingCache;if(g===null){g=r.pingCache=new mfe;var x=new Set;g.set(a,x)}else x=g.get(a),x===void 0&&(x=new Set,g.set(a,x));x.has(u)||(qA=!0,x.add(u),g=iE.bind(null,r,a,u),ul&&Ls(r,u),a.then(g,g))}function iE(r,a,u){var g=r.pingCache;g!==null&&g.delete(a),r.pingedLanes|=r.suspendedLanes&u,r.warmLanes&=~u,(u&127)!==0?0>Hc&&(vm=Hc=Vi(),Jx=qE("Promise Resolved"),G0=GE):(u&4194048)!==0&&0>Qs&&(md=Qs=Vi(),t5=qE("Promise Resolved"),AA=GE),Lp()&&$e.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).

When testing, code that resolves suspended data should be wrapped into act(...):

act(() => {
  /* finish loading suspended data */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),wr===r&&(En&u)===u&&(ti===W0||ti===ow&&(En&62914560)===En&&Jr()-fw<DL?(Gn&ia)===ya&&_a(r,0):GA|=u,_m===En&&(_m=0)),Na(r)}function Is(r,a){a===0&&(a=Ve()),r=Fi(r,a),r!==null&&(pt(r,a),Na(r))}function Zf(r){var a=r.memoizedState,u=0;a!==null&&(u=a.retryLane),Is(r,u)}function Ru(r,a){var u=0;switch(r.tag){case 31:case 13:var g=r.stateNode,x=r.memoizedState;x!==null&&(u=x.retryLane);break;case 19:g=r.stateNode;break;case 22:g=r.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}g!==null&&g.delete(a),Is(r,u)}function jp(r,a,u){if((a.subtreeFlags&67117056)!==0)for(a=a.child;a!==null;){var g=r,x=a,E=x.type===z0;E=u||E,x.tag!==22?x.flags&67108864?E&&Be(x,G1,g,x):jp(g,x,E):x.memoizedState===null&&(E&&x.flags&8192?Be(x,G1,g,x):x.subtreeFlags&67108864&&Be(x,jp,g,x,E)),a=a.sibling}}function G1(r,a){at(!0);try{Q4(a),Ns(a),K4(r,a.alternate,a,!1),j1(r,a,0,null,!1,0)}finally{at(!1)}}function rl(r){var a=!0;r.current.mode&(co|Lu)||(a=!1),jp(r,r.current,a)}function ox(r){if((Gn&ia)===ya){var a=r.tag;if(a===3||a===1||a===0||a===11||a===14||a===15){if(a=ue(r)||"ReactComponent",gw!==null){if(gw.has(a))return;gw.add(a)}else gw=new Set([a]);Be(r,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Ls(r,a){ul&&r.memoizedUpdaters.forEach(function(u){Fn(r,u,a)})}function Pp(r,a){var u=$e.actQueue;return u!==null?(u.push(a),vfe):L0(r,a)}function Up(r){Lp()&&$e.actQueue===null&&Be(r,function(){console.error(`An update to %s inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,ue(r))})}function Na(r){r!==tv&&r.next===null&&(tv===null?yw=tv=r:tv=tv.next=r),vw=!0,$e.actQueue!==null?eC||(eC=!0,oE()):JA||(JA=!0,oE())}function E0(r,a){if(!tC&&vw){tC=!0;do for(var u=!1,g=yw;g!==null;){if(r!==0){var x=g.pendingLanes;if(x===0)var E=0;else{var R=g.suspendedLanes,D=g.pingedLanes;E=(1<<31-ea(42|r)+1)-1,E&=x&~(R&~D),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,sx(g,E))}else E=En,E=Bt(g,g===wr?E:0,g.cancelPendingCommit!==null||g.timeoutHandle!==Im),(E&3)===0||Ze(g,E)||(u=!0,sx(g,E));g=g.next}while(u);tC=!1}}function aE(){R5=window.event,Jf()}function Jf(){vw=eC=JA=!1;var r=0;nh!==0&&w0()&&(r=nh);for(var a=Jr(),u=null,g=yw;g!==null;){var x=g.next,E=lx(g,a);E===0?(g.next=null,u===null?yw=x:u.next=x,x===null&&(tv=u)):(u=g,(r!==0||(E&3)!==0)&&(vw=!0)),g=x}$i!==eh&&$i!==pw||E0(r),nh!==0&&(nh=0)}function lx(r,a){for(var u=r.suspendedLanes,g=r.pingedLanes,x=r.expirationTimes,E=r.pendingLanes&-62914561;0<E;){var R=31-ea(E),D=1<<R,q=x[R];q===-1?((D&u)===0||(D&g)!==0)&&(x[R]=be(D,a)):q<=a&&(r.expiredLanes|=D),E&=~D}if(a=wr,u=En,u=Bt(r,r===a?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Im),g=r.callbackNode,u===0||r===a&&(pr===Rm||pr===Mm)||r.cancelPendingCommit!==null)return g!==null&&ux(g),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||Ze(r,u)){if(a=u&-u,a!==r.callbackPriority||$e.actQueue!==null&&g!==nC)ux(g);else return a;switch(Fr(u)){case Ti:case ta:u=Ey;break;case No:u=sd;break;case jc:u=um;break;default:u=sd}return g=$p.bind(null,r),$e.actQueue!==null?($e.actQueue.push(g),u=nC):u=L0(u,g),r.callbackPriority=a,r.callbackNode=u,a}return g!==null&&ux(g),r.callbackPriority=2,r.callbackNode=null,2}function $p(r,a){if(QE=WE=!1,R5=window.event,$i!==eh&&$i!==pw)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(Uu===hw&&(Uu=YA),kc()&&r.callbackNode!==u)return null;var g=En;return g=Bt(r,r===wr?g:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Im),g===0?null:(tE(r,g,a),lx(r,Jr()),r.callbackNode!=null&&r.callbackNode===u?$p.bind(null,r):null)}function sx(r,a){if(kc())return null;WE=QE,QE=!1,tE(r,a,!0)}function ux(r){r!==nC&&r!==null&&by(r)}function oE(){$e.actQueue!==null&&$e.actQueue.push(function(){return Jf(),null}),Rfe(function(){(Gn&(ia|Hl))!==ya?L0(Sy,aE):Jf()})}function Hn(){if(nh===0){var r=Sm;r===0&&(r=cm,cm<<=1,(cm&261888)===0&&(cm=256)),nh=r}return nh}function dr(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:(xt(r,"action"),hc(""+r))}function On(r,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,r.id&&u.setAttribute("form",r.id),a.parentNode.insertBefore(u,a),r=new FormData(r),u.parentNode.removeChild(u),r}function zn(r,a,u,g,x){if(a==="submit"&&u&&u.stateNode===x){var E=dr((x[pa]||null).action),R=g.submitter;R&&(a=(a=R[pa]||null)?dr(a.formAction):R.getAttribute("formAction"),a!==null&&(E=a,R=null));var D=new VE("action","action",null,g,x);r.push({event:D,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(nh!==0){var q=R?On(x,R):new FormData(x),K={pending:!0,data:q,method:x.method,action:E};Object.freeze(K),c0(u,K,null,q)}}else typeof E=="function"&&(D.preventDefault(),q=R?On(x,R):new FormData(x),K={pending:!0,data:q,method:x.method,action:E},Object.freeze(K),c0(u,K,E,q))},currentTarget:x}]})}}function Xn(r,a,u){r.currentTarget=u;try{a(r)}catch(g){pA(g)}r.currentTarget=null}function io(r,a){a=(a&4)!==0;for(var u=0;u<r.length;u++){var g=r[u];e:{var x=void 0,E=g.event;if(g=g.listeners,a)for(var R=g.length-1;0<=R;R--){var D=g[R],q=D.instance,K=D.currentTarget;if(D=D.listener,q!==x&&E.isPropagationStopped())break e;q!==null?Be(q,Xn,E,D,K):Xn(E,D,K),x=q}else for(R=0;R<g.length;R++){if(D=g[R],q=D.instance,K=D.currentTarget,D=D.listener,q!==x&&E.isPropagationStopped())break e;q!==null?Be(q,Xn,E,D,K):Xn(E,D,K),x=q}}}}function sn(r,a){rC.has(r)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var u=a[Px];u===void 0&&(u=a[Px]=new Set);var g=r+"__bubble";u.has(g)||(Vs(a,r,2,!1),u.add(g))}function zc(r,a,u){rC.has(r)&&!a&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var g=0;a&&(g|=4),Vs(u,r,g,a)}function Hp(r){if(!r[bw]){r[bw]=!0,dm.forEach(function(u){u!=="selectionchange"&&(rC.has(u)||zc(u,!1,r),zc(u,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[bw]||(a[bw]=!0,zc("selectionchange",!1,a))}}function Vs(r,a,u,g){switch(uy(a)){case Ti:var x=Zi;break;case ta:x=K8;break;default:x=sy}u=x.bind(null,a,u,r),x=void 0,!iA||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),g?x!==void 0?r.addEventListener(a,u,{capture:!0,passive:x}):r.addEventListener(a,u,!0):x!==void 0?r.addEventListener(a,u,{passive:x}):r.addEventListener(a,u,!1)}function Nr(r,a,u,g,x){var E=g;if((a&1)===0&&(a&2)===0&&g!==null)e:for(;;){if(g===null)return;var R=g.tag;if(R===3||R===4){var D=g.stateNode.containerInfo;if(D===x)break;if(R===4)for(R=g.return;R!==null;){var q=R.tag;if((q===3||q===4)&&R.stateNode.containerInfo===x)return;R=R.return}for(;D!==null;){if(R=tt(D),R===null)return;if(q=R.tag,q===5||q===6||q===26||q===27){g=E=R;continue e}D=D.parentNode}}g=g.return}wf(function(){var K=E,Ee=$h(u),Ae=[];e:{var ge=EI.get(r);if(ge!==void 0){var Le=VE,mt=r;switch(r){case"keypress":if(Qd(u)===0)break e;case"keydown":case"keyup":Le=kce;break;case"focusin":mt="focus",Le=sA;break;case"focusout":mt="blur",Le=sA;break;case"beforeblur":case"afterblur":Le=sA;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=sI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=Sce;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Lce;break;case vI:case bI:case xI:Le=Tce;break;case SI:Le=Bce;break;case"scroll":case"scrollend":Le=bce;break;case"wheel":Le=Pce;break;case"copy":case"cut":case"paste":Le=Cce;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=cI;break;case"toggle":case"beforetoggle":Le=$ce}var Et=(a&4)!==0,Mr=!Et&&(r==="scroll"||r==="scrollend"),Un=Et?ge!==null?ge+"Capture":null:ge;Et=[];for(var he=K,ye;he!==null;){var xe=he;if(ye=xe.stateNode,xe=xe.tag,xe!==5&&xe!==26&&xe!==27||ye===null||Un===null||(xe=os(he,Un),xe!=null&&Et.push(il(he,xe,ye))),Mr)break;he=he.return}0<Et.length&&(ge=new Le(ge,mt,null,u,Ee),Ae.push({event:ge,listeners:Et}))}}if((a&7)===0){e:{if(ge=r==="mouseover"||r==="pointerover",Le=r==="mouseout"||r==="pointerout",ge&&u!==$x&&(mt=u.relatedTarget||u.fromElement)&&(tt(mt)||mt[cl]))break e;if((Le||ge)&&(ge=Ee.window===Ee?Ee:(ge=Ee.ownerDocument)?ge.defaultView||ge.parentWindow:window,Le?(mt=u.relatedTarget||u.toElement,Le=K,mt=mt?tt(mt):null,mt!==null&&(Mr=z(mt),Et=mt.tag,mt!==Mr||Et!==5&&Et!==27&&Et!==6)&&(mt=null)):(Le=null,mt=K),Le!==mt)){if(Et=sI,xe="onMouseLeave",Un="onMouseEnter",he="mouse",(r==="pointerout"||r==="pointerover")&&(Et=cI,xe="onPointerLeave",Un="onPointerEnter",he="pointer"),Mr=Le==null?ge:We(Le),ye=mt==null?ge:We(mt),ge=new Et(xe,he+"leave",Le,u,Ee),ge.target=Mr,ge.relatedTarget=ye,xe=null,tt(Ee)===K&&(Et=new Et(Un,he+"enter",mt,u,Ee),Et.target=ye,Et.relatedTarget=Mr,xe=Et),Mr=xe,Le&&mt)t:{for(Et=cx,Un=Le,he=mt,ye=0,xe=Un;xe;xe=Et(xe))ye++;xe=0;for(var Ge=he;Ge;Ge=Et(Ge))xe++;for(;0<ye-xe;)Un=Et(Un),ye--;for(;0<xe-ye;)he=Et(he),xe--;for(;ye--;){if(Un===he||he!==null&&Un===he.alternate){Et=Un;break t}Un=Et(Un),he=Et(he)}Et=null}else Et=null;Le!==null&&ao(Ae,ge,Le,Et,!1),mt!==null&&Mr!==null&&ao(Ae,Mr,mt,Et,!0)}}e:{if(ge=K?We(K):window,Le=ge.nodeName&&ge.nodeName.toLowerCase(),Le==="select"||Le==="input"&&ge.type==="file")var bt=Gh;else if(qh(ge))if(gI)bt=Xg;else{bt=Zb;var on=Kb}else Le=ge.nodeName,!Le||Le.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?K&&Uh(K.elementType)&&(bt=Gh):bt=Fh;if(bt&&(bt=bt(r,K))){Qb(Ae,bt,u,Ee);break e}on&&on(r,ge,K),r==="focusout"&&K&&ge.type==="number"&&K.memoizedProps.value!=null&&Pb(ge,"number",ge.value)}switch(on=K?We(K):window,r){case"focusin":(qh(on)||on.contentEditable==="true")&&(Ny=on,cA=K,Wx=null);break;case"focusout":Wx=cA=Ny=null;break;case"mousedown":fA=!0;break;case"contextmenu":case"mouseup":case"dragend":fA=!1,k6(Ae,u,Ee);break;case"selectionchange":if(Fce)break;case"keydown":case"keyup":k6(Ae,u,Ee)}var Pt;if(uA)e:{switch(r){case"compositionstart":var Dt="onCompositionStart";break e;case"compositionend":Dt="onCompositionEnd";break e;case"compositionupdate":Dt="onCompositionUpdate";break e}Dt=void 0}else Dy?pu(r,u)&&(Dt="onCompositionEnd"):r==="keydown"&&u.keyCode===fI&&(Dt="onCompositionStart");Dt&&(dI&&u.locale!=="ko"&&(Dy||Dt!=="onCompositionStart"?Dt==="onCompositionEnd"&&Dy&&(Pt=Xb()):(j0=Ee,aA="value"in j0?j0.value:j0.textContent,Dy=!0)),on=Bs(K,Dt),0<on.length&&(Dt=new uI(Dt,r,null,u,Ee),Ae.push({event:Dt,listeners:on}),Pt?Dt.data=Pt:(Pt=Gg(u),Pt!==null&&(Dt.data=Pt)))),(Pt=qce?Fg(r,u):O6(r,u))&&(Dt=Bs(K,"onBeforeInput"),0<Dt.length&&(on=new Rce("onBeforeInput","beforeinput",null,u,Ee),Ae.push({event:on,listeners:Dt}),on.data=Pt)),zn(Ae,r,K,u,Ee)}io(Ae,a)})}function il(r,a,u){return{instance:r,listener:a,currentTarget:u}}function Bs(r,a){for(var u=a+"Capture",g=[];r!==null;){var x=r,E=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||E===null||(x=os(r,u),x!=null&&g.unshift(il(r,x,E)),x=os(r,a),x!=null&&g.push(il(r,x,E))),r.tag===3)return g;r=r.return}return[]}function cx(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function ao(r,a,u,g,x){for(var E=a._reactName,R=[];u!==null&&u!==g;){var D=u,q=D.alternate,K=D.stateNode;if(D=D.tag,q!==null&&q===g)break;D!==5&&D!==26&&D!==27||K===null||(q=K,x?(K=os(u,E),K!=null&&R.unshift(il(u,K,q))):x||(K=os(u,E),K!=null&&R.push(il(u,K,q)))),u=u.return}R.length!==0&&r.push({event:a,listeners:R})}function Ic(r,a){Yb(r,a),r!=="input"&&r!=="textarea"&&r!=="select"||a==null||a.value!==null||oI||(oI=!0,r==="select"&&a.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r));var u={registrationNameDependencies:Hs,possibleRegistrationNames:Ay};Uh(r)||typeof a.is=="string"||U8(r,a,u),a.contentEditable&&!a.suppressContentEditableWarning&&a.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Kr(r,a,u,g){a!==u&&(u=Mu(u),Mu(a)!==u&&(g[r]=a))}function oo(r,a,u){a.forEach(function(g){u[ed(g)]=g==="style"?Il(r):r.getAttribute(g)})}function al(r,a){a===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)}function qp(r,a){return r=r.namespaceURI===An||r.namespaceURI===Dn?r.ownerDocument.createElementNS(r.namespaceURI,r.tagName):r.ownerDocument.createElement(r.tagName),r.innerHTML=a,r.innerHTML}function Mu(r){return Ot(r)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",st(r)),Kt(r)),(typeof r=="string"?r:""+r).replace(bfe,`
`).replace(xfe,"")}function Gp(r,a){return a=Mu(a),Mu(r)===a}function Qn(r,a,u,g,x,E){switch(u){case"children":typeof g=="string"?(Wd(g,a,!1),a==="body"||a==="textarea"&&g===""||as(r,g)):(typeof g=="number"||typeof g=="bigint")&&(Wd(""+g,a,!1),a!=="body"&&as(r,""+g));break;case"className":zh(r,"class",g);break;case"tabIndex":zh(r,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":zh(r,u,g);break;case"style":Ef(r,g,E);break;case"data":if(a!=="object"){zh(r,"data",g);break}case"src":case"href":if(g===""&&(a!=="a"||u!=="href")){console.error(u==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u),r.removeAttribute(u);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}xt(g,u),g=hc(""+g),r.setAttribute(u,g);break;case"action":case"formAction":if(g!=null&&(a==="form"?u==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof g=="function"&&(x.encType==null&&x.method==null||Ew||(Ew=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),x.target==null||Sw||(Sw=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):a==="input"||a==="button"?u==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):a!=="input"||x.type==="submit"||x.type==="image"||xw?a!=="button"||x.type==null||x.type==="submit"||xw?typeof g=="function"&&(x.name==null||GL||(GL=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),x.formEncType==null&&x.formMethod==null||Ew||(Ew=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),x.formTarget==null||Sw||(Sw=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(xw=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(xw=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(u==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof g=="function"){r.setAttribute(u,"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 E=="function"&&(u==="formAction"?(a!=="input"&&Qn(r,a,"name",x.name,x,null),Qn(r,a,"formEncType",x.formEncType,x,null),Qn(r,a,"formMethod",x.formMethod,x,null),Qn(r,a,"formTarget",x.formTarget,x,null)):(Qn(r,a,"encType",x.encType,x,null),Qn(r,a,"method",x.method,x,null),Qn(r,a,"target",x.target,x,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}xt(g,u),g=hc(""+g),r.setAttribute(u,g);break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=Gi);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),sn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),sn("scrollend",r));break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(u=g.__html,u!=null){if(x.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"multiple":r.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":r.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){r.removeAttribute("xlink:href");break}xt(g,u),u=hc(""+g),r.setAttributeNS(Nm,"xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?(xt(g,u),r.setAttribute(u,""+g)):r.removeAttribute(u);break;case"inert":g!==""||ww[u]||(ww[u]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",u));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":g&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":g===!0?r.setAttribute(u,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?(xt(g,u),r.setAttribute(u,g)):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?(xt(g,u),r.setAttribute(u,g)):r.removeAttribute(u);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?r.removeAttribute(u):(xt(g,u),r.setAttribute(u,g));break;case"popover":sn("beforetoggle",r),sn("toggle",r),mf(r,"popover",g);break;case"xlinkActuate":is(r,Nm,"xlink:actuate",g);break;case"xlinkArcrole":is(r,Nm,"xlink:arcrole",g);break;case"xlinkRole":is(r,Nm,"xlink:role",g);break;case"xlinkShow":is(r,Nm,"xlink:show",g);break;case"xlinkTitle":is(r,Nm,"xlink:title",g);break;case"xlinkType":is(r,Nm,"xlink:type",g);break;case"xmlBase":is(r,iC,"xml:base",g);break;case"xmlLang":is(r,iC,"xml:lang",g);break;case"xmlSpace":is(r,iC,"xml:space",g);break;case"is":E!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),mf(r,"is",g);break;case"innerText":case"textContent":break;case"popoverTarget":FL||g==null||typeof g!="object"||(FL=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",g));default:!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N"?(u=Fb(u),mf(r,u,g)):Hs.hasOwnProperty(u)&&g!=null&&typeof g!="function"&&al(u,g)}}function js(r,a,u,g,x,E){switch(u){case"style":Ef(r,g,E);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(u=g.__html,u!=null){if(x.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"children":typeof g=="string"?as(r,g):(typeof g=="number"||typeof g=="bigint")&&as(r,""+g);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),sn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),sn("scrollend",r));break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=Gi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Hs.hasOwnProperty(u))g!=null&&typeof g!="function"&&al(u,g);else e:{if(u[0]==="o"&&u[1]==="n"&&(x=u.endsWith("Capture"),a=u.slice(2,x?u.length-7:void 0),E=r[pa]||null,E=E!=null?E[u]:null,typeof E=="function"&&r.removeEventListener(a,E,x),typeof g=="function")){typeof E!="function"&&E!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(a,g,x);break e}u in r?r[u]=g:g===!0?r.setAttribute(u,""):mf(r,u,g)}}}function jn(r,a,u){switch(Ic(a,u),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":sn("error",r),sn("load",r);var g=!1,x=!1,E;for(E in u)if(u.hasOwnProperty(E)){var R=u[E];if(R!=null)switch(E){case"src":g=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qn(r,a,E,R,u,null)}}x&&Qn(r,a,"srcSet",u.srcSet,u,null),g&&Qn(r,a,"src",u.src,u,null);return;case"input":Bn("input",u),sn("invalid",r);var D=E=R=x=null,q=null,K=null;for(g in u)if(u.hasOwnProperty(g)){var Ee=u[g];if(Ee!=null)switch(g){case"name":x=Ee;break;case"type":R=Ee;break;case"checked":q=Ee;break;case"defaultChecked":K=Ee;break;case"value":E=Ee;break;case"defaultValue":D=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qn(r,a,g,Ee,u,null)}}gf(r,u),w6(r,E,D,q,K,R,x,!1);return;case"select":Bn("select",u),sn("invalid",r),g=R=E=null;for(x in u)if(u.hasOwnProperty(x)&&(D=u[x],D!=null))switch(x){case"value":E=D;break;case"defaultValue":R=D;break;case"multiple":g=D;default:Qn(r,a,x,D,u,null)}yf(r,u),a=E,u=R,r.multiple=!!g,a!=null?dc(r,!!g,a,!1):u!=null&&dc(r,!!g,u,!0);return;case"textarea":Bn("textarea",u),sn("invalid",r),E=x=g=null;for(R in u)if(u.hasOwnProperty(R)&&(D=u[R],D!=null))switch(R){case"value":g=D;break;case"defaultValue":x=D;break;case"children":E=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Qn(r,a,R,D,u,null)}vf(r,u),bf(r,g,x,E);return;case"option":Ub(r,u);for(q in u)if(u.hasOwnProperty(q)&&(g=u[q],g!=null))switch(q){case"selected":r.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Qn(r,a,q,g,u,null)}return;case"dialog":sn("beforetoggle",r),sn("toggle",r),sn("cancel",r),sn("close",r);break;case"iframe":case"object":sn("load",r);break;case"video":case"audio":for(g=0;g<A5.length;g++)sn(A5[g],r);break;case"image":sn("error",r),sn("load",r);break;case"details":sn("toggle",r);break;case"embed":case"source":case"link":sn("error",r),sn("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in u)if(u.hasOwnProperty(K)&&(g=u[K],g!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qn(r,a,K,g,u,null)}return;default:if(Uh(a)){for(Ee in u)u.hasOwnProperty(Ee)&&(g=u[Ee],g!==void 0&&js(r,a,Ee,g,u,void 0));return}}for(D in u)u.hasOwnProperty(D)&&(g=u[D],g!=null&&Qn(r,a,D,g,u,null))}function Lc(r,a,u,g){switch(Ic(a,g),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,E=null,R=null,D=null,q=null,K=null,Ee=null;for(Le in u){var Ae=u[Le];if(u.hasOwnProperty(Le)&&Ae!=null)switch(Le){case"checked":break;case"value":break;case"defaultValue":q=Ae;default:g.hasOwnProperty(Le)||Qn(r,a,Le,null,g,Ae)}}for(var ge in g){var Le=g[ge];if(Ae=u[ge],g.hasOwnProperty(ge)&&(Le!=null||Ae!=null))switch(ge){case"type":E=Le;break;case"name":x=Le;break;case"checked":K=Le;break;case"defaultChecked":Ee=Le;break;case"value":R=Le;break;case"defaultValue":D=Le;break;case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Le!==Ae&&Qn(r,a,ge,Le,g,Ae)}}a=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,g=g.type==="checkbox"||g.type==="radio"?g.checked!=null:g.value!=null,a||!g||qL||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),qL=!0),!a||g||HL||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),HL=!0),Ih(r,R,D,q,K,Ee,E,x);return;case"select":Le=R=D=ge=null;for(E in u)if(q=u[E],u.hasOwnProperty(E)&&q!=null)switch(E){case"value":break;case"multiple":Le=q;default:g.hasOwnProperty(E)||Qn(r,a,E,null,g,q)}for(x in g)if(E=g[x],q=u[x],g.hasOwnProperty(x)&&(E!=null||q!=null))switch(x){case"value":ge=E;break;case"defaultValue":D=E;break;case"multiple":R=E;default:E!==q&&Qn(r,a,x,E,g,q)}g=D,a=R,u=Le,ge!=null?dc(r,!!a,ge,!1):!!u!=!!a&&(g!=null?dc(r,!!a,g,!0):dc(r,!!a,a?[]:"",!1));return;case"textarea":Le=ge=null;for(D in u)if(x=u[D],u.hasOwnProperty(D)&&x!=null&&!g.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Qn(r,a,D,null,g,x)}for(R in g)if(x=g[R],E=u[R],g.hasOwnProperty(R)&&(x!=null||E!=null))switch(R){case"value":ge=x;break;case"defaultValue":Le=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:x!==E&&Qn(r,a,R,x,g,E)}Yd(r,ge,Le);return;case"option":for(var mt in u)if(ge=u[mt],u.hasOwnProperty(mt)&&ge!=null&&!g.hasOwnProperty(mt))switch(mt){case"selected":r.selected=!1;break;default:Qn(r,a,mt,null,g,ge)}for(q in g)if(ge=g[q],Le=u[q],g.hasOwnProperty(q)&&ge!==Le&&(ge!=null||Le!=null))switch(q){case"selected":r.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:Qn(r,a,q,ge,g,Le)}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 Et in u)ge=u[Et],u.hasOwnProperty(Et)&&ge!=null&&!g.hasOwnProperty(Et)&&Qn(r,a,Et,null,g,ge);for(K in g)if(ge=g[K],Le=u[K],g.hasOwnProperty(K)&&ge!==Le&&(ge!=null||Le!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qn(r,a,K,ge,g,Le)}return;default:if(Uh(a)){for(var Mr in u)ge=u[Mr],u.hasOwnProperty(Mr)&&ge!==void 0&&!g.hasOwnProperty(Mr)&&js(r,a,Mr,void 0,g,ge);for(Ee in g)ge=g[Ee],Le=u[Ee],!g.hasOwnProperty(Ee)||ge===Le||ge===void 0&&Le===void 0||js(r,a,Ee,ge,g,Le);return}}for(var Un in u)ge=u[Un],u.hasOwnProperty(Un)&&ge!=null&&!g.hasOwnProperty(Un)&&Qn(r,a,Un,null,g,ge);for(Ae in g)ge=g[Ae],Le=u[Ae],!g.hasOwnProperty(Ae)||ge===Le||ge==null&&Le==null||Qn(r,a,Ae,ge,g,Le)}function ed(r){switch(r){case"class":return"className";case"for":return"htmlFor";default:return r}}function Il(r){var a={};r=r.style;for(var u=0;u<r.length;u++){var g=r[u];a[g]=r.getPropertyValue(g)}return a}function F1(r,a,u){if(a!=null&&typeof a!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var g,x=g="",E;for(E in a)if(a.hasOwnProperty(E)){var R=a[E];R!=null&&typeof R!="boolean"&&R!==""&&(E.indexOf("--")===0?(Ut(R,E),g+=x+E+":"+(""+R).trim()):typeof R!="number"||R===0||hn.has(E)?(Ut(R,E),g+=x+E.replace(Rt,"-$1").toLowerCase().replace(Ht,"-ms-")+":"+(""+R).trim()):g+=x+E.replace(Rt,"-$1").toLowerCase().replace(Ht,"-ms-")+":"+R+"px",x=";")}g=g||null,a=r.getAttribute("style"),a!==g&&(g=Mu(g),Mu(a)!==g&&(u.style=Il(r)))}}function lo(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(xt(g,a),r===""+g)return}Kr(a,r,g,E)}function fx(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null){switch(typeof g){case"function":case"symbol":return}if(!g)return}else switch(typeof g){case"function":case"symbol":break;default:if(g)return}Kr(a,r,g,E)}function td(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":return}else if(g!=null)switch(typeof g){case"function":case"symbol":break;default:if(xt(g,u),r===""+g)return}Kr(a,r,g,E)}function Y1(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(g))return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(!isNaN(g)&&(xt(g,a),r===""+g))return}Kr(a,r,g,E)}function ka(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(xt(g,a),u=hc(""+g),r===u)return}Kr(a,r,g,E)}function dx(r,a,u,g){for(var x={},E=new Set,R=r.attributes,D=0;D<R.length;D++)switch(R[D].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:E.add(R[D].name)}if(Uh(a)){for(var q in u)if(u.hasOwnProperty(q)){var K=u[q];if(K!=null){if(Hs.hasOwnProperty(q))typeof K!="function"&&al(q,K);else if(u.suppressHydrationWarning!==!0)switch(q){case"children":typeof K!="string"&&typeof K!="number"||Kr("children",r.textContent,K,x);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":R=r.innerHTML,K=K?K.__html:void 0,K!=null&&(K=qp(r,K),Kr(q,R,K,x));continue;case"style":E.delete(q),F1(r,K,x);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":E.delete(q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",q);continue;case"className":E.delete("class"),R=Bg(r,"class",K),Kr("className",R,K,x);continue;default:g.context===Ed&&a!=="svg"&&a!=="math"?E.delete(q.toLowerCase()):E.delete(q),R=Bg(r,q,K),Kr(q,R,K,x)}}}}else for(K in u)if(u.hasOwnProperty(K)&&(q=u[K],q!=null)){if(Hs.hasOwnProperty(K))typeof q!="function"&&al(K,q);else if(u.suppressHydrationWarning!==!0)switch(K){case"children":typeof q!="string"&&typeof q!="number"||Kr("children",r.textContent,q,x);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":R=r.innerHTML,q=q?q.__html:void 0,q!=null&&(q=qp(r,q),R!==q&&(x[K]={__html:R}));continue;case"className":lo(r,K,"class",q,E,x);continue;case"tabIndex":lo(r,K,"tabindex",q,E,x);continue;case"style":E.delete(K),F1(r,q,x);continue;case"multiple":E.delete(K),Kr(K,r.multiple,q,x);continue;case"muted":E.delete(K),Kr(K,r.muted,q,x);continue;case"autoFocus":E.delete("autofocus"),Kr(K,r.autofocus,q,x);continue;case"data":if(a!=="object"){E.delete(K),R=r.getAttribute("data"),Kr(K,R,q,x);continue}case"src":case"href":if(!(q!==""||a==="a"&&K==="href"||a==="object"&&K==="data")){console.error(K==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',K,K);continue}ka(r,K,K,q,E,x);continue;case"action":case"formAction":if(R=r.getAttribute(K),typeof q=="function"){E.delete(K.toLowerCase()),K==="formAction"?(E.delete("name"),E.delete("formenctype"),E.delete("formmethod"),E.delete("formtarget")):(E.delete("enctype"),E.delete("method"),E.delete("target"));continue}else if(R===Sfe){E.delete(K.toLowerCase()),Kr(K,"function",q,x);continue}ka(r,K,K.toLowerCase(),q,E,x);continue;case"xlinkHref":ka(r,K,"xlink:href",q,E,x);continue;case"contentEditable":td(r,K,"contenteditable",q,E,x);continue;case"spellCheck":td(r,K,"spellcheck",q,E,x);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":td(r,K,K,q,E,x);continue;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":fx(r,K,K.toLowerCase(),q,E,x);continue;case"capture":case"download":e:{D=r;var Ee=R=K,Ae=x;if(E.delete(Ee),D=D.getAttribute(Ee),D===null)switch(typeof q){case"undefined":case"function":case"symbol":break e;default:if(q===!1)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":break;case"boolean":if(q===!0&&D==="")break e;break;default:if(xt(q,R),D===""+q)break e}Kr(R,D,q,Ae)}continue;case"cols":case"rows":case"size":case"span":e:{if(D=r,Ee=R=K,Ae=x,E.delete(Ee),D=D.getAttribute(Ee),D===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(q)||1>q)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(q)||1>q)&&(xt(q,R),D===""+q))break e}Kr(R,D,q,Ae)}continue;case"rowSpan":Y1(r,K,"rowspan",q,E,x);continue;case"start":Y1(r,K,K,q,E,x);continue;case"xHeight":lo(r,K,"x-height",q,E,x);continue;case"xlinkActuate":lo(r,K,"xlink:actuate",q,E,x);continue;case"xlinkArcrole":lo(r,K,"xlink:arcrole",q,E,x);continue;case"xlinkRole":lo(r,K,"xlink:role",q,E,x);continue;case"xlinkShow":lo(r,K,"xlink:show",q,E,x);continue;case"xlinkTitle":lo(r,K,"xlink:title",q,E,x);continue;case"xlinkType":lo(r,K,"xlink:type",q,E,x);continue;case"xmlBase":lo(r,K,"xml:base",q,E,x);continue;case"xmlLang":lo(r,K,"xml:lang",q,E,x);continue;case"xmlSpace":lo(r,K,"xml:space",q,E,x);continue;case"inert":q!==""||ww[K]||(ww[K]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",K)),fx(r,K,K,q,E,x);continue;default:if(!(2<K.length)||K[0]!=="o"&&K[0]!=="O"||K[1]!=="n"&&K[1]!=="N"){D=Fb(K),R=!1,g.context===Ed&&a!=="svg"&&a!=="math"?E.delete(D.toLowerCase()):(Ee=K.toLowerCase(),Ee=Oy.hasOwnProperty(Ee)&&Oy[Ee]||null,Ee!==null&&Ee!==K&&(R=!0,E.delete(Ee)),E.delete(D));e:if(Ee=r,Ae=D,D=q,oi(Ae))if(Ee.hasAttribute(Ae))Ee=Ee.getAttribute(Ae),xt(D,Ae),D=Ee===""+D?D:Ee;else{switch(typeof D){case"function":case"symbol":break e;case"boolean":if(Ee=Ae.toLowerCase().slice(0,5),Ee!=="data-"&&Ee!=="aria-")break e}D=D===void 0?void 0:null}else D=void 0;R||Kr(K,D,q,x)}}}return 0<E.size&&u.suppressHydrationWarning!==!0&&oo(r,E,x),Object.keys(x).length===0?null:x}function so(r,a){switch(r.length){case 0:return"";case 1:return r[0];case 2:return r[0]+" "+a+" "+r[1];default:return r.slice(0,-1).join(", ")+", "+a+" "+r[r.length-1]}}function hx(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lE(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,u=performance.getEntriesByType("resource"),g=0;g<u.length;g++){var x=u[g],E=x.transferSize,R=x.initiatorType,D=x.duration;if(E&&D&&hx(R)){for(R=0,D=x.responseEnd,g+=1;g<u.length;g++){var q=u[g],K=q.startTime;if(K>D)break;var Ee=q.transferSize,Ae=q.initiatorType;Ee&&hx(Ae)&&(q=q.responseEnd,R+=Ee*(q<D?1:(D-K)/(q-K)))}if(--g,a+=8*(E+R)/(x.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}function X1(r){return r.nodeType===9?r:r.ownerDocument}function _u(r){switch(r){case Dn:return rv;case An:return Aw;default:return Ed}}function Fp(r,a){if(r===Ed)switch(a){case"svg":return rv;case"math":return Aw;default:return Ed}return r===rv&&a==="foreignObject"?Ed:r}function Yp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function w0(){var r=window.event;return r&&r.type==="popstate"?r===sC?!1:(sC=r,!0):(sC=null,!1)}function T0(){var r=window.event;return r&&r!==R5?r.type:null}function A0(){var r=window.event;return r&&r!==R5?r.timeStamp:-1.1}function sE(r){setTimeout(function(){throw r})}function uE(r,a,u){switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src?r.src=u.src:u.srcSet&&(r.srcset=u.srcSet)}}function W1(){}function px(r,a,u,g){Lc(r,a,u,g),r[pa]=g}function cE(r){as(r,"")}function W8(r,a,u){r.nodeValue=u}function fE(r){if(!r.__reactWarnedAboutChildrenConflict){var a=r[pa]||null;if(a!==null){var u=Ne(r);u!==null&&(typeof a.children=="string"||typeof a.children=="number"?(r.__reactWarnedAboutChildrenConflict=!0,Be(u,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):a.dangerouslySetInnerHTML!=null&&(r.__reactWarnedAboutChildrenConflict=!0,Be(u,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Du(r){return r==="head"}function dE(r,a){r.removeChild(a)}function C0(r,a){(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).removeChild(a)}function Xp(r,a){var u=a,g=0;do{var x=u.nextSibling;if(r.removeChild(u),x&&x.nodeType===8)if(u=x.data,u===O5||u===Tw){if(g===0){r.removeChild(x),N0(a);return}g--}else if(u===C5||u===rh||u===zm||u===nv||u===km)g++;else if(u===wfe)Kp(r.ownerDocument.documentElement);else if(u===Afe){u=r.ownerDocument.head,Kp(u);for(var E=u.firstChild;E;){var R=E.nextSibling,D=E.nodeName;E[fm]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=R}}else u===Tfe&&Kp(r.ownerDocument.body);u=x}while(u);N0(a)}function mx(r,a){var u=r;r=0;do{var g=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),g&&g.nodeType===8)if(u=g.data,u===O5){if(r===0)break;r--}else u!==C5&&u!==rh&&u!==zm&&u!==nv||r++;u=g}while(u)}function hE(r){mx(r,!0)}function pE(r){r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function mE(r){r.nodeValue=""}function gE(r){mx(r,!1)}function yE(r,a){a=a[Cfe],a=a!=null&&a.hasOwnProperty("display")?a.display:null,r.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}function Q1(r,a){r.nodeValue=a}function K1(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":K1(u),Oe(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function vE(r,a,u,g){for(;r.nodeType===1;){var x=u;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!g&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(g){if(!r[fm])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(E=r.getAttribute("rel"),E==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(E!==x.rel||r.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||r.getAttribute("title")!==(x.title==null?null:x.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(E=r.getAttribute("src"),(E!==(x.src==null?null:x.src)||r.getAttribute("type")!==(x.type==null?null:x.type)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&E&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){xt(x.name,"name");var E=x.name==null?null:""+x.name;if(x.type==="hidden"&&r.getAttribute("name")===E)return r}else return r;if(r=_o(r.nextSibling),r===null)break}return null}function ir(r,a,u){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=_o(r.nextSibling),r===null))return null;return r}function Z1(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=_o(r.nextSibling),r===null))return null;return r}function gx(r){return r.data===rh||r.data===zm}function J1(r){return r.data===nv||r.data===rh&&r.ownerDocument.readyState!==XL}function Q8(r,a){var u=r.ownerDocument;if(r.data===zm)r._reactRetry=a;else if(r.data!==rh||u.readyState!==XL)a();else{var g=function(){a(),u.removeEventListener("DOMContentLoaded",g)};u.addEventListener("DOMContentLoaded",g),r._reactRetry=g}}function _o(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a===C5||a===nv||a===rh||a===zm||a===km||a===aC||a===YL)break;if(a===O5||a===Tw)return null}}return r}function bE(r){if(r.nodeType===1){for(var a=r.nodeName.toLowerCase(),u={},g=r.attributes,x=0;x<g.length;x++){var E=g[x];u[ed(E.name)]=E.name.toLowerCase()==="style"?Il(r):E.value}return{type:a,props:u}}return r.nodeType===8?r.data===km?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:r.nodeValue}function Wp(r,a,u){return u===null||u[Efe]!==!0?(r.nodeValue===a?r=null:(a=Mu(a),r=Mu(r.nodeValue)===a?null:r.nodeValue),r):null}function Vc(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===O5||u===Tw){if(a===0)return _o(r.nextSibling);a--}else u!==C5&&u!==nv&&u!==rh&&u!==zm&&u!==km||a++}r=r.nextSibling}return null}function ey(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===C5||u===nv||u===rh||u===zm||u===km){if(a===0)return r;a--}else u!==O5&&u!==Tw||a++}r=r.previousSibling}return null}function ty(r){N0(r)}function yx(r){N0(r)}function Bc(r){N0(r)}function Ll(r,a,u,g,x){switch(x&&Hg(r,g.ancestorInfo),a=X1(u),r){case"html":if(r=a.documentElement,!r)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"head":if(r=a.head,!r)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"body":if(r=a.body,!r)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return r;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Qp(r,a,u,g){if(!u[cl]&&Ne(u)){var x=u.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",x,x,x)}switch(r){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(x=u.attributes;x.length;)u.removeAttributeNode(x[0]);jn(u,r,a),u[na]=g,u[pa]=a}function Kp(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Oe(r)}function Zp(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}function vx(r,a,u){var g=iv;if(g&&typeof a=="string"&&a){var x=Or(a);x='link[rel="'+r+'"][href="'+x+'"]',typeof u=="string"&&(x+='[crossorigin="'+u+'"]'),eV.has(x)||(eV.add(x),r={rel:r,crossOrigin:u,href:a},g.querySelector(x)===null&&(a=g.createElement("link"),jn(a,"link",r),vt(a),g.head.appendChild(a)))}}function bx(r,a,u,g){var x=(x=ll.current)?Zp(x):null;if(!x)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(u=O0(u.href),a=wt(x).hoistableStyles,g=a.get(u),g||(g={type:"style",instance:null,count:0,state:null},a.set(u,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=O0(u.href);var E=wt(x).hoistableStyles,R=E.get(r);if(!R&&(x=x.ownerDocument||x,R={type:"stylesheet",instance:null,count:0,state:{loading:Lm,preload:null}},E.set(r,R),(E=x.querySelector(nd(r)))&&!E._p&&(R.instance=E,R.state.loading=M5|eu),!tu.has(r))){var D={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy};tu.set(r,D),E||xE(x,r,D,R.state)}if(a&&g===null)throw u=`

  - `+Jp(a)+`
  + `+Jp(u),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+u);return R}if(a&&g!==null)throw u=`

  - `+Jp(a)+`
  + `+Jp(u),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+u);return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(u=R0(u),a=wt(x).hoistableScripts,g=a.get(u),g||(g={type:"script",instance:null,count:0,state:null},a.set(u,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+r+'". this is a bug in React.')}}function Jp(r){var a=0,u="<link";return typeof r.rel=="string"?(a++,u+=' rel="'+r.rel+'"'):Bl.call(r,"rel")&&(a++,u+=' rel="'+(r.rel===null?"null":"invalid type "+typeof r.rel)+'"'),typeof r.href=="string"?(a++,u+=' href="'+r.href+'"'):Bl.call(r,"href")&&(a++,u+=' href="'+(r.href===null?"null":"invalid type "+typeof r.href)+'"'),typeof r.precedence=="string"?(a++,u+=' precedence="'+r.precedence+'"'):Bl.call(r,"precedence")&&(a++,u+=" precedence={"+(r.precedence===null?"null":"invalid type "+typeof r.precedence)+"}"),Object.getOwnPropertyNames(r).length>a&&(u+=" ..."),u+" />"}function O0(r){return'href="'+Or(r)+'"'}function nd(r){return'link[rel="stylesheet"]['+r+"]"}function xx(r){return yn({},r,{"data-precedence":r.precedence,precedence:null})}function xE(r,a,u,g){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?g.loading=M5:(a=r.createElement("link"),g.preload=a,a.addEventListener("load",function(){return g.loading|=M5}),a.addEventListener("error",function(){return g.loading|=ZL}),jn(a,"link",u),vt(a),r.head.appendChild(a))}function R0(r){return'[src="'+Or(r)+'"]'}function rd(r){return"script[async]"+r}function ny(r,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var g=r.querySelector('style[data-href~="'+Or(u.href)+'"]');if(g)return a.instance=g,vt(g),g;var x=yn({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return g=(r.ownerDocument||r).createElement("style"),vt(g),jn(g,"style",x),ry(g,u.precedence,r),a.instance=g;case"stylesheet":x=O0(u.href);var E=r.querySelector(nd(x));if(E)return a.state.loading|=eu,a.instance=E,vt(E),E;g=xx(u),(x=tu.get(x))&&Sx(g,x),E=(r.ownerDocument||r).createElement("link"),vt(E);var R=E;return R._p=new Promise(function(D,q){R.onload=D,R.onerror=q}),jn(E,"link",g),a.state.loading|=eu,ry(E,u.precedence,r),a.instance=E;case"script":return E=R0(u.src),(x=r.querySelector(rd(E)))?(a.instance=x,vt(x),x):(g=u,(x=tu.get(E))&&(g=yn({},u),id(g,x)),r=r.ownerDocument||r,x=r.createElement("script"),vt(x),jn(x,"link",g),r.head.appendChild(x),a.instance=x);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+a.type+'". this is a bug in React.')}else a.type==="stylesheet"&&(a.state.loading&eu)===Lm&&(g=a.instance,a.state.loading|=eu,ry(g,u.precedence,r));return a.instance}function ry(r,a,u){for(var g=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=g.length?g[g.length-1]:null,E=x,R=0;R<g.length;R++){var D=g[R];if(D.dataset.precedence===a)E=D;else if(E!==x)break}E?E.parentNode.insertBefore(r,E.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(r,a.firstChild))}function Sx(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function id(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}function SE(r,a,u){if(Cw===null){var g=new Map,x=Cw=new Map;x.set(u,g)}else x=Cw,g=x.get(u),g||(g=new Map,x.set(u,g));if(g.has(r))return g;for(g.set(r,null),u=u.getElementsByTagName(r),x=0;x<u.length;x++){var E=u[x];if(!(E[fm]||E[na]||r==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!==Dn){var R=E.getAttribute(a)||"";R=r+R;var D=g.get(R);D?D.push(E):g.set(R,[E])}}return g}function Ex(r,a,u){r=r.ownerDocument||r,r.head.insertBefore(u,a==="title"?r.querySelector("head > title"):null)}function _n(r,a,u){var g=!u.ancestorInfo.containerTagInScope;if(u.context===rv||a.itemProp!=null)return!g||a.itemProp==null||r!=="meta"&&r!=="title"&&r!=="style"&&r!=="link"&&r!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",r,r),!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href===""){g&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags.  Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError){if(a.rel==="stylesheet"&&typeof a.precedence=="string"){r=a.href;var x=a.onError,E=a.disabled;u=[],a.onLoad&&u.push("`onLoad`"),x&&u.push("`onError`"),E!=null&&u.push("`disabled`"),x=so(u,"and"),x+=u.length===1?" prop":" props",E=u.length===1?"an "+x:"the "+x,u.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',r,E,x)}g&&(typeof a.rel!="string"||typeof a.href!="string"||a.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(a.onError||a.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(a.rel){case"stylesheet":return r=a.precedence,a=a.disabled,typeof r!="string"&&g&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof r=="string"&&a==null;default:return!0}case"script":if(r=a.async&&typeof a.async!="function"&&typeof a.async!="symbol",!r||a.onLoad||a.onError||!a.src||typeof a.src!="string"){g&&(r?a.onLoad||a.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":g&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",r)}return!1}function iy(r){return!(r.type==="stylesheet"&&(r.state.loading&JL)===Lm)}function ay(r,a,u,g){if(u.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(u.state.loading&eu)===Lm){if(u.instance===null){var x=O0(g.href),E=a.querySelector(nd(x));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=em.bind(r),a.then(r,r)),u.state.loading|=eu,u.instance=E,vt(E);return}E=a.ownerDocument||a,g=xx(g),(x=tu.get(x))&&Sx(g,x),E=E.createElement("link"),vt(E);var R=E;R._p=new Promise(function(D,q){R.onload=D,R.onerror=q}),jn(E,"link",g),u.instance=E}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&JL)===Lm&&(r.count++,u=em.bind(r),a.addEventListener("load",u),a.addEventListener("error",u))}}function wx(r,a){return r.stylesheets&&r.count===0&&M0(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var g=setTimeout(function(){if(r.stylesheets&&M0(r,r.stylesheets),r.unsuspend){var E=r.unsuspend;r.unsuspend=null,E()}},Mfe+a);0<r.imgBytes&&cC===0&&(cC=125*lE()*Dfe);var x=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&M0(r,r.stylesheets),r.unsuspend)){var E=r.unsuspend;r.unsuspend=null,E()}},(r.imgBytes>cC?50:_fe)+a);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(g),clearTimeout(x)}}:null}function em(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)M0(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}function M0(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Ow=new Map,a.forEach(tm,r),Ow=null,em.call(r))}function tm(r,a){if(!(a.state.loading&eu)){var u=Ow.get(r);if(u)var g=u.get(fC);else{u=new Map,Ow.set(r,u);for(var x=r.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<x.length;E++){var R=x[E];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(u.set(R.dataset.precedence,R),g=R)}g&&u.set(fC,g)}x=a.instance,R=x.getAttribute("data-precedence"),E=u.get(R)||g,E===g&&u.set(fC,x),u.set(R,x),this.count++,g=em.bind(this),x.addEventListener("load",g),x.addEventListener("error",g),E?E.parentNode.insertBefore(x,E.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(x,r.firstChild)),a.state.loading|=eu}}function oy(r,a,u,g,x,E,R,D,q){for(this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Im,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nt(0),this.hiddenUpdates=nt(null),this.identifierPrefix=g,this.onUncaughtError=x,this.onCaughtError=E,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,r=this.pendingUpdatersLaneMap=[],a=0;31>a;a++)r.push(new Set);this._debugRootType=u?"hydrateRoot()":"createRoot()"}function EE(r,a,u,g,x,E,R,D,q,K,Ee,Ae){return r=new oy(r,a,u,R,q,K,Ee,Ae,D),a=tfe,E===!0&&(a|=co|Lu),a|=xn,E=w(3,null,null,a),r.current=E,E.stateNode=r,a=d4(),Df(a),r.pooledCache=a,Df(a),E.memoizedState={element:g,isDehydrated:u,cache:a},bs(E),r}function Tx(r){return r?(r=$0,r):$0}function Ax(r,a,u,g,x,E){if(ha&&typeof ha.onScheduleFiberRoot=="function")try{ha.onScheduleFiberRoot(Iu,g,u)}catch(R){$s||($s=!0,console.error("React instrumentation encountered an error: %o",R))}x=Tx(x),g.context===null?g.context=x:g.pendingContext=x,sl&&Do!==null&&!iV&&(iV=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.

Check the render method of %s.`,ue(Do)||"Unknown")),g=xs(a),g.payload={element:u},E=E===void 0?null:E,E!==null&&(typeof E!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",E),g.callback=E),u=Oa(r,g,a),u!==null&&(Cl(a,"root.render()",null),Br(u,r,a),i0(u,r,a))}function wE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function ly(r,a){wE(r,a),(r=r.alternate)&&wE(r,a)}function Cx(r){if(r.tag===13||r.tag===31){var a=Fi(r,67108864);a!==null&&Br(a,r,67108864),ly(r,67108864)}}function ar(r){if(r.tag===13||r.tag===31){var a=Ki(r);a=jt(a);var u=Fi(r,a);u!==null&&Br(u,r,a),ly(r,a)}}function Ox(){return Do}function Zi(r,a,u,g){var x=$e.T;$e.T=null;var E=Kn.p;try{Kn.p=Ti,sy(r,a,u,g)}finally{Kn.p=E,$e.T=x}}function K8(r,a,u,g){var x=$e.T;$e.T=null;var E=Kn.p;try{Kn.p=ta,sy(r,a,u,g)}finally{Kn.p=E,$e.T=x}}function sy(r,a,u,g){if(Mw){var x=Rx(g);if(x===null)Nr(r,a,g,_w,u),rm(r,g);else if(TE(x,r,a,u,g))g.stopPropagation();else if(rm(r,g),a&4&&-1<kfe.indexOf(r)){for(;x!==null;){var E=Ne(x);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var R=Mn(E.pendingLanes);if(R!==0){var D=E;for(D.pendingLanes|=2,D.entangledLanes|=2;R;){var q=1<<31-ea(R);D.entanglements[1]|=q,R&=~q}Na(E),(Gn&(ia|Hl))===ya&&(dw=Jr()+NL,E0(0))}}break;case 31:case 13:D=Fi(E,2),D!==null&&Br(D,E,2),Wf(),ly(E,2)}if(E=Rx(g),E===null&&Nr(r,a,g,_w,u),E===x)break;x=E}x!==null&&g.stopPropagation()}else Nr(r,a,g,null,u)}}function Rx(r){return r=$h(r),nm(r)}function nm(r){if(_w=null,r=tt(r),r!==null){var a=z(r);if(a===null)r=null;else{var u=a.tag;if(u===13){if(r=L(a),r!==null)return r;r=null}else if(u===31){if(r=B(a),r!==null)return r;r=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return _w=r,null}function uy(r){switch(r){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 Ti;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 ta;case"message":switch(nA()){case Sy:return Ti;case Ey:return ta;case sd:case ME:return No;case um:return jc;default:return No}default:return No}}function rm(r,a){switch(r){case"focusin":case"focusout":ih=null;break;case"dragenter":case"dragleave":ah=null;break;case"mouseover":case"mouseout":oh=null;break;case"pointerover":case"pointerout":D5.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":N5.delete(a.pointerId)}}function _0(r,a,u,g,x,E){return r===null||r.nativeEvent!==E?(r={blockedOn:a,domEventName:u,eventSystemFlags:g,nativeEvent:E,targetContainers:[x]},a!==null&&(a=Ne(a),a!==null&&Cx(a)),r):(r.eventSystemFlags|=g,a=r.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),r)}function TE(r,a,u,g,x){switch(a){case"focusin":return ih=_0(ih,r,a,u,g,x),!0;case"dragenter":return ah=_0(ah,r,a,u,g,x),!0;case"mouseover":return oh=_0(oh,r,a,u,g,x),!0;case"pointerover":var E=x.pointerId;return D5.set(E,_0(D5.get(E)||null,r,a,u,g,x)),!0;case"gotpointercapture":return E=x.pointerId,N5.set(E,_0(N5.get(E)||null,r,a,u,g,x)),!0}return!1}function cy(r){var a=tt(r.target);if(a!==null){var u=z(a);if(u!==null){if(a=u.tag,a===13){if(a=L(u),a!==null){r.blockedOn=a,J(r.priority,function(){ar(u)});return}}else if(a===31){if(a=B(u),a!==null){r.blockedOn=a,J(r.priority,function(){ar(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function D0(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=Rx(r.nativeEvent);if(u===null){u=r.nativeEvent;var g=new u.constructor(u.type,u),x=g;$x!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),$x=x,u.target.dispatchEvent(g),$x===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),$x=null}else return a=Ne(u),a!==null&&Cx(a),r.blockedOn=u,!1;a.shift()}return!0}function AE(r,a,u){D0(r)&&u.delete(a)}function CE(){dC=!1,ih!==null&&D0(ih)&&(ih=null),ah!==null&&D0(ah)&&(ah=null),oh!==null&&D0(oh)&&(oh=null),D5.forEach(AE),N5.forEach(AE)}function fy(r,a){r.blockedOn===a&&(r.blockedOn=null,dC||(dC=!0,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,CE)))}function Mx(r){Dw!==r&&(Dw=r,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,function(){Dw===r&&(Dw=null);for(var a=0;a<r.length;a+=3){var u=r[a],g=r[a+1],x=r[a+2];if(typeof g!="function"){if(nm(g||u)===null)continue;break}var E=Ne(u);E!==null&&(r.splice(a,3),a-=3,u={pending:!0,data:x,method:u.method,action:g},Object.freeze(u),c0(E,u,g,x))}}))}function N0(r){function a(q){return fy(q,r)}ih!==null&&fy(ih,r),ah!==null&&fy(ah,r),oh!==null&&fy(oh,r),D5.forEach(a),N5.forEach(a);for(var u=0;u<lh.length;u++){var g=lh[u];g.blockedOn===r&&(g.blockedOn=null)}for(;0<lh.length&&(u=lh[0],u.blockedOn===null);)cy(u),u.blockedOn===null&&lh.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(g=0;g<u.length;g+=3){var x=u[g],E=u[g+1],R=x[pa]||null;if(typeof E=="function")R||Mx(u);else if(R){var D=null;if(E&&E.hasAttribute("formAction")){if(x=E,R=E[pa]||null)D=R.formAction;else if(nm(x)!==null)continue}else D=R.action;typeof D=="function"?u[g+1]=D:(u.splice(g,3),g-=3),Mx(u)}}}function OE(){function r(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(R){return x=R})},focusReset:"manual",scroll:"manual"})}function a(){x!==null&&(x(),x=null),g||setTimeout(u,20)}function u(){if(!g&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,x=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){g=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),x!==null&&(x(),x=null)}}}function Ps(r){this._internalRoot=r}function im(r){this._internalRoot=r}function _x(r){r[cl]&&(r._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Zr=EC(),Dx=Ad(),Z8=Iw(),yn=Object.assign,Nx=Symbol.for("react.element"),ol=Symbol.for("react.transitional.element"),k0=Symbol.for("react.portal"),Ji=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),dy=Symbol.for("react.profiler"),hy=Symbol.for("react.consumer"),Vl=Symbol.for("react.context"),Nu=Symbol.for("react.forward_ref"),uo=Symbol.for("react.suspense"),py=Symbol.for("react.suspense_list"),ad=Symbol.for("react.memo"),si=Symbol.for("react.lazy"),kx=Symbol.for("react.activity"),J8=Symbol.for("react.memo_cache_sentinel"),od=Symbol.iterator,RE=Symbol.for("react.client.reference"),wi=Array.isArray,$e=Dx.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kn=Z8.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,eA=Object.freeze({pending:!1,data:null,method:null,action:null}),zx=[],Ix=[],ku=-1,zu=$(null),Us=$(null),ll=$(null),am=$(null),om=0,ld,I0,Lx,lm,my,gy,sm;F.__reactDisabledLog=!0;var yy,Vx,Bx=!1,vy=new(typeof WeakMap=="function"?WeakMap:Map),Do=null,sl=!1,Bl=Object.prototype.hasOwnProperty,L0=Zr.unstable_scheduleCallback,by=Zr.unstable_cancelCallback,xy=Zr.unstable_shouldYield,tA=Zr.unstable_requestPaint,Jr=Zr.unstable_now,nA=Zr.unstable_getCurrentPriorityLevel,Sy=Zr.unstable_ImmediatePriority,Ey=Zr.unstable_UserBlockingPriority,sd=Zr.unstable_NormalPriority,ME=Zr.unstable_LowPriority,um=Zr.unstable_IdlePriority,_E=Zr.log,DE=Zr.unstable_setDisableYieldValue,Iu=null,ha=null,$s=!1,ul=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ea=Math.clz32?Math.clz32:At,wy=Math.log,jx=Math.LN2,cm=256,V0=262144,jl=4194304,Ti=2,ta=8,No=32,jc=268435456,za=Math.random().toString(36).slice(2),na="__reactFiber$"+za,pa="__reactProps$"+za,cl="__reactContainer$"+za,Px="__reactEvents$"+za,NE="__reactListeners$"+za,Ty="__reactHandles$"+za,Ux="__reactResources$"+za,fm="__reactMarker$"+za,dm=new Set,Hs={},Ay={},B0={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},kE=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]*$"),Cy={},hm={},zE=/[\n"\\]/g,IE=!1,pm=!1,l=!1,f=!1,m=!1,v=!1,A=["value","defaultValue"],O=!1,j=/["'&<>\n\t]|^\s|\s$/,ne="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ve="applet caption html table td th marquee object template foreignObject desc title".split(" "),ze=ve.concat(["button"]),qe="dd dt li option optgroup p rp rt".split(" "),Ke={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ie={},Ue={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Rt=/([A-Z])/g,Ht=/^ms-/,hr=/^(?:webkit|moz|o)[A-Z]/,De=/^-ms-/,Te=/-(.)/g,ke=/;\s*$/,Ye={},Lt={},qn=!1,_t=!1,hn=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(" ")),An="http://www.w3.org/1998/Math/MathML",Dn="http://www.w3.org/2000/svg",Pc=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"]]),Oy={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},aI={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Ry={},hce=RegExp("^(aria)-[: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]*$"),pce=RegExp("^(aria)[A-Z][: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]*$"),oI=!1,ko={},lI=/^on./,mce=/^on[^A-Z]/,gce=RegExp("^(aria)-[: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]*$"),yce=RegExp("^(aria)[A-Z][: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]*$"),vce=/^[\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,$x=null,My=null,_y=null,rA=!1,Uc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iA=!1;if(Uc)try{var Hx={};Object.defineProperty(Hx,"passive",{get:function(){iA=!0}}),window.addEventListener("test",Hx,Hx),window.removeEventListener("test",Hx,Hx)}catch{iA=!1}var j0=null,aA=null,LE=null,mm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},VE=Yr(mm),qx=yn({},mm,{view:0,detail:0}),bce=Yr(qx),oA,lA,Gx,BE=yn({},qx,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Gx&&(Gx&&r.type==="mousemove"?(oA=r.screenX-Gx.screenX,lA=r.screenY-Gx.screenY):lA=oA=0,Gx=r),oA)},movementY:function(r){return"movementY"in r?r.movementY:lA}}),sI=Yr(BE),xce=yn({},BE,{dataTransfer:0}),Sce=Yr(xce),Ece=yn({},qx,{relatedTarget:0}),sA=Yr(Ece),wce=yn({},mm,{animationName:0,elapsedTime:0,pseudoElement:0}),Tce=Yr(wce),Ace=yn({},mm,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Cce=Yr(Ace),Oce=yn({},mm,{data:0}),uI=Yr(Oce),Rce=uI,Mce={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_ce={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"},Dce={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Nce=yn({},qx,{key:function(r){if(r.key){var a=Mce[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Qd(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?_ce[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tf,charCode:function(r){return r.type==="keypress"?Qd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Qd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),kce=Yr(Nce),zce=yn({},BE,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cI=Yr(zce),Ice=yn({},qx,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tf}),Lce=Yr(Ice),Vce=yn({},mm,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bce=Yr(Vce),jce=yn({},BE,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Pce=Yr(jce),Uce=yn({},mm,{newState:0,oldState:0}),$ce=Yr(Uce),Hce=[9,13,27,32],fI=229,uA=Uc&&"CompositionEvent"in window,Fx=null;Uc&&"documentMode"in document&&(Fx=document.documentMode);var qce=Uc&&"TextEvent"in window&&!Fx,dI=Uc&&(!uA||Fx&&8<Fx&&11>=Fx),hI=32,pI=String.fromCharCode(hI),mI=!1,Dy=!1,Gce={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},Yx=null,Xx=null,gI=!1;Uc&&(gI=Yg("input")&&(!document.documentMode||9<document.documentMode));var zo=typeof Object.is=="function"?Object.is:M6,Fce=Uc&&"documentMode"in document&&11>=document.documentMode,Ny=null,cA=null,Wx=null,fA=!1,ky={animationend:Af("Animation","AnimationEnd"),animationiteration:Af("Animation","AnimationIteration"),animationstart:Af("Animation","AnimationStart"),transitionrun:Af("Transition","TransitionRun"),transitionstart:Af("Transition","TransitionStart"),transitioncancel:Af("Transition","TransitionCancel"),transitionend:Af("Transition","TransitionEnd")},dA={},yI={};Uc&&(yI=document.createElement("div").style,"AnimationEvent"in window||(delete ky.animationend.animation,delete ky.animationiteration.animation,delete ky.animationstart.animation),"TransitionEvent"in window||delete ky.transitionend.transition);var vI=Cf("animationend"),bI=Cf("animationiteration"),xI=Cf("animationstart"),Yce=Cf("transitionrun"),Xce=Cf("transitionstart"),Wce=Cf("transitioncancel"),SI=Cf("transitionend"),EI=new Map,hA="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(" ");hA.push("scrollEnd");var wI=0;if(typeof performance=="object"&&typeof performance.now=="function")var Qce=performance,TI=function(){return Qce.now()};else{var Kce=Date;TI=function(){return Kce.now()}}var pA=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Zce="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",jE=0,mA=1,gA=2,yA=3,PE="– ",UE="+ ",AI="  ",kr=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",qs="Components ⚛",Pn="Scheduler ⚛",$n="Blocking",P0=!1,ud={color:"primary",properties:null,tooltipText:"",track:qs},U0={start:-0,end:-0,detail:{devtools:ud}},Jce=["Changed Props",""],CI="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",efe=["Changed Props",CI],Qx=1,cd=2,Gs=[],zy=0,vA=0,$0={};Object.freeze($0);var Fs=null,Iy=null,Zt=0,tfe=1,xn=2,co=8,Lu=16,nfe=32,OI=!1;try{var RI=Object.preventExtensions({})}catch{OI=!0}var bA=new WeakMap,Ly=[],Vy=0,$E=null,Kx=0,Ys=[],Xs=0,gm=null,fd=1,dd="",Ia=null,zr=null,In=!1,$c=!1,Pl=null,H0=null,Ws=!1,xA=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),SA=$(null),EA=$(null),MI={},HE=null,By=null,jy=!1,rfe=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(u,g){r.push(g)}};this.abort=function(){a.aborted=!0,r.forEach(function(u){return u()})}},ife=Zr.unstable_scheduleCallback,afe=Zr.unstable_NormalPriority,Li={$$typeof:Vl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Vi=Zr.unstable_now,qE=console.createTask?console.createTask:function(){return null},Zx=1,GE=2,ma=-0,q0=-0,hd=-0,pd=null,Io=-1.1,ym=-0,ei=-0,$t=-1.1,Xt=-1.1,jr=null,ui=!1,vm=-0,Hc=-1.1,Jx=null,G0=0,wA=null,TA=null,bm=-1.1,e5=null,Py=-1.1,FE=-1.1,md=-0,gd=-1.1,Qs=-1.1,AA=0,t5=null,_I=null,DI=null,F0=-1.1,xm=null,Y0=-1.1,YE=-1.1,NI=-0,kI=-0,XE=0,ofe=null,zI=0,n5=-1.1,WE=!1,QE=!1,r5=null,CA=0,Sm=0,Uy=null,II=$e.S;$e.S=function(r,a){if(_L=Jr(),typeof a=="object"&&a!==null&&typeof a.then=="function"){if(0>gd&&0>Qs){gd=Vi();var u=A0(),g=T0();(u!==Y0||g!==xm)&&(Y0=-1.1),F0=u,xm=g}H6(r,a)}II!==null&&II(r,a)};var Em=$(null),Vu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},i5=[],a5=[],o5=[],l5=[],s5=[],u5=[],wm=new Set;Vu.recordUnsafeLifecycleWarnings=function(r,a){wm.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&i5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillMount=="function"&&a5.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&o5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&l5.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&s5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillUpdate=="function"&&u5.push(r))},Vu.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<i5.length&&(i5.forEach(function(D){r.add(ue(D)||"Component"),wm.add(D.type)}),i5=[]);var a=new Set;0<a5.length&&(a5.forEach(function(D){a.add(ue(D)||"Component"),wm.add(D.type)}),a5=[]);var u=new Set;0<o5.length&&(o5.forEach(function(D){u.add(ue(D)||"Component"),wm.add(D.type)}),o5=[]);var g=new Set;0<l5.length&&(l5.forEach(function(D){g.add(ue(D)||"Component"),wm.add(D.type)}),l5=[]);var x=new Set;0<s5.length&&(s5.forEach(function(D){x.add(ue(D)||"Component"),wm.add(D.type)}),s5=[]);var E=new Set;if(0<u5.length&&(u5.forEach(function(D){E.add(ue(D)||"Component"),wm.add(D.type)}),u5=[]),0<a.size){var R=T(a);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.

Please update the following components: %s`,R)}0<g.size&&(R=T(g),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state

Please update the following components: %s`,R)),0<E.size&&(R=T(E),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.

Please update the following components: %s`,R)),0<r.size&&(R=T(r),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,R)),0<u.size&&(R=T(u),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,R)),0<x.size&&(R=T(x),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,R))};var KE=new Map,LI=new Set;Vu.recordLegacyContextWarning=function(r,a){for(var u=null,g=r;g!==null;)g.mode&co&&(u=g),g=g.return;u===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!LI.has(r.type)&&(g=KE.get(u),r.type.contextTypes!=null||r.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(g===void 0&&(g=[],KE.set(u,g)),g.push(r))},Vu.flushLegacyContextWarning=function(){KE.forEach(function(r){if(r.length!==0){var a=r[0],u=new Set;r.forEach(function(x){u.add(ue(x)||"Component"),LI.add(x.type)});var g=T(u);Be(a,function(){console.error(`Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: %s

Learn more about this warning here: https://react.dev/link/legacy-context`,g)})}})},Vu.discardPendingWarnings=function(){i5=[],a5=[],o5=[],l5=[],s5=[],u5=[],KE=new Map};var VI={react_stack_bottom_frame:function(r,a,u){var g=sl;sl=!0;try{return r(a,u)}finally{sl=g}}},OA=VI.react_stack_bottom_frame.bind(VI),BI={react_stack_bottom_frame:function(r){var a=sl;sl=!0;try{return r.render()}finally{sl=a}}},jI=BI.react_stack_bottom_frame.bind(BI),PI={react_stack_bottom_frame:function(r,a){try{a.componentDidMount()}catch(u){Yn(r,r.return,u)}}},RA=PI.react_stack_bottom_frame.bind(PI),UI={react_stack_bottom_frame:function(r,a,u,g,x){try{a.componentDidUpdate(u,g,x)}catch(E){Yn(r,r.return,E)}}},$I=UI.react_stack_bottom_frame.bind(UI),HI={react_stack_bottom_frame:function(r,a){var u=a.stack;r.componentDidCatch(a.value,{componentStack:u!==null?u:""})}},lfe=HI.react_stack_bottom_frame.bind(HI),qI={react_stack_bottom_frame:function(r,a,u){try{u.componentWillUnmount()}catch(g){Yn(r,a,g)}}},GI=qI.react_stack_bottom_frame.bind(qI),FI={react_stack_bottom_frame:function(r){var a=r.create;return r=r.inst,a=a(),r.destroy=a}},sfe=FI.react_stack_bottom_frame.bind(FI),YI={react_stack_bottom_frame:function(r,a,u){try{u()}catch(g){Yn(r,a,g)}}},ufe=YI.react_stack_bottom_frame.bind(YI),XI={react_stack_bottom_frame:function(r){var a=r._init;return a(r._payload)}},cfe=XI.react_stack_bottom_frame.bind(XI),$y=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),MA=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ZE=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),JE={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Tm=null,c5=!1,Hy=null,f5=0,Sn=null,_A,WI=_A=!1,QI={},KI={},ZI={};S=function(r,a,u){if(u!==null&&typeof u=="object"&&u._store&&(!u._store.validated&&u.key==null||u._store.validated===2)){if(typeof u._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");u._store.validated=1;var g=ue(r),x=g||"null";if(!QI[x]){QI[x]=!0,u=u._owner,r=r._debugOwner;var E="";r&&typeof r.tag=="number"&&(x=ue(r))&&(E=`

Check the render method of \``+x+"`."),E||g&&(E=`

Check the top-level render call using <`+g+">.");var R="";u!=null&&r!==u&&(g=null,typeof u.tag=="number"?g=ue(u):typeof u.name=="string"&&(g=u.name),g&&(R=" It was passed a child from "+g+".")),Be(a,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',E,R)})}}};var Am=xr(!0),JI=xr(!1),eL=0,tL=1,nL=2,DA=3,X0=!1,rL=!1,NA=null,kA=!1,qy=$(null),ew=$(0),Ul=$(null),Ks=null,Gy=1,d5=2,Ai=$(0),tw=0,Zs=1,Lo=2,$l=4,Vo=8,Fy,iL=new Set,aL=new Set,zA=new Set,oL=new Set,yd=0,an=null,Er=null,Bi=null,nw=!1,Yy=!1,Cm=!1,rw=0,h5=0,vd=null,ffe=0,dfe=25,Pe=null,Js=null,bd=-1,p5=!1,m5={readContext:br,use:eo,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useLayoutEffect:Xr,useInsertionEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useSyncExternalStore:Xr,useId:Xr,useHostTransitionStatus:Xr,useFormState:Xr,useActionState:Xr,useOptimistic:Xr,useMemoCache:Xr,useCacheRefresh:Xr};m5.useEffectEvent=Xr;var IA=null,lL=null,LA=null,sL=null,qc=null,Bu=null,iw=null;IA={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",Vt(),If(a),As(r,a)},useContext:function(r){return Pe="useContext",Vt(),br(r)},useEffect:function(r,a){return Pe="useEffect",Vt(),If(a),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",Vt(),If(u),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",Vt(),If(a),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",Vt(),If(a),no(r,a)},useMemo:function(r,a){Pe="useMemo",Vt(),If(a);var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",Vt();var g=$e.H;$e.H=qc;try{return h1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",Vt(),g1(r)},useState:function(r){Pe="useState",Vt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",Vt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",Vt(),Nl(r,a)},useTransition:function(){return Pe="useTransition",Vt(),E4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",Vt(),o0(r,a,u)},useId:function(){return Pe="useId",Vt(),v1()},useFormState:function(r,a){return Pe="useFormState",Vt(),c1(),Ts(r,a)},useActionState:function(r,a){return Pe="useActionState",Vt(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",Vt(),l0(r)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",Vt(),b1()},useEffectEvent:function(r){return Pe="useEffectEvent",Vt(),gp(r)}},lL={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),As(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){return Pe="useEffect",rt(),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",rt(),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),no(r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=qc;try{return h1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",rt(),g1(r)},useState:function(r){Pe="useState",rt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),Nl(r,a)},useTransition:function(){return Pe="useTransition",rt(),E4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),o0(r,a,u)},useId:function(){return Pe="useId",rt(),v1()},useActionState:function(r,a){return Pe="useActionState",rt(),Ts(r,a)},useFormState:function(r,a){return Pe="useFormState",rt(),c1(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",rt(),l0(r)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),b1()},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),gp(r)}},LA={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),ca(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){Pe="useEffect",rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),Yi(4,$l,r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=Bu;try{return Dl(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",rt(),Wn().memoizedState},useState:function(){Pe="useState",rt();var r=$e.H;$e.H=Bu;try{return Dl(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),cn(r,a)},useTransition:function(){return Pe="useTransition",rt(),Vr()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),fp(r,a,u)},useId:function(){return Pe="useId",rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",rt(),c1(),u0(r)},useActionState:function(r){return Pe="useActionState",rt(),u0(r)},useOptimistic:function(r,a){return Pe="useOptimistic",rt(),s0(r,a)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),ua(r)}},sL={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),ca(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){Pe="useEffect",rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),Yi(4,$l,r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=iw;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=iw;try{return Ac(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",rt(),Wn().memoizedState},useState:function(){Pe="useState",rt();var r=$e.H;$e.H=iw;try{return Ac(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),nr(r,a)},useTransition:function(){return Pe="useTransition",rt(),y1()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),fp(r,a,u)},useId:function(){return Pe="useId",rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",rt(),c1(),Mc(r)},useActionState:function(r){return Pe="useActionState",rt(),Mc(r)},useOptimistic:function(r,a){return Pe="useOptimistic",rt(),b4(r,a)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),ua(r)}},qc={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),Vt(),As(r,a)},useContext:function(r){return Pe="useContext",h(),Vt(),br(r)},useEffect:function(r,a){return Pe="useEffect",h(),Vt(),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),Vt(),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",h(),Vt(),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),Vt(),no(r,a)},useMemo:function(r,a){Pe="useMemo",h(),Vt();var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),Vt();var g=$e.H;$e.H=qc;try{return h1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",h(),Vt(),g1(r)},useState:function(r){Pe="useState",h(),Vt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",h(),Vt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),Vt(),Nl(r,a)},useTransition:function(){return Pe="useTransition",h(),Vt(),E4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),Vt(),o0(r,a,u)},useId:function(){return Pe="useId",h(),Vt(),v1()},useFormState:function(r,a){return Pe="useFormState",h(),Vt(),Ts(r,a)},useActionState:function(r,a){return Pe="useActionState",h(),Vt(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",h(),Vt(),l0(r)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",Vt(),b1()},useEffectEvent:function(r){return Pe="useEffectEvent",h(),Vt(),gp(r)}},Bu={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),rt(),ca(r,a)},useContext:function(r){return Pe="useContext",h(),rt(),br(r)},useEffect:function(r,a){Pe="useEffect",h(),rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",h(),rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),rt(),Yi(4,$l,r,a)},useMemo:function(r,a){Pe="useMemo",h(),rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),rt();var g=$e.H;$e.H=Bu;try{return Dl(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),rt(),Wn().memoizedState},useState:function(){Pe="useState",h(),rt();var r=$e.H;$e.H=Bu;try{return Dl(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",h(),rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),rt(),cn(r,a)},useTransition:function(){return Pe="useTransition",h(),rt(),Vr()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),rt(),fp(r,a,u)},useId:function(){return Pe="useId",h(),rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",h(),rt(),u0(r)},useActionState:function(r){return Pe="useActionState",h(),rt(),u0(r)},useOptimistic:function(r,a){return Pe="useOptimistic",h(),rt(),s0(r,a)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",h(),rt(),ua(r)}},iw={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),rt(),ca(r,a)},useContext:function(r){return Pe="useContext",h(),rt(),br(r)},useEffect:function(r,a){Pe="useEffect",h(),rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",h(),rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),rt(),Yi(4,$l,r,a)},useMemo:function(r,a){Pe="useMemo",h(),rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),rt();var g=$e.H;$e.H=Bu;try{return Ac(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),rt(),Wn().memoizedState},useState:function(){Pe="useState",h(),rt();var r=$e.H;$e.H=Bu;try{return Ac(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",h(),rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),rt(),nr(r,a)},useTransition:function(){return Pe="useTransition",h(),rt(),y1()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),rt(),fp(r,a,u)},useId:function(){return Pe="useId",h(),rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",h(),rt(),Mc(r)},useActionState:function(r){return Pe="useActionState",h(),rt(),Mc(r)},useOptimistic:function(r,a){return Pe="useOptimistic",h(),rt(),b4(r,a)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",h(),rt(),ua(r)}};var uL={},cL=new Set,fL=new Set,dL=new Set,hL=new Set,pL=new Set,mL=new Set,gL=new Set,yL=new Set,vL=new Set,bL=new Set;Object.freeze(uL);var VA={enqueueSetState:function(r,a,u){r=r._reactInternals;var g=Ki(r),x=xs(g);x.payload=a,u!=null&&(h0(u),x.callback=u),a=Oa(r,x,g),a!==null&&(Cl(g,"this.setState()",r),Br(a,r,g),i0(a,r,g))},enqueueReplaceState:function(r,a,u){r=r._reactInternals;var g=Ki(r),x=xs(g);x.tag=tL,x.payload=a,u!=null&&(h0(u),x.callback=u),a=Oa(r,x,g),a!==null&&(Cl(g,"this.replaceState()",r),Br(a,r,g),i0(a,r,g))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var u=Ki(r),g=xs(u);g.tag=nL,a!=null&&(h0(a),g.callback=a),a=Oa(r,g,u),a!==null&&(Cl(u,"this.forceUpdate()",r),Br(a,r,u),i0(a,r,u))}},Xy=null,BA=null,jA=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ji=!1,xL={},SL={},EL={},wL={},Wy=!1,TL={},aw={},PA={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},AL=!1,CL=null;CL=new Set;var xd=!1,Pi=!1,UA=!1,OL=typeof WeakSet=="function"?WeakSet:Set,ga=null,Qy=null,Ky=null,Ui=null,fl=!1,ju=null,ra=!1,g5=8192,hfe={getCacheForType:function(r){var a=br(Li),u=a.data.get(r);return u===void 0&&(u=r(),a.data.set(r,u)),u},cacheSignal:function(){return br(Li).controller.signal},getOwner:function(){return Do}};if(typeof Symbol=="function"&&Symbol.for){var y5=Symbol.for;y5("selector.component"),y5("selector.has_pseudo_class"),y5("selector.role"),y5("selector.test_id"),y5("selector.text")}var pfe=[],mfe=typeof WeakMap=="function"?WeakMap:Map,ya=0,ia=2,Hl=4,Sd=0,v5=1,Om=2,ow=3,W0=4,lw=6,RL=5,Gn=ya,wr=null,Cn=null,En=0,dl=0,sw=1,Rm=2,b5=3,ML=4,$A=5,x5=6,uw=7,HA=8,Mm=9,pr=dl,ql=null,Q0=!1,Zy=!1,qA=!1,Gc=0,ti=Sd,K0=0,Z0=0,GA=0,hl=0,_m=0,S5=null,Bo=null,cw=!1,fw=0,_L=0,DL=300,dw=1/0,NL=500,E5=null,yi=null,J0=null,hw=0,FA=1,YA=2,kL=3,eh=0,zL=1,IL=2,LL=3,VL=4,pw=5,$i=0,th=null,Jy=null,Pu=0,XA=0,WA=-0,QA=null,BL=null,jL=null,Uu=hw,PL=null,gfe=50,w5=0,KA=null,ZA=!1,mw=!1,yfe=50,Dm=0,T5=null,ev=!1,gw=null,UL=!1,$L=new Set,vfe={},yw=null,tv=null,JA=!1,eC=!1,vw=!1,tC=!1,nh=0,nC={};(function(){for(var r=0;r<hA.length;r++){var a=hA[r],u=a.toLowerCase();a=a[0].toUpperCase()+a.slice(1),Wo(u,"on"+a)}Wo(vI,"onAnimationEnd"),Wo(bI,"onAnimationIteration"),Wo(xI,"onAnimationStart"),Wo("dblclick","onDoubleClick"),Wo("focusin","onFocus"),Wo("focusout","onBlur"),Wo(Yce,"onTransitionRun"),Wo(Xce,"onTransitionStart"),Wo(Wce,"onTransitionCancel"),Wo(SI,"onTransitionEnd")})(),ct("onMouseEnter",["mouseout","mouseover"]),ct("onMouseLeave",["mouseout","mouseover"]),ct("onPointerEnter",["pointerout","pointerover"]),ct("onPointerLeave",["pointerout","pointerover"]),Yt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var A5="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(" "),rC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(A5)),bw="_reactListening"+Math.random().toString(36).slice(2),HL=!1,qL=!1,xw=!1,GL=!1,Sw=!1,Ew=!1,FL=!1,ww={},bfe=/\r\n?/g,xfe=/\u0000|\uFFFD/g,Nm="http://www.w3.org/1999/xlink",iC="http://www.w3.org/XML/1998/namespace",Sfe="javascript:throw new Error('React form unexpectedly submitted.')",Efe="suppressHydrationWarning",km="&",Tw="/&",C5="$",O5="/$",rh="$?",zm="$~",nv="$!",wfe="html",Tfe="body",Afe="head",aC="F!",YL="F",XL="loading",Cfe="style",Ed=0,rv=1,Aw=2,oC=null,lC=null,WL={dialog:!0,webview:!0},sC=null,R5=void 0,QL=typeof setTimeout=="function"?setTimeout:void 0,Ofe=typeof clearTimeout=="function"?clearTimeout:void 0,Im=-1,KL=typeof Promise=="function"?Promise:void 0,Rfe=typeof queueMicrotask=="function"?queueMicrotask:typeof KL<"u"?function(r){return KL.resolve(null).then(r).catch(sE)}:QL,uC=null,Lm=0,M5=1,ZL=2,JL=3,eu=4,tu=new Map,eV=new Set,wd=Kn.d;Kn.d={f:function(){var r=wd.f(),a=Wf();return r||a},r:function(r){var a=Ne(r);a!==null&&a.tag===5&&a.type==="form"?Uf(a):wd.r(r)},D:function(r){wd.D(r),vx("dns-prefetch",r,null)},C:function(r,a){wd.C(r,a),vx("preconnect",r,a)},L:function(r,a,u){wd.L(r,a,u);var g=iv;if(g&&r&&a){var x='link[rel="preload"][as="'+Or(a)+'"]';a==="image"&&u&&u.imageSrcSet?(x+='[imagesrcset="'+Or(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(x+='[imagesizes="'+Or(u.imageSizes)+'"]')):x+='[href="'+Or(r)+'"]';var E=x;switch(a){case"style":E=O0(r);break;case"script":E=R0(r)}tu.has(E)||(r=yn({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:r,as:a},u),tu.set(E,r),g.querySelector(x)!==null||a==="style"&&g.querySelector(nd(E))||a==="script"&&g.querySelector(rd(E))||(a=g.createElement("link"),jn(a,"link",r),vt(a),g.head.appendChild(a)))}},m:function(r,a){wd.m(r,a);var u=iv;if(u&&r){var g=a&&typeof a.as=="string"?a.as:"script",x='link[rel="modulepreload"][as="'+Or(g)+'"][href="'+Or(r)+'"]',E=x;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=R0(r)}if(!tu.has(E)&&(r=yn({rel:"modulepreload",href:r},a),tu.set(E,r),u.querySelector(x)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(rd(E)))return}g=u.createElement("link"),jn(g,"link",r),vt(g),u.head.appendChild(g)}}},X:function(r,a){wd.X(r,a);var u=iv;if(u&&r){var g=wt(u).hoistableScripts,x=R0(r),E=g.get(x);E||(E=u.querySelector(rd(x)),E||(r=yn({src:r,async:!0},a),(a=tu.get(x))&&id(r,a),E=u.createElement("script"),vt(E),jn(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(x,E))}},S:function(r,a,u){wd.S(r,a,u);var g=iv;if(g&&r){var x=wt(g).hoistableStyles,E=O0(r);a=a||"default";var R=x.get(E);if(!R){var D={loading:Lm,preload:null};if(R=g.querySelector(nd(E)))D.loading=M5|eu;else{r=yn({rel:"stylesheet",href:r,"data-precedence":a},u),(u=tu.get(E))&&Sx(r,u);var q=R=g.createElement("link");vt(q),jn(q,"link",r),q._p=new Promise(function(K,Ee){q.onload=K,q.onerror=Ee}),q.addEventListener("load",function(){D.loading|=M5}),q.addEventListener("error",function(){D.loading|=ZL}),D.loading|=eu,ry(R,a,g)}R={type:"stylesheet",instance:R,count:1,state:D},x.set(E,R)}}},M:function(r,a){wd.M(r,a);var u=iv;if(u&&r){var g=wt(u).hoistableScripts,x=R0(r),E=g.get(x);E||(E=u.querySelector(rd(x)),E||(r=yn({src:r,async:!0,type:"module"},a),(a=tu.get(x))&&id(r,a),E=u.createElement("script"),vt(E),jn(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(x,E))}}};var iv=typeof document>"u"?null:document,Cw=null,Mfe=6e4,_fe=800,Dfe=500,cC=0,fC=null,Ow=null,Vm=eA,_5={$$typeof:Vl,Provider:null,Consumer:null,_currentValue:Vm,_currentValue2:Vm,_threadCount:0},tV="%c%s%c",nV="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",rV="",Rw=" ",Nfe=Function.prototype.bind,iV=!1,aV=null,oV=null,lV=null,sV=null,uV=null,cV=null,fV=null,dV=null,hV=null,pV=null;aV=function(r,a,u,g){a=t(r,a),a!==null&&(u=n(a.memoizedState,u,0,g),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},oV=function(r,a,u){a=t(r,a),a!==null&&(u=s(a.memoizedState,u,0),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},lV=function(r,a,u,g){a=t(r,a),a!==null&&(u=i(a.memoizedState,u,g),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},sV=function(r,a,u){r.pendingProps=n(r.memoizedProps,a,0,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},uV=function(r,a){r.pendingProps=s(r.memoizedProps,a,0),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},cV=function(r,a,u){r.pendingProps=i(r.memoizedProps,a,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},fV=function(r){var a=Fi(r,2);a!==null&&Br(a,r,2)},dV=function(r){var a=Ve(),u=Fi(r,a);u!==null&&Br(u,r,a)},hV=function(r){d=r},pV=function(r){c=r};var Mw=!0,_w=null,dC=!1,ih=null,ah=null,oh=null,D5=new Map,N5=new Map,lh=[],kfe="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(" "),Dw=null;if(im.prototype.render=Ps.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error("Cannot update an unmounted root.");var u=arguments;typeof u[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):k(u[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof u[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),u=r;var g=a.current,x=Ki(g);Ax(g,x,u,a,null,null)},im.prototype.unmount=Ps.prototype.unmount=function(){var r=arguments;if(typeof r[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),r=this._internalRoot,r!==null){this._internalRoot=null;var a=r.containerInfo;(Gn&(ia|Hl))!==ya&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Ax(r.current,2,null,r,null,null),Wf(),a[cl]=null}},im.prototype.unstable_scheduleHydration=function(r){if(r){var a=cr();r={blockedOn:null,target:r,priority:a};for(var u=0;u<lh.length&&a!==0&&a<lh[u].priority;u++);lh.splice(u,0,r),u===0&&cy(r)}},(function(){var r=Dx.version;if(r!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
  - react:      `+(r+`
  - react-dom:  19.2.4
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Kn.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error("Unable to find node on an unmounted component."):(r=Object.keys(r).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+r));return r=U(a),r=r!==null?X(r):null,r=r===null?null:r.stateNode,r},!(function(){var r={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:$e,reconcilerVersion:"19.2.4"};return r.overrideHookState=aV,r.overrideHookStateDeletePath=oV,r.overrideHookStateRenamePath=lV,r.overrideProps=sV,r.overridePropsDeletePath=uV,r.overridePropsRenamePath=cV,r.scheduleUpdate=fV,r.scheduleRetry=dV,r.setErrorHandler=hV,r.setSuspenseHandler=pV,r.scheduleRefresh=M,r.scheduleRoot=C,r.setRefreshHandler=_,r.getCurrentFiber=Ox,mn(r)})()&&Uc&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var mV=window.location.protocol;/^(https?|file):$/.test(mV)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(mV==="file:"?`
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}uv.createRoot=function(r,a){if(!k(r))throw Error("Target container is not a DOM element.");_x(r);var u=!1,g="",x=S1,E=T4,R=A4;return a!=null&&(a.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===ol&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:

  let root = createRoot(domContainer);
  root.render(<App />);`),a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onUncaughtError!==void 0&&(x=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(R=a.onRecoverableError)),a=EE(r,1,!1,null,null,u,g,null,x,E,R,OE),r[cl]=a.current,Hp(r),new Ps(a)},uv.hydrateRoot=function(r,a,u){if(!k(r))throw Error("Target container is not a DOM element.");_x(r),a===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var g=!1,x="",E=S1,R=T4,D=A4,q=null;return u!=null&&(u.unstable_strictMode===!0&&(g=!0),u.identifierPrefix!==void 0&&(x=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(D=u.onRecoverableError),u.formState!==void 0&&(q=u.formState)),a=EE(r,1,!0,a,u??null,g,x,q,E,R,D,OE),a.context=Tx(null),u=a.current,g=Ki(u),g=jt(g),x=xs(g),x.callback=null,Oa(u,x,g),Cl(g,"hydrateRoot()",null),u=g,a.current.lanes=u,pt(a,u),Na(a),r[cl]=a.current,Hp(r),new im(a)},uv.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),uv}var RC;function OV(){if(RC)return I5.exports;RC=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return e.NODE_ENV==="production"?(t(),I5.exports=AV()):I5.exports=CV(),I5.exports}var RV=OV(),kt=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(kt||{}),Rn=(e=>(e.BAR="bar",e.BOX="box",e.CANDLESTICK="candlestick",e.DODGED="dodged_bar",e.HEATMAP="heat",e.HISTOGRAM="hist",e.LINE="line",e.NORMALIZED="stacked_normalized_bar",e.SCATTER="point",e.SMOOTH="smooth",e.STACKED="stacked_bar",e.VIOLIN_BOX="violin_box",e.VIOLIN_KDE="violin_kde",e))(Rn||{});function MV(e){return e!==null&&typeof e=="object"&&"x"in e}function _V(e){return typeof e=="string"||typeof e=="number"}function DV(e){return e!==null&&typeof e=="object"&&"x"in e}class Lw{stepTraceInSubplot(t,n){const i=t.activeTrace;if(!i)return null;const o=i.getCurrentXValue();t.moveOnce(n);const s=t.activeTrace;if(!s)return null;if(s.getId()===i.getId())return s.notifyOutOfBounds(),t.notifyOutOfBounds(),s;let c=!1;if(typeof i.getCurrentYValue=="function"&&typeof s.moveToXAndYValue=="function"){const d=i.getCurrentYValue();d!==null&&o!==null&&(c=s.moveToXAndYValue(o,d))}return c||s.moveToXValue(o),this.notifyLayerSwitch(t,s),s}computeIndexAndSegment(t,n,i,o){return i===kt.HORIZONTAL?{pointIndex:t,segmentType:o[n]}:{pointIndex:n,segmentType:o[t]}}computeVisualCoordinates(t,n,i){return i===kt.HORIZONTAL?{row:t,col:n}:{row:n,col:t}}extractXValueFromPoints(t,n,i){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const o=t[0][i];return this.extractXFromPoint(o)}if(Array.isArray(t)&&Array.isArray(t[n])&&t[n][i]){const o=t[n][i];return this.extractXFromPoint(o)}return null}extractXValueFromValues(t,n,i){if(this.isValidPosition(t,n,i)){const o=t[n][i];return this.extractXFromValue(o)}return null}moveToXValueInPoints(t,n,i){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const h=this.findPointIndexByX(t[0],n);if(h!==-1)return i(0,h),!0;{const y=this.findNearestPointIndexByX(t[0],n);if(y!==-1){const b=Hu(t[0][y]);if(typeof n=="number"&&typeof b=="number")return i(0,y),!0;if(typeof n=="string"&&typeof b=="string")return i(0,y),!0}}}let o=-1,s=-1,c=Number.POSITIVE_INFINITY,d=null;if(Array.isArray(t))for(let h=0;h<t.length;h++){const y=t[h];if(Array.isArray(y)){const b=this.findPointIndexByX(y,n);if(b!==-1)return i(h,b),!0;const S=this.findNearestPointIndexByX(y,n);if(S!==-1){const T=Hu(y[S]);let w=Number.POSITIVE_INFINITY;typeof n=="number"&&typeof T=="number"?(w=Math.abs(T-n),w<c&&(c=w,o=h,s=S,d="numeric")):typeof n=="string"&&typeof T=="string"?o===-1&&(o=h,s=S,d="categorical"):o===-1&&(o=h,s=S,d="generic")}}}if(o!==-1&&s!==-1){const h=t[o];if(Array.isArray(h)&&Hu(h[s]),d!==null)return i(o,s),!0}return!1}moveToXValueInValues(t,n,i){let o=-1,s=-1,c=Number.POSITIVE_INFINITY,d=null;for(let h=0;h<t.length;h++)for(let y=0;y<t[h].length;y++){const b=t[h][y],S=this.extractXFromValue(b);if(S===n)return i(h,y),!0;if(typeof n=="number"&&typeof S=="number"){const T=Math.abs(S-n);T<c&&(c=T,o=h,s=y,d="numeric")}else typeof n=="string"&&typeof S=="string"?o===-1&&(o=h,s=y,d="categorical"):o===-1&&(o=h,s=y,d="generic")}return o!==-1&&s!==-1?(this.extractXFromValue(t[o][s]),i(o,s),!0):!1}extractXFromPoint(t){return DV(t)?t.x:null}extractXFromValue(t){return MV(t)?t.x:_V(t)?t:null}findPointIndexByX(t,n){return t.findIndex(i=>i.x===n)}isValidPosition(t,n,i){return n>=0&&n<t.length&&i>=0&&i<t[n].length}findNearestPointIndexByX(t,n){if(typeof n=="number"){let i=-1,o=Number.POSITIVE_INFINITY;for(let s=0;s<t.length;s++){const c=Hu(t[s]);if(typeof c=="number"){const d=Math.abs(c-n);d<o&&(o=d,i=s)}else if(typeof c=="string"){const d=Number(c);if(!Number.isNaN(d)){const h=Math.abs(d-n);h<o&&(o=h,i=s)}}}if(i!==-1)return Hu(t[i]),i}else if(typeof n=="string"){for(let o=0;o<t.length;o++)if(Hu(t[o])===n)return o;const i=Number(n);if(!Number.isNaN(i)){let o=-1,s=Number.POSITIVE_INFINITY;for(let c=0;c<t.length;c++){const d=Hu(t[c]);if(typeof d=="number"){const h=Math.abs(d-i);h<s&&(s=h,o=c)}else if(typeof d=="string"){const h=Number(d);if(!Number.isNaN(h)){const y=Math.abs(h-i);y<s&&(s=y,o=c)}}}if(o!==-1)return Hu(t[o]),o}for(let o=0;o<t.length;o++)if(typeof Hu(t[o])=="string")return o}return t.length>0?(Hu(t[0]),0):-1}dispose(){}notifyLayerSwitch(t,n){if(n.state.empty)n.notifyStateUpdate();else{const i=t.getRow()+1,o=t.getSize(),s={...n.state,isLayerSwitch:!0,index:i,size:o};n.notifyObserversWithState(s)}}}function NV(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function kV(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function zV(e){return e&&typeof e=="object"&&"xMin"in e&&"xMax"in e}function IV(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function LV(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function VV(e){return e&&typeof e=="object"&&"value"in e}function Hu(e){return e?NV(e)||kV(e)||IV(e)||LV(e)||zV(e)?e.x:VV(e)?e.value:null:null}var qu=(e=>(e.CLICK="click",e.DOM_LOADED="DOMContentLoaded",e.FOCUS_IN="focusin",e.FOCUS_OUT="focusout",e.MOUSE_ENTER="mouseenter",e.MOUSE_LEAVE="mouseleave",e.MOUSE_MOVE="mousemove",e.SELECTION_CHANGE="selectionchange",e.VISIBILITY_CHANGE="visibilitychange",e))(qu||{}),pn=(e=>(e.BRAILLE="BRAILLE",e.CHAT="CHAT",e.COMMAND_PALETTE="COMMAND_PALETTE",e.GO_TO_EXTREMA="GO_TO_EXTREMA",e.HELP="HELP",e.FIGURE_LABEL="FIGURE_LABEL",e.SUBPLOT="SUBPLOT",e.TRACE="TRACE",e.TRACE_LABEL="TRACE_LABEL",e.REVIEW="REVIEW",e.SETTINGS="SETTINGS",e))(pn||{});class Yc{constructor(){P(this,"listeners");P(this,"event",t=>(this.listeners.add(t),{dispose:()=>this.listeners.delete(t)}));this.listeners=new Set}dispose(){this.listeners.clear()}fire(t){for(const n of this.listeners)n(t)}}class me{constructor(){}}P(me,"ARTICLE","article"),P(me,"DIV","div"),P(me,"FIGURE","figure"),P(me,"IMAGE","img"),P(me,"INPUT","input"),P(me,"STYLE","style"),P(me,"TEXT_AREA","textarea"),P(me,"BRAILLE_TEXT_AREA","maidr-braille-textarea"),P(me,"MAIDR_ARTICLE","maidr-article"),P(me,"MAIDR_FIGURE","maidr-figure"),P(me,"MAIDR_HIGHLIGHT","maidr-highlight"),P(me,"REACT_CONTAINER","maidr-react-container"),P(me,"REVIEW_INPUT","maidr-review-input"),P(me,"TEXT_CONTAINER","maidr-text-container"),P(me,"MAIDR_INSTRUCTION","maidr-instruction"),P(me,"ROTOR_AREA","maidr-rotor-area"),P(me,"SR_ONLY_CLASS","maidr-sr-only"),P(me,"ARIA_LABEL","aria-label"),P(me,"CIRCLE_X","cx"),P(me,"CIRCLE_Y","cy"),P(me,"D","d"),P(me,"FILL","fill"),P(me,"MARGIN","margin"),P(me,"POINTS","points"),P(me,"RADIUS","r"),P(me,"ROLE","role"),P(me,"STROKE","stroke"),P(me,"STROKE_WIDTH","stroke-width"),P(me,"TITLE","title"),P(me,"VISIBILITY","visibility"),P(me,"X1","x1"),P(me,"X2","x2"),P(me,"Y1","y1"),P(me,"Y2","y2"),P(me,"MAIDR_SUBPLOT","subplot"),P(me,"MAIDR","maidr"),P(me,"MAIDR_JSON_SELECTOR",'[maidr^="{"]'),P(me,"AFTER_END","afterend"),P(me,"APPLICATION","application"),P(me,"ARE"," are "),P(me,"CIRCLE","circle"),P(me,"CLOSE_BRACKET","]"),P(me,"COMMA",","),P(me,"COMMA_SPACE",", "),P(me,"EMPTY",""),P(me,"HIDDEN","hidden"),P(me,"IS"," is "),P(me,"LINE","line"),P(me,"MAIDR_DATA","maidr-data"),P(me,"MAIDR_HIGHLIGHT_COLOR","#BADA55"),P(me,"NEW_LINE",`
`),P(me,"OPEN_BRACKET","["),P(me,"POLYLINE","polyline"),P(me,"SPACE"," "),P(me,"THROUGH"," through "),P(me,"TRANSPARENT","transparent"),P(me,"VISIBLE","visible"),P(me,"X","x"),P(me,"Y","y"),P(me,"HIGHLIGHT_BASE_COLOR",{r:255,g:255,b:255}),P(me,"HIGHLIGHT_CONTRAST_RATIO",3),P(me,"HIGHLIGHT_COLOR_RATIO",.6),P(me,"HIGHLIGHT_MAX_COLOR",255),P(me,"HIGHER_VALUE_MODE","HIGHER VALUE NAVIGATION"),P(me,"LOWER_VALUE_MODE","LOWER VALUE NAVIGATION"),P(me,"DATA_MODE","DATA POINT NAVIGATION"),P(me,"NO_OF_ROTOR_NAV_MODES",3);class Vw{constructor(){P(this,"items");this.items=new Array}push(t){this.items.push(t)}pop(){return this.items.pop()}peek(){return this.items[this.items.length-1]}removeLast(t,n=1){const i=this.items.lastIndexOf(t);return i!==-1?(this.items.splice(i,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}}const Bw=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function jw(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),n)}function cv(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on".concat(t),n)}function MC(e,t){const n=t.slice(0,t.length-1);for(let i=0;i<n.length;i++)n[i]=e[n[i].toLowerCase()];return n}function _C(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function BV(e,t){const n=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let o=!0;for(let s=0;s<n.length;s++)i.indexOf(n[s])===-1&&(o=!1);return o}const fv={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Bw?173:189,"=":Bw?61:187,";":Bw?59:186,"'":222,"[":219,"]":221,"\\":220},ru={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},dv={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},va={16:!1,18:!1,17:!1,91:!1},ni={};for(let e=1;e<20;e++)fv["f".concat(e)]=111+e;let Pr=[],hv=null,DC="all";const Xc=new Map,pv=e=>fv[e.toLowerCase()]||ru[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),jV=e=>Object.keys(fv).find(t=>fv[t]===e),PV=e=>Object.keys(ru).find(t=>ru[t]===e);function NC(e){DC=e||"all"}function mv(){return DC||"all"}function UV(){return Pr.slice(0)}function $V(){return Pr.map(e=>jV(e)||PV(e)||String.fromCharCode(e))}function HV(){const e=[];return Object.keys(ni).forEach(t=>{ni[t].forEach(n=>{let{key:i,scope:o,mods:s,shortcut:c}=n;e.push({scope:o,shortcut:c,mods:s,keys:i.split("+").map(d=>pv(d))})})}),e}function qV(e){const t=e.target||e.srcElement,{tagName:n}=t;let i=!0;const o=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(i=!1),i}function GV(e){return typeof e=="string"&&(e=pv(e)),Pr.indexOf(e)!==-1}function FV(e,t){let n,i;e||(e=mv());for(const o in ni)if(Object.prototype.hasOwnProperty.call(ni,o))for(n=ni[o],i=0;i<n.length;)n[i].scope===e?n.splice(i,1).forEach(c=>{let{element:d}=c;return Pw(d)}):i++;mv()===e&&NC(t||"all")}function YV(e){let t=e.keyCode||e.which||e.charCode;const n=Pr.indexOf(t);if(n>=0&&Pr.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Pr.splice(0,Pr.length),(t===93||t===224)&&(t=91),t in va){va[t]=!1;for(const i in ru)ru[i]===t&&(Ba[i]=!1)}}function kC(e){if(typeof e>"u")Object.keys(ni).forEach(o=>{Array.isArray(ni[o])&&ni[o].forEach(s=>B5(s)),delete ni[o]}),Pw(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&B5(o)});else if(typeof e=="object")e.key&&B5(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let[o,s]=n;typeof o=="function"&&(s=o,o=""),B5({key:e,scope:o,method:s,splitKey:"+"})}}const B5=e=>{let{key:t,scope:n,method:i,splitKey:o="+"}=e;_C(t).forEach(c=>{const d=c.split(o),h=d.length,y=d[h-1],b=y==="*"?"*":pv(y);if(!ni[b])return;n||(n=mv());const S=h>1?MC(ru,d):[],T=[];ni[b]=ni[b].filter(w=>{const M=(i?w.method===i:!0)&&w.scope===n&&BV(w.mods,S);return M&&T.push(w.element),!M}),T.forEach(w=>Pw(w))})};function zC(e,t,n,i){if(t.element!==i)return;let o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(const s in va)Object.prototype.hasOwnProperty.call(va,s)&&(!va[s]&&t.mods.indexOf(+s)>-1||va[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!va[16]&&!va[18]&&!va[17]&&!va[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Pr),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function IC(e,t){const n=ni["*"];let i=e.keyCode||e.which||e.charCode;if(!Ba.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Pr.indexOf(i)===-1&&i!==229&&Pr.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const h=dv[d];e[d]&&Pr.indexOf(h)===-1?Pr.push(h):!e[d]&&Pr.indexOf(h)>-1?Pr.splice(Pr.indexOf(h),1):d==="metaKey"&&e[d]&&(Pr=Pr.filter(y=>y in dv||y===i))}),i in va){va[i]=!0;for(const d in ru)if(Object.prototype.hasOwnProperty.call(ru,d)){const h=dv[ru[d]];Ba[d]=e[h]}if(!n)return}for(const d in va)Object.prototype.hasOwnProperty.call(va,d)&&(va[d]=e[dv[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Pr.indexOf(17)===-1&&Pr.push(17),Pr.indexOf(18)===-1&&Pr.push(18),va[17]=!0,va[18]=!0);const o=mv();if(n)for(let d=0;d<n.length;d++)n[d].scope===o&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&zC(e,n[d],o,t);if(!(i in ni))return;const s=ni[i],c=s.length;for(let d=0;d<c;d++)if((e.type==="keydown"&&s[d].keydown||e.type==="keyup"&&s[d].keyup)&&s[d].key){const h=s[d],{splitKey:y}=h,b=h.key.split(y),S=[];for(let T=0;T<b.length;T++)S.push(pv(b[T]));S.sort().join("")===Pr.sort().join("")&&zC(e,h,o,t)}}function Ba(e,t,n){Pr=[];const i=_C(e);let o=[],s="all",c=document,d=0,h=!1,y=!0,b="+",S=!1,T=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(c=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(y=t.keydown),t.capture!==void 0&&(S=t.capture),typeof t.splitKey=="string"&&(b=t.splitKey),t.single===!0&&(T=!0)),typeof t=="string"&&(s=t),T&&kC(e,s);d<i.length;d++)e=i[d].split(b),o=[],e.length>1&&(o=MC(ru,e)),e=e[e.length-1],e=e==="*"?"*":pv(e),e in ni||(ni[e]=[]),ni[e].push({keyup:h,keydown:y,scope:s,mods:o,shortcut:i[d],method:n,key:i[d],splitKey:b,element:c});if(typeof c<"u"&&window){if(!Xc.has(c)){const w=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return IC(M,c)},C=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;IC(M,c),YV(M)};Xc.set(c,{keydownListener:w,keyupListenr:C,capture:S}),jw(c,"keydown",w,S),jw(c,"keyup",C,S)}if(!hv){const w=()=>{Pr=[]};hv={listener:w,capture:S},jw(window,"focus",w,S)}}}function XV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ni).forEach(n=>{ni[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function Pw(e){const t=Object.values(ni).flat();if(t.findIndex(i=>{let{element:o}=i;return o===e})<0){const{keydownListener:i,keyupListenr:o,capture:s}=Xc.get(e)||{};i&&o&&(cv(e,"keyup",o,s),cv(e,"keydown",i,s),Xc.delete(e))}if((t.length<=0||Xc.size<=0)&&(Object.keys(Xc).forEach(o=>{const{keydownListener:s,keyupListenr:c,capture:d}=Xc.get(o)||{};s&&c&&(cv(o,"keyup",c,d),cv(o,"keydown",s,d),Xc.delete(o))}),Xc.clear(),Object.keys(ni).forEach(o=>delete ni[o]),hv)){const{listener:o,capture:s}=hv;cv(window,"focus",o,s),hv=null}}const Uw={getPressedKeyString:$V,setScope:NC,getScope:mv,deleteScope:FV,getPressedKeyCodes:UV,getAllKeyCodes:HV,isPressed:GV,filter:qV,trigger:XV,unbind:kC,keyMap:fv,modifier:ru,modifierMap:dv};for(const e in Uw)Object.prototype.hasOwnProperty.call(Uw,e)&&(Ba[e]=Uw[e]);if(typeof window<"u"){const e=window.hotkeys;Ba.noConflict=t=>(t&&window.hotkeys===Ba&&(window.hotkeys=e),Ba),window.hotkeys=Ba}function LC(e,t){return t?t===kt.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===kt.VERTICAL||t==="vert"?`vertical ${e}`:e:e}class WV{constructor(t){P(this,"id");P(this,"instructionContext");P(this,"selectorList",[]);P(this,"plotContext");P(this,"scopeContext");P(this,"navigationService");P(this,"figure");P(this,"isRotorActive");this.figure=t,this.id=t.id,this.plotContext=new Vw,this.scopeContext=new Vw,this.navigationService=new Lw,this.isRotorActive=!1;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(pn.SUBPLOT);return}this.scopeContext.push(pn.TRACE);const i=t.activeSubplot.state;if(i.empty||i.size!==1){this.instructionContext=t.activeSubplot,this.plotContext.push(t.activeSubplot),this.plotContext.push(t.activeSubplot.activeTrace);return}this.instructionContext=t.activeSubplot.activeTrace,this.plotContext.push(t.activeSubplot.activeTrace)}dispose(){this.plotContext.clear(),this.scopeContext.clear()}get active(){return this.plotContext.peek()}get state(){return this.active.state}setRotorEnabled(t){this.isRotorActive=t}isRotorEnabled(){return this.isRotorActive}get isMultiPanel(){const t=this.figure.state;return!t.empty&&t.size>1}get figureTitle(){const t=this.figure.state;return t.empty?"unavailable":t.title}get figureSubtitle(){const t=this.figure.state;return t.empty?"unavailable":t.subtitle}get figureCaption(){const t=this.figure.state;return t.empty?"unavailable":t.caption}toggleScope(t){this.scopeContext.clear(),this.scopeContext.push(t),Ba.setScope(t)}get scope(){return this.scopeContext.peek()}isMovable(t){return this.active.isMovable(t)}moveOnce(t){this.active.moveOnce(t)}moveToExtreme(t){this.active.moveToExtreme(t)}moveToIndex(t,n){this.active.moveToIndex(t,n)}moveToPoint(t,n){this.active.moveToPoint(t,n)}stepTrace(t){if(this.plotContext.size()>1){const n=this.active;this.plotContext.pop();const i=this.active,o=this.navigationService.stepTraceInSubplot(i,t);o?this.plotContext.push(o):n&&this.plotContext.push(n)}else{const n=this.figure.subplots[0][0];this.active.notifyOutOfBounds(),n.notifyOutOfBounds()}}enterSubplot(){if(this.active.state.type==="figure"){const n=this.active;this.plotContext.push(n.activeSubplot);const i=n.activeSubplot.activeTrace;i.resetToInitialEntry(),this.plotContext.push(i),this.toggleScope(pn.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(pn.SUBPLOT))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const i=t?"Click to activate.":me.EMPTY;switch(n.type){case"figure":return`This is a maidr figure containing ${n.size} subplots. ${i}
        Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":{const o=n.trace.empty?void 0:n.trace.orientation,s=LC(n.trace.traceType,o);return`This is a maidr plot containing ${n.size} layers, and
        this is layer 1 of ${n.size}: ${s} plot. ${i}
        Use Arrows to navigate data points. Toggle B for Braille, T for Text,
        S for Sonification, and R for Review mode.`}case"trace":{let o=n.plotType;n.plotType==="multiline"&&n.groupCount===1&&(o="single line");const s=o==="multiline"&&n.groupCount?` with ${n.groupCount} groups`:"";return`This is a maidr plot of type: ${LC(o,n.orientation)}${s}. ${i} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}}class j5{constructor(){}static parse(t){const n=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(n)){let o=n.substring(1).split("");return o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),{r:Number.parseInt(o[0]+o[1],16),g:Number.parseInt(o[2]+o[3],16),b:Number.parseInt(o[4]+o[5],16)}}const i=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return i?{r:Number.parseInt(i[1],10),g:Number.parseInt(i[2],10),b:Number.parseInt(i[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const i=this.calculateLuminance(t),o=this.calculateLuminance(n);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)}static calculateLuminance(t){const[n,i,o]=[t.r,t.g,t.b].map(s=>{const c=s/255;return c<=.03928?c/12.92:((c+.055)/1.055)**2.4});return .2126*n+.7152*i+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}static isEqual(t,n){const i=this.parse(t),o=this.parse(n);return!i||!o?!1:i.r===o.r&&i.g===o.g&&i.b===o.b}}class Mt{constructor(){}static async toBase64(t){try{const n=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n).replace(/'/g,"%27").replace(/"/g,"%22")}`,s=await new Promise((h,y)=>{const b=new Image;b.onload=()=>h(b),b.onerror=()=>y(new Error("Failed to load SVG image")),b.src=o}),c=document.createElement("canvas");[c.width,c.height]=[s.naturalWidth,s.naturalHeight];const d=c.getContext("2d");return d?(d.drawImage(s,0,0),c.toDataURL("image/jpeg",.92)):(console.error("Error converting SVG to Base 64: Canvas context unavailable"),"")}catch(n){return console.error("Error converting SVG to Base 64:",n instanceof Error?n.message:n),""}}static selectAllElements(t,n=!0){return Array.from(document.querySelectorAll(t)).map(i=>{if(!n)return i;const o=i.cloneNode(!0);return o.setAttribute(me.VISIBILITY,me.HIDDEN),i.insertAdjacentElement(me.AFTER_END,o),o})}static selectElement(t,n=!0){const i=document.querySelector(t);if(!n)return i;const o=i==null?void 0:i.cloneNode(!0);return o==null||o.setAttribute(me.VISIBILITY,me.HIDDEN),i==null||i.insertAdjacentElement(me.AFTER_END,o),o}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(me.FILL,me.TRANSPARENT),n.setAttribute(me.STROKE,me.TRANSPARENT),n.setAttribute(me.VISIBILITY,me.HIDDEN),n}static createCircleElement(t,n,i){var y;const o=window.getComputedStyle(i),s=o.stroke||o.fill,c=o.strokeWidth||"2",d=Number.parseFloat(c)*2,h=document.createElementNS(this.SVG_NAMESPACE,me.CIRCLE);return h.setAttribute(me.CIRCLE_X,String(t)),h.setAttribute(me.CIRCLE_Y,String(n)),h.setAttribute(me.RADIUS,String(d)),h.setAttribute(me.FILL,s),h.setAttribute(me.STROKE,s),h.setAttribute(me.STROKE_WIDTH,c),h.setAttribute(me.VISIBILITY,me.HIDDEN),(y=i.parentElement)==null||y.insertAdjacentElement(me.AFTER_END,h),h}static createLineElement(t,n){const o=t.getBBox(),s=o.width||this.MIN_LINE_SPAN,c=o.height||this.MIN_LINE_SPAN,d=o.x+o.width/2,h=o.y+o.height/2;let y,b,S,T;switch(n){case"top":o.width===0?[y,b,S,T]=[d-s/2,o.y,d+s/2,o.y]:[y,b,S,T]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":o.width===0?[y,b,S,T]=[d-s/2,o.y+o.height,d+s/2,o.y+o.height]:[y,b,S,T]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":o.height===0?[y,b,S,T]=[o.x,h-c/2,o.x,h+c/2]:[y,b,S,T]=[o.x,o.y,o.x,o.y+o.height];break;case"right":o.height===0?[y,b,S,T]=[o.x+o.width,h-c/2,o.x+o.width,h+c/2]:[y,b,S,T]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const w=window.getComputedStyle(t),C=document.createElementNS(this.SVG_NAMESPACE,me.LINE);return C.setAttribute(me.X1,String(y)),C.setAttribute(me.Y1,String(b)),C.setAttribute(me.X2,String(S)),C.setAttribute(me.Y2,String(T)),C.setAttribute(me.STROKE,w.stroke),C.setAttribute(me.STROKE_WIDTH,w.strokeWidth||"2"),C.setAttribute(me.VISIBILITY,me.HIDDEN),t.insertAdjacentElement(me.AFTER_END,C),C}static getAdjustedOpacity(t,n){const i=t?Number.parseFloat(t):Number.NaN;return!Number.isNaN(i)&&i>n?i.toString():"1"}static createHighlightElement(t,n){try{const S=t.getBBox();if(S.width===0&&S.height===0){const T=window.getComputedStyle(t),w=Number.parseFloat(T.strokeWidth||"2"),C=Math.max(w*1.5,4),M=document.createElementNS(this.SVG_NAMESPACE,"circle");return M.setAttribute("cx",String(S.x)),M.setAttribute("cy",String(S.y)),M.setAttribute("r",String(C)),M.setAttribute(me.FILL,n),M.setAttribute(me.STROKE,n),M.setAttribute(me.STROKE_WIDTH,"2"),M.setAttribute(me.VISIBILITY,me.VISIBLE),t.insertAdjacentElement(me.AFTER_END,M),M}}catch{}const i=t.cloneNode(!0),o=t.tagName.toLowerCase(),s=o===me.POLYLINE||o===me.LINE,c=window.getComputedStyle(t),d=s?c.getPropertyValue(me.STROKE):c.getPropertyValue(me.FILL),h=this.getHighlightColor(d,n),y=c.getPropertyValue("fill-opacity"),b=c.getPropertyValue("stroke-opacity");if(i.style.fillOpacity=this.getAdjustedOpacity(y,this.MIN_VISIBLE_FILL_OPACITY),i.style.strokeOpacity=this.getAdjustedOpacity(b,this.MIN_VISIBLE_STROKE_OPACITY),i.setAttribute(me.VISIBILITY,me.VISIBLE),i.setAttribute(me.STROKE,h),i.setAttribute(me.FILL,h),i.style.fill=h,i.style.stroke=h,s){const S=window.getComputedStyle(i).getPropertyValue(me.STROKE_WIDTH),T=S.match(/^([0-9.]+)([a-z%]*)$/i);if(T){const w=Number.parseFloat(T[1]),C=T[2]||"";i.setAttribute(me.STROKE_WIDTH,`${w+this.STROKE_WIDTH_HIGHLIGHT_INCREASE}${C}`)}else{const w=Number.parseFloat(S),C=Number.isNaN(w)?this.STROKE_WIDTH_HIGHLIGHT_INCREASE:w+this.STROKE_WIDTH_HIGHLIGHT_INCREASE;i.setAttribute(me.STROKE_WIDTH,`${C}`)}}return t.insertAdjacentElement(me.AFTER_END,i),i}static getHighlightColor(t,n){const i=j5.parse(t);if(!i||!(j5.getContrastRatio(i,me.HIGHLIGHT_BASE_COLOR)<me.HIGHLIGHT_CONTRAST_RATIO))return n;const c={...i};return i.r===i.g&&i.g===i.b?(c.r=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*me.HIGHLIGHT_COLOR_RATIO)),c.g=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*me.HIGHLIGHT_COLOR_RATIO)),c.b=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*me.HIGHLIGHT_COLOR_RATIO))):i.r>=i.g&&i.r>=i.b?c.r=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*me.HIGHLIGHT_COLOR_RATIO)):i.g>=i.r&&i.g>=i.b?c.g=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*me.HIGHLIGHT_COLOR_RATIO)):c.b=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*me.HIGHLIGHT_COLOR_RATIO)),j5.rgbToString(c)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",i=j5.parse(n);return i?(.2126*i.r+.7152*i.g+.0722*i.b)/255>.5?"#000":"#fff":"#000"}static setSubplotHighlightCss(t,n){t.style.outline=`4px solid ${n}`,t.style.outlineOffset="3px",t.style.borderRadius="3px",t.style.overflow="visible"}static removeSubplotHighlightCss(t){t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"),t.style.removeProperty("border-radius"),t.style.removeProperty("overflow")}static setSubplotHighlightSvgWithAdaptiveColor(t,n,i){const o=t.querySelector("rect, path");let s="";if(o){s=window.getComputedStyle(o).getPropertyValue("fill"),(!s||s==="none"||s==="transparent"||s==="rgba(0, 0, 0, 0)")&&(i?s=window.getComputedStyle(i).getPropertyValue("fill"):s=n);const c=this.getHighlightColor(s,n);o.setAttribute("stroke",c),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}P(Mt,"SVG_NAMESPACE","http://www.w3.org/2000/svg"),P(Mt,"MIN_LINE_SPAN",10),P(Mt,"MIN_VISIBLE_FILL_OPACITY",.01),P(Mt,"MIN_VISIBLE_STROKE_OPACITY",.01),P(Mt,"STROKE_WIDTH_HIGHLIGHT_INCREASE",2);const QV="unavailable",KV="X",ZV="Y",JV="unavailable";class $w{constructor(){P(this,"observers");P(this,"isWarning");this.observers=new Array,this.isWarning=!1}dispose(){this.observers.length=0}notifyRotorBounds(){this.isWarning=!0,this.notifyStateUpdate(),this.isWarning=!1}get isInitialEntry(){return this.movable.isInitialEntry}set isInitialEntry(t){this.movable.isInitialEntry=t}get isOutOfBounds(){return this.movable.isOutOfBounds}set isOutOfBounds(t){this.movable.isOutOfBounds=t}get row(){return this.movable.row}get col(){return this.movable.col}set row(t){this.movable.row=t}set col(t){this.movable.col=t}getSafeIndices(){const t=this.row>=0&&this.row<this.dimension.rows?this.row:0,n=this.col>=0&&this.col<this.dimension.cols?this.col:0;return{row:t,col:n}}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyStateUpdate(){const t=this.state;this.observers.forEach(n=>n.update(t))}notifyOutOfBounds(){const t=this.outOfBoundsState;this.observers.forEach(n=>n.update(t))}moveOnce(t){const n=this.movable.moveOnce(t);return n?this.notifyStateUpdate():this.notifyOutOfBounds(),n}moveToExtreme(t){const n=this.movable.moveToExtreme(t);return n?this.notifyStateUpdate():this.notifyOutOfBounds(),n}moveToIndex(t,n){const i=this.movable.moveToIndex(t,n);return i?this.notifyStateUpdate():this.notifyOutOfBounds(),i}isMovable(t){return this.movable.isMovable(t)}notifyObserversWithState(t){for(const n of this.observers)n.update(t)}moveToNextCompareValue(t,n){return this.notifyRotorBounds(),!1}compare(t,n,i){return i==="lower"?t<n:i==="higher"?t>n:!1}moveUpRotor(t){throw new Error("Move up function is not defined for this trace")}moveDownRotor(t){throw new Error("Move down function is not defined for this trace")}moveLeftRotor(t){throw new Error("Move left function is not defined for this trace")}moveRightRotor(t){throw new Error("Move right function is not defined for this trace")}moveToPoint(t,n){}}class jo extends $w{constructor(n){var i,o,s;super();P(this,"id");P(this,"type");P(this,"title");P(this,"xAxis");P(this,"yAxis");P(this,"fill");P(this,"navigationService");P(this,"layer");this.layer=n,this.navigationService=new Lw,this.id=n.id,this.type=n.type,this.title=n.title??QV,this.xAxis=((i=n.axes)==null?void 0:i.x)??KV,this.yAxis=((o=n.axes)==null?void 0:o.y)??ZV,this.fill=((s=n.axes)==null?void 0:s.fill)??JV}dispose(){this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(i=>{(Array.isArray(i)?i:[i]).forEach(s=>s.remove())})),this.highlightValues.length=0),super.dispose()}get state(){return this.isWarning?{empty:!0,type:"trace",traceType:this.type,audio:{y:this.row,x:this.col,rows:this.dimension.rows,cols:this.dimension.cols},warning:!0}:{empty:!1,type:"trace",layerId:this.id,traceType:this.type,plotType:this.type,title:this.title,xAxis:this.xAxis,yAxis:this.yAxis,fill:this.fill,hasMultiPoints:this.hasMultiPoints,audio:this.audio,braille:this.braille,text:this.text,autoplay:this.autoplay,highlight:this.highlight,orientation:this.layer.orientation}}get outOfBoundsState(){return{empty:!0,type:"trace",traceType:this.type,audio:{y:this.row,x:this.col,rows:this.dimension.rows,cols:this.dimension.cols}}}get highlight(){return this.highlightValues===null||this.isInitialEntry?this.outOfBoundsState:{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAllHighlightElements(){if(this.highlightValues===null)return[];const n=[];for(const i of this.highlightValues)for(const o of i)Array.isArray(o)?n.push(...o):o&&n.push(o);return n}getAllOriginalElements(){if(this.highlightValues===null)return[];const n=[];for(const i of this.highlightValues)for(const o of i){const s=Array.isArray(o)?o:o?[o]:[];for(const c of s){const d=c.previousElementSibling;d&&d.tagName===c.tagName&&d.getAttribute("visibility")!=="hidden"&&n.push(d)}}return n}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){return{UPWARD:this.dimension.rows,DOWNWARD:this.dimension.rows,FORWARD:this.dimension.cols,BACKWARD:this.dimension.cols}}resetToInitialEntry(){this.isInitialEntry=!0,this.row=0,this.col=0}get hasMultiPoints(){return!1}getExtremaTargets(){return[]}navigateToExtrema(n){if(this.supportsExtrema)throw new Error("Extrema navigation not implemented by this plot type")}finalizeExtremaNavigation(){this.isInitialEntry&&(this.isInitialEntry=!1),this.updateVisualPointPosition(),this.notifyStateUpdate()}updateVisualPointPosition(){}supportsExtremaNavigation(){return this.supportsExtrema}getCurrentXValue(){if(this.hasPointsArray()){const n=this.getPointsArray();if(this.isValidPointsArray(n))return this.navigationService.extractXValueFromPoints(n,this.row,this.col)}if(this.hasValuesArray()){const n=this.values;if(this.isValidValuesArray(n))return this.navigationService.extractXValueFromValues(n,this.row,this.col)}return null}moveToXValue(n){if(this.hasPointsArray()){const i=this.getPointsArray();if(this.isValidPointsArray(i))return this.navigationService.moveToXValueInPoints(i,n,this.moveToIndex.bind(this))}if(this.hasValuesArray()){const i=this.values;if(this.isValidValuesArray(i))return this.navigationService.moveToXValueInValues(i,n,this.moveToIndex.bind(this))}return!1}hasPointsArray(){return"points"in this&&this.points!==void 0}hasValuesArray(){return"values"in this&&this.values!==void 0}getPointsArray(){return this.points}isValidPointsArray(n){return Array.isArray(n)&&n.length>0}isValidValuesArray(n){return Array.isArray(n)&&n.length>0}getId(){return this.id}moveToPoint(n,i){const o=this.findNearestPoint(n,i);if(o&&this.isPointInBounds(n,i,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}isPointInBounds(n,i,{element:o,row:s,col:c}){const d=o.getBoundingClientRect();let h=12;return(this.type===Rn.HEATMAP||this.type===Rn.BAR||this.type===Rn.STACKED||this.type===Rn.HISTOGRAM)&&(h=0),n>=d.x-h&&n<=d.x+d.width+h&&i>=d.y-h&&i<=d.y+d.height+h}}class Oi{constructor(){}static safeMin(t){return t.length===0?1/0:Math.min(...t)}static safeMax(t){return t.length===0?-1/0:Math.max(...t)}static minFrom2D(t){const n=t.flat();return this.safeMin(n)}static maxFrom2D(t){const n=t.flat();return this.safeMax(n)}static minMax(t){if(t.length===0)return{min:1/0,max:-1/0};let n=t[0],i=t[0];for(let o=1;o<t.length;o++){const s=t[o];s<n&&(n=s),s>i&&(i=s)}return{min:n,max:i}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class Hw{constructor(t){P(this,"isInitialEntry");P(this,"isOutOfBounds");P(this,"row");P(this,"col");this.isInitialEntry=(t==null?void 0:t.isInitialEntry)??!0,this.isOutOfBounds=!1,this.row=(t==null?void 0:t.row)??0,this.col=(t==null?void 0:t.col)??0}moveToIndex(t,n){return this.isMovable([t,n])?(this.row=t,this.col=n,this.isInitialEntry=!1,!0):!1}}class Wc extends Hw{constructor(n,i){super(i);P(this,"elements");this.elements=n}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),!0;if(!this.isMovable(n))return!1;switch(n){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}return!0}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":this.row=this.elements.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.col=this.elements[this.row].length-1;break;case"BACKWARD":this.col=0;break}return!0}moveToIndex(n,i){return this.isMovable([n,i])?(this.row=n,this.col=i,this.isInitialEntry=!1,!0):!1}isMovable(n){if(Array.isArray(n)){const[i,o]=n;return i>=0&&i<this.elements.length&&o>=0&&o<this.elements[this.row].length}switch(n){case"UPWARD":return this.row<this.elements.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<this.elements[this.row].length-1;case"BACKWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.elements.length-1)),this.col=Math.max(0,Math.min(this.col,this.elements[this.row].length-1))}}class eB extends Hw{constructor(n,i){super(i);P(this,"graph");this.graph=n}moveOnce(n){var s;if(this.isInitialEntry)return this.handleInitialEntry(),!0;const i=(s=this.graph[this.row])==null?void 0:s[this.col];if(!i)return!1;let o=null;switch(n){case"UPWARD":o=i.up;break;case"DOWNWARD":o=i.down;break;case"FORWARD":o=i.right;break;case"BACKWARD":o=i.left;break}return o?(this.row=o.row,this.col=o.col,!0):!1}moveToExtreme(n){var s;this.isInitialEntry&&this.handleInitialEntry();const i=(s=this.graph[this.row])==null?void 0:s[this.col];if(!i)return!1;let o=null;switch(n){case"UPWARD":o=i.top;break;case"DOWNWARD":o=i.bottom;break;case"FORWARD":o=i.end;break;case"BACKWARD":o=i.start;break}return o?(this.row=o.row,this.col=o.col,!0):!1}isMovable(n){var o,s,c;if(Array.isArray(n)){const[d,h]=n;return((o=this.graph[d])==null?void 0:o[h])!==null&&((s=this.graph[d])==null?void 0:s[h])!==void 0}const i=(c=this.graph[this.row])==null?void 0:c[this.col];if(!i)return!1;switch(n){case"UPWARD":return i.up!==null;case"DOWNWARD":return i.down!==null;case"FORWARD":return i.right!==null;case"BACKWARD":return i.left!==null}}handleInitialEntry(){this.isInitialEntry=!1,this.isMovable([0,0])?(this.row=0,this.col=0):(this.row=-1,this.col=-1)}}class tB extends Hw{constructor(n,i){super();P(this,"mode");P(this,"xPoints");P(this,"yPoints");P(this,"xValues");P(this,"yValues");this.mode="col",this.xPoints=n,this.yPoints=i,this.xValues=n.map(o=>o.x),this.yValues=i.map(o=>o.y)}dispose(){this.xValues.length=0,this.yValues.length=0}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),!0;if(!this.isMovable(n))return!1;if(this.mode==="col")switch(n){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(n){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}return!0}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="col")switch(n){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}return!0}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="col")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0}}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],i=n.y[Math.floor(n.y.length/2)];this.row=this.yValues.indexOf(i),this.mode="row"}else{const n=this.yPoints[this.row],i=n.x[Math.floor(n.x.length/2)];this.col=this.xValues.indexOf(i),this.mode="col"}}handleInitialEntry(){this.isInitialEntry=!1,this.mode==="col"?(this.col=Math.max(0,Math.min(this.col,this.xPoints.length-1)),this.row=Math.max(0,Math.min(this.row,this.xPoints[this.col].y.length-1))):(this.row=Math.max(0,Math.min(this.row,this.yPoints.length-1)),this.col=Math.max(0,Math.min(this.col,this.yPoints[this.row].x.length-1)))}}class qw extends jo{constructor(n,i){super(n);P(this,"movable");P(this,"points");P(this,"barValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"min");P(this,"max");P(this,"supportsExtrema",!0);this.points=i,this.orientation=n.orientation??kt.VERTICAL,this.barValues=i.map(o=>o.map(s=>this.orientation===kt.VERTICAL?Number(s.y):Number(s.x))),this.min=this.barValues.map(o=>Oi.safeMin(o)),this.max=this.barValues.map(o=>Oi.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.points)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get audio(){const n=this.orientation===kt.VERTICAL,i=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{freq:{min:Oi.safeMin(this.min),max:Oi.safeMax(this.max),raw:i},panning:{x:n?this.col:this.row,y:n?this.row:this.col,rows:n?this.barValues.length:this.barValues[this.col].length,cols:n?this.barValues[this.row].length:this.barValues.length},group:n?this.row:this.col}}get braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){const n=this.orientation===kt.VERTICAL,i=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,s=n?i.x:i.y,c=n?this.yAxis:this.xAxis,d=n?i.y:i.x;return{main:{label:o,value:s},cross:{label:c,value:d},mainAxis:n?"x":"y",crossAxis:n?"y":"x"}}get dimension(){return{rows:this.barValues.length,cols:this.barValues[this.row].length}}get values(){return this.barValues}mapToSvgElements(n){if(!n)return null;const i=[Mt.selectAllElements(n)];if(i.length!==this.points.length)return null;for(let o=0;o<this.points.length;o++)if(i[o].length!==this.points[o].length)return null;return i}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c,h=d.getBoundingClientRect();d&&i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}return i}findNearestPoint(n,i){if(!this.highlightValues)return null;for(let o=0;o<this.highlightValues.length;o++)for(let s=0;s<this.highlightValues[o].length;s++){const c=this.highlightValues[o][s],d=Array.isArray(c)?c[0]:c,h=d.getBoundingClientRect();if(n>=h.x&&n<=h.x+h.width&&i>=h.y&&i<=h.y+h.height)return{element:d,row:o,col:s}}return null}}class nB extends qw{isPointInBounds(t,n,{element:i,row:o,col:s}){const c=i.getBoundingClientRect();return t>=c.x&&t<=c.x+c.width&&n>=c.y&&n<=c.y+c.height}constructor(t){super(t,[t.data])}getExtremaTargets(){const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const i=this.barValues[n];if(!i||i.length===0)return t;const o=this.min[n],s=this.max[n],c=i.indexOf(s),d=i.indexOf(o);return t.push({label:`Max Bar at ${this.getPointLabel(c)}`,value:s,pointIndex:c,segment:"bar",type:"max",navigationType:"point"}),t.push({label:`Min Bar at ${this.getPointLabel(d)}`,value:o,pointIndex:d,segment:"bar",type:"min",navigationType:"point"}),t}navigateToExtrema(t){this.col=t.pointIndex,this.finalizeExtremaNavigation()}getPointLabel(t){if(this.points[this.row]&&this.points[this.row][t]){const n=this.points[this.row][t];return this.orientation===kt.VERTICAL?`${n.x}`:`${n.y}`}return`Point ${t}`}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}moveToNextCompareValue(t,n){const i=this.row;if(i<0||i>=this.barValues.length)return!1;const o=this.barValues[i];if(!o||o.length===0)return!1;const s=this.col,c=t==="right"?1:-1;let d=s+c;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}}const aa={LOWER_OUTLIER:"Lower outlier(s)",MIN:"Minimum",Q1:"25%",Q2:"50%",Q3:"75%",MAX:"Maximum",UPPER_OUTLIER:"Upper outlier(s)",MEAN:"Mean"};class rB extends jo{constructor(n){var d;super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"points");P(this,"boxValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"sections");P(this,"min");P(this,"max");this.orientation=n.orientation??kt.VERTICAL,this.orientation===kt.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:i,accessors:o}=this.buildStandardBoxDataSections();this.sections=i,this.boxValues=this.computeBoxValues(o);const c=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=Oi.minFrom2D(c),this.max=Oi.maxFrom2D(c),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===kt.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.boxValues,{row:0})}computeBoxValues(n){return this.orientation===kt.HORIZONTAL?this.points.map(i=>n.map(o=>o(i))):n.map(i=>this.points.map(o=>i(o)))}buildStandardBoxDataSections(){return{sections:[aa.LOWER_OUTLIER,aa.MIN,aa.Q1,aa.Q2,aa.Q3,aa.MAX,aa.UPPER_OUTLIER],accessors:[n=>n.lowerOutliers,n=>n.min,n=>n.q1,n=>n.q2,n=>n.q3,n=>n.max,n=>n.upperOutliers]}}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,i){return super.moveToIndex(n,i)}get values(){return this.boxValues}get audio(){const n=this.orientation===kt.HORIZONTAL,i=this.boxValues[this.row][this.col],o=n?this.col:this.row,s=Array.isArray(i)?i.length===0?o:i[i.length-1]-this.min:Number.isNaN(i)?o:i-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?s:this.row,y:n?this.row:s,rows:n?this.boxValues.length:this.max-this.min,cols:n?this.max-this.min:this.boxValues.length}}}get braille(){const n=this.orientation===kt.HORIZONTAL,i=n?this.row:this.col,o=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:i,col:o}}get text(){const n=this.orientation===kt.HORIZONTAL,i=n?this.points[this.row]:this.points[this.col],o=n?this.yAxis:this.xAxis,s=n?this.sections[this.col]:this.sections[this.row],c=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:c,value:d},section:s,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get dimension(){const n=this.orientation===kt.HORIZONTAL;return{rows:n?this.boxValues.length:this.boxValues[this.row].length,cols:n?this.boxValues[this.row].length:this.boxValues.length}}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const i=this.orientation===kt.VERTICAL,o=new Array;if(i)for(let c=0;c<this.sections.length;c++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(c=>{var w,C;const d=((w=c.lowerOutliers)==null?void 0:w.flatMap(M=>Mt.selectAllElements(M,!1)))??[],h=((C=c.upperOutliers)==null?void 0:C.flatMap(M=>Mt.selectAllElements(M,!1)))??[],y=Mt.selectElement(c.min,!1),b=Mt.selectElement(c.max,!1),S=Mt.selectElement(c.iq,!1),T=Mt.selectElement(c.q2,!1);s.push({lowerOutliers:d,upperOutliers:h,min:y,max:b,iq:S,q2:T})}),s.forEach((c,d)=>{var k;const h=c.lowerOutliers.map(z=>{const L=z.cloneNode(!0);return L.setAttribute(me.VISIBILITY,me.HIDDEN),z.insertAdjacentElement(me.AFTER_END,L),L}),y=c.upperOutliers.map(z=>{const L=z.cloneNode(!0);return L.setAttribute(me.VISIBILITY,me.HIDDEN),z.insertAdjacentElement(me.AFTER_END,L),L}),b=this.cloneElementOrEmpty(c.min),S=this.cloneElementOrEmpty(c.max),T=this.cloneElementOrEmpty(c.q2),w=((k=this.layer.domMapping)==null?void 0:k.iqrDirection)==="reverse",[C,M]=c.iq?i?w?[Mt.createLineElement(c.iq,"top"),Mt.createLineElement(c.iq,"bottom")]:[Mt.createLineElement(c.iq,"bottom"),Mt.createLineElement(c.iq,"top")]:[Mt.createLineElement(c.iq,"left"),Mt.createLineElement(c.iq,"right")]:[Mt.createEmptyElement("line"),Mt.createEmptyElement("line")],_=[h,b,C,T,M,S,y];i?_.forEach((z,L)=>{o[L][d]=z}):o.push(_)}),o}cloneElementOrEmpty(n){if(!n)return Mt.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(me.VISIBILITY,me.HIDDEN),n.insertAdjacentElement(me.AFTER_END,i),i}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.boxValues.length)return!1;let s=[],c=0;if(n==="left"||n==="right"?(s=this.boxValues[this.row],c=this.col):(s=this.boxValues.map(y=>y[this.col]),c=this.row),s.length<=0)return!1;const d=n==="right"||n==="up"?1:-1;let h=c+d;for(;h>=0&&h<s.length;){const y=s[c],b=s[h];if(Array.isArray(b)||Array.isArray(y))return!0;if(this.compare(b,y,i))return this.set_point(n,h),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}set_point(n,i){n==="left"||n==="right"?this.col=i:this.row=i}moveUpRotor(n){return this.orientation===kt.VERTICAL?(this.moveOnce("UPWARD"),!0):this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.orientation===kt.VERTICAL?(this.moveOnce("DOWNWARD"),!0):this.moveToNextCompareValue("down",n)}moveLeftRotor(n){return this.orientation===kt.HORIZONTAL?(this.moveOnce("BACKWARD"),!0):this.moveToNextCompareValue("left",n)}moveRightRotor(n){return this.orientation===kt.HORIZONTAL?(this.moveOnce("FORWARD"),!0):this.moveToNextCompareValue("right",n)}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}}const iB="trend",VC=100,aB=["volatility","open","high","low","close"];class oB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"movable");P(this,"candles");P(this,"candleValues");P(this,"orientation");P(this,"currentSegmentType","open");P(this,"currentPointIndex",0);P(this,"sortedSegmentsByPoint");P(this,"segmentPositionMaps");P(this,"sections");P(this,"min");P(this,"max");P(this,"highlightValues");P(this,"highlightCenters");P(this,"navigationService");this.navigationService=new Lw;const i=n.data;this.candles=i.map(s=>({...s,volatility:Math.round((s.high-s.low)*VC)/VC,trend:s.close>s.open?"Bull":s.close<s.open?"Bear":"Neutral"})),this.orientation=n.orientation??kt.VERTICAL,this.sections=aB,this.candleValues=this.sections.map(s=>this.candles.map(c=>c[s]));const o=this.orientation===kt.HORIZONTAL?{col:this.sections.length-1}:{row:this.sections.length-1};this.movable=new Wc(this.candleValues,o),this.min=Oi.minFrom2D(this.candleValues),this.max=Oi.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="close",this.orientation===kt.HORIZONTAL?this.col=0:this.row=0,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}precomputeSortedSegments(){return this.candles.map(n=>["volatility",...["low","open","close","high"].map(s=>[s,n[s]]).sort((s,c)=>s[1]-c[1]).map(s=>s[0])])}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const i=new Map;return n.forEach((o,s)=>{i.set(o,s)}),i})}getSegmentPositionInSortedOrder(n,i){return this.segmentPositionMaps[n].get(i)??0}getSegmentTypeAtSortedPosition(n,i){return this.sortedSegmentsByPoint[n][i]??"open"}updateVisualSegmentPosition(){const i=this.sortedSegmentsByPoint[this.currentPointIndex].indexOf(this.currentSegmentType??"open");this.orientation===kt.HORIZONTAL?this.col=i:this.row=i}updateVisualPointPosition(){this.orientation===kt.HORIZONTAL?this.row=this.currentPointIndex:this.col=this.currentPointIndex,this.updateVisualSegmentPosition()}handleInitialEntry(){this.isInitialEntry=!1,this.currentPointIndex=Math.max(0,Math.min(this.currentPointIndex,this.candles.length-1)),this.currentSegmentType="close",this.updateVisualSegmentPosition()}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;switch(n){case"UPWARD":case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex],o=i.indexOf(this.currentSegmentType??"open");if(o===-1)return this.notifyOutOfBounds(),!1;const s=n==="UPWARD"?o+1:o-1;if(s>=0&&s<i.length)this.currentSegmentType=i[s],this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}case"FORWARD":case"BACKWARD":{const i=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(i>=0&&i<this.candles.length)this.currentPointIndex=i,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}}return this.notifyStateUpdate(),!0}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=i[i.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=i[0],this.updateVisualSegmentPosition();break}case"FORWARD":{this.currentPointIndex=this.candles.length-1,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}case"BACKWARD":{this.currentPointIndex=0,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}}return this.notifyStateUpdate(),!0}moveToIndex(n,i){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:o,segmentType:s}=this.navigationService.computeIndexAndSegment(n,i,this.orientation,this.sections);return this.currentPointIndex=o,this.currentSegmentType=s,this.row=n,this.col=i,this.updateVisualSegmentPosition(),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}isMovable(n){if(Array.isArray(n))return super.isMovable(n);if(this.isInitialEntry)return!0;switch(n){case"UPWARD":case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex],o=i.indexOf(this.currentSegmentType??"open"),s=n==="UPWARD"?o+1:o-1;return s>=0&&s<i.length}case"FORWARD":case"BACKWARD":{const i=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return i>=0&&i<this.candles.length}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}get audio(){let n;const i=this.orientation===kt.HORIZONTAL;return this.currentSegmentType==="volatility"?n=this.candles[this.currentPointIndex].volatility:this.currentSegmentType?n=this.candles[this.currentPointIndex][this.currentSegmentType]:n=this.candles[this.currentPointIndex].open,{freq:{min:this.min,max:this.max,raw:n},panning:{x:i?this.row:this.col,y:i?this.col:this.row,rows:i?this.candleValues.length:this.candleValues[this.row].length,cols:i?this.candleValues[this.row].length:this.candleValues.length},trend:this.candles[this.currentPointIndex].trend}}get braille(){const n=this.candles.map(c=>c.trend),i=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType??this.sections[0]);this.row=i;const o=this.candleValues.map(c=>Math.min(...c)),s=this.candleValues.map(c=>Math.max(...c));return{empty:!1,id:this.id,values:this.candleValues,min:o,max:s,row:this.row,col:this.col,custom:n}}collectElements(n){if(!n)return[];const i=Array.isArray(n)?n:[n],o=[];for(const s of i)o.push(...Mt.selectAllElements(s));return o}getElementAt(n,i){return i<n.length?n[i]:null}mapToSvgElements(n){if(!n)return null;if(typeof n=="string"||Array.isArray(n)){const C=Array.isArray(n)?n[0]||"":n,M=Mt.selectAllElements(C),_=[];for(let k=0;k<this.sections.length;k++){_[k]=[];for(let z=0;z<this.candles.length;z++){const L=z<M.length?z:0;_[k][z]=M[L]}}return _}const i=n,o=this.candles.length,s=this.collectElements(i.body);let c=this.collectElements(i.wickHigh),d=this.collectElements(i.wickLow);if(c.length===0||d.length===0){const C=this.collectElements(i.wick);C.length>0&&(c.length===0&&(c=C),d.length===0&&(d=C))}const h=this.collectElements(i.open),y=this.collectElements(i.close),b=Array.from({length:o},()=>Mt.createEmptyElement()),S=Array.from({length:o},()=>Mt.createEmptyElement()),T=Array.from({length:o},()=>Mt.createEmptyElement());for(let C=0;C<o;C++){let M=this.getElementAt(h,C);if(!M){const k=this.getElementAt(s,C);if(k){const{open:z,close:L}=this.candles[C],B=L>z?"bottom":L<z?"top":"bottom";M=Mt.createLineElement(k,B)}else M=Mt.createEmptyElement()}b[C]=M;let _=this.getElementAt(y,C);if(!_){const k=this.getElementAt(s,C);if(k){const{open:z,close:L}=this.candles[C],B=L>z?"top":L<z?"bottom":"top";_=Mt.createLineElement(k,B)}else _=Mt.createEmptyElement()}S[C]=_,T[C]=Mt.createEmptyElement()}const w=Array.from({length:this.sections.length},()=>Array.from({length:o},()=>Mt.createEmptyElement()));for(let C=0;C<o;C++){const M=this.sortedSegmentsByPoint[C];for(let _=0;_<M.length;_++){const k=M[_];let z;switch(k){case"volatility":{const L=[],B=this.getElementAt(s,C),V=this.getElementAt(c,C)??B,U=this.getElementAt(d,C)??B;V&&L.push(V),B&&L.push(B),U&&L.push(U);const X=Array.from(new Set(L));z=X.length>0?X:[Mt.createEmptyElement()]}break;case"open":z=b[C];break;case"close":z=S[C];break;case"high":z=this.getElementAt(c,C)??this.getElementAt(s,C)??Mt.createEmptyElement();break;case"low":z=this.getElementAt(d,C)??this.getElementAt(s,C)??Mt.createEmptyElement();break;default:z=Mt.createEmptyElement()}w[_][C]=z}}return w}get text(){const n=this.candles[this.currentPointIndex],i=this.orientation===kt.HORIZONTAL;let o;return this.currentSegmentType==="volatility"?o=n.volatility:this.currentSegmentType?o=n[this.currentSegmentType]:o=n.open,{main:{label:i?this.yAxis:this.xAxis,value:n.value},cross:{label:i?this.xAxis:this.yAxis,value:o},section:this.currentSegmentType??"open",fill:{label:iB,value:n.trend},mainAxis:i?"y":"x",crossAxis:i?"x":"y"}}getCurrentTrend(){return this.candles[this.currentPointIndex].trend}getCurrentXValue(){return this.currentPointIndex>=0&&this.currentPointIndex<this.candles.length?this.candles[this.currentPointIndex].value:null}moveToXValue(n){const i=this.candles.findIndex(o=>o.value===n);return i!==-1?(this.currentPointIndex=i,this.currentSegmentType="close",this.updateVisualPointPosition(),this.updateVisualSegmentPosition(),this.notifyStateUpdate(),!0):!1}getAvailableXValues(){return this.candles.map(n=>n.value)}getExtremaTargets(){const n=[],i=this.currentSegmentType??"open";if(i==="volatility"){const o=this.candles.map((y,b)=>({value:y.volatility,index:b})),s=Math.max(...o.map(y=>y.value)),c=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),h=o.filter(y=>y.value===d).map(y=>y.index);c.forEach((y,b)=>{const S=this.candles[y];n.push({label:`Max Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"max",navigationType:"point"})}),h.forEach((y,b)=>{const S=this.candles[y];n.push({label:`Min Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"min",navigationType:"point"})})}else{const o=this.candles.map((y,b)=>({value:y[i],index:b,xValue:y.value})),s=Math.max(...o.map(y=>y.value)),c=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),h=o.filter(y=>y.value===d).map(y=>y.index);c.forEach((y,b)=>{const S=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Max ${T} at ${S.value}`,value:S[i],pointIndex:y,segment:i,type:"max",navigationType:"point"})}),h.forEach((y,b)=>{const S=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Min ${T} at ${S.value}`,value:S[i],pointIndex:y,segment:i,type:"min",navigationType:"point"})})}return n}navigateToExtrema(n){this.currentPointIndex=n.pointIndex,this.currentSegmentType=n.segment,this.finalizeExtremaNavigation()}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.candles.length)return!1;const s=this.currentSegmentType??"open",c=this.candles.map((b,S)=>({value:b[s],index:S,xValue:b.value})),d=this.col,h=n==="right"?1:-1;let y=d+h;for(;y>=0&&y<c.length;){if(this.compare(c[y].value,c[d].value,i))return this.col=y,this.currentPointIndex=y,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;y+=h}return this.notifyRotorBounds(),!1}moveUpRotor(){return this.moveOnce("UPWARD"),!0}moveDownRotor(){return this.moveOnce("DOWNWARD"),!0}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}get dimension(){const n=this.orientation===kt.HORIZONTAL;return{rows:n?this.candleValues.length:this.candleValues[this.row].length,cols:n?this.candleValues[this.row].length:this.candleValues.length}}}class lB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"heatmapValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"x");P(this,"y");P(this,"min");P(this,"max");const i=n.data;this.x=i.x,this.y=[...i.y].reverse(),this.heatmapValues=[...i.points].reverse();const{min:o,max:s}=Oi.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=s,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.heatmapValues)}get values(){return this.heatmapValues}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get audio(){return{freq:{min:this.min,max:this.max,raw:this.heatmapValues[this.row][this.col]},panning:{x:this.col,y:this.row,rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}}get braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){return{main:{label:this.xAxis,value:this.x[this.col]},cross:{label:this.yAxis,value:this.y[this.row]},fill:{label:this.fill,value:this.heatmapValues[this.row][this.col]}}}get dimension(){return{rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}mapToSvgElements(n){var d;if(!n)return null;const i=this.heatmapValues.length,o=this.heatmapValues[0].length,s=Mt.selectAllElements(n);if(s.length===0||s.length!==i*o)return null;const c=new Array;if(s[0]instanceof SVGPathElement)for(let h=0;h<i;h++){const y=i-1-h,b=new Array;for(let S=0;S<o;S++){const T=y*o+S;b.push(s[T])}c.push(b)}else if(s[0]instanceof SVGRectElement)if(((d=this.layer.domMapping)==null?void 0:d.order)==="row")for(let h=0;h<i;h++){const y=new Array;for(let b=0;b<o;b++){const S=h*o+b;y.push(s[S])}c.push(y)}else for(let h=0;h<i;h++){const y=new Array;for(let b=0;b<o;b++){const S=b*i+h;y.push(s[S])}c.push(y)}return c}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}moveToNextCompareValue(n,i){switch(n){case"left":case"right":return this.search_in_row(n,i);case"up":case"down":return this.search_in_col(n,i);default:return this.notifyRotorBounds(),!1}}search_in_row(n,i){const o=this.y.length,s=this.col,c=n==="left"?-1:1;let d=s+c;for(;d>=0&&d<o;){if(this.compare(this.heatmapValues[this.row][d],this.heatmapValues[this.row][s],i))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}search_in_col(n,i){const o=this.x.length,s=this.row,c=n==="up"?1:-1;let d=s+c;for(;d>=0&&d<o;){if(this.compare(this.heatmapValues[d][this.col],this.heatmapValues[s][this.col],i))return this.row=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return!1}moveUpRotor(n){return this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.moveToNextCompareValue("down",n)}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}}class sB extends qw{constructor(t){super(t,[t.data])}get text(){const t=this.orientation===kt.VERTICAL,n=this.points[this.row][this.col],i=t?n.xMin:n.yMin,o=t?n.xMax:n.yMax;return{...super.text,range:{min:i,max:o}}}moveToNextCompareValue(t,n){const i=this.row;if(i<0||i>=this.barValues.length)return!1;const o=this.barValues[i];if(!o||o.length===0)return!1;const s=this.col,c=t==="right"?1:-1;let d=s+c;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}}const BC="Group",Gw=/[ML]\s*(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g,jb=class jb extends jo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"rotorSupport",!0);P(this,"movable");P(this,"points");P(this,"lineValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"min");P(this,"max");P(this,"previousRow",null);P(this,"intersectionCache",new Map);this.points=n.data,this.lineValues=this.points.map(i=>i.map(o=>Number(o.y))),this.min=this.lineValues.map(i=>Oi.safeMin(i)),this.max=this.lineValues.map(i=>Oi.safeMax(i)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new eB(this.buildGraph())}get values(){return this.lineValues}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}buildGraph(){const n=this.points.length;if(n===0)return new Array;const i=Math.max(0,...this.points.map(s=>s.length)),o=this.points.map(s=>s.map(()=>({up:null,down:null,left:null,right:null,top:null,bottom:null,start:null,end:null})));for(let s=0;s<i;s++){const c=this.points.map((b,S)=>{var T;return{y:(T=b[s])==null?void 0:T.y,row:S}}).filter(b=>b.y!==void 0);if(c.length===0)continue;const d=[...c].sort((b,S)=>b.y-S.y),h={row:d[0].row,col:s},y={row:d[d.length-1].row,col:s};for(let b=0;b<d.length;b++){const{row:S}=d[b],T=o[S][s];T&&(b>0&&(T.down={row:d[b-1].row,col:s}),b<d.length-1&&(T.up={row:d[b+1].row,col:s}),T.bottom=h,T.top=y)}}for(let s=0;s<n;s++){const c=this.points[s].length>0?{row:s,col:0}:null,d=this.points[s].length>0?{row:s,col:this.points[s].length-1}:null;for(let h=0;h<this.points[s].length;h++){const y=o[s][h];y&&(h>0&&(y.left={row:s,col:h-1}),h<this.points[s].length-1&&(y.right={row:s,col:h+1}),y.start=c,y.end=d)}}return o}get audio(){return{freq:{min:this.min[this.row],max:this.max[this.row],raw:this.lineValues[this.row][this.col]},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:this.row}}get braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){var s;const n=this.points[this.row][this.col],i=this.findIntersections();let o={};if(i.length>1){let c=i.map(d=>{var y;const h=d.group;return((y=this.points[h][0])==null?void 0:y.fill)||`l${h+1}`});if(this.previousRow!==null){const d=((s=this.points[this.previousRow][0])==null?void 0:s.fill)||`l${this.previousRow+1}`;c.includes(d)&&(c=[d,...c.filter(h=>h!==d)])}o={fill:{label:BC,value:`intersection at (${c.join(", ")})`}}}else o=n.fill?{fill:{label:BC,value:n.fill}}:{};return{main:{label:this.xAxis,value:this.points[this.row][this.col].x},cross:{label:this.yAxis,value:this.points[this.row][this.col].y},...o}}get dimension(){return{rows:this.lineValues.length,cols:this.lineValues[this.row].length}}moveOnce(n){if(this.isInitialEntry)return this.movable.handleInitialEntry(),this.previousRow=null,this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.previousRow=this.row,n==="UPWARD"||n==="DOWNWARD"){const o=this.findLineByXAndYDirection(n),s=this.points[this.row][this.col].x;if(o!==null&&o!==this.row){const c=this.findColumnByXValue(o,s);if(c!==-1){this.row=o,this.col=c;const d=this.findIntersections();if(d.length>1){const y={...super.state,intersections:d};for(const b of this.observers)b.update(y)}else this.notifyStateUpdate();return!0}else return this.notifyOutOfBounds(),!1}else return this.notifyOutOfBounds(),!1}switch(n){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}const i=this.findIntersections();if(i.length>1){const s={...super.state,intersections:i};for(const c of this.observers)c.update(s)}else this.notifyStateUpdate();return!0}findIntersections(){const n=this.points[this.row][this.col].x,i=this.points[this.row][this.col].y,o=[];for(let s=0;s<this.points.length;s++)this.points[s].findIndex(d=>d.x===n&&d.y===i)!==-1&&o.push({freq:{min:this.min[s],max:this.max[s],raw:i},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:s});return o}isMovable(n){if(Array.isArray(n)){const[i,o]=n;return i>=0&&i<this.values.length&&o>=0&&o<this.values[i].length}switch(n){case"UPWARD":case"DOWNWARD":{const i=this.findLineByXAndYDirection(n);if(i===null)return!1;const o=this.points[this.row][this.col].x;return this.findColumnByXValue(i,o)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const i=this.points[this.row][this.col].x;let o=null,s=Number.POSITIVE_INFINITY;for(let c=0;c<this.points.length;c++){if(c===this.row)continue;const d=this.points[c].findIndex(S=>S.x===i);if(d===-1)continue;const h=this.points[c][d].y,y=n==="UPWARD"?h>this.points[this.row][this.col].y:h<this.points[this.row][this.col].y,b=Math.abs(h-this.points[this.row][this.col].y);y&&b<s&&(s=b,o=c)}return o}findColumnByXValue(n,i){return this.points[n].findIndex(o=>o.x===i)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const i=[];let o=!0;for(let s=0;s<n.length;s++){const c=Mt.selectElement(n[s],!1);if(!c){i.push([]);continue}const d=[];if(c instanceof SVGPathElement){const b=c.getAttribute(me.D)||me.EMPTY;Gw.lastIndex=0;let S=Gw.exec(b);for(;S!==null;)d.push({x:Number.parseFloat(S[1]),y:Number.parseFloat(S[2])}),S=Gw.exec(b)}else if(c instanceof SVGPolylineElement){const S=(c.getAttribute(me.POINTS)||me.EMPTY).split(/\s+/).filter(Boolean);for(const T of S){const[w,C]=T.split(me.COMMA);d.push({x:Number.parseFloat(w),y:Number.parseFloat(C)})}}if(d.length!==this.lineValues[s].length)if(d.length<this.lineValues[s].length)for(;d.length<this.lineValues[s].length;)d.push({x:Number.NaN,y:Number.NaN});else d.length>this.lineValues[s].length&&(d.length=this.lineValues[s].length);const h=[];let y=!1;for(const b of d){if(Number.isNaN(b.x)||Number.isNaN(b.y)){y=!0;break}h.push(Mt.createCircleElement(b.x,b.y,c))}if(y){i.push([]);continue}h.length>0&&(o=!1),i.push(h)}return o?null:i}get state(){const n=super.state;if(n.empty)return n;const i=this.points.length>1,o={...n,plotType:i?"multiline":"single line",...i&&{groupCount:this.points.length}},s=this.findIntersections();return s.length>1?{...o,intersections:s}:o}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getSegmentIntersection(n,i,o,s){const c=n.x,d=n.y,h=i.x,y=i.y,b=o.x,S=o.y,T=s.x,w=s.y,C=(c-h)*(S-w)-(d-y)*(b-T);if(Math.abs(C)<1e-10)return null;const M=((c-b)*(S-w)-(d-S)*(b-T))/C,_=-((c-h)*(d-S)-(d-y)*(c-b))/C;if(M>=0&&M<=1&&_>=0&&_<=1){const k=c+M*(h-c),z=d+M*(y-d);return{x:k,y:z}}return null}findAllIntersectionsForCurrentLine(){const n=this.row;if(this.intersectionCache.has(n))return this.intersectionCache.get(n);if(n<0||n>=this.points.length)return[];if(this.points.length<=1)return[];const i=this.points[n];if(i.length<2)return[];const o=[];for(let d=0;d<i.length-1;d++){const h=i[d],y=i[d+1],b={x:Number(h.x),y:Number(h.y)},S={x:Number(y.x),y:Number(y.y)};for(let T=0;T<this.points.length;T++){if(T===n)continue;const w=this.points[T];if(!(w.length<2))for(let C=0;C<w.length-1;C++){const M=w[C],_=w[C+1],k={x:Number(M.x),y:Number(M.y)},z={x:Number(_.x),y:Number(_.y)},L=this.getSegmentIntersection(b,S,k,z);if(L){const B=Math.hypot(L.x-b.x,L.y-b.y),V=Math.hypot(L.x-S.x,L.y-S.y),U=B<=V?d:d+1;o.push({pointIndex:U,x:L.x,y:L.y,otherLine:T})}}}}const s=[];for(const d of o){const h=s.find(y=>Math.abs(y.x-d.x)<jb.INTERSECTION_EPSILON&&Math.abs(y.y-d.y)<jb.INTERSECTION_EPSILON);if(h)h.intersectingLines.add(d.otherLine);else{const y=new Set;y.add(d.otherLine),s.push({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:y})}}const c=s.map(d=>({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:Array.from(d.intersectingLines).sort((h,y)=>h-y)})).sort((d,h)=>d.x-h.x);return this.intersectionCache.set(n,c),c}getIntersectionLabel(n){return n.map(i=>{const o=this.points[i][0];return(o==null?void 0:o.fill)||`Line ${i+1}`}).join(", ")}getExtremaTargets(){const n=[],i=this.row;if(i<0||i>=this.lineValues.length)return n;const o=this.lineValues[i];if(!o||o.length===0)return n;const s=this.min[i],c=this.max[i],d=[],h=[];for(let b=0;b<o.length;b++){const S=o[b];S===c&&d.push(b),S===s&&h.push(b)}for(const b of d)n.push({label:`Max point at ${this.getPointLabel(b)}`,value:c,pointIndex:b,segment:"line",type:"max",navigationType:"point"});for(const b of h)n.push({label:`Min point at ${this.getPointLabel(b)}`,value:s,pointIndex:b,segment:"line",type:"min",navigationType:"point"});const y=this.findAllIntersectionsForCurrentLine();for(const b of y){const S=this.getIntersectionLabel(b.intersectingLines),T=`x=${b.x.toFixed(2)}, y=${b.y.toFixed(2)}`;n.push({label:`Intersection at ${T}`,value:b.y,pointIndex:b.pointIndex,segment:"intersection",type:"intersection",navigationType:"point",intersectingLines:b.intersectingLines,display:{coords:T,otherLines:S}})}return n}navigateToExtrema(n){this.col=n.pointIndex,this.finalizeExtremaNavigation()}getPointLabel(n){return this.points[this.row]&&this.points[this.row][n]?`${this.points[this.row][n].x}`:`Point ${n}`}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}getAvailableXValues(){return this.points[this.row].map(n=>n.x)}moveToXValue(n){return this.isInitialEntry&&this.movable.handleInitialEntry(),super.moveToXValue(n)}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.lineValues.length)return!1;const s=this.lineValues[o];if(!s||s.length===0)return!1;const c=this.col,d=n==="right"?1:-1;let h=c+d;for(;h>=0&&h<s.length;){if(this.compare(s[h],s[c],i))return this.col=h,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}compare(n,i,o){return o==="lower"?n<i:o==="higher"?n>i:!1}moveUpRotor(n){return this.moveOnce("UPWARD"),!0}moveDownRotor(n){return this.moveOnce("DOWNWARD"),!0}};P(jb,"INTERSECTION_EPSILON",1e-6);let P5=jb;class uB extends jo{constructor(n){super(n);P(this,"mode");P(this,"movable");P(this,"supportsExtrema",!1);P(this,"xPoints");P(this,"yPoints");P(this,"xValues");P(this,"yValues");P(this,"highlightXValues");P(this,"highlightYValues");P(this,"highlightCenters");P(this,"minX");P(this,"maxX");P(this,"minY");P(this,"maxY");this.mode="col";const i=n.data,o=[...i].sort((h,y)=>h.x-y.x||h.y-y.y);this.xPoints=new Array;let s=null;for(const h of o)(!s||s.x!==h.x)&&(s={x:h.x,y:[]},this.xPoints.push(s)),s.y.push(h.y);const c=[...i].sort((h,y)=>h.y-y.y||h.x-y.x);this.yPoints=new Array;let d=null;for(const h of c)(!d||d.y!==h.y)&&(d={y:h.y,x:[]},this.yPoints.push(d)),d.x.push(h.x);this.xValues=this.xPoints.map(h=>h.x),this.yValues=this.yPoints.map(h=>h.y),this.minX=Oi.safeMin(this.xValues),this.maxX=Oi.safeMax(this.xValues),this.minY=Oi.safeMin(this.yValues),this.maxY=Oi.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new tB(this.xPoints,this.yPoints)}dispose(){this.movable.dispose(),this.xPoints.length=0,this.yPoints.length=0,this.highlightXValues&&(this.highlightXValues.forEach(n=>n.forEach(i=>i.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(i=>i.remove())),this.highlightYValues.length=0),super.dispose()}get highlightValues(){return this.mode==="col"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}get values(){const n=[this.xValues,this.yValues];return this.mode==="col"?this.row!==0&&(this.row=0):(this.row<0||this.row>=this.yPoints.length)&&(this.row=0),n}get braille(){return{empty:!1,id:this.id,values:this.values,min:0,max:0,row:this.row,col:this.col}}get audio(){if(this.mode==="col"){const n=this.xPoints[this.col];return{freq:{raw:n.y,min:this.minY,max:this.maxY},panning:{y:this.row,x:this.col,rows:n.y.length,cols:this.xPoints.length}}}else{const n=this.yPoints[this.row];return{freq:{raw:n.x,min:this.minX,max:this.maxX},panning:{y:this.row,x:this.col,rows:this.yPoints.length,cols:n.x.length}}}}get text(){if(this.mode==="col"){const n=this.xPoints[this.col];return{main:{label:this.xAxis,value:n.x},cross:{label:this.yAxis,value:n.y}}}else{const n=this.yPoints[this.row];return{main:{label:this.yAxis,value:n.y},cross:{label:this.xAxis,value:n.x}}}}get dimension(){return{rows:this.yPoints.length,cols:this.xPoints.length}}get highlight(){if(this.highlightValues===null)return this.outOfBoundsState;const n=this.mode==="col"?this.col<this.highlightValues.length?this.highlightValues[this.col]:null:this.row<this.highlightValues.length?this.highlightValues[this.row]:null;return n?{empty:!1,elements:n}:this.outOfBoundsState}get hasMultiPoints(){return!0}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="col"}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],i=n.y[Math.floor(n.y.length/2)],o=this.yValues.indexOf(i);o===-1||o>=this.yPoints.length?this.row=0:this.row=o,this.mode="row"}else{const n=this.yPoints[this.row],i=n.x[Math.floor(n.x.length/2)],o=this.xValues.indexOf(i);o===-1||o>=this.xPoints.length?this.col=0:this.col=o,this.mode="col",this.row=0}}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.mode==="col")switch(n){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(n){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}return this.notifyStateUpdate(),!0}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="col")switch(n){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}return this.notifyStateUpdate(),!0}moveToIndex(n,i){return this.mode==="col"?n>=0&&n<this.xPoints.length?(this.col=n,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1):i>=0&&i<this.yPoints.length?(this.col=i,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1)}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="col")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0;default:return!1}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0;default:return!1}}mapToSvgElements(n){if(!n)return[null,null];const i=Mt.selectAllElements(n);if(i.length===0)return[null,null];const o=new Map,s=new Map;i.forEach(h=>{const y=Number.parseFloat(h.getAttribute("x")||""),b=Number.parseFloat(h.getAttribute("y")||"");Number.isNaN(y)||(o.has(y)||o.set(y,[]),o.get(y).push(h)),Number.isNaN(b)||(s.has(b)||s.set(b,[]),s.get(b).push(h))});const c=Array.from(o.entries()).sort(([h],[y])=>h-y).map(([h,y])=>y),d=Array.from(s.entries()).sort(([h],[y])=>y-h).map(([h,y])=>y);return[c,d]}mapSvgElementsToCenters(){const n=this.highlightXValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){this.mode="col";const o=this.findNearestPoint(n,i);if(o&&this.isPointInBounds(n,i,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}}const jC="Sum",cB="Level",fB="undefined";class dB extends qw{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,n=new Array;for(let s=0;s<this.barValues[0].length;s++){const c=this.barValues.reduce((h,y)=>h+y[s],0);t.push(c);const d=this.orientation===kt.VERTICAL?{x:this.points[0][s].x,y:c,fill:jC}:{x:c,y:this.points[0][s].y,fill:jC};n.push(d)}this.points.push(n),this.barValues.push(t);const{min:i,max:o}=Oi.minMax(t);this.min.push(i),this.max.push(o)}getExtremaTargets(){const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const i=this.min[n],o=this.max[n],s=this.barValues[n];if(!s||s.length===0)return t;const c=s.indexOf(o),d=s.indexOf(i),h=this.getGroupLabel(n),y=this.getCategoryLabel(c),b=this.getCategoryLabel(d);return t.push({label:`Max ${h} at ${y}`,value:o,pointIndex:c,segment:h,type:"max",groupIndex:n,categoryIndex:c,navigationType:"group"}),t.push({label:`Min ${h} at ${b}`,value:i,pointIndex:d,segment:h,type:"min",groupIndex:n,categoryIndex:d,navigationType:"group"}),t}navigateToExtrema(t){t.groupIndex!==void 0&&t.categoryIndex!==void 0?(this.row=t.groupIndex,this.col=t.categoryIndex):this.col=t.pointIndex,this.finalizeExtremaNavigation()}getGroupLabel(t){if(this.points[t]&&this.points[t].length>0){const n=this.points[t][0];if(t===this.barValues.length-1)return"Total";if(n.fill)return`${this.getFillAxisLabel()}: '${n.fill}'`}return`Group ${t}`}getCategoryLabel(t){if(this.points[0]&&this.points[0][t]){const n=this.points[0][t];return this.orientation===kt.VERTICAL?`${n.x}`:`${n.y}`}return`Category ${t}`}getFillAxisLabel(){return"Category"}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}get text(){return{...super.text,fill:{label:cB,value:this.points[this.row][this.col].fill??fB}}}get highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?this.outOfBoundsState:{empty:!1,elements:this.highlightValues[this.row][this.col]}}mapToSvgElements(t){var o;if(!t)return new Array;const n=Mt.selectAllElements(t);if(n.length===0)return new Array;const i=new Array;if(n[0]instanceof SVGPathElement)for(let s=0,c=0;s<this.barValues.length;s++){const d=new Array;for(let h=0;h<this.barValues[s].length;h++){if(c>=n.length)return new Array;this.barValues[s][h]===0?d.push(Mt.createEmptyElement()):d.push(n[c++])}i.push(d)}else if(n[0]instanceof SVGRectElement){for(let c=0;c<this.barValues.length;c++)i.push(new Array);const s=((o=this.layer.domMapping)==null?void 0:o.groupDirection)==="forward";for(let c=0,d=0;c<this.barValues[0].length;c++)if(s)for(let h=0;h<this.barValues.length;h++){if(d>=n.length)return new Array;this.barValues[h][c]===0?i[h].push(Mt.createEmptyElement()):i[h].push(n[d++])}else for(let h=this.barValues.length-1;h>=0;h--){if(d>=n.length)return new Array;this.barValues[h][c]===0?i[h].push(Mt.createEmptyElement()):i[h].push(n[d++])}}return i}}class PC extends P5{constructor(t){super(t)}get state(){const t=super.state;return t.empty?t:{...t,plotType:"smooth"}}get audio(){const t=this.lineValues[this.row],n=c=>t[Math.max(0,Math.min(c,t.length-1))],i=n(this.col-1),o=n(this.col),s=n(this.col+1);return{freq:{min:this.min[this.row],max:this.max[this.row],raw:[i,o,s]},panning:{y:this.row,x:this.col,rows:this.lineValues.length,cols:this.lineValues[this.row].length},isContinuous:!0}}}class hB extends PC{constructor(t){super(t)}mapToSvgElements(t){var o;if(!t||t.length!==this.lineValues.length)return null;const n=[];let i=!0;for(let s=0;s<t.length;s++){const c=Mt.selectElement(t[s],!1);if(!c){n.push([]);continue}const d=(o=this.points)==null?void 0:o[s],h=[];for(const y of d)typeof y.svg_x=="number"&&typeof y.svg_y=="number"&&h.push(Mt.createCircleElement(y.svg_x,y.svg_y,c));h.length>0&&(i=!1),n.push(h)}return i?null:n}}function pB(e){return typeof e=="object"&&e!==null&&"svg_x"in e&&"svg_y"in e&&typeof e.svg_x=="number"&&typeof e.svg_y=="number"}function mB(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&pB(e.data[0][0])?new hB(e):new PC(e)}const Fw=.001;class gB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"orientation");P(this,"points");P(this,"densityValues");P(this,"yValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"minDensity");P(this,"maxDensity");P(this,"refSafeMin");P(this,"refSafeMax");P(this,"refHasPositive");this.orientation=n.orientation??kt.VERTICAL,this.orientation===kt.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data,this.densityValues=this.points.map(s=>s.map(c=>c.density??c.width??0)),this.yValues=this.points.map(s=>s.map(c=>Number(c.y))),this.minDensity=this.densityValues.map(s=>Oi.safeMin(s.filter(c=>c>0))),this.maxDensity=this.densityValues.map(s=>Oi.safeMax(s));const i=this.densityValues[0];if(i&&i.length>0&&this.minDensity[0]>0){this.refHasPositive=!0;const s=this.minDensity[0],c=this.maxDensity[0];this.refSafeMin=s===c?Math.max(0,s-Fw):s,this.refSafeMax=s===c?c+Fw:c}else this.refHasPositive=!1,this.refSafeMin=0,this.refSafeMax=1;const o=this.orientation===kt.HORIZONTAL?[...n.selectors].reverse():n.selectors;this.highlightValues=this.mapToSvgElements(o),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.points,{row:0})}dispose(){this.points.length=0,this.densityValues.length=0,this.yValues.length=0,this.minDensity.length=0,this.maxDensity.length=0,super.dispose()}get values(){return this.densityValues}get dimension(){var n;return{rows:this.points.length,cols:((n=this.points[this.row])==null?void 0:n.length)??0}}isMovable(n){var o,s,c;if(Array.isArray(n)){const[d,h]=n;return d>=0&&d<this.points.length&&h>=0&&h<(((o=this.points[d])==null?void 0:o.length)??0)}if(this.orientation===kt.HORIZONTAL)switch(n){case"UPWARD":return this.row<this.points.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<(((s=this.points[this.row])==null?void 0:s.length)??0)-1;case"BACKWARD":return this.col>0}switch(n){case"FORWARD":return this.row<this.points.length-1;case"BACKWARD":return this.row>0;case"UPWARD":return this.col<(((c=this.points[this.row])==null?void 0:c.length)??0)-1;case"DOWNWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.orientation===kt.HORIZONTAL)switch(n){case"UPWARD":return this.row+=1,this.col=0,this.notifyStateUpdate(),!0;case"DOWNWARD":return this.row-=1,this.col=0,this.notifyStateUpdate(),!0;case"FORWARD":return this.col+=1,this.notifyStateUpdate(),!0;case"BACKWARD":return this.col-=1,this.notifyStateUpdate(),!0}switch(n){case"FORWARD":return this.row+=1,this.col=0,this.notifyStateUpdate(),!0;case"BACKWARD":return this.row-=1,this.col=0,this.notifyStateUpdate(),!0;case"UPWARD":return this.col+=1,this.notifyStateUpdate(),!0;case"DOWNWARD":return this.col-=1,this.notifyStateUpdate(),!0}}moveToExtreme(n){var o,s;if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(this.orientation===kt.HORIZONTAL)switch(n){case"UPWARD":this.row=this.points.length-1,this.col=0;break;case"DOWNWARD":this.row=0,this.col=0;break;case"FORWARD":this.col=(((o=this.points[this.row])==null?void 0:o.length)??1)-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"FORWARD":this.row=this.points.length-1,this.col=0;break;case"BACKWARD":this.row=0,this.col=0;break;case"UPWARD":this.col=(((s=this.points[this.row])==null?void 0:s.length)??1)-1;break;case"DOWNWARD":this.col=0;break}return this.notifyStateUpdate(),!0}get audio(){var w;const n=this.orientation===kt.HORIZONTAL,i=((w=this.points[this.row])==null?void 0:w.length)??0,o=n?{x:this.col,y:this.row,rows:this.points.length,cols:i}:{y:this.row,x:this.col,rows:this.points.length,cols:i};if(!this.refHasPositive)return{freq:{min:0,max:1,raw:0},panning:o};const s=this.densityValues[0],c=Math.min(this.col,s.length-1),d=C=>s[Math.max(0,Math.min(C,s.length-1))],h=c>0?d(c-1):d(c),y=d(c),b=c<s.length-1?d(c+1):d(c);let S=1;const T=this.densityValues[this.row];if(T&&T.length>0){const C=Math.min(this.col,T.length-1),M=T[C],_=this.maxDensity[this.row];if(_>0&&M>0){const z=this.minDensity[this.row]===_?_+Fw:_;S=M/z}}return{freq:{min:this.refSafeMin,max:this.refSafeMax,raw:[h,y,b]},panning:o,isContinuous:!0,volumeScale:S}}get autoplay(){return this.orientation===kt.HORIZONTAL?{UPWARD:this.dimension.rows,DOWNWARD:this.dimension.rows,FORWARD:this.dimension.cols,BACKWARD:this.dimension.cols}:{UPWARD:this.dimension.cols,DOWNWARD:this.dimension.cols,FORWARD:this.dimension.rows,BACKWARD:this.dimension.rows}}get text(){const n=this.points[this.row][this.col],i=y=>Math.round(y*1e4)/1e4,o=this.orientation===kt.HORIZONTAL;let s;if(typeof n.x=="string")s=n.x;else{const y=this.points[this.row][0];s=typeof(y==null?void 0:y.x)=="string"?y.x:`Violin ${this.row+1}`}const c=i(Number(n.y)),d={main:{label:o?this.yAxis:this.xAxis,value:s},cross:{label:o?this.xAxis:this.yAxis,value:c},mainAxis:o?"y":"x",crossAxis:o?"x":"y"},h=n.width!==void 0&&n.width>0?i(n.width):void 0;return h!==void 0&&(d.fill={label:"volume",value:String(h)}),d}get braille(){return{empty:!1,id:this.id,values:this.densityValues,min:this.minDensity,max:this.maxDensity,row:this.row,col:this.col}}getCurrentXValue(){return this.row>=0&&this.row<this.points.length?this.row:null}moveToXValue(n){var s;if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const i=Math.floor(n);if(i<0||i>=this.points.length)return!1;const o=this.row;if(this.row=i,i!==o)this.col=0;else{const c=(s=this.points[i])!=null&&s.length?this.points[i].length-1:0;this.col=Math.min(this.col,c)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const n=this.yValues[this.row];return!n||n.length===0?null:this.col>=0&&this.col<n.length?n[this.col]:null}moveToXAndYValue(n,i){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const o=Math.floor(n);if(o<0||o>=this.yValues.length)return!1;this.row=o;const s=this.yValues[this.row];if(!s||s.length===0)return this.col=0,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;let c=0,d=Math.abs(s[0]-i);for(let h=1;h<s.length;h++){const y=Math.abs(s[h]-i);y<d&&(d=y,c=h)}return this.col=c,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length===0)return null;const i=[];let o=!0;const s=n.length===this.points.length;for(let c=0;c<this.points.length;c++){const d=[],h=this.points[c],y=s?n[c]:n[0];if(!y){i.push([]);continue}const b=Mt.selectAllElements(y,!1),S=b.filter(_=>_ instanceof SVGUseElement),T=b.filter(_=>_ instanceof SVGPathElement),w=b.filter(_=>_ instanceof SVGPolygonElement),C=S.length>0?S:T.length>0?T:w,M=C.length>0?C[s?0:c<C.length?c:0]:null;if(M&&h){for(const _ of h){const k=_.svg_x,z=_.svg_y;k!==void 0&&z!==void 0&&!Number.isNaN(k)&&!Number.isNaN(z)&&d.push(Mt.createCircleElement(k,z,M))}d.length>0&&(o=!1)}i.push(d)}return o?null:i}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let i=0;i<this.highlightValues.length;i++)for(let o=0;o<this.highlightValues[i].length;o++){const s=this.highlightValues[i][o];if(s){const c=s.getBoundingClientRect();n.push({x:c.x+c.width/2,y:c.y+c.height/2,row:i,col:o,element:s})}}return n}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}}class yB extends jo{constructor(n){var d;super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"points");P(this,"boxValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"sections");P(this,"violinOptions");P(this,"min");P(this,"max");P(this,"minSectionIndex");this.violinOptions=n.violinOptions??{},this.orientation=n.orientation??kt.VERTICAL,this.orientation===kt.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:i,accessors:o}=this.buildViolinSections();this.sections=i,this.boxValues=this.computeBoxValues(o);const s=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=Oi.minFrom2D(s),this.max=Oi.maxFrom2D(s),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===kt.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.boxValues,{row:0});const c=this.sections.indexOf(aa.MIN);this.minSectionIndex=c>=0?c:0}buildViolinSections(){const n=[aa.MIN],i=[o=>o.min];return n.push(aa.Q1),i.push(o=>o.q1),this.violinOptions.showMedian!==!1&&(n.push(aa.Q2),i.push(o=>o.q2)),this.violinOptions.showMean===!0&&(n.push(aa.MEAN),i.push(o=>o.mean??Number.NaN)),n.push(aa.Q3),i.push(o=>o.q3),this.violinOptions.showExtrema!==!1&&(n.push(aa.MAX),i.push(o=>o.max)),{sections:n,accessors:i}}computeBoxValues(n){return this.orientation===kt.HORIZONTAL?this.points.map(i=>n.map(o=>o(i))):n.map(i=>this.points.map(o=>i(o)))}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}get values(){return this.boxValues}get dimension(){var i,o;const n=this.orientation===kt.HORIZONTAL;return{rows:n?this.boxValues.length:((i=this.boxValues[this.row])==null?void 0:i.length)??0,cols:n?((o=this.boxValues[this.row])==null?void 0:o.length)??0:this.boxValues.length}}handleInitialEntry(){var i;this.isInitialEntry=!1;const n=this.minSectionIndex;this.orientation===kt.VERTICAL?(this.row=Math.min(n,this.boxValues.length-1),this.col=0):(this.row=0,this.col=Math.min(n,((i=this.boxValues[0])==null?void 0:i.length)??1))}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;const i=this.minSectionIndex;if(this.orientation===kt.VERTICAL)if(n==="FORWARD")this.col+=1,this.row=i;else if(n==="BACKWARD")this.col-=1,this.row=i;else return super.moveOnce(n);else if(n==="UPWARD")this.row+=1,this.col=i;else if(n==="DOWNWARD")this.row-=1,this.col=i;else return super.moveOnce(n);return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}get audio(){const n=this.orientation===kt.HORIZONTAL,i=this.boxValues[this.row][this.col],o=n?this.col:this.row,s=Array.isArray(i)?i.length===0?o:i[i.length-1]-this.min:Number.isNaN(i)?o:i-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?s:this.row,y:n?this.row:s,rows:n?this.boxValues.length:this.max-this.min,cols:n?this.max-this.min:this.boxValues.length}}}get text(){const n=this.orientation===kt.HORIZONTAL,i=n?this.points[this.row]:this.points[this.col],o=n?this.yAxis:this.xAxis,s=n?this.sections[this.col]:this.sections[this.row],c=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:c,value:d},section:s,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get braille(){const n=this.orientation===kt.HORIZONTAL,i=n?this.row:this.col,o=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:i,col:o}}getCurrentXValue(){return this.orientation===kt.VERTICAL?this.col>=0?this.col:null:this.row>=0?this.row:null}moveToXValue(n){if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const i=Math.floor(n),o=this.values,s=this.minSectionIndex;if(this.orientation===kt.VERTICAL){const c=o.length>0?o[0].length:0;if(i<0||i>=c)return!1;const d=this.col;this.col=i,i!==d&&(this.row=s)}else{if(i<0||i>=o.length)return!1;const c=this.row;this.row=i,i!==c&&(this.col=s)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const n=this.values;if(this.orientation===kt.VERTICAL){if(this.row>=0&&this.row<n.length&&this.col>=0){const i=n[this.row];if(Array.isArray(i)&&this.col<i.length){const o=i[this.col];return Array.isArray(o)?o.length>0?o[0]:null:typeof o=="number"?o:null}}}else if(this.row>=0&&this.row<n.length&&this.col>=0){const i=n[this.row];if(Array.isArray(i)&&this.col<i.length){const o=i[this.col];return Array.isArray(o)?o.length>0?o[0]:null:typeof o=="number"?o:null}}return null}moveToXAndYValue(n,i){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const o=Math.floor(n),s=this.values,c=this.minSectionIndex;if(this.orientation===kt.VERTICAL){const d=s.length>0?s[0].length:0;if(o<0||o>=d)return!1;this.col=o;let h=c,y=1/0;for(let b=0;b<s.length;b++){const S=s[b];if(Array.isArray(S)&&o<S.length){const T=S[o];if(Array.isArray(T)){for(const w of T)if(typeof w=="number"){const C=Math.abs(w-i);C<y&&(y=C,h=b)}}else if(typeof T=="number"){const w=Math.abs(T-i);w<y&&(y=w,h=b)}}}this.row=h}else{if(o<0||o>=s.length)return!1;this.row=o;let d=c,h=1/0;const y=s[o];if(Array.isArray(y))for(let b=0;b<y.length;b++){const S=y[b];if(Array.isArray(S)){for(const T of S)if(typeof T=="number"){const w=Math.abs(T-i);w<h&&(h=w,d=b)}}else if(typeof S=="number"){const T=Math.abs(S-i);T<h&&(h=T,d=b)}}this.col=d}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const i=this.orientation===kt.VERTICAL,o=new Array;if(i)for(let c=0;c<this.sections.length;c++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(c=>{const d=Mt.selectElement(c.min,!1),h=Mt.selectElement(c.max,!1),y=Mt.selectElement(c.iq,!1),b=Mt.selectElement(c.q2,!1),S=c.mean?Mt.selectElement(c.mean,!1):null;s.push({min:d,max:h,iq:y,q2:b,mean:S})}),s.forEach((c,d)=>{var _;const h=this.cloneElementOrEmpty(c.min),y=this.cloneElementOrEmpty(c.max),b=this.cloneElementOrEmpty(c.q2),S=this.cloneElementOrEmpty(c.mean),T=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse",[w,C]=c.iq?i?T?[Mt.createLineElement(c.iq,"top"),Mt.createLineElement(c.iq,"bottom")]:[Mt.createLineElement(c.iq,"bottom"),Mt.createLineElement(c.iq,"top")]:[Mt.createLineElement(c.iq,"left"),Mt.createLineElement(c.iq,"right")]:[Mt.createEmptyElement("line"),Mt.createEmptyElement("line")],M=[];M.push(h),M.push(w),this.violinOptions.showMedian!==!1&&M.push(b),this.violinOptions.showMean===!0&&M.push(S),M.push(C),this.violinOptions.showExtrema!==!1&&M.push(y),i?M.forEach((k,z)=>{o[z][d]=k}):o.push(M)}),o}cloneElementOrEmpty(n){if(!n)return Mt.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(me.VISIBILITY,me.HIDDEN),n.insertAdjacentElement(me.AFTER_END,i),i}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let i=0;i<this.highlightValues.length;i++)for(let o=0;o<this.highlightValues[i].length;o++){const s=this.highlightValues[i][o],c=Array.isArray(s)?s[0]:s;if(c){const d=c.getBoundingClientRect();n.push({x:d.x+d.width/2,y:d.y+d.height/2,row:i,col:o,element:c})}}return n}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}}class vB{static create(t){switch(t.type){case Rn.BAR:return new nB(t);case Rn.BOX:return new rB(t);case Rn.CANDLESTICK:return new oB(t);case Rn.HEATMAP:return new lB(t);case Rn.HISTOGRAM:return new sB(t);case Rn.LINE:return new P5(t);case Rn.SCATTER:return new uB(t);case Rn.SMOOTH:return mB(t);case Rn.DODGED:case Rn.NORMALIZED:case Rn.STACKED:return new dB(t);case Rn.VIOLIN_KDE:return new gB(t);case Rn.VIOLIN_BOX:return new yB(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const bB="MAIDR Plot",xB="unavailable",SB="unavailable";class EB extends $w{constructor(n){super();P(this,"id");P(this,"movable");P(this,"title");P(this,"subtitle");P(this,"caption");P(this,"subplots");P(this,"size");P(this,"visualOrderMap");P(this,"invertVertical");P(this,"totalAxesCount");this.id=n.id,this.title=n.title??bB,this.subtitle=n.subtitle??xB,this.caption=n.caption??SB;const i=n.subplots;this.subplots=i.map(o=>o.map(s=>new wB(s))),this.size=this.subplots.reduce((o,s)=>o+s.length,0),this.visualOrderMap=new Map,this.invertVertical=!1,this.totalAxesCount=0,this.movable=new Wc(this.subplots)}get dimension(){return{rows:this.subplots.length,cols:this.subplots[this.row].length}}applyLayout(n){this.visualOrderMap=n.visualOrderMap,this.invertVertical=n.invertVertical,this.totalAxesCount=n.totalAxesCount;for(let i=0;i<this.subplots.length;i++)for(let o=0;o<this.subplots[i].length;o++){const s=n.axesElements.get(`${i},${o}`)??null;this.subplots[i][o].setAxesElement(s)}this.movable=new Wc(this.subplots,{row:n.topLeftRow})}moveOnce(n){return super.moveOnce(this.adjustDirection(n))}moveToExtreme(n){return super.moveToExtreme(this.adjustDirection(n))}adjustDirection(n){if(!this.invertVertical)return n;switch(n){case"UPWARD":return"DOWNWARD";case"DOWNWARD":return"UPWARD";default:return n}}dispose(){this.subplots.forEach(n=>n.forEach(i=>i.dispose())),this.subplots.length=0,super.dispose()}get values(){return this.subplots}get activeSubplot(){return this.subplots[this.row][this.col]}get state(){if(this.isOutOfBounds)return{empty:!0,type:"figure"};const n=`${this.row},${this.col}`,i=this.visualOrderMap.get(n);i===void 0&&console.warn(`[Figure] Visual order map missing key "${n}". Was applyLayout() called?`);const o=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:i??1,subplot:o.getStateWithFigurePosition(this.row,this.col),traceTypes:o.traceTypes,highlight:this.highlight}}get highlight(){if(this.totalAxesCount<=1)return{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.subplots.length,cols:this.subplots[this.row].length}};const n=this.activeSubplot.axesElement;return n?{empty:!1,elements:n}:{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.subplots.length,cols:this.subplots[this.row].length}}}moveToPoint(n,i){this.notifyStateUpdate()}get outOfBoundsState(){return{empty:!0,type:"figure"}}}class wB extends $w{constructor(n){var c;super();P(this,"movable");P(this,"traces");P(this,"traceTypes");P(this,"size");P(this,"highlightValue");P(this,"isViolinPlot");P(this,"layerSelector");P(this,"_axesElement",null);const i=n.layers;this.size=i.length;const o=(c=i[0])==null?void 0:c.selectors;this.layerSelector=typeof o=="string"?o:Array.isArray(o)&&typeof o[0]=="string"?o[0]:null;const s=i.map(d=>d.type);this.isViolinPlot=s.includes(Rn.VIOLIN_KDE)||s.includes(Rn.VIOLIN_BOX),this.traces=i.map(d=>[vB.create(d)]),this.traceTypes=this.traces.flat().map(d=>{const h=d.state;return h.empty?me.EMPTY:h.traceType}),this.highlightValue=this.mapToSvgElement(n.selector),this.movable=new Wc(this.traces)}get dimension(){return{rows:this.values.length,cols:this.values[this.row].length}}dispose(){this.traces.forEach(n=>n.forEach(i=>i.dispose())),this.traces.length=0,super.dispose()}getRow(){return this.row}getSize(){return this.size}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}moveOnce(n){return this.size>1&&this.isInitialEntry&&(this.isInitialEntry=!1),super.moveOnce(n)}get state(){return{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state,highlight:this.highlight}}get outOfBoundsState(){return{empty:!0,type:"subplot"}}get highlight(){return this.highlightValue===null?{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.values.length,cols:this.values[this.row].length}}:{empty:!1,elements:this.highlightValue}}moveToPoint(n,i){this.notifyStateUpdate()}getStateWithFigurePosition(n,i){return this.state}getHighlightElement(){return this.highlightValue}getLayerSelector(){return this.layerSelector}get axesElement(){return this._axesElement}setAxesElement(n){this._axesElement=n}mapToSvgElement(n){return n?Mt.selectElement(n)??null:null}}const ja={SINE_BASIC:0,SQUARE_BASIC:1,SAWTOOTH_BASIC:2,TRIANGLE_BASIC:3,SAWTOOTH_DARK:4,SINE_HARMONIC:5,TRIANGLE_HARMONIC:6,SQUARE_HARMONIC:7,TRIANGLE_MELLOW:8,SINE_SUBTLE:9,SAWTOOTH_SOFT:10},Lg=class Lg{constructor(){P(this,"basePalette");P(this,"extendedPalette");this.basePalette=[{index:ja.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:ja.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:ja.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:ja.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:ja.SAWTOOTH_DARK,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.2},{frequency:3,amplitude:.1},{frequency:5,amplitude:.05}]},timbreModulation:{attack:.005,decay:.3,sustain:.4,release:.5}},{index:ja.SINE_HARMONIC,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.15},{frequency:4,amplitude:.05}]},timbreModulation:{attack:.02,decay:.2,sustain:.6,release:.3}},{index:ja.TRIANGLE_HARMONIC,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.2},{frequency:6,amplitude:.1}]},timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:ja.SQUARE_HARMONIC,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.1},{frequency:7,amplitude:.05}]},timbreModulation:{attack:.005,decay:.05,sustain:.5,release:.1}},{index:ja.TRIANGLE_MELLOW,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:2.5,amplitude:.15},{frequency:4.5,amplitude:.08}]},timbreModulation:{attack:.01,decay:.4,sustain:.3,release:.5}},{index:ja.SINE_SUBTLE,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.1},{frequency:3,amplitude:.05}]},timbreModulation:{attack:.02,decay:.1,sustain:.9,release:.15}},{index:ja.SAWTOOTH_SOFT,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.05},{frequency:6,amplitude:.02}]},timbreModulation:{attack:.005,decay:.4,sustain:.2,release:.6}}],this.validateBasePalette(),this.extendedPalette=new Map,this.generateExtendedPalette()}dispose(){this.extendedPalette.clear()}getPaletteEntry(t){if(t<this.basePalette.length)return this.basePalette[t];const n=this.extendedPalette.get(t);if(n)return n;const i=this.generateExtendedEntry(t);return this.extendedPalette.set(t,i),i}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return ja.SINE_BASIC;case"Bear":return ja.SAWTOOTH_SOFT;case"Neutral":return ja.TRIANGLE_BASIC;default:return ja.SINE_BASIC}}generateExtendedPalette(){[{index:this.basePalette.length,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.3},{frequency:3,amplitude:.15}]},timbreModulation:{attack:.02,decay:.15,sustain:.7,release:.3}},{index:this.basePalette.length+1,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:1.5,amplitude:.4},{frequency:2.5,amplitude:.2}]},timbreModulation:{attack:.01,decay:.08,sustain:.6,release:.4}},{index:this.basePalette.length+2,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:1.25,amplitude:.35},{frequency:2,amplitude:.25},{frequency:3,amplitude:.1}]},timbreModulation:{attack:.03,decay:.2,sustain:.5,release:.35}},{index:this.basePalette.length+3,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:.5,amplitude:.2},{frequency:4,amplitude:.15}]},timbreModulation:{attack:.025,decay:.18,sustain:.8,release:.25}}].forEach((n,i)=>{this.extendedPalette.set(this.basePalette.length+i,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,i=this.basePalette[n],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),s=this.generateHarmonics(o),c=this.generateTimbreModulation(o,i.timbreModulation);return{index:t,waveType:i.waveType,harmonicMix:{fundamental:1,harmonics:s},timbreModulation:c}}generateHarmonics(t){const n=[],i=Lg.MIN_HARMONICS+t%Lg.HARMONIC_VARIATION;for(let o=0;o<i;o++){const s=1+(o+1)*(.5+t*.3%1),c=.4/(o+1)*(1-t*.1%.3);n.push({frequency:s,amplitude:c})}return n}generateTimbreModulation(t,n){const i=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*i)),decay:Math.max(.05,Math.min(.3,n.decay*i)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*i))}}validateBasePalette(){this.basePalette.forEach((t,n)=>{if(t.index!==n)throw new Error(`AudioPalette validation error: Entry at array position ${n} has index ${t.index}. Array position must match the index property to prevent audio palette mismatches.`)})}};P(Lg,"MIN_HARMONICS",2),P(Lg,"HARMONIC_VARIATION",3);let Yw=Lg;const TB=100,AB=440,CB=880,UC=180,$C=.2,OB=.1,Xw=.3,U5=ja.SINE_BASIC;class RB{constructor(t,n,i){P(this,"notification");P(this,"audioPalette");P(this,"isCombinedAudio");P(this,"mode");P(this,"activeAudioIds");P(this,"volume");P(this,"minFrequency");P(this,"maxFrequency");P(this,"audioContext");P(this,"compressor");this.notification=t,this.audioPalette=new Yw,this.isCombinedAudio=!1,this.mode="on",this.updateMode(i),this.activeAudioIds=new Map,this.volume=this.normalizeVolume(n.get("general.volume")),this.minFrequency=n.get("general.minFrequency"),this.maxFrequency=n.get("general.maxFrequency"),n.onChange(o=>{o.affectsSetting("general.volume")&&(this.volume=this.normalizeVolume(o.get("general.volume"))),o.affectsSetting("general.minFrequency")&&(this.minFrequency=o.get("general.minFrequency")),o.affectsSetting("general.maxFrequency")&&(this.maxFrequency=o.get("general.maxFrequency"))}),this.audioContext=new AudioContext,this.compressor=this.initCompressor()}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close())}initCompressor(){const t=this.audioContext.createDynamicsCompressor();t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.25;const n=this.audioContext.createGain();return n.gain.value=.5,t.connect(n),n.connect(this.audioContext.destination),t}updateMode(t){if(t.empty||t.type==="figure")return;const n=t.type==="subplot"?t.trace:t;n.empty||n.hasMultiPoints===this.isCombinedAudio||(this.isCombinedAudio=n.hasMultiPoints,this.mode!=="off"&&(this.isCombinedAudio?this.mode="combined":this.mode="on"))}update(t){if(this.updateMode(t),this.mode==="off")return;if(t.empty){t.warning?this.playWarningTone():t.type==="trace"&&t.audio?this.playEmptyTone({x:t.audio.x,y:t.audio.y,rows:t.audio.rows,cols:t.audio.cols}):this.playEmptyTone({x:0,y:0,rows:1,cols:1});return}if(t.type!=="trace")return;if(t.traceType==="line"&&!t.empty&&Array.isArray(t.intersections)&&t.intersections.length>1){this.stopAll(),this.playSimultaneousTones(t.intersections);return}const n=t.audio;let i=n.group;n.trend&&i===void 0&&(i=this.audioPalette.getCandlestickGroupIndex(n.trend));const o=i!==void 0?this.audioPalette.getPaletteEntry(i):void 0;if(n.isContinuous)this.playSmooth(n.freq,n.panning,o,n.volumeMultiplier,n.volumeScale);else if(Array.isArray(n.freq.raw)){const s=n.freq.raw;if(s.length===0){this.playZeroTone(n.panning);return}let c=0;const d=this.mode==="on"?50:0,h=new Array,y=()=>{c<s.length?(this.playTone({min:n.freq.min,max:n.freq.max,raw:s[c++]},{x:n.panning.x,y:n.panning.y,rows:n.panning.rows,cols:n.panning.cols},o),h.push(setTimeout(y,d))):this.stop(h)};y()}else n.freq.raw===0?this.playZeroTone(n.panning):this.playTone(n.freq,n.panning,o)}playTone(t,n,i){const o={min:t.min,max:t.max},s={min:this.minFrequency,max:this.maxFrequency},c=this.interpolate(t.raw,o,s),d=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(c,{x:d,y:0},i)}createAdsrEnvelope(t,n,i,o,s){if(n!=null&&n.timbreModulation){const{attack:c,decay:d,sustain:h,release:y}=n.timbreModulation,b=s*c,S=s*d,T=s*y,w=s-b-S-T;return t.gain.setValueAtTime(1e-4*i,o),t.gain.linearRampToValueAtTime(i,o+b),t.gain.linearRampToValueAtTime(h*i,o+b+S),w>0&&t.gain.setValueAtTime(h*i,o+b+S+w),t.gain.linearRampToValueAtTime(1e-4*i,o+s),null}else return[.5*i,i,.5*i,.5*i,.5*i,.1*i,1e-4*i]}playOscillator(t,n={x:0,y:0},i){const o=Xw,s=this.audioContext.currentTime;i||(i=this.audioPalette.getPaletteEntry(U5));const c=[],d=[],h=this.audioContext.createOscillator();if(h.type=i.waveType,h.frequency.value=t,c.push(h),i.harmonicMix)for(const T of i.harmonicMix.harmonics){const w=this.audioContext.createOscillator();w.type=i.waveType,w.frequency.value=T.frequency*t,c.push(w)}for(let T=0;T<c.length;T++){const w=this.audioContext.createGain();let C=this.volume;if(T===0)i.harmonicMix&&(C*=i.harmonicMix.fundamental);else{const _=i.harmonicMix.harmonics[T-1];C*=_.amplitude}const M=this.createAdsrEnvelope(w,i,C,s,o);M!==null&&w.gain.setValueCurveAtTime(M,s,o),d.push(w)}const y=this.audioContext.createStereoPanner();y.pan.value=n.x;for(let T=0;T<c.length;T++)c[T].connect(d[T]),d[T].connect(y);y.connect(this.compressor),c.forEach(T=>T.start(s));const b=T=>{y.disconnect();for(let w=0;w<c.length;w++)c[w].stop(),c[w].disconnect(),d[w].disconnect();this.activeAudioIds.delete(T)},S=setTimeout(()=>b(S),o*1e3*2);return this.activeAudioIds.set(S,c),S}playSmooth(t,n,i,o,s){const c=this.audioContext,d=c.currentTime,h=Xw,y=t.raw.map(L=>this.interpolate(L,{min:t.min,max:t.max},{min:this.minFrequency,max:this.maxFrequency})),b=this.volume;let S;s!==void 0?S=b*Math.max(0,s):S=b*(o??1),y.length<2&&y.push(y[0]);const T=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1),w=(i==null?void 0:i.waveType)||"sine",C=c.createOscillator();C.type=w,C.frequency.setValueCurveAtTime(y,d,h);const M=c.createGain(),_=this.createAdsrEnvelope(M,i,S,d,h);_!==null&&M.gain.setValueCurveAtTime(_,d,h);const k=c.createStereoPanner();k.pan.value=T,C.connect(M),M.connect(k),k.connect(this.compressor),C.start(d),C.stop(d+h);const z=setTimeout(()=>{C.disconnect(),M.disconnect(),k.disconnect(),this.activeAudioIds.delete(z)},h*1e3*2);this.activeAudioIds.set(z,C)}playEmptyTone(t){const n=this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),i=this.audioContext,o=i.currentTime,s=.2,c=i.createStereoPanner();c.pan.value=n;const d=[500,1e3,1500,2100,2700],h=[1,.6,.4,.2,.1],y=i.createGain();y.gain.setValueAtTime(.3*this.volume,o),y.gain.exponentialRampToValueAtTime(.01*this.volume,o+s),y.connect(c),c.connect(this.compressor);const b=[];for(let w=0;w<d.length;w++){const C=i.createOscillator(),M=i.createGain();C.frequency.value=d[w],C.type="sine",M.gain.setValueAtTime(h[w]*this.volume,o),M.gain.exponentialRampToValueAtTime(.001*this.volume,o+s),C.connect(M),M.connect(y),C.start(o),C.stop(o+s),b.push(C)}const S=w=>{c.disconnect(),y.disconnect(),b.forEach(C=>{C.disconnect()}),this.activeAudioIds.delete(w)},T=setTimeout(()=>S(T),s*1e3*2);return this.activeAudioIds.set(T,b),T}playOneWarningBeep(t,n){const i=this.audioContext.createOscillator(),o=this.audioContext.createGain();i.type="sine",i.frequency.value=t;let s=1;i.type!=="sine"&&(s=.5),o.gain.setValueAtTime(s,n),o.gain.exponentialRampToValueAtTime(.001,n+$C),i.connect(o),o.connect(this.audioContext.destination),i.start(n),i.stop(n+$C)}playWarningTone(){const t=this.audioContext.currentTime;this.playOneWarningBeep(UC,t),this.playOneWarningBeep(UC/2**(1/12),t+OB)}playWarningToneIfEnabled(){this.mode!=="off"&&this.playWarningTone()}playZeroTone(t){const n=this.clamp(this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(TB,{x:n,y:0},{index:U5,waveType:"triangle"})}playWaitingTone(){const t=this.audioPalette.getPaletteEntry(U5);return setInterval(()=>this.playOscillator(AB,{x:0,y:0},t),1e3)}playCompleteTone(){const t=this.audioPalette.getPaletteEntry(U5);return this.playOscillator(CB,{x:0,y:0},t)}playSimultaneousTones(t){const n=Xw,i=this.audioContext,o=i.currentTime,s=Array.isArray(t[0].freq.raw)?t[0].freq.raw[1]??t[0].freq.raw[0]:t[0].freq.raw,c=this.interpolate(s,{min:t[0].freq.min,max:t[0].freq.max},{min:this.minFrequency,max:this.maxFrequency});t.forEach((d,h)=>{const b=this.audioPalette.getPaletteEntry(d.group??h).waveType,S=i.createOscillator();S.type=b,S.frequency.value=c;const T=i.createGain();T.gain.setValueAtTime(this.volume,o),T.gain.exponentialRampToValueAtTime(.01*this.volume,o+n),S.connect(T),T.connect(this.compressor),S.start(o),S.stop(o+n);const w=setTimeout(()=>{S.disconnect(),T.disconnect(),this.activeAudioIds.delete(w)},n*1e3*2);this.activeAudioIds.set(w,[S])})}interpolate(t,n,i){return n.min===n.max?i.min:(t-n.min)/(n.max-n.min)*(i.max-i.min)+i.min}clamp(t,n,i){return Math.max(n,Math.min(t,i))}toggle(){switch(this.mode){case"off":this.mode=this.isCombinedAudio?"combined":"on";break;case"on":this.mode="off";break;case"combined":this.mode="on";break}const n=`Sound is ${this.isCombinedAudio&&this.mode==="on"?"separate":this.mode}`;this.notification.notify(n)}stop(t){(Array.isArray(t)?t:[t]).forEach(i=>{const o=this.activeAudioIds.get(i);if(!o){clearInterval(i);return}(Array.isArray(o)?o:[o]).forEach(c=>{c==null||c.disconnect(),c==null||c.stop()}),clearTimeout(i),this.activeAudioIds.delete(i)})}stopAll(){this.activeAudioIds.forEach((t,n)=>{clearTimeout(n),(Array.isArray(t)?t:[t]).forEach(o=>{o.disconnect(),o.stop()})}),this.activeAudioIds.clear()}normalizeVolume(t){return t/100*(t/100)}}const MB=250,_B=10,DB=500,HC=20;class NB{constructor(t,n,i){P(this,"context");P(this,"notification");P(this,"settings");P(this,"autoplayId");P(this,"currentDirection");P(this,"userSpeed");P(this,"defaultSpeed");P(this,"minSpeed");P(this,"maxSpeed");P(this,"autoplayRate");P(this,"interval");P(this,"totalDuration");P(this,"onChangeEmitter");P(this,"onChange");this.notification=n,this.context=t,this.settings=i,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=MB,this.minSpeed=_B,this.maxSpeed=DB,this.interval=HC,this.autoplayRate=this.defaultSpeed,this.interval=HC,this.totalDuration=i.get("general.autoplayDuration"),i.onChange(o=>{o.affectsSetting("general.autoplayDuration")&&(this.totalDuration=o.get("general.autoplayDuration"),this.restart())}),this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event}dispose(){this.stop(),this.onChangeEmitter.dispose()}start(t,n){this.stop(),this.onChangeEmitter.fire({type:"start"}),this.autoplayRate=this.getAutoplayRate(t,n),this.currentDirection=t,this.autoplayId=setInterval(()=>{this.context.isMovable(t)?this.context.moveOnce(t):this.stop()},this.autoplayRate)}stop(){this.autoplayId&&clearInterval(this.autoplayId),this.autoplayId=null,this.currentDirection=null,this.onChangeEmitter.fire({type:"stop"})}restart(){this.autoplayId&&clearInterval(this.autoplayId),this.currentDirection&&this.start(this.currentDirection)}speedUp(){const t=this.userSpeed??this.autoplayRate;t-this.interval>=this.minSpeed?(this.userSpeed=t-this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed up")):this.notification.notify("Max speed")}speedDown(){const t=this.userSpeed??this.autoplayRate;t+this.interval<=this.maxSpeed?(this.userSpeed=t+this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed down")):this.notification.notify("Min speed")}resetSpeed(){this.userSpeed=null,this.autoplayRate=this.defaultSpeed,this.restart(),this.notification.notify("Reset speed")}getAutoplayRate(t,n){if(this.userSpeed!==null)return this.userSpeed;if(n&&!n.empty){const i=Math.ceil(this.totalDuration/n.autoplay[t]);return this.defaultSpeed=i,this.minSpeed=Math.min(this.minSpeed,i),i}return this.defaultSpeed}}const qC=32;class gv{encode(t){const n=new Array,i=new Array,o=new Array;for(let s=0;s<t.values.length;s++){i.push(new Array);const c=(t.max[s]-t.min[s])/4,d=t.min[s]+c,h=d+c,y=h+c;for(let b=0;b<t.values[s].length;b++)t.values[s][b]===0?n.push(" "):t.values[s][b]<=d||t.values[s][b]<=h?n.push("⠤"):t.values[s][b]<=y?n.push("⠒"):n.push("⠉"),i[s].push(o.length),o.push({row:s,col:b});n.push(me.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class GC{constructor(){P(this,"GLOBAL_MIN","globalMin");P(this,"GLOBAL_MAX","globalMax");P(this,"BLANK","blank");P(this,"LOWER_OUTLIER","lowerOutlier");P(this,"UPPER_OUTLIER","upperOutlier");P(this,"MIN","min");P(this,"MAX","max");P(this,"Q1","q1");P(this,"Q2","q2");P(this,"Q3","q3")}encode(t,n=qC){const i=new Array,o=new Array,s=new Array;for(let c=0;c<t.values.length;c++){const d=t.values[c],h=[{type:this.GLOBAL_MIN,value:t.min},...d.lowerOutliers.map(X=>({type:this.LOWER_OUTLIER,value:X})),{type:this.MIN,value:d.min},{type:this.Q1,value:d.q1},{type:this.Q2,value:d.q2},{type:this.Q3,value:d.q3},{type:this.MAX,value:d.max},...d.upperOutliers.map(X=>({type:this.UPPER_OUTLIER,value:X})),{type:this.GLOBAL_MAX,value:t.max}],y=new Array;let b=!0;for(let X=0;X<h.length-1;X++){const se=h[X],ce=h[X+1],ie=Math.abs(b?ce.value-se.value:se.value-h[X-1].value);se.type===this.LOWER_OUTLIER||se.type===this.UPPER_OUTLIER?(y.push({type:se.type,length:0,numChars:1}),y.push({type:this.BLANK,length:ie,numChars:0})):se.type===this.Q2?(b=!1,y.push({type:this.Q2,length:0,numChars:2})):se.type===this.GLOBAL_MIN||se.type===this.GLOBAL_MAX?y.push({type:this.BLANK,length:ie,numChars:0}):y.push({type:se.type,length:ie,numChars:1})}let S=y.reduce((X,se)=>X+(se.numChars>0?se.numChars:0),0),[T,w,C,M]=[-1,-1,-1,-1];for(let X=0;X<y.length;X++)y[X].type===this.MIN&&y[X].length>0&&(T=X),y[X].type===this.MAX&&y[X].length>0&&(w=X),y[X].type===this.Q1&&(C=X),y[X].type===this.Q3&&(M=X);T!==-1&&w!==-1&&y[T].length!==y[w].length&&(y[T].length>y[w].length?(y[T].numChars++,S++):(y[w].numChars++,S++)),C!==-1&&M!==-1&&y[C].length!==y[M].length&&(y[C].length>y[M].length?(y[C].numChars++,S++):(y[M].numChars++,S++));const _=Math.max(0,n-S),k=y.reduce((X,se)=>X+(se.type!==this.Q2&&se.length>0?se.length:0),0);for(const X of y)if(X.type!==this.Q2&&X.length>0){const se=Math.round(X.length/k*_);X.numChars+=se}const z=y.reduce((X,se)=>X+se.numChars,0);let L=n-z,B=0;for(;L!==0;){const X=y[B%y.length];X.type!==this.BLANK&&X.type!==this.Q2&&X.length>0&&(X.numChars+=L>0?1:-1,L+=L>0?-1:1),B++}let V=-1;const U=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];s.push(Array.from({length:U.length}).fill(-1));for(const X of y){X.type!==this.BLANK&&X.type!==this.GLOBAL_MIN&&X.type!==this.GLOBAL_MAX&&(V=U.indexOf(X.type),s[c][V]=i.length);for(let se=0;se<X.numChars;se++){let ce="⠀";X.type===this.MIN||X.type===this.MAX?ce="⠒":X.type===this.Q1||X.type===this.Q3?ce="⠿":X.type===this.Q2?ce=se===0?"⠸":"⠇":X.type===this.LOWER_OUTLIER||X.type===this.UPPER_OUTLIER?ce="⠂":X.type===this.BLANK&&(ce="⠀"),i.push(ce),o.push({row:c,col:V})}}for(let X=0;X<3;X++)if(s[c][X]===-1){for(let se=X+1;se<=3;se++)if(s[c][se]!==-1){s[c][X]=s[c][se];break}}for(let X=6;X>3;X--)if(s[c][X]===-1){for(let se=X-1;se>=3;se--)if(s[c][se]!==-1){s[c][X]=s[c][se];break}}i.push(me.NEW_LINE),o.push({row:c,col:V})}return{value:i.join(me.EMPTY),cellToIndex:s,indexToCell:o}}}class kB{encode(t){const n=new Array,i=new Array,o=new Array,s=(t.max-t.min)/3,c=t.min+s,d=c+s;for(let h=0;h<t.values.length;h++){i.push(new Array);for(let y=0;y<t.values[h].length;y++)t.values[h][y]===0?n.push(" "):t.values[h][y]<=c?n.push("⠤"):t.values[h][y]<=d?n.push("⠒"):n.push("⠉"),i[h].push(o.length),o.push({row:h,col:y});n.push(me.NEW_LINE),i[h].push(o.length),o.push({row:h,col:t.values[h].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class FC{encode(t){const n=new Array,i=new Array,o=new Array;for(let s=0;s<t.values.length;s++){i.push(new Array);const{low:c,medium:d,mediumHigh:h,high:y}=this.getThresholds(s,t);for(let b=0;b<t.values[s].length;b++){const S=t.values[s][b],T=b>0?t.values[s][b-1]:null,w=this.getBrailleChar(S,T,c,d,y,h);n.push(w),i[s].push(o.length),o.push({row:s,col:b})}n.push(me.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}getBrailleChar(t,n,i,o,s,c){return c===void 0&&(c=s),t<=i&&n!==null&&n>i?n<=o?"⢄":n<=c?"⢆":"⢇":t<=i?"⣀":n!==null&&n<=i?t<=o?"⡠":t<=c?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=c?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=c?"⠔":"⠜":t<=c&&n!==null&&n>c?"⠑":t<=c?"⠒":n!==null&&n<=c?"⠊":t<=s?"⠉":""}getBraille6Char(t,n,i,o,s){const c=S=>S<=i?"low":S<=o?"medium":(S<=s,"high"),d=c(t),h=n!==null?c(n):null,y={"low,medium":"⠢","low,high":"⠣","low,null":"⠤","low,low":"⠤","medium,low":"⠔","medium,high":"⠑","medium,null":"⠒","medium,medium":"⠒","high,low":"⠜","high,medium":"⠊","high,null":"⠉","high,high":"⠉"},b=`${d},${h}`;return y[b]||""}addDot8(t){if(!t||t.length===0)return"⢀";const o=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+o)}}class zB extends FC{getThresholds(t,n){const i=Array.isArray(n.min)?n.min[t]:n.min,o=Array.isArray(n.max)?n.max[t]:n.max,s=(o-i)/3,c=i+s,d=c+s;return{low:c,medium:d,high:o}}encode(t){var s;const n=new Array,i=new Array,o=new Array;for(let c=0;c<t.values.length;c++){i.push(new Array);const{low:d,medium:h,high:y}=this.getThresholds(c,t);for(let b=0;b<t.values[c].length;b++){const S=t.values[c][b],T=b>0?t.values[c][b-1]:null;let w=this.getBraille6Char(S,T,d,h,y);((s=t.custom)==null?void 0:s[b])==="Bear"&&(w=this.addDot8(w)),n.push(w),i[c].push(o.length),o.push({row:c,col:b})}n.push(me.NEW_LINE),i[c].push(o.length),o.push({row:c,col:t.values[c].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class Ww extends FC{getThresholds(t,n){const i=(n.max[t]-n.min[t])/4,o=n.min[t]+i,s=o+i,c=s+i,d=n.max[t];return{low:o,medium:s,mediumHigh:c,high:d}}}class IB{constructor(t,n,i){P(this,"context");P(this,"notification");P(this,"display");P(this,"enabled");P(this,"cacheId");P(this,"cache");P(this,"encoders");P(this,"onChangeEmitter");P(this,"onChange");this.context=t,this.notification=n,this.display=i,this.enabled=!1,this.cacheId=me.EMPTY,this.cache=null,this.encoders=new Map([[Rn.BAR,new gv],[Rn.BOX,new GC],[Rn.CANDLESTICK,new zB],[Rn.DODGED,new gv],[Rn.HEATMAP,new kB],[Rn.HISTOGRAM,new gv],[Rn.LINE,new Ww],[Rn.NORMALIZED,new gv],[Rn.SMOOTH,new Ww],[Rn.STACKED,new gv],[Rn.VIOLIN_KDE,new Ww],[Rn.VIOLIN_BOX,new GC]]),this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.cache=null,this.encoders.clear()}update(t){if(!this.enabled||t.empty)return;const n=t.type==="subplot"?t.trace:t;if(n.empty||n.braille.empty||!this.encoders.has(n.traceType))return;const i=n.braille;if(this.cache===null||this.cacheId!==i.id){const o=this.encoders.get(n.traceType);this.cache=o.encode(i,qC),this.cacheId=i.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[i.row][i.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:i}=this.cache.indexToCell[t];this.context.moveToIndex(n,i)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const i=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(i);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(pn.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var YC=(e=>(e[e.OK=200]="OK",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.SERVER_ERROR=500]="SERVER_ERROR",e))(YC||{});class XC{constructor(){}static async post(t,n,i){const o={...this.DEFAULT_HEADERS,...i};return this.request(t,"POST",o,n)}static async request(t,n,i,o){try{const s=await fetch(t,{method:n,headers:i,body:o});return s.ok?{success:!0,data:await s.json()}:{success:!1,error:{statusCode:s.status,message:`API Error: ${s.status} - ${s.statusText}`}}}catch(s){return console.error(`Error in API ${n} request to ${t}:`,s),{success:!1,error:{statusCode:YC.SERVER_ERROR,message:s instanceof Error?s.message:"Unknown error occurred"}}}}}P(XC,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const LB=`You are a helpful assistant that answers questions about statistical visualizations. Your role is to:
1. Answer the user's specific question directly and clearly
2. Use simple, everyday language with minimal statistical terms
3. Provide relevant information from the data when needed
4. Focus on what the user is asking, not describing the entire chart
5. Give brief context only when it helps answer the question
6. Keep responses concise and to the point`,VB=`You are an expert assistant that answers questions about statistical visualizations. Your role is to:
1. Answer the user's specific question directly and accurately
2. Use accessible language that assumes basic statistical knowledge
3. Provide relevant insights and analysis when needed
4. Focus on what the user is asking, not describing the entire chart
5. Highlight key trends, outliers, and relationships when relevant to the question
6. Provide context and interpretation only when it helps answer the specific question`,BB=`You are a highly specialized assistant that answers questions about statistical visualizations for users with strong statistical background. Your role is to:
1. Answer the user's specific question with technical depth and precision
2. Use precise statistical terminology and advanced concepts when appropriate
3. Provide detailed analysis of complex patterns and statistical significance when relevant
4. Focus on what the user is asking, not describing the entire chart
5. Analyze trends, outliers, relationships, and statistical properties when they relate to the question
6. Provide comprehensive context and sophisticated interpretations only when they help answer the specific question`,jB=`I have a statistical visualization with the following data:

1. Raw data in JSON format: 
{maidrJson}

2. Current selected point: {currentPositionText}

Question: {message}

Please answer my specific question directly. If you need to reference the visualization data, do so briefly and focus on answering what I asked.`,PB={basic:LB,intermediate:VB,advanced:BB};function UB(e){return e==="custom"?"":PB[e]}function Qw(e,t){return t==="custom"?e:`${UB(t)}

${e}`}function Kw(e){return jB.replace("{maidrJson}",e.maidrJson).replace("{currentPositionText}",e.currentPositionText).replace("{message}",e.message)}const $B=1e3,HB=256,qB=1e3;class GB{constructor(t,n,i){P(this,"display");P(this,"textService");P(this,"models");this.display=t,this.textService=n,this.models={OPENAI:new FB(t.plot,i,n,"gpt-4o"),ANTHROPIC_CLAUDE:new YB(t.plot,i,n,"claude-3-7-sonnet-latest"),GOOGLE_GEMINI:new XB(t.plot,i,n,"gemini-2.0-flash")}}async sendMessage(t,n){return this.models[t].getLlmResponse(n)}toggle(){this.display.toggleFocus(pn.CHAT)}}class Zw{constructor(t,n,i){P(this,"svg");P(this,"json");P(this,"textService");P(this,"maidrBaseUrl");P(this,"codeQueryParam");this.svg=t,this.json=JSON.stringify(n),this.textService=i,this.maidrBaseUrl="https://maidr-service.azurewebsites.net/api",this.codeQueryParam="I8Aa2PlPspjQ8Hks0QzGyszP8_i2-XJ3bq7Xh8-ykEe4AzFuYn_QWA%3D%3D"}async getLlmResponse(t){var n;try{const i=await Mt.toBase64(this.svg),o=t.expertise==="custom"?"advanced":t.expertise,s=this.textService.getCoordinateText()||"",c=this.getPayload(t.customInstruction,this.json,i,s,t.message,o),d=t.clientToken?this.getMaidrUrl():this.getApiUrl(t.apiKey),h=this.getHeaders(t),y=await XC.post(d,c,h);return y.success?y.data?this.formatResponse(y.data):{success:!1,error:"Response unavailable"}:{success:!1,error:(n=y.error)==null?void 0:n.message}}catch(i){return{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}}getMaidrUrl(){return`${this.maidrBaseUrl}/${this.getEndPoint()}?code=${this.codeQueryParam}`}getHeaders(t){const n={"Content-Type":"application/json"};return t.clientToken?n.Authentication=`${t.email} ${t.clientToken}`:n.Authorization=`Bearer ${t.apiKey}`,n}}class FB extends Zw{constructor(n,i,o,s){super(n,i,o);P(this,"version");this.version=s}getApiUrl(){return"https://api.openai.com/v1/chat/completions"}getEndPoint(){return"openai"}getPayload(n,i,o,s,c,d){const h={maidrJson:i,currentPositionText:s,message:c,expertiseLevel:d};return JSON.stringify({model:this.version,max_tokens:$B,messages:[{role:"system",content:Qw(n,h.expertiseLevel)},{role:"user",content:[{type:"text",text:Kw(h)},{type:"image_url",image_url:{url:o}}]}]})}formatResponse(n){return n.choices.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.choices[0].message.content}}getHeaders(n){return super.getHeaders(n)}}class YB extends Zw{constructor(n,i,o,s){super(n,i,o);P(this,"version");this.version=s}getApiUrl(){return"https://api.anthropic.com"}getEndPoint(){return"claude"}getPayload(n,i,o,s,c,d){const h={maidrJson:i,currentPositionText:s,message:c,expertiseLevel:d};return JSON.stringify({anthropic_version:this.version,max_tokens:HB,messages:[{role:"user",content:[{type:"image",source:{type:"base64",media_type:"image/jpeg",data:o}},{type:"text",text:`${Qw(n,h.expertiseLevel)}

${Kw(h)}`}]}]})}formatResponse(n){return n.content.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.content[0].text}}getHeaders(n){const i=super.getHeaders(n);return i["anthropic-version"]=this.version,i}}class XB extends Zw{constructor(n,i,o,s){super(n,i,o);P(this,"version");this.version=s}getApiUrl(n){if(!n)throw new Error("API key is required for Gemini API");return`https://generativelanguage.googleapis.com/v1beta/models/${this.version}:generateContent?key=${n}`}getEndPoint(){return"gemini"}getPayload(n,i,o,s,c,d){const h={maidrJson:i,currentPositionText:s,message:c,expertiseLevel:d},y=Qw(n,h.expertiseLevel),b=Kw(h),S=`${y}

${b}`;return JSON.stringify({generationConfig:{maxOutputTokens:qB},safetySettings:[],contents:[{role:"user",parts:[{text:S},{inlineData:{data:o.split(",")[1],mimeType:"image/svg+xml"}}]}]})}formatResponse(n){return n.candidates.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.candidates[0].content.parts[0].text}}getHeaders(n){const i=super.getHeaders(n);return delete i.Authorization,i}}class WB{constructor(t,n){P(this,"context");P(this,"autoplay");this.context=t,this.autoplay=n}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("UPWARD",t)}}class QB{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("DOWNWARD",t)}}class KB{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("FORWARD",t)}}class ZB{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("BACKWARD",t)}}class JB{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class ej{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class tj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class nj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class Cd{constructor(t,n,i,o){P(this,"context");P(this,"textViewModel");P(this,"audioService");P(this,"textService");this.context=t,this.textViewModel=n,this.audioService=i,this.textService=o}restoreScope(){const t=this.context.state.type==="figure"?pn.SUBPLOT:pn.TRACE;this.context.toggleScope(t)}}class rj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=this.textService.isTerse()?t.xAxis:`X label is ${t.xAxis}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"X label is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class ij extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=this.textService.isTerse()?t.yAxis:`Y label is ${t.yAxis}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Y label is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class aj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty&&t.fill!=="unavailable"){const n=this.textService.isTerse()?t.fill:`Fill is ${t.fill}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Fill is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class oj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.empty){this.announceUnavailable(),this.restoreScope();return}if(t.type==="figure"){this.announce(t.title,"Figure title"),this.restoreScope();return}if(t.type==="trace"){this.announceTraceTitle(t.title),this.restoreScope();return}this.announceUnavailable(),this.restoreScope()}announce(t,n){const i=this.textService.isTerse()?t:`${n} is ${t}`;this.textViewModel.update(i)}announceTraceTitle(t){if(this.context.isMultiPanel&&t!=="unavailable"){this.announce(t,"Subplot title");return}const n=this.context.figureTitle;if(n!=="unavailable"){this.announce(n,"Title");return}this.announceUnavailable()}announceUnavailable(){const t=this.textService.isTerse()?"unavailable":"Title is not available";this.textViewModel.update(t),this.audioService.playWarningToneIfEnabled()}}class lj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.figureSubtitle;if(t!=="unavailable"){const n=this.textService.isTerse()?t:`Subtitle is ${t}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Subtitle is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class sj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.figureCaption;if(t!=="unavailable"){const n=this.textService.isTerse()?t:`Caption is ${t}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Caption is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class uj extends Cd{constructor(n,i,o,s,c,d){super(n,c,i,d);P(this,"audio");P(this,"brailleViewModel");P(this,"highlight");this.audio=i,this.highlight=o,this.brailleViewModel=s}execute(){const n=this.context.state;switch(n.type){case"figure":case"subplot":this.textViewModel.update(n);break;case"trace":this.textViewModel.update(n),this.audio.update(n),this.brailleViewModel.update(n),this.highlight.update(n);break}}}class cj extends Cd{constructor(t,n,i,o){super(t,i,o,n)}execute(){if(this.textService.isOff())return;const t=this.context.state;if(t.empty||t.type!=="trace"){this.textViewModel.update("Not in a chart, unable to show position.");return}const{panning:n}=t.audio,{x:i,y:o,rows:s,cols:c}=n,d=t.traceType;d===Rn.BOX?this.announceBoxplotPosition(t):d===Rn.CANDLESTICK?this.announceCandlestickPosition(t):d===Rn.STACKED||d===Rn.NORMALIZED||d===Rn.DODGED?this.announceSegmentedBarPosition(t,i,c):d===Rn.SMOOTH?this.announceViolinPosition(o,s,i,c):d===Rn.LINE&&t.groupCount&&t.groupCount>1?this.announceMultiLinePosition(i,s,o,c):this.is2DPlot(s,c)?this.announce2DPosition(i,o,s,c):this.announce1DPosition(i,c)}is2DPlot(t,n){return t>1&&n>1}announce1DPosition(t,n){const i=t+1,o=n;if(this.textService.isTerse()){const s=n>1?Math.round(t/(n-1)*100):0;this.textViewModel.update(`${s}%`)}else this.textViewModel.update(`Position is ${i} of ${o}`)}announce2DPosition(t,n,i,o){const s=t+1,c=n+1;if(this.textService.isTerse()){const d=o>1?Math.round(t/(o-1)*100):0,h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Position is column ${s} of ${o}, row ${c} of ${i}`)}announceBoxplotPosition(t){const n=t.text.section||"",i=t.braille,o=i.row,s=i.values.length,c=o+1;if(this.textService.isTerse()){const d=s>1?Math.round(o/(s-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${c} of ${s} in ${n.toLowerCase()}`)}announceCandlestickPosition(t){const n=t.text.section||"",i=t.braille,o=i.col,s=i.values[0].length,c=o+1;if(this.textService.isTerse()){const d=s>1?Math.round(o/(s-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${c} of ${s}, ${n.toLowerCase()}`)}announceSegmentedBarPosition(t,n,i){var d;const o=((d=t.text.fill)==null?void 0:d.value)??"",s=n+1,c=i;if(this.textService.isTerse()){const h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${h}%, ${o}`)}else this.textViewModel.update(`Position is ${s} of ${c}, Level is ${o}`)}announceViolinPosition(t,n,i,o){const s=t+1,c=i+1;if(this.textService.isTerse()){const d=n>1?Math.round(t/(n-1)*100):0,h=o>1?Math.round(i/(o-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Position is ${s} of ${n}, ${c} of ${o}`)}announceMultiLinePosition(t,n,i,o){const s=t+1,c=i+1,d=`Plot ${s} of ${n}`;if(this.textService.isTerse()){const h=o>1?Math.round(i/(o-1)*100):0;this.textViewModel.update(`${d}, ${h}%`)}else this.textViewModel.update(`${d}, Position is ${c} of ${o}`)}}class fj{constructor(t,n){P(this,"context");P(this,"goToExtremaViewModel");this.context=t,this.goToExtremaViewModel=n}execute(){const t=this.context.state;if(t.type==="trace")if(this.goToExtremaViewModel.state.visible)this.goToExtremaViewModel.hide();else{const n=this.context.active;n&&this.goToExtremaViewModel.isExtremaNavigable(n)&&this.goToExtremaViewModel.toggle(t)}}}class dj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveUp()}}class hj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveDown()}}class pj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.selectCurrent()}}class mj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.hide()}}class gj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class yj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class vj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class bj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class xj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class Sj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class Ej{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class wj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class Tj{constructor(t){P(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class Aj{constructor(t){P(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class Cj{constructor(t){P(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class Oj{constructor(t){P(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class Rj{constructor(t,n){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToNextNavUnit()}}class Mj{constructor(t,n){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToPrevNavUnit()}}class _j{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveUp()}}class Dj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveLeft()}}class Nj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveDown()}}class kj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveRight()}}class zj{constructor(t,n){P(this,"context");P(this,"brailleViewModel");this.context=t,this.brailleViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class Ij{constructor(t){P(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class Lj{constructor(t){P(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class Vj{constructor(t,n){P(this,"context");P(this,"reviewViewModel");this.context=t,this.reviewViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class Bj{constructor(t){P(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class jj{constructor(t){P(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class Pj{constructor(t){P(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class Uj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.toggle()}}class $j{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.hide()}}class Hj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveUp()}}class qj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveDown()}}class Gj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.selectCurrent()}}class Jw{constructor(t,n){P(this,"context");P(this,"scope");this.context=t,this.scope=n}execute(){this.context.toggleScope(this.scope)}}class Fj{constructor(t){P(this,"highContrastService");this.highContrastService=t}execute(){this.highContrastService.toggleHighContrast()}}class WC{constructor(t){P(this,"context");P(this,"audioService");P(this,"autoplayService");P(this,"highContrastService");P(this,"highlightService");P(this,"rotorService");P(this,"textService");P(this,"brailleViewModel");P(this,"chatViewModel");P(this,"commandPaletteViewModel");P(this,"goToExtremaViewModel");P(this,"helpViewModel");P(this,"reviewViewModel");P(this,"settingsViewModel");P(this,"textViewModel");P(this,"rotorNavigationViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.highContrastService=t.highContrastService,this.highlightService=t.highlightService,this.rotorService=t.rotorNavigationService,this.textService=t.textService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.commandPaletteViewModel=t.commandPaletteViewModel,this.goToExtremaViewModel=t.goToExtremaViewModel,this.helpViewModel=t.helpViewModel,this.reviewViewModel=t.reviewViewModel,this.settingsViewModel=t.settingsViewModel,this.textViewModel=t.textViewModel,this.rotorNavigationViewModel=t.rotorNavigationViewModel}create(t){switch(t){case"MOVE_UP":return this.context.isRotorEnabled()?new _j(this.rotorNavigationViewModel):new gj(this.context);case"MOVE_DOWN":return this.context.isRotorEnabled()?new Nj(this.rotorNavigationViewModel):new yj(this.context);case"MOVE_LEFT":return this.context.isRotorEnabled()?new Dj(this.rotorNavigationViewModel):new vj(this.context);case"MOVE_RIGHT":return this.context.isRotorEnabled()?new kj(this.rotorNavigationViewModel):new bj(this.context);case"MOVE_TO_TOP_EXTREME":return new xj(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new Sj(this.context);case"MOVE_TO_LEFT_EXTREME":return new Ej(this.context);case"MOVE_TO_RIGHT_EXTREME":return new wj(this.context);case"MOVE_TO_TRACE_CONTEXT":return new Tj(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new Aj(this.context);case"MOVE_TO_NEXT_TRACE":return new Cj(this.context);case"MOVE_TO_PREV_TRACE":return new Oj(this.context);case"TOGGLE_AUDIO":return new Lj(this.audioService);case"TOGGLE_BRAILLE":return new zj(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new Ij(this.textViewModel);case"TOGGLE_REVIEW":return new Vj(this.context,this.reviewViewModel);case"TOGGLE_HIGH_CONTRAST":return new Fj(this.highContrastService);case"TOGGLE_HELP":return new Bj(this.helpViewModel);case"TOGGLE_CHAT":return new jj(this.chatViewModel);case"TOGGLE_COMMAND_PALETTE":return new Uj(this.commandPaletteViewModel);case"TOGGLE_SETTINGS":return new Pj(this.settingsViewModel);case"GO_TO_EXTREMA_MOVE_UP":return new dj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_MOVE_DOWN":return new hj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_SELECT":return new pj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_CLOSE":return new mj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_TOGGLE":return new fj(this.context,this.goToExtremaViewModel);case"COMMAND_PALETTE_MOVE_UP":return new Hj(this.commandPaletteViewModel);case"COMMAND_PALETTE_MOVE_DOWN":return new qj(this.commandPaletteViewModel);case"COMMAND_PALETTE_SELECT":return new Gj(this.commandPaletteViewModel);case"COMMAND_PALETTE_CLOSE":return new $j(this.commandPaletteViewModel);case"DESCRIBE_X":return new rj(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_Y":return new ij(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_FILL":return new aj(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_POINT":return new uj(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel,this.textService);case"DESCRIBE_TITLE":return new oj(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_SUBTITLE":return new lj(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_CAPTION":return new sj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_POSITION":return new cj(this.context,this.textService,this.textViewModel,this.audioService);case"ACTIVATE_FIGURE_LABEL_SCOPE":case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new Jw(this.context,pn.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":return new Jw(this.context,pn.TRACE_LABEL);case"DEACTIVATE_TRACE_LABEL_SCOPE":return new Jw(this.context,pn.TRACE);case"AUTOPLAY_UPWARD":return new WB(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new QB(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new KB(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new ZB(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new JB(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new ej(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new tj(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new nj(this.autoplayService);case"ROTOR_NEXT_NAV":return new Rj(this.context,this.rotorNavigationViewModel);case"ROTOR_PREV_NAV":return new Mj(this.context,this.rotorNavigationViewModel);default:throw new Error(`Invalid command name: ${t}`)}}}const Vg=class Vg{constructor(){}static get ctrl(){return Vg.IS_MAC?"command":"ctrl"}static get alt(){return Vg.IS_MAC?"option":"alt"}static get enter(){return Vg.IS_MAC?"return":"enter"}};P(Vg,"IS_MAC",(()=>{var n;return(((n=navigator.userAgentData)==null?void 0:n.platform)??navigator.platform).toLowerCase().includes("mac")})());let qt=Vg;const Yj={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${qt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${qt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${qt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${qt.ctrl}+shift+left`,STOP_AUTOPLAY:`${qt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${qt.ctrl}+,`,DESCRIBE_POINT:"space",ANNOUNCE_POSITION:"p",ROTOR_NEXT_NAV:`${qt.alt}+shift+up`,ROTOR_PREV_NAV:`${qt.alt}+shift+down`},Xj={TOGGLE_CHAT:"esc"},Wj={DEACTIVATE_FIGURE_LABEL_SCOPE:"escape",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},Qj={TOGGLE_HELP:"esc"},Kj={ACTIVATE_FIGURE_LABEL_SCOPE:"l",DESCRIBE_TITLE:"t",DESCRIBE_POINT:"space",ANNOUNCE_POSITION:"p",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_TRACE_CONTEXT:`${qt.enter}`,TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${qt.ctrl}+,`},Zj={DEACTIVATE_TRACE_LABEL_SCOPE:"escape",DESCRIBE_X:"x",DESCRIBE_Y:"y",DESCRIBE_FILL:"f",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},Jj={TOGGLE_BRAILLE:"b",TOGGLE_REVIEW:"r",ALLOW_DEFAULT:`up, down, left, right,
    ${qt.ctrl}+up, ${qt.ctrl}+down,
    ${qt.ctrl}+left, ${qt.ctrl}+right,
    pageup, pagedown, home, end,
    tab, ${qt.ctrl}+a, ${qt.ctrl}+c`},eP={TOGGLE_SETTINGS:"esc"},tP={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${qt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${qt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${qt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${qt.ctrl}+shift+left`,STOP_AUTOPLAY:`${qt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_SUBPLOT_CONTEXT:"esc",MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_COMMAND_PALETTE:`${qt.ctrl}+shift+p`,TOGGLE_SETTINGS:`${qt.ctrl}+,`,DESCRIBE_POINT:"space",ANNOUNCE_POSITION:"p",GO_TO_EXTREMA_TOGGLE:"g",ROTOR_NEXT_NAV:`${qt.alt}+shift+up`,ROTOR_PREV_NAV:`${qt.alt}+shift+down`},nP={GO_TO_EXTREMA_MOVE_UP:"up",GO_TO_EXTREMA_MOVE_DOWN:"down",GO_TO_EXTREMA_SELECT:"enter",GO_TO_EXTREMA_CLOSE:"esc",GO_TO_EXTREMA_TOGGLE:"g"},rP={COMMAND_PALETTE_MOVE_UP:"up",COMMAND_PALETTE_MOVE_DOWN:"down",COMMAND_PALETTE_SELECT:"enter",COMMAND_PALETTE_CLOSE:"esc"},e2={[pn.BRAILLE]:Yj,[pn.CHAT]:Xj,[pn.COMMAND_PALETTE]:rP,[pn.FIGURE_LABEL]:Wj,[pn.GO_TO_EXTREMA]:nP,[pn.HELP]:Qj,[pn.REVIEW]:Jj,[pn.SETTINGS]:eP,[pn.SUBPLOT]:Kj,[pn.TRACE]:tP,[pn.TRACE_LABEL]:Zj};class iP{constructor(t){P(this,"commandFactory");this.commandFactory=new WC(t)}register(t){Ba.filter=n=>{const i=n.target;return i.tagName.toLowerCase()===me.INPUT?i.id.startsWith(me.REVIEW_INPUT):i.tagName.toLowerCase()===me.TEXT_AREA?i.id.startsWith(me.BRAILLE_TEXT_AREA):!0};for(const[n,i]of Object.entries(e2))for(const[o,s]of Object.entries(i))o==="STOP_AUTOPLAY"&&Ba("*",pn.TRACE,c=>{(Ba.command||Ba.ctrl)&&this.commandFactory.create(o).execute(c)}),Ba(s,{scope:n},c=>{o!=="ALLOW_DEFAULT"&&(c.preventDefault(),this.commandFactory.create(o).execute(c))});Ba.setScope(t)}unregister(){Ba.unbind()}}class aP{constructor(t,n,i){P(this,"mouseListener");P(this,"commandContext");P(this,"hoverMode","none");P(this,"plot");P(this,"settingsService");this.commandContext=t,this.settingsService=n;const o=n.loadSettings();this.hoverMode=o.general.hoverMode,this.plot=i.plot,this.settingsService.addObserver(this)}registerEvents(){this.mouseListener||(this.mouseListener=t=>{const n=t.clientX,i=t.clientY;this.commandContext.context.moveToPoint(n,i)}),this.removeEventListeners(),this.hoverMode==="pointermove"?this.plot.addEventListener("pointermove",this.mouseListener):this.hoverMode==="click"&&this.plot.addEventListener("click",this.mouseListener)}removeEventListeners(){this.mouseListener&&(this.plot.removeEventListener("pointermove",this.mouseListener),this.plot.removeEventListener("click",this.mouseListener))}unregister(){this.removeEventListeners()}update(t){const n=t.general.hoverMode;this.hoverMode!==n&&(this.hoverMode=n,this.registerEvents())}dispose(){this.unregister(),this.settingsService.removeObserver(this)}}class oP{constructor(t,n){P(this,"commandFactory");P(this,"commandContext");P(this,"onScopeChangeEmitter",new Yc);P(this,"lastEmittedScope");P(this,"onScopeChange",this.onScopeChangeEmitter.event);this.commandFactory=new WC(t),this.commandContext=t,this.lastEmittedScope=n}getContext(){return this.commandContext}executeCommand(t){const n=this.getCurrentScope(),i=e2[n];if(!(!i||!(t in i)))try{this.commandFactory.create(t).execute(),this.emitIfScopeChanged()}catch(o){console.error(`Failed to execute command ${t}:`,o)}}getCurrentScope(){return this.commandContext.context.scope}emitIfScopeChanged(){const t=this.getCurrentScope();t!==this.lastEmittedScope&&(this.lastEmittedScope=t,this.onScopeChangeEmitter.fire(t))}dispose(){this.onScopeChangeEmitter.dispose()}}class lP{constructor(t,n){P(this,"context");P(this,"display");this.context=t,this.display=n}toggle(){this.context.scope!==pn.COMMAND_PALETTE&&this.display.toggleFocus(pn.COMMAND_PALETTE)}returnToTraceScope(){this.context.scope!==pn.TRACE&&this.display.toggleFocus(pn.COMMAND_PALETTE)}}function sP(e){return e!==null&&typeof e=="object"&&"ensureInitialized"in e&&typeof e.ensureInitialized=="function"}class uP{constructor(t,n,i){P(this,"context");P(this,"focusStack");P(this,"plot");P(this,"onChangeEmitter");P(this,"onChange");P(this,"hasEnteredInteractive",!1);P(this,"textService");P(this,"isReturningFromModeToggle",!1);P(this,"textChangeDisposer",null);P(this,"hasClearedOnFirstNav",!1);this.context=t,this.focusStack=new Vw,this.focusStack.push(this.context.scope),this.plot=n,this.textService=i,this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event,this.removeInstruction(),this.textChangeDisposer=this.textService.onChange(()=>{this.hasClearedOnFirstNav||(this.plot.removeAttribute(me.ARIA_LABEL),this.hasClearedOnFirstNav=!0)})}dispose(){var t;this.addInstruction(),(t=this.textChangeDisposer)==null||t.dispose(),this.textChangeDisposer=null,this.onChangeEmitter.dispose()}getInstruction(t=!0){return this.context.getInstruction(t)}addInstruction(){this.plot.setAttribute(me.ARIA_LABEL,this.getInstruction()),this.plot.setAttribute(me.TITLE,this.getInstruction()),this.plot.setAttribute(me.ROLE,me.IMAGE),this.plot.tabIndex=0}removeInstruction(){const t=this.hasEnteredInteractive?"":this.getInstruction(!1);t?(this.plot.setAttribute(me.ARIA_LABEL,t),this.plot.removeAttribute(me.TITLE),this.plot.setAttribute(me.ROLE,me.APPLICATION),this.plot.tabIndex=0):(this.plot.removeAttribute(me.ARIA_LABEL),this.plot.removeAttribute(me.TITLE),this.plot.setAttribute(me.ROLE,me.APPLICATION),this.plot.tabIndex=0)}getTraceAriaLabel(){const t=this.textService.format(this.context.state);return t&&t.trim().length>0?t:this.getInstruction(!1)}toggleFocus(t){this.isReturningFromModeToggle=t==="BRAILLE"||t==="REVIEW"||t==="GO_TO_EXTREMA"||t==="COMMAND_PALETTE"||t==="SETTINGS"||t==="CHAT"||t==="HELP",this.isReturningFromModeToggle&&this.plot.removeAttribute(me.ARIA_LABEL),this.focusStack.removeLast(t)||this.focusStack.push(t);let n=this.focusStack.peek();if(this.isReturningFromModeToggle&&(n==="SUBPLOT"||n==="TRACE")){const o=this.context.state.type==="trace"?pn.TRACE:pn.SUBPLOT;n!==o&&(this.focusStack.clear(),this.focusStack.push(o),n=o)}this.context.toggleScope(n),this.updateFocus(n)}updateFocus(t){t==="TRACE"||t==="SUBPLOT"?(this.plot.tabIndex=0,setTimeout(()=>{if(this.isReturningFromModeToggle)this.isReturningFromModeToggle=!1,this.plot.removeAttribute(me.ARIA_LABEL);else{const n=this.context.active;n&&sP(n)&&n.ensureInitialized(),this.hasEnteredInteractive||this.plot.removeAttribute(me.ARIA_LABEL)}this.plot.setAttribute(me.ROLE,me.APPLICATION),this.plot.focus(),this.hasEnteredInteractive||(this.hasEnteredInteractive=!0),this.onChangeEmitter.fire({value:t})},0)):this.onChangeEmitter.fire({value:t})}}const Bm=e=>`${e}`,jm={currency:(e="USD",t=2,n="en-US")=>i=>{const o=typeof i=="number"?i:Number.parseFloat(String(i));return new Intl.NumberFormat(n,{style:"currency",currency:e,minimumFractionDigits:t,maximumFractionDigits:t}).format(o)},percent:(e=1)=>t=>`${((typeof t=="number"?t:Number.parseFloat(String(t)))*100).toFixed(e)}%`,date:(e,t="en-US")=>n=>{const i=new Date(n);return new Intl.DateTimeFormat(t,e).format(i)},number:(e=0,t="en-US")=>n=>{const i=typeof n=="number"?n:Number.parseFloat(String(n));return new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}).format(i)},scientific:(e=2)=>t=>(typeof t=="number"?t:Number.parseFloat(String(t))).toExponential(e),fixed:(e=2)=>t=>(typeof t=="number"?t:Number.parseFloat(String(t))).toFixed(e)};class t2{constructor(){}static resolveFormat(t){if(!t)return Bm;if(t.function)try{return new Function("value",t.function)}catch{return console.warn("Invalid format function string:",t.function),Bm}return t.type?this.resolveTypeSpecifier(t):Bm}static resolveTypeSpecifier(t){const{type:n,decimals:i,currency:o,locale:s,dateOptions:c}=t;switch(n){case"currency":return jm.currency(o??"USD",i??2,s??"en-US");case"percent":return jm.percent(i??1);case"fixed":return jm.fixed(i??2);case"number":return jm.number(i??0,s??"en-US");case"date":return jm.date(c,s??"en-US");case"scientific":return jm.scientific(i??2);default:return Bm}}static wrapFormat(t,n){const{missingText:i="missing"}=n??{};return o=>o==null||typeof o=="number"&&Number.isNaN(o)?i:t(o)}static applyFormat(t,n){return Array.isArray(t)?t.map(i=>n(i)):n(t)}}class cP{constructor(t){P(this,"formatters");this.formatters=new Map,this.initializeFormatters(t)}initializeFormatters(t){var n;for(const i of t.subplots)for(const o of i)for(const s of o.layers){const c=s.id,d=(n=s.axes)==null?void 0:n.format,h={x:this.resolveAxisFormat(d==null?void 0:d.x),y:this.resolveAxisFormat(d==null?void 0:d.y),fill:this.resolveAxisFormat(d==null?void 0:d.fill)};this.formatters.set(c,h)}}resolveAxisFormat(t){const n=t2.resolveFormat(t);return t2.wrapFormat(n)}getFormatter(t,n){const i=this.formatters.get(t);return i?i[n]:Bm}hasCustomFormatter(t,n){const i=this.formatters.get(t);return i?i[n]!==Bm:!1}formatValue(t,n,i){const o=this.getFormatter(n,i);return t2.applyFormat(t,o)}formatSingleValue(t,n,i){return this.getFormatter(n,i)(t)}formatArrayValue(t,n,i){const o=this.getFormatter(n,i);return t.map(s=>o(s))}dispose(){this.formatters.clear()}}class fP{constructor(t,n){P(this,"context");P(this,"display");this.context=t,this.display=n}toggle(t){if(t.empty)return;const n=this.context.active;n&&this.isExtremaNavigable(n)&&this.context.scope!==pn.GO_TO_EXTREMA&&this.display.toggleFocus(pn.GO_TO_EXTREMA)}isExtremaNavigable(t){return t instanceof jo&&t.supportsExtremaNavigation()}returnToTraceScope(){this.context.scope!==pn.TRACE&&this.display.toggleFocus(pn.GO_TO_EXTREMA)}}const n2=[{description:"Navigate Data Points",key:"arrow keys"},{description:"Move to Next Layer",key:"page up"},{description:"Move to Previous Layer",key:"page down"},{description:"Go to Left/Right/Top/Bottom Extreme Point",key:`${qt.ctrl} + arrow keys`},{description:"Toggle Braille Mode",key:"b"},{description:"Toggle Text Mode",key:"t"},{description:"Toggle Sonification Mode",key:"s"},{description:"Toggle Review Mode",key:"r"},{description:"Toggle High Contrast Mode",key:"c"},{description:"Autoplay Outward",key:`${qt.ctrl} + shift + arrow keys`},{description:"Stop Autoplay",key:`${qt.ctrl}`},{description:"Speed Up Autoplay",key:". (period)"},{description:"Speed Down Autoplay",key:", (comma)"},{description:"Reset Autoplay Speed",key:"/ (slash)"},{description:"Replay Current Point",key:"space"},{description:"Announce Plot Title",key:"l t"},{description:"Announce X Label",key:"l x"},{description:"Announce Y Label",key:"l y"},{description:"Announce Fill (Z) Label",key:"l f"},{description:"Open Settings",key:`${qt.ctrl} + ,`},{description:"Open Chat",key:"?"},{description:"Move to next navigation mode in Rotor",key:`${qt.alt}+shift+up`},{description:"Move to previous navigation mode in Rotor",key:`${qt.alt}+shift+down`}],QC=[{description:"Move around Subplot",key:"arrow keys"},{description:"Activate Current Subplot",key:`${qt.enter}`},{description:"Announce Plot Title",key:"l t"},{description:"Announce Subtitle",key:"l s"},{description:"Announce Caption",key:"l c"},{description:"Open Settings",key:`${qt.ctrl} + ,`}];class dP{constructor(t,n){P(this,"context");P(this,"display");P(this,"scopedMenuItems");this.context=t,this.display=n,this.scopedMenuItems={[pn.TRACE]:n2,[pn.TRACE_LABEL]:n2,[pn.BRAILLE]:n2,[pn.SUBPLOT]:QC,[pn.FIGURE_LABEL]:QC}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(pn.HELP)}}const ba="http://www.w3.org/2000/svg",S6=class S6{constructor(){P(this,"patternCache",new Map);P(this,"defsElement",null);P(this,"targetSvg",null);P(this,"patternGenerators",{"diagonal-stripes":this.createDiagonalStripes.bind(this),"square-grid":this.createSquareGrid.bind(this),dots:this.createDots.bind(this),"horizontal-lines":this.createHorizontalLines.bind(this),diamonds:this.createDiamonds.bind(this)})}initialize(t){this.targetSvg=t,this.ensureDefsElement()}getPattern(t){const{type:n,baseColor:i,patternColor:o,scale:s=1}=t,c=this.generateCacheKey(n,i,o,s),d=this.patternCache.get(c);if(d&&this.patternExists(d))return d;const h=this.createPattern(t);return this.patternCache.set(c,h.id),this.injectPattern(h),h.id}applyPattern(t,n){const o=`url(#${this.getPattern(n)})`,s=t.getAttribute("style")||"";if(s.match(/fill:[^;]+/i)){const c=s.replace(/fill:[^;]+/i,`fill:${o}`);t.setAttribute("style",c)}else t.setAttribute("fill",o)}removePattern(t,n){t.setAttribute("fill",n)}getPatternTypes(){return["diagonal-stripes","dots","square-grid","horizontal-lines","diamonds"]}getPatternTypeByIndex(t){const n=this.getPatternTypes();return n[t%n.length]}dispose(){var t;for(const n of this.patternCache.values()){const i=(t=this.targetSvg)==null?void 0:t.querySelector(`#${n}`);i==null||i.remove()}this.patternCache.clear(),this.defsElement=null,this.targetSvg=null}ensureDefsElement(){if(!this.targetSvg)throw new Error("PatternService not initialized with target SVG");let t=this.targetSvg.querySelector("defs");t||(t=document.createElementNS(ba,"defs"),this.targetSvg.insertBefore(t,this.targetSvg.firstChild)),this.defsElement=t}patternExists(t){var n;return!!((n=this.targetSvg)!=null&&n.querySelector(`#${t}`))}generateCacheKey(t,n,i,o){const s=this.normalizeColor(n),c=this.normalizeColor(i);return`${t}-${s}-${c}-${o}`}generatePatternId(t){const n=Date.now(),i=Math.random().toString(36).substring(2,8);return`${S6.PATTERN_PREFIX}-${t}-${n}-${i}`}normalizeColor(t){const n=document.createElement("canvas").getContext("2d");return n?(n.fillStyle="#000",n.fillStyle=t,n.fillStyle.toLowerCase()):t.toLowerCase().replace(/\s/g,"")}createPattern(t){const{type:n,baseColor:i,patternColor:o,scale:s=1}=t,c=this.patternGenerators[n];if(!c)throw new Error(`Unknown pattern type: ${n}`);const d=c(i,o,s),h=this.generatePatternId(n);return d.setAttribute("id",h),{id:h,element:d}}injectPattern(t){var n;this.defsElement||this.ensureDefsElement(),(n=this.defsElement)==null||n.appendChild(t.element)}createDiagonalStripes(t,n,i){const o=12*i,s=5*i,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o)),c.setAttribute("patternTransform","rotate(45)");const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"line");return h.setAttribute("x1","0"),h.setAttribute("y1","0"),h.setAttribute("x2","0"),h.setAttribute("y2",String(o)),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(s)),c.appendChild(h),c}createSquareGrid(t,n,i){const o=14*i,s=3*i,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o));const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"path");return h.setAttribute("d",`M ${o} 0 L 0 0 0 ${o}`),h.setAttribute("fill","none"),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(s)),c.appendChild(h),c}createDots(t,n,i){const o=16*i,s=4*i,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o));const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"circle");return h.setAttribute("cx",String(o/2)),h.setAttribute("cy",String(o/2)),h.setAttribute("r",String(s)),h.setAttribute("fill",n),c.appendChild(h),c}createHorizontalLines(t,n,i){const o=10*i,s=4*i,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o));const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"line");return h.setAttribute("x1","0"),h.setAttribute("y1",String(o/2)),h.setAttribute("x2",String(o)),h.setAttribute("y2",String(o/2)),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(s)),c.appendChild(h),c}createDiamonds(t,n,i){const o=16*i,s=o/2,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o)),c.setAttribute("patternTransform","rotate(45)");const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"rect");h.setAttribute("width",String(s)),h.setAttribute("height",String(s)),h.setAttribute("fill",n),c.appendChild(h);const y=document.createElementNS(ba,"rect");return y.setAttribute("x",String(s)),y.setAttribute("y",String(s)),y.setAttribute("width",String(s)),y.setAttribute("height",String(s)),y.setAttribute("fill",n),c.appendChild(y),c}};P(S6,"PATTERN_PREFIX","maidr-pattern");let r2=S6;const tn={LUMINANCE_RED_COEFF:.299,LUMINANCE_GREEN_COEFF:.587,LUMINANCE_BLUE_COEFF:.114,RGB_MAX_VALUE:255,NEAR_WHITE_LUMINANCE_SCALE:.1,MIN_COMPLEX_PATH_LENGTH:120,LIGHTNESS_MIDPOINT:.5,DEFAULT_MIDRANGE_LUMINANCE:.5,GLOW_FILTER_OFFSET:"-50%",GLOW_FILTER_SIZE:"200%",GLOW_BLUR_OUTER:20,GLOW_BLUR_MIDDLE:10,GLOW_BLUR_INNER:5,HSL_HUE_DIVISOR:6,HSL_GREEN_HUE_OFFSET:2,HSL_BLUE_HUE_OFFSET:4,HSL_THRESHOLD_ONE_SIXTH:1/6,HSL_THRESHOLD_ONE_HALF:1/2,HSL_THRESHOLD_TWO_THIRDS:2/3,HSL_THRESHOLD_ONE_THIRD:1/3};class hP{constructor(t,n,i,o,s){P(this,"settingsService");P(this,"notificationService");P(this,"displayService");P(this,"figure");P(this,"context");P(this,"settingsDisposable",null);P(this,"defaultBackgroundColor","");P(this,"defaultForegroundColor","");P(this,"originalColorInfo",null);P(this,"traceElementsCache",null);P(this,"patternService",null);P(this,"previousHighContrastMode",!1);P(this,"sharedCanvasCtx",null);this.settingsService=t,this.notificationService=n,this.displayService=i,this.figure=o,this.context=s,this.previousHighContrastMode=this.highContrastMode,this.settingsDisposable=this.settingsService.onChange(c=>{c.affectsSetting("general.highContrastMode")&&this.handleHighContrastModeChange(c.get("general.highContrastMode"))}),this.captureOriginalColors()}getSharedCanvasContext(){return this.sharedCanvasCtx||(this.sharedCanvasCtx=document.createElement("canvas").getContext("2d")),this.sharedCanvasCtx}get highContrastMode(){return this.settingsService.loadSettings().general.highContrastMode}get highContrastLightColor(){return this.settingsService.loadSettings().general.highContrastLightColor}get highContrastDarkColor(){return this.settingsService.loadSettings().general.highContrastDarkColor}get highContrastLevels(){return this.settingsService.loadSettings().general.highContrastLevels}get colorEquivalents(){return this.interpolateColors(this.highContrastLightColor,this.highContrastDarkColor,this.highContrastLevels)}initializeHighContrast(){this.highContrastMode&&this.applyHighContrast()}suspendHighContrast(){this.highContrastMode&&this.originalColorInfo&&this.restoreOriginalColors()}captureOriginalColors(){const t=window.getComputedStyle(document.body);this.defaultBackgroundColor=t.backgroundColor,this.defaultForegroundColor=t.color,this.originalColorInfo=this.getOriginalColorInfo()}validateCapturedElements(){return!this.originalColorInfo||this.originalColorInfo.length===0?!1:this.originalColorInfo.every(t=>t.element&&document.body.contains(t.element))}recaptureIfNeeded(){this.validateCapturedElements()||(console.warn("HighContrastService: DOM changed since capture, re-capturing colors"),this.captureOriginalColors())}dispose(){this.settingsDisposable&&(this.settingsDisposable.dispose(),this.settingsDisposable=null),this.patternService&&(this.patternService.dispose(),this.patternService=null)}handleHighContrastModeChange(t){t!==this.previousHighContrastMode&&(this.previousHighContrastMode=t,t?this.applyHighContrast():this.restoreOriginalColors())}toggleHighContrast(){const t=this.settingsService.loadSettings(),n=!t.general.highContrastMode;this.settingsService.saveSettings({...t,general:{...t.general,highContrastMode:n}});const i=`High Contrast Mode ${n?"on":"off"}`;this.notificationService.notify(i)}applyHighContrast(){var n,i;this.recaptureIfNeeded(),document.body.style.backgroundColor=this.highContrastDarkColor,document.body.style.color=this.highContrastLightColor;const t=this.getHighContrastColors();for(const o of t)if(o.element&&o.attrType==="style"){const c=(o.element.getAttribute("style")||"").replace(new RegExp(`${o.attr}:\\s*[^;]+`,"i"),`${o.attr}:${o.color}`);o.element.setAttribute("style",c)}else o.element&&o.attrType==="attribute"&&o.element.setAttribute(o.attr,o.color);this.addGlowShadowFilter(this.displayService.plot),(n=this.originalColorInfo)==null||n.forEach(o=>{this.hasParentWithStringInID(o.element,"text")&&o.element.setAttribute("filter","url(#glow-shadow)")}),"type"in this.context.instructionContext&&this.context.instructionContext.type==="line"&&((i=document.getElementById(this.context.id))==null||i.classList.add("high-contrast")),this.displayService.plot.setAttribute("style",`fill:${this.highContrastLightColor}`),"type"in this.context.instructionContext&&(this.context.instructionContext.type==="stacked_bar"||this.context.instructionContext.type==="dodged_bar")&&this.applyPatternsToElements(t)}restoreOriginalColors(){var t;this.originalColorInfo&&(document.body.style.backgroundColor=this.defaultBackgroundColor,document.body.style.color=this.defaultForegroundColor,this.originalColorInfo.forEach(n=>{if(n.element&&n.attrType==="style"){const o=(n.element.getAttribute("style")||"").replace(new RegExp(`${n.attr}:\\s*[^;]+`,"i"),`${n.attr}:${n.color}`);n.element.setAttribute("style",o)}else n.element&&n.attrType==="attribute"&&n.element.setAttribute(n.attr,n.color);n.element.getAttribute("filter")==="url(#glow-shadow)"&&n.element.removeAttribute("filter")}),"type"in this.context.instructionContext&&this.context.instructionContext.type==="line"&&((t=document.getElementById(this.context.id))==null||t.classList.remove("high-contrast")),this.displayService.plot.setAttribute("style",`fill:${this.defaultForegroundColor}`),this.patternService&&(this.patternService.dispose(),this.patternService=null))}getAllTraceElements(){if(this.traceElementsCache!==null)return this.traceElementsCache;const t=new Set;for(const n of this.figure.subplots)for(const i of n)for(const o of i.traces)for(const s of o){const c=s.getAllOriginalElements();for(const d of c)t.add(d)}return this.traceElementsCache=t,t}isTraceElement(t,n){return n.has(t)}getOriginalColorInfo(){const t=this.displayService.plot;if(!t)return null;const n=t.querySelectorAll("*"),i=this.getAllTraceElements(),o=[];for(let s=0;s<n.length;s++){const c=n[s];if(c.getAttribute("visibility")==="hidden")continue;const d=c.getAttribute("style")||"",h=d.match(/fill:\s*([^;]+)/i),y=d.match(/stroke:\s*([^;]+)/i),b=this.isTraceElement(c,i),S=c.getAttribute("d");let T=!1;S&&(T=S.length>tn.MIN_COMPLEX_PATH_LENGTH);const w=T;h&&o.push({element:c,color:h[1].trim(),isInSelectors:b,cantBeBackground:w,attr:"fill",attrType:"style"}),y&&o.push({element:c,color:y[1].trim(),isInSelectors:b,cantBeBackground:w,attr:"stroke",attrType:"style"});const C=c.getAttribute("fill");C&&o.push({element:c,color:C.trim(),isInSelectors:b,cantBeBackground:w,attr:"fill",attrType:"attribute"});const M=c.getAttribute("stroke");M&&o.push({element:c,color:M.trim(),isInSelectors:b,cantBeBackground:w,attr:"stroke",attrType:"attribute"})}return o}getHighContrastColors(){const t=this.originalColorInfo;return t?this.spreadColorsAcrossLuminanceSpectrum(t).map(o=>({...o,color:this.toColorStep(o)})):[]}hasParentWithStringInID(t,n="",i=""){let o=t.parentElement;for(;o&&!(o.tagName==="svg"||o.tagName==="BODY");){if(i.length>0&&o.id.startsWith(i))return!1;if(n.length>0&&o.id.startsWith(n))return!0;o=o.parentElement}return!1}addGlowShadowFilter(t){const n=t;if(n.querySelector("#glow-shadow"))return;let i=n.querySelector("defs");i||(i=document.createElementNS("http://www.w3.org/2000/svg","defs"),n.insertBefore(i,n.firstChild));const o=document.createElementNS("http://www.w3.org/2000/svg","filter");o.setAttribute("id","glow-shadow"),o.setAttribute("x",tn.GLOW_FILTER_OFFSET),o.setAttribute("y",tn.GLOW_FILTER_OFFSET),o.setAttribute("width",tn.GLOW_FILTER_SIZE),o.setAttribute("height",tn.GLOW_FILTER_SIZE);const s=`
    <feGaussianBlur in="SourceAlpha" stdDeviation="${tn.GLOW_BLUR_OUTER}" result="blur1"/>
    <feOffset dx="0" dy="0" result="offsetblur1" in="blur1"/>
    <feFlood flood-color="black" result="color1"/>
    <feComposite in="color1" in2="offsetblur1" operator="in" result="shadow1"/>

    <feGaussianBlur in="SourceAlpha" stdDeviation="${tn.GLOW_BLUR_MIDDLE}" result="blur2"/>
    <feOffset dx="0" dy="0" result="offsetblur2" in="blur2"/>
    <feFlood flood-color="black" result="color2"/>
    <feComposite in="color2" in2="offsetblur2" operator="in" result="shadow2"/>

    <feGaussianBlur in="SourceAlpha" stdDeviation="${tn.GLOW_BLUR_MIDDLE}" result="blur3"/>
    <feOffset dx="0" dy="0" result="offsetblur3" in="blur3"/>
    <feFlood flood-color="black" result="color3"/>
    <feComposite in="color3" in2="offsetblur3" operator="in" result="shadow3"/>

    <feGaussianBlur in="SourceAlpha" stdDeviation="${tn.GLOW_BLUR_INNER}" result="blur4"/>
    <feOffset dx="0" dy="0" result="offsetblur4" in="blur4"/>
    <feFlood flood-color="black" result="color4"/>
    <feComposite in="color4" in2="offsetblur4" operator="in" result="shadow4"/>

    <feMerge>
      <feMergeNode in="shadow1"/>
      <feMergeNode in="shadow2"/>
      <feMergeNode in="shadow3"/>
      <feMergeNode in="shadow4"/>
      <feMergeNode in="SourceGraphic"/>
    </feMerge>
  `;o.innerHTML=s,i.appendChild(o)}toColorStep(t){const n=t.color;if(n==="none"||n==="transparent")return n;if(this.hasParentWithStringInID(t.element,"text"))return this.highContrastLightColor;const i=[...this.colorEquivalents],o=this.getSharedCanvasContext();if(!o)return n;o.fillStyle="#000",o.fillStyle=n.trim();let s=o.fillStyle;if(/^#[0-9a-f]{8}$/i.test(s)){const y=Number.parseInt(s.slice(1,3),16),b=Number.parseInt(s.slice(3,5),16),S=Number.parseInt(s.slice(5,7),16),T=Number.parseInt(s.slice(7,9),16)/tn.RGB_MAX_VALUE,w=Math.round(y*T+tn.RGB_MAX_VALUE*(1-T)),C=Math.round(b*T+tn.RGB_MAX_VALUE*(1-T)),M=Math.round(S*T+tn.RGB_MAX_VALUE*(1-T));s=`#${w.toString(16).padStart(2,"0")}${C.toString(16).padStart(2,"0")}${M.toString(16).padStart(2,"0")}`}else if(!/^#[0-9a-f]{6}$/i.test(s))return n;let c=!1;const d=tn.NEAR_WHITE_LUMINANCE_SCALE;return"type"in this.context.instructionContext&&(this.context.instructionContext.type==="bar"||this.context.instructionContext.type==="histogram")&&t.isInSelectors&&(c=!0),this.findClosestColor(n,i,c,d,t.cantBeBackground)}findClosestColor(t,n,i,o,s){if(n.length===0)throw new Error("Color array cannot be empty");const c=b=>{const S=b.replace("#","");return{r:Number.parseInt(S.slice(0,2),16),g:Number.parseInt(S.slice(2,4),16),b:Number.parseInt(S.slice(4,6),16)}},d=b=>tn.LUMINANCE_RED_COEFF*b.r+tn.LUMINANCE_GREEN_COEFF*b.g+tn.LUMINANCE_BLUE_COEFF*b.b,h=(b,S)=>Math.sqrt((b.r-S.r)**2+(b.g-S.g)**2+(b.b-S.b)**2),y=c(t);if(s){const b=n.indexOf(this.highContrastDarkColor);b!==-1&&n.splice(b,1)}if(i){const b=d(y),S=tn.RGB_MAX_VALUE*(1-o);if(b>=S||n.length===1)return n[0];let T=n[0];if(n.length>1){let w=h(y,c(n[1]));for(let C=1;C<n.length;C++){const M=h(y,c(n[C]));M<w&&(w=M,T=n[C])}}return T}else{let b=n[0],S=h(y,c(n[0]));for(let C=1;C<n.length;C++){const M=h(y,c(n[C]));M<S&&(S=M,b=n[C])}const T=n.indexOf(b),w=n.length-1-T;return n[w]}}interpolateColors(t,n,i){const o=Math.max(2,Math.floor(i)),s=this.parseColorToRgb(t),c=this.parseColorToRgb(n);if(!s||!c)return[t,n];if(o===2)return[t,n];const d=[],h=y=>{const b=Math.round(s.r+y*(c.r-s.r)),S=Math.round(s.g+y*(c.g-s.g)),T=Math.round(s.b+y*(c.b-s.b));return this.rgbToHex({r:b,g:S,b:T})};for(let y=0;y<o;y++){const b=y/(o-1);d.push(h(b))}return d}parseColorToRgb(t){const n=t.trim(),i=this.getSharedCanvasContext();if(!i)return null;i.fillStyle="#000",i.fillStyle=n;const o=i.fillStyle;return/^#[0-9a-f]{6}$/i.test(o)?{r:Number.parseInt(o.slice(1,3),16),g:Number.parseInt(o.slice(3,5),16),b:Number.parseInt(o.slice(5,7),16)}:null}rgbToHex(t){const n=i=>Math.max(0,Math.min(tn.RGB_MAX_VALUE,i)).toString(16).padStart(2,"0");return`#${n(t.r)}${n(t.g)}${n(t.b)}`}normalizeColor(t){const n=this.getSharedCanvasContext();return n?(n.fillStyle="#000",n.fillStyle=t,n.fillStyle.toLowerCase()):t.toLowerCase().replace(/\s/g,"")}spreadColorsAcrossLuminanceSpectrum(t){const n=b=>{const S=b.r/tn.RGB_MAX_VALUE,T=b.g/tn.RGB_MAX_VALUE,w=b.b/tn.RGB_MAX_VALUE,C=Math.max(S,T,w),M=Math.min(S,T,w),_=(C+M)/2;if(C===M)return{h:0,s:0,l:_};const k=C-M,z=_>tn.LIGHTNESS_MIDPOINT?k/(2-C-M):k/(C+M);let L=0;return C===S?L=((T-w)/k+(T<w?tn.HSL_HUE_DIVISOR:0))/tn.HSL_HUE_DIVISOR:C===T?L=((w-S)/k+tn.HSL_GREEN_HUE_OFFSET)/tn.HSL_HUE_DIVISOR:L=((S-T)/k+tn.HSL_BLUE_HUE_OFFSET)/tn.HSL_HUE_DIVISOR,{h:L,s:z,l:_}},i=b=>{const{h:S,s:T,l:w}=b;if(T===0){const k=Math.round(w*tn.RGB_MAX_VALUE);return{r:k,g:k,b:k}}const C=(k,z,L)=>{let B=L;return B<0&&(B+=1),B>1&&(B-=1),B<tn.HSL_THRESHOLD_ONE_SIXTH?k+(z-k)*tn.HSL_HUE_DIVISOR*B:B<tn.HSL_THRESHOLD_ONE_HALF?z:B<tn.HSL_THRESHOLD_TWO_THIRDS?k+(z-k)*(tn.HSL_THRESHOLD_TWO_THIRDS-B)*tn.HSL_HUE_DIVISOR:k},M=w<tn.LIGHTNESS_MIDPOINT?w*(1+T):w+T-w*T,_=2*w-M;return{r:Math.round(C(_,M,S+tn.HSL_THRESHOLD_ONE_THIRD)*tn.RGB_MAX_VALUE),g:Math.round(C(_,M,S)*tn.RGB_MAX_VALUE),b:Math.round(C(_,M,S-tn.HSL_THRESHOLD_ONE_THIRD)*tn.RGB_MAX_VALUE)}},o=[];for(let b=0;b<t.length;b++){const S=t[b];if(!(S.color==="none"||S.color==="transparent")&&S.isInSelectors){const T=this.parseColorToRgb(S.color);if(T){const w=n(T);o.push({index:b,luminance:w.l,hsl:w})}}}if(o.length<=1)return t.map(b=>({...b}));const s=o.map(b=>b.luminance),c=Math.min(...s),h=Math.max(...s)-c,y=t.map(b=>({...b}));for(const b of o){let S;h===0?S=tn.DEFAULT_MIDRANGE_LUMINANCE:S=(b.luminance-c)/h;const T={h:b.hsl.h,s:b.hsl.s,l:S},w=i(T),C=this.rgbToHex(w);y[b.index].color=C}return y}applyPatternsToElements(t){if(!this.originalColorInfo)return;if(!this.patternService){this.patternService=new r2;const s=this.displayService.plot;this.patternService.initialize(s)}const n=new Map;for(const s of t)s.isInSelectors&&s.attr==="fill"&&n.set(s.element,s.color);const i=new Map;for(const s of this.originalColorInfo)if(s.isInSelectors&&s.attr==="fill"){const c=this.normalizeColor(s.color);i.has(c)||i.set(c,[]),i.get(c).push(s)}let o=0;for(const[s,c]of i){const d=this.patternService.getPatternTypeByIndex(o);for(const h of c){const y=n.get(h.element)||this.highContrastLightColor,b=this.getMostContrastingColor(y);this.patternService.applyPattern(h.element,{type:d,baseColor:y,patternColor:b})}o++}}getMostContrastingColor(t){const n=this.getRelativeLuminance(t),i=this.getRelativeLuminance(this.highContrastDarkColor),o=this.getRelativeLuminance(this.highContrastLightColor),s=Math.abs(n-i),c=Math.abs(n-o);return s>c?this.highContrastDarkColor:this.highContrastLightColor}getRelativeLuminance(t){const n=this.parseColorToRgb(t);return n?(tn.LUMINANCE_RED_COEFF*n.r+tn.LUMINANCE_GREEN_COEFF*n.g+tn.LUMINANCE_BLUE_COEFF*n.b)/tn.RGB_MAX_VALUE:tn.DEFAULT_MIDRANGE_LUMINANCE}}class pP{constructor(t){P(this,"highlightedElements");P(this,"settingsService");P(this,"highlightedSubplots");P(this,"currentHighlightColor");this.settingsService=t,this.highlightedElements=new Map,this.highlightedSubplots=new Set;const n=t.loadSettings();this.currentHighlightColor=n.general.highlightColor}dispose(){this.unhighlightAll()}isSettings(t){return"general"in t}createHighlightElement(t){if(!(t instanceof SVGElement))throw new TypeError("Invalid element provided for highlight creation");const n=Mt.createHighlightElement(t,this.currentHighlightColor);return n.id=`${me.MAIDR_HIGHLIGHT}-${Date.now()}-${Math.random()}`,n}handleSettingsUpdate(t){this.currentHighlightColor=t.general.highlightColor}handleStateUpdate(t){t.empty||(this.unhighlightTraceElements(),t.type==="figure"?this.handleFigureState(t):t.type==="subplot"?this.handleSubplotState(t):this.handleTraceState(t))}handleFigureState(t){t.empty||this.processHighlighting(t.highlight)}handleSubplotState(t){t.empty||this.processHighlighting(t.highlight)}handleTraceState(t){if(t.empty||t.highlight.empty)return;const n=this.getElementsFromHighlight(t.highlight);this.highlightTraceElements(n)}processHighlighting(t){if(t.empty)return;const n=this.getElementsFromHighlight(t);this.isMultiPlotScenario()?this.highlightSubplotElements(n):this.unhighlightSubplotElements()}getElementsFromHighlight(t){return t.empty?[]:Array.isArray(t.elements)?t.elements:[t.elements]}isMultiPlotScenario(){return document.querySelectorAll('g[id^="axes_"]').length>1}highlightTraceElements(t){for(const n of t)try{const i=this.createHighlightElement(n);this.highlightedElements.set(n,i)}catch(i){console.error("Failed to highlight element:",i)}}highlightSubplotElements(t){var o;this.unhighlightSubplotElements();const n=(o=document.querySelector('g[id^="maidr-"] > path[style*="fill"]'))==null?void 0:o.parentElement,i=(n==null?void 0:n.querySelector('path[style*="fill"]'))||void 0;for(const s of t)Mt.setSubplotHighlightSvgWithAdaptiveColor(s,this.currentHighlightColor,i),this.highlightedSubplots.add(s)}update(t){try{this.isSettings(t)?this.handleSettingsUpdate(t):this.handleStateUpdate(t)}catch(n){console.error("Failed to update highlight service:",n)}}highlight(t){if(!(t instanceof SVGElement)){console.warn("Invalid element provided to highlight method");return}try{this.unhighlight(t);const n=this.createHighlightElement(t);this.highlightedElements.set(t,n)}catch(n){console.error("Failed to highlight element:",n)}}unhighlight(t){if(!(t instanceof SVGElement))return;const n=this.highlightedElements.get(t);if(n)try{n.remove(),this.highlightedElements.delete(t)}catch(i){console.error("Failed to unhighlight element:",i)}}clear(){try{this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear(),this.unhighlightSubplotElements()}catch(t){console.error("Failed to clear highlights:",t)}}unhighlightTraceElements(){this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear()}unhighlightSubplotElements(){this.highlightedSubplots.forEach(t=>{Mt.removeSubplotHighlightSvg(t)}),this.highlightedSubplots.clear()}unhighlightAll(){this.unhighlightTraceElements(),this.unhighlightSubplotElements()}}class mP{constructor(){P(this,"onChangeEmitter");P(this,"onChange");this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class gP{constructor(t,n,i){P(this,"notification");P(this,"display");P(this,"text");P(this,"enabled");P(this,"onChangeEmitter");P(this,"onChange");this.notification=t,this.display=n,this.text=i,this.enabled=!1,this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}update(t){if(!this.enabled||t.empty)return;const n=this.text.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(t){if(t.empty){this.notification.notify("No info for review");return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(pn.REVIEW);const n=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}const KC={0:me.DATA_MODE,1:me.LOWER_VALUE_MODE,2:me.HIGHER_VALUE_MODE};class yP{constructor(t,n){P(this,"context");P(this,"text");P(this,"rotorIndex");this.context=t,this.rotorIndex=0,this.text=n}moveToNextRotorUnit(){return this.rotorIndex=(this.rotorIndex+1)%me.NO_OF_ROTOR_NAV_MODES,this.setMode(),this.getMode()}moveToPrevRotorUnit(){return this.rotorIndex=(this.rotorIndex-1+me.NO_OF_ROTOR_NAV_MODES)%me.NO_OF_ROTOR_NAV_MODES,this.setMode(),this.getMode()}getCurrentUnit(){return this.rotorIndex}callMoveToNextCompareMethod(t){const n=this.context.active,i=this.getCompareType();if(i!=="lower"&&i!=="higher")return console.error(`Unexpected compare type: ${i}`),null;if(n instanceof jo)if(n.getCurrentXValue()!==null){if(!n.moveToNextCompareValue(t,i)){const c=this.getMessage(i,t);return console.warn(c),c}}else console.error("Unable to retrieve the current X value.");else console.error("The active trace does not support 'callMoveToNextCompareMethod'.");return null}moveUp(){const t=this.context.active;try{if(t instanceof jo&&!t.moveUpRotor(this.getCompareType())){const i=this.getMessage(this.getCompareType(),"above");return console.warn(i),i}}catch{return this.moveRight()}return null}moveDown(){const t=this.context.active;try{if(t instanceof jo&&!t.moveDownRotor(this.getCompareType())){const i=this.getMessage(this.getCompareType(),"below");return console.warn(i),i}}catch{return this.moveLeft()}return null}moveLeft(){const t=this.context.active;try{if(t instanceof jo&&!t.moveLeftRotor(this.getCompareType())){const i=this.getMessage(this.getCompareType(),"left");return console.warn(i),i}}catch{return this.callMoveToNextCompareMethod("left")}return null}moveRight(){const t=this.context.active;try{if(t instanceof jo&&!t.moveRightRotor(this.getCompareType())){const i=this.getMessage(this.getCompareType(),"right");return console.warn(i),i}}catch{return this.callMoveToNextCompareMethod("right")}return null}setMode(){if(KC[this.rotorIndex]===me.DATA_MODE){this.context.setRotorEnabled(!1);return}this.context.setRotorEnabled(!0)}getMode(){return KC[this.rotorIndex]}getCompareType(){const t=this.getMode();return t===me.HIGHER_VALUE_MODE?"higher":(t===me.LOWER_VALUE_MODE,"lower")}getMessage(t,n){if(this.text.isOff())return"";if(this.text.isTerse())return`No ${t} value found ${n==="above"||n==="below"?"":"on the"} ${n}`;const i=n==="above"||n==="below"?"":`to the ${n} of`;return`No ${t} value found ${i} the current value.`}}const i2="maidr-settings";function vP(e,t){return t.split(".").reduce((n,i)=>n&&n[i],e)}function $5(e,t){const n=vP(e,t);if(n===void 0)throw new Error(`Setting not found: ${t}`);return n}class ZC{constructor(t,n){P(this,"oldSettings");P(this,"newSettings");this.oldSettings=t,this.newSettings=n}affectsSetting(t){const n=$5(this.oldSettings,t),i=$5(this.newSettings,t);return JSON.stringify(n)!==JSON.stringify(i)}get(t){return $5(this.newSettings,t)}}class bP{constructor(t,n){P(this,"storage");P(this,"display");P(this,"defaultSettings");P(this,"currentSettings");P(this,"observers");P(this,"onChangeEmitter");P(this,"onChange");this.storage=t,this.display=n,this.observers=[],this.defaultSettings={general:{volume:50,highlightColor:"#03c809",highContrastMode:!1,highContrastLevels:2,highContrastLightColor:"#ffffff",highContrastDarkColor:"#000000",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive",hoverMode:"pointermove"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OpenAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"Anthropic Claude",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Google Gemini",version:"gemini-2.0-flash"}}}},this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event;const i=this.storage.load(i2);this.currentSettings=i??this.defaultSettings}dispose(){this.onChangeEmitter.dispose()}loadSettings(){return this.currentSettings}saveSettings(t){const n=this.currentSettings;this.currentSettings=t,this.storage.save(i2,this.currentSettings),this.onChangeEmitter.fire(new ZC(n,t))}resetSettings(){const t=this.currentSettings;return this.currentSettings=this.defaultSettings,this.storage.remove(i2),this.onChangeEmitter.fire(new ZC(t,this.currentSettings)),this.currentSettings}get(t){return $5(this.currentSettings,t)}toggle(){this.display.toggleFocus(pn.SETTINGS)}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){for(const t of this.observers)t.update(this.currentSettings)}}class xP{save(t,n){try{const i=JSON.stringify(n);localStorage.setItem(t,i)}catch(i){console.error(`Error while saving ${t} to storage`,i)}}load(t){try{const n=localStorage.getItem(t);return n===null?null:JSON.parse(n)}catch(n){return console.error(`Error while loading ${t} from storage`,n),null}}remove(t){try{localStorage.removeItem(t)}catch(n){console.error(`Error while removing ${t} from storage`,n)}}}function JC(e){return!e.empty&&e.isLayerSwitch===!0&&typeof e.index=="number"&&typeof e.size=="number"}class SP{constructor(t,n){P(this,"notification");P(this,"formatter");P(this,"mode");P(this,"currentState",null);P(this,"currentSubplotIndex",null);P(this,"currentLayerId",null);P(this,"hasHadFirstNavigation",!1);P(this,"onChangeEmitter");P(this,"onChange");P(this,"onNavigationEmitter");P(this,"onNavigation");this.notification=t,this.formatter=n,this.mode="verbose",this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event,this.onNavigationEmitter=new Yc,this.onNavigation=this.onNavigationEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.onNavigationEmitter.dispose()}formatSingleValue(t,n){return this.formatter&&this.currentLayerId?this.formatter.formatSingleValue(t,this.currentLayerId,n):String(t)}formatArrayValue(t,n){return this.formatter&&this.currentLayerId?this.formatter.formatArrayValue(t,this.currentLayerId,n):t.map(i=>String(i))}getCurrentState(){return this.currentState}getCoordinateText(){return!this.currentState||this.currentState.empty?null:this.currentState.type==="subplot"&&!this.currentState.trace.empty?this.formatCoordinateText(this.currentState.trace):this.currentState.type==="trace"&&!this.currentState.empty?this.formatCoordinateText(this.currentState):null}isLayerSwitch(){if(!this.currentState||this.currentState.empty||this.currentState.type!=="subplot")return!1;const t=this.currentState.index;return this.currentSubplotIndex!==null&&this.currentSubplotIndex!==t?(this.currentSubplotIndex=t,!0):this.currentSubplotIndex===null?(this.currentSubplotIndex=t,t!==0):!1}getHasHadFirstNavigation(){return this.hasHadFirstNavigation}enableAnnouncements(){this.onNavigationEmitter.fire({type:"first_navigation"})}formatCoordinateText(t){if(t.empty||!t.text)return null;this.currentLayerId=t.layerId;const{text:n}=t,i=[],o=n.mainAxis??"x",s=n.crossAxis??"y";if(n.main&&n.main.value!==void 0){const c=Array.isArray(n.main.value)?this.formatArrayValue(n.main.value,o).join(", "):this.formatSingleValue(n.main.value,o);i.push(`${n.main.label} is ${c}`)}if(n.cross&&n.cross.value!==void 0){const c=Array.isArray(n.cross.value)?this.formatArrayValue(n.cross.value,s).join(", "):this.formatSingleValue(n.cross.value,s);i.push(`${n.cross.label} is ${c}`)}return n.fill&&n.fill.value!==void 0&&i.push(`${n.fill.label} is ${n.fill.value}`),i.length>0?i.join(", "):null}formatLayerSwitchAnnouncement(t){if(!JC(t))return"";this.currentLayerId=t.layerId;let n=`Layer ${t.index} of ${t.size}: ${t.plotType||t.traceType} plot`;if(t.text){const i=[],o=t.text.mainAxis??"x",s=t.text.crossAxis??"y";if(t.text.main&&t.text.main.value!==void 0){const d=Array.isArray(t.text.main.value)?this.formatArrayValue(t.text.main.value,o).join(", "):this.formatSingleValue(t.text.main.value,o);i.push(`${t.text.main.label} is ${d}`)}if(!(t.traceType==="violin_box")&&t.text.cross&&t.text.cross.value!==void 0){const d=Array.isArray(t.text.cross.value)?this.formatArrayValue(t.text.cross.value,s).join(", "):this.formatSingleValue(t.text.cross.value,s);i.push(`${t.text.cross.label} is ${d}`)}t.text.fill&&t.text.fill.value!==void 0&&i.push(`${t.text.fill.label} is ${t.text.fill.value}`),i.length>0&&(n+=` at ${i.join(", ")}`)}return n}format(t){return typeof t=="string"?t:!t||t.empty?t.type==="subplot"?"No additional layer":`No ${t.type==="trace"?"plot":t.type} info to display`:t.type==="figure"?this.formatFigureText(t.index,t.size,t.traceTypes):t.type==="subplot"?this.formatSubplotText(t.index,t.size,t.trace.traceType,t.trace):this.mode==="verbose"?this.formatVerboseTraceText(t.text):this.formatTerseTraceText(t.text)}formatFigureText(t,n,i){const o=i.length===1?`This is a ${i[0]} plot`:`This is a multi-layered plot containing ${i.join(me.COMMA_SPACE)} plots`;return`Subplot ${t} of ${n}: ${o}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,n,i,o){const s=o&&!o.empty?o.plotType:i;return`Layer ${t} of ${n}: ${s} plot`}isBoxPlotWithSection(t){return t.section!==void 0&&t.fill===void 0}formatVerboseTraceText(t){const n=new Array,i=t.mainAxis??"x",o=t.crossAxis??"y";if(n.push(t.main.label,me.IS),t.range!==void 0?n.push(this.formatSingleValue(t.range.min,i),me.THROUGH,this.formatSingleValue(t.range.max,i)):Array.isArray(t.main.value)?n.push(this.formatArrayValue(t.main.value,i).join(me.COMMA_SPACE)):n.push(this.formatSingleValue(t.main.value,i)),t.section&&this.isBoxPlotWithSection(t)&&(t.section===aa.UPPER_OUTLIER||t.section===aa.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const s=t.cross.label,c=t.cross.value,h=`[${this.formatArrayValue(c,o).join(", ")}]`,y=this.formatSingleValue(t.main.value,i);if(c.length===0)return`${t.main.label} is ${y}, no ${t.section.toLowerCase()} for ${s}`;{const b=c.length===1?"is":"are";return`${t.main.label} is ${y}, ${t.section.toLowerCase()} for ${s} ${b} ${h}`}}if(t.section!==void 0)if(this.isBoxPlotWithSection(t)){const s=t.cross.label;n.push(me.COMMA_SPACE,t.section.toLowerCase(),me.SPACE,s)}else n.push(me.COMMA_SPACE,t.section,me.SPACE,t.cross.label);else n.push(me.COMMA_SPACE,t.cross.label);if(Array.isArray(t.cross.value)?t.cross.value.length>1?n.push(me.ARE,this.formatArrayValue(t.cross.value,o).join(me.COMMA_SPACE)):t.cross.value.length>0&&n.push(me.IS,this.formatArrayValue(t.cross.value,o).join(me.COMMA_SPACE)):n.push(me.IS,this.formatSingleValue(t.cross.value,o)),t.fill!==void 0){let s;t.fill.value==="Bull"||t.fill.value==="Bear"?s=t.fill.value.toLowerCase():s=this.formatSingleValue(t.fill.value,"fill"),n.push(me.COMMA_SPACE,t.fill.label,me.IS,s)}return n.join(me.EMPTY)}formatTerseTraceText(t){const n=new Array,i=t.mainAxis??"x",o=t.crossAxis??"y";if(Array.isArray(t.main.value)?n.push(me.OPEN_BRACKET,this.formatArrayValue(t.main.value,i).join(me.COMMA_SPACE),me.CLOSE_BRACKET):n.push(this.formatSingleValue(t.main.value,i),me.COMMA_SPACE),t.section&&this.isBoxPlotWithSection(t)&&(t.section===aa.UPPER_OUTLIER||t.section===aa.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const s=t.cross.value,d=`[${this.formatArrayValue(s,o).join(", ")}]`,h=this.formatSingleValue(t.main.value,i);return s.length===0?`${h}, no ${t.section.toLowerCase()}`:`${h}, ${s.length} ${t.section.toLowerCase()} ${d}`}if(t.section!==void 0&&t.fill!==void 0?(n.push(t.section,me.SPACE),Array.isArray(t.cross.value)?n.push(me.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(me.COMMA_SPACE),me.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,o))):t.section!==void 0&&t.fill===void 0?(n.push(t.section,me.SPACE),Array.isArray(t.cross.value)?n.push(me.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(me.COMMA_SPACE),me.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,o))):Array.isArray(t.cross.value)?n.push(me.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(me.COMMA_SPACE),me.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,o)),t.fill!==void 0){let s;t.fill.value==="Bull"||t.fill.value==="Bear"?s=t.fill.value.toLowerCase():s=this.formatSingleValue(t.fill.value,"fill"),t.section,n.push(me.COMMA_SPACE,s)}return n.join(me.EMPTY)}update(t){if(this.mode==="off")return;if(this.currentState=t,t.type==="trace"&&!t.empty?this.currentLayerId=t.layerId:t.type==="subplot"&&!t.empty&&!t.trace.empty&&(this.currentLayerId=t.trace.layerId),t.type==="trace"&&JC(t)){const i=this.formatLayerSwitchAnnouncement(t);this.notification.notify(i);return}if(t.type==="subplot"){const i=this.format(t);i&&this.notification.notify(i);return}t.type==="figure"&&!t.empty&&!this.hasHadFirstNavigation&&(this.hasHadFirstNavigation=!0,this.onNavigationEmitter.fire({type:"first_navigation"}));const n=this.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(){switch(this.mode){case"off":this.mode="verbose";break;case"terse":this.mode="off";break;case"verbose":this.mode="terse";break}const t=`Text mode is ${this.mode}`;return this.notification.notify(t),this.mode!=="off"}isVerbose(){return this.mode==="verbose"}isTerse(){return this.mode==="terse"}isOff(){return this.mode==="off"}}var vi={};function xa(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var EP=typeof Symbol=="function"&&Symbol.observable||"@@observable",e9=EP,a2=()=>Math.random().toString(36).substring(7).split("").join("."),wP={INIT:`@@redux/INIT${a2()}`,REPLACE:`@@redux/REPLACE${a2()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a2()}`},sh=wP;function yv(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function TP(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(OP(e))return"date";if(CP(e))return"error";const n=AP(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function AP(e){return typeof e.constructor=="function"?e.constructor.name:null}function CP(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function OP(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Od(e){let t=typeof e;return vi.NODE_ENV!=="production"&&(t=TP(e)),t}function t9(e,t,n){if(typeof e!="function")throw new Error(vi.NODE_ENV==="production"?xa(2):`Expected the root reducer to be a function. Instead, received: '${Od(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(vi.NODE_ENV==="production"?xa(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(vi.NODE_ENV==="production"?xa(1):`Expected the enhancer to be a function. Instead, received: '${Od(n)}'`);return n(t9)(e,t)}let i=e,o=t,s=new Map,c=s,d=0,h=!1;function y(){c===s&&(c=new Map,s.forEach((_,k)=>{c.set(k,_)}))}function b(){if(h)throw new Error(vi.NODE_ENV==="production"?xa(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function S(_){if(typeof _!="function")throw new Error(vi.NODE_ENV==="production"?xa(4):`Expected the listener to be a function. Instead, received: '${Od(_)}'`);if(h)throw new Error(vi.NODE_ENV==="production"?xa(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let k=!0;y();const z=d++;return c.set(z,_),function(){if(k){if(h)throw new Error(vi.NODE_ENV==="production"?xa(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");k=!1,y(),c.delete(z),s=null}}}function T(_){if(!yv(_))throw new Error(vi.NODE_ENV==="production"?xa(7):`Actions must be plain objects. Instead, the actual type was: '${Od(_)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof _.type>"u")throw new Error(vi.NODE_ENV==="production"?xa(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof _.type!="string")throw new Error(vi.NODE_ENV==="production"?xa(17):`Action "type" property must be a string. Instead, the actual type was: '${Od(_.type)}'. Value was: '${_.type}' (stringified)`);if(h)throw new Error(vi.NODE_ENV==="production"?xa(9):"Reducers may not dispatch actions.");try{h=!0,o=i(o,_)}finally{h=!1}return(s=c).forEach(z=>{z()}),_}function w(_){if(typeof _!="function")throw new Error(vi.NODE_ENV==="production"?xa(10):`Expected the nextReducer to be a function. Instead, received: '${Od(_)}`);i=_,T({type:sh.REPLACE})}function C(){const _=S;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(vi.NODE_ENV==="production"?xa(11):`Expected the observer to be an object. Instead, received: '${Od(k)}'`);function z(){const B=k;B.next&&B.next(b())}return z(),{unsubscribe:_(z)}},[e9](){return this}}}return T({type:sh.INIT}),{dispatch:T,subscribe:S,getState:b,replaceReducer:w,[e9]:C}}function n9(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function RP(e,t,n,i){const o=Object.keys(t),s=n&&n.type===sh.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!yv(e))return`The ${s} has unexpected type of "${Od(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const c=Object.keys(e).filter(d=>!t.hasOwnProperty(d)&&!i[d]);if(c.forEach(d=>{i[d]=!0}),!(n&&n.type===sh.REPLACE)&&c.length>0)return`Unexpected ${c.length>1?"keys":"key"} "${c.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function MP(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:sh.INIT})>"u")throw new Error(vi.NODE_ENV==="production"?xa(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:sh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(vi.NODE_ENV==="production"?xa(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${sh.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function _P(e){const t=Object.keys(e),n={};for(let c=0;c<t.length;c++){const d=t[c];vi.NODE_ENV!=="production"&&typeof e[d]>"u"&&n9(`No reducer provided for key "${d}"`),typeof e[d]=="function"&&(n[d]=e[d])}const i=Object.keys(n);let o;vi.NODE_ENV!=="production"&&(o={});let s;try{MP(n)}catch(c){s=c}return function(d={},h){if(s)throw s;if(vi.NODE_ENV!=="production"){const S=RP(d,n,h,o);S&&n9(S)}let y=!1;const b={};for(let S=0;S<i.length;S++){const T=i[S],w=n[T],C=d[T],M=w(C,h);if(typeof M>"u"){const _=h&&h.type;throw new Error(vi.NODE_ENV==="production"?xa(14):`When called with an action of type ${_?`"${String(_)}"`:"(unknown type)"}, the slice reducer for key "${T}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}b[T]=M,y=y||M!==C}return y=y||i.length!==Object.keys(d).length,y?b:d}}function H5(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function DP(...e){return t=>(n,i)=>{const o=t(n,i);let s=()=>{throw new Error(vi.NODE_ENV==="production"?xa(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const c={getState:o.getState,dispatch:(h,...y)=>s(h,...y)},d=e.map(h=>h(c));return s=H5(...d)(o.dispatch),{...o,dispatch:s}}}function r9(e){return yv(e)&&"type"in e&&typeof e.type=="string"}var q5={},i9=Symbol.for("immer-nothing"),a9=Symbol.for("immer-draftable"),fo=Symbol.for("immer-state"),NP=q5.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ml(e,...t){if(q5.NODE_ENV!=="production"){const n=NP[e],i=uh(n)?n.apply(null,t):n;throw new Error(`[Immer] ${i}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gl=Object,Pm=gl.getPrototypeOf,G5="constructor",F5="prototype",o2="configurable",Y5="enumerable",X5="writable",vv="value",Qc=e=>!!e&&!!e[fo];function iu(e){var t;return e?l9(e)||K5(e)||!!e[a9]||!!((t=e[G5])!=null&&t[a9])||Z5(e)||J5(e):!1}var kP=gl[F5][G5].toString(),o9=new WeakMap;function l9(e){if(!e||!s2(e))return!1;const t=Pm(e);if(t===null||t===gl[F5])return!0;const n=gl.hasOwnProperty.call(t,G5)&&t[G5];if(n===Object)return!0;if(!uh(n))return!1;let i=o9.get(n);return i===void 0&&(i=Function.toString.call(n),o9.set(n,i)),i===kP}function W5(e,t,n=!0){bv(e)===0?(n?Reflect.ownKeys(e):gl.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((i,o)=>t(o,i,e))}function bv(e){const t=e[fo];return t?t.type_:K5(e)?1:Z5(e)?2:J5(e)?3:0}var s9=(e,t,n=bv(e))=>n===2?e.has(t):gl[F5].hasOwnProperty.call(e,t),l2=(e,t,n=bv(e))=>n===2?e.get(t):e[t],Q5=(e,t,n,i=bv(e))=>{i===2?e.set(t,n):i===3?e.add(n):e[t]=n};function zP(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var K5=Array.isArray,Z5=e=>e instanceof Map,J5=e=>e instanceof Set,s2=e=>typeof e=="object",uh=e=>typeof e=="function",u2=e=>typeof e=="boolean";function IP(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Kc=e=>e.copy_||e.base_,c2=e=>e.modified_?e.copy_:e.base_;function f2(e,t){if(Z5(e))return new Map(e);if(J5(e))return new Set(e);if(K5(e))return Array[F5].slice.call(e);const n=l9(e);if(t===!0||t==="class_only"&&!n){const i=gl.getOwnPropertyDescriptors(e);delete i[fo];let o=Reflect.ownKeys(i);for(let s=0;s<o.length;s++){const c=o[s],d=i[c];d[X5]===!1&&(d[X5]=!0,d[o2]=!0),(d.get||d.set)&&(i[c]={[o2]:!0,[X5]:!0,[Y5]:d[Y5],[vv]:e[c]})}return gl.create(Pm(e),i)}else{const i=Pm(e);if(i!==null&&n)return{...e};const o=gl.create(i);return gl.assign(o,e)}}function d2(e,t=!1){return tS(e)||Qc(e)||!iu(e)||(bv(e)>1&&gl.defineProperties(e,{set:eS,add:eS,clear:eS,delete:eS}),gl.freeze(e),t&&W5(e,(n,i)=>{d2(i,!0)},!1)),e}function LP(){ml(2)}var eS={[vv]:LP};function tS(e){return e===null||!s2(e)?!0:gl.isFrozen(e)}var nS="MapSet",h2="Patches",u9="ArrayMethods",c9={};function ch(e){const t=c9[e];return t||ml(0,e),t}var f9=e=>!!c9[e],xv,d9=()=>xv,VP=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:f9(nS)?ch(nS):void 0,arrayMethodsPlugin_:f9(u9)?ch(u9):void 0});function h9(e,t){t&&(e.patchPlugin_=ch(h2),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function p2(e){m2(e),e.drafts_.forEach(BP),e.drafts_=null}function m2(e){e===xv&&(xv=e.parent_)}var p9=e=>xv=VP(xv,e);function BP(e){const t=e[fo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function m9(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[fo].modified_&&(p2(t),ml(4)),iu(e)&&(e=g9(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[fo].base_,e,t)}else e=g9(t,n);return jP(t,e,!0),p2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i9?e:void 0}function g9(e,t){if(tS(t))return t;const n=t[fo];if(!n)return iS(t,e.handledSet_,e);if(!rS(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:i}=n;if(i)for(;i.length>0;)i.pop()(e);b9(n,e)}return n.copy_}function jP(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&d2(t,n)}function y9(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var rS=(e,t)=>e.scope_===t,PP=[];function v9(e,t,n,i){const o=Kc(e),s=e.type_;if(i!==void 0&&l2(o,i,s)===t){Q5(o,i,n,s);return}if(!e.draftLocations_){const d=e.draftLocations_=new Map;W5(o,(h,y)=>{if(Qc(y)){const b=d.get(y)||[];b.push(h),d.set(y,b)}})}const c=e.draftLocations_.get(t)??PP;for(const d of c)Q5(o,d,n,s)}function UP(e,t,n){e.callbacks_.push(function(o){var d;const s=t;if(!s||!rS(s,o))return;(d=o.mapSetPlugin_)==null||d.fixSetContents(s);const c=c2(s);v9(e,s.draft_??s,c,n),b9(s,o)})}function b9(e,t){var i;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((i=e.assigned_)==null?void 0:i.size)??0)>0)){const{patchPlugin_:o}=t;if(o){const s=o.getPath(e);s&&o.generatePatches_(e,s,t)}y9(e)}}function $P(e,t,n){const{scope_:i}=e;if(Qc(n)){const o=n[fo];rS(o,i)&&o.callbacks_.push(function(){oS(e);const c=c2(o);v9(e,n,c,t)})}else iu(n)&&e.callbacks_.push(function(){const s=Kc(e);e.type_===3?s.has(n)&&iS(n,i.handledSet_,i):l2(s,t,e.type_)===n&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&iS(l2(e.copy_,t,e.type_),i.handledSet_,i)})}function iS(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Qc(e)||t.has(e)||!iu(e)||tS(e)||(t.add(e),W5(e,(i,o)=>{if(Qc(o)){const s=o[fo];if(rS(s,n)){const c=c2(s);Q5(e,i,c,e.type_),y9(s)}}else iu(o)&&iS(o,t,n)})),e}function HP(e,t){const n=K5(e),i={type_:n?1:0,scope_:t?t.scope_:d9(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=i,s=aS;n&&(o=[i],s=Sv);const{revoke:c,proxy:d}=Proxy.revocable(o,s);return i.draft_=d,i.revoke_=c,[d,i]}var aS={get(e,t){if(t===fo)return e;let n=e.scope_.arrayMethodsPlugin_;const i=e.type_===1&&typeof t=="string";if(i&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const o=Kc(e);if(!s9(o,t,e.type_))return qP(e,o,t);const s=o[t];if(e.finalized_||!iu(s)||i&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&IP(t))return s;if(s===g2(e.base_,t)){oS(e);const c=e.type_===1?+t:t,d=v2(e.scope_,s,e,c);return e.copy_[c]=d}return s},has(e,t){return t in Kc(e)},ownKeys(e){return Reflect.ownKeys(Kc(e))},set(e,t,n){const i=x9(Kc(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=g2(Kc(e),t),s=o==null?void 0:o[fo];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(zP(n,o)&&(n!==void 0||s9(e.base_,t,e.type_)))return!0;oS(e),y2(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),$P(e,t,n)),!0},deleteProperty(e,t){return oS(e),g2(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),y2(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Kc(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{[X5]:!0,[o2]:e.type_!==1||t!=="length",[Y5]:i[Y5],[vv]:n[t]}},defineProperty(){ml(11)},getPrototypeOf(e){return Pm(e.base_)},setPrototypeOf(){ml(12)}},Sv={};for(let e in aS){let t=aS[e];Sv[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Sv.deleteProperty=function(e,t){return q5.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ml(13),Sv.set.call(this,e,t,void 0)},Sv.set=function(e,t,n){return q5.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ml(14),aS.set.call(this,e[0],t,n,e[0])};function g2(e,t){const n=e[fo];return(n?Kc(n):e)[t]}function qP(e,t,n){var o;const i=x9(t,n);return i?vv in i?i[vv]:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function x9(e,t){if(!(t in e))return;let n=Pm(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Pm(n)}}function y2(e){e.modified_||(e.modified_=!0,e.parent_&&y2(e.parent_))}function oS(e){e.copy_||(e.assigned_=new Map,e.copy_=f2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var GP=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,i)=>{if(uh(t)&&!uh(n)){const s=n;n=t;const c=this;return function(h=s,...y){return c.produce(h,b=>n.call(this,b,...y))}}uh(n)||ml(6),i!==void 0&&!uh(i)&&ml(7);let o;if(iu(t)){const s=p9(this),c=v2(s,t,void 0);let d=!0;try{o=n(c),d=!1}finally{d?p2(s):m2(s)}return h9(s,i),m9(o,s)}else if(!t||!s2(t)){if(o=n(t),o===void 0&&(o=t),o===i9&&(o=void 0),this.autoFreeze_&&d2(o,!0),i){const s=[],c=[];ch(h2).generateReplacementPatches_(t,o,{patches_:s,inversePatches_:c}),i(s,c)}return o}else ml(1,t)},this.produceWithPatches=(t,n)=>{if(uh(t))return(c,...d)=>this.produceWithPatches(c,h=>t(h,...d));let i,o;return[this.produce(t,n,(c,d)=>{i=c,o=d}),i,o]},u2(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),u2(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),u2(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){iu(e)||ml(8),Qc(e)&&(e=FP(e));const t=p9(this),n=v2(t,e,void 0);return n[fo].isManual_=!0,m2(t),n}finishDraft(e,t){const n=e&&e[fo];(!n||!n.isManual_)&&ml(9);const{scope_:i}=n;return h9(i,t),m9(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=ch(h2).applyPatches_;return Qc(e)?i(e,t):this.produce(e,o=>i(o,t))}};function v2(e,t,n,i){const[o,s]=Z5(t)?ch(nS).proxyMap_(t,n):J5(t)?ch(nS).proxySet_(t,n):HP(t,n);return((n==null?void 0:n.scope_)??d9()).drafts_.push(o),s.callbacks_=(n==null?void 0:n.callbacks_)??[],s.key_=i,n&&i!==void 0?UP(n,s,i):s.callbacks_.push(function(h){var b;(b=h.mapSetPlugin_)==null||b.fixSetContents(s);const{patchPlugin_:y}=h;s.modified_&&y&&y.generatePatches_(s,[],h)}),o}function FP(e){return Qc(e)||ml(10,e),S9(e)}function S9(e){if(!iu(e)||tS(e))return e;const t=e[fo];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=f2(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=f2(e,!0);return W5(n,(o,s)=>{Q5(n,o,S9(s))},i),t&&(t.finalized_=!1),n}var YP=new GP,E9=YP.produce,XP={},WP=(e,t,n)=>{if(t.length===1&&t[0]===n){let i=!1;try{const o={};e(o)===o&&(i=!0)}catch{}if(i){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
\`createSelector([state => state.todos], todos => todos)\`
This could lead to inefficient memoization and unnecessary re-renders.
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},QP=(e,t,n)=>{const{memoize:i,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:c}=e,d=i(()=>({}),...o);if(!(d.apply(null,s)===d.apply(null,c))){let y;try{throw new Error}catch(b){({stack:y}=b)}console.warn(`An input selector returned a different result when passed same arguments.
This means your output selector will likely run more frequently than intended.
Avoid returning a new reference inside your input selector, e.g.
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:c,stack:y})}},KP={inputStabilityCheck:"once",identityFunctionCheck:"once"};function ZP(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function JP(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function eU(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var w9=e=>Array.isArray(e)?e:[e];function tU(e){const t=Array.isArray(e[0])?e[0]:e;return eU(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function T9(e,t){const n=[],{length:i}=e;for(let o=0;o<i;o++)n.push(e[o].apply(null,t));return n}var nU=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:i}={...KP,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:WP},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&e,run:QP}}},rU=class{constructor(e){this.value=e}deref(){return this.value}},iU=typeof WeakRef<"u"?WeakRef:rU,aU=0,A9=1;function lS(){return{s:aU,v:void 0,o:null,p:null}}function C9(e,t={}){let n=lS();const{resultEqualityCheck:i}=t;let o,s=0;function c(){var S;let d=n;const{length:h}=arguments;for(let T=0,w=h;T<w;T++){const C=arguments[T];if(typeof C=="function"||typeof C=="object"&&C!==null){let M=d.o;M===null&&(d.o=M=new WeakMap);const _=M.get(C);_===void 0?(d=lS(),M.set(C,d)):d=_}else{let M=d.p;M===null&&(d.p=M=new Map);const _=M.get(C);_===void 0?(d=lS(),M.set(C,d)):d=_}}const y=d;let b;if(d.s===A9)b=d.v;else if(b=e.apply(null,arguments),s++,i){const T=((S=o==null?void 0:o.deref)==null?void 0:S.call(o))??o;T!=null&&i(T,b)&&(b=T,s!==0&&s--),o=typeof b=="object"&&b!==null||typeof b=="function"?new iU(b):b}return y.s=A9,y.v=b,b}return c.clearCache=()=>{n=lS(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}function oU(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...o)=>{let s=0,c=0,d,h={},y=o.pop();typeof y=="object"&&(h=y,y=o.pop()),ZP(y,`createSelector expects an output function after the inputs, but received: [${typeof y}]`);const b={...n,...h},{memoize:S,memoizeOptions:T=[],argsMemoize:w=C9,argsMemoizeOptions:C=[],devModeChecks:M={}}=b,_=w9(T),k=w9(C),z=tU(o),L=S(function(){return s++,y.apply(null,arguments)},..._);let B=!0;const V=w(function(){c++;const X=T9(z,arguments);if(d=L.apply(null,X),XP.NODE_ENV!=="production"){const{identityFunctionCheck:se,inputStabilityCheck:ce}=nU(B,M);if(se.shouldRun&&se.run(y,X,d),ce.shouldRun){const ie=T9(z,arguments);ce.run({inputSelectorResults:X,inputSelectorResultsCopy:ie},{memoize:S,memoizeOptions:_},arguments)}B&&(B=!1)}return d},...k);return Object.assign(V,{resultFunc:y,memoizedResultFunc:L,dependencies:z,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>d,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:S,argsMemoize:w})};return Object.assign(i,{withTypes:()=>i}),i}var lU=oU(C9),sU=Object.assign((e,t=lU)=>{JP(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(s=>e[s]);return t(i,(...s)=>s.reduce((c,d,h)=>(c[n[h]]=d,c),{}))},{withTypes:()=>sU});function O9(e){return({dispatch:n,getState:i})=>o=>s=>typeof s=="function"?s(n,i,e):o(s)}var uU=O9(),cU=O9,Jt={},fU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?H5:H5.apply(null,arguments)},dU=e=>e&&typeof e.match=="function";function R9(e,t){function n(...i){if(t){let o=t(...i);if(!o)throw new Error(Jt.NODE_ENV==="production"?Tr(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:i[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=i=>r9(i)&&i.type===e,n}function hU(e){return typeof e=="function"&&"type"in e&&dU(e)}function pU(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched. 
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function mU(e={}){if(Jt.NODE_ENV==="production")return()=>n=>i=>n(i);const{isActionCreator:t=hU}=e;return()=>n=>i=>(t(i)&&console.warn(pU(i.type)),n(i))}function M9(e,t){let n=0;return{measureTime(i){const o=Date.now();try{return i()}finally{const s=Date.now();n+=s-o}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms. 
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
It is disabled in production builds, so you don't need to worry about that.`)}}}var _9=class k5 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,k5.prototype)}static get[Symbol.species](){return k5}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new k5(...t[0].concat(this)):new k5(...t.concat(this))}};function D9(e){return iu(e)?E9(e,()=>{}):e}function sS(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function gU(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function yU(e,t,n){const i=N9(e,t,n);return{detectMutations(){return k9(e,t,i,n)}}}function N9(e,t=[],n,i="",o=new Set){const s={value:n};if(!e(n)&&!o.has(n)){o.add(n),s.children={};const c=t.length>0;for(const d in n){const h=i?i+"."+d:d;c&&t.some(b=>b instanceof RegExp?b.test(h):h===b)||(s.children[d]=N9(e,t,n[d],h))}}return s}function k9(e,t=[],n,i,o=!1,s=""){const c=n?n.value:void 0,d=c===i;if(o&&!d&&!Number.isNaN(i))return{wasMutated:!0,path:s};if(e(c)||e(i))return{wasMutated:!1};const h={};for(let b in n.children)h[b]=!0;for(let b in i)h[b]=!0;const y=t.length>0;for(let b in h){const S=s?s+"."+b:b;if(y&&t.some(C=>C instanceof RegExp?C.test(S):S===C))continue;const T=k9(e,t,n.children[b],i[b],d,S);if(T.wasMutated)return T}return{wasMutated:!1}}function vU(e={}){if(Jt.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(d,h,y,b){return JSON.stringify(d,n(h,b),y)},n=function(d,h){let y=[],b=[];return h||(h=function(S,T){return y[0]===T?"[Circular ~]":"[Circular ~."+b.slice(0,y.indexOf(T)).join(".")+"]"}),function(S,T){if(y.length>0){var w=y.indexOf(this);~w?y.splice(w+1):y.push(this),~w?b.splice(w,1/0,S):b.push(S),~y.indexOf(T)&&(T=h.call(this,S,T))}else y.push(T);return d==null?T:d.call(this,S,T)}},{isImmutable:i=gU,ignoredPaths:o,warnAfter:s=32}=e;const c=yU.bind(null,i,o);return({getState:d})=>{let h=d(),y=c(h),b;return S=>T=>{const w=M9(s,"ImmutableStateInvariantMiddleware");w.measureTime(()=>{if(h=d(),b=y.detectMutations(),y=c(h),b.wasMutated)throw new Error(Jt.NODE_ENV==="production"?Tr(19):`A state mutation was detected between dispatches, in the path '${b.path||""}'.  This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const C=S(T);return w.measureTime(()=>{if(h=d(),b=y.detectMutations(),y=c(h),b.wasMutated)throw new Error(Jt.NODE_ENV==="production"?Tr(20):`A state mutation was detected inside a dispatch, in the path: ${b.path||""}. Take a look at the reducer(s) handling the action ${t(T)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),w.warnIfExceeded(),C}}}}function z9(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||yv(e)}function b2(e,t="",n=z9,i,o=[],s){let c;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s!=null&&s.has(e))return!1;const d=i!=null?i(e):Object.entries(e),h=o.length>0;for(const[y,b]of d){const S=t?t+"."+y:y;if(!(h&&o.some(w=>w instanceof RegExp?w.test(S):S===w))){if(!n(b))return{keyPath:S,value:b};if(typeof b=="object"&&(c=b2(b,S,n,i,o,s),c))return c}}return s&&I9(e)&&s.add(e),!1}function I9(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!I9(t))return!1;return!0}function bU(e={}){if(Jt.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=z9,getEntries:n,ignoredActions:i=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:c=32,ignoreState:d=!1,ignoreActions:h=!1,disableCache:y=!1}=e,b=!y&&WeakSet?new WeakSet:void 0;return S=>T=>w=>{if(!r9(w))return T(w);const C=T(w),M=M9(c,"SerializableStateInvariantMiddleware");return!h&&!(i.length&&i.indexOf(w.type)!==-1)&&M.measureTime(()=>{const _=b2(w,"",t,n,o,b);if(_){const{keyPath:k,value:z}=_;console.error(`A non-serializable value was detected in an action, in the path: \`${k}\`. Value:`,z,`
Take a look at the logic that dispatched this action: `,w,`
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),d||(M.measureTime(()=>{const _=S.getState(),k=b2(_,"",t,n,s,b);if(k){const{keyPath:z,value:L}=k;console.error(`A non-serializable value was detected in the state, in the path: \`${z}\`. Value:`,L,`
Take a look at the reducer(s) handling this action type: ${w.type}.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),M.warnIfExceeded()),C}}}function uS(e){return typeof e=="boolean"}var xU=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let c=new _9;if(n&&(uS(n)?c.push(uU):c.push(cU(n.extraArgument))),Jt.NODE_ENV!=="production"){if(i){let d={};uS(i)||(d=i),c.unshift(vU(d))}if(o){let d={};uS(o)||(d=o),c.push(bU(d))}if(s){let d={};uS(s)||(d=s),c.unshift(mU(d))}}return c},SU="RTK_autoBatch",L9=e=>t=>{setTimeout(t,e)},EU=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,s=!1,c=!1;const d=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:L9(10):e.type==="callback"?e.queueNotification:L9(e.timeout),y=()=>{c=!1,s&&(s=!1,d.forEach(b=>b()))};return Object.assign({},i,{subscribe(b){const S=()=>o&&b(),T=i.subscribe(S);return d.add(b),()=>{T(),d.delete(b)}},dispatch(b){var S;try{return o=!((S=b==null?void 0:b.meta)!=null&&S[SU]),s=!o,s&&(c||(c=!0,h(y))),i.dispatch(b)}finally{o=!0}}})},wU=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new _9(e);return i&&o.push(EU(typeof i=="object"?i:void 0)),o};function TU(e){const t=xU(),{reducer:n=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:c=void 0,enhancers:d=void 0}=e||{};let h;if(typeof n=="function")h=n;else if(yv(n))h=_P(n);else throw new Error(Jt.NODE_ENV==="production"?Tr(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(Jt.NODE_ENV!=="production"&&i&&typeof i!="function")throw new Error(Jt.NODE_ENV==="production"?Tr(2):"`middleware` field must be a callback");let y;if(typeof i=="function"){if(y=i(t),Jt.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(Jt.NODE_ENV==="production"?Tr(3):"when using a middleware builder function, an array of middleware must be returned")}else y=t();if(Jt.NODE_ENV!=="production"&&y.some(M=>typeof M!="function"))throw new Error(Jt.NODE_ENV==="production"?Tr(4):"each middleware provided to configureStore must be a function");if(Jt.NODE_ENV!=="production"&&s){let M=new Set;y.forEach(_=>{if(M.has(_))throw new Error(Jt.NODE_ENV==="production"?Tr(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");M.add(_)})}let b=H5;o&&(b=fU({trace:Jt.NODE_ENV!=="production",...typeof o=="object"&&o}));const S=DP(...y),T=wU(S);if(Jt.NODE_ENV!=="production"&&d&&typeof d!="function")throw new Error(Jt.NODE_ENV==="production"?Tr(5):"`enhancers` field must be a callback");let w=typeof d=="function"?d(T):T();if(Jt.NODE_ENV!=="production"&&!Array.isArray(w))throw new Error(Jt.NODE_ENV==="production"?Tr(6):"`enhancers` callback must return an array");if(Jt.NODE_ENV!=="production"&&w.some(M=>typeof M!="function"))throw new Error(Jt.NODE_ENV==="production"?Tr(7):"each enhancer provided to configureStore must be a function");Jt.NODE_ENV!=="production"&&y.length&&!w.includes(S)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const C=b(...w);return t9(h,c,C)}function V9(e){const t={},n=[];let i;const o={addCase(s,c){if(Jt.NODE_ENV!=="production"){if(n.length>0)throw new Error(Jt.NODE_ENV==="production"?Tr(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(i)throw new Error(Jt.NODE_ENV==="production"?Tr(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const d=typeof s=="string"?s:s.type;if(!d)throw new Error(Jt.NODE_ENV==="production"?Tr(28):"`builder.addCase` cannot be called with an empty action type");if(d in t)throw new Error(Jt.NODE_ENV==="production"?Tr(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${d}'`);return t[d]=c,o},addAsyncThunk(s,c){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return c.pending&&(t[s.pending.type]=c.pending),c.rejected&&(t[s.rejected.type]=c.rejected),c.fulfilled&&(t[s.fulfilled.type]=c.fulfilled),c.settled&&n.push({matcher:s.settled,reducer:c.settled}),o},addMatcher(s,c){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:c}),o},addDefaultCase(s){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(31):"`builder.addDefaultCase` can only be called once");return i=s,o}};return e(o),[t,n,i]}function AU(e){return typeof e=="function"}function CU(e,t){if(Jt.NODE_ENV!=="production"&&typeof t=="object")throw new Error(Jt.NODE_ENV==="production"?Tr(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,i,o]=V9(t),s;if(AU(e))s=()=>D9(e());else{const d=D9(e);s=()=>d}function c(d=s(),h){let y=[n[h.type],...i.filter(({matcher:b})=>b(h)).map(({reducer:b})=>b)];return y.filter(b=>!!b).length===0&&(y=[o]),y.reduce((b,S)=>{if(S)if(Qc(b)){const w=S(b,h);return w===void 0?b:w}else{if(iu(b))return E9(b,T=>S(T,h));{const T=S(b,h);if(T===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}}return b},d)}return c.getInitialState=s,c}var OU=Symbol.for("rtk-slice-createasyncthunk");function RU(e,t){return`${e}/${t}`}function MU({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[OU];return function(o){const{name:s,reducerPath:c=s}=o;if(!s)throw new Error(Jt.NODE_ENV==="production"?Tr(11):"`name` is a required option for createSlice");typeof process<"u"&&Jt.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const d=(typeof o.reducers=="function"?o.reducers(DU()):o.reducers)||{},h=Object.keys(d),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},b={addCase(B,V){const U=typeof B=="string"?B:B.type;if(!U)throw new Error(Jt.NODE_ENV==="production"?Tr(12):"`context.addCase` cannot be called with an empty action type");if(U in y.sliceCaseReducersByType)throw new Error(Jt.NODE_ENV==="production"?Tr(13):"`context.addCase` cannot be called with two reducers for the same action type: "+U);return y.sliceCaseReducersByType[U]=V,b},addMatcher(B,V){return y.sliceMatchers.push({matcher:B,reducer:V}),b},exposeAction(B,V){return y.actionCreators[B]=V,b},exposeCaseReducer(B,V){return y.sliceCaseReducersByName[B]=V,b}};h.forEach(B=>{const V=d[B],U={reducerName:B,type:RU(s,B),createNotation:typeof o.reducers=="function"};kU(V)?IU(U,V,b,t):NU(U,V,b)});function S(){if(Jt.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(Jt.NODE_ENV==="production"?Tr(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[B={},V=[],U=void 0]=typeof o.extraReducers=="function"?V9(o.extraReducers):[o.extraReducers],X={...B,...y.sliceCaseReducersByType};return CU(o.initialState,se=>{for(let ce in X)se.addCase(ce,X[ce]);for(let ce of y.sliceMatchers)se.addMatcher(ce.matcher,ce.reducer);for(let ce of V)se.addMatcher(ce.matcher,ce.reducer);U&&se.addDefaultCase(U)})}const T=B=>B,w=new Map,C=new WeakMap;let M;function _(B,V){return M||(M=S()),M(B,V)}function k(){return M||(M=S()),M.getInitialState()}function z(B,V=!1){function U(se){let ce=se[B];if(typeof ce>"u"){if(V)ce=sS(C,U,k);else if(Jt.NODE_ENV!=="production")throw new Error(Jt.NODE_ENV==="production"?Tr(15):"selectSlice returned undefined for an uninjected slice reducer")}return ce}function X(se=T){const ce=sS(w,V,()=>new WeakMap);return sS(ce,se,()=>{const ie={};for(const[ue,$]of Object.entries(o.selectors??{}))ie[ue]=_U($,se,()=>sS(C,se,k),V);return ie})}return{reducerPath:B,getSelectors:X,get selectors(){return X(U)},selectSlice:U}}const L={name:s,reducer:_,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:k,...z(c),injectInto(B,{reducerPath:V,...U}={}){const X=V??c;return B.inject({reducerPath:X,reducer:_},U),{...L,...z(X,!0)}}};return L}}function _U(e,t,n,i){function o(s,...c){let d=t(s);if(typeof d>"u"){if(i)d=n();else if(Jt.NODE_ENV!=="production")throw new Error(Jt.NODE_ENV==="production"?Tr(16):"selectState returned undefined for an uninjected slice reducer")}return e(d,...c)}return o.unwrapped=e,o}var Gu=MU();function DU(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function NU({type:e,reducerName:t,createNotation:n},i,o){let s,c;if("reducer"in i){if(n&&!zU(i))throw new Error(Jt.NODE_ENV==="production"?Tr(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=i.reducer,c=i.prepare}else s=i;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,c?R9(e,c):R9(e))}function kU(e){return e._reducerDefinitionType==="asyncThunk"}function zU(e){return e._reducerDefinitionType==="reducerWithPrepare"}function IU({type:e,reducerName:t},n,i,o){if(!o)throw new Error(Jt.NODE_ENV==="production"?Tr(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:c,pending:d,rejected:h,settled:y,options:b}=n,S=o(e,s,b);i.exposeAction(t,S),c&&i.addCase(S.fulfilled,c),d&&i.addCase(S.pending,d),h&&i.addCase(S.rejected,h),y&&i.addMatcher(S.settled,y),i.exposeCaseReducer(t,{fulfilled:c||cS,pending:d||cS,rejected:h||cS,settled:y||cS})}function cS(){}function Tr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}class Fu{constructor(t){P(this,"store");P(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const B9={value:"",index:-1},j9=Gu({name:"braille",initialState:B9,reducers:{update(e,t){return t.payload},reset(){return B9}}}),{update:LU,reset:VU}=j9.actions;class BU extends Fu{constructor(n,i){super(n);P(this,"brailleService");this.brailleService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(VU())}registerListener(){this.disposables.push(this.brailleService.onChange(n=>{this.store.dispatch(LU(n))}))}get state(){return this.store.getState().braille}moveToIndex(n){this.brailleService.moveToIndex(n)}update(n){this.brailleService.update(n)}toggle(n){this.brailleService.toggle(n)}}const jU=j9.reducer,Ev={OPENAI:{default:"gpt-4o",options:["gpt-4o","gpt-4o-mini","gpt-4.1","o1-mini","o3","o4-mini"],labels:{"gpt-4o":"GPT-4o","gpt-4o-mini":"GPT-4o Mini","gpt-4.1":"GPT-4.1","o1-mini":"o1-mini",o3:"o3","o4-mini":"o4-mini"}},ANTHROPIC_CLAUDE:{default:"claude-3-7-sonnet-latest",options:["claude-3-5-haiku-latest","claude-3-5-sonnet-latest","claude-3-7-sonnet-latest"],labels:{"claude-3-5-haiku-latest":"Claude 3.5 Haiku","claude-3-5-sonnet-latest":"Claude 3.5 Sonnet","claude-3-7-sonnet-latest":"Claude 3.7 Sonnet"}},GOOGLE_GEMINI:{default:"gemini-2.0-flash",options:["gemini-2.0-flash","gemini-2.0-flash-lite","gemini-2.5-flash-preview-04-17","gemini-2.5-pro-preview-05-06"],labels:{"gemini-2.0-flash":"Gemini 2.0 Flash","gemini-2.0-flash-lite":"Gemini 2.0 Flash Lite","gemini-2.5-flash-preview-04-17":"Gemini 2.5 Flash Preview","gemini-2.5-pro-preview-05-06":"Gemini 2.5 Pro Preview"}}},P9={messages:[],suggestions:[]};function U9(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const $9=Gu({name:"chat",initialState:P9,reducers:{addUserMessage:(e,t)=>{e.messages.push({id:`msg-${Date.now()}`,text:t.payload.text,isUser:!0,timestamp:t.payload.timestamp,status:"SUCCESS"})},addSystemMessage:(e,t)=>{e.messages.push({id:`system-${Date.now()}`,text:t.payload.text,isUser:!1,timestamp:t.payload.timestamp,status:"SUCCESS",modelSelections:t.payload.modelSelections,isWelcomeMessage:t.payload.isWelcomeMessage})},addPendingResponse:(e,t)=>{e.messages.push({id:`resp-${Date.now()}-${t.payload.model}`,text:"Processing request...",isUser:!1,model:t.payload.model,timestamp:t.payload.timestamp,status:"PENDING"})},updateResponse:(e,t)=>{const n=e.messages.find(i=>i.model===t.payload.model&&i.timestamp===t.payload.timestamp);n&&(n.text=t.payload.data,n.status="SUCCESS")},updateError:(e,t)=>{const n=e.messages.find(i=>i.model===t.payload.model&&i.timestamp===t.payload.timestamp);n&&(n.text=`Error: ${t.payload.error}`,n.status="FAILED")},updateSuggestions:(e,t)=>{e.suggestions=t.payload},updateWelcomeMessage:(e,t)=>{const n=e.messages.findIndex(i=>i.isWelcomeMessage);n!==-1&&(e.messages[n].text=t.payload.text,t.payload.modelSelections&&(e.messages[n].modelSelections=t.payload.modelSelections))},reset(){return P9}}}),{addUserMessage:PU,addSystemMessage:UU,addPendingResponse:$U,updateResponse:HU,updateError:H9,updateSuggestions:qU,updateWelcomeMessage:GU,reset:q9}=$9.actions;class FU extends Fu{constructor(n,i,o){super(n);P(this,"chatService");P(this,"audioService");this.chatService=i,this.audioService=o,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch(q9())}get state(){return this.snapshot.chat}get snapshot(){return this.store.getState()}get canSend(){const{llm:n}=this.snapshot.settings;return Object.values(n.models).some(i=>i.enabled&&i.apiKey.trim().length>0)}toggle(){this.chatService.toggle()}getEnabledModelsData(){const n=this.snapshot.settings.llm.models,i=Object.entries(n).filter(([s,c])=>c.enabled&&c.apiKey.trim().length>0).map(([s,c])=>{var b;const d=(b=Ev[s])==null?void 0:b.labels,h=(d==null?void 0:d[c.version])||c.version;return`${U9(s)} (${h})`}),o=Object.entries(n).filter(([s,c])=>c.enabled&&c.apiKey.trim().length>0).map(([s,c])=>({modelKey:s,name:U9(s),version:c.version}));return{enabledModels:i,modelSelections:o}}loadInitialMessage(){const n=new Date().toISOString(),{enabledModels:i,modelSelections:o}=this.getEnabledModelsData(),s=i.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${i.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(UU({text:s,timestamp:n,modelSelections:o,isWelcomeMessage:!0}))}refreshInitialMessage(){this.store.dispatch(q9()),this.loadInitialMessage()}updateWelcomeMessage(){const{enabledModels:n,modelSelections:i}=this.getEnabledModelsData(),o=n.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${n.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(GU({text:o,modelSelections:i}))}generateSuggestions(){try{const n=this.state.messages[this.state.messages.length-1];if(!n||n.isUser)return[];const{llm:i}=this.snapshot.settings,o=i.expertiseLevel,s=Date.now(),c=[{id:`suggestion-${s}-1`,text:"Can you explain that in more detail?",type:"clarification"},{id:`suggestion-${s}-2`,text:"What can you say about the current datapoint?",type:"analysis"},{id:`suggestion-${s}-3`,text:"How does this compare to other data points?",type:"analysis"}];return o==="advanced"&&c.push({id:`suggestion-${s}-4`,text:"Can you perform a statistical analysis of this data?",type:"analysis"},{id:`suggestion-${s}-5`,text:"What are the potential outliers in this dataset?",type:"analysis"}),c}catch(n){return console.error("Error generating suggestions:",n),[]}}updateSuggestions(){const n=this.generateSuggestions();this.store.dispatch(qU(n))}isValidExpertiseLevel(n){return["basic","intermediate","advanced"].includes(n)}async sendMessage(n){const{llm:i}=this.snapshot.settings,o=new Date().toISOString();this.store.dispatch(PU({text:n,timestamp:o}));const s=Object.keys(i.models).filter(c=>i.models[c].enabled&&i.models[c].apiKey.trim().length>0);await Promise.all(s.map(async c=>{const d=this.audioService.playWaitingTone();try{this.store.dispatch($U({model:c,timestamp:o}));const h=i.models[c],y=i.customExpertise&&["basic","intermediate","advanced"].includes(i.customExpertise)?i.customExpertise:i.expertiseLevel,b=await this.chatService.sendMessage(c,{message:n,customInstruction:i.customInstruction,expertise:y,apiKey:h.apiKey});this.audioService.stop(d),b.error?this.store.dispatch(H9({model:c,error:b.error,timestamp:o})):(this.store.dispatch(HU({model:c,data:b.data,timestamp:o})),this.audioService.playCompleteTone(),this.updateSuggestions())}catch(h){this.audioService.stop(d),this.store.dispatch(H9({model:c,error:h instanceof Error?h.message:"Error processing request",timestamp:o}))}}))}}const YU=$9.reducer,G9=Gu({name:"commandPalette",initialState:{visible:!1,commands:[],selectedIndex:-1,search:""},reducers:{show(e,t){e.visible=!0,e.commands=t.payload.commands,e.selectedIndex=-1,e.search=""},hide(e){e.visible=!1,e.commands=[],e.selectedIndex=-1,e.search=""},updateSelectedIndex(e,t){e.selectedIndex=t.payload},updateSearch(e,t){e.search=t.payload,e.selectedIndex=-1}}}),{show:XU,hide:F9,updateSelectedIndex:x2,updateSearch:WU}=G9.actions;class QU extends Fu{constructor(n,i){super(n);P(this,"commandPaletteService");this.commandPaletteService=i}dispose(){super.dispose(),this.store.dispatch(F9())}get state(){return this.store.getState().commandPalette}toggle(){this.state.visible?this.hide():this.show()}show(){const n=e2.TRACE,i=Object.entries(n).filter(([o])=>!o.startsWith("ALLOW_")).map(([o,s])=>({key:s,description:this.toTitleCase(o.replace(/_/g," ").toLowerCase()),commandKey:o}));this.store.dispatch(XU({commands:i,scope:pn.TRACE})),this.commandPaletteService.toggle()}hide(){this.store.dispatch(F9()),this.commandPaletteService.returnToTraceScope()}moveUp(){const n=this.state;if(n.commands.length>0){if(n.selectedIndex===0)return;const i=n.selectedIndex>=0?n.selectedIndex:n.commands.length-1,o=Math.max(0,i-1);this.store.dispatch(x2(o))}}moveDown(){const n=this.state;if(n.commands.length>0){const i=n.selectedIndex>=0?n.selectedIndex:-1,o=Math.min(n.commands.length-1,i+1);this.store.dispatch(x2(o))}}moveToSearch(){this.store.dispatch(x2(-1))}selectCurrent(){const n=this.state;n.commands.length>0&&n.selectedIndex}updateSearch(n){this.store.dispatch(WU(n))}executeCommand(n){this.hide()}handleCommandSelect(n){this.hide()}toTitleCase(n){return n.replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1))}}const KU=G9.reducer,Y9=Gu({name:"display",initialState:{focus:null,tooltip:{visible:!1,value:""}},reducers:{hideTooltip(e){e.tooltip={...e.tooltip,visible:!1,value:""}},showTooltip(e,t){e.tooltip={...e.tooltip,visible:!0,value:t.payload}},updateFocus(e,t){e.focus=t.payload},clearFocus(e){e.focus=null}}}),{hideTooltip:ZU,showTooltip:JU,updateFocus:e$,clearFocus:t$}=Y9.actions;class n$ extends Fu{constructor(n,i){super(n);P(this,"displayService");this.displayService=i,this.registerListeners(),this.store.dispatch(ZU())}dispose(){this.store.dispatch(t$()),this.store.dispatch(JU(this.displayService.getInstruction())),super.dispose()}registerListeners(){this.disposables.push(this.displayService.onChange(n=>{this.store.dispatch(e$(n.value))}))}get state(){return this.store.getState().display}}const r$=Y9.reducer,X9=Gu({name:"goToExtrema",initialState:{visible:!1,targets:[],selectedIndex:0,description:""},reducers:{show(e,t){return{visible:!0,targets:t.payload.targets,selectedIndex:0,description:t.payload.description}},hide(){return{visible:!1,targets:[],selectedIndex:0,description:""}},updateSelectedIndex(e,t){return{...e,selectedIndex:t.payload}}}}),{show:i$,hide:S2,updateSelectedIndex:W9}=X9.actions;class a$ extends Fu{constructor(n,i,o){super(n);P(this,"goToExtremaService");P(this,"context");this.goToExtremaService=i,this.context=o}dispose(){super.dispose(),this.store.dispatch(S2())}get state(){return this.store.getState().goToExtrema}toggle(n){if(n.empty)return;const i=this.context.active;if(i&&this.goToExtremaService.isExtremaNavigable(i)){const o=i.getExtremaTargets(),s=this.generateDescription(n.traceType);this.store.dispatch(i$({targets:o,description:s})),this.goToExtremaService.toggle(n)}}hide(){this.store.dispatch(S2()),this.goToExtremaService.returnToTraceScope()}get activeContext(){return this.context}moveUp(){const n=this.state;if(n.targets.length>0){const i=n.selectedIndex||0,o=Math.max(0,i-1);this.store.dispatch(W9(o))}}moveDown(){const n=this.state;if(n.targets.length>0){const i=n.targets.length,o=n.selectedIndex||0,s=Math.min(i,o+1);this.store.dispatch(W9(s))}}selectCurrent(){const n=this.state;if(n.targets.length>0&&n.selectedIndex!==void 0){const i=n.targets[n.selectedIndex];i&&this.handleTargetSelect(i)}}handleTargetSelect(n){const i=this.context.active;if(i&&this.goToExtremaService.isExtremaNavigable(i))try{this.store.dispatch(S2()),this.goToExtremaService.returnToTraceScope(),i.navigateToExtrema(n)}catch{this.goToExtremaService.returnToTraceScope()}else this.goToExtremaService.returnToTraceScope()}generateDescription(n){return`Navigate to points of interest within the current ${n}`}getAvailableXValues(){const n=this.context.active;return n&&this.supportsXValueNavigation(n)?n.getAvailableXValues():[]}isExtremaNavigable(n){return this.goToExtremaService.isExtremaNavigable(n)}supportsXValueNavigation(n){return n!==null&&typeof n=="object"&&"getAvailableXValues"in n&&typeof n.getAvailableXValues=="function"}}const o$=X9.reducer,Q9={items:[]},K9=Gu({name:"help",initialState:Q9,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return Q9}}}),{setHelpItems:l$,reset:s$}=K9.actions;class u$ extends Fu{constructor(n,i){super(n);P(this,"helpService");this.helpService=i}toggle(){const n=this.helpService.getMenuItems();this.store.dispatch(l$(n)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(s$())}get state(){return this.store.getState().help}}const c$=K9.reducer;class f${constructor(){P(this,"viewModels",new Map)}register(t,n){this.viewModels.set(t,n)}get(t){if(!this.viewModels.has(t))throw new Error(`Error while loading view model for ${t}`);return this.viewModels.get(t)}dispose(){this.viewModels.clear()}}const Z9={value:""},J9=Gu({name:"review",initialState:Z9,reducers:{update(e,t){e.value=t.payload},reset(){return Z9}}}),{update:d$,reset:h$}=J9.actions;class p$ extends Fu{constructor(n,i){super(n);P(this,"reviewService");this.reviewService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(h$())}registerListener(){this.disposables.push(this.reviewService.onChange(n=>{this.store.dispatch(d$(n.value))}))}get state(){return this.store.getState().review}toggle(n){this.reviewService.toggle(n)}}const m$=J9.reducer,eO=Gu({name:"rotorNavigation",initialState:{rotor_value:""},reducers:{show(){return{rotor_value:""}},setValue(e,t){e.rotor_value=t.payload}}}),{setValue:Um}=eO.actions;class g$ extends Fu{constructor(n,i){super(n);P(this,"rotorService");this.rotorService=i}get state(){return this.store.getState().rotor}moveToNextNavUnit(){const n=this.rotorService.moveToNextRotorUnit();this.store.dispatch(Um(`${n}`))}moveToPrevNavUnit(){const n=this.rotorService.moveToPrevRotorUnit();this.store.dispatch(Um(`${n}`))}moveUp(){this.store.dispatch(Um(this.rotorService.moveUp()))}moveLeft(){this.store.dispatch(Um(this.rotorService.moveLeft()))}moveDown(){this.store.dispatch(Um(this.rotorService.moveDown()))}moveRight(){this.store.dispatch(Um(this.rotorService.moveRight()))}}const y$=eO.reducer,tO={general:{volume:50,highlightColor:"#03c809",highContrastMode:!1,highContrastLevels:2,highContrastLightColor:"#ffffff",highContrastDarkColor:"#000000",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive",hoverMode:"pointermove"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OpenAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"Anthropic Claude",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Google Gemini",version:"gemini-2.0-flash"}}}},nO=Gu({name:"settings",initialState:tO,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>tO}}),{update:fS,reset:v$}=nO.actions;class b$ extends Fu{constructor(n,i){super(n);P(this,"settingsService");this.settingsService=i,this.load()}dispose(){super.dispose(),this.store.dispatch(v$())}get state(){return this.store.getState().settings}load(){const n=this.settingsService.loadSettings();this.store.dispatch(fS(n))}saveAndClose(n){this.settingsService.saveSettings(n),this.store.dispatch(fS(n)),this.toggle()}saveSettings(n){this.settingsService.saveSettings(n),this.store.dispatch(fS(n))}reset(){const n=this.settingsService.resetSettings();this.store.dispatch(fS(n))}toggle(){this.settingsService.toggle()}}const x$=nO.reducer,rO={enabled:!0,announce:!0,value:"",revision:0,message:null},iO=Gu({name:"text",initialState:rO,reducers:{update(e,t){e.value=t.payload,e.revision+=1},announceText(e,t){e.announce=t.payload},toggle(e,t){e.enabled=t.payload},notify(e,t){e.message=t.payload},clearMessage(e){e.message=null},reset(){return rO}}}),{update:S$,announceText:E$,toggle:w$,notify:T$,clearMessage:A$,reset:C$}=iO.actions;class O$ extends Fu{constructor(n,i,o,s){super(n);P(this,"textService");this.textService=i,this.registerListeners(o,s)}dispose(){super.dispose(),this.store.dispatch(C$())}registerListeners(n,i){this.disposables.push(this.textService.onChange(o=>{this.update(o.value)})),this.disposables.push(this.textService.onNavigation(o=>{o.type==="first_navigation"&&this.setAnnounce(!0)})),this.disposables.push(n.onChange(o=>{this.notify(o.value)})),this.disposables.push(i.onChange(o=>{switch(o.type){case"start":this.setAnnounce(!1);break;case"stop":this.setAnnounce(!0);break}}))}get state(){return this.store.getState().text}toggle(){const n=this.textService.toggle();this.store.dispatch(w$(n))}update(n){const i=this.textService.format(n);this.store.dispatch(S$(i)),this.store.dispatch(A$())}notify(n){this.store.dispatch(T$(n))}setAnnounce(n){this.store.dispatch(E$(n))}}const R$=iO.reducer;function M$(e){const t=D$(e),n=N$(e,t),i=document.querySelectorAll('g[id^="axes_"]').length;if(n.length===0)return L$(e,i,t);const o=k$(n),s=z$(o),c=o[0].row,d=I$(n,e.length);return{visualOrderMap:s,topLeftRow:c,invertVertical:d,totalAxesCount:i,axesElements:t}}function _$(e,t){if(e){const n=e.closest('g[id^="axes_"]');if(n)return n}if(t){const n=document.querySelector(t);if(n){const i=n.closest('g[id^="axes_"]');if(i)return i}}return null}function D$(e){const t=new Map;for(let n=0;n<e.length;n++)for(let i=0;i<e[n].length;i++){const o=e[n][i],s=_$(o.getHighlightElement(),o.getLayerSelector());t.set(`${n},${i}`,s)}return t}function N$(e,t){const n=[];for(let i=0;i<e.length;i++)for(let o=0;o<e[i].length;o++){const s=t.get(`${i},${o}`);if(s){const c=s.getBoundingClientRect();n.push({row:i,col:o,y:c.top,x:c.left})}}return n}function k$(e){return[...e].sort((t,n)=>t.y-n.y||t.x-n.x)}function z$(e){const t=new Map;for(let n=0;n<e.length;n++)t.set(`${e[n].row},${e[n].col}`,n+1);return t}function I$(e,t){if(t<=1)return!1;const n=e.find(o=>o.row===0),i=e.find(o=>o.row===1);return n&&i?n.y<i.y:!1}function L$(e,t,n){const i=new Map;let o=1;for(let s=0;s<e.length;s++)for(let c=0;c<e[s].length;c++)i.set(`${s},${c}`,o++);return{visualOrderMap:i,topLeftRow:0,invertVertical:!1,totalAxesCount:t,axesElements:n}}class V${constructor(t,n,i){P(this,"figure");P(this,"context");P(this,"displayService");P(this,"notificationService");P(this,"settingsService");P(this,"formatterService");P(this,"audioService");P(this,"brailleService");P(this,"goToExtremaService");P(this,"textService");P(this,"reviewService");P(this,"rotorNavigationService");P(this,"autoplayService");P(this,"highContrastService");P(this,"highlightService");P(this,"helpService");P(this,"chatService");P(this,"textViewModel");P(this,"brailleViewModel");P(this,"goToExtremaViewModel");P(this,"reviewViewModel");P(this,"displayViewModel");P(this,"helpViewModel");P(this,"chatViewModel");P(this,"settingsViewModel");P(this,"rotorNavigationViewModel");P(this,"commandPaletteViewModel");P(this,"keybinding");P(this,"mousebinding");P(this,"commandExecutor");P(this,"viewModelRegistry");this.viewModelRegistry=new f$,this.figure=new EB(t),this.figure.applyLayout(M$(this.figure.subplots)),this.context=new WV(this.figure),this.notificationService=new mP,this.formatterService=new cP(t),this.textService=new SP(this.notificationService,this.formatterService),this.displayService=new uP(this.context,n,this.textService),this.settingsService=new bP(new xP,this.displayService),this.audioService=new RB(this.notificationService,this.settingsService,this.context.state),this.brailleService=new IB(this.context,this.notificationService,this.displayService),this.goToExtremaService=new fP(this.context,this.displayService),this.reviewService=new gP(this.notificationService,this.displayService,this.textService),this.autoplayService=new NB(this.context,this.notificationService,this.settingsService),this.highContrastService=new hP(this.settingsService,this.notificationService,this.displayService,this.figure,this.context),this.highlightService=new pP(this.settingsService),this.helpService=new dP(this.context,this.displayService),this.chatService=new GB(this.displayService,this.textService,t),this.textViewModel=new O$(i,this.textService,this.notificationService,this.autoplayService),this.brailleViewModel=new BU(i,this.brailleService),this.goToExtremaViewModel=new a$(i,this.goToExtremaService,this.context),this.reviewViewModel=new p$(i,this.reviewService),this.displayViewModel=new n$(i,this.displayService),this.helpViewModel=new u$(i,this.helpService),this.settingsViewModel=new b$(i,this.settingsService),this.rotorNavigationService=new yP(this.context,this.textService),this.rotorNavigationViewModel=new g$(i,this.rotorNavigationService),this.chatViewModel=new FU(i,this.chatService,this.audioService);const o=new lP(this.context,this.displayService);this.commandPaletteViewModel=new QU(i,o),this.keybinding=new iP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel}),this.mousebinding=new aP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.settingsService,this.displayService),this.commandExecutor=new oP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.context.scope),this.registerViewModels(),this.registerObservers(),this.keybinding.register(this.context.scope),this.mousebinding.registerEvents()}announceInitialInstruction(){const t=this.displayService.getInstruction(!1);this.textViewModel.update(t)}getInitialInstruction(){return this.displayService.getInstruction(!1)}showInitialInstructionInText(){const t=this.displayService.getInstruction(!1);this.textViewModel.setAnnounce(!1),this.textViewModel.update(t)}initializeHighContrast(){this.highContrastService.initializeHighContrast()}suspendHighContrast(){this.highContrastService.suspendHighContrast()}dispose(){this.keybinding.unregister(),this.mousebinding.dispose(),this.commandExecutor.dispose(),this.viewModelRegistry.dispose(),this.settingsViewModel.dispose(),this.chatViewModel.dispose(),this.helpViewModel.dispose(),this.displayViewModel.dispose(),this.goToExtremaViewModel.dispose(),this.reviewViewModel.dispose(),this.brailleViewModel.dispose(),this.textViewModel.dispose(),this.commandPaletteViewModel.dispose(),this.rotorNavigationViewModel.dispose(),this.highContrastService.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.formatterService.dispose(),this.settingsService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}getContextValue(){return{viewModelRegistry:this.viewModelRegistry,commandExecutor:this.commandExecutor}}registerViewModels(){this.viewModelRegistry.register("text",this.textViewModel),this.viewModelRegistry.register("braille",this.brailleViewModel),this.viewModelRegistry.register("goToExtrema",this.goToExtremaViewModel),this.viewModelRegistry.register("review",this.reviewViewModel),this.viewModelRegistry.register("display",this.displayViewModel),this.viewModelRegistry.register("help",this.helpViewModel),this.viewModelRegistry.register("chat",this.chatViewModel),this.viewModelRegistry.register("settings",this.settingsViewModel),this.viewModelRegistry.register("commandPalette",this.commandPaletteViewModel),this.viewModelRegistry.register("commandExecutor",this.commandExecutor),this.viewModelRegistry.register("rotor",this.rotorNavigationViewModel)}registerObservers(){this.figure.addObserver(this.textService),this.figure.addObserver(this.audioService),this.figure.addObserver(this.highlightService),this.figure.subplots.forEach(t=>t.forEach(n=>{n.addObserver(this.textService),n.addObserver(this.audioService),n.addObserver(this.brailleService),n.addObserver(this.highlightService),n.traces.forEach(i=>i.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}function B$(e,t){const n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(!1),c=G.useRef(null),d=G.useRef(null),[h,y]=G.useState(null),b=G.useCallback(()=>{const _=n.current;if(!_)return null;const k=structuredClone(e);return new V$(k,_,t)},[e,t]),S=G.useRef(b);S.current=b;const T=G.useCallback(()=>{o.current&&(o.current.suspendHighContrast(),o.current.dispose(),o.current=null),y(null),s.current=!1},[]),w=G.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),c.current&&(clearTimeout(c.current),c.current=null),c.current=setTimeout(()=>{var _;if(c.current=null,!o.current){const k=S.current();if(!k)return;o.current=k,y(k.getContextValue()),k.initializeHighContrast()}s.current||(s.current=!0,(_=o.current)==null||_.showInitialInstructionInText())},0)},[]),C=G.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null),d.current=setTimeout(()=>{d.current=null;const _=i.current;if(!_)return;const k=document.activeElement;_.contains(k)||T()},0)},[T]),M=G.useCallback(()=>{if(document.visibilityState==="visible"){if(!o.current)return;c.current&&(clearTimeout(c.current),c.current=null),d.current&&(clearTimeout(d.current),d.current=null),T();const _=S.current();if(!_)return;o.current=_,y(_.getContextValue()),_.initializeHighContrast(),s.current=!1}},[T]);return G.useEffect(()=>(document.addEventListener("visibilitychange",M),()=>{document.removeEventListener("visibilitychange",M)}),[M]),G.useEffect(()=>()=>{c.current&&clearTimeout(c.current),d.current&&clearTimeout(d.current),o.current&&(o.current.suspendHighContrast(),o.current.dispose(),o.current=null)},[]),{plotRef:n,figureRef:i,contextValue:h,onFocusIn:w,onFocusOut:C}}const j$={braille:jU,chat:YU,commandPalette:KU,display:r$,goToExtrema:o$,help:c$,review:m$,settings:x$,text:R$,rotor:y$};function P$(){return TU({reducer:j$})}const aO=G.createContext(null);function oO(){const e=G.useContext(aO);if(!e)throw new Error("useMaidrContext must be used within a MaidrContext.Provider. Ensure the component is rendered inside a <Maidr> component.");return e}var dS={exports:{}},E2={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var lO;function U$(){if(lO)return E2;lO=1;var e=Ad();function t(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var n=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,c=e.useMemo,d=e.useDebugValue;return E2.useSyncExternalStoreWithSelector=function(h,y,b,S,T){var w=o(null);if(w.current===null){var C={hasValue:!1,value:null};w.current=C}else C=w.current;w=c(function(){function _(V){if(!k){if(k=!0,z=V,V=S(V),T!==void 0&&C.hasValue){var U=C.value;if(T(U,V))return L=U}return L=V}if(U=L,n(z,V))return U;var X=S(V);return T!==void 0&&T(U,X)?(z=V,U):(z=V,L=X)}var k=!1,z,L,B=b===void 0?null:b;return[function(){return _(y())},B===null?void 0:function(){return _(B())}]},[y,b,S,T]);var M=i(h,w[0],w[1]);return s(function(){C.hasValue=!0,C.value=M},[M]),d(M),M},E2}var w2={},sO;function $$(){if(sO)return w2;sO=1;var e={};/**
 * @license React
 * use-sync-external-store-with-selector.development.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.
 */return e.NODE_ENV!=="production"&&(function(){function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Ad(),i=typeof Object.is=="function"?Object.is:t,o=n.useSyncExternalStore,s=n.useRef,c=n.useEffect,d=n.useMemo,h=n.useDebugValue;w2.useSyncExternalStoreWithSelector=function(y,b,S,T,w){var C=s(null);if(C.current===null){var M={hasValue:!1,value:null};C.current=M}else M=C.current;C=d(function(){function k(U){if(!z){if(z=!0,L=U,U=T(U),w!==void 0&&M.hasValue){var X=M.value;if(w(X,U))return B=X}return B=U}if(X=B,i(L,U))return X;var se=T(U);return w!==void 0&&w(X,se)?(L=U,X):(L=U,B=se)}var z=!1,L,B,V=S===void 0?null:S;return[function(){return k(b())},V===null?void 0:function(){return k(V())}]},[b,S,T,w]);var _=o(y,C[0],C[1]);return c(function(){M.hasValue=!0,M.value=_},[_]),h(_),_},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),w2}var uO;function H$(){if(uO)return dS.exports;uO=1;var e={};return e.NODE_ENV==="production"?dS.exports=U$():dS.exports=$$(),dS.exports}var q$=H$(),wv={};function G$(e){e()}function F$(){let e=null,t=null;return{clear(){e=null,t=null},notify(){G$(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let i=e;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var cO={notify(){},get:()=>[]};function Y$(e,t){let n,i=cO,o=0,s=!1;function c(M){b();const _=i.subscribe(M);let k=!1;return()=>{k||(k=!0,_(),S())}}function d(){i.notify()}function h(){C.onStateChange&&C.onStateChange()}function y(){return s}function b(){o++,n||(n=e.subscribe(h),i=F$())}function S(){o--,n&&o===0&&(n(),n=void 0,i.clear(),i=cO)}function T(){s||(s=!0,b())}function w(){s&&(s=!1,S())}const C={addNestedSub:c,notifyNestedSubs:d,handleChangeWrapper:h,isSubscribed:y,trySubscribe:T,tryUnsubscribe:w,getListeners:()=>i};return C}var X$=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",W$=X$(),Q$=()=>typeof navigator<"u"&&navigator.product==="ReactNative",K$=Q$(),Z$=()=>W$||K$?G.useLayoutEffect:G.useEffect,J$=Z$(),T2=Symbol.for("react-redux-context"),A2=typeof globalThis<"u"?globalThis:{};function eH(){if(!G.createContext)return{};const e=A2[T2]??(A2[T2]=new Map);let t=e.get(G.createContext);return t||(t=G.createContext(null),wv.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(G.createContext,t)),t}var hS=eH();function tH(e){const{children:t,context:n,serverState:i,store:o}=e,s=G.useMemo(()=>{const h=Y$(o),y={store:o,subscription:h,getServerState:i?()=>i:void 0};if(wv.NODE_ENV==="production")return y;{const{identityFunctionCheck:b="once",stabilityCheck:S="once"}=e;return Object.assign(y,{stabilityCheck:S,identityFunctionCheck:b})}},[o,i]),c=G.useMemo(()=>o.getState(),[o]);J$(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,c]);const d=n||hS;return G.createElement(d.Provider,{value:s},t)}var nH=tH;function fO(e=hS){return function(){const n=G.useContext(e);if(wv.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var rH=fO(),iH=(e,t)=>e===t;function aH(e=hS){const t=e===hS?rH:fO(e),n=(i,o={})=>{const{equalityFn:s=iH}=typeof o=="function"?{equalityFn:o}:o;if(wv.NODE_ENV!=="production"){if(!i)throw new Error("You must pass a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const c=t(),{store:d,subscription:h,getServerState:y}=c,b=G.useRef(!0),S=G.useCallback({[i.name](w){const C=i(w);if(wv.NODE_ENV!=="production"){const{devModeChecks:M={}}=typeof o=="function"?{}:o,{identityFunctionCheck:_,stabilityCheck:k}=c,{identityFunctionCheck:z,stabilityCheck:L}={stabilityCheck:k,identityFunctionCheck:_,...M};if(L==="always"||L==="once"&&b.current){const B=i(w);if(!s(C,B)){let V;try{throw new Error}catch(U){({stack:V}=U)}console.warn("Selector "+(i.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:w,selected:C,selected2:B,stack:V})}}if((z==="always"||z==="once"&&b.current)&&C===w){let B;try{throw new Error}catch(V){({stack:B}=V)}console.warn("Selector "+(i.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:B})}b.current&&(b.current=!1)}return C}}[i.name],[i]),T=q$.useSyncExternalStoreWithSelector(h.addNestedSub,d.getState,y||d.getState,S,s);return G.useDebugValue(T),T};return Object.assign(n,{withTypes:()=>n}),n}var oH=aH();const lH=oH;function Yu(e){const{viewModelRegistry:t}=oO();return t.get(e)}function au(e){return lH(t=>t[e])}const sH=()=>{const e=G.useId(),t=Yu("braille"),{value:n,index:i}=au("braille"),o=G.useRef(null),s=G.useRef(i),c=d=>{const h=d.target,y=h.selectionStart;if(y>=n.length){h.setSelectionRange(s.current,s.current);return}y!==s.current&&(s.current=y,t.moveToIndex(y))};return G.useEffect(()=>{const d=o.current;if(d)return d.addEventListener(qu.SELECTION_CHANGE,c),()=>{d.removeEventListener(qu.SELECTION_CHANGE,c)}},[]),G.useEffect(()=>{const d=o.current;d&&(d.value=n,d.selectionStart=i,d.selectionEnd=i,d.focus(),s.current=i)},[n,i]),H.jsx("div",{id:e,children:H.jsx("textarea",{id:`${me.BRAILLE_TEXT_AREA}-${e}`,ref:o,defaultValue:n,autoCapitalize:"off",rows:5,cols:50})})},dO=e=>e,hO=(()=>{let e=dO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=dO}}})();function Zc(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}var uH={};function Je(e){if(typeof e!="string")throw new Error(uH.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Zc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function C2(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}var pS={exports:{}},mS={exports:{}},or={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var pO;function cH(){if(pO)return or;pO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,M=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function L(V){if(typeof V=="object"&&V!==null){var U=V.$$typeof;switch(U){case t:switch(V=V.type,V){case h:case y:case i:case s:case o:case S:return V;default:switch(V=V&&V.$$typeof,V){case d:case b:case C:case w:case c:return V;default:return U}}case n:return U}}}function B(V){return L(V)===y}return or.AsyncMode=h,or.ConcurrentMode=y,or.ContextConsumer=d,or.ContextProvider=c,or.Element=t,or.ForwardRef=b,or.Fragment=i,or.Lazy=C,or.Memo=w,or.Portal=n,or.Profiler=s,or.StrictMode=o,or.Suspense=S,or.isAsyncMode=function(V){return B(V)||L(V)===h},or.isConcurrentMode=B,or.isContextConsumer=function(V){return L(V)===d},or.isContextProvider=function(V){return L(V)===c},or.isElement=function(V){return typeof V=="object"&&V!==null&&V.$$typeof===t},or.isForwardRef=function(V){return L(V)===b},or.isFragment=function(V){return L(V)===i},or.isLazy=function(V){return L(V)===C},or.isMemo=function(V){return L(V)===w},or.isPortal=function(V){return L(V)===n},or.isProfiler=function(V){return L(V)===s},or.isStrictMode=function(V){return L(V)===o},or.isSuspense=function(V){return L(V)===S},or.isValidElementType=function(V){return typeof V=="string"||typeof V=="function"||V===i||V===y||V===s||V===o||V===S||V===T||typeof V=="object"&&V!==null&&(V.$$typeof===C||V.$$typeof===w||V.$$typeof===c||V.$$typeof===d||V.$$typeof===b||V.$$typeof===_||V.$$typeof===k||V.$$typeof===z||V.$$typeof===M)},or.typeOf=L,or}var lr={},mO;function fH(){if(mO)return lr;mO=1;var e={};/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,y=t?Symbol.for("react.async_mode"):60111,b=t?Symbol.for("react.concurrent_mode"):60111,S=t?Symbol.for("react.forward_ref"):60112,T=t?Symbol.for("react.suspense"):60113,w=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,M=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,k=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,L=t?Symbol.for("react.scope"):60119;function B(Me){return typeof Me=="string"||typeof Me=="function"||Me===o||Me===b||Me===c||Me===s||Me===T||Me===w||typeof Me=="object"&&Me!==null&&(Me.$$typeof===M||Me.$$typeof===C||Me.$$typeof===d||Me.$$typeof===h||Me.$$typeof===S||Me.$$typeof===k||Me.$$typeof===z||Me.$$typeof===L||Me.$$typeof===_)}function V(Me){if(typeof Me=="object"&&Me!==null){var st=Me.$$typeof;switch(st){case n:var Ot=Me.type;switch(Ot){case y:case b:case o:case c:case s:case T:return Ot;default:var Kt=Ot&&Ot.$$typeof;switch(Kt){case h:case S:case M:case C:case d:return Kt;default:return st}}case i:return st}}}var U=y,X=b,se=h,ce=d,ie=n,ue=S,$=o,le=M,Q=C,oe=i,Z=c,ae=s,de=T,we=!1;function te(Me){return we||(we=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(Me)||V(Me)===y}function F(Me){return V(Me)===b}function ee(Me){return V(Me)===h}function Y(Me){return V(Me)===d}function Re(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===n}function Se(Me){return V(Me)===S}function _e(Me){return V(Me)===o}function je(Me){return V(Me)===M}function He(Me){return V(Me)===C}function Xe(Me){return V(Me)===i}function Qe(Me){return V(Me)===c}function et(Me){return V(Me)===s}function Be(Me){return V(Me)===T}lr.AsyncMode=U,lr.ConcurrentMode=X,lr.ContextConsumer=se,lr.ContextProvider=ce,lr.Element=ie,lr.ForwardRef=ue,lr.Fragment=$,lr.Lazy=le,lr.Memo=Q,lr.Portal=oe,lr.Profiler=Z,lr.StrictMode=ae,lr.Suspense=de,lr.isAsyncMode=te,lr.isConcurrentMode=F,lr.isContextConsumer=ee,lr.isContextProvider=Y,lr.isElement=Re,lr.isForwardRef=Se,lr.isFragment=_e,lr.isLazy=je,lr.isMemo=He,lr.isPortal=Xe,lr.isProfiler=Qe,lr.isStrictMode=et,lr.isSuspense=Be,lr.isValidElementType=B,lr.typeOf=V})(),lr}var gO;function yO(){if(gO)return mS.exports;gO=1;var e={};return e.NODE_ENV==="production"?mS.exports=cH():mS.exports=fH(),mS.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var O2,vO;function dH(){if(vO)return O2;vO=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var c={},d=0;d<10;d++)c["_"+String.fromCharCode(d)]=d;var h=Object.getOwnPropertyNames(c).map(function(b){return c[b]});if(h.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(b){y[b]=b}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return O2=o()?Object.assign:function(s,c){for(var d,h=i(s),y,b=1;b<arguments.length;b++){d=Object(arguments[b]);for(var S in d)t.call(d,S)&&(h[S]=d[S]);if(e){y=e(d);for(var T=0;T<y.length;T++)n.call(d,y[T])&&(h[y[T]]=d[y[T]])}}return h},O2}var R2,bO;function M2(){if(bO)return R2;bO=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return R2=e,R2}var _2,xO;function SO(){return xO||(xO=1,_2=Function.call.bind(Object.prototype.hasOwnProperty)),_2}var D2,EO;function hH(){if(EO)return D2;EO=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=M2(),i={},o=SO();t=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function s(c,d,h,y,b){if(e.NODE_ENV!=="production"){for(var S in c)if(o(c,S)){var T;try{if(typeof c[S]!="function"){var w=Error((y||"React class")+": "+h+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}T=c[S](d,S,y,h,null,n)}catch(M){T=M}if(T&&!(T instanceof Error)&&t((y||"React class")+": type specification of "+h+" `"+S+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof T+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),T instanceof Error&&!(T.message in i)){i[T.message]=!0;var C=b?b():"";t("Failed "+h+" type: "+T.message+(C??""))}}}}return s.resetWarningCache=function(){e.NODE_ENV!=="production"&&(i={})},D2=s,D2}var N2,wO;function pH(){if(wO)return N2;wO=1;var e={},t=yO(),n=dH(),i=M2(),o=SO(),s=hH(),c=function(){};e.NODE_ENV!=="production"&&(c=function(h){var y="Warning: "+h;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function d(){return null}return N2=function(h,y){var b=typeof Symbol=="function"&&Symbol.iterator,S="@@iterator";function T(F){var ee=F&&(b&&F[b]||F[S]);if(typeof ee=="function")return ee}var w="<<anonymous>>",C={array:z("array"),bigint:z("bigint"),bool:z("boolean"),func:z("function"),number:z("number"),object:z("object"),string:z("string"),symbol:z("symbol"),any:L(),arrayOf:B,element:V(),elementType:U(),instanceOf:X,node:ue(),objectOf:ce,oneOf:se,oneOfType:ie,shape:le,exact:Q};function M(F,ee){return F===ee?F!==0||1/F===1/ee:F!==F&&ee!==ee}function _(F,ee){this.message=F,this.data=ee&&typeof ee=="object"?ee:{},this.stack=""}_.prototype=Error.prototype;function k(F){if(e.NODE_ENV!=="production")var ee={},Y=0;function Re(_e,je,He,Xe,Qe,et,Be){if(Xe=Xe||w,et=et||He,Be!==i){if(y){var Me=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Me.name="Invariant Violation",Me}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var st=Xe+":"+He;!ee[st]&&Y<3&&(c("You are manually calling a React.PropTypes validation function for the `"+et+"` prop on `"+Xe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ee[st]=!0,Y++)}}return je[He]==null?_e?je[He]===null?new _("The "+Qe+" `"+et+"` is marked as required "+("in `"+Xe+"`, but its value is `null`.")):new _("The "+Qe+" `"+et+"` is marked as required in "+("`"+Xe+"`, but its value is `undefined`.")):null:F(je,He,Xe,Qe,et)}var Se=Re.bind(null,!1);return Se.isRequired=Re.bind(null,!0),Se}function z(F){function ee(Y,Re,Se,_e,je,He){var Xe=Y[Re],Qe=ae(Xe);if(Qe!==F){var et=de(Xe);return new _("Invalid "+_e+" `"+je+"` of type "+("`"+et+"` supplied to `"+Se+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return k(ee)}function L(){return k(d)}function B(F){function ee(Y,Re,Se,_e,je){if(typeof F!="function")return new _("Property `"+je+"` of component `"+Se+"` has invalid PropType notation inside arrayOf.");var He=Y[Re];if(!Array.isArray(He)){var Xe=ae(He);return new _("Invalid "+_e+" `"+je+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected an array."))}for(var Qe=0;Qe<He.length;Qe++){var et=F(He,Qe,Se,_e,je+"["+Qe+"]",i);if(et instanceof Error)return et}return null}return k(ee)}function V(){function F(ee,Y,Re,Se,_e){var je=ee[Y];if(!h(je)){var He=ae(je);return new _("Invalid "+Se+" `"+_e+"` of type "+("`"+He+"` supplied to `"+Re+"`, expected a single ReactElement."))}return null}return k(F)}function U(){function F(ee,Y,Re,Se,_e){var je=ee[Y];if(!t.isValidElementType(je)){var He=ae(je);return new _("Invalid "+Se+" `"+_e+"` of type "+("`"+He+"` supplied to `"+Re+"`, expected a single ReactElement type."))}return null}return k(F)}function X(F){function ee(Y,Re,Se,_e,je){if(!(Y[Re]instanceof F)){var He=F.name||w,Xe=te(Y[Re]);return new _("Invalid "+_e+" `"+je+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected ")+("instance of `"+He+"`."))}return null}return k(ee)}function se(F){if(!Array.isArray(F))return e.NODE_ENV!=="production"&&(arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array.")),d;function ee(Y,Re,Se,_e,je){for(var He=Y[Re],Xe=0;Xe<F.length;Xe++)if(M(He,F[Xe]))return null;var Qe=JSON.stringify(F,function(Be,Me){var st=de(Me);return st==="symbol"?String(Me):Me});return new _("Invalid "+_e+" `"+je+"` of value `"+String(He)+"` "+("supplied to `"+Se+"`, expected one of "+Qe+"."))}return k(ee)}function ce(F){function ee(Y,Re,Se,_e,je){if(typeof F!="function")return new _("Property `"+je+"` of component `"+Se+"` has invalid PropType notation inside objectOf.");var He=Y[Re],Xe=ae(He);if(Xe!=="object")return new _("Invalid "+_e+" `"+je+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected an object."));for(var Qe in He)if(o(He,Qe)){var et=F(He,Qe,Se,_e,je+"."+Qe,i);if(et instanceof Error)return et}return null}return k(ee)}function ie(F){if(!Array.isArray(F))return e.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var ee=0;ee<F.length;ee++){var Y=F[ee];if(typeof Y!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+we(Y)+" at index "+ee+"."),d}function Re(Se,_e,je,He,Xe){for(var Qe=[],et=0;et<F.length;et++){var Be=F[et],Me=Be(Se,_e,je,He,Xe,i);if(Me==null)return null;Me.data&&o(Me.data,"expectedType")&&Qe.push(Me.data.expectedType)}var st=Qe.length>0?", expected one of type ["+Qe.join(", ")+"]":"";return new _("Invalid "+He+" `"+Xe+"` supplied to "+("`"+je+"`"+st+"."))}return k(Re)}function ue(){function F(ee,Y,Re,Se,_e){return oe(ee[Y])?null:new _("Invalid "+Se+" `"+_e+"` supplied to "+("`"+Re+"`, expected a ReactNode."))}return k(F)}function $(F,ee,Y,Re,Se){return new _((F||"React class")+": "+ee+" type `"+Y+"."+Re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Se+"`.")}function le(F){function ee(Y,Re,Se,_e,je){var He=Y[Re],Xe=ae(He);if(Xe!=="object")return new _("Invalid "+_e+" `"+je+"` of type `"+Xe+"` "+("supplied to `"+Se+"`, expected `object`."));for(var Qe in F){var et=F[Qe];if(typeof et!="function")return $(Se,_e,je,Qe,de(et));var Be=et(He,Qe,Se,_e,je+"."+Qe,i);if(Be)return Be}return null}return k(ee)}function Q(F){function ee(Y,Re,Se,_e,je){var He=Y[Re],Xe=ae(He);if(Xe!=="object")return new _("Invalid "+_e+" `"+je+"` of type `"+Xe+"` "+("supplied to `"+Se+"`, expected `object`."));var Qe=n({},Y[Re],F);for(var et in Qe){var Be=F[et];if(o(F,et)&&typeof Be!="function")return $(Se,_e,je,et,de(Be));if(!Be)return new _("Invalid "+_e+" `"+je+"` key `"+et+"` supplied to `"+Se+"`.\nBad object: "+JSON.stringify(Y[Re],null,"  ")+`
Valid keys: `+JSON.stringify(Object.keys(F),null,"  "));var Me=Be(He,et,Se,_e,je+"."+et,i);if(Me)return Me}return null}return k(ee)}function oe(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(oe);if(F===null||h(F))return!0;var ee=T(F);if(ee){var Y=ee.call(F),Re;if(ee!==F.entries){for(;!(Re=Y.next()).done;)if(!oe(Re.value))return!1}else for(;!(Re=Y.next()).done;){var Se=Re.value;if(Se&&!oe(Se[1]))return!1}}else return!1;return!0;default:return!1}}function Z(F,ee){return F==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function ae(F){var ee=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":Z(ee,F)?"symbol":ee}function de(F){if(typeof F>"u"||F===null)return""+F;var ee=ae(F);if(ee==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return ee}function we(F){var ee=de(F);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function te(F){return!F.constructor||!F.constructor.name?w:F.constructor.name}return C.checkPropTypes=s,C.resetWarningCache=s.resetWarningCache,C.PropTypes=C,C},N2}var k2,TO;function mH(){if(TO)return k2;TO=1;var e=M2();function t(){}function n(){}return n.resetWarningCache=t,k2=function(){function i(c,d,h,y,b,S){if(S!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}i.isRequired=i;function o(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},k2}var AO;function gH(){if(AO)return pS.exports;AO=1;var e={};if(e.NODE_ENV!=="production"){var t=yO(),n=!0;pS.exports=pH()(t.isElement,n)}else pS.exports=mH()();return pS.exports}var yH=gH();const p=pl(yH);function CO(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=CO(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function St(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=CO(e))&&(i&&(i+=" "),i+=t);return i}function en(e,t,n=void 0){const i={};for(const o in e){const s=e[o];let c="",d=!0;for(let h=0;h<s.length;h+=1){const y=s[h];y&&(c+=(d===!0?"":" ")+t(y),d=!1,n&&n[y]&&(c+=" "+n[y]))}i[o]=c}return i}var gS={exports:{}},yr={};/**
 * @license React
 * react-is.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 OO;function vH(){if(OO)return yr;OO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function C(M){if(typeof M=="object"&&M!==null){var _=M.$$typeof;switch(_){case e:switch(M=M.type,M){case n:case o:case i:case h:case y:case T:return M;default:switch(M=M&&M.$$typeof,M){case c:case d:case S:case b:return M;case s:return M;default:return _}}case t:return _}}}return yr.ContextConsumer=s,yr.ContextProvider=c,yr.Element=e,yr.ForwardRef=d,yr.Fragment=n,yr.Lazy=S,yr.Memo=b,yr.Portal=t,yr.Profiler=o,yr.StrictMode=i,yr.Suspense=h,yr.SuspenseList=y,yr.isContextConsumer=function(M){return C(M)===s},yr.isContextProvider=function(M){return C(M)===c},yr.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},yr.isForwardRef=function(M){return C(M)===d},yr.isFragment=function(M){return C(M)===n},yr.isLazy=function(M){return C(M)===S},yr.isMemo=function(M){return C(M)===b},yr.isPortal=function(M){return C(M)===t},yr.isProfiler=function(M){return C(M)===o},yr.isStrictMode=function(M){return C(M)===i},yr.isSuspense=function(M){return C(M)===h},yr.isSuspenseList=function(M){return C(M)===y},yr.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===o||M===i||M===h||M===y||typeof M=="object"&&M!==null&&(M.$$typeof===S||M.$$typeof===b||M.$$typeof===c||M.$$typeof===s||M.$$typeof===d||M.$$typeof===w||M.getModuleId!==void 0)},yr.typeOf=C,yr}var vr={},RO;function bH(){if(RO)return vr;RO=1;var e={};/**
 * @license React
 * react-is.development.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.
 */return e.NODE_ENV!=="production"&&(function(){function t(_){if(typeof _=="object"&&_!==null){var k=_.$$typeof;switch(k){case n:switch(_=_.type,_){case o:case c:case s:case b:case S:case C:return _;default:switch(_=_&&_.$$typeof,_){case h:case y:case w:case T:return _;case d:return _;default:return k}}case i:return k}}}var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),M=Symbol.for("react.client.reference");vr.ContextConsumer=d,vr.ContextProvider=h,vr.Element=n,vr.ForwardRef=y,vr.Fragment=o,vr.Lazy=w,vr.Memo=T,vr.Portal=i,vr.Profiler=c,vr.StrictMode=s,vr.Suspense=b,vr.SuspenseList=S,vr.isContextConsumer=function(_){return t(_)===d},vr.isContextProvider=function(_){return t(_)===h},vr.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===n},vr.isForwardRef=function(_){return t(_)===y},vr.isFragment=function(_){return t(_)===o},vr.isLazy=function(_){return t(_)===w},vr.isMemo=function(_){return t(_)===T},vr.isPortal=function(_){return t(_)===i},vr.isProfiler=function(_){return t(_)===c},vr.isStrictMode=function(_){return t(_)===s},vr.isSuspense=function(_){return t(_)===b},vr.isSuspenseList=function(_){return t(_)===S},vr.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===o||_===c||_===s||_===b||_===S||typeof _=="object"&&_!==null&&(_.$$typeof===w||_.$$typeof===T||_.$$typeof===h||_.$$typeof===d||_.$$typeof===y||_.$$typeof===M||_.getModuleId!==void 0)},vr.typeOf=t})(),vr}var MO;function xH(){if(MO)return gS.exports;MO=1;var e={};return e.NODE_ENV==="production"?gS.exports=vH():gS.exports=bH(),gS.exports}var fh=xH();function Xu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _O(e){if(G.isValidElement(e)||fh.isValidElementType(e)||!Xu(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_O(e[n])}),t}function Pa(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return Xu(e)&&Xu(t)&&Object.keys(t).forEach(o=>{G.isValidElement(t[o])||fh.isValidElementType(t[o])?i[o]=t[o]:Xu(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Xu(e[o])?i[o]=Pa(e[o],t[o],n):n.clone?i[o]=Xu(t[o])?_O(t[o]):t[o]:i[o]=t[o]}),i}function Tv(e,t){return t?Pa(e,t,{clone:!1}):e}var SH={};const Rd=SH.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};var EH={};function DO(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{var c,d;const s=/min-width:\s*([0-9.]+)/;return+(((c=i.match(s))==null?void 0:c[1])||0)-+(((d=o.match(s))==null?void 0:d[1])||0)});return n.length?n.reduce((i,o)=>{const s=t[o];return delete i[o],i[o]=s,i},{...t}):t}function wH(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function TH(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(EH.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,i,o]=n,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(s)}function AH(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function n(s,c){s.up=(...d)=>t(e.breakpoints.up(...d),c),s.down=(...d)=>t(e.breakpoints.down(...d),c),s.between=(...d)=>t(e.breakpoints.between(...d),c),s.only=(...d)=>t(e.breakpoints.only(...d),c),s.not=(...d)=>{const h=t(e.breakpoints.not(...d),c);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const i={},o=s=>(n(i,s),i);return n(o),{...e,containerQueries:o}}const yS={xs:0,sm:600,md:900,lg:1200,xl:1536},NO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yS[e]}px)`},CH={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:yS[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Jc(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||NO;return t.reduce((c,d,h)=>(c[s.up(s.keys[h])]=n(t[h]),c),{})}if(typeof t=="object"){const s=i.breakpoints||NO;return Object.keys(t).reduce((c,d)=>{if(wH(s.keys,d)){const h=TH(i.containerQueries?i:CH,d);h&&(c[h]=n(t[d],d))}else if(Object.keys(s.values||yS).includes(d)){const h=s.up(d);c[h]=n(t[d],d)}else{const h=d;c[h]=t[h]}return c},{})}return n(t)}function OH(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,o)=>{const s=e.up(o);return i[s]={},i},{}))||{}}function kO(e,t){return e.reduce((n,i)=>{const o=n[i];return(!o||Object.keys(o).length===0)&&delete n[i],n},t)}var RH={};function vS(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function bS(e,t,n,i=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||i:o=vS(e,n)||i,t&&(o=t(o,i,e)),o}function bi(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:o}=e,s=c=>{if(c[t]==null)return null;const d=c[t],h=c.theme,y=vS(h,i)||{};return Jc(c,d,S=>{let T=bS(y,o,S);return S===T&&typeof S=="string"&&(T=bS(y,o,`${t}${S==="default"?"":Je(S)}`,S)),n===!1?T:{[n]:T}})};return s.propTypes=RH.NODE_ENV!=="production"?{[t]:Rd}:{},s.filterProps=[t],s}function MH(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var $m={};const _H={m:"margin",p:"padding"},DH={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NH=MH(e=>{if(e.length>2)if(zO[e])e=zO[e];else return[e];const[t,n]=e.split(""),i=_H[t],o=DH[n]||"";return Array.isArray(o)?o.map(s=>i+s):[i+o]}),xS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],kH=[...xS,...SS];function Av(e,t,n,i){const o=vS(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:($m.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const c=Math.abs(s);$m.NODE_ENV!=="production"&&(Number.isInteger(c)?c>o.length-1&&console.error([`MUI: The value provided (${c}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${c} > ${o.length-1}, you need to add the missing values.`].join(`
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
`)));const d=o[c];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof o=="function"?o:($m.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
`)),()=>{})}function z2(e){return Av(e,"spacing",8,"spacing")}function Cv(e,t){return typeof t=="string"||t==null?t:e(t)}function zH(e,t){return n=>e.reduce((i,o)=>(i[o]=Cv(t,n),i),{})}function IH(e,t,n,i){if(!t.includes(n))return null;const o=NH(n),s=zH(o,i),c=e[n];return Jc(e,c,s)}function IO(e,t){const n=z2(e.theme);return Object.keys(e).map(i=>IH(e,t,i,n)).reduce(Tv,{})}function ci(e){return IO(e,xS)}ci.propTypes=$m.NODE_ENV!=="production"?xS.reduce((e,t)=>(e[t]=Rd,e),{}):{},ci.filterProps=xS;function fi(e){return IO(e,SS)}fi.propTypes=$m.NODE_ENV!=="production"?SS.reduce((e,t)=>(e[t]=Rd,e),{}):{},fi.filterProps=SS,$m.NODE_ENV!=="production"&&kH.reduce((e,t)=>(e[t]=Rd,e),{});var LH={};function ES(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(s=>{i[s]=o}),i),{}),n=i=>Object.keys(i).reduce((o,s)=>t[s]?Tv(o,t[s](i)):o,{});return n.propTypes=LH.NODE_ENV!=="production"?e.reduce((i,o)=>Object.assign(i,o.propTypes),{}):{},n.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),n}var VH={};function Gl(e){return typeof e!="number"?e:`${e}px solid`}function Fl(e,t){return bi({prop:e,themeKey:"borders",transform:t})}const BH=Fl("border",Gl),jH=Fl("borderTop",Gl),PH=Fl("borderRight",Gl),UH=Fl("borderBottom",Gl),$H=Fl("borderLeft",Gl),HH=Fl("borderColor"),qH=Fl("borderTopColor"),GH=Fl("borderRightColor"),FH=Fl("borderBottomColor"),YH=Fl("borderLeftColor"),XH=Fl("outline",Gl),WH=Fl("outlineColor"),wS=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Av(e.theme,"shape.borderRadius",4,"borderRadius"),n=i=>({borderRadius:Cv(t,i)});return Jc(e,e.borderRadius,n)}return null};wS.propTypes=VH.NODE_ENV!=="production"?{borderRadius:Rd}:{},wS.filterProps=["borderRadius"],ES(BH,jH,PH,UH,$H,HH,qH,GH,FH,YH,wS,XH,WH);var I2={};const TS=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Av(e.theme,"spacing",8,"gap"),n=i=>({gap:Cv(t,i)});return Jc(e,e.gap,n)}return null};TS.propTypes=I2.NODE_ENV!=="production"?{gap:Rd}:{},TS.filterProps=["gap"];const AS=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Av(e.theme,"spacing",8,"columnGap"),n=i=>({columnGap:Cv(t,i)});return Jc(e,e.columnGap,n)}return null};AS.propTypes=I2.NODE_ENV!=="production"?{columnGap:Rd}:{},AS.filterProps=["columnGap"];const CS=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Av(e.theme,"spacing",8,"rowGap"),n=i=>({rowGap:Cv(t,i)});return Jc(e,e.rowGap,n)}return null};CS.propTypes=I2.NODE_ENV!=="production"?{rowGap:Rd}:{},CS.filterProps=["rowGap"];const QH=bi({prop:"gridColumn"}),KH=bi({prop:"gridRow"}),ZH=bi({prop:"gridAutoFlow"}),JH=bi({prop:"gridAutoColumns"}),eq=bi({prop:"gridAutoRows"}),tq=bi({prop:"gridTemplateColumns"}),nq=bi({prop:"gridTemplateRows"}),rq=bi({prop:"gridTemplateAreas"}),iq=bi({prop:"gridArea"});ES(TS,AS,CS,QH,KH,ZH,JH,eq,tq,nq,rq,iq);function Hm(e,t){return t==="grey"?t:e}const aq=bi({prop:"color",themeKey:"palette",transform:Hm}),oq=bi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hm}),lq=bi({prop:"backgroundColor",themeKey:"palette",transform:Hm});ES(aq,oq,lq);function yl(e){return e<=1&&e!==0?`${e*100}%`:e}const sq=bi({prop:"width",transform:yl}),L2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,c,d,h;const i=((c=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:c[n])||yS[n];return i?((h=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:yl(n)}};return Jc(e,e.maxWidth,t)}return null};L2.filterProps=["maxWidth"];const uq=bi({prop:"minWidth",transform:yl}),cq=bi({prop:"height",transform:yl}),fq=bi({prop:"maxHeight",transform:yl}),dq=bi({prop:"minHeight",transform:yl});bi({prop:"size",cssProperty:"width",transform:yl}),bi({prop:"size",cssProperty:"height",transform:yl});const hq=bi({prop:"boxSizing"});ES(sq,L2,uq,cq,fq,dq,hq);const Ov={border:{themeKey:"borders",transform:Gl},borderTop:{themeKey:"borders",transform:Gl},borderRight:{themeKey:"borders",transform:Gl},borderBottom:{themeKey:"borders",transform:Gl},borderLeft:{themeKey:"borders",transform:Gl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wS},color:{themeKey:"palette",transform:Hm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hm},backgroundColor:{themeKey:"palette",transform:Hm},p:{style:fi},pt:{style:fi},pr:{style:fi},pb:{style:fi},pl:{style:fi},px:{style:fi},py:{style:fi},padding:{style:fi},paddingTop:{style:fi},paddingRight:{style:fi},paddingBottom:{style:fi},paddingLeft:{style:fi},paddingX:{style:fi},paddingY:{style:fi},paddingInline:{style:fi},paddingInlineStart:{style:fi},paddingInlineEnd:{style:fi},paddingBlock:{style:fi},paddingBlockStart:{style:fi},paddingBlockEnd:{style:fi},m:{style:ci},mt:{style:ci},mr:{style:ci},mb:{style:ci},ml:{style:ci},mx:{style:ci},my:{style:ci},margin:{style:ci},marginTop:{style:ci},marginRight:{style:ci},marginBottom:{style:ci},marginLeft:{style:ci},marginX:{style:ci},marginY:{style:ci},marginInline:{style:ci},marginInlineStart:{style:ci},marginInlineEnd:{style:ci},marginBlock:{style:ci},marginBlockStart:{style:ci},marginBlockEnd:{style:ci},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:TS},rowGap:{style:CS},columnGap:{style:AS},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yl},maxWidth:{style:L2},minWidth:{transform:yl},height:{transform:yl},maxHeight:{transform:yl},minHeight:{transform:yl},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pq(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function mq(e,t){return typeof e=="function"?e(t):e}function gq(){function e(n,i,o,s){const c={[n]:i,theme:o},d=s[n];if(!d)return{[n]:i};const{cssProperty:h=n,themeKey:y,transform:b,style:S}=d;if(i==null)return null;if(y==="typography"&&i==="inherit")return{[n]:i};const T=vS(o,y)||{};return S?S(c):Jc(c,i,C=>{let M=bS(T,b,C);return C===M&&typeof C=="string"&&(M=bS(T,b,`${n}${C==="default"?"":Je(C)}`,C)),h===!1?M:{[h]:M}})}function t(n){const{sx:i,theme:o={},nested:s}=n||{};if(!i)return null;const c=o.unstable_sxConfig??Ov;function d(h){let y=h;if(typeof h=="function")y=h(o);else if(typeof h!="object")return h;if(!y)return null;const b=OH(o.breakpoints),S=Object.keys(b);let T=b;return Object.keys(y).forEach(w=>{const C=mq(y[w],o);if(C!=null)if(typeof C=="object")if(c[w])T=Tv(T,e(w,C,o,c));else{const M=Jc({theme:o},C,_=>({[w]:_}));pq(M,C)?T[w]=t({sx:C,theme:o,nested:!0}):T=Tv(T,M)}else T=Tv(T,e(w,C,o,c))}),!s&&o.modularCssLayers?{"@layer sx":DO(o,kO(S,T))}:DO(o,kO(S,T))}return Array.isArray(i)?i.map(d):d(i)}return t}const dh=gq();dh.filterProps=["sx"];const yq=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Ov;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function V2(e){const{sx:t,...n}=e,{systemProps:i,otherProps:o}=yq(n);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Xu(d)?{...i,...d}:i}:s={...i,...t},{...o,sx:s}}function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},OS.apply(null,arguments)}function vq(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function bq(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var xq=(function(){function e(n){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),i.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bq(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=vq(o);try{s.insertRule(i,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e})(),Ua="-ms-",RS="-moz-",Jn="-webkit-",LO="comm",B2="rule",j2="decl",Sq="@import",VO="@keyframes",Eq="@layer",wq=Math.abs,MS=String.fromCharCode,Tq=Object.assign;function Aq(e,t){return Sa(e,0)^45?(((t<<2^Sa(e,0))<<2^Sa(e,1))<<2^Sa(e,2))<<2^Sa(e,3):0}function BO(e){return e.trim()}function Cq(e,t){return(e=t.exec(e))?e[0]:e}function er(e,t,n){return e.replace(t,n)}function P2(e,t){return e.indexOf(t)}function Sa(e,t){return e.charCodeAt(t)|0}function Rv(e,t,n){return e.slice(t,n)}function Wu(e){return e.length}function U2(e){return e.length}function _S(e,t){return t.push(e),e}function Oq(e,t){return e.map(t).join("")}var DS=1,qm=1,jO=0,Po=0,Ri=0,Gm="";function NS(e,t,n,i,o,s,c){return{value:e,root:t,parent:n,type:i,props:o,children:s,line:DS,column:qm,length:c,return:""}}function Mv(e,t){return Tq(NS("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rq(){return Ri}function Mq(){return Ri=Po>0?Sa(Gm,--Po):0,qm--,Ri===10&&(qm=1,DS--),Ri}function vl(){return Ri=Po<jO?Sa(Gm,Po++):0,qm++,Ri===10&&(qm=1,DS++),Ri}function Qu(){return Sa(Gm,Po)}function kS(){return Po}function _v(e,t){return Rv(Gm,e,t)}function Dv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function PO(e){return DS=qm=1,jO=Wu(Gm=e),Po=0,[]}function UO(e){return Gm="",e}function zS(e){return BO(_v(Po-1,$2(e===91?e+2:e===40?e+1:e)))}function _q(e){for(;(Ri=Qu())&&Ri<33;)vl();return Dv(e)>2||Dv(Ri)>3?"":" "}function Dq(e,t){for(;--t&&vl()&&!(Ri<48||Ri>102||Ri>57&&Ri<65||Ri>70&&Ri<97););return _v(e,kS()+(t<6&&Qu()==32&&vl()==32))}function $2(e){for(;vl();)switch(Ri){case e:return Po;case 34:case 39:e!==34&&e!==39&&$2(Ri);break;case 40:e===41&&$2(e);break;case 92:vl();break}return Po}function Nq(e,t){for(;vl()&&e+Ri!==57;)if(e+Ri===84&&Qu()===47)break;return"/*"+_v(t,Po-1)+"*"+MS(e===47?e:vl())}function kq(e){for(;!Dv(Qu());)vl();return _v(e,Po)}function zq(e){return UO(IS("",null,null,null,[""],e=PO(e),0,[0],e))}function IS(e,t,n,i,o,s,c,d,h){for(var y=0,b=0,S=c,T=0,w=0,C=0,M=1,_=1,k=1,z=0,L="",B=o,V=s,U=i,X=L;_;)switch(C=z,z=vl()){case 40:if(C!=108&&Sa(X,S-1)==58){P2(X+=er(zS(z),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:X+=zS(z);break;case 9:case 10:case 13:case 32:X+=_q(C);break;case 92:X+=Dq(kS()-1,7);continue;case 47:switch(Qu()){case 42:case 47:_S(Iq(Nq(vl(),kS()),t,n),h);break;default:X+="/"}break;case 123*M:d[y++]=Wu(X)*k;case 125*M:case 59:case 0:switch(z){case 0:case 125:_=0;case 59+b:k==-1&&(X=er(X,/\f/g,"")),w>0&&Wu(X)-S&&_S(w>32?HO(X+";",i,n,S-1):HO(er(X," ","")+";",i,n,S-2),h);break;case 59:X+=";";default:if(_S(U=$O(X,t,n,y,b,o,d,L,B=[],V=[],S),s),z===123)if(b===0)IS(X,t,U,U,B,s,S,d,V);else switch(T===99&&Sa(X,3)===110?100:T){case 100:case 108:case 109:case 115:IS(e,U,U,i&&_S($O(e,U,U,0,0,o,d,L,o,B=[],S),V),o,V,S,d,i?B:V);break;default:IS(X,U,U,U,[""],V,0,d,V)}}y=b=w=0,M=k=1,L=X="",S=c;break;case 58:S=1+Wu(X),w=C;default:if(M<1){if(z==123)--M;else if(z==125&&M++==0&&Mq()==125)continue}switch(X+=MS(z),z*M){case 38:k=b>0?1:(X+="\f",-1);break;case 44:d[y++]=(Wu(X)-1)*k,k=1;break;case 64:Qu()===45&&(X+=zS(vl())),T=Qu(),b=S=Wu(L=X+=kq(kS())),z++;break;case 45:C===45&&Wu(X)==2&&(M=0)}}return s}function $O(e,t,n,i,o,s,c,d,h,y,b){for(var S=o-1,T=o===0?s:[""],w=U2(T),C=0,M=0,_=0;C<i;++C)for(var k=0,z=Rv(e,S+1,S=wq(M=c[C])),L=e;k<w;++k)(L=BO(M>0?T[k]+" "+z:er(z,/&\f/g,T[k])))&&(h[_++]=L);return NS(e,t,n,o===0?B2:d,h,y,b)}function Iq(e,t,n){return NS(e,t,n,LO,MS(Rq()),Rv(e,2,-2),0)}function HO(e,t,n,i){return NS(e,t,n,j2,Rv(e,0,i),Rv(e,i+1,-1),i)}function Fm(e,t){for(var n="",i=U2(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function Lq(e,t,n,i){switch(e.type){case Eq:if(e.children.length)break;case Sq:case j2:return e.return=e.return||e.value;case LO:return"";case VO:return e.return=e.value+"{"+Fm(e.children,i)+"}";case B2:e.value=e.props.join(",")}return Wu(n=Fm(e.children,i))?e.return=e.value+"{"+n+"}":""}function Vq(e){var t=U2(e);return function(n,i,o,s){for(var c="",d=0;d<t;d++)c+=e[d](n,i,o,s)||"";return c}}function Bq(e){return function(t){t.root||(t=t.return)&&e(t)}}function qO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var jq=function(t,n,i){for(var o=0,s=0;o=s,s=Qu(),o===38&&s===12&&(n[i]=1),!Dv(s);)vl();return _v(t,Po)},Pq=function(t,n){var i=-1,o=44;do switch(Dv(o)){case 0:o===38&&Qu()===12&&(n[i]=1),t[i]+=jq(Po-1,n,i);break;case 2:t[i]+=zS(o);break;case 4:if(o===44){t[++i]=Qu()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=MS(o)}while(o=vl());return t},Uq=function(t,n){return UO(Pq(PO(t),n))},GO=new WeakMap,$q=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!GO.get(i))&&!o){GO.set(t,!0);for(var s=[],c=Uq(n,s),d=i.props,h=0,y=0;h<c.length;h++)for(var b=0;b<d.length;b++,y++)t.props[y]=s[h]?c[h].replace(/&\f/g,d[b]):d[b]+" "+c[h]}}},Hq=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function FO(e,t){switch(Aq(e,t)){case 5103:return Jn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Jn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jn+e+RS+e+Ua+e+e;case 6828:case 4268:return Jn+e+Ua+e+e;case 6165:return Jn+e+Ua+"flex-"+e+e;case 5187:return Jn+e+er(e,/(\w+).+(:[^]+)/,Jn+"box-$1$2"+Ua+"flex-$1$2")+e;case 5443:return Jn+e+Ua+"flex-item-"+er(e,/flex-|-self/,"")+e;case 4675:return Jn+e+Ua+"flex-line-pack"+er(e,/align-content|flex-|-self/,"")+e;case 5548:return Jn+e+Ua+er(e,"shrink","negative")+e;case 5292:return Jn+e+Ua+er(e,"basis","preferred-size")+e;case 6060:return Jn+"box-"+er(e,"-grow","")+Jn+e+Ua+er(e,"grow","positive")+e;case 4554:return Jn+er(e,/([^-])(transform)/g,"$1"+Jn+"$2")+e;case 6187:return er(er(er(e,/(zoom-|grab)/,Jn+"$1"),/(image-set)/,Jn+"$1"),e,"")+e;case 5495:case 3959:return er(e,/(image-set\([^]*)/,Jn+"$1$`$1");case 4968:return er(er(e,/(.+:)(flex-)?(.*)/,Jn+"box-pack:$3"+Ua+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Jn+e+e;case 4095:case 3583:case 4068:case 2532:return er(e,/(.+)-inline(.+)/,Jn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wu(e)-1-t>6)switch(Sa(e,t+1)){case 109:if(Sa(e,t+4)!==45)break;case 102:return er(e,/(.+:)(.+)-([^]+)/,"$1"+Jn+"$2-$3$1"+RS+(Sa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~P2(e,"stretch")?FO(er(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Sa(e,t+1)!==115)break;case 6444:switch(Sa(e,Wu(e)-3-(~P2(e,"!important")&&10))){case 107:return er(e,":",":"+Jn)+e;case 101:return er(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Jn+(Sa(e,14)===45?"inline-":"")+"box$3$1"+Jn+"$2$3$1"+Ua+"$2box$3")+e}break;case 5936:switch(Sa(e,t+11)){case 114:return Jn+e+Ua+er(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jn+e+Ua+er(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jn+e+Ua+er(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Jn+e+Ua+e+e}return e}var qq=function(t,n,i,o){if(t.length>-1&&!t.return)switch(t.type){case j2:t.return=FO(t.value,t.length);break;case VO:return Fm([Mv(t,{value:er(t.value,"@","@"+Jn)})],o);case B2:if(t.length)return Oq(t.props,function(s){switch(Cq(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fm([Mv(t,{props:[er(s,/:(read-\w+)/,":"+RS+"$1")]})],o);case"::placeholder":return Fm([Mv(t,{props:[er(s,/:(plac\w+)/,":"+Jn+"input-$1")]}),Mv(t,{props:[er(s,/:(plac\w+)/,":"+RS+"$1")]}),Mv(t,{props:[er(s,/:(plac\w+)/,Ua+"input-$1")]})],o)}return""})}},Gq=[qq],Fq=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(M){var _=M.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(M),M.setAttribute("data-s",""))})}var o=t.stylisPlugins||Gq,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(M){for(var _=M.getAttribute("data-emotion").split(" "),k=1;k<_.length;k++)s[_[k]]=!0;d.push(M)});var h,y=[$q,Hq];{var b,S=[Lq,Bq(function(M){b.insert(M)})],T=Vq(y.concat(o,S)),w=function(_){return Fm(zq(_),T)};h=function(_,k,z,L){b=z,w(_?_+"{"+k.styles+"}":k.styles),L&&(C.inserted[k.name]=!0)}}var C={key:n,sheet:new xq({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:h};return C.sheet.hydrate(d),C},LS={exports:{}},sr={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var YO;function Yq(){if(YO)return sr;YO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,M=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function L(V){if(typeof V=="object"&&V!==null){var U=V.$$typeof;switch(U){case t:switch(V=V.type,V){case h:case y:case i:case s:case o:case S:return V;default:switch(V=V&&V.$$typeof,V){case d:case b:case C:case w:case c:return V;default:return U}}case n:return U}}}function B(V){return L(V)===y}return sr.AsyncMode=h,sr.ConcurrentMode=y,sr.ContextConsumer=d,sr.ContextProvider=c,sr.Element=t,sr.ForwardRef=b,sr.Fragment=i,sr.Lazy=C,sr.Memo=w,sr.Portal=n,sr.Profiler=s,sr.StrictMode=o,sr.Suspense=S,sr.isAsyncMode=function(V){return B(V)||L(V)===h},sr.isConcurrentMode=B,sr.isContextConsumer=function(V){return L(V)===d},sr.isContextProvider=function(V){return L(V)===c},sr.isElement=function(V){return typeof V=="object"&&V!==null&&V.$$typeof===t},sr.isForwardRef=function(V){return L(V)===b},sr.isFragment=function(V){return L(V)===i},sr.isLazy=function(V){return L(V)===C},sr.isMemo=function(V){return L(V)===w},sr.isPortal=function(V){return L(V)===n},sr.isProfiler=function(V){return L(V)===s},sr.isStrictMode=function(V){return L(V)===o},sr.isSuspense=function(V){return L(V)===S},sr.isValidElementType=function(V){return typeof V=="string"||typeof V=="function"||V===i||V===y||V===s||V===o||V===S||V===T||typeof V=="object"&&V!==null&&(V.$$typeof===C||V.$$typeof===w||V.$$typeof===c||V.$$typeof===d||V.$$typeof===b||V.$$typeof===_||V.$$typeof===k||V.$$typeof===z||V.$$typeof===M)},sr.typeOf=L,sr}var ur={},XO;function Xq(){if(XO)return ur;XO=1;var e={};/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,y=t?Symbol.for("react.async_mode"):60111,b=t?Symbol.for("react.concurrent_mode"):60111,S=t?Symbol.for("react.forward_ref"):60112,T=t?Symbol.for("react.suspense"):60113,w=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,M=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,k=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,L=t?Symbol.for("react.scope"):60119;function B(Me){return typeof Me=="string"||typeof Me=="function"||Me===o||Me===b||Me===c||Me===s||Me===T||Me===w||typeof Me=="object"&&Me!==null&&(Me.$$typeof===M||Me.$$typeof===C||Me.$$typeof===d||Me.$$typeof===h||Me.$$typeof===S||Me.$$typeof===k||Me.$$typeof===z||Me.$$typeof===L||Me.$$typeof===_)}function V(Me){if(typeof Me=="object"&&Me!==null){var st=Me.$$typeof;switch(st){case n:var Ot=Me.type;switch(Ot){case y:case b:case o:case c:case s:case T:return Ot;default:var Kt=Ot&&Ot.$$typeof;switch(Kt){case h:case S:case M:case C:case d:return Kt;default:return st}}case i:return st}}}var U=y,X=b,se=h,ce=d,ie=n,ue=S,$=o,le=M,Q=C,oe=i,Z=c,ae=s,de=T,we=!1;function te(Me){return we||(we=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(Me)||V(Me)===y}function F(Me){return V(Me)===b}function ee(Me){return V(Me)===h}function Y(Me){return V(Me)===d}function Re(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===n}function Se(Me){return V(Me)===S}function _e(Me){return V(Me)===o}function je(Me){return V(Me)===M}function He(Me){return V(Me)===C}function Xe(Me){return V(Me)===i}function Qe(Me){return V(Me)===c}function et(Me){return V(Me)===s}function Be(Me){return V(Me)===T}ur.AsyncMode=U,ur.ConcurrentMode=X,ur.ContextConsumer=se,ur.ContextProvider=ce,ur.Element=ie,ur.ForwardRef=ue,ur.Fragment=$,ur.Lazy=le,ur.Memo=Q,ur.Portal=oe,ur.Profiler=Z,ur.StrictMode=ae,ur.Suspense=de,ur.isAsyncMode=te,ur.isConcurrentMode=F,ur.isContextConsumer=ee,ur.isContextProvider=Y,ur.isElement=Re,ur.isForwardRef=Se,ur.isFragment=_e,ur.isLazy=je,ur.isMemo=He,ur.isPortal=Xe,ur.isProfiler=Qe,ur.isStrictMode=et,ur.isSuspense=Be,ur.isValidElementType=B,ur.typeOf=V})(),ur}var WO;function Wq(){if(WO)return LS.exports;WO=1;var e={};return e.NODE_ENV==="production"?LS.exports=Yq():LS.exports=Xq(),LS.exports}var H2,QO;function Qq(){if(QO)return H2;QO=1;var e=Wq(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=o;function c(C){return e.isMemo(C)?o:s[C.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,T=Object.prototype;function w(C,M,_){if(typeof M!="string"){if(T){var k=S(M);k&&k!==T&&w(C,k,_)}var z=h(M);y&&(z=z.concat(y(M)));for(var L=c(C),B=c(M),V=0;V<z.length;++V){var U=z[V];if(!n[U]&&!(_&&_[U])&&!(B&&B[U])&&!(L&&L[U])){var X=b(M,U);try{d(C,U,X)}catch{}}}}return C}return H2=w,H2}Qq();var Kq=!0;function KO(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var q2=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||Kq===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},G2=function(t,n,i){q2(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Zq(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Jq={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eG=/[A-Z]|^ms/g,tG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZO=function(t){return t.charCodeAt(1)===45},JO=function(t){return t!=null&&typeof t!="boolean"},F2=qO(function(e){return ZO(e)?e:e.replace(eG,"-$&").toLowerCase()}),eR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(tG,function(i,o,s){return Ku={name:o,styles:s,next:Ku},o})}return Jq[t]!==1&&!ZO(t)&&typeof n=="number"&&n!==0?n+"px":n};function Nv(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ku={name:o.name,styles:o.styles,next:Ku},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Ku={name:c.name,styles:c.styles,next:Ku},c=c.next;var d=s.styles+";";return d}return nG(e,t,n)}case"function":{if(e!==void 0){var h=Ku,y=n(e);return Ku=h,Nv(e,t,y)}break}}var b=n;if(t==null)return b;var S=t[b];return S!==void 0?S:b}function nG(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=Nv(e,t,n[o])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?i+=s+"{"+t[d]+"}":JO(d)&&(i+=F2(s)+":"+eR(s,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)JO(c[h])&&(i+=F2(s)+":"+eR(s,c[h])+";");else{var y=Nv(e,t,c);switch(s){case"animation":case"animationName":{i+=F2(s)+":"+y+";";break}default:i+=s+"{"+y+"}"}}}return i}var tR=/label:\s*([^\s;{]+)\s*(;|$)/g,Ku;function kv(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";Ku=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,o+=Nv(n,t,s);else{var c=s;o+=c[0]}for(var d=1;d<e.length;d++)if(o+=Nv(n,t,e[d]),i){var h=s;o+=h[d]}tR.lastIndex=0;for(var y="",b;(b=tR.exec(o))!==null;)y+="-"+b[1];var S=Zq(o)+y;return{name:S,styles:o,next:Ku}}var rG=function(t){return t()},nR=Nw.useInsertionEffect?Nw.useInsertionEffect:!1,rR=nR||rG,iR=nR||G.useLayoutEffect,aR=G.createContext(typeof HTMLElement<"u"?Fq({key:"css"}):null);aR.Provider;var Y2=function(t){return G.forwardRef(function(n,i){var o=G.useContext(aR);return t(n,o,i)})},VS=G.createContext({}),X2={}.hasOwnProperty,W2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",iG=function(t,n){var i={};for(var o in n)X2.call(n,o)&&(i[o]=n[o]);return i[W2]=t,i},aG=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return q2(n,i,o),rR(function(){return G2(n,i,o)}),null},oG=Y2(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[W2],s=[i],c="";typeof e.className=="string"?c=KO(t.registered,s,e.className):e.className!=null&&(c=e.className+" ");var d=kv(s,void 0,G.useContext(VS));c+=t.key+"-"+d.name;var h={};for(var y in e)X2.call(e,y)&&y!=="css"&&y!==W2&&(h[y]=e[y]);return h.className=c,n&&(h.ref=n),G.createElement(G.Fragment,null,G.createElement(aG,{cache:t,serialized:d,isStringTag:typeof o=="string"}),G.createElement(o,h))}),lG=oG,oR=function(t,n){var i=arguments;if(n==null||!X2.call(n,"css"))return G.createElement.apply(void 0,i);var o=i.length,s=new Array(o);s[0]=lG,s[1]=iG(t,n);for(var c=2;c<o;c++)s[c]=i[c];return G.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(oR||(oR={}));var sG=Y2(function(e,t){var n=e.styles,i=kv([n],void 0,G.useContext(VS)),o=G.useRef();return iR(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,h=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",s),c.hydrate([h])),o.current=[c,d],function(){c.flush()}},[t]),iR(function(){var s=o.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&G2(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function Q2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kv(t)}function zv(){var e=Q2.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var uG=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cG=qO(function(e){return uG.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),fG=cG,dG=function(t){return t!=="theme"},lR=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?fG:dG},sR=function(t,n,i){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},hG=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return q2(n,i,o),rR(function(){return G2(n,i,o)}),null},pG=function e(t,n){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,s,c;n!==void 0&&(s=n.label,c=n.target);var d=sR(t,n,i),h=d||lR(o),y=!h("as");return function(){var b=arguments,S=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&S.push("label:"+s+";"),b[0]==null||b[0].raw===void 0)S.push.apply(S,b);else{var T=b[0];S.push(T[0]);for(var w=b.length,C=1;C<w;C++)S.push(b[C],T[C])}var M=Y2(function(_,k,z){var L=y&&_.as||o,B="",V=[],U=_;if(_.theme==null){U={};for(var X in _)U[X]=_[X];U.theme=G.useContext(VS)}typeof _.className=="string"?B=KO(k.registered,V,_.className):_.className!=null&&(B=_.className+" ");var se=kv(S.concat(V),k.registered,U);B+=k.key+"-"+se.name,c!==void 0&&(B+=" "+c);var ce=y&&d===void 0?lR(L):h,ie={};for(var ue in _)y&&ue==="as"||ce(ue)&&(ie[ue]=_[ue]);return ie.className=B,z&&(ie.ref=z),G.createElement(G.Fragment,null,G.createElement(hG,{cache:k,serialized:se,isStringTag:typeof L=="string"}),G.createElement(L,ie))});return M.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",M.defaultProps=t.defaultProps,M.__emotion_real=M,M.__emotion_base=o,M.__emotion_styles=S,M.__emotion_forwardProp=d,Object.defineProperty(M,"toString",{value:function(){return"."+c}}),M.withComponent=function(_,k){var z=e(_,OS({},n,k,{shouldForwardProp:sR(M,k,!0)}));return z.apply(void 0,S)},M}},mG=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],K2=pG.bind(null);mG.forEach(function(e){K2[e]=K2(e)});var gG={};function yG(e){return e==null||Object.keys(e).length===0}function uR(e){const{styles:t,defaultTheme:n={}}=e,i=typeof t=="function"?o=>t(yG(o)?n:o):t;return H.jsx(sG,{styles:i})}gG.NODE_ENV!=="production"&&(uR.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});var vG={};function cR(e,t){const n=K2(e,t);return vG.NODE_ENV!=="production"?(...i)=>{const o=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
`)):i.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...i)}:n}function bG(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const fR=[];function Md(e){return fR[0]=e,kv(fR)}const xG=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function SG(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...o}=e,s=xG(t),c=Object.keys(s);function d(T){return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${n})`}function h(T){return`@media (max-width:${(typeof t[T]=="number"?t[T]:T)-i/100}${n})`}function y(T,w){const C=c.indexOf(w);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${n}) and (max-width:${(C!==-1&&typeof t[c[C]]=="number"?t[c[C]]:w)-i/100}${n})`}function b(T){return c.indexOf(T)+1<c.length?y(T,c[c.indexOf(T)+1]):d(T)}function S(T){const w=c.indexOf(T);return w===0?d(c[1]):w===c.length-1?h(c[w]):y(T,c[c.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:d,down:h,between:y,only:b,not:S,unit:n,...o}}const EG={borderRadius:4};var wG={};function dR(e=8,t=z2({spacing:e})){if(e.mui)return e;const n=(...i)=>(wG.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(s=>{const c=t(s);return typeof c=="number"?`${c}px`:c}).join(" "));return n.mui=!0,n}function TG(e,t){var i;const n=this;if(n.vars){if(!((i=n.colorSchemes)!=null&&i[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function BS(e={},...t){const{breakpoints:n={},palette:i={},spacing:o,shape:s={},...c}=e,d=SG(n),h=dR(o);let y=Pa({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:h,shape:{...EG,...s}},c);return y=AH(y),y.applyStyles=TG,y=t.reduce((b,S)=>Pa(b,S),y),y.unstable_sxConfig={...Ov,...c==null?void 0:c.unstable_sxConfig},y.unstable_sx=function(S){return dh({sx:S,theme:this})},y}function AG(e){return Object.keys(e).length===0}function CG(e=null){const t=G.useContext(VS);return!t||AG(t)?e:t}const OG=BS();function Iv(e=OG){return CG(e)}var RG={};function Z2(e){const t=Md(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function hR({styles:e,themeId:t,defaultTheme:n={}}){const i=Iv(n),o=t&&i[t]||i;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(c=>Z2(typeof c=="function"?c(o):c)):s=Z2(s)),H.jsx(uR,{styles:s})}RG.NODE_ENV!=="production"&&(hR.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.func,p.number,p.object,p.string,p.bool]),themeId:p.string});function MG(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:o}=e,s=cR("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(dh);return G.forwardRef(function(h,y){const b=Iv(n),{className:S,component:T="div",...w}=V2(h);return H.jsx(s,{as:T,ref:y,className:St(S,o?o(i):i),theme:t&&b[t]||b,...w})})}const _G={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Wt(e,t,n="Mui"){const i=_G[t];return i?`${n}-${i}`:`${hO.generate(e)}-${t}`}function Qt(e,t,n="Mui"){const i={};return t.forEach(o=>{i[o]=Wt(e,o,n)}),i}function pR(e,t=""){return e.displayName||e.name||t}function mR(e,t,n){const i=pR(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function DG(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pR(e,"Component");if(typeof e=="object")switch(e.$$typeof){case fh.ForwardRef:return mR(e,e.render,"ForwardRef");case fh.Memo:return mR(e,e.type,"memo");default:return}}}function gR(e){const{variants:t,...n}=e,i={variants:t,style:Md(n),isProcessed:!0};return i.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Md(o.style))}),i}var yR={};const NG=BS();function J2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hh(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function kG(e){return e?(t,n)=>n[e]:null}function zG(e,t,n){e.theme=VG(e.theme)?n:e.theme[t]||e.theme}function jS(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(o=>jS(e,o,n));if(Array.isArray(i==null?void 0:i.variants)){let o;if(i.isProcessed)o=n?hh(i.style,n):i.style;else{const{variants:s,...c}=i;o=n?hh(Md(c),n):c}return vR(e,i.variants,[o],n)}return i!=null&&i.isProcessed?n?hh(Md(i.style),n):i.style:n?hh(Md(i),n):i}function vR(e,t,n=[],i=void 0){var s;let o;e:for(let c=0;c<t.length;c+=1){const d=t[c];if(typeof d.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!d.props(o))continue}else for(const h in d.props)if(e[h]!==d.props[h]&&((s=e.ownerState)==null?void 0:s[h])!==d.props[h])continue e;typeof d.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(i?hh(Md(d.style(o)),i):d.style(o))):n.push(i?hh(Md(d.style),i):d.style)}return n}function bR(e={}){const{themeId:t,defaultTheme:n=NG,rootShouldForwardProp:i=J2,slotShouldForwardProp:o=J2}=e;function s(d){zG(d,t,n)}return(d,h={})=>{bG(d,U=>U.filter(X=>X!==dh));const{name:y,slot:b,skipVariantsResolver:S,skipSx:T,overridesResolver:w=kG(xR(b)),...C}=h,M=y&&y.startsWith("Mui")||b?"components":"custom",_=S!==void 0?S:b&&b!=="Root"&&b!=="root"||!1,k=T||!1;let z=J2;b==="Root"||b==="root"?z=i:b?z=o:BG(d)&&(z=void 0);const L=cR(d,{shouldForwardProp:z,label:LG(y,b),...C}),B=U=>{if(U.__emotion_real===U)return U;if(typeof U=="function")return function(se){return jS(se,U,se.theme.modularCssLayers?M:void 0)};if(Xu(U)){const X=gR(U);return function(ce){return X.variants?jS(ce,X,ce.theme.modularCssLayers?M:void 0):ce.theme.modularCssLayers?hh(X.style,M):X.style}}return U},V=(...U)=>{const X=[],se=U.map(B),ce=[];if(X.push(s),y&&w&&ce.push(function(le){var ae,de;const oe=(de=(ae=le.theme.components)==null?void 0:ae[y])==null?void 0:de.styleOverrides;if(!oe)return null;const Z={};for(const we in oe)Z[we]=jS(le,oe[we],le.theme.modularCssLayers?"theme":void 0);return w(le,Z)}),y&&!_&&ce.push(function(le){var Z,ae;const Q=le.theme,oe=(ae=(Z=Q==null?void 0:Q.components)==null?void 0:Z[y])==null?void 0:ae.variants;return oe?vR(le,oe,[],le.theme.modularCssLayers?"theme":void 0):null}),k||ce.push(dh),Array.isArray(se[0])){const $=se.shift(),le=new Array(X.length).fill(""),Q=new Array(ce.length).fill("");let oe;oe=[...le,...$,...Q],oe.raw=[...le,...$.raw,...Q],X.unshift(oe)}const ie=[...X,...se,...ce],ue=L(...ie);return d.muiName&&(ue.muiName=d.muiName),yR.NODE_ENV!=="production"&&(ue.displayName=IG(y,b,d)),ue};return L.withConfig&&(V.withConfig=L.withConfig),V}}function IG(e,t,n){return e?`${e}${Je(t||"")}`:`Styled(${DG(n)})`}function LG(e,t){let n;return yR.NODE_ENV!=="production"&&e&&(n=`${e}-${xR(t||"Root")}`),n}function VG(e){for(const t in e)return!1;return!0}function BG(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xR(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const jG=bR();function Lv(e,t,n=!1){const i={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const c=e[s],d=t[s];if(!d)i[s]=c||{};else if(!c)i[s]=d;else{i[s]={...d};for(const h in c)if(Object.prototype.hasOwnProperty.call(c,h)){const y=h;i[s][y]=Lv(c[y],d[y],n)}}}else s==="className"&&n&&t.className?i.className=St(e==null?void 0:e.className,t==null?void 0:t.className):s==="style"&&n&&t.style?i.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:i[s]===void 0&&(i[s]=e[s])}return i}function PG(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:Lv(t.components[n].defaultProps,i)}function UG({props:e,name:t,defaultTheme:n,themeId:i}){let o=Iv(n);return i&&(o=o[i]||o),PG({theme:o,name:t,props:e})}const Yl=typeof window<"u"?G.useLayoutEffect:G.useEffect;function Ym(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var _d={};function e7(e,t=0,n=1){return _d.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Ym(e,t,n)}function $G(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),_d.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Dd(e){if(e.type)return e;if(e.charAt(0)==="#")return Dd($G(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(_d.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Zc(9,e));let i=e.substring(t+1,e.length-1),o;if(n==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(_d.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Zc(10,o))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:n,values:i,colorSpace:o}}const HG=e=>{const t=Dd(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},Vv=(e,t)=>{try{return HG(e)}catch{return t&&_d.NODE_ENV!=="production"&&console.warn(t),e}};function PS(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function SR(e){e=Dd(e);const{values:t}=e,n=t[0],i=t[1]/100,o=t[2]/100,s=i*Math.min(o,1-o),c=(y,b=(y+n/30)%12)=>o-s*Math.max(Math.min(b-3,9-b,1),-1);let d="rgb";const h=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",h.push(t[3])),PS({type:d,values:h})}function t7(e){e=Dd(e);let t=e.type==="hsl"||e.type==="hsla"?Dd(SR(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ER(e,t){const n=t7(e),i=t7(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function US(e,t){return e=Dd(e),t=e7(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,PS(e)}function ph(e,t,n){try{return US(e,t)}catch{return n&&_d.NODE_ENV!=="production"&&console.warn(n),e}}function $S(e,t){if(e=Dd(e),t=e7(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return PS(e)}function mr(e,t,n){try{return $S(e,t)}catch{return n&&_d.NODE_ENV!=="production"&&console.warn(n),e}}function HS(e,t){if(e=Dd(e),t=e7(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return PS(e)}function gr(e,t,n){try{return HS(e,t)}catch{return n&&_d.NODE_ENV!=="production"&&console.warn(n),e}}function qG(e,t=.15){return t7(e)>.5?$S(e,t):HS(e,t)}function qS(e,t,n){try{return qG(e,t)}catch{return e}}var GG={};const FG="exact-prop: ​";function wR(e){return GG.NODE_ENV==="production"?e:{...e,[FG]:t=>{const n=Object.keys(t).filter(i=>!e.hasOwnProperty(i));return n.length>0?new Error(`The following props are not supported: ${n.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}var YG={};const XG=G.createContext();YG.NODE_ENV!=="production"&&(p.node,p.bool);const GS=()=>G.useContext(XG)??!1;var WG={};const QG=G.createContext(void 0);WG.NODE_ENV!=="production"&&(p.node,p.object);function KG(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const o=t.components[n];return o.defaultProps?Lv(o.defaultProps,i,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Lv(o,i,t.components.mergeClassNameAndStyle):i}function ZG({props:e,name:t}){const n=G.useContext(QG);return KG({props:e,name:t,theme:{components:n}})}let TR=0;function JG(e){const[t,n]=G.useState(e),i=e||t;return G.useEffect(()=>{t==null&&(TR+=1,n(`mui-${TR}`))},[t]),i}const AR={...Nw}.useId;function mh(e){if(AR!==void 0){const t=AR();return e??t}return JG(e)}const CR={theme:void 0};function eF(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(CR.theme=o.theme,s=gR(e(CR)),t=s,n=o.theme),s}}function tF(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const OR=(e,t,n,i=[])=>{let o=e;t.forEach((s,c)=>{c===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=i.includes(s)?[]:{}),o=o[s])})},nF=(e,t,n)=>{function i(o,s=[],c=[]){Object.entries(o).forEach(([d,h])=>{(!n||n&&!n([...s,d]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?i(h,[...s,d],Array.isArray(h)?[...c,d]:c):t([...s,d],h,c))})}i(e)},rF=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function n7(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},o={},s={},c={};return nF(e,(d,h,y)=>{if((typeof h=="string"||typeof h=="number")&&(!i||!i(d,h))){const b=`--${n?`${n}-`:""}${d.join("-")}`,S=rF(d,h);Object.assign(o,{[b]:S}),OR(s,d,`var(${b})`,y),OR(c,d,`var(${b}, ${S})`,y)}},d=>d[0]==="vars"),{css:o,vars:s,varsWithDefaults:c}}function iF(e,t={}){const{getSelector:n=k,disableCssColorScheme:i,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:c={},components:d,defaultColorScheme:h="light",...y}=e,{vars:b,css:S,varsWithDefaults:T}=n7(y,t);let w=T;const C={},{[h]:M,..._}=c;if(Object.entries(_||{}).forEach(([B,V])=>{const{vars:U,css:X,varsWithDefaults:se}=n7(V,t);w=Pa(w,se),C[B]={css:X,vars:U}}),M){const{css:B,vars:V,varsWithDefaults:U}=n7(M,t);w=Pa(w,U),C[h]={css:B,vars:V}}function k(B,V){var X,se;let U=o;if(o==="class"&&(U=".%s"),o==="data"&&(U="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(U=`[${o}="%s"]`),B){if(U==="media")return e.defaultColorScheme===B?":root":{[`@media (prefers-color-scheme: ${((se=(X=c[B])==null?void 0:X.palette)==null?void 0:se.mode)||B})`]:{":root":V}};if(U)return e.defaultColorScheme===B?`:root, ${U.replace("%s",String(B))}`:U.replace("%s",String(B))}return":root"}return{vars:w,generateThemeVars:()=>{let B={...b};return Object.entries(C).forEach(([,{vars:V}])=>{B=Pa(B,V)}),B},generateStyleSheets:()=>{var ce,ie;const B=[],V=e.defaultColorScheme||"light";function U(ue,$){Object.keys($).length&&B.push(typeof ue=="string"?{[ue]:{...$}}:ue)}U(n(void 0,{...S}),S);const{[V]:X,...se}=C;if(X){const{css:ue}=X,$=(ie=(ce=c[V])==null?void 0:ce.palette)==null?void 0:ie.mode,le=!i&&$?{colorScheme:$,...ue}:{...ue};U(n(V,{...le}),le)}return Object.entries(se).forEach(([ue,{css:$}])=>{var oe,Z;const le=(Z=(oe=c[ue])==null?void 0:oe.palette)==null?void 0:Z.mode,Q=!i&&le?{colorScheme:le,...$}:{...$};U(n(ue,{...Q}),Q)}),s&&B.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),B}}}var aF={};function oF(e){return function(n){return e==="media"?(aF.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Xm(e,t){var n,i,o;return G.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(i=(n=e.type)==null?void 0:n._payload)==null?void 0:i.value)==null?void 0:o.muiName))!==-1}const lF=(e,t)=>e.filter(n=>t.includes(n)),Wm=(e,t,n)=>{const i=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((c,d)=>{s<=e.keys.length-1&&(s===0?Object.assign(c,d):c[e.up(e.keys[s])]=d)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:lF(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const c=t[s];c!==void 0&&n((d,h)=>{i===s?Object.assign(d,h):d[e.up(s)]=h},c)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function FS(e){return`--Grid-${e}Spacing`}function YS(e){return`--Grid-parent-${e}Spacing`}const RR="--Grid-columns",Qm="--Grid-parent-columns",sF=({theme:e,ownerState:t})=>{const n={};return Wm(e.breakpoints,t.size,(i,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Qm}) - (var(${Qm}) - ${o}) * (var(${YS("column")}) / var(${Qm})))`}),i(n,s)}),n},uF=({theme:e,ownerState:t})=>{const n={};return Wm(e.breakpoints,t.offset,(i,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Qm}) + var(${YS("column")}) * ${o} / var(${Qm}))`}),i(n,s)}),n},cF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[RR]:12};return Wm(e.breakpoints,t.columns,(i,o)=>{const s=o??12;i(n,{[RR]:s,"> *":{[Qm]:s}})}),n},fF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Wm(e.breakpoints,t.rowSpacing,(i,o)=>{var c;const s=typeof o=="string"?o:(c=e.spacing)==null?void 0:c.call(e,o);i(n,{[FS("row")]:s,"> *":{[YS("row")]:s}})}),n},dF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Wm(e.breakpoints,t.columnSpacing,(i,o)=>{var c;const s=typeof o=="string"?o:(c=e.spacing)==null?void 0:c.call(e,o);i(n,{[FS("column")]:s,"> *":{[YS("column")]:s}})}),n},hF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Wm(e.breakpoints,t.direction,(i,o)=>{i(n,{flexDirection:o})}),n},pF=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${FS("row")}) var(${FS("column")})`}}),mF=e=>{const t=[];return Object.entries(e).forEach(([n,i])=>{i!==!1&&i!==void 0&&t.push(`grid-${n}-${String(i)}`)}),t},gF=(e,t="xs")=>{function n(i){return i===void 0?!1:typeof i=="string"&&!Number.isNaN(Number(i))||typeof i=="number"&&i>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const i=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&i.push(`spacing-${o}-${String(s)}`)}),i}return[]},yF=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];var vF={};const bF=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,MR=[];function xF(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(i=>{e[i]!==void 0&&(n.push(i),delete e[i])}),vF.NODE_ENV!=="production"&&n.forEach(i=>{MR.includes(i)||(MR.push(i),console.warn(`MUI Grid: ${bF(i)}
`))})}var SF={};const EF=BS(),wF=jG("div",{name:"MuiGrid",slot:"Root"});function TF(e){return UG({props:e,name:"MuiGrid",defaultTheme:EF})}function AF(e={}){const{createStyledComponent:t=wF,useThemeProps:n=TF,useTheme:i=Iv,componentName:o="MuiGrid"}=e,s=(y,b)=>{const{container:S,direction:T,spacing:w,wrap:C,size:M}=y,_={root:["root",S&&"container",C!=="wrap"&&`wrap-xs-${String(C)}`,...yF(T),...mF(M),...S?gF(w,b.breakpoints.keys[0]):[]]};return en(_,k=>Wt(o,k),{})};function c(y,b,S=()=>!0){const T={};return y===null||(Array.isArray(y)?y.forEach((w,C)=>{w!==null&&S(w)&&b.keys[C]&&(T[b.keys[C]]=w)}):typeof y=="object"?Object.keys(y).forEach(w=>{const C=y[w];C!=null&&S(C)&&(T[w]=C)}):T[b.keys[0]]=y),T}const d=t(cF,dF,fF,sF,hF,pF,uF),h=G.forwardRef(function(b,S){const T=i(),w=n(b),C=V2(w);xF(C,T.breakpoints);const{className:M,children:_,columns:k=12,container:z=!1,component:L="div",direction:B="row",wrap:V="wrap",size:U={},offset:X={},spacing:se=0,rowSpacing:ce=se,columnSpacing:ie=se,unstable_level:ue=0,...$}=C,le=c(U,T.breakpoints,F=>F!==!1),Q=c(X,T.breakpoints),oe=b.columns??(ue?void 0:k),Z=b.spacing??(ue?void 0:se),ae=b.rowSpacing??b.spacing??(ue?void 0:ce),de=b.columnSpacing??b.spacing??(ue?void 0:ie),we={...C,level:ue,columns:oe,container:z,direction:B,wrap:V,spacing:Z,rowSpacing:ae,columnSpacing:de,size:le,offset:Q},te=s(we,T);return H.jsx(d,{ref:S,as:L,ownerState:we,className:St(te.root,M),...$,children:G.Children.map(_,F=>{var ee;return G.isValidElement(F)&&Xm(F,["Grid"])&&z&&F.props.container?G.cloneElement(F,{unstable_level:((ee=F.props)==null?void 0:ee.unstable_level)??ue+1}):F})})});return SF.NODE_ENV!=="production"&&(h.propTypes={children:p.node,className:p.string,columns:p.oneOfType([p.arrayOf(p.number),p.number,p.object]),columnSpacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),component:p.elementType,container:p.bool,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),offset:p.oneOfType([p.string,p.number,p.arrayOf(p.oneOfType([p.string,p.number])),p.object]),rowSpacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),size:p.oneOfType([p.string,p.bool,p.number,p.arrayOf(p.oneOfType([p.string,p.bool,p.number])),p.object]),spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),wrap:p.oneOf(["nowrap","wrap-reverse","wrap"])}),h.muiName="Grid",h}const Bv={black:"#000",white:"#fff"},CF={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Km={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Zm={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},jv={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Jm={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},eg={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},tg={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var XS={};function _R(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Bv.white,default:Bv.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const DR=_R();function NR(){return{text:{primary:Bv.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Bv.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const r7=NR();function kR(e,t,n,i){const o=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=HS(e.main,o):t==="dark"&&(e.dark=$S(e.main,s)))}function zR(e,t,n,i,o){const s=o.light||o,c=o.dark||o*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(c*100).toFixed(0)}%)`))}function OF(e="light"){return e==="dark"?{main:Jm[200],light:Jm[50],dark:Jm[400]}:{main:Jm[700],light:Jm[400],dark:Jm[800]}}function RF(e="light"){return e==="dark"?{main:Km[200],light:Km[50],dark:Km[400]}:{main:Km[500],light:Km[300],dark:Km[700]}}function MF(e="light"){return e==="dark"?{main:Zm[500],light:Zm[300],dark:Zm[700]}:{main:Zm[700],light:Zm[400],dark:Zm[800]}}function _F(e="light"){return e==="dark"?{main:eg[400],light:eg[300],dark:eg[700]}:{main:eg[700],light:eg[500],dark:eg[900]}}function DF(e="light"){return e==="dark"?{main:tg[400],light:tg[300],dark:tg[700]}:{main:tg[800],light:tg[500],dark:tg[900]}}function NF(e="light"){return e==="dark"?{main:jv[400],light:jv[300],dark:jv[700]}:{main:"#ed6c02",light:jv[500],dark:jv[900]}}function kF(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function i7(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,colorSpace:o,...s}=e,c=e.primary||OF(t),d=e.secondary||RF(t),h=e.error||MF(t),y=e.info||_F(t),b=e.success||DF(t),S=e.warning||NF(t);function T(_){if(o)return kF(_);const k=ER(_,r7.text.primary)>=n?r7.text.primary:DR.text.primary;if(XS.NODE_ENV!=="production"){const z=ER(_,k);z<3&&console.error([`MUI: The contrast ratio of ${z}:1 for ${k} on ${_}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
`))}return k}const w=({color:_,name:k,mainShade:z=500,lightShade:L=300,darkShade:B=700})=>{if(_={..._},!_.main&&_[z]&&(_.main=_[z]),!_.hasOwnProperty("main"))throw new Error(XS.NODE_ENV!=="production"?`MUI: The color${k?` (${k})`:""} provided to augmentColor(color) is invalid.
The color object needs to have a \`main\` property or a \`${z}\` property.`:Zc(11,k?` (${k})`:"",z));if(typeof _.main!="string")throw new Error(XS.NODE_ENV!=="production"?`MUI: The color${k?` (${k})`:""} provided to augmentColor(color) is invalid.
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.

Did you intend to use one of the following approaches?

import { green } from "@mui/material/colors";

const theme1 = createTheme({ palette: {
  primary: green,
} });

const theme2 = createTheme({ palette: {
  primary: { main: green[500] },
} });`:Zc(12,k?` (${k})`:"",JSON.stringify(_.main)));return o?(zR(o,_,"light",L,i),zR(o,_,"dark",B,i)):(kR(_,"light",L,i),kR(_,"dark",B,i)),_.contrastText||(_.contrastText=T(_.main)),_};let C;return t==="light"?C=_R():t==="dark"&&(C=NR()),XS.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Pa({common:{...Bv},mode:t,primary:w({color:c,name:"primary"}),secondary:w({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:h,name:"error"}),warning:w({color:S,name:"warning"}),info:w({color:y,name:"info"}),success:w({color:b,name:"success"}),grey:CF,contrastThreshold:n,getContrastText:T,augmentColor:w,tonalOffset:i,...C},s)}function zF(e){const t={};return Object.entries(e).forEach(i=>{const[o,s]=i;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function IF(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}var LF={};function VF(e){return Math.round(e*1e5)/1e5}const IR={textTransform:"uppercase"},LR='"Roboto", "Helvetica", "Arial", sans-serif';function BF(e,t){const{fontFamily:n=LR,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:y,pxToRem:b,...S}=typeof t=="function"?t(e):t;LF.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof h!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const T=i/14,w=b||(_=>`${_/h*T}rem`),C=(_,k,z,L,B)=>({fontFamily:n,fontWeight:_,fontSize:w(k),lineHeight:z,...n===LR?{letterSpacing:`${VF(L/k)}em`}:{},...B,...y}),M={h1:C(o,96,1.167,-1.5),h2:C(o,60,1.2,-.5),h3:C(s,48,1.167,0),h4:C(s,34,1.235,.25),h5:C(s,24,1.334,0),h6:C(c,20,1.6,.15),subtitle1:C(s,16,1.75,.15),subtitle2:C(c,14,1.57,.1),body1:C(s,16,1.5,.15),body2:C(s,14,1.43,.15),button:C(c,14,1.75,.4,IR),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,IR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pa({htmlFontSize:h,pxToRem:w,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...M},S,{clone:!1})}const jF=.2,PF=.14,UF=.12;function Ur(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${jF})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${PF})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${UF})`].join(",")}const $F=["none",Ur(0,2,1,-1,0,1,1,0,0,1,3,0),Ur(0,3,1,-2,0,2,2,0,0,1,5,0),Ur(0,3,3,-2,0,3,4,0,0,1,8,0),Ur(0,2,4,-1,0,4,5,0,0,1,10,0),Ur(0,3,5,-1,0,5,8,0,0,1,14,0),Ur(0,3,5,-1,0,6,10,0,0,1,18,0),Ur(0,4,5,-2,0,7,10,1,0,2,16,1),Ur(0,5,5,-3,0,8,10,1,0,3,14,2),Ur(0,5,6,-3,0,9,12,1,0,3,16,2),Ur(0,6,6,-3,0,10,14,1,0,4,18,3),Ur(0,6,7,-4,0,11,15,1,0,4,20,3),Ur(0,7,8,-4,0,12,17,2,0,5,22,4),Ur(0,7,8,-4,0,13,19,2,0,5,24,4),Ur(0,7,9,-4,0,14,21,2,0,5,26,4),Ur(0,8,9,-5,0,15,22,2,0,6,28,5),Ur(0,8,10,-5,0,16,24,2,0,6,30,5),Ur(0,8,11,-5,0,17,26,2,0,6,32,5),Ur(0,9,11,-5,0,18,28,2,0,7,34,6),Ur(0,9,12,-6,0,19,29,2,0,7,36,6),Ur(0,10,13,-6,0,20,31,3,0,8,38,7),Ur(0,10,13,-6,0,21,33,3,0,8,40,7),Ur(0,10,14,-6,0,22,35,3,0,8,42,7),Ur(0,11,14,-7,0,23,36,3,0,9,44,8),Ur(0,11,15,-7,0,24,38,3,0,9,46,8)];var HF={};const qF={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},GF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function VR(e){return`${Math.round(e)}ms`}function FF(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function YF(e){const t={...qF,...e.easing},n={...GF,...e.duration};return{getAutoHeightDuration:FF,create:(o=["all"],s={})=>{const{duration:c=n.standard,easing:d=t.easeInOut,delay:h=0,...y}=s;if(HF.NODE_ENV!=="production"){const b=T=>typeof T=="string",S=T=>!Number.isNaN(parseFloat(T));!b(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!S(c)&&!b(c)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`),b(d)||console.error('MUI: Argument "easing" must be a string.'),!S(h)&&!b(h)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
`)),Object.keys(y).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(y).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(b=>`${b} ${typeof c=="string"?c:VR(c)} ${d} ${typeof h=="string"?h:VR(h)}`).join(",")},...e,easing:t,duration:n}}const XF={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function WF(e){return Xu(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function BR(e={}){const t={...e};function n(i){const o=Object.entries(i);for(let s=0;s<o.length;s++){const[c,d]=o[s];!WF(d)||c.startsWith("unstable_")?delete i[c]:Xu(d)&&(i[c]={...d},n(i[c]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}var a7={};function jR(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const QF=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let i=0;i<t.length;i+=1)n+=+t[i];return n};function KF(e){Object.assign(e,{alpha(t,n){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:US(t,QF(n))},lighten(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${jR(n)})`:HS(t,n)},darken(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${jR(n)})`:$S(t,n)}})}function o7(e={},...t){const{breakpoints:n,mixins:i={},spacing:o,palette:s={},transitions:c={},typography:d={},shape:h,colorSpace:y,...b}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(a7.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Zc(20));const S=i7({...s,colorSpace:y}),T=BS(e);let w=Pa(T,{mixins:IF(T.breakpoints,i),palette:S,shadows:$F.slice(),typography:BF(S,d),transitions:YF(c),zIndex:{...XF}});if(w=Pa(w,b),w=t.reduce((C,M)=>Pa(C,M),w),a7.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],M=(_,k)=>{let z;for(z in _){const L=_[z];if(C.includes(z)&&Object.keys(L).length>0){if(a7.NODE_ENV!=="production"){const B=Wt("",z);console.error([`MUI: The \`${k}\` component increases the CSS specificity of the \`${z}\` internal state.`,"You can not override it like this: ",JSON.stringify(_,null,2),"",`Instead, you need to use the '&.${B}' syntax:`,JSON.stringify({root:{[`&.${B}`]:L}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
`))}_[z]={}}}};Object.keys(w.components).forEach(_=>{const k=w.components[_].styleOverrides;k&&_.startsWith("Mui")&&M(k,_)})}return w.unstable_sxConfig={...Ov,...b==null?void 0:b.unstable_sxConfig},w.unstable_sx=function(M){return dh({sx:M,theme:this})},w.toRuntimeSource=BR,KF(w),w}function l7(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const ZF=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=l7(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function PR(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function UR(e){return e==="dark"?ZF:[]}function JF(e){const{palette:t={mode:"light"},opacity:n,overlays:i,colorSpace:o,...s}=e,c=i7({...t,colorSpace:o});return{palette:c,opacity:{...PR(c.mode),...n},overlays:i||UR(c.mode),...s}}function eY(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const tY=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],nY=e=>(t,n)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return tY(e.cssVarPrefix).forEach(d=>{c[d]=n[d],delete n[d]}),s==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:c}}:s?{[s.replace("%s",t)]:c,[`${i}, ${s.replace("%s",t)}`]:n}:{[i]:{...n,...c}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(s)return s.replace("%s",String(t))}return i};var rY={};function iY(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Fe(e,t,n){!e[t]&&n&&(e[t]=n)}function Pv(e){return typeof e!="string"||!e.startsWith("hsl")?e:SR(e)}function ef(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Vv(Pv(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function aY(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Zu=e=>{try{return e()}catch{}},oY=(e="mui")=>tF(e);function s7(e,t,n,i,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!i){t[o]=JF({...n,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:c,...d}=o7({...i,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:c,opacity:{...PR(s),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||UR(s)},d}function lY(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:c=!1,shouldSkipGeneratingVar:d=eY,colorSchemeSelector:h=n.light&&n.dark?"media":void 0,rootSelector:y=":root",...b}=e,S=Object.keys(n)[0],T=i||(n.light&&S!=="light"?"light":S),w=oY(s),{[T]:C,light:M,dark:_,...k}=n,z={...k};let L=C;if((T==="dark"&&!("dark"in n)||T==="light"&&!("light"in n))&&(L=!0),!L)throw new Error(rY.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${T}\` option is either missing or invalid.`:Zc(21,T));let B;c&&(B="oklch");const V=s7(B,z,L,b,T);M&&!z.light&&s7(B,z,M,void 0,"light"),_&&!z.dark&&s7(B,z,_,void 0,"dark");let U={defaultColorScheme:T,...V,cssVarPrefix:s,colorSchemeSelector:h,rootSelector:y,getCssVar:w,colorSchemes:z,font:{...zF(V.typography),...V.font},spacing:aY(b.spacing)};Object.keys(U.colorSchemes).forEach(ue=>{const $=U.colorSchemes[ue].palette,le=oe=>{const Z=oe.split("-"),ae=Z[1],de=Z[2];return w(oe,$[ae][de])};$.mode==="light"&&(Fe($.common,"background","#fff"),Fe($.common,"onBackground","#000")),$.mode==="dark"&&(Fe($.common,"background","#000"),Fe($.common,"onBackground","#fff"));function Q(oe,Z,ae){if(B){let de;return oe===ph&&(de=`transparent ${((1-ae)*100).toFixed(0)}%`),oe===mr&&(de=`#000 ${(ae*100).toFixed(0)}%`),oe===gr&&(de=`#fff ${(ae*100).toFixed(0)}%`),`color-mix(in ${B}, ${Z}, ${de})`}return oe(Z,ae)}if(iY($,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),$.mode==="light"){Fe($.Alert,"errorColor",Q(mr,c?w("palette-error-light"):$.error.light,.6)),Fe($.Alert,"infoColor",Q(mr,c?w("palette-info-light"):$.info.light,.6)),Fe($.Alert,"successColor",Q(mr,c?w("palette-success-light"):$.success.light,.6)),Fe($.Alert,"warningColor",Q(mr,c?w("palette-warning-light"):$.warning.light,.6)),Fe($.Alert,"errorFilledBg",le("palette-error-main")),Fe($.Alert,"infoFilledBg",le("palette-info-main")),Fe($.Alert,"successFilledBg",le("palette-success-main")),Fe($.Alert,"warningFilledBg",le("palette-warning-main")),Fe($.Alert,"errorFilledColor",Zu(()=>$.getContrastText($.error.main))),Fe($.Alert,"infoFilledColor",Zu(()=>$.getContrastText($.info.main))),Fe($.Alert,"successFilledColor",Zu(()=>$.getContrastText($.success.main))),Fe($.Alert,"warningFilledColor",Zu(()=>$.getContrastText($.warning.main))),Fe($.Alert,"errorStandardBg",Q(gr,c?w("palette-error-light"):$.error.light,.9)),Fe($.Alert,"infoStandardBg",Q(gr,c?w("palette-info-light"):$.info.light,.9)),Fe($.Alert,"successStandardBg",Q(gr,c?w("palette-success-light"):$.success.light,.9)),Fe($.Alert,"warningStandardBg",Q(gr,c?w("palette-warning-light"):$.warning.light,.9)),Fe($.Alert,"errorIconColor",le("palette-error-main")),Fe($.Alert,"infoIconColor",le("palette-info-main")),Fe($.Alert,"successIconColor",le("palette-success-main")),Fe($.Alert,"warningIconColor",le("palette-warning-main")),Fe($.AppBar,"defaultBg",le("palette-grey-100")),Fe($.Avatar,"defaultBg",le("palette-grey-400")),Fe($.Button,"inheritContainedBg",le("palette-grey-300")),Fe($.Button,"inheritContainedHoverBg",le("palette-grey-A100")),Fe($.Chip,"defaultBorder",le("palette-grey-400")),Fe($.Chip,"defaultAvatarColor",le("palette-grey-700")),Fe($.Chip,"defaultIconColor",le("palette-grey-700")),Fe($.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Fe($.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Fe($.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Fe($.LinearProgress,"primaryBg",Q(gr,c?w("palette-primary-main"):$.primary.main,.62)),Fe($.LinearProgress,"secondaryBg",Q(gr,c?w("palette-secondary-main"):$.secondary.main,.62)),Fe($.LinearProgress,"errorBg",Q(gr,c?w("palette-error-main"):$.error.main,.62)),Fe($.LinearProgress,"infoBg",Q(gr,c?w("palette-info-main"):$.info.main,.62)),Fe($.LinearProgress,"successBg",Q(gr,c?w("palette-success-main"):$.success.main,.62)),Fe($.LinearProgress,"warningBg",Q(gr,c?w("palette-warning-light"):$.warning.main,.62)),Fe($.Skeleton,"bg",B?Q(ph,c?w("palette-text-primary"):$.text.primary,.11):`rgba(${le("palette-text-primaryChannel")} / 0.11)`),Fe($.Slider,"primaryTrack",Q(gr,c?w("palette-primary-main"):$.primary.main,.62)),Fe($.Slider,"secondaryTrack",Q(gr,c?w("palette-secondary-main"):$.secondary.main,.62)),Fe($.Slider,"errorTrack",Q(gr,c?w("palette-error-main"):$.error.main,.62)),Fe($.Slider,"infoTrack",Q(gr,c?w("palette-info-main"):$.info.main,.62)),Fe($.Slider,"successTrack",Q(gr,c?w("palette-success-main"):$.success.main,.62)),Fe($.Slider,"warningTrack",Q(gr,c?w("palette-warning-main"):$.warning.main,.62));const oe=B?Q(mr,c?w("palette-background-default"):$.background.default,.6825):qS($.background.default,.8);Fe($.SnackbarContent,"bg",oe),Fe($.SnackbarContent,"color",Zu(()=>B?r7.text.primary:$.getContrastText(oe))),Fe($.SpeedDialAction,"fabHoverBg",qS($.background.paper,.15)),Fe($.StepConnector,"border",le("palette-grey-400")),Fe($.StepContent,"border",le("palette-grey-400")),Fe($.Switch,"defaultColor",le("palette-common-white")),Fe($.Switch,"defaultDisabledColor",le("palette-grey-100")),Fe($.Switch,"primaryDisabledColor",Q(gr,c?w("palette-primary-main"):$.primary.main,.62)),Fe($.Switch,"secondaryDisabledColor",Q(gr,c?w("palette-secondary-main"):$.secondary.main,.62)),Fe($.Switch,"errorDisabledColor",Q(gr,c?w("palette-error-main"):$.error.main,.62)),Fe($.Switch,"infoDisabledColor",Q(gr,c?w("palette-info-main"):$.info.main,.62)),Fe($.Switch,"successDisabledColor",Q(gr,c?w("palette-success-main"):$.success.main,.62)),Fe($.Switch,"warningDisabledColor",Q(gr,c?w("palette-warning-main"):$.warning.main,.62)),Fe($.TableCell,"border",Q(gr,ph(c?w("palette-divider"):$.divider,1),.88)),Fe($.Tooltip,"bg",Q(ph,c?w("palette-grey-700"):$.grey[700],.92))}if($.mode==="dark"){Fe($.Alert,"errorColor",Q(gr,c?w("palette-error-light"):$.error.light,.6)),Fe($.Alert,"infoColor",Q(gr,c?w("palette-info-light"):$.info.light,.6)),Fe($.Alert,"successColor",Q(gr,c?w("palette-success-light"):$.success.light,.6)),Fe($.Alert,"warningColor",Q(gr,c?w("palette-warning-light"):$.warning.light,.6)),Fe($.Alert,"errorFilledBg",le("palette-error-dark")),Fe($.Alert,"infoFilledBg",le("palette-info-dark")),Fe($.Alert,"successFilledBg",le("palette-success-dark")),Fe($.Alert,"warningFilledBg",le("palette-warning-dark")),Fe($.Alert,"errorFilledColor",Zu(()=>$.getContrastText($.error.dark))),Fe($.Alert,"infoFilledColor",Zu(()=>$.getContrastText($.info.dark))),Fe($.Alert,"successFilledColor",Zu(()=>$.getContrastText($.success.dark))),Fe($.Alert,"warningFilledColor",Zu(()=>$.getContrastText($.warning.dark))),Fe($.Alert,"errorStandardBg",Q(mr,c?w("palette-error-light"):$.error.light,.9)),Fe($.Alert,"infoStandardBg",Q(mr,c?w("palette-info-light"):$.info.light,.9)),Fe($.Alert,"successStandardBg",Q(mr,c?w("palette-success-light"):$.success.light,.9)),Fe($.Alert,"warningStandardBg",Q(mr,c?w("palette-warning-light"):$.warning.light,.9)),Fe($.Alert,"errorIconColor",le("palette-error-main")),Fe($.Alert,"infoIconColor",le("palette-info-main")),Fe($.Alert,"successIconColor",le("palette-success-main")),Fe($.Alert,"warningIconColor",le("palette-warning-main")),Fe($.AppBar,"defaultBg",le("palette-grey-900")),Fe($.AppBar,"darkBg",le("palette-background-paper")),Fe($.AppBar,"darkColor",le("palette-text-primary")),Fe($.Avatar,"defaultBg",le("palette-grey-600")),Fe($.Button,"inheritContainedBg",le("palette-grey-800")),Fe($.Button,"inheritContainedHoverBg",le("palette-grey-700")),Fe($.Chip,"defaultBorder",le("palette-grey-700")),Fe($.Chip,"defaultAvatarColor",le("palette-grey-300")),Fe($.Chip,"defaultIconColor",le("palette-grey-300")),Fe($.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Fe($.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Fe($.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Fe($.LinearProgress,"primaryBg",Q(mr,c?w("palette-primary-main"):$.primary.main,.5)),Fe($.LinearProgress,"secondaryBg",Q(mr,c?w("palette-secondary-main"):$.secondary.main,.5)),Fe($.LinearProgress,"errorBg",Q(mr,c?w("palette-error-main"):$.error.main,.5)),Fe($.LinearProgress,"infoBg",Q(mr,c?w("palette-info-main"):$.info.main,.5)),Fe($.LinearProgress,"successBg",Q(mr,c?w("palette-success-main"):$.success.main,.5)),Fe($.LinearProgress,"warningBg",Q(mr,c?w("palette-warning-main"):$.warning.main,.5)),Fe($.Skeleton,"bg",B?Q(ph,c?w("palette-text-primary"):$.text.primary,.13):`rgba(${le("palette-text-primaryChannel")} / 0.13)`),Fe($.Slider,"primaryTrack",Q(mr,c?w("palette-primary-main"):$.primary.main,.5)),Fe($.Slider,"secondaryTrack",Q(mr,c?w("palette-secondary-main"):$.secondary.main,.5)),Fe($.Slider,"errorTrack",Q(mr,c?w("palette-error-main"):$.error.main,.5)),Fe($.Slider,"infoTrack",Q(mr,c?w("palette-info-main"):$.info.main,.5)),Fe($.Slider,"successTrack",Q(mr,c?w("palette-success-main"):$.success.main,.5)),Fe($.Slider,"warningTrack",Q(mr,c?w("palette-warning-light"):$.warning.main,.5));const oe=B?Q(gr,c?w("palette-background-default"):$.background.default,.985):qS($.background.default,.98);Fe($.SnackbarContent,"bg",oe),Fe($.SnackbarContent,"color",Zu(()=>B?DR.text.primary:$.getContrastText(oe))),Fe($.SpeedDialAction,"fabHoverBg",qS($.background.paper,.15)),Fe($.StepConnector,"border",le("palette-grey-600")),Fe($.StepContent,"border",le("palette-grey-600")),Fe($.Switch,"defaultColor",le("palette-grey-300")),Fe($.Switch,"defaultDisabledColor",le("palette-grey-600")),Fe($.Switch,"primaryDisabledColor",Q(mr,c?w("palette-primary-main"):$.primary.main,.55)),Fe($.Switch,"secondaryDisabledColor",Q(mr,c?w("palette-secondary-main"):$.secondary.main,.55)),Fe($.Switch,"errorDisabledColor",Q(mr,c?w("palette-error-main"):$.error.main,.55)),Fe($.Switch,"infoDisabledColor",Q(mr,c?w("palette-info-main"):$.info.main,.55)),Fe($.Switch,"successDisabledColor",Q(mr,c?w("palette-success-main"):$.success.main,.55)),Fe($.Switch,"warningDisabledColor",Q(mr,c?w("palette-warning-light"):$.warning.main,.55)),Fe($.TableCell,"border",Q(mr,ph(c?w("palette-divider"):$.divider,1),.68)),Fe($.Tooltip,"bg",Q(ph,c?w("palette-grey-700"):$.grey[700],.92))}ef($.background,"default"),ef($.background,"paper"),ef($.common,"background"),ef($.common,"onBackground"),ef($,"divider"),Object.keys($).forEach(oe=>{const Z=$[oe];oe!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&Fe($[oe],"mainChannel",Vv(Pv(Z.main))),Z.light&&Fe($[oe],"lightChannel",Vv(Pv(Z.light))),Z.dark&&Fe($[oe],"darkChannel",Vv(Pv(Z.dark))),Z.contrastText&&Fe($[oe],"contrastTextChannel",Vv(Pv(Z.contrastText))),oe==="text"&&(ef($[oe],"primary"),ef($[oe],"secondary")),oe==="action"&&(Z.active&&ef($[oe],"active"),Z.selected&&ef($[oe],"selected")))})}),U=t.reduce((ue,$)=>Pa(ue,$),U);const X={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:d,getSelector:nY(U),enableContrastVars:c},{vars:se,generateThemeVars:ce,generateStyleSheets:ie}=iF(U,X);return U.vars=se,Object.entries(U.colorSchemes[U.defaultColorScheme]).forEach(([ue,$])=>{U[ue]=$}),U.generateThemeVars=ce,U.generateStyleSheets=ie,U.generateSpacing=function(){return dR(b.spacing,z2(this))},U.getColorSchemeSelector=oF(h),U.spacing=U.generateSpacing(),U.shouldSkipGeneratingVar=d,U.unstable_sxConfig={...Ov,...b==null?void 0:b.unstable_sxConfig},U.unstable_sx=function($){return dh({sx:$,theme:this})},U.toRuntimeSource=BR,U}function $R(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:i7({...n===!0?{}:n.palette,mode:t})})}function HR(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...c}=e,d=s||"light",h=o==null?void 0:o[d],y={...o,...n?{[d]:{...typeof h!="boolean"&&h,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return o7(e,...t);let b=n;"palette"in e||y[d]&&(y[d]!==!0?b=y[d].palette:d==="dark"&&(b={mode:"dark"}));const S=o7({...e,palette:b},...t);return S.defaultColorScheme=d,S.colorSchemes=y,S.palette.mode==="light"&&(S.colorSchemes.light={...y.light!==!0&&y.light,palette:S.palette},$R(S,"dark",y.dark)),S.palette.mode==="dark"&&(S.colorSchemes.dark={...y.dark!==!0&&y.dark,palette:S.palette},$R(S,"light",y.light)),S}return!n&&!("light"in y)&&d==="light"&&(y.light=!0),lY({...c,colorSchemes:y,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const u7=HR(),WS="$$material";var sY={};function tf(){const e=Iv(u7);return sY.NODE_ENV!=="production"&&G.useDebugValue(e),e[WS]||e}var uY={};function qR(e){return H.jsx(hR,{...e,defaultTheme:u7,themeId:WS})}uY.NODE_ENV!=="production"&&(qR.propTypes={styles:p.oneOfType([p.array,p.func,p.number,p.object,p.string,p.bool])});function QS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ea=e=>QS(e)&&e!=="classes",it=bR({themeId:WS,defaultTheme:u7,rootShouldForwardProp:Ea});function cY(e){return function(n){return H.jsx(qR,{styles:typeof e=="function"?i=>e({theme:i,...n}):e})}}function fY(){return V2}const Gt=eF;var dY={};dY.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function ln(e){return ZG(e)}function hY(e){return Wt("MuiSvgIcon",e)}Qt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var pY={};const mY=e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root",t!=="inherit"&&`color${Je(t)}`,`fontSize${Je(n)}`]};return en(o,hY,i)},gY=it("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Je(n.color)}`],t[`fontSize${Je(n.fontSize)}`]]}})(Gt(({theme:e})=>{var t,n,i,o,s,c,d,h,y,b,S,T,w,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(i=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:M=>!M.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:h.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((b=(y=e.typography)==null?void 0:y.pxToRem)==null?void 0:b.call(y,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,M])=>M&&M.main).map(([M])=>{var _,k;return{props:{color:M},style:{color:(k=(_=(e.vars??e).palette)==null?void 0:_[M])==null?void 0:k.main}}}),{props:{color:"action"},style:{color:(T=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:T.active}},{props:{color:"disabled"},style:{color:(C=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),gh=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:c="inherit",component:d="svg",fontSize:h="medium",htmlColor:y,inheritViewBox:b=!1,titleAccess:S,viewBox:T="0 0 24 24",...w}=i,C=G.isValidElement(o)&&o.type==="svg",M={...i,color:c,component:d,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:T,hasSvgAsChild:C},_={};b||(_.viewBox=T);const k=mY(M);return H.jsxs(gY,{as:d,className:St(k.root,s),focusable:"false",color:y,"aria-hidden":S?void 0:!0,role:S?"img":void 0,ref:n,..._,...w,...C&&o.props,ownerState:M,children:[C?o.props.children:o,S?H.jsx("title",{children:S}):null]})});pY.NODE_ENV!=="production"&&(gh.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string}),gh.muiName="SvgIcon";var GR={};function Mi(e,t){function n(i,o){return H.jsx(gh,{"data-testid":GR.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...i,children:e})}return GR.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=gh.muiName,G.memo(G.forwardRef(n))}function FR(e,t=166){let n;function i(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return i.clear=()=>{clearTimeout(n)},i}function wa(e){return e&&e.ownerDocument||document}function nf(e){return wa(e).defaultView||window}var yY={};function vY(e,t){if(yY.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return o=>(s,c,d,h,y,...b)=>{const S=y||c,T=n==null?void 0:n[S];if(T){const w=T(s,c,d,h,y,...b);if(w)return w}return typeof s[c]<"u"&&!s[o]?new Error(`The prop \`${S}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function YR(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var bY={};function xY(e,t,n,i,o){if(bY.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}var SY={};function ng(e){const{controlled:t,default:n,name:i,state:o="value"}=e,{current:s}=G.useRef(t!==void 0),[c,d]=G.useState(n),h=s?t:c;if(SY.NODE_ENV!=="production"){G.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${i} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
`))},[o,i,t]);const{current:b}=G.useRef(n);G.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(b)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${i} after being initialized. To suppress this warning opt to use a controlled ${i}.`].join(`
`))},[JSON.stringify(n)])}const y=G.useCallback(b=>{s||d(b)},[]);return[h,y]}function Xl(e){const t=G.useRef(e);return Yl(()=>{t.current=e}),G.useRef((...n)=>(0,t.current)(...n)).current}function ri(...e){const t=G.useRef(void 0),n=G.useCallback(i=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,d=c(i);return typeof d=="function"?d:()=>{c(null)}}return s.current=i,()=>{s.current=null}});return()=>{o.forEach(s=>s==null?void 0:s())}},e);return G.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}function EY(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function XR(e,t){if(!e)return t;function n(c,d){const h={};return Object.keys(d).forEach(y=>{EY(y,d[y])&&typeof c[y]=="function"&&(h[y]=(...b)=>{c[y](...b),d[y](...b)})}),h}if(typeof e=="function"||typeof t=="function")return c=>{const d=typeof t=="function"?t(c):t,h=typeof e=="function"?e({...c,...d}):e,y=St(c==null?void 0:c.className,d==null?void 0:d.className,h==null?void 0:h.className),b=n(h,d);return{...d,...h,...b,...!!y&&{className:y},...(d==null?void 0:d.style)&&(h==null?void 0:h.style)&&{style:{...d.style,...h.style}},...(d==null?void 0:d.sx)&&(h==null?void 0:h.sx)&&{sx:[...Array.isArray(d.sx)?d.sx:[d.sx],...Array.isArray(h.sx)?h.sx:[h.sx]]}}};const i=t,o=n(e,i),s=St(i==null?void 0:i.className,e==null?void 0:e.className);return{...t,...e,...o,...!!s&&{className:s},...(i==null?void 0:i.style)&&(e==null?void 0:e.style)&&{style:{...i.style,...e.style}},...(i==null?void 0:i.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const wY=Mi(H.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle"),WR=Mi(H.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),QR=Mi(H.jsx("path",{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"}),"Close"),TY=Mi(H.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),AY=Mi(H.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),CY=Mi(H.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send"),KR=Mi(H.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy");var OY={};function ou(e,t){return OY.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}function ZR(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function c7(e,t){return c7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},c7(e,t)}function JR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c7(e,t)}var eM=Iw();const KS=pl(eM),tM={disabled:!1};var nM={},RY=nM.NODE_ENV!=="production"?p.oneOfType([p.number,p.shape({enter:p.number,exit:p.number,appear:p.number}).isRequired]):null;nM.NODE_ENV!=="production"&&p.oneOfType([p.string,p.shape({enter:p.string,exit:p.string,active:p.string}),p.shape({enter:p.string,enterDone:p.string,enterActive:p.string,exit:p.string,exitDone:p.string,exitActive:p.string})]);const ZS=nu.createContext(null);var MY=function(t){return t.scrollTop},_Y={},Uv="unmounted",yh="exited",vh="entering",rg="entered",f7="exiting",Ju=(function(e){JR(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var c=o,d=c&&!c.isMounting?i.enter:i.appear,h;return s.appearStatus=null,i.in?d?(h=yh,s.appearStatus=vh):h=rg:i.unmountOnExit||i.mountOnEnter?h=Uv:h=yh,s.state={status:h},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var c=o.in;return c&&s.status===Uv?{status:yh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==vh&&c!==rg&&(s=vh):(c===vh||c===rg)&&(s=f7)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,c,d;return s=c=d=o,o!=null&&typeof o!="number"&&(s=o.exit,c=o.enter,d=o.appear!==void 0?o.appear:c),{exit:s,enter:c,appear:d}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===vh){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:KS.findDOMNode(this);c&&MY(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yh&&this.setState({status:Uv})},n.performEnter=function(o){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[KS.findDOMNode(this),d],y=h[0],b=h[1],S=this.getTimeouts(),T=d?S.appear:S.enter;if(!o&&!c||tM.disabled){this.safeSetState({status:rg},function(){s.props.onEntered(y)});return}this.props.onEnter(y,b),this.safeSetState({status:vh},function(){s.props.onEntering(y,b),s.onTransitionEnd(T,function(){s.safeSetState({status:rg},function(){s.props.onEntered(y,b)})})})},n.performExit=function(){var o=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:KS.findDOMNode(this);if(!s||tM.disabled){this.safeSetState({status:yh},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:f7},function(){o.props.onExiting(d),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:yh},function(){o.props.onExited(d)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,s.nextCallback=null,o(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:KS.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],y=h[0],b=h[1];this.props.addEndListener(y,b)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Uv)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=ZR(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nu.createElement(ZS.Provider,{value:null},typeof c=="function"?c(o,d):nu.cloneElement(nu.Children.only(c),d))},t})(nu.Component);Ju.contextType=ZS,Ju.propTypes=_Y.NODE_ENV!=="production"?{nodeRef:p.shape({current:typeof Element>"u"?p.any:function(e,t,n,i,o,s){var c=e[t];return p.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(e,t,n,i,o,s)}}),children:p.oneOfType([p.func.isRequired,p.element.isRequired]).isRequired,in:p.bool,mountOnEnter:p.bool,unmountOnExit:p.bool,appear:p.bool,enter:p.bool,exit:p.bool,timeout:function(t){var n=RY;t.addEndListener||(n=n.isRequired);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:p.func,onEnter:p.func,onEntering:p.func,onEntered:p.func,onExit:p.func,onExiting:p.func,onExited:p.func}:{};function ig(){}Ju.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ig,onEntering:ig,onEntered:ig,onExit:ig,onExiting:ig,onExited:ig},Ju.UNMOUNTED=Uv,Ju.EXITED=yh,Ju.ENTERING=vh,Ju.ENTERED=rg,Ju.EXITING=f7;function DY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d7(e,t){var n=function(s){return t&&G.isValidElement(s)?t(s):s},i=Object.create(null);return e&&G.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=n(o)}),i}function NY(e,t){e=e||{},t=t||{};function n(b){return b in t?t[b]:e[b]}var i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var c,d={};for(var h in t){if(i[h])for(c=0;c<i[h].length;c++){var y=i[h][c];d[i[h][c]]=n(y)}d[h]=n(h)}for(c=0;c<o.length;c++)d[o[c]]=n(o[c]);return d}function bh(e,t,n){return n[t]!=null?n[t]:e.props[t]}function kY(e,t){return d7(e.children,function(n){return G.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:bh(n,"appear",e),enter:bh(n,"enter",e),exit:bh(n,"exit",e)})})}function zY(e,t,n){var i=d7(e.children),o=NY(t,i);return Object.keys(o).forEach(function(s){var c=o[s];if(G.isValidElement(c)){var d=s in t,h=s in i,y=t[s],b=G.isValidElement(y)&&!y.props.in;h&&(!d||b)?o[s]=G.cloneElement(c,{onExited:n.bind(null,c),in:!0,exit:bh(c,"exit",e),enter:bh(c,"enter",e)}):!h&&d&&!b?o[s]=G.cloneElement(c,{in:!1}):h&&d&&G.isValidElement(y)&&(o[s]=G.cloneElement(c,{onExited:n.bind(null,c),in:y.props.in,exit:bh(c,"exit",e),enter:bh(c,"enter",e)}))}}),o}var IY={},LY=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},VY={component:"div",childFactory:function(t){return t}},h7=(function(e){JR(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var c=s.handleExited.bind(DY(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var c=s.children,d=s.handleExited,h=s.firstRender;return{children:h?kY(o,d):zY(o,c,d),firstRender:!1}},n.handleExited=function(o,s){var c=d7(this.props.children);o.key in c||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(d){var h=OS({},d.children);return delete h[o.key],{children:h}}))},n.render=function(){var o=this.props,s=o.component,c=o.childFactory,d=ZR(o,["component","childFactory"]),h=this.state.contextValue,y=LY(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?nu.createElement(ZS.Provider,{value:h},y):nu.createElement(ZS.Provider,{value:h},nu.createElement(s,d,y))},t})(nu.Component);h7.propTypes=IY.NODE_ENV!=="production"?{component:p.any,children:p.node,appear:p.bool,enter:p.bool,exit:p.bool,childFactory:p.func}:{},h7.defaultProps=VY;const rM={};function iM(e,t){const n=G.useRef(rM);return n.current===rM&&(n.current=e(t)),n}const BY=[];function jY(e){G.useEffect(e,BY)}class JS{constructor(){P(this,"currentId",null);P(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});P(this,"disposeEffect",()=>this.clear)}static create(){return new JS}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ag(){const e=iM(JS.create).current;return jY(e.disposeEffect),e}function PY(e){const{prototype:t={}}=e;return!!t.isReactComponent}function UY(e,t,n,i,o){const s=e[t],c=o||t;if(s==null||typeof window>"u")return null;let d;return typeof s=="function"&&!PY(s)&&(d="Did you accidentally provide a plain function component instead?"),s===G.Fragment&&(d="Did you accidentally provide a React.Fragment instead?"),d!==void 0?new Error(`Invalid ${i} \`${c}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${d} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const e3=ou(p.elementType,UY),aM=e=>e.scrollTop;function t3(e,t){const{timeout:n,easing:i,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:o.transitionDelay}}function ec(e){return typeof e=="string"}function oM(e,t,n){return e===void 0||ec(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function lM(e,t,n){return typeof e=="function"?e(t,n):e}function $v(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function sM(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function uM(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const w=St(n==null?void 0:n.className,s,o==null?void 0:o.className,i==null?void 0:i.className),C={...n==null?void 0:n.style,...o==null?void 0:o.style,...i==null?void 0:i.style},M={...n,...o,...i};return w.length>0&&(M.className=w),Object.keys(C).length>0&&(M.style=C),{props:M,internalRef:void 0}}const c=$v({...o,...i}),d=sM(i),h=sM(o),y=t(c),b=St(y==null?void 0:y.className,n==null?void 0:n.className,s,o==null?void 0:o.className,i==null?void 0:i.className),S={...y==null?void 0:y.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...i==null?void 0:i.style},T={...y,...n,...h,...d};return b.length>0&&(T.className=b),Object.keys(S).length>0&&(T.style=S),{props:T,internalRef:y.ref}}function nn(e,t){const{className:n,elementType:i,ownerState:o,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...h}=t,{component:y,slots:b={[e]:void 0},slotProps:S={[e]:void 0},...T}=s,w=b[e]||i,C=lM(S[e],o),{props:{component:M,..._},internalRef:k}=uM({className:n,...h,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:C}),z=ri(k,C==null?void 0:C.ref,t.ref),L=e==="root"?M||y:M,B=oM(w,{...e==="root"&&!y&&!b[e]&&c,...e!=="root"&&!b[e]&&c,..._,...L&&!d&&{as:L},...L&&d&&{component:L},ref:z},o);return[w,B]}var $Y={};function HY(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function cM(e,t,n,i){const o=e[t];if(o==null||!Number.isInteger(o)){const s=HY(o);return new RangeError(`Invalid ${i} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function fM(e,t,n,i){return e[t]===void 0?null:cM(e,t,n,i)}function p7(){return null}fM.isRequired=cM,p7.isRequired=p7;const dM=$Y.NODE_ENV==="production"?p7:fM;function qY(e){return Wt("MuiPaper",e)}Qt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var hM={};const GY=e=>{const{square:t,elevation:n,variant:i,classes:o}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return en(s,qY,o)},FY=it("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Gt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Hv=G.forwardRef(function(t,n){var w;const i=ln({props:t,name:"MuiPaper"}),o=tf(),{className:s,component:c="div",elevation:d=1,square:h=!1,variant:y="elevation",...b}=i,S={...i,component:c,elevation:d,square:h,variant:y},T=GY(S);return hM.NODE_ENV!=="production"&&o.shadows[d]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${d}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${d}]\` is defined.`].join(`
`)),H.jsx(FY,{as:c,ownerState:S,className:St(T.root,s),ref:n,...b,style:{...y==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[d],...o.vars&&{"--Paper-overlay":(w=o.vars.overlays)==null?void 0:w[d]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${US("#fff",l7(d))}, ${US("#fff",l7(d))})`}},...b.style}})});hM.NODE_ENV!=="production"&&(Hv.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,elevation:ou(dM,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:p.bool,style:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["elevation","outlined"]),p.string])});const ho=p.oneOfType([p.func,p.object]);var YY={};function og(e){try{return e.matches(":focus-visible")}catch{YY.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
`))}return!1}class n3{constructor(){P(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new n3}static use(){const t=iM(n3.create).current,[n,i]=G.useState(!1);return t.shouldMount=n,t.setShouldMount=i,G.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=WY(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function XY(){return n3.use()}function WY(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}var QY={};function pM(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:s,rippleSize:c,in:d,onExited:h,timeout:y}=e,[b,S]=G.useState(!1),T=St(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),w={width:c,height:c,top:-(c/2)+s,left:-(c/2)+o},C=St(n.child,b&&n.childLeaving,i&&n.childPulsate);return!d&&!b&&S(!0),G.useEffect(()=>{if(!d&&h!=null){const M=setTimeout(h,y);return()=>{clearTimeout(M)}}},[h,d,y]),H.jsx("span",{className:T,style:w,children:H.jsx("span",{className:C})})}QY.NODE_ENV!=="production"&&(pM.propTypes={classes:p.object.isRequired,className:p.string,in:p.bool,onExited:p.func,pulsate:p.bool,rippleSize:p.number,rippleX:p.number,rippleY:p.number,timeout:p.number.isRequired});const Wl=Qt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var KY={};const m7=550,ZY=80,JY=zv`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,eX=zv`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,tX=zv`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,nX=it("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rX=it(pM,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${Wl.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${JY};
    animation-duration: ${m7}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${Wl.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${Wl.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${Wl.childLeaving} {
    opacity: 0;
    animation-name: ${eX};
    animation-duration: ${m7}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${Wl.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${tX};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,mM=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:c,...d}=i,[h,y]=G.useState([]),b=G.useRef(0),S=G.useRef(null);G.useEffect(()=>{S.current&&(S.current(),S.current=null)},[h]);const T=G.useRef(!1),w=ag(),C=G.useRef(null),M=G.useRef(null),_=G.useCallback(B=>{const{pulsate:V,rippleX:U,rippleY:X,rippleSize:se,cb:ce}=B;y(ie=>[...ie,H.jsx(rX,{classes:{ripple:St(s.ripple,Wl.ripple),rippleVisible:St(s.rippleVisible,Wl.rippleVisible),ripplePulsate:St(s.ripplePulsate,Wl.ripplePulsate),child:St(s.child,Wl.child),childLeaving:St(s.childLeaving,Wl.childLeaving),childPulsate:St(s.childPulsate,Wl.childPulsate)},timeout:m7,pulsate:V,rippleX:U,rippleY:X,rippleSize:se},b.current)]),b.current+=1,S.current=ce},[s]),k=G.useCallback((B={},V={},U=()=>{})=>{const{pulsate:X=!1,center:se=o||V.pulsate,fakeElement:ce=!1}=V;if((B==null?void 0:B.type)==="mousedown"&&T.current){T.current=!1;return}(B==null?void 0:B.type)==="touchstart"&&(T.current=!0);const ie=ce?null:M.current,ue=ie?ie.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,le,Q;if(se||B===void 0||B.clientX===0&&B.clientY===0||!B.clientX&&!B.touches)$=Math.round(ue.width/2),le=Math.round(ue.height/2);else{const{clientX:oe,clientY:Z}=B.touches&&B.touches.length>0?B.touches[0]:B;$=Math.round(oe-ue.left),le=Math.round(Z-ue.top)}if(se)Q=Math.sqrt((2*ue.width**2+ue.height**2)/3),Q%2===0&&(Q+=1);else{const oe=Math.max(Math.abs((ie?ie.clientWidth:0)-$),$)*2+2,Z=Math.max(Math.abs((ie?ie.clientHeight:0)-le),le)*2+2;Q=Math.sqrt(oe**2+Z**2)}B!=null&&B.touches?C.current===null&&(C.current=()=>{_({pulsate:X,rippleX:$,rippleY:le,rippleSize:Q,cb:U})},w.start(ZY,()=>{C.current&&(C.current(),C.current=null)})):_({pulsate:X,rippleX:$,rippleY:le,rippleSize:Q,cb:U})},[o,_,w]),z=G.useCallback(()=>{k({},{pulsate:!0})},[k]),L=G.useCallback((B,V)=>{if(w.clear(),(B==null?void 0:B.type)==="touchend"&&C.current){C.current(),C.current=null,w.start(0,()=>{L(B,V)});return}C.current=null,y(U=>U.length>0?U.slice(1):U),S.current=V},[w]);return G.useImperativeHandle(n,()=>({pulsate:z,start:k,stop:L}),[z,k,L]),H.jsx(nX,{className:St(Wl.root,s.root,c),ref:M,...d,children:H.jsx(h7,{component:null,exit:!0,children:h})})});KY.NODE_ENV!=="production"&&(mM.propTypes={center:p.bool,classes:p.object,className:p.string});function iX(e){return Wt("MuiButtonBase",e)}const aX=Qt("MuiButtonBase",["root","disabled","focusVisible"]);var oX={};const lX=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:o}=e,c=en({root:["root",t&&"disabled",n&&"focusVisible"]},iX,o);return n&&i&&(c.root+=` ${i}`),c},sX=it("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aX.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nd=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:c,className:d,component:h="button",disabled:y=!1,disableRipple:b=!1,disableTouchRipple:S=!1,focusRipple:T=!1,focusVisibleClassName:w,LinkComponent:C="a",onBlur:M,onClick:_,onContextMenu:k,onDragLeave:z,onFocus:L,onFocusVisible:B,onKeyDown:V,onKeyUp:U,onMouseDown:X,onMouseLeave:se,onMouseUp:ce,onTouchEnd:ie,onTouchMove:ue,onTouchStart:$,tabIndex:le=0,TouchRippleProps:Q,touchRippleRef:oe,type:Z,...ae}=i,de=G.useRef(null),we=XY(),te=ri(we.ref,oe),[F,ee]=G.useState(!1);y&&F&&ee(!1),G.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),de.current.focus()}}),[]);const Y=we.shouldMount&&!b&&!y;G.useEffect(()=>{F&&T&&!b&&we.pulsate()},[b,T,F,we]);const Re=rf(we,"start",X,S),Se=rf(we,"stop",k,S),_e=rf(we,"stop",z,S),je=rf(we,"stop",ce,S),He=rf(we,"stop",At=>{F&&At.preventDefault(),se&&se(At)},S),Xe=rf(we,"start",$,S),Qe=rf(we,"stop",ie,S),et=rf(we,"stop",ue,S),Be=rf(we,"stop",At=>{og(At.target)||ee(!1),M&&M(At)},!1),Me=Xl(At=>{de.current||(de.current=At.currentTarget),og(At.target)&&(ee(!0),B&&B(At)),L&&L(At)}),st=()=>{const At=de.current;return h&&h!=="button"&&!(At.tagName==="A"&&At.href)},Ot=Xl(At=>{T&&!At.repeat&&F&&At.key===" "&&we.stop(At,()=>{we.start(At)}),At.target===At.currentTarget&&st()&&At.key===" "&&At.preventDefault(),V&&V(At),At.target===At.currentTarget&&st()&&At.key==="Enter"&&!y&&(At.preventDefault(),_&&_(At))}),Kt=Xl(At=>{T&&At.key===" "&&F&&!At.defaultPrevented&&we.stop(At,()=>{we.pulsate(At)}),U&&U(At),_&&At.target===At.currentTarget&&st()&&At.key===" "&&!At.defaultPrevented&&_(At)});let xt=h;xt==="button"&&(ae.href||ae.to)&&(xt=C);const Ut={};if(xt==="button"){const At=!!ae.formAction;Ut.type=Z===void 0&&!At?"button":Z,Ut.disabled=y}else!ae.href&&!ae.to&&(Ut.role="button"),y&&(Ut["aria-disabled"]=y);const dn=ri(n,de),mn={...i,centerRipple:s,component:h,disabled:y,disableRipple:b,disableTouchRipple:S,focusRipple:T,tabIndex:le,focusVisible:F},at=lX(mn);return H.jsxs(sX,{as:xt,className:St(at.root,d),ownerState:mn,onBlur:Be,onClick:_,onContextMenu:Se,onFocus:Me,onKeyDown:Ot,onKeyUp:Kt,onMouseDown:Re,onMouseLeave:He,onMouseUp:je,onDragLeave:_e,onTouchEnd:Qe,onTouchMove:et,onTouchStart:Xe,ref:dn,tabIndex:y?-1:le,type:Z,...Ut,...ae,children:[c,Y?H.jsx(mM,{ref:te,center:s,...Q}):null]})});function rf(e,t,n,i=!1){return Xl(o=>(n&&n(o),i||e[t](o),!0))}oX.NODE_ENV!=="production"&&(Nd.propTypes={action:ho,centerRipple:p.bool,children:p.node,classes:p.object,className:p.string,component:e3,disabled:p.bool,disableRipple:p.bool,disableTouchRipple:p.bool,focusRipple:p.bool,focusVisibleClassName:p.string,formAction:p.oneOfType([p.func,p.string]),href:p.any,LinkComponent:p.elementType,onBlur:p.func,onClick:p.func,onContextMenu:p.func,onDragLeave:p.func,onFocus:p.func,onFocusVisible:p.func,onKeyDown:p.func,onKeyUp:p.func,onMouseDown:p.func,onMouseLeave:p.func,onMouseUp:p.func,onTouchEnd:p.func,onTouchMove:p.func,onTouchStart:p.func,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,TouchRippleProps:p.object,touchRippleRef:p.oneOfType([p.func,p.shape({current:p.shape({pulsate:p.func.isRequired,start:p.func.isRequired,stop:p.func.isRequired})})]),type:p.oneOfType([p.oneOf(["button","reset","submit"]),p.string])});function uX(e){return typeof e.main=="string"}function cX(e,t=[]){if(!uX(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function $r(e=[]){return([,t])=>t&&cX(t,e)}function fX(e){return Wt("MuiAlert",e)}const gM=Qt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function dX(e){return Wt("MuiCircularProgress",e)}Qt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var hX={};const lu=44,g7=zv`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,y7=zv`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,pX=typeof g7!="string"?Q2`
        animation: ${g7} 1.4s linear infinite;
      `:null,mX=typeof y7!="string"?Q2`
        animation: ${y7} 1.4s ease-in-out infinite;
      `:null,gX=e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,s={root:["root",n,`color${Je(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Je(n)}`,o&&"circleDisableShrink"]};return en(s,dX,t)},yX=it("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Je(n.color)}`]]}})(Gt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:pX||{animation:`${g7} 1.4s linear infinite`}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),vX=it("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),bX=it("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Gt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:mX||{animation:`${y7} 1.4s ease-in-out infinite`}}]}))),xX=it("circle",{name:"MuiCircularProgress",slot:"Track"})(Gt(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),qv=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:c=!1,enableTrackSlot:d=!1,size:h=40,style:y,thickness:b=3.6,value:S=0,variant:T="indeterminate",...w}=i,C={...i,color:s,disableShrink:c,size:h,thickness:b,value:S,variant:T,enableTrackSlot:d},M=gX(C),_={},k={},z={};if(T==="determinate"){const L=2*Math.PI*((lu-b)/2);_.strokeDasharray=L.toFixed(3),z["aria-valuenow"]=Math.round(S),_.strokeDashoffset=`${((100-S)/100*L).toFixed(3)}px`,k.transform="rotate(-90deg)"}return H.jsx(yX,{className:St(M.root,o),style:{width:h,height:h,...k,...y},ownerState:C,ref:n,role:"progressbar",...z,...w,children:H.jsxs(vX,{className:M.svg,ownerState:C,viewBox:`${lu/2} ${lu/2} ${lu} ${lu}`,children:[d?H.jsx(xX,{className:M.track,ownerState:C,cx:lu,cy:lu,r:(lu-b)/2,fill:"none",strokeWidth:b,"aria-hidden":"true"}):null,H.jsx(bX,{className:M.circle,style:_,ownerState:C,cx:lu,cy:lu,r:(lu-b)/2,fill:"none",strokeWidth:b})]})})});hX.NODE_ENV!=="production"&&(qv.propTypes={classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","primary","secondary","error","info","success","warning"]),p.string]),disableShrink:ou(p.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:p.bool,size:p.oneOfType([p.number,p.string]),style:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),thickness:p.number,value:p.number,variant:p.oneOf(["determinate","indeterminate"])});function SX(e){return Wt("MuiIconButton",e)}const yM=Qt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var EX={};const wX=e=>{const{classes:t,disabled:n,color:i,edge:o,size:s,loading:c}=e,d={root:["root",c&&"loading",n&&"disabled",i!=="default"&&`color${Je(i)}`,o&&`edge${Je(o)}`,`size${Je(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return en(d,SX,t)},TX=it(Nd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Je(n.color)}`],n.edge&&t[`edge${Je(n.edge)}`],t[`size${Je(n.size)}`]]}})(Gt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Gt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${yM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${yM.loading}`]:{color:"transparent"}}))),AX=it("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),lg=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:c,color:d="default",disabled:h=!1,disableFocusRipple:y=!1,size:b="medium",id:S,loading:T=null,loadingIndicator:w,...C}=i,M=mh(S),_=w??H.jsx(qv,{"aria-labelledby":M,color:"inherit",size:16}),k={...i,edge:o,color:d,disabled:h,disableFocusRipple:y,loading:T,loadingIndicator:_,size:b},z=wX(k);return H.jsxs(TX,{id:T?M:S,className:St(z.root,c),centerRipple:!0,focusRipple:!y,disabled:h||T,ref:n,...C,ownerState:k,children:[typeof T=="boolean"&&H.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:H.jsx(AX,{className:z.loadingIndicator,ownerState:k,children:T&&_})}),s]})});EX.NODE_ENV!=="production"&&(lg.propTypes={children:ou(p.node,e=>G.Children.toArray(e.children).some(n=>G.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
`)):null),classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),p.string]),disabled:p.bool,disableFocusRipple:p.bool,disableRipple:p.bool,edge:p.oneOf(["end","start",!1]),id:p.string,loading:p.bool,loadingIndicator:p.node,size:p.oneOfType([p.oneOf(["small","medium","large"]),p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});const CX=Mi(H.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),OX=Mi(H.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),RX=Mi(H.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),MX=Mi(H.jsx("path",{d:"M11,9H13V7H11M12,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,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),_X=Mi(H.jsx("path",{d:"M19 6.41L17.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"}),"Close");var DX={};const NX=e=>{const{variant:t,color:n,severity:i,classes:o}=e,s={root:["root",`color${Je(n||i)}`,`${t}${Je(n||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return en(s,fX,o)},kX=it(Hv,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Je(n.color||n.severity)}`]]}})(Gt(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter($r(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${gM.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter($r(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${gM.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter($r(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),zX=it("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),IX=it("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),LX=it("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),vM={success:H.jsx(CX,{fontSize:"inherit"}),warning:H.jsx(OX,{fontSize:"inherit"}),error:H.jsx(RX,{fontSize:"inherit"}),info:H.jsx(MX,{fontSize:"inherit"})},bM=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiAlert"}),{action:o,children:s,className:c,closeText:d="Close",color:h,components:y={},componentsProps:b={},icon:S,iconMapping:T=vM,onClose:w,role:C="alert",severity:M="success",slotProps:_={},slots:k={},variant:z="standard",...L}=i,B={...i,color:h,severity:M,variant:z,colorSeverity:h||M},V=NX(B),U={slots:{closeButton:y.CloseButton,closeIcon:y.CloseIcon,...k},slotProps:{...b,..._}},[X,se]=nn("root",{ref:n,shouldForwardComponentProp:!0,className:St(V.root,c),elementType:kX,externalForwardedProps:{...U,...L},ownerState:B,additionalProps:{role:C,elevation:0}}),[ce,ie]=nn("icon",{className:V.icon,elementType:zX,externalForwardedProps:U,ownerState:B}),[ue,$]=nn("message",{className:V.message,elementType:IX,externalForwardedProps:U,ownerState:B}),[le,Q]=nn("action",{className:V.action,elementType:LX,externalForwardedProps:U,ownerState:B}),[oe,Z]=nn("closeButton",{elementType:lg,externalForwardedProps:U,ownerState:B}),[ae,de]=nn("closeIcon",{elementType:_X,externalForwardedProps:U,ownerState:B});return H.jsxs(X,{...se,children:[S!==!1?H.jsx(ce,{...ie,children:S||T[M]||vM[M]}):null,H.jsx(ue,{...$,children:s}),o!=null?H.jsx(le,{...Q,children:o}):null,o==null&&w?H.jsx(le,{...Q,children:H.jsx(oe,{size:"small","aria-label":d,title:d,color:"inherit",onClick:w,...Z,children:H.jsx(ae,{fontSize:"small",...de})})}):null]})});DX.NODE_ENV!=="production"&&(bM.propTypes={action:p.node,children:p.node,classes:p.object,className:p.string,closeText:p.string,color:p.oneOfType([p.oneOf(["error","info","success","warning"]),p.string]),components:p.shape({CloseButton:p.elementType,CloseIcon:p.elementType}),componentsProps:p.shape({closeButton:p.object,closeIcon:p.object}),icon:p.node,iconMapping:p.shape({error:p.node,info:p.node,success:p.node,warning:p.node}),onClose:p.func,role:p.string,severity:p.oneOfType([p.oneOf(["error","info","success","warning"]),p.string]),slotProps:p.shape({action:p.oneOfType([p.func,p.object]),closeButton:p.oneOfType([p.func,p.object]),closeIcon:p.oneOfType([p.func,p.object]),icon:p.oneOfType([p.func,p.object]),message:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({action:p.elementType,closeButton:p.elementType,closeIcon:p.elementType,icon:p.elementType,message:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["filled","outlined","standard"]),p.string])});function VX(e){return Wt("MuiTypography",e)}const xM=Qt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var BX={};const jX={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},PX=fY(),UX=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${Je(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return en(d,VX,c)},$X=it("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Gt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,i])=>n!=="inherit"&&i&&typeof i=="object").map(([n,i])=>({props:{variant:n},style:i})),...Object.entries(e.palette).filter($r()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Je(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),SM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hr=G.forwardRef(function(t,n){const{color:i,...o}=ln({props:t,name:"MuiTypography"}),s=!jX[i],c=PX({...o,...s&&{color:i}}),{align:d="inherit",className:h,component:y,gutterBottom:b=!1,noWrap:S=!1,paragraph:T=!1,variant:w="body1",variantMapping:C=SM,...M}=c,_={...c,align:d,color:i,className:h,component:y,gutterBottom:b,noWrap:S,paragraph:T,variant:w,variantMapping:C},k=y||(T?"p":C[w]||SM[w])||"span",z=UX(_);return H.jsx($X,{as:k,ref:n,className:St(z.root,h),...M,ownerState:_,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...M.style}})});BX.NODE_ENV!=="production"&&(Hr.propTypes={align:p.oneOf(["center","inherit","justify","left","right"]),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),p.string]),component:p.elementType,gutterBottom:p.bool,noWrap:p.bool,paragraph:p.bool,style:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),p.string]),variantMapping:p.object});var HX={};function af(e,t,n,i,o){if(HX.NODE_ENV==="production")return null;const s=e[t],c=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${i} \`${c}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Uo="top",Ql="bottom",Kl="right",$o="left",v7="auto",Gv=[Uo,Ql,Kl,$o],sg="start",Fv="end",qX="clippingParents",EM="viewport",Yv="popper",GX="reference",wM=Gv.reduce(function(e,t){return e.concat([t+"-"+sg,t+"-"+Fv])},[]),TM=[].concat(Gv,[v7]).reduce(function(e,t){return e.concat([t,t+"-"+sg,t+"-"+Fv])},[]),FX="beforeRead",YX="read",XX="afterRead",WX="beforeMain",QX="main",KX="afterMain",ZX="beforeWrite",JX="write",eW="afterWrite",tW=[FX,YX,XX,WX,QX,KX,ZX,JX,eW];function tc(e){return e?(e.nodeName||"").toLowerCase():null}function bl(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){var t=bl(e).Element;return e instanceof t||e instanceof Element}function Zl(e){var t=bl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function b7(e){if(typeof ShadowRoot>"u")return!1;var t=bl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Zl(s)||!tc(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(c){var d=o[c];d===!1?s.removeAttribute(c):s.setAttribute(c,d===!0?"":d)}))})}function rW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],s=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),d=c.reduce(function(h,y){return h[y]="",h},{});!Zl(o)||!tc(o)||(Object.assign(o.style,d),Object.keys(s).forEach(function(h){o.removeAttribute(h)}))})}}const iW={name:"applyStyles",enabled:!0,phase:"write",fn:nW,effect:rW,requires:["computeStyles"]};function nc(e){return e.split("-")[0]}var Sh=Math.max,r3=Math.min,ug=Math.round;function x7(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function AM(){return!/^((?!chrome|android).)*safari/i.test(x7())}function cg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&Zl(e)&&(o=e.offsetWidth>0&&ug(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ug(i.height)/e.offsetHeight||1);var c=xh(e)?bl(e):window,d=c.visualViewport,h=!AM()&&n,y=(i.left+(h&&d?d.offsetLeft:0))/o,b=(i.top+(h&&d?d.offsetTop:0))/s,S=i.width/o,T=i.height/s;return{width:S,height:T,top:b,right:y+S,bottom:b+T,left:y,x:y,y:b}}function S7(e){var t=cg(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function CM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&b7(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function of(e){return bl(e).getComputedStyle(e)}function aW(e){return["table","td","th"].indexOf(tc(e))>=0}function kd(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function i3(e){return tc(e)==="html"?e:e.assignedSlot||e.parentNode||(b7(e)?e.host:null)||kd(e)}function OM(e){return!Zl(e)||of(e).position==="fixed"?null:e.offsetParent}function oW(e){var t=/firefox/i.test(x7()),n=/Trident/i.test(x7());if(n&&Zl(e)){var i=of(e);if(i.position==="fixed")return null}var o=i3(e);for(b7(o)&&(o=o.host);Zl(o)&&["html","body"].indexOf(tc(o))<0;){var s=of(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Xv(e){for(var t=bl(e),n=OM(e);n&&aW(n)&&of(n).position==="static";)n=OM(n);return n&&(tc(n)==="html"||tc(n)==="body"&&of(n).position==="static")?t:n||oW(e)||t}function E7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wv(e,t,n){return Sh(e,r3(t,n))}function lW(e,t,n){var i=Wv(e,t,n);return i>n?n:i}function RM(){return{top:0,right:0,bottom:0,left:0}}function MM(e){return Object.assign({},RM(),e)}function _M(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var sW=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,MM(typeof t!="number"?t:_M(t,Gv))};function uW(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,c=n.modifiersData.popperOffsets,d=nc(n.placement),h=E7(d),y=[$o,Kl].indexOf(d)>=0,b=y?"height":"width";if(!(!s||!c)){var S=sW(o.padding,n),T=S7(s),w=h==="y"?Uo:$o,C=h==="y"?Ql:Kl,M=n.rects.reference[b]+n.rects.reference[h]-c[h]-n.rects.popper[b],_=c[h]-n.rects.reference[h],k=Xv(s),z=k?h==="y"?k.clientHeight||0:k.clientWidth||0:0,L=M/2-_/2,B=S[w],V=z-T[b]-S[C],U=z/2-T[b]/2+L,X=Wv(B,U,V),se=h;n.modifiersData[i]=(t={},t[se]=X,t.centerOffset=X-U,t)}}function cW(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||CM(t.elements.popper,o)&&(t.elements.arrow=o))}const fW={name:"arrow",enabled:!0,phase:"main",fn:uW,effect:cW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fg(e){return e.split("-")[1]}var dW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hW(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:ug(n*o)/o||0,y:ug(i*o)/o||0}}function DM(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,d=e.position,h=e.gpuAcceleration,y=e.adaptive,b=e.roundOffsets,S=e.isFixed,T=c.x,w=T===void 0?0:T,C=c.y,M=C===void 0?0:C,_=typeof b=="function"?b({x:w,y:M}):{x:w,y:M};w=_.x,M=_.y;var k=c.hasOwnProperty("x"),z=c.hasOwnProperty("y"),L=$o,B=Uo,V=window;if(y){var U=Xv(n),X="clientHeight",se="clientWidth";if(U===bl(n)&&(U=kd(n),of(U).position!=="static"&&d==="absolute"&&(X="scrollHeight",se="scrollWidth")),U=U,o===Uo||(o===$o||o===Kl)&&s===Fv){B=Ql;var ce=S&&U===V&&V.visualViewport?V.visualViewport.height:U[X];M-=ce-i.height,M*=h?1:-1}if(o===$o||(o===Uo||o===Ql)&&s===Fv){L=Kl;var ie=S&&U===V&&V.visualViewport?V.visualViewport.width:U[se];w-=ie-i.width,w*=h?1:-1}}var ue=Object.assign({position:d},y&&dW),$=b===!0?hW({x:w,y:M},bl(n)):{x:w,y:M};if(w=$.x,M=$.y,h){var le;return Object.assign({},ue,(le={},le[B]=z?"0":"",le[L]=k?"0":"",le.transform=(V.devicePixelRatio||1)<=1?"translate("+w+"px, "+M+"px)":"translate3d("+w+"px, "+M+"px, 0)",le))}return Object.assign({},ue,(t={},t[B]=z?M+"px":"",t[L]=k?w+"px":"",t.transform="",t))}function pW(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,s=n.adaptive,c=s===void 0?!0:s,d=n.roundOffsets,h=d===void 0?!0:d,y={placement:nc(t.placement),variation:fg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,DM(Object.assign({},y,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,DM(Object.assign({},y,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pW,data:{}};var a3={passive:!0};function gW(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,c=i.resize,d=c===void 0?!0:c,h=bl(t.elements.popper),y=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&y.forEach(function(b){b.addEventListener("scroll",n.update,a3)}),d&&h.addEventListener("resize",n.update,a3),function(){s&&y.forEach(function(b){b.removeEventListener("scroll",n.update,a3)}),d&&h.removeEventListener("resize",n.update,a3)}}const yW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gW,data:{}};var vW={left:"right",right:"left",bottom:"top",top:"bottom"};function o3(e){return e.replace(/left|right|bottom|top/g,function(t){return vW[t]})}var bW={start:"end",end:"start"};function NM(e){return e.replace(/start|end/g,function(t){return bW[t]})}function w7(e){var t=bl(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function T7(e){return cg(kd(e)).left+w7(e).scrollLeft}function xW(e,t){var n=bl(e),i=kd(e),o=n.visualViewport,s=i.clientWidth,c=i.clientHeight,d=0,h=0;if(o){s=o.width,c=o.height;var y=AM();(y||!y&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:s,height:c,x:d+T7(e),y:h}}function SW(e){var t,n=kd(e),i=w7(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Sh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Sh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-i.scrollLeft+T7(e),h=-i.scrollTop;return of(o||n).direction==="rtl"&&(d+=Sh(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:d,y:h}}function A7(e){var t=of(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function kM(e){return["html","body","#document"].indexOf(tc(e))>=0?e.ownerDocument.body:Zl(e)&&A7(e)?e:kM(i3(e))}function Qv(e,t){var n;t===void 0&&(t=[]);var i=kM(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=bl(i),c=o?[s].concat(s.visualViewport||[],A7(i)?i:[]):i,d=t.concat(c);return o?d:d.concat(Qv(i3(c)))}function C7(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EW(e,t){var n=cg(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function zM(e,t,n){return t===EM?C7(xW(e,n)):xh(t)?EW(t,n):C7(SW(kd(e)))}function wW(e){var t=Qv(i3(e)),n=["absolute","fixed"].indexOf(of(e).position)>=0,i=n&&Zl(e)?Xv(e):e;return xh(i)?t.filter(function(o){return xh(o)&&CM(o,i)&&tc(o)!=="body"}):[]}function TW(e,t,n,i){var o=t==="clippingParents"?wW(e):[].concat(t),s=[].concat(o,[n]),c=s[0],d=s.reduce(function(h,y){var b=zM(e,y,i);return h.top=Sh(b.top,h.top),h.right=r3(b.right,h.right),h.bottom=r3(b.bottom,h.bottom),h.left=Sh(b.left,h.left),h},zM(e,c,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function IM(e){var t=e.reference,n=e.element,i=e.placement,o=i?nc(i):null,s=i?fg(i):null,c=t.x+t.width/2-n.width/2,d=t.y+t.height/2-n.height/2,h;switch(o){case Uo:h={x:c,y:t.y-n.height};break;case Ql:h={x:c,y:t.y+t.height};break;case Kl:h={x:t.x+t.width,y:d};break;case $o:h={x:t.x-n.width,y:d};break;default:h={x:t.x,y:t.y}}var y=o?E7(o):null;if(y!=null){var b=y==="y"?"height":"width";switch(s){case sg:h[y]=h[y]-(t[b]/2-n[b]/2);break;case Fv:h[y]=h[y]+(t[b]/2-n[b]/2);break}}return h}function Kv(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,s=n.strategy,c=s===void 0?e.strategy:s,d=n.boundary,h=d===void 0?qX:d,y=n.rootBoundary,b=y===void 0?EM:y,S=n.elementContext,T=S===void 0?Yv:S,w=n.altBoundary,C=w===void 0?!1:w,M=n.padding,_=M===void 0?0:M,k=MM(typeof _!="number"?_:_M(_,Gv)),z=T===Yv?GX:Yv,L=e.rects.popper,B=e.elements[C?z:T],V=TW(xh(B)?B:B.contextElement||kd(e.elements.popper),h,b,c),U=cg(e.elements.reference),X=IM({reference:U,element:L,placement:o}),se=C7(Object.assign({},L,X)),ce=T===Yv?se:U,ie={top:V.top-ce.top+k.top,bottom:ce.bottom-V.bottom+k.bottom,left:V.left-ce.left+k.left,right:ce.right-V.right+k.right},ue=e.modifiersData.offset;if(T===Yv&&ue){var $=ue[o];Object.keys(ie).forEach(function(le){var Q=[Kl,Ql].indexOf(le)>=0?1:-1,oe=[Uo,Ql].indexOf(le)>=0?"y":"x";ie[le]+=$[oe]*Q})}return ie}function AW(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,c=n.padding,d=n.flipVariations,h=n.allowedAutoPlacements,y=h===void 0?TM:h,b=fg(i),S=b?d?wM:wM.filter(function(C){return fg(C)===b}):Gv,T=S.filter(function(C){return y.indexOf(C)>=0});T.length===0&&(T=S);var w=T.reduce(function(C,M){return C[M]=Kv(e,{placement:M,boundary:o,rootBoundary:s,padding:c})[nc(M)],C},{});return Object.keys(w).sort(function(C,M){return w[C]-w[M]})}function CW(e){if(nc(e)===v7)return[];var t=o3(e);return[NM(e),t,NM(t)]}function OW(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,d=c===void 0?!0:c,h=n.fallbackPlacements,y=n.padding,b=n.boundary,S=n.rootBoundary,T=n.altBoundary,w=n.flipVariations,C=w===void 0?!0:w,M=n.allowedAutoPlacements,_=t.options.placement,k=nc(_),z=k===_,L=h||(z||!C?[o3(_)]:CW(_)),B=[_].concat(L).reduce(function(Re,Se){return Re.concat(nc(Se)===v7?AW(t,{placement:Se,boundary:b,rootBoundary:S,padding:y,flipVariations:C,allowedAutoPlacements:M}):Se)},[]),V=t.rects.reference,U=t.rects.popper,X=new Map,se=!0,ce=B[0],ie=0;ie<B.length;ie++){var ue=B[ie],$=nc(ue),le=fg(ue)===sg,Q=[Uo,Ql].indexOf($)>=0,oe=Q?"width":"height",Z=Kv(t,{placement:ue,boundary:b,rootBoundary:S,altBoundary:T,padding:y}),ae=Q?le?Kl:$o:le?Ql:Uo;V[oe]>U[oe]&&(ae=o3(ae));var de=o3(ae),we=[];if(s&&we.push(Z[$]<=0),d&&we.push(Z[ae]<=0,Z[de]<=0),we.every(function(Re){return Re})){ce=ue,se=!1;break}X.set(ue,we)}if(se)for(var te=C?3:1,F=function(Se){var _e=B.find(function(je){var He=X.get(je);if(He)return He.slice(0,Se).every(function(Xe){return Xe})});if(_e)return ce=_e,"break"},ee=te;ee>0;ee--){var Y=F(ee);if(Y==="break")break}t.placement!==ce&&(t.modifiersData[i]._skip=!0,t.placement=ce,t.reset=!0)}}const RW={name:"flip",enabled:!0,phase:"main",fn:OW,requiresIfExists:["offset"],data:{_skip:!1}};function LM(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function VM(e){return[Uo,Kl,Ql,$o].some(function(t){return e[t]>=0})}function MW(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=Kv(t,{elementContext:"reference"}),d=Kv(t,{altBoundary:!0}),h=LM(c,i),y=LM(d,o,s),b=VM(h),S=VM(y);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:y,isReferenceHidden:b,hasPopperEscaped:S},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":S})}const _W={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MW};function DW(e,t,n){var i=nc(e),o=[$o,Uo].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=s[0],d=s[1];return c=c||0,d=(d||0)*o,[$o,Kl].indexOf(i)>=0?{x:d,y:c}:{x:c,y:d}}function NW(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=o===void 0?[0,0]:o,c=TM.reduce(function(b,S){return b[S]=DW(S,t.rects,s),b},{}),d=c[t.placement],h=d.x,y=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=y),t.modifiersData[i]=c}const kW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NW};function zW(e){var t=e.state,n=e.name;t.modifiersData[n]=IM({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const IW={name:"popperOffsets",enabled:!0,phase:"read",fn:zW,data:{}};function LW(e){return e==="x"?"y":"x"}function VW(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,d=c===void 0?!1:c,h=n.boundary,y=n.rootBoundary,b=n.altBoundary,S=n.padding,T=n.tether,w=T===void 0?!0:T,C=n.tetherOffset,M=C===void 0?0:C,_=Kv(t,{boundary:h,rootBoundary:y,padding:S,altBoundary:b}),k=nc(t.placement),z=fg(t.placement),L=!z,B=E7(k),V=LW(B),U=t.modifiersData.popperOffsets,X=t.rects.reference,se=t.rects.popper,ce=typeof M=="function"?M(Object.assign({},t.rects,{placement:t.placement})):M,ie=typeof ce=="number"?{mainAxis:ce,altAxis:ce}:Object.assign({mainAxis:0,altAxis:0},ce),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(U){if(s){var le,Q=B==="y"?Uo:$o,oe=B==="y"?Ql:Kl,Z=B==="y"?"height":"width",ae=U[B],de=ae+_[Q],we=ae-_[oe],te=w?-se[Z]/2:0,F=z===sg?X[Z]:se[Z],ee=z===sg?-se[Z]:-X[Z],Y=t.elements.arrow,Re=w&&Y?S7(Y):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:RM(),_e=Se[Q],je=Se[oe],He=Wv(0,X[Z],Re[Z]),Xe=L?X[Z]/2-te-He-_e-ie.mainAxis:F-He-_e-ie.mainAxis,Qe=L?-X[Z]/2+te+He+je+ie.mainAxis:ee+He+je+ie.mainAxis,et=t.elements.arrow&&Xv(t.elements.arrow),Be=et?B==="y"?et.clientTop||0:et.clientLeft||0:0,Me=(le=ue==null?void 0:ue[B])!=null?le:0,st=ae+Xe-Me-Be,Ot=ae+Qe-Me,Kt=Wv(w?r3(de,st):de,ae,w?Sh(we,Ot):we);U[B]=Kt,$[B]=Kt-ae}if(d){var xt,Ut=B==="x"?Uo:$o,dn=B==="x"?Ql:Kl,mn=U[V],at=V==="y"?"height":"width",At=mn+_[Ut],Mn=mn-_[dn],Bt=[Uo,$o].indexOf(k)!==-1,Ze=(xt=ue==null?void 0:ue[V])!=null?xt:0,be=Bt?At:mn-X[at]-se[at]-Ze+ie.altAxis,Ve=Bt?mn+X[at]+se[at]-Ze-ie.altAxis:Mn,nt=w&&Bt?lW(be,mn,Ve):Wv(w?be:At,mn,w?Ve:Mn);U[V]=nt,$[V]=nt-mn}t.modifiersData[i]=$}}const BW={name:"preventOverflow",enabled:!0,phase:"main",fn:VW,requiresIfExists:["offset"]};function jW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PW(e){return e===bl(e)||!Zl(e)?w7(e):jW(e)}function UW(e){var t=e.getBoundingClientRect(),n=ug(t.width)/e.offsetWidth||1,i=ug(t.height)/e.offsetHeight||1;return n!==1||i!==1}function $W(e,t,n){n===void 0&&(n=!1);var i=Zl(t),o=Zl(t)&&UW(t),s=kd(t),c=cg(e,o,n),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(i||!i&&!n)&&((tc(t)!=="body"||A7(s))&&(d=PW(t)),Zl(t)?(h=cg(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):s&&(h.x=T7(s))),{x:c.left+d.scrollLeft-h.x,y:c.top+d.scrollTop-h.y,width:c.width,height:c.height}}function HW(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(d){if(!n.has(d)){var h=t.get(d);h&&o(h)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),i}function qW(e){var t=HW(e);return tW.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function GW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function FW(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var BM={placement:"bottom",modifiers:[],strategy:"absolute"};function jM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function YW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?BM:o;return function(d,h,y){y===void 0&&(y=s);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},BM,s),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},S=[],T=!1,w={state:b,setOptions:function(k){var z=typeof k=="function"?k(b.options):k;M(),b.options=Object.assign({},s,b.options,z),b.scrollParents={reference:xh(d)?Qv(d):d.contextElement?Qv(d.contextElement):[],popper:Qv(h)};var L=qW(FW([].concat(i,b.options.modifiers)));return b.orderedModifiers=L.filter(function(B){return B.enabled}),C(),w.update()},forceUpdate:function(){if(!T){var k=b.elements,z=k.reference,L=k.popper;if(jM(z,L)){b.rects={reference:$W(z,Xv(L),b.options.strategy==="fixed"),popper:S7(L)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(ie){return b.modifiersData[ie.name]=Object.assign({},ie.data)});for(var B=0;B<b.orderedModifiers.length;B++){if(b.reset===!0){b.reset=!1,B=-1;continue}var V=b.orderedModifiers[B],U=V.fn,X=V.options,se=X===void 0?{}:X,ce=V.name;typeof U=="function"&&(b=U({state:b,options:se,name:ce,instance:w})||b)}}}},update:GW(function(){return new Promise(function(_){w.forceUpdate(),_(b)})}),destroy:function(){M(),T=!0}};if(!jM(d,h))return w;w.setOptions(y).then(function(_){!T&&y.onFirstUpdate&&y.onFirstUpdate(_)});function C(){b.orderedModifiers.forEach(function(_){var k=_.name,z=_.options,L=z===void 0?{}:z,B=_.effect;if(typeof B=="function"){var V=B({state:b,name:k,instance:w,options:L}),U=function(){};S.push(V||U)}})}function M(){S.forEach(function(_){return _()}),S=[]}return w}}var XW=[yW,IW,mW,iW,kW,RW,BW,fW,_W],WW=YW({defaultModifiers:XW});function rc(e){var S;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,c=o?{}:lM(n,i),{props:d,internalRef:h}=uM({...s,externalSlotProps:c}),y=ri(h,c==null?void 0:c.ref,(S=e.additionalProps)==null?void 0:S.ref);return oM(t,{...d,ref:y},i)}var QW={};function l3(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||QW.NODE_ENV==="test")}function dg(e){var t;return parseInt(G.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}var PM={};function KW(e){return typeof e=="function"?e():e}const Zv=G.forwardRef(function(t,n){const{children:i,container:o,disablePortal:s=!1}=t,[c,d]=G.useState(null),h=ri(G.isValidElement(i)?dg(i):null,n);if(Yl(()=>{s||d(KW(o)||document.body)},[o,s]),Yl(()=>{if(c&&!s)return YR(n,c),()=>{YR(n,null)}},[n,c,s]),s){if(G.isValidElement(i)){const y={ref:h};return G.cloneElement(i,y)}return i}return c&&eM.createPortal(i,c)});PM.NODE_ENV!=="production"&&(Zv.propTypes={children:p.node,container:p.oneOfType([af,p.func]),disablePortal:p.bool}),PM.NODE_ENV!=="production"&&(Zv.propTypes=wR(Zv.propTypes));function ZW(e){return Wt("MuiPopper",e)}Qt("MuiPopper",["root"]);var O7={};function JW(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function s3(e){return typeof e=="function"?e():e}function u3(e){return e.nodeType!==void 0}function eQ(e){return!u3(e)}const tQ=e=>{const{classes:t}=e;return en({root:["root"]},ZW,t)},nQ={},rQ=G.forwardRef(function(t,n){const{anchorEl:i,children:o,direction:s,disablePortal:c,modifiers:d,open:h,placement:y,popperOptions:b,popperRef:S,slotProps:T={},slots:w={},TransitionProps:C,ownerState:M,..._}=t,k=G.useRef(null),z=ri(k,n),L=G.useRef(null),B=ri(L,S),V=G.useRef(B);Yl(()=>{V.current=B},[B]),G.useImperativeHandle(S,()=>L.current,[]);const U=JW(y,s),[X,se]=G.useState(U),[ce,ie]=G.useState(s3(i));G.useEffect(()=>{L.current&&L.current.forceUpdate()}),G.useEffect(()=>{i&&ie(s3(i))},[i]),Yl(()=>{if(!ce||!h)return;const oe=de=>{se(de.placement)};if(O7.NODE_ENV!=="production"&&ce&&u3(ce)&&ce.nodeType===1){const de=ce.getBoundingClientRect();l3()&&de.top===0&&de.left===0&&de.right===0&&de.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}let Z=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:de})=>{oe(de)}}];d!=null&&(Z=Z.concat(d)),b&&b.modifiers!=null&&(Z=Z.concat(b.modifiers));const ae=WW(ce,k.current,{placement:U,...b,modifiers:Z});return V.current(ae),()=>{ae.destroy(),V.current(null)}},[ce,c,d,h,b,U]);const ue={placement:X};C!==null&&(ue.TransitionProps=C);const $=tQ(t),le=w.root??"div",Q=rc({elementType:le,externalSlotProps:T.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:z},ownerState:t,className:$.root});return H.jsx(le,{...Q,children:typeof o=="function"?o(ue):o})}),UM=G.forwardRef(function(t,n){const{anchorEl:i,children:o,container:s,direction:c="ltr",disablePortal:d=!1,keepMounted:h=!1,modifiers:y,open:b,placement:S="bottom",popperOptions:T=nQ,popperRef:w,style:C,transition:M=!1,slotProps:_={},slots:k={},...z}=t,[L,B]=G.useState(!0),V=()=>{B(!1)},U=()=>{B(!0)};if(!h&&!b&&(!M||L))return null;let X;if(s)X=s;else if(i){const ie=s3(i);X=ie&&u3(ie)?wa(ie).body:wa(null).body}const se=!b&&h&&(!M||L)?"none":void 0,ce=M?{in:b,onEnter:V,onExited:U}:void 0;return H.jsx(Zv,{disablePortal:d,container:X,children:H.jsx(rQ,{anchorEl:i,direction:c,disablePortal:d,modifiers:y,ref:n,open:M?!L:b,placement:S,popperOptions:T,popperRef:w,slotProps:_,slots:k,...z,style:{position:"fixed",top:0,left:0,display:se,...C},TransitionProps:ce,children:o})})});O7.NODE_ENV!=="production"&&(UM.propTypes={anchorEl:ou(p.oneOfType([af,p.object,p.func]),e=>{if(e.open){const t=s3(e.anchorEl);if(t&&u3(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(O7.NODE_ENV!=="production"&&l3()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}else if(!t||typeof t.getBoundingClientRect!="function"||eQ(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
`))}return null}),children:p.oneOfType([p.node,p.func]),container:p.oneOfType([af,p.func]),direction:p.oneOf(["ltr","rtl"]),disablePortal:p.bool,keepMounted:p.bool,modifiers:p.arrayOf(p.shape({data:p.object,effect:p.func,enabled:p.bool,fn:p.func,name:p.any,options:p.object,phase:p.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:p.arrayOf(p.string),requiresIfExists:p.arrayOf(p.string)})),open:p.bool.isRequired,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:p.shape({modifiers:p.array,onFirstUpdate:p.func,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:p.oneOf(["absolute","fixed"])}),popperRef:ho,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),transition:p.bool});var iQ={};const aQ=it(UM,{name:"MuiPopper",slot:"Root"})({}),R7=G.forwardRef(function(t,n){const i=GS(),o=ln({props:t,name:"MuiPopper"}),{anchorEl:s,component:c,components:d,componentsProps:h,container:y,disablePortal:b,keepMounted:S,modifiers:T,open:w,placement:C,popperOptions:M,popperRef:_,transition:k,slots:z,slotProps:L,...B}=o,V=(z==null?void 0:z.root)??(d==null?void 0:d.Root),U={anchorEl:s,container:y,disablePortal:b,keepMounted:S,modifiers:T,open:w,placement:C,popperOptions:M,popperRef:_,transition:k,...B};return H.jsx(aQ,{as:c,direction:i?"rtl":"ltr",slots:{root:V},slotProps:L??h,...U,ref:n})});iQ.NODE_ENV!=="production"&&(R7.propTypes={anchorEl:p.oneOfType([af,p.object,p.func]),children:p.oneOfType([p.node,p.func]),component:p.elementType,components:p.shape({Root:p.elementType}),componentsProps:p.shape({root:p.oneOfType([p.func,p.object])}),container:p.oneOfType([af,p.func]),disablePortal:p.bool,keepMounted:p.bool,modifiers:p.arrayOf(p.shape({data:p.object,effect:p.func,enabled:p.bool,fn:p.func,name:p.any,options:p.object,phase:p.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:p.arrayOf(p.string),requiresIfExists:p.arrayOf(p.string)})),open:p.bool.isRequired,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:p.shape({modifiers:p.array,onFirstUpdate:p.func,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:p.oneOf(["absolute","fixed"])}),popperRef:ho,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),transition:p.bool});const oQ=Mi(H.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function lQ(e){return Wt("MuiChip",e)}const Ln=Qt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);var $M={};const sQ=e=>{const{classes:t,disabled:n,size:i,color:o,iconColor:s,onDelete:c,clickable:d,variant:h}=e,y={root:["root",h,n&&"disabled",`size${Je(i)}`,`color${Je(o)}`,d&&"clickable",d&&`clickableColor${Je(o)}`,c&&"deletable",c&&`deletableColor${Je(o)}`,`${h}${Je(o)}`],label:["label",`label${Je(i)}`],avatar:["avatar",`avatar${Je(i)}`,`avatarColor${Je(o)}`],icon:["icon",`icon${Je(i)}`,`iconColor${Je(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Je(i)}`,`deleteIconColor${Je(o)}`,`deleteIcon${Je(h)}Color${Je(o)}`]};return en(y,lQ,t)},uQ=it("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:i,iconColor:o,clickable:s,onDelete:c,size:d,variant:h}=n;return[{[`& .${Ln.avatar}`]:t.avatar},{[`& .${Ln.avatar}`]:t[`avatar${Je(d)}`]},{[`& .${Ln.avatar}`]:t[`avatarColor${Je(i)}`]},{[`& .${Ln.icon}`]:t.icon},{[`& .${Ln.icon}`]:t[`icon${Je(d)}`]},{[`& .${Ln.icon}`]:t[`iconColor${Je(o)}`]},{[`& .${Ln.deleteIcon}`]:t.deleteIcon},{[`& .${Ln.deleteIcon}`]:t[`deleteIcon${Je(d)}`]},{[`& .${Ln.deleteIcon}`]:t[`deleteIconColor${Je(i)}`]},{[`& .${Ln.deleteIcon}`]:t[`deleteIcon${Je(h)}Color${Je(i)}`]},t.root,t[`size${Je(d)}`],t[`color${Je(i)}`],s&&t.clickable,s&&i!=="default"&&t[`clickableColor${Je(i)}`],c&&t.deletable,c&&i!=="default"&&t[`deletableColor${Je(i)}`],t[h],t[`${h}${Je(i)}`]]}})(Gt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ln.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ln.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ln.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ln.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ln.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ln.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ln.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ln.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ln.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter($r(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ln.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ln.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ln.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ln.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter($r(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ln.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Ln.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter($r(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ln.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ln.avatar}`]:{marginLeft:4},[`& .${Ln.avatarSmall}`]:{marginLeft:2},[`& .${Ln.icon}`]:{marginLeft:4},[`& .${Ln.iconSmall}`]:{marginLeft:2},[`& .${Ln.deleteIcon}`]:{marginRight:5},[`& .${Ln.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter($r()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Ln.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ln.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ln.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),cQ=it("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:i}=n;return[t.label,t[`label${Je(i)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function HM(e){return e.key==="Backspace"||e.key==="Delete"}const qM=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:c,color:d="default",component:h,deleteIcon:y,disabled:b=!1,icon:S,label:T,onClick:w,onDelete:C,onKeyDown:M,onKeyUp:_,size:k="medium",variant:z="filled",tabIndex:L,skipFocusWhenDisabled:B=!1,slots:V={},slotProps:U={},...X}=i,se=G.useRef(null),ce=ri(se,n),ie=_e=>{_e.stopPropagation(),C(_e)},ue=_e=>{_e.currentTarget===_e.target&&HM(_e)&&_e.preventDefault(),M&&M(_e)},$=_e=>{_e.currentTarget===_e.target&&C&&HM(_e)&&C(_e),_&&_(_e)},le=c!==!1&&w?!0:c,Q=le||C?Nd:h||"div",oe={...i,component:Q,disabled:b,size:k,color:d,iconColor:G.isValidElement(S)&&S.props.color||d,onDelete:!!C,clickable:le,variant:z},Z=sQ(oe),ae=Q===Nd?{component:h||"div",focusVisibleClassName:Z.focusVisible,...C&&{disableRipple:!0}}:{};let de=null;C&&(de=y&&G.isValidElement(y)?G.cloneElement(y,{className:St(y.props.className,Z.deleteIcon),onClick:ie}):H.jsx(oQ,{className:Z.deleteIcon,onClick:ie}));let we=null;o&&G.isValidElement(o)&&(we=G.cloneElement(o,{className:St(Z.avatar,o.props.className)}));let te=null;S&&G.isValidElement(S)&&(te=G.cloneElement(S,{className:St(Z.icon,S.props.className)})),$M.NODE_ENV!=="production"&&we&&te&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const F={slots:V,slotProps:U},[ee,Y]=nn("root",{elementType:uQ,externalForwardedProps:{...F,...X},ownerState:oe,shouldForwardComponentProp:!0,ref:ce,className:St(Z.root,s),additionalProps:{disabled:le&&b?!0:void 0,tabIndex:B&&b?-1:L,...ae},getSlotProps:_e=>({..._e,onClick:je=>{var He;(He=_e.onClick)==null||He.call(_e,je),w==null||w(je)},onKeyDown:je=>{var He;(He=_e.onKeyDown)==null||He.call(_e,je),ue(je)},onKeyUp:je=>{var He;(He=_e.onKeyUp)==null||He.call(_e,je),$(je)}})}),[Re,Se]=nn("label",{elementType:cQ,externalForwardedProps:F,ownerState:oe,className:Z.label});return H.jsxs(ee,{as:Q,...Y,children:[we||te,H.jsx(Re,{...Se,children:T}),de]})});$M.NODE_ENV!=="production"&&(qM.propTypes={avatar:p.element,children:xY,classes:p.object,className:p.string,clickable:p.bool,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,deleteIcon:p.element,disabled:p.bool,icon:p.element,label:p.node,onClick:p.func,onDelete:p.func,onKeyDown:p.func,onKeyUp:p.func,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),skipFocusWhenDisabled:p.bool,slotProps:p.shape({label:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({label:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,variant:p.oneOfType([p.oneOf(["filled","outlined"]),p.string])});var fQ={};function c3(e){return parseInt(e,10)||0}const dQ={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function hQ(e){for(const t in e)return!1;return!0}function GM(e){return hQ(e)||e.outerHeightStyle===0&&!e.overflowing}const M7=G.forwardRef(function(t,n){const{onChange:i,maxRows:o,minRows:s=1,style:c,value:d,...h}=t,{current:y}=G.useRef(d!=null),b=G.useRef(null),S=ri(n,b),T=G.useRef(null),w=G.useRef(null),C=G.useCallback(()=>{const L=b.current,B=w.current;if(!L||!B)return;const U=nf(L).getComputedStyle(L);if(U.width==="0px")return{outerHeightStyle:0,overflowing:!1};B.style.width=U.width,B.value=L.value||t.placeholder||"x",B.value.slice(-1)===`
`&&(B.value+=" ");const X=U.boxSizing,se=c3(U.paddingBottom)+c3(U.paddingTop),ce=c3(U.borderBottomWidth)+c3(U.borderTopWidth),ie=B.scrollHeight;B.value="x";const ue=B.scrollHeight;let $=ie;s&&($=Math.max(Number(s)*ue,$)),o&&($=Math.min(Number(o)*ue,$)),$=Math.max($,ue);const le=$+(X==="border-box"?se+ce:0),Q=Math.abs($-ie)<=1;return{outerHeightStyle:le,overflowing:Q}},[o,s,t.placeholder]),M=Xl(()=>{const L=b.current,B=C();if(!L||!B||GM(B))return!1;const V=B.outerHeightStyle;return T.current!=null&&T.current!==V}),_=G.useCallback(()=>{const L=b.current,B=C();if(!L||!B||GM(B))return;const V=B.outerHeightStyle;T.current!==V&&(T.current=V,L.style.height=`${V}px`),L.style.overflow=B.overflowing?"hidden":""},[C]),k=G.useRef(-1);Yl(()=>{const L=FR(_),B=b==null?void 0:b.current;if(!B)return;const V=nf(B);V.addEventListener("resize",L);let U;return typeof ResizeObserver<"u"&&(U=new ResizeObserver(()=>{M()&&(U.unobserve(B),cancelAnimationFrame(k.current),_(),k.current=requestAnimationFrame(()=>{U.observe(B)}))}),U.observe(B)),()=>{L.clear(),cancelAnimationFrame(k.current),V.removeEventListener("resize",L),U&&U.disconnect()}},[C,_,M]),Yl(()=>{_()});const z=L=>{y||_();const B=L.target,V=B.value.length,U=B.value.endsWith(`
`),X=B.selectionStart===V;U&&X&&B.setSelectionRange(V,V),i&&i(L)};return H.jsxs(G.Fragment,{children:[H.jsx("textarea",{value:d,onChange:z,ref:S,rows:s,style:c,...h}),H.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...dQ.shadow,...c,paddingTop:0,paddingBottom:0}})]})});fQ.NODE_ENV!=="production"&&(M7.propTypes={className:p.string,maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),onChange:p.func,placeholder:p.string,style:p.object,value:p.oneOfType([p.arrayOf(p.string),p.number,p.string])});function zd({props:e,states:t,muiFormControl:n}){return t.reduce((i,o)=>(i[o]=e[o],n&&typeof e[o]>"u"&&(i[o]=n[o]),i),{})}var pQ={};const Jv=G.createContext(void 0);pQ.NODE_ENV!=="production"&&(Jv.displayName="FormControlContext");function su(){return G.useContext(Jv)}function FM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function f3(e,t=!1){return e&&(FM(e.value)&&e.value!==""||t&&FM(e.defaultValue)&&e.defaultValue!=="")}function mQ(e){return e.startAdornment}function gQ(e){return Wt("MuiInputBase",e)}const hg=Qt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var eb={},YM;const d3=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},h3=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},yQ=e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:s,focused:c,formControl:d,fullWidth:h,hiddenLabel:y,multiline:b,readOnly:S,size:T,startAdornment:w,type:C}=e,M={root:["root",`color${Je(n)}`,i&&"disabled",o&&"error",h&&"fullWidth",c&&"focused",d&&"formControl",T&&T!=="medium"&&`size${Je(T)}`,b&&"multiline",w&&"adornedStart",s&&"adornedEnd",y&&"hiddenLabel",S&&"readOnly"],input:["input",i&&"disabled",C==="search"&&"inputTypeSearch",b&&"inputMultiline",T==="small"&&"inputSizeSmall",y&&"inputHiddenLabel",w&&"inputAdornedStart",s&&"inputAdornedEnd",S&&"readOnly"]};return en(M,gQ,t)},p3=it("div",{name:"MuiInputBase",slot:"Root",overridesResolver:d3})(Gt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${hg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),m3=it("input",{name:"MuiInputBase",slot:"Input",overridesResolver:h3})(Gt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hg.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${hg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),XM=cY({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),g3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:c,className:d,color:h,components:y={},componentsProps:b={},defaultValue:S,disabled:T,disableInjectingGlobalStyles:w,endAdornment:C,error:M,fullWidth:_=!1,id:k,inputComponent:z="input",inputProps:L={},inputRef:B,margin:V,maxRows:U,minRows:X,multiline:se=!1,name:ce,onBlur:ie,onChange:ue,onClick:$,onFocus:le,onKeyDown:Q,onKeyUp:oe,placeholder:Z,readOnly:ae,renderSuffix:de,rows:we,size:te,slotProps:F={},slots:ee={},startAdornment:Y,type:Re="text",value:Se,..._e}=i,je=L.value!=null?L.value:Se,{current:He}=G.useRef(je!=null),Xe=G.useRef(),Qe=G.useCallback(yt=>{eb.NODE_ENV!=="production"&&yt&&yt.nodeName!=="INPUT"&&!yt.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
`))},[]),et=ri(Xe,B,L.ref,Qe),[Be,Me]=G.useState(!1),st=su();eb.NODE_ENV!=="production"&&G.useEffect(()=>{if(st)return st.registerEffect()},[st]);const Ot=zd({props:i,muiFormControl:st,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ot.focused=st?st.focused:Be,G.useEffect(()=>{!st&&T&&Be&&(Me(!1),ie&&ie())},[st,T,Be,ie]);const Kt=st&&st.onFilled,xt=st&&st.onEmpty,Ut=G.useCallback(yt=>{f3(yt)?Kt&&Kt():xt&&xt()},[Kt,xt]);Yl(()=>{He&&Ut({value:je})},[je,Ut,He]);const dn=yt=>{le&&le(yt),L.onFocus&&L.onFocus(yt),st&&st.onFocus?st.onFocus(yt):Me(!0)},mn=yt=>{ie&&ie(yt),L.onBlur&&L.onBlur(yt),st&&st.onBlur?st.onBlur(yt):Me(!1)},at=(yt,...gn)=>{if(!He){const Nt=yt.target||Xe.current;if(Nt==null)throw new Error(eb.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Zc(1));Ut({value:Nt.value})}L.onChange&&L.onChange(yt,...gn),ue&&ue(yt,...gn)};G.useEffect(()=>{Ut(Xe.current)},[]);const At=yt=>{Xe.current&&yt.currentTarget===yt.target&&Xe.current.focus(),$&&$(yt)};let Mn=z,Bt=L;se&&Mn==="input"&&(we?(eb.NODE_ENV!=="production"&&(X||U)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Bt={type:void 0,minRows:we,maxRows:we,...Bt}):Bt={type:void 0,maxRows:U,minRows:X,...Bt},Mn=M7);const Ze=yt=>{Ut(yt.animationName==="mui-auto-fill-cancel"?Xe.current:{value:"x"})};G.useEffect(()=>{st&&st.setAdornedStart(!!Y)},[st,Y]);const be={...i,color:Ot.color||"primary",disabled:Ot.disabled,endAdornment:C,error:Ot.error,focused:Ot.focused,formControl:st,fullWidth:_,hiddenLabel:Ot.hiddenLabel,multiline:se,size:Ot.size,startAdornment:Y,type:Re},Ve=yQ(be),nt=ee.root||y.Root||p3,pt=F.root||b.root||{},ut=ee.input||y.Input||m3;return Bt={...Bt,...F.input??b.input},H.jsxs(G.Fragment,{children:[!w&&typeof XM=="function"&&(YM||(YM=H.jsx(XM,{}))),H.jsxs(nt,{...pt,ref:n,onClick:At,..._e,...!ec(nt)&&{ownerState:{...be,...pt.ownerState}},className:St(Ve.root,pt.className,d,ae&&"MuiInputBase-readOnly"),children:[Y,H.jsx(Jv.Provider,{value:null,children:H.jsx(ut,{"aria-invalid":Ot.error,"aria-describedby":o,autoComplete:s,autoFocus:c,defaultValue:S,disabled:Ot.disabled,id:k,onAnimationStart:Ze,name:ce,placeholder:Z,readOnly:ae,required:Ot.required,rows:we,value:je,onKeyDown:Q,onKeyUp:oe,type:Re,...Bt,...!ec(ut)&&{as:Mn,ownerState:{...be,...Bt.ownerState}},ref:et,className:St(Ve.input,Bt.className,ae&&"MuiInputBase-readOnly"),onBlur:mn,onChange:at,onFocus:dn})}),C,de?de({...Ot,startAdornment:Y}):null]})]})});eb.NODE_ENV!=="production"&&(g3.propTypes={"aria-describedby":p.string,autoComplete:p.string,autoFocus:p.bool,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Root:p.elementType}),componentsProps:p.shape({input:p.object,root:p.object}),defaultValue:p.any,disabled:p.bool,disableInjectingGlobalStyles:p.bool,endAdornment:p.node,error:p.bool,fullWidth:p.bool,id:p.string,inputComponent:e3,inputProps:p.object,inputRef:ho,margin:p.oneOf(["dense","none"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onClick:p.func,onFocus:p.func,onInvalid:p.func,onKeyDown:p.func,onKeyUp:p.func,placeholder:p.string,readOnly:p.bool,renderSuffix:p.func,required:p.bool,rows:p.oneOfType([p.number,p.string]),size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.object,root:p.object}),slots:p.shape({input:p.elementType,root:p.elementType}),startAdornment:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any});function vQ(e){return Wt("MuiInput",e)}const tb={...hg,...Qt("MuiInput",["root","underline","input"])};function bQ(e){return Wt("MuiOutlinedInput",e)}const ic={...hg,...Qt("MuiOutlinedInput",["root","notchedOutline","input"])};function xQ(e){return Wt("MuiFilledInput",e)}const Eh={...hg,...Qt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},SQ=Mi(H.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),EQ=Mi(H.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function wQ(e){return Wt("MuiAvatar",e)}Qt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var TQ={};const AQ=e=>{const{classes:t,variant:n,colorDefault:i}=e;return en({root:["root",n,i&&"colorDefault"],img:["img"],fallback:["fallback"]},wQ,t)},CQ=it("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Gt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),OQ=it("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),RQ=it(EQ,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function MQ({crossOrigin:e,referrerPolicy:t,src:n,srcSet:i}){const[o,s]=G.useState(!1);return G.useEffect(()=>{if(!n&&!i)return;s(!1);let c=!0;const d=new Image;return d.onload=()=>{c&&s("loaded")},d.onerror=()=>{c&&s("error")},d.crossOrigin=e,d.referrerPolicy=t,d.src=n,i&&(d.srcset=i),()=>{c=!1}},[e,t,n,i]),o}const WM=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:c,component:d="div",slots:h={},slotProps:y={},imgProps:b,sizes:S,src:T,srcSet:w,variant:C="circular",...M}=i;let _=null;const k={...i,component:d,variant:C},z=MQ({...b,...typeof y.img=="function"?y.img(k):y.img,src:T,srcSet:w}),L=T||w,B=L&&z!=="error";k.colorDefault=!B,delete k.ownerState;const V=AQ(k),[U,X]=nn("root",{ref:n,className:St(V.root,c),elementType:CQ,externalForwardedProps:{slots:h,slotProps:y,component:d,...M},ownerState:k}),[se,ce]=nn("img",{className:V.img,elementType:OQ,externalForwardedProps:{slots:h,slotProps:{img:{...b,...y.img}}},additionalProps:{alt:o,src:T,srcSet:w,sizes:S},ownerState:k}),[ie,ue]=nn("fallback",{className:V.fallback,elementType:RQ,externalForwardedProps:{slots:h,slotProps:y},shouldForwardComponentProp:!0,ownerState:k});return B?_=H.jsx(se,{...ce}):s||s===0?_=s:L&&o?_=o[0]:_=H.jsx(ie,{...ue}),H.jsx(U,{...X,children:_})});TQ.NODE_ENV!=="production"&&(WM.propTypes={alt:p.string,children:p.node,classes:p.object,className:p.string,component:p.elementType,imgProps:p.object,sizes:p.string,slotProps:p.shape({fallback:p.oneOfType([p.func,p.object]),img:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({fallback:p.elementType,img:p.elementType,root:p.elementType}),src:p.string,srcSet:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["circular","rounded","square"]),p.string])});function _Q(e){const{prototype:t={}}=e;return!!t.isReactComponent}function QM(e,t,n,i,o){const s=e[t],c=o||t;if(s==null||typeof window>"u")return null;let d;const h=s.type;return typeof h=="function"&&!_Q(h)&&(d="Did you accidentally use a plain function component for an element instead?"),d!==void 0?new Error(`Invalid ${i} \`${c}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${d} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const pg=ou(p.element,QM);pg.isRequired=ou(p.element.isRequired,QM);var DQ={};const NQ={entering:{opacity:1},entered:{opacity:1}},y3=G.forwardRef(function(t,n){const i=tf(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:h,in:y,onEnter:b,onEntered:S,onEntering:T,onExit:w,onExited:C,onExiting:M,style:_,timeout:k=o,TransitionComponent:z=Ju,...L}=t,B=G.useRef(null),V=ri(B,dg(d),n),U=Q=>oe=>{if(Q){const Z=B.current;oe===void 0?Q(Z):Q(Z,oe)}},X=U(T),se=U((Q,oe)=>{aM(Q);const Z=t3({style:_,timeout:k,easing:h},{mode:"enter"});Q.style.webkitTransition=i.transitions.create("opacity",Z),Q.style.transition=i.transitions.create("opacity",Z),b&&b(Q,oe)}),ce=U(S),ie=U(M),ue=U(Q=>{const oe=t3({style:_,timeout:k,easing:h},{mode:"exit"});Q.style.webkitTransition=i.transitions.create("opacity",oe),Q.style.transition=i.transitions.create("opacity",oe),w&&w(Q)}),$=U(C),le=Q=>{s&&s(B.current,Q)};return H.jsx(z,{appear:c,in:y,nodeRef:B,onEnter:se,onEntered:ce,onEntering:X,onExit:ue,onExited:$,onExiting:ie,addEndListener:le,timeout:k,...L,children:(Q,{ownerState:oe,...Z})=>G.cloneElement(d,{style:{opacity:0,visibility:Q==="exited"&&!y?"hidden":void 0,...NQ[Q],..._,...d.props.style},ref:V,...Z})})});DQ.NODE_ENV!=="production"&&(y3.propTypes={addEndListener:p.func,appear:p.bool,children:pg.isRequired,easing:p.oneOfType([p.shape({enter:p.string,exit:p.string}),p.string]),in:p.bool,onEnter:p.func,onEntered:p.func,onEntering:p.func,onExit:p.func,onExited:p.func,onExiting:p.func,style:p.object,timeout:p.oneOfType([p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})])});function kQ(e){return Wt("MuiBackdrop",e)}Qt("MuiBackdrop",["root","invisible"]);var zQ={};const IQ=e=>{const{classes:t,invisible:n}=e;return en({root:["root",n&&"invisible"]},kQ,t)},LQ=it("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),_7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:c="div",invisible:d=!1,open:h,components:y={},componentsProps:b={},slotProps:S={},slots:T={},TransitionComponent:w,transitionDuration:C,...M}=i,_={...i,component:c,invisible:d},k=IQ(_),z={transition:w,root:y.Root,...T},L={...b,...S},B={component:c,slots:z,slotProps:L},[V,U]=nn("root",{elementType:LQ,externalForwardedProps:B,className:St(k.root,s),ownerState:_}),[X,se]=nn("transition",{elementType:y3,externalForwardedProps:B,ownerState:_});return H.jsx(X,{in:h,timeout:C,...M,...se,children:H.jsx(V,{"aria-hidden":!0,...U,ref:n,children:o})})});zQ.NODE_ENV!=="production"&&(_7.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,components:p.shape({Root:p.elementType}),componentsProps:p.shape({root:p.object}),invisible:p.bool,open:p.bool.isRequired,slotProps:p.shape({root:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),TransitionComponent:p.elementType,transitionDuration:p.oneOfType([p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})])});const VQ=Qt("MuiBox",["root"]);var BQ={};const jQ=HR(),xi=MG({themeId:WS,defaultTheme:jQ,defaultClassName:VQ.root,generateClassName:hO.generate});BQ.NODE_ENV!=="production"&&(xi.propTypes={children:p.node,component:p.elementType,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function PQ(e){return Wt("MuiButton",e)}const wh=Qt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]);var UQ={};const KM=G.createContext({});UQ.NODE_ENV!=="production"&&(KM.displayName="ButtonGroupContext");var $Q={};const ZM=G.createContext(void 0);$Q.NODE_ENV!=="production"&&(ZM.displayName="ButtonGroupButtonContext");var HQ={};const qQ=e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:s,loading:c,loadingPosition:d,classes:h}=e,y={root:["root",c&&"loading",s,`${s}${Je(t)}`,`size${Je(o)}`,`${s}Size${Je(o)}`,`color${Je(t)}`,n&&"disableElevation",i&&"fullWidth",c&&`loadingPosition${Je(d)}`],startIcon:["icon","startIcon",`iconSize${Je(o)}`],endIcon:["icon","endIcon",`iconSize${Je(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},b=en(y,PQ,h);return{...h,...b}},JM=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],GQ=it(Nd,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Je(n.color)}`],t[`size${Je(n.size)}`],t[`${n.variant}Size${Je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Gt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${wh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${wh.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${wh.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${wh.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($r()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(e.vars||e).palette[i].main,"--variant-outlinedColor":(e.vars||e).palette[i].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[i].main,.5),"--variant-containedColor":(e.vars||e).palette[i].contrastText,"--variant-containedBg":(e.vars||e).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[i].dark,"--variant-textBg":e.alpha((e.vars||e).palette[i].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[i].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[i].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${wh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wh.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${wh.loading}`]:{color:"transparent"}}}]}})),FQ=it("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Je(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...JM]})),YQ=it("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Je(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...JM]})),XQ=it("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),e_=it("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),mg=G.forwardRef(function(t,n){const i=G.useContext(KM),o=G.useContext(ZM),s=Lv(i,t),c=ln({props:s,name:"MuiButton"}),{children:d,color:h="primary",component:y="button",className:b,disabled:S=!1,disableElevation:T=!1,disableFocusRipple:w=!1,endIcon:C,focusVisibleClassName:M,fullWidth:_=!1,id:k,loading:z=null,loadingIndicator:L,loadingPosition:B="center",size:V="medium",startIcon:U,type:X,variant:se="text",...ce}=c,ie=mh(k),ue=L??H.jsx(qv,{"aria-labelledby":ie,color:"inherit",size:16}),$={...c,color:h,component:y,disabled:S,disableElevation:T,disableFocusRipple:w,fullWidth:_,loading:z,loadingIndicator:ue,loadingPosition:B,size:V,type:X,variant:se},le=qQ($),Q=(U||z&&B==="start")&&H.jsx(FQ,{className:le.startIcon,ownerState:$,children:U||H.jsx(e_,{className:le.loadingIconPlaceholder,ownerState:$})}),oe=(C||z&&B==="end")&&H.jsx(YQ,{className:le.endIcon,ownerState:$,children:C||H.jsx(e_,{className:le.loadingIconPlaceholder,ownerState:$})}),Z=o||"",ae=typeof z=="boolean"?H.jsx("span",{className:le.loadingWrapper,style:{display:"contents"},children:z&&H.jsx(XQ,{className:le.loadingIndicator,ownerState:$,children:ue})}):null;return H.jsxs(GQ,{ownerState:$,className:St(i.className,le.root,b,Z),component:y,disabled:S||z,focusRipple:!w,focusVisibleClassName:St(le.focusVisible,M),ref:n,type:X,id:z?ie:k,...ce,classes:le,children:[Q,B!=="end"&&ae,d,B==="end"&&ae,oe]})});HQ.NODE_ENV!=="production"&&(mg.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","primary","secondary","success","error","info","warning"]),p.string]),component:p.elementType,disabled:p.bool,disableElevation:p.bool,disableFocusRipple:p.bool,disableRipple:p.bool,endIcon:p.node,focusVisibleClassName:p.string,fullWidth:p.bool,href:p.string,id:p.string,loading:p.bool,loadingIndicator:p.node,loadingPosition:p.oneOf(["center","end","start"]),size:p.oneOfType([p.oneOf(["small","medium","large"]),p.string]),startIcon:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.oneOfType([p.oneOf(["button","reset","submit"]),p.string]),variant:p.oneOfType([p.oneOf(["contained","outlined","text"]),p.string])});function WQ(e){return Wt("PrivateSwitchBase",e)}Qt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var QQ={};const KQ=e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,s={root:["root",n&&"checked",i&&"disabled",o&&`edge${Je(o)}`],input:["input"]};return en(s,WQ,t)},ZQ=it(Nd,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),JQ=it("input",{name:"MuiSwitchBase",shouldForwardProp:Ea})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),v3=G.forwardRef(function(t,n){const{autoFocus:i,checked:o,checkedIcon:s,defaultChecked:c,disabled:d,disableFocusRipple:h=!1,edge:y=!1,icon:b,id:S,inputProps:T,inputRef:w,name:C,onBlur:M,onChange:_,onFocus:k,readOnly:z,required:L=!1,tabIndex:B,type:V,value:U,slots:X={},slotProps:se={},...ce}=t,[ie,ue]=ng({controlled:o,default:!!c,name:"SwitchBase",state:"checked"}),$=su(),le=Se=>{k&&k(Se),$&&$.onFocus&&$.onFocus(Se)},Q=Se=>{M&&M(Se),$&&$.onBlur&&$.onBlur(Se)},oe=Se=>{if(Se.nativeEvent.defaultPrevented||z)return;const _e=Se.target.checked;ue(_e),_&&_(Se,_e)};let Z=d;$&&typeof Z>"u"&&(Z=$.disabled);const ae=V==="checkbox"||V==="radio",de={...t,checked:ie,disabled:Z,disableFocusRipple:h,edge:y},we=KQ(de),te={slots:X,slotProps:{input:T,...se}},[F,ee]=nn("root",{ref:n,elementType:ZQ,className:we.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...ce},getSlotProps:Se=>({...Se,onFocus:_e=>{var je;(je=Se.onFocus)==null||je.call(Se,_e),le(_e)},onBlur:_e=>{var je;(je=Se.onBlur)==null||je.call(Se,_e),Q(_e)}}),ownerState:de,additionalProps:{centerRipple:!0,focusRipple:!h,role:void 0,tabIndex:null}}),[Y,Re]=nn("input",{ref:w,elementType:JQ,className:we.input,externalForwardedProps:te,getSlotProps:Se=>({...Se,onChange:_e=>{var je;(je=Se.onChange)==null||je.call(Se,_e),oe(_e)}}),ownerState:de,additionalProps:{autoFocus:i,checked:o,defaultChecked:c,disabled:Z,id:ae?S:void 0,name:C,readOnly:z,required:L,tabIndex:B,type:V,...V==="checkbox"&&U===void 0?{}:{value:U}}});return H.jsxs(F,{...ee,children:[H.jsx(Y,{...Re}),ie?s:b]})});QQ.NODE_ENV!=="production"&&(v3.propTypes={autoFocus:p.bool,checked:p.bool,checkedIcon:p.node.isRequired,classes:p.object,className:p.string,defaultChecked:p.bool,disabled:p.bool,disableFocusRipple:p.bool,edge:p.oneOf(["end","start",!1]),icon:p.node.isRequired,id:p.string,inputProps:p.object,inputRef:ho,name:p.string,onBlur:p.func,onChange:p.func,onFocus:p.func,readOnly:p.bool,required:p.bool,slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType}),sx:p.object,tabIndex:p.oneOfType([p.number,p.string]),type:p.string.isRequired,value:p.any});const eK=Mi(H.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),tK=Mi(H.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),nK=Mi(H.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function rK(e){return Wt("MuiCheckbox",e)}const D7=Qt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var iK={};const aK=e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,s={root:["root",n&&"indeterminate",`color${Je(i)}`,`size${Je(o)}`]},c=en(s,rK,t);return{...t,...c}},oK=it(v3,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Je(n.size)}`],n.color!=="default"&&t[`color${Je(n.color)}`]]}})(Gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{[`&.${D7.checked}, &.${D7.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${D7.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),lK=H.jsx(tK,{}),sK=H.jsx(eK,{}),uK=H.jsx(nK,{}),t_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiCheckbox"}),{checkedIcon:o=lK,color:s="primary",icon:c=sK,indeterminate:d=!1,indeterminateIcon:h=uK,inputProps:y,size:b="medium",disableRipple:S=!1,className:T,slots:w={},slotProps:C={},...M}=i,_=d?h:c,k=d?h:o,z={...i,disableRipple:S,color:s,indeterminate:d,size:b},L=aK(z),B=C.input??y,[V,U]=nn("root",{ref:n,elementType:oK,className:St(L.root,T),shouldForwardComponentProp:!0,externalForwardedProps:{slots:w,slotProps:C,...M},ownerState:z,additionalProps:{type:"checkbox",icon:G.cloneElement(_,{fontSize:_.props.fontSize??b}),checkedIcon:G.cloneElement(k,{fontSize:k.props.fontSize??b}),disableRipple:S,slots:w,slotProps:{input:XR(typeof B=="function"?B(z):B,{"data-indeterminate":d})}}});return H.jsx(V,{...U,classes:L})});iK.NODE_ENV!=="production"&&(t_.propTypes={checked:p.bool,checkedIcon:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),defaultChecked:p.bool,disabled:p.bool,disableRipple:p.bool,icon:p.node,id:p.string,indeterminate:p.bool,indeterminateIcon:p.node,inputProps:p.object,onChange:p.func,required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function n_(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function cK(e){const t=wa(e);return t.body===e?nf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function nb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function r_(e){return parseFloat(nf(e).getComputedStyle(e).paddingRight)||0}function fK(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function i_(e,t,n,i,o){const s=[t,n,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),h=!fK(c);d&&h&&nb(c,o)})}function N7(e,t){let n=-1;return e.some((i,o)=>t(i)?(n=o,!0):!1),n}function dK(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(cK(i)){const c=n_(nf(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${r_(i)+c}px`;const d=wa(i).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{n.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${r_(h)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=wa(i).body;else{const c=i.parentElement,d=nf(i);s=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function hK(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pK{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&nb(t.modalRef,!1);const o=hK(n);i_(n,t.mount,t.modalRef,o,!0);const s=N7(this.containers,c=>c.container===n);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),i)}mount(t,n){const i=N7(this.containers,s=>s.modals.includes(t)),o=this.containers[i];o.restore||(o.restore=dK(o,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const o=N7(this.containers,c=>c.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&nb(t.modalRef,n),i_(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&nb(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function rb(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}var k7={};const mK=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gK(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function yK(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function vK(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||yK(e))}function bK(e){const t=[],n=[];return Array.from(e.querySelectorAll(mK)).forEach((i,o)=>{const s=gK(i);s===-1||!vK(i)||(s===0?t.push(i):n.push({documentOrder:o,tabIndex:s,node:i}))}),n.sort((i,o)=>i.tabIndex===o.tabIndex?i.documentOrder-o.documentOrder:i.tabIndex-o.tabIndex).map(i=>i.node).concat(t)}function xK(){return!0}function b3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:s=bK,isEnabled:c=xK,open:d}=e,h=G.useRef(!1),y=G.useRef(null),b=G.useRef(null),S=G.useRef(null),T=G.useRef(null),w=G.useRef(!1),C=G.useRef(null),M=ri(dg(t),C),_=G.useRef(null);G.useEffect(()=>{!d||!C.current||(w.current=!n)},[n,d]),G.useEffect(()=>{if(!d||!C.current)return;const L=wa(C.current),B=rb(L);return C.current.contains(B)||(C.current.hasAttribute("tabIndex")||(k7.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
`)),C.current.setAttribute("tabIndex","-1")),w.current&&C.current.focus()),()=>{o||(S.current&&S.current.focus&&(h.current=!0,S.current.focus()),S.current=null)}},[d]),G.useEffect(()=>{if(!d||!C.current)return;const L=wa(C.current),B=X=>{if(_.current=X,i||!c()||X.key!=="Tab")return;rb(L)===C.current&&X.shiftKey&&(h.current=!0,b.current&&b.current.focus())},V=()=>{var ie,ue;const X=C.current;if(X===null)return;const se=rb(L);if(!L.hasFocus()||!c()||h.current){h.current=!1;return}if(X.contains(se)||i&&se!==y.current&&se!==b.current)return;if(se!==T.current)T.current=null;else if(T.current!==null)return;if(!w.current)return;let ce=[];if((se===y.current||se===b.current)&&(ce=s(C.current)),ce.length>0){const $=!!((ie=_.current)!=null&&ie.shiftKey&&((ue=_.current)==null?void 0:ue.key)==="Tab"),le=ce[0],Q=ce[ce.length-1];typeof le!="string"&&typeof Q!="string"&&($?Q.focus():le.focus())}else X.focus()};L.addEventListener("focusin",V),L.addEventListener("keydown",B,!0);const U=setInterval(()=>{const X=rb(L);X&&X.tagName==="BODY"&&V()},50);return()=>{clearInterval(U),L.removeEventListener("focusin",V),L.removeEventListener("keydown",B,!0)}},[n,i,o,c,d,s]);const k=L=>{S.current===null&&(S.current=L.relatedTarget),w.current=!0,T.current=L.target;const B=t.props.onFocus;B&&B(L)},z=L=>{S.current===null&&(S.current=L.relatedTarget),w.current=!0};return H.jsxs(G.Fragment,{children:[H.jsx("div",{tabIndex:d?0:-1,onFocus:z,ref:y,"data-testid":"sentinelStart"}),G.cloneElement(t,{ref:M,onFocus:k}),H.jsx("div",{tabIndex:d?0:-1,onFocus:z,ref:b,"data-testid":"sentinelEnd"})]})}k7.NODE_ENV!=="production"&&(b3.propTypes={children:pg,disableAutoFocus:p.bool,disableEnforceFocus:p.bool,disableRestoreFocus:p.bool,getTabbable:p.func,isEnabled:p.func,open:p.bool.isRequired}),k7.NODE_ENV!=="production"&&(b3.propTypes=wR(b3.propTypes));function SK(e){return typeof e=="function"?e():e}function EK(e){return e?e.props.hasOwnProperty("in"):!1}const a_=()=>{},x3=new pK;function wK(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:h,open:y,rootRef:b}=e,S=G.useRef({}),T=G.useRef(null),w=G.useRef(null),C=ri(w,b),[M,_]=G.useState(!y),k=EK(d);let z=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(z=!1);const L=()=>wa(T.current),B=()=>(S.current.modalRef=w.current,S.current.mount=T.current,S.current),V=()=>{x3.mount(B(),{disableScrollLock:i}),w.current&&(w.current.scrollTop=0)},U=Xl(()=>{const oe=SK(t)||L().body;x3.add(B(),oe),w.current&&V()}),X=()=>x3.isTopModal(B()),se=Xl(oe=>{T.current=oe,oe&&(y&&X()?V():w.current&&nb(w.current,z))}),ce=G.useCallback(()=>{x3.remove(B(),z)},[z]);G.useEffect(()=>()=>{ce()},[ce]),G.useEffect(()=>{y?U():(!k||!o)&&ce()},[y,ce,k,o,U]);const ie=oe=>Z=>{var ae;(ae=oe.onKeyDown)==null||ae.call(oe,Z),!(Z.key!=="Escape"||Z.which===229||!X())&&(n||(Z.stopPropagation(),h&&h(Z,"escapeKeyDown")))},ue=oe=>Z=>{var ae;(ae=oe.onClick)==null||ae.call(oe,Z),Z.target===Z.currentTarget&&h&&h(Z,"backdropClick")};return{getRootProps:(oe={})=>{const Z=$v(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const ae={...Z,...oe};return{role:"presentation",...ae,onKeyDown:ie(ae),ref:C}},getBackdropProps:(oe={})=>{const Z=oe;return{"aria-hidden":!0,...Z,onClick:ue(Z),open:y}},getTransitionProps:()=>{const oe=()=>{_(!1),s&&s()},Z=()=>{_(!0),c&&c(),o&&ce()};return{onEnter:C2(oe,(d==null?void 0:d.props.onEnter)??a_),onExited:C2(Z,(d==null?void 0:d.props.onExited)??a_)}},rootRef:C,portalRef:se,isTopModal:X,exited:M,hasTransition:k}}function TK(e){return Wt("MuiModal",e)}Qt("MuiModal",["root","hidden","backdrop"]);var AK={};const CK=e=>{const{open:t,exited:n,classes:i}=e;return en({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},TK,i)},OK=it("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Gt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),RK=it(_7,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),z7=G.forwardRef(function(t,n){const i=ln({name:"MuiModal",props:t}),{BackdropComponent:o=RK,BackdropProps:s,classes:c,className:d,closeAfterTransition:h=!1,children:y,container:b,component:S,components:T={},componentsProps:w={},disableAutoFocus:C=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:_=!1,disablePortal:k=!1,disableRestoreFocus:z=!1,disableScrollLock:L=!1,hideBackdrop:B=!1,keepMounted:V=!1,onClose:U,onTransitionEnter:X,onTransitionExited:se,open:ce,slotProps:ie={},slots:ue={},theme:$,...le}=i,Q={...i,closeAfterTransition:h,disableAutoFocus:C,disableEnforceFocus:M,disableEscapeKeyDown:_,disablePortal:k,disableRestoreFocus:z,disableScrollLock:L,hideBackdrop:B,keepMounted:V},{getRootProps:oe,getBackdropProps:Z,getTransitionProps:ae,portalRef:de,isTopModal:we,exited:te,hasTransition:F}=wK({...Q,rootRef:n}),ee={...Q,exited:te},Y=CK(ee),Re={};if(y.props.tabIndex===void 0&&(Re.tabIndex="-1"),F){const{onEnter:Qe,onExited:et}=ae();Re.onEnter=Qe,Re.onExited=et}const Se={slots:{root:T.Root,backdrop:T.Backdrop,...ue},slotProps:{...w,...ie}},[_e,je]=nn("root",{ref:n,elementType:OK,externalForwardedProps:{...Se,...le,component:S},getSlotProps:oe,ownerState:ee,className:St(d,Y==null?void 0:Y.root,!ee.open&&ee.exited&&(Y==null?void 0:Y.hidden))}),[He,Xe]=nn("backdrop",{ref:s==null?void 0:s.ref,elementType:o,externalForwardedProps:Se,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Qe=>Z({...Qe,onClick:et=>{Qe!=null&&Qe.onClick&&Qe.onClick(et)}}),className:St(s==null?void 0:s.className,Y==null?void 0:Y.backdrop),ownerState:ee});return!V&&!ce&&(!F||te)?null:H.jsx(Zv,{ref:de,container:b,disablePortal:k,children:H.jsxs(_e,{...je,children:[!B&&o?H.jsx(He,{...Xe}):null,H.jsx(b3,{disableEnforceFocus:M,disableAutoFocus:C,disableRestoreFocus:z,isEnabled:we,open:ce,children:G.cloneElement(y,Re)})]})})});AK.NODE_ENV!=="production"&&(z7.propTypes={BackdropComponent:p.elementType,BackdropProps:p.object,children:pg.isRequired,classes:p.object,className:p.string,closeAfterTransition:p.bool,component:p.elementType,components:p.shape({Backdrop:p.elementType,Root:p.elementType}),componentsProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),container:p.oneOfType([af,p.func]),disableAutoFocus:p.bool,disableEnforceFocus:p.bool,disableEscapeKeyDown:p.bool,disablePortal:p.bool,disableRestoreFocus:p.bool,disableScrollLock:p.bool,hideBackdrop:p.bool,keepMounted:p.bool,onClose:p.func,onTransitionEnter:p.func,onTransitionExited:p.func,open:p.bool.isRequired,slotProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({backdrop:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function MK(e){return Wt("MuiDialog",e)}const I7=Qt("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var _K={};const L7=G.createContext({});_K.NODE_ENV!=="production"&&(L7.displayName="DialogContext");var DK={};const NK=it(_7,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),kK=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:s}=e,c={root:["root"],backdrop:["backdrop"],container:["container",`scroll${Je(n)}`],paper:["paper",`paperScroll${Je(n)}`,`paperWidth${Je(String(i))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return en(c,MK,t)},zK=it(z7,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),IK=it("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Je(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),LK=it(Hv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Je(n.scroll)}`],t[`paperWidth${Je(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Gt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${I7.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${I7.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${I7.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ib=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDialog"}),o=tf(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":c,"aria-labelledby":d,"aria-modal":h=!0,BackdropComponent:y,BackdropProps:b,children:S,className:T,disableEscapeKeyDown:w=!1,fullScreen:C=!1,fullWidth:M=!1,maxWidth:_="sm",onClick:k,onClose:z,open:L,PaperComponent:B=Hv,PaperProps:V={},scroll:U="paper",slots:X={},slotProps:se={},TransitionComponent:ce=y3,transitionDuration:ie=s,TransitionProps:ue,...$}=i,le={...i,disableEscapeKeyDown:w,fullScreen:C,fullWidth:M,maxWidth:_,scroll:U},Q=kK(le),oe=G.useRef(),Z=Me=>{oe.current=Me.target===Me.currentTarget},ae=Me=>{k&&k(Me),oe.current&&(oe.current=null,z&&z(Me,"backdropClick"))},de=mh(d),we=G.useMemo(()=>({titleId:de}),[de]),te={transition:ce,...X},F={transition:ue,paper:V,backdrop:b,...se},ee={slots:te,slotProps:F},[Y,Re]=nn("root",{elementType:zK,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:le,className:St(Q.root,T),ref:n}),[Se,_e]=nn("backdrop",{elementType:NK,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:le,className:Q.backdrop}),[je,He]=nn("paper",{elementType:LK,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:le,className:St(Q.paper,V.className)}),[Xe,Qe]=nn("container",{elementType:IK,externalForwardedProps:ee,ownerState:le,className:Q.container}),[et,Be]=nn("transition",{elementType:y3,externalForwardedProps:ee,ownerState:le,additionalProps:{appear:!0,in:L,timeout:ie,role:"presentation"}});return H.jsx(Y,{closeAfterTransition:!0,slots:{backdrop:Se},slotProps:{backdrop:{transitionDuration:ie,as:y,..._e}},disableEscapeKeyDown:w,onClose:z,open:L,onClick:ae,...Re,...$,children:H.jsx(et,{...Be,children:H.jsx(Xe,{onMouseDown:Z,...Qe,children:H.jsx(je,{as:B,elevation:24,role:"dialog","aria-describedby":c,"aria-labelledby":de,"aria-modal":h,...He,children:H.jsx(L7.Provider,{value:we,children:S})})})})})});DK.NODE_ENV!=="production"&&(ib.propTypes={"aria-describedby":p.string,"aria-labelledby":p.string,"aria-modal":p.oneOfType([p.oneOf(["false","true"]),p.bool]),BackdropComponent:p.elementType,BackdropProps:p.object,children:p.node,classes:p.object,className:p.string,disableEscapeKeyDown:p.bool,fullScreen:p.bool,fullWidth:p.bool,maxWidth:p.oneOfType([p.oneOf(["xs","sm","md","lg","xl",!1]),p.string]),onClick:p.func,onClose:p.func,open:p.bool.isRequired,PaperComponent:p.elementType,PaperProps:p.object,scroll:p.oneOf(["body","paper"]),slotProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),container:p.oneOfType([p.func,p.object]),paper:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({backdrop:p.elementType,container:p.elementType,paper:p.elementType,root:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),TransitionComponent:p.elementType,transitionDuration:p.oneOfType([p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})]),TransitionProps:p.object});function VK(e){return Wt("MuiDialogActions",e)}Qt("MuiDialogActions",["root","spacing"]);var BK={};const jK=e=>{const{classes:t,disableSpacing:n}=e;return en({root:["root",!n&&"spacing"]},VK,t)},PK=it("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),V7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...c}=i,d={...i,disableSpacing:s},h=jK(d);return H.jsx(PK,{className:St(h.root,o),ownerState:d,ref:n,...c})});BK.NODE_ENV!=="production"&&(V7.propTypes={children:p.node,classes:p.object,className:p.string,disableSpacing:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function UK(e){return Wt("MuiDialogContent",e)}Qt("MuiDialogContent",["root","dividers"]);function $K(e){return Wt("MuiDialogTitle",e)}const HK=Qt("MuiDialogTitle",["root"]);var qK={};const GK=e=>{const{classes:t,dividers:n}=e;return en({root:["root",n&&"dividers"]},UK,t)},FK=it("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Gt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${HK.root} + &`]:{paddingTop:0}}}]}))),ab=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...c}=i,d={...i,dividers:s},h=GK(d);return H.jsx(FK,{className:St(h.root,o),ownerState:d,ref:n,...c})});qK.NODE_ENV!=="production"&&(ab.propTypes={children:p.node,classes:p.object,className:p.string,dividers:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});var YK={};const XK=e=>{const{classes:t}=e;return en({root:["root"]},$K,t)},WK=it(Hr,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),B7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...c}=i,d=i,h=XK(d),{titleId:y=s}=G.useContext(L7);return H.jsx(WK,{component:"h2",className:St(h.root,o),ownerState:d,ref:n,variant:"h6",id:s??y,...c})});YK.NODE_ENV!=="production"&&(B7.propTypes={children:p.node,classes:p.object,className:p.string,id:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function QK(e){return Wt("MuiDivider",e)}const o_=Qt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var KK={};const ZK=e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:s,orientation:c,textAlign:d,variant:h}=e;return en({root:["root",t&&"absolute",h,s&&"light",c==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&c==="vertical"&&"withChildrenVertical",d==="right"&&c!=="vertical"&&"textAlignRight",d==="left"&&c!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",c==="vertical"&&"wrapperVertical"]},QK,i)},JK=it("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Gt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),eZ=it("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Gt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),gg=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:c,orientation:d="horizontal",component:h=s||d==="vertical"?"div":"hr",flexItem:y=!1,light:b=!1,role:S=h!=="hr"?"separator":void 0,textAlign:T="center",variant:w="fullWidth",...C}=i,M={...i,absolute:o,component:h,flexItem:y,light:b,orientation:d,role:S,textAlign:T,variant:w},_=ZK(M);return H.jsx(JK,{as:h,className:St(_.root,c),role:S,ref:n,ownerState:M,"aria-orientation":S==="separator"&&(h!=="hr"||d==="vertical")?d:void 0,...C,children:s?H.jsx(eZ,{className:_.wrapper,ownerState:M,children:s}):null})});gg&&(gg.muiSkipListHighlight=!0),KK.NODE_ENV!=="production"&&(gg.propTypes={absolute:p.bool,children:p.node,classes:p.object,className:p.string,component:p.elementType,flexItem:p.bool,light:p.bool,orientation:p.oneOf(["horizontal","vertical"]),role:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),textAlign:p.oneOf(["center","left","right"]),variant:p.oneOfType([p.oneOf(["fullWidth","inset","middle"]),p.string])});var tZ={};const nZ=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:s,hiddenLabel:c,multiline:d}=e,h={root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${Je(s)}`,c&&"hiddenLabel",d&&"multiline"],input:["input"]},y=en(h,xQ,t);return{...t,...y}},rZ=it(p3,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...d3(e,t),!n.disableUnderline&&t.underline]}})(Gt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Eh.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Eh.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:c})=>!c.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Eh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Eh.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Eh.disabled}, .${Eh.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Eh.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($r()).map(([c])=>{var d;return{props:{disableUnderline:!1,color:c},style:{"&::after":{borderBottom:`2px solid ${(d=(e.vars||e).palette[c])==null?void 0:d.main}`}}}}),{props:({ownerState:c})=>c.startAdornment,style:{paddingLeft:12}},{props:({ownerState:c})=>c.endAdornment,style:{paddingRight:12}},{props:({ownerState:c})=>c.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:c,size:d})=>c.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel&&c.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),iZ=it(m3,{name:"MuiFilledInput",slot:"Input",overridesResolver:h3})(Gt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),S3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:c,fullWidth:d=!1,hiddenLabel:h,inputComponent:y="input",multiline:b=!1,slotProps:S,slots:T={},type:w="text",...C}=i,M={...i,disableUnderline:o,fullWidth:d,inputComponent:y,multiline:b,type:w},_=nZ(i),k={root:{ownerState:M},input:{ownerState:M}},z=S??c?Pa(k,S??c):k,L=T.root??s.Root??rZ,B=T.input??s.Input??iZ;return H.jsx(g3,{slots:{root:L,input:B},slotProps:z,fullWidth:d,inputComponent:y,multiline:b,ref:n,type:w,...C,classes:_})});tZ.NODE_ENV!=="production"&&(S3.propTypes={autoComplete:p.string,autoFocus:p.bool,classes:p.object,color:p.oneOfType([p.oneOf(["primary","secondary"]),p.string]),components:p.shape({Input:p.elementType,Root:p.elementType}),componentsProps:p.shape({input:p.object,root:p.object}),defaultValue:p.any,disabled:p.bool,disableUnderline:p.bool,endAdornment:p.node,error:p.bool,fullWidth:p.bool,hiddenLabel:p.bool,id:p.string,inputComponent:p.elementType,inputProps:p.object,inputRef:ho,margin:p.oneOf(["dense","none"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onChange:p.func,placeholder:p.string,readOnly:p.bool,required:p.bool,rows:p.oneOfType([p.number,p.string]),slotProps:p.shape({input:p.object,root:p.object}),slots:p.shape({input:p.elementType,root:p.elementType}),startAdornment:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any}),S3.muiName="Input";function aZ(e){return Wt("MuiFormControl",e)}Qt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var l_={};const oZ=e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root",n!=="none"&&`margin${Je(n)}`,i&&"fullWidth"]};return en(o,aZ,t)},lZ=it("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Je(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Hi=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormControl"}),{children:o,className:s,color:c="primary",component:d="div",disabled:h=!1,error:y=!1,focused:b,fullWidth:S=!1,hiddenLabel:T=!1,margin:w="none",required:C=!1,size:M="medium",variant:_="outlined",...k}=i,z={...i,color:c,component:d,disabled:h,error:y,fullWidth:S,hiddenLabel:T,margin:w,required:C,size:M,variant:_},L=oZ(z),[B,V]=G.useState(()=>{let Z=!1;return o&&G.Children.forEach(o,ae=>{if(!Xm(ae,["Input","Select"]))return;const de=Xm(ae,["Select"])?ae.props.input:ae;de&&mQ(de.props)&&(Z=!0)}),Z}),[U,X]=G.useState(()=>{let Z=!1;return o&&G.Children.forEach(o,ae=>{Xm(ae,["Input","Select"])&&(f3(ae.props,!0)||f3(ae.props.inputProps,!0))&&(Z=!0)}),Z}),[se,ce]=G.useState(!1);h&&se&&ce(!1);const ie=b!==void 0&&!h?b:se;let ue;const $=G.useRef(!1);l_.NODE_ENV!=="production"&&(ue=()=>($.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
`)),$.current=!0,()=>{$.current=!1}));const le=G.useCallback(()=>{X(!0)},[]),Q=G.useCallback(()=>{X(!1)},[]),oe=G.useMemo(()=>({adornedStart:B,setAdornedStart:V,color:c,disabled:h,error:y,filled:U,focused:ie,fullWidth:S,hiddenLabel:T,size:M,onBlur:()=>{ce(!1)},onFocus:()=>{ce(!0)},onEmpty:Q,onFilled:le,registerEffect:ue,required:C,variant:_}),[B,c,h,y,U,ie,S,T,ue,Q,le,C,M,_]);return H.jsx(Jv.Provider,{value:oe,children:H.jsx(lZ,{as:d,ownerState:z,className:St(L.root,s),ref:n,...k,children:o})})});l_.NODE_ENV!=="production"&&(Hi.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,disabled:p.bool,error:p.bool,focused:p.bool,fullWidth:p.bool,hiddenLabel:p.bool,margin:p.oneOf(["dense","none","normal"]),required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOf(["filled","outlined","standard"])});function sZ(e){return Wt("MuiFormControlLabel",e)}const ob=Qt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var uZ={};const cZ=e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:s}=e,c={root:["root",n&&"disabled",`labelPlacement${Je(i)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return en(c,sZ,t)},fZ=it("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ob.label}`]:t.label},t.root,t[`labelPlacement${Je(n.labelPlacement)}`]]}})(Gt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ob.disabled}`]:{cursor:"default"},[`& .${ob.label}`]:{[`&.${ob.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),dZ=it("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Gt(({theme:e})=>({[`&.${ob.error}`]:{color:(e.vars||e).palette.error.main}}))),Th=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:c={},control:d,disabled:h,disableTypography:y,inputRef:b,label:S,labelPlacement:T="end",name:w,onChange:C,required:M,slots:_={},slotProps:k={},value:z,...L}=i,B=su(),V=h??d.props.disabled??(B==null?void 0:B.disabled),U=M??d.props.required,X={disabled:V,required:U};["checked","name","onChange","value","inputRef"].forEach(oe=>{typeof d.props[oe]>"u"&&typeof i[oe]<"u"&&(X[oe]=i[oe])});const se=zd({props:i,muiFormControl:B,states:["error"]}),ce={...i,disabled:V,labelPlacement:T,required:U,error:se.error},ie=cZ(ce),ue={slots:_,slotProps:{...c,...k}},[$,le]=nn("typography",{elementType:Hr,externalForwardedProps:ue,ownerState:ce});let Q=S;return Q!=null&&Q.type!==Hr&&!y&&(Q=H.jsx($,{component:"span",...le,className:St(ie.label,le==null?void 0:le.className),children:Q})),H.jsxs(fZ,{className:St(ie.root,s),ownerState:ce,ref:n,...L,children:[G.cloneElement(d,X),U?H.jsxs("div",{children:[Q,H.jsxs(dZ,{ownerState:ce,"aria-hidden":!0,className:ie.asterisk,children:[" ","*"]})]}):Q]})});uZ.NODE_ENV!=="production"&&(Th.propTypes={checked:p.bool,classes:p.object,className:p.string,componentsProps:p.shape({typography:p.object}),control:p.element.isRequired,disabled:p.bool,disableTypography:p.bool,inputRef:ho,label:p.node,labelPlacement:p.oneOf(["bottom","end","start","top"]),name:p.string,onChange:p.func,required:p.bool,slotProps:p.shape({typography:p.oneOfType([p.func,p.object])}),slots:p.shape({typography:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function hZ(e){return Wt("MuiFormGroup",e)}Qt("MuiFormGroup",["root","row","error"]);var pZ={};const mZ=e=>{const{classes:t,row:n,error:i}=e;return en({root:["root",n&&"row",i&&"error"]},hZ,t)},gZ=it("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),s_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1,...c}=i,d=su(),h=zd({props:i,muiFormControl:d,states:["error"]}),y={...i,row:s,error:h.error},b=mZ(y);return H.jsx(gZ,{className:St(b.root,o),ownerState:y,ref:n,...c})});pZ.NODE_ENV!=="production"&&(s_.propTypes={children:p.node,classes:p.object,className:p.string,row:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function yZ(e){return Wt("MuiFormHelperText",e)}const u_=Qt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var vZ={},c_;const bZ=e=>{const{classes:t,contained:n,size:i,disabled:o,error:s,filled:c,focused:d,required:h}=e,y={root:["root",o&&"disabled",s&&"error",i&&`size${Je(i)}`,n&&"contained",d&&"focused",c&&"filled",h&&"required"]};return en(y,yZ,t)},xZ=it("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${u_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${u_.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),f_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:c="p",disabled:d,error:h,filled:y,focused:b,margin:S,required:T,variant:w,...C}=i,M=su(),_=zd({props:i,muiFormControl:M,states:["variant","size","disabled","error","filled","focused","required"]}),k={...i,component:c,contained:_.variant==="filled"||_.variant==="outlined",variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required};delete k.ownerState;const z=bZ(k);return H.jsx(xZ,{as:c,className:St(z.root,s),ref:n,...C,ownerState:k,children:o===" "?c_||(c_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});vZ.NODE_ENV!=="production"&&(f_.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,disabled:p.bool,error:p.bool,filled:p.bool,focused:p.bool,margin:p.oneOf(["dense"]),required:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["filled","outlined","standard"]),p.string])});function SZ(e){return Wt("MuiFormLabel",e)}const lb=Qt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var EZ={};const wZ=e=>{const{classes:t,color:n,focused:i,disabled:o,error:s,filled:c,required:d}=e,h={root:["root",`color${Je(n)}`,o&&"disabled",s&&"error",c&&"filled",i&&"focused",d&&"required"],asterisk:["asterisk",s&&"error"]};return en(h,SZ,t)},TZ=it("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{[`&.${lb.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lb.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),AZ=it("span",{name:"MuiFormLabel",slot:"Asterisk"})(Gt(({theme:e})=>({[`&.${lb.error}`]:{color:(e.vars||e).palette.error.main}}))),d_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:c,component:d="label",disabled:h,error:y,filled:b,focused:S,required:T,...w}=i,C=su(),M=zd({props:i,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),_={...i,color:M.color||"primary",component:d,disabled:M.disabled,error:M.error,filled:M.filled,focused:M.focused,required:M.required},k=wZ(_);return H.jsxs(TZ,{as:d,ownerState:_,className:St(k.root,s),ref:n,...w,children:[o,M.required&&H.jsxs(AZ,{ownerState:_,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});EZ.NODE_ENV!=="production"&&(d_.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["error","info","primary","secondary","success","warning"]),p.string]),component:p.elementType,disabled:p.bool,error:p.bool,filled:p.bool,focused:p.bool,required:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});var h_={};const zt=AF({createStyledComponent:it("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>ln({props:e,name:"MuiGrid"}),useTheme:tf});if(h_.NODE_ENV!=="production"&&(zt.propTypes={children:p.node,columns:p.oneOfType([p.arrayOf(p.number),p.number,p.object]),columnSpacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),container:p.bool,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),offset:p.oneOfType([p.string,p.number,p.arrayOf(p.oneOfType([p.string,p.number])),p.object]),rowSpacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),size:p.oneOfType([p.string,p.bool,p.number,p.arrayOf(p.oneOfType([p.string,p.bool,p.number])),p.object]),spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),unstable_level:p.number,wrap:p.oneOf(["nowrap","wrap-reverse","wrap"])}),h_.NODE_ENV!=="production"){const e=zt,t=vY("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}var CZ={};function j7(e){return`scale(${e}, ${e**2})`}const OZ={entering:{opacity:1,transform:j7(1)},entered:{opacity:1,transform:"none"}},P7=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sb=G.forwardRef(function(t,n){const{addEndListener:i,appear:o=!0,children:s,easing:c,in:d,onEnter:h,onEntered:y,onEntering:b,onExit:S,onExited:T,onExiting:w,style:C,timeout:M="auto",TransitionComponent:_=Ju,...k}=t,z=ag(),L=G.useRef(),B=tf(),V=G.useRef(null),U=ri(V,dg(s),n),X=oe=>Z=>{if(oe){const ae=V.current;Z===void 0?oe(ae):oe(ae,Z)}},se=X(b),ce=X((oe,Z)=>{aM(oe);const{duration:ae,delay:de,easing:we}=t3({style:C,timeout:M,easing:c},{mode:"enter"});let te;M==="auto"?(te=B.transitions.getAutoHeightDuration(oe.clientHeight),L.current=te):te=ae,oe.style.transition=[B.transitions.create("opacity",{duration:te,delay:de}),B.transitions.create("transform",{duration:P7?te:te*.666,delay:de,easing:we})].join(","),h&&h(oe,Z)}),ie=X(y),ue=X(w),$=X(oe=>{const{duration:Z,delay:ae,easing:de}=t3({style:C,timeout:M,easing:c},{mode:"exit"});let we;M==="auto"?(we=B.transitions.getAutoHeightDuration(oe.clientHeight),L.current=we):we=Z,oe.style.transition=[B.transitions.create("opacity",{duration:we,delay:ae}),B.transitions.create("transform",{duration:P7?we:we*.666,delay:P7?ae:ae||we*.333,easing:de})].join(","),oe.style.opacity=0,oe.style.transform=j7(.75),S&&S(oe)}),le=X(T),Q=oe=>{M==="auto"&&z.start(L.current||0,oe),i&&i(V.current,oe)};return H.jsx(_,{appear:o,in:d,nodeRef:V,onEnter:ce,onEntered:ie,onEntering:se,onExit:$,onExited:le,onExiting:ue,addEndListener:Q,timeout:M==="auto"?null:M,...k,children:(oe,{ownerState:Z,...ae})=>G.cloneElement(s,{style:{opacity:0,transform:j7(.75),visibility:oe==="exited"&&!d?"hidden":void 0,...OZ[oe],...C,...s.props.style},ref:U,...ae})})});CZ.NODE_ENV!=="production"&&(sb.propTypes={addEndListener:p.func,appear:p.bool,children:pg.isRequired,easing:p.oneOfType([p.shape({enter:p.string,exit:p.string}),p.string]),in:p.bool,onEnter:p.func,onEntered:p.func,onEntering:p.func,onExit:p.func,onExited:p.func,onExiting:p.func,style:p.object,timeout:p.oneOfType([p.oneOf(["auto"]),p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})])}),sb&&(sb.muiSupportAuto=!0);var RZ={};const MZ=e=>{const{classes:t,disableUnderline:n}=e,o=en({root:["root",!n&&"underline"],input:["input"]},vQ,t);return{...t,...o}},_Z=it(p3,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...d3(e,t),!n.disableUnderline&&t.underline]}})(Gt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${tb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tb.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${tb.disabled}, .${tb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${tb.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($r()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),DZ=it(m3,{name:"MuiInput",slot:"Input",overridesResolver:h3})({}),E3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:y=!1,slotProps:b,slots:S={},type:T="text",...w}=i,C=MZ(i),_={root:{ownerState:{disableUnderline:o}}},k=b??c?Pa(b??c,_):_,z=S.root??s.Root??_Z,L=S.input??s.Input??DZ;return H.jsx(g3,{slots:{root:z,input:L},slotProps:k,fullWidth:d,inputComponent:h,multiline:y,ref:n,type:T,...w,classes:C})});RZ.NODE_ENV!=="production"&&(E3.propTypes={autoComplete:p.string,autoFocus:p.bool,classes:p.object,color:p.oneOfType([p.oneOf(["primary","secondary"]),p.string]),components:p.shape({Input:p.elementType,Root:p.elementType}),componentsProps:p.shape({input:p.object,root:p.object}),defaultValue:p.any,disabled:p.bool,disableUnderline:p.bool,endAdornment:p.node,error:p.bool,fullWidth:p.bool,id:p.string,inputComponent:p.elementType,inputProps:p.object,inputRef:ho,margin:p.oneOf(["dense","none"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onChange:p.func,placeholder:p.string,readOnly:p.bool,required:p.bool,rows:p.oneOfType([p.number,p.string]),slotProps:p.shape({input:p.object,root:p.object}),slots:p.shape({input:p.elementType,root:p.elementType}),startAdornment:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any}),E3.muiName="Input";function NZ(e){return Wt("MuiInputAdornment",e)}const p_=Qt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var m_={},g_;const kZ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},zZ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:s,variant:c}=e,d={root:["root",n&&"disablePointerEvents",o&&`position${Je(o)}`,c,i&&"hiddenLabel",s&&`size${Je(s)}`]};return en(d,NZ,t)},IZ=it("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kZ})(Gt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${p_.positionStart}&:not(.${p_.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),y_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:c="div",disablePointerEvents:d=!1,disableTypography:h=!1,position:y,variant:b,...S}=i,T=su()||{};let w=b;b&&T.variant&&m_.NODE_ENV!=="production"&&b===T.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),T&&!w&&(w=T.variant);const C={...i,hiddenLabel:T.hiddenLabel,size:T.size,disablePointerEvents:d,position:y,variant:w},M=zZ(C);return H.jsx(Jv.Provider,{value:null,children:H.jsx(IZ,{as:c,ownerState:C,className:St(M.root,s),ref:n,...S,children:typeof o=="string"&&!h?H.jsx(Hr,{color:"textSecondary",children:o}):H.jsxs(G.Fragment,{children:[y==="start"?g_||(g_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});m_.NODE_ENV!=="production"&&(y_.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,disablePointerEvents:p.bool,disableTypography:p.bool,position:p.oneOf(["end","start"]).isRequired,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOf(["filled","outlined","standard"])});function LZ(e){return Wt("MuiInputLabel",e)}Qt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var VZ={};const BZ=e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:s,variant:c,required:d}=e,h={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",i&&i!=="medium"&&`size${Je(i)}`,c],asterisk:[d&&"asterisk"]},y=en(h,LZ,t);return{...t,...y}},jZ=it(d_,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lb.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Gt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),v_=G.forwardRef(function(t,n){const i=ln({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:c,variant:d,className:h,...y}=i,b=su();let S=c;typeof S>"u"&&b&&(S=b.filled||b.focused||b.adornedStart);const T=zd({props:i,muiFormControl:b,states:["size","variant","required","focused"]}),w={...i,disableAnimation:o,formControl:b,shrink:S,size:T.size,variant:T.variant,required:T.required,focused:T.focused},C=BZ(w);return H.jsx(jZ,{"data-shrink":S,ref:n,className:St(C.root,h),...y,ownerState:w,classes:C})});VZ.NODE_ENV!=="production"&&(v_.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["error","info","primary","secondary","success","warning"]),p.string]),disableAnimation:p.bool,disabled:p.bool,error:p.bool,focused:p.bool,margin:p.oneOf(["dense"]),required:p.bool,shrink:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOf(["filled","outlined","standard"])});var PZ={};const uu=G.createContext({});PZ.NODE_ENV!=="production"&&(uu.displayName="ListContext");function UZ(e){return Wt("MuiList",e)}Qt("MuiList",["root","padding","dense","subheader"]);var $Z={};const HZ=e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return en({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},UZ,t)},qZ=it("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),w3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiList"}),{children:o,className:s,component:c="ul",dense:d=!1,disablePadding:h=!1,subheader:y,...b}=i,S=G.useMemo(()=>({dense:d}),[d]),T={...i,component:c,dense:d,disablePadding:h},w=HZ(T);return H.jsx(uu.Provider,{value:S,children:H.jsxs(qZ,{as:c,className:St(w.root,s),ref:n,ownerState:T,...b,children:[y,o]})})});$Z.NODE_ENV!=="production"&&(w3.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,dense:p.bool,disablePadding:p.bool,subheader:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function GZ(e){return Wt("MuiListItem",e)}Qt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function FZ(e){return Wt("MuiListItemButton",e)}const yg=Qt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);var b_={};const YZ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},XZ=e=>{const{alignItems:t,classes:n,dense:i,disabled:o,disableGutters:s,divider:c,selected:d}=e,y=en({root:["root",i&&"dense",!s&&"gutters",c&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",d&&"selected"]},FZ,n);return{...n,...y}},WZ=it(Nd,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:YZ})(Gt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${yg.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${yg.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${yg.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${yg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${yg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),x_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:c="div",children:d,dense:h=!1,disableGutters:y=!1,divider:b=!1,focusVisibleClassName:S,selected:T=!1,className:w,...C}=i,M=G.useContext(uu),_=G.useMemo(()=>({dense:h||M.dense||!1,alignItems:o,disableGutters:y}),[o,M.dense,h,y]),k=G.useRef(null);Yl(()=>{s&&(k.current?k.current.focus():b_.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[s]);const z={...i,alignItems:o,dense:_.dense,disableGutters:y,divider:b,selected:T},L=XZ(z),B=ri(k,n);return H.jsx(uu.Provider,{value:_,children:H.jsx(WZ,{ref:B,href:C.href||C.to,component:(C.href||C.to)&&c==="div"?"button":c,focusVisibleClassName:St(L.focusVisible,S),ownerState:z,className:St(L.root,w),...C,classes:L,children:d})})});b_.NODE_ENV!=="production"&&(x_.propTypes={alignItems:p.oneOf(["center","flex-start"]),autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,component:p.elementType,dense:p.bool,disabled:p.bool,disableGutters:p.bool,divider:p.bool,focusVisibleClassName:p.string,href:p.string,selected:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function QZ(e){return Wt("MuiListItemSecondaryAction",e)}Qt("MuiListItemSecondaryAction",["root","disableGutters"]);var KZ={};const ZZ=e=>{const{disableGutters:t,classes:n}=e;return en({root:["root",t&&"disableGutters"]},QZ,n)},JZ=it("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),U7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=i,c=G.useContext(uu),d={...i,disableGutters:c.disableGutters},h=ZZ(d);return H.jsx(JZ,{className:St(h.root,o),ownerState:d,ref:n,...s})});KZ.NODE_ENV!=="production"&&(U7.propTypes={children:p.node,classes:p.object,className:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),U7.muiName="ListItemSecondaryAction";var eJ={};const tJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},nJ=e=>{const{alignItems:t,classes:n,dense:i,disableGutters:o,disablePadding:s,divider:c,hasSecondaryAction:d}=e;return en({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",c&&"divider",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},GZ,n)},rJ=it("div",{name:"MuiListItem",slot:"Root",overridesResolver:tJ})(Gt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${yg.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),iJ=it("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),S_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:c,component:d,components:h={},componentsProps:y={},ContainerComponent:b="li",ContainerProps:{className:S,...T}={},dense:w=!1,disableGutters:C=!1,disablePadding:M=!1,divider:_=!1,secondaryAction:k,slotProps:z={},slots:L={},...B}=i,V=G.useContext(uu),U=G.useMemo(()=>({dense:w||V.dense||!1,alignItems:o,disableGutters:C}),[o,V.dense,w,C]),X=G.useRef(null),se=G.Children.toArray(s),ce=se.length&&Xm(se[se.length-1],["ListItemSecondaryAction"]),ie={...i,alignItems:o,dense:U.dense,disableGutters:C,disablePadding:M,divider:_,hasSecondaryAction:ce},ue=nJ(ie),$=ri(X,n),le={slots:L,slotProps:z},[Q,oe]=nn("secondaryAction",{elementType:U7,externalForwardedProps:le,ownerState:ie,className:ue.secondaryAction}),Z=L.root||h.Root||rJ,ae=z.root||y.root||{},de={className:St(ue.root,ae.className,c),...B};let we=d||"li";return ce?(we=!de.component&&!d?"div":we,b==="li"&&(we==="li"?we="div":de.component==="li"&&(de.component="div")),H.jsx(uu.Provider,{value:U,children:H.jsxs(iJ,{as:b,className:St(ue.container,S),ref:$,ownerState:ie,...T,children:[H.jsx(Z,{...ae,...!ec(Z)&&{as:we,ownerState:{...ie,...ae.ownerState}},...de,children:se}),se.pop()]})})):H.jsx(uu.Provider,{value:U,children:H.jsxs(Z,{...ae,as:we,ref:$,...!ec(Z)&&{ownerState:{...ie,...ae.ownerState}},...de,children:[se,k&&H.jsx(Q,{...oe,children:k})]})})});eJ.NODE_ENV!=="production"&&(S_.propTypes={alignItems:p.oneOf(["center","flex-start"]),children:ou(p.node,e=>{const t=G.Children.toArray(e.children);let n=-1;for(let i=t.length-1;i>=0;i-=1){const o=t[i];if(Xm(o,["ListItemSecondaryAction"])){n=i;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:p.object,className:p.string,component:p.elementType,components:p.shape({Root:p.elementType}),componentsProps:p.shape({root:p.object}),ContainerComponent:e3,ContainerProps:p.object,dense:p.bool,disableGutters:p.bool,disablePadding:p.bool,divider:p.bool,secondaryAction:p.node,slotProps:p.shape({root:p.object,secondaryAction:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType,secondaryAction:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});const E_=Qt("MuiListItemIcon",["root","alignItemsFlexStart"]);function aJ(e){return Wt("MuiListItemText",e)}const vg=Qt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var oJ={};const lJ=e=>{const{classes:t,inset:n,primary:i,secondary:o,dense:s}=e;return en({root:["root",n&&"inset",s&&"dense",i&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},aJ,t)},sJ=it("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vg.primary}`]:t.primary},{[`& .${vg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${xM.root}:where(& .${vg.primary}), .${xM.root}:where(& .${vg.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),$7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:c=!1,inset:d=!1,primary:h,primaryTypographyProps:y,secondary:b,secondaryTypographyProps:S,slots:T={},slotProps:w={},...C}=i,{dense:M}=G.useContext(uu);let _=h??o,k=b;const z={...i,disableTypography:c,inset:d,primary:!!_,secondary:!!k,dense:M},L=lJ(z),B={slots:T,slotProps:{primary:y,secondary:S,...w}},[V,U]=nn("root",{className:St(L.root,s),elementType:sJ,externalForwardedProps:{...B,...C},ownerState:z,ref:n}),[X,se]=nn("primary",{className:L.primary,elementType:Hr,externalForwardedProps:B,ownerState:z}),[ce,ie]=nn("secondary",{className:L.secondary,elementType:Hr,externalForwardedProps:B,ownerState:z});return _!=null&&_.type!==Hr&&!c&&(_=H.jsx(X,{variant:M?"body2":"body1",component:se!=null&&se.variant?void 0:"span",...se,children:_})),k!=null&&k.type!==Hr&&!c&&(k=H.jsx(ce,{variant:"body2",color:"textSecondary",...ie,children:k})),H.jsxs(V,{...U,children:[_,k]})});oJ.NODE_ENV!=="production"&&($7.propTypes={children:p.node,classes:p.object,className:p.string,disableTypography:p.bool,inset:p.bool,primary:p.node,primaryTypographyProps:p.object,secondary:p.node,secondaryTypographyProps:p.object,slotProps:p.shape({primary:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),secondary:p.oneOfType([p.func,p.object])}),slots:p.shape({primary:p.elementType,root:p.elementType,secondary:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});var w_={};function H7(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function T_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function A_(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ub(e,t,n,i,o,s){let c=!1,d=o(e,t,t?n:!1);for(;d;){if(d===e.firstChild){if(c)return!1;c=!0}const h=i?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!A_(d,s)||h)d=o(e,d,n);else return d.focus(),!0}return!1}const C_=G.forwardRef(function(t,n){const{actions:i,autoFocus:o=!1,autoFocusItem:s=!1,children:c,className:d,disabledItemsFocusable:h=!1,disableListWrap:y=!1,onKeyDown:b,variant:S="selectedMenu",...T}=t,w=G.useRef(null),C=G.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yl(()=>{o&&w.current.focus()},[o]),G.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(L,{direction:B})=>{const V=!w.current.style.width;if(L.clientHeight<w.current.clientHeight&&V){const U=`${n_(nf(L))}px`;w.current.style[B==="rtl"?"paddingLeft":"paddingRight"]=U,w.current.style.width=`calc(100% + ${U})`}return w.current}}),[]);const M=L=>{const B=w.current,V=L.key;if(L.ctrlKey||L.metaKey||L.altKey){b&&b(L);return}const X=rb(wa(B));if(V==="ArrowDown")L.preventDefault(),ub(B,X,y,h,H7);else if(V==="ArrowUp")L.preventDefault(),ub(B,X,y,h,T_);else if(V==="Home")L.preventDefault(),ub(B,null,y,h,H7);else if(V==="End")L.preventDefault(),ub(B,null,y,h,T_);else if(V.length===1){const se=C.current,ce=V.toLowerCase(),ie=performance.now();se.keys.length>0&&(ie-se.lastTime>500?(se.keys=[],se.repeating=!0,se.previousKeyMatched=!0):se.repeating&&ce!==se.keys[0]&&(se.repeating=!1)),se.lastTime=ie,se.keys.push(ce);const ue=X&&!se.repeating&&A_(X,se);se.previousKeyMatched&&(ue||ub(B,X,!1,h,H7,se))?L.preventDefault():se.previousKeyMatched=!1}b&&b(L)},_=ri(w,n);let k=-1;G.Children.forEach(c,(L,B)=>{if(!G.isValidElement(L)){k===B&&(k+=1,k>=c.length&&(k=-1));return}w_.NODE_ENV!=="production"&&fh.isFragment(L)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),L.props.disabled||(S==="selectedMenu"&&L.props.selected||k===-1)&&(k=B),k===B&&(L.props.disabled||L.props.muiSkipListHighlight||L.type.muiSkipListHighlight)&&(k+=1,k>=c.length&&(k=-1))});const z=G.Children.map(c,(L,B)=>{if(B===k){const V={};return s&&(V.autoFocus=!0),L.props.tabIndex===void 0&&S==="selectedMenu"&&(V.tabIndex=0),G.cloneElement(L,V)}return L});return H.jsx(w3,{role:"menu",ref:_,className:d,onKeyDown:M,tabIndex:o?0:-1,...T,children:z})});w_.NODE_ENV!=="production"&&(C_.propTypes={autoFocus:p.bool,autoFocusItem:p.bool,children:p.node,className:p.string,disabledItemsFocusable:p.bool,disableListWrap:p.bool,onKeyDown:p.func,variant:p.oneOf(["menu","selectedMenu"])});function uJ(e){return Wt("MuiPopover",e)}Qt("MuiPopover",["root","paper"]);var cb={};function O_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function R_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function M_(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function fb(e){return typeof e=="function"?e():e}const cJ=e=>{const{classes:t}=e;return en({root:["root"],paper:["paper"]},uJ,t)},fJ=it(z7,{name:"MuiPopover",slot:"Root"})({}),__=it(Hv,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),D_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:y,className:b,container:S,elevation:T=8,marginThreshold:w=16,open:C,PaperProps:M={},slots:_={},slotProps:k={},transformOrigin:z={vertical:"top",horizontal:"left"},TransitionComponent:L,transitionDuration:B="auto",TransitionProps:V={},disableScrollLock:U=!1,...X}=i,se=G.useRef(),ce={...i,anchorOrigin:c,anchorReference:h,elevation:T,marginThreshold:w,transformOrigin:z,TransitionComponent:L,transitionDuration:B,TransitionProps:V},ie=cJ(ce),ue=G.useCallback(()=>{if(h==="anchorPosition")return cb.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),d;const Qe=fb(s),et=Qe&&Qe.nodeType===1?Qe:wa(se.current).body,Be=et.getBoundingClientRect();if(cb.NODE_ENV!=="production"){const Me=et.getBoundingClientRect();l3()&&Me.top===0&&Me.left===0&&Me.right===0&&Me.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}return{top:Be.top+O_(Be,c.vertical),left:Be.left+R_(Be,c.horizontal)}},[s,c.horizontal,c.vertical,d,h]),$=G.useCallback(Qe=>({vertical:O_(Qe,z.vertical),horizontal:R_(Qe,z.horizontal)}),[z.horizontal,z.vertical]),le=G.useCallback(Qe=>{const et={width:Qe.offsetWidth,height:Qe.offsetHeight},Be=$(et);if(h==="none")return{top:null,left:null,transformOrigin:M_(Be)};const Me=ue();let st=Me.top-Be.vertical,Ot=Me.left-Be.horizontal;const Kt=st+et.height,xt=Ot+et.width,Ut=nf(fb(s)),dn=Ut.innerHeight-w,mn=Ut.innerWidth-w;if(w!==null&&st<w){const at=st-w;st-=at,Be.vertical+=at}else if(w!==null&&Kt>dn){const at=Kt-dn;st-=at,Be.vertical+=at}if(cb.NODE_ENV!=="production"&&et.height>dn&&et.height&&dn&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${et.height-dn}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
`)),w!==null&&Ot<w){const at=Ot-w;Ot-=at,Be.horizontal+=at}else if(xt>mn){const at=xt-mn;Ot-=at,Be.horizontal+=at}return{top:`${Math.round(st)}px`,left:`${Math.round(Ot)}px`,transformOrigin:M_(Be)}},[s,h,ue,$,w]),[Q,oe]=G.useState(C),Z=G.useCallback(()=>{const Qe=se.current;if(!Qe)return;const et=le(Qe);et.top!==null&&Qe.style.setProperty("top",et.top),et.left!==null&&(Qe.style.left=et.left),Qe.style.transformOrigin=et.transformOrigin,oe(!0)},[le]);G.useEffect(()=>(U&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[s,U,Z]);const ae=()=>{Z()},de=()=>{oe(!1)};G.useEffect(()=>{C&&Z()}),G.useImperativeHandle(o,()=>C?{updatePosition:()=>{Z()}}:null,[C,Z]),G.useEffect(()=>{if(!C)return;const Qe=FR(()=>{Z()}),et=nf(fb(s));return et.addEventListener("resize",Qe),()=>{Qe.clear(),et.removeEventListener("resize",Qe)}},[s,C,Z]);let we=B;const te={slots:{transition:L,..._},slotProps:{transition:V,paper:M,...k}},[F,ee]=nn("transition",{elementType:sb,externalForwardedProps:te,ownerState:ce,getSlotProps:Qe=>({...Qe,onEntering:(et,Be)=>{var Me;(Me=Qe.onEntering)==null||Me.call(Qe,et,Be),ae()},onExited:et=>{var Be;(Be=Qe.onExited)==null||Be.call(Qe,et),de()}}),additionalProps:{appear:!0,in:C}});B==="auto"&&!F.muiSupportAuto&&(we=void 0);const Y=S||(s?wa(fb(s)).body:void 0),[Re,{slots:Se,slotProps:_e,...je}]=nn("root",{ref:n,elementType:fJ,externalForwardedProps:{...te,...X},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:_.backdrop},slotProps:{backdrop:XR(typeof k.backdrop=="function"?k.backdrop(ce):k.backdrop,{invisible:!0})},container:Y,open:C},ownerState:ce,className:St(ie.root,b)}),[He,Xe]=nn("paper",{ref:se,className:ie.paper,elementType:__,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:T,style:Q?void 0:{opacity:0}},ownerState:ce});return H.jsx(Re,{...je,...!ec(Re)&&{slots:Se,slotProps:_e,disableScrollLock:U},children:H.jsx(F,{...ee,timeout:we,children:H.jsx(He,{...Xe,children:y})})})});cb.NODE_ENV!=="production"&&(D_.propTypes={action:ho,anchorEl:ou(p.oneOfType([af,p.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=fb(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(cb.NODE_ENV!=="production"&&l3()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
`))}return null}),anchorOrigin:p.shape({horizontal:p.oneOfType([p.oneOf(["center","left","right"]),p.number]).isRequired,vertical:p.oneOfType([p.oneOf(["bottom","center","top"]),p.number]).isRequired}),anchorPosition:p.shape({left:p.number.isRequired,top:p.number.isRequired}),anchorReference:p.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:p.elementType,BackdropProps:p.object,children:p.node,classes:p.object,className:p.string,container:p.oneOfType([af,p.func]),disableScrollLock:p.bool,elevation:dM,marginThreshold:p.number,onClose:p.func,open:p.bool.isRequired,PaperProps:p.shape({component:e3}),slotProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),paper:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({backdrop:p.elementType,paper:p.elementType,root:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),transformOrigin:p.shape({horizontal:p.oneOfType([p.oneOf(["center","left","right"]),p.number]).isRequired,vertical:p.oneOfType([p.oneOf(["bottom","center","top"]),p.number]).isRequired}),TransitionComponent:p.elementType,transitionDuration:p.oneOfType([p.oneOf(["auto"]),p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})]),TransitionProps:p.object});function dJ(e){return Wt("MuiMenu",e)}Qt("MuiMenu",["root","paper","list"]);var N_={};const hJ={vertical:"top",horizontal:"right"},pJ={vertical:"top",horizontal:"left"},mJ=e=>{const{classes:t}=e;return en({root:["root"],paper:["paper"],list:["list"]},dJ,t)},gJ=it(D_,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),yJ=it(__,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vJ=it(C_,{name:"MuiMenu",slot:"List"})({outline:0}),k_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:c,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:y,open:b,PaperProps:S={},PopoverClasses:T,transitionDuration:w="auto",TransitionProps:{onEntering:C,...M}={},variant:_="selectedMenu",slots:k={},slotProps:z={},...L}=i,B=GS(),V={...i,autoFocus:o,disableAutoFocusItem:d,MenuListProps:h,onEntering:C,PaperProps:S,transitionDuration:w,TransitionProps:M,variant:_},U=mJ(V),X=o&&!d&&b,se=G.useRef(null),ce=(we,te)=>{se.current&&se.current.adjustStyleForScrollbar(we,{direction:B?"rtl":"ltr"}),C&&C(we,te)},ie=we=>{we.key==="Tab"&&(we.preventDefault(),y&&y(we,"tabKeyDown"))};let ue=-1;G.Children.map(s,(we,te)=>{G.isValidElement(we)&&(N_.NODE_ENV!=="production"&&fh.isFragment(we)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),we.props.disabled||(_==="selectedMenu"&&we.props.selected||ue===-1)&&(ue=te))});const $={slots:k,slotProps:{list:h,transition:M,paper:S,...z}},le=rc({elementType:k.root,externalSlotProps:z.root,ownerState:V,className:[U.root,c]}),[Q,oe]=nn("paper",{className:U.paper,elementType:yJ,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:V}),[Z,ae]=nn("list",{className:St(U.list,h.className),elementType:vJ,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:we=>({...we,onKeyDown:te=>{var F;ie(te),(F=we.onKeyDown)==null||F.call(we,te)}}),ownerState:V}),de=typeof $.slotProps.transition=="function"?$.slotProps.transition(V):$.slotProps.transition;return H.jsx(gJ,{onClose:y,anchorOrigin:{vertical:"bottom",horizontal:B?"right":"left"},transformOrigin:B?hJ:pJ,slots:{root:k.root,paper:Q,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:le,paper:oe,backdrop:typeof z.backdrop=="function"?z.backdrop(V):z.backdrop,transition:{...de,onEntering:(...we)=>{var te;ce(...we),(te=de==null?void 0:de.onEntering)==null||te.call(de,...we)}}},open:b,ref:n,transitionDuration:w,ownerState:V,...L,classes:T,children:H.jsx(Z,{actions:se,autoFocus:o&&(ue===-1||d),autoFocusItem:X,variant:_,...ae,children:s})})});N_.NODE_ENV!=="production"&&(k_.propTypes={anchorEl:p.oneOfType([af,p.func]),autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,disableAutoFocusItem:p.bool,MenuListProps:p.object,onClose:p.func,open:p.bool.isRequired,PaperProps:p.object,PopoverClasses:p.object,slotProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),list:p.oneOfType([p.func,p.object]),paper:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({backdrop:p.elementType,list:p.elementType,paper:p.elementType,root:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),transitionDuration:p.oneOfType([p.oneOf(["auto"]),p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})]),TransitionProps:p.object,variant:p.oneOf(["menu","selectedMenu"])});function bJ(e){return Wt("MuiMenuItem",e)}const db=Qt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var z_={};const xJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},SJ=e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:s,classes:c}=e,h=en({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",s&&"selected"]},bJ,c);return{...c,...h}},EJ=it(Nd,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:xJ})(Gt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${db.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${db.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${db.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${db.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${db.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${o_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${o_.inset}`]:{marginLeft:52},[`& .${vg.root}`]:{marginTop:0,marginBottom:0},[`& .${vg.inset}`]:{paddingLeft:36},[`& .${E_.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${E_.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ah=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:c=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:y,role:b="menuitem",tabIndex:S,className:T,...w}=i,C=G.useContext(uu),M=G.useMemo(()=>({dense:c||C.dense||!1,disableGutters:h}),[C.dense,c,h]),_=G.useRef(null);Yl(()=>{o&&(_.current?_.current.focus():z_.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const k={...i,dense:M.dense,divider:d,disableGutters:h},z=SJ(i),L=ri(_,n);let B;return i.disabled||(B=S!==void 0?S:-1),H.jsx(uu.Provider,{value:M,children:H.jsx(EJ,{ref:L,role:b,tabIndex:B,component:s,focusVisibleClassName:St(z.focusVisible,y),className:St(z.root,T),...w,ownerState:k,classes:z})})});z_.NODE_ENV!=="production"&&(Ah.propTypes={autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,component:p.elementType,dense:p.bool,disabled:p.bool,disableGutters:p.bool,divider:p.bool,focusVisibleClassName:p.string,role:p.string,selected:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number});function wJ(e){return Wt("MuiNativeSelect",e)}const q7=Qt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var TJ={};const AJ=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:c}=e,d={select:["select",n,i&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${Je(n)}`,s&&"iconOpen",i&&"disabled"]};return en(d,wJ,t)},I_=it("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${q7.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),CJ=it(I_,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ea,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${q7.multiple}`]:t.multiple}]}})({}),L_=it("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${q7.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),OJ=it(L_,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Je(n.variant)}`],n.open&&t.iconOpen]}})({}),V_=G.forwardRef(function(t,n){const{className:i,disabled:o,error:s,IconComponent:c,inputRef:d,variant:h="standard",...y}=t,b={...t,disabled:o,variant:h,error:s},S=AJ(b);return H.jsxs(G.Fragment,{children:[H.jsx(CJ,{ownerState:b,className:St(S.select,i),disabled:o,ref:d||n,...y}),t.multiple?null:H.jsx(OJ,{as:c,ownerState:b,className:S.icon})]})});TJ.NODE_ENV!=="production"&&(V_.propTypes={children:p.node,classes:p.object,className:p.string,disabled:p.bool,error:p.bool,IconComponent:p.elementType.isRequired,inputRef:ho,multiple:p.bool,name:p.string,onChange:p.func,value:p.any,variant:p.oneOf(["standard","outlined","filled"])});var RJ={},B_;const MJ=it("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ea})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),_J=it("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ea})(Gt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function j_(e){const{children:t,classes:n,className:i,label:o,notched:s,...c}=e,d=o!=null&&o!=="",h={...e,notched:s,withLabel:d};return H.jsx(MJ,{"aria-hidden":!0,className:i,ownerState:h,...c,children:H.jsx(_J,{ownerState:h,children:d?H.jsx("span",{children:o}):B_||(B_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}RJ.NODE_ENV!=="production"&&(j_.propTypes={children:p.node,classes:p.object,className:p.string,label:p.node,notched:p.bool.isRequired,style:p.object});var DJ={};const NJ=e=>{const{classes:t}=e,i=en({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bQ,t);return{...t,...i}},kJ=it(p3,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:d3})(Gt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ic.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ic.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ic.focused} .${ic.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($r()).map(([n])=>({props:{color:n},style:{[`&.${ic.focused} .${ic.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ic.error} .${ic.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ic.disabled} .${ic.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),zJ=it(j_,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Gt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),IJ=it(m3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:h3})(Gt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),T3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:c="input",label:d,multiline:h=!1,notched:y,slots:b={},slotProps:S={},type:T="text",...w}=i,C=NJ(i),M=su(),_=zd({props:i,muiFormControl:M,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...i,color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:M,fullWidth:s,hiddenLabel:_.hiddenLabel,multiline:h,size:_.size,type:T},z=b.root??o.Root??kJ,L=b.input??o.Input??IJ,[B,V]=nn("notchedOutline",{elementType:zJ,className:C.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:b,slotProps:S},additionalProps:{label:d!=null&&d!==""&&_.required?H.jsxs(G.Fragment,{children:[d," ","*"]}):d}});return H.jsx(g3,{slots:{root:z,input:L},slotProps:S,renderSuffix:U=>H.jsx(B,{...V,notched:typeof y<"u"?y:!!(U.startAdornment||U.filled||U.focused)}),fullWidth:s,inputComponent:c,multiline:h,ref:n,type:T,...w,classes:{...C,notchedOutline:null}})});DJ.NODE_ENV!=="production"&&(T3.propTypes={autoComplete:p.string,autoFocus:p.bool,classes:p.object,color:p.oneOfType([p.oneOf(["primary","secondary"]),p.string]),components:p.shape({Input:p.elementType,Root:p.elementType}),defaultValue:p.any,disabled:p.bool,endAdornment:p.node,error:p.bool,fullWidth:p.bool,id:p.string,inputComponent:p.elementType,inputProps:p.object,inputRef:ho,label:p.node,margin:p.oneOf(["dense","none"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,notched:p.bool,onChange:p.func,placeholder:p.string,readOnly:p.bool,required:p.bool,rows:p.oneOfType([p.number,p.string]),slotProps:p.shape({input:p.object,notchedOutline:p.oneOfType([p.func,p.object]),root:p.object}),slots:p.shape({input:p.elementType,notchedOutline:p.elementType,root:p.elementType}),startAdornment:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any}),T3.muiName="Input";const LJ=Mi(H.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),VJ=Mi(H.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var BJ={};const jJ=it("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ea})({position:"relative",display:"flex"}),PJ=it(LJ,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),UJ=it(VJ,{name:"MuiRadioButtonIcon"})(Gt(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function G7(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o={...e,checked:t};return H.jsxs(jJ,{className:n.root,ownerState:o,children:[H.jsx(PJ,{fontSize:i,className:n.background,ownerState:o}),H.jsx(UJ,{fontSize:i,className:n.dot,ownerState:o})]})}BJ.NODE_ENV!=="production"&&(G7.propTypes={checked:p.bool,classes:p.object,fontSize:p.oneOf(["small","medium"])});var $J={};const F7=G.createContext(void 0);$J.NODE_ENV!=="production"&&(F7.displayName="RadioGroupContext");function HJ(){return G.useContext(F7)}function qJ(e){return Wt("MuiRadio",e)}const P_=Qt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);var GJ={};const FJ=e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${Je(n)}`,i!=="medium"&&`size${Je(i)}`]};return{...t,...en(o,qJ,t)}},YJ=it(v3,{shouldForwardProp:e=>Ea(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${Je(n.size)}`],t[`color${Je(n.color)}`]]}})(Gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${P_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${P_.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function XJ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const WJ=H.jsx(G7,{checked:!0}),QJ=H.jsx(G7,{}),bg=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:s=WJ,color:c="primary",icon:d=QJ,name:h,onChange:y,size:b="medium",className:S,disabled:T,disableRipple:w=!1,slots:C={},slotProps:M={},inputProps:_,...k}=i,z=su();let L=T;z&&typeof L>"u"&&(L=z.disabled),L??(L=!1);const B={...i,disabled:L,disableRipple:w,color:c,size:b},V=FJ(B),U=HJ();let X=o;const se=C2(y,U&&U.onChange);let ce=h;U&&(typeof X>"u"&&(X=XJ(U.value,i.value)),typeof ce>"u"&&(ce=U.name));const ie=M.input??_,[ue,$]=nn("root",{ref:n,elementType:YJ,className:St(V.root,S),shouldForwardComponentProp:!0,externalForwardedProps:{slots:C,slotProps:M,...k},getSlotProps:le=>({...le,onChange:(Q,...oe)=>{var Z;(Z=le.onChange)==null||Z.call(le,Q,...oe),se(Q,...oe)}}),ownerState:B,additionalProps:{type:"radio",icon:G.cloneElement(d,{fontSize:d.props.fontSize??b}),checkedIcon:G.cloneElement(s,{fontSize:s.props.fontSize??b}),disabled:L,name:ce,checked:X,slots:C,slotProps:{input:typeof ie=="function"?ie(B):ie}}});return H.jsx(ue,{...$,classes:V})});GJ.NODE_ENV!=="production"&&(bg.propTypes={checked:p.bool,checkedIcon:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),disabled:p.bool,disableRipple:p.bool,icon:p.node,id:p.string,inputProps:p.object,inputRef:ho,name:p.string,onChange:p.func,required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function KJ(e){return Wt("MuiRadioGroup",e)}Qt("MuiRadioGroup",["root","row","error"]);var ZJ={};const JJ=e=>{const{classes:t,row:n,error:i}=e;return en({root:["root",n&&"row",i&&"error"]},KJ,t)},Y7=G.forwardRef(function(t,n){const{actions:i,children:o,className:s,defaultValue:c,name:d,onChange:h,value:y,...b}=t,S=G.useRef(null),T=JJ(t),[w,C]=ng({controlled:y,default:c,name:"RadioGroup"});G.useImperativeHandle(i,()=>({focus:()=>{let z=S.current.querySelector("input:not(:disabled):checked");z||(z=S.current.querySelector("input:not(:disabled)")),z&&z.focus()}}),[]);const M=ri(n,S),_=mh(d),k=G.useMemo(()=>({name:_,onChange(z){C(z.target.value),h&&h(z,z.target.value)},value:w}),[_,h,C,w]);return H.jsx(F7.Provider,{value:k,children:H.jsx(s_,{role:"radiogroup",ref:M,className:St(T.root,s),...b,children:o})})});ZJ.NODE_ENV!=="production"&&(Y7.propTypes={children:p.node,className:p.string,defaultValue:p.any,name:p.string,onChange:p.func,value:p.any});const eee={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function U_(e){return Wt("MuiSelect",e)}const hb=Qt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var A3={},$_;const tee=it(I_,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${hb.select}`]:t.select},{[`&.${hb.select}`]:t[n.variant]},{[`&.${hb.error}`]:t.error},{[`&.${hb.multiple}`]:t.multiple}]}})({[`&.${hb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),nee=it(L_,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Je(n.variant)}`],n.open&&t.iconOpen]}})({}),ree=it("input",{shouldForwardProp:e=>QS(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function H_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function iee(e){return e==null||typeof e=="string"&&!e.trim()}const aee=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:c}=e,d={select:["select",n,i&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${Je(n)}`,s&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return en(d,U_,t)},q_=G.forwardRef(function(t,n){var cr,J,Oe,tt;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:c,children:d,className:h,defaultOpen:y,defaultValue:b,disabled:S,displayEmpty:T,error:w=!1,IconComponent:C,inputRef:M,labelId:_,MenuProps:k={},multiple:z,name:L,onBlur:B,onChange:V,onClose:U,onFocus:X,onKeyDown:se,onMouseDown:ce,onOpen:ie,open:ue,readOnly:$,renderValue:le,required:Q,SelectDisplayProps:oe={},tabIndex:Z,type:ae,value:de,variant:we="standard",...te}=t,[F,ee]=ng({controlled:de,default:b,name:"Select"}),[Y,Re]=ng({controlled:ue,default:y,name:"Select"}),Se=G.useRef(null),_e=G.useRef(null),[je,He]=G.useState(null),{current:Xe}=G.useRef(ue!=null),[Qe,et]=G.useState(),Be=ri(n,M),Me=G.useCallback(Ne=>{_e.current=Ne,Ne&&He(Ne)},[]),st=je==null?void 0:je.parentNode;G.useImperativeHandle(Be,()=>({focus:()=>{_e.current.focus()},node:Se.current,value:F}),[F]);const Ot=je!==null&&Y;G.useEffect(()=>{if(!Ot||!st||c||typeof ResizeObserver>"u")return;const Ne=new ResizeObserver(()=>{et(st.clientWidth)});return Ne.observe(st),()=>{Ne.disconnect()}},[Ot,st,c]),G.useEffect(()=>{y&&Y&&je&&!Xe&&(et(c?null:st.clientWidth),_e.current.focus())},[je,c]),G.useEffect(()=>{s&&_e.current.focus()},[s]),G.useEffect(()=>{if(!_)return;const Ne=wa(_e.current).getElementById(_);if(Ne){const We=()=>{getSelection().isCollapsed&&_e.current.focus()};return Ne.addEventListener("click",We),()=>{Ne.removeEventListener("click",We)}}},[_]);const Kt=(Ne,We)=>{Ne?ie&&ie(We):U&&U(We),Xe||(et(c?null:st.clientWidth),Re(Ne))},xt=Ne=>{ce==null||ce(Ne),Ne.button===0&&(Ne.preventDefault(),_e.current.focus(),Kt(!0,Ne))},Ut=Ne=>{Kt(!1,Ne)},dn=G.Children.toArray(d),mn=Ne=>{const We=dn.find(wt=>wt.props.value===Ne.target.value);We!==void 0&&(ee(We.props.value),V&&V(Ne,We))},at=Ne=>We=>{let wt;if(We.currentTarget.hasAttribute("tabindex")){if(z){wt=Array.isArray(F)?F.slice():[];const vt=F.indexOf(Ne.props.value);vt===-1?wt.push(Ne.props.value):wt.splice(vt,1)}else wt=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(We),F!==wt&&(ee(wt),V)){const vt=We.nativeEvent||We,Yt=new vt.constructor(vt.type,vt);Object.defineProperty(Yt,"target",{writable:!0,value:{value:wt,name:L}}),V(Yt,Ne)}z||Kt(!1,We)}},At=Ne=>{$||([" ","ArrowUp","ArrowDown","Enter"].includes(Ne.key)&&(Ne.preventDefault(),Kt(!0,Ne)),se==null||se(Ne))},Mn=Ne=>{!Ot&&B&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:F,name:L}}),B(Ne))};delete te["aria-invalid"];let Bt,Ze;const be=[];let Ve=!1,nt=!1;(f3({value:F})||T)&&(le?Bt=le(F):Ve=!0);const pt=dn.map(Ne=>{if(!G.isValidElement(Ne))return null;A3.NODE_ENV!=="production"&&fh.isFragment(Ne)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`));let We;if(z){if(!Array.isArray(F))throw new Error(A3.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Zc(2));We=F.some(wt=>H_(wt,Ne.props.value)),We&&Ve&&be.push(Ne.props.children)}else We=H_(F,Ne.props.value),We&&Ve&&(Ze=Ne.props.children);return We&&(nt=!0),G.cloneElement(Ne,{"aria-selected":We?"true":"false",onClick:at(Ne),onKeyUp:wt=>{wt.key===" "&&wt.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(wt)},role:"option",selected:We,value:void 0,"data-value":Ne.props.value})});A3.NODE_ENV!=="production"&&G.useEffect(()=>{if(!nt&&!z&&F!==""){const Ne=dn.map(We=>We.props.value);console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${L?`(name="${L}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ne.filter(We=>We!=null).map(We=>`\`${We}\``).join(", ")||'""'}.`].join(`
`))}},[nt,dn,z,L,F]),Ve&&(z?be.length===0?Bt=null:Bt=be.reduce((Ne,We,wt)=>(Ne.push(We),wt<be.length-1&&Ne.push(", "),Ne),[]):Bt=Ze);let ut=Qe;!c&&Xe&&je&&(ut=st.clientWidth);let yt;typeof Z<"u"?yt=Z:yt=S?null:0;const gn=oe.id||(L?`mui-component-select-${L}`:void 0),Nt={...t,variant:we,value:F,open:Ot,error:w},jt=aee(Nt),Fn={...k.PaperProps,...typeof((cr=k.slotProps)==null?void 0:cr.paper)=="function"?k.slotProps.paper(Nt):(J=k.slotProps)==null?void 0:J.paper},bn={...k.MenuListProps,...typeof((Oe=k.slotProps)==null?void 0:Oe.list)=="function"?k.slotProps.list(Nt):(tt=k.slotProps)==null?void 0:tt.list},Fr=mh();return H.jsxs(G.Fragment,{children:[H.jsx(tee,{as:"div",ref:Me,tabIndex:yt,role:"combobox","aria-controls":Ot?Fr:void 0,"aria-disabled":S?"true":void 0,"aria-expanded":Ot?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[_,gn].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":Q?"true":void 0,"aria-invalid":w?"true":void 0,onKeyDown:At,onMouseDown:S||$?null:xt,onBlur:Mn,onFocus:X,...oe,ownerState:Nt,className:St(oe.className,jt.select,h),id:gn,children:iee(Bt)?$_||($_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Bt}),H.jsx(ree,{"aria-invalid":w,value:Array.isArray(F)?F.join(","):F,name:L,ref:Se,"aria-hidden":!0,onChange:mn,tabIndex:-1,disabled:S,className:jt.nativeInput,autoFocus:s,required:Q,...te,ownerState:Nt}),H.jsx(nee,{as:C,className:jt.icon,ownerState:Nt}),H.jsx(k_,{id:`menu-${L||""}`,anchorEl:st,open:Ot,onClose:Ut,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...k,slotProps:{...k.slotProps,list:{"aria-labelledby":_,role:"listbox","aria-multiselectable":z?"true":void 0,disableListWrap:!0,id:Fr,...bn},paper:{...Fn,style:{minWidth:ut,...Fn!=null?Fn.style:null}}},children:pt})]})});A3.NODE_ENV!=="production"&&(q_.propTypes={"aria-describedby":p.string,"aria-label":p.string,autoFocus:p.bool,autoWidth:p.bool,children:p.node,classes:p.object,className:p.string,defaultOpen:p.bool,defaultValue:p.any,disabled:p.bool,displayEmpty:p.bool,error:p.bool,IconComponent:p.elementType.isRequired,inputRef:ho,labelId:p.string,MenuProps:p.object,multiple:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onClose:p.func,onFocus:p.func,onOpen:p.func,open:p.bool,readOnly:p.bool,renderValue:p.func,required:p.bool,SelectDisplayProps:p.object,tabIndex:p.oneOfType([p.number,p.string]),type:p.any,value:p.any,variant:p.oneOf(["standard","outlined","filled"])});var oee={};const lee=e=>{const{classes:t}=e,i=en({root:["root"]},U_,t);return{...t,...i}},X7={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ea(e)&&e!=="variant"},see=it(E3,X7)(""),uee=it(T3,X7)(""),cee=it(S3,X7)(""),xg=G.forwardRef(function(t,n){const i=ln({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:c={},className:d,defaultOpen:h=!1,displayEmpty:y=!1,IconComponent:b=SQ,id:S,input:T,inputProps:w,label:C,labelId:M,MenuProps:_,multiple:k=!1,native:z=!1,onClose:L,onOpen:B,open:V,renderValue:U,SelectDisplayProps:X,variant:se="outlined",...ce}=i,ie=z?V_:q_,ue=su(),$=zd({props:i,muiFormControl:ue,states:["variant","error"]}),le=$.variant||se,Q={...i,variant:le,classes:c},oe=lee(Q),{root:Z,...ae}=oe,de=T||{standard:H.jsx(see,{ownerState:Q}),outlined:H.jsx(uee,{label:C,ownerState:Q}),filled:H.jsx(cee,{ownerState:Q})}[le],we=ri(n,dg(de));return H.jsx(G.Fragment,{children:G.cloneElement(de,{inputComponent:ie,inputProps:{children:s,error:$.error,IconComponent:b,variant:le,type:void 0,multiple:k,...z?{id:S}:{autoWidth:o,defaultOpen:h,displayEmpty:y,labelId:M,MenuProps:_,onClose:L,onOpen:B,open:V,renderValue:U,SelectDisplayProps:{id:S,...X}},...w,classes:w?Pa(ae,w.classes):ae,...T?T.props.inputProps:{}},...(k&&z||y)&&le==="outlined"?{notched:!0}:{},ref:we,className:St(de.props.className,d,oe.root),...!T&&{variant:le},...ce})})});oee.NODE_ENV!=="production"&&(xg.propTypes={autoWidth:p.bool,children:p.node,classes:p.object,className:p.string,defaultOpen:p.bool,defaultValue:p.any,displayEmpty:p.bool,IconComponent:p.elementType,id:p.string,input:p.element,inputProps:p.object,label:p.node,labelId:p.string,MenuProps:p.object,multiple:p.bool,native:p.bool,onChange:p.func,onClose:p.func,onOpen:p.func,open:p.bool,renderValue:p.func,SelectDisplayProps:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.oneOfType([p.oneOf([""]),p.any]),variant:p.oneOf(["filled","outlined","standard"])}),xg.muiName="Select";function fee(e,t,n=(i,o)=>i===o){return e.length===t.length&&e.every((i,o)=>n(i,t[o]))}const dee=2;function Sg(e,t,n,i,o){return n===1?Math.min(e+t,o):Math.max(e-t,i)}function G_(e,t){return e-t}function F_(e,t){const{index:n}=e.reduce((i,o,s)=>{const c=Math.abs(t-o);return i===null||c<i.distance||c===i.distance?{distance:c,index:s}:i},null)??{};return n}function C3(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let i=0;i<n.changedTouches.length;i+=1){const o=n.changedTouches[i];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function O3(e,t,n){return(e-t)*100/(n-t)}function hee(e,t,n){return(n-t)*e+t}function pee(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),i=n[0].split(".")[1];return(i?i.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function mee(e,t,n){const i=Math.round((e-n)/t)*t+n;return Number(i.toFixed(pee(t)))}function Y_({values:e,newValue:t,index:n}){const i=e.slice();return i[n]=t,i.sort(G_)}function R3({sliderRef:e,activeIndex:t,setActive:n}){var o,s,c;const i=wa(e.current);(!((o=e.current)!=null&&o.contains(i.activeElement))||Number((s=i==null?void 0:i.activeElement)==null?void 0:s.getAttribute("data-index"))!==t)&&((c=e.current)==null||c.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function M3(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?fee(e,t):!1}const gee={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},yee=e=>e;let _3;function X_(){return _3===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?_3=CSS.supports("touch-action","none"):_3=!0),_3}function vee(e){const{"aria-labelledby":t,defaultValue:n,disabled:i=!1,disableSwap:o=!1,isRtl:s=!1,marks:c=!1,max:d=100,min:h=0,name:y,onChange:b,onChangeCommitted:S,orientation:T="horizontal",rootRef:w,scale:C=yee,step:M=1,shiftStep:_=10,tabIndex:k,value:z}=e,L=G.useRef(void 0),[B,V]=G.useState(-1),[U,X]=G.useState(-1),[se,ce]=G.useState(!1),ie=G.useRef(0),ue=G.useRef(null),[$,le]=ng({controlled:z,default:n??h,name:"Slider"}),Q=b&&((Ze,be,Ve)=>{const nt=Ze.nativeEvent||Ze,pt=new nt.constructor(nt.type,nt);Object.defineProperty(pt,"target",{writable:!0,value:{value:be,name:y}}),ue.current=be,b(pt,be,Ve)}),oe=Array.isArray($);let Z=oe?$.slice().sort(G_):[$];Z=Z.map(Ze=>Ze==null?h:Ym(Ze,h,d));const ae=c===!0&&M!==null?[...Array(Math.floor((d-h)/M)+1)].map((Ze,be)=>({value:h+M*be})):c||[],de=ae.map(Ze=>Ze.value),[we,te]=G.useState(-1),F=G.useRef(null),ee=ri(w,F),Y=Ze=>be=>{var nt;const Ve=Number(be.currentTarget.getAttribute("data-index"));og(be.target)&&te(Ve),X(Ve),(nt=Ze==null?void 0:Ze.onFocus)==null||nt.call(Ze,be)},Re=Ze=>be=>{var Ve;og(be.target)||te(-1),X(-1),(Ve=Ze==null?void 0:Ze.onBlur)==null||Ve.call(Ze,be)},Se=(Ze,be)=>{const Ve=Number(Ze.currentTarget.getAttribute("data-index")),nt=Z[Ve],pt=de.indexOf(nt);let ut=be;if(ae&&M==null){const yt=de[de.length-1];ut>=yt?ut=yt:ut<=de[0]?ut=de[0]:ut=ut<nt?de[pt-1]:de[pt+1]}if(ut=Ym(ut,h,d),oe){o&&(ut=Ym(ut,Z[Ve-1]||-1/0,Z[Ve+1]||1/0));const yt=ut;ut=Y_({values:Z,newValue:ut,index:Ve});let gn=Ve;o||(gn=ut.indexOf(yt)),R3({sliderRef:F,activeIndex:gn})}le(ut),te(Ve),Q&&!M3(ut,$)&&Q(Ze,ut,Ve),S&&S(Ze,ue.current??ut)},_e=Ze=>be=>{var Ve;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(be.key)){be.preventDefault();const nt=Number(be.currentTarget.getAttribute("data-index")),pt=Z[nt];let ut=null;if(M!=null){const yt=be.shiftKey?_:M;switch(be.key){case"ArrowUp":ut=Sg(pt,yt,1,h,d);break;case"ArrowRight":ut=Sg(pt,yt,s?-1:1,h,d);break;case"ArrowDown":ut=Sg(pt,yt,-1,h,d);break;case"ArrowLeft":ut=Sg(pt,yt,s?1:-1,h,d);break;case"PageUp":ut=Sg(pt,_,1,h,d);break;case"PageDown":ut=Sg(pt,_,-1,h,d);break;case"Home":ut=h;break;case"End":ut=d;break}}else if(ae){const yt=de[de.length-1],gn=de.indexOf(pt),Nt=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],jt=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Nt.includes(be.key)?gn===0?ut=de[0]:ut=de[gn-1]:jt.includes(be.key)&&(gn===de.length-1?ut=yt:ut=de[gn+1])}ut!=null&&Se(be,ut)}(Ve=Ze==null?void 0:Ze.onKeyDown)==null||Ve.call(Ze,be)};Yl(()=>{var Ze;i&&F.current.contains(document.activeElement)&&((Ze=document.activeElement)==null||Ze.blur())},[i]),i&&B!==-1&&V(-1),i&&we!==-1&&te(-1);const je=Ze=>be=>{var Ve;(Ve=Ze.onChange)==null||Ve.call(Ze,be),Se(be,be.target.valueAsNumber)},He=G.useRef(void 0);let Xe=T;s&&T==="horizontal"&&(Xe+="-reverse");const Qe=({finger:Ze,move:be=!1})=>{const{current:Ve}=F,{width:nt,height:pt,bottom:ut,left:yt}=Ve.getBoundingClientRect();let gn;Xe.startsWith("vertical")?gn=(ut-Ze.y)/pt:gn=(Ze.x-yt)/nt,Xe.includes("-reverse")&&(gn=1-gn);let Nt;if(Nt=hee(gn,h,d),M)Nt=mee(Nt,M,h);else{const Fn=F_(de,Nt);Nt=de[Fn]}Nt=Ym(Nt,h,d);let jt=0;if(oe){be?jt=He.current:jt=F_(Z,Nt),o&&(Nt=Ym(Nt,Z[jt-1]||-1/0,Z[jt+1]||1/0));const Fn=Nt;Nt=Y_({values:Z,newValue:Nt,index:jt}),o&&be||(jt=Nt.indexOf(Fn),He.current=jt)}return{newValue:Nt,activeIndex:jt}},et=Xl(Ze=>{const be=C3(Ze,L);if(!be)return;if(ie.current+=1,Ze.type==="mousemove"&&Ze.buttons===0){Be(Ze);return}const{newValue:Ve,activeIndex:nt}=Qe({finger:be,move:!0});R3({sliderRef:F,activeIndex:nt,setActive:V}),le(Ve),!se&&ie.current>dee&&ce(!0),Q&&!M3(Ve,$)&&Q(Ze,Ve,nt)}),Be=Xl(Ze=>{const be=C3(Ze,L);if(ce(!1),!be)return;const{newValue:Ve}=Qe({finger:be,move:!0});V(-1),Ze.type==="touchend"&&X(-1),S&&S(Ze,ue.current??Ve),L.current=void 0,st()}),Me=Xl(Ze=>{if(i)return;X_()||Ze.preventDefault();const be=Ze.changedTouches[0];be!=null&&(L.current=be.identifier);const Ve=C3(Ze,L);if(Ve!==!1){const{newValue:pt,activeIndex:ut}=Qe({finger:Ve});R3({sliderRef:F,activeIndex:ut,setActive:V}),le(pt),Q&&!M3(pt,$)&&Q(Ze,pt,ut)}ie.current=0;const nt=wa(F.current);nt.addEventListener("touchmove",et,{passive:!0}),nt.addEventListener("touchend",Be,{passive:!0})}),st=G.useCallback(()=>{const Ze=wa(F.current);Ze.removeEventListener("mousemove",et),Ze.removeEventListener("mouseup",Be),Ze.removeEventListener("touchmove",et),Ze.removeEventListener("touchend",Be)},[Be,et]);G.useEffect(()=>{const{current:Ze}=F;return Ze.addEventListener("touchstart",Me,{passive:X_()}),()=>{Ze.removeEventListener("touchstart",Me),st()}},[st,Me]),G.useEffect(()=>{i&&st()},[i,st]);const Ot=Ze=>be=>{var pt;if((pt=Ze.onMouseDown)==null||pt.call(Ze,be),i||be.defaultPrevented||be.button!==0)return;be.preventDefault();const Ve=C3(be,L);if(Ve!==!1){const{newValue:ut,activeIndex:yt}=Qe({finger:Ve});R3({sliderRef:F,activeIndex:yt,setActive:V}),le(ut),Q&&!M3(ut,$)&&Q(be,ut,yt)}ie.current=0;const nt=wa(F.current);nt.addEventListener("mousemove",et,{passive:!0}),nt.addEventListener("mouseup",Be)},Kt=O3(oe?Z[0]:h,h,d),xt=O3(Z[Z.length-1],h,d)-Kt,Ut=(Ze={})=>{const be=$v(Ze),Ve={onMouseDown:Ot(be||{})},nt={...be,...Ve};return{...Ze,ref:ee,...nt}},dn=Ze=>be=>{var nt;(nt=Ze.onMouseOver)==null||nt.call(Ze,be);const Ve=Number(be.currentTarget.getAttribute("data-index"));X(Ve)},mn=Ze=>be=>{var Ve;(Ve=Ze.onMouseLeave)==null||Ve.call(Ze,be),X(-1)},at=(Ze={})=>{const be=$v(Ze),Ve={onMouseOver:dn(be||{}),onMouseLeave:mn(be||{})};return{...Ze,...be,...Ve}},At=Ze=>({pointerEvents:B!==-1&&B!==Ze?"none":void 0});let Mn;return T==="vertical"&&(Mn=s?"vertical-rl":"vertical-lr"),{active:B,axis:Xe,axisProps:gee,dragging:se,focusedThumbIndex:we,getHiddenInputProps:(Ze={})=>{const be=$v(Ze),Ve={onChange:je(be||{}),onFocus:Y(be||{}),onBlur:Re(be||{}),onKeyDown:_e(be||{})},nt={...be,...Ve};return{tabIndex:k,"aria-labelledby":t,"aria-orientation":T,"aria-valuemax":C(d),"aria-valuemin":C(h),name:y,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:i,...Ze,...nt,style:{...eee,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Mn}}},getRootProps:Ut,getThumbProps:at,marks:ae,open:U,range:oe,rootRef:ee,trackLeap:xt,trackOffset:Kt,values:Z,getThumbStyle:At}}const bee=e=>!e||!ec(e);function xee(e){return Wt("MuiSlider",e)}const Jl=Qt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var See={};const Eee=e=>{const{open:t}=e;return{offset:St(t&&Jl.valueLabelOpen),circle:Jl.valueLabelCircle,label:Jl.valueLabelLabel}};function W_(e){const{children:t,className:n,value:i}=e,o=Eee(e);return t?G.cloneElement(t,{className:t.props.className},H.jsxs(G.Fragment,{children:[t.props.children,H.jsx("span",{className:St(o.offset,n),"aria-hidden":!0,children:H.jsx("span",{className:o.circle,children:H.jsx("span",{className:o.label,children:i})})})]})):null}See.NODE_ENV!=="production"&&(W_.propTypes={children:p.element.isRequired,className:p.string,value:p.node});var Q_={};function K_(e){return e}const wee=it("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Je(n.color)}`],n.size!=="medium"&&t[`size${Je(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Gt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Jl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Jl.dragging}`]:{[`& .${Jl.thumb}, & .${Jl.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Tee=it("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Aee=it("span",{name:"MuiSlider",slot:"Track"})(Gt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),Cee=it("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Je(n.color)}`],n.size!=="medium"&&t[`thumbSize${Je(n.size)}`]]}})(Gt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Jl.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Jl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Jl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Z_=it(W_,{name:"MuiSlider",slot:"ValueLabel"})(Gt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Jl.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Jl.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));Q_.NODE_ENV!=="production"&&(Z_.propTypes={children:p.element.isRequired,index:p.number.isRequired,open:p.bool.isRequired,value:p.node});const Oee=it("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>QS(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Gt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Ree=it("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>QS(e)&&e!=="markLabelActive"})(Gt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Mee=e=>{const{disabled:t,dragging:n,marked:i,orientation:o,track:s,classes:c,color:d,size:h}=e,y={root:["root",t&&"disabled",n&&"dragging",i&&"marked",o==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",d&&`color${Je(d)}`,h&&`size${Je(h)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",h&&`thumbSize${Je(h)}`,d&&`thumbColor${Je(d)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return en(y,xee,c)},_ee=({children:e})=>e,J_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSlider"}),o=GS(),{"aria-label":s,"aria-valuetext":c,"aria-labelledby":d,component:h="span",components:y={},componentsProps:b={},color:S="primary",classes:T,className:w,disableSwap:C=!1,disabled:M=!1,getAriaLabel:_,getAriaValueText:k,marks:z=!1,max:L=100,min:B=0,name:V,onChange:U,onChangeCommitted:X,orientation:se="horizontal",shiftStep:ce=10,size:ie="medium",step:ue=1,scale:$=K_,slotProps:le,slots:Q,tabIndex:oe,track:Z="normal",value:ae,valueLabelDisplay:de="off",valueLabelFormat:we=K_,...te}=i,F={...i,isRtl:o,max:L,min:B,classes:T,disabled:M,disableSwap:C,orientation:se,marks:z,color:S,size:ie,step:ue,shiftStep:ce,scale:$,track:Z,valueLabelDisplay:de,valueLabelFormat:we},{axisProps:ee,getRootProps:Y,getHiddenInputProps:Re,getThumbProps:Se,open:_e,active:je,axis:He,focusedThumbIndex:Xe,range:Qe,dragging:et,marks:Be,values:Me,trackOffset:st,trackLeap:Ot,getThumbStyle:Kt}=vee({...F,rootRef:n});F.marked=Be.length>0&&Be.some(Ne=>Ne.label),F.dragging=et,F.focusedThumbIndex=Xe;const xt=Mee(F),Ut=(Q==null?void 0:Q.root)??y.Root??wee,dn=(Q==null?void 0:Q.rail)??y.Rail??Tee,mn=(Q==null?void 0:Q.track)??y.Track??Aee,at=(Q==null?void 0:Q.thumb)??y.Thumb??Cee,At=(Q==null?void 0:Q.valueLabel)??y.ValueLabel??Z_,Mn=(Q==null?void 0:Q.mark)??y.Mark??Oee,Bt=(Q==null?void 0:Q.markLabel)??y.MarkLabel??Ree,Ze=(Q==null?void 0:Q.input)??y.Input??"input",be=(le==null?void 0:le.root)??b.root,Ve=(le==null?void 0:le.rail)??b.rail,nt=(le==null?void 0:le.track)??b.track,pt=(le==null?void 0:le.thumb)??b.thumb,ut=(le==null?void 0:le.valueLabel)??b.valueLabel,yt=(le==null?void 0:le.mark)??b.mark,gn=(le==null?void 0:le.markLabel)??b.markLabel,Nt=(le==null?void 0:le.input)??b.input,jt=rc({elementType:Ut,getSlotProps:Y,externalSlotProps:be,externalForwardedProps:te,additionalProps:{...bee(Ut)&&{as:h}},ownerState:{...F,...be==null?void 0:be.ownerState},className:[xt.root,w]}),Fn=rc({elementType:dn,externalSlotProps:Ve,ownerState:F,className:xt.rail}),bn=rc({elementType:mn,externalSlotProps:nt,additionalProps:{style:{...ee[He].offset(st),...ee[He].leap(Ot)}},ownerState:{...F,...nt==null?void 0:nt.ownerState},className:xt.track}),Fr=rc({elementType:at,getSlotProps:Se,externalSlotProps:pt,ownerState:{...F,...pt==null?void 0:pt.ownerState},className:xt.thumb}),cr=rc({elementType:At,externalSlotProps:ut,ownerState:{...F,...ut==null?void 0:ut.ownerState},className:xt.valueLabel}),J=rc({elementType:Mn,externalSlotProps:yt,ownerState:F,className:xt.mark}),Oe=rc({elementType:Bt,externalSlotProps:gn,ownerState:F,className:xt.markLabel}),tt=rc({elementType:Ze,getSlotProps:Re,externalSlotProps:Nt,ownerState:F});return H.jsxs(Ut,{...jt,children:[H.jsx(dn,{...Fn}),H.jsx(mn,{...bn}),Be.filter(Ne=>Ne.value>=B&&Ne.value<=L).map((Ne,We)=>{const wt=O3(Ne.value,B,L),vt=ee[He].offset(wt);let Yt;return Z===!1?Yt=Me.includes(Ne.value):Yt=Z==="normal"&&(Qe?Ne.value>=Me[0]&&Ne.value<=Me[Me.length-1]:Ne.value<=Me[0])||Z==="inverted"&&(Qe?Ne.value<=Me[0]||Ne.value>=Me[Me.length-1]:Ne.value>=Me[0]),H.jsxs(G.Fragment,{children:[H.jsx(Mn,{"data-index":We,...J,...!ec(Mn)&&{markActive:Yt},style:{...vt,...J.style},className:St(J.className,Yt&&xt.markActive)}),Ne.label!=null?H.jsx(Bt,{"aria-hidden":!0,"data-index":We,...Oe,...!ec(Bt)&&{markLabelActive:Yt},style:{...vt,...Oe.style},className:St(xt.markLabel,Oe.className,Yt&&xt.markLabelActive),children:Ne.label}):null]},We)}),Me.map((Ne,We)=>{const wt=O3(Ne,B,L),vt=ee[He].offset(wt),Yt=de==="off"?_ee:At;return H.jsx(Yt,{...!ec(Yt)&&{valueLabelFormat:we,valueLabelDisplay:de,value:typeof we=="function"?we($(Ne),We):we,index:We,open:_e===We||je===We||de==="on",disabled:M},...cr,children:H.jsx(at,{"data-index":We,...Fr,className:St(xt.thumb,Fr.className,je===We&&xt.active,Xe===We&&xt.focusVisible),style:{...vt,...Kt(We),...Fr.style},children:H.jsx(Ze,{"data-index":We,"aria-label":_?_(We):s,"aria-valuenow":$(Ne),"aria-labelledby":d,"aria-valuetext":k?k($(Ne),We):c,value:Me[We],...tt})})},We)})]})});Q_.NODE_ENV!=="production"&&(J_.propTypes={"aria-label":ou(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":p.string,"aria-valuetext":ou(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.node,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.node,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});function Dee(e){return Wt("MuiTooltip",e)}const di=Qt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var D3={};function Nee(e){return Math.round(e*1e5)/1e5}const kee=e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:s}=e,c={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${Je(s.split("-")[0])}`],arrow:["arrow"]};return en(c,Dee,t)},zee=it(R7,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Gt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${di.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${di.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Iee=it("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Je(n.placement.split("-")[0])}`]]}})(Gt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${di.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${di.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${di.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${di.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Nee(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Lee=it("span",{name:"MuiTooltip",slot:"Arrow"})(Gt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let N3=!1;const eD=new JS;let pb={x:0,y:0};function k3(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const tD=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:c,components:d={},componentsProps:h={},describeChild:y=!1,disableFocusListener:b=!1,disableHoverListener:S=!1,disableInteractive:T=!1,disableTouchListener:w=!1,enterDelay:C=100,enterNextDelay:M=0,enterTouchDelay:_=700,followCursor:k=!1,id:z,leaveDelay:L=0,leaveTouchDelay:B=1500,onClose:V,onOpen:U,open:X,placement:se="bottom",PopperComponent:ce,PopperProps:ie={},slotProps:ue={},slots:$={},title:le,TransitionComponent:Q,TransitionProps:oe,...Z}=i,ae=G.isValidElement(s)?s:H.jsx("span",{children:s}),de=tf(),we=GS(),[te,F]=G.useState(),[ee,Y]=G.useState(null),Re=G.useRef(!1),Se=T||k,_e=ag(),je=ag(),He=ag(),Xe=ag(),[Qe,et]=ng({controlled:X,default:!1,name:"Tooltip",state:"open"});let Be=Qe;if(D3.NODE_ENV!=="production"){const{current:ct}=G.useRef(X!==void 0);G.useEffect(()=>{te&&te.disabled&&!ct&&le!==""&&te.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
`))},[le,te,ct])}const Me=mh(z),st=G.useRef(),Ot=Xl(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),Xe.clear()});G.useEffect(()=>Ot,[Ot]);const Kt=ct=>{eD.clear(),N3=!0,et(!0),U&&!Be&&U(ct)},xt=Xl(ct=>{eD.start(800+L,()=>{N3=!1}),et(!1),V&&Be&&V(ct),_e.start(de.transitions.duration.shortest,()=>{Re.current=!1})}),Ut=ct=>{Re.current&&ct.type!=="touchstart"||(te&&te.removeAttribute("title"),je.clear(),He.clear(),C||N3&&M?je.start(N3?M:C,()=>{Kt(ct)}):Kt(ct))},dn=ct=>{je.clear(),He.start(L,()=>{xt(ct)})},[,mn]=G.useState(!1),at=ct=>{const Bn=(ct==null?void 0:ct.target)??te;if(!Bn||!og(Bn)){mn(!1);const oi=ct??new Event("blur");!ct&&Bn&&(Object.defineProperty(oi,"target",{value:Bn}),Object.defineProperty(oi,"currentTarget",{value:Bn})),dn(oi)}},At=ct=>{te||F(ct.currentTarget),og(ct.target)&&(mn(!0),Ut(ct))},Mn=ct=>{Re.current=!0;const Bn=ae.props;Bn.onTouchStart&&Bn.onTouchStart(ct)},Bt=ct=>{Mn(ct),He.clear(),_e.clear(),Ot(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Xe.start(_,()=>{document.body.style.WebkitUserSelect=st.current,Ut(ct)})},Ze=ct=>{ae.props.onTouchEnd&&ae.props.onTouchEnd(ct),Ot(),He.start(B,()=>{xt(ct)})};G.useEffect(()=>{if(!Be)return;function ct(Bn){Bn.key==="Escape"&&xt(Bn)}return document.addEventListener("keydown",ct),()=>{document.removeEventListener("keydown",ct)}},[xt,Be]);const be=ri(dg(ae),F,n);!le&&le!==0&&(Be=!1);const Ve=G.useRef(),nt=ct=>{const Bn=ae.props;Bn.onMouseMove&&Bn.onMouseMove(ct),pb={x:ct.clientX,y:ct.clientY},Ve.current&&Ve.current.update()},pt={},ut=typeof le=="string";y?(pt.title=!Be&&ut&&!S?le:null,pt["aria-describedby"]=Be?Me:null):(pt["aria-label"]=ut?le:null,pt["aria-labelledby"]=Be&&!ut?Me:null);const yt={...pt,...Z,...ae.props,className:St(Z.className,ae.props.className),onTouchStart:Mn,ref:be,...k?{onMouseMove:nt}:{}};D3.NODE_ENV!=="production"&&(yt["data-mui-internal-clone-element"]=!0,G.useEffect(()=>{te&&!te.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
`))},[te]));const gn={};w||(yt.onTouchStart=Bt,yt.onTouchEnd=Ze),S||(yt.onMouseOver=k3(Ut,yt.onMouseOver),yt.onMouseLeave=k3(dn,yt.onMouseLeave),Se||(gn.onMouseOver=Ut,gn.onMouseLeave=dn)),b||(yt.onFocus=k3(At,yt.onFocus),yt.onBlur=k3(at,yt.onBlur),Se||(gn.onFocus=At,gn.onBlur=at)),D3.NODE_ENV!=="production"&&ae.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${ae.props.title}\` or the Tooltip component.`].join(`
`));const Nt={...i,isRtl:we,arrow:o,disableInteractive:Se,placement:se,PopperComponentProp:ce,touch:Re.current},jt=typeof ue.popper=="function"?ue.popper(Nt):ue.popper,Fn=G.useMemo(()=>{var Bn,oi;let ct=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Bn=ie.popperOptions)!=null&&Bn.modifiers&&(ct=ct.concat(ie.popperOptions.modifiers)),(oi=jt==null?void 0:jt.popperOptions)!=null&&oi.modifiers&&(ct=ct.concat(jt.popperOptions.modifiers)),{...ie.popperOptions,...jt==null?void 0:jt.popperOptions,modifiers:ct}},[ee,ie.popperOptions,jt==null?void 0:jt.popperOptions]),bn=kee(Nt),Fr=typeof ue.transition=="function"?ue.transition(Nt):ue.transition,cr={slots:{popper:d.Popper,transition:d.Transition??Q,tooltip:d.Tooltip,arrow:d.Arrow,...$},slotProps:{arrow:ue.arrow??h.arrow,popper:{...ie,...jt??h.popper},tooltip:ue.tooltip??h.tooltip,transition:{...oe,...Fr??h.transition}}},[J,Oe]=nn("popper",{elementType:zee,externalForwardedProps:cr,ownerState:Nt,className:St(bn.popper,ie==null?void 0:ie.className)}),[tt,Ne]=nn("transition",{elementType:sb,externalForwardedProps:cr,ownerState:Nt}),[We,wt]=nn("tooltip",{elementType:Iee,className:bn.tooltip,externalForwardedProps:cr,ownerState:Nt}),[vt,Yt]=nn("arrow",{elementType:Lee,className:bn.arrow,externalForwardedProps:cr,ownerState:Nt,ref:Y});return H.jsxs(G.Fragment,{children:[G.cloneElement(ae,yt),H.jsx(J,{as:ce??R7,placement:se,anchorEl:k?{getBoundingClientRect:()=>({top:pb.y,left:pb.x,right:pb.x,bottom:pb.y,width:0,height:0})}:te,popperRef:Ve,open:te?Be:!1,id:Me,transition:!0,...gn,...Oe,popperOptions:Fn,children:({TransitionProps:ct})=>H.jsx(tt,{timeout:de.transitions.duration.shorter,...ct,...Ne,children:H.jsxs(We,{...wt,children:[le,o?H.jsx(vt,{...Yt}):null]})})})]})});D3.NODE_ENV!=="production"&&(tD.propTypes={arrow:p.bool,children:pg.isRequired,classes:p.object,className:p.string,components:p.shape({Arrow:p.elementType,Popper:p.elementType,Tooltip:p.elementType,Transition:p.elementType}),componentsProps:p.shape({arrow:p.object,popper:p.object,tooltip:p.object,transition:p.object}),describeChild:p.bool,disableFocusListener:p.bool,disableHoverListener:p.bool,disableInteractive:p.bool,disableTouchListener:p.bool,enterDelay:p.number,enterNextDelay:p.number,enterTouchDelay:p.number,followCursor:p.bool,id:p.string,leaveDelay:p.number,leaveTouchDelay:p.number,onClose:p.func,onOpen:p.func,open:p.bool,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:p.elementType,PopperProps:p.object,slotProps:p.shape({arrow:p.oneOfType([p.func,p.object]),popper:p.oneOfType([p.func,p.object]),tooltip:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({arrow:p.elementType,popper:p.elementType,tooltip:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),title:p.node,TransitionComponent:p.elementType,TransitionProps:p.object});function Vee(e){return Wt("MuiSwitch",e)}const po=Qt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var Bee={};const jee=e=>{const{classes:t,edge:n,size:i,color:o,checked:s,disabled:c}=e,d={root:["root",n&&`edge${Je(n)}`,`size${Je(i)}`],switchBase:["switchBase",`color${Je(o)}`,s&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=en(d,Vee,t);return{...t,...h}},Pee=it("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Je(n.edge)}`],t[`size${Je(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${po.thumb}`]:{width:16,height:16},[`& .${po.switchBase}`]:{padding:4,[`&.${po.checked}`]:{transform:"translateX(16px)"}}}}]}),Uee=it(v3,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${po.input}`]:t.input},n.color!=="default"&&t[`color${Je(n.color)}`]]}})(Gt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${po.checked}`]:{transform:"translateX(20px)"},[`&.${po.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${po.checked} + .${po.track}`]:{opacity:.5},[`&.${po.disabled} + .${po.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${po.input}`]:{left:"-100%",width:"300%"}})),Gt(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter($r(["light"])).map(([t])=>({props:{color:t},style:{[`&.${po.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${po.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${po.checked} + .${po.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),$ee=it("span",{name:"MuiSwitch",slot:"Track"})(Gt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),Hee=it("span",{name:"MuiSwitch",slot:"Thumb"})(Gt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),nD=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:c=!1,size:d="medium",sx:h,slots:y={},slotProps:b={},...S}=i,T={...i,color:s,edge:c,size:d},w=jee(T),C={slots:y,slotProps:b},[M,_]=nn("root",{className:St(w.root,o),elementType:Pee,externalForwardedProps:C,ownerState:T,additionalProps:{sx:h}}),[k,z]=nn("thumb",{className:w.thumb,elementType:Hee,externalForwardedProps:C,ownerState:T}),L=H.jsx(k,{...z}),[B,V]=nn("track",{className:w.track,elementType:$ee,externalForwardedProps:C,ownerState:T});return H.jsxs(M,{..._,children:[H.jsx(Uee,{type:"checkbox",icon:L,checkedIcon:L,ref:n,ownerState:T,...S,classes:{...w,root:w.switchBase},slots:{...y.switchBase&&{root:y.switchBase},...y.input&&{input:y.input}},slotProps:{...b.switchBase&&{root:typeof b.switchBase=="function"?b.switchBase(T):b.switchBase},input:{role:"switch"},...b.input&&{input:typeof b.input=="function"?b.input(T):b.input}}}),H.jsx(B,{...V})]})});Bee.NODE_ENV!=="production"&&(nD.propTypes={checked:p.bool,checkedIcon:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),defaultChecked:p.bool,disabled:p.bool,disableRipple:p.bool,edge:p.oneOf(["end","start",!1]),icon:p.node,id:p.string,inputProps:p.object,inputRef:ho,onChange:p.func,required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),switchBase:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType,switchBase:p.elementType,thumb:p.elementType,track:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function qee(e){return Wt("MuiTextField",e)}Qt("MuiTextField",["root"]);var rD={};const Gee={standard:E3,filled:S3,outlined:T3},Fee=e=>{const{classes:t}=e;return en({root:["root"]},qee,t)},Yee=it(Hi,{name:"MuiTextField",slot:"Root"})({}),xl=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:c,className:d,color:h="primary",defaultValue:y,disabled:b=!1,error:S=!1,FormHelperTextProps:T,fullWidth:w=!1,helperText:C,id:M,InputLabelProps:_,inputProps:k,InputProps:z,inputRef:L,label:B,maxRows:V,minRows:U,multiline:X=!1,name:se,onBlur:ce,onChange:ie,onFocus:ue,placeholder:$,required:le=!1,rows:Q,select:oe=!1,SelectProps:Z,slots:ae={},slotProps:de={},type:we,value:te,variant:F="outlined",...ee}=i,Y={...i,autoFocus:s,color:h,disabled:b,error:S,fullWidth:w,multiline:X,required:le,select:oe,variant:F},Re=Fee(Y);rD.NODE_ENV!=="production"&&oe&&!c&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Se=mh(M),_e=C&&Se?`${Se}-helper-text`:void 0,je=B&&Se?`${Se}-label`:void 0,He=Gee[F],Xe={slots:ae,slotProps:{input:z,inputLabel:_,htmlInput:k,formHelperText:T,select:Z,...de}},Qe={},et=Xe.slotProps.inputLabel;F==="outlined"&&(et&&typeof et.shrink<"u"&&(Qe.notched=et.shrink),Qe.label=B),oe&&((!Z||!Z.native)&&(Qe.id=void 0),Qe["aria-describedby"]=void 0);const[Be,Me]=nn("root",{elementType:Yee,shouldForwardComponentProp:!0,externalForwardedProps:{...Xe,...ee},ownerState:Y,className:St(Re.root,d),ref:n,additionalProps:{disabled:b,error:S,fullWidth:w,required:le,color:h,variant:F}}),[st,Ot]=nn("input",{elementType:He,externalForwardedProps:Xe,additionalProps:Qe,ownerState:Y}),[Kt,xt]=nn("inputLabel",{elementType:v_,externalForwardedProps:Xe,ownerState:Y}),[Ut,dn]=nn("htmlInput",{elementType:"input",externalForwardedProps:Xe,ownerState:Y}),[mn,at]=nn("formHelperText",{elementType:f_,externalForwardedProps:Xe,ownerState:Y}),[At,Mn]=nn("select",{elementType:xg,externalForwardedProps:Xe,ownerState:Y}),Bt=H.jsx(st,{"aria-describedby":_e,autoComplete:o,autoFocus:s,defaultValue:y,fullWidth:w,multiline:X,name:se,rows:Q,maxRows:V,minRows:U,type:we,value:te,id:Se,inputRef:L,onBlur:ce,onChange:ie,onFocus:ue,placeholder:$,inputProps:dn,slots:{input:ae.htmlInput?Ut:void 0},...Ot});return H.jsxs(Be,{...Me,children:[B!=null&&B!==""&&H.jsx(Kt,{htmlFor:Se,id:je,...xt,children:B}),oe?H.jsx(At,{"aria-describedby":_e,id:Se,labelId:je,value:te,input:Bt,...Mn,children:c}):Bt,C&&H.jsx(mn,{id:_e,...at,children:C})]})});rD.NODE_ENV!=="production"&&(xl.propTypes={autoComplete:p.string,autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),defaultValue:p.any,disabled:p.bool,error:p.bool,FormHelperTextProps:p.object,fullWidth:p.bool,helperText:p.node,id:p.string,InputLabelProps:p.object,inputProps:p.object,InputProps:p.object,inputRef:ho,label:p.node,margin:p.oneOf(["dense","none","normal"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onFocus:p.func,placeholder:p.string,required:p.bool,rows:p.oneOfType([p.number,p.string]),select:p.bool,SelectProps:p.object,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({formHelperText:p.oneOfType([p.func,p.object]),htmlInput:p.oneOfType([p.func,p.object]),input:p.oneOfType([p.func,p.object]),inputLabel:p.oneOfType([p.func,p.object]),select:p.oneOfType([p.func,p.object])}),slots:p.shape({formHelperText:p.elementType,htmlInput:p.elementType,input:p.elementType,inputLabel:p.elementType,root:p.elementType,select:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any,variant:p.oneOf(["filled","outlined","standard"])});const Xee=({model:e,fontSize:t="small"})=>{if(!e)return H.jsx(KR,{fontSize:t});switch(e){case"OPENAI":return H.jsx(gh,{fontSize:t,viewBox:"0 0 24 24",children:H.jsx("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.78.78 0 0 0 .78 0l5.843-3.369v2.332a.074.074 0 0 1-.028.057l-4.832 2.795a4.504 4.504 0 0 1-6.153-1.645zm-.856-8.246a4.476 4.476 0 0 1 2.346-1.973l-.004.162v5.517a.787.787 0 0 0 .392.681l5.843 3.369-2.02 1.168a.069.069 0 0 1-.066 0l-4.827-2.79a4.504 4.504 0 0 1-1.664-6.134zm16.008 3.73-5.843-3.369 2.02-1.168a.07.07 0 0 1 .066 0l4.827 2.79a4.494 4.494 0 0 1-1.12 8.107v-5.517a.795.795 0 0 0-.397-.681zm2.253-3.395a4.47 4.47 0 0 1-.535.983l-.142-.085-4.779-2.759a.78.78 0 0 0-.78 0L8.927 11.9V9.569a.07.07 0 0 1 .028-.057l4.827-2.79a4.504 4.504 0 0 1 6.682 2.771zm-12.35 3.369-2.02-1.168a.067.067 0 0 1-.037-.052V7.967a4.504 4.504 0 0 1 7.37-3.454l-.142.081-4.779 2.759a.795.795 0 0 0-.392.681zm1.069-2.332 2.606-1.507 2.606 1.507v3.014l-2.606 1.507-2.606-1.507z"})});case"ANTHROPIC_CLAUDE":return H.jsxs(gh,{fontSize:t,viewBox:"0 0 24 24",children:[H.jsx("path",{d:"M15.5 2.25a4.25 4.25 0 0 0-4.25 4.25h-2.5A6.75 6.75 0 0 1 15.5 0h2.5v2.25zM2.25 8.5A4.25 4.25 0 0 0 6.5 12.75v2.5A6.75 6.75 0 0 1 0 8.5v-2.5h2.25zM8.5 21.75a4.25 4.25 0 0 0 4.25-4.25h2.5A6.75 6.75 0 0 1 8.5 24H6v-2.25zM21.75 15.5a4.25 4.25 0 0 0-4.25-4.25v-2.5A6.75 6.75 0 0 1 24 15.5V18h-2.25z"}),H.jsx("path",{d:"M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})]});case"GOOGLE_GEMINI":return H.jsx(gh,{fontSize:t,viewBox:"0 0 24 24",children:H.jsx("path",{d:"M4 12c0-4.41 3.59-8 8-8s8 3.59 8 8-3.59 8-8 8-8-3.59-8-8m8-10c-5.51 0-10 4.49-10 10s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m2.5 10c0 1.38-1.12 2.5-2.5 2.5S9.5 13.38 9.5 12 10.62 9.5 12 9.5s2.5 1.12 2.5 2.5M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4"})});default:return H.jsx(KR,{fontSize:t})}},Wee=({enabledModels:e})=>{const t=Yu("settings"),n=Yu("chat"),i=t.state,o=(d,h)=>{const y=t.state,b={...y,llm:{...y.llm,models:{...y.llm.models,[d]:{...y.llm.models[d],version:h,enabled:!0}}}};t.saveSettings(b),n.updateWelcomeMessage()},s=d=>{const h=Ev[d],y=h.labels;return h.options.map(b=>{const S=b;return{label:y[S],value:S}})},c=d=>{const h=Ev[d],y=i.llm.models[d].version,b=h.options;return!y||!b.includes(y)?h.default:y};return H.jsx(xi,{sx:{mt:2,display:"flex",flexDirection:"column",gap:1},children:e.map(d=>H.jsxs(xi,{sx:{display:"flex",alignItems:"center",gap:1},children:[H.jsxs(Hr,{variant:"body2",sx:{minWidth:100},children:[d.name,":"]}),H.jsx(Hi,{size:"small",sx:{minWidth:200},children:H.jsx(xg,{value:c(d.modelKey),onChange:h=>o(d.modelKey,h.target.value),"aria-label":`Select ${d.name} version`,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}},children:s(d.modelKey).map(h=>H.jsx(Ah,{value:h.value,children:h.label},h.value))})})]},d.modelKey))})};function qfe(){}function Gfe(){}function iD(e){const t=[],n=String(e||"");let i=n.indexOf(","),o=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const c=n.slice(o,i).trim();(c||!s)&&t.push(c),o=i+1,i=n.indexOf(",",o)}return t}function Qee(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Kee=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zee=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jee={};function aD(e,t){return(Jee.jsx?Zee:Kee).test(e)}const ete=/[ \t\n\f\r]/g;function tte(e){return typeof e=="object"?e.type==="text"?oD(e.value):!1:oD(e)}function oD(e){return e.replace(ete,"")===""}class mb{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}mb.prototype.normal={},mb.prototype.property={},mb.prototype.space=void 0;function lD(e,t){const n={},i={};for(const o of e)Object.assign(n,o.property),Object.assign(i,o.normal);return new mb(n,i,t)}function gb(e){return e.toLowerCase()}class Ho{constructor(t,n){this.attribute=n,this.property=t}}Ho.prototype.attribute="",Ho.prototype.booleanish=!1,Ho.prototype.boolean=!1,Ho.prototype.commaOrSpaceSeparated=!1,Ho.prototype.commaSeparated=!1,Ho.prototype.defined=!1,Ho.prototype.mustUseProperty=!1,Ho.prototype.number=!1,Ho.prototype.overloadedBoolean=!1,Ho.prototype.property="",Ho.prototype.spaceSeparated=!1,Ho.prototype.space=void 0;let nte=0;const wn=Ch(),_i=Ch(),W7=Ch(),dt=Ch(),_r=Ch(),Eg=Ch(),Sl=Ch();function Ch(){return 2**++nte}const Q7=Object.freeze(Object.defineProperty({__proto__:null,boolean:wn,booleanish:_i,commaOrSpaceSeparated:Sl,commaSeparated:Eg,number:dt,overloadedBoolean:W7,spaceSeparated:_r},Symbol.toStringTag,{value:"Module"})),K7=Object.keys(Q7);class Z7 extends Ho{constructor(t,n,i,o){let s=-1;if(super(t,n),sD(this,"space",o),typeof i=="number")for(;++s<K7.length;){const c=K7[s];sD(this,K7[s],(i&Q7[c])===Q7[c])}}}Z7.prototype.defined=!0;function sD(e,t,n){n&&(e[t]=n)}function wg(e){const t={},n={};for(const[i,o]of Object.entries(e.properties)){const s=new Z7(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[gb(i)]=i,n[gb(s.attribute)]=i}return new mb(t,n,e.space)}const uD=wg({properties:{ariaActiveDescendant:null,ariaAtomic:_i,ariaAutoComplete:null,ariaBusy:_i,ariaChecked:_i,ariaColCount:dt,ariaColIndex:dt,ariaColSpan:dt,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:_i,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:_i,ariaFlowTo:_r,ariaGrabbed:_i,ariaHasPopup:null,ariaHidden:_i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:dt,ariaLive:null,ariaModal:_i,ariaMultiLine:_i,ariaMultiSelectable:_i,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:dt,ariaPressed:_i,ariaReadOnly:_i,ariaRelevant:null,ariaRequired:_i,ariaRoleDescription:_r,ariaRowCount:dt,ariaRowIndex:dt,ariaRowSpan:dt,ariaSelected:_i,ariaSetSize:dt,ariaSort:null,ariaValueMax:dt,ariaValueMin:dt,ariaValueNow:dt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cD(e,t){return t in e?e[t]:t}function fD(e,t){return cD(e,t.toLowerCase())}const rte=wg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eg,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:wn,allowPaymentRequest:wn,allowUserMedia:wn,alt:null,as:null,async:wn,autoCapitalize:null,autoComplete:_r,autoFocus:wn,autoPlay:wn,blocking:_r,capture:null,charSet:null,checked:wn,cite:null,className:_r,cols:dt,colSpan:null,content:null,contentEditable:_i,controls:wn,controlsList:_r,coords:dt|Eg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wn,defer:wn,dir:null,dirName:null,disabled:wn,download:W7,draggable:_i,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wn,formTarget:null,headers:_r,height:dt,hidden:W7,high:dt,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:wn,inputMode:null,integrity:null,is:null,isMap:wn,itemId:null,itemProp:_r,itemRef:_r,itemScope:wn,itemType:_r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wn,low:dt,manifest:null,max:null,maxLength:dt,media:null,method:null,min:null,minLength:dt,multiple:wn,muted:wn,name:null,nonce:null,noModule:wn,noValidate:wn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:wn,optimum:dt,pattern:null,ping:_r,placeholder:null,playsInline:wn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wn,referrerPolicy:null,rel:_r,required:wn,reversed:wn,rows:dt,rowSpan:dt,sandbox:_r,scope:null,scoped:wn,seamless:wn,selected:wn,shadowRootClonable:wn,shadowRootDelegatesFocus:wn,shadowRootMode:null,shape:null,size:dt,sizes:null,slot:null,span:dt,spellCheck:_i,src:null,srcDoc:null,srcLang:null,srcSet:null,start:dt,step:null,style:null,tabIndex:dt,target:null,title:null,translate:null,type:null,typeMustMatch:wn,useMap:null,value:_i,width:dt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,axis:null,background:null,bgColor:null,border:dt,borderColor:null,bottomMargin:dt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wn,declare:wn,event:null,face:null,frame:null,frameBorder:null,hSpace:dt,leftMargin:dt,link:null,longDesc:null,lowSrc:null,marginHeight:dt,marginWidth:dt,noResize:wn,noHref:wn,noShade:wn,noWrap:wn,object:null,profile:null,prompt:null,rev:null,rightMargin:dt,rules:null,scheme:null,scrolling:_i,standby:null,summary:null,text:null,topMargin:dt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:dt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:wn,disableRemotePlayback:wn,prefix:null,property:null,results:dt,security:null,unselectable:null},space:"html",transform:fD}),ite=wg({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Sl,accentHeight:dt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:dt,amplitude:dt,arabicForm:null,ascent:dt,attributeName:null,attributeType:null,azimuth:dt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:dt,by:null,calcMode:null,capHeight:dt,className:_r,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:dt,diffuseConstant:dt,direction:null,display:null,dur:null,divisor:dt,dominantBaseline:null,download:wn,dx:null,dy:null,edgeMode:null,editable:null,elevation:dt,enableBackground:null,end:null,event:null,exponent:dt,externalResourcesRequired:null,fill:null,fillOpacity:dt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Eg,g2:Eg,glyphName:Eg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:dt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:dt,horizOriginX:dt,horizOriginY:dt,id:null,ideographic:dt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:dt,k:dt,k1:dt,k2:dt,k3:dt,k4:dt,kernelMatrix:Sl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:dt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:dt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:dt,overlineThickness:dt,paintOrder:null,panose1:null,path:null,pathLength:dt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:dt,pointsAtY:dt,pointsAtZ:dt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sl,rev:Sl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sl,requiredFeatures:Sl,requiredFonts:Sl,requiredFormats:Sl,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:dt,specularExponent:dt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:dt,strikethroughThickness:dt,string:null,stroke:null,strokeDashArray:Sl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:dt,strokeOpacity:dt,strokeWidth:null,style:null,surfaceScale:dt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sl,tabIndex:dt,tableValues:null,target:null,targetX:dt,targetY:dt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:dt,underlineThickness:dt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:dt,values:null,vAlphabetic:dt,vMathematical:dt,vectorEffect:null,vHanging:dt,vIdeographic:dt,version:null,vertAdvY:dt,vertOriginX:dt,vertOriginY:dt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:dt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cD}),dD=wg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hD=wg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fD}),pD=wg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ate={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ote=/[A-Z]/g,mD=/-[a-z]/g,lte=/^data[-\w.:]+$/i;function gD(e,t){const n=gb(t);let i=t,o=Ho;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lte.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(mD,ute);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!mD.test(s)){let c=s.replace(ote,ste);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=Z7}return new o(i,t)}function ste(e){return"-"+e.toLowerCase()}function ute(e){return e.charAt(1).toUpperCase()}const yD=lD([uD,rte,dD,hD,pD],"html"),z3=lD([uD,ite,dD,hD,pD],"svg");function vD(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function cte(e){return e.join(" ").trim()}var Tg={},J7,bD;function fte(){if(bD)return J7;bD=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
`,y="/",b="*",S="",T="comment",w="declaration";function C(_,k){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];k=k||{};var z=1,L=1;function B(Q){var oe=Q.match(t);oe&&(z+=oe.length);var Z=Q.lastIndexOf(h);L=~Z?Q.length-Z:L+Q.length}function V(){var Q={line:z,column:L};return function(oe){return oe.position=new U(Q),ce(),oe}}function U(Q){this.start=Q,this.end={line:z,column:L},this.source=k.source}U.prototype.content=_;function X(Q){var oe=new Error(k.source+":"+z+":"+L+": "+Q);if(oe.reason=Q,oe.filename=k.source,oe.line=z,oe.column=L,oe.source=_,!k.silent)throw oe}function se(Q){var oe=Q.exec(_);if(oe){var Z=oe[0];return B(Z),_=_.slice(Z.length),oe}}function ce(){se(n)}function ie(Q){var oe;for(Q=Q||[];oe=ue();)oe!==!1&&Q.push(oe);return Q}function ue(){var Q=V();if(!(y!=_.charAt(0)||b!=_.charAt(1))){for(var oe=2;S!=_.charAt(oe)&&(b!=_.charAt(oe)||y!=_.charAt(oe+1));)++oe;if(oe+=2,S===_.charAt(oe-1))return X("End of comment missing");var Z=_.slice(2,oe-2);return L+=2,B(Z),_=_.slice(oe),L+=2,Q({type:T,comment:Z})}}function $(){var Q=V(),oe=se(i);if(oe){if(ue(),!se(o))return X("property missing ':'");var Z=se(s),ae=Q({type:w,property:M(oe[0].replace(e,S)),value:Z?M(Z[0].replace(e,S)):S});return se(c),ae}}function le(){var Q=[];ie(Q);for(var oe;oe=$();)oe!==!1&&(Q.push(oe),ie(Q));return Q}return ce(),le()}function M(_){return _?_.replace(d,S):S}return J7=C,J7}var xD;function dte(){if(xD)return Tg;xD=1;var e=Tg&&Tg.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=n;const t=e(fte());function n(i,o){let s=null;if(!i||typeof i!="string")return s;const c=(0,t.default)(i),d=typeof o=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:y,value:b}=h;d?o(y,b,h):b&&(s=s||{},s[y]=b)}),s}return Tg}var yb={},SD;function hte(){if(SD)return yb;SD=1,Object.defineProperty(yb,"__esModule",{value:!0}),yb.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(y){return!y||n.test(y)||e.test(y)},c=function(y,b){return b.toUpperCase()},d=function(y,b){return"".concat(b,"-")},h=function(y,b){return b===void 0&&(b={}),s(y)?y:(y=y.toLowerCase(),b.reactCompat?y=y.replace(o,d):y=y.replace(i,d),y.replace(t,c))};return yb.camelCase=h,yb}var vb,ED;function pte(){if(ED)return vb;ED=1;var e=vb&&vb.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(dte()),n=hte();function i(o,s){var c={};return!o||typeof o!="string"||(0,t.default)(o,function(d,h){d&&h&&(c[(0,n.camelCase)(d,s)]=h)}),c}return i.default=i,vb=i,vb}var mte=pte();const gte=pl(mte),wD=TD("end"),eT=TD("start");function TD(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function AD(e){const t=eT(e),n=wD(e);if(t&&n)return{start:t,end:n}}function bb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?CD(e.position):"start"in e||"end"in e?CD(e):"line"in e||"column"in e?tT(e):""}function tT(e){return OD(e&&e.line)+":"+OD(e&&e.column)}function CD(e){return tT(e&&e.start)+"-"+tT(e&&e.end)}function OD(e){return e&&typeof e=="number"?e:1}class $a extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let o="",s={},c=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?o=t:!s.cause&&t&&(c=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=bb(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$a.prototype.file="",$a.prototype.name="",$a.prototype.reason="",$a.prototype.message="",$a.prototype.stack="",$a.prototype.column=void 0,$a.prototype.line=void 0,$a.prototype.ancestors=void 0,$a.prototype.cause=void 0,$a.prototype.fatal=void 0,$a.prototype.place=void 0,$a.prototype.ruleId=void 0,$a.prototype.source=void 0;const nT={}.hasOwnProperty,yte=new Map,vte=/[A-Z]/g,bte=new Set(["table","tbody","thead","tfoot","tr"]),xte=new Set(["td","th"]),RD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ste(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Mte(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Rte(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?z3:yD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=MD(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function MD(e,t,n){if(t.type==="element")return Ete(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return wte(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ate(e,t,n);if(t.type==="mdxjsEsm")return Tte(e,t);if(t.type==="root")return Cte(e,t,n);if(t.type==="text")return Ote(e,t)}function Ete(e,t,n){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=z3,e.schema=o),e.ancestors.push(t);const s=DD(e,t.tagName,!1),c=_te(e,t);let d=iT(e,t);return bte.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!tte(h):!0})),_D(e,c,s,t),rT(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,n)}function wte(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}xb(e,t.position)}function Tte(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xb(e,t.position)}function Ate(e,t,n){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=z3,e.schema=o),e.ancestors.push(t);const s=t.name===null?e.Fragment:DD(e,t.name,!0),c=Dte(e,t),d=iT(e,t);return _D(e,c,s,t),rT(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,n)}function Cte(e,t,n){const i={};return rT(i,iT(e,t)),e.create(t,e.Fragment,i,n)}function Ote(e,t){return t.value}function _D(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function rT(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Rte(e,t,n){return i;function i(o,s,c,d){const y=Array.isArray(c.children)?n:t;return d?y(s,c,d):y(s,c)}}function Mte(e,t){return n;function n(i,o,s,c){const d=Array.isArray(s.children),h=eT(i);return t(o,s,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function _te(e,t){const n={};let i,o;for(o in t.properties)if(o!=="children"&&nT.call(t.properties,o)){const s=Nte(e,o,t.properties[o]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&xte.has(t.tagName)?i=d:n[c]=d}}if(i){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Dte(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(n,e.evaluater.evaluateExpression(d.argument))}else xb(e,t.position);else{const o=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else xb(e,t.position);else s=i.value===null?!0:i.value;n[o]=s}return n}function iT(e,t){const n=[];let i=-1;const o=e.passKeys?new Map:yte;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const y=o.get(h)||0;c=h+"-"+y,o.set(h,y+1)}}const d=MD(e,s,c);d!==void 0&&n.push(d)}return n}function Nte(e,t,n){const i=gD(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Qee(n):cte(n)),i.property==="style"){let o=typeof n=="object"?n:kte(e,String(n));return e.stylePropertyNameCase==="css"&&(o=zte(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?ate[i.property]||i.property:i.attribute,n]}}function kte(e,t){try{return gte(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,o=new $a("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=RD+"#cannot-parse-style-attribute",o}}function DD(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let s=-1,c;for(;++s<o.length;){const d=aD(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=c}else i=aD(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return nT.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);xb(e)}function xb(e,t){const n=new $a("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=RD+"#cannot-handle-mdx-estrees-without-createevaluater",n}function zte(e){const t={};let n;for(n in e)nT.call(e,n)&&(t[Ite(n)]=e[n]);return t}function Ite(e){let t=e.replace(vte,Lte);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Lte(e){return"-"+e.toLowerCase()}const aT={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Vte={};function oT(e,t){const n=Vte,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ND(e,i,o)}function ND(e,t,n){if(Bte(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return kD(e.children,t,n)}return Array.isArray(e)?kD(e,t,n):""}function kD(e,t,n){const i=[];let o=-1;for(;++o<e.length;)i[o]=ND(e[o],t,n);return i.join("")}function Bte(e){return!!(e&&typeof e=="object")}const zD=document.createElement("i");function lT(e){const t="&"+e+";";zD.innerHTML=t;const n=zD.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function El(e,t,n,i){const o=e.length;let s=0,c;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)c=Array.from(i),c.unshift(t,n),e.splice(...c);else for(n&&e.splice(t,n);s<i.length;)c=i.slice(s,s+1e4),c.unshift(t,0),e.splice(...c),s+=1e4,t+=1e4}function es(e,t){return e.length>0?(El(e,e.length,0,t),e):t}const ID={}.hasOwnProperty;function LD(e){const t={};let n=-1;for(;++n<e.length;)jte(t,e[n]);return t}function jte(e,t){let n;for(n in t){const o=(ID.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let c;if(s)for(c in s){ID.call(o,c)||(o[c]=[]);const d=s[c];Pte(o[c],Array.isArray(d)?d:d?[d]:[])}}}function Pte(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);El(e,0,0,i)}function VD(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function cu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mo=Id(/[A-Za-z]/),Ha=Id(/[\dA-Za-z]/),Ute=Id(/[#-'*+\--9=?A-Z^-~]/);function I3(e){return e!==null&&(e<32||e===127)}const sT=Id(/\d/),$te=Id(/[\dA-Fa-f]/),Hte=Id(/[!-/:-@[-`{-~]/);function It(e){return e!==null&&e<-2}function Ar(e){return e!==null&&(e<0||e===32)}function Vn(e){return e===-2||e===-1||e===32}const L3=Id(new RegExp("\\p{P}|\\p{S}","u")),Oh=Id(/\s/);function Id(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ag(e){const t=[];let n=-1,i=0,o=0;for(;++n<e.length;){const s=e.charCodeAt(n);let c="";if(s===37&&Ha(e.charCodeAt(n+1))&&Ha(e.charCodeAt(n+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(n+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,n),encodeURIComponent(c)),i=n+o+1,c=""),o&&(n+=o,o=0)}return t.join("")+e.slice(i)}function Nn(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return Vn(h)?(e.enter(n),d(h)):t(h)}function d(h){return Vn(h)&&s++<o?(e.consume(h),d):(e.exit(n),t(h))}}const qte={tokenize:Gte};function Gte(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let n;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nn(e,t,"linePrefix")}function o(d){return e.enter("paragraph"),s(d)}function s(d){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return It(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const Fte={tokenize:Yte},BD={tokenize:Xte};function Yte(e){const t=this,n=[];let i=0,o,s,c;return d;function d(L){if(i<n.length){const B=n[i];return t.containerState=B[1],e.attempt(B[0].continuation,h,y)(L)}return y(L)}function h(L){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&z();const B=t.events.length;let V=B,U;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){U=t.events[V][1].end;break}k(i);let X=B;for(;X<t.events.length;)t.events[X][1].end={...U},X++;return El(t.events,V+1,0,t.events.slice(B)),t.events.length=X,y(L)}return d(L)}function y(L){if(i===n.length){if(!o)return T(L);if(o.currentConstruct&&o.currentConstruct.concrete)return C(L);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(BD,b,S)(L)}function b(L){return o&&z(),k(i),T(L)}function S(L){return t.parser.lazy[t.now().line]=i!==n.length,c=t.now().offset,C(L)}function T(L){return t.containerState={},e.attempt(BD,w,C)(L)}function w(L){return i++,n.push([t.currentConstruct,t.containerState]),T(L)}function C(L){if(L===null){o&&z(),k(0),e.consume(L);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),M(L)}function M(L){if(L===null){_(e.exit("chunkFlow"),!0),k(0),e.consume(L);return}return It(L)?(e.consume(L),_(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(L),M)}function _(L,B){const V=t.sliceStream(L);if(B&&V.push(null),L.previous=s,s&&(s.next=L),s=L,o.defineSkip(L.start),o.write(V),t.parser.lazy[L.start.line]){let U=o.events.length;for(;U--;)if(o.events[U][1].start.offset<c&&(!o.events[U][1].end||o.events[U][1].end.offset>c))return;const X=t.events.length;let se=X,ce,ie;for(;se--;)if(t.events[se][0]==="exit"&&t.events[se][1].type==="chunkFlow"){if(ce){ie=t.events[se][1].end;break}ce=!0}for(k(i),U=X;U<t.events.length;)t.events[U][1].end={...ie},U++;El(t.events,se+1,0,t.events.slice(X)),t.events.length=U}}function k(L){let B=n.length;for(;B-- >L;){const V=n[B];t.containerState=V[1],V[0].exit.call(t,e)}n.length=L}function z(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Xte(e,t,n){return Nn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Cg(e){if(e===null||Ar(e)||Oh(e))return 1;if(L3(e))return 2}function V3(e,t,n){const i=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const uT={name:"attention",resolveAll:Wte,tokenize:Qte};function Wte(e,t){let n=-1,i,o,s,c,d,h,y,b;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const S={...e[i][1].end},T={...e[n][1].start};jD(S,-h),jD(T,h),c={type:h>1?"strongSequence":"emphasisSequence",start:S,end:{...e[i][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:T},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[n][1].start={...d.end},y=[],e[i][1].end.offset-e[i][1].start.offset&&(y=es(y,[["enter",e[i][1],t],["exit",e[i][1],t]])),y=es(y,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",s,t]]),y=es(y,V3(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),y=es(y,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(b=2,y=es(y,[["enter",e[n][1],t],["exit",e[n][1],t]])):b=0,El(e,i-1,n-i+3,y),n=i+y.length-b-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Qte(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,o=Cg(i);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===s)return e.consume(h),d;const y=e.exit("attentionSequence"),b=Cg(h),S=!b||b===2&&o||n.includes(h),T=!o||o===2&&b||n.includes(i);return y._open=!!(s===42?S:S&&(o||!T)),y._close=!!(s===42?T:T&&(b||!S)),t(h)}}function jD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Kte={name:"autolink",tokenize:Zte};function Zte(e,t,n){let i=0;return o;function o(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return mo(w)?(e.consume(w),c):w===64?n(w):y(w)}function c(w){return w===43||w===45||w===46||Ha(w)?(i=1,d(w)):y(w)}function d(w){return w===58?(e.consume(w),i=0,h):(w===43||w===45||w===46||Ha(w))&&i++<32?(e.consume(w),d):(i=0,y(w))}function h(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||I3(w)?n(w):(e.consume(w),h)}function y(w){return w===64?(e.consume(w),b):Ute(w)?(e.consume(w),y):n(w)}function b(w){return Ha(w)?S(w):n(w)}function S(w){return w===46?(e.consume(w),i=0,b):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):T(w)}function T(w){if((w===45||Ha(w))&&i++<63){const C=w===45?T:S;return e.consume(w),C}return n(w)}}const Sb={partial:!0,tokenize:Jte};function Jte(e,t,n){return i;function i(s){return Vn(s)?Nn(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||It(s)?t(s):n(s)}}const PD={continuation:{tokenize:tne},exit:nne,name:"blockQuote",tokenize:ene};function ene(e,t,n){const i=this;return o;function o(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return n(c)}function s(c){return Vn(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function tne(e,t,n){const i=this;return o;function o(c){return Vn(c)?Nn(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(PD,t,n)(c)}}function nne(e){e.exit("blockQuote")}const UD={name:"characterEscape",tokenize:rne};function rne(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return Hte(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const $D={name:"characterReference",tokenize:ine};function ine(e,t,n){const i=this;let o=0,s,c;return d;function d(S){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(S),e.exit("characterReferenceMarker"),h}function h(S){return S===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(S),e.exit("characterReferenceMarkerNumeric"),y):(e.enter("characterReferenceValue"),s=31,c=Ha,b(S))}function y(S){return S===88||S===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(S),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=$te,b):(e.enter("characterReferenceValue"),s=7,c=sT,b(S))}function b(S){if(S===59&&o){const T=e.exit("characterReferenceValue");return c===Ha&&!lT(i.sliceSerialize(T))?n(S):(e.enter("characterReferenceMarker"),e.consume(S),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(S)&&o++<s?(e.consume(S),b):n(S)}}const HD={partial:!0,tokenize:one},qD={concrete:!0,name:"codeFenced",tokenize:ane};function ane(e,t,n){const i=this,o={partial:!0,tokenize:V};let s=0,c=0,d;return h;function h(U){return y(U)}function y(U){const X=i.events[i.events.length-1];return s=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,d=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(U)}function b(U){return U===d?(c++,e.consume(U),b):c<3?n(U):(e.exit("codeFencedFenceSequence"),Vn(U)?Nn(e,S,"whitespace")(U):S(U))}function S(U){return U===null||It(U)?(e.exit("codeFencedFence"),i.interrupt?t(U):e.check(HD,M,B)(U)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(U))}function T(U){return U===null||It(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),S(U)):Vn(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Nn(e,w,"whitespace")(U)):U===96&&U===d?n(U):(e.consume(U),T)}function w(U){return U===null||It(U)?S(U):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(U))}function C(U){return U===null||It(U)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),S(U)):U===96&&U===d?n(U):(e.consume(U),C)}function M(U){return e.attempt(o,B,_)(U)}function _(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),k}function k(U){return s>0&&Vn(U)?Nn(e,z,"linePrefix",s+1)(U):z(U)}function z(U){return U===null||It(U)?e.check(HD,M,B)(U):(e.enter("codeFlowValue"),L(U))}function L(U){return U===null||It(U)?(e.exit("codeFlowValue"),z(U)):(e.consume(U),L)}function B(U){return e.exit("codeFenced"),t(U)}function V(U,X,se){let ce=0;return ie;function ie(oe){return U.enter("lineEnding"),U.consume(oe),U.exit("lineEnding"),ue}function ue(oe){return U.enter("codeFencedFence"),Vn(oe)?Nn(U,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(oe):$(oe)}function $(oe){return oe===d?(U.enter("codeFencedFenceSequence"),le(oe)):se(oe)}function le(oe){return oe===d?(ce++,U.consume(oe),le):ce>=c?(U.exit("codeFencedFenceSequence"),Vn(oe)?Nn(U,Q,"whitespace")(oe):Q(oe)):se(oe)}function Q(oe){return oe===null||It(oe)?(U.exit("codeFencedFence"),X(oe)):se(oe)}}}function one(e,t,n){const i=this;return o;function o(c){return c===null?n(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}const cT={name:"codeIndented",tokenize:sne},lne={partial:!0,tokenize:une};function sne(e,t,n){const i=this;return o;function o(y){return e.enter("codeIndented"),Nn(e,s,"linePrefix",5)(y)}function s(y){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(y):n(y)}function c(y){return y===null?h(y):It(y)?e.attempt(lne,c,h)(y):(e.enter("codeFlowValue"),d(y))}function d(y){return y===null||It(y)?(e.exit("codeFlowValue"),c(y)):(e.consume(y),d)}function h(y){return e.exit("codeIndented"),t(y)}}function une(e,t,n){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?n(c):It(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Nn(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):It(c)?o(c):n(c)}}const cne={name:"codeText",previous:dne,resolve:fne,tokenize:hne};function fne(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function dne(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hne(e,t,n){let i=0,o,s;return c;function c(S){return e.enter("codeText"),e.enter("codeTextSequence"),d(S)}function d(S){return S===96?(e.consume(S),i++,d):(e.exit("codeTextSequence"),h(S))}function h(S){return S===null?n(S):S===32?(e.enter("space"),e.consume(S),e.exit("space"),h):S===96?(s=e.enter("codeTextSequence"),o=0,b(S)):It(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h):(e.enter("codeTextData"),y(S))}function y(S){return S===null||S===32||S===96||It(S)?(e.exit("codeTextData"),h(S)):(e.consume(S),y)}function b(S){return S===96?(e.consume(S),o++,b):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(S)):(s.type="codeTextData",y(S))}}class pne{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&Eb(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Eb(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Eb(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Eb(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Eb(this.left,n.reverse())}}}function Eb(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function GD(e){const t={};let n=-1,i,o,s,c,d,h,y;const b=new pne(e);for(;++n<b.length;){for(;n in t;)n=t[n];if(i=b.get(n),n&&i[1].type==="chunkFlow"&&b.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,mne(b,n)),n=t[n],y=!0);else if(i[1]._container){for(s=n,o=void 0;s--;)if(c=b.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...b.get(o)[1].start},d=b.slice(o,n),d.unshift(i),b.splice(o,n-o+1,d))}}return El(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!y}function mne(e,t){const n=e.get(t)[1],i=e.get(t)[2];let o=t-1;const s=[];let c=n._tokenizer;c||(c=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,h=[],y={};let b,S,T=-1,w=n,C=0,M=0;const _=[M];for(;w;){for(;e.get(++o)[1]!==w;);s.push(o),w._tokenizer||(b=i.sliceStream(w),w.next||b.push(null),S&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),S=w,w=w.next}for(w=n;++T<d.length;)d[T][0]==="exit"&&d[T-1][0]==="enter"&&d[T][1].type===d[T-1][1].type&&d[T][1].start.line!==d[T][1].end.line&&(M=T+1,_.push(M),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):_.pop(),T=_.length;T--;){const k=d.slice(_[T],_[T+1]),z=s.pop();h.push([z,z+k.length-1]),e.splice(z,2,k)}for(h.reverse(),T=-1;++T<h.length;)y[C+h[T][0]]=C+h[T][1],C+=h[T][1]-h[T][0]-1;return y}const gne={resolve:vne,tokenize:bne},yne={partial:!0,tokenize:xne};function vne(e){return GD(e),e}function bne(e,t){let n;return i;function i(d){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):It(d)?e.check(yne,c,s)(d):(e.consume(d),o)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function xne(e,t,n){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Nn(e,s,"linePrefix")}function s(c){if(c===null||It(c))return n(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,n,t)(c)}}function FD(e,t,n,i,o,s,c,d,h){const y=h||Number.POSITIVE_INFINITY;let b=0;return S;function S(k){return k===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(k),e.exit(s),T):k===null||k===32||k===41||I3(k)?n(k):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),M(k))}function T(k){return k===62?(e.enter(s),e.consume(k),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(k))}function w(k){return k===62?(e.exit("chunkString"),e.exit(d),T(k)):k===null||k===60||It(k)?n(k):(e.consume(k),k===92?C:w)}function C(k){return k===60||k===62||k===92?(e.consume(k),w):w(k)}function M(k){return!b&&(k===null||k===41||Ar(k))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(k)):b<y&&k===40?(e.consume(k),b++,M):k===41?(e.consume(k),b--,M):k===null||k===32||k===40||I3(k)?n(k):(e.consume(k),k===92?_:M)}function _(k){return k===40||k===41||k===92?(e.consume(k),M):M(k)}}function YD(e,t,n,i,o,s){const c=this;let d=0,h;return y;function y(w){return e.enter(i),e.enter(o),e.consume(w),e.exit(o),e.enter(s),b}function b(w){return d>999||w===null||w===91||w===93&&!h||w===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?n(w):w===93?(e.exit(s),e.enter(o),e.consume(w),e.exit(o),e.exit(i),t):It(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),S(w))}function S(w){return w===null||w===91||w===93||It(w)||d++>999?(e.exit("chunkString"),b(w)):(e.consume(w),h||(h=!Vn(w)),w===92?T:S)}function T(w){return w===91||w===92||w===93?(e.consume(w),d++,S):S(w)}}function XD(e,t,n,i,o,s){let c;return d;function d(T){return T===34||T===39||T===40?(e.enter(i),e.enter(o),e.consume(T),e.exit(o),c=T===40?41:T,h):n(T)}function h(T){return T===c?(e.enter(o),e.consume(T),e.exit(o),e.exit(i),t):(e.enter(s),y(T))}function y(T){return T===c?(e.exit(s),h(c)):T===null?n(T):It(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Nn(e,y,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===c||T===null||It(T)?(e.exit("chunkString"),y(T)):(e.consume(T),T===92?S:b)}function S(T){return T===c||T===92?(e.consume(T),b):b(T)}}function wb(e,t){let n;return i;function i(o){return It(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):Vn(o)?Nn(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const Sne={name:"definition",tokenize:wne},Ene={partial:!0,tokenize:Tne};function wne(e,t,n){const i=this;let o;return s;function s(w){return e.enter("definition"),c(w)}function c(w){return YD.call(i,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return o=cu(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),h):n(w)}function h(w){return Ar(w)?wb(e,y)(w):y(w)}function y(w){return FD(e,b,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function b(w){return e.attempt(Ene,S,S)(w)}function S(w){return Vn(w)?Nn(e,T,"whitespace")(w):T(w)}function T(w){return w===null||It(w)?(e.exit("definition"),i.parser.defined.push(o),t(w)):n(w)}}function Tne(e,t,n){return i;function i(d){return Ar(d)?wb(e,o)(d):n(d)}function o(d){return XD(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Vn(d)?Nn(e,c,"whitespace")(d):c(d)}function c(d){return d===null||It(d)?t(d):n(d)}}const Ane={name:"hardBreakEscape",tokenize:Cne};function Cne(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return It(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const One={name:"headingAtx",resolve:Rne,tokenize:Mne};function Rne(e,t){let n=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},El(e,i,n-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function Mne(e,t,n){let i=0;return o;function o(b){return e.enter("atxHeading"),s(b)}function s(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&i++<6?(e.consume(b),c):b===null||Ar(b)?(e.exit("atxHeadingSequence"),d(b)):n(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),h(b)):b===null||It(b)?(e.exit("atxHeading"),t(b)):Vn(b)?Nn(e,d,"whitespace")(b):(e.enter("atxHeadingText"),y(b))}function h(b){return b===35?(e.consume(b),h):(e.exit("atxHeadingSequence"),d(b))}function y(b){return b===null||b===35||Ar(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),y)}}const _ne=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],WD=["pre","script","style","textarea"],Dne={concrete:!0,name:"htmlFlow",resolveTo:zne,tokenize:Ine},Nne={partial:!0,tokenize:Vne},kne={partial:!0,tokenize:Lne};function zne(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ine(e,t,n){const i=this;let o,s,c,d,h;return y;function y(Y){return b(Y)}function b(Y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Y),S}function S(Y){return Y===33?(e.consume(Y),T):Y===47?(e.consume(Y),s=!0,M):Y===63?(e.consume(Y),o=3,i.interrupt?t:te):mo(Y)?(e.consume(Y),c=String.fromCharCode(Y),_):n(Y)}function T(Y){return Y===45?(e.consume(Y),o=2,w):Y===91?(e.consume(Y),o=5,d=0,C):mo(Y)?(e.consume(Y),o=4,i.interrupt?t:te):n(Y)}function w(Y){return Y===45?(e.consume(Y),i.interrupt?t:te):n(Y)}function C(Y){const Re="CDATA[";return Y===Re.charCodeAt(d++)?(e.consume(Y),d===Re.length?i.interrupt?t:$:C):n(Y)}function M(Y){return mo(Y)?(e.consume(Y),c=String.fromCharCode(Y),_):n(Y)}function _(Y){if(Y===null||Y===47||Y===62||Ar(Y)){const Re=Y===47,Se=c.toLowerCase();return!Re&&!s&&WD.includes(Se)?(o=1,i.interrupt?t(Y):$(Y)):_ne.includes(c.toLowerCase())?(o=6,Re?(e.consume(Y),k):i.interrupt?t(Y):$(Y)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(Y):s?z(Y):L(Y))}return Y===45||Ha(Y)?(e.consume(Y),c+=String.fromCharCode(Y),_):n(Y)}function k(Y){return Y===62?(e.consume(Y),i.interrupt?t:$):n(Y)}function z(Y){return Vn(Y)?(e.consume(Y),z):ie(Y)}function L(Y){return Y===47?(e.consume(Y),ie):Y===58||Y===95||mo(Y)?(e.consume(Y),B):Vn(Y)?(e.consume(Y),L):ie(Y)}function B(Y){return Y===45||Y===46||Y===58||Y===95||Ha(Y)?(e.consume(Y),B):V(Y)}function V(Y){return Y===61?(e.consume(Y),U):Vn(Y)?(e.consume(Y),V):L(Y)}function U(Y){return Y===null||Y===60||Y===61||Y===62||Y===96?n(Y):Y===34||Y===39?(e.consume(Y),h=Y,X):Vn(Y)?(e.consume(Y),U):se(Y)}function X(Y){return Y===h?(e.consume(Y),h=null,ce):Y===null||It(Y)?n(Y):(e.consume(Y),X)}function se(Y){return Y===null||Y===34||Y===39||Y===47||Y===60||Y===61||Y===62||Y===96||Ar(Y)?V(Y):(e.consume(Y),se)}function ce(Y){return Y===47||Y===62||Vn(Y)?L(Y):n(Y)}function ie(Y){return Y===62?(e.consume(Y),ue):n(Y)}function ue(Y){return Y===null||It(Y)?$(Y):Vn(Y)?(e.consume(Y),ue):n(Y)}function $(Y){return Y===45&&o===2?(e.consume(Y),Z):Y===60&&o===1?(e.consume(Y),ae):Y===62&&o===4?(e.consume(Y),F):Y===63&&o===3?(e.consume(Y),te):Y===93&&o===5?(e.consume(Y),we):It(Y)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Nne,ee,le)(Y)):Y===null||It(Y)?(e.exit("htmlFlowData"),le(Y)):(e.consume(Y),$)}function le(Y){return e.check(kne,Q,ee)(Y)}function Q(Y){return e.enter("lineEnding"),e.consume(Y),e.exit("lineEnding"),oe}function oe(Y){return Y===null||It(Y)?le(Y):(e.enter("htmlFlowData"),$(Y))}function Z(Y){return Y===45?(e.consume(Y),te):$(Y)}function ae(Y){return Y===47?(e.consume(Y),c="",de):$(Y)}function de(Y){if(Y===62){const Re=c.toLowerCase();return WD.includes(Re)?(e.consume(Y),F):$(Y)}return mo(Y)&&c.length<8?(e.consume(Y),c+=String.fromCharCode(Y),de):$(Y)}function we(Y){return Y===93?(e.consume(Y),te):$(Y)}function te(Y){return Y===62?(e.consume(Y),F):Y===45&&o===2?(e.consume(Y),te):$(Y)}function F(Y){return Y===null||It(Y)?(e.exit("htmlFlowData"),ee(Y)):(e.consume(Y),F)}function ee(Y){return e.exit("htmlFlow"),t(Y)}}function Lne(e,t,n){const i=this;return o;function o(c){return It(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):n(c)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function Vne(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Sb,t,n)}}const Bne={name:"htmlText",tokenize:jne};function jne(e,t,n){const i=this;let o,s,c;return d;function d(te){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(te),h}function h(te){return te===33?(e.consume(te),y):te===47?(e.consume(te),V):te===63?(e.consume(te),L):mo(te)?(e.consume(te),se):n(te)}function y(te){return te===45?(e.consume(te),b):te===91?(e.consume(te),s=0,C):mo(te)?(e.consume(te),z):n(te)}function b(te){return te===45?(e.consume(te),w):n(te)}function S(te){return te===null?n(te):te===45?(e.consume(te),T):It(te)?(c=S,ae(te)):(e.consume(te),S)}function T(te){return te===45?(e.consume(te),w):S(te)}function w(te){return te===62?Z(te):te===45?T(te):S(te)}function C(te){const F="CDATA[";return te===F.charCodeAt(s++)?(e.consume(te),s===F.length?M:C):n(te)}function M(te){return te===null?n(te):te===93?(e.consume(te),_):It(te)?(c=M,ae(te)):(e.consume(te),M)}function _(te){return te===93?(e.consume(te),k):M(te)}function k(te){return te===62?Z(te):te===93?(e.consume(te),k):M(te)}function z(te){return te===null||te===62?Z(te):It(te)?(c=z,ae(te)):(e.consume(te),z)}function L(te){return te===null?n(te):te===63?(e.consume(te),B):It(te)?(c=L,ae(te)):(e.consume(te),L)}function B(te){return te===62?Z(te):L(te)}function V(te){return mo(te)?(e.consume(te),U):n(te)}function U(te){return te===45||Ha(te)?(e.consume(te),U):X(te)}function X(te){return It(te)?(c=X,ae(te)):Vn(te)?(e.consume(te),X):Z(te)}function se(te){return te===45||Ha(te)?(e.consume(te),se):te===47||te===62||Ar(te)?ce(te):n(te)}function ce(te){return te===47?(e.consume(te),Z):te===58||te===95||mo(te)?(e.consume(te),ie):It(te)?(c=ce,ae(te)):Vn(te)?(e.consume(te),ce):Z(te)}function ie(te){return te===45||te===46||te===58||te===95||Ha(te)?(e.consume(te),ie):ue(te)}function ue(te){return te===61?(e.consume(te),$):It(te)?(c=ue,ae(te)):Vn(te)?(e.consume(te),ue):ce(te)}function $(te){return te===null||te===60||te===61||te===62||te===96?n(te):te===34||te===39?(e.consume(te),o=te,le):It(te)?(c=$,ae(te)):Vn(te)?(e.consume(te),$):(e.consume(te),Q)}function le(te){return te===o?(e.consume(te),o=void 0,oe):te===null?n(te):It(te)?(c=le,ae(te)):(e.consume(te),le)}function Q(te){return te===null||te===34||te===39||te===60||te===61||te===96?n(te):te===47||te===62||Ar(te)?ce(te):(e.consume(te),Q)}function oe(te){return te===47||te===62||Ar(te)?ce(te):n(te)}function Z(te){return te===62?(e.consume(te),e.exit("htmlTextData"),e.exit("htmlText"),t):n(te)}function ae(te){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(te),e.exit("lineEnding"),de}function de(te){return Vn(te)?Nn(e,we,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):we(te)}function we(te){return e.enter("htmlTextData"),c(te)}}const fT={name:"labelEnd",resolveAll:Hne,resolveTo:qne,tokenize:Gne},Pne={tokenize:Fne},Une={tokenize:Yne},$ne={tokenize:Xne};function Hne(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==n.length&&El(e,0,e.length,n),e}function qne(e,t){let n=e.length,i=0,o,s,c,d;for(;n--;)if(o=e[n][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=n,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=n);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},y={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",y,t]],d=es(d,e.slice(s+1,s+i+3)),d=es(d,[["enter",b,t]]),d=es(d,V3(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=es(d,[["exit",b,t],e[c-2],e[c-1],["exit",y,t]]),d=es(d,e.slice(c+1)),d=es(d,[["exit",h,t]]),El(e,s,e.length,d),e}function Gne(e,t,n){const i=this;let o=i.events.length,s,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){s=i.events[o][1];break}return d;function d(T){return s?s._inactive?S(T):(c=i.parser.defined.includes(cu(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),h):n(T)}function h(T){return T===40?e.attempt(Pne,b,c?b:S)(T):T===91?e.attempt(Une,b,c?y:S)(T):c?b(T):S(T)}function y(T){return e.attempt($ne,b,S)(T)}function b(T){return t(T)}function S(T){return s._balanced=!0,n(T)}}function Fne(e,t,n){return i;function i(S){return e.enter("resource"),e.enter("resourceMarker"),e.consume(S),e.exit("resourceMarker"),o}function o(S){return Ar(S)?wb(e,s)(S):s(S)}function s(S){return S===41?b(S):FD(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(S)}function c(S){return Ar(S)?wb(e,h)(S):b(S)}function d(S){return n(S)}function h(S){return S===34||S===39||S===40?XD(e,y,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(S):b(S)}function y(S){return Ar(S)?wb(e,b)(S):b(S)}function b(S){return S===41?(e.enter("resourceMarker"),e.consume(S),e.exit("resourceMarker"),e.exit("resource"),t):n(S)}}function Yne(e,t,n){const i=this;return o;function o(d){return YD.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(cu(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):n(d)}function c(d){return n(d)}}function Xne(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Wne={name:"labelStartImage",resolveAll:fT.resolveAll,tokenize:Qne};function Qne(e,t,n){const i=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):n(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):t(d)}}const Kne={name:"labelStartLink",resolveAll:fT.resolveAll,tokenize:Zne};function Zne(e,t,n){const i=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const dT={name:"lineEnding",tokenize:Jne};function Jne(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Nn(e,t,"linePrefix")}}const B3={name:"thematicBreak",tokenize:ere};function ere(e,t,n){let i=0,o;return s;function s(y){return e.enter("thematicBreak"),c(y)}function c(y){return o=y,d(y)}function d(y){return y===o?(e.enter("thematicBreakSequence"),h(y)):i>=3&&(y===null||It(y))?(e.exit("thematicBreak"),t(y)):n(y)}function h(y){return y===o?(e.consume(y),i++,h):(e.exit("thematicBreakSequence"),Vn(y)?Nn(e,d,"whitespace")(y):d(y))}}const qo={continuation:{tokenize:ire},exit:ore,name:"list",tokenize:rre},tre={partial:!0,tokenize:lre},nre={partial:!0,tokenize:are};function rre(e,t,n){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(w){const C=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:sT(w)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(B3,n,y)(w):y(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(w)}return n(w)}function h(w){return sT(w)&&++c<10?(e.consume(w),h):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),y(w)):n(w)}function y(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(Sb,i.interrupt?n:b,e.attempt(tre,T,S))}function b(w){return i.containerState.initialBlankLine=!0,s++,T(w)}function S(w){return Vn(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),T):n(w)}function T(w){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function ire(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Sb,o,s);function o(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Nn(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!Vn(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(nre,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Nn(e,e.attempt(qo,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function are(e,t,n){const i=this;return Nn(e,o,"listItemIndent",i.containerState.size+1);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(s):n(s)}}function ore(e){e.exit(this.containerState.type)}function lre(e,t,n){const i=this;return Nn(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=i.events[i.events.length-1];return!Vn(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const QD={name:"setextUnderline",resolveTo:sre,tokenize:ure};function sre(e,t){let n=e.length,i,o,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function ure(e,t,n){const i=this;let o;return s;function s(y){let b=i.events.length,S;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){S=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||S)?(e.enter("setextHeadingLine"),o=y,c(y)):n(y)}function c(y){return e.enter("setextHeadingLineSequence"),d(y)}function d(y){return y===o?(e.consume(y),d):(e.exit("setextHeadingLineSequence"),Vn(y)?Nn(e,h,"lineSuffix")(y):h(y))}function h(y){return y===null||It(y)?(e.exit("setextHeadingLine"),t(y)):n(y)}}const cre={tokenize:fre};function fre(e){const t=this,n=e.attempt(Sb,i,e.attempt(this.parser.constructs.flowInitial,o,Nn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(gne,o)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const dre={resolveAll:ZD()},hre=KD("string"),pre=KD("text");function KD(e){return{resolveAll:ZD(e==="text"?mre:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],s=n.attempt(o,c,d);return c;function c(b){return y(b)?s(b):d(b)}function d(b){if(b===null){n.consume(b);return}return n.enter("data"),n.consume(b),h}function h(b){return y(b)?(n.exit("data"),s(b)):(n.consume(b),h)}function y(b){if(b===null)return!0;const S=o[b];let T=-1;if(S)for(;++T<S.length;){const w=S[T];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function ZD(e){return t;function t(n,i){let o=-1,s;for(;++o<=n.length;)s===void 0?n[o]&&n[o][1].type==="data"&&(s=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==s+2&&(n[s][1].end=n[o-1][1].end,n.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(n,i):n}}function mre(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],o=t.sliceStream(i);let s=o.length,c=-1,d=0,h;for(;s--;){const y=o[s];if(typeof y=="string"){for(c=y.length;y.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(y===-2)h=!0,d++;else if(y!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(d=0),d){const y={type:n===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...y.start},i.start.offset===i.end.offset?Object.assign(i,y):(e.splice(n,0,["enter",y,t],["exit",y,t]),n+=2)}n++}return e}const gre=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Sne},disable:{null:[]},document:{42:qo,43:qo,45:qo,48:qo,49:qo,50:qo,51:qo,52:qo,53:qo,54:qo,55:qo,56:qo,57:qo,62:PD},flow:{35:One,42:B3,45:[QD,B3],60:Dne,61:QD,95:B3,96:qD,126:qD},flowInitial:{[-2]:cT,[-1]:cT,32:cT},insideSpan:{null:[uT,dre]},string:{38:$D,92:UD},text:{[-5]:dT,[-4]:dT,[-3]:dT,33:Wne,38:$D,42:uT,60:[Kte,Bne],91:Kne,92:[Ane,UD],93:fT,95:uT,96:cne}},Symbol.toStringTag,{value:"Module"}));function yre(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},s=[];let c=[],d=[];const h={attempt:X(V),check:X(U),consume:z,enter:L,exit:B,interrupt:X(U,{interrupt:!0})},y={code:null,containerState:{},defineSkip:M,events:[],now:C,parser:e,previous:null,sliceSerialize:T,sliceStream:w,write:S};let b=t.tokenize.call(y,h);return t.resolveAll&&s.push(t),y;function S(ue){return c=es(c,ue),_(),c[c.length-1]!==null?[]:(se(t,0),y.events=V3(s,y.events,y),y.events)}function T(ue,$){return bre(w(ue),$)}function w(ue){return vre(c,ue)}function C(){const{_bufferIndex:ue,_index:$,line:le,column:Q,offset:oe}=i;return{_bufferIndex:ue,_index:$,line:le,column:Q,offset:oe}}function M(ue){o[ue.line]=ue.column,ie()}function _(){let ue;for(;i._index<c.length;){const $=c[i._index];if(typeof $=="string")for(ue=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ue&&i._bufferIndex<$.length;)k($.charCodeAt(i._bufferIndex));else k($)}}function k(ue){b=b(ue)}function z(ue){It(ue)?(i.line++,i.column=1,i.offset+=ue===-3?2:1,ie()):ue!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),y.previous=ue}function L(ue,$){const le=$||{};return le.type=ue,le.start=C(),y.events.push(["enter",le,y]),d.push(le),le}function B(ue){const $=d.pop();return $.end=C(),y.events.push(["exit",$,y]),$}function V(ue,$){se(ue,$.from)}function U(ue,$){$.restore()}function X(ue,$){return le;function le(Q,oe,Z){let ae,de,we,te;return Array.isArray(Q)?ee(Q):"tokenize"in Q?ee([Q]):F(Q);function F(_e){return je;function je(He){const Xe=He!==null&&_e[He],Qe=He!==null&&_e.null,et=[...Array.isArray(Xe)?Xe:Xe?[Xe]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return ee(et)(He)}}function ee(_e){return ae=_e,de=0,_e.length===0?Z:Y(_e[de])}function Y(_e){return je;function je(He){return te=ce(),we=_e,_e.partial||(y.currentConstruct=_e),_e.name&&y.parser.constructs.disable.null.includes(_e.name)?Se():_e.tokenize.call($?Object.assign(Object.create(y),$):y,h,Re,Se)(He)}}function Re(_e){return ue(we,te),oe}function Se(_e){return te.restore(),++de<ae.length?Y(ae[de]):Z}}}function se(ue,$){ue.resolveAll&&!s.includes(ue)&&s.push(ue),ue.resolve&&El(y.events,$,y.events.length-$,ue.resolve(y.events.slice($),y)),ue.resolveTo&&(y.events=ue.resolveTo(y.events,y))}function ce(){const ue=C(),$=y.previous,le=y.currentConstruct,Q=y.events.length,oe=Array.from(d);return{from:Q,restore:Z};function Z(){i=ue,y.previous=$,y.currentConstruct=le,y.events.length=Q,d=oe,ie()}}function ie(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function vre(e,t){const n=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;let c;if(n===o)c=[e[n].slice(i,s)];else{if(c=e.slice(n,o),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function bre(e,t){let n=-1;const i=[];let o;for(;++n<e.length;){const s=e[n];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
`;break}case-3:{c=`\r
`;break}case-2:{c=t?" ":"	";break}case-1:{if(!t&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,i.push(c)}return i.join("")}function xre(e){const i={constructs:LD([gre,...(e||{}).extensions||[]]),content:o(qte),defined:[],document:o(Fte),flow:o(cre),lazy:{},string:o(hre),text:o(pre)};return i;function o(s){return c;function c(d){return yre(i,s,d)}}}function Sre(e){for(;!GD(e););return e}const JD=/[\0\t\n\r]/g;function Ere(){let e=1,t="",n=!0,i;return o;function o(s,c,d){const h=[];let y,b,S,T,w;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),S=0,t="",n&&(s.charCodeAt(0)===65279&&S++,n=void 0);S<s.length;){if(JD.lastIndex=S,y=JD.exec(s),T=y&&y.index!==void 0?y.index:s.length,w=s.charCodeAt(T),!y){t=s.slice(S);break}if(w===10&&S===T&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),S<T&&(h.push(s.slice(S,T)),e+=T-S),w){case 0:{h.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,h.push(-2);e++<b;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}S=T+1}return d&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const wre=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tre(e){return e.replace(wre,Are)}function Are(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),s=o===120||o===88;return VD(n.slice(s?2:1),s?16:10)}return lT(n)||e}const eN={}.hasOwnProperty;function Cre(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Ore(n)(Sre(xre(n).document().write(Ere()(e,t,!0))))}function Ore(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(dn),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:s(Ot),blockQuote:s(Qe),characterEscape:ce,characterReference:ce,codeFenced:s(et),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(et,c),codeText:s(Be,c),codeTextData:ce,data:ce,codeFlowValue:ce,definition:s(Me),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(st),hardBreakEscape:s(Kt),hardBreakTrailing:s(Kt),htmlFlow:s(xt,c),htmlFlowData:ce,htmlText:s(xt,c),htmlTextData:ce,image:s(Ut),label:c,link:s(dn),listItem:s(at),listItemValue:T,listOrdered:s(mn,S),listUnordered:s(mn),paragraph:s(At),reference:Y,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Ot),strong:s(Mn),thematicBreak:s(Ze)},exit:{atxHeading:h(),atxHeadingSequence:V,autolink:h(),autolinkEmail:Xe,autolinkProtocol:He,blockQuote:h(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:_e,characterReference:je,codeFenced:h(_),codeFencedFence:M,codeFencedFenceInfo:w,codeFencedFenceMeta:C,codeFlowValue:ie,codeIndented:h(k),codeText:h(oe),codeTextData:ie,data:ie,definition:h(),definitionDestinationString:B,definitionLabelString:z,definitionTitleString:L,emphasis:h(),hardBreakEscape:h($),hardBreakTrailing:h($),htmlFlow:h(le),htmlFlowData:ie,htmlText:h(Q),htmlTextData:ie,image:h(ae),label:we,labelText:de,lineEnding:ue,link:h(Z),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Re,resourceDestinationString:te,resourceTitleString:F,resource:ee,setextHeading:h(se),setextHeadingLineSequence:X,setextHeadingText:U,strong:h(),thematicBreak:h()}};tN(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(be){let Ve={type:"root",children:[]};const nt={stack:[Ve],tokenStack:[],config:t,enter:d,exit:y,buffer:c,resume:b,data:n},pt=[];let ut=-1;for(;++ut<be.length;)if(be[ut][1].type==="listOrdered"||be[ut][1].type==="listUnordered")if(be[ut][0]==="enter")pt.push(ut);else{const yt=pt.pop();ut=o(be,yt,ut)}for(ut=-1;++ut<be.length;){const yt=t[be[ut][0]];eN.call(yt,be[ut][1].type)&&yt[be[ut][1].type].call(Object.assign({sliceSerialize:be[ut][2].sliceSerialize},nt),be[ut][1])}if(nt.tokenStack.length>0){const yt=nt.tokenStack[nt.tokenStack.length-1];(yt[1]||nN).call(nt,void 0,yt[0])}for(Ve.position={start:Ld(be.length>0?be[0][1].start:{line:1,column:1,offset:0}),end:Ld(be.length>0?be[be.length-2][1].end:{line:1,column:1,offset:0})},ut=-1;++ut<t.transforms.length;)Ve=t.transforms[ut](Ve)||Ve;return Ve}function o(be,Ve,nt){let pt=Ve-1,ut=-1,yt=!1,gn,Nt,jt,Fn;for(;++pt<=nt;){const bn=be[pt];switch(bn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bn[0]==="enter"?ut++:ut--,Fn=void 0;break}case"lineEndingBlank":{bn[0]==="enter"&&(gn&&!Fn&&!ut&&!jt&&(jt=pt),Fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fn=void 0}if(!ut&&bn[0]==="enter"&&bn[1].type==="listItemPrefix"||ut===-1&&bn[0]==="exit"&&(bn[1].type==="listUnordered"||bn[1].type==="listOrdered")){if(gn){let Fr=pt;for(Nt=void 0;Fr--;){const cr=be[Fr];if(cr[1].type==="lineEnding"||cr[1].type==="lineEndingBlank"){if(cr[0]==="exit")continue;Nt&&(be[Nt][1].type="lineEndingBlank",yt=!0),cr[1].type="lineEnding",Nt=Fr}else if(!(cr[1].type==="linePrefix"||cr[1].type==="blockQuotePrefix"||cr[1].type==="blockQuotePrefixWhitespace"||cr[1].type==="blockQuoteMarker"||cr[1].type==="listItemIndent"))break}jt&&(!Nt||jt<Nt)&&(gn._spread=!0),gn.end=Object.assign({},Nt?be[Nt][1].start:bn[1].end),be.splice(Nt||pt,0,["exit",gn,bn[2]]),pt++,nt++}if(bn[1].type==="listItemPrefix"){const Fr={type:"listItem",_spread:!1,start:Object.assign({},bn[1].start),end:void 0};gn=Fr,be.splice(pt,0,["enter",Fr,bn[2]]),pt++,nt++,jt=void 0,Fn=!0}}}return be[Ve][1]._spread=yt,nt}function s(be,Ve){return nt;function nt(pt){d.call(this,be(pt),pt),Ve&&Ve.call(this,pt)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(be,Ve,nt){this.stack[this.stack.length-1].children.push(be),this.stack.push(be),this.tokenStack.push([Ve,nt||void 0]),be.position={start:Ld(Ve.start),end:void 0}}function h(be){return Ve;function Ve(nt){be&&be.call(this,nt),y.call(this,nt)}}function y(be,Ve){const nt=this.stack.pop(),pt=this.tokenStack.pop();if(pt)pt[0].type!==be.type&&(Ve?Ve.call(this,be,pt[0]):(pt[1]||nN).call(this,be,pt[0]));else throw new Error("Cannot close `"+be.type+"` ("+bb({start:be.start,end:be.end})+"): it’s not open");nt.position.end=Ld(be.end)}function b(){return oT(this.stack.pop())}function S(){this.data.expectingFirstListItemValue=!0}function T(be){if(this.data.expectingFirstListItemValue){const Ve=this.stack[this.stack.length-2];Ve.start=Number.parseInt(this.sliceSerialize(be),10),this.data.expectingFirstListItemValue=void 0}}function w(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.lang=be}function C(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.meta=be}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be.replace(/(\r?\n|\r)$/g,"")}function z(be){const Ve=this.resume(),nt=this.stack[this.stack.length-1];nt.label=Ve,nt.identifier=cu(this.sliceSerialize(be)).toLowerCase()}function L(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.title=be}function B(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.url=be}function V(be){const Ve=this.stack[this.stack.length-1];if(!Ve.depth){const nt=this.sliceSerialize(be).length;Ve.depth=nt}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function X(be){const Ve=this.stack[this.stack.length-1];Ve.depth=this.sliceSerialize(be).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(be){const nt=this.stack[this.stack.length-1].children;let pt=nt[nt.length-1];(!pt||pt.type!=="text")&&(pt=Bt(),pt.position={start:Ld(be.start),end:void 0},nt.push(pt)),this.stack.push(pt)}function ie(be){const Ve=this.stack.pop();Ve.value+=this.sliceSerialize(be),Ve.position.end=Ld(be.end)}function ue(be){const Ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const nt=Ve.children[Ve.children.length-1];nt.position.end=Ld(be.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ve.type)&&(ce.call(this,be),ie.call(this,be))}function $(){this.data.atHardBreak=!0}function le(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function Q(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function oe(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function Z(){const be=this.stack[this.stack.length-1];if(this.data.inReference){const Ve=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=Ve,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function ae(){const be=this.stack[this.stack.length-1];if(this.data.inReference){const Ve=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=Ve,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function de(be){const Ve=this.sliceSerialize(be),nt=this.stack[this.stack.length-2];nt.label=Tre(Ve),nt.identifier=cu(Ve).toLowerCase()}function we(){const be=this.stack[this.stack.length-1],Ve=this.resume(),nt=this.stack[this.stack.length-1];if(this.data.inReference=!0,nt.type==="link"){const pt=be.children;nt.children=pt}else nt.alt=Ve}function te(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.url=be}function F(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.title=be}function ee(){this.data.inReference=void 0}function Y(){this.data.referenceType="collapsed"}function Re(be){const Ve=this.resume(),nt=this.stack[this.stack.length-1];nt.label=Ve,nt.identifier=cu(this.sliceSerialize(be)).toLowerCase(),this.data.referenceType="full"}function Se(be){this.data.characterReferenceType=be.type}function _e(be){const Ve=this.sliceSerialize(be),nt=this.data.characterReferenceType;let pt;nt?(pt=VD(Ve,nt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pt=lT(Ve);const ut=this.stack[this.stack.length-1];ut.value+=pt}function je(be){const Ve=this.stack.pop();Ve.position.end=Ld(be.end)}function He(be){ie.call(this,be);const Ve=this.stack[this.stack.length-1];Ve.url=this.sliceSerialize(be)}function Xe(be){ie.call(this,be);const Ve=this.stack[this.stack.length-1];Ve.url="mailto:"+this.sliceSerialize(be)}function Qe(){return{type:"blockquote",children:[]}}function et(){return{type:"code",lang:null,meta:null,value:""}}function Be(){return{type:"inlineCode",value:""}}function Me(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function Ot(){return{type:"heading",depth:0,children:[]}}function Kt(){return{type:"break"}}function xt(){return{type:"html",value:""}}function Ut(){return{type:"image",title:null,url:"",alt:null}}function dn(){return{type:"link",title:null,url:"",children:[]}}function mn(be){return{type:"list",ordered:be.type==="listOrdered",start:null,spread:be._spread,children:[]}}function at(be){return{type:"listItem",spread:be._spread,checked:null,children:[]}}function At(){return{type:"paragraph",children:[]}}function Mn(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function Ze(){return{type:"thematicBreak"}}}function Ld(e){return{line:e.line,column:e.column,offset:e.offset}}function tN(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?tN(e,i):Rre(e,i)}}function Rre(e,t){let n;for(n in t)if(eN.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function nN(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+bb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bb({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+bb({start:t.start,end:t.end})+") is still open")}function Mre(e){const t=this;t.parser=n;function n(i){return Cre(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function _re(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Dre(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function Nre(e,t){const n=t.value?t.value+`
`:"",i={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(i.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function kre(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zre(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ire(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=Ag(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,d+=1,e.footnoteCounts.set(i,d);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const y={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,y),e.applyData(t,y)}function Lre(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Vre(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function rN(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=i:o.push({type:"text",value:i}),o}function Bre(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return rN(e,t);const o={src:Ag(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function jre(e,t){const n={src:Ag(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function Pre(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function Ure(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return rN(e,t);const o={href:Ag(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function $re(e,t){const n={href:Ag(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Hre(e,t,n){const i=e.all(t),o=n?qre(n):iN(t),s={},c=[];if(typeof t.checked=="boolean"){const b=i[0];let S;b&&b.type==="element"&&b.tagName==="p"?S=b:(S={type:"element",tagName:"p",properties:{},children:[]},i.unshift(S)),S.children.length>0&&S.children.unshift({type:"text",value:" "}),S.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const b=i[d];(o||d!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
`}),b.type==="element"&&b.tagName==="p"&&!o?c.push(...b.children):c.push(b)}const h=i[i.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
`});const y={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,y),e.applyData(t,y)}function qre(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=iN(n[i])}return t}function iN(e){const t=e.spread;return t??e.children.length>1}function Gre(e,t){const n={},i=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<i.length;){const c=i[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Fre(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yre(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Xre(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wre(e,t){const n=e.all(t),i=n.shift(),o=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),o.push(c)}if(n.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},d=eT(t.children[1]),h=wD(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function Qre(e,t,n){const i=n?n.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",c=n&&n.type==="table"?n.align:void 0,d=c?c.length:t.children.length;let h=-1;const y=[];for(;++h<d;){const S=t.children[h],T={},w=c?c[h]:void 0;w&&(T.align=w);let C={type:"element",tagName:s,properties:T,children:[]};S&&(C.children=e.all(S),e.patch(S,C),C=e.applyData(S,C)),y.push(C)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(y,!0)};return e.patch(t,b),e.applyData(t,b)}function Kre(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const aN=9,oN=32;function Zre(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),o=0;const s=[];for(;i;)s.push(lN(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=n.exec(t);return s.push(lN(t.slice(o),o>0,!1)),s.join("")}function lN(e,t,n){let i=0,o=e.length;if(t){let s=e.codePointAt(i);for(;s===aN||s===oN;)i++,s=e.codePointAt(i)}if(n){let s=e.codePointAt(o-1);for(;s===aN||s===oN;)o--,s=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function Jre(e,t){const n={type:"text",value:Zre(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function eie(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const tie={blockquote:_re,break:Dre,code:Nre,delete:kre,emphasis:zre,footnoteReference:Ire,heading:Lre,html:Vre,imageReference:Bre,image:jre,inlineCode:Pre,linkReference:Ure,link:$re,listItem:Hre,list:Gre,paragraph:Fre,root:Yre,strong:Xre,table:Wre,tableCell:Kre,tableRow:Qre,text:Jre,thematicBreak:eie,toml:j3,yaml:j3,definition:j3,footnoteDefinition:j3};function j3(){}const sN=-1,P3=0,Tb=1,U3=2,hT=3,pT=4,mT=5,gT=6,uN=7,cN=8,fN=typeof self=="object"?self:globalThis,nie=(e,t)=>{const n=(o,s)=>(e.set(s,o),o),i=o=>{if(e.has(o))return e.get(o);const[s,c]=t[o];switch(s){case P3:case sN:return n(c,o);case Tb:{const d=n([],o);for(const h of c)d.push(i(h));return d}case U3:{const d=n({},o);for(const[h,y]of c)d[i(h)]=i(y);return d}case hT:return n(new Date(c),o);case pT:{const{source:d,flags:h}=c;return n(new RegExp(d,h),o)}case mT:{const d=n(new Map,o);for(const[h,y]of c)d.set(i(h),i(y));return d}case gT:{const d=n(new Set,o);for(const h of c)d.add(i(h));return d}case uN:{const{name:d,message:h}=c;return n(new fN[d](h),o)}case cN:return n(BigInt(c),o);case"BigInt":return n(Object(BigInt(c)),o);case"ArrayBuffer":return n(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return n(new DataView(d),c)}}return n(new fN[s](c),o)};return i},dN=e=>nie(new Map,e)(0),Og="",{toString:rie}={},{keys:iie}=Object,Ab=e=>{const t=typeof e;if(t!=="object"||!e)return[P3,t];const n=rie.call(e).slice(8,-1);switch(n){case"Array":return[Tb,Og];case"Object":return[U3,Og];case"Date":return[hT,Og];case"RegExp":return[pT,Og];case"Map":return[mT,Og];case"Set":return[gT,Og];case"DataView":return[Tb,n]}return n.includes("Array")?[Tb,n]:n.includes("Error")?[uN,n]:[U3,n]},$3=([e,t])=>e===P3&&(t==="function"||t==="symbol"),aie=(e,t,n,i)=>{const o=(c,d)=>{const h=i.push(c)-1;return n.set(d,h),h},s=c=>{if(n.has(c))return n.get(c);let[d,h]=Ab(c);switch(d){case P3:{let b=c;switch(h){case"bigint":d=cN,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);b=null;break;case"undefined":return o([sN],c)}return o([d,b],c)}case Tb:{if(h){let T=c;return h==="DataView"?T=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(T=new Uint8Array(c)),o([h,[...T]],c)}const b=[],S=o([d,b],c);for(const T of c)b.push(s(T));return S}case U3:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());const b=[],S=o([d,b],c);for(const T of iie(c))(e||!$3(Ab(c[T])))&&b.push([s(T),s(c[T])]);return S}case hT:return o([d,c.toISOString()],c);case pT:{const{source:b,flags:S}=c;return o([d,{source:b,flags:S}],c)}case mT:{const b=[],S=o([d,b],c);for(const[T,w]of c)(e||!($3(Ab(T))||$3(Ab(w))))&&b.push([s(T),s(w)]);return S}case gT:{const b=[],S=o([d,b],c);for(const T of c)(e||!$3(Ab(T)))&&b.push(s(T));return S}}const{message:y}=c;return o([d,{name:h,message:y}],c)};return s},hN=(e,{json:t,lossy:n}={})=>{const i=[];return aie(!(t||n),!!t,new Map,i)(e),i},Cb=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?dN(hN(e,t)):structuredClone(e):(e,t)=>dN(hN(e,t));function oie(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function lie(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sie(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||oie,i=e.options.footnoteBackLabel||lie,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const y=e.footnoteById.get(e.footnoteOrder[h]);if(!y)continue;const b=e.all(y),S=String(y.identifier).toUpperCase(),T=Ag(S.toLowerCase());let w=0;const C=[],M=e.footnoteCounts.get(S);for(;M!==void 0&&++w<=M;){C.length>0&&C.push({type:"text",value:" "});let z=typeof n=="string"?n:n(h,w);typeof z=="string"&&(z={type:"text",value:z}),C.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+T+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,w),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const _=b[b.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const z=_.children[_.children.length-1];z&&z.type==="text"?z.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...C)}else b.push(...C);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(b,!0)};e.patch(y,k),d.push(k)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Cb(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
`}]}}const Ob=(function(e){if(e==null)return die;if(typeof e=="function")return H3(e);if(typeof e=="object")return Array.isArray(e)?uie(e):cie(e);if(typeof e=="string")return fie(e);throw new Error("Expected function, string, or object as test")});function uie(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ob(e[n]);return H3(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function cie(e){const t=e;return H3(n);function n(i){const o=i;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function fie(e){return H3(t);function t(n){return n&&n.type===e}}function H3(e){return t;function t(n,i,o){return!!(hie(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function die(){return!0}function hie(e){return e!==null&&typeof e=="object"&&"type"in e}function tde(e){return e}const pN=[],pie=!0,yT=!1,mN="skip";function vT(e,t,n,i){let o;typeof t=="function"&&typeof n!="function"?(i=n,n=t):o=t;const s=Ob(o),c=i?-1:1;d(e,void 0,[])();function d(h,y,b){const S=h&&typeof h=="object"?h:{};if(typeof S.type=="string"){const w=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(T,"name",{value:"node ("+(h.type+(w?"<"+w+">":""))+")"})}return T;function T(){let w=pN,C,M,_;if((!t||s(h,y,b[b.length-1]||void 0))&&(w=mie(n(h,b)),w[0]===yT))return w;if("children"in h&&h.children){const k=h;if(k.children&&w[0]!==mN)for(M=(i?k.children.length:-1)+c,_=b.concat(k);M>-1&&M<k.children.length;){const z=k.children[M];if(C=d(z,M,_)(),C[0]===yT)return C;M=typeof C[1]=="number"?C[1]:M+c}}return w}}}function mie(e){return Array.isArray(e)?e:typeof e=="number"?[pie,e]:e==null?pN:[e]}function bT(e,t,n,i){let o,s,c;typeof t=="function"&&typeof n!="function"?(s=void 0,c=t,o=n):(s=t,c=n,o=i),vT(e,s,d,o);function d(h,y){const b=y[y.length-1],S=b?b.children.indexOf(h):void 0;return c(h,S,b)}}const xT={}.hasOwnProperty,gie={};function yie(e,t){const n=t||gie,i=new Map,o=new Map,s=new Map,c={...tie,...n.handlers},d={all:y,applyData:bie,definitionById:i,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:n,patch:vie,wrap:Sie};return bT(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const S=b.type==="definition"?i:o,T=String(b.identifier).toUpperCase();S.has(T)||S.set(T,b)}}),d;function h(b,S){const T=b.type,w=d.handlers[T];if(xT.call(d.handlers,T)&&w)return w(d,b,S);if(d.options.passThrough&&d.options.passThrough.includes(T)){if("children"in b){const{children:M,..._}=b,k=Cb(_);return k.children=d.all(b),k}return Cb(b)}return(d.options.unknownHandler||xie)(d,b,S)}function y(b){const S=[];if("children"in b){const T=b.children;let w=-1;for(;++w<T.length;){const C=d.one(T[w],b);if(C){if(w&&T[w-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=gN(C.value)),!Array.isArray(C)&&C.type==="element")){const M=C.children[0];M&&M.type==="text"&&(M.value=gN(M.value))}Array.isArray(C)?S.push(...C):S.push(C)}}}return S}}function vie(e,t){e.position&&(t.position=AD(e))}function bie(e,t){let n=t;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const c="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:c}}n.type==="element"&&s&&Object.assign(n.properties,Cb(s)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function xie(e,t){const n=t.data||{},i="value"in t&&!(xT.call(n,"hProperties")||xT.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Sie(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
`});++i<e.length;)i&&n.push({type:"text",value:`
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function gN(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yN(e,t){const n=yie(e,t),i=n.one(e,void 0),o=sie(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
`},o),s}function Eie(e,t){return e&&"run"in e?async function(n,i){const o=yN(n,{file:i,...t});await e.run(o,i)}:function(n,i){return yN(n,{file:i,...e||t})}}function vN(e){if(e)throw e}var ST,bN;function wie(){if(bN)return ST;bN=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(y){return typeof Array.isArray=="function"?Array.isArray(y):t.call(y)==="[object Array]"},s=function(y){if(!y||t.call(y)!=="[object Object]")return!1;var b=e.call(y,"constructor"),S=y.constructor&&y.constructor.prototype&&e.call(y.constructor.prototype,"isPrototypeOf");if(y.constructor&&!b&&!S)return!1;var T;for(T in y);return typeof T>"u"||e.call(y,T)},c=function(y,b){n&&b.name==="__proto__"?n(y,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):y[b.name]=b.newValue},d=function(y,b){if(b==="__proto__")if(e.call(y,b)){if(i)return i(y,b).value}else return;return y[b]};return ST=function h(){var y,b,S,T,w,C,M=arguments[0],_=1,k=arguments.length,z=!1;for(typeof M=="boolean"&&(z=M,M=arguments[1]||{},_=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});_<k;++_)if(y=arguments[_],y!=null)for(b in y)S=d(M,b),T=d(y,b),M!==T&&(z&&T&&(s(T)||(w=o(T)))?(w?(w=!1,C=S&&o(S)?S:[]):C=S&&s(S)?S:{},c(M,{name:b,newValue:h(z,C,T)})):typeof T<"u"&&c(M,{name:b,newValue:T}));return M},ST}var Tie=wie();const ET=pl(Tie);function wT(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Aie(){const e=[],t={run:n,use:i};return t;function n(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(h,...y){const b=e[++s];let S=-1;if(h){c(h);return}for(;++S<o.length;)(y[S]===null||y[S]===void 0)&&(y[S]=o[S]);o=y,b?Cie(b,d)(...y):c(null,...y)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function Cie(e,t){let n;return i;function i(...c){const d=e.length>c.length;let h;d&&c.push(o);try{h=e.apply(this,c)}catch(y){const b=y;if(d&&n)throw b;return o(b)}d||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...d){n||(n=!0,t(c,...d))}function s(c){o(null,c)}}const ac={basename:Oie,dirname:Rie,extname:Mie,join:_ie,sep:"/"};function Oie(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Rb(e);let n=0,i=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else i<0&&(s=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let c=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(i=o):(d=-1,i=c));return n===i?i=c:i<0&&(i=e.length),e.slice(n,i)}function Rie(e){if(Rb(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Mie(e){Rb(e);let t=e.length,n=-1,i=0,o=-1,s=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){i=t+1;break}continue}n<0&&(c=!0,n=t+1),d===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||n<0||s===0||s===1&&o===n-1&&o===i+1?"":e.slice(o,n)}function _ie(...e){let t=-1,n;for(;++t<e.length;)Rb(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Die(n)}function Die(e){Rb(e);const t=e.codePointAt(0)===47;let n=Nie(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Nie(e,t){let n="",i=0,o=-1,s=0,c=-1,d,h;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=c,s=0;continue}}else if(n.length>0){n="",i=0,o=c,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(o+1,c):n=e.slice(o+1,c),i=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return n}function Rb(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kie={cwd:zie};function zie(){return"/"}function TT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Iie(e){if(typeof e=="string")e=new URL(e);else if(!TT(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Lie(e)}function Lie(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const AT=["history","path","basename","stem","extname","dirname"];class xN{constructor(t){let n;t?TT(t)?n={path:t}:typeof t=="string"||Vie(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":kie.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<AT.length;){const s=AT[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let o;for(o in n)AT.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ac.basename(this.path):void 0}set basename(t){OT(t,"basename"),CT(t,"basename"),this.path=ac.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ac.dirname(this.path):void 0}set dirname(t){SN(this.basename,"dirname"),this.path=ac.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ac.extname(this.path):void 0}set extname(t){if(CT(t,"extname"),SN(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ac.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){TT(t)&&(t=Iie(t)),OT(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ac.basename(this.path,this.extname):void 0}set stem(t){OT(t,"stem"),CT(t,"stem"),this.path=ac.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const o=this.message(t,n,i);throw o.fatal=!0,o}info(t,n,i){const o=this.message(t,n,i);return o.fatal=void 0,o}message(t,n,i){const o=new $a(t,n,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function CT(e,t){if(e&&e.includes(ac.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ac.sep+"`")}function OT(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function SN(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Vie(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bie=(function(e){const i=this.constructor.prototype,o=i[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),jie={}.hasOwnProperty;class RT extends Bie{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Aie()}copy(){const t=new RT;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(ET(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(DT("data",this.frozen),this.namespace[t]=n,this):jie.call(this.namespace,t)&&this.namespace[t]||void 0:t?(DT("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=n.call(t,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=q3(t),i=this.parser||this.Parser;return MT("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),MT("process",this.parser||this.Parser),_T("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(s,c){const d=q3(t),h=i.parse(d);i.run(h,d,function(b,S,T){if(b||!S||!T)return y(b);const w=S,C=i.stringify(w,T);$ie(C)?T.value=C:T.result=C,y(b,T)});function y(b,S){b||!S?c(b):s?s(S):n(void 0,S)}}}processSync(t){let n=!1,i;return this.freeze(),MT("processSync",this.parser||this.Parser),_T("processSync",this.compiler||this.Compiler),this.process(t,o),wN("processSync","process",n),i;function o(s,c){n=!0,vN(s),i=c}}run(t,n,i){EN(t),this.freeze();const o=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(c,d){const h=q3(n);o.run(t,h,y);function y(b,S,T){const w=S||t;b?d(b):c?c(w):i(void 0,w,T)}}}runSync(t,n){let i=!1,o;return this.run(t,n,s),wN("runSync","run",i),o;function s(c,d){vN(c),o=d,i=!0}}stringify(t,n){this.freeze();const i=q3(n),o=this.compiler||this.Compiler;return _T("stringify",o),EN(t),o(t,i)}use(t,...n){const i=this.attachers,o=this.namespace;if(DT("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(y){if(typeof y=="function")h(y,[]);else if(typeof y=="object")if(Array.isArray(y)){const[b,...S]=y;h(b,S)}else c(y);else throw new TypeError("Expected usable value, not `"+y+"`")}function c(y){if(!("plugins"in y)&&!("settings"in y))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(y.plugins),y.settings&&(o.settings=ET(!0,o.settings,y.settings))}function d(y){let b=-1;if(y!=null)if(Array.isArray(y))for(;++b<y.length;){const S=y[b];s(S)}else throw new TypeError("Expected a list of plugins, not `"+y+"`")}function h(y,b){let S=-1,T=-1;for(;++S<i.length;)if(i[S][0]===y){T=S;break}if(T===-1)i.push([y,...b]);else if(b.length>0){let[w,...C]=b;const M=i[T][1];wT(M)&&wT(w)&&(w=ET(!0,M,w)),i[T]=[y,w,...C]}}}}const Pie=new RT().freeze();function MT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _T(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function DT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function EN(e){if(!wT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function wN(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function q3(e){return Uie(e)?e:new xN(e)}function Uie(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $ie(e){return typeof e=="string"||Hie(e)}function Hie(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qie="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",TN=[],AN={allowDangerousHtml:!0},Gie=/^(https?|ircs?|mailto|xmpp)$/i,Fie=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Yie(e){const t=Xie(e),n=Wie(e);return Qie(t.runSync(t.parse(n),n),e)}function Xie(e){const t=e.rehypePlugins||TN,n=e.remarkPlugins||TN,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...AN}:AN;return Pie().use(Mre).use(n).use(Eie,i).use(t)}function Wie(e){const t=e.children||"",n=new xN;return typeof t=="string"&&(n.value=t),n}function Qie(e,t){const n=t.allowedElements,i=t.allowElement,o=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||Kie;for(const b of Fie)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+qie+b.id,void 0);return bT(e,y),Ste(e,{Fragment:H.Fragment,components:o,ignoreInvalidStyle:!0,jsx:H.jsx,jsxs:H.jsxs,passKeys:!0,passNode:!0});function y(b,S,T){if(b.type==="raw"&&T&&typeof S=="number")return c?T.children.splice(S,1):T.children[S]={type:"text",value:b.value},S;if(b.type==="element"){let w;for(w in aT)if(Object.hasOwn(aT,w)&&Object.hasOwn(b.properties,w)){const C=b.properties[w],M=aT[w];(M===null||M.includes(b.tagName))&&(b.properties[w]=h(String(C||""),w,b))}}if(b.type==="element"){let w=n?!n.includes(b.tagName):s?s.includes(b.tagName):!1;if(!w&&i&&typeof S=="number"&&(w=!i(b,S,T)),w&&T&&typeof S=="number")return d&&b.children?T.children.splice(S,1,...b.children):T.children.splice(S,1),S}}}function Kie(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||i!==-1&&t>i||Gie.test(e.slice(0,t))?e:""}const CN=/[#.]/g;function Zie(e,t){const n=e||"",i={};let o=0,s,c;for(;o<n.length;){CN.lastIndex=o;const d=CN.exec(n),h=n.slice(o,d?d.index:n.length);h&&(s?s==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:c=h,o+=h.length),d&&(s=d[0],o++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function ON(e,t,n){const i=n?nae(n):void 0;function o(s,c,...d){let h;if(s==null){h={type:"root",children:[]};const y=c;d.unshift(y)}else{h=Zie(s,t);const y=h.tagName.toLowerCase(),b=i?i.get(y):void 0;if(h.tagName=b||y,Jie(c))d.unshift(c);else for(const[S,T]of Object.entries(c))eae(e,h.properties,S,T)}for(const y of d)NT(h.children,y);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return o}function Jie(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const o=t[i];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const s=o;for(const c of s)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function eae(e,t,n,i){const o=gD(e,n);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?o.spaceSeparated?s=vD(i):o.commaSeparated?s=iD(i):o.commaOrSpaceSeparated?s=vD(iD(i).join(" ")):s=RN(o,o.property,i):Array.isArray(i)?s=[...i]:s=o.property==="style"?tae(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(RN(o,o.property,d));s=c}o.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[o.property]=s}}function NT(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)NT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?NT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function RN(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||gb(n)===gb(t)))return!0}return n}function tae(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function nae(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const rae=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],iae=ON(yD,"div"),aae=ON(z3,"g",rae),kT={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function oae(e,t){return MN(e,{})||{type:"root",children:[]}}function MN(e,t){const n=lae(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function lae(e,t){switch(e.nodeType){case 1:return fae(e,t);case 3:return uae(e);case 8:return cae(e);case 9:return _N(e,t);case 10:return sae();case 11:return _N(e,t);default:return}}function _N(e,t){return{type:"root",children:DN(e,t)}}function sae(){return{type:"doctype"}}function uae(e){return{type:"text",value:e.nodeValue||""}}function cae(e){return{type:"comment",value:e.nodeValue||""}}function fae(e,t){const n=e.namespaceURI,i=n===kT.svg?aae:iae,o=n===kT.html?e.tagName.toLowerCase():e.tagName,s=n===kT.html&&o==="template"?e.content:e,c=e.getAttributeNames(),d={};let h=-1;for(;++h<c.length;)d[c[h]]=e.getAttribute(c[h])||"";return i(o,d,DN(s,t))}function DN(e,t){const n=e.childNodes,i=[];let o=-1;for(;++o<n.length;){const s=MN(n[o],t);s!==void 0&&i.push(s)}return i}new DOMParser;function dae(e,t){const n=hae(e);return oae(n)}function hae(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const NN=(function(e,t,n){const i=Ob(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]}),Rh=(function(e){if(e==null)return gae;if(typeof e=="string")return mae(e);if(typeof e=="object")return pae(e);if(typeof e=="function")return zT(e);throw new Error("Expected function, string, or array as `test`")});function pae(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rh(e[n]);return zT(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function mae(e){return zT(t);function t(n){return n.tagName===e}}function zT(e){return t;function t(n,i,o){return!!(yae(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function gae(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function yae(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const kN=/\n/g,zN=/[\t ]+/g,IT=Rh("br"),IN=Rh(Aae),vae=Rh("p"),LN=Rh("tr"),bae=Rh(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Tae,Cae]),VN=Rh(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function xae(e,t){const n=t||{},i="children"in e?e.children:[],o=VN(e),s=PN(e,{whitespace:n.whitespace||"normal"}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...jN(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<i.length;)c.push(...BN(i[d],e,{whitespace:s,breakBefore:d?void 0:o,breakAfter:d<i.length-1?IT(i[d+1]):o}));const h=[];let y;for(d=-1;++d<c.length;){const b=c[d];typeof b=="number"?y!==void 0&&b>y&&(y=b):b&&(y!==void 0&&y>-1&&h.push(`
`.repeat(y)||" "),y=-1,h.push(b))}return h.join("")}function BN(e,t,n){return e.type==="element"?Sae(e,t,n):e.type==="text"?n.whitespace==="normal"?jN(e,n):Eae(e):[]}function Sae(e,t,n){const i=PN(e,n),o=e.children||[];let s=-1,c=[];if(bae(e))return c;let d,h;for(IT(e)||LN(e)&&NN(t,e,LN)?h=`
`:vae(e)?(d=2,h=2):VN(e)&&(d=1,h=1);++s<o.length;)c=c.concat(BN(o[s],e,{whitespace:i,breakBefore:s?void 0:d,breakAfter:s<o.length-1?IT(o[s+1]):h}));return IN(e)&&NN(t,e,IN)&&c.push("	"),d&&c.unshift(d),h&&c.push(h),c}function jN(e,t){const n=String(e.value),i=[],o=[];let s=0;for(;s<=n.length;){kN.lastIndex=s;const h=kN.exec(n),y=h&&"index"in h?h.index:n.length;i.push(wae(n.slice(s,y).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,y===n.length?t.breakAfter:!0)),s=y+1}let c=-1,d;for(;++c<i.length;)i[c].charCodeAt(i[c].length-1)===8203||c<i.length-1&&i[c+1].charCodeAt(0)===8203?(o.push(i[c]),d=void 0):i[c]?(typeof d=="number"&&o.push(d),o.push(i[c]),d=0):(c===0||c===i.length-1)&&o.push(0);return o}function Eae(e){return[String(e.value)]}function wae(e,t,n){const i=[];let o=0,s;for(;o<e.length;){zN.lastIndex=o;const c=zN.exec(e);s=c?c.index:e.length,!o&&!s&&c&&!t&&i.push(""),o!==s&&i.push(e.slice(o,s)),o=c?s+c[0].length:s}return o!==s&&!n&&i.push(""),i.join(" ")}function PN(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Tae(e){return!!(e.properties||{}).hidden}function Aae(e){return e.tagName==="td"||e.tagName==="th"}function Cae(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class ft extends Error{constructor(t,n){var i="KaTeX parse error: "+t,o,s,c=n&&n.loc;if(c&&c.start<=c.end){var d=c.lexer.input;o=c.start,s=c.end,o===d.length?i+=" at end of input: ":i+=" at position "+(o+1)+": ";var h=d.slice(o,s).replace(/[^]/g,"$&̲"),y;o>15?y="…"+d.slice(o-15,o):y=d.slice(0,o);var b;s+15<d.length?b=d.slice(s,s+15)+"…":b=d.slice(s),i+=y+h+b}super(i),this.name="ParseError",Object.setPrototypeOf(this,ft.prototype),this.position=o,o!=null&&s!=null&&(this.length=s-o),this.rawMessage=t}}var Oae=/([A-Z])/g,LT=e=>e.replace(Oae,"-$1").toLowerCase(),Rae={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Mae=/[&><"']/g,qa=e=>String(e).replace(Mae,t=>Rae[t]),Mb=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Mb(e.body[0]):e:e.type==="font"?Mb(e.body):e,_ae=new Set(["mathord","textord","atom"]),lf=e=>_ae.has(Mb(e).type),Dae=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},VT={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Nae(e){if("default"in e)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}let BT=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var n of Object.keys(VT)){var i=VT[n],o=t[n];this[n]=o!==void 0?i.processor?i.processor(o):o:Nae(i)}}reportNonstrict(t,n,i){var o=this.strict;if(typeof o=="function"&&(o=o(t,n,i)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new ft("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),i);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,i){var o=this.strict;if(typeof o=="function")try{o=o(t,n,i)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=Dae(t.url);if(n==null)return!1;t.protocol=n}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}};class Vd{constructor(t,n,i){this.id=t,this.size=n,this.cramped=i}sup(){return oc[kae[this.id]]}sub(){return oc[zae[this.id]]}fracNum(){return oc[Iae[this.id]]}fracDen(){return oc[Lae[this.id]]}cramp(){return oc[Vae[this.id]]}text(){return oc[Bae[this.id]]}isTight(){return this.size>=2}}var jT=0,G3=1,Rg=2,sf=3,_b=4,ts=5,Mg=6,go=7,oc=[new Vd(jT,0,!1),new Vd(G3,0,!0),new Vd(Rg,1,!1),new Vd(sf,1,!0),new Vd(_b,2,!1),new Vd(ts,2,!0),new Vd(Mg,3,!1),new Vd(go,3,!0)],kae=[_b,ts,_b,ts,Mg,go,Mg,go],zae=[ts,ts,ts,ts,go,go,go,go],Iae=[Rg,sf,_b,ts,Mg,go,Mg,go],Lae=[sf,sf,ts,ts,go,go,go,go],Vae=[G3,G3,sf,sf,ts,ts,go,go],Bae=[jT,G3,Rg,sf,Rg,sf,Rg,sf],un={DISPLAY:oc[jT],TEXT:oc[Rg],SCRIPT:oc[_b],SCRIPTSCRIPT:oc[Mg]},PT=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function jae(e){for(var t=0;t<PT.length;t++)for(var n=PT[t],i=0;i<n.blocks.length;i++){var o=n.blocks[i];if(e>=o[0]&&e<=o[1])return n.name}return null}var F3=[];PT.forEach(e=>e.blocks.forEach(t=>F3.push(...t)));function UN(e){for(var t=0;t<F3.length;t+=2)if(e>=F3[t]&&e<=F3[t+1])return!0;return!1}var _g=80,Pae=function(t,n){return"M95,"+(622+t+n)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+t/2.075+" -"+t+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+t)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Uae=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+t/2.084+" -"+t+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+t)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},$ae=function(t,n){return"M983 "+(10+t+n)+`
l`+t/3.13+" -"+t+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Hae=function(t,n){return"M424,"+(2398+t+n)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+t)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
h400000v`+(40+t)+"h-400000z"},qae=function(t,n){return"M473,"+(2713+t+n)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Gae=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Fae=function(t,n,i){var o=i-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
H742v`+o+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Yae=function(t,n,i){n=1e3*n;var o="";switch(t){case"sqrtMain":o=Pae(n,_g);break;case"sqrtSize1":o=Uae(n,_g);break;case"sqrtSize2":o=$ae(n,_g);break;case"sqrtSize3":o=Hae(n,_g);break;case"sqrtSize4":o=qae(n,_g);break;case"sqrtTall":o=Fae(n,_g,i)}return o},Xae=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},$N={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Wae=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},UT={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Qae={ex:!0,em:!0,mu:!0},HN=function(t){return typeof t!="string"&&(t=t.unit),t in UT||t in Qae||t==="ex"},ii=function(t,n){var i;if(t.unit in UT)i=UT[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")i=n.fontMetrics().cssEmPerMu;else{var o;if(n.style.isTight()?o=n.havingStyle(n.style.text()):o=n,t.unit==="ex")i=o.fontMetrics().xHeight;else if(t.unit==="em")i=o.fontMetrics().quad;else throw new ft("Invalid unit: '"+t.unit+"'");o!==n&&(i*=o.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*i,n.maxSize)},gt=function(t){return+t.toFixed(4)+"em"},Bd=function(t){return t.filter(n=>n).join(" ")},qN=function(t,n,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},n){n.style.isTight()&&this.classes.push("mtight");var o=n.getColor();o&&(this.style.color=o)}},GN=function(t){var n=document.createElement(t);n.className=Bd(this.classes);for(var i of Object.keys(this.style))n.style[i]=this.style[i];for(var o of Object.keys(this.attributes))n.setAttribute(o,this.attributes[o]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n},Kae=/[\s"'>/=\x00-\x1f]/,FN=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+qa(Bd(this.classes))+'"');var i="";for(var o of Object.keys(this.style))i+=LT(o)+":"+this.style[o]+";";i&&(n+=' style="'+qa(i)+'"');for(var s of Object.keys(this.attributes)){if(Kae.test(s))throw new ft("Invalid attribute name '"+s+"'");n+=" "+s+'="'+qa(this.attributes[s])+'"'}n+=">";for(var c=0;c<this.children.length;c++)n+=this.children[c].toMarkup();return n+="</"+t+">",n};class Db{constructor(t,n,i,o){qN.call(this,t,i,o),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return GN.call(this,"span")}toMarkup(){return FN.call(this,"span")}}class $T{constructor(t,n,i,o){qN.call(this,n,o),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return GN.call(this,"a")}toMarkup(){return FN.call(this,"a")}}class Zae{constructor(t,n,i){this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n of Object.keys(this.style))t.style[n]=this.style[n];return t}toMarkup(){var t='<img src="'+qa(this.src)+'"'+(' alt="'+qa(this.alt)+'"'),n="";for(var i of Object.keys(this.style))n+=LT(i)+":"+this.style[i]+";";return n&&(t+=' style="'+qa(n)+'"'),t+="'/>",t}}var Jae={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class ns{constructor(t,n,i,o,s,c,d,h){this.text=t,this.height=n||0,this.depth=i||0,this.italic=o||0,this.skew=s||0,this.width=c||0,this.classes=d||[],this.style=h||{},this.maxFontSize=0;var y=jae(this.text.charCodeAt(0));y&&this.classes.push(y+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Jae[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=gt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Bd(this.classes));for(var i of Object.keys(this.style))n=n||document.createElement("span"),n.style[i]=this.style[i];return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=qa(Bd(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var o of Object.keys(this.style))i+=LT(o)+":"+this.style[o]+";";i&&(t=!0,n+=' style="'+qa(i)+'"');var s=qa(this.text);return t?(n+=">",n+=s,n+="</span>",n):s}}class uf{constructor(t,n){this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+qa(this.attributes[n])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class jd{constructor(t,n){this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",$N[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+qa(this.alternate)+'"/>':'<path d="'+qa($N[this.pathName])+'"/>'}}class HT{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+qa(this.attributes[n])+'"';return t+="/>",t}}function YN(e){if(e instanceof ns)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function eoe(e){if(e instanceof Db)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var lc={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Y3={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},XN={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function toe(e,t){lc[e]=t}function qT(e,t,n){if(!lc[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),o=lc[t][i];if(!o&&e[0]in XN&&(i=XN[e[0]].charCodeAt(0),o=lc[t][i]),!o&&n==="text"&&UN(i)&&(o=lc[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var GT={};function noe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!GT[t]){var n=GT[t]={cssEmPerMu:Y3.quad[t]/18};for(var i in Y3)Y3.hasOwnProperty(i)&&(n[i]=Y3[i][t])}return GT[t]}var roe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ioe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},qr={math:{},text:{}};function N(e,t,n,i,o,s){qr[e][o]={font:t,group:n,replace:i},s&&i&&(qr[e][i]=qr[e][o])}var I="math",ot="text",W="main",fe="ams",Gr="accent-token",Ct="bin",yo="close",Dg="inner",Ft="mathord",Di="op-token",wl="open",X3="punct",pe="rel",cf="spacing",Ce="textord";N(I,W,pe,"≡","\\equiv",!0),N(I,W,pe,"≺","\\prec",!0),N(I,W,pe,"≻","\\succ",!0),N(I,W,pe,"∼","\\sim",!0),N(I,W,pe,"⊥","\\perp"),N(I,W,pe,"⪯","\\preceq",!0),N(I,W,pe,"⪰","\\succeq",!0),N(I,W,pe,"≃","\\simeq",!0),N(I,W,pe,"∣","\\mid",!0),N(I,W,pe,"≪","\\ll",!0),N(I,W,pe,"≫","\\gg",!0),N(I,W,pe,"≍","\\asymp",!0),N(I,W,pe,"∥","\\parallel"),N(I,W,pe,"⋈","\\bowtie",!0),N(I,W,pe,"⌣","\\smile",!0),N(I,W,pe,"⊑","\\sqsubseteq",!0),N(I,W,pe,"⊒","\\sqsupseteq",!0),N(I,W,pe,"≐","\\doteq",!0),N(I,W,pe,"⌢","\\frown",!0),N(I,W,pe,"∋","\\ni",!0),N(I,W,pe,"∝","\\propto",!0),N(I,W,pe,"⊢","\\vdash",!0),N(I,W,pe,"⊣","\\dashv",!0),N(I,W,pe,"∋","\\owns"),N(I,W,X3,".","\\ldotp"),N(I,W,X3,"⋅","\\cdotp"),N(I,W,Ce,"#","\\#"),N(ot,W,Ce,"#","\\#"),N(I,W,Ce,"&","\\&"),N(ot,W,Ce,"&","\\&"),N(I,W,Ce,"ℵ","\\aleph",!0),N(I,W,Ce,"∀","\\forall",!0),N(I,W,Ce,"ℏ","\\hbar",!0),N(I,W,Ce,"∃","\\exists",!0),N(I,W,Ce,"∇","\\nabla",!0),N(I,W,Ce,"♭","\\flat",!0),N(I,W,Ce,"ℓ","\\ell",!0),N(I,W,Ce,"♮","\\natural",!0),N(I,W,Ce,"♣","\\clubsuit",!0),N(I,W,Ce,"℘","\\wp",!0),N(I,W,Ce,"♯","\\sharp",!0),N(I,W,Ce,"♢","\\diamondsuit",!0),N(I,W,Ce,"ℜ","\\Re",!0),N(I,W,Ce,"♡","\\heartsuit",!0),N(I,W,Ce,"ℑ","\\Im",!0),N(I,W,Ce,"♠","\\spadesuit",!0),N(I,W,Ce,"§","\\S",!0),N(ot,W,Ce,"§","\\S"),N(I,W,Ce,"¶","\\P",!0),N(ot,W,Ce,"¶","\\P"),N(I,W,Ce,"†","\\dag"),N(ot,W,Ce,"†","\\dag"),N(ot,W,Ce,"†","\\textdagger"),N(I,W,Ce,"‡","\\ddag"),N(ot,W,Ce,"‡","\\ddag"),N(ot,W,Ce,"‡","\\textdaggerdbl"),N(I,W,yo,"⎱","\\rmoustache",!0),N(I,W,wl,"⎰","\\lmoustache",!0),N(I,W,yo,"⟯","\\rgroup",!0),N(I,W,wl,"⟮","\\lgroup",!0),N(I,W,Ct,"∓","\\mp",!0),N(I,W,Ct,"⊖","\\ominus",!0),N(I,W,Ct,"⊎","\\uplus",!0),N(I,W,Ct,"⊓","\\sqcap",!0),N(I,W,Ct,"∗","\\ast"),N(I,W,Ct,"⊔","\\sqcup",!0),N(I,W,Ct,"◯","\\bigcirc",!0),N(I,W,Ct,"∙","\\bullet",!0),N(I,W,Ct,"‡","\\ddagger"),N(I,W,Ct,"≀","\\wr",!0),N(I,W,Ct,"⨿","\\amalg"),N(I,W,Ct,"&","\\And"),N(I,W,pe,"⟵","\\longleftarrow",!0),N(I,W,pe,"⇐","\\Leftarrow",!0),N(I,W,pe,"⟸","\\Longleftarrow",!0),N(I,W,pe,"⟶","\\longrightarrow",!0),N(I,W,pe,"⇒","\\Rightarrow",!0),N(I,W,pe,"⟹","\\Longrightarrow",!0),N(I,W,pe,"↔","\\leftrightarrow",!0),N(I,W,pe,"⟷","\\longleftrightarrow",!0),N(I,W,pe,"⇔","\\Leftrightarrow",!0),N(I,W,pe,"⟺","\\Longleftrightarrow",!0),N(I,W,pe,"↦","\\mapsto",!0),N(I,W,pe,"⟼","\\longmapsto",!0),N(I,W,pe,"↗","\\nearrow",!0),N(I,W,pe,"↩","\\hookleftarrow",!0),N(I,W,pe,"↪","\\hookrightarrow",!0),N(I,W,pe,"↘","\\searrow",!0),N(I,W,pe,"↼","\\leftharpoonup",!0),N(I,W,pe,"⇀","\\rightharpoonup",!0),N(I,W,pe,"↙","\\swarrow",!0),N(I,W,pe,"↽","\\leftharpoondown",!0),N(I,W,pe,"⇁","\\rightharpoondown",!0),N(I,W,pe,"↖","\\nwarrow",!0),N(I,W,pe,"⇌","\\rightleftharpoons",!0),N(I,fe,pe,"≮","\\nless",!0),N(I,fe,pe,"","\\@nleqslant"),N(I,fe,pe,"","\\@nleqq"),N(I,fe,pe,"⪇","\\lneq",!0),N(I,fe,pe,"≨","\\lneqq",!0),N(I,fe,pe,"","\\@lvertneqq"),N(I,fe,pe,"⋦","\\lnsim",!0),N(I,fe,pe,"⪉","\\lnapprox",!0),N(I,fe,pe,"⊀","\\nprec",!0),N(I,fe,pe,"⋠","\\npreceq",!0),N(I,fe,pe,"⋨","\\precnsim",!0),N(I,fe,pe,"⪹","\\precnapprox",!0),N(I,fe,pe,"≁","\\nsim",!0),N(I,fe,pe,"","\\@nshortmid"),N(I,fe,pe,"∤","\\nmid",!0),N(I,fe,pe,"⊬","\\nvdash",!0),N(I,fe,pe,"⊭","\\nvDash",!0),N(I,fe,pe,"⋪","\\ntriangleleft"),N(I,fe,pe,"⋬","\\ntrianglelefteq",!0),N(I,fe,pe,"⊊","\\subsetneq",!0),N(I,fe,pe,"","\\@varsubsetneq"),N(I,fe,pe,"⫋","\\subsetneqq",!0),N(I,fe,pe,"","\\@varsubsetneqq"),N(I,fe,pe,"≯","\\ngtr",!0),N(I,fe,pe,"","\\@ngeqslant"),N(I,fe,pe,"","\\@ngeqq"),N(I,fe,pe,"⪈","\\gneq",!0),N(I,fe,pe,"≩","\\gneqq",!0),N(I,fe,pe,"","\\@gvertneqq"),N(I,fe,pe,"⋧","\\gnsim",!0),N(I,fe,pe,"⪊","\\gnapprox",!0),N(I,fe,pe,"⊁","\\nsucc",!0),N(I,fe,pe,"⋡","\\nsucceq",!0),N(I,fe,pe,"⋩","\\succnsim",!0),N(I,fe,pe,"⪺","\\succnapprox",!0),N(I,fe,pe,"≆","\\ncong",!0),N(I,fe,pe,"","\\@nshortparallel"),N(I,fe,pe,"∦","\\nparallel",!0),N(I,fe,pe,"⊯","\\nVDash",!0),N(I,fe,pe,"⋫","\\ntriangleright"),N(I,fe,pe,"⋭","\\ntrianglerighteq",!0),N(I,fe,pe,"","\\@nsupseteqq"),N(I,fe,pe,"⊋","\\supsetneq",!0),N(I,fe,pe,"","\\@varsupsetneq"),N(I,fe,pe,"⫌","\\supsetneqq",!0),N(I,fe,pe,"","\\@varsupsetneqq"),N(I,fe,pe,"⊮","\\nVdash",!0),N(I,fe,pe,"⪵","\\precneqq",!0),N(I,fe,pe,"⪶","\\succneqq",!0),N(I,fe,pe,"","\\@nsubseteqq"),N(I,fe,Ct,"⊴","\\unlhd"),N(I,fe,Ct,"⊵","\\unrhd"),N(I,fe,pe,"↚","\\nleftarrow",!0),N(I,fe,pe,"↛","\\nrightarrow",!0),N(I,fe,pe,"⇍","\\nLeftarrow",!0),N(I,fe,pe,"⇏","\\nRightarrow",!0),N(I,fe,pe,"↮","\\nleftrightarrow",!0),N(I,fe,pe,"⇎","\\nLeftrightarrow",!0),N(I,fe,pe,"△","\\vartriangle"),N(I,fe,Ce,"ℏ","\\hslash"),N(I,fe,Ce,"▽","\\triangledown"),N(I,fe,Ce,"◊","\\lozenge"),N(I,fe,Ce,"Ⓢ","\\circledS"),N(I,fe,Ce,"®","\\circledR"),N(ot,fe,Ce,"®","\\circledR"),N(I,fe,Ce,"∡","\\measuredangle",!0),N(I,fe,Ce,"∄","\\nexists"),N(I,fe,Ce,"℧","\\mho"),N(I,fe,Ce,"Ⅎ","\\Finv",!0),N(I,fe,Ce,"⅁","\\Game",!0),N(I,fe,Ce,"‵","\\backprime"),N(I,fe,Ce,"▲","\\blacktriangle"),N(I,fe,Ce,"▼","\\blacktriangledown"),N(I,fe,Ce,"■","\\blacksquare"),N(I,fe,Ce,"⧫","\\blacklozenge"),N(I,fe,Ce,"★","\\bigstar"),N(I,fe,Ce,"∢","\\sphericalangle",!0),N(I,fe,Ce,"∁","\\complement",!0),N(I,fe,Ce,"ð","\\eth",!0),N(ot,W,Ce,"ð","ð"),N(I,fe,Ce,"╱","\\diagup"),N(I,fe,Ce,"╲","\\diagdown"),N(I,fe,Ce,"□","\\square"),N(I,fe,Ce,"□","\\Box"),N(I,fe,Ce,"◊","\\Diamond"),N(I,fe,Ce,"¥","\\yen",!0),N(ot,fe,Ce,"¥","\\yen",!0),N(I,fe,Ce,"✓","\\checkmark",!0),N(ot,fe,Ce,"✓","\\checkmark"),N(I,fe,Ce,"ℶ","\\beth",!0),N(I,fe,Ce,"ℸ","\\daleth",!0),N(I,fe,Ce,"ℷ","\\gimel",!0),N(I,fe,Ce,"ϝ","\\digamma",!0),N(I,fe,Ce,"ϰ","\\varkappa"),N(I,fe,wl,"┌","\\@ulcorner",!0),N(I,fe,yo,"┐","\\@urcorner",!0),N(I,fe,wl,"└","\\@llcorner",!0),N(I,fe,yo,"┘","\\@lrcorner",!0),N(I,fe,pe,"≦","\\leqq",!0),N(I,fe,pe,"⩽","\\leqslant",!0),N(I,fe,pe,"⪕","\\eqslantless",!0),N(I,fe,pe,"≲","\\lesssim",!0),N(I,fe,pe,"⪅","\\lessapprox",!0),N(I,fe,pe,"≊","\\approxeq",!0),N(I,fe,Ct,"⋖","\\lessdot"),N(I,fe,pe,"⋘","\\lll",!0),N(I,fe,pe,"≶","\\lessgtr",!0),N(I,fe,pe,"⋚","\\lesseqgtr",!0),N(I,fe,pe,"⪋","\\lesseqqgtr",!0),N(I,fe,pe,"≑","\\doteqdot"),N(I,fe,pe,"≓","\\risingdotseq",!0),N(I,fe,pe,"≒","\\fallingdotseq",!0),N(I,fe,pe,"∽","\\backsim",!0),N(I,fe,pe,"⋍","\\backsimeq",!0),N(I,fe,pe,"⫅","\\subseteqq",!0),N(I,fe,pe,"⋐","\\Subset",!0),N(I,fe,pe,"⊏","\\sqsubset",!0),N(I,fe,pe,"≼","\\preccurlyeq",!0),N(I,fe,pe,"⋞","\\curlyeqprec",!0),N(I,fe,pe,"≾","\\precsim",!0),N(I,fe,pe,"⪷","\\precapprox",!0),N(I,fe,pe,"⊲","\\vartriangleleft"),N(I,fe,pe,"⊴","\\trianglelefteq"),N(I,fe,pe,"⊨","\\vDash",!0),N(I,fe,pe,"⊪","\\Vvdash",!0),N(I,fe,pe,"⌣","\\smallsmile"),N(I,fe,pe,"⌢","\\smallfrown"),N(I,fe,pe,"≏","\\bumpeq",!0),N(I,fe,pe,"≎","\\Bumpeq",!0),N(I,fe,pe,"≧","\\geqq",!0),N(I,fe,pe,"⩾","\\geqslant",!0),N(I,fe,pe,"⪖","\\eqslantgtr",!0),N(I,fe,pe,"≳","\\gtrsim",!0),N(I,fe,pe,"⪆","\\gtrapprox",!0),N(I,fe,Ct,"⋗","\\gtrdot"),N(I,fe,pe,"⋙","\\ggg",!0),N(I,fe,pe,"≷","\\gtrless",!0),N(I,fe,pe,"⋛","\\gtreqless",!0),N(I,fe,pe,"⪌","\\gtreqqless",!0),N(I,fe,pe,"≖","\\eqcirc",!0),N(I,fe,pe,"≗","\\circeq",!0),N(I,fe,pe,"≜","\\triangleq",!0),N(I,fe,pe,"∼","\\thicksim"),N(I,fe,pe,"≈","\\thickapprox"),N(I,fe,pe,"⫆","\\supseteqq",!0),N(I,fe,pe,"⋑","\\Supset",!0),N(I,fe,pe,"⊐","\\sqsupset",!0),N(I,fe,pe,"≽","\\succcurlyeq",!0),N(I,fe,pe,"⋟","\\curlyeqsucc",!0),N(I,fe,pe,"≿","\\succsim",!0),N(I,fe,pe,"⪸","\\succapprox",!0),N(I,fe,pe,"⊳","\\vartriangleright"),N(I,fe,pe,"⊵","\\trianglerighteq"),N(I,fe,pe,"⊩","\\Vdash",!0),N(I,fe,pe,"∣","\\shortmid"),N(I,fe,pe,"∥","\\shortparallel"),N(I,fe,pe,"≬","\\between",!0),N(I,fe,pe,"⋔","\\pitchfork",!0),N(I,fe,pe,"∝","\\varpropto"),N(I,fe,pe,"◀","\\blacktriangleleft"),N(I,fe,pe,"∴","\\therefore",!0),N(I,fe,pe,"∍","\\backepsilon"),N(I,fe,pe,"▶","\\blacktriangleright"),N(I,fe,pe,"∵","\\because",!0),N(I,fe,pe,"⋘","\\llless"),N(I,fe,pe,"⋙","\\gggtr"),N(I,fe,Ct,"⊲","\\lhd"),N(I,fe,Ct,"⊳","\\rhd"),N(I,fe,pe,"≂","\\eqsim",!0),N(I,W,pe,"⋈","\\Join"),N(I,fe,pe,"≑","\\Doteq",!0),N(I,fe,Ct,"∔","\\dotplus",!0),N(I,fe,Ct,"∖","\\smallsetminus"),N(I,fe,Ct,"⋒","\\Cap",!0),N(I,fe,Ct,"⋓","\\Cup",!0),N(I,fe,Ct,"⩞","\\doublebarwedge",!0),N(I,fe,Ct,"⊟","\\boxminus",!0),N(I,fe,Ct,"⊞","\\boxplus",!0),N(I,fe,Ct,"⋇","\\divideontimes",!0),N(I,fe,Ct,"⋉","\\ltimes",!0),N(I,fe,Ct,"⋊","\\rtimes",!0),N(I,fe,Ct,"⋋","\\leftthreetimes",!0),N(I,fe,Ct,"⋌","\\rightthreetimes",!0),N(I,fe,Ct,"⋏","\\curlywedge",!0),N(I,fe,Ct,"⋎","\\curlyvee",!0),N(I,fe,Ct,"⊝","\\circleddash",!0),N(I,fe,Ct,"⊛","\\circledast",!0),N(I,fe,Ct,"⋅","\\centerdot"),N(I,fe,Ct,"⊺","\\intercal",!0),N(I,fe,Ct,"⋒","\\doublecap"),N(I,fe,Ct,"⋓","\\doublecup"),N(I,fe,Ct,"⊠","\\boxtimes",!0),N(I,fe,pe,"⇢","\\dashrightarrow",!0),N(I,fe,pe,"⇠","\\dashleftarrow",!0),N(I,fe,pe,"⇇","\\leftleftarrows",!0),N(I,fe,pe,"⇆","\\leftrightarrows",!0),N(I,fe,pe,"⇚","\\Lleftarrow",!0),N(I,fe,pe,"↞","\\twoheadleftarrow",!0),N(I,fe,pe,"↢","\\leftarrowtail",!0),N(I,fe,pe,"↫","\\looparrowleft",!0),N(I,fe,pe,"⇋","\\leftrightharpoons",!0),N(I,fe,pe,"↶","\\curvearrowleft",!0),N(I,fe,pe,"↺","\\circlearrowleft",!0),N(I,fe,pe,"↰","\\Lsh",!0),N(I,fe,pe,"⇈","\\upuparrows",!0),N(I,fe,pe,"↿","\\upharpoonleft",!0),N(I,fe,pe,"⇃","\\downharpoonleft",!0),N(I,W,pe,"⊶","\\origof",!0),N(I,W,pe,"⊷","\\imageof",!0),N(I,fe,pe,"⊸","\\multimap",!0),N(I,fe,pe,"↭","\\leftrightsquigarrow",!0),N(I,fe,pe,"⇉","\\rightrightarrows",!0),N(I,fe,pe,"⇄","\\rightleftarrows",!0),N(I,fe,pe,"↠","\\twoheadrightarrow",!0),N(I,fe,pe,"↣","\\rightarrowtail",!0),N(I,fe,pe,"↬","\\looparrowright",!0),N(I,fe,pe,"↷","\\curvearrowright",!0),N(I,fe,pe,"↻","\\circlearrowright",!0),N(I,fe,pe,"↱","\\Rsh",!0),N(I,fe,pe,"⇊","\\downdownarrows",!0),N(I,fe,pe,"↾","\\upharpoonright",!0),N(I,fe,pe,"⇂","\\downharpoonright",!0),N(I,fe,pe,"⇝","\\rightsquigarrow",!0),N(I,fe,pe,"⇝","\\leadsto"),N(I,fe,pe,"⇛","\\Rrightarrow",!0),N(I,fe,pe,"↾","\\restriction"),N(I,W,Ce,"‘","`"),N(I,W,Ce,"$","\\$"),N(ot,W,Ce,"$","\\$"),N(ot,W,Ce,"$","\\textdollar"),N(I,W,Ce,"%","\\%"),N(ot,W,Ce,"%","\\%"),N(I,W,Ce,"_","\\_"),N(ot,W,Ce,"_","\\_"),N(ot,W,Ce,"_","\\textunderscore"),N(I,W,Ce,"∠","\\angle",!0),N(I,W,Ce,"∞","\\infty",!0),N(I,W,Ce,"′","\\prime"),N(I,W,Ce,"△","\\triangle"),N(I,W,Ce,"Γ","\\Gamma",!0),N(I,W,Ce,"Δ","\\Delta",!0),N(I,W,Ce,"Θ","\\Theta",!0),N(I,W,Ce,"Λ","\\Lambda",!0),N(I,W,Ce,"Ξ","\\Xi",!0),N(I,W,Ce,"Π","\\Pi",!0),N(I,W,Ce,"Σ","\\Sigma",!0),N(I,W,Ce,"Υ","\\Upsilon",!0),N(I,W,Ce,"Φ","\\Phi",!0),N(I,W,Ce,"Ψ","\\Psi",!0),N(I,W,Ce,"Ω","\\Omega",!0),N(I,W,Ce,"A","Α"),N(I,W,Ce,"B","Β"),N(I,W,Ce,"E","Ε"),N(I,W,Ce,"Z","Ζ"),N(I,W,Ce,"H","Η"),N(I,W,Ce,"I","Ι"),N(I,W,Ce,"K","Κ"),N(I,W,Ce,"M","Μ"),N(I,W,Ce,"N","Ν"),N(I,W,Ce,"O","Ο"),N(I,W,Ce,"P","Ρ"),N(I,W,Ce,"T","Τ"),N(I,W,Ce,"X","Χ"),N(I,W,Ce,"¬","\\neg",!0),N(I,W,Ce,"¬","\\lnot"),N(I,W,Ce,"⊤","\\top"),N(I,W,Ce,"⊥","\\bot"),N(I,W,Ce,"∅","\\emptyset"),N(I,fe,Ce,"∅","\\varnothing"),N(I,W,Ft,"α","\\alpha",!0),N(I,W,Ft,"β","\\beta",!0),N(I,W,Ft,"γ","\\gamma",!0),N(I,W,Ft,"δ","\\delta",!0),N(I,W,Ft,"ϵ","\\epsilon",!0),N(I,W,Ft,"ζ","\\zeta",!0),N(I,W,Ft,"η","\\eta",!0),N(I,W,Ft,"θ","\\theta",!0),N(I,W,Ft,"ι","\\iota",!0),N(I,W,Ft,"κ","\\kappa",!0),N(I,W,Ft,"λ","\\lambda",!0),N(I,W,Ft,"μ","\\mu",!0),N(I,W,Ft,"ν","\\nu",!0),N(I,W,Ft,"ξ","\\xi",!0),N(I,W,Ft,"ο","\\omicron",!0),N(I,W,Ft,"π","\\pi",!0),N(I,W,Ft,"ρ","\\rho",!0),N(I,W,Ft,"σ","\\sigma",!0),N(I,W,Ft,"τ","\\tau",!0),N(I,W,Ft,"υ","\\upsilon",!0),N(I,W,Ft,"ϕ","\\phi",!0),N(I,W,Ft,"χ","\\chi",!0),N(I,W,Ft,"ψ","\\psi",!0),N(I,W,Ft,"ω","\\omega",!0),N(I,W,Ft,"ε","\\varepsilon",!0),N(I,W,Ft,"ϑ","\\vartheta",!0),N(I,W,Ft,"ϖ","\\varpi",!0),N(I,W,Ft,"ϱ","\\varrho",!0),N(I,W,Ft,"ς","\\varsigma",!0),N(I,W,Ft,"φ","\\varphi",!0),N(I,W,Ct,"∗","*",!0),N(I,W,Ct,"+","+"),N(I,W,Ct,"−","-",!0),N(I,W,Ct,"⋅","\\cdot",!0),N(I,W,Ct,"∘","\\circ",!0),N(I,W,Ct,"÷","\\div",!0),N(I,W,Ct,"±","\\pm",!0),N(I,W,Ct,"×","\\times",!0),N(I,W,Ct,"∩","\\cap",!0),N(I,W,Ct,"∪","\\cup",!0),N(I,W,Ct,"∖","\\setminus",!0),N(I,W,Ct,"∧","\\land"),N(I,W,Ct,"∨","\\lor"),N(I,W,Ct,"∧","\\wedge",!0),N(I,W,Ct,"∨","\\vee",!0),N(I,W,Ce,"√","\\surd"),N(I,W,wl,"⟨","\\langle",!0),N(I,W,wl,"∣","\\lvert"),N(I,W,wl,"∥","\\lVert"),N(I,W,yo,"?","?"),N(I,W,yo,"!","!"),N(I,W,yo,"⟩","\\rangle",!0),N(I,W,yo,"∣","\\rvert"),N(I,W,yo,"∥","\\rVert"),N(I,W,pe,"=","="),N(I,W,pe,":",":"),N(I,W,pe,"≈","\\approx",!0),N(I,W,pe,"≅","\\cong",!0),N(I,W,pe,"≥","\\ge"),N(I,W,pe,"≥","\\geq",!0),N(I,W,pe,"←","\\gets"),N(I,W,pe,">","\\gt",!0),N(I,W,pe,"∈","\\in",!0),N(I,W,pe,"","\\@not"),N(I,W,pe,"⊂","\\subset",!0),N(I,W,pe,"⊃","\\supset",!0),N(I,W,pe,"⊆","\\subseteq",!0),N(I,W,pe,"⊇","\\supseteq",!0),N(I,fe,pe,"⊈","\\nsubseteq",!0),N(I,fe,pe,"⊉","\\nsupseteq",!0),N(I,W,pe,"⊨","\\models"),N(I,W,pe,"←","\\leftarrow",!0),N(I,W,pe,"≤","\\le"),N(I,W,pe,"≤","\\leq",!0),N(I,W,pe,"<","\\lt",!0),N(I,W,pe,"→","\\rightarrow",!0),N(I,W,pe,"→","\\to"),N(I,fe,pe,"≱","\\ngeq",!0),N(I,fe,pe,"≰","\\nleq",!0),N(I,W,cf," ","\\ "),N(I,W,cf," ","\\space"),N(I,W,cf," ","\\nobreakspace"),N(ot,W,cf," ","\\ "),N(ot,W,cf," "," "),N(ot,W,cf," ","\\space"),N(ot,W,cf," ","\\nobreakspace"),N(I,W,cf,null,"\\nobreak"),N(I,W,cf,null,"\\allowbreak"),N(I,W,X3,",",","),N(I,W,X3,";",";"),N(I,fe,Ct,"⊼","\\barwedge",!0),N(I,fe,Ct,"⊻","\\veebar",!0),N(I,W,Ct,"⊙","\\odot",!0),N(I,W,Ct,"⊕","\\oplus",!0),N(I,W,Ct,"⊗","\\otimes",!0),N(I,W,Ce,"∂","\\partial",!0),N(I,W,Ct,"⊘","\\oslash",!0),N(I,fe,Ct,"⊚","\\circledcirc",!0),N(I,fe,Ct,"⊡","\\boxdot",!0),N(I,W,Ct,"△","\\bigtriangleup"),N(I,W,Ct,"▽","\\bigtriangledown"),N(I,W,Ct,"†","\\dagger"),N(I,W,Ct,"⋄","\\diamond"),N(I,W,Ct,"⋆","\\star"),N(I,W,Ct,"◃","\\triangleleft"),N(I,W,Ct,"▹","\\triangleright"),N(I,W,wl,"{","\\{"),N(ot,W,Ce,"{","\\{"),N(ot,W,Ce,"{","\\textbraceleft"),N(I,W,yo,"}","\\}"),N(ot,W,Ce,"}","\\}"),N(ot,W,Ce,"}","\\textbraceright"),N(I,W,wl,"{","\\lbrace"),N(I,W,yo,"}","\\rbrace"),N(I,W,wl,"[","\\lbrack",!0),N(ot,W,Ce,"[","\\lbrack",!0),N(I,W,yo,"]","\\rbrack",!0),N(ot,W,Ce,"]","\\rbrack",!0),N(I,W,wl,"(","\\lparen",!0),N(I,W,yo,")","\\rparen",!0),N(ot,W,Ce,"<","\\textless",!0),N(ot,W,Ce,">","\\textgreater",!0),N(I,W,wl,"⌊","\\lfloor",!0),N(I,W,yo,"⌋","\\rfloor",!0),N(I,W,wl,"⌈","\\lceil",!0),N(I,W,yo,"⌉","\\rceil",!0),N(I,W,Ce,"\\","\\backslash"),N(I,W,Ce,"∣","|"),N(I,W,Ce,"∣","\\vert"),N(ot,W,Ce,"|","\\textbar",!0),N(I,W,Ce,"∥","\\|"),N(I,W,Ce,"∥","\\Vert"),N(ot,W,Ce,"∥","\\textbardbl"),N(ot,W,Ce,"~","\\textasciitilde"),N(ot,W,Ce,"\\","\\textbackslash"),N(ot,W,Ce,"^","\\textasciicircum"),N(I,W,pe,"↑","\\uparrow",!0),N(I,W,pe,"⇑","\\Uparrow",!0),N(I,W,pe,"↓","\\downarrow",!0),N(I,W,pe,"⇓","\\Downarrow",!0),N(I,W,pe,"↕","\\updownarrow",!0),N(I,W,pe,"⇕","\\Updownarrow",!0),N(I,W,Di,"∐","\\coprod"),N(I,W,Di,"⋁","\\bigvee"),N(I,W,Di,"⋀","\\bigwedge"),N(I,W,Di,"⨄","\\biguplus"),N(I,W,Di,"⋂","\\bigcap"),N(I,W,Di,"⋃","\\bigcup"),N(I,W,Di,"∫","\\int"),N(I,W,Di,"∫","\\intop"),N(I,W,Di,"∬","\\iint"),N(I,W,Di,"∭","\\iiint"),N(I,W,Di,"∏","\\prod"),N(I,W,Di,"∑","\\sum"),N(I,W,Di,"⨂","\\bigotimes"),N(I,W,Di,"⨁","\\bigoplus"),N(I,W,Di,"⨀","\\bigodot"),N(I,W,Di,"∮","\\oint"),N(I,W,Di,"∯","\\oiint"),N(I,W,Di,"∰","\\oiiint"),N(I,W,Di,"⨆","\\bigsqcup"),N(I,W,Di,"∫","\\smallint"),N(ot,W,Dg,"…","\\textellipsis"),N(I,W,Dg,"…","\\mathellipsis"),N(ot,W,Dg,"…","\\ldots",!0),N(I,W,Dg,"…","\\ldots",!0),N(I,W,Dg,"⋯","\\@cdots",!0),N(I,W,Dg,"⋱","\\ddots",!0),N(I,W,Ce,"⋮","\\varvdots"),N(ot,W,Ce,"⋮","\\varvdots"),N(I,W,Gr,"ˊ","\\acute"),N(I,W,Gr,"ˋ","\\grave"),N(I,W,Gr,"¨","\\ddot"),N(I,W,Gr,"~","\\tilde"),N(I,W,Gr,"ˉ","\\bar"),N(I,W,Gr,"˘","\\breve"),N(I,W,Gr,"ˇ","\\check"),N(I,W,Gr,"^","\\hat"),N(I,W,Gr,"⃗","\\vec"),N(I,W,Gr,"˙","\\dot"),N(I,W,Gr,"˚","\\mathring"),N(I,W,Ft,"","\\@imath"),N(I,W,Ft,"","\\@jmath"),N(I,W,Ce,"ı","ı"),N(I,W,Ce,"ȷ","ȷ"),N(ot,W,Ce,"ı","\\i",!0),N(ot,W,Ce,"ȷ","\\j",!0),N(ot,W,Ce,"ß","\\ss",!0),N(ot,W,Ce,"æ","\\ae",!0),N(ot,W,Ce,"œ","\\oe",!0),N(ot,W,Ce,"ø","\\o",!0),N(ot,W,Ce,"Æ","\\AE",!0),N(ot,W,Ce,"Œ","\\OE",!0),N(ot,W,Ce,"Ø","\\O",!0),N(ot,W,Gr,"ˊ","\\'"),N(ot,W,Gr,"ˋ","\\`"),N(ot,W,Gr,"ˆ","\\^"),N(ot,W,Gr,"˜","\\~"),N(ot,W,Gr,"ˉ","\\="),N(ot,W,Gr,"˘","\\u"),N(ot,W,Gr,"˙","\\."),N(ot,W,Gr,"¸","\\c"),N(ot,W,Gr,"˚","\\r"),N(ot,W,Gr,"ˇ","\\v"),N(ot,W,Gr,"¨",'\\"'),N(ot,W,Gr,"˝","\\H"),N(ot,W,Gr,"◯","\\textcircled");var WN={"--":!0,"---":!0,"``":!0,"''":!0};N(ot,W,Ce,"–","--",!0),N(ot,W,Ce,"–","\\textendash"),N(ot,W,Ce,"—","---",!0),N(ot,W,Ce,"—","\\textemdash"),N(ot,W,Ce,"‘","`",!0),N(ot,W,Ce,"‘","\\textquoteleft"),N(ot,W,Ce,"’","'",!0),N(ot,W,Ce,"’","\\textquoteright"),N(ot,W,Ce,"“","``",!0),N(ot,W,Ce,"“","\\textquotedblleft"),N(ot,W,Ce,"”","''",!0),N(ot,W,Ce,"”","\\textquotedblright"),N(I,W,Ce,"°","\\degree",!0),N(ot,W,Ce,"°","\\degree"),N(ot,W,Ce,"°","\\textdegree",!0),N(I,W,Ce,"£","\\pounds"),N(I,W,Ce,"£","\\mathsterling",!0),N(ot,W,Ce,"£","\\pounds"),N(ot,W,Ce,"£","\\textsterling",!0),N(I,fe,Ce,"✠","\\maltese"),N(ot,fe,Ce,"✠","\\maltese");for(var QN='0123456789/@."',FT=0;FT<QN.length;FT++){var KN=QN.charAt(FT);N(I,W,Ce,KN,KN)}for(var ZN='0123456789!@*()-=+";:?/.,',YT=0;YT<ZN.length;YT++){var JN=ZN.charAt(YT);N(ot,W,Ce,JN,JN)}for(var W3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",XT=0;XT<W3.length;XT++){var Q3=W3.charAt(XT);N(I,W,Ft,Q3,Q3),N(ot,W,Ce,Q3,Q3)}N(I,fe,Ce,"C","ℂ"),N(ot,fe,Ce,"C","ℂ"),N(I,fe,Ce,"H","ℍ"),N(ot,fe,Ce,"H","ℍ"),N(I,fe,Ce,"N","ℕ"),N(ot,fe,Ce,"N","ℕ"),N(I,fe,Ce,"P","ℙ"),N(ot,fe,Ce,"P","ℙ"),N(I,fe,Ce,"Q","ℚ"),N(ot,fe,Ce,"Q","ℚ"),N(I,fe,Ce,"R","ℝ"),N(ot,fe,Ce,"R","ℝ"),N(I,fe,Ce,"Z","ℤ"),N(ot,fe,Ce,"Z","ℤ"),N(I,W,Ft,"h","ℎ"),N(ot,W,Ft,"h","ℎ");for(var rn="",vo=0;vo<W3.length;vo++){var hi=W3.charAt(vo);rn=String.fromCharCode(55349,56320+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56372+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56424+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56580+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56684+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56736+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56788+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56840+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56944+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),vo<26&&(rn=String.fromCharCode(55349,56632+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56476+vo),N(I,W,Ft,hi,rn),N(ot,W,Ce,hi,rn))}rn="𝕜",N(I,W,Ft,"k",rn),N(ot,W,Ce,"k",rn);for(var Mh=0;Mh<10;Mh++){var Pd=Mh.toString();rn=String.fromCharCode(55349,57294+Mh),N(I,W,Ft,Pd,rn),N(ot,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57314+Mh),N(I,W,Ft,Pd,rn),N(ot,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57324+Mh),N(I,W,Ft,Pd,rn),N(ot,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57334+Mh),N(I,W,Ft,Pd,rn),N(ot,W,Ce,Pd,rn)}for(var WT="ÐÞþ",QT=0;QT<WT.length;QT++){var K3=WT.charAt(QT);N(I,W,Ft,K3,K3),N(ot,W,Ce,K3,K3)}var Z3=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],ek=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],aoe=(e,t)=>{var n=e.charCodeAt(0),i=e.charCodeAt(1),o=(n-55296)*1024+(i-56320)+65536,s=t==="math"?0:1;if(119808<=o&&o<120484){var c=Math.floor((o-119808)/26);return[Z3[c][2],Z3[c][s]]}else if(120782<=o&&o<=120831){var d=Math.floor((o-120782)/10);return[ek[d][2],ek[d][s]]}else{if(o===120485||o===120486)return[Z3[0][2],Z3[0][s]];if(120486<o&&o<120782)return["",""];throw new ft("Unsupported character: "+e)}};let Nb=class{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}};var J3=function(t,n,i){if(qr[i][t]){var o=qr[i][t].replace;o&&(t=o)}return{value:t,metrics:qT(t,n,i)}},bo=function(t,n,i,o,s){var c=J3(t,n,i),d=c.metrics;t=c.value;var h;if(d){var y=d.italic;(i==="text"||o&&o.font==="mathit")&&(y=0),h=new ns(t,d.height,d.depth,y,d.skew,d.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+i+"'")),h=new ns(t,0,0,0,0,0,s);if(o){h.maxFontSize=o.sizeMultiplier,o.style.isTight()&&h.classes.push("mtight");var b=o.getColor();b&&(h.style.color=b)}return h},KT=function(t,n,i,o){return o===void 0&&(o=[]),i.font==="boldsymbol"&&J3(t,"Main-Bold",n).metrics?bo(t,"Main-Bold",n,i,o.concat(["mathbf"])):t==="\\"||qr[n][t].font==="main"?bo(t,"Main-Regular",n,i,o):bo(t,"AMS-Regular",n,i,o.concat(["amsrm"]))},ooe=function(t,n,i,o,s){return s!=="textord"&&J3(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},e6=function(t,n,i){var o=t.mode,s=t.text,c=["mord"],d=o==="math"||o==="text"&&n.font,h=d?n.font:n.fontFamily,y="",b="";if(s.charCodeAt(0)===55349&&([y,b]=aoe(s,o)),y.length>0)return bo(s,y,o,n,c.concat(b));if(h){var S,T;if(h==="boldsymbol"){var w=ooe(s,o,n,c,i);S=w.fontName,T=[w.fontClass]}else d?(S=JT[h].fontName,T=[h]):(S=t6(h,n.fontWeight,n.fontShape),T=[h,n.fontWeight,n.fontShape]);if(J3(s,S,o).metrics)return bo(s,S,o,n,c.concat(T));if(WN.hasOwnProperty(s)&&S.slice(0,10)==="Typewriter"){for(var C=[],M=0;M<s.length;M++)C.push(bo(s[M],S,o,n,c.concat(T)));return ff(C)}}if(i==="mathord")return bo(s,"Math-Italic",o,n,c.concat(["mathnormal"]));if(i==="textord"){var _=qr[o][s]&&qr[o][s].font;if(_==="ams"){var k=t6("amsrm",n.fontWeight,n.fontShape);return bo(s,k,o,n,c.concat("amsrm",n.fontWeight,n.fontShape))}else if(_==="main"||!_){var z=t6("textrm",n.fontWeight,n.fontShape);return bo(s,z,o,n,c.concat(n.fontWeight,n.fontShape))}else{var L=t6(_,n.fontWeight,n.fontShape);return bo(s,L,o,n,c.concat(L,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},loe=(e,t)=>{if(Bd(e.classes)!==Bd(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var i of Object.keys(e.style))if(e.style[i]!==t.style[i])return!1;for(var o of Object.keys(t.style))if(e.style[o]!==t.style[o])return!1;return!0},tk=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof ns&&i instanceof ns&&loe(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e},ZT=function(t){for(var n=0,i=0,o=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>n&&(n=c.height),c.depth>i&&(i=c.depth),c.maxFontSize>o&&(o=c.maxFontSize)}t.height=n,t.depth=i,t.maxFontSize=o},lt=function(t,n,i,o){var s=new Db(t,n,i,o);return ZT(s),s},Ud=(e,t,n,i)=>new Db(e,t,n,i),Ng=function(t,n,i){var o=lt([t],[],n);return o.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),o.style.borderBottomWidth=gt(o.height),o.maxFontSize=1,o},soe=function(t,n,i,o){var s=new $T(t,n,i,o);return ZT(s),s},ff=function(t){var n=new Nb(t);return ZT(n),n},kg=function(t,n){return t instanceof Nb?lt([],[t],n):t},uoe=function(t){if(t.positionType==="individualShift"){for(var n=t.children,i=[n[0]],o=-n[0].shift-n[0].elem.depth,s=o,c=1;c<n.length;c++){var d=-n[c].shift-s-n[c].elem.depth,h=d-(n[c-1].elem.height+n[c-1].elem.depth);s=s+d,i.push({type:"kern",size:h}),i.push(n[c])}return{children:i,depth:o}}var y;if(t.positionType==="top"){for(var b=t.positionData,S=0;S<t.children.length;S++){var T=t.children[S];b-=T.type==="kern"?T.size:T.elem.height+T.elem.depth}y=b}else if(t.positionType==="bottom")y=-t.positionData;else{var w=t.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")y=-w.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")y=-w.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:y}},tr=function(t,n){for(var{children:i,depth:o}=uoe(t),s=0,c=0;c<i.length;c++){var d=i[c];if(d.type==="elem"){var h=d.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var y=lt(["pstrut"],[]);y.style.height=gt(s);for(var b=[],S=o,T=o,w=o,C=0;C<i.length;C++){var M=i[C];if(M.type==="kern")w+=M.size;else{var _=M.elem,k=M.wrapperClasses||[],z=M.wrapperStyle||{},L=lt(k,[y,_],void 0,z);L.style.top=gt(-s-w-_.depth),M.marginLeft&&(L.style.marginLeft=M.marginLeft),M.marginRight&&(L.style.marginRight=M.marginRight),b.push(L),w+=_.height+_.depth}S=Math.min(S,w),T=Math.max(T,w)}var B=lt(["vlist"],b);B.style.height=gt(T);var V;if(S<0){var U=lt([],[]),X=lt(["vlist"],[U]);X.style.height=gt(-S);var se=lt(["vlist-s"],[new ns("​")]);V=[lt(["vlist-r"],[B,se]),lt(["vlist-r"],[X])]}else V=[lt(["vlist-r"],[B])];var ce=lt(["vlist-t"],V);return V.length===2&&ce.classes.push("vlist-t2"),ce.height=T,ce.depth=-S,ce},nk=(e,t)=>{var n=lt(["mspace"],[],t),i=ii(e,t);return n.style.marginRight=gt(i),n},t6=function(t,n,i){var o="";switch(t){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=t}var s;return n==="textbf"&&i==="textit"?s="BoldItalic":n==="textbf"?s="Bold":n==="textit"?s="Italic":s="Regular",o+"-"+s},JT={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},rk={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ik=function(t,n){var[i,o,s]=rk[t],c=new jd(i),d=new uf([c],{width:gt(o),height:gt(s),style:"width:"+gt(o),viewBox:"0 0 "+1e3*o+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=Ud(["overlay"],[d],n);return h.height=s,h.style.height=gt(s),h.style.width=gt(o),h},ai={number:3,unit:"mu"},_h={number:4,unit:"mu"},df={number:5,unit:"mu"},coe={mord:{mop:ai,mbin:_h,mrel:df,minner:ai},mop:{mord:ai,mop:ai,mrel:df,minner:ai},mbin:{mord:_h,mop:_h,mopen:_h,minner:_h},mrel:{mord:df,mop:df,mopen:df,minner:df},mopen:{},mclose:{mop:ai,mbin:_h,mrel:df,minner:ai},mpunct:{mord:ai,mop:ai,mrel:df,mopen:ai,mclose:ai,mpunct:ai,minner:ai},minner:{mord:ai,mop:ai,mbin:_h,mrel:df,mopen:ai,mpunct:ai,minner:ai}},foe={mord:{mop:ai},mop:{mord:ai,mop:ai},mbin:{},mrel:{},mopen:{},mclose:{mop:ai},mpunct:{},minner:{mop:ai}},ak={},n6={},r6={};function Tt(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:c}=e,d={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:o},h=0;h<n.length;++h)ak[n[h]]=d;t&&(s&&(n6[t]=s),c&&(r6[t]=c))}function Dh(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;Tt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var i6=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Ni=function(t){return t.type==="ordgroup"?t.body:[t]},doe=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),hoe=new Set(["rightmost","mrel","mclose","mpunct"]),poe={display:un.DISPLAY,text:un.TEXT,script:un.SCRIPT,scriptscript:un.SCRIPTSCRIPT},moe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},qi=function(t,n,i,o){o===void 0&&(o=[null,null]);for(var s=[],c=0;c<t.length;c++){var d=Zn(t[c],n);if(d instanceof Nb){var h=d.children;s.push(...h)}else s.push(d)}if(tk(s),!i)return s;var y=n;if(t.length===1){var b=t[0];b.type==="sizing"?y=n.havingSize(b.size):b.type==="styling"&&(y=n.havingStyle(poe[b.style]))}var S=lt([o[0]||"leftmost"],[],n),T=lt([o[1]||"rightmost"],[],n),w=i==="root";return e8(s,(C,M)=>{var _=M.classes[0],k=C.classes[0];_==="mbin"&&hoe.has(k)?M.classes[0]="mord":k==="mbin"&&doe.has(_)&&(C.classes[0]="mord")},{node:S},T,w),e8(s,(C,M)=>{var _,k,z=n8(M),L=n8(C),B=z&&L?C.hasClass("mtight")?(_=foe[z])==null?void 0:_[L]:(k=coe[z])==null?void 0:k[L]:null;if(B)return nk(B,y)},{node:S},T,w),s},e8=function(t,n,i,o,s){o&&t.push(o);for(var c=0;c<t.length;c++){var d=t[c],h=ok(d);if(h){e8(h.children,n,i,null,s);continue}var y=!d.hasClass("mspace");if(y){var b=n(d,i.node);b&&(i.insertAfter?i.insertAfter(b):(t.unshift(b),c++))}y?i.node=d:s&&d.hasClass("newline")&&(i.node=lt(["leftmost"])),i.insertAfter=(S=>T=>{t.splice(S+1,0,T),c++})(c)}o&&t.pop()},ok=function(t){return t instanceof Nb||t instanceof $T||t instanceof Db&&t.hasClass("enclosing")?t:null},t8=function(t,n){var i=ok(t);if(i){var o=i.children;if(o.length){if(n==="right")return t8(o[o.length-1],"right");if(n==="left")return t8(o[0],"left")}}return t},n8=function(t,n){if(!t)return null;n&&(t=t8(t,n));var i=t.classes[0];return moe[i]||null},kb=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return lt(n.concat(i))},Zn=function(t,n,i){if(!t)return lt();if(n6[t.type]){var o=n6[t.type](t,n);if(i&&n.size!==i.size){o=lt(n.sizingClasses(i),[o],n);var s=n.sizeMultiplier/i.sizeMultiplier;o.height*=s,o.depth*=s}return o}else throw new ft("Got group of unknown type: '"+t.type+"'")};function a6(e,t){var n=lt(["base"],e,t),i=lt(["strut"]);return i.style.height=gt(n.height+n.depth),n.depth&&(i.style.verticalAlign=gt(-n.depth)),n.children.unshift(i),n}function r8(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=qi(e,t,"root"),o;i.length===2&&i[1].hasClass("tag")&&(o=i.pop());for(var s=[],c=[],d=0;d<i.length;d++)if(c.push(i[d]),i[d].hasClass("mbin")||i[d].hasClass("mrel")||i[d].hasClass("allowbreak")){for(var h=!1;d<i.length-1&&i[d+1].hasClass("mspace")&&!i[d+1].hasClass("newline");)d++,c.push(i[d]),i[d].hasClass("nobreak")&&(h=!0);h||(s.push(a6(c,t)),c=[])}else i[d].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(a6(c,t)),c=[]),s.push(i[d]));c.length>0&&s.push(a6(c,t));var y;n?(y=a6(qi(n,t,!0),t),y.classes=["tag"],s.push(y)):o&&s.push(o);var b=lt(["katex-html"],s);if(b.setAttribute("aria-hidden","true"),y){var S=y.children[0];S.style.height=gt(b.height+b.depth),b.depth&&(S.style.verticalAlign=gt(-b.depth))}return b}function lk(e){return new Nb(e)}class ht{constructor(t,n,i){this.type=t,this.attributes={},this.children=n||[],this.classes=i||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Bd(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof ki&&this.children[i+1]instanceof ki){for(var o=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof ki;)o+=this.children[++i].toText();t.appendChild(new ki(o).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=qa(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+qa(Bd(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class ki{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return qa(this.toText())}toText(){return this.text}}class sk{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",gt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+gt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var goe=new Set(["\\imath","\\jmath"]),yoe=new Set(["mrow","mtable"]),rs=function(t,n,i){return qr[n][t]&&qr[n][t].replace&&t.charCodeAt(0)!==55349&&!(WN.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=qr[n][t].replace),new ki(t)},i8=function(t){return t.length===1?t[0]:new ht("mrow",t)},a8=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var i=n.font;if(!i||i==="mathnormal")return null;var o=t.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var s=t.text;if(goe.has(s))return null;if(qr[o][s]){var c=qr[o][s].replace;c&&(s=c)}var d=JT[i].fontName;return qT(s,d,o)?JT[i].variant:null};function o8(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof ki&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof ki&&n.text===","}else return!1}var Tl=function(t,n,i){if(t.length===1){var o=Cr(t[0],n);return i&&o instanceof ht&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var s=[],c,d=0;d<t.length;d++){var h=Cr(t[d],n);if(h instanceof ht&&c instanceof ht){if(h.type==="mtext"&&c.type==="mtext"&&h.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...h.children);continue}else if(h.type==="mn"&&c.type==="mn"){c.children.push(...h.children);continue}else if(o8(h)&&c.type==="mn"){c.children.push(...h.children);continue}else if(h.type==="mn"&&o8(c))h.children=[...c.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(c.type==="mn"||o8(c))){var y=h.children[0];y instanceof ht&&y.type==="mn"&&(y.children=[...c.children,...y.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var b=c.children[0];if(b instanceof ki&&b.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var S=h.children[0];S instanceof ki&&S.text.length>0&&(S.text=S.text.slice(0,1)+"̸"+S.text.slice(1),s.pop())}}}s.push(h),c=h}return s},$d=function(t,n,i){return i8(Tl(t,n,i))},Cr=function(t,n){if(!t)return new ht("mrow");if(r6[t.type]){var i=r6[t.type](t,n);return i}else throw new ft("Got group of unknown type: '"+t.type+"'")};function uk(e,t,n,i,o){var s=Tl(e,n),c;s.length===1&&s[0]instanceof ht&&yoe.has(s[0].type)?c=s[0]:c=new ht("mrow",s);var d=new ht("annotation",[new ki(t)]);d.setAttribute("encoding","application/x-tex");var h=new ht("semantics",[c,d]),y=new ht("math",[h]);y.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&y.setAttribute("display","block");var b=o?"katex":"katex-mathml";return lt([b],[y])}var voe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ck=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],fk=function(t,n){return n.size<2?t:voe[t-1][n.size-1]};class hf{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||hf.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ck[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new hf(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:fk(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:ck[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=fk(hf.BASESIZE,t);return this.size===n&&this.textSize===hf.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==hf.BASESIZE?["sizing","reset-size"+this.size,"size"+hf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=noe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}hf.BASESIZE=6;var dk=function(t){return new hf({style:t.displayMode?un.DISPLAY:un.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},hk=function(t,n){if(n.displayMode){var i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),t=lt(i,[t])}return t},boe=function(t,n,i){var o=dk(i),s;if(i.output==="mathml")return uk(t,n,o,i.displayMode,!0);if(i.output==="html"){var c=r8(t,o);s=lt(["katex"],[c])}else{var d=uk(t,n,o,i.displayMode,!1),h=r8(t,o);s=lt(["katex"],[d,h])}return hk(s,i)},xoe=function(t,n,i){var o=dk(i),s=r8(t,o),c=lt(["katex"],[s]);return hk(c,i)},Soe={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},o6=function(t){var n=new ht("mo",[new ki(Soe[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Eoe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},woe=new Set(["widehat","widecheck","widetilde","utilde"]),l6=function(t,n){function i(){var d=4e5,h=t.label.slice(1);if(woe.has(h)){var y=t,b=y.base.type==="ordgroup"?y.base.body.length:1,S,T,w;if(b>5)h==="widehat"||h==="widecheck"?(S=420,d=2364,w=.42,T=h+"4"):(S=312,d=2340,w=.34,T="tilde4");else{var C=[1,1,2,2,3,3][b];h==="widehat"||h==="widecheck"?(d=[0,1062,2364,2364,2364][C],S=[0,239,300,360,420][C],w=[0,.24,.3,.3,.36,.42][C],T=h+C):(d=[0,600,1033,2339,2340][C],S=[0,260,286,306,312][C],w=[0,.26,.286,.3,.306,.34][C],T="tilde"+C)}var M=new jd(T),_=new uf([M],{width:"100%",height:gt(w),viewBox:"0 0 "+d+" "+S,preserveAspectRatio:"none"});return{span:Ud([],[_],n),minWidth:0,height:w}}else{var k=[],z=Eoe[h],[L,B,V]=z,U=V/1e3,X=L.length,se,ce;if(X===1){var ie=z[3];se=["hide-tail"],ce=[ie]}else if(X===2)se=["halfarrow-left","halfarrow-right"],ce=["xMinYMin","xMaxYMin"];else if(X===3)se=["brace-left","brace-center","brace-right"],ce=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+X+" children.");for(var ue=0;ue<X;ue++){var $=new jd(L[ue]),le=new uf([$],{width:"400em",height:gt(U),viewBox:"0 0 "+d+" "+V,preserveAspectRatio:ce[ue]+" slice"}),Q=Ud([se[ue]],[le],n);if(X===1)return{span:Q,minWidth:B,height:U};Q.style.height=gt(U),k.push(Q)}return{span:lt(["stretchy"],k,n),minWidth:B,height:U}}}var{span:o,minWidth:s,height:c}=i();return o.height=c,o.style.height=gt(c),s>0&&(o.style.minWidth=gt(s)),o},Toe=function(t,n,i,o,s){var c,d=t.height+t.depth+i+o;if(/fbox|color|angl/.test(n)){if(c=lt(["stretchy",n],[],s),n==="fbox"){var h=s.color&&s.getColor();h&&(c.style.borderColor=h)}}else{var y=[];/^[bx]cancel$/.test(n)&&y.push(new HT({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&y.push(new HT({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var b=new uf(y,{width:"100%",height:gt(d)});c=Ud([],[b],s)}return c.height=d,c.style.height=gt(d),c};function Tn(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function s6(e){var t=u6(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function u6(e){return e&&(e.type==="atom"||ioe.hasOwnProperty(e.type))?e:null}var l8=(e,t)=>{var n,i,o;e&&e.type==="supsub"?(i=Tn(e.base,"accent"),n=i.base,e.base=n,o=eoe(Zn(e,t)),e.base=i):(i=Tn(e,"accent"),n=i.base);var s=Zn(n,t.havingCrampedStyle()),c=i.isShifty&&lf(n),d=0;if(c){var h=Mb(n),y=Zn(h,t.havingCrampedStyle());d=YN(y).skew}var b=i.label==="\\c",S=b?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),T;if(i.isStretchy)T=l6(i,t),T=tr({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:T,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+gt(2*d)+")",marginLeft:gt(2*d)}:void 0}]});else{var w,C;i.label==="\\vec"?(w=ik("vec",t),C=rk.vec[1]):(w=e6({mode:i.mode,text:i.label},t,"textord"),w=YN(w),w.italic=0,C=w.width,b&&(S+=w.depth)),T=lt(["accent-body"],[w]);var M=i.label==="\\textcircled";M&&(T.classes.push("accent-full"),S=s.height);var _=d;M||(_-=C/2),T.style.left=gt(_),i.label==="\\textcircled"&&(T.style.top=".2em"),T=tr({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-S},{type:"elem",elem:T}]})}var k=lt(["mord","accent"],[T],t);return o?(o.children[0]=k,o.height=Math.max(k.height,o.height),o.classes[0]="mord",o):k},pk=(e,t)=>{var n=e.isStretchy?o6(e.label):new ht("mo",[rs(e.label,e.mode)]),i=new ht("mover",[Cr(e.base,t),n]);return i.setAttribute("accent","true"),i},Aoe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Tt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=i6(t[0]),i=!Aoe.test(e.funcName),o=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:o,base:n}},htmlBuilder:l8,mathmlBuilder:pk}),Tt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:l8,mathmlBuilder:pk}),Tt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:o}},htmlBuilder:(e,t)=>{var n=Zn(e.base,t),i=l6(e,t),o=e.label==="\\utilde"?.12:0,s=tr({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]});return lt(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=o6(e.label),i=new ht("munder",[Cr(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var c6=e=>{var t=new ht("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Tt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i,funcName:o}=e;return{type:"xArrow",mode:i.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,i=t.havingStyle(n.sup()),o=kg(Zn(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(s+"-arrow-pad");var c;e.below&&(i=t.havingStyle(n.sub()),c=kg(Zn(e.below,i,t),t),c.classes.push(s+"-arrow-pad"));var d=l6(e,t),h=-t.fontMetrics().axisHeight+.5*d.height,y=-t.fontMetrics().axisHeight-.5*d.height-.111;(o.depth>.25||e.label==="\\xleftequilibrium")&&(y-=o.depth);var b;if(c){var S=-t.fontMetrics().axisHeight+c.height+.5*d.height+.111;b=tr({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h},{type:"elem",elem:c,shift:S}]})}else b=tr({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h}]});return b.children[0].children[0].children[1].classes.push("svg-align"),lt(["mrel","x-arrow"],[b],t)},mathmlBuilder(e,t){var n=o6(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var o=c6(Cr(e.body,t));if(e.below){var s=c6(Cr(e.below,t));i=new ht("munderover",[n,s,o])}else i=new ht("mover",[n,o])}else if(e.below){var c=c6(Cr(e.below,t));i=new ht("munder",[n,c])}else i=c6(),i=new ht("mover",[n,i]);return i}});function mk(e,t){var n=qi(e.body,t,!0);return lt([e.mclass],n,t)}function gk(e,t){var n,i=Tl(e.body,t);return e.mclass==="minner"?n=new ht("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new ht("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new ht("mo",i),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Tt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:Ni(o),isCharacterBox:lf(o)}},htmlBuilder:mk,mathmlBuilder:gk});var f6=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Tt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:f6(t[0]),body:Ni(t[1]),isCharacterBox:lf(t[1])}}}),Tt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:i}=e,o=t[1],s=t[0],c;i!=="\\stackrel"?c=f6(o):c="mrel";var d={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:Ni(o)},h={type:"supsub",mode:s.mode,base:d,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:c,body:[h],isCharacterBox:lf(h)}},htmlBuilder:mk,mathmlBuilder:gk}),Tt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:f6(t[0]),body:Ni(t[0])}},htmlBuilder(e,t){var n=qi(e.body,t,!0),i=lt([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=Tl(e.body,t),i=new ht("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var Coe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},yk=()=>({type:"styling",body:[],mode:"math",style:"display"}),vk=e=>e.type==="textord"&&e.text==="@",Ooe=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Roe(e,t,n){var i=Coe[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var o=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},c=n.callFunction("\\Big",[s],[]),d=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[o,c,d]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var y={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[y],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Moe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new ft("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],o=[i],s=0;s<t.length;s++){for(var c=t[s],d=yk(),h=0;h<c.length;h++)if(!vk(c[h]))d.body.push(c[h]);else{i.push(d),h+=1;var y=s6(c[h]).text,b=new Array(2);if(b[0]={type:"ordgroup",mode:"math",body:[]},b[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(y))if("<>AV".includes(y))for(var S=0;S<2;S++){for(var T=!0,w=h+1;w<c.length;w++){if(Ooe(c[w],y)){T=!1,h=w;break}if(vk(c[w]))throw new ft("Missing a "+y+" character to complete a CD arrow.",c[w]);b[S].body.push(c[w])}if(T)throw new ft("Missing a "+y+" character to complete a CD arrow.",c[h])}else throw new ft('Expected one of "<>AV=|." after @',c[h]);var C=Roe(y,b,e),M={type:"styling",body:[C],mode:"math",style:"display"};i.push(M),d=yk()}s%2===0?i.push(d):i.shift(),i=[],o.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var _=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:_,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}Tt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=kg(Zn(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=gt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new ht("mrow",[Cr(e.label,t)]);return n=new ht("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ht("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),Tt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=kg(Zn(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ht("mrow",[Cr(e.fragment,t)])}}),Tt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=Tn(t[0],"ordgroup"),o=i.body,s="",c=0;c<o.length;c++){var d=Tn(o[c],"textord");s+=d.text}var h=parseInt(s),y;if(isNaN(h))throw new ft("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new ft("\\@char with invalid code point "+s);return h<=65535?y=String.fromCharCode(h):(h-=65536,y=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:n.mode,text:y}}});var bk=(e,t)=>{var n=qi(e.body,t.withColor(e.color),!1);return ff(n)},xk=(e,t)=>{var n=Tl(e.body,t.withColor(e.color)),i=new ht("mstyle",n);return i.setAttribute("mathcolor",e.color),i};Tt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=Tn(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:i,body:Ni(o)}},htmlBuilder:bk,mathmlBuilder:xk}),Tt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,o=Tn(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var s=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:o,body:s}},htmlBuilder:bk,mathmlBuilder:xk}),Tt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,o=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:o&&Tn(o,"size").value}},htmlBuilder(e,t){var n=lt(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=gt(ii(e.size,t)))),n},mathmlBuilder(e,t){var n=new ht("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",gt(ii(e.size,t)))),n}});var s8={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Sk=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ft("Expected a control sequence",e);return t},_oe=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Ek=(e,t,n,i)=>{var o=e.gullet.macros.get(n.text);o==null&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,i)};Tt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(s8[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=s8[i.text]),Tn(t.parseFunction(),"internal");throw new ft("Invalid token after macro prefix",i)}}),Tt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new ft("Expected a control sequence",i);for(var s=0,c,d=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),d[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new ft('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new ft('Argument number "'+i.text+'" out of order');s++,d.push([])}else{if(i.text==="EOF")throw new ft("Expected a macro definition");d[s].push(i.text)}var{tokens:h}=t.gullet.consumeArg();return c&&h.unshift(c),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(o,{tokens:h,numArgs:s,delimiters:d},n===s8[n]),{type:"internal",mode:t.mode}}}),Tt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=Sk(t.gullet.popToken());t.gullet.consumeSpaces();var o=_oe(t);return Ek(t,i,o,n==="\\\\globallet"),{type:"internal",mode:t.mode}}}),Tt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=Sk(t.gullet.popToken()),o=t.gullet.popToken(),s=t.gullet.popToken();return Ek(t,i,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var zb=function(t,n,i){var o=qr.math[t]&&qr.math[t].replace,s=qT(o||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},u8=function(t,n,i,o){var s=i.havingBaseStyle(n),c=lt(o.concat(s.sizingClasses(i)),[t],i),d=s.sizeMultiplier/i.sizeMultiplier;return c.height*=d,c.depth*=d,c.maxFontSize=s.sizeMultiplier,c},wk=function(t,n,i){var o=n.havingBaseStyle(i),s=(1-n.sizeMultiplier/o.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=gt(s),t.height-=s,t.depth+=s},Doe=function(t,n,i,o,s,c){var d=bo(t,"Main-Regular",s,o),h=u8(d,n,o,c);return wk(h,o,n),h},Noe=function(t,n,i,o){return bo(t,"Size"+n+"-Regular",i,o)},Tk=function(t,n,i,o,s,c){var d=Noe(t,n,s,o),h=u8(lt(["delimsizing","size"+n],[d],o),un.TEXT,o,c);return i&&wk(h,o,un.TEXT),h},c8=function(t,n,i){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var s=lt(["delimsizinginner",o],[lt([],[bo(t,n,i)])]);return{type:"elem",elem:s}},f8=function(t,n,i){var o=lc["Size4-Regular"][t.charCodeAt(0)]?lc["Size4-Regular"][t.charCodeAt(0)][4]:lc["Size1-Regular"][t.charCodeAt(0)][4],s=new jd("inner",Xae(t,Math.round(1e3*n))),c=new uf([s],{width:gt(o),height:gt(n),style:"width:"+gt(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),d=Ud([],[c],i);return d.height=n,d.style.height=gt(n),d.style.width=gt(o),{type:"elem",elem:d}},d8=.008,d6={type:"kern",size:-1*d8},koe=new Set(["|","\\lvert","\\rvert","\\vert"]),zoe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Ak=function(t,n,i,o,s,c){var d,h,y,b,S="",T=0;d=y=b=t,h=null;var w="Size1-Regular";t==="\\uparrow"?y=b="⏐":t==="\\Uparrow"?y=b="‖":t==="\\downarrow"?d=y="⏐":t==="\\Downarrow"?d=y="‖":t==="\\updownarrow"?(d="\\uparrow",y="⏐",b="\\downarrow"):t==="\\Updownarrow"?(d="\\Uparrow",y="‖",b="\\Downarrow"):koe.has(t)?(y="∣",S="vert",T=333):zoe.has(t)?(y="∥",S="doublevert",T=556):t==="["||t==="\\lbrack"?(d="⎡",y="⎢",b="⎣",w="Size4-Regular",S="lbrack",T=667):t==="]"||t==="\\rbrack"?(d="⎤",y="⎥",b="⎦",w="Size4-Regular",S="rbrack",T=667):t==="\\lfloor"||t==="⌊"?(y=d="⎢",b="⎣",w="Size4-Regular",S="lfloor",T=667):t==="\\lceil"||t==="⌈"?(d="⎡",y=b="⎢",w="Size4-Regular",S="lceil",T=667):t==="\\rfloor"||t==="⌋"?(y=d="⎥",b="⎦",w="Size4-Regular",S="rfloor",T=667):t==="\\rceil"||t==="⌉"?(d="⎤",y=b="⎥",w="Size4-Regular",S="rceil",T=667):t==="("||t==="\\lparen"?(d="⎛",y="⎜",b="⎝",w="Size4-Regular",S="lparen",T=875):t===")"||t==="\\rparen"?(d="⎞",y="⎟",b="⎠",w="Size4-Regular",S="rparen",T=875):t==="\\{"||t==="\\lbrace"?(d="⎧",h="⎨",b="⎩",y="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(d="⎫",h="⎬",b="⎭",y="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(d="⎧",b="⎩",y="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(d="⎫",b="⎭",y="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(d="⎧",b="⎭",y="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(d="⎫",b="⎩",y="⎪",w="Size4-Regular");var C=zb(d,w,s),M=C.height+C.depth,_=zb(y,w,s),k=_.height+_.depth,z=zb(b,w,s),L=z.height+z.depth,B=0,V=1;if(h!==null){var U=zb(h,w,s);B=U.height+U.depth,V=2}var X=M+L+B,se=Math.max(0,Math.ceil((n-X)/(V*k))),ce=X+se*V*k,ie=o.fontMetrics().axisHeight;i&&(ie*=o.sizeMultiplier);var ue=ce/2-ie,$=[];if(S.length>0){var le=ce-M-L,Q=Math.round(ce*1e3),oe=Wae(S,Math.round(le*1e3)),Z=new jd(S,oe),ae=(T/1e3).toFixed(3)+"em",de=(Q/1e3).toFixed(3)+"em",we=new uf([Z],{width:ae,height:de,viewBox:"0 0 "+T+" "+Q}),te=Ud([],[we],o);te.height=Q/1e3,te.style.width=ae,te.style.height=de,$.push({type:"elem",elem:te})}else{if($.push(c8(b,w,s)),$.push(d6),h===null){var F=ce-M-L+2*d8;$.push(f8(y,F,o))}else{var ee=(ce-M-L-B)/2+2*d8;$.push(f8(y,ee,o)),$.push(d6),$.push(c8(h,w,s)),$.push(d6),$.push(f8(y,ee,o))}$.push(d6),$.push(c8(d,w,s))}var Y=o.havingBaseStyle(un.TEXT),Re=tr({positionType:"bottom",positionData:ue,children:$});return u8(lt(["delimsizing","mult"],[Re],Y),un.TEXT,o,c)},h8=80,p8=.08,m8=function(t,n,i,o,s){var c=Yae(t,o,i),d=new jd(t,c),h=new uf([d],{width:"400em",height:gt(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Ud(["hide-tail"],[h],s)},Ioe=function(t,n){var i=n.havingBaseSizing(),o=_k("\\surd",t*i.sizeMultiplier,Mk,i),s=i.sizeMultiplier,c=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),d,h=0,y=0,b=0,S;return o.type==="small"?(b=1e3+1e3*c+h8,t<1?s=1:t<1.4&&(s=.7),h=(1+c+p8)/s,y=(1+c)/s,d=m8("sqrtMain",h,b,c,n),d.style.minWidth="0.853em",S=.833/s):o.type==="large"?(b=(1e3+h8)*Ib[o.size],y=(Ib[o.size]+c)/s,h=(Ib[o.size]+c+p8)/s,d=m8("sqrtSize"+o.size,h,b,c,n),d.style.minWidth="1.02em",S=1/s):(h=t+c+p8,y=t+c,b=Math.floor(1e3*t+c)+h8,d=m8("sqrtTall",h,b,c,n),d.style.minWidth="0.742em",S=1.056),d.height=y,d.style.height=gt(h),{span:d,advanceWidth:S,ruleWidth:(n.fontMetrics().sqrtRuleThickness+c)*s}},Ck=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Loe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Ok=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Ib=[0,1.2,1.8,2.4,3],Rk=function(t,n,i,o,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ck.has(t)||Ok.has(t))return Tk(t,n,!1,i,o,s);if(Loe.has(t))return Ak(t,Ib[n],!1,i,o,s);throw new ft("Illegal delimiter: '"+t+"'")},Voe=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Boe=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"stack"}],Mk=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],joe=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},_k=function(t,n,i,o){for(var s=Math.min(2,3-o.style.size),c=s;c<i.length;c++){var d=i[c];if(d.type==="stack")break;var h=zb(t,joe(d),"math"),y=h.height+h.depth;if(d.type==="small"){var b=o.havingBaseStyle(d.style);y*=b.sizeMultiplier}if(y>n)return d}return i[i.length-1]},g8=function(t,n,i,o,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;Ok.has(t)?d=Voe:Ck.has(t)?d=Mk:d=Boe;var h=_k(t,n,d,o);return h.type==="small"?Doe(t,h.style,i,o,s,c):h.type==="large"?Tk(t,h.size,i,o,s,c):Ak(t,n,i,o,s,c)},y8=function(t,n,i,o,s,c){var d=o.fontMetrics().axisHeight*o.sizeMultiplier,h=901,y=5/o.fontMetrics().ptPerEm,b=Math.max(n-d,i+d),S=Math.max(b/500*h,2*b-y);return g8(t,S,!0,o,s,c)},Dk={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Poe=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function h6(e,t){var n=u6(e);if(n&&Poe.has(n.text))return n;throw n?new ft("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new ft("Invalid delimiter type '"+e.type+"'",e)}Tt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=h6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Dk[e.funcName].size,mclass:Dk[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?lt([e.mclass]):Rk(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(rs(e.delim,e.mode));var n=new ht("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=gt(Ib[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function Nk(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Tt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new ft("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:h6(t[0],e).text,color:n}}}),Tt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=h6(t[0],e),i=e.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=Tn(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Nk(e);for(var n=qi(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,c=0;c<n.length;c++)n[c].isMiddle?s=!0:(i=Math.max(n[c].height,i),o=Math.max(n[c].depth,o));i*=t.sizeMultiplier,o*=t.sizeMultiplier;var d;if(e.left==="."?d=kb(t,["mopen"]):d=y8(e.left,i,o,t,e.mode,["mopen"]),n.unshift(d),s)for(var h=1;h<n.length;h++){var y=n[h],b=y.isMiddle;b&&(n[h]=y8(b.delim,i,o,b.options,e.mode,[]))}var S;if(e.right===".")S=kb(t,["mclose"]);else{var T=e.rightColor?t.withColor(e.rightColor):t;S=y8(e.right,i,o,T,e.mode,["mclose"])}return n.push(S),lt(["minner"],n,t)},mathmlBuilder:(e,t)=>{Nk(e);var n=Tl(e.body,t);if(e.left!=="."){var i=new ht("mo",[rs(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var o=new ht("mo",[rs(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return i8(n)}}),Tt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=h6(t[0],e);if(!e.parser.leftrightDepth)throw new ft("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=kb(t,[]);else{n=Rk(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};n.isMiddle=i}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?rs("|","text"):rs(e.delim,e.mode),i=new ht("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var v8=(e,t)=>{var n=kg(Zn(e.body,t),t),i=e.label.slice(1),o=t.sizeMultiplier,s,c=0,d=lf(e.body);if(i==="sout")s=lt(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/o,c=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=ii({number:.6,unit:"pt"},t),y=ii({number:.35,unit:"ex"},t),b=t.havingBaseSizing();o=o/b.sizeMultiplier;var S=n.height+n.depth+h+y;n.style.paddingLeft=gt(S/2+h);var T=Math.floor(1e3*S*o),w=Gae(T),C=new uf([new jd("phase",w)],{width:"400em",height:gt(T/1e3),viewBox:"0 0 400000 "+T,preserveAspectRatio:"xMinYMin slice"});s=Ud(["hide-tail"],[C],t),s.style.height=gt(S),c=n.depth+h+y}else{/cancel/.test(i)?d||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var M=0,_=0,k=0;/box/.test(i)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),M=t.fontMetrics().fboxsep+(i==="colorbox"?0:k),_=M):i==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),M=4*k,_=Math.max(0,.25-n.depth)):(M=d?.2:0,_=M),s=Toe(n,i,M,_,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=gt(k)):i==="angl"&&k!==.049&&(s.style.borderTopWidth=gt(k),s.style.borderRightWidth=gt(k)),c=n.depth+_,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=tr({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:n,shift:0}]});else{var L=/cancel|phase/.test(i)?["svg-align"]:[];z=tr({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:L}]})}return/cancel/.test(i)&&(z.height=n.height,z.depth=n.depth),/cancel/.test(i)&&!d?lt(["mord","cancel-lap"],[z],t):lt(["mord"],[z],t)},b8=(e,t)=>{var n=0,i=new ht(e.label.includes("colorbox")?"mpadded":"menclose",[Cr(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};Tt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:i,funcName:o}=e,s=Tn(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:i.mode,label:o,backgroundColor:s,body:c}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:i,funcName:o}=e,s=Tn(t[0],"color-token").color,c=Tn(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:i.mode,label:o,backgroundColor:c,borderColor:s,body:d}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),Tt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"enclose",mode:n.mode,label:i,body:o}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var kk={};function sc(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:c}=e,d={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},h=0;h<n.length;++h)kk[n[h]]=d;s&&(n6[t]=s),c&&(r6[t]=c)}var zk={};function re(e,t){zk[e]=t}class Go{constructor(t,n,i){this.lexer=t,this.start=n,this.end=i}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Go(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Al{constructor(t,n){this.text=t,this.loc=n}range(t,n){return new Al(n,Go.range(this,t))}}function Ik(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var p6=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ft("{"+e.envName+"} can be used only in display mode.")},Uoe=new Set(["gather","gather*"]);function x8(e){if(!e.includes("ed"))return!e.includes("*")}function Hd(e,t,n){var{hskipBeforeAndAfter:i,addJot:o,cols:s,arraystretch:c,colSeparationType:d,autoTag:h,singleRow:y,emptySingleRow:b,maxNumCols:S,leqno:T}=t;if(e.gullet.beginGroup(),y||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)c=1;else if(c=parseFloat(w),!c||c<0)throw new ft("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var C=[],M=[C],_=[],k=[],z=h!=null?[]:void 0;function L(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function B(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new Al("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(L(),k.push(Ik(e));;){var V=e.parseExpression(!1,y?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var U={type:"ordgroup",mode:e.mode,body:V};n&&(U={type:"styling",mode:e.mode,style:n,body:[U]}),C.push(U);var X=e.fetch().text;if(X==="&"){if(S&&C.length===S){if(y||d)throw new ft("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(X==="\\end"){B(),C.length===1&&U.type==="styling"&&U.body.length===1&&U.body[0].type==="ordgroup"&&U.body[0].body.length===0&&(M.length>1||!b)&&M.pop(),k.length<M.length+1&&k.push([]);break}else if(X==="\\\\"){e.consume();var se=void 0;e.gullet.future().text!==" "&&(se=e.parseSizeGroup(!0)),_.push(se?se.value:null),B(),k.push(Ik(e)),C=[],M.push(C),L()}else throw new ft("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:c,body:M,cols:s,rowGaps:_,hskipBeforeAndAfter:i,hLinesBeforeRow:k,colSeparationType:d,tags:z,leqno:T}}function S8(e){return e.slice(0,1)==="d"?"display":"text"}var uc=function(t,n){var i,o,s=t.body.length,c=t.hLinesBeforeRow,d=0,h=new Array(s),y=[],b=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),S=1/n.fontMetrics().ptPerEm,T=5*S;if(t.colSeparationType&&t.colSeparationType==="small"){var w=n.havingStyle(un.SCRIPT).sizeMultiplier;T=.2778*(w/n.sizeMultiplier)}var C=t.colSeparationType==="CD"?ii({number:3,unit:"ex"},n):12*S,M=3*S,_=t.arraystretch*C,k=.7*_,z=.3*_,L=0;function B(nt){for(var pt=0;pt<nt.length;++pt)pt>0&&(L+=.25),y.push({pos:L,isDashed:nt[pt]})}for(B(c[0]),i=0;i<t.body.length;++i){var V=t.body[i],U=k,X=z;d<V.length&&(d=V.length);var se=new Array(V.length);for(o=0;o<V.length;++o){var ce=Zn(V[o],n);X<ce.depth&&(X=ce.depth),U<ce.height&&(U=ce.height),se[o]=ce}var ie=t.rowGaps[i],ue=0;ie&&(ue=ii(ie,n),ue>0&&(ue+=z,X<ue&&(X=ue),ue=0)),t.addJot&&(X+=M),se.height=U,se.depth=X,L+=U,se.pos=L,L+=X+ue,h[i]=se,B(c[i+1])}var $=L/2+n.fontMetrics().axisHeight,le=t.cols||[],Q=[],oe,Z,ae=[];if(t.tags&&t.tags.some(nt=>nt))for(i=0;i<s;++i){var de=h[i],we=de.pos-$,te=t.tags[i],F=void 0;te===!0?F=lt(["eqn-num"],[],n):te===!1?F=lt([],[],n):F=lt([],qi(te,n,!0),n),F.depth=de.depth,F.height=de.height,ae.push({type:"elem",elem:F,shift:we})}for(o=0,Z=0;o<d||Z<le.length;++o,++Z){for(var ee,Y=le[Z],Re=!0;((Se=Y)==null?void 0:Se.type)==="separator";){var Se;if(Re||(oe=lt(["arraycolsep"],[]),oe.style.width=gt(n.fontMetrics().doubleRuleSep),Q.push(oe)),Y.separator==="|"||Y.separator===":"){var _e=Y.separator==="|"?"solid":"dashed",je=lt(["vertical-separator"],[],n);je.style.height=gt(L),je.style.borderRightWidth=gt(b),je.style.borderRightStyle=_e,je.style.margin="0 "+gt(-b/2);var He=L-$;He&&(je.style.verticalAlign=gt(-He)),Q.push(je)}else throw new ft("Invalid separator type: "+Y.separator);Z++,Y=le[Z],Re=!1}if(!(o>=d)){var Xe=void 0;if(o>0||t.hskipBeforeAndAfter){var Qe,et;Xe=(Qe=(et=Y)==null?void 0:et.pregap)!=null?Qe:T,Xe!==0&&(oe=lt(["arraycolsep"],[]),oe.style.width=gt(Xe),Q.push(oe))}var Be=[];for(i=0;i<s;++i){var Me=h[i],st=Me[o];if(st){var Ot=Me.pos-$;st.depth=Me.depth,st.height=Me.height,Be.push({type:"elem",elem:st,shift:Ot})}}var Kt=tr({positionType:"individualShift",children:Be}),xt=lt(["col-align-"+(((ee=Y)==null?void 0:ee.align)||"c")],[Kt]);if(Q.push(xt),o<d-1||t.hskipBeforeAndAfter){var Ut,dn;Xe=(Ut=(dn=Y)==null?void 0:dn.postgap)!=null?Ut:T,Xe!==0&&(oe=lt(["arraycolsep"],[]),oe.style.width=gt(Xe),Q.push(oe))}}}var mn=lt(["mtable"],Q);if(y.length>0){for(var at=Ng("hline",n,b),At=Ng("hdashline",n,b),Mn=[{type:"elem",elem:mn,shift:0}];y.length>0;){var Bt=y.pop(),Ze=Bt.pos-$;Bt.isDashed?Mn.push({type:"elem",elem:At,shift:Ze}):Mn.push({type:"elem",elem:at,shift:Ze})}mn=tr({positionType:"individualShift",children:Mn})}if(ae.length===0)return lt(["mord"],[mn],n);var be=tr({positionType:"individualShift",children:ae}),Ve=lt(["tag"],[be],n);return ff([mn,Ve])},$oe={c:"center ",l:"left ",r:"right "},cc=function(t,n){for(var i=[],o=new ht("mtd",[],["mtr-glue"]),s=new ht("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var d=t.body[c],h=[],y=0;y<d.length;y++)h.push(new ht("mtd",[Cr(d[y],n)]));t.tags&&t.tags[c]&&(h.unshift(o),h.push(o),t.leqno?h.unshift(s):h.push(s)),i.push(new ht("mtr",h))}var b=new ht("mtable",i),S=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);b.setAttribute("rowspacing",gt(S));var T="",w="";if(t.cols&&t.cols.length>0){var C=t.cols,M="",_=!1,k=0,z=C.length;C[0].type==="separator"&&(T+="top ",k=1),C[C.length-1].type==="separator"&&(T+="bottom ",z-=1);for(var L=k;L<z;L++){var B=C[L];B.type==="align"?(w+=$oe[B.align],_&&(M+="none "),_=!0):B.type==="separator"&&_&&(M+=B.separator==="|"?"solid ":"dashed ",_=!1)}b.setAttribute("columnalign",w.trim()),/[sd]/.test(M)&&b.setAttribute("columnlines",M.trim())}if(t.colSeparationType==="align"){for(var V=t.cols||[],U="",X=1;X<V.length;X++)U+=X%2?"0em ":"1em ";b.setAttribute("columnspacing",U.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?b.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?b.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?b.setAttribute("columnspacing","0.5em"):b.setAttribute("columnspacing","1em");var se="",ce=t.hLinesBeforeRow;T+=ce[0].length>0?"left ":"",T+=ce[ce.length-1].length>0?"right ":"";for(var ie=1;ie<ce.length-1;ie++)se+=ce[ie].length===0?"none ":ce[ie][0]?"dashed ":"solid ";return/[sd]/.test(se)&&b.setAttribute("rowlines",se.trim()),T!==""&&(b=new ht("menclose",[b]),b.setAttribute("notation",T.trim())),t.arraystretch&&t.arraystretch<1&&(b=new ht("mstyle",[b]),b.setAttribute("scriptlevel","1")),b},Lk=function(t,n){t.envName.includes("ed")||p6(t);var i=[],o=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",c=Hd(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:x8(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),d=0,h=0,y={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var b="",S=0;S<n[0].body.length;S++){var T=Tn(n[0].body[S],"textord");b+=T.text}d=Number(b),h=d*2}var w=!h;c.body.forEach(function(k){for(var z=1;z<k.length;z+=2){var L=Tn(k[z],"styling"),B=Tn(L.body[0],"ordgroup");B.body.unshift(y)}if(w)h<k.length&&(h=k.length);else{var V=k.length/2;if(d<V)throw new ft("Too many math in a row: "+("expected "+d+", but got "+V),k[0])}});for(var C=0;C<h;++C){var M="r",_=0;C%2===1?M="l":C>0&&w&&(_=1),i[C]={type:"align",align:M,pregap:_,postgap:0}}return c.colSeparationType=w?"align":"alignat",c};sc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=u6(t[0]),i=n?[t[0]]:Tn(t[0],"ordgroup").body,o=i.map(function(c){var d=s6(c),h=d.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new ft("Unknown column alignment: "+h,c)}),s={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return Hd(e.parser,s,S8(e.envName))},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,!"lcr".includes(n))throw new ft("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:n}]}}var s=Hd(e.parser,i,S8(e.envName)),c=Math.max(0,...s.body.map(d=>d.length));return s.cols=new Array(c).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Hd(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=u6(t[0]),i=n?[t[0]]:Tn(t[0],"ordgroup").body,o=i.map(function(d){var h=s6(d),y=h.text;if("lc".includes(y))return{type:"align",align:y};throw new ft("Unknown column alignment: "+y,d)});if(o.length>1)throw new ft("{subarray} can contain only one column");var s={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5},c=Hd(e.parser,s,"script");if(c.body.length>0&&c.body[0].length>1)throw new ft("{subarray} can contain only one column");return c},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Hd(e.parser,t,S8(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Lk,htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Uoe.has(e.envName)&&p6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:x8(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Hd(e.parser,t,"display")},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Lk,htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){p6(e);var t={autoTag:x8(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Hd(e.parser,t,"display")},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return p6(e),Moe(e.parser)},htmlBuilder:uc,mathmlBuilder:cc}),re("\\nonumber","\\gdef\\@eqnsw{0}"),re("\\notag","\\nonumber"),Tt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ft(e.funcName+" valid only within array environment")}});var Vk=kk;Tt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];if(o.type!=="ordgroup")throw new ft("Invalid environment name",o);for(var s="",c=0;c<o.body.length;++c)s+=Tn(o.body[c],"textord").text;if(i==="\\begin"){if(!Vk.hasOwnProperty(s))throw new ft("No such environment: "+s,o);var d=Vk[s],{args:h,optArgs:y}=n.parseArguments("\\begin{"+s+"}",d),b={mode:n.mode,envName:s,parser:n},S=d.handler(b,h,y);n.expect("\\end",!1);var T=n.nextToken,w=Tn(n.parseFunction(),"environment");if(w.name!==s)throw new ft("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",T);return S}return{type:"environment",mode:n.mode,name:s,nameGroup:o}}});var Bk=(e,t)=>{var n=e.font,i=t.withFont(n);return Zn(e.body,i)},jk=(e,t)=>{var n=e.font,i=t.withFont(n);return Cr(e.body,i)},Pk={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Tt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=i6(t[0]),s=i;return s in Pk&&(s=Pk[s]),{type:"font",mode:n.mode,font:s.slice(1),body:o}},htmlBuilder:Bk,mathmlBuilder:jk}),Tt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:f6(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:lf(i)}}}),Tt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:o}=e,{mode:s}=n,c=n.parseExpression(!0,o),d="math"+i.slice(1);return{type:"font",mode:s,font:d,body:{type:"ordgroup",mode:n.mode,body:c}}},htmlBuilder:Bk,mathmlBuilder:jk});var Hoe=(e,t)=>{var n=t.style,i=n.fracNum(),o=n.fracDen(),s;s=t.havingStyle(i);var c=Zn(e.numer,s,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;c.height=c.height<d?d:c.height,c.depth=c.depth<h?h:c.depth}s=t.havingStyle(o);var y=Zn(e.denom,s,t),b,S,T;e.hasBarLine?(e.barSize?(S=ii(e.barSize,t),b=Ng("frac-line",t,S)):b=Ng("frac-line",t),S=b.height,T=b.height):(b=null,S=0,T=t.fontMetrics().defaultRuleThickness);var w,C,M;n.size===un.DISPLAY.size?(w=t.fontMetrics().num1,S>0?C=3*T:C=7*T,M=t.fontMetrics().denom1):(S>0?(w=t.fontMetrics().num2,C=T):(w=t.fontMetrics().num3,C=3*T),M=t.fontMetrics().denom2);var _;if(b){var z=t.fontMetrics().axisHeight;w-c.depth-(z+.5*S)<C&&(w+=C-(w-c.depth-(z+.5*S))),z-.5*S-(y.height-M)<C&&(M+=C-(z-.5*S-(y.height-M)));var L=-(z-.5*S);_=tr({positionType:"individualShift",children:[{type:"elem",elem:y,shift:M},{type:"elem",elem:b,shift:L},{type:"elem",elem:c,shift:-w}]})}else{var k=w-c.depth-(y.height-M);k<C&&(w+=.5*(C-k),M+=.5*(C-k)),_=tr({positionType:"individualShift",children:[{type:"elem",elem:y,shift:M},{type:"elem",elem:c,shift:-w}]})}s=t.havingStyle(n),_.height*=s.sizeMultiplier/t.sizeMultiplier,_.depth*=s.sizeMultiplier/t.sizeMultiplier;var B;n.size===un.DISPLAY.size?B=t.fontMetrics().delim1:n.size===un.SCRIPTSCRIPT.size?B=t.havingStyle(un.SCRIPT).fontMetrics().delim2:B=t.fontMetrics().delim2;var V,U;return e.leftDelim==null?V=kb(t,["mopen"]):V=g8(e.leftDelim,B,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?U=lt([]):e.rightDelim==null?U=kb(t,["mclose"]):U=g8(e.rightDelim,B,!0,t.havingStyle(n),e.mode,["mclose"]),lt(["mord"].concat(s.sizingClasses(t)),[V,lt(["mfrac"],[_]),U],t)},qoe=(e,t)=>{var n=new ht("mfrac",[Cr(e.numer,t),Cr(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=ii(e.barSize,t);n.setAttribute("linethickness",gt(i))}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new ht("mo",[new ki(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var c=new ht("mo",[new ki(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return i8(o)}return n},Uk=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Tt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0],s=t[1],c,d=null,h=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,d="(",h=")";break;case"\\\\bracefrac":c=!1,d="\\{",h="\\}";break;case"\\\\brackfrac":c=!1,d="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var y=i==="\\cfrac",b=null;return y||i.startsWith("\\d")?b="display":i.startsWith("\\t")&&(b="text"),Uk({type:"genfrac",mode:n.mode,numer:o,denom:s,continued:y,hasBarLine:c,leftDelim:d,rightDelim:h,barSize:null},b)},htmlBuilder:Hoe,mathmlBuilder:qoe}),Tt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:i}=e,o;switch(n){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:o,token:i}}});var $k=["display","text","script","scriptscript"],Hk=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Tt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,i=t[4],o=t[5],s=i6(t[0]),c=s.type==="atom"&&s.family==="open"?Hk(s.text):null,d=i6(t[1]),h=d.type==="atom"&&d.family==="close"?Hk(d.text):null,y=Tn(t[2],"size"),b,S=null;y.isBlank?b=!0:(S=y.value,b=S.number>0);var T=null,w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var C=Tn(w.body[0],"textord");T=$k[Number(C.text)]}}else w=Tn(w,"textord"),T=$k[Number(w.text)];return Uk({type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:b,barSize:S,leftDelim:c,rightDelim:h},T)}}),Tt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Tn(t[0],"size").value,token:o}}}),Tt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0],s=Tn(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var c=t[2],d=s.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:c,continued:!1,hasBarLine:d,barSize:s,leftDelim:null,rightDelim:null}}});var qk=(e,t)=>{var n=t.style,i,o;e.type==="supsub"?(i=e.sup?Zn(e.sup,t.havingStyle(n.sup()),t):Zn(e.sub,t.havingStyle(n.sub()),t),o=Tn(e.base,"horizBrace")):o=Tn(e,"horizBrace");var s=Zn(o.base,t.havingBaseStyle(un.DISPLAY)),c=l6(o,t),d;if(o.isOver?(d=tr({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c}]}),d.children[0].children[0].children[1].classes.push("svg-align")):(d=tr({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:s}]}),d.children[0].children[0].children[0].classes.push("svg-align")),i){var h=lt(["mord",o.isOver?"mover":"munder"],[d],t);o.isOver?d=tr({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):d=tr({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return lt(["mord",o.isOver?"mover":"munder"],[d],t)},Goe=(e,t)=>{var n=o6(e.label);return new ht(e.isOver?"mover":"munder",[Cr(e.base,t),n])};Tt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:qk,mathmlBuilder:Goe}),Tt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],o=Tn(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:Ni(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=qi(e.body,t,!1);return soe(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=$d(e.body,t);return n instanceof ht||(n=new ht("mrow",[n])),n.setAttribute("href",e.href),n}}),Tt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=Tn(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var o=[],s=0;s<i.length;s++){var c=i[s];c==="~"&&(c="\\textasciitilde"),o.push({type:"textord",mode:"text",text:c})}var d={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:i,body:Ni(d)}}}),Tt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Ni(t[0])}},htmlBuilder(e,t){var n=qi(e.body,t,!1);return ff(n)},mathmlBuilder(e,t){return new ht("mrow",Tl(e.body,t))}}),Tt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:o}=e,s=Tn(t[0],"raw").string,c=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var d,h={};switch(i){case"\\htmlClass":h.class=s,d={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,d={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,d={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var y=s.split(","),b=0;b<y.length;b++){var S=y[b],T=S.indexOf("=");if(T<0)throw new ft("\\htmlData key/value '"+S+"' missing equals sign");var w=S.slice(0,T),C=S.slice(T+1);h["data-"+w.trim()]=C}d={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(d)?{type:"html",mode:n.mode,attributes:h,body:Ni(c)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=qi(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var o=lt(i,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&o.setAttribute(s,e.attributes[s]);return o},mathmlBuilder:(e,t)=>$d(e.body,t)}),Tt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ni(t[0]),mathml:Ni(t[1])}},htmlBuilder:(e,t)=>{var n=qi(e.html,t,!1);return ff(n)},mathmlBuilder:(e,t)=>$d(e.mathml,t)});var E8=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new ft("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!HN(i))throw new ft("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Tt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,o={number:0,unit:"em"},s={number:.9,unit:"em"},c={number:0,unit:"em"},d="";if(n[0])for(var h=Tn(n[0],"raw").string,y=h.split(","),b=0;b<y.length;b++){var S=y[b].split("=");if(S.length===2){var T=S[1].trim();switch(S[0].trim()){case"alt":d=T;break;case"width":o=E8(T);break;case"height":s=E8(T);break;case"totalheight":c=E8(T);break;default:throw new ft("Invalid key: '"+S[0]+"' in \\includegraphics.")}}}var w=Tn(t[0],"url").url;return d===""&&(d=w,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:i.mode,alt:d,width:o,height:s,totalheight:c,src:w}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=ii(e.height,t),i=0;e.totalheight.number>0&&(i=ii(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=ii(e.width,t));var s={height:gt(n+i)};o>0&&(s.width=gt(o)),i>0&&(s.verticalAlign=gt(-i));var c=new Zae(e.src,e.alt,s);return c.height=n,c.depth=i,c},mathmlBuilder:(e,t)=>{var n=new ht("mglyph",[]);n.setAttribute("alt",e.alt);var i=ii(e.height,t),o=0;if(e.totalheight.number>0&&(o=ii(e.totalheight,t)-i,n.setAttribute("valign",gt(-o))),n.setAttribute("height",gt(i+o)),e.width.number>0){var s=ii(e.width,t);n.setAttribute("width",gt(s))}return n.setAttribute("src",e.src),n}}),Tt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,o=Tn(t[0],"size");if(n.settings.strict){var s=i[1]==="m",c=o.value.unit==="mu";s?(c||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+o.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):c&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder(e,t){return nk(e.dimension,t)},mathmlBuilder(e,t){var n=ii(e.dimension,t);return new sk(n)}}),Tt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:o}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=lt([],[Zn(e.body,t)]),n=lt(["inner"],[n],t)):n=lt(["inner"],[Zn(e.body,t)]);var i=lt(["fix"],[]),o=lt([e.alignment],[n,i],t),s=lt(["strut"]);return s.style.height=gt(o.height+o.depth),o.depth&&(s.style.verticalAlign=gt(-o.depth)),o.children.unshift(s),o=lt(["thinbox"],[o],t),lt(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ht("mpadded",[Cr(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),Tt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,o=i.mode;i.switchMode("math");var s=n==="\\("?"\\)":"$",c=i.parseExpression(!1,s);return i.expect(s),i.switchMode(o),{type:"styling",mode:i.mode,style:"text",body:c}}}),Tt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ft("Mismatched "+e.funcName)}});var Gk=(e,t)=>{switch(t.style.size){case un.DISPLAY.size:return e.display;case un.TEXT.size:return e.text;case un.SCRIPT.size:return e.script;case un.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Tt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ni(t[0]),text:Ni(t[1]),script:Ni(t[2]),scriptscript:Ni(t[3])}},htmlBuilder:(e,t)=>{var n=Gk(e,t),i=qi(n,t,!1);return ff(i)},mathmlBuilder:(e,t)=>{var n=Gk(e,t);return $d(n,t)}});var Fk=(e,t,n,i,o,s,c)=>{e=lt([],[e]);var d=n&&lf(n),h,y;if(t){var b=Zn(t,i.havingStyle(o.sup()),i);y={elem:b,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-b.depth)}}if(n){var S=Zn(n,i.havingStyle(o.sub()),i);h={elem:S,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-S.height)}}var T;if(y&&h){var w=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+c;T=tr({positionType:"bottom",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:gt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:gt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var C=e.height-c;T=tr({positionType:"top",positionData:C,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:gt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(y){var M=e.depth+c;T=tr({positionType:"bottom",positionData:M,children:[{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:gt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var _=[T];if(h&&s!==0&&!d){var k=lt(["mspace"],[],i);k.style.marginRight=gt(s),_.unshift(k)}return lt(["mop","op-limits"],_,i)},Yk=new Set(["\\smallint"]),zg=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=Tn(e.base,"op"),o=!0):s=Tn(e,"op");var c=t.style,d=!1;c.size===un.DISPLAY.size&&s.symbol&&!Yk.has(s.name)&&(d=!0);var h;if(s.symbol){var y=d?"Size2-Regular":"Size1-Regular",b="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(b=s.name.slice(1),s.name=b==="oiint"?"\\iint":"\\iiint"),h=bo(s.name,y,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),b.length>0){var S=h.italic,T=ik(b+"Size"+(d?"2":"1"),t);h=tr({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:T,shift:d?.08:0}]}),s.name="\\"+b,h.classes.unshift("mop"),h.italic=S}}else if(s.body){var w=qi(s.body,t,!0);w.length===1&&w[0]instanceof ns?(h=w[0],h.classes[0]="mop"):h=lt(["mop"],w,t)}else{for(var C=[],M=1;M<s.name.length;M++)C.push(KT(s.name[M],s.mode,t));h=lt(["mop"],C,t)}var _=0,k=0;return(h instanceof ns||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(_=(h.height-h.depth)/2-t.fontMetrics().axisHeight,k=h.italic||0),o?Fk(h,n,i,t,c,k,_):(_&&(h.style.position="relative",h.style.top=gt(_)),h)},Lb=(e,t)=>{var n;if(e.symbol)n=new ht("mo",[rs(e.name,e.mode)]),Yk.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ht("mo",Tl(e.body,t));else{n=new ht("mi",[new ki(e.name.slice(1))]);var i=new ht("mo",[rs("⁡","text")]);e.parentIsSupSub?n=new ht("mrow",[n,i]):n=lk([n,i])}return n},Foe={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Tt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=i;return o.length===1&&(o=Foe[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:zg,mathmlBuilder:Lb}),Tt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ni(i)}},htmlBuilder:zg,mathmlBuilder:Lb});var Yoe={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Tt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:zg,mathmlBuilder:Lb}),Tt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:zg,mathmlBuilder:Lb}),Tt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return i.length===1&&(i=Yoe[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:zg,mathmlBuilder:Lb});var Xk=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=Tn(e.base,"operatorname"),o=!0):s=Tn(e,"operatorname");var c;if(s.body.length>0){for(var d=s.body.map(S=>{var T="text"in S?S.text:void 0;return typeof T=="string"?{type:"textord",mode:S.mode,text:T}:S}),h=qi(d,t.withFont("mathrm"),!0),y=0;y<h.length;y++){var b=h[y];b instanceof ns&&(b.text=b.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=lt(["mop"],h,t)}else c=lt(["mop"],[],t);return o?Fk(c,n,i,t,t.style,0,0):c},Xoe=(e,t)=>{for(var n=Tl(e.body,t.withFont("mathrm")),i=!0,o=0;o<n.length;o++){var s=n[o];if(!(s instanceof sk))if(s instanceof ht)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof ki?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var d=n.map(b=>b.toText()).join("");n=[new ki(d)]}var h=new ht("mi",n);h.setAttribute("mathvariant","normal");var y=new ht("mo",[rs("⁡","text")]);return e.parentIsSupSub?new ht("mrow",[h,y]):lk([h,y])};Tt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"operatorname",mode:n.mode,body:Ni(o),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Xk,mathmlBuilder:Xoe}),re("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Dh({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ff(qi(e.body,t,!1)):lt(["mord"],qi(e.body,t,!0),t)},mathmlBuilder(e,t){return $d(e.body,t,!0)}}),Tt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=Zn(e.body,t.havingCrampedStyle()),i=Ng("overline-line",t),o=t.fontMetrics().defaultRuleThickness,s=tr({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]});return lt(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new ht("mo",[new ki("‾")]);n.setAttribute("stretchy","true");var i=new ht("mover",[Cr(e.body,t),n]);return i.setAttribute("accent","true"),i}}),Tt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:Ni(i)}},htmlBuilder:(e,t)=>{var n=qi(e.body,t.withPhantom(),!1);return ff(n)},mathmlBuilder:(e,t)=>{var n=Tl(e.body,t);return new ht("mphantom",n)}}),re("\\hphantom","\\smash{\\phantom{#1}}"),Tt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=lt(["inner"],[Zn(e.body,t.withPhantom())]),i=lt(["fix"],[]);return lt(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=Tl(Ni(e.body),t),i=new ht("mphantom",n),o=new ht("mpadded",[i]);return o.setAttribute("width","0px"),o}}),Tt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=Tn(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:o}},htmlBuilder(e,t){var n=Zn(e.body,t),i=ii(e.dy,t);return tr({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ht("mpadded",[Cr(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}}),Tt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Tt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,o=n[0],s=Tn(t[0],"size"),c=Tn(t[1],"size");return{type:"rule",mode:i.mode,shift:o&&Tn(o,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var n=lt(["mord","rule"],[],t),i=ii(e.width,t),o=ii(e.height,t),s=e.shift?ii(e.shift,t):0;return n.style.borderRightWidth=gt(i),n.style.borderTopWidth=gt(o),n.style.bottom=gt(s),n.width=i,n.height=o+s,n.depth=-s,n.maxFontSize=o*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ii(e.width,t),i=ii(e.height,t),o=e.shift?ii(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new ht("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",gt(n)),c.setAttribute("height",gt(i));var d=new ht("mpadded",[c]);return o>=0?d.setAttribute("height",gt(o)):(d.setAttribute("height",gt(o)),d.setAttribute("depth",gt(-o))),d.setAttribute("voffset",gt(o)),d}});function Wk(e,t,n){for(var i=qi(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var c=i[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(n)):i[s].classes[c+1]==="reset-size"+t.size&&(i[s].classes[c+1]="reset-size"+n.size),i[s].height*=o,i[s].depth*=o}return ff(i)}var Qk=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Woe=(e,t)=>{var n=t.havingSize(e.size);return Wk(e.body,n,t)};Tt({type:"sizing",names:Qk,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Qk.indexOf(i)+1,body:s}},htmlBuilder:Woe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=Tl(e.body,n),o=new ht("mstyle",i);return o.setAttribute("mathsize",gt(n.sizeMultiplier)),o}}),Tt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,o=!1,s=!1,c=n[0]&&Tn(n[0],"ordgroup");if(c)for(var d="",h=0;h<c.body.length;++h){var y=c.body[h];if(d=s6(y).text,d==="t")o=!0;else if(d==="b")s=!0;else{o=!1,s=!1;break}}else o=!0,s=!0;var b=t[0];return{type:"smash",mode:i.mode,body:b,smashHeight:o,smashDepth:s}},htmlBuilder:(e,t)=>{var n=lt([],[Zn(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return lt(["mord","smash"],[n],t);if(n.children)for(var i=0;i<n.children.length;i++)e.smashHeight&&(n.children[i].height=0),e.smashDepth&&(n.children[i].depth=0);var o=tr({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return lt(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ht("mpadded",[Cr(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),Tt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,o=n[0],s=t[0];return{type:"sqrt",mode:i.mode,body:s,index:o}},htmlBuilder(e,t){var n=Zn(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=kg(n,t);var i=t.fontMetrics(),o=i.defaultRuleThickness,s=o;t.style.id<un.TEXT.id&&(s=t.fontMetrics().xHeight);var c=o+s/4,d=n.height+n.depth+c+o,{span:h,ruleWidth:y,advanceWidth:b}=Ioe(d,t),S=h.height-y;S>n.height+n.depth+c&&(c=(c+S-n.height-n.depth)/2);var T=h.height-n.height-c-y;n.style.paddingLeft=gt(b);var w=tr({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+T)},{type:"elem",elem:h},{type:"kern",size:y}]});if(e.index){var C=t.havingStyle(un.SCRIPTSCRIPT),M=Zn(e.index,C,t),_=.6*(w.height-w.depth),k=tr({positionType:"shift",positionData:-_,children:[{type:"elem",elem:M}]}),z=lt(["root"],[k]);return lt(["mord","sqrt"],[z,w],t)}else return lt(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new ht("mroot",[Cr(n,t),Cr(i,t)]):new ht("msqrt",[Cr(n,t)])}});var Kk={display:un.DISPLAY,text:un.TEXT,script:un.SCRIPT,scriptscript:un.SCRIPTSCRIPT};Tt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!0,n),c=i.slice(1,i.length-5);return{type:"styling",mode:o.mode,style:c,body:s}},htmlBuilder(e,t){var n=Kk[e.style],i=t.havingStyle(n).withFont("");return Wk(e.body,i,t)},mathmlBuilder(e,t){var n=Kk[e.style],i=t.havingStyle(n),o=Tl(e.body,i),s=new ht("mstyle",o),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=c[e.style];return s.setAttribute("scriptlevel",d[0]),s.setAttribute("displaystyle",d[1]),s}});var Qoe=function(t,n){var i=t.base;if(i)if(i.type==="op"){var o=i.limits&&(n.style.size===un.DISPLAY.size||i.alwaysHandleSupSub);return o?zg:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===un.DISPLAY.size||i.limits);return s?Xk:null}else{if(i.type==="accent")return lf(i.base)?l8:null;if(i.type==="horizBrace"){var c=!t.sub;return c===i.isOver?qk:null}else return null}else return null};Dh({type:"supsub",htmlBuilder(e,t){var n=Qoe(e,t);if(n)return n(e,t);var{base:i,sup:o,sub:s}=e,c=Zn(i,t),d,h,y=t.fontMetrics(),b=0,S=0,T=i&&lf(i);if(o){var w=t.havingStyle(t.style.sup());d=Zn(o,w,t),T||(b=c.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(s){var C=t.havingStyle(t.style.sub());h=Zn(s,C,t),T||(S=c.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var M;t.style===un.DISPLAY?M=y.sup1:t.style.cramped?M=y.sup3:M=y.sup2;var _=t.sizeMultiplier,k=gt(.5/y.ptPerEm/_),z=null;if(h){var L=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(c instanceof ns||L)&&(z=gt(-c.italic))}var B;if(d&&h){b=Math.max(b,M,d.depth+.25*y.xHeight),S=Math.max(S,y.sub2);var V=y.defaultRuleThickness,U=4*V;if(b-d.depth-(h.height-S)<U){S=U-(b-d.depth)+h.height;var X=.8*y.xHeight-(b-d.depth);X>0&&(b+=X,S-=X)}var se=[{type:"elem",elem:h,shift:S,marginRight:k,marginLeft:z},{type:"elem",elem:d,shift:-b,marginRight:k}];B=tr({positionType:"individualShift",children:se})}else if(h){S=Math.max(S,y.sub1,h.height-.8*y.xHeight);var ce=[{type:"elem",elem:h,marginLeft:z,marginRight:k}];B=tr({positionType:"shift",positionData:S,children:ce})}else if(d)b=Math.max(b,M,d.depth+.25*y.xHeight),B=tr({positionType:"shift",positionData:-b,children:[{type:"elem",elem:d,marginRight:k}]});else throw new Error("supsub must have either sup or sub.");var ie=n8(c,"right")||"mord";return lt([ie],[c,lt(["msupsub"],[B])],t)},mathmlBuilder(e,t){var n=!1,i,o;e.base&&e.base.type==="horizBrace"&&(o=!!e.sup,o===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Cr(e.base,t)];e.sub&&s.push(Cr(e.sub,t)),e.sup&&s.push(Cr(e.sup,t));var c;if(n)c=i?"mover":"munder";else if(e.sub)if(e.sup){var y=e.base;y&&y.type==="op"&&y.limits&&t.style===un.DISPLAY||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(t.style===un.DISPLAY||y.limits)?c="munderover":c="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===un.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===un.DISPLAY)?c="munder":c="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===un.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===un.DISPLAY)?c="mover":c="msup"}return new ht(c,s)}}),Dh({type:"atom",htmlBuilder(e,t){return KT(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ht("mo",[rs(e.text,e.mode)]);if(e.family==="bin"){var i=a8(e,t);i==="bold-italic"&&n.setAttribute("mathvariant",i)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Zk={mi:"italic",mn:"normal",mtext:"normal"};Dh({type:"mathord",htmlBuilder(e,t){return e6(e,t,"mathord")},mathmlBuilder(e,t){var n=new ht("mi",[rs(e.text,e.mode,t)]),i=a8(e,t)||"italic";return i!==Zk[n.type]&&n.setAttribute("mathvariant",i),n}}),Dh({type:"textord",htmlBuilder(e,t){return e6(e,t,"textord")},mathmlBuilder(e,t){var n=rs(e.text,e.mode,t),i=a8(e,t)||"normal",o;return e.mode==="text"?o=new ht("mtext",[n]):/[0-9]/.test(e.text)?o=new ht("mn",[n]):e.text==="\\prime"?o=new ht("mo",[n]):o=new ht("mi",[n]),i!==Zk[o.type]&&o.setAttribute("mathvariant",i),o}});var w8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},T8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Dh({type:"spacing",htmlBuilder(e,t){if(T8.hasOwnProperty(e.text)){var n=T8[e.text].className||"";if(e.mode==="text"){var i=e6(e,t,"textord");return i.classes.push(n),i}else return lt(["mspace",n],[KT(e.text,e.mode,t)],t)}else{if(w8.hasOwnProperty(e.text))return lt(["mspace",w8[e.text]],[],t);throw new ft('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(T8.hasOwnProperty(e.text))n=new ht("mtext",[new ki(" ")]);else{if(w8.hasOwnProperty(e.text))return new ht("mspace");throw new ft('Unknown type of space "'+e.text+'"')}return n}});var Jk=()=>{var e=new ht("mtd",[]);return e.setAttribute("width","50%"),e};Dh({type:"tag",mathmlBuilder(e,t){var n=new ht("mtable",[new ht("mtr",[Jk(),new ht("mtd",[$d(e.body,t)]),Jk(),new ht("mtd",[$d(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var ez={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},tz={"\\textbf":"textbf","\\textmd":"textmd"},Koe={"\\textit":"textit","\\textup":"textup"},nz=(e,t)=>{var n=e.font;if(n){if(ez[n])return t.withTextFontFamily(ez[n]);if(tz[n])return t.withTextFontWeight(tz[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Koe[n])};Tt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"text",mode:n.mode,body:Ni(o),font:i}},htmlBuilder(e,t){var n=nz(e,t),i=qi(e.body,n,!0);return lt(["mord","text"],i,n)},mathmlBuilder(e,t){var n=nz(e,t);return $d(e.body,n)}}),Tt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Zn(e.body,t),i=Ng("underline-line",t),o=t.fontMetrics().defaultRuleThickness,s=tr({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:n}]});return lt(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new ht("mo",[new ki("‾")]);n.setAttribute("stretchy","true");var i=new ht("munder",[Cr(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),Tt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Zn(e.body,t),i=t.fontMetrics().axisHeight,o=.5*(n.height-i-(n.depth+i));return tr({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){return new ht("mpadded",[Cr(e.body,t)],["vcenter"])}}),Tt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new ft("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=rz(e),i=[],o=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var c=n[s];c==="~"&&(c="\\textasciitilde"),i.push(bo(c,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return lt(["mord","text"].concat(o.sizingClasses(t)),tk(i),o)},mathmlBuilder(e,t){var n=new ki(rz(e)),i=new ht("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var rz=e=>e.body.replace(/ /g,e.star?"␣":" "),qd=ak,iz=`[ \r
	]`,Zoe="\\\\[a-zA-Z@]+",Joe="\\\\[^\uD800-\uDFFF]",ele="("+Zoe+")"+iz+"*",tle=`\\\\(
|[ \r	]+
?)[ \r	]*`,A8="[̀-ͯ]",nle=new RegExp(A8+"+$"),rle="("+iz+"+)|"+(tle+"|")+"([!-\\[\\]-‧‪-퟿豈-]"+(A8+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(A8+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+ele)+("|"+Joe+")");class az{constructor(t,n){this.input=t,this.settings=n,this.tokenRegex=new RegExp(rle,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Al("EOF",new Go(this,n,n));var i=this.tokenRegex.exec(t);if(i===null||i.index!==n)throw new ft("Unexpected character: '"+t[n]+"'",new Al(t[n],new Go(this,n,n+1)));var o=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[o]===14){var s=t.indexOf(`
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Al(o,new Go(this,n,this.tokenRegex.lastIndex))}}class ile{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ft("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,i){if(i===void 0&&(i=!1),i){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var ale=zk;re("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),re("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),re("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),re("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),re("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),re("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),re("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var oz={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};re("\\char",function(e){var t=e.popToken(),n,i=0;if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new ft("\\char` missing argument");i=t.text.charCodeAt(0)}else n=10;if(n){if(i=oz[t.text],i==null||i>=n)throw new ft("Invalid base-"+n+" digit "+t.text);for(var o;(o=oz[e.future().text])!=null&&o<n;)i*=n,i+=o,e.popToken()}return"\\@char{"+i+"}"});var C8=(e,t,n,i)=>{var o=e.consumeArg().tokens;if(o.length!==1)throw new ft("\\newcommand's first argument must be a macro name");var s=o[0].text,c=e.isDefined(s);if(c&&!t)throw new ft("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!c&&!n)throw new ft("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var d=0;if(o=e.consumeArg().tokens,o.length===1&&o[0].text==="["){for(var h="",y=e.expandNextToken();y.text!=="]"&&y.text!=="EOF";)h+=y.text,y=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new ft("Invalid number of arguments: "+h);d=parseInt(h),o=e.consumeArg().tokens}return c&&i||e.macros.set(s,{tokens:o,numArgs:d}),""};re("\\newcommand",e=>C8(e,!1,!0,!1)),re("\\renewcommand",e=>C8(e,!0,!1,!1)),re("\\providecommand",e=>C8(e,!0,!0,!0)),re("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""}),re("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""}),re("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),qd[n],qr.math[n],qr.text[n]),""}),re("\\bgroup","{"),re("\\egroup","}"),re("~","\\nobreakspace"),re("\\lq","`"),re("\\rq","'"),re("\\aa","\\r a"),re("\\AA","\\r A"),re("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),re("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),re("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),re("ℬ","\\mathscr{B}"),re("ℰ","\\mathscr{E}"),re("ℱ","\\mathscr{F}"),re("ℋ","\\mathscr{H}"),re("ℐ","\\mathscr{I}"),re("ℒ","\\mathscr{L}"),re("ℳ","\\mathscr{M}"),re("ℛ","\\mathscr{R}"),re("ℭ","\\mathfrak{C}"),re("ℌ","\\mathfrak{H}"),re("ℨ","\\mathfrak{Z}"),re("\\Bbbk","\\Bbb{k}"),re("·","\\cdotp"),re("\\llap","\\mathllap{\\textrm{#1}}"),re("\\rlap","\\mathrlap{\\textrm{#1}}"),re("\\clap","\\mathclap{\\textrm{#1}}"),re("\\mathstrut","\\vphantom{(}"),re("\\underbar","\\underline{\\text{#1}}"),re("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),re("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),re("\\ne","\\neq"),re("≠","\\neq"),re("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),re("∉","\\notin"),re("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),re("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),re("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),re("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),re("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),re("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),re("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),re("⟂","\\perp"),re("‼","\\mathclose{!\\mkern-0.8mu!}"),re("∌","\\notni"),re("⌜","\\ulcorner"),re("⌝","\\urcorner"),re("⌞","\\llcorner"),re("⌟","\\lrcorner"),re("©","\\copyright"),re("®","\\textregistered"),re("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),re("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),re("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),re("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),re("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),re("⋮","\\vdots"),re("\\varGamma","\\mathit{\\Gamma}"),re("\\varDelta","\\mathit{\\Delta}"),re("\\varTheta","\\mathit{\\Theta}"),re("\\varLambda","\\mathit{\\Lambda}"),re("\\varXi","\\mathit{\\Xi}"),re("\\varPi","\\mathit{\\Pi}"),re("\\varSigma","\\mathit{\\Sigma}"),re("\\varUpsilon","\\mathit{\\Upsilon}"),re("\\varPhi","\\mathit{\\Phi}"),re("\\varPsi","\\mathit{\\Psi}"),re("\\varOmega","\\mathit{\\Omega}"),re("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),re("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),re("\\boxed","\\fbox{$\\displaystyle{#1}$}"),re("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),re("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),re("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),re("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),re("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var lz={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},ole=new Set(["bin","rel"]);re("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in lz?t=lz[n]:(n.slice(0,4)==="\\not"||n in qr.math&&ole.has(qr.math[n].group))&&(t="\\dotsb"),t});var O8={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};re("\\dotso",function(e){var t=e.future().text;return t in O8?"\\ldots\\,":"\\ldots"}),re("\\dotsc",function(e){var t=e.future().text;return t in O8&&t!==","?"\\ldots\\,":"\\ldots"}),re("\\cdots",function(e){var t=e.future().text;return t in O8?"\\@cdots\\,":"\\@cdots"}),re("\\dotsb","\\cdots"),re("\\dotsm","\\cdots"),re("\\dotsi","\\!\\cdots"),re("\\dotsx","\\ldots\\,"),re("\\DOTSI","\\relax"),re("\\DOTSB","\\relax"),re("\\DOTSX","\\relax"),re("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),re("\\,","\\tmspace+{3mu}{.1667em}"),re("\\thinspace","\\,"),re("\\>","\\mskip{4mu}"),re("\\:","\\tmspace+{4mu}{.2222em}"),re("\\medspace","\\:"),re("\\;","\\tmspace+{5mu}{.2777em}"),re("\\thickspace","\\;"),re("\\!","\\tmspace-{3mu}{.1667em}"),re("\\negthinspace","\\!"),re("\\negmedspace","\\tmspace-{4mu}{.2222em}"),re("\\negthickspace","\\tmspace-{5mu}{.277em}"),re("\\enspace","\\kern.5em "),re("\\enskip","\\hskip.5em\\relax"),re("\\quad","\\hskip1em\\relax"),re("\\qquad","\\hskip2em\\relax"),re("\\tag","\\@ifstar\\tag@literal\\tag@paren"),re("\\tag@paren","\\tag@literal{({#1})}"),re("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ft("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),re("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),re("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),re("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),re("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),re("\\newline","\\\\\\relax"),re("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var sz=gt(lc["Main-Regular"][84][1]-.7*lc["Main-Regular"][65][1]);re("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+sz+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),re("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+sz+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),re("\\hspace","\\@ifstar\\@hspacer\\@hspace"),re("\\@hspace","\\hskip #1\\relax"),re("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),re("\\ordinarycolon",":"),re("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),re("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),re("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),re("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),re("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),re("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),re("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),re("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),re("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),re("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),re("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),re("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),re("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),re("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),re("∷","\\dblcolon"),re("∹","\\eqcolon"),re("≔","\\coloneqq"),re("≕","\\eqqcolon"),re("⩴","\\Coloneqq"),re("\\ratio","\\vcentcolon"),re("\\coloncolon","\\dblcolon"),re("\\colonequals","\\coloneqq"),re("\\coloncolonequals","\\Coloneqq"),re("\\equalscolon","\\eqqcolon"),re("\\equalscoloncolon","\\Eqqcolon"),re("\\colonminus","\\coloneq"),re("\\coloncolonminus","\\Coloneq"),re("\\minuscolon","\\eqcolon"),re("\\minuscoloncolon","\\Eqcolon"),re("\\coloncolonapprox","\\Colonapprox"),re("\\coloncolonsim","\\Colonsim"),re("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),re("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),re("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),re("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),re("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),re("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),re("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),re("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),re("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),re("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),re("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),re("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),re("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),re("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),re("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),re("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),re("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),re("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),re("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),re("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),re("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),re("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),re("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),re("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),re("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),re("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),re("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),re("\\imath","\\html@mathml{\\@imath}{ı}"),re("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),re("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),re("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),re("⟦","\\llbracket"),re("⟧","\\rrbracket"),re("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),re("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),re("⦃","\\lBrace"),re("⦄","\\rBrace"),re("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),re("⦵","\\minuso"),re("\\darr","\\downarrow"),re("\\dArr","\\Downarrow"),re("\\Darr","\\Downarrow"),re("\\lang","\\langle"),re("\\rang","\\rangle"),re("\\uarr","\\uparrow"),re("\\uArr","\\Uparrow"),re("\\Uarr","\\Uparrow"),re("\\N","\\mathbb{N}"),re("\\R","\\mathbb{R}"),re("\\Z","\\mathbb{Z}"),re("\\alef","\\aleph"),re("\\alefsym","\\aleph"),re("\\Alpha","\\mathrm{A}"),re("\\Beta","\\mathrm{B}"),re("\\bull","\\bullet"),re("\\Chi","\\mathrm{X}"),re("\\clubs","\\clubsuit"),re("\\cnums","\\mathbb{C}"),re("\\Complex","\\mathbb{C}"),re("\\Dagger","\\ddagger"),re("\\diamonds","\\diamondsuit"),re("\\empty","\\emptyset"),re("\\Epsilon","\\mathrm{E}"),re("\\Eta","\\mathrm{H}"),re("\\exist","\\exists"),re("\\harr","\\leftrightarrow"),re("\\hArr","\\Leftrightarrow"),re("\\Harr","\\Leftrightarrow"),re("\\hearts","\\heartsuit"),re("\\image","\\Im"),re("\\infin","\\infty"),re("\\Iota","\\mathrm{I}"),re("\\isin","\\in"),re("\\Kappa","\\mathrm{K}"),re("\\larr","\\leftarrow"),re("\\lArr","\\Leftarrow"),re("\\Larr","\\Leftarrow"),re("\\lrarr","\\leftrightarrow"),re("\\lrArr","\\Leftrightarrow"),re("\\Lrarr","\\Leftrightarrow"),re("\\Mu","\\mathrm{M}"),re("\\natnums","\\mathbb{N}"),re("\\Nu","\\mathrm{N}"),re("\\Omicron","\\mathrm{O}"),re("\\plusmn","\\pm"),re("\\rarr","\\rightarrow"),re("\\rArr","\\Rightarrow"),re("\\Rarr","\\Rightarrow"),re("\\real","\\Re"),re("\\reals","\\mathbb{R}"),re("\\Reals","\\mathbb{R}"),re("\\Rho","\\mathrm{P}"),re("\\sdot","\\cdot"),re("\\sect","\\S"),re("\\spades","\\spadesuit"),re("\\sub","\\subset"),re("\\sube","\\subseteq"),re("\\supe","\\supseteq"),re("\\Tau","\\mathrm{T}"),re("\\thetasym","\\vartheta"),re("\\weierp","\\wp"),re("\\Zeta","\\mathrm{Z}"),re("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),re("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),re("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),re("\\bra","\\mathinner{\\langle{#1}|}"),re("\\ket","\\mathinner{|{#1}\\rangle}"),re("\\braket","\\mathinner{\\langle{#1}\\rangle}"),re("\\Bra","\\left\\langle#1\\right|"),re("\\Ket","\\left|#1\\right\\rangle");var uz=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,s=t.consumeArg().tokens,c=t.macros.get("|"),d=t.macros.get("\\|");t.macros.beginGroup();var h=S=>T=>{e&&(T.macros.set("|",c),o.length&&T.macros.set("\\|",d));var w=S;if(!S&&o.length){var C=T.future();C.text==="|"&&(T.popToken(),w=!0)}return{tokens:w?o:i,numArgs:0}};t.macros.set("|",h(!1)),o.length&&t.macros.set("\\|",h(!0));var y=t.consumeArg().tokens,b=t.expandTokens([...s,...y,...n]);return t.macros.endGroup(),{tokens:b.reverse(),numArgs:0}};re("\\bra@ket",uz(!1)),re("\\bra@set",uz(!0)),re("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),re("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),re("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),re("\\angln","{\\angl n}"),re("\\blue","\\textcolor{##6495ed}{#1}"),re("\\orange","\\textcolor{##ffa500}{#1}"),re("\\pink","\\textcolor{##ff00af}{#1}"),re("\\red","\\textcolor{##df0030}{#1}"),re("\\green","\\textcolor{##28ae7b}{#1}"),re("\\gray","\\textcolor{gray}{#1}"),re("\\purple","\\textcolor{##9d38bd}{#1}"),re("\\blueA","\\textcolor{##ccfaff}{#1}"),re("\\blueB","\\textcolor{##80f6ff}{#1}"),re("\\blueC","\\textcolor{##63d9ea}{#1}"),re("\\blueD","\\textcolor{##11accd}{#1}"),re("\\blueE","\\textcolor{##0c7f99}{#1}"),re("\\tealA","\\textcolor{##94fff5}{#1}"),re("\\tealB","\\textcolor{##26edd5}{#1}"),re("\\tealC","\\textcolor{##01d1c1}{#1}"),re("\\tealD","\\textcolor{##01a995}{#1}"),re("\\tealE","\\textcolor{##208170}{#1}"),re("\\greenA","\\textcolor{##b6ffb0}{#1}"),re("\\greenB","\\textcolor{##8af281}{#1}"),re("\\greenC","\\textcolor{##74cf70}{#1}"),re("\\greenD","\\textcolor{##1fab54}{#1}"),re("\\greenE","\\textcolor{##0d923f}{#1}"),re("\\goldA","\\textcolor{##ffd0a9}{#1}"),re("\\goldB","\\textcolor{##ffbb71}{#1}"),re("\\goldC","\\textcolor{##ff9c39}{#1}"),re("\\goldD","\\textcolor{##e07d10}{#1}"),re("\\goldE","\\textcolor{##a75a05}{#1}"),re("\\redA","\\textcolor{##fca9a9}{#1}"),re("\\redB","\\textcolor{##ff8482}{#1}"),re("\\redC","\\textcolor{##f9685d}{#1}"),re("\\redD","\\textcolor{##e84d39}{#1}"),re("\\redE","\\textcolor{##bc2612}{#1}"),re("\\maroonA","\\textcolor{##ffbde0}{#1}"),re("\\maroonB","\\textcolor{##ff92c6}{#1}"),re("\\maroonC","\\textcolor{##ed5fa6}{#1}"),re("\\maroonD","\\textcolor{##ca337c}{#1}"),re("\\maroonE","\\textcolor{##9e034e}{#1}"),re("\\purpleA","\\textcolor{##ddd7ff}{#1}"),re("\\purpleB","\\textcolor{##c6b9fc}{#1}"),re("\\purpleC","\\textcolor{##aa87ff}{#1}"),re("\\purpleD","\\textcolor{##7854ab}{#1}"),re("\\purpleE","\\textcolor{##543b78}{#1}"),re("\\mintA","\\textcolor{##f5f9e8}{#1}"),re("\\mintB","\\textcolor{##edf2df}{#1}"),re("\\mintC","\\textcolor{##e0e5cc}{#1}"),re("\\grayA","\\textcolor{##f6f7f7}{#1}"),re("\\grayB","\\textcolor{##f0f1f2}{#1}"),re("\\grayC","\\textcolor{##e3e5e6}{#1}"),re("\\grayD","\\textcolor{##d6d8da}{#1}"),re("\\grayE","\\textcolor{##babec2}{#1}"),re("\\grayF","\\textcolor{##888d93}{#1}"),re("\\grayG","\\textcolor{##626569}{#1}"),re("\\grayH","\\textcolor{##3b3e40}{#1}"),re("\\grayI","\\textcolor{##21242c}{#1}"),re("\\kaBlue","\\textcolor{##314453}{#1}"),re("\\kaGreen","\\textcolor{##71B307}{#1}");var cz={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class lle{constructor(t,n,i){this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new ile(ale,n.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new az(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,i,o;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:o,end:i}=this.consumeArg(["]"])}else({tokens:o,start:n,end:i}=this.consumeArg());return this.pushToken(new Al("EOF",i.loc)),this.pushTokens(o),new Al("",Go.range(n,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],i=t&&t.length>0;i||this.consumeSpaces();var o=this.future(),s,c=0,d=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++c;else if(s.text==="}"){if(--c,c===-1)throw new ft("Extra }",s)}else if(s.text==="EOF")throw new ft("Unexpected end of input in a macro argument, expected '"+(t&&i?t[d]:"}")+"'",s);if(t&&i)if((c===0||c===1&&t[d]==="{")&&s.text===t[d]){if(++d,d===t.length){n.splice(-d,d);break}}else d=0}while(c!==0||i);return o.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:o,end:s}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new ft("The length of delimiters doesn't match the number of args!");for(var i=n[0],o=0;o<i.length;o++){var s=this.popToken();if(i[o]!==s.text)throw new ft("Use of the macro doesn't match its definition",s)}}for(var c=[],d=0;d<t;d++)c.push(this.consumeArg(n&&n[d+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new ft("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),i=n.text,o=n.noexpand?null:this._getExpansion(i);if(o==null||t&&o.unexpandable){if(t&&o==null&&i[0]==="\\"&&!this.isDefined(i))throw new ft("Undefined control sequence: "+i);return this.pushToken(n),!1}this.countExpansion(1);var s=o.tokens,c=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){s=s.slice();for(var d=s.length-1;d>=0;--d){var h=s[d];if(h.text==="#"){if(d===0)throw new ft("Incomplete placeholder at end of macro body",h);if(h=s[--d],h.text==="#")s.splice(d+1,1);else if(/^[1-9]$/.test(h.text))s.splice(d,2,...c[+h.text-1]);else throw new ft("Not a valid argument number",h)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Al(t)]):void 0}expandTokens(t){var n=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),n.push(o)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(i=>i.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var o=typeof n=="function"?n(this):n;if(typeof o=="string"){var s=0;if(o.includes("#"))for(var c=o.replace(/##/g,"");c.includes("#"+(s+1));)++s;for(var d=new az(o,this.settings),h=[],y=d.lex();y.text!=="EOF";)h.push(y),y=d.lex();h.reverse();var b={tokens:h,numArgs:s};return b}return o}isDefined(t){return this.macros.has(t)||qd.hasOwnProperty(t)||qr.math.hasOwnProperty(t)||qr.text.hasOwnProperty(t)||cz.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:qd.hasOwnProperty(t)&&!qd[t].primitive}}var fz=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,m6=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),R8={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},dz={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class g6{constructor(t,n){this.mode="math",this.gullet=new lle(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new ft("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Al("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,i}parseExpression(t,n){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(g6.endOfExpression.has(o.text)||n&&o.text===n||t&&qd[o.text]&&qd[o.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;i.push(s)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var n=-1,i,o=0;o<t.length;o++){var s=t[o];if(s.type==="infix"){if(n!==-1)throw new ft("only one infix operator per group",s.token);n=o,i=s.replaceWith}}if(n!==-1&&i){var c,d,h=t.slice(0,n),y=t.slice(n+1);h.length===1&&h[0].type==="ordgroup"?c=h[0]:c={type:"ordgroup",mode:this.mode,body:h},y.length===1&&y[0].type==="ordgroup"?d=y[0]:d={type:"ordgroup",mode:this.mode,body:y};var b;return i==="\\\\abovefrac"?b=this.callFunction(i,[c,t[n],d],[]):b=this.callFunction(i,[c,d],[]),[b]}else return t}handleSupSubscript(t){var n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();var o;do{var s;o=this.parseGroup(t)}while(((s=o)==null?void 0:s.type)==="internal");if(!o)throw new ft("Expected group after '"+i+"'",n);return o}formatUnsupportedCmd(t){for(var n=[],i=0;i<t.length;i++)n.push({type:"textord",mode:"text",text:t[i]});var o={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return s}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var i,o;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var c=s.text==="\\limits";n.limits=c,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new ft("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(i)throw new ft("Double superscript",s);i=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(o)throw new ft("Double subscript",s);o=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(i)throw new ft("Double superscript",s);var d={type:"textord",mode:this.mode,text:"\\prime"},h=[d];for(this.consume();this.fetch().text==="'";)h.push(d),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:h}}else if(m6[s.text]){var y=fz.test(s.text),b=[];for(b.push(new Al(m6[s.text])),this.consume();;){var S=this.fetch().text;if(!m6[S]||fz.test(S)!==y)break;b.unshift(new Al(m6[S])),this.consume()}var T=this.subparse(b);y?o={type:"ordgroup",mode:"math",body:T}:i={type:"ordgroup",mode:"math",body:T}}else break}return i||o?{type:"supsub",mode:this.mode,base:n,sup:i,sub:o}:n}parseFunction(t,n){var i=this.fetch(),o=i.text,s=qd[o];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new ft("Got function '"+o+"' with no arguments"+(n?" as "+n:""),i);if(this.mode==="text"&&!s.allowedInText)throw new ft("Can't use function '"+o+"' in text mode",i);if(this.mode==="math"&&s.allowedInMath===!1)throw new ft("Can't use function '"+o+"' in math mode",i);var{args:c,optArgs:d}=this.parseArguments(o,s);return this.callFunction(o,c,d,i,t)}callFunction(t,n,i,o,s){var c={funcName:t,parser:this,token:o,breakOnTokenText:s},d=qd[t];if(d&&d.handler)return d.handler(c,n,i);throw new ft("No function handler for "+t)}parseArguments(t,n){var i=n.numArgs+n.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var o=[],s=[],c=0;c<i;c++){var d=n.argTypes&&n.argTypes[c],h=c<n.numOptionalArgs;("primitive"in n&&n.primitive&&d==null||n.type==="sqrt"&&c===1&&s[0]==null)&&(d="primitive");var y=this.parseGroupOfType("argument to '"+t+"'",d,h);if(h)s.push(y);else if(y!=null)o.push(y);else throw new ft("Null argument, please report this as a bug")}return{args:o,optArgs:s}}parseGroupOfType(t,n,i){switch(n){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,n);case"hbox":{var o=this.parseArgumentGroup(i,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",i);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(i)throw new ft("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new ft("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new ft("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var i=this.gullet.scanArgument(n);if(i==null)return null;for(var o="",s;(s=this.fetch()).text!=="EOF";)o+=s.text,this.consume();return this.consume(),i.text=o,i}parseRegexGroup(t,n){for(var i=this.fetch(),o=i,s="",c;(c=this.fetch()).text!=="EOF"&&t.test(s+c.text);)o=c,s+=o.text,this.consume();if(s==="")throw new ft("Invalid "+n+": '"+i.text+"'",i);return i.range(o,s)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!i)throw new ft("Invalid color: '"+n.text+"'",n);var o=i[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(t){var n,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",i=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!o)throw new ft("Invalid size: '"+n.text+"'",n);var s={number:+(o[1]+o[2]),unit:o[3]};if(!HN(s))throw new ft("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,n){var i=this.gullet.scanArgument(t);if(i==null)return null;var o=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var c={type:"ordgroup",mode:this.mode,loc:i.loc,body:s};return n&&this.switchMode(o),c}parseGroup(t,n){var i=this.fetch(),o=i.text,s;if(o==="{"||o==="\\begingroup"){this.consume();var c=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var d=this.parseExpression(!1,c),h=this.fetch();this.expect(c),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Go.range(i,h),body:d,semisimple:o==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,t)||this.parseSymbol(),s==null&&o[0]==="\\"&&!cz.hasOwnProperty(o)){if(this.settings.throwOnError)throw new ft("Undefined control sequence: "+o,i);s=this.formatUnsupportedCmd(o),this.consume()}return s}formLigatures(t){for(var n=t.length-1,i=0;i<n;++i){var o=t[i];if(o.type==="textord"){var s=o.text,c=t[i+1];if(!(!c||c.type!=="textord")){if(s==="-"&&c.text==="-"){var d=t[i+2];i+1<n&&d&&d.type==="textord"&&d.text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:Go.range(o,d),text:"---"}),n-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:Go.range(o,c),text:"--"}),n-=1)}(s==="'"||s==="`")&&c.text===s&&(t.splice(i,2,{type:"textord",mode:"text",loc:Go.range(o,c),text:s+s}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var i=n.slice(5),o=i.charAt(0)==="*";if(o&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new ft(`\\verb assertion failed --
                    please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:o}}dz.hasOwnProperty(n[0])&&!qr[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=dz[n[0]]+n.slice(1));var s=nle.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var c;if(qr[this.mode][n]){this.settings.strict&&this.mode==="math"&&WT.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var d=qr[this.mode][n].group,h=Go.range(t),y;if(roe.hasOwnProperty(d)){var b=d;y={type:"atom",mode:this.mode,family:b,loc:h,text:n}}else y={type:d,mode:this.mode,loc:h,text:n};c=y}else if(n.charCodeAt(0)>=128)this.settings.strict&&(UN(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),c={type:"textord",mode:"text",loc:Go.range(t),text:n};else return null;if(this.consume(),s)for(var S=0;S<s[0].length;S++){var T=s[0][S];if(!R8[T])throw new ft("Unknown accent ' "+T+"'",t);var w=R8[T][this.mode]||R8[T].text;if(!w)throw new ft("Accent "+T+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:Go.range(t),label:w,isStretchy:!1,isShifty:!0,base:c}}return c}}g6.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var M8=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new g6(t,n);delete i.gullet.macros.current["\\df@tag"];var o=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new ft("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:i.subparse([new Al("\\df@tag")])}]}return o},hz=function(t,n,i){n.textContent="";var o=_8(t,i).toNode();n.appendChild(o)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),hz=function(){throw new ft("KaTeX doesn't work in quirks mode.")});var sle=function(t,n){var i=_8(t,n).toMarkup();return i},ule=function(t,n){var i=new BT(n);return M8(t,i)},pz=function(t,n,i){if(i.throwOnError||!(t instanceof ft))throw t;var o=lt(["katex-error"],[new ns(n)]);return o.setAttribute("title",t.toString()),o.setAttribute("style","color:"+i.errorColor),o},_8=function(t,n){var i=new BT(n);try{var o=M8(t,i);return boe(o,t,i)}catch(s){return pz(s,t,i)}},cle=function(t,n){var i=new BT(n);try{var o=M8(t,i);return xoe(o,t,i)}catch(s){return pz(s,t,i)}},fle="0.16.37",dle={Span:Db,Anchor:$T,SymbolNode:ns,SvgNode:uf,PathNode:jd,LineNode:HT},mz={version:fle,render:hz,renderToString:sle,ParseError:ft,SETTINGS_SCHEMA:VT,__parse:ule,__renderToDomTree:_8,__renderToHTMLTree:cle,__setFontMetrics:toe,__defineSymbol:N,__defineFunction:Tt,__defineMacro:re,__domTree:dle};const hle={},ple=[];function mle(e){const t=e||hle;return function(n,i){vT(n,"element",function(o,s){const c=Array.isArray(o.properties.className)?o.properties.className:ple,d=c.includes("language-math"),h=c.includes("math-display"),y=c.includes("math-inline");let b=h;if(!d&&!h&&!y)return;let S=s[s.length-1],T=o;if(o.tagName==="code"&&d&&S&&S.type==="element"&&S.tagName==="pre"&&(T=S,S=s[s.length-2],b=!0),!S)return;const w=xae(T,{whitespace:"pre"});let C;try{C=mz.renderToString(w,{...t,displayMode:b,throwOnError:!0})}catch(_){const k=_,z=k.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...s,o],cause:k,place:o.position,ruleId:z,source:"rehype-katex"});try{C=mz.renderToString(w,{...t,displayMode:b,strict:"ignore",throwOnError:!1})}catch{C=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(_)},children:[{type:"text",value:w}]}]}}typeof C=="string"&&(C=dae(C).children);const M=S.children.indexOf(T);return S.children.splice(M,1,...C),mN})}}const Nh=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],gz={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Nh,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Nh],h2:[["className","sr-only"]],img:[...Nh,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Nh,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Nh],table:[...Nh],ul:[...Nh,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Gd={}.hasOwnProperty;function gle(e,t){let n={type:"root",children:[]};const i={schema:t?{...gz,...t}:gz,stack:[]},o=yz(i,e);return o&&(Array.isArray(o)?o.length===1?n=o[0]:n.children=o:n=o),n}function yz(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return yle(e,n);case"doctype":return vle(e,n);case"element":return ble(e,n);case"root":return xle(e,n);case"text":return Sle(e,n)}}}function yle(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",i=n.indexOf("-->"),s={type:"comment",value:i<0?n:n.slice(0,i)};return Vb(s,t),s}}function vle(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Vb(n,t),n}}function ble(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const i=vz(e,t.children),o=Ele(e,t.properties);e.stack.pop();let s=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(s=!0,e.schema.ancestors&&Gd.call(e.schema.ancestors,n))){const d=e.schema.ancestors[n];let h=-1;for(s=!1;++h<d.length;)e.stack.includes(d[h])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(n)?i:void 0;const c={type:"element",tagName:n,properties:o,children:i};return Vb(c,t),c}function xle(e,t){const i={type:"root",children:vz(e,t.children)};return Vb(i,t),i}function Sle(e,t){const i={type:"text",value:typeof t.value=="string"?t.value:""};return Vb(i,t),i}function vz(e,t){const n=[];if(Array.isArray(t)){const i=t;let o=-1;for(;++o<i.length;){const s=yz(e,i[o]);s&&(Array.isArray(s)?n.push(...s):n.push(s))}}return n}function Ele(e,t){const n=e.stack[e.stack.length-1],i=e.schema.attributes,o=e.schema.required,s=i&&Gd.call(i,n)?i[n]:void 0,c=i&&Gd.call(i,"*")?i["*"]:void 0,d=t&&typeof t=="object"?t:{},h={};let y;for(y in d)if(Gd.call(d,y)){const b=d[y];let S=bz(e,Sz(s,y),y,b);S==null&&(S=bz(e,Sz(c,y),y,b)),S!=null&&(h[y]=S)}if(o&&Gd.call(o,n)){const b=o[n];for(y in b)Gd.call(b,y)&&!Gd.call(h,y)&&(h[y]=b[y])}return h}function bz(e,t,n,i){return t?Array.isArray(i)?wle(e,t,n,i):xz(e,t,n,i):void 0}function wle(e,t,n,i){let o=-1;const s=[];for(;++o<i.length;){const c=xz(e,t,n,i[o]);(typeof c=="number"||typeof c=="string")&&s.push(c)}return s}function xz(e,t,n,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&Tle(e,n,i)){if(typeof t=="object"&&t.length>1){let o=!1,s=0;for(;++s<t.length;){const c=t[s];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(i))){o=!0;break}}else if(c===i){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+i:i}}function Tle(e,t,n){const i=e.schema.protocols&&Gd.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||i.length===0)return!0;const o=String(n),s=o.indexOf(":"),c=o.indexOf("?"),d=o.indexOf("#"),h=o.indexOf("/");if(s<0||h>-1&&s>h||c>-1&&s>c||d>-1&&s>d)return!0;let y=-1;for(;++y<i.length;){const b=i[y];if(s===b.length&&o.slice(0,b.length)===b)return!0}return!1}function Vb(e,t){const n=AD(t);t.data&&(e.data=Cb(t.data)),n&&(e.position=n)}function Sz(e,t){let n,i=-1;if(e)for(;++i<e.length;){const o=e[i],s=typeof o=="string"?o:o[0];if(s===t)return o;s==="data*"&&(n=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function Ale(e){return function(t){return gle(t,e)}}function Ez(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,o=n.indexOf(t);for(;o!==-1;)i++,o=n.indexOf(t,o+t.length);return i}function Cle(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ole(e,t,n){const o=Ob((n||{}).ignore||[]),s=Rle(t);let c=-1;for(;++c<s.length;)vT(e,"text",d);function d(y,b){let S=-1,T;for(;++S<b.length;){const w=b[S],C=T?T.children:void 0;if(o(w,C?C.indexOf(w):void 0,T))return;T=w}if(T)return h(y,b)}function h(y,b){const S=b[b.length-1],T=s[c][0],w=s[c][1];let C=0;const _=S.children.indexOf(y);let k=!1,z=[];T.lastIndex=0;let L=T.exec(y.value);for(;L;){const B=L.index,V={index:L.index,input:L.input,stack:[...b,y]};let U=w(...L,V);if(typeof U=="string"&&(U=U.length>0?{type:"text",value:U}:void 0),U===!1?T.lastIndex=B+1:(C!==B&&z.push({type:"text",value:y.value.slice(C,B)}),Array.isArray(U)?z.push(...U):U&&z.push(U),C=B+L[0].length,k=!0),!T.global)break;L=T.exec(y.value)}return k?(C<y.value.length&&z.push({type:"text",value:y.value.slice(C)}),S.children.splice(_,1,...z)):z=[y],_+z.length}}function Rle(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const o=n[i];t.push([Mle(o[0]),_le(o[1])])}return t}function Mle(e){return typeof e=="string"?new RegExp(Cle(e),"g"):e}function _le(e){return typeof e=="function"?e:function(){return e}}const D8="phrasing",N8=["autolink","link","image","label"];function Dle(){return{transforms:[Ble],enter:{literalAutolink:kle,literalAutolinkEmail:k8,literalAutolinkHttp:k8,literalAutolinkWww:k8},exit:{literalAutolink:Vle,literalAutolinkEmail:Lle,literalAutolinkHttp:zle,literalAutolinkWww:Ile}}}function Nle(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:D8,notInConstruct:N8},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:D8,notInConstruct:N8},{character:":",before:"[ps]",after:"\\/",inConstruct:D8,notInConstruct:N8}]}}function kle(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function k8(e){this.config.enter.autolinkProtocol.call(this,e)}function zle(e){this.config.exit.autolinkProtocol.call(this,e)}function Ile(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Lle(e){this.config.exit.autolinkEmail.call(this,e)}function Vle(e){this.exit(e)}function Ble(e){Ole(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,jle],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Ple]],{ignore:["link","linkReference"]})}function jle(e,t,n,i,o){let s="";if(!wz(o)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!Ule(n)))return!1;const c=$le(n+i);if(!c[0])return!1;const d={type:"link",title:null,url:s+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function Ple(e,t,n,i){return!wz(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Ule(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function $le(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const o=Ez(e,"(");let s=Ez(e,")");for(;i!==-1&&o>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function wz(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Oh(n)||L3(n))&&(!t||n!==47)}Tz.peek=Kle;function Hle(){this.buffer()}function qle(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Gle(){this.buffer()}function Fle(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Yle(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=cu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Xle(e){this.exit(e)}function Wle(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=cu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Qle(e){this.exit(e)}function Kle(){return"["}function Tz(e,t,n,i){const o=n.createTracker(i);let s=o.move("[^");const c=n.enter("footnoteReference"),d=n.enter("reference");return s+=o.move(n.safe(n.associationId(e),{after:"]",before:s})),d(),c(),s+=o.move("]"),s}function Zle(){return{enter:{gfmFootnoteCallString:Hle,gfmFootnoteCall:qle,gfmFootnoteDefinitionLabelString:Gle,gfmFootnoteDefinition:Fle},exit:{gfmFootnoteCallString:Yle,gfmFootnoteCall:Xle,gfmFootnoteDefinitionLabelString:Wle,gfmFootnoteDefinition:Qle}}}function Jle(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Tz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,o,s,c){const d=s.createTracker(c);let h=d.move("[^");const y=s.enter("footnoteDefinition"),b=s.enter("label");return h+=d.move(s.safe(s.associationId(i),{before:h,after:"]"})),b(),h+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),h+=d.move((t?`
`:" ")+s.indentLines(s.containerFlow(i,d.current()),t?Az:ese))),y(),h}}function ese(e,t,n){return t===0?e:Az(e,t,n)}function Az(e,t,n){return(n?"":"    ")+e}const tse=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Cz.peek=ose;function nse(){return{canContainEols:["delete"],enter:{strikethrough:ise},exit:{strikethrough:ase}}}function rse(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tse}],handlers:{delete:Cz}}}function ise(e){this.enter({type:"delete",children:[]},e)}function ase(e){this.exit(e)}function Cz(e,t,n,i){const o=n.createTracker(i),s=n.enter("strikethrough");let c=o.move("~~");return c+=n.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function ose(){return"~"}function lse(e){return e.length}function sse(e,t){const n=t||{},i=(n.align||[]).concat(),o=n.stringLength||lse,s=[],c=[],d=[],h=[];let y=0,b=-1;for(;++b<e.length;){const M=[],_=[];let k=-1;for(e[b].length>y&&(y=e[b].length);++k<e[b].length;){const z=use(e[b][k]);if(n.alignDelimiters!==!1){const L=o(z);_[k]=L,(h[k]===void 0||L>h[k])&&(h[k]=L)}M.push(z)}c[b]=M,d[b]=_}let S=-1;if(typeof i=="object"&&"length"in i)for(;++S<y;)s[S]=Oz(i[S]);else{const M=Oz(i);for(;++S<y;)s[S]=M}S=-1;const T=[],w=[];for(;++S<y;){const M=s[S];let _="",k="";M===99?(_=":",k=":"):M===108?_=":":M===114&&(k=":");let z=n.alignDelimiters===!1?1:Math.max(1,h[S]-_.length-k.length);const L=_+"-".repeat(z)+k;n.alignDelimiters!==!1&&(z=_.length+z+k.length,z>h[S]&&(h[S]=z),w[S]=z),T[S]=L}c.splice(1,0,T),d.splice(1,0,w),b=-1;const C=[];for(;++b<c.length;){const M=c[b],_=d[b];S=-1;const k=[];for(;++S<y;){const z=M[S]||"";let L="",B="";if(n.alignDelimiters!==!1){const V=h[S]-(_[S]||0),U=s[S];U===114?L=" ".repeat(V):U===99?V%2?(L=" ".repeat(V/2+.5),B=" ".repeat(V/2-.5)):(L=" ".repeat(V/2),B=L):B=" ".repeat(V)}n.delimiterStart!==!1&&!S&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&z==="")&&(n.delimiterStart!==!1||S)&&k.push(" "),n.alignDelimiters!==!1&&k.push(L),k.push(z),n.alignDelimiters!==!1&&k.push(B),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||S!==y-1)&&k.push("|")}C.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return C.join(`
`)}function use(e){return e==null?"":String(e)}function Oz(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function cse(e,t,n,i){const o=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const c=n.indentLines(n.containerFlow(e,s.current()),fse);return o(),c}function fse(e,t,n){return">"+(n?"":" ")+e}function dse(e,t){return Rz(e,t.inConstruct,!0)&&!Rz(e,t.notInConstruct,!1)}function Rz(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Mz(e,t,n,i){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
`&&dse(n.stack,n.unsafe[o]))return/[ \t]/.test(i.before)?"":" ";return`\\
`}function _z(e,t){const n=String(e);let i=n.indexOf(t),o=i,s=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===o?++s>c&&(c=s):s=1,o=i+t.length,i=n.indexOf(t,o);return c}function hse(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function pse(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function mse(e,t,n,i){const o=pse(n),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(hse(e,n)){const S=n.enter("codeIndented"),T=n.indentLines(s,gse);return S(),T}const d=n.createTracker(i),h=o.repeat(Math.max(_z(s,o)+1,3)),y=n.enter("codeFenced");let b=d.move(h);if(e.lang){const S=n.enter(`codeFencedLang${c}`);b+=d.move(n.safe(e.lang,{before:b,after:" ",encode:["`"],...d.current()})),S()}if(e.lang&&e.meta){const S=n.enter(`codeFencedMeta${c}`);b+=d.move(" "),b+=d.move(n.safe(e.meta,{before:b,after:`
`,encode:["`"],...d.current()})),S()}return b+=d.move(`
`),s&&(b+=d.move(s+`
`)),b+=d.move(h),y(),b}function gse(e,t,n){return(n?"":"    ")+e}function z8(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function yse(e,t,n,i){const o=z8(n),s=o==='"'?"Quote":"Apostrophe",c=n.enter("definition");let d=n.enter("label");const h=n.createTracker(i);let y=h.move("[");return y+=h.move(n.safe(n.associationId(e),{before:y,after:"]",...h.current()})),y+=h.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),y+=h.move("<"),y+=h.move(n.safe(e.url,{before:y,after:">",...h.current()})),y+=h.move(">")):(d=n.enter("destinationRaw"),y+=h.move(n.safe(e.url,{before:y,after:e.title?" ":`
`,...h.current()}))),d(),e.title&&(d=n.enter(`title${s}`),y+=h.move(" "+o),y+=h.move(n.safe(e.title,{before:y,after:o,...h.current()})),y+=h.move(o),d()),c(),y}function vse(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Bb(e){return"&#x"+e.toString(16).toUpperCase()+";"}function y6(e,t,n){const i=Cg(e),o=Cg(t);return i===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Dz.peek=bse;function Dz(e,t,n,i){const o=vse(n),s=n.enter("emphasis"),c=n.createTracker(i),d=c.move(o);let h=c.move(n.containerPhrasing(e,{after:o,before:d,...c.current()}));const y=h.charCodeAt(0),b=y6(i.before.charCodeAt(i.before.length-1),y,o);b.inside&&(h=Bb(y)+h.slice(1));const S=h.charCodeAt(h.length-1),T=y6(i.after.charCodeAt(0),S,o);T.inside&&(h=h.slice(0,-1)+Bb(S));const w=c.move(o);return s(),n.attentionEncodeSurroundingInfo={after:T.outside,before:b.outside},d+h+w}function bse(e,t,n){return n.options.emphasis||"*"}function xse(e,t){let n=!1;return bT(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,yT}),!!((!e.depth||e.depth<3)&&oT(e)&&(t.options.setext||n))}function Sse(e,t,n,i){const o=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(xse(e,n)){const b=n.enter("headingSetext"),S=n.enter("phrasing"),T=n.containerPhrasing(e,{...s.current(),before:`
`,after:`
`});return S(),b(),T+`
`+(o===1?"=":"-").repeat(T.length-(Math.max(T.lastIndexOf("\r"),T.lastIndexOf(`
`))+1))}const c="#".repeat(o),d=n.enter("headingAtx"),h=n.enter("phrasing");s.move(c+" ");let y=n.containerPhrasing(e,{before:"# ",after:`
`,...s.current()});return/^[\t ]/.test(y)&&(y=Bb(y.charCodeAt(0))+y.slice(1)),y=y?c+" "+y:c,n.options.closeAtx&&(y+=" "+c),h(),d(),y}Nz.peek=Ese;function Nz(e){return e.value||""}function Ese(){return"<"}kz.peek=wse;function kz(e,t,n,i){const o=z8(n),s=o==='"'?"Quote":"Apostrophe",c=n.enter("image");let d=n.enter("label");const h=n.createTracker(i);let y=h.move("![");return y+=h.move(n.safe(e.alt,{before:y,after:"]",...h.current()})),y+=h.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),y+=h.move("<"),y+=h.move(n.safe(e.url,{before:y,after:">",...h.current()})),y+=h.move(">")):(d=n.enter("destinationRaw"),y+=h.move(n.safe(e.url,{before:y,after:e.title?" ":")",...h.current()}))),d(),e.title&&(d=n.enter(`title${s}`),y+=h.move(" "+o),y+=h.move(n.safe(e.title,{before:y,after:o,...h.current()})),y+=h.move(o),d()),y+=h.move(")"),c(),y}function wse(){return"!"}zz.peek=Tse;function zz(e,t,n,i){const o=e.referenceType,s=n.enter("imageReference");let c=n.enter("label");const d=n.createTracker(i);let h=d.move("![");const y=n.safe(e.alt,{before:h,after:"]",...d.current()});h+=d.move(y+"]["),c();const b=n.stack;n.stack=[],c=n.enter("reference");const S=n.safe(n.associationId(e),{before:h,after:"]",...d.current()});return c(),n.stack=b,s(),o==="full"||!y||y!==S?h+=d.move(S+"]"):o==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function Tse(){return"!"}Iz.peek=Ase;function Iz(e,t,n){let i=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(i);)o+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const c=n.unsafe[s],d=n.compilePattern(c);let h;if(c.atBreak)for(;h=d.exec(i);){let y=h.index;i.charCodeAt(y)===10&&i.charCodeAt(y-1)===13&&y--,i=i.slice(0,y)+" "+i.slice(h.index+1)}}return o+i+o}function Ase(){return"`"}function Lz(e,t){const n=oT(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Vz.peek=Cse;function Vz(e,t,n,i){const o=z8(n),s=o==='"'?"Quote":"Apostrophe",c=n.createTracker(i);let d,h;if(Lz(e,n)){const b=n.stack;n.stack=[],d=n.enter("autolink");let S=c.move("<");return S+=c.move(n.containerPhrasing(e,{before:S,after:">",...c.current()})),S+=c.move(">"),d(),n.stack=b,S}d=n.enter("link"),h=n.enter("label");let y=c.move("[");return y+=c.move(n.containerPhrasing(e,{before:y,after:"](",...c.current()})),y+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),y+=c.move("<"),y+=c.move(n.safe(e.url,{before:y,after:">",...c.current()})),y+=c.move(">")):(h=n.enter("destinationRaw"),y+=c.move(n.safe(e.url,{before:y,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=n.enter(`title${s}`),y+=c.move(" "+o),y+=c.move(n.safe(e.title,{before:y,after:o,...c.current()})),y+=c.move(o),h()),y+=c.move(")"),d(),y}function Cse(e,t,n){return Lz(e,n)?"<":"["}Bz.peek=Ose;function Bz(e,t,n,i){const o=e.referenceType,s=n.enter("linkReference");let c=n.enter("label");const d=n.createTracker(i);let h=d.move("[");const y=n.containerPhrasing(e,{before:h,after:"]",...d.current()});h+=d.move(y+"]["),c();const b=n.stack;n.stack=[],c=n.enter("reference");const S=n.safe(n.associationId(e),{before:h,after:"]",...d.current()});return c(),n.stack=b,s(),o==="full"||!y||y!==S?h+=d.move(S+"]"):o==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function Ose(){return"["}function I8(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Rse(e){const t=I8(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Mse(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function jz(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function _se(e,t,n,i){const o=n.enter("list"),s=n.bulletCurrent;let c=e.ordered?Mse(n):I8(n);const d=e.ordered?c==="."?")":".":Rse(n);let h=t&&n.bulletLastUsed?c===n.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(h=!0),jz(n)===c&&b){let S=-1;for(;++S<e.children.length;){const T=e.children[S];if(T&&T.type==="listItem"&&T.children&&T.children[0]&&T.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=d),n.bulletCurrent=c;const y=n.containerFlow(e,i);return n.bulletLastUsed=c,n.bulletCurrent=s,o(),y}function Dse(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Nse(e,t,n,i){const o=Dse(n);let s=n.bulletCurrent||I8(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=n.createTracker(i);d.move(s+" ".repeat(c-s.length)),d.shift(c);const h=n.enter("listItem"),y=n.indentLines(n.containerFlow(e,d.current()),b);return h(),y;function b(S,T,w){return T?(w?"":" ".repeat(c))+S:(w?s:s+" ".repeat(c-s.length))+S}}function kse(e,t,n,i){const o=n.enter("paragraph"),s=n.enter("phrasing"),c=n.containerPhrasing(e,i);return s(),o(),c}const zse=Ob(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ise(e,t,n,i){return(e.children.some(function(c){return zse(c)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function Lse(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Pz.peek=Vse;function Pz(e,t,n,i){const o=Lse(n),s=n.enter("strong"),c=n.createTracker(i),d=c.move(o+o);let h=c.move(n.containerPhrasing(e,{after:o,before:d,...c.current()}));const y=h.charCodeAt(0),b=y6(i.before.charCodeAt(i.before.length-1),y,o);b.inside&&(h=Bb(y)+h.slice(1));const S=h.charCodeAt(h.length-1),T=y6(i.after.charCodeAt(0),S,o);T.inside&&(h=h.slice(0,-1)+Bb(S));const w=c.move(o+o);return s(),n.attentionEncodeSurroundingInfo={after:T.outside,before:b.outside},d+h+w}function Vse(e,t,n){return n.options.strong||"*"}function Bse(e,t,n,i){return n.safe(e.value,i)}function jse(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Pse(e,t,n){const i=(jz(n)+(n.options.ruleSpaces?" ":"")).repeat(jse(n));return n.options.ruleSpaces?i.slice(0,-1):i}const Uz={blockquote:cse,break:Mz,code:mse,definition:yse,emphasis:Dz,hardBreak:Mz,heading:Sse,html:Nz,image:kz,imageReference:zz,inlineCode:Iz,link:Vz,linkReference:Bz,list:_se,listItem:Nse,paragraph:kse,root:Ise,strong:Pz,text:Bse,thematicBreak:Pse};function Use(){return{enter:{table:$se,tableData:$z,tableHeader:$z,tableRow:qse},exit:{codeText:Gse,table:Hse,tableData:L8,tableHeader:L8,tableRow:L8}}}function $se(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Hse(e){this.exit(e),this.data.inTable=void 0}function qse(e){this.enter({type:"tableRow",children:[]},e)}function L8(e){this.exit(e)}function $z(e){this.enter({type:"tableCell",children:[]},e)}function Gse(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Fse));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Fse(e,t){return t==="|"?t:e}function Yse(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,o=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:T,table:c,tableCell:h,tableRow:d}};function c(w,C,M,_){return y(b(w,M,_),w.align)}function d(w,C,M,_){const k=S(w,M,_),z=y([k]);return z.slice(0,z.indexOf(`
`))}function h(w,C,M,_){const k=M.enter("tableCell"),z=M.enter("phrasing"),L=M.containerPhrasing(w,{..._,before:s,after:s});return z(),k(),L}function y(w,C){return sse(w,{align:C,alignDelimiters:i,padding:n,stringLength:o})}function b(w,C,M){const _=w.children;let k=-1;const z=[],L=C.enter("table");for(;++k<_.length;)z[k]=S(_[k],C,M);return L(),z}function S(w,C,M){const _=w.children;let k=-1;const z=[],L=C.enter("tableRow");for(;++k<_.length;)z[k]=h(_[k],w,C,M);return L(),z}function T(w,C,M){let _=Uz.inlineCode(w,C,M);return M.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function Xse(){return{exit:{taskListCheckValueChecked:Hz,taskListCheckValueUnchecked:Hz,paragraph:Qse}}}function Wse(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Kse}}}function Hz(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Qse(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const o=t.children;let s=-1,c;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){c=d;break}}c===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function Kse(e,t,n,i){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",d=n.createTracker(i);s&&d.move(c);let h=Uz.listItem(e,t,n,{...i,...d.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,y)),h;function y(b){return b+c}}function Zse(){return[Dle(),Zle(),nse(),Use(),Xse()]}function Jse(e){return{extensions:[Nle(),Jle(e),rse(),Yse(e),Wse()]}}const eue={tokenize:oue,partial:!0},qz={tokenize:lue,partial:!0},Gz={tokenize:sue,partial:!0},Fz={tokenize:uue,partial:!0},tue={tokenize:cue,partial:!0},Yz={name:"wwwAutolink",tokenize:iue,previous:Wz},Xz={name:"protocolAutolink",tokenize:aue,previous:Qz},pf={name:"emailAutolink",tokenize:rue,previous:Kz},fc={};function nue(){return{text:fc}}let kh=48;for(;kh<123;)fc[kh]=pf,kh++,kh===58?kh=65:kh===91&&(kh=97);fc[43]=pf,fc[45]=pf,fc[46]=pf,fc[95]=pf,fc[72]=[pf,Xz],fc[104]=[pf,Xz],fc[87]=[pf,Yz],fc[119]=[pf,Yz];function rue(e,t,n){const i=this;let o,s;return c;function c(S){return!V8(S)||!Kz.call(i,i.previous)||B8(i.events)?n(S):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(S))}function d(S){return V8(S)?(e.consume(S),d):S===64?(e.consume(S),h):n(S)}function h(S){return S===46?e.check(tue,b,y)(S):S===45||S===95||Ha(S)?(s=!0,e.consume(S),h):b(S)}function y(S){return e.consume(S),o=!0,h}function b(S){return s&&o&&mo(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(S)):n(S)}}function iue(e,t,n){const i=this;return o;function o(c){return c!==87&&c!==119||!Wz.call(i,i.previous)||B8(i.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eue,e.attempt(qz,e.attempt(Gz,s),n),n)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function aue(e,t,n){const i=this;let o="",s=!1;return c;function c(S){return(S===72||S===104)&&Qz.call(i,i.previous)&&!B8(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(S),e.consume(S),d):n(S)}function d(S){if(mo(S)&&o.length<5)return o+=String.fromCodePoint(S),e.consume(S),d;if(S===58){const T=o.toLowerCase();if(T==="http"||T==="https")return e.consume(S),h}return n(S)}function h(S){return S===47?(e.consume(S),s?y:(s=!0,h)):n(S)}function y(S){return S===null||I3(S)||Ar(S)||Oh(S)||L3(S)?n(S):e.attempt(qz,e.attempt(Gz,b),n)(S)}function b(S){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(S)}}function oue(e,t,n){let i=0;return o;function o(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),o):c===46&&i===3?(e.consume(c),s):n(c)}function s(c){return c===null?n(c):t(c)}}function lue(e,t,n){let i,o,s;return c;function c(y){return y===46||y===95?e.check(Fz,h,d)(y):y===null||Ar(y)||Oh(y)||y!==45&&L3(y)?h(y):(s=!0,e.consume(y),c)}function d(y){return y===95?i=!0:(o=i,i=void 0),e.consume(y),c}function h(y){return o||i||!s?n(y):t(y)}}function sue(e,t){let n=0,i=0;return o;function o(c){return c===40?(n++,e.consume(c),o):c===41&&i<n?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Fz,t,s)(c):c===null||Ar(c)||Oh(c)?t(c):(e.consume(c),o)}function s(c){return c===41&&i++,e.consume(c),o}}function uue(e,t,n){return i;function i(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),i):d===38?(e.consume(d),s):d===93?(e.consume(d),o):d===60||d===null||Ar(d)||Oh(d)?t(d):n(d)}function o(d){return d===null||d===40||d===91||Ar(d)||Oh(d)?t(d):i(d)}function s(d){return mo(d)?c(d):n(d)}function c(d){return d===59?(e.consume(d),i):mo(d)?(e.consume(d),c):n(d)}}function cue(e,t,n){return i;function i(s){return e.consume(s),o}function o(s){return Ha(s)?n(s):t(s)}}function Wz(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ar(e)}function Qz(e){return!mo(e)}function Kz(e){return!(e===47||V8(e))}function V8(e){return e===43||e===45||e===46||e===95||Ha(e)}function B8(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const fue={tokenize:bue,partial:!0};function due(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gue,continuation:{tokenize:yue},exit:vue}},text:{91:{name:"gfmFootnoteCall",tokenize:mue},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hue,resolveTo:pue}}}}function hue(e,t,n){const i=this;let o=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;o--;){const h=i.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return d;function d(h){if(!c||!c._balanced)return n(h);const y=cu(i.sliceSerialize({start:c.end,end:i.now()}));return y.codePointAt(0)!==94||!s.includes(y.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function pue(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},d=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",c,t],["exit",c,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...d),e}function mue(e,t,n){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,c;return d;function d(S){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(S),e.exit("gfmFootnoteCallLabelMarker"),h}function h(S){return S!==94?n(S):(e.enter("gfmFootnoteCallMarker"),e.consume(S),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",y)}function y(S){if(s>999||S===93&&!c||S===null||S===91||Ar(S))return n(S);if(S===93){e.exit("chunkString");const T=e.exit("gfmFootnoteCallString");return o.includes(cu(i.sliceSerialize(T)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(S),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(S)}return Ar(S)||(c=!0),s++,e.consume(S),S===92?b:y}function b(S){return S===91||S===92||S===93?(e.consume(S),s++,y):y(S)}}function gue(e,t,n){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,c=0,d;return h;function h(C){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),y}function y(C){return C===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):n(C)}function b(C){if(c>999||C===93&&!d||C===null||C===91||Ar(C))return n(C);if(C===93){e.exit("chunkString");const M=e.exit("gfmFootnoteDefinitionLabelString");return s=cu(i.sliceSerialize(M)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),T}return Ar(C)||(d=!0),c++,e.consume(C),C===92?S:b}function S(C){return C===91||C===92||C===93?(e.consume(C),c++,b):b(C)}function T(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),o.includes(s)||o.push(s),Nn(e,w,"gfmFootnoteDefinitionWhitespace")):n(C)}function w(C){return t(C)}}function yue(e,t,n){return e.check(Sb,t,e.attempt(fue,t,n))}function vue(e){e.exit("gfmFootnoteDefinition")}function bue(e,t,n){const i=this;return Nn(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(s):n(s)}}function xue(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:o};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function o(c,d){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let y=h;for(;y--;)if(c[y][0]==="exit"&&c[y][1].type==="strikethroughSequenceTemporary"&&c[y][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[y][1].end.offset-c[y][1].start.offset){c[h][1].type="strikethroughSequence",c[y][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[y][1].start),end:Object.assign({},c[h][1].end)},S={type:"strikethroughText",start:Object.assign({},c[y][1].end),end:Object.assign({},c[h][1].start)},T=[["enter",b,d],["enter",c[y][1],d],["exit",c[y][1],d],["enter",S,d]],w=d.parser.constructs.insideSpan.null;w&&El(T,T.length,0,V3(w,c.slice(y+1,h),d)),El(T,T.length,0,[["exit",S,d],["enter",c[h][1],d],["exit",c[h][1],d],["exit",b,d]]),El(c,y-1,h-y+3,T),h=y+T.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function s(c,d,h){const y=this.previous,b=this.events;let S=0;return T;function T(C){return y===126&&b[b.length-1][1].type!=="characterEscape"?h(C):(c.enter("strikethroughSequenceTemporary"),w(C))}function w(C){const M=Cg(y);if(C===126)return S>1?h(C):(c.consume(C),S++,w);if(S<2&&!n)return h(C);const _=c.exit("strikethroughSequenceTemporary"),k=Cg(C);return _._open=!k||k===2&&!!M,_._close=!M||M===2&&!!k,d(C)}}}class Sue{constructor(){this.map=[]}add(t,n,i){Eue(this,t,n,i)}consume(t){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let o=i.pop();for(;o;){for(const s of o)t.push(s);o=i.pop()}this.map.length=0}}function Eue(e,t,n,i){let o=0;if(!(n===0&&i.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...i);return}o+=1}e.map.push([t,n,i])}}function wue(e,t){let n=!1;const i=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function Tue(){return{flow:{null:{name:"table",tokenize:Aue,resolveAll:Cue}}}}function Aue(e,t,n){const i=this;let o=0,s=0,c;return d;function d(ie){let ue=i.events.length-1;for(;ue>-1;){const Q=i.events[ue][1].type;if(Q==="lineEnding"||Q==="linePrefix")ue--;else break}const $=ue>-1?i.events[ue][1].type:null,le=$==="tableHead"||$==="tableRow"?U:h;return le===U&&i.parser.lazy[i.now().line]?n(ie):le(ie)}function h(ie){return e.enter("tableHead"),e.enter("tableRow"),y(ie)}function y(ie){return ie===124||(c=!0,s+=1),b(ie)}function b(ie){return ie===null?n(ie):It(ie)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(ie),e.exit("lineEnding"),w):n(ie):Vn(ie)?Nn(e,b,"whitespace")(ie):(s+=1,c&&(c=!1,o+=1),ie===124?(e.enter("tableCellDivider"),e.consume(ie),e.exit("tableCellDivider"),c=!0,b):(e.enter("data"),S(ie)))}function S(ie){return ie===null||ie===124||Ar(ie)?(e.exit("data"),b(ie)):(e.consume(ie),ie===92?T:S)}function T(ie){return ie===92||ie===124?(e.consume(ie),S):S(ie)}function w(ie){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(ie):(e.enter("tableDelimiterRow"),c=!1,Vn(ie)?Nn(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):C(ie))}function C(ie){return ie===45||ie===58?_(ie):ie===124?(c=!0,e.enter("tableCellDivider"),e.consume(ie),e.exit("tableCellDivider"),M):V(ie)}function M(ie){return Vn(ie)?Nn(e,_,"whitespace")(ie):_(ie)}function _(ie){return ie===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(ie),e.exit("tableDelimiterMarker"),k):ie===45?(s+=1,k(ie)):ie===null||It(ie)?B(ie):V(ie)}function k(ie){return ie===45?(e.enter("tableDelimiterFiller"),z(ie)):V(ie)}function z(ie){return ie===45?(e.consume(ie),z):ie===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(ie),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(ie))}function L(ie){return Vn(ie)?Nn(e,B,"whitespace")(ie):B(ie)}function B(ie){return ie===124?C(ie):ie===null||It(ie)?!c||o!==s?V(ie):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(ie)):V(ie)}function V(ie){return n(ie)}function U(ie){return e.enter("tableRow"),X(ie)}function X(ie){return ie===124?(e.enter("tableCellDivider"),e.consume(ie),e.exit("tableCellDivider"),X):ie===null||It(ie)?(e.exit("tableRow"),t(ie)):Vn(ie)?Nn(e,X,"whitespace")(ie):(e.enter("data"),se(ie))}function se(ie){return ie===null||ie===124||Ar(ie)?(e.exit("data"),X(ie)):(e.consume(ie),ie===92?ce:se)}function ce(ie){return ie===92||ie===124?(e.consume(ie),se):se(ie)}}function Cue(e,t){let n=-1,i=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],d=!1,h=0,y,b,S;const T=new Sue;for(;++n<e.length;){const w=e[n],C=w[1];w[0]==="enter"?C.type==="tableHead"?(d=!1,h!==0&&(Zz(T,t,h,y,b),b=void 0,h=0),y={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},T.add(n,0,[["enter",y,t]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(i=!0,S=void 0,s=[0,0,0,0],c=[0,n+1,0,0],d&&(d=!1,b={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},T.add(n,0,[["enter",b,t]])),o=C.type==="tableDelimiterRow"?2:b?3:1):o&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],S=v6(T,t,s,o,void 0,S),s=[0,0,0,0]),c[2]=n)):C.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(c[0]=c[1],S=v6(T,t,s,o,void 0,S)),s=c,c=[s[1],n,0,0])):C.type==="tableHead"?(d=!0,h=n):C.type==="tableRow"||C.type==="tableDelimiterRow"?(h=n,s[1]!==0?(c[0]=c[1],S=v6(T,t,s,o,n,S)):c[1]!==0&&(S=v6(T,t,c,o,n,S)),o=0):o&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(c[3]=n)}for(h!==0&&Zz(T,t,h,y,b),T.consume(t.events),n=-1;++n<t.events.length;){const w=t.events[n];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=wue(t.events,n))}return e}function v6(e,t,n,i,o,s){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";n[0]!==0&&(s.end=Object.assign({},Ig(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const h=Ig(t.events,n[1]);if(s={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const y=Ig(t.events,n[2]),b=Ig(t.events,n[3]),S={type:d,start:Object.assign({},y),end:Object.assign({},b)};if(e.add(n[2],0,[["enter",S,t]]),i!==2){const T=t.events[n[2]],w=t.events[n[3]];if(T[1].end=Object.assign({},w[1].end),T[1].type="chunkText",T[1].contentType="text",n[3]>n[2]+1){const C=n[2]+1,M=n[3]-n[2]-1;e.add(C,M,[])}}e.add(n[3]+1,0,[["exit",S,t]])}return o!==void 0&&(s.end=Object.assign({},Ig(t.events,o)),e.add(o,0,[["exit",s,t]]),s=void 0),s}function Zz(e,t,n,i,o){const s=[],c=Ig(t.events,n);o&&(o.end=Object.assign({},c),s.push(["exit",o,t])),i.end=Object.assign({},c),s.push(["exit",i,t]),e.add(n+1,0,s)}function Ig(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const Oue={name:"tasklistCheck",tokenize:Mue};function Rue(){return{text:{91:Oue}}}function Mue(e,t,n){const i=this;return o;function o(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return Ar(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):n(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):n(h)}function d(h){return It(h)?t(h):Vn(h)?e.check({tokenize:_ue},t,n)(h):n(h)}}function _ue(e,t,n){return Nn(e,i,"whitespace");function i(o){return o===null?n(o):t(o)}}function Due(e){return LD([nue(),due(),xue(e),Tue(),Rue()])}const Nue={};function kue(e){const t=this,n=e||Nue,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(Due(n)),s.push(Zse()),c.push(Jse(n))}function zue(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:o,mathFlowFence:i,mathFlowFenceMeta:n,mathFlowValue:d,mathText:c,mathTextData:d}};function e(h){const y={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[y]}},h)}function t(){this.buffer()}function n(){const h=this.resume(),y=this.stack[this.stack.length-1];y.type,y.meta=h}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function o(h){const y=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),b=this.stack[this.stack.length-1];b.type,this.exit(h),b.value=y;const S=b.data.hChildren[0];S.type,S.tagName,S.children.push({type:"text",value:y}),this.data.mathFlowInside=void 0}function s(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function c(h){const y=this.resume(),b=this.stack[this.stack.length-1];b.type,this.exit(h),b.value=y,b.data.hChildren.push({type:"text",value:y})}function d(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function Iue(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=o,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:i}};function n(s,c,d,h){const y=s.value||"",b=d.createTracker(h),S="$".repeat(Math.max(_z(y,"$")+1,2)),T=d.enter("mathFlow");let w=b.move(S);if(s.meta){const C=d.enter("mathFlowMeta");w+=b.move(d.safe(s.meta,{after:`
`,before:w,encode:["$"],...b.current()})),C()}return w+=b.move(`
`),y&&(w+=b.move(y+`
`)),w+=b.move(S),T(),w}function i(s,c,d){let h=s.value||"",y=1;for(t||y++;new RegExp("(^|[^$])"+"\\$".repeat(y)+"([^$]|$)").test(h);)y++;const b="$".repeat(y);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let S=-1;for(;++S<d.unsafe.length;){const T=d.unsafe[S];if(!T.atBreak)continue;const w=d.compilePattern(T);let C;for(;C=w.exec(h);){let M=C.index;h.codePointAt(M)===10&&h.codePointAt(M-1)===13&&M--,h=h.slice(0,M)+" "+h.slice(C.index+1)}}return b+h+b}function o(){return"$"}}const Lue={tokenize:Vue,concrete:!0,name:"mathFlow"},Jz={tokenize:Bue,partial:!0};function Vue(e,t,n){const i=this,o=i.events[i.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let c=0;return d;function d(z){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(z)}function h(z){return z===36?(e.consume(z),c++,h):c<2?n(z):(e.exit("mathFlowFenceSequence"),Nn(e,y,"whitespace")(z))}function y(z){return z===null||It(z)?S(z):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(z))}function b(z){return z===null||It(z)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),S(z)):z===36?n(z):(e.consume(z),b)}function S(z){return e.exit("mathFlowFence"),i.interrupt?t(z):e.attempt(Jz,T,_)(z)}function T(z){return e.attempt({tokenize:k,partial:!0},_,w)(z)}function w(z){return(s?Nn(e,C,"linePrefix",s+1):C)(z)}function C(z){return z===null?_(z):It(z)?e.attempt(Jz,T,_)(z):(e.enter("mathFlowValue"),M(z))}function M(z){return z===null||It(z)?(e.exit("mathFlowValue"),C(z)):(e.consume(z),M)}function _(z){return e.exit("mathFlow"),t(z)}function k(z,L,B){let V=0;return Nn(z,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function U(ce){return z.enter("mathFlowFence"),z.enter("mathFlowFenceSequence"),X(ce)}function X(ce){return ce===36?(V++,z.consume(ce),X):V<c?B(ce):(z.exit("mathFlowFenceSequence"),Nn(z,se,"whitespace")(ce))}function se(ce){return ce===null||It(ce)?(z.exit("mathFlowFence"),L(ce)):B(ce)}}}function Bue(e,t,n){const i=this;return o;function o(c){return c===null?t(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function jue(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:Pue,previous:Uue,name:"mathText"};function i(o,s,c){let d=0,h,y;return b;function b(M){return o.enter("mathText"),o.enter("mathTextSequence"),S(M)}function S(M){return M===36?(o.consume(M),d++,S):d<2&&!n?c(M):(o.exit("mathTextSequence"),T(M))}function T(M){return M===null?c(M):M===36?(y=o.enter("mathTextSequence"),h=0,C(M)):M===32?(o.enter("space"),o.consume(M),o.exit("space"),T):It(M)?(o.enter("lineEnding"),o.consume(M),o.exit("lineEnding"),T):(o.enter("mathTextData"),w(M))}function w(M){return M===null||M===32||M===36||It(M)?(o.exit("mathTextData"),T(M)):(o.consume(M),w)}function C(M){return M===36?(o.consume(M),h++,C):h===d?(o.exit("mathTextSequence"),o.exit("mathText"),s(M)):(y.type="mathTextData",w(M))}}}function Pue(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="mathTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function Uue(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function $ue(e){return{flow:{36:Lue},text:{36:jue(e)}}}const Hue={};function que(e){const t=this,n=e||Hue,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push($ue(n)),s.push(zue()),c.push(Iue(n))}const Gue=({text:e,isUser:t,onTypingUpdate:n})=>{const[i,o]=G.useState(""),[s,c]=G.useState(!0),d=G.useRef(null),h=au("settings"),y=G.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),b=G.useMemo(()=>y?{contain:"layout style",willChange:"auto",overflowWrap:"anywhere",wordBreak:"break-word"}:{},[y]);return G.useEffect(()=>{if(t||y){o(e),c(!1);return}let S=0;const w=setInterval(()=>{S<=e.length?(o(e.slice(0,S)),S++,n&&n()):(c(!1),clearInterval(w))},10);return()=>clearInterval(w)},[e,t,y]),G.useEffect(()=>{if(!s&&d.current){const S=d.current.textContent||"";d.current.setAttribute("aria-label",`AI message: ${S}`)}},[s]),H.jsxs(xi,{style:b,children:[H.jsx("div",{className:`chat-message-content ${t?"user":""}`,children:H.jsx(Yie,{rehypePlugins:[mle,[Ale,{attributes:{"*":["className","aria-label","aria-hidden","role","aria-busy","aria-live","aria-atomic"],a:["href","target"],img:["src","alt"],math:["display"],span:["style"],svg:["aria-hidden","role","xmlns","width","height","viewBox"],path:["d"]},tagNames:["p","br","b","i","em","strong","a","pre","code","ul","ol","li","blockquote","img","math","span","svg","path"]}]],remarkPlugins:[kue,que],components:{pre:({node:S,...T})=>H.jsx("pre",{...T,role:"text","aria-label":"Code block"}),a:({node:S,...T})=>H.jsx("a",{...T,"aria-label":`Link: ${T.children}`}),img:({node:S,...T})=>H.jsx("img",{...T,alt:T.alt||"Image in message"})},children:i})}),H.jsx("div",{className:"sr-only","aria-live":h.general.ariaMode,"aria-atomic":"true",children:s?"":e}),s&&!y&&H.jsx("span",{className:"typing-cursor","aria-hidden":"true",role:"presentation",children:"|"})]})};function j8(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const Fue=({message:e,disabled:t,_onOpenSettings:n,onTypingUpdate:i})=>{const o=()=>e.isUser?H.jsx(wY,{}):H.jsx(Xee,{model:e.model}),s=()=>{const c=e.isUser?"Your message":"AI Assistant message",d=e.isUser?"":` from ${j8(e.model)}`,h=!e.isUser&&e.status==="PENDING"?" (typing)":"";return`${c}${d}${h}`};return H.jsx(xi,{sx:{display:"flex",justifyContent:e.isUser?"flex-end":"flex-start",mb:2},role:"listitem",children:H.jsxs(xi,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:"80%",flexDirection:e.isUser?"row-reverse":"row"},children:[H.jsx(WM,{className:`chat-avatar ${e.isUser?"user":""}`,"aria-hidden":"true",children:o()}),H.jsxs(xi,{className:`chat-bubble ${e.isUser?"user":"ai"}`,role:"article","aria-label":s(),children:[!e.isUser&&H.jsx(Hr,{className:"model-name",variant:"caption",fontWeight:"medium",color:"text.secondary",component:"h3",sx:{fontSize:"0.8rem",margin:0,marginBottom:.5},"aria-label":`Model: ${j8(e.model)}`,children:j8(e.model)}),H.jsx(Gue,{text:e.text,isUser:e.isUser,onTypingUpdate:i}),e.isWelcomeMessage&&e.modelSelections&&H.jsx(Wee,{enabledModels:e.modelSelections}),H.jsxs(xi,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5},children:[t&&e.id.startsWith("system-")&&H.jsx(mg,{variant:"text",onClick:n,"aria-label":"Open settings",style:{padding:0},children:"Open Settings"}),H.jsx(Hr,{className:"timestamp",variant:"caption",color:"text.secondary",component:"time",dateTime:new Date(e.timestamp).toISOString(),"aria-label":`Sent at ${new Date(e.timestamp).toLocaleTimeString()}`,children:new Date(e.timestamp).toLocaleTimeString()})]}),!e.isUser&&e.status==="PENDING"&&H.jsx(xi,{role:"status","aria-label":"AI is typing",children:H.jsx(qv,{size:16})})]})]})})},eI=G.memo(({suggestion:e,onClick:t})=>{const n=tf();return H.jsx(qM,{label:e.text,onClick:t,role:"button","aria-label":`Suggestion: ${e.text}`,sx:{bgcolor:n.palette.primary.main,color:n.palette.primary.contrastText,"&:hover":{bgcolor:n.palette.primary.dark}}})});eI.displayName="SuggestionChip";const tI=G.memo(({suggestions:e,onSuggestionClick:t})=>{const n=tf();return!e||!e.length?null:H.jsx(xi,{role:"region","aria-label":"Suggested responses",sx:{p:2,display:"flex",flexWrap:"wrap",gap:1,borderTop:`1px solid ${n.palette.divider}`,bgcolor:n.palette.background.paper},children:e.map(i=>H.jsx(eI,{suggestion:i,onClick:()=>t(i)},i.id))})});tI.displayName="Suggestions";const Yue=()=>{var L;const e=G.useId(),t=tf(),n=Yu("chat"),i=Yu("settings"),{messages:o,suggestions:s}=au("chat"),c=!n.canSend,[d,h]=G.useState(""),y=G.useRef(null),b=G.useRef(null),S=G.useRef(0),T=G.useRef(null),w=()=>{i.toggle()},C=(B=!1)=>{if(!b.current)return;const V=b.current;(V.scrollTop+V.clientHeight>=V.scrollHeight-100||B)&&requestAnimationFrame(()=>{V.scrollTo({top:V.scrollHeight,behavior:"smooth"})})};G.useEffect(()=>{const B=setTimeout(()=>{C(!0)},200);return()=>clearTimeout(B)},[o.length]),G.useEffect(()=>{setTimeout(()=>C(!0),200)},[]),G.useEffect(()=>{if(!b.current)return;const B=b.current;return T.current&&T.current.disconnect(),T.current=new MutationObserver(V=>{let U=!1;V.forEach(X=>{(X.type==="childList"||X.type==="characterData")&&B.scrollTop+B.clientHeight>=B.scrollHeight-100&&(U=!0)}),U&&requestAnimationFrame(()=>{B.scrollTo({top:B.scrollHeight,behavior:"auto"})})}),T.current.observe(B,{childList:!0,subtree:!0,characterData:!0}),()=>{T.current&&T.current.disconnect()}},[o.length]),G.useEffect(()=>{if(!b.current)return;const B=b.current,V=B.scrollHeight;V>S.current&&B.scrollTop+B.clientHeight>=S.current-100&&requestAnimationFrame(()=>{B.scrollTo({top:V,behavior:"auto"})}),S.current=V},[o]),G.useEffect(()=>{if(o.length>0){const B=o[o.length-1];if(B.status==="SUCCESS"||B.status==="FAILED"){const V=setTimeout(()=>{C(!0)},300);return()=>clearTimeout(V)}}},[o.length>0?(L=o[o.length-1])==null?void 0:L.status:""]);const M=()=>{n.toggle()},_=()=>{d.trim()&&(n.sendMessage(d),h(""),setTimeout(()=>C(!0),100))},k=B=>{h(B.text)},z=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),_())};return H.jsxs(ib,{id:e,role:"dialog",open:!0,onClose:M,maxWidth:"md",fullWidth:!0,disablePortal:!0,sx:{"& .MuiDialog-paper":{height:"70vh",maxHeight:"90vh"}},children:[H.jsx(B7,{component:"h2",sx:{p:2},children:H.jsxs(zt,{container:!0,justifyContent:"space-between",alignItems:"center",children:[H.jsx(zt,{size:"auto",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",component:"h2",sx:{margin:0},"aria-label":"Chart Assistant - AI Chat Interface",children:"Chart Assistant"})}),H.jsx(zt,{size:"auto",children:H.jsx(lg,{onClick:M,"aria-label":"Close chat dialog",children:H.jsx(QR,{})})})]})}),H.jsx(ab,{dividers:!0,sx:{p:0,overflow:"hidden"},children:H.jsxs(zt,{container:!0,direction:"column",sx:{height:"100%"},children:[H.jsxs(zt,{ref:b,size:12,component:"section","aria-label":"Chat messages",sx:{flex:1,overflowY:"auto",p:2,bgcolor:t.palette.background.default,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:t.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:t.palette.grey[400],borderRadius:"3px"}},children:[o.map(B=>H.jsx(Fue,{message:B,disabled:c,_onOpenSettings:w,onTypingUpdate:()=>{if(b.current){const V=b.current;V.scrollTop+V.clientHeight>=V.scrollHeight-100&&requestAnimationFrame(()=>{V.scrollTo({top:V.scrollHeight,behavior:"auto"})})}}},B.id)),H.jsx("div",{ref:y})]}),H.jsx(tI,{suggestions:s,onSuggestionClick:k}),H.jsx(zt,{size:12,component:"section","aria-label":"Message input",sx:{p:2,borderTop:`1px solid ${t.palette.divider}`},children:H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",children:[H.jsx(zt,{size:{xs:10},children:H.jsx(xl,{value:d,disabled:c,onChange:B=>h(B.target.value),onKeyDown:z,maxRows:4,placeholder:"What can I help you with?",variant:"outlined",size:"small",autoFocus:!0,fullWidth:!0,multiline:!0,"aria-label":"Type your message to the AI assistant"})}),H.jsx(zt,{size:{xs:2},container:!0,justifyContent:"flex-end",children:H.jsx(lg,{onClick:_,disabled:c,color:"primary","aria-label":"Send message to AI assistant",sx:{bgcolor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{bgcolor:t.palette.primary.dark}},children:H.jsx(CY,{})})})]})})]})})]})};function Xue(){const{commandExecutor:e}=oO(),t=G.useCallback(s=>{e.executeCommand(s)},[e]),n=G.useCallback(s=>{const c=e.onScopeChange(s);return()=>c.dispose()},[e]),i=G.useCallback(()=>e.getCurrentScope(),[e]),o=G.useSyncExternalStore(n,i);return{executeCommand:t,currentScope:o}}const Wue=()=>{const e=Yu("commandPalette"),t=au("commandPalette"),{executeCommand:n}=Xue(),[i]=G.useState(""),o=G.useRef(null),s=G.useRef(null),c=G.useRef(!1),d=G.useMemo(()=>{if(!t.search.trim())return t.commands;const S=t.search.toLowerCase();return t.commands.filter(T=>T.description.toLowerCase().includes(S)||T.key.toLowerCase().includes(S))},[t.commands,t.search]);G.useEffect(()=>{t.visible&&o.current&&setTimeout(()=>{o.current&&o.current.focus()},100)},[t.visible]),G.useEffect(()=>{t.visible&&o.current&&t.selectedIndex},[t.selectedIndex,t.visible]),G.useEffect(()=>{if(s.current&&t.selectedIndex>=0){const S=s.current,T=S.children[t.selectedIndex];if(T){T.focus();const w=S.getBoundingClientRect(),C=T.getBoundingClientRect();(C.top<w.top||C.bottom>w.bottom)&&T.scrollIntoView({behavior:"smooth",block:"nearest"})}}},[t.selectedIndex]);const h=G.useCallback(()=>{e.hide()},[e]),y=G.useCallback(S=>{n(S),h()},[n,h]),b=G.useCallback(S=>{e.updateSearch(S.target.value)},[e]);return t.visible?H.jsxs(ib,{open:t.visible,onClose:h,maxWidth:"md",fullWidth:!0,disablePortal:!0,role:"dialog","aria-modal":"true","aria-labelledby":"command-palette-title","aria-describedby":"command-palette-description",sx:{"& .MuiDialog-paper":{maxHeight:"80vh"}},children:[H.jsx(xi,{component:"h2",id:"command-palette-title",sx:{p:2,m:0},children:H.jsx(xi,{component:"span",sx:{fontSize:"1.25rem",fontWeight:600},children:"Command Palette"})}),H.jsxs(ab,{dividers:!0,sx:{p:2,overflow:"hidden"},children:[H.jsx(xi,{id:"command-palette-description",sx:{mb:2},children:H.jsx(Hr,{variant:"body2",color:"text.secondary",sx:{m:0},children:"Type to search commands, use arrow keys to navigate the list, and press Enter to execute a command"})}),H.jsx(xl,{ref:o,fullWidth:!0,placeholder:"Search commands...",value:t.search,onChange:b,sx:{mb:2},autoFocus:!0,inputProps:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":"command-list","aria-expanded":!0,"aria-activedescendant":t.selectedIndex>=0?`command-${t.selectedIndex}`:void 0,"aria-label":"Search commands","aria-describedby":"command-palette-description",onKeyDown:S=>{if(S.key==="Enter"){if(S.preventDefault(),S.stopPropagation(),d.length>0&&t.selectedIndex>=0){const T=d[t.selectedIndex];T&&y(T.commandKey)}}else S.key==="ArrowDown"?(S.preventDefault(),S.stopPropagation(),e.moveDown()):S.key==="ArrowUp"&&(S.preventDefault(),S.stopPropagation(),t.selectedIndex===0?e.moveToSearch():e.moveUp())}}}),H.jsx(w3,{ref:s,id:"command-list",role:"listbox","aria-label":"Available commands",sx:{flex:1,overflow:"auto",maxHeight:"60vh"},children:d.map((S,T)=>H.jsx(x_,{id:`command-${T}`,role:"option","aria-selected":T===t.selectedIndex,"aria-label":`${S.description} (${S.key})`,selected:T===t.selectedIndex,tabIndex:T===t.selectedIndex?0:-1,onClick:()=>{c.current||y(S.commandKey)},onKeyDown:w=>{w.key==="Enter"?(w.preventDefault(),w.stopPropagation(),c.current=!0,setTimeout(()=>{c.current=!1},100),y(S.commandKey)):w.key==="ArrowUp"?(w.preventDefault(),w.stopPropagation(),T===0?e.moveToSearch():e.moveUp()):w.key==="ArrowDown"&&(w.preventDefault(),w.stopPropagation(),e.moveDown())},sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"},"&.Mui-selected":{bgcolor:"action.selected"}},children:H.jsx($7,{primary:S.description,secondary:`${S.key}`})},S.commandKey))}),i&&H.jsx("div",{"aria-live":"assertive",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:i})]})]}):null},Que=({label:e,shortcut:t})=>H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",sx:{py:1},children:[H.jsx(zt,{size:{xs:12,sm:6,md:7},children:H.jsx(Hr,{variant:"body2",children:e})}),H.jsx(zt,{size:{xs:12,sm:6,md:5},children:H.jsx(Hr,{variant:"body2",fontWeight:300,children:t})})]}),Kue=()=>{const e=G.useId(),t=Yu("help"),{items:n}=t.state,i=()=>{t.toggle()};return H.jsxs(ib,{id:e,role:"dialog",open:!0,onClose:i,maxWidth:"sm",fullWidth:!0,disablePortal:!0,children:[H.jsx(zt,{container:!0,component:B7,children:H.jsx(zt,{size:"grow",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",children:"Keyboard Shortcuts"})})}),H.jsx(ab,{children:H.jsx(zt,{container:!0,spacing:1,children:n.map((o,s)=>H.jsxs(nu.Fragment,{children:[H.jsx(zt,{size:12,children:H.jsx(Que,{label:o.description,shortcut:o.key})},s),s!==n.length-1&&H.jsx(zt,{size:12,children:H.jsx(gg,{})})]},s))})}),H.jsx(zt,{container:!0,component:V7,children:H.jsx(zt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1},children:H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"contained",color:"primary",onClick:i,children:"Close"})})})})]})},Zue=()=>{const e=G.useId(),{value:t}=au("review");return H.jsx("div",{id:e,children:H.jsx("input",{id:`${me.REVIEW_INPUT}-${e}`,defaultValue:t,onFocus:n=>n.target.setSelectionRange(0,0),size:50,type:"text",autoComplete:"off",autoFocus:!0})})};class b6{static async validateApiKey(t,n){try{switch(t){case"OPENAI":return await this.validateOpenAiKey(n);case"ANTHROPIC_CLAUDE":return await this.validateAnthropicKey(n);case"GOOGLE_GEMINI":return await this.validateGeminiKey(n);default:return{isValid:!1,error:"Invalid model key"}}}catch(i){return{isValid:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}}static async validateOpenAiKey(t){try{return(await fetch(this.OPENAI_API_URL,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateAnthropicKey(t){try{return(await fetch(this.ANTHROPIC_API_URL,{method:"POST",headers:{"x-api-key":t,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-sonnet-20240229",max_tokens:1,messages:[{role:"user",content:"test"}]})}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateGeminiKey(t){try{return(await fetch(`${this.GEMINI_API_URL}?key=${t}`,{method:"GET"}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}}P(b6,"OPENAI_API_URL","https://api.openai.com/v1/models"),P(b6,"ANTHROPIC_API_URL","https://api.anthropic.com/v1/messages"),P(b6,"GEMINI_API_URL","https://generativelanguage.googleapis.com/v1beta/models");const x6=10;function Jue(e,t){const n=Ev[e],i=n.options;return!t||!i.includes(t)?n.default:t}const Fo=({label:e,input:t,alignLabel:n="center"})=>H.jsxs(zt,{container:!0,spacing:1,alignItems:n,className:"settings-grid-container",sx:{py:1},children:[H.jsx(zt,{size:{xs:12,sm:6,md:4},sx:n==="flex-start"?{py:1}:void 0,children:H.jsx(Hr,{variant:"body2",fontWeight:"normal",children:e})}),H.jsx(zt,{size:{xs:12,sm:6,md:8},children:t})]}),ece=({modelKey:e,modelSettings:t,onToggle:n,onChangeKey:i,onChangeVersion:o})=>{const s=Jue(e,t.version),[c,d]=G.useState(!1),[h,y]=G.useState(null),b=()=>t.enabled?c?"Validating API key...":h===!1?`${t.name} API key is invalid`:h===!0?`${t.name} API key is valid`:"":"",S=async w=>{if(!t.enabled||!w.trim()){y(null);return}d(!0);try{const C=await b6.validateApiKey(e,w);y(C.isValid)}catch{y(!1)}finally{d(!1)}};G.useEffect(()=>{const w=setTimeout(()=>{S(t.apiKey)},500);return()=>clearTimeout(w)},[t.apiKey,t.enabled,e]);const T=()=>{const w=Ev[e];return w.options.map(C=>{const M=w.labels[C],_=t.version===C;return H.jsxs(Ah,{value:C,className:`llm-model-setting-row-menu-item ${_?"selected":""}`,children:[_&&H.jsx(WR,{className:"llm-model-setting-row-check-icon"}),M]},C)})};return H.jsx(Fo,{label:t.name,input:H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",children:[H.jsx(zt,{children:H.jsx(nD,{checked:t.enabled,onChange:w=>n(e,w.target.checked),slotProps:{input:{"aria-label":`Enable ${t.name}`}}})}),H.jsx(zt,{size:7,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{disabled:!t.enabled,fullWidth:!0,size:"small",value:t.apiKey,onChange:w=>i(e,w.target.value),placeholder:`Enter ${t.name} API Key`,type:"password",error:h===!1,helperText:b(),slotProps:{input:{"aria-label":`${t.name} API Key`,"aria-describedby":`${e}-status`,endAdornment:H.jsx(y_,{position:"end",children:H.jsx("div",{id:`${e}-status`,role:"status","aria-live":"polite","aria-label":c?"Validating API key":h===!0?"API key is valid":h===!1?"API key is invalid":"",children:c?H.jsx(qv,{size:20}):h===!0?H.jsx(WR,{color:"success"}):h===!1?H.jsx(TY,{color:"error"}):null})})}}})})}),H.jsx(zt,{size:8,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xg,{value:s,onChange:w=>{const C=w.target.value;o(e,C)},disabled:!t.enabled||!t.apiKey.trim()||!h,fullWidth:!0,size:"small",slotProps:{input:{"aria-label":`${t.name} Model Version`}},MenuProps:{disablePortal:!0,PaperProps:{className:"settings-menu-paper"}},children:T()})})})]})})},tce=()=>{const e=G.useId(),t=Yu("settings"),n=Yu("chat"),{general:i,llm:o}=t.state,[s,c]=G.useState(i),[d,h]=G.useState(o);G.useEffect(()=>{t.load()},[t]),G.useEffect(()=>{c(i),h(o)},[i,o]);const y=(z,L)=>{c(B=>({...B,[z]:L}))},b=(z,L)=>{h(B=>({...B,[z]:L}))},S=(z,L,B)=>{h(V=>({...V,models:{...V.models,[z]:{...V.models[z],[L]:L==="apiKey"&&typeof B=="string"?B.trim():B}}}))},T=()=>{t.reset();const{general:z,llm:L}=t.state;c(z),h(L)},w=()=>{t.toggle()},C=()=>{t.saveAndClose({general:s,llm:d}),n.refreshInitialMessage()},M=G.useCallback(z=>{z.stopPropagation()},[]),_=G.useCallback(z=>{z.stopPropagation(),b("expertiseLevel",z.target.value)},[b]),k=d.expertiseLevel!=="custom"||d.customInstruction.length>=x6;return H.jsxs(ib,{id:e,role:"dialog","aria-label":"Settings",open:!0,maxWidth:"sm",fullWidth:!0,disablePortal:!0,disableEnforceFocus:!0,onClick:z=>z.stopPropagation(),className:"settings-dialog",children:[H.jsxs(ab,{className:"settings-dialog-content",children:[H.jsx(zt,{size:"grow",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,children:"General Settings"})}),H.jsxs(zt,{container:!0,spacing:.5,children:[H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Volume",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(J_,{value:s.volume,onChange:(z,L)=>y("volume",Number(L)),min:0,max:100,step:1,valueLabelDisplay:"auto",slotProps:{input:{"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Volume","aria-labelledby":"volume-label"}},className:"settings-slider-value-label"})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Outline Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highlightColor,onChange:z=>y("highlightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"Highlight Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Mode",input:H.jsx(Hi,{children:H.jsx(Th,{control:H.jsx(t_,{checked:s.highContrastMode,onChange:z=>y("highContrastMode",z.target.checked),size:"small"}),label:s.highContrastMode?"On":"Off",slotProps:{typography:{variant:"body2"}},"aria-label":"High Contrast Mode"})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Levels",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.highContrastLevels,onChange:z=>y("highContrastLevels",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"High Contrast Levels",min:2,max:20}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Light Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highContrastLightColor,onChange:z=>y("highContrastLightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Light Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Dark Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highContrastDarkColor,onChange:z=>y("highContrastDarkColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Dark Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Braille Display Size",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.brailleDisplaySize,onChange:z=>y("brailleDisplaySize",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Braille Display Size"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Min Frequency (Hz)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.minFrequency,onChange:z=>y("minFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Minimum Frequency"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Max Frequency (Hz)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.maxFrequency,onChange:z=>y("maxFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Maximum Frequency"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Autoplay Duration (ms)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.autoplayDuration,onChange:z=>y("autoplayDuration",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Autoplay Duration"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"ARIA Mode",input:H.jsx(Hi,{children:H.jsxs(Y7,{row:!0,value:s.ariaMode,onChange:z=>y("ariaMode",z.target.value),"aria-label":"ARIA Mode",children:[H.jsx(Th,{value:"assertive",control:H.jsx(bg,{size:"small"}),label:"Assertive"}),H.jsx(Th,{value:"polite",control:H.jsx(bg,{size:"small"}),label:"Polite"})]})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Hover Mode",input:H.jsx(Hi,{children:H.jsxs(Y7,{row:!0,value:s.hoverMode,onChange:z=>y("hoverMode",z.target.value),"aria-label":"Hover Mode",children:[H.jsx(Th,{value:"off",control:H.jsx(bg,{size:"small"}),label:"Off"}),H.jsx(Th,{value:"pointermove",control:H.jsx(bg,{size:"small"}),label:"Hover"}),H.jsx(Th,{value:"click",control:H.jsx(bg,{size:"small"}),label:"Click"})]})})})})]}),H.jsx(zt,{size:12,children:H.jsx(gg,{className:"settings-divider"})}),H.jsxs(zt,{container:!0,spacing:.5,className:"settings-section",children:[H.jsx(zt,{size:12,children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,className:"settings-section-title",children:"LLM Settings"})}),Object.keys(d.models).map(z=>{const L=d.models[z];return H.jsx(zt,{size:12,className:"settings-model-row",children:H.jsx(ece,{modelKey:z,modelSettings:L,onToggle:(B,V)=>S(B,"enabled",V),onChangeKey:(B,V)=>S(B,"apiKey",V),onChangeVersion:(B,V)=>S(B,"version",V)})},z)}),H.jsx(zt,{size:12,className:"settings-row",children:H.jsx(Hi,{fullWidth:!0,size:"small",className:"settings-model-select",children:H.jsx(Fo,{label:"Expertise Level",input:H.jsxs(xg,{value:d.expertiseLevel,onChange:_,onClick:M,slotProps:{input:{"aria-label":"Expertise Level"}},MenuProps:{disablePortal:!0,PaperProps:{className:"llm-model-setting-select-menu"}},children:[H.jsx(Ah,{value:"basic",children:"Basic"}),H.jsx(Ah,{value:"intermediate",children:"Intermediate"}),H.jsx(Ah,{value:"advanced",children:"Advanced"}),H.jsx(Ah,{value:"custom",children:"Custom"})]})})})}),d.expertiseLevel==="custom"&&H.jsx(zt,{size:12,children:H.jsxs(zt,{container:!0,spacing:1,alignItems:"flex-start",sx:{py:1},children:[H.jsx(zt,{size:12,sx:{py:1},children:H.jsx(Hr,{variant:"body2",fontWeight:"normal",children:"Custom Instructions"})}),H.jsx(zt,{size:12,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(M7,{minRows:3,maxRows:6,value:d.customInstruction,onChange:z=>b("customInstruction",z.target.value),style:{width:"100%",padding:"8px",border:"1px solid #ccc",borderRadius:"4px"},placeholder:"Enter custom instruction...","aria-label":"Custom Instructions"})})}),d.customInstruction.length<x6&&H.jsx(zt,{size:12,sx:{mt:1},children:H.jsxs(bM,{severity:"warning",children:["Custom instructions must be at least"," ",x6," ","characters long"]})})]})})]}),H.jsx(zt,{size:12,children:H.jsx(gg,{className:"settings-divider"})})]}),H.jsxs(zt,{container:!0,component:V7,alignItems:"center",className:"settings-footer",children:[H.jsx(zt,{size:"auto",className:"settings-grid-padding",children:H.jsx(mg,{variant:"text",color:"inherit",onClick:T,"aria-label":"Reset Settings",children:"Reset"})}),H.jsxs(zt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",className:"settings-footer-actions",children:[H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"outlined",color:"inherit",onClick:w,"aria-label":"Close Settings with no changes",children:"Close"})}),H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"contained",color:"primary",onClick:C,disabled:!k,title:k?"":`Custom instructions must be at least ${x6} characters long`,"aria-label":"Save & Close Settings",children:"Save & Close"})})]})]})]})},nce={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},rce=()=>{const{enabled:e,announce:t,value:n,revision:i,message:o}=au("text"),{rotor_value:s}=au("rotor"),c=au("settings"),d=e&&n||"",h=typeof o=="string"?o:"",y=h.trim().length>0?h:t&&d?d:"",b=h.trim().length>0?h:d;return H.jsxs("div",{children:[H.jsx("div",{id:me.TEXT_CONTAINER,children:b&&b.trim().length>0&&H.jsx("p",{children:b})}),y&&H.jsx("div",{role:"alert",style:nce,children:y},i),H.jsx("div",{id:me.ROTOR_AREA,"aria-live":c.general.ariaMode,children:s})]})},ice=({plot:e})=>{const{tooltip:t}=au("display"),[n,i]=G.useState(!1),o=G.useRef({x:0,y:0}),s=G.useRef(null),c=G.useMemo(()=>({getBoundingClientRect:()=>new DOMRect(o.current.x,o.current.y,0,0)}),[]);return G.useEffect(()=>{if(!e)return;const d=b=>{var S,T;o.current={x:b.clientX,y:b.clientY},(T=(S=s.current)==null?void 0:S.update)==null||T.call(S),i(!0)},h=()=>i(!0),y=()=>i(!1);return e.addEventListener(qu.MOUSE_MOVE,d),e.addEventListener(qu.MOUSE_ENTER,h),e.addEventListener(qu.MOUSE_LEAVE,y),()=>{e.removeEventListener(qu.MOUSE_MOVE,d),e.removeEventListener(qu.MOUSE_ENTER,h),e.removeEventListener(qu.MOUSE_LEAVE,y)}},[e]),H.jsx(tD,{title:t.value,open:n,placement:"top",arrow:!0,slotProps:{popper:{popperRef:s,anchorEl:c}},children:H.jsx(xi,{sx:{display:"none"},children:"TooltipAnchor"})})};function ace(e){return{p:1.5,border:e?2:1,borderColor:e?"primary.main":"divider",borderRadius:1,mb:.5,cursor:"pointer",bgcolor:e?"action.selected":"transparent",transition:"all 0.2s ease","&:hover":{bgcolor:"action.hover"},"&:focus":{outline:"none",borderColor:"primary.main",bgcolor:"action.selected"}}}const oce=()=>{const e=Yu("goToExtrema"),t=au("goToExtrema"),n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(null),[c,d]=G.useState(""),[h,y]=G.useState(!1),[b,S]=G.useState([]),[T,w]=G.useState(-1),C=G.useRef(null),M=G.useRef(null),_=G.useRef(null),k=G.useRef(null);G.useEffect(()=>{o.current&&o.current.focus()},[]);const z=G.useMemo(()=>e.getAvailableXValues(),[e]);G.useEffect(()=>{if(c.trim()==="")S(z);else{const Q=c.toLowerCase();S(z.filter(oe=>String(oe).toLowerCase().includes(Q)))}h&&w(Q=>Q<0?0:Math.min(Q,Math.max(0,z.length-1)))},[c,z,h]);const L=T>=0&&b[T]!==void 0?String(b[T]):void 0,B={input:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":"x-value-listbox","aria-expanded":h,"aria-activedescendant":T>=0?`option-${T}`:void 0,"aria-valuetext":L,"aria-label":"Search and select X value",endAdornment:H.jsx(lg,{"aria-label":h?"Close dropdown":"Open dropdown",size:"small",onClick:Q=>{Q.stopPropagation(),y(!h)},children:H.jsx(AY,{})})}};G.useEffect(()=>{if(k.current){const Q=L??"";k.current.textContent=Q}},[T,L]),G.useEffect(()=>{if(n.current&&i.current){const Q=i.current,oe=n.current;oe.focus();const Z=Q.getBoundingClientRect(),ae=oe.getBoundingClientRect();ae.bottom>Z.bottom?oe.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}):ae.top<Z.top&&oe.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},[t.selectedIndex]),G.useEffect(()=>{if(h&&T>=0&&_.current){const Q=_.current.querySelector(`#option-${T}`);Q&&Q.scrollIntoView({block:"nearest"})}},[T,h]);const V=Q=>{var Z;const oe=(Z=e.activeContext)==null?void 0:Z.active;oe&&U(oe)&&oe.navigateToExtrema(Q),e.hide()};function U(Q){return Q!==null&&typeof Q=="object"&&"navigateToExtrema"in Q&&typeof Q.navigateToExtrema=="function"}const X=()=>{k.current&&(k.current.textContent=""),e.hide()},se=Q=>{var Z;const oe=(Z=e.activeContext)==null?void 0:Z.active;oe&&ce(oe)&&(oe.moveToXValue(Q),y(!1),w(-1),d(""),e.hide())};function ce(Q){return Q!==null&&typeof Q=="object"&&"moveToXValue"in Q&&typeof Q.moveToXValue=="function"}const ie=()=>{M.current?M.current.focus():C.current&&C.current.focus()},ue=Q=>{k.current&&(k.current.textContent=Q)},$=Q=>{if(Q.key==="ArrowDown")if(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex===t.targets.length-1)ie(),y(!0),w(0),ue("Moved to search. Type to filter X values.");else{e.moveDown();const oe=t.targets[t.selectedIndex+1];ue(`Selected: ${oe.label}`)}else if(Q.key==="ArrowUp")if(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex===0)ue("At first extrema option");else{e.moveUp();const oe=t.targets[t.selectedIndex-1];ue(`Selected: ${oe.label}`)}else if(Q.key==="Enter"&&(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex<t.targets.length)){const oe=t.targets[t.selectedIndex];oe&&V(oe)}},le=Q=>{if(Q.key==="Enter")Q.preventDefault(),Q.stopPropagation(),T>=0&&b[T]!==void 0&&se(b[T]);else if(Q.key==="ArrowDown")Q.preventDefault(),Q.stopPropagation(),T===b.length-1?ue("At last search result"):(w(oe=>Math.min(oe+1,b.length-1)),b[T+1]&&ue(`Selected: ${b[T+1]}`));else if(Q.key==="ArrowUp")if(Q.preventDefault(),Q.stopPropagation(),T===0){y(!1),w(-1);const oe=t.targets[t.selectedIndex];ue(`Returning to extrema options: ${oe.label}`),n.current&&n.current.focus()}else w(oe=>Math.max(0,oe-1)),b[T-1]&&ue(`Selected: ${b[T-1]}`)};return t.visible&&t.targets.length>0?H.jsxs(H.Fragment,{children:[H.jsx(xi,{sx:{position:"fixed",top:0,left:0,right:0,bottom:0,bgcolor:"rgba(0, 0, 0, 0.5)",zIndex:9999},onClick:X,"aria-hidden":"true"}),H.jsxs(xi,{ref:o,role:"dialog","aria-modal":"true","aria-labelledby":"go-to-extrema-title","aria-describedby":"go-to-extrema-description",tabIndex:0,sx:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:2,p:3,boxShadow:3,zIndex:1e4,minWidth:300,maxHeight:"80vh",outline:"none"},children:[H.jsxs(xi,{id:"go-to-extrema-title",sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[H.jsx(Hr,{variant:"h6",component:"h3",sx:{m:0,fontWeight:600},children:"Go To"}),H.jsx(lg,{onClick:X,"aria-label":"Close dialog",size:"small",children:H.jsx(QR,{})})]}),H.jsx(xi,{id:"go-to-extrema-description",sx:{mb:2},children:H.jsx(Hr,{variant:"body2",color:"text.secondary",sx:{m:0},children:t.description||"Navigate to points of interest"})}),H.jsxs(xi,{ref:i,role:"listbox","aria-label":"Navigation targets",onKeyDown:$,sx:{maxHeight:300,overflowY:"auto",border:1,borderColor:"divider",borderRadius:1,p:1},children:[t.targets.map((Q,oe)=>{const Z=Q.type==="intersection";let ae;if(Z&&Q.display)ae=`Intersection with ${Q.display.otherLines} at ${Q.display.coords}`;else if(Z)ae=Q.label;else{const de=Q.label.split(" at ");ae=de[1]?`${de[0]} Value: ${Q.value.toFixed(2)} at ${de[1]}`:`${de[0]} Value: ${Q.value.toFixed(2)}`}return H.jsx(xi,{ref:oe===t.selectedIndex?n:null,id:`extrema-target-${oe}`,onClick:()=>V(Q),role:"option","aria-selected":t.selectedIndex===oe,"aria-label":ae,tabIndex:0,sx:ace(t.selectedIndex===oe),children:H.jsx(Hr,{variant:"body2",sx:{fontWeight:600},children:ae})},`target-${oe}-${Q.type}-${Q.label}`)}),z.length>0&&H.jsxs(xi,{ref:s,id:"search-input-option",role:"option","aria-selected":t.selectedIndex===t.targets.length,"aria-label":"Search and navigate to specific X value","aria-expanded":h,"aria-controls":"x-value-listbox",tabIndex:0,sx:{p:1.5,borderRadius:1,mb:.5,border:t.selectedIndex===t.targets.length?2:1,borderColor:t.selectedIndex===t.targets.length?"primary.main":"divider",bgcolor:t.selectedIndex===t.targets.length?"action.selected":"transparent",position:"relative"},onClick:()=>{ie(),y(!0),w(0)},children:[H.jsx(xl,{ref:C,inputRef:M,label:"Search X values",placeholder:`Type to search ${z.length} values`,fullWidth:!0,variant:"outlined",size:"small",value:c,onChange:Q=>{d(Q.target.value),y(!0),T<0&&w(0)},onFocus:()=>{y(!0),T<0&&w(0)},onKeyDown:le,slotProps:B}),h&&b.length>0&&H.jsx(w3,{ref:_,id:"x-value-listbox",role:"listbox","aria-label":"Available X values","aria-hidden":!h,sx:{position:"absolute",top:"100%",left:0,right:0,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,maxHeight:180,overflowY:"auto",zIndex:2,boxShadow:2,mt:.5},children:b.map((Q,oe)=>H.jsx(S_,{id:`option-${oe}`,role:"option","aria-selected":T===oe,"aria-label":String(Q),tabIndex:0,onClick:()=>se(Q),onKeyDown:Z=>{Z.key==="Enter"?(Z.preventDefault(),Z.stopPropagation(),se(Q)):Z.key==="ArrowDown"?(Z.preventDefault(),Z.stopPropagation(),w(ae=>Math.min(ae+1,b.length-1))):Z.key==="ArrowUp"&&(Z.preventDefault(),Z.stopPropagation(),w(ae=>Math.max(ae-1,0)))},sx:{cursor:"pointer",py:1,px:2,bgcolor:T===oe?"action.selected":"transparent","&:hover":{bgcolor:"action.hover"}},children:H.jsx($7,{primary:String(Q)})},`${Q}-${oe}`))}),H.jsx("div",{ref:k,id:"sr-active-option-announcer","aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"}})]})]})]})]}):null},lce=({plot:e})=>{const{focus:t,tooltip:n}=au("display"),i=o=>{switch(o){case"BRAILLE":return H.jsx(sH,{});case"CHAT":return H.jsx(Yue,{});case"COMMAND_PALETTE":return H.jsx(Wue,{});case"GO_TO_EXTREMA":return H.jsx(oce,{});case"HELP":return H.jsx(Kue,{});case"REVIEW":return H.jsx(Zue,{});case"SETTINGS":return H.jsx(tce,{});default:return null}};return H.jsxs(H.Fragment,{children:[n.visible&&H.jsx(ice,{plot:e}),H.jsx(rce,{}),i(t)]})};function sce({plot:e,store:t,contextValue:n}){return H.jsx(nH,{store:t,children:H.jsx(aO.Provider,{value:n,children:H.jsx(lce,{plot:e})})})}function uce(e,t){return t?t===kt.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===kt.VERTICAL||t==="vert"?`vertical ${e}`:e:e}function cce(e){var h;const t=e.subplots,n=t.flat().length;if(n>1)return`This is a maidr figure containing ${n} subplots. Click to activate. Use arrow keys to navigate subplots and press 'ENTER'.`;const i=(h=t[0])==null?void 0:h[0],o=(i==null?void 0:i.layers.length)??0,s=i==null?void 0:i.layers[0],c=(s==null?void 0:s.type)??"chart",d=uce(c,s==null?void 0:s.orientation);return o>1?`This is a maidr plot containing ${o} layers, and this is layer 1 of ${o}: ${d} plot. Click to activate. Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`:`This is a maidr plot of type: ${d}. Click to activate. Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}function fce({data:e,children:t}){const n=G.useRef(null);n.current===null&&(n.current=P$());const i=n.current,{plotRef:o,figureRef:s,contextValue:c,onFocusIn:d,onFocusOut:h}=B$(e,i),y=G.useMemo(()=>cce(e),[e]);return H.jsx("article",{id:`maidr-article-${e.id}`,children:H.jsxs("figure",{ref:s,id:`maidr-figure-${e.id}`,onFocus:d,onBlur:h,children:[H.jsx("div",{ref:o,tabIndex:0,role:"img","aria-label":y,title:y,style:{width:"fit-content"},children:t}),c&&o.current&&H.jsx("div",{id:`react-container-${e.id}`,children:H.jsx(sce,{plot:o.current,store:i,contextValue:c})})]})})}document.readyState==="loading"?document.addEventListener(qu.DOM_LOADED,rI):rI();function nI(e,t,n){try{const i=JSON.parse(t);iI(i,e)}catch(i){console.error(`Error parsing ${n} attribute:`,i)}}function rI(){const e=document.querySelectorAll(me.MAIDR_JSON_SELECTOR);if(e.length>0){e.forEach(o=>{const s=o.getAttribute(me.MAIDR);s&&nI(o,s,"maidr")});return}const t=document.querySelectorAll(`[${me.MAIDR_DATA}]`);if(t.forEach(o=>{const s=o.getAttribute(me.MAIDR_DATA);s&&nI(o,s,"maidr-data")}),t.length!==0)return;const n=window.maidr;if(!n)return;const i=document.getElementById(n.id);if(!i){console.error("Plot not found for maidr:",n.id);return}iI(n,i)}function dce({node:e}){const t=G.useCallback(n=>{var i;n?n.contains(e)||n.appendChild(e):(i=e.parentNode)==null||i.removeChild(e)},[e]);return H.jsx("div",{ref:t,style:{display:"contents"}})}function iI(e,t){const n=document.createElement(me.DIV);n.style.display="contents",t.parentNode.replaceChild(n,t),RV.createRoot(n,{identifierPrefix:e.id}).render(H.jsx(fce,{data:e,children:H.jsx(dce,{node:t})}))}}));
//# sourceMappingURL=maidr.js.map
